@gem-sdk/core 1.23.0-staging.401 → 1.23.0-staging.415

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.
@@ -25,6 +25,10 @@ function Spacing(props) {
25
25
  const isDragging = react.useRef(false);
26
26
  const startY = react.useRef(0);
27
27
  const marginBottom = react.useRef(0);
28
+ const $visualNumberValue = react.useRef(null);
29
+ const [marginBottomValue, setMarginBottomValue] = react.useState(0);
30
+ const [isShowVisual, setIsShowVisual] = react.useState(false);
31
+ const hideVisualNumberValue = react.useRef(null);
28
32
  const getNewValueMargin = (event)=>{
29
33
  const top = event.clientY;
30
34
  const diffY = Math.ceil(top - startY.current);
@@ -43,6 +47,7 @@ function Spacing(props) {
43
47
  const $component = $bottomDrag.current.closest('[data-toolbar-wrap]');
44
48
  if ($component) {
45
49
  $component.style.marginBottom = newValue;
50
+ onShowMarginBottomNumber(newValue);
46
51
  }
47
52
  }
48
53
  };
@@ -135,6 +140,7 @@ function Spacing(props) {
135
140
  if ($marginBottom) {
136
141
  if ($bottomBg.current && $bottomDrag.current) {
137
142
  let value = style.marginBottom;
143
+ onShowMarginBottomNumber(value);
138
144
  if (parseFloat(value) < 0) {
139
145
  value = '0';
140
146
  }
@@ -153,17 +159,47 @@ function Spacing(props) {
153
159
  }
154
160
  }
155
161
  }, []);
162
+ const onShowMarginBottomNumber = (value)=>{
163
+ const parsedValue = parseFloat(value);
164
+ setMarginBottomValue(parsedValue);
165
+ setIsShowVisual(true);
166
+ if (hideVisualNumberValue.current) clearTimeout(hideVisualNumberValue.current);
167
+ hideVisualNumberValue.current = setTimeout(()=>{
168
+ setIsShowVisual(false);
169
+ }, 2000);
170
+ // break point 28px
171
+ const topPosition = parsedValue < 28 && parsedValue >= 0 ? parsedValue / 2 + 16 : parsedValue > 28 ? 0 : 16;
172
+ if ($visualNumberValue.current) {
173
+ $visualNumberValue.current.style.transform = `translateY(${topPosition}px)`;
174
+ }
175
+ };
176
+ const previousAdvanced = usePrevious(props.advanced?.['spacing-setting']);
156
177
  react.useEffect(()=>{
178
+ // validate spacing setting changed
179
+ if (JSON.stringify(previousAdvanced) !== JSON.stringify(props.advanced?.['spacing-setting'])) {
180
+ updateSpacing();
181
+ }
182
+ }, [
183
+ previousAdvanced,
184
+ props.advanced,
185
+ updateSpacing
186
+ ]);
187
+ const onWindowResize = react.useCallback(()=>{
157
188
  updateSpacing();
158
- });
189
+ }, [
190
+ updateSpacing
191
+ ]);
159
192
  react.useEffect(()=>{
160
193
  window.addEventListener('editor:toolbar:update-margin-bottom', updateSpacing);
161
194
  window.addEventListener('editor:toolbar:update-padding-left', updateSpacing);
195
+ window.addEventListener('resize', onWindowResize);
162
196
  return ()=>{
163
197
  window.removeEventListener('editor:toolbar:update-margin-bottom', updateSpacing);
164
198
  window.removeEventListener('editor:toolbar:update-padding-left', updateSpacing);
199
+ window.removeEventListener('resize', onWindowResize);
165
200
  };
166
201
  }, [
202
+ onWindowResize,
167
203
  updateSpacing
168
204
  ]);
169
205
  return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
