@alfadocs/ui-kit-debug 1.40.0 → 1.41.1

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 (173) hide show
  1. package/dist/_chunks/arrow-left-BfaGqVam.js +15 -0
  2. package/dist/_chunks/arrow-left-BfaGqVam.js.map +1 -0
  3. package/dist/_chunks/{calendar-workspace-SN23GsXX.js → calendar-workspace-Bx8xxvic.js} +18 -17
  4. package/dist/_chunks/{calendar-workspace-SN23GsXX.js.map → calendar-workspace-Bx8xxvic.js.map} +1 -1
  5. package/dist/_chunks/{contact-profile-card-Zt6WNg1u.js → contact-profile-card-C0WpwpVV.js} +38 -33
  6. package/dist/_chunks/contact-profile-card-C0WpwpVV.js.map +1 -0
  7. package/dist/_chunks/editor-overlay-DwNKaI22.js +93 -0
  8. package/dist/_chunks/editor-overlay-DwNKaI22.js.map +1 -0
  9. package/dist/_chunks/format-price-DAbh61Lz.js +51 -0
  10. package/dist/_chunks/format-price-DAbh61Lz.js.map +1 -0
  11. package/dist/_chunks/help-me-write-templates-B-m7zgJa.js +775 -0
  12. package/dist/_chunks/help-me-write-templates-B-m7zgJa.js.map +1 -0
  13. package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js → marketplace-app-shell-D_g9BaDI.js} +2 -2
  14. package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js.map → marketplace-app-shell-D_g9BaDI.js.map} +1 -1
  15. package/dist/_chunks/{money-BY-HmKhZ.js → money-BXLBIRVO.js} +2 -2
  16. package/dist/_chunks/{money-BY-HmKhZ.js.map → money-BXLBIRVO.js.map} +1 -1
  17. package/dist/_chunks/{notes-panel-CmTqIWlS.js → notes-panel-Daq5T_cS.js} +2 -2
  18. package/dist/_chunks/{notes-panel-CmTqIWlS.js.map → notes-panel-Daq5T_cS.js.map} +1 -1
  19. package/dist/_chunks/{panel-subview-Cc2Wtt7D.js → panel-subview-PMBRPFOa.js} +49 -59
  20. package/dist/_chunks/panel-subview-PMBRPFOa.js.map +1 -0
  21. package/dist/_chunks/{practice-results-D_jjzwgf.js → practice-results-D11Zpt27.js} +50 -45
  22. package/dist/_chunks/practice-results-D11Zpt27.js.map +1 -0
  23. package/dist/_chunks/rich-text-editor-DUMeifwc.js +3176 -0
  24. package/dist/_chunks/rich-text-editor-DUMeifwc.js.map +1 -0
  25. package/dist/_chunks/{sidebar-C-Gr2LL-.js → sidebar-ClTY9lLI.js} +160 -169
  26. package/dist/_chunks/sidebar-ClTY9lLI.js.map +1 -0
  27. package/dist/_chunks/{treatment-receipt-dUm99mdn.js → treatment-receipt-DU0OewqH.js} +2 -2
  28. package/dist/_chunks/{treatment-receipt-dUm99mdn.js.map → treatment-receipt-DU0OewqH.js.map} +1 -1
  29. package/dist/_chunks/trending-up-C_luYBzS.js +15 -0
  30. package/dist/_chunks/trending-up-C_luYBzS.js.map +1 -0
  31. package/dist/_chunks/wand-sparkles-DAjKyhz7.js +27 -0
  32. package/dist/_chunks/wand-sparkles-DAjKyhz7.js.map +1 -0
  33. package/dist/agent-catalog.json +87 -1
  34. package/dist/agent-i18n/en.json +7 -0
  35. package/dist/components/_shared/format-price.d.ts +6 -0
  36. package/dist/components/_shared/format-price.d.ts.map +1 -1
  37. package/dist/components/_shared/index.d.ts +1 -1
  38. package/dist/components/_shared/index.d.ts.map +1 -1
  39. package/dist/components/contact-profile-card/contact-profile-card.d.ts +2 -2
  40. package/dist/components/contact-profile-card/contact-profile-card.d.ts.map +1 -1
  41. package/dist/components/contact-profile-card/index.js +1 -1
  42. package/dist/components/editor-overlay/editor-overlay.d.ts.map +1 -1
  43. package/dist/components/editor-overlay/index.js +1 -1
  44. package/dist/components/index.d.ts +1 -0
  45. package/dist/components/index.d.ts.map +1 -1
  46. package/dist/components/money/index.js +1 -1
  47. package/dist/components/notes-panel/index.js +1 -1
  48. package/dist/components/panel-subview/index.js +1 -1
  49. package/dist/components/practice-results/index.js +1 -1
  50. package/dist/components/practice-results/practice-results.d.ts +2 -1
  51. package/dist/components/practice-results/practice-results.d.ts.map +1 -1
  52. package/dist/components/rich-text-editor/editor-toolbar.d.ts +6 -1
  53. package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
  54. package/dist/components/rich-text-editor/index.d.ts +1 -1
  55. package/dist/components/rich-text-editor/index.d.ts.map +1 -1
  56. package/dist/components/rich-text-editor/index.js +1 -1
  57. package/dist/components/rich-text-editor/rich-text-editor.d.ts +74 -0
  58. package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
  59. package/dist/components/sidebar/index.js +1 -1
  60. package/dist/components/treatment-receipt/index.js +1 -1
  61. package/dist/host-compat.css +13 -1
  62. package/dist/i18n/locales/ar.d.ts +80 -0
  63. package/dist/i18n/locales/ar.d.ts.map +1 -1
  64. package/dist/i18n/locales/ar.js +81 -1
  65. package/dist/i18n/locales/ar.js.map +1 -1
  66. package/dist/i18n/locales/de.d.ts +80 -0
  67. package/dist/i18n/locales/de.d.ts.map +1 -1
  68. package/dist/i18n/locales/de.js +81 -1
  69. package/dist/i18n/locales/de.js.map +1 -1
  70. package/dist/i18n/locales/el.d.ts +80 -0
  71. package/dist/i18n/locales/el.d.ts.map +1 -1
  72. package/dist/i18n/locales/el.js +81 -1
  73. package/dist/i18n/locales/el.js.map +1 -1
  74. package/dist/i18n/locales/en.d.ts +80 -0
  75. package/dist/i18n/locales/en.d.ts.map +1 -1
  76. package/dist/i18n/locales/en.js +81 -1
  77. package/dist/i18n/locales/en.js.map +1 -1
  78. package/dist/i18n/locales/es.d.ts +80 -0
  79. package/dist/i18n/locales/es.d.ts.map +1 -1
  80. package/dist/i18n/locales/es.js +81 -1
  81. package/dist/i18n/locales/es.js.map +1 -1
  82. package/dist/i18n/locales/fr.d.ts +80 -0
  83. package/dist/i18n/locales/fr.d.ts.map +1 -1
  84. package/dist/i18n/locales/fr.js +81 -1
  85. package/dist/i18n/locales/fr.js.map +1 -1
  86. package/dist/i18n/locales/hi.d.ts +80 -0
  87. package/dist/i18n/locales/hi.d.ts.map +1 -1
  88. package/dist/i18n/locales/hi.js +81 -1
  89. package/dist/i18n/locales/hi.js.map +1 -1
  90. package/dist/i18n/locales/it.d.ts +80 -0
  91. package/dist/i18n/locales/it.d.ts.map +1 -1
  92. package/dist/i18n/locales/it.js +81 -1
  93. package/dist/i18n/locales/it.js.map +1 -1
  94. package/dist/i18n/locales/ja.d.ts +80 -0
  95. package/dist/i18n/locales/ja.d.ts.map +1 -1
  96. package/dist/i18n/locales/ja.js +81 -1
  97. package/dist/i18n/locales/ja.js.map +1 -1
  98. package/dist/i18n/locales/nl.d.ts +80 -0
  99. package/dist/i18n/locales/nl.d.ts.map +1 -1
  100. package/dist/i18n/locales/nl.js +81 -1
  101. package/dist/i18n/locales/nl.js.map +1 -1
  102. package/dist/i18n/locales/pl.d.ts +80 -0
  103. package/dist/i18n/locales/pl.d.ts.map +1 -1
  104. package/dist/i18n/locales/pl.js +81 -1
  105. package/dist/i18n/locales/pl.js.map +1 -1
  106. package/dist/i18n/locales/pt.d.ts +80 -0
  107. package/dist/i18n/locales/pt.d.ts.map +1 -1
  108. package/dist/i18n/locales/pt.js +81 -1
  109. package/dist/i18n/locales/pt.js.map +1 -1
  110. package/dist/i18n/locales/ro.d.ts +80 -0
  111. package/dist/i18n/locales/ro.d.ts.map +1 -1
  112. package/dist/i18n/locales/ro.js +81 -1
  113. package/dist/i18n/locales/ro.js.map +1 -1
  114. package/dist/i18n/locales/ru.d.ts +80 -0
  115. package/dist/i18n/locales/ru.d.ts.map +1 -1
  116. package/dist/i18n/locales/ru.js +81 -1
  117. package/dist/i18n/locales/ru.js.map +1 -1
  118. package/dist/i18n/locales/sq.d.ts +80 -0
  119. package/dist/i18n/locales/sq.d.ts.map +1 -1
  120. package/dist/i18n/locales/sq.js +81 -1
  121. package/dist/i18n/locales/sq.js.map +1 -1
  122. package/dist/i18n/locales/sv.d.ts +80 -0
  123. package/dist/i18n/locales/sv.d.ts.map +1 -1
  124. package/dist/i18n/locales/sv.js +81 -1
  125. package/dist/i18n/locales/sv.js.map +1 -1
  126. package/dist/i18n/locales/tr.d.ts +80 -0
  127. package/dist/i18n/locales/tr.d.ts.map +1 -1
  128. package/dist/i18n/locales/tr.js +81 -1
  129. package/dist/i18n/locales/tr.js.map +1 -1
  130. package/dist/i18n/locales/zh.d.ts +80 -0
  131. package/dist/i18n/locales/zh.d.ts.map +1 -1
  132. package/dist/i18n/locales/zh.js +81 -1
  133. package/dist/i18n/locales/zh.js.map +1 -1
  134. package/dist/index.js +141 -134
  135. package/dist/index.js.map +1 -1
  136. package/dist/locales/ar.json +81 -1
  137. package/dist/locales/de.json +81 -1
  138. package/dist/locales/el.json +81 -1
  139. package/dist/locales/en.json +81 -1
  140. package/dist/locales/es.json +81 -1
  141. package/dist/locales/fr.json +81 -1
  142. package/dist/locales/hi.json +81 -1
  143. package/dist/locales/it.json +81 -1
  144. package/dist/locales/ja.json +81 -1
  145. package/dist/locales/nl.json +81 -1
  146. package/dist/locales/pl.json +81 -1
  147. package/dist/locales/pt.json +81 -1
  148. package/dist/locales/ro.json +81 -1
  149. package/dist/locales/ru.json +81 -1
  150. package/dist/locales/sq.json +81 -1
  151. package/dist/locales/sv.json +81 -1
  152. package/dist/locales/tr.json +81 -1
  153. package/dist/locales/zh.json +81 -1
  154. package/dist/patterns/calendar/index.js +1 -1
  155. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +164 -0
  156. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts.map +1 -0
  157. package/dist/patterns/help-me-write-templates/index.d.ts +3 -0
  158. package/dist/patterns/help-me-write-templates/index.d.ts.map +1 -0
  159. package/dist/patterns/help-me-write-templates/index.js +10 -0
  160. package/dist/patterns/help-me-write-templates/index.js.map +1 -0
  161. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  162. package/dist/tokens.css +51 -42
  163. package/package.json +5 -1
  164. package/dist/_chunks/contact-profile-card-Zt6WNg1u.js.map +0 -1
  165. package/dist/_chunks/editor-overlay-9tcPXNWt.js +0 -89
  166. package/dist/_chunks/editor-overlay-9tcPXNWt.js.map +0 -1
  167. package/dist/_chunks/format-price-BkMEbeW3.js +0 -47
  168. package/dist/_chunks/format-price-BkMEbeW3.js.map +0 -1
  169. package/dist/_chunks/panel-subview-Cc2Wtt7D.js.map +0 -1
  170. package/dist/_chunks/practice-results-D_jjzwgf.js.map +0 -1
  171. package/dist/_chunks/rich-text-editor-BJ1-Lkao.js +0 -2719
  172. package/dist/_chunks/rich-text-editor-BJ1-Lkao.js.map +0 -1
  173. package/dist/_chunks/sidebar-C-Gr2LL-.js.map +0 -1
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Help me write templates (HTP-6383) — practice-shared AI templates inside the
3
+ * RichTextEditor's "Help me write".
4
+ *
5
+ * Runtime pattern: real consuming apps mount this in production (surfaced via
6
+ * `src/patterns/index.ts` and the `./patterns/help-me-write-templates`
7
+ * subpath). It plugs into the editor through `renderHelpMeWrite`, so the kit
8
+ * editor keeps its own AI pill, the patient AI-consent gate and the
9
+ * resume-after-grant; this pattern supplies the bar that opens from it.
10
+ *
11
+ * Parts, usable on their own or wired together by `useHelpMeWriteTemplates`:
12
+ * - `HelpMeWriteTemplatesBar` — the docked bar: free prompt with an optional
13
+ * mic, a Templates menu, a side-by-side compare, Replace / Insert below.
14
+ * - `AiTemplateManager` — the dialog to list, create, edit and delete
15
+ * templates and pick the default.
16
+ * - `AiCreditsExhaustedNotice` — the out-of-credits state the bar shows when
17
+ * `onGenerate` rejects with `AiCreditsExhaustedError`.
18
+ * - `HelpMeWriteUndoNotice` — the success notice with Undo after a template
19
+ * rewrote the note.
20
+ *
21
+ * The host owns the templates (list + persistence) and the AI call. The kit
22
+ * never talks to a backend.
23
+ */
24
+ import { type ReactNode } from 'react';
25
+ import type { HelpMeWriteRenderContext } from '../../components/rich-text-editor';
26
+ /** A practice-shared AI template. */
27
+ export interface AiTemplate {
28
+ id: string;
29
+ /** Up to 100 characters, unique within the practice. */
30
+ name: string;
31
+ /** One line under the name in the Templates menu. */
32
+ description?: string;
33
+ /** The instructions sent to the AI, up to 4000 characters. */
34
+ prompt: string;
35
+ /** At most one per practice; listed first with a Default badge. */
36
+ isDefault: boolean;
37
+ }
38
+ /** What the manager hands `onSaveTemplate`: `id` is absent for a new one. */
39
+ export type AiTemplateDraft = Omit<AiTemplate, 'id'> & {
40
+ id?: string;
41
+ };
42
+ /** One Help-me-write request. `template` is absent for a free prompt. */
43
+ export interface HelpMeWriteRequest {
44
+ template?: AiTemplate;
45
+ /** The free prompt, or extra instructions for a template. May be ''. */
46
+ prompt: string;
47
+ /** Plain text the template rewrites: the selection, else the whole note. */
48
+ sourceText: string;
49
+ signal: AbortSignal;
50
+ }
51
+ /**
52
+ * Throw (or reject with) this from `onGenerate` when the practice is out of
53
+ * AI credits (the platform endpoint's 402), and the bar shows the
54
+ * out-of-credits notice instead of a generic error.
55
+ */
56
+ export declare class AiCreditsExhaustedError extends Error {
57
+ constructor(message?: string);
58
+ }
59
+ /** The practice's allowance, for the out-of-credits notice. All optional. */
60
+ export interface AiCreditsInfo {
61
+ remaining?: number;
62
+ limit?: number;
63
+ /** When the monthly allowance returns. */
64
+ resetsOn?: Date;
65
+ /**
66
+ * Shows a "Buy AI credits" button and "add credits" wording. Omit while
67
+ * credits cannot be bought: the notice then only says when AI returns.
68
+ */
69
+ onBuyCredits?: () => void;
70
+ /** Shows a "See what each action costs" link. */
71
+ onSeeCosts?: () => void;
72
+ }
73
+ export type HelpMeWriteApplyMode = 'replace' | 'below' | 'insert';
74
+ /** Fired after a draft lands in the editor. */
75
+ export interface HelpMeWriteApplied {
76
+ mode: HelpMeWriteApplyMode;
77
+ template?: AiTemplate;
78
+ /** The editor's HTML before the change. */
79
+ previousHtml: string;
80
+ /** Puts `previousHtml` back in the editor (what Undo does). */
81
+ undo: () => void;
82
+ }
83
+ export interface AiCreditsExhaustedNoticeProps {
84
+ credits?: AiCreditsInfo;
85
+ /** Shows a Back button (the bar uses it to return to the prompt). */
86
+ onBack?: () => void;
87
+ }
88
+ /** The out-of-credits state: what happened, the allowance, and the ways on. */
89
+ export declare function AiCreditsExhaustedNotice({ credits, onBack, }: AiCreditsExhaustedNoticeProps): React.JSX.Element;
90
+ export interface HelpMeWriteTemplatesBarProps {
91
+ /** What `RichTextEditor`'s `renderHelpMeWrite` hands its host. */
92
+ context: HelpMeWriteRenderContext;
93
+ templates: AiTemplate[];
94
+ /** The AI call. Reject with `AiCreditsExhaustedError` when out of credits. */
95
+ onGenerate: (request: HelpMeWriteRequest) => Promise<string>;
96
+ /**
97
+ * Opens the template manager. Omit to hide "Manage templates" and
98
+ * "Create your first template" (e.g. for readers who may not manage).
99
+ */
100
+ onManageTemplates?: (mode: 'list' | 'create') => void;
101
+ /** After a draft lands; the hook uses it for Undo. */
102
+ onApplied?: (applied: HelpMeWriteApplied) => void;
103
+ /** Shown in the out-of-credits notice. */
104
+ credits?: AiCreditsInfo;
105
+ /** Show the mic in the prompt when the editor has `onDictate`. Default true. */
106
+ enableDictation?: boolean;
107
+ /** Ignore Escape (e.g. while the manager dialog above it is open). */
108
+ suspendClose?: boolean;
109
+ }
110
+ /** The Help-me-write bar with templates, docked in the editor's AI slot. */
111
+ export declare function HelpMeWriteTemplatesBar({ context, templates, onGenerate, onManageTemplates, onApplied, credits, enableDictation, suspendClose, }: HelpMeWriteTemplatesBarProps): React.JSX.Element;
112
+ export interface AiTemplateManagerProps {
113
+ open: boolean;
114
+ onOpenChange: (open: boolean) => void;
115
+ /** Open on the list (default) or straight on a new-template form. */
116
+ initialMode?: 'list' | 'create';
117
+ templates: AiTemplate[];
118
+ /** Persist a new (no `id`) or edited template. A rejection keeps the form open. */
119
+ onSaveTemplate: (draft: AiTemplateDraft) => void | Promise<void>;
120
+ /** Omit to hide Delete. */
121
+ onDeleteTemplate?: (id: string) => void | Promise<void>;
122
+ }
123
+ /** List, create, edit and delete the practice's templates. */
124
+ export declare function AiTemplateManager({ open, onOpenChange, initialMode, templates, onSaveTemplate, onDeleteTemplate, }: AiTemplateManagerProps): React.JSX.Element;
125
+ export interface HelpMeWriteUndoNoticeProps {
126
+ /** The change to offer Undo for; `null` hides the notice. */
127
+ applied: HelpMeWriteApplied | null;
128
+ onUndo: () => void;
129
+ onDismiss: () => void;
130
+ }
131
+ /** "Note rewritten with …" plus Undo; takes focus when it appears. */
132
+ export declare function HelpMeWriteUndoNotice({ applied, onUndo, onDismiss, }: HelpMeWriteUndoNoticeProps): React.JSX.Element | null;
133
+ export interface UseHelpMeWriteTemplatesOptions {
134
+ templates: AiTemplate[];
135
+ onGenerate: HelpMeWriteTemplatesBarProps['onGenerate'];
136
+ /** Enables the manager (create / edit). Omit for read-only template users. */
137
+ onSaveTemplate?: AiTemplateManagerProps['onSaveTemplate'];
138
+ /** Enables Delete in the manager. */
139
+ onDeleteTemplate?: AiTemplateManagerProps['onDeleteTemplate'];
140
+ credits?: AiCreditsInfo;
141
+ /** Mic in the bar's prompt when the editor has `onDictate`. Default true. */
142
+ enableDictation?: boolean;
143
+ /** Also told about every applied draft (e.g. for analytics). */
144
+ onApplied?: (applied: HelpMeWriteApplied) => void;
145
+ }
146
+ export interface UseHelpMeWriteTemplatesResult {
147
+ /** Pass to `RichTextEditor`'s `renderHelpMeWrite`. */
148
+ renderHelpMeWrite: (context: HelpMeWriteRenderContext) => ReactNode;
149
+ /** Mount once, anywhere (a portalled dialog); `null` without `onSaveTemplate`. */
150
+ manager: ReactNode;
151
+ /** Place where the Undo notice should show, e.g. above the editor. */
152
+ undoNotice: ReactNode;
153
+ openManager: (mode?: 'list' | 'create') => void;
154
+ }
155
+ /**
156
+ * Wires the bar, the manager and Undo together. Usage:
157
+ *
158
+ * const hmw = useHelpMeWriteTemplates({ templates, onGenerate, onSaveTemplate });
159
+ * {hmw.undoNotice}
160
+ * <RichTextEditor renderHelpMeWrite={hmw.renderHelpMeWrite} … />
161
+ * {hmw.manager}
162
+ */
163
+ export declare function useHelpMeWriteTemplates({ templates, onGenerate, onSaveTemplate, onDeleteTemplate, credits, enableDictation, onApplied, }: UseHelpMeWriteTemplatesOptions): UseHelpMeWriteTemplatesResult;
164
+ //# sourceMappingURL=help-me-write-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help-me-write-templates.d.ts","sourceRoot":"","sources":["../../../src/patterns/help-me-write-templates/help-me-write-templates.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA4Bf,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAWlF,qCAAqC;AACrC,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvE,yEAAyE;AACzE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;CACrB;AAED;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,SAAyB;CAI7C;AAED,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB;;;OAGG;IACH,YAAY,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AAc,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;IAC9D,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gEAAgE;IAChE,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACnD;AAED,MAAM,WAAW,6BAA6B;IAC5C,sDAAsD;IACtD,iBAAiB,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,SAAS,CAAC;IACpE,kFAAkF;IAClF,OAAO,EAAE,SAAS,CAAC;IACnB,sEAAsE;IACtE,UAAU,EAAE,SAAS,CAAC;IACtB,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,KAAK,IAAI,CAAC;CACjD;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,SAAS,GACV,EAAE,8BAA8B,GAAG,6BAA6B,CAyEhE"}
@@ -0,0 +1,3 @@
1
+ export { AiCreditsExhaustedError, AiCreditsExhaustedNotice, AiTemplateManager, HelpMeWriteTemplatesBar, HelpMeWriteUndoNotice, useHelpMeWriteTemplates, } from './help-me-write-templates';
2
+ export type { AiCreditsExhaustedNoticeProps, AiCreditsInfo, AiTemplate, AiTemplateDraft, AiTemplateManagerProps, HelpMeWriteApplied, HelpMeWriteApplyMode, HelpMeWriteRequest, HelpMeWriteTemplatesBarProps, HelpMeWriteUndoNoticeProps, UseHelpMeWriteTemplatesOptions, UseHelpMeWriteTemplatesResult, } from './help-me-write-templates';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/help-me-write-templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,6BAA6B,EAC7B,aAAa,EACb,UAAU,EACV,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,4BAA4B,EAC5B,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,10 @@
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-B-m7zgJa.js";
2
+ 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
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- import { C as l, M as o } from "../../_chunks/marketplace-app-shell-d2EtcUbe.js";
1
+ import { C as l, M as o } from "../../_chunks/marketplace-app-shell-D_g9BaDI.js";
2
2
  export {
3
3
  l as ConnectWithAlfadocs,
4
4
  o as MarketplaceAppShell