@alfadocs/ui-kit 1.66.0 → 1.67.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 (143) hide show
  1. package/dist/_chunks/ai-credits-exhausted-notice-DfAgfZDF.js +287 -0
  2. package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
  3. package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
  4. package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-qsdm4Sx4.js} +2 -2
  5. package/dist/_chunks/{alert-DdDpOi-P.js → alert-DjsJMGRE.js} +3 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-BQ_EokKz.js} +2 -2
  7. package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-B11RR-rC.js} +2 -2
  8. package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-DwUTH6YN.js} +2 -2
  9. package/dist/_chunks/{booking-DkjatiXc.js → booking-tTVxKPQY.js} +2 -2
  10. package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-MRrzcxAy.js} +6 -6
  11. package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-VyQOjFVL.js} +2 -2
  12. package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-CXH_GYh4.js} +2 -2
  13. package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-Bj-Wxq7Y.js} +2 -2
  14. package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-PUE5Zxp9.js} +2 -2
  15. package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-CPOfRE0C.js} +4 -4
  16. package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-6DO7noHX.js} +2 -2
  17. package/dist/_chunks/help-me-write-templates-Bw3Q58x-.js +687 -0
  18. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  19. package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-A-CL3mjt.js} +3 -3
  20. package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-DtSX8sYb.js} +2 -2
  21. package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-IdsmqRFC.js} +3 -3
  22. package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C-EWQTms.js} +2 -2
  23. package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-lY-Tb5Mo.js} +155 -176
  24. package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-DpAKidZ5.js} +2 -2
  25. package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-Bpto_VCD.js} +2 -2
  26. package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-BQ307qEX.js} +2 -2
  27. package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-XKtinW8r.js} +2 -2
  28. package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-BvoVMjH4.js} +2 -2
  29. package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BrUDDMXC.js} +2 -2
  30. package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-BxwqUZzk.js} +3 -3
  31. package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-aCIoptbg.js} +1653 -1743
  32. package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-D1P1nUQA.js} +2 -2
  33. package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-3u6TvRt2.js} +2 -2
  34. package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-Bb5MMcid.js} +2 -2
  35. package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-BOb57Ysw.js} +2 -2
  36. package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CVSPoP5j.js} +4 -4
  37. package/dist/_chunks/voice-control-panel-BJIEbDq6.js +1148 -0
  38. package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BdY-0bd3.js} +2 -2
  39. package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-CYbRD9ek.js} +2 -2
  40. package/dist/agent-catalog.json +50 -3
  41. package/dist/agent-i18n/en.json +7 -4
  42. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
  43. package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
  44. package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
  45. package/dist/components/ai-credits-notice/index.d.ts +3 -0
  46. package/dist/components/ai-credits-notice/index.js +10 -4
  47. package/dist/components/ai-permission-notice/index.js +1 -1
  48. package/dist/components/alert/index.js +1 -1
  49. package/dist/components/appointment-details-panel/index.js +1 -1
  50. package/dist/components/audio-recorder/index.js +1 -1
  51. package/dist/components/booking/index.js +1 -1
  52. package/dist/components/document-preview/index.js +1 -1
  53. package/dist/components/document-scanner/index.js +1 -1
  54. package/dist/components/entity-summary/index.js +1 -1
  55. package/dist/components/error-summary/index.js +1 -1
  56. package/dist/components/freemium-paywall/index.js +1 -1
  57. package/dist/components/notes-panel/index.js +1 -1
  58. package/dist/components/patient-details/index.js +1 -1
  59. package/dist/components/patient-search/index.js +1 -1
  60. package/dist/components/patient-summary-card/index.js +1 -1
  61. package/dist/components/payment-form/index.js +1 -1
  62. package/dist/components/pdf-viewer/index.js +1 -1
  63. package/dist/components/practice-results/index.js +1 -1
  64. package/dist/components/rich-text-editor/index.js +1 -1
  65. package/dist/components/sign-document/index.js +1 -1
  66. package/dist/components/task-editor/index.js +1 -1
  67. package/dist/components/tasks-panel/index.js +1 -1
  68. package/dist/components/voice-control-panel/index.d.ts +2 -1
  69. package/dist/components/voice-control-panel/index.js +1 -1
  70. package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
  71. package/dist/components/warning-stack/index.js +1 -1
  72. package/dist/components/workflow/index.js +1 -1
  73. package/dist/i18n/locales/ar.d.ts +27 -12
  74. package/dist/i18n/locales/ar.js +27 -12
  75. package/dist/i18n/locales/de.d.ts +27 -12
  76. package/dist/i18n/locales/de.js +27 -12
  77. package/dist/i18n/locales/el.d.ts +27 -12
  78. package/dist/i18n/locales/el.js +27 -12
  79. package/dist/i18n/locales/en.d.ts +27 -12
  80. package/dist/i18n/locales/en.js +27 -12
  81. package/dist/i18n/locales/es.d.ts +27 -12
  82. package/dist/i18n/locales/es.js +27 -12
  83. package/dist/i18n/locales/fr.d.ts +27 -12
  84. package/dist/i18n/locales/fr.js +27 -12
  85. package/dist/i18n/locales/hi.d.ts +27 -12
  86. package/dist/i18n/locales/hi.js +27 -12
  87. package/dist/i18n/locales/it.d.ts +27 -12
  88. package/dist/i18n/locales/it.js +27 -12
  89. package/dist/i18n/locales/ja.d.ts +27 -12
  90. package/dist/i18n/locales/ja.js +27 -12
  91. package/dist/i18n/locales/nl.d.ts +27 -12
  92. package/dist/i18n/locales/nl.js +27 -12
  93. package/dist/i18n/locales/pl.d.ts +27 -12
  94. package/dist/i18n/locales/pl.js +27 -12
  95. package/dist/i18n/locales/pt.d.ts +27 -12
  96. package/dist/i18n/locales/pt.js +27 -12
  97. package/dist/i18n/locales/ro.d.ts +27 -12
  98. package/dist/i18n/locales/ro.js +27 -12
  99. package/dist/i18n/locales/ru.d.ts +27 -12
  100. package/dist/i18n/locales/ru.js +27 -12
  101. package/dist/i18n/locales/sq.d.ts +27 -12
  102. package/dist/i18n/locales/sq.js +27 -12
  103. package/dist/i18n/locales/sv.d.ts +27 -12
  104. package/dist/i18n/locales/sv.js +27 -12
  105. package/dist/i18n/locales/tr.d.ts +27 -12
  106. package/dist/i18n/locales/tr.js +27 -12
  107. package/dist/i18n/locales/zh.d.ts +27 -12
  108. package/dist/i18n/locales/zh.js +27 -12
  109. package/dist/index.js +814 -809
  110. package/dist/locales/ar.json +27 -12
  111. package/dist/locales/de.json +27 -12
  112. package/dist/locales/el.json +27 -12
  113. package/dist/locales/en.json +27 -12
  114. package/dist/locales/es.json +27 -12
  115. package/dist/locales/fr.json +27 -12
  116. package/dist/locales/hi.json +27 -12
  117. package/dist/locales/it.json +27 -12
  118. package/dist/locales/ja.json +27 -12
  119. package/dist/locales/nl.json +27 -12
  120. package/dist/locales/pl.json +27 -12
  121. package/dist/locales/pt.json +27 -12
  122. package/dist/locales/ro.json +27 -12
  123. package/dist/locales/ru.json +27 -12
  124. package/dist/locales/sq.json +27 -12
  125. package/dist/locales/sv.json +27 -12
  126. package/dist/locales/tr.json +27 -12
  127. package/dist/locales/zh.json +27 -12
  128. package/dist/patterns/anamnesis/index.js +1 -1
  129. package/dist/patterns/calendar/index.js +1 -1
  130. package/dist/patterns/forgot-password-form/index.js +1 -1
  131. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
  132. package/dist/patterns/help-me-write-templates/index.js +8 -7
  133. package/dist/patterns/login-form/index.js +1 -1
  134. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  135. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  136. package/dist/patterns/registration-form/index.js +1 -1
  137. package/dist/patterns/signature-request/index.js +1 -1
  138. package/dist/tokens.css +1 -1
  139. package/package.json +1 -1
  140. package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
  141. package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
  142. package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
  143. package/dist/_chunks/voice-control-panel-C0BfY23Y.js +0 -1009
