@gem-sdk/core 1.25.18 → 1.25.29

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.
@@ -160,6 +160,17 @@ const ComponentToolbarPreview = ({ ...props })=>{
160
160
  window.dispatchEvent(event);
161
161
  return false;
162
162
  };
163
+ const toolbarName = ()=>{
164
+ const tag = props.tag;
165
+ if (tag === 'IconListV2') {
166
+ return 'Item list';
167
+ }
168
+ if (tag === 'IconList') {
169
+ return 'Advanced list';
170
+ }
171
+ const name = props.customLabel || props.label;
172
+ return name;
173
+ };
163
174
  const onZoomOut = (e)=>{
164
175
  e.preventDefault();
165
176
  e.stopPropagation();
@@ -252,7 +263,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
252
263
  children: isThemeSection ? props.name : `Section ${getIndexSection() + 1}${getSectionNumber() >= SECTION_LIMIT - 5 ? `/${SECTION_LIMIT}` : ''}`
253
264
  }) : /*#__PURE__*/ jsxRuntime.jsx("div", {
254
265
  "data-toolbar-name": true,
255
- children: props.customLabel || props.label
266
+ children: toolbarName()
256
267
  }),
257
268
  props.tag !== 'Section' && parents.length > 0 && /*#__PURE__*/ jsxRuntime.jsx("div", {
258
269
  "data-toolbar-icon-parent": true,
@@ -106,11 +106,16 @@ const ComponentWrapperPreview = ({ children, ...props })=>{
106
106
  advanced: advanced
107
107
  }),
108
108
  /*#__PURE__*/ jsxRuntime.jsxs("div", {
109
- style: style,
109
+ style: !props.editorConfigs?.component?.excludeApplyStyle ? style : {},
110
110
  className: `${props.uid} ${props.advanced?.cssClass ? props.advanced?.cssClass : ''}`,
111
111
  ...builderAttrs,
112
112
  children: [
113
- children,
113
+ !props.editorConfigs?.component?.validate && children,
114
+ /*#__PURE__*/ react.isValidElement(children) && props.editorConfigs?.component?.validate && /*#__PURE__*/ jsxRuntime.jsx(children.type, {
115
+ ...children.props,
116
+ style,
117
+ advanced
118
+ }),
114
119
  /*#__PURE__*/ jsxRuntime.jsx(ComponentToolbarPreview.ComponentToolbarPreview, {
115
120
  ...props
116
121
  })
@@ -24,6 +24,9 @@ const componentTexts = [
24
24
  'Text',
25
25
  'Heading'
26
26
  ];
27
+ const componentIconList = [
28
+ 'IconListV2'
29
+ ];
27
30
  const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
28
31
  const item = builder[uid];
29
32
  const Component = components[item?.tag];
@@ -104,7 +107,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
104
107
  });
105
108
  });
