@alfadocs/ui-kit 1.36.1 → 1.38.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 (165) hide show
  1. package/dist/_chunks/{agenda-tray-DYGCTIWB.js → agenda-tray-CG6jUjKc.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-card-GYHa7VGp.js → anamnesis-summary-card-CclBbiXg.js} +2 -2
  3. package/dist/_chunks/appointment-peek-5S4O1VQP.js +115 -0
  4. package/dist/_chunks/appointment-peek.agent-C539tNFM.js +17 -0
  5. package/dist/_chunks/{appointment-timeline-ByfovxqR.js → appointment-timeline-D-rNwKpS.js} +2 -2
  6. package/dist/_chunks/{appointment-tray-D6UyJHej.js → appointment-tray-CK2CULg_.js} +2 -2
  7. package/dist/_chunks/{balance-badge-cell-B0Z8Dwn8.js → balance-badge-cell-DHs5p0bA.js} +2 -2
  8. package/dist/_chunks/{booking-Dp-9qR6F.js → booking-x3J7sS2G.js} +3 -3
  9. package/dist/_chunks/building-2-D33bLCWL.js +24 -0
  10. package/dist/_chunks/calendar-workspace-Cc1LRVWY.js +9900 -0
  11. package/dist/_chunks/{control-room-rail-Ds45_g4f.js → control-room-rail-DQoHdE1U.js} +2 -2
  12. package/dist/_chunks/{data-table-BYGK-gUJ.js → data-table-Dy1lyumT.js} +2 -2
  13. package/dist/_chunks/editable-description-7ptNpJEg.js +142 -0
  14. package/dist/_chunks/editable-description.agent-Bm_LBV2j.js +21 -0
  15. package/dist/_chunks/{file-manager-DvkFgj7d.js → file-manager-UlcYQv8n.js} +3 -3
  16. package/dist/_chunks/{message-tray-BcLyaO-G.js → message-tray-CXjVsKqp.js} +2 -2
  17. package/dist/_chunks/{money.agent-Dw55UxUA.js → money-BY-HmKhZ.js} +33 -47
  18. package/dist/_chunks/money.agent-BjJ6gOkx.js +17 -0
  19. package/dist/_chunks/{note-timeline-CXfSV3yX.js → note-timeline-D2oPuQP6.js} +134 -73
  20. package/dist/_chunks/notes-panel-CkbfDDzj.js +614 -0
  21. package/dist/_chunks/{notification-tray-CJ8jOe-U.js → notification-tray-_NoChRKi.js} +2 -2
  22. package/dist/_chunks/panel-subview-BNXN8OEL.js +160 -0
  23. package/dist/_chunks/panel-subview.agent-BIBvE-IW.js +17 -0
  24. package/dist/_chunks/{patient-details-f7SSXkTJ.js → patient-details-2cIaL-Zb.js} +2 -2
  25. package/dist/_chunks/{patient-field-row-BQZoP4m2.js → patient-field-row-IHb2VFc2.js} +193 -172
  26. package/dist/_chunks/{patient-summary-card-Bz7KdUin.js → patient-summary-card-B131Q7Bp.js} +3 -3
  27. package/dist/_chunks/{practice-results-DOcORTkP.js → practice-results-CBNRJNnY.js} +2 -2
  28. package/dist/_chunks/{product-hub-panel-C0TO69P7.js → product-hub-panel-C3bMjscm.js} +2 -2
  29. package/dist/_chunks/{reviews-panel-BaHZb_ai.js → reviews-panel-Cy969x7q.js} +2 -2
  30. package/dist/_chunks/{section-card.agent-W18CHEgX.js → section-card-XR2bW1Ie.js} +20 -34
  31. package/dist/_chunks/section-card.agent-Bz1BhM_j.js +17 -0
  32. package/dist/_chunks/{signature-request-Dej2g86d.js → signature-request-b-86AGlT.js} +2 -2
  33. package/dist/_chunks/{skeleton-CZbwyJAA.js → skeleton-B1KTdJ4N.js} +46 -33
  34. package/dist/_chunks/{slot-grid-8Ko6thzz.js → slot-grid-Bk3GZL1p.js} +2 -2
  35. package/dist/_chunks/smartphone-DaPcFw-X.js +32 -0
  36. package/dist/_chunks/{task-card-BalrLkSz.js → task-card-qTKD1fIT.js} +39 -57
  37. package/dist/_chunks/{task-tray-wl9eti6J.js → task-tray-5co9Jr2L.js} +3 -3
  38. package/dist/_chunks/{tasks-panel-BDNB7hsZ.js → tasks-panel-BpH-x7U3.js} +3 -3
  39. package/dist/_chunks/{tool-rail-Bq5eiFMG.js → tool-rail-BP8sjxCw.js} +310 -231
  40. package/dist/_chunks/treatment-receipt-dUm99mdn.js +160 -0
  41. package/dist/_chunks/treatment-receipt.agent-bpFm2RPH.js +21 -0
  42. package/dist/_chunks/use-presence-transition-cDwWUXV-.js +58 -0
  43. package/dist/_chunks/{workflow-map-D-LEni11.js → workflow-map-CXdsxvUj.js} +140 -156
  44. package/dist/agent-catalog.json +65 -1
  45. package/dist/components/agenda-tray/index.js +1 -1
  46. package/dist/components/anamnesis-summary-card/index.js +1 -1
  47. package/dist/components/appointment-card/index.js +1 -1
  48. package/dist/components/appointment-peek/appointment-peek.agent.d.ts +3 -0
  49. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -0
  50. package/dist/components/appointment-peek/index.d.ts +4 -0
  51. package/dist/components/appointment-peek/index.js +7 -0
  52. package/dist/components/appointment-timeline/index.js +1 -1
  53. package/dist/components/booking/index.js +1 -1
  54. package/dist/components/control-room-rail/index.js +1 -1
  55. package/dist/components/data-table/index.js +1 -1
  56. package/dist/components/editable-description/editable-description.agent.d.ts +3 -0
  57. package/dist/components/editable-description/editable-description.d.ts +26 -0
  58. package/dist/components/editable-description/index.d.ts +4 -0
  59. package/dist/components/editable-description/index.js +7 -0
  60. package/dist/components/file-manager/index.js +1 -1
  61. package/dist/components/index.d.ts +4 -0
  62. package/dist/components/message-tray/index.js +1 -1
  63. package/dist/components/money/index.js +2 -1
  64. package/dist/components/note-timeline/index.js +1 -1
  65. package/dist/components/note-timeline/note-timeline.d.ts +8 -0
  66. package/dist/components/notes-panel/index.js +1 -1
  67. package/dist/components/notes-panel/notes-panel.d.ts +16 -0
  68. package/dist/components/notification-tray/index.js +1 -1
  69. package/dist/components/panel-subview/index.d.ts +4 -0
  70. package/dist/components/panel-subview/index.js +7 -0
  71. package/dist/components/panel-subview/panel-subview.agent.d.ts +3 -0
  72. package/dist/components/panel-subview/panel-subview.d.ts +32 -0
  73. package/dist/components/patient-details/index.js +1 -1
  74. package/dist/components/patient-summary-card/index.js +1 -1
  75. package/dist/components/patient-table/index.js +1 -1
  76. package/dist/components/practice-results/index.js +1 -1
  77. package/dist/components/product-hub-tray/index.js +1 -1
  78. package/dist/components/reviews-panel/index.js +1 -1
  79. package/dist/components/section-card/index.js +4 -3
  80. package/dist/components/skeleton/index.d.ts +1 -1
  81. package/dist/components/skeleton/index.js +3 -2
  82. package/dist/components/skeleton/skeleton.d.ts +12 -0
  83. package/dist/components/slot-grid/index.js +1 -1
  84. package/dist/components/task-card/index.js +1 -1
  85. package/dist/components/task-tray/index.js +1 -1
  86. package/dist/components/tasks-panel/index.js +1 -1
  87. package/dist/components/tool-rail/index.js +1 -1
  88. package/dist/components/treatment-receipt/index.d.ts +4 -0
  89. package/dist/components/treatment-receipt/index.js +7 -0
  90. package/dist/components/treatment-receipt/treatment-receipt.agent.d.ts +3 -0
  91. package/dist/components/treatment-receipt/treatment-receipt.d.ts +38 -0
  92. package/dist/components/workflow/index.js +1 -1
  93. package/dist/hooks/index.d.ts +1 -0
  94. package/dist/hooks/index.js +9 -7
  95. package/dist/hooks/use-presence-transition.d.ts +40 -0
  96. package/dist/host-compat.css +7 -1
  97. package/dist/i18n/locales/ar.d.ts +29 -5
  98. package/dist/i18n/locales/ar.js +29 -5
  99. package/dist/i18n/locales/de.d.ts +29 -5
  100. package/dist/i18n/locales/de.js +29 -5
  101. package/dist/i18n/locales/el.d.ts +29 -5
  102. package/dist/i18n/locales/el.js +29 -5
  103. package/dist/i18n/locales/en.d.ts +29 -5
  104. package/dist/i18n/locales/en.js +29 -5
  105. package/dist/i18n/locales/es.d.ts +29 -5
  106. package/dist/i18n/locales/es.js +29 -5
  107. package/dist/i18n/locales/fr.d.ts +29 -5
  108. package/dist/i18n/locales/fr.js +29 -5
  109. package/dist/i18n/locales/hi.d.ts +29 -5
  110. package/dist/i18n/locales/hi.js +29 -5
  111. package/dist/i18n/locales/it.d.ts +29 -5
  112. package/dist/i18n/locales/it.js +29 -5
  113. package/dist/i18n/locales/ja.d.ts +29 -5
  114. package/dist/i18n/locales/ja.js +29 -5
  115. package/dist/i18n/locales/nl.d.ts +29 -5
  116. package/dist/i18n/locales/nl.js +29 -5
  117. package/dist/i18n/locales/pl.d.ts +29 -5
  118. package/dist/i18n/locales/pl.js +29 -5
  119. package/dist/i18n/locales/pt.d.ts +29 -5
  120. package/dist/i18n/locales/pt.js +29 -5
  121. package/dist/i18n/locales/ro.d.ts +29 -5
  122. package/dist/i18n/locales/ro.js +29 -5
  123. package/dist/i18n/locales/ru.d.ts +29 -5
  124. package/dist/i18n/locales/ru.js +29 -5
  125. package/dist/i18n/locales/sq.d.ts +29 -5
  126. package/dist/i18n/locales/sq.js +29 -5
  127. package/dist/i18n/locales/sv.d.ts +29 -5
  128. package/dist/i18n/locales/sv.js +29 -5
  129. package/dist/i18n/locales/tr.d.ts +29 -5
  130. package/dist/i18n/locales/tr.js +29 -5
  131. package/dist/i18n/locales/zh.d.ts +29 -5
  132. package/dist/i18n/locales/zh.js +29 -5
  133. package/dist/index.js +959 -940
  134. package/dist/locales/ar.json +29 -5
  135. package/dist/locales/de.json +29 -5
  136. package/dist/locales/el.json +29 -5
  137. package/dist/locales/en.json +29 -5
  138. package/dist/locales/es.json +29 -5
  139. package/dist/locales/fr.json +29 -5
  140. package/dist/locales/hi.json +29 -5
  141. package/dist/locales/it.json +29 -5
  142. package/dist/locales/ja.json +29 -5
  143. package/dist/locales/nl.json +29 -5
  144. package/dist/locales/pl.json +29 -5
  145. package/dist/locales/pt.json +29 -5
  146. package/dist/locales/ro.json +29 -5
  147. package/dist/locales/ru.json +29 -5
  148. package/dist/locales/sq.json +29 -5
  149. package/dist/locales/sv.json +29 -5
  150. package/dist/locales/tr.json +29 -5
  151. package/dist/locales/zh.json +29 -5
  152. package/dist/patterns/calendar/calendar-appointment-details.d.ts +16 -7
  153. package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +23 -23
  154. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -2
  155. package/dist/patterns/calendar/calendar-info-hover.d.ts +18 -0
  156. package/dist/patterns/calendar/calendar.journey.d.ts +10 -0
  157. package/dist/patterns/calendar/calendar.sheets.d.ts +2 -2
  158. package/dist/patterns/calendar/index.js +1 -1
  159. package/dist/patterns/signature-request/index.js +1 -1
  160. package/dist/tokens.css +1 -1
  161. package/package.json +17 -1
  162. package/dist/_chunks/calendar-workspace-BYwQK7fz.js +0 -9478
  163. package/dist/_chunks/hourglass-BEAzW1wE.js +0 -26
  164. package/dist/_chunks/notes-panel-Co8D3uDd.js +0 -469
  165. package/dist/_chunks/smartphone-C0rFF2if.js +0 -15
