@solvapay/react 2.2.1 → 2.2.2-preview-09731417a0a7b4fd3afb4783fdf20b5ad293f63d
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 +12 -0
- package/dist/{UsageMeter-CkJ_nowq.d.ts → UsageMeter-BZWfC5KX.d.ts} +1 -1
- package/dist/{UsageMeter-ClENA677.d.cts → UsageMeter-BiujMmVR.d.cts} +1 -1
- package/dist/{chunk-QZLY6SIU.js → chunk-4UFQDYG5.js} +1 -1
- package/dist/{chunk-LCBCOFXZ.js → chunk-GPP4MY3I.js} +54 -86
- package/dist/{chunk-AW5PCAYK.js → chunk-KUH3SNWZ.js} +1 -1
- package/dist/{index-DFtP872_.d.cts → index-B5QUesJE.d.cts} +5 -1
- package/dist/{index-D4EhOmYp.d.ts → index-BAYpUp5R.d.ts} +5 -1
- package/dist/index.cjs +32 -55
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +3 -3
- package/dist/mcp/index.cjs +29 -57
- package/dist/mcp/index.d.cts +2 -2
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +6 -10
- package/dist/primitives/index.cjs +32 -55
- 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-x6DQG7xe.d.cts → useUsage-CRd_E6J3.d.cts} +9 -0
- package/dist/{useUsage-CfM9dQwB.d.ts → useUsage-DSPWQ37m.d.ts} +9 -0
- package/package.json +4 -4
package/dist/primitives/index.js
CHANGED
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
useCreditGate,
|
|
90
90
|
usePaywallNotice,
|
|
91
91
|
usePurchaseGate
|
|
92
|
-
} from "../chunk-
|
|
92
|
+
} from "../chunk-KUH3SNWZ.js";
|
|
93
93
|
import {
|
|
94
94
|
AmountPicker,
|
|
95
95
|
AmountPickerConfirm,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
usePlanSelector,
|
|
176
176
|
useTopupForm,
|
|
177
177
|
useUsageMeter
|
|
178
|
-
} from "../chunk-
|
|
178
|
+
} from "../chunk-GPP4MY3I.js";
|
|
179
179
|
import "../chunk-UMXOAUW7.js";
|
|
180
180
|
import "../chunk-MLKGABMK.js";
|
|
181
181
|
export {
|
|
@@ -834,6 +834,10 @@ interface components {
|
|
|
834
834
|
currency: string;
|
|
835
835
|
/** @description How many metered items the credit balance still covers (`balance / creditsPerUnit`) */
|
|
836
836
|
remainingUnits?: number;
|
|
837
|
+
/** @description Credits per minor unit of `currency` (typically 100) */
|
|
838
|
+
creditsPerMinorUnit?: number;
|
|
839
|
+
/** @description USD → display-currency rate used with creditsPerMinorUnit */
|
|
840
|
+
displayExchangeRate?: number;
|
|
837
841
|
};
|
|
838
842
|
LimitPlanItemDto: {
|
|
839
843
|
/** @description Derived billing cycle */
|
|
@@ -5310,6 +5314,11 @@ interface UsePlansOptions {
|
|
|
5310
5314
|
* Auto-select first paid plan on load
|
|
5311
5315
|
*/
|
|
5312
5316
|
autoSelectFirstPaid?: boolean;
|
|
5317
|
+
/**
|
|
5318
|
+
* Skip this plan when auto-selecting the first paid plan. Used so
|
|
5319
|
+
* the customer's already-active plan is not preselected.
|
|
5320
|
+
*/
|
|
5321
|
+
excludePlanRef?: string | null;
|
|
5313
5322
|
/**
|
|
5314
5323
|
* Plan reference to select initially when plans load.
|
|
5315
5324
|
* Applied at most once when selectionReady is true.
|
|
@@ -834,6 +834,10 @@ interface components {
|
|
|
834
834
|
currency: string;
|
|
835
835
|
/** @description How many metered items the credit balance still covers (`balance / creditsPerUnit`) */
|
|
836
836
|
remainingUnits?: number;
|
|
837
|
+
/** @description Credits per minor unit of `currency` (typically 100) */
|
|
838
|
+
creditsPerMinorUnit?: number;
|
|
839
|
+
/** @description USD → display-currency rate used with creditsPerMinorUnit */
|
|
840
|
+
displayExchangeRate?: number;
|
|
837
841
|
};
|
|
838
842
|
LimitPlanItemDto: {
|
|
839
843
|
/** @description Derived billing cycle */
|
|
@@ -5310,6 +5314,11 @@ interface UsePlansOptions {
|
|
|
5310
5314
|
* Auto-select first paid plan on load
|
|
5311
5315
|
*/
|
|
5312
5316
|
autoSelectFirstPaid?: boolean;
|
|
5317
|
+
/**
|
|
5318
|
+
* Skip this plan when auto-selecting the first paid plan. Used so
|
|
5319
|
+
* the customer's already-active plan is not preselected.
|
|
5320
|
+
*/
|
|
5321
|
+
excludePlanRef?: string | null;
|
|
5313
5322
|
/**
|
|
5314
5323
|
* Plan reference to select initially when plans load.
|
|
5315
5324
|
* Applied at most once when selectionReady is true.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solvapay/react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2-preview-09731417a0a7b4fd3afb4783fdf20b5ad293f63d",
|
|
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": "
|
|
60
|
+
"@solvapay/mcp-core": "0.4.2-preview-09731417a0a7b4fd3afb4783fdf20b5ad293f63d",
|
|
61
61
|
"react": "^18.2.0 || ^19.0.0",
|
|
62
62
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
63
63
|
},
|
|
@@ -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.4.
|
|
89
|
-
"@solvapay/server": "2.
|
|
88
|
+
"@solvapay/mcp-core": "0.4.2-preview-09731417a0a7b4fd3afb4783fdf20b5ad293f63d",
|
|
89
|
+
"@solvapay/server": "2.6.0-preview-09731417a0a7b4fd3afb4783fdf20b5ad293f63d",
|
|
90
90
|
"@solvapay/test-utils": "0.0.0"
|
|
91
91
|
},
|
|
92
92
|
"scripts": {
|