@alfadocs/ui-kit 1.135.0 → 1.136.0

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.
Files changed (174) hide show
  1. package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
  2. package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
  3. package/dist/_chunks/{alia-sidebar-CtwhdASP.js → alia-sidebar-CVBlKur9.js} +3 -3
  4. package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
  5. package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
  6. package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
  7. package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
  8. package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
  9. package/dist/_chunks/{calendar-appointment-editor-dialog-I5PfWudy.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +5 -5
  10. package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
  11. package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
  12. package/dist/_chunks/{chat-input-CX4dxBq7.js → chat-input-BmvnuZqj.js} +114 -109
  13. package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
  14. package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
  15. package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
  16. package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
  17. package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
  18. package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
  19. package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
  20. package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
  21. package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
  22. package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
  23. package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
  24. package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
  25. package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
  26. package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
  27. package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
  28. package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
  29. package/dist/_chunks/{patient-account-settings-B2XbN_Fe.js → patient-account-settings-Bmfeclpd.js} +2 -2
  30. package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
  31. package/dist/_chunks/{patient-check-in-resume-B7NY-6KI.js → patient-check-in-resume-CYZ-SvsF.js} +38 -38
  32. package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
  33. package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
  34. package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
  35. package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
  36. package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
  37. package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
  38. package/dist/_chunks/{portal-documents-DJOH8pZx.js → portal-documents-DVKj6Sco.js} +3 -3
  39. package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
  40. package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
  41. package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
  42. package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
  43. package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
  44. package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
  45. package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
  46. package/dist/_chunks/{task-editor-DvwqPfFR.js → task-editor-BfXSn6U1.js} +2 -2
  47. package/dist/_chunks/{tasks-panel-6EzdnwT8.js → tasks-panel-DbtJS4QI.js} +2 -2
  48. package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
  49. package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
  50. package/dist/_chunks/{use-appointment-details-read-6_OmOwUs.js → use-appointment-details-read-7J0j1FP7.js} +2 -2
  51. package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
  52. package/dist/agent-catalog.json +282 -6
  53. package/dist/agent-i18n/en.json +26 -4
  54. package/dist/browser-support.js +1 -1
  55. package/dist/components/ai-prompt-input/index.js +1 -1
  56. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +68 -5
  57. package/dist/components/ai-summary-panel/index.d.ts +1 -1
  58. package/dist/components/ai-summary-panel/index.js +1 -1
  59. package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
  60. package/dist/components/appointment-details-panel/index.js +1 -1
  61. package/dist/components/audio-recorder/index.js +1 -1
  62. package/dist/components/bill-line-table/index.js +1 -1
  63. package/dist/components/bill-table/index.js +1 -1
  64. package/dist/components/bishop-score/index.js +1 -1
  65. package/dist/components/booking/index.js +1 -1
  66. package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
  67. package/dist/components/call-status-chip/index.d.ts +3 -0
  68. package/dist/components/call-status-chip/index.js +5 -0
  69. package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
  70. package/dist/components/calls-panel/calls-panel.d.ts +153 -0
  71. package/dist/components/calls-panel/index.d.ts +4 -0
  72. package/dist/components/calls-panel/index.js +6 -0
  73. package/dist/components/chat-input/chat-input.d.ts +17 -0
  74. package/dist/components/chat-input/index.js +1 -1
  75. package/dist/components/chat-message/index.js +1 -1
  76. package/dist/components/communications-panel/communications-panel.d.ts +15 -3
  77. package/dist/components/communications-panel/index.js +1 -1
  78. package/dist/components/data-grid/index.js +2 -2
  79. package/dist/components/data-table/index.js +2 -2
  80. package/dist/components/document-preview/index.js +1 -1
  81. package/dist/components/entity-summary/entity-summary.d.ts +29 -1
  82. package/dist/components/entity-summary/index.js +1 -1
  83. package/dist/components/file-manager/index.js +1 -1
  84. package/dist/components/gestational-age-calculator/index.js +1 -1
  85. package/dist/components/heatmap/index.js +1 -1
  86. package/dist/components/index.d.ts +2 -0
  87. package/dist/components/invoice-upload-list/index.js +1 -1
  88. package/dist/components/muscle-scheme/index.js +1 -1
  89. package/dist/components/optical-prescription/index.js +1 -1
  90. package/dist/components/patient-details/index.js +1 -1
  91. package/dist/components/patient-summary-card/index.js +1 -1
  92. package/dist/components/patient-table/index.js +1 -1
  93. package/dist/components/pregnancy-dating/index.js +1 -1
  94. package/dist/components/rich-text-editor/index.js +1 -1
  95. package/dist/components/select/index.js +1 -1
  96. package/dist/components/select/select.d.ts +8 -0
  97. package/dist/components/session-countdown/index.js +1 -1
  98. package/dist/components/skeleton-scheme/index.js +1 -1
  99. package/dist/components/tabs/index.js +1 -1
  100. package/dist/components/task-editor/index.js +1 -1
  101. package/dist/components/tasks-panel/index.js +1 -1
  102. package/dist/components/unit-converter/index.js +1 -1
  103. package/dist/components/voice-control-panel/index.js +1 -1
  104. package/dist/core.css +1 -1
  105. package/dist/host-compat.css +4 -1
  106. package/dist/i18n/locales/ar.d.ts +72 -3
  107. package/dist/i18n/locales/ar.js +74 -5
  108. package/dist/i18n/locales/de.d.ts +72 -3
  109. package/dist/i18n/locales/de.js +74 -5
  110. package/dist/i18n/locales/el.d.ts +72 -3
  111. package/dist/i18n/locales/el.js +74 -5
  112. package/dist/i18n/locales/en.d.ts +72 -3
  113. package/dist/i18n/locales/en.js +73 -4
  114. package/dist/i18n/locales/es.d.ts +72 -3
  115. package/dist/i18n/locales/es.js +74 -5
  116. package/dist/i18n/locales/fr.d.ts +72 -3
  117. package/dist/i18n/locales/fr.js +74 -5
  118. package/dist/i18n/locales/hi.d.ts +72 -3
  119. package/dist/i18n/locales/hi.js +74 -5
  120. package/dist/i18n/locales/it.d.ts +83 -14
  121. package/dist/i18n/locales/it.js +84 -15
  122. package/dist/i18n/locales/ja.d.ts +72 -3
  123. package/dist/i18n/locales/ja.js +74 -5
  124. package/dist/i18n/locales/nl.d.ts +72 -3
  125. package/dist/i18n/locales/nl.js +74 -5
  126. package/dist/i18n/locales/pl.d.ts +72 -3
  127. package/dist/i18n/locales/pl.js +74 -5
  128. package/dist/i18n/locales/pt.d.ts +72 -3
  129. package/dist/i18n/locales/pt.js +74 -5
  130. package/dist/i18n/locales/ro.d.ts +72 -3
  131. package/dist/i18n/locales/ro.js +74 -5
  132. package/dist/i18n/locales/ru.d.ts +72 -3
  133. package/dist/i18n/locales/ru.js +74 -5
  134. package/dist/i18n/locales/sq.d.ts +72 -3
  135. package/dist/i18n/locales/sq.js +74 -5
  136. package/dist/i18n/locales/sv.d.ts +72 -3
  137. package/dist/i18n/locales/sv.js +74 -5
  138. package/dist/i18n/locales/tr.d.ts +72 -3
  139. package/dist/i18n/locales/tr.js +74 -5
  140. package/dist/i18n/locales/zh.d.ts +72 -3
  141. package/dist/i18n/locales/zh.js +74 -5
  142. package/dist/index.js +707 -702
  143. package/dist/locales/ar.json +74 -5
  144. package/dist/locales/de.json +74 -5
  145. package/dist/locales/el.json +74 -5
  146. package/dist/locales/en.json +73 -4
  147. package/dist/locales/es.json +74 -5
  148. package/dist/locales/fr.json +74 -5
  149. package/dist/locales/hi.json +74 -5
  150. package/dist/locales/it.json +84 -15
  151. package/dist/locales/ja.json +74 -5
  152. package/dist/locales/nl.json +74 -5
  153. package/dist/locales/pl.json +74 -5
  154. package/dist/locales/pt.json +74 -5
  155. package/dist/locales/ro.json +74 -5
  156. package/dist/locales/ru.json +74 -5
  157. package/dist/locales/sq.json +74 -5
  158. package/dist/locales/sv.json +74 -5
  159. package/dist/locales/tr.json +74 -5
  160. package/dist/locales/zh.json +74 -5
  161. package/dist/patterns/alia-assistant/index.js +1 -1
  162. package/dist/patterns/anamnesis/index.js +1 -1
  163. package/dist/patterns/calendar/index.js +1 -1
  164. package/dist/patterns/patient-account-settings/index.js +1 -1
  165. package/dist/patterns/patient-check-in/index.js +1 -1
  166. package/dist/patterns/patient-portal/index.js +1 -1
  167. package/dist/patterns/patient-sign-in/index.js +2 -2
  168. package/dist/patterns/registration-form/index.js +1 -1
  169. package/dist/patterns/signature-request/index.js +1 -1
  170. package/dist/tokens.css +1 -1
  171. package/package.json +9 -1
  172. package/dist/_chunks/ai-summary-panel-B70S2lgC.js +0 -455
  173. package/dist/_chunks/communications-panel-BKPHCiMB.js +0 -973
  174. package/dist/_chunks/entity-summary-CpNk6ybN.js +0 -266
@@ -1,4 +1,4 @@
1
- import { A as e, D as n, a as p, p as s, u as i } from "../../_chunks/use-appointment-details-read-6_OmOwUs.js";
1
+ import { A as e, D as n, a as p, p as s, u as i } from "../../_chunks/use-appointment-details-read-7J0j1FP7.js";
2
2
  export {
3
3
  e as AppointmentDetailsPanel,
4
4
  n as DETAILS_SHORTCUT_ACTIONS,
@@ -1,4 +1,4 @@
1
- import { A as r, a } from "../../_chunks/audio-recorder-CsnM_WDy.js";
1
+ import { A as r, a } from "../../_chunks/audio-recorder-BOF5YYoC.js";
2
2
  export {
3
3
  r as AudioRecorder,
4
4
  a as audioRecorderAgent
@@ -1,4 +1,4 @@
1
- import { B as l, a as i, b as L, c as s, d as I, e as _, f as t, g as n, h as B, i as T, j as E, k as N, l as o, m as A, n as d, o as g, p as u, q as U, r as b, s as m, t as C, u as D, v as M } from "../../_chunks/bill-line-table-DHKb_O7c.js";
1
+ import { B as l, a as i, b as L, c as s, d as I, e as _, f as t, g as n, h as B, i as T, j as E, k as N, l as o, m as A, n as d, o as g, p as u, q as U, r as b, s as m, t as C, u as D, v as M } from "../../_chunks/bill-line-table-By-YL2ms.js";
2
2
  export {
3
3
  l as BILL_LINE_ITEM_NAME_MAX_LENGTH,
4
4
  i as BILL_LINE_MAX_QUANTITY,
@@ -1,4 +1,4 @@
1
- import { B as S, a as T, b as a, c as I, d as B, e as s, f as A, g as E, h as O, i as l, j as D, k as N, l as e, m as U, u as R } from "../../_chunks/default-tabs-DbebYO04.js";
1
+ import { B as S, a as T, b as a, c as I, d as B, e as s, f as A, g as E, h as O, i as l, j as D, k as N, l as e, m as U, u as R } from "../../_chunks/default-tabs-oDWQzbN7.js";
2
2
  export {
3
3
  S as BILL_ACTION_DISABLED_REASONS,
4
4
  T as BILL_COUNTERPARTY_KINDS,
@@ -1,4 +1,4 @@
1
- import { B as O, a as S, b as o, c as B, d as P, e } from "../../_chunks/bishop-score-CKztphVz.js";
1
+ import { B as O, a as S, b as o, c as B, d as P, e } from "../../_chunks/bishop-score-DWGESRP9.js";
2
2
  export {
3
3
  O as BISHOP_COMPONENTS,
4
4
  S as BISHOP_MAX_SCORE,
@@ -1,4 +1,4 @@
1
- import { B as s, a, C as R, O as g, b as n, c as A } from "../../_chunks/reserved.agent-DOzOBUW7.js";
1
+ import { B as s, a, C as R, O as g, b as n, c as A } from "../../_chunks/reserved.agent-CabZHFJC.js";
2
2
  export {
3
3
  s as Booking,
4
4
  a as BookingReserved,
@@ -0,0 +1,30 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ /** The known kinds of call fact, plus `custom` for any other. */
4
+ export type CallStatus = 'connected' | 'no_answer' | 'busy' | 'wrong_number' | 'left_voicemail' | 'missed' | 'incoming' | 'outgoing' | 'custom';
5
+ export type CallStatusTone = 'positive' | 'caution' | 'negative' | 'neutral';
6
+ declare const chipVariants: (props?: ({
7
+ tone?: "negative" | "neutral" | "positive" | "caution" | null | undefined;
8
+ size?: "md" | "lg" | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ export interface CallStatusChipProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'>, Pick<VariantProps<typeof chipVariants>, 'size'> {
11
+ /**
12
+ * The kind of fact. A known kind brings its own icon and tone; `custom`
13
+ * is a neutral phone for any other fact, with `tone` and `icon` to change it.
14
+ */
15
+ status: CallStatus;
16
+ /** The words, already translated by the host. Sentence case. */
17
+ label: string;
18
+ /** Overrides the tone the `status` implies. Needed for a meaningful `custom`. */
19
+ tone?: CallStatusTone;
20
+ /** Overrides the icon the `status` implies. Pass a Lucide icon element. */
21
+ icon?: ReactNode;
22
+ }
23
+ /**
24
+ * A small rounded chip for one fact about a call: how it went, or which way
25
+ * it came. Icon and words are always shown, so meaning never rests on colour.
26
+ * It is a label, not a control.
27
+ */
28
+ export declare const CallStatusChip: import("react").ForwardRefExoticComponent<CallStatusChipProps & import("react").RefAttributes<HTMLSpanElement>>;
29
+ export {};
30
+ //# sourceMappingURL=call-status-chip.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { CallStatusChip } from './call-status-chip';
2
+ export type { CallStatus, CallStatusChipProps, CallStatusTone, } from './call-status-chip';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { C } from "../../_chunks/call-status-chip-pajxN5eZ.js";
2
+ export {
3
+ C as CallStatusChip
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ import type { AgentAdapter } from '../../agent/types';
2
+ import type { CallsPanelHandle } from './calls-panel';
3
+ export declare const callsPanelAgent: AgentAdapter<CallsPanelHandle>;
4
+ //# sourceMappingURL=calls-panel.agent.d.ts.map
@@ -0,0 +1,153 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ /** A purpose or an outcome the host offers. Platform: a call code and its label. */
3
+ export interface CallOption {
4
+ /** Platform code, for example `no_answer` or `appointment_missed`. */
5
+ id: string;
6
+ /** Translated by the host. */
7
+ label: string;
8
+ /**
9
+ * How the outcome reads at a glance, as a colour on its icon and label:
10
+ * `positive` green, `caution` amber, `negative` red, `neutral` grey. The
11
+ * icon and the words always stay, so colour never carries the meaning
12
+ * alone. Absent, the five platform outcome ids take their own tone
13
+ * (`connected` positive; `no_answer`, `busy`, `left_voicemail` caution;
14
+ * `wrong_number` negative) and any other id is neutral. Only outcomes use
15
+ * it: purposes stay neutral.
16
+ */
17
+ tone?: 'positive' | 'caution' | 'negative' | 'neutral';
18
+ }
19
+ /** One logged call. Platform: the call stream row of a patient. */
20
+ export interface CallEntry {
21
+ id: string;
22
+ /**
23
+ * ISO-8601 instant the call took place: platform `date`, the date staff
24
+ * entered. NOT `createdAt`, which is when the row was saved.
25
+ */
26
+ dateIso: string;
27
+ /** A `CallOption.id` of the purposes. Platform `purposeCode`. */
28
+ purposeId?: string | null;
29
+ /** A `CallOption.id` of the outcomes. Platform `outcomeCode`. */
30
+ outcomeId?: string | null;
31
+ /** Free text. Platform `content`. Empty when staff wrote nothing. */
32
+ description?: string | null;
33
+ /** ISO-8601 instant the row was saved: platform `createdAt`. Optional. */
34
+ createdAtIso?: string;
35
+ /** Who started the call. Shown as a small icon and a plain label. */
36
+ direction?: 'outgoing' | 'incoming';
37
+ /** An incoming call nobody answered. Read as "Missed call". Ignored for an outgoing call. */
38
+ missed?: boolean;
39
+ /** How long the call lasted, in whole seconds. Hidden when absent or negative. */
40
+ durationSeconds?: number;
41
+ /** The patient's number the call used. Withheld under privacy. */
42
+ phoneNumber?: string;
43
+ /**
44
+ * Where the row came from. `integration` adds "Logged automatically";
45
+ * `name` is the app, for example a phone system. `manual` shows nothing.
46
+ */
47
+ source?: {
48
+ kind: 'manual' | 'integration';
49
+ name?: string;
50
+ };
51
+ /** Display name of the staff member who took or made the call. Withheld under privacy. */
52
+ handledBy?: string;
53
+ /** Link to the recording in the other software. Only http and https open. Withheld under privacy. */
54
+ recordingHref?: string;
55
+ /** Link to the transcript in the other software. Only http and https open. Withheld under privacy. */
56
+ transcriptHref?: string;
57
+ }
58
+ /** What the form emits. Platform: POST `calls` (`date`, `purpose`, `outcome`, `description`). */
59
+ export interface CallsPanelCreateRequest {
60
+ /** ISO-8601 instant, as the date and time picker holds it. Always set. */
61
+ dateIso: string;
62
+ purposeId: string | null;
63
+ outcomeId: string | null;
64
+ /** Trimmed. May be empty: the platform lets a call be logged without one. */
65
+ description: string;
66
+ }
67
+ /** A write the host refused, as `onWriteError` hears it. */
68
+ export interface CallsPanelWriteFailure {
69
+ kind: 'create' | 'update' | 'delete';
70
+ /** The call written to. Absent for `create`. */
71
+ id?: string;
72
+ /** What the handler rejected or threw with. */
73
+ error: unknown;
74
+ /** Whether the panel told the reader. An agent write is not shown. */
75
+ shown: boolean;
76
+ }
77
+ /**
78
+ * Curated agent handle. Structural state only: a count and flags, never a
79
+ * description, purpose or date. The writes reject, without calling the host,
80
+ * on a read-only panel, under privacy, or without a host handler.
81
+ */
82
+ export interface CallsPanelHandle {
83
+ getState: () => {
84
+ callCount: number;
85
+ /** Calls logged by other software. A count only. Zero under privacy. */
86
+ automaticCount: number;
87
+ /** Incoming calls nobody answered. A count only. Zero under privacy. */
88
+ missedCount: number;
89
+ status: 'ready' | 'loading' | 'error';
90
+ formOpen: boolean;
91
+ privacy: boolean;
92
+ };
93
+ openForm: () => Promise<void>;
94
+ closeForm: () => Promise<void>;
95
+ logCall: (request: {
96
+ dateIso: string;
97
+ purposeId?: string | null;
98
+ outcomeId?: string | null;
99
+ description?: string;
100
+ }) => Promise<void>;
101
+ updateCall: (id: string, patch: {
102
+ description: string;
103
+ }) => Promise<void>;
104
+ deleteCall: (id: string) => Promise<void>;
105
+ }
106
+ export interface CallsPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
107
+ /** Stable instance id, emitted as `data-component-id`. */
108
+ id?: string;
109
+ /** Panel title. Defaults to the localised "Calls". */
110
+ title?: string;
111
+ 'aria-label'?: string;
112
+ /** "Now" as an ISO-8601 instant. The form opens on it; dates drop this year. */
113
+ nowIso?: string;
114
+ /** BCP-47 locale for dates. Defaults to the active language. */
115
+ locale?: string;
116
+ /** The logged calls, in any order. The panel shows them newest first. */
117
+ calls: CallEntry[];
118
+ /** The host's read. `'loading'` and `'error'` replace the list. */
119
+ status?: 'ready' | 'loading' | 'error';
120
+ /** Retry a failed read. Renders the retry button in the error face. */
121
+ onRetry?: () => void;
122
+ /** The purposes to choose from. Omit or leave empty to hide the field. */
123
+ purposes?: CallOption[];
124
+ /** The outcomes to choose from. Omit or leave empty to hide the field. */
125
+ outcomes?: CallOption[];
126
+ /** Privacy mode: descriptions and the form are withheld, not mounted. */
127
+ privacy?: boolean;
128
+ /** Hide the write controls. Platform: no `practice_patient_edit` permission. */
129
+ readOnly?: boolean;
130
+ /**
131
+ * Log a call. Return a promise to keep the form until the host has saved
132
+ * it: a rejection keeps every field and shows the error. Without it the
133
+ * "Log a call" button is not shown.
134
+ */
135
+ onCreate?: (request: CallsPanelCreateRequest) => void | Promise<void>;
136
+ /**
137
+ * Replace the description of a call. The platform lets only the
138
+ * description change. A rejection keeps the text and shows the error.
139
+ * Without it the edit button is not shown.
140
+ */
141
+ onUpdate?: (id: string, patch: {
142
+ description: string;
143
+ }) => void | Promise<void>;
144
+ /**
145
+ * Delete a call, after the panel's own confirm dialog. A rejection keeps
146
+ * the dialog open with the error. Without it the delete button is not shown.
147
+ */
148
+ onDelete?: (id: string) => void | Promise<void>;
149
+ /** A write the host refused. Toast it when `shown` is false. */
150
+ onWriteError?: (failure: CallsPanelWriteFailure) => void;
151
+ }
152
+ export declare const CallsPanel: import("react").ForwardRefExoticComponent<CallsPanelProps & import("react").RefAttributes<HTMLElement>>;
153
+ //# sourceMappingURL=calls-panel.d.ts.map
@@ -0,0 +1,4 @@
1
+ export { CallsPanel } from './calls-panel';
2
+ export type { CallsPanelProps, CallsPanelHandle, CallsPanelCreateRequest, CallsPanelWriteFailure, CallEntry, CallOption, } from './calls-panel';
3
+ export { callsPanelAgent } from './calls-panel.agent';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { C as e, c as s } from "../../_chunks/calls-panel-BIfatK90.js";
2
+ export {
3
+ e as CallsPanel,
4
+ s as callsPanelAgent
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -38,6 +38,23 @@ export interface ChatInputProps extends NativeTextareaProps, VariantProps<typeof
38
38
  toolbar?: ReactNode;
39
39
  /** Visible label above the textarea. When omitted, a visually-hidden label is used. */
40
40
  label?: string;
41
+ /** Keep `label` as the accessible name but hide it visually, for a compact
42
+ * composer. Default false. */
43
+ hideLabel?: boolean;
44
+ /** Accessible name of the send button. Default: the translated "Send". Set it
45
+ * when the button does something other than send, so the name stays honest. */
46
+ sendLabel?: string;
47
+ /** Icon of the send button. Default: the paper-plane. */
48
+ sendIcon?: ReactNode;
49
+ /** Let an empty draft submit: the send button stays enabled and `onSubmit`
50
+ * receives the empty text. Default false. */
51
+ allowEmptySubmit?: boolean;
52
+ /** Whether Ctrl or Cmd+Enter submits. Default true. Set it false when the
53
+ * host does not want that shortcut: the key does nothing here, the send
54
+ * button stops advertising it (`aria-keyshortcuts`) and the screen-reader
55
+ * hint that names it is left out. The send button and `submitOnEnter` are
56
+ * not affected. */
57
+ submitShortcut?: boolean;
41
58
  }
42
59
  export declare const ChatInput: import("react").ForwardRefExoticComponent<ChatInputProps & import("react").RefAttributes<HTMLDivElement>>;
43
60
  export {};
@@ -1,4 +1,4 @@
1
- import { C as n, c as p } from "../../_chunks/chat-input-CX4dxBq7.js";
1
+ import { C as n, c as p } from "../../_chunks/chat-input-BmvnuZqj.js";
2
2
  export {
3
3
  n as ChatInput,
4
4
  p as chatInputAgent
@@ -1,4 +1,4 @@
1
- import { C as s } from "../../_chunks/chat-message-CfIyXrxA.js";
1
+ import { C as s } from "../../_chunks/chat-message-B4TMeZ2m.js";
2
2
  export {
3
3
  s as ChatMessage
4
4
  };
@@ -34,10 +34,16 @@ export interface CommsMessage {
34
34
  id?: string;
35
35
  name?: string;
36
36
  };
37
- /** A shared document, shown as a file tile. */
37
+ /**
38
+ * A shared document, shown as a document card at the top of the bubble.
39
+ * `sizeBytes` and `typeLabel` feed its meta line ("PDF · 248 KB"); the type
40
+ * defaults to the file extension, upper-cased.
41
+ */
38
42
  attachment?: {
39
43
  id: string;
40
44
  name: string;
45
+ sizeBytes?: number;
46
+ typeLabel?: string;
41
47
  };
42
48
  }
43
49
  /** Whether the practice can use one channel for this patient. */
@@ -123,8 +129,14 @@ export interface CommunicationsPanelProps extends Omit<HTMLAttributes<HTMLElemen
123
129
  onWriteError?: (failure: CommunicationsPanelWriteFailure) => void;
124
130
  /** Open the host's way to enable a channel (patient edit, invitation). */
125
131
  onEnableChannel?: (channel: CommsSendChannel) => void;
126
- /** Open the host's WhatsApp message picker. */
127
- onOpenWhatsApp?: () => void;
132
+ /**
133
+ * Open the host's WhatsApp message picker. Gets the text typed in the
134
+ * composer, or `undefined` when it is empty. Nothing is written to the
135
+ * thread. Once it has returned (or its promise resolved) the composer is
136
+ * cleared, so the same text cannot go out again by SMS. A rejection keeps
137
+ * the draft. Without it, a `ready` WhatsApp is not offered in the picker.
138
+ */
139
+ onOpenWhatsApp?: (draft?: string) => void | Promise<void>;
128
140
  /** Open the host's WhatsApp purchase flow. */
129
141
  onBuyWhatsApp?: () => void;
130
142
  /** Open the campaign, workflow or document behind a message. */
@@ -1,4 +1,4 @@
1
- import { C as n, c as o, s as e } from "../../_chunks/communications-panel-BKPHCiMB.js";
1
+ import { C as n, c as o, s as e } from "../../_chunks/communications-panel-SQ-55e3V.js";
2
2
  export {
3
3
  n as CommunicationsPanel,
4
4
  o as communicationsPanelAgent,
@@ -1,5 +1,5 @@
1
- import { D as _, a as D, b as r, c as E, d as I, e as T, f as G } from "../../_chunks/data-grid-B2oaI7Lt.js";
2
- import { D as s, a as R } from "../../_chunks/toolbar-CfdoJzMV.js";
1
+ import { D as _, a as D, b as r, c as E, d as I, e as T, f as G } from "../../_chunks/data-grid-CxKz8flO.js";
2
+ import { D as s, a as R } from "../../_chunks/toolbar-DjG-cpD_.js";
3
3
  export {
4
4
  _ as DATA_GRID_DEFAULT_PAGE_SIZE,
5
5
  D as DATA_GRID_MAX_SORT_LEVELS,
@@ -1,6 +1,6 @@
1
- import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-FTV3uRjX.js";
1
+ import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-_tgj0C_T.js";
2
2
  import { B as g, C as D, a as b, E as x, b as c, R as p, T as u, c as f, r as m, u as E, w as h } from "../../_chunks/editable-currency-cell-renderer-CZMQ5xRT.js";
3
- import { D as S, a as A, b as I, I as y, L, N, c as P, S as W, d as B, e as U, T as _, f as k, g as v, U as H } from "../../_chunks/link-cell-renderer-D3JLPURZ.js";
3
+ import { D as S, a as A, b as I, I as y, L, N, c as P, S as W, d as B, e as U, T as _, f as k, g as v, U as H } from "../../_chunks/link-cell-renderer-Xx5T8u5Q.js";
4
4
  import { A as X, a as j } from "../../_chunks/actions-cell-renderer-C-l_ppP6.js";
5
5
  export {
6
6
  X as ActionsCellRenderer,
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/document-preview-DLVIrOYV.js";
1
+ import { D as r, d as t } from "../../_chunks/document-preview-DWlejd8A.js";
2
2
  export {
3
3
  r as DocumentPreview,
4
4
  t as documentPreviewAgent
@@ -24,6 +24,31 @@ export interface EntitySummarySection {
24
24
  tone?: 'default' | 'attention';
25
25
  /** Bullet items — `ReactNode` so consumers compose inline entity links. */
26
26
  items: ReactNode[];
27
+ /**
28
+ * Shown in place of the list when `items` is empty. Omit it and an empty
29
+ * section draws an empty list, as before.
30
+ */
31
+ emptyLabel?: ReactNode;
32
+ /**
33
+ * A control for this section alone, drawn at the end of its heading row
34
+ * (a "Regenerate" icon button, say). On an `attention` section it sits
35
+ * under the items, in the alert's action row. Omit it and nothing is drawn.
36
+ */
37
+ actions?: ReactNode;
38
+ /**
39
+ * Replaces the items list, and `emptyLabel`, when set: a skeleton while the
40
+ * section is being made, or a short error. Omit it for the list, as before.
41
+ */
42
+ body?: ReactNode;
43
+ /** Drawn under the body: a quiet line such as "out of date". */
44
+ footer?: ReactNode;
45
+ /**
46
+ * The section is being made or remade. Sets `aria-busy` on its card. Giving
47
+ * any value, `false` included, also marks the card with
48
+ * `data-entity-summary-section="<id>"`, so a host can move focus to its
49
+ * heading. Omit it and the markup is exactly as before.
50
+ */
51
+ busy?: boolean;
27
52
  }
28
53
  /**
29
54
  * Curated agent handle for EntitySummary. Exposes structural state only —
@@ -81,7 +106,10 @@ export interface EntitySummaryProps extends Omit<HTMLAttributes<HTMLElement>, 't
81
106
  * (passing it while docked would render a duplicate close control).
82
107
  */
83
108
  onClose?: () => void;
84
- /** Footer disclaimer. Defaults to the BETA clinical-judgement note. */
109
+ /**
110
+ * Footer disclaimer. Defaults to the BETA clinical-judgement note. Pass
111
+ * `false` to draw none, when the host shows its own.
112
+ */
85
113
  disclaimer?: ReactNode;
86
114
  /** BCP-47 locale for the generated-at timestamp. */
87
115
  locale?: string;
@@ -1,4 +1,4 @@
1
- import { E as t } from "../../_chunks/entity-summary-CpNk6ybN.js";
1
+ import { E as t } from "../../_chunks/entity-summary-CPUHzyil.js";
2
2
  export {
3
3
  t as EntitySummary
4
4
  };
@@ -1,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-Bzr5NK1t.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-CEi4z2i0.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent
@@ -1,4 +1,4 @@
1
- import { G as t } from "../../_chunks/gestational-age-calculator-mB6brTlp.js";
1
+ import { G as t } from "../../_chunks/gestational-age-calculator-CHbpC4vL.js";
2
2
  export {
3
3
  t as GestationalAgeCalculator
4
4
  };
@@ -1,4 +1,4 @@
1
- import { H as t, a as p, b as m, h as o } from "../../_chunks/heatmap-C5gJin_F.js";
1
+ import { H as t, a as p, b as m, h as o } from "../../_chunks/heatmap-_546qI2V.js";
2
2
  export {
3
3
  t as Heatmap,
4
4
  p as HeatmapLegend,
@@ -162,6 +162,8 @@ export * from './notification-tray';
162
162
  export * from './notice-group';
163
163
  export * from './notes-panel';
164
164
  export * from './communications-panel';
165
+ export * from './call-status-chip';
166
+ export * from './calls-panel';
165
167
  export * from './popover';
166
168
  export * from './radiograph-panel';
167
169
  export * from './pregnancy-weight-gain';
@@ -1,4 +1,4 @@
1
- import { I as O, a, b as L, c as N, d as s, i as S } from "../../_chunks/invoice-upload-list-B5aMffTy.js";
1
+ import { I as O, a, b as L, c as N, d as s, i as S } from "../../_chunks/invoice-upload-list-CQI9MUl6.js";
2
2
  export {
3
3
  O as INVOICE_DOCUMENT_KINDS,
4
4
  a as INVOICE_SUPPLIER_KINDS,
@@ -1,4 +1,4 @@
1
- import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-BGJD62op.js";
1
+ import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-D_rSyGDj.js";
2
2
  export {
3
3
  a as DEFAULT_MUSCLE_VIEW,
4
4
  i as FINDING_MARKER,
@@ -1,4 +1,4 @@
1
- import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-Da_r8pMr.js";
1
+ import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-DaSbsh4p.js";
2
2
  export {
3
3
  S as ADD_MAX,
4
4
  r as ADD_MIN,
@@ -1,4 +1,4 @@
1
- import { P as e, p as i } from "../../_chunks/patient-details-DBtEITfE.js";
1
+ import { P as e, p as i } from "../../_chunks/patient-details-9eh9cNy7.js";
2
2
  export {
3
3
  e as PatientDetails,
4
4
  i as patientDetailsAgent
@@ -1,4 +1,4 @@
1
- import { P as t, p as m } from "../../_chunks/patient-summary-card-Bl2NknPe.js";
1
+ import { P as t, p as m } from "../../_chunks/patient-summary-card-K9zaMl1O.js";
2
2
  export {
3
3
  t as PatientSummaryCard,
4
4
  m as patientSummaryCardAgent
@@ -1,4 +1,4 @@
1
- import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-DTiMdnCZ.js";
1
+ import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-BSB02Bwo.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
@@ -1,4 +1,4 @@
1
- import { P as r } from "../../_chunks/pregnancy-dating-BNI32qNw.js";
1
+ import { P as r } from "../../_chunks/pregnancy-dating-lJbzai73.js";
2
2
  export {
3
3
  r as PregnancyDating
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-DjHL1b3E.js";
2
- import { k as s } from "../../_chunks/kit-extensions-DUaIYyMD.js";
2
+ import { k as s } from "../../_chunks/kit-extensions-BNBf4m8O.js";
3
3
  export {
4
4
  i as RichTextEditor,
5
5
  s as kitEditorExtensions,
@@ -1,4 +1,4 @@
1
- import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-uESzXTX6.js";
1
+ import { S as a, a as l, b as S, c, d as s, e as o, f as r, g as p, h as g, i, j as m } from "../../_chunks/select-CIXKyUMw.js";
2
2
  export {
3
3
  a as Select,
4
4
  l as SelectContent,
@@ -15,6 +15,7 @@ import { type OptionDescriptionTone } from '../_shared/option-row';
15
15
  declare const selectTriggerVariants: (props?: ({
16
16
  size?: "sm" | "md" | "lg" | null | undefined;
17
17
  tone?: "default" | "error" | null | undefined;
18
+ appearance?: "outlined" | "plain" | null | undefined;
18
19
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
19
20
  declare const selectContentVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
20
21
  declare const selectItemVariants: (props?: ({
@@ -29,6 +30,7 @@ type SelectTriggerProps = ComponentPropsWithoutRef<typeof RadixSelect.Trigger> &
29
30
  declare const SelectTrigger: import("react").ForwardRefExoticComponent<Omit<RadixSelect.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
30
31
  size?: "sm" | "md" | "lg" | null | undefined;
31
32
  tone?: "default" | "error" | null | undefined;
33
+ appearance?: "outlined" | "plain" | null | undefined;
32
34
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLButtonElement>>;
33
35
  declare const SelectValue: import("react").ForwardRefExoticComponent<Omit<RadixSelect.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
34
36
  type SelectContentProps = ComponentPropsWithoutRef<typeof RadixSelect.Content> & {
@@ -153,6 +155,12 @@ export interface SelectProps<T extends string = string> extends Omit<AriaAttribu
153
155
  id?: string;
154
156
  size?: 'sm' | 'md' | 'lg';
155
157
  tone?: 'default' | 'error';
158
+ /**
159
+ * `plain` drops the trigger's edge, fill and shadow, for a Select inside
160
+ * another bordered box such as a composer toolbar. Hover and keyboard focus
161
+ * stay visible. Default `outlined`, unchanged.
162
+ */
163
+ appearance?: 'outlined' | 'plain';
156
164
  'aria-label'?: string;
157
165
  /**
158
166
  * Extra ids describing the trigger, e.g. a visually hidden reason why an
@@ -1,4 +1,4 @@
1
- import { S as n, s as e } from "../../_chunks/session-countdown-DOx1IBUB.js";
1
+ import { S as n, s as e } from "../../_chunks/session-countdown-StcyUU5O.js";
2
2
  export {
3
3
  n as SessionCountdown,
4
4
  e as sessionCountdownAgent
@@ -5,7 +5,7 @@ import { c as T1 } from "../../_chunks/index-D2ZczOXr.js";
5
5
  import { useTranslation as N1 } from "react-i18next";
6
6
  import { u as E1 } from "../../_chunks/registry-DvAUVLHh.js";
7
7
  import { m as R1, A as _1 } from "../../_chunks/annotation-marker-D-M7y4R1.js";
8
- import { T as A } from "../../_chunks/tabs-CRIDBLP7.js";
8
+ import { T as A } from "../../_chunks/tabs-Czkmw5ou.js";
9
9
  import { a as V1, Z as C1 } from "../../_chunks/zoom-out-Dnif4kJx.js";
10
10
  import { M as F1 } from "../../_chunks/maximize-2-BYd2Kti7.js";
11
11
  const I = {
@@ -1,4 +1,4 @@
1
- import { T as t, a as b, b as T, c as e, t as r } from "../../_chunks/tabs-CRIDBLP7.js";
1
+ import { T as t, a as b, b as T, c as e, t as r } from "../../_chunks/tabs-Czkmw5ou.js";
2
2
  export {
3
3
  t as Tabs,
4
4
  b as TabsContent,
@@ -1,4 +1,4 @@
1
- import { T as o, t as r } from "../../_chunks/task-editor-DvwqPfFR.js";
1
+ import { T as o, t as r } from "../../_chunks/task-editor-BfXSn6U1.js";
2
2
  export {
3
3
  o as TaskEditor,
4
4
  r as taskEditorAgent
@@ -1,4 +1,4 @@
1
- import { T as e, t } from "../../_chunks/tasks-panel-6EzdnwT8.js";
1
+ import { T as e, t } from "../../_chunks/tasks-panel-DbtJS4QI.js";
2
2
  export {
3
3
  e as TasksPanel,
4
4
  t as tasksPanelAgent
@@ -1,4 +1,4 @@
1
- import { C as r, U as t, a as U, b as e, c as n } from "../../_chunks/unit-converter-YKlHyUC2.js";
1
+ import { C as r, U as t, a as U, b as e, c as n } from "../../_chunks/unit-converter-CUAUTu2B.js";
2
2
  export {
3
3
  r as CATEGORIES,
4
4
  t as UNITS,
@@ -1,4 +1,4 @@
1
- import { V as n, v as a } from "../../_chunks/voice-control-panel-Be_c0CQ0.js";
1
+ import { V as n, v as a } from "../../_chunks/voice-control-panel-Cp4vs1iy.js";
2
2
  export {
3
3
  n as VoiceControlPanel,
4
4
  a as voiceControlPanelAgent