@alfadocs/ui-kit 1.3.7 → 1.3.9
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-S0cCfFg9.js → anamnesis-i18n-CcwFL4B2.js} +2048 -1883
- package/dist/agent-catalog.json +1 -1
- package/dist/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-field.d.ts +6 -1
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts +6 -1
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +41 -0
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +5 -1
- package/dist/patterns/anamnesis/anamnesis.d.ts +8 -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-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-
|
|
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-CcwFL4B2.js";
|
|
218
218
|
import { C as RC, M as _C, P as NC } from "./_chunks/marketplace-app-shell-DwcFMxzp.js";
|
|
219
219
|
import { P as DC } from "./_chunks/payment-automation-upsell-D_x880pr.js";
|
|
220
220
|
import { S as MC } from "./_chunks/signature-request-CrRj64Nz.js";
|
|
@@ -8,7 +8,12 @@ export interface AnamnesisFieldProps {
|
|
|
8
8
|
* (compile mode). Intake mode leaves this off — the patient owns the form. */
|
|
9
9
|
showOrigin?: boolean;
|
|
10
10
|
origin?: AnswerOrigin;
|
|
11
|
+
/** Render the answer without letting it be changed — the state a compiled
|
|
12
|
+
* questionnaire arrives in, until the reader asks to edit it. Every control
|
|
13
|
+
* is disabled rather than swapped for text, so nothing shifts under the
|
|
14
|
+
* reader when editing is unlocked. */
|
|
15
|
+
readOnly?: boolean;
|
|
11
16
|
t: TFunction;
|
|
12
17
|
}
|
|
13
|
-
export declare function AnamnesisField({ def, answer, onChange, showOrigin, origin, t, }: AnamnesisFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function AnamnesisField({ def, answer, onChange, showOrigin, origin, readOnly, t, }: AnamnesisFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
14
19
|
//# sourceMappingURL=anamnesis-field.d.ts.map
|
|
@@ -20,6 +20,11 @@ export interface AnamnesisIntakeProps {
|
|
|
20
20
|
/** Open the section containing this field key and move focus to it on
|
|
21
21
|
* mount — the landing half of a host-routed missing-answer jump. */
|
|
22
22
|
jumpToField?: string;
|
|
23
|
+
/** Render the answers without letting them be changed, and drop the footer
|
|
24
|
+
* action. The state an ALREADY-COMPILED questionnaire arrives in: a reader
|
|
25
|
+
* should be able to tell at a glance that this has been answered, and has
|
|
26
|
+
* to ask before overwriting the patient's own words. */
|
|
27
|
+
readOnly?: boolean;
|
|
23
28
|
}
|
|
24
|
-
export declare function AnamnesisIntake({ record, t, embedded, config, defaultOpenSection, onSubmit, jumpToField, }: AnamnesisIntakeProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function AnamnesisIntake({ record, t, embedded, config, defaultOpenSection, onSubmit, jumpToField, readOnly, }: AnamnesisIntakeProps): import("react/jsx-runtime").JSX.Element;
|
|
25
30
|
//# sourceMappingURL=anamnesis-intake.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
|
+
import { type IntakeAnswerMap } from './anamnesis-intake';
|
|
4
|
+
import type { PracticeAnamnesisConfig } from './anamnesis-config';
|
|
5
|
+
import type { AnamnesisRecord } from './anamnesis-types';
|
|
6
|
+
export interface AnamnesisQuestionnaireProps {
|
|
7
|
+
record: AnamnesisRecord;
|
|
8
|
+
t: TFunction;
|
|
9
|
+
/** The practice's configured vocabulary. Omitted = the kit-seeded default. */
|
|
10
|
+
config?: PracticeAnamnesisConfig;
|
|
11
|
+
/** The questionnaire was submitted — receives the full answer map. The
|
|
12
|
+
* surface keeps its own working copy either way; this is the seam a
|
|
13
|
+
* platform host persists through. */
|
|
14
|
+
onSubmit?: (answers: IntakeAnswerMap) => void;
|
|
15
|
+
/** Open the section containing this field key and focus it on mount. */
|
|
16
|
+
jumpToField?: string;
|
|
17
|
+
/** Host status chips (signature / expiry / save feedback) above the tabs. */
|
|
18
|
+
statusSlot?: ReactNode;
|
|
19
|
+
/** A per-patient goal target was set or cleared (`null` clears it). The
|
|
20
|
+
* surface keeps its own working copy either way — this is the seam a
|
|
21
|
+
* platform host persists through. Omit it and the goals strip still
|
|
22
|
+
* renders and still edits, it simply persists nowhere. */
|
|
23
|
+
onTargetChange?: (parameterKey: string, target: number | null) => void;
|
|
24
|
+
/** Omit the goals strip above the card. Default false: it renders whenever
|
|
25
|
+
* the vocabulary marks at least one parameter as a goal. */
|
|
26
|
+
hideTargetStrip?: boolean;
|
|
27
|
+
/** The reader may not change answers at all (no write grant). The Edit
|
|
28
|
+
* affordance is then absent, not merely disabled — an action a user can
|
|
29
|
+
* never complete should not be offered. */
|
|
30
|
+
canEdit?: boolean;
|
|
31
|
+
/** Mount on this tab instead of the questionnaire. Demo/story hook only —
|
|
32
|
+
* Chromatic skips play functions, so a click-selected tab is never
|
|
33
|
+
* snapshotted. */
|
|
34
|
+
defaultTab?: AnamnesisQuestionnaireTab;
|
|
35
|
+
}
|
|
36
|
+
export type AnamnesisQuestionnaireTab = 'questionnaire' | 'trend';
|
|
37
|
+
export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, onTargetChange, hideTargetStrip, canEdit, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare namespace AnamnesisQuestionnaire {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=anamnesis-questionnaire.d.ts.map
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/** The three host contexts the one pattern renders in. */
|
|
2
|
-
|
|
2
|
+
/** `questionnaire` is the contained platform surface: ONE questionnaire for
|
|
3
|
+
* clinician and patient alike, plus the trend over its numeric answers. It
|
|
4
|
+
* deliberately carries none of `compile`'s bespoke measurement blocks — a
|
|
5
|
+
* practice that needs the two roles asked different things makes two forms. */
|
|
6
|
+
export type AnamnesisMode = 'intake' | 'compile' | 'questionnaire' | 'readOnly';
|
|
3
7
|
/** Recorded biological sex — gates the menstrual-cycle / pregnancy fields. */
|
|
4
8
|
export type PatientSex = 'female' | 'male' | 'unspecified';
|
|
5
9
|
/** Who authored a value. Patient-submitted values render a "from patient"
|
|
@@ -5,6 +5,7 @@ import { type AnamnesisCompileView } from './anamnesis-compile';
|
|
|
5
5
|
import type { DisclosureAudience } from './anamnesis-disclosure';
|
|
6
6
|
import { type IntakeAnswerMap } from './anamnesis-intake';
|
|
7
7
|
import type { MissingAnswer } from './anamnesis-digest';
|
|
8
|
+
import type { AnamnesisQuestionnaireTab } from './anamnesis-questionnaire';
|
|
8
9
|
import type { AnamnesisMode, AnamnesisRecord, OpenAnamnesisNote, PractitionerOption } from './anamnesis-types';
|
|
9
10
|
export interface AnamnesisProps {
|
|
10
11
|
/** Which host context to render. */
|
|
@@ -49,6 +50,12 @@ export interface AnamnesisProps {
|
|
|
49
50
|
/** Compile mode only: every edit to the working record — the visit-data
|
|
50
51
|
* persistence seam (hosts debounce + diff). See `AnamnesisCompileProps`. */
|
|
51
52
|
onRecordChange?: (record: AnamnesisRecord) => void;
|
|
53
|
+
/** Questionnaire mode only: the reader may not change answers at all. The
|
|
54
|
+
* Edit affordance is then absent rather than disabled. Default true. */
|
|
55
|
+
canEdit?: boolean;
|
|
56
|
+
/** Questionnaire mode only: mount on this tab instead of the questionnaire.
|
|
57
|
+
* Demo/story hook only — Chromatic skips play functions. */
|
|
58
|
+
defaultQuestionnaireTab?: AnamnesisQuestionnaireTab;
|
|
52
59
|
/** Compile mode only: the practice's operators, offered in the visit's
|
|
53
60
|
* Practitioner select. Omitted or empty keeps the free-text input. */
|
|
54
61
|
practitioners?: PractitionerOption[];
|
|
@@ -65,5 +72,5 @@ export interface AnamnesisProps {
|
|
|
65
72
|
defaultShareOpen?: boolean;
|
|
66
73
|
defaultExportAudience?: DisclosureAudience;
|
|
67
74
|
}
|
|
68
|
-
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, canEdit, defaultQuestionnaireTab, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
69
76
|
//# sourceMappingURL=anamnesis.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Anamnesis, type AnamnesisProps } from './anamnesis';
|
|
2
2
|
export type { IntakeAnswerMap } from './anamnesis-intake';
|
|
3
|
+
export type { AnamnesisQuestionnaireTab } from './anamnesis-questionnaire';
|
|
3
4
|
export type { MissingAnswer } from './anamnesis-digest';
|
|
4
5
|
export { AnamnesisConfigEditor, keyFromLabel, seededConfigDraft, type AnamnesisConfigEditorProps, } from './anamnesis-config-editor';
|
|
5
6
|
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';
|
|
@@ -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-CcwFL4B2.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Anamnesis,
|
|
4
4
|
i as AnamnesisConfigEditor,
|
package/package.json
CHANGED