@passflow/react 0.19.0 → 0.20.1

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 (102) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +1 -1
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.es.js +135 -144
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/components/error/index.d.ts.map +1 -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/invitation-join/index.d.ts.map +1 -1
  17. package/dist/src/components/form/reset-password/index.d.ts.map +1 -1
  18. package/dist/src/components/form/signed-in/index.d.cts +9 -0
  19. package/dist/src/components/form/signed-in/index.d.ts +9 -0
  20. package/dist/src/components/form/signed-in/index.d.ts.map +1 -0
  21. package/dist/src/components/form/signin/index.d.ts.map +1 -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-magic-link.d.ts.map +1 -1
  37. package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts.map +1 -1
  38. package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts.map +1 -1
  39. package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
  40. package/dist/src/components/ui/login-screen/index.d.cts +1 -1
  41. package/dist/src/components/ui/login-screen/index.d.ts +1 -1
  42. package/dist/src/components/ui/login-screen/index.d.ts.map +1 -1
  43. package/dist/src/components/ui/login-screen/login-screen.d.ts.map +1 -1
  44. package/dist/src/components/ui/login-screen/shared.d.cts +4 -0
  45. package/dist/src/components/ui/login-screen/shared.d.ts +4 -0
  46. package/dist/src/components/ui/login-screen/shared.d.ts.map +1 -1
  47. package/dist/src/components/ui/login-screen/status.d.ts.map +1 -1
  48. package/dist/src/components/ui/login-screen/two-factor-code.d.cts +8 -0
  49. package/dist/src/components/ui/login-screen/two-factor-code.d.ts +8 -0
  50. package/dist/src/components/ui/login-screen/two-factor-code.d.ts.map +1 -0
  51. package/dist/src/components/ui/login-screen/two-factor-recovery-codes.d.cts +5 -0
  52. package/dist/src/components/ui/login-screen/two-factor-recovery-codes.d.ts +5 -0
  53. package/dist/src/components/ui/login-screen/two-factor-recovery-codes.d.ts.map +1 -0
  54. package/dist/src/components/ui/login-screen/two-factor-setup.d.cts +4 -0
  55. package/dist/src/components/ui/login-screen/two-factor-setup.d.ts +4 -0
  56. package/dist/src/components/ui/login-screen/two-factor-setup.d.ts.map +1 -0
  57. package/dist/src/components/ui/login-screen/types.d.cts +115 -6
  58. package/dist/src/components/ui/login-screen/types.d.ts +115 -6
  59. package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
  60. package/dist/src/context/navigation-context.d.cts +6 -1
  61. package/dist/src/context/navigation-context.d.ts +6 -1
  62. package/dist/src/context/navigation-context.d.ts.map +1 -1
  63. package/dist/src/hooks/index.d.cts +1 -0
  64. package/dist/src/hooks/index.d.ts +1 -0
  65. package/dist/src/hooks/index.d.ts.map +1 -1
  66. package/dist/src/hooks/use-navigation.d.cts +2 -0
  67. package/dist/src/hooks/use-navigation.d.ts +2 -0
  68. package/dist/src/hooks/use-navigation.d.ts.map +1 -1
  69. package/dist/src/hooks/use-sign-in-ending.d.cts +16 -0
  70. package/dist/src/hooks/use-sign-in-ending.d.ts +16 -0
  71. package/dist/src/hooks/use-sign-in-ending.d.ts.map +1 -0
  72. package/dist/src/hooks/use-two-factor-enrollment.d.cts +58 -0
  73. package/dist/src/hooks/use-two-factor-enrollment.d.ts +58 -0
  74. package/dist/src/hooks/use-two-factor-enrollment.d.ts.map +1 -0
  75. package/dist/src/hooks/use-two-factor-setup-magic-link.d.cts +5 -15
  76. package/dist/src/hooks/use-two-factor-setup-magic-link.d.ts +5 -15
  77. package/dist/src/hooks/use-two-factor-setup-magic-link.d.ts.map +1 -1
  78. package/dist/src/hooks/use-two-factor-setup.d.ts.map +1 -1
  79. package/dist/src/hooks/use-two-factor-verify.d.ts.map +1 -1
  80. package/dist/src/types/two-factor-errors.d.cts +1 -2
  81. package/dist/src/types/two-factor-errors.d.ts +1 -2
  82. package/dist/src/types/two-factor-errors.d.ts.map +1 -1
  83. package/dist/src/utils/auth-error.d.cts +23 -0
  84. package/dist/src/utils/auth-error.d.ts +23 -0
  85. package/dist/src/utils/auth-error.d.ts.map +1 -1
  86. package/dist/src/utils/classify-two-factor-error.d.cts +5 -6
  87. package/dist/src/utils/classify-two-factor-error.d.ts +5 -6
  88. package/dist/src/utils/classify-two-factor-error.d.ts.map +1 -1
  89. package/dist/src/utils/index.d.cts +4 -3
  90. package/dist/src/utils/index.d.ts +4 -3
  91. package/dist/src/utils/index.d.ts.map +1 -1
  92. package/dist/src/utils/is-sign-in-page.d.cts +5 -0
  93. package/dist/src/utils/is-sign-in-page.d.ts +5 -0
  94. package/dist/src/utils/is-sign-in-page.d.ts.map +1 -0
  95. package/dist/src/utils/second-factor.d.cts +22 -2
  96. package/dist/src/utils/second-factor.d.ts +22 -2
  97. package/dist/src/utils/second-factor.d.ts.map +1 -1
  98. package/dist/style.css +1 -1
  99. package/package.json +2 -2
  100. package/dist/src/components/form/verify-challenge/verify-challenge-success.d.cts +0 -3
  101. package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts +0 -3
  102. package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/error/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,MAAM,MAAM,MAAM,GAAG;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAIF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,MAAM,CAyBrC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/error/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,MAAM,MAAM,MAAM,GAAG;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAIF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,MAAM,CAuBrC,CAAC"}
