@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,2051 @@
1
+ import { z } from 'zod'
2
+ import { baseStyleSchema, baseTextStyleSchema } from '../style'
3
+ import { blockSchema } from '../common'
4
+ import { BlockDefinition, BlockMicroContext } from './types'
5
+ import {
6
+ accordionComponentCodeJson,
7
+ containerComponentCodeJson,
8
+ layoutSchema,
9
+ linkComponentCodeJson,
10
+ listComponentCodeJson,
11
+ verticalListComponentCodeJson,
12
+ } from './common.def'
13
+
14
+ /**
15
+ * Icon style schema
16
+ */
17
+ const iconStyleSchema = z.object({
18
+ root: baseStyleSchema.optional(),
19
+ icon: z
20
+ .object({
21
+ width: z.number().optional(),
22
+ height: z.number().optional(),
23
+ fill: z.string().optional(),
24
+ stroke: z.string().optional(),
25
+ strokeWidth: z.number().optional(),
26
+ })
27
+ .optional(),
28
+ })
29
+
30
+ /**
31
+ * Button style schema
32
+ */
33
+ const buttonStyleSchema = z.object({
34
+ root: baseStyleSchema.optional(),
35
+ text: baseTextStyleSchema.optional(),
36
+ startIcon: iconStyleSchema.optional(),
37
+ endIcon: iconStyleSchema.optional(),
38
+ kind: z.enum(['primary', 'secondary', 'tertiary']).optional(),
39
+ loader: z
40
+ .object({
41
+ root: baseStyleSchema.optional(),
42
+ indicator: z.object({ root: baseStyleSchema.optional() }).optional(),
43
+ })
44
+ .optional(),
45
+ states: z
46
+ .object({
47
+ disabled: z.object({ root: baseStyleSchema.optional() }).optional(),
48
+ active: z.object({ root: baseStyleSchema.optional() }).optional(),
49
+ })
50
+ .optional(),
51
+ })
52
+
53
+ /**
54
+ * Accordion style schema
55
+ */
56
+ const accordionStyleSchema = z.object({
57
+ root: baseStyleSchema.optional(),
58
+ heading: z.object({ root: baseStyleSchema.optional() }).optional(),
59
+ headingExpanded: z.object({ root: baseStyleSchema.optional() }).optional(),
60
+ icon: iconStyleSchema.optional(),
61
+ })
62
+
63
+ /**
64
+ * Rich text style schema
65
+ */
66
+ const richTextStyleSchema = z.object({
67
+ wrapper: baseStyleSchema.optional(),
68
+ root: baseStyleSchema.optional(),
69
+ tags: z
70
+ .object({
71
+ p: baseTextStyleSchema.optional(),
72
+ h1: baseTextStyleSchema.optional(),
73
+ h2: baseTextStyleSchema.optional(),
74
+ h3: baseTextStyleSchema.optional(),
75
+ h4: baseTextStyleSchema.optional(),
76
+ h5: baseTextStyleSchema.optional(),
77
+ h6: baseTextStyleSchema.optional(),
78
+ b: baseTextStyleSchema.optional(),
79
+ strong: baseTextStyleSchema.optional(),
80
+ i: baseTextStyleSchema.optional(),
81
+ em: baseTextStyleSchema.optional(),
82
+ a: baseTextStyleSchema.optional(),
83
+ ul: baseStyleSchema.optional(),
84
+ ol: baseStyleSchema.optional(),
85
+ li: baseTextStyleSchema.optional(),
86
+ })
87
+ .optional(),
88
+ })
89
+
90
+ /**
91
+ * YouTube video style schema
92
+ */
93
+ const youtubeVideoStyleSchema = z.object({
94
+ root: baseStyleSchema.optional(),
95
+ thumbnailImage: baseStyleSchema.optional(),
96
+ playButton: z
97
+ .object({
98
+ width: z.number().optional(),
99
+ height: z.number().optional(),
100
+ fill: z.string().optional(),
101
+ })
102
+ .optional(),
103
+ })
104
+
105
+ /**
106
+ * Social signin style schema
107
+ */
108
+ const socialSigninStyleSchema = z.object({
109
+ root: baseStyleSchema.optional(),
110
+ apple: baseStyleSchema.optional(),
111
+ google: baseStyleSchema.optional(),
112
+ })
113
+
114
+ /**
115
+ * List style schema
116
+ */
117
+ const listStyleSchema = z.object({
118
+ root: baseStyleSchema.optional(),
119
+ flatList: z.object({ root: baseStyleSchema.optional() }).optional(),
120
+ list: baseStyleSchema.optional(),
121
+ item: baseStyleSchema.optional(),
122
+ oddItem: baseStyleSchema.optional(),
123
+ evenItem: baseStyleSchema.optional(),
124
+ columnWrapperStyle: baseStyleSchema.optional(),
125
+ })
126
+
127
+ /**
128
+ * Vertical list style schema
129
+ */
130
+ const verticalListStyleSchema = z.object({
131
+ wrapper: baseStyleSchema.optional(),
132
+ root: baseStyleSchema.optional(),
133
+ list: baseStyleSchema.optional(),
134
+ item: baseStyleSchema.optional(),
135
+ separator: z.object({ root: baseStyleSchema.optional() }).optional(),
136
+ cell: baseStyleSchema.optional(),
137
+ cellInFirstRow: baseStyleSchema.optional(),
138
+ cellInFirstCol: baseStyleSchema.optional(),
139
+ rowSeparator: baseStyleSchema.optional(),
140
+ columnSeparator: baseStyleSchema.optional(),
141
+ })
142
+
143
+ /**
144
+ * Image source schema
145
+ */
146
+ const imageSourceSchema = z.object({
147
+ src: z.string(),
148
+ width: z.number().optional(),
149
+ height: z.number().optional(),
150
+ })
151
+
152
+ /**
153
+ * Image style schema
154
+ */
155
+ const imageStyleSchema = baseStyleSchema.extend({
156
+ aspectRatio: z.number().optional(),
157
+ })
158
+
159
+ /**
160
+ * Video source schema
161
+ */
162
+ const videoSourceSchema = z.object({
163
+ src: z.object({
164
+ url: z.string(),
165
+ width: z.number().optional(),
166
+ height: z.number().optional(),
167
+ format: z.string().optional(),
168
+ }),
169
+ })
170
+
171
+ /**
172
+ * YouTube video source schema
173
+ */
174
+ const youtubeVideoSourceSchema = z.object({
175
+ videoId: z.string(),
176
+ thumbnailUrl: z.string().optional(),
177
+ params: z.record(z.string(), z.any()).optional(),
178
+ })
179
+
180
+ /**
181
+ * Link config schema
182
+ */
183
+ const linkConfigSchema = z.object({
184
+ kind: z.string(),
185
+ value: z.string(),
186
+ params: z.record(z.string(), z.any()).optional(),
187
+ external: z.boolean().optional(),
188
+ })
189
+
190
+ /**
191
+ * Link button source schema
192
+ */
193
+ const linkButtonSourceSchema = z.object({
194
+ text: z.string(),
195
+ })
196
+
197
+ /**
198
+ * Link button options schema
199
+ */
200
+ const linkButtonOptionsSchema = z.object({
201
+ link: linkConfigSchema.optional(),
202
+ startIcon: z.string().optional(),
203
+ endIcon: z.string().optional(),
204
+ disabled: z.boolean().optional(),
205
+ loading: z.boolean().optional(),
206
+ enableHapticTouch: z.boolean().optional(),
207
+ hapticTouchValue: z.enum(['impactHeavy', 'soft']).optional(),
208
+ })
209
+
210
+ /**
211
+ * Social signin options schema
212
+ */
213
+ const socialSigninOptionsSchema = z.object({
214
+ successRedirectScreenId: z.string().optional(),
215
+ socialSigninProviders: z
216
+ .object({
217
+ ios: z.array(z.string()).optional(),
218
+ android: z.array(z.string()).optional(),
219
+ })
220
+ .optional(),
221
+ })
222
+
223
+ /**
224
+ * List options schema
225
+ */
226
+ const listOptionsSchema = z.object({
227
+ itemGap: z.number().optional(),
228
+ horizontal: z.boolean().optional(),
229
+ itemPerRow: z.number().optional(),
230
+ columnGap: z.number().optional(),
231
+ fraction: z.number().optional(),
232
+ })
233
+
234
+ /**
235
+ * Accordion options schema
236
+ */
237
+ const accordionOptionsSchema = z.object({
238
+ defaultExpanded: z.boolean().optional(),
239
+ collapseIcon: z.string().optional(),
240
+ expandIcon: z.string().optional(),
241
+ })
242
+
243
+ /**
244
+ * Component style schemas - maps component kind to its style schema
245
+ * Used for validation and type checking of component-specific styles
246
+ */
247
+ const componentStyleSchema = z
248
+ .object({
249
+ wrapper: baseStyleSchema.optional(),
250
+ text: baseTextStyleSchema.optional(),
251
+ image: imageStyleSchema.optional(),
252
+ icon: iconStyleSchema.optional(),
253
+ 'link-button': buttonStyleSchema.optional(),
254
+ 'html-rich-text': richTextStyleSchema.optional(),
255
+ video: imageStyleSchema.optional(),
256
+ 'youtube-video': youtubeVideoStyleSchema.optional(),
257
+ spacer: baseStyleSchema.optional(),
258
+ 'social-signin': socialSigninStyleSchema.optional(),
259
+ accordion: accordionStyleSchema.optional(),
260
+ list: listStyleSchema.optional(),
261
+ 'vertical-list': verticalListStyleSchema.optional(),
262
+ link: z.object({ root: baseStyleSchema.optional() }).optional(),
263
+ row: baseStyleSchema.optional(),
264
+ column: baseStyleSchema.optional(),
265
+ })
266
+ .partial()
267
+ .catchall(z.any())
268
+
269
+ /**
270
+ * Component source schemas - maps component kind to its source schema
271
+ * Used for validation and type checking of component-specific source data
272
+ */
273
+ const componentSourceSchema = z
274
+ .object({
275
+ text: z.union([z.string(), z.object({ text: z.string() })]).optional(),
276
+ image: imageSourceSchema.optional(),
277
+ icon: z.object({ iconId: z.string() }).optional(),
278
+ 'link-button': linkButtonSourceSchema.optional(),
279
+ 'html-rich-text': z.string().optional(),
280
+ video: videoSourceSchema.optional(),
281
+ 'youtube-video': youtubeVideoSourceSchema.optional(),
282
+ spacer: z.any().optional(),
283
+ 'social-signin': z.object({}).optional(),
284
+ link: linkConfigSchema.optional(),
285
+ })
286
+ .partial()
287
+ .catchall(z.any())
288
+
289
+ /**
290
+ * Component options schemas - maps component kind to its options schema
291
+ * Used for validation and type checking of component-specific options
292
+ */
293
+ const componentOptionsSchema = z
294
+ .object({
295
+ text: z
296
+ .object({
297
+ numberOfLines: z.number().optional(),
298
+ ellipsizeMode: z.enum(['head', 'middle', 'tail', 'clip']).optional(),
299
+ selectable: z.boolean().optional(),
300
+ })
301
+ .optional(),
302
+ image: z
303
+ .object({
304
+ aspectRatio: z.number().optional(),
305
+ resizeMode: z
306
+ .enum(['cover', 'contain', 'stretch', 'center'])
307
+ .optional(),
308
+ roundness: z.number().optional(),
309
+ autoHeight: z.boolean().optional(),
310
+ })
311
+ .optional(),
312
+ video: z
313
+ .object({
314
+ aspectRatio: z.number().optional(),
315
+ controls: z.boolean().optional(),
316
+ })
317
+ .optional(),
318
+ 'youtube-video': z
319
+ .object({
320
+ thumbnailAspectRatio: z.number().optional(),
321
+ embedBaseUrl: z.string().optional(),
322
+ hidePlayButton: z.boolean().optional(),
323
+ })
324
+ .optional(),
325
+ 'link-button': linkButtonOptionsSchema.optional(),
326
+ 'social-signin': socialSigninOptionsSchema.optional(),
327
+ list: listOptionsSchema.optional(),
328
+ 'vertical-list': z
329
+ .object({
330
+ itemGap: z.number().optional(),
331
+ numColumns: z.number().optional(),
332
+ })
333
+ .optional(),
334
+ accordion: accordionOptionsSchema.optional(),
335
+ link: z.object({ pressableProps: z.any().optional() }).optional(),
336
+ })
337
+ .partial()
338
+ .catchall(z.any())
339
+
340
+ /**
341
+ * Content Block Schema
342
+ */
343
+ const zodSchema = blockSchema.extend({
344
+ layout: layoutSchema,
345
+ source: componentSourceSchema,
346
+ style: componentStyleSchema,
347
+ options: componentOptionsSchema,
348
+ })
349
+
350
+ /**
351
+ * Component hierarchy for AI understanding
352
+ *
353
+ * The Content block is a flexible, dynamic layout system that renders a tree
354
+ * of components based on the layout configuration. It supports:
355
+ * - Container components (row, column) for layout structure
356
+ * - Base components (text, image, icon, etc.) for content
357
+ * - Special components (list, vertical-list, accordion, link) for complex layouts
358
+ */
359
+ const codeJson = {
360
+ level: 0,
361
+ component: 'View',
362
+ stylePath: 'style.wrapper',
363
+ description:
364
+ 'Root wrapper View container. All layout content is rendered inside this wrapper.',
365
+ usage: {
366
+ wrapper: 'style.wrapper - Applied to root View',
367
+ },
368
+ children: [
369
+ {
370
+ level: 1,
371
+ component: 'Dynamic Layout Tree',
372
+ layoutPath: 'layout',
373
+ sourcePath: 'source',
374
+ stylePath: 'style',
375
+ optionsPath: 'options',
376
+ description:
377
+ 'Dynamic layout tree rendered recursively using getLayoutItem(). The entire structure is determined by the layout configuration. Each layout item has a "kind" and "key" - the kind determines the component type, the key is used to access source/style/options.',
378
+ usage: {
379
+ layout:
380
+ 'settings.layout (normalized via normaliseLayout) - tree structure of { kind, key, children }',
381
+ source:
382
+ 'settings.source (keyed by layout keys) - source[key] for each component',
383
+ style: 'style (keyed by layout keys) - style[key] for each component',
384
+ options:
385
+ 'settings.options (keyed by layout keys) - options[key] for each component',
386
+ rendering:
387
+ 'layoutRenderer() recursively processes layout tree, matching kind to component',
388
+ },
389
+ children: [
390
+ containerComponentCodeJson,
391
+ {
392
+ level: 2,
393
+ component: 'TextLayoutItem',
394
+ condition: 'layoutItem.kind === "text"',
395
+ description:
396
+ 'Text component for displaying text. Accepts string or { text: string }.',
397
+ sourcePath: 'source[key]',
398
+ stylePath: 'style[key]',
399
+ optionsPath: 'options[key]',
400
+ usage: {
401
+ source: 'string | { text: string }',
402
+ style:
403
+ 'BaseTextStyle (fontSize, fontWeight, color, lineHeight, etc.)',
404
+ options: 'TextProps (numberOfLines, ellipsizeMode, etc.)',
405
+ },
406
+ },
407
+ {
408
+ level: 2,
409
+ component: 'ImageLayoutItem',
410
+ condition: 'layoutItem.kind === "image"',
411
+ description:
412
+ 'Image component supporting regular images, SVG files, and inline SVG. Uses "src" property (NOT "url").',
413
+ sourcePath: 'source[key]',
414
+ stylePath: 'style[key]',
415
+ optionsPath: 'options[key]',
416
+ usage: {
417
+ source: '{ src: string, width?: number, height?: number }',
418
+ style: 'BaseStyle with width, height, aspectRatio',
419
+ options: '{ aspectRatio, resizeMode, roundness, autoHeight }',
420
+ },
421
+ children: [
422
+ {
423
+ level: 3,
424
+ component: 'SvgXml',
425
+ condition: 'src.startsWith("<svg")',
426
+ description: 'Inline SVG rendered via SvgXml',
427
+ },
428
+ {
429
+ level: 3,
430
+ component: 'SvgUri',
431
+ condition: 'file extension is .svg',
432
+ description: 'SVG file rendered via SvgUri',
433
+ },
434
+ {
435
+ level: 3,
436
+ component: 'Image',
437
+ condition: 'regular image file',
438
+ description: 'Regular image rendered via Image component',
439
+ },
440
+ ],
441
+ },
442
+ {
443
+ level: 2,
444
+ component: 'Icon',
445
+ condition: 'layoutItem.kind === "icon"',
446
+ description: 'Icon component from icon registry.',
447
+ sourcePath: 'source[key]',
448
+ stylePath: 'style[key]',
449
+ optionsPath: 'options[key]',
450
+ usage: {
451
+ source: '{ iconId: string }',
452
+ style: 'BaseIconStyle (width, height, fill, stroke, strokeWidth)',
453
+ options: 'SvgProps',
454
+ },
455
+ },
456
+ {
457
+ level: 2,
458
+ component: 'HtmlRichTextLayoutItem',
459
+ condition: 'layoutItem.kind === "html-rich-text"',
460
+ description: 'Raw HTML renderer for simple HTML content.',
461
+ sourcePath: 'source[key]',
462
+ stylePath: 'style[key]',
463
+ optionsPath: 'options[key]',
464
+ usage: {
465
+ source: 'string (JSON stringified Shopify rich text)',
466
+ style:
467
+ '{ wrapper, root, tags: { p, h1, h2, h3, b, i, a, ul, ol, li } }',
468
+ options: '{ enableUserAgentStyles, ignoredDomTags }',
469
+ },
470
+ },
471
+ {
472
+ level: 2,
473
+ component: 'VideoLayoutElement',
474
+ condition: 'layoutItem.kind === "video"',
475
+ description:
476
+ 'Video player component. Uses NESTED structure: source.src.url (NOT source.url).',
477
+ sourcePath: 'source[key]',
478
+ stylePath: 'style[key]',
479
+ optionsPath: 'options[key]',
480
+ usage: {
481
+ source:
482
+ '{ src: { url: string, width?: number, height?: number, format?: string } }',
483
+ style: 'BaseImageStyle with aspectRatio',
484
+ options: '{ aspectRatio, controls }',
485
+ },
486
+ },
487
+ {
488
+ level: 2,
489
+ component: 'YoutubeVideo',
490
+ condition: 'layoutItem.kind === "youtube-video"',
491
+ description:
492
+ 'YouTube video thumbnail with play button. Opens in web view on press.',
493
+ sourcePath: 'source[key]',
494
+ stylePath: 'style[key]',
495
+ optionsPath: 'options[key]',
496
+ usage: {
497
+ source:
498
+ '{ videoId: string, thumbnailUrl?: string, params?: Record<string, any> }',
499
+ style: '{ root, thumbnailImage, playButton }',
500
+ options: '{ thumbnailAspectRatio, embedBaseUrl, hidePlayButton }',
501
+ },
502
+ },
503
+ {
504
+ level: 2,
505
+ component: 'LinkButtonLayoutElement',
506
+ condition: 'layoutItem.kind === "link-button"',
507
+ description: 'Button with link navigation on press.',
508
+ sourcePath: 'source[key]',
509
+ stylePath: 'style[key]',
510
+ optionsPath: 'options[key]',
511
+ usage: {
512
+ source: '{ text: string }',
513
+ style:
514
+ 'ButtonV2Config (root, text, startIcon, endIcon, kind, states)',
515
+ options:
516
+ '{ link: { kind, value, params }, startIcon, endIcon, disabled, loading }',
517
+ },
518
+ },
519
+ {
520
+ level: 2,
521
+ component: 'SpacerLayoutElement',
522
+ condition: 'layoutItem.kind === "spacer"',
523
+ description: 'Empty View for spacing. No source data needed.',
524
+ stylePath: 'style[key]',
525
+ optionsPath: 'options[key]',
526
+ usage: {
527
+ source: 'none (not used)',
528
+ style: 'BaseStyle (height, width, margin, padding)',
529
+ options: 'ViewProps',
530
+ },
531
+ },
532
+ {
533
+ level: 2,
534
+ component: 'SocialSigninLayoutItem',
535
+ condition: 'layoutItem.kind === "social-signin"',
536
+ description:
537
+ 'Social auth buttons (Apple, Google). Only shows when user is NOT authenticated.',
538
+ sourcePath: 'source[key]',
539
+ stylePath: 'style[key]',
540
+ optionsPath: 'options[key]',
541
+ usage: {
542
+ source: '{} (empty object)',
543
+ style: '{ root, apple, google }',
544
+ options:
545
+ '{ successRedirectScreenId, socialSigninProviders: { ios, android } }',
546
+ },
547
+ },
548
+ linkComponentCodeJson,
549
+ listComponentCodeJson,
550
+ verticalListComponentCodeJson,
551
+ accordionComponentCodeJson,
552
+ ],
553
+ },
554
+ ],
555
+ }
556
+
557
+ /**
558
+ * Block micro contexts for detailed nested component properties
559
+ *
560
+ * The Content block uses a dynamic layout system where components are keyed by their
561
+ * layout key. In properties below, [key] represents the unique key from layout[].key
562
+ */
563
+ const microContexts: Record<string, BlockMicroContext> = {
564
+ root: {
565
+ key: 'root',
566
+ title: 'Root Wrapper',
567
+ description:
568
+ 'Properties for the main wrapper container that holds all layout content. This is the outermost View that wraps the entire Content block.',
569
+ properties: [
570
+ {
571
+ path: 'style.wrapper',
572
+ type: 'BaseStyle',
573
+ description:
574
+ 'Wrapper View container style (padding, margin, backgroundColor, alignItems, justifyContent, flex, etc.)',
575
+ optional: true,
576
+ },
577
+ ],
578
+ relatedKeys: ['layout', 'container'],
579
+ },
580
+ layout: {
581
+ key: 'layout',
582
+ title: 'Layout Structure',
583
+ description:
584
+ 'The root layout configuration defining the dynamic layout tree structure. The layout is a tree of { kind, key, children } objects that determines which components are rendered and how they are nested.',
585
+ properties: [
586
+ {
587
+ path: 'layout',
588
+ type: 'LayoutSchema',
589
+ description:
590
+ 'Root layout object with key: "root", kind: "row" | "column", and children array. This defines the entire component tree.',
591
+ optional: false,
592
+ },
593
+ {
594
+ path: 'layout.key',
595
+ type: 'string',
596
+ description:
597
+ 'Must be "root" for the root layout. Used to access style.root for the root container.',
598
+ optional: false,
599
+ defaultValue: 'root',
600
+ },
601
+ {
602
+ path: 'layout.kind',
603
+ type: 'enum',
604
+ description:
605
+ 'Root container type: "row" (horizontal flexDirection) or "column" (vertical flexDirection)',
606
+ optional: false,
607
+ },
608
+ {
609
+ path: 'layout.children',
610
+ type: 'Array<LayoutItem>',
611
+ description:
612
+ 'Array of child layout items. Each child is { kind: string, key: string, children?: LayoutItem[] }. Kind determines component type, key is used for source/style/options lookup.',
613
+ optional: false,
614
+ },
615
+ ],
616
+ relatedKeys: ['container', 'baseComponent', 'list', 'accordion', 'link'],
617
+ },
618
+ container: {
619
+ key: 'container',
620
+ title: 'Container Components (Row/Column)',
621
+ description:
622
+ 'Properties for row and column container components that organize layout items. Containers use Box component which supports backgrounds (image, gradient, solid).',
623
+ properties: [
624
+ {
625
+ path: 'layout[key].kind',
626
+ type: 'enum',
627
+ description:
628
+ 'Container type: "row" (horizontal flex, flexDirection: row) or "column" (vertical flex, flexDirection: column)',
629
+ optional: false,
630
+ },
631
+ {
632
+ path: 'layout[key].key',
633
+ type: 'string',
634
+ description:
635
+ 'Unique key for this container. Used to access source[key], style[key], options[key]. Must be unique across all layout items.',
636
+ optional: false,
637
+ },
638
+ {
639
+ path: 'layout[key].children',
640
+ type: 'Array<LayoutItem>',
641
+ description:
642
+ 'Array of child layout items (can be nested containers, base components, lists, links, accordions)',
643
+ optional: true,
644
+ },
645
+ {
646
+ path: 'style[key]',
647
+ type: 'BaseStyle',
648
+ description:
649
+ 'Container Box style. Common properties: padding, margin, backgroundColor, alignItems, justifyContent, flex, gap, borderRadius, borderWidth, borderColor. flexDirection is auto-set based on kind.',
650
+ optional: true,
651
+ },
652
+ {
653
+ path: 'style[key].padding',
654
+ type: 'number',
655
+ description:
656
+ 'Padding on all sides (or use paddingTop, paddingBottom, paddingLeft, paddingRight, paddingHorizontal, paddingVertical)',
657
+ optional: true,
658
+ },
659
+ {
660
+ path: 'style[key].alignItems',
661
+ type: 'enum',
662
+ description:
663
+ 'Cross-axis alignment: "flex-start", "flex-end", "center", "stretch", "baseline"',
664
+ optional: true,
665
+ },
666
+ {
667
+ path: 'style[key].justifyContent',
668
+ type: 'enum',
669
+ description:
670
+ 'Main-axis alignment: "flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly"',
671
+ optional: true,
672
+ },
673
+ {
674
+ path: 'style[key].gap',
675
+ type: 'number',
676
+ description: 'Gap between children (React Native 0.71+)',
677
+ optional: true,
678
+ },
679
+ {
680
+ path: 'options[key].background',
681
+ type: 'BackgroundConfig',
682
+ description:
683
+ 'Background configuration for this container. Same structure as root background: { kind, image, gradient, solid }',
684
+ optional: true,
685
+ },
686
+ {
687
+ path: 'options[key].background.kind',
688
+ type: 'enum',
689
+ description:
690
+ 'Background type for this container: "image", "gradient", "solid", or "none"',
691
+ optional: true,
692
+ },
693
+ ],
694
+ relatedKeys: ['layout', 'baseComponent', 'list', 'accordion', 'link'],
695
+ },
696
+ baseComponent: {
697
+ key: 'baseComponent',
698
+ title: 'Base Components Overview',
699
+ description:
700
+ 'Base UI Builder components are the leaf nodes of the layout tree. Each component type has specific source/style/options structure. See individual component contexts for details.',
701
+ properties: [
702
+ {
703
+ path: 'layout[key].kind',
704
+ type: 'enum',
705
+ description:
706
+ 'Component type. Valid values: "text", "image", "icon", "html-rich-text", "video", "youtube-video", "link-button", "spacer", "social-signin"',
707
+ optional: false,
708
+ },
709
+ {
710
+ path: 'layout[key].key',
711
+ type: 'string',
712
+ description:
713
+ 'Unique key for this component. Used to access source[key], style[key], options[key]. Must be unique across all layout items.',
714
+ optional: false,
715
+ },
716
+ {
717
+ path: 'source[key]',
718
+ type: 'ComponentSource',
719
+ description:
720
+ 'Component-specific data. Structure varies by kind - see text, image, icon, etc. contexts for details.',
721
+ optional: true,
722
+ },
723
+ {
724
+ path: 'style[key]',
725
+ type: 'ComponentStyle',
726
+ description:
727
+ 'Component-specific style. Structure varies by kind - see individual component contexts.',
728
+ optional: true,
729
+ },
730
+ {
731
+ path: 'options[key]',
732
+ type: 'ComponentOptions',
733
+ description:
734
+ 'Component-specific options. Structure varies by kind - see individual component contexts.',
735
+ optional: true,
736
+ },
737
+ ],
738
+ relatedKeys: [
739
+ 'text',
740
+ 'image',
741
+ 'icon',
742
+ 'htmlRichText',
743
+ 'video',
744
+ 'youtubeVideo',
745
+ 'linkButton',
746
+ 'spacer',
747
+ 'socialSignin',
748
+ ],
749
+ },
750
+ text: {
751
+ key: 'text',
752
+ title: 'Text Component',
753
+ description:
754
+ 'Text component for displaying text content. Renders React Native Text component. Accepts string directly or object with text property.',
755
+ properties: [
756
+ {
757
+ path: 'layout[key].kind',
758
+ type: 'literal',
759
+ description: 'Must be "text"',
760
+ optional: false,
761
+ defaultValue: 'text',
762
+ },
763
+ {
764
+ path: 'source[key]',
765
+ type: 'string | { text: string }',
766
+ description:
767
+ 'Text content. Can be: "Hello World" (string) or { text: "Hello World" } (object). Both work - object form extracted via source.text.',
768
+ optional: false,
769
+ },
770
+ {
771
+ path: 'source[key].text',
772
+ type: 'string',
773
+ description:
774
+ 'Text content when using object form. Extracted from source[key].text if source is object.',
775
+ optional: true,
776
+ },
777
+ {
778
+ path: 'style[key]',
779
+ type: 'BaseTextStyle',
780
+ description:
781
+ 'Text style properties. All React Native Text style properties are supported.',
782
+ optional: true,
783
+ },
784
+ {
785
+ path: 'style[key].fontSize',
786
+ type: 'number',
787
+ description: 'Font size in pixels',
788
+ optional: true,
789
+ defaultValue: 14,
790
+ },
791
+ {
792
+ path: 'style[key].fontWeight',
793
+ type: 'enum',
794
+ description: 'Font weight: "normal", "bold", "100"-"900"',
795
+ optional: true,
796
+ },
797
+ {
798
+ path: 'style[key].color',
799
+ type: 'string',
800
+ description: 'Text color (e.g., "#000000", "rgb(0,0,0)", "black")',
801
+ optional: true,
802
+ },
803
+ {
804
+ path: 'style[key].lineHeight',
805
+ type: 'number',
806
+ description: 'Line height in pixels',
807
+ optional: true,
808
+ },
809
+ {
810
+ path: 'style[key].textAlign',
811
+ type: 'enum',
812
+ description:
813
+ 'Text alignment: "auto", "left", "right", "center", "justify"',
814
+ optional: true,
815
+ },
816
+ {
817
+ path: 'style[key].fontFamily',
818
+ type: 'string',
819
+ description: 'Font family name (must be loaded in app)',
820
+ optional: true,
821
+ },
822
+ {
823
+ path: 'style[key].textDecorationLine',
824
+ type: 'enum',
825
+ description:
826
+ 'Text decoration: "none", "underline", "line-through", "underline line-through"',
827
+ optional: true,
828
+ },
829
+ {
830
+ path: 'style[key].textTransform',
831
+ type: 'enum',
832
+ description:
833
+ 'Text transform: "none", "uppercase", "lowercase", "capitalize"',
834
+ optional: true,
835
+ },
836
+ {
837
+ path: 'options[key].numberOfLines',
838
+ type: 'number',
839
+ description:
840
+ 'Maximum number of lines. Text will be truncated with ellipsis if exceeded.',
841
+ optional: true,
842
+ },
843
+ {
844
+ path: 'options[key].ellipsizeMode',
845
+ type: 'enum',
846
+ description:
847
+ 'Truncation mode: "head", "middle", "tail", "clip". Only works with numberOfLines.',
848
+ optional: true,
849
+ defaultValue: 'tail',
850
+ },
851
+ {
852
+ path: 'options[key].selectable',
853
+ type: 'boolean',
854
+ description: 'Allow text selection (default: false)',
855
+ optional: true,
856
+ defaultValue: false,
857
+ },
858
+ ],
859
+ relatedKeys: ['baseComponent'],
860
+ },
861
+ image: {
862
+ key: 'image',
863
+ title: 'Image Component',
864
+ description:
865
+ 'Image component supporting regular images, SVG files (.svg), and inline SVG strings (<svg>...</svg>). CRITICAL: Uses "src" property, NOT "url".',
866
+ properties: [
867
+ {
868
+ path: 'layout[key].kind',
869
+ type: 'literal',
870
+ description: 'Must be "image"',
871
+ optional: false,
872
+ defaultValue: 'image',
873
+ },
874
+ {
875
+ path: 'source[key].src',
876
+ type: 'string',
877
+ description:
878
+ 'Image source URL or inline SVG. REQUIRED. Use "src", NOT "url". Examples: "https://example.com/image.jpg", "https://example.com/icon.svg", "<svg>...</svg>"',
879
+ optional: false,
880
+ },
881
+ {
882
+ path: 'source[key].width',
883
+ type: 'number',
884
+ description:
885
+ 'Original image width in pixels. Used for aspect ratio calculation when style dimensions not specified.',
886
+ optional: true,
887
+ },
888
+ {
889
+ path: 'source[key].height',
890
+ type: 'number',
891
+ description:
892
+ 'Original image height in pixels. Used with width for aspect ratio: width/height.',
893
+ optional: true,
894
+ },
895
+ {
896
+ path: 'style[key]',
897
+ type: 'BaseStyle',
898
+ description:
899
+ 'Image container style. Applied to wrapper View. width/height/aspectRatio extracted for image sizing.',
900
+ optional: true,
901
+ },
902
+ {
903
+ path: 'style[key].width',
904
+ type: 'number | string',
905
+ description:
906
+ 'Image width. If not set, auto-calculated from container width. Can be number (pixels) or string ("100%").',
907
+ optional: true,
908
+ },
909
+ {
910
+ path: 'style[key].height',
911
+ type: 'number | string',
912
+ description:
913
+ 'Image height. If not set, calculated from width and aspectRatio.',
914
+ optional: true,
915
+ },
916
+ {
917
+ path: 'style[key].aspectRatio',
918
+ type: 'number',
919
+ description:
920
+ 'Aspect ratio (width/height). Priority: style.aspectRatio > options.aspectRatio > source.width/source.height',
921
+ optional: true,
922
+ },
923
+ {
924
+ path: 'style[key].borderRadius',
925
+ type: 'number',
926
+ description: 'Border radius for rounded corners',
927
+ optional: true,
928
+ },
929
+ {
930
+ path: 'options[key].aspectRatio',
931
+ type: 'number',
932
+ description:
933
+ 'Aspect ratio override. Takes precedence over source dimensions but not style.aspectRatio.',
934
+ optional: true,
935
+ },
936
+ {
937
+ path: 'options[key].resizeMode',
938
+ type: 'enum',
939
+ description:
940
+ 'How image fits container: "cover" (fill and crop), "contain" (fit within), "stretch", "center"',
941
+ optional: true,
942
+ defaultValue: 'cover',
943
+ },
944
+ {
945
+ path: 'options[key].roundness',
946
+ type: 'number',
947
+ description:
948
+ 'Border radius for image corners (alternative to style.borderRadius)',
949
+ optional: true,
950
+ },
951
+ {
952
+ path: 'options[key].autoHeight',
953
+ type: 'boolean',
954
+ description:
955
+ 'Allow flexible height based on container. When true, height adapts to container.',
956
+ optional: true,
957
+ defaultValue: false,
958
+ },
959
+ ],
960
+ relatedKeys: ['baseComponent'],
961
+ },
962
+ icon: {
963
+ key: 'icon',
964
+ title: 'Icon Component',
965
+ description:
966
+ 'Icon component displaying SVG icon from icon registry. Uses Icon component from @gauntlet/icons.',
967
+ properties: [
968
+ {
969
+ path: 'layout[key].kind',
970
+ type: 'literal',
971
+ description: 'Must be "icon"',
972
+ optional: false,
973
+ defaultValue: 'icon',
974
+ },
975
+ {
976
+ path: 'source[key].iconId',
977
+ type: 'string',
978
+ description:
979
+ 'Icon ID from icon registry. REQUIRED. Must be a valid icon ID registered in the app.',
980
+ optional: false,
981
+ },
982
+ {
983
+ path: 'style[key]',
984
+ type: 'BaseIconStyle',
985
+ description: 'Icon style properties passed to SVG component.',
986
+ optional: true,
987
+ },
988
+ {
989
+ path: 'style[key].width',
990
+ type: 'number',
991
+ description: 'Icon width in pixels',
992
+ optional: true,
993
+ defaultValue: 24,
994
+ },
995
+ {
996
+ path: 'style[key].height',
997
+ type: 'number',
998
+ description: 'Icon height in pixels',
999
+ optional: true,
1000
+ defaultValue: 24,
1001
+ },
1002
+ {
1003
+ path: 'style[key].fill',
1004
+ type: 'string',
1005
+ description: 'Icon fill color (for filled icons)',
1006
+ optional: true,
1007
+ },
1008
+ {
1009
+ path: 'style[key].stroke',
1010
+ type: 'string',
1011
+ description: 'Icon stroke color (for outlined icons)',
1012
+ optional: true,
1013
+ },
1014
+ {
1015
+ path: 'style[key].strokeWidth',
1016
+ type: 'number',
1017
+ description: 'Icon stroke width',
1018
+ optional: true,
1019
+ },
1020
+ {
1021
+ path: 'style[key].color',
1022
+ type: 'string',
1023
+ description:
1024
+ 'Icon color (applies to both fill and stroke if not specified separately)',
1025
+ optional: true,
1026
+ },
1027
+ {
1028
+ path: 'options[key]',
1029
+ type: 'SvgProps',
1030
+ description:
1031
+ 'Additional React Native SVG props passed to Icon component.',
1032
+ optional: true,
1033
+ },
1034
+ ],
1035
+ relatedKeys: ['baseComponent'],
1036
+ },
1037
+ htmlRichText: {
1038
+ key: 'htmlRichText',
1039
+ title: 'HTML Rich Text Component',
1040
+ description:
1041
+ 'Raw HTML renderer for simple HTML content. Directly renders HTML string without Shopify rich text parsing.',
1042
+ properties: [
1043
+ {
1044
+ path: 'layout[key].kind',
1045
+ type: 'literal',
1046
+ description: 'Must be "html-rich-text"',
1047
+ optional: false,
1048
+ defaultValue: 'html-rich-text',
1049
+ },
1050
+ {
1051
+ path: 'source[key]',
1052
+ type: 'string',
1053
+ description:
1054
+ 'Raw HTML content string. Examples: "<div>Hello World</div>", "<p style=\'color:red\'>Text</p>"',
1055
+ optional: false,
1056
+ },
1057
+ {
1058
+ path: 'style[key].tags',
1059
+ type: 'Record<string, BaseTextStyle>',
1060
+ description:
1061
+ 'Style mapping for HTML tags. Keys are tag names (p, h1, h2, h3, b, strong, i, em, a, ul, ol, li), values are style objects.',
1062
+ optional: true,
1063
+ },
1064
+ {
1065
+ path: 'style[key].tags.p',
1066
+ type: 'BaseTextStyle',
1067
+ description: 'Style for <p> paragraph tags',
1068
+ optional: true,
1069
+ defaultValue: { fontSize: 14, color: '#000000' },
1070
+ },
1071
+ {
1072
+ path: 'style[key].tags.h1',
1073
+ type: 'BaseTextStyle',
1074
+ description: 'Style for <h1> heading tags',
1075
+ optional: true,
1076
+ defaultValue: { fontSize: 32, color: '#000000' },
1077
+ },
1078
+ {
1079
+ path: 'style[key].tags.h2',
1080
+ type: 'BaseTextStyle',
1081
+ description: 'Style for <h2> heading tags',
1082
+ optional: true,
1083
+ defaultValue: { fontSize: 24, color: '#000000' },
1084
+ },
1085
+ {
1086
+ path: 'style[key].tags.h3',
1087
+ type: 'BaseTextStyle',
1088
+ description: 'Style for <h3> heading tags',
1089
+ optional: true,
1090
+ defaultValue: { fontSize: 18, color: '#000000' },
1091
+ },
1092
+ {
1093
+ path: 'style[key].tags.a',
1094
+ type: 'BaseTextStyle',
1095
+ description:
1096
+ 'Style for <a> link tags. Common: color, textDecorationLine',
1097
+ optional: true,
1098
+ },
1099
+ {
1100
+ path: 'style[key].tags.b',
1101
+ type: 'BaseTextStyle',
1102
+ description: 'Style for <b> bold tags (or use strong)',
1103
+ optional: true,
1104
+ },
1105
+ {
1106
+ path: 'style[key].tags.i',
1107
+ type: 'BaseTextStyle',
1108
+ description: 'Style for <i> italic tags (or use em)',
1109
+ optional: true,
1110
+ },
1111
+ {
1112
+ path: 'style[key].tags.ul',
1113
+ type: 'BaseStyle',
1114
+ description: 'Style for unordered list container',
1115
+ optional: true,
1116
+ },
1117
+ {
1118
+ path: 'style[key].tags.ol',
1119
+ type: 'BaseStyle',
1120
+ description: 'Style for ordered list container',
1121
+ optional: true,
1122
+ },
1123
+ {
1124
+ path: 'style[key].tags.li',
1125
+ type: 'BaseTextStyle',
1126
+ description: 'Style for list items',
1127
+ optional: true,
1128
+ },
1129
+ {
1130
+ path: 'options[key].enableUserAgentStyles',
1131
+ type: 'boolean',
1132
+ description: 'Enable browser default styles (default: false)',
1133
+ optional: true,
1134
+ defaultValue: false,
1135
+ },
1136
+ {
1137
+ path: 'options[key].ignoredDomTags',
1138
+ type: 'string[]',
1139
+ description: 'Array of HTML tags to ignore during rendering',
1140
+ optional: true,
1141
+ },
1142
+ ],
1143
+ relatedKeys: ['baseComponent'],
1144
+ },
1145
+ video: {
1146
+ key: 'video',
1147
+ title: 'Video Component',
1148
+ description:
1149
+ 'Video player component. CRITICAL: Uses NESTED structure source.src.url (NOT source.url directly). Supports native video playback with controls.',
1150
+ properties: [
1151
+ {
1152
+ path: 'layout[key].kind',
1153
+ type: 'literal',
1154
+ description: 'Must be "video"',
1155
+ optional: false,
1156
+ defaultValue: 'video',
1157
+ },
1158
+ {
1159
+ path: 'source[key].src',
1160
+ type: 'object',
1161
+ description:
1162
+ 'Video source object. NESTED structure - url is inside src object.',
1163
+ optional: false,
1164
+ },
1165
+ {
1166
+ path: 'source[key].src.url',
1167
+ type: 'string',
1168
+ description:
1169
+ 'Video URL. REQUIRED. Must be inside source.src object: source[key].src.url (NOT source[key].url)',
1170
+ optional: false,
1171
+ },
1172
+ {
1173
+ path: 'source[key].src.width',
1174
+ type: 'number',
1175
+ description:
1176
+ 'Video width in pixels. Used for aspect ratio calculation.',
1177
+ optional: true,
1178
+ },
1179
+ {
1180
+ path: 'source[key].src.height',
1181
+ type: 'number',
1182
+ description:
1183
+ 'Video height in pixels. Used with width for aspect ratio: width/height.',
1184
+ optional: true,
1185
+ },
1186
+ {
1187
+ path: 'source[key].src.format',
1188
+ type: 'string',
1189
+ description: 'Video format. Example: "mp4", "webm"',
1190
+ optional: true,
1191
+ },
1192
+ {
1193
+ path: 'style[key]',
1194
+ type: 'BaseImageStyle',
1195
+ description:
1196
+ 'Video container style. width/height/aspectRatio extracted for video sizing.',
1197
+ optional: true,
1198
+ },
1199
+ {
1200
+ path: 'style[key].width',
1201
+ type: 'number | string',
1202
+ description: 'Video width. If not set, auto-calculated from container.',
1203
+ optional: true,
1204
+ },
1205
+ {
1206
+ path: 'style[key].height',
1207
+ type: 'number | string',
1208
+ description: 'Video height. If not set, calculated from aspectRatio.',
1209
+ optional: true,
1210
+ },
1211
+ {
1212
+ path: 'style[key].aspectRatio',
1213
+ type: 'number',
1214
+ description: 'Video aspect ratio (width/height)',
1215
+ optional: true,
1216
+ },
1217
+ {
1218
+ path: 'options[key].aspectRatio',
1219
+ type: 'number',
1220
+ description:
1221
+ 'Aspect ratio override. Takes precedence over source dimensions.',
1222
+ optional: true,
1223
+ },
1224
+ {
1225
+ path: 'options[key].controls',
1226
+ type: 'boolean',
1227
+ description: 'Show video playback controls (play, pause, seek, etc.)',
1228
+ optional: true,
1229
+ defaultValue: true,
1230
+ },
1231
+ ],
1232
+ relatedKeys: ['baseComponent'],
1233
+ },
1234
+ youtubeVideo: {
1235
+ key: 'youtubeVideo',
1236
+ title: 'YouTube Video Component',
1237
+ description:
1238
+ 'YouTube video embed component. Displays thumbnail with play button overlay. On press, opens YouTube embed in web view.',
1239
+ properties: [
1240
+ {
1241
+ path: 'layout[key].kind',
1242
+ type: 'literal',
1243
+ description: 'Must be "youtube-video"',
1244
+ optional: false,
1245
+ defaultValue: 'youtube-video',
1246
+ },
1247
+ {
1248
+ path: 'source[key].videoId',
1249
+ type: 'string',
1250
+ description:
1251
+ 'YouTube video ID. REQUIRED. The ID from YouTube URL (e.g., "dQw4w9WgXcQ" from youtube.com/watch?v=dQw4w9WgXcQ)',
1252
+ optional: false,
1253
+ },
1254
+ {
1255
+ path: 'source[key].thumbnailUrl',
1256
+ type: 'string',
1257
+ description:
1258
+ 'Custom thumbnail URL. If not provided, defaults to YouTube thumbnail: https://img.youtube.com/vi/{videoId}/hqdefault.jpg',
1259
+ optional: true,
1260
+ },
1261
+ {
1262
+ path: 'source[key].params',
1263
+ type: 'Record<string, any>',
1264
+ description:
1265
+ 'YouTube embed parameters. Appended to embed URL. Common: { autoplay: 1, mute: 1, loop: 1, aspectRatio: 16/9 }',
1266
+ optional: true,
1267
+ },
1268
+ {
1269
+ path: 'style[key].root',
1270
+ type: 'BaseStyle',
1271
+ description:
1272
+ 'Container Pressable style. Wraps thumbnail and play button.',
1273
+ optional: true,
1274
+ },
1275
+ {
1276
+ path: 'style[key].thumbnailImage',
1277
+ type: 'BaseStyle',
1278
+ description: 'Thumbnail ImageBackground style',
1279
+ optional: true,
1280
+ },
1281
+ {
1282
+ path: 'style[key].playButton',
1283
+ type: 'BaseIconStyle',
1284
+ description:
1285
+ 'Play button SVG icon style. Default is red YouTube play button.',
1286
+ optional: true,
1287
+ },
1288
+ {
1289
+ path: 'style[key].playButton.width',
1290
+ type: 'number',
1291
+ description: 'Play button width',
1292
+ optional: true,
1293
+ defaultValue: 68,
1294
+ },
1295
+ {
1296
+ path: 'style[key].playButton.height',
1297
+ type: 'number',
1298
+ description: 'Play button height',
1299
+ optional: true,
1300
+ defaultValue: 48,
1301
+ },
1302
+ {
1303
+ path: 'options[key].thumbnailAspectRatio',
1304
+ type: 'number',
1305
+ description:
1306
+ 'Thumbnail aspect ratio. Default is 16/9 (standard YouTube). Can use source.params.aspectRatio if set.',
1307
+ optional: true,
1308
+ defaultValue: 1.78,
1309
+ },
1310
+ {
1311
+ path: 'options[key].embedBaseUrl',
1312
+ type: 'string',
1313
+ description:
1314
+ 'Custom embed base URL. Default: https://solutions.appbrew.tech/youtube-embed/',
1315
+ optional: true,
1316
+ },
1317
+ {
1318
+ path: 'options[key].hidePlayButton',
1319
+ type: 'boolean',
1320
+ description: 'Hide the play button overlay',
1321
+ optional: true,
1322
+ defaultValue: false,
1323
+ },
1324
+ ],
1325
+ relatedKeys: ['baseComponent'],
1326
+ },
1327
+ linkButton: {
1328
+ key: 'linkButton',
1329
+ title: 'Link Button Component',
1330
+ description:
1331
+ 'Button component with link navigation. Uses Button component with onPress that calls gotoLink with configured link.',
1332
+ properties: [
1333
+ {
1334
+ path: 'layout[key].kind',
1335
+ type: 'literal',
1336
+ description: 'Must be "link-button"',
1337
+ optional: false,
1338
+ defaultValue: 'link-button',
1339
+ },
1340
+ {
1341
+ path: 'source[key].text',
1342
+ type: 'string',
1343
+ description: 'Button text label. REQUIRED. Displayed inside button.',
1344
+ optional: false,
1345
+ },
1346
+ {
1347
+ path: 'style[key]',
1348
+ type: 'ButtonV2Config',
1349
+ description:
1350
+ 'Button style configuration. Supports themed button kinds.',
1351
+ optional: true,
1352
+ },
1353
+ {
1354
+ path: 'style[key].root',
1355
+ type: 'BaseStyle',
1356
+ description:
1357
+ 'Button container style (Pressable). Common: padding, backgroundColor, borderRadius, borderWidth, alignItems, justifyContent',
1358
+ optional: true,
1359
+ },
1360
+ {
1361
+ path: 'style[key].text',
1362
+ type: 'BaseTextStyle',
1363
+ description: 'Button text style. Common: color, fontSize, fontWeight',
1364
+ optional: true,
1365
+ },
1366
+ {
1367
+ path: 'style[key].startIcon',
1368
+ type: 'IconStyle',
1369
+ description:
1370
+ 'Start icon style: { root: BaseStyle, icon: { width, height, fill, stroke, strokeWidth } }',
1371
+ optional: true,
1372
+ },
1373
+ {
1374
+ path: 'style[key].endIcon',
1375
+ type: 'IconStyle',
1376
+ description:
1377
+ 'End icon style: { root: BaseStyle, icon: { width, height, fill, stroke, strokeWidth } }',
1378
+ optional: true,
1379
+ },
1380
+ {
1381
+ path: 'style[key].kind',
1382
+ type: 'enum',
1383
+ description:
1384
+ 'Button theme kind: "primary", "secondary", "tertiary". Applies theme-defined styles.',
1385
+ optional: true,
1386
+ },
1387
+ {
1388
+ path: 'style[key].loader',
1389
+ type: 'LoaderStyle',
1390
+ description:
1391
+ 'Loader style when loading: { root: BaseStyle, indicator: { root: BaseStyle } }',
1392
+ optional: true,
1393
+ },
1394
+ {
1395
+ path: 'style[key].states.disabled',
1396
+ type: 'object',
1397
+ description:
1398
+ 'Styles applied when button is disabled: { root: BaseStyle }',
1399
+ optional: true,
1400
+ },
1401
+ {
1402
+ path: 'style[key].states.active',
1403
+ type: 'object',
1404
+ description:
1405
+ 'Styles applied when button is active: { root: BaseStyle }',
1406
+ optional: true,
1407
+ },
1408
+ {
1409
+ path: 'options[key].link',
1410
+ type: 'LinkConfig',
1411
+ description:
1412
+ 'Link configuration for navigation on press. Structure: { kind: string, value: string, params?: Record<string, any> }',
1413
+ optional: true,
1414
+ },
1415
+ {
1416
+ path: 'options[key].link.kind',
1417
+ type: 'string',
1418
+ description:
1419
+ 'Link type: "screen", "product", "collection", "url", "page", etc.',
1420
+ optional: true,
1421
+ },
1422
+ {
1423
+ path: 'options[key].link.value',
1424
+ type: 'string',
1425
+ description:
1426
+ 'Link target: screen ID, product handle, collection handle, URL, etc.',
1427
+ optional: true,
1428
+ },
1429
+ {
1430
+ path: 'options[key].link.params',
1431
+ type: 'Record<string, any>',
1432
+ description: 'Additional navigation parameters',
1433
+ optional: true,
1434
+ },
1435
+ {
1436
+ path: 'options[key].startIcon',
1437
+ type: 'string',
1438
+ description: 'Start icon ID from icon registry',
1439
+ optional: true,
1440
+ },
1441
+ {
1442
+ path: 'options[key].endIcon',
1443
+ type: 'string',
1444
+ description: 'End icon ID from icon registry',
1445
+ optional: true,
1446
+ },
1447
+ {
1448
+ path: 'options[key].disabled',
1449
+ type: 'boolean',
1450
+ description: 'Disable button interactions',
1451
+ optional: true,
1452
+ defaultValue: false,
1453
+ },
1454
+ {
1455
+ path: 'options[key].loading',
1456
+ type: 'boolean',
1457
+ description: 'Show loading indicator instead of content',
1458
+ optional: true,
1459
+ defaultValue: false,
1460
+ },
1461
+ {
1462
+ path: 'options[key].enableHapticTouch',
1463
+ type: 'boolean',
1464
+ description: 'Enable haptic feedback on press',
1465
+ optional: true,
1466
+ defaultValue: false,
1467
+ },
1468
+ {
1469
+ path: 'options[key].hapticTouchValue',
1470
+ type: 'enum',
1471
+ description: 'Haptic feedback intensity: "impactHeavy" or "soft"',
1472
+ optional: true,
1473
+ defaultValue: 'soft',
1474
+ },
1475
+ ],
1476
+ relatedKeys: ['baseComponent'],
1477
+ },
1478
+ spacer: {
1479
+ key: 'spacer',
1480
+ title: 'Spacer Component',
1481
+ description:
1482
+ 'Empty View component for creating space in layouts. No source data needed. Use style.height or style.width for sizing.',
1483
+ properties: [
1484
+ {
1485
+ path: 'layout[key].kind',
1486
+ type: 'literal',
1487
+ description: 'Must be "spacer"',
1488
+ optional: false,
1489
+ defaultValue: 'spacer',
1490
+ },
1491
+ {
1492
+ path: 'style[key]',
1493
+ type: 'BaseStyle',
1494
+ description:
1495
+ 'Spacer style. Use height for vertical space, width for horizontal space.',
1496
+ optional: true,
1497
+ },
1498
+ {
1499
+ path: 'style[key].height',
1500
+ type: 'number | string',
1501
+ description:
1502
+ 'Spacer height for vertical spacing. Example: 16 (pixels) or "10%" (percentage)',
1503
+ optional: true,
1504
+ },
1505
+ {
1506
+ path: 'style[key].width',
1507
+ type: 'number | string',
1508
+ description:
1509
+ 'Spacer width for horizontal spacing. Example: 16 (pixels) or "10%" (percentage)',
1510
+ optional: true,
1511
+ },
1512
+ {
1513
+ path: 'style[key].flex',
1514
+ type: 'number',
1515
+ description: 'Flex grow factor. Use flex: 1 to fill remaining space.',
1516
+ optional: true,
1517
+ },
1518
+ {
1519
+ path: 'style[key].margin',
1520
+ type: 'number',
1521
+ description: 'Margin around spacer (or marginTop, marginBottom, etc.)',
1522
+ optional: true,
1523
+ },
1524
+ {
1525
+ path: 'options[key]',
1526
+ type: 'ViewProps',
1527
+ description: 'React Native View props (excluding style)',
1528
+ optional: true,
1529
+ },
1530
+ ],
1531
+ relatedKeys: ['baseComponent'],
1532
+ },
1533
+ socialSignin: {
1534
+ key: 'socialSignin',
1535
+ title: 'Social Sign-in Component',
1536
+ description:
1537
+ 'Social authentication buttons (Apple, Google). ONLY renders when user is NOT authenticated. After successful sign-in, redirects to configured screen.',
1538
+ properties: [
1539
+ {
1540
+ path: 'layout[key].kind',
1541
+ type: 'literal',
1542
+ description: 'Must be "social-signin"',
1543
+ optional: false,
1544
+ defaultValue: 'social-signin',
1545
+ },
1546
+ {
1547
+ path: 'source[key]',
1548
+ type: 'object',
1549
+ description:
1550
+ 'Source data. Not used by component - can be empty object {}. Passed to SocialAuth as socialSource.',
1551
+ optional: true,
1552
+ },
1553
+ {
1554
+ path: 'style[key].root',
1555
+ type: 'BaseStyle',
1556
+ description:
1557
+ 'Social buttons container style. Applied to socialButtonsContainer.',
1558
+ optional: true,
1559
+ },
1560
+ {
1561
+ path: 'style[key].apple',
1562
+ type: 'BaseStyle',
1563
+ description:
1564
+ 'Apple sign-in button style. Common: backgroundColor, borderRadius, padding',
1565
+ optional: true,
1566
+ },
1567
+ {
1568
+ path: 'style[key].google',
1569
+ type: 'BaseStyle',
1570
+ description:
1571
+ 'Google sign-in button style. Common: backgroundColor, borderRadius, padding',
1572
+ optional: true,
1573
+ },
1574
+ {
1575
+ path: 'options[key].successRedirectScreenId',
1576
+ type: 'string',
1577
+ description:
1578
+ 'Screen ID to navigate to after successful sign-in. Creates link: { kind: "screen", value: screenId }',
1579
+ optional: true,
1580
+ },
1581
+ {
1582
+ path: 'options[key].socialSigninProviders',
1583
+ type: 'object',
1584
+ description:
1585
+ 'Platform-specific provider configuration. Separate arrays for iOS and Android.',
1586
+ optional: true,
1587
+ },
1588
+ {
1589
+ path: 'options[key].socialSigninProviders.ios',
1590
+ type: 'string[]',
1591
+ description:
1592
+ 'Array of provider IDs for iOS. Example: ["apple", "google"]',
1593
+ optional: true,
1594
+ },
1595
+ {
1596
+ path: 'options[key].socialSigninProviders.android',
1597
+ type: 'string[]',
1598
+ description: 'Array of provider IDs for Android. Example: ["google"]',
1599
+ optional: true,
1600
+ },
1601
+ ],
1602
+ relatedKeys: ['baseComponent'],
1603
+ },
1604
+ link: {
1605
+ key: 'link',
1606
+ title: 'Link Wrapper Component',
1607
+ description:
1608
+ 'Link wrapper that makes children clickable. Wraps any layout items in a Pressable that navigates on press. Children can be any valid layout items.',
1609
+ properties: [
1610
+ {
1611
+ path: 'layout[key].kind',
1612
+ type: 'literal',
1613
+ description: 'Must be "link"',
1614
+ optional: false,
1615
+ defaultValue: 'link',
1616
+ },
1617
+ {
1618
+ path: 'layout[key].children',
1619
+ type: 'Array<LayoutItem>',
1620
+ description:
1621
+ 'Child layout items rendered inside the link. REQUIRED. These become clickable.',
1622
+ optional: false,
1623
+ },
1624
+ {
1625
+ path: 'source[key]',
1626
+ type: 'LinkConfig',
1627
+ description:
1628
+ 'Link configuration object with kind, value, and optional params.',
1629
+ optional: false,
1630
+ },
1631
+ {
1632
+ path: 'source[key].kind',
1633
+ type: 'string',
1634
+ description:
1635
+ 'Link type. REQUIRED. Values: "screen", "product", "collection", "url", "page", "search", etc.',
1636
+ optional: false,
1637
+ },
1638
+ {
1639
+ path: 'source[key].value',
1640
+ type: 'string',
1641
+ description:
1642
+ 'Link target value. REQUIRED. Screen ID, product handle, collection handle, URL, etc.',
1643
+ optional: false,
1644
+ },
1645
+ {
1646
+ path: 'source[key].params',
1647
+ type: 'Record<string, any>',
1648
+ description:
1649
+ 'Additional navigation parameters. Passed to navigation function.',
1650
+ optional: true,
1651
+ },
1652
+ {
1653
+ path: 'source[key].external',
1654
+ type: 'boolean',
1655
+ description:
1656
+ 'Whether link opens external URL (e.g., in browser). Used with kind: "url".',
1657
+ optional: true,
1658
+ },
1659
+ {
1660
+ path: 'style[key]',
1661
+ type: 'LinkStyle',
1662
+ description: 'MUST REQUIRED if link is used, Link wrapper style',
1663
+ optional: false,
1664
+ },
1665
+ {
1666
+ path: 'style[key].root',
1667
+ type: 'BaseStyle',
1668
+ description:
1669
+ 'MUST REQUIRED if link is used, Pressable container style. Applied to link wrapper.',
1670
+ optional: false,
1671
+ },
1672
+ {
1673
+ path: 'options[key].pressableProps',
1674
+ type: 'PressableProps',
1675
+ description:
1676
+ 'React Native Pressable props. Common: hitSlop, android_ripple, pressRetentionOffset',
1677
+ optional: true,
1678
+ },
1679
+ ],
1680
+ relatedKeys: ['layout', 'baseComponent'],
1681
+ },
1682
+ list: {
1683
+ key: 'list',
1684
+ title: 'List Component',
1685
+ description:
1686
+ 'FlatList-based component that renders items from source array. First child layout is used as template for each item. Supports horizontal/vertical, item gaps, multi-column.',
1687
+ properties: [
1688
+ {
1689
+ path: 'layout[key].kind',
1690
+ type: 'literal',
1691
+ description: 'Must be "list"',
1692
+ optional: false,
1693
+ defaultValue: 'list',
1694
+ },
1695
+ {
1696
+ path: 'layout[key].children',
1697
+ type: 'Array<LayoutItem>',
1698
+ description:
1699
+ 'Child layout items. First child (children[0]) is used as template for each item.',
1700
+ optional: false,
1701
+ },
1702
+ {
1703
+ path: 'layout[key].children[0]',
1704
+ type: 'LayoutItem',
1705
+ description:
1706
+ 'Template layout for each item. REQUIRED. This layout is rendered for each item in source array.',
1707
+ optional: false,
1708
+ },
1709
+ {
1710
+ path: 'source[key]',
1711
+ type: 'Array<any>',
1712
+ description:
1713
+ 'Array of items to render. REQUIRED. Each item is passed to template layout.',
1714
+ optional: false,
1715
+ },
1716
+ {
1717
+ path: 'style.root',
1718
+ type: 'BaseStyle',
1719
+ description:
1720
+ 'Root container style. Applied to wrapper View around FlatList.',
1721
+ optional: true,
1722
+ },
1723
+ {
1724
+ path: 'style.list',
1725
+ type: 'BaseStyle',
1726
+ description: 'FlatList contentContainerStyle',
1727
+ optional: true,
1728
+ },
1729
+ {
1730
+ path: 'style.item',
1731
+ type: 'BaseStyle',
1732
+ description: 'Style for each item wrapper',
1733
+ optional: true,
1734
+ },
1735
+ {
1736
+ path: 'style.oddItem',
1737
+ type: 'BaseStyle',
1738
+ description: 'Additional style for odd-indexed items (0, 2, 4...)',
1739
+ optional: true,
1740
+ },
1741
+ {
1742
+ path: 'style.evenItem',
1743
+ type: 'BaseStyle',
1744
+ description: 'Additional style for even-indexed items (1, 3, 5...)',
1745
+ optional: true,
1746
+ },
1747
+ {
1748
+ path: 'options.itemGap',
1749
+ type: 'number',
1750
+ description:
1751
+ 'Gap between items in pixels. Creates separator View with this height/width.',
1752
+ optional: true,
1753
+ defaultValue: 8,
1754
+ },
1755
+ {
1756
+ path: 'options.horizontal',
1757
+ type: 'boolean',
1758
+ description: 'Render list horizontally (default: false = vertical)',
1759
+ optional: true,
1760
+ defaultValue: false,
1761
+ },
1762
+ {
1763
+ path: 'options.itemPerRow',
1764
+ type: 'number',
1765
+ description:
1766
+ 'Number of columns (vertical) or items per screen (horizontal). Used for item width calculation.',
1767
+ optional: true,
1768
+ defaultValue: 1,
1769
+ },
1770
+ {
1771
+ path: 'options.columnGap',
1772
+ type: 'number',
1773
+ description: 'Gap between columns in multi-column layout',
1774
+ optional: true,
1775
+ defaultValue: 8,
1776
+ },
1777
+ {
1778
+ path: 'options.fraction',
1779
+ type: 'number',
1780
+ description:
1781
+ 'Fraction of next item visible in horizontal mode. Used for peek effect.',
1782
+ optional: true,
1783
+ defaultValue: 0,
1784
+ },
1785
+ ],
1786
+ relatedKeys: ['layout', 'baseComponent'],
1787
+ },
1788
+ verticalList: {
1789
+ key: 'verticalList',
1790
+ title: 'Vertical List Component',
1791
+ description:
1792
+ 'View-based vertical list with grid support. Unlike FlatList-based list, renders all items at once. Supports separators, multi-column grid.',
1793
+ properties: [
1794
+ {
1795
+ path: 'layout[key].kind',
1796
+ type: 'literal',
1797
+ description: 'Must be "vertical-list"',
1798
+ optional: false,
1799
+ defaultValue: 'vertical-list',
1800
+ },
1801
+ {
1802
+ path: 'layout[key].children',
1803
+ type: 'Array<LayoutItem>',
1804
+ description:
1805
+ 'Child layout items. First child (children[0]) is used as template for each item.',
1806
+ optional: false,
1807
+ },
1808
+ {
1809
+ path: 'layout[key].children[0]',
1810
+ type: 'LayoutItem',
1811
+ description:
1812
+ 'Template layout for each item. REQUIRED. Rendered for each item in source.data array.',
1813
+ optional: false,
1814
+ },
1815
+ {
1816
+ path: 'source[key]',
1817
+ type: 'object',
1818
+ description: 'Source object with data array. NESTED structure.',
1819
+ optional: false,
1820
+ },
1821
+ {
1822
+ path: 'source[key].data',
1823
+ type: 'Array<any>',
1824
+ description:
1825
+ 'Array of items to render. REQUIRED. Note: data is nested inside source[key].data (NOT source[key] directly).',
1826
+ optional: false,
1827
+ },
1828
+ {
1829
+ path: 'source[key].data[].id',
1830
+ type: 'string',
1831
+ description:
1832
+ 'Each item MUST have an "id" property. Used by keyExtractor for React keys.',
1833
+ optional: false,
1834
+ },
1835
+ {
1836
+ path: 'style.list',
1837
+ type: 'VerticalListStyle',
1838
+ description: 'List style configuration object',
1839
+ optional: true,
1840
+ },
1841
+ {
1842
+ path: 'style.list.wrapper',
1843
+ type: 'BaseStyle',
1844
+ description: 'Outer wrapper container style',
1845
+ optional: true,
1846
+ },
1847
+ {
1848
+ path: 'style.list.root',
1849
+ type: 'BaseStyle',
1850
+ description:
1851
+ 'Row container style (flexDirection: row by default for grid)',
1852
+ optional: true,
1853
+ },
1854
+ {
1855
+ path: 'style.list.separator',
1856
+ type: 'object',
1857
+ description: 'Separator style: { root: BaseStyle }',
1858
+ optional: true,
1859
+ },
1860
+ {
1861
+ path: 'style.list.cell',
1862
+ type: 'BaseStyle',
1863
+ description: 'Individual cell/item container style',
1864
+ optional: true,
1865
+ },
1866
+ {
1867
+ path: 'style.list.cellInFirstRow',
1868
+ type: 'BaseStyle',
1869
+ description: 'Additional style for cells in first row',
1870
+ optional: true,
1871
+ },
1872
+ {
1873
+ path: 'style.list.cellInFirstCol',
1874
+ type: 'BaseStyle',
1875
+ description: 'Additional style for cells in first column',
1876
+ optional: true,
1877
+ },
1878
+ {
1879
+ path: 'style.list.rowSeparator',
1880
+ type: 'BaseStyle',
1881
+ description: 'Style for separator between rows',
1882
+ optional: true,
1883
+ },
1884
+ {
1885
+ path: 'style.list.columnSeparator',
1886
+ type: 'BaseStyle',
1887
+ description: 'Style for separator between columns',
1888
+ optional: true,
1889
+ },
1890
+ {
1891
+ path: 'options.itemGap',
1892
+ type: 'number',
1893
+ description:
1894
+ 'Gap between items (applied to separator height). Overrides style.list.separator.root.height',
1895
+ optional: true,
1896
+ },
1897
+ {
1898
+ path: 'options.numColumns',
1899
+ type: 'number',
1900
+ description: 'Number of columns in grid. Default: 1',
1901
+ optional: true,
1902
+ defaultValue: 1,
1903
+ },
1904
+ ],
1905
+ relatedKeys: ['layout', 'baseComponent'],
1906
+ },
1907
+ accordion: {
1908
+ key: 'accordion',
1909
+ title: 'Accordion Component',
1910
+ description:
1911
+ 'Collapsible accordion with heading and body. REQUIRES exactly 2 children: children[0] = heading (clickable), children[1] = body (collapsible). Supports expand/collapse icons and animation.',
1912
+ properties: [
1913
+ {
1914
+ path: 'layout[key].kind',
1915
+ type: 'literal',
1916
+ description: 'Must be "accordion"',
1917
+ optional: false,
1918
+ defaultValue: 'accordion',
1919
+ },
1920
+ {
1921
+ path: 'layout[key].children',
1922
+ type: 'Array<LayoutItem>',
1923
+ description:
1924
+ 'MUST have exactly 2 children. children[0] = heading, children[1] = body.',
1925
+ optional: false,
1926
+ },
1927
+ {
1928
+ path: 'layout[key].children[0]',
1929
+ type: 'LayoutItem',
1930
+ description:
1931
+ 'Heading layout. REQUIRED. Rendered as clickable accordion header. Can be any layout items.',
1932
+ optional: false,
1933
+ },
1934
+ {
1935
+ path: 'layout[key].children[1]',
1936
+ type: 'LayoutItem',
1937
+ description:
1938
+ 'Body layout. REQUIRED. Rendered as collapsible content. Can be any layout items.',
1939
+ optional: false,
1940
+ },
1941
+ {
1942
+ path: 'style[key]',
1943
+ type: 'AccordionStyle',
1944
+ description: 'Accordion style configuration',
1945
+ optional: true,
1946
+ },
1947
+ {
1948
+ path: 'style[key].root',
1949
+ type: 'BaseStyle',
1950
+ description: 'Root container style (wraps heading and body)',
1951
+ optional: true,
1952
+ },
1953
+ {
1954
+ path: 'style[key].heading',
1955
+ type: 'object',
1956
+ description:
1957
+ 'Heading container style: { root: BaseStyle }. Applied when collapsed.',
1958
+ optional: true,
1959
+ },
1960
+ {
1961
+ path: 'style[key].heading.root',
1962
+ type: 'BaseStyle',
1963
+ description:
1964
+ 'Heading Pressable style. Common: flexDirection: row, alignItems: center, padding, backgroundColor',
1965
+ optional: true,
1966
+ },
1967
+ {
1968
+ path: 'style[key].headingExpanded',
1969
+ type: 'object',
1970
+ description:
1971
+ 'Additional heading style when expanded: { root: BaseStyle }. Merged with heading style.',
1972
+ optional: true,
1973
+ },
1974
+ {
1975
+ path: 'style[key].headingExpanded.root',
1976
+ type: 'BaseStyle',
1977
+ description: 'Heading style additions when accordion is expanded',
1978
+ optional: true,
1979
+ },
1980
+ {
1981
+ path: 'style[key].icon',
1982
+ type: 'IconStyle',
1983
+ description:
1984
+ 'Expand/collapse icon style: { root: BaseStyle, icon: BaseIconStyle }',
1985
+ optional: true,
1986
+ },
1987
+ {
1988
+ path: 'style[key].icon.root',
1989
+ type: 'BaseStyle',
1990
+ description: 'Icon container style',
1991
+ optional: true,
1992
+ },
1993
+ {
1994
+ path: 'style[key].icon.icon',
1995
+ type: 'BaseIconStyle',
1996
+ description:
1997
+ 'Icon SVG style: { width, height, fill, stroke, strokeWidth }',
1998
+ optional: true,
1999
+ },
2000
+ {
2001
+ path: 'options[key].defaultExpanded',
2002
+ type: 'boolean',
2003
+ description: 'Initial expanded state. Default: false (collapsed)',
2004
+ optional: true,
2005
+ defaultValue: false,
2006
+ },
2007
+ {
2008
+ path: 'options[key].collapseIcon',
2009
+ type: 'string',
2010
+ description:
2011
+ 'Icon ID for collapse icon (shown when expanded). Default: "expand"',
2012
+ optional: true,
2013
+ defaultValue: 'expand',
2014
+ },
2015
+ {
2016
+ path: 'options[key].expandIcon',
2017
+ type: 'string',
2018
+ description:
2019
+ 'Icon ID for expand icon (shown when collapsed). Default: "collapse"',
2020
+ optional: true,
2021
+ defaultValue: 'collapse',
2022
+ },
2023
+ ],
2024
+ relatedKeys: ['layout', 'baseComponent'],
2025
+ },
2026
+ }
2027
+
2028
+ export const contentBlockDefinition: BlockDefinition = {
2029
+ zodSchema,
2030
+ codeJson,
2031
+ microContexts,
2032
+ microContextKeys: [
2033
+ 'root',
2034
+ 'layout',
2035
+ 'container',
2036
+ 'baseComponent',
2037
+ 'text',
2038
+ 'image',
2039
+ 'icon',
2040
+ 'htmlRichText',
2041
+ 'video',
2042
+ 'youtubeVideo',
2043
+ 'linkButton',
2044
+ 'spacer',
2045
+ 'socialSignin',
2046
+ 'link',
2047
+ 'list',
2048
+ 'verticalList',
2049
+ 'accordion',
2050
+ ],
2051
+ }