@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,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, 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, 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,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;AAahC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAmD5C,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"}
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginPasswordlessApprovalState } from './types.cjs';
3
+ export declare const LoginPasswordlessApproval: FC<LoginPasswordlessApprovalState>;
4
+ //# sourceMappingURL=passwordless-approval.d.ts.map
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginPasswordlessApprovalState } from './types.js';
3
+ export declare const LoginPasswordlessApproval: FC<LoginPasswordlessApprovalState>;
4
+ //# sourceMappingURL=passwordless-approval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passwordless-approval.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/passwordless-approval.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAK3C,OAAO,KAAK,EAAsC,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAgGlG,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC,8BAA8B,CAStE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginPasswordlessWaitingState } from './types.cjs';
3
+ export declare const LoginPasswordlessWaiting: FC<LoginPasswordlessWaitingState>;
4
+ //# sourceMappingURL=passwordless-waiting.d.ts.map
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ import type { LoginPasswordlessWaitingState } from './types.js';
3
+ export declare const LoginPasswordlessWaiting: FC<LoginPasswordlessWaitingState>;
4
+ //# sourceMappingURL=passwordless-waiting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passwordless-waiting.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/passwordless-waiting.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAyBtE,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,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}
@@ -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"}
@@ -73,6 +73,8 @@ export type LoginCredentialsState = {
73
73
  onPasskey?: () => void;
74
74
  onProvider?: (provider: Providers) => void;
75
75
  onReset?: () => void;
76
+ /** Shown beside the alert when `error.startAgain` is set: the request behind this form is gone. */
77
+ onStartAgain?: () => void;
76
78
  };
