@base316/react 0.5.1 → 0.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @base316/react
2
2
 
3
+ ## 0.6.0 — Unreleased
4
+
5
+ Needs `@base316/sdk` 0.8.0 (`Base316Browser` `organizationId`), so release the SDK first.
6
+
7
+ ### Added
8
+
9
+ - `<Base316Provider organizationId>`: whose billing the components under it show
10
+ and change. `SubscriptionManager`, `PricingTable`, `Invoices`, `BillingPortal`
11
+ and the rest read the signed-in person's own account by default, which for
12
+ somebody in several organizations is their oldest one, so an app with a team
13
+ on screen showed, and could cancel, another organization's subscription. Set
14
+ it to the organization on screen.
15
+
16
+ ## 0.5.2 — 2026-10-21
17
+
18
+ Needs `@base316/sdk` 0.7.1 (`billing.startCancellation`), so release the SDK first.
19
+ New dependency: `qrcode-generator` (MIT, no dependencies of its own).
20
+
21
+ ### Added
22
+
23
+ - `<TwoFactorManager />` shows a **QR code** for an authenticator app. It used to
24
+ show only the key and an `otpauth://` link, which on a computer meant typing
25
+ the key by hand. The code is drawn in the browser as inline SVG (`role="img"`,
26
+ class `b316-mfa-qr`, dark on white in every theme) — the secret is never sent
27
+ anywhere to become a picture. Under it, "Can't scan? Enter this key" with the
28
+ key in groups of four, and the link, for somebody setting this up on the phone
29
+ that is showing the page.
30
+
31
+ ### Changed
32
+
33
+ - `<SubscriptionManager />` cancels through a short flow: it asks why the user
34
+ is leaving (optional), shows the environment's retention offer when there is
35
+ one (**Accept offer and stay** / **No thanks, cancel**), and otherwise
36
+ cancels at the period end as before. Exports `describeRetentionOffer`.
37
+
38
+ ### Fixed
39
+
40
+ - `<SignIn />` shows "Confirm your email address before signing in." when a
41
+ passkey is good but the environment requires a confirmed address, instead of
42
+ "That passkey did not work." — including from browser autofill, which
43
+ otherwise failed silently.
44
+
3
45
  ## 0.5.1 — 2026-10-18
4
46
 
5
47
  Needs `@base316/sdk` 0.7.0 (`Principal.organizationId`). No component changes: released so an app