@@ -10,6 +10,7 @@
10
10
  * hook, the platform island wires the same shape to `/internalApi/...`.
11
11
  * No implementation lives here.
12
12
  */
13
+ import type { CalendarEventStatus } from '../../components/calendar';
13
14
  import type { Dispatch, SetStateAction } from 'react';
14
15
  import type { NotesPanelNote, NotesPanelProps, NotesPanelSubmission } from '../../components/notes-panel';
15
16
  import type { AvailabilityContext, BacklogFilter, BacklogItem, CalendarFreeSlot, CalendarRow, DisplaySettings, DraftSlot, EditorDraft, EditorPrefill, FindSlotsSeed, HistoryInput, RailFocus, SlotPatch, WaitingEntryDraft } from './calendar.model';
@@ -101,6 +102,15 @@ export interface CalendarJourney {
101
102
  * Reject with a user-facing Error and the kit puts that row back.
102
103
  * Omit it and every move of a recurring parent stays 'this'. */
103
104
  handleMoveOccurrence?: (move: CalendarOccurrenceMove) => Promise<void>;
105
+ /** Saves a new status for one occurrence from the details panel. Reject
106
+ * with a user-facing Error and the panel keeps the old status and shows
107
+ * the message; resolve and the kit updates that row's status on the
108
+ * grid. Omit it and the details panel shows the status read-only. */
109
+ handleStatusChange?: (eventId: string, status: CalendarEventStatus) => Promise<void>;
110
+ /** Saves a new description for one occurrence from the details panel's
111
+ * editor. Reject with a user-facing Error and the editor stays open with
112
+ * it. Omit it and the description is read-only. */
113
+ handleDescriptionChange?: (eventId: string, description: string) => Promise<void>;
104
114
  handleDuplicateAppointment: (prefill: EditorPrefill) => void;
105
115
  handleDraftMoved: (next: {
106
116
  date: Date;
@@ -80,8 +80,8 @@ declare function PatientNotesPanelContent({ patientId, seam, editable, currentNo
80
80
  /**
81
81
  * Whether this reader may write when `seam.writable` is absent: note
82
82
  * writes follow the notes, not `practice_appointment_edit`. False (or
83
- * no `seam`) leaves the composer, the pin and the per-note edit /
84
- * delete dialogs unmounted.
83
+ * no `seam`) leaves the composer, the pin, the in-place edit and the
84
+ * delete dialog unmounted.
85
85
  */
86
86
  editable?: boolean;
87
87
  /** Address one note, exactly as `NotesPanel` does. */
@@ -1,4 +1,4 @@
1
- import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-BYwQK7fz.js";
1
+ import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-Cc1LRVWY.js";
2
2
  export {
3
3
  s as CALENDAR_PREFERENCE_KEYS,
4
4
  r as CalendarDataProvider,
@@ -1,4 +1,4 @@
1
- import { S as o } from "../../_chunks/signature-request-Dej2g86d.js";
1
+ import { S as o } from "../../_chunks/signature-request-b-86AGlT.js";
2
2
  export {
3
3
  o as SignatureRequestModal
4
4
  };