PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 All 141 releases
← All changes | assets/js/dist/blocks/index.js +45 -45 4.1.7 → 4.4.9 View file →
@@ -1,5 +1,5 @@
1 -/******/ (function() { // webpackBootstrap
1 +/******/ (() => { // webpackBootstrap
2 2 /******/ "use strict";
3 3 /******/ var __webpack_modules__ = ({
4 4
5 5 /***/ "./node_modules/@wordpress/icons/build-module/library/page.js":
@@ -5,11 +5,14 @@
5 5 /***/ "./node_modules/@wordpress/icons/build-module/library/page.js":
6 6 /*!********************************************************************!*\
7 7 !*** ./node_modules/@wordpress/icons/build-module/library/page.js ***!
8 8 \********************************************************************/
9 -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10 10
11 11 __webpack_require__.r(__webpack_exports__);
12 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
13 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
14 +/* harmony export */ });
12 15 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
13 16 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
14 17 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
15 18 /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
@@ -24,9 +27,9 @@
24 27 viewBox: "0 0 24 24"
25 28 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, {
26 29 d: "M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"
27 30 }));
28 -/* harmony default export */ __webpack_exports__["default"] = (page);
31 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (page);
29 32 //# sourceMappingURL=page.js.map
30 33
31 34 /***/ }),
32 35
@@ -33,9 +36,9 @@
33 36 /***/ "./assets/src/apps/js/blocks/category.js":
34 37 /*!***********************************************!*\
35 38 !*** ./assets/src/apps/js/blocks/category.js ***!
36 39 \***********************************************/
37 -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
40 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
38 41
39 42 __webpack_require__.r(__webpack_exports__);
40 43 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
41 44 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
@@ -58,13 +61,13 @@
58 61 /***/ "./assets/src/apps/js/blocks/template/edit.js":
59 62 /*!****************************************************!*\
60 63 !*** ./assets/src/apps/js/blocks/template/edit.js ***!
61 64 \****************************************************/
62 -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
65 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
63 66
64 67 __webpack_require__.r(__webpack_exports__);
65 68 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
66 -/* harmony export */ "default": function() { return /* binding */ Edit; }
69 +/* harmony export */ "default": () => (/* binding */ Edit)
67 70 /* harmony export */ });
68 71 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
69 72 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
70 73 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
@@ -89,15 +92,14 @@
89 92 placeholder: 'archive-course'
90 93 }
91 94 };
92 95 function Edit(_ref) {
93 - var _TEMPLATES$attributes, _TEMPLATES$attributes2;
94 -
96 + var _TEMPLATES$attributes;
95 97 let {
96 98 attributes
97 99 } = _ref;
98 100 const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)();
99 - const templateTitle = (_TEMPLATES$attributes = (_TEMPLATES$attributes2 = TEMPLATES[attributes.template]) === null || _TEMPLATES$attributes2 === void 0 ? void 0 : _TEMPLATES$attributes2.title) !== null && _TEMPLATES$attributes !== void 0 ? _TEMPLATES$attributes : attributes.template;
101 + const templateTitle = (_TEMPLATES$attributes = TEMPLATES[attributes.template]?.title) !== null && _TEMPLATES$attributes !== void 0 ? _TEMPLATES$attributes : attributes.template;
100 102 return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", blockProps, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Placeholder, {
101 103 icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_4__["default"],
102 104 label: templateTitle,
103 105 className: "wp-block-learnpress-template__placeholder"
@@ -102,11 +104,10 @@
102 104 label: templateTitle,
103 105 className: "wp-block-learnpress-template__placeholder"
104 106 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
105 107 className: "wp-block-learnpress-template__placeholder-inner"
106 - }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.sprintf)(
107 - /* translators: %s is the template title */
108 - (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('This is an editor placeholder for the %s. On your store this will be replaced by the template and display with your course image(s), title, price, etc. You can move this placeholder around and add further blocks around it to extend the template.', 'learnpress'), templateTitle))));
108 + }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.sprintf)( /* translators: %s is the template title */
109 + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('This is an editor placeholder for the %s. This will be replaced by the template in your store and displayed with your course image(s), title, price, and so on. You can move this placeholder around and add further blocks around it to extend the template.', 'learnpress'), templateTitle))));
109 110 }
110 111
111 112 /***/ }),
112 113
@@ -113,15 +114,15 @@
113 114 /***/ "./assets/src/apps/js/blocks/template/index.js":
114 115 /*!*****************************************************!*\
115 116 !*** ./assets/src/apps/js/blocks/template/index.js ***!
116 117 \*****************************************************/
117 -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
118 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
118 119
119 120 __webpack_require__.r(__webpack_exports__);
120 121 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
121 -/* harmony export */ "metadata": function() { return /* reexport default export from named module */ _block_json__WEBPACK_IMPORTED_MODULE_2__; },
122 -/* harmony export */ "name": function() { return /* binding */ name; },
123 -/* harmony export */ "settings": function() { return /* binding */ settings; }
122 +/* harmony export */ "metadata": () => (/* reexport default export from named module */ _block_json__WEBPACK_IMPORTED_MODULE_2__),
123 +/* harmony export */ "name": () => (/* binding */ name),
124 +/* harmony export */ "settings": () => (/* binding */ settings)
124 125 /* harmony export */ });
125 126 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
126 127 /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
127 128 /* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit */ "./assets/src/apps/js/blocks/template/edit.js");
@@ -147,9 +148,9 @@
147 148 /***/ "@wordpress/block-editor":
148 149 /*!*************************************!*\
149 150 !*** external ["wp","blockEditor"] ***!
150 151 \*************************************/
151 -/***/ (function(module) {
152 +/***/ ((module) => {
152 153
153 154 module.exports = window["wp"]["blockEditor"];
154 155
155 156 /***/ }),
@@ -157,9 +158,9 @@
157 158 /***/ "@wordpress/blocks":
158 159 /*!********************************!*\
159 160 !*** external ["wp","blocks"] ***!
160 161 \********************************/
161 -/***/ (function(module) {
162 +/***/ ((module) => {
162 163
163 164 module.exports = window["wp"]["blocks"];
164 165
165 166 /***/ }),
@@ -167,9 +168,9 @@
167 168 /***/ "@wordpress/components":
168 169 /*!************************************!*\
169 170 !*** external ["wp","components"] ***!
170 171 \************************************/
171 -/***/ (function(module) {
172 +/***/ ((module) => {
172 173
173 174 module.exports = window["wp"]["components"];
174 175
175 176 /***/ }),
@@ -177,9 +178,9 @@
177 178 /***/ "@wordpress/element":
178 179 /*!*********************************!*\
179 180 !*** external ["wp","element"] ***!
180 181 \*********************************/
181 -/***/ (function(module) {
182 +/***/ ((module) => {
182 183
183 184 module.exports = window["wp"]["element"];
184 185
185 186 /***/ }),
@@ -187,9 +188,9 @@
187 188 /***/ "@wordpress/i18n":
188 189 /*!******************************!*\
189 190 !*** external ["wp","i18n"] ***!
190 191 \******************************/
191 -/***/ (function(module) {
192 +/***/ ((module) => {
192 193
193 194 module.exports = window["wp"]["i18n"];
194 195
195 196 /***/ }),
@@ -197,9 +198,9 @@
197 198 /***/ "@wordpress/primitives":
198 199 /*!************************************!*\
199 200 !*** external ["wp","primitives"] ***!
200 201 \************************************/
201 -/***/ (function(module) {
202 +/***/ ((module) => {
202 203
203 204 module.exports = window["wp"]["primitives"];
204 205
205 206 /***/ }),
@@ -207,9 +208,9 @@
207 208 /***/ "./assets/src/apps/js/blocks/template/block.json":
208 209 /*!*******************************************************!*\
209 210 !*** ./assets/src/apps/js/blocks/template/block.json ***!
210 211 \*******************************************************/
211 -/***/ (function(module) {
212 +/***/ ((module) => {
212 213
213 214 module.exports = JSON.parse('{"apiVersion":2,"name":"learnpress/template","category":"learnpress","attributes":{"template":{"type":"string","default":""}}}');
214 215
215 216 /***/ })
@@ -241,23 +242,23 @@
241 242 /******/ }
242 243 /******/
243 244 /************************************************************************/
244 245 /******/ /* webpack/runtime/compat get default export */
245 -/******/ !function() {
246 +/******/ (() => {
246 247 /******/ // getDefaultExport function for compatibility with non-harmony modules
247 -/******/ __webpack_require__.n = function(module) {
248 +/******/ __webpack_require__.n = (module) => {
248 249 /******/ var getter = module && module.__esModule ?
249 -/******/ function() { return module['default']; } :
250 -/******/ function() { return module; };
250 +/******/ () => (module['default']) :
251 +/******/ () => (module);
251 252 /******/ __webpack_require__.d(getter, { a: getter });
252 253 /******/ return getter;
253 254 /******/ };
254 -/******/ }();
255 +/******/ })();
255 256 /******/
256 257 /******/ /* webpack/runtime/define property getters */
257 -/******/ !function() {
258 +/******/ (() => {
258 259 /******/ // define getter functions for harmony exports
259 -/******/ __webpack_require__.d = function(exports, definition) {
260 +/******/ __webpack_require__.d = (exports, definition) => {
260 261 /******/ for(var key in definition) {
261 262 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
262 263 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
263 264 /******/ }
@@ -262,36 +263,36 @@
262 263 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
263 264 /******/ }
264 265 /******/ }
265 266 /******/ };
266 -/******/ }();
267 +/******/ })();
267 268 /******/
268 269 /******/ /* webpack/runtime/hasOwnProperty shorthand */
269 -/******/ !function() {
270 -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
271 -/******/ }();
270 +/******/ (() => {
271 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
272 +/******/ })();
272 273 /******/
273 274 /******/ /* webpack/runtime/make namespace object */
274 -/******/ !function() {
275 +/******/ (() => {
275 276 /******/ // define __esModule on exports
276 -/******/ __webpack_require__.r = function(exports) {
277 +/******/ __webpack_require__.r = (exports) => {
277 278 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
278 279 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
279 280 /******/ }
280 281 /******/ Object.defineProperty(exports, '__esModule', { value: true });
281 282 /******/ };
282 -/******/ }();
283 +/******/ })();
283 284 /******/
284 285 /************************************************************************/
285 286 var __webpack_exports__ = {};
286 287 // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
287 -!function() {
288 +(() => {
288 289 /*!********************************************!*\
289 290 !*** ./assets/src/apps/js/blocks/index.js ***!
290 291 \********************************************/
291 292 __webpack_require__.r(__webpack_exports__);
292 293 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
293 -/* harmony export */ "registerLearnPressBlocks": function() { return /* binding */ registerLearnPressBlocks; }
294 +/* harmony export */ "registerLearnPressBlocks": () => (/* binding */ registerLearnPressBlocks)
294 295 /* harmony export */ });
295 296 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
296 297 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
297 298 /* harmony import */ var _category__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./category */ "./assets/src/apps/js/blocks/category.js");
@@ -298,32 +299,31 @@
298 299 /* harmony import */ var _template__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./template */ "./assets/src/apps/js/blocks/template/index.js");
299 300
300 301
301 302
302 -
303 303 const registerBlock = block => {
304 304 if (!block) {
305 305 return;
306 306 }
307 -
308 307 const {
309 308 metadata,
310 309 settings,
311 310 name
312 311 } = block;
313 - (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(name, { ...metadata,
312 + (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(name, {
313 + ...metadata,
314 314 ...settings
315 315 });
316 316 };
317 +
317 318 /**
318 319 * Function to register blocks.
319 320 */
320 -
321 -
322 321 const registerLearnPressBlocks = () => {
323 322 [_template__WEBPACK_IMPORTED_MODULE_2__].forEach(registerBlock);
324 323 };
325 324 registerLearnPressBlocks();
326 -}();
325 +})();
326 +
327 327 /******/ })()
328 328 ;
329 329 //# sourceMappingURL=index.js.map