@gem-sdk/pages 2.0.0-staging.120 → 2.0.0-staging.152
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.
|
@@ -38,6 +38,7 @@ const Toolbox = ()=>{
|
|
|
38
38
|
const changeLayoutSettings = core.useShopStore((s)=>s.changeLayoutSettings);
|
|
39
39
|
const changeCreateThemeSectionCount = core.useShopStore((s)=>s.changeCreateThemeSectionCount);
|
|
40
40
|
const changeShopPlan = core.useShopStore((s)=>s.changeShopPlan);
|
|
41
|
+
const changeShopifyPlan = core.useShopStore((s)=>s.changeShopifyPlan);
|
|
41
42
|
const changeFontType = libsStore.libsStore((s)=>s.changeFontType);
|
|
42
43
|
const fontType = libsStore.libsStore((s)=>s.fontType);
|
|
43
44
|
const clearModal = core.useModalStore((s)=>s.clearModal);
|
|
@@ -295,6 +296,13 @@ const Toolbox = ()=>{
|
|
|
295
296
|
}, [
|
|
296
297
|
changeShopPlan
|
|
297
298
|
]);
|
|
299
|
+
const onUpdateShopifyPlan = react.useCallback((e)=>{
|
|
300
|
+
const shopifyPlan = e.detail;
|
|
301
|
+
if (!shopifyPlan) return;
|
|
302
|
+
changeShopifyPlan(shopifyPlan);
|
|
303
|
+
}, [
|
|
304
|
+
changeShopifyPlan
|
|
305
|
+
]);
|
|
298
306
|
const onUpdateFontType = react.useCallback((e)=>{
|
|
299
307
|
const fontType = e.detail;
|
|
300
308
|
if (!fontType) return;
|
|
@@ -412,6 +420,7 @@ const Toolbox = ()=>{
|
|
|
412
420
|
window.addEventListener('on-off-header-footer', onChangeLayoutSettingData);
|
|
413
421
|
window.addEventListener('update-create-theme-section-count', onUpdateCreateThemeSectionCount);
|
|
414
422
|
window.addEventListener('update-shop-plan', onUpdateShopPlan);
|
|
423
|
+
window.addEventListener('update-shopify-plan', onUpdateShopifyPlan);
|
|
415
424
|
window.addEventListener('set-dynamic-product', onUpdateDynamicProduct);
|
|
416
425
|
window.addEventListener('set-dynamic-collection', onUpdateDynamicCollection);
|
|
417
426
|
window.addEventListener('update-item-name', onUpdateItemName);
|
|
@@ -437,6 +446,7 @@ const Toolbox = ()=>{
|
|
|
437
446
|
window.removeEventListener('on-off-header-footer', onChangeLayoutSettingData);
|
|
438
447
|
window.removeEventListener('update-create-theme-section-count', onUpdateCreateThemeSectionCount);
|
|
439
448
|
window.removeEventListener('update-shop-plan', onUpdateShopPlan);
|
|
449
|
+
window.removeEventListener('update-shopify-plan', onUpdateShopifyPlan);
|
|
440
450
|
window.removeEventListener('set-dynamic-product', onUpdateDynamicProduct);
|
|
441
451
|
window.removeEventListener('set-dynamic-collection', onUpdateDynamicCollection);
|
|
442
452
|
window.removeEventListener('update-item-name', onUpdateItemName);
|
|
@@ -452,6 +462,7 @@ const Toolbox = ()=>{
|
|
|
452
462
|
}, [
|
|
453
463
|
onAddEntity,
|
|
454
464
|
onUpdateShopPlan,
|
|
465
|
+
onUpdateShopifyPlan,
|
|
455
466
|
onForceUpdateEntityProps,
|
|
456
467
|
onUpdateEntityProp,
|
|
457
468
|
onInitBuilder,
|
|
@@ -34,6 +34,7 @@ const Toolbox = ()=>{
|
|
|
34
34
|
const changeLayoutSettings = useShopStore((s)=>s.changeLayoutSettings);
|
|
35
35
|
const changeCreateThemeSectionCount = useShopStore((s)=>s.changeCreateThemeSectionCount);
|
|
36
36
|
const changeShopPlan = useShopStore((s)=>s.changeShopPlan);
|
|
37
|
+
const changeShopifyPlan = useShopStore((s)=>s.changeShopifyPlan);
|
|
37
38
|
const changeFontType = libsStore((s)=>s.changeFontType);
|
|
38
39
|
const fontType = libsStore((s)=>s.fontType);
|
|
39
40
|
const clearModal = useModalStore((s)=>s.clearModal);
|
|
@@ -291,6 +292,13 @@ const Toolbox = ()=>{
|
|
|
291
292
|
}, [
|
|
292
293
|
changeShopPlan
|
|
293
294
|
]);
|
|
295
|
+
const onUpdateShopifyPlan = useCallback((e)=>{
|
|
296
|
+
const shopifyPlan = e.detail;
|
|
297
|
+
if (!shopifyPlan) return;
|
|
298
|
+
changeShopifyPlan(shopifyPlan);
|
|
299
|
+
}, [
|
|
300
|
+
changeShopifyPlan
|
|
301
|
+
]);
|
|
294
302
|
const onUpdateFontType = useCallback((e)=>{
|
|
295
303
|
const fontType = e.detail;
|
|
296
304
|
if (!fontType) return;
|
|
@@ -408,6 +416,7 @@ const Toolbox = ()=>{
|
|
|
408
416
|
window.addEventListener('on-off-header-footer', onChangeLayoutSettingData);
|
|
409
417
|
window.addEventListener('update-create-theme-section-count', onUpdateCreateThemeSectionCount);
|
|
410
418
|
window.addEventListener('update-shop-plan', onUpdateShopPlan);
|
|
419
|
+
window.addEventListener('update-shopify-plan', onUpdateShopifyPlan);
|
|
411
420
|
window.addEventListener('set-dynamic-product', onUpdateDynamicProduct);
|
|
412
421
|
window.addEventListener('set-dynamic-collection', onUpdateDynamicCollection);
|
|
413
422
|
window.addEventListener('update-item-name', onUpdateItemName);
|
|
@@ -433,6 +442,7 @@ const Toolbox = ()=>{
|
|
|
433
442
|
window.removeEventListener('on-off-header-footer', onChangeLayoutSettingData);
|
|
434
443
|
window.removeEventListener('update-create-theme-section-count', onUpdateCreateThemeSectionCount);
|
|
435
444
|
window.removeEventListener('update-shop-plan', onUpdateShopPlan);
|
|
445
|
+
window.removeEventListener('update-shopify-plan', onUpdateShopifyPlan);
|
|
436
446
|
window.removeEventListener('set-dynamic-product', onUpdateDynamicProduct);
|
|
437
447
|
window.removeEventListener('set-dynamic-collection', onUpdateDynamicCollection);
|
|
438
448
|
window.removeEventListener('update-item-name', onUpdateItemName);
|
|
@@ -448,6 +458,7 @@ const Toolbox = ()=>{
|
|
|
448
458
|
}, [
|
|
449
459
|
onAddEntity,
|
|
450
460
|
onUpdateShopPlan,
|
|
461
|
+
onUpdateShopifyPlan,
|
|
451
462
|
onForceUpdateEntityProps,
|
|
452
463
|
onUpdateEntityProp,
|
|
453
464
|
onInitBuilder,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "2.0.0-staging.
|
|
3
|
+
"version": "2.0.0-staging.152",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"next": "latest"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@gem-sdk/core": "2.0.0-staging.
|
|
29
|
+
"@gem-sdk/core": "2.0.0-staging.152",
|
|
30
30
|
"@gem-sdk/plugin-cookie-bar": "1.58.0-staging.25",
|
|
31
31
|
"@gem-sdk/plugin-quick-view": "1.58.0-staging.25",
|
|
32
32
|
"@gem-sdk/plugin-sticky-add-to-cart": "1.58.0-staging.25"
|