@@ -174,12 +210,20 @@ function Spacing(props) {
174
210
  children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
175
211
  "data-spacing-margin-bottom": true,
176
212
  children: [
177
- /*#__PURE__*/ jsxRuntime.jsx("div", {
213
+ /*#__PURE__*/ jsxRuntime.jsxs("div", {
178
214
  "data-spacing-margin-bottom-bg": true,
179
215
  ref: $bottomBg,
180
- children: /*#__PURE__*/ jsxRuntime.jsx("div", {
181
- "data-spacing-margin-bottom-value": true
182
- })
216
+ children: [
217
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
218
+ "data-spacing-margin-bottom-value": true
219
+ }),
220
+ /*#__PURE__*/ jsxRuntime.jsx("div", {
221
+ "data-active": isShowVisual,
222
+ "data-value-number": true,
223
+ ref: $visualNumberValue,
224
+ children: marginBottomValue
225
+ })
226
+ ]
183
227
  }),
184
228
  /*#__PURE__*/ jsxRuntime.jsx("div", {
185
229
  ref: $bottomDrag,
@@ -193,5 +237,14 @@ function Spacing(props) {
193
237
  })
194
238
  });
195
239
  }
240
+ const usePrevious = (value)=>{
241
+ const ref = react.useRef();
242
+ react.useEffect(()=>{
243
+ ref.current = value;
244
+ }, [
245
+ value
246
+ ]);
247
+ return ref.current;
248
+ };
196
249
 
197
250
  exports.default = Spacing;
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ /* eslint-disable */ const CustomFontSelect = `
4
+ fragment CustomFontSelect on CustomFont {
5
+ backupFilePath
6
+ fontFamily
7
+ fontStyle
8
+ fontWeight
9
+ mimeType
10
+ filePath
11
+ }
12
+ `;
13
+
14
+ exports.CustomFontSelect = CustomFontSelect;
@@ -25,6 +25,9 @@
25
25
  themePageCustomCode {
26
26
  ...CustomCodeSelect
27
27
  }
28
+ themePageCustomFonts {
29
+ ...CustomFontSelect
30
+ }
28
31
  }
29
32
  `;
30
33
 
@@ -7,6 +7,7 @@ var dataSeo_generated = require('../fragments/data-seo.generated.js');
7
7
  var publishedThemeStyle_generated = require('../fragments/published-theme-style.generated.js');
8
8
  var analytic_generated = require('../fragments/analytic.generated.js');
9
9
  var customCode_generated = require('../fragments/custom-code.generated.js');
10
+ var customFont_generated = require('../fragments/custom-font.generated.js');
10
11
 
11
12
  const PublishedThemePagesDocument = `
