@gem-sdk/core 1.23.0-staging.157 → 1.23.0-staging.171
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 +6 -1
- package/dist/cjs/helpers/product.js +4 -1
- package/dist/cjs/hooks/useProduct.js +14 -2
- package/dist/cjs/index.js +1 -0
- package/dist/esm/components/Render.liquid.js +6 -1
- package/dist/esm/helpers/product.js +4 -1
- package/dist/esm/hooks/useProduct.js +14 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +3 -2
- package/package.json +2 -2
|
@@ -25,7 +25,11 @@ const componentTexts = [
|
|
|
25
25
|
'Heading'
|
|
26
26
|
];
|
|
27
27
|
const componentIconList = [
|
|
28
|
-
'IconListV2'
|
|
28
|
+
'IconListV2',
|
|
29
|
+
'IconList'
|
|
30
|
+
];
|
|
31
|
+
const componentUsingAdvanced = [
|
|
32
|
+
'IconList'
|
|
29
33
|
];
|
|
30
34
|
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
31
35
|
const item = builder[uid];
|
|
@@ -117,6 +121,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
117
121
|
styles: item.styles,
|
|
118
122
|
setting: item.settings,
|
|
119
123
|
advanced: {
|
|
124
|
+
...componentUsingAdvanced.includes(item.tag) ? item?.advanced : {},
|
|
120
125
|
cssClass: item?.advanced?.cssClass
|
|
121
126
|
},
|
|
122
127
|
pageContext,
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var variant = require('./variant.js');
|
|
4
4
|
|
|
5
|
-
function getSelectedVariant(variants, choices) {
|
|
5
|
+
function getSelectedVariant(variants, choices, variantId) {
|
|
6
6
|
/**
|
|
7
7
|
* Ensure the user has selected all the required options, not just some.
|
|
8
8
|
*/ if (!variants || !variants.length || !choices || variants[0]?.selectedOptions.length !== Object.keys(choices).length) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
+
if (variantId) {
|
|
12
|
+
return variants.find((variant)=>variant?.id === variantId);
|
|
13
|
+
}
|
|
11
14
|
return variants.find((variant)=>{
|
|
12
15
|
return Object.entries(choices).every(([name, value])=>{
|
|
13
16
|
return variant?.selectedOptions.some((option)=>option.name === name && option.value === value);
|
|
@@ -77,6 +77,9 @@ const useQuantity = ()=>{
|
|
|
77
77
|
]);
|
|
78
78
|
};
|
|
79
79
|
const useSelectedOption = ()=>{
|
|
80
|
+
const url = new URL(window.location.href);
|
|
81
|
+
const variantId = url.searchParams.get('variant');
|
|
82
|
+
const selectedVariant = useVariant(variantId ?? '');
|
|
80
83
|
const setSelectedOption = ProductContext.useProductStore((s)=>s.setSelectedOption);
|
|
81
84
|
const selectedOptions = ProductContext.useProductStore((s)=>s.selectedOptions);
|
|
82
85
|
const forceSelectedOption = ProductContext.useProductStore((s)=>s.forceSelectedOption);
|
|
@@ -119,13 +122,22 @@ const useSelectedOption = ()=>{
|
|
|
119
122
|
isSyncProduct
|
|
120
123
|
]);
|
|
121
124
|
return react.useMemo(()=>({
|
|
122
|
-
selectedOptions,
|
|
125
|
+
selectedOptions: selectedVariant ? selectedVariant.selectedOptions.reduce((a, b)=>{
|
|
126
|
+
if (b.name) {
|
|
127
|
+
return {
|
|
128
|
+
...a,
|
|
129
|
+
[b.name]: b.value
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
return a;
|
|
133
|
+
}, {}) ?? undefined : selectedOptions,
|
|
123
134
|
setSelectedOption: updateOption,
|
|
124
135
|
forceSelectedOption: forceOption
|
|
125
136
|
}), [
|
|
126
137
|
selectedOptions,
|
|
127
138
|
updateOption,
|
|
128
|
-
forceOption
|
|
139
|
+
forceOption,
|
|
140
|
+
selectedVariant
|
|
129
141
|
]);
|
|
130
142
|
};
|
|
131
143
|
const useVariants = ()=>{
|
package/dist/cjs/index.js
CHANGED
|
@@ -159,6 +159,7 @@ exports.makeGlobalSizeWidthResponsive = makeStyle.makeGlobalSizeWidthResponsive;
|
|
|
159
159
|
exports.makeHeight = makeStyle.makeHeight;
|
|
160
160
|
exports.makeLineClamp = makeStyle.makeLineClamp;
|
|
161
161
|
exports.makeStyle = makeStyle.makeStyle;
|
|
162
|
+
exports.makeStyleKey = makeStyle.makeStyleKey;
|
|
162
163
|
exports.makeStyleResponsive = makeStyle.makeStyleResponsive;
|
|
163
164
|
exports.makeStyleResponsiveState = makeStyle.makeStyleResponsiveState;
|
|
164
165
|
exports.makeStyleState = makeStyle.makeStyleState;
|
|
@@ -21,7 +21,11 @@ const componentTexts = [
|
|
|
21
21
|
'Heading'
|
|
22
22
|
];
|
|
23
23
|
const componentIconList = [
|
|
24
|
-
'IconListV2'
|
|
24
|
+
'IconListV2',
|
|
25
|
+
'IconList'
|
|
26
|
+
];
|
|
27
|
+
const componentUsingAdvanced = [
|
|
28
|
+
'IconList'
|
|
25
29
|
];
|
|
26
30
|
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, ...passProps })=>{
|
|
27
31
|
const item = builder[uid];
|
|
@@ -113,6 +117,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
113
117
|
styles: item.styles,
|
|
114
118
|
setting: item.settings,
|
|
115
119
|
advanced: {
|
|
120
|
+
...componentUsingAdvanced.includes(item.tag) ? item?.advanced : {},
|
|
116
121
|
cssClass: item?.advanced?.cssClass
|
|
117
122
|
},
|
|
118
123
|
pageContext,
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { checkInStock } from './variant.js';
|
|
2
2
|
|
|
3
|
-
function getSelectedVariant(variants, choices) {
|
|
3
|
+
function getSelectedVariant(variants, choices, variantId) {
|
|
4
4
|
/**
|
|
5
5
|
* Ensure the user has selected all the required options, not just some.
|
|
6
6
|
*/ if (!variants || !variants.length || !choices || variants[0]?.selectedOptions.length !== Object.keys(choices).length) {
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
+
if (variantId) {
|
|
10
|
+
return variants.find((variant)=>variant?.id === variantId);
|
|
11
|
+
}
|
|
9
12
|
return variants.find((variant)=>{
|
|
10
13
|
return Object.entries(choices).every(([name, value])=>{
|
|
11
14
|
return variant?.selectedOptions.some((option)=>option.name === name && option.value === value);
|
|
@@ -75,6 +75,9 @@ const useQuantity = ()=>{
|
|
|
75
75
|
]);
|
|
76
76
|
};
|
|
77
77
|
const useSelectedOption = ()=>{
|
|
78
|
+
const url = new URL(window.location.href);
|
|
79
|
+
const variantId = url.searchParams.get('variant');
|
|
80
|
+
const selectedVariant = useVariant(variantId ?? '');
|
|
78
81
|
const setSelectedOption = useProductStore((s)=>s.setSelectedOption);
|
|
79
82
|
const selectedOptions = useProductStore((s)=>s.selectedOptions);
|
|
80
83
|
const forceSelectedOption = useProductStore((s)=>s.forceSelectedOption);
|
|
@@ -117,13 +120,22 @@ const useSelectedOption = ()=>{
|
|
|
117
120
|
isSyncProduct
|
|
118
121
|
]);
|
|
119
122
|
return useMemo(()=>({
|
|
120
|
-
selectedOptions,
|
|
123
|
+
selectedOptions: selectedVariant ? selectedVariant.selectedOptions.reduce((a, b)=>{
|
|
124
|
+
if (b.name) {
|
|
125
|
+
return {
|
|
126
|
+
...a,
|
|
127
|
+
[b.name]: b.value
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
return a;
|
|
131
|
+
}, {}) ?? undefined : selectedOptions,
|
|
121
132
|
setSelectedOption: updateOption,
|
|
122
133
|
forceSelectedOption: forceOption
|
|
123
134
|
}), [
|
|
124
135
|
selectedOptions,
|
|
125
136
|
updateOption,
|
|
126
|
-
forceOption
|
|
137
|
+
forceOption,
|
|
138
|
+
selectedVariant
|
|
127
139
|
]);
|
|
128
140
|
};
|
|
129
141
|
const useVariants = ()=>{
|
package/dist/esm/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export { default as isBrowser } from './helpers/is-browser.js';
|
|
|
32
32
|
export { default as isSafari } from './helpers/is-safari.js';
|
|
33
33
|
export { isEmptyChildren } from './helpers/is-empty-children.js';
|
|
34
34
|
export { filterToolbarPreview } from './helpers/filter-toolbar-preview.js';
|
|
35
|
-
export { makeAspectRatio, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
35
|
+
export { makeAspectRatio, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeWidth, removeNullUndefined } from './helpers/make-style.js';
|
|
36
36
|
export { normalizeBuilderData } from './helpers/normalize-builder-data.js';
|
|
37
37
|
export { prefetchQueries } from './helpers/prefetch-queries.js';
|
|
38
38
|
export { composeSpacing, getSpacingVariable } from './helpers/spacing.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7944,6 +7944,7 @@ declare const filterToolbarPreview: (children: React.ReactNode, keep?: boolean)
|
|
|
7944
7944
|
|
|
7945
7945
|
type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
|
|
7946
7946
|
declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
|
|
7947
|
+
declare const makeStyleKey: <T extends ShortHandProperty>(name: T) => string[];
|
|
7947
7948
|
declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) => {
|
|
7948
7949
|
[k: string]: Record<`--${T}`, K>;
|
|
7949
7950
|
};
|
|
@@ -9514,7 +9515,7 @@ declare const composeRadiusResponsive: (radiusValue?: ObjectDevices<CornerRadius
|
|
|
9514
9515
|
declare const getRadiusStyleActiveState: (radiusValue?: StateProp<CornerRadius>) => React.CSSProperties;
|
|
9515
9516
|
declare const composeCornerCss: (value?: CornerRadius | undefined, important?: boolean) => string | undefined;
|
|
9516
9517
|
|
|
9517
|
-
declare function getSelectedVariant(variants?: Maybe<VariantSelectFragment>[], choices?: Record<string, string
|
|
9518
|
+
declare function getSelectedVariant(variants?: Maybe<VariantSelectFragment>[], choices?: Record<string, string>, variantId?: string | null): Maybe<VariantSelectFragment>;
|
|
9518
9519
|
declare function parseSelectedOption(options: SelectedOption[]): SelectedOption | undefined;
|
|
9519
9520
|
declare function checkAvailableVariantInStock(variants: Maybe<VariantSelectFragment>[] | undefined, optionId: string, optionValue: string): boolean;
|
|
9520
9521
|
|
|
@@ -9926,4 +9927,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
9926
9927
|
|
|
9927
9928
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
9928
9929
|
|
|
9929
|
-
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
9930
|
+
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.23.0-staging.
|
|
3
|
+
"version": "1.23.0-staging.171",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@gem-sdk/adapter-shopify": "1.23.0-staging.26",
|
|
28
|
-
"@gem-sdk/styles": "1.23.0-staging.
|
|
28
|
+
"@gem-sdk/styles": "1.23.0-staging.167"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|