@passflow/react 0.18.0 → 0.19.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 (64) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.es.js +126 -118
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/components/flow/passflow/index.d.cts +7 -1
  7. package/dist/src/components/flow/passflow/index.d.ts +7 -1
  8. package/dist/src/components/flow/passflow/index.d.ts.map +1 -1
  9. package/dist/src/components/form/signin/index.d.cts +2 -1
  10. package/dist/src/components/form/signin/index.d.ts +2 -1
  11. package/dist/src/components/form/signin/index.d.ts.map +1 -1
  12. package/dist/src/components/form/signup/index.d.cts +2 -1
  13. package/dist/src/components/form/signup/index.d.ts +2 -1
  14. package/dist/src/components/form/signup/index.d.ts.map +1 -1
  15. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.cts +13 -0
  16. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.ts +13 -0
  17. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.ts.map +1 -0
  18. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.cts +6 -1
  19. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts +6 -1
  20. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -1
  21. package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts.map +1 -1
  22. package/dist/src/components/provider/passflow-provider.d.cts +4 -14
  23. package/dist/src/components/provider/passflow-provider.d.ts +4 -14
  24. package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
  25. package/dist/src/components/ui/login-screen/credentials.d.ts.map +1 -1
  26. package/dist/src/components/ui/login-screen/email-code.d.cts +16 -1
  27. package/dist/src/components/ui/login-screen/email-code.d.ts +16 -1
  28. package/dist/src/components/ui/login-screen/email-code.d.ts.map +1 -1
  29. package/dist/src/components/ui/login-screen/index.d.cts +1 -1
  30. package/dist/src/components/ui/login-screen/index.d.ts +1 -1
  31. package/dist/src/components/ui/login-screen/index.d.ts.map +1 -1
  32. package/dist/src/components/ui/login-screen/login-screen.d.ts.map +1 -1
  33. package/dist/src/components/ui/login-screen/passwordless-approval.d.cts +4 -0
  34. package/dist/src/components/ui/login-screen/passwordless-approval.d.ts +4 -0
  35. package/dist/src/components/ui/login-screen/passwordless-approval.d.ts.map +1 -0
  36. package/dist/src/components/ui/login-screen/passwordless-waiting.d.cts +4 -0
  37. package/dist/src/components/ui/login-screen/passwordless-waiting.d.ts +4 -0
  38. package/dist/src/components/ui/login-screen/passwordless-waiting.d.ts.map +1 -0
  39. package/dist/src/components/ui/login-screen/types.d.cts +46 -1
  40. package/dist/src/components/ui/login-screen/types.d.ts +46 -1
  41. package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
  42. package/dist/src/context/navigation-context.d.cts +3 -0
  43. package/dist/src/context/navigation-context.d.ts +3 -0
  44. package/dist/src/context/navigation-context.d.ts.map +1 -1
  45. package/dist/src/hooks/use-provider.d.cts +2 -1
  46. package/dist/src/hooks/use-provider.d.ts +2 -1
  47. package/dist/src/hooks/use-provider.d.ts.map +1 -1
  48. package/dist/src/types/auth-errors.d.cts +2 -0
  49. package/dist/src/types/auth-errors.d.ts +2 -0
  50. package/dist/src/types/auth-errors.d.ts.map +1 -1
  51. package/dist/src/types/index.d.cts +1 -0
  52. package/dist/src/types/index.d.ts +1 -0
  53. package/dist/src/types/index.d.ts.map +1 -1
  54. package/dist/src/utils/auth-error.d.cts +32 -1
  55. package/dist/src/utils/auth-error.d.ts +32 -1
  56. package/dist/src/utils/auth-error.d.ts.map +1 -1
  57. package/dist/src/utils/index.d.cts +2 -2
  58. package/dist/src/utils/index.d.ts +2 -2
  59. package/dist/src/utils/index.d.ts.map +1 -1
  60. package/dist/src/utils/url-params.d.cts +17 -0
  61. package/dist/src/utils/url-params.d.ts +17 -0
  62. package/dist/src/utils/url-params.d.ts.map +1 -1
  63. package/dist/style.css +1 -1
  64. package/package.json +6 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to `@passflow/react` are documented in this file.
4
4
 
5
+ ## [0.19.0] - 2026-11-04
6
+
7
+ ### Added
8
+
9
+ - Cross-device magic-link sign-in. With PKCE on, the tab that asked for the link shows a 4-digit code and finishes sign-in itself once the link is approved. The device that opens the link shows the request details, asks for that code, and offers Approve and Deny. Resend replaces the request, and the tab waits on the new one.
10
+ - `federatedLanding` prop on `Passflow` (`'app'` by default, or `'login-page'`). With `'login-page'`, PKCE on and no `parent_challenge_id`, a federated sign-in returns to the login page, which finishes it and forwards to the app with tokens, once. `useProvider` takes the same value as its third argument.
11
+ - `federatedLandingOutcome` on `NavigationContext`: `'signed-in'` or `'failed'` after a federated landing.
12
+ - `LoginScreen` states `passwordless-waiting` and `passwordless-approval`, each with Storybook stories. Also exported: the `FederatedLanding` and `FederatedLandingOutcome` types, and the approval message helpers from the utils.
13
+
14
+ ### Changed
15
+
16
+ - Requires `@passflow/core` `^0.24.0`.
17
+ - Federated PKCE landings now run from a committed effect through core's `deferFederatedLanding`, so they hold under React 18 StrictMode.
18
+
19
+ ### Fixed
20
+
21
+ - A refused parent challenge (`error.auth.flow.parent.expired`, `.not.found`, `.completed`) shows its own message on the form instead of marking the credential fields invalid. Start again reloads the page without `parent_challenge_id`.
22
+ - `match_code` from a passwordless start is no longer put in the query of the verify screen.
23
+
5
24
  ## [0.18.0] - 2026-11-03
6
25
 
7
26
  ### Added