@alfadocs/ui-kit 1.39.0 → 1.40.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 (77) hide show
  1. package/dist/_chunks/{ai-consent-banner-DvtaM3yg.js → ai-consent-banner-D7I2U-cz.js} +37 -36
  2. package/dist/_chunks/{booking-Dn3jvv3K.js → booking-D43ASl8y.js} +1109 -1103
  3. package/dist/_chunks/{calendar-workspace-B-fUbm62.js → calendar-workspace-SN23GsXX.js} +2154 -2148
  4. package/dist/_chunks/{notes-panel-CAD1Ytcj.js → notes-panel-CmTqIWlS.js} +76 -73
  5. package/dist/_chunks/{rich-text-editor-C6fE-uP4.js → rich-text-editor-BJ1-Lkao.js} +1023 -931
  6. package/dist/agent-catalog.json +1 -1
  7. package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +9 -0
  8. package/dist/components/ai-consent-banner/index.d.ts +1 -1
  9. package/dist/components/ai-consent-banner/index.js +1 -1
  10. package/dist/components/booking/booking-types.d.ts +6 -0
  11. package/dist/components/booking/cascade.d.ts +6 -0
  12. package/dist/components/booking/index.js +1 -1
  13. package/dist/components/notes-panel/index.d.ts +1 -0
  14. package/dist/components/notes-panel/index.js +1 -1
  15. package/dist/components/notes-panel/notes-panel.d.ts +8 -1
  16. package/dist/components/rich-text-editor/index.d.ts +1 -1
  17. package/dist/components/rich-text-editor/index.js +1 -1
  18. package/dist/components/rich-text-editor/rich-text-editor.d.ts +48 -0
  19. package/dist/i18n/locales/ar.d.ts +13 -11
  20. package/dist/i18n/locales/ar.js +14 -12
  21. package/dist/i18n/locales/de.d.ts +13 -11
  22. package/dist/i18n/locales/de.js +14 -12
  23. package/dist/i18n/locales/el.d.ts +13 -11
  24. package/dist/i18n/locales/el.js +14 -12
  25. package/dist/i18n/locales/en.d.ts +2 -0
  26. package/dist/i18n/locales/en.js +3 -1
  27. package/dist/i18n/locales/es.d.ts +13 -11
  28. package/dist/i18n/locales/es.js +14 -12
  29. package/dist/i18n/locales/fr.d.ts +13 -11
  30. package/dist/i18n/locales/fr.js +14 -12
  31. package/dist/i18n/locales/hi.d.ts +13 -11
  32. package/dist/i18n/locales/hi.js +14 -12
  33. package/dist/i18n/locales/it.d.ts +13 -11
  34. package/dist/i18n/locales/it.js +14 -12
  35. package/dist/i18n/locales/ja.d.ts +13 -11
  36. package/dist/i18n/locales/ja.js +14 -12
  37. package/dist/i18n/locales/nl.d.ts +13 -11
  38. package/dist/i18n/locales/nl.js +14 -12
  39. package/dist/i18n/locales/pl.d.ts +13 -11
  40. package/dist/i18n/locales/pl.js +14 -12
  41. package/dist/i18n/locales/pt.d.ts +13 -11
  42. package/dist/i18n/locales/pt.js +14 -12
  43. package/dist/i18n/locales/ro.d.ts +13 -11
  44. package/dist/i18n/locales/ro.js +14 -12
  45. package/dist/i18n/locales/ru.d.ts +13 -11
  46. package/dist/i18n/locales/ru.js +14 -12
  47. package/dist/i18n/locales/sq.d.ts +13 -11
  48. package/dist/i18n/locales/sq.js +14 -12
  49. package/dist/i18n/locales/sv.d.ts +13 -11
  50. package/dist/i18n/locales/sv.js +14 -12
  51. package/dist/i18n/locales/tr.d.ts +13 -11
  52. package/dist/i18n/locales/tr.js +14 -12
  53. package/dist/i18n/locales/zh.d.ts +13 -11
  54. package/dist/i18n/locales/zh.js +14 -12
  55. package/dist/index.js +5 -5
  56. package/dist/locales/ar.json +14 -12
  57. package/dist/locales/de.json +14 -12
  58. package/dist/locales/el.json +14 -12
  59. package/dist/locales/en.json +3 -1
  60. package/dist/locales/es.json +14 -12
  61. package/dist/locales/fr.json +14 -12
  62. package/dist/locales/hi.json +14 -12
  63. package/dist/locales/it.json +14 -12
  64. package/dist/locales/ja.json +14 -12
  65. package/dist/locales/nl.json +14 -12
  66. package/dist/locales/pl.json +14 -12
  67. package/dist/locales/pt.json +14 -12
  68. package/dist/locales/ro.json +14 -12
  69. package/dist/locales/ru.json +14 -12
  70. package/dist/locales/sq.json +14 -12
  71. package/dist/locales/sv.json +14 -12
  72. package/dist/locales/tr.json +14 -12
  73. package/dist/locales/zh.json +14 -12
  74. package/dist/patterns/calendar/calendar.journey.d.ts +9 -1
  75. package/dist/patterns/calendar/calendar.sheets.d.ts +6 -1
  76. package/dist/patterns/calendar/index.js +1 -1
  77. package/package.json +1 -1
