@gem-sdk/core 1.13.38 → 1.13.42
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/AddOn.js +1 -1
- package/dist/cjs/components/ComponentWrapper.js +1 -1
- package/dist/cjs/components/ComponentWrapperPreview.js +1 -1
- package/dist/cjs/components/Render.js +2 -2
- package/dist/cjs/components/Render.liquid.js +1 -1
- package/dist/cjs/components/RenderBlock.js +2 -2
- package/dist/cjs/components/RenderPreview.js +2 -2
- package/dist/cjs/components/RenderSection.js +1 -1
- package/dist/cjs/contexts/AddonContext.js +1 -1
- package/dist/cjs/contexts/BuilderComponent.js +1 -1
- package/dist/cjs/contexts/BuilderContext.js +1 -1
- package/dist/cjs/contexts/BuilderPreviewContext.js +4 -4
- package/dist/cjs/contexts/CartLineContext.js +1 -1
- package/dist/cjs/contexts/CollectionContext.js +2 -2
- package/dist/cjs/contexts/ModalContext.js +1 -1
- package/dist/cjs/contexts/ProductContext.js +1 -1
- package/dist/cjs/contexts/ProductListContext.js +1 -1
- package/dist/cjs/contexts/SectionContext.js +2 -2
- package/dist/cjs/contexts/ShopContext.js +2 -2
- package/dist/cjs/helpers/borders.js +1 -1
- package/dist/cjs/helpers/compose-advance-style.js +2 -2
- package/dist/cjs/helpers/product.js +15 -1
- package/dist/cjs/helpers/queries/get-collection.js +1 -1
- package/dist/cjs/helpers/queries/get-product.js +4 -4
- package/dist/cjs/helpers/queries/get-products.js +4 -4
- package/dist/cjs/helpers/radius.js +1 -1
- package/dist/cjs/helpers/shadow.js +5 -5
- package/dist/cjs/helpers/typography.js +4 -4
- package/dist/cjs/hooks/cart/use-add-to-cart.js +2 -2
- package/dist/cjs/hooks/cart/use-cart-data.js +1 -1
- package/dist/cjs/hooks/cart/use-cart-discount-codes-update.js +2 -2
- package/dist/cjs/hooks/cart/use-cart-note-update.js +2 -2
- package/dist/cjs/hooks/cart/use-create-cart.js +2 -2
- package/dist/cjs/hooks/cart/use-remove-cart-item.js +2 -2
- package/dist/cjs/hooks/cart/use-update-cart-item.js +2 -2
- package/dist/cjs/hooks/shop.js +4 -4
- package/dist/cjs/hooks/useFetchHandle.js +1 -1
- package/dist/cjs/hooks/useFormatMoney.js +1 -1
- package/dist/cjs/hooks/useMoney.js +2 -2
- package/dist/cjs/hooks/useProduct.js +8 -11
- package/dist/cjs/hooks/useSwatchesOptions.js +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/esm/components/AddOn.js +1 -1
- package/dist/esm/components/ComponentWrapper.js +1 -1
- package/dist/esm/components/ComponentWrapperPreview.js +1 -1
- package/dist/esm/components/Render.js +2 -2
- package/dist/esm/components/Render.liquid.js +1 -1
- package/dist/esm/components/RenderBlock.js +2 -2
- package/dist/esm/components/RenderPreview.js +2 -2
- package/dist/esm/components/RenderSection.js +1 -1
- package/dist/esm/contexts/AddonContext.js +1 -1
- package/dist/esm/contexts/BuilderComponent.js +1 -1
- package/dist/esm/contexts/BuilderContext.js +1 -1
- package/dist/esm/contexts/BuilderPreviewContext.js +4 -4
- package/dist/esm/contexts/CartLineContext.js +1 -1
- package/dist/esm/contexts/CollectionContext.js +2 -2
- package/dist/esm/contexts/ModalContext.js +1 -1
- package/dist/esm/contexts/ProductContext.js +1 -1
- package/dist/esm/contexts/ProductListContext.js +1 -1
- package/dist/esm/contexts/SectionContext.js +2 -2
- package/dist/esm/contexts/ShopContext.js +2 -2
- package/dist/esm/helpers/borders.js +1 -1
- package/dist/esm/helpers/compose-advance-style.js +2 -2
- package/dist/esm/helpers/product.js +15 -2
- package/dist/esm/helpers/queries/get-collection.js +1 -1
- package/dist/esm/helpers/queries/get-product.js +4 -4
- package/dist/esm/helpers/queries/get-products.js +4 -4
- package/dist/esm/helpers/radius.js +1 -1
- package/dist/esm/helpers/shadow.js +5 -5
- package/dist/esm/helpers/typography.js +4 -4
- package/dist/esm/hooks/cart/use-add-to-cart.js +2 -2
- package/dist/esm/hooks/cart/use-cart-data.js +1 -1
- package/dist/esm/hooks/cart/use-cart-discount-codes-update.js +2 -2
- package/dist/esm/hooks/cart/use-cart-note-update.js +2 -2
- package/dist/esm/hooks/cart/use-create-cart.js +2 -2
- package/dist/esm/hooks/cart/use-remove-cart-item.js +2 -2
- package/dist/esm/hooks/cart/use-update-cart-item.js +2 -2
- package/dist/esm/hooks/shop.js +4 -4
- package/dist/esm/hooks/useFetchHandle.js +1 -1
- package/dist/esm/hooks/useFormatMoney.js +1 -1
- package/dist/esm/hooks/useMoney.js +2 -2
- package/dist/esm/hooks/useProduct.js +8 -11
- package/dist/esm/hooks/useSwatchesOptions.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +4 -4
package/dist/esm/hooks/shop.js
CHANGED
|
@@ -72,7 +72,7 @@ const useMobileOnly = ()=>{
|
|
|
72
72
|
return useShopStore((state)=>state.mobileOnly);
|
|
73
73
|
};
|
|
74
74
|
const useMatchMutate = ()=>{
|
|
75
|
-
const { cache
|
|
75
|
+
const { cache, mutate } = useSWRConfig();
|
|
76
76
|
return (matcher, opts)=>{
|
|
77
77
|
if (!(cache instanceof Map)) {
|
|
78
78
|
throw new Error('matchMutate requires the cache provider to be a Map instance');
|
|
@@ -91,11 +91,11 @@ const useMatchMutate = ()=>{
|
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
function useConnectedShopify() {
|
|
94
|
-
const { storefrontToken
|
|
94
|
+
const { storefrontToken } = useStoreFront();
|
|
95
95
|
return !!storefrontToken;
|
|
96
96
|
}
|
|
97
97
|
function useIsSampleProduct() {
|
|
98
|
-
const { storefrontToken
|
|
98
|
+
const { storefrontToken } = useStoreFront();
|
|
99
99
|
const isStorefront = useShopStore((state)=>state.isStorefront);
|
|
100
100
|
return isStorefront && !storefrontToken;
|
|
101
101
|
}
|
|
@@ -103,7 +103,7 @@ function useIsStorefrontProduct() {
|
|
|
103
103
|
return useShopStore((state)=>state.isStorefront);
|
|
104
104
|
}
|
|
105
105
|
function useCheckoutUrl(url) {
|
|
106
|
-
const { storefrontToken
|
|
106
|
+
const { storefrontToken } = useStoreFront();
|
|
107
107
|
if (!url) return undefined;
|
|
108
108
|
return storefrontToken ? `${url}?access_token=${storefrontToken}` : url;
|
|
109
109
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMoneyFormat } from './shop.js';
|
|
2
2
|
|
|
3
3
|
const useFormatMoney = (amount, withCurrency)=>{
|
|
4
|
-
const { moneyFormat
|
|
4
|
+
const { moneyFormat, moneyWithCurrencyFormat } = useMoneyFormat();
|
|
5
5
|
const formatMoney = function(cents, format) {
|
|
6
6
|
let value = '';
|
|
7
7
|
const placeholderRegex = /\{\{\s*(\w+)\s*\}\}/;
|
|
@@ -2,8 +2,8 @@ import { useMemo } from 'react';
|
|
|
2
2
|
import { useLocale, useCurrency } from './shop.js';
|
|
3
3
|
|
|
4
4
|
const useMoney = (amount)=>{
|
|
5
|
-
const { locale
|
|
6
|
-
const { currency
|
|
5
|
+
const { locale } = useLocale();
|
|
6
|
+
const { currency } = useCurrency();
|
|
7
7
|
const options = useMemo(()=>({
|
|
8
8
|
style: 'currency',
|
|
9
9
|
currency: currency
|
|
@@ -73,7 +73,7 @@ const useVariant = (id)=>{
|
|
|
73
73
|
]);
|
|
74
74
|
};
|
|
75
75
|
const useCurrentVariant = ()=>{
|
|
76
|
-
const { selectedOptions
|
|
76
|
+
const { selectedOptions } = useSelectedOption();
|
|
77
77
|
const variants = useVariants();
|
|
78
78
|
return useMemo(()=>getSelectedVariant(variants, selectedOptions), [
|
|
79
79
|
selectedOptions,
|
|
@@ -86,7 +86,7 @@ const useCurrentVariantInStock = ()=>{
|
|
|
86
86
|
return isInStock;
|
|
87
87
|
};
|
|
88
88
|
const useVariantOutStock = (optionId, optionValue)=>{
|
|
89
|
-
const { selectedOptions
|
|
89
|
+
const { selectedOptions } = useSelectedOption();
|
|
90
90
|
const variants = useVariants();
|
|
91
91
|
const matchedVariant = getSelectedVariant(variants, {
|
|
92
92
|
...selectedOptions,
|
|
@@ -97,18 +97,15 @@ const useVariantOutStock = (optionId, optionValue)=>{
|
|
|
97
97
|
};
|
|
98
98
|
const useCheckAvailableVariantInStock = (optionId, optionValue)=>{
|
|
99
99
|
const variants = useVariants();
|
|
100
|
-
|
|
101
|
-
variants.forEach((item)=>{
|
|
100
|
+
return variants ? variants.some((item)=>{
|
|
102
101
|
if (item) {
|
|
103
|
-
const { selectedOptions
|
|
104
|
-
const opt = selectedOptions?.
|
|
102
|
+
const { selectedOptions } = item;
|
|
103
|
+
const opt = selectedOptions?.some((option)=>option?.name === optionId && option.value === optionValue);
|
|
105
104
|
const isInStock = checkInStock(item);
|
|
106
|
-
|
|
107
|
-
available = true;
|
|
108
|
-
}
|
|
105
|
+
return opt && isInStock;
|
|
109
106
|
}
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
return false;
|
|
108
|
+
}) : false;
|
|
112
109
|
};
|
|
113
110
|
|
|
114
111
|
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useProduct, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants };
|
|
@@ -11,7 +11,7 @@ const initialGlobalSwatchesData = {
|
|
|
11
11
|
optionValues: []
|
|
12
12
|
};
|
|
13
13
|
const useSwatchesOptions = (options)=>{
|
|
14
|
-
const { swatches
|
|
14
|
+
const { swatches } = useSwatches();
|
|
15
15
|
if (!options) return [];
|
|
16
16
|
return options?.map((option)=>{
|
|
17
17
|
const swatchOption = swatches?.find((sw)=>sw?.optionTitle === option?.name) || {
|
package/dist/esm/index.js
CHANGED
|
@@ -42,7 +42,7 @@ 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
44
|
export { composeCornerCss, composeRadius, getCornerCSSFromGlobal, getCustomRadius, getRadiusCSSFromGlobal, getRadiusStyleActiveState } from './helpers/radius.js';
|
|
45
|
-
export { getSelectedVariant, parseSelectedOption } from './helpers/product.js';
|
|
45
|
+
export { checkAvailableVariantInStock, getSelectedVariant, parseSelectedOption } from './helpers/product.js';
|
|
46
46
|
import * as fpixel from './helpers/tracking/fpixel.js';
|
|
47
47
|
export { fpixel };
|
|
48
48
|
import * as gtag from './helpers/tracking/gtag.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9227,6 +9227,7 @@ declare function getSelectedVariant(variants?: Maybe<VariantSelectFragment>[], c
|
|
|
9227
9227
|
[key: string]: string;
|
|
9228
9228
|
}): Maybe<VariantSelectFragment>;
|
|
9229
9229
|
declare function parseSelectedOption(options: Array<SelectedOption>): SelectedOption | undefined;
|
|
9230
|
+
declare function checkAvailableVariantInStock(variants: Maybe<VariantSelectFragment>[] | undefined, optionId: string, optionValue: string): boolean;
|
|
9230
9231
|
|
|
9231
9232
|
declare const pageview$1: () => void;
|
|
9232
9233
|
declare const event: (name: string, options?: {}) => void;
|
|
@@ -9587,4 +9588,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
9587
9588
|
|
|
9588
9589
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
9589
9590
|
|
|
9590
|
-
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, 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, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, VariantSelectFragment, WiserWidgetType, baseAssetURL, calculateFirstProduct, 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, 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, useIsSampleProduct, useIsStorefrontProduct, 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 };
|
|
9591
|
+
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, 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, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, VariantSelectFragment, WiserWidgetType, 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, 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, useIsSampleProduct, useIsStorefrontProduct, 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.13.
|
|
3
|
+
"version": "1.13.42",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@gem-sdk/adapter-shopify": "1.12.0",
|
|
28
|
-
"@gem-sdk/styles": "1.13.
|
|
28
|
+
"@gem-sdk/styles": "1.13.40"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"react-error-boundary": "4.0.
|
|
31
|
+
"react-error-boundary": "4.0.10",
|
|
32
32
|
"swr": "2.1.2",
|
|
33
33
|
"vanilla-lazyload": "17.8.3",
|
|
34
|
-
"zustand": "4.3.
|
|
34
|
+
"zustand": "4.3.9"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^17 || ^18",
|