@alfadocs/ui-kit 1.3.8 → 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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.3.8",
3
+ "packageVersion": "1.3.9",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
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-v2h_WUXg.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-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
@@ -16,13 +16,25 @@ export interface AnamnesisQuestionnaireProps {
16
16
  jumpToField?: string;
17
17
  /** Host status chips (signature / expiry / save feedback) above the tabs. */
18
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;
19
31
  /** Mount on this tab instead of the questionnaire. Demo/story hook only —
20
32
  * Chromatic skips play functions, so a click-selected tab is never
21
33
  * snapshotted. */
22
34
  defaultTab?: AnamnesisQuestionnaireTab;
23
35
  }
24
36
  export type AnamnesisQuestionnaireTab = 'questionnaire' | 'trend';
25
- export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
37
+ export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, onTargetChange, hideTargetStrip, canEdit, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
26
38
  export declare namespace AnamnesisQuestionnaire {
27
39
  var displayName: string;
28
40
  }
@@ -50,6 +50,9 @@ export interface AnamnesisProps {
50
50
  /** Compile mode only: every edit to the working record — the visit-data
51
51
  * persistence seam (hosts debounce + diff). See `AnamnesisCompileProps`. */
52
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;
53
56
  /** Questionnaire mode only: mount on this tab instead of the questionnaire.
54
57
  * Demo/story hook only — Chromatic skips play functions. */
55
58
  defaultQuestionnaireTab?: AnamnesisQuestionnaireTab;
@@ -69,5 +72,5 @@ export interface AnamnesisProps {
69
72
  defaultShareOpen?: boolean;
70
73
  defaultExportAudience?: DisclosureAudience;
71
74
  }
72
- export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, defaultQuestionnaireTab, 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;
73
76
  //# sourceMappingURL=anamnesis.d.ts.map
@@ -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-v2h_WUXg.js";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",