@base316/react 0.7.0 → 0.8.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,38 @@
1
1
  # @base316/react
2
2
 
3
+ ## 0.8.0 — 2026-11-06
4
+
5
+ Published after `@base316/sdk` 0.10.0 (the workspace dependency pins it), so
6
+ release the SDK first.
7
+
8
+ ### Added
9
+
10
+ - `useAddons()`: the signed-in user's addons (`attached`, `available`) with
11
+ `attach`, `setQuantity` and `remove`, over the SDK's self-serve addon
12
+ methods. No markup, like `usePlans`; `lastError` is the API's code
13
+ (`no_payment_method`, `already_attached`, …).
14
+
15
+ - `SignUp` shows the environment's Cloudflare Turnstile check when the sign-up
16
+ CAPTCHA is on, and sends its token with the form. **Upgrade before setting the
17
+ CAPTCHA to refuse:** `SignUp` from 0.7.0 and earlier sends no token, so every
18
+ sign-up through it is refused (`CAPTCHA_FAILED`), or recorded as a failure in
19
+ record-only mode. If your site sets a Content-Security-Policy, allow
20
+ `https://challenges.cloudflare.com` for scripts and frames.
21
+
22
+ ### Fixed
23
+
24
+ - `SignUp` with passwords off and no social provider showed a password form
25
+ the API refuses (`403 METHOD_DISABLED`); it now says creating an account is
26
+ not available (`labels.noMethods`). With a provider, it shows the provider
27
+ buttons alone, as before.
28
+
29
+ ### Changed
30
+
31
+ - US English throughout: component text, default labels, the component
32
+ manifest's descriptions and the type documentation now read "color",
33
+ "canceled", "enrollment", "behavior" and so on. Class names (such as
34
+ `b316-mfa-enrol`), element ids, props and label keys are unchanged.
35
+
3
36
  ## 0.7.0 — 2026-10-29
4
37
 
5
38
  Needs `@base316/sdk` 0.9.0 (`auth.methods`, `socialSignInUrl`), so release the SDK first.
package/README.md CHANGED
@@ -24,7 +24,7 @@ export default function App({ children }) {
24
24
 
25
25
  The provider holds one client and the signed-in user's session, and fetches the
26
26
  branding you configured in the Base316 dashboard — so what you set there is what
27
- these components look like here. No colours to keep in step in two places.
27
+ these components look like here. No colors to keep in step in two places.
28
28
 
29
29
  ## Sign in, in your own page
30
30
 
@@ -59,7 +59,7 @@ import {
59
59
 
60
60
  Three ways, from least to most invasive. Use the first that works.
61
61
 
62
- **1. The dashboard.** Whatever you set under _Sign-in pages_ — brand colour,
62
+ **1. The dashboard.** Whatever you set under _Sign-in pages_ — brand color,
63
63
  background, logo — arrives here automatically.
64
64
 
65
65
  **2. `appearance` tokens.** No CSS to write:
@@ -74,7 +74,7 @@ background, logo — arrives here automatically.
74
74
  **3. Your own CSS**, targeting the `b316-*` class names, or a `className` on any
75
75
  component to hand it your utility classes.
76
76
 
77
- Every colour, radius and font is behind a `--b316-*` custom property. Nothing
77
+ Every color, radius and font is behind a `--b316-*` custom property. Nothing
78
78
  inherits your application's styles automatically — silently absorbing whatever
79
79
  `body { font }` and `button { }` rules happen to exist produces components that
80
80
  look broken in ways neither side can predict.