@gem-sdk/core 2.1.27-staging.7 → 2.1.30
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 +9 -9
- package/dist/cjs/helpers/align.js +0 -18
- package/dist/cjs/helpers/layout.js +0 -17
- package/dist/cjs/index.js +0 -2
- package/dist/esm/components/Render.liquid.js +9 -9
- package/dist/esm/helpers/align.js +1 -18
- package/dist/esm/helpers/layout.js +1 -17
- package/dist/esm/index.js +2 -2
- package/dist/types/index.d.ts +3 -7
- package/package.json +3 -3
|
@@ -36,7 +36,7 @@ const componentUsingAdvanced = [
|
|
|
36
36
|
'IconList',
|
|
37
37
|
'ProductVariants'
|
|
38
38
|
];
|
|
39
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
39
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
40
40
|
const item = builder[uid];
|
|
41
41
|
const Component = components[item?.tag];
|
|
42
42
|
if (!Component) {
|
|
@@ -75,7 +75,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
75
75
|
advanced: item.advanced,
|
|
76
76
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
77
77
|
pageContext,
|
|
78
|
-
|
|
78
|
+
enableLazyloadImage,
|
|
79
79
|
...passProps,
|
|
80
80
|
builderAttrs: {
|
|
81
81
|
...passProps.builderAttrs
|
|
@@ -88,7 +88,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
88
88
|
components,
|
|
89
89
|
customProps,
|
|
90
90
|
pageContext,
|
|
91
|
-
|
|
91
|
+
enableLazyloadImage
|
|
92
92
|
};
|
|
93
93
|
}),
|
|
94
94
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -101,7 +101,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
101
101
|
customProps,
|
|
102
102
|
parentTag: item.tag,
|
|
103
103
|
pageContext,
|
|
104
|
-
|
|
104
|
+
enableLazyloadImage
|
|
105
105
|
}))) : ''
|
|
106
106
|
});
|
|
107
107
|
}, ()=>{
|
|
@@ -117,7 +117,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
117
117
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
118
118
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
119
119
|
pageContext,
|
|
120
|
-
|
|
120
|
+
enableLazyloadImage,
|
|
121
121
|
...passProps,
|
|
122
122
|
builderAttrs: {
|
|
123
123
|
...passProps.builderAttrs
|
|
@@ -139,7 +139,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
139
139
|
cssClass: item?.advanced?.cssClass
|
|
140
140
|
},
|
|
141
141
|
pageContext,
|
|
142
|
-
|
|
142
|
+
enableLazyloadImage,
|
|
143
143
|
...passProps,
|
|
144
144
|
builderAttrs: {
|
|
145
145
|
...passProps.builderAttrs
|
|
@@ -152,7 +152,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
152
152
|
components,
|
|
153
153
|
customProps,
|
|
154
154
|
pageContext,
|
|
155
|
-
|
|
155
|
+
enableLazyloadImage
|
|
156
156
|
};
|
|
157
157
|
}),
|
|
158
158
|
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -165,7 +165,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
165
165
|
customProps,
|
|
166
166
|
parentTag: item.tag,
|
|
167
167
|
pageContext,
|
|
168
|
-
|
|
168
|
+
enableLazyloadImage
|
|
169
169
|
}))) : ''
|
|
170
170
|
});
|
|
171
171
|
}, ()=>{
|
|
@@ -181,7 +181,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
181
181
|
cssClass: item?.advanced?.cssClass
|
|
182
182
|
},
|
|
183
183
|
pageContext,
|
|
184
|
-
|
|
184
|
+
enableLazyloadImage,
|
|
185
185
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
186
186
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
187
187
|
...passProps,
|
|
@@ -15,23 +15,5 @@ const convertTextAlignToJustify = (align)=>{
|
|
|
15
15
|
});
|
|
16
16
|
return result;
|
|
17
17
|
};
|
|
18
|
-
const getAlignmentClasses = (align)=>{
|
|
19
|
-
const breakpoints = [
|
|
20
|
-
'desktop',
|
|
21
|
-
'tablet',
|
|
22
|
-
'mobile'
|
|
23
|
-
];
|
|
24
|
-
return breakpoints.reduce((classes, bp)=>{
|
|
25
|
-
const prefix = bp === 'desktop' ? '' : `${bp}:`;
|
|
26
|
-
const alignment = align?.[bp];
|
|
27
|
-
if (alignment) {
|
|
28
|
-
classes[`${prefix}gp-justify-start`] = alignment === 'left';
|
|
29
|
-
classes[`${prefix}gp-justify-center`] = alignment === 'center';
|
|
30
|
-
classes[`${prefix}gp-justify-end`] = alignment === 'right';
|
|
31
|
-
}
|
|
32
|
-
return classes;
|
|
33
|
-
}, {});
|
|
34
|
-
};
|
|
35
18
|
|
|
36
19
|
exports.convertTextAlignToJustify = convertTextAlignToJustify;
|
|
37
|
-
exports.getAlignmentClasses = getAlignmentClasses;
|
|
@@ -52,25 +52,8 @@ const convertOldLayout = (layout)=>{
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
const getLayoutClasses = (layout)=>{
|
|
56
|
-
const breakpoints = [
|
|
57
|
-
'desktop',
|
|
58
|
-
'tablet',
|
|
59
|
-
'mobile'
|
|
60
|
-
];
|
|
61
|
-
return breakpoints.reduce((classes, bp)=>{
|
|
62
|
-
const prefix = bp === 'desktop' ? '' : `${bp}:`;
|
|
63
|
-
const layoutValue = layout?.[bp];
|
|
64
|
-
if (layoutValue) {
|
|
65
|
-
classes[`${prefix}gp-flex-col`] = layoutValue === 'vertical';
|
|
66
|
-
classes[`${prefix}gp-flex-row`] = layoutValue === 'horizontal';
|
|
67
|
-
}
|
|
68
|
-
return classes;
|
|
69
|
-
}, {});
|
|
70
|
-
};
|
|
71
55
|
|
|
72
56
|
exports.composeGridLayout = composeGridLayout;
|
|
73
57
|
exports.convertOldLayout = convertOldLayout;
|
|
74
|
-
exports.getLayoutClasses = getLayoutClasses;
|
|
75
58
|
exports.gridToArrayRegex = gridToArrayRegex;
|
|
76
59
|
exports.optionLayoutStyle = optionLayoutStyle;
|
package/dist/cjs/index.js
CHANGED
|
@@ -240,7 +240,6 @@ exports.composePostionIconList = iconList.composePostionIconList;
|
|
|
240
240
|
exports.isDefined = isDefined.isDefined;
|
|
241
241
|
exports.composeGridLayout = layout.composeGridLayout;
|
|
242
242
|
exports.convertOldLayout = layout.convertOldLayout;
|
|
243
|
-
exports.getLayoutClasses = layout.getLayoutClasses;
|
|
244
243
|
exports.gridToArrayRegex = layout.gridToArrayRegex;
|
|
245
244
|
exports.optionLayoutStyle = layout.optionLayoutStyle;
|
|
246
245
|
exports.makeAspectRatio = makeStyle.makeAspectRatio;
|
|
@@ -257,7 +256,6 @@ exports.makeStyleState = makeStyle.makeStyleState;
|
|
|
257
256
|
exports.makeWidth = makeStyle.makeWidth;
|
|
258
257
|
exports.removeNullUndefined = makeStyle.removeNullUndefined;
|
|
259
258
|
exports.convertTextAlignToJustify = align.convertTextAlignToJustify;
|
|
260
|
-
exports.getAlignmentClasses = align.getAlignmentClasses;
|
|
261
259
|
exports.checkInStock = variant.checkInStock;
|
|
262
260
|
exports.checkAvailableVariantInStock = product.checkAvailableVariantInStock;
|
|
263
261
|
exports.getSelectedVariant = product.getSelectedVariant;
|
|
@@ -32,7 +32,7 @@ const componentUsingAdvanced = [
|
|
|
32
32
|
'IconList',
|
|
33
33
|
'ProductVariants'
|
|
34
34
|
];
|
|
35
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext,
|
|
35
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
36
36
|
const item = builder[uid];
|
|
37
37
|
const Component = components[item?.tag];
|
|
38
38
|
if (!Component) {
|
|
@@ -71,7 +71,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
71
71
|
advanced: item.advanced,
|
|
72
72
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
73
73
|
pageContext,
|
|
74
|
-
|
|
74
|
+
enableLazyloadImage,
|
|
75
75
|
...passProps,
|
|
76
76
|
builderAttrs: {
|
|
77
77
|
...passProps.builderAttrs
|
|
@@ -84,7 +84,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
84
84
|
components,
|
|
85
85
|
customProps,
|
|
86
86
|
pageContext,
|
|
87
|
-
|
|
87
|
+
enableLazyloadImage
|
|
88
88
|
};
|
|
89
89
|
}),
|
|
90
90
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -97,7 +97,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
97
97
|
customProps,
|
|
98
98
|
parentTag: item.tag,
|
|
99
99
|
pageContext,
|
|
100
|
-
|
|
100
|
+
enableLazyloadImage
|
|
101
101
|
}))) : ''
|
|
102
102
|
});
|
|
103
103
|
}, ()=>{
|
|
@@ -113,7 +113,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
113
113
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
114
114
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
115
115
|
pageContext,
|
|
116
|
-
|
|
116
|
+
enableLazyloadImage,
|
|
117
117
|
...passProps,
|
|
118
118
|
builderAttrs: {
|
|
119
119
|
...passProps.builderAttrs
|
|
@@ -135,7 +135,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
135
135
|
cssClass: item?.advanced?.cssClass
|
|
136
136
|
},
|
|
137
137
|
pageContext,
|
|
138
|
-
|
|
138
|
+
enableLazyloadImage,
|
|
139
139
|
...passProps,
|
|
140
140
|
builderAttrs: {
|
|
141
141
|
...passProps.builderAttrs
|
|
@@ -148,7 +148,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
148
148
|
components,
|
|
149
149
|
customProps,
|
|
150
150
|
pageContext,
|
|
151
|
-
|
|
151
|
+
enableLazyloadImage
|
|
152
152
|
};
|
|
153
153
|
}),
|
|
154
154
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -161,7 +161,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
161
161
|
customProps,
|
|
162
162
|
parentTag: item.tag,
|
|
163
163
|
pageContext,
|
|
164
|
-
|
|
164
|
+
enableLazyloadImage
|
|
165
165
|
}))) : ''
|
|
166
166
|
});
|
|
167
167
|
}, ()=>{
|
|
@@ -177,7 +177,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
177
177
|
cssClass: item?.advanced?.cssClass
|
|
178
178
|
},
|
|
179
179
|
pageContext,
|
|
180
|
-
|
|
180
|
+
enableLazyloadImage,
|
|
181
181
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
182
182
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
183
183
|
...passProps,
|
|
@@ -13,22 +13,5 @@ const convertTextAlignToJustify = (align)=>{
|
|
|
13
13
|
});
|
|
14
14
|
return result;
|
|
15
15
|
};
|
|
16
|
-
const getAlignmentClasses = (align)=>{
|
|
17
|
-
const breakpoints = [
|
|
18
|
-
'desktop',
|
|
19
|
-
'tablet',
|
|
20
|
-
'mobile'
|
|
21
|
-
];
|
|
22
|
-
return breakpoints.reduce((classes, bp)=>{
|
|
23
|
-
const prefix = bp === 'desktop' ? '' : `${bp}:`;
|
|
24
|
-
const alignment = align?.[bp];
|
|
25
|
-
if (alignment) {
|
|
26
|
-
classes[`${prefix}gp-justify-start`] = alignment === 'left';
|
|
27
|
-
classes[`${prefix}gp-justify-center`] = alignment === 'center';
|
|
28
|
-
classes[`${prefix}gp-justify-end`] = alignment === 'right';
|
|
29
|
-
}
|
|
30
|
-
return classes;
|
|
31
|
-
}, {});
|
|
32
|
-
};
|
|
33
16
|
|
|
34
|
-
export { convertTextAlignToJustify
|
|
17
|
+
export { convertTextAlignToJustify };
|
|
@@ -50,21 +50,5 @@ const convertOldLayout = (layout)=>{
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
const getLayoutClasses = (layout)=>{
|
|
54
|
-
const breakpoints = [
|
|
55
|
-
'desktop',
|
|
56
|
-
'tablet',
|
|
57
|
-
'mobile'
|
|
58
|
-
];
|
|
59
|
-
return breakpoints.reduce((classes, bp)=>{
|
|
60
|
-
const prefix = bp === 'desktop' ? '' : `${bp}:`;
|
|
61
|
-
const layoutValue = layout?.[bp];
|
|
62
|
-
if (layoutValue) {
|
|
63
|
-
classes[`${prefix}gp-flex-col`] = layoutValue === 'vertical';
|
|
64
|
-
classes[`${prefix}gp-flex-row`] = layoutValue === 'horizontal';
|
|
65
|
-
}
|
|
66
|
-
return classes;
|
|
67
|
-
}, {});
|
|
68
|
-
};
|
|
69
53
|
|
|
70
|
-
export { composeGridLayout, convertOldLayout,
|
|
54
|
+
export { composeGridLayout, convertOldLayout, gridToArrayRegex, optionLayoutStyle };
|
package/dist/esm/index.js
CHANGED
|
@@ -63,9 +63,9 @@ export { baseAssetURL, isLocalEnv } from './helpers/convert.js';
|
|
|
63
63
|
export { convertHTML } from './helpers/covert-entities-html.js';
|
|
64
64
|
export { composePositionLineHeight, composePostionIconList } from './helpers/icon-list.js';
|
|
65
65
|
export { isDefined } from './helpers/is-defined.js';
|
|
66
|
-
export { composeGridLayout, convertOldLayout,
|
|
66
|
+
export { composeGridLayout, convertOldLayout, gridToArrayRegex, optionLayoutStyle } from './helpers/layout.js';
|
|
67
67
|
export { makeAspectRatio, makeGlobalSizeHeightResponsive, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
68
|
-
export { convertTextAlignToJustify
|
|
68
|
+
export { convertTextAlignToJustify } from './helpers/align.js';
|
|
69
69
|
export { checkInStock } from './helpers/variant.js';
|
|
70
70
|
export { checkAvailableVariantInStock, getSelectedVariant, parseSelectedOption } from './helpers/product.js';
|
|
71
71
|
export { generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey } from './helpers/query.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7438,7 +7438,6 @@ type BaseProps<Setting = unknown, Style = unknown, Advanced = AdvancedType> = {
|
|
|
7438
7438
|
styles?: Style;
|
|
7439
7439
|
setting?: Setting;
|
|
7440
7440
|
advanced?: Advanced;
|
|
7441
|
-
enableLazyLoadImage?: boolean;
|
|
7442
7441
|
};
|
|
7443
7442
|
type BasePropsWrap<S = unknown, Style = unknown, A = Record<string, any>> = BaseProps<S, Style, A> & {
|
|
7444
7443
|
builderAttrs?: Record<string, any>;
|
|
@@ -8884,7 +8883,6 @@ type PageContext = {
|
|
|
8884
8883
|
pageType?: string;
|
|
8885
8884
|
isTranslateWithLocale?: boolean;
|
|
8886
8885
|
sectionName?: string;
|
|
8887
|
-
isOptimizePlan?: boolean;
|
|
8888
8886
|
};
|
|
8889
8887
|
type OnlyOne<T, U> = (T & {
|
|
8890
8888
|
[K in keyof U]?: never;
|
|
@@ -35916,10 +35914,10 @@ type Props = {
|
|
|
35916
35914
|
components: Record<string, any>;
|
|
35917
35915
|
extraFiles?: ExtraFiles;
|
|
35918
35916
|
pageContext?: PageContext;
|
|
35919
|
-
|
|
35917
|
+
enableLazyloadImage?: boolean;
|
|
35920
35918
|
[key: string]: any;
|
|
35921
35919
|
};
|
|
35922
|
-
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext,
|
|
35920
|
+
declare const Render: ({ uid, builder, components, parentId, extraFiles, pageContext, enableLazyloadImage, ...passProps }: Props) => {
|
|
35923
35921
|
liquid: string;
|
|
35924
35922
|
extraFiles: ExtraFiles;
|
|
35925
35923
|
};
|
|
@@ -41495,10 +41493,8 @@ declare const gridToArrayRegex: RegExp;
|
|
|
41495
41493
|
declare const optionLayoutStyle: (column?: ObjectDevices<string | number>) => React.CSSProperties;
|
|
41496
41494
|
declare const composeGridLayout: (layout?: ObjectDevices<ObjectLayoutValue>) => React.CSSProperties;
|
|
41497
41495
|
declare const convertOldLayout: (layout?: ObjectDevices<string>) => ObjectDevices<ObjectLayoutValue>;
|
|
41498
|
-
declare const getLayoutClasses: (layout: Partial<Record<NameDevices$1, string>> | undefined) => Record<string, boolean>;
|
|
41499
41496
|
|
|
41500
41497
|
declare const convertTextAlignToJustify: (align: Partial<Record<NameDevices$1, AlignProp>> | undefined) => Record<string, boolean>;
|
|
41501
|
-
declare const getAlignmentClasses: (align: Partial<Record<NameDevices$1, AlignProp>> | undefined) => Record<string, boolean>;
|
|
41502
41498
|
|
|
41503
41499
|
declare function checkInStock(variant?: VariantSelectFragment, product?: ProductSelectFragment): boolean;
|
|
41504
41500
|
|
|
@@ -45025,4 +45021,4 @@ declare const useInteraction: () => {
|
|
|
45025
45021
|
interactionListenerLoaded: (callback: () => void) => void;
|
|
45026
45022
|
};
|
|
45027
45023
|
|
|
45028
|
-
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, QueryPublishedShopMetasArgs$1 as QueryPublishedShopMetasArgs, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TrustooWidgetTypeV2, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey,
|
|
45024
|
+
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, QueryPublishedShopMetasArgs$1 as QueryPublishedShopMetasArgs, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TrustooWidgetTypeV2, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStyleShadow, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBgColor, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.30",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "2.1.
|
|
31
|
-
"@gem-sdk/styles": "2.1.27
|
|
30
|
+
"@gem-sdk/adapter-shopify": "2.1.0",
|
|
31
|
+
"@gem-sdk/styles": "2.1.27",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|