@alfadocs/ui-kit 1.46.0 → 1.47.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 (91) hide show
  1. package/dist/_chunks/booking-C4MwImkS.js +3362 -0
  2. package/dist/_chunks/calendar-workspace-DDnQmiIL.js +12427 -0
  3. package/dist/_chunks/{freemium-paywall-Cz-O9lQD.js → freemium-paywall-BaW5ODc9.js} +2 -2
  4. package/dist/_chunks/{patient-details-DUj1htsH.js → patient-details-yrgkSeEY.js} +2 -2
  5. package/dist/_chunks/{patient-field-row-CO0WR7yA.js → patient-field-row-DCMkFGqI.js} +2 -2
  6. package/dist/_chunks/{patient-summary-card-DNzdYjxE.js → patient-summary-card-CmEFflGS.js} +2 -2
  7. package/dist/_chunks/payment-form-DqJFiplX.js +881 -0
  8. package/dist/_chunks/{phone-input-BsZIoE36.js → phone-input-IWrGOCwm.js} +40 -39
  9. package/dist/_chunks/{stepper-accordion-DmVykr5F.js → stepper-accordion-jMR8NaOB.js} +2 -1
  10. package/dist/agent-catalog.json +5 -4
  11. package/dist/agent-i18n/en.json +2 -2
  12. package/dist/components/booking/booking-types.d.ts +60 -1
  13. package/dist/components/booking/booking.d.ts +1 -1
  14. package/dist/components/booking/details-form.d.ts +5 -1
  15. package/dist/components/booking/index.d.ts +1 -1
  16. package/dist/components/booking/index.js +1 -1
  17. package/dist/components/booking/payment.d.ts +9 -0
  18. package/dist/components/booking/use-booking-payment.d.ts +14 -0
  19. package/dist/components/freemium-paywall/index.js +1 -1
  20. package/dist/components/patient-details/index.js +1 -1
  21. package/dist/components/patient-summary-card/index.js +1 -1
  22. package/dist/components/payment-form/index.d.ts +1 -1
  23. package/dist/components/payment-form/index.js +1 -1
  24. package/dist/components/payment-form/payment-form.d.ts +35 -3
  25. package/dist/components/phone-input/index.js +1 -1
  26. package/dist/components/stepper-accordion/index.js +1 -1
  27. package/dist/i18n/locales/ar.d.ts +36 -1
  28. package/dist/i18n/locales/ar.js +36 -1
  29. package/dist/i18n/locales/de.d.ts +36 -1
  30. package/dist/i18n/locales/de.js +36 -1
  31. package/dist/i18n/locales/el.d.ts +36 -1
  32. package/dist/i18n/locales/el.js +36 -1
  33. package/dist/i18n/locales/en.d.ts +36 -1
  34. package/dist/i18n/locales/en.js +36 -1
  35. package/dist/i18n/locales/es.d.ts +36 -1
  36. package/dist/i18n/locales/es.js +36 -1
  37. package/dist/i18n/locales/fr.d.ts +36 -1
  38. package/dist/i18n/locales/fr.js +36 -1
  39. package/dist/i18n/locales/hi.d.ts +36 -1
  40. package/dist/i18n/locales/hi.js +36 -1
  41. package/dist/i18n/locales/it.d.ts +36 -1
  42. package/dist/i18n/locales/it.js +36 -1
  43. package/dist/i18n/locales/ja.d.ts +36 -1
  44. package/dist/i18n/locales/ja.js +36 -1
  45. package/dist/i18n/locales/nl.d.ts +36 -1
  46. package/dist/i18n/locales/nl.js +36 -1
  47. package/dist/i18n/locales/pl.d.ts +36 -1
  48. package/dist/i18n/locales/pl.js +36 -1
  49. package/dist/i18n/locales/pt.d.ts +36 -1
  50. package/dist/i18n/locales/pt.js +36 -1
  51. package/dist/i18n/locales/ro.d.ts +36 -1
  52. package/dist/i18n/locales/ro.js +36 -1
  53. package/dist/i18n/locales/ru.d.ts +36 -1
  54. package/dist/i18n/locales/ru.js +36 -1
  55. package/dist/i18n/locales/sq.d.ts +36 -1
  56. package/dist/i18n/locales/sq.js +36 -1
  57. package/dist/i18n/locales/sv.d.ts +36 -1
  58. package/dist/i18n/locales/sv.js +36 -1
  59. package/dist/i18n/locales/tr.d.ts +36 -1
  60. package/dist/i18n/locales/tr.js +36 -1
  61. package/dist/i18n/locales/zh.d.ts +36 -1
  62. package/dist/i18n/locales/zh.js +36 -1
  63. package/dist/index.js +8 -8
  64. package/dist/locales/ar.json +36 -1
  65. package/dist/locales/de.json +36 -1
  66. package/dist/locales/el.json +36 -1
  67. package/dist/locales/en.json +36 -1
  68. package/dist/locales/es.json +36 -1
  69. package/dist/locales/fr.json +36 -1
  70. package/dist/locales/hi.json +36 -1
  71. package/dist/locales/it.json +36 -1
  72. package/dist/locales/ja.json +36 -1
  73. package/dist/locales/nl.json +36 -1
  74. package/dist/locales/pl.json +36 -1
  75. package/dist/locales/pt.json +36 -1
  76. package/dist/locales/ro.json +36 -1
  77. package/dist/locales/ru.json +36 -1
  78. package/dist/locales/sq.json +36 -1
  79. package/dist/locales/sv.json +36 -1
  80. package/dist/locales/tr.json +36 -1
  81. package/dist/locales/zh.json +36 -1
  82. package/dist/patterns/calendar/calendar-editor-fields.d.ts +33 -0
  83. package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -0
  84. package/dist/patterns/calendar/calendar.data.d.ts +17 -0
  85. package/dist/patterns/calendar/calendar.types.d.ts +24 -10
  86. package/dist/patterns/calendar/index.js +1 -1
  87. package/dist/tokens.css +1 -1
  88. package/package.json +1 -1
  89. package/dist/_chunks/booking-B7gA9gFB.js +0 -3017
  90. package/dist/_chunks/calendar-workspace-BB-BZT7W.js +0 -12251
  91. package/dist/_chunks/payment-form-BHMDqW9C.js +0 -767
