@alfadocs/ui-kit 1.134.0 → 1.136.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.
- package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
- package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
- package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
- package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
- package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
- package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
- package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
- package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
- package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
- package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
- package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
- package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
- package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
- package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
- package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
- package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
- package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
- package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
- package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
- package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
- package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
- package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
- package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
- package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
- package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
- package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
- package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
- package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
- package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
- package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
- package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
- package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
- package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
- package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
- package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
- package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
- package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
- package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
- package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
- package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
- package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
- package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
- package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
- package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
- package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
- package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
- package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
- package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
- package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
- package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +528 -2
- package/dist/agent-i18n/en.json +51 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
- package/dist/components/call-status-chip/index.d.ts +3 -0
- package/dist/components/call-status-chip/index.js +5 -0
- package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
- package/dist/components/calls-panel/calls-panel.d.ts +153 -0
- package/dist/components/calls-panel/index.d.ts +4 -0
- package/dist/components/calls-panel/index.js +6 -0
- package/dist/components/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +20 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +148 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +37 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +13 -4
- package/dist/i18n/locales/ar.d.ts +162 -0
- package/dist/i18n/locales/ar.js +163 -0
- package/dist/i18n/locales/de.d.ts +162 -0
- package/dist/i18n/locales/de.js +163 -0
- package/dist/i18n/locales/el.d.ts +162 -0
- package/dist/i18n/locales/el.js +163 -0
- package/dist/i18n/locales/en.d.ts +162 -0
- package/dist/i18n/locales/en.js +163 -0
- package/dist/i18n/locales/es.d.ts +162 -0
- package/dist/i18n/locales/es.js +163 -0
- package/dist/i18n/locales/fr.d.ts +162 -0
- package/dist/i18n/locales/fr.js +163 -0
- package/dist/i18n/locales/hi.d.ts +162 -0
- package/dist/i18n/locales/hi.js +163 -0
- package/dist/i18n/locales/it.d.ts +162 -0
- package/dist/i18n/locales/it.js +163 -0
- package/dist/i18n/locales/ja.d.ts +162 -0
- package/dist/i18n/locales/ja.js +163 -0
- package/dist/i18n/locales/nl.d.ts +162 -0
- package/dist/i18n/locales/nl.js +163 -0
- package/dist/i18n/locales/pl.d.ts +162 -0
- package/dist/i18n/locales/pl.js +163 -0
- package/dist/i18n/locales/pt.d.ts +162 -0
- package/dist/i18n/locales/pt.js +163 -0
- package/dist/i18n/locales/ro.d.ts +162 -0
- package/dist/i18n/locales/ro.js +163 -0
- package/dist/i18n/locales/ru.d.ts +162 -0
- package/dist/i18n/locales/ru.js +163 -0
- package/dist/i18n/locales/sq.d.ts +162 -0
- package/dist/i18n/locales/sq.js +163 -0
- package/dist/i18n/locales/sv.d.ts +162 -0
- package/dist/i18n/locales/sv.js +163 -0
- package/dist/i18n/locales/tr.d.ts +162 -0
- package/dist/i18n/locales/tr.js +163 -0
- package/dist/i18n/locales/zh.d.ts +162 -0
- package/dist/i18n/locales/zh.js +163 -0
- package/dist/index.js +905 -893
- package/dist/locales/ar.json +162 -0
- package/dist/locales/de.json +162 -0
- package/dist/locales/el.json +162 -0
- package/dist/locales/en.json +162 -0
- package/dist/locales/es.json +162 -0
- package/dist/locales/fr.json +162 -0
- package/dist/locales/hi.json +162 -0
- package/dist/locales/it.json +162 -0
- package/dist/locales/ja.json +162 -0
- package/dist/locales/nl.json +162 -0
- package/dist/locales/pl.json +162 -0
- package/dist/locales/pt.json +162 -0
- package/dist/locales/ro.json +162 -0
- package/dist/locales/ru.json +162 -0
- package/dist/locales/sq.json +162 -0
- package/dist/locales/sv.json +162 -0
- package/dist/locales/tr.json +162 -0
- package/dist/locales/zh.json +162 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/patient-sign-in/index.js +2 -2
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +1 -0
- package/dist/patterns/signing/index.js +1 -1
- package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type PDFZoomPreset } from '../../components/pdf-viewer';
|
|
3
3
|
import { type SignatureConfirmPayload } from '../../components/signature-capture';
|
|
4
|
+
import { type SigningCheckboxField } from './signing-checkbox-pill';
|
|
4
5
|
import type { SigningFieldBase, UseSigningSessionReturn } from '../../hooks';
|
|
5
6
|
/** A signature field: id + live signed state (via the session) + page-overlay geometry. */
|
|
6
7
|
export interface SigningStepField extends SigningFieldBase {
|
|
@@ -104,6 +105,26 @@ export interface MultiFieldSignerProps {
|
|
|
104
105
|
* life. It informs only: opening a dialog or moving on is the host's call.
|
|
105
106
|
*/
|
|
106
107
|
onAllSigned?: () => void;
|
|
108
|
+
/**
|
|
109
|
+
* Checkboxes printed in the document, drawn as opaque pills over their
|
|
110
|
+
* placeholder text. Absent or empty: nothing renders. Not an identity gate.
|
|
111
|
+
* Platform: `interactiveFields[].key`, saved by POST `/{slug}/checkbox/{key}`
|
|
112
|
+
* with `{"value":"true"|"false"}`; the host converts the boolean.
|
|
113
|
+
*/
|
|
114
|
+
checkboxes?: SigningCheckboxField[];
|
|
115
|
+
/**
|
|
116
|
+
* Called when the signer presses Confirm in the sheet, with the value
|
|
117
|
+
* asked for. It returns nothing and is never awaited. The host saves it and
|
|
118
|
+
* passes the new `value` back, and sets `pendingCheckboxId` while it saves
|
|
119
|
+
* (Confirm is ignored then). Absent: the pills are read-only.
|
|
120
|
+
*/
|
|
121
|
+
onCheckboxChange?: (fieldId: string, next: boolean) => void;
|
|
122
|
+
/** The box the host is saving now: its pill spins and the sheet cannot be dismissed. */
|
|
123
|
+
pendingCheckboxId?: string | null;
|
|
124
|
+
/** The host's message about the last change. Shown in the open sheet, which stays open. */
|
|
125
|
+
checkboxError?: string | null;
|
|
126
|
+
/** All pills ignore presses (for example while completing). Default false. */
|
|
127
|
+
checkboxesDisabled?: boolean;
|
|
107
128
|
/** Extra classes for the root. */
|
|
108
129
|
className?: string;
|
|
109
130
|
}
|
|
@@ -113,5 +134,5 @@ export interface MultiFieldSignerProps {
|
|
|
113
134
|
* Session-driven: it never decides what is signed. A signed field cannot be
|
|
114
135
|
* reopened (the session refuses it and the field is not activatable).
|
|
115
136
|
*/
|
|
116
|
-
export declare function MultiFieldSigner({ src, documents, session, labels, docIndex, ariaLabel, initialZoom, hideFieldLabels, onFieldConfirm, submittingFieldId, captureError, onAllSigned, className, }: MultiFieldSignerProps): ReactNode;
|
|
137
|
+
export declare function MultiFieldSigner({ src, documents, session, labels, docIndex, ariaLabel, initialZoom, hideFieldLabels, onFieldConfirm, submittingFieldId, captureError, onAllSigned, checkboxes, onCheckboxChange, pendingCheckboxId, checkboxError, checkboxesDisabled, className, }: MultiFieldSignerProps): ReactNode;
|
|
117
138
|
//# sourceMappingURL=multi-field-signer.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A checkbox printed in the document. Platform field: the sign site's
|
|
3
|
+
* `interactiveFields[].key` (a-z0-9_, up to 32 characters). It is a
|
|
4
|
+
* document consent box, not an identity gate.
|
|
5
|
+
*
|
|
6
|
+
* Geometry is the host's maths, from the sign site's `overlayGeometry`
|
|
7
|
+
* (signature-website@2949868fce, pdf_js_renderer.js:326-341), with the
|
|
8
|
+
* platform fields `positionX`, `positionY`, `minY`, `maxY`, `width`,
|
|
9
|
+
* `pageWidth` and `pageHeight`. `positionY` is the text baseline.
|
|
10
|
+
*/
|
|
11
|
+
export interface SigningCheckboxField {
|
|
12
|
+
/**
|
|
13
|
+
* Stable opaque id, unique per placement, never a name. The template can
|
|
14
|
+
* place one key several times: the host then gives each placement its own
|
|
15
|
+
* id, maps it back to the key when `onCheckboxChange` reports it, and
|
|
16
|
+
* passes the new value to every placement of that key.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/** 1-based page the box sits on. */
|
|
20
|
+
page: number;
|
|
21
|
+
/** Which document in the envelope (default 0). */
|
|
22
|
+
docIndex?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Percent offset of the box's left edge on the page. The PDF page is always
|
|
25
|
+
* left to right, so the host passes the template's left offset as it is, in
|
|
26
|
+
* every UI direction: the pill lays itself out left to right, like the page.
|
|
27
|
+
* (The name is kept for the existing prop contract.)
|
|
28
|
+
*/
|
|
29
|
+
insetInlineStart: number;
|
|
30
|
+
/**
|
|
31
|
+
* Percent offset of the top edge: `minY / pageHeight * 100` when the
|
|
32
|
+
* template reports a measured box (`maxY > minY`), else
|
|
33
|
+
* `(positionY - 15pt) / pageHeight * 100` (older templates).
|
|
34
|
+
*/
|
|
35
|
+
insetBlockStart: number;
|
|
36
|
+
/** Percent of the page's inline size: `width / pageWidth * 100` when `width > 0`. */
|
|
37
|
+
inlineSize: number;
|
|
38
|
+
/** Percent of the page's block size: `(maxY - minY) / pageHeight * 100`, else 15pt. */
|
|
39
|
+
blockSize: number;
|
|
40
|
+
/**
|
|
41
|
+
* The box's own wording: server-translated legal text, shown as given.
|
|
42
|
+
* The pill shows it before the box as `<label>:` (text only, never HTML),
|
|
43
|
+
* the same text the signed PDF is stamped with (signature-website@2949868fce,
|
|
44
|
+
* pdf_js_renderer.js createCheckboxPlaceholders). An empty label, or an
|
|
45
|
+
* `inlineSize` of 0 (no measured width), leaves the pill box-only. As on
|
|
46
|
+
* the sign site, any other label shows, even whitespace-only.
|
|
47
|
+
*/
|
|
48
|
+
label: string;
|
|
49
|
+
/**
|
|
50
|
+
* The page's width in points (the sign site's `pageWidth`), so the label
|
|
51
|
+
* scales with the page: 10 pt on the page, shrunk to no less than 6 pt to
|
|
52
|
+
* fit the template's box. Without it the label keeps a fixed fallback size
|
|
53
|
+
* and does not scale, as on the sign site.
|
|
54
|
+
*/
|
|
55
|
+
pageWidth?: number;
|
|
56
|
+
/** The current value. The host owns it. */
|
|
57
|
+
value: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface SigningCheckboxPillProps {
|
|
60
|
+
field: SigningCheckboxField;
|
|
61
|
+
saving: boolean;
|
|
62
|
+
inactive: boolean;
|
|
63
|
+
onActivate: () => void;
|
|
64
|
+
}
|
|
65
|
+
export declare const SigningCheckboxPill: import("react").ForwardRefExoticComponent<SigningCheckboxPillProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
66
|
+
//# sourceMappingURL=signing-checkbox-pill.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SigningCheckboxField } from './signing-checkbox-pill';
|
|
3
|
+
export interface SigningCheckboxSheetProps {
|
|
4
|
+
/** The box being changed. Kept while the sheet animates out. */
|
|
5
|
+
field: SigningCheckboxField | null;
|
|
6
|
+
open: boolean;
|
|
7
|
+
/** The value Confirm will ask for, captured when the sheet opened. */
|
|
8
|
+
intended: boolean;
|
|
9
|
+
pending: boolean;
|
|
10
|
+
error: string | null;
|
|
11
|
+
onConfirm: () => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onCloseAutoFocus: (event: Event) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function SigningCheckboxSheet({ field, open, intended, pending, error, onConfirm, onClose, onCloseAutoFocus, }: SigningCheckboxSheetProps): ReactNode;
|
|
16
|
+
//# sourceMappingURL=signing-checkbox-sheet.d.ts.map
|
|
@@ -2,6 +2,7 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import type { SignatureConfirmPayload } from '../../components/signature-capture';
|
|
3
3
|
import type { UseSigningSessionReturn } from '../../hooks';
|
|
4
4
|
import { type SigningStepDocument, type SigningStepField } from './multi-field-signer';
|
|
5
|
+
import type { SigningCheckboxField } from './signing-checkbox-pill';
|
|
5
6
|
import { type SigningRosterProps } from './signing-roster';
|
|
6
7
|
export interface SigningDocumentScreenProps {
|
|
7
8
|
/** The signing session for this signee, from `useSigningSession`. Required. */
|
|
@@ -52,6 +53,22 @@ export interface SigningDocumentScreenProps {
|
|
|
52
53
|
submittingFieldId?: string | null;
|
|
53
54
|
/** The host's message about the last confirm; shown in the capture dialog. */
|
|
54
55
|
captureError?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Document checkboxes (a different thing from an identity gate): opaque
|
|
58
|
+
* pills over their placeholder text. See `MultiFieldSigner.checkboxes`.
|
|
59
|
+
* Platform: `interactiveFields[].key`, saved by POST `/{slug}/checkbox/{key}`
|
|
60
|
+
* with `{"value":"true"|"false"}`; the host converts the boolean. Labels are
|
|
61
|
+
* host text and are not covered by `privacy`.
|
|
62
|
+
*/
|
|
63
|
+
checkboxes?: SigningCheckboxField[];
|
|
64
|
+
/** Called when the signer confirms a change in the sheet. The host saves and passes `value` back. */
|
|
65
|
+
onCheckboxChange?: (fieldId: string, next: boolean) => void;
|
|
66
|
+
/** The checkbox the host is saving now. */
|
|
67
|
+
pendingCheckboxId?: string | null;
|
|
68
|
+
/** The host's message about the last checkbox change; shown in the sheet. */
|
|
69
|
+
checkboxError?: string | null;
|
|
70
|
+
/** Pills ignore presses. Always so while `completing`. */
|
|
71
|
+
checkboxesDisabled?: boolean;
|
|
55
72
|
/** Extra dialogs, for example a `SigningMessageDialog`. The host owns them. */
|
|
56
73
|
dialogs?: ReactNode;
|
|
57
74
|
/** Render every field glyph-only. Labels stay the accessible names. */
|
|
@@ -83,5 +100,5 @@ export interface SigningDocumentScreenProps {
|
|
|
83
100
|
* it shows the document, the progress and the Sign button, and tells the
|
|
84
101
|
* host what happened.
|
|
85
102
|
*/
|
|
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;
|
|
103
|
+
export declare function SigningDocumentScreen({ session, src, documents, title, meta, headingLevel, instruction, roster, envelopeProgress, progressName, completing, onSign, signError, onFieldConfirm, submittingFieldId, captureError, checkboxes, onCheckboxChange, pendingCheckboxId, checkboxError, checkboxesDisabled, dialogs, hideFieldLabels, withChrome, brand, brandLabel, focusOnMount, privacy, className, }: SigningDocumentScreenProps): ReactNode;
|
|
87
104
|
//# sourceMappingURL=signing-document-screen.d.ts.map
|