@solvapay/react 2.1.1 → 3.0.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb

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 CHANGED
@@ -1,11 +1,13 @@
1
1
  # @solvapay/react changelog
2
2
 
3
- ## 2.1.1
3
+ ## 3.0.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies [a98faa9]
8
- - @solvapay/core@1.6.0
8
+ - Updated dependencies [5d37370]
9
+ - @solvapay/core@1.6.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb
10
+ - @solvapay/mcp-core@0.4.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb
9
11
 
10
12
  ## 2.1.0
11
13
 
@@ -14,7 +14,7 @@ import {
14
14
  usePurchaseStatus,
15
15
  useSolvaPay,
16
16
  useTransport
17
- } from "./chunk-LL6AYSTC.js";
17
+ } from "./chunk-JWNDKDZI.js";
18
18
 
19
19
  // src/components/CancelledPlanNotice.tsx
20
20
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -40,7 +40,7 @@ import {
40
40
  useTopupAmountSelector,
41
41
  withPaymentElementDefaults,
42
42
  writeAutoRechargeCache
43
- } from "./chunk-LL6AYSTC.js";
43
+ } from "./chunk-JWNDKDZI.js";
44
44
 
45
45
  // src/TopupForm.tsx
46
46
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -17,7 +17,36 @@ type LimitActivationProduct = components['schemas']['LimitProductBriefDto'];
17
17
  /**
18
18
  * Structured content for paywall errors (MCP structuredContent and manual handling).
19
19
  */
