storefront-layouts 1.0.3 → 1.0.4

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 (509) hide show
  1. package/dist/components/auth/LoginForm.js +2 -2
  2. package/dist/components/auth/LoginSheet.js +2 -2
  3. package/dist/components/auth/login-form-core.js +3 -3
  4. package/dist/components/auth/login-sheet-header.js +3 -3
  5. package/dist/components/auth/login-sheet-registry.js +2 -2
  6. package/dist/components/auth/login-sheet-themes/booking-agenda.theme.js +1 -1
  7. package/dist/components/auth/login-sheet-themes/booking.theme.js +1 -1
  8. package/dist/components/auth/login-sheet-themes/clothing-minimal.theme.js +1 -1
  9. package/dist/components/auth/login-sheet-themes/clothing.theme.js +1 -1
  10. package/dist/components/auth/login-sheet-themes/electronics-grid.theme.js +1 -1
  11. package/dist/components/auth/login-sheet-themes/electronics.theme.js +1 -1
  12. package/dist/components/auth/login-sheet-themes/food-modern.theme.js +1 -1
  13. package/dist/components/auth/login-sheet-themes/food.theme.js +1 -1
  14. package/dist/components/auth/login-sheet-themes/index.js +9 -9
  15. package/dist/components/auth/login-sheet-themes/motivational-speaker.theme.js +1 -1
  16. package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts +2 -2
  17. package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts.map +1 -1
  18. package/dist/components/auth/login-sheet-themes/theme-input-baselines.js +2 -2
  19. package/dist/components/auth/login-sheets/StoreLoginSheetShell.d.ts.map +1 -1
  20. package/dist/components/auth/login-sheets/StoreLoginSheetShell.js +6 -6
  21. package/dist/components/auth/use-login-submit.js +3 -3
  22. package/dist/components/cart/InventoryHoldCountdown.js +2 -2
  23. package/dist/components/categories/category-masonry-grid.js +3 -3
  24. package/dist/components/checkout/CheckoutFeeLines.js +1 -1
  25. package/dist/components/checkout/ShippingOptionsPanel.js +3 -3
  26. package/dist/components/learning/CertificateTemplates.js +2 -2
  27. package/dist/components/learning/CertificateViewer.js +3 -3
  28. package/dist/components/learning/MentorshipProgress.d.ts.map +1 -1
  29. package/dist/components/learning/MentorshipProgress.js +4 -4
  30. package/dist/components/product/ProductVariationSelectors.js +1 -1
  31. package/dist/components/rich-text/CategoryDescription.js +2 -2
  32. package/dist/components/rich-text/ProductDescription.js +2 -2
  33. package/dist/components/rich-text/RichTextExcerpt.js +1 -1
  34. package/dist/components/rich-text/SafeRichHtml.d.ts +8 -11
  35. package/dist/components/rich-text/SafeRichHtml.d.ts.map +1 -1
  36. package/dist/components/rich-text/SafeRichHtml.js +3 -5
  37. package/dist/components/shipping/ProductDeliveryInfoSection.d.ts.map +1 -1
  38. package/dist/components/shipping/ProductDeliveryInfoSection.js +7 -4
  39. package/dist/components/shipping/ShippingQuoteAddressForm.js +3 -3
  40. package/dist/components/ui/alert-modal.js +2 -2
  41. package/dist/components/ui/avatar-image.js +1 -1
  42. package/dist/components/ui/badge.js +1 -1
  43. package/dist/components/ui/breadcrumbs.js +1 -1
  44. package/dist/components/ui/button.d.ts +1 -1
  45. package/dist/components/ui/button.js +1 -1
  46. package/dist/components/ui/card.js +1 -1
  47. package/dist/components/ui/category-tree.js +2 -2
  48. package/dist/components/ui/checkout-button.d.ts.map +1 -1
  49. package/dist/components/ui/checkout-button.js +11 -283
  50. package/dist/components/ui/guest-checkout-modal.js +3 -3
  51. package/dist/components/ui/image-skeleton.js +2 -2
  52. package/dist/components/ui/image-with-fallback.d.ts +3 -1
  53. package/dist/components/ui/image-with-fallback.d.ts.map +1 -1
  54. package/dist/components/ui/image-with-fallback.js +55 -139
  55. package/dist/components/ui/input.js +1 -1
  56. package/dist/components/ui/limited-time-offer-badge.js +2 -2
  57. package/dist/components/ui/loading-skeleton-wrapper.js +1 -1
  58. package/dist/components/ui/modal.js +2 -2
  59. package/dist/components/ui/otp-input.js +1 -1
  60. package/dist/components/ui/out-of-stock-overlay.js +1 -1
  61. package/dist/components/ui/page-animate-wrapper.js +2 -2
  62. package/dist/components/ui/page-content-loader.js +2 -2
  63. package/dist/components/ui/page-loader.js +1 -1
  64. package/dist/components/ui/product-card.d.ts.map +1 -1
  65. package/dist/components/ui/product-card.js +17 -17
  66. package/dist/components/ui/product-rating.js +1 -1
  67. package/dist/components/ui/product-stock-badge.js +2 -2
  68. package/dist/components/ui/review-form.js +2 -2
  69. package/dist/components/ui/route-skeleton-loader.js +6 -6
  70. package/dist/components/ui/sheet.d.ts +2 -1
  71. package/dist/components/ui/sheet.d.ts.map +1 -1
  72. package/dist/components/ui/sheet.js +4 -4
  73. package/dist/components/ui/skeleton.js +1 -1
  74. package/dist/components/ui/skeletons/index.js +5 -5
  75. package/dist/components/ui/skeletons/product-grid-skeleton.js +1 -1
  76. package/dist/components/ui/store-logos.d.ts.map +1 -1
  77. package/dist/components/ui/store-logos.js +4 -4
  78. package/dist/components/ui/toast.js +1 -1
  79. package/dist/components/ui/video-player.js +2 -2
  80. package/dist/editor/alignment-schemas/booking.js +1 -1
  81. package/dist/editor/alignment-schemas/clothing-minimal.js +1 -1
  82. package/dist/editor/alignment-schemas/index.js +20 -20
  83. package/dist/editor/alignment-schemas/lazy-loader.js +1 -1
  84. package/dist/editor/alignment-schemas/metadata.js +1 -1
  85. package/dist/editor/alignment-schemas/resolve-canvas-inspector-leaf.js +3 -3
  86. package/dist/editor/blocks/index.js +3 -3
  87. package/dist/editor/blocks/migrate-clothing-minimal.js +3 -3
  88. package/dist/editor/blocks/nav-outline-utils.js +2 -2
  89. package/dist/editor/blocks/registry.js +1 -1
  90. package/dist/editor/document/adapter.js +4 -4
  91. package/dist/editor/document/block-tree.js +1 -1
  92. package/dist/editor/document/index.js +6 -6
  93. package/dist/editor/document/validate.js +1 -1
  94. package/dist/editor/index.js +12 -12
  95. package/dist/editor/layout-content-loader.js +3 -3
  96. package/dist/editor/payaza-form/ArrayItemManager.js +2 -2
  97. package/dist/editor/payaza-form/EditorCanvasPreview.js +5 -5
  98. package/dist/editor/payaza-form/FieldRenderer.js +17 -17
  99. package/dist/editor/payaza-form/IframePreviewMessageBridge.js +3 -3
  100. package/dist/editor/payaza-form/PayazaFormEditor.js +31 -31
  101. package/dist/editor/payaza-form/PayazaFormEditorFullPage.js +2 -2
  102. package/dist/editor/payaza-form/SliderArrayEditor.js +3 -3
  103. package/dist/editor/payaza-form/components/ArrayField.js +1 -1
  104. package/dist/editor/payaza-form/components/BlockStylesInspector.js +1 -1
  105. package/dist/editor/payaza-form/components/BlocksField.js +9 -9
  106. package/dist/editor/payaza-form/components/ButtonField.js +3 -3
  107. package/dist/editor/payaza-form/components/CanvasGranularInspector.js +11 -11
  108. package/dist/editor/payaza-form/components/IconField.js +2 -2
  109. package/dist/editor/payaza-form/components/ImageField.js +1 -1
  110. package/dist/editor/payaza-form/components/NumberField.js +1 -1
  111. package/dist/editor/payaza-form/components/RichTextField.js +2 -2
  112. package/dist/editor/payaza-form/components/SectionField.js +1 -1
  113. package/dist/editor/payaza-form/components/SectionSchemaInspector.js +3 -3
  114. package/dist/editor/payaza-form/components/StarRatingField.js +2 -2
  115. package/dist/editor/payaza-form/components/TextField.js +1 -1
  116. package/dist/editor/payaza-form/data-merger.js +6 -6
  117. package/dist/editor/payaza-form/data-transformer.js +3 -3
  118. package/dist/editor/payaza-form/engine.js +1 -1
  119. package/dist/editor/payaza-form/examples/custom-widgets.example.js +1 -1
  120. package/dist/editor/payaza-form/index.js +8 -8
  121. package/dist/editor/payaza-form/layout-loader.js +2 -2
  122. package/dist/editor/payaza-form/preview-message-handler.js +3 -3
  123. package/dist/editor/payaza-form/schema-bridge.js +3 -3
  124. package/dist/editor/payaza-form/widget-registry.js +1 -1
  125. package/dist/editor/shared/BlockOutlineTree.js +2 -2
  126. package/dist/editor/shared/EditorHeader.js +2 -2
  127. package/dist/editor/shared/EditorNavigator.js +2 -2
  128. package/dist/editor/shared/IframePreview.js +6 -6
  129. package/dist/editor/shared/InlineCanvasPreview.js +8 -8
  130. package/dist/editor/shared/LayoutRenderer.js +1 -1
  131. package/dist/editor/shared/ResizableSidebar.js +1 -1
  132. package/dist/editor/shared/index.js +7 -7
  133. package/dist/hooks/use-analytics.js +3 -3
  134. package/dist/hooks/use-api.js +1 -1
  135. package/dist/hooks/use-cart-api.d.ts.map +1 -1
  136. package/dist/hooks/use-cart-api.js +8 -3
  137. package/dist/hooks/use-catalog-loader.js +3 -3
  138. package/dist/hooks/use-catalog-price-range.d.ts +2 -5
  139. package/dist/hooks/use-catalog-price-range.d.ts.map +1 -1
  140. package/dist/hooks/use-catalog-price-range.js +20 -5
  141. package/dist/hooks/use-category-products.d.ts +8 -0
  142. package/dist/hooks/use-category-products.d.ts.map +1 -0
  143. package/dist/hooks/use-category-products.js +43 -0
  144. package/dist/hooks/use-checkout-fees.d.ts +3 -4
  145. package/dist/hooks/use-checkout-fees.d.ts.map +1 -1
  146. package/dist/hooks/use-checkout-fees.js +1 -1
  147. package/dist/hooks/use-content-ready.js +1 -1
  148. package/dist/hooks/use-featured-products.d.ts +3 -0
  149. package/dist/hooks/use-featured-products.d.ts.map +1 -0
  150. package/dist/hooks/use-featured-products.js +25 -0
  151. package/dist/hooks/use-multi-store-checkout-fees.d.ts +3 -4
  152. package/dist/hooks/use-multi-store-checkout-fees.d.ts.map +1 -1
  153. package/dist/hooks/use-multi-store-checkout-fees.js +1 -1
  154. package/dist/hooks/use-navigation-loading.js +1 -1
  155. package/dist/hooks/use-payaza-checkout.d.ts +1 -1
  156. package/dist/hooks/use-payaza-checkout.d.ts.map +1 -1
  157. package/dist/hooks/use-payaza-checkout.js +9 -3
  158. package/dist/hooks/use-product-brands.d.ts +5 -0
  159. package/dist/hooks/use-product-brands.d.ts.map +1 -0
  160. package/dist/hooks/use-product-brands.js +25 -0
  161. package/dist/hooks/use-product-by-slug.d.ts +7 -0
  162. package/dist/hooks/use-product-by-slug.d.ts.map +1 -0
  163. package/dist/hooks/use-product-by-slug.js +38 -0
  164. package/dist/hooks/use-product-reviews.d.ts +15 -0
  165. package/dist/hooks/use-product-reviews.d.ts.map +1 -0
  166. package/dist/hooks/use-product-reviews.js +75 -0
  167. package/dist/hooks/use-product-variation-selection.d.ts +2 -8
  168. package/dist/hooks/use-product-variation-selection.d.ts.map +1 -1
  169. package/dist/hooks/use-product-variation-selection.js +1 -1
  170. package/dist/hooks/use-products-api.js +3 -3
  171. package/dist/hooks/use-shipping-quote.js +2 -2
  172. package/dist/hooks/use-store-api.js +4 -4
  173. package/dist/hooks/usePreviewSlideSync.js +1 -1
  174. package/dist/index.d.ts +62 -74
  175. package/dist/index.d.ts.map +1 -1
  176. package/dist/index.js +141 -153
  177. package/dist/layouts/booking/components/BookingHomePage.d.ts.map +1 -1
  178. package/dist/layouts/booking/components/BookingHomePage.js +68 -74
  179. package/dist/layouts/booking/components/BookingMultilineHeading.js +1 -1
  180. package/dist/layouts/booking/components/BookingTestimonialCard.js +2 -2
  181. package/dist/layouts/booking/components/BookingTestimonialsEmptyState.js +1 -1
  182. package/dist/layouts/booking/components/booking-footer-defaults.js +2 -2
  183. package/dist/layouts/booking/index.js +8 -8
  184. package/dist/layouts/booking/pages/AboutPage.d.ts +1 -1
  185. package/dist/layouts/booking/pages/AboutPage.d.ts.map +1 -1
  186. package/dist/layouts/booking/pages/AboutPage.js +39 -60
  187. package/dist/layouts/booking/pages/BookPage.d.ts.map +1 -1
  188. package/dist/layouts/booking/pages/BookPage.js +16 -22
  189. package/dist/layouts/booking/pages/CategoriesPage.js +6 -6
  190. package/dist/layouts/booking/pages/CategoryPage.d.ts +1 -1
  191. package/dist/layouts/booking/pages/CategoryPage.d.ts.map +1 -1
  192. package/dist/layouts/booking/pages/CategoryPage.js +17 -26
  193. package/dist/layouts/booking/pages/ContactPage.d.ts +1 -1
  194. package/dist/layouts/booking/pages/ContactPage.d.ts.map +1 -1
  195. package/dist/layouts/booking/pages/ContactPage.js +5 -12
  196. package/dist/layouts/booking/pages/ProductDetailPage.d.ts +1 -1
  197. package/dist/layouts/booking/pages/ProductDetailPage.d.ts.map +1 -1
  198. package/dist/layouts/booking/pages/ProductDetailPage.js +203 -150
  199. package/dist/layouts/booking/pages/ServicesPage.d.ts +1 -1
  200. package/dist/layouts/booking/pages/ServicesPage.d.ts.map +1 -1
  201. package/dist/layouts/booking/pages/ServicesPage.js +11 -31
  202. package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts.map +1 -1
  203. package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.js +21 -30
  204. package/dist/layouts/booking-agenda/index.js +8 -8
  205. package/dist/layouts/booking-agenda/pages/AboutPage.d.ts +1 -1
  206. package/dist/layouts/booking-agenda/pages/AboutPage.d.ts.map +1 -1
  207. package/dist/layouts/booking-agenda/pages/AboutPage.js +11 -14
  208. package/dist/layouts/booking-agenda/pages/BookPage.d.ts.map +1 -1
  209. package/dist/layouts/booking-agenda/pages/BookPage.js +15 -21
  210. package/dist/layouts/booking-agenda/pages/CategoriesPage.js +5 -5
  211. package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts +1 -1
  212. package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts.map +1 -1
  213. package/dist/layouts/booking-agenda/pages/CategoryPage.js +12 -18
  214. package/dist/layouts/booking-agenda/pages/ContactPage.d.ts +1 -1
  215. package/dist/layouts/booking-agenda/pages/ContactPage.d.ts.map +1 -1
  216. package/dist/layouts/booking-agenda/pages/ContactPage.js +8 -13
  217. package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts +1 -1
  218. package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts.map +1 -1
  219. package/dist/layouts/booking-agenda/pages/ProductDetailPage.js +202 -149
  220. package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts +1 -1
  221. package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts.map +1 -1
  222. package/dist/layouts/booking-agenda/pages/ServicesPage.js +8 -23
  223. package/dist/layouts/clothing/components/ClothingHomePage.d.ts.map +1 -1
  224. package/dist/layouts/clothing/components/ClothingHomePage.js +199 -136
  225. package/dist/layouts/clothing/index.js +7 -7
  226. package/dist/layouts/clothing/pages/AboutPage.d.ts +1 -1
  227. package/dist/layouts/clothing/pages/AboutPage.d.ts.map +1 -1
  228. package/dist/layouts/clothing/pages/AboutPage.js +19 -33
  229. package/dist/layouts/clothing/pages/CategoriesPage.js +8 -8
  230. package/dist/layouts/clothing/pages/CategoryPage.d.ts +1 -1
  231. package/dist/layouts/clothing/pages/CategoryPage.d.ts.map +1 -1
  232. package/dist/layouts/clothing/pages/CategoryPage.js +15 -41
  233. package/dist/layouts/clothing/pages/ContactPage.d.ts +1 -1
  234. package/dist/layouts/clothing/pages/ContactPage.d.ts.map +1 -1
  235. package/dist/layouts/clothing/pages/ContactPage.js +5 -8
  236. package/dist/layouts/clothing/pages/ProductDetailPage.d.ts +1 -1
  237. package/dist/layouts/clothing/pages/ProductDetailPage.d.ts.map +1 -1
  238. package/dist/layouts/clothing/pages/ProductDetailPage.js +256 -167
  239. package/dist/layouts/clothing/pages/ProductsPage.d.ts +1 -1
  240. package/dist/layouts/clothing/pages/ProductsPage.d.ts.map +1 -1
  241. package/dist/layouts/clothing/pages/ProductsPage.js +125 -59
  242. package/dist/layouts/clothing/payaza-bindings.js +2 -2
  243. package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts.map +1 -1
  244. package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.js +32 -131
  245. package/dist/layouts/clothing-minimal/components/clothing-minimal-block-render.js +8 -8
  246. package/dist/layouts/clothing-minimal/index.js +7 -7
  247. package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts +1 -1
  248. package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts.map +1 -1
  249. package/dist/layouts/clothing-minimal/pages/AboutPage.js +37 -61
  250. package/dist/layouts/clothing-minimal/pages/CategoriesPage.js +7 -7
  251. package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts +1 -1
  252. package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts.map +1 -1
  253. package/dist/layouts/clothing-minimal/pages/CategoryPage.js +13 -18
  254. package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts +1 -1
  255. package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts.map +1 -1
  256. package/dist/layouts/clothing-minimal/pages/ContactPage.js +5 -8
  257. package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts +1 -1
  258. package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts.map +1 -1
  259. package/dist/layouts/clothing-minimal/pages/ProductDetailPage.js +202 -143
  260. package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts +1 -1
  261. package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts.map +1 -1
  262. package/dist/layouts/clothing-minimal/pages/ProductsPage.js +126 -57
  263. package/dist/layouts/electronics/components/ElectronicsCategoriesPage.js +7 -7
  264. package/dist/layouts/electronics/components/ElectronicsGridProductCard.js +10 -10
  265. package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts.map +1 -1
  266. package/dist/layouts/electronics/components/ElectronicsHomePage.js +29 -31
  267. package/dist/layouts/electronics/components/ElectronicsPageWrapper.js +4 -4
  268. package/dist/layouts/electronics/components/ElectronicsProductsPage.d.ts.map +1 -1
  269. package/dist/layouts/electronics/components/ElectronicsProductsPage.js +81 -23
  270. package/dist/layouts/electronics/components/ElectronicsStoreFooter.js +2 -2
  271. package/dist/layouts/electronics/components/ElectronicsStoreHeader.js +6 -6
  272. package/dist/layouts/electronics/index.js +18 -18
  273. package/dist/layouts/electronics/pages/AboutPage.d.ts +1 -1
  274. package/dist/layouts/electronics/pages/AboutPage.d.ts.map +1 -1
  275. package/dist/layouts/electronics/pages/AboutPage.js +11 -14
  276. package/dist/layouts/electronics/pages/CategoriesPage.js +1 -1
  277. package/dist/layouts/electronics/pages/CategoryPage.d.ts +1 -1
  278. package/dist/layouts/electronics/pages/CategoryPage.d.ts.map +1 -1
  279. package/dist/layouts/electronics/pages/CategoryPage.js +14 -20
  280. package/dist/layouts/electronics/pages/ContactPage.d.ts +1 -1
  281. package/dist/layouts/electronics/pages/ContactPage.d.ts.map +1 -1
  282. package/dist/layouts/electronics/pages/ContactPage.js +8 -13
  283. package/dist/layouts/electronics/pages/HelpCenterPage.js +1 -1
  284. package/dist/layouts/electronics/pages/PrivacyPolicyPage.js +1 -1
  285. package/dist/layouts/electronics/pages/ProductDetailPage.d.ts +1 -1
  286. package/dist/layouts/electronics/pages/ProductDetailPage.d.ts.map +1 -1
  287. package/dist/layouts/electronics/pages/ProductDetailPage.js +201 -142
  288. package/dist/layouts/electronics/pages/ProductsPage.d.ts +1 -1
  289. package/dist/layouts/electronics/pages/ProductsPage.d.ts.map +1 -1
  290. package/dist/layouts/electronics/pages/ProductsPage.js +119 -49
  291. package/dist/layouts/electronics/pages/TermsPage.js +1 -1
  292. package/dist/layouts/electronics/pages/TrackOrderPage.js +4 -4
  293. package/dist/layouts/electronics-grid/components/ElectronicsGridProductCard.js +10 -10
  294. package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.d.ts.map +1 -1
  295. package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.js +75 -33
  296. package/dist/layouts/electronics-grid/index.js +14 -14
  297. package/dist/layouts/electronics-grid/pages/AboutPage.d.ts +1 -1
  298. package/dist/layouts/electronics-grid/pages/AboutPage.d.ts.map +1 -1
  299. package/dist/layouts/electronics-grid/pages/AboutPage.js +11 -14
  300. package/dist/layouts/electronics-grid/pages/CategoriesPage.js +1 -1
  301. package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts +1 -1
  302. package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts.map +1 -1
  303. package/dist/layouts/electronics-grid/pages/CategoryPage.js +14 -20
  304. package/dist/layouts/electronics-grid/pages/ContactPage.d.ts +1 -1
  305. package/dist/layouts/electronics-grid/pages/ContactPage.d.ts.map +1 -1
  306. package/dist/layouts/electronics-grid/pages/ContactPage.js +8 -13
  307. package/dist/layouts/electronics-grid/pages/ElectronicsGridCategoriesPage.js +6 -6
  308. package/dist/layouts/electronics-grid/pages/HelpCenterPage.js +1 -1
  309. package/dist/layouts/electronics-grid/pages/PrivacyPolicyPage.js +1 -1
  310. package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts +1 -1
  311. package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts.map +1 -1
  312. package/dist/layouts/electronics-grid/pages/ProductDetailPage.js +201 -142
  313. package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts +1 -1
  314. package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts.map +1 -1
  315. package/dist/layouts/electronics-grid/pages/ProductsPage.js +121 -52
  316. package/dist/layouts/electronics-grid/pages/TermsPage.js +1 -1
  317. package/dist/layouts/electronics-grid/pages/TrackOrderPage.js +4 -4
  318. package/dist/layouts/food/components/FoodHomePage.d.ts.map +1 -1
  319. package/dist/layouts/food/components/FoodHomePage.js +42 -41
  320. package/dist/layouts/food/index.js +8 -8
  321. package/dist/layouts/food/pages/AboutPage.d.ts +1 -1
  322. package/dist/layouts/food/pages/AboutPage.d.ts.map +1 -1
  323. package/dist/layouts/food/pages/AboutPage.js +44 -45
  324. package/dist/layouts/food/pages/CategoriesPage.js +6 -6
  325. package/dist/layouts/food/pages/CategoryPage.d.ts +1 -1
  326. package/dist/layouts/food/pages/CategoryPage.d.ts.map +1 -1
  327. package/dist/layouts/food/pages/CategoryPage.js +23 -21
  328. package/dist/layouts/food/pages/ContactPage.d.ts +1 -1
  329. package/dist/layouts/food/pages/ContactPage.d.ts.map +1 -1
  330. package/dist/layouts/food/pages/ContactPage.js +5 -7
  331. package/dist/layouts/food/pages/MenuPage.d.ts +1 -1
  332. package/dist/layouts/food/pages/MenuPage.d.ts.map +1 -1
  333. package/dist/layouts/food/pages/MenuPage.js +81 -42
  334. package/dist/layouts/food/pages/ProductDetailPage.d.ts +1 -1
  335. package/dist/layouts/food/pages/ProductDetailPage.d.ts.map +1 -1
  336. package/dist/layouts/food/pages/ProductDetailPage.js +209 -171
  337. package/dist/layouts/food/pages/ProductsPage.d.ts +1 -1
  338. package/dist/layouts/food/pages/ProductsPage.d.ts.map +1 -1
  339. package/dist/layouts/food/pages/ProductsPage.js +130 -45
  340. package/dist/layouts/food-modern/components/FoodHomePageModern.js +10 -10
  341. package/dist/layouts/food-modern/index.js +8 -8
  342. package/dist/layouts/food-modern/pages/AboutPage.d.ts +1 -1
  343. package/dist/layouts/food-modern/pages/AboutPage.d.ts.map +1 -1
  344. package/dist/layouts/food-modern/pages/AboutPage.js +11 -14
  345. package/dist/layouts/food-modern/pages/CategoriesPage.js +5 -5
  346. package/dist/layouts/food-modern/pages/CategoryPage.d.ts +1 -1
  347. package/dist/layouts/food-modern/pages/CategoryPage.d.ts.map +1 -1
  348. package/dist/layouts/food-modern/pages/CategoryPage.js +23 -20
  349. package/dist/layouts/food-modern/pages/ContactPage.d.ts +1 -1
  350. package/dist/layouts/food-modern/pages/ContactPage.d.ts.map +1 -1
  351. package/dist/layouts/food-modern/pages/ContactPage.js +5 -7
  352. package/dist/layouts/food-modern/pages/MenuPage.d.ts +1 -1
  353. package/dist/layouts/food-modern/pages/MenuPage.d.ts.map +1 -1
  354. package/dist/layouts/food-modern/pages/MenuPage.js +81 -46
  355. package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts +1 -1
  356. package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts.map +1 -1
  357. package/dist/layouts/food-modern/pages/ProductDetailPage.js +202 -143
  358. package/dist/layouts/food-modern/pages/ProductsPage.d.ts +1 -1
  359. package/dist/layouts/food-modern/pages/ProductsPage.d.ts.map +1 -1
  360. package/dist/layouts/food-modern/pages/ProductsPage.js +117 -33
  361. package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts.map +1 -1
  362. package/dist/layouts/motivational-speaker/components/MotivationalHomePage.js +32 -23
  363. package/dist/layouts/motivational-speaker/components/MotivationalSpeakerPageWrapper.js +1 -1
  364. package/dist/layouts/motivational-speaker/index.js +9 -9
  365. package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts +1 -1
  366. package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts.map +1 -1
  367. package/dist/layouts/motivational-speaker/pages/AboutPage.js +6 -9
  368. package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts +1 -1
  369. package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts.map +1 -1
  370. package/dist/layouts/motivational-speaker/pages/CategoryPage.js +18 -22
  371. package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts +1 -1
  372. package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts.map +1 -1
  373. package/dist/layouts/motivational-speaker/pages/ContactPage.js +9 -13
  374. package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts +1 -1
  375. package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts.map +1 -1
  376. package/dist/layouts/motivational-speaker/pages/ProductsPage.js +121 -52
  377. package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts +1 -1
  378. package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts.map +1 -1
  379. package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.js +15 -24
  380. package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts +1 -1
  381. package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts.map +1 -1
  382. package/dist/layouts/motivational-speaker/pages/ServicesPage.js +8 -23
  383. package/dist/layouts/motivational-speaker/pages/SubscriptionPage.js +7 -7
  384. package/dist/layouts/shared/components/BaseStoreLayout.js +9 -9
  385. package/dist/layouts/shared/components/CartLineQuantityControl.js +1 -1
  386. package/dist/layouts/shared/components/GenericPageWrapper.js +3 -3
  387. package/dist/layouts/shared/components/ProductPriceFilterSection.js +4 -4
  388. package/dist/layouts/shared/components/PromoBanner.d.ts +1 -4
  389. package/dist/layouts/shared/components/PromoBanner.d.ts.map +1 -1
  390. package/dist/layouts/shared/components/PromoBanner.js +12 -8
  391. package/dist/layouts/shared/components/StoreFooter.js +10 -10
  392. package/dist/layouts/shared/components/StoreHeader.js +7 -7
  393. package/dist/layouts/shared/components/TestimonialCard.d.ts.map +1 -1
  394. package/dist/layouts/shared/components/TestimonialCard.js +2 -2
  395. package/dist/layouts/shared/components/headers/BookingAgendaSidebar.js +2 -2
  396. package/dist/layouts/shared/components/headers/ClothingMinimalHeader.js +11 -11
  397. package/dist/layouts/shared/components/headers/FoodModernHeader.js +7 -7
  398. package/dist/layouts/shared/index.js +22 -22
  399. package/dist/layouts/shared/pages/AccountPage.d.ts.map +1 -1
  400. package/dist/layouts/shared/pages/AccountPage.js +101 -27
  401. package/dist/layouts/shared/pages/CartPage.d.ts.map +1 -1
  402. package/dist/layouts/shared/pages/CartPage.js +39 -90
  403. package/dist/layouts/shared/pages/CheckoutPage.d.ts.map +1 -1
  404. package/dist/layouts/shared/pages/CheckoutPage.js +349 -868
  405. package/dist/layouts/shared/pages/CookiePolicyPage.js +1 -1
  406. package/dist/layouts/shared/pages/FeatureDisabledPage.js +1 -1
  407. package/dist/layouts/shared/pages/HelpCenterPage.js +1 -1
  408. package/dist/layouts/shared/pages/MaintenancePage.d.ts.map +1 -1
  409. package/dist/layouts/shared/pages/MaintenancePage.js +2 -3
  410. package/dist/layouts/shared/pages/PortfolioPage.d.ts.map +1 -1
  411. package/dist/layouts/shared/pages/PortfolioPage.js +2 -2
  412. package/dist/layouts/shared/pages/PrivacyPolicyPage.js +1 -1
  413. package/dist/layouts/shared/pages/SizeGuidePage.js +1 -1
  414. package/dist/layouts/shared/pages/StyleGuidePage.js +3 -3
  415. package/dist/layouts/shared/pages/TeamPage.d.ts.map +1 -1
  416. package/dist/layouts/shared/pages/TeamPage.js +1 -1
  417. package/dist/layouts/shared/pages/TermsPage.js +1 -1
  418. package/dist/layouts/shared/pages/TrackOrderPage.js +4 -4
  419. package/dist/layouts/shared/pages/WishlistPage.d.ts.map +1 -1
  420. package/dist/layouts/shared/pages/WishlistPage.js +44 -29
  421. package/dist/layouts/shared/wrappers/BookingAgendaLayout.d.ts.map +1 -1
  422. package/dist/layouts/shared/wrappers/BookingAgendaLayout.js +80 -35
  423. package/dist/layouts/shared/wrappers/ClothingLayout.js +8 -8
  424. package/dist/layouts/shared/wrappers/ClothingMinimalLayout.js +7 -7
  425. package/dist/layouts/shared/wrappers/ElectronicsLayout.js +5 -5
  426. package/dist/layouts/shared/wrappers/FoodModernLayout.js +6 -6
  427. package/dist/layouts/shared/wrappers/MotivationalLayout.js +9 -9
  428. package/dist/layouts/shared/wrappers/StandardLayout.js +8 -8
  429. package/dist/lib/api.d.ts +3 -4
  430. package/dist/lib/api.d.ts.map +1 -1
  431. package/dist/lib/api.js +69 -109
  432. package/dist/lib/auth-context.js +2 -2
  433. package/dist/lib/content-selectors.d.ts +1 -1
  434. package/dist/lib/content-selectors.d.ts.map +1 -1
  435. package/dist/lib/content-selectors.js +8 -0
  436. package/dist/lib/layout-config-hydration.js +2 -2
  437. package/dist/lib/loading-context.d.ts.map +1 -1
  438. package/dist/lib/loading-context.js +11 -21
  439. package/dist/lib/payaza-checkout.d.ts.map +1 -1
  440. package/dist/lib/payaza-checkout.js +2 -4
  441. package/dist/lib/payaza-public-key.d.ts +6 -0
  442. package/dist/lib/payaza-public-key.d.ts.map +1 -0
  443. package/dist/lib/payaza-public-key.js +10 -0
  444. package/dist/lib/rich-html.d.ts +31 -26
  445. package/dist/lib/rich-html.d.ts.map +1 -1
  446. package/dist/lib/rich-html.js +1 -0
  447. package/dist/lib/services/analytics.service.js +1 -1
  448. package/dist/lib/services/auth.service.js +1 -1
  449. package/dist/lib/services/booking.service.js +1 -1
  450. package/dist/lib/services/category.service.js +1 -1
  451. package/dist/lib/services/checkout.service.d.ts +3 -0
  452. package/dist/lib/services/checkout.service.d.ts.map +1 -1
  453. package/dist/lib/services/checkout.service.js +1 -1
  454. package/dist/lib/services/contact.service.js +1 -1
  455. package/dist/lib/services/customer.service.js +1 -1
  456. package/dist/lib/services/fees.service.d.ts +17 -63
  457. package/dist/lib/services/fees.service.d.ts.map +1 -1
  458. package/dist/lib/services/fees.service.js +4 -138
  459. package/dist/lib/services/index.js +13 -13
  460. package/dist/lib/services/location.service.js +1 -1
  461. package/dist/lib/services/order.service.js +1 -1
  462. package/dist/lib/services/payment.service.js +1 -1
  463. package/dist/lib/services/product.service.d.ts +7 -2
  464. package/dist/lib/services/product.service.d.ts.map +1 -1
  465. package/dist/lib/services/product.service.js +13 -1
  466. package/dist/lib/services/promo.service.js +1 -1
  467. package/dist/lib/services/review.service.js +1 -1
  468. package/dist/lib/services/service.service.js +1 -1
  469. package/dist/lib/services/shipping.service.js +1 -1
  470. package/dist/lib/services/store.service.js +1 -1
  471. package/dist/lib/store-config-utils.d.ts +1 -10
  472. package/dist/lib/store-config-utils.d.ts.map +1 -1
  473. package/dist/lib/store-config-utils.js +73 -261
  474. package/dist/lib/store-config.js +1 -1
  475. package/dist/lib/store-context.d.ts +1 -23
  476. package/dist/lib/store-context.d.ts.map +1 -1
  477. package/dist/lib/store-context.js +89 -111
  478. package/dist/lib/store-types.d.ts +9 -91
  479. package/dist/lib/store-types.d.ts.map +1 -1
  480. package/dist/lib/utils/asset-helpers.js +1 -1
  481. package/dist/lib/utils/catalog-price-bounds.d.ts +16 -6
  482. package/dist/lib/utils/catalog-price-bounds.d.ts.map +1 -1
  483. package/dist/lib/utils/catalog-price-bounds.js +58 -14
  484. package/dist/lib/utils/category-tree.d.ts +9 -0
  485. package/dist/lib/utils/category-tree.d.ts.map +1 -1
  486. package/dist/lib/utils/category-tree.js +26 -0
  487. package/dist/lib/utils/editor-preview.d.ts +5 -0
  488. package/dist/lib/utils/editor-preview.d.ts.map +1 -1
  489. package/dist/lib/utils/editor-preview.js +17 -3
  490. package/dist/lib/utils/fee-calculations.d.ts +5 -1
  491. package/dist/lib/utils/fee-calculations.d.ts.map +1 -1
  492. package/dist/lib/utils/fee-calculations.js +28 -31
  493. package/dist/lib/utils/index.d.ts +1 -1
  494. package/dist/lib/utils/index.d.ts.map +1 -1
  495. package/dist/lib/utils/index.js +4 -4
  496. package/dist/lib/utils/product-images.js +1 -1
  497. package/dist/lib/utils/product-share.js +1 -1
  498. package/dist/lib/utils/url-helpers.d.ts +6 -0
  499. package/dist/lib/utils/url-helpers.d.ts.map +1 -1
  500. package/dist/lib/utils/url-helpers.js +20 -4
  501. package/dist/preview/LayoutPreview.js +6 -6
  502. package/dist/preview/PreviewRouter.js +4 -4
  503. package/dist/preview/canvas/PreviewCanvasEnhancer.js +8 -8
  504. package/dist/preview/canvas/preview-flush-await.js +1 -1
  505. package/dist/preview/canvas/preview-isolation.js +1 -1
  506. package/dist/preview/canvas/preview-route.js +2 -2
  507. package/dist/preview/index.js +5 -5
  508. package/dist/styles/index.css +190 -149
  509. package/package.json +31 -43
