@dloizides/auth-web 1.2.2 → 1.4.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,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.0 (2026-05-31)
4
+
5
+ Additive release for the auth-UX reuse roll-out (feature-reuse-roadmap #1).
6
+ Promotes the "Forgot password?" modal body the product apps each hand-rolled
7
+ into a single shared, **react-query-free** export so katalogos / erevna / kefi
8
+ stop duplicating it. No breaking changes; every 1.2.x export is unchanged.
9
+
10
+ ### Added
11
+
12
+ - **`<ForgotPasswordFields>`** — the embedded, themeable "request a reset link"
13
+ body, sized to live inside an app-owned modal shell (no screen/card wrapper,
14
+ no title — the host modal owns those). Adds the two modal affordances a
15
+ screen-shaped form lacks: a `Cancel` button beside submit and a `Close` button
16
+ on the success state, each rendered only when its handler is supplied. Clears
17
+ itself when `visible` flips to `false` so reopening starts fresh.
18
+ - **`useForgotPasswordSubmit`** — the headless, **react-query-free** forgot-
19
+ password logic: a plain `useState` + `client.forgotPassword(...)` promise
20
+ chain that runs on a provider-less login route (where the existing
21
+ `useBffForgotPassword` `useMutation` crashes with "No QueryClient set"). Email
22
+ validation gating via `canSubmit`, anti-enumeration success, `hasNetworkError`,
23
+ and `reset()`. Also exports the `isValidForgotPasswordEmail` helper.
24
+ - **`ForgotPasswordFieldsLabels`** + **`DEFAULT_FORGOT_PASSWORD_FIELDS_LABELS`** —
25
+ the forgot-password label bag plus the modal `cancel` / `close` strings.
26
+ - New `AuthTestIds` entries `forgotPasswordCancelButton` /
27
+ `forgotPasswordCloseButton`.
28
+
29
+ ### Notes
30
+
31
+ - The existing screen-shaped `<ForgotPasswordForm>` (react-query-based) is
32
+ unchanged. A future cleanup may re-base it on `useForgotPasswordSubmit` to drop
33
+ its react-query coupling; deferred to keep this release additive.
34
+
3
35
  ## 1.2.0 (2026-05-22)
4
36
 
5
37
  Additive release for Phase 3d of the unified-auth plan — the event-scoped PIN