@cedros/pay-react 1.0.4 → 1.1.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 (389) hide show
  1. package/README.md +297 -39
  2. package/dist/CedrosContext-DUT3cLZg.mjs +2474 -0
  3. package/dist/CedrosContext-efFL4kQz.js +11 -0
  4. package/dist/admin/index.d.ts +9 -0
  5. package/dist/admin/index.d.ts.map +1 -0
  6. package/dist/admin/plugin.d.ts +9 -0
  7. package/dist/admin/plugin.d.ts.map +1 -0
  8. package/dist/admin/types.d.ts +115 -0
  9. package/dist/admin/types.d.ts.map +1 -0
  10. package/dist/components/CedrosPay.d.ts.map +1 -1
  11. package/dist/components/CreditsButton.d.ts +42 -0
  12. package/dist/components/CreditsButton.d.ts.map +1 -0
  13. package/dist/components/CreditsSubscribeButton.d.ts +55 -0
  14. package/dist/components/CreditsSubscribeButton.d.ts.map +1 -0
  15. package/dist/components/CryptoButton.d.ts.map +1 -1
  16. package/dist/components/CryptoSubscribeButton.d.ts +50 -0
  17. package/dist/components/CryptoSubscribeButton.d.ts.map +1 -0
  18. package/dist/components/PaymentModal.d.ts +8 -2
  19. package/dist/components/PaymentModal.d.ts.map +1 -1
  20. package/dist/components/PurchaseButton.d.ts +14 -3
  21. package/dist/components/PurchaseButton.d.ts.map +1 -1
  22. package/dist/components/SubscribeButton.d.ts +55 -0
  23. package/dist/components/SubscribeButton.d.ts.map +1 -0
  24. package/dist/components/SubscriptionManagementPanel.d.ts +67 -0
  25. package/dist/components/SubscriptionManagementPanel.d.ts.map +1 -0
  26. package/dist/components/admin/AISettingsSection.d.ts +3 -0
  27. package/dist/components/admin/AISettingsSection.d.ts.map +1 -0
  28. package/dist/components/admin/AdminAuthManager.d.ts +95 -0
  29. package/dist/components/admin/AdminAuthManager.d.ts.map +1 -0
  30. package/dist/components/admin/CedrosPayAdminDashboard.d.ts +40 -0
  31. package/dist/components/admin/CedrosPayAdminDashboard.d.ts.map +1 -0
  32. package/dist/components/admin/ConfigEditor.d.ts +13 -0
  33. package/dist/components/admin/ConfigEditor.d.ts.map +1 -0
  34. package/dist/components/admin/CouponsSection.d.ts +3 -0
  35. package/dist/components/admin/CouponsSection.d.ts.map +1 -0
  36. package/dist/components/admin/Dropdown.d.ts +29 -0
  37. package/dist/components/admin/Dropdown.d.ts.map +1 -0
  38. package/dist/components/admin/FAQSection.d.ts +3 -0
  39. package/dist/components/admin/FAQSection.d.ts.map +1 -0
  40. package/dist/components/admin/MessagingSection.d.ts +10 -0
  41. package/dist/components/admin/MessagingSection.d.ts.map +1 -0
  42. package/dist/components/admin/OverviewSection.d.ts +3 -0
  43. package/dist/components/admin/OverviewSection.d.ts.map +1 -0
  44. package/dist/components/admin/PaymentSettingsSection.d.ts +3 -0
  45. package/dist/components/admin/PaymentSettingsSection.d.ts.map +1 -0
  46. package/dist/components/admin/ProductVariationsEditor.d.ts +14 -0
  47. package/dist/components/admin/ProductVariationsEditor.d.ts.map +1 -0
  48. package/dist/components/admin/ProductsSection.d.ts +3 -0
  49. package/dist/components/admin/ProductsSection.d.ts.map +1 -0
  50. package/dist/components/admin/RefundsSection.d.ts +3 -0
  51. package/dist/components/admin/RefundsSection.d.ts.map +1 -0
  52. package/dist/components/admin/SettingsSection.d.ts +10 -0
  53. package/dist/components/admin/SettingsSection.d.ts.map +1 -0
  54. package/dist/components/admin/SingleCategorySettings.d.ts +21 -0
  55. package/dist/components/admin/SingleCategorySettings.d.ts.map +1 -0
  56. package/dist/components/admin/StatsBar.d.ts +19 -0
  57. package/dist/components/admin/StatsBar.d.ts.map +1 -0
  58. package/dist/components/admin/StorefrontSection.d.ts +3 -0
  59. package/dist/components/admin/StorefrontSection.d.ts.map +1 -0
  60. package/dist/components/admin/SubscriptionsSection.d.ts +3 -0
  61. package/dist/components/admin/SubscriptionsSection.d.ts.map +1 -0
  62. package/dist/components/admin/TransactionsSection.d.ts +3 -0
  63. package/dist/components/admin/TransactionsSection.d.ts.map +1 -0
  64. package/dist/components/admin/VariantInventoryGrid.d.ts +19 -0
  65. package/dist/components/admin/VariantInventoryGrid.d.ts.map +1 -0
  66. package/dist/components/admin/VariationTypeEditor.d.ts +15 -0
  67. package/dist/components/admin/VariationTypeEditor.d.ts.map +1 -0
  68. package/dist/components/admin/configApi.d.ts +104 -0
  69. package/dist/components/admin/configApi.d.ts.map +1 -0
  70. package/dist/components/admin/icons.d.ts +50 -0
  71. package/dist/components/admin/icons.d.ts.map +1 -0
  72. package/dist/components/admin/index.d.ts +16 -0
  73. package/dist/components/admin/index.d.ts.map +1 -0
  74. package/dist/components/admin/sections-more.d.ts +12 -0
  75. package/dist/components/admin/sections-more.d.ts.map +1 -0
  76. package/dist/components/admin/sections.d.ts +12 -0
  77. package/dist/components/admin/sections.d.ts.map +1 -0
  78. package/dist/components/admin/types.d.ts +324 -0
  79. package/dist/components/admin/types.d.ts.map +1 -0
  80. package/dist/components/admin/useAdminAuth.d.ts +50 -0
  81. package/dist/components/admin/useAdminAuth.d.ts.map +1 -0
  82. package/dist/components/admin/useAutosave.d.ts +56 -0
  83. package/dist/components/admin/useAutosave.d.ts.map +1 -0
  84. package/dist/components/admin/useProductVariations.d.ts +56 -0
  85. package/dist/components/admin/useProductVariations.d.ts.map +1 -0
  86. package/dist/components/subscriptionPanelStyles.d.ts +12 -0
  87. package/dist/components/subscriptionPanelStyles.d.ts.map +1 -0
  88. package/dist/context/CedrosContext.d.ts +6 -0
  89. package/dist/context/CedrosContext.d.ts.map +1 -1
  90. package/dist/context/ThemeContext.d.ts +6 -0
  91. package/dist/context/ThemeContext.d.ts.map +1 -1
  92. package/dist/crypto-only.d.ts +1 -1
  93. package/dist/crypto-only.d.ts.map +1 -1
  94. package/dist/crypto-only.js +1 -1
  95. package/dist/crypto-only.mjs +16 -17
  96. package/dist/ecommerce/__tests__/cartCheckoutRequirements.test.d.ts +2 -0
  97. package/dist/ecommerce/__tests__/cartCheckoutRequirements.test.d.ts.map +1 -0
  98. package/dist/ecommerce/__tests__/cartProviderPersistence.test.d.ts +2 -0
  99. package/dist/ecommerce/__tests__/cartProviderPersistence.test.d.ts.map +1 -0
  100. package/dist/ecommerce/__tests__/cartReducer.test.d.ts +2 -0
  101. package/dist/ecommerce/__tests__/cartReducer.test.d.ts.map +1 -0
  102. package/dist/ecommerce/__tests__/cartServerMerge.test.d.ts +2 -0
  103. package/dist/ecommerce/__tests__/cartServerMerge.test.d.ts.map +1 -0
  104. package/dist/ecommerce/__tests__/checkoutPaymentMethods.test.d.ts +2 -0
  105. package/dist/ecommerce/__tests__/checkoutPaymentMethods.test.d.ts.map +1 -0
  106. package/dist/ecommerce/__tests__/checkoutReturn.test.d.ts +2 -0
  107. package/dist/ecommerce/__tests__/checkoutReturn.test.d.ts.map +1 -0
  108. package/dist/ecommerce/__tests__/checkoutSchema.test.d.ts +2 -0
  109. package/dist/ecommerce/__tests__/checkoutSchema.test.d.ts.map +1 -0
  110. package/dist/ecommerce/__tests__/mockAdapter.test.d.ts +2 -0
  111. package/dist/ecommerce/__tests__/mockAdapter.test.d.ts.map +1 -0
  112. package/dist/ecommerce/adapters/CommerceAdapter.d.ts +235 -0
  113. package/dist/ecommerce/adapters/CommerceAdapter.d.ts.map +1 -0
  114. package/dist/ecommerce/adapters/mock/mockAdapter.d.ts +3 -0
  115. package/dist/ecommerce/adapters/mock/mockAdapter.d.ts.map +1 -0
  116. package/dist/ecommerce/adapters/paywall/paywallAdapter.d.ts +6 -0
  117. package/dist/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -0
  118. package/dist/ecommerce/components/cart/CartLineItem.d.ts +12 -0
  119. package/dist/ecommerce/components/cart/CartLineItem.d.ts.map +1 -0
  120. package/dist/ecommerce/components/cart/CartPageContent.d.ts +6 -0
  121. package/dist/ecommerce/components/cart/CartPageContent.d.ts.map +1 -0
  122. package/dist/ecommerce/components/cart/CartPanel.d.ts +5 -0
  123. package/dist/ecommerce/components/cart/CartPanel.d.ts.map +1 -0
  124. package/dist/ecommerce/components/cart/CartSidebar.d.ts +11 -0
  125. package/dist/ecommerce/components/cart/CartSidebar.d.ts.map +1 -0
  126. package/dist/ecommerce/components/cart/CartSummary.d.ts +13 -0
  127. package/dist/ecommerce/components/cart/CartSummary.d.ts.map +1 -0
  128. package/dist/ecommerce/components/cart/PromoCodeInput.d.ts +6 -0
  129. package/dist/ecommerce/components/cart/PromoCodeInput.d.ts.map +1 -0
  130. package/dist/ecommerce/components/catalog/Breadcrumbs.d.ts +9 -0
  131. package/dist/ecommerce/components/catalog/Breadcrumbs.d.ts.map +1 -0
  132. package/dist/ecommerce/components/catalog/CategoryNav.d.ts +8 -0
  133. package/dist/ecommerce/components/catalog/CategoryNav.d.ts.map +1 -0
  134. package/dist/ecommerce/components/catalog/FilterPanel.d.ts +29 -0
  135. package/dist/ecommerce/components/catalog/FilterPanel.d.ts.map +1 -0
  136. package/dist/ecommerce/components/catalog/Price.d.ts +9 -0
  137. package/dist/ecommerce/components/catalog/Price.d.ts.map +1 -0
  138. package/dist/ecommerce/components/catalog/ProductCard.d.ts +14 -0
  139. package/dist/ecommerce/components/catalog/ProductCard.d.ts.map +1 -0
  140. package/dist/ecommerce/components/catalog/ProductGallery.d.ts +6 -0
  141. package/dist/ecommerce/components/catalog/ProductGallery.d.ts.map +1 -0
  142. package/dist/ecommerce/components/catalog/ProductGrid.d.ts +20 -0
  143. package/dist/ecommerce/components/catalog/ProductGrid.d.ts.map +1 -0
  144. package/dist/ecommerce/components/catalog/QuantitySelector.d.ts +8 -0
  145. package/dist/ecommerce/components/catalog/QuantitySelector.d.ts.map +1 -0
  146. package/dist/ecommerce/components/catalog/QuickViewDialog.d.ts +10 -0
  147. package/dist/ecommerce/components/catalog/QuickViewDialog.d.ts.map +1 -0
  148. package/dist/ecommerce/components/catalog/SearchInput.d.ts +7 -0
  149. package/dist/ecommerce/components/catalog/SearchInput.d.ts.map +1 -0
  150. package/dist/ecommerce/components/catalog/VariantSelector.d.ts +19 -0
  151. package/dist/ecommerce/components/catalog/VariantSelector.d.ts.map +1 -0
  152. package/dist/ecommerce/components/chat/ShopChatPanel.d.ts +4 -0
  153. package/dist/ecommerce/components/chat/ShopChatPanel.d.ts.map +1 -0
  154. package/dist/ecommerce/components/checkout/AddressForm.d.ts +9 -0
  155. package/dist/ecommerce/components/checkout/AddressForm.d.ts.map +1 -0
  156. package/dist/ecommerce/components/checkout/CheckoutCancelPage.d.ts +24 -0
  157. package/dist/ecommerce/components/checkout/CheckoutCancelPage.d.ts.map +1 -0
  158. package/dist/ecommerce/components/checkout/CheckoutForm.d.ts +4 -0
  159. package/dist/ecommerce/components/checkout/CheckoutForm.d.ts.map +1 -0
  160. package/dist/ecommerce/components/checkout/CheckoutLayout.d.ts +6 -0
  161. package/dist/ecommerce/components/checkout/CheckoutLayout.d.ts.map +1 -0
  162. package/dist/ecommerce/components/checkout/CheckoutReceipt.d.ts +8 -0
  163. package/dist/ecommerce/components/checkout/CheckoutReceipt.d.ts.map +1 -0
  164. package/dist/ecommerce/components/checkout/CheckoutSuccessPage.d.ts +29 -0
  165. package/dist/ecommerce/components/checkout/CheckoutSuccessPage.d.ts.map +1 -0
  166. package/dist/ecommerce/components/checkout/InventoryVerificationDialog.d.ts +19 -0
  167. package/dist/ecommerce/components/checkout/InventoryVerificationDialog.d.ts.map +1 -0
  168. package/dist/ecommerce/components/checkout/OrderReview.d.ts +4 -0
  169. package/dist/ecommerce/components/checkout/OrderReview.d.ts.map +1 -0
  170. package/dist/ecommerce/components/checkout/PaymentStep.d.ts +15 -0
  171. package/dist/ecommerce/components/checkout/PaymentStep.d.ts.map +1 -0
  172. package/dist/ecommerce/components/checkout/ShippingMethodSelector.d.ts +9 -0
  173. package/dist/ecommerce/components/checkout/ShippingMethodSelector.d.ts.map +1 -0
  174. package/dist/ecommerce/components/faq/FAQItem.d.ts +29 -0
  175. package/dist/ecommerce/components/faq/FAQItem.d.ts.map +1 -0
  176. package/dist/ecommerce/components/faq/FAQItem.test.d.ts +7 -0
  177. package/dist/ecommerce/components/faq/FAQItem.test.d.ts.map +1 -0
  178. package/dist/ecommerce/components/faq/FAQList.d.ts +15 -0
  179. package/dist/ecommerce/components/faq/FAQList.d.ts.map +1 -0
  180. package/dist/ecommerce/components/faq/index.d.ts +3 -0
  181. package/dist/ecommerce/components/faq/index.d.ts.map +1 -0
  182. package/dist/ecommerce/components/general/EmptyState.d.ts +8 -0
  183. package/dist/ecommerce/components/general/EmptyState.d.ts.map +1 -0
  184. package/dist/ecommerce/components/general/ErrorBoundary.d.ts +16 -0
  185. package/dist/ecommerce/components/general/ErrorBoundary.d.ts.map +1 -0
  186. package/dist/ecommerce/components/general/ErrorState.d.ts +7 -0
  187. package/dist/ecommerce/components/general/ErrorState.d.ts.map +1 -0
  188. package/dist/ecommerce/components/general/toast.d.ts +19 -0
  189. package/dist/ecommerce/components/general/toast.d.ts.map +1 -0
  190. package/dist/ecommerce/components/orders/OrderCard.d.ts +7 -0
  191. package/dist/ecommerce/components/orders/OrderCard.d.ts.map +1 -0
  192. package/dist/ecommerce/components/orders/OrderDetails.d.ts +7 -0
  193. package/dist/ecommerce/components/orders/OrderDetails.d.ts.map +1 -0
  194. package/dist/ecommerce/components/orders/OrderList.d.ts +7 -0
  195. package/dist/ecommerce/components/orders/OrderList.d.ts.map +1 -0
  196. package/dist/ecommerce/components/ui/accordion.d.ts +7 -0
  197. package/dist/ecommerce/components/ui/accordion.d.ts.map +1 -0
  198. package/dist/ecommerce/components/ui/badge.d.ts +10 -0
  199. package/dist/ecommerce/components/ui/badge.d.ts.map +1 -0
  200. package/dist/ecommerce/components/ui/button.d.ts +12 -0
  201. package/dist/ecommerce/components/ui/button.d.ts.map +1 -0
  202. package/dist/ecommerce/components/ui/card.d.ts +8 -0
  203. package/dist/ecommerce/components/ui/card.d.ts.map +1 -0
  204. package/dist/ecommerce/components/ui/dialog.d.ts +13 -0
  205. package/dist/ecommerce/components/ui/dialog.d.ts.map +1 -0
  206. package/dist/ecommerce/components/ui/input.d.ts +5 -0
  207. package/dist/ecommerce/components/ui/input.d.ts.map +1 -0
  208. package/dist/ecommerce/components/ui/label.d.ts +3 -0
  209. package/dist/ecommerce/components/ui/label.d.ts.map +1 -0
  210. package/dist/ecommerce/components/ui/select.d.ts +9 -0
  211. package/dist/ecommerce/components/ui/select.d.ts.map +1 -0
  212. package/dist/ecommerce/components/ui/separator.d.ts +4 -0
  213. package/dist/ecommerce/components/ui/separator.d.ts.map +1 -0
  214. package/dist/ecommerce/components/ui/sheet.d.ts +21 -0
  215. package/dist/ecommerce/components/ui/sheet.d.ts.map +1 -0
  216. package/dist/ecommerce/components/ui/skeleton.d.ts +3 -0
  217. package/dist/ecommerce/components/ui/skeleton.d.ts.map +1 -0
  218. package/dist/ecommerce/components/ui/tabs.d.ts +7 -0
  219. package/dist/ecommerce/components/ui/tabs.d.ts.map +1 -0
  220. package/dist/ecommerce/components/ui/textarea.d.ts +5 -0
  221. package/dist/ecommerce/components/ui/textarea.d.ts.map +1 -0
  222. package/dist/ecommerce/config/context.d.ts +13 -0
  223. package/dist/ecommerce/config/context.d.ts.map +1 -0
  224. package/dist/ecommerce/config/types.d.ts +48 -0
  225. package/dist/ecommerce/config/types.d.ts.map +1 -0
  226. package/dist/ecommerce/hooks/checkoutReturn.d.ts +3 -0
  227. package/dist/ecommerce/hooks/checkoutReturn.d.ts.map +1 -0
  228. package/dist/ecommerce/hooks/useAIRelatedProducts.d.ts +33 -0
  229. package/dist/ecommerce/hooks/useAIRelatedProducts.d.ts.map +1 -0
  230. package/dist/ecommerce/hooks/useCartInventory.d.ts +42 -0
  231. package/dist/ecommerce/hooks/useCartInventory.d.ts.map +1 -0
  232. package/dist/ecommerce/hooks/useCatalogUrlState.d.ts +15 -0
  233. package/dist/ecommerce/hooks/useCatalogUrlState.d.ts.map +1 -0
  234. package/dist/ecommerce/hooks/useCategories.d.ts +7 -0
  235. package/dist/ecommerce/hooks/useCategories.d.ts.map +1 -0
  236. package/dist/ecommerce/hooks/useCheckoutResultFromUrl.d.ts +4 -0
  237. package/dist/ecommerce/hooks/useCheckoutResultFromUrl.d.ts.map +1 -0
  238. package/dist/ecommerce/hooks/useHoldExpiry.d.ts +34 -0
  239. package/dist/ecommerce/hooks/useHoldExpiry.d.ts.map +1 -0
  240. package/dist/ecommerce/hooks/useInventoryVerification.d.ts +41 -0
  241. package/dist/ecommerce/hooks/useInventoryVerification.d.ts.map +1 -0
  242. package/dist/ecommerce/hooks/useOrders.d.ts +7 -0
  243. package/dist/ecommerce/hooks/useOrders.d.ts.map +1 -0
  244. package/dist/ecommerce/hooks/usePaymentMethodsConfig.d.ts +6 -0
  245. package/dist/ecommerce/hooks/usePaymentMethodsConfig.d.ts.map +1 -0
  246. package/dist/ecommerce/hooks/useProduct.d.ts +7 -0
  247. package/dist/ecommerce/hooks/useProduct.d.ts.map +1 -0
  248. package/dist/ecommerce/hooks/useProducts.d.ts +8 -0
  249. package/dist/ecommerce/hooks/useProducts.d.ts.map +1 -0
  250. package/dist/ecommerce/hooks/useShippingMethods.d.ts +10 -0
  251. package/dist/ecommerce/hooks/useShippingMethods.d.ts.map +1 -0
  252. package/dist/ecommerce/hooks/useStorefrontSettings.d.ts +32 -0
  253. package/dist/ecommerce/hooks/useStorefrontSettings.d.ts.map +1 -0
  254. package/dist/ecommerce/hooks/useSubscriptionData.d.ts +8 -0
  255. package/dist/ecommerce/hooks/useSubscriptionData.d.ts.map +1 -0
  256. package/dist/ecommerce/index.d.ts +98 -0
  257. package/dist/ecommerce/index.d.ts.map +1 -0
  258. package/dist/ecommerce/integrations/cedros-pay/useCedrosPayCheckoutAdapter.d.ts +10 -0
  259. package/dist/ecommerce/integrations/cedros-pay/useCedrosPayCheckoutAdapter.d.ts.map +1 -0
  260. package/dist/ecommerce/state/cart/CartProvider.d.ts +27 -0
  261. package/dist/ecommerce/state/cart/CartProvider.d.ts.map +1 -0
  262. package/dist/ecommerce/state/cart/cartReducer.d.ts +35 -0
  263. package/dist/ecommerce/state/cart/cartReducer.d.ts.map +1 -0
  264. package/dist/ecommerce/state/checkout/checkoutSchema.d.ts +21 -0
  265. package/dist/ecommerce/state/checkout/checkoutSchema.d.ts.map +1 -0
  266. package/dist/ecommerce/state/checkout/useCheckout.d.ts +34 -0
  267. package/dist/ecommerce/state/checkout/useCheckout.d.ts.map +1 -0
  268. package/dist/ecommerce/templates/CartTemplate.d.ts +5 -0
  269. package/dist/ecommerce/templates/CartTemplate.d.ts.map +1 -0
  270. package/dist/ecommerce/templates/CategoryTemplate.d.ts +11 -0
  271. package/dist/ecommerce/templates/CategoryTemplate.d.ts.map +1 -0
  272. package/dist/ecommerce/templates/CheckoutTemplate.d.ts +9 -0
  273. package/dist/ecommerce/templates/CheckoutTemplate.d.ts.map +1 -0
  274. package/dist/ecommerce/templates/ProductTemplate.d.ts +11 -0
  275. package/dist/ecommerce/templates/ProductTemplate.d.ts.map +1 -0
  276. package/dist/ecommerce/templates/PurchaseHistoryTemplate.d.ts +6 -0
  277. package/dist/ecommerce/templates/PurchaseHistoryTemplate.d.ts.map +1 -0
  278. package/dist/ecommerce/templates/ReceiptTemplate.d.ts +19 -0
  279. package/dist/ecommerce/templates/ReceiptTemplate.d.ts.map +1 -0
  280. package/dist/ecommerce/templates/ShopTemplate.d.ts +15 -0
  281. package/dist/ecommerce/templates/ShopTemplate.d.ts.map +1 -0
  282. package/dist/ecommerce/templates/SubscriptionTemplate.d.ts +15 -0
  283. package/dist/ecommerce/templates/SubscriptionTemplate.d.ts.map +1 -0
  284. package/dist/ecommerce/testing/adapterContract.d.ts +11 -0
  285. package/dist/ecommerce/testing/adapterContract.d.ts.map +1 -0
  286. package/dist/ecommerce/types.d.ts +164 -0
  287. package/dist/ecommerce/types.d.ts.map +1 -0
  288. package/dist/ecommerce/utils/cartCheckoutRequirements.d.ts +18 -0
  289. package/dist/ecommerce/utils/cartCheckoutRequirements.d.ts.map +1 -0
  290. package/dist/ecommerce/utils/cartItemMetadata.d.ts +3 -0
  291. package/dist/ecommerce/utils/cartItemMetadata.d.ts.map +1 -0
  292. package/dist/ecommerce/utils/cn.d.ts +3 -0
  293. package/dist/ecommerce/utils/cn.d.ts.map +1 -0
  294. package/dist/ecommerce/utils/money.d.ts +6 -0
  295. package/dist/ecommerce/utils/money.d.ts.map +1 -0
  296. package/dist/ecommerce/utils/storage.d.ts +5 -0
  297. package/dist/ecommerce/utils/storage.d.ts.map +1 -0
  298. package/dist/en-BXheDBal.mjs +19 -0
  299. package/dist/en-Yikrt96u.js +1 -0
  300. package/dist/hooks/useCreditsPayment.d.ts +64 -0
  301. package/dist/hooks/useCreditsPayment.d.ts.map +1 -0
  302. package/dist/hooks/useCreditsSubscription.d.ts +42 -0
  303. package/dist/hooks/useCreditsSubscription.d.ts.map +1 -0
  304. package/dist/hooks/useCryptoSubscription.d.ts +42 -0
  305. package/dist/hooks/useCryptoSubscription.d.ts.map +1 -0
  306. package/dist/hooks/usePaymentMode.d.ts.map +1 -1
  307. package/dist/hooks/useStripeCheckout.d.ts +1 -0
  308. package/dist/hooks/useStripeCheckout.d.ts.map +1 -1
  309. package/dist/hooks/useSubscription.d.ts +42 -0
  310. package/dist/hooks/useSubscription.d.ts.map +1 -0
  311. package/dist/hooks/useSubscriptionManagement.d.ts +92 -0
  312. package/dist/hooks/useSubscriptionManagement.d.ts.map +1 -0
  313. package/dist/hooks/useX402Payment.d.ts +1 -0
  314. package/dist/hooks/useX402Payment.d.ts.map +1 -1
  315. package/dist/i18n/index.d.ts +7 -0
  316. package/dist/i18n/index.d.ts.map +1 -1
  317. package/dist/index-D2d_ukkR.mjs +26838 -0
  318. package/dist/index-DGkSHjb1.js +136 -0
  319. package/dist/index.d.ts +20 -2
  320. package/dist/index.d.ts.map +1 -1
  321. package/dist/index.js +1 -1
  322. package/dist/index.mjs +79 -625
  323. package/dist/magic-string.es-B81Zo59j.js +10 -0
  324. package/dist/magic-string.es-uPKorP4O.mjs +663 -0
  325. package/dist/managers/CreditsManager.d.ts +151 -0
  326. package/dist/managers/CreditsManager.d.ts.map +1 -0
  327. package/dist/managers/ManagerCache.d.ts +6 -0
  328. package/dist/managers/ManagerCache.d.ts.map +1 -1
  329. package/dist/managers/RouteDiscoveryManager.d.ts.map +1 -1
  330. package/dist/managers/StripeManager.d.ts.map +1 -1
  331. package/dist/managers/SubscriptionChangeManager.d.ts +42 -0
  332. package/dist/managers/SubscriptionChangeManager.d.ts.map +1 -0
  333. package/dist/managers/SubscriptionManager.d.ts +113 -0
  334. package/dist/managers/SubscriptionManager.d.ts.map +1 -0
  335. package/dist/managers/X402Manager.d.ts.map +1 -1
  336. package/dist/pay-react.css +1 -1
  337. package/dist/sections-6IcZ6JeN.js +1 -0
  338. package/dist/sections-a0Dz-MMz.mjs +10 -0
  339. package/dist/stripe-only.d.ts +1 -1
  340. package/dist/stripe-only.d.ts.map +1 -1
  341. package/dist/stripe-only.js +1 -1
  342. package/dist/stripe-only.mjs +12 -13
  343. package/dist/styles-C4-_hbgr.js +1 -0
  344. package/dist/styles-QcAsIVWl.mjs +1909 -0
  345. package/dist/telemetry.js +1 -1
  346. package/dist/telemetry.mjs +1 -1
  347. package/dist/testing/index.js +147 -1
  348. package/dist/testing/index.mjs +10555 -103
  349. package/dist/types/componentOptions.d.ts +14 -4
  350. package/dist/types/componentOptions.d.ts.map +1 -1
  351. package/dist/types/errors.d.ts +26 -4
  352. package/dist/types/errors.d.ts.map +1 -1
  353. package/dist/types/index.d.ts +116 -0
  354. package/dist/types/index.d.ts.map +1 -1
  355. package/dist/types/subscription.d.ts +300 -0
  356. package/dist/types/subscription.d.ts.map +1 -0
  357. package/dist/utils/cartHelpers.d.ts +3 -0
  358. package/dist/utils/cartHelpers.d.ts.map +1 -1
  359. package/dist/utils/cspHelper.d.ts +7 -1
  360. package/dist/utils/cspHelper.d.ts.map +1 -1
  361. package/dist/utils/csvHelpers.d.ts +62 -0
  362. package/dist/utils/csvHelpers.d.ts.map +1 -0
  363. package/dist/utils/csvHelpers.test.d.ts +2 -0
  364. package/dist/utils/csvHelpers.test.d.ts.map +1 -0
  365. package/dist/utils/dateHelpers.d.ts +24 -0
  366. package/dist/utils/dateHelpers.d.ts.map +1 -0
  367. package/dist/utils/eventEmitter.d.ts +1 -1
  368. package/dist/utils/eventEmitter.d.ts.map +1 -1
  369. package/dist/utils/fetchWithTimeout.d.ts +3 -3
  370. package/dist/utils/index.d.ts +2 -1
  371. package/dist/utils/index.d.ts.map +1 -1
  372. package/dist/utils/tokenMintValidator.d.ts +10 -6
  373. package/dist/utils/tokenMintValidator.d.ts.map +1 -1
  374. package/dist/utils/uuid.d.ts.map +1 -1
  375. package/dist/uuid-C5B8o31X.js +1 -0
  376. package/dist/uuid-_z3jSatJ.mjs +17 -0
  377. package/package.json +25 -9
  378. package/dist/CedrosContext-B3iCqN6e.js +0 -11
  379. package/dist/CedrosContext-vX9uqZKp.mjs +0 -1796
  380. package/dist/en-CSsJl3nf.mjs +0 -19
  381. package/dist/en-D-uY3ltT.js +0 -1
  382. package/dist/styles-61pRysGe.js +0 -1
  383. package/dist/styles-DI2LPVdQ.mjs +0 -1625
  384. package/dist/utils/uuid-shim.d.ts +0 -9
  385. package/dist/utils/uuid-shim.d.ts.map +0 -1
  386. package/dist/uuid-C0iMjdcc.js +0 -1
  387. package/dist/uuid-UlzrVY8Y.mjs +0 -17
  388. package/dist/walletDetection-JZR3UCOa.mjs +0 -27
  389. package/dist/walletDetection-bNmV5ItZ.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/general/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC;CAC9C,CAAC;AAIF,wBAAgB,QAAQ,sBAIvB;AAED,wBAAgB,gBAAgB,6BAE/B;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CA2CxE"}
