@base316/react 0.6.0 → 0.7.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 +36 -0
- package/dist/index.cjs +1389 -973
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1330 -912
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +97 -4
- package/dist/src/SignIn.d.ts +78 -17
- package/dist/src/SignIn.d.ts.map +1 -1
- package/dist/src/SignUp.d.ts +25 -1
- package/dist/src/SignUp.d.ts.map +1 -1
- package/dist/src/SocialButtons.d.ts +16 -0
- package/dist/src/SocialButtons.d.ts.map +1 -0
- package/dist/src/SocialSignIn.d.ts +32 -0
- package/dist/src/SocialSignIn.d.ts.map +1 -0
- package/dist/src/appearance.d.ts +1 -1
- package/dist/src/appearance.d.ts.map +1 -1
- package/dist/src/manifest.d.ts.map +1 -1
- package/dist/src/sign-in-methods.d.ts +66 -0
- package/dist/src/sign-in-methods.d.ts.map +1 -0
- package/dist/src/social-icons.d.ts +11 -0
- package/dist/src/social-icons.d.ts.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @base316/react
|
|
2
2
|
|
|
3
|
+
## 0.7.0 — 2026-10-29
|
|
4
|
+
|
|
5
|
+
Needs `@base316/sdk` 0.9.0 (`auth.methods`, `socialSignInUrl`), so release the SDK first.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- **`<SignIn>` and `<SignUp>` follow the environment's sign-in settings.** They
|
|
10
|
+
read `GET /v1/auth/methods` and offer what the dashboard has switched on —
|
|
11
|
+
password, magic link, passkeys, text-message codes, social providers and SSO —
|
|
12
|
+
instead of what props turned on. Props can now only turn a method **off**
|
|
13
|
+
(`password`, `passkeys`, `magicLink`, `phone`, `social`, `sso` = `false`).
|
|
14
|
+
Two consequences to check when upgrading: passkeys appear only where the
|
|
15
|
+
environment allows them (they were on by default), and `phone` no longer turns
|
|
16
|
+
text messages on by itself. Until the answer arrives, or against an older API,
|
|
17
|
+
the form draws as before from its props.
|
|
18
|
+
- A magic link lands on the page rendering the form unless
|
|
19
|
+
`magicLinkRedirectUrl` says otherwise (it must be on the redirect allow-list).
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- Social sign-in buttons — "Continue with Google", "Continue with Apple" and the
|
|
24
|
+
rest — with each provider's mark and colours, on `<SignIn>` and `<SignUp>`,
|
|
25
|
+
when `socialRedirectUrl` names your server route that receives the `code`.
|
|
26
|
+
The button writes a `b316_oauth_state` cookie and sends the same value as
|
|
27
|
+
`state`; check them with `readOAuthState` before `exchangeCode`.
|
|
28
|
+
`socialState` carries a value of yours through.
|
|
29
|
+
- `<SocialSignIn socialRedirectUrl>`: the same buttons alone, for a sign-in or
|
|
30
|
+
sign-up form an application draws itself (`intent="sign-up"` hides them when
|
|
31
|
+
the environment is closed to new accounts; `divider` draws the "or" rule).
|
|
32
|
+
- "Sign in with SSO" on `<SignIn>` when an enterprise connection claims a
|
|
33
|
+
domain: the person types their work address and goes to their identity
|
|
34
|
+
provider.
|
|
35
|
+
- `labels` on `<SignIn>` (`SignInLabels`) for every string it shows, and new
|
|
36
|
+
`continueWith`, `or` and `closed` on `<SignUp>`. A closed sign-up says so
|
|
37
|
+
instead of offering a form, unless the page carries an invitation.
|
|
38
|
+
|
|
3
39
|
## 0.6.0 — Unreleased
|
|
4
40
|
|
|
5
41
|
Needs `@base316/sdk` 0.8.0 (`Base316Browser` `organizationId`), so release the SDK first.
|