@gem-sdk/core 1.23.0-staging.156 → 1.23.0-staging.165
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 +41 -29
- package/dist/cjs/components/Render.liquid.js +6 -1
- package/dist/cjs/index.js +1 -0
- package/dist/esm/components/ComponentToolbarPreview.js +41 -29
- package/dist/esm/components/Render.liquid.js +6 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +2 -2
|
@@ -25,24 +25,6 @@ const isSection = (el)=>{
|
|
|
25
25
|
const tag = el.getAttribute('data-component-tag');
|
|
26
26
|
return tag === 'Section';
|
|
27
27
|
};
|
|
28
|
-
const isOverToolbarPosition = (el, parent)=>{
|
|
29
|
-
const rect = el.getBoundingClientRect();
|
|
30
|
-
const rectP = parent.getBoundingClientRect();
|
|
31
|
-
// 32px = toolbar active height
|
|
32
|
-
return rect.top - rectP.top < 32 + 1;
|
|
33
|
-
};
|
|
34
|
-
const findOverflowParent = (element, initEl)=>{
|
|
35
|
-
const thisEl = element;
|
|
36
|
-
const origEl = initEl || thisEl;
|
|
37
|
-
if (!thisEl) return;
|
|
38
|
-
if (isSection(thisEl)) return;
|
|
39
|
-
if (notVisible(thisEl) && isOverToolbarPosition(initEl, thisEl)) return thisEl;
|
|
40
|
-
if (thisEl.parentElement) {
|
|
41
|
-
return findOverflowParent(thisEl.parentElement, origEl);
|
|
42
|
-
} else {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
28
|
const ComponentToolbarPreview = ({ ...props })=>{
|
|
47
29
|
const isThemeSection = props.isThemeSection;
|
|
48
30
|
const editingPageType = ShopContext.useShopStore((s)=>s.pageType);
|
|
@@ -53,13 +35,32 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
53
35
|
const [isShowParent, setIsShowParent] = react.useState(false);
|
|
54
36
|
const [isShowParentRevert, setIsShowParentRevert] = react.useState(false);
|
|
55
37
|
const [parents, setParents] = react.useState([]);
|
|
38
|
+
const isOverToolbarPosition = (el, parent)=>{
|
|
39
|
+
const parentLenght = parents.length;
|
|
40
|
+
const rect = el.getBoundingClientRect();
|
|
41
|
+
const rectP = parent.getBoundingClientRect();
|
|
42
|
+
// 36px = toolbar active height + 4 spaces
|
|
43
|
+
return rect.top - rectP.top < parentLenght * 36;
|
|
44
|
+
};
|
|
45
|
+
const findOverflowParent = (element, initEl)=>{
|
|
46
|
+
const thisEl = element;
|
|
47
|
+
const origEl = initEl || thisEl;
|
|
48
|
+
if (!thisEl) return;
|
|
49
|
+
if (isSection(thisEl)) return;
|
|
50
|
+
if (notVisible(thisEl) && isOverToolbarPosition(initEl, thisEl)) return thisEl;
|
|
51
|
+
if (thisEl.parentElement) {
|
|
52
|
+
return findOverflowParent(thisEl.parentElement, origEl);
|
|
53
|
+
} else {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
56
57
|
// Get parents
|
|
57
58
|
const onActiveComponent = react.useCallback((e)=>{
|
|
58
59
|
const detail = e.detail;
|
|
59
60
|
if (detail?.componentUid == props.uid) {
|
|
60
61
|
const currentParents = getParents(props.uid).filter((parent)=>{
|
|
61
62
|
if (parent.uid === 'ROOT') return false;
|
|
62
|
-
if (parent.tag === 'Section') return false;
|
|
63
|
+
if (parent.tag === 'Section' && isThemeSectionEditor) return false;
|
|
63
64
|
if (parent.editorConfigs?.toolbar?.hide) return false;
|
|
64
65
|
if (parent.editorConfigs?.component?.noSetting) return false;
|
|
65
66
|
return true;
|
|
@@ -72,7 +73,8 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
72
73
|
}, [
|
|
73
74
|
setParents,
|
|
74
75
|
getParents,
|
|
75
|
-
props.uid
|
|
76
|
+
props.uid,
|
|
77
|
+
isThemeSectionEditor
|
|
76
78
|
]);
|
|
77
79
|
react.useEffect(()=>{
|
|
78
80
|
window.addEventListener('editor:active-component', onActiveComponent);
|
|
@@ -115,7 +117,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
115
117
|
setIsShowParentRevert(true);
|
|
116
118
|
} else {
|
|
117
119
|
const rect = $toolbar.getBoundingClientRect();
|
|
118
|
-
if (rect.top < parents.length *
|
|
120
|
+
if (rect.top < parents.length * 36) {
|
|
119
121
|
setIsShowParentRevert(true);
|
|
120
122
|
} else {
|
|
121
123
|
setIsShowParentRevert(false);
|
|
@@ -281,12 +283,21 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
281
283
|
})
|
|
282
284
|
]
|
|
283
285
|
}),
|
|
284
|
-
isShowParent && parents.map((parent, index)
|
|
286
|
+
isShowParent && parents.map((parent, index)=>{
|
|
287
|
+
// Update count columns of Row
|
|
288
|
+
const parentLength = parent?.childrens?.length ?? 0;
|
|
289
|
+
let parent_label = parent.label;
|
|
290
|
+
if (parent.label === 'Row') {
|
|
291
|
+
parent_label = parentLength <= 1 ? parent.label + ' ' + parentLength + ' col' : parent.label + ' ' + parentLength + ' cols';
|
|
292
|
+
}
|
|
293
|
+
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
285
294
|
"data-toolbar-parent": true,
|
|
286
295
|
"data-parent-uid": parent.uid,
|
|
287
296
|
"data-toolbar-theme-section": isThemeSectionEditor,
|
|
297
|
+
"data-toolbar-parent-revert": isShowParentRevert,
|
|
288
298
|
style: {
|
|
289
|
-
top: !isShowParentRevert ? `${-
|
|
299
|
+
top: !isShowParentRevert ? `${-36 * (index + 1)}px` // 32 height + 4 spacing
|
|
300
|
+
: `${36 * (index + 1)}px`
|
|
290
301
|
},
|
|
291
302
|
children: [
|
|
292
303
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
@@ -326,10 +337,11 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
326
337
|
}),
|
|
327
338
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
328
339
|
"data-toolbar-name": true,
|
|
329
|
-
children:
|
|
340
|
+
children: parent_label
|
|
330
341
|
})
|
|
331
342
|
]
|
|
332
|
-
}, parent.uid)
|
|
343
|
+
}, parent.uid);
|
|
344
|
+
}),
|
|
333
345
|
props.tag === 'Section' && !props.isThemeSection && editingPageType !== 'STATIC' && getIndexSection() < SECTION_LIMIT && /*#__PURE__*/ jsxRuntime.jsx(CreateThemeSection.CreateThemeSection, {
|
|
334
346
|
...props
|
|
335
347
|
}),
|
|
@@ -417,8 +429,8 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
417
429
|
viewBox: "0 0 16 16",
|
|
418
430
|
fill: "none",
|
|
419
431
|
children: /*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
420
|
-
d: "M8.
|
|
421
|
-
fill: "
|
|
432
|
+
d: "M8.45 3.95C8.45 3.70147 8.24853 3.5 8 3.5C7.75147 3.5 7.55 3.70147 7.55 3.95V7.55H3.95C3.70147 7.55 3.5 7.75147 3.5 8C3.5 8.24853 3.70147 8.45 3.95 8.45H7.55V12.05C7.55 12.2985 7.75147 12.5 8 12.5C8.24853 12.5 8.45 12.2985 8.45 12.05V8.45H12.05C12.2985 8.45 12.5 8.24853 12.5 8C12.5 7.75147 12.2985 7.55 12.05 7.55H8.45V3.95Z",
|
|
433
|
+
fill: "#212121"
|
|
422
434
|
})
|
|
423
435
|
})
|
|
424
436
|
}),
|
|
@@ -437,8 +449,8 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
437
449
|
viewBox: "0 0 16 16",
|
|
438
450
|
fill: "none",
|
|
439
451
|
children: /*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
440
|
-
d: "M8.
|
|
441
|
-
fill: "
|
|
452
|
+
d: "M8.45 3.95C8.45 3.70147 8.24853 3.5 8 3.5C7.75147 3.5 7.55 3.70147 7.55 3.95V7.55H3.95C3.70147 7.55 3.5 7.75147 3.5 8C3.5 8.24853 3.70147 8.45 3.95 8.45H7.55V12.05C7.55 12.2985 7.75147 12.5 8 12.5C8.24853 12.5 8.45 12.2985 8.45 12.05V8.45H12.05C12.2985 8.45 12.5 8.24853 12.5 8C12.5 7.75147 12.2985 7.55 12.05 7.55H8.45V3.95Z",
|
|
453
|
+
fill: "#212121"
|
|
442
454
|
})
|
|
443
455
|
})
|
|
444
456
|
})
|
|
@@ -25,7 +25,11 @@ const componentTexts = [
|
|
|
25
25
|
'Heading'
|
|
26
26
|
];
|
|
27
27
|
const componentIconList = [
|
|
28
|
-
'IconListV2'
|
|
28
|
+
'IconListV2',
|
|
29
|
+
'IconList'
|
|
30
|
+
];
|
|
31
|
+
const componentUsingAdvanced = [
|
|
32
|
+
'IconList'
|
|
29
33
|
];
|
|
30
34
|
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
31
35
|
const item = builder[uid];
|
|
@@ -117,6 +121,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
117
121
|
styles: item.styles,
|
|
118
122
|
setting: item.settings,
|
|
119
123
|
advanced: {
|
|
124
|
+
...componentUsingAdvanced.includes(item.tag) ? item?.advanced : {},
|
|
120
125
|
cssClass: item?.advanced?.cssClass
|
|
121
126
|
},
|
|
122
127
|
pageContext,
|
package/dist/cjs/index.js
CHANGED
|
@@ -159,6 +159,7 @@ exports.makeGlobalSizeWidthResponsive = makeStyle.makeGlobalSizeWidthResponsive;
|
|
|
159
159
|
exports.makeHeight = makeStyle.makeHeight;
|
|
160
160
|
exports.makeLineClamp = makeStyle.makeLineClamp;
|
|
161
161
|
exports.makeStyle = makeStyle.makeStyle;
|
|
162
|
+
exports.makeStyleKey = makeStyle.makeStyleKey;
|
|
162
163
|
exports.makeStyleResponsive = makeStyle.makeStyleResponsive;
|
|
163
164
|
exports.makeStyleResponsiveState = makeStyle.makeStyleResponsiveState;
|
|
164
165
|
exports.makeStyleState = makeStyle.makeStyleState;
|
|
@@ -23,24 +23,6 @@ const isSection = (el)=>{
|
|
|
23
23
|
const tag = el.getAttribute('data-component-tag');
|
|
24
24
|
return tag === 'Section';
|
|
25
25
|
};
|
|
26
|
-
const isOverToolbarPosition = (el, parent)=>{
|
|
27
|
-
const rect = el.getBoundingClientRect();
|
|
28
|
-
const rectP = parent.getBoundingClientRect();
|
|
29
|
-
// 32px = toolbar active height
|
|
30
|
-
return rect.top - rectP.top < 32 + 1;
|
|
31
|
-
};
|
|
32
|
-
const findOverflowParent = (element, initEl)=>{
|
|
33
|
-
const thisEl = element;
|
|
34
|
-
const origEl = initEl || thisEl;
|
|
35
|
-
if (!thisEl) return;
|
|
36
|
-
if (isSection(thisEl)) return;
|
|
37
|
-
if (notVisible(thisEl) && isOverToolbarPosition(initEl, thisEl)) return thisEl;
|
|
38
|
-
if (thisEl.parentElement) {
|
|
39
|
-
return findOverflowParent(thisEl.parentElement, origEl);
|
|
40
|
-
} else {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
26
|
const ComponentToolbarPreview = ({ ...props })=>{
|
|
45
27
|
const isThemeSection = props.isThemeSection;
|
|
46
28
|
const editingPageType = useShopStore((s)=>s.pageType);
|
|
@@ -51,13 +33,32 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
51
33
|
const [isShowParent, setIsShowParent] = useState(false);
|
|
52
34
|
const [isShowParentRevert, setIsShowParentRevert] = useState(false);
|
|
53
35
|
const [parents, setParents] = useState([]);
|
|
36
|
+
const isOverToolbarPosition = (el, parent)=>{
|
|
37
|
+
const parentLenght = parents.length;
|
|
38
|
+
const rect = el.getBoundingClientRect();
|
|
39
|
+
const rectP = parent.getBoundingClientRect();
|
|
40
|
+
// 36px = toolbar active height + 4 spaces
|
|
41
|
+
return rect.top - rectP.top < parentLenght * 36;
|
|
42
|
+
};
|
|
43
|
+
const findOverflowParent = (element, initEl)=>{
|
|
44
|
+
const thisEl = element;
|
|
45
|
+
const origEl = initEl || thisEl;
|
|
46
|
+
if (!thisEl) return;
|
|
47
|
+
if (isSection(thisEl)) return;
|
|
48
|
+
if (notVisible(thisEl) && isOverToolbarPosition(initEl, thisEl)) return thisEl;
|
|
49
|
+
if (thisEl.parentElement) {
|
|
50
|
+
return findOverflowParent(thisEl.parentElement, origEl);
|
|
51
|
+
} else {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
54
55
|
// Get parents
|
|
55
56
|
const onActiveComponent = useCallback((e)=>{
|
|
56
57
|
const detail = e.detail;
|
|
57
58
|
if (detail?.componentUid == props.uid) {
|
|
58
59
|
const currentParents = getParents(props.uid).filter((parent)=>{
|
|
59
60
|
if (parent.uid === 'ROOT') return false;
|
|
60
|
-
if (parent.tag === 'Section') return false;
|
|
61
|
+
if (parent.tag === 'Section' && isThemeSectionEditor) return false;
|
|
61
62
|
if (parent.editorConfigs?.toolbar?.hide) return false;
|
|
62
63
|
if (parent.editorConfigs?.component?.noSetting) return false;
|
|
63
64
|
return true;
|
|
@@ -70,7 +71,8 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
70
71
|
}, [
|
|
71
72
|
setParents,
|
|
72
73
|
getParents,
|
|
73
|
-
props.uid
|
|
74
|
+
props.uid,
|
|
75
|
+
isThemeSectionEditor
|
|
74
76
|
]);
|
|
75
77
|
useEffect(()=>{
|
|
76
78
|
window.addEventListener('editor:active-component', onActiveComponent);
|
|
@@ -113,7 +115,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
113
115
|
setIsShowParentRevert(true);
|
|
114
116
|
} else {
|
|
115
117
|
const rect = $toolbar.getBoundingClientRect();
|
|
116
|
-
if (rect.top < parents.length *
|
|
118
|
+
if (rect.top < parents.length * 36) {
|
|
117
119
|
setIsShowParentRevert(true);
|
|
118
120
|
} else {
|
|
119
121
|
setIsShowParentRevert(false);
|
|
@@ -279,12 +281,21 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
279
281
|
})
|
|
280
282
|
]
|
|
281
283
|
}),
|
|
282
|
-
isShowParent && parents.map((parent, index)
|
|
284
|
+
isShowParent && parents.map((parent, index)=>{
|
|
285
|
+
// Update count columns of Row
|
|
286
|
+
const parentLength = parent?.childrens?.length ?? 0;
|
|
287
|
+
let parent_label = parent.label;
|
|
288
|
+
if (parent.label === 'Row') {
|
|
289
|
+
parent_label = parentLength <= 1 ? parent.label + ' ' + parentLength + ' col' : parent.label + ' ' + parentLength + ' cols';
|
|
290
|
+
}
|
|
291
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
283
292
|
"data-toolbar-parent": true,
|
|
284
293
|
"data-parent-uid": parent.uid,
|
|
285
294
|
"data-toolbar-theme-section": isThemeSectionEditor,
|
|
295
|
+
"data-toolbar-parent-revert": isShowParentRevert,
|
|
286
296
|
style: {
|
|
287
|
-
top: !isShowParentRevert ? `${-
|
|
297
|
+
top: !isShowParentRevert ? `${-36 * (index + 1)}px` // 32 height + 4 spacing
|
|
298
|
+
: `${36 * (index + 1)}px`
|
|
288
299
|
},
|
|
289
300
|
children: [
|
|
290
301
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -324,10 +335,11 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
324
335
|
}),
|
|
325
336
|
/*#__PURE__*/ jsx("div", {
|
|
326
337
|
"data-toolbar-name": true,
|
|
327
|
-
children:
|
|
338
|
+
children: parent_label
|
|
328
339
|
})
|
|
329
340
|
]
|
|
330
|
-
}, parent.uid)
|
|
341
|
+
}, parent.uid);
|
|
342
|
+
}),
|
|
331
343
|
props.tag === 'Section' && !props.isThemeSection && editingPageType !== 'STATIC' && getIndexSection() < SECTION_LIMIT && /*#__PURE__*/ jsx(CreateThemeSection, {
|
|
332
344
|
...props
|
|
333
345
|
}),
|
|
@@ -415,8 +427,8 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
415
427
|
viewBox: "0 0 16 16",
|
|
416
428
|
fill: "none",
|
|
417
429
|
children: /*#__PURE__*/ jsx("path", {
|
|
418
|
-
d: "M8.
|
|
419
|
-
fill: "
|
|
430
|
+
d: "M8.45 3.95C8.45 3.70147 8.24853 3.5 8 3.5C7.75147 3.5 7.55 3.70147 7.55 3.95V7.55H3.95C3.70147 7.55 3.5 7.75147 3.5 8C3.5 8.24853 3.70147 8.45 3.95 8.45H7.55V12.05C7.55 12.2985 7.75147 12.5 8 12.5C8.24853 12.5 8.45 12.2985 8.45 12.05V8.45H12.05C12.2985 8.45 12.5 8.24853 12.5 8C12.5 7.75147 12.2985 7.55 12.05 7.55H8.45V3.95Z",
|
|
431
|
+
fill: "#212121"
|
|
420
432
|
})
|
|
421
433
|
})
|
|
422
434
|
}),
|
|
@@ -435,8 +447,8 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
435
447
|
viewBox: "0 0 16 16",
|
|
436
448
|
fill: "none",
|
|
437
449
|
children: /*#__PURE__*/ jsx("path", {
|
|
438
|
-
d: "M8.
|
|
439
|
-
fill: "
|
|
450
|
+
d: "M8.45 3.95C8.45 3.70147 8.24853 3.5 8 3.5C7.75147 3.5 7.55 3.70147 7.55 3.95V7.55H3.95C3.70147 7.55 3.5 7.75147 3.5 8C3.5 8.24853 3.70147 8.45 3.95 8.45H7.55V12.05C7.55 12.2985 7.75147 12.5 8 12.5C8.24853 12.5 8.45 12.2985 8.45 12.05V8.45H12.05C12.2985 8.45 12.5 8.24853 12.5 8C12.5 7.75147 12.2985 7.55 12.05 7.55H8.45V3.95Z",
|
|
451
|
+
fill: "#212121"
|
|
440
452
|
})
|
|
441
453
|
})
|
|
442
454
|
})
|
|
@@ -21,7 +21,11 @@ const componentTexts = [
|
|
|
21
21
|
'Heading'
|
|
22
22
|
];
|
|
23
23
|
const componentIconList = [
|
|
24
|
-
'IconListV2'
|
|
24
|
+
'IconListV2',
|
|
25
|
+
'IconList'
|
|
26
|
+
];
|
|
27
|
+
const componentUsingAdvanced = [
|
|
28
|
+
'IconList'
|
|
25
29
|
];
|
|
26
30
|
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
27
31
|
const item = builder[uid];
|
|
@@ -113,6 +117,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
113
117
|
styles: item.styles,
|
|
114
118
|
setting: item.settings,
|
|
115
119
|
advanced: {
|
|
120
|
+
...componentUsingAdvanced.includes(item.tag) ? item?.advanced : {},
|
|
116
121
|
cssClass: item?.advanced?.cssClass
|
|
117
122
|
},
|
|
118
123
|
pageContext,
|
package/dist/esm/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export { default as isBrowser } from './helpers/is-browser.js';
|
|
|
32
32
|
export { default as isSafari } from './helpers/is-safari.js';
|
|
33
33
|
export { isEmptyChildren } from './helpers/is-empty-children.js';
|
|
34
34
|
export { filterToolbarPreview } from './helpers/filter-toolbar-preview.js';
|
|
35
|
-
export { makeAspectRatio, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
35
|
+
export { makeAspectRatio, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
36
36
|
export { normalizeBuilderData } from './helpers/normalize-builder-data.js';
|
|
37
37
|
export { prefetchQueries } from './helpers/prefetch-queries.js';
|
|
38
38
|
export { composeSpacing, getSpacingVariable } from './helpers/spacing.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7944,6 +7944,7 @@ declare const filterToolbarPreview: (children: React.ReactNode, keep?: boolean)
|
|
|
7944
7944
|
|
|
7945
7945
|
type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
|
|
7946
7946
|
declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
|
|
7947
|
+
declare const makeStyleKey: <T extends ShortHandProperty>(name: T) => string[];
|
|
7947
7948
|
declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) => {
|
|
7948
7949
|
[k: string]: Record<`--${T}`, K>;
|
|
7949
7950
|
};
|
|
@@ -9926,4 +9927,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
9926
9927
|
|
|
9927
9928
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
9928
9929
|
|
|
9929
|
-
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, 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, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, 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, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
9930
|
+
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, 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, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, 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, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, 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.23.0-staging.
|
|
3
|
+
"version": "1.23.0-staging.165",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@gem-sdk/adapter-shopify": "1.23.0-staging.26",
|
|
28
|
-
"@gem-sdk/styles": "1.23.0-staging.
|
|
28
|
+
"@gem-sdk/styles": "1.23.0-staging.157"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|