@cedros/pay-react 1.0.5 → 1.1.2

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 (372) hide show
  1. package/README.md +190 -38
  2. package/dist/{CedrosContext-CFEXGwQg.mjs → CedrosContext-DUT3cLZg.mjs} +683 -372
  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.map +1 -1
  17. package/dist/components/PaymentModal.d.ts +8 -2
  18. package/dist/components/PaymentModal.d.ts.map +1 -1
  19. package/dist/components/PurchaseButton.d.ts +14 -3
  20. package/dist/components/PurchaseButton.d.ts.map +1 -1
  21. package/dist/components/SubscriptionManagementPanel.d.ts.map +1 -1
  22. package/dist/components/admin/AISettingsSection.d.ts +3 -0
  23. package/dist/components/admin/AISettingsSection.d.ts.map +1 -0
  24. package/dist/components/admin/AdminAuthManager.d.ts +95 -0
  25. package/dist/components/admin/AdminAuthManager.d.ts.map +1 -0
  26. package/dist/components/admin/CedrosPayAdminDashboard.d.ts +40 -0
  27. package/dist/components/admin/CedrosPayAdminDashboard.d.ts.map +1 -0
  28. package/dist/components/admin/ConfigEditor.d.ts +13 -0
  29. package/dist/components/admin/ConfigEditor.d.ts.map +1 -0
  30. package/dist/components/admin/CouponsSection.d.ts +3 -0
  31. package/dist/components/admin/CouponsSection.d.ts.map +1 -0
  32. package/dist/components/admin/Dropdown.d.ts +29 -0
  33. package/dist/components/admin/Dropdown.d.ts.map +1 -0
  34. package/dist/components/admin/FAQSection.d.ts +3 -0
  35. package/dist/components/admin/FAQSection.d.ts.map +1 -0
  36. package/dist/components/admin/MessagingSection.d.ts +10 -0
  37. package/dist/components/admin/MessagingSection.d.ts.map +1 -0
  38. package/dist/components/admin/OverviewSection.d.ts +3 -0
  39. package/dist/components/admin/OverviewSection.d.ts.map +1 -0
  40. package/dist/components/admin/PaymentSettingsSection.d.ts +3 -0
  41. package/dist/components/admin/PaymentSettingsSection.d.ts.map +1 -0
  42. package/dist/components/admin/ProductVariationsEditor.d.ts +14 -0
  43. package/dist/components/admin/ProductVariationsEditor.d.ts.map +1 -0
  44. package/dist/components/admin/ProductsSection.d.ts +3 -0
  45. package/dist/components/admin/ProductsSection.d.ts.map +1 -0
  46. package/dist/components/admin/RefundsSection.d.ts +3 -0
  47. package/dist/components/admin/RefundsSection.d.ts.map +1 -0
  48. package/dist/components/admin/SettingsSection.d.ts +10 -0
  49. package/dist/components/admin/SettingsSection.d.ts.map +1 -0
  50. package/dist/components/admin/SingleCategorySettings.d.ts +21 -0
  51. package/dist/components/admin/SingleCategorySettings.d.ts.map +1 -0
  52. package/dist/components/admin/StatsBar.d.ts +19 -0
  53. package/dist/components/admin/StatsBar.d.ts.map +1 -0
  54. package/dist/components/admin/StorefrontSection.d.ts +3 -0
  55. package/dist/components/admin/StorefrontSection.d.ts.map +1 -0
  56. package/dist/components/admin/SubscriptionsSection.d.ts +3 -0
  57. package/dist/components/admin/SubscriptionsSection.d.ts.map +1 -0
  58. package/dist/components/admin/TransactionsSection.d.ts +3 -0
  59. package/dist/components/admin/TransactionsSection.d.ts.map +1 -0
  60. package/dist/components/admin/VariantInventoryGrid.d.ts +19 -0
  61. package/dist/components/admin/VariantInventoryGrid.d.ts.map +1 -0
  62. package/dist/components/admin/VariationTypeEditor.d.ts +15 -0
  63. package/dist/components/admin/VariationTypeEditor.d.ts.map +1 -0
  64. package/dist/components/admin/configApi.d.ts +104 -0
  65. package/dist/components/admin/configApi.d.ts.map +1 -0
  66. package/dist/components/admin/icons.d.ts +50 -0
  67. package/dist/components/admin/icons.d.ts.map +1 -0
  68. package/dist/components/admin/index.d.ts +16 -0
  69. package/dist/components/admin/index.d.ts.map +1 -0
  70. package/dist/components/admin/sections-more.d.ts +12 -0
  71. package/dist/components/admin/sections-more.d.ts.map +1 -0
  72. package/dist/components/admin/sections.d.ts +12 -0
  73. package/dist/components/admin/sections.d.ts.map +1 -0
  74. package/dist/components/admin/types.d.ts +324 -0
  75. package/dist/components/admin/types.d.ts.map +1 -0
  76. package/dist/components/admin/useAdminAuth.d.ts +50 -0
  77. package/dist/components/admin/useAdminAuth.d.ts.map +1 -0
  78. package/dist/components/admin/useAutosave.d.ts +56 -0
  79. package/dist/components/admin/useAutosave.d.ts.map +1 -0
  80. package/dist/components/admin/useProductVariations.d.ts +56 -0
  81. package/dist/components/admin/useProductVariations.d.ts.map +1 -0
  82. package/dist/components/subscriptionPanelStyles.d.ts +2 -3
  83. package/dist/components/subscriptionPanelStyles.d.ts.map +1 -1
  84. package/dist/context/CedrosContext.d.ts +2 -0
  85. package/dist/context/CedrosContext.d.ts.map +1 -1
  86. package/dist/context/ThemeContext.d.ts +6 -0
  87. package/dist/context/ThemeContext.d.ts.map +1 -1
  88. package/dist/crypto-only.d.ts +1 -1
  89. package/dist/crypto-only.d.ts.map +1 -1
  90. package/dist/crypto-only.js +1 -1
  91. package/dist/crypto-only.mjs +16 -17
  92. package/dist/ecommerce/__tests__/cartCheckoutRequirements.test.d.ts +2 -0
  93. package/dist/ecommerce/__tests__/cartCheckoutRequirements.test.d.ts.map +1 -0
  94. package/dist/ecommerce/__tests__/cartProviderPersistence.test.d.ts +2 -0
  95. package/dist/ecommerce/__tests__/cartProviderPersistence.test.d.ts.map +1 -0
  96. package/dist/ecommerce/__tests__/cartReducer.test.d.ts +2 -0
  97. package/dist/ecommerce/__tests__/cartReducer.test.d.ts.map +1 -0
  98. package/dist/ecommerce/__tests__/cartServerMerge.test.d.ts +2 -0
  99. package/dist/ecommerce/__tests__/cartServerMerge.test.d.ts.map +1 -0
  100. package/dist/ecommerce/__tests__/checkoutPaymentMethods.test.d.ts +2 -0
  101. package/dist/ecommerce/__tests__/checkoutPaymentMethods.test.d.ts.map +1 -0
  102. package/dist/ecommerce/__tests__/checkoutReturn.test.d.ts +2 -0
  103. package/dist/ecommerce/__tests__/checkoutReturn.test.d.ts.map +1 -0
  104. package/dist/ecommerce/__tests__/checkoutSchema.test.d.ts +2 -0
  105. package/dist/ecommerce/__tests__/checkoutSchema.test.d.ts.map +1 -0
  106. package/dist/ecommerce/__tests__/mockAdapter.test.d.ts +2 -0
  107. package/dist/ecommerce/__tests__/mockAdapter.test.d.ts.map +1 -0
  108. package/dist/ecommerce/adapters/CommerceAdapter.d.ts +235 -0
  109. package/dist/ecommerce/adapters/CommerceAdapter.d.ts.map +1 -0
  110. package/dist/ecommerce/adapters/mock/mockAdapter.d.ts +3 -0
  111. package/dist/ecommerce/adapters/mock/mockAdapter.d.ts.map +1 -0
  112. package/dist/ecommerce/adapters/paywall/paywallAdapter.d.ts +6 -0
  113. package/dist/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -0
  114. package/dist/ecommerce/components/cart/CartLineItem.d.ts +12 -0
  115. package/dist/ecommerce/components/cart/CartLineItem.d.ts.map +1 -0
  116. package/dist/ecommerce/components/cart/CartPageContent.d.ts +6 -0
  117. package/dist/ecommerce/components/cart/CartPageContent.d.ts.map +1 -0
  118. package/dist/ecommerce/components/cart/CartPanel.d.ts +5 -0
  119. package/dist/ecommerce/components/cart/CartPanel.d.ts.map +1 -0
  120. package/dist/ecommerce/components/cart/CartSidebar.d.ts +11 -0
  121. package/dist/ecommerce/components/cart/CartSidebar.d.ts.map +1 -0
  122. package/dist/ecommerce/components/cart/CartSummary.d.ts +13 -0
  123. package/dist/ecommerce/components/cart/CartSummary.d.ts.map +1 -0
  124. package/dist/ecommerce/components/cart/PromoCodeInput.d.ts +6 -0
  125. package/dist/ecommerce/components/cart/PromoCodeInput.d.ts.map +1 -0
  126. package/dist/ecommerce/components/catalog/Breadcrumbs.d.ts +9 -0
  127. package/dist/ecommerce/components/catalog/Breadcrumbs.d.ts.map +1 -0
  128. package/dist/ecommerce/components/catalog/CategoryNav.d.ts +8 -0
  129. package/dist/ecommerce/components/catalog/CategoryNav.d.ts.map +1 -0
  130. package/dist/ecommerce/components/catalog/FilterPanel.d.ts +29 -0
  131. package/dist/ecommerce/components/catalog/FilterPanel.d.ts.map +1 -0
  132. package/dist/ecommerce/components/catalog/Price.d.ts +9 -0
  133. package/dist/ecommerce/components/catalog/Price.d.ts.map +1 -0
  134. package/dist/ecommerce/components/catalog/ProductCard.d.ts +14 -0
  135. package/dist/ecommerce/components/catalog/ProductCard.d.ts.map +1 -0
  136. package/dist/ecommerce/components/catalog/ProductGallery.d.ts +6 -0
  137. package/dist/ecommerce/components/catalog/ProductGallery.d.ts.map +1 -0
  138. package/dist/ecommerce/components/catalog/ProductGrid.d.ts +20 -0
  139. package/dist/ecommerce/components/catalog/ProductGrid.d.ts.map +1 -0
  140. package/dist/ecommerce/components/catalog/QuantitySelector.d.ts +8 -0
  141. package/dist/ecommerce/components/catalog/QuantitySelector.d.ts.map +1 -0
  142. package/dist/ecommerce/components/catalog/QuickViewDialog.d.ts +10 -0
  143. package/dist/ecommerce/components/catalog/QuickViewDialog.d.ts.map +1 -0
  144. package/dist/ecommerce/components/catalog/SearchInput.d.ts +7 -0
  145. package/dist/ecommerce/components/catalog/SearchInput.d.ts.map +1 -0
  146. package/dist/ecommerce/components/catalog/VariantSelector.d.ts +19 -0
  147. package/dist/ecommerce/components/catalog/VariantSelector.d.ts.map +1 -0
  148. package/dist/ecommerce/components/chat/ShopChatPanel.d.ts +4 -0
  149. package/dist/ecommerce/components/chat/ShopChatPanel.d.ts.map +1 -0
  150. package/dist/ecommerce/components/checkout/AddressForm.d.ts +9 -0
  151. package/dist/ecommerce/components/checkout/AddressForm.d.ts.map +1 -0
  152. package/dist/ecommerce/components/checkout/CheckoutCancelPage.d.ts +24 -0
  153. package/dist/ecommerce/components/checkout/CheckoutCancelPage.d.ts.map +1 -0
  154. package/dist/ecommerce/components/checkout/CheckoutForm.d.ts +4 -0
  155. package/dist/ecommerce/components/checkout/CheckoutForm.d.ts.map +1 -0
  156. package/dist/ecommerce/components/checkout/CheckoutLayout.d.ts +6 -0
  157. package/dist/ecommerce/components/checkout/CheckoutLayout.d.ts.map +1 -0
  158. package/dist/ecommerce/components/checkout/CheckoutReceipt.d.ts +8 -0
  159. package/dist/ecommerce/components/checkout/CheckoutReceipt.d.ts.map +1 -0
  160. package/dist/ecommerce/components/checkout/CheckoutSuccessPage.d.ts +29 -0
  161. package/dist/ecommerce/components/checkout/CheckoutSuccessPage.d.ts.map +1 -0
  162. package/dist/ecommerce/components/checkout/InventoryVerificationDialog.d.ts +19 -0
  163. package/dist/ecommerce/components/checkout/InventoryVerificationDialog.d.ts.map +1 -0
  164. package/dist/ecommerce/components/checkout/OrderReview.d.ts +4 -0
  165. package/dist/ecommerce/components/checkout/OrderReview.d.ts.map +1 -0
  166. package/dist/ecommerce/components/checkout/PaymentStep.d.ts +15 -0
  167. package/dist/ecommerce/components/checkout/PaymentStep.d.ts.map +1 -0
  168. package/dist/ecommerce/components/checkout/ShippingMethodSelector.d.ts +9 -0
  169. package/dist/ecommerce/components/checkout/ShippingMethodSelector.d.ts.map +1 -0
  170. package/dist/ecommerce/components/faq/FAQItem.d.ts +29 -0
  171. package/dist/ecommerce/components/faq/FAQItem.d.ts.map +1 -0
  172. package/dist/ecommerce/components/faq/FAQItem.test.d.ts +7 -0
  173. package/dist/ecommerce/components/faq/FAQItem.test.d.ts.map +1 -0
  174. package/dist/ecommerce/components/faq/FAQList.d.ts +15 -0
  175. package/dist/ecommerce/components/faq/FAQList.d.ts.map +1 -0
  176. package/dist/ecommerce/components/faq/index.d.ts +3 -0
  177. package/dist/ecommerce/components/faq/index.d.ts.map +1 -0
  178. package/dist/ecommerce/components/general/EmptyState.d.ts +8 -0
  179. package/dist/ecommerce/components/general/EmptyState.d.ts.map +1 -0
  180. package/dist/ecommerce/components/general/ErrorBoundary.d.ts +16 -0
  181. package/dist/ecommerce/components/general/ErrorBoundary.d.ts.map +1 -0
  182. package/dist/ecommerce/components/general/ErrorState.d.ts +7 -0
  183. package/dist/ecommerce/components/general/ErrorState.d.ts.map +1 -0
  184. package/dist/ecommerce/components/general/toast.d.ts +19 -0
  185. package/dist/ecommerce/components/general/toast.d.ts.map +1 -0
  186. package/dist/ecommerce/components/orders/OrderCard.d.ts +7 -0
  187. package/dist/ecommerce/components/orders/OrderCard.d.ts.map +1 -0
  188. package/dist/ecommerce/components/orders/OrderDetails.d.ts +7 -0
  189. package/dist/ecommerce/components/orders/OrderDetails.d.ts.map +1 -0
  190. package/dist/ecommerce/components/orders/OrderList.d.ts +7 -0
  191. package/dist/ecommerce/components/orders/OrderList.d.ts.map +1 -0
  192. package/dist/ecommerce/components/ui/accordion.d.ts +7 -0
  193. package/dist/ecommerce/components/ui/accordion.d.ts.map +1 -0
  194. package/dist/ecommerce/components/ui/badge.d.ts +10 -0
  195. package/dist/ecommerce/components/ui/badge.d.ts.map +1 -0
  196. package/dist/ecommerce/components/ui/button.d.ts +12 -0
  197. package/dist/ecommerce/components/ui/button.d.ts.map +1 -0
  198. package/dist/ecommerce/components/ui/card.d.ts +8 -0
  199. package/dist/ecommerce/components/ui/card.d.ts.map +1 -0
  200. package/dist/ecommerce/components/ui/dialog.d.ts +13 -0
  201. package/dist/ecommerce/components/ui/dialog.d.ts.map +1 -0
  202. package/dist/ecommerce/components/ui/input.d.ts +5 -0
  203. package/dist/ecommerce/components/ui/input.d.ts.map +1 -0
  204. package/dist/ecommerce/components/ui/label.d.ts +3 -0
  205. package/dist/ecommerce/components/ui/label.d.ts.map +1 -0
  206. package/dist/ecommerce/components/ui/select.d.ts +9 -0
  207. package/dist/ecommerce/components/ui/select.d.ts.map +1 -0
  208. package/dist/ecommerce/components/ui/separator.d.ts +4 -0
  209. package/dist/ecommerce/components/ui/separator.d.ts.map +1 -0
  210. package/dist/ecommerce/components/ui/sheet.d.ts +21 -0
  211. package/dist/ecommerce/components/ui/sheet.d.ts.map +1 -0
  212. package/dist/ecommerce/components/ui/skeleton.d.ts +3 -0
  213. package/dist/ecommerce/components/ui/skeleton.d.ts.map +1 -0
  214. package/dist/ecommerce/components/ui/tabs.d.ts +7 -0
  215. package/dist/ecommerce/components/ui/tabs.d.ts.map +1 -0
  216. package/dist/ecommerce/components/ui/textarea.d.ts +5 -0
  217. package/dist/ecommerce/components/ui/textarea.d.ts.map +1 -0
  218. package/dist/ecommerce/config/context.d.ts +13 -0
  219. package/dist/ecommerce/config/context.d.ts.map +1 -0
  220. package/dist/ecommerce/config/types.d.ts +48 -0
  221. package/dist/ecommerce/config/types.d.ts.map +1 -0
  222. package/dist/ecommerce/hooks/checkoutReturn.d.ts +3 -0
  223. package/dist/ecommerce/hooks/checkoutReturn.d.ts.map +1 -0
  224. package/dist/ecommerce/hooks/useAIRelatedProducts.d.ts +33 -0
  225. package/dist/ecommerce/hooks/useAIRelatedProducts.d.ts.map +1 -0
  226. package/dist/ecommerce/hooks/useCartInventory.d.ts +42 -0
  227. package/dist/ecommerce/hooks/useCartInventory.d.ts.map +1 -0
  228. package/dist/ecommerce/hooks/useCatalogUrlState.d.ts +15 -0
  229. package/dist/ecommerce/hooks/useCatalogUrlState.d.ts.map +1 -0
  230. package/dist/ecommerce/hooks/useCategories.d.ts +7 -0
  231. package/dist/ecommerce/hooks/useCategories.d.ts.map +1 -0
  232. package/dist/ecommerce/hooks/useCheckoutResultFromUrl.d.ts +4 -0
  233. package/dist/ecommerce/hooks/useCheckoutResultFromUrl.d.ts.map +1 -0
  234. package/dist/ecommerce/hooks/useHoldExpiry.d.ts +34 -0
  235. package/dist/ecommerce/hooks/useHoldExpiry.d.ts.map +1 -0
  236. package/dist/ecommerce/hooks/useInventoryVerification.d.ts +41 -0
  237. package/dist/ecommerce/hooks/useInventoryVerification.d.ts.map +1 -0
  238. package/dist/ecommerce/hooks/useOrders.d.ts +7 -0
  239. package/dist/ecommerce/hooks/useOrders.d.ts.map +1 -0
  240. package/dist/ecommerce/hooks/usePaymentMethodsConfig.d.ts +6 -0
  241. package/dist/ecommerce/hooks/usePaymentMethodsConfig.d.ts.map +1 -0
  242. package/dist/ecommerce/hooks/useProduct.d.ts +7 -0
  243. package/dist/ecommerce/hooks/useProduct.d.ts.map +1 -0
  244. package/dist/ecommerce/hooks/useProducts.d.ts +8 -0
  245. package/dist/ecommerce/hooks/useProducts.d.ts.map +1 -0
  246. package/dist/ecommerce/hooks/useShippingMethods.d.ts +10 -0
  247. package/dist/ecommerce/hooks/useShippingMethods.d.ts.map +1 -0
  248. package/dist/ecommerce/hooks/useStorefrontSettings.d.ts +32 -0
  249. package/dist/ecommerce/hooks/useStorefrontSettings.d.ts.map +1 -0
  250. package/dist/ecommerce/hooks/useSubscriptionData.d.ts +8 -0
  251. package/dist/ecommerce/hooks/useSubscriptionData.d.ts.map +1 -0
  252. package/dist/ecommerce/index.d.ts +98 -0
  253. package/dist/ecommerce/index.d.ts.map +1 -0
  254. package/dist/ecommerce/integrations/cedros-pay/useCedrosPayCheckoutAdapter.d.ts +10 -0
  255. package/dist/ecommerce/integrations/cedros-pay/useCedrosPayCheckoutAdapter.d.ts.map +1 -0
  256. package/dist/ecommerce/state/cart/CartProvider.d.ts +27 -0
  257. package/dist/ecommerce/state/cart/CartProvider.d.ts.map +1 -0
  258. package/dist/ecommerce/state/cart/cartReducer.d.ts +35 -0
  259. package/dist/ecommerce/state/cart/cartReducer.d.ts.map +1 -0
  260. package/dist/ecommerce/state/checkout/checkoutSchema.d.ts +21 -0
  261. package/dist/ecommerce/state/checkout/checkoutSchema.d.ts.map +1 -0
  262. package/dist/ecommerce/state/checkout/useCheckout.d.ts +34 -0
  263. package/dist/ecommerce/state/checkout/useCheckout.d.ts.map +1 -0
  264. package/dist/ecommerce/templates/CartTemplate.d.ts +5 -0
  265. package/dist/ecommerce/templates/CartTemplate.d.ts.map +1 -0
  266. package/dist/ecommerce/templates/CategoryTemplate.d.ts +11 -0
  267. package/dist/ecommerce/templates/CategoryTemplate.d.ts.map +1 -0
  268. package/dist/ecommerce/templates/CheckoutTemplate.d.ts +9 -0
  269. package/dist/ecommerce/templates/CheckoutTemplate.d.ts.map +1 -0
  270. package/dist/ecommerce/templates/ProductTemplate.d.ts +11 -0
  271. package/dist/ecommerce/templates/ProductTemplate.d.ts.map +1 -0
  272. package/dist/ecommerce/templates/PurchaseHistoryTemplate.d.ts +6 -0
  273. package/dist/ecommerce/templates/PurchaseHistoryTemplate.d.ts.map +1 -0
  274. package/dist/ecommerce/templates/ReceiptTemplate.d.ts +19 -0
  275. package/dist/ecommerce/templates/ReceiptTemplate.d.ts.map +1 -0
  276. package/dist/ecommerce/templates/ShopTemplate.d.ts +15 -0
  277. package/dist/ecommerce/templates/ShopTemplate.d.ts.map +1 -0
  278. package/dist/ecommerce/templates/SubscriptionTemplate.d.ts +15 -0
  279. package/dist/ecommerce/templates/SubscriptionTemplate.d.ts.map +1 -0
  280. package/dist/ecommerce/testing/adapterContract.d.ts +11 -0
  281. package/dist/ecommerce/testing/adapterContract.d.ts.map +1 -0
  282. package/dist/ecommerce/types.d.ts +164 -0
  283. package/dist/ecommerce/types.d.ts.map +1 -0
  284. package/dist/ecommerce/utils/cartCheckoutRequirements.d.ts +18 -0
  285. package/dist/ecommerce/utils/cartCheckoutRequirements.d.ts.map +1 -0
  286. package/dist/ecommerce/utils/cartItemMetadata.d.ts +3 -0
  287. package/dist/ecommerce/utils/cartItemMetadata.d.ts.map +1 -0
  288. package/dist/ecommerce/utils/cn.d.ts +3 -0
  289. package/dist/ecommerce/utils/cn.d.ts.map +1 -0
  290. package/dist/ecommerce/utils/money.d.ts +6 -0
  291. package/dist/ecommerce/utils/money.d.ts.map +1 -0
  292. package/dist/ecommerce/utils/storage.d.ts +5 -0
  293. package/dist/ecommerce/utils/storage.d.ts.map +1 -0
  294. package/dist/en-BXheDBal.mjs +19 -0
  295. package/dist/en-Yikrt96u.js +1 -0
  296. package/dist/hooks/useCreditsPayment.d.ts +64 -0
  297. package/dist/hooks/useCreditsPayment.d.ts.map +1 -0
  298. package/dist/hooks/useCreditsSubscription.d.ts +42 -0
  299. package/dist/hooks/useCreditsSubscription.d.ts.map +1 -0
  300. package/dist/hooks/usePaymentMode.d.ts.map +1 -1
  301. package/dist/hooks/useStripeCheckout.d.ts +1 -0
  302. package/dist/hooks/useStripeCheckout.d.ts.map +1 -1
  303. package/dist/hooks/useSubscriptionManagement.d.ts +4 -0
  304. package/dist/hooks/useSubscriptionManagement.d.ts.map +1 -1
  305. package/dist/hooks/useX402Payment.d.ts +1 -0
  306. package/dist/hooks/useX402Payment.d.ts.map +1 -1
  307. package/dist/index-DPl2S6i0.js +136 -0
  308. package/dist/index-SV9PXby1.mjs +26838 -0
  309. package/dist/index.d.ts +10 -2
  310. package/dist/index.d.ts.map +1 -1
  311. package/dist/index.js +1 -1
  312. package/dist/index.mjs +79 -1922
  313. package/dist/magic-string.es-B81Zo59j.js +10 -0
  314. package/dist/magic-string.es-uPKorP4O.mjs +663 -0
  315. package/dist/managers/CreditsManager.d.ts +151 -0
  316. package/dist/managers/CreditsManager.d.ts.map +1 -0
  317. package/dist/managers/ManagerCache.d.ts +2 -0
  318. package/dist/managers/ManagerCache.d.ts.map +1 -1
  319. package/dist/managers/RouteDiscoveryManager.d.ts.map +1 -1
  320. package/dist/managers/StripeManager.d.ts.map +1 -1
  321. package/dist/managers/X402Manager.d.ts.map +1 -1
  322. package/dist/pay-react.css +1 -1
  323. package/dist/sections-BsFQxfHN.mjs +10 -0
  324. package/dist/sections-CTqBNAKW.js +1 -0
  325. package/dist/stripe-only.d.ts +1 -1
  326. package/dist/stripe-only.d.ts.map +1 -1
  327. package/dist/stripe-only.js +1 -1
  328. package/dist/stripe-only.mjs +12 -13
  329. package/dist/styles-C4-_hbgr.js +1 -0
  330. package/dist/styles-QcAsIVWl.mjs +1909 -0
  331. package/dist/telemetry.js +1 -1
  332. package/dist/telemetry.mjs +1 -1
  333. package/dist/testing/index.js +147 -1
  334. package/dist/testing/index.mjs +10555 -103
  335. package/dist/types/componentOptions.d.ts +14 -4
  336. package/dist/types/componentOptions.d.ts.map +1 -1
  337. package/dist/types/errors.d.ts +26 -4
  338. package/dist/types/errors.d.ts.map +1 -1
  339. package/dist/types/index.d.ts +115 -0
  340. package/dist/types/index.d.ts.map +1 -1
  341. package/dist/utils/cartHelpers.d.ts +3 -0
  342. package/dist/utils/cartHelpers.d.ts.map +1 -1
  343. package/dist/utils/cspHelper.d.ts +7 -1
  344. package/dist/utils/cspHelper.d.ts.map +1 -1
  345. package/dist/utils/csvHelpers.d.ts +62 -0
  346. package/dist/utils/csvHelpers.d.ts.map +1 -0
  347. package/dist/utils/csvHelpers.test.d.ts +2 -0
  348. package/dist/utils/csvHelpers.test.d.ts.map +1 -0
  349. package/dist/utils/dateHelpers.d.ts +24 -0
  350. package/dist/utils/dateHelpers.d.ts.map +1 -0
  351. package/dist/utils/eventEmitter.d.ts +1 -1
  352. package/dist/utils/eventEmitter.d.ts.map +1 -1
  353. package/dist/utils/fetchWithTimeout.d.ts +3 -3
  354. package/dist/utils/index.d.ts +2 -1
  355. package/dist/utils/index.d.ts.map +1 -1
  356. package/dist/utils/tokenMintValidator.d.ts +10 -6
  357. package/dist/utils/tokenMintValidator.d.ts.map +1 -1
  358. package/dist/utils/uuid.d.ts.map +1 -1
  359. package/dist/uuid-C5B8o31X.js +1 -0
  360. package/dist/uuid-_z3jSatJ.mjs +17 -0
  361. package/package.json +25 -9
  362. package/dist/CedrosContext-DbndTsTA.js +0 -11
  363. package/dist/en-C739WV_-.mjs +0 -19
  364. package/dist/en-Cz4OpvN-.js +0 -1
  365. package/dist/styles-DFcRS8Uu.mjs +0 -1626
  366. package/dist/styles-Dup9uK6S.js +0 -1
  367. package/dist/utils/uuid-shim.d.ts +0 -9
  368. package/dist/utils/uuid-shim.d.ts.map +0 -1
  369. package/dist/uuid-C0iMjdcc.js +0 -1
  370. package/dist/uuid-UlzrVY8Y.mjs +0 -17
  371. package/dist/walletDetection-JZR3UCOa.mjs +0 -27
  372. package/dist/walletDetection-bNmV5ItZ.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartProvider.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/state/cart/CartProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAW5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChF,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,kFAAkF;IAClF,cAAc,EAAE,OAAO,CAAC;IACxB,uEAAuE;IACvE,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC5G,iFAAiF;IACjF,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpG,CAAC;AAIF,wBAAgB,OAAO,qBAItB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAmIvE"}
