@solvapay/react 1.3.0 → 1.4.0-preview-ecd61384a4e849717e13d47ab2daa086cdcd91c5
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/CHANGELOG.md +28 -0
- package/dist/adapters/auth.js +1 -0
- package/dist/adapters/auth0.js +1 -0
- package/dist/adapters/session-auth.js +1 -0
- package/dist/{chunk-DW5FJUUG.js → chunk-6RR4J74H.js} +214 -24
- package/dist/chunk-GFWMLRR3.js +3224 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/{chunk-4ISNB3JU.js → chunk-SUHDOG7Q.js} +1 -1
- package/dist/{index-BwwdMBdt.d.ts → index-CDvQcobx.d.cts} +21 -2
- package/dist/{index-kXLvp7EU.d.cts → index-w_VMlKm5.d.ts} +21 -2
- package/dist/index.cjs +2216 -363
- package/dist/index.d.cts +34 -5
- package/dist/index.d.ts +34 -5
- package/dist/index.js +66 -3
- package/dist/mcp/index.cjs +216 -29
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +3 -2
- package/dist/primitives/index.cjs +2101 -362
- package/dist/primitives/index.d.cts +180 -5
- package/dist/primitives/index.d.ts +180 -5
- package/dist/primitives/index.js +73 -2
- package/dist/{shared-lIhc8DS3.d.ts → shared-D8raw1Nv.d.ts} +143 -12
- package/dist/{shared-BNZAIWkU.d.cts → shared-LcjvX4fD.d.cts} +143 -12
- package/dist/styles.css +513 -0
- package/dist/webapi-K5XBCEO6.js +3775 -0
- package/package.json +5 -5
- package/dist/chunk-K7ZUJI26.js +0 -1527
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as components, b as Plan, P as PaymentFormProps, a as PrefillCustomer, A as ActivationResult, r as UseTopupAmountSelectorReturn, a0 as AutoRechargeInput, t as AutoRechargeConfig, a1 as AutoRechargeDisplayBlock, E as CheckoutStep, O as SuccessMeta } from './shared-LcjvX4fD.cjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PaymentElement, CardElement } from '@stripe/react-stripe-js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -458,6 +458,25 @@ declare const CancelPlanButton: React.ForwardRefExoticComponent<React.ButtonHTML
|
|
|
458
458
|
onError?: (error: Error) => void;
|
|
459
459
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
460
460
|
|
|
461
|
+
type AmountInputUnit = 'currency' | 'credits';
|
|
462
|
+
type AutoRechargeFormState = {
|
|
463
|
+
enabled: boolean;
|
|
464
|
+
thresholdAmountMajor: string;
|
|
465
|
+
thresholdUnit: AmountInputUnit;
|
|
466
|
+
thresholdBaseValue: string;
|
|
467
|
+
thresholdBaseUnit: AmountInputUnit;
|
|
468
|
+
topupAmountMajor: string;
|
|
469
|
+
topupUnit: AmountInputUnit;
|
|
470
|
+
topupBaseValue: string;
|
|
471
|
+
topupBaseUnit: AmountInputUnit;
|
|
472
|
+
};
|
|
473
|
+
type AutoRechargeInputPayload = AutoRechargeInput;
|
|
474
|
+
/** Map a persisted config back to a payment-intent auto-recharge payload. */
|
|
475
|
+
declare function configToAutoRechargeInput(config: AutoRechargeConfig, options?: {
|
|
476
|
+
display?: AutoRechargeDisplayBlock | null;
|
|
477
|
+
currency?: string;
|
|
478
|
+
}): AutoRechargeInput | null;
|
|
479
|
+
|
|
461
480
|
interface UseUsageReturn {
|
|
462
481
|
/** Raw usage snapshot (`null` when no usage-based plan is active). */
|
|
463
482
|
usage: UsageSnapshot | null;
|
|
@@ -718,4 +737,4 @@ declare const CheckoutStepsBackLink: React.ForwardRefExoticComponent<Omit<React.
|
|
|
718
737
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
719
738
|
declare const CheckoutStepsSuccess: typeof Success;
|
|
720
739
|
|
|
721
|
-
export {
|
|
740
|
+
export { CheckoutStepsPlanGrid as $, type AutoRechargeInputPayload as A, BalanceBadge as B, type CheckoutVariant as C, useCheckoutFlow as D, useCheckoutSteps as E, useUsage as F, type AmountInputUnit as G, type AutoRechargeFormState as H, ActivationFlow as I, ActivationFlowActivateButton as J, ActivationFlowActivated as K, ActivationFlowAmountPicker as L, MandateText as M, ActivationFlowContinueButton as N, ActivationFlowError as O, PaymentFormSummary as P, ActivationFlowLoading as Q, ActivationFlowRetrying as R, ActivationFlowRoot as S, ActivationFlowSummary as T, type UsageSnapshot as U, CheckoutStepsAmountContinueButton as V, CheckoutStepsAmountPicker as W, CheckoutStepsBackLink as X, CheckoutStepsIfStep as Y, CheckoutStepsPayment as Z, CheckoutStepsPlanContinueButton as _, PaymentFormCustomerFields as a, CheckoutStepsRoot as a0, CheckoutStepsStepHeading as a1, CheckoutStepsStepMessage as a2, CheckoutStepsSuccess as a3, PaymentForm as a4, PaymentFormRoot as a5, PurchaseGateAllowed as a6, PurchaseGateBlocked as a7, PurchaseGateError as a8, PurchaseGateLoading as a9, PurchaseGateRoot as aa, useActivationFlow as ab, usePurchaseGate as ac, PaymentFormPaymentElement as b, PaymentFormCardElement as c, PaymentFormMandateText as d, PaymentFormTermsCheckbox as e, PaymentFormSubmitButton as f, PaymentFormLoading as g, PaymentFormError as h, PaymentFormLegalFooter as i, type PaywallStructuredContent as j, type ActivationFlowStep as k, CancelPlanButton as l, type CheckoutErrorPhase as m, type CheckoutStatus as n, CheckoutSteps as o, CheckoutSummary as p, type CheckoutSummaryProps as q, type MandateTextProps as r, PlanBadge as s, ProductBadge as t, PurchaseGate as u, type UseCheckoutFlowOptions as v, type UseCheckoutFlowReturn as w, type UseUsageReturn as x, configToAutoRechargeInput as y, deriveVariant as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as components, b as Plan, P as PaymentFormProps, a as PrefillCustomer, A as ActivationResult, r as UseTopupAmountSelectorReturn, a0 as AutoRechargeInput, t as AutoRechargeConfig, a1 as AutoRechargeDisplayBlock, E as CheckoutStep, O as SuccessMeta } from './shared-D8raw1Nv.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PaymentElement, CardElement } from '@stripe/react-stripe-js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -458,6 +458,25 @@ declare const CancelPlanButton: React.ForwardRefExoticComponent<React.ButtonHTML
|
|
|
458
458
|
onError?: (error: Error) => void;
|
|
459
459
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
460
460
|
|
|
461
|
+
type AmountInputUnit = 'currency' | 'credits';
|
|
462
|
+
type AutoRechargeFormState = {
|
|
463
|
+
enabled: boolean;
|
|
464
|
+
thresholdAmountMajor: string;
|
|
465
|
+
thresholdUnit: AmountInputUnit;
|
|
466
|
+
thresholdBaseValue: string;
|
|
467
|
+
thresholdBaseUnit: AmountInputUnit;
|
|
468
|
+
topupAmountMajor: string;
|
|
469
|
+
topupUnit: AmountInputUnit;
|
|
470
|
+
topupBaseValue: string;
|
|
471
|
+
topupBaseUnit: AmountInputUnit;
|
|
472
|
+
};
|
|
473
|
+
type AutoRechargeInputPayload = AutoRechargeInput;
|
|
474
|
+
/** Map a persisted config back to a payment-intent auto-recharge payload. */
|
|
475
|
+
declare function configToAutoRechargeInput(config: AutoRechargeConfig, options?: {
|
|
476
|
+
display?: AutoRechargeDisplayBlock | null;
|
|
477
|
+
currency?: string;
|
|
478
|
+
}): AutoRechargeInput | null;
|
|
479
|
+
|
|
461
480
|
interface UseUsageReturn {
|
|
462
481
|
/** Raw usage snapshot (`null` when no usage-based plan is active). */
|
|
463
482
|
usage: UsageSnapshot | null;
|
|
@@ -718,4 +737,4 @@ declare const CheckoutStepsBackLink: React.ForwardRefExoticComponent<Omit<React.
|
|
|
718
737
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
719
738
|
declare const CheckoutStepsSuccess: typeof Success;
|
|
720
739
|
|
|
721
|
-
export {
|
|
740
|
+
export { CheckoutStepsPlanGrid as $, type AutoRechargeInputPayload as A, BalanceBadge as B, type CheckoutVariant as C, useCheckoutFlow as D, useCheckoutSteps as E, useUsage as F, type AmountInputUnit as G, type AutoRechargeFormState as H, ActivationFlow as I, ActivationFlowActivateButton as J, ActivationFlowActivated as K, ActivationFlowAmountPicker as L, MandateText as M, ActivationFlowContinueButton as N, ActivationFlowError as O, PaymentFormSummary as P, ActivationFlowLoading as Q, ActivationFlowRetrying as R, ActivationFlowRoot as S, ActivationFlowSummary as T, type UsageSnapshot as U, CheckoutStepsAmountContinueButton as V, CheckoutStepsAmountPicker as W, CheckoutStepsBackLink as X, CheckoutStepsIfStep as Y, CheckoutStepsPayment as Z, CheckoutStepsPlanContinueButton as _, PaymentFormCustomerFields as a, CheckoutStepsRoot as a0, CheckoutStepsStepHeading as a1, CheckoutStepsStepMessage as a2, CheckoutStepsSuccess as a3, PaymentForm as a4, PaymentFormRoot as a5, PurchaseGateAllowed as a6, PurchaseGateBlocked as a7, PurchaseGateError as a8, PurchaseGateLoading as a9, PurchaseGateRoot as aa, useActivationFlow as ab, usePurchaseGate as ac, PaymentFormPaymentElement as b, PaymentFormCardElement as c, PaymentFormMandateText as d, PaymentFormTermsCheckbox as e, PaymentFormSubmitButton as f, PaymentFormLoading as g, PaymentFormError as h, PaymentFormLegalFooter as i, type PaywallStructuredContent as j, type ActivationFlowStep as k, CancelPlanButton as l, type CheckoutErrorPhase as m, type CheckoutStatus as n, CheckoutSteps as o, CheckoutSummary as p, type CheckoutSummaryProps as q, type MandateTextProps as r, PlanBadge as s, ProductBadge as t, PurchaseGate as u, type UseCheckoutFlowOptions as v, type UseCheckoutFlowReturn as w, type UseUsageReturn as x, configToAutoRechargeInput as y, deriveVariant as z };
|