@gem-sdk/core 19.0.0-dev.0 → 19.0.0-dev.2
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/contexts/ProductListContext.js +1 -1
- package/dist/cjs/helpers/queries/get-product.js +1 -1
- package/dist/cjs/hooks/useProductList.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/contexts/ProductListContext.js +1 -1
- package/dist/esm/helpers/queries/get-product.js +1 -1
- package/dist/esm/hooks/useProductList.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +19 -2
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var t=require("react/jsx-runtime"),e=require("react"),r=require("zustand");const o=e.createContext(null),s=t=>r.createStore(()=>({...t}));exports.ProductListContext=o,exports.ProductListProvider=({children:e,collection:r,products:u,settings:i,styles:c})=>t.jsx(o.Provider,{value:s({products:u,collection:r,settings:i,styles:c}),children:e}),exports.useProductListContext=()=>{let t=e.useContext(o);return t},exports.useProductListStore=(t,s)=>{let u=e.useContext(o);if(!u)throw Error("useProductListStore must be used within a useProductListStore");return r.useStore(u,t,s)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../graphql/queries/product-little-detail.generated.js"),t=require("../../graphql/queries/product-medias.generated.js"),r=require("../../graphql/queries/product-variants.generated.js");const a=async(e,{id:t,isSample:r,isStorefront:a})=>{let[s,
|
|
1
|
+
"use strict";var e=require("../../graphql/queries/product-little-detail.generated.js"),t=require("../../graphql/queries/product-medias.generated.js"),r=require("../../graphql/queries/product-variants.generated.js");const a=async(e,{id:t,isSample:r,isStorefront:a})=>{let[s,n,i]=await Promise.all([o(e,{id:t,isSample:r,isStorefront:a}),d(e,{id:t,isSample:r,isStorefront:a}),c(e,{id:t,isSample:r,isStorefront:a})]);if(!s)throw Error("Product not found");return{...s,variants:{edges:n},medias:{edges:i}}},s="latest",n={direction:"DESC",field:"PLATFORM_CREATED_AT"},i={direction:"DESC",field:"CREATED_AT"},o=async(t,{id:r,isSample:a,isStorefront:o})=>{let d=r&&r.toLowerCase()===s,c={orderBy:d?n:i,where:{isSample:a,...o&&{isStorefront:o},...(!r||d)&&{status:"ACTIVE"},...r&&!d&&{baseID:r}}},u=await t([e.ProductLittleDetailDocument.toString(),c]);return u.product?.edges?.[0]?.node},d=async(e,{id:t,isSample:a,isStorefront:o})=>{let d=t&&t.toLowerCase()===s,c={orderBy:d?n:i,where:{isSample:a,...o&&{isStorefront:o},...(!t||d)&&{status:"ACTIVE"},...t&&!d&&{baseID:t}},orderByVariant:{field:"POSITION",direction:"ASC"}},u=async(t,a)=>{try{let s=await e([r.ProductVariantsDocument.toString(),t]),n=s.variants?.edges?.[0],i=a?.concat(n?.node?.variants?.edges??[]);if(n?.node?.variants?.pageInfo?.hasNextPage)return u({...t,afterVariant:n?.node?.variants?.pageInfo.endCursor},i);return i??[]}catch{return a??[]}};return u(c,[])},c=async(e,{id:r,isSample:a,isStorefront:o})=>{let d=r&&r.toLowerCase()===s,c={orderBy:d?n:i,where:{isSample:a,...o&&{isStorefront:o},...(!r||d)&&{status:"ACTIVE"},...r&&!d&&{baseID:r}},orderByMedia:{field:"POSITION",direction:"ASC"}},u=async r=>{try{let a=await e([t.ProductMediasDocument.toString(),r]),s=a.medias?.edges?.[0],n=s?.node?.medias?.edges??[];if(s?.node?.medias?.pageInfo?.hasNextPage)try{let e=await u({...r,afterMedia:s?.node?.medias?.pageInfo.endCursor});return n.concat(e)}catch{}return n}catch{return[]}};return u(c)};exports.fetchMedias=c,exports.fetchVariants=d,exports.getProduct=a;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";var t=require("../contexts/ProductListContext.js");exports.useProductList=()=>
|
|
2
|
+
"use strict";var t=require("react"),e=require("../contexts/ProductListContext.js");exports.useProductList=()=>e.useProductListStore(t=>t.collection),exports.useProductListProducts=()=>e.useProductListStore(t=>t.products),exports.useProductListSettings=()=>e.useProductListStore(t=>t.settings),exports.useProductListStyles=()=>e.useProductListStore(t=>t.styles),exports.useSafeGetProductListSettings=()=>{let s=e.useProductListContext(),r=t.useMemo(()=>s?s.getState().settings:null,[s]);return{settings:r}};
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./components/AddOn.js"),t=require("./components/Render.js"),r=require("./components/RenderPreview.js"),o=require("./components/Render.liquid.js"),s=require("./contexts/AddonContext.js"),i=require("./contexts/BuilderComponent.js"),a=require("./contexts/BuilderContext.js"),p=require("./contexts/BuilderPreviewContext.js"),u=require("./contexts/CartLineContext.js"),n=require("./contexts/ProductListContext.js"),l=require("./contexts/ProductContext.js"),c=require("./contexts/SectionContext.js"),d=require("./contexts/ShopContext.js"),x=require("./contexts/PageContext.js"),g=require("./contexts/CollectionContext.js"),S=require("./contexts/ModalContext.js"),h=require("./contexts/ArticleListContext.js"),y=require("./contexts/ArticleContext.js"),m=require("./contexts/I18nContext.js"),C=require("./graphql/mutations/page-view-up.generated.js"),q=require("./graphql/queries/collection-detail-filter.generated.js"),P=require("./graphql/queries/collection.generated.js"),v=require("./graphql/queries/collections.generated.js"),j=require("./graphql/queries/published-theme-pages.generated.js"),b=require("./graphql/queries/store-property.generated.js"),k=require("./graphql/queries/preview-page.generated.js"),B=require("./graphql/queries/published-shop-metas.generated.js"),f=require("./graphql/queries/shop-shopify.generated.js"),D=require("./graphql/queries/articles.generated.js"),T=require("./graphql/queries/blogs.generated.js"),A=require("./graphql/queries/products-with-selling-plans.generated.js"),I=require("./graphql/queries/product-variant-with-selling-plans.generated.js"),R=require("./graphql-app-api/queries/LibraryTemplate.generated.js"),L=require("./graphql-app-api/queries/ThemePage.generated.js"),G=require("./graphql-app-api/queries/SaleFunnelDiscounts.generated.js"),V=require("./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js"),F=require("./graphql-app-api/queries/ShopLibraryPage.generated.js"),O=require("./graphql-app-api/queries/SaleFunnelOffer.generated.js"),w=require("./graphql-app-api/queries/ThemePageMeta.generated.js"),M=require("./helpers/borders.js"),E=require("./helpers/carousel.js"),z=require("./helpers/cls.js"),W=require("./helpers/animations.js"),H=require("./helpers/filter-toolbar-preview.js"),Q=require("./helpers/flatten-connection.js"),U=require("./helpers/get-resonsive-value.js"),K=require("./helpers/get-shortname.js"),N=require("./helpers/GlobalEvent.js"),_=require("./helpers/is-browser.js"),Y=require("./helpers/is-empty-children.js"),J=require("./helpers/is-safari.js"),Z=require("./helpers/normalize-builder-data.js"),X=require("./helpers/prefetch-queries.js"),$=require("./helpers/email.js"),ee=require("./helpers/load-script.js"),et=require("./helpers/spacing.js"),er=require("./helpers/css-variable.js"),eo=require("./helpers/tracking/fpixel.js"),es=require("./helpers/tracking/gtag.js"),ei=require("./helpers/tracking/tiktokpixel.js"),ea=require("./helpers/background.js"),ep=require("./helpers/backgroundImage.js"),eu=require("./helpers/colors.js"),en=require("./helpers/compose-advance-style.js"),el=require("./helpers/composeClasses.js"),ec=require("./helpers/convert.js"),ed=require("./helpers/covert-entities-html.js"),ex=require("./helpers/icon-list.js"),eg=require("./helpers/is-defined.js"),eS=require("./helpers/layout.js"),eh=require("./helpers/make-style.js"),ey=require("./helpers/align.js"),em=require("./helpers/filter-styles.js"),eC=require("./helpers/clone-deep.js"),eq=require("./helpers/liquid.js"),eP=require("./helpers/variant.js"),ev=require("./helpers/createTranslateKey.js"),ej=require("./helpers/getHashCode.js"),eb=require("./helpers/product.js"),ek=require("./helpers/query.js"),eB=require("./helpers/radius.js"),ef=require("./helpers/render.js"),eD=require("./helpers/shadow.js"),eT=require("./helpers/size.js"),eA=require("./helpers/typography.js"),eI=require("./hooks/articles/useArticlesQuery.js"),eR=require("./hooks/cart/use-add-to-cart.js"),eL=require("./hooks/cart/use-cart-data.js"),eG=require("./hooks/cart/use-cart-discount-codes-update.js"),eV=require("./hooks/cart/use-cart-note-update.js"),eF=require("./hooks/cart/use-create-cart.js"),eO=require("./hooks/cart/use-remove-cart-item.js"),ew=require("./hooks/cart/use-update-cart-item.js"),eM=require("./hooks/shop.js"),eE=require("./hooks/shop/use-collection-query.js"),ez=require("./hooks/shop/use-collections-query.js"),eW=require("./hooks/shop/use-product-query.js"),eH=require("./hooks/shop/useProductOffersQuery.js"),eQ=require("./hooks/useFetchHandle.js"),eU=require("./hooks/shop/use-products-query.js"),eK=require("./hooks/use-current-device.js"),eN=require("./hooks/use-lazy-video.js"),e_=require("./hooks/useCartId.js"),eY=require("./hooks/useCartLine.js"),eJ=require("./hooks/useCartUI.js"),eZ=require("./hooks/useCollection.js"),eX=require("./hooks/useFormatMoney.js"),e$=require("react"),e0=require("./hooks/useInitialSwatchesOptions.js"),e1=require("./hooks/useIsomorphicLayoutEffect.js"),e2=require("./hooks/useLoadScript.js"),e8=require("./hooks/useMoney.js"),e3=require("./hooks/usePrevious.js"),e4=require("./hooks/useI18n.js"),e5=require("./hooks/useStickyStore.js"),e6=require("./hooks/useProduct.js"),e7=require("./hooks/shop/useShopifyLink.js"),e9=require("./hooks/useProductList.js"),te=require("./hooks/useSuspenseFetch.js"),tt=require("./hooks/useSwatchesOptions.js"),tr=require("./hooks/useRenderMode.js"),to=require("./hooks/usePreviewSharePage.js"),ts=require("./types/builder.js"),ti=require("./types/custom.js"),ta=require("./types/shop.js"),tp=require("./types/appAPI.js"),tu=require("./types/global-style.js"),tn=require("./types/animations.js"),tl=require("./helpers/queries/get-collection.js"),tc=require("./helpers/queries/get-product.js"),td=require("./helpers/queries/get-product-by-slug.js"),tx=require("./helpers/third-party/getAppBlocks.js"),tg=require("./helpers/third-party/addAppBlockId.js"),tS=require("./helpers/interaction/index.js"),th=require("./helpers/create-store-front-fetcher.js"),ty=require("./constants/index.js"),tm=require("./constants/device.js");exports.AddOn=e.default,exports.Render=t.default,exports.RenderPreview=r.default,exports.RenderChildren=o.RenderChildren,exports.RenderLiquid=o.default,exports.WrapRenderChildren=o.WrapRenderChildren,exports.AddonProvider=s.AddonProvider,exports.useAddon=s.useAddon,exports.useAddons=s.useAddons,exports.BuilderComponentProvider=i.BuilderComponentProvider,exports.useBuilderComponent=i.useBuilderComponent,exports.BuilderProvider=a.BuilderProvider,exports.useBuilderStore=a.useBuilderStore,exports.BuilderPreviewProvider=p.BuilderPreviewProvider,exports.useBuilderPreviewStore=p.useBuilderPreviewStore,exports.CartLineProvider=u.CartLineProvider,exports.useCartLineStore=u.useCartLineStore,exports.ProductListProvider=n.ProductListProvider,exports.useProductListStore=n.useProductListStore,exports.ProductProvider=l.ProductProvider,exports.useProductStore=l.useProductStore,exports.SectionProvider=c.SectionProvider,exports.useSection=c.useSection,exports.useSectionStore=c.useSectionStore,exports.ShopProvider=d.ShopProvider,exports.useShopStore=d.useShopStore,exports.PageProvider=x.PageProvider,exports.usePageStore=x.usePageStore,exports.CollectionProvider=g.CollectionProvider,exports.useCollectionStore=g.useCollectionStore,exports.ModalProvider=S.ModalProvider,exports.useModalStore=S.useModalStore,exports.ArticleListProvider=h.ArticleListProvider,exports.useArticleListStore=h.useArticleListStore,exports.ArticleProvider=y.ArticleProvider,exports.useArticleStore=y.useArticleStore,exports.I18nProvider=m.I18nProvider,exports.useI18nStore=m.useI18nStore,exports.PageViewUpDocument=C.PageViewUpDocument,exports.CollectionDetailFilterDocument=q.CollectionDetailFilterDocument,exports.CollectionDocument=P.CollectionDocument,exports.CollectionsDocument=v.CollectionsDocument,exports.PublishedThemePagesDocument=j.PublishedThemePagesDocument,exports.StorePropertyDocument=b.StorePropertyDocument,exports.PreviewThemePageDocument=k.PreviewThemePageDocument,exports.PublishedShopMetasDocument=B.PublishedShopMetasDocument,exports.ShopShopifyDocument=f.ShopShopifyDocument,exports.ArticlesDocument=D.ArticlesDocument,exports.BlogsDocument=T.BlogsDocument,exports.ProductWithSellingPlansSelectFragment=A.ProductWithSellingPlansSelectFragment,exports.ProductsWithSellingPlansDocument=A.ProductsWithSellingPlansDocument,exports.ProductVariantsWithSellingPlansDocument=I.ProductVariantsWithSellingPlansDocument,exports.LibraryTemplateDocument=R.LibraryTemplateDocument,exports.ThemePageDocument=L.ThemePageDocument,exports.SaleFunnelDiscountsDocument=G.SaleFunnelDiscountsDocument,exports.LibrarySaleFunnelDocument=V.LibrarySaleFunnelDocument,exports.ShopLibraryPageDocument=F.ShopLibraryPageDocument,exports.SaleFunnelOfferDocument=O.SaleFunnelOfferDocument,exports.ThemePageMetaDocument=w.ThemePageMetaDocument,exports.composeBorderCss=M.composeBorderCss,exports.composeBorderResponsive=M.composeBorderResponsive,exports.getBorderRadiusStyle=M.getBorderRadiusStyle,exports.getBorderStyle=M.getBorderStyle,exports.handleConvertBorderColor=M.handleConvertBorderColor,exports.handleConvertBorderStyle=M.handleConvertBorderStyle,exports.handleConvertBorderWidth=M.handleConvertBorderWidth,exports.handleConvertClassColor=M.handleConvertClassColor,exports.handleConvertClassColorDynamicBtn=M.handleConvertClassColorDynamicBtn,exports.handleConvertInputBorderColor=M.handleConvertInputBorderColor,exports.getCarouselContainerHeight=E.getCarouselContainerHeight,exports.makeContainerWidthOrHeight=E.makeContainerWidthOrHeight,exports.makeDotGapToCarouselStyle=E.makeDotGapToCarouselStyle,exports.cls=z.cls,exports.animations=W.animations,exports.filterToolbarPreview=H.default,exports.flattenConnection=Q.flattenConnection,exports.getResponsiveStateValue=U.getResponsiveStateValue,exports.getResponsiveValue=U.getResponsiveValue,exports.getResponsiveValueByScreen=U.getResponsiveValueByScreen,exports.isColumnDirectionExist=U.isColumnDirectionExist,exports.getShortName=K.getShortName,exports.globalEvent=N.default,exports.isBrowser=_.default,exports.isEmptyChildren=Y.default,exports.isSafari=J.default,exports.normalizeBuilderData=Z.normalizeBuilderData,exports.prefetchQueries=X.prefetchQueries,exports.validateEmail=$.validateEmail,exports.loadScript=ee.loadScript,exports.composeSpacing=et.composeSpacing,exports.getSpacingVariable=et.getSpacingVariable,exports.genVariable=er.genVariable,exports.fpixel=eo,exports.gtag=es,exports.tiktokpixel=ei,exports.GRADIENT_BGR_KEY=ea.GRADIENT_BGR_KEY,exports.composeBackgroundCss=ea.composeBackgroundCss,exports.getBgByDevice=ea.getBgByDevice,exports.getBgImageByDevice=ea.getBgImageByDevice,exports.getBgVideoByDevice=ea.getBgVideoByDevice,exports.getColor=ea.getColor,exports.getCombinedBackgroundImage=ea.getCombinedBackgroundImage,exports.getGradientBgrStyleByDevice=ea.getGradientBgrStyleByDevice,exports.getGradientBgrStyleForButton=ea.getGradientBgrStyleForButton,exports.getGradientImageBgrStyleByDevice=ea.getGradientImageBgrStyleByDevice,exports.getStyleBackgroundByDevice=ea.getStyleBackgroundByDevice,exports.getStyleBgColor=ea.getStyleBgColor,exports.makeFixedBgAttachment=ea.makeFixedBgAttachment,exports.composeBackgroundImageCss=ep.composeBackgroundImageCss,exports.getBgImageSourceByDevice=ep.getBgImageSourceByDevice,exports.getStyleBackgroundImage=ep.getStyleBackgroundImage,exports.getStyleBgImageSource=ep.getStyleBgImageSource,exports.composeTextColorCss=eu.composeTextColorCss,exports.getGlobalColorCSSProp=eu.getGlobalColorCSSProp,exports.getGlobalColorClass=eu.getGlobalColorClass,exports.getGlobalColorResponsiveClass=eu.getGlobalColorResponsiveClass,exports.getGlobalColorResponsiveStyle=eu.getGlobalColorResponsiveStyle,exports.getGlobalColorStateClass=eu.getGlobalColorStateClass,exports.getGlobalColorStateClassDynamicBtn=eu.getGlobalColorStateClassDynamicBtn,exports.getGlobalColorStateResponsiveClass=eu.getGlobalColorStateResponsiveClass,exports.getGlobalColorStateResponsiveClassDynamicBtn=eu.getGlobalColorStateResponsiveClassDynamicBtn,exports.getGlobalColorStateResponsiveStyle=eu.getGlobalColorStateResponsiveStyle,exports.getGlobalColorStateStyle=eu.getGlobalColorStateStyle,exports.getGlobalColorStyle=eu.getGlobalColorStyle,exports.getSingleColorVariable=eu.getSingleColorVariable,exports.isColor=eu.isColor,exports.composeAdvanceStyle=en.composeAdvanceStyle,exports.composeAdvanceStyleForPostPurchase=en.composeAdvanceStyleForPostPurchase,exports.convertBoxShadowV1ToV2=en.convertBoxShadowV1ToV2,exports.filterAttrInStyle=en.filterAttrInStyle,exports.getCornerStyle=en.getCornerStyle,exports.removeAttrInStyle=en.removeAttrInStyle,exports.removePaddingYInStyle=en.removePaddingYInStyle,exports.splitStyle=en.splitStyle,exports.composeClasses=el.composeClasses,exports.baseAssetURL=ec.baseAssetURL,exports.isLocalEnv=ec.isLocalEnv,exports.convertHTML=ed.convertHTML,exports.composePositionLineHeight=ex.composePositionLineHeight,exports.composePostionIconList=ex.composePostionIconList,exports.isDefined=eg.isDefined,exports.composeGridLayout=eS.composeGridLayout,exports.convertOldLayout=eS.convertOldLayout,exports.getLayoutClasses=eS.getLayoutClasses,exports.gridToArrayRegex=eS.gridToArrayRegex,exports.optionLayoutStyle=eS.optionLayoutStyle,exports.makeAspectRatio=eh.makeAspectRatio,exports.makeGlobalSizeHeightResponsive=eh.makeGlobalSizeHeightResponsive,exports.makeGlobalSizeWidthResponsive=eh.makeGlobalSizeWidthResponsive,exports.makeHeight=eh.makeHeight,exports.makeLineClamp=eh.makeLineClamp,exports.makeStyle=eh.makeStyle,exports.makeStyleKey=eh.makeStyleKey,exports.makeStyleResponsive=eh.makeStyleResponsive,exports.makeStyleResponsiveByScreen=eh.makeStyleResponsiveByScreen,exports.makeStyleResponsiveState=eh.makeStyleResponsiveState,exports.makeStyleResponsiveWidth=eh.makeStyleResponsiveWidth,exports.makeStyleResponsiveWidthWithoutAuto=eh.makeStyleResponsiveWidthWithoutAuto,exports.makeStyleState=eh.makeStyleState,exports.makeWidth=eh.makeWidth,exports.removeNullUndefined=eh.removeNullUndefined,exports.convertTextAlignToJustify=ey.convertTextAlignToJustify,exports.getAlignmentClasses=ey.getAlignmentClasses,exports.filterHoverVariables=em.filterHoverVariables,exports.filterTruthyStyles=em.filterTruthyStyles,exports.cloneDeep=eC.cloneDeep,exports.hasTranslatedLiquid=eq.hasTranslatedLiquid,exports.checkInStock=eP.checkInStock,exports.checkHasChangeContent=ev.checkHasChangeContent,exports.createTranslateKey=ev.createTranslateKey,exports.extractOuterTagContent=ev.extractOuterTagContent,exports.getThemeSectionTranslateKey=ev.getThemeSectionTranslateKey,exports.getValueSettingFromSchema=ev.getValueSettingFromSchema,exports.replaceOuterTagContent=ev.replaceOuterTagContent,exports.getHashCode=ej.getHashCode,exports.checkAvailableVariantInStock=eb.checkAvailableVariantInStock,exports.getSelectedVariant=eb.getSelectedVariant,exports.parseSelectedOption=eb.parseSelectedOption,exports.generateCollectionQueryKey=ek.generateCollectionQueryKey,exports.generateProductQueryKey=ek.generateProductQueryKey,exports.generateProductsQueryKey=ek.generateProductsQueryKey,exports.composeCornerCss=eB.composeCornerCss,exports.composeRadius=eB.composeRadius,exports.composeRadiusResponsive=eB.composeRadiusResponsive,exports.getCornerCSSFromGlobal=eB.getCornerCSSFromGlobal,exports.getCustomRadius=eB.getCustomRadius,exports.getRadiusCSSFromGlobal=eB.getRadiusCSSFromGlobal,exports.getRadiusStyleActiveState=eB.getRadiusStyleActiveState,exports.RenderIf=ef.RenderIf,exports.composeMemo=ef.composeMemo,exports.dataStringify=ef.dataStringify,exports.props=ef.props,exports.removeUndefinedValuesFromObject=ef.removeUndefinedValuesFromObject,exports.sanitizeLiquid=ef.sanitizeLiquid,exports.styles=ef.styles,exports.template=ef.template,exports.composeShadow=eD.composeShadow,exports.composeShadowCss=eD.composeShadowCss,exports.getResponsiveStyleShadow=eD.getResponsiveStyleShadow,exports.getResponsiveStyleShadowWithoutState=eD.getResponsiveStyleShadowWithoutState,exports.getStyleShadow=eD.getStyleShadow,exports.getStyleShadowState=eD.getStyleShadowState,exports.parseValueWithUnit=eD.parseValueWithUnit,exports.composeSize=eT.composeSize,exports.composeSizeCss=eT.composeSizeCss,exports.genSizeClass=eT.genSizeClass,exports.getAspectRatioGlobalSize=eT.getAspectRatioGlobalSize,exports.getFlexGrowClassByShapeGlobalSize=eT.getFlexGrowClassByShapeGlobalSize,exports.getGlobalSizeGap=eT.getGlobalSizeGap,exports.getHeightByShapeGlobalSize=eT.getHeightByShapeGlobalSize,exports.getPaddingGlobalSize=eT.getPaddingGlobalSize,exports.getPaddingStyleByDevice=eT.getPaddingStyleByDevice,exports.getResponsiveStylePadding=eT.getResponsiveStylePadding,exports.getValueByDevice=eT.getValueByDevice,exports.getWidthByShapeGlobalSize=eT.getWidthByShapeGlobalSize,exports.getWidthHeightGlobalSize=eT.getWidthHeightGlobalSize,exports.makeGlobalSize=eT.makeGlobalSize,exports.makeGlobalSizeIcon=eT.makeGlobalSizeIcon,exports.makeStyleWithDefault=eT.makeStyleWithDefault,exports.composeFallbackTypographyStyle=eA.composeFallbackTypographyStyle,exports.composeFontFamilyTypographyV2=eA.composeFontFamilyTypographyV2,exports.composeTextHoverColorCss=eA.composeTextHoverColorCss,exports.composeTypography=eA.composeTypography,exports.composeTypographyAttr=eA.composeTypographyAttr,exports.composeTypographyClassName=eA.composeTypographyClassName,exports.composeTypographyCss=eA.composeTypographyCss,exports.composeTypographyStyle=eA.composeTypographyStyle,exports.composeTypographyV2=eA.composeTypographyV2,exports.composeTypographyV2Css=eA.composeTypographyV2Css,exports.genTypoClass=eA.genTypoClass,exports.useArticlesQuery=eI.useArticlesQuery,exports.useBlogsQuery=eI.useBlogsQuery,exports.useAddToCart=eR.useAddToCart,exports.useCartData=eL.useCartData,exports.useCartDiscountCodesUpdate=eG.useCartDiscountCodesUpdate,exports.useCartNoteUpdate=eV.useCartNoteUpdate,exports.useCreateCart=eF.useCreateCart,exports.useRemoveCartItem=eO.useRemoveCartItem,exports.useUpdateCartItem=ew.useUpdateCartItem,exports.useCheckoutUrl=eM.useCheckoutUrl,exports.useConnectedShopify=eM.useConnectedShopify,exports.useCurrency=eM.useCurrency,exports.useEditorMode=eM.useEditorMode,exports.useIsSampleProduct=eM.useIsSampleProduct,exports.useIsStorefrontProduct=eM.useIsStorefrontProduct,exports.useLocale=eM.useLocale,exports.useMatchMutate=eM.useMatchMutate,exports.useMobileOnly=eM.useMobileOnly,exports.useMoneyFormat=eM.useMoneyFormat,exports.usePageType=eM.usePageType,exports.usePluginEnable=eM.usePluginEnable,exports.useStoreFront=eM.useStoreFront,exports.useSwatches=eM.useSwatches,exports.useTimezone=eM.useTimezone,exports.useCollectionQuery=eE.useCollectionQuery,exports.useCollectionsQuery=ez.useCollectionsQuery,exports.useProductQuery=eW.useProductQuery,exports.useProductOffersQuery=eH.useProductOffersQuery,exports.useFetchHandle=eQ.useFetchHandle,exports.useProductsQuery=eU.useProductsQuery,exports.useProductsQueryAll=eU.useProductsQueryAll,exports.useCurrentDevice=eK.useCurrentDevice,exports.useLazyVideo=eN.useLazyVideo,exports.useCartId=e_.default,exports.useCartLine=eY.default,exports.useCartUI=eJ.default,exports.useCollection=eZ.useCollection,exports.convertDecimalToNumber=eX.convertDecimalToNumber,exports.formatMoney=eX.formatMoney,exports.shopifyPriceRounding=eX.shopifyPriceRounding,exports.useFormatMoney=eX.useFormatMoney,Object.defineProperty(exports,"useId",{enumerable:!0,get:function(){return e$.useId}}),exports.useInitialSwatchesOptions=e0.default,exports.useIsomorphicLayoutEffect=e1.default,exports.useLoadScript=e2.default,exports.useMoney=e8.default,exports.usePrevious=e3.usePrevious,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return e4.tGlobal}}),exports.useI18n=e4.useI18n,exports.useStickyStore=e5.useStickyStore,exports.useCheckAvailableVariantInStock=e6.useCheckAvailableVariantInStock,exports.useCurrentVariant=e6.useCurrentVariant,exports.useCurrentVariantInStock=e6.useCurrentVariantInStock,exports.useFeaturedImageGlobal=e6.useFeaturedImageGlobal,exports.useHasPreSelected=e6.useHasPreSelected,exports.useIsSyncProduct=e6.useIsSyncProduct,exports.useProduct=e6.useProduct,exports.useProductBundleDiscount=e6.useProductBundleDiscount,exports.useProductOfferDiscount=e6.useProductOfferDiscount,exports.useProductProperties=e6.useProductProperties,exports.useProductShopifyEditLink=e6.useProductShopifyEditLink,exports.useQuantity=e6.useQuantity,exports.useSelectedOption=e6.useSelectedOption,exports.useUniqProductID=e6.useUniqProductID,exports.useVariant=e6.useVariant,exports.useVariantOutStock=e6.useVariantOutStock,exports.useVariants=e6.useVariants,exports.useShopifyLink=e7.useShopifyLink,exports.useProductList=e9.useProductList,exports.useProductListProducts=e9.useProductListProducts,exports.useProductListSettings=e9.useProductListSettings,exports.useProductListStyles=e9.useProductListStyles,exports.useSuspenseFetch=te.default,exports.useSwatchesOptions=tt.default,exports.useRenderMode=tr.useRenderMode,exports.usePreviewSharePage=to.usePreviewSharePage,Object.defineProperty(exports,"RenderModeEnv",{enumerable:!0,get:function(){return ts.RenderModeEnv}}),Object.defineProperty(exports,"InteractionTargetEvent",{enumerable:!0,get:function(){return ti.InteractionTargetEvent}}),Object.defineProperty(exports,"InteractionTriggerEvent",{enumerable:!0,get:function(){return ti.InteractionTriggerEvent}}),Object.defineProperty(exports,"SectionMode",{enumerable:!0,get:function(){return ti.SectionMode}}),exports.ShopType=ta,exports.AppAPIType=tp,exports.OptionNormalStyle=tu.OptionNormalStyle,exports.OptionSpecialStyle=tu.OptionSpecialStyle,Object.defineProperty(exports,"AnimationDirectionType",{enumerable:!0,get:function(){return tn.AnimationDirectionType}}),Object.defineProperty(exports,"AnimationEasingType",{enumerable:!0,get:function(){return tn.AnimationEasingType}}),Object.defineProperty(exports,"AnimationSetting",{enumerable:!0,get:function(){return tn.AnimationSetting}}),Object.defineProperty(exports,"AnimationTriggerType",{enumerable:!0,get:function(){return tn.AnimationTriggerType}}),Object.defineProperty(exports,"AnimationType",{enumerable:!0,get:function(){return tn.AnimationType}}),Object.defineProperty(exports,"AnimationZoomDirectionType",{enumerable:!0,get:function(){return tn.AnimationZoomDirectionType}}),exports.calculateFirstProduct=tl.calculateFirstProduct,exports.getCollection=tl.getCollection,exports.fetchMedias=tc.fetchMedias,exports.fetchVariants=tc.fetchVariants,exports.getProduct=tc.getProduct,exports.getProductBySlug=td.getProductBySlug,exports.getAppBlocks=tx.getAppBlocks,exports.addAppBlockId=tg.addAppBlockId,exports.useInteraction=tS.useInteraction,exports.createStoreFrontFetcher=th.createStoreFrontFetcher,exports.hasPublicStoreFrontData=th.hasPublicStoreFrontData,exports.BLACKLIST_TAGS=ty.BLACKLIST_TAGS,exports.DEVICES=tm.DEVICES,exports.EMPTY_DEVICE_VALUE=tm.EMPTY_DEVICE_VALUE;
|
|
1
|
+
"use strict";var e=require("./components/AddOn.js"),t=require("./components/Render.js"),r=require("./components/RenderPreview.js"),o=require("./components/Render.liquid.js"),s=require("./contexts/AddonContext.js"),i=require("./contexts/BuilderComponent.js"),a=require("./contexts/BuilderContext.js"),p=require("./contexts/BuilderPreviewContext.js"),u=require("./contexts/CartLineContext.js"),n=require("./contexts/ProductListContext.js"),l=require("./contexts/ProductContext.js"),c=require("./contexts/SectionContext.js"),d=require("./contexts/ShopContext.js"),g=require("./contexts/PageContext.js"),x=require("./contexts/CollectionContext.js"),S=require("./contexts/ModalContext.js"),h=require("./contexts/ArticleListContext.js"),y=require("./contexts/ArticleContext.js"),m=require("./contexts/I18nContext.js"),C=require("./graphql/mutations/page-view-up.generated.js"),q=require("./graphql/queries/collection-detail-filter.generated.js"),P=require("./graphql/queries/collection.generated.js"),v=require("./graphql/queries/collections.generated.js"),j=require("./graphql/queries/published-theme-pages.generated.js"),b=require("./graphql/queries/store-property.generated.js"),k=require("./graphql/queries/preview-page.generated.js"),f=require("./graphql/queries/published-shop-metas.generated.js"),B=require("./graphql/queries/shop-shopify.generated.js"),D=require("./graphql/queries/articles.generated.js"),T=require("./graphql/queries/blogs.generated.js"),A=require("./graphql/queries/products-with-selling-plans.generated.js"),I=require("./graphql/queries/product-variant-with-selling-plans.generated.js"),R=require("./graphql-app-api/queries/LibraryTemplate.generated.js"),L=require("./graphql-app-api/queries/ThemePage.generated.js"),G=require("./graphql-app-api/queries/SaleFunnelDiscounts.generated.js"),V=require("./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js"),F=require("./graphql-app-api/queries/ShopLibraryPage.generated.js"),O=require("./graphql-app-api/queries/SaleFunnelOffer.generated.js"),w=require("./graphql-app-api/queries/ThemePageMeta.generated.js"),M=require("./helpers/borders.js"),E=require("./helpers/carousel.js"),z=require("./helpers/cls.js"),W=require("./helpers/animations.js"),H=require("./helpers/filter-toolbar-preview.js"),Q=require("./helpers/flatten-connection.js"),U=require("./helpers/get-resonsive-value.js"),K=require("./helpers/get-shortname.js"),N=require("./helpers/GlobalEvent.js"),_=require("./helpers/is-browser.js"),Y=require("./helpers/is-empty-children.js"),J=require("./helpers/is-safari.js"),Z=require("./helpers/normalize-builder-data.js"),X=require("./helpers/prefetch-queries.js"),$=require("./helpers/email.js"),ee=require("./helpers/load-script.js"),et=require("./helpers/spacing.js"),er=require("./helpers/css-variable.js"),eo=require("./helpers/tracking/fpixel.js"),es=require("./helpers/tracking/gtag.js"),ei=require("./helpers/tracking/tiktokpixel.js"),ea=require("./helpers/background.js"),ep=require("./helpers/backgroundImage.js"),eu=require("./helpers/colors.js"),en=require("./helpers/compose-advance-style.js"),el=require("./helpers/composeClasses.js"),ec=require("./helpers/convert.js"),ed=require("./helpers/covert-entities-html.js"),eg=require("./helpers/icon-list.js"),ex=require("./helpers/is-defined.js"),eS=require("./helpers/layout.js"),eh=require("./helpers/make-style.js"),ey=require("./helpers/align.js"),em=require("./helpers/filter-styles.js"),eC=require("./helpers/clone-deep.js"),eq=require("./helpers/liquid.js"),eP=require("./helpers/variant.js"),ev=require("./helpers/createTranslateKey.js"),ej=require("./helpers/getHashCode.js"),eb=require("./helpers/product.js"),ek=require("./helpers/query.js"),ef=require("./helpers/radius.js"),eB=require("./helpers/render.js"),eD=require("./helpers/shadow.js"),eT=require("./helpers/size.js"),eA=require("./helpers/typography.js"),eI=require("./hooks/articles/useArticlesQuery.js"),eR=require("./hooks/cart/use-add-to-cart.js"),eL=require("./hooks/cart/use-cart-data.js"),eG=require("./hooks/cart/use-cart-discount-codes-update.js"),eV=require("./hooks/cart/use-cart-note-update.js"),eF=require("./hooks/cart/use-create-cart.js"),eO=require("./hooks/cart/use-remove-cart-item.js"),ew=require("./hooks/cart/use-update-cart-item.js"),eM=require("./hooks/shop.js"),eE=require("./hooks/shop/use-collection-query.js"),ez=require("./hooks/shop/use-collections-query.js"),eW=require("./hooks/shop/use-product-query.js"),eH=require("./hooks/shop/useProductOffersQuery.js"),eQ=require("./hooks/useFetchHandle.js"),eU=require("./hooks/shop/use-products-query.js"),eK=require("./hooks/use-current-device.js"),eN=require("./hooks/use-lazy-video.js"),e_=require("./hooks/useCartId.js"),eY=require("./hooks/useCartLine.js"),eJ=require("./hooks/useCartUI.js"),eZ=require("./hooks/useCollection.js"),eX=require("./hooks/useFormatMoney.js"),e$=require("react"),e0=require("./hooks/useInitialSwatchesOptions.js"),e1=require("./hooks/useIsomorphicLayoutEffect.js"),e2=require("./hooks/useLoadScript.js"),e8=require("./hooks/useMoney.js"),e3=require("./hooks/usePrevious.js"),e4=require("./hooks/useI18n.js"),e5=require("./hooks/useStickyStore.js"),e6=require("./hooks/useProduct.js"),e7=require("./hooks/shop/useShopifyLink.js"),e9=require("./hooks/useProductList.js"),te=require("./hooks/useSuspenseFetch.js"),tt=require("./hooks/useSwatchesOptions.js"),tr=require("./hooks/useRenderMode.js"),to=require("./hooks/usePreviewSharePage.js"),ts=require("./types/builder.js"),ti=require("./types/custom.js"),ta=require("./types/shop.js"),tp=require("./types/appAPI.js"),tu=require("./types/global-style.js"),tn=require("./types/animations.js"),tl=require("./helpers/queries/get-collection.js"),tc=require("./helpers/queries/get-product.js"),td=require("./helpers/queries/get-product-by-slug.js"),tg=require("./helpers/third-party/getAppBlocks.js"),tx=require("./helpers/third-party/addAppBlockId.js"),tS=require("./helpers/interaction/index.js"),th=require("./helpers/create-store-front-fetcher.js"),ty=require("./constants/index.js"),tm=require("./constants/device.js");exports.AddOn=e.default,exports.Render=t.default,exports.RenderPreview=r.default,exports.RenderChildren=o.RenderChildren,exports.RenderLiquid=o.default,exports.WrapRenderChildren=o.WrapRenderChildren,exports.AddonProvider=s.AddonProvider,exports.useAddon=s.useAddon,exports.useAddons=s.useAddons,exports.BuilderComponentProvider=i.BuilderComponentProvider,exports.useBuilderComponent=i.useBuilderComponent,exports.BuilderProvider=a.BuilderProvider,exports.useBuilderStore=a.useBuilderStore,exports.BuilderPreviewProvider=p.BuilderPreviewProvider,exports.useBuilderPreviewStore=p.useBuilderPreviewStore,exports.CartLineProvider=u.CartLineProvider,exports.useCartLineStore=u.useCartLineStore,exports.ProductListProvider=n.ProductListProvider,exports.useProductListStore=n.useProductListStore,exports.ProductProvider=l.ProductProvider,exports.useProductStore=l.useProductStore,exports.SectionProvider=c.SectionProvider,exports.useSection=c.useSection,exports.useSectionStore=c.useSectionStore,exports.ShopProvider=d.ShopProvider,exports.useShopStore=d.useShopStore,exports.PageProvider=g.PageProvider,exports.usePageStore=g.usePageStore,exports.CollectionProvider=x.CollectionProvider,exports.useCollectionStore=x.useCollectionStore,exports.ModalProvider=S.ModalProvider,exports.useModalStore=S.useModalStore,exports.ArticleListProvider=h.ArticleListProvider,exports.useArticleListStore=h.useArticleListStore,exports.ArticleProvider=y.ArticleProvider,exports.useArticleStore=y.useArticleStore,exports.I18nProvider=m.I18nProvider,exports.useI18nStore=m.useI18nStore,exports.PageViewUpDocument=C.PageViewUpDocument,exports.CollectionDetailFilterDocument=q.CollectionDetailFilterDocument,exports.CollectionDocument=P.CollectionDocument,exports.CollectionsDocument=v.CollectionsDocument,exports.PublishedThemePagesDocument=j.PublishedThemePagesDocument,exports.StorePropertyDocument=b.StorePropertyDocument,exports.PreviewThemePageDocument=k.PreviewThemePageDocument,exports.PublishedShopMetasDocument=f.PublishedShopMetasDocument,exports.ShopShopifyDocument=B.ShopShopifyDocument,exports.ArticlesDocument=D.ArticlesDocument,exports.BlogsDocument=T.BlogsDocument,exports.ProductWithSellingPlansSelectFragment=A.ProductWithSellingPlansSelectFragment,exports.ProductsWithSellingPlansDocument=A.ProductsWithSellingPlansDocument,exports.ProductVariantsWithSellingPlansDocument=I.ProductVariantsWithSellingPlansDocument,exports.LibraryTemplateDocument=R.LibraryTemplateDocument,exports.ThemePageDocument=L.ThemePageDocument,exports.SaleFunnelDiscountsDocument=G.SaleFunnelDiscountsDocument,exports.LibrarySaleFunnelDocument=V.LibrarySaleFunnelDocument,exports.ShopLibraryPageDocument=F.ShopLibraryPageDocument,exports.SaleFunnelOfferDocument=O.SaleFunnelOfferDocument,exports.ThemePageMetaDocument=w.ThemePageMetaDocument,exports.composeBorderCss=M.composeBorderCss,exports.composeBorderResponsive=M.composeBorderResponsive,exports.getBorderRadiusStyle=M.getBorderRadiusStyle,exports.getBorderStyle=M.getBorderStyle,exports.handleConvertBorderColor=M.handleConvertBorderColor,exports.handleConvertBorderStyle=M.handleConvertBorderStyle,exports.handleConvertBorderWidth=M.handleConvertBorderWidth,exports.handleConvertClassColor=M.handleConvertClassColor,exports.handleConvertClassColorDynamicBtn=M.handleConvertClassColorDynamicBtn,exports.handleConvertInputBorderColor=M.handleConvertInputBorderColor,exports.getCarouselContainerHeight=E.getCarouselContainerHeight,exports.makeContainerWidthOrHeight=E.makeContainerWidthOrHeight,exports.makeDotGapToCarouselStyle=E.makeDotGapToCarouselStyle,exports.cls=z.cls,exports.animations=W.animations,exports.filterToolbarPreview=H.default,exports.flattenConnection=Q.flattenConnection,exports.getResponsiveStateValue=U.getResponsiveStateValue,exports.getResponsiveValue=U.getResponsiveValue,exports.getResponsiveValueByScreen=U.getResponsiveValueByScreen,exports.isColumnDirectionExist=U.isColumnDirectionExist,exports.getShortName=K.getShortName,exports.globalEvent=N.default,exports.isBrowser=_.default,exports.isEmptyChildren=Y.default,exports.isSafari=J.default,exports.normalizeBuilderData=Z.normalizeBuilderData,exports.prefetchQueries=X.prefetchQueries,exports.validateEmail=$.validateEmail,exports.loadScript=ee.loadScript,exports.composeSpacing=et.composeSpacing,exports.getSpacingVariable=et.getSpacingVariable,exports.genVariable=er.genVariable,exports.fpixel=eo,exports.gtag=es,exports.tiktokpixel=ei,exports.GRADIENT_BGR_KEY=ea.GRADIENT_BGR_KEY,exports.composeBackgroundCss=ea.composeBackgroundCss,exports.getBgByDevice=ea.getBgByDevice,exports.getBgImageByDevice=ea.getBgImageByDevice,exports.getBgVideoByDevice=ea.getBgVideoByDevice,exports.getColor=ea.getColor,exports.getCombinedBackgroundImage=ea.getCombinedBackgroundImage,exports.getGradientBgrStyleByDevice=ea.getGradientBgrStyleByDevice,exports.getGradientBgrStyleForButton=ea.getGradientBgrStyleForButton,exports.getGradientImageBgrStyleByDevice=ea.getGradientImageBgrStyleByDevice,exports.getStyleBackgroundByDevice=ea.getStyleBackgroundByDevice,exports.getStyleBgColor=ea.getStyleBgColor,exports.makeFixedBgAttachment=ea.makeFixedBgAttachment,exports.composeBackgroundImageCss=ep.composeBackgroundImageCss,exports.getBgImageSourceByDevice=ep.getBgImageSourceByDevice,exports.getStyleBackgroundImage=ep.getStyleBackgroundImage,exports.getStyleBgImageSource=ep.getStyleBgImageSource,exports.composeTextColorCss=eu.composeTextColorCss,exports.getGlobalColorCSSProp=eu.getGlobalColorCSSProp,exports.getGlobalColorClass=eu.getGlobalColorClass,exports.getGlobalColorResponsiveClass=eu.getGlobalColorResponsiveClass,exports.getGlobalColorResponsiveStyle=eu.getGlobalColorResponsiveStyle,exports.getGlobalColorStateClass=eu.getGlobalColorStateClass,exports.getGlobalColorStateClassDynamicBtn=eu.getGlobalColorStateClassDynamicBtn,exports.getGlobalColorStateResponsiveClass=eu.getGlobalColorStateResponsiveClass,exports.getGlobalColorStateResponsiveClassDynamicBtn=eu.getGlobalColorStateResponsiveClassDynamicBtn,exports.getGlobalColorStateResponsiveStyle=eu.getGlobalColorStateResponsiveStyle,exports.getGlobalColorStateStyle=eu.getGlobalColorStateStyle,exports.getGlobalColorStyle=eu.getGlobalColorStyle,exports.getSingleColorVariable=eu.getSingleColorVariable,exports.isColor=eu.isColor,exports.composeAdvanceStyle=en.composeAdvanceStyle,exports.composeAdvanceStyleForPostPurchase=en.composeAdvanceStyleForPostPurchase,exports.convertBoxShadowV1ToV2=en.convertBoxShadowV1ToV2,exports.filterAttrInStyle=en.filterAttrInStyle,exports.getCornerStyle=en.getCornerStyle,exports.removeAttrInStyle=en.removeAttrInStyle,exports.removePaddingYInStyle=en.removePaddingYInStyle,exports.splitStyle=en.splitStyle,exports.composeClasses=el.composeClasses,exports.baseAssetURL=ec.baseAssetURL,exports.isLocalEnv=ec.isLocalEnv,exports.convertHTML=ed.convertHTML,exports.composePositionLineHeight=eg.composePositionLineHeight,exports.composePostionIconList=eg.composePostionIconList,exports.isDefined=ex.isDefined,exports.composeGridLayout=eS.composeGridLayout,exports.convertOldLayout=eS.convertOldLayout,exports.getLayoutClasses=eS.getLayoutClasses,exports.gridToArrayRegex=eS.gridToArrayRegex,exports.optionLayoutStyle=eS.optionLayoutStyle,exports.makeAspectRatio=eh.makeAspectRatio,exports.makeGlobalSizeHeightResponsive=eh.makeGlobalSizeHeightResponsive,exports.makeGlobalSizeWidthResponsive=eh.makeGlobalSizeWidthResponsive,exports.makeHeight=eh.makeHeight,exports.makeLineClamp=eh.makeLineClamp,exports.makeStyle=eh.makeStyle,exports.makeStyleKey=eh.makeStyleKey,exports.makeStyleResponsive=eh.makeStyleResponsive,exports.makeStyleResponsiveByScreen=eh.makeStyleResponsiveByScreen,exports.makeStyleResponsiveState=eh.makeStyleResponsiveState,exports.makeStyleResponsiveWidth=eh.makeStyleResponsiveWidth,exports.makeStyleResponsiveWidthWithoutAuto=eh.makeStyleResponsiveWidthWithoutAuto,exports.makeStyleState=eh.makeStyleState,exports.makeWidth=eh.makeWidth,exports.removeNullUndefined=eh.removeNullUndefined,exports.convertTextAlignToJustify=ey.convertTextAlignToJustify,exports.getAlignmentClasses=ey.getAlignmentClasses,exports.filterHoverVariables=em.filterHoverVariables,exports.filterTruthyStyles=em.filterTruthyStyles,exports.cloneDeep=eC.cloneDeep,exports.hasTranslatedLiquid=eq.hasTranslatedLiquid,exports.checkInStock=eP.checkInStock,exports.checkHasChangeContent=ev.checkHasChangeContent,exports.createTranslateKey=ev.createTranslateKey,exports.extractOuterTagContent=ev.extractOuterTagContent,exports.getThemeSectionTranslateKey=ev.getThemeSectionTranslateKey,exports.getValueSettingFromSchema=ev.getValueSettingFromSchema,exports.replaceOuterTagContent=ev.replaceOuterTagContent,exports.getHashCode=ej.getHashCode,exports.checkAvailableVariantInStock=eb.checkAvailableVariantInStock,exports.getSelectedVariant=eb.getSelectedVariant,exports.parseSelectedOption=eb.parseSelectedOption,exports.generateCollectionQueryKey=ek.generateCollectionQueryKey,exports.generateProductQueryKey=ek.generateProductQueryKey,exports.generateProductsQueryKey=ek.generateProductsQueryKey,exports.composeCornerCss=ef.composeCornerCss,exports.composeRadius=ef.composeRadius,exports.composeRadiusResponsive=ef.composeRadiusResponsive,exports.getCornerCSSFromGlobal=ef.getCornerCSSFromGlobal,exports.getCustomRadius=ef.getCustomRadius,exports.getRadiusCSSFromGlobal=ef.getRadiusCSSFromGlobal,exports.getRadiusStyleActiveState=ef.getRadiusStyleActiveState,exports.RenderIf=eB.RenderIf,exports.composeMemo=eB.composeMemo,exports.dataStringify=eB.dataStringify,exports.props=eB.props,exports.removeUndefinedValuesFromObject=eB.removeUndefinedValuesFromObject,exports.sanitizeLiquid=eB.sanitizeLiquid,exports.styles=eB.styles,exports.template=eB.template,exports.composeShadow=eD.composeShadow,exports.composeShadowCss=eD.composeShadowCss,exports.getResponsiveStyleShadow=eD.getResponsiveStyleShadow,exports.getResponsiveStyleShadowWithoutState=eD.getResponsiveStyleShadowWithoutState,exports.getStyleShadow=eD.getStyleShadow,exports.getStyleShadowState=eD.getStyleShadowState,exports.parseValueWithUnit=eD.parseValueWithUnit,exports.composeSize=eT.composeSize,exports.composeSizeCss=eT.composeSizeCss,exports.genSizeClass=eT.genSizeClass,exports.getAspectRatioGlobalSize=eT.getAspectRatioGlobalSize,exports.getFlexGrowClassByShapeGlobalSize=eT.getFlexGrowClassByShapeGlobalSize,exports.getGlobalSizeGap=eT.getGlobalSizeGap,exports.getHeightByShapeGlobalSize=eT.getHeightByShapeGlobalSize,exports.getPaddingGlobalSize=eT.getPaddingGlobalSize,exports.getPaddingStyleByDevice=eT.getPaddingStyleByDevice,exports.getResponsiveStylePadding=eT.getResponsiveStylePadding,exports.getValueByDevice=eT.getValueByDevice,exports.getWidthByShapeGlobalSize=eT.getWidthByShapeGlobalSize,exports.getWidthHeightGlobalSize=eT.getWidthHeightGlobalSize,exports.makeGlobalSize=eT.makeGlobalSize,exports.makeGlobalSizeIcon=eT.makeGlobalSizeIcon,exports.makeStyleWithDefault=eT.makeStyleWithDefault,exports.composeFallbackTypographyStyle=eA.composeFallbackTypographyStyle,exports.composeFontFamilyTypographyV2=eA.composeFontFamilyTypographyV2,exports.composeTextHoverColorCss=eA.composeTextHoverColorCss,exports.composeTypography=eA.composeTypography,exports.composeTypographyAttr=eA.composeTypographyAttr,exports.composeTypographyClassName=eA.composeTypographyClassName,exports.composeTypographyCss=eA.composeTypographyCss,exports.composeTypographyStyle=eA.composeTypographyStyle,exports.composeTypographyV2=eA.composeTypographyV2,exports.composeTypographyV2Css=eA.composeTypographyV2Css,exports.genTypoClass=eA.genTypoClass,exports.useArticlesQuery=eI.useArticlesQuery,exports.useBlogsQuery=eI.useBlogsQuery,exports.useAddToCart=eR.useAddToCart,exports.useCartData=eL.useCartData,exports.useCartDiscountCodesUpdate=eG.useCartDiscountCodesUpdate,exports.useCartNoteUpdate=eV.useCartNoteUpdate,exports.useCreateCart=eF.useCreateCart,exports.useRemoveCartItem=eO.useRemoveCartItem,exports.useUpdateCartItem=ew.useUpdateCartItem,exports.useCheckoutUrl=eM.useCheckoutUrl,exports.useConnectedShopify=eM.useConnectedShopify,exports.useCurrency=eM.useCurrency,exports.useEditorMode=eM.useEditorMode,exports.useIsSampleProduct=eM.useIsSampleProduct,exports.useIsStorefrontProduct=eM.useIsStorefrontProduct,exports.useLocale=eM.useLocale,exports.useMatchMutate=eM.useMatchMutate,exports.useMobileOnly=eM.useMobileOnly,exports.useMoneyFormat=eM.useMoneyFormat,exports.usePageType=eM.usePageType,exports.usePluginEnable=eM.usePluginEnable,exports.useStoreFront=eM.useStoreFront,exports.useSwatches=eM.useSwatches,exports.useTimezone=eM.useTimezone,exports.useCollectionQuery=eE.useCollectionQuery,exports.useCollectionsQuery=ez.useCollectionsQuery,exports.useProductQuery=eW.useProductQuery,exports.useProductOffersQuery=eH.useProductOffersQuery,exports.useFetchHandle=eQ.useFetchHandle,exports.useProductsQuery=eU.useProductsQuery,exports.useProductsQueryAll=eU.useProductsQueryAll,exports.useCurrentDevice=eK.useCurrentDevice,exports.useLazyVideo=eN.useLazyVideo,exports.useCartId=e_.default,exports.useCartLine=eY.default,exports.useCartUI=eJ.default,exports.useCollection=eZ.useCollection,exports.convertDecimalToNumber=eX.convertDecimalToNumber,exports.formatMoney=eX.formatMoney,exports.shopifyPriceRounding=eX.shopifyPriceRounding,exports.useFormatMoney=eX.useFormatMoney,Object.defineProperty(exports,"useId",{enumerable:!0,get:function(){return e$.useId}}),exports.useInitialSwatchesOptions=e0.default,exports.useIsomorphicLayoutEffect=e1.default,exports.useLoadScript=e2.default,exports.useMoney=e8.default,exports.usePrevious=e3.usePrevious,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return e4.tGlobal}}),exports.useI18n=e4.useI18n,exports.useStickyStore=e5.useStickyStore,exports.useCheckAvailableVariantInStock=e6.useCheckAvailableVariantInStock,exports.useCurrentVariant=e6.useCurrentVariant,exports.useCurrentVariantInStock=e6.useCurrentVariantInStock,exports.useFeaturedImageGlobal=e6.useFeaturedImageGlobal,exports.useHasPreSelected=e6.useHasPreSelected,exports.useIsSyncProduct=e6.useIsSyncProduct,exports.useProduct=e6.useProduct,exports.useProductBundleDiscount=e6.useProductBundleDiscount,exports.useProductOfferDiscount=e6.useProductOfferDiscount,exports.useProductProperties=e6.useProductProperties,exports.useProductShopifyEditLink=e6.useProductShopifyEditLink,exports.useQuantity=e6.useQuantity,exports.useSelectedOption=e6.useSelectedOption,exports.useUniqProductID=e6.useUniqProductID,exports.useVariant=e6.useVariant,exports.useVariantOutStock=e6.useVariantOutStock,exports.useVariants=e6.useVariants,exports.useShopifyLink=e7.useShopifyLink,exports.useProductList=e9.useProductList,exports.useProductListProducts=e9.useProductListProducts,exports.useProductListSettings=e9.useProductListSettings,exports.useProductListStyles=e9.useProductListStyles,exports.useSafeGetProductListSettings=e9.useSafeGetProductListSettings,exports.useSuspenseFetch=te.default,exports.useSwatchesOptions=tt.default,exports.useRenderMode=tr.useRenderMode,exports.usePreviewSharePage=to.usePreviewSharePage,Object.defineProperty(exports,"RenderModeEnv",{enumerable:!0,get:function(){return ts.RenderModeEnv}}),Object.defineProperty(exports,"InteractionTargetEvent",{enumerable:!0,get:function(){return ti.InteractionTargetEvent}}),Object.defineProperty(exports,"InteractionTriggerEvent",{enumerable:!0,get:function(){return ti.InteractionTriggerEvent}}),Object.defineProperty(exports,"SectionMode",{enumerable:!0,get:function(){return ti.SectionMode}}),exports.ShopType=ta,exports.AppAPIType=tp,exports.OptionNormalStyle=tu.OptionNormalStyle,exports.OptionSpecialStyle=tu.OptionSpecialStyle,Object.defineProperty(exports,"AnimationDirectionType",{enumerable:!0,get:function(){return tn.AnimationDirectionType}}),Object.defineProperty(exports,"AnimationEasingType",{enumerable:!0,get:function(){return tn.AnimationEasingType}}),Object.defineProperty(exports,"AnimationSetting",{enumerable:!0,get:function(){return tn.AnimationSetting}}),Object.defineProperty(exports,"AnimationTriggerType",{enumerable:!0,get:function(){return tn.AnimationTriggerType}}),Object.defineProperty(exports,"AnimationType",{enumerable:!0,get:function(){return tn.AnimationType}}),Object.defineProperty(exports,"AnimationZoomDirectionType",{enumerable:!0,get:function(){return tn.AnimationZoomDirectionType}}),exports.calculateFirstProduct=tl.calculateFirstProduct,exports.getCollection=tl.getCollection,exports.fetchMedias=tc.fetchMedias,exports.fetchVariants=tc.fetchVariants,exports.getProduct=tc.getProduct,exports.getProductBySlug=td.getProductBySlug,exports.getAppBlocks=tg.getAppBlocks,exports.addAppBlockId=tx.addAppBlockId,exports.useInteraction=tS.useInteraction,exports.createStoreFrontFetcher=th.createStoreFrontFetcher,exports.hasPublicStoreFrontData=th.hasPublicStoreFrontData,exports.BLACKLIST_TAGS=ty.BLACKLIST_TAGS,exports.DEVICES=tm.DEVICES,exports.EMPTY_DEVICE_VALUE=tm.EMPTY_DEVICE_VALUE;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as
|
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{useContext as r,createContext as e}from"react";import{useStore as o,createStore as u}from"zustand";let i=e(null),s=t=>u(()=>({...t})),d=({children:r,collection:e,products:o,settings:u,styles:d})=>t(i.Provider,{value:s({products:o,collection:e,settings:u,styles:d}),children:r}),c=()=>{let t=r(i);return t},n=(t,e)=>{let u=r(i);if(!u)throw Error("useProductListStore must be used within a useProductListStore");return o(u,t,e)};export{i as ProductListContext,d as ProductListProvider,c as useProductListContext,n as useProductListStore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ProductLittleDetailDocument as e}from"../../graphql/queries/product-little-detail.generated.js";import{ProductMediasDocument as
|
|
1
|
+
import{ProductLittleDetailDocument as e}from"../../graphql/queries/product-little-detail.generated.js";import{ProductMediasDocument as r}from"../../graphql/queries/product-medias.generated.js";import{ProductVariantsDocument as t}from"../../graphql/queries/product-variants.generated.js";let a=async(e,{id:r,isSample:t,isStorefront:a})=>{let[n,o,s]=await Promise.all([i(e,{id:r,isSample:t,isStorefront:a}),d(e,{id:r,isSample:t,isStorefront:a}),c(e,{id:r,isSample:t,isStorefront:a})]);if(!n)throw Error("Product not found");return{...n,variants:{edges:o},medias:{edges:s}}},n="latest",o={direction:"DESC",field:"PLATFORM_CREATED_AT"},s={direction:"DESC",field:"CREATED_AT"},i=async(r,{id:t,isSample:a,isStorefront:i})=>{let d=t&&t.toLowerCase()===n,c={orderBy:d?o:s,where:{isSample:a,...i&&{isStorefront:i},...(!t||d)&&{status:"ACTIVE"},...t&&!d&&{baseID:t}}},u=await r([e.toString(),c]);return u.product?.edges?.[0]?.node},d=async(e,{id:r,isSample:a,isStorefront:i})=>{let d=r&&r.toLowerCase()===n,c={orderBy:d?o:s,where:{isSample:a,...i&&{isStorefront:i},...(!r||d)&&{status:"ACTIVE"},...r&&!d&&{baseID:r}},orderByVariant:{field:"POSITION",direction:"ASC"}},u=async(r,a)=>{try{let n=await e([t.toString(),r]),o=n.variants?.edges?.[0],s=a?.concat(o?.node?.variants?.edges??[]);if(o?.node?.variants?.pageInfo?.hasNextPage)return u({...r,afterVariant:o?.node?.variants?.pageInfo.endCursor},s);return s??[]}catch{return a??[]}};return u(c,[])},c=async(e,{id:t,isSample:a,isStorefront:i})=>{let d=t&&t.toLowerCase()===n,c={orderBy:d?o:s,where:{isSample:a,...i&&{isStorefront:i},...(!t||d)&&{status:"ACTIVE"},...t&&!d&&{baseID:t}},orderByMedia:{field:"POSITION",direction:"ASC"}},u=async t=>{try{let a=await e([r.toString(),t]),n=a.medias?.edges?.[0],o=n?.node?.medias?.edges??[];if(n?.node?.medias?.pageInfo?.hasNextPage)try{let e=await u({...t,afterMedia:n?.node?.medias?.pageInfo.endCursor});return o.concat(e)}catch{}return o}catch{return[]}};return u(c)};export{c as fetchMedias,d as fetchVariants,a as getProduct};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{
|
|
2
|
+
import{useMemo as t}from"react";import{useProductListStore as s,useProductListContext as e}from"../contexts/ProductListContext.js";let o=()=>s(t=>t.collection),r=()=>s(t=>t.products),u=()=>s(t=>t.settings),i=()=>s(t=>t.styles),c=()=>{let s=e(),o=t(()=>s?s.getState().settings:null,[s]);return{settings:o}};export{o as useProductList,r as useProductListProducts,u as useProductListSettings,i as useProductListStyles,c as useSafeGetProductListSettings};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as AddOn}from"./components/AddOn.js";export{default as Render}from"./components/Render.js";export{default as RenderPreview}from"./components/RenderPreview.js";export{RenderChildren,default as RenderLiquid,WrapRenderChildren}from"./components/Render.liquid.js";export{AddonProvider,useAddon,useAddons}from"./contexts/AddonContext.js";export{BuilderComponentProvider,useBuilderComponent}from"./contexts/BuilderComponent.js";export{BuilderProvider,useBuilderStore}from"./contexts/BuilderContext.js";export{BuilderPreviewProvider,useBuilderPreviewStore}from"./contexts/BuilderPreviewContext.js";export{CartLineProvider,useCartLineStore}from"./contexts/CartLineContext.js";export{ProductListProvider,useProductListStore}from"./contexts/ProductListContext.js";export{ProductProvider,useProductStore}from"./contexts/ProductContext.js";export{SectionProvider,useSection,useSectionStore}from"./contexts/SectionContext.js";export{ShopProvider,useShopStore}from"./contexts/ShopContext.js";export{PageProvider,usePageStore}from"./contexts/PageContext.js";export{CollectionProvider,useCollectionStore}from"./contexts/CollectionContext.js";export{ModalProvider,useModalStore}from"./contexts/ModalContext.js";export{ArticleListProvider,useArticleListStore}from"./contexts/ArticleListContext.js";export{ArticleProvider,useArticleStore}from"./contexts/ArticleContext.js";export{I18nProvider,useI18nStore}from"./contexts/I18nContext.js";export{PageViewUpDocument}from"./graphql/mutations/page-view-up.generated.js";export{CollectionDetailFilterDocument}from"./graphql/queries/collection-detail-filter.generated.js";export{CollectionDocument}from"./graphql/queries/collection.generated.js";export{CollectionsDocument}from"./graphql/queries/collections.generated.js";export{PublishedThemePagesDocument}from"./graphql/queries/published-theme-pages.generated.js";export{StorePropertyDocument}from"./graphql/queries/store-property.generated.js";export{PreviewThemePageDocument}from"./graphql/queries/preview-page.generated.js";export{PublishedShopMetasDocument}from"./graphql/queries/published-shop-metas.generated.js";export{ShopShopifyDocument}from"./graphql/queries/shop-shopify.generated.js";export{ArticlesDocument}from"./graphql/queries/articles.generated.js";export{BlogsDocument}from"./graphql/queries/blogs.generated.js";export{ProductWithSellingPlansSelectFragment,ProductsWithSellingPlansDocument}from"./graphql/queries/products-with-selling-plans.generated.js";export{ProductVariantsWithSellingPlansDocument}from"./graphql/queries/product-variant-with-selling-plans.generated.js";export{LibraryTemplateDocument}from"./graphql-app-api/queries/LibraryTemplate.generated.js";export{ThemePageDocument}from"./graphql-app-api/queries/ThemePage.generated.js";export{SaleFunnelDiscountsDocument}from"./graphql-app-api/queries/SaleFunnelDiscounts.generated.js";export{LibrarySaleFunnelDocument}from"./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js";export{ShopLibraryPageDocument}from"./graphql-app-api/queries/ShopLibraryPage.generated.js";export{SaleFunnelOfferDocument}from"./graphql-app-api/queries/SaleFunnelOffer.generated.js";export{ThemePageMetaDocument}from"./graphql-app-api/queries/ThemePageMeta.generated.js";export{composeBorderCss,composeBorderResponsive,getBorderRadiusStyle,getBorderStyle,handleConvertBorderColor,handleConvertBorderStyle,handleConvertBorderWidth,handleConvertClassColor,handleConvertClassColorDynamicBtn,handleConvertInputBorderColor}from"./helpers/borders.js";export{getCarouselContainerHeight,makeContainerWidthOrHeight,makeDotGapToCarouselStyle}from"./helpers/carousel.js";export{cls}from"./helpers/cls.js";export{animations}from"./helpers/animations.js";export{default as filterToolbarPreview}from"./helpers/filter-toolbar-preview.js";export{flattenConnection}from"./helpers/flatten-connection.js";export{getResponsiveStateValue,getResponsiveValue,getResponsiveValueByScreen,isColumnDirectionExist}from"./helpers/get-resonsive-value.js";export{getShortName}from"./helpers/get-shortname.js";export{default as globalEvent}from"./helpers/GlobalEvent.js";export{default as isBrowser}from"./helpers/is-browser.js";export{default as isEmptyChildren}from"./helpers/is-empty-children.js";export{default as isSafari}from"./helpers/is-safari.js";export{normalizeBuilderData}from"./helpers/normalize-builder-data.js";export{prefetchQueries}from"./helpers/prefetch-queries.js";export{validateEmail}from"./helpers/email.js";export{loadScript}from"./helpers/load-script.js";export{composeSpacing,getSpacingVariable}from"./helpers/spacing.js";export{genVariable}from"./helpers/css-variable.js";import*as e from"./helpers/tracking/fpixel.js";import*as o from"./helpers/tracking/gtag.js";import*as t from"./helpers/tracking/tiktokpixel.js";export{GRADIENT_BGR_KEY,composeBackgroundCss,getBgByDevice,getBgImageByDevice,getBgVideoByDevice,getColor,getCombinedBackgroundImage,getGradientBgrStyleByDevice,getGradientBgrStyleForButton,getGradientImageBgrStyleByDevice,getStyleBackgroundByDevice,getStyleBgColor,makeFixedBgAttachment}from"./helpers/background.js";export{composeBackgroundImageCss,getBgImageSourceByDevice,getStyleBackgroundImage,getStyleBgImageSource}from"./helpers/backgroundImage.js";export{composeTextColorCss,getGlobalColorCSSProp,getGlobalColorClass,getGlobalColorResponsiveClass,getGlobalColorResponsiveStyle,getGlobalColorStateClass,getGlobalColorStateClassDynamicBtn,getGlobalColorStateResponsiveClass,getGlobalColorStateResponsiveClassDynamicBtn,getGlobalColorStateResponsiveStyle,getGlobalColorStateStyle,getGlobalColorStyle,getSingleColorVariable,isColor}from"./helpers/colors.js";export{composeAdvanceStyle,composeAdvanceStyleForPostPurchase,convertBoxShadowV1ToV2,filterAttrInStyle,getCornerStyle,removeAttrInStyle,removePaddingYInStyle,splitStyle}from"./helpers/compose-advance-style.js";export{composeClasses}from"./helpers/composeClasses.js";export{baseAssetURL,isLocalEnv}from"./helpers/convert.js";export{convertHTML}from"./helpers/covert-entities-html.js";export{composePositionLineHeight,composePostionIconList}from"./helpers/icon-list.js";export{isDefined}from"./helpers/is-defined.js";export{composeGridLayout,convertOldLayout,getLayoutClasses,gridToArrayRegex,optionLayoutStyle}from"./helpers/layout.js";export{makeAspectRatio,makeGlobalSizeHeightResponsive,makeGlobalSizeWidthResponsive,makeHeight,makeLineClamp,makeStyle,makeStyleKey,makeStyleResponsive,makeStyleResponsiveByScreen,makeStyleResponsiveState,makeStyleResponsiveWidth,makeStyleResponsiveWidthWithoutAuto,makeStyleState,makeWidth,removeNullUndefined}from"./helpers/make-style.js";export{convertTextAlignToJustify,getAlignmentClasses}from"./helpers/align.js";export{filterHoverVariables,filterTruthyStyles}from"./helpers/filter-styles.js";export{cloneDeep}from"./helpers/clone-deep.js";export{hasTranslatedLiquid}from"./helpers/liquid.js";export{checkInStock}from"./helpers/variant.js";export{checkHasChangeContent,createTranslateKey,extractOuterTagContent,getThemeSectionTranslateKey,getValueSettingFromSchema,replaceOuterTagContent}from"./helpers/createTranslateKey.js";export{getHashCode}from"./helpers/getHashCode.js";export{checkAvailableVariantInStock,getSelectedVariant,parseSelectedOption}from"./helpers/product.js";export{generateCollectionQueryKey,generateProductQueryKey,generateProductsQueryKey}from"./helpers/query.js";export{composeCornerCss,composeRadius,composeRadiusResponsive,getCornerCSSFromGlobal,getCustomRadius,getRadiusCSSFromGlobal,getRadiusStyleActiveState}from"./helpers/radius.js";export{RenderIf,composeMemo,dataStringify,props,removeUndefinedValuesFromObject,sanitizeLiquid,styles,template}from"./helpers/render.js";export{composeShadow,composeShadowCss,getResponsiveStyleShadow,getResponsiveStyleShadowWithoutState,getStyleShadow,getStyleShadowState,parseValueWithUnit}from"./helpers/shadow.js";export{composeSize,composeSizeCss,genSizeClass,getAspectRatioGlobalSize,getFlexGrowClassByShapeGlobalSize,getGlobalSizeGap,getHeightByShapeGlobalSize,getPaddingGlobalSize,getPaddingStyleByDevice,getResponsiveStylePadding,getValueByDevice,getWidthByShapeGlobalSize,getWidthHeightGlobalSize,makeGlobalSize,makeGlobalSizeIcon,makeStyleWithDefault}from"./helpers/size.js";export{composeFallbackTypographyStyle,composeFontFamilyTypographyV2,composeTextHoverColorCss,composeTypography,composeTypographyAttr,composeTypographyClassName,composeTypographyCss,composeTypographyStyle,composeTypographyV2,composeTypographyV2Css,genTypoClass}from"./helpers/typography.js";export{useArticlesQuery,useBlogsQuery}from"./hooks/articles/useArticlesQuery.js";export{useAddToCart}from"./hooks/cart/use-add-to-cart.js";export{useCartData}from"./hooks/cart/use-cart-data.js";export{useCartDiscountCodesUpdate}from"./hooks/cart/use-cart-discount-codes-update.js";export{useCartNoteUpdate}from"./hooks/cart/use-cart-note-update.js";export{useCreateCart}from"./hooks/cart/use-create-cart.js";export{useRemoveCartItem}from"./hooks/cart/use-remove-cart-item.js";export{useUpdateCartItem}from"./hooks/cart/use-update-cart-item.js";export{useCheckoutUrl,useConnectedShopify,useCurrency,useEditorMode,useIsSampleProduct,useIsStorefrontProduct,useLocale,useMatchMutate,useMobileOnly,useMoneyFormat,usePageType,usePluginEnable,useStoreFront,useSwatches,useTimezone}from"./hooks/shop.js";export{useCollectionQuery}from"./hooks/shop/use-collection-query.js";export{useCollectionsQuery}from"./hooks/shop/use-collections-query.js";export{useProductQuery}from"./hooks/shop/use-product-query.js";export{useProductOffersQuery}from"./hooks/shop/useProductOffersQuery.js";export{useFetchHandle}from"./hooks/useFetchHandle.js";export{useProductsQuery,useProductsQueryAll}from"./hooks/shop/use-products-query.js";export{useCurrentDevice}from"./hooks/use-current-device.js";export{useLazyVideo}from"./hooks/use-lazy-video.js";export{default as useCartId}from"./hooks/useCartId.js";export{default as useCartLine}from"./hooks/useCartLine.js";export{default as useCartUI}from"./hooks/useCartUI.js";export{useCollection}from"./hooks/useCollection.js";export{convertDecimalToNumber,formatMoney,shopifyPriceRounding,useFormatMoney}from"./hooks/useFormatMoney.js";export{useId}from"react";export{default as useInitialSwatchesOptions}from"./hooks/useInitialSwatchesOptions.js";export{default as useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect.js";export{default as useLoadScript}from"./hooks/useLoadScript.js";export{default as useMoney}from"./hooks/useMoney.js";export{usePrevious}from"./hooks/usePrevious.js";export{tGlobal as t,useI18n}from"./hooks/useI18n.js";export{useStickyStore}from"./hooks/useStickyStore.js";export{useCheckAvailableVariantInStock,useCurrentVariant,useCurrentVariantInStock,useFeaturedImageGlobal,useHasPreSelected,useIsSyncProduct,useProduct,useProductBundleDiscount,useProductOfferDiscount,useProductProperties,useProductShopifyEditLink,useQuantity,useSelectedOption,useUniqProductID,useVariant,useVariantOutStock,useVariants}from"./hooks/useProduct.js";export{useShopifyLink}from"./hooks/shop/useShopifyLink.js";export{useProductList,useProductListProducts,useProductListSettings,useProductListStyles}from"./hooks/useProductList.js";export{default as useSuspenseFetch}from"./hooks/useSuspenseFetch.js";export{default as useSwatchesOptions}from"./hooks/useSwatchesOptions.js";export{useRenderMode}from"./hooks/useRenderMode.js";export{usePreviewSharePage}from"./hooks/usePreviewSharePage.js";export{RenderModeEnv}from"./types/builder.js";export{InteractionTargetEvent,InteractionTriggerEvent,SectionMode}from"./types/custom.js";import*as r from"./types/shop.js";import*as s from"./types/appAPI.js";export{OptionNormalStyle,OptionSpecialStyle}from"./types/global-style.js";export{AnimationDirectionType,AnimationEasingType,AnimationSetting,AnimationTriggerType,AnimationType,AnimationZoomDirectionType}from"./types/animations.js";export{calculateFirstProduct,getCollection}from"./helpers/queries/get-collection.js";export{fetchMedias,fetchVariants,getProduct}from"./helpers/queries/get-product.js";export{getProductBySlug}from"./helpers/queries/get-product-by-slug.js";export{getAppBlocks}from"./helpers/third-party/getAppBlocks.js";export{addAppBlockId}from"./helpers/third-party/addAppBlockId.js";export{useInteraction}from"./helpers/interaction/index.js";export{createStoreFrontFetcher,hasPublicStoreFrontData}from"./helpers/create-store-front-fetcher.js";export{BLACKLIST_TAGS}from"./constants/index.js";export{DEVICES,EMPTY_DEVICE_VALUE}from"./constants/device.js";export{e as fpixel,o as gtag,t as tiktokpixel,r as ShopType,s as AppAPIType};
|
|
1
|
+
export{default as AddOn}from"./components/AddOn.js";export{default as Render}from"./components/Render.js";export{default as RenderPreview}from"./components/RenderPreview.js";export{RenderChildren,default as RenderLiquid,WrapRenderChildren}from"./components/Render.liquid.js";export{AddonProvider,useAddon,useAddons}from"./contexts/AddonContext.js";export{BuilderComponentProvider,useBuilderComponent}from"./contexts/BuilderComponent.js";export{BuilderProvider,useBuilderStore}from"./contexts/BuilderContext.js";export{BuilderPreviewProvider,useBuilderPreviewStore}from"./contexts/BuilderPreviewContext.js";export{CartLineProvider,useCartLineStore}from"./contexts/CartLineContext.js";export{ProductListProvider,useProductListStore}from"./contexts/ProductListContext.js";export{ProductProvider,useProductStore}from"./contexts/ProductContext.js";export{SectionProvider,useSection,useSectionStore}from"./contexts/SectionContext.js";export{ShopProvider,useShopStore}from"./contexts/ShopContext.js";export{PageProvider,usePageStore}from"./contexts/PageContext.js";export{CollectionProvider,useCollectionStore}from"./contexts/CollectionContext.js";export{ModalProvider,useModalStore}from"./contexts/ModalContext.js";export{ArticleListProvider,useArticleListStore}from"./contexts/ArticleListContext.js";export{ArticleProvider,useArticleStore}from"./contexts/ArticleContext.js";export{I18nProvider,useI18nStore}from"./contexts/I18nContext.js";export{PageViewUpDocument}from"./graphql/mutations/page-view-up.generated.js";export{CollectionDetailFilterDocument}from"./graphql/queries/collection-detail-filter.generated.js";export{CollectionDocument}from"./graphql/queries/collection.generated.js";export{CollectionsDocument}from"./graphql/queries/collections.generated.js";export{PublishedThemePagesDocument}from"./graphql/queries/published-theme-pages.generated.js";export{StorePropertyDocument}from"./graphql/queries/store-property.generated.js";export{PreviewThemePageDocument}from"./graphql/queries/preview-page.generated.js";export{PublishedShopMetasDocument}from"./graphql/queries/published-shop-metas.generated.js";export{ShopShopifyDocument}from"./graphql/queries/shop-shopify.generated.js";export{ArticlesDocument}from"./graphql/queries/articles.generated.js";export{BlogsDocument}from"./graphql/queries/blogs.generated.js";export{ProductWithSellingPlansSelectFragment,ProductsWithSellingPlansDocument}from"./graphql/queries/products-with-selling-plans.generated.js";export{ProductVariantsWithSellingPlansDocument}from"./graphql/queries/product-variant-with-selling-plans.generated.js";export{LibraryTemplateDocument}from"./graphql-app-api/queries/LibraryTemplate.generated.js";export{ThemePageDocument}from"./graphql-app-api/queries/ThemePage.generated.js";export{SaleFunnelDiscountsDocument}from"./graphql-app-api/queries/SaleFunnelDiscounts.generated.js";export{LibrarySaleFunnelDocument}from"./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js";export{ShopLibraryPageDocument}from"./graphql-app-api/queries/ShopLibraryPage.generated.js";export{SaleFunnelOfferDocument}from"./graphql-app-api/queries/SaleFunnelOffer.generated.js";export{ThemePageMetaDocument}from"./graphql-app-api/queries/ThemePageMeta.generated.js";export{composeBorderCss,composeBorderResponsive,getBorderRadiusStyle,getBorderStyle,handleConvertBorderColor,handleConvertBorderStyle,handleConvertBorderWidth,handleConvertClassColor,handleConvertClassColorDynamicBtn,handleConvertInputBorderColor}from"./helpers/borders.js";export{getCarouselContainerHeight,makeContainerWidthOrHeight,makeDotGapToCarouselStyle}from"./helpers/carousel.js";export{cls}from"./helpers/cls.js";export{animations}from"./helpers/animations.js";export{default as filterToolbarPreview}from"./helpers/filter-toolbar-preview.js";export{flattenConnection}from"./helpers/flatten-connection.js";export{getResponsiveStateValue,getResponsiveValue,getResponsiveValueByScreen,isColumnDirectionExist}from"./helpers/get-resonsive-value.js";export{getShortName}from"./helpers/get-shortname.js";export{default as globalEvent}from"./helpers/GlobalEvent.js";export{default as isBrowser}from"./helpers/is-browser.js";export{default as isEmptyChildren}from"./helpers/is-empty-children.js";export{default as isSafari}from"./helpers/is-safari.js";export{normalizeBuilderData}from"./helpers/normalize-builder-data.js";export{prefetchQueries}from"./helpers/prefetch-queries.js";export{validateEmail}from"./helpers/email.js";export{loadScript}from"./helpers/load-script.js";export{composeSpacing,getSpacingVariable}from"./helpers/spacing.js";export{genVariable}from"./helpers/css-variable.js";import*as e from"./helpers/tracking/fpixel.js";import*as o from"./helpers/tracking/gtag.js";import*as t from"./helpers/tracking/tiktokpixel.js";export{GRADIENT_BGR_KEY,composeBackgroundCss,getBgByDevice,getBgImageByDevice,getBgVideoByDevice,getColor,getCombinedBackgroundImage,getGradientBgrStyleByDevice,getGradientBgrStyleForButton,getGradientImageBgrStyleByDevice,getStyleBackgroundByDevice,getStyleBgColor,makeFixedBgAttachment}from"./helpers/background.js";export{composeBackgroundImageCss,getBgImageSourceByDevice,getStyleBackgroundImage,getStyleBgImageSource}from"./helpers/backgroundImage.js";export{composeTextColorCss,getGlobalColorCSSProp,getGlobalColorClass,getGlobalColorResponsiveClass,getGlobalColorResponsiveStyle,getGlobalColorStateClass,getGlobalColorStateClassDynamicBtn,getGlobalColorStateResponsiveClass,getGlobalColorStateResponsiveClassDynamicBtn,getGlobalColorStateResponsiveStyle,getGlobalColorStateStyle,getGlobalColorStyle,getSingleColorVariable,isColor}from"./helpers/colors.js";export{composeAdvanceStyle,composeAdvanceStyleForPostPurchase,convertBoxShadowV1ToV2,filterAttrInStyle,getCornerStyle,removeAttrInStyle,removePaddingYInStyle,splitStyle}from"./helpers/compose-advance-style.js";export{composeClasses}from"./helpers/composeClasses.js";export{baseAssetURL,isLocalEnv}from"./helpers/convert.js";export{convertHTML}from"./helpers/covert-entities-html.js";export{composePositionLineHeight,composePostionIconList}from"./helpers/icon-list.js";export{isDefined}from"./helpers/is-defined.js";export{composeGridLayout,convertOldLayout,getLayoutClasses,gridToArrayRegex,optionLayoutStyle}from"./helpers/layout.js";export{makeAspectRatio,makeGlobalSizeHeightResponsive,makeGlobalSizeWidthResponsive,makeHeight,makeLineClamp,makeStyle,makeStyleKey,makeStyleResponsive,makeStyleResponsiveByScreen,makeStyleResponsiveState,makeStyleResponsiveWidth,makeStyleResponsiveWidthWithoutAuto,makeStyleState,makeWidth,removeNullUndefined}from"./helpers/make-style.js";export{convertTextAlignToJustify,getAlignmentClasses}from"./helpers/align.js";export{filterHoverVariables,filterTruthyStyles}from"./helpers/filter-styles.js";export{cloneDeep}from"./helpers/clone-deep.js";export{hasTranslatedLiquid}from"./helpers/liquid.js";export{checkInStock}from"./helpers/variant.js";export{checkHasChangeContent,createTranslateKey,extractOuterTagContent,getThemeSectionTranslateKey,getValueSettingFromSchema,replaceOuterTagContent}from"./helpers/createTranslateKey.js";export{getHashCode}from"./helpers/getHashCode.js";export{checkAvailableVariantInStock,getSelectedVariant,parseSelectedOption}from"./helpers/product.js";export{generateCollectionQueryKey,generateProductQueryKey,generateProductsQueryKey}from"./helpers/query.js";export{composeCornerCss,composeRadius,composeRadiusResponsive,getCornerCSSFromGlobal,getCustomRadius,getRadiusCSSFromGlobal,getRadiusStyleActiveState}from"./helpers/radius.js";export{RenderIf,composeMemo,dataStringify,props,removeUndefinedValuesFromObject,sanitizeLiquid,styles,template}from"./helpers/render.js";export{composeShadow,composeShadowCss,getResponsiveStyleShadow,getResponsiveStyleShadowWithoutState,getStyleShadow,getStyleShadowState,parseValueWithUnit}from"./helpers/shadow.js";export{composeSize,composeSizeCss,genSizeClass,getAspectRatioGlobalSize,getFlexGrowClassByShapeGlobalSize,getGlobalSizeGap,getHeightByShapeGlobalSize,getPaddingGlobalSize,getPaddingStyleByDevice,getResponsiveStylePadding,getValueByDevice,getWidthByShapeGlobalSize,getWidthHeightGlobalSize,makeGlobalSize,makeGlobalSizeIcon,makeStyleWithDefault}from"./helpers/size.js";export{composeFallbackTypographyStyle,composeFontFamilyTypographyV2,composeTextHoverColorCss,composeTypography,composeTypographyAttr,composeTypographyClassName,composeTypographyCss,composeTypographyStyle,composeTypographyV2,composeTypographyV2Css,genTypoClass}from"./helpers/typography.js";export{useArticlesQuery,useBlogsQuery}from"./hooks/articles/useArticlesQuery.js";export{useAddToCart}from"./hooks/cart/use-add-to-cart.js";export{useCartData}from"./hooks/cart/use-cart-data.js";export{useCartDiscountCodesUpdate}from"./hooks/cart/use-cart-discount-codes-update.js";export{useCartNoteUpdate}from"./hooks/cart/use-cart-note-update.js";export{useCreateCart}from"./hooks/cart/use-create-cart.js";export{useRemoveCartItem}from"./hooks/cart/use-remove-cart-item.js";export{useUpdateCartItem}from"./hooks/cart/use-update-cart-item.js";export{useCheckoutUrl,useConnectedShopify,useCurrency,useEditorMode,useIsSampleProduct,useIsStorefrontProduct,useLocale,useMatchMutate,useMobileOnly,useMoneyFormat,usePageType,usePluginEnable,useStoreFront,useSwatches,useTimezone}from"./hooks/shop.js";export{useCollectionQuery}from"./hooks/shop/use-collection-query.js";export{useCollectionsQuery}from"./hooks/shop/use-collections-query.js";export{useProductQuery}from"./hooks/shop/use-product-query.js";export{useProductOffersQuery}from"./hooks/shop/useProductOffersQuery.js";export{useFetchHandle}from"./hooks/useFetchHandle.js";export{useProductsQuery,useProductsQueryAll}from"./hooks/shop/use-products-query.js";export{useCurrentDevice}from"./hooks/use-current-device.js";export{useLazyVideo}from"./hooks/use-lazy-video.js";export{default as useCartId}from"./hooks/useCartId.js";export{default as useCartLine}from"./hooks/useCartLine.js";export{default as useCartUI}from"./hooks/useCartUI.js";export{useCollection}from"./hooks/useCollection.js";export{convertDecimalToNumber,formatMoney,shopifyPriceRounding,useFormatMoney}from"./hooks/useFormatMoney.js";export{useId}from"react";export{default as useInitialSwatchesOptions}from"./hooks/useInitialSwatchesOptions.js";export{default as useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect.js";export{default as useLoadScript}from"./hooks/useLoadScript.js";export{default as useMoney}from"./hooks/useMoney.js";export{usePrevious}from"./hooks/usePrevious.js";export{tGlobal as t,useI18n}from"./hooks/useI18n.js";export{useStickyStore}from"./hooks/useStickyStore.js";export{useCheckAvailableVariantInStock,useCurrentVariant,useCurrentVariantInStock,useFeaturedImageGlobal,useHasPreSelected,useIsSyncProduct,useProduct,useProductBundleDiscount,useProductOfferDiscount,useProductProperties,useProductShopifyEditLink,useQuantity,useSelectedOption,useUniqProductID,useVariant,useVariantOutStock,useVariants}from"./hooks/useProduct.js";export{useShopifyLink}from"./hooks/shop/useShopifyLink.js";export{useProductList,useProductListProducts,useProductListSettings,useProductListStyles,useSafeGetProductListSettings}from"./hooks/useProductList.js";export{default as useSuspenseFetch}from"./hooks/useSuspenseFetch.js";export{default as useSwatchesOptions}from"./hooks/useSwatchesOptions.js";export{useRenderMode}from"./hooks/useRenderMode.js";export{usePreviewSharePage}from"./hooks/usePreviewSharePage.js";export{RenderModeEnv}from"./types/builder.js";export{InteractionTargetEvent,InteractionTriggerEvent,SectionMode}from"./types/custom.js";import*as r from"./types/shop.js";import*as s from"./types/appAPI.js";export{OptionNormalStyle,OptionSpecialStyle}from"./types/global-style.js";export{AnimationDirectionType,AnimationEasingType,AnimationSetting,AnimationTriggerType,AnimationType,AnimationZoomDirectionType}from"./types/animations.js";export{calculateFirstProduct,getCollection}from"./helpers/queries/get-collection.js";export{fetchMedias,fetchVariants,getProduct}from"./helpers/queries/get-product.js";export{getProductBySlug}from"./helpers/queries/get-product-by-slug.js";export{getAppBlocks}from"./helpers/third-party/getAppBlocks.js";export{addAppBlockId}from"./helpers/third-party/addAppBlockId.js";export{useInteraction}from"./helpers/interaction/index.js";export{createStoreFrontFetcher,hasPublicStoreFrontData}from"./helpers/create-store-front-fetcher.js";export{BLACKLIST_TAGS}from"./constants/index.js";export{DEVICES,EMPTY_DEVICE_VALUE}from"./constants/device.js";export{e as fpixel,o as gtag,t as tiktokpixel,r as ShopType,s as AppAPIType};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -42956,6 +42956,7 @@ type ProductListContextProps = {
|
|
|
42956
42956
|
arrow?: ObjectDevices<boolean>;
|
|
42957
42957
|
controlOverContent?: ObjectDevices<boolean>;
|
|
42958
42958
|
speed?: number;
|
|
42959
|
+
sameHeight?: boolean;
|
|
42959
42960
|
};
|
|
42960
42961
|
styles?: {
|
|
42961
42962
|
horizontalGutter?: ObjectDevices<string>;
|
|
@@ -55297,6 +55298,7 @@ declare const useProductListSettings: () => {
|
|
|
55297
55298
|
arrow?: ObjectDevices<boolean>;
|
|
55298
55299
|
controlOverContent?: ObjectDevices<boolean>;
|
|
55299
55300
|
speed?: number;
|
|
55301
|
+
sameHeight?: boolean;
|
|
55300
55302
|
} | undefined;
|
|
55301
55303
|
declare const useProductListStyles: () => {
|
|
55302
55304
|
horizontalGutter?: ObjectDevices<string>;
|
|
@@ -55306,6 +55308,21 @@ declare const useProductListStyles: () => {
|
|
|
55306
55308
|
width?: ObjectDevices<string>;
|
|
55307
55309
|
height?: ObjectDevices<string>;
|
|
55308
55310
|
} | undefined;
|
|
55311
|
+
declare const useSafeGetProductListSettings: () => {
|
|
55312
|
+
settings: {
|
|
55313
|
+
loop?: ObjectDevices<boolean>;
|
|
55314
|
+
scrollMode?: ObjectDevices<"snap" | "free" | "free-snap">;
|
|
55315
|
+
slidesToShow?: ObjectDevices<number | "auto">;
|
|
55316
|
+
spacing?: ObjectDevices<number>;
|
|
55317
|
+
layout?: "grid" | "slider";
|
|
55318
|
+
dot?: ObjectDevices<boolean>;
|
|
55319
|
+
dotStyle?: ObjectDevices<"none" | "inside" | "outside">;
|
|
55320
|
+
arrow?: ObjectDevices<boolean>;
|
|
55321
|
+
controlOverContent?: ObjectDevices<boolean>;
|
|
55322
|
+
speed?: number;
|
|
55323
|
+
sameHeight?: boolean;
|
|
55324
|
+
} | null | undefined;
|
|
55325
|
+
};
|
|
55309
55326
|
|
|
55310
55327
|
declare const useSuspenseFetch: <T>(key: string | any[], promise: () => Promise<T>) => {
|
|
55311
55328
|
data: T;
|
|
@@ -55391,5 +55408,5 @@ declare const EMPTY_DEVICE_VALUE: undefined;
|
|
|
55391
55408
|
|
|
55392
55409
|
declare const BLACKLIST_TAGS: Set<string>;
|
|
55393
55410
|
|
|
55394
|
-
export { AddOn, AddonProvider, AnimationDirectionType, AnimationEasingType, AnimationSetting, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, appAPI as AppAPIType, ArticleListProvider, ArticleProvider, ArticlesDocument, BLACKLIST_TAGS, BlogsDocument, BuilderComponentProvider, BuilderPreviewProvider, BuilderProvider, CartLineProvider, CollectionDetailFilterDocument, CollectionDocument, CollectionProvider, CollectionsDocument, DEVICES, EMPTY_DEVICE_VALUE, GRADIENT_BGR_KEY, I18nProvider, InteractionTargetEvent, InteractionTriggerEvent, LibrarySaleFunnelDocument, LibraryTemplateDocument, ModalProvider, OptionNormalStyle, OptionSpecialStyle, PageProvider, PageViewUpDocument, PreviewThemePageDocument, ProductListProvider, ProductProvider, ProductVariantsWithSellingPlansDocument, ProductWithSellingPlansSelectFragment, ProductsWithSellingPlansDocument, PublishedShopMetasDocument, PublishedThemePagesDocument, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderModeEnv, RenderPreviewMemo as RenderPreview, SaleFunnelDiscountsDocument, SaleFunnelOfferDocument, SectionMode, SectionProvider, ShopLibraryPageDocument, ShopProvider, ShopShopifyDocument, shop as ShopType, StorePropertyDocument, ThemePageDocument, ThemePageMetaDocument, WrapRenderChildren, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkHasChangeContent, checkInStock, cloneDeep, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertDecimalToNumber, convertHTML, convertOldLayout, convertTextAlignToJustify, createStoreFrontFetcher, createTranslateKey, dataStringify, extractOuterTagContent, fetchMedias, fetchVariants, filterAttrInStyle, filterHoverVariables, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgByDevice, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getColor, getCombinedBackgroundImage, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getFlexGrowClassByShapeGlobalSize, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getGradientImageBgrStyleByDevice, getHashCode, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImage, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getThemeSectionTranslateKey, getValueByDevice, getValueSettingFromSchema, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, hasPublicStoreFrontData, hasTranslatedLiquid, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, replaceOuterTagContent, sanitizeLiquid, shopifyPriceRounding, splitStyle, styles, tGlobal as t, 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, useFetchHandle, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePreviewSharePage, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductOffersQuery, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useRenderMode, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
55395
|
-
export type { AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationFadeSettingType, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationZoomSettingType, ArticleListProviderProps, ArticleProviderProps, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProviderProps, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProviderProps, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, FontStyleType, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEventObject, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibrarySection, LibraryTemplate, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, Options$1 as Options, PaddingType, PageContext, PageProviderProps, PageSection, PageType, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProviderProps, ProductOffer, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductVariantsWithSellingPlansQueryResponse, ProductVariantsWithSellingPlansQueryVariables, ProductVariantsWithSellingPlansSelectFragment, ProductsQueryResponse, ProductsQueryVariables, ProductsWithSellingPlansDetailFragment, ProductsWithSellingPlansQueryResponse, ProductsWithSellingPlansQueryVariables, PublicStoreFrontData, PublishErrorSectionListEventDetail, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMode,
|
|
55411
|
+
export { AddOn, AddonProvider, AnimationDirectionType, AnimationEasingType, AnimationSetting, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, appAPI as AppAPIType, ArticleListProvider, ArticleProvider, ArticlesDocument, BLACKLIST_TAGS, BlogsDocument, BuilderComponentProvider, BuilderPreviewProvider, BuilderProvider, CartLineProvider, CollectionDetailFilterDocument, CollectionDocument, CollectionProvider, CollectionsDocument, DEVICES, EMPTY_DEVICE_VALUE, GRADIENT_BGR_KEY, I18nProvider, InteractionTargetEvent, InteractionTriggerEvent, LibrarySaleFunnelDocument, LibraryTemplateDocument, ModalProvider, OptionNormalStyle, OptionSpecialStyle, PageProvider, PageViewUpDocument, PreviewThemePageDocument, ProductListProvider, ProductProvider, ProductVariantsWithSellingPlansDocument, ProductWithSellingPlansSelectFragment, ProductsWithSellingPlansDocument, PublishedShopMetasDocument, PublishedThemePagesDocument, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderModeEnv, RenderPreviewMemo as RenderPreview, SaleFunnelDiscountsDocument, SaleFunnelOfferDocument, SectionMode, SectionProvider, ShopLibraryPageDocument, ShopProvider, ShopShopifyDocument, shop as ShopType, StorePropertyDocument, ThemePageDocument, ThemePageMetaDocument, WrapRenderChildren, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkHasChangeContent, checkInStock, cloneDeep, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertDecimalToNumber, convertHTML, convertOldLayout, convertTextAlignToJustify, createStoreFrontFetcher, createTranslateKey, dataStringify, extractOuterTagContent, fetchMedias, fetchVariants, filterAttrInStyle, filterHoverVariables, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgByDevice, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getColor, getCombinedBackgroundImage, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getFlexGrowClassByShapeGlobalSize, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getGradientImageBgrStyleByDevice, getHashCode, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImage, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getThemeSectionTranslateKey, getValueByDevice, getValueSettingFromSchema, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, hasPublicStoreFrontData, hasTranslatedLiquid, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, replaceOuterTagContent, sanitizeLiquid, shopifyPriceRounding, splitStyle, styles, tGlobal as t, 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, useFetchHandle, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePreviewSharePage, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductOffersQuery, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useRenderMode, useSafeGetProductListSettings, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
55412
|
+
export type { AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationFadeSettingType, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationZoomSettingType, ArticleListProviderProps, ArticleProviderProps, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProviderProps, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProviderProps, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, FontStyleType, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEventObject, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibrarySection, LibraryTemplate, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, Options$1 as Options, PaddingType, PageContext, PageProviderProps, PageSection, PageType, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProviderProps, ProductOffer, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductVariantsWithSellingPlansQueryResponse, ProductVariantsWithSellingPlansQueryVariables, ProductVariantsWithSellingPlansSelectFragment, ProductsQueryResponse, ProductsQueryVariables, ProductsWithSellingPlansDetailFragment, ProductsWithSellingPlansQueryResponse, ProductsWithSellingPlansQueryVariables, PublicStoreFrontData, PublishErrorSectionListEventDetail, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMode, ResponsiveKey, ResponsiveStateProp, ResultOldElementWithSectionId, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOffer, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionCategory, SectionData, SectionEntity, SectionProviderProps, Setting, SettingByAnimationType, SettingByAnimationValues, SettingUIControl, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, Shop, ShopLibraryPage, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopLibrarySection, ShopProviderProps, ShopShopifyQueryResponse, ShopShopifyQueryVariables, SizeProps, SizeSetting$1 as SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, TemplateCategory, TemplatePackage, Theme, ThemePage, ThemePageMetaQueryResponse, ThemePageMetaQueryVariables, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSection, ThemeSectionStatus$1 as ThemeSectionStatus, ThemeStyle, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Family, TypographyV2FontFamilyType, TypographyV2Props, UltimateSalesBoostWidgetType, UpdatableItemAttr, ValidateType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, YotpoReviewsWidgetType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "19.0.0-dev.
|
|
3
|
+
"version": "19.0.0-dev.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@gem-sdk/adapter-shopify": "19.0.0-dev.0",
|
|
32
|
-
"@gem-sdk/styles": "19.0.0-dev.
|
|
32
|
+
"@gem-sdk/styles": "19.0.0-dev.1",
|
|
33
33
|
"@types/classnames": "^2.3.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|