UNPKG

@cedros/pay-react

Version:

React frontend library for Cedros Pay - unified Stripe and Solana x402 payments

43 lines 4.83 kB
/** * @cedros/pay-react - Unified Stripe and Solana payments for React * * Main library exports */ export { CedrosPay } from './components/CedrosPay'; export { StripeButton } from './components/StripeButton'; export { CryptoButton } from './components/CryptoButton'; export { PurchaseButton } from './components/PurchaseButton'; export type { PurchaseButtonProps } from './components/PurchaseButton'; export { PaymentModal } from './components/PaymentModal'; export type { PaymentModalProps } from './components/PaymentModal'; export { ProductPrice, PaymentMethodBadge } from './components/ProductPrice'; export type { PaymentMethod } from './components/ProductPrice'; export { SubscribeButton } from './components/SubscribeButton'; export { CryptoSubscribeButton } from './components/CryptoSubscribeButton'; export { SubscriptionManagementPanel } from './components/SubscriptionManagementPanel'; export type { SubscriptionManagementPanelProps, AvailablePlan, } from './components/SubscriptionManagementPanel'; export { CedrosProvider, useCedrosContext, useCedrosTheme, type CedrosContextValue } from './context'; export { useStripeCheckout } from './hooks/useStripeCheckout'; export { useX402Payment } from './hooks/useX402Payment'; export { useRefundVerification } from './hooks/useRefundVerification'; export { usePaymentMode } from './hooks/usePaymentMode'; export { useSubscription } from './hooks/useSubscription'; export { useCryptoSubscription } from './hooks/useCryptoSubscription'; export { useSubscriptionManagement } from './hooks/useSubscriptionManagement'; export type { SubscriptionManagementState, ChangeOptions, } from './hooks/useSubscriptionManagement'; export type { CedrosConfig, SolanaCluster, PaymentStatus, Currency, X402Requirement, X402Response, PaymentPayload, SettlementResponse, StripeSessionRequest, StripeSessionResponse, PaymentResult, PaymentMetadata, PaymentState, CedrosThemeMode, CedrosThemeTokens, Product, CartItem, PaymentErrorCode, PaymentError, ErrorResponse, FuturePaymentMethod, PaymentSuccessResult, PaymentErrorDetail as PaymentErrorInfo, CheckoutOptions, DisplayOptions, ModalRenderProps, CallbackOptions, AdvancedOptions, BillingInterval, SubscriptionStatus, SubscriptionSessionRequest, SubscriptionSessionResponse, SubscriptionStatusRequest, SubscriptionStatusResponse, SubscriptionQuote, SubscriptionState, SubscriptionPaymentResult, CancelSubscriptionRequest, CancelSubscriptionResponse, BillingPortalRequest, BillingPortalResponse, ActivateX402SubscriptionRequest, ActivateX402SubscriptionResponse, ProrationBehavior, ChangeSubscriptionRequest, ChangeSubscriptionResponse, ChangePreviewRequest, ChangePreviewResponse, SubscriptionDetails, } from './types'; export { ERROR_CATEGORIES } from './types/errors'; export type { IStripeManager } from './managers/StripeManager'; export type { IX402Manager } from './managers/X402Manager'; export type { IWalletManager } from './managers/WalletManager'; export type { ISubscriptionManager, SubscriptionQuoteOptions } from './managers/SubscriptionManager'; export type { ISubscriptionChangeManager } from './managers/SubscriptionChangeManager'; export type { IRouteDiscoveryManager } from './managers/RouteDiscoveryManager'; export { validateConfig, parseCouponCodes, formatCouponCodes, calculateDiscountPercentage, stackCheckoutCoupons, type Coupon, createRateLimiter, RATE_LIMITER_PRESETS, type RateLimiter, type RateLimiterConfig, createCircuitBreaker, CircuitState, CircuitBreakerOpenError, CIRCUIT_BREAKER_PRESETS, type CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerStats, retryWithBackoff, RETRY_PRESETS, type RetryConfig, type RetryStats, createWalletPool, WalletPool, generateCSP, generateCSPDirectives, formatCSP, RPC_PROVIDERS, CSP_PRESETS, type CSPConfig, type CSPDirectives, type CSPFormat, } from './utils'; export { LogLevel, Logger, getLogger, createLogger, type LoggerConfig, } from './utils/logger'; export { CEDROS_EVENTS, emitPaymentStart, emitWalletConnect, emitWalletConnected, emitWalletError, emitPaymentProcessing, emitPaymentSuccess, emitPaymentError, type PaymentStartDetail, type WalletConnectDetail, type WalletErrorDetail, type PaymentProcessingDetail, type PaymentSuccessDetail, type PaymentErrorDetail, type WalletProvider, } from './utils'; export { parseStructuredErrorResponse, isRetryableError, getUserErrorMessage, } from './utils'; export { validateSecurity, logSecurityReport, SECURITY_RECOMMENDATIONS, type SecurityCheckResult, type SecurityReport, } from './utils/securityValidation'; export { detectLocale, loadLocale, getAvailableLocales, createTranslator, getLocalizedError, type Translations, type Locale, type TranslateFn, } from './i18n'; export { useTranslation, useLocalizedError, type UseTranslationResult, } from './i18n/useTranslation'; //# sourceMappingURL=index.d.ts.map