@@ -0,0 +1,35 @@
1
+ import { CartItem, CartSnapshot } from '../../types';
2
+ export type CartState = CartSnapshot;
3
+ export type CartAction = {
4
+ type: 'cart/hydrate';
5
+ state: CartState;
6
+ } | {
7
+ type: 'cart/add';
8
+ item: Omit<CartItem, 'qty'>;
9
+ qty?: number;
10
+ } | {
11
+ type: 'cart/remove';
12
+ productId: string;
13
+ variantId?: string;
14
+ } | {
15
+ type: 'cart/setQty';
16
+ productId: string;
17
+ variantId?: string;
18
+ qty: number;
19
+ } | {
20
+ type: 'cart/clear';
21
+ } | {
22
+ type: 'cart/setPromoCode';
23
+ promoCode?: string;
24
+ } | {
25
+ type: 'cart/updateHold';
26
+ productId: string;
27
+ variantId?: string;
28
+ holdId?: string;
29
+ holdExpiresAt?: string;
30
+ };
31
+ export declare const initialCartState: CartState;
32
+ export declare function cartReducer(state: CartState, action: CartAction): CartState;
33
+ export declare function getCartCount(items: CartItem[]): number;
34
+ export declare function getCartSubtotal(items: CartItem[]): number;
35
+ //# sourceMappingURL=cartReducer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartReducer.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/state/cart/cartReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AAErC,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9D;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC3E;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GACtB;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAUhH,eAAO,MAAM,gBAAgB,EAAE,SAAyB,CAAC;AAEzD,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,CA4D3E;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,UAE7C;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,EAAE,UAEhD"}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ import { Address } from '../../types';
3
+ export declare function buildCheckoutSchema(opts: {
4
+ requireEmail: boolean;
5
+ requireName: boolean;
6
+ requirePhone: boolean;
7
+ requireShippingAddress: boolean;
8
+ requireBillingAddress: boolean;
9
+ }): z.ZodObject<{
10
+ email: z.ZodString | z.ZodOptional<z.ZodString>;
11
+ name: z.ZodString | z.ZodOptional<z.ZodString>;
12
+ phone: z.ZodString | z.ZodOptional<z.ZodString>;
13
+ notes: z.ZodOptional<z.ZodString>;
14
+ shippingAddress: z.ZodType<Address, unknown, z.core.$ZodTypeInternals<Address, unknown>> | z.ZodOptional<z.ZodType<Address, unknown, z.core.$ZodTypeInternals<Address, unknown>>>;
15
+ billingAddress: z.ZodType<Address, unknown, z.core.$ZodTypeInternals<Address, unknown>> | z.ZodOptional<z.ZodType<Address, unknown, z.core.$ZodTypeInternals<Address, unknown>>>;
16
+ discountCode: z.ZodOptional<z.ZodString>;
17
+ tipAmount: z.ZodOptional<z.ZodNumber>;
18
+ shippingMethodId: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ export type CheckoutFormValues = z.infer<ReturnType<typeof buildCheckoutSchema>>;
21
+ //# sourceMappingURL=checkoutSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkoutSchema.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/state/checkout/checkoutSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAW3C,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IACxC,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,OAAO,CAAC;IAChC,qBAAqB,EAAE,OAAO,CAAC;CAChC;;;;;;;;;;kBAcA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { default as React } from 'react';
2
+ import { CheckoutFormValues } from './checkoutSchema';
3
+ import { CheckoutSessionResult } from '../../adapters/CommerceAdapter';
4
+ export type CheckoutStatus = 'idle' | 'validating' | 'creating_session' | 'redirecting' | 'error' | 'success';
5
+ export type CheckoutContextValue = {
6
+ values: CheckoutFormValues;
7
+ setValues: React.Dispatch<React.SetStateAction<CheckoutFormValues>>;
8
+ setField: <K extends keyof CheckoutFormValues>(key: K, value: CheckoutFormValues[K]) => void;
9
+ fieldErrors: Record<string, string>;
10
+ status: CheckoutStatus;
11
+ error: string | null;
12
+ session: CheckoutSessionResult | null;
13
+ reset: () => void;
14
+ validate: () => {
15
+ ok: true;
16
+ values: CheckoutFormValues;
17
+ } | {
18
+ ok: false;
19
+ };
20
+ createCheckoutSession: (overrides?: {
21
+ paymentMethodId?: string;
22
+ }) => Promise<{
23
+ ok: true;
24
+ session: CheckoutSessionResult;
25
+ } | {
26
+ ok: false;
27
+ }>;
28
+ };
29
+ export declare function CheckoutProvider({ children }: {
30
+ children: React.ReactNode;
31
+ }): import("react/jsx-runtime").JSX.Element;
32
+ export declare function useCheckout(): CheckoutContextValue;
33
+ export declare function useStandaloneCheckout(): CheckoutContextValue;
34
+ //# sourceMappingURL=useCheckout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCheckout.d.ts","sourceRoot":"","sources":["../../../../src/ecommerce/state/checkout/useCheckout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAG5E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,YAAY,GAAG,kBAAkB,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9G,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACpE,QAAQ,EAAE,CAAC,CAAC,SAAS,MAAM,kBAAkB,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC7F,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM;QAAE,EAAE,EAAE,IAAI,CAAC;QAAC,MAAM,EAAE,kBAAkB,CAAA;KAAE,GAAG;QAAE,EAAE,EAAE,KAAK,CAAA;KAAE,CAAC;IACzE,qBAAqB,EAAE,CAAC,SAAS,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CACxE;QAAE,EAAE,EAAE,IAAI,CAAC;QAAC,OAAO,EAAE,qBAAqB,CAAA;KAAE,GAC5C;QAAE,EAAE,EAAE,KAAK,CAAA;KAAE,CAChB,CAAC;CACH,CAAC;AAqNF,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAG3E;AAED,wBAAgB,WAAW,IAAI,oBAAoB,CAMlD;AAGD,wBAAgB,qBAAqB,yBAEpC"}
@@ -0,0 +1,5 @@
1
+ export declare function CartTemplate({ className, checkoutHref, }: {
2
+ className?: string;
3
+ checkoutHref?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=CartTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/CartTemplate.tsx"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,YAAY,GACb,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,2CA0BA"}
@@ -0,0 +1,11 @@
1
+ export declare function CategoryTemplate({ categorySlug, className, routes, }: {
2
+ categorySlug: string;
3
+ className?: string;
4
+ routes?: {
5
+ product?: (slug: string) => string;
6
+ shop?: string;
7
+ cart?: string;
8
+ checkout?: string;
9
+ };
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=CategoryTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/CategoryTemplate.tsx"],"names":[],"mappings":"AAiCA,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,EACZ,SAAS,EACT,MAAM,GACP,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClG,2CA0VA"}
@@ -0,0 +1,9 @@
1
+ export declare function CheckoutTemplate({ className, routes, }: {
2
+ className?: string;
3
+ routes?: {
4
+ shop?: string;
5
+ orders?: string;
6
+ login?: string;
7
+ };
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=CheckoutTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckoutTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/CheckoutTemplate.tsx"],"names":[],"mappings":"AAeA,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,MAAM,GACP,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7D,2CAmGA"}
@@ -0,0 +1,11 @@
1
+ export declare function ProductTemplate({ slug, className, routes, }: {
2
+ slug: string;
3
+ className?: string;
4
+ routes?: {
5
+ shop?: string;
6
+ checkout?: string;
7
+ cart?: string;
8
+ product?: (slug: string) => string;
9
+ };
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=ProductTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/ProductTemplate.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,SAAS,EACT,MAAM,GACP,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;KAAE,CAAC;CAClG,2CAiRA"}
@@ -0,0 +1,6 @@
1
+ export declare function PurchaseHistoryTemplate({ className, isSignedIn, onLogin, }: {
2
+ className?: string;
3
+ isSignedIn?: boolean;
4
+ onLogin?: () => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=PurchaseHistoryTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PurchaseHistoryTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/PurchaseHistoryTemplate.tsx"],"names":[],"mappings":"AAUA,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,UAAiB,EACjB,OAAO,GACR,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,2CA4DA"}
@@ -0,0 +1,19 @@
1
+ import { Order } from '../types';
2
+ export interface ReceiptTemplateProps {
3
+ /** The order to display */
4
+ order: Order;
5
+ /** Override payment source (defaults to order.source) */
6
+ source?: 'stripe' | 'x402' | 'credits';
7
+ /** Override purchase ID (defaults to order.purchaseId) */
8
+ purchaseId?: string;
9
+ /** Override customer email (defaults to order.customerEmail) */
10
+ customerEmail?: string;
11
+ /** Override customer name (defaults to order.customerName) */
12
+ customerName?: string;
13
+ /** Additional CSS class */
14
+ className?: string;
15
+ /** Callback to go back */
16
+ onBack?: () => void;
17
+ }
18
+ export declare function ReceiptTemplate({ order, source, purchaseId, customerEmail, customerName, className, onBack, }: ReceiptTemplateProps): import("react/jsx-runtime").JSX.Element;
19
+ //# sourceMappingURL=ReceiptTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReceiptTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/ReceiptTemplate.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACnC,2BAA2B;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,yDAAyD;IACzD,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAiCD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,YAAY,EACZ,SAAS,EACT,MAAM,GACP,EAAE,oBAAoB,2CAkKtB"}
@@ -0,0 +1,15 @@
1
+ export type CedrosShopRoutes = {
2
+ shop?: string;
3
+ category?: (slug: string) => string;
4
+ product?: (slug: string) => string;
5
+ cart?: string;
6
+ checkout?: string;
7
+ orders?: string;
8
+ subscribe?: string;
9
+ };
10
+ export declare function ShopTemplate({ className, routes, initialCategorySlug, }: {
11
+ className?: string;
12
+ routes?: CedrosShopRoutes;
13
+ initialCategorySlug?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=ShopTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShopTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/ShopTemplate.tsx"],"names":[],"mappings":"AAgCA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA0BF,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,MAAM,EACN,mBAAmB,GACpB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,2CAiZA"}
@@ -0,0 +1,15 @@
1
+ export interface SubscriptionTemplateProps {
2
+ className?: string;
3
+ /** Page title */
4
+ title?: string;
5
+ /** Subtitle shown below title */
6
+ subtitle?: string;
7
+ /** Text for annual savings badge (e.g., "2 months free") */
8
+ annualSavingsBadge?: string;
9
+ /** Badge text for popular plan (default: "Best Deal") */
10
+ popularBadgeText?: string;
11
+ /** Footer notice text */
12
+ footerNotice?: string;
13
+ }
14
+ export declare function SubscriptionTemplate({ className, title, subtitle, annualSavingsBadge, popularBadgeText, footerNotice, }: SubscriptionTemplateProps): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=SubscriptionTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionTemplate.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/templates/SubscriptionTemplate.tsx"],"names":[],"mappings":"AA2BA,MAAM,WAAW,yBAAyB;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,KAA0B,EAC1B,QAAuD,EACvD,kBAAoC,EACpC,gBAA8B,EAC9B,YAAY,GACb,EAAE,yBAAyB,2CA2O3B"}
@@ -0,0 +1,11 @@
1
+ import { CommerceAdapter } from '../adapters/CommerceAdapter';
2
+ export type AdapterContractOptions = {
3
+ pageSize?: number;
4
+ };
5
+ /**
6
+ * Lightweight runtime validation for a CommerceAdapter.
7
+ *
8
+ * This is intentionally framework-agnostic so consumers can run it in Jest/Vitest.
9
+ */
10
+ export declare function validateCommerceAdapterContract(adapter: CommerceAdapter, options?: AdapterContractOptions): Promise<void>;
11
+ //# sourceMappingURL=adapterContract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapterContract.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/testing/adapterContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAUnE,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,+BAA+B,CACnD,OAAO,EAAE,eAAe,EACxB,OAAO,GAAE,sBAA2B,iBA0CrC"}
@@ -0,0 +1,164 @@
1
+ export type ProductImage = {
2
+ url: string;
3
+ alt?: string;
4
+ };
5
+ /**
6
+ * A value within a variation type (e.g., "Medium" for Size, "Blue" for Color)
7
+ */
8
+ export type VariationValue = {
9
+ id: string;
10
+ label: string;
11
+ /** Optional: parent value ID for hierarchical dependencies */
12
+ parentValueId?: string;
13
+ };
14
+ /**
15
+ * A variation type definition (e.g., "Size", "Color")
16
+ */
17
+ export type VariationType = {
18
+ id: string;
19
+ name: string;
20
+ /** Display order (0 = first selector) */
21
+ displayOrder: number;
22
+ values: VariationValue[];
23
+ };
24
+ /**
25
+ * Product-level variation configuration
26
+ */
27
+ export type ProductVariationConfig = {
28
+ variationTypes: VariationType[];
29
+ };
30
+ export type ProductVariant = {
31
+ id: string;
32
+ title: string;
33
+ options: Record<string, string>;
34
+ /** References to VariationValue IDs that make up this variant */
35
+ optionValueIds?: string[];
36
+ price?: number;
37
+ compareAtPrice?: number;
38
+ inventoryStatus?: 'in_stock' | 'low' | 'out_of_stock' | 'backorder';
39
+ /** Actual inventory count (when tracked) */
40
+ inventoryQuantity?: number;
41
+ /** Stock keeping unit */
42
+ sku?: string;
43
+ /** Variant-specific images */
44
+ images?: ProductImage[];
45
+ /** Whether this variant was auto-generated */
46
+ autoGenerated?: boolean;
47
+ };
48
+ export type Product = {
49
+ id: string;
50
+ slug: string;
51
+ title: string;
52
+ description: string;
53
+ images: ProductImage[];
54
+ price: number;
55
+ currency: string;
56
+ tags: string[];
57
+ categoryIds: string[];
58
+ /** Variation type definitions for this product */
59
+ variationConfig?: ProductVariationConfig;
60
+ variants?: ProductVariant[];
61
+ inventoryStatus?: 'in_stock' | 'low' | 'out_of_stock' | 'backorder';
62
+ /** When present, inventory is tracked and finite */
63
+ inventoryQuantity?: number;
64
+ compareAtPrice?: number;
65
+ attributes?: Record<string, string | number | boolean>;
66
+ shippingProfile?: 'physical' | 'digital';
67
+ checkoutRequirements?: {
68
+ email?: 'none' | 'optional' | 'required';
69
+ name?: 'none' | 'optional' | 'required';
70
+ phone?: 'none' | 'optional' | 'required';
71
+ shippingAddress?: boolean;
72
+ billingAddress?: boolean;
73
+ };
74
+ fulfillment?: {
75
+ type: 'digital_download' | 'shipping' | 'service';
76
+ notes?: string;
77
+ };
78
+ };
79
+ export type Category = {
80
+ id: string;
81
+ slug: string;
82
+ name: string;
83
+ description?: string;
84
+ parentId?: string;
85
+ bannerImageUrl?: string;
86
+ };
87
+ export type CartItem = {
88
+ productId: string;
89
+ variantId?: string;
90
+ qty: number;
91
+ unitPrice: number;
92
+ currency: string;
93
+ titleSnapshot: string;
94
+ imageSnapshot?: string;
95
+ paymentResource?: string;
96
+ metadata?: Record<string, string>;
97
+ /** Inventory hold ID if holds are enabled */
98
+ holdId?: string;
99
+ /** When the inventory hold expires (ISO datetime) */
100
+ holdExpiresAt?: string;
101
+ };
102
+ export type CartSnapshot = {
103
+ items: CartItem[];
104
+ promoCode?: string;
105
+ };
106
+ export type OrderLineItem = {
107
+ title: string;
108
+ qty: number;
109
+ unitPrice: number;
110
+ currency: string;
111
+ imageUrl?: string;
112
+ };
113
+ /** Order status values matching backend */
114
+ export type OrderStatus = 'created' | 'paid' | 'processing' | 'fulfilled' | 'shipped' | 'delivered' | 'cancelled' | 'refunded';
115
+ export type Order = {
116
+ id: string;
117
+ createdAt: string;
118
+ status: OrderStatus;
119
+ total: number;
120
+ currency: string;
121
+ items: OrderLineItem[];
122
+ receiptUrl?: string;
123
+ invoiceUrl?: string;
124
+ /** Payment source/method: 'stripe', 'x402', or 'credits' */
125
+ source?: 'stripe' | 'x402' | 'credits';
126
+ /** Purchase/transaction ID (Stripe payment intent, blockchain tx hash, or credits tx ID) */
127
+ purchaseId?: string;
128
+ /** Customer email (if collected) */
129
+ customerEmail?: string;
130
+ /** Customer name (if collected) */
131
+ customerName?: string;
132
+ };
133
+ export type CheckoutMode = 'none' | 'minimal' | 'shipping' | 'full';
134
+ export type CustomerInfo = {
135
+ email?: string;
136
+ name?: string;
137
+ phone?: string;
138
+ notes?: string;
139
+ shippingAddress?: Address;
140
+ billingAddress?: Address;
141
+ };
142
+ export type Address = {
143
+ line1: string;
144
+ line2?: string;
145
+ city: string;
146
+ state?: string;
147
+ postalCode: string;
148
+ country: string;
149
+ };
150
+ export type ShippingMethod = {
151
+ id: string;
152
+ label: string;
153
+ price: number;
154
+ currency: string;
155
+ detail?: string;
156
+ };
157
+ export type ListResult<T> = {
158
+ items: T[];
159
+ page: number;
160
+ pageSize: number;
161
+ total?: number;
162
+ hasNextPage?: boolean;
163
+ };
164
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ecommerce/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ import { CartItem } from '../types';
2
+ export type RequirementLevel = 'none' | 'optional' | 'required';
3
+ export type CheckoutRequirements = {
4
+ email: RequirementLevel;
5
+ name: RequirementLevel;
6
+ phone: RequirementLevel;
7
+ shippingAddress: boolean;
8
+ billingAddress: boolean;
9
+ fulfillmentNotes?: string;
10
+ isDigitalOnly: boolean;
11
+ hasPhysical: boolean;
12
+ };
13
+ export declare function getCartCheckoutRequirements(items: CartItem[], base: {
14
+ requireEmail: boolean;
15
+ defaultMode: 'none' | 'minimal' | 'shipping' | 'full';
16
+ allowShipping: boolean;
17
+ }): CheckoutRequirements;
18
+ //# sourceMappingURL=cartCheckoutRequirements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartCheckoutRequirements.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/utils/cartCheckoutRequirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,gBAAgB,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AA2BF,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,QAAQ,EAAE,EACjB,IAAI,EAAE;IACJ,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IACtD,aAAa,EAAE,OAAO,CAAC;CACxB,GACA,oBAAoB,CAoDtB"}
@@ -0,0 +1,3 @@
1
+ import { Product } from '../types';
2
+ export declare function buildCartItemMetadataFromProduct(product: Product): Record<string, string> | undefined;
3
+ //# sourceMappingURL=cartItemMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartItemMetadata.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/utils/cartItemMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAkBrG"}
@@ -0,0 +1,3 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=cn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
@@ -0,0 +1,6 @@
1
+ export type Money = {
2
+ amount: number;
3
+ currency: string;
4
+ };
5
+ export declare function formatMoney({ amount, currency }: Money): string;
6
+ //# sourceMappingURL=money.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/utils/money.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,KAAK,UAMtD"}
@@ -0,0 +1,5 @@
1
+ export type StorageLike = Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
2
+ export declare function getSafeStorage(): StorageLike | null;
3
+ export declare function readJson<T>(storage: StorageLike, key: string): T | null;
4
+ export declare function writeJson(storage: StorageLike, key: string, value: unknown): void;
5
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/ecommerce/utils/storage.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC,CAAC;AAE9E,wBAAgB,cAAc,IAAI,WAAW,GAAG,IAAI,CAOnD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAQvE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAM1E"}
@@ -0,0 +1,19 @@
1
+ const e = "CEDROS PAY - Translation Source File (English)", a = "1.0.0", s = "en", n = { pay_with_card: "Pay with Card", pay_with_crypto: "Pay with USDC", pay_with_usdc: "Pay with USDC", pay_with_credits: "Pay with Credits", purchase: "Purchase", card: "Card", usdc_solana: "USDC (Solana)", crypto: "Crypto", credits: "Credits", connect_wallet: "Connect Wallet", connecting: "Connecting...", processing: "Processing...", loading: "Loading...", close: "Close", cancel: "Cancel", confirm: "Confirm", retry: "Try Again", go_back: "Go Back", contact_support: "Contact Support", disconnect: "Disconnect", payment_successful: "Payment successful!", subscribe: "Subscribe", subscribe_with_crypto: "Subscribe with USDC", subscribe_with_credits: "Subscribe with Credits", subscribed: "Subscribed", subscribed_until: "Subscribed until", subscription_active: "Your subscription is active!", redirecting_to_checkout: "Redirecting to checkout..." }, t = { invalid_payment_proof: { message: "Payment verification failed", action: "Please try your payment again. If this continues, contact support." }, invalid_signature: { message: "Transaction signature is invalid", action: "Please approve the transaction in your wallet and try again." }, invalid_transaction: { message: "Transaction format is invalid", action: "Please try your payment again. If this continues, try updating your wallet app." }, transaction_not_found: { message: "Transaction not found on the blockchain", action: "Your transaction may still be processing. Please wait a moment and check your wallet, or try again." }, transaction_not_confirmed: { message: "Transaction is still processing", action: "Please wait a moment for the blockchain to confirm your transaction, then try again." }, transaction_failed: { message: "Transaction failed on the blockchain", action: "Check your wallet for details. You may need to adjust your transaction settings or add more SOL for fees." }, transaction_expired: { message: "Transaction took too long to process", action: "Please try your payment again. Consider increasing transaction priority if your wallet supports it." }, invalid_recipient: { message: "Payment was sent to the wrong address", action: "Please try again and ensure you approve the correct transaction in your wallet." }, invalid_sender: { message: "Payment sender wallet is invalid", action: "Please reconnect your wallet and try again." }, unauthorized_refund_issuer: { message: "You are not authorized to issue refunds", action: "Only authorized accounts can process refunds. Please contact support if you believe this is an error." }, amount_below_minimum: { message: "Payment amount is too low", action: "Please check the required amount and try again." }, amount_mismatch: { message: "Payment amount does not match the quote", action: "The price may have changed. Please refresh and try your payment again." }, insufficient_funds_sol: { message: "Not enough SOL for transaction fees", action: "Add at least 0.001 SOL to your wallet to cover network fees, then try again." }, insufficient_funds_token: { message: "Insufficient balance in your wallet", action: "Add more funds to your wallet and try again." }, invalid_token_mint: { message: "Incorrect payment token", action: "Please pay with the correct token as shown in the payment details." }, not_spl_transfer: { message: "Transaction is not a valid token transfer", action: "Please ensure you are sending the correct token type from your wallet." }, missing_token_account: { message: "Token account not found", action: "Your wallet may need to create a token account first. Try again or use a different wallet." }, invalid_token_program: { message: "Invalid token program", action: "Please try your payment again. If this continues, try using a different wallet." }, missing_memo: { message: "Payment memo is required but was not included", action: "Please try your payment again and ensure transaction details are approved in your wallet." }, invalid_memo: { message: "Payment memo format is invalid", action: "Please try your payment again." }, payment_already_used: { message: "This payment has already been processed", action: "Check your transaction history. If you need to make another payment, please start a new transaction." }, signature_reused: { message: "Transaction signature has already been used", action: "Please create a new payment transaction." }, quote_expired: { message: "Payment quote has expired", action: "Prices are updated frequently. Please refresh and try your payment again." }, missing_field: { message: "Required information is missing", action: "Please check all required fields and try again." }, invalid_field: { message: "Some information is invalid", action: "Please check your input and try again." }, invalid_amount: { message: "Payment amount is invalid", action: "Please check the amount and try again." }, invalid_wallet: { message: "Wallet address is invalid", action: "Please reconnect your wallet and try again." }, invalid_resource: { message: "Invalid item selection", action: "Please refresh the page and try again." }, invalid_coupon: { message: "Invalid coupon code", action: "Please check the coupon code and try again." }, invalid_cart_item: { message: "One or more cart items are invalid", action: "Please review your cart and try again." }, empty_cart: { message: "Your cart is empty", action: "Please add items to your cart before checking out." }, resource_not_found: { message: "Item not found", action: "This item may no longer be available. Please refresh and try again." }, cart_not_found: { message: "Shopping cart not found", action: "Your cart may have expired. Please start a new order." }, refund_not_found: { message: "Refund not found", action: "Please check your refund reference number or contact support." }, product_not_found: { message: "Product not available", action: "This product may no longer be available. Please browse our current selection." }, coupon_not_found: { message: "Coupon code not found", action: "Please check the coupon code or remove it to continue." }, session_not_found: { message: "Payment session expired", action: "Please start a new payment." }, cart_already_paid: { message: "This order has already been paid", action: "Check your order history. If you need to make another purchase, please start a new order." }, refund_already_processed: { message: "This refund has already been processed", action: "Check your transaction history or contact support for details." }, coupon_expired: { message: "Coupon has expired", action: "Please remove the coupon code or use a different code." }, coupon_usage_limit_reached: { message: "Coupon usage limit reached", action: "This coupon has been fully redeemed. Please try a different code." }, coupon_not_applicable: { message: "Coupon cannot be applied to this purchase", action: "Please check the coupon terms or remove it to continue." }, coupon_wrong_payment_method: { message: "Coupon not valid for this payment method", action: "Try a different payment method or remove the coupon code." }, stripe_error: { message: "Card payment service temporarily unavailable", action: "Please try again in a moment, or use cryptocurrency payment instead." }, rpc_error: { message: "Blockchain network temporarily unavailable", action: "Please try again in a moment, or use card payment instead." }, network_error: { message: "Network connection issue", action: "Please check your internet connection and try again." }, internal_error: { message: "Something went wrong on our end", action: "Please try again. If this continues, contact support." }, database_error: { message: "Service temporarily unavailable", action: "Please try again in a moment." }, config_error: { message: "Service configuration error", action: "Please contact support for assistance." }, unknown_error: { message: "An unexpected error occurred", action: "Please try again or contact support if this continues." } }, o = { unknown_token_mint: "Warning: Unrecognized token mint address. Double-check this is the correct token to avoid loss of funds.", token_typo_warning: "Token address does not match known stablecoins (USDC, USDT, PYUSD, CASH). Verify carefully to prevent permanent loss of funds." }, i = { no_wallet_detected: "No Solana wallet detected", install_wallet: "Please install a Solana wallet like Phantom, Solflare, or Backpack.", wallet_not_connected: "Wallet not connected", connect_your_wallet: "Please connect your wallet to continue.", wallet_connection_failed: "Failed to connect wallet", try_again: "Please try connecting again.", transaction_rejected: "Transaction was rejected", approve_in_wallet: "Please approve the transaction in your wallet to continue.", select_wallet: "Select Wallet", change: "Change Wallet" }, r = {
2
+ comment: e,
3
+ version: a,
4
+ locale: "en",
5
+ ui: n,
6
+ errors: t,
7
+ validation: o,
8
+ wallet: i
9
+ };
10
+ export {
11
+ e as comment,
12
+ r as default,
13
+ t as errors,
14
+ s as locale,
15
+ n as ui,
16
+ o as validation,
17
+ a as version,
18
+ i as wallet
19
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="CEDROS PAY - Translation Source File (English)",a="1.0.0",n="en",t={pay_with_card:"Pay with Card",pay_with_crypto:"Pay with USDC",pay_with_usdc:"Pay with USDC",pay_with_credits:"Pay with Credits",purchase:"Purchase",card:"Card",usdc_solana:"USDC (Solana)",crypto:"Crypto",credits:"Credits",connect_wallet:"Connect Wallet",connecting:"Connecting...",processing:"Processing...",loading:"Loading...",close:"Close",cancel:"Cancel",confirm:"Confirm",retry:"Try Again",go_back:"Go Back",contact_support:"Contact Support",disconnect:"Disconnect",payment_successful:"Payment successful!",subscribe:"Subscribe",subscribe_with_crypto:"Subscribe with USDC",subscribe_with_credits:"Subscribe with Credits",subscribed:"Subscribed",subscribed_until:"Subscribed until",subscription_active:"Your subscription is active!",redirecting_to_checkout:"Redirecting to checkout..."},o={invalid_payment_proof:{message:"Payment verification failed",action:"Please try your payment again. If this continues, contact support."},invalid_signature:{message:"Transaction signature is invalid",action:"Please approve the transaction in your wallet and try again."},invalid_transaction:{message:"Transaction format is invalid",action:"Please try your payment again. If this continues, try updating your wallet app."},transaction_not_found:{message:"Transaction not found on the blockchain",action:"Your transaction may still be processing. Please wait a moment and check your wallet, or try again."},transaction_not_confirmed:{message:"Transaction is still processing",action:"Please wait a moment for the blockchain to confirm your transaction, then try again."},transaction_failed:{message:"Transaction failed on the blockchain",action:"Check your wallet for details. You may need to adjust your transaction settings or add more SOL for fees."},transaction_expired:{message:"Transaction took too long to process",action:"Please try your payment again. Consider increasing transaction priority if your wallet supports it."},invalid_recipient:{message:"Payment was sent to the wrong address",action:"Please try again and ensure you approve the correct transaction in your wallet."},invalid_sender:{message:"Payment sender wallet is invalid",action:"Please reconnect your wallet and try again."},unauthorized_refund_issuer:{message:"You are not authorized to issue refunds",action:"Only authorized accounts can process refunds. Please contact support if you believe this is an error."},amount_below_minimum:{message:"Payment amount is too low",action:"Please check the required amount and try again."},amount_mismatch:{message:"Payment amount does not match the quote",action:"The price may have changed. Please refresh and try your payment again."},insufficient_funds_sol:{message:"Not enough SOL for transaction fees",action:"Add at least 0.001 SOL to your wallet to cover network fees, then try again."},insufficient_funds_token:{message:"Insufficient balance in your wallet",action:"Add more funds to your wallet and try again."},invalid_token_mint:{message:"Incorrect payment token",action:"Please pay with the correct token as shown in the payment details."},not_spl_transfer:{message:"Transaction is not a valid token transfer",action:"Please ensure you are sending the correct token type from your wallet."},missing_token_account:{message:"Token account not found",action:"Your wallet may need to create a token account first. Try again or use a different wallet."},invalid_token_program:{message:"Invalid token program",action:"Please try your payment again. If this continues, try using a different wallet."},missing_memo:{message:"Payment memo is required but was not included",action:"Please try your payment again and ensure transaction details are approved in your wallet."},invalid_memo:{message:"Payment memo format is invalid",action:"Please try your payment again."},payment_already_used:{message:"This payment has already been processed",action:"Check your transaction history. If you need to make another payment, please start a new transaction."},signature_reused:{message:"Transaction signature has already been used",action:"Please create a new payment transaction."},quote_expired:{message:"Payment quote has expired",action:"Prices are updated frequently. Please refresh and try your payment again."},missing_field:{message:"Required information is missing",action:"Please check all required fields and try again."},invalid_field:{message:"Some information is invalid",action:"Please check your input and try again."},invalid_amount:{message:"Payment amount is invalid",action:"Please check the amount and try again."},invalid_wallet:{message:"Wallet address is invalid",action:"Please reconnect your wallet and try again."},invalid_resource:{message:"Invalid item selection",action:"Please refresh the page and try again."},invalid_coupon:{message:"Invalid coupon code",action:"Please check the coupon code and try again."},invalid_cart_item:{message:"One or more cart items are invalid",action:"Please review your cart and try again."},empty_cart:{message:"Your cart is empty",action:"Please add items to your cart before checking out."},resource_not_found:{message:"Item not found",action:"This item may no longer be available. Please refresh and try again."},cart_not_found:{message:"Shopping cart not found",action:"Your cart may have expired. Please start a new order."},refund_not_found:{message:"Refund not found",action:"Please check your refund reference number or contact support."},product_not_found:{message:"Product not available",action:"This product may no longer be available. Please browse our current selection."},coupon_not_found:{message:"Coupon code not found",action:"Please check the coupon code or remove it to continue."},session_not_found:{message:"Payment session expired",action:"Please start a new payment."},cart_already_paid:{message:"This order has already been paid",action:"Check your order history. If you need to make another purchase, please start a new order."},refund_already_processed:{message:"This refund has already been processed",action:"Check your transaction history or contact support for details."},coupon_expired:{message:"Coupon has expired",action:"Please remove the coupon code or use a different code."},coupon_usage_limit_reached:{message:"Coupon usage limit reached",action:"This coupon has been fully redeemed. Please try a different code."},coupon_not_applicable:{message:"Coupon cannot be applied to this purchase",action:"Please check the coupon terms or remove it to continue."},coupon_wrong_payment_method:{message:"Coupon not valid for this payment method",action:"Try a different payment method or remove the coupon code."},stripe_error:{message:"Card payment service temporarily unavailable",action:"Please try again in a moment, or use cryptocurrency payment instead."},rpc_error:{message:"Blockchain network temporarily unavailable",action:"Please try again in a moment, or use card payment instead."},network_error:{message:"Network connection issue",action:"Please check your internet connection and try again."},internal_error:{message:"Something went wrong on our end",action:"Please try again. If this continues, contact support."},database_error:{message:"Service temporarily unavailable",action:"Please try again in a moment."},config_error:{message:"Service configuration error",action:"Please contact support for assistance."},unknown_error:{message:"An unexpected error occurred",action:"Please try again or contact support if this continues."}},i={unknown_token_mint:"Warning: Unrecognized token mint address. Double-check this is the correct token to avoid loss of funds.",token_typo_warning:"Token address does not match known stablecoins (USDC, USDT, PYUSD, CASH). Verify carefully to prevent permanent loss of funds."},r={no_wallet_detected:"No Solana wallet detected",install_wallet:"Please install a Solana wallet like Phantom, Solflare, or Backpack.",wallet_not_connected:"Wallet not connected",connect_your_wallet:"Please connect your wallet to continue.",wallet_connection_failed:"Failed to connect wallet",try_again:"Please try connecting again.",transaction_rejected:"Transaction was rejected",approve_in_wallet:"Please approve the transaction in your wallet to continue.",select_wallet:"Select Wallet",change:"Change Wallet"},s={comment:e,version:a,locale:n,ui:t,errors:o,validation:i,wallet:r};exports.comment=e;exports.default=s;exports.errors=o;exports.locale=n;exports.ui=t;exports.validation=i;exports.version=a;exports.wallet=r;