@alfadocs/ui-kit 1.3.0 → 1.3.3
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-consent-banner-DKgFfSzc.js → ai-consent-banner-BUKKPDTg.js} +2 -2
- package/dist/_chunks/{alert-DS22ha1n.js → alert-CiJT540z.js} +2 -2
- package/dist/_chunks/{anamnesis-i18n-DGRdwc0i.js → anamnesis-i18n-B9twItQc.js} +1547 -1526
- package/dist/_chunks/{audio-recorder-sRsGS-0V.js → audio-recorder-BSuKNrmd.js} +2 -2
- package/dist/_chunks/{booking-D8fCzcUd.js → booking-BxFV0hT5.js} +2 -2
- package/dist/_chunks/{care-plan-card-DjjVnBYz.js → care-plan-card-1G_f4I5s.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-BVhpvd-P.js → care-plan-entry-card-DmBsffHS.js} +2 -2
- package/dist/_chunks/{collapsible-CGL9ontS.js → collapsible-CTjxzGuF.js} +26 -29
- package/dist/_chunks/{document-preview-DAczwybt.js → document-preview-D3gg4MXB.js} +2 -2
- package/dist/_chunks/{document-scanner-BRYIc3A-.js → document-scanner-D8ASqxif.js} +2 -2
- package/dist/_chunks/{entity-summary-BS6n7Iah.js → entity-summary-C6lL3seQ.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DsT7MaLd.js → freemium-paywall-C_Ue6wxU.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-DQC9Gpm0.js → marketplace-app-shell-DwcFMxzp.js} +2 -2
- package/dist/_chunks/{patient-details-l7pnsUq9.js → patient-details-BAUg0FWs.js} +2 -2
- package/dist/_chunks/{patient-search-H54Utav2.js → patient-search-yG0UaCpQ.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-C4LIw1iQ.js → payment-automation-upsell-D_x880pr.js} +2 -2
- package/dist/_chunks/{payment-form-CyKT20xZ.js → payment-form-h-BZ8onk.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DHg8SfUI.js → pdf-viewer-Ddx-T053.js} +2 -2
- package/dist/_chunks/{practice-results-qvJRkvLn.js → practice-results-B-HPc13W.js} +2 -2
- package/dist/_chunks/{reviews-panel-BfUJhx3m.js → reviews-panel-tZlWiUBl.js} +2 -2
- package/dist/_chunks/{sign-document-D70TEUw9.js → sign-document-CW_ByDUh.js} +2 -2
- package/dist/_chunks/{signature-request-BlNCXpRN.js → signature-request-DZEFtbER.js} +2 -2
- package/dist/_chunks/{warning-stack-IVf0oxh2.js → warning-stack-BtjmJChC.js} +2 -2
- package/dist/_chunks/{workflow-map-ByyBYj6Y.js → workflow-map-BVMeVHkV.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +24 -24
- package/dist/patterns/anamnesis/anamnesis-compile.d.ts +6 -1
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts +11 -2
- package/dist/patterns/anamnesis/anamnesis.d.ts +13 -1
- package/dist/patterns/anamnesis/index.d.ts +2 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -120,8 +120,8 @@ import { A as Hi } from "./_chunks/agenda-card-BCGaQazD.js";
|
|
|
120
120
|
import { a as Vi } from "./_chunks/agenda-card.agent-mTCrkKSZ.js";
|
|
121
121
|
import { i as Wi, i as Ki, i as Yi, i as Xi } from "./_chunks/is-safe-url-DkETxeHz.js";
|
|
122
122
|
import { A as zi, a as ji } from "./_chunks/agenda-tray-CVf-jfWU.js";
|
|
123
|
-
import { A as Ji, a as Zi } from "./_chunks/ai-consent-banner-
|
|
124
|
-
import { A as ap } from "./_chunks/alert-
|
|
123
|
+
import { A as Ji, a as Zi } from "./_chunks/ai-consent-banner-BUKKPDTg.js";
|
|
124
|
+
import { A as ap } from "./_chunks/alert-CiJT540z.js";
|
|
125
125
|
import { A as rp } from "./_chunks/appointment-card-DgKI5QKD.js";
|
|
126
126
|
import { A as op, a as tp, b as np } from "./_chunks/appointment-tray-ezyCZN8v.js";
|
|
127
127
|
import { A as pp, a as mp } from "./_chunks/appointment-timeline-BB-c1LeR.js";
|
|
@@ -152,10 +152,10 @@ import { T as Em, t as bm } from "./_chunks/task-tray-CLIqIXUZ.js";
|
|
|
152
152
|
import { T as _m, t as Nm } from "./_chunks/tasks-panel-CjGAhIN8.js";
|
|
153
153
|
import { T as Dm, t as Fm, a as Mm, b as Om, c as Lm, d as ym, e as km } from "./_chunks/toast.agent-Iw2jWdce.js";
|
|
154
154
|
import { T as vm, a as Gm } from "./_chunks/tooltip-DvmfrNvB.js";
|
|
155
|
-
import { W as wm } from "./_chunks/warning-stack-
|
|
155
|
+
import { W as wm } from "./_chunks/warning-stack-BtjmJChC.js";
|
|
156
156
|
import { A as Um } from "./_chunks/app-frame-DIEMIC5V.js";
|
|
157
157
|
import { A as Km } from "./_chunks/aspect-ratio-DeSNzASA.js";
|
|
158
|
-
import { C as Xm, a as qm, b as zm, c as jm } from "./_chunks/collapsible-
|
|
158
|
+
import { C as Xm, a as qm, b as zm, c as jm } from "./_chunks/collapsible-CTjxzGuF.js";
|
|
159
159
|
import { P as Jm, a as Zm, u as $m } from "./_chunks/panel-header-D313n_9-.js";
|
|
160
160
|
import { H as el, P as rl, a as sl, R as ol, r as tl, u as nl } from "./_chunks/resizable-DVGcfOrk.js";
|
|
161
161
|
import { S as pl, a as ml, b as ll, c as dl, d as Al, e as cl } from "./_chunks/scroll-area-BZOvUhwQ.js";
|
|
@@ -165,13 +165,13 @@ import { C as Tl, U as ul, a as Pl, b as Il, c as El } from "./_chunks/unit-conv
|
|
|
165
165
|
import { V as Rl } from "./_chunks/visually-hidden-BHxEUGyT.js";
|
|
166
166
|
import { C as Nl, c as hl, a as Dl } from "./_chunks/chart-DR68TJD5.js";
|
|
167
167
|
import { A as Ml, a as Ol } from "./_chunks/ai-prompt-input-DziJCGLe.js";
|
|
168
|
-
import { A as yl, a as kl } from "./_chunks/audio-recorder-
|
|
168
|
+
import { A as yl, a as kl } from "./_chunks/audio-recorder-BSuKNrmd.js";
|
|
169
169
|
import { A as vl } from "./_chunks/audio-visualiser-l6zPd0AG.js";
|
|
170
170
|
import { C as Hl, c as wl } from "./_chunks/chat-container-HlFnoEIl.js";
|
|
171
171
|
import { C as Ul, c as Wl } from "./_chunks/chat-input-QpHxBEnN.js";
|
|
172
172
|
import { C as Yl } from "./_chunks/chat-message-CdjWqZjo.js";
|
|
173
|
-
import { E as ql } from "./_chunks/entity-summary-
|
|
174
|
-
import { F as jl, f as Ql } from "./_chunks/freemium-paywall-
|
|
173
|
+
import { E as ql } from "./_chunks/entity-summary-C6lL3seQ.js";
|
|
174
|
+
import { F as jl, f as Ql } from "./_chunks/freemium-paywall-C_Ue6wxU.js";
|
|
175
175
|
import { S as Zl } from "./_chunks/streaming-text-C5bYz7LL.js";
|
|
176
176
|
import { S as ad, a as ed } from "./_chunks/suggestion-chip-Bk4PmYTg.js";
|
|
177
177
|
import { s as sd } from "./_chunks/suggestion-chip.agent-Brn3CiFE.js";
|
|
@@ -180,15 +180,15 @@ import { T as pd } from "./_chunks/typing-indicator-DHeVN4ob.js";
|
|
|
180
180
|
import { A as ld } from "./_chunks/anamnesis-card-CJ5MNbkc.js";
|
|
181
181
|
import { D as Ad, F as cd, a as fd, M as gd, b as Cd, e as Sd, f as xd, g as Td, c as ud, m as Pd, r as Id, v as Ed } from "./_chunks/muscle-scheme-yfzP_xoJ.js";
|
|
182
182
|
import { A as Rd, a as _d, b as Nd, c as hd, d as Dd, e as Fd, C as Md, f as Od, g as Ld, D as yd, h as kd, E as Bd, L as vd, O as Gd, P as Hd, i as wd, j as Vd, k as Ud, l as Wd, R as Kd, S as Yd, m as Xd, n as qd, o as zd, p as jd, q as Qd, r as Jd, s as Zd, t as $d, u as aA, v as eA, w as rA, x as sA, y as oA, z as tA, B as nA, F as iA } from "./_chunks/optical-prescription-BEjYQjiO.js";
|
|
183
|
-
import { B as mA, C as lA, O as dA, b as AA } from "./_chunks/booking-
|
|
183
|
+
import { B as mA, C as lA, O as dA, b as AA } from "./_chunks/booking-BxFV0hT5.js";
|
|
184
184
|
import { C as fA, c as gA, r as CA } from "./_chunks/calendar-4dXTvsCz.js";
|
|
185
185
|
import { C as xA } from "./_chunks/calendar-event-card-C6qGtywL.js";
|
|
186
|
-
import { C as uA, c as PA } from "./_chunks/care-plan-card-
|
|
187
|
-
import { C as EA, c as bA } from "./_chunks/care-plan-entry-card-
|
|
186
|
+
import { C as uA, c as PA } from "./_chunks/care-plan-card-1G_f4I5s.js";
|
|
187
|
+
import { C as EA, c as bA } from "./_chunks/care-plan-entry-card-DmBsffHS.js";
|
|
188
188
|
import { C as _A, c as NA } from "./_chunks/care-plan-header-BXvRpGG8.js";
|
|
189
189
|
import { O as DA, o as FA } from "./_chunks/operator-hero-DVy0RGoD.js";
|
|
190
|
-
import { P as OA, p as LA } from "./_chunks/patient-details-
|
|
191
|
-
import { P as kA, p as BA } from "./_chunks/patient-search-
|
|
190
|
+
import { P as OA, p as LA } from "./_chunks/patient-details-BAUg0FWs.js";
|
|
191
|
+
import { P as kA, p as BA } from "./_chunks/patient-search-yG0UaCpQ.js";
|
|
192
192
|
import { P as GA, p as HA } from "./_chunks/patient-summary-card-C-iVDo53.js";
|
|
193
193
|
import { B as VA, C as UA, N as WA, P as KA, a as YA, b as XA, g as qA, u as zA } from "./_chunks/patient-table-C7QHFC63.js";
|
|
194
194
|
import { B as QA, M as JA, P as ZA, a as $A, b as ac, c as ec, d as rc, S as sc, e as oc, f as tc, g as nc, h as ic, p as pc, i as mc, j as lc, k as dc, s as Ac, t as cc, l as fc } from "./_chunks/periodontal-chart-CYBhr9vc.js";
|
|
@@ -196,31 +196,31 @@ import { P as Cc, a as Sc, p as xc } from "./_chunks/periodontal-chart-card-WVjJ
|
|
|
196
196
|
import { D as uc, P as Pc, a as Ic, b as Ec, c as bc, S as Rc, e as _c, i as Nc, p as hc } from "./_chunks/periodontal-diagnosis-cco40xTa.js";
|
|
197
197
|
import { P as Fc, a as Mc, c as Oc, p as Lc, r as yc } from "./_chunks/periodontal-risk-chart-bUGkMwDg.js";
|
|
198
198
|
import { C as Bc, a as vc, b as Gc, c as Hc } from "./_chunks/contact-profile-card-veMV3W4J.js";
|
|
199
|
-
import { P as Vc, p as Uc } from "./_chunks/practice-results-
|
|
199
|
+
import { P as Vc, p as Uc } from "./_chunks/practice-results-B-HPc13W.js";
|
|
200
200
|
import { P as Kc, a as Yc, p as Xc, b as qc } from "./_chunks/payment-request-card-CN30J6yM.js";
|
|
201
|
-
import { P as jc, f as Qc, p as Jc, a as Zc, s as $c, b as af, c as ef } from "./_chunks/payment-form-
|
|
202
|
-
import { P as sf, p as of } from "./_chunks/pdf-viewer-
|
|
203
|
-
import { R as nf, r as pf } from "./_chunks/reviews-panel-
|
|
201
|
+
import { P as jc, f as Qc, p as Jc, a as Zc, s as $c, b as af, c as ef } from "./_chunks/payment-form-h-BZ8onk.js";
|
|
202
|
+
import { P as sf, p as of } from "./_chunks/pdf-viewer-Ddx-T053.js";
|
|
203
|
+
import { R as nf, r as pf } from "./_chunks/reviews-panel-tZlWiUBl.js";
|
|
204
204
|
import { R as lf, r as df, w as Af } from "./_chunks/rich-text-editor-CfeXPPWs.js";
|
|
205
205
|
import { E as ff } from "./_chunks/editor-overlay-DE3esyio.js";
|
|
206
206
|
import { S as Cf, s as Sf } from "./_chunks/signature-capture-D6ut9_IR.js";
|
|
207
207
|
import { S as Tf, s as uf } from "./_chunks/signature-field-0rFODJlW.js";
|
|
208
|
-
import { S as If, s as Ef } from "./_chunks/sign-document-
|
|
208
|
+
import { S as If, s as Ef } from "./_chunks/sign-document-CW_ByDUh.js";
|
|
209
209
|
import { S as Rf, f as _f, i as Nf } from "./_chunks/slot-grid-CQSULZjd.js";
|
|
210
210
|
import { A as Df, F as Ff, a as Mf, b as Of, c as Lf, d as yf, e as kf, I as Bf, f as vf, g as Gf, h as Hf, i as wf, j as Vf, k as Uf, l as Wf, m as Kf, n as Yf, o as Xf, p as qf, q as zf, r as jf, s as Qf, t as Jf, u as Zf } from "./_chunks/face-scheme-C00IvkUA.js";
|
|
211
211
|
import { T as ag, t as eg, r as rg } from "./_chunks/tooth-scheme-BzJ6rcte.js";
|
|
212
212
|
import { C as og, a as tg, b as ng, c as ig, F as pg, d as mg, e as lg, P as dg, f as Ag, S as cg, g as fg, h as gg, i as Cg, j as Sg, k as xg, l as Tg, m as ug, n as Pg, o as Ig, p as Eg, s as bg, q as Rg, r as _g, t as Ng, z as hg, u as Dg, v as Fg } from "./_chunks/tooth-data-BwuoKFf4.js";
|
|
213
213
|
import { T as Og } from "./_chunks/transaction-chip-DJCstquX.js";
|
|
214
214
|
import { W as yg, a as kg } from "./_chunks/whatsapp-button-BIy6NaJK.js";
|
|
215
|
-
import { C as vg, W as Gg, a as Hg, b as wg, c as Vg, i as Ug, l as Wg, m as Kg, r as Yg, w as Xg, d as qg, e as zg, f as jg } from "./_chunks/workflow-map-
|
|
215
|
+
import { C as vg, W as Gg, a as Hg, b as wg, c as Vg, i as Ug, l as Wg, m as Kg, r as Yg, w as Xg, d as qg, e as zg, f as jg } from "./_chunks/workflow-map-BVMeVHkV.js";
|
|
216
216
|
import { A as Jg, a as Zg, b as $g, c as aC } from "./_chunks/alia-sidebar-DzNz1gDf.js";
|
|
217
|
-
import { A as rC, a as sC, L as oC, P as tC, S as nC, T as iC, b as pC, c as mC, d as lC, e as dC, f as AC, g as cC, h as fC, i as gC, j as CC, k as SC, l as xC, m as TC, r as uC, n as PC, s as IC, o as EC } from "./_chunks/anamnesis-i18n-
|
|
218
|
-
import { C as RC, M as _C, P as NC } from "./_chunks/marketplace-app-shell-
|
|
219
|
-
import { P as DC } from "./_chunks/payment-automation-upsell-
|
|
220
|
-
import { S as MC } from "./_chunks/signature-request-
|
|
217
|
+
import { A as rC, a as sC, L as oC, P as tC, S as nC, T as iC, b as pC, c as mC, d as lC, e as dC, f as AC, g as cC, h as fC, i as gC, j as CC, k as SC, l as xC, m as TC, r as uC, n as PC, s as IC, o as EC } from "./_chunks/anamnesis-i18n-B9twItQc.js";
|
|
218
|
+
import { C as RC, M as _C, P as NC } from "./_chunks/marketplace-app-shell-DwcFMxzp.js";
|
|
219
|
+
import { P as DC } from "./_chunks/payment-automation-upsell-D_x880pr.js";
|
|
220
|
+
import { S as MC } from "./_chunks/signature-request-DZEFtbER.js";
|
|
221
221
|
import { D as LC, d as yC } from "./_chunks/dependent-selector-DyFpdzZV.js";
|
|
222
|
-
import { D as BC, d as vC } from "./_chunks/document-preview-
|
|
223
|
-
import { D as HC, d as wC } from "./_chunks/document-scanner-
|
|
222
|
+
import { D as BC, d as vC } from "./_chunks/document-preview-D3gg4MXB.js";
|
|
223
|
+
import { D as HC, d as wC } from "./_chunks/document-scanner-D8ASqxif.js";
|
|
224
224
|
import { F as UC, c as WC, a as KC, b as YC, f as XC, w as qC, i as zC } from "./_chunks/fiscal-code-input-QP9gkyDE.js";
|
|
225
225
|
import { Q as QC, c as JC, q as ZC, s as $C } from "./_chunks/qr-code-CPkEs5mG.js";
|
|
226
226
|
import { S as eS, s as rS } from "./_chunks/session-countdown-Bc70VXN1.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { TFunction } from 'i18next';
|
|
3
3
|
import { type PracticeAnamnesisConfig } from './anamnesis-config';
|
|
4
|
+
import { type MissingAnswer } from './anamnesis-digest';
|
|
4
5
|
import type { DisclosureAudience } from './anamnesis-disclosure';
|
|
5
6
|
import type { AnamnesisExportTab } from './anamnesis-export';
|
|
6
7
|
import type { AnamnesisRecord, OpenAnamnesisNote } from './anamnesis-types';
|
|
@@ -30,6 +31,10 @@ export interface AnamnesisCompileProps {
|
|
|
30
31
|
* demo). Default false: the strip renders. Target editors inside the
|
|
31
32
|
* record blocks are unaffected. */
|
|
32
33
|
hideTargetStrip?: boolean;
|
|
34
|
+
/** Route the missing-answer jump to a host questionnaire surface instead
|
|
35
|
+
* of the internal Compila gaps block (e.g. the platform island's fill
|
|
36
|
+
* view). Receives the missing answer the user asked to fix. */
|
|
37
|
+
onMissingAnswerJump?: (missing: MissingAnswer) => void;
|
|
33
38
|
/** The host's side panel, forwarded to the Evolution view. Omitted = the
|
|
34
39
|
* evolution surface reads notes in place. */
|
|
35
40
|
onOpenNote?: OpenAnamnesisNote;
|
|
@@ -44,5 +49,5 @@ export interface AnamnesisCompileProps {
|
|
|
44
49
|
/** Mount the export control on this audience. Demo/story hook. */
|
|
45
50
|
defaultExportAudience?: DisclosureAudience;
|
|
46
51
|
}
|
|
47
|
-
export declare function AnamnesisCompile({ record: initial, t, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisCompileProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare function AnamnesisCompile({ record: initial, t, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onMissingAnswerJump, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisCompileProps): import("react/jsx-runtime").JSX.Element;
|
|
48
53
|
//# sourceMappingURL=anamnesis-compile.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import { type PracticeAnamnesisConfig } from './anamnesis-config';
|
|
3
|
-
import type { AnamnesisRecord } from './anamnesis-types';
|
|
3
|
+
import type { AnamnesisRecord, IntakeAnswer } from './anamnesis-types';
|
|
4
|
+
/** Field key → answer. Exported so hosts can type the `onSubmit` seam. */
|
|
5
|
+
export type IntakeAnswerMap = Partial<Record<string, IntakeAnswer>>;
|
|
4
6
|
export interface AnamnesisIntakeProps {
|
|
5
7
|
record: AnamnesisRecord;
|
|
6
8
|
t: TFunction;
|
|
@@ -11,6 +13,13 @@ export interface AnamnesisIntakeProps {
|
|
|
11
13
|
config?: PracticeAnamnesisConfig;
|
|
12
14
|
/** Demo/story hook: which section is open on mount. Defaults to the first. */
|
|
13
15
|
defaultOpenSection?: string;
|
|
16
|
+
/** The questionnaire was submitted: receives the full answer map. The
|
|
17
|
+
* surface keeps its own draft state either way — this is the seam a
|
|
18
|
+
* platform host persists through (mirrors `onTargetChange`). */
|
|
19
|
+
onSubmit?: (answers: IntakeAnswerMap) => void;
|
|
20
|
+
/** Open the section containing this field key and move focus to it on
|
|
21
|
+
* mount — the landing half of a host-routed missing-answer jump. */
|
|
22
|
+
jumpToField?: string;
|
|
14
23
|
}
|
|
15
|
-
export declare function AnamnesisIntake({ record, t, embedded, config, defaultOpenSection, }: AnamnesisIntakeProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function AnamnesisIntake({ record, t, embedded, config, defaultOpenSection, onSubmit, jumpToField, }: AnamnesisIntakeProps): import("react/jsx-runtime").JSX.Element;
|
|
16
25
|
//# sourceMappingURL=anamnesis-intake.d.ts.map
|
|
@@ -3,6 +3,8 @@ import type { TFunction } from 'i18next';
|
|
|
3
3
|
import type { PracticeAnamnesisConfig } from './anamnesis-config';
|
|
4
4
|
import { type AnamnesisCompileView } from './anamnesis-compile';
|
|
5
5
|
import type { DisclosureAudience } from './anamnesis-disclosure';
|
|
6
|
+
import { type IntakeAnswerMap } from './anamnesis-intake';
|
|
7
|
+
import type { MissingAnswer } from './anamnesis-digest';
|
|
6
8
|
import type { AnamnesisMode, AnamnesisRecord, OpenAnamnesisNote } from './anamnesis-types';
|
|
7
9
|
export interface AnamnesisProps {
|
|
8
10
|
/** Which host context to render. */
|
|
@@ -34,6 +36,16 @@ export interface AnamnesisProps {
|
|
|
34
36
|
* opens a panel in the host shell — in the AlfaDocs folder, the Control
|
|
35
37
|
* Room's `openTool`. Omitted = notes are read in place. */
|
|
36
38
|
onOpenNote?: OpenAnamnesisNote;
|
|
39
|
+
/** Intake mode only: the questionnaire was submitted — receives the full
|
|
40
|
+
* answer map. The surface keeps its own draft state either way; this is
|
|
41
|
+
* the seam a platform host persists through (mirrors `onTargetChange`). */
|
|
42
|
+
onIntakeSubmit?: (answers: IntakeAnswerMap) => void;
|
|
43
|
+
/** Intake mode only: open the section containing this field key and move
|
|
44
|
+
* focus to it on mount — the landing half of `onMissingAnswerJump`. */
|
|
45
|
+
intakeJumpToField?: string;
|
|
46
|
+
/** Compile mode only: route the Summary's missing-answer jump to a host
|
|
47
|
+
* questionnaire surface instead of the internal Compila gaps block. */
|
|
48
|
+
onMissingAnswerJump?: (missing: MissingAnswer) => void;
|
|
37
49
|
/** Compile mode only: mount on this view instead of Summary. Demo/story
|
|
38
50
|
* hook only, for the same Chromatic reason as the flags below. */
|
|
39
51
|
defaultView?: AnamnesisCompileView;
|
|
@@ -44,5 +56,5 @@ export interface AnamnesisProps {
|
|
|
44
56
|
defaultShareOpen?: boolean;
|
|
45
57
|
defaultExportAudience?: DisclosureAudience;
|
|
46
58
|
}
|
|
47
|
-
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
48
60
|
//# sourceMappingURL=anamnesis.d.ts.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Anamnesis, type AnamnesisProps } from './anamnesis';
|
|
2
|
+
export type { IntakeAnswerMap } from './anamnesis-intake';
|
|
3
|
+
export type { MissingAnswer } from './anamnesis-digest';
|
|
2
4
|
export { AnamnesisConfigEditor, keyFromLabel, seededConfigDraft, type AnamnesisConfigEditorProps, } from './anamnesis-config-editor';
|
|
3
5
|
export { LOCKED_PARAMETER_KEYS, SEEDED_ANAMNESIS_CONFIG, TARGETABLE_PARAMETER_KEYS, allParametersIncludingArchived, allPathologiesIncludingArchived, allSectionsIncludingArchived, assignablePathologyCodes, configuredParameters, configuredPathologies, configuredSections, isParameterLocked, isParameterTargetable, resolveConfig, type PracticeAnamnesisConfig, } from './anamnesis-config';
|
|
4
6
|
export { anamnesisNoteId, anamnesisNotes } from './anamnesis-notes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, L as n, P as r, S as o, T as l, b as t, c as d, d as g, e as A, f as E, g as c, h as m, i as P, j as f, k as S, l as T, m as h, r as u, n as N, s as _, o as C } from "../../_chunks/anamnesis-i18n-
|
|
1
|
+
import { A as e, a as i, L as n, P as r, S as o, T as l, b as t, c as d, d as g, e as A, f as E, g as c, h as m, i as P, j as f, k as S, l as T, m as h, r as u, n as N, s as _, o as C } from "../../_chunks/anamnesis-i18n-B9twItQc.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Anamnesis,
|
|
4
4
|
i as AnamnesisConfigEditor,
|