@passflow/react 0.18.0 → 0.20.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 (117) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.es.js +136 -136
  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/flow/two-factor-setup-magic-link/index.d.ts.map +1 -1
  10. package/dist/src/components/flow/two-factor-verify/index.d.cts +0 -2
  11. package/dist/src/components/flow/two-factor-verify/index.d.ts +0 -2
  12. package/dist/src/components/flow/two-factor-verify/index.d.ts.map +1 -1
  13. package/dist/src/components/flow/two-factor-verify/screen.d.cts +5 -0
  14. package/dist/src/components/flow/two-factor-verify/screen.d.ts +5 -0
  15. package/dist/src/components/flow/two-factor-verify/screen.d.ts.map +1 -0
  16. package/dist/src/components/form/reset-password/index.d.ts.map +1 -1
  17. package/dist/src/components/form/signin/index.d.cts +2 -1
  18. package/dist/src/components/form/signin/index.d.ts +2 -1
  19. package/dist/src/components/form/signin/index.d.ts.map +1 -1
  20. package/dist/src/components/form/signup/index.d.cts +2 -1
  21. package/dist/src/components/form/signup/index.d.ts +2 -1
  22. package/dist/src/components/form/signup/index.d.ts.map +1 -1
  23. package/dist/src/components/form/two-factor-challenge/index.d.ts.map +1 -1
  24. package/dist/src/components/form/two-factor-setup/setup-screen.d.cts +29 -0
  25. package/dist/src/components/form/two-factor-setup/setup-screen.d.ts +29 -0
  26. package/dist/src/components/form/two-factor-setup/setup-screen.d.ts.map +1 -0
  27. package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.cts +3 -0
  28. package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts +3 -0
  29. package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts.map +1 -1
  30. package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.cts +5 -2
  31. package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts +5 -2
  32. package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts.map +1 -1
  33. package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.cts +5 -3
  34. package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts +5 -3
  35. package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts.map +1 -1
  36. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.cts +13 -0
  37. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.ts +13 -0
  38. package/dist/src/components/form/verify-challenge/verify-challenge-approval.d.ts.map +1 -0
  39. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.cts +6 -1
  40. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts +6 -1
  41. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -1
  42. package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts.map +1 -1
  43. package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts.map +1 -1
  44. package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts.map +1 -1
  45. package/dist/src/components/provider/passflow-provider.d.cts +4 -14
  46. package/dist/src/components/provider/passflow-provider.d.ts +4 -14
  47. package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
  48. package/dist/src/components/ui/login-screen/credentials.d.ts.map +1 -1
  49. package/dist/src/components/ui/login-screen/email-code.d.cts +16 -1
  50. package/dist/src/components/ui/login-screen/email-code.d.ts +16 -1
  51. package/dist/src/components/ui/login-screen/email-code.d.ts.map +1 -1
  52. package/dist/src/components/ui/login-screen/index.d.cts +1 -1
  53. package/dist/src/components/ui/login-screen/index.d.ts +1 -1
  54. package/dist/src/components/ui/login-screen/index.d.ts.map +1 -1
  55. package/dist/src/components/ui/login-screen/login-screen.d.ts.map +1 -1
  56. package/dist/src/components/ui/login-screen/passwordless-approval.d.cts +4 -0
  57. package/dist/src/components/ui/login-screen/passwordless-approval.d.ts +4 -0
  58. package/dist/src/components/ui/login-screen/passwordless-approval.d.ts.map +1 -0
  59. package/dist/src/components/ui/login-screen/passwordless-waiting.d.cts +4 -0
  60. package/dist/src/components/ui/login-screen/passwordless-waiting.d.ts +4 -0
  61. package/dist/src/components/ui/login-screen/passwordless-waiting.d.ts.map +1 -0
  62. package/dist/src/components/ui/login-screen/shared.d.cts +4 -0
  63. package/dist/src/components/ui/login-screen/shared.d.ts +4 -0
  64. package/dist/src/components/ui/login-screen/shared.d.ts.map +1 -1
  65. package/dist/src/components/ui/login-screen/status.d.ts.map +1 -1
  66. package/dist/src/components/ui/login-screen/two-factor-code.d.cts +8 -0
  67. package/dist/src/components/ui/login-screen/two-factor-code.d.ts +8 -0
  68. package/dist/src/components/ui/login-screen/two-factor-code.d.ts.map +1 -0
  69. package/dist/src/components/ui/login-screen/two-factor-recovery-codes.d.cts +5 -0
  70. package/dist/src/components/ui/login-screen/two-factor-recovery-codes.d.ts +5 -0
  71. package/dist/src/components/ui/login-screen/two-factor-recovery-codes.d.ts.map +1 -0
  72. package/dist/src/components/ui/login-screen/two-factor-setup.d.cts +4 -0
  73. package/dist/src/components/ui/login-screen/two-factor-setup.d.ts +4 -0
  74. package/dist/src/components/ui/login-screen/two-factor-setup.d.ts.map +1 -0
  75. package/dist/src/components/ui/login-screen/types.d.cts +160 -6
  76. package/dist/src/components/ui/login-screen/types.d.ts +160 -6
  77. package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
  78. package/dist/src/context/navigation-context.d.cts +3 -0
  79. package/dist/src/context/navigation-context.d.ts +3 -0
  80. package/dist/src/context/navigation-context.d.ts.map +1 -1
  81. package/dist/src/hooks/use-provider.d.cts +2 -1
  82. package/dist/src/hooks/use-provider.d.ts +2 -1
  83. package/dist/src/hooks/use-provider.d.ts.map +1 -1
  84. package/dist/src/hooks/use-two-factor-enrollment.d.cts +58 -0
  85. package/dist/src/hooks/use-two-factor-enrollment.d.ts +58 -0
  86. package/dist/src/hooks/use-two-factor-enrollment.d.ts.map +1 -0
  87. package/dist/src/hooks/use-two-factor-setup-magic-link.d.cts +5 -15
  88. package/dist/src/hooks/use-two-factor-setup-magic-link.d.ts +5 -15
  89. package/dist/src/hooks/use-two-factor-setup-magic-link.d.ts.map +1 -1
  90. package/dist/src/hooks/use-two-factor-setup.d.ts.map +1 -1
  91. package/dist/src/hooks/use-two-factor-verify.d.ts.map +1 -1
  92. package/dist/src/types/auth-errors.d.cts +2 -0
  93. package/dist/src/types/auth-errors.d.ts +2 -0
  94. package/dist/src/types/auth-errors.d.ts.map +1 -1
  95. package/dist/src/types/index.d.cts +1 -0
  96. package/dist/src/types/index.d.ts +1 -0
  97. package/dist/src/types/index.d.ts.map +1 -1
  98. package/dist/src/types/two-factor-errors.d.cts +1 -2
  99. package/dist/src/types/two-factor-errors.d.ts +1 -2
  100. package/dist/src/types/two-factor-errors.d.ts.map +1 -1
  101. package/dist/src/utils/auth-error.d.cts +55 -1
  102. package/dist/src/utils/auth-error.d.ts +55 -1
  103. package/dist/src/utils/auth-error.d.ts.map +1 -1
  104. package/dist/src/utils/classify-two-factor-error.d.cts +5 -6
  105. package/dist/src/utils/classify-two-factor-error.d.ts +5 -6
  106. package/dist/src/utils/classify-two-factor-error.d.ts.map +1 -1
  107. package/dist/src/utils/index.d.cts +4 -4
  108. package/dist/src/utils/index.d.ts +4 -4
  109. package/dist/src/utils/index.d.ts.map +1 -1
  110. package/dist/src/utils/second-factor.d.cts +7 -1
  111. package/dist/src/utils/second-factor.d.ts +7 -1
  112. package/dist/src/utils/second-factor.d.ts.map +1 -1
  113. package/dist/src/utils/url-params.d.cts +17 -0
  114. package/dist/src/utils/url-params.d.ts +17 -0
  115. package/dist/src/utils/url-params.d.ts.map +1 -1
  116. package/dist/style.css +1 -1
  117. package/package.json +6 -3
