@solvapay/react 2.2.2 → 2.3.0-preview-e77af6c08d8a185342e1a74903c8545b94a9f51d
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 +22 -1
- package/dist/{UsageMeter-BZWfC5KX.d.ts → UsageMeter-DZxLZt4A.d.ts} +1 -1
- package/dist/{UsageMeter-BiujMmVR.d.cts → UsageMeter-zKMPnwCx.d.cts} +1 -1
- package/dist/{chunk-GPP4MY3I.js → chunk-JXH36VLL.js} +39 -208
- package/dist/{chunk-KUH3SNWZ.js → chunk-LXG7QDM3.js} +225 -41
- package/dist/{chunk-4UFQDYG5.js → chunk-QWK3LMGG.js} +1 -1
- package/dist/{index-BAYpUp5R.d.ts → index-BadShw3R.d.cts} +17 -1
- package/dist/{index-B5QUesJE.d.cts → index-DN66D54Q.d.ts} +17 -1
- package/dist/index.cjs +10 -5
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/mcp/index.cjs +2416 -2733
- package/dist/mcp/index.d.cts +36 -23
- package/dist/mcp/index.d.ts +36 -23
- package/dist/mcp/index.js +790 -774
- package/dist/primitives/index.cjs +10 -5
- package/dist/primitives/index.d.cts +5 -5
- package/dist/primitives/index.d.ts +5 -5
- package/dist/primitives/index.js +2 -2
- package/dist/{useUsage-DSPWQ37m.d.ts → useUsage-CwvxnICf.d.ts} +43 -52
- package/dist/{useUsage-CRd_E6J3.d.cts → useUsage-DNXxsmyG.d.cts} +43 -52
- package/package.json +4 -4
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as SolvaPayTransport, a1 as SolvaPayProviderInitial, D as SolvaPayConfig, B as BootstrapPlanLike, y as PurchaseInfo, a2 as CreditActivityType, a3 as CreditActivityEntry, H as Merchant } from '../useUsage-
|
|
1
|
+
import { w as SolvaPayTransport, a1 as SolvaPayProviderInitial, D as SolvaPayConfig, B as BootstrapPlanLike, y as PurchaseInfo, a2 as CreditActivityType, a3 as CreditActivityEntry, H as Merchant } from '../useUsage-DNXxsmyG.cjs';
|
|
2
2
|
import { TOOL_FOR_VIEW, SolvaPayMcpViewKind, BootstrapMerchant, BootstrapProduct, BootstrapPlan, BootstrapCustomer } from '@solvapay/mcp-core';
|
|
3
3
|
export { MCP_TOOL_NAMES, McpToolName } from '@solvapay/mcp-core';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { PricingOptionLike, PricedLike, BalancePegLike } from '@solvapay/core';
|
|
7
|
-
import { U as UsageMeterRootProps } from '../UsageMeter-
|
|
7
|
+
import { U as UsageMeterRootProps } from '../UsageMeter-zKMPnwCx.cjs';
|
|
8
8
|
import '@stripe/stripe-js';
|
|
9
9
|
import '../adapters/auth.cjs';
|
|
10
10
|
|
|
@@ -100,7 +100,7 @@ declare function createMcpAppAdapter(app: McpAppLike): SolvaPayTransport;
|
|
|
100
100
|
*
|
|
101
101
|
* ## Flow
|
|
102
102
|
*
|
|
103
|
-
* 1. `loadStripe(publishableKey)` with a ≤
|
|
103
|
+
* 1. `loadStripe(publishableKey)` with a ≤10s timeout. Reject /
|
|
104
104
|
* timeout → `'blocked'` (covers `script-src` blocks and slow
|
|
105
105
|
* CDNs).
|
|
106
106
|
* 2. `stripe.elements({ mode: 'setup', currency: 'usd' })` +
|
|
@@ -114,14 +114,16 @@ declare function createMcpAppAdapter(app: McpAppLike): SolvaPayTransport;
|
|
|
114
114
|
* - stripe-domain `frame-src` violation → `'blocked'`.
|
|
115
115
|
* - `loaderror` → `'blocked'`.
|
|
116
116
|
* - `ready` → `'ready'` (but only when no violation has fired).
|
|
117
|
-
* - ≤
|
|
117
|
+
* - ≤6s element-mount timeout → `'blocked'`.
|
|
118
118
|
* 5. Always tear down (element unmount + host node removed +
|
|
119
119
|
* listener removed) on resolve, effect cleanup, and defensively
|
|
120
120
|
* on re-renders.
|
|
121
121
|
*
|
|
122
|
-
* Total worst-case budget ≤
|
|
123
|
-
* up to
|
|
124
|
-
*
|
|
122
|
+
* Total worst-case budget ≤ 16s (script load up to 10s + iframe mount
|
|
123
|
+
* up to 6s). The checkout and top-up surfaces no longer block on this
|
|
124
|
+
* — they show plans / amounts immediately and only consult the probe
|
|
125
|
+
* at the payment step — so a slow cold load is no longer user-visible.
|
|
126
|
+
* Public return type unchanged: `'loading' | 'ready' | 'blocked'`.
|
|
125
127
|
*
|
|
126
128
|
* Note on the key: `publishableKey` is SolvaPay's **platform** Stripe pk
|
|
127
129
|
* (same one the backend returns from `create_payment_intent`). It is used
|
|
@@ -135,6 +137,11 @@ declare function createMcpAppAdapter(app: McpAppLike): SolvaPayTransport;
|
|
|
135
137
|
* merchant's own publishable key is never involved.
|
|
136
138
|
*/
|
|
137
139
|
type StripeProbeState = 'loading' | 'ready' | 'blocked';
|
|
140
|
+
/**
|
|
141
|
+
* @internal Test-only: clear the session probe cache. Do not use in
|
|
142
|
+
* application code.
|
|
143
|
+
*/
|
|
144
|
+
declare function resetStripeProbeCacheForTests(): void;
|
|
138
145
|
declare function useStripeProbe(publishableKey: string | null): StripeProbeState;
|
|
139
146
|
|
|
140
147
|
declare function useHostLocale(): string;
|
|
@@ -305,6 +312,11 @@ interface McpBootstrap {
|
|
|
305
312
|
plans: BootstrapPlan[];
|
|
306
313
|
/** Per-customer snapshot — null when the bootstrap call was unauthenticated. */
|
|
307
314
|
customer: BootstrapCustomer | null;
|
|
315
|
+
/**
|
|
316
|
+
* Hosted portal URL that opens the auto-recharge form. Null when no
|
|
317
|
+
* portal session could be minted.
|
|
318
|
+
*/
|
|
319
|
+
autoRechargeUrl?: string | null;
|
|
308
320
|
}
|
|
309
321
|
/**
|
|
310
322
|
* Extended `McpAppLike` shape used by `fetchMcpBootstrap` — the base adapter
|
|
@@ -770,10 +782,15 @@ interface McpAccountViewProps {
|
|
|
770
782
|
*/
|
|
771
783
|
onTopup?: () => void;
|
|
772
784
|
/**
|
|
773
|
-
*
|
|
774
|
-
*
|
|
785
|
+
* Auto-recharge snapshot from the bootstrap limits payload.
|
|
786
|
+
* Absent means unknown (older server) — the row renders as off.
|
|
787
|
+
*/
|
|
788
|
+
autoRecharge?: BootstrapCustomer['autoRecharge'] | null;
|
|
789
|
+
/**
|
|
790
|
+
* Hosted portal URL that opens the auto-recharge form. The row
|
|
791
|
+
* renders status without an action when this is missing.
|
|
775
792
|
*/
|
|
776
|
-
|
|
793
|
+
autoRechargeUrl?: string | null;
|
|
777
794
|
/**
|
|
778
795
|
* Called when the user clicks "Pick a plan" or Change plan.
|
|
779
796
|
* Wired by the shell to switch to checkout.
|
|
@@ -785,21 +802,14 @@ interface McpAccountViewProps {
|
|
|
785
802
|
*/
|
|
786
803
|
plans?: readonly PlanLike[];
|
|
787
804
|
}
|
|
788
|
-
declare function McpAccountView({ product, productRef, classNames, onTopup,
|
|
789
|
-
|
|
790
|
-
interface McpAutoRechargeViewProps {
|
|
791
|
-
classNames?: McpViewClassNames;
|
|
792
|
-
/** Wired by the shell to return to the account surface. */
|
|
793
|
-
onBack?: () => void;
|
|
794
|
-
}
|
|
795
|
-
declare function McpAutoRechargeView({ classNames, onBack }: McpAutoRechargeViewProps): react_jsx_runtime.JSX.Element;
|
|
805
|
+
declare function McpAccountView({ product, productRef, classNames, onTopup, autoRecharge, autoRechargeUrl, onChangePlan, plans, }: McpAccountViewProps): react_jsx_runtime.JSX.Element;
|
|
796
806
|
|
|
797
807
|
interface McpCheckoutViewProps {
|
|
798
808
|
productRef: string;
|
|
799
809
|
/**
|
|
800
810
|
* Stripe publishable key used by `useStripeProbe` to detect CSP-blocked
|
|
801
|
-
* hosts. Pass `null` to skip the probe
|
|
802
|
-
*
|
|
811
|
+
* hosts. Pass `null` to skip the probe: the plan picker still renders,
|
|
812
|
+
* and the hosted handoff is forced only at the payment step.
|
|
803
813
|
*/
|
|
804
814
|
publishableKey?: string | null;
|
|
805
815
|
returnUrl: string;
|
|
@@ -851,7 +861,11 @@ interface McpCheckoutViewProps {
|
|
|
851
861
|
declare function McpCheckoutView({ productRef, publishableKey, returnUrl, onPurchaseSuccess, onRequestTopup: _onRequestTopup, fromPaywall, paywallKind, plans, onClose, onBack, initialPlanRef, autoAdvance, classNames, children, }: McpCheckoutViewProps): react_jsx_runtime.JSX.Element;
|
|
852
862
|
|
|
853
863
|
interface McpTopupViewProps {
|
|
854
|
-
/**
|
|
864
|
+
/**
|
|
865
|
+
* Stripe publishable key used by `useStripeProbe`. Pass `null` to skip
|
|
866
|
+
* the probe: the amount step still renders, and the hosted portal
|
|
867
|
+
* handoff is forced only at the payment step.
|
|
868
|
+
*/
|
|
855
869
|
publishableKey?: string | null;
|
|
856
870
|
returnUrl: string;
|
|
857
871
|
/**
|
|
@@ -1010,7 +1024,6 @@ interface McpAppViewOverrides {
|
|
|
1010
1024
|
checkout?: React.ComponentType<McpCheckoutViewProps>;
|
|
1011
1025
|
account?: React.ComponentType<McpAccountViewProps>;
|
|
1012
1026
|
topup?: React.ComponentType<McpTopupViewProps>;
|
|
1013
|
-
autoRecharge?: React.ComponentType<McpAutoRechargeViewProps>;
|
|
1014
1027
|
}
|
|
1015
1028
|
interface McpAppProps {
|
|
1016
1029
|
app: McpAppFull;
|
|
@@ -1592,4 +1605,4 @@ declare function mcpUsageWarningAt(remaining: number | null | undefined): number
|
|
|
1592
1605
|
type McpUsageMeterProps = Omit<UsageMeterRootProps, 'warningAt' | 'criticalAt'>;
|
|
1593
1606
|
declare function McpUsageMeter({ usageOverride, className, children, ...rest }: McpUsageMeterProps): React.ReactElement;
|
|
1594
1607
|
|
|
1595
|
-
export { ACCOUNT_STATES, type AccountLimitsLike, type AccountPurchaseLike, type AccountState, type AccountStateInput, type ActivationStrategy, type ActiveProduct, type ActivityStripKind, AmountLadder, type AmountLadderRow, AppHeader, type AppHeaderMode, type AppHeaderProps, type AppToolResultEvents, AttributionFooter, BackLink, type BackLinkProps, CREDIT_ACTIVITY_TYPE_LABELS, DEFAULT_DISPLAY_MODE_STATE, Eyebrow, FactBand, type FactBandItem, Field, HOSTS_WITH_MERCHANT_CHROME, type HostEntryClassification, LedgerRow, LineItem, MCP_DISPLAY_MODES, MCP_HOSTED_MIN_WIDTH, MCP_USAGE_CRITICAL_AT, MCP_USAGE_WARNING_AT, McpAccountView, type McpAccountViewProps, McpApp, type McpAppBootstrapLike, type McpAppFull, type McpAppLike, type McpAppProps, McpAppShell, type McpAppShellProps, type McpAppViewOverrides,
|
|
1608
|
+
export { ACCOUNT_STATES, type AccountLimitsLike, type AccountPurchaseLike, type AccountState, type AccountStateInput, type ActivationStrategy, type ActiveProduct, type ActivityStripKind, AmountLadder, type AmountLadderRow, AppHeader, type AppHeaderMode, type AppHeaderProps, type AppToolResultEvents, AttributionFooter, BackLink, type BackLinkProps, CREDIT_ACTIVITY_TYPE_LABELS, DEFAULT_DISPLAY_MODE_STATE, Eyebrow, FactBand, type FactBandItem, Field, HOSTS_WITH_MERCHANT_CHROME, type HostEntryClassification, LedgerRow, LineItem, MCP_DISPLAY_MODES, MCP_HOSTED_MIN_WIDTH, MCP_USAGE_CRITICAL_AT, MCP_USAGE_WARNING_AT, McpAccountView, type McpAccountViewProps, McpApp, type McpAppBootstrapLike, type McpAppFull, type McpAppLike, type McpAppProps, McpAppShell, type McpAppShellProps, type McpAppViewOverrides, type McpBootstrap, type McpBridgeAppLike, McpBridgeProvider, type McpBridgeProviderProps, type McpBridgeValue, McpCheckoutView, type McpCheckoutViewProps, type McpContainerDimensions, type McpDisplayMode, McpDisplayModeProvider, type McpDisplayModeProviderProps, type McpDisplayModeState, McpHostInfoProvider, type McpHostInfoProviderProps, type McpHostedRail, type McpMessageOnSuccess, McpPayingAs, type McpPayingAsProps, type McpSafeAreaInsets, type McpSuccessEvent, type McpTabKind, type McpToolResult, McpTopupView, type McpTopupViewProps, type McpUiHostContextLike, McpUsageMeter, type McpUsageMeterProps, type McpView, type McpViewClassNames, type McpViewKind, McpViewRouter, type McpViewRouterProps, type MeterTone, type NotifyModelContextParams, type OneTimeDisplay, type PeriodDisplay, Pill, type PlanActions, type PlanActionsInput, type PlanLike, PlanRow, type PlanShape, PresetTile, type PurchaseSnapshotLike, type RateDisplay, type RemainingDisplay, SOLVAPAY_MCP_APP_CAPABILITIES, SOLVAPAY_TRANSPORT_TOOL_NAMES, Section, type SendMessageParams, SplitRow, StatusDot, StatusPill, type StatusPillTone, type StripeProbeState, Toggle, type WaitForInitialToolResultOptions, type WaitForInitialToolResultResult, allowanceMeterUnit, classifyHostEntry, createMcpAppAdapter, daysUntil, deriveActiveProducts, fetchMcpBootstrap, fetchMcpBootstrapViaResource, findCatalogPlan, formatAllowanceTerms, formatMerchantPlace, formatProductTerms, formatSince, hostSafeAreaPadding, hostWidthPx, isMcpDisplayMode, isTransportToolName, mapChargeRow, mapCreditActivityRow, mcpUsageWarningAt, mergePlanSnapshot, parseBootstrapFromToolResult, planConsequence, readDisplayModeState, remainingCap, resetStripeProbeCacheForTests, resolveAccountState, resolveActivationStrategy, resolveActivityStrip, resolveHostedRail, resolveMcpClassNames, resolveMerchantStrip, resolveMeterTone, resolveOneTimeDisplay, resolvePeriodDisplay, resolvePlanActions, resolvePlanShape, resolveRateDisplay, resolveRemaining, sanitizeDecimalInput, seedMcpCaches, statusPillTone, useDisplayMode, useHostLocale, useHostName, useMcpBridge, useMcpToolResult, useStripeProbe, waitForInitialToolResult, websiteHostLabel };
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as SolvaPayTransport, a1 as SolvaPayProviderInitial, D as SolvaPayConfig, B as BootstrapPlanLike, y as PurchaseInfo, a2 as CreditActivityType, a3 as CreditActivityEntry, H as Merchant } from '../useUsage-
|
|
1
|
+
import { w as SolvaPayTransport, a1 as SolvaPayProviderInitial, D as SolvaPayConfig, B as BootstrapPlanLike, y as PurchaseInfo, a2 as CreditActivityType, a3 as CreditActivityEntry, H as Merchant } from '../useUsage-CwvxnICf.js';
|
|
2
2
|
import { TOOL_FOR_VIEW, SolvaPayMcpViewKind, BootstrapMerchant, BootstrapProduct, BootstrapPlan, BootstrapCustomer } from '@solvapay/mcp-core';
|
|
3
3
|
export { MCP_TOOL_NAMES, McpToolName } from '@solvapay/mcp-core';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { PricingOptionLike, PricedLike, BalancePegLike } from '@solvapay/core';
|
|
7
|
-
import { U as UsageMeterRootProps } from '../UsageMeter-
|
|
7
|
+
import { U as UsageMeterRootProps } from '../UsageMeter-DZxLZt4A.js';
|
|
8
8
|
import '@stripe/stripe-js';
|
|
9
9
|
import '../adapters/auth.js';
|
|
10
10
|
|
|
@@ -100,7 +100,7 @@ declare function createMcpAppAdapter(app: McpAppLike): SolvaPayTransport;
|
|
|
100
100
|
*
|
|
101
101
|
* ## Flow
|
|
102
102
|
*
|
|
103
|
-
* 1. `loadStripe(publishableKey)` with a ≤
|
|
103
|
+
* 1. `loadStripe(publishableKey)` with a ≤10s timeout. Reject /
|
|
104
104
|
* timeout → `'blocked'` (covers `script-src` blocks and slow
|
|
105
105
|
* CDNs).
|
|
106
106
|
* 2. `stripe.elements({ mode: 'setup', currency: 'usd' })` +
|
|
@@ -114,14 +114,16 @@ declare function createMcpAppAdapter(app: McpAppLike): SolvaPayTransport;
|
|
|
114
114
|
* - stripe-domain `frame-src` violation → `'blocked'`.
|
|
115
115
|
* - `loaderror` → `'blocked'`.
|
|
116
116
|
* - `ready` → `'ready'` (but only when no violation has fired).
|
|
117
|
-
* - ≤
|
|
117
|
+
* - ≤6s element-mount timeout → `'blocked'`.
|
|
118
118
|
* 5. Always tear down (element unmount + host node removed +
|
|
119
119
|
* listener removed) on resolve, effect cleanup, and defensively
|
|
120
120
|
* on re-renders.
|
|
121
121
|
*
|
|
122
|
-
* Total worst-case budget ≤
|
|
123
|
-
* up to
|
|
124
|
-
*
|
|
122
|
+
* Total worst-case budget ≤ 16s (script load up to 10s + iframe mount
|
|
123
|
+
* up to 6s). The checkout and top-up surfaces no longer block on this
|
|
124
|
+
* — they show plans / amounts immediately and only consult the probe
|
|
125
|
+
* at the payment step — so a slow cold load is no longer user-visible.
|
|
126
|
+
* Public return type unchanged: `'loading' | 'ready' | 'blocked'`.
|
|
125
127
|
*
|
|
126
128
|
* Note on the key: `publishableKey` is SolvaPay's **platform** Stripe pk
|
|
127
129
|
* (same one the backend returns from `create_payment_intent`). It is used
|
|
@@ -135,6 +137,11 @@ declare function createMcpAppAdapter(app: McpAppLike): SolvaPayTransport;
|
|
|
135
137
|
* merchant's own publishable key is never involved.
|
|
136
138
|
*/
|
|
137
139
|
type StripeProbeState = 'loading' | 'ready' | 'blocked';
|
|
140
|
+
/**
|
|
141
|
+
* @internal Test-only: clear the session probe cache. Do not use in
|
|
142
|
+
* application code.
|
|
143
|
+
*/
|
|
144
|
+
declare function resetStripeProbeCacheForTests(): void;
|
|
138
145
|
declare function useStripeProbe(publishableKey: string | null): StripeProbeState;
|
|
139
146
|
|
|
140
147
|
declare function useHostLocale(): string;
|
|
@@ -305,6 +312,11 @@ interface McpBootstrap {
|
|
|
305
312
|
plans: BootstrapPlan[];
|
|
306
313
|
/** Per-customer snapshot — null when the bootstrap call was unauthenticated. */
|
|
307
314
|
customer: BootstrapCustomer | null;
|
|
315
|
+
/**
|
|
316
|
+
* Hosted portal URL that opens the auto-recharge form. Null when no
|
|
317
|
+
* portal session could be minted.
|
|
318
|
+
*/
|
|
319
|
+
autoRechargeUrl?: string | null;
|
|
308
320
|
}
|
|
309
321
|
/**
|
|
310
322
|
* Extended `McpAppLike` shape used by `fetchMcpBootstrap` — the base adapter
|
|
@@ -770,10 +782,15 @@ interface McpAccountViewProps {
|
|
|
770
782
|
*/
|
|
771
783
|
onTopup?: () => void;
|
|
772
784
|
/**
|
|
773
|
-
*
|
|
774
|
-
*
|
|
785
|
+
* Auto-recharge snapshot from the bootstrap limits payload.
|
|
786
|
+
* Absent means unknown (older server) — the row renders as off.
|
|
787
|
+
*/
|
|
788
|
+
autoRecharge?: BootstrapCustomer['autoRecharge'] | null;
|
|
789
|
+
/**
|
|
790
|
+
* Hosted portal URL that opens the auto-recharge form. The row
|
|
791
|
+
* renders status without an action when this is missing.
|
|
775
792
|
*/
|
|
776
|
-
|
|
793
|
+
autoRechargeUrl?: string | null;
|
|
777
794
|
/**
|
|
778
795
|
* Called when the user clicks "Pick a plan" or Change plan.
|
|
779
796
|
* Wired by the shell to switch to checkout.
|
|
@@ -785,21 +802,14 @@ interface McpAccountViewProps {
|
|
|
785
802
|
*/
|
|
786
803
|
plans?: readonly PlanLike[];
|
|
787
804
|
}
|
|
788
|
-
declare function McpAccountView({ product, productRef, classNames, onTopup,
|
|
789
|
-
|
|
790
|
-
interface McpAutoRechargeViewProps {
|
|
791
|
-
classNames?: McpViewClassNames;
|
|
792
|
-
/** Wired by the shell to return to the account surface. */
|
|
793
|
-
onBack?: () => void;
|
|
794
|
-
}
|
|
795
|
-
declare function McpAutoRechargeView({ classNames, onBack }: McpAutoRechargeViewProps): react_jsx_runtime.JSX.Element;
|
|
805
|
+
declare function McpAccountView({ product, productRef, classNames, onTopup, autoRecharge, autoRechargeUrl, onChangePlan, plans, }: McpAccountViewProps): react_jsx_runtime.JSX.Element;
|
|
796
806
|
|
|
797
807
|
interface McpCheckoutViewProps {
|
|
798
808
|
productRef: string;
|
|
799
809
|
/**
|
|
800
810
|
* Stripe publishable key used by `useStripeProbe` to detect CSP-blocked
|
|
801
|
-
* hosts. Pass `null` to skip the probe
|
|
802
|
-
*
|
|
811
|
+
* hosts. Pass `null` to skip the probe: the plan picker still renders,
|
|
812
|
+
* and the hosted handoff is forced only at the payment step.
|
|
803
813
|
*/
|
|
804
814
|
publishableKey?: string | null;
|
|
805
815
|
returnUrl: string;
|
|
@@ -851,7 +861,11 @@ interface McpCheckoutViewProps {
|
|
|
851
861
|
declare function McpCheckoutView({ productRef, publishableKey, returnUrl, onPurchaseSuccess, onRequestTopup: _onRequestTopup, fromPaywall, paywallKind, plans, onClose, onBack, initialPlanRef, autoAdvance, classNames, children, }: McpCheckoutViewProps): react_jsx_runtime.JSX.Element;
|
|
852
862
|
|
|
853
863
|
interface McpTopupViewProps {
|
|
854
|
-
/**
|
|
864
|
+
/**
|
|
865
|
+
* Stripe publishable key used by `useStripeProbe`. Pass `null` to skip
|
|
866
|
+
* the probe: the amount step still renders, and the hosted portal
|
|
867
|
+
* handoff is forced only at the payment step.
|
|
868
|
+
*/
|
|
855
869
|
publishableKey?: string | null;
|
|
856
870
|
returnUrl: string;
|
|
857
871
|
/**
|
|
@@ -1010,7 +1024,6 @@ interface McpAppViewOverrides {
|
|
|
1010
1024
|
checkout?: React.ComponentType<McpCheckoutViewProps>;
|
|
1011
1025
|
account?: React.ComponentType<McpAccountViewProps>;
|
|
1012
1026
|
topup?: React.ComponentType<McpTopupViewProps>;
|
|
1013
|
-
autoRecharge?: React.ComponentType<McpAutoRechargeViewProps>;
|
|
1014
1027
|
}
|
|
1015
1028
|
interface McpAppProps {
|
|
1016
1029
|
app: McpAppFull;
|
|
@@ -1592,4 +1605,4 @@ declare function mcpUsageWarningAt(remaining: number | null | undefined): number
|
|
|
1592
1605
|
type McpUsageMeterProps = Omit<UsageMeterRootProps, 'warningAt' | 'criticalAt'>;
|
|
1593
1606
|
declare function McpUsageMeter({ usageOverride, className, children, ...rest }: McpUsageMeterProps): React.ReactElement;
|
|
1594
1607
|
|
|
1595
|
-
export { ACCOUNT_STATES, type AccountLimitsLike, type AccountPurchaseLike, type AccountState, type AccountStateInput, type ActivationStrategy, type ActiveProduct, type ActivityStripKind, AmountLadder, type AmountLadderRow, AppHeader, type AppHeaderMode, type AppHeaderProps, type AppToolResultEvents, AttributionFooter, BackLink, type BackLinkProps, CREDIT_ACTIVITY_TYPE_LABELS, DEFAULT_DISPLAY_MODE_STATE, Eyebrow, FactBand, type FactBandItem, Field, HOSTS_WITH_MERCHANT_CHROME, type HostEntryClassification, LedgerRow, LineItem, MCP_DISPLAY_MODES, MCP_HOSTED_MIN_WIDTH, MCP_USAGE_CRITICAL_AT, MCP_USAGE_WARNING_AT, McpAccountView, type McpAccountViewProps, McpApp, type McpAppBootstrapLike, type McpAppFull, type McpAppLike, type McpAppProps, McpAppShell, type McpAppShellProps, type McpAppViewOverrides,
|
|
1608
|
+
export { ACCOUNT_STATES, type AccountLimitsLike, type AccountPurchaseLike, type AccountState, type AccountStateInput, type ActivationStrategy, type ActiveProduct, type ActivityStripKind, AmountLadder, type AmountLadderRow, AppHeader, type AppHeaderMode, type AppHeaderProps, type AppToolResultEvents, AttributionFooter, BackLink, type BackLinkProps, CREDIT_ACTIVITY_TYPE_LABELS, DEFAULT_DISPLAY_MODE_STATE, Eyebrow, FactBand, type FactBandItem, Field, HOSTS_WITH_MERCHANT_CHROME, type HostEntryClassification, LedgerRow, LineItem, MCP_DISPLAY_MODES, MCP_HOSTED_MIN_WIDTH, MCP_USAGE_CRITICAL_AT, MCP_USAGE_WARNING_AT, McpAccountView, type McpAccountViewProps, McpApp, type McpAppBootstrapLike, type McpAppFull, type McpAppLike, type McpAppProps, McpAppShell, type McpAppShellProps, type McpAppViewOverrides, type McpBootstrap, type McpBridgeAppLike, McpBridgeProvider, type McpBridgeProviderProps, type McpBridgeValue, McpCheckoutView, type McpCheckoutViewProps, type McpContainerDimensions, type McpDisplayMode, McpDisplayModeProvider, type McpDisplayModeProviderProps, type McpDisplayModeState, McpHostInfoProvider, type McpHostInfoProviderProps, type McpHostedRail, type McpMessageOnSuccess, McpPayingAs, type McpPayingAsProps, type McpSafeAreaInsets, type McpSuccessEvent, type McpTabKind, type McpToolResult, McpTopupView, type McpTopupViewProps, type McpUiHostContextLike, McpUsageMeter, type McpUsageMeterProps, type McpView, type McpViewClassNames, type McpViewKind, McpViewRouter, type McpViewRouterProps, type MeterTone, type NotifyModelContextParams, type OneTimeDisplay, type PeriodDisplay, Pill, type PlanActions, type PlanActionsInput, type PlanLike, PlanRow, type PlanShape, PresetTile, type PurchaseSnapshotLike, type RateDisplay, type RemainingDisplay, SOLVAPAY_MCP_APP_CAPABILITIES, SOLVAPAY_TRANSPORT_TOOL_NAMES, Section, type SendMessageParams, SplitRow, StatusDot, StatusPill, type StatusPillTone, type StripeProbeState, Toggle, type WaitForInitialToolResultOptions, type WaitForInitialToolResultResult, allowanceMeterUnit, classifyHostEntry, createMcpAppAdapter, daysUntil, deriveActiveProducts, fetchMcpBootstrap, fetchMcpBootstrapViaResource, findCatalogPlan, formatAllowanceTerms, formatMerchantPlace, formatProductTerms, formatSince, hostSafeAreaPadding, hostWidthPx, isMcpDisplayMode, isTransportToolName, mapChargeRow, mapCreditActivityRow, mcpUsageWarningAt, mergePlanSnapshot, parseBootstrapFromToolResult, planConsequence, readDisplayModeState, remainingCap, resetStripeProbeCacheForTests, resolveAccountState, resolveActivationStrategy, resolveActivityStrip, resolveHostedRail, resolveMcpClassNames, resolveMerchantStrip, resolveMeterTone, resolveOneTimeDisplay, resolvePeriodDisplay, resolvePlanActions, resolvePlanShape, resolveRateDisplay, resolveRemaining, sanitizeDecimalInput, seedMcpCaches, statusPillTone, useDisplayMode, useHostLocale, useHostName, useMcpBridge, useMcpToolResult, useStripeProbe, waitForInitialToolResult, websiteHostLabel };
|