@blaze-cms/plugin-page-builder-fe 0.146.0-translations.8 → 0.147.0-rc-eagle.4
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/lib/constants.js +1 -2
- package/lib/constants.js.map +1 -1
- package/lib/index.js +29 -66
- package/lib/index.js.map +1 -1
- package/package.json +16 -12
- package/CHANGELOG.md +0 -1768
- package/babel.config.js +0 -3
- package/jest.config.js +0 -3
package/lib/constants.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.PLUGIN_NAME = void 0;
|
|
8
|
-
|
|
7
|
+
const PLUGIN_NAME = exports.PLUGIN_NAME = 'page-builder-fe';
|
|
9
8
|
//# sourceMappingURL=constants.js.map
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","exports"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'page-builder-fe';\n\nexport { PLUGIN_NAME };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","exports"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'page-builder-fe';\n\nexport { PLUGIN_NAME };\n"],"mappings":";;;;;;AAAA,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,iBAAiB","ignoreList":[]}
|
package/lib/index.js
CHANGED
|
@@ -1,88 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
Object.defineProperty(exports, "buildPBComponents", {
|
|
9
8
|
enumerable: true,
|
|
10
|
-
get: function
|
|
9
|
+
get: function () {
|
|
11
10
|
return _reactPageBuilder.buildPBComponents;
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
|
-
exports
|
|
13
|
+
exports.default = void 0;
|
|
15
14
|
Object.defineProperty(exports, "getLightboxImages", {
|
|
16
15
|
enumerable: true,
|
|
17
|
-
get: function
|
|
16
|
+
get: function () {
|
|
18
17
|
return _reactPageBuilder.getLightboxImages;
|
|
19
18
|
}
|
|
20
19
|
});
|
|
21
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
22
|
-
require("core-js/modules/es.array.for-each.js");
|
|
23
|
-
require("core-js/modules/es.object.keys.js");
|
|
24
|
-
require("core-js/modules/es.object.to-string.js");
|
|
25
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
26
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
27
20
|
var _reactPageBuilder = require("@blaze-cms/react-page-builder");
|
|
28
21
|
var _package = _interopRequireDefault(require("../package.json"));
|
|
29
22
|
var _constants = require("./constants");
|
|
30
|
-
function load(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return app.events.emitAsync('load:custom:page-builder:component', _reactPageBuilder.componentMap.add);
|
|
56
|
-
case 3:
|
|
57
|
-
_context.next = 5;
|
|
58
|
-
return app.events.emitAsync('load:custom:page-builder:variant', _reactPageBuilder.variantHandler.add);
|
|
59
|
-
case 5:
|
|
60
|
-
// add core variants last so they can be overridden
|
|
61
|
-
Object.keys(_reactPageBuilder.variants).forEach(function (variantKey) {
|
|
62
|
-
var variant = _reactPageBuilder.variants[variantKey];
|
|
63
|
-
_reactPageBuilder.variantHandler.add(variantKey, variant);
|
|
64
|
-
});
|
|
65
|
-
case 6:
|
|
66
|
-
case "end":
|
|
67
|
-
return _context.stop();
|
|
68
|
-
}
|
|
69
|
-
}, _callee);
|
|
70
|
-
})));
|
|
71
|
-
app.events.once('plugin:translation-fe:translations:load', function (loadTranslations) {
|
|
72
|
-
return loadTranslations(_reactPageBuilder.translations, _constants.PLUGIN_NAME);
|
|
73
|
-
});
|
|
74
|
-
return _context2.abrupt("return", {
|
|
75
|
-
name: _constants.PLUGIN_NAME,
|
|
76
|
-
version: _package["default"].version
|
|
77
|
-
});
|
|
78
|
-
case 4:
|
|
79
|
-
case "end":
|
|
80
|
-
return _context2.stop();
|
|
81
|
-
}
|
|
82
|
-
}, _callee2);
|
|
83
|
-
}));
|
|
84
|
-
return _load.apply(this, arguments);
|
|
23
|
+
async function load(app) {
|
|
24
|
+
app.events.once('load:custom:page-builder:component', addComponent => {
|
|
25
|
+
Object.keys(_reactPageBuilder.components).forEach(key => addComponent({
|
|
26
|
+
key,
|
|
27
|
+
component: _reactPageBuilder.components[key]
|
|
28
|
+
}));
|
|
29
|
+
});
|
|
30
|
+
app.events.once('plugin:page-builder-fe:load:loaded', async () => {
|
|
31
|
+
if (!_reactPageBuilder.componentMap.getAll().length) {
|
|
32
|
+
// componentMap and variantHandler are singletons so only populate once
|
|
33
|
+
await app.events.emitAsync('load:custom:page-builder:component', _reactPageBuilder.componentMap.add);
|
|
34
|
+
await app.events.emitAsync('load:custom:page-builder:variant', _reactPageBuilder.variantHandler.add);
|
|
35
|
+
|
|
36
|
+
// add core variants last so they can be overridden
|
|
37
|
+
Object.keys(_reactPageBuilder.variants).forEach(variantKey => {
|
|
38
|
+
const variant = _reactPageBuilder.variants[variantKey];
|
|
39
|
+
_reactPageBuilder.variantHandler.add(variantKey, variant);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
app.events.once('plugin:translation-fe:translations:load', loadTranslations => loadTranslations(_reactPageBuilder.translations, _constants.PLUGIN_NAME));
|
|
44
|
+
return {
|
|
45
|
+
name: _constants.PLUGIN_NAME,
|
|
46
|
+
version: _package.default.version
|
|
47
|
+
};
|
|
85
48
|
}
|
|
86
49
|
load.pluginName = _constants.PLUGIN_NAME;
|
|
87
|
-
var _default = exports
|
|
50
|
+
var _default = exports.default = load;
|
|
88
51
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_reactPageBuilder","require","_package","_interopRequireDefault","_constants","load","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_reactPageBuilder","require","_package","_interopRequireDefault","_constants","load","app","events","once","addComponent","Object","keys","components","forEach","key","component","componentMap","getAll","length","emitAsync","add","variantHandler","variants","variantKey","variant","loadTranslations","translations","PLUGIN_NAME","name","version","pkg","pluginName","_default","exports","default"],"sources":["../src/index.js"],"sourcesContent":["import {\n componentMap,\n variantHandler,\n components,\n variants,\n translations\n} from '@blaze-cms/react-page-builder';\nimport pkg from '../package.json';\nimport { PLUGIN_NAME } from './constants';\n\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 and variantHandler are singletons so only populate once\n await app.events.emitAsync('load:custom:page-builder:component', componentMap.add);\n await app.events.emitAsync('load:custom:page-builder:variant', variantHandler.add);\n\n // add core variants last so they can be overridden\n Object.keys(variants).forEach(variantKey => {\n const variant = variants[variantKey];\n variantHandler.add(variantKey, variant);\n });\n }\n });\n\n app.events.once('plugin:translation-fe:translations:load', loadTranslations =>\n loadTranslations(translations, PLUGIN_NAME)\n );\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\n\nload.pluginName = PLUGIN_NAME;\n\nexport { buildPBComponents, getLightboxImages } from '@blaze-cms/react-page-builder';\nexport default load;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAOA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,eAAeI,IAAIA,CAACC,GAAG,EAAE;EACvBA,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,oCAAoC,EAAEC,YAAY,IAAI;IACpEC,MAAM,CAACC,IAAI,CAACC,4BAAU,CAAC,CAACC,OAAO,CAACC,GAAG,IAAIL,YAAY,CAAC;MAAEK,GAAG;MAAEC,SAAS,EAAEH,4BAAU,CAACE,GAAG;IAAE,CAAC,CAAC,CAAC;EAC3F,CAAC,CAAC;EAEFR,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,oCAAoC,EAAE,YAAY;IAChE,IAAI,CAACQ,8BAAY,CAACC,MAAM,CAAC,CAAC,CAACC,MAAM,EAAE;MACjC;MACA,MAAMZ,GAAG,CAACC,MAAM,CAACY,SAAS,CAAC,oCAAoC,EAAEH,8BAAY,CAACI,GAAG,CAAC;MAClF,MAAMd,GAAG,CAACC,MAAM,CAACY,SAAS,CAAC,kCAAkC,EAAEE,gCAAc,CAACD,GAAG,CAAC;;MAElF;MACAV,MAAM,CAACC,IAAI,CAACW,0BAAQ,CAAC,CAACT,OAAO,CAACU,UAAU,IAAI;QAC1C,MAAMC,OAAO,GAAGF,0BAAQ,CAACC,UAAU,CAAC;QACpCF,gCAAc,CAACD,GAAG,CAACG,UAAU,EAAEC,OAAO,CAAC;MACzC,CAAC,CAAC;IACJ;EACF,CAAC,CAAC;EAEFlB,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,yCAAyC,EAAEiB,gBAAgB,IACzEA,gBAAgB,CAACC,8BAAY,EAAEC,sBAAW,CAC5C,CAAC;EAED,OAAO;IACLC,IAAI,EAAED,sBAAW;IACjBE,OAAO,EAAEC,gBAAG,CAACD;EACf,CAAC;AACH;AAEAxB,IAAI,CAAC0B,UAAU,GAAGJ,sBAAW;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGf7B,IAAI","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/plugin-page-builder-fe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.147.0-rc-eagle.4",
|
|
4
4
|
"description": "Blaze page builder plugin fe",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
7
|
-
"
|
|
7
|
+
"files": [
|
|
8
|
+
"lib",
|
|
9
|
+
"lib-es",
|
|
10
|
+
"src"
|
|
11
|
+
],
|
|
12
|
+
"source": "src/index.js",
|
|
8
13
|
"directories": {
|
|
9
14
|
"src": "src/"
|
|
10
15
|
},
|
|
11
16
|
"scripts": {
|
|
12
17
|
"test": "jest",
|
|
13
|
-
"lint": "
|
|
18
|
+
"lint": "npm run lint:js",
|
|
14
19
|
"lint:js": "eslint .",
|
|
15
20
|
"clean": "rm -Rf ./lib/ && rm -Rf ./lib-es/",
|
|
16
21
|
"build:cjs": "BABEL_ENV=cjs ../../node_modules/.bin/babel ./src --out-dir ./lib --source-maps --root-mode upward",
|
|
17
22
|
"build:esm": "BABEL_ENV=esm ../../node_modules/.bin/babel ./src --out-dir ./lib-es --source-maps --root-mode upward",
|
|
18
|
-
"build": "
|
|
19
|
-
"build:clean": "
|
|
20
|
-
"prepublishOnly": "
|
|
21
|
-
"postpublish": "
|
|
23
|
+
"build": "npm run build:cjs && npm run build:esm",
|
|
24
|
+
"build:clean": "npm run clean && npm run build",
|
|
25
|
+
"prepublishOnly": "npm run build:clean",
|
|
26
|
+
"postpublish": "npm run clean"
|
|
22
27
|
},
|
|
23
28
|
"author": {
|
|
24
29
|
"email": "hello@thebyte9.com",
|
|
@@ -27,17 +32,16 @@
|
|
|
27
32
|
},
|
|
28
33
|
"license": "GPL-3.0",
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/react-page-builder": "0.
|
|
31
|
-
"@blaze-cms/setup-ui": "
|
|
32
|
-
"core-js": "^3.2.1",
|
|
35
|
+
"@blaze-cms/react-page-builder": "0.147.0-rc-eagle.4",
|
|
36
|
+
"@blaze-cms/setup-ui": "0.147.0-rc-eagle.4",
|
|
33
37
|
"regenerator-runtime": "^0.13.3"
|
|
34
38
|
},
|
|
35
39
|
"devDependencies": {
|
|
36
|
-
"@blaze-cms/core-ui": "0.
|
|
40
|
+
"@blaze-cms/core-ui": "0.147.0-rc-eagle.4"
|
|
37
41
|
},
|
|
38
42
|
"eslintIgnore": [
|
|
39
43
|
"lib/*",
|
|
40
44
|
"lib-es/*"
|
|
41
45
|
],
|
|
42
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ddfab9ac3d59438939268c106917b092e4071071"
|
|
43
47
|
}
|