@@ -1,9 +1,15 @@
1
- import type { SuccessAuthRedirect } from '../../../types/index.cjs';
1
+ import type { FederatedLanding, SuccessAuthRedirect } from '../../../types/index.cjs';
2
2
  import { type FlowLocation, type FlowNavigate } from './flow-router.cjs';
3
3
  export type { FlowLocation as PassflowFlowLocation, FlowNavigate as PassflowFlowNavigate } from './flow-router.cjs';
4
4
  type PassflowBaseProps = {
5
5
  successAuthRedirect?: SuccessAuthRedirect;
6
6
  federatedDisplayMode?: 'modal' | 'redirect';
7
+ /**
8
+ * Where a federated redirect comes back. `app` (the default) keeps today's redirect URL. `login-page`, for a hosted
9
+ * login page on a PKCE app, comes back to this page, which exchanges the code and forwards the tokens to
10
+ * `successAuthRedirect`, else the app's default redirect.
11
+ */
12
+ federatedLanding?: FederatedLanding;
7
13
  error?: string;
8
14
  relyingPartyId?: string;
9
15
  /**
@@ -1,9 +1,15 @@
1
- import type { SuccessAuthRedirect } from '../../../types/index.js';
1
+ import type { FederatedLanding, SuccessAuthRedirect } from '../../../types/index.js';
2
2
  import { type FlowLocation, type FlowNavigate } from './flow-router.js';
3
3
  export type { FlowLocation as PassflowFlowLocation, FlowNavigate as PassflowFlowNavigate } from './flow-router.js';
4
4
  type PassflowBaseProps = {
5
5
  successAuthRedirect?: SuccessAuthRedirect;
6
6
  federatedDisplayMode?: 'modal' | 'redirect';
7
+ /**
8
+ * Where a federated redirect comes back. `app` (the default) keeps today's redirect URL. `login-page`, for a hosted
9
+ * login page on a PKCE app, comes back to this page, which exchanges the code and forwards the tokens to
10
+ * `successAuthRedirect`, else the app's default redirect.
11
+ */
12
+ federatedLanding?: FederatedLanding;
7
13
  error?: string;
8
14
  relyingPartyId?: string;
9
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/passflow/index.tsx"],"names":[],"mappings":"AAeA,OAAO,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,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BAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC3C,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,CACI;IACE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GACD;IACE;;;;;OAKG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;CACxB,CACJ,CAAC;AAyQJ,eAAO,MAAM,YAAY,8DAA6C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-setup-magic-link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,EAAE,KAAK,gCAAgC,EAA6C,MAAM,SAAS,CAAC;AAE3G,OAAO,oBAAoB,CAAC;AAE5B;;GAEG;AACH,KAAK,cAAc,GAAG,WAAW,CAAC,gCAAgC,CAAC,OAAO,CAAC,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,mCAAmC;IACnC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAeF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC,gCAAgC,CAuH5E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-setup-magic-link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,EAAE,KAAK,gCAAgC,EAA6C,MAAM,SAAS,CAAC;AAS3G,OAAO,oBAAoB,CAAC;AAE5B;;GAEG;AACH,KAAK,cAAc,GAAG,WAAW,CAAC,gCAAgC,CAAC,OAAO,CAAC,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,mCAAmC;IACnC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAuDF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC,gCAAgC,CAkD5E,CAAC"}
@@ -3,8 +3,6 @@ import type { SuccessAuthRedirect } from '../../../types/index.cjs';
3
3
  type TwoFactorVerifyFlowProps = {
4
4
  successAuthRedirect?: SuccessAuthRedirect;
5
5
  signInPath?: string;
6
- twoFactorSetupPath?: string;
7
- useV2Flow?: boolean;
8
6
  };
9
7
  export declare const TwoFactorVerifyFlow: FC<TwoFactorVerifyFlowProps>;
10
8
  export {};
@@ -3,8 +3,6 @@ import type { SuccessAuthRedirect } from '../../../types/index.js';
3
3
  type TwoFactorVerifyFlowProps = {
4
4
  successAuthRedirect?: SuccessAuthRedirect;
5
5
  signInPath?: string;
6
- twoFactorSetupPath?: string;
7
- useV2Flow?: boolean;
8
6
  };
9
7
  export declare const TwoFactorVerifyFlow: FC<TwoFactorVerifyFlowProps>;
10
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-verify/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,oBAAoB,CAAC;AAE5B,KAAK,wBAAwB,GAAG;IAC9B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAwG5D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-verify/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,OAAO,oBAAoB,CAAC;AAE5B,KAAK,wBAAwB,GAAG;IAC9B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA6D5D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { LoginScreenProps } from '../../ui/index.cjs';
2
+ import { type UseTwoFactorEnrollmentReturn } from '../../../hooks/use-two-factor-enrollment.cjs';
3
+ /** The screen for the enrolment state; null on `verify`, which the verify and recovery forms draw. */
4
+ export declare const getTwoFactorEnrollmentScreenProps: (enrollment: UseTwoFactorEnrollmentReturn, onBackToSignIn: () => void) => LoginScreenProps | null;
5
+ //# sourceMappingURL=screen.d.ts.map
@@ -0,0 +1,5 @@
1
+ import type { LoginScreenProps } from '../../ui/index.js';
2
+ import { type UseTwoFactorEnrollmentReturn } from '../../../hooks/use-two-factor-enrollment.js';
3
+ /** The screen for the enrolment state; null on `verify`, which the verify and recovery forms draw. */
4
+ export declare const getTwoFactorEnrollmentScreenProps: (enrollment: UseTwoFactorEnrollmentReturn, onBackToSignIn: () => void) => LoginScreenProps | null;
5
+ //# sourceMappingURL=screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-verify/screen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAA6B,KAAK,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAKjH,sGAAsG;AACtG,eAAO,MAAM,iCAAiC,eAChC,4BAA4B,kBACxB,MAAM,IAAI,KACzB,gBAAgB,GAAG,IA2GrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/reset-password/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,oBAAoB,CAAC;AAM5B,KAAK,cAAc,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAWF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,cAAc,CA8G5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/reset-password/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,oBAAoB,CAAC;AAM5B,KAAK,cAAc,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAWF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,cAAc,CA+G5C,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import type { FC } from 'react';
2
- import type { SuccessAuthRedirect } from '../../../types/index.cjs';
2
+ import type { FederatedLanding, SuccessAuthRedirect } from '../../../types/index.cjs';
3
3
  export type TSignIn = {
4
4
  successAuthRedirect?: SuccessAuthRedirect;
5
5
  relyingPartyId?: string;
6
6
  federatedDisplayMode?: 'modal' | 'redirect';
7
+ federatedLanding?: FederatedLanding;
7
8
  signUpPath?: string;
8
9
  verifyOTPPath?: string;
9
10
  verifyMagicLinkPath?: string;
@@ -1,9 +1,10 @@
1
1
  import type { FC } from 'react';
2
- import type { SuccessAuthRedirect } from '../../../types/index.js';
2
+ import type { FederatedLanding, SuccessAuthRedirect } from '../../../types/index.js';
3
3
  export type TSignIn = {
4
4
  successAuthRedirect?: SuccessAuthRedirect;
5
5
  relyingPartyId?: string;
6
6
  federatedDisplayMode?: 'modal' | 'redirect';
7
+ federatedLanding?: FederatedLanding;
7
8
  signUpPath?: string;
8
9
  verifyOTPPath?: string;
9
10
  verifyMagicLinkPath?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signin/index.tsx"],"names":[],"mappings":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OAAO,CA8OlC,CAAC;AAEF,eAAO,MAAM,MAAM,wDAAwC,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import type { FC } from 'react';
2
- import type { SuccessAuthRedirect } from '../../../types/index.cjs';
2
+ import type { FederatedLanding, SuccessAuthRedirect } from '../../../types/index.cjs';
3
3
  export type TSignUp = {
4
4
  successAuthRedirect?: SuccessAuthRedirect;
5
5
  relyingPartyId?: string;
6
6
  federatedDisplayMode?: 'modal' | 'redirect';
7
+ federatedLanding?: FederatedLanding;
7
8
  signInPath?: string;
8
9
  verifyOTPPath?: string;
9
10
  verifyMagicLinkPath?: string;
@@ -1,9 +1,10 @@
1
1
  import type { FC } from 'react';
2
- import type { SuccessAuthRedirect } from '../../../types/index.js';
2
+ import type { FederatedLanding, SuccessAuthRedirect } from '../../../types/index.js';
3
3
  export type TSignUp = {
4
4
  successAuthRedirect?: SuccessAuthRedirect;
5
5
  relyingPartyId?: string;
6
6
  federatedDisplayMode?: 'modal' | 'redirect';
7
+ federatedLanding?: FederatedLanding;
7
8
  signInPath?: string;
8
9
  verifyOTPPath?: string;
9
10
  verifyMagicLinkPath?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signup/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAchC,OAAO,KAAK,EAAiB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAsDlE,MAAM,MAAM,OAAO,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,OAAO,CAwNlC,CAAC;AAEF,eAAO,MAAM,MAAM,wDAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signup/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAchC,OAAO,KAAK,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAuDpF,MAAM,MAAM,OAAO,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,OAAO,CA4NlC,CAAC;AAEF,eAAO,MAAM,MAAM,wDAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-challenge/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,KAAK,uBAAuB,GAAG;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA4K1D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-challenge/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,KAAK,uBAAuB,GAAG;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAgL1D,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { TwoFactorSetupResponse } from '@passflow/core';
2
+ import type { LoginScreenAction, LoginScreenProps } from '../../ui/index.cjs';
3
+ type SetupScreenStatus = {
4
+ busy: boolean;
5
+ error?: string | null;
6
+ };
7
+ type StartScreenProps = SetupScreenStatus & {
8
+ secondaryAction?: LoginScreenAction;
9
+ onStart: () => void;
10
+ };
11
+ type CodeScreenProps = SetupScreenStatus & {
12
+ data: TwoFactorSetupResponse;
13
+ /** Used when the server named no digit count. */
14
+ fallbackDigits?: number;
15
+ /** Tells the user something without marking the code invalid. An `error` takes its place. */
16
+ notice?: string;
17
+ secondaryAction?: LoginScreenAction;
18
+ onSubmit: (code: string) => void;
19
+ };
20
+ type RecoveryCodesScreenProps = SetupScreenStatus & {
21
+ codes: string[];
22
+ onContinue: () => void;
23
+ };
24
+ /** Direct enrolment and the setup link page share these, so both look the same. */
25
+ export declare const getTwoFactorSetupStartScreen: ({ busy, error, secondaryAction, onStart, }: StartScreenProps) => LoginScreenProps;
26
+ export declare const getTwoFactorSetupCodeScreen: ({ data, fallbackDigits, notice, busy, error, secondaryAction, onSubmit, }: CodeScreenProps) => LoginScreenProps;
27
+ export declare const getTwoFactorRecoveryCodesScreen: ({ codes, busy, error, onContinue, }: RecoveryCodesScreenProps) => LoginScreenProps;
28
+ export {};
29
+ //# sourceMappingURL=setup-screen.d.ts.map
@@ -0,0 +1,29 @@
1
+ import type { TwoFactorSetupResponse } from '@passflow/core';
2
+ import type { LoginScreenAction, LoginScreenProps } from '../../ui/index.js';
3
+ type SetupScreenStatus = {
4
+ busy: boolean;
5
+ error?: string | null;
6
+ };
7
+ type StartScreenProps = SetupScreenStatus & {
8
+ secondaryAction?: LoginScreenAction;
9
+ onStart: () => void;
10
+ };
11
+ type CodeScreenProps = SetupScreenStatus & {
12
+ data: TwoFactorSetupResponse;
13
+ /** Used when the server named no digit count. */
14
+ fallbackDigits?: number;
15
+ /** Tells the user something without marking the code invalid. An `error` takes its place. */
16
+ notice?: string;
17
+ secondaryAction?: LoginScreenAction;
18
+ onSubmit: (code: string) => void;
19
+ };
20
+ type RecoveryCodesScreenProps = SetupScreenStatus & {
21
+ codes: string[];
22
+ onContinue: () => void;
23
+ };
24
+ /** Direct enrolment and the setup link page share these, so both look the same. */
25
+ export declare const getTwoFactorSetupStartScreen: ({ busy, error, secondaryAction, onStart, }: StartScreenProps) => LoginScreenProps;
26
+ export declare const getTwoFactorSetupCodeScreen: ({ data, fallbackDigits, notice, busy, error, secondaryAction, onSubmit, }: CodeScreenProps) => LoginScreenProps;
27
+ export declare const getTwoFactorRecoveryCodesScreen: ({ codes, busy, error, onContinue, }: RecoveryCodesScreenProps) => LoginScreenProps;
28
+ export {};
29
+ //# sourceMappingURL=setup-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-screen.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-setup/setup-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAI3E,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,KAAK,gBAAgB,GAAG,iBAAiB,GAAG;IAC1C,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,KAAK,eAAe,GAAG,iBAAiB,GAAG;IACzC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,KAAK,wBAAwB,GAAG,iBAAiB,GAAG;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,4BAA4B,+CAKtC,gBAAgB,KAAG,gBAgBpB,CAAC;AAEH,eAAO,MAAM,2BAA2B,8EAQrC,eAAe,KAAG,gBAiCpB,CAAC;AAEF,eAAO,MAAM,+BAA+B,wCAKzC,wBAAwB,KAAG,gBAkB5B,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import type { FC } from 'react';
2
2
  type TwoFactorSetupFormProps = {
3
3
  onComplete?: (recoveryCodes: string[]) => void;
4
+ /** The way out of the first step only. */
4
5
  onCancel?: () => void;
6
+ /** The way out of the first step and the code step, labelled Back to sign in. */
7
+ onBackToSignIn?: () => void;
5
8
  numInputs?: number;
6
9
  };
7
10
  export declare const TwoFactorSetupForm: FC<TwoFactorSetupFormProps>;
@@ -1,7 +1,10 @@
1
1
  import type { FC } from 'react';
2
2
  type TwoFactorSetupFormProps = {
3
3
  onComplete?: (recoveryCodes: string[]) => void;
4
+ /** The way out of the first step only. */
4
5
  onCancel?: () => void;
6
+ /** The way out of the first step and the code step, labelled Back to sign in. */
7
+ onBackToSignIn?: () => void;
5
8
  numInputs?: number;
6
9
  };
7
10
  export declare const TwoFactorSetupForm: FC<TwoFactorSetupFormProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"two-factor-setup-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-setup/two-factor-setup-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAM3C,OAAO,oBAAoB,CAAC;AAE5B,KAAK,uBAAuB,GAAG;IAC7B,UAAU,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAsJ1D,CAAC"}
1
+ {"version":3,"file":"two-factor-setup-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-setup/two-factor-setup-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,oBAAoB,CAAC;AAE5B,KAAK,uBAAuB,GAAG;IAC7B,UAAU,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC/C,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAiD1D,CAAC"}
@@ -1,10 +1,13 @@
1
- import type { FC } from 'react';
1
+ import { type FC } from 'react';
2
2
  type TwoFactorRecoveryFormProps = {
3
3
  onSuccess?: () => void;
4
4
  onBack?: () => void;
5
+ /** The server ended the sign-in, or locked it for too many attempts. The form still shows why when this is not handled. */
6
+ onEnded?: (type: 'expired' | 'rate_limited') => void;
7
+ /** The way out once no further code can be taken. */
8
+ onBackToSignIn?: () => void;
5
9
  title?: string;
6
10
  subtitle?: string;
7
- signInPath?: string;
8
11
  /** Label of the "trust this device" option, unticked by default. */
9
12
  trustDeviceLabel?: string;
10
13
  };
@@ -1,10 +1,13 @@
1
- import type { FC } from 'react';
1
+ import { type FC } from 'react';
2
2
  type TwoFactorRecoveryFormProps = {
3
3
  onSuccess?: () => void;
4
4
  onBack?: () => void;
5
+ /** The server ended the sign-in, or locked it for too many attempts. The form still shows why when this is not handled. */
6
+ onEnded?: (type: 'expired' | 'rate_limited') => void;
7
+ /** The way out once no further code can be taken. */
8
+ onBackToSignIn?: () => void;
5
9
  title?: string;
6
10
  subtitle?: string;
7
- signInPath?: string;
8
11
  /** Label of the "trust this device" option, unticked by default. */
9
12
  trustDeviceLabel?: string;
10
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"two-factor-recovery-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-recovery-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,EAAE,EAAa,MAAM,OAAO,CAAC;AAOxD,OAAO,oBAAoB,CAAC;AAE5B,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAKF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAiKhE,CAAC"}
1
+ {"version":3,"file":"two-factor-recovery-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-recovery-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAU7D,OAAO,oBAAoB,CAAC;AAE5B,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,2HAA2H;IAC3H,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,KAAK,IAAI,CAAC;IACrD,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAKF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CA+DhE,CAAC"}
@@ -1,13 +1,15 @@
1
- import type { FC } from 'react';
1
+ import { type FC } from 'react';
2
2
  type TwoFactorVerifyFormProps = {
3
3
  onSuccess?: () => void;
4
4
  onUseRecovery?: () => void;
5
+ /** The server ended the sign-in, or locked it for too many attempts. The form still shows why when this is not handled. */
6
+ onEnded?: (type: 'expired' | 'rate_limited') => void;
7
+ /** The way out once no further code can be taken. */
8
+ onBackToSignIn?: () => void;
5
9
  title?: string;
6
10
  subtitle?: string;
7
11
  numInputs?: number;
8
12
  shouldAutoFocus?: boolean;
9
- signInPath?: string;
10
- twoFactorSetupPath?: string;
11
13
  /** Label of the "trust this device" option, unticked by default. */
12
14
  trustDeviceLabel?: string;
13
15
  };
@@ -1,13 +1,15 @@
1
- import type { FC } from 'react';
1
+ import { type FC } from 'react';
2
2
  type TwoFactorVerifyFormProps = {
3
3
  onSuccess?: () => void;
4
4
  onUseRecovery?: () => void;
5
+ /** The server ended the sign-in, or locked it for too many attempts. The form still shows why when this is not handled. */
6
+ onEnded?: (type: 'expired' | 'rate_limited') => void;
7
+ /** The way out once no further code can be taken. */
8
+ onBackToSignIn?: () => void;
5
9
  title?: string;
6
10
  subtitle?: string;
7
11
  numInputs?: number;
8
12
  shouldAutoFocus?: boolean;
9
- signInPath?: string;
10
- twoFactorSetupPath?: string;
11
13
  /** Label of the "trust this device" option, unticked by default. */
12
14
  trustDeviceLabel?: string;
13
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"two-factor-verify-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-verify-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAO3C,OAAO,oBAAoB,CAAC;AAE5B,KAAK,wBAAwB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAKF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAiN5D,CAAC"}
1
+ {"version":3,"file":"two-factor-verify-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-verify-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAK7D,OAAO,oBAAoB,CAAC;AAE5B,KAAK,wBAAwB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,2HAA2H;IAC3H,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,KAAK,IAAI,CAAC;IACrD,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAKF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAwE5D,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type FC } from 'react';
2
+ type VerifyChallengeApprovalProps = {
3
+ challengeId: string | null;
4
+ otp: string | null;
5
+ };
6
+ /**
7
+ * The device that opened an emailed link on a row only another device can sign in with. Opening it writes nothing: the
8
+ * user reads the request, then approves with the code shown on the other device, or denies. Errors from these calls
9
+ * are plain and carry no code, but are not logged here anyway, because this screen holds the OTP and the match code.
10
+ */
11
+ export declare const VerifyChallengeApproval: FC<VerifyChallengeApprovalProps>;
12
+ export {};
13
+ //# sourceMappingURL=verify-challenge-approval.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { type FC } from 'react';
2
+ type VerifyChallengeApprovalProps = {
3
+ challengeId: string | null;
4
+ otp: string | null;
5
+ };
6
+ /**
7
+ * The device that opened an emailed link on a row only another device can sign in with. Opening it writes nothing: the
8
+ * user reads the request, then approves with the code shown on the other device, or denies. Errors from these calls
9
+ * are plain and carry no code, but are not logged here anyway, because this screen holds the OTP and the match code.
10
+ */
11
+ export declare const VerifyChallengeApproval: FC<VerifyChallengeApprovalProps>;
12
+ export {};
13
+ //# sourceMappingURL=verify-challenge-approval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-challenge-approval.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-approval.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAarD,KAAK,4BAA4B,GAAG;IAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CA2GpE,CAAC"}
@@ -1,2 +1,7 @@
1
- export declare const VerifyChallengeMagicLink: () => import("react").JSX.Element;
1
+ import { type FC } from 'react';
2
+ type VerifyChallengeMagicLinkProps = {
3
+ signInPath?: string;
4
+ };
5
+ export declare const VerifyChallengeMagicLink: FC<VerifyChallengeMagicLinkProps>;
6
+ export {};
2
7
  //# sourceMappingURL=verify-challenge-magic-link.d.ts.map
@@ -1,2 +1,7 @@
1
- export declare const VerifyChallengeMagicLink: () => import("react").JSX.Element;
1
+ import { type FC } from 'react';
2
+ type VerifyChallengeMagicLinkProps = {
3
+ signInPath?: string;
4
+ };
5
+ export declare const VerifyChallengeMagicLink: FC<VerifyChallengeMagicLinkProps>;
6
+ export {};
2
7
  //# sourceMappingURL=verify-challenge-magic-link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAKA,OAAO,oBAAoB,CAAC;AAQ5B,eAAO,MAAM,wBAAwB,mCAyDpC,CAAC"}
1
+ {"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAgC,MAAM,OAAO,CAAC;AAK9D,OAAO,oBAAoB,CAAC;AA6L5B,KAAK,6BAA6B,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAuBtE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verify-challenge-otp-manual.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-manual.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,EAA8B,MAAM,OAAO,CAAC;AAS5D,OAAO,oBAAoB,CAAC;AAE5B,KAAK,6BAA6B,GAAG;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAOF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAgItE,CAAC"}
1
+ {"version":3,"file":"verify-challenge-otp-manual.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-manual.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,EAA8B,MAAM,OAAO,CAAC;AAS5D,OAAO,oBAAoB,CAAC;AAE5B,KAAK,6BAA6B,GAAG;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAOF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAiItE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verify-challenge-otp-redirect.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-redirect.tsx"],"names":[],"mappings":"AAYA,KAAK,+BAA+B,GAAG;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,sDAKpC,+BAA+B,uCA8CjC,CAAC"}
1
+ {"version":3,"file":"verify-challenge-otp-redirect.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp-redirect.tsx"],"names":[],"mappings":"AAYA,KAAK,+BAA+B,GAAG;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,sDAKpC,+BAA+B,uCA+CjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verify-challenge-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,OAAO,oBAAoB,CAAC;AAI5B,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,mBAAmB,CA4EtD,CAAC"}
1
+ {"version":3,"file":"verify-challenge-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAKnD,OAAO,oBAAoB,CAAC;AAI5B,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,mBAAmB,CAgFtD,CAAC"}
@@ -2,6 +2,8 @@ import { type PassflowConfig } from '@passflow/core';
2
2
  import React, { type FC, type ReactNode } from 'react';
3
3
  import { type UpgradeProviderProps } from './upgrade-provider.cjs';
4
4
  import { type NavigateFunction, type RouterType } from '../../context/index.cjs';
5
+ import { readParentChallengeIdFromURL } from '../../utils/url-params.cjs';
6
+ export { readParentChallengeIdFromURL };
5
7
  /**
6
8
  * The assurance-upgrade options a consumer may set on `PassflowProvider`.
7
9
  *
@@ -54,7 +56,8 @@ type PassflowProviderProps = PassflowConfig & {
54
56
  *
55
57
  * - /auth/login — password login
56
58
  * - /auth/register — password sign-up
57
- * - /auth/passwordless/* — OTP / magic-link start+complete
59
+ * - /auth/passwordless/start|complete — OTP / magic-link; the status and
60
+ * approval calls take no parent
58
61
  * - /auth/passkey/* — passkey registration/auth
59
62
  * - /auth/2fa/* — second-factor verify
60
63
  * - /auth/validate — emailed sign-up / sign-in code
@@ -64,18 +67,6 @@ type PassflowProviderProps = PassflowConfig & {
64
67
  * OIDC two-step flows)
65
68
  */
66
69
  export declare const AUTH_ENDPOINT_PATTERN: RegExp;
67
- /**
68
- * Read `parent_challenge_id` from the current URL's query string.
69
- * Returns `undefined` when not present so callers can short-circuit
70
- * the OIDC interceptor on non-OIDC mounts.
71
- *
72
- * Lowercases only the parameter KEYS (not values) so the
73
- * KSUID-shaped value isn't corrupted on the way through. (URL params
74
- * are case-sensitive per RFC 3986; some Passflow URLs use mixed
75
- * case like `appId=...`. The lowercase-keys treatment mirrors what
76
- * the bundled login-app was doing pre-SDK-migration.)
77
- */
78
- export declare const readParentChallengeIdFromURL: () => string | undefined;
79
70
  /**
80
71
  * Has the OIDC interceptor already taken ownership of the post-login navigation?
81
72
  *
@@ -157,5 +148,4 @@ export type OIDCExchangeContextValue = {
157
148
  };
158
149
  export declare const OIDCExchangeContext: React.Context<OIDCExchangeContextValue>;
159
150
  export declare const PassflowProvider: FC<PassflowProviderProps>;
160
- export {};
161
151
  //# sourceMappingURL=passflow-provider.d.ts.map
@@ -2,6 +2,8 @@ import { type PassflowConfig } from '@passflow/core';
2
2
  import React, { type FC, type ReactNode } from 'react';
3
3
  import { type UpgradeProviderProps } from './upgrade-provider.js';
4
4
  import { type NavigateFunction, type RouterType } from '../../context/index.js';
5
+ import { readParentChallengeIdFromURL } from '../../utils/url-params.js';
6
+ export { readParentChallengeIdFromURL };
5
7
  /**
6
8
  * The assurance-upgrade options a consumer may set on `PassflowProvider`.
7
9
  *
@@ -54,7 +56,8 @@ type PassflowProviderProps = PassflowConfig & {
54
56
  *
55
57
  * - /auth/login — password login
56
58
  * - /auth/register — password sign-up
57
- * - /auth/passwordless/* — OTP / magic-link start+complete
59
+ * - /auth/passwordless/start|complete — OTP / magic-link; the status and
60
+ * approval calls take no parent
58
61
  * - /auth/passkey/* — passkey registration/auth
59
62
  * - /auth/2fa/* — second-factor verify
60
63
  * - /auth/validate — emailed sign-up / sign-in code
@@ -64,18 +67,6 @@ type PassflowProviderProps = PassflowConfig & {
64
67
  * OIDC two-step flows)
65
68
  */
66
69
  export declare const AUTH_ENDPOINT_PATTERN: RegExp;
67
- /**
68
- * Read `parent_challenge_id` from the current URL's query string.
69
- * Returns `undefined` when not present so callers can short-circuit
70
- * the OIDC interceptor on non-OIDC mounts.
71
- *
72
- * Lowercases only the parameter KEYS (not values) so the
73
- * KSUID-shaped value isn't corrupted on the way through. (URL params
74
- * are case-sensitive per RFC 3986; some Passflow URLs use mixed
75
- * case like `appId=...`. The lowercase-keys treatment mirrors what
76
- * the bundled login-app was doing pre-SDK-migration.)
77
- */
78
- export declare const readParentChallengeIdFromURL: () => string | undefined;
79
70
  /**
80
71
  * Has the OIDC interceptor already taken ownership of the post-login navigation?
81
72
  *
@@ -157,5 +148,4 @@ export type OIDCExchangeContextValue = {
157
148
  };
158
149
  export declare const OIDCExchangeContext: React.Context<OIDCExchangeContextValue>;
159
150
  export declare const PassflowProvider: FC<PassflowProviderProps>;
160
- export {};
161
151
  //# sourceMappingURL=passflow-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,cAAc,EAA2B,MAAM,gBAAgB,CAAC;AAC7G,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AACtH,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAGpG,OAAO,EAIL,KAAK,gBAAgB,EAIrB,KAAK,UAAU,EAEhB,MAAM,WAAW,CAAC;AAEnB,OAAO,oBAAoB,CAAC;AAE5B;;;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C9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qBAAqB,QAC6F,CAAC;AAiChI;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAA+B,CAAC;AAqK3E;;;GAGG;AACH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;;;;;;GAMG;AACH,KAAK,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAmLtF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAwFF,eAAO,MAAM,mBAAmB,yCAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAgKtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/credentials.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAchC,OAAO,KAAK,EAAE,qBAAqB,EAA0B,MAAM,SAAS,CAAC;AAqB7E,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAsXtD,CAAC"}
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/credentials.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAchC,OAAO,KAAK,EAAE,qBAAqB,EAA0B,MAAM,SAAS,CAAC;AAqB7E,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiYtD,CAAC"}
@@ -1,5 +1,19 @@
1
1
  import type { FC } from 'react';
2
- import type { LoginEmailCodeState } from './types.cjs';
2
+ import type { LoginEmailCodeResend, LoginEmailCodeState } from './types.cjs';
3
+ type EmailCodeResendButtonProps = LoginEmailCodeResend & {
4
+ /** Locked by the step itself, while a verify is in flight. */
5
+ locked: boolean;
6
+ };
7
+ /**
8
+ * Resend, with its own cooldown. The countdown is drawn in the label but hidden
9
+ * from assistive technology, so the name stays `Resend code` and is not re-read
10
+ * every second. While it counts down, the button is `aria-disabled`: it keeps
11
+ * focus after a press instead of dropping the keyboard user.
12
+ *
13
+ * The step remounts it (`key`) when `restartKey` changes, which restarts the
14
+ * cooldown for a code the server sent again.
15
+ */
16
+ export declare const EmailCodeResendButton: FC<EmailCodeResendButtonProps>;
3
17
  /**
4
18
  * The emailed verification code step: the server's prompt names a row of code
5
19
  * boxes; six digits submit by themselves. A failed verify or a resend clears the
@@ -7,4 +21,5 @@ import type { LoginEmailCodeState } from './types.cjs';
7
21
  * locked, and focus returns to the code when it ends.
8
22
  */
9
23
  export declare const LoginEmailCode: FC<LoginEmailCodeState>;
24
+ export {};
10
25
  //# sourceMappingURL=email-code.d.ts.map
@@ -1,5 +1,19 @@
1
1
  import type { FC } from 'react';
2
- import type { LoginEmailCodeState } from './types.js';
2
+ import type { LoginEmailCodeResend, LoginEmailCodeState } from './types.js';
3
+ type EmailCodeResendButtonProps = LoginEmailCodeResend & {
4
+ /** Locked by the step itself, while a verify is in flight. */
5
+ locked: boolean;
6
+ };
7
+ /**
8
+ * Resend, with its own cooldown. The countdown is drawn in the label but hidden
9
+ * from assistive technology, so the name stays `Resend code` and is not re-read
10
+ * every second. While it counts down, the button is `aria-disabled`: it keeps
11
+ * focus after a press instead of dropping the keyboard user.
12
+ *
13
+ * The step remounts it (`key`) when `restartKey` changes, which restarts the
14
+ * cooldown for a code the server sent again.
15
+ */
16
+ export declare const EmailCodeResendButton: FC<EmailCodeResendButtonProps>;
3
17
  /**
4
18
  * The emailed verification code step: the server's prompt names a row of code
5
19
  * boxes; six digits submit by themselves. A failed verify or a resend clears the
@@ -7,4 +21,5 @@ import type { LoginEmailCodeState } from './types.js';
7
21
  * locked, and focus returns to the code when it ends.
8
22
  */
9
23
  export declare const LoginEmailCode: FC<LoginEmailCodeState>;
24
+ export {};
10
25
  //# sourceMappingURL=email-code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"email-code.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/email-code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAM3C,OAAO,KAAK,EAAwB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAmEzE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgGlD,CAAC"}
1
+ {"version":3,"file":"email-code.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/email-code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAM3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AASzE,KAAK,0BAA0B,GAAG,oBAAoB,GAAG;IACvD,8DAA8D;IAC9D,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CA0ChE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgGlD,CAAC"}