@alfadocs/ui-kit 1.3.0 → 1.3.1
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/{anamnesis-i18n-DGRdwc0i.js → anamnesis-i18n-BEhPg2hh.js} +762 -759
- package/dist/agent-catalog.json +1 -1
- package/dist/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts +8 -2
- package/dist/patterns/anamnesis/anamnesis.d.ts +6 -1
- package/dist/patterns/anamnesis/index.d.ts +1 -0
- package/dist/patterns/anamnesis/index.js +1 -1
- package/package.json +1 -1
package/dist/agent-catalog.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ 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
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-ByyBYj6Y.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-
|
|
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-BEhPg2hh.js";
|
|
218
218
|
import { C as RC, M as _C, P as NC } from "./_chunks/marketplace-app-shell-DQC9Gpm0.js";
|
|
219
219
|
import { P as DC } from "./_chunks/payment-automation-upsell-C4LIw1iQ.js";
|
|
220
220
|
import { S as MC } from "./_chunks/signature-request-BlNCXpRN.js";
|
|
@@ -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,10 @@ 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;
|
|
14
20
|
}
|
|
15
|
-
export declare function AnamnesisIntake({ record, t, embedded, config, defaultOpenSection, }: AnamnesisIntakeProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function AnamnesisIntake({ record, t, embedded, config, defaultOpenSection, onSubmit, }: AnamnesisIntakeProps): import("react/jsx-runtime").JSX.Element;
|
|
16
22
|
//# sourceMappingURL=anamnesis-intake.d.ts.map
|
|
@@ -3,6 +3,7 @@ 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';
|
|
6
7
|
import type { AnamnesisMode, AnamnesisRecord, OpenAnamnesisNote } from './anamnesis-types';
|
|
7
8
|
export interface AnamnesisProps {
|
|
8
9
|
/** Which host context to render. */
|
|
@@ -34,6 +35,10 @@ export interface AnamnesisProps {
|
|
|
34
35
|
* opens a panel in the host shell — in the AlfaDocs folder, the Control
|
|
35
36
|
* Room's `openTool`. Omitted = notes are read in place. */
|
|
36
37
|
onOpenNote?: OpenAnamnesisNote;
|
|
38
|
+
/** Intake mode only: the questionnaire was submitted — receives the full
|
|
39
|
+
* answer map. The surface keeps its own draft state either way; this is
|
|
40
|
+
* the seam a platform host persists through (mirrors `onTargetChange`). */
|
|
41
|
+
onIntakeSubmit?: (answers: IntakeAnswerMap) => void;
|
|
37
42
|
/** Compile mode only: mount on this view instead of Summary. Demo/story
|
|
38
43
|
* hook only, for the same Chromatic reason as the flags below. */
|
|
39
44
|
defaultView?: AnamnesisCompileView;
|
|
@@ -44,5 +49,5 @@ export interface AnamnesisProps {
|
|
|
44
49
|
defaultShareOpen?: boolean;
|
|
45
50
|
defaultExportAudience?: DisclosureAudience;
|
|
46
51
|
}
|
|
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;
|
|
52
|
+
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
48
53
|
//# sourceMappingURL=anamnesis.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Anamnesis, type AnamnesisProps } from './anamnesis';
|
|
2
|
+
export type { IntakeAnswerMap } from './anamnesis-intake';
|
|
2
3
|
export { AnamnesisConfigEditor, keyFromLabel, seededConfigDraft, type AnamnesisConfigEditorProps, } from './anamnesis-config-editor';
|
|
3
4
|
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
5
|
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-BEhPg2hh.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Anamnesis,
|
|
4
4
|
i as AnamnesisConfigEditor,
|
package/package.json
CHANGED