@aleph-alpha/chat-kit 6.0.0 → 6.1.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 (164) hide show
  1. package/dist/{CkHistory.vue_vue_type_script_setup_true_lang-D9Ph9eYp.js → CkHistory.vue_vue_type_script_setup_true_lang-Cr8vF94e.js} +214 -107
  2. package/dist/apl-fqmucPXA.js +140 -0
  3. package/dist/asciiarmor-DucZyvP0.js +56 -0
  4. package/dist/asn1-BnOEsgAm.js +144 -0
  5. package/dist/asterisk-QAlztEwS.js +345 -0
  6. package/dist/brainfuck-DZVCuF_t.js +53 -0
  7. package/dist/chat-kit.css +1166 -1
  8. package/dist/clike-CTYGlS6x.js +799 -0
  9. package/dist/clojure-BhXMqnxz.js +849 -0
  10. package/dist/cmake-BGaNd9E7.js +71 -0
  11. package/dist/cobol-4yqQntpt.js +120 -0
  12. package/dist/coffeescript-D2dXvhEc.js +308 -0
  13. package/dist/commonlisp-CF_VNHQR.js +130 -0
  14. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts +41 -0
  15. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts.map +1 -0
  16. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts +26 -0
  17. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts.map +1 -0
  18. package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts +20 -0
  19. package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts.map +1 -0
  20. package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts +42 -0
  21. package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts.map +1 -0
  22. package/dist/components/base/CkMilkdownEditor/crepeIcons.d.ts +33 -0
  23. package/dist/components/base/CkMilkdownEditor/crepeIcons.d.ts.map +1 -0
  24. package/dist/components/base/CkMilkdownEditor/index.d.ts +3 -0
  25. package/dist/components/base/CkMilkdownEditor/index.d.ts.map +1 -0
  26. package/dist/components/base/CkMilkdownEditor/markdownClassAttrs.d.ts +16 -0
  27. package/dist/components/base/CkMilkdownEditor/markdownClassAttrs.d.ts.map +1 -0
  28. package/dist/components/base/CkMilkdownEditor/types.d.ts +98 -0
  29. package/dist/components/base/CkMilkdownEditor/types.d.ts.map +1 -0
  30. package/dist/components/base/index.d.ts +2 -0
  31. package/dist/components/base/index.d.ts.map +1 -1
  32. package/dist/components/index.d.ts +2 -2
  33. package/dist/components/index.d.ts.map +1 -1
  34. package/dist/components/index.js +12 -11
  35. package/dist/createCrepeEditor-CFbvSH3s.js +74141 -0
  36. package/dist/crystal-DyuLTqLs.js +398 -0
  37. package/dist/css-DkSyTW67.js +1772 -0
  38. package/dist/cypher-Dlu_3r4V.js +121 -0
  39. package/dist/d-UURgV0Ux.js +179 -0
  40. package/dist/diff-B_Bi2Crb.js +25 -0
  41. package/dist/dockerfile-Bvk733Ga.js +201 -0
  42. package/dist/dtd-Dy74G54E.js +114 -0
  43. package/dist/dylan-TSb-Nfix.js +314 -0
  44. package/dist/ebnf-4fKAGW3a.js +140 -0
  45. package/dist/ecl-B59qGGVg.js +178 -0
  46. package/dist/eiffel-Dze7nlu3.js +134 -0
  47. package/dist/elm-DG7jkhNZ.js +176 -0
  48. package/dist/erlang-BO6gOnGA.js +674 -0
  49. package/dist/factor-CMxFHDqz.js +65 -0
  50. package/dist/fcl-CDDUNjTj.js +141 -0
  51. package/dist/forth-B9D2JCeE.js +116 -0
  52. package/dist/fortran-CAG2BFbe.js +467 -0
  53. package/dist/gas-0Aw8zDr5.js +293 -0
  54. package/dist/gherkin-DhZlEZiy.js +115 -0
  55. package/dist/groovy-CpwJiBl7.js +223 -0
  56. package/dist/handlers/index.js +1 -1
  57. package/dist/handlers/useChatKitLabels.d.ts +27 -0
  58. package/dist/handlers/useChatKitLabels.d.ts.map +1 -1
  59. package/dist/haskell-ySd-OUo8.js +459 -0
  60. package/dist/haxe-7MlzfeYV.js +514 -0
  61. package/dist/http-BqypyemW.js +79 -0
  62. package/dist/idl-4HIGJlDI.js +985 -0
  63. package/dist/index-A5rWjRtZ.js +689 -0
  64. package/dist/index-B0ldhzaj.js +385 -0
  65. package/dist/index-BVOjyn3y.js +2490 -0
  66. package/dist/index-BWvkps_G.js +309 -0
  67. package/dist/index-BaS8OW8V.js +151 -0
  68. package/dist/index-BlHHEbV-.js +406 -0
  69. package/dist/index-BoqzHVNB.js +82 -0
  70. package/dist/index-C6zYjwIQ.js +704 -0
  71. package/dist/index-CMJGuXap.js +330 -0
  72. package/dist/index-CRfGWVdQ.js +116 -0
  73. package/dist/index-C_gTb50u.js +81 -0
  74. package/dist/index-DSU7cBGz.js +178 -0
  75. package/dist/index-DSq3gvqU.js +1767 -0
  76. package/dist/index-Da3777l2.js +289 -0
  77. package/dist/index-DdlzabmR.js +1021 -0
  78. package/dist/index-DhY_9bdS.js +61 -0
  79. package/dist/index-Dm6C1blN.js +1052 -0
  80. package/dist/index-Tj3pzx-E.js +327 -0
  81. package/dist/index-ZeRS5rER.js +97 -0
  82. package/dist/index-gzleljO6.js +157 -0
  83. package/dist/index-naWlQpaL.js +642 -0
  84. package/dist/index-sKO1lHHC.js +312 -0
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +14 -13
  88. package/dist/javascript-Bt8B7yTi.js +992 -0
  89. package/dist/julia-Bs6JJhYG.js +407 -0
  90. package/dist/livescript-DmzgM3Yt.js +296 -0
  91. package/dist/lua-Cvg8VrAA.js +256 -0
  92. package/dist/mathematica-DNLOL9PQ.js +110 -0
  93. package/dist/mbox-Ga7d4MMN.js +117 -0
  94. package/dist/mirc-Dma3B8rS.js +107 -0
  95. package/dist/mllike-DHn7xckP.js +334 -0
  96. package/dist/modelica-0d55jYY0.js +147 -0
  97. package/dist/mscgen-DdqZYINH.js +135 -0
  98. package/dist/mumps-Btr8VblO.js +93 -0
  99. package/dist/nginx-DTDtBDVN.js +141 -0
  100. package/dist/nsis-CyKBdPWp.js +62 -0
  101. package/dist/ntriples-CvgOYMpL.js +153 -0
  102. package/dist/octave-DYBj3-tl.js +200 -0
  103. package/dist/oz-R_e8WMIi.js +231 -0
  104. package/dist/pascal-GD8iposT.js +105 -0
  105. package/dist/perl-DL9mHpoi.js +1105 -0
  106. package/dist/pig-C_4T4YIV.js +101 -0
  107. package/dist/powershell-B0suO7Vd.js +328 -0
  108. package/dist/properties-BR-vP1aU.js +58 -0
  109. package/dist/protobuf-BxgpyhoW.js +77 -0
  110. package/dist/pug-vHnWR0UE.js +405 -0
  111. package/dist/puppet-Bdao66PW.js +137 -0
  112. package/dist/python-BFGRmuZ9.js +426 -0
  113. package/dist/q-CrbCVq4a.js +131 -0
  114. package/dist/r-V7nswm59.js +170 -0
  115. package/dist/rpm-C-DLY-If.js +109 -0
  116. package/dist/ruby-CQTpZw6f.js +331 -0
  117. package/dist/sas-D2UG-yhZ.js +207 -0
  118. package/dist/scheme-BKzrkGJD.js +222 -0
  119. package/dist/shell-BlsXDxCn.js +222 -0
  120. package/dist/sieve-CjwBwOY5.js +135 -0
  121. package/dist/simple-mode-DMneyfDu.js +130 -0
  122. package/dist/smalltalk-BOIGQuhN.js +121 -0
  123. package/dist/solr-CwD7U71z.js +69 -0
  124. package/dist/sparql-DYskk2vE.js +249 -0
  125. package/dist/spreadsheet-Bgtt3oLP.js +87 -0
  126. package/dist/sql-Cei9CMfk.js +342 -0
  127. package/dist/stex-C1nZSzAw.js +230 -0
  128. package/dist/stylus-BkS-boTH.js +565 -0
  129. package/dist/swift-FRZi1uvB.js +291 -0
  130. package/dist/tcl-CUcaCdmq.js +114 -0
  131. package/dist/textile-BnFpjsrl.js +414 -0
  132. package/dist/tiddlywiki-CjprD-Qp.js +218 -0
  133. package/dist/tiki-DK9DOeWn.js +268 -0
  134. package/dist/toml-BOuWGMcf.js +76 -0
  135. package/dist/troff-E1bJ0PPL.js +61 -0
  136. package/dist/ttcn-cfg-Dc39-fIP.js +133 -0
  137. package/dist/ttcn-tKd4HLu4.js +192 -0
  138. package/dist/turtle-Dq7-1WAf.js +124 -0
  139. package/dist/{useChatKitLabels-368lodS5.js → useChatKitLabels-Ww1Q7xUr.js} +25 -2
  140. package/dist/vb-Dp90gtsv.js +196 -0
  141. package/dist/vbscript-Bfn8O8I7.js +478 -0
  142. package/dist/velocity-BwIZK1TH.js +149 -0
  143. package/dist/verilog-CnT9bMk0.js +429 -0
  144. package/dist/vhdl-DCkMIyT9.js +158 -0
  145. package/dist/webidl-BTLTThCm.js +204 -0
  146. package/dist/xquery-BrBUuxMR.js +525 -0
  147. package/dist/yacas-b5lAVEIl.js +130 -0
  148. package/dist/z80-ClgwfNdB.js +92 -0
  149. package/package.json +10 -4
  150. package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.spec.ts +221 -0
  151. package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.ts +274 -0
  152. package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.vue +151 -0
  153. package/src/components/base/CkMilkdownEditor/codeMirrorTheme.ts +132 -0
  154. package/src/components/base/CkMilkdownEditor/createCrepeEditor.ts +192 -0
  155. package/src/components/base/CkMilkdownEditor/crepeIcons.ts +77 -0
  156. package/src/components/base/CkMilkdownEditor/index.ts +2 -0
  157. package/src/components/base/CkMilkdownEditor/markdownClassAttrs.ts +64 -0
  158. package/src/components/base/CkMilkdownEditor/milkdown-theme.css +441 -0
  159. package/src/components/base/CkMilkdownEditor/types.ts +100 -0
  160. package/src/components/base/CkPromptInputDisclaimer/CkPromptInputDisclaimer.stories.ts +2 -2
  161. package/src/components/base/index.ts +6 -0
  162. package/src/components/index.ts +4 -0
  163. package/src/handlers/useChatKitLabels.ts +27 -0
  164. package/src/index.ts +4 -0
