@alfadocs/ui-kit 1.112.2 → 1.114.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 (206) hide show
  1. package/dist/_chunks/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
  3. package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-DaS-j8Jd.js} +2 -2
  4. package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-DmlXxevC.js} +2 -2
  5. package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
  6. package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
  7. package/dist/_chunks/{calendar-appointment-editor-dialog-FvdoKZ54.js → calendar-appointment-editor-dialog-iyh9QqNw.js} +6 -6
  8. package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
  9. package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
  10. package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
  11. package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
  12. package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
  13. package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-Dd-XbKmZ.js} +2 -2
  14. package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
  15. package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-Dl6SyMHO.js} +3 -3
  16. package/dist/_chunks/email-input-DxwbREpx.js +156 -0
  17. package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
  18. package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DlcQaQVR.js} +2 -2
  19. package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
  20. package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
  21. package/dist/_chunks/{forgot-password-form-vfCO2-Tt.js → forgot-password-form-Bc_UPax6.js} +9 -8
  22. package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-DmzYdW5e.js} +3 -3
  23. package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-Tr72PetS.js} +2 -2
  24. package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-CNxCDl0D.js} +2 -2
  25. package/dist/_chunks/isEmail-BfVspSvV.js +248 -0
  26. package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-DZJRmDI6.js} +7 -7
  27. package/dist/_chunks/{login-dev-card-Cz1Clugq.js → login-dev-card-D7orCfJT.js} +48 -47
  28. package/dist/_chunks/map-view-Bny79cWa.js +856 -0
  29. package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CPNVBVLH.js} +2 -2
  30. package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
  31. package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-DXMTObBv.js} +3 -3
  32. package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
  33. package/dist/_chunks/{patient-details-BwkDIm4D.js → patient-details-DdtXBNjt.js} +3 -3
  34. package/dist/_chunks/{patient-field-row-CBba7w9V.js → patient-field-row-D9rb-QJH.js} +2 -2
  35. package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
  36. package/dist/_chunks/{patient-summary-card-DtYTo9w_.js → patient-summary-card-CGHz-Bvm.js} +3 -3
  37. package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
  38. package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
  39. package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
  40. package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
  41. package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-xheWfi4g.js} +2 -2
  42. package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
  43. package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
  44. package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
  45. package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-BvorzHrd.js} +3 -3
  46. package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
  47. package/dist/_chunks/{privacy-mask-DbEKI-Jv.js → privacy-mask-Dc3kdkCR.js} +2 -2
  48. package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
  49. package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
  50. package/dist/_chunks/{registration-form-DEyUFysm.js → registration-form-Lw9T7IXr.js} +7 -6
  51. package/dist/_chunks/{reserved.agent-W_Zgj564.js → reserved.agent-D2jwJPac.js} +22 -32
  52. package/dist/_chunks/{reset-password-form-B0acanDD.js → reset-password-form-C93SH0Tx.js} +3 -3
  53. package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
  54. package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
  55. package/dist/_chunks/{send-registration-link-form-Nn0jf65G.js → send-registration-link-form-DfbTjrEK.js} +9 -8
  56. package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
  57. package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
  58. package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-DqVoitRk.js} +2 -2
  59. package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-D--LwVrg.js} +2 -2
  60. package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-C6j8HVMv.js} +2 -2
  61. package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-D6PuF4MQ.js} +2 -2
  62. package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
  63. package/dist/_chunks/{use-appointment-details-read-DYyCYI9f.js → use-appointment-details-read-BK_Gw1GG.js} +5 -5
  64. package/dist/_chunks/verify-identity-types-C85EXNzy.js +707 -0
  65. package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
  66. package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-CtBn5JvO.js} +2 -2
  67. package/dist/agent-catalog.json +111 -7
  68. package/dist/agent-i18n/en.json +13 -2
  69. package/dist/components/_shared/motion-is-off.d.ts +7 -0
  70. package/dist/components/anamnesis-card/index.js +1 -1
  71. package/dist/components/anamnesis-summary-card/index.js +1 -1
  72. package/dist/components/appointment-details-panel/index.js +1 -1
  73. package/dist/components/bishop-score/index.js +1 -1
  74. package/dist/components/bmi-calculator/index.js +1 -1
  75. package/dist/components/booking/index.js +1 -1
  76. package/dist/components/booking/step-focus.d.ts +0 -6
  77. package/dist/components/card/index.js +1 -1
  78. package/dist/components/clinical-note-card/index.js +1 -1
  79. package/dist/components/connection-status/index.js +1 -1
  80. package/dist/components/contact-card/index.js +1 -1
  81. package/dist/components/contact-profile-card/index.js +1 -1
  82. package/dist/components/cycle-calculator/index.js +1 -1
  83. package/dist/components/document-preview/index.js +1 -1
  84. package/dist/components/due-date-calculator/index.js +2 -2
  85. package/dist/components/email-input/index.js +1 -1
  86. package/dist/components/entity-summary/index.js +1 -1
  87. package/dist/components/face-scheme/index.js +1 -1
  88. package/dist/components/fetal-weight/index.js +1 -1
  89. package/dist/components/finished-terminal/index.js +1 -1
  90. package/dist/components/gestational-age-calculator/index.js +1 -1
  91. package/dist/components/hcg-doubling/index.js +1 -1
  92. package/dist/components/heatmap/index.js +1 -1
  93. package/dist/components/index.d.ts +1 -0
  94. package/dist/components/map-view/index.js +1 -1
  95. package/dist/components/map-view/map-view.d.ts +16 -0
  96. package/dist/components/notes-panel/index.js +1 -1
  97. package/dist/components/operator-hero/index.js +1 -1
  98. package/dist/components/patient-details/index.js +1 -1
  99. package/dist/components/patient-search/index.js +1 -1
  100. package/dist/components/patient-search/patient-search.d.ts +6 -2
  101. package/dist/components/patient-summary-card/index.js +1 -1
  102. package/dist/components/payment-card/index.js +1 -1
  103. package/dist/components/periodontal-chart/index.js +1 -1
  104. package/dist/components/periodontal-chart-card/index.js +1 -1
  105. package/dist/components/periodontal-diagnosis/index.js +1 -1
  106. package/dist/components/periodontal-risk-chart/index.js +1 -1
  107. package/dist/components/practice-profile-hero/index.js +1 -1
  108. package/dist/components/practice-results/index.js +1 -1
  109. package/dist/components/practice-results/practice-results.d.ts +43 -2
  110. package/dist/components/pregnancy-dating/index.js +1 -1
  111. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  112. package/dist/components/public-footer/index.js +1 -1
  113. package/dist/components/public-footer/public-footer.d.ts +23 -0
  114. package/dist/components/public-header/index.js +1 -1
  115. package/dist/components/public-header/public-header.d.ts +7 -0
  116. package/dist/components/reviews-panel/index.js +1 -1
  117. package/dist/components/rich-text-editor/index.js +1 -1
  118. package/dist/components/section-card/index.js +1 -1
  119. package/dist/components/stat/index.js +1 -1
  120. package/dist/components/stat/stat.d.ts +7 -0
  121. package/dist/components/task-card/index.js +1 -1
  122. package/dist/components/task-editor/index.js +1 -1
  123. package/dist/components/task-tray/index.js +1 -1
  124. package/dist/components/tasks-panel/index.js +1 -1
  125. package/dist/components/timeline/index.js +1 -1
  126. package/dist/components/workflow/index.js +1 -1
  127. package/dist/core.css +1 -1
  128. package/dist/host-compat.css +4 -1
  129. package/dist/i18n/locales/ar.d.ts +68 -0
  130. package/dist/i18n/locales/ar.js +70 -2
  131. package/dist/i18n/locales/de.d.ts +68 -0
  132. package/dist/i18n/locales/de.js +70 -2
  133. package/dist/i18n/locales/el.d.ts +68 -0
  134. package/dist/i18n/locales/el.js +70 -2
  135. package/dist/i18n/locales/en.d.ts +68 -0
  136. package/dist/i18n/locales/en.js +68 -0
  137. package/dist/i18n/locales/es.d.ts +68 -0
  138. package/dist/i18n/locales/es.js +70 -2
  139. package/dist/i18n/locales/fr.d.ts +68 -0
  140. package/dist/i18n/locales/fr.js +70 -2
  141. package/dist/i18n/locales/hi.d.ts +68 -0
  142. package/dist/i18n/locales/hi.js +70 -2
  143. package/dist/i18n/locales/it.d.ts +68 -0
  144. package/dist/i18n/locales/it.js +70 -2
  145. package/dist/i18n/locales/ja.d.ts +68 -0
  146. package/dist/i18n/locales/ja.js +70 -2
  147. package/dist/i18n/locales/nl.d.ts +68 -0
  148. package/dist/i18n/locales/nl.js +70 -2
  149. package/dist/i18n/locales/pl.d.ts +68 -0
  150. package/dist/i18n/locales/pl.js +70 -2
  151. package/dist/i18n/locales/pt.d.ts +68 -0
  152. package/dist/i18n/locales/pt.js +70 -2
  153. package/dist/i18n/locales/ro.d.ts +68 -0
  154. package/dist/i18n/locales/ro.js +70 -2
  155. package/dist/i18n/locales/ru.d.ts +68 -0
  156. package/dist/i18n/locales/ru.js +70 -2
  157. package/dist/i18n/locales/sq.d.ts +68 -0
  158. package/dist/i18n/locales/sq.js +70 -2
  159. package/dist/i18n/locales/sv.d.ts +68 -0
  160. package/dist/i18n/locales/sv.js +70 -2
  161. package/dist/i18n/locales/tr.d.ts +68 -0
  162. package/dist/i18n/locales/tr.js +70 -2
  163. package/dist/i18n/locales/zh.d.ts +68 -0
  164. package/dist/i18n/locales/zh.js +70 -2
  165. package/dist/index.js +373 -368
  166. package/dist/locales/ar.json +70 -2
  167. package/dist/locales/de.json +70 -2
  168. package/dist/locales/el.json +70 -2
  169. package/dist/locales/en.json +68 -0
  170. package/dist/locales/es.json +70 -2
  171. package/dist/locales/fr.json +70 -2
  172. package/dist/locales/hi.json +70 -2
  173. package/dist/locales/it.json +70 -2
  174. package/dist/locales/ja.json +70 -2
  175. package/dist/locales/nl.json +70 -2
  176. package/dist/locales/pl.json +70 -2
  177. package/dist/locales/pt.json +70 -2
  178. package/dist/locales/ro.json +70 -2
  179. package/dist/locales/ru.json +70 -2
  180. package/dist/locales/sq.json +70 -2
  181. package/dist/locales/sv.json +70 -2
  182. package/dist/locales/tr.json +70 -2
  183. package/dist/locales/zh.json +70 -2
  184. package/dist/patterns/anamnesis/index.js +1 -1
  185. package/dist/patterns/calendar/index.js +1 -1
  186. package/dist/patterns/forgot-password-form/index.js +1 -1
  187. package/dist/patterns/login-form/index.js +1 -1
  188. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  189. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  190. package/dist/patterns/registration-form/index.js +1 -1
  191. package/dist/patterns/reset-password-form/index.js +1 -1
  192. package/dist/patterns/send-registration-link-form/index.js +1 -1
  193. package/dist/patterns/signed-out-frame/index.js +1 -1
  194. package/dist/patterns/verify-identity/change-email-dialog.d.ts +26 -0
  195. package/dist/patterns/verify-identity/index.d.ts +7 -0
  196. package/dist/patterns/verify-identity/index.js +8 -0
  197. package/dist/patterns/verify-identity/use-countdown.d.ts +12 -0
  198. package/dist/patterns/verify-identity/verify-identity-steps.d.ts +21 -0
  199. package/dist/patterns/verify-identity/verify-identity-types.d.ts +47 -0
  200. package/dist/patterns/verify-identity/verify-identity.d.ts +54 -0
  201. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  202. package/dist/tokens.css +1 -1
  203. package/package.json +5 -1
  204. package/dist/_chunks/email-input-BEO3vonE.js +0 -399
  205. package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
  206. package/dist/_chunks/practice-results-BOpaPaav.js +0 -1923