12
13
  query publishedThemePages($slug: String, $slugType: PublishedThemePageType!) {
@@ -20,6 +21,7 @@ ${publishedCustomSection_generated.PublishedCustomSectionSelect}
20
21
  ${dataSeo_generated.DataSeoSelect}
21
22
  ${publishedThemeStyle_generated.PublishedThemeStyleSelect}
22
23
  ${analytic_generated.AnalyticSelect}
23
- ${customCode_generated.CustomCodeSelect}`;
24
+ ${customCode_generated.CustomCodeSelect}
25
+ ${customFont_generated.CustomFontSelect}`;
24
26
 
25
27
  exports.PublishedThemePagesDocument = PublishedThemePagesDocument;
@@ -61,7 +61,7 @@ const composeTypographyV2 = (value, attrs)=>{
61
61
  return makeStyle.removeNullUndefined({
62
62
  ...makeStyle.makeStyle({
63
63
  fs: !attrs?.italic ? value?.fontStyle : undefined,
64
- ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}')` : undefined,
64
+ ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}'), ${value.fallbackFontFamily}` : undefined,
65
65
  weight: !attrs?.bold ? value?.fontWeight : undefined,
66
66
  ls: value?.letterSpacing,
67
67
  lh: value?.lineHeight
@@ -84,10 +84,29 @@ const composeTypographyAttr = (attrs)=>{
84
84
  const composeTypographyClassName = (typo, typography)=>{
85
85
  return typo ? typo?.type && !typo.custom ? genTypoClass(typo.type) : '' : typography?.type && genTypoClass(typography?.type);
86
86
  };
87
+ const composeFallbackTypographyStyle = (tag)=>{
88
+ if ([
89
+ 'heading',
90
+ 'heading-1',
91
+ 'heading-2',
92
+ 'heading-3',
93
+ 'heading-4',
94
+ 'heading-5',
95
+ 'heading-6'
96
+ ].includes(tag)) {
97
+ return 'var(--g-font-heading, heading)';
98
+ }
99
+ return 'var(--g-font-body, body)';
100
+ };
87
101
  const composeTypographyStyle = (typo, typography, disableAttr)=>{
88
102
  if (typo) {
103
+ const fallbackFontFamily = composeFallbackTypographyStyle(typo.type ?? 'heading');
104
+ const customTypo = {
105
+ ...typo.custom,
106
+ fallbackFontFamily: fallbackFontFamily
107
+ };
89
108
  return {
90
- ...composeTypographyV2(typo.custom, typo.attrs),
109
+ ...composeTypographyV2(customTypo, typo.attrs),
91
110
  ...!disableAttr && composeTypographyAttr(typo.attrs)
92
111
  };
93
112
  }
@@ -96,6 +115,7 @@ const composeTypographyStyle = (typo, typography, disableAttr)=>{
96
115
  };
97
116
  };
98
117
 
118
+ exports.composeFallbackTypographyStyle = composeFallbackTypographyStyle;
99
119
  exports.composeTypography = composeTypography;
100
120
  exports.composeTypographyAttr = composeTypographyAttr;
101
121
  exports.composeTypographyClassName = composeTypographyClassName;
package/dist/cjs/index.js CHANGED
@@ -206,6 +206,7 @@ exports.getGlobalColorStateStyle = colors.getGlobalColorStateStyle;
206
206
  exports.getGlobalColorStyle = colors.getGlobalColorStyle;
207
207
  exports.getSingleColorVariable = colors.getSingleColorVariable;
208
208
  exports.isColor = colors.isColor;
209
+ exports.composeFallbackTypographyStyle = typography.composeFallbackTypographyStyle;
209
210
  exports.composeTypography = typography.composeTypography;
210
211
  exports.composeTypographyAttr = typography.composeTypographyAttr;
211
212
  exports.composeTypographyClassName = typography.composeTypographyClassName;
@@ -1,5 +1,5 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
- import { useRef, useCallback, useEffect } from 'react';
2
+ import { useRef, useState, useCallback, useEffect } from 'react';
3
3
  import 'zustand';
4
4
  import { useBuilderPreviewStore } from '../../contexts/BuilderPreviewContext.js';
5
5
  import 'swr';
@@ -21,6 +21,10 @@ function Spacing(props) {
21
21
  const isDragging = useRef(false);
22
22
  const startY = useRef(0);
23
23
  const marginBottom = useRef(0);
24
+ const $visualNumberValue = useRef(null);
25
+ const [marginBottomValue, setMarginBottomValue] = useState(0);
26
+ const [isShowVisual, setIsShowVisual] = useState(false);
27
+ const hideVisualNumberValue = useRef(null);
24
28
  const getNewValueMargin = (event)=>{
25
29
  const top = event.clientY;
26
30
  const diffY = Math.ceil(top - startY.current);
@@ -39,6 +43,7 @@ function Spacing(props) {
39
43
  const $component = $bottomDrag.current.closest('[data-toolbar-wrap]');
40
44
  if ($component) {
41
45
  $component.style.marginBottom = newValue;
46
+ onShowMarginBottomNumber(newValue);
42
47
  }
43
48
  }
44
49
  };
@@ -131,6 +136,7 @@ function Spacing(props) {
131
136
  if ($marginBottom) {
132
137
  if ($bottomBg.current && $bottomDrag.current) {
133
138
  let value = style.marginBottom;
139
+ onShowMarginBottomNumber(value);
134
140
  if (parseFloat(value) < 0) {
135
141
  value = '0';
136
142
  }
@@ -149,17 +155,47 @@ function Spacing(props) {
149
155
  }
150
156
  }
151
157
  }, []);
158
+ const onShowMarginBottomNumber = (value)=>{
159
+ const parsedValue = parseFloat(value);
160
+ setMarginBottomValue(parsedValue);
161
+ setIsShowVisual(true);
162
+ if (hideVisualNumberValue.current) clearTimeout(hideVisualNumberValue.current);
163
+ hideVisualNumberValue.current = setTimeout(()=>{
164
+ setIsShowVisual(false);
165
+ }, 2000);
166
+ // break point 28px
167
+ const topPosition = parsedValue < 28 && parsedValue >= 0 ? parsedValue / 2 + 16 : parsedValue > 28 ? 0 : 16;
168
+ if ($visualNumberValue.current) {
169
+ $visualNumberValue.current.style.transform = `translateY(${topPosition}px)`;
170
+ }
171
+ };
172
+ const previousAdvanced = usePrevious(props.advanced?.['spacing-setting']);
152
173
  useEffect(()=>{
174
+ // validate spacing setting changed
175
+ if (JSON.stringify(previousAdvanced) !== JSON.stringify(props.advanced?.['spacing-setting'])) {
176
+ updateSpacing();
177
+ }
178
+ }, [
179
+ previousAdvanced,
180
+ props.advanced,
181
+ updateSpacing
182
+ ]);
183
+ const onWindowResize = useCallback(()=>{
153
184
  updateSpacing();
154
- });
185
+ }, [
186
+ updateSpacing
187
+ ]);
155
188
  useEffect(()=>{
156
189
  window.addEventListener('editor:toolbar:update-margin-bottom', updateSpacing);
157
190
  window.addEventListener('editor:toolbar:update-padding-left', updateSpacing);
191
+ window.addEventListener('resize', onWindowResize);
158
192
  return ()=>{
159
193
  window.removeEventListener('editor:toolbar:update-margin-bottom', updateSpacing);
160
194
  window.removeEventListener('editor:toolbar:update-padding-left', updateSpacing);
195
+ window.removeEventListener('resize', onWindowResize);
161
196
  };
162
197
  }, [
198
+ onWindowResize,
163
199
  updateSpacing
164
200
  ]);
165
201
  return /*#__PURE__*/ jsx(Fragment, {
@@ -170,12 +206,20 @@ function Spacing(props) {
170
206
  children: /*#__PURE__*/ jsxs("div", {
171
207
  "data-spacing-margin-bottom": true,
172
208
  children: [
173
- /*#__PURE__*/ jsx("div", {
209
+ /*#__PURE__*/ jsxs("div", {
174
210
  "data-spacing-margin-bottom-bg": true,
175
211
  ref: $bottomBg,
176
- children: /*#__PURE__*/ jsx("div", {
177
- "data-spacing-margin-bottom-value": true
178
- })
212
+ children: [
213
+ /*#__PURE__*/ jsx("div", {
214
+ "data-spacing-margin-bottom-value": true
215
+ }),
216
+ /*#__PURE__*/ jsx("div", {
217
+ "data-active": isShowVisual,
218
+ "data-value-number": true,
219
+ ref: $visualNumberValue,
220
+ children: marginBottomValue
221
+ })
222
+ ]
179
223
  }),
180
224
  /*#__PURE__*/ jsx("div", {
181
225
  ref: $bottomDrag,
@@ -189,5 +233,14 @@ function Spacing(props) {
189
233
  })
190
234
  });
191
235
  }
236
+ const usePrevious = (value)=>{
237
+ const ref = useRef();
238
+ useEffect(()=>{
239
+ ref.current = value;
240
+ }, [
241
+ value
242
+ ]);
243
+ return ref.current;
244
+ };
192
245
 
193
246
  export { Spacing as default };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */ const CustomFontSelect = `
2
+ fragment CustomFontSelect on CustomFont {
3
+ backupFilePath
4
+ fontFamily
5
+ fontStyle
6
+ fontWeight
7
+ mimeType
8
+ filePath
9
+ }
10
+ `;
11
+
12
+ export { CustomFontSelect };
@@ -23,6 +23,9 @@
23
23
  themePageCustomCode {
24
24
  ...CustomCodeSelect
25
25
  }
26
+ themePageCustomFonts {
27
+ ...CustomFontSelect
28
+ }
26
29
  }
27
30
  `;
28
31
 
@@ -5,6 +5,7 @@ import { DataSeoSelect } from '../fragments/data-seo.generated.js';
5
5
  import { PublishedThemeStyleSelect } from '../fragments/published-theme-style.generated.js';
6
6
  import { AnalyticSelect } from '../fragments/analytic.generated.js';
7
7
  import { CustomCodeSelect } from '../fragments/custom-code.generated.js';
8
+ import { CustomFontSelect } from '../fragments/custom-font.generated.js';
8
9
 
9
10
  const PublishedThemePagesDocument = `
10
11
  query publishedThemePages($slug: String, $slugType: PublishedThemePageType!) {
@@ -18,6 +19,7 @@ ${PublishedCustomSectionSelect}
18
19
  ${DataSeoSelect}
19
20
  ${PublishedThemeStyleSelect}
20
21
  ${AnalyticSelect}
21
- ${CustomCodeSelect}`;
22
+ ${CustomCodeSelect}
23
+ ${CustomFontSelect}`;
22
24
 
23
25
  export { PublishedThemePagesDocument };
@@ -59,7 +59,7 @@ const composeTypographyV2 = (value, attrs)=>{
59
59
  return removeNullUndefined({
60
60
  ...makeStyle({
61
61
  fs: !attrs?.italic ? value?.fontStyle : undefined,
62
- ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}')` : undefined,
62
+ ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}'), ${value.fallbackFontFamily}` : undefined,
63
63
  weight: !attrs?.bold ? value?.fontWeight : undefined,
64
64
  ls: value?.letterSpacing,
65
65
  lh: value?.lineHeight
@@ -82,10 +82,29 @@ const composeTypographyAttr = (attrs)=>{
82
82
  const composeTypographyClassName = (typo, typography)=>{
83
83
  return typo ? typo?.type && !typo.custom ? genTypoClass(typo.type) : '' : typography?.type && genTypoClass(typography?.type);
84
84
  };
85
+ const composeFallbackTypographyStyle = (tag)=>{
86
+ if ([
87
+ 'heading',
88
+ 'heading-1',
89
+ 'heading-2',
90
+ 'heading-3',
91
+ 'heading-4',
92
+ 'heading-5',
93
+ 'heading-6'
94
+ ].includes(tag)) {
95
+ return 'var(--g-font-heading, heading)';
96
+ }
97
+ return 'var(--g-font-body, body)';
98
+ };
85
99
  const composeTypographyStyle = (typo, typography, disableAttr)=>{
86
100
  if (typo) {
101
+ const fallbackFontFamily = composeFallbackTypographyStyle(typo.type ?? 'heading');
102
+ const customTypo = {
103
+ ...typo.custom,
104
+ fallbackFontFamily: fallbackFontFamily
105
+ };
87
106
  return {
88
- ...composeTypographyV2(typo.custom, typo.attrs),
107
+ ...composeTypographyV2(customTypo, typo.attrs),
89
108
  ...!disableAttr && composeTypographyAttr(typo.attrs)
90
109
  };
91
110
  }
@@ -94,4 +113,4 @@ const composeTypographyStyle = (typo, typography, disableAttr)=>{
94
113
  };
95
114
  };
96
115
 
97
- export { composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass };
116
+ export { composeFallbackTypographyStyle, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass };
package/dist/esm/index.js CHANGED
@@ -46,7 +46,7 @@ export { genVariable } from './helpers/css-variable.js';
46
46
  export { composeGridLayout, convertOldLayout, gridToArrayRegex, optionLayoutStyle } from './helpers/layout.js';
47
47
  export { isDefined } from './helpers/is-defined.js';
48
48
  export { composeTextColorCss, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getSingleColorVariable, isColor } from './helpers/colors.js';
49
- export { composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass } from './helpers/typography.js';
49
+ export { composeFallbackTypographyStyle, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass } from './helpers/typography.js';
50
50
  export { composeCornerCss, composeRadius, composeRadiusResponsive, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState } from './helpers/radius.js';
51
51
  export { checkAvailableVariantInStock, getSelectedVariant, parseSelectedOption } from './helpers/product.js';
52
52
  import * as fpixel from './helpers/tracking/fpixel.js';
@@ -25427,6 +25427,7 @@ type TypographyProps = {
25427
25427
  fontFamily?: string;
25428
25428
  lineHeight?: string;
25429
25429
  letterSpacing?: string;
25430
+ fallbackFontFamily?: string;
25430
25431
  };
25431
25432
  type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
25432
25433
  fontSize?: ObjectDevices<string>;
@@ -26126,6 +26127,7 @@ type PublishedThemePagesQueryResponse = {
26126
26127
  pageStyle?: Maybe$1<Pick<PublishedThemeStyle$1, 'id' | 'data' | 'name'>>;
26127
26128
  themePageAnalytic?: Maybe$1<Pick<Analytic$1, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
26128
26129
  themePageCustomCode?: Maybe$1<Pick<CustomCode$1, 'body' | 'header'>>;
26130
+ themePageCustomFonts?: Maybe$1<Array<Maybe$1<CustomFont$1>>>;
26129
26131
  }>>>;
26130
26132
  };
26131
26133
  declare const PublishedThemePagesDocument: string;
@@ -26371,6 +26373,7 @@ declare const composeTypography: (typography?: ObjectDevices<TypographyProps>) =
26371
26373
  declare const composeTypographyV2: (value?: TypographyV2Props, attrs?: TypographyV2Attrs) => React.CSSProperties;
26372
26374
  declare const composeTypographyAttr: (attrs?: TypographyV2Attrs) => React.CSSProperties;
26373
26375
  declare const composeTypographyClassName: (typo?: TypographySettingV2, typography?: TypographySetting) => "" | "gp-g-heading-1" | "gp-g-heading-2" | "gp-g-heading-3" | "gp-g-subheading-1" | "gp-g-subheading-2" | "gp-g-subheading-3" | "gp-g-paragraph-1" | "gp-g-paragraph-2" | "gp-g-paragraph-3" | undefined;
26376
+ declare const composeFallbackTypographyStyle: (tag: string) => "var(--g-font-heading, heading)" | "var(--g-font-body, body)";
26374
26377
  declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?: TypographySetting, disableAttr?: boolean) => {
26375
26378
  [x: string]: any;
26376
26379
  '--ai'?: csstype.Property.AlignItems | undefined;
@@ -34285,4 +34288,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name'
34285
34288
 
34286
34289
  declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
34287
34290
 
34288
- 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, 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, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, 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, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBgImageByDevice, 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, 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, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, shopifyPriceRounding, 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, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
34291
+ 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, 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, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, 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, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBgImageByDevice, 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, 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, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, shopifyPriceRounding, 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, useProductOfferDiscount, 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.401",
3
+ "version": "1.23.0-staging.415",
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.23.0-staging.383",
31
- "@gem-sdk/styles": "1.23.0-staging.397"
31
+ "@gem-sdk/styles": "1.23.0-staging.415"
32
32
  },
33
33
  "dependencies": {
34
34
  "react-error-boundary": "4.0.10",