20
- type PaywallStructuredContent = {
20
+ /**
21
+ * Fields shared by every `PaywallStructuredContent` kind so a text-only
22
+ * host can recover from a gate without a second tool call. Every field
23
+ * other than `kind` / `product` / `checkoutUrl` / `message` is omitted
24
+ * when the backend did not send it — never defaulted.
25
+ */
26
+ type PaywallGateRecoveryFields = {
27
+ /** Active plan reference from `limits.plan`. */
28
+ planRef?: string;
29
+ /** Product plans from `checkLimits` (activation already had this). */
30
+ plans?: LimitPlanSummary[];
31
+ /** Meter the gated call was charged against. */
32
+ meterName?: string;
33
+ /** Per-unit charge of the active plan, in minor currency units. */
34
+ unitPriceMinor?: number;
35
+ /** ISO 4217 currency for `unitPriceMinor`. */
36
+ currency?: string;
37
+ /**
38
+ * Included-usage counters. Omitted when `freeUnits` is absent or `0`
39
+ * (the unlimited sentinel) so we never emit misleading zeros.
40
+ */
41
+ included?: {
42
+ total: number;
43
+ used: number;
44
+ remaining: number;
45
+ };
46
+ /** Prepaid credit balance, coalesced from nested or top-level fields. */
47
+ creditBalance?: number;
48
+ };
49
+ type PaywallStructuredContent = ({
21
50
  kind: 'payment_required';
22
51
  /** Product ref from paywall metadata (or env default) */
23
52
  product: string;
@@ -32,7 +61,7 @@ type PaywallStructuredContent = {
32
61
  balance?: LimitActivationBalance;
33
62
  /** Rich product context from checkLimits (name, ref, provider slug/id) */
34
63
  productDetails?: LimitActivationProduct;
35
- } | {
64
+ } & PaywallGateRecoveryFields) | ({
36
65
  kind: 'activation_required';
37
66
  /** Product ref from paywall metadata (or env default) */
38
67
  product: string;
@@ -42,11 +71,10 @@ type PaywallStructuredContent = {
42
71
  */
43
72
  checkoutUrl: string;
44
73
  confirmationUrl?: string;
45
- plans?: LimitPlanSummary[];
46
74
  balance?: LimitActivationBalance;
47
75
  /** Rich product context from checkLimits (name, ref, provider slug/id) */
48
76
  productDetails?: LimitActivationProduct;
49
- };
77
+ } & PaywallGateRecoveryFields);
50
78
 
51
79
  /**
52
80
  * Default-tree shim over the `CheckoutSummary` primitive.
@@ -17,7 +17,36 @@ type LimitActivationProduct = components['schemas']['LimitProductBriefDto'];
17
17
  /**
18
18
  * Structured content for paywall errors (MCP structuredContent and manual handling).
19
19
  */
20
- type PaywallStructuredContent = {
20
+ /**
21
+ * Fields shared by every `PaywallStructuredContent` kind so a text-only
22
+ * host can recover from a gate without a second tool call. Every field
23
+ * other than `kind` / `product` / `checkoutUrl` / `message` is omitted
24
+ * when the backend did not send it — never defaulted.
25
+ */
26
+ type PaywallGateRecoveryFields = {
27
+ /** Active plan reference from `limits.plan`. */
28
+ planRef?: string;
29
+ /** Product plans from `checkLimits` (activation already had this). */
30
+ plans?: LimitPlanSummary[];
31
+ /** Meter the gated call was charged against. */
32
+ meterName?: string;
33
+ /** Per-unit charge of the active plan, in minor currency units. */
34
+ unitPriceMinor?: number;
35
+ /** ISO 4217 currency for `unitPriceMinor`. */
36
+ currency?: string;
37
+ /**
38
+ * Included-usage counters. Omitted when `freeUnits` is absent or `0`
39
+ * (the unlimited sentinel) so we never emit misleading zeros.
40
+ */
41
+ included?: {
42
+ total: number;
43
+ used: number;
44
+ remaining: number;
45
+ };
46
+ /** Prepaid credit balance, coalesced from nested or top-level fields. */
47
+ creditBalance?: number;
48
+ };
49
+ type PaywallStructuredContent = ({
21
50
  kind: 'payment_required';
22
51
  /** Product ref from paywall metadata (or env default) */
23
52
  product: string;
@@ -32,7 +61,7 @@ type PaywallStructuredContent = {
32
61
  balance?: LimitActivationBalance;
33
62
  /** Rich product context from checkLimits (name, ref, provider slug/id) */
34
63
  productDetails?: LimitActivationProduct;
35
- } | {
64
+ } & PaywallGateRecoveryFields) | ({
36
65
  kind: 'activation_required';
37
66
  /** Product ref from paywall metadata (or env default) */
38
67
  product: string;
@@ -42,11 +71,10 @@ type PaywallStructuredContent = {
42
71
  */
43
72
  checkoutUrl: string;
44
73
  confirmationUrl?: string;
45
- plans?: LimitPlanSummary[];
46
74
  balance?: LimitActivationBalance;
47
75
  /** Rich product context from checkLimits (name, ref, provider slug/id) */
48
76
  productDetails?: LimitActivationProduct;
49
- };
77
+ } & PaywallGateRecoveryFields);
50
78
 
51
79
  /**
52
80
  * Default-tree shim over the `CheckoutSummary` primitive.
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { S as SolvaPayProviderProps, P as PaymentFormProps, a as PrefillCustomer, T as TopupFormProps, C as CheckoutResult, b as Plan, A as ActivationResult, c as SaveAutoRechargeResponse, d as PurchaseStatus, e as SolvaPayContextValue, U as UsePlansOptions, f as UsePlansReturn, g as UsePlanOptions, h as UsePlanReturn, i as UseProductReturn, j as UseMerchantReturn, k as SolvaPayCopy, l as PurchaseStatusReturn, m as CancelResult, R as ReactivateResult, n as ActivatePlanResult, o as UseTopupOptions, p as UseTopupReturn, B as BalanceStatus, q as UseTopupAmountSelectorOptions, r as UseTopupAmountSelectorReturn, s as UsePaymentMethodReturn, t as AutoRechargeConfig, u as SaveAutoRechargeInput, v as SolvaPayTransport, w as PartialSolvaPayCopy, x as PurchaseInfo, y as Product, z as SolvaPayConfig } from './shared-D0hmT1qU.cjs';
3
3
  export { D as BootstrapPlanLike, E as CheckoutStep, F as CustomerPurchaseData, M as MandateContext, G as MandateTemplate, H as Merchant, I as PaymentError, J as PaymentIntentResult, K as PaymentMethodInfo, L as PaymentResult, N as PurchaseStatusValue, O as SuccessMeta, Q as TopupPaymentResult, V as TransportBalanceResult, W as TransportCheckoutSessionResult, X as TransportCustomerSessionResult, Y as TransportLimitsResult, Z as UnsupportedTransportMethodError } from './shared-D0hmT1qU.cjs';
4
- import { P as PaymentFormSummary, a as PaymentFormCustomerFields, b as PaymentFormPaymentElement, c as PaymentFormCardElement, d as PaymentFormMandateText, e as PaymentFormTermsCheckbox, f as PaymentFormSubmitButton, g as PaymentFormLoading, h as PaymentFormError, i as PaymentFormLegalFooter, j as PaymentFormBusinessDetails, k as PaymentFormTaxSummary, A as AutoRechargeInputPayload, l as PaywallStructuredContent, C as CheckoutVariant } from './index-SylJb9Rh.cjs';
5
- export { m as ActivationFlowStep, B as BalanceBadge, n as CancelPlanButton, o as CheckoutErrorPhase, p as CheckoutStatus, q as CheckoutSteps, r as CheckoutSummary, s as CheckoutSummaryProps, M as MandateText, t as MandateTextProps, u as PlanBadge, v as ProductBadge, w as PurchaseGate, U as UsageSnapshot, x as UseCheckoutFlowOptions, y as UseCheckoutFlowReturn, z as UseUsageReturn, D as configToAutoRechargeInput, E as deriveVariant, F as useCheckoutFlow, G as useCheckoutStepsContext, H as useUsage } from './index-SylJb9Rh.cjs';
4
+ import { P as PaymentFormSummary, a as PaymentFormCustomerFields, b as PaymentFormPaymentElement, c as PaymentFormCardElement, d as PaymentFormMandateText, e as PaymentFormTermsCheckbox, f as PaymentFormSubmitButton, g as PaymentFormLoading, h as PaymentFormError, i as PaymentFormLegalFooter, j as PaymentFormBusinessDetails, k as PaymentFormTaxSummary, A as AutoRechargeInputPayload, l as PaywallStructuredContent, C as CheckoutVariant } from './index-C58HOIyb.cjs';
5
+ export { m as ActivationFlowStep, B as BalanceBadge, n as CancelPlanButton, o as CheckoutErrorPhase, p as CheckoutStatus, q as CheckoutSteps, r as CheckoutSummary, s as CheckoutSummaryProps, M as MandateText, t as MandateTextProps, u as PlanBadge, v as ProductBadge, w as PurchaseGate, U as UsageSnapshot, x as UseCheckoutFlowOptions, y as UseCheckoutFlowReturn, z as UseUsageReturn, D as configToAutoRechargeInput, E as deriveVariant, F as useCheckoutFlow, G as useCheckoutStepsContext, H as useUsage } from './index-C58HOIyb.cjs';
6
6
  import { PaymentIntent, Stripe, StripeElements } from '@stripe/stripe-js';
7
7
  import { BusinessDetailsInput, TaxBreakdown } from '@solvapay/core';
8
8
  export { AuthAdapter, createAnonymousAuthAdapter, defaultAuthAdapter, getOrCreateAnonymousCustomerRef, resetAnonymousCustomerRef } from './adapters/auth.cjs';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { S as SolvaPayProviderProps, P as PaymentFormProps, a as PrefillCustomer, T as TopupFormProps, C as CheckoutResult, b as Plan, A as ActivationResult, c as SaveAutoRechargeResponse, d as PurchaseStatus, e as SolvaPayContextValue, U as UsePlansOptions, f as UsePlansReturn, g as UsePlanOptions, h as UsePlanReturn, i as UseProductReturn, j as UseMerchantReturn, k as SolvaPayCopy, l as PurchaseStatusReturn, m as CancelResult, R as ReactivateResult, n as ActivatePlanResult, o as UseTopupOptions, p as UseTopupReturn, B as BalanceStatus, q as UseTopupAmountSelectorOptions, r as UseTopupAmountSelectorReturn, s as UsePaymentMethodReturn, t as AutoRechargeConfig, u as SaveAutoRechargeInput, v as SolvaPayTransport, w as PartialSolvaPayCopy, x as PurchaseInfo, y as Product, z as SolvaPayConfig } from './shared-CUl6mTC1.js';
3
3
  export { D as BootstrapPlanLike, E as CheckoutStep, F as CustomerPurchaseData, M as MandateContext, G as MandateTemplate, H as Merchant, I as PaymentError, J as PaymentIntentResult, K as PaymentMethodInfo, L as PaymentResult, N as PurchaseStatusValue, O as SuccessMeta, Q as TopupPaymentResult, V as TransportBalanceResult, W as TransportCheckoutSessionResult, X as TransportCustomerSessionResult, Y as TransportLimitsResult, Z as UnsupportedTransportMethodError } from './shared-CUl6mTC1.js';
4
- import { P as PaymentFormSummary, a as PaymentFormCustomerFields, b as PaymentFormPaymentElement, c as PaymentFormCardElement, d as PaymentFormMandateText, e as PaymentFormTermsCheckbox, f as PaymentFormSubmitButton, g as PaymentFormLoading, h as PaymentFormError, i as PaymentFormLegalFooter, j as PaymentFormBusinessDetails, k as PaymentFormTaxSummary, A as AutoRechargeInputPayload, l as PaywallStructuredContent, C as CheckoutVariant } from './index-CBWGkBqF.js';
5
- export { m as ActivationFlowStep, B as BalanceBadge, n as CancelPlanButton, o as CheckoutErrorPhase, p as CheckoutStatus, q as CheckoutSteps, r as CheckoutSummary, s as CheckoutSummaryProps, M as MandateText, t as MandateTextProps, u as PlanBadge, v as ProductBadge, w as PurchaseGate, U as UsageSnapshot, x as UseCheckoutFlowOptions, y as UseCheckoutFlowReturn, z as UseUsageReturn, D as configToAutoRechargeInput, E as deriveVariant, F as useCheckoutFlow, G as useCheckoutStepsContext, H as useUsage } from './index-CBWGkBqF.js';
4
+ import { P as PaymentFormSummary, a as PaymentFormCustomerFields, b as PaymentFormPaymentElement, c as PaymentFormCardElement, d as PaymentFormMandateText, e as PaymentFormTermsCheckbox, f as PaymentFormSubmitButton, g as PaymentFormLoading, h as PaymentFormError, i as PaymentFormLegalFooter, j as PaymentFormBusinessDetails, k as PaymentFormTaxSummary, A as AutoRechargeInputPayload, l as PaywallStructuredContent, C as CheckoutVariant } from './index-DLXCdSHI.js';
5
+ export { m as ActivationFlowStep, B as BalanceBadge, n as CancelPlanButton, o as CheckoutErrorPhase, p as CheckoutStatus, q as CheckoutSteps, r as CheckoutSummary, s as CheckoutSummaryProps, M as MandateText, t as MandateTextProps, u as PlanBadge, v as ProductBadge, w as PurchaseGate, U as UsageSnapshot, x as UseCheckoutFlowOptions, y as UseCheckoutFlowReturn, z as UseUsageReturn, D as configToAutoRechargeInput, E as deriveVariant, F as useCheckoutFlow, G as useCheckoutStepsContext, H as useUsage } from './index-DLXCdSHI.js';
6
6
  import { PaymentIntent, Stripe, StripeElements } from '@stripe/stripe-js';
7
7
  import { BusinessDetailsInput, TaxBreakdown } from '@solvapay/core';
8
8
  export { AuthAdapter, createAnonymousAuthAdapter, defaultAuthAdapter, getOrCreateAnonymousCustomerRef, resetAnonymousCustomerRef } from './adapters/auth.js';
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  LaunchCustomerPortalButton,
8
8
  UpdatePaymentMethodButton,
9
9
  usePaymentMethod
10
- } from "./chunk-QXNNMNCV.js";
10
+ } from "./chunk-N33YEHX4.js";
11
11
  import {
12
12
  ActivationFlow,
13
13
  AutoRecharge,
@@ -23,7 +23,7 @@ import {
23
23
  useCheckoutSteps,
24
24
  useCreditGate,
25
25
  usePaywallResolver
26
- } from "./chunk-HQH6KSXJ.js";
26
+ } from "./chunk-QS3TADSM.js";
27
27
  import {
28
28
  AmountPicker,
29
29
  BalanceBadge,
@@ -97,7 +97,7 @@ import {
97
97
  useTopupAmountSelector,
98
98
  useTransport,
99
99
  useUsage
100
- } from "./chunk-LL6AYSTC.js";
100
+ } from "./chunk-JWNDKDZI.js";
101
101
  import {
102
102
  createAnonymousAuthAdapter,
103
103
  defaultAuthAdapter,
package/dist/mcp/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  ExternalLinkGlyph,
4
4
  LaunchCustomerPortalButton,
5
5
  paymentMethodCache
6
- } from "../chunk-QXNNMNCV.js";
6
+ } from "../chunk-N33YEHX4.js";
7
7
  import {
8
8
  AmountPicker,
9
9
  BalanceBadge,
@@ -41,7 +41,7 @@ import {
41
41
  usePurchaseStatus,
42
42
  useTopupAmountSelector,
43
43
  useTransport
44
- } from "../chunk-LL6AYSTC.js";
44
+ } from "../chunk-JWNDKDZI.js";
45
45
  import "../chunk-UMXOAUW7.js";
46
46
  import "../chunk-MLKGABMK.js";
47
47
 
@@ -3,8 +3,8 @@ import React, { Ref } from 'react';
3
3
  import { b as Plan, y as Product, r as UseTopupAmountSelectorReturn, x as PurchaseInfo, T as TopupFormProps, c as SaveAutoRechargeResponse, t as AutoRechargeConfig } from '../shared-D0hmT1qU.cjs';
4
4
  export { D as BootstrapPlanLike, E as CheckoutStep, O as SuccessMeta } from '../shared-D0hmT1qU.cjs';
5
5
  import { TaxBreakdown, BusinessDetailsInput } from '@solvapay/core';
6
- import { A as AutoRechargeInputPayload, I as AmountInputUnit, J as AutoRechargeFormState, l as PaywallStructuredContent, U as UsageSnapshot } from '../index-SylJb9Rh.cjs';
7
- export { K as ActivationFlow, L as ActivationFlowActivateButton, N as ActivationFlowActivated, O as ActivationFlowAmountPicker, Q as ActivationFlowContinueButton, R as ActivationFlowError, S as ActivationFlowLoading, T as ActivationFlowRetrying, V as ActivationFlowRoot, m as ActivationFlowStep, W as ActivationFlowSummary, B as BalanceBadge, n as CancelPlanButton, p as CheckoutStatus, q as CheckoutSteps, X as CheckoutStepsAmountContinueButton, Y as CheckoutStepsAmountPicker, Z as CheckoutStepsBackLink, _ as CheckoutStepsIfStep, $ as CheckoutStepsPayment, a0 as CheckoutStepsPlanContinueButton, a1 as CheckoutStepsPlanGrid, a2 as CheckoutStepsRoot, a3 as CheckoutStepsStepHeading, a4 as CheckoutStepsStepMessage, a5 as CheckoutStepsSuccess, M as MandateText, t as MandateTextProps, a6 as PaymentForm, j as PaymentFormBusinessDetails, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a7 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, k as PaymentFormTaxSummary, e as PaymentFormTermsCheckbox, u as PlanBadge, v as ProductBadge, w as PurchaseGate, a8 as PurchaseGateAllowed, a9 as PurchaseGateBlocked, aa as PurchaseGateError, ab as PurchaseGateLoading, ac as PurchaseGateRoot, ad as useActivationFlow, G as useCheckoutStepsContext, ae as usePurchaseGate } from '../index-SylJb9Rh.cjs';
6
+ import { A as AutoRechargeInputPayload, I as AmountInputUnit, J as AutoRechargeFormState, l as PaywallStructuredContent, U as UsageSnapshot } from '../index-C58HOIyb.cjs';
7
+ export { K as ActivationFlow, L as ActivationFlowActivateButton, N as ActivationFlowActivated, O as ActivationFlowAmountPicker, Q as ActivationFlowContinueButton, R as ActivationFlowError, S as ActivationFlowLoading, T as ActivationFlowRetrying, V as ActivationFlowRoot, m as ActivationFlowStep, W as ActivationFlowSummary, B as BalanceBadge, n as CancelPlanButton, p as CheckoutStatus, q as CheckoutSteps, X as CheckoutStepsAmountContinueButton, Y as CheckoutStepsAmountPicker, Z as CheckoutStepsBackLink, _ as CheckoutStepsIfStep, $ as CheckoutStepsPayment, a0 as CheckoutStepsPlanContinueButton, a1 as CheckoutStepsPlanGrid, a2 as CheckoutStepsRoot, a3 as CheckoutStepsStepHeading, a4 as CheckoutStepsStepMessage, a5 as CheckoutStepsSuccess, M as MandateText, t as MandateTextProps, a6 as PaymentForm, j as PaymentFormBusinessDetails, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a7 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, k as PaymentFormTaxSummary, e as PaymentFormTermsCheckbox, u as PlanBadge, v as ProductBadge, w as PurchaseGate, a8 as PurchaseGateAllowed, a9 as PurchaseGateBlocked, aa as PurchaseGateError, ab as PurchaseGateLoading, ac as PurchaseGateRoot, ad as useActivationFlow, G as useCheckoutStepsContext, ae as usePurchaseGate } from '../index-C58HOIyb.cjs';
8
8
  import { PaymentElement } from '@stripe/react-stripe-js';
9
9
  import { Stripe, StripeElements } from '@stripe/stripe-js';
10
10
  import '../adapters/auth.cjs';
@@ -3,8 +3,8 @@ import React, { Ref } from 'react';
3
3
  import { b as Plan, y as Product, r as UseTopupAmountSelectorReturn, x as PurchaseInfo, T as TopupFormProps, c as SaveAutoRechargeResponse, t as AutoRechargeConfig } from '../shared-CUl6mTC1.js';
4
4
  export { D as BootstrapPlanLike, E as CheckoutStep, O as SuccessMeta } from '../shared-CUl6mTC1.js';
5
5
  import { TaxBreakdown, BusinessDetailsInput } from '@solvapay/core';
6
- import { A as AutoRechargeInputPayload, I as AmountInputUnit, J as AutoRechargeFormState, l as PaywallStructuredContent, U as UsageSnapshot } from '../index-CBWGkBqF.js';
7
- export { K as ActivationFlow, L as ActivationFlowActivateButton, N as ActivationFlowActivated, O as ActivationFlowAmountPicker, Q as ActivationFlowContinueButton, R as ActivationFlowError, S as ActivationFlowLoading, T as ActivationFlowRetrying, V as ActivationFlowRoot, m as ActivationFlowStep, W as ActivationFlowSummary, B as BalanceBadge, n as CancelPlanButton, p as CheckoutStatus, q as CheckoutSteps, X as CheckoutStepsAmountContinueButton, Y as CheckoutStepsAmountPicker, Z as CheckoutStepsBackLink, _ as CheckoutStepsIfStep, $ as CheckoutStepsPayment, a0 as CheckoutStepsPlanContinueButton, a1 as CheckoutStepsPlanGrid, a2 as CheckoutStepsRoot, a3 as CheckoutStepsStepHeading, a4 as CheckoutStepsStepMessage, a5 as CheckoutStepsSuccess, M as MandateText, t as MandateTextProps, a6 as PaymentForm, j as PaymentFormBusinessDetails, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a7 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, k as PaymentFormTaxSummary, e as PaymentFormTermsCheckbox, u as PlanBadge, v as ProductBadge, w as PurchaseGate, a8 as PurchaseGateAllowed, a9 as PurchaseGateBlocked, aa as PurchaseGateError, ab as PurchaseGateLoading, ac as PurchaseGateRoot, ad as useActivationFlow, G as useCheckoutStepsContext, ae as usePurchaseGate } from '../index-CBWGkBqF.js';
6
+ import { A as AutoRechargeInputPayload, I as AmountInputUnit, J as AutoRechargeFormState, l as PaywallStructuredContent, U as UsageSnapshot } from '../index-DLXCdSHI.js';
7
+ export { K as ActivationFlow, L as ActivationFlowActivateButton, N as ActivationFlowActivated, O as ActivationFlowAmountPicker, Q as ActivationFlowContinueButton, R as ActivationFlowError, S as ActivationFlowLoading, T as ActivationFlowRetrying, V as ActivationFlowRoot, m as ActivationFlowStep, W as ActivationFlowSummary, B as BalanceBadge, n as CancelPlanButton, p as CheckoutStatus, q as CheckoutSteps, X as CheckoutStepsAmountContinueButton, Y as CheckoutStepsAmountPicker, Z as CheckoutStepsBackLink, _ as CheckoutStepsIfStep, $ as CheckoutStepsPayment, a0 as CheckoutStepsPlanContinueButton, a1 as CheckoutStepsPlanGrid, a2 as CheckoutStepsRoot, a3 as CheckoutStepsStepHeading, a4 as CheckoutStepsStepMessage, a5 as CheckoutStepsSuccess, M as MandateText, t as MandateTextProps, a6 as PaymentForm, j as PaymentFormBusinessDetails, c as PaymentFormCardElement, a as PaymentFormCustomerFields, h as PaymentFormError, i as PaymentFormLegalFooter, g as PaymentFormLoading, d as PaymentFormMandateText, b as PaymentFormPaymentElement, a7 as PaymentFormRoot, f as PaymentFormSubmitButton, P as PaymentFormSummary, k as PaymentFormTaxSummary, e as PaymentFormTermsCheckbox, u as PlanBadge, v as ProductBadge, w as PurchaseGate, a8 as PurchaseGateAllowed, a9 as PurchaseGateBlocked, aa as PurchaseGateError, ab as PurchaseGateLoading, ac as PurchaseGateRoot, ad as useActivationFlow, G as useCheckoutStepsContext, ae as usePurchaseGate } from '../index-DLXCdSHI.js';
8
8
  import { PaymentElement } from '@stripe/react-stripe-js';
9
9
  import { Stripe, StripeElements } from '@stripe/stripe-js';
10
10
  import '../adapters/auth.js';
@@ -88,7 +88,7 @@ import {
88
88
  useCreditGate,
89
89
  usePaywallNotice,
90
90
  usePurchaseGate
91
- } from "../chunk-HQH6KSXJ.js";
91
+ } from "../chunk-QS3TADSM.js";
92
92
  import {
93
93
  AmountPicker,
94
94
  AmountPickerConfirm,
@@ -175,7 +175,7 @@ import {
175
175
  usePlanSelector,
176
176
  useTopupForm,
177
177
  useUsageMeter
178
- } from "../chunk-LL6AYSTC.js";
178
+ } from "../chunk-JWNDKDZI.js";
179
179
  import "../chunk-UMXOAUW7.js";
180
180
  import "../chunk-MLKGABMK.js";
181
181
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvapay/react",
3
- "version": "2.1.1",
3
+ "version": "3.0.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -57,7 +57,7 @@
57
57
  "directory": "packages/react"
58
58
  },
59
59
  "peerDependencies": {
60
- "@solvapay/mcp-core": "^0.2.8 || ^0.3.0",
60
+ "@solvapay/mcp-core": "0.4.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb",
61
61
  "react": "^18.2.0 || ^19.0.0",
62
62
  "react-dom": "^18.2.0 || ^19.0.0"
63
63
  },
@@ -69,7 +69,7 @@
69
69
  "dependencies": {
70
70
  "@stripe/react-stripe-js": "^6.0.0",
71
71
  "@stripe/stripe-js": "^9.0.0",
72
- "@solvapay/core": "1.6.0"
72
+ "@solvapay/core": "1.6.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@testing-library/dom": "^10.4.1",
@@ -85,8 +85,8 @@
85
85
  "react-dom": "^19.2.5",
86
86
  "typescript": "^5.9.3",
87
87
  "vitest": "^4.1.2",
88
- "@solvapay/mcp-core": "0.3.4",
89
- "@solvapay/server": "2.3.1",
88
+ "@solvapay/mcp-core": "0.4.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb",
89
+ "@solvapay/server": "2.4.0-preview-f9bff40f126e4bda2741704fd85145e6acdda2fb",
90
90
  "@solvapay/test-utils": "0.0.0"
91
91
  },
92
92
  "scripts": {
File without changes