@@ -0,0 +1,26 @@
1
+ import type { CkMilkdownEditorProps } from './types';
2
+ declare function focus(): void;
3
+ declare function getMarkdown(): string;
4
+ declare const __VLS_export: import("vue").DefineComponent<CkMilkdownEditorProps, {
5
+ focus: typeof focus;
6
+ getMarkdown: typeof getMarkdown;
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ blur: () => any;
9
+ focus: () => any;
10
+ "update:modelValue": (value: string) => any;
11
+ }, string, import("vue").PublicProps, Readonly<CkMilkdownEditorProps> & Readonly<{
12
+ onBlur?: (() => any) | undefined;
13
+ onFocus?: (() => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
+ }>, {
16
+ readonly: boolean;
17
+ ariaLabel: string;
18
+ disabled: boolean;
19
+ classes: import("..").CkMarkdownElementClasses;
20
+ modelValue: string;
21
+ placeholder: string;
22
+ autofocus: boolean;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ //# sourceMappingURL=CkMilkdownEditor.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CkMilkdownEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/CkMilkdownEditor.vue"],"names":[],"mappings":"AAqKA,OAAO,KAAK,EAAyB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA6G5E,iBAAS,KAAK,IAAI,IAAI,CAErB;AAED,iBAAS,WAAW,IAAI,MAAM,CAE7B;AAyDD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,20 @@
1
+ import { HighlightStyle } from '@codemirror/language';
2
+ import type { Extension } from '@codemirror/state';
3
+ /**
4
+ * Same monospace stack as `UiCodeBlock` in ui-library, so code in the editor
5
+ * and in the rendered message uses identical glyph metrics.
6
+ */
7
+ export declare const CODE_FONT_FAMILY = "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace";
8
+ /**
9
+ * Token → colour mapping approximating Shiki's `github-light` / `github-dark`
10
+ * themes, which `UiCodeBlock` uses, so highlighted code looks the same in the
11
+ * editor and in `CkMarkdownRenderer`.
12
+ */
13
+ export declare const ckHighlightStyle: HighlightStyle;
14
+ /**
15
+ * CodeMirror extension bundling the editor chrome (`UiCodeBlock`-like metrics:
16
+ * 14px mono text, 1.625 line height, 1rem padding, no gutter) with
17
+ * {@link ckHighlightStyle}. Pass it as the Crepe `CodeMirror` feature `theme`.
18
+ */
19
+ export declare const ckCodeMirrorTheme: Extension;
20
+ //# sourceMappingURL=codeMirrorTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codeMirrorTheme.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/codeMirrorTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAsB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,2FAC6D,CAAC;AAO3F;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,gBA8D3B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAwC/B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { Crepe } from '@milkdown/crepe';
2
+ import { type ChatKitLabels } from '../../../handlers/useChatKitLabels';
3
+ import type { CkMarkdownElementClasses } from '../CkMarkdownRenderer';
4
+ import '@milkdown/crepe/theme/common/prosemirror.css';
5
+ import '@milkdown/crepe/theme/common/cursor.css';
6
+ import '@milkdown/crepe/theme/common/placeholder.css';
7
+ import '@milkdown/crepe/theme/common/list-item.css';
8
+ import '@milkdown/crepe/theme/common/link-tooltip.css';
9
+ import '@milkdown/crepe/theme/common/toolbar.css';
10
+ import '@milkdown/crepe/theme/common/code-mirror.css';
11
+ import './milkdown-theme.css';
12
+ export interface CreateCrepeEditorOptions {
13
+ /** Element the editor is mounted into. */
14
+ root: HTMLElement;
15
+ /** Initial markdown. */
16
+ defaultValue: string;
17
+ placeholder?: string;
18
+ ariaLabel?: string;
19
+ /** Start in read-only mode (applied before the view is created). */
20
+ readonly?: boolean;
21
+ /** Fully merged per-tag class map (defaults + consumer overrides). */
22
+ classes: CkMarkdownElementClasses;
23
+ labels: ChatKitLabels;
24
+ /** Called (debounced by Milkdown) with the serialised document on change. */
25
+ onMarkdownUpdated: (markdown: string) => void;
26
+ }
27
+ /** Imperative surface `CkMilkdownEditor` drives; keeps Milkdown types out of the SFC. */
28
+ export interface CrepeEditorHandle {
29
+ crepe: Crepe;
30
+ /** Replace the whole document with new markdown. */
31
+ setMarkdown: (markdown: string) => void;
32
+ getMarkdown: () => string;
33
+ setReadonly: (readonly: boolean) => void;
34
+ focus: () => void;
35
+ destroy: () => void;
36
+ }
37
+ /**
38
+ * Build, configure and create a Crepe editor styled like `CkMarkdownRenderer`.
39
+ * Loaded lazily by `CkMilkdownEditor` so Milkdown stays out of the main chunk.
40
+ */
41
+ export declare function createCrepeEditor(options: CreateCrepeEditorOptions): Promise<CrepeEditorHandle>;
42
+ //# sourceMappingURL=createCrepeEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCrepeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/createCrepeEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAkC,MAAM,iBAAiB,CAAC;AAGxE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAYtE,OAAO,8CAA8C,CAAC;AACtD,OAAO,yCAAyC,CAAC;AACjD,OAAO,8CAA8C,CAAC;AACtD,OAAO,4CAA4C,CAAC;AACpD,OAAO,+CAA+C,CAAC;AACvD,OAAO,0CAA0C,CAAC;AAClD,OAAO,8CAA8C,CAAC;AACtD,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,wBAAwB;IACvC,0CAA0C;IAC1C,IAAI,EAAE,WAAW,CAAC;IAClB,wBAAwB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,OAAO,EAAE,wBAAwB,CAAC;IAClC,MAAM,EAAE,aAAa,CAAC;IACtB,6EAA6E;IAC7E,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,yFAAyF;AACzF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,oDAAoD;IACpD,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,EAAE,MAAM,MAAM,CAAC;IAC1B,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAuED;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,iBAAiB,CAAC,CA6D5B"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Inline SVG strings for the Crepe feature configs (toolbar, link tooltip,
3
+ * list markers, code block tools). Crepe expects raw markup, not components,
4
+ * so these mirror the Lucide icons ui-library's `UiIcon` renders — same
5
+ * 24×24 grid, 2px round strokes — to keep the editor visually consistent.
6
+ *
7
+ * Each shape carries its own `fill`/`stroke` presentation attributes because
8
+ * Crepe's stylesheet sets `fill` on the `<svg>` element, which would otherwise
9
+ * inherit into the paths and blot out stroke-only icons.
10
+ */
11
+ export declare const crepeIcons: {
12
+ readonly bold: string;
13
+ readonly italic: string;
14
+ readonly strikethrough: string;
15
+ readonly code: string;
16
+ readonly link: string;
17
+ readonly pencil: string;
18
+ readonly trash: string;
19
+ readonly check: string;
20
+ readonly copy: string;
21
+ readonly close: string;
22
+ readonly square: string;
23
+ readonly squareCheck: string;
24
+ readonly chevronDown: string;
25
+ readonly search: string;
26
+ /**
27
+ * Bullet marker approximating the browser's `list-style: disc` that
28
+ * `CkMarkdownRenderer` gets from the `list-disc` utility: a filled dot in the
29
+ * text colour.
30
+ */
31
+ readonly bullet: "<svg class=\"ck-icon ck-icon--bullet\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"3\" fill=\"currentColor\"/></svg>";
32
+ };
33
+ //# sourceMappingURL=crepeIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crepeIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/crepeIcons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAWH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;IAiDrB;;;;OAIG;;CAGK,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as CkMilkdownEditor } from './CkMilkdownEditor.vue';
2
+ export type * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { Ctx } from '@milkdown/kit/ctx';
2
+ import type { CkMarkdownElementClasses } from '../CkMarkdownRenderer';
3
+ /** Minimal shape of the Milkdown `ctx` this module needs; eases unit testing. */
4
+ export type AttrCtx = Pick<Ctx, 'set'>;
5
+ /**
6
+ * Feed the per-tag class map that `CkMarkdownRenderer` uses into Milkdown's
7
+ * node/mark attribute hooks, so the editor emits the same class names on the
8
+ * same elements. Must run inside `editor.config()` before the editor is
9
+ * created.
10
+ *
11
+ * `li` and `pre` are Crepe node views (list item block, CodeMirror block); the
12
+ * hooks below still register for them so a non-Crepe render path keeps parity,
13
+ * but inside `CkMilkdownEditor` those two are styled by `milkdown-theme.css`.
14
+ */
15
+ export declare function applyMarkdownClasses(ctx: AttrCtx, classes: CkMarkdownElementClasses): void;
16
+ //# sourceMappingURL=markdownClassAttrs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdownClassAttrs.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/markdownClassAttrs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAiB7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAItE,iFAAiF;AACjF,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAMvC;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,wBAAwB,GAChC,IAAI,CAsBN"}
@@ -0,0 +1,98 @@
1
+ import type { CkMarkdownElementClasses } from '../CkMarkdownRenderer';
2
+ /**
3
+ * Markdown WYSIWYG editor built on [Milkdown Crepe](https://milkdown.dev/docs/guide/using-crepe).
4
+ * Its content is styled with the very same per-tag class map that
5
+ * {@link CkMarkdownRenderer} uses, so a message edited here looks identical to
6
+ * the rendered reply — no visual jump between reading and editing.
7
+ *
8
+ * The feature set is deliberately small and chat-oriented: a floating toolbar
9
+ * (bold, italic, strikethrough, inline code, link), bullet / ordered / task
10
+ * lists, blockquotes, links with a hover tooltip, fenced code blocks with syntax
11
+ * highlighting and a copy button, and an empty-document placeholder. Tables,
12
+ * images, LaTeX, slash menus and drag handles are intentionally not enabled.
13
+ *
14
+ * The editor itself loads lazily on mount, so importing this component does not
15
+ * pull ProseMirror / CodeMirror into the consumer's initial bundle.
16
+ *
17
+ * @category Form Inputs
18
+ * @useCases edit an assistant reply before sending, compose a rich prompt, edit a saved note in markdown, inline WYSIWYG editing of a user message
19
+ * @keywords markdown, editor, wysiwyg, milkdown, crepe, prosemirror, rich text, v-model, compose
20
+ * @related CkMarkdownRenderer, CkPromptInput, CkEditableUserMessage
21
+ */
22
+ export interface CkMilkdownEditorProps {
23
+ /**
24
+ * Markdown source of the document. Supports `v-model`.
25
+ *
26
+ * Changes made in the editor are emitted through `update:modelValue` after
27
+ * Milkdown's ~200 ms debounce. External changes are applied by replacing the
28
+ * whole document; the editor may then emit the same content once in its
29
+ * normalised form (e.g. `*x*` becomes `_x_`).
30
+ *
31
+ * @default ''
32
+ */
33
+ modelValue?: string;
34
+ /**
35
+ * Text shown when the document is empty. Read once when the editor is
36
+ * created; later changes are ignored.
37
+ */
38
+ placeholder?: string;
39
+ /**
40
+ * Render the content without allowing edits. The floating toolbar is not
41
+ * shown and the caret is hidden.
42
+ *
43
+ * @default false
44
+ */
45
+ readonly?: boolean;
46
+ /**
47
+ * Like `readonly`, but also mutes the content and marks the editor as
48
+ * `aria-disabled`.
49
+ *
50
+ * @default false
51
+ */
52
+ disabled?: boolean;
53
+ /**
54
+ * Accessible name of the editable region (`role="textbox"`). Read once when
55
+ * the editor is created.
56
+ */
57
+ ariaLabel?: string;
58
+ /**
59
+ * Per-tag class overrides, merged over the same defaults
60
+ * {@link CkMarkdownRenderer} uses. Pass the same object to both components to
61
+ * keep them in sync.
62
+ *
63
+ * `li` and `pre` are rendered by Crepe's own node views and are styled by the
64
+ * editor stylesheet instead, so overrides for those two tags are ignored.
65
+ */
66
+ classes?: CkMarkdownElementClasses;
67
+ /**
68
+ * Move focus into the editor once it has been created.
69
+ *
70
+ * @default false
71
+ */
72
+ autofocus?: boolean;
73
+ }
74
+ /** Events emitted by {@link CkMilkdownEditor}. */
75
+ export interface CkMilkdownEditorEmits {
76
+ /**
77
+ * Emitted when the document changes. Debounced by Milkdown (~200 ms), so a
78
+ * consumer that submits on a key press should read the exposed
79
+ * `getMarkdown()` instead of relying on the last emitted value.
80
+ */
81
+ 'update:modelValue': [value: string];
82
+ /** Emitted when focus enters the editor (including its toolbar). */
83
+ focus: [];
84
+ /** Emitted when focus leaves the editor and its toolbar entirely. */
85
+ blur: [];
86
+ }
87
+ /** Methods exposed by {@link CkMilkdownEditor} through a template ref. */
88
+ export interface CkMilkdownEditorExposed {
89
+ /** Focus the editable region. No-op until the editor has been created. */
90
+ focus: () => void;
91
+ /**
92
+ * Serialise the current document to markdown synchronously, bypassing the
93
+ * `update:modelValue` debounce. Returns the `modelValue` prop until the
94
+ * editor has been created.
95
+ */
96
+ getMarkdown: () => string;
97
+ }
98
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkMilkdownEditor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,kDAAkD;AAClD,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,oEAAoE;IACpE,KAAK,EAAE,EAAE,CAAC;IACV,qEAAqE;IACrE,IAAI,EAAE,EAAE,CAAC;CACV;AAED,0EAA0E;AAC1E,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,MAAM,CAAC;CAC3B"}
@@ -41,4 +41,6 @@ export { CkUserMessage } from './CkUserMessage';
41
41
  export type { CkUserMessageProps } from './CkUserMessage';
42
42
  export { CkEditableUserMessage } from './CkEditableUserMessage';
43
43
  export type { CkEditableUserMessageEmits, CkEditableUserMessageProps, } from './CkEditableUserMessage';
44
+ export { CkMilkdownEditor } from './CkMilkdownEditor';
45
+ export type { CkMilkdownEditorEmits, CkMilkdownEditorExposed, CkMilkdownEditorProps, } from './CkMilkdownEditor';
44
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,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EACvB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
- export { CkAgentMessage, CkAgentMessageHeader, CkHeaderActivityButton, CkCitation, CkCitationLabel, CkCitationCard, CkConversationLayout, CkCopyMessageButton, CkDropZoneOverlay, CkFeedbackButton, CkFeedbackDialog, CkFileItemsList, CkHistoryItem, CkHistoryWrapper, CkMarkdownRenderer, CkMessageButton, CkModelSelector, CkPromptSendButton, CkPromptMenuButton, CkPromptStopButton, CkPromptInput, CkPromptInputDisclaimer, CkRegenerateMessageButton, CkSendIcon, CkStopIcon, CkUserMessage, CkEditableUserMessage, } from './base';
2
- export type { CkAgentMessageHeaderProps, CkHeaderActivityButtonProps, CkHeaderActivityButtonEmits, CkCitationProps, CkCitationEmits, CkCitationSource, CkCitationLabelProps, CkCitationCardProps, CkCitationCardEmits, CkConversationLayoutProps, CkDropZoneOverlayProps, CkDropZoneOverlayEmits, CkDropZoneRejection, CkDropZoneRejectionReason, CkFeedbackButtonProps, CkFeedbackDialogEmits, CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload, CkFeedbackReason, CkFeedbackSentiment, CkFeedbackValue, CkFileEntry, CkFileItemsListEmits, CkFileItemsListProps, CkHistoryItemEmits, CkHistoryItemProps, CkHistoryWrapperProps, CkMarkdownElementClasses, CkMarkdownRendererProps, CkMarkdownRendererEmits, CkModelOption, CkModelSelectorProps, CkModelSelectorEmits, CkPromptMenuButtonProps, CkUserMessageProps, CkEditableUserMessageProps, CkEditableUserMessageEmits, } from './base';
1
+ export { CkAgentMessage, CkAgentMessageHeader, CkHeaderActivityButton, CkCitation, CkCitationLabel, CkCitationCard, CkConversationLayout, CkCopyMessageButton, CkDropZoneOverlay, CkFeedbackButton, CkFeedbackDialog, CkFileItemsList, CkHistoryItem, CkHistoryWrapper, CkMarkdownRenderer, CkMessageButton, CkModelSelector, CkPromptSendButton, CkPromptMenuButton, CkPromptStopButton, CkPromptInput, CkPromptInputDisclaimer, CkRegenerateMessageButton, CkSendIcon, CkStopIcon, CkUserMessage, CkEditableUserMessage, CkMilkdownEditor, } from './base';
2
+ export type { CkAgentMessageHeaderProps, CkHeaderActivityButtonProps, CkHeaderActivityButtonEmits, CkCitationProps, CkCitationEmits, CkCitationSource, CkCitationLabelProps, CkCitationCardProps, CkCitationCardEmits, CkConversationLayoutProps, CkDropZoneOverlayProps, CkDropZoneOverlayEmits, CkDropZoneRejection, CkDropZoneRejectionReason, CkFeedbackButtonProps, CkFeedbackDialogEmits, CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload, CkFeedbackReason, CkFeedbackSentiment, CkFeedbackValue, CkFileEntry, CkFileItemsListEmits, CkFileItemsListProps, CkHistoryItemEmits, CkHistoryItemProps, CkHistoryWrapperProps, CkMarkdownElementClasses, CkMarkdownRendererProps, CkMarkdownRendererEmits, CkModelOption, CkModelSelectorProps, CkModelSelectorEmits, CkPromptMenuButtonProps, CkUserMessageProps, CkEditableUserMessageProps, CkEditableUserMessageEmits, CkMilkdownEditorEmits, CkMilkdownEditorExposed, CkMilkdownEditorProps, } from './base';
3
3
  export { CkConversation, CkHistory } from './composed';
4
4
  export type { CkConversationProps, CkHistoryEmits, CkHistoryProps, } from './composed';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,GACtB,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- import { _, a, b, c, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A } from "../CkHistory.vue_vue_type_script_setup_true_lang-D9Ph9eYp.js";
1
+ import { _, a, b, c, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B } from "../CkHistory.vue_vue_type_script_setup_true_lang-Cr8vF94e.js";
2
2
  export {
3
3
  _ as CkAgentMessage,
4
4
  a as CkAgentMessageHeader,
@@ -19,14 +19,15 @@ export {
19
19
  o as CkHistoryWrapper,
20
20
  p as CkMarkdownRenderer,
21
21
  q as CkMessageButton,
22
- r as CkModelSelector,
23
- s as CkPromptInput,
24
- t as CkPromptInputDisclaimer,
25
- u as CkPromptMenuButton,
26
- v as CkPromptSendButton,
27
- w as CkPromptStopButton,
28
- x as CkRegenerateMessageButton,
29
- y as CkSendIcon,
30
- z as CkStopIcon,
31
- A as CkUserMessage
22
+ r as CkMilkdownEditor,
23
+ s as CkModelSelector,
24
+ t as CkPromptInput,
25
+ u as CkPromptInputDisclaimer,
26
+ v as CkPromptMenuButton,
27
+ w as CkPromptSendButton,
28
+ x as CkPromptStopButton,
29
+ y as CkRegenerateMessageButton,
30
+ z as CkSendIcon,
31
+ A as CkStopIcon,
32
+ B as CkUserMessage
32
33
  };