@solvapay/react 1.2.0-preview-2ce4e321410b94fafaf6061be65f42cefc80a9b6 → 1.2.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +10 -5
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @solvapay/react changelog
2
2
 
3
- ## 1.2.0-preview-2ce4e321410b94fafaf6061be65f42cefc80a9b6
3
+ ## 1.2.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -205,10 +205,6 @@
205
205
  - Anthropic's PRIMARY use case is Desktop Claude at 400-500px. 520 is a small composite-flow buffer above that range — our `PlanStep → AmountStep → PaymentStep → SuccessStep` is slightly larger than a single-tool inline card.
206
206
  - At our 14px body, 520px ≈ 62ch — inside the 65-75ch optimal reading line length.
207
207
 
208
- - 8dd8638: Fix `McpAppFull.addEventListener`/`removeEventListener` types to accept the tighter `K extends keyof AppEventMap` shape introduced in `@modelcontextprotocol/ext-apps@^1.7`. Previously the loose `(evt: string, …)` signature on the interface didn't match what ext-apps exposes from 1.7+, so consumers seeing types from both `@solvapay/react` and `ext-apps@^1.7` would hit `TS2322: Type 'App' is not assignable to type 'McpAppFull'` at every `<McpApp app={...} />` mount site.
209
-
210
- The interface now declares `(evt: any, …)` for both event-listener fields, which is permissive enough to satisfy the new tightened generic without giving up the legacy `ontoolresult` setter fallback. Fixes [PR #169](https://github.com/solvapay/solvapay-sdk/pull/169).
211
-
212
208
  - b53abcb: `<MandateText>` now explicitly calls out that one-time charges are one-time. The `oneTime` mandate template (rendered by `<MandateText>`, `<PaywallNotice.EmbeddedCheckout>`, and `<CheckoutSteps.PaymentForm>` whenever the resolved plan is a one-time / lifetime plan) was previously indistinguishable from the recurring template at a glance: _"By confirming, you authorize Acme Inc to charge $99 for Widget API. Payments are processed by SolvaPay."_ — no signal that this is a single charge versus a subscription. Inserts "a one-time" before the amount so the sentence now reads _"...to charge a one-time $99 for Widget API..."_. Mirrors the disambiguation the `recurring` template gets via `every {period} until you cancel`.
213
209
 
214
210
  Integrators with snapshot tests pinned to the previous wording will need to update their fixtures. Integrators using a custom `copy.mandate.oneTime` override are unaffected.
@@ -259,6 +255,15 @@
259
255
  A topup creates a balance transaction, not a paid plan purchase, so `hasPaidPurchase` would never flip on subsequent topups. Treating the attached `balance` block the same way the `activation_required` branch does fixes the post-topup auto-dismiss for `<PaywallNotice.Root onResolved>` consumers.
260
256
  - @solvapay/mcp-core@0.2.4
261
257
 
258
+ ## 1.1.4
259
+
260
+ ### Patch Changes
261
+
262
+ - 8dd8638: Fix `McpAppFull.addEventListener`/`removeEventListener` types to accept the tighter `K extends keyof AppEventMap` shape introduced in `@modelcontextprotocol/ext-apps@^1.7`. Previously the loose `(evt: string, …)` signature on the interface didn't match what ext-apps exposes from 1.7+, so consumers seeing types from both `@solvapay/react` and `ext-apps@^1.7` would hit `TS2322: Type 'App' is not assignable to type 'McpAppFull'` at every `<McpApp app={...} />` mount site.
263
+
264
+ The interface now declares `(evt: any, …)` for both event-listener fields, which is permissive enough to satisfy the new tightened generic without giving up the legacy `ontoolresult` setter fallback. Fixes [PR #169](https://github.com/solvapay/solvapay-sdk/pull/169).
265
+ - @solvapay/mcp-core@0.2.4
266
+
262
267
  ## 1.1.3
263
268
 
264
269
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvapay/react",
3
- "version": "1.2.0-preview-2ce4e321410b94fafaf6061be65f42cefc80a9b6",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -79,9 +79,9 @@
79
79
  "react-dom": "^19.2.5",
80
80
  "typescript": "^5.9.3",
81
81
  "vitest": "^4.1.2",
82
- "@solvapay/server": "1.1.0-preview-2ce4e321410b94fafaf6061be65f42cefc80a9b6",
83
- "@solvapay/test-utils": "0.0.0",
84
- "@solvapay/mcp-core": "0.2.4"
82
+ "@solvapay/mcp-core": "0.2.4",
83
+ "@solvapay/server": "1.1.0",
84
+ "@solvapay/test-utils": "0.0.0"
85
85
  },
86
86
  "scripts": {
87
87
  "build": "tsup src/index.tsx src/primitives/index.ts src/adapters/auth.ts src/mcp/index.ts --format esm,cjs --dts --tsconfig tsconfig.build.json && cp src/styles.css dist/styles.css && mkdir -p dist/mcp && cp src/mcp/styles.css dist/mcp/styles.css",