@gem-sdk/core 1.53.0-dev.4 → 1.53.0-dev.45
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/dist/cjs/components/ComponentToolbarPreview.js +60 -3
- package/dist/cjs/components/ComponentWrapper.js +16 -1
- package/dist/cjs/components/InteractionSuffix.js +9 -70
- package/dist/cjs/components/Render.liquid.js +3 -2
- package/dist/cjs/contexts/PageContext.js +9 -1
- package/dist/cjs/helpers/interaction/index.js +2 -2
- package/dist/cjs/helpers/third-party/appConfig.js +21 -0
- package/dist/cjs/helpers/third-party/appSetting.js +99 -2
- package/dist/cjs/helpers/third-party/constant.js +4 -1
- package/dist/cjs/hooks/animation/useAnimationConfig.js +2 -1
- package/dist/cjs/hooks/animation/useApplyAnimation.js +5 -5
- package/dist/esm/components/ComponentToolbarPreview.js +60 -3
- package/dist/esm/components/ComponentWrapper.js +16 -1
- package/dist/esm/components/InteractionSuffix.js +10 -71
- package/dist/esm/components/Render.liquid.js +3 -2
- package/dist/esm/contexts/PageContext.js +9 -1
- package/dist/esm/helpers/interaction/index.js +2 -2
- package/dist/esm/helpers/third-party/appConfig.js +19 -1
- package/dist/esm/helpers/third-party/appSetting.js +99 -2
- package/dist/esm/helpers/third-party/constant.js +5 -2
- package/dist/esm/hooks/animation/useAnimationConfig.js +2 -1
- package/dist/esm/hooks/animation/useApplyAnimation.js +5 -5
- package/dist/types/index.d.ts +19 -7
- package/package.json +2 -2
|
@@ -60,7 +60,33 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
60
60
|
editingPageType
|
|
61
61
|
]);
|
|
62
62
|
const isSelectOnPage = react.useMemo(()=>interactionData?.isSelectOnPage, [
|
|
63
|
-
interactionData
|
|
63
|
+
interactionData?.isSelectOnPage
|
|
64
|
+
]);
|
|
65
|
+
const settingType = react.useMemo(()=>interactionData?.settingType, [
|
|
66
|
+
interactionData?.settingType
|
|
67
|
+
]);
|
|
68
|
+
const isShowIconInteractionTarget = react.useMemo(()=>{
|
|
69
|
+
return interactionData?.item?.targets?.find((t)=>t.uid === props.uid && t?.type !== 'PAGE') && isSelectOnPage && settingType === 'TARGET';
|
|
70
|
+
}, [
|
|
71
|
+
interactionData?.item?.targets,
|
|
72
|
+
isSelectOnPage,
|
|
73
|
+
props.uid,
|
|
74
|
+
settingType
|
|
75
|
+
]);
|
|
76
|
+
const isShowIconInteractionTrigger = react.useMemo(()=>{
|
|
77
|
+
return interactionData?.item?.self?.uid === props.uid && interactionData?.item?.self.type !== 'PAGE' && isSelectOnPage && settingType === 'TRIGGER';
|
|
78
|
+
}, [
|
|
79
|
+
interactionData?.item?.self?.type,
|
|
80
|
+
interactionData?.item?.self?.uid,
|
|
81
|
+
isSelectOnPage,
|
|
82
|
+
props.uid,
|
|
83
|
+
settingType
|
|
84
|
+
]);
|
|
85
|
+
const isDisplayIconDrag = react.useMemo(()=>{
|
|
86
|
+
return !isShowIconInteractionTarget && !isShowIconInteractionTrigger;
|
|
87
|
+
}, [
|
|
88
|
+
isShowIconInteractionTarget,
|
|
89
|
+
isShowIconInteractionTrigger
|
|
64
90
|
]);
|
|
65
91
|
const { checkDisableDelete, getTooltipText, checkDisableDuplicate } = useToolbarPostPurchase.usePostPurchase(props.uid, props.tag || '');
|
|
66
92
|
const editProductElementList = [
|
|
@@ -338,7 +364,6 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
338
364
|
if (isShopifySection || isThemeSection && !isThemeSectionEditor) return false;
|
|
339
365
|
return constant.ableGenerateContentElements.includes(tag);
|
|
340
366
|
};
|
|
341
|
-
// if (!isActive) return null;
|
|
342
367
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
343
368
|
children: [
|
|
344
369
|
!(props.tag == 'Section' && isThemeSectionEditor) && /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
@@ -353,7 +378,39 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
353
378
|
onClick: (e)=>onShowParent(e),
|
|
354
379
|
"aria-hidden": "true",
|
|
355
380
|
children: [
|
|
356
|
-
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
381
|
+
isShowIconInteractionTrigger && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
382
|
+
className: "gp-hidden interaction-use-custom-element",
|
|
383
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("svg", {
|
|
384
|
+
width: "12",
|
|
385
|
+
height: "13",
|
|
386
|
+
viewBox: "0 0 12 13",
|
|
387
|
+
fill: "none",
|
|
388
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
389
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
390
|
+
fillRule: "evenodd",
|
|
391
|
+
clipRule: "evenodd",
|
|
392
|
+
d: "M4.36823 0.430157C4.51621 0.205309 4.76733 0.0699463 5.0365 0.0699463H9.886C10.2045 0.0699463 10.3952 0.424012 10.2201 0.689974L8.36993 3.49883C8.28234 3.63182 8.37772 3.80885 8.53695 3.80885H10.7492C11.1114 3.80885 11.2871 4.25167 11.0235 4.5L3.03995 12.0213C2.75745 12.2874 2.29956 12.0357 2.37286 11.6546L3.28019 6.93662C3.30391 6.81327 3.20939 6.69885 3.08379 6.69885H0.984895C0.666494 6.69885 0.475723 6.34493 0.650759 6.07895L4.36823 0.430157ZM5.48883 1.20046C5.35424 1.20046 5.22868 1.26814 5.15469 1.38057L2.6027 5.25839C2.51518 5.39137 2.61056 5.56833 2.76976 5.56833H4.27861C4.52982 5.56833 4.71885 5.79718 4.67141 6.04387L4.12087 8.9066C4.08422 9.09717 4.31317 9.22301 4.45442 9.08994L8.49328 5.28494C8.62508 5.16077 8.53721 4.93936 8.35614 4.93936H6.75127C6.4328 4.93936 6.24204 4.5853 6.41722 4.31934L8.26734 1.51048C8.35494 1.37749 8.25956 1.20046 8.10032 1.20046H5.48883Z",
|
|
393
|
+
fill: "#F9F9F9"
|
|
394
|
+
})
|
|
395
|
+
})
|
|
396
|
+
}),
|
|
397
|
+
isShowIconInteractionTarget && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
398
|
+
className: "gp-hidden interaction-use-custom-element",
|
|
399
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("svg", {
|
|
400
|
+
width: "14",
|
|
401
|
+
height: "14",
|
|
402
|
+
viewBox: "0 0 14 14",
|
|
403
|
+
fill: "none",
|
|
404
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
405
|
+
children: /*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
406
|
+
fillRule: "evenodd",
|
|
407
|
+
clipRule: "evenodd",
|
|
408
|
+
d: "M6.2941 2.19513C6.70415 2.13657 6.9891 1.75669 6.93054 1.34663C6.87198 0.936581 6.49209 0.651638 6.08204 0.710196C2.98687 1.15221 0.607666 3.8125 0.607666 7.02978C0.607666 10.5556 3.46588 13.4138 6.99166 13.4138C10.1798 13.4138 12.8209 11.0775 13.2987 8.02354C13.3627 7.61431 13.0828 7.23065 12.6736 7.16663C12.2644 7.1026 11.8807 7.38245 11.8167 7.79169C11.4513 10.127 9.42946 11.9138 6.99166 11.9138C4.2943 11.9138 2.10767 9.72714 2.10767 7.02978C2.10767 4.56958 3.92742 2.53311 6.2941 2.19513ZM9.32325 0.978487C9.59794 0.703796 10.0673 0.833594 10.1618 1.21039L10.648 3.14898C10.6705 3.2384 10.7403 3.30822 10.8297 3.33065L12.7683 3.81691C13.1451 3.91143 13.2749 4.38075 13.0002 4.65544L11.3265 6.32911C11.099 6.55668 10.7758 6.66082 10.4581 6.60891L9.03886 6.37696C8.72123 6.32505 8.39804 6.42918 8.17046 6.65676L7.40064 7.42658C7.16633 7.66089 6.78643 7.66089 6.55211 7.42658C6.3178 7.19227 6.3178 6.81237 6.55211 6.57805L7.32193 5.80823C7.54951 5.58066 7.65364 5.25746 7.60173 4.93983L7.36978 3.52055C7.31787 3.20293 7.42201 2.87973 7.64958 2.65216L9.32325 0.978487ZM8.79074 4.77514C8.82538 4.98713 8.99156 5.15331 9.20355 5.18795L10.2975 5.36674C10.4564 5.3927 10.618 5.34063 10.7317 5.22684L10.9663 4.99227C11.1037 4.85492 11.0388 4.62026 10.8504 4.573L9.98586 4.35615C9.80703 4.3113 9.66739 4.17166 9.62254 3.99283L9.40569 3.12832C9.35843 2.93992 9.12377 2.87502 8.98642 3.01237L8.75185 3.24695C8.63806 3.36073 8.58599 3.52233 8.61195 3.68114L8.79074 4.77514ZM7.02213 4.44284C7.14103 4.83962 6.91577 5.25766 6.51899 5.37657C5.8172 5.58687 5.30708 6.2382 5.30708 7.00672C5.30708 7.94638 6.06883 8.70813 7.00849 8.70813C7.77819 8.70813 8.43033 8.19644 8.6396 7.49302C8.75772 7.096 9.17531 6.86991 9.57233 6.98802C9.96934 7.10614 10.1954 7.52373 10.0773 7.92075C9.68401 9.24279 8.45997 10.2081 7.00849 10.2081C5.2404 10.2081 3.80708 8.77481 3.80708 7.00672C3.80708 5.55746 4.76949 4.33493 6.0884 3.9397C6.48518 3.82079 6.90323 4.04606 7.02213 4.44284Z",
|
|
409
|
+
fill: "#F9F9F9"
|
|
410
|
+
})
|
|
411
|
+
})
|
|
412
|
+
}),
|
|
413
|
+
isDisplayIconDrag && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
357
414
|
"data-toolbar-icon-drag": true,
|
|
358
415
|
children: /*#__PURE__*/ jsxRuntime.jsxs("svg", {
|
|
359
416
|
width: "16",
|
|
@@ -12,6 +12,16 @@ const ComponentWrapper = ({ children, pageType, ...props })=>{
|
|
|
12
12
|
if (props.type === 'section') return null;
|
|
13
13
|
const style = composeAdvanceStyle.composeAdvanceStyle(props.advanced, props.tag, pageType);
|
|
14
14
|
const advanced = props.advanced;
|
|
15
|
+
const interactionAttributes = ()=>{
|
|
16
|
+
let result = {};
|
|
17
|
+
if (props.advanced?.displayInitInteraction !== undefined) {
|
|
18
|
+
result = {
|
|
19
|
+
'display-init': props.advanced?.displayInitInteraction === false ? 'hide' : 'show',
|
|
20
|
+
'gp-interaction-wrapper': ''
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
15
25
|
if (constant.disableWrap.includes(props.tag) && /*#__PURE__*/ react.isValidElement(children)) {
|
|
16
26
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
17
27
|
children: [
|
|
@@ -23,7 +33,11 @@ const ComponentWrapper = ({ children, pageType, ...props })=>{
|
|
|
23
33
|
className: advanced?.cssClass,
|
|
24
34
|
...children.props,
|
|
25
35
|
style,
|
|
26
|
-
advanced
|
|
36
|
+
advanced,
|
|
37
|
+
builderAttrs: {
|
|
38
|
+
...children.props.builderAttrs,
|
|
39
|
+
...interactionAttributes()
|
|
40
|
+
}
|
|
27
41
|
})
|
|
28
42
|
]
|
|
29
43
|
});
|
|
@@ -36,6 +50,7 @@ const ComponentWrapper = ({ children, pageType, ...props })=>{
|
|
|
36
50
|
}),
|
|
37
51
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
38
52
|
style: style,
|
|
53
|
+
...interactionAttributes(),
|
|
39
54
|
className: `${props.uid} ${advanced?.cssClass}`,
|
|
40
55
|
children: children
|
|
41
56
|
})
|
|
@@ -17,18 +17,18 @@ require('dayjs');
|
|
|
17
17
|
var index = require('../helpers/interaction/index.js');
|
|
18
18
|
require('../helpers/convert.js');
|
|
19
19
|
|
|
20
|
-
const InteractionSuffix = ({
|
|
20
|
+
const InteractionSuffix = ({ uid })=>{
|
|
21
21
|
const { closeSelectOnPage } = index.useInteraction();
|
|
22
22
|
const currentInteraction = PageContext.usePageStore((s)=>s.interactionData?.item);
|
|
23
23
|
const isSelectOnPage = PageContext.usePageStore((s)=>s.interactionData?.isSelectOnPage);
|
|
24
24
|
const isCurrentInteractionTarget = react.useMemo(()=>{
|
|
25
|
-
return currentInteraction?.targets?.find((t)=>t.uid === uid);
|
|
25
|
+
return currentInteraction?.targets?.find((t)=>t.uid === uid && t.type !== 'PAGE');
|
|
26
26
|
}, [
|
|
27
27
|
currentInteraction,
|
|
28
28
|
uid
|
|
29
29
|
]);
|
|
30
30
|
const isCurrentInteractionTrigger = react.useMemo(()=>{
|
|
31
|
-
return currentInteraction?.self?.uid === uid;
|
|
31
|
+
return currentInteraction?.self?.uid === uid && currentInteraction?.self?.type !== 'PAGE';
|
|
32
32
|
}, [
|
|
33
33
|
currentInteraction,
|
|
34
34
|
uid
|
|
@@ -39,76 +39,15 @@ const InteractionSuffix = ({ tag, uid })=>{
|
|
|
39
39
|
isCurrentInteractionTarget,
|
|
40
40
|
isCurrentInteractionTrigger
|
|
41
41
|
]);
|
|
42
|
-
const positionOffset = react.useMemo(()=>{
|
|
43
|
-
if (isCurrentInteractionTrigger && isCurrentInteractionTarget) {
|
|
44
|
-
return 80;
|
|
45
|
-
}
|
|
46
|
-
return 40;
|
|
47
|
-
}, [
|
|
48
|
-
isCurrentInteractionTrigger,
|
|
49
|
-
isCurrentInteractionTarget
|
|
50
|
-
]);
|
|
51
42
|
if (!isDisplay) {
|
|
52
43
|
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
53
44
|
}
|
|
54
|
-
return /*#__PURE__*/ jsxRuntime.
|
|
55
|
-
children:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
62
|
-
className: "hidden gp-left-[-40px] gp-left-[-80px] gp-right-[-40px] gp-right-[-80px]"
|
|
63
|
-
}),
|
|
64
|
-
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
65
|
-
className: `gp-hidden gp-absolute interaction-suffix gp-gap-[8px] ${tag == 'Section' ? `gp-left-[-${positionOffset}px]` : `gp-right-[-${positionOffset}px]`}`,
|
|
66
|
-
children: [
|
|
67
|
-
isCurrentInteractionTrigger && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
68
|
-
className: `gp-h-8 gp-rounded-[8px] gp-w-8 gp-bg-[#212121] gp-flex gp-justify-center gp-items-center `,
|
|
69
|
-
children: /*#__PURE__*/ jsxRuntime.jsx("svg", {
|
|
70
|
-
width: "16",
|
|
71
|
-
height: "16",
|
|
72
|
-
viewBox: "0 0 16 16",
|
|
73
|
-
fill: "none",
|
|
74
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
-
children: /*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
76
|
-
fillRule: "evenodd",
|
|
77
|
-
clipRule: "evenodd",
|
|
78
|
-
d: "M12.9196 5.80449C13.0989 5.80449 13.1876 6.02216 13.0595 6.14749L4.83569 14.1892C4.69517 14.3267 4.46149 14.2002 4.49967 14.0074L5.50422 8.93537C5.53483 8.7808 5.41656 8.6368 5.25898 8.6368H3.08019C2.92551 8.6368 2.82938 8.46874 2.90779 8.33541L6.72099 1.85154C6.75692 1.79045 6.8225 1.75293 6.89338 1.75293H12.5729C12.7386 1.75293 12.8324 1.94273 12.7319 2.07435L10.1891 5.40272C10.0634 5.56724 10.1807 5.80449 10.3877 5.80449H12.9196Z",
|
|
79
|
-
fill: "#F9F9F9"
|
|
80
|
-
})
|
|
81
|
-
})
|
|
82
|
-
}),
|
|
83
|
-
isCurrentInteractionTarget && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
84
|
-
className: `gp-h-8 min-w-8 gp-rounded-[8px] gp-w-8 gp-bg-[#212121] gp-flex gp-justify-center gp-items-center`,
|
|
85
|
-
children: /*#__PURE__*/ jsxRuntime.jsxs("svg", {
|
|
86
|
-
width: "16",
|
|
87
|
-
height: "16",
|
|
88
|
-
viewBox: "0 0 16 16",
|
|
89
|
-
fill: "none",
|
|
90
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
91
|
-
children: [
|
|
92
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
93
|
-
d: "M8.58987 2.11238C8.62815 2.66333 8.21254 3.141 7.66158 3.17928C6.73192 3.24386 5.84034 3.57396 5.09276 4.13034C4.34519 4.68673 3.77304 5.44602 3.44429 6.31801C3.11554 7.19 3.04401 8.13803 3.23821 9.04947C3.4324 9.96092 3.88415 10.7975 4.53978 11.4597C5.19541 12.122 6.02737 12.5821 6.93682 12.7854C7.84626 12.9888 8.79496 12.9268 9.67021 12.6068C10.5455 12.2869 11.3105 11.7224 11.8743 10.9804C12.4382 10.2385 12.7772 9.35025 12.8512 8.42129C12.895 7.87074 13.3768 7.45996 13.9273 7.50377C14.4779 7.54758 14.8887 8.0294 14.8449 8.57994C14.7406 9.8906 14.2622 11.1438 13.4667 12.1906C12.6711 13.2374 11.5918 14.0338 10.3569 14.4852C9.12204 14.9367 7.78353 15.0241 6.50041 14.7373C5.2173 14.4504 4.0435 13.8012 3.11848 12.8668C2.19345 11.9324 1.55609 10.7522 1.28211 9.46624C1.00813 8.1803 1.10905 6.84274 1.57287 5.61247C2.03669 4.3822 2.84393 3.31093 3.89867 2.52593C4.95342 1.74093 6.21133 1.27521 7.52297 1.18409C8.07393 1.14581 8.5516 1.56142 8.58987 2.11238Z",
|
|
94
|
-
fill: "#F9F9F9"
|
|
95
|
-
}),
|
|
96
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
97
|
-
fillRule: "evenodd",
|
|
98
|
-
clipRule: "evenodd",
|
|
99
|
-
d: "M11.9757 1.25658C12.184 1.31428 12.3452 1.47958 12.3976 1.68929L12.7872 3.24774L14.3457 3.63736C14.5554 3.68978 14.7207 3.85096 14.7784 4.05928C14.8361 4.2676 14.7773 4.49085 14.6244 4.64371L12.7167 6.55141C12.5677 6.70044 12.3514 6.76035 12.1469 6.70924L10.5688 6.3147L8.42436 8.45912C8.19005 8.69344 7.81015 8.69344 7.57583 8.45912C7.34152 8.22481 7.34152 7.84491 7.57583 7.61059L9.72025 5.46617L9.32572 3.88804C9.2746 3.68357 9.33451 3.46728 9.48354 3.31825L11.3912 1.41054C11.5441 1.25769 11.7674 1.19888 11.9757 1.25658ZM10.8795 5.15545L12.1084 5.46267L13.0266 4.54451L12.1469 4.3246C11.9319 4.27086 11.7641 4.10301 11.7104 3.88804L11.4904 3.0084L10.5723 3.92656L10.8795 5.15545Z",
|
|
100
|
-
fill: "#F9F9F9"
|
|
101
|
-
}),
|
|
102
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
103
|
-
d: "M7.35783 6.45343C7.87208 6.25201 8.12568 5.67185 7.92426 5.15761C7.72284 4.64336 7.14268 4.38976 6.62844 4.59118C6.05705 4.81498 5.55049 5.17772 5.15453 5.64655C4.75858 6.11538 4.4857 6.67552 4.36055 7.27631C4.23539 7.87709 4.26189 8.49961 4.43764 9.08758C4.6134 9.67555 4.93289 10.2105 5.36727 10.6439C5.80165 11.0774 6.33722 11.3958 6.92556 11.5702C7.51391 11.7445 8.13643 11.7695 8.73683 11.6427C9.33723 11.5158 9.89652 11.2413 10.3641 10.8439C10.8318 10.4465 11.1929 9.93885 11.4151 9.36679C11.615 8.85196 11.3597 8.27254 10.8449 8.07262C10.3301 7.87269 9.75066 8.12797 9.55073 8.6428C9.44887 8.9051 9.28329 9.1378 9.06901 9.3199C8.85474 9.50199 8.59851 9.62774 8.32352 9.68582C8.04853 9.7439 7.76341 9.73249 7.49394 9.65262C7.22445 9.57274 6.97907 9.42691 6.78001 9.22825C6.58093 9.0296 6.43446 8.78439 6.35386 8.51478C6.27327 8.24517 6.26112 7.9597 6.31851 7.6842C6.37591 7.4087 6.50102 7.1519 6.68251 6.93702C6.86399 6.72214 7.0961 6.55595 7.35783 6.45343Z",
|
|
104
|
-
fill: "#F9F9F9"
|
|
105
|
-
})
|
|
106
|
-
]
|
|
107
|
-
})
|
|
108
|
-
})
|
|
109
|
-
]
|
|
110
|
-
})
|
|
111
|
-
]
|
|
45
|
+
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
46
|
+
children: isSelectOnPage && /*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
47
|
+
className: "gp-bg-[#F4F4F4] gp-px-2 gp-py-0.5 gp-rounded-lg gp-text-[#212121] gp-text-sm gp-font-medium gp-hidden interaction-use-custom-element",
|
|
48
|
+
onClick: closeSelectOnPage,
|
|
49
|
+
children: "Use element"
|
|
50
|
+
})
|
|
112
51
|
});
|
|
113
52
|
};
|
|
114
53
|
|
|
@@ -215,7 +215,7 @@ const RenderCustomCode = (item)=>{
|
|
|
215
215
|
};
|
|
216
216
|
const appendAnimation = (props, liquid)=>{
|
|
217
217
|
const { advanced, tag } = props;
|
|
218
|
-
const { animation, op: opacity, hasAnimationInteraction, displayInitInteraction
|
|
218
|
+
const { animation, op: opacity, hasAnimationInteraction, displayInitInteraction } = advanced ?? {};
|
|
219
219
|
const getAnimationType = (settings, type)=>{
|
|
220
220
|
return settings?.triggerConfig?.[type]?.animation ?? 'none';
|
|
221
221
|
};
|
|
@@ -243,7 +243,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
243
243
|
};
|
|
244
244
|
return render.template`
|
|
245
245
|
<gp-animation
|
|
246
|
-
|
|
246
|
+
gp-interaction-wrapper
|
|
247
|
+
display-init="${displayInitInteraction === false ? 'hide' : 'show'}"
|
|
247
248
|
gp-data='${JSON.stringify({
|
|
248
249
|
config: animation,
|
|
249
250
|
tag,
|
|
@@ -56,6 +56,14 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
56
56
|
selectType
|
|
57
57
|
}
|
|
58
58
|
}));
|
|
59
|
+
},
|
|
60
|
+
setInteractionSettingType: (settingType)=>{
|
|
61
|
+
set((state)=>({
|
|
62
|
+
interactionData: {
|
|
63
|
+
...state.interactionData,
|
|
64
|
+
settingType
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
59
67
|
}
|
|
60
68
|
}));
|
|
61
69
|
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
@@ -65,7 +73,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
65
73
|
productOffers,
|
|
66
74
|
publicStoreFrontData,
|
|
67
75
|
interactionData: {
|
|
68
|
-
selectType: '
|
|
76
|
+
selectType: 'ELEMENT'
|
|
69
77
|
}
|
|
70
78
|
}), [
|
|
71
79
|
dynamicProduct,
|
|
@@ -27,8 +27,8 @@ const useInteraction = ()=>{
|
|
|
27
27
|
if (callback) callback(params);
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
const trigger = ({ event, data, selector })=>{
|
|
31
|
-
const element = document.querySelector(selector);
|
|
30
|
+
const trigger = ({ event, data, selector, element: elementParam })=>{
|
|
31
|
+
const element = elementParam || document.querySelector(selector);
|
|
32
32
|
if (!element) return;
|
|
33
33
|
const eventDispatch = new CustomEvent(event, {
|
|
34
34
|
bubbles: false,
|
|
@@ -108,6 +108,24 @@ const PreorderNowWodPresaleConfig = {
|
|
|
108
108
|
appId: 'fdf17d17-ef12-4a7b-8383-20cc1fc2a4b6'
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
+
const YotpoReviewsV3UgcConfig = {
|
|
112
|
+
YotpoReviews: {
|
|
113
|
+
appName: 'yotpo-product-reviews-ugc',
|
|
114
|
+
appId: 'eb7dfd7d-db44-4334-bc49-c893b51b36cf'
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const WhatmoreShoppableVideosreelConfig = {
|
|
118
|
+
WhatmoreShoppableVideosreel: {
|
|
119
|
+
appName: 'whatmore-shoppable-videos',
|
|
120
|
+
appId: '20db8a72-315a-4364-8885-64219ee48303'
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const ProductOptionsCustomizerConfig = {
|
|
124
|
+
ProductOptionsCustomizer: {
|
|
125
|
+
appName: 'product-options-customizer',
|
|
126
|
+
appId: '6857ca6c-35eb-4b6f-9d58-a039f31d9406'
|
|
127
|
+
}
|
|
128
|
+
};
|
|
111
129
|
|
|
112
130
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
113
131
|
exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
|
|
@@ -118,6 +136,7 @@ exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
|
|
|
118
136
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
119
137
|
exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
|
|
120
138
|
exports.PreorderNowWodPresaleConfig = PreorderNowWodPresaleConfig;
|
|
139
|
+
exports.ProductOptionsCustomizerConfig = ProductOptionsCustomizerConfig;
|
|
121
140
|
exports.PumperBundlesVolumeDiscountConfig = PumperBundlesVolumeDiscountConfig;
|
|
122
141
|
exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
123
142
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
@@ -127,3 +146,5 @@ exports.SimpleBundlesKitsConfig = SimpleBundlesKitsConfig;
|
|
|
127
146
|
exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
|
|
128
147
|
exports.SubifySubscriptionsConfig = SubifySubscriptionsConfig;
|
|
129
148
|
exports.UnlimitedBundlesDiscountsConfig = UnlimitedBundlesDiscountsConfig;
|
|
149
|
+
exports.WhatmoreShoppableVideosreelConfig = WhatmoreShoppableVideosreelConfig;
|
|
150
|
+
exports.YotpoReviewsV3UgcConfig = YotpoReviewsV3UgcConfig;
|
|
@@ -88,6 +88,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
88
88
|
bundle_id: appSetting?.['customBundleId']
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
+
case 'PumperBundlesVolumeDiscount':
|
|
92
|
+
{
|
|
93
|
+
return {
|
|
94
|
+
...currentSetting,
|
|
95
|
+
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
96
|
+
};
|
|
97
|
+
}
|
|
91
98
|
default:
|
|
92
99
|
return currentSetting;
|
|
93
100
|
}
|
|
@@ -107,7 +114,7 @@ const ReviewxpoProductReviewsApp = {
|
|
|
107
114
|
const PumperBundlesVolumeDiscount = {
|
|
108
115
|
PumperBundlesVolumeDiscount: {
|
|
109
116
|
'app-block': {
|
|
110
|
-
selected_product: '{{product}}',
|
|
117
|
+
selected_product: '{{ product }}',
|
|
111
118
|
using_page_builder: false
|
|
112
119
|
}
|
|
113
120
|
}
|
|
@@ -197,7 +204,96 @@ const PreorderNowWodPresale = {
|
|
|
197
204
|
'popups-block': null
|
|
198
205
|
}
|
|
199
206
|
};
|
|
207
|
+
const YotpoReviews = {
|
|
208
|
+
YotpoReviews: {
|
|
209
|
+
reviews: {
|
|
210
|
+
product: '{{ product }}'
|
|
211
|
+
},
|
|
212
|
+
'star-rating': {
|
|
213
|
+
product: '{{ product }}'
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const WhatmoreShoppableVideosreel = {
|
|
218
|
+
WhatmoreShoppableVideosreel: {
|
|
219
|
+
'app-block': {
|
|
220
|
+
"heading": "Watch and Buy",
|
|
221
|
+
"template-type": "template-f",
|
|
222
|
+
"show-views": "show",
|
|
223
|
+
"ui-theme": "round",
|
|
224
|
+
"color-primary": "#343434",
|
|
225
|
+
"color-secondary": "#343434",
|
|
226
|
+
"title-font": "poppins_n4",
|
|
227
|
+
"primary-font": "poppins_n4",
|
|
228
|
+
"title-font-size": 40,
|
|
229
|
+
"title-font-size-portrait": 24,
|
|
230
|
+
"landscape-padding": 40,
|
|
231
|
+
"top-bottom-padding": 20,
|
|
232
|
+
"scroll-video-tile-size": 80,
|
|
233
|
+
"scroll-video-tile-size-portrait": 80,
|
|
234
|
+
"min-height": 380
|
|
235
|
+
},
|
|
236
|
+
'app-block-banner': {
|
|
237
|
+
"template-type": "template-banner-a",
|
|
238
|
+
"ui-theme": "round",
|
|
239
|
+
"banner-video-tile-size": 80
|
|
240
|
+
},
|
|
241
|
+
'app-block-collections': {
|
|
242
|
+
"collectionHeading": "W",
|
|
243
|
+
"template-type": "template-collections-b",
|
|
244
|
+
"ui-theme": "round",
|
|
245
|
+
"color-secondary": "#343434",
|
|
246
|
+
"primary-font": "poppins_n4",
|
|
247
|
+
"tile-size": 60,
|
|
248
|
+
"tile-size-portrait": 60,
|
|
249
|
+
"min-height": 250
|
|
250
|
+
},
|
|
251
|
+
'app-block-stories': {
|
|
252
|
+
"template-type": "template-stories-a",
|
|
253
|
+
"ui-theme": "round",
|
|
254
|
+
"color-primary": "#343434",
|
|
255
|
+
"color-secondary": "#343434",
|
|
256
|
+
"primary-font": "poppins_n4",
|
|
257
|
+
"stories-top-bottom-padding": 0,
|
|
258
|
+
"story-tile-size": 40,
|
|
259
|
+
"story-tile-size-desktop": 40
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
const ProductOptionsCustomizer = {
|
|
264
|
+
ProductOptionsCustomizer: {
|
|
265
|
+
'product-page-customizer': {
|
|
266
|
+
"pc_container_size": 100,
|
|
267
|
+
"pc_show_options_total": "initial",
|
|
268
|
+
"pc_customizations_total_text": "Customizations Total:",
|
|
269
|
+
"pc_show_preloader": "hide",
|
|
270
|
+
"pc_preloader_color": "",
|
|
271
|
+
"pc_ignore_redirect_command": true,
|
|
272
|
+
"pc_basic_label_text_color": "#000000",
|
|
273
|
+
"pc_basic_label_font_size": 14,
|
|
274
|
+
"pc_basic_label_bolden": "unset",
|
|
275
|
+
"pc_basic_label_space_above": 0,
|
|
276
|
+
"pc_basic_option_background_color": "#FFFFFF",
|
|
277
|
+
"pc_basic_option_text_color": "#000000",
|
|
278
|
+
"pc_basic_option_border_color": "#000000",
|
|
279
|
+
"pc_basic_option_border_style": "solid",
|
|
280
|
+
"pc_basic_option_border_width": 1,
|
|
281
|
+
"pc_basic_option_curve_the_corners": "none",
|
|
282
|
+
"pc_basic_option_font_size": 14,
|
|
283
|
+
"pc_basic_option_bolden": "none",
|
|
284
|
+
"pc_basic_option_width": 100,
|
|
285
|
+
"pc_basic_option_space_above": 0,
|
|
286
|
+
"pc_basic_option_space_below": 0,
|
|
287
|
+
"pc_basic_option_space_inside": 10,
|
|
288
|
+
"pc_advanced_custom_css": "",
|
|
289
|
+
"pc_advanced_custom_js": "",
|
|
290
|
+
"pc_show_image_swatch_preview": false
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
};
|
|
200
294
|
const composeSettingsByWidgetType = {
|
|
295
|
+
...ProductOptionsCustomizer,
|
|
296
|
+
...WhatmoreShoppableVideosreel,
|
|
201
297
|
...JunipProductReviewsUgc,
|
|
202
298
|
...FlyBundlesUpsellsFbt,
|
|
203
299
|
...PreorderNowWodPresale,
|
|
@@ -215,7 +311,8 @@ const composeSettingsByWidgetType = {
|
|
|
215
311
|
...RechargeSubscriptions,
|
|
216
312
|
...LoyaltyRewardsReferrals,
|
|
217
313
|
...SubifySubscriptions,
|
|
218
|
-
...SelleasyWidget
|
|
314
|
+
...SelleasyWidget,
|
|
315
|
+
...YotpoReviews
|
|
219
316
|
};
|
|
220
317
|
|
|
221
318
|
exports.composeSettingsByWidgetType = composeSettingsByWidgetType;
|
|
@@ -20,7 +20,10 @@ const mapShopifyAppMeta = {
|
|
|
20
20
|
...appConfig.PreorderNowPreOrderPqConfig,
|
|
21
21
|
...appConfig.FlyBundlesUpsellsFbtConfig,
|
|
22
22
|
...appConfig.JunipProductReviewsUgcConfig,
|
|
23
|
-
...appConfig.PreorderNowWodPresaleConfig
|
|
23
|
+
...appConfig.PreorderNowWodPresaleConfig,
|
|
24
|
+
...appConfig.YotpoReviewsV3UgcConfig,
|
|
25
|
+
...appConfig.WhatmoreShoppableVideosreelConfig,
|
|
26
|
+
...appConfig.ProductOptionsCustomizerConfig
|
|
24
27
|
};
|
|
25
28
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
26
29
|
|
|
@@ -25,13 +25,13 @@ const useApplyAnimation = ({ props })=>{
|
|
|
25
25
|
setAnimationOnFinish,
|
|
26
26
|
setToolbarActive
|
|
27
27
|
});
|
|
28
|
-
const generateAnimation = react.useCallback(({ target, setting, type })=>{
|
|
29
|
-
return animation[type](target, setting);
|
|
28
|
+
const generateAnimation = react.useCallback(({ target, setting, type, reverse })=>{
|
|
29
|
+
return animation[type](target, setting, reverse);
|
|
30
30
|
}, [
|
|
31
31
|
animation
|
|
32
32
|
]);
|
|
33
33
|
const initListAnimations = react.useCallback(()=>{
|
|
34
|
-
const { type, setting } = getAnimationConfig();
|
|
34
|
+
const { type, setting, reverse } = getAnimationConfig();
|
|
35
35
|
if (!type || type === animations.AnimationType.None || !targetObjects.current.length) {
|
|
36
36
|
cancelAnimation();
|
|
37
37
|
return;
|
|
@@ -39,9 +39,9 @@ const useApplyAnimation = ({ props })=>{
|
|
|
39
39
|
const listAnimations = targetObjects.current.map((item)=>generateAnimation({
|
|
40
40
|
type,
|
|
41
41
|
setting,
|
|
42
|
-
target: item.target
|
|
42
|
+
target: item.target,
|
|
43
|
+
reverse
|
|
43
44
|
}));
|
|
44
|
-
console.log('listAnimations', listAnimations);
|
|
45
45
|
cancelAnimation();
|
|
46
46
|
setAnimation(listAnimations);
|
|
47
47
|
}, [
|
|
@@ -56,7 +56,33 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
56
56
|
editingPageType
|
|
57
57
|
]);
|
|
58
58
|
const isSelectOnPage = useMemo(()=>interactionData?.isSelectOnPage, [
|
|
59
|
-
interactionData
|
|
59
|
+
interactionData?.isSelectOnPage
|
|
60
|
+
]);
|
|
61
|
+
const settingType = useMemo(()=>interactionData?.settingType, [
|
|
62
|
+
interactionData?.settingType
|
|
63
|
+
]);
|
|
64
|
+
const isShowIconInteractionTarget = useMemo(()=>{
|
|
65
|
+
return interactionData?.item?.targets?.find((t)=>t.uid === props.uid && t?.type !== 'PAGE') && isSelectOnPage && settingType === 'TARGET';
|
|
66
|
+
}, [
|
|
67
|
+
interactionData?.item?.targets,
|
|
68
|
+
isSelectOnPage,
|
|
69
|
+
props.uid,
|
|
70
|
+
settingType
|
|
71
|
+
]);
|
|
72
|
+
const isShowIconInteractionTrigger = useMemo(()=>{
|
|
73
|
+
return interactionData?.item?.self?.uid === props.uid && interactionData?.item?.self.type !== 'PAGE' && isSelectOnPage && settingType === 'TRIGGER';
|
|
74
|
+
}, [
|
|
75
|
+
interactionData?.item?.self?.type,
|
|
76
|
+
interactionData?.item?.self?.uid,
|
|
77
|
+
isSelectOnPage,
|
|
78
|
+
props.uid,
|
|
79
|
+
settingType
|
|
80
|
+
]);
|
|
81
|
+
const isDisplayIconDrag = useMemo(()=>{
|
|
82
|
+
return !isShowIconInteractionTarget && !isShowIconInteractionTrigger;
|
|
83
|
+
}, [
|
|
84
|
+
isShowIconInteractionTarget,
|
|
85
|
+
isShowIconInteractionTrigger
|
|
60
86
|
]);
|
|
61
87
|
const { checkDisableDelete, getTooltipText, checkDisableDuplicate } = usePostPurchase(props.uid, props.tag || '');
|
|
62
88
|
const editProductElementList = [
|
|
@@ -334,7 +360,6 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
334
360
|
if (isShopifySection || isThemeSection && !isThemeSectionEditor) return false;
|
|
335
361
|
return ableGenerateContentElements.includes(tag);
|
|
336
362
|
};
|
|
337
|
-
// if (!isActive) return null;
|
|
338
363
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
339
364
|
children: [
|
|
340
365
|
!(props.tag == 'Section' && isThemeSectionEditor) && /*#__PURE__*/ jsxs("div", {
|
|
@@ -349,7 +374,39 @@ const ComponentToolbarPreview = (props)=>{
|
|
|
349
374
|
onClick: (e)=>onShowParent(e),
|
|
350
375
|
"aria-hidden": "true",
|
|
351
376
|
children: [
|
|
352
|
-
/*#__PURE__*/ jsx("div", {
|
|
377
|
+
isShowIconInteractionTrigger && /*#__PURE__*/ jsx("div", {
|
|
378
|
+
className: "gp-hidden interaction-use-custom-element",
|
|
379
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
380
|
+
width: "12",
|
|
381
|
+
height: "13",
|
|
382
|
+
viewBox: "0 0 12 13",
|
|
383
|
+
fill: "none",
|
|
384
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
385
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
386
|
+
fillRule: "evenodd",
|
|
387
|
+
clipRule: "evenodd",
|
|
388
|
+
d: "M4.36823 0.430157C4.51621 0.205309 4.76733 0.0699463 5.0365 0.0699463H9.886C10.2045 0.0699463 10.3952 0.424012 10.2201 0.689974L8.36993 3.49883C8.28234 3.63182 8.37772 3.80885 8.53695 3.80885H10.7492C11.1114 3.80885 11.2871 4.25167 11.0235 4.5L3.03995 12.0213C2.75745 12.2874 2.29956 12.0357 2.37286 11.6546L3.28019 6.93662C3.30391 6.81327 3.20939 6.69885 3.08379 6.69885H0.984895C0.666494 6.69885 0.475723 6.34493 0.650759 6.07895L4.36823 0.430157ZM5.48883 1.20046C5.35424 1.20046 5.22868 1.26814 5.15469 1.38057L2.6027 5.25839C2.51518 5.39137 2.61056 5.56833 2.76976 5.56833H4.27861C4.52982 5.56833 4.71885 5.79718 4.67141 6.04387L4.12087 8.9066C4.08422 9.09717 4.31317 9.22301 4.45442 9.08994L8.49328 5.28494C8.62508 5.16077 8.53721 4.93936 8.35614 4.93936H6.75127C6.4328 4.93936 6.24204 4.5853 6.41722 4.31934L8.26734 1.51048C8.35494 1.37749 8.25956 1.20046 8.10032 1.20046H5.48883Z",
|
|
389
|
+
fill: "#F9F9F9"
|
|
390
|
+
})
|
|
391
|
+
})
|
|
392
|
+
}),
|
|
393
|
+
isShowIconInteractionTarget && /*#__PURE__*/ jsx("div", {
|
|
394
|
+
className: "gp-hidden interaction-use-custom-element",
|
|
395
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
396
|
+
width: "14",
|
|
397
|
+
height: "14",
|
|
398
|
+
viewBox: "0 0 14 14",
|
|
399
|
+
fill: "none",
|
|
400
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
401
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
402
|
+
fillRule: "evenodd",
|
|
403
|
+
clipRule: "evenodd",
|
|
404
|
+
d: "M6.2941 2.19513C6.70415 2.13657 6.9891 1.75669 6.93054 1.34663C6.87198 0.936581 6.49209 0.651638 6.08204 0.710196C2.98687 1.15221 0.607666 3.8125 0.607666 7.02978C0.607666 10.5556 3.46588 13.4138 6.99166 13.4138C10.1798 13.4138 12.8209 11.0775 13.2987 8.02354C13.3627 7.61431 13.0828 7.23065 12.6736 7.16663C12.2644 7.1026 11.8807 7.38245 11.8167 7.79169C11.4513 10.127 9.42946 11.9138 6.99166 11.9138C4.2943 11.9138 2.10767 9.72714 2.10767 7.02978C2.10767 4.56958 3.92742 2.53311 6.2941 2.19513ZM9.32325 0.978487C9.59794 0.703796 10.0673 0.833594 10.1618 1.21039L10.648 3.14898C10.6705 3.2384 10.7403 3.30822 10.8297 3.33065L12.7683 3.81691C13.1451 3.91143 13.2749 4.38075 13.0002 4.65544L11.3265 6.32911C11.099 6.55668 10.7758 6.66082 10.4581 6.60891L9.03886 6.37696C8.72123 6.32505 8.39804 6.42918 8.17046 6.65676L7.40064 7.42658C7.16633 7.66089 6.78643 7.66089 6.55211 7.42658C6.3178 7.19227 6.3178 6.81237 6.55211 6.57805L7.32193 5.80823C7.54951 5.58066 7.65364 5.25746 7.60173 4.93983L7.36978 3.52055C7.31787 3.20293 7.42201 2.87973 7.64958 2.65216L9.32325 0.978487ZM8.79074 4.77514C8.82538 4.98713 8.99156 5.15331 9.20355 5.18795L10.2975 5.36674C10.4564 5.3927 10.618 5.34063 10.7317 5.22684L10.9663 4.99227C11.1037 4.85492 11.0388 4.62026 10.8504 4.573L9.98586 4.35615C9.80703 4.3113 9.66739 4.17166 9.62254 3.99283L9.40569 3.12832C9.35843 2.93992 9.12377 2.87502 8.98642 3.01237L8.75185 3.24695C8.63806 3.36073 8.58599 3.52233 8.61195 3.68114L8.79074 4.77514ZM7.02213 4.44284C7.14103 4.83962 6.91577 5.25766 6.51899 5.37657C5.8172 5.58687 5.30708 6.2382 5.30708 7.00672C5.30708 7.94638 6.06883 8.70813 7.00849 8.70813C7.77819 8.70813 8.43033 8.19644 8.6396 7.49302C8.75772 7.096 9.17531 6.86991 9.57233 6.98802C9.96934 7.10614 10.1954 7.52373 10.0773 7.92075C9.68401 9.24279 8.45997 10.2081 7.00849 10.2081C5.2404 10.2081 3.80708 8.77481 3.80708 7.00672C3.80708 5.55746 4.76949 4.33493 6.0884 3.9397C6.48518 3.82079 6.90323 4.04606 7.02213 4.44284Z",
|
|
405
|
+
fill: "#F9F9F9"
|
|
406
|
+
})
|
|
407
|
+
})
|
|
408
|
+
}),
|
|
409
|
+
isDisplayIconDrag && /*#__PURE__*/ jsx("div", {
|
|
353
410
|
"data-toolbar-icon-drag": true,
|
|
354
411
|
children: /*#__PURE__*/ jsxs("svg", {
|
|
355
412
|
width: "16",
|
|
@@ -8,6 +8,16 @@ const ComponentWrapper = ({ children, pageType, ...props })=>{
|
|
|
8
8
|
if (props.type === 'section') return null;
|
|
9
9
|
const style = composeAdvanceStyle(props.advanced, props.tag, pageType);
|
|
10
10
|
const advanced = props.advanced;
|
|
11
|
+
const interactionAttributes = ()=>{
|
|
12
|
+
let result = {};
|
|
13
|
+
if (props.advanced?.displayInitInteraction !== undefined) {
|
|
14
|
+
result = {
|
|
15
|
+
'display-init': props.advanced?.displayInitInteraction === false ? 'hide' : 'show',
|
|
16
|
+
'gp-interaction-wrapper': ''
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
11
21
|
if (disableWrap.includes(props.tag) && /*#__PURE__*/ isValidElement(children)) {
|
|
12
22
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
13
23
|
children: [
|
|
@@ -19,7 +29,11 @@ const ComponentWrapper = ({ children, pageType, ...props })=>{
|
|
|
19
29
|
className: advanced?.cssClass,
|
|
20
30
|
...children.props,
|
|
21
31
|
style,
|
|
22
|
-
advanced
|
|
32
|
+
advanced,
|
|
33
|
+
builderAttrs: {
|
|
34
|
+
...children.props.builderAttrs,
|
|
35
|
+
...interactionAttributes()
|
|
36
|
+
}
|
|
23
37
|
})
|
|
24
38
|
]
|
|
25
39
|
});
|
|
@@ -32,6 +46,7 @@ const ComponentWrapper = ({ children, pageType, ...props })=>{
|
|
|
32
46
|
}),
|
|
33
47
|
/*#__PURE__*/ jsx("div", {
|
|
34
48
|
style: style,
|
|
49
|
+
...interactionAttributes(),
|
|
35
50
|
className: `${props.uid} ${advanced?.cssClass}`,
|
|
36
51
|
children: children
|
|
37
52
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, Fragment
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import 'zustand';
|
|
4
4
|
import 'swr';
|
|
@@ -15,18 +15,18 @@ import 'dayjs';
|
|
|
15
15
|
import { useInteraction } from '../helpers/interaction/index.js';
|
|
16
16
|
import '../helpers/convert.js';
|
|
17
17
|
|
|
18
|
-
const InteractionSuffix = ({
|
|
18
|
+
const InteractionSuffix = ({ uid })=>{
|
|
19
19
|
const { closeSelectOnPage } = useInteraction();
|
|
20
20
|
const currentInteraction = usePageStore((s)=>s.interactionData?.item);
|
|
21
21
|
const isSelectOnPage = usePageStore((s)=>s.interactionData?.isSelectOnPage);
|
|
22
22
|
const isCurrentInteractionTarget = useMemo(()=>{
|
|
23
|
-
return currentInteraction?.targets?.find((t)=>t.uid === uid);
|
|
23
|
+
return currentInteraction?.targets?.find((t)=>t.uid === uid && t.type !== 'PAGE');
|
|
24
24
|
}, [
|
|
25
25
|
currentInteraction,
|
|
26
26
|
uid
|
|
27
27
|
]);
|
|
28
28
|
const isCurrentInteractionTrigger = useMemo(()=>{
|
|
29
|
-
return currentInteraction?.self?.uid === uid;
|
|
29
|
+
return currentInteraction?.self?.uid === uid && currentInteraction?.self?.type !== 'PAGE';
|
|
30
30
|
}, [
|
|
31
31
|
currentInteraction,
|
|
32
32
|
uid
|
|
@@ -37,76 +37,15 @@ const InteractionSuffix = ({ tag, uid })=>{
|
|
|
37
37
|
isCurrentInteractionTarget,
|
|
38
38
|
isCurrentInteractionTrigger
|
|
39
39
|
]);
|
|
40
|
-
const positionOffset = useMemo(()=>{
|
|
41
|
-
if (isCurrentInteractionTrigger && isCurrentInteractionTarget) {
|
|
42
|
-
return 80;
|
|
43
|
-
}
|
|
44
|
-
return 40;
|
|
45
|
-
}, [
|
|
46
|
-
isCurrentInteractionTrigger,
|
|
47
|
-
isCurrentInteractionTarget
|
|
48
|
-
]);
|
|
49
40
|
if (!isDisplay) {
|
|
50
41
|
return /*#__PURE__*/ jsx(Fragment, {});
|
|
51
42
|
}
|
|
52
|
-
return /*#__PURE__*/
|
|
53
|
-
children:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
/*#__PURE__*/ jsx("div", {
|
|
60
|
-
className: "hidden gp-left-[-40px] gp-left-[-80px] gp-right-[-40px] gp-right-[-80px]"
|
|
61
|
-
}),
|
|
62
|
-
/*#__PURE__*/ jsxs("div", {
|
|
63
|
-
className: `gp-hidden gp-absolute interaction-suffix gp-gap-[8px] ${tag == 'Section' ? `gp-left-[-${positionOffset}px]` : `gp-right-[-${positionOffset}px]`}`,
|
|
64
|
-
children: [
|
|
65
|
-
isCurrentInteractionTrigger && /*#__PURE__*/ jsx("div", {
|
|
66
|
-
className: `gp-h-8 gp-rounded-[8px] gp-w-8 gp-bg-[#212121] gp-flex gp-justify-center gp-items-center `,
|
|
67
|
-
children: /*#__PURE__*/ jsx("svg", {
|
|
68
|
-
width: "16",
|
|
69
|
-
height: "16",
|
|
70
|
-
viewBox: "0 0 16 16",
|
|
71
|
-
fill: "none",
|
|
72
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
73
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
74
|
-
fillRule: "evenodd",
|
|
75
|
-
clipRule: "evenodd",
|
|
76
|
-
d: "M12.9196 5.80449C13.0989 5.80449 13.1876 6.02216 13.0595 6.14749L4.83569 14.1892C4.69517 14.3267 4.46149 14.2002 4.49967 14.0074L5.50422 8.93537C5.53483 8.7808 5.41656 8.6368 5.25898 8.6368H3.08019C2.92551 8.6368 2.82938 8.46874 2.90779 8.33541L6.72099 1.85154C6.75692 1.79045 6.8225 1.75293 6.89338 1.75293H12.5729C12.7386 1.75293 12.8324 1.94273 12.7319 2.07435L10.1891 5.40272C10.0634 5.56724 10.1807 5.80449 10.3877 5.80449H12.9196Z",
|
|
77
|
-
fill: "#F9F9F9"
|
|
78
|
-
})
|
|
79
|
-
})
|
|
80
|
-
}),
|
|
81
|
-
isCurrentInteractionTarget && /*#__PURE__*/ jsx("div", {
|
|
82
|
-
className: `gp-h-8 min-w-8 gp-rounded-[8px] gp-w-8 gp-bg-[#212121] gp-flex gp-justify-center gp-items-center`,
|
|
83
|
-
children: /*#__PURE__*/ jsxs("svg", {
|
|
84
|
-
width: "16",
|
|
85
|
-
height: "16",
|
|
86
|
-
viewBox: "0 0 16 16",
|
|
87
|
-
fill: "none",
|
|
88
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
-
children: [
|
|
90
|
-
/*#__PURE__*/ jsx("path", {
|
|
91
|
-
d: "M8.58987 2.11238C8.62815 2.66333 8.21254 3.141 7.66158 3.17928C6.73192 3.24386 5.84034 3.57396 5.09276 4.13034C4.34519 4.68673 3.77304 5.44602 3.44429 6.31801C3.11554 7.19 3.04401 8.13803 3.23821 9.04947C3.4324 9.96092 3.88415 10.7975 4.53978 11.4597C5.19541 12.122 6.02737 12.5821 6.93682 12.7854C7.84626 12.9888 8.79496 12.9268 9.67021 12.6068C10.5455 12.2869 11.3105 11.7224 11.8743 10.9804C12.4382 10.2385 12.7772 9.35025 12.8512 8.42129C12.895 7.87074 13.3768 7.45996 13.9273 7.50377C14.4779 7.54758 14.8887 8.0294 14.8449 8.57994C14.7406 9.8906 14.2622 11.1438 13.4667 12.1906C12.6711 13.2374 11.5918 14.0338 10.3569 14.4852C9.12204 14.9367 7.78353 15.0241 6.50041 14.7373C5.2173 14.4504 4.0435 13.8012 3.11848 12.8668C2.19345 11.9324 1.55609 10.7522 1.28211 9.46624C1.00813 8.1803 1.10905 6.84274 1.57287 5.61247C2.03669 4.3822 2.84393 3.31093 3.89867 2.52593C4.95342 1.74093 6.21133 1.27521 7.52297 1.18409C8.07393 1.14581 8.5516 1.56142 8.58987 2.11238Z",
|
|
92
|
-
fill: "#F9F9F9"
|
|
93
|
-
}),
|
|
94
|
-
/*#__PURE__*/ jsx("path", {
|
|
95
|
-
fillRule: "evenodd",
|
|
96
|
-
clipRule: "evenodd",
|
|
97
|
-
d: "M11.9757 1.25658C12.184 1.31428 12.3452 1.47958 12.3976 1.68929L12.7872 3.24774L14.3457 3.63736C14.5554 3.68978 14.7207 3.85096 14.7784 4.05928C14.8361 4.2676 14.7773 4.49085 14.6244 4.64371L12.7167 6.55141C12.5677 6.70044 12.3514 6.76035 12.1469 6.70924L10.5688 6.3147L8.42436 8.45912C8.19005 8.69344 7.81015 8.69344 7.57583 8.45912C7.34152 8.22481 7.34152 7.84491 7.57583 7.61059L9.72025 5.46617L9.32572 3.88804C9.2746 3.68357 9.33451 3.46728 9.48354 3.31825L11.3912 1.41054C11.5441 1.25769 11.7674 1.19888 11.9757 1.25658ZM10.8795 5.15545L12.1084 5.46267L13.0266 4.54451L12.1469 4.3246C11.9319 4.27086 11.7641 4.10301 11.7104 3.88804L11.4904 3.0084L10.5723 3.92656L10.8795 5.15545Z",
|
|
98
|
-
fill: "#F9F9F9"
|
|
99
|
-
}),
|
|
100
|
-
/*#__PURE__*/ jsx("path", {
|
|
101
|
-
d: "M7.35783 6.45343C7.87208 6.25201 8.12568 5.67185 7.92426 5.15761C7.72284 4.64336 7.14268 4.38976 6.62844 4.59118C6.05705 4.81498 5.55049 5.17772 5.15453 5.64655C4.75858 6.11538 4.4857 6.67552 4.36055 7.27631C4.23539 7.87709 4.26189 8.49961 4.43764 9.08758C4.6134 9.67555 4.93289 10.2105 5.36727 10.6439C5.80165 11.0774 6.33722 11.3958 6.92556 11.5702C7.51391 11.7445 8.13643 11.7695 8.73683 11.6427C9.33723 11.5158 9.89652 11.2413 10.3641 10.8439C10.8318 10.4465 11.1929 9.93885 11.4151 9.36679C11.615 8.85196 11.3597 8.27254 10.8449 8.07262C10.3301 7.87269 9.75066 8.12797 9.55073 8.6428C9.44887 8.9051 9.28329 9.1378 9.06901 9.3199C8.85474 9.50199 8.59851 9.62774 8.32352 9.68582C8.04853 9.7439 7.76341 9.73249 7.49394 9.65262C7.22445 9.57274 6.97907 9.42691 6.78001 9.22825C6.58093 9.0296 6.43446 8.78439 6.35386 8.51478C6.27327 8.24517 6.26112 7.9597 6.31851 7.6842C6.37591 7.4087 6.50102 7.1519 6.68251 6.93702C6.86399 6.72214 7.0961 6.55595 7.35783 6.45343Z",
|
|
102
|
-
fill: "#F9F9F9"
|
|
103
|
-
})
|
|
104
|
-
]
|
|
105
|
-
})
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
})
|
|
109
|
-
]
|
|
43
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
44
|
+
children: isSelectOnPage && /*#__PURE__*/ jsx("button", {
|
|
45
|
+
className: "gp-bg-[#F4F4F4] gp-px-2 gp-py-0.5 gp-rounded-lg gp-text-[#212121] gp-text-sm gp-font-medium gp-hidden interaction-use-custom-element",
|
|
46
|
+
onClick: closeSelectOnPage,
|
|
47
|
+
children: "Use element"
|
|
48
|
+
})
|
|
110
49
|
});
|
|
111
50
|
};
|
|
112
51
|
|
|
@@ -211,7 +211,7 @@ const RenderCustomCode = (item)=>{
|
|
|
211
211
|
};
|
|
212
212
|
const appendAnimation = (props, liquid)=>{
|
|
213
213
|
const { advanced, tag } = props;
|
|
214
|
-
const { animation, op: opacity, hasAnimationInteraction, displayInitInteraction
|
|
214
|
+
const { animation, op: opacity, hasAnimationInteraction, displayInitInteraction } = advanced ?? {};
|
|
215
215
|
const getAnimationType = (settings, type)=>{
|
|
216
216
|
return settings?.triggerConfig?.[type]?.animation ?? 'none';
|
|
217
217
|
};
|
|
@@ -239,7 +239,8 @@ const appendAnimation = (props, liquid)=>{
|
|
|
239
239
|
};
|
|
240
240
|
return template`
|
|
241
241
|
<gp-animation
|
|
242
|
-
|
|
242
|
+
gp-interaction-wrapper
|
|
243
|
+
display-init="${displayInitInteraction === false ? 'hide' : 'show'}"
|
|
243
244
|
gp-data='${JSON.stringify({
|
|
244
245
|
config: animation,
|
|
245
246
|
tag,
|
|
@@ -54,6 +54,14 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
54
54
|
selectType
|
|
55
55
|
}
|
|
56
56
|
}));
|
|
57
|
+
},
|
|
58
|
+
setInteractionSettingType: (settingType)=>{
|
|
59
|
+
set((state)=>({
|
|
60
|
+
interactionData: {
|
|
61
|
+
...state.interactionData,
|
|
62
|
+
settingType
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
57
65
|
}
|
|
58
66
|
}));
|
|
59
67
|
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
@@ -63,7 +71,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
63
71
|
productOffers,
|
|
64
72
|
publicStoreFrontData,
|
|
65
73
|
interactionData: {
|
|
66
|
-
selectType: '
|
|
74
|
+
selectType: 'ELEMENT'
|
|
67
75
|
}
|
|
68
76
|
}), [
|
|
69
77
|
dynamicProduct,
|
|
@@ -25,8 +25,8 @@ const useInteraction = ()=>{
|
|
|
25
25
|
if (callback) callback(params);
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
const trigger = ({ event, data, selector })=>{
|
|
29
|
-
const element = document.querySelector(selector);
|
|
28
|
+
const trigger = ({ event, data, selector, element: elementParam })=>{
|
|
29
|
+
const element = elementParam || document.querySelector(selector);
|
|
30
30
|
if (!element) return;
|
|
31
31
|
const eventDispatch = new CustomEvent(event, {
|
|
32
32
|
bubbles: false,
|
|
@@ -106,5 +106,23 @@ const PreorderNowWodPresaleConfig = {
|
|
|
106
106
|
appId: 'fdf17d17-ef12-4a7b-8383-20cc1fc2a4b6'
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
+
const YotpoReviewsV3UgcConfig = {
|
|
110
|
+
YotpoReviews: {
|
|
111
|
+
appName: 'yotpo-product-reviews-ugc',
|
|
112
|
+
appId: 'eb7dfd7d-db44-4334-bc49-c893b51b36cf'
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const WhatmoreShoppableVideosreelConfig = {
|
|
116
|
+
WhatmoreShoppableVideosreel: {
|
|
117
|
+
appName: 'whatmore-shoppable-videos',
|
|
118
|
+
appId: '20db8a72-315a-4364-8885-64219ee48303'
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
const ProductOptionsCustomizerConfig = {
|
|
122
|
+
ProductOptionsCustomizer: {
|
|
123
|
+
appName: 'product-options-customizer',
|
|
124
|
+
appId: '6857ca6c-35eb-4b6f-9d58-a039f31d9406'
|
|
125
|
+
}
|
|
126
|
+
};
|
|
109
127
|
|
|
110
|
-
export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
128
|
+
export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -86,6 +86,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
86
86
|
bundle_id: appSetting?.['customBundleId']
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
+
case 'PumperBundlesVolumeDiscount':
|
|
90
|
+
{
|
|
91
|
+
return {
|
|
92
|
+
...currentSetting,
|
|
93
|
+
selected_product: appSetting?.['productHandle'] || '{{ product }}'
|
|
94
|
+
};
|
|
95
|
+
}
|
|
89
96
|
default:
|
|
90
97
|
return currentSetting;
|
|
91
98
|
}
|
|
@@ -105,7 +112,7 @@ const ReviewxpoProductReviewsApp = {
|
|
|
105
112
|
const PumperBundlesVolumeDiscount = {
|
|
106
113
|
PumperBundlesVolumeDiscount: {
|
|
107
114
|
'app-block': {
|
|
108
|
-
selected_product: '{{product}}',
|
|
115
|
+
selected_product: '{{ product }}',
|
|
109
116
|
using_page_builder: false
|
|
110
117
|
}
|
|
111
118
|
}
|
|
@@ -195,7 +202,96 @@ const PreorderNowWodPresale = {
|
|
|
195
202
|
'popups-block': null
|
|
196
203
|
}
|
|
197
204
|
};
|
|
205
|
+
const YotpoReviews = {
|
|
206
|
+
YotpoReviews: {
|
|
207
|
+
reviews: {
|
|
208
|
+
product: '{{ product }}'
|
|
209
|
+
},
|
|
210
|
+
'star-rating': {
|
|
211
|
+
product: '{{ product }}'
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
const WhatmoreShoppableVideosreel = {
|
|
216
|
+
WhatmoreShoppableVideosreel: {
|
|
217
|
+
'app-block': {
|
|
218
|
+
"heading": "Watch and Buy",
|
|
219
|
+
"template-type": "template-f",
|
|
220
|
+
"show-views": "show",
|
|
221
|
+
"ui-theme": "round",
|
|
222
|
+
"color-primary": "#343434",
|
|
223
|
+
"color-secondary": "#343434",
|
|
224
|
+
"title-font": "poppins_n4",
|
|
225
|
+
"primary-font": "poppins_n4",
|
|
226
|
+
"title-font-size": 40,
|
|
227
|
+
"title-font-size-portrait": 24,
|
|
228
|
+
"landscape-padding": 40,
|
|
229
|
+
"top-bottom-padding": 20,
|
|
230
|
+
"scroll-video-tile-size": 80,
|
|
231
|
+
"scroll-video-tile-size-portrait": 80,
|
|
232
|
+
"min-height": 380
|
|
233
|
+
},
|
|
234
|
+
'app-block-banner': {
|
|
235
|
+
"template-type": "template-banner-a",
|
|
236
|
+
"ui-theme": "round",
|
|
237
|
+
"banner-video-tile-size": 80
|
|
238
|
+
},
|
|
239
|
+
'app-block-collections': {
|
|
240
|
+
"collectionHeading": "W",
|
|
241
|
+
"template-type": "template-collections-b",
|
|
242
|
+
"ui-theme": "round",
|
|
243
|
+
"color-secondary": "#343434",
|
|
244
|
+
"primary-font": "poppins_n4",
|
|
245
|
+
"tile-size": 60,
|
|
246
|
+
"tile-size-portrait": 60,
|
|
247
|
+
"min-height": 250
|
|
248
|
+
},
|
|
249
|
+
'app-block-stories': {
|
|
250
|
+
"template-type": "template-stories-a",
|
|
251
|
+
"ui-theme": "round",
|
|
252
|
+
"color-primary": "#343434",
|
|
253
|
+
"color-secondary": "#343434",
|
|
254
|
+
"primary-font": "poppins_n4",
|
|
255
|
+
"stories-top-bottom-padding": 0,
|
|
256
|
+
"story-tile-size": 40,
|
|
257
|
+
"story-tile-size-desktop": 40
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
const ProductOptionsCustomizer = {
|
|
262
|
+
ProductOptionsCustomizer: {
|
|
263
|
+
'product-page-customizer': {
|
|
264
|
+
"pc_container_size": 100,
|
|
265
|
+
"pc_show_options_total": "initial",
|
|
266
|
+
"pc_customizations_total_text": "Customizations Total:",
|
|
267
|
+
"pc_show_preloader": "hide",
|
|
268
|
+
"pc_preloader_color": "",
|
|
269
|
+
"pc_ignore_redirect_command": true,
|
|
270
|
+
"pc_basic_label_text_color": "#000000",
|
|
271
|
+
"pc_basic_label_font_size": 14,
|
|
272
|
+
"pc_basic_label_bolden": "unset",
|
|
273
|
+
"pc_basic_label_space_above": 0,
|
|
274
|
+
"pc_basic_option_background_color": "#FFFFFF",
|
|
275
|
+
"pc_basic_option_text_color": "#000000",
|
|
276
|
+
"pc_basic_option_border_color": "#000000",
|
|
277
|
+
"pc_basic_option_border_style": "solid",
|
|
278
|
+
"pc_basic_option_border_width": 1,
|
|
279
|
+
"pc_basic_option_curve_the_corners": "none",
|
|
280
|
+
"pc_basic_option_font_size": 14,
|
|
281
|
+
"pc_basic_option_bolden": "none",
|
|
282
|
+
"pc_basic_option_width": 100,
|
|
283
|
+
"pc_basic_option_space_above": 0,
|
|
284
|
+
"pc_basic_option_space_below": 0,
|
|
285
|
+
"pc_basic_option_space_inside": 10,
|
|
286
|
+
"pc_advanced_custom_css": "",
|
|
287
|
+
"pc_advanced_custom_js": "",
|
|
288
|
+
"pc_show_image_swatch_preview": false
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
};
|
|
198
292
|
const composeSettingsByWidgetType = {
|
|
293
|
+
...ProductOptionsCustomizer,
|
|
294
|
+
...WhatmoreShoppableVideosreel,
|
|
199
295
|
...JunipProductReviewsUgc,
|
|
200
296
|
...FlyBundlesUpsellsFbt,
|
|
201
297
|
...PreorderNowWodPresale,
|
|
@@ -213,7 +309,8 @@ const composeSettingsByWidgetType = {
|
|
|
213
309
|
...RechargeSubscriptions,
|
|
214
310
|
...LoyaltyRewardsReferrals,
|
|
215
311
|
...SubifySubscriptions,
|
|
216
|
-
...SelleasyWidget
|
|
312
|
+
...SelleasyWidget,
|
|
313
|
+
...YotpoReviews
|
|
217
314
|
};
|
|
218
315
|
|
|
219
316
|
export { composeSettingsByWidgetType, overrideSettings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -18,7 +18,10 @@ const mapShopifyAppMeta = {
|
|
|
18
18
|
...PreorderNowPreOrderPqConfig,
|
|
19
19
|
...FlyBundlesUpsellsFbtConfig,
|
|
20
20
|
...JunipProductReviewsUgcConfig,
|
|
21
|
-
...PreorderNowWodPresaleConfig
|
|
21
|
+
...PreorderNowWodPresaleConfig,
|
|
22
|
+
...YotpoReviewsV3UgcConfig,
|
|
23
|
+
...WhatmoreShoppableVideosreelConfig,
|
|
24
|
+
...ProductOptionsCustomizerConfig
|
|
22
25
|
};
|
|
23
26
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
24
27
|
|
|
@@ -21,13 +21,13 @@ const useApplyAnimation = ({ props })=>{
|
|
|
21
21
|
setAnimationOnFinish,
|
|
22
22
|
setToolbarActive
|
|
23
23
|
});
|
|
24
|
-
const generateAnimation = useCallback(({ target, setting, type })=>{
|
|
25
|
-
return animation[type](target, setting);
|
|
24
|
+
const generateAnimation = useCallback(({ target, setting, type, reverse })=>{
|
|
25
|
+
return animation[type](target, setting, reverse);
|
|
26
26
|
}, [
|
|
27
27
|
animation
|
|
28
28
|
]);
|
|
29
29
|
const initListAnimations = useCallback(()=>{
|
|
30
|
-
const { type, setting } = getAnimationConfig();
|
|
30
|
+
const { type, setting, reverse } = getAnimationConfig();
|
|
31
31
|
if (!type || type === AnimationType.None || !targetObjects.current.length) {
|
|
32
32
|
cancelAnimation();
|
|
33
33
|
return;
|
|
@@ -35,9 +35,9 @@ const useApplyAnimation = ({ props })=>{
|
|
|
35
35
|
const listAnimations = targetObjects.current.map((item)=>generateAnimation({
|
|
36
36
|
type,
|
|
37
37
|
setting,
|
|
38
|
-
target: item.target
|
|
38
|
+
target: item.target,
|
|
39
|
+
reverse
|
|
39
40
|
}));
|
|
40
|
-
console.log('listAnimations', listAnimations);
|
|
41
41
|
cancelAnimation();
|
|
42
42
|
setAnimation(listAnimations);
|
|
43
43
|
}, [
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6887,7 +6887,7 @@ type VitalsWidgetType = 'addToWishlist' | 'goToWishlist' | 'paymentLogos' | 'rec
|
|
|
6887
6887
|
type FeraReviewsWidgetType = 'productReviews' | 'testimonialCarousel' | 'allReviews' | 'averageStoreRatingBadge' | 'inStoreMedia' | 'averageRatingBadge' | 'productPageMedia';
|
|
6888
6888
|
type FeraReviewsV3WidgetType = 'allReviews' | 'testimonialCarousel' | 'mediaGallery' | 'productDetailRating' | 'productReviews' | 'productCollectionRating' | 'otherWidget';
|
|
6889
6889
|
type GrowaveWidgetType = 'reviews' | 'badge' | 'productListBadge' | 'wishList' | 'socialShare' | 'favorite';
|
|
6890
|
-
type AliReviewsWidgetType = '
|
|
6890
|
+
type AliReviewsWidgetType = 'starRating' | 'reviewBox';
|
|
6891
6891
|
type OpinewWidgetType = 'reviews' | 'badge' | 'badgeCollection' | 'carousel' | 'allReviews' | 'allReviewsBadge';
|
|
6892
6892
|
type OpinewDesignWidgetType = 'opinew_badge_wide_average' | 'opinew_badge_wide' | 'opinew_badge_small';
|
|
6893
6893
|
type UltimateSalesBoostWidgetType = 'sticker' | 'message' | 'getItByTimer' | 'buyXGetTY' | 'countdownTimer' | 'stockInventoryNumber' | 'trustBadge' | 'advancedTrustBadge';
|
|
@@ -6910,10 +6910,11 @@ type InstantKlaviyoWidgetType = 'popup_widget' | 'flyout_widget' | 'embed_widget
|
|
|
6910
6910
|
type StampedWidgetType = 'main-widget' | 'carousel' | 'full-page' | 'visual-gallery' | 'wall-photos' | 'site-badge' | 'instagram-feed' | 'checkout-reviews' | 'single-highlight' | 'top-rated' | 'badge-single' | 'badge-double' | 'badge-ribbon' | 'product-rating';
|
|
6911
6911
|
type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
|
|
6912
6912
|
type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
|
|
6913
|
-
type YotpoReviewsWidgetType = 'reviews' | '
|
|
6913
|
+
type YotpoReviewsWidgetType = 'reviews' | 'star-rating' | 'reviewHighlights';
|
|
6914
6914
|
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break';
|
|
6915
6915
|
type PreOrderNowWodWidgetType = 'app-block' | 'popups-block';
|
|
6916
6916
|
type TagShopWidgetType = 'homeLandingGalleries' | 'productGalleries' | 'tagGalleries';
|
|
6917
|
+
type AirProductReview = 'review_box' | 'star_rating' | 'review_carousel';
|
|
6917
6918
|
|
|
6918
6919
|
type ResponsiveConfig<T> = {
|
|
6919
6920
|
desktop: {
|
|
@@ -7755,6 +7756,7 @@ type TypographyV2ControlType<T> = SharedControlType<T> & {
|
|
|
7755
7756
|
hiddenSetting?: {
|
|
7756
7757
|
color?: boolean;
|
|
7757
7758
|
transform?: boolean;
|
|
7759
|
+
fontWeight?: boolean;
|
|
7758
7760
|
};
|
|
7759
7761
|
disableCollapse?: boolean;
|
|
7760
7762
|
};
|
|
@@ -8239,7 +8241,11 @@ type SettingUIGroup = {
|
|
|
8239
8241
|
};
|
|
8240
8242
|
};
|
|
8241
8243
|
|
|
8242
|
-
type
|
|
8244
|
+
type ProductHandleType<T> = SharedControlType<T> & {
|
|
8245
|
+
type: 'product-handle';
|
|
8246
|
+
};
|
|
8247
|
+
|
|
8248
|
+
type ControlProp<T> = ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T>;
|
|
8243
8249
|
type ControlTriggerAction = {
|
|
8244
8250
|
controlId: string;
|
|
8245
8251
|
newValue?: any;
|
|
@@ -8433,6 +8439,7 @@ type InteractionElement<E, T> = {
|
|
|
8433
8439
|
elementTag?: string;
|
|
8434
8440
|
targetOutsideSelector?: string;
|
|
8435
8441
|
targetInsideSelector?: string;
|
|
8442
|
+
type?: 'ELEMENT' | 'PAGE';
|
|
8436
8443
|
};
|
|
8437
8444
|
declare enum InteractionTargetEvent {
|
|
8438
8445
|
'gp:change-background-color' = 0,
|
|
@@ -8496,6 +8503,7 @@ type InteractionTarget = {
|
|
|
8496
8503
|
targetOutsideSelector?: string;
|
|
8497
8504
|
targetInsideSelector?: string;
|
|
8498
8505
|
events?: InteractionTargetEventObject[];
|
|
8506
|
+
type?: 'ELEMENT' | 'PAGE';
|
|
8499
8507
|
};
|
|
8500
8508
|
type InteractionTargetEventObject = {
|
|
8501
8509
|
event: InteractionTargetEvent;
|
|
@@ -31381,7 +31389,8 @@ type PageContextProps = {
|
|
|
31381
31389
|
interactionData?: {
|
|
31382
31390
|
item?: Interaction;
|
|
31383
31391
|
isSelectOnPage?: boolean;
|
|
31384
|
-
selectType?: '
|
|
31392
|
+
selectType?: 'ELEMENT' | 'PAGE';
|
|
31393
|
+
settingType?: 'TRIGGER' | 'TARGET';
|
|
31385
31394
|
};
|
|
31386
31395
|
setDynamicProduct: (data: DynamicProduct) => void;
|
|
31387
31396
|
setDynamicCollection: (data: DynamicCollection) => void;
|
|
@@ -31390,7 +31399,8 @@ type PageContextProps = {
|
|
|
31390
31399
|
setPublicStoreFrontData: (publicStoreFrontData: PublicStoreFrontData | null) => void;
|
|
31391
31400
|
setInteractionItem: (item: Interaction) => void;
|
|
31392
31401
|
setInteractionIsSelectOnPage: (value: boolean) => void;
|
|
31393
|
-
setInteractionSelectType: (selectType: '
|
|
31402
|
+
setInteractionSelectType: (selectType: 'ELEMENT' | 'PAGE') => void;
|
|
31403
|
+
setInteractionSettingType: (settingType: 'TRIGGER' | 'TARGET') => void;
|
|
31394
31404
|
};
|
|
31395
31405
|
type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers'> & {
|
|
31396
31406
|
children: React.ReactNode;
|
|
@@ -31913,6 +31923,7 @@ declare namespace tiktokpixel {
|
|
|
31913
31923
|
};
|
|
31914
31924
|
}
|
|
31915
31925
|
|
|
31926
|
+
type CSSStateKey<T extends ShortHandProperty> = `--${T}` | `--hvr-${T}` | `--focus-${T}`;
|
|
31916
31927
|
type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
|
|
31917
31928
|
declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
|
|
31918
31929
|
declare const makeStyleKey: <T extends ShortHandProperty>(name: T) => string[];
|
|
@@ -41611,13 +41622,14 @@ declare const useInteraction: () => {
|
|
|
41611
41622
|
event: string;
|
|
41612
41623
|
selector: string;
|
|
41613
41624
|
}, callback: (data: any) => void) => void;
|
|
41614
|
-
trigger: ({ event, data, selector }: {
|
|
41625
|
+
trigger: ({ event, data, selector, element: elementParam }: {
|
|
41615
41626
|
event: string;
|
|
41616
41627
|
data?: any;
|
|
41617
41628
|
selector: string;
|
|
41629
|
+
element?: HTMLElement | undefined;
|
|
41618
41630
|
}) => void;
|
|
41619
41631
|
saveToElementInteractionData: (element: HTMLElement, key: string, value: string) => void;
|
|
41620
41632
|
closeSelectOnPage: () => void;
|
|
41621
41633
|
};
|
|
41622
41634
|
|
|
41623
|
-
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResonsiveStyleShadow, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBgColor, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
41635
|
+
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResonsiveStyleShadow, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBgColor, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.53.0-dev.
|
|
3
|
+
"version": "1.53.0-dev.45",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gem-sdk/adapter-shopify": "1.53.0-dev.4",
|
|
31
|
-
"@gem-sdk/styles": "1.53.0-dev.
|
|
31
|
+
"@gem-sdk/styles": "1.53.0-dev.39",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|