@cedros/pay-react 1.1.18 → 1.1.21
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.
- package/README.md +2 -0
- package/dist/{AISettingsSection-CD9IRyR1.mjs → AISettingsSection-8eDaxYp8.mjs} +10 -10
- package/dist/{AISettingsSection-C-thWh51.js → AISettingsSection-BXWZcMQT.js} +1 -1
- package/dist/{AutosaveIndicator-G2CRN8hH.mjs → AutosaveIndicator-3S7EvXip.mjs} +1 -1
- package/dist/{AutosaveIndicator-DxemlKnX.js → AutosaveIndicator-DW4IPbZ5.js} +1 -1
- package/dist/{CedrosContext-BnJ2Cf7R.mjs → CedrosContext-BE6P5PQ0.mjs} +241 -245
- package/dist/{CedrosContext-C26DlvLF.js → CedrosContext-D-lnoEkR.js} +3 -3
- package/dist/{CryptoButton-BdOtL7w-.mjs → CryptoButton-CksMkZjL.mjs} +48 -48
- package/dist/CryptoButton-Dy-g3bR0.js +1 -0
- package/dist/{FAQSection-CyYK9OAN.mjs → FAQSection-Dg-I7Z-N.mjs} +4 -4
- package/dist/{FAQSection-_pm1ekTe.js → FAQSection-r6eKjfdO.js} +1 -1
- package/dist/MessagingSection-Cld5Q7ZM.js +1 -0
- package/dist/{MessagingSection-DO2yPTvs.mjs → MessagingSection-D39EuOLN.mjs} +143 -96
- package/dist/{PaymentSettingsSection-DpENgoca.js → PaymentSettingsSection-B-MRsh1K.js} +1 -1
- package/dist/{PaymentSettingsSection--Aqlne1F.mjs → PaymentSettingsSection-CEGHN6VI.mjs} +1 -1
- package/dist/{SettingsSection-CGKKGXWz.mjs → SettingsSection-CPFOuoZG.mjs} +1 -1
- package/dist/{SettingsSection-DNoODw7i.js → SettingsSection-ZrzfLBlS.js} +1 -1
- package/dist/{SingleCategorySettings-8DCtLcow.mjs → SingleCategorySettings-DhHGIGwB.mjs} +102 -105
- package/dist/SingleCategorySettings-DxjCafCk.js +3 -0
- package/dist/{StorefrontSection-BEOMtSAg.js → StorefrontSection-DGVcJu1T.js} +1 -1
- package/dist/{StorefrontSection-Mzr1H51w.mjs → StorefrontSection-f54ySA6i.mjs} +8 -8
- package/dist/{SubscriptionsSection-Dy1e15fe.mjs → SubscriptionsSection-F2IiU2jv.mjs} +6 -6
- package/dist/{SubscriptionsSection-4b29i-41.js → SubscriptionsSection-fzbL5DGC.js} +1 -1
- package/dist/{WalletManager-HXXyARQ7.mjs → WalletManager-D78miaJ2.mjs} +1 -1
- package/dist/{WalletManager-D6BYTwXn.js → WalletManager-QcfgQmap.js} +1 -1
- package/dist/crypto-only.d.ts +2 -23
- package/dist/crypto-only.js +1 -1
- package/dist/crypto-only.mjs +169 -165
- package/dist/index-7YUxR4u5.js +84 -0
- package/dist/{index-bbSf3B7-.mjs → index-bqhsxBTY.mjs} +8824 -11397
- package/dist/index.d.ts +2 -45
- package/dist/index.js +1 -1
- package/dist/index.mjs +65 -61
- package/dist/pay-react.css +1 -1
- package/dist/sections-CiAMjlPd.mjs +8 -0
- package/dist/sections-Dh0qFSUW.js +1 -0
- package/dist/{admin → src/admin}/index.d.ts +2 -0
- package/dist/src/admin/index.d.ts.map +1 -0
- package/dist/src/admin/plugin.d.ts.map +1 -0
- package/dist/src/admin/sectionIds.d.ts +43 -0
- package/dist/src/admin/sectionIds.d.ts.map +1 -0
- package/dist/src/admin/types.d.ts.map +1 -0
- package/dist/src/components/CedrosPay.d.ts.map +1 -0
- package/dist/src/components/CreditsButton.d.ts.map +1 -0
- package/dist/src/components/CreditsSubscribeButton.d.ts.map +1 -0
- package/dist/src/components/CryptoButton.d.ts.map +1 -0
- package/dist/src/components/CryptoSubscribeButton.d.ts.map +1 -0
- package/dist/src/components/PaymentModal.d.ts.map +1 -0
- package/dist/src/components/ProductPrice.d.ts.map +1 -0
- package/dist/src/components/PurchaseButton.d.ts.map +1 -0
- package/dist/src/components/StripeButton.d.ts.map +1 -0
- package/dist/src/components/SubscribeButton.d.ts.map +1 -0
- package/dist/src/components/SubscriptionManagementPanel.d.ts.map +1 -0
- package/dist/src/components/admin/AISettingsSection.d.ts.map +1 -0
- package/dist/src/components/admin/AdminAuthManager.d.ts.map +1 -0
- package/dist/src/components/admin/AutosaveIndicator.d.ts.map +1 -0
- package/dist/src/components/admin/CedrosPayAdminDashboard.d.ts.map +1 -0
- package/dist/src/components/admin/ConfigEditor.d.ts.map +1 -0
- package/dist/src/components/admin/CouponsSection.d.ts.map +1 -0
- package/dist/src/components/admin/Dropdown.d.ts.map +1 -0
- package/dist/src/components/admin/ErrorBanner.d.ts.map +1 -0
- package/dist/src/components/admin/FAQSection.d.ts.map +1 -0
- package/dist/src/components/admin/MessagingSection.d.ts.map +1 -0
- package/dist/src/components/admin/OverviewSection.d.ts.map +1 -0
- package/dist/src/components/admin/PaymentSettingsSection.d.ts.map +1 -0
- package/dist/src/components/admin/ProductVariationsEditor.d.ts.map +1 -0
- package/dist/src/components/admin/ProductsSection.d.ts.map +1 -0
- package/dist/src/components/admin/RefundsSection.d.ts.map +1 -0
- package/dist/src/components/admin/SecretArrayEditor.d.ts.map +1 -0
- package/dist/src/components/admin/SettingsSection.d.ts.map +1 -0
- package/dist/src/components/admin/SingleCategorySettings.d.ts.map +1 -0
- package/dist/src/components/admin/StatsBar.d.ts.map +1 -0
- package/dist/src/components/admin/StorefrontSection.d.ts.map +1 -0
- package/dist/src/components/admin/SubscriptionsSection.d.ts.map +1 -0
- package/dist/src/components/admin/Toggle.d.ts.map +1 -0
- package/dist/{components → src/components}/admin/TokenMintSelector.d.ts +1 -1
- package/dist/src/components/admin/TokenMintSelector.d.ts.map +1 -0
- package/dist/src/components/admin/TransactionsSection.d.ts.map +1 -0
- package/dist/src/components/admin/VariantInventoryGrid.d.ts.map +1 -0
- package/dist/src/components/admin/VariationTypeEditor.d.ts.map +1 -0
- package/dist/src/components/admin/configApi.d.ts.map +1 -0
- package/dist/src/components/admin/emailProviders.d.ts +18 -0
- package/dist/src/components/admin/emailProviders.d.ts.map +1 -0
- package/dist/src/components/admin/icons.d.ts.map +1 -0
- package/dist/{components → src/components}/admin/index.d.ts +1 -1
- package/dist/src/components/admin/index.d.ts.map +1 -0
- package/dist/src/components/admin/sections-more.d.ts.map +1 -0
- package/dist/src/components/admin/sections.d.ts.map +1 -0
- package/dist/src/components/admin/types.d.ts.map +1 -0
- package/dist/{components → src/components}/admin/useAdminAuth.d.ts +11 -23
- package/dist/src/components/admin/useAdminAuth.d.ts.map +1 -0
- package/dist/src/components/admin/useAutosave.d.ts.map +1 -0
- package/dist/src/components/admin/useProductVariations.d.ts.map +1 -0
- package/dist/src/components/subscriptionPanelStyles.d.ts.map +1 -0
- package/dist/src/context/CedrosContext.d.ts.map +1 -0
- package/dist/src/context/ThemeContext.d.ts.map +1 -0
- package/dist/src/context/index.d.ts.map +1 -0
- package/dist/src/crypto-only.d.ts +23 -0
- package/dist/src/crypto-only.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/cartCheckoutRequirements.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/cartProviderPersistence.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/cartReducer.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/cartServerMerge.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/checkoutPaymentMethods.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/checkoutReturn.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/checkoutSchema.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/inventoryHooks.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/mockAdapter.test.d.ts.map +1 -0
- package/dist/src/ecommerce/__tests__/storage.test.d.ts.map +1 -0
- package/dist/src/ecommerce/adapters/CommerceAdapter.d.ts.map +1 -0
- package/dist/src/ecommerce/adapters/mock/mockAdapter.d.ts.map +1 -0
- package/dist/src/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +1 -0
- package/dist/src/ecommerce/adapters/paywall/paywallAdapter.test.d.ts.map +1 -0
- package/dist/src/ecommerce/components/cart/CartLineItem.d.ts.map +1 -0
- package/dist/src/ecommerce/components/cart/CartPageContent.d.ts.map +1 -0
- package/dist/src/ecommerce/components/cart/CartPanel.d.ts.map +1 -0
- package/dist/src/ecommerce/components/cart/CartSidebar.d.ts.map +1 -0
- package/dist/src/ecommerce/components/cart/CartSummary.d.ts.map +1 -0
- package/dist/src/ecommerce/components/cart/PromoCodeInput.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/Breadcrumbs.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/CategoryNav.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/FilterPanel.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/Price.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/ProductCard.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/ProductGallery.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/ProductGrid.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/QuantitySelector.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/QuickViewDialog.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/SearchInput.d.ts.map +1 -0
- package/dist/src/ecommerce/components/catalog/VariantSelector.d.ts.map +1 -0
- package/dist/src/ecommerce/components/chat/ShopChatPanel.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/AddressForm.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/CheckoutCancelPage.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/CheckoutForm.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/CheckoutLayout.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/CheckoutReceipt.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/CheckoutSuccessPage.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/InventoryVerificationDialog.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/OrderReview.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/PaymentStep.d.ts.map +1 -0
- package/dist/src/ecommerce/components/checkout/ShippingMethodSelector.d.ts.map +1 -0
- package/dist/src/ecommerce/components/faq/FAQItem.d.ts.map +1 -0
- package/dist/src/ecommerce/components/faq/FAQItem.test.d.ts.map +1 -0
- package/dist/src/ecommerce/components/faq/FAQList.d.ts.map +1 -0
- package/dist/src/ecommerce/components/faq/index.d.ts.map +1 -0
- package/dist/src/ecommerce/components/general/EmptyState.d.ts.map +1 -0
- package/dist/src/ecommerce/components/general/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/ecommerce/components/general/ErrorState.d.ts.map +1 -0
- package/dist/src/ecommerce/components/general/toast.d.ts.map +1 -0
- package/dist/src/ecommerce/components/orders/OrderCard.d.ts.map +1 -0
- package/dist/src/ecommerce/components/orders/OrderDetails.d.ts.map +1 -0
- package/dist/src/ecommerce/components/orders/OrderList.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/accordion.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/badge.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/button.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/card.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/dialog.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/input.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/label.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/select.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/separator.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/sheet.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/skeleton.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/tabs.d.ts.map +1 -0
- package/dist/src/ecommerce/components/ui/textarea.d.ts.map +1 -0
- package/dist/src/ecommerce/config/context.d.ts.map +1 -0
- package/dist/src/ecommerce/config/types.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/checkoutReturn.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useAIRelatedProducts.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useCartInventory.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useCatalogUrlState.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useCategories.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useCheckoutResultFromUrl.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useHoldExpiry.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useInventoryVerification.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useOrders.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/usePaymentMethodsConfig.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useProduct.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useProducts.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useShippingMethods.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useStorefrontSettings.d.ts.map +1 -0
- package/dist/src/ecommerce/hooks/useSubscriptionData.d.ts.map +1 -0
- package/dist/src/ecommerce/index.d.ts.map +1 -0
- package/dist/src/ecommerce/integrations/cedros-pay/useCedrosPayCheckoutAdapter.d.ts.map +1 -0
- package/dist/src/ecommerce/state/cart/CartProvider.d.ts.map +1 -0
- package/dist/src/ecommerce/state/cart/cartReducer.d.ts.map +1 -0
- package/dist/src/ecommerce/state/checkout/checkoutSchema.d.ts.map +1 -0
- package/dist/src/ecommerce/state/checkout/useCheckout.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/CartTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/CategoryTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/CheckoutTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/ProductTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/PurchaseHistoryTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/ReceiptTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/ShopTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/templates/SubscriptionTemplate.d.ts.map +1 -0
- package/dist/src/ecommerce/testing/adapterContract.d.ts.map +1 -0
- package/dist/src/ecommerce/types.d.ts.map +1 -0
- package/dist/src/ecommerce/utils/cartCheckoutRequirements.d.ts.map +1 -0
- package/dist/src/ecommerce/utils/cartItemMetadata.d.ts.map +1 -0
- package/dist/src/ecommerce/utils/cn.d.ts.map +1 -0
- package/dist/src/ecommerce/utils/money.d.ts.map +1 -0
- package/dist/src/ecommerce/utils/storage.d.ts.map +1 -0
- package/dist/src/hooks/useCreditsPayment.d.ts.map +1 -0
- package/dist/src/hooks/useCreditsSubscription.d.ts.map +1 -0
- package/dist/src/hooks/useCryptoSubscription.d.ts.map +1 -0
- package/dist/src/hooks/usePaymentMode.d.ts.map +1 -0
- package/dist/src/hooks/useRefundVerification.d.ts.map +1 -0
- package/dist/src/hooks/useStripeCheckout.d.ts.map +1 -0
- package/dist/src/hooks/useSubscription.d.ts.map +1 -0
- package/dist/src/hooks/useSubscriptionManagement.d.ts.map +1 -0
- package/dist/src/hooks/useX402Payment.d.ts.map +1 -0
- package/dist/src/i18n/index.d.ts.map +1 -0
- package/dist/src/i18n/useTranslation.d.ts.map +1 -0
- package/dist/src/index.d.ts +45 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/managers/CreditsManager.d.ts.map +1 -0
- package/dist/src/managers/ManagerCache.d.ts.map +1 -0
- package/dist/src/managers/RouteDiscoveryManager.d.ts +6 -0
- package/dist/src/managers/RouteDiscoveryManager.d.ts.map +1 -0
- package/dist/src/managers/StripeManager.d.ts.map +1 -0
- package/dist/src/managers/SubscriptionChangeManager.d.ts.map +1 -0
- package/dist/src/managers/SubscriptionManager.d.ts.map +1 -0
- package/dist/src/managers/WalletManager.d.ts.map +1 -0
- package/dist/src/managers/X402Manager.d.ts.map +1 -0
- package/dist/src/stripe-only.d.ts +49 -0
- package/dist/src/stripe-only.d.ts.map +1 -0
- package/dist/src/telemetry.d.ts +27 -0
- package/dist/src/telemetry.d.ts.map +1 -0
- package/dist/src/testing/__tests__/providers.test.d.ts.map +1 -0
- package/dist/src/testing/helpers.d.ts.map +1 -0
- package/dist/src/testing/index.d.ts +12 -0
- package/dist/src/testing/index.d.ts.map +1 -0
- package/dist/src/testing/mocks.d.ts.map +1 -0
- package/dist/src/testing/providers.d.ts.map +1 -0
- package/dist/src/types/componentOptions.d.ts.map +1 -0
- package/dist/src/types/errors.d.ts.map +1 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/subscription.d.ts.map +1 -0
- package/dist/src/utils/__tests__/couponHelpers.test.d.ts.map +1 -0
- package/dist/src/utils/__tests__/cspHelper.test.d.ts.map +1 -0
- package/dist/src/utils/__tests__/fetchWithTimeout.test.d.ts.map +1 -0
- package/dist/src/utils/cartHelpers.d.ts.map +1 -0
- package/dist/src/utils/circuitBreaker.d.ts.map +1 -0
- package/dist/src/utils/couponHelpers.d.ts.map +1 -0
- package/dist/src/utils/cspHelper.d.ts.map +1 -0
- package/dist/src/utils/csvHelpers.d.ts.map +1 -0
- package/dist/src/utils/csvHelpers.test.d.ts.map +1 -0
- package/dist/src/utils/dateHelpers.d.ts.map +1 -0
- package/dist/src/utils/deprecation.d.ts.map +1 -0
- package/dist/src/utils/errorHandling.d.ts.map +1 -0
- package/dist/src/utils/errorMessages.d.ts.map +1 -0
- package/dist/src/utils/errorParser.d.ts.map +1 -0
- package/dist/src/utils/eventEmitter.d.ts.map +1 -0
- package/dist/src/utils/exponentialBackoff.d.ts.map +1 -0
- package/dist/src/utils/fetchWithTimeout.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/modalStyles.d.ts.map +1 -0
- package/dist/src/utils/rateLimiter.d.ts.map +1 -0
- package/dist/src/utils/requestDeduplication.d.ts.map +1 -0
- package/dist/src/utils/securityValidation.d.ts.map +1 -0
- package/dist/src/utils/solanaCheck.d.ts.map +1 -0
- package/dist/src/utils/telemetry.d.ts.map +1 -0
- package/dist/src/utils/tokenMintValidator.d.ts.map +1 -0
- package/dist/src/utils/uuid.d.ts.map +1 -0
- package/dist/src/utils/validateConfig.d.ts.map +1 -0
- package/dist/src/utils/walletDetection.d.ts.map +1 -0
- package/dist/src/utils/walletPool.d.ts.map +1 -0
- package/dist/stripe-only.d.ts +2 -14
- package/dist/stripe-only.js +1 -1
- package/dist/stripe-only.mjs +59 -62
- package/dist/styles--eKKnfdj.mjs +2578 -0
- package/dist/styles-BWrLnaUW.js +1 -0
- package/dist/telemetry.d.ts +2 -27
- package/dist/testing/index.d.ts +2 -12
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/{walletPool-DjA7J3a9.js → walletPool-BqNfOhB0.js} +1 -1
- package/dist/{walletPool-BV_z1lEA.mjs → walletPool-DShNjCQ6.mjs} +1 -1
- package/package.json +8 -3
- package/dist/CryptoButton-N8kRfNDO.js +0 -1
- package/dist/MessagingSection-BHzf1Mhu.js +0 -1
- package/dist/SingleCategorySettings-NLBYxM0O.js +0 -3
- package/dist/admin/index.d.ts.map +0 -1
- package/dist/admin/plugin.d.ts.map +0 -1
- package/dist/admin/types.d.ts.map +0 -1
- package/dist/components/CedrosPay.d.ts.map +0 -1
- package/dist/components/CreditsButton.d.ts.map +0 -1
- package/dist/components/CreditsSubscribeButton.d.ts.map +0 -1
- package/dist/components/CryptoButton.d.ts.map +0 -1
- package/dist/components/CryptoSubscribeButton.d.ts.map +0 -1
- package/dist/components/PaymentModal.d.ts.map +0 -1
- package/dist/components/ProductPrice.d.ts.map +0 -1
- package/dist/components/PurchaseButton.d.ts.map +0 -1
- package/dist/components/StripeButton.d.ts.map +0 -1
- package/dist/components/SubscribeButton.d.ts.map +0 -1
- package/dist/components/SubscriptionManagementPanel.d.ts.map +0 -1
- package/dist/components/admin/AISettingsSection.d.ts.map +0 -1
- package/dist/components/admin/AdminAuthManager.d.ts.map +0 -1
- package/dist/components/admin/AutosaveIndicator.d.ts.map +0 -1
- package/dist/components/admin/CedrosPayAdminDashboard.d.ts.map +0 -1
- package/dist/components/admin/ConfigEditor.d.ts.map +0 -1
- package/dist/components/admin/CouponsSection.d.ts.map +0 -1
- package/dist/components/admin/Dropdown.d.ts.map +0 -1
- package/dist/components/admin/ErrorBanner.d.ts.map +0 -1
- package/dist/components/admin/FAQSection.d.ts.map +0 -1
- package/dist/components/admin/MessagingSection.d.ts.map +0 -1
- package/dist/components/admin/OverviewSection.d.ts.map +0 -1
- package/dist/components/admin/PaymentSettingsSection.d.ts.map +0 -1
- package/dist/components/admin/ProductVariationsEditor.d.ts.map +0 -1
- package/dist/components/admin/ProductsSection.d.ts.map +0 -1
- package/dist/components/admin/RefundsSection.d.ts.map +0 -1
- package/dist/components/admin/SecretArrayEditor.d.ts.map +0 -1
- package/dist/components/admin/SettingsSection.d.ts.map +0 -1
- package/dist/components/admin/SingleCategorySettings.d.ts.map +0 -1
- package/dist/components/admin/StatsBar.d.ts.map +0 -1
- package/dist/components/admin/StorefrontSection.d.ts.map +0 -1
- package/dist/components/admin/SubscriptionsSection.d.ts.map +0 -1
- package/dist/components/admin/Toggle.d.ts.map +0 -1
- package/dist/components/admin/TokenMintSelector.d.ts.map +0 -1
- package/dist/components/admin/TransactionsSection.d.ts.map +0 -1
- package/dist/components/admin/VariantInventoryGrid.d.ts.map +0 -1
- package/dist/components/admin/VariationTypeEditor.d.ts.map +0 -1
- package/dist/components/admin/configApi.d.ts.map +0 -1
- package/dist/components/admin/icons.d.ts.map +0 -1
- package/dist/components/admin/index.d.ts.map +0 -1
- package/dist/components/admin/sections-more.d.ts.map +0 -1
- package/dist/components/admin/sections.d.ts.map +0 -1
- package/dist/components/admin/types.d.ts.map +0 -1
- package/dist/components/admin/useAdminAuth.d.ts.map +0 -1
- package/dist/components/admin/useAutosave.d.ts.map +0 -1
- package/dist/components/admin/useProductVariations.d.ts.map +0 -1
- package/dist/components/subscriptionPanelStyles.d.ts.map +0 -1
- package/dist/context/CedrosContext.d.ts.map +0 -1
- package/dist/context/ThemeContext.d.ts.map +0 -1
- package/dist/context/index.d.ts.map +0 -1
- package/dist/crypto-only.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/cartCheckoutRequirements.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/cartProviderPersistence.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/cartReducer.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/cartServerMerge.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/checkoutPaymentMethods.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/checkoutReturn.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/checkoutSchema.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/inventoryHooks.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/mockAdapter.test.d.ts.map +0 -1
- package/dist/ecommerce/__tests__/storage.test.d.ts.map +0 -1
- package/dist/ecommerce/adapters/CommerceAdapter.d.ts.map +0 -1
- package/dist/ecommerce/adapters/mock/mockAdapter.d.ts.map +0 -1
- package/dist/ecommerce/adapters/paywall/paywallAdapter.d.ts.map +0 -1
- package/dist/ecommerce/adapters/paywall/paywallAdapter.test.d.ts.map +0 -1
- package/dist/ecommerce/components/cart/CartLineItem.d.ts.map +0 -1
- package/dist/ecommerce/components/cart/CartPageContent.d.ts.map +0 -1
- package/dist/ecommerce/components/cart/CartPanel.d.ts.map +0 -1
- package/dist/ecommerce/components/cart/CartSidebar.d.ts.map +0 -1
- package/dist/ecommerce/components/cart/CartSummary.d.ts.map +0 -1
- package/dist/ecommerce/components/cart/PromoCodeInput.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/Breadcrumbs.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/CategoryNav.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/FilterPanel.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/Price.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/ProductCard.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/ProductGallery.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/ProductGrid.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/QuantitySelector.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/QuickViewDialog.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/SearchInput.d.ts.map +0 -1
- package/dist/ecommerce/components/catalog/VariantSelector.d.ts.map +0 -1
- package/dist/ecommerce/components/chat/ShopChatPanel.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/AddressForm.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/CheckoutCancelPage.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/CheckoutForm.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/CheckoutLayout.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/CheckoutReceipt.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/CheckoutSuccessPage.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/InventoryVerificationDialog.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/OrderReview.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/PaymentStep.d.ts.map +0 -1
- package/dist/ecommerce/components/checkout/ShippingMethodSelector.d.ts.map +0 -1
- package/dist/ecommerce/components/faq/FAQItem.d.ts.map +0 -1
- package/dist/ecommerce/components/faq/FAQItem.test.d.ts.map +0 -1
- package/dist/ecommerce/components/faq/FAQList.d.ts.map +0 -1
- package/dist/ecommerce/components/faq/index.d.ts.map +0 -1
- package/dist/ecommerce/components/general/EmptyState.d.ts.map +0 -1
- package/dist/ecommerce/components/general/ErrorBoundary.d.ts.map +0 -1
- package/dist/ecommerce/components/general/ErrorState.d.ts.map +0 -1
- package/dist/ecommerce/components/general/toast.d.ts.map +0 -1
- package/dist/ecommerce/components/orders/OrderCard.d.ts.map +0 -1
- package/dist/ecommerce/components/orders/OrderDetails.d.ts.map +0 -1
- package/dist/ecommerce/components/orders/OrderList.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/accordion.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/badge.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/button.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/card.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/dialog.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/input.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/label.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/select.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/separator.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/sheet.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/skeleton.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/tabs.d.ts.map +0 -1
- package/dist/ecommerce/components/ui/textarea.d.ts.map +0 -1
- package/dist/ecommerce/config/context.d.ts.map +0 -1
- package/dist/ecommerce/config/types.d.ts.map +0 -1
- package/dist/ecommerce/hooks/checkoutReturn.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useAIRelatedProducts.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useCartInventory.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useCatalogUrlState.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useCategories.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useCheckoutResultFromUrl.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useHoldExpiry.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useInventoryVerification.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useOrders.d.ts.map +0 -1
- package/dist/ecommerce/hooks/usePaymentMethodsConfig.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useProduct.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useProducts.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useShippingMethods.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useStorefrontSettings.d.ts.map +0 -1
- package/dist/ecommerce/hooks/useSubscriptionData.d.ts.map +0 -1
- package/dist/ecommerce/index.d.ts.map +0 -1
- package/dist/ecommerce/integrations/cedros-pay/useCedrosPayCheckoutAdapter.d.ts.map +0 -1
- package/dist/ecommerce/state/cart/CartProvider.d.ts.map +0 -1
- package/dist/ecommerce/state/cart/cartReducer.d.ts.map +0 -1
- package/dist/ecommerce/state/checkout/checkoutSchema.d.ts.map +0 -1
- package/dist/ecommerce/state/checkout/useCheckout.d.ts.map +0 -1
- package/dist/ecommerce/templates/CartTemplate.d.ts.map +0 -1
- package/dist/ecommerce/templates/CategoryTemplate.d.ts.map +0 -1
- package/dist/ecommerce/templates/CheckoutTemplate.d.ts.map +0 -1
- package/dist/ecommerce/templates/ProductTemplate.d.ts.map +0 -1
- package/dist/ecommerce/templates/PurchaseHistoryTemplate.d.ts.map +0 -1
- package/dist/ecommerce/templates/ReceiptTemplate.d.ts.map +0 -1
- package/dist/ecommerce/templates/ShopTemplate.d.ts.map +0 -1
- package/dist/ecommerce/templates/SubscriptionTemplate.d.ts.map +0 -1
- package/dist/ecommerce/testing/adapterContract.d.ts.map +0 -1
- package/dist/ecommerce/types.d.ts.map +0 -1
- package/dist/ecommerce/utils/cartCheckoutRequirements.d.ts.map +0 -1
- package/dist/ecommerce/utils/cartItemMetadata.d.ts.map +0 -1
- package/dist/ecommerce/utils/cn.d.ts.map +0 -1
- package/dist/ecommerce/utils/money.d.ts.map +0 -1
- package/dist/ecommerce/utils/storage.d.ts.map +0 -1
- package/dist/hooks/useCreditsPayment.d.ts.map +0 -1
- package/dist/hooks/useCreditsSubscription.d.ts.map +0 -1
- package/dist/hooks/useCryptoSubscription.d.ts.map +0 -1
- package/dist/hooks/usePaymentMode.d.ts.map +0 -1
- package/dist/hooks/useRefundVerification.d.ts.map +0 -1
- package/dist/hooks/useStripeCheckout.d.ts.map +0 -1
- package/dist/hooks/useSubscription.d.ts.map +0 -1
- package/dist/hooks/useSubscriptionManagement.d.ts.map +0 -1
- package/dist/hooks/useX402Payment.d.ts.map +0 -1
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/useTranslation.d.ts.map +0 -1
- package/dist/index-B-0trqeD.js +0 -84
- package/dist/index.d.ts.map +0 -1
- package/dist/managers/CreditsManager.d.ts.map +0 -1
- package/dist/managers/ManagerCache.d.ts.map +0 -1
- package/dist/managers/RouteDiscoveryManager.d.ts +0 -75
- package/dist/managers/RouteDiscoveryManager.d.ts.map +0 -1
- package/dist/managers/StripeManager.d.ts.map +0 -1
- package/dist/managers/SubscriptionChangeManager.d.ts.map +0 -1
- package/dist/managers/SubscriptionManager.d.ts.map +0 -1
- package/dist/managers/WalletManager.d.ts.map +0 -1
- package/dist/managers/X402Manager.d.ts.map +0 -1
- package/dist/sections-CKwGmrzV.js +0 -1
- package/dist/sections-DpEdFL1B.mjs +0 -10
- package/dist/stripe-only.d.ts.map +0 -1
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/testing/__tests__/providers.test.d.ts.map +0 -1
- package/dist/testing/helpers.d.ts.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/mocks.d.ts.map +0 -1
- package/dist/testing/providers.d.ts.map +0 -1
- package/dist/types/componentOptions.d.ts.map +0 -1
- package/dist/types/errors.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/subscription.d.ts.map +0 -1
- package/dist/utils/__tests__/couponHelpers.test.d.ts.map +0 -1
- package/dist/utils/__tests__/cspHelper.test.d.ts.map +0 -1
- package/dist/utils/__tests__/fetchWithTimeout.test.d.ts.map +0 -1
- package/dist/utils/cartHelpers.d.ts.map +0 -1
- package/dist/utils/circuitBreaker.d.ts.map +0 -1
- package/dist/utils/couponHelpers.d.ts.map +0 -1
- package/dist/utils/cspHelper.d.ts.map +0 -1
- package/dist/utils/csvHelpers.d.ts.map +0 -1
- package/dist/utils/csvHelpers.test.d.ts.map +0 -1
- package/dist/utils/dateHelpers.d.ts.map +0 -1
- package/dist/utils/deprecation.d.ts.map +0 -1
- package/dist/utils/errorHandling.d.ts.map +0 -1
- package/dist/utils/errorMessages.d.ts.map +0 -1
- package/dist/utils/errorParser.d.ts.map +0 -1
- package/dist/utils/eventEmitter.d.ts.map +0 -1
- package/dist/utils/exponentialBackoff.d.ts.map +0 -1
- package/dist/utils/fetchWithTimeout.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/modalStyles.d.ts.map +0 -1
- package/dist/utils/rateLimiter.d.ts.map +0 -1
- package/dist/utils/requestDeduplication.d.ts.map +0 -1
- package/dist/utils/securityValidation.d.ts.map +0 -1
- package/dist/utils/solanaCheck.d.ts.map +0 -1
- package/dist/utils/telemetry.d.ts.map +0 -1
- package/dist/utils/tokenMintValidator.d.ts.map +0 -1
- package/dist/utils/uuid.d.ts.map +0 -1
- package/dist/utils/validateConfig.d.ts.map +0 -1
- package/dist/utils/walletDetection.d.ts.map +0 -1
- package/dist/utils/walletPool.d.ts.map +0 -1
- /package/dist/{admin → src/admin}/plugin.d.ts +0 -0
- /package/dist/{admin → src/admin}/types.d.ts +0 -0
- /package/dist/{components → src/components}/CedrosPay.d.ts +0 -0
- /package/dist/{components → src/components}/CreditsButton.d.ts +0 -0
- /package/dist/{components → src/components}/CreditsSubscribeButton.d.ts +0 -0
- /package/dist/{components → src/components}/CryptoButton.d.ts +0 -0
- /package/dist/{components → src/components}/CryptoSubscribeButton.d.ts +0 -0
- /package/dist/{components → src/components}/PaymentModal.d.ts +0 -0
- /package/dist/{components → src/components}/ProductPrice.d.ts +0 -0
- /package/dist/{components → src/components}/PurchaseButton.d.ts +0 -0
- /package/dist/{components → src/components}/StripeButton.d.ts +0 -0
- /package/dist/{components → src/components}/SubscribeButton.d.ts +0 -0
- /package/dist/{components → src/components}/SubscriptionManagementPanel.d.ts +0 -0
- /package/dist/{components → src/components}/admin/AISettingsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/AdminAuthManager.d.ts +0 -0
- /package/dist/{components → src/components}/admin/AutosaveIndicator.d.ts +0 -0
- /package/dist/{components → src/components}/admin/CedrosPayAdminDashboard.d.ts +0 -0
- /package/dist/{components → src/components}/admin/ConfigEditor.d.ts +0 -0
- /package/dist/{components → src/components}/admin/CouponsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/Dropdown.d.ts +0 -0
- /package/dist/{components → src/components}/admin/ErrorBanner.d.ts +0 -0
- /package/dist/{components → src/components}/admin/FAQSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/MessagingSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/OverviewSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/PaymentSettingsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/ProductVariationsEditor.d.ts +0 -0
- /package/dist/{components → src/components}/admin/ProductsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/RefundsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/SecretArrayEditor.d.ts +0 -0
- /package/dist/{components → src/components}/admin/SettingsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/SingleCategorySettings.d.ts +0 -0
- /package/dist/{components → src/components}/admin/StatsBar.d.ts +0 -0
- /package/dist/{components → src/components}/admin/StorefrontSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/SubscriptionsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/Toggle.d.ts +0 -0
- /package/dist/{components → src/components}/admin/TransactionsSection.d.ts +0 -0
- /package/dist/{components → src/components}/admin/VariantInventoryGrid.d.ts +0 -0
- /package/dist/{components → src/components}/admin/VariationTypeEditor.d.ts +0 -0
- /package/dist/{components → src/components}/admin/configApi.d.ts +0 -0
- /package/dist/{components → src/components}/admin/icons.d.ts +0 -0
- /package/dist/{components → src/components}/admin/sections-more.d.ts +0 -0
- /package/dist/{components → src/components}/admin/sections.d.ts +0 -0
- /package/dist/{components → src/components}/admin/types.d.ts +0 -0
- /package/dist/{components → src/components}/admin/useAutosave.d.ts +0 -0
- /package/dist/{components → src/components}/admin/useProductVariations.d.ts +0 -0
- /package/dist/{components → src/components}/subscriptionPanelStyles.d.ts +0 -0
- /package/dist/{context → src/context}/CedrosContext.d.ts +0 -0
- /package/dist/{context → src/context}/ThemeContext.d.ts +0 -0
- /package/dist/{context → src/context}/index.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/cartCheckoutRequirements.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/cartProviderPersistence.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/cartReducer.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/cartServerMerge.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/checkoutPaymentMethods.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/checkoutReturn.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/checkoutSchema.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/inventoryHooks.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/mockAdapter.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/__tests__/storage.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/adapters/CommerceAdapter.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/adapters/mock/mockAdapter.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/adapters/paywall/paywallAdapter.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/adapters/paywall/paywallAdapter.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/cart/CartLineItem.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/cart/CartPageContent.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/cart/CartPanel.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/cart/CartSidebar.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/cart/CartSummary.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/cart/PromoCodeInput.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/Breadcrumbs.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/CategoryNav.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/FilterPanel.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/Price.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/ProductCard.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/ProductGallery.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/ProductGrid.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/QuantitySelector.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/QuickViewDialog.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/SearchInput.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/catalog/VariantSelector.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/chat/ShopChatPanel.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/AddressForm.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/CheckoutCancelPage.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/CheckoutForm.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/CheckoutLayout.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/CheckoutReceipt.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/CheckoutSuccessPage.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/InventoryVerificationDialog.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/OrderReview.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/PaymentStep.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/checkout/ShippingMethodSelector.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/faq/FAQItem.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/faq/FAQItem.test.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/faq/FAQList.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/faq/index.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/general/EmptyState.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/general/ErrorBoundary.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/general/ErrorState.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/general/toast.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/orders/OrderCard.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/orders/OrderDetails.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/orders/OrderList.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/accordion.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/badge.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/button.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/card.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/dialog.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/input.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/label.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/select.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/separator.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/sheet.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/skeleton.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/tabs.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/components/ui/textarea.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/config/context.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/config/types.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/checkoutReturn.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useAIRelatedProducts.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useCartInventory.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useCatalogUrlState.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useCategories.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useCheckoutResultFromUrl.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useHoldExpiry.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useInventoryVerification.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useOrders.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/usePaymentMethodsConfig.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useProduct.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useProducts.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useShippingMethods.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useStorefrontSettings.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/hooks/useSubscriptionData.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/index.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/integrations/cedros-pay/useCedrosPayCheckoutAdapter.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/state/cart/CartProvider.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/state/cart/cartReducer.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/state/checkout/checkoutSchema.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/state/checkout/useCheckout.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/CartTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/CategoryTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/CheckoutTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/ProductTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/PurchaseHistoryTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/ReceiptTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/ShopTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/templates/SubscriptionTemplate.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/testing/adapterContract.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/types.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/utils/cartCheckoutRequirements.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/utils/cartItemMetadata.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/utils/cn.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/utils/money.d.ts +0 -0
- /package/dist/{ecommerce → src/ecommerce}/utils/storage.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useCreditsPayment.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useCreditsSubscription.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useCryptoSubscription.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/usePaymentMode.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useRefundVerification.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useStripeCheckout.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useSubscription.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useSubscriptionManagement.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useX402Payment.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/index.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/useTranslation.d.ts +0 -0
- /package/dist/{managers → src/managers}/CreditsManager.d.ts +0 -0
- /package/dist/{managers → src/managers}/ManagerCache.d.ts +0 -0
- /package/dist/{managers → src/managers}/StripeManager.d.ts +0 -0
- /package/dist/{managers → src/managers}/SubscriptionChangeManager.d.ts +0 -0
- /package/dist/{managers → src/managers}/SubscriptionManager.d.ts +0 -0
- /package/dist/{managers → src/managers}/WalletManager.d.ts +0 -0
- /package/dist/{managers → src/managers}/X402Manager.d.ts +0 -0
- /package/dist/{testing → src/testing}/__tests__/providers.test.d.ts +0 -0
- /package/dist/{testing → src/testing}/helpers.d.ts +0 -0
- /package/dist/{testing → src/testing}/mocks.d.ts +0 -0
- /package/dist/{testing → src/testing}/providers.d.ts +0 -0
- /package/dist/{types → src/types}/componentOptions.d.ts +0 -0
- /package/dist/{types → src/types}/errors.d.ts +0 -0
- /package/dist/{types → src/types}/index.d.ts +0 -0
- /package/dist/{types → src/types}/subscription.d.ts +0 -0
- /package/dist/{utils → src/utils}/__tests__/couponHelpers.test.d.ts +0 -0
- /package/dist/{utils → src/utils}/__tests__/cspHelper.test.d.ts +0 -0
- /package/dist/{utils → src/utils}/__tests__/fetchWithTimeout.test.d.ts +0 -0
- /package/dist/{utils → src/utils}/cartHelpers.d.ts +0 -0
- /package/dist/{utils → src/utils}/circuitBreaker.d.ts +0 -0
- /package/dist/{utils → src/utils}/couponHelpers.d.ts +0 -0
- /package/dist/{utils → src/utils}/cspHelper.d.ts +0 -0
- /package/dist/{utils → src/utils}/csvHelpers.d.ts +0 -0
- /package/dist/{utils → src/utils}/csvHelpers.test.d.ts +0 -0
- /package/dist/{utils → src/utils}/dateHelpers.d.ts +0 -0
- /package/dist/{utils → src/utils}/deprecation.d.ts +0 -0
- /package/dist/{utils → src/utils}/errorHandling.d.ts +0 -0
- /package/dist/{utils → src/utils}/errorMessages.d.ts +0 -0
- /package/dist/{utils → src/utils}/errorParser.d.ts +0 -0
- /package/dist/{utils → src/utils}/eventEmitter.d.ts +0 -0
- /package/dist/{utils → src/utils}/exponentialBackoff.d.ts +0 -0
- /package/dist/{utils → src/utils}/fetchWithTimeout.d.ts +0 -0
- /package/dist/{utils → src/utils}/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/logger.d.ts +0 -0
- /package/dist/{utils → src/utils}/modalStyles.d.ts +0 -0
- /package/dist/{utils → src/utils}/rateLimiter.d.ts +0 -0
- /package/dist/{utils → src/utils}/requestDeduplication.d.ts +0 -0
- /package/dist/{utils → src/utils}/securityValidation.d.ts +0 -0
- /package/dist/{utils → src/utils}/solanaCheck.d.ts +0 -0
- /package/dist/{utils → src/utils}/telemetry.d.ts +0 -0
- /package/dist/{utils → src/utils}/tokenMintValidator.d.ts +0 -0
- /package/dist/{utils → src/utils}/uuid.d.ts +0 -0
- /package/dist/{utils → src/utils}/validateConfig.d.ts +0 -0
- /package/dist/{utils → src/utils}/walletDetection.d.ts +0 -0
- /package/dist/{utils → src/utils}/walletPool.d.ts +0 -0
package/dist/crypto-only.mjs
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { u as H, m as
|
|
4
|
-
import { f as
|
|
5
|
-
import { C as Jt,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { O as ke, B as ve, D as fe, y as Ie, A as me, w as Be, x as ye, z as V, V as _e, W as We } from "./styles--eKKnfdj.mjs";
|
|
2
|
+
import { v as Ue, t as Ye, C as Ve, a as He, f as Je, d as Xe, b as Ze, c as et, P as tt, R as rt, I as nt, S as at, e as st, g as ot, n as it, M as ct, J as lt, r as ut, m as dt, o as pt, q as ft, L as mt, N as yt, F as gt, E as bt, K as St, H as wt, p as ht, s as Ct, h as xt, k as Pt, Q as Et, i as Rt, u as Tt, j as kt, l as vt, G as It } from "./styles--eKKnfdj.mjs";
|
|
3
|
+
import { u as H, m as z, a as qe, i as y } from "./CedrosContext-BE6P5PQ0.mjs";
|
|
4
|
+
import { f as _t, C as Wt, e as qt, d as Mt, E as Lt, K as At, L as Dt, h as Ot, R as Nt, g as zt, b as Kt, j as Qt, c as $t, r as Ft, v as Gt, n as jt } from "./CedrosContext-BE6P5PQ0.mjs";
|
|
5
|
+
import { d as Yt, a as Vt, b as Ht, C as Jt, c as Xt, i as Zt } from "./index-bqhsxBTY.mjs";
|
|
6
|
+
import { C as tr, u as rr } from "./CryptoButton-CksMkZjL.mjs";
|
|
7
|
+
import { jsxs as K, jsx as x } from "react/jsx-runtime";
|
|
8
|
+
import { useState as I, useRef as N, useCallback as h, useMemo as G, useEffect as Q } from "react";
|
|
8
9
|
import { useWallet as J } from "@solana/wallet-adapter-react";
|
|
9
10
|
import { WalletReadyState as ge } from "@solana/wallet-adapter-base";
|
|
10
11
|
import { WalletIcon as Me } from "@solana/wallet-adapter-react-ui";
|
|
11
|
-
import { WalletPool as
|
|
12
|
+
import { WalletPool as ar, createWalletPool as sr } from "./walletPool-DShNjCQ6.mjs";
|
|
12
13
|
function Le() {
|
|
13
|
-
const { subscriptionManager: r, x402Manager: c, walletManager: f } = H(), { publicKey: i, signTransaction: R } = J(), [
|
|
14
|
+
const { subscriptionManager: r, x402Manager: c, walletManager: f } = H(), { publicKey: i, signTransaction: R } = J(), [S, p] = I({
|
|
14
15
|
status: "idle",
|
|
15
16
|
error: null,
|
|
16
17
|
sessionId: null,
|
|
17
18
|
subscriptionStatus: null,
|
|
18
19
|
expiresAt: null
|
|
19
|
-
}), [
|
|
20
|
+
}), [T, P] = I(null), E = N(!1), C = h(() => {
|
|
20
21
|
if (!i) {
|
|
21
22
|
const s = "Wallet not connected";
|
|
22
23
|
return p((t) => ({ ...t, status: "error", error: s })), { valid: !1, error: s };
|
|
@@ -26,7 +27,7 @@ function Le() {
|
|
|
26
27
|
return p((t) => ({ ...t, status: "error", error: s })), { valid: !1, error: s };
|
|
27
28
|
}
|
|
28
29
|
return { valid: !0 };
|
|
29
|
-
}, [i, R]),
|
|
30
|
+
}, [i, R]), k = h(
|
|
30
31
|
async (s) => {
|
|
31
32
|
if (!i)
|
|
32
33
|
return p((t) => ({
|
|
@@ -51,7 +52,7 @@ function Le() {
|
|
|
51
52
|
expiresAt: t.expiresAt || t.currentPeriodEnd || null
|
|
52
53
|
})), t;
|
|
53
54
|
} catch (t) {
|
|
54
|
-
const n =
|
|
55
|
+
const n = z(t, "Failed to check subscription status");
|
|
55
56
|
return p((l) => ({
|
|
56
57
|
...l,
|
|
57
58
|
status: "error",
|
|
@@ -60,7 +61,7 @@ function Le() {
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
[i, r]
|
|
63
|
-
),
|
|
64
|
+
), W = h(
|
|
64
65
|
async (s, t, n) => {
|
|
65
66
|
p((l) => ({
|
|
66
67
|
...l,
|
|
@@ -78,7 +79,7 @@ function Le() {
|
|
|
78
79
|
status: "idle"
|
|
79
80
|
})), l;
|
|
80
81
|
} catch (l) {
|
|
81
|
-
const a =
|
|
82
|
+
const a = z(l, "Failed to get subscription quote");
|
|
82
83
|
return p((o) => ({
|
|
83
84
|
...o,
|
|
84
85
|
status: "error",
|
|
@@ -112,15 +113,15 @@ function Le() {
|
|
|
112
113
|
const b = !!o.extra?.feePayer;
|
|
113
114
|
let m;
|
|
114
115
|
if (b) {
|
|
115
|
-
const { transaction:
|
|
116
|
+
const { transaction: w, blockhash: q } = await c.buildGaslessTransaction({
|
|
116
117
|
resourceId: s,
|
|
117
118
|
userWallet: i.toString(),
|
|
118
119
|
feePayer: o.extra.feePayer,
|
|
119
120
|
couponCode: n?.couponCode
|
|
120
|
-
}), M = f.deserializeTransaction(
|
|
121
|
+
}), M = f.deserializeTransaction(w), L = await f.partiallySignTransaction({
|
|
121
122
|
transaction: M,
|
|
122
123
|
signTransaction: R,
|
|
123
|
-
blockhash:
|
|
124
|
+
blockhash: q
|
|
124
125
|
});
|
|
125
126
|
m = await c.submitGaslessTransaction({
|
|
126
127
|
resource: s,
|
|
@@ -130,15 +131,15 @@ function Le() {
|
|
|
130
131
|
requirement: o
|
|
131
132
|
});
|
|
132
133
|
} else {
|
|
133
|
-
const
|
|
134
|
+
const w = await f.buildTransaction({
|
|
134
135
|
requirement: o,
|
|
135
136
|
payerPublicKey: i
|
|
136
|
-
}),
|
|
137
|
-
transaction:
|
|
137
|
+
}), q = await f.signTransaction({
|
|
138
|
+
transaction: w,
|
|
138
139
|
signTransaction: R
|
|
139
140
|
}), M = f.buildPaymentPayload({
|
|
140
141
|
requirement: o,
|
|
141
|
-
signedTx:
|
|
142
|
+
signedTx: q,
|
|
142
143
|
payerPublicKey: i
|
|
143
144
|
});
|
|
144
145
|
m = await c.submitPayment({
|
|
@@ -149,7 +150,7 @@ function Le() {
|
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
if (m.success) {
|
|
152
|
-
const
|
|
153
|
+
const w = await r.checkSubscriptionStatus({
|
|
153
154
|
resource: s,
|
|
154
155
|
userId: i.toString()
|
|
155
156
|
});
|
|
@@ -157,18 +158,18 @@ function Le() {
|
|
|
157
158
|
status: "success",
|
|
158
159
|
error: null,
|
|
159
160
|
sessionId: m.transactionId || null,
|
|
160
|
-
subscriptionStatus:
|
|
161
|
-
expiresAt:
|
|
161
|
+
subscriptionStatus: w.status,
|
|
162
|
+
expiresAt: w.expiresAt || w.currentPeriodEnd || null
|
|
162
163
|
});
|
|
163
164
|
} else
|
|
164
|
-
p((
|
|
165
|
-
...
|
|
165
|
+
p((w) => ({
|
|
166
|
+
...w,
|
|
166
167
|
status: "error",
|
|
167
168
|
error: m.error || "Subscription payment failed"
|
|
168
169
|
}));
|
|
169
170
|
return m;
|
|
170
171
|
} catch (a) {
|
|
171
|
-
const o =
|
|
172
|
+
const o = z(a, "Subscription payment failed");
|
|
172
173
|
return p((b) => ({
|
|
173
174
|
...b,
|
|
174
175
|
status: "error",
|
|
@@ -186,7 +187,7 @@ function Le() {
|
|
|
186
187
|
i,
|
|
187
188
|
R
|
|
188
189
|
]
|
|
189
|
-
),
|
|
190
|
+
), B = h(() => {
|
|
190
191
|
p({
|
|
191
192
|
status: "idle",
|
|
192
193
|
error: null,
|
|
@@ -196,12 +197,12 @@ function Le() {
|
|
|
196
197
|
}), P(null);
|
|
197
198
|
}, []);
|
|
198
199
|
return {
|
|
199
|
-
...
|
|
200
|
-
quote:
|
|
201
|
-
checkStatus:
|
|
202
|
-
requestQuote:
|
|
200
|
+
...S,
|
|
201
|
+
quote: T,
|
|
202
|
+
checkStatus: k,
|
|
203
|
+
requestQuote: W,
|
|
203
204
|
processPayment: g,
|
|
204
|
-
reset:
|
|
205
|
+
reset: B
|
|
205
206
|
};
|
|
206
207
|
}
|
|
207
208
|
function $e({
|
|
@@ -210,18 +211,18 @@ function $e({
|
|
|
210
211
|
intervalDays: f,
|
|
211
212
|
couponCode: i,
|
|
212
213
|
label: R,
|
|
213
|
-
disabled:
|
|
214
|
+
disabled: S = !1,
|
|
214
215
|
onAttempt: p,
|
|
215
|
-
onSuccess:
|
|
216
|
+
onSuccess: T,
|
|
216
217
|
onError: P,
|
|
217
218
|
className: E = "",
|
|
218
219
|
testPageUrl: C,
|
|
219
|
-
hideMessages:
|
|
220
|
-
autoCheckStatus:
|
|
220
|
+
hideMessages: k = !1,
|
|
221
|
+
autoCheckStatus: W = !0
|
|
221
222
|
}) {
|
|
222
223
|
const {
|
|
223
224
|
connected: g,
|
|
224
|
-
connecting:
|
|
225
|
+
connecting: B,
|
|
225
226
|
connect: s,
|
|
226
227
|
disconnect: t,
|
|
227
228
|
select: n,
|
|
@@ -231,17 +232,17 @@ function $e({
|
|
|
231
232
|
} = J(), {
|
|
232
233
|
status: b,
|
|
233
234
|
error: m,
|
|
234
|
-
subscriptionStatus:
|
|
235
|
-
expiresAt:
|
|
235
|
+
subscriptionStatus: w,
|
|
236
|
+
expiresAt: q,
|
|
236
237
|
checkStatus: M,
|
|
237
238
|
processPayment: L
|
|
238
|
-
} = Le(), u =
|
|
239
|
-
Z.current =
|
|
240
|
-
const
|
|
239
|
+
} = Le(), u = qe(), { solanaError: _ } = H(), { t: v, translations: X } = ke(), be = R || v("ui.subscribe_with_crypto"), Z = N(T), ee = N(P), te = N(L), re = N(M);
|
|
240
|
+
Z.current = T, ee.current = P, te.current = L, re.current = M;
|
|
241
|
+
const Se = m && typeof m != "string" ? m?.code ?? null : null, we = _ && typeof _ != "string" ? _?.code ?? null : null, ne = (e) => {
|
|
241
242
|
if (!e || !X) return "";
|
|
242
243
|
const d = X.errors[e];
|
|
243
244
|
return d ? d.action ? `${d.message} ${d.action}` : d.message : "";
|
|
244
|
-
}, ae = m ? typeof m == "string" ? m : ne(
|
|
245
|
+
}, ae = m ? typeof m == "string" ? m : ne(Se) : null, se = _ ? typeof _ == "string" ? _ : ne(we) : null, he = G(
|
|
245
246
|
() => l.map((e) => `${e.adapter.name}-${e.readyState}`).join(","),
|
|
246
247
|
[l]
|
|
247
248
|
), j = G(
|
|
@@ -252,36 +253,36 @@ function $e({
|
|
|
252
253
|
[he]
|
|
253
254
|
);
|
|
254
255
|
Q(() => {
|
|
255
|
-
|
|
256
|
-
}, [
|
|
257
|
-
b === "success" &&
|
|
258
|
-
}, [b,
|
|
256
|
+
W && g && o && (y().debug("[CryptoSubscribeButton] Auto-checking subscription status"), re.current(r));
|
|
257
|
+
}, [W, g, o, r]), Q(() => {
|
|
258
|
+
b === "success" && w === "active" && (ve("crypto", "subscription-active", r), Z.current?.("subscription-active"));
|
|
259
|
+
}, [b, w, r]), Q(() => {
|
|
259
260
|
b === "error" && m && (fe("crypto", m, r), ee.current?.(m));
|
|
260
261
|
}, [b, m, r]);
|
|
261
|
-
const oe = typeof window < "u" && window.top !== window.self, [ie, A] =
|
|
262
|
+
const oe = typeof window < "u" && window.top !== window.self, [ie, A] = I(!1), [ce, U] = I(!1), [le, D] = I(!1), O = _;
|
|
262
263
|
Q(() => {
|
|
263
264
|
let e = !1;
|
|
264
265
|
return e || (async () => {
|
|
265
|
-
if (ce && a && !g && !
|
|
266
|
+
if (ce && a && !g && !B) {
|
|
266
267
|
y().debug(
|
|
267
268
|
"[CryptoSubscribeButton] Wallet detected, attempting auto-connect:",
|
|
268
269
|
a.adapter.name
|
|
269
270
|
), U(!1), ye(a.adapter.name);
|
|
270
271
|
try {
|
|
271
272
|
await s(), e || y().debug("[CryptoSubscribeButton] Auto-connect successful");
|
|
272
|
-
} catch (
|
|
273
|
+
} catch (Y) {
|
|
273
274
|
if (!e) {
|
|
274
|
-
y().error("[CryptoSubscribeButton] Auto-connect failed:",
|
|
275
|
-
const
|
|
276
|
-
|
|
275
|
+
y().error("[CryptoSubscribeButton] Auto-connect failed:", Y);
|
|
276
|
+
const Te = Y instanceof Error ? Y.message : "Failed to connect wallet";
|
|
277
|
+
V(Te, a.adapter.name), D(!1);
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
280
|
}
|
|
280
281
|
})(), () => {
|
|
281
282
|
e = !0;
|
|
282
283
|
};
|
|
283
|
-
}, [a, ce, g,
|
|
284
|
-
g && le && o && a && (
|
|
284
|
+
}, [a, ce, g, B, s]), Q(() => {
|
|
285
|
+
g && le && o && a && (Ie(a.adapter.name, o.toString()), y().debug("[CryptoSubscribeButton] Processing pending subscription payment"), D(!1), A(!1), me("crypto", r), te.current(r, c, { couponCode: i, intervalDays: f }));
|
|
285
286
|
}, [g, le, o, a, r, c, i, f]);
|
|
286
287
|
const ue = h(async () => {
|
|
287
288
|
if (y().debug("[CryptoSubscribeButton] executeSubscriptionFlow called", {
|
|
@@ -289,8 +290,8 @@ function $e({
|
|
|
289
290
|
wallet: a?.adapter.name,
|
|
290
291
|
resource: r,
|
|
291
292
|
interval: c
|
|
292
|
-
}),
|
|
293
|
-
y().error("[CryptoSubscribeButton] Solana dependencies missing:",
|
|
293
|
+
}), Be("crypto", r), p && p("crypto"), O) {
|
|
294
|
+
y().error("[CryptoSubscribeButton] Solana dependencies missing:", O), fe("crypto", O, r), P && P(O);
|
|
294
295
|
return;
|
|
295
296
|
}
|
|
296
297
|
if (oe) {
|
|
@@ -307,7 +308,7 @@ function $e({
|
|
|
307
308
|
if (g)
|
|
308
309
|
me("crypto", r), await L(r, c, { couponCode: i, intervalDays: f });
|
|
309
310
|
else {
|
|
310
|
-
|
|
311
|
+
D(!0);
|
|
311
312
|
try {
|
|
312
313
|
if (a)
|
|
313
314
|
y().debug(
|
|
@@ -316,16 +317,16 @@ function $e({
|
|
|
316
317
|
), ye(a.adapter.name), await s();
|
|
317
318
|
else {
|
|
318
319
|
if (y().debug("[CryptoSubscribeButton] No wallet selected, showing selector"), j.length === 0) {
|
|
319
|
-
|
|
320
|
+
D(!1);
|
|
320
321
|
const e = "No wallets available";
|
|
321
|
-
throw
|
|
322
|
+
throw V(e), new Error(e);
|
|
322
323
|
}
|
|
323
324
|
A(!0);
|
|
324
325
|
}
|
|
325
326
|
} catch (e) {
|
|
326
|
-
|
|
327
|
+
D(!1);
|
|
327
328
|
const d = e instanceof Error ? e.message : "Failed to connect wallet";
|
|
328
|
-
y().error("[CryptoSubscribeButton] Connection error:", d),
|
|
329
|
+
y().error("[CryptoSubscribeButton] Connection error:", d), V(d, a?.adapter.name);
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
}, [
|
|
@@ -340,21 +341,21 @@ function $e({
|
|
|
340
341
|
j,
|
|
341
342
|
s,
|
|
342
343
|
L,
|
|
343
|
-
|
|
344
|
+
O,
|
|
344
345
|
p,
|
|
345
346
|
P
|
|
346
347
|
]), de = G(() => `crypto-subscribe-${r}-${c}`, [r, c]), Ce = G(
|
|
347
|
-
() =>
|
|
348
|
+
() => _e(de, ue, {
|
|
348
349
|
cooldownMs: 200,
|
|
349
350
|
deduplicationWindowMs: 0
|
|
350
351
|
}),
|
|
351
352
|
[de, ue]
|
|
352
|
-
), pe = b === "loading" || b === "checking", $ =
|
|
353
|
+
), pe = b === "loading" || b === "checking", $ = w === "active" || w === "trialing", xe = S || pe || B || !!O || $;
|
|
353
354
|
let F = be;
|
|
354
355
|
if (pe)
|
|
355
356
|
F = v("ui.processing");
|
|
356
|
-
else if ($ &&
|
|
357
|
-
const e = new Date(
|
|
357
|
+
else if ($ && q) {
|
|
358
|
+
const e = new Date(q).toLocaleDateString();
|
|
358
359
|
F = `${v("ui.subscribed_until")} ${e}`;
|
|
359
360
|
} else $ && (F = v("ui.subscribed"));
|
|
360
361
|
const Pe = h(async () => {
|
|
@@ -370,7 +371,7 @@ function $e({
|
|
|
370
371
|
[n]
|
|
371
372
|
), Re = h(async () => {
|
|
372
373
|
try {
|
|
373
|
-
if (await t(),
|
|
374
|
+
if (await t(), D(!1), typeof window < "u" && window.localStorage)
|
|
374
375
|
try {
|
|
375
376
|
window.localStorage.removeItem("walletName");
|
|
376
377
|
} catch (e) {
|
|
@@ -380,7 +381,7 @@ function $e({
|
|
|
380
381
|
y().error("Failed to disconnect wallet:", e);
|
|
381
382
|
}
|
|
382
383
|
}, [t]);
|
|
383
|
-
return /* @__PURE__ */
|
|
384
|
+
return /* @__PURE__ */ K(
|
|
384
385
|
"div",
|
|
385
386
|
{
|
|
386
387
|
className: u.unstyled ? E : `${u.className} cedros-theme__crypto-button ${E || ""}`,
|
|
@@ -396,7 +397,7 @@ function $e({
|
|
|
396
397
|
children: F
|
|
397
398
|
}
|
|
398
399
|
),
|
|
399
|
-
ie && !
|
|
400
|
+
ie && !k && /* @__PURE__ */ x(
|
|
400
401
|
"div",
|
|
401
402
|
{
|
|
402
403
|
className: "cedros-modal-overlay",
|
|
@@ -414,7 +415,7 @@ function $e({
|
|
|
414
415
|
padding: "1rem"
|
|
415
416
|
},
|
|
416
417
|
onClick: () => A(!1),
|
|
417
|
-
children: /* @__PURE__ */
|
|
418
|
+
children: /* @__PURE__ */ K(
|
|
418
419
|
"div",
|
|
419
420
|
{
|
|
420
421
|
className: "cedros-modal-content",
|
|
@@ -429,7 +430,7 @@ function $e({
|
|
|
429
430
|
},
|
|
430
431
|
onClick: (e) => e.stopPropagation(),
|
|
431
432
|
children: [
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ K(
|
|
433
434
|
"div",
|
|
434
435
|
{
|
|
435
436
|
style: {
|
|
@@ -455,7 +456,7 @@ function $e({
|
|
|
455
456
|
"button",
|
|
456
457
|
{
|
|
457
458
|
onClick: () => A(!1),
|
|
458
|
-
style:
|
|
459
|
+
style: We(u.tokens.surfaceText),
|
|
459
460
|
"aria-label": "Close modal",
|
|
460
461
|
type: "button",
|
|
461
462
|
children: "×"
|
|
@@ -464,7 +465,7 @@ function $e({
|
|
|
464
465
|
]
|
|
465
466
|
}
|
|
466
467
|
),
|
|
467
|
-
/* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: j.map((e) => /* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ x("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: j.map((e) => /* @__PURE__ */ K(
|
|
468
469
|
"button",
|
|
469
470
|
{
|
|
470
471
|
onClick: () => Ee(e.adapter.name),
|
|
@@ -502,7 +503,7 @@ function $e({
|
|
|
502
503
|
)
|
|
503
504
|
}
|
|
504
505
|
),
|
|
505
|
-
g && !
|
|
506
|
+
g && !k && !ie && /* @__PURE__ */ K(
|
|
506
507
|
"div",
|
|
507
508
|
{
|
|
508
509
|
style: {
|
|
@@ -551,29 +552,29 @@ function $e({
|
|
|
551
552
|
]
|
|
552
553
|
}
|
|
553
554
|
),
|
|
554
|
-
!
|
|
555
|
-
!
|
|
556
|
-
!
|
|
555
|
+
!k && se && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__error", children: se }),
|
|
556
|
+
!k && ae && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__error", children: ae }),
|
|
557
|
+
!k && $ && /* @__PURE__ */ x("div", { className: u.unstyled ? "" : "cedros-theme__success", children: v("ui.subscription_active") })
|
|
557
558
|
]
|
|
558
559
|
}
|
|
559
560
|
);
|
|
560
561
|
}
|
|
561
562
|
function Fe() {
|
|
562
|
-
const { x402Manager: r, walletManager: c } = H(), { publicKey: f, signTransaction: i } = J(), [R,
|
|
563
|
+
const { x402Manager: r, walletManager: c } = H(), { publicKey: f, signTransaction: i } = J(), [R, S] = I({
|
|
563
564
|
status: "idle",
|
|
564
565
|
error: null,
|
|
565
566
|
transactionId: null
|
|
566
|
-
}), [p,
|
|
567
|
+
}), [p, T] = I(null), [P, E] = I(null), C = N(!1), k = h(
|
|
567
568
|
async (s) => {
|
|
568
569
|
try {
|
|
569
|
-
|
|
570
|
+
S((n) => ({ ...n, status: "loading" }));
|
|
570
571
|
const t = await r.requestQuote({ resource: s });
|
|
571
572
|
if (!r.validateRequirement(t))
|
|
572
573
|
throw new Error("Invalid refund requirement received from server");
|
|
573
|
-
return
|
|
574
|
+
return T(t), S((n) => ({ ...n, status: "idle" })), t;
|
|
574
575
|
} catch (t) {
|
|
575
|
-
const n =
|
|
576
|
-
throw
|
|
576
|
+
const n = z(t, "Failed to fetch refund requirement");
|
|
577
|
+
throw S({
|
|
577
578
|
status: "error",
|
|
578
579
|
error: n,
|
|
579
580
|
transactionId: null
|
|
@@ -581,7 +582,7 @@ function Fe() {
|
|
|
581
582
|
}
|
|
582
583
|
},
|
|
583
584
|
[r]
|
|
584
|
-
),
|
|
585
|
+
), W = h(
|
|
585
586
|
async (s, t) => {
|
|
586
587
|
if (C.current)
|
|
587
588
|
throw new Error("Refund already in progress");
|
|
@@ -589,7 +590,7 @@ function Fe() {
|
|
|
589
590
|
throw new Error("Wallet not connected");
|
|
590
591
|
C.current = !0;
|
|
591
592
|
try {
|
|
592
|
-
|
|
593
|
+
S({
|
|
593
594
|
status: "loading",
|
|
594
595
|
error: null,
|
|
595
596
|
transactionId: null
|
|
@@ -597,7 +598,7 @@ function Fe() {
|
|
|
597
598
|
const n = await r.requestQuote({ resource: s, couponCode: t });
|
|
598
599
|
if (!r.validateRequirement(n))
|
|
599
600
|
throw new Error("Invalid refund requirement received");
|
|
600
|
-
|
|
601
|
+
T(n);
|
|
601
602
|
const l = await c.buildTransaction({
|
|
602
603
|
requirement: n,
|
|
603
604
|
payerPublicKey: f
|
|
@@ -616,14 +617,14 @@ function Fe() {
|
|
|
616
617
|
// no metadata for refunds
|
|
617
618
|
resourceType: "refund"
|
|
618
619
|
});
|
|
619
|
-
return b.settlement && E(b.settlement),
|
|
620
|
+
return b.settlement && E(b.settlement), S({
|
|
620
621
|
status: "success",
|
|
621
622
|
error: null,
|
|
622
623
|
transactionId: b.transactionId || a.signature
|
|
623
624
|
}), b;
|
|
624
625
|
} catch (n) {
|
|
625
|
-
const l =
|
|
626
|
-
throw
|
|
626
|
+
const l = z(n, "Refund payment failed");
|
|
627
|
+
throw S({
|
|
627
628
|
status: "error",
|
|
628
629
|
error: l,
|
|
629
630
|
transactionId: null
|
|
@@ -641,7 +642,7 @@ function Fe() {
|
|
|
641
642
|
throw new Error("Wallet not connected");
|
|
642
643
|
C.current = !0;
|
|
643
644
|
try {
|
|
644
|
-
|
|
645
|
+
S({
|
|
645
646
|
status: "loading",
|
|
646
647
|
error: null,
|
|
647
648
|
transactionId: null
|
|
@@ -649,7 +650,7 @@ function Fe() {
|
|
|
649
650
|
const t = await r.requestQuote({ resource: s });
|
|
650
651
|
if (!r.validateRequirement(t))
|
|
651
652
|
throw new Error("Invalid refund requirement received");
|
|
652
|
-
|
|
653
|
+
T(t);
|
|
653
654
|
const { transaction: n } = await r.buildGaslessTransaction({
|
|
654
655
|
resourceId: s,
|
|
655
656
|
userWallet: f.toString(),
|
|
@@ -667,14 +668,14 @@ function Fe() {
|
|
|
667
668
|
resourceType: "refund",
|
|
668
669
|
requirement: t
|
|
669
670
|
});
|
|
670
|
-
return o.settlement && E(o.settlement),
|
|
671
|
+
return o.settlement && E(o.settlement), S({
|
|
671
672
|
status: "success",
|
|
672
673
|
error: null,
|
|
673
674
|
transactionId: o.transactionId || "gasless-refund-tx"
|
|
674
675
|
}), o;
|
|
675
676
|
} catch (t) {
|
|
676
|
-
const n =
|
|
677
|
-
throw
|
|
677
|
+
const n = z(t, "Gasless refund payment failed");
|
|
678
|
+
throw S({
|
|
678
679
|
status: "error",
|
|
679
680
|
error: n,
|
|
680
681
|
transactionId: null
|
|
@@ -684,96 +685,99 @@ function Fe() {
|
|
|
684
685
|
}
|
|
685
686
|
},
|
|
686
687
|
[f, i, r, c]
|
|
687
|
-
),
|
|
688
|
-
|
|
688
|
+
), B = h(() => {
|
|
689
|
+
S({
|
|
689
690
|
status: "idle",
|
|
690
691
|
error: null,
|
|
691
692
|
transactionId: null
|
|
692
|
-
}),
|
|
693
|
+
}), T(null), E(null);
|
|
693
694
|
}, []);
|
|
694
695
|
return {
|
|
695
696
|
state: R,
|
|
696
697
|
requirement: p,
|
|
697
698
|
settlement: P,
|
|
698
|
-
fetchRefundQuote:
|
|
699
|
-
processRefund:
|
|
699
|
+
fetchRefundQuote: k,
|
|
700
|
+
processRefund: W,
|
|
700
701
|
processGaslessRefund: g,
|
|
701
|
-
reset:
|
|
702
|
+
reset: B
|
|
702
703
|
};
|
|
703
704
|
}
|
|
704
705
|
export {
|
|
705
706
|
Ue as CEDROS_EVENTS,
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
707
|
+
Yt as CEDROS_PAY_GROUPS,
|
|
708
|
+
Vt as CEDROS_PAY_SECTIONS,
|
|
709
|
+
Ht as CEDROS_PAY_SECTION_IDS,
|
|
710
|
+
_t as CIRCUIT_BREAKER_PRESETS,
|
|
711
|
+
Ye as CSP_PRESETS,
|
|
712
|
+
Ve as CedrosPay,
|
|
713
|
+
Jt as CedrosPayAdminDashboard,
|
|
714
|
+
Wt as CedrosProvider,
|
|
715
|
+
qt as CircuitBreakerOpenError,
|
|
716
|
+
Mt as CircuitState,
|
|
717
|
+
He as CreditsButton,
|
|
718
|
+
Je as CreditsSubscribeButton,
|
|
719
|
+
tr as CryptoButton,
|
|
716
720
|
$e as CryptoSubscribeButton,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
721
|
+
Lt as ERROR_CATEGORIES,
|
|
722
|
+
At as KNOWN_STABLECOINS,
|
|
723
|
+
Dt as LogLevel,
|
|
720
724
|
Ot as Logger,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
725
|
+
Xe as PaymentMethodBadge,
|
|
726
|
+
Ze as PaymentModal,
|
|
727
|
+
et as ProductPrice,
|
|
728
|
+
tt as PurchaseButton,
|
|
729
|
+
Nt as RATE_LIMITER_PRESETS,
|
|
730
|
+
zt as RETRY_PRESETS,
|
|
731
|
+
rt as RPC_PROVIDERS,
|
|
732
|
+
nt as SECURITY_RECOMMENDATIONS,
|
|
733
|
+
at as StripeButton,
|
|
734
|
+
st as SubscribeButton,
|
|
735
|
+
ot as SubscriptionManagementPanel,
|
|
736
|
+
ar as WalletPool,
|
|
737
|
+
it as calculateDiscountPercentage,
|
|
738
|
+
Xt as cedrosPayPlugin,
|
|
739
|
+
Kt as createCircuitBreaker,
|
|
740
|
+
Qt as createLogger,
|
|
741
|
+
$t as createRateLimiter,
|
|
742
|
+
ct as createTranslator,
|
|
743
|
+
sr as createWalletPool,
|
|
744
|
+
lt as detectLocale,
|
|
745
|
+
Zt as ecommerce,
|
|
742
746
|
fe as emitPaymentError,
|
|
743
747
|
me as emitPaymentProcessing,
|
|
744
|
-
|
|
748
|
+
Be as emitPaymentStart,
|
|
745
749
|
ve as emitPaymentSuccess,
|
|
746
750
|
ye as emitWalletConnect,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
751
|
+
Ie as emitWalletConnected,
|
|
752
|
+
V as emitWalletError,
|
|
753
|
+
ut as formatCSP,
|
|
754
|
+
dt as formatCouponCodes,
|
|
755
|
+
pt as generateCSP,
|
|
756
|
+
ft as generateCSPDirectives,
|
|
757
|
+
mt as getAvailableLocales,
|
|
758
|
+
yt as getLocalizedError,
|
|
755
759
|
y as getLogger,
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
760
|
+
gt as getUserErrorMessage,
|
|
761
|
+
bt as isRetryableError,
|
|
762
|
+
St as loadLocale,
|
|
763
|
+
wt as logSecurityReport,
|
|
764
|
+
ht as parseCouponCodes,
|
|
765
|
+
Ft as retryWithBackoff,
|
|
766
|
+
Ct as stackCheckoutCoupons,
|
|
763
767
|
H as useCedrosContext,
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
768
|
+
qe as useCedrosTheme,
|
|
769
|
+
xt as useCreditsPayment,
|
|
770
|
+
Pt as useCreditsSubscription,
|
|
767
771
|
Le as useCryptoSubscription,
|
|
768
|
-
|
|
769
|
-
|
|
772
|
+
Et as useLocalizedError,
|
|
773
|
+
Rt as usePaymentMode,
|
|
770
774
|
Fe as useRefundVerification,
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
775
|
+
Tt as useStripeCheckout,
|
|
776
|
+
kt as useSubscription,
|
|
777
|
+
vt as useSubscriptionManagement,
|
|
778
|
+
ke as useTranslation,
|
|
779
|
+
rr as useX402Payment,
|
|
780
|
+
Gt as validateConfig,
|
|
781
|
+
It as validateSecurity,
|
|
782
|
+
jt as validateTokenMint
|
|
779
783
|
};
|