@alfadocs/ui-kit 1.132.0 → 1.134.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 (257) hide show
  1. package/dist/_chunks/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
  3. package/dist/_chunks/appointment-card-DG3m9yN-.js +504 -0
  4. package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
  5. package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
  6. package/dist/_chunks/appointment-tray-ClJCtYQj.js +200 -0
  7. package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
  8. package/dist/_chunks/ban-CiSCCcOE.js +15 -0
  9. package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
  10. package/dist/_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js +13773 -0
  11. package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
  12. package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
  13. package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
  14. package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
  15. package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
  16. package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
  17. package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
  18. package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
  19. package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
  20. package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
  21. package/dist/_chunks/house-DGCypGTo.js +21 -0
  22. package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
  23. package/dist/_chunks/keypad-DBH_keVs.js +152 -0
  24. package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
  25. package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
  26. package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
  27. package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
  28. package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
  29. package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BAyPOr8N.js} +2 -2
  30. package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
  31. package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
  32. package/dist/_chunks/patient-account-settings-BkAtIxJW.js +546 -0
  33. package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
  34. package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js +742 -0
  35. package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
  36. package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
  37. package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
  38. package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
  39. package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
  40. package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
  41. package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
  42. package/dist/_chunks/portal-details-CTEsm705.js +478 -0
  43. package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
  44. package/dist/_chunks/portal-parts-BdR29P7z.js +285 -0
  45. package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
  46. package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
  47. package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
  48. package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
  49. package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
  50. package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
  51. package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
  52. package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
  53. package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
  54. package/dist/_chunks/signing-end-screen-an9P8DOT.js +1041 -0
  55. package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
  56. package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
  57. package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-g1AGfxhr.js} +38 -38
  58. package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
  59. package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
  60. package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
  61. package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
  62. package/dist/agent-catalog.json +723 -364
  63. package/dist/agent-i18n/en.json +75 -18
  64. package/dist/browser-support.js +1 -1
  65. package/dist/components/_shared/is-safe-url.d.ts +3 -1
  66. package/dist/components/agenda-card/index.js +2 -2
  67. package/dist/components/agenda-tray/index.js +1 -1
  68. package/dist/components/appointment-card/appointment-card.d.ts +45 -0
  69. package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
  70. package/dist/components/appointment-card/index.js +3 -3
  71. package/dist/components/appointment-details-panel/index.js +1 -1
  72. package/dist/components/appointment-peek/index.js +1 -1
  73. package/dist/components/appointment-timeline/index.js +1 -1
  74. package/dist/components/booking/index.js +1 -1
  75. package/dist/components/calendar/index.js +1 -1
  76. package/dist/components/calendar-event-card/index.js +1 -1
  77. package/dist/components/care-plan-card/index.js +1 -1
  78. package/dist/components/care-plan-entry-card/index.js +1 -1
  79. package/dist/components/care-plan-header/index.js +1 -1
  80. package/dist/components/clinical-note-card/index.js +1 -1
  81. package/dist/components/document-preview/document-preview.d.ts +61 -7
  82. package/dist/components/document-preview/index.js +1 -1
  83. package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
  84. package/dist/components/finished-terminal/index.d.ts +1 -1
  85. package/dist/components/finished-terminal/index.js +1 -1
  86. package/dist/components/index.d.ts +12 -0
  87. package/dist/components/keypad/index.d.ts +3 -0
  88. package/dist/components/keypad/index.js +6 -0
  89. package/dist/components/keypad/keypad.d.ts +54 -0
  90. package/dist/components/keypad-button/index.d.ts +3 -0
  91. package/dist/components/keypad-button/index.js +6 -0
  92. package/dist/components/keypad-button/keypad-button.d.ts +33 -0
  93. package/dist/components/message-card/index.js +2 -2
  94. package/dist/components/message-tray/index.js +1 -1
  95. package/dist/components/note-timeline/index.js +1 -1
  96. package/dist/components/notes-panel/index.js +1 -1
  97. package/dist/components/operator-hero/index.js +1 -1
  98. package/dist/components/otp-input/index.js +1 -1
  99. package/dist/components/otp-input/otp-input.d.ts +11 -0
  100. package/dist/components/patient-summary-card/index.js +1 -1
  101. package/dist/components/payment-card/index.js +1 -1
  102. package/dist/components/pdf-viewer/index.js +1 -1
  103. package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
  104. package/dist/components/pin-entry/index.d.ts +3 -0
  105. package/dist/components/pin-entry/index.js +5 -0
  106. package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
  107. package/dist/components/pin-entry/pin-entry.d.ts +64 -0
  108. package/dist/components/pin-indicator/index.d.ts +3 -0
  109. package/dist/components/pin-indicator/index.js +9 -0
  110. package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
  111. package/dist/components/product-hub-tray/index.js +2 -2
  112. package/dist/components/session-countdown/index.js +1 -1
  113. package/dist/components/session-countdown/session-countdown.d.ts +19 -0
  114. package/dist/components/sign-document/index.js +1 -1
  115. package/dist/components/signature-field/index.js +1 -1
  116. package/dist/components/signature-field/signature-field.d.ts +17 -6
  117. package/dist/components/signature-status-chip/index.js +1 -1
  118. package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
  119. package/dist/components/sms-code-entry/index.d.ts +3 -0
  120. package/dist/components/sms-code-entry/index.js +5 -0
  121. package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
  122. package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
  123. package/dist/components/step-up-dialog/index.d.ts +3 -0
  124. package/dist/components/step-up-dialog/index.js +5 -0
  125. package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
  126. package/dist/components/task-editor/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/hooks/index.js +1 -1
  130. package/dist/hooks/use-signing-session.d.ts +7 -2
  131. package/dist/host-compat.css +10 -1
  132. package/dist/i18n/locales/ar.d.ts +514 -1
  133. package/dist/i18n/locales/ar.js +512 -4
  134. package/dist/i18n/locales/de.d.ts +514 -1
  135. package/dist/i18n/locales/de.js +520 -5
  136. package/dist/i18n/locales/el.d.ts +514 -1
  137. package/dist/i18n/locales/el.js +515 -5
  138. package/dist/i18n/locales/en.d.ts +516 -1
  139. package/dist/i18n/locales/en.js +522 -4
  140. package/dist/i18n/locales/es.d.ts +514 -1
  141. package/dist/i18n/locales/es.js +513 -5
  142. package/dist/i18n/locales/fr.d.ts +514 -1
  143. package/dist/i18n/locales/fr.js +513 -5
  144. package/dist/i18n/locales/hi.d.ts +514 -1
  145. package/dist/i18n/locales/hi.js +513 -5
  146. package/dist/i18n/locales/it.d.ts +514 -1
  147. package/dist/i18n/locales/it.js +520 -5
  148. package/dist/i18n/locales/ja.d.ts +514 -1
  149. package/dist/i18n/locales/ja.js +513 -5
  150. package/dist/i18n/locales/nl.d.ts +514 -1
  151. package/dist/i18n/locales/nl.js +520 -5
  152. package/dist/i18n/locales/pl.d.ts +514 -1
  153. package/dist/i18n/locales/pl.js +520 -5
  154. package/dist/i18n/locales/pt.d.ts +514 -1
  155. package/dist/i18n/locales/pt.js +520 -5
  156. package/dist/i18n/locales/ro.d.ts +514 -1
  157. package/dist/i18n/locales/ro.js +520 -5
  158. package/dist/i18n/locales/ru.d.ts +514 -1
  159. package/dist/i18n/locales/ru.js +512 -4
  160. package/dist/i18n/locales/sq.d.ts +514 -1
  161. package/dist/i18n/locales/sq.js +513 -5
  162. package/dist/i18n/locales/sv.d.ts +514 -1
  163. package/dist/i18n/locales/sv.js +513 -5
  164. package/dist/i18n/locales/tr.d.ts +514 -1
  165. package/dist/i18n/locales/tr.js +515 -5
  166. package/dist/i18n/locales/zh.d.ts +514 -1
  167. package/dist/i18n/locales/zh.js +513 -5
  168. package/dist/index.js +1271 -1204
  169. package/dist/locales/ar.json +516 -3
  170. package/dist/locales/de.json +517 -4
  171. package/dist/locales/el.json +517 -4
  172. package/dist/locales/en.json +516 -3
  173. package/dist/locales/es.json +517 -4
  174. package/dist/locales/fr.json +517 -4
  175. package/dist/locales/hi.json +517 -4
  176. package/dist/locales/it.json +517 -4
  177. package/dist/locales/ja.json +517 -4
  178. package/dist/locales/nl.json +517 -4
  179. package/dist/locales/pl.json +517 -4
  180. package/dist/locales/pt.json +517 -4
  181. package/dist/locales/ro.json +517 -4
  182. package/dist/locales/ru.json +516 -3
  183. package/dist/locales/sq.json +517 -4
  184. package/dist/locales/sv.json +517 -4
  185. package/dist/locales/tr.json +517 -4
  186. package/dist/locales/zh.json +517 -4
  187. package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
  188. package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
  189. package/dist/patterns/calendar/calendar.types.d.ts +4 -0
  190. package/dist/patterns/calendar/index.js +1 -1
  191. package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
  192. package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
  193. package/dist/patterns/check-in-documents/index.d.ts +4 -0
  194. package/dist/patterns/check-in-documents/index.js +5 -0
  195. package/dist/patterns/error-page/index.js +1 -1
  196. package/dist/patterns/patient-account-settings/index.d.ts +4 -0
  197. package/dist/patterns/patient-account-settings/index.js +5 -0
  198. package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
  199. package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
  200. package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
  201. package/dist/patterns/patient-check-in/index.d.ts +20 -0
  202. package/dist/patterns/patient-check-in/index.js +13 -0
  203. package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
  204. package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
  205. package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
  206. package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
  207. package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
  208. package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
  209. package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
  210. package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
  211. package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
  212. package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
  213. package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
  214. package/dist/patterns/patient-portal/index.d.ts +12 -0
  215. package/dist/patterns/patient-portal/index.js +13 -0
  216. package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
  217. package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
  218. package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
  219. package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
  220. package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
  221. package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
  222. package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
  223. package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
  224. package/dist/patterns/patient-sign-in/index.d.ts +7 -0
  225. package/dist/patterns/patient-sign-in/index.js +15 -0
  226. package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
  227. package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
  228. package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
  229. package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
  230. package/dist/patterns/registration-form/index.js +1 -1
  231. package/dist/patterns/signature-request/index.js +1 -1
  232. package/dist/patterns/signing/index.d.ts +25 -0
  233. package/dist/patterns/signing/index.js +16 -0
  234. package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
  235. package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
  236. package/dist/patterns/signing/signing-chrome.d.ts +30 -0
  237. package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
  238. package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
  239. package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
  240. package/dist/patterns/signing/signing-footer.d.ts +56 -0
  241. package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
  242. package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
  243. package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
  244. package/dist/patterns/signing/signing-roster.d.ts +44 -0
  245. package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
  246. package/dist/patterns/verify-identity/index.js +1 -1
  247. package/dist/tokens.css +1 -1
  248. package/package.json +49 -1
  249. package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
  250. package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
  251. package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
  252. package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
  253. package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
  254. package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
  255. package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
  256. package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
  257. package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
