@gem-sdk/core 1.22.4 → 1.22.16
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/Render.liquid.js +2 -2
- package/dist/cjs/components/constant.js +6 -5
- package/dist/cjs/helpers/make-style.js +16 -5
- package/dist/cjs/helpers/radius.js +8 -0
- package/dist/cjs/index.js +1 -0
- package/dist/esm/components/Render.liquid.js +2 -2
- package/dist/esm/components/constant.js +6 -5
- package/dist/esm/helpers/make-style.js +16 -5
- package/dist/esm/helpers/radius.js +8 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +24 -2
- package/package.json +2 -2
|
@@ -189,7 +189,7 @@ const RenderChildren = (props)=>{
|
|
|
189
189
|
if (Math.ceil(size / 1024) >= 180) {
|
|
190
190
|
const fileName = `gp-section-snippet-${props.uid}`;
|
|
191
191
|
props.customProps.extraFiles[fileName] = data.liquid;
|
|
192
|
-
return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
|
|
192
|
+
return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
|
|
193
193
|
}
|
|
194
194
|
return data.liquid;
|
|
195
195
|
};
|
|
@@ -206,7 +206,7 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
|
|
|
206
206
|
if (Math.ceil(size / 1024) >= 180) {
|
|
207
207
|
const fileName = `gp-section-snippet-${uid + i}`;
|
|
208
208
|
customProps.extraFiles[fileName] = code;
|
|
209
|
-
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
|
|
209
|
+
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
|
|
210
210
|
} else {
|
|
211
211
|
liquid += code;
|
|
212
212
|
}
|
|
@@ -34,14 +34,15 @@ const disableWrap = [
|
|
|
34
34
|
'ProductPrice',
|
|
35
35
|
'Product',
|
|
36
36
|
'ProductImages',
|
|
37
|
+
'ProductImagesV2',
|
|
37
38
|
'Sticky'
|
|
38
39
|
];
|
|
39
40
|
const customRenderChildren = [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
'Accordion',
|
|
42
|
+
'AccordionItem',
|
|
43
|
+
'Row',
|
|
44
|
+
'IconList',
|
|
45
|
+
'Tabs'
|
|
45
46
|
];
|
|
46
47
|
|
|
47
48
|
exports.customRenderChildren = customRenderChildren;
|
|
@@ -94,11 +94,22 @@ const makeHeight = (heighValue, autoHeight)=>{
|
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
const makeAspectRatio = (aspectRatio, aspectWidth, aspectHeight)=>{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
let result = {};
|
|
98
|
+
const DEVICES = [
|
|
99
|
+
'desktop',
|
|
100
|
+
'mobile',
|
|
101
|
+
'tablet'
|
|
102
|
+
];
|
|
103
|
+
DEVICES.forEach((device)=>{
|
|
104
|
+
const aspectRatioDevice = getResonsiveValue.getResponsiveValueByScreen(aspectRatio, device);
|
|
105
|
+
if (aspectRatioDevice !== 'none') {
|
|
106
|
+
result = {
|
|
107
|
+
...result,
|
|
108
|
+
[device]: aspectRatioDevice !== 'custom' ? aspectRatioDevice : `${getResonsiveValue.getResponsiveValueByScreen(aspectWidth, 'desktop')}/${getResonsiveValue.getResponsiveValueByScreen(aspectHeight, 'desktop')}`
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
return result;
|
|
102
113
|
};
|
|
103
114
|
const makeLineClamp = (lineClampValue, hasLineClampValue)=>{
|
|
104
115
|
const getVal = (deviceValue, lineClampValue, hasLineClampValue)=>{
|
|
@@ -44,6 +44,13 @@ const composeRadius = (value)=>{
|
|
|
44
44
|
}
|
|
45
45
|
return composeRadiusState(value);
|
|
46
46
|
};
|
|
47
|
+
const composeRadiusResponsive = (radiusValue)=>{
|
|
48
|
+
const style = {};
|
|
49
|
+
Object.assign(style, getCustomRadius('normal', radiusValue?.desktop, 'desktop'));
|
|
50
|
+
Object.assign(style, getCustomRadius('normal', radiusValue?.tablet, 'tablet'));
|
|
51
|
+
Object.assign(style, getCustomRadius('normal', radiusValue?.mobile, 'mobile'));
|
|
52
|
+
return style;
|
|
53
|
+
};
|
|
47
54
|
const composeRadiusState = (radiusValue, device)=>{
|
|
48
55
|
const style = {};
|
|
49
56
|
switch(radiusValue?.normal?.radiusType){
|
|
@@ -126,6 +133,7 @@ const composeCornerCss = (value, important = false)=>{
|
|
|
126
133
|
|
|
127
134
|
exports.composeCornerCss = composeCornerCss;
|
|
128
135
|
exports.composeRadius = composeRadius;
|
|
136
|
+
exports.composeRadiusResponsive = composeRadiusResponsive;
|
|
129
137
|
exports.getCornerCSSFromGlobal = getCornerCSSFromGlobal;
|
|
130
138
|
exports.getCustomRadius = getCustomRadius;
|
|
131
139
|
exports.getRadiusCSSFromGlobal = getRadiusCSSFromGlobal;
|
package/dist/cjs/index.js
CHANGED
|
@@ -193,6 +193,7 @@ exports.composeTypographyV2Css = typography.composeTypographyV2Css;
|
|
|
193
193
|
exports.genTypoClass = typography.genTypoClass;
|
|
194
194
|
exports.composeCornerCss = radius.composeCornerCss;
|
|
195
195
|
exports.composeRadius = radius.composeRadius;
|
|
196
|
+
exports.composeRadiusResponsive = radius.composeRadiusResponsive;
|
|
196
197
|
exports.getCornerCSSFromGlobal = radius.getCornerCSSFromGlobal;
|
|
197
198
|
exports.getCustomRadius = radius.getCustomRadius;
|
|
198
199
|
exports.getRadiusCSSFromGlobal = radius.getRadiusCSSFromGlobal;
|
|
@@ -185,7 +185,7 @@ const RenderChildren = (props)=>{
|
|
|
185
185
|
if (Math.ceil(size / 1024) >= 180) {
|
|
186
186
|
const fileName = `gp-section-snippet-${props.uid}`;
|
|
187
187
|
props.customProps.extraFiles[fileName] = data.liquid;
|
|
188
|
-
return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
|
|
188
|
+
return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
|
|
189
189
|
}
|
|
190
190
|
return data.liquid;
|
|
191
191
|
};
|
|
@@ -202,7 +202,7 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
|
|
|
202
202
|
if (Math.ceil(size / 1024) >= 180) {
|
|
203
203
|
const fileName = `gp-section-snippet-${uid + i}`;
|
|
204
204
|
customProps.extraFiles[fileName] = code;
|
|
205
|
-
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
|
|
205
|
+
liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
|
|
206
206
|
} else {
|
|
207
207
|
liquid += code;
|
|
208
208
|
}
|
|
@@ -32,14 +32,15 @@ const disableWrap = [
|
|
|
32
32
|
'ProductPrice',
|
|
33
33
|
'Product',
|
|
34
34
|
'ProductImages',
|
|
35
|
+
'ProductImagesV2',
|
|
35
36
|
'Sticky'
|
|
36
37
|
];
|
|
37
38
|
const customRenderChildren = [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
'Accordion',
|
|
40
|
+
'AccordionItem',
|
|
41
|
+
'Row',
|
|
42
|
+
'IconList',
|
|
43
|
+
'Tabs'
|
|
43
44
|
];
|
|
44
45
|
|
|
45
46
|
export { customRenderChildren, disableWrap };
|
|
@@ -92,11 +92,22 @@ const makeHeight = (heighValue, autoHeight)=>{
|
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
const makeAspectRatio = (aspectRatio, aspectWidth, aspectHeight)=>{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
let result = {};
|
|
96
|
+
const DEVICES = [
|
|
97
|
+
'desktop',
|
|
98
|
+
'mobile',
|
|
99
|
+
'tablet'
|
|
100
|
+
];
|
|
101
|
+
DEVICES.forEach((device)=>{
|
|
102
|
+
const aspectRatioDevice = getResponsiveValueByScreen(aspectRatio, device);
|
|
103
|
+
if (aspectRatioDevice !== 'none') {
|
|
104
|
+
result = {
|
|
105
|
+
...result,
|
|
106
|
+
[device]: aspectRatioDevice !== 'custom' ? aspectRatioDevice : `${getResponsiveValueByScreen(aspectWidth, 'desktop')}/${getResponsiveValueByScreen(aspectHeight, 'desktop')}`
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
return result;
|
|
100
111
|
};
|
|
101
112
|
const makeLineClamp = (lineClampValue, hasLineClampValue)=>{
|
|
102
113
|
const getVal = (deviceValue, lineClampValue, hasLineClampValue)=>{
|
|
@@ -42,6 +42,13 @@ const composeRadius = (value)=>{
|
|
|
42
42
|
}
|
|
43
43
|
return composeRadiusState(value);
|
|
44
44
|
};
|
|
45
|
+
const composeRadiusResponsive = (radiusValue)=>{
|
|
46
|
+
const style = {};
|
|
47
|
+
Object.assign(style, getCustomRadius('normal', radiusValue?.desktop, 'desktop'));
|
|
48
|
+
Object.assign(style, getCustomRadius('normal', radiusValue?.tablet, 'tablet'));
|
|
49
|
+
Object.assign(style, getCustomRadius('normal', radiusValue?.mobile, 'mobile'));
|
|
50
|
+
return style;
|
|
51
|
+
};
|
|
45
52
|
const composeRadiusState = (radiusValue, device)=>{
|
|
46
53
|
const style = {};
|
|
47
54
|
switch(radiusValue?.normal?.radiusType){
|
|
@@ -122,4 +129,4 @@ const composeCornerCss = (value, important = false)=>{
|
|
|
122
129
|
return radiusValue;
|
|
123
130
|
};
|
|
124
131
|
|
|
125
|
-
export { composeCornerCss, composeRadius, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState };
|
|
132
|
+
export { composeCornerCss, composeRadius, composeRadiusResponsive, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState };
|
package/dist/esm/index.js
CHANGED
|
@@ -41,7 +41,7 @@ export { composeGridLayout, convertOldLayout, gridToArrayRegex, optionLayoutStyl
|
|
|
41
41
|
export { isDefined } from './helpers/is-defined.js';
|
|
42
42
|
export { composeTextColorCss, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getSingleColorVariable, isColor } from './helpers/colors.js';
|
|
43
43
|
export { composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass } from './helpers/typography.js';
|
|
44
|
-
export { composeCornerCss, composeRadius, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState } from './helpers/radius.js';
|
|
44
|
+
export { composeCornerCss, composeRadius, composeRadiusResponsive, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState } from './helpers/radius.js';
|
|
45
45
|
export { checkAvailableVariantInStock, getSelectedVariant, parseSelectedOption } from './helpers/product.js';
|
|
46
46
|
import * as fpixel from './helpers/tracking/fpixel.js';
|
|
47
47
|
export { fpixel };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -105,6 +105,11 @@ type Ratio$1 = {
|
|
|
105
105
|
width?: string;
|
|
106
106
|
height?: string;
|
|
107
107
|
};
|
|
108
|
+
type ImageShape$1 = {
|
|
109
|
+
shape?: 'square' | 'vertical' | 'horizontal' | 'custom';
|
|
110
|
+
width?: string;
|
|
111
|
+
height?: string;
|
|
112
|
+
};
|
|
108
113
|
type FlexDirectionProp = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
109
114
|
type TransformProp = 'default' | 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
110
115
|
type BaseProps<Setting = unknown, Style = unknown, Advanced = Record<string, any>> = {
|
|
@@ -733,6 +738,7 @@ type Option<T> = {
|
|
|
733
738
|
label?: string | number;
|
|
734
739
|
type?: string;
|
|
735
740
|
icon?: string;
|
|
741
|
+
isTextIcon?: boolean;
|
|
736
742
|
};
|
|
737
743
|
type Mapped$1<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
738
744
|
id: K;
|
|
@@ -756,6 +762,9 @@ type Mapped$1<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
756
762
|
devices?: ResponsiveConfig<U>;
|
|
757
763
|
iconViewBox?: string;
|
|
758
764
|
enableItemBackground?: boolean;
|
|
765
|
+
itemPerRow?: number;
|
|
766
|
+
itemSpacing?: 'large' | 'small';
|
|
767
|
+
enableTooltip?: boolean;
|
|
759
768
|
} : {
|
|
760
769
|
id: K;
|
|
761
770
|
label: string;
|
|
@@ -896,7 +905,19 @@ type StepsGuide<T> = {
|
|
|
896
905
|
[K in keyof T]-?: Mapped<K, T[K]>;
|
|
897
906
|
}[keyof T];
|
|
898
907
|
|
|
899
|
-
type
|
|
908
|
+
type ImageShape<T> = SharedControlType<T> & {
|
|
909
|
+
type: 'image-shape';
|
|
910
|
+
placeholder?: string;
|
|
911
|
+
readonly?: boolean;
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
type GridArrange<T> = SharedControlType<T> & {
|
|
915
|
+
type: 'grid-arrange';
|
|
916
|
+
placeholder?: string;
|
|
917
|
+
readonly?: boolean;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
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>;
|
|
900
921
|
type Setting<P extends BaseProps> = {
|
|
901
922
|
id: 'setting';
|
|
902
923
|
note?: string;
|
|
@@ -9351,6 +9372,7 @@ declare const getCornerCSSFromGlobal: (corner?: CornerRadius) => React.CSSProper
|
|
|
9351
9372
|
declare const getRadiusCSSFromGlobal: (state: StateType, key?: RoundedSize, device?: NameDevices) => React.CSSProperties;
|
|
9352
9373
|
declare const getCustomRadius: (state: StateType, radius?: CornerRadius, device?: NameDevices) => React.CSSProperties;
|
|
9353
9374
|
declare const composeRadius: (value?: StateProp<CornerRadius> | ResponsiveStateProp<CornerRadius>) => React.CSSProperties;
|
|
9375
|
+
declare const composeRadiusResponsive: (radiusValue?: ObjectDevices<CornerRadius>) => React.CSSProperties;
|
|
9354
9376
|
declare const getRadiusStyleActiveState: (radiusValue?: StateProp<CornerRadius>) => React.CSSProperties;
|
|
9355
9377
|
declare const composeCornerCss: (value?: CornerRadius | undefined, important?: boolean) => string | undefined;
|
|
9356
9378
|
|
|
@@ -9718,4 +9740,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
9718
9740
|
|
|
9719
9741
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
9720
9742
|
|
|
9721
|
-
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, ExtractState, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OptionNormalStyle, OptionSpecialStyle, 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, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composeRadius, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, 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, 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 };
|
|
9743
|
+
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, ExtractState, 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, OptionNormalStyle, OptionSpecialStyle, 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, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, 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, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, 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, 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.22.
|
|
3
|
+
"version": "1.22.16",
|
|
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.12.0",
|
|
28
|
-
"@gem-sdk/styles": "1.22.
|
|
28
|
+
"@gem-sdk/styles": "1.22.9"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|