@@ -1,22 +1,22 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
- import { generateArrayItem } from './engine.js';
4
- import { TextField } from './components/TextField.js';
5
- import { TextareaField } from './components/TextareaField.js';
6
- import { RichTextField } from './components/RichTextField.js';
7
- import { ToggleField } from './components/ToggleField.js';
8
- import { ImageField } from './components/ImageField.js';
9
- import { NumberField } from './components/NumberField.js';
10
- import { StarRatingField } from './components/StarRatingField.js';
11
- import { IconField } from './components/IconField.js';
12
- import { ButtonField } from './components/ButtonField.js';
13
- import { ArrayField } from './components/ArrayField.js';
14
- import { ObjectField } from './components/ObjectField.js';
15
- import { SectionField } from './components/SectionField.js';
16
- import { BlocksField } from './components/BlocksField.js';
17
- import { getWidget } from './widget-registry.js';
18
- import { PAYAZA_BLOCK_IDS } from '../blocks/types.js';
19
- import { registerFieldRenderer } from './field-renderer-ref.js';
3
+ import { generateArrayItem } from './engine';
4
+ import { TextField } from './components/TextField';
5
+ import { TextareaField } from './components/TextareaField';
6
+ import { RichTextField } from './components/RichTextField';
7
+ import { ToggleField } from './components/ToggleField';
8
+ import { ImageField } from './components/ImageField';
9
+ import { NumberField } from './components/NumberField';
10
+ import { StarRatingField } from './components/StarRatingField';
11
+ import { IconField } from './components/IconField';
12
+ import { ButtonField } from './components/ButtonField';
13
+ import { ArrayField } from './components/ArrayField';
14
+ import { ObjectField } from './components/ObjectField';
15
+ import { SectionField } from './components/SectionField';
16
+ import { BlocksField } from './components/BlocksField';
17
+ import { getWidget } from './widget-registry';
18
+ import { PAYAZA_BLOCK_IDS } from '../blocks/types';
19
+ import { registerFieldRenderer } from './field-renderer-ref';
20
20
  export const FieldRenderer = memo(({ schemaField, value, path, sectionKey, onChange, onArrayItemChange, onArrayItemAdd, onArrayItemRemove, onArrayItemReorder, }) => {
21
21
  const rawEditor = schemaField.type ?? schemaField._editor;
22
22
  // Normalize so persisted / hand-authored schemas ("Toggle") still resolve
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { useEffect, useCallback } from 'react';
3
- import { useAssetSelection } from './AssetSelectionContext.js';
4
- import { processPreviewMessage } from './preview-message-handler.js';
5
- import { normalizeEditorLayoutId } from '../document/layout-id.js';
3
+ import { useAssetSelection } from './AssetSelectionContext';
4
+ import { processPreviewMessage } from './preview-message-handler';
5
+ import { normalizeEditorLayoutId } from '../document/layout-id';
6
6
  /**
7
7
  * Handles postMessage from the layout preview iframe (field commit, image replace, reorder).
8
8
  * Must render under AssetSelectionProvider for image replacement.
@@ -1,37 +1,37 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useState, useMemo, useEffect, useLayoutEffect, useRef, useCallback } from 'react';
3
- import { previewRouteToPageId } from '../../preview/canvas/preview-route.js';
4
- import { EditorHeader } from '../shared/EditorHeader.js';
5
- import { useEditorChromeMetrics } from '../shared/useEditorChromeMetrics.js';
6
- import { EditorNavigator } from '../shared/EditorNavigator.js';
7
- import { ResizableSidebar } from '../shared/ResizableSidebar.js';
8
- import { moveSectionKeyInPageOrder, normalizeEditorLayoutId, resolveSectionKeyOrderForPage, storeConfigToEnvelope, } from '../document/index.js';
9
- import { applyEditorCatalogOverlay } from '../../lib/utils/editor-preview.js';
10
- import { payazaSectionStyleKey, getPayazaSectionStyleEntries } from '../../lib/payaza-section-styles.js';
11
- import { getPageSchema } from './engine.js';
12
- import { loadLayoutJSON } from './layout-loader.js';
13
- import { transformToStoreConfig, updateOverlayData, addArrayItem, removeArrayItem, updateArrayItem, readOverlayFieldValue } from './data-transformer.js';
14
- import { generateArrayItem } from './engine.js';
15
- import { initializeWidgetRegistry, clearWidgets } from './widget-registry.js';
16
- import { mergeRequirementAllPagesWithActualData, mergeAllPagesWithActualData, } from './data-merger.js';
3
+ import { previewRouteToPageId } from '../../preview/canvas/preview-route';
4
+ import { EditorHeader } from '../shared/EditorHeader';
5
+ import { useEditorChromeMetrics } from '../shared/useEditorChromeMetrics';
6
+ import { EditorNavigator } from '../shared/EditorNavigator';
7
+ import { ResizableSidebar } from '../shared/ResizableSidebar';
8
+ import { moveSectionKeyInPageOrder, normalizeEditorLayoutId, resolveSectionKeyOrderForPage, storeConfigToEnvelope, } from '../document';
9
+ import { applyEditorCatalogOverlay } from '../../lib/utils/editor-preview';
10
+ import { payazaSectionStyleKey, getPayazaSectionStyleEntries } from '../../lib/payaza-section-styles';
11
+ import { getPageSchema } from './engine';
12
+ import { loadLayoutJSON } from './layout-loader';
13
+ import { transformToStoreConfig, updateOverlayData, addArrayItem, removeArrayItem, updateArrayItem, readOverlayFieldValue } from './data-transformer';
14
+ import { generateArrayItem } from './engine';
15
+ import { initializeWidgetRegistry, clearWidgets } from './widget-registry';
16
+ import { mergeRequirementAllPagesWithActualData, mergeAllPagesWithActualData, } from './data-merger';
17
17
  import { Settings2, Box, Palette, Layers, Monitor, PanelLeft, ChevronLeft } from 'lucide-react';
18
- import { useDebounce } from '../../hooks/use-debounce.js';
19
- import { AIGenerateModal } from '../shared/AIGenerateModal.js';
20
- import { useAlertModal } from '../../components/ui/alert-modal.js';
21
- import { AssetSelectionProvider } from './AssetSelectionContext.js';
22
- import { IframePreviewMessageBridge } from './IframePreviewMessageBridge.js';
23
- import { EditorCanvasPreview } from './EditorCanvasPreview.js';
24
- import { awaitPreviewFlushAck } from '../../preview/canvas/preview-flush-await.js';
25
- import { BlockStylesInspector } from './components/BlockStylesInspector.js';
26
- import { CanvasGranularInspector } from './components/CanvasGranularInspector.js';
27
- import { SectionSchemaInspector } from './components/SectionSchemaInspector.js';
28
- import { isLayoutPageEditable } from '../alignment-schemas/metadata.js';
29
- import { resolveCanvasInspectorLeaf } from '../alignment-schemas/resolve-canvas-inspector-leaf.js';
30
- import { isInlineCanvasTextElementKind } from '../../lib/utils/mobile-editor.js';
31
- import { granularPathForArrayItem, granularPathForBlockFirstAttr, outlineTreeForSectionPayload, } from '../blocks/nav-outline-utils.js';
32
- import { ActiveArrayFocusProvider, } from './ActiveArrayFocusContext.js';
33
- import { EditorLayoutProvider } from './EditorLayoutContext.js';
34
- import { isMobileEditorViewport, shouldUseInlineEditorPreview } from '../../lib/utils/mobile-editor.js';
18
+ import { useDebounce } from '../../hooks/use-debounce';
19
+ import { AIGenerateModal } from '../shared/AIGenerateModal';
20
+ import { useAlertModal } from '../../components/ui/alert-modal';
21
+ import { AssetSelectionProvider } from './AssetSelectionContext';
22
+ import { IframePreviewMessageBridge } from './IframePreviewMessageBridge';
23
+ import { EditorCanvasPreview } from './EditorCanvasPreview';
24
+ import { awaitPreviewFlushAck } from '../../preview/canvas/preview-flush-await';
25
+ import { BlockStylesInspector } from './components/BlockStylesInspector';
26
+ import { CanvasGranularInspector } from './components/CanvasGranularInspector';
27
+ import { SectionSchemaInspector } from './components/SectionSchemaInspector';
28
+ import { isLayoutPageEditable } from '../alignment-schemas/metadata';
29
+ import { resolveCanvasInspectorLeaf } from '../alignment-schemas/resolve-canvas-inspector-leaf';
30
+ import { isInlineCanvasTextElementKind } from '../../lib/utils/mobile-editor';
31
+ import { granularPathForArrayItem, granularPathForBlockFirstAttr, outlineTreeForSectionPayload, } from '../blocks/nav-outline-utils';
32
+ import { ActiveArrayFocusProvider, } from './ActiveArrayFocusContext';
33
+ import { EditorLayoutProvider } from './EditorLayoutContext';
34
+ import { isMobileEditorViewport, shouldUseInlineEditorPreview } from '../../lib/utils/mobile-editor';
35
35
  /** Lightweight fingerprint for undo history on mobile — avoids JSON.stringify on large configs. */
36
36
  function lightweightConfigFingerprint(config) {
37
37
  try {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { PayazaFormEditor } from './PayazaFormEditor.js';
3
- import { AlertModalProvider } from '../../components/ui/alert-modal.js';
2
+ import { PayazaFormEditor } from './PayazaFormEditor';
3
+ import { AlertModalProvider } from '../../components/ui/alert-modal';
4
4
  export const PayazaFormEditorFullPage = (props) => {
5
5
  return (_jsx(AlertModalProvider, { children: _jsx("div", { className: "fixed inset-0 z-50 flex h-[100dvh] max-h-[100dvh] flex-col overflow-hidden bg-[#F7F5F0]", children: _jsx("main", { className: "relative flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(PayazaFormEditor, { ...props }) }) }) }));
6
6
  };
@@ -2,9 +2,9 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { memo, useCallback, useEffect, useRef } from 'react';
4
4
  import { ChevronLeft, ChevronRight, Copy, Image as ImageIcon, Plus, Trash2, } from 'lucide-react';
5
- import { cn } from '../../lib/utils/index.js';
6
- import { getFieldRenderer } from './field-renderer-ref.js';
7
- import { useActiveArrayFocus } from './ActiveArrayFocusContext.js';
5
+ import { cn } from '../../lib/utils';
6
+ import { getFieldRenderer } from './field-renderer-ref';
7
+ import { useActiveArrayFocus } from './ActiveArrayFocusContext';
8
8
  function slideLabel(item, index) {
9
9
  if (!item)
10
10
  return `Slide ${index + 1}`;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
3
  import { List } from 'lucide-react';
4
- import { ArrayItemManager } from '../ArrayItemManager.js';
4
+ import { ArrayItemManager } from '../ArrayItemManager';
5
5
  export const ArrayField = memo(({ label, value, onChange, itemSchema, itemEditor, sectionKey, arrayFieldKey, minSlides, maxSlides, onItemChange, onItemAdd, onItemRemove, onItemReorder, onItemDuplicate, }) => {
6
6
  const handleItemDuplicate = (index) => {
7
7
  if (onItemDuplicate) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useMemo } from 'react';
3
- import { resolveStyleSupports, sanitizePayazaStyleMap } from '../payaza-style-sanitize.js';
3
+ import { resolveStyleSupports, sanitizePayazaStyleMap } from '../payaza-style-sanitize';
4
4
  const inputCls = 'w-full rounded-[2px] border border-[#dcdcde] bg-white px-2 py-1.5 text-[13px] text-[#1b0029] outline-none focus-visible:ring-2 focus-visible:ring-[#440066]/35';
5
5
  const labelCls = 'mb-1 block text-[11px] font-medium text-[#646970]';
6
6
  const sectionTitle = 'text-[11px] font-semibold uppercase tracking-[0.08em] text-[#787c82]';
@@ -2,15 +2,15 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React, { memo, useCallback } from 'react';
4
4
  import { ChevronDown, ChevronRight, Plus, Trash2 } from 'lucide-react';
5
- import { cn } from '../../../lib/utils/index.js';
6
- import { createPayazaEmptyBlock, getPayazaBlockDefinition } from '../../blocks/registry.js';
7
- import { deepClone } from '../../../lib/utils/index.js';
8
- import { RichTextField } from './RichTextField.js';
9
- import { TextField } from './TextField.js';
10
- import { ImageField } from './ImageField.js';
11
- import { NumberField } from './NumberField.js';
12
- import { IconField } from './IconField.js';
13
- import { FieldDensityProvider } from './FieldDensityContext.js';
5
+ import { cn } from '../../../lib/utils';
6
+ import { createPayazaEmptyBlock, getPayazaBlockDefinition } from '../../blocks/registry';
7
+ import { deepClone } from '../../../lib/utils';
8
+ import { RichTextField } from './RichTextField';
9
+ import { TextField } from './TextField';
10
+ import { ImageField } from './ImageField';
11
+ import { NumberField } from './NumberField';
12
+ import { IconField } from './IconField';
13
+ import { FieldDensityProvider } from './FieldDensityContext';
14
14
  function normalizeBlocks(v) {
15
15
  if (!Array.isArray(v))
16
16
  return [];
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Link2 } from 'lucide-react';
4
- import { TextField } from './TextField.js';
5
- import { useEditorLayout } from '../EditorLayoutContext.js';
6
- import { getTemplatePages } from '../../../lib/template-pages.js';
4
+ import { TextField } from './TextField';
5
+ import { useEditorLayout } from '../EditorLayoutContext';
6
+ import { getTemplatePages } from '../../../lib/template-pages';
7
7
  export const ButtonField = ({ label, value, onChange }) => {
8
8
  const { layoutId } = useEditorLayout();
9
9
  const pages = getTemplatePages(layoutId);
@@ -1,17 +1,17 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { memo, useMemo } from 'react';
4
- import { readOverlayFieldValue } from '../data-transformer.js';
5
- import { resolveCanvasInspectorLeaf, } from '../../alignment-schemas/resolve-canvas-inspector-leaf.js';
6
- import { coerceRichSidebarEditorString } from '../../../lib/rich-html.js';
7
- import { TextField } from './TextField.js';
8
- import { TextareaField } from './TextareaField.js';
9
- import { RichTextField } from './RichTextField.js';
10
- import { ImageField } from './ImageField.js';
11
- import { IconField } from './IconField.js';
12
- import { NumberField } from './NumberField.js';
13
- import { StarRatingField } from './StarRatingField.js';
14
- import { ToggleField } from './ToggleField.js';
4
+ import { readOverlayFieldValue } from '../data-transformer';
5
+ import { resolveCanvasInspectorLeaf, } from '../../alignment-schemas/resolve-canvas-inspector-leaf';
6
+ import { coerceRichSidebarEditorString } from '../../../lib/rich-html';
7
+ import { TextField } from './TextField';
8
+ import { TextareaField } from './TextareaField';
9
+ import { RichTextField } from './RichTextField';
10
+ import { ImageField } from './ImageField';
11
+ import { IconField } from './IconField';
12
+ import { NumberField } from './NumberField';
13
+ import { StarRatingField } from './StarRatingField';
14
+ import { ToggleField } from './ToggleField';
15
15
  export const CanvasGranularInspector = memo(({ layoutJson, activePageId, sectionKey, fieldPath, elementKind, pageSchemaRecord, sectionData, onChange, }) => {
16
16
  const meta = useMemo(() => resolveCanvasInspectorLeaf(pageSchemaRecord, sectionKey, fieldPath, sectionData, elementKind), [pageSchemaRecord, sectionKey, fieldPath, sectionData, elementKind]);
17
17
  const rawValue = useMemo(() => readOverlayFieldValue(layoutJson, activePageId, sectionKey, fieldPath), [layoutJson, activePageId, sectionKey, fieldPath]);
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import { ChevronDown, Search, HelpCircle } from 'lucide-react';
4
- import { ICON_MAP, COMMON_ICON_NAMES } from '../../../components/ui/dynamic-icon.js';
5
- import { resolveFieldDensity } from './FieldDensityContext.js';
4
+ import { ICON_MAP, COMMON_ICON_NAMES } from '../../../components/ui/dynamic-icon';
5
+ import { resolveFieldDensity } from './FieldDensityContext';
6
6
  /** Match persisted / hand-typed icon ids to Lucide map keys (case-insensitive). */
7
7
  function resolveIconMapKey(raw) {
8
8
  if (!raw?.trim())
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { Link2, X, Upload } from 'lucide-react';
4
- import { useAssetSelection } from '../AssetSelectionContext.js';
4
+ import { useAssetSelection } from '../AssetSelectionContext';
5
5
  export const ImageField = ({ label, value, onChange, placeholder, }) => {
6
6
  const hasImage = value && value.startsWith('http');
7
7
  const [isHovered, setIsHovered] = React.useState(false);
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Plus, Minus } from 'lucide-react';
3
- import { resolveFieldDensity } from './FieldDensityContext.js';
3
+ import { resolveFieldDensity } from './FieldDensityContext';
4
4
  export const NumberField = ({ label, value, onChange, placeholder, min, max, density: densityProp, }) => {
5
5
  const density = resolveFieldDensity(densityProp);
6
6
  const compact = density === 'compact';
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { memo, useRef, useCallback, useLayoutEffect, useState } from 'react';
3
- import { buildPayazaRichCommitFromEditorHtml, coercePayazaRichLinkHref, normalizeStoredRichValue, coerceRichSidebarEditorString, PAYAZA_RICH_HTML_POLICY_VERSION, sanitizePayazaRichHtml, wrapPlainTextAsParagraph, } from '../../../lib/rich-html.js';
4
- import { resolveFieldDensity } from './FieldDensityContext.js';
3
+ import { buildPayazaRichCommitFromEditorHtml, coercePayazaRichLinkHref, normalizeStoredRichValue, coerceRichSidebarEditorString, PAYAZA_RICH_HTML_POLICY_VERSION, sanitizePayazaRichHtml, wrapPlainTextAsParagraph, } from '../../../lib/rich-html';
4
+ import { resolveFieldDensity } from './FieldDensityContext';
5
5
  function runCmd(cmd, val) {
6
6
  document.execCommand(cmd, false, val);
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '../../../lib/utils/index.js';
2
+ import { cn } from '../../../lib/utils';
3
3
  /**
4
4
  * Non-collapsible panel for block/schema groups — full settings always visible.
5
5
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FieldRenderer } from '../FieldRenderer.js';
3
- import { BlocksField } from './BlocksField.js';
4
- import { PAYAZA_BLOCK_IDS } from '../../blocks/types.js';
2
+ import { FieldRenderer } from '../FieldRenderer';
3
+ import { BlocksField } from './BlocksField';
4
+ import { PAYAZA_BLOCK_IDS } from '../../blocks/types';
5
5
  function fieldTypeOf(field) {
6
6
  const raw = field.type ?? field._editor;
7
7
  if (raw === undefined || raw === null)
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Star } from 'lucide-react';
3
- import { cn } from '../../../lib/utils/index.js';
4
- import { resolveFieldDensity } from './FieldDensityContext.js';
3
+ import { cn } from '../../../lib/utils';
4
+ import { resolveFieldDensity } from './FieldDensityContext';
5
5
  function clampRating(value, min, max) {
6
6
  if (!Number.isFinite(value))
7
7
  return max;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
- import { resolveFieldDensity } from './FieldDensityContext.js';
3
+ import { resolveFieldDensity } from './FieldDensityContext';
4
4
  export const TextField = memo(({ label, value, onChange, placeholder, type = 'text', density: densityProp, }) => {
5
5
  const density = resolveFieldDensity(densityProp);
6
6
  const compact = density === 'compact';
@@ -1,9 +1,9 @@
1
- import { deepClone } from '../../lib/utils/index.js';
2
- import { transformToStoreConfig } from './data-transformer.js';
3
- import { ensureClothingMinimalHomeBlocksInPageData } from '../blocks/migrate-clothing-minimal.js';
4
- import { BOOKING_DEFAULT_TESTIMONIALS, normalizeBookingTestimonialItems, } from '../../layouts/booking/components/booking-testimonial-defaults.js';
5
- import { BOOKING_DEFAULT_ABOUT_STATS, BOOKING_DEFAULT_ABOUT_VALUES, mergeBookingAboutItemsSection, } from '../../layouts/booking/components/booking-about-defaults.js';
6
- import { mergeBookingFooterSection } from '../../layouts/booking/components/booking-footer-defaults.js';
1
+ import { deepClone } from '../../lib/utils';
2
+ import { transformToStoreConfig } from './data-transformer';
3
+ import { ensureClothingMinimalHomeBlocksInPageData } from '../blocks/migrate-clothing-minimal';
4
+ import { BOOKING_DEFAULT_TESTIMONIALS, normalizeBookingTestimonialItems, } from '../../layouts/booking/components/booking-testimonial-defaults';
5
+ import { BOOKING_DEFAULT_ABOUT_STATS, BOOKING_DEFAULT_ABOUT_VALUES, mergeBookingAboutItemsSection, } from '../../layouts/booking/components/booking-about-defaults';
6
+ import { mergeBookingFooterSection } from '../../layouts/booking/components/booking-footer-defaults';
7
7
  function sliderHasUsableContent(slider) {
8
8
  if (!slider)
9
9
  return false;
@@ -1,6 +1,6 @@
1
- import { deepClone } from '../../lib/utils/index.js';
2
- import { normalizeLayoutConfigFieldShapes } from '../../lib/layout-field-normalize.js';
3
- import { sanitizeBookingTestimonialItemsForSave } from '../../layouts/booking/components/booking-testimonial-defaults.js';
1
+ import { deepClone } from '../../lib/utils';
2
+ import { normalizeLayoutConfigFieldShapes } from '../../lib/layout-field-normalize';
3
+ import { sanitizeBookingTestimonialItemsForSave } from '../../layouts/booking/components/booking-testimonial-defaults';
4
4
  /**
5
5
  * Helper to set value at deep path in object
6
6
  */
@@ -1,4 +1,4 @@
1
- import { deepClone } from '../../lib/utils/index.js';
1
+ import { deepClone } from '../../lib/utils';
2
2
  /**
3
3
  * Parse overlay pattern JSON structure
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { registerWidget, registerWidgets, PayazaFormEditorFullPage } from '../index.js';
2
+ import { registerWidget, registerWidgets, PayazaFormEditorFullPage } from '../index';
3
3
  // Example 1: Custom Text Field Widget
4
4
  const CustomTextField = ({ label, value, onChange }) => {
5
5
  return (_jsxs("div", { className: "custom-text-field", children: [_jsx("label", { className: "text-sm font-semibold text-gray-700 mb-1 block", children: label }), _jsx("input", { type: "text", value: value || '', onChange: (e) => onChange(e.target.value), className: "w-full px-4 py-2 border-2 border-blue-300 rounded-lg focus:border-blue-500 focus:outline-none", placeholder: `Enter ${label.toLowerCase()}...` })] }));
@@ -1,8 +1,8 @@
1
- export { PayazaFormEditor } from './PayazaFormEditor.js';
2
- export { PayazaFormEditorFullPage } from './PayazaFormEditorFullPage.js';
3
- export { getGlobalAssetSelectionHandler, setGlobalAssetSelectionHandler } from './AssetSelectionContext.js';
4
- export * from './engine.js';
5
- export * from './data-transformer.js';
6
- export * from './layout-loader.js';
7
- export * from './widget-registry.js';
8
- export * from '../document/index.js';
1
+ export { PayazaFormEditor } from './PayazaFormEditor';
2
+ export { PayazaFormEditorFullPage } from './PayazaFormEditorFullPage';
3
+ export { getGlobalAssetSelectionHandler, setGlobalAssetSelectionHandler } from './AssetSelectionContext';
4
+ export * from './engine';
5
+ export * from './data-transformer';
6
+ export * from './layout-loader';
7
+ export * from './widget-registry';
8
+ export * from '../document';
@@ -1,5 +1,5 @@
1
- import { parseLayoutJSON } from './engine.js';
2
- import { bridgeRequirementToOverlayJSONAsync, getBridgedPayazaFormRequirement } from './schema-bridge.js';
1
+ import { parseLayoutJSON } from './engine';
2
+ import { bridgeRequirementToOverlayJSONAsync, getBridgedPayazaFormRequirement } from './schema-bridge';
3
3
  /**
4
4
  * Async layout loader — primary path.
5
5
  * Lazily loads only the alignment schema for the active layout.
@@ -1,6 +1,6 @@
1
- import { PREVIEW_MSG, } from '../../preview/canvas/preview-messages.js';
2
- import { previewCommitsMatchEditorContext } from '../../preview/canvas/preview-isolation.js';
3
- import { resolvePreviewFlushAck } from '../../preview/canvas/preview-flush-await.js';
1
+ import { PREVIEW_MSG, } from '../../preview/canvas/preview-messages';
2
+ import { previewCommitsMatchEditorContext } from '../../preview/canvas/preview-isolation';
3
+ import { resolvePreviewFlushAck } from '../../preview/canvas/preview-flush-await';
4
4
  /** Shared handler for iframe postMessage and inline preview events. */
5
5
  export function processPreviewMessage(d, ctx) {
6
6
  if (d.type === PREVIEW_MSG.FLUSH_EDITS_ACK) {
@@ -1,6 +1,6 @@
1
- import { loadAlignmentSchemaAsync, getLoadedAlignmentSchema, } from '../alignment-schemas/lazy-loader.js';
2
- import { getLayoutMetadata } from '../alignment-schemas/metadata.js';
3
- import { normalizeEditorLayoutId } from '../document/layout-id.js';
1
+ import { loadAlignmentSchemaAsync, getLoadedAlignmentSchema, } from '../alignment-schemas/lazy-loader';
2
+ import { getLayoutMetadata } from '../alignment-schemas/metadata';
3
+ import { normalizeEditorLayoutId } from '../document/layout-id';
4
4
  const _overlayCache = {};
5
5
  function buildOverlayJSON(metadata, alignmentSchema) {
6
6
  return {
@@ -15,7 +15,7 @@ const widgetRegistry = new Map();
15
15
  *
16
16
  * @example
17
17
  * ```tsx
18
- * import { registerWidget } from './widget-registry.js';
18
+ * import { registerWidget } from './widget-registry';
19
19
  *
20
20
  * const MyCustomTextField = ({ label, value, onChange }) => (
21
21
  * <div>
@@ -2,8 +2,8 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from 'react';
4
4
  import { AlignLeft, ChevronDown, ChevronRight, Eye, EyeOff, Image as ImageIcon, Layers, MapPin, Minus, MousePointer2, Square, Star, Tag, Type, } from 'lucide-react';
5
- import { cn } from '../../lib/utils/index.js';
6
- import { isGranularPathUnderBlock } from '../blocks/nav-outline-utils.js';
5
+ import { cn } from '../../lib/utils';
6
+ import { isGranularPathUnderBlock } from '../blocks/nav-outline-utils';
7
7
  const BLOCK_ICON_MAP = {
8
8
  'payaza/heading': Type,
9
9
  'payaza/paragraph': AlignLeft,
@@ -2,9 +2,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { motion, AnimatePresence } from 'framer-motion';
5
- import { cn } from '../../lib/utils/index.js';
5
+ import { cn } from '../../lib/utils';
6
6
  import { ArrowLeft, Layout, Save, Smartphone, Monitor, Tablet, Eye, Pencil, PanelLeft, ChevronDown, Home, ShoppingBag, ShoppingCart, FileText, Settings, Undo2, Redo2, Send, Sparkles, Image as ImageIcon, Palette, Check, ZoomIn, } from 'lucide-react';
7
- import { PREVIEW_ZOOM_OPTIONS } from './preview-viewport.js';
7
+ import { PREVIEW_ZOOM_OPTIONS } from './preview-viewport';
8
8
  const Tooltip = ({ text, children }) => {
9
9
  const [isVisible, setIsVisible] = useState(false);
10
10
  const [coords, setCoords] = useState({ top: 0, left: 0 });
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
- import { cn } from '../../lib/utils/index.js';
3
+ import { cn } from '../../lib/utils';
4
4
  import { ChevronDown, ChevronRight, Eye, EyeOff, Layers, List } from 'lucide-react';
5
- import { BlockOutlineTree } from './BlockOutlineTree.js';
5
+ import { BlockOutlineTree } from './BlockOutlineTree';
6
6
  /**
7
7
  * Full-template outline (pages → blocks). Reorder controls apply to the active page only.
8
8
  */
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useEffect, useImperativeHandle, useMemo, useRef, useState, forwardRef } from 'react';
3
- import { isDeepEqual } from '../../lib/utils/index.js';
4
- import { normalizeEditorLayoutId } from '../document/layout-id.js';
5
- import { previewPageIdToRoute } from '../../preview/canvas/preview-route.js';
6
- import { PREVIEW_MSG } from '../../preview/canvas/preview-messages.js';
7
- import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport.js';
8
- export { DESKTOP_PREVIEW_WIDTH } from './preview-viewport.js';
3
+ import { isDeepEqual } from '../../lib/utils';
4
+ import { normalizeEditorLayoutId } from '../document/layout-id';
5
+ import { previewPageIdToRoute } from '../../preview/canvas/preview-route';
6
+ import { PREVIEW_MSG } from '../../preview/canvas/preview-messages';
7
+ import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport';
8
+ export { DESKTOP_PREVIEW_WIDTH } from './preview-viewport';
9
9
  export const IframePreview = forwardRef(function IframePreview({ layoutId, config, activePageId, viewMode, selectedSection, focusedField = null, interactionMode = 'edit', slideIndexSync = null, flushRequestId = 0, previewZoom = 'fit', desktopCanvasWidth = DESKTOP_PREVIEW_WIDTH, className = '', }, ref) {
10
10
  const iframeRef = useRef(null);
11
11
  const viewportContainerRef = useRef(null);
@@ -1,14 +1,14 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useMemo, useRef, useState } from 'react';
4
- import { LayoutPreview } from '../../preview/LayoutPreview.js';
5
- import { PreviewCanvasEnhancer } from '../../preview/canvas/PreviewCanvasEnhancer.js';
6
- import { PreviewCanvasStyles } from '../../preview/canvas/PreviewCanvasStyles.js';
7
- import { previewPageIdToRoute } from '../../preview/canvas/preview-route.js';
8
- import { PREVIEW_MSG } from '../../preview/canvas/preview-messages.js';
9
- import { normalizeEditorLayoutId } from '../document/layout-id.js';
10
- import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport.js';
11
- import { MOBILE_INLINE_DESKTOP_MAX_WIDTH, shouldUseInlineEditorPreview, } from '../../lib/utils/mobile-editor.js';
4
+ import { LayoutPreview } from '../../preview/LayoutPreview';
5
+ import { PreviewCanvasEnhancer } from '../../preview/canvas/PreviewCanvasEnhancer';
6
+ import { PreviewCanvasStyles } from '../../preview/canvas/PreviewCanvasStyles';
7
+ import { previewPageIdToRoute } from '../../preview/canvas/preview-route';
8
+ import { PREVIEW_MSG } from '../../preview/canvas/preview-messages';
9
+ import { normalizeEditorLayoutId } from '../document/layout-id';
10
+ import { DESKTOP_PREVIEW_WIDTH, resolvePreviewScale, } from './preview-viewport';
11
+ import { MOBILE_INLINE_DESKTOP_MAX_WIDTH, shouldUseInlineEditorPreview, } from '../../lib/utils/mobile-editor';
12
12
  const MOBILE_INLINE_MIN_LAYOUT_HEIGHT = 480;
13
13
  /**
14
14
  * Same-document layout preview for mobile editors — avoids iframe memory overhead on WebKit.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { LayoutPreview } from '../../preview/LayoutPreview.js';
2
+ import { LayoutPreview } from '../../preview/LayoutPreview';
3
3
  export const LayoutRenderer = ({ layoutId, config, activePageId, className = '', }) => {
4
4
  // Map the pageId to a route for LayoutPreview
5
5
  const route = activePageId === 'home' ? '/' : `/${activePageId}`;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState, useCallback, useEffect, useRef } from 'react';
3
- import { cn } from '../../lib/utils/index.js';
3
+ import { cn } from '../../lib/utils';
4
4
  import { GripVertical } from 'lucide-react';
5
5
  export const ResizableSidebar = ({ children, initialWidth = 400, minWidth = 300, maxWidth = 600, className = '', side = 'right', onWidthChange, }) => {
6
6
  const [width, setWidth] = useState(initialWidth);
@@ -1,7 +1,7 @@
1
- export * from './EditorHeader.js';
2
- export * from './EditorNavigator.js';
3
- export * from './IframePreview.js';
4
- export * from './InlineCanvasPreview.js';
5
- export * from './LayoutRenderer.js';
6
- export * from './PageTabs.js';
7
- export * from './ResizableSidebar.js';
1
+ export * from './EditorHeader';
2
+ export * from './EditorNavigator';
3
+ export * from './IframePreview';
4
+ export * from './InlineCanvasPreview';
5
+ export * from './LayoutRenderer';
6
+ export * from './PageTabs';
7
+ export * from './ResizableSidebar';
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  import { useEffect, useCallback, useRef } from 'react';
3
3
  import { usePathname } from 'next/navigation';
4
- import { analyticsService } from '../lib/services/analytics.service.js';
5
- import { useStore } from '../lib/store-context.js';
6
- import { useAuth } from '../lib/auth-context.js';
4
+ import { analyticsService } from '../lib/services/analytics.service';
5
+ import { useStore } from '../lib/store-context';
6
+ import { useAuth } from '../lib/auth-context';
7
7
  /**
8
8
  * React hook for analytics tracking
9
9
  * Automatically tracks page views and provides trackEvent function
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect, useCallback } from 'react';
2
- import { useLoading } from '../lib/loading-context.js';
2
+ import { useLoading } from '../lib/loading-context';
3
3
  /**
4
4
  * Generic API hook for async operations
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"use-cart-api.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-api.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,gBAAgB,CAqH5E"}
1
+ {"version":3,"file":"use-cart-api.d.ts","sourceRoot":"","sources":["../../src/hooks/use-cart-api.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,GAAG,gBAAgB,CAwH5E"}