@@ -324,25 +324,39 @@ export interface CalendarBookingContact {
324
324
  }
325
325
  /**
326
326
  * A calendar task (platform `DoctorReminder`) — the model the task editor
327
- * saves. `note` is the only required field; a task may be about a patient,
328
- * about a company, or neither, but never both (mutually exclusive, like
329
- * `CalendarWaitingEntry`'s three connections). No title separate from the
330
- * note, no priority, no duration — the platform model has none.
327
+ * saves. A task has at most ONE counterpart: a patient, a company, an
328
+ * operator, or none. `TaskType::validate()` refuses more than one with
329
+ * "More than one counterpart is set", so the editor asks for one choice.
330
+ * `note` is required here though the platform allows an empty one; `date`
331
+ * is required on both sides. No title separate from the note, no priority,
332
+ * no duration — the platform model has none.
331
333
  */
332
334
  export interface CalendarTask {
333
335
  id: string;
334
- /** Local wall-clock instant (date + time), as an ISO string. */
336
+ /** An instant as an ISO 8601 string. The editor emits `toISOString()`,
337
+ * so UTC with a `Z`; parse it with `new Date()`, never by slicing the
338
+ * first 16 characters. A zone-less string on read is taken as local. */
335
339
  dateIso: string;
336
- /** The task text — the only required field. */
340
+ /** The task text. Required here, though the platform allows an empty
341
+ * one. */
337
342
  note: string;
338
343
  /** The clinician the task concerns: platform `doctorOperator`, filled
339
- * from `data.operators`. NOT the assignee, which is a practice user
340
- * account the kit does not model. Absent = no operator. */
344
+ * from `data.operators`. NOT the assignee (`assigneeId`), and mutually
345
+ * exclusive with `patientId` and `companyId`. Absent = no operator. */
341
346
  operatorId?: string;
342
- /** Mutually exclusive with `companyId`. */
347
+ /** Mutually exclusive with `companyId` and `operatorId`. */
343
348
  patientId?: string;
344
- /** Mutually exclusive with `patientId` (platform `doctorCompany`). */
349
+ /** Mutually exclusive with `patientId` and `operatorId` (platform
350
+ * `doctorCompany`). */
345
351
  companyId?: string;
352
+ /** Which kind of task — an OPAQUE token from `CalendarData.taskTypes`,
353
+ * round-tripped untouched. The kit never parses it. Optional: a host
354
+ * that supplies no `taskTypes` neither shows the field nor sends one. */
355
+ typeId?: string;
356
+ /** The practice USER the task is assigned to. Independent of the
357
+ * counterpart above: an assigned task may still be about a patient. An
358
+ * id from `CalendarData.taskAssignees`; absent = nobody. */
359
+ assigneeId?: string;
346
360
  done: boolean;
347
361
  }
348
362
  /** The same shape without an identity — what the editor hands the create
@@ -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-BB-BZT7W.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-DDnQmiIL.js";
2
2
  export {
3
3
  s as CALENDAR_PREFERENCE_KEYS,
4
4
  r as CalendarDataProvider,