@@ -2365,21 +2365,21 @@
2365
2365
  "openNote": "Hap shënimin · {{date}}"
2366
2366
  },
2367
2367
  "aiConsentBanner": {
2368
- "regionLabel": "AI assistance consent",
2369
- "title": "AI assistance consent",
2368
+ "regionLabel": "Pëlqimi për asistencën me IA",
2369
+ "title": "Pëlqimi për asistencën me IA",
2370
2370
  "description": {
2371
- "granted": "AI assistance is enabled for this record.",
2372
- "required": "AI assistance requires recorded consent before it can run."
2371
+ "granted": "Asistenca me IA është aktivizuar për këtë skedë.",
2372
+ "required": "Asistenca me IA kërkon pëlqim të regjistruar përpara se të mund të funksionojë."
2373
2373
  },
2374
2374
  "badge": {
2375
- "granted": "Consent granted"
2375
+ "granted": "Pëlqimi u dha"
2376
2376
  },
2377
- "grantedAtPrefix": "Granted",
2378
- "grantedBy": "By {{name}}",
2379
- "pendingLabel": "Saving consent…",
2380
- "confirmLabel": "I confirm consent has been obtained for AI assistance.",
2381
- "grantButton": "Grant consent",
2382
- "notAllowed": "You do not have permission to grant AI assistance consent."
2377
+ "grantedAtPrefix": "Dhënë",
2378
+ "grantedBy": "Nga {{name}}",
2379
+ "pendingLabel": "Duke ruajtur pëlqimin…",
2380
+ "confirmLabel": "Konfirmoj se është marrë pëlqimi për asistencën me IA.",
2381
+ "grantButton": "Jep pëlqimin",
2382
+ "notAllowed": "Nuk keni leje për të dhënë pëlqimin për asistencën me IA."
2383
2383
  },
2384
2384
  "paymentCard": {
2385
2385
  "regionLabel": "Payment {{number}}",
@@ -2874,7 +2874,9 @@
2874
2874
  "listening": "Duke dëgjuar…",
2875
2875
  "dictationError": "Diktimi dështoi. Ju lutemi provoni përsëri.",
2876
2876
  "proofread": "Kontrollo drejtshkrimin dhe gramatikën",
2877
- "autoFormat": "Formato automatikisht dokumentin"
2877
+ "autoFormat": "Formato automatikisht dokumentin",
2878
+ "consentRecorded": "Pëlqimi për asistencën me IA është regjistruar.",
2879
+ "consentRegionLabel": "Pëlqimi për asistencën me IA për këtë dokument"
2878
2880
  }
2879
2881
  },
2880
2882
  "payment": {
@@ -2365,21 +2365,21 @@
2365
2365
  "openNote": "Öppna anteckning · {{date}}"
2366
2366
  },
2367
2367
  "aiConsentBanner": {
2368
- "regionLabel": "AI assistance consent",
2369
- "title": "AI assistance consent",
2368
+ "regionLabel": "Samtycke till AI-stöd",
2369
+ "title": "Samtycke till AI-stöd",
2370
2370
  "description": {
2371
- "granted": "AI assistance is enabled for this record.",
2372
- "required": "AI assistance requires recorded consent before it can run."
2371
+ "granted": "AI-stöd är aktiverat för denna journal.",
2372
+ "required": "AI-stöd kräver registrerat samtycke innan det kan köras."
2373
2373
  },
2374
2374
  "badge": {
2375
- "granted": "Consent granted"
2375
+ "granted": "Samtycke lämnat"
2376
2376
  },
2377
- "grantedAtPrefix": "Granted",
2378
- "grantedBy": "By {{name}}",
2379
- "pendingLabel": "Saving consent…",
2380
- "confirmLabel": "I confirm consent has been obtained for AI assistance.",
2381
- "grantButton": "Grant consent",
2382
- "notAllowed": "You do not have permission to grant AI assistance consent."
2377
+ "grantedAtPrefix": "Lämnat",
2378
+ "grantedBy": "Av {{name}}",
2379
+ "pendingLabel": "Sparar samtycke…",
2380
+ "confirmLabel": "Jag bekräftar att samtycke till AI-stöd har inhämtats.",
2381
+ "grantButton": "Lämna samtycke",
2382
+ "notAllowed": "Du har inte behörighet att lämna samtycke till AI-stöd."
2383
2383
  },
