@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.
Files changed (1422) hide show
  1. package/package.json +99 -0
  2. package/src/analytics/src/analytics-provider-v2.ts +288 -0
  3. package/src/analytics/src/analytics-provider-v2.web.ts +36 -0
  4. package/src/analytics/src/analytics-provider.ts +266 -0
  5. package/src/analytics/src/analytics-provider.web.ts +48 -0
  6. package/src/analytics/src/analytics-tracker-v2.ts +96 -0
  7. package/src/analytics/src/anaylytics-tracker.ts +96 -0
  8. package/src/analytics/src/index.ts +6 -0
  9. package/src/analytics/src/user-permission.ts +1 -0
  10. package/src/analytics/src/utils.ts +162 -0
  11. package/src/app-update/src/index.ts +1 -0
  12. package/src/app-update/src/lib/app-update.ts +45 -0
  13. package/src/block-registry/src/common.tsx +439 -0
  14. package/src/block-registry/src/common.web.tsx +46 -0
  15. package/src/block-registry/src/index.ts +1 -0
  16. package/src/block-registry/src/keys.ts +43 -0
  17. package/src/block-registry/src/register.tsx +66 -0
  18. package/src/block-registry/src/register.web.tsx +129 -0
  19. package/src/bottom-sheet/src/block-bottom-sheet.tsx +183 -0
  20. package/src/bottom-sheet/src/block-bottom-sheet.web.tsx +4 -0
  21. package/src/bottom-sheet/src/bottom-sheet.tsx +269 -0
  22. package/src/bottom-sheet/src/bottom-sheet.web.tsx +13 -0
  23. package/src/bottom-sheet/src/index.ts +3 -0
  24. package/src/brewery/babel.config.js +3 -0
  25. package/src/brewery/src/ModalBrewery.tsx +222 -0
  26. package/src/brewery/src/ScreenBrewery.tsx +415 -0
  27. package/src/brewery/src/ScreenContainer.tsx +76 -0
  28. package/src/brewery/src/ScreenContextProvider.tsx +27 -0
  29. package/src/brewery/src/app-init.tsx +507 -0
  30. package/src/brewery/src/common.ts +5 -0
  31. package/src/brewery/src/default-content.tsx +234 -0
  32. package/src/brewery/src/index.ts +8 -0
  33. package/src/brewery/src/lazy-screen.tsx +101 -0
  34. package/src/brewery/src/onboarding-screen.tsx +31 -0
  35. package/src/brewery/src/plp-content.tsx +19 -0
  36. package/src/brewery/src/preview-footer.tsx +83 -0
  37. package/src/brewery/src/profile-screen.tsx +74 -0
  38. package/src/brewery/src/refreshing-screen.tsx +129 -0
  39. package/src/brewery/src/safe-area-container.tsx +1 -0
  40. package/src/brewery/src/screen-content.tsx +89 -0
  41. package/src/brewery/src/secondary-splash-screen.tsx +190 -0
  42. package/src/brewery/src/shell.tsx +509 -0
  43. package/src/brewery/src/tab-bar.tsx +252 -0
  44. package/src/brewery/src/tabbed-brewery.tsx +175 -0
  45. package/src/brewery/src/templates.ts +87 -0
  46. package/src/brewery/src/types.ts +123 -0
  47. package/src/brewery/src/utils/bottombar.tsx +266 -0
  48. package/src/brewery/src/utils/colorUtils.ts +71 -0
  49. package/src/brewery/src/utils/createBottombarVisibility.ts +48 -0
  50. package/src/brewery/src/utils/index.tsx +3 -0
  51. package/src/brewery/src/utils/renderItem.tsx +112 -0
  52. package/src/brewery/src/utils/screens.tsx +270 -0
  53. package/src/brewery/src/utils/tabReload.ts +57 -0
  54. package/src/brewery/test-setup.ts +1 -0
  55. package/src/child-navigator/babel.config.js +3 -0
  56. package/src/child-navigator/src/index.tsx +52 -0
  57. package/src/child-navigator/src/view.tsx +197 -0
  58. package/src/components/babel.config.js +3 -0
  59. package/src/components/src/atoms/badge/index.tsx +85 -0
  60. package/src/components/src/atoms/block-section/index.ts +6 -0
  61. package/src/components/src/atoms/button/index.tsx +112 -0
  62. package/src/components/src/atoms/check-box/index.tsx +57 -0
  63. package/src/components/src/atoms/countdown-timer/index.tsx +48 -0
  64. package/src/components/src/atoms/country-selector/constants.ts +3 -0
  65. package/src/components/src/atoms/country-selector/index.tsx +146 -0
  66. package/src/components/src/atoms/date-picker/calendar-date-picker.tsx +509 -0
  67. package/src/components/src/atoms/date-picker/index.tsx +93 -0
  68. package/src/components/src/atoms/flex/index.tsx +24 -0
  69. package/src/components/src/atoms/header/index.ts +2 -0
  70. package/src/components/src/atoms/header/types.ts +1 -0
  71. package/src/components/src/atoms/icon/index.tsx +31 -0
  72. package/src/components/src/atoms/icon-button/index.tsx +29 -0
  73. package/src/components/src/atoms/image/image1.tsx +8 -0
  74. package/src/components/src/atoms/image/image1.web.tsx +5 -0
  75. package/src/components/src/atoms/image/index.ts +1 -0
  76. package/src/components/src/atoms/image/types.ts +12 -0
  77. package/src/components/src/atoms/input/index.tsx +34 -0
  78. package/src/components/src/atoms/link/index.tsx +60 -0
  79. package/src/components/src/atoms/password-input/index.tsx +89 -0
  80. package/src/components/src/atoms/product-card-button/index.tsx +203 -0
  81. package/src/components/src/atoms/radio-group-input/index.tsx +84 -0
  82. package/src/components/src/atoms/rating-input/index.tsx +47 -0
  83. package/src/components/src/atoms/safe-area-container.tsx +29 -0
  84. package/src/components/src/atoms/section/index.ts +1 -0
  85. package/src/components/src/atoms/section/section.tsx +76 -0
  86. package/src/components/src/atoms/select/index.tsx +100 -0
  87. package/src/components/src/atoms/spacer/index.tsx +26 -0
  88. package/src/components/src/atoms/stars/index.tsx +124 -0
  89. package/src/components/src/atoms/stars/star-filled.png +0 -0
  90. package/src/components/src/atoms/stars/star-unfilled.png +0 -0
  91. package/src/components/src/atoms/text/index.tsx +1 -0
  92. package/src/components/src/atoms/video/index.tsx +242 -0
  93. package/src/components/src/atoms/video/index.web.tsx +144 -0
  94. package/src/components/src/blocks/base-blocks/base-rich-text/index.tsx +49 -0
  95. package/src/components/src/blocks/bundle-list-block/index.tsx +21 -0
  96. package/src/components/src/blocks/divider-block/index.tsx +22 -0
  97. package/src/components/src/blocks/dummy/index.tsx +3 -0
  98. package/src/components/src/blocks/manage-address-form-block/index.tsx +172 -0
  99. package/src/components/src/blocks/otp-signin/hooks.tsx +180 -0
  100. package/src/components/src/blocks/otp-signin/index.tsx +139 -0
  101. package/src/components/src/blocks/otp-verification/hooks.tsx +304 -0
  102. package/src/components/src/blocks/otp-verification/index.tsx +212 -0
  103. package/src/components/src/blocks/prefetch-metafields/index.tsx +16 -0
  104. package/src/components/src/blocks/product-card-block/index.tsx +53 -0
  105. package/src/components/src/blocks/product-card-block-v2/index.tsx +71 -0
  106. package/src/components/src/blocks/product-card-block-v2/index.web.tsx +76 -0
  107. package/src/components/src/blocks/product-recommendations-block/index.tsx +152 -0
  108. package/src/components/src/blocks/product-recommendations-block/index.web.tsx +175 -0
  109. package/src/components/src/blocks/rich-text-block/index.tsx +1 -0
  110. package/src/components/src/blocks/rich-text-block/rich-text.tsx +117 -0
  111. package/src/components/src/blocks/rich-text-block/rich-text.web.tsx +91 -0
  112. package/src/components/src/blocks/social-signin/index.tsx +46 -0
  113. package/src/components/src/blocks/status-bar-block/index.tsx +28 -0
  114. package/src/components/src/blocks/variant-selector-2-block/index.tsx +58 -0
  115. package/src/components/src/blocks/variant-selector-3-block/index.tsx +44 -0
  116. package/src/components/src/declaration.d.ts +4 -0
  117. package/src/components/src/hocs/withMetafield.tsx +109 -0
  118. package/src/components/src/index.ts +13 -0
  119. package/src/components/src/molecules/accordion/index.tsx +8 -0
  120. package/src/components/src/molecules/add-to-cart/index.tsx +471 -0
  121. package/src/components/src/molecules/address/addressCard.tsx +171 -0
  122. package/src/components/src/molecules/address-form/index.tsx +270 -0
  123. package/src/components/src/molecules/announcement-strip/icon.tsx +47 -0
  124. package/src/components/src/molecules/announcement-strip/index.tsx +51 -0
  125. package/src/components/src/molecules/app-bar/buttons/back.tsx +59 -0
  126. package/src/components/src/molecules/app-bar/buttons/cart.tsx +63 -0
  127. package/src/components/src/molecules/app-bar/buttons/index.ts +6 -0
  128. package/src/components/src/molecules/app-bar/buttons/logo.tsx +46 -0
  129. package/src/components/src/molecules/app-bar/buttons/logo.web.tsx +42 -0
  130. package/src/components/src/molecules/app-bar/buttons/profile.tsx +25 -0
  131. package/src/components/src/molecules/app-bar/buttons/search.tsx +23 -0
  132. package/src/components/src/molecules/app-bar/buttons/wishlist.tsx +27 -0
  133. package/src/components/src/molecules/app-bar/expanded-search.tsx +28 -0
  134. package/src/components/src/molecules/app-bar/index.tsx +308 -0
  135. package/src/components/src/molecules/app-bar/index.web.tsx +284 -0
  136. package/src/components/src/molecules/appbar-layout-elements.tsx +71 -0
  137. package/src/components/src/molecules/appbar-template/back.tsx +20 -0
  138. package/src/components/src/molecules/appbar-template/cart.tsx +39 -0
  139. package/src/components/src/molecules/appbar-template/default.tsx +52 -0
  140. package/src/components/src/molecules/appbar-template/index.tsx +93 -0
  141. package/src/components/src/molecules/appbar-template/minimal.tsx +27 -0
  142. package/src/components/src/molecules/appbar-template/tabs.tsx +41 -0
  143. package/src/components/src/molecules/appbar-template/wishlist.tsx +42 -0
  144. package/src/components/src/molecules/appbar-v2/appbar-v2.tsx +497 -0
  145. package/src/components/src/molecules/appbar-v2/appbar-v2.web.tsx +512 -0
  146. package/src/components/src/molecules/appbar-v2/appbar-variants/back.ts +42 -0
  147. package/src/components/src/molecules/appbar-v2/appbar-variants/cart.ts +183 -0
  148. package/src/components/src/molecules/appbar-v2/appbar-variants/default.ts +189 -0
  149. package/src/components/src/molecules/appbar-v2/appbar-variants/minimal.ts +52 -0
  150. package/src/components/src/molecules/appbar-v2/appbar-variants/tabs.ts +170 -0
  151. package/src/components/src/molecules/appbar-v2/appbar-variants/wishlist.ts +180 -0
  152. package/src/components/src/molecules/appbar-v2/appbar-variants.ts +15 -0
  153. package/src/components/src/molecules/appbar-v2/index.ts +2 -0
  154. package/src/components/src/molecules/avatar/index.tsx +43 -0
  155. package/src/components/src/molecules/base-accordion-list/index.tsx +56 -0
  156. package/src/components/src/molecules/bottom-bar/bottom-bar.tsx +11 -0
  157. package/src/components/src/molecules/bottom-bar/bottom-bar.web.tsx +111 -0
  158. package/src/components/src/molecules/bottom-bar/index.tsx +1 -0
  159. package/src/components/src/molecules/bundle-list-item/index.tsx +200 -0
  160. package/src/components/src/molecules/carousel/carousel-item.tsx +206 -0
  161. package/src/components/src/molecules/carousel/eye-close.tsx +19 -0
  162. package/src/components/src/molecules/carousel/horizontal-carousel.tsx +418 -0
  163. package/src/components/src/molecules/carousel/index.tsx +85 -0
  164. package/src/components/src/molecules/carousel/index.web.tsx +111 -0
  165. package/src/components/src/molecules/carousel/indicator.tsx +133 -0
  166. package/src/components/src/molecules/carousel/indicator.web.tsx +77 -0
  167. package/src/components/src/molecules/carousel/rich-subtitle.tsx +27 -0
  168. package/src/components/src/molecules/carousel/rich-subtitle.web.tsx +31 -0
  169. package/src/components/src/molecules/carousel/types.ts +41 -0
  170. package/src/components/src/molecules/carousel/utils.ts +116 -0
  171. package/src/components/src/molecules/carousel/v2.tsx +46 -0
  172. package/src/components/src/molecules/carousel/vertical-carousel.tsx +275 -0
  173. package/src/components/src/molecules/cart-goals/components/amount-saved.tsx +82 -0
  174. package/src/components/src/molecules/cart-goals/components/goal-achieved/label.tsx +56 -0
  175. package/src/components/src/molecules/cart-goals/components/header.tsx +106 -0
  176. package/src/components/src/molecules/cart-goals/components/ineligible-text.tsx +61 -0
  177. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/index.tsx +27 -0
  178. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-1.tsx +50 -0
  179. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-10.tsx +53 -0
  180. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-2.tsx +43 -0
  181. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-3.tsx +44 -0
  182. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-4.tsx +53 -0
  183. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/style-7.tsx +44 -0
  184. package/src/components/src/molecules/cart-goals/components/multi-tier-layout/types.ts +13 -0
  185. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/CircleWithProgress.tsx +94 -0
  186. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/constants.ts +6 -0
  187. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/index.tsx +28 -0
  188. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-1.tsx +183 -0
  189. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-10.tsx +242 -0
  190. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-2.tsx +160 -0
  191. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-3.tsx +113 -0
  192. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-4-utils.ts +39 -0
  193. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-4.tsx +216 -0
  194. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/style-7.tsx +113 -0
  195. package/src/components/src/molecules/cart-goals/components/multi-tier-progress/types.ts +18 -0
  196. package/src/components/src/molecules/cart-goals/components/single-tier-progress.tsx +210 -0
  197. package/src/components/src/molecules/cart-goals/components/success-modal/index.tsx +117 -0
  198. package/src/components/src/molecules/cart-goals/haptics.ts +40 -0
  199. package/src/components/src/molecules/cart-goals/index.tsx +2 -0
  200. package/src/components/src/molecules/cart-goals/multi-tier-utils.ts +139 -0
  201. package/src/components/src/molecules/cart-goals/multi-tier.tsx +466 -0
  202. package/src/components/src/molecules/cart-goals/single-tier-utils.ts +45 -0
  203. package/src/components/src/molecules/cart-goals/single-tier.tsx +521 -0
  204. package/src/components/src/molecules/cart-goals/types.ts +105 -0
  205. package/src/components/src/molecules/cart-goals/use-goal-success-modal.tsx +103 -0
  206. package/src/components/src/molecules/cart-goals/use-tier-change.ts +42 -0
  207. package/src/components/src/molecules/cart-goals/utils.ts +153 -0
  208. package/src/components/src/molecules/checkout-bar/index.tsx +155 -0
  209. package/src/components/src/molecules/checkout-bar-v2/cart-custom-attributes-interceptor.tsx +130 -0
  210. package/src/components/src/molecules/checkout-bar-v2/circle.tsx +63 -0
  211. package/src/components/src/molecules/checkout-bar-v2/goals.tsx +391 -0
  212. package/src/components/src/molecules/checkout-bar-v2/goals.web.tsx +374 -0
  213. package/src/components/src/molecules/checkout-bar-v2/index.tsx +267 -0
  214. package/src/components/src/molecules/checkout-bar-v2/index.web.tsx +115 -0
  215. package/src/components/src/molecules/checkout-bar-v2/interceptor.tsx +73 -0
  216. package/src/components/src/molecules/checkout-bar-v2/out-of-stock-modal/index.tsx +216 -0
  217. package/src/components/src/molecules/checkout-bar-v2/out-of-stock-modal/item.tsx +94 -0
  218. package/src/components/src/molecules/checkout-bar-v2/out-of-stock-modal/styles.ts +136 -0
  219. package/src/components/src/molecules/chips-navigation/chip.tsx +83 -0
  220. package/src/components/src/molecules/chips-navigation/horizontal.tsx +140 -0
  221. package/src/components/src/molecules/chips-navigation/horizontal.web.tsx +145 -0
  222. package/src/components/src/molecules/chips-navigation/index.tsx +13 -0
  223. package/src/components/src/molecules/chips-navigation/index.web.ts +13 -0
  224. package/src/components/src/molecules/chips-navigation/utils.ts +35 -0
  225. package/src/components/src/molecules/chips-navigation/vertical.tsx +108 -0
  226. package/src/components/src/molecules/choice-sheet-content/index.tsx +111 -0
  227. package/src/components/src/molecules/confirmation-popup/index.tsx +51 -0
  228. package/src/components/src/molecules/controlled-video/index.tsx +316 -0
  229. package/src/components/src/molecules/currency-selection-prompt/index.tsx +24 -0
  230. package/src/components/src/molecules/currency-selector/index.tsx +244 -0
  231. package/src/components/src/molecules/currency-selector/layout-element.tsx +24 -0
  232. package/src/components/src/molecules/direct-navigation/index.tsx +48 -0
  233. package/src/components/src/molecules/discount-label/index.tsx +55 -0
  234. package/src/components/src/molecules/divider/index.tsx +23 -0
  235. package/src/components/src/molecules/dropdown-picker/index.tsx +217 -0
  236. package/src/components/src/molecules/empty-screen-v2/index.tsx +83 -0
  237. package/src/components/src/molecules/fallback/index.tsx +70 -0
  238. package/src/components/src/molecules/filter/color-filter.tsx +173 -0
  239. package/src/components/src/molecules/filter/index.tsx +244 -0
  240. package/src/components/src/molecules/filter/index.web.tsx +111 -0
  241. package/src/components/src/molecules/filter/selectors.tsx +623 -0
  242. package/src/components/src/molecules/form-input/index.tsx +451 -0
  243. package/src/components/src/molecules/full-screen-loading/index.tsx +20 -0
  244. package/src/components/src/molecules/generic-form/common.tsx +298 -0
  245. package/src/components/src/molecules/generic-form/index.tsx +131 -0
  246. package/src/components/src/molecules/generic-form/types.tsx +30 -0
  247. package/src/components/src/molecules/generic-product-card/card.tsx +5 -0
  248. package/src/components/src/molecules/generic-product-card/card.web.tsx +1 -0
  249. package/src/components/src/molecules/generic-product-card/cardV2.tsx +342 -0
  250. package/src/components/src/molecules/generic-product-card/common.tsx +590 -0
  251. package/src/components/src/molecules/generic-product-card/index.tsx +2 -0
  252. package/src/components/src/molecules/generic-product-card/tags.tsx +178 -0
  253. package/src/components/src/molecules/generic-product-card/types.tsx +219 -0
  254. package/src/components/src/molecules/generic-product-card/wrapper.tsx +39 -0
  255. package/src/components/src/molecules/gift-item-card/index.tsx +44 -0
  256. package/src/components/src/molecules/gift-item-selected-card/index.tsx +28 -0
  257. package/src/components/src/molecules/hidden-block/index.tsx +8 -0
  258. package/src/components/src/molecules/hidden-block/index.web.tsx +81 -0
  259. package/src/components/src/molecules/image-compare/index.tsx +236 -0
  260. package/src/components/src/molecules/image-compare/index.web.tsx +213 -0
  261. package/src/components/src/molecules/image-navigation/index.tsx +32 -0
  262. package/src/components/src/molecules/image-preview/image-preview.tsx +295 -0
  263. package/src/components/src/molecules/image-preview/image-preview.web.tsx +157 -0
  264. package/src/components/src/molecules/image-preview-2/close-icon-button.tsx +11 -0
  265. package/src/components/src/molecules/image-preview-2/constants.ts +2 -0
  266. package/src/components/src/molecules/image-preview-2/footer-item.tsx +52 -0
  267. package/src/components/src/molecules/image-preview-2/footer.tsx +58 -0
  268. package/src/components/src/molecules/image-preview-2/index.tsx +139 -0
  269. package/src/components/src/molecules/image-preview-2/types.ts +72 -0
  270. package/src/components/src/molecules/image-text/index.tsx +139 -0
  271. package/src/components/src/molecules/line-item/index.tsx +45 -0
  272. package/src/components/src/molecules/list-item/index.tsx +758 -0
  273. package/src/components/src/molecules/loader/index.tsx +40 -0
  274. package/src/components/src/molecules/menu/accordion/image-menu-accordion-list.tsx +114 -0
  275. package/src/components/src/molecules/menu/accordion/text-menu-accordion-list.tsx +111 -0
  276. package/src/components/src/molecules/menu/common/horizontal-menu-list.tsx +279 -0
  277. package/src/components/src/molecules/menu/common/menu-accordion.tsx +69 -0
  278. package/src/components/src/molecules/menu/common/menu-grid.tsx +179 -0
  279. package/src/components/src/molecules/menu/common/vertical-menu-list.tsx +197 -0
  280. package/src/components/src/molecules/menu/common/vertical-menu-list.web.tsx +196 -0
  281. package/src/components/src/molecules/menu/expandable-grid/image-menu-expandable-grid.tsx +128 -0
  282. package/src/components/src/molecules/menu/expandable-grid/text-menu-expandable-grid.tsx +107 -0
  283. package/src/components/src/molecules/menu/grid/image-menu-grid.tsx +58 -0
  284. package/src/components/src/molecules/menu/grid/text-menu-grid.tsx +55 -0
  285. package/src/components/src/molecules/menu/index.tsx +38 -0
  286. package/src/components/src/molecules/menu/item/image-menu-item.tsx +226 -0
  287. package/src/components/src/molecules/menu/item/text-menu-item.tsx +174 -0
  288. package/src/components/src/molecules/menu/list/horizontal-image-menu-list.tsx +55 -0
  289. package/src/components/src/molecules/menu/list/horizontal-text-menu-list.tsx +53 -0
  290. package/src/components/src/molecules/menu/list/image-menu-list.tsx +38 -0
  291. package/src/components/src/molecules/menu/list/text-menu-list.tsx +38 -0
  292. package/src/components/src/molecules/menu/list/vertical-image-menu-list.tsx +58 -0
  293. package/src/components/src/molecules/menu/list/vertical-text-menu-list.tsx +52 -0
  294. package/src/components/src/molecules/menu/sub-menu-item.tsx +50 -0
  295. package/src/components/src/molecules/menu/tabs/horizontal-image-menu-tabs.tsx +211 -0
  296. package/src/components/src/molecules/menu/tabs/horizontal-text-menu-tabs.tsx +211 -0
  297. package/src/components/src/molecules/menu/tabs/image-menu-tabs.tsx +52 -0
  298. package/src/components/src/molecules/menu/tabs/text-menu-tabs.tsx +49 -0
  299. package/src/components/src/molecules/menu/tabs/vertical-image-menu-tabs.tsx +224 -0
  300. package/src/components/src/molecules/menu/tabs/vertical-text-menu-tabs.tsx +222 -0
  301. package/src/components/src/molecules/menu/types.ts +580 -0
  302. package/src/components/src/molecules/menu/utils.ts +229 -0
  303. package/src/components/src/molecules/metafield-tag/index.tsx +36 -0
  304. package/src/components/src/molecules/metafield-tag/index.web.tsx +3 -0
  305. package/src/components/src/molecules/metafield-text/index.tsx +47 -0
  306. package/src/components/src/molecules/no-internet-block/index.tsx +43 -0
  307. package/src/components/src/molecules/only-text-navigation.tsx/index.tsx +79 -0
  308. package/src/components/src/molecules/order-item/index.tsx +108 -0
  309. package/src/components/src/molecules/payment-bar/index.tsx +139 -0
  310. package/src/components/src/molecules/pdp-quantity-selector/index.tsx +44 -0
  311. package/src/components/src/molecules/phone-country-input/index.tsx +153 -0
  312. package/src/components/src/molecules/phone-input/index.tsx +287 -0
  313. package/src/components/src/molecules/phone-input/index.web.tsx +21 -0
  314. package/src/components/src/molecules/price-box/index.tsx +54 -0
  315. package/src/components/src/molecules/price-text/index.tsx +40 -0
  316. package/src/components/src/molecules/product-card/index.tsx +162 -0
  317. package/src/components/src/molecules/product-card/wishlist/index.tsx +35 -0
  318. package/src/components/src/molecules/product-card-with-carousel/index.tsx +139 -0
  319. package/src/components/src/molecules/product-collection/GotoLinkButton.tsx +59 -0
  320. package/src/components/src/molecules/product-collection/GotoLinkButton.web.tsx +65 -0
  321. package/src/components/src/molecules/product-collection/index.tsx +458 -0
  322. package/src/components/src/molecules/product-collection/wrapper.tsx +224 -0
  323. package/src/components/src/molecules/product-components/add-to-bundle.tsx +19 -0
  324. package/src/components/src/molecules/product-components/add-to-cart.tsx +708 -0
  325. package/src/components/src/molecules/product-components/add-to-cart.web.tsx +398 -0
  326. package/src/components/src/molecules/product-components/add-to-wishlist-v2.tsx +43 -0
  327. package/src/components/src/molecules/product-components/add-to-wishlist.tsx +42 -0
  328. package/src/components/src/molecules/product-components/avg-ratings.tsx +56 -0
  329. package/src/components/src/molecules/product-components/carousel.tsx +85 -0
  330. package/src/components/src/molecules/product-components/color-swatch.tsx +81 -0
  331. package/src/components/src/molecules/product-components/compare-at-price.tsx +52 -0
  332. package/src/components/src/molecules/product-components/delete-from-wishlist.tsx +39 -0
  333. package/src/components/src/molecules/product-components/discount-label.tsx +109 -0
  334. package/src/components/src/molecules/product-components/goto-button-v2.tsx +42 -0
  335. package/src/components/src/molecules/product-components/hooks/carousel.ts +160 -0
  336. package/src/components/src/molecules/product-components/image.tsx +132 -0
  337. package/src/components/src/molecules/product-components/in-stock.tsx +86 -0
  338. package/src/components/src/molecules/product-components/index.tsx +25 -0
  339. package/src/components/src/molecules/product-components/metafield-rich-text.tsx +61 -0
  340. package/src/components/src/molecules/product-components/metafield-shopify-richtext.tsx +54 -0
  341. package/src/components/src/molecules/product-components/metafield-text.tsx +48 -0
  342. package/src/components/src/molecules/product-components/min-variant-price.tsx +48 -0
  343. package/src/components/src/molecules/product-components/move-to-cart.tsx +35 -0
  344. package/src/components/src/molecules/product-components/notify-me.tsx +93 -0
  345. package/src/components/src/molecules/product-components/open-modal.tsx +35 -0
  346. package/src/components/src/molecules/product-components/overlay.tsx +25 -0
  347. package/src/components/src/molecules/product-components/price.tsx +64 -0
  348. package/src/components/src/molecules/product-components/product-tag-v2.tsx +108 -0
  349. package/src/components/src/molecules/product-components/product-tag.tsx +56 -0
  350. package/src/components/src/molecules/product-components/product-type.tsx +32 -0
  351. package/src/components/src/molecules/product-components/product-variant-options.tsx +69 -0
  352. package/src/components/src/molecules/product-components/product-variant-selector-3.tsx +67 -0
  353. package/src/components/src/molecules/product-components/product-vendor.tsx +36 -0
  354. package/src/components/src/molecules/product-components/quantity-selector.tsx +307 -0
  355. package/src/components/src/molecules/product-components/quantity-selector.web.tsx +332 -0
  356. package/src/components/src/molecules/product-components/ratings-count.tsx +57 -0
  357. package/src/components/src/molecules/product-components/scarcity-counter.tsx +159 -0
  358. package/src/components/src/molecules/product-components/selling-plan-compare-at-price.tsx +43 -0
  359. package/src/components/src/molecules/product-components/selling-plan-discount.tsx +42 -0
  360. package/src/components/src/molecules/product-components/selling-plan-price.tsx +44 -0
  361. package/src/components/src/molecules/product-components/share-icon.tsx +49 -0
  362. package/src/components/src/molecules/product-components/spacer.tsx +18 -0
  363. package/src/components/src/molecules/product-components/star-ratings.tsx +48 -0
  364. package/src/components/src/molecules/product-components/text-tag.tsx +36 -0
  365. package/src/components/src/molecules/product-components/title.tsx +34 -0
  366. package/src/components/src/molecules/product-components/title.web.tsx +34 -0
  367. package/src/components/src/molecules/product-components/types.tsx +7 -0
  368. package/src/components/src/molecules/product-components/upsell-product-price.tsx +82 -0
  369. package/src/components/src/molecules/product-components/utils/add-to-cart.ts +108 -0
  370. package/src/components/src/molecules/product-components/utils/selected-selling-plan.ts +32 -0
  371. package/src/components/src/molecules/product-components/utils/selling-plan-compare-at-price.ts +36 -0
  372. package/src/components/src/molecules/product-components/utils/selling-plan-discount.ts +64 -0
  373. package/src/components/src/molecules/product-components/utils/selling-plan-price.ts +36 -0
  374. package/src/components/src/molecules/product-components/variant-selector.tsx +88 -0
  375. package/src/components/src/molecules/product-components/variant-sku.tsx +35 -0
  376. package/src/components/src/molecules/product-description-with-tags/index.tsx +56 -0
  377. package/src/components/src/molecules/product-group/index.tsx +64 -0
  378. package/src/components/src/molecules/product-group/product-group-list.tsx +64 -0
  379. package/src/components/src/molecules/product-image/index.tsx +143 -0
  380. package/src/components/src/molecules/product-tag/index.tsx +33 -0
  381. package/src/components/src/molecules/product-title/index.tsx +28 -0
  382. package/src/components/src/molecules/product-vendor/index.tsx +18 -0
  383. package/src/components/src/molecules/product-video/index.tsx +80 -0
  384. package/src/components/src/molecules/profile/index.tsx +0 -0
  385. package/src/components/src/molecules/quantity-selector/index.tsx +596 -0
  386. package/src/components/src/molecules/review-label/index.tsx +33 -0
  387. package/src/components/src/molecules/rich-text/index.tsx +1 -0
  388. package/src/components/src/molecules/rich-text/rich-text.tsx +1 -0
  389. package/src/components/src/molecules/rich-text/rich-text.web.tsx +1 -0
  390. package/src/components/src/molecules/search-input/index.tsx +248 -0
  391. package/src/components/src/molecules/sheet-header/index.tsx +55 -0
  392. package/src/components/src/molecules/shipping-address-label/index.tsx +67 -0
  393. package/src/components/src/molecules/simple-image-text/index.tsx +85 -0
  394. package/src/components/src/molecules/single-product-card/index.tsx +27 -0
  395. package/src/components/src/molecules/size-guide/index.tsx +187 -0
  396. package/src/components/src/molecules/skeleton/index.tsx +47 -0
  397. package/src/components/src/molecules/skeleton/index.web.tsx +18 -0
  398. package/src/components/src/molecules/skeleton/product-card.tsx +52 -0
  399. package/src/components/src/molecules/social-sign-in/apple-signin.tsx +88 -0
  400. package/src/components/src/molecules/social-sign-in/apple-signin.web.ts +4 -0
  401. package/src/components/src/molecules/social-sign-in/google-signin.tsx +105 -0
  402. package/src/components/src/molecules/social-sign-in/google-signin.web.ts +3 -0
  403. package/src/components/src/molecules/social-sign-in/social-auth.tsx +83 -0
  404. package/src/components/src/molecules/social-sign-in/social-signin-layout-item.tsx +54 -0
  405. package/src/components/src/molecules/social-sign-in/truecaller-signin.tsx +103 -0
  406. package/src/components/src/molecules/sub-navigations/index.tsx +169 -0
  407. package/src/components/src/molecules/subscription-v2/index.tsx +47 -0
  408. package/src/components/src/molecules/subscription-v2/subscription.tsx +356 -0
  409. package/src/components/src/molecules/subscription-v2/subscriptions-option-modal.tsx +78 -0
  410. package/src/components/src/molecules/switch/index.tsx +72 -0
  411. package/src/components/src/molecules/tab-selector/index.tsx +160 -0
  412. package/src/components/src/molecules/tab-view/index.tsx +2 -0
  413. package/src/components/src/molecules/tab-view/tab-item.tsx +67 -0
  414. package/src/components/src/molecules/tab-view/tab-pane.tsx +13 -0
  415. package/src/components/src/molecules/tab-view/tabs.tsx +64 -0
  416. package/src/components/src/molecules/text-carousel/index.tsx +111 -0
  417. package/src/components/src/molecules/text-label/index.tsx +36 -0
  418. package/src/components/src/molecules/toasts/add-to-cart-toast.tsx +48 -0
  419. package/src/components/src/molecules/toasts/brew-error-toast.tsx +49 -0
  420. package/src/components/src/molecules/toasts/brew-success-toast.tsx +55 -0
  421. package/src/components/src/molecules/toasts/index.tsx +3 -0
  422. package/src/components/src/molecules/trending-pillet/index.tsx +48 -0
  423. package/src/components/src/molecules/variant-item-selector/index.tsx +171 -0
  424. package/src/components/src/molecules/variant-selector-2/index.tsx +669 -0
  425. package/src/components/src/molecules/variant-selector-3/default-color-item.tsx +120 -0
  426. package/src/components/src/molecules/variant-selector-3/default-shopify-color.tsx +167 -0
  427. package/src/components/src/molecules/variant-selector-3/default-variant-image.tsx +82 -0
  428. package/src/components/src/molecules/variant-selector-3/index.tsx +114 -0
  429. package/src/components/src/molecules/variant-selector-3/option-items.tsx +171 -0
  430. package/src/components/src/molecules/variant-selector-3/option-list.tsx +86 -0
  431. package/src/components/src/molecules/variant-selector-3/option.tsx +42 -0
  432. package/src/components/src/molecules/variant-selector-3/utils.ts +131 -0
  433. package/src/components/src/molecules/variant-selector-3/variant-heading.tsx +162 -0
  434. package/src/components/src/molecules/variant-selector-3/variant-options.tsx +201 -0
  435. package/src/components/src/molecules/variant-selector-modal/index.tsx +127 -0
  436. package/src/components/src/molecules/variant-selector-type/index.tsx +235 -0
  437. package/src/components/src/molecules/video-carousel-item/index.tsx +183 -0
  438. package/src/components/src/molecules/video-carousel-item/product-list.tsx +258 -0
  439. package/src/components/src/molecules/video-carousel-item/product-list.web.tsx +197 -0
  440. package/src/components/src/molecules/way-to-reward-card/index.tsx +236 -0
  441. package/src/components/src/molecules/way-to-reward-card/index.web.tsx +188 -0
  442. package/src/components/src/molecules/web-view-auto-height/index.tsx +28 -0
  443. package/src/components/src/molecules/wishlist/add-to-wishlist-v2.tsx +144 -0
  444. package/src/components/src/molecules/wishlist/add-to-wishlist.tsx +136 -0
  445. package/src/components/src/molecules/wishlist/index.ts +1 -0
  446. package/src/components/src/molecules/wishlist/move-to-cart.tsx +57 -0
  447. package/src/components/src/molecules/wishlist/remove-from-wishlist.tsx +40 -0
  448. package/src/components/src/molecules/youtube-video/index.tsx +54 -0
  449. package/src/components/src/molecules/youtube-video/index.web.tsx +44 -0
  450. package/src/components/src/organisms/a1-accordion/index.tsx +93 -0
  451. package/src/components/src/organisms/a1-accordion/index.web.tsx +82 -0
  452. package/src/components/src/organisms/a1-accordion-image/index.tsx +97 -0
  453. package/src/components/src/organisms/a1-collection-image-banner/index.tsx +84 -0
  454. package/src/components/src/organisms/a1-collection-image-banner/index.web.tsx +23 -0
  455. package/src/components/src/organisms/a1-generic-metafield-accordion/index.tsx +90 -0
  456. package/src/components/src/organisms/a1-generic-metafield-accordion/index.web.tsx +10 -0
  457. package/src/components/src/organisms/a1-image-banner/index.tsx +86 -0
  458. package/src/components/src/organisms/a1-image-list/index.tsx +99 -0
  459. package/src/components/src/organisms/a1-product-description-html/index.tsx +137 -0
  460. package/src/components/src/organisms/a1-product-description-html/index.web.tsx +90 -0
  461. package/src/components/src/organisms/a1-product-grid/index.tsx +60 -0
  462. package/src/components/src/organisms/a1-product-list/index.tsx +92 -0
  463. package/src/components/src/organisms/accordion-image/index.tsx +68 -0
  464. package/src/components/src/organisms/add-address/index.tsx +62 -0
  465. package/src/components/src/organisms/add-review/index.tsx +190 -0
  466. package/src/components/src/organisms/add-to-bundle/index.tsx +44 -0
  467. package/src/components/src/organisms/add-to-cart-bar/add-to-card-bar.tsx +115 -0
  468. package/src/components/src/organisms/add-to-cart-bar/index.tsx +1 -0
  469. package/src/components/src/organisms/add-to-cart-bar/v2.tsx +205 -0
  470. package/src/components/src/organisms/add-to-cart-bar/wrapper.tsx +44 -0
  471. package/src/components/src/organisms/add-to-wishlist-bar/index.tsx +96 -0
  472. package/src/components/src/organisms/address-form/index.tsx +511 -0
  473. package/src/components/src/organisms/address-form-input-field/index.tsx +375 -0
  474. package/src/components/src/organisms/address-list/index.tsx +154 -0
  475. package/src/components/src/organisms/announcement-carousel/index.tsx +207 -0
  476. package/src/components/src/organisms/announcement-carousel/index.web.tsx +73 -0
  477. package/src/components/src/organisms/announcement-ticker/index.tsx +247 -0
  478. package/src/components/src/organisms/announcement-ticker/index.web.tsx +169 -0
  479. package/src/components/src/organisms/apply-coupon/index.tsx +395 -0
  480. package/src/components/src/organisms/apply-coupon-v2/applied-coupon-card.tsx +84 -0
  481. package/src/components/src/organisms/apply-coupon-v2/available-coupons.tsx +123 -0
  482. package/src/components/src/organisms/apply-coupon-v2/coupon-svg-bg.tsx +25 -0
  483. package/src/components/src/organisms/apply-coupon-v2/index.tsx +367 -0
  484. package/src/components/src/organisms/blog-list/blog-data.tsx +268 -0
  485. package/src/components/src/organisms/blog-list/blog-item.tsx +70 -0
  486. package/src/components/src/organisms/blog-list/empty-blog-list.tsx +42 -0
  487. package/src/components/src/organisms/blog-list/index.tsx +102 -0
  488. package/src/components/src/organisms/blog-list/index.web.tsx +92 -0
  489. package/src/components/src/organisms/brew-collection-image-banner/index.tsx +96 -0
  490. package/src/components/src/organisms/bundle-bar/index.tsx +128 -0
  491. package/src/components/src/organisms/bundle-filter-bar/index.tsx +114 -0
  492. package/src/components/src/organisms/bundle-items-modal/index.tsx +140 -0
  493. package/src/components/src/organisms/bundle-list/index.tsx +65 -0
  494. package/src/components/src/organisms/buy-now-bar/index.tsx +79 -0
  495. package/src/components/src/organisms/carousel-with-background-blur/carousel.tsx +393 -0
  496. package/src/components/src/organisms/carousel-with-background-blur/carousel.web.tsx +179 -0
  497. package/src/components/src/organisms/carousel-with-background-blur/index.tsx +90 -0
  498. package/src/components/src/organisms/carousel-with-background-blur/index.web.tsx +73 -0
  499. package/src/components/src/organisms/carousel-with-background-blur/indicator.tsx +144 -0
  500. package/src/components/src/organisms/cart-custom-attributes/index.tsx +103 -0
  501. package/src/components/src/organisms/cart-goal/index.tsx +116 -0
  502. package/src/components/src/organisms/cart-goals/index.tsx +2 -0
  503. package/src/components/src/organisms/cart-goals/milestones.tsx +233 -0
  504. package/src/components/src/organisms/cart-goals/progress-bar.tsx +214 -0
  505. package/src/components/src/organisms/cart-list/cart-item.tsx +0 -0
  506. package/src/components/src/organisms/cart-list/empty-cart.tsx +113 -0
  507. package/src/components/src/organisms/cart-list/index.tsx +271 -0
  508. package/src/components/src/organisms/cart-payment-web-view/index.tsx +213 -0
  509. package/src/components/src/organisms/categories-navigation/index.tsx +168 -0
  510. package/src/components/src/organisms/change-address/index.tsx +512 -0
  511. package/src/components/src/organisms/change-address-v2/index.tsx +223 -0
  512. package/src/components/src/organisms/change-password/index.tsx +231 -0
  513. package/src/components/src/organisms/chips-navigation/index.tsx +41 -0
  514. package/src/components/src/organisms/chips-navigation/index.web.tsx +69 -0
  515. package/src/components/src/organisms/chips-navigation-accordion/index.tsx +47 -0
  516. package/src/components/src/organisms/collection-list/index.tsx +74 -0
  517. package/src/components/src/organisms/collection-list-background/index.tsx +99 -0
  518. package/src/components/src/organisms/color-image/index.tsx +79 -0
  519. package/src/components/src/organisms/color-swatch-group/index.tsx +141 -0
  520. package/src/components/src/organisms/confirm-dialog/index.tsx +34 -0
  521. package/src/components/src/organisms/countdown-banner/common.tsx +263 -0
  522. package/src/components/src/organisms/countdown-banner/index.tsx +143 -0
  523. package/src/components/src/organisms/countdown-banner/index.web.tsx +176 -0
  524. package/src/components/src/organisms/countdown-banner/types.tsx +29 -0
  525. package/src/components/src/organisms/currency-selector/index.tsx +39 -0
  526. package/src/components/src/organisms/delete-account/index.tsx +93 -0
  527. package/src/components/src/organisms/delete-account-privacy/index.tsx +39 -0
  528. package/src/components/src/organisms/delivery-details/index.tsx +157 -0
  529. package/src/components/src/organisms/discount-code-input/index.tsx +152 -0
  530. package/src/components/src/organisms/divider-heading/index.tsx +51 -0
  531. package/src/components/src/organisms/edit-address/index.tsx +53 -0
  532. package/src/components/src/organisms/empty-screen/index.tsx +74 -0
  533. package/src/components/src/organisms/empty-screen-v2/index.tsx +26 -0
  534. package/src/components/src/organisms/empty-searches/index.tsx +96 -0
  535. package/src/components/src/organisms/estimated-delivery-date/dates-mapping.ts +23 -0
  536. package/src/components/src/organisms/estimated-delivery-date/index.tsx +141 -0
  537. package/src/components/src/organisms/faqs/defaults.ts +65 -0
  538. package/src/components/src/organisms/faqs/index.tsx +51 -0
  539. package/src/components/src/organisms/faqs/index.web.tsx +64 -0
  540. package/src/components/src/organisms/follow-us/index.tsx +58 -0
  541. package/src/components/src/organisms/forgot-password/index.tsx +228 -0
  542. package/src/components/src/organisms/free-engraving/index.tsx +180 -0
  543. package/src/components/src/organisms/gift-items-list/index.tsx +98 -0
  544. package/src/components/src/organisms/gift-wrap-list/custom-attributes-form.tsx +77 -0
  545. package/src/components/src/organisms/gift-wrap-list/gift-wrap-item.tsx +133 -0
  546. package/src/components/src/organisms/gift-wrap-list/index.tsx +72 -0
  547. package/src/components/src/organisms/goto-button/index.tsx +53 -0
  548. package/src/components/src/organisms/goto-button/index.web.tsx +46 -0
  549. package/src/components/src/organisms/goto-button-v2/index.tsx +58 -0
  550. package/src/components/src/organisms/horizontal-tabs-menu/defaults.ts +797 -0
  551. package/src/components/src/organisms/horizontal-tabs-menu/index.tsx +79 -0
  552. package/src/components/src/organisms/icon-list/index.tsx +150 -0
  553. package/src/components/src/organisms/image-banner/index.tsx +158 -0
  554. package/src/components/src/organisms/image-collage/constants.ts +8 -0
  555. package/src/components/src/organisms/image-collage/index.tsx +147 -0
  556. package/src/components/src/organisms/image-collage/variants.common.ts +415 -0
  557. package/src/components/src/organisms/image-collage/variants.ts +129 -0
  558. package/src/components/src/organisms/image-collage/variants.web.ts +119 -0
  559. package/src/components/src/organisms/image-compare-block/index.tsx +48 -0
  560. package/src/components/src/organisms/image-list/index.tsx +427 -0
  561. package/src/components/src/organisms/image-list/utils.tsx +8 -0
  562. package/src/components/src/organisms/image-list/utils.web.tsx +6 -0
  563. package/src/components/src/organisms/image-list-accordion/index.tsx +47 -0
  564. package/src/components/src/organisms/image-marquee/index.tsx +178 -0
  565. package/src/components/src/organisms/image-marquee/index.web.tsx +190 -0
  566. package/src/components/src/organisms/image-marquee/types.ts +14 -0
  567. package/src/components/src/organisms/image-preview/index.tsx +51 -0
  568. package/src/components/src/organisms/image-video-reel/carouse-item.tsx +348 -0
  569. package/src/components/src/organisms/image-video-reel/carouse-item.web.tsx +318 -0
  570. package/src/components/src/organisms/image-video-reel/index.tsx +359 -0
  571. package/src/components/src/organisms/image-video-reel/indicator.tsx +116 -0
  572. package/src/components/src/organisms/image-video-reel/indicator.web.tsx +80 -0
  573. package/src/components/src/organisms/image-video-reel/types.ts +103 -0
  574. package/src/components/src/organisms/infinite-product-grid/index.tsx +218 -0
  575. package/src/components/src/organisms/infinite-product-grid/index.web.tsx +105 -0
  576. package/src/components/src/organisms/infinite-product-grid-v2/index.tsx +163 -0
  577. package/src/components/src/organisms/judgeme-reviews/index.tsx +129 -0
  578. package/src/components/src/organisms/judgeme-reviews/utils.ts +77 -0
  579. package/src/components/src/organisms/last-order/index.tsx +40 -0
  580. package/src/components/src/organisms/metafield-image-compare-block/hook.tsx +119 -0
  581. package/src/components/src/organisms/metafield-image-compare-block/index.tsx +59 -0
  582. package/src/components/src/organisms/metafield-product-list/index.tsx +114 -0
  583. package/src/components/src/organisms/metafield-rich-text/index.tsx +101 -0
  584. package/src/components/src/organisms/metafield-rich-text/metafield-accordian.tsx +51 -0
  585. package/src/components/src/organisms/metafield-rich-text/metafield-accordian.web.tsx +55 -0
  586. package/src/components/src/organisms/metafield-size-chart-page/index.tsx +86 -0
  587. package/src/components/src/organisms/metafield-tag-block/index.tsx +28 -0
  588. package/src/components/src/organisms/metafield-text/index.tsx +87 -0
  589. package/src/components/src/organisms/metafields-product-group/index.tsx +89 -0
  590. package/src/components/src/organisms/more-menu/index.tsx +64 -0
  591. package/src/components/src/organisms/move-to-wishlist/index.tsx +79 -0
  592. package/src/components/src/organisms/multi-level-menu/index.tsx +54 -0
  593. package/src/components/src/organisms/opinew-reviews/index.tsx +102 -0
  594. package/src/components/src/organisms/opinew-reviews/utils.tsx +55 -0
  595. package/src/components/src/organisms/order-cancel/index.tsx +63 -0
  596. package/src/components/src/organisms/order-details-header/index.tsx +78 -0
  597. package/src/components/src/organisms/order-details-webview/index.tsx +47 -0
  598. package/src/components/src/organisms/order-list/index.tsx +458 -0
  599. package/src/components/src/organisms/order-payment-details/index.tsx +90 -0
  600. package/src/components/src/organisms/order-product-list/index.tsx +79 -0
  601. package/src/components/src/organisms/order-product-list-v2/index.tsx +158 -0
  602. package/src/components/src/organisms/otp-signup/index.tsx +186 -0
  603. package/src/components/src/organisms/past-searches/index.tsx +202 -0
  604. package/src/components/src/organisms/payment-confirmation/index.tsx +177 -0
  605. package/src/components/src/organisms/payment-details/index.tsx +264 -0
  606. package/src/components/src/organisms/payment-success/index.tsx +49 -0
  607. package/src/components/src/organisms/payment-web-view/index.tsx +285 -0
  608. package/src/components/src/organisms/payment-web-view-v4/index.tsx +600 -0
  609. package/src/components/src/organisms/pdp/index.tsx +168 -0
  610. package/src/components/src/organisms/pdp/index.web.tsx +60 -0
  611. package/src/components/src/organisms/pdp-description/index.tsx +104 -0
  612. package/src/components/src/organisms/pdp-description-native/index.tsx +63 -0
  613. package/src/components/src/organisms/pdp-description-native/index.web.tsx +11 -0
  614. package/src/components/src/organisms/pdp-metafield-video/index.tsx +153 -0
  615. package/src/components/src/organisms/popup-modal/index.tsx +129 -0
  616. package/src/components/src/organisms/previously-ordered-products/index.tsx +105 -0
  617. package/src/components/src/organisms/product-discount/common.tsx +123 -0
  618. package/src/components/src/organisms/product-discount/coupon-card.tsx +125 -0
  619. package/src/components/src/organisms/product-discount/defaults.ts +136 -0
  620. package/src/components/src/organisms/product-discount/empty-coupons.tsx +4 -0
  621. package/src/components/src/organisms/product-discount/empty-coupons.web.tsx +11 -0
  622. package/src/components/src/organisms/product-discount/index.tsx +228 -0
  623. package/src/components/src/organisms/product-discount/types.tsx +28 -0
  624. package/src/components/src/organisms/product-grid/index.tsx +86 -0
  625. package/src/components/src/organisms/product-hotspot/animated-circle.tsx +88 -0
  626. package/src/components/src/organisms/product-hotspot/animated-circle.web.tsx +55 -0
  627. package/src/components/src/organisms/product-hotspot/index.tsx +255 -0
  628. package/src/components/src/organisms/product-hotspot/item.tsx +124 -0
  629. package/src/components/src/organisms/product-hotspot/modal-body.tsx +50 -0
  630. package/src/components/src/organisms/product-hotspot/product-card.tsx +111 -0
  631. package/src/components/src/organisms/product-info/index.tsx +421 -0
  632. package/src/components/src/organisms/product-info/wrapper.tsx +15 -0
  633. package/src/components/src/organisms/product-info/wrapper.web.tsx +15 -0
  634. package/src/components/src/organisms/product-list/index.tsx +104 -0
  635. package/src/components/src/organisms/product-list/index.web.tsx +110 -0
  636. package/src/components/src/organisms/product-list/product-list.schema.ts +816 -0
  637. package/src/components/src/organisms/product-refresh/index.tsx +19 -0
  638. package/src/components/src/organisms/product-size-chart-v2/index.tsx +49 -0
  639. package/src/components/src/organisms/product-summary/index.tsx +1 -0
  640. package/src/components/src/organisms/product-summary/product-summary.tsx +253 -0
  641. package/src/components/src/organisms/product-summary/wrapper.tsx +36 -0
  642. package/src/components/src/organisms/profile/index.tsx +238 -0
  643. package/src/components/src/organisms/profile-2/index.tsx +254 -0
  644. package/src/components/src/organisms/profile-edit/constants.ts +74 -0
  645. package/src/components/src/organisms/profile-edit/index.tsx +802 -0
  646. package/src/components/src/organisms/profile-edit/styles.ts +371 -0
  647. package/src/components/src/organisms/profile-edit/types.ts +120 -0
  648. package/src/components/src/organisms/profile-edit/utils.ts +362 -0
  649. package/src/components/src/organisms/profile-menu/index.tsx +65 -0
  650. package/src/components/src/organisms/profile-signed-out/index.tsx +72 -0
  651. package/src/components/src/organisms/profile-signedout-v2/index.tsx +36 -0
  652. package/src/components/src/organisms/profile-signout/index.tsx +65 -0
  653. package/src/components/src/organisms/profile-user-greeting/index.tsx +113 -0
  654. package/src/components/src/organisms/promo-banner/PromoBanner.tsx +0 -0
  655. package/src/components/src/organisms/promo-banner/index.ts +0 -0
  656. package/src/components/src/organisms/promo-block/index.tsx +69 -0
  657. package/src/components/src/organisms/promo-carousel/index.tsx +101 -0
  658. package/src/components/src/organisms/promo-carousel/index.web.tsx +85 -0
  659. package/src/components/src/organisms/push-inbox/index.tsx +392 -0
  660. package/src/components/src/organisms/push-inbox/utils.ts +94 -0
  661. package/src/components/src/organisms/push-notification-prompt-button/index.tsx +45 -0
  662. package/src/components/src/organisms/push-notification-settings-block/index.tsx +119 -0
  663. package/src/components/src/organisms/quantity-selector-block/index.tsx +54 -0
  664. package/src/components/src/organisms/recent-order/addressSelector.tsx +88 -0
  665. package/src/components/src/organisms/recent-order/index.tsx +51 -0
  666. package/src/components/src/organisms/recent-order/paymentDetails.tsx +68 -0
  667. package/src/components/src/organisms/recently-viewed-products/index.tsx +92 -0
  668. package/src/components/src/organisms/recently-viewed-products/index.web.tsx +110 -0
  669. package/src/components/src/organisms/reels/index.tsx +467 -0
  670. package/src/components/src/organisms/reels/index.web.tsx +345 -0
  671. package/src/components/src/organisms/requires-auth/index.tsx +16 -0
  672. package/src/components/src/organisms/reset-password/index.tsx +140 -0
  673. package/src/components/src/organisms/review-bar/index.tsx +39 -0
  674. package/src/components/src/organisms/rewards-history/index.tsx +105 -0
  675. package/src/components/src/organisms/rewards-summary/index.tsx +146 -0
  676. package/src/components/src/organisms/rewards-summary-old/index.tsx +130 -0
  677. package/src/components/src/organisms/search-bar/index.tsx +34 -0
  678. package/src/components/src/organisms/search-product-list/index.tsx +31 -0
  679. package/src/components/src/organisms/search-recommendations/index.tsx +66 -0
  680. package/src/components/src/organisms/search-suggestions/index.tsx +194 -0
  681. package/src/components/src/organisms/search-suggestions-v2/collection-suggestions.tsx +61 -0
  682. package/src/components/src/organisms/search-suggestions-v2/index.tsx +91 -0
  683. package/src/components/src/organisms/search-suggestions-v2/page-suggestions.tsx +85 -0
  684. package/src/components/src/organisms/search-suggestions-v2/product-suggestions.tsx +174 -0
  685. package/src/components/src/organisms/search-suggestions-v2/search-term-suggestions.tsx +62 -0
  686. package/src/components/src/organisms/search-suggestions-v2/suggestion.tsx +100 -0
  687. package/src/components/src/organisms/shipping-address/index.tsx +59 -0
  688. package/src/components/src/organisms/shop-policy/index.tsx +93 -0
  689. package/src/components/src/organisms/shop-policy/index.web.tsx +12 -0
  690. package/src/components/src/organisms/shopify-customer-auth-webview/index.tsx +207 -0
  691. package/src/components/src/organisms/shopify-customer-payment-web-view/index.tsx +603 -0
  692. package/src/components/src/organisms/shopify-reviews/index.tsx +52 -0
  693. package/src/components/src/organisms/shopify-reviews/utils.ts +27 -0
  694. package/src/components/src/organisms/shopify-rich-text-block/index.tsx +60 -0
  695. package/src/components/src/organisms/shopify-store-credits/index.tsx +369 -0
  696. package/src/components/src/organisms/sign-in/index.tsx +242 -0
  697. package/src/components/src/organisms/sign-in-v2/index.tsx +282 -0
  698. package/src/components/src/organisms/sign-in-v3/index.tsx +259 -0
  699. package/src/components/src/organisms/sign-up/index.tsx +251 -0
  700. package/src/components/src/organisms/sign-up-v2/index.tsx +267 -0
  701. package/src/components/src/organisms/signin-modal/continue-as-guest.tsx +46 -0
  702. package/src/components/src/organisms/signin-modal/index.tsx +113 -0
  703. package/src/components/src/organisms/signup-modal/index.tsx +61 -0
  704. package/src/components/src/organisms/simpl-pay-block/index.tsx +84 -0
  705. package/src/components/src/organisms/single-level-navigation/index.tsx +91 -0
  706. package/src/components/src/organisms/snapmint-pay-block/index.tsx +173 -0
  707. package/src/components/src/organisms/spacer/index.tsx +17 -0
  708. package/src/components/src/organisms/subscription/index.tsx +52 -0
  709. package/src/components/src/organisms/subscription/subscription.tsx +226 -0
  710. package/src/components/src/organisms/subscription-selector-dropdown/extra-info.tsx +53 -0
  711. package/src/components/src/organisms/subscription-selector-dropdown/index.tsx +30 -0
  712. package/src/components/src/organisms/subscription-selector-dropdown/more-price-info.tsx +38 -0
  713. package/src/components/src/organisms/subscription-selector-dropdown/one-time-plan.tsx +85 -0
  714. package/src/components/src/organisms/subscription-selector-dropdown/purchase-plans.tsx +60 -0
  715. package/src/components/src/organisms/subscription-selector-dropdown/selling-plan-options.tsx +132 -0
  716. package/src/components/src/organisms/subscription-selector-dropdown/subscription-option-label.tsx +91 -0
  717. package/src/components/src/organisms/subscription-selector-dropdown/subscription.tsx +27 -0
  718. package/src/components/src/organisms/subscription-selector-dropdown/susbcription-plan.tsx +126 -0
  719. package/src/components/src/organisms/tabbed-product-collection/index.tsx +263 -0
  720. package/src/components/src/organisms/tabbed-product-collection/index.web.tsx +270 -0
  721. package/src/components/src/organisms/tag-redirect-product-images/index.tsx +203 -0
  722. package/src/components/src/organisms/tagged-page-size-chart/index.tsx +76 -0
  723. package/src/components/src/organisms/tagged-pdp-content/index.tsx +72 -0
  724. package/src/components/src/organisms/tagged-plp-content/index.tsx +67 -0
  725. package/src/components/src/organisms/tagged-rich-text/index.tsx +58 -0
  726. package/src/components/src/organisms/tagged-rich-text/index.web.tsx +25 -0
  727. package/src/components/src/organisms/tailored-variant-form/index.tsx +497 -0
  728. package/src/components/src/organisms/testimonials/Testimonials.tsx +45 -0
  729. package/src/components/src/organisms/testimonials/index.tsx +45 -0
  730. package/src/components/src/organisms/total-savings/index.tsx +50 -0
  731. package/src/components/src/organisms/trending-products/index.tsx +84 -0
  732. package/src/components/src/organisms/trending-searches/index.tsx +125 -0
  733. package/src/components/src/organisms/two-level-navigation/index.tsx +80 -0
  734. package/src/components/src/organisms/upsell-product-list/index.tsx +247 -0
  735. package/src/components/src/organisms/variant-carousel/index.tsx +121 -0
  736. package/src/components/src/organisms/variant-selector-modal-block/index.tsx +126 -0
  737. package/src/components/src/organisms/variant-selector-subscriptions/index.tsx +106 -0
  738. package/src/components/src/organisms/variantSelector/index.tsx +69 -0
  739. package/src/components/src/organisms/vertical-tabs-menu/defaults.ts +526 -0
  740. package/src/components/src/organisms/vertical-tabs-menu/index.tsx +61 -0
  741. package/src/components/src/organisms/video-banner/index.tsx +140 -0
  742. package/src/components/src/organisms/video-banner/index.web.tsx +123 -0
  743. package/src/components/src/organisms/video-banner-v2/index.tsx +188 -0
  744. package/src/components/src/organisms/video-carousel/index.tsx +404 -0
  745. package/src/components/src/organisms/video-carousel/index.web.tsx +357 -0
  746. package/src/components/src/organisms/video-carousel/video-carousel-item/index.tsx +277 -0
  747. package/src/components/src/organisms/video-carousel/video-carousel-item/product-list.tsx +257 -0
  748. package/src/components/src/organisms/video-carousel/video-carousel-item/product-list.web.tsx +197 -0
  749. package/src/components/src/organisms/video-list/index.tsx +103 -0
  750. package/src/components/src/organisms/view-coupons/discount-amount.tsx +48 -0
  751. package/src/components/src/organisms/view-coupons/index.tsx +137 -0
  752. package/src/components/src/organisms/view-coupons-v2/index.tsx +174 -0
  753. package/src/components/src/organisms/view-coupons-v2/savings-banner.tsx +100 -0
  754. package/src/components/src/organisms/web-view/index.tsx +281 -0
  755. package/src/components/src/organisms/web-view/index.web.tsx +61 -0
  756. package/src/components/src/organisms/wishlist/index.tsx +224 -0
  757. package/src/components/src/organisms/wishlist-v2/index.tsx +95 -0
  758. package/src/components/src/organisms/wishlisted-items/index.tsx +95 -0
  759. package/src/components/src/organisms/youtube-embed/index.tsx +41 -0
  760. package/src/components/src/registry.ts +2 -0
  761. package/src/components/src/style-utils.ts +441 -0
  762. package/src/components/src/utils.ts +252 -0
  763. package/src/components/test-setup.ts +1 -0
  764. package/src/container-registry/babel.config.js +3 -0
  765. package/src/container-registry/src/common.tsx +16 -0
  766. package/src/container-registry/src/index.ts +1 -0
  767. package/src/container-registry/src/register.tsx +27 -0
  768. package/src/container-registry/src/register.web.tsx +16 -0
  769. package/src/container-registry/test-setup.ts +1 -0
  770. package/src/containers/src/a1-tabbed-block-list/index.tsx +115 -0
  771. package/src/containers/src/accordion-container/index.tsx +72 -0
  772. package/src/containers/src/index.ts +0 -0
  773. package/src/containers/src/rules-container/index.tsx +88 -0
  774. package/src/containers/src/tabbed-block-list/index.tsx +81 -0
  775. package/src/containers/src/tabbed-screen-container/index.tsx +51 -0
  776. package/src/containers/test-setup.ts +1 -0
  777. package/src/cookie-manager/src/cookie.ts +16 -0
  778. package/src/cookie-manager/src/cookie.web.ts +5 -0
  779. package/src/cookie-manager/src/index.ts +1 -0
  780. package/src/cookie-manager/test-setup.ts +1 -0
  781. package/src/discount/src/gift.ts +182 -0
  782. package/src/discount/src/index.ts +1 -0
  783. package/src/discount/src/utils.ts +164 -0
  784. package/src/discount/test-setup.ts +1 -0
  785. package/src/enhanced-fetch/src/enhanced-fetch-tests.js +711 -0
  786. package/src/enhanced-fetch/src/index.ts +245 -0
  787. package/src/event-emitter/src/index.ts +38 -0
  788. package/src/firebase/src/index.ts +2 -0
  789. package/src/firebase/src/lib/analytics.ts +33 -0
  790. package/src/firebase/src/lib/analyticsV2.ts +61 -0
  791. package/src/icons/src/declarations.d.ts +6 -0
  792. package/src/icons/src/icon-registry.tsx +81 -0
  793. package/src/icons/src/icon-registry.web.tsx +81 -0
  794. package/src/icons/src/icon-set.tsx +455 -0
  795. package/src/icons/src/index.ts +4 -0
  796. package/src/icons/src/remote-icon.tsx +46 -0
  797. package/src/icons/src/remote-icon.web.tsx +25 -0
  798. package/src/icons/src/remote-image-icon.tsx +66 -0
  799. package/src/icons/src/remote-image-icon.web.tsx +31 -0
  800. package/src/icons/src/svgs/account.tsx +17 -0
  801. package/src/icons/src/svgs/add-to-cart.tsx +49 -0
  802. package/src/icons/src/svgs/address.tsx +26 -0
  803. package/src/icons/src/svgs/afterpay.tsx +110 -0
  804. package/src/icons/src/svgs/apple.tsx +19 -0
  805. package/src/icons/src/svgs/back.tsx +10 -0
  806. package/src/icons/src/svgs/badge.tsx +19 -0
  807. package/src/icons/src/svgs/bag.tsx +27 -0
  808. package/src/icons/src/svgs/cake.tsx +13 -0
  809. package/src/icons/src/svgs/calendar.tsx +20 -0
  810. package/src/icons/src/svgs/cancel.tsx +20 -0
  811. package/src/icons/src/svgs/cart-cancel.tsx +35 -0
  812. package/src/icons/src/svgs/cart.tsx +14 -0
  813. package/src/icons/src/svgs/categories.tsx +13 -0
  814. package/src/icons/src/svgs/checked.tsx +18 -0
  815. package/src/icons/src/svgs/checkedCircle.tsx +26 -0
  816. package/src/icons/src/svgs/chevron-down.tsx +26 -0
  817. package/src/icons/src/svgs/chevron-left.tsx +13 -0
  818. package/src/icons/src/svgs/chevron-right.tsx +19 -0
  819. package/src/icons/src/svgs/chevron-up.tsx +27 -0
  820. package/src/icons/src/svgs/chevron.tsx +35 -0
  821. package/src/icons/src/svgs/circled-arrow.tsx +29 -0
  822. package/src/icons/src/svgs/clear.tsx +35 -0
  823. package/src/icons/src/svgs/clipboard.tsx +23 -0
  824. package/src/icons/src/svgs/close.tsx +26 -0
  825. package/src/icons/src/svgs/collection.tsx +32 -0
  826. package/src/icons/src/svgs/copy.tsx +31 -0
  827. package/src/icons/src/svgs/coupon-icon.tsx +23 -0
  828. package/src/icons/src/svgs/coupon.tsx +35 -0
  829. package/src/icons/src/svgs/crate.tsx +13 -0
  830. package/src/icons/src/svgs/cross.tsx +21 -0
  831. package/src/icons/src/svgs/deals.tsx +26 -0
  832. package/src/icons/src/svgs/discount.tsx +42 -0
  833. package/src/icons/src/svgs/dollar.tsx +33 -0
  834. package/src/icons/src/svgs/error.tsx +35 -0
  835. package/src/icons/src/svgs/eye.tsx +33 -0
  836. package/src/icons/src/svgs/eyeOff.tsx +35 -0
  837. package/src/icons/src/svgs/facebook.tsx +31 -0
  838. package/src/icons/src/svgs/favorite.tsx +79 -0
  839. package/src/icons/src/svgs/filter.tsx +24 -0
  840. package/src/icons/src/svgs/fragrances.tsx +55 -0
  841. package/src/icons/src/svgs/gift.tsx +23 -0
  842. package/src/icons/src/svgs/gifts.tsx +38 -0
  843. package/src/icons/src/svgs/goal-discount-filled.tsx +21 -0
  844. package/src/icons/src/svgs/goal-discount.tsx +24 -0
  845. package/src/icons/src/svgs/goal-locked.tsx +21 -0
  846. package/src/icons/src/svgs/goal-unlocked.tsx +34 -0
  847. package/src/icons/src/svgs/google-colorful.tsx +38 -0
  848. package/src/icons/src/svgs/google.tsx +28 -0
  849. package/src/icons/src/svgs/grooming.tsx +22 -0
  850. package/src/icons/src/svgs/hamburger.tsx +30 -0
  851. package/src/icons/src/svgs/heart.tsx +30 -0
  852. package/src/icons/src/svgs/help.tsx +22 -0
  853. package/src/icons/src/svgs/history.tsx +26 -0
  854. package/src/icons/src/svgs/home.tsx +21 -0
  855. package/src/icons/src/svgs/homes.svg +4 -0
  856. package/src/icons/src/svgs/info.tsx +19 -0
  857. package/src/icons/src/svgs/inline-error-icon.tsx +13 -0
  858. package/src/icons/src/svgs/inline-success-icon-double-checkmarks.tsx +15 -0
  859. package/src/icons/src/svgs/instagram.tsx +17 -0
  860. package/src/icons/src/svgs/lock.tsx +15 -0
  861. package/src/icons/src/svgs/mail.tsx +30 -0
  862. package/src/icons/src/svgs/mins.tsx +21 -0
  863. package/src/icons/src/svgs/minus.tsx +19 -0
  864. package/src/icons/src/svgs/more.tsx +13 -0
  865. package/src/icons/src/svgs/notification-bell.tsx +44 -0
  866. package/src/icons/src/svgs/notifications.tsx +21 -0
  867. package/src/icons/src/svgs/offers.tsx +11 -0
  868. package/src/icons/src/svgs/order-history.tsx +19 -0
  869. package/src/icons/src/svgs/order.tsx +32 -0
  870. package/src/icons/src/svgs/package-check.tsx +30 -0
  871. package/src/icons/src/svgs/pause.tsx +17 -0
  872. package/src/icons/src/svgs/pencil.tsx +17 -0
  873. package/src/icons/src/svgs/percent-circle.tsx +30 -0
  874. package/src/icons/src/svgs/play.tsx +13 -0
  875. package/src/icons/src/svgs/plus.tsx +12 -0
  876. package/src/icons/src/svgs/privacy.tsx +15 -0
  877. package/src/icons/src/svgs/product.tsx +14 -0
  878. package/src/icons/src/svgs/profile-circle.tsx +16 -0
  879. package/src/icons/src/svgs/profile-permission.tsx +17 -0
  880. package/src/icons/src/svgs/profile-tab-icon.tsx +11 -0
  881. package/src/icons/src/svgs/profile.tsx +16 -0
  882. package/src/icons/src/svgs/reward.tsx +22 -0
  883. package/src/icons/src/svgs/rewards.tsx +15 -0
  884. package/src/icons/src/svgs/sad-emoji.tsx +30 -0
  885. package/src/icons/src/svgs/search.tsx +31 -0
  886. package/src/icons/src/svgs/share.tsx +28 -0
  887. package/src/icons/src/svgs/shipping.tsx +20 -0
  888. package/src/icons/src/svgs/signout.tsx +15 -0
  889. package/src/icons/src/svgs/signup.tsx +26 -0
  890. package/src/icons/src/svgs/snap-mint.tsx +49 -0
  891. package/src/icons/src/svgs/sort.tsx +12 -0
  892. package/src/icons/src/svgs/speakerOff.tsx +40 -0
  893. package/src/icons/src/svgs/speakerOn.tsx +20 -0
  894. package/src/icons/src/svgs/stars.tsx +36 -0
  895. package/src/icons/src/svgs/success.tsx +21 -0
  896. package/src/icons/src/svgs/tag.tsx +25 -0
  897. package/src/icons/src/svgs/thumbs-up-outlined.tsx +36 -0
  898. package/src/icons/src/svgs/thumbs-up.tsx +11 -0
  899. package/src/icons/src/svgs/tick.tsx +23 -0
  900. package/src/icons/src/svgs/trash.tsx +21 -0
  901. package/src/icons/src/svgs/trending.tsx +36 -0
  902. package/src/icons/src/svgs/truck.tsx +30 -0
  903. package/src/icons/src/svgs/truecaller.tsx +44 -0
  904. package/src/icons/src/svgs/types.ts +0 -0
  905. package/src/icons/src/svgs/unchecked.tsx +13 -0
  906. package/src/icons/src/svgs/verified.tsx +23 -0
  907. package/src/icons/src/svgs/video-play.tsx +12 -0
  908. package/src/icons/src/svgs/volume-off.tsx +18 -0
  909. package/src/icons/src/svgs/volume.tsx +18 -0
  910. package/src/icons/src/svgs/way.tsx +14 -0
  911. package/src/icons/src/svgs/youtube.tsx +26 -0
  912. package/src/icons/src/utils.ts +53 -0
  913. package/src/icons/test-setup.ts +1 -0
  914. package/src/integrations/appbrew/analytics/app-users.ts +107 -0
  915. package/src/integrations/appbrew/analytics/config.dev.ts +10 -0
  916. package/src/integrations/appbrew/analytics/config.ts +10 -0
  917. package/src/integrations/appbrew/analytics/tracker.ts +136 -0
  918. package/src/integrations/appbrew/analytics/trackerV2.ts +154 -0
  919. package/src/integrations/appbrew/analytics/utils.ts +9 -0
  920. package/src/integrations/appbrew/analytics/webhook-tracker.ts +203 -0
  921. package/src/integrations/appbrew/currency/index.ts +1 -0
  922. package/src/integrations/appbrew/currency/provider.ts +211 -0
  923. package/src/integrations/appbrew/estimated-delivery-date/blocks/estimated-delivery-date.tsx +229 -0
  924. package/src/integrations/appbrew/estimated-delivery-date/index.ts +2 -0
  925. package/src/integrations/appbrew/estimated-delivery-date/provider.ts +45 -0
  926. package/src/integrations/appbrew/native-wishlist/src/index.ts +1 -0
  927. package/src/integrations/appbrew/native-wishlist/src/provider.ts +88 -0
  928. package/src/integrations/appbrew/src/index.ts +7 -0
  929. package/src/integrations/appbrew/src/lib/integrations-appbrew.spec.ts +7 -0
  930. package/src/integrations/appbrew/src/lib/integrations-appbrew.ts +3 -0
  931. package/src/integrations/color-swatch/src/index.ts +7 -0
  932. package/src/integrations/firebase-push/src/index.ts +1 -0
  933. package/src/integrations/firebase-push/src/push.ts +279 -0
  934. package/src/integrations/firebase-push/src/push.web.ts +15 -0
  935. package/src/integrations/gift/src/gift.ts +137 -0
  936. package/src/integrations/gift/src/index.ts +1 -0
  937. package/src/integrations/truefit/src/blocks/index.ts +1 -0
  938. package/src/integrations/truefit/src/blocks/truefit-widget.tsx +136 -0
  939. package/src/integrations/truefit/src/components/TfApp.tsx +159 -0
  940. package/src/integrations/truefit/src/components/TfWidget.tsx +241 -0
  941. package/src/integrations/truefit/src/constants.ts +5 -0
  942. package/src/integrations/truefit/src/index.ts +13 -0
  943. package/src/integrations/truefit/src/managers/authManager.ts +140 -0
  944. package/src/integrations/truefit/src/managers/messageManager.ts +122 -0
  945. package/src/integrations/truefit/src/managers/tokenManager.ts +52 -0
  946. package/src/integrations/truefit/src/orderApi.ts +43 -0
  947. package/src/integrations/truefit/src/register-blocks.ts +5 -0
  948. package/src/integrations/truefit/src/util/useWidgetEvent.ts +29 -0
  949. package/src/integrations/truefit/src/util/widgetEvents.ts +17 -0
  950. package/src/local-storage/src/icon-storage.ts +26 -0
  951. package/src/local-storage/src/index.ts +2 -0
  952. package/src/local-storage/src/storage.ts +56 -0
  953. package/src/local-storage/src/storage.web.ts +75 -0
  954. package/src/module-provider/src/index.ts +1 -0
  955. package/src/module-provider/src/module-provider.tsx +27 -0
  956. package/src/module-provider/src/provider.ts +0 -0
  957. package/src/okendo/src/blocks/components-v2.tsx +342 -0
  958. package/src/okendo/src/blocks/components-v2.types.ts +134 -0
  959. package/src/okendo/src/blocks/components.tsx +569 -0
  960. package/src/okendo/src/blocks/index.tsx +13 -0
  961. package/src/okendo/src/blocks/okendo-star-ratings-v2.tsx +102 -0
  962. package/src/okendo/src/blocks/okendo-star-ratings.tsx +77 -0
  963. package/src/okendo/src/blocks/review-aggregate-v2.tsx +493 -0
  964. package/src/okendo/src/blocks/review-aggregate.tsx +175 -0
  965. package/src/okendo/src/blocks/reviews-v2.tsx +352 -0
  966. package/src/okendo/src/blocks/reviews.tsx +144 -0
  967. package/src/okendo/src/hooks.tsx +489 -0
  968. package/src/okendo/src/index.ts +35 -0
  969. package/src/okendo/src/provider.ts +457 -0
  970. package/src/okendo/src/types.ts +355 -0
  971. package/src/okendo/src/utils.ts +32 -0
  972. package/src/orders-v4/src/icons/chevron-right-order-v4.tsx +18 -0
  973. package/src/orders-v4/src/icons/order-status.tsx +17 -0
  974. package/src/orders-v4/src/icons/payment-method.tsx +18 -0
  975. package/src/orders-v4/src/icons/payment-status.tsx +17 -0
  976. package/src/orders-v4/src/index.ts +7 -0
  977. package/src/orders-v4/src/layout-elements/order-cancel.tsx +60 -0
  978. package/src/orders-v4/src/layout-elements/order-date.tsx +39 -0
  979. package/src/orders-v4/src/layout-elements/order-fulfillment-details.tsx +408 -0
  980. package/src/orders-v4/src/layout-elements/order-number.tsx +35 -0
  981. package/src/orders-v4/src/layout-elements/order-payment-details-v4.tsx +190 -0
  982. package/src/orders-v4/src/layout-elements/order-preorder-date.tsx +16 -0
  983. package/src/orders-v4/src/layout-elements/order-product-compare-at-price.tsx +32 -0
  984. package/src/orders-v4/src/layout-elements/order-product-fulfillment-status.tsx +105 -0
  985. package/src/orders-v4/src/layout-elements/order-product-image-overlay.tsx +55 -0
  986. package/src/orders-v4/src/layout-elements/order-product-image.tsx +29 -0
  987. package/src/orders-v4/src/layout-elements/order-product-link.tsx +24 -0
  988. package/src/orders-v4/src/layout-elements/order-product-price.tsx +37 -0
  989. package/src/orders-v4/src/layout-elements/order-product-quantity.tsx +27 -0
  990. package/src/orders-v4/src/layout-elements/order-product-title.tsx +22 -0
  991. package/src/orders-v4/src/layout-elements/order-product-variant.tsx +24 -0
  992. package/src/orders-v4/src/layout-elements/order-reorder.tsx +97 -0
  993. package/src/orders-v4/src/layout-elements/order-return-and-exchange-v2.tsx +90 -0
  994. package/src/orders-v4/src/layout-elements/order-return-and-exchange.tsx +93 -0
  995. package/src/orders-v4/src/layout-elements/order-status-icon.tsx +14 -0
  996. package/src/orders-v4/src/layout-elements/order-status.tsx +33 -0
  997. package/src/orders-v4/src/layout-elements/order-total.tsx +19 -0
  998. package/src/orders-v4/src/layout-elements/order-track-delivery.tsx +67 -0
  999. package/src/orders-v4/src/layout-elements/order-view-details.tsx +23 -0
  1000. package/src/orders-v4/src/order-custom-attributes-v4.tsx +210 -0
  1001. package/src/orders-v4/src/order-details-footer-v4.tsx +51 -0
  1002. package/src/orders-v4/src/order-details-fulfillment-list.tsx +32 -0
  1003. package/src/orders-v4/src/order-details-header-v4.tsx +69 -0
  1004. package/src/orders-v4/src/order-footer.ts +75 -0
  1005. package/src/orders-v4/src/order-header.ts +75 -0
  1006. package/src/orders-v4/src/order-products-list.ts +68 -0
  1007. package/src/orders-v4/src/orders-list-v4.tsx +131 -0
  1008. package/src/orders-v4/src/register-icons.ts +12 -0
  1009. package/src/orders-v4/src/register-orders-v4-blocks.ts +15 -0
  1010. package/src/orders-v4/src/registry.tsx +115 -0
  1011. package/src/orders-v4/src/types.ts +122 -0
  1012. package/src/orders-v4/src/utils.ts +75 -0
  1013. package/src/orders-v4/test-setup.ts +1 -0
  1014. package/src/orders-v5/src/cancel-order-reason.tsx +282 -0
  1015. package/src/orders-v5/src/icons/package-cancel.tsx +18 -0
  1016. package/src/orders-v5/src/icons/package-success.tsx +18 -0
  1017. package/src/orders-v5/src/icons/package.tsx +17 -0
  1018. package/src/orders-v5/src/icons/shipping-cancel.tsx +19 -0
  1019. package/src/orders-v5/src/icons/shipping-pending.tsx +19 -0
  1020. package/src/orders-v5/src/icons/shipping-success.tsx +18 -0
  1021. package/src/orders-v5/src/icons/shipping.tsx +32 -0
  1022. package/src/orders-v5/src/image.tsx +39 -0
  1023. package/src/orders-v5/src/index.ts +2 -0
  1024. package/src/orders-v5/src/order-details/fulfillment-list/fulfillment-item.tsx +222 -0
  1025. package/src/orders-v5/src/order-details/fulfillment-list/fulfillment-list.tsx +123 -0
  1026. package/src/orders-v5/src/order-details/fulfillment-list/index.tsx +1 -0
  1027. package/src/orders-v5/src/order-details/fulfillment-list/line-item.tsx +213 -0
  1028. package/src/orders-v5/src/order-details/fulfillment-list/star-ratings.tsx +79 -0
  1029. package/src/orders-v5/src/order-details/fulfillment-list/status-indicator.tsx +208 -0
  1030. package/src/orders-v5/src/order-details/fulfillment-list/status.tsx +113 -0
  1031. package/src/orders-v5/src/order-details/header.tsx +280 -0
  1032. package/src/orders-v5/src/order-details/index.tsx +9 -0
  1033. package/src/orders-v5/src/order-details/order-cancel.tsx +323 -0
  1034. package/src/orders-v5/src/order-details/order-custom-attributes.tsx +237 -0
  1035. package/src/orders-v5/src/order-details/order-return-and-exchange.tsx +196 -0
  1036. package/src/orders-v5/src/order-details/order-return-info-text.tsx +114 -0
  1037. package/src/orders-v5/src/order-details/payment-summary.tsx +295 -0
  1038. package/src/orders-v5/src/order-details/reorder.tsx +142 -0
  1039. package/src/orders-v5/src/order-details/shipping-address.tsx +93 -0
  1040. package/src/orders-v5/src/orders-list/index.ts +1 -0
  1041. package/src/orders-v5/src/orders-list/order-item/fulfillment-item.tsx +138 -0
  1042. package/src/orders-v5/src/orders-list/order-item/heading.tsx +160 -0
  1043. package/src/orders-v5/src/orders-list/order-item/item.tsx +168 -0
  1044. package/src/orders-v5/src/orders-list/orders-list.tsx +159 -0
  1045. package/src/orders-v5/src/register-orders-v5-blocks.ts +29 -0
  1046. package/src/orders-v5/src/register-orders-v5-icons.ts +17 -0
  1047. package/src/orders-v5/src/utils.ts +539 -0
  1048. package/src/pdp-components/src/blocks/common/empty-metafield.tsx +66 -0
  1049. package/src/pdp-components/src/blocks/common/placeholder-block.tsx +134 -0
  1050. package/src/pdp-components/src/blocks/index.ts +2 -0
  1051. package/src/pdp-components/src/blocks/pdp-metafield-image/index.tsx +138 -0
  1052. package/src/pdp-components/src/blocks/pdp-metafield-rich-text/index.tsx +190 -0
  1053. package/src/pdp-components/src/index.ts +7 -0
  1054. package/src/plp-components/src/blocks/plp-banner/index.tsx +213 -0
  1055. package/src/plp-components/src/blocks/plp-description/index.tsx +86 -0
  1056. package/src/plp-components/src/blocks/plp-html-text.tsx +172 -0
  1057. package/src/plp-components/src/blocks/plp-image-carousel.tsx +203 -0
  1058. package/src/plp-components/src/blocks/plp-shopify-rich-text/index.tsx +169 -0
  1059. package/src/plp-components/src/blocks/plp-sub-category-navigation/index.tsx +336 -0
  1060. package/src/plp-components/src/blocks/plp-text-sub-category/index.tsx +297 -0
  1061. package/src/plp-components/src/blocks/plp-video/index.tsx +140 -0
  1062. package/src/plp-components/src/blocks/plp-youtube-video.tsx +113 -0
  1063. package/src/plp-components/src/common/empty-metafield.tsx +66 -0
  1064. package/src/plp-components/src/common/placeholder-block.tsx +134 -0
  1065. package/src/plp-components/src/index.ts +21 -0
  1066. package/src/plp-components/test-setup.ts +1 -0
  1067. package/src/post-purchase/hooks.ts +24 -0
  1068. package/src/post-purchase/src/basic-order-item.tsx +143 -0
  1069. package/src/post-purchase/src/cancel-order-reason.tsx +160 -0
  1070. package/src/post-purchase/src/cancel-order.tsx +75 -0
  1071. package/src/post-purchase/src/date.tsx +33 -0
  1072. package/src/post-purchase/src/fulfillment-list.tsx +477 -0
  1073. package/src/post-purchase/src/hooks.ts +1 -0
  1074. package/src/post-purchase/src/index.ts +13 -0
  1075. package/src/post-purchase/src/order-details-header.tsx +64 -0
  1076. package/src/post-purchase/src/order-item.tsx +217 -0
  1077. package/src/post-purchase/src/order-list.tsx +62 -0
  1078. package/src/post-purchase/src/payment-details.tsx +116 -0
  1079. package/src/post-purchase/src/register.ts +17 -0
  1080. package/src/post-purchase/src/shipping-address.tsx +68 -0
  1081. package/src/post-purchase/src/style.ts +30 -0
  1082. package/src/post-purchase/src/types.ts +66 -0
  1083. package/src/post-purchase/src/utils.ts +95 -0
  1084. package/src/post-purchase/test-setup.ts +1 -0
  1085. package/src/react-native-element-dropdown/src/assets/close.png +0 -0
  1086. package/src/react-native-element-dropdown/src/assets/down.png +0 -0
  1087. package/src/react-native-element-dropdown/src/components/Dropdown/index.tsx +686 -0
  1088. package/src/react-native-element-dropdown/src/components/Dropdown/model.ts +73 -0
  1089. package/src/react-native-element-dropdown/src/components/Dropdown/styles.ts +67 -0
  1090. package/src/react-native-element-dropdown/src/components/MultiSelect/index.tsx +812 -0
  1091. package/src/react-native-element-dropdown/src/components/MultiSelect/model.ts +76 -0
  1092. package/src/react-native-element-dropdown/src/components/MultiSelect/styles.ts +103 -0
  1093. package/src/react-native-element-dropdown/src/components/SelectCountry/index.tsx +77 -0
  1094. package/src/react-native-element-dropdown/src/components/SelectCountry/model.ts +7 -0
  1095. package/src/react-native-element-dropdown/src/components/SelectCountry/styles.ts +28 -0
  1096. package/src/react-native-element-dropdown/src/components/TextInput/index.tsx +104 -0
  1097. package/src/react-native-element-dropdown/src/components/TextInput/model.ts +20 -0
  1098. package/src/react-native-element-dropdown/src/components/TextInput/styles.ts +31 -0
  1099. package/src/react-native-element-dropdown/src/index.ts +15 -0
  1100. package/src/react-native-element-dropdown/src/toolkits/index.ts +25 -0
  1101. package/src/react-native-element-dropdown/src/toolkits/model.ts +5 -0
  1102. package/src/react-native-element-dropdown/src/useDeviceOrientation.ts +37 -0
  1103. package/src/react-utils/src/hooks.ts +176 -0
  1104. package/src/react-utils/src/index.ts +1 -0
  1105. package/src/rn-rulepilot/src/index.ts +4 -0
  1106. package/src/rn-rulepilot/src/services/builder.ts +92 -0
  1107. package/src/rn-rulepilot/src/services/evaluator.ts +176 -0
  1108. package/src/rn-rulepilot/src/services/logger.ts +6 -0
  1109. package/src/rn-rulepilot/src/services/mutator.ts +203 -0
  1110. package/src/rn-rulepilot/src/services/object-discovery.ts +52 -0
  1111. package/src/rn-rulepilot/src/services/rule-pilot.ts +172 -0
  1112. package/src/rn-rulepilot/src/services/validator.ts +206 -0
  1113. package/src/rn-rulepilot/src/types/error.ts +14 -0
  1114. package/src/rn-rulepilot/src/types/rule.ts +35 -0
  1115. package/src/rn-rulepilot/test-setup.ts +1 -0
  1116. package/src/shopify/src/cache.ts +134 -0
  1117. package/src/shopify/src/cart-utils.ts +295 -0
  1118. package/src/shopify/src/checkout-utils.ts +124 -0
  1119. package/src/shopify/src/discountv2-transformer.ts +322 -0
  1120. package/src/shopify/src/filter.ts +287 -0
  1121. package/src/shopify/src/index.ts +16 -0
  1122. package/src/shopify/src/lineItemsv2-transformer.ts +225 -0
  1123. package/src/shopify/src/orders.ts +521 -0
  1124. package/src/shopify/src/queries/cart.ts +320 -0
  1125. package/src/shopify/src/queries/catlog-fields.ts +187 -0
  1126. package/src/shopify/src/queries/index.ts +1 -0
  1127. package/src/shopify/src/queries/orders.ts +368 -0
  1128. package/src/shopify/src/queries/query-generators.ts +737 -0
  1129. package/src/shopify/src/queries.ts +474 -0
  1130. package/src/shopify/src/shopify-auth.ts +410 -0
  1131. package/src/shopify/src/shopify-cart.ts +1298 -0
  1132. package/src/shopify/src/shopify-catlog-generic.ts +1168 -0
  1133. package/src/shopify/src/shopify-checkout.ts +385 -0
  1134. package/src/shopify/src/shopify-currency.ts +185 -0
  1135. package/src/shopify/src/shopify-customer-cart.ts +1246 -0
  1136. package/src/shopify/src/shopify-search-v2.ts +1234 -0
  1137. package/src/shopify/src/shopify-search.ts +184 -0
  1138. package/src/shopify/src/transformers.ts +715 -0
  1139. package/src/shopify/src/utils.ts +300 -0
  1140. package/src/shopify-types/src/generated-types/checkout/graphql-operations.ts +8767 -0
  1141. package/src/shopify-types/src/generated-types/customer-accounts/operations.ts +5969 -0
  1142. package/src/shopify-types/src/generated-types/graphql-operations.ts +9559 -0
  1143. package/src/shopify-types/src/index.ts +59 -0
  1144. package/src/shopify-types/src/schema/customerAccountsSchema.json +28093 -0
  1145. package/src/shopify-types/src/types.ts +59 -0
  1146. package/src/shopify-types/test-setup.ts +1 -0
  1147. package/src/state/src/index.ts +22 -0
  1148. package/src/state/src/lib/address.ts +248 -0
  1149. package/src/state/src/lib/analytics/actions/app.ts +30 -0
  1150. package/src/state/src/lib/analytics/actions/cart-wishlist.ts +192 -0
  1151. package/src/state/src/lib/analytics/actions/device.ts +28 -0
  1152. package/src/state/src/lib/analytics/actions/geo.ts +58 -0
  1153. package/src/state/src/lib/analytics/actions/index.ts +9 -0
  1154. package/src/state/src/lib/analytics/actions/order.ts +20 -0
  1155. package/src/state/src/lib/analytics/actions/product-collection.ts +119 -0
  1156. package/src/state/src/lib/analytics/actions/session.ts +74 -0
  1157. package/src/state/src/lib/analytics/actions/user.ts +55 -0
  1158. package/src/state/src/lib/analytics/actions/utm-params.ts +68 -0
  1159. package/src/state/src/lib/analytics/index.ts +147 -0
  1160. package/src/state/src/lib/analytics/utils.ts +173 -0
  1161. package/src/state/src/lib/autofill-client.ts +42 -0
  1162. package/src/state/src/lib/bundle.ts +228 -0
  1163. package/src/state/src/lib/bundleV2.ts +110 -0
  1164. package/src/state/src/lib/cart.ts +1779 -0
  1165. package/src/state/src/lib/checkout.ts +26 -0
  1166. package/src/state/src/lib/collection-metafields.ts +118 -0
  1167. package/src/state/src/lib/collections.ts +636 -0
  1168. package/src/state/src/lib/config.ts +437 -0
  1169. package/src/state/src/lib/constants.ts +30 -0
  1170. package/src/state/src/lib/device.ts +90 -0
  1171. package/src/state/src/lib/discounts.ts +435 -0
  1172. package/src/state/src/lib/estimated-delivery-date.ts +73 -0
  1173. package/src/state/src/lib/filter.ts +343 -0
  1174. package/src/state/src/lib/gift-wrap.ts +184 -0
  1175. package/src/state/src/lib/google-signin.ts +3 -0
  1176. package/src/state/src/lib/google-signin.web.ts +1 -0
  1177. package/src/state/src/lib/hooks/block.ts +136 -0
  1178. package/src/state/src/lib/hooks/cart.ts +233 -0
  1179. package/src/state/src/lib/hooks/common.ts +34 -0
  1180. package/src/state/src/lib/hooks/constants.ts +4 -0
  1181. package/src/state/src/lib/hooks/deeplink.ts +190 -0
  1182. package/src/state/src/lib/hooks/deeplink.web.ts +4 -0
  1183. package/src/state/src/lib/hooks/estimated-delivery-date.ts +5 -0
  1184. package/src/state/src/lib/hooks/filter.ts +37 -0
  1185. package/src/state/src/lib/hooks/hooks.ts +843 -0
  1186. package/src/state/src/lib/hooks/index.ts +29 -0
  1187. package/src/state/src/lib/hooks/localization.ts +213 -0
  1188. package/src/state/src/lib/hooks/metafield.ts +301 -0
  1189. package/src/state/src/lib/hooks/modal.ts +68 -0
  1190. package/src/state/src/lib/hooks/module.ts +31 -0
  1191. package/src/state/src/lib/hooks/order.ts +23 -0
  1192. package/src/state/src/lib/hooks/product.ts +202 -0
  1193. package/src/state/src/lib/hooks/quantity-restriction.ts +51 -0
  1194. package/src/state/src/lib/hooks/reviews.ts +27 -0
  1195. package/src/state/src/lib/hooks/rewards.ts +69 -0
  1196. package/src/state/src/lib/hooks/route.ts +90 -0
  1197. package/src/state/src/lib/hooks/screen.ts +83 -0
  1198. package/src/state/src/lib/hooks/search.ts +209 -0
  1199. package/src/state/src/lib/hooks/settings.ts +20 -0
  1200. package/src/state/src/lib/hooks/shipping-address.ts +5 -0
  1201. package/src/state/src/lib/hooks/shop.ts +5 -0
  1202. package/src/state/src/lib/hooks/shopify-query.ts +40 -0
  1203. package/src/state/src/lib/hooks/sizing.ts +13 -0
  1204. package/src/state/src/lib/hooks/title.ts +61 -0
  1205. package/src/state/src/lib/hooks/variant-selector.ts +493 -0
  1206. package/src/state/src/lib/hooks/video.ts +81 -0
  1207. package/src/state/src/lib/http-client/index.ts +132 -0
  1208. package/src/state/src/lib/integrations/analytics.ts +14 -0
  1209. package/src/state/src/lib/integrations/gift.ts +102 -0
  1210. package/src/state/src/lib/integrations/review.ts +212 -0
  1211. package/src/state/src/lib/kiwi-sizing.ts +62 -0
  1212. package/src/state/src/lib/localization.ts +524 -0
  1213. package/src/state/src/lib/localization.web.ts +154 -0
  1214. package/src/state/src/lib/metafield.ts +305 -0
  1215. package/src/state/src/lib/modal.ts +177 -0
  1216. package/src/state/src/lib/modules.ts +149 -0
  1217. package/src/state/src/lib/offers.ts +0 -0
  1218. package/src/state/src/lib/onboarding.ts +67 -0
  1219. package/src/state/src/lib/order.ts +229 -0
  1220. package/src/state/src/lib/orders.ts +199 -0
  1221. package/src/state/src/lib/products.ts +1072 -0
  1222. package/src/state/src/lib/promotions.ts +73 -0
  1223. package/src/state/src/lib/reward-program.ts +86 -0
  1224. package/src/state/src/lib/rewards.ts +106 -0
  1225. package/src/state/src/lib/route.ts +586 -0
  1226. package/src/state/src/lib/route.web.ts +52 -0
  1227. package/src/state/src/lib/screen.ts +106 -0
  1228. package/src/state/src/lib/search.ts +576 -0
  1229. package/src/state/src/lib/shop.ts +74 -0
  1230. package/src/state/src/lib/sizing-chart.ts +88 -0
  1231. package/src/state/src/lib/splash-platform.ts +59 -0
  1232. package/src/state/src/lib/splash-platform.web.ts +62 -0
  1233. package/src/state/src/lib/splash.ts +497 -0
  1234. package/src/state/src/lib/store.ts +138 -0
  1235. package/src/state/src/lib/subscriptions.ts +589 -0
  1236. package/src/state/src/lib/template.ts +42 -0
  1237. package/src/state/src/lib/types.ts +11 -0
  1238. package/src/state/src/lib/user-notifications.ts +153 -0
  1239. package/src/state/src/lib/user.ts +1721 -0
  1240. package/src/state/src/lib/utils.ts +586 -0
  1241. package/src/state/src/lib/wishlist.ts +290 -0
  1242. package/src/types/src/app-discounts.ts +118 -0
  1243. package/src/types/src/app-themes.ts +7 -0
  1244. package/src/types/src/blocks-definition/account.def.ts +535 -0
  1245. package/src/types/src/blocks-definition/announcement-carousel.def.ts +201 -0
  1246. package/src/types/src/blocks-definition/announcement-strip.def.ts +162 -0
  1247. package/src/types/src/blocks-definition/announcement-ticker.def.ts +290 -0
  1248. package/src/types/src/blocks-definition/app-bar.def.ts +323 -0
  1249. package/src/types/src/blocks-definition/apply-coupon.def.ts +363 -0
  1250. package/src/types/src/blocks-definition/cart-list.def.ts +445 -0
  1251. package/src/types/src/blocks-definition/change-password.def.ts +229 -0
  1252. package/src/types/src/blocks-definition/chips-navigation.def.ts +405 -0
  1253. package/src/types/src/blocks-definition/collection-list.def.ts +415 -0
  1254. package/src/types/src/blocks-definition/common.def.ts +793 -0
  1255. package/src/types/src/blocks-definition/content.def.ts +2051 -0
  1256. package/src/types/src/blocks-definition/countdown-banner.def.ts +537 -0
  1257. package/src/types/src/blocks-definition/empty-block.def.ts +212 -0
  1258. package/src/types/src/blocks-definition/firework.def.ts +128 -0
  1259. package/src/types/src/blocks-definition/image-banner.def.ts +634 -0
  1260. package/src/types/src/blocks-definition/image-collage.def.ts +505 -0
  1261. package/src/types/src/blocks-definition/image-compare.def.ts +412 -0
  1262. package/src/types/src/blocks-definition/image-list.def.ts +654 -0
  1263. package/src/types/src/blocks-definition/image-marquee.def.ts +526 -0
  1264. package/src/types/src/blocks-definition/index.ts +50 -0
  1265. package/src/types/src/blocks-definition/metafield-image-compare.def.ts +394 -0
  1266. package/src/types/src/blocks-definition/micro-contexts/product-card-v2.ts +2481 -0
  1267. package/src/types/src/blocks-definition/past-searches.def.ts +352 -0
  1268. package/src/types/src/blocks-definition/payment-details.def.ts +303 -0
  1269. package/src/types/src/blocks-definition/previously-ordered-products.def.ts +421 -0
  1270. package/src/types/src/blocks-definition/product-card.def.ts +416 -0
  1271. package/src/types/src/blocks-definition/product-grid.def.ts +657 -0
  1272. package/src/types/src/blocks-definition/product-hotspot.def.ts +401 -0
  1273. package/src/types/src/blocks-definition/product-list.def.ts +944 -0
  1274. package/src/types/src/blocks-definition/promo-carousel.def.ts +645 -0
  1275. package/src/types/src/blocks-definition/recent-orders.def.ts +596 -0
  1276. package/src/types/src/blocks-definition/recently-viewed-products.def.ts +412 -0
  1277. package/src/types/src/blocks-definition/rewards-summary.def.ts +627 -0
  1278. package/src/types/src/blocks-definition/rich-text-block.def.ts +303 -0
  1279. package/src/types/src/blocks-definition/search-suggestions.def.ts +228 -0
  1280. package/src/types/src/blocks-definition/sign-in.def.ts +555 -0
  1281. package/src/types/src/blocks-definition/single-level-navigation.def.ts +303 -0
  1282. package/src/types/src/blocks-definition/social-sign-in.def.ts +164 -0
  1283. package/src/types/src/blocks-definition/sort-and-filter.def.ts +881 -0
  1284. package/src/types/src/blocks-definition/tabbed-product-collection.def.ts +665 -0
  1285. package/src/types/src/blocks-definition/text-list.def.ts +280 -0
  1286. package/src/types/src/blocks-definition/two-level-navigation.def.ts +527 -0
  1287. package/src/types/src/blocks-definition/types.ts +33 -0
  1288. package/src/types/src/blocks-definition/video-banner.def.ts +483 -0
  1289. package/src/types/src/blocks-definition/video-carousel.def.ts +611 -0
  1290. package/src/types/src/blocks-definition/video-list.def.ts +280 -0
  1291. package/src/types/src/blocks-definition/view-coupons.def.ts +382 -0
  1292. package/src/types/src/blocks-definition/wishlisted-items.def.ts +530 -0
  1293. package/src/types/src/blocks-definition/youtube-embed.def.ts +154 -0
  1294. package/src/types/src/blocks.ts +3981 -0
  1295. package/src/types/src/category-navigation.ts +16 -0
  1296. package/src/types/src/common.ts +187 -0
  1297. package/src/types/src/config.ts +705 -0
  1298. package/src/types/src/countries.ts +2970 -0
  1299. package/src/types/src/currencies.ts +1217 -0
  1300. package/src/types/src/data.ts +257 -0
  1301. package/src/types/src/feature-flags.ts +59 -0
  1302. package/src/types/src/filter.ts +102 -0
  1303. package/src/types/src/index.ts +35 -0
  1304. package/src/types/src/integrations/analytics.ts +252 -0
  1305. package/src/types/src/integrations/attentive.ts +88 -0
  1306. package/src/types/src/integrations/automated-notifications.ts +87 -0
  1307. package/src/types/src/integrations/cart.ts +81 -0
  1308. package/src/types/src/integrations/edd.ts +35 -0
  1309. package/src/types/src/integrations/gift.ts +130 -0
  1310. package/src/types/src/integrations/index.ts +14 -0
  1311. package/src/types/src/integrations/loyalty-lion.ts +8 -0
  1312. package/src/types/src/integrations/otp-signin.ts +112 -0
  1313. package/src/types/src/integrations/review.ts +50 -0
  1314. package/src/types/src/integrations/rewards-v2.ts +5 -0
  1315. package/src/types/src/integrations/social-signin.ts +12 -0
  1316. package/src/types/src/integrations/subscriptions.ts +175 -0
  1317. package/src/types/src/integrations/wishlist.ts +86 -0
  1318. package/src/types/src/integrations/yotpo-rewards.ts +37 -0
  1319. package/src/types/src/internationalization.ts +170 -0
  1320. package/src/types/src/metafield.ts +5 -0
  1321. package/src/types/src/modules.ts +566 -0
  1322. package/src/types/src/navigation.ts +22 -0
  1323. package/src/types/src/one-link.ts +20 -0
  1324. package/src/types/src/order.ts +102 -0
  1325. package/src/types/src/permissions.ts +9 -0
  1326. package/src/types/src/product-update.ts +32 -0
  1327. package/src/types/src/product.ts +268 -0
  1328. package/src/types/src/push-notifications.ts +11 -0
  1329. package/src/types/src/quantity-selector.ts +5 -0
  1330. package/src/types/src/screen.ts +5 -0
  1331. package/src/types/src/search.ts +137 -0
  1332. package/src/types/src/searchtap.ts +97 -0
  1333. package/src/types/src/settings.ts +54 -0
  1334. package/src/types/src/shop.ts +13 -0
  1335. package/src/types/src/storage.ts +31 -0
  1336. package/src/types/src/style.ts +221 -0
  1337. package/src/types/src/theme.ts +54 -0
  1338. package/src/types/src/utils.ts +153 -0
  1339. package/src/types/src/variant-selector.ts +218 -0
  1340. package/src/ui-builder/src/components/atoms/accordian.tsx +110 -0
  1341. package/src/ui-builder/src/components/atoms/block-section/block-section.tsx +128 -0
  1342. package/src/ui-builder/src/components/atoms/block-section/hook.ts +251 -0
  1343. package/src/ui-builder/src/components/atoms/block-section/index.ts +3 -0
  1344. package/src/ui-builder/src/components/atoms/block-section/nav-button.tsx +101 -0
  1345. package/src/ui-builder/src/components/atoms/block-section/section.tsx +76 -0
  1346. package/src/ui-builder/src/components/atoms/block-section/types.ts +22 -0
  1347. package/src/ui-builder/src/components/atoms/box.tsx +77 -0
  1348. package/src/ui-builder/src/components/atoms/box.web.tsx +68 -0
  1349. package/src/ui-builder/src/components/atoms/button.tsx +260 -0
  1350. package/src/ui-builder/src/components/atoms/flex.tsx +44 -0
  1351. package/src/ui-builder/src/components/atoms/header/header-image.tsx +142 -0
  1352. package/src/ui-builder/src/components/atoms/header/header-link-button.tsx +57 -0
  1353. package/src/ui-builder/src/components/atoms/header/header-text.tsx +49 -0
  1354. package/src/ui-builder/src/components/atoms/header/header.tsx +179 -0
  1355. package/src/ui-builder/src/components/atoms/header/index.ts +2 -0
  1356. package/src/ui-builder/src/components/atoms/header/types.ts +63 -0
  1357. package/src/ui-builder/src/components/atoms/header/utils.ts +28 -0
  1358. package/src/ui-builder/src/components/atoms/helper/button-utils.ts +13 -0
  1359. package/src/ui-builder/src/components/atoms/helper/button-utils.web.ts +8 -0
  1360. package/src/ui-builder/src/components/atoms/html-rich-text.tsx +47 -0
  1361. package/src/ui-builder/src/components/atoms/icon.tsx +12 -0
  1362. package/src/ui-builder/src/components/atoms/image/image1.tsx +359 -0
  1363. package/src/ui-builder/src/components/atoms/image/image1.web.tsx +276 -0
  1364. package/src/ui-builder/src/components/atoms/image/types.ts +12 -0
  1365. package/src/ui-builder/src/components/atoms/image.tsx +33 -0
  1366. package/src/ui-builder/src/components/atoms/index.tsx +17 -0
  1367. package/src/ui-builder/src/components/atoms/link.tsx +34 -0
  1368. package/src/ui-builder/src/components/atoms/list.tsx +24 -0
  1369. package/src/ui-builder/src/components/atoms/native-video.tsx +102 -0
  1370. package/src/ui-builder/src/components/atoms/native-video.web.tsx +44 -0
  1371. package/src/ui-builder/src/components/atoms/rich-text.tsx +147 -0
  1372. package/src/ui-builder/src/components/atoms/spacer.tsx +11 -0
  1373. package/src/ui-builder/src/components/atoms/text.tsx +60 -0
  1374. package/src/ui-builder/src/components/atoms/vertical-list.tsx +177 -0
  1375. package/src/ui-builder/src/components/atoms/youtube-video.tsx +99 -0
  1376. package/src/ui-builder/src/components/blocks/content.tsx +32 -0
  1377. package/src/ui-builder/src/components/index.ts +3 -0
  1378. package/src/ui-builder/src/components/layout-elements/accordion.tsx +27 -0
  1379. package/src/ui-builder/src/components/layout-elements/app-logo.tsx +39 -0
  1380. package/src/ui-builder/src/components/layout-elements/html-rich-text.tsx +16 -0
  1381. package/src/ui-builder/src/components/layout-elements/image.tsx +118 -0
  1382. package/src/ui-builder/src/components/layout-elements/image.web.tsx +62 -0
  1383. package/src/ui-builder/src/components/layout-elements/index.ts +12 -0
  1384. package/src/ui-builder/src/components/layout-elements/link-button.tsx +37 -0
  1385. package/src/ui-builder/src/components/layout-elements/link.tsx +35 -0
  1386. package/src/ui-builder/src/components/layout-elements/list.tsx +16 -0
  1387. package/src/ui-builder/src/components/layout-elements/rich-text.tsx +29 -0
  1388. package/src/ui-builder/src/components/layout-elements/spacer.tsx +10 -0
  1389. package/src/ui-builder/src/components/layout-elements/text.tsx +29 -0
  1390. package/src/ui-builder/src/components/layout-elements/video.tsx +59 -0
  1391. package/src/ui-builder/src/components/molecules/accordion.tsx +120 -0
  1392. package/src/ui-builder/src/components/molecules/rich-text.tsx +132 -0
  1393. package/src/ui-builder/src/components/molecules/rich-text.web.tsx +82 -0
  1394. package/src/ui-builder/src/components/registery.tsx +404 -0
  1395. package/src/ui-builder/src/helper-elements/cta.tsx +79 -0
  1396. package/src/ui-builder/src/helper-elements/faq.tsx +143 -0
  1397. package/src/ui-builder/src/helper-elements/html-rich-text.tsx +59 -0
  1398. package/src/ui-builder/src/helper-elements/index.tsx +76 -0
  1399. package/src/ui-builder/src/helper-elements/link-button.tsx +74 -0
  1400. package/src/ui-builder/src/helper-elements/media-list-accordian.tsx +230 -0
  1401. package/src/ui-builder/src/helper-elements/media-list.tsx +154 -0
  1402. package/src/ui-builder/src/helper-elements/media.tsx +78 -0
  1403. package/src/ui-builder/src/helper-elements/rich-text-accordion.tsx +148 -0
  1404. package/src/ui-builder/src/helper-elements/rich-text-list.tsx +134 -0
  1405. package/src/ui-builder/src/helper-elements/rich-text.tsx +61 -0
  1406. package/src/ui-builder/src/helper-elements/testimonials.tsx +149 -0
  1407. package/src/ui-builder/src/helper-elements/text.tsx +52 -0
  1408. package/src/ui-builder/src/helper-elements/video-list.tsx +137 -0
  1409. package/src/ui-builder/src/helper-elements/video.tsx +44 -0
  1410. package/src/ui-builder/src/helper-elements/youtube-video.tsx +69 -0
  1411. package/src/ui-builder/src/index.ts +42 -0
  1412. package/src/ui-builder/src/style-utils.ts +127 -0
  1413. package/src/ui-builder/src/types.ts +67 -0
  1414. package/src/ui-builder/src/utils.ts +89 -0
  1415. package/src/utils/src/cache.utils.ts +64 -0
  1416. package/src/utils/src/common.utils.ts +47 -0
  1417. package/src/utils/src/http-client.ts +258 -0
  1418. package/src/utils/src/index.ts +5 -0
  1419. package/src/utils/src/slack-client.ts +8 -0
  1420. package/src/utils/src/telemetry-client.ts +69 -0
  1421. package/src/utils.ts +30 -0
  1422. package/tsconfig.paths.json +130 -0
