@anker-in/campaign-ui 0.2.10-beta.2 → 0.2.10-beta.21
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/index.d.mts +494 -0
- package/dist/index.d.ts +494 -0
- package/dist/index.js +31215 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +31199 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +33 -30
- package/src/components/credits/context/hooks/useActivities.ts +2 -2
- package/src/components/credits/context/hooks/useAddressValidate.ts +2 -2
- package/src/components/credits/context/hooks/useAlpcFetch.ts +8 -8
- package/src/components/credits/context/hooks/useCountries.ts +2 -2
- package/src/components/credits/context/hooks/useMyRewards.ts +2 -2
- package/src/components/credits/context/hooks/useRedeemAndBuy.ts +21 -24
- package/src/components/credits/context/hooks/useRedeemCoupon.ts +2 -2
- package/src/components/credits/context/hooks/useRedeemProduct.ts +2 -2
- package/src/components/credits/context/hooks/useRedeemableList.ts +2 -2
- package/src/components/credits/context/hooks/useSendEmailValidation.ts +2 -2
- package/src/components/credits/context/hooks/useSubscribed.ts +2 -2
- package/src/components/credits/context/hooks/useSubscriptions.ts +2 -2
- package/src/components/credits/creditsBanner/index.tsx +1 -1
- package/src/components/credits/creditsBenefits/benefitItem.tsx +1 -1
- package/src/components/credits/creditsBenefits/index.tsx +6 -8
- package/src/components/credits/creditsCash/RedeemableItem.tsx +13 -18
- package/src/components/credits/creditsCash/index.tsx +2 -2
- package/src/components/credits/creditsCash/type.ts +1 -1
- package/src/components/credits/creditsInfoCard/index.tsx +4 -3
- package/src/components/credits/creditsRedeemList/AddressForm/index.tsx +2 -2
- package/src/components/credits/creditsRedeemList/RedeemCouponModal.tsx +2 -2
- package/src/components/credits/creditsRedeemList/RedeemProductModal/Address.tsx +2 -2
- package/src/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.tsx +2 -2
- package/src/components/credits/creditsRedeemList/RedeemProductModal/index.tsx +2 -2
- package/src/components/credits/creditsRedeemList/index.tsx +1 -1
- package/src/components/credits/creditsWaysToGetCredits/useActions.ts +4 -3
- package/src/components/credits/modal/MyRewardsModal.tsx +77 -65
- package/src/components/credits/modal/activitiesModal.tsx +54 -44
- package/src/components/credits/modal/loadingDots.tsx +8 -6
- package/src/components/credits/type.ts +1 -1
- package/src/helpers/track.ts +18 -0
- package/src/index.ts +2 -21
- package/tailwind.config.ts +10 -0
- package/dist/cjs/components/chat/action.d.ts +0 -25
- package/dist/cjs/components/chat/action.js +0 -2
- package/dist/cjs/components/chat/action.js.map +0 -7
- package/dist/cjs/components/chat/button.d.ts +0 -3
- package/dist/cjs/components/chat/button.js +0 -2
- package/dist/cjs/components/chat/button.js.map +0 -7
- package/dist/cjs/components/chat/chatContext.d.ts +0 -101
- package/dist/cjs/components/chat/chatContext.js +0 -2
- package/dist/cjs/components/chat/chatContext.js.map +0 -7
- package/dist/cjs/components/chat/index.d.ts +0 -71
- package/dist/cjs/components/chat/index.js +0 -2
- package/dist/cjs/components/chat/index.js.map +0 -7
- package/dist/cjs/components/chat/markdown.d.ts +0 -5
- package/dist/cjs/components/chat/markdown.js +0 -2
- package/dist/cjs/components/chat/markdown.js.map +0 -7
- package/dist/cjs/components/chat/messages.d.ts +0 -3
- package/dist/cjs/components/chat/messages.js +0 -2
- package/dist/cjs/components/chat/messages.js.map +0 -7
- package/dist/cjs/components/chat/props.d.ts +0 -43
- package/dist/cjs/components/chat/props.js +0 -2
- package/dist/cjs/components/chat/props.js.map +0 -7
- package/dist/cjs/components/chat/response.d.ts +0 -4
- package/dist/cjs/components/chat/response.js +0 -2
- package/dist/cjs/components/chat/response.js.map +0 -7
- package/dist/cjs/components/chat/suggestions.d.ts +0 -3
- package/dist/cjs/components/chat/suggestions.js +0 -2
- package/dist/cjs/components/chat/suggestions.js.map +0 -7
- package/dist/cjs/components/chat/utils.d.ts +0 -3
- package/dist/cjs/components/chat/utils.js +0 -2
- package/dist/cjs/components/chat/utils.js.map +0 -7
- package/dist/cjs/components/credits/context/const.d.ts +0 -81
- package/dist/cjs/components/credits/context/const.js +0 -2
- package/dist/cjs/components/credits/context/const.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useActivities.d.ts +0 -12
- package/dist/cjs/components/credits/context/hooks/useActivities.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useActivities.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useAddressValidate.d.ts +0 -34
- package/dist/cjs/components/credits/context/hooks/useAddressValidate.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useAddressValidate.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useAlpcFetch.d.ts +0 -23
- package/dist/cjs/components/credits/context/hooks/useAlpcFetch.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useAlpcFetch.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useClickOutside.d.ts +0 -3
- package/dist/cjs/components/credits/context/hooks/useClickOutside.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useClickOutside.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useCopy.d.ts +0 -5
- package/dist/cjs/components/credits/context/hooks/useCopy.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useCopy.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useCountries.d.ts +0 -8
- package/dist/cjs/components/credits/context/hooks/useCountries.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useCountries.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useFirstPurchaseFinished.d.ts +0 -1
- package/dist/cjs/components/credits/context/hooks/useFirstPurchaseFinished.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useFirstPurchaseFinished.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useMyRewards.d.ts +0 -14
- package/dist/cjs/components/credits/context/hooks/useMyRewards.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useMyRewards.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useReceiptUploaded.d.ts +0 -2
- package/dist/cjs/components/credits/context/hooks/useReceiptUploaded.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useReceiptUploaded.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useRedeemAndBuy.d.ts +0 -14
- package/dist/cjs/components/credits/context/hooks/useRedeemAndBuy.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useRedeemAndBuy.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useRedeemCoupon.d.ts +0 -17
- package/dist/cjs/components/credits/context/hooks/useRedeemCoupon.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useRedeemCoupon.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useRedeemProduct.d.ts +0 -16
- package/dist/cjs/components/credits/context/hooks/useRedeemProduct.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useRedeemProduct.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useRedeemableList.d.ts +0 -7
- package/dist/cjs/components/credits/context/hooks/useRedeemableList.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useRedeemableList.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useSendEmailValidation.d.ts +0 -1
- package/dist/cjs/components/credits/context/hooks/useSendEmailValidation.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useSendEmailValidation.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useSubscribed.d.ts +0 -1
- package/dist/cjs/components/credits/context/hooks/useSubscribed.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useSubscribed.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useSubscriptions.d.ts +0 -5
- package/dist/cjs/components/credits/context/hooks/useSubscriptions.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useSubscriptions.js.map +0 -7
- package/dist/cjs/components/credits/context/hooks/useUploadReceipt.d.ts +0 -14
- package/dist/cjs/components/credits/context/hooks/useUploadReceipt.js +0 -2
- package/dist/cjs/components/credits/context/hooks/useUploadReceipt.js.map +0 -7
- package/dist/cjs/components/credits/context/provider.d.ts +0 -49
- package/dist/cjs/components/credits/context/provider.js +0 -2
- package/dist/cjs/components/credits/context/provider.js.map +0 -7
- package/dist/cjs/components/credits/context/response.d.ts +0 -63
- package/dist/cjs/components/credits/context/response.js +0 -2
- package/dist/cjs/components/credits/context/response.js.map +0 -7
- package/dist/cjs/components/credits/context/utils.d.ts +0 -25
- package/dist/cjs/components/credits/context/utils.js +0 -2
- package/dist/cjs/components/credits/context/utils.js.map +0 -7
- package/dist/cjs/components/credits/creditsBanner/index.d.ts +0 -23
- package/dist/cjs/components/credits/creditsBanner/index.js +0 -2
- package/dist/cjs/components/credits/creditsBanner/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsBenefits/benefitItem.d.ts +0 -19
- package/dist/cjs/components/credits/creditsBenefits/benefitItem.js +0 -2
- package/dist/cjs/components/credits/creditsBenefits/benefitItem.js.map +0 -7
- package/dist/cjs/components/credits/creditsBenefits/iconInfo.d.ts +0 -2
- package/dist/cjs/components/credits/creditsBenefits/iconInfo.js +0 -2
- package/dist/cjs/components/credits/creditsBenefits/iconInfo.js.map +0 -7
- package/dist/cjs/components/credits/creditsBenefits/index.d.ts +0 -12
- package/dist/cjs/components/credits/creditsBenefits/index.js +0 -4
- package/dist/cjs/components/credits/creditsBenefits/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsCash/RedeemableItem.d.ts +0 -15
- package/dist/cjs/components/credits/creditsCash/RedeemableItem.js +0 -2
- package/dist/cjs/components/credits/creditsCash/RedeemableItem.js.map +0 -7
- package/dist/cjs/components/credits/creditsCash/index.d.ts +0 -13
- package/dist/cjs/components/credits/creditsCash/index.js +0 -2
- package/dist/cjs/components/credits/creditsCash/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsCash/type.d.ts +0 -47
- package/dist/cjs/components/credits/creditsCash/type.js +0 -2
- package/dist/cjs/components/credits/creditsCash/type.js.map +0 -7
- package/dist/cjs/components/credits/creditsFaq/faqItem/FaqItem.d.ts +0 -13
- package/dist/cjs/components/credits/creditsFaq/faqItem/FaqItem.js +0 -2
- package/dist/cjs/components/credits/creditsFaq/faqItem/FaqItem.js.map +0 -7
- package/dist/cjs/components/credits/creditsFaq/index.d.ts +0 -16
- package/dist/cjs/components/credits/creditsFaq/index.js +0 -2
- package/dist/cjs/components/credits/creditsFaq/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsInfoCard/index.d.ts +0 -20
- package/dist/cjs/components/credits/creditsInfoCard/index.js +0 -2
- package/dist/cjs/components/credits/creditsInfoCard/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/CountrySelect.d.ts +0 -14
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/CountrySelect.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/CountrySelect.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/FormItem.d.ts +0 -6
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/FormItem.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/FormItem.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/Input.d.ts +0 -13
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/Input.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/Input.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/StateSelect.d.ts +0 -15
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/StateSelect.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/StateSelect.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/index.d.ts +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/index.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/type.d.ts +0 -26
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/type.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/AddressForm/type.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemCouponModal.d.ts +0 -9
- package/dist/cjs/components/credits/creditsRedeemList/RedeemCouponModal.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemCouponModal.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Address.d.ts +0 -20
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Address.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Address.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Error.d.ts +0 -8
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Error.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Error.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Init.d.ts +0 -11
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Init.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Init.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.d.ts +0 -8
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Success.d.ts +0 -13
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Success.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/Success.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/index.d.ts +0 -11
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/index.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemProductModal/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/RedeemableItem.d.ts +0 -9
- package/dist/cjs/components/credits/creditsRedeemList/RedeemableItem.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/RedeemableItem.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/index.d.ts +0 -13
- package/dist/cjs/components/credits/creditsRedeemList/index.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsRedeemList/type.d.ts +0 -77
- package/dist/cjs/components/credits/creditsRedeemList/type.js +0 -2
- package/dist/cjs/components/credits/creditsRedeemList/type.js.map +0 -7
- package/dist/cjs/components/credits/creditsWaysToGetCredits/index.d.ts +0 -2
- package/dist/cjs/components/credits/creditsWaysToGetCredits/index.js +0 -2
- package/dist/cjs/components/credits/creditsWaysToGetCredits/index.js.map +0 -7
- package/dist/cjs/components/credits/creditsWaysToGetCredits/type.d.ts +0 -60
- package/dist/cjs/components/credits/creditsWaysToGetCredits/type.js +0 -2
- package/dist/cjs/components/credits/creditsWaysToGetCredits/type.js.map +0 -7
- package/dist/cjs/components/credits/creditsWaysToGetCredits/useActions.d.ts +0 -96
- package/dist/cjs/components/credits/creditsWaysToGetCredits/useActions.js +0 -2
- package/dist/cjs/components/credits/creditsWaysToGetCredits/useActions.js.map +0 -7
- package/dist/cjs/components/credits/index.d.ts +0 -10
- package/dist/cjs/components/credits/index.js +0 -2
- package/dist/cjs/components/credits/index.js.map +0 -7
- package/dist/cjs/components/credits/modal/MyRewardsModal.d.ts +0 -29
- package/dist/cjs/components/credits/modal/MyRewardsModal.js +0 -2
- package/dist/cjs/components/credits/modal/MyRewardsModal.js.map +0 -7
- package/dist/cjs/components/credits/modal/activitiesModal.d.ts +0 -29
- package/dist/cjs/components/credits/modal/activitiesModal.js +0 -2
- package/dist/cjs/components/credits/modal/activitiesModal.js.map +0 -7
- package/dist/cjs/components/credits/modal/creditsUploadReceiptModal.d.ts +0 -24
- package/dist/cjs/components/credits/modal/creditsUploadReceiptModal.js +0 -2
- package/dist/cjs/components/credits/modal/creditsUploadReceiptModal.js.map +0 -7
- package/dist/cjs/components/credits/modal/loadingDots.d.ts +0 -5
- package/dist/cjs/components/credits/modal/loadingDots.js +0 -2
- package/dist/cjs/components/credits/modal/loadingDots.js.map +0 -7
- package/dist/cjs/components/credits/modal/modalContainer.d.ts +0 -15
- package/dist/cjs/components/credits/modal/modalContainer.js +0 -2
- package/dist/cjs/components/credits/modal/modalContainer.js.map +0 -7
- package/dist/cjs/components/credits/modal/rulesModal.d.ts +0 -7
- package/dist/cjs/components/credits/modal/rulesModal.js +0 -2
- package/dist/cjs/components/credits/modal/rulesModal.js.map +0 -7
- package/dist/cjs/components/credits/modal/tip.d.ts +0 -5
- package/dist/cjs/components/credits/modal/tip.js +0 -2
- package/dist/cjs/components/credits/modal/tip.js.map +0 -7
- package/dist/cjs/components/credits/type.d.ts +0 -55
- package/dist/cjs/components/credits/type.js +0 -2
- package/dist/cjs/components/credits/type.js.map +0 -7
- package/dist/cjs/components/index.d.ts +0 -3
- package/dist/cjs/components/index.js +0 -2
- package/dist/cjs/components/index.js.map +0 -7
- package/dist/cjs/debug-env.d.ts +0 -7
- package/dist/cjs/helpers/fetchResponse.d.ts +0 -14
- package/dist/cjs/helpers/fetchResponse.js +0 -2
- package/dist/cjs/helpers/fetchResponse.js.map +0 -7
- package/dist/cjs/helpers/fetcher.d.ts +0 -2
- package/dist/cjs/helpers/fetcher.js +0 -2
- package/dist/cjs/helpers/fetcher.js.map +0 -7
- package/dist/cjs/helpers/index.d.ts +0 -2
- package/dist/cjs/helpers/index.js +0 -2
- package/dist/cjs/helpers/index.js.map +0 -7
- package/dist/cjs/helpers/track.d.ts +0 -15
- package/dist/cjs/helpers/track.js +0 -2
- package/dist/cjs/helpers/track.js.map +0 -7
- package/dist/cjs/helpers/utils.d.ts +0 -3
- package/dist/cjs/helpers/utils.js +0 -2
- package/dist/cjs/helpers/utils.js.map +0 -7
- package/dist/cjs/index.css +0 -2
- package/dist/cjs/index.css.map +0 -7
- package/dist/cjs/index.d.ts +0 -7
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/index.js.map +0 -7
- package/dist/cjs/shopify/context/ShopifyProvider.d.ts +0 -10
- package/dist/cjs/shopify/fetchers/create-cart.d.ts +0 -13
- package/dist/cjs/shopify/fetchers/get-products-by-handles.d.ts +0 -7
- package/dist/cjs/shopify/fetchers/index.d.ts +0 -2
- package/dist/cjs/shopify/fragments/article.d.ts +0 -2
- package/dist/cjs/shopify/fragments/blog.d.ts +0 -1
- package/dist/cjs/shopify/fragments/cart.d.ts +0 -1
- package/dist/cjs/shopify/fragments/collection.d.ts +0 -1
- package/dist/cjs/shopify/fragments/image.d.ts +0 -1
- package/dist/cjs/shopify/fragments/index.d.ts +0 -11
- package/dist/cjs/shopify/fragments/metafields.d.ts +0 -2
- package/dist/cjs/shopify/fragments/page-info.d.ts +0 -1
- package/dist/cjs/shopify/fragments/page.d.ts +0 -1
- package/dist/cjs/shopify/fragments/product.d.ts +0 -1
- package/dist/cjs/shopify/fragments/seo.d.ts +0 -1
- package/dist/cjs/shopify/fragments/variant.d.ts +0 -1
- package/dist/cjs/shopify/gql/fragment-masking.d.ts +0 -15
- package/dist/cjs/shopify/gql/gql.d.ts +0 -87
- package/dist/cjs/shopify/gql/graphql.d.ts +0 -7669
- package/dist/cjs/shopify/gql/index.d.ts +0 -3
- package/dist/cjs/shopify/hooks/index.d.ts +0 -2
- package/dist/cjs/shopify/hooks/useCreateCart.d.ts +0 -2
- package/dist/cjs/shopify/hooks/useProductsByHandles.d.ts +0 -4
- package/dist/cjs/shopify/mutations/create-cart.d.ts +0 -1
- package/dist/cjs/shopify/queries/get-product-by-handles.d.ts +0 -1
- package/dist/cjs/shopify/queries/index.d.ts +0 -1
- package/dist/cjs/shopify/src/index.d.ts +0 -5
- package/dist/cjs/shopify/tsup.config.d.ts +0 -2
- package/dist/cjs/shopify/types/article.d.ts +0 -48
- package/dist/cjs/shopify/types/cart.d.ts +0 -173
- package/dist/cjs/shopify/types/checkout.d.ts +0 -42
- package/dist/cjs/shopify/types/collection.d.ts +0 -122
- package/dist/cjs/shopify/types/common.d.ts +0 -42
- package/dist/cjs/shopify/types/config.d.ts +0 -12
- package/dist/cjs/shopify/types/customer.d.ts +0 -30
- package/dist/cjs/shopify/types/fetcher.d.ts +0 -38
- package/dist/cjs/shopify/types/index.d.ts +0 -10
- package/dist/cjs/shopify/types/page.d.ts +0 -33
- package/dist/cjs/shopify/types/product.d.ts +0 -174
- package/dist/cjs/shopify/types/search.d.ts +0 -54
- package/dist/cjs/shopify/types/site.d.ts +0 -33
- package/dist/cjs/shopify/types/type-helper.d.ts +0 -5
- package/dist/cjs/shopify/utils/colors.d.ts +0 -3
- package/dist/cjs/shopify/utils/const.d.ts +0 -76
- package/dist/cjs/shopify/utils/cookie.d.ts +0 -15
- package/dist/cjs/shopify/utils/errors.d.ts +0 -38
- package/dist/cjs/shopify/utils/fetch-graphql-api.d.ts +0 -19
- package/dist/cjs/shopify/utils/handle-fetch-response.d.ts +0 -5
- package/dist/cjs/shopify/utils/helper.d.ts +0 -28
- package/dist/cjs/shopify/utils/normalize/cart.d.ts +0 -7
- package/dist/cjs/shopify/utils/normalize/customer.d.ts +0 -3
- package/dist/cjs/shopify/utils/normalize/index.d.ts +0 -2
- package/dist/cjs/shopify/utils/normalize/metafield.d.ts +0 -5
- package/dist/cjs/shopify/utils/normalize/product.d.ts +0 -16
- package/dist/cjs/shopify/utils/store.d.ts +0 -2
- package/dist/cjs/shopify/utils/type-helper.d.ts +0 -5
- package/dist/cjs/stories/chat.stories.d.ts +0 -7
- package/dist/esm/components/chat/action.d.ts +0 -25
- package/dist/esm/components/chat/action.js +0 -2
- package/dist/esm/components/chat/action.js.map +0 -7
- package/dist/esm/components/chat/button.d.ts +0 -3
- package/dist/esm/components/chat/button.js +0 -2
- package/dist/esm/components/chat/button.js.map +0 -7
- package/dist/esm/components/chat/chatContext.d.ts +0 -101
- package/dist/esm/components/chat/chatContext.js +0 -2
- package/dist/esm/components/chat/chatContext.js.map +0 -7
- package/dist/esm/components/chat/index.d.ts +0 -71
- package/dist/esm/components/chat/index.js +0 -2
- package/dist/esm/components/chat/index.js.map +0 -7
- package/dist/esm/components/chat/markdown.d.ts +0 -5
- package/dist/esm/components/chat/markdown.js +0 -2
- package/dist/esm/components/chat/markdown.js.map +0 -7
- package/dist/esm/components/chat/messages.d.ts +0 -3
- package/dist/esm/components/chat/messages.js +0 -2
- package/dist/esm/components/chat/messages.js.map +0 -7
- package/dist/esm/components/chat/props.d.ts +0 -43
- package/dist/esm/components/chat/props.js +0 -1
- package/dist/esm/components/chat/props.js.map +0 -7
- package/dist/esm/components/chat/response.d.ts +0 -4
- package/dist/esm/components/chat/response.js +0 -2
- package/dist/esm/components/chat/response.js.map +0 -7
- package/dist/esm/components/chat/suggestions.d.ts +0 -3
- package/dist/esm/components/chat/suggestions.js +0 -2
- package/dist/esm/components/chat/suggestions.js.map +0 -7
- package/dist/esm/components/chat/utils.d.ts +0 -3
- package/dist/esm/components/chat/utils.js +0 -2
- package/dist/esm/components/chat/utils.js.map +0 -7
- package/dist/esm/components/credits/context/const.d.ts +0 -81
- package/dist/esm/components/credits/context/const.js +0 -2
- package/dist/esm/components/credits/context/const.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useActivities.d.ts +0 -12
- package/dist/esm/components/credits/context/hooks/useActivities.js +0 -2
- package/dist/esm/components/credits/context/hooks/useActivities.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useAddressValidate.d.ts +0 -34
- package/dist/esm/components/credits/context/hooks/useAddressValidate.js +0 -2
- package/dist/esm/components/credits/context/hooks/useAddressValidate.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useAlpcFetch.d.ts +0 -23
- package/dist/esm/components/credits/context/hooks/useAlpcFetch.js +0 -2
- package/dist/esm/components/credits/context/hooks/useAlpcFetch.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useClickOutside.d.ts +0 -3
- package/dist/esm/components/credits/context/hooks/useClickOutside.js +0 -2
- package/dist/esm/components/credits/context/hooks/useClickOutside.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useCopy.d.ts +0 -5
- package/dist/esm/components/credits/context/hooks/useCopy.js +0 -2
- package/dist/esm/components/credits/context/hooks/useCopy.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useCountries.d.ts +0 -8
- package/dist/esm/components/credits/context/hooks/useCountries.js +0 -2
- package/dist/esm/components/credits/context/hooks/useCountries.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useFirstPurchaseFinished.d.ts +0 -1
- package/dist/esm/components/credits/context/hooks/useFirstPurchaseFinished.js +0 -2
- package/dist/esm/components/credits/context/hooks/useFirstPurchaseFinished.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useMyRewards.d.ts +0 -14
- package/dist/esm/components/credits/context/hooks/useMyRewards.js +0 -2
- package/dist/esm/components/credits/context/hooks/useMyRewards.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useReceiptUploaded.d.ts +0 -2
- package/dist/esm/components/credits/context/hooks/useReceiptUploaded.js +0 -2
- package/dist/esm/components/credits/context/hooks/useReceiptUploaded.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useRedeemAndBuy.d.ts +0 -14
- package/dist/esm/components/credits/context/hooks/useRedeemAndBuy.js +0 -2
- package/dist/esm/components/credits/context/hooks/useRedeemAndBuy.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useRedeemCoupon.d.ts +0 -17
- package/dist/esm/components/credits/context/hooks/useRedeemCoupon.js +0 -2
- package/dist/esm/components/credits/context/hooks/useRedeemCoupon.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useRedeemProduct.d.ts +0 -16
- package/dist/esm/components/credits/context/hooks/useRedeemProduct.js +0 -2
- package/dist/esm/components/credits/context/hooks/useRedeemProduct.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useRedeemableList.d.ts +0 -7
- package/dist/esm/components/credits/context/hooks/useRedeemableList.js +0 -2
- package/dist/esm/components/credits/context/hooks/useRedeemableList.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useSendEmailValidation.d.ts +0 -1
- package/dist/esm/components/credits/context/hooks/useSendEmailValidation.js +0 -2
- package/dist/esm/components/credits/context/hooks/useSendEmailValidation.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useSubscribed.d.ts +0 -1
- package/dist/esm/components/credits/context/hooks/useSubscribed.js +0 -2
- package/dist/esm/components/credits/context/hooks/useSubscribed.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useSubscriptions.d.ts +0 -5
- package/dist/esm/components/credits/context/hooks/useSubscriptions.js +0 -2
- package/dist/esm/components/credits/context/hooks/useSubscriptions.js.map +0 -7
- package/dist/esm/components/credits/context/hooks/useUploadReceipt.d.ts +0 -14
- package/dist/esm/components/credits/context/hooks/useUploadReceipt.js +0 -2
- package/dist/esm/components/credits/context/hooks/useUploadReceipt.js.map +0 -7
- package/dist/esm/components/credits/context/provider.d.ts +0 -49
- package/dist/esm/components/credits/context/provider.js +0 -2
- package/dist/esm/components/credits/context/provider.js.map +0 -7
- package/dist/esm/components/credits/context/response.d.ts +0 -63
- package/dist/esm/components/credits/context/response.js +0 -1
- package/dist/esm/components/credits/context/response.js.map +0 -7
- package/dist/esm/components/credits/context/utils.d.ts +0 -25
- package/dist/esm/components/credits/context/utils.js +0 -2
- package/dist/esm/components/credits/context/utils.js.map +0 -7
- package/dist/esm/components/credits/creditsBanner/index.d.ts +0 -23
- package/dist/esm/components/credits/creditsBanner/index.js +0 -2
- package/dist/esm/components/credits/creditsBanner/index.js.map +0 -7
- package/dist/esm/components/credits/creditsBenefits/benefitItem.d.ts +0 -19
- package/dist/esm/components/credits/creditsBenefits/benefitItem.js +0 -2
- package/dist/esm/components/credits/creditsBenefits/benefitItem.js.map +0 -7
- package/dist/esm/components/credits/creditsBenefits/iconInfo.d.ts +0 -2
- package/dist/esm/components/credits/creditsBenefits/iconInfo.js +0 -2
- package/dist/esm/components/credits/creditsBenefits/iconInfo.js.map +0 -7
- package/dist/esm/components/credits/creditsBenefits/index.d.ts +0 -12
- package/dist/esm/components/credits/creditsBenefits/index.js +0 -4
- package/dist/esm/components/credits/creditsBenefits/index.js.map +0 -7
- package/dist/esm/components/credits/creditsCash/RedeemableItem.d.ts +0 -15
- package/dist/esm/components/credits/creditsCash/RedeemableItem.js +0 -2
- package/dist/esm/components/credits/creditsCash/RedeemableItem.js.map +0 -7
- package/dist/esm/components/credits/creditsCash/index.d.ts +0 -13
- package/dist/esm/components/credits/creditsCash/index.js +0 -2
- package/dist/esm/components/credits/creditsCash/index.js.map +0 -7
- package/dist/esm/components/credits/creditsCash/type.d.ts +0 -47
- package/dist/esm/components/credits/creditsCash/type.js +0 -1
- package/dist/esm/components/credits/creditsCash/type.js.map +0 -7
- package/dist/esm/components/credits/creditsFaq/faqItem/FaqItem.d.ts +0 -13
- package/dist/esm/components/credits/creditsFaq/faqItem/FaqItem.js +0 -2
- package/dist/esm/components/credits/creditsFaq/faqItem/FaqItem.js.map +0 -7
- package/dist/esm/components/credits/creditsFaq/index.d.ts +0 -16
- package/dist/esm/components/credits/creditsFaq/index.js +0 -2
- package/dist/esm/components/credits/creditsFaq/index.js.map +0 -7
- package/dist/esm/components/credits/creditsInfoCard/index.d.ts +0 -20
- package/dist/esm/components/credits/creditsInfoCard/index.js +0 -2
- package/dist/esm/components/credits/creditsInfoCard/index.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/CountrySelect.d.ts +0 -14
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/CountrySelect.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/CountrySelect.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/FormItem.d.ts +0 -6
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/FormItem.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/FormItem.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/Input.d.ts +0 -13
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/Input.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/Input.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/StateSelect.d.ts +0 -15
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/StateSelect.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/StateSelect.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/index.d.ts +0 -2
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/index.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/index.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/type.d.ts +0 -26
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/type.js +0 -1
- package/dist/esm/components/credits/creditsRedeemList/AddressForm/type.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemCouponModal.d.ts +0 -9
- package/dist/esm/components/credits/creditsRedeemList/RedeemCouponModal.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemCouponModal.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Address.d.ts +0 -20
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Address.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Address.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Error.d.ts +0 -8
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Error.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Error.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Init.d.ts +0 -11
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Init.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Init.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.d.ts +0 -8
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/ProductInfo.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Success.d.ts +0 -13
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Success.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/Success.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/index.d.ts +0 -11
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/index.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemProductModal/index.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/RedeemableItem.d.ts +0 -9
- package/dist/esm/components/credits/creditsRedeemList/RedeemableItem.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/RedeemableItem.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/index.d.ts +0 -13
- package/dist/esm/components/credits/creditsRedeemList/index.js +0 -2
- package/dist/esm/components/credits/creditsRedeemList/index.js.map +0 -7
- package/dist/esm/components/credits/creditsRedeemList/type.d.ts +0 -77
- package/dist/esm/components/credits/creditsRedeemList/type.js +0 -1
- package/dist/esm/components/credits/creditsRedeemList/type.js.map +0 -7
- package/dist/esm/components/credits/creditsWaysToGetCredits/index.d.ts +0 -2
- package/dist/esm/components/credits/creditsWaysToGetCredits/index.js +0 -2
- package/dist/esm/components/credits/creditsWaysToGetCredits/index.js.map +0 -7
- package/dist/esm/components/credits/creditsWaysToGetCredits/type.d.ts +0 -60
- package/dist/esm/components/credits/creditsWaysToGetCredits/type.js +0 -2
- package/dist/esm/components/credits/creditsWaysToGetCredits/type.js.map +0 -7
- package/dist/esm/components/credits/creditsWaysToGetCredits/useActions.d.ts +0 -96
- package/dist/esm/components/credits/creditsWaysToGetCredits/useActions.js +0 -2
- package/dist/esm/components/credits/creditsWaysToGetCredits/useActions.js.map +0 -7
- package/dist/esm/components/credits/index.d.ts +0 -10
- package/dist/esm/components/credits/index.js +0 -2
- package/dist/esm/components/credits/index.js.map +0 -7
- package/dist/esm/components/credits/modal/MyRewardsModal.d.ts +0 -29
- package/dist/esm/components/credits/modal/MyRewardsModal.js +0 -2
- package/dist/esm/components/credits/modal/MyRewardsModal.js.map +0 -7
- package/dist/esm/components/credits/modal/activitiesModal.d.ts +0 -29
- package/dist/esm/components/credits/modal/activitiesModal.js +0 -2
- package/dist/esm/components/credits/modal/activitiesModal.js.map +0 -7
- package/dist/esm/components/credits/modal/creditsUploadReceiptModal.d.ts +0 -24
- package/dist/esm/components/credits/modal/creditsUploadReceiptModal.js +0 -2
- package/dist/esm/components/credits/modal/creditsUploadReceiptModal.js.map +0 -7
- package/dist/esm/components/credits/modal/loadingDots.d.ts +0 -5
- package/dist/esm/components/credits/modal/loadingDots.js +0 -2
- package/dist/esm/components/credits/modal/loadingDots.js.map +0 -7
- package/dist/esm/components/credits/modal/modalContainer.d.ts +0 -15
- package/dist/esm/components/credits/modal/modalContainer.js +0 -2
- package/dist/esm/components/credits/modal/modalContainer.js.map +0 -7
- package/dist/esm/components/credits/modal/rulesModal.d.ts +0 -7
- package/dist/esm/components/credits/modal/rulesModal.js +0 -2
- package/dist/esm/components/credits/modal/rulesModal.js.map +0 -7
- package/dist/esm/components/credits/modal/tip.d.ts +0 -5
- package/dist/esm/components/credits/modal/tip.js +0 -2
- package/dist/esm/components/credits/modal/tip.js.map +0 -7
- package/dist/esm/components/credits/type.d.ts +0 -55
- package/dist/esm/components/credits/type.js +0 -1
- package/dist/esm/components/credits/type.js.map +0 -7
- package/dist/esm/components/index.d.ts +0 -3
- package/dist/esm/components/index.js +0 -2
- package/dist/esm/components/index.js.map +0 -7
- package/dist/esm/debug-env.d.ts +0 -7
- package/dist/esm/helpers/fetchResponse.d.ts +0 -14
- package/dist/esm/helpers/fetchResponse.js +0 -2
- package/dist/esm/helpers/fetchResponse.js.map +0 -7
- package/dist/esm/helpers/fetcher.d.ts +0 -2
- package/dist/esm/helpers/fetcher.js +0 -2
- package/dist/esm/helpers/fetcher.js.map +0 -7
- package/dist/esm/helpers/index.d.ts +0 -2
- package/dist/esm/helpers/index.js +0 -2
- package/dist/esm/helpers/index.js.map +0 -7
- package/dist/esm/helpers/track.d.ts +0 -15
- package/dist/esm/helpers/track.js +0 -2
- package/dist/esm/helpers/track.js.map +0 -7
- package/dist/esm/helpers/utils.d.ts +0 -3
- package/dist/esm/helpers/utils.js +0 -2
- package/dist/esm/helpers/utils.js.map +0 -7
- package/dist/esm/index.css +0 -2
- package/dist/esm/index.css.map +0 -7
- package/dist/esm/index.d.ts +0 -7
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -7
- package/dist/esm/package.json +0 -3
- package/dist/esm/shopify/context/ShopifyProvider.d.ts +0 -10
- package/dist/esm/shopify/fetchers/create-cart.d.ts +0 -13
- package/dist/esm/shopify/fetchers/get-products-by-handles.d.ts +0 -7
- package/dist/esm/shopify/fetchers/index.d.ts +0 -2
- package/dist/esm/shopify/fragments/article.d.ts +0 -2
- package/dist/esm/shopify/fragments/blog.d.ts +0 -1
- package/dist/esm/shopify/fragments/cart.d.ts +0 -1
- package/dist/esm/shopify/fragments/collection.d.ts +0 -1
- package/dist/esm/shopify/fragments/image.d.ts +0 -1
- package/dist/esm/shopify/fragments/index.d.ts +0 -11
- package/dist/esm/shopify/fragments/metafields.d.ts +0 -2
- package/dist/esm/shopify/fragments/page-info.d.ts +0 -1
- package/dist/esm/shopify/fragments/page.d.ts +0 -1
- package/dist/esm/shopify/fragments/product.d.ts +0 -1
- package/dist/esm/shopify/fragments/seo.d.ts +0 -1
- package/dist/esm/shopify/fragments/variant.d.ts +0 -1
- package/dist/esm/shopify/gql/fragment-masking.d.ts +0 -15
- package/dist/esm/shopify/gql/gql.d.ts +0 -87
- package/dist/esm/shopify/gql/graphql.d.ts +0 -7669
- package/dist/esm/shopify/gql/index.d.ts +0 -3
- package/dist/esm/shopify/hooks/index.d.ts +0 -2
- package/dist/esm/shopify/hooks/useCreateCart.d.ts +0 -2
- package/dist/esm/shopify/hooks/useProductsByHandles.d.ts +0 -4
- package/dist/esm/shopify/mutations/create-cart.d.ts +0 -1
- package/dist/esm/shopify/queries/get-product-by-handles.d.ts +0 -1
- package/dist/esm/shopify/queries/index.d.ts +0 -1
- package/dist/esm/shopify/src/index.d.ts +0 -5
- package/dist/esm/shopify/tsup.config.d.ts +0 -2
- package/dist/esm/shopify/types/article.d.ts +0 -48
- package/dist/esm/shopify/types/cart.d.ts +0 -173
- package/dist/esm/shopify/types/checkout.d.ts +0 -42
- package/dist/esm/shopify/types/collection.d.ts +0 -122
- package/dist/esm/shopify/types/common.d.ts +0 -42
- package/dist/esm/shopify/types/config.d.ts +0 -12
- package/dist/esm/shopify/types/customer.d.ts +0 -30
- package/dist/esm/shopify/types/fetcher.d.ts +0 -38
- package/dist/esm/shopify/types/index.d.ts +0 -10
- package/dist/esm/shopify/types/page.d.ts +0 -33
- package/dist/esm/shopify/types/product.d.ts +0 -174
- package/dist/esm/shopify/types/search.d.ts +0 -54
- package/dist/esm/shopify/types/site.d.ts +0 -33
- package/dist/esm/shopify/types/type-helper.d.ts +0 -5
- package/dist/esm/shopify/utils/colors.d.ts +0 -3
- package/dist/esm/shopify/utils/const.d.ts +0 -76
- package/dist/esm/shopify/utils/cookie.d.ts +0 -15
- package/dist/esm/shopify/utils/errors.d.ts +0 -38
- package/dist/esm/shopify/utils/fetch-graphql-api.d.ts +0 -19
- package/dist/esm/shopify/utils/handle-fetch-response.d.ts +0 -5
- package/dist/esm/shopify/utils/helper.d.ts +0 -28
- package/dist/esm/shopify/utils/normalize/cart.d.ts +0 -7
- package/dist/esm/shopify/utils/normalize/customer.d.ts +0 -3
- package/dist/esm/shopify/utils/normalize/index.d.ts +0 -2
- package/dist/esm/shopify/utils/normalize/metafield.d.ts +0 -5
- package/dist/esm/shopify/utils/normalize/product.d.ts +0 -16
- package/dist/esm/shopify/utils/store.d.ts +0 -2
- package/dist/esm/shopify/utils/type-helper.d.ts +0 -5
- package/dist/esm/stories/chat.stories.d.ts +0 -7
- package/src/shopify/MIGRATION_GUIDE.md +0 -156
- package/src/shopify/context/ShopifyProvider.tsx +0 -34
- package/src/shopify/dist/cart-BNkVu3fh.d.ts +0 -220
- package/src/shopify/dist/cart-BcrGTPdx.d.cts +0 -220
- package/src/shopify/dist/fetchers.cjs +0 -7945
- package/src/shopify/dist/fetchers.cjs.map +0 -1
- package/src/shopify/dist/fetchers.d.cts +0 -3
- package/src/shopify/dist/fetchers.d.ts +0 -3
- package/src/shopify/dist/fetchers.js +0 -7942
- package/src/shopify/dist/fetchers.js.map +0 -1
- package/src/shopify/dist/fragments.cjs +0 -731
- package/src/shopify/dist/fragments.cjs.map +0 -1
- package/src/shopify/dist/fragments.d.cts +0 -25
- package/src/shopify/dist/fragments.d.ts +0 -25
- package/src/shopify/dist/fragments.js +0 -705
- package/src/shopify/dist/fragments.js.map +0 -1
- package/src/shopify/dist/graphql-D4M28V-x.d.cts +0 -3558
- package/src/shopify/dist/graphql-D4M28V-x.d.ts +0 -3558
- package/src/shopify/dist/hooks.cjs +0 -9431
- package/src/shopify/dist/hooks.cjs.map +0 -1
- package/src/shopify/dist/hooks.d.cts +0 -14
- package/src/shopify/dist/hooks.d.ts +0 -14
- package/src/shopify/dist/hooks.js +0 -9427
- package/src/shopify/dist/hooks.js.map +0 -1
- package/src/shopify/dist/index-BTtE4HZM.d.ts +0 -42
- package/src/shopify/dist/index-BjNIecYX.d.cts +0 -42
- package/src/shopify/dist/index.cjs +0 -9642
- package/src/shopify/dist/index.cjs.map +0 -1
- package/src/shopify/dist/index.d.cts +0 -11
- package/src/shopify/dist/index.d.ts +0 -11
- package/src/shopify/dist/index.js +0 -9619
- package/src/shopify/dist/index.js.map +0 -1
- package/src/shopify/dist/product-Bqi3sqb9.d.cts +0 -262
- package/src/shopify/dist/product-DNk6jYAP.d.ts +0 -262
- package/src/shopify/dist/queries.cjs +0 -615
- package/src/shopify/dist/queries.cjs.map +0 -1
- package/src/shopify/dist/queries.d.cts +0 -3
- package/src/shopify/dist/queries.d.ts +0 -3
- package/src/shopify/dist/queries.js +0 -601
- package/src/shopify/dist/queries.js.map +0 -1
- package/src/shopify/dist/types.cjs +0 -19
- package/src/shopify/dist/types.cjs.map +0 -1
- package/src/shopify/dist/types.d.cts +0 -282
- package/src/shopify/dist/types.d.ts +0 -282
- package/src/shopify/dist/types.js +0 -1
- package/src/shopify/dist/types.js.map +0 -1
- package/src/shopify/dist/utils.cjs +0 -334
- package/src/shopify/dist/utils.cjs.map +0 -1
- package/src/shopify/dist/utils.d.cts +0 -12
- package/src/shopify/dist/utils.d.ts +0 -12
- package/src/shopify/dist/utils.js +0 -319
- package/src/shopify/dist/utils.js.map +0 -1
- package/src/shopify/fetchers/create-cart.ts +0 -40
- package/src/shopify/fetchers/get-products-by-handles.ts +0 -41
- package/src/shopify/fetchers/index.ts +0 -3
- package/src/shopify/fragments/article.ts +0 -51
- package/src/shopify/fragments/blog.ts +0 -10
- package/src/shopify/fragments/cart.ts +0 -190
- package/src/shopify/fragments/collection.ts +0 -15
- package/src/shopify/fragments/image.ts +0 -8
- package/src/shopify/fragments/index.ts +0 -11
- package/src/shopify/fragments/metafields.ts +0 -17
- package/src/shopify/fragments/page-info.ts +0 -8
- package/src/shopify/fragments/page.ts +0 -12
- package/src/shopify/fragments/product.ts +0 -71
- package/src/shopify/fragments/seo.ts +0 -6
- package/src/shopify/fragments/variant.ts +0 -29
- package/src/shopify/gql/fragment-masking.ts +0 -85
- package/src/shopify/gql/gql.ts +0 -110
- package/src/shopify/gql/graphql.ts +0 -11780
- package/src/shopify/gql/index.ts +0 -4
- package/src/shopify/hooks/index.ts +0 -2
- package/src/shopify/hooks/useCreateCart.ts +0 -24
- package/src/shopify/hooks/useProductsByHandles.ts +0 -25
- package/src/shopify/mutations/create-cart.ts +0 -16
- package/src/shopify/package.json +0 -84
- package/src/shopify/queries/get-product-by-handles.ts +0 -32
- package/src/shopify/queries/index.ts +0 -2
- package/src/shopify/src/index.ts +0 -5
- package/src/shopify/tsconfig.json +0 -25
- package/src/shopify/tsup.config.ts +0 -21
- package/src/shopify/types/article.ts +0 -46
- package/src/shopify/types/cart.ts +0 -202
- package/src/shopify/types/checkout.ts +0 -44
- package/src/shopify/types/collection.ts +0 -104
- package/src/shopify/types/common.ts +0 -53
- package/src/shopify/types/config.ts +0 -14
- package/src/shopify/types/customer.ts +0 -31
- package/src/shopify/types/fetcher.ts +0 -61
- package/src/shopify/types/index.ts +0 -10
- package/src/shopify/types/page.ts +0 -45
- package/src/shopify/types/product.ts +0 -176
- package/src/shopify/types/search.ts +0 -62
- package/src/shopify/types/site.ts +0 -38
- package/src/shopify/types/type-helper.ts +0 -5
- package/src/shopify/utils/colors.ts +0 -206
- package/src/shopify/utils/const.ts +0 -115
- package/src/shopify/utils/cookie.ts +0 -39
- package/src/shopify/utils/errors.ts +0 -65
- package/src/shopify/utils/fetch-graphql-api.ts +0 -67
- package/src/shopify/utils/handle-fetch-response.ts +0 -60
- package/src/shopify/utils/helper.ts +0 -89
- package/src/shopify/utils/normalize/cart.ts +0 -106
- package/src/shopify/utils/normalize/customer.ts +0 -18
- package/src/shopify/utils/normalize/index.ts +0 -2
- package/src/shopify/utils/normalize/metafield.ts +0 -69
- package/src/shopify/utils/normalize/product.ts +0 -193
- package/src/shopify/utils/store.ts +0 -5
- package/src/shopify/utils/type-helper.ts +0 -7
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
|
-
var __export = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
|
-
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
for (let key of __getOwnPropNames(from))
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
-
|
|
33
|
-
// ../../node_modules/.pnpm/js-cookie@2.2.1/node_modules/js-cookie/src/js.cookie.js
|
|
34
|
-
var require_js_cookie = __commonJS({
|
|
35
|
-
"../../node_modules/.pnpm/js-cookie@2.2.1/node_modules/js-cookie/src/js.cookie.js"(exports2, module2) {
|
|
36
|
-
"use strict";
|
|
37
|
-
(function(factory) {
|
|
38
|
-
var registeredInModuleLoader;
|
|
39
|
-
if (typeof define === "function" && define.amd) {
|
|
40
|
-
define(factory);
|
|
41
|
-
registeredInModuleLoader = true;
|
|
42
|
-
}
|
|
43
|
-
if (typeof exports2 === "object") {
|
|
44
|
-
module2.exports = factory();
|
|
45
|
-
registeredInModuleLoader = true;
|
|
46
|
-
}
|
|
47
|
-
if (!registeredInModuleLoader) {
|
|
48
|
-
var OldCookies = window.Cookies;
|
|
49
|
-
var api = window.Cookies = factory();
|
|
50
|
-
api.noConflict = function() {
|
|
51
|
-
window.Cookies = OldCookies;
|
|
52
|
-
return api;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
})(function() {
|
|
56
|
-
function extend() {
|
|
57
|
-
var i = 0;
|
|
58
|
-
var result = {};
|
|
59
|
-
for (; i < arguments.length; i++) {
|
|
60
|
-
var attributes = arguments[i];
|
|
61
|
-
for (var key in attributes) {
|
|
62
|
-
result[key] = attributes[key];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
function decode(s) {
|
|
68
|
-
return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
69
|
-
}
|
|
70
|
-
function init(converter) {
|
|
71
|
-
function api() {
|
|
72
|
-
}
|
|
73
|
-
function set(key, value, attributes) {
|
|
74
|
-
if (typeof document === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
attributes = extend({
|
|
78
|
-
path: "/"
|
|
79
|
-
}, api.defaults, attributes);
|
|
80
|
-
if (typeof attributes.expires === "number") {
|
|
81
|
-
attributes.expires = new Date(/* @__PURE__ */ new Date() * 1 + attributes.expires * 864e5);
|
|
82
|
-
}
|
|
83
|
-
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : "";
|
|
84
|
-
try {
|
|
85
|
-
var result = JSON.stringify(value);
|
|
86
|
-
if (/^[\{\[]/.test(result)) {
|
|
87
|
-
value = result;
|
|
88
|
-
}
|
|
89
|
-
} catch (e) {
|
|
90
|
-
}
|
|
91
|
-
value = converter.write ? converter.write(value, key) : encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
|
92
|
-
key = encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
|
|
93
|
-
var stringifiedAttributes = "";
|
|
94
|
-
for (var attributeName in attributes) {
|
|
95
|
-
if (!attributes[attributeName]) {
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
stringifiedAttributes += "; " + attributeName;
|
|
99
|
-
if (attributes[attributeName] === true) {
|
|
100
|
-
continue;
|
|
101
|
-
}
|
|
102
|
-
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
|
103
|
-
}
|
|
104
|
-
return document.cookie = key + "=" + value + stringifiedAttributes;
|
|
105
|
-
}
|
|
106
|
-
function get(key, json) {
|
|
107
|
-
if (typeof document === "undefined") {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
var jar = {};
|
|
111
|
-
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
|
112
|
-
var i = 0;
|
|
113
|
-
for (; i < cookies.length; i++) {
|
|
114
|
-
var parts = cookies[i].split("=");
|
|
115
|
-
var cookie = parts.slice(1).join("=");
|
|
116
|
-
if (!json && cookie.charAt(0) === '"') {
|
|
117
|
-
cookie = cookie.slice(1, -1);
|
|
118
|
-
}
|
|
119
|
-
try {
|
|
120
|
-
var name = decode(parts[0]);
|
|
121
|
-
cookie = (converter.read || converter)(cookie, name) || decode(cookie);
|
|
122
|
-
if (json) {
|
|
123
|
-
try {
|
|
124
|
-
cookie = JSON.parse(cookie);
|
|
125
|
-
} catch (e) {
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
jar[name] = cookie;
|
|
129
|
-
if (key === name) {
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
} catch (e) {
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return key ? jar[key] : jar;
|
|
136
|
-
}
|
|
137
|
-
api.set = set;
|
|
138
|
-
api.get = function(key) {
|
|
139
|
-
return get(
|
|
140
|
-
key,
|
|
141
|
-
false
|
|
142
|
-
/* read as raw */
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
api.getJSON = function(key) {
|
|
146
|
-
return get(
|
|
147
|
-
key,
|
|
148
|
-
true
|
|
149
|
-
/* read as json */
|
|
150
|
-
);
|
|
151
|
-
};
|
|
152
|
-
api.remove = function(key, attributes) {
|
|
153
|
-
set(key, "", extend(attributes, {
|
|
154
|
-
expires: -1
|
|
155
|
-
}));
|
|
156
|
-
};
|
|
157
|
-
api.defaults = {};
|
|
158
|
-
api.withConverter = init;
|
|
159
|
-
return api;
|
|
160
|
-
}
|
|
161
|
-
return init(function() {
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
// utils/index.ts
|
|
168
|
-
var utils_exports = {};
|
|
169
|
-
__export(utils_exports, {
|
|
170
|
-
createCartCookieOptions: () => createCartCookieOptions,
|
|
171
|
-
removeCartCookies: () => removeCartCookies,
|
|
172
|
-
removeCheckoutCookies: () => removeCheckoutCookies,
|
|
173
|
-
setCartCookies: () => setCartCookies
|
|
174
|
-
});
|
|
175
|
-
module.exports = __toCommonJS(utils_exports);
|
|
176
|
-
var import_js_cookie2 = __toESM(require_js_cookie(), 1);
|
|
177
|
-
|
|
178
|
-
// utils/const.ts
|
|
179
|
-
var locales = Object.keys(I18N_STORE_DOMAIN || {});
|
|
180
|
-
var ENV = process.env.NEXT_PUBLIC_ENV;
|
|
181
|
-
var REVALIDATE_TIME = 60 * 5;
|
|
182
|
-
var APPLICATION_NAME = process.env.NEXT_PUBLIC_I18N_ACCOUNT_APPLICATION_NAME && JSON.parse(process.env.NEXT_PUBLIC_I18N_ACCOUNT_APPLICATION_NAME);
|
|
183
|
-
var HOST = process.env.NEXT_PUBLIC_ENV === "production" ? `www.${process.env.NEXT_PUBLIC_BRAND}.com` : `beta.${process.env.NEXT_PUBLIC_BRAND}.com`;
|
|
184
|
-
var BRAND = `${process.env.NEXT_PUBLIC_BRAND}`;
|
|
185
|
-
var GOOGLE_CLIENT_ID = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID;
|
|
186
|
-
var FACEBOOK_APP_ID = process.env.NEXT_PUBLIC_FACEBOOK_APP_ID;
|
|
187
|
-
var metafieldNamespacePrefix = process.env.NEXT_PUBLIC_METAFIELD_NAMESPACE_PREFIX || "";
|
|
188
|
-
|
|
189
|
-
// utils/helper.ts
|
|
190
|
-
var import_js_cookie = __toESM(require_js_cookie(), 1);
|
|
191
|
-
function atobID(id) {
|
|
192
|
-
var _a, _b;
|
|
193
|
-
if (id && typeof id === "string" && id.includes("/")) {
|
|
194
|
-
return (_b = (_a = id.split("/").pop()) == null ? void 0 : _a.split("?")) == null ? void 0 : _b.shift();
|
|
195
|
-
} else {
|
|
196
|
-
return id;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
var getThemeLocale = (locale) => {
|
|
200
|
-
if (locale === "eu-de") return "de";
|
|
201
|
-
if (locale === "eu-en") return "eu";
|
|
202
|
-
if (locale === "au") return "au";
|
|
203
|
-
return locale;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
// utils/store.ts
|
|
207
|
-
var BRAND2 = process.env.NEXT_PUBLIC_BRAND || "soundcore";
|
|
208
|
-
var ORIGIN_URL = process.env.NEXT_PUBLIC_ENV === "production" ? `https://www.${BRAND2}.com` : `https://beta.${BRAND2}.com`;
|
|
209
|
-
var PASSPORT_URL = process.env.NEXT_PUBLIC_ENV === "production" ? `https://passport.${BRAND2}.com` : `https://beta.passport.${BRAND2}.com`;
|
|
210
|
-
var I18N_STOREFRONT_TOKEN = process.env.NEXT_PUBLIC_I18N_SHOPIFY_STOREFRONT_TOKEN && JSON.parse(process.env.NEXT_PUBLIC_I18N_SHOPIFY_STOREFRONT_TOKEN);
|
|
211
|
-
var I18N_STORE_DOMAIN = process.env.NEXT_PUBLIC_I18N_SHOPIFY_STORE_DOMAIN && JSON.parse(process.env.NEXT_PUBLIC_I18N_SHOPIFY_STORE_DOMAIN);
|
|
212
|
-
var I18N_THEME_DOMAIN = I18N_STORE_DOMAIN && function() {
|
|
213
|
-
const result = {};
|
|
214
|
-
Object.entries(I18N_STORE_DOMAIN).forEach(([key, value]) => {
|
|
215
|
-
result[key] = process.env.NEXT_PUBLIC_ENV === "production" ? `${getThemeLocale(key)}.${BRAND2}.com` : value;
|
|
216
|
-
});
|
|
217
|
-
return result;
|
|
218
|
-
}();
|
|
219
|
-
var storeDomain = I18N_STORE_DOMAIN;
|
|
220
|
-
var I18N_API_URL = function() {
|
|
221
|
-
const result = {};
|
|
222
|
-
Object.keys(storeDomain).forEach((locale) => {
|
|
223
|
-
result[locale] = `https://${storeDomain[locale]}/api/2025-07/graphql.json`;
|
|
224
|
-
});
|
|
225
|
-
return result;
|
|
226
|
-
}();
|
|
227
|
-
var locales2 = Object.keys(I18N_STORE_DOMAIN || {});
|
|
228
|
-
var I18N_APP_NAME = function() {
|
|
229
|
-
const result = {};
|
|
230
|
-
Object.entries(I18N_STORE_DOMAIN).forEach(([locale, storeDomain2]) => {
|
|
231
|
-
result[locale] = storeDomain2.replace(".myshopify.com", "");
|
|
232
|
-
});
|
|
233
|
-
return result;
|
|
234
|
-
}();
|
|
235
|
-
var metafieldNamespacePrefix2 = process.env.NEXT_PUBLIC_METAFIELD_NAMESPACE_PREFIX || "";
|
|
236
|
-
|
|
237
|
-
// utils/cookie.ts
|
|
238
|
-
var SHOPIFY_COOKIE_EXPIRE = 30;
|
|
239
|
-
var SHOPIFY_CART_COOKIE_EXPIRE = 14;
|
|
240
|
-
var I18N_SHOPIFY_CART_COOKIE = function() {
|
|
241
|
-
const result = {};
|
|
242
|
-
locales.forEach((locale) => {
|
|
243
|
-
result[locale] = `shopifyCart_${I18N_STORE_DOMAIN[locale]}`;
|
|
244
|
-
});
|
|
245
|
-
return result;
|
|
246
|
-
}();
|
|
247
|
-
var I18N_SHOPIFY_CART_ID_COOKIE = function() {
|
|
248
|
-
const result = {};
|
|
249
|
-
locales.forEach((locale) => {
|
|
250
|
-
result[locale] = `shopifyCheckoutId_${I18N_STORE_DOMAIN[locale]}`;
|
|
251
|
-
});
|
|
252
|
-
return result;
|
|
253
|
-
}();
|
|
254
|
-
var I18N_SHOPIFY_CHECKOUT_URL_COOKIE = function() {
|
|
255
|
-
const result = {};
|
|
256
|
-
locales.forEach((locale) => {
|
|
257
|
-
result[locale] = `shopifyCheckoutUrl_${I18N_STORE_DOMAIN[locale]}`;
|
|
258
|
-
});
|
|
259
|
-
return result;
|
|
260
|
-
}();
|
|
261
|
-
var I18N_SHOPIFY_CUSTOMER_TOKEN_COOKIE = function() {
|
|
262
|
-
const result = {};
|
|
263
|
-
locales.forEach((locale) => {
|
|
264
|
-
result[locale] = `shopifyCustomerToken_${I18N_STORE_DOMAIN[locale]}`;
|
|
265
|
-
});
|
|
266
|
-
return result;
|
|
267
|
-
}();
|
|
268
|
-
var I18N_SHOPIFY_RESENT_CART_ID_COOKIE = function() {
|
|
269
|
-
const result = {};
|
|
270
|
-
locales.forEach((locale) => {
|
|
271
|
-
result[locale] = `shopifyRecentCartId_${I18N_STORE_DOMAIN[locale]}`;
|
|
272
|
-
});
|
|
273
|
-
return result;
|
|
274
|
-
}();
|
|
275
|
-
|
|
276
|
-
// utils/index.ts
|
|
277
|
-
var createCartCookieOptions = () => {
|
|
278
|
-
const hostUrl = window.location.host.split(".");
|
|
279
|
-
return {
|
|
280
|
-
domain: hostUrl.reverse().slice(0, 2).reverse().join("."),
|
|
281
|
-
// 一二级域名
|
|
282
|
-
expires: SHOPIFY_CART_COOKIE_EXPIRE
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
var setCartCookies = (locale, cart) => {
|
|
286
|
-
const shopifyCartCookie = I18N_SHOPIFY_CART_COOKIE[locale];
|
|
287
|
-
import_js_cookie2.default.set(
|
|
288
|
-
shopifyCartCookie,
|
|
289
|
-
JSON.stringify({
|
|
290
|
-
from: "storefront" /* Storefront */,
|
|
291
|
-
items: cart.lineItems.map((item) => ({
|
|
292
|
-
id: atobID(item.variantId),
|
|
293
|
-
quantity: item.quantity
|
|
294
|
-
}))
|
|
295
|
-
}),
|
|
296
|
-
createCartCookieOptions()
|
|
297
|
-
);
|
|
298
|
-
};
|
|
299
|
-
var removeCartCookies = (locale) => {
|
|
300
|
-
const shopifyCartCookie = I18N_SHOPIFY_CART_COOKIE[locale];
|
|
301
|
-
import_js_cookie2.default.remove(shopifyCartCookie, createCartCookieOptions());
|
|
302
|
-
};
|
|
303
|
-
var removeCheckoutCookies = (locale) => {
|
|
304
|
-
var _a;
|
|
305
|
-
const options = {
|
|
306
|
-
Domain: (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.hostname,
|
|
307
|
-
SameSite: "Strict",
|
|
308
|
-
Secure: true,
|
|
309
|
-
expires: SHOPIFY_COOKIE_EXPIRE
|
|
310
|
-
};
|
|
311
|
-
const checkoutUrlCookie = I18N_SHOPIFY_CHECKOUT_URL_COOKIE[locale];
|
|
312
|
-
const checkoutIdCookie = I18N_SHOPIFY_CART_ID_COOKIE[locale];
|
|
313
|
-
import_js_cookie2.default.remove(checkoutIdCookie, options);
|
|
314
|
-
import_js_cookie2.default.remove(checkoutUrlCookie, options);
|
|
315
|
-
};
|
|
316
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
317
|
-
0 && (module.exports = {
|
|
318
|
-
createCartCookieOptions,
|
|
319
|
-
removeCartCookies,
|
|
320
|
-
removeCheckoutCookies,
|
|
321
|
-
setCartCookies
|
|
322
|
-
});
|
|
323
|
-
/*! Bundled license information:
|
|
324
|
-
|
|
325
|
-
js-cookie/src/js.cookie.js:
|
|
326
|
-
(*!
|
|
327
|
-
* JavaScript Cookie v2.2.1
|
|
328
|
-
* https://github.com/js-cookie/js-cookie
|
|
329
|
-
*
|
|
330
|
-
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
331
|
-
* Released under the MIT license
|
|
332
|
-
*)
|
|
333
|
-
*/
|
|
334
|
-
//# sourceMappingURL=utils.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/js-cookie@2.2.1/node_modules/js-cookie/src/js.cookie.js","../utils/index.ts","../utils/const.ts","../utils/helper.ts","../utils/store.ts","../utils/cookie.ts"],"sourcesContent":["/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n","import Cookies from 'js-cookie'\nimport {\n I18N_SHOPIFY_CART_COOKIE,\n I18N_SHOPIFY_CART_ID_COOKIE,\n I18N_SHOPIFY_CHECKOUT_URL_COOKIE,\n SHOPIFY_CART_COOKIE_EXPIRE,\n SHOPIFY_COOKIE_EXPIRE,\n} from './cookie'\nimport { Cart } from '../types/cart'\nimport { atobID } from './helper'\n\nimport { CartDataSource } from './const'\n\nexport const createCartCookieOptions = () => {\n const hostUrl = window.location.host.split('.')\n return {\n domain: hostUrl.reverse().slice(0, 2).reverse().join('.'), // 一二级域名\n expires: SHOPIFY_CART_COOKIE_EXPIRE,\n }\n}\n\nexport const setCartCookies = (locale: string, cart: Cart) => {\n const shopifyCartCookie = I18N_SHOPIFY_CART_COOKIE[locale]\n\n Cookies.set(\n shopifyCartCookie,\n JSON.stringify({\n from: CartDataSource.Storefront,\n items: cart.lineItems.map(item => ({\n id: atobID(item.variantId),\n quantity: item.quantity,\n })),\n }),\n createCartCookieOptions()\n )\n}\n\nexport const removeCartCookies = (locale: string) => {\n const shopifyCartCookie = I18N_SHOPIFY_CART_COOKIE[locale]\n Cookies.remove(shopifyCartCookie, createCartCookieOptions())\n}\n\nexport const removeCheckoutCookies = (locale: string) => {\n const options = {\n Domain: window?.location?.hostname,\n SameSite: 'Strict',\n Secure: true,\n expires: SHOPIFY_COOKIE_EXPIRE,\n }\n\n const checkoutUrlCookie = I18N_SHOPIFY_CHECKOUT_URL_COOKIE[locale]\n const checkoutIdCookie = I18N_SHOPIFY_CART_ID_COOKIE[locale]\n Cookies.remove(checkoutIdCookie, options)\n Cookies.remove(checkoutUrlCookie, options)\n}\n","import { I18N_STORE_DOMAIN } from './store'\n\n// 购物车数据来源\nexport enum CartDataSource {\n Storefront = 'storefront',\n Theme = 'theme',\n}\n\nexport const locales = Object.keys(I18N_STORE_DOMAIN || {})\n\nexport const ENV = process.env.NEXT_PUBLIC_ENV\n\nexport const REVALIDATE_TIME = 60 * 5\n\nexport const APPLICATION_NAME =\n process.env.NEXT_PUBLIC_I18N_ACCOUNT_APPLICATION_NAME &&\n JSON.parse(process.env.NEXT_PUBLIC_I18N_ACCOUNT_APPLICATION_NAME)\n\nexport const SOLD_OUT_PRICE = 9999999.99\n\nexport enum TemplateType {\n Page = 'page',\n Product = 'product',\n Collection = 'collection',\n Blog = 'blog',\n Article = 'article',\n}\n\nexport enum DiscountType {\n fixedAmount = 'fixed_amount',\n percentage = 'percentage',\n}\n\nexport const HOST =\n process.env.NEXT_PUBLIC_ENV === 'production'\n ? `www.${process.env.NEXT_PUBLIC_BRAND}.com`\n : `beta.${process.env.NEXT_PUBLIC_BRAND}.com`\n\nexport const BRAND = `${process.env.NEXT_PUBLIC_BRAND}`\n\nexport const GOOGLE_CLIENT_ID = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID\nexport const FACEBOOK_APP_ID = process.env.NEXT_PUBLIC_FACEBOOK_APP_ID\n\nexport const COLOR_LABEL = [\n 'color',\n 'colour',\n 'couleur',\n 'cor',\n 'colore',\n 'farbe',\n '색',\n '色',\n 'カラー',\n 'färg',\n 'farve',\n]\n\nexport enum CouponChannel {\n LIGHTNING_DEAL = 'LIGHTNING_DEAL',\n DEAL = 'LIGHTNING_DEAL',\n COUPON = 'COUPON',\n PED = 'PED',\n WS24 = 'WS24',\n WSTD = 'WSTD',\n WSCH = 'WSCH',\n}\n\nexport const PRICE_SYMBOL = {\n us: '$',\n uk: '£',\n ca: '$',\n eu: '€',\n pl: 'zł',\n fr: '€',\n de: '€',\n vn: '₫',\n cl: '$',\n sg: '$',\n ae: 'AED',\n es: '€',\n}\n\nexport const CURRENCY_CODE = {\n us: 'USD',\n uk: 'GBP',\n ca: 'CAD',\n eu: 'EUR',\n pl: 'PL',\n fr: 'EUR',\n de: 'EUR',\n vn: 'VND',\n cl: 'CLP',\n es: 'EUR',\n}\n\nexport const COUNTRY_CODE = {\n pl: 'PL',\n} as Record<string, string>\n\nexport const LANGUAGE_CODE = {\n pl: 'PL',\n} as Record<string, string>\n\nexport const metafieldNamespacePrefix = process.env.NEXT_PUBLIC_METAFIELD_NAMESPACE_PREFIX || ''\n\nexport const CUSTOMER_ATTRIBUTE_KEY = '_discounts_function_env'\nexport const CUSTOMER_SCRIPT_GIFT_KEY = '_giveaway_gradient_gifts'\n\nexport const CODE_AMOUNT_KEY = '_sku_code_money'\nexport const SCRIPT_CODE_AMOUNT_KEY = '_code_money'\n\n// 主产品公开 code\nexport const MAIN_PRODUCT_CODE = ['WS24', 'WSTD', 'WS7D', 'WSCP', 'WSPE', 'WSPD']\n","import { HasMetafieldsIdentifier } from '../gql'\nimport { HasMetafieldQueryRoot } from '../types/fetcher'\nimport { PartialRecord } from '../utils/type-helper'\nimport { metafieldNamespacePrefix } from './const'\nimport Cookies from 'js-cookie'\nimport { CouponChannel } from '../utils/const'\nimport { ProductVariant } from '../types/product'\n\n// 判断对象是否为空\nexport function isObjEmpty(obj?: Record<string, any>) {\n if (!obj) return true\n else {\n return Object.keys(obj).length === 0\n }\n}\n\nexport function atobID(id: string) {\n if (id && typeof id === 'string' && id.includes('/')) {\n return id.split('/').pop()?.split('?')?.shift()\n } else {\n return id\n }\n}\n\nexport function btoaID(\n id: string,\n type: 'ProductVariant' | 'Product' = 'ProductVariant'\n) {\n return `gid://shopify/${type}/${id}`\n}\n\n// 皮肤站三级域名\nexport const getThemeLocale = (locale: string) => {\n if (locale === 'eu-de') return 'de'\n if (locale === 'eu-en') return 'eu'\n if (locale === 'au') return 'au'\n return locale\n}\n\n/**\n * 生成 metafieldIdentifiers 查询参数\n */\nexport function constructMetafieldIdentifiersQueryParams<\n T extends HasMetafieldQueryRoot\n>(\n metafieldIdentifiers: PartialRecord<T, HasMetafieldsIdentifier[]> = {}\n): PartialRecord<`${T}MetafieldIdentifiers`, HasMetafieldsIdentifier[]> {\n const identifiers = Object.entries(metafieldIdentifiers).reduce(\n (queryInput, [key, value]) => {\n const metafieldIdentifiers = value as HasMetafieldsIdentifier[]\n ;(queryInput as any)[`${key}MetafieldIdentifiers`] = metafieldIdentifiers\n .filter((item) => !item.namespace.startsWith(metafieldNamespacePrefix))\n .map((item) => ({\n namespace: `${metafieldNamespacePrefix}combo`,\n key: item.namespace,\n }))\n .concat(metafieldIdentifiers)\n return queryInput\n },\n {} as PartialRecord<`${T}MetafieldIdentifiers`, HasMetafieldsIdentifier[]>\n )\n return identifiers\n}\n\nexport const referralAttributes = () => {\n const inviteCode = Cookies.get('invite_code')\n const playModeId = Cookies.get('playModeId')\n const popup = Cookies.get('_popup')\n if (inviteCode && playModeId) {\n return popup\n ? [\n { key: '_invite_code', value: inviteCode ? inviteCode : '' },\n { key: '_play_mode_id', value: playModeId ? playModeId : '' },\n { key: '_popup', value: popup },\n ]\n : [\n { key: '_invite_code', value: inviteCode ? inviteCode : '' },\n { key: '_play_mode_id', value: playModeId ? playModeId : '' },\n ]\n }\n return []\n}\n\nexport const getNormalCoupon = ({ variant }: { variant?: ProductVariant }) => {\n return variant?.coupons?.find(\n (coupon: any) => coupon.discount_type !== CouponChannel.WSCH\n )\n}\n","import { getThemeLocale } from './helper'\n\nexport const BRAND = process.env.NEXT_PUBLIC_BRAND || 'soundcore'\n\nexport const ORIGIN_URL =\n process.env.NEXT_PUBLIC_ENV === 'production' ? `https://www.${BRAND}.com` : `https://beta.${BRAND}.com`\n\n// 用户中心域名\nexport const PASSPORT_URL =\n process.env.NEXT_PUBLIC_ENV === 'production' ? `https://passport.${BRAND}.com` : `https://beta.passport.${BRAND}.com`\n\n//所有区域的 Shopify 店铺Token\nexport const I18N_STOREFRONT_TOKEN =\n process.env.NEXT_PUBLIC_I18N_SHOPIFY_STOREFRONT_TOKEN &&\n JSON.parse(process.env.NEXT_PUBLIC_I18N_SHOPIFY_STOREFRONT_TOKEN)\n\n//所有区域的 Shopify 店铺域名: *.myshopify.com\nexport const I18N_STORE_DOMAIN: Record<string, string> =\n process.env.NEXT_PUBLIC_I18N_SHOPIFY_STORE_DOMAIN && JSON.parse(process.env.NEXT_PUBLIC_I18N_SHOPIFY_STORE_DOMAIN)\n\n// 主题站域名\nexport const I18N_THEME_DOMAIN =\n I18N_STORE_DOMAIN &&\n (function () {\n const result: Record<string, string> = {}\n\n Object.entries(I18N_STORE_DOMAIN).forEach(([key, value]) => {\n result[key] = process.env.NEXT_PUBLIC_ENV === 'production' ? `${getThemeLocale(key)}.${BRAND}.com` : value\n })\n\n return result\n })()\n\nconst storeDomain = I18N_STORE_DOMAIN\n\n// 所有区域的 Shopify Storefront API 地址,使用主题站域名\nexport const I18N_API_URL = (function () {\n const result: { [key: string]: string } = {}\n Object.keys(storeDomain).forEach(locale => {\n result[locale] = `https://${storeDomain[locale]}/api/2025-07/graphql.json`\n })\n return result\n})()\n\nexport const locales = Object.keys(I18N_STORE_DOMAIN || {})\n\nexport const I18N_APP_NAME = (function () {\n const result: { [key: string]: string } = {}\n Object.entries(I18N_STORE_DOMAIN).forEach(([locale, storeDomain]) => {\n result[locale] = storeDomain.replace('.myshopify.com', '')\n })\n return result\n})()\n\nexport const metafieldNamespacePrefix = process.env.NEXT_PUBLIC_METAFIELD_NAMESPACE_PREFIX || ''\n","import { I18N_STORE_DOMAIN } from './store'\nimport { locales } from './const'\n\nexport const SHOPIFY_COOKIE_EXPIRE = 30\nexport const SHOPIFY_CART_COOKIE_EXPIRE = 14\n\n// 购物车Cookie名称\nexport const I18N_SHOPIFY_CART_COOKIE = (function () {\n const result: { [key: string]: string } = {}\n locales.forEach((locale: string) => {\n result[locale] = `shopifyCart_${I18N_STORE_DOMAIN[locale]}`\n })\n return result\n})()\n\n// Cart ID Cookie名称\nexport const I18N_SHOPIFY_CART_ID_COOKIE = (function () {\n const result: { [key: string]: string } = {}\n locales.forEach((locale: string) => {\n result[locale] = `shopifyCheckoutId_${I18N_STORE_DOMAIN[locale]}`\n })\n return result\n})()\n\n// CheckoutUrl Cookie名称\nexport const I18N_SHOPIFY_CHECKOUT_URL_COOKIE = (function () {\n const result: { [key: string]: string } = {}\n locales.forEach((locale: string) => {\n result[locale] = `shopifyCheckoutUrl_${I18N_STORE_DOMAIN[locale]}`\n })\n return result\n})()\n\n// CustomerToken Cookie名称\nexport const I18N_SHOPIFY_CUSTOMER_TOKEN_COOKIE = (function () {\n const result: { [key: string]: string } = {}\n locales.forEach((locale: string) => {\n result[locale] = `shopifyCustomerToken_${I18N_STORE_DOMAIN[locale]}`\n })\n return result\n})()\n\n// CheckoutID 对应 Key 值\nexport const I18N_SHOPIFY_RESENT_CART_ID_COOKIE = (function () {\n const result: { [key: string]: string } = {}\n locales.forEach((locale: string) => {\n result[locale] = `shopifyRecentCartId_${I18N_STORE_DOMAIN[locale]}`\n })\n return result\n})()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAA0B,MAAM;AAC3C,QAAM,UAAU,OAAO,SAAS,KAAK,MAAM,GAAG;AAC9C,SAAO;AAAA,IACL,QAAQ,QAAQ,QAAQ,EAAE,MAAM,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,GAAG;AAAA;AAAA,IACxD,SAAS;AAAA,EACX;AACF;AAEO,IAAM,iBAAiB,CAAC,QAAgB,SAAe;AAC5D,QAAM,oBAAoB,yBAAyB,MAAM;AAEzD,oBAAAC,QAAQ;AAAA,IACN;AAAA,IACA,KAAK,UAAU;AAAA,MACb;AAAA,MACA,OAAO,KAAK,UAAU,IAAI,WAAS;AAAA,QACjC,IAAI,OAAO,KAAK,SAAS;AAAA,QACzB,UAAU,KAAK;AAAA,MACjB,EAAE;AAAA,IACJ,CAAC;AAAA,IACD,wBAAwB;AAAA,EAC1B;AACF;AAEO,IAAM,oBAAoB,CAAC,WAAmB;AACnD,QAAM,oBAAoB,yBAAyB,MAAM;AACzD,oBAAAA,QAAQ,OAAO,mBAAmB,wBAAwB,CAAC;AAC7D;AAEO,IAAM,wBAAwB,CAAC,WAAmB;AA1CzD;AA2CE,QAAM,UAAU;AAAA,IACd,SAAQ,sCAAQ,aAAR,mBAAkB;AAAA,IAC1B,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,SAAS;AAAA,EACX;AAEA,QAAM,oBAAoB,iCAAiC,MAAM;AACjE,QAAM,mBAAmB,4BAA4B,MAAM;AAC3D,oBAAAA,QAAQ,OAAO,kBAAkB,OAAO;AACxC,oBAAAA,QAAQ,OAAO,mBAAmB,OAAO;AAC3C;","names":["exports","module","import_js_cookie","BRAND","locales","storeDomain","metafieldNamespacePrefix","Cookies"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { w as Cart } from './cart-BcrGTPdx.cjs';
|
|
2
|
-
import './graphql-D4M28V-x.cjs';
|
|
3
|
-
|
|
4
|
-
declare const createCartCookieOptions: () => {
|
|
5
|
-
domain: string;
|
|
6
|
-
expires: number;
|
|
7
|
-
};
|
|
8
|
-
declare const setCartCookies: (locale: string, cart: Cart) => void;
|
|
9
|
-
declare const removeCartCookies: (locale: string) => void;
|
|
10
|
-
declare const removeCheckoutCookies: (locale: string) => void;
|
|
11
|
-
|
|
12
|
-
export { createCartCookieOptions, removeCartCookies, removeCheckoutCookies, setCartCookies };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { w as Cart } from './cart-BNkVu3fh';
|
|
2
|
-
import './graphql-D4M28V-x.js';
|
|
3
|
-
|
|
4
|
-
declare const createCartCookieOptions: () => {
|
|
5
|
-
domain: string;
|
|
6
|
-
expires: number;
|
|
7
|
-
};
|
|
8
|
-
declare const setCartCookies: (locale: string, cart: Cart) => void;
|
|
9
|
-
declare const removeCartCookies: (locale: string) => void;
|
|
10
|
-
declare const removeCheckoutCookies: (locale: string) => void;
|
|
11
|
-
|
|
12
|
-
export { createCartCookieOptions, removeCartCookies, removeCheckoutCookies, setCartCookies };
|