106
109
  } else {
107
- liquid = render.template`<div style="${style}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
110
+ liquid = render.template`<div style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
108
111
  ${render.RenderIf(item?.childrens?.length, ()=>{
109
112
  return Component({
110
113
  builderProps: {
@@ -153,6 +156,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
153
156
  },
154
157
  pageContext,
155
158
  isText: componentTexts.includes(item.tag) ? true : null,
159
+ style: componentIconList.includes(item.tag) ? style : null,
156
160
  ...passProps
157
161
  });
158
162
  })}
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ var constant = require('../web-components/src/helpers/styles/constant.js');
4
+
5
+ const TEXT_TOTAL_SPACING = 3; //Padding 2, margin 1
6
+ const composePostionIconList = (lineHeight, position, iconWidth)=>{
7
+ const compose = {};
8
+ composePositionLineHeight({
9
+ compose,
10
+ lineHeight,
11
+ device: 'desktop',
12
+ position,
13
+ iconWidth
14
+ });
15
+ composePositionLineHeight({
16
+ compose,
17
+ lineHeight,
18
+ device: 'tablet',
19
+ position,
20
+ iconWidth
21
+ });
22
+ composePositionLineHeight({
23
+ compose,
24
+ lineHeight,
25
+ device: 'mobile',
26
+ position,
27
+ iconWidth
28
+ });
29
+ return compose;
30
+ };
31
+ const composePositionLineHeight = ({ compose, lineHeight, device, position, iconWidth })=>{
32
+ const positionDevice = position?.[device];
33
+ const iconWidthDevice = iconWidth?.[device];
34
+ if (positionDevice) {
35
+ const suffix = constant.devicesMapping[device] ?? '';
36
+ if (positionDevice === 'center') {
37
+ compose.wrapper = {
38
+ ...compose.wrapper,
39
+ [`--ai${suffix}`]: 'center'
40
+ };
41
+ compose.content = {
42
+ ...compose.content,
43
+ [`--pos${suffix}`]: 'static'
44
+ };
45
+ } else if (iconWidthDevice) {
46
+ const computedTop = parseFloat(lineHeight.replaceAll(/[a-zA-Z]/g, '')) / 2 + TEXT_TOTAL_SPACING - iconWidthDevice / 2;
47
+ compose.wrapper = {
48
+ ...compose.wrapper,
49
+ [`--ai${suffix}`]: 'flex-start'
50
+ };
51
+ compose.content = {
52
+ ...compose.content,
53
+ [`--top${suffix}`]: `${Math.max(0, Math.ceil(computedTop))}px`,
54
+ [`--pos${suffix}`]: 'relative'
55
+ };
56
+ }
57
+ }
58
+ };
59
+
60
+ exports.composePositionLineHeight = composePositionLineHeight;
61
+ exports.composePostionIconList = composePostionIconList;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var makeStyle = require('./make-style.js');
4
4
  var constant = require('./constant.js');
5
+ var getResonsiveValue = require('./get-resonsive-value.js');
5
6
 
6
7
  function getCustomSizeCSSByDevice(size, device) {
7
8
  if (!size || !device) return {};
@@ -50,21 +51,102 @@ const makeStyleWithDefault = (name, value, defaultVal)=>{
50
51
  };
51
52
  const getWidthHeightGlobalSize = (type, globalSize)=>{
52
53
  if (!globalSize) return {};
53
- const data = {
54
- desktop: globalSize?.desktop?.[type],
55
- tablet: globalSize?.tablet?.[type],
56
- mobile: globalSize?.mobile?.[type]
57
- };
58
- if (data.desktop === undefined) {
59
- data.desktop = 'auto';
60
- }
61
- if (data.tablet === undefined) {
62
- data.tablet = data.desktop;
63
- }
64
- if (data.mobile === undefined) {
65
- data.mobile = data.tablet;
66
- }
67
- return data;
54
+ let result = {};
55
+ const DEVICES = [
56
+ 'desktop',
57
+ 'mobile',
58
+ 'tablet'
59
+ ];
60
+ DEVICES.forEach((device)=>{
61
+ result = {
62
+ ...result,
63
+ [device]: getResonsiveValue.getResponsiveValueByScreen(globalSize, device)?.[type]
64
+ };
65
+ });
66
+ return result;
67
+ };
68
+ const getHeightByShapeGlobalSize = (shapeByLayout)=>{
69
+ let result = {};
70
+ const DEVICES = [
71
+ 'desktop',
72
+ 'mobile',
73
+ 'tablet'
74
+ ];
75
+ DEVICES.forEach((device)=>{
76
+ const shapeByDevice = getResonsiveValue.getResponsiveValueByScreen(shapeByLayout, device);
77
+ const shapeValue = shapeByDevice?.shapeValue;
78
+ const height = shapeByDevice?.height;
79
+ result = {
80
+ ...result,
81
+ [device]: shapeValue ? 'auto' : height || 'auto'
82
+ };
83
+ });
84
+ return result;
85
+ };
86
+ const getWidthByShapeGlobalSize = (shapeByLayout)=>{
87
+ let result = {};
88
+ const DEVICES = [
89
+ 'desktop',
90
+ 'mobile',
91
+ 'tablet'
92
+ ];
93
+ DEVICES.forEach((device)=>{
94
+ const shapeByDevice = getResonsiveValue.getResponsiveValueByScreen(shapeByLayout, device);
95
+ const width = shapeByDevice?.width;
96
+ if (width) {
97
+ result = {
98
+ ...result,
99
+ [device]: width
100
+ };
101
+ }
102
+ });
103
+ return result;
104
+ };
105
+ const getAspectRatioGlobalSize = (shape)=>{
106
+ let result = {};
107
+ const DEVICES = [
108
+ 'desktop',
109
+ 'mobile',
110
+ 'tablet'
111
+ ];
112
+ DEVICES.forEach((device)=>{
113
+ const shapeValue = getResonsiveValue.getResponsiveValueByScreen(shape, device)?.shapeValue;
114
+ if (shapeValue) {
115
+ result = {
116
+ ...result,
117
+ [device]: shapeValue
118
+ };
119
+ } else {
120
+ const shapeConfig = getResonsiveValue.getResponsiveValueByScreen(shape, device)?.shape;
121
+ switch(shapeConfig){
122
+ case 'square':
123
+ result = {
124
+ ...result,
125
+ [device]: '1/1'
126
+ };
127
+ break;
128
+ case 'vertical':
129
+ result = {
130
+ ...result,
131
+ [device]: '3/4'
132
+ };
133
+ break;
134
+ case 'horizontal':
135
+ result = {
136
+ ...result,
137
+ [device]: '4/3'
138
+ };
139
+ break;
140
+ case 'original':
141
+ result = {
142
+ ...result,
143
+ [device]: 'auto'
144
+ };
145
+ break;
146
+ }
147
+ }
148
+ });
149
+ return result;
68
150
  };
69
151
  function getCustomPaddingSizeCSSByDevice(globalSize, device) {
70
152
  if (!globalSize || !device) return {};
@@ -83,7 +165,10 @@ const getPaddingGlobalSize = (globalSize)=>{
83
165
  exports.composeSize = composeSize;
84
166
  exports.composeSizeCss = composeSizeCss;
85
167
  exports.genSizeClass = genSizeClass;
168
+ exports.getAspectRatioGlobalSize = getAspectRatioGlobalSize;
169
+ exports.getHeightByShapeGlobalSize = getHeightByShapeGlobalSize;
86
170
  exports.getPaddingGlobalSize = getPaddingGlobalSize;
171
+ exports.getWidthByShapeGlobalSize = getWidthByShapeGlobalSize;
87
172
  exports.getWidthHeightGlobalSize = getWidthHeightGlobalSize;
88
173
  exports.makeGlobalSize = makeGlobalSize;
89
174
  exports.makeStyleWithDefault = makeStyleWithDefault;
package/dist/cjs/index.js CHANGED
@@ -57,6 +57,7 @@ var shadow = require('./helpers/shadow.js');
57
57
  var background = require('./helpers/background.js');
58
58
  var query = require('./helpers/query.js');
59
59
  var composeAdvanceStyle = require('./helpers/compose-advance-style.js');
60
+ var iconList = require('./helpers/icon-list.js');
60
61
  var useAddToCart = require('./hooks/cart/use-add-to-cart.js');
61
62
  var useCartData = require('./hooks/cart/use-cart-data.js');
62
63
  var useCartDiscountCodesUpdate = require('./hooks/cart/use-cart-discount-codes-update.js');
@@ -221,7 +222,10 @@ exports.isLocalEnv = convert.isLocalEnv;
221
222
  exports.composeSize = size.composeSize;
222
223
  exports.composeSizeCss = size.composeSizeCss;
223
224
  exports.genSizeClass = size.genSizeClass;
225
+ exports.getAspectRatioGlobalSize = size.getAspectRatioGlobalSize;
226
+ exports.getHeightByShapeGlobalSize = size.getHeightByShapeGlobalSize;
224
227
  exports.getPaddingGlobalSize = size.getPaddingGlobalSize;
228
+ exports.getWidthByShapeGlobalSize = size.getWidthByShapeGlobalSize;
225
229
  exports.getWidthHeightGlobalSize = size.getWidthHeightGlobalSize;
226
230
  exports.makeGlobalSize = size.makeGlobalSize;
227
231
  exports.makeStyleWithDefault = size.makeStyleWithDefault;
@@ -237,6 +241,8 @@ exports.generateProductQueryKey = query.generateProductQueryKey;
237
241
  exports.generateProductsQueryKey = query.generateProductsQueryKey;
238
242
  exports.composeAdvanceStyle = composeAdvanceStyle.composeAdvanceStyle;
239
243
  exports.splitStyle = composeAdvanceStyle.splitStyle;
244
+ exports.composePositionLineHeight = iconList.composePositionLineHeight;
245
+ exports.composePostionIconList = iconList.composePostionIconList;
240
246
  exports.useAddToCart = useAddToCart.useAddToCart;
241
247
  exports.useCartData = useCartData.useCartData;
242
248
  exports.useCartDiscountCodesUpdate = useCartDiscountCodesUpdate.useCartDiscountCodesUpdate;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const devicesMapping = {
4
+ desktop: '',
5
+ tablet: '-tablet',
6
+ mobile: '-mobile'
7
+ };
8
+
9
+ exports.devicesMapping = devicesMapping;
@@ -158,6 +158,17 @@ const ComponentToolbarPreview = ({ ...props })=>{
158
158
  window.dispatchEvent(event);
159
159
  return false;
160
160
  };
161
+ const toolbarName = ()=>{
162
+ const tag = props.tag;
163
+ if (tag === 'IconListV2') {
164
+ return 'Item list';
165
+ }
166
+ if (tag === 'IconList') {
167
+ return 'Advanced list';
168
+ }
169
+ const name = props.customLabel || props.label;
170
+ return name;
171
+ };
161
172
  const onZoomOut = (e)=>{
162
173
  e.preventDefault();
163
174
  e.stopPropagation();
@@ -250,7 +261,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
250
261
  children: isThemeSection ? props.name : `Section ${getIndexSection() + 1}${getSectionNumber() >= SECTION_LIMIT - 5 ? `/${SECTION_LIMIT}` : ''}`
251
262
  }) : /*#__PURE__*/ jsx("div", {
252
263
  "data-toolbar-name": true,
253
- children: props.customLabel || props.label
264
+ children: toolbarName()
254
265
  }),
255
266
  props.tag !== 'Section' && parents.length > 0 && /*#__PURE__*/ jsx("div", {
256
267
  "data-toolbar-icon-parent": true,
@@ -102,11 +102,16 @@ const ComponentWrapperPreview = ({ children, ...props })=>{
102
102
  advanced: advanced
103
103
  }),
104
104
  /*#__PURE__*/ jsxs("div", {
105
- style: style,
105
+ style: !props.editorConfigs?.component?.excludeApplyStyle ? style : {},
106
106
  className: `${props.uid} ${props.advanced?.cssClass ? props.advanced?.cssClass : ''}`,
107
107
  ...builderAttrs,
108
108
  children: [
109
- children,
109
+ !props.editorConfigs?.component?.validate && children,
110
+ /*#__PURE__*/ isValidElement(children) && props.editorConfigs?.component?.validate && /*#__PURE__*/ jsx(children.type, {
111
+ ...children.props,
112
+ style,
113
+ advanced
114
+ }),
110
115
  /*#__PURE__*/ jsx(ComponentToolbarPreview, {
111
116
  ...props
112
117
  })
@@ -20,6 +20,9 @@ const componentTexts = [
20
20
  'Text',
21
21
  'Heading'
22
22
  ];
23
+ const componentIconList = [
24
+ 'IconListV2'
25
+ ];
23
26
  const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
24
27
  const item = builder[uid];
25
28
  const Component = components[item?.tag];
@@ -100,7 +103,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
100
103
  });
101
104
  });
102
105
  } else {
103
- liquid = template`<div style="${style}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
106
+ liquid = template`<div style="${!componentIconList.includes(item.tag) ? style : ''}" class="${item.uid} ${!item?.childrens?.length && item.tag === 'IconListItemHoz' ? 'hidden' : ''}">
104
107
  ${RenderIf(item?.childrens?.length, ()=>{
105
108
  return Component({
106
109
  builderProps: {
@@ -149,6 +152,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
149
152
  },
150
153
  pageContext,
151
154
  isText: componentTexts.includes(item.tag) ? true : null,
155
+ style: componentIconList.includes(item.tag) ? style : null,
152
156
  ...passProps
153
157
  });
154
158
  })}
@@ -0,0 +1,58 @@
1
+ import { devicesMapping } from '../web-components/src/helpers/styles/constant.js';
2
+
3
+ const TEXT_TOTAL_SPACING = 3; //Padding 2, margin 1
4
+ const composePostionIconList = (lineHeight, position, iconWidth)=>{
5
+ const compose = {};
6
+ composePositionLineHeight({
7
+ compose,
8
+ lineHeight,
9
+ device: 'desktop',
10
+ position,
11
+ iconWidth
12
+ });
13
+ composePositionLineHeight({
14
+ compose,
15
+ lineHeight,
16
+ device: 'tablet',
17
+ position,
18
+ iconWidth
19
+ });
20
+ composePositionLineHeight({
21
+ compose,
22
+ lineHeight,
23
+ device: 'mobile',
24
+ position,
25
+ iconWidth
26
+ });
27
+ return compose;
28
+ };
29
+ const composePositionLineHeight = ({ compose, lineHeight, device, position, iconWidth })=>{
30
+ const positionDevice = position?.[device];
31
+ const iconWidthDevice = iconWidth?.[device];
32
+ if (positionDevice) {
33
+ const suffix = devicesMapping[device] ?? '';
34
+ if (positionDevice === 'center') {
35
+ compose.wrapper = {
36
+ ...compose.wrapper,
37
+ [`--ai${suffix}`]: 'center'
38
+ };
39
+ compose.content = {
40
+ ...compose.content,
41
+ [`--pos${suffix}`]: 'static'
42
+ };
43
+ } else if (iconWidthDevice) {
44
+ const computedTop = parseFloat(lineHeight.replaceAll(/[a-zA-Z]/g, '')) / 2 + TEXT_TOTAL_SPACING - iconWidthDevice / 2;
45
+ compose.wrapper = {
46
+ ...compose.wrapper,
47
+ [`--ai${suffix}`]: 'flex-start'
48
+ };
49
+ compose.content = {
50
+ ...compose.content,
51
+ [`--top${suffix}`]: `${Math.max(0, Math.ceil(computedTop))}px`,
52
+ [`--pos${suffix}`]: 'relative'
53
+ };
54
+ }
55
+ }
56
+ };
57
+
58
+ export { composePositionLineHeight, composePostionIconList };
@@ -1,5 +1,6 @@
1
1
  import { makeStyleResponsive } from './make-style.js';
2
2
  import { devicesMapping } from './constant.js';
3
+ import { getResponsiveValueByScreen } from './get-resonsive-value.js';
3
4
 
4
5
  function getCustomSizeCSSByDevice(size, device) {
5
6
  if (!size || !device) return {};
@@ -48,21 +49,102 @@ const makeStyleWithDefault = (name, value, defaultVal)=>{
48
49
  };
49
50
  const getWidthHeightGlobalSize = (type, globalSize)=>{
50
51
  if (!globalSize) return {};
51
- const data = {
52
- desktop: globalSize?.desktop?.[type],
53
- tablet: globalSize?.tablet?.[type],
54
- mobile: globalSize?.mobile?.[type]
55
- };
56
- if (data.desktop === undefined) {
57
- data.desktop = 'auto';
58
- }
59
- if (data.tablet === undefined) {
60
- data.tablet = data.desktop;
61
- }
62
- if (data.mobile === undefined) {
63
- data.mobile = data.tablet;
64
- }
65
- return data;
52
+ let result = {};
53
+ const DEVICES = [
54
+ 'desktop',
55
+ 'mobile',
56
+ 'tablet'
57
+ ];
58
+ DEVICES.forEach((device)=>{
59
+ result = {
60
+ ...result,
61
+ [device]: getResponsiveValueByScreen(globalSize, device)?.[type]
62
+ };
63
+ });
64
+ return result;
65
+ };
66
+ const getHeightByShapeGlobalSize = (shapeByLayout)=>{
67
+ let result = {};
68
+ const DEVICES = [
69
+ 'desktop',
70
+ 'mobile',
71
+ 'tablet'
72
+ ];
73
+ DEVICES.forEach((device)=>{
74
+ const shapeByDevice = getResponsiveValueByScreen(shapeByLayout, device);
75
+ const shapeValue = shapeByDevice?.shapeValue;
76
+ const height = shapeByDevice?.height;
77
+ result = {
78
+ ...result,
79
+ [device]: shapeValue ? 'auto' : height || 'auto'
80
+ };
81
+ });
82
+ return result;
83
+ };
84
+ const getWidthByShapeGlobalSize = (shapeByLayout)=>{
85
+ let result = {};
86
+ const DEVICES = [
87
+ 'desktop',
88
+ 'mobile',
89
+ 'tablet'
90
+ ];
91
+ DEVICES.forEach((device)=>{
92
+ const shapeByDevice = getResponsiveValueByScreen(shapeByLayout, device);
93
+ const width = shapeByDevice?.width;
94
+ if (width) {
95
+ result = {
96
+ ...result,
97
+ [device]: width
98
+ };
99
+ }
100
+ });
101
+ return result;
102
+ };
103
+ const getAspectRatioGlobalSize = (shape)=>{
104
+ let result = {};
105
+ const DEVICES = [
106
+ 'desktop',
107
+ 'mobile',
108
+ 'tablet'
109
+ ];
110
+ DEVICES.forEach((device)=>{
111
+ const shapeValue = getResponsiveValueByScreen(shape, device)?.shapeValue;
112
+ if (shapeValue) {
113
+ result = {
114
+ ...result,
115
+ [device]: shapeValue
116
+ };
117
+ } else {
118
+ const shapeConfig = getResponsiveValueByScreen(shape, device)?.shape;
119
+ switch(shapeConfig){
120
+ case 'square':
121
+ result = {
122
+ ...result,
123
+ [device]: '1/1'
124
+ };
125
+ break;
126
+ case 'vertical':
127
+ result = {
128
+ ...result,
129
+ [device]: '3/4'
130
+ };
131
+ break;
132
+ case 'horizontal':
133
+ result = {
134
+ ...result,
135
+ [device]: '4/3'
136
+ };
137
+ break;
138
+ case 'original':
139
+ result = {
140
+ ...result,
141
+ [device]: 'auto'
142
+ };
143
+ break;
144
+ }
145
+ }
146
+ });
147
+ return result;
66
148
  };
67
149
  function getCustomPaddingSizeCSSByDevice(globalSize, device) {
68
150
  if (!globalSize || !device) return {};
@@ -78,4 +160,4 @@ const getPaddingGlobalSize = (globalSize)=>{
78
160
  return Object.assign({}, getCustomPaddingSizeCSSByDevice(globalSize, 'desktop'), getCustomPaddingSizeCSSByDevice(globalSize, 'tablet'), getCustomPaddingSizeCSSByDevice(globalSize, 'mobile'));
79
161
  };
80
162
 
81
- export { composeSize, composeSizeCss, genSizeClass, getPaddingGlobalSize, getWidthHeightGlobalSize, makeGlobalSize, makeStyleWithDefault };
163
+ export { composeSize, composeSizeCss, genSizeClass, getAspectRatioGlobalSize, getHeightByShapeGlobalSize, getPaddingGlobalSize, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, makeGlobalSize, makeStyleWithDefault };
package/dist/esm/index.js CHANGED
@@ -53,11 +53,12 @@ import * as tiktokpixel from './helpers/tracking/tiktokpixel.js';
53
53
  export { tiktokpixel };
54
54
  export { RenderIf, composeMemo, dataStringify, props, styles, template } from './helpers/render.js';
55
55
  export { baseAssetURL, isLocalEnv } from './helpers/convert.js';
56
- export { composeSize, composeSizeCss, genSizeClass, getPaddingGlobalSize, getWidthHeightGlobalSize, makeGlobalSize, makeStyleWithDefault } from './helpers/size.js';
56
+ export { composeSize, composeSizeCss, genSizeClass, getAspectRatioGlobalSize, getHeightByShapeGlobalSize, getPaddingGlobalSize, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, makeGlobalSize, makeStyleWithDefault } from './helpers/size.js';
57
57
  export { composeShadowCss, getStyleShadow, getStyleShadowState, parseValueWithUnit } from './helpers/shadow.js';
58
58
  export { composeBackgroundCss, getStyleBackgroundByDevice, makeFixedBgAttachment } from './helpers/background.js';
59
59
  export { generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey } from './helpers/query.js';
60
60
  export { composeAdvanceStyle, splitStyle } from './helpers/compose-advance-style.js';
61
+ export { composePositionLineHeight, composePostionIconList } from './helpers/icon-list.js';
61
62
  export { useAddToCart } from './hooks/cart/use-add-to-cart.js';
62
63
  export { useCartData } from './hooks/cart/use-cart-data.js';
63
64
  export { useCartDiscountCodesUpdate } from './hooks/cart/use-cart-discount-codes-update.js';
@@ -0,0 +1,7 @@
1
+ const devicesMapping = {
2
+ desktop: '',
3
+ tablet: '-tablet',
4
+ mobile: '-mobile'
5
+ };
6
+
7
+ export { devicesMapping };
@@ -92,7 +92,9 @@ type ImageShape$1 = {
92
92
  height?: string;
93
93
  };
94
94
  type SizeSettingGlobal = {
95
- shape?: 'square' | 'vertical' | 'horizontal' | 'custom';
95
+ shape?: 'square' | 'vertical' | 'horizontal' | 'custom' | 'original';
96
+ shapeLinked?: boolean;
97
+ shapeValue?: string;
96
98
  padding?: {
97
99
  type?: 'small' | 'medium' | 'large' | 'custom';
98
100
  top?: string;
@@ -123,8 +125,8 @@ type Component = InitComponentType & {
123
125
  uid: string;
124
126
  childrens?: Component[];
125
127
  };
126
- type NameDevices = 'desktop' | 'tablet' | 'mobile';
127
- type ObjectDevices<T> = Partial<Record<NameDevices, T>>;
128
+ type NameDevices$1 = 'desktop' | 'tablet' | 'mobile';
129
+ type ObjectDevices<T> = Partial<Record<NameDevices$1, T>>;
128
130
  type StateType = 'normal' | 'hover' | 'focus' | 'active';
129
131
  type StateProp<T> = Partial<Record<StateType, T>>;
130
132
  type ResponsiveStateProp<T> = ObjectDevices<StateProp<T>>;
@@ -782,6 +784,7 @@ type Mapped$1<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
782
784
  options: Option<T>[];
783
785
  iconViewBox?: string;
784
786
  enableItemBackground?: boolean;
787
+ enableTooltip?: boolean;
785
788
  default?: T;
786
789
  };
787
790
  type LayoutSegmentControlType<T> = {
@@ -914,7 +917,7 @@ type GridArrange<T> = SharedControlType<T> & {
914
917
  };
915
918
 
916
919
  type SettingID = 'shape' | 'width' | 'height' | 'gap' | 'padding';
917
- type OptionKeyword = 'default' | 'auto' | 'full' | 'equal' | 'small' | 'medium' | 'large';
920
+ type OptionKeyword = 'default' | 'auto' | 'full' | 'equal' | 'small' | 'medium' | 'large' | 'original';
918
921
  type PaddingOptions = 'small' | 'medium' | 'large' | 'custom';
919
922
  type PaddingConfig = Partial<Record<PaddingOptions, {
920
923
  vertical: string;
@@ -931,9 +934,27 @@ type SizeSetting$1<T> = SharedControlType<T> & {
931
934
  readonly?: boolean;
932
935
  hiddenSettings?: SettingID[];
933
936
  settingConfig?: Partial<Record<SettingID, SettingConfig>>;
937
+ hiddenShowMore?: boolean;
938
+ };
939
+
940
+ type ChildIconType<T> = SharedControlType<T> & {
941
+ type: 'child-icon';
942
+ [key: string]: any;
934
943
  };
935
944
 
936
- type ControlProp<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> | 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> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | ProductListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T>;
945
+ type DropdownInput<T> = SharedControlType<T> & {
946
+ type: 'dropdown:input';
947
+ hideUnit?: boolean;
948
+ inputType?: 'text' | 'number';
949
+ displayOptions?: {
950
+ label: string;
951
+ value: string;
952
+ reversed?: boolean;
953
+ showValue?: boolean;
954
+ }[];
955
+ };
956
+
957
+ type ControlProp<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> | 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> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | ProductListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T>;
937
958
  type Setting<P extends BaseProps> = {
938
959
  id: 'setting';
939
960
  note?: string;
@@ -961,6 +982,8 @@ type ComponentSetting<P extends BaseProps> = {
961
982
  noWrap?: boolean;
962
983
  editorConfigs?: {
963
984
  component?: {
985
+ validate?: boolean;
986
+ excludeApplyStyle?: boolean;
964
987
  noDelete?: boolean;
965
988
  noDuplicate?: boolean;
966
989
  noDragDrop?: boolean;
@@ -1016,6 +1039,10 @@ type ControlUI = {
1016
1039
  info?: 'near' | 'far';
1017
1040
  labelSpacing?: 'small' | 'medium' | 'large';
1018
1041
  removeSpacing?: boolean;
1042
+ tooltip?: {
1043
+ icon?: string;
1044
+ content?: string;
1045
+ };
1019
1046
  hideOnDevices?: {
1020
1047
  desktop?: boolean;
1021
1048
  tablet?: boolean;
@@ -7864,9 +7891,9 @@ declare function cls(...classes: ClassValue[]): string;
7864
7891
  */
7865
7892
  declare const flattenConnection: <T>(connection?: Maybe<GraphQLConnection<T>>) => Maybe<T>[];
7866
7893
 
7867
- declare const getResponsiveValue: <I, K extends keyof I>(input?: Partial<Record<NameDevices, I>> | undefined, k?: K | undefined) => Partial<Record<NameDevices, I[K]>>;
7868
- declare const getResponsiveStateValue: <I>(k: StateType, input?: Partial<Record<NameDevices, Partial<Record<StateType, I>>>> | undefined) => Partial<Record<NameDevices, I>>;
7869
- declare const getResponsiveValueByScreen: <T>(value?: Partial<Record<NameDevices, T>> | undefined, breakpoint?: NameDevices | undefined, defaultValue?: T | undefined) => T | undefined;
7894
+ declare const getResponsiveValue: <I, K extends keyof I>(input?: Partial<Record<NameDevices$1, I>> | undefined, k?: K | undefined) => Partial<Record<NameDevices$1, I[K]>>;
7895
+ declare const getResponsiveStateValue: <I>(k: StateType, input?: Partial<Record<NameDevices$1, Partial<Record<StateType, I>>>> | undefined) => Partial<Record<NameDevices$1, I>>;
7896
+ declare const getResponsiveValueByScreen: <T>(value?: Partial<Record<NameDevices$1, T>> | undefined, breakpoint?: NameDevices$1 | undefined, defaultValue?: T | undefined) => T | undefined;
7870
7897
  declare const isColumnDirectionExist: (layout: ObjectDevices<ObjectLayoutValue>, breakpoint: keyof ObjectDevices<ObjectLayoutValue>) => boolean;
7871
7898
 
7872
7899
  declare function getShortName(name: string): string;
@@ -7891,8 +7918,8 @@ declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) =
7891
7918
  [k: string]: Record<`--${T}`, K>;
7892
7919
  };
7893
7920
  declare const makeStyleState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<StateType, K>> | undefined) => {};
7894
- declare const makeStyleResponsiveState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices, Partial<Record<StateType, K>>>> | undefined) => {};
7895
- declare const makeStyleResponsive: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices, K>> | undefined) => Record<ResponsiveKey<T>, K>;
7921
+ declare const makeStyleResponsiveState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, Partial<Record<StateType, K>>>> | undefined) => {};
7922
+ declare const makeStyleResponsive: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined) => Record<ResponsiveKey<T>, K>;
7896
7923
  declare const makeWidth: (widthValue?: ObjectDevices<string | number>, fullWidthValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
7897
7924
  declare const makeGlobalSizeWidthResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
7898
7925
  '--w': string | undefined;
@@ -9450,8 +9477,8 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
9450
9477
  };
9451
9478
 
9452
9479
  declare const getCornerCSSFromGlobal: (corner?: CornerRadius) => React.CSSProperties;
9453
- declare const getRadiusCSSFromGlobal: (state: StateType, key?: RoundedSize, device?: NameDevices) => React.CSSProperties;
9454
- declare const getCustomRadius: (state: StateType, radius?: CornerRadius, device?: NameDevices) => React.CSSProperties;
9480
+ declare const getRadiusCSSFromGlobal: (state: StateType, key?: RoundedSize, device?: NameDevices$1) => React.CSSProperties;
9481
+ declare const getCustomRadius: (state: StateType, radius?: CornerRadius, device?: NameDevices$1) => React.CSSProperties;
9455
9482
  declare const composeRadius: (value?: StateProp<CornerRadius> | ResponsiveStateProp<CornerRadius>) => React.CSSProperties;
9456
9483
  declare const composeRadiusResponsive: (radiusValue?: ObjectDevices<CornerRadius>) => React.CSSProperties;
9457
9484
  declare const getRadiusStyleActiveState: (radiusValue?: StateProp<CornerRadius>) => React.CSSProperties;
@@ -9534,8 +9561,11 @@ declare const makeGlobalSize: (globalSize?: ObjectDevices<SizeSettingGlobal>) =>
9534
9561
  height: Record<ResponsiveKey<"h">, string | number>;
9535
9562
  padding: React.CSSProperties;
9536
9563
  };
9537
- declare const makeStyleWithDefault: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices, K>> | undefined, defaultVal?: Partial<Record<NameDevices, K>> | undefined) => Record<ResponsiveKey<T>, K>;
9538
- declare const getWidthHeightGlobalSize: (type: 'width' | 'height', globalSize?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices, string | number>>;
9564
+ declare const makeStyleWithDefault: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, defaultVal?: Partial<Record<NameDevices$1, K>> | undefined) => Record<ResponsiveKey<T>, K>;
9565
+ declare const getWidthHeightGlobalSize: (type: 'width' | 'height', globalSize?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices$1, string | number>>;
9566
+ declare const getHeightByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices$1, string>>;
9567
+ declare const getWidthByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices$1, string>>;
9568
+ declare const getAspectRatioGlobalSize: (shape?: ObjectDevices<SizeSettingGlobal>) => ObjectDevices<string>;
9539
9569
  declare const getPaddingGlobalSize: (globalSize?: ObjectDevices<SizeSettingGlobal>) => React.CSSProperties;
9540
9570
 
9541
9571
  declare const parseValueWithUnit: (valueWithUnit: string) => any;
@@ -9605,6 +9635,21 @@ type AdvanceValue = Primitive | ObjectDevices<Primitive>;
9605
9635
  declare function composeAdvanceStyle(data?: Record<string, AdvanceValue>, tag?: string): React.CSSProperties;
9606
9636
  declare const splitStyle: (keys: ShortHandProperty[], style?: React.CSSProperties) => React.CSSProperties[];
9607
9637
 
9638
+ type NameDevices = 'desktop' | 'tablet' | 'mobile';
9639
+
9640
+ type PostionType = {
9641
+ wrapper?: Record<string, string | number>;
9642
+ content?: Record<string, string | number>;
9643
+ };
9644
+ declare const composePostionIconList: (lineHeight: string, position?: ObjectDevices<'center' | 'baseline'>, iconWidth?: ObjectDevices<number>) => PostionType;
9645
+ declare const composePositionLineHeight: ({ compose, lineHeight, device, position, iconWidth, }: {
9646
+ compose: PostionType;
9647
+ lineHeight: string;
9648
+ device: NameDevices;
9649
+ position?: Partial<Record<NameDevices$1, "center" | "baseline">> | undefined;
9650
+ iconWidth?: Partial<Record<NameDevices$1, number>> | undefined;
9651
+ }) => void;
9652
+
9608
9653
  type Func$6 = ReturnType<typeof addToCartOperation>;
9609
9654
  type Response$6 = Awaited<ReturnType<Func$6>>;
9610
9655
  type Args$5 = Parameters<Func$6>[0];
@@ -9685,7 +9730,7 @@ declare const useProductQuery: (productId?: string, options?: SWRConfiguration<P
9685
9730
 
9686
9731
  declare const useProductsQuery: (ids?: string[], options?: SWRConfiguration<ProductsQueryResponse>, defaultSelectedProductCount?: number) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
9687
9732
 
9688
- declare const useCurrentDevice: () => NameDevices;
9733
+ declare const useCurrentDevice: () => NameDevices$1;
9689
9734
 
9690
9735
  declare const useFormatMoney: (amount: number, withCurrency: boolean) => string;
9691
9736
 
@@ -9800,23 +9845,23 @@ declare const useCheckAvailableVariantInStock: (optionId: string, optionValue: s
9800
9845
  declare const useProductList: () => CollectionProductSelectFragment | undefined;
9801
9846
  declare const useProductListProducts: () => (ProductQuickSelectFragment | undefined)[] | undefined;
9802
9847
  declare const useProductListSettings: () => {
9803
- loop?: Partial<Record<NameDevices, boolean>> | undefined;
9804
- scrollMode?: Partial<Record<NameDevices, "snap" | "free" | "free-snap">> | undefined;
9805
- slidesToShow?: Partial<Record<NameDevices, number | "auto">> | undefined;
9806
- spacing?: Partial<Record<NameDevices, number>> | undefined;
9848
+ loop?: Partial<Record<NameDevices$1, boolean>> | undefined;
9849
+ scrollMode?: Partial<Record<NameDevices$1, "snap" | "free" | "free-snap">> | undefined;
9850
+ slidesToShow?: Partial<Record<NameDevices$1, number | "auto">> | undefined;
9851
+ spacing?: Partial<Record<NameDevices$1, number>> | undefined;
9807
9852
  layout?: "grid" | "slider" | undefined;
9808
- dot?: Partial<Record<NameDevices, boolean>> | undefined;
9809
- arrow?: Partial<Record<NameDevices, boolean>> | undefined;
9810
- controlOverContent?: Partial<Record<NameDevices, boolean>> | undefined;
9853
+ dot?: Partial<Record<NameDevices$1, boolean>> | undefined;
9854
+ arrow?: Partial<Record<NameDevices$1, boolean>> | undefined;
9855
+ controlOverContent?: Partial<Record<NameDevices$1, boolean>> | undefined;
9811
9856
  speed?: number | undefined;
9812
9857
  } | undefined;
9813
9858
  declare const useProductListStyles: () => {
9814
- horizontalGutter?: Partial<Record<NameDevices, string>> | undefined;
9815
- verticalGutter?: Partial<Record<NameDevices, string>> | undefined;
9816
- fullWidth?: Partial<Record<NameDevices, boolean>> | undefined;
9817
- spacing?: Partial<Record<NameDevices, number>> | undefined;
9818
- width?: Partial<Record<NameDevices, string>> | undefined;
9819
- height?: Partial<Record<NameDevices, string>> | undefined;
9859
+ horizontalGutter?: Partial<Record<NameDevices$1, string>> | undefined;
9860
+ verticalGutter?: Partial<Record<NameDevices$1, string>> | undefined;
9861
+ fullWidth?: Partial<Record<NameDevices$1, boolean>> | undefined;
9862
+ spacing?: Partial<Record<NameDevices$1, number>> | undefined;
9863
+ width?: Partial<Record<NameDevices$1, string>> | undefined;
9864
+ height?: Partial<Record<NameDevices$1, string>> | undefined;
9820
9865
  } | undefined;
9821
9866
 
9822
9867
  declare const useSuspenseFetch: <T>(key: string | any[], promise: () => Promise<T>) => {
@@ -9838,4 +9883,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
9838
9883
 
9839
9884
  declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
9840
9885
 
9841
- export { AddOn, AddonProvider, AddonProviderProps, 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, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, 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, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, 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, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, 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 };
9886
+ export { AddOn, AddonProvider, AddonProviderProps, 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, 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, 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, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, 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, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.25.18",
3
+ "version": "1.25.29",
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.25.0",
28
- "@gem-sdk/styles": "1.25.0"
28
+ "@gem-sdk/styles": "1.25.29"
29
29
  },
30
30
  "dependencies": {
31
31
  "react-error-boundary": "4.0.10",