@@ -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,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,OAAO,EAOL,KAAK,YAAY,EAEjB,KAAK,YAAY,EAOlB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,YAAY,IAAI,oBAAoB,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAEhH,KAAK,iBAAiB,GAAG;IACvB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,oBAAoB,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;AA+QJ,eAAO,MAAM,YAAY,8DAA6C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/passflow/index.tsx"],"names":[],"mappings":"AAeA,OAAO,oBAAoB,CAAC;AAK5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAErE,OAAO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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;AAShC,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,CAmE5D,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":"AAMA,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/invitation-join/index.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA4EF,eAAO,MAAM,cAAc,oEAAgD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/invitation-join/index.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA6EF,eAAO,MAAM,cAAc,oEAAgD,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;AAOhC,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,CAkH5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { FC } from 'react';
2
+ import type { SignInEnding } from '../../../hooks/use-sign-in-ending.cjs';
3
+ export declare const SIGNED_IN_MESSAGE = "You're signed in";
4
+ /** How a sign-in ended, when that is not a redirect. See `useSignInEnding`. */
5
+ export declare const SignInEndingScreen: FC<{
6
+ ending: Exclude<SignInEnding, 'none'>;
7
+ onRetry: () => void;
8
+ }>;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,9 @@
1
+ import type { FC } from 'react';
2
+ import type { SignInEnding } from '../../../hooks/use-sign-in-ending.js';
3
+ export declare const SIGNED_IN_MESSAGE = "You're signed in";
4
+ /** How a sign-in ended, when that is not a redirect. See `useSignInEnding`. */
5
+ export declare const SignInEndingScreen: FC<{
6
+ ending: Exclude<SignInEnding, 'none'>;
7
+ onRetry: () => void;
8
+ }>;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signed-in/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAuCpD,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAgBjG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signin/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAchC,OAAO,KAAK,EAAE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AEF,eAAO,MAAM,MAAM,wDAAwC,CAAC"}
@@ -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,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,CA2NlC,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;AAehC,OAAO,KAAK,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAqDpF,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,CA6NlC,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"}
@@ -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":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAgC,MAAM,OAAO,CAAC;AAK9D,OAAO,oBAAoB,CAAC;AAkM5B,KAAK,6BAA6B,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAuBtE,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;AAM9D,OAAO,oBAAoB,CAAC;AAwL5B,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,CA4HtE,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":"AAMA,KAAK,+BAA+B,GAAG;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,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AAqB,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
+ {"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAKpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AACtH,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAGpG,OAAO,EAML,KAAK,gBAAgB,EAIrB,KAA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ACH,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;AAgGF,eAAO,MAAM,mBAAmB,yCAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0KtD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { LoginScreen } from './login-screen.cjs';
2
2
  export { LoginAlert } from './shared.cjs';
3
- export type { LoginCodeEntryState, LoginConsentScope, LoginConsentState, LoginCredentialsState, LoginCredentialsValues, LoginDeviceApprovalState, LoginEmailCodeResend, LoginEmailCodeState, LoginGeneralErrorState, LoginIdentityMethod, LoginInvitationState, LoginMethodConfig, LoginNewPasswordState, LoginPasskeyProgressState, LoginPasswordlessApprovalFormState, LoginPasswordlessApprovalLoadingState, LoginPasswordlessApprovalState, LoginPasswordlessWaitingState, LoginScreenAction, LoginScreenChrome, LoginScreenLink, LoginScreenNotice as LoginScreenNoticeProps, LoginScreenProps, LoginScreenState, LoginSecondFactorMethod, LoginSecondFactorState, LoginStatusState, } from './types.cjs';
3
+ export type { LoginCodeEntryState, LoginConsentScope, LoginConsentState, LoginCredentialsState, LoginCredentialsValues, LoginDeviceApprovalState, LoginEmailCodeResend, LoginEmailCodeState, LoginGeneralErrorState, LoginIdentityMethod, LoginInvitationState, LoginMethodConfig, LoginNewPasswordState, LoginPasskeyProgressState, LoginPasswordlessApprovalFormState, LoginPasswordlessApprovalLoadingState, LoginPasswordlessApprovalState, LoginPasswordlessWaitingState, LoginScreenAction, LoginScreenChrome, LoginScreenLink, LoginScreenNotice as LoginScreenNoticeProps, LoginScreenProps, LoginScreenState, LoginSecondFactorMethod, LoginSecondFactorState, LoginStatusState, LoginTwoFactorCodeAlert, LoginTwoFactorCodeAlternate, LoginTwoFactorCodeFactor, LoginTwoFactorCodeState, LoginTwoFactorRecoveryCodesState, LoginTwoFactorSetupCodeState, LoginTwoFactorSetupStartState, LoginTwoFactorSetupState, LoginTwoFactorTrustDevice, } from './types.cjs';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export { LoginScreen } from './login-screen.js';
2
2
  export { LoginAlert } from './shared.js';
3
- export type { LoginCodeEntryState, LoginConsentScope, LoginConsentState, LoginCredentialsState, LoginCredentialsValues, LoginDeviceApprovalState, LoginEmailCodeResend, LoginEmailCodeState, LoginGeneralErrorState, LoginIdentityMethod, LoginInvitationState, LoginMethodConfig, LoginNewPasswordState, LoginPasskeyProgressState, LoginPasswordlessApprovalFormState, LoginPasswordlessApprovalLoadingState, LoginPasswordlessApprovalState, LoginPasswordlessWaitingState, LoginScreenAction, LoginScreenChrome, LoginScreenLink, LoginScreenNotice as LoginScreenNoticeProps, LoginScreenProps, LoginScreenState, LoginSecondFactorMethod, LoginSecondFactorState, LoginStatusState, } from './types.js';
3
+ export type { LoginCodeEntryState, LoginConsentScope, LoginConsentState, LoginCredentialsState, LoginCredentialsValues, LoginDeviceApprovalState, LoginEmailCodeResend, LoginEmailCodeState, LoginGeneralErrorState, LoginIdentityMethod, LoginInvitationState, LoginMethodConfig, LoginNewPasswordState, LoginPasskeyProgressState, LoginPasswordlessApprovalFormState, LoginPasswordlessApprovalLoadingState, LoginPasswordlessApprovalState, LoginPasswordlessWaitingState, LoginScreenAction, LoginScreenChrome, LoginScreenLink, LoginScreenNotice as LoginScreenNoticeProps, LoginScreenProps, LoginScreenState, LoginSecondFactorMethod, LoginSecondFactorState, LoginStatusState, LoginTwoFactorCodeAlert, LoginTwoFactorCodeAlternate, LoginTwoFactorCodeFactor, LoginTwoFactorCodeState, LoginTwoFactorRecoveryCodesState, LoginTwoFactorSetupCodeState, LoginTwoFactorSetupStartState, LoginTwoFactorSetupState, LoginTwoFactorTrustDevice, } from './types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,kCAAkC,EAClC,qCAAqC,EACrC,8BAA8B,EAC9B,6BAA6B,EAC7B,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,IAAI,sBAAsB,EAC3C,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,kCAAkC,EAClC,qCAAqC,EACrC,8BAA8B,EAC9B,6BAA6B,EAC7B,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,IAAI,sBAAsB,EAC3C,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,gCAAgC,EAChC,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"login-screen.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/login-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAehC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuD5C,CAAC"}
1
+ {"version":3,"file":"login-screen.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/login-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAkBhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA6D5C,CAAC"}
@@ -1,9 +1,13 @@
1
1
  import type { FC, PropsWithChildren } from 'react';
2
2
  import type { LoginScreenNotice as LoginScreenNoticeProps } from './types.cjs';
3
+ /** `error` is the default; `info` is a neutral note that is not announced as an alert. */
3
4
  export declare const LoginAlert: FC<{
4
5
  message?: string | null;
5
6
  id?: string;
7
+ tone?: 'error' | 'info';
6
8
  }>;
9
+ /** For a code input locked while a request is in flight: gives focus back when the request ends. */
10
+ export declare const useFocusAfterBusy: (busy: boolean) => import("react").RefObject<HTMLInputElement | null>;
7
11
  export declare const LoginDivider: FC<{
8
12
  label: string;
9
13
  }>;
@@ -1,9 +1,13 @@
1
1
  import type { FC, PropsWithChildren } from 'react';
2
2
  import type { LoginScreenNotice as LoginScreenNoticeProps } from './types.js';
3
+ /** `error` is the default; `info` is a neutral note that is not announced as an alert. */
3
4
  export declare const LoginAlert: FC<{
4
5
  message?: string | null;
5
6
  id?: string;
7
+ tone?: 'error' | 'info';
6
8
  }>;
9
+ /** For a code input locked while a request is in flight: gives focus back when the request ends. */
10
+ export declare const useFocusAfterBusy: (busy: boolean) => import("react").RefObject<HTMLInputElement | null>;
7
11
  export declare const LoginDivider: FC<{
8
12
  label: string;
9
13
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE3E,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CASnE,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAM9C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,iBAAiB,CAElD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAKjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAcxD,CAAC"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE3E,0FAA0F;AAC1F,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAAE,CAqB5F,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,SAAU,OAAO,uDAU9C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAM9C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,iBAAiB,CAElD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAKjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAcxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/status.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAyC5C,CAAC"}
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/status.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAwD5C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginTwoFactorCodeState } from './types.cjs';
3
+ /**
4
+ * Asking for a second factor at sign-in: authenticator boxes or a recovery code field, with the trust switch above
5
+ * them. The screen owns no code: a submit on the last digit belongs to the caller's `onCodeChange`.
6
+ */
7
+ export declare const LoginTwoFactorCode: FC<LoginTwoFactorCodeState>;
8
+ //# sourceMappingURL=two-factor-code.d.ts.map
@@ -0,0 +1,8 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginTwoFactorCodeState } from './types.js';
3
+ /**
4
+ * Asking for a second factor at sign-in: authenticator boxes or a recovery code field, with the trust switch above
5
+ * them. The screen owns no code: a submit on the last digit belongs to the caller's `onCodeChange`.
6
+ */
7
+ export declare const LoginTwoFactorCode: FC<LoginTwoFactorCodeState>;
8
+ //# sourceMappingURL=two-factor-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"two-factor-code.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/two-factor-code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAQ3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA8G1D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginTwoFactorRecoveryCodesState } from './types.cjs';
3
+ /** The recovery codes, shown once. They stay on screen through a failed `onContinue`, so they are not lost. */
4
+ export declare const LoginTwoFactorRecoveryCodes: FC<LoginTwoFactorRecoveryCodesState>;
5
+ //# sourceMappingURL=two-factor-recovery-codes.d.ts.map
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginTwoFactorRecoveryCodesState } from './types.js';
3
+ /** The recovery codes, shown once. They stay on screen through a failed `onContinue`, so they are not lost. */
4
+ export declare const LoginTwoFactorRecoveryCodes: FC<LoginTwoFactorRecoveryCodesState>;
5
+ //# sourceMappingURL=two-factor-recovery-codes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"two-factor-recovery-codes.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/two-factor-recovery-codes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAEhE,+GAA+G;AAC/G,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC,gCAAgC,CAoC5E,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginTwoFactorSetupState } from './types.cjs';
3
+ export declare const LoginTwoFactorSetup: FC<LoginTwoFactorSetupState>;
4
+ //# sourceMappingURL=two-factor-setup.d.ts.map
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginTwoFactorSetupState } from './types.js';
3
+ export declare const LoginTwoFactorSetup: FC<LoginTwoFactorSetupState>;
4
+ //# sourceMappingURL=two-factor-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"two-factor-setup.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/two-factor-setup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAK3C,OAAO,KAAK,EAIV,wBAAwB,EACzB,MAAM,SAAS,CAAC;AA4GjB,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CACiE,CAAC"}