2384
2384
  "paymentCard": {
2385
2385
  "regionLabel": "Payment {{number}}",
@@ -2874,7 +2874,9 @@
2874
2874
  "listening": "Lyssnar…",
2875
2875
  "dictationError": "Dikteringen misslyckades. Försök igen.",
2876
2876
  "proofread": "Kontrollera stavning och grammatik",
2877
- "autoFormat": "Formatera dokumentet automatiskt"
2877
+ "autoFormat": "Formatera dokumentet automatiskt",
2878
+ "consentRecorded": "Samtycke till AI-stöd har registrerats.",
2879
+ "consentRegionLabel": "Samtycke till AI-stöd för detta dokument"
2878
2880
  }
2879
2881
  },
2880
2882
  "payment": {
@@ -2365,21 +2365,21 @@
2365
2365
  "openNote": "Notu aç · {{date}}"
2366
2366
  },
2367
2367
  "aiConsentBanner": {
2368
- "regionLabel": "AI assistance consent",
2369
- "title": "AI assistance consent",
2368
+ "regionLabel": "Yapay zeka desteği izni",
2369
+ "title": "Yapay zeka desteği izni",
2370
2370
  "description": {
2371
- "granted": "AI assistance is enabled for this record.",
2372
- "required": "AI assistance requires recorded consent before it can run."
2371
+ "granted": "Bu kayıt için yapay zeka desteği etkin.",
2372
+ "required": "Yapay zeka desteğinin çalışabilmesi için önce kayıtlı izin gerekir."
2373
2373
  },
2374
2374
  "badge": {
2375
- "granted": "Consent granted"
2375
+ "granted": "İzin verildi"
2376
2376
  },
2377
- "grantedAtPrefix": "Granted",
2378
- "grantedBy": "By {{name}}",
2379
- "pendingLabel": "Saving consent…",
2380
- "confirmLabel": "I confirm consent has been obtained for AI assistance.",
2381
- "grantButton": "Grant consent",
2382
- "notAllowed": "You do not have permission to grant AI assistance consent."
2377
+ "grantedAtPrefix": "Verildi",
2378
+ "grantedBy": "{{name}} tarafından",
2379
+ "pendingLabel": "İzin kaydediliyor…",
2380
+ "confirmLabel": "Yapay zeka desteği için iznin alındığını onaylıyorum.",
2381
+ "grantButton": "İzin ver",
2382
+ "notAllowed": "Yapay zeka desteği için izin verme yetkiniz yok."
2383
2383
  },
2384
2384
  "paymentCard": {
2385
2385
  "regionLabel": "Payment {{number}}",
@@ -2874,7 +2874,9 @@
2874
2874
  "listening": "Dinleniyor…",
2875
2875
  "dictationError": "Dikte başarısız. Lütfen tekrar deneyin.",
2876
2876
  "proofread": "Yazımı ve dil bilgisini denetle",
2877
- "autoFormat": "Belgeyi otomatik biçimlendir"
2877
+ "autoFormat": "Belgeyi otomatik biçimlendir",
2878
+ "consentRecorded": "Yapay zeka desteği izni kaydedildi.",
2879
+ "consentRegionLabel": "Bu belge için yapay zeka desteği izni"
2878
2880
  }
2879
2881
  },
2880
2882
  "payment": {
@@ -2365,21 +2365,21 @@
2365
2365
  "openNote": "打开笔记 · {{date}}"
2366
2366
  },
2367
2367
  "aiConsentBanner": {
2368
- "regionLabel": "AI assistance consent",
2369
- "title": "AI assistance consent",
2368
+ "regionLabel": "AI 辅助同意",
2369
+ "title": "AI 辅助同意",
2370
2370
  "description": {
2371
- "granted": "AI assistance is enabled for this record.",
2372
- "required": "AI assistance requires recorded consent before it can run."
2371
+ "granted": "此记录已启用 AI 辅助。",
2372
+ "required": "AI 辅助需要已记录的同意才能运行。"
2373
2373
  },
2374
2374
  "badge": {
2375
- "granted": "Consent granted"
2375
+ "granted": "已同意"
2376
2376
  },
2377
- "grantedAtPrefix": "Granted",
2378
- "grantedBy": "By {{name}}",
2379
- "pendingLabel": "Saving consent…",
2380
- "confirmLabel": "I confirm consent has been obtained for AI assistance.",
2381
- "grantButton": "Grant consent",
2382
- "notAllowed": "You do not have permission to grant AI assistance consent."
2377
+ "grantedAtPrefix": "已同意",
2378
+ "grantedBy": "由 {{name}}",
2379
+ "pendingLabel": "正在保存同意…",
2380
+ "confirmLabel": "我确认已获得 AI 辅助的同意。",
2381
+ "grantButton": "给予同意",
2382
+ "notAllowed": "您没有授予 AI 辅助同意的权限。"
2383
2383
  },