@@ -0,0 +1,7 @@
1
+ import { Order } from '../../types';
2
+ export declare function OrderCard({ order, onView, className, }: {
3
+ order: Order;
4
+ onView?: (order: Order) => void;
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=OrderCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderCard.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/orders/OrderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA8BzC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,MAAM,EACN,SAAS,GACV,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA0EA"}
@@ -0,0 +1,7 @@
1
+ import { Order } from '../../types';
2
+ export declare function OrderDetails({ order, onBack, className, }: {
3
+ order: Order;
4
+ onBack?: () => void;
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=OrderDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderDetails.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/orders/OrderDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAyBzC,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,SAAS,GACV,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CA2FA"}
@@ -0,0 +1,7 @@
1
+ import { Order } from '../../types';
2
+ export declare function OrderList({ orders, onView, className, }: {
3
+ orders: Order[];
4
+ onView?: (order: Order) => void;
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=OrderList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderList.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/orders/OrderList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIzC,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAQA"}
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+ export declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ export declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ export declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ //# sourceMappingURL=accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAGhE,eAAO,MAAM,SAAS,8JAA0B,CAAC;AACjD,eAAO,MAAM,aAAa,iKASxB,CAAC;AAIH,eAAO,MAAM,gBAAgB,0KAmB3B,CAAC;AAIH,eAAO,MAAM,gBAAgB,oKAc3B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "secondary" | "outline" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ export declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,aAAa;;8EAiBlB,CAAC;AAEF,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAEjE"}
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "link" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
5
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export {};
12
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,cAAc;;;8EA6BnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,MAAM,uFAWlB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ export declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
5
+ export declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
+ export declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,IAAI,6GAWhB,CAAC;AAIF,eAAO,MAAM,UAAU,6GAItB,CAAC;AAIF,eAAO,MAAM,SAAS,uHAQrB,CAAC;AAIF,eAAO,MAAM,eAAe,yHAS1B,CAAC;AAIH,eAAO,MAAM,WAAW,6GAIvB,CAAC;AAIF,eAAO,MAAM,UAAU,6GAItB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ export declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ export declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ export declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const DialogHeader: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const DialogFooter: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
12
+ export declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
13
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,eAAO,MAAM,MAAM,uCAAuB,CAAC;AAC3C,eAAO,MAAM,aAAa,8GAA0B,CAAC;AACrD,eAAO,MAAM,YAAY,6CAAyB,CAAC;AACnD,eAAO,MAAM,WAAW,4GAAwB,CAAC;AAEjD,eAAO,MAAM,aAAa,8JAYxB,CAAC;AAIH,eAAO,MAAM,aAAa,8JAkBxB,CAAC;AAIH,eAAO,MAAM,YAAY,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,4CAEzF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,4CAKzF,CAAC;AAEF,eAAO,MAAM,WAAW,oKAStB,CAAC;AAIH,eAAO,MAAM,iBAAiB,8KAS5B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ }
4
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAElF,eAAO,MAAM,KAAK,qFAShB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
3
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,KAAK,sHAQjB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import * as SelectPrimitive from '@radix-ui/react-select';
3
+ export declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
+ export declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ export declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ export declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,eAAO,MAAM,MAAM,uCAAuB,CAAC;AAC3C,eAAO,MAAM,WAAW,yGAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,0GAAwB,CAAC;AAEjD,eAAO,MAAM,aAAa,oKAexB,CAAC;AAIH,eAAO,MAAM,aAAa,8JAmBxB,CAAC;AAIH,eAAO,MAAM,UAAU,2JAcrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
+ export declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAGhE,eAAO,MAAM,SAAS,6JAepB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+ export declare const Sheet: React.FC<DialogPrimitive.DialogProps>;
5
+ export declare const SheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ export declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
8
+ export declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const sheetContentVariants: (props?: ({
10
+ side?: "bottom" | "left" | "right" | "top" | "popup" | null | undefined;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
+ export interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetContentVariants> {
13
+ }
14
+ export declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & {
15
+ overlayClassName?: string;
16
+ } & React.RefAttributes<HTMLDivElement>>;
17
+ export declare const SheetHeader: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
19
+ export declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
20
+ export {};
21
+ //# sourceMappingURL=sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,KAAK,uCAAuB,CAAC;AAC1C,eAAO,MAAM,YAAY,8GAA0B,CAAC;AACpD,eAAO,MAAM,UAAU,4GAAwB,CAAC;AAChD,eAAO,MAAM,WAAW,6CAAyB,CAAC;AAElD,eAAO,MAAM,YAAY,8JAYvB,CAAC;AAIH,QAAA,MAAM,oBAAoB;;8EAoBzB,CAAC;AAEF,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EACpE,YAAY,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAEhD,eAAO,MAAM,YAAY;uBAEkB,MAAM;wCAY/C,CAAC;AAIH,eAAO,MAAM,WAAW,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,4CAExF,CAAC;AAEF,eAAO,MAAM,UAAU,oKASrB,CAAC;AAIH,eAAO,MAAM,gBAAgB,8KAS3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAOrF"}
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
3
+ export declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ export declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAGtD,eAAO,MAAM,IAAI,gGAAqB,CAAC;AAEvC,eAAO,MAAM,QAAQ,uJAYnB,CAAC;AAIH,eAAO,MAAM,WAAW,gKAYtB,CAAC;AAIH,eAAO,MAAM,WAAW,0JAYtB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ }
4
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
+ //# sourceMappingURL=textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;CAAG;AAE3F,eAAO,MAAM,QAAQ,2FAWpB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { CedrosShopConfig } from './types';
3
+ export type CedrosShopContextValue = {
4
+ config: CedrosShopConfig;
5
+ };
6
+ export declare function useCedrosShop(): CedrosShopContextValue;
7
+ /** Optional version that returns null when used outside CedrosShopProvider */
8
+ export declare function useOptionalCedrosShop(): CedrosShopContextValue | null;
9
+ export declare function CedrosShopProvider({ config, children, }: {
10
+ config: CedrosShopConfig;
11
+ children: React.ReactNode;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/config/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAIF,wBAAgB,aAAa,2BAM5B;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,IAAI,sBAAsB,GAAG,IAAI,CAErE;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,2CAIA"}
@@ -0,0 +1,48 @@
1
+ import { CommerceAdapter } from '../adapters/CommerceAdapter';
2
+ import { CheckoutMode } from '../types';
3
+ export type CedrosShopConfig = {
4
+ brand?: {
5
+ name: string;
6
+ logoUrl?: string;
7
+ };
8
+ currency: string;
9
+ customer?: {
10
+ id?: string;
11
+ email?: string;
12
+ isSignedIn?: boolean;
13
+ };
14
+ checkout: {
15
+ mode: CheckoutMode;
16
+ requireEmail?: boolean;
17
+ guestCheckout?: boolean;
18
+ requireAccount?: boolean;
19
+ allowPromoCodes?: boolean;
20
+ allowShipping?: boolean;
21
+ allowTaxDisplay?: boolean;
22
+ allowTipping?: boolean;
23
+ paymentMethods?: Array<{
24
+ id: string;
25
+ label: string;
26
+ description?: string;
27
+ ctaLabel?: string;
28
+ }>;
29
+ successUrl?: string;
30
+ cancelUrl?: string;
31
+ };
32
+ ui?: {
33
+ layout?: 'sidebar' | 'standard';
34
+ productGrid?: {
35
+ columns?: {
36
+ base: number;
37
+ md: number;
38
+ lg: number;
39
+ };
40
+ };
41
+ };
42
+ cart?: {
43
+ storageKey?: string;
44
+ syncDebounceMs?: number;
45
+ };
46
+ adapter: CommerceAdapter;
47
+ };
48
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE;QACT,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY,CAAC;QACnB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,cAAc,CAAC,EAAE,KAAK,CAAC;YACrB,EAAE,EAAE,MAAM,CAAC;YACX,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB,CAAC,CAAC;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,EAAE,CAAC,EAAE;QACH,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;QAChC,WAAW,CAAC,EAAE;YAAE,OAAO,CAAC,EAAE;gBAAE,IAAI,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAC;KACtE,CAAC;IACF,IAAI,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CheckoutReturnResult } from '../adapters/CommerceAdapter';
2
+ export declare function parseCheckoutReturn(query: Record<string, string | undefined>): CheckoutReturnResult;
3
+ //# sourceMappingURL=checkoutReturn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkoutReturn.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/checkoutReturn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAUxE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,oBAAoB,CAmBnG"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Hook to fetch AI-powered related product recommendations.
3
+ *
4
+ * Uses the adapter from CedrosShopProvider context to call the AI endpoint.
5
+ * Results are cached by productId to avoid repeated API calls.
6
+ */
7
+ export interface UseAIRelatedProductsOptions {
8
+ /** Product ID to get recommendations for */
9
+ productId?: string;
10
+ /** Product details (alternative to productId) */
11
+ product?: {
12
+ name: string;
13
+ description?: string;
14
+ tags?: string[];
15
+ categoryIds?: string[];
16
+ };
17
+ /** Whether to enable the fetch (default: true) */
18
+ enabled?: boolean;
19
+ }
20
+ export interface UseAIRelatedProductsResult {
21
+ /** IDs of recommended related products */
22
+ relatedProductIds: string[] | null;
23
+ /** AI's reasoning for the recommendations */
24
+ reasoning: string | null;
25
+ /** Whether the request is in progress */
26
+ isLoading: boolean;
27
+ /** Error message if request failed */
28
+ error: string | null;
29
+ /** Manually refetch recommendations */
30
+ refetch: () => Promise<void>;
31
+ }
32
+ export declare function useAIRelatedProducts(options?: UseAIRelatedProductsOptions): UseAIRelatedProductsResult;
33
+ //# sourceMappingURL=useAIRelatedProducts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAIRelatedProducts.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useAIRelatedProducts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,2BAA2B;IAC1C,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;IACF,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,0CAA0C;IAC1C,iBAAiB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACnC,6CAA6C;IAC7C,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,yCAAyC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,uCAAuC;IACvC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAWD,wBAAgB,oBAAoB,CAClC,OAAO,GAAE,2BAAgC,GACxC,0BAA0B,CAsG5B"}
@@ -0,0 +1,42 @@
1
+ import { CartItem } from '../types';
2
+ export type CartItemInventory = {
3
+ productId: string;
4
+ variantId?: string;
5
+ /** Current available quantity (undefined = unlimited) */
6
+ availableQty?: number;
7
+ /** Inventory status from product/variant */
8
+ status?: 'in_stock' | 'low' | 'out_of_stock' | 'backorder';
9
+ /** True if item is now out of stock */
10
+ isOutOfStock: boolean;
11
+ /** True if requested qty exceeds available */
12
+ exceedsAvailable: boolean;
13
+ /** True if stock is low (1-5 remaining) */
14
+ isLowStock: boolean;
15
+ /** Human-readable message for display */
16
+ message?: string;
17
+ };
18
+ export type CartInventoryMap = Map<string, CartItemInventory>;
19
+ export interface UseCartInventoryOptions {
20
+ /** Cart items to check inventory for */
21
+ items: CartItem[];
22
+ /** Refresh interval in ms (0 to disable auto-refresh, default: 30000) */
23
+ refreshInterval?: number;
24
+ /** Skip fetching (e.g., when cart is empty) */
25
+ skip?: boolean;
26
+ }
27
+ export interface UseCartInventoryResult {
28
+ /** Map of product::variant key to inventory info */
29
+ inventory: CartInventoryMap;
30
+ /** True while fetching inventory */
31
+ isLoading: boolean;
32
+ /** Error message if fetch failed */
33
+ error: string | null;
34
+ /** Manually refresh inventory */
35
+ refresh: () => void;
36
+ /** Get inventory for a specific cart item */
37
+ getItemInventory: (productId: string, variantId?: string) => CartItemInventory | undefined;
38
+ /** True if any item has inventory issues */
39
+ hasIssues: boolean;
40
+ }
41
+ export declare function useCartInventory({ items, refreshInterval, skip, }: UseCartInventoryOptions): UseCartInventoryResult;
42
+ //# sourceMappingURL=useCartInventory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCartInventory.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useCartInventory.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAW,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,UAAU,GAAG,KAAK,GAAG,cAAc,GAAG,WAAW,CAAC;IAC3D,uCAAuC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,8CAA8C;IAC9C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,2CAA2C;IAC3C,UAAU,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAmF9D,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,oDAAoD;IACpD,SAAS,EAAE,gBAAgB,CAAC;IAC5B,oCAAoC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iCAAiC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6CAA6C;IAC7C,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,iBAAiB,GAAG,SAAS,CAAC;IAC3F,4CAA4C;IAC5C,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,eAAuB,EACvB,IAAY,GACb,EAAE,uBAAuB,GAAG,sBAAsB,CAuGlD"}
@@ -0,0 +1,15 @@
1
+ import { CatalogFilters } from '../components/catalog/FilterPanel';
2
+ export type CatalogUrlState = {
3
+ search: string;
4
+ sort: string;
5
+ page: number;
6
+ category?: string;
7
+ filters: CatalogFilters;
8
+ };
9
+ export declare function readCatalogUrlState({ includeCategory }: {
10
+ includeCategory: boolean;
11
+ }): CatalogUrlState | null;
12
+ export declare function useCatalogUrlSync(state: CatalogUrlState, { includeCategory }: {
13
+ includeCategory: boolean;
14
+ }): void;
15
+ //# sourceMappingURL=useCatalogUrlState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCatalogUrlState.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useCatalogUrlState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;AA4CF,wBAAgB,mBAAmB,CAAC,EAAE,eAAe,EAAE,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,GAAG,eAAe,GAAG,IAAI,CAkB7G;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,eAAe,EAAE,EAAE;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,QA8C1G"}
@@ -0,0 +1,7 @@
1
+ import { Category } from '../types';
2
+ export declare function useCategories(): {
3
+ categories: Category[];
4
+ isLoading: boolean;
5
+ error: string | null;
6
+ };
7
+ //# sourceMappingURL=useCategories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCategories.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useCategories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,wBAAgB,aAAa;;;;EAgC5B"}
@@ -0,0 +1,4 @@
1
+ import { CheckoutReturnResult } from '../adapters/CommerceAdapter';
2
+ export type CheckoutResult = CheckoutReturnResult;
3
+ export declare function useCheckoutResultFromUrl(): CheckoutResult;
4
+ //# sourceMappingURL=useCheckoutResultFromUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCheckoutResultFromUrl.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useCheckoutResultFromUrl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAUlD,wBAAgB,wBAAwB,IAAI,cAAc,CA+BzD"}
@@ -0,0 +1,34 @@
1
+ import { CartItem } from '../types';
2
+ export type HoldExpiryEvent = {
3
+ productId: string;
4
+ variantId?: string;
5
+ title: string;
6
+ expiredAt: Date;
7
+ };
8
+ export interface UseHoldExpiryOptions {
9
+ /** Cart items to monitor */
10
+ items: CartItem[];
11
+ /** Callback when a hold expires */
12
+ onExpiry?: (event: HoldExpiryEvent) => void;
13
+ /** Whether monitoring is enabled */
14
+ enabled?: boolean;
15
+ }
16
+ export interface UseHoldExpiryResult {
17
+ /** Items with holds that are about to expire (within 2 minutes) */
18
+ expiringItems: Array<{
19
+ productId: string;
20
+ variantId?: string;
21
+ expiresAt: Date;
22
+ remainingMs: number;
23
+ }>;
24
+ /** Items with expired holds */
25
+ expiredItems: Array<{
26
+ productId: string;
27
+ variantId?: string;
28
+ }>;
29
+ }
30
+ /**
31
+ * Monitors cart item holds and reports expiry events
32
+ */
33
+ export declare function useHoldExpiry({ items, onExpiry, enabled, }: UseHoldExpiryOptions): UseHoldExpiryResult;
34
+ //# sourceMappingURL=useHoldExpiry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHoldExpiry.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useHoldExpiry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,mEAAmE;IACnE,aAAa,EAAE,KAAK,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,IAAI,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtG,+BAA+B;IAC/B,YAAY,EAAE,KAAK,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,OAAc,GACf,EAAE,oBAAoB,GAAG,mBAAmB,CAmF5C"}
@@ -0,0 +1,41 @@
1
+ import { CartItem } from '../types';
2
+ export type InventoryIssue = {
3
+ productId: string;
4
+ variantId?: string;
5
+ /** Product/variant title for display */
6
+ title: string;
7
+ /** Quantity requested in cart */
8
+ requestedQty: number;
9
+ /** Currently available quantity (0 if out of stock) */
10
+ availableQty: number;
11
+ /** Type of issue */
12
+ type: 'out_of_stock' | 'insufficient_stock' | 'product_unavailable';
13
+ /** Human-readable message */
14
+ message: string;
15
+ };
16
+ export type VerificationResult = {
17
+ /** Whether all items passed verification */
18
+ ok: boolean;
19
+ /** List of items with inventory issues */
20
+ issues: InventoryIssue[];
21
+ /** Timestamp of verification */
22
+ verifiedAt: Date;
23
+ };
24
+ export interface UseInventoryVerificationOptions {
25
+ /** Cart items to verify */
26
+ items: CartItem[];
27
+ }
28
+ export interface UseInventoryVerificationResult {
29
+ /** Most recent verification result (null if never verified) */
30
+ result: VerificationResult | null;
31
+ /** True while verification is in progress */
32
+ isVerifying: boolean;
33
+ /** Error if verification failed entirely */
34
+ error: string | null;
35
+ /** Trigger verification and return result */
36
+ verify: () => Promise<VerificationResult>;
37
+ /** Clear the current result */
38
+ reset: () => void;
39
+ }
40
+ export declare function useInventoryVerification({ items, }: UseInventoryVerificationOptions): UseInventoryVerificationResult;
41
+ //# sourceMappingURL=useInventoryVerification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInventoryVerification.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useInventoryVerification.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAW,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,IAAI,EAAE,cAAc,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;IACpE,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,4CAA4C;IAC5C,EAAE,EAAE,OAAO,CAAC;IACZ,0CAA0C;IAC1C,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,gCAAgC;IAChC,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,+BAA+B;IAC9C,2BAA2B;IAC3B,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,8BAA8B;IAC7C,+DAA+D;IAC/D,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAClC,6CAA6C;IAC7C,WAAW,EAAE,OAAO,CAAC;IACrB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC1C,+BAA+B;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAkFD,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,GACN,EAAE,+BAA+B,GAAG,8BAA8B,CAmGlE"}
@@ -0,0 +1,7 @@
1
+ import { Order } from '../types';
2
+ export declare function useOrders(): {
3
+ orders: Order[];
4
+ isLoading: boolean;
5
+ error: string | null;
6
+ };
7
+ //# sourceMappingURL=useOrders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOrders.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useOrders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,wBAAgB,SAAS;;;;EAgCxB"}
@@ -0,0 +1,6 @@
1
+ import { PaymentMethodsConfig } from '../adapters/CommerceAdapter';
2
+ export declare function usePaymentMethodsConfig(): {
3
+ config: PaymentMethodsConfig;
4
+ isLoading: boolean;
5
+ };
6
+ //# sourceMappingURL=usePaymentMethodsConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaymentMethodsConfig.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/usePaymentMethodsConfig.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAUxE,wBAAgB,uBAAuB,IAAI;IACzC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;CACpB,CAsCA"}
@@ -0,0 +1,7 @@
1
+ import { Product } from '../types';
2
+ export declare function useProduct(slug: string): {
3
+ product: Product | null;
4
+ isLoading: boolean;
5
+ error: string | null;
6
+ };
7
+ //# sourceMappingURL=useProduct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProduct.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useProduct.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxC,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM;;;;EAgCtC"}
@@ -0,0 +1,8 @@
1
+ import { ListResult, Product } from '../types';
2
+ import { ProductListParams } from '../adapters/CommerceAdapter';
3
+ export declare function useProducts(params: ProductListParams): {
4
+ data: ListResult<Product> | null;
5
+ isLoading: boolean;
6
+ error: string | null;
7
+ };
8
+ //# sourceMappingURL=useProducts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProducts.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useProducts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB;;;;EAqCpD"}
@@ -0,0 +1,10 @@
1
+ import { CustomerInfo, ShippingMethod } from '../types';
2
+ export declare function useShippingMethods({ enabled, customer, }: {
3
+ enabled: boolean;
4
+ customer: CustomerInfo;
5
+ }): {
6
+ methods: ShippingMethod[];
7
+ isLoading: boolean;
8
+ error: string | null;
9
+ };
10
+ //# sourceMappingURL=useShippingMethods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useShippingMethods.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/hooks/useShippingMethods.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG7D,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,YAAY,CAAC;CACxB;;;;EA0CA"}