@@ -0,0 +1,3981 @@
1
+ import { ReactElement } from 'react'
2
+ import { z } from 'zod'
3
+ import {
4
+ baseIconStyleSchema,
5
+ baseImageStyleSchema,
6
+ baseStyleSchema,
7
+ baseTextStyleSchema,
8
+ fontWeightSchema,
9
+ } from './style'
10
+ import { EnhancedProduct } from './product'
11
+ import { AsyncData } from './utils'
12
+ import {
13
+ blockSchema,
14
+ imageItemSchema,
15
+ linkSchema,
16
+ richTextStyleSchema,
17
+ videoItemSchema,
18
+ } from './common'
19
+ import { imageBannerDefinition } from './blocks-definition'
20
+
21
+ export interface BaseBlockProps {
22
+ componentId: string
23
+ instanceId: string
24
+ screenId: string
25
+ setDynamicFooter?: (element: ReactElement) => void
26
+ index: number
27
+ length: number
28
+ }
29
+
30
+ export interface BaseComponentProps<
31
+ Style = Record<string, any>,
32
+ Source = Record<string, any>,
33
+ Options = Record<string, any>
34
+ > {
35
+ style: Style
36
+ source: Source
37
+ options: Options
38
+ }
39
+
40
+ export interface Metafield {
41
+ namespace: string
42
+ key: string
43
+ reference?: string
44
+ }
45
+
46
+ export interface TransformerArg<
47
+ T extends BaseComponentProps = BaseComponentProps
48
+ > {
49
+ metafields: Record<string, any>
50
+ settings: Pick<T, 'source' | 'options'>
51
+ productHandle?: string
52
+ blockData: {
53
+ screenId: string
54
+ componentId: string
55
+ instanceId: string
56
+ }
57
+ product?: AsyncData<EnhancedProduct>
58
+ }
59
+
60
+ export interface RouteProps {
61
+ collectionHandle?: string
62
+ productId?: string
63
+ }
64
+ export interface Link {
65
+ kind: string
66
+ value: string
67
+ params?: Record<string, any>
68
+ external?: boolean
69
+ }
70
+
71
+ export interface Image {
72
+ image: string
73
+ link: Link
74
+ heading: string
75
+ caption: string
76
+ text: string
77
+ subHeading: string
78
+ }
79
+
80
+ export interface Video {
81
+ link: Link
82
+ links: Link[]
83
+ video: string
84
+ hidden: boolean
85
+ src: string
86
+ kind: string
87
+ meta?: {
88
+ width: number
89
+ height: number
90
+ }
91
+ }
92
+ export interface Collection {
93
+ collectionId: string
94
+ collectionName: string
95
+ image: string
96
+ }
97
+
98
+ export const appBarBlockSchema = blockSchema.extend({
99
+ style: z.object({
100
+ badge: baseStyleSchema.optional(),
101
+ logo: baseStyleSchema.optional(),
102
+ heading: baseTextStyleSchema.optional(),
103
+ iconStyle: baseIconStyleSchema.optional(),
104
+ backIconStyle: baseIconStyleSchema.optional(),
105
+ cartIconStyle: baseIconStyleSchema.optional(),
106
+ searchIconStyle: baseIconStyleSchema.optional(),
107
+ profileIconStyle: baseIconStyleSchema.optional(),
108
+ root: baseStyleSchema.optional(),
109
+ }),
110
+ source: z.object({
111
+ logoSrc: z.any(),
112
+ }),
113
+ options: z.object({
114
+ logo: z.boolean(),
115
+ backIcon: z.boolean(),
116
+ cart: z.boolean(),
117
+ search: z.boolean(),
118
+ title: z.union([z.string(), z.boolean()]),
119
+ profile: z.boolean(),
120
+ wishlist: z.boolean().optional(),
121
+ }),
122
+ })
123
+
124
+ export const announcementStripBlockSchema = blockSchema.extend({
125
+ source: z.object({
126
+ text: z.string(),
127
+ link: z
128
+ .object({
129
+ kind: z.string(),
130
+ value: z.string(),
131
+ })
132
+ .optional(),
133
+ }),
134
+ style: z.object({
135
+ root: baseStyleSchema,
136
+ icon: baseIconStyleSchema,
137
+ text: baseTextStyleSchema,
138
+ }),
139
+ options: z
140
+ .object({
141
+ icon: z.boolean(),
142
+ })
143
+ .optional(),
144
+ })
145
+
146
+ export const productCardBlockSchema = z.object({
147
+ componentId: z.string(),
148
+ instanceId: z.string(),
149
+ source: z.object({
150
+ productHandle: z.string(),
151
+ heading: z.string().optional(),
152
+ }),
153
+ layout: z.any().optional(),
154
+ style: z.object({
155
+ root: baseStyleSchema,
156
+ product: z.object({
157
+ root: z.object({
158
+ backgroundColor: z.string(),
159
+ shadowColor: z.string().optional(),
160
+ shadowOffset: z.object({ height: z.number(), width: z.number() }),
161
+ shadowOpacity: z.number().optional(),
162
+ shadowRadius: z.number().optional(),
163
+ elevation: z.number().optional(),
164
+ borderColor: z.string().optional(),
165
+ borderWidth: z.number().optional(),
166
+ borderStyle: z.string().optional(),
167
+ borderRadius: z.number().optional(),
168
+ }),
169
+ title: baseTextStyleSchema.optional(),
170
+ description: baseTextStyleSchema.optional(),
171
+ rating: z.object({
172
+ root: baseStyleSchema.optional(),
173
+ icon: baseIconStyleSchema,
174
+ ratingCount: baseTextStyleSchema,
175
+ }),
176
+ price: baseTextStyleSchema.optional(),
177
+ icon: baseIconStyleSchema.optional(),
178
+ priceComparison: z.object({
179
+ root: z.object({ backgroundColor: z.string(), alignSelf: z.string() }),
180
+ compareAtPrice: z.object({
181
+ color: z.string(),
182
+ fontSize: z.number(),
183
+ fontWeight: fontWeightSchema,
184
+ }),
185
+ discountLabel: z.object({
186
+ color: z.string(),
187
+ fontWeight: fontWeightSchema,
188
+ fontSize: z.number(),
189
+ }),
190
+ }),
191
+ priceContainer: baseStyleSchema,
192
+
193
+ addToCartButton: z.object({
194
+ root: baseStyleSchema.optional(),
195
+ text: baseTextStyleSchema.optional(),
196
+ }),
197
+ }),
198
+ heading: z.object({
199
+ root: baseStyleSchema,
200
+ text: baseTextStyleSchema,
201
+ }),
202
+ productV2: z.record(z.string(), z.any()).optional(),
203
+ }),
204
+ options: z.object({
205
+ productV2: z.record(z.string(), z.any()).optional(),
206
+ }),
207
+ background: z.any().optional(),
208
+ })
209
+ const productStyleSchema = z.object({
210
+ root: z.object({
211
+ backgroundColor: z.string(),
212
+ shadowColor: z.string().optional(),
213
+ shadowOffset: z.object({ height: z.number(), width: z.number() }),
214
+ shadowOpacity: z.number().optional(),
215
+ shadowRadius: z.number().optional(),
216
+ elevation: z.number().optional(),
217
+ borderColor: z.string().optional(),
218
+ borderWidth: z.number().optional(),
219
+ borderStyle: z.string().optional(),
220
+ borderRadius: z.number().optional(),
221
+ }),
222
+ title: z.object({
223
+ color: z.string(),
224
+ fontSize: z.number(),
225
+ fontWeight: fontWeightSchema,
226
+ }),
227
+ icon: baseIconStyleSchema,
228
+ ratingCount: baseTextStyleSchema,
229
+ price: z.object({
230
+ color: z.string(),
231
+ fontSize: z.number(),
232
+ fontWeight: z.string(),
233
+ }),
234
+ compareAtPrice: z.object({
235
+ color: z.string(),
236
+ fontSize: z.number(),
237
+ fontWeight: fontWeightSchema,
238
+ }),
239
+ discountLabel: z.object({
240
+ color: z.string(),
241
+ fontWeight: fontWeightSchema,
242
+ fontSize: z.number(),
243
+ }),
244
+ addToCartButton: z.object({
245
+ root: z.object({ borderRadius: z.number() }),
246
+ text: z.object({
247
+ color: z.string(),
248
+ fontSize: z.number(),
249
+ fontWeight: fontWeightSchema,
250
+ }),
251
+ }),
252
+ })
253
+ export const productItemsVisibilitySchema = z.object({
254
+ priceBox: z.boolean(),
255
+ ratingsBox: z.boolean(),
256
+ image: z.boolean(),
257
+ title: z.boolean(),
258
+ addToCart: z.boolean(),
259
+ discountLabel: z.boolean(),
260
+ })
261
+ export const hotPositionsSchema = z.enum([
262
+ 'top-left',
263
+ 'top-right',
264
+ 'bottom-left',
265
+ 'bottom-right',
266
+ ])
267
+ export const productGridBlockSchema = z.object({
268
+ componentId: z.string(),
269
+ instanceId: z.string(),
270
+ source: z.object({
271
+ title: z.string().optional(),
272
+ subTitle: z.string().optional(),
273
+ collectionId: z.string(),
274
+ showItemCount: z.number(),
275
+ bottomLinkText: z.string(),
276
+ topLinkText: z.string().optional(),
277
+ fetchWithSearch: z.boolean().optional(),
278
+ skeletonCount: z.number().optional(),
279
+ }),
280
+ style: z.object({
281
+ root: baseStyleSchema.optional(),
282
+ heading: baseTextStyleSchema.extend({
283
+ kind: z.string().optional(),
284
+ }),
285
+ productV2: z.record(z.string(), z.any()).optional(),
286
+ product: z.object({
287
+ root: baseStyleSchema,
288
+ title: baseTextStyleSchema,
289
+ icon: baseIconStyleSchema,
290
+ ratingCount: baseTextStyleSchema,
291
+ price: baseTextStyleSchema,
292
+ compareAtPrice: baseTextStyleSchema,
293
+ discountLabel: baseTextStyleSchema,
294
+ addToCartButton: z.object({
295
+ root: baseStyleSchema,
296
+ text: baseTextStyleSchema,
297
+ }),
298
+ variantSelector: z
299
+ .object({
300
+ root: baseStyleSchema,
301
+ variant: z.object({
302
+ selected: z.object({}),
303
+ unselected: z.object({}),
304
+ }),
305
+ })
306
+ .optional(),
307
+ imageBox: baseStyleSchema,
308
+ contentBox: baseStyleSchema,
309
+ }),
310
+ list: z
311
+ .object({
312
+ itemGap: z.number().optional(),
313
+ root: baseStyleSchema.optional(),
314
+ wrapper: baseStyleSchema.optional(),
315
+ })
316
+ .optional(),
317
+ bottomLink: z.object({
318
+ color: z.string(),
319
+ fontSize: z.number(),
320
+ fontWeight: fontWeightSchema,
321
+ container: baseStyleSchema.optional(),
322
+ root: baseStyleSchema.optional(),
323
+ }),
324
+ topLink: z
325
+ .object({
326
+ borderRadius: z.number().optional(),
327
+ })
328
+ .optional(),
329
+ buttonV2: baseStyleSchema.optional(),
330
+ wrapperHeading: baseStyleSchema.optional(),
331
+ skeleton: z.object({
332
+ root: baseStyleSchema,
333
+ }),
334
+ }),
335
+ options: z.object({
336
+ skeleton: z
337
+ .object({
338
+ colors: z.tuple([z.string(), z.string()]),
339
+ })
340
+ .optional(),
341
+ productItemsVisibility: productItemsVisibilitySchema,
342
+ fetchItemCount: z.number().optional(),
343
+ showHeading: z.boolean().optional(),
344
+ showViewAll: z.boolean().optional(),
345
+ order: z.enum([
346
+ 'priceBox',
347
+ 'ratingsBox',
348
+ 'image',
349
+ 'title',
350
+ 'addToCart',
351
+ 'discountLabel',
352
+ ]),
353
+ productImage: z.object({
354
+ type: z.enum(['carousel', 'image']),
355
+ hotCorners: z.record(
356
+ hotPositionsSchema,
357
+ z.object({
358
+ source: z.enum(['tags', 'auto']),
359
+ type: z.enum(['bestseller', 'discount']),
360
+ tagText: z.string(),
361
+ style: z.object({
362
+ root: baseStyleSchema,
363
+ text: baseTextStyleSchema,
364
+ }),
365
+ position: hotPositionsSchema,
366
+ })
367
+ ),
368
+ }),
369
+ showRatingCount: z.boolean().optional(),
370
+ navigateToProductReviews: z.boolean().optional(),
371
+ metafieldText: z
372
+ .object({
373
+ namespace: z.string(),
374
+ metafieldKey: z.string(),
375
+ nativeTextProps: z.any().optional(),
376
+ })
377
+ .optional(),
378
+ }),
379
+ })
380
+
381
+ export const imageListSchema = blockSchema.extend({
382
+ source: z.object({
383
+ items: z.array(
384
+ z.object({
385
+ image: z.string(),
386
+ heading: z.string().optional(),
387
+ subHeading: z.string().optional(),
388
+ caption: z.string().optional(),
389
+ text: z.string().optional(),
390
+ meta: z
391
+ .object({
392
+ height: z.number(),
393
+ width: z.number(),
394
+ })
395
+ .optional(),
396
+ link: z
397
+ .object({
398
+ kind: z.string().optional(),
399
+ value: z.string().optional(),
400
+ })
401
+ .optional(),
402
+ })
403
+ ),
404
+ link: z
405
+ .object({
406
+ kind: z.string().optional(),
407
+ value: z.string().optional(),
408
+ })
409
+ .optional(),
410
+ heading: z.string().optional(),
411
+ richHeading: z.string().optional(),
412
+ subHeading: z.string().optional(),
413
+ }),
414
+ style: z.object({
415
+ root: baseStyleSchema,
416
+ heading: baseTextStyleSchema,
417
+ item: z.object({
418
+ root: baseStyleSchema,
419
+ image: baseStyleSchema,
420
+ caption: baseTextStyleSchema.optional(),
421
+ text: baseTextStyleSchema.optional(),
422
+ heading: baseTextStyleSchema.optional(),
423
+ }),
424
+ }),
425
+ options: z
426
+ .object({
427
+ horizontal: z.boolean().optional(),
428
+ itemsPerRow: z.number().optional(),
429
+ fraction: z.number().optional(),
430
+ external: z.boolean().optional(),
431
+ })
432
+ .optional(),
433
+ })
434
+
435
+ export const collectionListSchema = blockSchema.extend({
436
+ source: z.object({
437
+ items: z.array(
438
+ z.object({
439
+ collectionId: z.string().optional(),
440
+ collectionName: z.string().optional(),
441
+ image: z.string(),
442
+ })
443
+ ),
444
+ heading: z.string(),
445
+ }),
446
+ style: z.object({
447
+ root: baseStyleSchema,
448
+ heading: baseTextStyleSchema,
449
+ list: z
450
+ .object({
451
+ horizontal: z.boolean(),
452
+ itemGap: z.number(),
453
+ })
454
+ .merge(baseStyleSchema),
455
+ item: z.object({
456
+ root: baseStyleSchema,
457
+ collectionName: z.object({
458
+ text: baseTextStyleSchema,
459
+ root: baseStyleSchema,
460
+ }),
461
+ collectionCaption: z
462
+ .object({
463
+ text: baseTextStyleSchema,
464
+ root: baseStyleSchema,
465
+ })
466
+ .optional(),
467
+ image: z.object({ aspectRatio: z.number() }).merge(baseStyleSchema),
468
+ }),
469
+ }),
470
+ options: z
471
+ .object({
472
+ direction: z.string().optional(),
473
+ itemsPerRow: z.number().optional(),
474
+ })
475
+ .optional(),
476
+ })
477
+
478
+ export const richTextBlockSchema = blockSchema.extend({
479
+ style: z.object({
480
+ root: baseStyleSchema,
481
+ tags: z.record(baseTextStyleSchema),
482
+ classes: z.record(baseTextStyleSchema).optional(),
483
+ }),
484
+ source: z.object({
485
+ html: z.string(),
486
+ title: z.string(),
487
+ }),
488
+ })
489
+
490
+ export const taggedRichTextBlockSchema = richTextBlockSchema.extend({
491
+ options: z.object({
492
+ includeTags: z.array(z.string()).optional(),
493
+ excludeTags: z.array(z.string()).optional(),
494
+ }),
495
+ })
496
+ const textOptionsSchema = z
497
+ .object({
498
+ kind: z.string().optional(),
499
+ color: z.string().optional(),
500
+ family: z.string().optional(),
501
+ })
502
+ .optional()
503
+
504
+ export const signInSchema = blockSchema.extend({
505
+ social: z.object({
506
+ googleSignin: z.boolean(),
507
+ }),
508
+ source: z.object({
509
+ forgotPassword: z.object({
510
+ linkText: z.string(),
511
+ }),
512
+ signInText: z.string(),
513
+ guestUserText: z.string(),
514
+ signupText: z.string(),
515
+ signupLink: z.string().optional(),
516
+ logo: z.string(),
517
+ }),
518
+ layout: z.object({
519
+ sections: z.array(
520
+ z.object({
521
+ title: z.string(),
522
+ fields: z.array(
523
+ z.object({
524
+ id: z.string(),
525
+ label: z.string(),
526
+ placeholder: z.string(),
527
+ required: z.boolean(),
528
+ validationPattern: z.string(),
529
+ })
530
+ ),
531
+ })
532
+ ),
533
+ }),
534
+ style: z.object({
535
+ root: baseStyleSchema,
536
+ logo: z.object({
537
+ root: baseStyleSchema,
538
+ }),
539
+ sectionHeading: baseStyleSchema,
540
+ input: z.object({
541
+ root: baseStyleSchema,
542
+ label: baseStyleSchema,
543
+ states: z.object({
544
+ error: baseStyleSchema,
545
+ }),
546
+ }),
547
+ signInButton: z.object({
548
+ baseStyleSchema,
549
+ text: baseTextStyleSchema,
550
+ }),
551
+ forgotPasswordLink: z.object({
552
+ root: baseStyleSchema,
553
+ text: baseTextStyleSchema,
554
+ }),
555
+ guestUserText: z.object({
556
+ root: baseStyleSchema,
557
+ text: baseTextStyleSchema,
558
+ }),
559
+ signup: z.object({
560
+ root: baseStyleSchema,
561
+ text: baseTextStyleSchema,
562
+ link: baseTextStyleSchema.optional(),
563
+ }),
564
+ }),
565
+ options: z.object({
566
+ form: z
567
+ .object({
568
+ field: z
569
+ .object({
570
+ label: z
571
+ .object({
572
+ text: textOptionsSchema,
573
+ })
574
+ .optional(),
575
+ })
576
+ .optional(),
577
+ })
578
+ .optional(),
579
+ signup: z
580
+ .object({
581
+ link: z
582
+ .object({
583
+ text: textOptionsSchema,
584
+ })
585
+ .optional(),
586
+ text: textOptionsSchema,
587
+ })
588
+ .optional(),
589
+ forgotPasswordLink: z
590
+ .object({
591
+ text: textOptionsSchema,
592
+ })
593
+ .optional(),
594
+ signin: z
595
+ .object({
596
+ text: textOptionsSchema,
597
+ link: textOptionsSchema,
598
+ })
599
+ .optional(),
600
+ }),
601
+ })
602
+
603
+ // CTA button style schema for Firework
604
+ const fireworkCtaButtonStyleSchema = z
605
+ .object({
606
+ backgroundColor: z.string().optional(), // Defaults to #3A86FF
607
+ textColor: z.string().optional(), // Defaults to #FFFFFF
608
+ fontSize: z.number().optional(), // Defaults to 14
609
+ })
610
+ .optional()
611
+
612
+ export const fireworkSchema = blockSchema.extend({
613
+ style: z.object({
614
+ height: z.number(),
615
+ ctaButtonStyle: fireworkCtaButtonStyleSchema,
616
+ }),
617
+ options: z.union([
618
+ // discover source - no channel/playlist required
619
+ z.object({
620
+ source: z.literal('discover').optional(),
621
+ mode: z.enum(['row', 'column', 'grid']).optional(),
622
+ scrollDirection: z.enum(['horizontal', 'vertical']).optional(),
623
+ enableScrollForVertical: z.boolean().optional(),
624
+ }),
625
+ // channel source - requires channel
626
+ z.object({
627
+ source: z.literal('channel'),
628
+ channel: z.string(),
629
+ mode: z.enum(['row', 'column', 'grid']).optional(),
630
+ scrollDirection: z.enum(['horizontal', 'vertical']).optional(),
631
+ enableScrollForVertical: z.boolean().optional(),
632
+ }),
633
+ // playlist source - requires channel and playlist
634
+ z.object({
635
+ source: z.literal('playlist'),
636
+ channel: z.string(),
637
+ playlist: z.string(),
638
+ mode: z.enum(['row', 'column', 'grid']).optional(),
639
+ scrollDirection: z.enum(['horizontal', 'vertical']).optional(),
640
+ enableScrollForVertical: z.boolean().optional(),
641
+ }),
642
+ // sku source - requires channel
643
+ z.object({
644
+ source: z.literal('sku'),
645
+ channel: z.string(),
646
+ mode: z.enum(['row', 'column', 'grid']).optional(),
647
+ scrollDirection: z.enum(['horizontal', 'vertical']).optional(),
648
+ enableScrollForVertical: z.boolean().optional(),
649
+ }),
650
+ ]),
651
+ })
652
+ export const rewardWay = z.object({
653
+ link: z.object({ kind: z.string(), value: z.string() }),
654
+ title: z.string(),
655
+ })
656
+ export const rewardsSummarySchema = blockSchema.extend({
657
+ source: z.object({
658
+ heading: z.string(),
659
+ currentCredits: z.string(),
660
+ earnedCredits: z.string(),
661
+ spentCredits: z.string(),
662
+ rewardsImgBackground: z.string(),
663
+ ways: z.object({
664
+ waysToRedeem: rewardWay,
665
+ waysToEarn: rewardWay,
666
+ redeemCoupons: rewardWay,
667
+ }),
668
+ }),
669
+ style: z.object({
670
+ root: baseStyleSchema,
671
+ heading: baseTextStyleSchema,
672
+ rewardButton: z.object({
673
+ root: baseStyleSchema,
674
+ title: baseTextStyleSchema,
675
+ icon: baseIconStyleSchema,
676
+ }),
677
+ currentCredits: z.object({
678
+ root: baseStyleSchema,
679
+ amount: baseTextStyleSchema,
680
+ heading: baseTextStyleSchema,
681
+ }),
682
+ earnedCredits: z.object({
683
+ root: baseStyleSchema,
684
+ amount: baseTextStyleSchema,
685
+ heading: baseTextStyleSchema,
686
+ }),
687
+ spentCredits: z.object({
688
+ root: baseStyleSchema,
689
+ amount: baseTextStyleSchema,
690
+ heading: baseTextStyleSchema,
691
+ }),
692
+ currentCreditsCard: z.object({
693
+ root: baseStyleSchema,
694
+ caption: baseTextStyleSchema,
695
+ credits: baseTextStyleSchema,
696
+ }),
697
+ earnedCreditsCard: z.object({
698
+ root: baseStyleSchema,
699
+ textColumnRoot: baseStyleSchema,
700
+ credits: baseTextStyleSchema,
701
+ caption: baseTextStyleSchema,
702
+ icon: baseIconStyleSchema,
703
+ }),
704
+ spentCreditsCard: z.object({
705
+ root: baseStyleSchema,
706
+ textColumnRoot: baseStyleSchema,
707
+ credits: baseTextStyleSchema,
708
+ caption: baseTextStyleSchema,
709
+ icon: baseIconStyleSchema,
710
+ }),
711
+ creditHistory: z.object({
712
+ root: baseStyleSchema,
713
+ heading: baseTextStyleSchema,
714
+ creditLogCard: z.object({
715
+ root: baseStyleSchema,
716
+ commentColumnRoot: baseStyleSchema,
717
+ comment: baseTextStyleSchema,
718
+ date: baseTextStyleSchema,
719
+ credit: z.object({
720
+ positive: baseTextStyleSchema,
721
+ negetive: baseTextStyleSchema,
722
+ }),
723
+ }),
724
+ }),
725
+ }),
726
+ })
727
+
728
+ export const rewardsHistory = blockSchema.extend({
729
+ source: z.object({
730
+ heading: z.string(),
731
+ }),
732
+ style: z.object({
733
+ root: baseStyleSchema,
734
+ heading: baseTextStyleSchema,
735
+ creditLogCard: z.object({
736
+ root: baseStyleSchema,
737
+ commentColumnRoot: baseStyleSchema,
738
+ comment: baseTextStyleSchema,
739
+ date: baseTextStyleSchema,
740
+ credit: z.object({
741
+ positive: baseTextStyleSchema,
742
+ negetive: baseTextStyleSchema,
743
+ }),
744
+ }),
745
+ }),
746
+ })
747
+
748
+ export const folllowUsSchema = blockSchema.extend({
749
+ source: z.object({
750
+ icons: z.array(
751
+ z.object({
752
+ name: z.string(),
753
+ link: z.object({
754
+ kind: z.string(),
755
+ value: z.string(),
756
+ }),
757
+ })
758
+ ),
759
+ heading: z.string(),
760
+ }),
761
+ style: z.object({
762
+ heading: z.object({
763
+ text: baseTextStyleSchema,
764
+ root: baseStyleSchema,
765
+ }),
766
+ }),
767
+ })
768
+
769
+ export const moreMenuSchema = blockSchema.extend({
770
+ source: z.object({
771
+ linkItems: z.array(
772
+ z.object({
773
+ kind: z.string(),
774
+ value: z.string(),
775
+ title: z.string(),
776
+ })
777
+ ),
778
+ }),
779
+ style: z.object({
780
+ root: baseStyleSchema,
781
+ links: z.object({
782
+ root: baseStyleSchema,
783
+ text: baseTextStyleSchema,
784
+ icon: baseIconStyleSchema,
785
+ }),
786
+ }),
787
+ })
788
+ export const checkEstimatedDeliverySchema = blockSchema.extend({
789
+ source: z.object({
790
+ title: z.string(),
791
+ buttonText: z.string(),
792
+ inputFieldPlaceholder: z.string(),
793
+ }),
794
+ style: z.object({
795
+ button: z.union([baseStyleSchema, z.object({ text: baseTextStyleSchema })]),
796
+ textInput: baseTextStyleSchema,
797
+ placeholder: baseTextStyleSchema,
798
+ text: z.object({
799
+ zipcode: baseTextStyleSchema,
800
+ deliveryTextNote: baseTextStyleSchema,
801
+ }),
802
+ title: baseTextStyleSchema,
803
+ root: baseStyleSchema,
804
+ }),
805
+ })
806
+
807
+ export const discountCodeInputSchema = blockSchema.extend({
808
+ source: z.object({
809
+ inputFieldPlaceholder: z.string(),
810
+ buttonText: z.string(),
811
+ static: z.object({
812
+ title: z.string(),
813
+ }),
814
+ couponCard: z.object({
815
+ cancel: z.object({
816
+ icon: z.string(),
817
+ }),
818
+ discount: z.object({
819
+ icon: z.string(),
820
+ }),
821
+ }),
822
+ }),
823
+ style: z.object({
824
+ errorMessage: baseTextStyleSchema,
825
+ applyButton: z.object({
826
+ root: baseStyleSchema,
827
+ text: baseTextStyleSchema,
828
+ }),
829
+ input: z.object({
830
+ error: baseStyleSchema,
831
+ success: baseStyleSchema,
832
+ placeholder: baseTextStyleSchema,
833
+ root: baseStyleSchema,
834
+ }),
835
+ title: baseTextStyleSchema,
836
+ couponCode: z.object({
837
+ icon: baseIconStyleSchema,
838
+ root: baseStyleSchema,
839
+ text: baseTextStyleSchema,
840
+ }),
841
+ root: baseStyleSchema,
842
+ }),
843
+ })
844
+
845
+ export const productVideo = z.object({
846
+ url: z.string(),
847
+ products: z.string().array().optional(),
848
+ collection: z.string().optional(),
849
+ })
850
+
851
+ export const videoSource = z.object({
852
+ aspectRatio: z.number().optional(),
853
+ gap: z.number(),
854
+ title: z.string(),
855
+ mode: z.enum(['autoPlay', 'paused']),
856
+ orientation: z.enum(['Landscape', 'Portrait']),
857
+ resetOnPause: z.boolean(),
858
+ })
859
+
860
+ export const videoStyle = z.object({
861
+ root: baseStyleSchema,
862
+ productVideo: z.object({
863
+ root: baseStyleSchema,
864
+ video: baseStyleSchema,
865
+ playButton: baseStyleSchema,
866
+ productButton: baseStyleSchema,
867
+ }),
868
+ heading: z.object({
869
+ root: baseStyleSchema,
870
+ text: baseTextStyleSchema,
871
+ muteButton: baseStyleSchema,
872
+ }),
873
+ richHeading: richTextStyleSchema,
874
+ })
875
+
876
+ export const videoListSchema = blockSchema.extend({
877
+ source: videoSource.extend({ videos: videoItemSchema.array() }),
878
+ style: videoStyle.extend({ list: baseStyleSchema }),
879
+ })
880
+ export const singleVideoSchema = blockSchema.extend({
881
+ source: videoSource.extend({ video: videoItemSchema }),
882
+ style: videoStyle,
883
+ })
884
+
885
+ export const videoBannerSchema = blockSchema.extend({
886
+ source: z.object({
887
+ video: videoItemSchema.extend({
888
+ link: z
889
+ .object({
890
+ kind: z.string().optional(),
891
+ value: z.string().optional(),
892
+ })
893
+ .optional(),
894
+ poster: z
895
+ .object({
896
+ kind: z.string().optional(),
897
+ src: z.string().optional(),
898
+ })
899
+ .optional(),
900
+ }),
901
+ poster: z.object({
902
+ src: z.string(),
903
+ kind: z.string().optional(),
904
+ }),
905
+ heading: z.string(),
906
+ buttonTitle: z.string(),
907
+ posterV2: z.record(z.string(), z.string()).optional(),
908
+ aspectRatio: z.number().optional(),
909
+ richHeading: z.string().optional(),
910
+ }),
911
+ options: z.object({
912
+ controls: z.boolean(),
913
+ autoPlay: z.boolean(),
914
+ repeat: z.boolean(),
915
+ muted: z.boolean(),
916
+ orientation: z.enum(['Landscape', 'Portrait']),
917
+ aspectRatio: z.number().optional(),
918
+ }),
919
+ style: z.object({
920
+ root: baseStyleSchema.extend({
921
+ overflow: z.string().optional(),
922
+ }),
923
+ productVideo: z.object({
924
+ root: baseStyleSchema,
925
+ video: baseStyleSchema,
926
+ playButton: baseStyleSchema,
927
+ productButton: baseStyleSchema,
928
+ }),
929
+ heading: baseTextStyleSchema.extend({
930
+ zIndex: z.number().optional(),
931
+ }),
932
+ navigationButtonStyles: z.object({
933
+ root: baseStyleSchema,
934
+ text: baseTextStyleSchema,
935
+ }),
936
+ }),
937
+ })
938
+ export const youtubeEmbedSchema = blockSchema.extend({
939
+ source: z.object({
940
+ videoId: z.string(),
941
+ heading: z.string().optional(),
942
+ aspectRatio: z.number().optional(),
943
+ }),
944
+ style: z.object({
945
+ root: baseStyleSchema,
946
+ heading: baseTextStyleSchema,
947
+ youtube: z.object({
948
+ root: baseStyleSchema,
949
+ video: baseStyleSchema,
950
+ }),
951
+ }),
952
+ })
953
+
954
+ export const viewCouponSchema = blockSchema.extend({
955
+ source: z.object({
956
+ noCouponSelected: z.object({
957
+ heading: z.string(),
958
+ buttonText: z.string(),
959
+ }),
960
+ couponSelected: z.object({
961
+ heading: z.string(),
962
+ buttonText: z.string(),
963
+ }),
964
+ discountAmountText: z.string().optional(),
965
+ }),
966
+ options: z.object({
967
+ showDiscountAmount: z.boolean().optional(),
968
+ discountIcon: z.string().optional(),
969
+ applyCouponButton: z
970
+ .object({
971
+ endIcon: z.string().optional(),
972
+ startIcon: z.string().optional(),
973
+ })
974
+ .optional(),
975
+ endIconId: z.string().optional(),
976
+ }),
977
+ style: z.object({
978
+ root: baseStyleSchema,
979
+ text: baseTextStyleSchema,
980
+ button: z.object({
981
+ container: baseStyleSchema,
982
+ text: baseTextStyleSchema,
983
+ }),
984
+ couponApplied: z.object({
985
+ container: baseStyleSchema,
986
+ discountIcon: baseIconStyleSchema,
987
+ couponCodeText: z.union([baseTextStyleSchema, baseStyleSchema]),
988
+ divider: baseStyleSchema,
989
+ crossIconStyles: baseStyleSchema,
990
+ crossIcon: baseIconStyleSchema,
991
+ }),
992
+ discountAmount: z.object({
993
+ discountText: baseTextStyleSchema,
994
+ icon: baseIconStyleSchema,
995
+ root: baseStyleSchema,
996
+ textContainer: baseStyleSchema,
997
+ }),
998
+ }),
999
+ })
1000
+
1001
+ export const applyCouponSchema = blockSchema.extend({
1002
+ source: z.object({
1003
+ couponInputPlaceholder: z.string(),
1004
+ applyCouponCodeButtonText: z.string(),
1005
+ availableCouponsHeading: z.string(),
1006
+ noCouponsAvailableMessage: z.string(),
1007
+ searchCouponsHeading: z.string(),
1008
+ successToastMessage: z.string(),
1009
+ failedToastMessage: z.string(),
1010
+ }),
1011
+
1012
+ style: z.object({
1013
+ root: baseStyleSchema,
1014
+
1015
+ couponCodeInput: z.object({
1016
+ container: baseStyleSchema,
1017
+ input: baseStyleSchema,
1018
+ applyText: baseTextStyleSchema,
1019
+ disabledApplyButton: baseStyleSchema,
1020
+ enabledApplyButton: baseStyleSchema,
1021
+ }),
1022
+
1023
+ availableCouponsText: z.union([baseStyleSchema, baseTextStyleSchema]),
1024
+
1025
+ couponCard: z.object({
1026
+ container: baseStyleSchema,
1027
+ couponCodeText: z.union([baseStyleSchema, baseTextStyleSchema]),
1028
+ descriptionText: z.union([baseStyleSchema, baseTextStyleSchema]),
1029
+ applyText: z.union([baseStyleSchema, baseTextStyleSchema]),
1030
+ offerText: z.union([baseStyleSchema, baseTextStyleSchema]),
1031
+ }),
1032
+
1033
+ bottomRightPattern: z.object({
1034
+ container: baseStyleSchema,
1035
+ text: z.union([baseStyleSchema, baseTextStyleSchema]),
1036
+ }),
1037
+ }),
1038
+ })
1039
+
1040
+ export const promoCarouselSchema = blockSchema.extend({
1041
+ source: z.object({
1042
+ heading: z.string().optional(),
1043
+ subHeading: z.string().optional(),
1044
+ items: z.array(
1045
+ imageItemSchema.extend({
1046
+ hidden: z.boolean().optional(),
1047
+ link: z
1048
+ .object({
1049
+ kind: z.string().optional(),
1050
+ value: z.string().optional(),
1051
+ external: z.boolean().optional(),
1052
+ })
1053
+ .optional(),
1054
+ })
1055
+ ),
1056
+ }),
1057
+ options: z
1058
+ .object({
1059
+ roundness: z.number().optional(),
1060
+ autoPlay: z.boolean().optional(),
1061
+ autoPlayInterval: z.number().optional(),
1062
+ hideIndicator: z.boolean().optional(),
1063
+ showIndicator: z.boolean().optional(),
1064
+ carousal: z
1065
+ .object({
1066
+ image: z
1067
+ .object({
1068
+ resizeMode: z.string().optional(),
1069
+ })
1070
+ .optional(),
1071
+ })
1072
+ .optional(),
1073
+ carousel: z
1074
+ .object({
1075
+ image: z
1076
+ .object({
1077
+ resizeMode: z.string().optional(),
1078
+ })
1079
+ .optional(),
1080
+ })
1081
+ .optional(),
1082
+ video: z
1083
+ .object({
1084
+ muted: z.boolean().optional(),
1085
+ repeat: z.boolean().optional(),
1086
+ autoPlay: z.boolean().optional(),
1087
+ controls: z.boolean().optional(),
1088
+ })
1089
+ .optional(),
1090
+ })
1091
+ .optional(),
1092
+ style: z.object({
1093
+ heading: baseTextStyleSchema
1094
+ .extend({
1095
+ kind: z.string().optional(),
1096
+ })
1097
+ .optional(),
1098
+ subHeading: baseTextStyleSchema
1099
+ .extend({
1100
+ kind: z.string().optional(),
1101
+ })
1102
+ .optional(),
1103
+ indicator: z
1104
+ .object({
1105
+ container: baseStyleSchema,
1106
+ active: baseStyleSchema,
1107
+ inactive: baseStyleSchema,
1108
+ root: baseStyleSchema,
1109
+ })
1110
+ .optional(),
1111
+ root: baseStyleSchema.optional(),
1112
+ }),
1113
+ })
1114
+
1115
+ export const changePasswordSchema = blockSchema.extend({
1116
+ source: z.object({
1117
+ confirmPasswordText: z.string(),
1118
+ logo: z.string(),
1119
+ }),
1120
+ style: z.object({
1121
+ input: z.object({
1122
+ placeholder: baseTextStyleSchema,
1123
+ label: baseTextStyleSchema,
1124
+ root: baseStyleSchema,
1125
+ states: z.object({
1126
+ error: baseStyleSchema,
1127
+ }),
1128
+ }),
1129
+ root: baseStyleSchema,
1130
+ logo: z.object({
1131
+ root: baseStyleSchema,
1132
+ }),
1133
+ confirmPassword: baseStyleSchema.extend({
1134
+ text: baseTextStyleSchema,
1135
+ }),
1136
+ sectionHeading: baseTextStyleSchema,
1137
+ }),
1138
+ })
1139
+ const billItemSchema = z.object({
1140
+ root: baseStyleSchema,
1141
+ text: baseTextStyleSchema,
1142
+ price: baseTextStyleSchema,
1143
+ })
1144
+ export const paymentDetailsSchema = blockSchema.extend({
1145
+ source: z.object({
1146
+ heading: z.string().optional(),
1147
+ totalText: z.string().optional(),
1148
+ }),
1149
+ style: z.object({
1150
+ root: baseStyleSchema,
1151
+ heading: baseTextStyleSchema,
1152
+ subTotal: billItemSchema,
1153
+ shipping: billItemSchema,
1154
+ discount: billItemSchema,
1155
+ total: billItemSchema,
1156
+ }),
1157
+ })
1158
+ export const cartListSchema = blockSchema.extend({
1159
+ options: z.object({
1160
+ showCustomAttributes: z.boolean().optional(),
1161
+ quantitySelectorType: z.enum(['modal', 'inc_dec']).optional(),
1162
+ showConfirmationPopup: z.boolean().optional(),
1163
+ order: z.any().optional(),
1164
+ }),
1165
+ source: z.object({
1166
+ emptyCart: z.object({
1167
+ image: z.string(),
1168
+ buttonText: z.string(),
1169
+ caption: z.string(),
1170
+ heading: z.string(),
1171
+ }),
1172
+ static: z.object({
1173
+ title: z.string(),
1174
+ item: z.object({
1175
+ removeVariant: z.number(),
1176
+ quantitySelectorVariant: z.number(),
1177
+ delete: z.object({
1178
+ icon: z.string(),
1179
+ }),
1180
+ price: z.object({
1181
+ showDiscount: z.boolean(),
1182
+ }),
1183
+ quantity: z.object({
1184
+ title: z.string(),
1185
+ }),
1186
+ }),
1187
+ }),
1188
+ }),
1189
+ style: z.object({
1190
+ item: z
1191
+ .object({
1192
+ root: baseStyleSchema,
1193
+ image: baseStyleSchema,
1194
+ heading: baseStyleSchema,
1195
+ trashIcon: baseIconStyleSchema,
1196
+ block: z.object({
1197
+ root: baseStyleSchema,
1198
+ price: baseTextStyleSchema,
1199
+ originalPrice: baseTextStyleSchema,
1200
+ }),
1201
+ })
1202
+ .partial()
1203
+ .optional(),
1204
+ root: baseStyleSchema,
1205
+ empty: z.object({
1206
+ root: baseStyleSchema,
1207
+ button: baseStyleSchema.extend({
1208
+ text: baseTextStyleSchema,
1209
+ }),
1210
+ image: baseStyleSchema,
1211
+ text: baseTextStyleSchema,
1212
+ heading: baseTextStyleSchema,
1213
+ }),
1214
+ }),
1215
+ })
1216
+
1217
+ export const accountSchema = blockSchema.extend({
1218
+ style: z.object({
1219
+ loadingDotsColor: z.string(),
1220
+ becomeAMember: z.object({
1221
+ button: baseTextStyleSchema.extend({
1222
+ text: baseTextStyleSchema,
1223
+ }),
1224
+ link: z.object({
1225
+ label: baseTextStyleSchema,
1226
+ text: baseTextStyleSchema,
1227
+ }),
1228
+ description: baseTextStyleSchema,
1229
+ heading: baseTextStyleSchema,
1230
+ root: baseStyleSchema,
1231
+ }),
1232
+ menu: z.object({
1233
+ item: z.object({
1234
+ root: baseStyleSchema,
1235
+ text: z.object({
1236
+ root: baseStyleSchema,
1237
+ text: baseTextStyleSchema,
1238
+ heading: baseTextStyleSchema,
1239
+ }),
1240
+ icon: baseIconStyleSchema,
1241
+ endIcon: baseIconStyleSchema,
1242
+ }),
1243
+ root: baseStyleSchema,
1244
+ }),
1245
+ user: z.object({
1246
+ greeting: z.object({
1247
+ root: baseStyleSchema,
1248
+ text: baseTextStyleSchema,
1249
+ name: baseTextStyleSchema,
1250
+ }),
1251
+ signOutButton: baseStyleSchema.extend({
1252
+ text: baseTextStyleSchema,
1253
+ }),
1254
+ }),
1255
+ root: baseStyleSchema,
1256
+ }),
1257
+ source: z.object({
1258
+ menu: z.object({
1259
+ items: z
1260
+ .object({
1261
+ link: z.object({
1262
+ value: z.string(),
1263
+ kind: z.string(),
1264
+ }),
1265
+ text: z.string().optional(),
1266
+ heading: z.string(),
1267
+ icon: z.string().optional(),
1268
+ endIcon: z.string().optional(),
1269
+ })
1270
+ .array(),
1271
+ }),
1272
+ user: z.object({
1273
+ signOutText: z.string(),
1274
+ greeting: z.string(),
1275
+ }),
1276
+ becomeAMember: z.object({
1277
+ linkLabel: z.string(),
1278
+ description: z.string(),
1279
+ buttonText: z.string(),
1280
+ linkText: z.string(),
1281
+ heading: z.string(),
1282
+ }),
1283
+ }),
1284
+ })
1285
+
1286
+ export const searchSuggestionSchema = blockSchema.extend({
1287
+ style: z.object({
1288
+ title: z.string(),
1289
+ root: baseStyleSchema,
1290
+ loader: baseStyleSchema.extend({ color: z.string() }),
1291
+ suggestion: z.object({
1292
+ root: baseStyleSchema,
1293
+ icon: z.object({
1294
+ root: baseStyleSchema,
1295
+ icon: baseIconStyleSchema,
1296
+ }),
1297
+ text: baseTextStyleSchema,
1298
+ }),
1299
+ }),
1300
+ source: z.object({
1301
+ title: z.string().optional(),
1302
+ }),
1303
+ options: z.object({
1304
+ count: z.number().optional(),
1305
+ }),
1306
+ })
1307
+
1308
+ export const suggestionsPageStyles = z.object({
1309
+ root: baseStyleSchema,
1310
+ loader: baseStyleSchema.extend({ color: z.string() }),
1311
+ title: baseTextStyleSchema,
1312
+ list: baseStyleSchema,
1313
+ item: z.object({
1314
+ root: baseStyleSchema,
1315
+ wrapper: baseStyleSchema.optional(),
1316
+ content: z
1317
+ .object({
1318
+ root: baseStyleSchema.optional(),
1319
+ })
1320
+ .optional(),
1321
+ icon: z
1322
+ .object({
1323
+ root: baseStyleSchema.optional(),
1324
+ icon: baseIconStyleSchema.optional(),
1325
+ })
1326
+ .optional(),
1327
+ deleteIcon: z
1328
+ .object({
1329
+ root: baseStyleSchema.optional(),
1330
+ icon: baseIconStyleSchema.optional(),
1331
+ })
1332
+ .optional(),
1333
+ endIcon: z
1334
+ .object({
1335
+ root: baseStyleSchema.optional(),
1336
+ icon: baseIconStyleSchema.optional(),
1337
+ })
1338
+ .optional(),
1339
+ text: baseTextStyleSchema,
1340
+ }),
1341
+ })
1342
+
1343
+ export const pastSearchesSchema = blockSchema.extend({
1344
+ style: suggestionsPageStyles.extend({
1345
+ clearButton: z.object({
1346
+ root: baseStyleSchema,
1347
+ text: baseTextStyleSchema,
1348
+ }),
1349
+ headingContainer: baseStyleSchema,
1350
+ }),
1351
+ source: z.object({
1352
+ title: z.string().optional(),
1353
+ clearButtonText: z.string().optional(),
1354
+ }),
1355
+ options: z.object({
1356
+ count: z.number().optional(),
1357
+ disappearOnSearch: z.boolean().optional(),
1358
+ }),
1359
+ })
1360
+
1361
+ export const trendingProductsSchema = blockSchema.extend({
1362
+ style: suggestionsPageStyles,
1363
+ source: z.object({
1364
+ title: z.string().optional(),
1365
+ }),
1366
+ options: z.object({
1367
+ count: z.number().optional(),
1368
+ disappearOnSearch: z.boolean().optional(),
1369
+ }),
1370
+ })
1371
+
1372
+ export const emptySearchSuggestionsSchema = blockSchema.extend({
1373
+ style: suggestionsPageStyles,
1374
+ source: z.object({
1375
+ title: z.string().optional(),
1376
+ }),
1377
+ options: z.object({
1378
+ count: z.number().optional(),
1379
+ disappearOnSearch: z.boolean().optional(),
1380
+ }),
1381
+ })
1382
+
1383
+ export const searchRecommendationsSchema = blockSchema.extend({
1384
+ style: z.object({
1385
+ loader: baseStyleSchema.extend({ color: z.string() }),
1386
+ }),
1387
+ source: z.object({}),
1388
+ options: z.object({
1389
+ count: z.number().optional(),
1390
+ type: z.enum(['bought', 'viewed']),
1391
+ idSource: z.enum(['cart', 'product']),
1392
+ }),
1393
+ })
1394
+
1395
+ export const a1AccordionSchema = blockSchema.extend({
1396
+ source: z.object({
1397
+ namespace: z.string(),
1398
+ key: z.string(),
1399
+ title: z.string(),
1400
+ icon: z
1401
+ .object({
1402
+ collapse: z.string().optional(),
1403
+ expand: z.string().optional(),
1404
+ })
1405
+ .optional(),
1406
+ }),
1407
+ style: z.object({
1408
+ root: baseStyleSchema,
1409
+ image: baseImageStyleSchema.optional(),
1410
+ title: z.object({
1411
+ root: baseStyleSchema,
1412
+ text: baseTextStyleSchema,
1413
+ icon: baseTextStyleSchema,
1414
+ }),
1415
+ titleExpanded: z.object({
1416
+ root: baseStyleSchema,
1417
+ text: baseTextStyleSchema,
1418
+ icon: baseTextStyleSchema,
1419
+ }),
1420
+ body: z.object({
1421
+ root: baseStyleSchema,
1422
+ text: baseTextStyleSchema,
1423
+ tags: z.object({
1424
+ p: baseTextStyleSchema,
1425
+ span: baseTextStyleSchema,
1426
+ div: baseTextStyleSchema,
1427
+ }),
1428
+ }),
1429
+ richTitle: richTextStyleSchema.optional(),
1430
+ }),
1431
+ })
1432
+
1433
+ export const a1ImageBannerSchema = blockSchema.extend({
1434
+ source: z.object({
1435
+ namespace: z.string(),
1436
+ key: z.string(),
1437
+ }),
1438
+ style: z.object({
1439
+ root: baseStyleSchema,
1440
+ image: z.object({ aspectRatio: z.number() }).merge(baseStyleSchema),
1441
+ }),
1442
+ })
1443
+
1444
+ export const judgemeReviewsSchema = blockSchema.extend({
1445
+ style: z.object({
1446
+ root: baseStyleSchema,
1447
+ }),
1448
+ })
1449
+
1450
+ export const junipReviewsSchema = blockSchema.extend({
1451
+ style: z.object({
1452
+ root: baseStyleSchema,
1453
+ header: z.object({
1454
+ root: baseStyleSchema,
1455
+ text: baseTextStyleSchema,
1456
+ }),
1457
+ reviewSummary: z.object({
1458
+ root: baseStyleSchema,
1459
+ averageBlock: z.object({
1460
+ root: baseStyleSchema,
1461
+ averageRatings: z.object({
1462
+ text: baseTextStyleSchema,
1463
+ starRatings: z.object({
1464
+ ratingBoxStyle: baseStyleSchema,
1465
+ ratingCountStyle: baseTextStyleSchema,
1466
+ iconStyle: baseStyleSchema,
1467
+ }),
1468
+ }),
1469
+ }),
1470
+ ratingsDistributionBlock: z.object({
1471
+ root: baseStyleSchema,
1472
+ ratingsDistribution: z.object({
1473
+ root: baseStyleSchema,
1474
+ starText: baseTextStyleSchema,
1475
+ bar: baseStyleSchema,
1476
+ completedBar: baseStyleSchema,
1477
+ percentageText: baseTextStyleSchema,
1478
+ numberOfIndividualRatingsText: baseTextStyleSchema,
1479
+ }),
1480
+ }),
1481
+ writeAReviewButton: z.object({
1482
+ root: baseStyleSchema,
1483
+ text: baseTextStyleSchema,
1484
+ }),
1485
+ }),
1486
+ reviewCard: z.object({
1487
+ root: baseStyleSchema,
1488
+ image: baseStyleSchema,
1489
+ content: z.object({
1490
+ section: z.object({
1491
+ root: baseStyleSchema,
1492
+ }),
1493
+ firstName: z.object({
1494
+ text: baseTextStyleSchema,
1495
+ }),
1496
+ lastName: z.object({
1497
+ text: baseTextStyleSchema,
1498
+ }),
1499
+ verifiedPurchase: z.object({
1500
+ root: baseStyleSchema,
1501
+ icon: baseStyleSchema,
1502
+ text: baseTextStyleSchema,
1503
+ }),
1504
+ ratingsAndDateBox: z.object({
1505
+ root: baseStyleSchema,
1506
+ starRatings: z.object({
1507
+ root: baseStyleSchema,
1508
+ ratingBoxStyle: baseStyleSchema,
1509
+ ratingCountStyle: baseTextStyleSchema,
1510
+ iconStyle: baseStyleSchema,
1511
+ }),
1512
+ date: z.object({
1513
+ root: baseStyleSchema,
1514
+ text: baseTextStyleSchema,
1515
+ }),
1516
+ }),
1517
+ body: z.object({
1518
+ root: baseStyleSchema,
1519
+ text: baseTextStyleSchema,
1520
+ }),
1521
+ root: baseStyleSchema,
1522
+ }),
1523
+ }),
1524
+ loaderStyle: z
1525
+ .object({
1526
+ root: baseStyleSchema,
1527
+ })
1528
+ .optional(),
1529
+ loadMoreButton: z.object({
1530
+ root: baseStyleSchema,
1531
+ text: baseTextStyleSchema,
1532
+ }),
1533
+ loadMoreButtonWrapper: baseStyleSchema,
1534
+ }),
1535
+ source: z.object({
1536
+ key: z.string(),
1537
+ loader: z
1538
+ .object({
1539
+ size: z.enum([`small`, `large`]).optional(),
1540
+ })
1541
+ .optional(),
1542
+ }),
1543
+ })
1544
+
1545
+ export const junipSchema = blockSchema.extend({
1546
+ style: z.object({
1547
+ root: baseStyleSchema,
1548
+ writeAReview: z.object({
1549
+ root: baseStyleSchema,
1550
+ text: baseTextStyleSchema,
1551
+ }),
1552
+ reviewSummary: z.object({
1553
+ root: baseStyleSchema,
1554
+ averageRatingBlock: z.object({
1555
+ root: baseStyleSchema,
1556
+ text: baseTextStyleSchema,
1557
+ starRatings: z.object({
1558
+ root: baseStyleSchema,
1559
+ ratingCount: baseTextStyleSchema,
1560
+ icon: baseStyleSchema,
1561
+ container: baseStyleSchema,
1562
+ }),
1563
+ }),
1564
+ ratingDistributionText: baseTextStyleSchema,
1565
+ }),
1566
+ reviewCard: z.object({
1567
+ root: baseStyleSchema,
1568
+ nameBox: z.object({
1569
+ root: baseStyleSchema,
1570
+ nameText: baseTextStyleSchema,
1571
+ recommendBox: z.object({
1572
+ root: baseStyleSchema,
1573
+ recommendText: baseTextStyleSchema,
1574
+ }),
1575
+ }),
1576
+ verifiedBuyer: z.object({
1577
+ root: baseStyleSchema,
1578
+ text: baseTextStyleSchema,
1579
+ }),
1580
+ sizePurchasedText: baseTextStyleSchema,
1581
+ ratingBox: z.object({
1582
+ root: baseStyleSchema,
1583
+ starRatings: z.object({
1584
+ root: baseStyleSchema,
1585
+ ratingCount: baseTextStyleSchema,
1586
+ icon: baseStyleSchema,
1587
+ container: baseStyleSchema,
1588
+ }),
1589
+ dateText: baseTextStyleSchema,
1590
+ }),
1591
+ titleText: baseTextStyleSchema,
1592
+ bodyText: baseTextStyleSchema,
1593
+ ratingBarBox: baseStyleSchema,
1594
+ mediaBox: z.object({
1595
+ root: baseStyleSchema,
1596
+ image: baseStyleSchema,
1597
+ imagePreview: z.object({
1598
+ root: baseStyleSchema,
1599
+ icon: baseStyleSchema,
1600
+ indicator: z.object({
1601
+ root: baseStyleSchema,
1602
+ active: baseStyleSchema,
1603
+ inactive: baseStyleSchema,
1604
+ }),
1605
+ }),
1606
+ }),
1607
+ reactionBox: z.object({
1608
+ root: baseStyleSchema,
1609
+ likeBox: baseStyleSchema,
1610
+ likeCountText: baseTextStyleSchema,
1611
+ dislikeBox: baseStyleSchema,
1612
+ dislikeCountText: baseTextStyleSchema,
1613
+ }),
1614
+ respondentBox: z.object({
1615
+ root: baseStyleSchema,
1616
+ titleText: baseTextStyleSchema,
1617
+ bodyText: baseTextStyleSchema,
1618
+ }),
1619
+ }),
1620
+ loadMoreButton: z.object({
1621
+ root: baseStyleSchema,
1622
+ text: baseTextStyleSchema,
1623
+ }),
1624
+ sortFilter: z.object({
1625
+ root: baseStyleSchema,
1626
+ accordionStyle: z.object({
1627
+ root: baseStyleSchema,
1628
+ title: z.object({
1629
+ root: baseStyleSchema,
1630
+ text: baseTextStyleSchema,
1631
+ imageWrapper: baseStyleSchema,
1632
+ }),
1633
+ }),
1634
+ dropdownBox: z.object({
1635
+ root: baseStyleSchema,
1636
+ dropdownContainer: baseStyleSchema,
1637
+ dropdownLabelText: baseTextStyleSchema,
1638
+ dropdownPickerStyle: z.object({
1639
+ wrapper: baseStyleSchema,
1640
+ root: baseStyleSchema,
1641
+ selectedText: baseTextStyleSchema,
1642
+ itemText: baseTextStyleSchema,
1643
+ }),
1644
+ checkboxContainer: z.object({
1645
+ root: baseStyleSchema,
1646
+ checkboxContainer: baseStyleSchema,
1647
+ checkbox: z.object({
1648
+ checkBox: z.object({
1649
+ fillColor: z.object({
1650
+ off: z.string(),
1651
+ on: z.string(),
1652
+ }),
1653
+ tintColor: z.object({
1654
+ off: z.string(),
1655
+ on: z.string(),
1656
+ }),
1657
+ tick: z.object({
1658
+ color: z.string(),
1659
+ }),
1660
+ root: baseStyleSchema,
1661
+ }),
1662
+ checkBoxText: baseTextStyleSchema,
1663
+ }),
1664
+ }),
1665
+ }),
1666
+ noReviewsText: baseTextStyleSchema,
1667
+ resetFilterText: baseTextStyleSchema,
1668
+ loadingText: baseTextStyleSchema,
1669
+ }),
1670
+ }),
1671
+ })
1672
+
1673
+ export const opinewReviewsSchema = blockSchema.extend({
1674
+ style: z.object({
1675
+ root: baseStyleSchema,
1676
+ }),
1677
+ source: z.object({}),
1678
+ })
1679
+ const address = z.object({
1680
+ root: baseStyleSchema,
1681
+ displayName: baseTextStyleSchema,
1682
+ address1: baseTextStyleSchema,
1683
+ phone: baseIconStyleSchema,
1684
+ })
1685
+ export const changeShippingAddressSchema = blockSchema.extend({
1686
+ style: z.object({
1687
+ root: baseStyleSchema,
1688
+ signInText: baseTextStyleSchema,
1689
+ signInButton: z.object({
1690
+ container: baseStyleSchema,
1691
+ text: baseTextStyleSchema,
1692
+ }),
1693
+ header: z.object({
1694
+ root: baseStyleSchema,
1695
+ title: baseTextStyleSchema,
1696
+ button: z.object({
1697
+ container: baseStyleSchema,
1698
+ text: baseTextStyleSchema,
1699
+ }),
1700
+ }),
1701
+ address: address,
1702
+ modal: z.object({
1703
+ heading: baseTextStyleSchema,
1704
+ address: address,
1705
+ button: z.object({
1706
+ container: baseStyleSchema,
1707
+ text: baseTextStyleSchema,
1708
+ }),
1709
+ content: z
1710
+ .object({
1711
+ root: baseStyleSchema.optional(),
1712
+ })
1713
+ .optional(),
1714
+ currencyChangeConfirmationModal: z.record(z.any()).optional(),
1715
+ }),
1716
+ }),
1717
+ })
1718
+ export const deleteAccountPrivacySchema = blockSchema.extend({
1719
+ style: z.object({
1720
+ root: baseStyleSchema,
1721
+ heading: baseTextStyleSchema,
1722
+ caption: baseTextStyleSchema,
1723
+ button: baseStyleSchema.extend({
1724
+ text: baseTextStyleSchema,
1725
+ }),
1726
+ }),
1727
+ source: z.object({
1728
+ heading: z.string(),
1729
+ caption: z.string(),
1730
+ buttonText: z.string(),
1731
+ }),
1732
+ })
1733
+
1734
+ export const sortAndFilterSchema = blockSchema.extend({
1735
+ style: z.object({
1736
+ root: baseStyleSchema,
1737
+ button: z.object({
1738
+ root: baseStyleSchema,
1739
+ icon: baseIconStyleSchema,
1740
+ text: z.object({
1741
+ root: baseStyleSchema,
1742
+ text: baseTextStyleSchema,
1743
+ helperText: baseTextStyleSchema,
1744
+ filterCount: baseTextStyleSchema,
1745
+ }),
1746
+ }),
1747
+ filters: z.object({
1748
+ root: baseStyleSchema,
1749
+ cancelButton: z.object({
1750
+ base: baseStyleSchema,
1751
+ text: baseTextStyleSchema,
1752
+ }),
1753
+ applyButton: z.object({
1754
+ base: baseStyleSchema,
1755
+ text: baseTextStyleSchema,
1756
+ }),
1757
+ titleContainer: baseStyleSchema.optional(),
1758
+ title: z.object({
1759
+ root: baseStyleSchema,
1760
+ title: baseTextStyleSchema,
1761
+ helperText: baseTextStyleSchema,
1762
+ }),
1763
+ sidebar: z.object({
1764
+ root: baseStyleSchema,
1765
+ button: z.object({
1766
+ default: baseStyleSchema,
1767
+ selected: baseStyleSchema,
1768
+ text: baseTextStyleSchema,
1769
+ textSelected: baseTextStyleSchema,
1770
+ }),
1771
+ }),
1772
+ options: z.object({
1773
+ root: baseStyleSchema,
1774
+ range: z.object({
1775
+ root: baseStyleSchema,
1776
+ title: baseTextStyleSchema,
1777
+ text: baseTextStyleSchema,
1778
+ slider: z.object({
1779
+ root: baseStyleSchema,
1780
+ track: baseStyleSchema,
1781
+ tints: z.object({
1782
+ thumb: z.string(),
1783
+ trackMaximum: z.string(),
1784
+ trackMinimum: z.string(),
1785
+ }),
1786
+ thumb: baseStyleSchema,
1787
+ }),
1788
+ }),
1789
+ option: z.object({
1790
+ root: baseStyleSchema,
1791
+ selected: baseStyleSchema.optional(),
1792
+ checkBox: z.object({
1793
+ fillColor: z.object({
1794
+ off: z.string(),
1795
+ on: z.string(),
1796
+ }),
1797
+ tintColor: z.object({
1798
+ off: z.string(),
1799
+ on: z.string(),
1800
+ }),
1801
+ tick: z.object({
1802
+ color: z.string(),
1803
+ }),
1804
+ root: baseStyleSchema,
1805
+ }),
1806
+ text: baseTextStyleSchema,
1807
+ textSelected: baseTextStyleSchema.optional(),
1808
+ }),
1809
+ }),
1810
+ clearButton: z
1811
+ .object({
1812
+ root: baseStyleSchema,
1813
+ text: baseTextStyleSchema,
1814
+ kind: z.string().optional(),
1815
+ })
1816
+ .optional(),
1817
+ }),
1818
+ sort: z.object({
1819
+ root: baseStyleSchema,
1820
+ title: baseTextStyleSchema,
1821
+ item: z.object({
1822
+ root: baseStyleSchema,
1823
+ text: baseTextStyleSchema,
1824
+ textSelected: baseTextStyleSchema,
1825
+ icon: baseIconStyleSchema,
1826
+ }),
1827
+ list: z
1828
+ .object({
1829
+ root: baseStyleSchema.optional(),
1830
+ })
1831
+ .optional(),
1832
+ }),
1833
+ divider: baseStyleSchema,
1834
+ }),
1835
+ settings: z.object({
1836
+ source: z.object({
1837
+ customFilterTitles: z.record(z.string(), z.string()).optional(),
1838
+ sortIcon: z.string(),
1839
+ filterIcon: z.string(),
1840
+ showFilterCount: z.boolean(),
1841
+ priceStatic: z.array(z.tuple([z.number(), z.number().optional()])),
1842
+ state: z.string(),
1843
+ //mode
1844
+ //0 : multi select both
1845
+ //1 : single select both
1846
+ //TODO if needed:
1847
+ //2: single select only price
1848
+ //3: single select only query
1849
+ mode: z.number().optional(),
1850
+ staticData: z.array(
1851
+ z.object({
1852
+ key: z.string(),
1853
+ title: z.string(),
1854
+ postfix: z.string().optional(),
1855
+ data: z
1856
+ .object({
1857
+ key: z.string(),
1858
+ text: z.string(),
1859
+ count: z.number().optional(),
1860
+ })
1861
+ .array(),
1862
+ })
1863
+ ),
1864
+ sortButtonText: z.string(),
1865
+ filterButtonText: z.string(),
1866
+ sortKeys: z.record(z.string(), z.string()).optional(),
1867
+ collectionProductSortKeys: z.record(z.string(), z.string()).optional(),
1868
+ collectionId: z.string().optional(),
1869
+ }),
1870
+ options: z.object({
1871
+ fetchWithSearch: z.boolean().optional(),
1872
+ clearFiltersOnClose: z.boolean().optional(),
1873
+ clearAllFiltersButton: z.record(z.string(), z.string()).optional(),
1874
+ enableColorsFilter: z.boolean().optional(),
1875
+ showFilter: z.boolean().optional(),
1876
+ showSort: z.boolean().optional(),
1877
+ }),
1878
+ }),
1879
+ })
1880
+
1881
+ export const emptyBlockSchema = blockSchema.extend({
1882
+ source: z.object({
1883
+ state: z.string(),
1884
+ statusState: z.string().optional(),
1885
+ image: z.string(),
1886
+ heading: z.string(),
1887
+ caption: z.string(),
1888
+ buttonText: z.string(),
1889
+ link: z.string().optional(),
1890
+ }),
1891
+ style: z.object({
1892
+ root: baseStyleSchema,
1893
+ image: baseStyleSchema,
1894
+ heading: baseTextStyleSchema,
1895
+ caption: baseTextStyleSchema,
1896
+ button: baseStyleSchema,
1897
+ }),
1898
+ })
1899
+ export const a1ProductDescriptionHtml = blockSchema.extend({
1900
+ source: z.object({
1901
+ namespace: z.string(),
1902
+ key: z.string(),
1903
+ title: z.string(),
1904
+ icon: z
1905
+ .object({
1906
+ expand: z.string().optional(),
1907
+ collapse: z.string().optional(),
1908
+ })
1909
+ .optional(),
1910
+ }),
1911
+ style: z.object({
1912
+ root: baseStyleSchema,
1913
+ title: z.object({
1914
+ root: baseStyleSchema,
1915
+ text: baseTextStyleSchema,
1916
+ icon: baseTextStyleSchema,
1917
+ }),
1918
+ titleExpanded: z.object({
1919
+ root: baseStyleSchema,
1920
+ text: baseTextStyleSchema,
1921
+ icon: baseTextStyleSchema,
1922
+ }),
1923
+ body: z.object({
1924
+ root: baseStyleSchema,
1925
+ text: baseTextStyleSchema,
1926
+ tags: z.object({
1927
+ p: baseTextStyleSchema,
1928
+ span: baseTextStyleSchema,
1929
+ div: baseTextStyleSchema,
1930
+ }),
1931
+ }),
1932
+ }),
1933
+ })
1934
+ export const a1ProductList = blockSchema.extend({
1935
+ style: z.object({
1936
+ root: baseStyleSchema,
1937
+ heading: baseTextStyleSchema,
1938
+ productList: z.object({
1939
+ product: productStyleSchema,
1940
+ root: baseStyleSchema,
1941
+ }),
1942
+ }),
1943
+ list: z
1944
+ .object({
1945
+ itemGap: z.number().optional(),
1946
+ })
1947
+ .optional(),
1948
+ source: z.object({
1949
+ heading: z.string(),
1950
+ namespace: z.string(),
1951
+ key: z.string(),
1952
+ }),
1953
+ })
1954
+
1955
+ export const a1AccordionImage = blockSchema.extend({
1956
+ style: z.object({
1957
+ root: baseStyleSchema,
1958
+ title: z.object({
1959
+ root: baseStyleSchema,
1960
+ text: baseTextStyleSchema,
1961
+ icon: baseTextStyleSchema,
1962
+ }),
1963
+ titleExpanded: z.object({
1964
+ root: baseStyleSchema,
1965
+ text: baseTextStyleSchema,
1966
+ icon: baseTextStyleSchema,
1967
+ }),
1968
+ body: z.object({
1969
+ root: baseStyleSchema,
1970
+ }),
1971
+ }),
1972
+ source: z.object({
1973
+ heading: z.string(),
1974
+ namespace: z.string(),
1975
+ key: z.string(),
1976
+ }),
1977
+ })
1978
+
1979
+ export const accordionImage = blockSchema.extend({
1980
+ style: z.object({
1981
+ root: baseStyleSchema,
1982
+ title: z.object({
1983
+ root: baseStyleSchema,
1984
+ text: baseTextStyleSchema,
1985
+ icon: baseTextStyleSchema,
1986
+ }),
1987
+ titleExpanded: z.object({
1988
+ root: baseStyleSchema,
1989
+ text: baseTextStyleSchema,
1990
+ icon: baseTextStyleSchema,
1991
+ }),
1992
+ body: z.object({
1993
+ root: baseStyleSchema,
1994
+ }),
1995
+ image: baseStyleSchema.optional(),
1996
+ }),
1997
+ source: z.object({
1998
+ title: z.string(),
1999
+ imageUrl: z.string(),
2000
+ icon: z
2001
+ .object({
2002
+ collapse: z.string().optional(),
2003
+ expand: z.string().optional(),
2004
+ })
2005
+ .optional(),
2006
+ }),
2007
+ options: z
2008
+ .object({
2009
+ defaultExpanded: z.boolean().optional(),
2010
+ })
2011
+ .optional(),
2012
+ })
2013
+
2014
+ export const webViewSchema = blockSchema
2015
+ export type AccordionImageConfig = z.infer<typeof accordionImage>
2016
+ export type A1AccordionImageConfig = z.infer<typeof a1AccordionImage>
2017
+ export type A1ProductListConfig = z.infer<typeof a1ProductList>
2018
+ export type A1ProductDescriptionConfig = z.infer<
2019
+ typeof a1ProductDescriptionHtml
2020
+ >
2021
+ export type A1AccordionConfig = z.infer<typeof a1AccordionSchema>
2022
+ export type A1ImageBannerConfig = z.infer<typeof a1ImageBannerSchema>
2023
+ export type AccountConfig = z.infer<typeof accountSchema>
2024
+ export const singleLevelNavigationSchema = blockSchema.extend({
2025
+ source: z.object({
2026
+ withImage: z.boolean(),
2027
+ items: z.array(
2028
+ z.object({
2029
+ image: z.string().optional(),
2030
+ title: z.string(),
2031
+ link: z
2032
+ .object({
2033
+ kind: z.string(),
2034
+ value: z.string(),
2035
+ })
2036
+ .optional(),
2037
+ })
2038
+ ),
2039
+ }),
2040
+ style: z.object({
2041
+ root: baseStyleSchema,
2042
+ navigation: z.object({
2043
+ imageNavigation: z.object({
2044
+ root: baseStyleSchema,
2045
+ title: z.object({
2046
+ root: baseStyleSchema,
2047
+ text: baseTextStyleSchema,
2048
+ }),
2049
+ icon: baseIconStyleSchema,
2050
+ }),
2051
+ textNavigation: z.object({
2052
+ root: baseStyleSchema,
2053
+ title: z.object({
2054
+ root: baseStyleSchema,
2055
+ text: baseTextStyleSchema,
2056
+ }),
2057
+ image: z.object({ baseStyleSchema }).optional(),
2058
+ }),
2059
+ }),
2060
+ }),
2061
+ })
2062
+ const navigationSchema = z.object({
2063
+ title: z.object({
2064
+ root: baseStyleSchema,
2065
+ text: baseTextStyleSchema,
2066
+ }),
2067
+ icon: baseIconStyleSchema,
2068
+ image: z.object({ baseStyleSchema }).optional(),
2069
+ })
2070
+ export const twoLevelNavigationSchema = blockSchema.extend({
2071
+ source: z.object({
2072
+ withImage: z.boolean(),
2073
+ withIcon: z.boolean().optional(),
2074
+ items: z.array(
2075
+ z.object({
2076
+ image: z.string().optional(),
2077
+ title: z.string(),
2078
+ directLink: z.boolean(),
2079
+ hidden: z.boolean().optional(),
2080
+ leftIcon: z.string().optional(),
2081
+ meta: z
2082
+ .object({
2083
+ width: z.number(),
2084
+ height: z.number(),
2085
+ })
2086
+ .optional(),
2087
+ subNavigations: z.array(
2088
+ z.object({
2089
+ title: z.string(),
2090
+ hidden: z.boolean().optional(),
2091
+ link: z
2092
+ .object({
2093
+ kind: z.string(),
2094
+ value: z.string(),
2095
+ external: z.boolean().optional(),
2096
+ })
2097
+ .optional(),
2098
+ })
2099
+ ),
2100
+ link: z
2101
+ .object({
2102
+ kind: z.string(),
2103
+ value: z.string(),
2104
+ external: z.boolean().optional(),
2105
+ })
2106
+ .optional(),
2107
+ })
2108
+ ),
2109
+ }),
2110
+ style: z.object({
2111
+ root: baseStyleSchema,
2112
+ navigation: z.object({
2113
+ root: z
2114
+ .object({
2115
+ backgroundColor: z.string().optional(),
2116
+ marginBottom: z.number().optional(),
2117
+ })
2118
+ .optional(),
2119
+ imageNavigation: z.object({
2120
+ root: baseStyleSchema,
2121
+ title: z.object({
2122
+ root: baseStyleSchema,
2123
+ text: baseTextStyleSchema,
2124
+ }),
2125
+ icon: baseIconStyleSchema,
2126
+ }),
2127
+ textNavigation: z.object({
2128
+ root: baseStyleSchema,
2129
+ active: navigationSchema.extend({
2130
+ title: z.object({
2131
+ root: baseStyleSchema,
2132
+ text: baseTextStyleSchema.extend({
2133
+ kind: z.string().optional(),
2134
+ }),
2135
+ }),
2136
+ }),
2137
+ inactive: navigationSchema.extend({
2138
+ title: z.object({
2139
+ root: baseStyleSchema,
2140
+ text: baseTextStyleSchema.extend({
2141
+ kind: z.string().optional(),
2142
+ }),
2143
+ }),
2144
+ }),
2145
+ }),
2146
+ subNavigations: z.object({
2147
+ subNavigationItem: z.object({
2148
+ title: baseTextStyleSchema,
2149
+ root: baseStyleSchema,
2150
+ }),
2151
+ root: baseStyleSchema,
2152
+ }),
2153
+ }),
2154
+ }),
2155
+ })
2156
+ export const tabbedProductListConfig = blockSchema.extend({
2157
+ source: z.object({
2158
+ collections: z.array(
2159
+ z.object({
2160
+ name: z.string(),
2161
+ id: z.string(),
2162
+ heading: z.string().optional(),
2163
+ })
2164
+ ),
2165
+ showItemCount: z.number(),
2166
+ bottomLinkText: z.string(),
2167
+ heading: z.string(),
2168
+ subTitle: z.string().optional(),
2169
+ activeStartIcon: z.string().optional(),
2170
+ activeEndIcon: z.string().optional(),
2171
+ inactiveStartIcon: z.string().optional(),
2172
+ inactiveEndIcon: z.string().optional(),
2173
+ icon: z.string().optional(),
2174
+ }),
2175
+ style: z.object({
2176
+ tabs: z.object({
2177
+ root: baseStyleSchema,
2178
+ heading: baseTextStyleSchema.extend({
2179
+ kind: z.string().optional(),
2180
+ }),
2181
+ tabListContainer: baseStyleSchema.optional(),
2182
+ tabList: baseStyleSchema.optional(),
2183
+ active: z.object({
2184
+ root: baseStyleSchema,
2185
+ name: baseTextStyleSchema,
2186
+ startIcon: baseIconStyleSchema.optional(),
2187
+ endIcon: baseIconStyleSchema.optional(),
2188
+ icon: baseIconStyleSchema.optional(),
2189
+ }),
2190
+ inactive: z.object({
2191
+ root: baseStyleSchema,
2192
+ name: baseTextStyleSchema,
2193
+ startIcon: baseIconStyleSchema.optional(),
2194
+ endIcon: baseIconStyleSchema.optional(),
2195
+ icon: baseIconStyleSchema.optional(),
2196
+ }),
2197
+ listWrapper: baseStyleSchema.optional(),
2198
+ }),
2199
+ root: z.object({
2200
+ backgroundColor: z.string(),
2201
+ paddingBottom: z.number().optional(),
2202
+ paddingLeft: z.number().optional(),
2203
+ paddingRight: z.number().optional(),
2204
+ paddingTop: z.number().optional(),
2205
+ }),
2206
+ container: z
2207
+ .object({
2208
+ backgroundColor: z.string().optional(),
2209
+ paddingBottom: z.number().optional(),
2210
+ paddingTop: z.number().optional(),
2211
+ })
2212
+ .optional(),
2213
+ heading: z.object({
2214
+ color: z.string(),
2215
+ fontSize: z.number(),
2216
+ fontWeight: fontWeightSchema,
2217
+ }),
2218
+ product: productStyleSchema,
2219
+ productV2: z
2220
+ .object({
2221
+ root: z
2222
+ .object({
2223
+ backgroundColor: z.string().optional(),
2224
+ })
2225
+ .optional(),
2226
+ })
2227
+ .optional(),
2228
+ list: z
2229
+ .object({
2230
+ itemGap: z.number().optional(),
2231
+ })
2232
+ .optional(),
2233
+ bottomLink: z.object({
2234
+ color: z.string(),
2235
+ fontSize: z.number(),
2236
+ fontWeight: fontWeightSchema,
2237
+ root: baseStyleSchema.optional(),
2238
+ }),
2239
+ }),
2240
+ })
2241
+ export const orderDetailsHeader = blockSchema.extend({
2242
+ style: z.object({
2243
+ root: baseStyleSchema,
2244
+ date: baseTextStyleSchema,
2245
+ orderPrice: z.object({
2246
+ root: baseStyleSchema,
2247
+ text: baseTextStyleSchema,
2248
+ number: baseTextStyleSchema,
2249
+ }),
2250
+ orderNumber: z.object({
2251
+ root: baseStyleSchema,
2252
+ text: baseTextStyleSchema,
2253
+ number: baseTextStyleSchema,
2254
+ }),
2255
+ }),
2256
+ })
2257
+ export const orderProductList = blockSchema.extend({
2258
+ style: z.object({
2259
+ heading: baseTextStyleSchema,
2260
+ root: baseStyleSchema,
2261
+ item: z.object({
2262
+ image: z.object({
2263
+ height: z.number(),
2264
+ width: z.number(),
2265
+ }),
2266
+ root: baseStyleSchema,
2267
+
2268
+ contentBox: z.object({
2269
+ quantity: baseTextStyleSchema,
2270
+ title: baseTextStyleSchema,
2271
+ price: baseTextStyleSchema,
2272
+ root: baseStyleSchema,
2273
+ }),
2274
+ }),
2275
+ }),
2276
+ source: z.object({
2277
+ static: z.object({
2278
+ title: z.string(),
2279
+ quantity: z.string(),
2280
+ }),
2281
+ }),
2282
+ })
2283
+ const orderPaymentItemSchema = z.object({
2284
+ root: baseStyleSchema,
2285
+ text: baseTextStyleSchema,
2286
+ price: baseTextStyleSchema,
2287
+ })
2288
+ export const orderPaymentDetails = blockSchema.extend({
2289
+ style: z.object({
2290
+ root: baseStyleSchema,
2291
+ subTotal: orderPaymentItemSchema,
2292
+ shipping: orderPaymentItemSchema,
2293
+ discount: orderPaymentItemSchema,
2294
+ total: orderPaymentItemSchema,
2295
+ paymentStatus: z.object({
2296
+ status: baseTextStyleSchema,
2297
+ root: baseStyleSchema,
2298
+ text: baseTextStyleSchema,
2299
+ }),
2300
+ }),
2301
+ source: z.object({
2302
+ static: z.object({
2303
+ title: z.string(),
2304
+ }),
2305
+ }),
2306
+ })
2307
+ export const orderDeliveryDetails = blockSchema.extend({
2308
+ style: z.object({
2309
+ root: baseStyleSchema,
2310
+ heading: baseTextStyleSchema,
2311
+ shippingAddress: z.object({
2312
+ root: baseStyleSchema,
2313
+ name: baseTextStyleSchema,
2314
+ address: baseTextStyleSchema,
2315
+ city: baseTextStyleSchema,
2316
+ contactNumber: baseTextStyleSchema,
2317
+ title: baseTextStyleSchema,
2318
+ }),
2319
+ orderCancelModal: z.object({
2320
+ root: baseStyleSchema,
2321
+ buttonGroup: z.object({
2322
+ root: baseStyleSchema,
2323
+ backButton: z.object({
2324
+ root: baseStyleSchema,
2325
+ text: baseTextStyleSchema,
2326
+ }),
2327
+ confirmOrderCancelButton: z.object({
2328
+ root: baseStyleSchema,
2329
+ text: baseTextStyleSchema,
2330
+ }),
2331
+ }),
2332
+ title: z.object({
2333
+ root: baseStyleSchema,
2334
+ title: baseTextStyleSchema,
2335
+ helperText: baseTextStyleSchema,
2336
+ }),
2337
+ divider: baseStyleSchema,
2338
+ }),
2339
+ orderCancelButton: z.object({
2340
+ root: baseStyleSchema,
2341
+ text: baseTextStyleSchema,
2342
+ }),
2343
+ }),
2344
+
2345
+ source: z.object({
2346
+ static: z.object({
2347
+ title: baseTextStyleSchema,
2348
+ shippingAddress: baseTextStyleSchema,
2349
+ }),
2350
+ orderCancelModal: z.object({
2351
+ backButtonText: z.string(),
2352
+ confirmOrderCancelButtonText: z.string(),
2353
+ title: z.object({
2354
+ helperText: z.string().optional(),
2355
+ titleText: z.string(),
2356
+ }),
2357
+ }),
2358
+ orderCancelButtonText: z.string(),
2359
+ }),
2360
+ })
2361
+
2362
+ export const tailoredVariantFormBlock = blockSchema.extend({
2363
+ layout: z.object({
2364
+ sections: z.array(
2365
+ z.object({
2366
+ title: z.string(),
2367
+ fields: z.array(
2368
+ z.object({
2369
+ id: z.enum([
2370
+ 'HeightFT',
2371
+ 'HeightIN',
2372
+ 'Bust',
2373
+ 'NaturalWaist',
2374
+ 'LowerWaist',
2375
+ 'Hip',
2376
+ 'Additional Info For BodyShape',
2377
+ 'Shoulder',
2378
+ 'UpperArm',
2379
+ 'ArmHole',
2380
+ 'TopLength',
2381
+ 'ProblemArea',
2382
+ ]),
2383
+ label: z.string(),
2384
+ placeholder: z.string(),
2385
+ required: z.boolean(),
2386
+ })
2387
+ ),
2388
+ })
2389
+ ),
2390
+ }),
2391
+ source: z.object({
2392
+ submitButton: z.string(),
2393
+ }),
2394
+ style: z.object({
2395
+ root: baseStyleSchema,
2396
+ submitButton: baseStyleSchema,
2397
+ sectionHeading: baseTextStyleSchema,
2398
+ }),
2399
+ })
2400
+ const announcementCarousel = blockSchema.extend({
2401
+ style: z.object({
2402
+ root: baseStyleSchema,
2403
+ item: z.object({
2404
+ root: baseStyleSchema,
2405
+ text: baseTextStyleSchema,
2406
+ icon: baseIconStyleSchema,
2407
+ }),
2408
+ }),
2409
+ source: z.object({
2410
+ items: z.array(
2411
+ z.object({
2412
+ text: baseTextStyleSchema,
2413
+ link: linkSchema,
2414
+ hidden: z.boolean().optional(),
2415
+ })
2416
+ ),
2417
+ }),
2418
+ })
2419
+ const announcementTicker = blockSchema.extend({
2420
+ style: z.object({
2421
+ root: baseStyleSchema,
2422
+ item: z.object({
2423
+ root: baseStyleSchema,
2424
+ text: baseTextStyleSchema,
2425
+ icon: baseIconStyleSchema,
2426
+ }),
2427
+ }),
2428
+ options: z
2429
+ .object({
2430
+ speed: z.number().optional(),
2431
+ reverse: z.boolean().optional(),
2432
+ })
2433
+ .optional(),
2434
+ source: z.object({
2435
+ items: z.array(
2436
+ z.object({
2437
+ startIcon: z.string().optional(),
2438
+ text: baseTextStyleSchema,
2439
+ link: linkSchema,
2440
+ hidden: z.boolean().optional(),
2441
+ })
2442
+ ),
2443
+ }),
2444
+ })
2445
+
2446
+ export const socialSignInSchema = blockSchema.extend({
2447
+ options: z.object({
2448
+ providers: z.array(z.enum(['google', 'apple'])),
2449
+ }),
2450
+ source: z.object({
2451
+ apple: z.object({
2452
+ buttonText: z.string(),
2453
+ }),
2454
+ google: z.object({
2455
+ buttonText: z.string(),
2456
+ }),
2457
+ }),
2458
+ style: z.object({
2459
+ root: baseStyleSchema,
2460
+ apple: baseStyleSchema,
2461
+ google: baseStyleSchema,
2462
+ }),
2463
+ })
2464
+
2465
+ export const recentOrdersSchema = blockSchema.extend({
2466
+ style: z.object({
2467
+ recentOrder: z.object({
2468
+ root: baseStyleSchema,
2469
+ viewOrderDetailButton: z.object({
2470
+ root: baseStyleSchema,
2471
+ text: baseTextStyleSchema,
2472
+ }),
2473
+ trackOrderButton: z.object({
2474
+ root: baseStyleSchema,
2475
+ text: baseTextStyleSchema,
2476
+ }),
2477
+ orderRefundedAmount: z.object({
2478
+ number: baseStyleSchema,
2479
+ root: baseStyleSchema,
2480
+ text: baseTextStyleSchema,
2481
+ }),
2482
+ orderedItemsTitle: z.object({
2483
+ root: baseStyleSchema,
2484
+ title: baseTextStyleSchema,
2485
+ more: baseTextStyleSchema,
2486
+ }),
2487
+ orderNumber: z.object({
2488
+ number: baseStyleSchema,
2489
+ root: baseStyleSchema,
2490
+ text: baseTextStyleSchema,
2491
+ }),
2492
+ orderStatus: z.object({
2493
+ root: baseStyleSchema,
2494
+ text: baseTextStyleSchema,
2495
+ status: baseTextStyleSchema,
2496
+ }),
2497
+ title: baseTextStyleSchema,
2498
+ orderTotal: z.object({
2499
+ number: baseStyleSchema,
2500
+ root: baseStyleSchema,
2501
+ text: baseTextStyleSchema,
2502
+ }),
2503
+ wrapperButtons: baseStyleSchema,
2504
+ }),
2505
+ root: baseStyleSchema,
2506
+ }),
2507
+ source: z.object({
2508
+ shippingAddress: z.object({
2509
+ title: z.string(),
2510
+ }),
2511
+ recentOrder: z.object({
2512
+ title: z.string(),
2513
+ }),
2514
+ }),
2515
+ options: z.object({
2516
+ showTrackOrderButton: z.boolean(),
2517
+ trackOrderLinkObj: z.object({
2518
+ kind: z.enum([`screen`, `cart`, `collection`, `product`, `url`, `page`]),
2519
+ value: z.string(),
2520
+ }),
2521
+ showReorderButton: z.boolean().optional(),
2522
+ }),
2523
+ })
2524
+
2525
+ export const recentlyViewedSchema = blockSchema.extend({
2526
+ source: z.object({
2527
+ title: z.string().optional(),
2528
+ subTitle: z.string().optional(),
2529
+ showItemCount: z.number().optional(),
2530
+ bottomLinkText: z.string().optional(),
2531
+ skeletonCount: z.number().optional(),
2532
+ }),
2533
+ style: z.object({
2534
+ root: baseStyleSchema,
2535
+ heading: baseTextStyleSchema.extend({
2536
+ kind: z.string().optional(),
2537
+ }),
2538
+ productV2: z.record(z.string(), z.any()).optional(),
2539
+ product: z.object({
2540
+ root: baseStyleSchema,
2541
+ title: baseTextStyleSchema,
2542
+ icon: baseIconStyleSchema,
2543
+ ratingCount: baseTextStyleSchema,
2544
+ price: baseTextStyleSchema,
2545
+ compareAtPrice: baseTextStyleSchema,
2546
+ discountLabel: baseTextStyleSchema,
2547
+ addToCartButton: z.object({
2548
+ root: baseStyleSchema,
2549
+ text: baseTextStyleSchema,
2550
+ }),
2551
+ variantSelector: z
2552
+ .object({
2553
+ root: baseStyleSchema,
2554
+ variant: z.object({
2555
+ selected: z.object({}),
2556
+ unselected: z.object({}),
2557
+ }),
2558
+ })
2559
+ .optional(),
2560
+ imageBox: baseStyleSchema,
2561
+ contentBox: baseStyleSchema,
2562
+ }),
2563
+ list: z
2564
+ .object({
2565
+ itemGap: z.number().optional(),
2566
+ root: baseStyleSchema.optional(),
2567
+ wrapper: baseStyleSchema.optional(),
2568
+ })
2569
+ .optional(),
2570
+ bottomLink: z
2571
+ .object({
2572
+ color: z.string(),
2573
+ fontSize: z.number(),
2574
+ fontWeight: fontWeightSchema,
2575
+ container: baseStyleSchema.optional(),
2576
+ root: baseStyleSchema.optional(),
2577
+ })
2578
+ .optional(),
2579
+ skeleton: z
2580
+ .object({
2581
+ root: baseStyleSchema,
2582
+ })
2583
+ .optional(),
2584
+ }),
2585
+ options: z
2586
+ .object({
2587
+ skeleton: z
2588
+ .object({
2589
+ colors: z.tuple([z.string(), z.string()]),
2590
+ })
2591
+ .optional(),
2592
+ productItemsVisibility: productItemsVisibilitySchema.optional(),
2593
+ order: z
2594
+ .array(
2595
+ z.enum([
2596
+ 'priceBox',
2597
+ 'ratingsBox',
2598
+ 'image',
2599
+ 'title',
2600
+ 'addToCart',
2601
+ 'discountLabel',
2602
+ ])
2603
+ )
2604
+ .optional(),
2605
+ productImage: z
2606
+ .object({
2607
+ type: z.enum(['carousel', 'image']),
2608
+ hotCorners: z.record(
2609
+ hotPositionsSchema,
2610
+ z.object({
2611
+ source: z.enum(['tags', 'auto']),
2612
+ type: z.enum(['bestseller', 'discount']),
2613
+ tagText: z.string(),
2614
+ style: z.object({
2615
+ root: baseStyleSchema,
2616
+ text: baseTextStyleSchema,
2617
+ }),
2618
+ position: hotPositionsSchema,
2619
+ })
2620
+ ),
2621
+ })
2622
+ .optional(),
2623
+ showRatingCount: z.boolean().optional(),
2624
+ navigateToProductReviews: z.boolean().optional(),
2625
+ metafieldText: z
2626
+ .object({
2627
+ namespace: z.string(),
2628
+ metafieldKey: z.string(),
2629
+ nativeTextProps: z.any().optional(),
2630
+ })
2631
+ .optional(),
2632
+ showViewAll: z.boolean().optional(),
2633
+ productCardV2: z.record(z.string(), z.any()).optional(),
2634
+ })
2635
+ .optional(),
2636
+ })
2637
+
2638
+ export const previousOrdersSchema = blockSchema.extend({
2639
+ style: z.object({
2640
+ previousOrder: z.object({
2641
+ root: baseStyleSchema,
2642
+ viewOrderDetailButton: z.object({
2643
+ root: baseStyleSchema,
2644
+ text: baseTextStyleSchema,
2645
+ }),
2646
+ trackOrderButton: z.object({
2647
+ root: baseStyleSchema,
2648
+ text: baseTextStyleSchema,
2649
+ }),
2650
+ orderRefundedAmount: z.object({
2651
+ number: baseStyleSchema,
2652
+ root: baseStyleSchema,
2653
+ text: baseTextStyleSchema,
2654
+ }),
2655
+ orderedItemsTitle: z.object({
2656
+ root: baseStyleSchema,
2657
+ title: baseTextStyleSchema,
2658
+ more: baseTextStyleSchema,
2659
+ }),
2660
+ orderNumber: z.object({
2661
+ number: baseStyleSchema,
2662
+ root: baseStyleSchema,
2663
+ text: baseTextStyleSchema,
2664
+ }),
2665
+ orderStatus: z.object({
2666
+ root: baseStyleSchema,
2667
+ text: baseTextStyleSchema,
2668
+ status: baseTextStyleSchema,
2669
+ }),
2670
+ title: baseTextStyleSchema,
2671
+ orderTotal: z.object({
2672
+ number: baseStyleSchema,
2673
+ root: baseStyleSchema,
2674
+ text: baseTextStyleSchema,
2675
+ }),
2676
+ wrapperButtons: baseStyleSchema,
2677
+ orderDate: z.object({
2678
+ root: baseStyleSchema,
2679
+ text: baseTextStyleSchema,
2680
+ }),
2681
+ }),
2682
+ root: baseStyleSchema,
2683
+ empty: z
2684
+ .object({
2685
+ root: baseStyleSchema,
2686
+ image: baseStyleSchema,
2687
+ text: baseTextStyleSchema,
2688
+ heading: baseTextStyleSchema,
2689
+ })
2690
+ .optional(),
2691
+ }),
2692
+ source: z.object({
2693
+ previousOrder: z.object({
2694
+ title: z.string(),
2695
+ }),
2696
+ empty: z
2697
+ .object({
2698
+ image: z.string(),
2699
+ heading: z.string(),
2700
+ caption: z.string(),
2701
+ })
2702
+ .optional(),
2703
+ }),
2704
+ options: z
2705
+ .object({
2706
+ showTrackOrderButton: z.boolean().optional(),
2707
+ trackOrderLinkObj: z
2708
+ .object({
2709
+ kind: z.enum([
2710
+ `screen`,
2711
+ `cart`,
2712
+ `collection`,
2713
+ `product`,
2714
+ `url`,
2715
+ `page`,
2716
+ ]),
2717
+ value: z.string(),
2718
+ })
2719
+ .optional(),
2720
+ limit: z.number().optional(),
2721
+ })
2722
+ .optional(),
2723
+ })
2724
+
2725
+ export const wishlistedItemsSchema = blockSchema.extend({
2726
+ source: z.object({
2727
+ title: z.string().optional(),
2728
+ subTitle: z.string().optional(),
2729
+ showItemCount: z.number().optional(),
2730
+ bottomLinkText: z.string().optional(),
2731
+ skeletonCount: z.number().optional(),
2732
+ }),
2733
+ style: z.object({
2734
+ root: z.object({
2735
+ backgroundColor: z.string(),
2736
+ paddingBottom: z.number().optional(),
2737
+ paddingTop: z.number().optional(),
2738
+ }),
2739
+ heading: baseTextStyleSchema.extend({
2740
+ kind: z.string().optional(),
2741
+ }),
2742
+ productV2: z.record(z.string(), z.any()).optional(),
2743
+ product: z.object({
2744
+ root: baseStyleSchema,
2745
+ title: baseTextStyleSchema,
2746
+ icon: baseIconStyleSchema,
2747
+ ratingCount: baseTextStyleSchema,
2748
+ price: baseTextStyleSchema,
2749
+ compareAtPrice: baseTextStyleSchema,
2750
+ discountLabel: baseTextStyleSchema,
2751
+ addToCartButton: z.object({
2752
+ root: baseStyleSchema,
2753
+ text: baseTextStyleSchema,
2754
+ }),
2755
+ removeFromWishlistButton: z
2756
+ .object({
2757
+ root: baseStyleSchema,
2758
+ icon: baseIconStyleSchema,
2759
+ })
2760
+ .optional(),
2761
+ variantSelector: z
2762
+ .object({
2763
+ root: baseStyleSchema,
2764
+ variant: z.object({
2765
+ selected: z.object({}),
2766
+ unselected: z.object({}),
2767
+ }),
2768
+ })
2769
+ .optional(),
2770
+ imageBox: baseStyleSchema,
2771
+ contentBox: baseStyleSchema,
2772
+ }),
2773
+ list: z
2774
+ .object({
2775
+ itemGap: z.number().optional(),
2776
+ root: baseStyleSchema.optional(),
2777
+ wrapper: baseStyleSchema.optional(),
2778
+ })
2779
+ .optional(),
2780
+ bottomLink: z
2781
+ .object({
2782
+ color: z.string(),
2783
+ fontSize: z.number(),
2784
+ fontWeight: fontWeightSchema,
2785
+ container: baseStyleSchema.optional(),
2786
+ root: baseStyleSchema.optional(),
2787
+ display: z.string().optional(),
2788
+ })
2789
+ .optional(),
2790
+ skeleton: z
2791
+ .object({
2792
+ root: baseStyleSchema,
2793
+ })
2794
+ .optional(),
2795
+ empty: z
2796
+ .object({
2797
+ root: baseStyleSchema,
2798
+ image: baseStyleSchema,
2799
+ text: baseTextStyleSchema,
2800
+ heading: baseTextStyleSchema,
2801
+ })
2802
+ .optional(),
2803
+ }),
2804
+ options: z
2805
+ .object({
2806
+ skeleton: z
2807
+ .object({
2808
+ colors: z.tuple([z.string(), z.string()]),
2809
+ })
2810
+ .optional(),
2811
+ productItemsVisibility: productItemsVisibilitySchema.optional(),
2812
+ order: z
2813
+ .enum([
2814
+ 'priceBox',
2815
+ 'ratingsBox',
2816
+ 'image',
2817
+ 'title',
2818
+ 'addToCart',
2819
+ 'discountLabel',
2820
+ ])
2821
+ .optional(),
2822
+ productImage: z
2823
+ .object({
2824
+ type: z.enum(['carousel', 'image']),
2825
+ hotCorners: z.record(
2826
+ hotPositionsSchema,
2827
+ z.object({
2828
+ source: z.enum(['tags', 'auto']),
2829
+ type: z.enum(['bestseller', 'discount']),
2830
+ tagText: z.string(),
2831
+ style: z.object({
2832
+ root: baseStyleSchema,
2833
+ text: baseTextStyleSchema,
2834
+ }),
2835
+ position: hotPositionsSchema,
2836
+ })
2837
+ ),
2838
+ })
2839
+ .optional(),
2840
+ showRatingCount: z.boolean().optional(),
2841
+ navigateToProductReviews: z.boolean().optional(),
2842
+ metafieldText: z
2843
+ .object({
2844
+ namespace: z.string(),
2845
+ metafieldKey: z.string(),
2846
+ nativeTextProps: z.any().optional(),
2847
+ })
2848
+ .optional(),
2849
+ })
2850
+ .optional(),
2851
+ })
2852
+
2853
+ export const metafieldTextBlockSchema = blockSchema.extend({
2854
+ source: z.object({
2855
+ metafield: z.object({
2856
+ namespace: z.string(),
2857
+ key: z.string(),
2858
+ }),
2859
+ }),
2860
+ style: z.object({
2861
+ textStyle: baseTextStyleSchema,
2862
+ root: baseStyleSchema,
2863
+ }),
2864
+ })
2865
+
2866
+ export const modalFreeEngravingSchema = blockSchema.extend({
2867
+ style: z.object({
2868
+ root: baseStyleSchema,
2869
+ heading: baseTextStyleSchema,
2870
+ infoText: baseTextStyleSchema,
2871
+ input: baseTextStyleSchema,
2872
+ addToCartButton: baseStyleSchema,
2873
+ }),
2874
+ options: z.object({
2875
+ buyNow: z.boolean(),
2876
+ }),
2877
+ })
2878
+ export const modalSigninBlockSchema = blockSchema.extend({
2879
+ style: z.object({
2880
+ root: baseStyleSchema,
2881
+ title: baseTextStyleSchema,
2882
+ description: baseTextStyleSchema,
2883
+ buttonsContainer: baseStyleSchema,
2884
+ signinButton: z.object({
2885
+ root: baseStyleSchema,
2886
+ text: baseTextStyleSchema,
2887
+ }),
2888
+ createAccountButton: z.object({
2889
+ root: baseStyleSchema,
2890
+ text: baseTextStyleSchema,
2891
+ }),
2892
+ socialSigninIcons: z.object({
2893
+ root: baseStyleSchema,
2894
+ signin: z.object({
2895
+ root: baseStyleSchema,
2896
+ icon: baseStyleSchema,
2897
+ }),
2898
+ }),
2899
+ }),
2900
+ settings: z.object({
2901
+ options: z.object({
2902
+ title: z.string(),
2903
+ description: z.string(),
2904
+ signinButton: z.object({
2905
+ text: z.string(),
2906
+ }),
2907
+ createAccountButton: z.object({
2908
+ text: z.string(),
2909
+ }),
2910
+ signinScreen: z.string().optional(),
2911
+ }),
2912
+ }),
2913
+ })
2914
+ export const modalSignUpBlockSchema = blockSchema.extend({
2915
+ style: z.object({
2916
+ root: baseStyleSchema,
2917
+ title: baseTextStyleSchema,
2918
+ description: baseTextStyleSchema,
2919
+ buttonsContainer: baseStyleSchema,
2920
+ signupButton: z.object({
2921
+ root: baseStyleSchema,
2922
+ text: baseTextStyleSchema,
2923
+ }),
2924
+ content: z.object({
2925
+ heading: baseStyleSchema,
2926
+ subheading: baseStyleSchema,
2927
+ socialAuth: z.object({
2928
+ root: baseStyleSchema,
2929
+ apple: baseStyleSchema,
2930
+ google: baseStyleSchema,
2931
+ }),
2932
+ loginWithEmail: baseStyleSchema,
2933
+ }),
2934
+ }),
2935
+ settings: z.object({
2936
+ options: z.object({
2937
+ title: z.string(),
2938
+ description: z.string(),
2939
+ signupButton: z.object({
2940
+ text: z.string(),
2941
+ }),
2942
+ }),
2943
+ }),
2944
+ })
2945
+ export const rebuyProductRecommendationsSchema = blockSchema.extend({
2946
+ options: z.object({ limit: z.number().optional() }),
2947
+ })
2948
+ export const continueAsGuestSchema = blockSchema.extend({
2949
+ style: z.object({
2950
+ root: baseStyleSchema,
2951
+ text: baseTextStyleSchema,
2952
+ }),
2953
+ source: z.object({
2954
+ text: z.string(),
2955
+ }),
2956
+ })
2957
+
2958
+ export const brewCollectionImageBanner = blockSchema.extend({
2959
+ style: z.object({
2960
+ image: baseStyleSchema.optional(),
2961
+ body: z
2962
+ .object({
2963
+ root: baseStyleSchema,
2964
+ })
2965
+ .optional(),
2966
+ }),
2967
+ settings: z.object({
2968
+ source: z.object({
2969
+ metafield: z
2970
+ .object({
2971
+ namespace: z.string(),
2972
+ key: z.string(),
2973
+ })
2974
+ .optional(),
2975
+ }),
2976
+ }),
2977
+ })
2978
+
2979
+ export const FlitsRulesListBlockSchema = blockSchema.extend({
2980
+ style: z.object({
2981
+ root: baseStyleSchema,
2982
+ button: z.object({
2983
+ root: baseStyleSchema,
2984
+ text: baseTextStyleSchema,
2985
+ }),
2986
+ accordian: z.object({
2987
+ title: z.object({ root: baseStyleSchema, text: baseTextStyleSchema }),
2988
+ }),
2989
+ rule: z.object({
2990
+ root: baseStyleSchema,
2991
+ title: baseTextStyleSchema,
2992
+ description: baseTextStyleSchema,
2993
+ button: z.object({
2994
+ root: baseStyleSchema,
2995
+ text: baseTextStyleSchema,
2996
+ }),
2997
+ earnedText: baseTextStyleSchema,
2998
+ }),
2999
+ }),
3000
+ source: z.object({
3001
+ title: z.string(),
3002
+ buttonIcon: z.string(),
3003
+ collapseIcon: z.string(),
3004
+ expandIcon: z.string(),
3005
+ rules: z.array(
3006
+ z.object({
3007
+ title: z.string(),
3008
+ description: z.string(),
3009
+ buttonText: z.string().optional(),
3010
+ ruleId: z.string().optional(),
3011
+ redirect: z.string().optional(),
3012
+ })
3013
+ ),
3014
+ }),
3015
+ })
3016
+
3017
+ export const TabbedBlockListSchema = blockSchema.extend({
3018
+ style: z.object({
3019
+ tabItem: z.object({
3020
+ root: baseStyleSchema,
3021
+ title: baseStyleSchema,
3022
+ activeStyle: z.object({
3023
+ root: baseStyleSchema,
3024
+ title: baseStyleSchema,
3025
+ }),
3026
+ }),
3027
+ root: baseStyleSchema,
3028
+ tabHeaderContainer: baseStyleSchema,
3029
+ tabPaneContainer: baseStyleSchema,
3030
+ }),
3031
+ childrens: z.array(z.string()),
3032
+ })
3033
+
3034
+ export const FlitsCreditsBlockSchema = blockSchema.extend({
3035
+ style: z.object({
3036
+ root: baseStyleSchema,
3037
+ earnedCredits: z.object({
3038
+ root: baseStyleSchema,
3039
+ title: baseTextStyleSchema,
3040
+ credits: baseTextStyleSchema,
3041
+ }),
3042
+ currentCredits: z.object({
3043
+ root: baseStyleSchema,
3044
+ title: baseTextStyleSchema,
3045
+ credits: baseTextStyleSchema,
3046
+ }),
3047
+ spentCredits: z.object({
3048
+ root: baseStyleSchema,
3049
+ title: baseTextStyleSchema,
3050
+ credits: baseTextStyleSchema,
3051
+ }),
3052
+ }),
3053
+ })
3054
+
3055
+ export const CurrencySelectorBlockSchema = blockSchema.extend({
3056
+ style: z.object({
3057
+ root: baseStyleSchema,
3058
+ currencySelector: z.object({
3059
+ currencyContainer: baseStyleSchema,
3060
+ flag: baseTextStyleSchema,
3061
+ countryName: baseTextStyleSchema,
3062
+ currencySymbol: baseTextStyleSchema,
3063
+ icon: baseIconStyleSchema,
3064
+ }),
3065
+ }),
3066
+ settings: z.object({
3067
+ source: z.any(),
3068
+ options: z.any(),
3069
+ }),
3070
+ })
3071
+
3072
+ const baseChildrenSchema = z.object({
3073
+ key: z.string(),
3074
+ kind: z.string(),
3075
+ })
3076
+
3077
+ type Children = z.infer<typeof baseChildrenSchema> & {
3078
+ children: Array<Children | string>
3079
+ }
3080
+
3081
+ const childrenLayoutSchema: z.ZodType<Children> = baseChildrenSchema.extend({
3082
+ children: z.lazy(() => z.array(z.union([childrenLayoutSchema, z.string()]))),
3083
+ })
3084
+
3085
+ const layoutSchema = z.array(z.union([z.string(), childrenLayoutSchema]))
3086
+
3087
+ export const SingleProductCardV2Schema = blockSchema.extend({
3088
+ style: z.object({
3089
+ root: baseStyleSchema.optional(),
3090
+ productV2: z.any(),
3091
+ wrapperProduct: baseStyleSchema.optional(),
3092
+ title: z
3093
+ .object({
3094
+ root: baseStyleSchema.optional(),
3095
+ text: baseTextStyleSchema.optional(),
3096
+ })
3097
+ .optional(),
3098
+ }),
3099
+ settings: z.object({
3100
+ source: z.object({
3101
+ handle: z.string(),
3102
+ title: z.string().optional(),
3103
+ }),
3104
+ options: z.object({
3105
+ productCardV2: z.record(z.string(), z.any()),
3106
+ }),
3107
+ layout: layoutSchema,
3108
+ }),
3109
+ })
3110
+
3111
+ export const baseButtonV2Schema = z.object({
3112
+ // button must have style property in config
3113
+ style: z.object({
3114
+ kind: z.string().optional(),
3115
+ root: baseStyleSchema,
3116
+ text: baseTextStyleSchema.optional(),
3117
+ startIcon: z
3118
+ .object({
3119
+ root: baseStyleSchema.optional(),
3120
+ icon: baseIconStyleSchema,
3121
+ })
3122
+ .optional(),
3123
+
3124
+ endIcon: z
3125
+ .object({
3126
+ root: baseStyleSchema.optional(),
3127
+ icon: baseIconStyleSchema,
3128
+ })
3129
+ .optional(),
3130
+ loader: z
3131
+ .object({
3132
+ root: baseStyleSchema.optional(),
3133
+ indicator: z
3134
+ .object({
3135
+ root: baseStyleSchema.optional(),
3136
+ })
3137
+ .optional(),
3138
+ })
3139
+ .optional(),
3140
+ }),
3141
+ text: z.string().optional(),
3142
+ startIcon: z.string().optional(),
3143
+ endIcon: z.string().optional(),
3144
+ textProps: z.object({}).optional(),
3145
+ })
3146
+
3147
+ type ButtonV2 = z.infer<typeof baseButtonV2Schema> & {
3148
+ style: {
3149
+ states?: {
3150
+ disabled?: ButtonV2['style']
3151
+ active?: ButtonV2['style']
3152
+ }
3153
+ }
3154
+ }
3155
+
3156
+ export const buttonV2Schema: z.ZodType<ButtonV2> = baseButtonV2Schema.extend({
3157
+ states: z
3158
+ .object({
3159
+ disabled: z.lazy(() => buttonV2Schema).optional(),
3160
+ })
3161
+ .optional(),
3162
+ })
3163
+ export const accordionStyleSchema = z.object({
3164
+ startEnhancer: z
3165
+ .object({
3166
+ icon: baseIconStyleSchema.optional(),
3167
+ })
3168
+ .optional(),
3169
+ root: baseStyleSchema.optional(),
3170
+ title: z
3171
+ .object({
3172
+ root: baseStyleSchema.optional(),
3173
+ text: baseTextStyleSchema.optional(),
3174
+ icon: baseIconStyleSchema.optional(),
3175
+ })
3176
+ .optional(),
3177
+ titleExpanded: z
3178
+ .object({
3179
+ root: baseStyleSchema.optional(),
3180
+ text: baseTextStyleSchema.optional(),
3181
+ icon: baseIconStyleSchema.optional(),
3182
+ })
3183
+ .optional(),
3184
+ body: z
3185
+ .object({
3186
+ root: baseStyleSchema.optional(),
3187
+ text: baseTextStyleSchema.optional(),
3188
+ tags: z.object({
3189
+ p: baseTextStyleSchema.optional(),
3190
+ span: baseTextStyleSchema.optional(),
3191
+ div: baseTextStyleSchema.optional(),
3192
+ }),
3193
+ })
3194
+ .optional(),
3195
+ richTitle: richTextStyleSchema.optional(),
3196
+ })
3197
+
3198
+ const accordionItemSchema = z.object({
3199
+ title: z.string(),
3200
+ html: z.string(),
3201
+ startEnhancer: z.string().optional(),
3202
+ external: z.boolean().optional(),
3203
+ })
3204
+
3205
+ export const AccordionListSchema = blockSchema.extend({
3206
+ style: z.object({
3207
+ wrapperContent: baseStyleSchema.optional(),
3208
+ root: baseStyleSchema.optional(),
3209
+ richHeading: richTextStyleSchema.optional(),
3210
+ richDescription: richTextStyleSchema.optional(),
3211
+ accordion: accordionStyleSchema.optional(),
3212
+ richText: richTextStyleSchema.optional(),
3213
+ }),
3214
+ settings: z.object({
3215
+ source: z.object({
3216
+ items: z.array(accordionItemSchema),
3217
+ icon: z
3218
+ .object({
3219
+ expand: z.string().optional(),
3220
+ collapse: z.string().optional(),
3221
+ })
3222
+ .optional(),
3223
+ richHeading: z.string().optional(),
3224
+ richDescription: z.string().optional(),
3225
+ }),
3226
+ options: z.object({
3227
+ showRichHeading: z.boolean().optional(),
3228
+ showRichDescription: z.boolean().optional(),
3229
+ }),
3230
+ }),
3231
+ })
3232
+
3233
+ export const profileSignedOutV2BlockSchema = blockSchema.extend({
3234
+ layout: z.any().optional(),
3235
+ source: z.object({
3236
+ 'welcome-image-banner': z
3237
+ .object({
3238
+ src: z.string(),
3239
+ meta: z
3240
+ .object({
3241
+ width: z.number(),
3242
+ height: z.number(),
3243
+ })
3244
+ .optional(),
3245
+ })
3246
+ .optional(),
3247
+ 'welcome-text': z
3248
+ .object({
3249
+ text: z.string(),
3250
+ })
3251
+ .optional(),
3252
+ 'signin-button': z
3253
+ .object({
3254
+ text: z.string(),
3255
+ })
3256
+ .optional(),
3257
+ 'signup-button': z
3258
+ .object({
3259
+ text: z.string(),
3260
+ })
3261
+ .optional(),
3262
+ }),
3263
+ options: z
3264
+ .object({
3265
+ 'welcome-image-banner': z.any().optional(),
3266
+ 'welcome-text': z.any().optional(),
3267
+ 'signin-button': z
3268
+ .object({
3269
+ link: z
3270
+ .object({
3271
+ value: z.string(),
3272
+ kind: z.string(),
3273
+ })
3274
+ .optional(),
3275
+ })
3276
+ .optional(),
3277
+ 'signup-button': z
3278
+ .object({
3279
+ link: z
3280
+ .object({
3281
+ value: z.string(),
3282
+ kind: z.string(),
3283
+ })
3284
+ .optional(),
3285
+ })
3286
+ .optional(),
3287
+ })
3288
+ .optional(),
3289
+ })
3290
+
3291
+ export const productDiscountSchema = blockSchema.extend({
3292
+ source: z
3293
+ .object({
3294
+ items: z
3295
+ .array(
3296
+ z
3297
+ .object({
3298
+ heading: z.string().optional(),
3299
+ description: z.string().optional(),
3300
+ couponCode: z.string().optional(),
3301
+ icon: z.string().optional(),
3302
+ hidden: z.boolean().optional(),
3303
+ tagType: z.string().optional(),
3304
+ tags: z.array(z.string()).optional(),
3305
+ })
3306
+ .optional()
3307
+ )
3308
+ .optional(),
3309
+ heading: z.string().optional(),
3310
+ richHeading: z.string().optional(),
3311
+ subHeading: z.string().optional(),
3312
+ 'items-0': z
3313
+ .array(
3314
+ z
3315
+ .object({
3316
+ couponCode: z.string().optional(),
3317
+ description: z.string().optional(),
3318
+ heading: z.string().optional(),
3319
+ icon: z.string().optional(),
3320
+ })
3321
+ .optional()
3322
+ )
3323
+ .optional(),
3324
+ })
3325
+ .optional(),
3326
+ style: z.object({
3327
+ root: baseStyleSchema.optional(),
3328
+ heading: baseTextStyleSchema.optional(),
3329
+ subHeading: baseTextStyleSchema.optional(),
3330
+ item: z
3331
+ .object({
3332
+ root: baseStyleSchema
3333
+ .extend({
3334
+ overflow: z.string().optional(),
3335
+ })
3336
+ .optional(),
3337
+ heading: baseTextStyleSchema.optional(),
3338
+ description: baseTextStyleSchema.optional(),
3339
+ couponCode: z
3340
+ .object({
3341
+ root: baseStyleSchema.optional(),
3342
+ copyButtonContainer: baseStyleSchema
3343
+ .extend({
3344
+ borderEndWidth: z.number().optional(),
3345
+ })
3346
+ .optional(),
3347
+ copyButtonText: baseTextStyleSchema.optional(),
3348
+ codeContainer: baseStyleSchema.optional(),
3349
+ text: baseTextStyleSchema.optional(),
3350
+ icon: baseIconStyleSchema.optional(),
3351
+ })
3352
+ .optional(),
3353
+ icon: baseIconStyleSchema.optional(),
3354
+ cutOutLeft: baseStyleSchema.optional(),
3355
+ cutOutRight: baseStyleSchema.optional(),
3356
+ })
3357
+ .optional(),
3358
+ list: z
3359
+ .object({
3360
+ itemGap: z.number().optional(),
3361
+ root: baseStyleSchema.optional(),
3362
+ })
3363
+ .optional(),
3364
+ }),
3365
+ options: z
3366
+ .object({
3367
+ horizontal: z.boolean().optional(),
3368
+ itemsPerRow: z.number().optional(),
3369
+ fraction: z.number().optional(),
3370
+ hideCouponCount: z.boolean().optional(),
3371
+ description: z
3372
+ .object({
3373
+ numberOfLines: z.number().optional(),
3374
+ })
3375
+ .optional(),
3376
+ })
3377
+ .optional(),
3378
+ })
3379
+
3380
+ export const imageMarqueeSchema = blockSchema.extend({
3381
+ source: z.object({
3382
+ items: z.array(imageItemSchema),
3383
+ heading: z.string().optional(),
3384
+ subHeading: z.string().optional(),
3385
+ }),
3386
+ style: z.object({
3387
+ root: baseStyleSchema,
3388
+ heading: baseTextStyleSchema.optional(),
3389
+ subHeading: baseTextStyleSchema.optional(),
3390
+ item: z.object({
3391
+ root: baseStyleSchema,
3392
+ image: baseImageStyleSchema,
3393
+ }),
3394
+ }),
3395
+ options: z
3396
+ .object({
3397
+ speed: z.number().optional(),
3398
+ itemGap: z.number().optional(),
3399
+ itemPerBatch: z.number().optional(),
3400
+ })
3401
+ .optional(),
3402
+ })
3403
+
3404
+ export const imageCollageSchema = blockSchema.extend({
3405
+ source: z.object({
3406
+ items: z.array(
3407
+ z.object({
3408
+ src: z.string(),
3409
+ link: z
3410
+ .object({
3411
+ kind: z.string(),
3412
+ value: z.string(),
3413
+ })
3414
+ .optional(),
3415
+ meta: z
3416
+ .object({
3417
+ width: z.number(),
3418
+ height: z.number(),
3419
+ })
3420
+ .optional(),
3421
+ })
3422
+ ),
3423
+ title: z
3424
+ .object({
3425
+ text: z.string(),
3426
+ })
3427
+ .optional(),
3428
+ subtitle: z
3429
+ .object({
3430
+ text: z.string(),
3431
+ })
3432
+ .optional(),
3433
+ }),
3434
+ style: z.object({
3435
+ root: baseStyleSchema.optional(),
3436
+ wrapper: baseStyleSchema.optional(),
3437
+ title: z
3438
+ .object({
3439
+ root: baseStyleSchema.optional(),
3440
+ text: baseTextStyleSchema
3441
+ .extend({
3442
+ kind: z.string().optional(),
3443
+ })
3444
+ .optional(),
3445
+ })
3446
+ .optional(),
3447
+ subtitle: z
3448
+ .object({
3449
+ root: baseStyleSchema.optional(),
3450
+ text: baseTextStyleSchema
3451
+ .extend({
3452
+ kind: z.string().optional(),
3453
+ })
3454
+ .optional(),
3455
+ })
3456
+ .optional(),
3457
+ spacer: z
3458
+ .object({
3459
+ gap: z.number().optional(),
3460
+ })
3461
+ .optional(),
3462
+ 'generic-image': baseImageStyleSchema.optional(),
3463
+ }),
3464
+ options: z.any().optional(),
3465
+ })
3466
+
3467
+ export const countdownBannerSchema = blockSchema.extend({
3468
+ source: z.object({
3469
+ countdown: z.object({
3470
+ date: z.union([z.string(), z.date()]),
3471
+ timezone: z.string().optional(),
3472
+ }),
3473
+ title: z.string().optional(),
3474
+ subtitle: z.string().optional(),
3475
+ heading: z.string().optional(),
3476
+ image: z
3477
+ .object({
3478
+ src: z.string(),
3479
+ })
3480
+ .optional(),
3481
+ backgroundImage: z
3482
+ .object({
3483
+ src: z.string(),
3484
+ })
3485
+ .optional(),
3486
+ wrapper: z
3487
+ .object({
3488
+ link: z
3489
+ .object({
3490
+ kind: z.string(),
3491
+ value: z.string(),
3492
+ })
3493
+ .optional(),
3494
+ })
3495
+ .optional(),
3496
+ }),
3497
+ style: z.object({
3498
+ root: baseStyleSchema,
3499
+ wrapper: z
3500
+ .object({
3501
+ root: baseStyleSchema.extend({
3502
+ zIndex: z.number().optional(),
3503
+ }),
3504
+ })
3505
+ .optional(),
3506
+ title: z
3507
+ .object({
3508
+ root: baseStyleSchema.optional(),
3509
+ text: baseTextStyleSchema
3510
+ .extend({
3511
+ kind: z.string().optional(),
3512
+ })
3513
+ .optional(),
3514
+ })
3515
+ .optional(),
3516
+ image: z
3517
+ .object({
3518
+ image: baseImageStyleSchema.optional(),
3519
+ root: baseStyleSchema
3520
+ .extend({
3521
+ paddingBottom: z.number().optional(),
3522
+ paddingLeft: z.number().optional(),
3523
+ paddingRight: z.number().optional(),
3524
+ paddingTop: z.number().optional(),
3525
+ })
3526
+ .optional(),
3527
+ })
3528
+ .optional(),
3529
+ subtitle: z
3530
+ .object({
3531
+ root: baseStyleSchema.optional(),
3532
+ text: baseTextStyleSchema.optional(),
3533
+ })
3534
+ .optional(),
3535
+ countdown: z
3536
+ .object({
3537
+ root: baseStyleSchema
3538
+ .extend({
3539
+ alignItem: z.string().optional(), // Note: typo in report, may be alignItems
3540
+ })
3541
+ .optional(),
3542
+ time: z
3543
+ .object({
3544
+ root: baseStyleSchema.optional(),
3545
+ number: baseTextStyleSchema
3546
+ .extend({
3547
+ kind: z.string().optional(),
3548
+ })
3549
+ .optional(),
3550
+ text: baseTextStyleSchema
3551
+ .extend({
3552
+ kind: z.string().optional(),
3553
+ })
3554
+ .optional(),
3555
+ spacer: baseTextStyleSchema
3556
+ .extend({
3557
+ kind: z.string().optional(),
3558
+ })
3559
+ .optional(),
3560
+ })
3561
+ .optional(),
3562
+ })
3563
+ .optional(),
3564
+ contentBox: z
3565
+ .object({
3566
+ root: baseStyleSchema.optional(),
3567
+ })
3568
+ .optional(),
3569
+ }),
3570
+ options: z
3571
+ .object({
3572
+ button: z.any().optional(),
3573
+ image: z
3574
+ .object({
3575
+ roundness: z.number().optional(),
3576
+ position: z.string().optional(),
3577
+ })
3578
+ .optional(),
3579
+ roundness: z.number().optional(),
3580
+ title: z.any().optional(),
3581
+ subtitle: z.any().optional(),
3582
+ })
3583
+ .optional(),
3584
+ layout: z.any().optional(),
3585
+ })
3586
+
3587
+ export const textListSchema = blockSchema.extend({
3588
+ source: z.object({
3589
+ chips: z.array(
3590
+ z.object({
3591
+ text: z.string(),
3592
+ link: z
3593
+ .object({
3594
+ kind: z.string(),
3595
+ value: z.string(),
3596
+ })
3597
+ .optional(),
3598
+ hidden: z.boolean().optional(),
3599
+ })
3600
+ ),
3601
+ }),
3602
+ style: z.object({
3603
+ root: baseStyleSchema.optional(),
3604
+ wrapper: baseStyleSchema.optional(),
3605
+ chip: z
3606
+ .object({
3607
+ root: baseStyleSchema.optional(),
3608
+ button: z
3609
+ .object({
3610
+ root: baseStyleSchema.optional(),
3611
+ text: baseTextStyleSchema.optional(),
3612
+ startIcon: z
3613
+ .object({
3614
+ root: baseStyleSchema.optional(),
3615
+ icon: baseIconStyleSchema.optional(),
3616
+ })
3617
+ .optional(),
3618
+ })
3619
+ .optional(),
3620
+ separator: z
3621
+ .object({
3622
+ width: z.number().optional(),
3623
+ })
3624
+ .optional(),
3625
+ })
3626
+ .optional(),
3627
+ }),
3628
+ options: z
3629
+ .object({
3630
+ itemsPerRow: z.number().optional(),
3631
+ mode: z.string().optional(),
3632
+ iconId: z.string().optional(),
3633
+ })
3634
+ .optional(),
3635
+ })
3636
+
3637
+ export const imageBannerSchema = imageBannerDefinition.zodSchema
3638
+
3639
+ const imageCompareImageSchema = z.object({
3640
+ src: z.string(),
3641
+ meta: z
3642
+ .object({
3643
+ width: z.number(),
3644
+ height: z.number(),
3645
+ })
3646
+ .optional(),
3647
+ })
3648
+
3649
+ export const imageCompareBlockSchema = blockSchema.extend({
3650
+ source: z.object({
3651
+ beforeImage: imageCompareImageSchema,
3652
+ afterImage: imageCompareImageSchema,
3653
+ sliderIcon: z.string().optional(),
3654
+ headerV2: z.any().optional(),
3655
+ link: linkSchema.optional(),
3656
+ }),
3657
+ style: z.object({
3658
+ root: baseStyleSchema.optional(),
3659
+ headerV2: z.any().optional(),
3660
+ imageCompare: z
3661
+ .object({
3662
+ root: baseStyleSchema.optional(),
3663
+ sliderContainer: baseStyleSchema.optional(),
3664
+ beforeImage: z
3665
+ .object({
3666
+ root: baseStyleSchema.optional(),
3667
+ image: baseImageStyleSchema.optional(),
3668
+ })
3669
+ .optional(),
3670
+ afterImage: z
3671
+ .object({
3672
+ root: baseStyleSchema.optional(),
3673
+ image: baseImageStyleSchema.optional(),
3674
+ })
3675
+ .optional(),
3676
+ sliderHandle: z
3677
+ .object({
3678
+ root: baseStyleSchema.optional(),
3679
+ divider: z
3680
+ .object({
3681
+ width: z.number().optional(),
3682
+ color: z.string().optional(),
3683
+ })
3684
+ .optional(),
3685
+ icon: z
3686
+ .object({
3687
+ root: baseStyleSchema.optional(),
3688
+ icon: baseIconStyleSchema.optional(),
3689
+ })
3690
+ .optional(),
3691
+ })
3692
+ .optional(),
3693
+ })
3694
+ .optional(),
3695
+ }),
3696
+ options: z
3697
+ .object({
3698
+ headerV2: z
3699
+ .object({
3700
+ background: z.any().optional(),
3701
+ options: z.any().optional(),
3702
+ showHeaderLink: z.boolean().optional(),
3703
+ })
3704
+ .optional(),
3705
+ sliderHandle: z
3706
+ .object({
3707
+ width: z.number().optional(),
3708
+ })
3709
+ .optional(),
3710
+ image: z
3711
+ .object({
3712
+ resizeMode: z.enum(['cover', 'contain']).optional(),
3713
+ })
3714
+ .optional(),
3715
+ direction: z.enum(['horizontal', 'vertical']).optional(),
3716
+ })
3717
+ .optional(),
3718
+ })
3719
+
3720
+ const metafieldSchema = z.object({
3721
+ namespace: z.string(),
3722
+ key: z.string(),
3723
+ })
3724
+
3725
+ export const metafieldImageCompareBlockSchema = blockSchema.extend({
3726
+ source: z.object({
3727
+ metafields: z.object({
3728
+ before: metafieldSchema,
3729
+ after: metafieldSchema,
3730
+ }),
3731
+ sliderIcon: z.string().optional(),
3732
+ headerV2: z.any().optional(),
3733
+ }),
3734
+ style: z.object({
3735
+ root: baseStyleSchema.optional(),
3736
+ headingContainer: baseStyleSchema.optional(),
3737
+ headerV2: z.any().optional(),
3738
+ imageCompare: z
3739
+ .object({
3740
+ root: baseStyleSchema.optional(),
3741
+ sliderContainer: baseStyleSchema.optional(),
3742
+ beforeImage: z
3743
+ .object({
3744
+ root: baseStyleSchema.optional(),
3745
+ image: baseImageStyleSchema.optional(),
3746
+ })
3747
+ .optional(),
3748
+ afterImage: z
3749
+ .object({
3750
+ root: baseStyleSchema.optional(),
3751
+ image: baseImageStyleSchema.optional(),
3752
+ })
3753
+ .optional(),
3754
+ sliderHandle: z
3755
+ .object({
3756
+ root: baseStyleSchema.optional(),
3757
+ divider: z
3758
+ .object({
3759
+ width: z.number().optional(),
3760
+ color: z.string().optional(),
3761
+ })
3762
+ .optional(),
3763
+ icon: z
3764
+ .object({
3765
+ root: baseStyleSchema.optional(),
3766
+ icon: baseIconStyleSchema.optional(),
3767
+ })
3768
+ .optional(),
3769
+ })
3770
+ .optional(),
3771
+ })
3772
+ .optional(),
3773
+ }),
3774
+ options: z
3775
+ .object({
3776
+ headerV2: z
3777
+ .object({
3778
+ background: z.any().optional(),
3779
+ options: z.any().optional(),
3780
+ showHeaderLink: z.boolean().optional(),
3781
+ })
3782
+ .optional(),
3783
+ sliderHandle: z
3784
+ .object({
3785
+ width: z.number().optional(),
3786
+ })
3787
+ .optional(),
3788
+ image: z
3789
+ .object({
3790
+ resizeMode: z.enum(['cover', 'contain']).optional(),
3791
+ })
3792
+ .optional(),
3793
+ direction: z.enum(['horizontal', 'vertical']).optional(),
3794
+ })
3795
+ .optional(),
3796
+ })
3797
+
3798
+ export const productHotspotSchema = blockSchema.extend({
3799
+ source: z.object({
3800
+ headerV2: z.any().optional(),
3801
+ image: z
3802
+ .object({
3803
+ src: z.string(),
3804
+ meta: z
3805
+ .object({
3806
+ width: z.number(),
3807
+ height: z.number(),
3808
+ })
3809
+ .optional(),
3810
+ })
3811
+ .optional(),
3812
+ aspectRatio: z.number().optional(),
3813
+ items: z
3814
+ .array(
3815
+ z.object({
3816
+ hidden: z.boolean(),
3817
+ products: z.array(z.string()),
3818
+ position: z.tuple([z.number(), z.number()]),
3819
+ })
3820
+ )
3821
+ .optional(),
3822
+ modalId: z.string().optional(),
3823
+ }),
3824
+ style: z.object({
3825
+ root: baseStyleSchema.optional(),
3826
+ headerV2: z.any().optional(),
3827
+ image: baseImageStyleSchema.optional(),
3828
+ item: z
3829
+ .object({
3830
+ root: baseStyleSchema.optional(),
3831
+ circle: z
3832
+ .object({
3833
+ size: z.number().optional(),
3834
+ color: z.string().optional(),
3835
+ pulseScale: z.number().optional(),
3836
+ duration: z.number().optional(),
3837
+ })
3838
+ .optional(),
3839
+ cardWrapper: baseStyleSchema.optional(),
3840
+ cardRoot: baseStyleSchema.optional(),
3841
+ })
3842
+ .optional(),
3843
+ productV2: z.any().optional(),
3844
+ }),
3845
+ options: z
3846
+ .object({
3847
+ headerV2: z
3848
+ .object({
3849
+ background: z.any().optional(),
3850
+ })
3851
+ .optional(),
3852
+ hotspotNavigation: z.enum(['modal', 'card']).optional(),
3853
+ hideHotspot: z.boolean().optional(),
3854
+ productCard: z
3855
+ .object({
3856
+ layout: z.any().optional(),
3857
+ })
3858
+ .optional(),
3859
+ })
3860
+ .optional(),
3861
+ })
3862
+
3863
+ export type AnnouncementStripBlockConfig = z.infer<
3864
+ typeof announcementStripBlockSchema
3865
+ >
3866
+ export type AppBarBlockConfig = z.infer<typeof appBarBlockSchema>
3867
+ export type ApplyCouponConfig = z.infer<typeof applyCouponSchema>
3868
+ export type CartListConfig = z.infer<typeof cartListSchema>
3869
+ export type ChangePasswordConfig = z.infer<typeof changePasswordSchema>
3870
+ export type CheckEstimatedDeliveryConfig = z.infer<
3871
+ typeof checkEstimatedDeliverySchema
3872
+ >
3873
+ export type DeleteAccountPrivacyConfig = z.infer<
3874
+ typeof deleteAccountPrivacySchema
3875
+ >
3876
+ export type CollectionListConfig = z.infer<typeof collectionListSchema>
3877
+ export type DiscountCodeInputConfig = z.infer<typeof discountCodeInputSchema>
3878
+ export type FireworkConfig = z.infer<typeof fireworkSchema>
3879
+ export type FollowUsConfig = z.infer<typeof folllowUsSchema>
3880
+ export type ImageBannerConfig = z.infer<typeof imageBannerSchema>
3881
+ export type ImageListBlockConfig = z.infer<typeof imageListSchema>
3882
+ export type JudgeMeReviewsConfig = z.infer<typeof judgemeReviewsSchema>
3883
+ export type JunipReviewsConfig = z.infer<typeof junipReviewsSchema>
3884
+ export type JunipConfig = z.infer<typeof junipSchema>
3885
+ export type MoreMenuConfig = z.infer<typeof moreMenuSchema>
3886
+ export type PaymentDetailsConfig = z.infer<typeof paymentDetailsSchema>
3887
+ export type ProductGridBlockConfig = z.infer<typeof productGridBlockSchema>
3888
+ export type ProductListBlockConfig = ProductGridBlockConfig
3889
+ export type PromoCarouselConfig = z.infer<typeof promoCarouselSchema>
3890
+ export type RewardsHistoryConfig = z.infer<typeof rewardsHistory>
3891
+ export type RewardsSummaryConfig = z.infer<typeof rewardsSummarySchema>
3892
+ export type RichTextBlockConfig = z.infer<typeof richTextBlockSchema>
3893
+ export type TaggedRichTextBlockConfig = z.infer<
3894
+ typeof taggedRichTextBlockSchema
3895
+ >
3896
+ export type SearchSuggestionsConfig = z.infer<typeof searchSuggestionSchema>
3897
+ export type PastSearchesConfig = z.infer<typeof pastSearchesSchema>
3898
+ export type TrendingProductsConfig = z.infer<typeof trendingProductsSchema>
3899
+ export type EmptySearchesSuggestionsConfig = z.infer<
3900
+ typeof emptySearchSuggestionsSchema
3901
+ >
3902
+ export type SignInBlockConfig = z.infer<typeof signInSchema>
3903
+ export type VideoListConfig = z.infer<typeof videoListSchema>
3904
+ export type SingleVideoConfig = z.infer<typeof singleVideoSchema>
3905
+ export type ImageItem = z.infer<typeof imageItemSchema>
3906
+ export type AccordionItem = z.infer<typeof accordionItemSchema>
3907
+ export type JudgemeReviewsConfig = z.infer<typeof judgemeReviewsSchema>
3908
+ export type OpinewReviewsConfig = z.infer<typeof opinewReviewsSchema>
3909
+ export type ProductCardBlockConfig = z.infer<typeof productCardBlockSchema>
3910
+ export type SingleLevelNavigationConfig = z.infer<
3911
+ typeof singleLevelNavigationSchema
3912
+ >
3913
+ export type TwoLevelNavigationConfig = z.infer<typeof twoLevelNavigationSchema>
3914
+ export type ViewCouponConfig = z.infer<typeof viewCouponSchema>
3915
+ export type SortAndFilterConfig = z.infer<typeof sortAndFilterSchema>
3916
+ export type TabbedProductListConfig = z.infer<typeof tabbedProductListConfig>
3917
+ export type WebViewBoxConfig = z.infer<typeof webViewSchema>
3918
+ export type YoutubeEmbedConfig = z.infer<typeof youtubeEmbedSchema>
3919
+ export type EmptyScreenConfig = z.infer<typeof emptyBlockSchema>
3920
+ export type OrderDetailsHeaderConfig = z.infer<typeof orderDetailsHeader>
3921
+ export type OrderProductListConfig = z.infer<typeof orderProductList>
3922
+ export type OrderPaymentDetailsConfig = z.infer<typeof orderPaymentDetails>
3923
+ export type OrderDeliverDetailsConfig = z.infer<typeof orderDeliveryDetails>
3924
+ export type TailoredVariantFormConfig = z.infer<typeof tailoredVariantFormBlock>
3925
+ export type ChangeShippingAddressConfig = z.infer<
3926
+ typeof changeShippingAddressSchema
3927
+ >
3928
+ export type SocialSignInConfig = z.infer<typeof socialSignInSchema>
3929
+ export type SearchRecommendationsConfig = z.infer<
3930
+ typeof searchRecommendationsSchema
3931
+ >
3932
+ export type AnnouncementCarousel = z.infer<typeof announcementCarousel>
3933
+ export type AnnouncementTicker = z.infer<typeof announcementTicker>
3934
+ export type RecentOrdersConfig = z.infer<typeof recentOrdersSchema>
3935
+ export type RecentlyViewedConfig = z.infer<typeof recentlyViewedSchema>
3936
+ export type PreviousOrdersConfig = z.infer<typeof previousOrdersSchema>
3937
+ export type WishlistedItemsConfig = z.infer<typeof wishlistedItemsSchema>
3938
+ export type MetafieldTextBlockSchema = z.infer<typeof metafieldTextBlockSchema>
3939
+ export type ModalSigninBlockSchema = z.infer<typeof modalSigninBlockSchema>
3940
+ export type ModalSignupBlockSchema = z.infer<typeof modalSignUpBlockSchema>
3941
+ export type RebuyProductRecommendationsConfig = z.infer<
3942
+ typeof rebuyProductRecommendationsSchema
3943
+ >
3944
+
3945
+ export type ModalFreeEngraving = z.infer<typeof modalFreeEngravingSchema>
3946
+ export type ContinueAsGuestConfig = z.infer<typeof continueAsGuestSchema>
3947
+ // brewCollectionImageBanner
3948
+ export type BrewCollectionImageBanner = z.infer<
3949
+ typeof brewCollectionImageBanner
3950
+ >
3951
+ export type VideoBannerConfig = z.infer<typeof videoBannerSchema>
3952
+
3953
+ export type FlitsRulesListBlockConfig = z.infer<
3954
+ typeof FlitsRulesListBlockSchema
3955
+ >
3956
+ export type FlitsCreditsBlockConfig = z.infer<typeof FlitsCreditsBlockSchema>
3957
+ export type TabbedImageListConfig = z.infer<typeof TabbedBlockListSchema>
3958
+ export type CurrencySelectorBlockConfig = z.infer<
3959
+ typeof CurrencySelectorBlockSchema
3960
+ >
3961
+ export type SingleProductCardV2Config = z.infer<
3962
+ typeof SingleProductCardV2Schema
3963
+ >
3964
+
3965
+ export type ButtonV2Config = z.infer<typeof buttonV2Schema>
3966
+
3967
+ export type AccordionListConfig = z.infer<typeof AccordionListSchema>
3968
+ export type TextOptions = z.infer<typeof textOptionsSchema>
3969
+ export type ProfileSignedOutV2BlockConfig = z.infer<
3970
+ typeof profileSignedOutV2BlockSchema
3971
+ >
3972
+ export type ProductDiscountConfig = z.infer<typeof productDiscountSchema>
3973
+ export type ImageMarqueeConfig = z.infer<typeof imageMarqueeSchema>
3974
+ export type ImageCollageConfig = z.infer<typeof imageCollageSchema>
3975
+ export type CountdownBannerConfig = z.infer<typeof countdownBannerSchema>
3976
+ export type TextListConfig = z.infer<typeof textListSchema>
3977
+ export type ImageCompareBlockConfig = z.infer<typeof imageCompareBlockSchema>
3978
+ export type MetafieldImageCompareBlockConfig = z.infer<
3979
+ typeof metafieldImageCompareBlockSchema
3980
+ >
3981
+ export type ProductHotspotConfig = z.infer<typeof productHotspotSchema>