2384
2384
  "paymentCard": {
2385
2385
  "regionLabel": "Payment {{number}}",
@@ -2874,7 +2874,9 @@
2874
2874
  "listening": "聆听中……",
2875
2875
  "dictationError": "语音输入失败,请重试。",
2876
2876
  "proofread": "检查拼写和语法",
2877
- "autoFormat": "自动格式化文档"
2877
+ "autoFormat": "自动格式化文档",
2878
+ "consentRecorded": "AI 辅助同意已记录。",
2879
+ "consentRegionLabel": "此文档的 AI 辅助同意"
2878
2880
  }
2879
2881
  },
2880
2882
  "payment": {
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import type { CalendarEventStatus } from '../../components/calendar';
14
14
  import type { Dispatch, SetStateAction } from 'react';
15
- import type { NotesPanelNote, NotesPanelProps, NotesPanelSubmission } from '../../components/notes-panel';
15
+ import type { NotesPanelNote, NotesPanelProps, NotesPanelSubmission, AiConsentGate } from '../../components/notes-panel';
16
16
  import type { AvailabilityContext, BacklogFilter, BacklogItem, CalendarFreeSlot, CalendarRow, DisplaySettings, DraftSlot, EditorDraft, EditorPrefill, FindSlotsSeed, HistoryInput, RailFocus, SlotPatch, WaitingEntryDraft } from './calendar.model';
17
17
  import type { DeleteOptions, EditorDraftExtras, RecurringScope } from './calendar-workspace.model';
18
18
  import type { CalendarHistoryEntry, CalendarSignChannel, CalendarWaitingEntry } from './calendar.types';
@@ -160,5 +160,13 @@ export interface CalendarJourney {
160
160
  * offered — the kit transcribes nothing.
161
161
  */
162
162
  dictateNote?: NotesPanelProps['onDictate'];
163
+ /**
164
+ * The patient's recorded AI-consent state for the notes composer, read
165
+ * per patient as the details panel opens them. Omit it and the composer
166
+ * is ungated (today's behaviour) — the platform wires this to the
167
+ * patient's `PatientAiConsent` record and the
168
+ * `ic_internal_api_post_patient_ai_consent` grant route.
169
+ */
170
+ noteAiConsentFor?: (patientId: string) => AiConsentGate | undefined;
163
171
  }
164
172
  //# sourceMappingURL=calendar.journey.d.ts.map
@@ -25,7 +25,7 @@ import { type ReactNode } from 'react';
25
25
  import type { CalendarEditorCapabilities } from './calendar.model';
26
26
  import type { CalendarEditorSeries } from './calendar-editor-hydration';
27
27
  import { type CalendarEvent, type CalendarResource } from '../../components/calendar';
28
- import { type NotesPanelNote, type NotesPanelProps, type NotesPanelSubmission } from '../../components/notes-panel';
28
+ import { type NotesPanelNote, type NotesPanelProps, type NotesPanelSubmission, type AiConsentGate } from '../../components/notes-panel';
29
29
  import { type ColorAssociation, type CalendarCarePlan, type CalendarAnamnesisAnswer, type CalendarOperatorGroup, type CalendarPatient, type CalendarWaitingEntry, type CalendarHistoryEntry, type CalendarSignChannel, type PatientRef } from './calendar.types';
30
30
  import { type CalendarData } from './calendar.data';
31
31
  import { type CalendarRow, type DisplaySettings, type EditorPrefill, type EditorDraft, type DraftSlot, type SlotPatch, type BacklogFilter, type BacklogItem, type WaitingEntryDraft, type CalendarFreeSlot, type PrintDaySection, type FindSlotsSeed, type AvailabilityContext } from './calendar.model';
@@ -77,6 +77,11 @@ export interface PatientNotesSeam {
77
77
  onRequestAiDraft?: NotesPanelProps['onRequestAiDraft'];
78
78
  /** The host's live transcription. Omitted → no microphone. */
79
79
  onDictate?: NotesPanelProps['onDictate'];
80
+ /**
81
+ * The patient's recorded AI-consent state, gating Help-me-write and both
82
+ * mics. Omitted → today's ungated behaviour (matches `NotesPanel`).
83
+ */
84
+ aiConsent?: AiConsentGate;
80
85
  /** The host's read. Absent while `onLoad` is present reads as loading. */
81
86
  status?: 'loading' | 'ready' | 'error';
82
87
  total?: number | null;
@@ -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-B-fUbm62.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-SN23GsXX.js";
2
2
  export {
3
3
  s as CALENDAR_PREFERENCE_KEYS,
4
4
  r as CalendarDataProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.39.0",
3
+ "version": "1.40.0",
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",