@@ -15,8 +15,10 @@
15
15
  * a free prompt with an optional mic, the draft and Insert.
16
16
  * - `AiTemplateManager` — the dialog to list, create, edit, delete and
17
17
  * reorder templates.
18
- * - `AiCreditsExhaustedNotice` — the out-of-credits state the bar shows when
19
- * an AI call rejects with `AiCreditsExhaustedError`, from the bar or the pill.
18
+ * - `AiCreditsExhaustedNotice`: the out-of-credits state the bar shows when
19
+ * an AI call rejects with `AiCreditsExhaustedError`, from the bar or the
20
+ * pill. It lives in `src/components/ai-credits-notice/` (shared with
21
+ * VoiceControlPanel) and is re-exported here, with `AiCreditsInfo`.
20
22
  * - `HelpMeWriteUndoNotice` — the success notice with Undo after a template
21
23
  * rewrote the note.
22
24
  *
@@ -24,6 +26,7 @@
24
26
  * never talks to a backend.
25
27
  */
26
28
  import { type ReactNode } from 'react';
29
+ import { type AiCreditsInfo } from '../../components/ai-credits-notice';
27
30
  import type { HelpMeWriteRenderContext, RichTextEditorAiApplied, RichTextEditorAiTemplates, RichTextEditorProps } from '../../components/rich-text-editor';
28
31
  /** A practice-shared AI template. */
