@blaze-cms/plugin-page-builder-fe 0.127.0-project-admin-customisations.0 → 0.127.0-project-admin-customisations.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/index.js +30 -34
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.127.0-project-admin-customisations.3](https://github.com/thebyte9/blaze/compare/v0.127.0-project-admin-customisations.2...v0.127.0-project-admin-customisations.3) (2023-01-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @blaze-cms/plugin-page-builder-fe
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.127.0-project-admin-customisations.2](https://github.com/thebyte9/blaze/compare/v0.127.0-project-admin-customisations.1...v0.127.0-project-admin-customisations.2) (2023-01-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @blaze-cms/plugin-page-builder-fe
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [0.127.0-project-admin-customisations.0](https://github.com/thebyte9/blaze/compare/v0.126.1...v0.127.0-project-admin-customisations.0) (2023-01-25)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @blaze-cms/plugin-page-builder-fe
|
package/lib/index.js
CHANGED
|
@@ -33,43 +33,39 @@ function load(_x) {
|
|
|
33
33
|
function _load() {
|
|
34
34
|
_load = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(app) {
|
|
35
35
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
36
|
-
while (1) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
component: _reactPageBuilder.components[key]
|
|
44
|
-
});
|
|
36
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37
|
+
case 0:
|
|
38
|
+
app.events.once('load:custom:page-builder:component', function (addComponent) {
|
|
39
|
+
Object.keys(_reactPageBuilder.components).forEach(function (key) {
|
|
40
|
+
return addComponent({
|
|
41
|
+
key: key,
|
|
42
|
+
component: _reactPageBuilder.components[key]
|
|
45
43
|
});
|
|
46
44
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
_context.next = 3;
|
|
57
|
-
return app.events.emitAsync('load:custom:page-builder:component', _reactPageBuilder.componentMap.add);
|
|
58
|
-
case 3:
|
|
59
|
-
case "end":
|
|
60
|
-
return _context.stop();
|
|
45
|
+
});
|
|
46
|
+
app.events.once('plugin:page-builder-fe:load:loaded', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
47
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
48
|
+
while (1) switch (_context.prev = _context.next) {
|
|
49
|
+
case 0:
|
|
50
|
+
if (_reactPageBuilder.componentMap.getAll().length) {
|
|
51
|
+
_context.next = 3;
|
|
52
|
+
break;
|
|
61
53
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
54
|
+
_context.next = 3;
|
|
55
|
+
return app.events.emitAsync('load:custom:page-builder:component', _reactPageBuilder.componentMap.add);
|
|
56
|
+
case 3:
|
|
57
|
+
case "end":
|
|
58
|
+
return _context.stop();
|
|
59
|
+
}
|
|
60
|
+
}, _callee);
|
|
61
|
+
})));
|
|
62
|
+
return _context2.abrupt("return", {
|
|
63
|
+
name: _constants.PLUGIN_NAME,
|
|
64
|
+
version: _package["default"].version
|
|
65
|
+
});
|
|
66
|
+
case 3:
|
|
67
|
+
case "end":
|
|
68
|
+
return _context2.stop();
|
|
73
69
|
}
|
|
74
70
|
}, _callee2);
|
|
75
71
|
}));
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["load","app","events","once","addComponent","Object","keys","components","forEach","key","component","componentMap","getAll","length","emitAsync","add","name","PLUGIN_NAME","version","pkg","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import { componentMap, components } from '@blaze-cms/react-page-builder';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\n\nexport { buildPBComponents, getLightboxImages } from '@blaze-cms/react-page-builder';\nasync function load(app) {\n app.events.once('load:custom:page-builder:component', addComponent => {\n Object.keys(components).forEach(key => addComponent({ key, component: components[key] }));\n });\n\n app.events.once('plugin:page-builder-fe:load:loaded', async () => {\n if (!componentMap.getAll().length) {\n // componentMap is a singleton so only populate once\n await app.events.emitAsync('load:custom:page-builder:component', componentMap.add);\n }\n });\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\nload.pluginName = PLUGIN_NAME;\n\nexport default load;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAA0C,SAG3BA,IAAI;EAAA;AAAA;AAAA;EAAA,sFAAnB,kBAAoBC,GAAG;IAAA;MAAA;QAAA;
|
|
1
|
+
{"version":3,"file":"index.js","names":["load","app","events","once","addComponent","Object","keys","components","forEach","key","component","componentMap","getAll","length","emitAsync","add","name","PLUGIN_NAME","version","pkg","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import { componentMap, components } from '@blaze-cms/react-page-builder';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\n\nexport { buildPBComponents, getLightboxImages } from '@blaze-cms/react-page-builder';\nasync function load(app) {\n app.events.once('load:custom:page-builder:component', addComponent => {\n Object.keys(components).forEach(key => addComponent({ key, component: components[key] }));\n });\n\n app.events.once('plugin:page-builder-fe:load:loaded', async () => {\n if (!componentMap.getAll().length) {\n // componentMap is a singleton so only populate once\n await app.events.emitAsync('load:custom:page-builder:component', componentMap.add);\n }\n });\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\nload.pluginName = PLUGIN_NAME;\n\nexport default load;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAA0C,SAG3BA,IAAI;EAAA;AAAA;AAAA;EAAA,sFAAnB,kBAAoBC,GAAG;IAAA;MAAA;QAAA;UACrBA,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,oCAAoC,EAAE,UAAAC,YAAY,EAAI;YACpEC,MAAM,CAACC,IAAI,CAACC,4BAAU,CAAC,CAACC,OAAO,CAAC,UAAAC,GAAG;cAAA,OAAIL,YAAY,CAAC;gBAAEK,GAAG,EAAHA,GAAG;gBAAEC,SAAS,EAAEH,4BAAU,CAACE,GAAG;cAAE,CAAC,CAAC;YAAA,EAAC;UAC3F,CAAC,CAAC;UAEFR,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,oCAAoC,6FAAE;YAAA;cAAA;gBAAA;kBAAA,IAC/CQ,8BAAY,CAACC,MAAM,EAAE,CAACC,MAAM;oBAAA;oBAAA;kBAAA;kBAAA;kBAAA,OAEzBZ,GAAG,CAACC,MAAM,CAACY,SAAS,CAAC,oCAAoC,EAAEH,8BAAY,CAACI,GAAG,CAAC;gBAAA;gBAAA;kBAAA;cAAA;YAAA;UAAA,CAErF,GAAC;UAAC,kCAEI;YACLC,IAAI,EAAEC,sBAAW;YACjBC,OAAO,EAAEC,mBAAG,CAACD;UACf,CAAC;QAAA;QAAA;UAAA;MAAA;IAAA;EAAA,CACF;EAAA;AAAA;AACDlB,IAAI,CAACoB,UAAU,GAAGH,sBAAW;AAAC,eAEfjB,IAAI;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/plugin-page-builder-fe",
|
|
3
|
-
"version": "0.127.0-project-admin-customisations.
|
|
3
|
+
"version": "0.127.0-project-admin-customisations.3",
|
|
4
4
|
"description": "Blaze page builder plugin fe",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/react-page-builder": "0.127.0-project-admin-customisations.
|
|
30
|
+
"@blaze-cms/react-page-builder": "0.127.0-project-admin-customisations.3",
|
|
31
31
|
"@blaze-cms/setup-ui": "^0.92.0",
|
|
32
32
|
"core-js": "^3.2.1",
|
|
33
33
|
"regenerator-runtime": "^0.13.3"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"lib/*",
|
|
40
40
|
"lib-es/*"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ea986d69f265ba66e45dea0630cbdb4823bf09dc"
|
|
43
43
|
}
|