@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,793 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { BlockDefinitionCodeJson } from './types'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Base Component IDs for UI Builder
|
|
6
|
+
* These are the core components that can be used in layouts
|
|
7
|
+
*/
|
|
8
|
+
export const baseComponentIds = [
|
|
9
|
+
'accordion',
|
|
10
|
+
'icon',
|
|
11
|
+
'image',
|
|
12
|
+
'link',
|
|
13
|
+
'list',
|
|
14
|
+
'rich-text',
|
|
15
|
+
'text',
|
|
16
|
+
'youtube-video',
|
|
17
|
+
'link-button',
|
|
18
|
+
'spacer',
|
|
19
|
+
'html-rich-text',
|
|
20
|
+
'video',
|
|
21
|
+
'vertical-list',
|
|
22
|
+
'social-signin',
|
|
23
|
+
] as const
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Layout Item Schema - recursive for tree structure
|
|
27
|
+
* Supports string shorthand, object with kind/key, and container types
|
|
28
|
+
*
|
|
29
|
+
* This schema is used across multiple blocks that support dynamic layouts
|
|
30
|
+
*/
|
|
31
|
+
export const layoutItemSchema: z.ZodType<any> = z.union([
|
|
32
|
+
// Object with kind and key (base component or container)
|
|
33
|
+
z.object({
|
|
34
|
+
kind: z.union([
|
|
35
|
+
z.enum(baseComponentIds),
|
|
36
|
+
z.enum(['row', 'column']),
|
|
37
|
+
z.string(),
|
|
38
|
+
]),
|
|
39
|
+
key: z.string(),
|
|
40
|
+
children: z.array(z.lazy(() => layoutItemSchema)).optional(),
|
|
41
|
+
}),
|
|
42
|
+
// String shorthand (e.g., "text", "image")
|
|
43
|
+
z.string(),
|
|
44
|
+
])
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Layout Schema
|
|
48
|
+
* Root layout configuration with tree structure
|
|
49
|
+
*
|
|
50
|
+
* This schema defines the root layout structure for blocks that support
|
|
51
|
+
* dynamic layouts using the UI Builder base components
|
|
52
|
+
*/
|
|
53
|
+
export const layoutSchema = z.object({
|
|
54
|
+
key: z.literal('root'),
|
|
55
|
+
kind: z.enum(['row', 'column']),
|
|
56
|
+
children: z.array(layoutItemSchema),
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Base Component CodeJson Structure
|
|
61
|
+
*
|
|
62
|
+
* This defines the common structure for base components in the layout tree.
|
|
63
|
+
* Used in codeJson definitions to document how base components are rendered.
|
|
64
|
+
*/
|
|
65
|
+
export const baseComponentCodeJson: BlockDefinitionCodeJson = {
|
|
66
|
+
level: 0,
|
|
67
|
+
component: 'Base Component',
|
|
68
|
+
condition:
|
|
69
|
+
'layoutItem.kind is one of: text, image, icon, rich-text, html-rich-text, video, youtube-video, link-button, spacer, accordion, list, vertical-list, social-signin',
|
|
70
|
+
stylePath: 'style[layoutItem.key]',
|
|
71
|
+
sourcePath: 'source[layoutItem.key]',
|
|
72
|
+
optionsPath: 'options[layoutItem.key]',
|
|
73
|
+
description:
|
|
74
|
+
'Base UI Builder components. Each component receives data, style, and options keyed by its layout key.',
|
|
75
|
+
usage: {
|
|
76
|
+
componentMapping: {
|
|
77
|
+
text: 'TextLayoutItem',
|
|
78
|
+
image: 'ImageLayoutItem',
|
|
79
|
+
icon: 'Icon',
|
|
80
|
+
'rich-text': 'RichTextLayoutItem',
|
|
81
|
+
'html-rich-text': 'HtmlRichTextLayoutItem',
|
|
82
|
+
video: 'VideoLayoutElement',
|
|
83
|
+
'youtube-video': 'YoutubeVideo',
|
|
84
|
+
'link-button': 'LinkButtonLayoutElement',
|
|
85
|
+
spacer: 'SpacerLayoutElement',
|
|
86
|
+
accordion: 'AccordionLayoutItem',
|
|
87
|
+
list: 'ListLayoutItem',
|
|
88
|
+
'vertical-list': 'VerticalListWrapper',
|
|
89
|
+
'social-signin': 'SocialSigninLayoutItem',
|
|
90
|
+
},
|
|
91
|
+
data: 'source[layoutItem.key]',
|
|
92
|
+
style: 'style[layoutItem.key]',
|
|
93
|
+
options: 'options[layoutItem.key]',
|
|
94
|
+
},
|
|
95
|
+
children: [
|
|
96
|
+
{
|
|
97
|
+
level: 0,
|
|
98
|
+
component: 'TextLayoutItem',
|
|
99
|
+
condition: 'layoutItem.kind === "text"',
|
|
100
|
+
description:
|
|
101
|
+
'Text component displaying text content. Accepts string or object with text property.',
|
|
102
|
+
sourcePath: 'source[layoutItem.key]',
|
|
103
|
+
stylePath: 'style[layoutItem.key]',
|
|
104
|
+
optionsPath: 'options[layoutItem.key]',
|
|
105
|
+
usage: {
|
|
106
|
+
dataStructure: {
|
|
107
|
+
type: 'string | { text: string }',
|
|
108
|
+
examples: ['"Hello World"', '{ text: "Hello World" }'],
|
|
109
|
+
},
|
|
110
|
+
propertyAccess: {
|
|
111
|
+
string: 'source[layoutItem.key] (used directly)',
|
|
112
|
+
object: 'source[layoutItem.key].text (extracted from object)',
|
|
113
|
+
},
|
|
114
|
+
style: 'BaseTextStyle - React Native Text style properties',
|
|
115
|
+
options:
|
|
116
|
+
'Omit<TextProps, "style"> - React Native Text props (excluding style)',
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
level: 0,
|
|
121
|
+
component: 'ImageLayoutItem',
|
|
122
|
+
condition: 'layoutItem.kind === "image"',
|
|
123
|
+
description:
|
|
124
|
+
'Image component displaying image content. Supports regular images, SVG files, and inline SVG strings. Uses "src" property (NOT "url").',
|
|
125
|
+
sourcePath: 'source[layoutItem.key]',
|
|
126
|
+
stylePath: 'style[layoutItem.key]',
|
|
127
|
+
optionsPath: 'options[layoutItem.key]',
|
|
128
|
+
usage: {
|
|
129
|
+
dataStructure: {
|
|
130
|
+
type: '{ src: string, width?: number, height?: number }',
|
|
131
|
+
examples: [
|
|
132
|
+
'{ src: "https://example.com/image.jpg" }',
|
|
133
|
+
'{ src: "https://example.com/image.svg", width: 100, height: 100 }',
|
|
134
|
+
'{ src: "<svg>...</svg>" } (inline SVG)',
|
|
135
|
+
],
|
|
136
|
+
note: 'The property is "src", NOT "url". AI-generated code often uses "url" which is incorrect.',
|
|
137
|
+
},
|
|
138
|
+
propertyAccess: {
|
|
139
|
+
imageUrl: 'source[layoutItem.key].src (required)',
|
|
140
|
+
dimensions:
|
|
141
|
+
'source[layoutItem.key].width, source[layoutItem.key].height (optional, used for aspect ratio)',
|
|
142
|
+
},
|
|
143
|
+
imageTypes: {
|
|
144
|
+
regular:
|
|
145
|
+
'Standard image formats (jpg, png, etc.) - rendered via Image component',
|
|
146
|
+
svgFile: 'SVG files (.svg extension) - rendered via SvgUri',
|
|
147
|
+
inlineSvg:
|
|
148
|
+
'Inline SVG strings (starts with "<svg") - rendered via SvgXml',
|
|
149
|
+
},
|
|
150
|
+
aspectRatio: {
|
|
151
|
+
calculation:
|
|
152
|
+
'Calculated from: style width/height, data width/height, or options.aspectRatio (in priority order)',
|
|
153
|
+
autoHeight:
|
|
154
|
+
'options.autoHeight=true allows flexible height based on container',
|
|
155
|
+
},
|
|
156
|
+
style:
|
|
157
|
+
'{ width?: number | string, height?: number | string, aspectRatio?: number, ...rest }',
|
|
158
|
+
options: {
|
|
159
|
+
aspectRatio: 'number (overrides calculated aspect ratio)',
|
|
160
|
+
resizeMode: "'contain' | 'cover'",
|
|
161
|
+
roundness: 'number (border radius)',
|
|
162
|
+
autoHeight: 'boolean (flexible height mode)',
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
level: 0,
|
|
168
|
+
component: 'Icon',
|
|
169
|
+
condition: 'layoutItem.kind === "icon"',
|
|
170
|
+
description:
|
|
171
|
+
'Icon component displaying icon from icon registry. Uses iconId to lookup icon.',
|
|
172
|
+
sourcePath: 'source[layoutItem.key]',
|
|
173
|
+
stylePath: 'style[layoutItem.key]',
|
|
174
|
+
optionsPath: 'options[layoutItem.key]',
|
|
175
|
+
usage: {
|
|
176
|
+
dataStructure: {
|
|
177
|
+
type: '{ iconId: string }',
|
|
178
|
+
examples: ['{ iconId: "arrow-right" }', '{ iconId: "heart" }'],
|
|
179
|
+
},
|
|
180
|
+
propertyAccess: {
|
|
181
|
+
iconId:
|
|
182
|
+
'source[layoutItem.key].iconId (required - must be valid icon ID from registry)',
|
|
183
|
+
},
|
|
184
|
+
style:
|
|
185
|
+
'BaseIconStyle - Icon styling properties (width, height, stroke, fill, etc.)',
|
|
186
|
+
options: 'SvgProps - React Native SVG props',
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
level: 0,
|
|
191
|
+
component: 'RichTextLayoutItem',
|
|
192
|
+
condition: 'layoutItem.kind === "rich-text"',
|
|
193
|
+
description:
|
|
194
|
+
'Rich text component with Shopify rich text HTML support. Renders HTML content with tag-based styling.',
|
|
195
|
+
sourcePath: 'source[layoutItem.key]',
|
|
196
|
+
stylePath: 'style[layoutItem.key]',
|
|
197
|
+
optionsPath: 'options[layoutItem.key]',
|
|
198
|
+
usage: {
|
|
199
|
+
dataStructure: {
|
|
200
|
+
type: 'string (HTML content)',
|
|
201
|
+
examples: [
|
|
202
|
+
'"<p>Hello <strong>World</strong></p>"',
|
|
203
|
+
'"<h1>Title</h1><p>Content</p>"',
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
propertyAccess: {
|
|
207
|
+
content:
|
|
208
|
+
'source[layoutItem.key] (passed as "data" prop - string containing HTML)',
|
|
209
|
+
},
|
|
210
|
+
style: {
|
|
211
|
+
wrapper: 'View style for wrapper container',
|
|
212
|
+
tags: 'Record<string, BaseStyle | BaseTextStyle> - Style mapping for HTML tags (e.g., { p: { fontSize: 14 }, h1: { fontSize: 24 } })',
|
|
213
|
+
},
|
|
214
|
+
options: {
|
|
215
|
+
enableUserAgentStyles:
|
|
216
|
+
'boolean (default: false) - Enable browser default styles',
|
|
217
|
+
},
|
|
218
|
+
note: 'Uses ShopifyRichText component internally which parses and renders HTML with tag-based styling.',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
level: 0,
|
|
223
|
+
component: 'HtmlRichTextLayoutItem',
|
|
224
|
+
condition: 'layoutItem.kind === "html-rich-text"',
|
|
225
|
+
description:
|
|
226
|
+
'HTML rich text component for rendering raw HTML content. Simpler than rich-text, uses HtmlRichText component.',
|
|
227
|
+
sourcePath: 'source[layoutItem.key]',
|
|
228
|
+
stylePath: 'style[layoutItem.key]',
|
|
229
|
+
optionsPath: 'options[layoutItem.key]',
|
|
230
|
+
usage: {
|
|
231
|
+
dataStructure: {
|
|
232
|
+
type: 'string (HTML content)',
|
|
233
|
+
examples: [
|
|
234
|
+
'"<div>Hello World</div>"',
|
|
235
|
+
'"<span style="color: red;">Text</span>"',
|
|
236
|
+
],
|
|
237
|
+
},
|
|
238
|
+
propertyAccess: {
|
|
239
|
+
content:
|
|
240
|
+
'source[layoutItem.key] (passed as "data" prop - string containing HTML)',
|
|
241
|
+
},
|
|
242
|
+
style: 'any - Styling for HTML content',
|
|
243
|
+
options: 'any - Additional options for HTML rendering',
|
|
244
|
+
note: 'Uses HtmlRichText component internally. Simpler alternative to rich-text for basic HTML rendering.',
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
level: 0,
|
|
249
|
+
component: 'VideoLayoutElement',
|
|
250
|
+
condition: 'layoutItem.kind === "video"',
|
|
251
|
+
description:
|
|
252
|
+
'Video component for playing video files. Uses nested structure with src.url property.',
|
|
253
|
+
sourcePath: 'source[layoutItem.key]',
|
|
254
|
+
stylePath: 'style[layoutItem.key]',
|
|
255
|
+
optionsPath: 'options[layoutItem.key]',
|
|
256
|
+
usage: {
|
|
257
|
+
dataStructure: {
|
|
258
|
+
type: '{ src: { url: string, width?: number, height?: number, format?: string } }',
|
|
259
|
+
examples: [
|
|
260
|
+
'{ src: { url: "https://example.com/video.mp4" } }',
|
|
261
|
+
'{ src: { url: "https://example.com/video.mp4", width: 1920, height: 1080, format: "mp4" } }',
|
|
262
|
+
],
|
|
263
|
+
note: 'The video URL is nested: source[layoutItem.key].src.url (NOT source[layoutItem.key].url)',
|
|
264
|
+
},
|
|
265
|
+
propertyAccess: {
|
|
266
|
+
videoUrl: 'source[layoutItem.key].src.url (required)',
|
|
267
|
+
dimensions:
|
|
268
|
+
'source[layoutItem.key].src.width, source[layoutItem.key].src.height (optional, used for aspect ratio)',
|
|
269
|
+
format: 'source[layoutItem.key].src.format (optional, e.g., "mp4")',
|
|
270
|
+
},
|
|
271
|
+
aspectRatio: {
|
|
272
|
+
calculation:
|
|
273
|
+
'Calculated from: source.src.width/height, style width/height, or options.aspectRatio (in priority order)',
|
|
274
|
+
},
|
|
275
|
+
style:
|
|
276
|
+
'BaseImageStyle & { aspectRatio?: number } - Video container styling',
|
|
277
|
+
options: {
|
|
278
|
+
aspectRatio: 'number (overrides calculated aspect ratio)',
|
|
279
|
+
controls: 'boolean (default: true) - Show video controls',
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
level: 0,
|
|
285
|
+
component: 'YoutubeVideo',
|
|
286
|
+
condition: 'layoutItem.kind === "youtube-video"',
|
|
287
|
+
description:
|
|
288
|
+
'YouTube video embed component. Displays thumbnail with play button, opens in web view on press.',
|
|
289
|
+
sourcePath: 'source[layoutItem.key]',
|
|
290
|
+
stylePath: 'style[layoutItem.key]',
|
|
291
|
+
optionsPath: 'options[layoutItem.key]',
|
|
292
|
+
usage: {
|
|
293
|
+
dataStructure: {
|
|
294
|
+
type: '{ videoId: string, thumbnailUrl?: string, params?: Record<string, any> }',
|
|
295
|
+
examples: [
|
|
296
|
+
'{ videoId: "dQw4w9WgXcQ" }',
|
|
297
|
+
'{ videoId: "dQw4w9WgXcQ", thumbnailUrl: "https://custom-thumbnail.jpg", params: { autoplay: 1 } }',
|
|
298
|
+
],
|
|
299
|
+
},
|
|
300
|
+
propertyAccess: {
|
|
301
|
+
videoId:
|
|
302
|
+
'source[layoutItem.key].videoId (required - YouTube video ID)',
|
|
303
|
+
thumbnailUrl:
|
|
304
|
+
'source[layoutItem.key].thumbnailUrl (optional - defaults to YouTube thumbnail)',
|
|
305
|
+
params:
|
|
306
|
+
'source[layoutItem.key].params (optional - YouTube embed parameters)',
|
|
307
|
+
},
|
|
308
|
+
behavior: {
|
|
309
|
+
thumbnail:
|
|
310
|
+
'Displays thumbnail image (custom or default YouTube thumbnail)',
|
|
311
|
+
playButton:
|
|
312
|
+
'Shows play button overlay (can be hidden via options.hidePlayButton)',
|
|
313
|
+
navigation:
|
|
314
|
+
'On press, navigates to web-view screen with YouTube embed URL',
|
|
315
|
+
},
|
|
316
|
+
style: {
|
|
317
|
+
root: 'BaseStyle - Container style',
|
|
318
|
+
thumbnailImage: 'BaseStyle - Thumbnail image style',
|
|
319
|
+
playButton: 'BaseIconStyle - Play button icon style',
|
|
320
|
+
},
|
|
321
|
+
options: {
|
|
322
|
+
thumbnailAspectRatio:
|
|
323
|
+
'number (default: 16/9) - Thumbnail aspect ratio',
|
|
324
|
+
embedBaseUrl:
|
|
325
|
+
'string (default: YouTube embed service URL) - Custom embed base URL',
|
|
326
|
+
hidePlayButton: 'boolean (default: false) - Hide play button overlay',
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
level: 0,
|
|
332
|
+
component: 'LinkButtonLayoutElement',
|
|
333
|
+
condition: 'layoutItem.kind === "link-button"',
|
|
334
|
+
description:
|
|
335
|
+
'Link button component. Button with text that navigates to a link on press.',
|
|
336
|
+
sourcePath: 'source[layoutItem.key]',
|
|
337
|
+
stylePath: 'style[layoutItem.key]',
|
|
338
|
+
optionsPath: 'options[layoutItem.key]',
|
|
339
|
+
usage: {
|
|
340
|
+
dataStructure: {
|
|
341
|
+
type: '{ text: string }',
|
|
342
|
+
examples: ['{ text: "Click Me" }', '{ text: "Shop Now" }'],
|
|
343
|
+
},
|
|
344
|
+
propertyAccess: {
|
|
345
|
+
buttonText: 'source[layoutItem.key].text (required - button label)',
|
|
346
|
+
},
|
|
347
|
+
linkConfiguration: {
|
|
348
|
+
path: 'options[layoutItem.key].link',
|
|
349
|
+
structure:
|
|
350
|
+
'{ kind: string, value: string, params?: Record<string, any> }',
|
|
351
|
+
examples: [
|
|
352
|
+
'{ kind: "screen", value: "product-list" }',
|
|
353
|
+
'{ kind: "product", value: "product-handle" }',
|
|
354
|
+
'{ kind: "url", value: "https://example.com", params: { external: true } }',
|
|
355
|
+
],
|
|
356
|
+
},
|
|
357
|
+
style:
|
|
358
|
+
'ButtonV2Config style - Button styling (text, root, startIcon, endIcon)',
|
|
359
|
+
options: {
|
|
360
|
+
link: 'Link configuration object (see linkConfiguration above)',
|
|
361
|
+
other:
|
|
362
|
+
'Omit<ButtonProps, "onPress" | "style" | "text"> - Other button props',
|
|
363
|
+
},
|
|
364
|
+
behavior: 'On press, calls gotoLink with options.link configuration',
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
level: 0,
|
|
369
|
+
component: 'SpacerLayoutElement',
|
|
370
|
+
condition: 'layoutItem.kind === "spacer"',
|
|
371
|
+
description:
|
|
372
|
+
'Spacer component for layout spacing. Creates empty space in layout. No data required.',
|
|
373
|
+
sourcePath: 'N/A (no data needed)',
|
|
374
|
+
stylePath: 'style[layoutItem.key]',
|
|
375
|
+
optionsPath: 'options[layoutItem.key]',
|
|
376
|
+
usage: {
|
|
377
|
+
dataStructure: {
|
|
378
|
+
type: 'none (no data required)',
|
|
379
|
+
note: 'Spacer does not use source data. Only style and options are used.',
|
|
380
|
+
},
|
|
381
|
+
style:
|
|
382
|
+
'ViewProps style - Spacing and layout properties (height, width, margin, padding, etc.)',
|
|
383
|
+
options: 'ViewProps - React Native View props (excluding style)',
|
|
384
|
+
commonUse:
|
|
385
|
+
'Use style.height or style.width to create vertical or horizontal spacing',
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
level: 0,
|
|
390
|
+
component: 'AccordionLayoutItem',
|
|
391
|
+
condition: 'layoutItem.kind === "accordion"',
|
|
392
|
+
description:
|
|
393
|
+
'Accordion component with collapsible content. Requires exactly 2 children: heading and body.',
|
|
394
|
+
sourcePath: 'source (special - not keyed)',
|
|
395
|
+
stylePath: 'style[layoutItem.key]',
|
|
396
|
+
optionsPath: 'options[layoutItem.key]',
|
|
397
|
+
usage: {
|
|
398
|
+
dataStructure: {
|
|
399
|
+
type: '{ heading: React.ReactElement[] }',
|
|
400
|
+
note: 'Heading is automatically generated from layoutItem.children[0] rendering. Body comes from layoutItem.children[1].',
|
|
401
|
+
},
|
|
402
|
+
propertyAccess: {
|
|
403
|
+
heading:
|
|
404
|
+
'source.heading (array of React elements rendered from layoutItem.children[0])',
|
|
405
|
+
body: 'layoutItem.children[1] (rendered as accordion body content)',
|
|
406
|
+
},
|
|
407
|
+
layoutRequirement: {
|
|
408
|
+
children:
|
|
409
|
+
'Must have exactly 2 children: children[0] = heading, children[1] = body',
|
|
410
|
+
},
|
|
411
|
+
style: 'AccordianProps style - Accordion styling (heading, body, root)',
|
|
412
|
+
options: 'any - Accordion options (collapsed state, animations, etc.)',
|
|
413
|
+
behavior: 'Heading is clickable and toggles body visibility',
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
level: 0,
|
|
418
|
+
component: 'ListLayoutItem',
|
|
419
|
+
condition: 'layoutItem.kind === "list"',
|
|
420
|
+
description:
|
|
421
|
+
'List component that renders items from source data array. Uses first child as template layout for each item.',
|
|
422
|
+
sourcePath: 'source[layoutItem.key]',
|
|
423
|
+
stylePath: 'style[layoutItem.key]',
|
|
424
|
+
optionsPath: 'options',
|
|
425
|
+
usage: {
|
|
426
|
+
dataStructure: {
|
|
427
|
+
type: 'Array<any> (array of items)',
|
|
428
|
+
examples: [
|
|
429
|
+
'[{ id: "1", name: "Item 1" }, { id: "2", name: "Item 2" }]',
|
|
430
|
+
'[{ title: "Title", description: "Desc" }, ...]',
|
|
431
|
+
],
|
|
432
|
+
},
|
|
433
|
+
propertyAccess: {
|
|
434
|
+
items: 'source[layoutItem.key] (required - array of items to render)',
|
|
435
|
+
},
|
|
436
|
+
templateLayout: {
|
|
437
|
+
path: 'layoutItem.children[0]',
|
|
438
|
+
description: 'First child defines the template layout for each item',
|
|
439
|
+
itemData:
|
|
440
|
+
'Each item from source array is passed as data to template layout',
|
|
441
|
+
},
|
|
442
|
+
style: {
|
|
443
|
+
root: 'Style for list container',
|
|
444
|
+
flatList: 'Style for FlatList component (if using FlatList)',
|
|
445
|
+
},
|
|
446
|
+
options: {
|
|
447
|
+
itemGap: 'number - Gap between items',
|
|
448
|
+
other:
|
|
449
|
+
'Omit<ListProps, "data"> - Other React Native List/FlatList props',
|
|
450
|
+
},
|
|
451
|
+
behavior:
|
|
452
|
+
'Renders each item in source array using the template layout from children[0]',
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
level: 0,
|
|
457
|
+
component: 'VerticalListWrapper',
|
|
458
|
+
condition: 'layoutItem.kind === "vertical-list"',
|
|
459
|
+
description:
|
|
460
|
+
'Vertical list component. Renders items in a vertical grid/list layout. Uses first child as template for each item.',
|
|
461
|
+
sourcePath: 'source[layoutItem.key]',
|
|
462
|
+
stylePath: 'style',
|
|
463
|
+
optionsPath: 'options',
|
|
464
|
+
usage: {
|
|
465
|
+
dataStructure: {
|
|
466
|
+
type: '{ data: Array<any> }',
|
|
467
|
+
examples: [
|
|
468
|
+
'{ data: [{ id: "1", name: "Item 1" }] }',
|
|
469
|
+
'{ data: [{ title: "Title", image: "url" }] }',
|
|
470
|
+
],
|
|
471
|
+
note: 'Data is nested: source[layoutItem.key].data (array of items)',
|
|
472
|
+
},
|
|
473
|
+
propertyAccess: {
|
|
474
|
+
items:
|
|
475
|
+
'source[layoutItem.key].data (required - array of items to render)',
|
|
476
|
+
itemId: 'Each item must have an "id" property for keyExtractor',
|
|
477
|
+
},
|
|
478
|
+
templateLayout: {
|
|
479
|
+
path: 'layoutItem.children[0]',
|
|
480
|
+
description: 'First child defines the template layout for each item',
|
|
481
|
+
itemData:
|
|
482
|
+
'Each item from source.data array is passed as data to template layout',
|
|
483
|
+
},
|
|
484
|
+
style: {
|
|
485
|
+
list: 'Style object for list container and items',
|
|
486
|
+
separator: 'Style for item separators (gap between items)',
|
|
487
|
+
},
|
|
488
|
+
options: {
|
|
489
|
+
itemGap: 'number - Gap between items (applied to separator height)',
|
|
490
|
+
},
|
|
491
|
+
behavior:
|
|
492
|
+
'Renders vertical list with separators. Each item uses template from children[0].',
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
level: 0,
|
|
497
|
+
component: 'SocialSigninLayoutItem',
|
|
498
|
+
condition: 'layoutItem.kind === "social-signin"',
|
|
499
|
+
description:
|
|
500
|
+
'Social sign-in component. Displays social authentication buttons (Apple, Google, etc.). Only shows when user is not authenticated.',
|
|
501
|
+
sourcePath: 'source[layoutItem.key]',
|
|
502
|
+
stylePath: 'style[layoutItem.key]',
|
|
503
|
+
optionsPath: 'options[layoutItem.key]',
|
|
504
|
+
usage: {
|
|
505
|
+
dataStructure: {
|
|
506
|
+
type: '{} (empty object - data not used)',
|
|
507
|
+
note: 'Component uses options for configuration, not source data',
|
|
508
|
+
},
|
|
509
|
+
propertyAccess: {
|
|
510
|
+
data: 'source[layoutItem.key] (not used, can be empty object)',
|
|
511
|
+
},
|
|
512
|
+
style: {
|
|
513
|
+
root: 'Style for social buttons container',
|
|
514
|
+
apple: 'Style for Apple sign-in button',
|
|
515
|
+
google: 'Style for Google sign-in button',
|
|
516
|
+
},
|
|
517
|
+
options: {
|
|
518
|
+
successRedirectScreenId:
|
|
519
|
+
'string (optional) - Screen ID to redirect after successful sign-in',
|
|
520
|
+
socialSigninProviders: {
|
|
521
|
+
ios: 'string[] (optional) - Array of provider IDs for iOS (e.g., ["apple", "google"])',
|
|
522
|
+
android: 'string[] (optional) - Array of provider IDs for Android',
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
behavior: {
|
|
526
|
+
visibility:
|
|
527
|
+
'Only renders when user is NOT authenticated (isUserAuthenticated() returns false)',
|
|
528
|
+
platform:
|
|
529
|
+
'Uses options.socialSigninProviders.ios on iOS, .android on Android',
|
|
530
|
+
navigation:
|
|
531
|
+
'After sign-in, redirects to successRedirectScreenId if provided',
|
|
532
|
+
},
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
],
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Container Component CodeJson Structure
|
|
540
|
+
*
|
|
541
|
+
* Defines the structure for row/column container components in layouts
|
|
542
|
+
*/
|
|
543
|
+
export const containerComponentCodeJson: BlockDefinitionCodeJson = {
|
|
544
|
+
level: 0,
|
|
545
|
+
component: 'Box (row/column)',
|
|
546
|
+
condition: 'layoutItem.kind === "row" OR layoutItem.kind === "column"',
|
|
547
|
+
stylePath: 'style[layoutItem.key]',
|
|
548
|
+
optionsPath: 'options[layoutItem.key]',
|
|
549
|
+
description:
|
|
550
|
+
'Container Box component for row or column layout. Recursively renders children.',
|
|
551
|
+
usage: {
|
|
552
|
+
background: 'options[layoutItem.key].background',
|
|
553
|
+
style: 'style[layoutItem.key]',
|
|
554
|
+
children: 'Recursively rendered layoutItem.children',
|
|
555
|
+
},
|
|
556
|
+
children: [
|
|
557
|
+
{
|
|
558
|
+
level: 0,
|
|
559
|
+
component: 'Recursive Layout Items',
|
|
560
|
+
description:
|
|
561
|
+
'Recursively renders all children layout items using layoutRenderer',
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Link Component CodeJson Structure
|
|
568
|
+
*
|
|
569
|
+
* Defines the structure for link wrapper components in layouts
|
|
570
|
+
*/
|
|
571
|
+
export const linkComponentCodeJson: BlockDefinitionCodeJson = {
|
|
572
|
+
level: 0,
|
|
573
|
+
component: 'LinkLayoutItem',
|
|
574
|
+
condition: 'layoutItem.kind === "link"',
|
|
575
|
+
stylePath: 'style[layoutItem.key]',
|
|
576
|
+
sourcePath: 'source[layoutItem.key]',
|
|
577
|
+
optionsPath: 'options',
|
|
578
|
+
description:
|
|
579
|
+
'Link wrapper component. Renders children as clickable link content. Wraps any child components in a clickable link.',
|
|
580
|
+
usage: {
|
|
581
|
+
dataStructure: {
|
|
582
|
+
type: '{ kind: string, value: string, params?: Record<string, any>, external?: boolean }',
|
|
583
|
+
examples: [
|
|
584
|
+
'{ kind: "screen", value: "product-list" }',
|
|
585
|
+
'{ kind: "product", value: "product-handle" }',
|
|
586
|
+
'{ kind: "collection", value: "collection-handle" }',
|
|
587
|
+
'{ kind: "url", value: "https://example.com", external: true }',
|
|
588
|
+
'{ kind: "screen", value: "product-detail", params: { productHandle: "my-product" } }',
|
|
589
|
+
],
|
|
590
|
+
},
|
|
591
|
+
propertyAccess: {
|
|
592
|
+
kind: 'source[layoutItem.key].kind (required - link type: "screen", "product", "collection", "url", etc.)',
|
|
593
|
+
value: 'source[layoutItem.key].value (required - link target value)',
|
|
594
|
+
params:
|
|
595
|
+
'source[layoutItem.key].params (optional - additional parameters for navigation)',
|
|
596
|
+
external:
|
|
597
|
+
'source[layoutItem.key].external (optional - boolean, for external URLs)',
|
|
598
|
+
},
|
|
599
|
+
style: '{ root: BaseTextStyle } - Style for link wrapper (text styling)',
|
|
600
|
+
options: {
|
|
601
|
+
pressableProps:
|
|
602
|
+
'PressableProps - React Native Pressable props for link behavior',
|
|
603
|
+
},
|
|
604
|
+
children:
|
|
605
|
+
'layoutItem.children (required - rendered as clickable link content)',
|
|
606
|
+
behavior:
|
|
607
|
+
'Children are wrapped in a Link component. On press, navigates based on source configuration.',
|
|
608
|
+
},
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Accordion Component CodeJson Structure
|
|
613
|
+
*
|
|
614
|
+
* Defines the structure for accordion components in layouts
|
|
615
|
+
*/
|
|
616
|
+
export const accordionComponentCodeJson: BlockDefinitionCodeJson = {
|
|
617
|
+
level: 0,
|
|
618
|
+
component: 'AccordionLayoutItem',
|
|
619
|
+
condition: 'layoutItem.kind === "accordion"',
|
|
620
|
+
stylePath: 'style[layoutItem.key]',
|
|
621
|
+
sourcePath: 'source',
|
|
622
|
+
optionsPath: 'options[layoutItem.key]',
|
|
623
|
+
description:
|
|
624
|
+
'Accordion component with collapsible heading and body. Requires exactly 2 children: heading (children[0]) and body (children[1]).',
|
|
625
|
+
usage: {
|
|
626
|
+
layoutRequirement: {
|
|
627
|
+
children: 'Must have exactly 2 children layout items',
|
|
628
|
+
heading:
|
|
629
|
+
'layoutItem.children[0] - Rendered as accordion heading (clickable)',
|
|
630
|
+
body: 'layoutItem.children[1] - Rendered as accordion body (collapsible content)',
|
|
631
|
+
},
|
|
632
|
+
dataStructure: {
|
|
633
|
+
type: '{ heading: React.ReactElement[] }',
|
|
634
|
+
note: 'Heading elements are automatically generated from rendering layoutItem.children[0]. Body comes from layoutItem.children[1].',
|
|
635
|
+
},
|
|
636
|
+
propertyAccess: {
|
|
637
|
+
heading:
|
|
638
|
+
'source.heading (array of React elements - auto-generated from children[0])',
|
|
639
|
+
body: 'layoutItem.children[1] (rendered directly as body content)',
|
|
640
|
+
},
|
|
641
|
+
style:
|
|
642
|
+
'AccordianProps style - Accordion styling with heading, body, and root styles',
|
|
643
|
+
options:
|
|
644
|
+
'any - Accordion options (default collapsed state, animations, etc.)',
|
|
645
|
+
behavior: {
|
|
646
|
+
interaction: 'Heading is clickable and toggles body visibility',
|
|
647
|
+
rendering:
|
|
648
|
+
'Heading and body are rendered separately, then combined into accordion component',
|
|
649
|
+
},
|
|
650
|
+
},
|
|
651
|
+
children: [
|
|
652
|
+
{
|
|
653
|
+
level: 0,
|
|
654
|
+
component: 'Heading Components',
|
|
655
|
+
description:
|
|
656
|
+
'Rendered from layoutItem.children[0]. Can be any layout items (text, image, etc.). Rendered elements are passed as heading prop.',
|
|
657
|
+
sourcePath: 'source (shared with body)',
|
|
658
|
+
stylePath: 'style (nested under accordion key)',
|
|
659
|
+
optionsPath: 'options (nested under accordion key)',
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
level: 0,
|
|
663
|
+
component: 'Body Components',
|
|
664
|
+
description:
|
|
665
|
+
'Rendered from layoutItem.children[1]. Can be any layout items. Rendered as children of Accordion component.',
|
|
666
|
+
sourcePath: 'source (shared with heading)',
|
|
667
|
+
stylePath: 'style (nested under accordion key)',
|
|
668
|
+
optionsPath: 'options (nested under accordion key)',
|
|
669
|
+
},
|
|
670
|
+
],
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* List Component CodeJson Structure
|
|
675
|
+
*
|
|
676
|
+
* Defines the structure for list components in layouts
|
|
677
|
+
*/
|
|
678
|
+
export const listComponentCodeJson: BlockDefinitionCodeJson = {
|
|
679
|
+
level: 0,
|
|
680
|
+
component: 'ListLayoutItem',
|
|
681
|
+
condition: 'layoutItem.kind === "list"',
|
|
682
|
+
stylePath: 'style[layoutItem.key]',
|
|
683
|
+
sourcePath: 'source[layoutItem.key]',
|
|
684
|
+
optionsPath: 'options',
|
|
685
|
+
description:
|
|
686
|
+
'List component that renders items from source data array. Uses first child as template layout for each item. Renders using React Native List/FlatList component.',
|
|
687
|
+
usage: {
|
|
688
|
+
dataStructure: {
|
|
689
|
+
type: 'Array<any> (array of item objects)',
|
|
690
|
+
examples: [
|
|
691
|
+
'[{ id: "1", name: "Item 1", image: "url1.jpg" }, { id: "2", name: "Item 2", image: "url2.jpg" }]',
|
|
692
|
+
'[{ title: "Title", description: "Description" }, ...]',
|
|
693
|
+
],
|
|
694
|
+
},
|
|
695
|
+
propertyAccess: {
|
|
696
|
+
items: 'source[layoutItem.key] (required - array of items to render)',
|
|
697
|
+
itemData: 'Each item from array is passed as data to template layout',
|
|
698
|
+
},
|
|
699
|
+
templateLayout: {
|
|
700
|
+
path: 'layoutItem.children[0]',
|
|
701
|
+
description:
|
|
702
|
+
'First child defines the template layout structure for each item',
|
|
703
|
+
rendering:
|
|
704
|
+
'Each item from source array is rendered using this template layout',
|
|
705
|
+
itemContext: 'Item data is available in template as source[templateKey]',
|
|
706
|
+
},
|
|
707
|
+
style: {
|
|
708
|
+
root: 'Style for list container (FlatList root style)',
|
|
709
|
+
flatList: 'Style for FlatList component (if using FlatList)',
|
|
710
|
+
},
|
|
711
|
+
options: {
|
|
712
|
+
itemGap: 'number - Gap between list items',
|
|
713
|
+
other:
|
|
714
|
+
'Omit<ListProps<Array<any>>, "data"> - Other React Native List/FlatList props (renderItem, keyExtractor, etc.)',
|
|
715
|
+
},
|
|
716
|
+
behavior: {
|
|
717
|
+
rendering:
|
|
718
|
+
'Iterates through source array and renders each item using template from children[0]',
|
|
719
|
+
listType: 'Uses React Native List/FlatList component for rendering',
|
|
720
|
+
},
|
|
721
|
+
},
|
|
722
|
+
children: [
|
|
723
|
+
{
|
|
724
|
+
level: 0,
|
|
725
|
+
component: 'List Item Template',
|
|
726
|
+
description:
|
|
727
|
+
'Template layout defined by layoutItem.children[0]. Each item from source array is rendered using this template.',
|
|
728
|
+
usage: {
|
|
729
|
+
itemData:
|
|
730
|
+
'source[layoutItem.key][index] - Current item data available in template',
|
|
731
|
+
layout: 'layoutItem.children[0] - Template layout structure',
|
|
732
|
+
style:
|
|
733
|
+
'Computed from style[layoutItem.key] - Styles applied to each item',
|
|
734
|
+
index: 'Item index available for conditional rendering',
|
|
735
|
+
},
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Vertical List Component CodeJson Structure
|
|
742
|
+
*
|
|
743
|
+
* Defines the structure for vertical list components in layouts
|
|
744
|
+
*/
|
|
745
|
+
export const verticalListComponentCodeJson: BlockDefinitionCodeJson = {
|
|
746
|
+
level: 0,
|
|
747
|
+
component: 'VerticalListWrapper',
|
|
748
|
+
condition: 'layoutItem.kind === "vertical-list"',
|
|
749
|
+
stylePath: 'style',
|
|
750
|
+
sourcePath: 'source[layoutItem.key]',
|
|
751
|
+
optionsPath: 'options',
|
|
752
|
+
description:
|
|
753
|
+
'Vertical list component. Renders items in a vertical grid/list layout. Uses first child as template layout for each item. Supports custom separators and item gaps.',
|
|
754
|
+
usage: {
|
|
755
|
+
dataStructure: {
|
|
756
|
+
type: '{ data: Array<any> }',
|
|
757
|
+
examples: [
|
|
758
|
+
'{ data: [{ id: "1", name: "Item 1" }] }',
|
|
759
|
+
'{ data: [{ id: "1", title: "Title", image: "url.jpg" }, ...] }',
|
|
760
|
+
],
|
|
761
|
+
note: 'Data is nested: source[layoutItem.key].data (array of items). Each item must have an "id" property.',
|
|
762
|
+
},
|
|
763
|
+
propertyAccess: {
|
|
764
|
+
items:
|
|
765
|
+
'source[layoutItem.key].data (required - array of items to render)',
|
|
766
|
+
itemId: 'Each item must have an "id" property (used by keyExtractor)',
|
|
767
|
+
},
|
|
768
|
+
templateLayout: {
|
|
769
|
+
path: 'layoutItem.children[0]',
|
|
770
|
+
description:
|
|
771
|
+
'First child defines the template layout structure for each item',
|
|
772
|
+
rendering:
|
|
773
|
+
'Each item from source.data array is rendered using this template layout',
|
|
774
|
+
itemContext: 'Item data is available in template as source data',
|
|
775
|
+
},
|
|
776
|
+
style: {
|
|
777
|
+
list: 'Style object for list container and items',
|
|
778
|
+
separator: 'Style for item separators (gap between items)',
|
|
779
|
+
root: 'Style for list root container',
|
|
780
|
+
item: 'Style for individual items',
|
|
781
|
+
},
|
|
782
|
+
options: {
|
|
783
|
+
itemGap: 'number - Gap between items (applied to separator height)',
|
|
784
|
+
},
|
|
785
|
+
behavior: {
|
|
786
|
+
rendering: 'Renders vertical list with separators between items',
|
|
787
|
+
keyExtraction:
|
|
788
|
+
'Uses item.id for keyExtractor (each item must have id property)',
|
|
789
|
+
separators:
|
|
790
|
+
'Automatically adds separators between items based on itemGap option',
|
|
791
|
+
},
|
|
792
|
+
},
|
|
793
|
+
}
|