29
32
  export interface AiTemplate {
@@ -67,20 +70,7 @@ export interface HelpMeWriteRequest {
67
70
  export declare class AiCreditsExhaustedError extends Error {
68
71
  constructor(message?: string);
69
72
  }
70
- /** The practice's allowance, for the out-of-credits notice. All optional. */
71
- export interface AiCreditsInfo {
72
- remaining?: number;
73
- limit?: number;
74
- /** When the monthly allowance returns. */
75
- resetsOn?: Date;
76
- /**
77
- * Shows a "Buy AI credits" button and "add credits" wording. Omit while
78
- * credits cannot be bought: the notice then only says when AI returns.
79
- */
80
- onBuyCredits?: () => void;
81
- /** Shows a "See what each action costs" link. */
82
- onSeeCosts?: () => void;
83
- }
73
+ export { AiCreditsExhaustedNotice, type AiCreditsExhaustedNoticeProps, type AiCreditsInfo, } from '../../components/ai-credits-notice';
84
74
  export type HelpMeWriteApplyMode = 'replace' | 'below' | 'insert';
85
75
  /** Fired after a draft lands in the editor. */
86
76
  export interface HelpMeWriteApplied {
@@ -91,13 +81,6 @@ export interface HelpMeWriteApplied {
91
81
  /** Puts `previousHtml` back in the editor (what Undo does). */
92
82
  undo: () => void;
93
83
  }
94
- export interface AiCreditsExhaustedNoticeProps {
95
- credits?: AiCreditsInfo;
96
- /** Shows a Back button (the bar uses it to return to the prompt). */
97
- onBack?: () => void;
98
- }
99
- /** The out-of-credits state: what happened, the allowance, and the ways on. */
100
- export declare function AiCreditsExhaustedNotice({ credits, onBack, }: AiCreditsExhaustedNoticeProps): React.JSX.Element;
101
84
  export interface HelpMeWriteTemplatesBarProps {
102
85
  /** What `RichTextEditor`'s `renderHelpMeWrite` hands its host. */
103
86
  context: HelpMeWriteRenderContext;
@@ -1,10 +1,11 @@
1
- import { A as s, a as t, b as r, H as i, c as p, u as l } from "../../_chunks/help-me-write-templates-DFmqnsAa.js";
1
+ import { A as r, a as t, H as s, b as i, u as o } from "../../_chunks/help-me-write-templates-Bw3Q58x-.js";
2
+ import { A as l } from "../../_chunks/ai-credits-exhausted-notice-DfAgfZDF.js";
2
3
  export {
3
- s as AiCreditsExhaustedError,
4
- t as AiCreditsExhaustedNotice,
5
- r as AiTemplateManager,
6
- i as HelpMeWriteTemplatesBar,
7
- p as HelpMeWriteUndoNotice,
8
- l as useHelpMeWriteTemplates
4
+ r as AiCreditsExhaustedError,
5
+ l as AiCreditsExhaustedNotice,
6
+ t as AiTemplateManager,
7
+ s as HelpMeWriteTemplatesBar,
8
+ i as HelpMeWriteUndoNotice,
9
+ o as useHelpMeWriteTemplates
9
10
  };
10
11
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { L, a as r, b as s } from "../../_chunks/login-dev-card-PnADNcI9.js";
1
+ import { L, a as r, b as s } from "../../_chunks/login-dev-card-A-CL3mjt.js";
2
2
  export {
3
3
  L as LOGIN_FORM_FIELDS,
4
4
  r as LoginDevCard,
@@ -1,4 +1,4 @@
1
- import { C as l, M as o } from "../../_chunks/marketplace-app-shell-C-2e4eCD.js";
1
+ import { C as l, M as o } from "../../_chunks/marketplace-app-shell-DtSX8sYb.js";
2
2
  export {
3
3
  l as ConnectWithAlfadocs,
4
4
  o as MarketplaceAppShell
@@ -1,4 +1,4 @@
1
- import { P as a } from "../../_chunks/payment-automation-upsell-C8MEu0t6.js";
1
+ import { P as a } from "../../_chunks/payment-automation-upsell-BQ307qEX.js";
2
2
  export {
3
3
  a as PaymentAutomationUpsell
4
4
  };
@@ -1,4 +1,4 @@
1
- import { R as o, a as r } from "../../_chunks/registration-form-BQyT_kBX.js";
1
+ import { R as o, a as r } from "../../_chunks/registration-form-BxwqUZzk.js";
2
2
  export {
3
3
  o as REGISTRATION_FORM_FIELDS,
4
4
  r as RegistrationForm
@@ -1,4 +1,4 @@
1
- import { S as o } from "../../_chunks/signature-request-BMCHy2ZO.js";
1
+ import { S as o } from "../../_chunks/signature-request-3u6TvRt2.js";
2
2
  export {
3
3
  o as SignatureRequestModal
4
4
  };