@blaze-cms/plugin-page-builder-fe 0.141.0-core-styles.1 → 0.141.0-core-variants.0
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 +5 -24
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib-es/index.js +10 -2
- package/lib-es/index.js.map +1 -1
- package/package.json +5 -5
- package/src/index.js +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,33 +3,14 @@
|
|
|
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.141.0-core-
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @blaze-cms/plugin-page-builder-fe
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [0.141.0-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.140.2-core-styles.1...v0.141.0-core-styles.0) (2024-03-08)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @blaze-cms/plugin-page-builder-fe
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
# [0.141.0-core-variants.0](https://github.com/thebyte9/blaze/compare/v0.140.1...v0.141.0-core-variants.0) (2024-03-26)
|
|
19
7
|
|
|
20
8
|
|
|
9
|
+
### Bug Fixes
|
|
21
10
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [0.140.2-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.140.0...v0.140.2-core-styles.0) (2024-03-06)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @blaze-cms/plugin-page-builder-fe
|
|
11
|
+
* addressed missing styles for parallax image right ([dbf4281](https://github.com/thebyte9/blaze/commit/dbf42813ef8acf007451518b77f8572b17b63174))
|
|
12
|
+
* removed commented code ([22c5b75](https://github.com/thebyte9/blaze/commit/22c5b75885f27967a680d4ee888eacacc664f82b))
|
|
13
|
+
* wip ([6692604](https://github.com/thebyte9/blaze/commit/6692604231971e82dbba1139ff725186cda54eac))
|
|
33
14
|
|
|
34
15
|
|
|
35
16
|
|
package/lib/index.js
CHANGED
|
@@ -43,9 +43,14 @@ function _load() {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
|
-
app.events.once('load:custom:page-builder:variant', function (
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
app.events.once('load:custom:page-builder:variant', function (addVariant) {
|
|
47
|
+
var _process$env$BLAZE_VA = process.env.BLAZE_VARIANTS,
|
|
48
|
+
BLAZE_VARIANTS = _process$env$BLAZE_VA === void 0 ? '' : _process$env$BLAZE_VA;
|
|
49
|
+
if (!BLAZE_VARIANTS) return;
|
|
50
|
+
var variantsToLoad = BLAZE_VARIANTS.split(' ');
|
|
51
|
+
variantsToLoad.forEach(function (variantKey) {
|
|
52
|
+
var variant = _reactPageBuilder.variants[variantKey];
|
|
53
|
+
addVariant(variantKey, variant);
|
|
49
54
|
});
|
|
50
55
|
});
|
|
51
56
|
app.events.once('plugin:page-builder-fe:load:loaded', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_reactPageBuilder","require","_package","_interopRequireDefault","_constants","load","_x","_load","apply","arguments","_asyncToGenerator2","_regenerator","mark","_callee2","app","wrap","_callee2$","_context2","prev","next","events","once","addComponent","Object","keys","components","forEach","key","component","variants","_callee","_callee$","_context","componentMap","getAll","length","emitAsync","add","variantHandler","stop","abrupt","name","PLUGIN_NAME","version","pkg","pluginName","_default","exports"],"sources":["../src/index.js"],"sourcesContent":["import { componentMap, variantHandler, components, variants } 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('load:custom:page-builder:variant',
|
|
1
|
+
{"version":3,"file":"index.js","names":["_reactPageBuilder","require","_package","_interopRequireDefault","_constants","load","_x","_load","apply","arguments","_asyncToGenerator2","_regenerator","mark","_callee2","app","wrap","_callee2$","_context2","prev","next","events","once","addComponent","Object","keys","components","forEach","key","component","addVariant","_process$env$BLAZE_VA","process","env","BLAZE_VARIANTS","variantsToLoad","split","variantKey","variant","variants","_callee","_callee$","_context","componentMap","getAll","length","emitAsync","add","variantHandler","stop","abrupt","name","PLUGIN_NAME","version","pkg","pluginName","_default","exports"],"sources":["../src/index.js"],"sourcesContent":["import { componentMap, variantHandler, components, variants } 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('load:custom:page-builder:variant', addVariant => {\n const { BLAZE_VARIANTS = '' } = process.env;\n if (!BLAZE_VARIANTS) return;\n const variantsToLoad = BLAZE_VARIANTS.split(' ');\n\n variantsToLoad.forEach(variantKey => {\n const variant = variants[variantKey];\n addVariant(variantKey, variant);\n });\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 });\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,iBAA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,kBAAA,2BAAAC,YAAA,YAAAC,IAAA,CAAE,SAAA2B,QAAA;YAAA,OAAA5B,YAAA,YAAAI,IAAA,UAAAyB,SAAAC,QAAA;cAAA,kBAAAA,QAAA,CAAAvB,IAAA,GAAAuB,QAAA,CAAAtB,IAAA;gBAAA;kBAAA,IAC/CuB,8BAAY,CAACC,MAAM,CAAC,CAAC,CAACC,MAAM;oBAAAH,QAAA,CAAAtB,IAAA;oBAAA;kBAAA;kBAAAsB,QAAA,CAAAtB,IAAA;kBAAA,OAEzBL,GAAG,CAACM,MAAM,CAACyB,SAAS,CAAC,oCAAoC,EAAEH,8BAAY,CAACI,GAAG,CAAC;gBAAA;kBAAAL,QAAA,CAAAtB,IAAA;kBAAA,OAC5EL,GAAG,CAACM,MAAM,CAACyB,SAAS,CAAC,kCAAkC,EAAEE,gCAAc,CAACD,GAAG,CAAC;gBAAA;gBAAA;kBAAA,OAAAL,QAAA,CAAAO,IAAA;cAAA;YAAA,GAAAT,OAAA;UAAA,CAErF,GAAC;UAAC,OAAAtB,SAAA,CAAAgC,MAAA,WAEI;YACLC,IAAI,EAAEC,sBAAW;YACjBC,OAAO,EAAEC,mBAAG,CAACD;UACf,CAAC;QAAA;QAAA;UAAA,OAAAnC,SAAA,CAAA+B,IAAA;MAAA;IAAA,GAAAnC,QAAA;EAAA,CACF;EAAA,OAAAN,KAAA,CAAAC,KAAA,OAAAC,SAAA;AAAA;AAEDJ,IAAI,CAACiD,UAAU,GAAGH,sBAAW;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAGfnD,IAAI"}
|
package/lib-es/index.js
CHANGED
|
@@ -8,8 +8,16 @@ async function load(app) {
|
|
|
8
8
|
component: components[key]
|
|
9
9
|
}));
|
|
10
10
|
});
|
|
11
|
-
app.events.once('load:custom:page-builder:variant',
|
|
12
|
-
|
|
11
|
+
app.events.once('load:custom:page-builder:variant', addVariant => {
|
|
12
|
+
const {
|
|
13
|
+
BLAZE_VARIANTS = ''
|
|
14
|
+
} = process.env;
|
|
15
|
+
if (!BLAZE_VARIANTS) return;
|
|
16
|
+
const variantsToLoad = BLAZE_VARIANTS.split(' ');
|
|
17
|
+
variantsToLoad.forEach(variantKey => {
|
|
18
|
+
const variant = variants[variantKey];
|
|
19
|
+
addVariant(variantKey, variant);
|
|
20
|
+
});
|
|
13
21
|
});
|
|
14
22
|
app.events.once('plugin:page-builder-fe:load:loaded', async () => {
|
|
15
23
|
if (!componentMap.getAll().length) {
|
package/lib-es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["componentMap","variantHandler","components","variants","pkg","PLUGIN_NAME","load","app","events","once","addComponent","Object","keys","forEach","key","component","getAll","length","emitAsync","add","name","version","pluginName","buildPBComponents","getLightboxImages"],"sources":["../src/index.js"],"sourcesContent":["import { componentMap, variantHandler, components, variants } 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('load:custom:page-builder:variant',
|
|
1
|
+
{"version":3,"file":"index.js","names":["componentMap","variantHandler","components","variants","pkg","PLUGIN_NAME","load","app","events","once","addComponent","Object","keys","forEach","key","component","addVariant","BLAZE_VARIANTS","process","env","variantsToLoad","split","variantKey","variant","getAll","length","emitAsync","add","name","version","pluginName","buildPBComponents","getLightboxImages"],"sources":["../src/index.js"],"sourcesContent":["import { componentMap, variantHandler, components, variants } 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('load:custom:page-builder:variant', addVariant => {\n const { BLAZE_VARIANTS = '' } = process.env;\n if (!BLAZE_VARIANTS) return;\n const variantsToLoad = BLAZE_VARIANTS.split(' ');\n\n variantsToLoad.forEach(variantKey => {\n const variant = variants[variantKey];\n addVariant(variantKey, variant);\n });\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 });\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,SAASA,YAAY,EAAEC,cAAc,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,+BAA+B;AAClG,OAAOC,GAAG,MAAM,iBAAiB;AACjC,SAASC,WAAW,QAAQ,aAAa;AAEzC,eAAeC,IAAIA,CAACC,GAAG,EAAE;EACvBA,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,oCAAoC,EAAEC,YAAY,IAAI;IACpEC,MAAM,CAACC,IAAI,CAACV,UAAU,CAAC,CAACW,OAAO,CAACC,GAAG,IAAIJ,YAAY,CAAC;MAAEI,GAAG;MAAEC,SAAS,EAAEb,UAAU,CAACY,GAAG;IAAE,CAAC,CAAC,CAAC;EAC3F,CAAC,CAAC;EAEFP,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,kCAAkC,EAAEO,UAAU,IAAI;IAChE,MAAM;MAAEC,cAAc,GAAG;IAAG,CAAC,GAAGC,OAAO,CAACC,GAAG;IAC3C,IAAI,CAACF,cAAc,EAAE;IACrB,MAAMG,cAAc,GAAGH,cAAc,CAACI,KAAK,CAAC,GAAG,CAAC;IAEhDD,cAAc,CAACP,OAAO,CAACS,UAAU,IAAI;MACnC,MAAMC,OAAO,GAAGpB,QAAQ,CAACmB,UAAU,CAAC;MACpCN,UAAU,CAACM,UAAU,EAAEC,OAAO,CAAC;IACjC,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFhB,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,oCAAoC,EAAE,YAAY;IAChE,IAAI,CAACT,YAAY,CAACwB,MAAM,CAAC,CAAC,CAACC,MAAM,EAAE;MACjC;MACA,MAAMlB,GAAG,CAACC,MAAM,CAACkB,SAAS,CAAC,oCAAoC,EAAE1B,YAAY,CAAC2B,GAAG,CAAC;MAClF,MAAMpB,GAAG,CAACC,MAAM,CAACkB,SAAS,CAAC,kCAAkC,EAAEzB,cAAc,CAAC0B,GAAG,CAAC;IACpF;EACF,CAAC,CAAC;EAEF,OAAO;IACLC,IAAI,EAAEvB,WAAW;IACjBwB,OAAO,EAAEzB,GAAG,CAACyB;EACf,CAAC;AACH;AAEAvB,IAAI,CAACwB,UAAU,GAAGzB,WAAW;AAE7B,SAAS0B,iBAAiB,EAAEC,iBAAiB,QAAQ,+BAA+B;AACpF,eAAe1B,IAAI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/plugin-page-builder-fe",
|
|
3
|
-
"version": "0.141.0-core-
|
|
3
|
+
"version": "0.141.0-core-variants.0",
|
|
4
4
|
"description": "Blaze page builder plugin fe",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/react-page-builder": "0.141.0-core-
|
|
31
|
-
"@blaze-cms/setup-ui": "0.
|
|
30
|
+
"@blaze-cms/react-page-builder": "0.141.0-core-variants.0",
|
|
31
|
+
"@blaze-cms/setup-ui": "^0.139.0",
|
|
32
32
|
"core-js": "^3.2.1",
|
|
33
33
|
"regenerator-runtime": "^0.13.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@blaze-cms/core-ui": "0.
|
|
36
|
+
"@blaze-cms/core-ui": "^0.139.0"
|
|
37
37
|
},
|
|
38
38
|
"eslintIgnore": [
|
|
39
39
|
"lib/*",
|
|
40
40
|
"lib-es/*"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "575e2c9a6dcb15af4072847bd66677affb1abedc"
|
|
43
43
|
}
|
package/src/index.js
CHANGED
|
@@ -7,8 +7,15 @@ async function load(app) {
|
|
|
7
7
|
Object.keys(components).forEach(key => addComponent({ key, component: components[key] }));
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
app.events.once('load:custom:page-builder:variant',
|
|
11
|
-
|
|
10
|
+
app.events.once('load:custom:page-builder:variant', addVariant => {
|
|
11
|
+
const { BLAZE_VARIANTS = '' } = process.env;
|
|
12
|
+
if (!BLAZE_VARIANTS) return;
|
|
13
|
+
const variantsToLoad = BLAZE_VARIANTS.split(' ');
|
|
14
|
+
|
|
15
|
+
variantsToLoad.forEach(variantKey => {
|
|
16
|
+
const variant = variants[variantKey];
|
|
17
|
+
addVariant(variantKey, variant);
|
|
18
|
+
});
|
|
12
19
|
});
|
|
13
20
|
|
|
14
21
|
app.events.once('plugin:page-builder-fe:load:loaded', async () => {
|