77
79
  export type LoginCodeEntryState = {
78
80
  kind: 'code-entry';
@@ -180,6 +182,108 @@ export type LoginSecondFactorState = {
180
182
  /** Called when the user switches factor, so a stale error can be cleared. */
181
183
  onMethodChange?: () => void;
182
184
  };
185
+ /** Which factor `two-factor-code` asks for: authenticator boxes, or a recovery code field. */
186
+ export type LoginTwoFactorCodeFactor = {
187
+ type: 'totp';
188
+ digits: number;
189
+ } | {
190
+ type: 'recovery';
191
+ placeholder?: string;
192
+ };
193
+ /** The line under the code. `error` marks the code invalid; `info` does not. */
194
+ export type LoginTwoFactorCodeAlert = {
195
+ message: string;
196
+ tone: 'error' | 'info';
197
+ };
198
+ /** The "trust this device" option. */
199
+ export type LoginTwoFactorTrustDevice = {
200
+ label: string;
201
+ checked: boolean;
202
+ onChange: (checked: boolean) => void;
203
+ };
204
+ /** The other factor: `prompt` is a sentence, `label` the link that follows it. */
205
+ export type LoginTwoFactorCodeAlternate = {
206
+ prompt: string;
207
+ label: string;
208
+ onClick: () => void;
209
+ };
210
+ /** Code entry at sign-in, for the verify and recovery forms. The code is controlled and all copy comes through props. */
211
+ export type LoginTwoFactorCodeState = {
212
+ kind: 'two-factor-code';
213
+ factor: LoginTwoFactorCodeFactor;
214
+ /** Names the code field. */
215
+ label: string;
216
+ code: string;
217
+ trustDevice: LoginTwoFactorTrustDevice;
218
+ /** A check is in flight: the code, the switch and every action are locked, and Verify shows `busyLabel`. */
219
+ busy?: boolean;
220
+ canSubmit: boolean;
221
+ /** No further code can be taken: the code and the switch are disabled, and Verify and `alternate` are gone. */
222
+ locked?: boolean;
223
+ alert?: LoginTwoFactorCodeAlert;
224
+ submitLabel: string;
225
+ busyLabel: string;
226
+ alternate?: LoginTwoFactorCodeAlternate;
227
+ /** The way out. It stays when `locked`. */
228
+ secondaryAction?: LoginScreenAction;
229
+ autoFocus?: boolean;
230
+ testId?: string;
231
+ onCodeChange: (code: string) => void;
232
+ onSubmit: () => void;
233
+ };
234
+ /** Enrolment before anything was requested from the server. */
235
+ export type LoginTwoFactorSetupStartState = {
236
+ kind: 'two-factor-setup';
237
+ step: 'start';
238
+ startLabel: string;
239
+ busyLabel: string;
240
+ busy?: boolean;
241
+ error?: string | null;
242
+ secondaryAction?: LoginScreenAction;
243
+ testId?: string;
244
+ onStart: () => void;
245
+ };
246
+ /** Enrolment with a secret: scan it or type it, then confirm a code. A new `secret` clears the typed code. */
247
+ export type LoginTwoFactorSetupCodeState = {
248
+ kind: 'two-factor-setup';
249
+ step: 'code';
250
+ /** Bare base64 PNG. When empty, no image shows and the secret is always visible. */
251
+ qrCode: string;
252
+ qrAlt: string;
253
+ secret: string;
254
+ /** Introduces the secret wherever it is visible. */
255
+ secretLabel: string;
256
+ showSecretLabel: string;
257
+ hideSecretLabel: string;
258
+ /** Digits in the code, from the server's `totp_digits`. */
259
+ digits: number;
260
+ /** Names the code field. */
261
+ codeLabel: string;
262
+ submitLabel: string;
263
+ busyLabel: string;
264
+ busy?: boolean;
265
+ alert?: LoginTwoFactorCodeAlert;
266
+ secondaryAction?: LoginScreenAction;
267
+ testId?: string;
268
+ onSubmit: (code: string) => void;
269
+ };
270
+ export type LoginTwoFactorSetupState = LoginTwoFactorSetupStartState | LoginTwoFactorSetupCodeState;
271
+ /** The recovery codes, shown once after enrolment. */
272
+ export type LoginTwoFactorRecoveryCodesState = {
273
+ kind: 'two-factor-recovery-codes';
274
+ /** That the codes will not be shown again. */
275
+ warning: string;
276
+ codes: string[];
277
+ copyLabel: string;
278
+ continueLabel: string;
279
+ busyLabel: string;
280
+ /** `onContinue` is in flight: Continue is locked, the codes can still be copied. */
281
+ busy?: boolean;
282
+ error?: string | null;
283
+ testId?: string;
284
+ onCopy: () => void;
285
+ onContinue: () => void;
286
+ };
183
287
  export type LoginInvitationState = {
184
288
  kind: 'invitation';
185
289
  identity?: string | null;
@@ -230,20 +334,70 @@ export type LoginConsentState = {
230
334
  };
231
335
  export type LoginStatusState = {
232
336
  kind: 'status';
233
- /** `info` is a neutral notice, such as "check your email"; it keeps the normal logo. */
234
- tone: 'success' | 'error' | 'disabled' | 'info';
337
+ /**
338
+ * `info` is a neutral notice, such as "check your email"; it keeps the normal logo. `working` is a progress message,
339
+ * for a request the screen waits on.
340
+ */
341
+ tone: 'success' | 'error' | 'disabled' | 'info' | 'working';
235
342
  message: string;
236
343
  detail?: string;
344
+ /** A failure beside the message, under any tone, such as a send that failed on an `info` notice. */
345
+ error?: string | null;
237
346
  recoverable?: boolean;
238
347
  retryLabel?: string;
239
348
  testId?: string;
240
349
  onRetry?: () => void;
241
- primaryAction?: {
242
- label: string;
243
- onClick: () => void;
350
+ primaryAction?: LoginScreenAction & {
351
+ /** Its request is in flight: the action and `secondaryAction` are locked. Pass the in-flight wording as `label`. */
352
+ busy?: boolean;
244
353
  };
354
+ /** The way back out, such as `Back to sign in`. It shows beside `primaryAction`, the retry, or alone. */
355
+ secondaryAction?: LoginScreenAction;
356
+ };
357
+ /**
358
+ * The tab that started a cross-device sign-in, waiting while the link is approved. The outcome messages use `status`,
359
+ * with a primary action labelled `Start again`.
360
+ */
361
+ export type LoginPasswordlessWaitingState = {
362
+ kind: 'passwordless-waiting';
363
+ /** The 4-digit code the approving device asks for. Only this tab ever shows it. */
364
+ matchCode: string;
365
+ /** The answer to a failed resend. */
366
+ error?: string | null;
367
+ /** The label defaults to `Resend email`. */
368
+ resend?: LoginEmailCodeResend;
369
+ testId?: string;
370
+ codeTestId?: string;
371
+ };
372
+ /**
373
+ * The device that opened the link, approving or denying the sign-in. It shows no identity, and the final messages use
374
+ * `status`.
375
+ */
376
+ export type LoginPasswordlessApprovalFormState = {
377
+ kind: 'passwordless-approval';
378
+ loading?: false;
379
+ appName: string;
380
+ browser: string;
381
+ os: string;
382
+ /** Omitted from the screen when null. */
383
+ location: string | null;
384
+ /** Ready to display. */
385
+ requestedAt: string;
386
+ /** Why the last answer failed; clears the typed code. */
387
+ error?: string | null;
388
+ /** An answer is in flight: the code and both actions are locked. */
389
+ busy?: boolean;
390
+ testId?: string;
391
+ onApprove: (code: string) => void;
392
+ onDeny: () => void;
393
+ };
394
+ /** The sign-in request is still being read: only a progress message shows. */
395
+ export type LoginPasswordlessApprovalLoadingState = {
396
+ kind: 'passwordless-approval';
397
+ loading: true;
245
398
  };
246
- export type LoginScreenState = LoginCredentialsState | LoginCodeEntryState | LoginEmailCodeState | LoginNewPasswordState | LoginPasskeyProgressState | LoginDeviceApprovalState | LoginSecondFactorState | LoginInvitationState | LoginGeneralErrorState | LoginConsentState | LoginStatusState;
399
+ export type LoginPasswordlessApprovalState = LoginPasswordlessApprovalFormState | LoginPasswordlessApprovalLoadingState;
400
+ export type LoginScreenState = LoginCredentialsState | LoginCodeEntryState | LoginEmailCodeState | LoginPasswordlessWaitingState | LoginPasswordlessApprovalState | LoginNewPasswordState | LoginPasskeyProgressState | LoginDeviceApprovalState | LoginSecondFactorState | LoginTwoFactorCodeState | LoginTwoFactorSetupState | LoginTwoFactorRecoveryCodesState | LoginInvitationState | LoginGeneralErrorState | LoginConsentState | LoginStatusState;
247
401
  export type LoginScreenProps = {
248
402
  chrome: LoginScreenChrome;
249
403
  state: LoginScreenState;
@@ -73,6 +73,8 @@ export type LoginCredentialsState = {
73
73
  onPasskey?: () => void;
74
74
  onProvider?: (provider: Providers) => void;
75
75
  onReset?: () => void;
76
+ /** Shown beside the alert when `error.startAgain` is set: the request behind this form is gone. */
77
+ onStartAgain?: () => void;
76
78
  };
77
79
  export type LoginCodeEntryState = {
78
80
  kind: 'code-entry';
@@ -180,6 +182,108 @@ export type LoginSecondFactorState = {
180
182
  /** Called when the user switches factor, so a stale error can be cleared. */
181
183
  onMethodChange?: () => void;
182
184
  };
185
+ /** Which factor `two-factor-code` asks for: authenticator boxes, or a recovery code field. */
186
+ export type LoginTwoFactorCodeFactor = {
187
+ type: 'totp';
188
+ digits: number;
189
+ } | {
190
+ type: 'recovery';
191
+ placeholder?: string;
192
+ };
193
+ /** The line under the code. `error` marks the code invalid; `info` does not. */
194
+ export type LoginTwoFactorCodeAlert = {
195
+ message: string;
196
+ tone: 'error' | 'info';
197
+ };
198
+ /** The "trust this device" option. */
199
+ export type LoginTwoFactorTrustDevice = {
200
+ label: string;
201
+ checked: boolean;
202
+ onChange: (checked: boolean) => void;
203
+ };
204
+ /** The other factor: `prompt` is a sentence, `label` the link that follows it. */
205
+ export type LoginTwoFactorCodeAlternate = {
206
+ prompt: string;
207
+ label: string;
208
+ onClick: () => void;
209
+ };
210
+ /** Code entry at sign-in, for the verify and recovery forms. The code is controlled and all copy comes through props. */
211
+ export type LoginTwoFactorCodeState = {
212
+ kind: 'two-factor-code';
213
+ factor: LoginTwoFactorCodeFactor;
214
+ /** Names the code field. */
215
+ label: string;
216
+ code: string;
217
+ trustDevice: LoginTwoFactorTrustDevice;
218
+ /** A check is in flight: the code, the switch and every action are locked, and Verify shows `busyLabel`. */
219
+ busy?: boolean;
220
+ canSubmit: boolean;
221
+ /** No further code can be taken: the code and the switch are disabled, and Verify and `alternate` are gone. */
222
+ locked?: boolean;
223
+ alert?: LoginTwoFactorCodeAlert;
224
+ submitLabel: string;
225
+ busyLabel: string;
226
+ alternate?: LoginTwoFactorCodeAlternate;
227
+ /** The way out. It stays when `locked`. */
228
+ secondaryAction?: LoginScreenAction;
229
+ autoFocus?: boolean;
230
+ testId?: string;
231
+ onCodeChange: (code: string) => void;
232
+ onSubmit: () => void;
233
+ };
234
+ /** Enrolment before anything was requested from the server. */
235
+ export type LoginTwoFactorSetupStartState = {
236
+ kind: 'two-factor-setup';
237
+ step: 'start';
238
+ startLabel: string;
239
+ busyLabel: string;
240
+ busy?: boolean;
241
+ error?: string | null;
242
+ secondaryAction?: LoginScreenAction;
243
+ testId?: string;
244
+ onStart: () => void;
245
+ };
246
+ /** Enrolment with a secret: scan it or type it, then confirm a code. A new `secret` clears the typed code. */
247
+ export type LoginTwoFactorSetupCodeState = {
248
+ kind: 'two-factor-setup';
249
+ step: 'code';
250
+ /** Bare base64 PNG. When empty, no image shows and the secret is always visible. */
251
+ qrCode: string;
252
+ qrAlt: string;
253
+ secret: string;
254
+ /** Introduces the secret wherever it is visible. */
255
+ secretLabel: string;
256
+ showSecretLabel: string;
257
+ hideSecretLabel: string;
258
+ /** Digits in the code, from the server's `totp_digits`. */
259
+ digits: number;
260
+ /** Names the code field. */
261
+ codeLabel: string;
262
+ submitLabel: string;
263
+ busyLabel: string;
264
+ busy?: boolean;
265
+ alert?: LoginTwoFactorCodeAlert;
266
+ secondaryAction?: LoginScreenAction;
267
+ testId?: string;
268
+ onSubmit: (code: string) => void;
269
+ };
270
+ export type LoginTwoFactorSetupState = LoginTwoFactorSetupStartState | LoginTwoFactorSetupCodeState;
271
+ /** The recovery codes, shown once after enrolment. */
272
+ export type LoginTwoFactorRecoveryCodesState = {
273
+ kind: 'two-factor-recovery-codes';
274
+ /** That the codes will not be shown again. */
275
+ warning: string;
276
+ codes: string[];
277
+ copyLabel: string;
278
+ continueLabel: string;
279
+ busyLabel: string;
280
+ /** `onContinue` is in flight: Continue is locked, the codes can still be copied. */
281
+ busy?: boolean;
282
+ error?: string | null;
283
+ testId?: string;
284
+ onCopy: () => void;
285
+ onContinue: () => void;
286
+ };
183
287
  export type LoginInvitationState = {
184
288
  kind: 'invitation';
185
289
  identity?: string | null;
@@ -230,20 +334,70 @@ export type LoginConsentState = {
230
334
  };
231
335
  export type LoginStatusState = {
232
336
  kind: 'status';
233
- /** `info` is a neutral notice, such as "check your email"; it keeps the normal logo. */
234
- tone: 'success' | 'error' | 'disabled' | 'info';
337
+ /**
338
+ * `info` is a neutral notice, such as "check your email"; it keeps the normal logo. `working` is a progress message,
339
+ * for a request the screen waits on.
340
+ */
341
+ tone: 'success' | 'error' | 'disabled' | 'info' | 'working';
235
342
  message: string;
236
343
  detail?: string;
344
+ /** A failure beside the message, under any tone, such as a send that failed on an `info` notice. */
345
+ error?: string | null;
237
346
  recoverable?: boolean;
238
347
  retryLabel?: string;
239
348
  testId?: string;
240
349
  onRetry?: () => void;
241
- primaryAction?: {
242
- label: string;
243
- onClick: () => void;
350
+ primaryAction?: LoginScreenAction & {
351
+ /** Its request is in flight: the action and `secondaryAction` are locked. Pass the in-flight wording as `label`. */
352
+ busy?: boolean;
244
353
  };
354
+ /** The way back out, such as `Back to sign in`. It shows beside `primaryAction`, the retry, or alone. */
355
+ secondaryAction?: LoginScreenAction;
356
+ };
357
+ /**
358
+ * The tab that started a cross-device sign-in, waiting while the link is approved. The outcome messages use `status`,
359
+ * with a primary action labelled `Start again`.
360
+ */
361
+ export type LoginPasswordlessWaitingState = {
362
+ kind: 'passwordless-waiting';
363
+ /** The 4-digit code the approving device asks for. Only this tab ever shows it. */
364
+ matchCode: string;
365
+ /** The answer to a failed resend. */
366
+ error?: string | null;
367
+ /** The label defaults to `Resend email`. */
368
+ resend?: LoginEmailCodeResend;
369
+ testId?: string;
370
+ codeTestId?: string;
371
+ };
372
+ /**
373
+ * The device that opened the link, approving or denying the sign-in. It shows no identity, and the final messages use
374
+ * `status`.
375
+ */
376
+ export type LoginPasswordlessApprovalFormState = {
377
+ kind: 'passwordless-approval';
378
+ loading?: false;
379
+ appName: string;
380
+ browser: string;
381
+ os: string;
382
+ /** Omitted from the screen when null. */
383
+ location: string | null;
384
+ /** Ready to display. */
385
+ requestedAt: string;
386
+ /** Why the last answer failed; clears the typed code. */
387
+ error?: string | null;
388
+ /** An answer is in flight: the code and both actions are locked. */
389
+ busy?: boolean;
390
+ testId?: string;
391
+ onApprove: (code: string) => void;
392
+ onDeny: () => void;
393
+ };
394
+ /** The sign-in request is still being read: only a progress message shows. */
395
+ export type LoginPasswordlessApprovalLoadingState = {
396
+ kind: 'passwordless-approval';
397
+ loading: true;
245
398
  };
246
- export type LoginScreenState = LoginCredentialsState | LoginCodeEntryState | LoginEmailCodeState | LoginNewPasswordState | LoginPasskeyProgressState | LoginDeviceApprovalState | LoginSecondFactorState | LoginInvitationState | LoginGeneralErrorState | LoginConsentState | LoginStatusState;
399
+ export type LoginPasswordlessApprovalState = LoginPasswordlessApprovalFormState | LoginPasswordlessApprovalLoadingState;
400
+ export type LoginScreenState = LoginCredentialsState | LoginCodeEntryState | LoginEmailCodeState | LoginPasswordlessWaitingState | LoginPasswordlessApprovalState | LoginNewPasswordState | LoginPasskeyProgressState | LoginDeviceApprovalState | LoginSecondFactorState | LoginTwoFactorCodeState | LoginTwoFactorSetupState | LoginTwoFactorRecoveryCodesState | LoginInvitationState | LoginGeneralErrorState | LoginConsentState | LoginStatusState;
247
401
  export type LoginScreenProps = {
248
402
  chrome: LoginScreenChrome;
249
403
  state: LoginScreenState;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,gBAAgB,CAAC;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AE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,iBAAiB,GACjB,gBAAgB,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-screen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,gBAAgB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,aAAa,GAAG,IAAI,CAA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AChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oEAAoE;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,8EAA8E;AAC9E,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,kCAAkC,GAAG,qCAAqC,CAAC;AAExH,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,6BAA6B,GAC7B,8BAA8B,GAC9B,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,uBAAuB,GACvB,wBAAwB,GACxB,gCAAgC,GAChC,oBAAoB,GACpB,sBAAsB,GACtB,iBAAiB,GACjB,gBAAgB,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC"}
@@ -5,6 +5,7 @@ export type NavigateOptions = {
5
5
  };
6
6
  export type RouterType = 'default' | 'react-router' | 'tanstack-router' | 'wouter';
7
7
  export type NavigateFunction = (options: NavigateOptions) => void;
8
+ export type FederatedLandingOutcome = 'signed-in' | 'failed';
8
9
  export type NavigationContextType = {
9
10
  navigate: NavigateFunction;
10
11
  setNavigate: (navigate: NavigateFunction | null) => void;
@@ -19,6 +20,8 @@ export type NavigationContextType = {
19
20
  twoFactorVerifyPath?: string;
20
21
  /** Registers the 2FA route of a mounted flow; `null` withdraws it. */
21
22
  setTwoFactorVerifyPath?: (path: string | null) => void;
23
+ /** How a PKCE federated redirect that landed on this page ended. A second factor owed is not an outcome here. */
24
+ federatedLandingOutcome?: FederatedLandingOutcome;
22
25
  };
23
26
  export declare const defaultNavigate: NavigateFunction;
24
27
  export declare const NavigationContext: import("react").Context<NavigationContextType>;
@@ -5,6 +5,7 @@ export type NavigateOptions = {
5
5
  };
6
6
  export type RouterType = 'default' | 'react-router' | 'tanstack-router' | 'wouter';
7
7
  export type NavigateFunction = (options: NavigateOptions) => void;
8
+ export type FederatedLandingOutcome = 'signed-in' | 'failed';
8
9
  export type NavigationContextType = {
9
10
  navigate: NavigateFunction;
10
11
  setNavigate: (navigate: NavigateFunction | null) => void;
@@ -19,6 +20,8 @@ export type NavigationContextType = {
19
20
  twoFactorVerifyPath?: string;
20
21
  /** Registers the 2FA route of a mounted flow; `null` withdraws it. */
21
22
  setTwoFactorVerifyPath?: (path: string | null) => void;
23
+ /** How a PKCE federated redirect that landed on this page ended. A second factor owed is not an outcome here. */
24
+ federatedLandingOutcome?: FederatedLandingOutcome;
22
25
  };
23
26
  export declare const defaultNavigate: NavigateFunction;
24
27
  export declare const NavigationContext: import("react").Context<NavigationContextType>;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-context.d.ts","sourceRoot":"","sources":["../../../src/context/navigation-context.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,cAAc,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AAEnF,MAAM,MAAM,gBAAgB,GAAG,CAAC,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