@anker-in/headless-ui 1.0.26-alpha.1762331489014 → 1.0.26-alpha.1762411688784
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/biz-components/AiuiProvider/index.js +1 -1
- package/dist/cjs/biz-components/AiuiProvider/index.js.map +2 -2
- package/dist/cjs/biz-components/AplusDesc/index.js +2 -0
- package/dist/cjs/biz-components/AplusDesc/index.js.map +7 -0
- package/dist/cjs/biz-components/DownLoad/index.js +2 -0
- package/dist/cjs/biz-components/DownLoad/index.js.map +7 -0
- package/dist/cjs/biz-components/Faq/Faq.js +1 -1
- package/dist/cjs/biz-components/Faq/Faq.js.map +2 -2
- package/dist/cjs/biz-components/Features/index.js +2 -0
- package/dist/cjs/biz-components/Features/index.js.map +7 -0
- package/dist/cjs/biz-components/FootCharger/index.js +2 -0
- package/dist/cjs/biz-components/FootCharger/index.js.map +7 -0
- package/dist/cjs/biz-components/GiftBox/index.js +2 -0
- package/dist/cjs/biz-components/GiftBox/index.js.map +7 -0
- package/dist/cjs/biz-components/Graphic/index.js +1 -1
- package/dist/cjs/biz-components/Graphic/index.js.map +2 -2
- package/dist/cjs/biz-components/GraphicMore/index.js +2 -0
- package/dist/cjs/biz-components/GraphicMore/index.js.map +7 -0
- package/dist/cjs/biz-components/HeroBanner/Countdown.js +2 -0
- package/dist/cjs/biz-components/HeroBanner/Countdown.js.map +7 -0
- package/dist/cjs/biz-components/HeroBanner/HeroBanner.js +1 -1
- package/dist/cjs/biz-components/HeroBanner/HeroBanner.js.map +3 -3
- package/dist/cjs/biz-components/HeroBanner/types.js.map +1 -1
- package/dist/cjs/biz-components/Listing/BizProductProvider.js +2 -0
- package/dist/cjs/biz-components/Listing/BizProductProvider.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +40 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/const.js +2 -0
- package/dist/cjs/biz-components/Listing/const.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/useBenefits.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/useBenefits.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/useCopy.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/useCopy.js.map +7 -0
- package/dist/cjs/biz-components/Listing/index.js +2 -0
- package/dist/cjs/biz-components/Listing/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/graphql.js +2 -0
- package/dist/cjs/biz-components/Listing/types/graphql.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/product.js +2 -0
- package/dist/cjs/biz-components/Listing/types/product.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/productMetafields.d.js +2 -0
- package/dist/cjs/biz-components/Listing/types/productMetafields.d.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/type-helper.js +2 -0
- package/dist/cjs/biz-components/Listing/types/type-helper.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types.js +2 -0
- package/dist/cjs/biz-components/Listing/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/utils/helper.js +2 -0
- package/dist/cjs/biz-components/Listing/utils/helper.js.map +7 -0
- package/dist/cjs/biz-components/Listing/utils/index.js +2 -0
- package/dist/cjs/biz-components/Listing/utils/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/utils/textFormat.js +2 -0
- package/dist/cjs/biz-components/Listing/utils/textFormat.js.map +7 -0
- package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
- package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
- package/dist/cjs/biz-components/SelectStore/index.js +2 -0
- package/dist/cjs/biz-components/SelectStore/index.js.map +7 -0
- package/dist/cjs/biz-components/ShelfDisplay/index.js +1 -1
- package/dist/cjs/biz-components/ShelfDisplay/index.js.map +3 -3
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +4 -4
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
- package/dist/cjs/biz-components/index.js +1 -1
- package/dist/cjs/biz-components/index.js.map +3 -3
- package/dist/cjs/components/checkbox.js +1 -1
- package/dist/cjs/components/checkbox.js.map +3 -3
- package/dist/cjs/helpers/ScrollLoadVideo.js +1 -1
- package/dist/cjs/helpers/ScrollLoadVideo.js.map +3 -3
- package/dist/cjs/hooks/useRollout.js +2 -0
- package/dist/cjs/hooks/useRollout.js.map +7 -0
- package/dist/cjs/src/biz-components/AiuiProvider/index.d.ts +4 -0
- package/dist/cjs/src/biz-components/AplusDesc/index.d.ts +23 -0
- package/dist/cjs/src/biz-components/DownLoad/index.d.ts +21 -0
- package/dist/cjs/src/biz-components/Features/index.d.ts +27 -0
- package/dist/cjs/src/biz-components/FootCharger/index.d.ts +13 -0
- package/dist/cjs/src/biz-components/GiftBox/index.d.ts +18 -0
- package/dist/cjs/src/biz-components/GraphicMore/index.d.ts +23 -0
- package/dist/cjs/src/biz-components/HeroBanner/Countdown.d.ts +9 -0
- package/dist/cjs/src/biz-components/HeroBanner/types.d.ts +6 -0
- package/dist/cjs/src/biz-components/Listing/BizProductProvider.d.ts +126 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +10 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +25 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/index.d.ts +12 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/type.d.ts +30 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/utils.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +38 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +30 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +43 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +21 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +1 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +42 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +4 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +10 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/types.d.ts +12 -0
- package/dist/cjs/src/biz-components/Listing/components/index.d.ts +3 -0
- package/dist/cjs/src/biz-components/Listing/const.d.ts +29 -0
- package/dist/cjs/src/biz-components/Listing/hooks/use-variant-media.d.ts +14 -0
- package/dist/cjs/src/biz-components/Listing/hooks/use-variant.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/hooks/useBenefits.d.ts +50 -0
- package/dist/cjs/src/biz-components/Listing/hooks/useCopy.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/index.d.ts +4 -0
- package/dist/cjs/src/biz-components/Listing/types/graphql.d.ts +7473 -0
- package/dist/cjs/src/biz-components/Listing/types/product.d.ts +141 -0
- package/dist/cjs/src/biz-components/Listing/types/type-helper.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/types.d.ts +28 -0
- package/dist/cjs/src/biz-components/Listing/utils/helper.d.ts +36 -0
- package/dist/cjs/src/biz-components/Listing/utils/index.d.ts +37 -0
- package/dist/cjs/src/biz-components/Listing/utils/textFormat.d.ts +73 -0
- package/dist/cjs/src/biz-components/SelectStore/index.d.ts +21 -0
- package/dist/cjs/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +11 -2
- package/dist/cjs/src/biz-components/index.d.ts +24 -0
- package/dist/cjs/src/components/checkbox.d.ts +1 -0
- package/dist/cjs/src/hooks/useRollout.d.ts +14 -0
- package/dist/esm/biz-components/AiuiProvider/index.js +1 -1
- package/dist/esm/biz-components/AiuiProvider/index.js.map +2 -2
- package/dist/esm/biz-components/AplusDesc/index.js +2 -0
- package/dist/esm/biz-components/AplusDesc/index.js.map +7 -0
- package/dist/esm/biz-components/DownLoad/index.js +2 -0
- package/dist/esm/biz-components/DownLoad/index.js.map +7 -0
- package/dist/esm/biz-components/Faq/Faq.js +1 -1
- package/dist/esm/biz-components/Faq/Faq.js.map +3 -3
- package/dist/esm/biz-components/Features/index.js +2 -0
- package/dist/esm/biz-components/Features/index.js.map +7 -0
- package/dist/esm/biz-components/FootCharger/index.js +2 -0
- package/dist/esm/biz-components/FootCharger/index.js.map +7 -0
- package/dist/esm/biz-components/GiftBox/index.js +2 -0
- package/dist/esm/biz-components/GiftBox/index.js.map +7 -0
- package/dist/esm/biz-components/Graphic/index.js +1 -1
- package/dist/esm/biz-components/Graphic/index.js.map +2 -2
- package/dist/esm/biz-components/GraphicMore/index.js +2 -0
- package/dist/esm/biz-components/GraphicMore/index.js.map +7 -0
- package/dist/esm/biz-components/HeroBanner/Countdown.js +2 -0
- package/dist/esm/biz-components/HeroBanner/Countdown.js.map +7 -0
- package/dist/esm/biz-components/HeroBanner/HeroBanner.js +1 -1
- package/dist/esm/biz-components/HeroBanner/HeroBanner.js.map +3 -3
- package/dist/esm/biz-components/Listing/BizProductProvider.js +2 -0
- package/dist/esm/biz-components/Listing/BizProductProvider.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/type.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/type.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +40 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js +1 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +1 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js +1 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/const.js +2 -0
- package/dist/esm/biz-components/Listing/const.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant-media.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant-media.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/useBenefits.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/useBenefits.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/useCopy.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/useCopy.js.map +7 -0
- package/dist/esm/biz-components/Listing/index.js +2 -0
- package/dist/esm/biz-components/Listing/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/graphql.js +2 -0
- package/dist/esm/biz-components/Listing/types/graphql.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/product.js +2 -0
- package/dist/esm/biz-components/Listing/types/product.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/productMetafields.d.js +2 -0
- package/dist/esm/biz-components/Listing/types/productMetafields.d.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/type-helper.js +1 -0
- package/dist/esm/biz-components/Listing/types/type-helper.js.map +7 -0
- package/dist/esm/biz-components/Listing/types.js +1 -0
- package/dist/esm/biz-components/Listing/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/utils/helper.js +2 -0
- package/dist/esm/biz-components/Listing/utils/helper.js.map +7 -0
- package/dist/esm/biz-components/Listing/utils/index.js +2 -0
- package/dist/esm/biz-components/Listing/utils/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/utils/textFormat.js +2 -0
- package/dist/esm/biz-components/Listing/utils/textFormat.js.map +7 -0
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
- package/dist/esm/biz-components/SelectStore/index.js +2 -0
- package/dist/esm/biz-components/SelectStore/index.js.map +7 -0
- package/dist/esm/biz-components/ShelfDisplay/index.js +1 -1
- package/dist/esm/biz-components/ShelfDisplay/index.js.map +3 -3
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +9 -9
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
- package/dist/esm/biz-components/index.js +1 -1
- package/dist/esm/biz-components/index.js.map +2 -2
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/checkbox.js.map +3 -3
- package/dist/esm/helpers/ScrollLoadVideo.js +1 -1
- package/dist/esm/helpers/ScrollLoadVideo.js.map +3 -3
- package/dist/esm/hooks/useRollout.js +2 -0
- package/dist/esm/hooks/useRollout.js.map +7 -0
- package/dist/esm/src/biz-components/AiuiProvider/index.d.ts +4 -0
- package/dist/esm/src/biz-components/AplusDesc/index.d.ts +23 -0
- package/dist/esm/src/biz-components/DownLoad/index.d.ts +21 -0
- package/dist/esm/src/biz-components/Features/index.d.ts +27 -0
- package/dist/esm/src/biz-components/FootCharger/index.d.ts +13 -0
- package/dist/esm/src/biz-components/GiftBox/index.d.ts +18 -0
- package/dist/esm/src/biz-components/GraphicMore/index.d.ts +23 -0
- package/dist/esm/src/biz-components/HeroBanner/Countdown.d.ts +9 -0
- package/dist/esm/src/biz-components/HeroBanner/types.d.ts +6 -0
- package/dist/esm/src/biz-components/Listing/BizProductProvider.d.ts +126 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +10 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +25 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/index.d.ts +12 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/type.d.ts +30 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/utils.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +38 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +30 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +43 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +21 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +1 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +42 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +4 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +10 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/types.d.ts +12 -0
- package/dist/esm/src/biz-components/Listing/components/index.d.ts +3 -0
- package/dist/esm/src/biz-components/Listing/const.d.ts +29 -0
- package/dist/esm/src/biz-components/Listing/hooks/use-variant-media.d.ts +14 -0
- package/dist/esm/src/biz-components/Listing/hooks/use-variant.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/hooks/useBenefits.d.ts +50 -0
- package/dist/esm/src/biz-components/Listing/hooks/useCopy.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/index.d.ts +4 -0
- package/dist/esm/src/biz-components/Listing/types/graphql.d.ts +7473 -0
- package/dist/esm/src/biz-components/Listing/types/product.d.ts +141 -0
- package/dist/esm/src/biz-components/Listing/types/type-helper.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/types.d.ts +28 -0
- package/dist/esm/src/biz-components/Listing/utils/helper.d.ts +36 -0
- package/dist/esm/src/biz-components/Listing/utils/index.d.ts +37 -0
- package/dist/esm/src/biz-components/Listing/utils/textFormat.d.ts +73 -0
- package/dist/esm/src/biz-components/SelectStore/index.d.ts +21 -0
- package/dist/esm/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +11 -2
- package/dist/esm/src/biz-components/index.d.ts +24 -0
- package/dist/esm/src/components/checkbox.d.ts +1 -0
- package/dist/esm/src/hooks/useRollout.d.ts +14 -0
- package/dist/tokens/anker.css +1 -0
- package/dist/tokens/base.css +1 -1
- package/dist/tokens/eufy.css +1 -0
- package/dist/tokens/eufyMake.css +1 -0
- package/dist/tokens/solix.css +1 -0
- package/dist/tokens/soundcore.css +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { CurrencyCode, Image, Media, Product as ShopifyProduct, ProductVariant as ShopifyProductVariant } from './graphql';
|
|
2
|
+
import { DiscountType } from '../const';
|
|
3
|
+
export type ProductPrice = {
|
|
4
|
+
amount: number;
|
|
5
|
+
currencyCode: CurrencyCode;
|
|
6
|
+
};
|
|
7
|
+
export type ProductOption = {
|
|
8
|
+
__typename?: 'MultipleChoiceOption';
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
values: ProductOptionValues[];
|
|
12
|
+
};
|
|
13
|
+
export type ProductOptionValues = {
|
|
14
|
+
label: string;
|
|
15
|
+
hexColors?: string[];
|
|
16
|
+
};
|
|
17
|
+
export type ProductVariant = {
|
|
18
|
+
id: string | number;
|
|
19
|
+
options: ProductOption[];
|
|
20
|
+
sku: string;
|
|
21
|
+
metafields?: Record<string, any>;
|
|
22
|
+
price: ProductPrice;
|
|
23
|
+
product: Product;
|
|
24
|
+
coupons: VariantCoupon[];
|
|
25
|
+
weight?: number;
|
|
26
|
+
payload?: any;
|
|
27
|
+
} & Omit<ShopifyProductVariant, 'options' | 'metafields' | 'price'>;
|
|
28
|
+
export type Product = {
|
|
29
|
+
path?: string;
|
|
30
|
+
images: Image[];
|
|
31
|
+
media: ProductMedia[];
|
|
32
|
+
variants: ProductVariant[];
|
|
33
|
+
price: ProductPrice;
|
|
34
|
+
options: ProductOption[];
|
|
35
|
+
metafields?: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
slug: string;
|
|
39
|
+
payload?: any;
|
|
40
|
+
} & Omit<ShopifyProduct, 'metafields' | 'images' | 'variants' | 'price' | 'options' | 'media'>;
|
|
41
|
+
export type GetProductBody = {
|
|
42
|
+
handles: string;
|
|
43
|
+
locale?: string;
|
|
44
|
+
};
|
|
45
|
+
export type ProductTypes = {
|
|
46
|
+
product: Product;
|
|
47
|
+
getBody: GetProductBody;
|
|
48
|
+
};
|
|
49
|
+
export type GetAllProductPathsOperation<T extends ProductTypes = ProductTypes> = {
|
|
50
|
+
data: {
|
|
51
|
+
products: Pick<T['product'], 'path'>[];
|
|
52
|
+
};
|
|
53
|
+
variables: {
|
|
54
|
+
first?: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type GetAllProductsOperation<T extends ProductTypes = ProductTypes> = {
|
|
58
|
+
data: {
|
|
59
|
+
products: T['product'][];
|
|
60
|
+
};
|
|
61
|
+
variables: {
|
|
62
|
+
relevance?: 'featured' | 'best_selling' | 'newest';
|
|
63
|
+
ids?: string[];
|
|
64
|
+
first?: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type GetProductOperation<T extends ProductTypes = ProductTypes> = {
|
|
68
|
+
data: {
|
|
69
|
+
product?: T['product'];
|
|
70
|
+
};
|
|
71
|
+
variables: {
|
|
72
|
+
path: string;
|
|
73
|
+
slug?: never;
|
|
74
|
+
} | {
|
|
75
|
+
path?: never;
|
|
76
|
+
slug: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export type Options = Record<string, string>;
|
|
80
|
+
export type ProductMedia = Media & {
|
|
81
|
+
sources?: {
|
|
82
|
+
url: string;
|
|
83
|
+
altText: string;
|
|
84
|
+
}[];
|
|
85
|
+
image?: {
|
|
86
|
+
url: string;
|
|
87
|
+
altText: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type VariantCoupon = {
|
|
91
|
+
title: string;
|
|
92
|
+
starts_at: string;
|
|
93
|
+
ends_at: string | null;
|
|
94
|
+
variant_shopify_id: number;
|
|
95
|
+
value_type: DiscountType;
|
|
96
|
+
value: string;
|
|
97
|
+
currency: string;
|
|
98
|
+
fixed_value: string;
|
|
99
|
+
value_style: string;
|
|
100
|
+
variant_price4wscode: number;
|
|
101
|
+
discount_type: string;
|
|
102
|
+
amazon_deal: boolean;
|
|
103
|
+
cdi_id: number;
|
|
104
|
+
cdi_updated_at: string;
|
|
105
|
+
};
|
|
106
|
+
export type ScriptDiscount = {
|
|
107
|
+
type: DiscountType;
|
|
108
|
+
excludeSkus: string[];
|
|
109
|
+
discount: number;
|
|
110
|
+
};
|
|
111
|
+
export type FreeGift = {
|
|
112
|
+
title: string;
|
|
113
|
+
note: string;
|
|
114
|
+
soldOutLabel: string;
|
|
115
|
+
freeLabel: string;
|
|
116
|
+
giftList: ProductVariant[];
|
|
117
|
+
count: number;
|
|
118
|
+
showCoupon: boolean;
|
|
119
|
+
[key: string]: any;
|
|
120
|
+
};
|
|
121
|
+
export type BundleListItem = {
|
|
122
|
+
id: string;
|
|
123
|
+
price: number;
|
|
124
|
+
comparePrice: number;
|
|
125
|
+
savings: number;
|
|
126
|
+
variants: {
|
|
127
|
+
price: number;
|
|
128
|
+
quantity: number;
|
|
129
|
+
label: string;
|
|
130
|
+
variant: ProductVariant;
|
|
131
|
+
}[];
|
|
132
|
+
};
|
|
133
|
+
export type Bundle = {
|
|
134
|
+
title: string;
|
|
135
|
+
soldOutLabel: string;
|
|
136
|
+
youSaveText: string;
|
|
137
|
+
showCoupon: boolean;
|
|
138
|
+
bundleList: BundleListItem[];
|
|
139
|
+
showAtListing: boolean;
|
|
140
|
+
[key: string]: any;
|
|
141
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Product } from './types/product';
|
|
2
|
+
export type CompareProductItem = {
|
|
3
|
+
handle: string;
|
|
4
|
+
shortName: string;
|
|
5
|
+
compareProductCollection?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CompareItem = {
|
|
8
|
+
product: Product;
|
|
9
|
+
} & CompareProductItem;
|
|
10
|
+
export type CompareData = {
|
|
11
|
+
data: {
|
|
12
|
+
availableCompareList: Array<CompareItem>;
|
|
13
|
+
currentProductCompareData?: CompareItem;
|
|
14
|
+
options: {
|
|
15
|
+
value: string;
|
|
16
|
+
text: string;
|
|
17
|
+
}[];
|
|
18
|
+
specificationKeys?: string[];
|
|
19
|
+
};
|
|
20
|
+
show: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type DiscountData = {
|
|
23
|
+
codeSavings: number;
|
|
24
|
+
scriptSavings: number;
|
|
25
|
+
totalSavings: number;
|
|
26
|
+
comparePrice: number;
|
|
27
|
+
finalPrice: number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Product, ProductMedia, ProductVariant } from '../types/product';
|
|
2
|
+
export type SchemaVariant = {
|
|
3
|
+
variant: {
|
|
4
|
+
handle: string;
|
|
5
|
+
sku: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function isObjEmpty(obj?: Record<string, any>): boolean;
|
|
9
|
+
export declare function atobID(id: string): string | undefined;
|
|
10
|
+
export declare function btoaID(id: string, type?: 'ProductVariant' | 'Product'): string;
|
|
11
|
+
export declare const getThemeLocale: (locale: string) => string;
|
|
12
|
+
/**
|
|
13
|
+
* 生成 metafieldIdentifiers 查询参数
|
|
14
|
+
*/
|
|
15
|
+
export declare const getNormalCoupon: ({ variant }: {
|
|
16
|
+
variant?: ProductVariant;
|
|
17
|
+
}) => import("../types/product").VariantCoupon | undefined;
|
|
18
|
+
export declare function replaceUmlaut(str: string): string;
|
|
19
|
+
export declare function handle(str: string): string;
|
|
20
|
+
export declare function getVariantImageIndex({ mediaList, variant, }: {
|
|
21
|
+
variant: ProductVariant;
|
|
22
|
+
mediaList: ProductMedia[];
|
|
23
|
+
}): null | number;
|
|
24
|
+
export declare function getVariantMediaList({ product, variant }: {
|
|
25
|
+
variant: ProductVariant;
|
|
26
|
+
product: Product;
|
|
27
|
+
}): ProductMedia[];
|
|
28
|
+
export declare const checkItemAvailableForProduct: ({ product, item, variant, }: {
|
|
29
|
+
product: Product;
|
|
30
|
+
variant: ProductVariant;
|
|
31
|
+
item?: {
|
|
32
|
+
includeTags?: string[];
|
|
33
|
+
includeProducts?: SchemaVariant[];
|
|
34
|
+
excludeProducts?: SchemaVariant[];
|
|
35
|
+
};
|
|
36
|
+
}) => string | boolean | SchemaVariant | undefined;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Options, Product, ProductOption, ProductVariant } from '../types/product';
|
|
2
|
+
export declare function optionsConstructor(options: ProductOption[]): Options;
|
|
3
|
+
/**
|
|
4
|
+
* Returns the first available variant of a product.
|
|
5
|
+
* If no variant is available, it returns the first variant in the list.
|
|
6
|
+
*
|
|
7
|
+
* @param product - The product object.
|
|
8
|
+
* @returns The first available variant of the product.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getFirstAvailableVariant: (product: Product) => ProductVariant;
|
|
11
|
+
export declare const getVariantBySku: (product: Product, sku: string) => ProductVariant | undefined;
|
|
12
|
+
export declare const languageTerritory: (locale: string) => string;
|
|
13
|
+
export declare function formatPrice({ amount, currencyCode, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
|
|
14
|
+
amount: number;
|
|
15
|
+
currencyCode: string;
|
|
16
|
+
locale: string;
|
|
17
|
+
maximumFractionDigits?: number;
|
|
18
|
+
minimumFractionDigits?: number;
|
|
19
|
+
removeTrailingZeros?: boolean;
|
|
20
|
+
}): string;
|
|
21
|
+
export declare function formatVariantPrice({ amount, baseAmount, currencyCode, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
|
|
22
|
+
baseAmount: number;
|
|
23
|
+
amount: number;
|
|
24
|
+
currencyCode: string;
|
|
25
|
+
locale: string;
|
|
26
|
+
maximumFractionDigits?: number;
|
|
27
|
+
minimumFractionDigits?: number;
|
|
28
|
+
removeTrailingZeros?: boolean;
|
|
29
|
+
}): {
|
|
30
|
+
price: string;
|
|
31
|
+
basePrice: string | undefined;
|
|
32
|
+
discount: string | null;
|
|
33
|
+
};
|
|
34
|
+
export declare function getVariantFromSelectedOptions({ product, selectedOptions, }: {
|
|
35
|
+
product: Product;
|
|
36
|
+
selectedOptions: Record<string, string>;
|
|
37
|
+
}): ProductVariant | undefined;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 字符串模板替换工具函数
|
|
3
|
+
* 使用单次遍历和正则表达式缓存来提高性能
|
|
4
|
+
*/
|
|
5
|
+
type ReplacementMap = Record<string, string>;
|
|
6
|
+
/**
|
|
7
|
+
* 字符串模板替换函数
|
|
8
|
+
* @param template 模板字符串,如 "Hello {name}, you have {count} messages"
|
|
9
|
+
* @param replacements 替换对象,如 { name: "John", count: "5" }
|
|
10
|
+
* @param beginSeg 占位符开始符号,默认为 "{"
|
|
11
|
+
* @param endSeg 占位符结束符号,默认为 "}"
|
|
12
|
+
* @returns 替换后的字符串
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* replaceTemplate("Hello {name}!", { name: "World" })
|
|
17
|
+
* // => "Hello World!"
|
|
18
|
+
*
|
|
19
|
+
* replaceTemplate("Price: {{amount}}", { amount: "$100" }, "{{", "}}")
|
|
20
|
+
* // => "Price: $100"
|
|
21
|
+
*
|
|
22
|
+
* replaceTemplate("You have {count} items", { count: "5", unused: "test" })
|
|
23
|
+
* // => "You have 5 items" (unused 键会被忽略)
|
|
24
|
+
*
|
|
25
|
+
* replaceTemplate("Hello ${name}!", { name: "World" }, "${", "}")
|
|
26
|
+
* // => "Hello World!"
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function replaceTemplate(template: string, replacements: ReplacementMap, beginSeg?: string, endSeg?: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* 批量字符串模板替换函数(用于一次性替换多个模板)
|
|
32
|
+
* @param templates 模板字符串数组
|
|
33
|
+
* @param replacements 替换对象
|
|
34
|
+
* @param beginSeg 占位符开始符号,默认为 "{"
|
|
35
|
+
* @param endSeg 占位符结束符号,默认为 "}"
|
|
36
|
+
* @returns 替换后的字符串数组
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* replaceTemplates(
|
|
41
|
+
* ["Hello {name}!", "You have {count} items"],
|
|
42
|
+
* { name: "John", count: "5" }
|
|
43
|
+
* )
|
|
44
|
+
* // => ["Hello John!", "You have 5 items"]
|
|
45
|
+
*
|
|
46
|
+
* replaceTemplates(
|
|
47
|
+
* ["Hello {{name}}!", "Price: {{amount}}"],
|
|
48
|
+
* { name: "John", amount: "$100" },
|
|
49
|
+
* "{{",
|
|
50
|
+
* "}}"
|
|
51
|
+
* )
|
|
52
|
+
* // => ["Hello John!", "Price: $100"]
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function replaceTemplates(templates: string[], replacements: ReplacementMap, beginSeg?: string, endSeg?: string): string[];
|
|
56
|
+
/**
|
|
57
|
+
* 从模板字符串中提取所有占位符键名
|
|
58
|
+
* @param template 模板字符串
|
|
59
|
+
* @param beginSeg 占位符开始符号,默认为 "{"
|
|
60
|
+
* @param endSeg 占位符结束符号,默认为 "}"
|
|
61
|
+
* @returns 占位符键名数组(去重)
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* extractPlaceholders("Hello {name}, you have {count} new {count} messages")
|
|
66
|
+
* // => ["name", "count"]
|
|
67
|
+
*
|
|
68
|
+
* extractPlaceholders("Hello {{name}}, price is {{amount}}", "{{", "}}")
|
|
69
|
+
* // => ["name", "amount"]
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare function extractPlaceholders(template: string, beginSeg?: string, endSeg?: string): string[];
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Img } from '../../types/props.js';
|
|
3
|
+
export type SelectStoreDataType = {
|
|
4
|
+
title: string;
|
|
5
|
+
desc: string;
|
|
6
|
+
img: Img;
|
|
7
|
+
mobileImg: Img;
|
|
8
|
+
padImg: Img;
|
|
9
|
+
miniImg: Img;
|
|
10
|
+
};
|
|
11
|
+
type SelectStoreType = {
|
|
12
|
+
data: {
|
|
13
|
+
list: SelectStoreDataType[];
|
|
14
|
+
};
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<SelectStoreType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
data?: Record<string, any> | undefined;
|
|
20
|
+
} & import("react").RefAttributes<any>>;
|
|
21
|
+
export default _default;
|
|
@@ -8,7 +8,7 @@ export declare function formatPrice({ amount, currencyCode, locale, maximumFract
|
|
|
8
8
|
maximumFractionDigits?: number;
|
|
9
9
|
minimumFractionDigits?: number;
|
|
10
10
|
removeTrailingZeros?: boolean;
|
|
11
|
-
}): string;
|
|
11
|
+
}): string | null;
|
|
12
12
|
export declare function formatVariantPrice({ amount, baseAmount, currencyCode, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
|
|
13
13
|
baseAmount: number;
|
|
14
14
|
amount: number;
|
|
@@ -19,8 +19,14 @@ export declare function formatVariantPrice({ amount, baseAmount, currencyCode, l
|
|
|
19
19
|
removeTrailingZeros?: boolean;
|
|
20
20
|
}): {
|
|
21
21
|
price: string;
|
|
22
|
-
basePrice: string
|
|
22
|
+
basePrice: string;
|
|
23
|
+
discount: string;
|
|
24
|
+
discountAmount?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
price: string | null;
|
|
27
|
+
basePrice: string | null | undefined;
|
|
23
28
|
discount: string | null;
|
|
29
|
+
discountAmount: string | null | undefined;
|
|
24
30
|
};
|
|
25
31
|
type EventType = {
|
|
26
32
|
primaryButton?: (v: any, index: number, data: ShelfDisplayType) => void;
|
|
@@ -46,6 +52,8 @@ export interface ShelfDisplayItem {
|
|
|
46
52
|
data?: ShelfDisplayItem[];
|
|
47
53
|
custom_name?: string;
|
|
48
54
|
custom_description?: string;
|
|
55
|
+
custom_image?: string;
|
|
56
|
+
custom_theme?: string;
|
|
49
57
|
}
|
|
50
58
|
export type ShelfDisplayType = {
|
|
51
59
|
title?: string;
|
|
@@ -91,6 +99,7 @@ export interface ShelfDisplayProps {
|
|
|
91
99
|
slidesPerView: number;
|
|
92
100
|
};
|
|
93
101
|
};
|
|
102
|
+
metafields?: any;
|
|
94
103
|
isDisplayGudgments?: boolean;
|
|
95
104
|
isDisplayBackImage?: boolean;
|
|
96
105
|
}
|
|
@@ -34,6 +34,30 @@ export { default as CreativeModule } from './CreativeModule/index.js';
|
|
|
34
34
|
export { default as GraphicOverlay } from './GraphicOverlay/index.js';
|
|
35
35
|
export { default as Specs } from './Specs/index.js';
|
|
36
36
|
export { default as TabGroup } from './TabsGroup/index.js';
|
|
37
|
+
export { default as Listing } from './Listing/index.js';
|
|
38
|
+
export { default as BizProductProvider } from './Listing/BizProductProvider.js';
|
|
39
|
+
export { default as PurchaseBar } from './Listing/components/PurchaseBar/index.js';
|
|
40
|
+
export { default as ProductActions } from './Listing/components/PurchaseBar/ProductActions/index.js';
|
|
41
|
+
export { default as ProductCard } from './Listing/components/ProductCard/index.js';
|
|
42
|
+
export { default as ProductBenefitsTabs } from './Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js';
|
|
43
|
+
export { default as ProductHighlight } from './Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js';
|
|
44
|
+
export { default as ProductFreeGift } from './Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js';
|
|
45
|
+
export { default as ProductExchangePurchase } from './Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js';
|
|
46
|
+
export { default as ProductOptions } from './Listing/components/ProductCard/ProductDetail/ProductOptions/index.js';
|
|
47
|
+
export { default as ProductBundle } from './Listing/components/ProductCard/ProductDetail/ProductBundle/index.js';
|
|
48
|
+
export { default as ProductGridBox } from './Listing/components/ProductCard/ProductGridBox.js';
|
|
49
|
+
export { default as ProductGallery } from './Listing/components/ProductCard/ProductGallery/index.js';
|
|
50
|
+
export { default as ProductDetail } from './Listing/components/ProductCard/ProductDetail/index.js';
|
|
51
|
+
export { default as ProductSummary } from './Listing/components/ProductCard/ProductSummary/index.js';
|
|
52
|
+
export { default as BenefitsTab } from './Listing/components/ProductCard/ProductDetail/BenefitsTab';
|
|
53
|
+
export { default as PaidShipping } from './Listing/components/PaidShipping/index.js';
|
|
54
|
+
export { default as GraphicMore } from './GraphicMore/index.js';
|
|
55
|
+
export { default as Features } from './Features/index.js';
|
|
56
|
+
export { default as AplusDesc } from './AplusDesc/index.js';
|
|
57
|
+
export { default as GiftBox } from './GiftBox/index.js';
|
|
58
|
+
export { default as SelectStore } from './SelectStore/index.js';
|
|
59
|
+
export { default as DownLoad } from './DownLoad/index.js';
|
|
60
|
+
export { default as FootCharger } from './FootCharger/index.js';
|
|
37
61
|
export { default as ProductCompare } from './ProductCompare/index.js';
|
|
38
62
|
export type { ProductCompareProps, ProductItemData } from './ProductCompare/index.js';
|
|
39
63
|
export { default as Ksp } from './Ksp/index.js';
|
|
@@ -5,6 +5,7 @@ declare const checkboxVariants: (props?: ({
|
|
|
5
5
|
size?: "base" | "lg" | "sm" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
|
|
8
|
+
iconClassName?: string;
|
|
8
9
|
}
|
|
9
10
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
11
|
export default Checkbox;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
|
+
type UseRolloutOptions = IntersectionObserverInit & {
|
|
3
|
+
/**
|
|
4
|
+
* When true, once the target enters the viewport the first time,
|
|
5
|
+
* the observer disconnects and `inView` stays true.
|
|
6
|
+
*/
|
|
7
|
+
once?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Observe when an element enters the viewport.
|
|
11
|
+
* Returns a ref to attach to the element and a boolean indicating visibility.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useRollout<T extends HTMLElement = HTMLElement>(options?: UseRolloutOptions): [MutableRefObject<T | null>, boolean];
|
|
14
|
+
export {};
|
package/dist/tokens/anker.css
CHANGED
package/dist/tokens/base.css
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
.swiper-horizontal>.swiper-pagination-bullets,
|
|
154
154
|
.swiper-pagination-bullets.swiper-pagination-horizontal {
|
|
155
|
-
bottom: -24px!important;
|
|
155
|
+
/* bottom: -24px!important; */
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next,
|
package/dist/tokens/eufy.css
CHANGED
package/dist/tokens/eufyMake.css
CHANGED
package/dist/tokens/solix.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anker-in/headless-ui",
|
|
3
|
-
"version": "1.0.26-alpha.
|
|
3
|
+
"version": "1.0.26-alpha.1762411688784",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/cjs/index.d.ts",
|
|
@@ -111,6 +111,8 @@
|
|
|
111
111
|
"autoprefixer": "^10.4.19",
|
|
112
112
|
"class-variance-authority": "^0.7.0",
|
|
113
113
|
"clsx": "^2.1.1",
|
|
114
|
+
"copy-to-clipboard": "^3.3.3",
|
|
115
|
+
"decimal.js": "^10.6.0",
|
|
114
116
|
"embla-carousel": "^8.6.0",
|
|
115
117
|
"embla-carousel-autoplay": "^8.5.2",
|
|
116
118
|
"embla-carousel-class-names": "^8.5.2",
|