@alfadocs/ui-kit 1.3.3 → 1.3.4

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.3",
3
+ "packageVersion": "1.3.4",
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-B9twItQc.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-DhehE8th.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-DZEFtbER.js";
@@ -35,6 +35,11 @@ export interface AnamnesisCompileProps {
35
35
  * of the internal Compila gaps block (e.g. the platform island's fill
36
36
  * view). Receives the missing answer the user asked to fix. */
37
37
  onMissingAnswerJump?: (missing: MissingAnswer) => void;
38
+ /** Every edit to the working record (visit fields, pathologies, therapy,
39
+ * events, targets) — the persistence seam for hosts that store visit
40
+ * data. Fires AFTER the change lands in state, with the full record;
41
+ * hosts debounce and diff. NOT called for the initial mount. */
42
+ onRecordChange?: (record: AnamnesisRecord) => void;
38
43
  /** The host's side panel, forwarded to the Evolution view. Omitted = the
39
44
  * evolution surface reads notes in place. */
40
45
  onOpenNote?: OpenAnamnesisNote;
@@ -49,5 +54,5 @@ export interface AnamnesisCompileProps {
49
54
  /** Mount the export control on this audience. Demo/story hook. */
50
55
  defaultExportAudience?: DisclosureAudience;
51
56
  }
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;
57
+ export declare function AnamnesisCompile({ record: initial, t, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onMissingAnswerJump, onRecordChange, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisCompileProps): import("react/jsx-runtime").JSX.Element;
53
58
  //# sourceMappingURL=anamnesis-compile.d.ts.map
@@ -46,6 +46,9 @@ export interface AnamnesisProps {
46
46
  /** Compile mode only: route the Summary's missing-answer jump to a host
47
47
  * questionnaire surface instead of the internal Compila gaps block. */
48
48
  onMissingAnswerJump?: (missing: MissingAnswer) => void;
49
+ /** Compile mode only: every edit to the working record — the visit-data
50
+ * persistence seam (hosts debounce + diff). See `AnamnesisCompileProps`. */
51
+ onRecordChange?: (record: AnamnesisRecord) => void;
49
52
  /** Compile mode only: mount on this view instead of Summary. Demo/story
50
53
  * hook only, for the same Chromatic reason as the flags below. */
51
54
  defaultView?: AnamnesisCompileView;
@@ -56,5 +59,5 @@ export interface AnamnesisProps {
56
59
  defaultShareOpen?: boolean;
57
60
  defaultExportAudience?: DisclosureAudience;
58
61
  }
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;
62
+ export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, onMissingAnswerJump, onRecordChange, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
60
63
  //# 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-B9twItQc.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-DhehE8th.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.3",
3
+ "version": "1.3.4",
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",