@app-brew/brewery 1.0.0
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/package.json +99 -0
- package/src/analytics/src/analytics-provider-v2.ts +288 -0
- package/src/analytics/src/analytics-provider-v2.web.ts +36 -0
- package/src/analytics/src/analytics-provider.ts +266 -0
- package/src/analytics/src/analytics-provider.web.ts +48 -0
- package/src/analytics/src/analytics-tracker-v2.ts +96 -0
- package/src/analytics/src/anaylytics-tracker.ts +96 -0
- package/src/analytics/src/index.ts +6 -0
- package/src/analytics/src/user-permission.ts +1 -0
- package/src/analytics/src/utils.ts +162 -0
- package/src/app-update/src/index.ts +1 -0
- package/src/app-update/src/lib/app-update.ts +45 -0
- package/src/block-registry/src/common.tsx +439 -0
- package/src/block-registry/src/common.web.tsx +46 -0
- package/src/block-registry/src/index.ts +1 -0
- package/src/block-registry/src/keys.ts +43 -0
- package/src/block-registry/src/register.tsx +66 -0
- package/src/block-registry/src/register.web.tsx +129 -0
- package/src/bottom-sheet/src/block-bottom-sheet.tsx +183 -0
- package/src/bottom-sheet/src/block-bottom-sheet.web.tsx +4 -0
- package/src/bottom-sheet/src/bottom-sheet.tsx +269 -0
- package/src/bottom-sheet/src/bottom-sheet.web.tsx +13 -0
- package/src/bottom-sheet/src/index.ts +3 -0
- package/src/brewery/babel.config.js +3 -0
- package/src/brewery/src/ModalBrewery.tsx +222 -0
- package/src/brewery/src/ScreenBrewery.tsx +415 -0
- package/src/brewery/src/ScreenContainer.tsx +76 -0
- package/src/brewery/src/ScreenContextProvider.tsx +27 -0
- package/src/brewery/src/app-init.tsx +507 -0
- package/src/brewery/src/common.ts +5 -0
- package/src/brewery/src/default-content.tsx +234 -0
- package/src/brewery/src/index.ts +8 -0
- package/src/brewery/src/lazy-screen.tsx +101 -0
- package/src/brewery/src/onboarding-screen.tsx +31 -0
- package/src/brewery/src/plp-content.tsx +19 -0
- package/src/brewery/src/preview-footer.tsx +83 -0
- package/src/brewery/src/profile-screen.tsx +74 -0
- package/src/brewery/src/refreshing-screen.tsx +129 -0
- package/src/brewery/src/safe-area-container.tsx +1 -0
- package/src/brewery/src/screen-content.tsx +89 -0
- package/src/brewery/src/secondary-splash-screen.tsx +190 -0
- package/src/brewery/src/shell.tsx +509 -0
- package/src/brewery/src/tab-bar.tsx +252 -0
- package/src/brewery/src/tabbed-brewery.tsx +175 -0
- package/src/brewery/src/templates.ts +87 -0
- package/src/brewery/src/types.ts +123 -0
- package/src/brewery/src/utils/bottombar.tsx +266 -0
- package/src/brewery/src/utils/colorUtils.ts +71 -0
- package/src/brewery/src/utils/createBottombarVisibility.ts +48 -0
- package/src/brewery/src/utils/index.tsx +3 -0
- package/src/brewery/src/utils/renderItem.tsx +112 -0
- package/src/brewery/src/utils/screens.tsx +270 -0
- package/src/brewery/src/utils/tabReload.ts +57 -0
- package/src/brewery/test-setup.ts +1 -0
- package/src/child-navigator/babel.config.js +3 -0
- package/src/child-navigator/src/index.tsx +52 -0
- package/src/child-navigator/src/view.tsx +197 -0
- package/src/components/babel.config.js +3 -0
- package/src/components/src/atoms/badge/index.tsx +85 -0
- package/src/components/src/atoms/block-section/index.ts +6 -0
- package/src/components/src/atoms/button/index.tsx +112 -0
- package/src/components/src/atoms/check-box/index.tsx +57 -0
- package/src/components/src/atoms/countdown-timer/index.tsx +48 -0
- package/src/components/src/atoms/country-selector/constants.ts +3 -0
- package/src/components/src/atoms/country-selector/index.tsx +146 -0
- package/src/components/src/atoms/date-picker/calendar-date-picker.tsx +509 -0
- package/src/components/src/atoms/date-picker/index.tsx +93 -0
- package/src/components/src/atoms/flex/index.tsx +24 -0
- package/src/components/src/atoms/header/index.ts +2 -0
- package/src/components/src/atoms/header/types.ts +1 -0
- package/src/components/src/atoms/icon/index.tsx +31 -0
- package/src/components/src/atoms/icon-button/index.tsx +29 -0
- package/src/components/src/atoms/image/image1.tsx +8 -0
- package/src/components/src/atoms/image/image1.web.tsx +5 -0
- package/src/components/src/atoms/image/index.ts +1 -0
- package/src/components/src/atoms/image/types.ts +12 -0
- package/src/components/src/atoms/input/index.tsx +34 -0
- package/src/components/src/atoms/link/index.tsx +60 -0
- package/src/components/src/atoms/password-input/index.tsx +89 -0
- package/src/components/src/atoms/product-card-button/index.tsx +203 -0
- package/src/components/src/atoms/radio-group-input/index.tsx +84 -0
- package/src/components/src/atoms/rating-input/index.tsx +47 -0
- package/src/components/src/atoms/safe-area-container.tsx +29 -0
- package/src/components/src/atoms/section/index.ts +1 -0
- package/src/components/src/atoms/section/section.tsx +76 -0
- package/src/components/src/atoms/select/index.tsx +100 -0
- package/src/components/src/atoms/spacer/index.tsx +26 -0
- package/src/components/src/atoms/stars/index.tsx +124 -0
- package/src/components/src/atoms/stars/star-filled.png +0 -0
- package/src/components/src/atoms/stars/star-unfilled.png +0 -0
- package/src/components/src/atoms/text/index.tsx +1 -0
- package/src/components/src/atoms/video/index.tsx +242 -0
- package/src/components/src/atoms/video/index.web.tsx +144 -0
- package/src/components/src/blocks/base-blocks/base-rich-text/index.tsx +49 -0
- package/src/components/src/blocks/bundle-list-block/index.tsx +21 -0
- package/src/components/src/blocks/divider-block/index.tsx +22 -0
- package/src/components/src/blocks/dummy/index.tsx +3 -0
- package/src/components/src/blocks/manage-address-form-block/index.tsx +172 -0
- package/src/components/src/blocks/otp-signin/hooks.tsx +180 -0
- package/src/components/src/blocks/otp-signin/index.tsx +139 -0
- package/src/components/src/blocks/otp-verification/hooks.tsx +304 -0
- package/src/components/src/blocks/otp-verification/index.tsx +212 -0
- package/src/components/src/blocks/prefetch-metafields/index.tsx +16 -0
- package/src/components/src/blocks/product-card-block/index.tsx +53 -0
- package/src/components/src/blocks/product-card-block-v2/index.tsx +71 -0
- package/src/components/src/blocks/product-card-block-v2/index.web.tsx +76 -0
- package/src/components/src/blocks/product-recommendations-block/index.tsx +152 -0
- package/src/components/src/blocks/product-recommendations-block/index.web.tsx +175 -0
- package/src/components/src/blocks/rich-text-block/index.tsx +1 -0
- package/src/components/src/blocks/rich-text-block/rich-text.tsx +117 -0
- package/src/components/src/blocks/rich-text-block/rich-text.web.tsx +91 -0
- package/src/components/src/blocks/social-signin/index.tsx +46 -0
- package/src/components/src/blocks/status-bar-block/index.tsx +28 -0
- package/src/components/src/blocks/variant-selector-2-block/index.tsx +58 -0
- package/src/components/src/blocks/variant-selector-3-block/index.tsx +44 -0
- package/src/components/src/declaration.d.ts +4 -0
- package/src/components/src/hocs/withMetafield.tsx +109 -0
- package/src/components/src/index.ts +13 -0
- package/src/components/src/molecules/accordion/index.tsx +8 -0
- package/src/components/src/molecules/add-to-cart/index.tsx +471 -0
- package/src/components/src/molecules/address/addressCard.tsx +171 -0
- package/src/components/src/molecules/address-form/index.tsx +270 -0
- package/src/components/src/molecules/announcement-strip/icon.tsx +47 -0
- package/src/components/src/molecules/announcement-strip/index.tsx +51 -0
- package/src/components/src/molecules/app-bar/buttons/back.tsx +59 -0
- package/src/components/src/molecules/app-bar/buttons/cart.tsx +63 -0
- package/src/components/src/molecules/app-bar/buttons/index.ts +6 -0
- package/src/components/src/molecules/app-bar/buttons/logo.tsx +46 -0
- package/src/components/src/molecules/app-bar/buttons/logo.web.tsx +42 -0
- package/src/components/src/molecules/app-bar/buttons/profile.tsx +25 -0
- package/src/components/src/molecules/app-bar/buttons/search.tsx +23 -0
- package/src/components/src/molecules/app-bar/buttons/wishlist.tsx +27 -0
- package/src/components/src/molecules/app-bar/expanded-search.tsx +28 -0
- package/src/components/src/molecules/app-bar/index.tsx +308 -0
- package/src/components/src/molecules/app-bar/index.web.tsx +284 -0
- package/src/components/src/molecules/appbar-layout-elements.tsx +71 -0
- package/src/components/src/molecules/appbar-template/back.tsx +20 -0
- package/src/components/src/molecules/appbar-template/cart.tsx +39 -0
- package/src/components/src/molecules/appbar-template/default.tsx +52 -0
- package/src/components/src/molecules/appbar-template/index.tsx +93 -0
- package/src/components/src/molecules/appbar-template/minimal.tsx +27 -0
- package/src/components/src/molecules/appbar-template/tabs.tsx +41 -0
- package/src/components/src/molecules/appbar-template/wishlist.tsx +42 -0
- package/src/components/src/molecules/appbar-v2/appbar-v2.tsx +497 -0
- package/src/components/src/molecules/appbar-v2/appbar-v2.web.tsx +512 -0
- package/src/components/src/molecules/appbar-v2/appbar-variants/back.ts +42 -0
- package/src/components/src/molecules/appbar-v2/appbar-variants/cart.ts +183 -0
- package/src/components/src/molecules/appbar-v2/appbar-variants/default.ts +189 -0
- package/src/components/src/molecules/appbar-v2/appbar-variants/minimal.ts +52 -0
- package/src/components/src/molecules/appbar-v2/appbar-variants/tabs.ts +170 -0
- package/src/components/src/molecules/appbar-v2/appbar-variants/wishlist.ts +180 -0
- package/src/components/src/molecules/appbar-v2/appbar-variants.ts +15 -0
- package/src/components/src/molecules/appbar-v2/index.ts +2 -0
- package/src/components/src/molecules/avatar/index.tsx +43 -0
- package/src/components/src/molecules/base-accordion-list/index.tsx +56 -0
- package/src/components/src/molecules/bottom-bar/bottom-bar.tsx +11 -0
- package/src/components/src/molecules/bottom-bar/bottom-bar.web.tsx +111 -0
- package/src/components/src/molecules/bottom-bar/index.tsx +1 -0
- package/src/components/src/molecules/bundle-list-item/index.tsx +200 -0
- package/src/components/src/molecules/carousel/carousel-item.tsx +206 -0
- package/src/components/src/molecules/carousel/eye-close.tsx +19 -0
- package/src/components/src/molecules/carousel/horizontal-carousel.tsx +418 -0
- package/src/components/src/molecules/carousel/index.tsx +85 -0
- package/src/components/src/molecules/carousel/index.web.tsx +111 -0
- package/src/components/src/molecules/carousel/indicator.tsx +133 -0
- package/src/components/src/molecules/carousel/indicator.web.tsx +77 -0
- package/src/components/src/molecules/carousel/rich-subtitle.tsx +27 -0
- package/src/components/src/molecules/carousel/rich-subtitle.web.tsx +31 -0
- package/src/components/src/molecules/carousel/types.ts +41 -0
- package/src/components/src/molecules/carousel/utils.ts +116 -0
- package/src/components/src/molecules/carousel/v2.tsx +46 -0
- package/src/components/src/molecules/carousel/vertical-carousel.tsx +275 -0
- package/src/components/src/molecules/cart-goals/components/amount-saved.tsx +82 -0
- package/src/components/src/molecules/cart-goals/components/goal-achieved/label.tsx +56 -0
- package/src/components/src/molecules/cart-goals/components/header.tsx +106 -0
- package/src/components/src/molecules/cart-goals/components/ineligible-text.tsx +61 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/index.tsx +27 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-1.tsx +50 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-10.tsx +53 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-2.tsx +43 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-3.tsx +44 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-4.tsx +53 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-7.tsx +44 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-layout/types.ts +13 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/CircleWithProgress.tsx +94 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/constants.ts +6 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/index.tsx +28 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-1.tsx +183 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-10.tsx +242 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-2.tsx +160 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-3.tsx +113 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-4-utils.ts +39 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-4.tsx +216 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-7.tsx +113 -0
- package/src/components/src/molecules/cart-goals/components/multi-tier-progress/types.ts +18 -0
- package/src/components/src/molecules/cart-goals/components/single-tier-progress.tsx +210 -0
- package/src/components/src/molecules/cart-goals/components/success-modal/index.tsx +117 -0
- package/src/components/src/molecules/cart-goals/haptics.ts +40 -0
- package/src/components/src/molecules/cart-goals/index.tsx +2 -0
- package/src/components/src/molecules/cart-goals/multi-tier-utils.ts +139 -0
- package/src/components/src/molecules/cart-goals/multi-tier.tsx +466 -0
- package/src/components/src/molecules/cart-goals/single-tier-utils.ts +45 -0
- package/src/components/src/molecules/cart-goals/single-tier.tsx +521 -0
- package/src/components/src/molecules/cart-goals/types.ts +105 -0
- package/src/components/src/molecules/cart-goals/use-goal-success-modal.tsx +103 -0
- package/src/components/src/molecules/cart-goals/use-tier-change.ts +42 -0
- package/src/components/src/molecules/cart-goals/utils.ts +153 -0
- package/src/components/src/molecules/checkout-bar/index.tsx +155 -0
- package/src/components/src/molecules/checkout-bar-v2/cart-custom-attributes-interceptor.tsx +130 -0
- package/src/components/src/molecules/checkout-bar-v2/circle.tsx +63 -0
- package/src/components/src/molecules/checkout-bar-v2/goals.tsx +391 -0
- package/src/components/src/molecules/checkout-bar-v2/goals.web.tsx +374 -0
- package/src/components/src/molecules/checkout-bar-v2/index.tsx +267 -0
- package/src/components/src/molecules/checkout-bar-v2/index.web.tsx +115 -0
- package/src/components/src/molecules/checkout-bar-v2/interceptor.tsx +73 -0
- package/src/components/src/molecules/checkout-bar-v2/out-of-stock-modal/index.tsx +216 -0
- package/src/components/src/molecules/checkout-bar-v2/out-of-stock-modal/item.tsx +94 -0
- package/src/components/src/molecules/checkout-bar-v2/out-of-stock-modal/styles.ts +136 -0
- package/src/components/src/molecules/chips-navigation/chip.tsx +83 -0
- package/src/components/src/molecules/chips-navigation/horizontal.tsx +140 -0
- package/src/components/src/molecules/chips-navigation/horizontal.web.tsx +145 -0
- package/src/components/src/molecules/chips-navigation/index.tsx +13 -0
- package/src/components/src/molecules/chips-navigation/index.web.ts +13 -0
- package/src/components/src/molecules/chips-navigation/utils.ts +35 -0
- package/src/components/src/molecules/chips-navigation/vertical.tsx +108 -0
- package/src/components/src/molecules/choice-sheet-content/index.tsx +111 -0
- package/src/components/src/molecules/confirmation-popup/index.tsx +51 -0
- package/src/components/src/molecules/controlled-video/index.tsx +316 -0
- package/src/components/src/molecules/currency-selection-prompt/index.tsx +24 -0
- package/src/components/src/molecules/currency-selector/index.tsx +244 -0
- package/src/components/src/molecules/currency-selector/layout-element.tsx +24 -0
- package/src/components/src/molecules/direct-navigation/index.tsx +48 -0
- package/src/components/src/molecules/discount-label/index.tsx +55 -0
- package/src/components/src/molecules/divider/index.tsx +23 -0
- package/src/components/src/molecules/dropdown-picker/index.tsx +217 -0
- package/src/components/src/molecules/empty-screen-v2/index.tsx +83 -0
- package/src/components/src/molecules/fallback/index.tsx +70 -0
- package/src/components/src/molecules/filter/color-filter.tsx +173 -0
- package/src/components/src/molecules/filter/index.tsx +244 -0
- package/src/components/src/molecules/filter/index.web.tsx +111 -0
- package/src/components/src/molecules/filter/selectors.tsx +623 -0
- package/src/components/src/molecules/form-input/index.tsx +451 -0
- package/src/components/src/molecules/full-screen-loading/index.tsx +20 -0
- package/src/components/src/molecules/generic-form/common.tsx +298 -0
- package/src/components/src/molecules/generic-form/index.tsx +131 -0
- package/src/components/src/molecules/generic-form/types.tsx +30 -0
- package/src/components/src/molecules/generic-product-card/card.tsx +5 -0
- package/src/components/src/molecules/generic-product-card/card.web.tsx +1 -0
- package/src/components/src/molecules/generic-product-card/cardV2.tsx +342 -0
- package/src/components/src/molecules/generic-product-card/common.tsx +590 -0
- package/src/components/src/molecules/generic-product-card/index.tsx +2 -0
- package/src/components/src/molecules/generic-product-card/tags.tsx +178 -0
- package/src/components/src/molecules/generic-product-card/types.tsx +219 -0
- package/src/components/src/molecules/generic-product-card/wrapper.tsx +39 -0
- package/src/components/src/molecules/gift-item-card/index.tsx +44 -0
- package/src/components/src/molecules/gift-item-selected-card/index.tsx +28 -0
- package/src/components/src/molecules/hidden-block/index.tsx +8 -0
- package/src/components/src/molecules/hidden-block/index.web.tsx +81 -0
- package/src/components/src/molecules/image-compare/index.tsx +236 -0
- package/src/components/src/molecules/image-compare/index.web.tsx +213 -0
- package/src/components/src/molecules/image-navigation/index.tsx +32 -0
- package/src/components/src/molecules/image-preview/image-preview.tsx +295 -0
- package/src/components/src/molecules/image-preview/image-preview.web.tsx +157 -0
- package/src/components/src/molecules/image-preview-2/close-icon-button.tsx +11 -0
- package/src/components/src/molecules/image-preview-2/constants.ts +2 -0
- package/src/components/src/molecules/image-preview-2/footer-item.tsx +52 -0
- package/src/components/src/molecules/image-preview-2/footer.tsx +58 -0
- package/src/components/src/molecules/image-preview-2/index.tsx +139 -0
- package/src/components/src/molecules/image-preview-2/types.ts +72 -0
- package/src/components/src/molecules/image-text/index.tsx +139 -0
- package/src/components/src/molecules/line-item/index.tsx +45 -0
- package/src/components/src/molecules/list-item/index.tsx +758 -0
- package/src/components/src/molecules/loader/index.tsx +40 -0
- package/src/components/src/molecules/menu/accordion/image-menu-accordion-list.tsx +114 -0
- package/src/components/src/molecules/menu/accordion/text-menu-accordion-list.tsx +111 -0
- package/src/components/src/molecules/menu/common/horizontal-menu-list.tsx +279 -0
- package/src/components/src/molecules/menu/common/menu-accordion.tsx +69 -0
- package/src/components/src/molecules/menu/common/menu-grid.tsx +179 -0
- package/src/components/src/molecules/menu/common/vertical-menu-list.tsx +197 -0
- package/src/components/src/molecules/menu/common/vertical-menu-list.web.tsx +196 -0
- package/src/components/src/molecules/menu/expandable-grid/image-menu-expandable-grid.tsx +128 -0
- package/src/components/src/molecules/menu/expandable-grid/text-menu-expandable-grid.tsx +107 -0
- package/src/components/src/molecules/menu/grid/image-menu-grid.tsx +58 -0
- package/src/components/src/molecules/menu/grid/text-menu-grid.tsx +55 -0
- package/src/components/src/molecules/menu/index.tsx +38 -0
- package/src/components/src/molecules/menu/item/image-menu-item.tsx +226 -0
- package/src/components/src/molecules/menu/item/text-menu-item.tsx +174 -0
- package/src/components/src/molecules/menu/list/horizontal-image-menu-list.tsx +55 -0
- package/src/components/src/molecules/menu/list/horizontal-text-menu-list.tsx +53 -0
- package/src/components/src/molecules/menu/list/image-menu-list.tsx +38 -0
- package/src/components/src/molecules/menu/list/text-menu-list.tsx +38 -0
- package/src/components/src/molecules/menu/list/vertical-image-menu-list.tsx +58 -0
- package/src/components/src/molecules/menu/list/vertical-text-menu-list.tsx +52 -0
- package/src/components/src/molecules/menu/sub-menu-item.tsx +50 -0
- package/src/components/src/molecules/menu/tabs/horizontal-image-menu-tabs.tsx +211 -0
- package/src/components/src/molecules/menu/tabs/horizontal-text-menu-tabs.tsx +211 -0
- package/src/components/src/molecules/menu/tabs/image-menu-tabs.tsx +52 -0
- package/src/components/src/molecules/menu/tabs/text-menu-tabs.tsx +49 -0
- package/src/components/src/molecules/menu/tabs/vertical-image-menu-tabs.tsx +224 -0
- package/src/components/src/molecules/menu/tabs/vertical-text-menu-tabs.tsx +222 -0
- package/src/components/src/molecules/menu/types.ts +580 -0
- package/src/components/src/molecules/menu/utils.ts +229 -0
- package/src/components/src/molecules/metafield-tag/index.tsx +36 -0
- package/src/components/src/molecules/metafield-tag/index.web.tsx +3 -0
- package/src/components/src/molecules/metafield-text/index.tsx +47 -0
- package/src/components/src/molecules/no-internet-block/index.tsx +43 -0
- package/src/components/src/molecules/only-text-navigation.tsx/index.tsx +79 -0
- package/src/components/src/molecules/order-item/index.tsx +108 -0
- package/src/components/src/molecules/payment-bar/index.tsx +139 -0
- package/src/components/src/molecules/pdp-quantity-selector/index.tsx +44 -0
- package/src/components/src/molecules/phone-country-input/index.tsx +153 -0
- package/src/components/src/molecules/phone-input/index.tsx +287 -0
- package/src/components/src/molecules/phone-input/index.web.tsx +21 -0
- package/src/components/src/molecules/price-box/index.tsx +54 -0
- package/src/components/src/molecules/price-text/index.tsx +40 -0
- package/src/components/src/molecules/product-card/index.tsx +162 -0
- package/src/components/src/molecules/product-card/wishlist/index.tsx +35 -0
- package/src/components/src/molecules/product-card-with-carousel/index.tsx +139 -0
- package/src/components/src/molecules/product-collection/GotoLinkButton.tsx +59 -0
- package/src/components/src/molecules/product-collection/GotoLinkButton.web.tsx +65 -0
- package/src/components/src/molecules/product-collection/index.tsx +458 -0
- package/src/components/src/molecules/product-collection/wrapper.tsx +224 -0
- package/src/components/src/molecules/product-components/add-to-bundle.tsx +19 -0
- package/src/components/src/molecules/product-components/add-to-cart.tsx +708 -0
- package/src/components/src/molecules/product-components/add-to-cart.web.tsx +398 -0
- package/src/components/src/molecules/product-components/add-to-wishlist-v2.tsx +43 -0
- package/src/components/src/molecules/product-components/add-to-wishlist.tsx +42 -0
- package/src/components/src/molecules/product-components/avg-ratings.tsx +56 -0
- package/src/components/src/molecules/product-components/carousel.tsx +85 -0
- package/src/components/src/molecules/product-components/color-swatch.tsx +81 -0
- package/src/components/src/molecules/product-components/compare-at-price.tsx +52 -0
- package/src/components/src/molecules/product-components/delete-from-wishlist.tsx +39 -0
- package/src/components/src/molecules/product-components/discount-label.tsx +109 -0
- package/src/components/src/molecules/product-components/goto-button-v2.tsx +42 -0
- package/src/components/src/molecules/product-components/hooks/carousel.ts +160 -0
- package/src/components/src/molecules/product-components/image.tsx +132 -0
- package/src/components/src/molecules/product-components/in-stock.tsx +86 -0
- package/src/components/src/molecules/product-components/index.tsx +25 -0
- package/src/components/src/molecules/product-components/metafield-rich-text.tsx +61 -0
- package/src/components/src/molecules/product-components/metafield-shopify-richtext.tsx +54 -0
- package/src/components/src/molecules/product-components/metafield-text.tsx +48 -0
- package/src/components/src/molecules/product-components/min-variant-price.tsx +48 -0
- package/src/components/src/molecules/product-components/move-to-cart.tsx +35 -0
- package/src/components/src/molecules/product-components/notify-me.tsx +93 -0
- package/src/components/src/molecules/product-components/open-modal.tsx +35 -0
- package/src/components/src/molecules/product-components/overlay.tsx +25 -0
- package/src/components/src/molecules/product-components/price.tsx +64 -0
- package/src/components/src/molecules/product-components/product-tag-v2.tsx +108 -0
- package/src/components/src/molecules/product-components/product-tag.tsx +56 -0
- package/src/components/src/molecules/product-components/product-type.tsx +32 -0
- package/src/components/src/molecules/product-components/product-variant-options.tsx +69 -0
- package/src/components/src/molecules/product-components/product-variant-selector-3.tsx +67 -0
- package/src/components/src/molecules/product-components/product-vendor.tsx +36 -0
- package/src/components/src/molecules/product-components/quantity-selector.tsx +307 -0
- package/src/components/src/molecules/product-components/quantity-selector.web.tsx +332 -0
- package/src/components/src/molecules/product-components/ratings-count.tsx +57 -0
- package/src/components/src/molecules/product-components/scarcity-counter.tsx +159 -0
- package/src/components/src/molecules/product-components/selling-plan-compare-at-price.tsx +43 -0
- package/src/components/src/molecules/product-components/selling-plan-discount.tsx +42 -0
- package/src/components/src/molecules/product-components/selling-plan-price.tsx +44 -0
- package/src/components/src/molecules/product-components/share-icon.tsx +49 -0
- package/src/components/src/molecules/product-components/spacer.tsx +18 -0
- package/src/components/src/molecules/product-components/star-ratings.tsx +48 -0
- package/src/components/src/molecules/product-components/text-tag.tsx +36 -0
- package/src/components/src/molecules/product-components/title.tsx +34 -0
- package/src/components/src/molecules/product-components/title.web.tsx +34 -0
- package/src/components/src/molecules/product-components/types.tsx +7 -0
- package/src/components/src/molecules/product-components/upsell-product-price.tsx +82 -0
- package/src/components/src/molecules/product-components/utils/add-to-cart.ts +108 -0
- package/src/components/src/molecules/product-components/utils/selected-selling-plan.ts +32 -0
- package/src/components/src/molecules/product-components/utils/selling-plan-compare-at-price.ts +36 -0
- package/src/components/src/molecules/product-components/utils/selling-plan-discount.ts +64 -0
- package/src/components/src/molecules/product-components/utils/selling-plan-price.ts +36 -0
- package/src/components/src/molecules/product-components/variant-selector.tsx +88 -0
- package/src/components/src/molecules/product-components/variant-sku.tsx +35 -0
- package/src/components/src/molecules/product-description-with-tags/index.tsx +56 -0
- package/src/components/src/molecules/product-group/index.tsx +64 -0
- package/src/components/src/molecules/product-group/product-group-list.tsx +64 -0
- package/src/components/src/molecules/product-image/index.tsx +143 -0
- package/src/components/src/molecules/product-tag/index.tsx +33 -0
- package/src/components/src/molecules/product-title/index.tsx +28 -0
- package/src/components/src/molecules/product-vendor/index.tsx +18 -0
- package/src/components/src/molecules/product-video/index.tsx +80 -0
- package/src/components/src/molecules/profile/index.tsx +0 -0
- package/src/components/src/molecules/quantity-selector/index.tsx +596 -0
- package/src/components/src/molecules/review-label/index.tsx +33 -0
- package/src/components/src/molecules/rich-text/index.tsx +1 -0
- package/src/components/src/molecules/rich-text/rich-text.tsx +1 -0
- package/src/components/src/molecules/rich-text/rich-text.web.tsx +1 -0
- package/src/components/src/molecules/search-input/index.tsx +248 -0
- package/src/components/src/molecules/sheet-header/index.tsx +55 -0
- package/src/components/src/molecules/shipping-address-label/index.tsx +67 -0
- package/src/components/src/molecules/simple-image-text/index.tsx +85 -0
- package/src/components/src/molecules/single-product-card/index.tsx +27 -0
- package/src/components/src/molecules/size-guide/index.tsx +187 -0
- package/src/components/src/molecules/skeleton/index.tsx +47 -0
- package/src/components/src/molecules/skeleton/index.web.tsx +18 -0
- package/src/components/src/molecules/skeleton/product-card.tsx +52 -0
- package/src/components/src/molecules/social-sign-in/apple-signin.tsx +88 -0
- package/src/components/src/molecules/social-sign-in/apple-signin.web.ts +4 -0
- package/src/components/src/molecules/social-sign-in/google-signin.tsx +105 -0
- package/src/components/src/molecules/social-sign-in/google-signin.web.ts +3 -0
- package/src/components/src/molecules/social-sign-in/social-auth.tsx +83 -0
- package/src/components/src/molecules/social-sign-in/social-signin-layout-item.tsx +54 -0
- package/src/components/src/molecules/social-sign-in/truecaller-signin.tsx +103 -0
- package/src/components/src/molecules/sub-navigations/index.tsx +169 -0
- package/src/components/src/molecules/subscription-v2/index.tsx +47 -0
- package/src/components/src/molecules/subscription-v2/subscription.tsx +356 -0
- package/src/components/src/molecules/subscription-v2/subscriptions-option-modal.tsx +78 -0
- package/src/components/src/molecules/switch/index.tsx +72 -0
- package/src/components/src/molecules/tab-selector/index.tsx +160 -0
- package/src/components/src/molecules/tab-view/index.tsx +2 -0
- package/src/components/src/molecules/tab-view/tab-item.tsx +67 -0
- package/src/components/src/molecules/tab-view/tab-pane.tsx +13 -0
- package/src/components/src/molecules/tab-view/tabs.tsx +64 -0
- package/src/components/src/molecules/text-carousel/index.tsx +111 -0
- package/src/components/src/molecules/text-label/index.tsx +36 -0
- package/src/components/src/molecules/toasts/add-to-cart-toast.tsx +48 -0
- package/src/components/src/molecules/toasts/brew-error-toast.tsx +49 -0
- package/src/components/src/molecules/toasts/brew-success-toast.tsx +55 -0
- package/src/components/src/molecules/toasts/index.tsx +3 -0
- package/src/components/src/molecules/trending-pillet/index.tsx +48 -0
- package/src/components/src/molecules/variant-item-selector/index.tsx +171 -0
- package/src/components/src/molecules/variant-selector-2/index.tsx +669 -0
- package/src/components/src/molecules/variant-selector-3/default-color-item.tsx +120 -0
- package/src/components/src/molecules/variant-selector-3/default-shopify-color.tsx +167 -0
- package/src/components/src/molecules/variant-selector-3/default-variant-image.tsx +82 -0
- package/src/components/src/molecules/variant-selector-3/index.tsx +114 -0
- package/src/components/src/molecules/variant-selector-3/option-items.tsx +171 -0
- package/src/components/src/molecules/variant-selector-3/option-list.tsx +86 -0
- package/src/components/src/molecules/variant-selector-3/option.tsx +42 -0
- package/src/components/src/molecules/variant-selector-3/utils.ts +131 -0
- package/src/components/src/molecules/variant-selector-3/variant-heading.tsx +162 -0
- package/src/components/src/molecules/variant-selector-3/variant-options.tsx +201 -0
- package/src/components/src/molecules/variant-selector-modal/index.tsx +127 -0
- package/src/components/src/molecules/variant-selector-type/index.tsx +235 -0
- package/src/components/src/molecules/video-carousel-item/index.tsx +183 -0
- package/src/components/src/molecules/video-carousel-item/product-list.tsx +258 -0
- package/src/components/src/molecules/video-carousel-item/product-list.web.tsx +197 -0
- package/src/components/src/molecules/way-to-reward-card/index.tsx +236 -0
- package/src/components/src/molecules/way-to-reward-card/index.web.tsx +188 -0
- package/src/components/src/molecules/web-view-auto-height/index.tsx +28 -0
- package/src/components/src/molecules/wishlist/add-to-wishlist-v2.tsx +144 -0
- package/src/components/src/molecules/wishlist/add-to-wishlist.tsx +136 -0
- package/src/components/src/molecules/wishlist/index.ts +1 -0
- package/src/components/src/molecules/wishlist/move-to-cart.tsx +57 -0
- package/src/components/src/molecules/wishlist/remove-from-wishlist.tsx +40 -0
- package/src/components/src/molecules/youtube-video/index.tsx +54 -0
- package/src/components/src/molecules/youtube-video/index.web.tsx +44 -0
- package/src/components/src/organisms/a1-accordion/index.tsx +93 -0
- package/src/components/src/organisms/a1-accordion/index.web.tsx +82 -0
- package/src/components/src/organisms/a1-accordion-image/index.tsx +97 -0
- package/src/components/src/organisms/a1-collection-image-banner/index.tsx +84 -0
- package/src/components/src/organisms/a1-collection-image-banner/index.web.tsx +23 -0
- package/src/components/src/organisms/a1-generic-metafield-accordion/index.tsx +90 -0
- package/src/components/src/organisms/a1-generic-metafield-accordion/index.web.tsx +10 -0
- package/src/components/src/organisms/a1-image-banner/index.tsx +86 -0
- package/src/components/src/organisms/a1-image-list/index.tsx +99 -0
- package/src/components/src/organisms/a1-product-description-html/index.tsx +137 -0
- package/src/components/src/organisms/a1-product-description-html/index.web.tsx +90 -0
- package/src/components/src/organisms/a1-product-grid/index.tsx +60 -0
- package/src/components/src/organisms/a1-product-list/index.tsx +92 -0
- package/src/components/src/organisms/accordion-image/index.tsx +68 -0
- package/src/components/src/organisms/add-address/index.tsx +62 -0
- package/src/components/src/organisms/add-review/index.tsx +190 -0
- package/src/components/src/organisms/add-to-bundle/index.tsx +44 -0
- package/src/components/src/organisms/add-to-cart-bar/add-to-card-bar.tsx +115 -0
- package/src/components/src/organisms/add-to-cart-bar/index.tsx +1 -0
- package/src/components/src/organisms/add-to-cart-bar/v2.tsx +205 -0
- package/src/components/src/organisms/add-to-cart-bar/wrapper.tsx +44 -0
- package/src/components/src/organisms/add-to-wishlist-bar/index.tsx +96 -0
- package/src/components/src/organisms/address-form/index.tsx +511 -0
- package/src/components/src/organisms/address-form-input-field/index.tsx +375 -0
- package/src/components/src/organisms/address-list/index.tsx +154 -0
- package/src/components/src/organisms/announcement-carousel/index.tsx +207 -0
- package/src/components/src/organisms/announcement-carousel/index.web.tsx +73 -0
- package/src/components/src/organisms/announcement-ticker/index.tsx +247 -0
- package/src/components/src/organisms/announcement-ticker/index.web.tsx +169 -0
- package/src/components/src/organisms/apply-coupon/index.tsx +395 -0
- package/src/components/src/organisms/apply-coupon-v2/applied-coupon-card.tsx +84 -0
- package/src/components/src/organisms/apply-coupon-v2/available-coupons.tsx +123 -0
- package/src/components/src/organisms/apply-coupon-v2/coupon-svg-bg.tsx +25 -0
- package/src/components/src/organisms/apply-coupon-v2/index.tsx +367 -0
- package/src/components/src/organisms/blog-list/blog-data.tsx +268 -0
- package/src/components/src/organisms/blog-list/blog-item.tsx +70 -0
- package/src/components/src/organisms/blog-list/empty-blog-list.tsx +42 -0
- package/src/components/src/organisms/blog-list/index.tsx +102 -0
- package/src/components/src/organisms/blog-list/index.web.tsx +92 -0
- package/src/components/src/organisms/brew-collection-image-banner/index.tsx +96 -0
- package/src/components/src/organisms/bundle-bar/index.tsx +128 -0
- package/src/components/src/organisms/bundle-filter-bar/index.tsx +114 -0
- package/src/components/src/organisms/bundle-items-modal/index.tsx +140 -0
- package/src/components/src/organisms/bundle-list/index.tsx +65 -0
- package/src/components/src/organisms/buy-now-bar/index.tsx +79 -0
- package/src/components/src/organisms/carousel-with-background-blur/carousel.tsx +393 -0
- package/src/components/src/organisms/carousel-with-background-blur/carousel.web.tsx +179 -0
- package/src/components/src/organisms/carousel-with-background-blur/index.tsx +90 -0
- package/src/components/src/organisms/carousel-with-background-blur/index.web.tsx +73 -0
- package/src/components/src/organisms/carousel-with-background-blur/indicator.tsx +144 -0
- package/src/components/src/organisms/cart-custom-attributes/index.tsx +103 -0
- package/src/components/src/organisms/cart-goal/index.tsx +116 -0
- package/src/components/src/organisms/cart-goals/index.tsx +2 -0
- package/src/components/src/organisms/cart-goals/milestones.tsx +233 -0
- package/src/components/src/organisms/cart-goals/progress-bar.tsx +214 -0
- package/src/components/src/organisms/cart-list/cart-item.tsx +0 -0
- package/src/components/src/organisms/cart-list/empty-cart.tsx +113 -0
- package/src/components/src/organisms/cart-list/index.tsx +271 -0
- package/src/components/src/organisms/cart-payment-web-view/index.tsx +213 -0
- package/src/components/src/organisms/categories-navigation/index.tsx +168 -0
- package/src/components/src/organisms/change-address/index.tsx +512 -0
- package/src/components/src/organisms/change-address-v2/index.tsx +223 -0
- package/src/components/src/organisms/change-password/index.tsx +231 -0
- package/src/components/src/organisms/chips-navigation/index.tsx +41 -0
- package/src/components/src/organisms/chips-navigation/index.web.tsx +69 -0
- package/src/components/src/organisms/chips-navigation-accordion/index.tsx +47 -0
- package/src/components/src/organisms/collection-list/index.tsx +74 -0
- package/src/components/src/organisms/collection-list-background/index.tsx +99 -0
- package/src/components/src/organisms/color-image/index.tsx +79 -0
- package/src/components/src/organisms/color-swatch-group/index.tsx +141 -0
- package/src/components/src/organisms/confirm-dialog/index.tsx +34 -0
- package/src/components/src/organisms/countdown-banner/common.tsx +263 -0
- package/src/components/src/organisms/countdown-banner/index.tsx +143 -0
- package/src/components/src/organisms/countdown-banner/index.web.tsx +176 -0
- package/src/components/src/organisms/countdown-banner/types.tsx +29 -0
- package/src/components/src/organisms/currency-selector/index.tsx +39 -0
- package/src/components/src/organisms/delete-account/index.tsx +93 -0
- package/src/components/src/organisms/delete-account-privacy/index.tsx +39 -0
- package/src/components/src/organisms/delivery-details/index.tsx +157 -0
- package/src/components/src/organisms/discount-code-input/index.tsx +152 -0
- package/src/components/src/organisms/divider-heading/index.tsx +51 -0
- package/src/components/src/organisms/edit-address/index.tsx +53 -0
- package/src/components/src/organisms/empty-screen/index.tsx +74 -0
- package/src/components/src/organisms/empty-screen-v2/index.tsx +26 -0
- package/src/components/src/organisms/empty-searches/index.tsx +96 -0
- package/src/components/src/organisms/estimated-delivery-date/dates-mapping.ts +23 -0
- package/src/components/src/organisms/estimated-delivery-date/index.tsx +141 -0
- package/src/components/src/organisms/faqs/defaults.ts +65 -0
- package/src/components/src/organisms/faqs/index.tsx +51 -0
- package/src/components/src/organisms/faqs/index.web.tsx +64 -0
- package/src/components/src/organisms/follow-us/index.tsx +58 -0
- package/src/components/src/organisms/forgot-password/index.tsx +228 -0
- package/src/components/src/organisms/free-engraving/index.tsx +180 -0
- package/src/components/src/organisms/gift-items-list/index.tsx +98 -0
- package/src/components/src/organisms/gift-wrap-list/custom-attributes-form.tsx +77 -0
- package/src/components/src/organisms/gift-wrap-list/gift-wrap-item.tsx +133 -0
- package/src/components/src/organisms/gift-wrap-list/index.tsx +72 -0
- package/src/components/src/organisms/goto-button/index.tsx +53 -0
- package/src/components/src/organisms/goto-button/index.web.tsx +46 -0
- package/src/components/src/organisms/goto-button-v2/index.tsx +58 -0
- package/src/components/src/organisms/horizontal-tabs-menu/defaults.ts +797 -0
- package/src/components/src/organisms/horizontal-tabs-menu/index.tsx +79 -0
- package/src/components/src/organisms/icon-list/index.tsx +150 -0
- package/src/components/src/organisms/image-banner/index.tsx +158 -0
- package/src/components/src/organisms/image-collage/constants.ts +8 -0
- package/src/components/src/organisms/image-collage/index.tsx +147 -0
- package/src/components/src/organisms/image-collage/variants.common.ts +415 -0
- package/src/components/src/organisms/image-collage/variants.ts +129 -0
- package/src/components/src/organisms/image-collage/variants.web.ts +119 -0
- package/src/components/src/organisms/image-compare-block/index.tsx +48 -0
- package/src/components/src/organisms/image-list/index.tsx +427 -0
- package/src/components/src/organisms/image-list/utils.tsx +8 -0
- package/src/components/src/organisms/image-list/utils.web.tsx +6 -0
- package/src/components/src/organisms/image-list-accordion/index.tsx +47 -0
- package/src/components/src/organisms/image-marquee/index.tsx +178 -0
- package/src/components/src/organisms/image-marquee/index.web.tsx +190 -0
- package/src/components/src/organisms/image-marquee/types.ts +14 -0
- package/src/components/src/organisms/image-preview/index.tsx +51 -0
- package/src/components/src/organisms/image-video-reel/carouse-item.tsx +348 -0
- package/src/components/src/organisms/image-video-reel/carouse-item.web.tsx +318 -0
- package/src/components/src/organisms/image-video-reel/index.tsx +359 -0
- package/src/components/src/organisms/image-video-reel/indicator.tsx +116 -0
- package/src/components/src/organisms/image-video-reel/indicator.web.tsx +80 -0
- package/src/components/src/organisms/image-video-reel/types.ts +103 -0
- package/src/components/src/organisms/infinite-product-grid/index.tsx +218 -0
- package/src/components/src/organisms/infinite-product-grid/index.web.tsx +105 -0
- package/src/components/src/organisms/infinite-product-grid-v2/index.tsx +163 -0
- package/src/components/src/organisms/judgeme-reviews/index.tsx +129 -0
- package/src/components/src/organisms/judgeme-reviews/utils.ts +77 -0
- package/src/components/src/organisms/last-order/index.tsx +40 -0
- package/src/components/src/organisms/metafield-image-compare-block/hook.tsx +119 -0
- package/src/components/src/organisms/metafield-image-compare-block/index.tsx +59 -0
- package/src/components/src/organisms/metafield-product-list/index.tsx +114 -0
- package/src/components/src/organisms/metafield-rich-text/index.tsx +101 -0
- package/src/components/src/organisms/metafield-rich-text/metafield-accordian.tsx +51 -0
- package/src/components/src/organisms/metafield-rich-text/metafield-accordian.web.tsx +55 -0
- package/src/components/src/organisms/metafield-size-chart-page/index.tsx +86 -0
- package/src/components/src/organisms/metafield-tag-block/index.tsx +28 -0
- package/src/components/src/organisms/metafield-text/index.tsx +87 -0
- package/src/components/src/organisms/metafields-product-group/index.tsx +89 -0
- package/src/components/src/organisms/more-menu/index.tsx +64 -0
- package/src/components/src/organisms/move-to-wishlist/index.tsx +79 -0
- package/src/components/src/organisms/multi-level-menu/index.tsx +54 -0
- package/src/components/src/organisms/opinew-reviews/index.tsx +102 -0
- package/src/components/src/organisms/opinew-reviews/utils.tsx +55 -0
- package/src/components/src/organisms/order-cancel/index.tsx +63 -0
- package/src/components/src/organisms/order-details-header/index.tsx +78 -0
- package/src/components/src/organisms/order-details-webview/index.tsx +47 -0
- package/src/components/src/organisms/order-list/index.tsx +458 -0
- package/src/components/src/organisms/order-payment-details/index.tsx +90 -0
- package/src/components/src/organisms/order-product-list/index.tsx +79 -0
- package/src/components/src/organisms/order-product-list-v2/index.tsx +158 -0
- package/src/components/src/organisms/otp-signup/index.tsx +186 -0
- package/src/components/src/organisms/past-searches/index.tsx +202 -0
- package/src/components/src/organisms/payment-confirmation/index.tsx +177 -0
- package/src/components/src/organisms/payment-details/index.tsx +264 -0
- package/src/components/src/organisms/payment-success/index.tsx +49 -0
- package/src/components/src/organisms/payment-web-view/index.tsx +285 -0
- package/src/components/src/organisms/payment-web-view-v4/index.tsx +600 -0
- package/src/components/src/organisms/pdp/index.tsx +168 -0
- package/src/components/src/organisms/pdp/index.web.tsx +60 -0
- package/src/components/src/organisms/pdp-description/index.tsx +104 -0
- package/src/components/src/organisms/pdp-description-native/index.tsx +63 -0
- package/src/components/src/organisms/pdp-description-native/index.web.tsx +11 -0
- package/src/components/src/organisms/pdp-metafield-video/index.tsx +153 -0
- package/src/components/src/organisms/popup-modal/index.tsx +129 -0
- package/src/components/src/organisms/previously-ordered-products/index.tsx +105 -0
- package/src/components/src/organisms/product-discount/common.tsx +123 -0
- package/src/components/src/organisms/product-discount/coupon-card.tsx +125 -0
- package/src/components/src/organisms/product-discount/defaults.ts +136 -0
- package/src/components/src/organisms/product-discount/empty-coupons.tsx +4 -0
- package/src/components/src/organisms/product-discount/empty-coupons.web.tsx +11 -0
- package/src/components/src/organisms/product-discount/index.tsx +228 -0
- package/src/components/src/organisms/product-discount/types.tsx +28 -0
- package/src/components/src/organisms/product-grid/index.tsx +86 -0
- package/src/components/src/organisms/product-hotspot/animated-circle.tsx +88 -0
- package/src/components/src/organisms/product-hotspot/animated-circle.web.tsx +55 -0
- package/src/components/src/organisms/product-hotspot/index.tsx +255 -0
- package/src/components/src/organisms/product-hotspot/item.tsx +124 -0
- package/src/components/src/organisms/product-hotspot/modal-body.tsx +50 -0
- package/src/components/src/organisms/product-hotspot/product-card.tsx +111 -0
- package/src/components/src/organisms/product-info/index.tsx +421 -0
- package/src/components/src/organisms/product-info/wrapper.tsx +15 -0
- package/src/components/src/organisms/product-info/wrapper.web.tsx +15 -0
- package/src/components/src/organisms/product-list/index.tsx +104 -0
- package/src/components/src/organisms/product-list/index.web.tsx +110 -0
- package/src/components/src/organisms/product-list/product-list.schema.ts +816 -0
- package/src/components/src/organisms/product-refresh/index.tsx +19 -0
- package/src/components/src/organisms/product-size-chart-v2/index.tsx +49 -0
- package/src/components/src/organisms/product-summary/index.tsx +1 -0
- package/src/components/src/organisms/product-summary/product-summary.tsx +253 -0
- package/src/components/src/organisms/product-summary/wrapper.tsx +36 -0
- package/src/components/src/organisms/profile/index.tsx +238 -0
- package/src/components/src/organisms/profile-2/index.tsx +254 -0
- package/src/components/src/organisms/profile-edit/constants.ts +74 -0
- package/src/components/src/organisms/profile-edit/index.tsx +802 -0
- package/src/components/src/organisms/profile-edit/styles.ts +371 -0
- package/src/components/src/organisms/profile-edit/types.ts +120 -0
- package/src/components/src/organisms/profile-edit/utils.ts +362 -0
- package/src/components/src/organisms/profile-menu/index.tsx +65 -0
- package/src/components/src/organisms/profile-signed-out/index.tsx +72 -0
- package/src/components/src/organisms/profile-signedout-v2/index.tsx +36 -0
- package/src/components/src/organisms/profile-signout/index.tsx +65 -0
- package/src/components/src/organisms/profile-user-greeting/index.tsx +113 -0
- package/src/components/src/organisms/promo-banner/PromoBanner.tsx +0 -0
- package/src/components/src/organisms/promo-banner/index.ts +0 -0
- package/src/components/src/organisms/promo-block/index.tsx +69 -0
- package/src/components/src/organisms/promo-carousel/index.tsx +101 -0
- package/src/components/src/organisms/promo-carousel/index.web.tsx +85 -0
- package/src/components/src/organisms/push-inbox/index.tsx +392 -0
- package/src/components/src/organisms/push-inbox/utils.ts +94 -0
- package/src/components/src/organisms/push-notification-prompt-button/index.tsx +45 -0
- package/src/components/src/organisms/push-notification-settings-block/index.tsx +119 -0
- package/src/components/src/organisms/quantity-selector-block/index.tsx +54 -0
- package/src/components/src/organisms/recent-order/addressSelector.tsx +88 -0
- package/src/components/src/organisms/recent-order/index.tsx +51 -0
- package/src/components/src/organisms/recent-order/paymentDetails.tsx +68 -0
- package/src/components/src/organisms/recently-viewed-products/index.tsx +92 -0
- package/src/components/src/organisms/recently-viewed-products/index.web.tsx +110 -0
- package/src/components/src/organisms/reels/index.tsx +467 -0
- package/src/components/src/organisms/reels/index.web.tsx +345 -0
- package/src/components/src/organisms/requires-auth/index.tsx +16 -0
- package/src/components/src/organisms/reset-password/index.tsx +140 -0
- package/src/components/src/organisms/review-bar/index.tsx +39 -0
- package/src/components/src/organisms/rewards-history/index.tsx +105 -0
- package/src/components/src/organisms/rewards-summary/index.tsx +146 -0
- package/src/components/src/organisms/rewards-summary-old/index.tsx +130 -0
- package/src/components/src/organisms/search-bar/index.tsx +34 -0
- package/src/components/src/organisms/search-product-list/index.tsx +31 -0
- package/src/components/src/organisms/search-recommendations/index.tsx +66 -0
- package/src/components/src/organisms/search-suggestions/index.tsx +194 -0
- package/src/components/src/organisms/search-suggestions-v2/collection-suggestions.tsx +61 -0
- package/src/components/src/organisms/search-suggestions-v2/index.tsx +91 -0
- package/src/components/src/organisms/search-suggestions-v2/page-suggestions.tsx +85 -0
- package/src/components/src/organisms/search-suggestions-v2/product-suggestions.tsx +174 -0
- package/src/components/src/organisms/search-suggestions-v2/search-term-suggestions.tsx +62 -0
- package/src/components/src/organisms/search-suggestions-v2/suggestion.tsx +100 -0
- package/src/components/src/organisms/shipping-address/index.tsx +59 -0
- package/src/components/src/organisms/shop-policy/index.tsx +93 -0
- package/src/components/src/organisms/shop-policy/index.web.tsx +12 -0
- package/src/components/src/organisms/shopify-customer-auth-webview/index.tsx +207 -0
- package/src/components/src/organisms/shopify-customer-payment-web-view/index.tsx +603 -0
- package/src/components/src/organisms/shopify-reviews/index.tsx +52 -0
- package/src/components/src/organisms/shopify-reviews/utils.ts +27 -0
- package/src/components/src/organisms/shopify-rich-text-block/index.tsx +60 -0
- package/src/components/src/organisms/shopify-store-credits/index.tsx +369 -0
- package/src/components/src/organisms/sign-in/index.tsx +242 -0
- package/src/components/src/organisms/sign-in-v2/index.tsx +282 -0
- package/src/components/src/organisms/sign-in-v3/index.tsx +259 -0
- package/src/components/src/organisms/sign-up/index.tsx +251 -0
- package/src/components/src/organisms/sign-up-v2/index.tsx +267 -0
- package/src/components/src/organisms/signin-modal/continue-as-guest.tsx +46 -0
- package/src/components/src/organisms/signin-modal/index.tsx +113 -0
- package/src/components/src/organisms/signup-modal/index.tsx +61 -0
- package/src/components/src/organisms/simpl-pay-block/index.tsx +84 -0
- package/src/components/src/organisms/single-level-navigation/index.tsx +91 -0
- package/src/components/src/organisms/snapmint-pay-block/index.tsx +173 -0
- package/src/components/src/organisms/spacer/index.tsx +17 -0
- package/src/components/src/organisms/subscription/index.tsx +52 -0
- package/src/components/src/organisms/subscription/subscription.tsx +226 -0
- package/src/components/src/organisms/subscription-selector-dropdown/extra-info.tsx +53 -0
- package/src/components/src/organisms/subscription-selector-dropdown/index.tsx +30 -0
- package/src/components/src/organisms/subscription-selector-dropdown/more-price-info.tsx +38 -0
- package/src/components/src/organisms/subscription-selector-dropdown/one-time-plan.tsx +85 -0
- package/src/components/src/organisms/subscription-selector-dropdown/purchase-plans.tsx +60 -0
- package/src/components/src/organisms/subscription-selector-dropdown/selling-plan-options.tsx +132 -0
- package/src/components/src/organisms/subscription-selector-dropdown/subscription-option-label.tsx +91 -0
- package/src/components/src/organisms/subscription-selector-dropdown/subscription.tsx +27 -0
- package/src/components/src/organisms/subscription-selector-dropdown/susbcription-plan.tsx +126 -0
- package/src/components/src/organisms/tabbed-product-collection/index.tsx +263 -0
- package/src/components/src/organisms/tabbed-product-collection/index.web.tsx +270 -0
- package/src/components/src/organisms/tag-redirect-product-images/index.tsx +203 -0
- package/src/components/src/organisms/tagged-page-size-chart/index.tsx +76 -0
- package/src/components/src/organisms/tagged-pdp-content/index.tsx +72 -0
- package/src/components/src/organisms/tagged-plp-content/index.tsx +67 -0
- package/src/components/src/organisms/tagged-rich-text/index.tsx +58 -0
- package/src/components/src/organisms/tagged-rich-text/index.web.tsx +25 -0
- package/src/components/src/organisms/tailored-variant-form/index.tsx +497 -0
- package/src/components/src/organisms/testimonials/Testimonials.tsx +45 -0
- package/src/components/src/organisms/testimonials/index.tsx +45 -0
- package/src/components/src/organisms/total-savings/index.tsx +50 -0
- package/src/components/src/organisms/trending-products/index.tsx +84 -0
- package/src/components/src/organisms/trending-searches/index.tsx +125 -0
- package/src/components/src/organisms/two-level-navigation/index.tsx +80 -0
- package/src/components/src/organisms/upsell-product-list/index.tsx +247 -0
- package/src/components/src/organisms/variant-carousel/index.tsx +121 -0
- package/src/components/src/organisms/variant-selector-modal-block/index.tsx +126 -0
- package/src/components/src/organisms/variant-selector-subscriptions/index.tsx +106 -0
- package/src/components/src/organisms/variantSelector/index.tsx +69 -0
- package/src/components/src/organisms/vertical-tabs-menu/defaults.ts +526 -0
- package/src/components/src/organisms/vertical-tabs-menu/index.tsx +61 -0
- package/src/components/src/organisms/video-banner/index.tsx +140 -0
- package/src/components/src/organisms/video-banner/index.web.tsx +123 -0
- package/src/components/src/organisms/video-banner-v2/index.tsx +188 -0
- package/src/components/src/organisms/video-carousel/index.tsx +404 -0
- package/src/components/src/organisms/video-carousel/index.web.tsx +357 -0
- package/src/components/src/organisms/video-carousel/video-carousel-item/index.tsx +277 -0
- package/src/components/src/organisms/video-carousel/video-carousel-item/product-list.tsx +257 -0
- package/src/components/src/organisms/video-carousel/video-carousel-item/product-list.web.tsx +197 -0
- package/src/components/src/organisms/video-list/index.tsx +103 -0
- package/src/components/src/organisms/view-coupons/discount-amount.tsx +48 -0
- package/src/components/src/organisms/view-coupons/index.tsx +137 -0
- package/src/components/src/organisms/view-coupons-v2/index.tsx +174 -0
- package/src/components/src/organisms/view-coupons-v2/savings-banner.tsx +100 -0
- package/src/components/src/organisms/web-view/index.tsx +281 -0
- package/src/components/src/organisms/web-view/index.web.tsx +61 -0
- package/src/components/src/organisms/wishlist/index.tsx +224 -0
- package/src/components/src/organisms/wishlist-v2/index.tsx +95 -0
- package/src/components/src/organisms/wishlisted-items/index.tsx +95 -0
- package/src/components/src/organisms/youtube-embed/index.tsx +41 -0
- package/src/components/src/registry.ts +2 -0
- package/src/components/src/style-utils.ts +441 -0
- package/src/components/src/utils.ts +252 -0
- package/src/components/test-setup.ts +1 -0
- package/src/container-registry/babel.config.js +3 -0
- package/src/container-registry/src/common.tsx +16 -0
- package/src/container-registry/src/index.ts +1 -0
- package/src/container-registry/src/register.tsx +27 -0
- package/src/container-registry/src/register.web.tsx +16 -0
- package/src/container-registry/test-setup.ts +1 -0
- package/src/containers/src/a1-tabbed-block-list/index.tsx +115 -0
- package/src/containers/src/accordion-container/index.tsx +72 -0
- package/src/containers/src/index.ts +0 -0
- package/src/containers/src/rules-container/index.tsx +88 -0
- package/src/containers/src/tabbed-block-list/index.tsx +81 -0
- package/src/containers/src/tabbed-screen-container/index.tsx +51 -0
- package/src/containers/test-setup.ts +1 -0
- package/src/cookie-manager/src/cookie.ts +16 -0
- package/src/cookie-manager/src/cookie.web.ts +5 -0
- package/src/cookie-manager/src/index.ts +1 -0
- package/src/cookie-manager/test-setup.ts +1 -0
- package/src/discount/src/gift.ts +182 -0
- package/src/discount/src/index.ts +1 -0
- package/src/discount/src/utils.ts +164 -0
- package/src/discount/test-setup.ts +1 -0
- package/src/enhanced-fetch/src/enhanced-fetch-tests.js +711 -0
- package/src/enhanced-fetch/src/index.ts +245 -0
- package/src/event-emitter/src/index.ts +38 -0
- package/src/firebase/src/index.ts +2 -0
- package/src/firebase/src/lib/analytics.ts +33 -0
- package/src/firebase/src/lib/analyticsV2.ts +61 -0
- package/src/icons/src/declarations.d.ts +6 -0
- package/src/icons/src/icon-registry.tsx +81 -0
- package/src/icons/src/icon-registry.web.tsx +81 -0
- package/src/icons/src/icon-set.tsx +455 -0
- package/src/icons/src/index.ts +4 -0
- package/src/icons/src/remote-icon.tsx +46 -0
- package/src/icons/src/remote-icon.web.tsx +25 -0
- package/src/icons/src/remote-image-icon.tsx +66 -0
- package/src/icons/src/remote-image-icon.web.tsx +31 -0
- package/src/icons/src/svgs/account.tsx +17 -0
- package/src/icons/src/svgs/add-to-cart.tsx +49 -0
- package/src/icons/src/svgs/address.tsx +26 -0
- package/src/icons/src/svgs/afterpay.tsx +110 -0
- package/src/icons/src/svgs/apple.tsx +19 -0
- package/src/icons/src/svgs/back.tsx +10 -0
- package/src/icons/src/svgs/badge.tsx +19 -0
- package/src/icons/src/svgs/bag.tsx +27 -0
- package/src/icons/src/svgs/cake.tsx +13 -0
- package/src/icons/src/svgs/calendar.tsx +20 -0
- package/src/icons/src/svgs/cancel.tsx +20 -0
- package/src/icons/src/svgs/cart-cancel.tsx +35 -0
- package/src/icons/src/svgs/cart.tsx +14 -0
- package/src/icons/src/svgs/categories.tsx +13 -0
- package/src/icons/src/svgs/checked.tsx +18 -0
- package/src/icons/src/svgs/checkedCircle.tsx +26 -0
- package/src/icons/src/svgs/chevron-down.tsx +26 -0
- package/src/icons/src/svgs/chevron-left.tsx +13 -0
- package/src/icons/src/svgs/chevron-right.tsx +19 -0
- package/src/icons/src/svgs/chevron-up.tsx +27 -0
- package/src/icons/src/svgs/chevron.tsx +35 -0
- package/src/icons/src/svgs/circled-arrow.tsx +29 -0
- package/src/icons/src/svgs/clear.tsx +35 -0
- package/src/icons/src/svgs/clipboard.tsx +23 -0
- package/src/icons/src/svgs/close.tsx +26 -0
- package/src/icons/src/svgs/collection.tsx +32 -0
- package/src/icons/src/svgs/copy.tsx +31 -0
- package/src/icons/src/svgs/coupon-icon.tsx +23 -0
- package/src/icons/src/svgs/coupon.tsx +35 -0
- package/src/icons/src/svgs/crate.tsx +13 -0
- package/src/icons/src/svgs/cross.tsx +21 -0
- package/src/icons/src/svgs/deals.tsx +26 -0
- package/src/icons/src/svgs/discount.tsx +42 -0
- package/src/icons/src/svgs/dollar.tsx +33 -0
- package/src/icons/src/svgs/error.tsx +35 -0
- package/src/icons/src/svgs/eye.tsx +33 -0
- package/src/icons/src/svgs/eyeOff.tsx +35 -0
- package/src/icons/src/svgs/facebook.tsx +31 -0
- package/src/icons/src/svgs/favorite.tsx +79 -0
- package/src/icons/src/svgs/filter.tsx +24 -0
- package/src/icons/src/svgs/fragrances.tsx +55 -0
- package/src/icons/src/svgs/gift.tsx +23 -0
- package/src/icons/src/svgs/gifts.tsx +38 -0
- package/src/icons/src/svgs/goal-discount-filled.tsx +21 -0
- package/src/icons/src/svgs/goal-discount.tsx +24 -0
- package/src/icons/src/svgs/goal-locked.tsx +21 -0
- package/src/icons/src/svgs/goal-unlocked.tsx +34 -0
- package/src/icons/src/svgs/google-colorful.tsx +38 -0
- package/src/icons/src/svgs/google.tsx +28 -0
- package/src/icons/src/svgs/grooming.tsx +22 -0
- package/src/icons/src/svgs/hamburger.tsx +30 -0
- package/src/icons/src/svgs/heart.tsx +30 -0
- package/src/icons/src/svgs/help.tsx +22 -0
- package/src/icons/src/svgs/history.tsx +26 -0
- package/src/icons/src/svgs/home.tsx +21 -0
- package/src/icons/src/svgs/homes.svg +4 -0
- package/src/icons/src/svgs/info.tsx +19 -0
- package/src/icons/src/svgs/inline-error-icon.tsx +13 -0
- package/src/icons/src/svgs/inline-success-icon-double-checkmarks.tsx +15 -0
- package/src/icons/src/svgs/instagram.tsx +17 -0
- package/src/icons/src/svgs/lock.tsx +15 -0
- package/src/icons/src/svgs/mail.tsx +30 -0
- package/src/icons/src/svgs/mins.tsx +21 -0
- package/src/icons/src/svgs/minus.tsx +19 -0
- package/src/icons/src/svgs/more.tsx +13 -0
- package/src/icons/src/svgs/notification-bell.tsx +44 -0
- package/src/icons/src/svgs/notifications.tsx +21 -0
- package/src/icons/src/svgs/offers.tsx +11 -0
- package/src/icons/src/svgs/order-history.tsx +19 -0
- package/src/icons/src/svgs/order.tsx +32 -0
- package/src/icons/src/svgs/package-check.tsx +30 -0
- package/src/icons/src/svgs/pause.tsx +17 -0
- package/src/icons/src/svgs/pencil.tsx +17 -0
- package/src/icons/src/svgs/percent-circle.tsx +30 -0
- package/src/icons/src/svgs/play.tsx +13 -0
- package/src/icons/src/svgs/plus.tsx +12 -0
- package/src/icons/src/svgs/privacy.tsx +15 -0
- package/src/icons/src/svgs/product.tsx +14 -0
- package/src/icons/src/svgs/profile-circle.tsx +16 -0
- package/src/icons/src/svgs/profile-permission.tsx +17 -0
- package/src/icons/src/svgs/profile-tab-icon.tsx +11 -0
- package/src/icons/src/svgs/profile.tsx +16 -0
- package/src/icons/src/svgs/reward.tsx +22 -0
- package/src/icons/src/svgs/rewards.tsx +15 -0
- package/src/icons/src/svgs/sad-emoji.tsx +30 -0
- package/src/icons/src/svgs/search.tsx +31 -0
- package/src/icons/src/svgs/share.tsx +28 -0
- package/src/icons/src/svgs/shipping.tsx +20 -0
- package/src/icons/src/svgs/signout.tsx +15 -0
- package/src/icons/src/svgs/signup.tsx +26 -0
- package/src/icons/src/svgs/snap-mint.tsx +49 -0
- package/src/icons/src/svgs/sort.tsx +12 -0
- package/src/icons/src/svgs/speakerOff.tsx +40 -0
- package/src/icons/src/svgs/speakerOn.tsx +20 -0
- package/src/icons/src/svgs/stars.tsx +36 -0
- package/src/icons/src/svgs/success.tsx +21 -0
- package/src/icons/src/svgs/tag.tsx +25 -0
- package/src/icons/src/svgs/thumbs-up-outlined.tsx +36 -0
- package/src/icons/src/svgs/thumbs-up.tsx +11 -0
- package/src/icons/src/svgs/tick.tsx +23 -0
- package/src/icons/src/svgs/trash.tsx +21 -0
- package/src/icons/src/svgs/trending.tsx +36 -0
- package/src/icons/src/svgs/truck.tsx +30 -0
- package/src/icons/src/svgs/truecaller.tsx +44 -0
- package/src/icons/src/svgs/types.ts +0 -0
- package/src/icons/src/svgs/unchecked.tsx +13 -0
- package/src/icons/src/svgs/verified.tsx +23 -0
- package/src/icons/src/svgs/video-play.tsx +12 -0
- package/src/icons/src/svgs/volume-off.tsx +18 -0
- package/src/icons/src/svgs/volume.tsx +18 -0
- package/src/icons/src/svgs/way.tsx +14 -0
- package/src/icons/src/svgs/youtube.tsx +26 -0
- package/src/icons/src/utils.ts +53 -0
- package/src/icons/test-setup.ts +1 -0
- package/src/integrations/appbrew/analytics/app-users.ts +107 -0
- package/src/integrations/appbrew/analytics/config.dev.ts +10 -0
- package/src/integrations/appbrew/analytics/config.ts +10 -0
- package/src/integrations/appbrew/analytics/tracker.ts +136 -0
- package/src/integrations/appbrew/analytics/trackerV2.ts +154 -0
- package/src/integrations/appbrew/analytics/utils.ts +9 -0
- package/src/integrations/appbrew/analytics/webhook-tracker.ts +203 -0
- package/src/integrations/appbrew/currency/index.ts +1 -0
- package/src/integrations/appbrew/currency/provider.ts +211 -0
- package/src/integrations/appbrew/estimated-delivery-date/blocks/estimated-delivery-date.tsx +229 -0
- package/src/integrations/appbrew/estimated-delivery-date/index.ts +2 -0
- package/src/integrations/appbrew/estimated-delivery-date/provider.ts +45 -0
- package/src/integrations/appbrew/native-wishlist/src/index.ts +1 -0
- package/src/integrations/appbrew/native-wishlist/src/provider.ts +88 -0
- package/src/integrations/appbrew/src/index.ts +7 -0
- package/src/integrations/appbrew/src/lib/integrations-appbrew.spec.ts +7 -0
- package/src/integrations/appbrew/src/lib/integrations-appbrew.ts +3 -0
- package/src/integrations/color-swatch/src/index.ts +7 -0
- package/src/integrations/firebase-push/src/index.ts +1 -0
- package/src/integrations/firebase-push/src/push.ts +279 -0
- package/src/integrations/firebase-push/src/push.web.ts +15 -0
- package/src/integrations/gift/src/gift.ts +137 -0
- package/src/integrations/gift/src/index.ts +1 -0
- package/src/integrations/truefit/src/blocks/index.ts +1 -0
- package/src/integrations/truefit/src/blocks/truefit-widget.tsx +136 -0
- package/src/integrations/truefit/src/components/TfApp.tsx +159 -0
- package/src/integrations/truefit/src/components/TfWidget.tsx +241 -0
- package/src/integrations/truefit/src/constants.ts +5 -0
- package/src/integrations/truefit/src/index.ts +13 -0
- package/src/integrations/truefit/src/managers/authManager.ts +140 -0
- package/src/integrations/truefit/src/managers/messageManager.ts +122 -0
- package/src/integrations/truefit/src/managers/tokenManager.ts +52 -0
- package/src/integrations/truefit/src/orderApi.ts +43 -0
- package/src/integrations/truefit/src/register-blocks.ts +5 -0
- package/src/integrations/truefit/src/util/useWidgetEvent.ts +29 -0
- package/src/integrations/truefit/src/util/widgetEvents.ts +17 -0
- package/src/local-storage/src/icon-storage.ts +26 -0
- package/src/local-storage/src/index.ts +2 -0
- package/src/local-storage/src/storage.ts +56 -0
- package/src/local-storage/src/storage.web.ts +75 -0
- package/src/module-provider/src/index.ts +1 -0
- package/src/module-provider/src/module-provider.tsx +27 -0
- package/src/module-provider/src/provider.ts +0 -0
- package/src/okendo/src/blocks/components-v2.tsx +342 -0
- package/src/okendo/src/blocks/components-v2.types.ts +134 -0
- package/src/okendo/src/blocks/components.tsx +569 -0
- package/src/okendo/src/blocks/index.tsx +13 -0
- package/src/okendo/src/blocks/okendo-star-ratings-v2.tsx +102 -0
- package/src/okendo/src/blocks/okendo-star-ratings.tsx +77 -0
- package/src/okendo/src/blocks/review-aggregate-v2.tsx +493 -0
- package/src/okendo/src/blocks/review-aggregate.tsx +175 -0
- package/src/okendo/src/blocks/reviews-v2.tsx +352 -0
- package/src/okendo/src/blocks/reviews.tsx +144 -0
- package/src/okendo/src/hooks.tsx +489 -0
- package/src/okendo/src/index.ts +35 -0
- package/src/okendo/src/provider.ts +457 -0
- package/src/okendo/src/types.ts +355 -0
- package/src/okendo/src/utils.ts +32 -0
- package/src/orders-v4/src/icons/chevron-right-order-v4.tsx +18 -0
- package/src/orders-v4/src/icons/order-status.tsx +17 -0
- package/src/orders-v4/src/icons/payment-method.tsx +18 -0
- package/src/orders-v4/src/icons/payment-status.tsx +17 -0
- package/src/orders-v4/src/index.ts +7 -0
- package/src/orders-v4/src/layout-elements/order-cancel.tsx +60 -0
- package/src/orders-v4/src/layout-elements/order-date.tsx +39 -0
- package/src/orders-v4/src/layout-elements/order-fulfillment-details.tsx +408 -0
- package/src/orders-v4/src/layout-elements/order-number.tsx +35 -0
- package/src/orders-v4/src/layout-elements/order-payment-details-v4.tsx +190 -0
- package/src/orders-v4/src/layout-elements/order-preorder-date.tsx +16 -0
- package/src/orders-v4/src/layout-elements/order-product-compare-at-price.tsx +32 -0
- package/src/orders-v4/src/layout-elements/order-product-fulfillment-status.tsx +105 -0
- package/src/orders-v4/src/layout-elements/order-product-image-overlay.tsx +55 -0
- package/src/orders-v4/src/layout-elements/order-product-image.tsx +29 -0
- package/src/orders-v4/src/layout-elements/order-product-link.tsx +24 -0
- package/src/orders-v4/src/layout-elements/order-product-price.tsx +37 -0
- package/src/orders-v4/src/layout-elements/order-product-quantity.tsx +27 -0
- package/src/orders-v4/src/layout-elements/order-product-title.tsx +22 -0
- package/src/orders-v4/src/layout-elements/order-product-variant.tsx +24 -0
- package/src/orders-v4/src/layout-elements/order-reorder.tsx +97 -0
- package/src/orders-v4/src/layout-elements/order-return-and-exchange-v2.tsx +90 -0
- package/src/orders-v4/src/layout-elements/order-return-and-exchange.tsx +93 -0
- package/src/orders-v4/src/layout-elements/order-status-icon.tsx +14 -0
- package/src/orders-v4/src/layout-elements/order-status.tsx +33 -0
- package/src/orders-v4/src/layout-elements/order-total.tsx +19 -0
- package/src/orders-v4/src/layout-elements/order-track-delivery.tsx +67 -0
- package/src/orders-v4/src/layout-elements/order-view-details.tsx +23 -0
- package/src/orders-v4/src/order-custom-attributes-v4.tsx +210 -0
- package/src/orders-v4/src/order-details-footer-v4.tsx +51 -0
- package/src/orders-v4/src/order-details-fulfillment-list.tsx +32 -0
- package/src/orders-v4/src/order-details-header-v4.tsx +69 -0
- package/src/orders-v4/src/order-footer.ts +75 -0
- package/src/orders-v4/src/order-header.ts +75 -0
- package/src/orders-v4/src/order-products-list.ts +68 -0
- package/src/orders-v4/src/orders-list-v4.tsx +131 -0
- package/src/orders-v4/src/register-icons.ts +12 -0
- package/src/orders-v4/src/register-orders-v4-blocks.ts +15 -0
- package/src/orders-v4/src/registry.tsx +115 -0
- package/src/orders-v4/src/types.ts +122 -0
- package/src/orders-v4/src/utils.ts +75 -0
- package/src/orders-v4/test-setup.ts +1 -0
- package/src/orders-v5/src/cancel-order-reason.tsx +282 -0
- package/src/orders-v5/src/icons/package-cancel.tsx +18 -0
- package/src/orders-v5/src/icons/package-success.tsx +18 -0
- package/src/orders-v5/src/icons/package.tsx +17 -0
- package/src/orders-v5/src/icons/shipping-cancel.tsx +19 -0
- package/src/orders-v5/src/icons/shipping-pending.tsx +19 -0
- package/src/orders-v5/src/icons/shipping-success.tsx +18 -0
- package/src/orders-v5/src/icons/shipping.tsx +32 -0
- package/src/orders-v5/src/image.tsx +39 -0
- package/src/orders-v5/src/index.ts +2 -0
- package/src/orders-v5/src/order-details/fulfillment-list/fulfillment-item.tsx +222 -0
- package/src/orders-v5/src/order-details/fulfillment-list/fulfillment-list.tsx +123 -0
- package/src/orders-v5/src/order-details/fulfillment-list/index.tsx +1 -0
- package/src/orders-v5/src/order-details/fulfillment-list/line-item.tsx +213 -0
- package/src/orders-v5/src/order-details/fulfillment-list/star-ratings.tsx +79 -0
- package/src/orders-v5/src/order-details/fulfillment-list/status-indicator.tsx +208 -0
- package/src/orders-v5/src/order-details/fulfillment-list/status.tsx +113 -0
- package/src/orders-v5/src/order-details/header.tsx +280 -0
- package/src/orders-v5/src/order-details/index.tsx +9 -0
- package/src/orders-v5/src/order-details/order-cancel.tsx +323 -0
- package/src/orders-v5/src/order-details/order-custom-attributes.tsx +237 -0
- package/src/orders-v5/src/order-details/order-return-and-exchange.tsx +196 -0
- package/src/orders-v5/src/order-details/order-return-info-text.tsx +114 -0
- package/src/orders-v5/src/order-details/payment-summary.tsx +295 -0
- package/src/orders-v5/src/order-details/reorder.tsx +142 -0
- package/src/orders-v5/src/order-details/shipping-address.tsx +93 -0
- package/src/orders-v5/src/orders-list/index.ts +1 -0
- package/src/orders-v5/src/orders-list/order-item/fulfillment-item.tsx +138 -0
- package/src/orders-v5/src/orders-list/order-item/heading.tsx +160 -0
- package/src/orders-v5/src/orders-list/order-item/item.tsx +168 -0
- package/src/orders-v5/src/orders-list/orders-list.tsx +159 -0
- package/src/orders-v5/src/register-orders-v5-blocks.ts +29 -0
- package/src/orders-v5/src/register-orders-v5-icons.ts +17 -0
- package/src/orders-v5/src/utils.ts +539 -0
- package/src/pdp-components/src/blocks/common/empty-metafield.tsx +66 -0
- package/src/pdp-components/src/blocks/common/placeholder-block.tsx +134 -0
- package/src/pdp-components/src/blocks/index.ts +2 -0
- package/src/pdp-components/src/blocks/pdp-metafield-image/index.tsx +138 -0
- package/src/pdp-components/src/blocks/pdp-metafield-rich-text/index.tsx +190 -0
- package/src/pdp-components/src/index.ts +7 -0
- package/src/plp-components/src/blocks/plp-banner/index.tsx +213 -0
- package/src/plp-components/src/blocks/plp-description/index.tsx +86 -0
- package/src/plp-components/src/blocks/plp-html-text.tsx +172 -0
- package/src/plp-components/src/blocks/plp-image-carousel.tsx +203 -0
- package/src/plp-components/src/blocks/plp-shopify-rich-text/index.tsx +169 -0
- package/src/plp-components/src/blocks/plp-sub-category-navigation/index.tsx +336 -0
- package/src/plp-components/src/blocks/plp-text-sub-category/index.tsx +297 -0
- package/src/plp-components/src/blocks/plp-video/index.tsx +140 -0
- package/src/plp-components/src/blocks/plp-youtube-video.tsx +113 -0
- package/src/plp-components/src/common/empty-metafield.tsx +66 -0
- package/src/plp-components/src/common/placeholder-block.tsx +134 -0
- package/src/plp-components/src/index.ts +21 -0
- package/src/plp-components/test-setup.ts +1 -0
- package/src/post-purchase/hooks.ts +24 -0
- package/src/post-purchase/src/basic-order-item.tsx +143 -0
- package/src/post-purchase/src/cancel-order-reason.tsx +160 -0
- package/src/post-purchase/src/cancel-order.tsx +75 -0
- package/src/post-purchase/src/date.tsx +33 -0
- package/src/post-purchase/src/fulfillment-list.tsx +477 -0
- package/src/post-purchase/src/hooks.ts +1 -0
- package/src/post-purchase/src/index.ts +13 -0
- package/src/post-purchase/src/order-details-header.tsx +64 -0
- package/src/post-purchase/src/order-item.tsx +217 -0
- package/src/post-purchase/src/order-list.tsx +62 -0
- package/src/post-purchase/src/payment-details.tsx +116 -0
- package/src/post-purchase/src/register.ts +17 -0
- package/src/post-purchase/src/shipping-address.tsx +68 -0
- package/src/post-purchase/src/style.ts +30 -0
- package/src/post-purchase/src/types.ts +66 -0
- package/src/post-purchase/src/utils.ts +95 -0
- package/src/post-purchase/test-setup.ts +1 -0
- package/src/react-native-element-dropdown/src/assets/close.png +0 -0
- package/src/react-native-element-dropdown/src/assets/down.png +0 -0
- package/src/react-native-element-dropdown/src/components/Dropdown/index.tsx +686 -0
- package/src/react-native-element-dropdown/src/components/Dropdown/model.ts +73 -0
- package/src/react-native-element-dropdown/src/components/Dropdown/styles.ts +67 -0
- package/src/react-native-element-dropdown/src/components/MultiSelect/index.tsx +812 -0
- package/src/react-native-element-dropdown/src/components/MultiSelect/model.ts +76 -0
- package/src/react-native-element-dropdown/src/components/MultiSelect/styles.ts +103 -0
- package/src/react-native-element-dropdown/src/components/SelectCountry/index.tsx +77 -0
- package/src/react-native-element-dropdown/src/components/SelectCountry/model.ts +7 -0
- package/src/react-native-element-dropdown/src/components/SelectCountry/styles.ts +28 -0
- package/src/react-native-element-dropdown/src/components/TextInput/index.tsx +104 -0
- package/src/react-native-element-dropdown/src/components/TextInput/model.ts +20 -0
- package/src/react-native-element-dropdown/src/components/TextInput/styles.ts +31 -0
- package/src/react-native-element-dropdown/src/index.ts +15 -0
- package/src/react-native-element-dropdown/src/toolkits/index.ts +25 -0
- package/src/react-native-element-dropdown/src/toolkits/model.ts +5 -0
- package/src/react-native-element-dropdown/src/useDeviceOrientation.ts +37 -0
- package/src/react-utils/src/hooks.ts +176 -0
- package/src/react-utils/src/index.ts +1 -0
- package/src/rn-rulepilot/src/index.ts +4 -0
- package/src/rn-rulepilot/src/services/builder.ts +92 -0
- package/src/rn-rulepilot/src/services/evaluator.ts +176 -0
- package/src/rn-rulepilot/src/services/logger.ts +6 -0
- package/src/rn-rulepilot/src/services/mutator.ts +203 -0
- package/src/rn-rulepilot/src/services/object-discovery.ts +52 -0
- package/src/rn-rulepilot/src/services/rule-pilot.ts +172 -0
- package/src/rn-rulepilot/src/services/validator.ts +206 -0
- package/src/rn-rulepilot/src/types/error.ts +14 -0
- package/src/rn-rulepilot/src/types/rule.ts +35 -0
- package/src/rn-rulepilot/test-setup.ts +1 -0
- package/src/shopify/src/cache.ts +134 -0
- package/src/shopify/src/cart-utils.ts +295 -0
- package/src/shopify/src/checkout-utils.ts +124 -0
- package/src/shopify/src/discountv2-transformer.ts +322 -0
- package/src/shopify/src/filter.ts +287 -0
- package/src/shopify/src/index.ts +16 -0
- package/src/shopify/src/lineItemsv2-transformer.ts +225 -0
- package/src/shopify/src/orders.ts +521 -0
- package/src/shopify/src/queries/cart.ts +320 -0
- package/src/shopify/src/queries/catlog-fields.ts +187 -0
- package/src/shopify/src/queries/index.ts +1 -0
- package/src/shopify/src/queries/orders.ts +368 -0
- package/src/shopify/src/queries/query-generators.ts +737 -0
- package/src/shopify/src/queries.ts +474 -0
- package/src/shopify/src/shopify-auth.ts +410 -0
- package/src/shopify/src/shopify-cart.ts +1298 -0
- package/src/shopify/src/shopify-catlog-generic.ts +1168 -0
- package/src/shopify/src/shopify-checkout.ts +385 -0
- package/src/shopify/src/shopify-currency.ts +185 -0
- package/src/shopify/src/shopify-customer-cart.ts +1246 -0
- package/src/shopify/src/shopify-search-v2.ts +1234 -0
- package/src/shopify/src/shopify-search.ts +184 -0
- package/src/shopify/src/transformers.ts +715 -0
- package/src/shopify/src/utils.ts +300 -0
- package/src/shopify-types/src/generated-types/checkout/graphql-operations.ts +8767 -0
- package/src/shopify-types/src/generated-types/customer-accounts/operations.ts +5969 -0
- package/src/shopify-types/src/generated-types/graphql-operations.ts +9559 -0
- package/src/shopify-types/src/index.ts +59 -0
- package/src/shopify-types/src/schema/customerAccountsSchema.json +28093 -0
- package/src/shopify-types/src/types.ts +59 -0
- package/src/shopify-types/test-setup.ts +1 -0
- package/src/state/src/index.ts +22 -0
- package/src/state/src/lib/address.ts +248 -0
- package/src/state/src/lib/analytics/actions/app.ts +30 -0
- package/src/state/src/lib/analytics/actions/cart-wishlist.ts +192 -0
- package/src/state/src/lib/analytics/actions/device.ts +28 -0
- package/src/state/src/lib/analytics/actions/geo.ts +58 -0
- package/src/state/src/lib/analytics/actions/index.ts +9 -0
- package/src/state/src/lib/analytics/actions/order.ts +20 -0
- package/src/state/src/lib/analytics/actions/product-collection.ts +119 -0
- package/src/state/src/lib/analytics/actions/session.ts +74 -0
- package/src/state/src/lib/analytics/actions/user.ts +55 -0
- package/src/state/src/lib/analytics/actions/utm-params.ts +68 -0
- package/src/state/src/lib/analytics/index.ts +147 -0
- package/src/state/src/lib/analytics/utils.ts +173 -0
- package/src/state/src/lib/autofill-client.ts +42 -0
- package/src/state/src/lib/bundle.ts +228 -0
- package/src/state/src/lib/bundleV2.ts +110 -0
- package/src/state/src/lib/cart.ts +1779 -0
- package/src/state/src/lib/checkout.ts +26 -0
- package/src/state/src/lib/collection-metafields.ts +118 -0
- package/src/state/src/lib/collections.ts +636 -0
- package/src/state/src/lib/config.ts +437 -0
- package/src/state/src/lib/constants.ts +30 -0
- package/src/state/src/lib/device.ts +90 -0
- package/src/state/src/lib/discounts.ts +435 -0
- package/src/state/src/lib/estimated-delivery-date.ts +73 -0
- package/src/state/src/lib/filter.ts +343 -0
- package/src/state/src/lib/gift-wrap.ts +184 -0
- package/src/state/src/lib/google-signin.ts +3 -0
- package/src/state/src/lib/google-signin.web.ts +1 -0
- package/src/state/src/lib/hooks/block.ts +136 -0
- package/src/state/src/lib/hooks/cart.ts +233 -0
- package/src/state/src/lib/hooks/common.ts +34 -0
- package/src/state/src/lib/hooks/constants.ts +4 -0
- package/src/state/src/lib/hooks/deeplink.ts +190 -0
- package/src/state/src/lib/hooks/deeplink.web.ts +4 -0
- package/src/state/src/lib/hooks/estimated-delivery-date.ts +5 -0
- package/src/state/src/lib/hooks/filter.ts +37 -0
- package/src/state/src/lib/hooks/hooks.ts +843 -0
- package/src/state/src/lib/hooks/index.ts +29 -0
- package/src/state/src/lib/hooks/localization.ts +213 -0
- package/src/state/src/lib/hooks/metafield.ts +301 -0
- package/src/state/src/lib/hooks/modal.ts +68 -0
- package/src/state/src/lib/hooks/module.ts +31 -0
- package/src/state/src/lib/hooks/order.ts +23 -0
- package/src/state/src/lib/hooks/product.ts +202 -0
- package/src/state/src/lib/hooks/quantity-restriction.ts +51 -0
- package/src/state/src/lib/hooks/reviews.ts +27 -0
- package/src/state/src/lib/hooks/rewards.ts +69 -0
- package/src/state/src/lib/hooks/route.ts +90 -0
- package/src/state/src/lib/hooks/screen.ts +83 -0
- package/src/state/src/lib/hooks/search.ts +209 -0
- package/src/state/src/lib/hooks/settings.ts +20 -0
- package/src/state/src/lib/hooks/shipping-address.ts +5 -0
- package/src/state/src/lib/hooks/shop.ts +5 -0
- package/src/state/src/lib/hooks/shopify-query.ts +40 -0
- package/src/state/src/lib/hooks/sizing.ts +13 -0
- package/src/state/src/lib/hooks/title.ts +61 -0
- package/src/state/src/lib/hooks/variant-selector.ts +493 -0
- package/src/state/src/lib/hooks/video.ts +81 -0
- package/src/state/src/lib/http-client/index.ts +132 -0
- package/src/state/src/lib/integrations/analytics.ts +14 -0
- package/src/state/src/lib/integrations/gift.ts +102 -0
- package/src/state/src/lib/integrations/review.ts +212 -0
- package/src/state/src/lib/kiwi-sizing.ts +62 -0
- package/src/state/src/lib/localization.ts +524 -0
- package/src/state/src/lib/localization.web.ts +154 -0
- package/src/state/src/lib/metafield.ts +305 -0
- package/src/state/src/lib/modal.ts +177 -0
- package/src/state/src/lib/modules.ts +149 -0
- package/src/state/src/lib/offers.ts +0 -0
- package/src/state/src/lib/onboarding.ts +67 -0
- package/src/state/src/lib/order.ts +229 -0
- package/src/state/src/lib/orders.ts +199 -0
- package/src/state/src/lib/products.ts +1072 -0
- package/src/state/src/lib/promotions.ts +73 -0
- package/src/state/src/lib/reward-program.ts +86 -0
- package/src/state/src/lib/rewards.ts +106 -0
- package/src/state/src/lib/route.ts +586 -0
- package/src/state/src/lib/route.web.ts +52 -0
- package/src/state/src/lib/screen.ts +106 -0
- package/src/state/src/lib/search.ts +576 -0
- package/src/state/src/lib/shop.ts +74 -0
- package/src/state/src/lib/sizing-chart.ts +88 -0
- package/src/state/src/lib/splash-platform.ts +59 -0
- package/src/state/src/lib/splash-platform.web.ts +62 -0
- package/src/state/src/lib/splash.ts +497 -0
- package/src/state/src/lib/store.ts +138 -0
- package/src/state/src/lib/subscriptions.ts +589 -0
- package/src/state/src/lib/template.ts +42 -0
- package/src/state/src/lib/types.ts +11 -0
- package/src/state/src/lib/user-notifications.ts +153 -0
- package/src/state/src/lib/user.ts +1721 -0
- package/src/state/src/lib/utils.ts +586 -0
- package/src/state/src/lib/wishlist.ts +290 -0
- package/src/types/src/app-discounts.ts +118 -0
- package/src/types/src/app-themes.ts +7 -0
- package/src/types/src/blocks-definition/account.def.ts +535 -0
- package/src/types/src/blocks-definition/announcement-carousel.def.ts +201 -0
- package/src/types/src/blocks-definition/announcement-strip.def.ts +162 -0
- package/src/types/src/blocks-definition/announcement-ticker.def.ts +290 -0
- package/src/types/src/blocks-definition/app-bar.def.ts +323 -0
- package/src/types/src/blocks-definition/apply-coupon.def.ts +363 -0
- package/src/types/src/blocks-definition/cart-list.def.ts +445 -0
- package/src/types/src/blocks-definition/change-password.def.ts +229 -0
- package/src/types/src/blocks-definition/chips-navigation.def.ts +405 -0
- package/src/types/src/blocks-definition/collection-list.def.ts +415 -0
- package/src/types/src/blocks-definition/common.def.ts +793 -0
- package/src/types/src/blocks-definition/content.def.ts +2051 -0
- package/src/types/src/blocks-definition/countdown-banner.def.ts +537 -0
- package/src/types/src/blocks-definition/empty-block.def.ts +212 -0
- package/src/types/src/blocks-definition/firework.def.ts +128 -0
- package/src/types/src/blocks-definition/image-banner.def.ts +634 -0
- package/src/types/src/blocks-definition/image-collage.def.ts +505 -0
- package/src/types/src/blocks-definition/image-compare.def.ts +412 -0
- package/src/types/src/blocks-definition/image-list.def.ts +654 -0
- package/src/types/src/blocks-definition/image-marquee.def.ts +526 -0
- package/src/types/src/blocks-definition/index.ts +50 -0
- package/src/types/src/blocks-definition/metafield-image-compare.def.ts +394 -0
- package/src/types/src/blocks-definition/micro-contexts/product-card-v2.ts +2481 -0
- package/src/types/src/blocks-definition/past-searches.def.ts +352 -0
- package/src/types/src/blocks-definition/payment-details.def.ts +303 -0
- package/src/types/src/blocks-definition/previously-ordered-products.def.ts +421 -0
- package/src/types/src/blocks-definition/product-card.def.ts +416 -0
- package/src/types/src/blocks-definition/product-grid.def.ts +657 -0
- package/src/types/src/blocks-definition/product-hotspot.def.ts +401 -0
- package/src/types/src/blocks-definition/product-list.def.ts +944 -0
- package/src/types/src/blocks-definition/promo-carousel.def.ts +645 -0
- package/src/types/src/blocks-definition/recent-orders.def.ts +596 -0
- package/src/types/src/blocks-definition/recently-viewed-products.def.ts +412 -0
- package/src/types/src/blocks-definition/rewards-summary.def.ts +627 -0
- package/src/types/src/blocks-definition/rich-text-block.def.ts +303 -0
- package/src/types/src/blocks-definition/search-suggestions.def.ts +228 -0
- package/src/types/src/blocks-definition/sign-in.def.ts +555 -0
- package/src/types/src/blocks-definition/single-level-navigation.def.ts +303 -0
- package/src/types/src/blocks-definition/social-sign-in.def.ts +164 -0
- package/src/types/src/blocks-definition/sort-and-filter.def.ts +881 -0
- package/src/types/src/blocks-definition/tabbed-product-collection.def.ts +665 -0
- package/src/types/src/blocks-definition/text-list.def.ts +280 -0
- package/src/types/src/blocks-definition/two-level-navigation.def.ts +527 -0
- package/src/types/src/blocks-definition/types.ts +33 -0
- package/src/types/src/blocks-definition/video-banner.def.ts +483 -0
- package/src/types/src/blocks-definition/video-carousel.def.ts +611 -0
- package/src/types/src/blocks-definition/video-list.def.ts +280 -0
- package/src/types/src/blocks-definition/view-coupons.def.ts +382 -0
- package/src/types/src/blocks-definition/wishlisted-items.def.ts +530 -0
- package/src/types/src/blocks-definition/youtube-embed.def.ts +154 -0
- package/src/types/src/blocks.ts +3981 -0
- package/src/types/src/category-navigation.ts +16 -0
- package/src/types/src/common.ts +187 -0
- package/src/types/src/config.ts +705 -0
- package/src/types/src/countries.ts +2970 -0
- package/src/types/src/currencies.ts +1217 -0
- package/src/types/src/data.ts +257 -0
- package/src/types/src/feature-flags.ts +59 -0
- package/src/types/src/filter.ts +102 -0
- package/src/types/src/index.ts +35 -0
- package/src/types/src/integrations/analytics.ts +252 -0
- package/src/types/src/integrations/attentive.ts +88 -0
- package/src/types/src/integrations/automated-notifications.ts +87 -0
- package/src/types/src/integrations/cart.ts +81 -0
- package/src/types/src/integrations/edd.ts +35 -0
- package/src/types/src/integrations/gift.ts +130 -0
- package/src/types/src/integrations/index.ts +14 -0
- package/src/types/src/integrations/loyalty-lion.ts +8 -0
- package/src/types/src/integrations/otp-signin.ts +112 -0
- package/src/types/src/integrations/review.ts +50 -0
- package/src/types/src/integrations/rewards-v2.ts +5 -0
- package/src/types/src/integrations/social-signin.ts +12 -0
- package/src/types/src/integrations/subscriptions.ts +175 -0
- package/src/types/src/integrations/wishlist.ts +86 -0
- package/src/types/src/integrations/yotpo-rewards.ts +37 -0
- package/src/types/src/internationalization.ts +170 -0
- package/src/types/src/metafield.ts +5 -0
- package/src/types/src/modules.ts +566 -0
- package/src/types/src/navigation.ts +22 -0
- package/src/types/src/one-link.ts +20 -0
- package/src/types/src/order.ts +102 -0
- package/src/types/src/permissions.ts +9 -0
- package/src/types/src/product-update.ts +32 -0
- package/src/types/src/product.ts +268 -0
- package/src/types/src/push-notifications.ts +11 -0
- package/src/types/src/quantity-selector.ts +5 -0
- package/src/types/src/screen.ts +5 -0
- package/src/types/src/search.ts +137 -0
- package/src/types/src/searchtap.ts +97 -0
- package/src/types/src/settings.ts +54 -0
- package/src/types/src/shop.ts +13 -0
- package/src/types/src/storage.ts +31 -0
- package/src/types/src/style.ts +221 -0
- package/src/types/src/theme.ts +54 -0
- package/src/types/src/utils.ts +153 -0
- package/src/types/src/variant-selector.ts +218 -0
- package/src/ui-builder/src/components/atoms/accordian.tsx +110 -0
- package/src/ui-builder/src/components/atoms/block-section/block-section.tsx +128 -0
- package/src/ui-builder/src/components/atoms/block-section/hook.ts +251 -0
- package/src/ui-builder/src/components/atoms/block-section/index.ts +3 -0
- package/src/ui-builder/src/components/atoms/block-section/nav-button.tsx +101 -0
- package/src/ui-builder/src/components/atoms/block-section/section.tsx +76 -0
- package/src/ui-builder/src/components/atoms/block-section/types.ts +22 -0
- package/src/ui-builder/src/components/atoms/box.tsx +77 -0
- package/src/ui-builder/src/components/atoms/box.web.tsx +68 -0
- package/src/ui-builder/src/components/atoms/button.tsx +260 -0
- package/src/ui-builder/src/components/atoms/flex.tsx +44 -0
- package/src/ui-builder/src/components/atoms/header/header-image.tsx +142 -0
- package/src/ui-builder/src/components/atoms/header/header-link-button.tsx +57 -0
- package/src/ui-builder/src/components/atoms/header/header-text.tsx +49 -0
- package/src/ui-builder/src/components/atoms/header/header.tsx +179 -0
- package/src/ui-builder/src/components/atoms/header/index.ts +2 -0
- package/src/ui-builder/src/components/atoms/header/types.ts +63 -0
- package/src/ui-builder/src/components/atoms/header/utils.ts +28 -0
- package/src/ui-builder/src/components/atoms/helper/button-utils.ts +13 -0
- package/src/ui-builder/src/components/atoms/helper/button-utils.web.ts +8 -0
- package/src/ui-builder/src/components/atoms/html-rich-text.tsx +47 -0
- package/src/ui-builder/src/components/atoms/icon.tsx +12 -0
- package/src/ui-builder/src/components/atoms/image/image1.tsx +359 -0
- package/src/ui-builder/src/components/atoms/image/image1.web.tsx +276 -0
- package/src/ui-builder/src/components/atoms/image/types.ts +12 -0
- package/src/ui-builder/src/components/atoms/image.tsx +33 -0
- package/src/ui-builder/src/components/atoms/index.tsx +17 -0
- package/src/ui-builder/src/components/atoms/link.tsx +34 -0
- package/src/ui-builder/src/components/atoms/list.tsx +24 -0
- package/src/ui-builder/src/components/atoms/native-video.tsx +102 -0
- package/src/ui-builder/src/components/atoms/native-video.web.tsx +44 -0
- package/src/ui-builder/src/components/atoms/rich-text.tsx +147 -0
- package/src/ui-builder/src/components/atoms/spacer.tsx +11 -0
- package/src/ui-builder/src/components/atoms/text.tsx +60 -0
- package/src/ui-builder/src/components/atoms/vertical-list.tsx +177 -0
- package/src/ui-builder/src/components/atoms/youtube-video.tsx +99 -0
- package/src/ui-builder/src/components/blocks/content.tsx +32 -0
- package/src/ui-builder/src/components/index.ts +3 -0
- package/src/ui-builder/src/components/layout-elements/accordion.tsx +27 -0
- package/src/ui-builder/src/components/layout-elements/app-logo.tsx +39 -0
- package/src/ui-builder/src/components/layout-elements/html-rich-text.tsx +16 -0
- package/src/ui-builder/src/components/layout-elements/image.tsx +118 -0
- package/src/ui-builder/src/components/layout-elements/image.web.tsx +62 -0
- package/src/ui-builder/src/components/layout-elements/index.ts +12 -0
- package/src/ui-builder/src/components/layout-elements/link-button.tsx +37 -0
- package/src/ui-builder/src/components/layout-elements/link.tsx +35 -0
- package/src/ui-builder/src/components/layout-elements/list.tsx +16 -0
- package/src/ui-builder/src/components/layout-elements/rich-text.tsx +29 -0
- package/src/ui-builder/src/components/layout-elements/spacer.tsx +10 -0
- package/src/ui-builder/src/components/layout-elements/text.tsx +29 -0
- package/src/ui-builder/src/components/layout-elements/video.tsx +59 -0
- package/src/ui-builder/src/components/molecules/accordion.tsx +120 -0
- package/src/ui-builder/src/components/molecules/rich-text.tsx +132 -0
- package/src/ui-builder/src/components/molecules/rich-text.web.tsx +82 -0
- package/src/ui-builder/src/components/registery.tsx +404 -0
- package/src/ui-builder/src/helper-elements/cta.tsx +79 -0
- package/src/ui-builder/src/helper-elements/faq.tsx +143 -0
- package/src/ui-builder/src/helper-elements/html-rich-text.tsx +59 -0
- package/src/ui-builder/src/helper-elements/index.tsx +76 -0
- package/src/ui-builder/src/helper-elements/link-button.tsx +74 -0
- package/src/ui-builder/src/helper-elements/media-list-accordian.tsx +230 -0
- package/src/ui-builder/src/helper-elements/media-list.tsx +154 -0
- package/src/ui-builder/src/helper-elements/media.tsx +78 -0
- package/src/ui-builder/src/helper-elements/rich-text-accordion.tsx +148 -0
- package/src/ui-builder/src/helper-elements/rich-text-list.tsx +134 -0
- package/src/ui-builder/src/helper-elements/rich-text.tsx +61 -0
- package/src/ui-builder/src/helper-elements/testimonials.tsx +149 -0
- package/src/ui-builder/src/helper-elements/text.tsx +52 -0
- package/src/ui-builder/src/helper-elements/video-list.tsx +137 -0
- package/src/ui-builder/src/helper-elements/video.tsx +44 -0
- package/src/ui-builder/src/helper-elements/youtube-video.tsx +69 -0
- package/src/ui-builder/src/index.ts +42 -0
- package/src/ui-builder/src/style-utils.ts +127 -0
- package/src/ui-builder/src/types.ts +67 -0
- package/src/ui-builder/src/utils.ts +89 -0
- package/src/utils/src/cache.utils.ts +64 -0
- package/src/utils/src/common.utils.ts +47 -0
- package/src/utils/src/http-client.ts +258 -0
- package/src/utils/src/index.ts +5 -0
- package/src/utils/src/slack-client.ts +8 -0
- package/src/utils/src/telemetry-client.ts +69 -0
- package/src/utils.ts +30 -0
- package/tsconfig.paths.json +130 -0
|
@@ -0,0 +1,2481 @@
|
|
|
1
|
+
import { BlockMicroContext } from '../types'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared ProductCardV2 microContexts
|
|
5
|
+
* Used by product-list.def.ts, product-grid.def.ts, and other blocks that use ProductCardV2
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const productCardV2MicroContext: BlockMicroContext = {
|
|
9
|
+
key: 'productCardV2',
|
|
10
|
+
title: 'ProductCardV2 (Modern)',
|
|
11
|
+
description:
|
|
12
|
+
'Properties for the modern product card with dynamic layout tree structure. IMPORTANT: Layout items are keyed by their layout key (e.g., "title", "image", "price"). Style properties go in style.productV2[layoutKey], while options go in options.productCardV2[layoutKey] - NOT in style.productV2[layoutKey].',
|
|
13
|
+
properties: [
|
|
14
|
+
{
|
|
15
|
+
path: 'style.productV2.root',
|
|
16
|
+
type: 'BaseStyle',
|
|
17
|
+
description:
|
|
18
|
+
'Product card root style (width calculated from productCardWidth or fraction)',
|
|
19
|
+
optional: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
path: 'style.productV2[layoutKey]',
|
|
23
|
+
type: 'BaseStyle | ComponentStyle',
|
|
24
|
+
description:
|
|
25
|
+
'Styles for each layout item keyed by layout key. Replace [layoutKey] with actual key from layout (e.g., "title", "image", "price"). Examples: style.productV2.title.root, style.productV2.title.text, style.productV2.image.root, style.productV2.price.text. NOTE: This is for STYLE properties only, NOT options. Options go in options.productCardV2[layoutKey], NOT here.',
|
|
26
|
+
optional: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
path: 'source[layoutKey]',
|
|
30
|
+
type: 'any',
|
|
31
|
+
description:
|
|
32
|
+
'Source data for each layout item keyed by layout key. Replace [layoutKey] with actual key from layout. Examples: source.title, source.image, source.price.',
|
|
33
|
+
optional: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: 'options.productCardV2[layoutKey]',
|
|
37
|
+
type: 'any',
|
|
38
|
+
description:
|
|
39
|
+
'Options for each layout item keyed by layout key. Replace [layoutKey] with actual key from layout. Examples: options.title.numberOfLines, options.image.aspectRatio, options.price.template. CRITICAL: Options go in options.productCardV2[layoutKey], NOT in style.productV2[layoutKey]. Do NOT use style.productV2[layoutKey] for options properties.',
|
|
40
|
+
optional: true,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
path: 'options.productCardV2.fraction',
|
|
44
|
+
type: 'number',
|
|
45
|
+
description: 'Fraction of device width for product card (default: 0.48)',
|
|
46
|
+
optional: true,
|
|
47
|
+
defaultValue: 0.48,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
relatedKeys: [
|
|
51
|
+
'product-card',
|
|
52
|
+
'image',
|
|
53
|
+
'carousel',
|
|
54
|
+
'title',
|
|
55
|
+
'price',
|
|
56
|
+
'compare-at-price',
|
|
57
|
+
'discount-label',
|
|
58
|
+
'add-to-cart',
|
|
59
|
+
'variant-selector',
|
|
60
|
+
'variant-selector-3',
|
|
61
|
+
'ratings-count',
|
|
62
|
+
'star-ratings',
|
|
63
|
+
'avg-ratings',
|
|
64
|
+
'product-vendor',
|
|
65
|
+
'product-tag',
|
|
66
|
+
'product-tag-v2',
|
|
67
|
+
'color-swatch',
|
|
68
|
+
'metafield-text',
|
|
69
|
+
'metafield-rich-text',
|
|
70
|
+
'metafield-shopify-rich-text',
|
|
71
|
+
'add-to-wishlist',
|
|
72
|
+
'delete-from-wishlist',
|
|
73
|
+
'move-to-cart',
|
|
74
|
+
'add-to-bundle',
|
|
75
|
+
'spacer',
|
|
76
|
+
'text',
|
|
77
|
+
'upsell-product-price',
|
|
78
|
+
'notify-me',
|
|
79
|
+
'overlay',
|
|
80
|
+
'product-type',
|
|
81
|
+
'available-variants',
|
|
82
|
+
'share-icon',
|
|
83
|
+
'quantity-selector',
|
|
84
|
+
'open-modal',
|
|
85
|
+
'variant-sku',
|
|
86
|
+
'scarcity-counter',
|
|
87
|
+
'min-variant-price',
|
|
88
|
+
'in-stock',
|
|
89
|
+
'goto-button-v2',
|
|
90
|
+
'truefit-widget',
|
|
91
|
+
'selling-plan-discount',
|
|
92
|
+
'selling-plan-price',
|
|
93
|
+
'selling-plan-compare-at-price',
|
|
94
|
+
],
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const productCardImageMicroContext: BlockMicroContext = {
|
|
98
|
+
key: 'image',
|
|
99
|
+
title: 'Product Image (image)',
|
|
100
|
+
description:
|
|
101
|
+
'Displays product featured image or variant image. Uses ScaledImage component internally.',
|
|
102
|
+
properties: [
|
|
103
|
+
{
|
|
104
|
+
path: 'style.productV2[layoutKey].root',
|
|
105
|
+
type: 'BaseStyle',
|
|
106
|
+
description: 'Image container root style',
|
|
107
|
+
optional: true,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
path: 'style.productV2[layoutKey].image',
|
|
111
|
+
type: 'BaseImageStyle',
|
|
112
|
+
description:
|
|
113
|
+
'Image style (width, height, marginLeft, marginRight, resizeMode)',
|
|
114
|
+
optional: true,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: 'options.productCardV2[layoutKey].aspectRatio',
|
|
118
|
+
type: 'number',
|
|
119
|
+
description:
|
|
120
|
+
'Image aspect ratio (width/height). If not set, calculated from image dimensions.',
|
|
121
|
+
optional: true,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
path: 'options.productCardV2[layoutKey].roundness',
|
|
125
|
+
type: 'number',
|
|
126
|
+
description: 'Image corner roundness (0-0.5 scale). Default: 0',
|
|
127
|
+
optional: true,
|
|
128
|
+
defaultValue: 0,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
path: 'options.productCardV2[layoutKey].showVariantImage',
|
|
132
|
+
type: 'boolean',
|
|
133
|
+
description:
|
|
134
|
+
'Whether to show variant-specific image instead of featured image. Default: false',
|
|
135
|
+
optional: true,
|
|
136
|
+
defaultValue: false,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
path: 'options.productCardV2[layoutKey].crop',
|
|
140
|
+
type: '"top" | "center" | "bottom"',
|
|
141
|
+
description:
|
|
142
|
+
'Image crop position when aspect ratio differs from original',
|
|
143
|
+
optional: true,
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
path: 'options.productCardV2[layoutKey].defaultDisplayImageIndex',
|
|
147
|
+
type: 'number',
|
|
148
|
+
description:
|
|
149
|
+
'Default image index to display (0-based, negative counts from end). Default: 0',
|
|
150
|
+
optional: true,
|
|
151
|
+
defaultValue: 0,
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
relatedKeys: ['product-card', 'carousel', 'productCardV2'],
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const productCardCarouselMicroContext: BlockMicroContext = {
|
|
158
|
+
key: 'carousel',
|
|
159
|
+
title: 'Product Image Carousel (carousel)',
|
|
160
|
+
description:
|
|
161
|
+
'Displays multiple product images in a swipeable carousel with optional indicators.',
|
|
162
|
+
properties: [
|
|
163
|
+
{
|
|
164
|
+
path: 'style.productV2[layoutKey].carousel.root',
|
|
165
|
+
type: 'BaseStyle',
|
|
166
|
+
description: 'Carousel container root style',
|
|
167
|
+
optional: true,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
path: 'style.productV2[layoutKey].carousel.width',
|
|
171
|
+
type: 'number',
|
|
172
|
+
description: 'Carousel width (defaults to productWidth)',
|
|
173
|
+
optional: true,
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
path: 'style.productV2[layoutKey].carousel.imageWidth',
|
|
177
|
+
type: 'number',
|
|
178
|
+
description: 'Width of carousel images',
|
|
179
|
+
optional: true,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
path: 'style.productV2[layoutKey].carousel.imageHeight',
|
|
183
|
+
type: 'number',
|
|
184
|
+
description: 'Height of carousel images',
|
|
185
|
+
optional: true,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
path: 'style.productV2[layoutKey].carousel.indicator',
|
|
189
|
+
type: 'IndicatorStyle',
|
|
190
|
+
description: 'Carousel indicator styles (dots/lines)',
|
|
191
|
+
optional: true,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
path: 'options.productCardV2[layoutKey].roundness',
|
|
195
|
+
type: 'number',
|
|
196
|
+
description: 'Image corner roundness. Default: 0',
|
|
197
|
+
optional: true,
|
|
198
|
+
defaultValue: 0,
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
path: 'options.productCardV2[layoutKey].enableImagePreview',
|
|
202
|
+
type: 'boolean',
|
|
203
|
+
description: 'Whether to open image preview on tap. Default: true',
|
|
204
|
+
optional: true,
|
|
205
|
+
defaultValue: true,
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
path: 'options.productCardV2[layoutKey].showIndicator',
|
|
209
|
+
type: 'boolean',
|
|
210
|
+
description: 'Whether to show carousel indicators',
|
|
211
|
+
optional: true,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
path: 'options.productCardV2[layoutKey].showVariantImage',
|
|
215
|
+
type: 'boolean',
|
|
216
|
+
description: 'Whether to show variant-specific images',
|
|
217
|
+
optional: true,
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
relatedKeys: ['productCard', 'productCardImage'],
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const productCardTitleMicroContext: BlockMicroContext = {
|
|
224
|
+
key: 'title',
|
|
225
|
+
title: 'Product Title (title)',
|
|
226
|
+
description: 'Displays the product name with configurable text truncation.',
|
|
227
|
+
properties: [
|
|
228
|
+
{
|
|
229
|
+
path: 'style.productV2[layoutKey].root',
|
|
230
|
+
type: 'BaseStyle',
|
|
231
|
+
description: 'Title container root style (View wrapper)',
|
|
232
|
+
optional: true,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
path: 'style.productV2[layoutKey].text',
|
|
236
|
+
type: 'BaseTextStyle',
|
|
237
|
+
description: 'Title text style (fontSize, fontWeight, color, etc.)',
|
|
238
|
+
optional: true,
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
path: 'options.productCardV2[layoutKey].numberOfLines',
|
|
242
|
+
type: 'number',
|
|
243
|
+
description: 'Maximum number of lines before truncation. Default: 1',
|
|
244
|
+
optional: true,
|
|
245
|
+
defaultValue: 1,
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
relatedKeys: ['productCard'],
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
const productCardPriceMicroContext: BlockMicroContext = {
|
|
252
|
+
key: 'price',
|
|
253
|
+
title: 'Product Price (price)',
|
|
254
|
+
description: 'Displays the current product price with currency formatting.',
|
|
255
|
+
properties: [
|
|
256
|
+
{
|
|
257
|
+
path: 'style.productV2[layoutKey].root',
|
|
258
|
+
type: 'BaseStyle',
|
|
259
|
+
description: 'Price container root style (View wrapper)',
|
|
260
|
+
optional: true,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
path: 'style.productV2[layoutKey].text',
|
|
264
|
+
type: 'BaseTextStyle',
|
|
265
|
+
description: 'Price text style',
|
|
266
|
+
optional: true,
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
path: 'style.productV2[layoutKey].highlightedText',
|
|
270
|
+
type: 'BaseTextStyle',
|
|
271
|
+
description:
|
|
272
|
+
'Highlighted price text style (used when highlightText is true and no compareAtPrice)',
|
|
273
|
+
optional: true,
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
277
|
+
type: 'string',
|
|
278
|
+
description: 'Price template string (e.g., "{{price}}", "${{price}}")',
|
|
279
|
+
optional: true,
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
path: 'options.productCardV2[layoutKey].alwaysShowDecimal',
|
|
283
|
+
type: 'boolean',
|
|
284
|
+
description: 'Whether to always show decimal places',
|
|
285
|
+
optional: true,
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
path: 'options.productCardV2[layoutKey].highlightText',
|
|
289
|
+
type: 'boolean',
|
|
290
|
+
description:
|
|
291
|
+
'Whether to use highlighted style when product is not on sale',
|
|
292
|
+
optional: true,
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
path: 'options.productCardV2[layoutKey].numberOfLines',
|
|
296
|
+
type: 'number',
|
|
297
|
+
description: 'Maximum number of lines for price text',
|
|
298
|
+
optional: true,
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
relatedKeys: [
|
|
302
|
+
'product-card',
|
|
303
|
+
'compare-at-price',
|
|
304
|
+
'discount-label',
|
|
305
|
+
'productCardV2',
|
|
306
|
+
],
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
const productCardCompareAtPriceMicroContext: BlockMicroContext = {
|
|
310
|
+
key: 'compare-at-price',
|
|
311
|
+
title: 'Compare At Price (compare-at-price)',
|
|
312
|
+
description:
|
|
313
|
+
'Displays the original price when product is on sale. Only shows if compareAtPrice > price.',
|
|
314
|
+
properties: [
|
|
315
|
+
{
|
|
316
|
+
path: 'style.productV2[layoutKey].root',
|
|
317
|
+
type: 'BaseStyle',
|
|
318
|
+
description: 'Compare at price container root style',
|
|
319
|
+
optional: true,
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
path: 'style.productV2[layoutKey].text',
|
|
323
|
+
type: 'BaseTextStyle',
|
|
324
|
+
description: 'Compare at price text style (typically with strikethrough)',
|
|
325
|
+
optional: true,
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
path: 'style.productV2[layoutKey].lineThrough',
|
|
329
|
+
type: 'BaseStyle',
|
|
330
|
+
description: 'Line-through overlay style for strikethrough effect',
|
|
331
|
+
optional: true,
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
335
|
+
type: 'string',
|
|
336
|
+
description: 'Price template string',
|
|
337
|
+
optional: true,
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
path: 'options.productCardV2[layoutKey].alwaysShowDecimal',
|
|
341
|
+
type: 'boolean',
|
|
342
|
+
description: 'Whether to always show decimal places',
|
|
343
|
+
optional: true,
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
relatedKeys: ['product-card', 'price', 'discount-label', 'productCardV2'],
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
const productCardDiscountLabelMicroContext: BlockMicroContext = {
|
|
350
|
+
key: 'discount-label',
|
|
351
|
+
title: 'Discount Label (discount-label)',
|
|
352
|
+
description:
|
|
353
|
+
'Displays discount percentage or amount. Supports min thresholds.',
|
|
354
|
+
properties: [
|
|
355
|
+
{
|
|
356
|
+
path: 'style.productV2[layoutKey].root',
|
|
357
|
+
type: 'BaseStyle',
|
|
358
|
+
description: 'Discount label container root style',
|
|
359
|
+
optional: true,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
path: 'style.productV2[layoutKey].text',
|
|
363
|
+
type: 'BaseTextStyle',
|
|
364
|
+
description: 'Discount label text style',
|
|
365
|
+
optional: true,
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
369
|
+
type: 'string',
|
|
370
|
+
description:
|
|
371
|
+
'Discount template. Supports: {{offPercentage}}, {{offAmount}}, {{currency}}, {{symbol}}. Default: "{{offPercentage}}% off"',
|
|
372
|
+
optional: true,
|
|
373
|
+
defaultValue: '{{offPercentage}}% off',
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
path: 'options.productCardV2[layoutKey].minDiscountPercentage',
|
|
377
|
+
type: 'number',
|
|
378
|
+
description: 'Minimum discount percentage to show label',
|
|
379
|
+
optional: true,
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
path: 'options.productCardV2[layoutKey].minDiscountPrice',
|
|
383
|
+
type: 'number',
|
|
384
|
+
description: 'Minimum discount amount to show label',
|
|
385
|
+
optional: true,
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
path: 'options.productCardV2[layoutKey].alwaysShowDecimal',
|
|
389
|
+
type: 'boolean',
|
|
390
|
+
description: 'Whether to always show decimal places in amount',
|
|
391
|
+
optional: true,
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
path: 'options.productCardV2[layoutKey].enableComma',
|
|
395
|
+
type: 'boolean',
|
|
396
|
+
description: 'Whether to enable comma formatting in numbers',
|
|
397
|
+
optional: true,
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
path: 'options.productCardV2[layoutKey].priceDecimalAccuracy',
|
|
401
|
+
type: 'number',
|
|
402
|
+
description: 'Number of decimal places for price',
|
|
403
|
+
optional: true,
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
relatedKeys: ['product-card', 'price', 'compare-at-price', 'productCardV2'],
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
const productCardMinVariantPriceMicroContext: BlockMicroContext = {
|
|
410
|
+
key: 'min-variant-price',
|
|
411
|
+
title: 'Min Variant Price (min-variant-price)',
|
|
412
|
+
description: 'Displays minimum price across all variants.',
|
|
413
|
+
properties: [
|
|
414
|
+
{
|
|
415
|
+
path: 'style.productV2[layoutKey].root',
|
|
416
|
+
type: 'BaseStyle',
|
|
417
|
+
description: 'Min variant price container root style',
|
|
418
|
+
optional: true,
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
path: 'style.productV2[layoutKey].text',
|
|
422
|
+
type: 'BaseTextStyle',
|
|
423
|
+
description: 'Min variant price text style',
|
|
424
|
+
optional: true,
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
428
|
+
type: 'string',
|
|
429
|
+
description: 'Price template string',
|
|
430
|
+
optional: true,
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
path: 'options.productCardV2[layoutKey].alwaysShowDecimal',
|
|
434
|
+
type: 'boolean',
|
|
435
|
+
description: 'Whether to always show decimal places',
|
|
436
|
+
optional: true,
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
path: 'options.productCardV2[layoutKey].enableComma',
|
|
440
|
+
type: 'boolean',
|
|
441
|
+
description: 'Whether to enable comma formatting. Default: true',
|
|
442
|
+
optional: true,
|
|
443
|
+
defaultValue: true,
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
path: 'options.productCardV2[layoutKey].priceDecimalAccuracy',
|
|
447
|
+
type: 'number',
|
|
448
|
+
description: 'Number of decimal places. Default: 2',
|
|
449
|
+
optional: true,
|
|
450
|
+
defaultValue: 2,
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
relatedKeys: ['productCard', 'productCardPrice'],
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
const productCardAddToCartMicroContext: BlockMicroContext = {
|
|
457
|
+
key: 'add-to-cart',
|
|
458
|
+
title: 'Add To Cart Button (add-to-cart)',
|
|
459
|
+
description:
|
|
460
|
+
'Button for adding product to cart. Supports variant selector modal, price display, and toast notifications.',
|
|
461
|
+
properties: [
|
|
462
|
+
{
|
|
463
|
+
path: 'style.productV2[layoutKey].root',
|
|
464
|
+
type: 'BaseStyle',
|
|
465
|
+
description: 'Button root container style (Pressable)',
|
|
466
|
+
optional: true,
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
path: 'style.productV2[layoutKey].text',
|
|
470
|
+
type: 'BaseTextStyle',
|
|
471
|
+
description: 'Button text style',
|
|
472
|
+
optional: true,
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
path: 'style.productV2[layoutKey].startIcon',
|
|
476
|
+
type: '{ root: BaseStyle, icon: BaseIconStyle }',
|
|
477
|
+
description: 'Start icon container and icon styles',
|
|
478
|
+
optional: true,
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
path: 'style.productV2[layoutKey].endIcon',
|
|
482
|
+
type: '{ root: BaseStyle, icon: BaseIconStyle }',
|
|
483
|
+
description: 'End icon container and icon styles',
|
|
484
|
+
optional: true,
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
path: 'style.productV2[layoutKey].modes.outOfStock',
|
|
488
|
+
type: 'AddToCartStyle',
|
|
489
|
+
description: 'Styles when product is out of stock',
|
|
490
|
+
optional: true,
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
path: 'style.productV2[layoutKey].modes.subscription',
|
|
494
|
+
type: 'AddToCartStyle',
|
|
495
|
+
description: 'Styles for subscription products',
|
|
496
|
+
optional: true,
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
path: 'style.productV2[layoutKey].modes.preOrder',
|
|
500
|
+
type: 'AddToCartStyle',
|
|
501
|
+
description: 'Styles for pre-order products',
|
|
502
|
+
optional: true,
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
path: 'style.productV2[layoutKey].priceInfo',
|
|
506
|
+
type: '{ root, price, compareAtPrice, discountLabel }',
|
|
507
|
+
description: 'Price information displayed within button',
|
|
508
|
+
optional: true,
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
path: 'options.productCardV2[layoutKey].buttonTitle',
|
|
512
|
+
type: 'string',
|
|
513
|
+
description: 'Button text label (e.g., "Add to Cart")',
|
|
514
|
+
optional: true,
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
path: 'options.productCardV2[layoutKey].startIconId',
|
|
518
|
+
type: 'string',
|
|
519
|
+
description: 'Icon ID for start icon',
|
|
520
|
+
optional: true,
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
path: 'options.productCardV2[layoutKey].endIconId',
|
|
524
|
+
type: 'string',
|
|
525
|
+
description: 'Icon ID for end icon',
|
|
526
|
+
optional: true,
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
path: 'options.productCardV2[layoutKey].link',
|
|
530
|
+
type: '{ kind, value, params, external }',
|
|
531
|
+
description: 'Navigation link after successful add to cart',
|
|
532
|
+
optional: true,
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
path: 'options.productCardV2[layoutKey].showSuccessToast',
|
|
536
|
+
type: 'boolean',
|
|
537
|
+
description: 'Whether to show success toast. Default: true',
|
|
538
|
+
optional: true,
|
|
539
|
+
defaultValue: true,
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
path: 'options.productCardV2[layoutKey].toastMessage',
|
|
543
|
+
type: 'string',
|
|
544
|
+
description:
|
|
545
|
+
'Custom success toast message. Default: "Item added to cart"',
|
|
546
|
+
optional: true,
|
|
547
|
+
defaultValue: 'Item added to cart',
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
path: 'options.productCardV2[layoutKey].showPrice',
|
|
551
|
+
type: 'boolean',
|
|
552
|
+
description: 'Whether to show price within button',
|
|
553
|
+
optional: true,
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
path: 'options.productCardV2[layoutKey].showCompareAtPrice',
|
|
557
|
+
type: 'boolean',
|
|
558
|
+
description: 'Whether to show compare at price within button',
|
|
559
|
+
optional: true,
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
path: 'options.productCardV2[layoutKey].showDiscount',
|
|
563
|
+
type: 'boolean',
|
|
564
|
+
description: 'Whether to show discount label within button',
|
|
565
|
+
optional: true,
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
path: 'options.productCardV2[layoutKey].variantSelectorModalId',
|
|
569
|
+
type: 'string',
|
|
570
|
+
description: 'Modal ID for variant selector when no variant selected',
|
|
571
|
+
optional: true,
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
path: 'options.productCardV2[layoutKey].preOrderTag',
|
|
575
|
+
type: 'string',
|
|
576
|
+
description: 'Tag name to identify pre-order products',
|
|
577
|
+
optional: true,
|
|
578
|
+
},
|
|
579
|
+
],
|
|
580
|
+
relatedKeys: [
|
|
581
|
+
'product-card',
|
|
582
|
+
'variant-selector',
|
|
583
|
+
'variant-selector-3',
|
|
584
|
+
'quantity-selector',
|
|
585
|
+
'variant-sku',
|
|
586
|
+
'notify-me',
|
|
587
|
+
'in-stock',
|
|
588
|
+
'productCardV2',
|
|
589
|
+
],
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
const productCardAddToWishlistMicroContext: BlockMicroContext = {
|
|
593
|
+
key: 'add-to-wishlist',
|
|
594
|
+
title: 'Add To Wishlist (add-to-wishlist)',
|
|
595
|
+
description: 'Button for adding product to wishlist with icon toggle.',
|
|
596
|
+
properties: [
|
|
597
|
+
{
|
|
598
|
+
path: 'style.productV2[layoutKey].root',
|
|
599
|
+
type: 'BaseStyle',
|
|
600
|
+
description: 'Button root container style',
|
|
601
|
+
optional: true,
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
path: 'style.productV2[layoutKey].text',
|
|
605
|
+
type: 'BaseTextStyle',
|
|
606
|
+
description: 'Button text style',
|
|
607
|
+
optional: true,
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
path: 'style.productV2[layoutKey].icon',
|
|
611
|
+
type: 'BaseIconStyle',
|
|
612
|
+
description: 'Icon style when not in wishlist',
|
|
613
|
+
optional: true,
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
path: 'style.productV2[layoutKey].presentInWishlist',
|
|
617
|
+
type: 'BaseIconStyle',
|
|
618
|
+
description: 'Icon style when product is in wishlist',
|
|
619
|
+
optional: true,
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
path: 'options.productCardV2[layoutKey].buttonTitle',
|
|
623
|
+
type: 'string',
|
|
624
|
+
description: 'Button text label',
|
|
625
|
+
optional: true,
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
path: 'options.productCardV2[layoutKey].iconId',
|
|
629
|
+
type: 'string',
|
|
630
|
+
description: 'Icon ID for wishlist button',
|
|
631
|
+
optional: true,
|
|
632
|
+
},
|
|
633
|
+
],
|
|
634
|
+
relatedKeys: [
|
|
635
|
+
'product-card',
|
|
636
|
+
'delete-from-wishlist',
|
|
637
|
+
'move-to-cart',
|
|
638
|
+
'productCardV2',
|
|
639
|
+
],
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
const productCardDeleteFromWishlistMicroContext: BlockMicroContext = {
|
|
643
|
+
key: 'delete-from-wishlist',
|
|
644
|
+
title: 'Delete From Wishlist (delete-from-wishlist)',
|
|
645
|
+
description: 'Button for removing product from wishlist.',
|
|
646
|
+
properties: [
|
|
647
|
+
{
|
|
648
|
+
path: 'style.productV2[layoutKey].root',
|
|
649
|
+
type: 'BaseStyle',
|
|
650
|
+
description: 'Button root container style',
|
|
651
|
+
optional: true,
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
path: 'style.productV2[layoutKey].text',
|
|
655
|
+
type: 'BaseTextStyle',
|
|
656
|
+
description: 'Button text style',
|
|
657
|
+
optional: true,
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
path: 'style.productV2[layoutKey].icon',
|
|
661
|
+
type: 'BaseIconStyle',
|
|
662
|
+
description: 'Icon style',
|
|
663
|
+
optional: true,
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
path: 'options.productCardV2[layoutKey].iconId',
|
|
667
|
+
type: 'string',
|
|
668
|
+
description: 'Icon ID for delete button',
|
|
669
|
+
optional: true,
|
|
670
|
+
},
|
|
671
|
+
],
|
|
672
|
+
relatedKeys: ['productCard', 'productCardAddToWishlist'],
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
const productCardMoveToCartMicroContext: BlockMicroContext = {
|
|
676
|
+
key: 'move-to-cart',
|
|
677
|
+
title: 'Move To Cart (move-to-cart)',
|
|
678
|
+
description: 'Button for moving product from wishlist to cart.',
|
|
679
|
+
properties: [
|
|
680
|
+
{
|
|
681
|
+
path: 'style.productV2[layoutKey].root',
|
|
682
|
+
type: 'BaseStyle',
|
|
683
|
+
description: 'Button root container style',
|
|
684
|
+
optional: true,
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
path: 'style.productV2[layoutKey].text',
|
|
688
|
+
type: 'BaseTextStyle',
|
|
689
|
+
description: 'Button text style',
|
|
690
|
+
optional: true,
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
path: 'options.productCardV2[layoutKey].buttonTitle',
|
|
694
|
+
type: 'string',
|
|
695
|
+
description: 'Button text label',
|
|
696
|
+
optional: true,
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
path: 'options.productCardV2[layoutKey].type',
|
|
700
|
+
type: 'AddToCartType',
|
|
701
|
+
description: 'Type of add to cart action',
|
|
702
|
+
optional: true,
|
|
703
|
+
},
|
|
704
|
+
],
|
|
705
|
+
relatedKeys: ['product-card', 'add-to-wishlist', 'productCardV2'],
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
const productCardAddToBundleMicroContext: BlockMicroContext = {
|
|
709
|
+
key: 'add-to-bundle',
|
|
710
|
+
title: 'Add To Bundle (add-to-bundle)',
|
|
711
|
+
description: 'Button for adding product to a bundle.',
|
|
712
|
+
properties: [
|
|
713
|
+
{
|
|
714
|
+
path: 'style.productV2[layoutKey].root',
|
|
715
|
+
type: 'BaseStyle',
|
|
716
|
+
description: 'Button root container style',
|
|
717
|
+
optional: true,
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
path: 'style.productV2[layoutKey].text',
|
|
721
|
+
type: 'BaseTextStyle',
|
|
722
|
+
description: 'Button text style',
|
|
723
|
+
optional: true,
|
|
724
|
+
},
|
|
725
|
+
],
|
|
726
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
const productCardVariantSelectorMicroContext: BlockMicroContext = {
|
|
730
|
+
key: 'variant-selector',
|
|
731
|
+
title: 'Variant Selector (variant-selector)',
|
|
732
|
+
description: 'Displays product variant options with selectable options.',
|
|
733
|
+
properties: [
|
|
734
|
+
{
|
|
735
|
+
path: 'style.productV2[layoutKey].root',
|
|
736
|
+
type: 'BaseStyle',
|
|
737
|
+
description: 'Variant selector root container style',
|
|
738
|
+
optional: true,
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
path: 'style.productV2[layoutKey].variant.root',
|
|
742
|
+
type: 'BaseStyle',
|
|
743
|
+
description: 'Individual variant option root style',
|
|
744
|
+
optional: true,
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
path: 'style.productV2[layoutKey].variant.selected',
|
|
748
|
+
type: 'BaseStyle',
|
|
749
|
+
description: 'Selected variant option style',
|
|
750
|
+
optional: true,
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
path: 'style.productV2[layoutKey].variant.unselect',
|
|
754
|
+
type: 'BaseStyle',
|
|
755
|
+
description: 'Unselected variant option style',
|
|
756
|
+
optional: true,
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
path: 'style.productV2[layoutKey].variant.text',
|
|
760
|
+
type: 'BaseTextStyle',
|
|
761
|
+
description: 'Variant option text style',
|
|
762
|
+
optional: true,
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
path: 'style.productV2[layoutKey].heading.root',
|
|
766
|
+
type: 'BaseStyle',
|
|
767
|
+
description: 'Variant heading container style',
|
|
768
|
+
optional: true,
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
path: 'style.productV2[layoutKey].heading.text',
|
|
772
|
+
type: 'BaseTextStyle',
|
|
773
|
+
description: 'Variant heading text style',
|
|
774
|
+
optional: true,
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
path: 'style.productV2[layoutKey].optionList.root',
|
|
778
|
+
type: 'BaseStyle',
|
|
779
|
+
description: 'Options list container style',
|
|
780
|
+
optional: true,
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
path: 'style.productV2[layoutKey].moreOptionsLabel.root',
|
|
784
|
+
type: 'BaseStyle',
|
|
785
|
+
description: 'More options label container style',
|
|
786
|
+
optional: true,
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
path: 'style.productV2[layoutKey].moreOptionsLabel.text',
|
|
790
|
+
type: 'BaseTextStyle',
|
|
791
|
+
description: 'More options label text style',
|
|
792
|
+
optional: true,
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
path: 'options.productCardV2[layoutKey].optionsToDisplay',
|
|
796
|
+
type: 'string[]',
|
|
797
|
+
description: 'Array of option names to display',
|
|
798
|
+
optional: true,
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
path: 'options.productCardV2[layoutKey].redirectOnOptionSelect',
|
|
802
|
+
type: 'boolean',
|
|
803
|
+
description: 'Whether to navigate to product page on option select',
|
|
804
|
+
optional: true,
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
path: 'options.productCardV2[layoutKey].showOptionsCount',
|
|
808
|
+
type: 'number',
|
|
809
|
+
description: 'Maximum number of options to show before "more" label',
|
|
810
|
+
optional: true,
|
|
811
|
+
},
|
|
812
|
+
],
|
|
813
|
+
relatedKeys: [
|
|
814
|
+
'product-card',
|
|
815
|
+
'variant-selector-3',
|
|
816
|
+
'color-swatch',
|
|
817
|
+
'add-to-cart',
|
|
818
|
+
'productCardV2',
|
|
819
|
+
],
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
const productCardVariantSelector3MicroContext: BlockMicroContext = {
|
|
823
|
+
key: 'variant-selector-3',
|
|
824
|
+
title: 'Variant Selector V3 (variant-selector-3)',
|
|
825
|
+
description: 'Enhanced variant selector with advanced configuration.',
|
|
826
|
+
properties: [
|
|
827
|
+
{
|
|
828
|
+
path: 'style.productV2[layoutKey].root',
|
|
829
|
+
type: 'BaseStyle',
|
|
830
|
+
description: 'Variant selector root container style',
|
|
831
|
+
optional: true,
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
path: 'style.productV2[layoutKey].variant',
|
|
835
|
+
type: 'VariantStyle',
|
|
836
|
+
description: 'Variant option styles (root, selected, unselect, text)',
|
|
837
|
+
optional: true,
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
path: 'style.productV2[layoutKey].heading',
|
|
841
|
+
type: '{ root, text }',
|
|
842
|
+
description: 'Variant heading styles',
|
|
843
|
+
optional: true,
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
path: 'style.productV2[layoutKey].optionList.root',
|
|
847
|
+
type: 'BaseStyle',
|
|
848
|
+
description: 'Options list container style',
|
|
849
|
+
optional: true,
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
path: 'style.productV2[layoutKey].moreOptionsLabel',
|
|
853
|
+
type: '{ root, text }',
|
|
854
|
+
description: 'More options label styles',
|
|
855
|
+
optional: true,
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
path: 'options.productCardV2[layoutKey].optionsToDisplay',
|
|
859
|
+
type: 'string[]',
|
|
860
|
+
description: 'Array of option names to display',
|
|
861
|
+
optional: true,
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
path: 'options.productCardV2[layoutKey].redirectOnOptionSelect',
|
|
865
|
+
type: 'boolean',
|
|
866
|
+
description: 'Whether to navigate to product page on option select',
|
|
867
|
+
optional: true,
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
path: 'source[layoutKey]',
|
|
871
|
+
type: 'VariantSelectorConfigSource',
|
|
872
|
+
description: 'Source configuration for variant selector',
|
|
873
|
+
optional: true,
|
|
874
|
+
},
|
|
875
|
+
],
|
|
876
|
+
relatedKeys: [
|
|
877
|
+
'product-card',
|
|
878
|
+
'variant-selector',
|
|
879
|
+
'add-to-cart',
|
|
880
|
+
'productCardV2',
|
|
881
|
+
],
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
const productCardColorSwatchMicroContext: BlockMicroContext = {
|
|
885
|
+
key: 'color-swatch',
|
|
886
|
+
title: 'Color Swatch (color-swatch)',
|
|
887
|
+
description: 'Displays color variant options as swatches.',
|
|
888
|
+
properties: [
|
|
889
|
+
{
|
|
890
|
+
path: 'style.productV2[layoutKey].root',
|
|
891
|
+
type: 'BaseStyle',
|
|
892
|
+
description: 'Color swatch root container style',
|
|
893
|
+
optional: true,
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
path: 'style.productV2[layoutKey].colorSwatch.root',
|
|
897
|
+
type: 'BaseStyle',
|
|
898
|
+
description: 'Individual swatch root style',
|
|
899
|
+
optional: true,
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
path: 'style.productV2[layoutKey].colorSwatch.selected',
|
|
903
|
+
type: 'BaseStyle',
|
|
904
|
+
description: 'Selected swatch style',
|
|
905
|
+
optional: true,
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
path: 'style.productV2[layoutKey].colorSwatch.unselect',
|
|
909
|
+
type: 'BaseStyle',
|
|
910
|
+
description: 'Unselected swatch style',
|
|
911
|
+
optional: true,
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
path: 'style.productV2[layoutKey].colorSwatch.button',
|
|
915
|
+
type: 'BaseStyle',
|
|
916
|
+
description: 'Swatch button style',
|
|
917
|
+
optional: true,
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
path: 'style.productV2[layoutKey].optionList.root',
|
|
921
|
+
type: 'BaseStyle',
|
|
922
|
+
description: 'Options list container style',
|
|
923
|
+
optional: true,
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
path: 'style.productV2[layoutKey].moreOptionsLabel.root',
|
|
927
|
+
type: 'BaseStyle',
|
|
928
|
+
description: 'More options label container style',
|
|
929
|
+
optional: true,
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
path: 'style.productV2[layoutKey].moreOptionsLabel.text',
|
|
933
|
+
type: 'BaseTextStyle',
|
|
934
|
+
description: 'More options label text style',
|
|
935
|
+
optional: true,
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
path: 'options.productCardV2[layoutKey].redirectOnOptionSelect',
|
|
939
|
+
type: 'boolean',
|
|
940
|
+
description: 'Whether to navigate to product page on option select',
|
|
941
|
+
optional: true,
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
path: 'options.productCardV2[layoutKey].showOptionsCount',
|
|
945
|
+
type: 'number',
|
|
946
|
+
description: 'Maximum number of swatches to show',
|
|
947
|
+
optional: true,
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
path: 'options.productCardV2[layoutKey].moreOptionsLabel',
|
|
951
|
+
type: 'string',
|
|
952
|
+
description: 'Label text for "more options" (e.g., "+5 more")',
|
|
953
|
+
optional: true,
|
|
954
|
+
},
|
|
955
|
+
],
|
|
956
|
+
relatedKeys: ['product-card', 'variant-selector', 'productCardV2'],
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
const productCardAvailableVariantsMicroContext: BlockMicroContext = {
|
|
960
|
+
key: 'available-variants',
|
|
961
|
+
title: 'Available Variants (available-variants)',
|
|
962
|
+
description: 'Displays count of available variant options.',
|
|
963
|
+
properties: [
|
|
964
|
+
{
|
|
965
|
+
path: 'style.productV2[layoutKey].root',
|
|
966
|
+
type: 'BaseStyle',
|
|
967
|
+
description: 'Container root style',
|
|
968
|
+
optional: true,
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
path: 'style.productV2[layoutKey].text',
|
|
972
|
+
type: 'BaseTextStyle',
|
|
973
|
+
description: 'Text style for variant count',
|
|
974
|
+
optional: true,
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
path: 'options.productCardV2[layoutKey].optionToDisplay',
|
|
978
|
+
type: 'string',
|
|
979
|
+
description: 'Option name to count (e.g., "Size", "Color")',
|
|
980
|
+
optional: true,
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
path: 'options.productCardV2[layoutKey].label',
|
|
984
|
+
type: 'string',
|
|
985
|
+
description: 'Label text after count (e.g., "sizes", "colors")',
|
|
986
|
+
optional: true,
|
|
987
|
+
},
|
|
988
|
+
],
|
|
989
|
+
relatedKeys: ['product-card', 'variant-selector', 'productCardV2'],
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
const productCardStarRatingsMicroContext: BlockMicroContext = {
|
|
993
|
+
key: 'star-ratings',
|
|
994
|
+
title: 'Star Ratings (star-ratings)',
|
|
995
|
+
description: 'Displays star rating visualization.',
|
|
996
|
+
properties: [
|
|
997
|
+
{
|
|
998
|
+
path: 'style.productV2[layoutKey].root',
|
|
999
|
+
type: 'BaseStyle',
|
|
1000
|
+
description: 'Star ratings root container style',
|
|
1001
|
+
optional: true,
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
path: 'style.productV2[layoutKey].text',
|
|
1005
|
+
type: 'BaseTextStyle',
|
|
1006
|
+
description: 'Rating count text style',
|
|
1007
|
+
optional: true,
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
path: 'style.productV2[layoutKey].star',
|
|
1011
|
+
type: 'BaseIconStyle',
|
|
1012
|
+
description: 'Star icon style',
|
|
1013
|
+
optional: true,
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
path: 'style.productV2[layoutKey].container',
|
|
1017
|
+
type: 'BaseStyle',
|
|
1018
|
+
description: 'Container style',
|
|
1019
|
+
optional: true,
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
path: 'style.productV2[layoutKey].starContainer',
|
|
1023
|
+
type: 'BaseStyle',
|
|
1024
|
+
description: 'Star icons container style',
|
|
1025
|
+
optional: true,
|
|
1026
|
+
},
|
|
1027
|
+
],
|
|
1028
|
+
relatedKeys: [
|
|
1029
|
+
'product-card',
|
|
1030
|
+
'ratings-count',
|
|
1031
|
+
'avg-ratings',
|
|
1032
|
+
'productCardV2',
|
|
1033
|
+
],
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
const productCardRatingsCountMicroContext: BlockMicroContext = {
|
|
1037
|
+
key: 'ratings-count',
|
|
1038
|
+
title: 'Ratings Count (ratings-count)',
|
|
1039
|
+
description: 'Displays the number of product reviews.',
|
|
1040
|
+
properties: [
|
|
1041
|
+
{
|
|
1042
|
+
path: 'style.productV2[layoutKey].root',
|
|
1043
|
+
type: 'BaseStyle',
|
|
1044
|
+
description: 'Ratings count container root style',
|
|
1045
|
+
optional: true,
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
path: 'style.productV2[layoutKey].text',
|
|
1049
|
+
type: 'BaseTextStyle',
|
|
1050
|
+
description: 'Ratings count text style',
|
|
1051
|
+
optional: true,
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
path: 'style.productV2[layoutKey].icon',
|
|
1055
|
+
type: 'BaseIconStyle',
|
|
1056
|
+
description: 'Optional icon style',
|
|
1057
|
+
optional: true,
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
1061
|
+
type: 'string',
|
|
1062
|
+
description:
|
|
1063
|
+
'Template for count display. Use {{count}} placeholder. Default: "{{count}}"',
|
|
1064
|
+
optional: true,
|
|
1065
|
+
defaultValue: '{{count}}',
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
path: 'options.productCardV2[layoutKey].enableNumberFormatting',
|
|
1069
|
+
type: 'boolean',
|
|
1070
|
+
description: 'Whether to format large numbers (e.g., 1.5K, 2M)',
|
|
1071
|
+
optional: true,
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
path: 'options.productCardV2[layoutKey].showIcon',
|
|
1075
|
+
type: 'boolean',
|
|
1076
|
+
description: 'Whether to show icon next to count',
|
|
1077
|
+
optional: true,
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
path: 'options.productCardV2[layoutKey].iconId',
|
|
1081
|
+
type: 'string',
|
|
1082
|
+
description: 'Icon ID to display',
|
|
1083
|
+
optional: true,
|
|
1084
|
+
},
|
|
1085
|
+
],
|
|
1086
|
+
relatedKeys: ['product-card', 'star-ratings', 'avg-ratings', 'productCardV2'],
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
const productCardAvgRatingsMicroContext: BlockMicroContext = {
|
|
1090
|
+
key: 'avg-ratings',
|
|
1091
|
+
title: 'Average Ratings (avg-ratings)',
|
|
1092
|
+
description:
|
|
1093
|
+
'Displays average rating value with optional icon. Navigates to reviews on press.',
|
|
1094
|
+
properties: [
|
|
1095
|
+
{
|
|
1096
|
+
path: 'style.productV2[layoutKey].root',
|
|
1097
|
+
type: 'BaseStyle',
|
|
1098
|
+
description: 'Average ratings container root style (Pressable)',
|
|
1099
|
+
optional: true,
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
path: 'style.productV2[layoutKey].text',
|
|
1103
|
+
type: 'BaseTextStyle',
|
|
1104
|
+
description: 'Average rating text style',
|
|
1105
|
+
optional: true,
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
path: 'style.productV2[layoutKey].icon',
|
|
1109
|
+
type: 'BaseIconStyle',
|
|
1110
|
+
description: 'Icon style (star icon)',
|
|
1111
|
+
optional: true,
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
path: 'options.productCardV2[layoutKey].iconId',
|
|
1115
|
+
type: 'string',
|
|
1116
|
+
description: 'Icon ID (default: "favorite")',
|
|
1117
|
+
optional: true,
|
|
1118
|
+
defaultValue: 'favorite',
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
path: 'options.productCardV2[layoutKey].showNumberOfReviewsCount',
|
|
1122
|
+
type: 'boolean',
|
|
1123
|
+
description: 'Whether to show review count alongside rating',
|
|
1124
|
+
optional: true,
|
|
1125
|
+
},
|
|
1126
|
+
],
|
|
1127
|
+
relatedKeys: [
|
|
1128
|
+
'product-card',
|
|
1129
|
+
'ratings-count',
|
|
1130
|
+
'star-ratings',
|
|
1131
|
+
'productCardV2',
|
|
1132
|
+
],
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
const productCardProductVendorMicroContext: BlockMicroContext = {
|
|
1136
|
+
key: 'product-vendor',
|
|
1137
|
+
title: 'Product Vendor (product-vendor)',
|
|
1138
|
+
description: 'Displays the product vendor/brand name.',
|
|
1139
|
+
properties: [
|
|
1140
|
+
{
|
|
1141
|
+
path: 'style.productV2[layoutKey].root',
|
|
1142
|
+
type: 'BaseStyle',
|
|
1143
|
+
description: 'Vendor container root style',
|
|
1144
|
+
optional: true,
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
path: 'style.productV2[layoutKey].text',
|
|
1148
|
+
type: 'BaseTextStyle',
|
|
1149
|
+
description: 'Vendor text style',
|
|
1150
|
+
optional: true,
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
path: 'options.productCardV2[layoutKey].text',
|
|
1154
|
+
type: 'TextProps',
|
|
1155
|
+
description: 'React Native Text props (numberOfLines, etc.)',
|
|
1156
|
+
optional: true,
|
|
1157
|
+
},
|
|
1158
|
+
],
|
|
1159
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
const productCardProductTagMicroContext: BlockMicroContext = {
|
|
1163
|
+
key: 'product-tag',
|
|
1164
|
+
title: 'Product Tag (product-tag)',
|
|
1165
|
+
description: 'Displays a single product tag with optional icon.',
|
|
1166
|
+
properties: [
|
|
1167
|
+
{
|
|
1168
|
+
path: 'style.productV2[layoutKey].root',
|
|
1169
|
+
type: 'BaseStyle',
|
|
1170
|
+
description: 'Tag container root style (flexDirection: row)',
|
|
1171
|
+
optional: true,
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
path: 'style.productV2[layoutKey].text',
|
|
1175
|
+
type: 'BaseTextStyle',
|
|
1176
|
+
description: 'Tag text style',
|
|
1177
|
+
optional: true,
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
path: 'style.productV2[layoutKey].icon',
|
|
1181
|
+
type: 'BaseIconStyle',
|
|
1182
|
+
description: 'Tag icon style (width, height, root)',
|
|
1183
|
+
optional: true,
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
path: 'style.productV2[layoutKey].wrapper',
|
|
1187
|
+
type: 'BaseStyle',
|
|
1188
|
+
description: 'Tag wrapper style',
|
|
1189
|
+
optional: true,
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
path: 'options.productCardV2[layoutKey].tagName',
|
|
1193
|
+
type: 'string',
|
|
1194
|
+
description: 'Tag name to match in product tags (case-insensitive)',
|
|
1195
|
+
optional: false,
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
path: 'options.productCardV2[layoutKey].tagLabel',
|
|
1199
|
+
type: 'string',
|
|
1200
|
+
description: 'Display label for the tag',
|
|
1201
|
+
optional: false,
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
path: 'options.productCardV2[layoutKey].iconId',
|
|
1205
|
+
type: 'string',
|
|
1206
|
+
description: 'Icon ID to display before tag label',
|
|
1207
|
+
optional: true,
|
|
1208
|
+
},
|
|
1209
|
+
],
|
|
1210
|
+
relatedKeys: ['product-card', 'product-tag-v2', 'productCardV2'],
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
const productCardProductTagV2MicroContext: BlockMicroContext = {
|
|
1214
|
+
key: 'product-tag-v2',
|
|
1215
|
+
title: 'Product Tag V2 (product-tag-v2)',
|
|
1216
|
+
description: 'Displays multiple product tags with per-tag styling support.',
|
|
1217
|
+
properties: [
|
|
1218
|
+
{
|
|
1219
|
+
path: 'style.productV2[layoutKey].root',
|
|
1220
|
+
type: 'BaseStyle',
|
|
1221
|
+
description: 'Tags container root style (flexDirection: column)',
|
|
1222
|
+
optional: true,
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
path: 'style.productV2[layoutKey].default.root',
|
|
1226
|
+
type: 'BaseStyle',
|
|
1227
|
+
description: 'Default tag container style',
|
|
1228
|
+
optional: true,
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
path: 'style.productV2[layoutKey].default.text',
|
|
1232
|
+
type: 'BaseTextStyle',
|
|
1233
|
+
description: 'Default tag text style',
|
|
1234
|
+
optional: true,
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
path: 'style.productV2[layoutKey].default.icon',
|
|
1238
|
+
type: 'BaseIconStyle',
|
|
1239
|
+
description: 'Default tag icon style',
|
|
1240
|
+
optional: true,
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
path: 'style.productV2[layoutKey][tagName].root',
|
|
1244
|
+
type: 'BaseStyle',
|
|
1245
|
+
description: 'Per-tag override: container style (keyed by tagName)',
|
|
1246
|
+
optional: true,
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
path: 'style.productV2[layoutKey][tagName].text',
|
|
1250
|
+
type: 'BaseTextStyle',
|
|
1251
|
+
description: 'Per-tag override: text style (keyed by tagName)',
|
|
1252
|
+
optional: true,
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
path: 'options.productCardV2[layoutKey].tags',
|
|
1256
|
+
type: 'Array<{ tagName, tagLabel, iconId? }>',
|
|
1257
|
+
description: 'Array of tags to display',
|
|
1258
|
+
optional: false,
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
path: 'options.productCardV2[layoutKey].noOfTags',
|
|
1262
|
+
type: 'number',
|
|
1263
|
+
description: 'Maximum number of tags to show. Default: 1',
|
|
1264
|
+
optional: true,
|
|
1265
|
+
defaultValue: 1,
|
|
1266
|
+
},
|
|
1267
|
+
],
|
|
1268
|
+
relatedKeys: ['product-card', 'product-tag', 'productCardV2'],
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
const productCardProductTypeMicroContext: BlockMicroContext = {
|
|
1272
|
+
key: 'product-type',
|
|
1273
|
+
title: 'Product Type (product-type)',
|
|
1274
|
+
description: 'Displays the product type.',
|
|
1275
|
+
properties: [
|
|
1276
|
+
{
|
|
1277
|
+
path: 'style.productV2[layoutKey].root',
|
|
1278
|
+
type: 'BaseStyle',
|
|
1279
|
+
description: 'Product type container root style',
|
|
1280
|
+
optional: true,
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
path: 'style.productV2[layoutKey].text',
|
|
1284
|
+
type: 'BaseTextStyle',
|
|
1285
|
+
description: 'Product type text style',
|
|
1286
|
+
optional: true,
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
1290
|
+
type: 'string',
|
|
1291
|
+
description:
|
|
1292
|
+
'Template for product type. Use {{product_type}} placeholder. Default: "{{product_type}}"',
|
|
1293
|
+
optional: true,
|
|
1294
|
+
defaultValue: '{{product_type}}',
|
|
1295
|
+
},
|
|
1296
|
+
],
|
|
1297
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
const productCardMetafieldTextMicroContext: BlockMicroContext = {
|
|
1301
|
+
key: 'metafield-text',
|
|
1302
|
+
title: 'Metafield Text (metafield-text)',
|
|
1303
|
+
description: 'Displays product metafield as plain text.',
|
|
1304
|
+
properties: [
|
|
1305
|
+
{
|
|
1306
|
+
path: 'style.productV2[layoutKey].root',
|
|
1307
|
+
type: 'BaseStyle',
|
|
1308
|
+
description: 'Metafield text container root style',
|
|
1309
|
+
optional: true,
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
path: 'style.productV2[layoutKey].text',
|
|
1313
|
+
type: 'BaseTextStyle',
|
|
1314
|
+
description: 'Metafield text style',
|
|
1315
|
+
optional: true,
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
path: 'options.productCardV2[layoutKey].metafield.namespace',
|
|
1319
|
+
type: 'string',
|
|
1320
|
+
description: 'Metafield namespace (required)',
|
|
1321
|
+
optional: false,
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
path: 'options.productCardV2[layoutKey].metafield.key',
|
|
1325
|
+
type: 'string',
|
|
1326
|
+
description: 'Metafield key (required)',
|
|
1327
|
+
optional: false,
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
path: 'options.productCardV2[layoutKey].metafield.label',
|
|
1331
|
+
type: 'string',
|
|
1332
|
+
description: 'Optional label prefix for metafield value',
|
|
1333
|
+
optional: true,
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
path: 'options.productCardV2[layoutKey].numberOfLines',
|
|
1337
|
+
type: 'number',
|
|
1338
|
+
description: 'Maximum number of lines before truncation',
|
|
1339
|
+
optional: true,
|
|
1340
|
+
},
|
|
1341
|
+
],
|
|
1342
|
+
relatedKeys: [
|
|
1343
|
+
'product-card',
|
|
1344
|
+
'metafield-rich-text',
|
|
1345
|
+
'metafield-shopify-rich-text',
|
|
1346
|
+
'productCardV2',
|
|
1347
|
+
],
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
const productCardMetafieldRichTextMicroContext: BlockMicroContext = {
|
|
1351
|
+
key: 'metafield-rich-text',
|
|
1352
|
+
title: 'Metafield Rich Text (metafield-rich-text)',
|
|
1353
|
+
description: 'Displays product metafield as HTML rich text.',
|
|
1354
|
+
properties: [
|
|
1355
|
+
{
|
|
1356
|
+
path: 'style.productV2[layoutKey].root',
|
|
1357
|
+
type: 'BaseStyle',
|
|
1358
|
+
description: 'Metafield rich text container root style',
|
|
1359
|
+
optional: true,
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
path: 'style.productV2[layoutKey].richText.root',
|
|
1363
|
+
type: 'BaseStyle',
|
|
1364
|
+
description: 'Rich text component root style',
|
|
1365
|
+
optional: true,
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
path: 'style.productV2[layoutKey].richText.tags',
|
|
1369
|
+
type: 'Record<string, BaseTextStyle>',
|
|
1370
|
+
description: 'Styles for HTML tags (p, h1, h2, span, etc.)',
|
|
1371
|
+
optional: true,
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
path: 'options.productCardV2[layoutKey].metafield.namespace',
|
|
1375
|
+
type: 'string',
|
|
1376
|
+
description: 'Metafield namespace (required)',
|
|
1377
|
+
optional: false,
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
path: 'options.productCardV2[layoutKey].metafield.key',
|
|
1381
|
+
type: 'string',
|
|
1382
|
+
description: 'Metafield key (required)',
|
|
1383
|
+
optional: false,
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
path: 'options.productCardV2[layoutKey].numberOfLines',
|
|
1387
|
+
type: 'number',
|
|
1388
|
+
description: 'Maximum number of lines',
|
|
1389
|
+
optional: true,
|
|
1390
|
+
},
|
|
1391
|
+
],
|
|
1392
|
+
relatedKeys: [
|
|
1393
|
+
'product-card',
|
|
1394
|
+
'metafield-text',
|
|
1395
|
+
'metafield-shopify-rich-text',
|
|
1396
|
+
'productCardV2',
|
|
1397
|
+
],
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
const productCardMetafieldShopifyRichTextMicroContext: BlockMicroContext = {
|
|
1401
|
+
key: 'metafield-shopify-rich-text',
|
|
1402
|
+
title: 'Metafield Shopify Rich Text (metafield-shopify-rich-text)',
|
|
1403
|
+
description: 'Displays Shopify-formatted rich text metafield.',
|
|
1404
|
+
properties: [
|
|
1405
|
+
{
|
|
1406
|
+
path: 'style.productV2[layoutKey].root',
|
|
1407
|
+
type: 'BaseStyle',
|
|
1408
|
+
description: 'Container root style',
|
|
1409
|
+
optional: true,
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
path: 'style.productV2[layoutKey].richText.root',
|
|
1413
|
+
type: 'BaseStyle',
|
|
1414
|
+
description: 'Rich text component root style',
|
|
1415
|
+
optional: true,
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
path: 'style.productV2[layoutKey].richText.tags',
|
|
1419
|
+
type: 'Record<string, BaseTextStyle>',
|
|
1420
|
+
description: 'Styles for HTML tags',
|
|
1421
|
+
optional: true,
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
path: 'options.productCardV2[layoutKey].metafield.namespace',
|
|
1425
|
+
type: 'string',
|
|
1426
|
+
description: 'Metafield namespace (required)',
|
|
1427
|
+
optional: false,
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
path: 'options.productCardV2[layoutKey].metafield.key',
|
|
1431
|
+
type: 'string',
|
|
1432
|
+
description: 'Metafield key (required)',
|
|
1433
|
+
optional: false,
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
path: 'options.productCardV2[layoutKey].ignoredDomTags',
|
|
1437
|
+
type: 'string[]',
|
|
1438
|
+
description: 'Array of HTML tags to ignore during rendering',
|
|
1439
|
+
optional: true,
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
path: 'options.productCardV2[layoutKey].numberOfLines',
|
|
1443
|
+
type: 'number',
|
|
1444
|
+
description: 'Maximum number of lines',
|
|
1445
|
+
optional: true,
|
|
1446
|
+
},
|
|
1447
|
+
],
|
|
1448
|
+
relatedKeys: [
|
|
1449
|
+
'product-card',
|
|
1450
|
+
'metafield-text',
|
|
1451
|
+
'metafield-rich-text',
|
|
1452
|
+
'productCardV2',
|
|
1453
|
+
],
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
const productCardTextMicroContext: BlockMicroContext = {
|
|
1457
|
+
key: 'text',
|
|
1458
|
+
title: 'Text Tag (text)',
|
|
1459
|
+
description: 'Displays custom static text.',
|
|
1460
|
+
properties: [
|
|
1461
|
+
{
|
|
1462
|
+
path: 'style.productV2[layoutKey].root',
|
|
1463
|
+
type: 'BaseStyle',
|
|
1464
|
+
description: 'Text container root style',
|
|
1465
|
+
optional: true,
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
path: 'style.productV2[layoutKey].text',
|
|
1469
|
+
type: 'BaseTextStyle',
|
|
1470
|
+
description: 'Text style',
|
|
1471
|
+
optional: true,
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
path: 'options.productCardV2[layoutKey].tagLabel',
|
|
1475
|
+
type: 'string',
|
|
1476
|
+
description: 'Text content to display (required)',
|
|
1477
|
+
optional: false,
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
path: 'options.productCardV2[layoutKey].nativeTextProps.numberOfLines',
|
|
1481
|
+
type: 'number',
|
|
1482
|
+
description: 'Maximum number of lines',
|
|
1483
|
+
optional: true,
|
|
1484
|
+
},
|
|
1485
|
+
],
|
|
1486
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
const productCardSpacerMicroContext: BlockMicroContext = {
|
|
1490
|
+
key: 'spacer',
|
|
1491
|
+
title: 'Spacer (spacer)',
|
|
1492
|
+
description: 'Creates empty space in the layout.',
|
|
1493
|
+
properties: [
|
|
1494
|
+
{
|
|
1495
|
+
path: 'style.productV2[layoutKey].root',
|
|
1496
|
+
type: 'BaseStyle',
|
|
1497
|
+
description: 'Spacer style (height, width, margin, padding)',
|
|
1498
|
+
optional: true,
|
|
1499
|
+
},
|
|
1500
|
+
],
|
|
1501
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
const productCardNotifyMeMicroContext: BlockMicroContext = {
|
|
1505
|
+
key: 'notify-me',
|
|
1506
|
+
title: 'Notify Me (notify-me)',
|
|
1507
|
+
description:
|
|
1508
|
+
'Shows notify me option for out of stock products. Subscribes user to back-in-stock notifications.',
|
|
1509
|
+
properties: [
|
|
1510
|
+
{
|
|
1511
|
+
path: 'style.productV2[layoutKey].root',
|
|
1512
|
+
type: 'BaseStyle',
|
|
1513
|
+
description: 'Notify me button root style (Pressable)',
|
|
1514
|
+
optional: true,
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
path: 'style.productV2[layoutKey].text',
|
|
1518
|
+
type: 'BaseTextStyle',
|
|
1519
|
+
description: 'Notify me text style',
|
|
1520
|
+
optional: true,
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
path: 'style.productV2[layoutKey].notifyMeIcon',
|
|
1524
|
+
type: 'BaseIconStyle',
|
|
1525
|
+
description: 'Notify me icon style (width, height, fill, stroke)',
|
|
1526
|
+
optional: true,
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
path: 'source[layoutKey].text',
|
|
1530
|
+
type: 'string',
|
|
1531
|
+
description: 'Notify me button text. Default: "Notify me"',
|
|
1532
|
+
optional: true,
|
|
1533
|
+
defaultValue: 'Notify me',
|
|
1534
|
+
},
|
|
1535
|
+
],
|
|
1536
|
+
relatedKeys: ['product-card', 'add-to-cart', 'productCardV2'],
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
const productCardOverlayMicroContext: BlockMicroContext = {
|
|
1540
|
+
key: 'overlay',
|
|
1541
|
+
title: 'Overlay (overlay)',
|
|
1542
|
+
description: 'Displays overlay for out of stock products.',
|
|
1543
|
+
properties: [
|
|
1544
|
+
{
|
|
1545
|
+
path: 'style.productV2[layoutKey].root',
|
|
1546
|
+
type: 'BaseStyle',
|
|
1547
|
+
description: 'Overlay container root style',
|
|
1548
|
+
optional: true,
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
path: 'style.productV2[layoutKey].text',
|
|
1552
|
+
type: 'BaseTextStyle',
|
|
1553
|
+
description: 'Overlay text style',
|
|
1554
|
+
optional: true,
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
path: 'source[layoutKey].text',
|
|
1558
|
+
type: 'string',
|
|
1559
|
+
description: 'Overlay text. Default: "Out of Stock"',
|
|
1560
|
+
optional: true,
|
|
1561
|
+
defaultValue: 'Out of Stock',
|
|
1562
|
+
},
|
|
1563
|
+
],
|
|
1564
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
const productCardInStockMicroContext: BlockMicroContext = {
|
|
1568
|
+
key: 'in-stock',
|
|
1569
|
+
title: 'In Stock Indicator (in-stock)',
|
|
1570
|
+
description:
|
|
1571
|
+
'Displays stock availability indicator with configurable states.',
|
|
1572
|
+
properties: [
|
|
1573
|
+
{
|
|
1574
|
+
path: 'style.productV2[layoutKey].root',
|
|
1575
|
+
type: 'BaseStyle',
|
|
1576
|
+
description: 'Container root style',
|
|
1577
|
+
optional: true,
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
path: 'style.productV2[layoutKey].inStockText',
|
|
1581
|
+
type: 'BaseTextStyle',
|
|
1582
|
+
description: 'In stock text style',
|
|
1583
|
+
optional: true,
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
path: 'style.productV2[layoutKey].outOfStockText',
|
|
1587
|
+
type: 'BaseTextStyle',
|
|
1588
|
+
description: 'Out of stock text style',
|
|
1589
|
+
optional: true,
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
path: 'style.productV2[layoutKey].inStockIcon',
|
|
1593
|
+
type: 'BaseIconStyle',
|
|
1594
|
+
description: 'In stock icon style',
|
|
1595
|
+
optional: true,
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
path: 'style.productV2[layoutKey].outOfStockIcon',
|
|
1599
|
+
type: 'BaseIconStyle',
|
|
1600
|
+
description: 'Out of stock icon style',
|
|
1601
|
+
optional: true,
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
path: 'options.productCardV2[layoutKey].inStockText',
|
|
1605
|
+
type: 'string',
|
|
1606
|
+
description: 'In stock text. Default: "In stock"',
|
|
1607
|
+
optional: true,
|
|
1608
|
+
defaultValue: 'In stock',
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
path: 'options.productCardV2[layoutKey].outOfStockText',
|
|
1612
|
+
type: 'string',
|
|
1613
|
+
description: 'Out of stock text. Default: "Out of stock"',
|
|
1614
|
+
optional: true,
|
|
1615
|
+
defaultValue: 'Out of stock',
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
path: 'options.productCardV2[layoutKey].showInStock',
|
|
1619
|
+
type: 'boolean',
|
|
1620
|
+
description: 'Whether to show in stock indicator. Default: true',
|
|
1621
|
+
optional: true,
|
|
1622
|
+
defaultValue: true,
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
path: 'options.productCardV2[layoutKey].showOutOfStock',
|
|
1626
|
+
type: 'boolean',
|
|
1627
|
+
description: 'Whether to show out of stock indicator. Default: true',
|
|
1628
|
+
optional: true,
|
|
1629
|
+
defaultValue: true,
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
path: 'options.productCardV2[layoutKey].inStockIcon',
|
|
1633
|
+
type: 'string',
|
|
1634
|
+
description: 'Icon ID for in stock. Default: "check"',
|
|
1635
|
+
optional: true,
|
|
1636
|
+
defaultValue: 'check',
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
path: 'options.productCardV2[layoutKey].outOfStockIcon',
|
|
1640
|
+
type: 'string',
|
|
1641
|
+
description: 'Icon ID for out of stock. Default: "cross"',
|
|
1642
|
+
optional: true,
|
|
1643
|
+
defaultValue: 'cross',
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
path: 'options.productCardV2[layoutKey].showInStockIcon',
|
|
1647
|
+
type: 'boolean',
|
|
1648
|
+
description: 'Whether to show in stock icon',
|
|
1649
|
+
optional: true,
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
path: 'options.productCardV2[layoutKey].showOutOfStockIcon',
|
|
1653
|
+
type: 'boolean',
|
|
1654
|
+
description: 'Whether to show out of stock icon',
|
|
1655
|
+
optional: true,
|
|
1656
|
+
},
|
|
1657
|
+
],
|
|
1658
|
+
relatedKeys: ['product-card', 'scarcity-counter', 'productCardV2'],
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
const productCardScarcityCounterMicroContext: BlockMicroContext = {
|
|
1662
|
+
key: 'scarcity-counter',
|
|
1663
|
+
title: 'Scarcity Counter (scarcity-counter)',
|
|
1664
|
+
description: 'Displays limited stock countdown with animated indicator.',
|
|
1665
|
+
properties: [
|
|
1666
|
+
{
|
|
1667
|
+
path: 'style.productV2[layoutKey].root',
|
|
1668
|
+
type: 'BaseStyle',
|
|
1669
|
+
description: 'Scarcity counter root style',
|
|
1670
|
+
optional: true,
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
path: 'style.productV2[layoutKey].text',
|
|
1674
|
+
type: 'BaseTextStyle',
|
|
1675
|
+
description: 'Counter text style',
|
|
1676
|
+
optional: true,
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
path: 'style.productV2[layoutKey].animatedCircle.root',
|
|
1680
|
+
type: 'BaseStyle',
|
|
1681
|
+
description: 'Animated circle root style',
|
|
1682
|
+
optional: true,
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
path: 'style.productV2[layoutKey].animatedCircle.circle.root',
|
|
1686
|
+
type: 'BaseStyle',
|
|
1687
|
+
description: 'Circle element style',
|
|
1688
|
+
optional: true,
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
path: 'style.productV2[layoutKey].animatedCircle.circle.animation.backgroundColor',
|
|
1692
|
+
type: 'string',
|
|
1693
|
+
description: 'Animation background color',
|
|
1694
|
+
optional: true,
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
path: 'style.productV2[layoutKey].animatedCircle.icon.root',
|
|
1698
|
+
type: 'BaseStyle',
|
|
1699
|
+
description: 'Icon container style',
|
|
1700
|
+
optional: true,
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
path: 'style.productV2[layoutKey].animatedCircle.icon.icon',
|
|
1704
|
+
type: 'BaseIconStyle',
|
|
1705
|
+
description: 'Icon style',
|
|
1706
|
+
optional: true,
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
path: 'options.productCardV2[layoutKey].scarcityThreshold',
|
|
1710
|
+
type: 'number',
|
|
1711
|
+
description: 'Inventory threshold to show counter. Default: 10',
|
|
1712
|
+
optional: true,
|
|
1713
|
+
defaultValue: 10,
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
1717
|
+
type: 'string',
|
|
1718
|
+
description:
|
|
1719
|
+
'Counter template. Use {{totalInventory}}. Default: "{{totalInventory}} left"',
|
|
1720
|
+
optional: true,
|
|
1721
|
+
defaultValue: '{{totalInventory}} left',
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
path: 'options.productCardV2[layoutKey].circle.iconId',
|
|
1725
|
+
type: 'string',
|
|
1726
|
+
description: 'Icon ID for circle. Default: "stock"',
|
|
1727
|
+
optional: true,
|
|
1728
|
+
defaultValue: 'stock',
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
path: 'options.productCardV2[layoutKey].enableVariantLevelScarcity',
|
|
1732
|
+
type: 'boolean',
|
|
1733
|
+
description: 'Whether to use variant-level inventory instead of total',
|
|
1734
|
+
optional: true,
|
|
1735
|
+
},
|
|
1736
|
+
],
|
|
1737
|
+
relatedKeys: ['product-card', 'in-stock', 'productCardV2'],
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
const productCardVariantSkuMicroContext: BlockMicroContext = {
|
|
1741
|
+
key: 'variant-sku',
|
|
1742
|
+
title: 'Variant SKU (variant-sku)',
|
|
1743
|
+
description: 'Displays the selected variant SKU.',
|
|
1744
|
+
properties: [
|
|
1745
|
+
{
|
|
1746
|
+
path: 'style.productV2[layoutKey].root',
|
|
1747
|
+
type: 'BaseStyle',
|
|
1748
|
+
description: 'SKU container root style',
|
|
1749
|
+
optional: true,
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
path: 'style.productV2[layoutKey].text',
|
|
1753
|
+
type: 'BaseTextStyle',
|
|
1754
|
+
description: 'SKU text style',
|
|
1755
|
+
optional: true,
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
path: 'options.productCardV2[layoutKey].skuLabel',
|
|
1759
|
+
type: 'string',
|
|
1760
|
+
description: 'SKU label template. Use {{sku}}. Default: "SKU: {{sku}}"',
|
|
1761
|
+
optional: true,
|
|
1762
|
+
defaultValue: 'SKU: {{sku}}',
|
|
1763
|
+
},
|
|
1764
|
+
],
|
|
1765
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
const productCardQuantitySelectorMicroContext: BlockMicroContext = {
|
|
1769
|
+
key: 'quantity-selector',
|
|
1770
|
+
title: 'Quantity Selector (quantity-selector)',
|
|
1771
|
+
description:
|
|
1772
|
+
'Allows selecting product quantity with +/- buttons or dropdown.',
|
|
1773
|
+
properties: [
|
|
1774
|
+
{
|
|
1775
|
+
path: 'style.productV2[layoutKey].root',
|
|
1776
|
+
type: 'BaseStyle',
|
|
1777
|
+
description: 'Quantity selector root style',
|
|
1778
|
+
optional: true,
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
path: 'style.productV2[layoutKey].title.root',
|
|
1782
|
+
type: 'BaseStyle',
|
|
1783
|
+
description: 'Title container style',
|
|
1784
|
+
optional: true,
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
path: 'style.productV2[layoutKey].title.text',
|
|
1788
|
+
type: 'BaseTextStyle',
|
|
1789
|
+
description: 'Title text style',
|
|
1790
|
+
optional: true,
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
path: 'style.productV2[layoutKey].quantitySelector.root',
|
|
1794
|
+
type: 'BaseStyle',
|
|
1795
|
+
description: 'Quantity selector container style',
|
|
1796
|
+
optional: true,
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
path: 'style.productV2[layoutKey].minus',
|
|
1800
|
+
type: 'ButtonStyle',
|
|
1801
|
+
description: 'Minus button style',
|
|
1802
|
+
optional: true,
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
path: 'style.productV2[layoutKey].plus',
|
|
1806
|
+
type: 'ButtonStyle',
|
|
1807
|
+
description: 'Plus button style',
|
|
1808
|
+
optional: true,
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
path: 'style.productV2[layoutKey].inputField.root',
|
|
1812
|
+
type: 'BaseStyle',
|
|
1813
|
+
description: 'Input field container style',
|
|
1814
|
+
optional: true,
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
path: 'style.productV2[layoutKey].inputField.text',
|
|
1818
|
+
type: 'BaseTextStyle',
|
|
1819
|
+
description: 'Input field text style',
|
|
1820
|
+
optional: true,
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
path: 'style.productV2[layoutKey].dropdownPicker',
|
|
1824
|
+
type: 'DropdownPickerStyle',
|
|
1825
|
+
description: 'Dropdown picker styles (when type is "dropdown")',
|
|
1826
|
+
optional: true,
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
path: 'options.productCardV2[layoutKey].hideQuantityButtons',
|
|
1830
|
+
type: 'boolean',
|
|
1831
|
+
description: 'Whether to hide +/- buttons',
|
|
1832
|
+
optional: true,
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
path: 'options.productCardV2[layoutKey].startIcon',
|
|
1836
|
+
type: 'string',
|
|
1837
|
+
description: 'Minus button icon ID. Default: "minus"',
|
|
1838
|
+
optional: true,
|
|
1839
|
+
defaultValue: 'minus',
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
path: 'options.productCardV2[layoutKey].endIcon',
|
|
1843
|
+
type: 'string',
|
|
1844
|
+
description: 'Plus button icon ID. Default: "plus"',
|
|
1845
|
+
optional: true,
|
|
1846
|
+
defaultValue: 'plus',
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
path: 'options.productCardV2[layoutKey].type',
|
|
1850
|
+
type: '"dropdown" | "input"',
|
|
1851
|
+
description: 'Quantity selector type. Default: "input"',
|
|
1852
|
+
optional: true,
|
|
1853
|
+
defaultValue: 'input',
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
path: 'source[layoutKey].title',
|
|
1857
|
+
type: 'string',
|
|
1858
|
+
description: 'Quantity selector title. Default: "Quantity"',
|
|
1859
|
+
optional: true,
|
|
1860
|
+
defaultValue: 'Quantity',
|
|
1861
|
+
},
|
|
1862
|
+
],
|
|
1863
|
+
relatedKeys: ['product-card', 'add-to-cart', 'productCardV2'],
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
const productCardShareIconMicroContext: BlockMicroContext = {
|
|
1867
|
+
key: 'share-icon',
|
|
1868
|
+
title: 'Share Icon (share-icon)',
|
|
1869
|
+
description: 'Share button for product.',
|
|
1870
|
+
properties: [
|
|
1871
|
+
{
|
|
1872
|
+
path: 'style.productV2[layoutKey]',
|
|
1873
|
+
type: 'ButtonStyle',
|
|
1874
|
+
description: 'Share button styles (root, text, startIcon, endIcon)',
|
|
1875
|
+
optional: true,
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
path: 'options.productCardV2[layoutKey].startIconId',
|
|
1879
|
+
type: 'string',
|
|
1880
|
+
description: 'Start icon ID',
|
|
1881
|
+
optional: true,
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
path: 'options.productCardV2[layoutKey].endIconId',
|
|
1885
|
+
type: 'string',
|
|
1886
|
+
description: 'End icon ID',
|
|
1887
|
+
optional: true,
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
path: 'options.productCardV2[layoutKey].disabled',
|
|
1891
|
+
type: 'boolean',
|
|
1892
|
+
description: 'Whether button is disabled',
|
|
1893
|
+
optional: true,
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
path: 'source[layoutKey].text',
|
|
1897
|
+
type: 'string',
|
|
1898
|
+
description: 'Button text',
|
|
1899
|
+
optional: true,
|
|
1900
|
+
},
|
|
1901
|
+
],
|
|
1902
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
const productCardOpenModalMicroContext: BlockMicroContext = {
|
|
1906
|
+
key: 'open-modal',
|
|
1907
|
+
title: 'Open Modal Button (open-modal)',
|
|
1908
|
+
description: 'Button that opens a modal on press.',
|
|
1909
|
+
properties: [
|
|
1910
|
+
{
|
|
1911
|
+
path: 'style.productV2[layoutKey]',
|
|
1912
|
+
type: 'ButtonV2Style',
|
|
1913
|
+
description: 'Button styles',
|
|
1914
|
+
optional: true,
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
path: 'options.productCardV2[layoutKey].link.value',
|
|
1918
|
+
type: 'string',
|
|
1919
|
+
description: 'Modal ID to open (required)',
|
|
1920
|
+
optional: false,
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
path: 'options.productCardV2[layoutKey].link.kind',
|
|
1924
|
+
type: 'string',
|
|
1925
|
+
description: 'Link kind (typically "modal")',
|
|
1926
|
+
optional: true,
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
path: 'options.productCardV2[layoutKey].link.params',
|
|
1930
|
+
type: 'Record<string, any>',
|
|
1931
|
+
description: 'Additional params to pass to modal',
|
|
1932
|
+
optional: true,
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
path: 'options.productCardV2[layoutKey].buttonProps',
|
|
1936
|
+
type: 'ButtonProps',
|
|
1937
|
+
description: 'Additional Button component props',
|
|
1938
|
+
optional: true,
|
|
1939
|
+
},
|
|
1940
|
+
],
|
|
1941
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
const productCardGotoButtonV2MicroContext: BlockMicroContext = {
|
|
1945
|
+
key: 'goto-button-v2',
|
|
1946
|
+
title: 'Goto Button V2 (goto-button-v2)',
|
|
1947
|
+
description: 'Navigation button with configurable link.',
|
|
1948
|
+
properties: [
|
|
1949
|
+
{
|
|
1950
|
+
path: 'style.productV2[layoutKey].root',
|
|
1951
|
+
type: 'BaseStyle',
|
|
1952
|
+
description: 'Container root style',
|
|
1953
|
+
optional: true,
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
path: 'style.productV2[layoutKey].button',
|
|
1957
|
+
type: 'ButtonV2Style',
|
|
1958
|
+
description: 'Button styles',
|
|
1959
|
+
optional: true,
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
path: 'options.productCardV2[layoutKey].button.buttonText',
|
|
1963
|
+
type: 'string',
|
|
1964
|
+
description: 'Button text',
|
|
1965
|
+
optional: true,
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
path: 'options.productCardV2[layoutKey].button.startIcon',
|
|
1969
|
+
type: 'string',
|
|
1970
|
+
description: 'Start icon ID',
|
|
1971
|
+
optional: true,
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
path: 'options.productCardV2[layoutKey].button.endIcon',
|
|
1975
|
+
type: 'string',
|
|
1976
|
+
description: 'End icon ID',
|
|
1977
|
+
optional: true,
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
path: 'options.productCardV2[layoutKey].link',
|
|
1981
|
+
type: 'Link',
|
|
1982
|
+
description: 'Link configuration (kind, value, params)',
|
|
1983
|
+
optional: true,
|
|
1984
|
+
},
|
|
1985
|
+
],
|
|
1986
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
const productCardSellingPlanDiscountMicroContext: BlockMicroContext = {
|
|
1990
|
+
key: 'selling-plan-discount',
|
|
1991
|
+
title: 'Selling Plan Discount (selling-plan-discount)',
|
|
1992
|
+
description: 'Displays subscription/selling plan discount label.',
|
|
1993
|
+
properties: [
|
|
1994
|
+
{
|
|
1995
|
+
path: 'style.productV2[layoutKey].root',
|
|
1996
|
+
type: 'BaseStyle',
|
|
1997
|
+
description: 'Discount label container root style',
|
|
1998
|
+
optional: true,
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
path: 'style.productV2[layoutKey].text',
|
|
2002
|
+
type: 'BaseTextStyle',
|
|
2003
|
+
description: 'Discount label text style',
|
|
2004
|
+
optional: true,
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
path: 'options.productCardV2[layoutKey].appId',
|
|
2008
|
+
type: 'string',
|
|
2009
|
+
description: 'Selling plan app ID (required)',
|
|
2010
|
+
optional: false,
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
path: 'options.productCardV2[layoutKey].sameDiscountTemplate',
|
|
2014
|
+
type: 'string',
|
|
2015
|
+
description:
|
|
2016
|
+
'Template when all plans have same discount. Use {{discount}}. Default: "{{discount}}% off"',
|
|
2017
|
+
optional: true,
|
|
2018
|
+
defaultValue: '{{discount}}% off',
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
path: 'options.productCardV2[layoutKey].maxDisountTemplate',
|
|
2022
|
+
type: 'string',
|
|
2023
|
+
description:
|
|
2024
|
+
'Template for max discount. Use {{maxDiscount}}. Default: "Up to {{maxDiscount}}% off"',
|
|
2025
|
+
optional: true,
|
|
2026
|
+
defaultValue: 'Up to {{maxDiscount}}% off',
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
path: 'options.productCardV2[layoutKey].selectDefaultSellingPlan',
|
|
2030
|
+
type: 'boolean',
|
|
2031
|
+
description: 'Whether to auto-select default selling plan',
|
|
2032
|
+
optional: true,
|
|
2033
|
+
},
|
|
2034
|
+
],
|
|
2035
|
+
relatedKeys: [
|
|
2036
|
+
'product-card',
|
|
2037
|
+
'selling-plan-price',
|
|
2038
|
+
'selling-plan-compare-at-price',
|
|
2039
|
+
'productCardV2',
|
|
2040
|
+
],
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
const productCardSellingPlanPriceMicroContext: BlockMicroContext = {
|
|
2044
|
+
key: 'selling-plan-price',
|
|
2045
|
+
title: 'Selling Plan Price (selling-plan-price)',
|
|
2046
|
+
description: 'Displays subscription/selling plan price.',
|
|
2047
|
+
properties: [
|
|
2048
|
+
{
|
|
2049
|
+
path: 'style.productV2[layoutKey].root',
|
|
2050
|
+
type: 'BaseStyle',
|
|
2051
|
+
description: 'Price container root style',
|
|
2052
|
+
optional: true,
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
path: 'style.productV2[layoutKey].text',
|
|
2056
|
+
type: 'BaseTextStyle',
|
|
2057
|
+
description: 'Price text style',
|
|
2058
|
+
optional: true,
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
path: 'style.productV2[layoutKey].unit',
|
|
2062
|
+
type: 'BaseTextStyle',
|
|
2063
|
+
description: 'Unit text style (e.g., "/month")',
|
|
2064
|
+
optional: true,
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
path: 'options.productCardV2[layoutKey].appId',
|
|
2068
|
+
type: 'string',
|
|
2069
|
+
description: 'Selling plan app ID (required)',
|
|
2070
|
+
optional: false,
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
2074
|
+
type: 'string',
|
|
2075
|
+
description: 'Price template string',
|
|
2076
|
+
optional: true,
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
path: 'options.productCardV2[layoutKey].selectDefaultSellingPlan',
|
|
2080
|
+
type: 'boolean',
|
|
2081
|
+
description:
|
|
2082
|
+
'Whether to auto-select default selling plan. Default: false',
|
|
2083
|
+
optional: true,
|
|
2084
|
+
defaultValue: false,
|
|
2085
|
+
},
|
|
2086
|
+
],
|
|
2087
|
+
relatedKeys: [
|
|
2088
|
+
'product-card',
|
|
2089
|
+
'selling-plan-discount',
|
|
2090
|
+
'selling-plan-compare-at-price',
|
|
2091
|
+
'productCardV2',
|
|
2092
|
+
],
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
const productCardSellingPlanCompareAtPriceMicroContext: BlockMicroContext = {
|
|
2096
|
+
key: 'selling-plan-compare-at-price',
|
|
2097
|
+
title: 'Selling Plan Compare At Price (selling-plan-compare-at-price)',
|
|
2098
|
+
description: 'Displays subscription/selling plan original price.',
|
|
2099
|
+
properties: [
|
|
2100
|
+
{
|
|
2101
|
+
path: 'style.productV2[layoutKey].root',
|
|
2102
|
+
type: 'BaseStyle',
|
|
2103
|
+
description: 'Compare at price container root style',
|
|
2104
|
+
optional: true,
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
path: 'style.productV2[layoutKey].text',
|
|
2108
|
+
type: 'BaseTextStyle',
|
|
2109
|
+
description: 'Compare at price text style',
|
|
2110
|
+
optional: true,
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
path: 'options.productCardV2[layoutKey].appId',
|
|
2114
|
+
type: 'string',
|
|
2115
|
+
description: 'Selling plan app ID (required)',
|
|
2116
|
+
optional: false,
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
2120
|
+
type: 'string',
|
|
2121
|
+
description: 'Price template string',
|
|
2122
|
+
optional: true,
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
path: 'options.productCardV2[layoutKey].selectDefaultSellingPlan',
|
|
2126
|
+
type: 'boolean',
|
|
2127
|
+
description:
|
|
2128
|
+
'Whether to auto-select default selling plan. Default: false',
|
|
2129
|
+
optional: true,
|
|
2130
|
+
defaultValue: false,
|
|
2131
|
+
},
|
|
2132
|
+
],
|
|
2133
|
+
relatedKeys: [
|
|
2134
|
+
'product-card',
|
|
2135
|
+
'selling-plan-price',
|
|
2136
|
+
'selling-plan-discount',
|
|
2137
|
+
'productCardV2',
|
|
2138
|
+
],
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
const productCardUpsellProductPriceMicroContext: BlockMicroContext = {
|
|
2142
|
+
key: 'upsell-product-price',
|
|
2143
|
+
title: 'Upsell Product Price (upsell-product-price)',
|
|
2144
|
+
description: 'Displays upsell discounted price with compare at price.',
|
|
2145
|
+
properties: [
|
|
2146
|
+
{
|
|
2147
|
+
path: 'style.productV2[layoutKey].root',
|
|
2148
|
+
type: 'BaseStyle',
|
|
2149
|
+
description: 'Container root style (flexDirection: row)',
|
|
2150
|
+
optional: true,
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
path: 'style.productV2[layoutKey].price.text',
|
|
2154
|
+
type: 'BaseTextStyle',
|
|
2155
|
+
description: 'Discounted price text style',
|
|
2156
|
+
optional: true,
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
path: 'style.productV2[layoutKey].compareAtPrice.text',
|
|
2160
|
+
type: 'BaseTextStyle',
|
|
2161
|
+
description: 'Compare at price text style (typically with strikethrough)',
|
|
2162
|
+
optional: true,
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
path: 'style.productV2[layoutKey].highlightedText',
|
|
2166
|
+
type: 'BaseTextStyle',
|
|
2167
|
+
description: 'Highlighted price text style',
|
|
2168
|
+
optional: true,
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
path: 'options.productCardV2[layoutKey].template',
|
|
2172
|
+
type: 'string',
|
|
2173
|
+
description: 'Price template string',
|
|
2174
|
+
optional: true,
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
path: 'options.productCardV2[layoutKey].highlightText',
|
|
2178
|
+
type: 'boolean',
|
|
2179
|
+
description: 'Whether to use highlighted style',
|
|
2180
|
+
optional: true,
|
|
2181
|
+
},
|
|
2182
|
+
],
|
|
2183
|
+
relatedKeys: ['product-card', 'price', 'productCardV2'],
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
const productCardTruefitWidgetMicroContext: BlockMicroContext = {
|
|
2187
|
+
key: 'truefit-widget',
|
|
2188
|
+
title: 'Truefit Widget (truefit-widget)',
|
|
2189
|
+
description: 'Displays Truefit size recommendation widget.',
|
|
2190
|
+
properties: [
|
|
2191
|
+
{
|
|
2192
|
+
path: 'style.productV2[layoutKey].root',
|
|
2193
|
+
type: 'BaseStyle',
|
|
2194
|
+
description: 'Widget container root style',
|
|
2195
|
+
optional: true,
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
path: 'options.productCardV2[layoutKey].storeKey',
|
|
2199
|
+
type: 'string',
|
|
2200
|
+
description:
|
|
2201
|
+
'Truefit store key (falls back to config.integrations.truefit.storeKey)',
|
|
2202
|
+
optional: true,
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
path: 'options.productCardV2[layoutKey].locale',
|
|
2206
|
+
type: 'string',
|
|
2207
|
+
description:
|
|
2208
|
+
'Widget locale (falls back to store locale). Default: "en_US"',
|
|
2209
|
+
optional: true,
|
|
2210
|
+
defaultValue: 'en_US',
|
|
2211
|
+
},
|
|
2212
|
+
],
|
|
2213
|
+
relatedKeys: ['product-card', 'productCardV2'],
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
const genericCardMicroContext: BlockMicroContext = {
|
|
2217
|
+
key: 'generic-card',
|
|
2218
|
+
title: 'GenericCard (Legacy)',
|
|
2219
|
+
description:
|
|
2220
|
+
'Properties for the legacy product card with fixed structure (imageBox and contentBox)',
|
|
2221
|
+
properties: [
|
|
2222
|
+
{
|
|
2223
|
+
path: 'style.product.root',
|
|
2224
|
+
type: 'BaseStyle',
|
|
2225
|
+
description:
|
|
2226
|
+
'Product card root style (Pressable container - width calculated from productCardWidth)',
|
|
2227
|
+
optional: true,
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
path: 'style.product.imageBox',
|
|
2231
|
+
type: 'BaseStyle',
|
|
2232
|
+
description:
|
|
2233
|
+
'Image box container style (renders items from renderOrder that are in itemsToShowInImageBox)',
|
|
2234
|
+
optional: true,
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
path: 'style.product.contentBox',
|
|
2238
|
+
type: 'BaseStyle',
|
|
2239
|
+
description:
|
|
2240
|
+
'Content box container style (renders items from renderOrder that are NOT in itemsToShowInImageBox)',
|
|
2241
|
+
optional: true,
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
path: 'style.product.title',
|
|
2245
|
+
type: 'BaseTextStyle',
|
|
2246
|
+
description: 'Product title text style',
|
|
2247
|
+
optional: true,
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
path: 'style.product.icon',
|
|
2251
|
+
type: 'BaseIconStyle',
|
|
2252
|
+
description: 'Product icon style',
|
|
2253
|
+
optional: true,
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
path: 'style.product.ratingCount',
|
|
2257
|
+
type: 'BaseTextStyle',
|
|
2258
|
+
description: 'Rating count text style',
|
|
2259
|
+
optional: true,
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
path: 'style.product.price',
|
|
2263
|
+
type: 'BaseTextStyle',
|
|
2264
|
+
description: 'Product price text style',
|
|
2265
|
+
optional: true,
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
path: 'style.product.compareAtPrice',
|
|
2269
|
+
type: 'BaseTextStyle',
|
|
2270
|
+
description: 'Compare at price text style',
|
|
2271
|
+
optional: true,
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
path: 'style.product.discountLabel',
|
|
2275
|
+
type: 'BaseTextStyle',
|
|
2276
|
+
description: 'Discount label text style',
|
|
2277
|
+
optional: true,
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
path: 'style.product.addToCartButton.root',
|
|
2281
|
+
type: 'BaseStyle',
|
|
2282
|
+
description: 'Add to cart button root style',
|
|
2283
|
+
optional: true,
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
path: 'style.product.addToCartButton.text',
|
|
2287
|
+
type: 'BaseTextStyle',
|
|
2288
|
+
description: 'Add to cart button text style',
|
|
2289
|
+
optional: true,
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
path: 'style.product.variantSelector.root',
|
|
2293
|
+
type: 'BaseStyle',
|
|
2294
|
+
description: 'Variant selector root style',
|
|
2295
|
+
optional: true,
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
path: 'style.product.variantSelector.variant.selected',
|
|
2299
|
+
type: 'BaseStyle',
|
|
2300
|
+
description: 'Selected variant style',
|
|
2301
|
+
optional: true,
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
path: 'style.product.variantSelector.variant.unselected',
|
|
2305
|
+
type: 'BaseStyle',
|
|
2306
|
+
description: 'Unselected variant style',
|
|
2307
|
+
optional: true,
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
path: 'options.productItemsVisibility',
|
|
2311
|
+
type: 'ProductItemsVisibility',
|
|
2312
|
+
description:
|
|
2313
|
+
'Visibility flags for product items (priceBox, ratingsBox, image, title, etc.)',
|
|
2314
|
+
optional: false,
|
|
2315
|
+
},
|
|
2316
|
+
],
|
|
2317
|
+
relatedKeys: ['product-card', 'items'],
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
const productHotCornersMicroContext: BlockMicroContext = {
|
|
2321
|
+
key: 'product-hot-corners',
|
|
2322
|
+
title: 'Hot Corner Badges',
|
|
2323
|
+
description:
|
|
2324
|
+
'Hot corner badges displayed on product images (bestseller, discount badges at corners)',
|
|
2325
|
+
properties: [
|
|
2326
|
+
{
|
|
2327
|
+
path: 'options.productImage.hotCorners',
|
|
2328
|
+
type: 'Record<string, HotCornerConfig>',
|
|
2329
|
+
description:
|
|
2330
|
+
'Hot corner badges configuration. Keys are positions: "top-left", "top-right", "bottom-left", "bottom-right"',
|
|
2331
|
+
optional: true,
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
path: 'options.productImage.hotCorners[position].source',
|
|
2335
|
+
type: 'enum',
|
|
2336
|
+
description:
|
|
2337
|
+
'Badge source: "tags" (from product tags) or "auto" (automatically calculated from price)',
|
|
2338
|
+
optional: false,
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
path: 'options.productImage.hotCorners[position].type',
|
|
2342
|
+
type: 'enum',
|
|
2343
|
+
description: 'Badge type: "bestseller" or "discount"',
|
|
2344
|
+
optional: false,
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
path: 'options.productImage.hotCorners[position].tagText',
|
|
2348
|
+
type: 'string',
|
|
2349
|
+
description: 'Custom tag text for badge (used when source is "tags")',
|
|
2350
|
+
optional: false,
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
path: 'options.productImage.hotCorners[position].style.root',
|
|
2354
|
+
type: 'BaseStyle',
|
|
2355
|
+
description:
|
|
2356
|
+
'Hot corner badge container style (backgroundColor, padding, borderRadius, position: "absolute", top/bottom, left/right, zIndex, etc.)',
|
|
2357
|
+
optional: true,
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
path: 'options.productImage.hotCorners[position].style.text',
|
|
2361
|
+
type: 'BaseTextStyle',
|
|
2362
|
+
description:
|
|
2363
|
+
'Hot corner badge text style (fontSize, fontWeight, color, textAlign, etc.)',
|
|
2364
|
+
optional: true,
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
path: 'options.productImage.hotCorners[position].position',
|
|
2368
|
+
type: 'enum',
|
|
2369
|
+
description:
|
|
2370
|
+
'Badge position: "top-left", "top-right", "bottom-left", "bottom-right"',
|
|
2371
|
+
optional: false,
|
|
2372
|
+
},
|
|
2373
|
+
],
|
|
2374
|
+
relatedKeys: ['product-card', 'image', 'productCardV2'],
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
/**
|
|
2378
|
+
* All ProductCardV2 microContexts as a record
|
|
2379
|
+
* Use this to spread into your block's microContexts
|
|
2380
|
+
*/
|
|
2381
|
+
export const productCardV2MicroContexts: Record<string, BlockMicroContext> = {
|
|
2382
|
+
productCardV2: productCardV2MicroContext,
|
|
2383
|
+
image: productCardImageMicroContext,
|
|
2384
|
+
carousel: productCardCarouselMicroContext,
|
|
2385
|
+
title: productCardTitleMicroContext,
|
|
2386
|
+
price: productCardPriceMicroContext,
|
|
2387
|
+
'compare-at-price': productCardCompareAtPriceMicroContext,
|
|
2388
|
+
'discount-label': productCardDiscountLabelMicroContext,
|
|
2389
|
+
'min-variant-price': productCardMinVariantPriceMicroContext,
|
|
2390
|
+
'add-to-cart': productCardAddToCartMicroContext,
|
|
2391
|
+
'add-to-wishlist': productCardAddToWishlistMicroContext,
|
|
2392
|
+
'delete-from-wishlist': productCardDeleteFromWishlistMicroContext,
|
|
2393
|
+
'move-to-cart': productCardMoveToCartMicroContext,
|
|
2394
|
+
'add-to-bundle': productCardAddToBundleMicroContext,
|
|
2395
|
+
'variant-selector': productCardVariantSelectorMicroContext,
|
|
2396
|
+
'variant-selector-3': productCardVariantSelector3MicroContext,
|
|
2397
|
+
'color-swatch': productCardColorSwatchMicroContext,
|
|
2398
|
+
'available-variants': productCardAvailableVariantsMicroContext,
|
|
2399
|
+
'star-ratings': productCardStarRatingsMicroContext,
|
|
2400
|
+
'ratings-count': productCardRatingsCountMicroContext,
|
|
2401
|
+
'avg-ratings': productCardAvgRatingsMicroContext,
|
|
2402
|
+
'product-vendor': productCardProductVendorMicroContext,
|
|
2403
|
+
'product-tag': productCardProductTagMicroContext,
|
|
2404
|
+
'product-tag-v2': productCardProductTagV2MicroContext,
|
|
2405
|
+
'product-type': productCardProductTypeMicroContext,
|
|
2406
|
+
'metafield-text': productCardMetafieldTextMicroContext,
|
|
2407
|
+
'metafield-rich-text': productCardMetafieldRichTextMicroContext,
|
|
2408
|
+
'metafield-shopify-rich-text':
|
|
2409
|
+
productCardMetafieldShopifyRichTextMicroContext,
|
|
2410
|
+
text: productCardTextMicroContext,
|
|
2411
|
+
spacer: productCardSpacerMicroContext,
|
|
2412
|
+
'notify-me': productCardNotifyMeMicroContext,
|
|
2413
|
+
overlay: productCardOverlayMicroContext,
|
|
2414
|
+
'in-stock': productCardInStockMicroContext,
|
|
2415
|
+
'scarcity-counter': productCardScarcityCounterMicroContext,
|
|
2416
|
+
'variant-sku': productCardVariantSkuMicroContext,
|
|
2417
|
+
'quantity-selector': productCardQuantitySelectorMicroContext,
|
|
2418
|
+
'share-icon': productCardShareIconMicroContext,
|
|
2419
|
+
'open-modal': productCardOpenModalMicroContext,
|
|
2420
|
+
'goto-button-v2': productCardGotoButtonV2MicroContext,
|
|
2421
|
+
'selling-plan-discount': productCardSellingPlanDiscountMicroContext,
|
|
2422
|
+
'selling-plan-price': productCardSellingPlanPriceMicroContext,
|
|
2423
|
+
'selling-plan-compare-at-price':
|
|
2424
|
+
productCardSellingPlanCompareAtPriceMicroContext,
|
|
2425
|
+
'upsell-product-price': productCardUpsellProductPriceMicroContext,
|
|
2426
|
+
'truefit-widget': productCardTruefitWidgetMicroContext,
|
|
2427
|
+
'generic-card': genericCardMicroContext,
|
|
2428
|
+
'product-hot-corners': productHotCornersMicroContext,
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
/**
|
|
2432
|
+
* Keys for all ProductCardV2 microContexts
|
|
2433
|
+
* Use this to spread into your block's microContextKeys
|
|
2434
|
+
*/
|
|
2435
|
+
export const productCardV2MicroContextKeys = [
|
|
2436
|
+
'productCardV2',
|
|
2437
|
+
'image',
|
|
2438
|
+
'carousel',
|
|
2439
|
+
'title',
|
|
2440
|
+
'price',
|
|
2441
|
+
'compare-at-price',
|
|
2442
|
+
'discount-label',
|
|
2443
|
+
'min-variant-price',
|
|
2444
|
+
'add-to-cart',
|
|
2445
|
+
'add-to-wishlist',
|
|
2446
|
+
'delete-from-wishlist',
|
|
2447
|
+
'move-to-cart',
|
|
2448
|
+
'add-to-bundle',
|
|
2449
|
+
'variant-selector',
|
|
2450
|
+
'variant-selector-3',
|
|
2451
|
+
'color-swatch',
|
|
2452
|
+
'available-variants',
|
|
2453
|
+
'star-ratings',
|
|
2454
|
+
'ratings-count',
|
|
2455
|
+
'avg-ratings',
|
|
2456
|
+
'product-vendor',
|
|
2457
|
+
'product-tag',
|
|
2458
|
+
'product-tag-v2',
|
|
2459
|
+
'product-type',
|
|
2460
|
+
'metafield-text',
|
|
2461
|
+
'metafield-rich-text',
|
|
2462
|
+
'metafield-shopify-rich-text',
|
|
2463
|
+
'text',
|
|
2464
|
+
'spacer',
|
|
2465
|
+
'notify-me',
|
|
2466
|
+
'overlay',
|
|
2467
|
+
'in-stock',
|
|
2468
|
+
'scarcity-counter',
|
|
2469
|
+
'variant-sku',
|
|
2470
|
+
'quantity-selector',
|
|
2471
|
+
'share-icon',
|
|
2472
|
+
'open-modal',
|
|
2473
|
+
'goto-button-v2',
|
|
2474
|
+
'selling-plan-discount',
|
|
2475
|
+
'selling-plan-price',
|
|
2476
|
+
'selling-plan-compare-at-price',
|
|
2477
|
+
'upsell-product-price',
|
|
2478
|
+
'truefit-widget',
|
|
2479
|
+
'generic-card',
|
|
2480
|
+
'product-hot-corners',
|
|
2481
|
+
] as const
|