@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.
- package/dist/_chunks/ai-credits-exhausted-notice-DfAgfZDF.js +287 -0
- package/dist/_chunks/ai-credits-exhausted-notice.agent-DgTSTgez.js +43 -0
- package/dist/_chunks/ai-credits-notice-DQ-r3iQU.js +191 -0
- package/dist/_chunks/{ai-permission-notice-DpRmZ9Q3.js → ai-permission-notice-qsdm4Sx4.js} +2 -2
- package/dist/_chunks/{alert-DdDpOi-P.js → alert-DjsJMGRE.js} +3 -2
- package/dist/_chunks/{anamnesis-summary-rows-BIfw890v.js → anamnesis-summary-rows-BQ_EokKz.js} +2 -2
- package/dist/_chunks/{audio-recorder-DR-u1qbl.js → audio-recorder-B11RR-rC.js} +2 -2
- package/dist/_chunks/{auth-form-parts-Cmb41LSQ.js → auth-form-parts-DwUTH6YN.js} +2 -2
- package/dist/_chunks/{booking-DkjatiXc.js → booking-tTVxKPQY.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Cp8yTZ1g.js → calendar-workspace-MRrzcxAy.js} +6 -6
- package/dist/_chunks/{document-preview-B1dQm292.js → document-preview-VyQOjFVL.js} +2 -2
- package/dist/_chunks/{document-scanner-CVPVLK7z.js → document-scanner-CXH_GYh4.js} +2 -2
- package/dist/_chunks/{entity-summary-BQ9_KA8S.js → entity-summary-Bj-Wxq7Y.js} +2 -2
- package/dist/_chunks/{error-summary-DrUfuKu1.js → error-summary-PUE5Zxp9.js} +2 -2
- package/dist/_chunks/{forgot-password-form-CgZkEvZy.js → forgot-password-form-CPOfRE0C.js} +4 -4
- package/dist/_chunks/{freemium-paywall-DKJHRFpp.js → freemium-paywall-6DO7noHX.js} +2 -2
- package/dist/_chunks/help-me-write-templates-Bw3Q58x-.js +687 -0
- package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
- package/dist/_chunks/{login-dev-card-PnADNcI9.js → login-dev-card-A-CL3mjt.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C-2e4eCD.js → marketplace-app-shell-DtSX8sYb.js} +2 -2
- package/dist/_chunks/{notes-panel-uEGIL7mi.js → notes-panel-IdsmqRFC.js} +3 -3
- package/dist/_chunks/{patient-details-4P1vA9Ls.js → patient-details-C-EWQTms.js} +2 -2
- package/dist/_chunks/{patient-field-row-CBXhlfGD.js → patient-field-row-lY-Tb5Mo.js} +155 -176
- package/dist/_chunks/{patient-search-DOnDUVsl.js → patient-search-DpAKidZ5.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CuDLo8MP.js → patient-summary-card-Bpto_VCD.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-C8MEu0t6.js → payment-automation-upsell-BQ307qEX.js} +2 -2
- package/dist/_chunks/{payment-form-C3dGY7v4.js → payment-form-XKtinW8r.js} +2 -2
- package/dist/_chunks/{pdf-viewer-DJ9VN7cu.js → pdf-viewer-BvoVMjH4.js} +2 -2
- package/dist/_chunks/{practice-results-8h2Utpt3.js → practice-results-BrUDDMXC.js} +2 -2
- package/dist/_chunks/{registration-form-BQyT_kBX.js → registration-form-BxwqUZzk.js} +3 -3
- package/dist/_chunks/{rich-text-editor-M2gT_E7f.js → rich-text-editor-aCIoptbg.js} +1653 -1743
- package/dist/_chunks/{sign-document-CY7xTXbm.js → sign-document-D1P1nUQA.js} +2 -2
- package/dist/_chunks/{signature-request-BMCHy2ZO.js → signature-request-3u6TvRt2.js} +2 -2
- package/dist/_chunks/{task-editor-CifOznfq.js → task-editor-Bb5MMcid.js} +2 -2
- package/dist/_chunks/{tasks-panel-8nLwBw6P.js → tasks-panel-BOb57Ysw.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-B-FEWbQM.js → use-appointment-details-read-CVSPoP5j.js} +4 -4
- package/dist/_chunks/voice-control-panel-BJIEbDq6.js +1148 -0
- package/dist/_chunks/{warning-stack-HYWAytZV.js → warning-stack-BdY-0bd3.js} +2 -2
- package/dist/_chunks/{workflow-map-C2B2qIr1.js → workflow-map-CYbRD9ek.js} +2 -2
- package/dist/agent-catalog.json +50 -3
- package/dist/agent-i18n/en.json +7 -4
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.agent.d.ts +4 -0
- package/dist/components/ai-credits-notice/ai-credits-exhausted-notice.d.ts +96 -0
- package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +30 -4
- package/dist/components/ai-credits-notice/index.d.ts +3 -0
- package/dist/components/ai-credits-notice/index.js +10 -4
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/voice-control-panel/index.d.ts +2 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/voice-control-panel/voice-control-panel.d.ts +43 -3
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +27 -12
- package/dist/i18n/locales/ar.js +27 -12
- package/dist/i18n/locales/de.d.ts +27 -12
- package/dist/i18n/locales/de.js +27 -12
- package/dist/i18n/locales/el.d.ts +27 -12
- package/dist/i18n/locales/el.js +27 -12
- package/dist/i18n/locales/en.d.ts +27 -12
- package/dist/i18n/locales/en.js +27 -12
- package/dist/i18n/locales/es.d.ts +27 -12
- package/dist/i18n/locales/es.js +27 -12
- package/dist/i18n/locales/fr.d.ts +27 -12
- package/dist/i18n/locales/fr.js +27 -12
- package/dist/i18n/locales/hi.d.ts +27 -12
- package/dist/i18n/locales/hi.js +27 -12
- package/dist/i18n/locales/it.d.ts +27 -12
- package/dist/i18n/locales/it.js +27 -12
- package/dist/i18n/locales/ja.d.ts +27 -12
- package/dist/i18n/locales/ja.js +27 -12
- package/dist/i18n/locales/nl.d.ts +27 -12
- package/dist/i18n/locales/nl.js +27 -12
- package/dist/i18n/locales/pl.d.ts +27 -12
- package/dist/i18n/locales/pl.js +27 -12
- package/dist/i18n/locales/pt.d.ts +27 -12
- package/dist/i18n/locales/pt.js +27 -12
- package/dist/i18n/locales/ro.d.ts +27 -12
- package/dist/i18n/locales/ro.js +27 -12
- package/dist/i18n/locales/ru.d.ts +27 -12
- package/dist/i18n/locales/ru.js +27 -12
- package/dist/i18n/locales/sq.d.ts +27 -12
- package/dist/i18n/locales/sq.js +27 -12
- package/dist/i18n/locales/sv.d.ts +27 -12
- package/dist/i18n/locales/sv.js +27 -12
- package/dist/i18n/locales/tr.d.ts +27 -12
- package/dist/i18n/locales/tr.js +27 -12
- package/dist/i18n/locales/zh.d.ts +27 -12
- package/dist/i18n/locales/zh.js +27 -12
- package/dist/index.js +814 -809
- package/dist/locales/ar.json +27 -12
- package/dist/locales/de.json +27 -12
- package/dist/locales/el.json +27 -12
- package/dist/locales/en.json +27 -12
- package/dist/locales/es.json +27 -12
- package/dist/locales/fr.json +27 -12
- package/dist/locales/hi.json +27 -12
- package/dist/locales/it.json +27 -12
- package/dist/locales/ja.json +27 -12
- package/dist/locales/nl.json +27 -12
- package/dist/locales/pl.json +27 -12
- package/dist/locales/pt.json +27 -12
- package/dist/locales/ro.json +27 -12
- package/dist/locales/ru.json +27 -12
- package/dist/locales/sq.json +27 -12
- package/dist/locales/sv.json +27 -12
- package/dist/locales/tr.json +27 -12
- package/dist/locales/zh.json +27 -12
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +6 -23
- package/dist/patterns/help-me-write-templates/index.js +8 -7
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-credits-notice-pK9BOmEz.js +0 -90
- package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +0 -17
- package/dist/_chunks/help-me-write-templates-DFmqnsAa.js +0 -747
- 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
|
|
19
|
-
* an AI call rejects with `AiCreditsExhaustedError`, from the bar or the
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|