@@ -0,0 +1,26 @@
1
+ import { type VerifyIdentityProps } from './verify-identity';
2
+ /** What the host answers once it has tried to change the email. */
3
+ export type ChangeEmailResult = {
4
+ status: 'ok';
5
+ } | {
6
+ status: 'already-in-use';
7
+ } | {
8
+ status: 'invalid';
9
+ } | {
10
+ status: 'error';
11
+ /** Already translated. Shown in place of the kit's own line. */
12
+ message?: string;
13
+ };
14
+ export interface ChangeEmailDialogProps extends Omit<VerifyIdentityProps, 'hideHeader' | 'headingLevel' | 'onCancel' | 'onVerified'> {
15
+ open: boolean;
16
+ onOpenChange: (open: boolean) => void;
17
+ /** Called with the new address once both entries match and look like an
18
+ * email. The host checks it for real. */
19
+ onSubmitNewEmail: (email: string) => Promise<ChangeEmailResult>;
20
+ }
21
+ /**
22
+ * Change the login email: the "Verify it's you" steps, then the new
23
+ * address twice, then a confirmation. Closing the dialog starts again.
24
+ */
25
+ export declare function ChangeEmailDialog({ open, onOpenChange, title, description, ...body }: ChangeEmailDialogProps): import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=change-email-dialog.d.ts.map
@@ -0,0 +1,7 @@
1
+ export { VerifyIdentity, VerifyIdentityDialog } from './verify-identity';
2
+ export type { VerifyIdentityProps, VerifyIdentityDialogProps, } from './verify-identity';
3
+ export { ChangeEmailDialog } from './change-email-dialog';
4
+ export type { ChangeEmailDialogProps, ChangeEmailResult, } from './change-email-dialog';
5
+ export { VERIFY_IDENTITY_STEPS } from './verify-identity-types';
6
+ export type { VerifyIdentityStep, VerifyIdentityCallbacks, VerifyResult, SendCodeResult, } from './verify-identity-types';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { C as e, V as t, a as I, b as o } from "../../_chunks/verify-identity-types-C85EXNzy.js";
2
+ export {
3
+ e as ChangeEmailDialog,
4
+ t as VERIFY_IDENTITY_STEPS,
5
+ I as VerifyIdentity,
6
+ o as VerifyIdentityDialog
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,12 @@
1
+ export interface Countdown {
2
+ /** Whole seconds left. 0 when idle or finished. */
3
+ remaining: number;
4
+ /** True once a countdown has run to zero since the last `start`. */
5
+ finished: boolean;
6
+ start: (seconds: number) => void;
7
+ stop: () => void;
8
+ }
9
+ export declare function useCountdown(): Countdown;
10
+ /** 272 -> "4:32". */
11
+ export declare function formatClock(seconds: number): string;
12
+ //# sourceMappingURL=use-countdown.d.ts.map
@@ -0,0 +1,21 @@
1
+ import type { SendCodeResult, VerifyResult } from './verify-identity-types';
2
+ interface StepProps {
3
+ /** Called once the host says the proof is good. */
4
+ onDone: () => void;
5
+ /** Reports whether a call to the host is out, for `data-submitting`. */
6
+ onBusyChange: (busy: boolean) => void;
7
+ }
8
+ interface PasswordStepProps extends StepProps {
9
+ verify?: (password: string) => Promise<VerifyResult>;
10
+ }
11
+ export declare function PasswordStep({ verify, onDone, onBusyChange, }: PasswordStepProps): import("react/jsx-runtime").JSX.Element;
12
+ interface CodeStepProps extends StepProps {
13
+ kind: 'authenticator' | 'sms' | 'email';
14
+ codeLength: number;
15
+ /** Absent for the authenticator: the app makes its own codes. */
16
+ send?: () => Promise<SendCodeResult>;
17
+ verify?: (code: string) => Promise<VerifyResult>;
18
+ }
19
+ export declare function CodeStep({ kind, codeLength, send, verify, onDone, onBusyChange, }: CodeStepProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
21
+ //# sourceMappingURL=verify-identity-steps.d.ts.map
@@ -0,0 +1,47 @@
1
+ /** One proof the user gives. The server decides the order. */
2
+ export declare const VERIFY_IDENTITY_STEPS: readonly ["password", "authenticator", "sms", "email"];
3
+ export type VerifyIdentityStep = (typeof VERIFY_IDENTITY_STEPS)[number];
4
+ /** What a check of a password or a code answers. */
5
+ export type VerifyResult = {
6
+ status: 'ok';
7
+ } | {
8
+ status: 'invalid';
9
+ } | {
10
+ status: 'expired';
11
+ } | {
12
+ status: 'rate-limited';
13
+ waitSeconds: number;
14
+ } | {
15
+ status: 'error';
16
+ /** Already translated. Shown in place of the kit's own line. */
17
+ message?: string;
18
+ };
19
+ /** What sending an SMS or email code answers. */
20
+ export type SendCodeResult = {
21
+ status: 'sent';
22
+ /** How long the code lives. Shown as a countdown when given. */
23
+ expiresInSeconds?: number;
24
+ /** How long until the user may ask for another. Default 30. */
25
+ resendAfterSeconds?: number;
26
+ } | {
27
+ status: 'rate-limited';
28
+ waitSeconds: number;
29
+ } | {
30
+ status: 'error';
31
+ /** Already translated. Shown in place of the kit's own line. */
32
+ message?: string;
33
+ };
34
+ /** The host's checks. Each one is called by the UI, never by the kit
35
+ * itself: the kit makes no request. The password and the codes are
36
+ * passed to these and nowhere else; the kit never logs or stores them. */
37
+ export interface VerifyIdentityCallbacks {
38
+ onVerifyPassword?: (password: string) => Promise<VerifyResult>;
39
+ onVerifyAuthenticator?: (code: string) => Promise<VerifyResult>;
40
+ /** Called once when the SMS step opens, and again on resend. */
41
+ onSendSmsCode?: () => Promise<SendCodeResult>;
42
+ onVerifySmsCode?: (code: string) => Promise<VerifyResult>;
43
+ /** Called once when the email step opens, and again on resend. */
44
+ onSendEmailCode?: () => Promise<SendCodeResult>;
45
+ onVerifyEmailCode?: (code: string) => Promise<VerifyResult>;
46
+ }
47
+ //# sourceMappingURL=verify-identity-types.d.ts.map
@@ -0,0 +1,54 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import type { VerifyIdentityCallbacks, VerifyIdentityStep } from './verify-identity-types';
3
+ export interface VerifyIdentityProps extends VerifyIdentityCallbacks, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
4
+ /**
5
+ * The proofs to ask for, in order. The server decides both; the UI
6
+ * renders them as given.
7
+ */
8
+ steps: readonly VerifyIdentityStep[];
9
+ /** What the user is about to do, such as "Change login email". Pass it
10
+ * translated. Default "Verify it's you". */
11
+ title?: string;
12
+ /** The line under the title, such as "Confirm it is you before you change
13
+ * your login email." Pass it translated. */
14
+ description?: string;
15
+ /** Level of the title. Default 2; each step heading is one deeper. */
16
+ headingLevel?: 2 | 3;
17
+ /** The phone the SMS goes to, already masked: "+39 ••• ••• 4567". The kit
18
+ * never builds a masked number itself. */
19
+ maskedPhone?: string;
20
+ /** The current login email, already masked: "m••••@example.com". */
21
+ maskedEmail?: string;
22
+ /** Digits in a code. Default 6. */
23
+ codeLength?: number;
24
+ /**
25
+ * True when the user has no confirmed mobile. The steps do not run:
26
+ * the card explains why one is needed and offers to set it up.
27
+ */
28
+ missingMobile?: boolean;
29
+ /** Called by the set-up button of the missing-mobile card. */
30
+ onSetUpMobile?: () => void;
31
+ /** Where the set-up button leads instead. A path on the same site, or an
32
+ * address written in full. */
33
+ setUpMobileHref?: string;
34
+ /** Called after the last step is right. */
35
+ onVerified: () => void;
36
+ /** Adds a Cancel button. */
37
+ onCancel?: () => void;
38
+ /** Hides the title and description, for a host that draws its own, such as
39
+ * a dialog. */
40
+ hideHeader?: boolean;
41
+ }
42
+ /**
43
+ * The "Verify it's you" step-up flow, inline. Use `VerifyIdentityDialog`
44
+ * for a dialog. The server decides the steps and checks every answer: this
45
+ * only renders them.
46
+ */
47
+ export declare const VerifyIdentity: import("react").ForwardRefExoticComponent<VerifyIdentityProps & import("react").RefAttributes<HTMLDivElement>>;
48
+ export interface VerifyIdentityDialogProps extends Omit<VerifyIdentityProps, 'hideHeader' | 'headingLevel' | 'onCancel'> {
49
+ open: boolean;
50
+ onOpenChange: (open: boolean) => void;
51
+ }
52
+ /** `VerifyIdentity` in a dialog. Closing it starts the flow again next time. */
53
+ export declare function VerifyIdentityDialog({ open, onOpenChange, title, description, ...flow }: VerifyIdentityDialogProps): import("react/jsx-runtime").JSX.Element;
54
+ //# sourceMappingURL=verify-identity.d.ts.map
@@ -1,4 +1,4 @@
1
- import { W as O, a } from "../../_chunks/workflow-webhook-action-DILFqAVd.js";
1
+ import { W as O, a } from "../../_chunks/workflow-webhook-action-CtBn5JvO.js";
2
2
  export {
3
3
  O as WORKFLOW_WEBHOOK_ACTION_FIELDS,
4
4
  a as WorkflowWebhookAction