@@ -0,0 +1,157 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type PatientHeadingLevel } from './patient-card';
3
+ /**
4
+ * What the host reports about the PIN (HTP-6898, D119, D125): `wrong` is a
5
+ * PIN that is not right; `paused` means sign-in is paused after too many
6
+ * wrong PINs. The host compares the PIN and counts the tries; the kit does
7
+ * neither.
8
+ */
9
+ export type PatientPinError = 'wrong' | 'paused';
10
+ export interface PatientSignInPinProps {
11
+ /**
12
+ * The email the person is signing in as, echoed under the title. Hidden
13
+ * under `privacy`.
14
+ */
15
+ email: string;
16
+ /** The digits, when controlled. Pair with `onValueChange`. */
17
+ value?: string;
18
+ /** The first digits, when uncontrolled. */
19
+ defaultValue?: string;
20
+ /** Called with the digits on every change, controlled or not. */
21
+ onValueChange?: (value: string) => void;
22
+ /** Number of digits, 4 to 12. Default 8. */
23
+ length?: number;
24
+ /**
25
+ * Called with the PIN when "Continue" is pressed with every digit typed.
26
+ * Never called as the last digit lands. The host compares the PIN.
27
+ */
28
+ onSubmit: (pin: string) => void;
29
+ /**
30
+ * The host is checking the PIN: the button shows a spinner.
31
+ * Set it while checking: a repeated refusal then clears the message, empties
32
+ * the field and returns focus to it.
33
+ */
34
+ submitting?: boolean;
35
+ /**
36
+ * What the host found. `wrong`: the dots turn red, the PIN empties and
37
+ * focus returns to it. `paused`: the keypad is off and the main button
38
+ * becomes "Reset my PIN".
39
+ */
40
+ error?: PatientPinError | null;
41
+ /**
42
+ * Host text that replaces the default message for `error`. Rendered as given, also under `privacy`: keep it free of personal data there.
43
+ */
44
+ errorText?: string;
45
+ /**
46
+ * Called by "Forgot your PIN?" and, while `paused`, by "Reset my PIN".
47
+ */
48
+ onForgot: () => void;
49
+ /** Called by "Use a different email". The link shows only when given. */
50
+ onChangeEmail?: () => void;
51
+ /**
52
+ * Extra content in the card footer, for example a host note. Rendered as given, also under `privacy`: keep it free of personal data there.
53
+ */
54
+ footer?: ReactNode;
55
+ /** Move focus to the heading when the screen shows. */
56
+ focusOnMount?: boolean;
57
+ /** Privacy mode: the email is not shown. */
58
+ privacy?: boolean;
59
+ /**
60
+ * Class stamped on the PIN control so session replay skips it. Default
61
+ * `ph-no-capture`.
62
+ */
63
+ maskClassName?: string;
64
+ /** Extra classes for the root. */
65
+ className?: string;
66
+ }
67
+ /**
68
+ * Sign-in screen 2 (D124, D125): the PIN as dots on the keypad, for an email
69
+ * that has an account. The SMS code follows only after the host accepts the
70
+ * PIN.
71
+ */
72
+ export declare function PatientSignInPin({ email, value, defaultValue, onValueChange, length, onSubmit, submitting, error, errorText, onForgot, onChangeEmail, footer, focusOnMount, privacy, maskClassName, className, }: PatientSignInPinProps): import("react/jsx-runtime").JSX.Element;
73
+ /**
74
+ * What the host reports about a new PIN (D131). Only the mobile's last four
75
+ * digits has a built-in text. Every other refusal (repeated or run digits,
76
+ * a birth date, two entries that differ) arrives as `errorText`.
77
+ */
78
+ export type PatientSetPinError = 'mobile';
79
+ export interface PatientSetPinProps {
80
+ /**
81
+ * `choose`: the first entry. `confirm`: the second. The host holds the
82
+ * first PIN, compares the two, and sets the phase. Changing it empties
83
+ * the field and moves focus to the heading.
84
+ */
85
+ phase: 'choose' | 'confirm';
86
+ /** The digits, when controlled. Pair with `onValueChange`. */
87
+ value?: string;
88
+ /** The first digits, when uncontrolled. */
89
+ defaultValue?: string;
90
+ /** Called with the digits on every change, controlled or not. */
91
+ onValueChange?: (value: string) => void;
92
+ /** Number of digits, 4 to 12. Default 8. */
93
+ length?: number;
94
+ /**
95
+ * Called with the PIN and the phase when "Continue" is pressed with every
96
+ * digit typed. Never called as the last digit lands. The host decides
97
+ * whether the PIN is allowed and whether the two entries match.
98
+ */
99
+ onSubmit: (pin: string, phase: 'choose' | 'confirm') => void;
100
+ /**
101
+ * The host is checking the PIN: the button shows a spinner.
102
+ * Set it while checking: a repeated refusal then clears the message, empties
103
+ * the field and returns focus to it.
104
+ */
105
+ submitting?: boolean;
106
+ /**
107
+ * `mobile`: the PIN contains the last four digits of the person's mobile
108
+ * (D131), with a built-in message. The host decides; the kit never reads
109
+ * the mobile.
110
+ */
111
+ error?: PatientSetPinError | null;
112
+ /**
113
+ * Host text for any refusal: it replaces the built-in message and is the
114
+ * only way to show the other reasons. On refusal the field empties and
115
+ * takes focus.
116
+ * Rendered as given, also under `privacy`: keep it free of personal data there.
117
+ */
118
+ errorText?: string;
119
+ /**
120
+ * An extra line under the description, for example a host rule list.
121
+ * Rendered as given, also under `privacy`: keep it free of personal data there.
122
+ */
123
+ note?: ReactNode;
124
+ /**
125
+ * The account's email, shown read-only as the username so a password
126
+ * manager saves the new PIN with it. `null` or absent: no field (an
127
+ * invite shows no patient data, AUTH-15). Not shown under `privacy`.
128
+ */
129
+ email?: string | null;
130
+ /**
131
+ * A line above the title, for example "Step 2 of 3". Rendered as given, also under `privacy`: keep it free of personal data there.
132
+ */
133
+ step?: string;
134
+ /** Heading level. Default 1; use 2 inside a page that has an h1. */
135
+ headingLevel?: PatientHeadingLevel;
136
+ /**
137
+ * Move focus to the heading when the screen shows. Focus also moves to
138
+ * the heading whenever `phase` changes, so the new step is announced.
139
+ */
140
+ focusOnMount?: boolean;
141
+ /** Privacy mode: the email is not shown. */
142
+ privacy?: boolean;
143
+ /**
144
+ * Class stamped on the PIN control so session replay skips it. Default
145
+ * `ph-no-capture`.
146
+ */
147
+ maskClassName?: string;
148
+ /** Extra classes for the root. */
149
+ className?: string;
150
+ }
151
+ /**
152
+ * Setting a PIN (HTP-6898, D131): the PIN twice on the keypad, one phase at
153
+ * a time. The kit compares nothing: the host holds the first entry and
154
+ * answers with `phase`, `error` and `errorText`.
155
+ */
156
+ export declare function PatientSetPin({ phase, value, defaultValue, onValueChange, length, onSubmit, submitting, error, errorText, note, email, step, headingLevel, focusOnMount, privacy, maskClassName, className, }: PatientSetPinProps): import("react/jsx-runtime").JSX.Element;
157
+ //# sourceMappingURL=patient-sign-in-pin.d.ts.map
@@ -0,0 +1,143 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type SmsCodeEntryProps } from '../../components/sms-code-entry';
3
+ import { type PatientHeadingLevel } from './patient-card';
4
+ export interface PatientSignInCodeProps extends Omit<SmsCodeEntryProps, 'body' | 'className' | 'title'> {
5
+ /** Replaces the heading. Default "Enter the SMS code". */
6
+ title?: string;
7
+ /**
8
+ * A line under the heading. The entry itself names the mobile. Rendered as given, also under `privacy`: keep it free of personal data there.
9
+ */
10
+ description?: ReactNode;
11
+ /**
12
+ * Called by "Back". The button shows only when this is given. Use it to
13
+ * return to the PIN, or to the invite step before.
14
+ */
15
+ onBack?: () => void;
16
+ /** Heading level. Default 1; use 2 inside a page that has an h1. */
17
+ headingLevel?: PatientHeadingLevel;
18
+ /**
19
+ * Move focus to the heading when the screen shows. `autoFocus` (an
20
+ * `SmsCodeEntry` prop) puts focus in the first box instead; if both are
21
+ * set, the heading wins.
22
+ */
23
+ focusOnMount?: boolean;
24
+ /** Extra classes for the root. */
25
+ className?: string;
26
+ }
27
+ /**
28
+ * A titled card around the Phase 4 `SmsCodeEntry`: the SMS code of sign-in,
29
+ * of a PIN reset and of an invite's "prove your mobile" step. Every
30
+ * `SmsCodeEntry` prop except `body` passes through (`destination`, `value`,
31
+ * `onSubmit`, `error`, `remainingSeconds`, `onResend`, `resent`,
32
+ * `privacy` and the rest). The host decides whether a code is right, counts
33
+ * the tries and the wait, and keeps the 10 minute window.
34
+ */
35
+ export declare function PatientSignInCode({ title, description, onBack, headingLevel, focusOnMount, className, ...entry }: PatientSignInCodeProps): import("react/jsx-runtime").JSX.Element;
36
+ export interface PatientNoMobileProps {
37
+ /**
38
+ * Which flow ended here: `sign-in` (no verified mobile, so no code can
39
+ * go out) or `reset` (the same, while resetting the PIN). Not the
40
+ * in-session refusal, which is the `StepUpDialog` `noMobile` state.
41
+ */
42
+ context: 'sign-in' | 'reset';
43
+ /** Called by "Back to sign in". The button shows only when given. */
44
+ onBack?: () => void;
45
+ /** Move focus to the heading when the screen shows. Default false. */
46
+ focusOnMount?: boolean;
47
+ /** Extra classes for the root. */
48
+ className?: string;
49
+ }
50
+ /**
51
+ * The dead end "Contact your practice": the account has no verified mobile,
52
+ * so no SMS code can be sent (D118, D140).
53
+ */
54
+ export declare function PatientNoMobile({ context, onBack, focusOnMount, className, }: PatientNoMobileProps): import("react/jsx-runtime").JSX.Element;
55
+ export interface PatientPinChangedProps {
56
+ /** Called by "Back to sign in". The button shows only when given. */
57
+ onContinue?: () => void;
58
+ /**
59
+ * The host sent a notice of the change to the person's email: a line says
60
+ * so. Set false when no notice went out. Default true.
61
+ */
62
+ noticeSent?: boolean;
63
+ /** Move focus to the heading when the screen shows. Default false. */
64
+ focusOnMount?: boolean;
65
+ /** Extra classes for the root. */
66
+ className?: string;
67
+ }
68
+ /** "Your PIN is changed": the end of a PIN reset. */
69
+ export declare function PatientPinChanged({ onContinue, noticeSent, focusOnMount, className, }: PatientPinChangedProps): import("react/jsx-runtime").JSX.Element;
70
+ export interface PatientSessionBarProps {
71
+ /**
72
+ * Milliseconds left in the session, counted by the host. The bar runs no
73
+ * timer: it shows what it is given. Lengths (15 minutes, 30 minutes,
74
+ * 8 hours) are the host's values.
75
+ */
76
+ remainingMs: number;
77
+ /** Full session length in ms. Default: the countdown's own (15 minutes). */
78
+ totalMs?: number;
79
+ /** Remaining ms at or below which the banner turns to its warning tone. */
80
+ warnAtMs?: number;
81
+ /**
82
+ * Accessible name of the timer. Keep it neutral: it is shared by login,
83
+ * portal and check-in, so it must not say "check-in". The visible
84
+ * sentences and the Restart label are neutral by default too.
85
+ */
86
+ label?: string;
87
+ /** Called by "Sign out", which stays visible in every tone. */
88
+ onSignOut: () => void;
89
+ /** Replaces the Sign out label. Default "Sign out". */
90
+ signOutLabel?: string;
91
+ /** Called once when `remainingMs` reaches 0. */
92
+ onExpire?: () => void;
93
+ /** Called by the expired banner's button. The button shows only when given. */
94
+ onRestart?: () => void;
95
+ /** Replaces the expired banner's button label. Default "Sign in again". */
96
+ restartLabel?: string;
97
+ /** Extra classes for the root. */
98
+ className?: string;
99
+ }
100
+ /**
101
+ * The session banner and a visible Sign out, shared by login, the portal and
102
+ * check-in (D142). The banner is the Phase 4 `SessionCountdown`: running,
103
+ * then a warning tone, then expired. There is no warning dialog; the tone is
104
+ * the warning.
105
+ */
106
+ export declare function PatientSessionBar({ remainingMs, totalMs, warnAtMs, label, onSignOut, signOutLabel, onExpire, onRestart, restartLabel, className, }: PatientSessionBarProps): import("react/jsx-runtime").JSX.Element;
107
+ /** Why the session ended. See `PatientSessionEndedProps`. */
108
+ export type PatientSessionEndReason = 'signed-out' | 'timed-out' | 'max-age';
109
+ interface PatientSessionEndedBase {
110
+ /**
111
+ * Label of the one button. Default "Sign in again"; check-in passes its
112
+ * Restart wording here.
113
+ */
114
+ actionLabel?: string;
115
+ /** Called by the button. The host starts sign-in again. */
116
+ onSignIn: () => void;
117
+ /** Move focus to the heading when the screen shows. Default false. */
118
+ focusOnMount?: boolean;
119
+ /** Extra classes for the root. */
120
+ className?: string;
121
+ }
122
+ export type PatientSessionEndedProps = PatientSessionEndedBase & ({
123
+ /** The person pressed Sign out. */
124
+ reason: 'signed-out';
125
+ } | {
126
+ /** Nothing happened for a while, so the host ended the session. */
127
+ reason: 'timed-out';
128
+ /** The idle length the host used, in minutes (15 or 30). */
129
+ idleMinutes: number;
130
+ } | {
131
+ /** The host's longest session length was reached (D69). */
132
+ reason: 'max-age';
133
+ /** The longest session length, in hours (for example 8). */
134
+ maxAgeHours: number;
135
+ });
136
+ /**
137
+ * The end screen after Sign out, a timeout or the longest session length.
138
+ * One button, no countdown and no automatic move. The host clears the
139
+ * session; this only says so.
140
+ */
141
+ export declare function PatientSessionEnded(props: PatientSessionEndedProps): import("react/jsx-runtime").JSX.Element;
142
+ export {};
143
+ //# sourceMappingURL=patient-sign-in-steps.d.ts.map
@@ -1,4 +1,4 @@
1
- import { R as o, a as r } from "../../_chunks/registration-form-CwbhtKcy.js";
1
+ import { R as o, a as r } from "../../_chunks/registration-form-DS3RuKHu.js";
2
2
  export {
3
3
  o as REGISTRATION_FORM_FIELDS,
4
4
  r as RegistrationForm
@@ -1,4 +1,4 @@
1
- import { S as o } from "../../_chunks/signature-request-4pGq3YBe.js";
1
+ import { S as o } from "../../_chunks/signature-request-CHsM_iWi.js";
2
2
  export {
3
3
  o as SignatureRequestModal
4
4
  };
@@ -0,0 +1,25 @@
1
+ export { MultiFieldSigner } from './multi-field-signer';
2
+ export type { MultiFieldSignerProps, SigningStepDocument, SigningStepField, SigningStepLabels, } from './multi-field-signer';
3
+ export { SigningChrome } from './signing-chrome';
4
+ export type { SigningChromeProps } from './signing-chrome';
5
+ export { SigningProgressChip } from './signing-progress-chip';
6
+ export type { SigningProgressChipProps } from './signing-progress-chip';
7
+ export { SigningFooter } from './signing-footer';
8
+ export type { SigningFooterProps } from './signing-footer';
9
+ export { SigningRoster } from './signing-roster';
10
+ export type { RosterSigner, SigningRosterProps, SigningRosterStatus, } from './signing-roster';
11
+ export { SigningDocumentScreen } from './signing-document-screen';
12
+ export type { SigningDocumentScreenProps } from './signing-document-screen';
13
+ export { SigningMessageDialog } from './signing-message-dialog';
14
+ export type { SigningMessageDialogProps } from './signing-message-dialog';
15
+ export { SigningStaffIdConfirmation } from './signing-staff-id-confirmation';
16
+ export type { SigningStaffIdConfirmationProps, SigningStaffIdError, } from './signing-staff-id-confirmation';
17
+ export { SigningHandoffScreen } from './signing-handoff-screen';
18
+ export type { SigningHandoffScreenProps } from './signing-handoff-screen';
19
+ export { SigningAwaitingScreen } from './signing-awaiting-screen';
20
+ export type { SigningAwaitingScreenProps } from './signing-awaiting-screen';
21
+ export { SigningFinishedScreen } from './signing-finished-screen';
22
+ export type { SigningFinishedReason, SigningFinishedScreenProps, } from './signing-finished-screen';
23
+ export { SigningEndScreen } from './signing-end-screen';
24
+ export type { SigningEndReason, SigningEndScreenProps, } from './signing-end-screen';
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { M as g, S as e, a, b as S, c as s, d as r, e as o, f as t, g as c, h as f, i as d, j as h } from "../../_chunks/signing-end-screen-an9P8DOT.js";
2
+ export {
3
+ g as MultiFieldSigner,
4
+ e as SigningAwaitingScreen,
5
+ a as SigningChrome,
6
+ S as SigningDocumentScreen,
7
+ s as SigningEndScreen,
8
+ r as SigningFinishedScreen,
9
+ o as SigningFooter,
10
+ t as SigningHandoffScreen,
11
+ c as SigningMessageDialog,
12
+ f as SigningProgressChip,
13
+ d as SigningRoster,
14
+ h as SigningStaffIdConfirmation
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,117 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type PDFZoomPreset } from '../../components/pdf-viewer';
3
+ import { type SignatureConfirmPayload } from '../../components/signature-capture';
4
+ import type { SigningFieldBase, UseSigningSessionReturn } from '../../hooks';
5
+ /** A signature field: id + live signed state (via the session) + page-overlay geometry. */
6
+ export interface SigningStepField extends SigningFieldBase {
7
+ /** 1-based page the field sits on. */
8
+ page: number;
9
+ /** Which document in the envelope (default 0). */
10
+ docIndex?: number;
11
+ /**
12
+ * Percent offset of the field's logical start edge on the page. The PDF
13
+ * page is always left to right, so in an RTL layout the host converts the
14
+ * template's left offset to this start offset (100 - left - width).
15
+ */
16
+ insetInlineStart: number;
17
+ /** Percent offset of the field's logical top edge on the page. */
18
+ insetBlockStart: number;
19
+ /** Percent of the page's inline size. */
20
+ inlineSize: number;
21
+ /** Percent of the page's block size. */
22
+ blockSize: number;
23
+ /** Already-translated caption / accessible name for the field. */
24
+ label: string;
25
+ /**
26
+ * Render THIS field glyph-only (`SignatureField hideLabel`) while others
27
+ * keep their captions. The label stays the accessible name.
28
+ */
29
+ hideLabel?: boolean;
30
+ }
31
+ /** All already-translated strings the capture dialog needs. */
32
+ export interface SigningStepLabels {
33
+ /** Capture dialog title. */
34
+ dialogTitle: string;
35
+ /** Capture dialog subtitle. */
36
+ dialogSubtitle: string;
37
+ /**
38
+ * Apply label (kept for existing callers). Not rendered: the capture pad's
39
+ * own confirm button submits each field. The armed button that ends the
40
+ * round is the footer's Sign button (`SigningFooter.onSign`, D133).
41
+ */
42
+ apply: string;
43
+ /** Per-document heading for multi-document envelopes, e.g. (1, 2) gives "Document 1 of 2". */
44
+ documentHeading?: (current: number, total: number) => string;
45
+ /**
46
+ * With `nextField`, enables Previous/Next controls inside the capture
47
+ * dialog: the signer jumps to the adjacent unsigned field without closing
48
+ * the dialog.
49
+ */
50
+ previousField?: string;
51
+ /** See `previousField`. */
52
+ nextField?: string;
53
+ }
54
+ /** One document in a multi-PDF envelope. */
55
+ export interface SigningStepDocument {
56
+ /** Stable document index: matches each field's `docIndex`. */
57
+ docIndex: number;
58
+ /** PDF source for this document. */
59
+ src: string | ArrayBuffer | Uint8Array;
60
+ /** Already-translated accessible label / heading for this document. */
61
+ title: string;
62
+ }
63
+ export interface MultiFieldSignerProps {
64
+ /** Single-document PDF source. Provide EITHER `src` OR `documents`. */
65
+ src?: string | ArrayBuffer | Uint8Array;
66
+ /** Multi-document envelope: renders every document in one continuous scroll. */
67
+ documents?: SigningStepDocument[];
68
+ /** Session from `useSigningSession(fields)`: owns signed state and the counter. */
69
+ session: UseSigningSessionReturn<SigningStepField, SignatureConfirmPayload>;
70
+ /** Already-translated capture dialog strings. */
71
+ labels: SigningStepLabels;
72
+ /** Single-document field filter (ignored when `documents` is set). */
73
+ docIndex?: number;
74
+ /** Accessible label for the PDF region (the document title). */
75
+ ariaLabel?: string;
76
+ /** Initial PDF zoom. Default `'fit-width'`. */
77
+ initialZoom?: PDFZoomPreset;
78
+ /**
79
+ * Render every field glyph-only (`SignatureField hideLabel`), for surfaces
80
+ * whose field labels are long document titles. Labels still form each
81
+ * field's accessible name.
82
+ */
83
+ hideFieldLabels?: boolean;
84
+ /**
85
+ * Called when the signer confirms the capture dialog. It returns nothing
86
+ * and is never awaited. Absent: the component calls `session.markSigned`
87
+ * itself. Present: the host sends the signature and calls
88
+ * `session.markSigned` after its own success; until then the dialog stays
89
+ * open.
90
+ */
91
+ onFieldConfirm?: (fieldId: string, payload: SignatureConfirmPayload) => void;
92
+ /**
93
+ * The field the host is sending right now. That field shows its `signing`
94
+ * state, and the capture pad and the in-dialog field buttons are disabled.
95
+ */
96
+ submittingFieldId?: string | null;
97
+ /**
98
+ * A message from the host about the last confirm (for example the server
99
+ * refused it). Shown as an alert in the capture dialog, which stays open.
100
+ */
101
+ captureError?: string | null;
102
+ /**
103
+ * Called once when the last field becomes signed during this component's
104
+ * life. It informs only: opening a dialog or moving on is the host's call.
105
+ */
106
+ onAllSigned?: () => void;
107
+ /** Extra classes for the root. */
108
+ className?: string;
109
+ }
110
+ /**
111
+ * The document surface of a signing round: PDFs in one scroll, a
112
+ * `SignatureField` overlay on each field, and a capture dialog (draw or type).
113
+ * Session-driven: it never decides what is signed. A signed field cannot be
114
+ * reopened (the session refuses it and the field is not activatable).
115
+ */
116
+ export declare function MultiFieldSigner({ src, documents, session, labels, docIndex, ariaLabel, initialZoom, hideFieldLabels, onFieldConfirm, submittingFieldId, captureError, onAllSigned, className, }: MultiFieldSignerProps): ReactNode;
117
+ //# sourceMappingURL=multi-field-signer.d.ts.map
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface SigningAwaitingScreenProps {
3
+ /** The signee who has just finished. Host data. */
4
+ signerName: string;
5
+ /** The signee who signs next. Required unless `secondaryPending`. Host data. */
6
+ nextName?: string;
7
+ /** Nobody is assigned as the second signee yet: the "not assigned" copy shows and `nextName` is ignored. */
8
+ secondaryPending?: boolean;
9
+ /** Wrap the screen in the signing brand bar. Default true. */
10
+ withChrome?: boolean;
11
+ /** Replaces the wordmark in the brand bar. */
12
+ brand?: ReactNode;
13
+ /** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
14
+ brandLabel?: string;
15
+ /** Privacy mode: both names show as the mask. */
16
+ privacy?: boolean;
17
+ /** Extra classes for the root. */
18
+ className?: string;
19
+ }
20
+ /**
21
+ * "Your part is done": the first signee is finished and has nothing more to
22
+ * do. No button and no countdown.
23
+ */
24
+ export declare function SigningAwaitingScreen({ signerName, nextName, secondaryPending, withChrome, brand, brandLabel, privacy, className, }: SigningAwaitingScreenProps): ReactNode;
25
+ //# sourceMappingURL=signing-awaiting-screen.d.ts.map
@@ -0,0 +1,30 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface SigningChromeProps {
3
+ /** The page content under the bar. */
4
+ children: ReactNode;
5
+ /**
6
+ * Replaces the wordmark in the bar (the practice's brand, for example).
7
+ * Default: the Alfadocs logo.
8
+ */
9
+ brand?: ReactNode;
10
+ /**
11
+ * Top-right slot of the bar, usually a `SigningProgressChip`. It sits in the
12
+ * flex row beside the wordmark and may wrap, so the two never overlap. With
13
+ * an action present the wordmark starts at the inline start.
14
+ */
15
+ headerActions?: ReactNode;
16
+ /**
17
+ * Accessible name of the bar, and of the default Alfadocs wordmark.
18
+ * Default: "Alfadocs". A custom `brand` is rendered as given and carries its
19
+ * own name (visible text, or an image with alt text).
20
+ */
21
+ brandLabel?: string;
22
+ /** Extra classes for the root. */
23
+ className?: string;
24
+ }
25
+ /**
26
+ * The brand bar and warm shell around a signing screen. Placement only: it
27
+ * holds no state and no flow logic.
28
+ */
29
+ export declare function SigningChrome({ children, brand, headerActions, brandLabel, className, }: SigningChromeProps): ReactNode;
30
+ //# sourceMappingURL=signing-chrome.d.ts.map
@@ -0,0 +1,87 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { SignatureConfirmPayload } from '../../components/signature-capture';
3
+ import type { UseSigningSessionReturn } from '../../hooks';
4
+ import { type SigningStepDocument, type SigningStepField } from './multi-field-signer';
5
+ import { type SigningRosterProps } from './signing-roster';
6
+ export interface SigningDocumentScreenProps {
7
+ /** The signing session for this signee, from `useSigningSession`. Required. */
8
+ session: UseSigningSessionReturn<SigningStepField, SignatureConfirmPayload>;
9
+ /** Single-document PDF source. Provide EITHER `src` OR `documents`. */
10
+ src?: string | ArrayBuffer | Uint8Array;
11
+ /** Multi-document envelope. */
12
+ documents?: SigningStepDocument[];
13
+ /** Headline of the step. Host text (the document's name). Also names the PDF region. Shown as given, also under `privacy`: keep personal data out of it there. */
14
+ title?: string;
15
+ /** Line under the headline, for example the practice or the date. Host content. Shown as given, also under `privacy`. */
16
+ meta?: ReactNode;
17
+ /** Level of the headline. Default 1. */
18
+ headingLevel?: 1 | 2;
19
+ /** Instruction shown in an alert above the document. Plain text only, never HTML. Shown as given, also under `privacy`. */
20
+ instruction?: string;
21
+ /** The two-row roster, when the envelope has two signees. Its `privacy` follows this screen's. */
22
+ roster?: Omit<SigningRosterProps, 'privacy'>;
23
+ /** Signers complete so far, for "N of M signers complete". Absent: no line. */
24
+ envelopeProgress?: {
25
+ done: number;
26
+ total: number;
27
+ };
28
+ /** First name of the signee, for the named progress chip after a hand-off. */
29
+ progressName?: string;
30
+ /** The host is completing the document: the footer shows "Completing your document…". */
31
+ completing?: boolean;
32
+ /**
33
+ * Called when the signer presses Sign, the last step of the round (D133).
34
+ * The button arms once every field of `session` is signed
35
+ * (`session.isComplete`); unarmed, it ignores presses. The host signs the
36
+ * envelope and sets `completing` in the same handler as the press (a press
37
+ * while `completing` is ignored). No code is asked at the end: the check
38
+ * came before the document opened. Absent: no Sign button.
39
+ */
40
+ onSign?: () => void;
41
+ /**
42
+ * The host's message about the last Sign press, for example the server
43
+ * refused it. Shown above the Sign button, which stays armed for another
44
+ * try. The host sets `completing` in the same handler as the press and
45
+ * keeps or clears this as it likes: the kit hides it while `completing`.
46
+ * Host text, shown as given, also under `privacy`.
47
+ */
48
+ signError?: string | null;
49
+ /** Called when the signer confirms a signature. See `MultiFieldSigner.onFieldConfirm`. */
50
+ onFieldConfirm?: (fieldId: string, payload: SignatureConfirmPayload) => void;
51
+ /** The field the host is sending now. */
52
+ submittingFieldId?: string | null;
53
+ /** The host's message about the last confirm; shown in the capture dialog. */
54
+ captureError?: string | null;
55
+ /** Extra dialogs, for example a `SigningMessageDialog`. The host owns them. */
56
+ dialogs?: ReactNode;
57
+ /** Render every field glyph-only. Labels stay the accessible names. */
58
+ hideFieldLabels?: boolean;
59
+ /** Wrap the screen in the signing brand bar. Default true. */
60
+ withChrome?: boolean;
61
+ /** Replaces the wordmark in the brand bar. */
62
+ brand?: ReactNode;
63
+ /** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
64
+ brandLabel?: string;
65
+ /**
66
+ * Move focus to the heading on arrival. Turn it on whenever the round
67
+ * replaces another view in place (after a code gate, a list or a hand-off),
68
+ * check-in included. Needs `title`. Default false.
69
+ */
70
+ focusOnMount?: boolean;
71
+ /**
72
+ * Privacy mode for the roster and the progress chip. It does not cover
73
+ * the PDF, the signature images, the field labels or the host text
74
+ * (`title`, `meta`, `instruction`, `signError`, `dialogs`): keep personal
75
+ * data out of those there (to confirm).
76
+ */
77
+ privacy?: boolean;
78
+ /** Extra classes for the root. */
79
+ className?: string;
80
+ }
81
+ /**
82
+ * The document step of a signing round. Session-driven and callback-driven:
83
+ * it shows the document, the progress and the Sign button, and tells the
84
+ * host what happened.
85
+ */
86
+ export declare function SigningDocumentScreen({ session, src, documents, title, meta, headingLevel, instruction, roster, envelopeProgress, progressName, completing, onSign, signError, onFieldConfirm, submittingFieldId, captureError, dialogs, hideFieldLabels, withChrome, brand, brandLabel, focusOnMount, privacy, className, }: SigningDocumentScreenProps): ReactNode;
87
+ //# sourceMappingURL=signing-document-screen.d.ts.map
@@ -0,0 +1,27 @@
1
+ import type { ReactNode } from 'react';
2
+ /** Why the signing link ends here. */
3
+ export type SigningEndReason = 'expired' | 'already-completed' | 'cancelled';
4
+ export interface SigningEndScreenProps {
5
+ /** Why the link ends here. Required. */
6
+ reason: SigningEndReason;
7
+ /** The practice's name, for "Contact {practice}…". Host data. Absent: "the practice". */
8
+ practiceName?: string;
9
+ /** Replaces the default headline. Host text. */
10
+ title?: string;
11
+ /** Replaces the default sentence. Host text. */
12
+ body?: string;
13
+ /** Wrap the screen in the signing brand bar. Default true. */
14
+ withChrome?: boolean;
15
+ /** Replaces the wordmark in the brand bar. */
16
+ brand?: ReactNode;
17
+ /** Accessible name of the brand bar. See `SigningChrome.brandLabel`. */
18
+ brandLabel?: string;
19
+ /** Extra classes for the root. */
20
+ className?: string;
21
+ }
22
+ /**
23
+ * The end screen of a signing link that cannot be used: expired, already
24
+ * signed, or cancelled by the practice. No button.
25
+ */
26
+ export declare function SigningEndScreen({ reason, practiceName, title, body, withChrome, brand, brandLabel, className, }: SigningEndScreenProps): ReactNode;
27
+ //# sourceMappingURL=signing-end-screen.d.ts.map