@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.
@@ -89,7 +89,7 @@ import {
89
89
  useCreditGate,
90
90
  usePaywallNotice,
91
91
  usePurchaseGate
92
- } from "../chunk-AW5PCAYK.js";
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-LCBCOFXZ.js";
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.1",
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": "^0.2.8 || ^0.3.0 || ^0.4.0",
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.1",
89
- "@solvapay/server": "2.5.0",
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": {