@aleph-alpha/chat-kit 6.0.0 → 6.1.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 (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 +1184 -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 +12 -6
  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 +459 -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
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, createElementBlock, createElementVNode, normalizeClass, renderSlot, createCommentVNode, mergeProps, withCtx, ref, watch, onScopeDispose, computed, useTemplateRef, createVNode, toDisplayString, resolveDynamicComponent, onBeforeUnmount, useSlots, onMounted, nextTick, onUnmounted, Fragment, renderList, normalizeStyle, Transition, createStaticVNode, Teleport, withModifiers, toValue, h, toRefs, useId, createTextVNode, useAttrs, onUpdated, createSlots, normalizeProps, guardReactiveProps, Comment, Text } from "vue";
2
2
  import { UiIcon, UiButton, UiFileType, UiTooltip, UiPopover, UiPopoverTrigger, UiPopoverContent, formatFileSize, UiDialog, UiDialogContent, UiDialogDescription, UiFieldLabel, UiToggleGroup, UiToggleGroupItem, UiField, UiTextarea, UiFileItem, UiProgress, Primitive, UiFloatActions, UiFloatActionItems, UiCodeBlock, UiAvatar, UiAvatarImage, UiSpinner, UiAvatarFallback, UiSidebarPopoverMenu, UiSidebarPopoverMenuItem } from "@aleph-alpha/ui-library";
3
- import { u as useChatKitLabels, d as defaultChatKitLabels, r as remarkCitations, b as useMarkdownParser } from "./useChatKitLabels-368lodS5.js";
3
+ import { u as useChatKitLabels, d as defaultChatKitLabels, r as remarkCitations, b as useMarkdownParser } from "./useChatKitLabels-Ww1Q7xUr.js";
4
4
  const MINUTE = 60;
5
5
  const HOUR = 60 * MINUTE;
6
6
  const DAY = 24 * HOUR;
@@ -36,7 +36,7 @@ function formatRelativeTime(unixSeconds, nowSeconds = Math.floor(Date.now() / 1e
36
36
  const years = Math.floor(delta / YEAR);
37
37
  return years === 1 ? "1 year ago" : `${years} years ago`;
38
38
  }
39
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
39
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
40
40
  ...{ name: "CkSendIcon" },
41
41
  __name: "CkSendIcon",
42
42
  setup(__props) {
@@ -45,19 +45,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
45
45
  };
46
46
  }
47
47
  });
48
- const _hoisted_1$g = {
48
+ const _hoisted_1$h = {
49
49
  xmlns: "http://www.w3.org/2000/svg",
50
50
  width: "16",
51
51
  height: "16",
52
52
  viewBox: "0 0 16 16",
53
53
  fill: "none"
54
54
  };
55
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
55
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
56
56
  ...{ name: "CkStopIcon" },
57
57
  __name: "CkStopIcon",
58
58
  setup(__props) {
59
59
  return (_ctx, _cache) => {
60
- return openBlock(), createElementBlock("svg", _hoisted_1$g, [..._cache[0] || (_cache[0] = [
60
+ return openBlock(), createElementBlock("svg", _hoisted_1$h, [..._cache[0] || (_cache[0] = [
61
61
  createElementVNode("path", {
62
62
  d: "M13.3335 3.33301C13.3335 2.96482 13.035 2.66634 12.6668 2.66634H3.3335C2.96531 2.66634 2.66683 2.96482 2.66683 3.33301V12.6663C2.66683 13.0345 2.96531 13.333 3.3335 13.333H12.6668C13.035 13.333 13.3335 13.0345 13.3335 12.6663V3.33301ZM14.6668 12.6663C14.6668 13.7709 13.7714 14.6663 12.6668 14.6663H3.3335C2.22893 14.6663 1.3335 13.7709 1.3335 12.6663V3.33301C1.3335 2.22844 2.22893 1.33301 3.3335 1.33301H12.6668C13.7714 1.33301 14.6668 2.22844 14.6668 3.33301V12.6663Z",
63
63
  fill: "currentColor"
@@ -66,7 +66,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
66
66
  };
67
67
  }
68
68
  });
69
- const _hoisted_1$f = {
69
+ const _hoisted_1$g = {
70
70
  key: 0,
71
71
  "data-testid": "ck-agent-message-header",
72
72
  class: "w-full min-w-0"
@@ -76,7 +76,7 @@ const _hoisted_3$9 = {
76
76
  key: 1,
77
77
  class: "flex items-center gap-4"
78
78
  };
79
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
79
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
80
80
  ...{ name: "CkAgentMessage" },
81
81
  __name: "CkAgentMessage",
82
82
  props: {
@@ -90,7 +90,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
90
90
  __props.bottomSeparator && "border-border-surface-default border-b"
91
91
  ])
92
92
  }, [
93
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
93
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
94
94
  renderSlot(_ctx.$slots, "header")
95
95
  ])) : createCommentVNode("", true),
96
96
  createElementVNode("div", _hoisted_2$a, [
@@ -103,7 +103,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
103
103
  };
104
104
  }
105
105
  });
106
- const _hoisted_1$e = {
106
+ const _hoisted_1$f = {
107
107
  key: 0,
108
108
  "data-testid": "ck-agent-message-header-icon",
109
109
  class: "flex flex-shrink-0 items-center justify-center"
@@ -114,7 +114,7 @@ const _hoisted_3$8 = {
114
114
  "data-testid": "ck-agent-message-header-activity",
115
115
  class: "flex flex-shrink-0 items-center"
116
116
  };
117
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
117
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
118
118
  ...{ name: "CkAgentMessageHeader" },
119
119
  __name: "CkAgentMessageHeader",
120
120
  setup(__props) {
@@ -126,7 +126,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
126
126
  _ctx.$slots.activity && "border-border-surface-default border-b py-4"
127
127
  ])
128
128
  }, [
129
- _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
129
+ _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
130
130
  renderSlot(_ctx.$slots, "icon")
131
131
  ])) : createCommentVNode("", true),
132
132
  createElementVNode("span", _hoisted_2$9, [
@@ -139,7 +139,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
139
139
  };
140
140
  }
141
141
  });
142
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
142
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
143
143
  ...{
144
144
  name: "CkHeaderActivityButton"
145
145
  },
@@ -219,7 +219,7 @@ function useIsTruncated(elementRef, watchSource) {
219
219
  });
220
220
  return isTruncated;
221
221
  }
222
- const _hoisted_1$d = { class: "ck-citation-card flex w-[22.5rem] max-w-[90vw] flex-col gap-2 rounded-md bg-background-surface-floating px-6 pb-6 pt-4 shadow-md" };
222
+ const _hoisted_1$e = { class: "ck-citation-card flex w-[22.5rem] max-w-[90vw] flex-col gap-2 rounded-md bg-background-surface-floating px-6 pb-6 pt-4 shadow-md" };
223
223
  const _hoisted_2$8 = { class: "flex min-w-0 items-center gap-3 py-0.5" };
224
224
  const _hoisted_3$7 = { class: "line-clamp-6 break-words text-sm leading-5 text-content-on-surface-secondary" };
225
225
  const _hoisted_4$7 = {
@@ -235,7 +235,7 @@ const _hoisted_6$4 = {
235
235
  key: 2,
236
236
  class: "shrink-0"
237
237
  };
238
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
238
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
239
239
  ...{
240
240
  name: "CkCitationCard"
241
241
  },
@@ -269,7 +269,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
269
269
  }
270
270
  }
271
271
  return (_ctx, _cache) => {
272
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
272
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
273
273
  createElementVNode("div", _hoisted_2$8, [
274
274
  createVNode(unref(UiFileType), {
275
275
  filename: __props.fileName,
@@ -331,7 +331,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
331
331
  };
332
332
  }
333
333
  });
334
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
334
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
335
335
  ...{
336
336
  name: "CkCitationLabel"
337
337
  },
@@ -379,9 +379,9 @@ const _export_sfc = (sfc, props) => {
379
379
  }
380
380
  return target;
381
381
  };
382
- const CkCitationLabel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-66ed453e"]]);
382
+ const CkCitationLabel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-66ed453e"]]);
383
383
  const CLOSE_DELAY_MS = 80;
384
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
384
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
385
385
  ...{
386
386
  name: "CkCitation"
387
387
  },
@@ -477,7 +477,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
477
477
  onFocusout: onContentFocusOut
478
478
  }, {
479
479
  default: withCtx(() => [
480
- createVNode(unref(_sfc_main$p), {
480
+ createVNode(unref(_sfc_main$q), {
481
481
  "file-name": __props.fileName,
482
482
  snippet: __props.snippet,
483
483
  "location-label": __props.locationLabel,
@@ -495,7 +495,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
495
495
  };
496
496
  }
497
497
  });
498
- const _hoisted_1$c = { class: "relative flex min-h-0 flex-col overflow-hidden" };
498
+ const _hoisted_1$d = { class: "relative flex min-h-0 flex-col overflow-hidden" };
499
499
  const _hoisted_2$7 = ["data-message-row"];
500
500
  const _hoisted_3$6 = {
501
501
  key: 0,
@@ -505,7 +505,7 @@ const _hoisted_4$6 = {
505
505
  key: 1,
506
506
  class: "flex min-w-0 justify-start"
507
507
  };
508
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
508
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
509
509
  ...{ name: "CkConversationLayout" },
510
510
  __name: "CkConversationLayout",
511
511
  props: {
@@ -664,7 +664,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
664
664
  );
665
665
  __expose({ scrollToMessage: scrollMessageToTop });
666
666
  return (_ctx, _cache) => {
667
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
667
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
668
668
  createElementVNode("div", {
669
669
  "aria-hidden": "true",
670
670
  class: normalizeClass(["pointer-events-none absolute inset-x-0 top-0 z-10 h-8 bg-gradient-to-b from-background-surface-secondary to-transparent transition-opacity duration-200", showTopFade.value ? "opacity-100" : "opacity-0"])
@@ -709,7 +709,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
709
709
  };
710
710
  }
711
711
  });
712
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
712
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
713
713
  ...{
714
714
  name: "CkMessageButton"
715
715
  },
@@ -733,11 +733,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
733
733
  };
734
734
  }
735
735
  });
736
- const _hoisted_1$b = {
736
+ const _hoisted_1$c = {
737
737
  class: "sr-only",
738
738
  "aria-live": "polite"
739
739
  };
740
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
740
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
741
741
  ...{
742
742
  name: "CkCopyMessageButton"
743
743
  },
@@ -794,7 +794,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
794
794
  "delay-duration": 0
795
795
  }, {
796
796
  default: withCtx(() => [
797
- createVNode(unref(_sfc_main$l), mergeProps({ ariaLabel: copied.value ? __props.ariaLabelCopied : __props.ariaLabelCopy }, {
797
+ createVNode(unref(_sfc_main$m), mergeProps({ ariaLabel: copied.value ? __props.ariaLabelCopied : __props.ariaLabelCopy }, {
798
798
  disabled: __props.disabled,
799
799
  onClick: handleClick
800
800
  }), {
@@ -821,15 +821,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
821
821
  ]),
822
822
  _: 1
823
823
  }, 16, ["disabled"]),
824
- createElementVNode("span", _hoisted_1$b, toDisplayString(copied.value ? __props.ariaLabelCopied : __props.ariaLabelCopy), 1)
824
+ createElementVNode("span", _hoisted_1$c, toDisplayString(copied.value ? __props.ariaLabelCopied : __props.ariaLabelCopy), 1)
825
825
  ]),
826
826
  _: 1
827
827
  }, 8, ["open", "content"]);
828
828
  };
829
829
  }
830
830
  });
831
- const CkCopyMessageButton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-ba2e5f32"]]);
832
- const _hoisted_1$a = {
831
+ const CkCopyMessageButton = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ba2e5f32"]]);
832
+ const _hoisted_1$b = {
833
833
  width: "208",
834
834
  height: "144",
835
835
  viewBox: "0 0 208 144",
@@ -838,18 +838,18 @@ const _hoisted_1$a = {
838
838
  "aria-hidden": "true",
839
839
  focusable: "false"
840
840
  };
841
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
841
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
842
842
  ...{ name: "CkDropZoneIllustration" },
843
843
  __name: "CkDropZoneIllustration",
844
844
  setup(__props) {
845
845
  return (_ctx, _cache) => {
846
- return openBlock(), createElementBlock("svg", _hoisted_1$a, [..._cache[0] || (_cache[0] = [
846
+ return openBlock(), createElementBlock("svg", _hoisted_1$b, [..._cache[0] || (_cache[0] = [
847
847
  createStaticVNode('<g clip-path="url(#ck-drop-zone-clip)"><path d="M0 71.5391C0 32.0292 32.0292 0 71.5391 0H135.739C175.249 0 207.278 32.0292 207.278 71.5391C207.278 111.049 175.249 143.078 135.739 143.078H71.5392C32.0292 143.078 0 111.049 0 71.5391Z" fill="#F2EBE8"></path><path d="M120.899 98.2608L134.973 45.7385C135.223 44.805 136.182 44.251 137.116 44.5011L172.976 54.1098C173.909 54.3599 174.463 55.3195 174.213 56.2531L160.14 108.775C159.89 109.709 158.93 110.263 157.997 110.013L122.137 100.404C121.203 100.154 120.649 99.1943 120.899 98.2608Z" fill="#FFCCBB" stroke="#333333"></path><g><path d="M153.839 69.86L144.18 67.2718C143.118 66.9871 142.015 67.6235 141.731 68.686L137.589 84.1409C137.305 85.2034 137.941 86.3056 139.004 86.5904L150.595 89.6962C151.657 89.9809 152.76 89.3445 153.044 88.282L156.668 74.759L153.839 69.86Z" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M153.839 69.86L153.063 72.7578C152.921 73.2891 153.239 73.8402 153.77 73.9825L156.668 74.759" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M143.783 76.4828L151.51 78.5534" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M143.006 79.3806L150.733 81.4511" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M142.23 82.2784L147.059 83.5725" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path></g><path d="M86.3795 98.2608L72.3062 45.7385C72.0561 44.805 71.0965 44.251 70.1629 44.5011L34.3029 54.1098C33.3694 54.3599 32.8153 55.3195 33.0655 56.2531L47.1388 108.775C47.3889 109.709 48.3485 110.263 49.2821 110.013L85.1421 100.404C86.0756 100.154 86.6297 99.1943 86.3795 98.2608Z" fill="#FFE9B5" stroke="#333333"></path><g><path d="M60.3294 76.0227L58.0001 67.3293C60.3057 66.7116 62.7623 67.035 64.8294 68.2284C66.8966 69.4219 68.405 71.3877 69.0228 73.6933L60.3294 76.0227Z" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M55.3303 68.8899C54.4077 69.3934 53.5755 70.0573 52.8752 70.8559C51.7015 72.1942 50.9511 73.8504 50.7187 75.6152C50.4864 77.38 50.7826 79.1741 51.5699 80.7706C52.3572 82.367 53.6002 83.6942 55.1417 84.5842C56.6833 85.4742 58.4541 85.8871 60.2304 85.7707C62.0066 85.6543 63.7084 85.0138 65.1206 83.9302C66.5328 82.8465 67.5919 81.3685 68.1641 79.6829C68.5135 78.6536 68.6717 77.5751 68.6371 76.4998" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path></g><path d="M76.5186 107.5L76.5185 35C76.5185 33.6193 77.6378 32.5 79.0185 32.5H128.519C129.899 32.5 131.019 33.6193 131.019 35V107.5C131.019 108.881 129.899 110 128.519 110H79.0186C77.6378 110 76.5186 108.881 76.5186 107.5Z" fill="#FFB3DD" stroke="#333333"></path><g><path d="M107.519 56.8335H95.519C94.419 56.8335 93.519 57.7335 93.519 58.8335V82.1665C93.519 83.2675 94.419 84.1665 95.519 84.1665H111.519C112.619 84.1665 113.519 83.2675 113.519 82.1665V64.8335L107.519 56.8335Z" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M107.519 56.8335V62.8335C107.519 63.9335 108.419 64.8335 109.519 64.8335H113.519" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M103.519 78.8335V70.8335" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path><path d="M99.519 74.8335L103.519 70.8335L107.519 74.8335" stroke="#1D1D1B" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"></path></g></g><defs><clipPath id="ck-drop-zone-clip"><rect width="208" height="144" fill="white"></rect></clipPath></defs>', 2)
848
848
  ])]);
849
849
  };
850
850
  }
851
851
  });
852
- const _hoisted_1$9 = ["aria-label"];
852
+ const _hoisted_1$a = ["aria-label"];
853
853
  const _hoisted_2$6 = { class: "pointer-events-none flex h-full w-full flex-col items-center justify-center gap-4 text-content-on-surface-primary" };
854
854
  const _hoisted_3$5 = { class: "flex flex-col items-center gap-1 text-center" };
855
855
  const _hoisted_4$5 = { class: "body-16-bold" };
@@ -863,7 +863,7 @@ const _hoisted_6$3 = {
863
863
  class: "pointer-events-none fixed bottom-6 left-1/2 z-50 max-w-[36rem] -translate-x-1/2 flex list-inside list-disc flex-col gap-1 rounded-md border border-border-surface-default bg-background-surface-default p-3 text-sm text-content-on-surface-secondary",
864
864
  role: "alert"
865
865
  };
866
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
866
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
867
867
  ...{
868
868
  name: "CkDropZoneOverlay"
869
869
  },
@@ -1026,14 +1026,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1026
1026
  }, [
1027
1027
  createElementVNode("div", _hoisted_2$6, [
1028
1028
  renderSlot(_ctx.$slots, "default", {}, () => [
1029
- createVNode(_sfc_main$j, { class: "h-36 w-52" }),
1029
+ createVNode(_sfc_main$k, { class: "h-36 w-52" }),
1030
1030
  createElementVNode("div", _hoisted_3$5, [
1031
1031
  createElementVNode("p", _hoisted_4$5, toDisplayString(resolvedHeading.value), 1),
1032
1032
  __props.hint ? (openBlock(), createElementBlock("p", _hoisted_5$3, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
1033
1033
  ])
1034
1034
  ], true)
1035
1035
  ])
1036
- ], 40, _hoisted_1$9)) : createCommentVNode("", true)
1036
+ ], 40, _hoisted_1$a)) : createCommentVNode("", true)
1037
1037
  ]),
1038
1038
  _: 3
1039
1039
  }),
@@ -1051,9 +1051,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1051
1051
  };
1052
1052
  }
1053
1053
  });
1054
- const CkDropZoneOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-54119668"]]);
1055
- const _hoisted_1$8 = ["aria-label"];
1056
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
1054
+ const CkDropZoneOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-54119668"]]);
1055
+ const _hoisted_1$9 = ["aria-label"];
1056
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1057
1057
  ...{
1058
1058
  name: "CkFeedbackButton"
1059
1059
  },
@@ -1108,7 +1108,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1108
1108
  "delay-duration": 0
1109
1109
  }, {
1110
1110
  default: withCtx(() => [
1111
- createVNode(unref(_sfc_main$l), mergeProps({ ariaLabel: thumbsUpLabel.value }, {
1111
+ createVNode(unref(_sfc_main$m), mergeProps({ ariaLabel: thumbsUpLabel.value }, {
1112
1112
  "aria-pressed": isUpSelected.value,
1113
1113
  "aria-disabled": __props.locked || void 0,
1114
1114
  disabled: isUpDisabled.value,
@@ -1135,7 +1135,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1135
1135
  "delay-duration": 0
1136
1136
  }, {
1137
1137
  default: withCtx(() => [
1138
- createVNode(unref(_sfc_main$l), mergeProps({ ariaLabel: thumbsDownLabel.value }, {
1138
+ createVNode(unref(_sfc_main$m), mergeProps({ ariaLabel: thumbsDownLabel.value }, {
1139
1139
  "aria-pressed": isDownSelected.value,
1140
1140
  "aria-disabled": __props.locked || void 0,
1141
1141
  disabled: isDownDisabled.value,
@@ -1155,11 +1155,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1155
1155
  ]),
1156
1156
  _: 1
1157
1157
  }, 8, ["content"])
1158
- ], 8, _hoisted_1$8);
1158
+ ], 8, _hoisted_1$9);
1159
1159
  };
1160
1160
  }
1161
1161
  });
1162
- const CkFeedbackButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-c4c638c3"]]);
1162
+ const CkFeedbackButton = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-c4c638c3"]]);
1163
1163
  function useCitationRendering(citations, onOpenSource) {
1164
1164
  const sourcesByIndex = computed(
1165
1165
  () => new Map(
@@ -1178,7 +1178,7 @@ function useCitationRendering(citations, onOpenSource) {
1178
1178
  const source = sourcesByIndex.value.get(index);
1179
1179
  if (!source) return null;
1180
1180
  if (slot) return slot({ source, openSource: onOpenSource });
1181
- return h(_sfc_main$n, { ...source, onOpenSource });
1181
+ return h(_sfc_main$o, { ...source, onOpenSource });
1182
1182
  }
1183
1183
  return { citationPlugins, renderCitationNode };
1184
1184
  }
@@ -1242,7 +1242,7 @@ function domToVNode(node, ctx) {
1242
1242
  }
1243
1243
  return vnode;
1244
1244
  }
1245
- const _sfc_main$g = defineComponent({
1245
+ const _sfc_main$h = defineComponent({
1246
1246
  name: "CkMarkdownRenderer",
1247
1247
  props: {
1248
1248
  content: { type: String, required: true },
@@ -1300,7 +1300,7 @@ const _sfc_main$g = defineComponent({
1300
1300
  };
1301
1301
  }
1302
1302
  });
1303
- const _hoisted_1$7 = {
1303
+ const _hoisted_1$8 = {
1304
1304
  key: 0,
1305
1305
  class: "flex min-h-0 flex-col gap-2"
1306
1306
  };
@@ -1310,7 +1310,7 @@ const _hoisted_4$4 = {
1310
1310
  class: "self-end text-sm text-content-on-surface-muted tabular-nums",
1311
1311
  "aria-live": "polite"
1312
1312
  };
1313
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
1313
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1314
1314
  ...{
1315
1315
  name: "CkFeedbackDialog"
1316
1316
  },
@@ -1468,7 +1468,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1468
1468
  showResponseColumn.value ? "grid-cols-2" : "grid-cols-1"
1469
1469
  ])
1470
1470
  }, [
1471
- showResponseColumn.value ? (openBlock(), createElementBlock("section", _hoisted_1$7, [
1471
+ showResponseColumn.value ? (openBlock(), createElementBlock("section", _hoisted_1$8, [
1472
1472
  createVNode(unref(UiFieldLabel), null, {
1473
1473
  default: withCtx(() => [
1474
1474
  createTextVNode(toDisplayString(responseHeading.value), 1)
@@ -1476,7 +1476,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1476
1476
  _: 1
1477
1477
  }),
1478
1478
  createElementVNode("div", _hoisted_2$5, [
1479
- createVNode(unref(_sfc_main$g), {
1479
+ createVNode(unref(_sfc_main$h), {
1480
1480
  content: __props.responseText,
1481
1481
  citations: __props.citations
1482
1482
  }, {
@@ -1552,8 +1552,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1552
1552
  };
1553
1553
  }
1554
1554
  });
1555
- const CkFeedbackDialog = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-fce18e3e"]]);
1556
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
1555
+ const CkFeedbackDialog = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-fce18e3e"]]);
1556
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1557
1557
  ...{
1558
1558
  name: "CkFileItemRow",
1559
1559
  inheritAttrs: false
@@ -1596,7 +1596,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1596
1596
  };
1597
1597
  }
1598
1598
  });
1599
- const _hoisted_1$6 = ["aria-label"];
1599
+ const _hoisted_1$7 = ["aria-label"];
1600
1600
  const _hoisted_2$4 = ["onClick"];
1601
1601
  const _hoisted_3$3 = ["disabled", "aria-label"];
1602
1602
  const _hoisted_4$3 = {
@@ -1614,7 +1614,7 @@ const _hoisted_6$2 = {
1614
1614
  const _hoisted_7$2 = ["aria-label"];
1615
1615
  const _hoisted_8$1 = ["onClick"];
1616
1616
  const ITEM_GAP = 8;
1617
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
1617
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1618
1618
  ...{
1619
1619
  name: "CkFileItemsList"
1620
1620
  },
@@ -1736,7 +1736,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1736
1736
  }),
1737
1737
  onClick: ($event) => handleRowClick(file, $event)
1738
1738
  }, [
1739
- createVNode(_sfc_main$e, {
1739
+ createVNode(_sfc_main$f, {
1740
1740
  file,
1741
1741
  size: __props.size,
1742
1742
  "is-removable": __props.isRemovable,
@@ -1751,7 +1751,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1751
1751
  }, 8, ["file", "size", "is-removable", "remove-label", "disabled", "onRemove"])
1752
1752
  ], 12, _hoisted_2$4);
1753
1753
  }), 128))
1754
- ], 8, _hoisted_1$6)) : (openBlock(), createBlock(unref(UiPopover), {
1754
+ ], 8, _hoisted_1$7)) : (openBlock(), createBlock(unref(UiPopover), {
1755
1755
  key: 1,
1756
1756
  open: isOpen.value,
1757
1757
  "onUpdate:open": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event)
@@ -1816,7 +1816,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1816
1816
  style: normalizeStyle({ maxWidth: `${__props.maxItemWidth}px` }),
1817
1817
  onClick: ($event) => handleRowClick(file, $event)
1818
1818
  }, [
1819
- createVNode(_sfc_main$e, {
1819
+ createVNode(_sfc_main$f, {
1820
1820
  file,
1821
1821
  size: __props.size,
1822
1822
  "is-removable": __props.isRemovable,
@@ -1843,7 +1843,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1843
1843
  }
1844
1844
  });
1845
1845
  const CHAT_HISTORY_ACTIVE_INDICATOR_CLASS = "ui-active-indicator";
1846
- const _hoisted_1$5 = ["data-active"];
1846
+ const _hoisted_1$6 = ["data-active"];
1847
1847
  const _hoisted_2$3 = { class: "min-w-0 flex-1" };
1848
1848
  const _hoisted_3$2 = { class: "truncate body-14-regular text-content-on-surface-primary" };
1849
1849
  const _hoisted_4$2 = {
@@ -1865,7 +1865,7 @@ const _hoisted_7$1 = {
1865
1865
  const _hoisted_8 = ["aria-label"];
1866
1866
  const _hoisted_9 = ["aria-label"];
1867
1867
  const _hoisted_10 = ["aria-label"];
1868
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
1868
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1869
1869
  ...{
1870
1870
  name: "CkHistoryItem",
1871
1871
  inheritAttrs: false
@@ -2099,12 +2099,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2099
2099
  }))
2100
2100
  ], 42, _hoisted_10))
2101
2101
  ], 34)) : createCommentVNode("", true)
2102
- ], 10, _hoisted_1$5);
2102
+ ], 10, _hoisted_1$6);
2103
2103
  };
2104
2104
  }
2105
2105
  });
2106
2106
  const baseClass = "flex w-full min-w-0 flex-col py-2";
2107
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
2107
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2108
2108
  ...{
2109
2109
  name: "CkHistoryWrapper",
2110
2110
  inheritAttrs: false
@@ -2135,7 +2135,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2135
2135
  };
2136
2136
  }
2137
2137
  });
2138
- const _hoisted_1$4 = ["disabled", "aria-expanded", "aria-label"];
2138
+ const _hoisted_1$5 = ["disabled", "aria-expanded", "aria-label"];
2139
2139
  const _hoisted_2$2 = { class: "min-w-0 max-w-[10rem] truncate" };
2140
2140
  const _hoisted_3$1 = ["aria-label"];
2141
2141
  const _hoisted_4$1 = ["aria-selected", "onClick"];
@@ -2145,7 +2145,7 @@ const _hoisted_7 = {
2145
2145
  key: 0,
2146
2146
  class: "min-w-0 truncate text-xs text-content-on-surface-muted"
2147
2147
  };
2148
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
2148
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2149
2149
  ...{ name: "CkModelSelector" },
2150
2150
  __name: "CkModelSelector",
2151
2151
  props: {
@@ -2202,7 +2202,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2202
2202
  class: "shrink-0",
2203
2203
  "aria-hidden": "true"
2204
2204
  })
2205
- ], 8, _hoisted_1$4)
2205
+ ], 8, _hoisted_1$5)
2206
2206
  ]),
2207
2207
  _: 1
2208
2208
  }),
@@ -2256,7 +2256,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2256
2256
  };
2257
2257
  }
2258
2258
  });
2259
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2259
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2260
2260
  ...{ name: "CkPromptSendButton" },
2261
2261
  __name: "CkPromptSendButton",
2262
2262
  props: {
@@ -2282,7 +2282,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2282
2282
  };
2283
2283
  }
2284
2284
  });
2285
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2285
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2286
2286
  ...{ name: "CkPromptMenuButton" },
2287
2287
  __name: "CkPromptMenuButton",
2288
2288
  props: {
@@ -2312,7 +2312,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2312
2312
  };
2313
2313
  }
2314
2314
  });
2315
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2315
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2316
2316
  ...{ name: "CkPromptStopButton" },
2317
2317
  __name: "CkPromptStopButton",
2318
2318
  props: {
@@ -2338,7 +2338,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2338
2338
  };
2339
2339
  }
2340
2340
  });
2341
- const _hoisted_1$3 = { class: "ck-prompt-root flex flex-col gap-2" };
2341
+ const _hoisted_1$4 = { class: "ck-prompt-root flex flex-col gap-2" };
2342
2342
  const _hoisted_2$1 = {
2343
2343
  key: 0,
2344
2344
  style: { "grid-area": "top" }
@@ -2346,7 +2346,7 @@ const _hoisted_2$1 = {
2346
2346
  const _hoisted_3 = ["for"];
2347
2347
  const _hoisted_4 = ["id", "value", "placeholder", "disabled"];
2348
2348
  const MAX_LINES = 6;
2349
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2349
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2350
2350
  ...{ name: "CkPromptInput" },
2351
2351
  __name: "CkPromptInput",
2352
2352
  props: {
@@ -2435,7 +2435,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2435
2435
  onMounted(adjustHeight);
2436
2436
  __expose({ focus, submit });
2437
2437
  return (_ctx, _cache) => {
2438
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
2438
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
2439
2439
  createElementVNode("form", {
2440
2440
  class: normalizeClass([
2441
2441
  "ck-prompt-form border-border-surface-default bg-background-input-strong grid items-center gap-x-0 gap-y-5 border transition-[border-radius] duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] ",
@@ -2497,12 +2497,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2497
2497
  };
2498
2498
  }
2499
2499
  });
2500
- const CkPromptInput = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-c6b78cec"]]);
2501
- const _hoisted_1$2 = {
2500
+ const CkPromptInput = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-c6b78cec"]]);
2501
+ const _hoisted_1$3 = {
2502
2502
  key: 0,
2503
2503
  class: "text-center text-content-on-surface-muted text-xs font-normal leading-4"
2504
2504
  };
2505
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2505
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2506
2506
  ...{ name: "CkPromptInputDisclaimer" },
2507
2507
  __name: "CkPromptInputDisclaimer",
2508
2508
  props: {
@@ -2510,7 +2510,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2510
2510
  },
2511
2511
  setup(__props) {
2512
2512
  return (_ctx, _cache) => {
2513
- return _ctx.$slots.default || __props.text ? (openBlock(), createElementBlock("p", _hoisted_1$2, [
2513
+ return _ctx.$slots.default || __props.text ? (openBlock(), createElementBlock("p", _hoisted_1$3, [
2514
2514
  renderSlot(_ctx.$slots, "default", {}, () => [
2515
2515
  createTextVNode(toDisplayString(__props.text), 1)
2516
2516
  ])
@@ -2518,7 +2518,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2518
2518
  };
2519
2519
  }
2520
2520
  });
2521
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2521
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2522
2522
  ...{
2523
2523
  name: "CkRegenerateMessageButton"
2524
2524
  },
@@ -2545,7 +2545,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2545
2545
  "delay-duration": 0
2546
2546
  }, {
2547
2547
  default: withCtx(() => [
2548
- createVNode(unref(_sfc_main$l), mergeProps({ ariaLabel: __props.ariaLabel }, {
2548
+ createVNode(unref(_sfc_main$m), mergeProps({ ariaLabel: __props.ariaLabel }, {
2549
2549
  disabled: __props.disabled,
2550
2550
  onClick: handleClick
2551
2551
  }), {
@@ -2564,9 +2564,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2564
2564
  };
2565
2565
  }
2566
2566
  });
2567
- const _hoisted_1$1 = { class: "inline-flex max-w-[536px] flex-col items-end justify-start gap-1" };
2567
+ const _hoisted_1$2 = { class: "inline-flex max-w-[536px] flex-col items-end justify-start gap-1" };
2568
2568
  const _hoisted_2 = ["aria-expanded"];
2569
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2569
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2570
2570
  ...{ name: "CkUserMessage" },
2571
2571
  __name: "CkUserMessage",
2572
2572
  props: {
@@ -2611,7 +2611,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2611
2611
  nextTick(measure);
2612
2612
  });
2613
2613
  return (_ctx, _cache) => {
2614
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
2614
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
2615
2615
  createElementVNode("div", {
2616
2616
  ref_key: "contentRef",
2617
2617
  ref: contentRef,
@@ -2638,8 +2638,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2638
2638
  };
2639
2639
  }
2640
2640
  });
2641
- const CkUserMessage = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-75aacd04"]]);
2642
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2641
+ const CkUserMessage = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-75aacd04"]]);
2642
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2643
2643
  ...{ name: "CkEditableUserMessage" },
2644
2644
  __name: "CkEditableUserMessage",
2645
2645
  props: {
@@ -2700,6 +2700,112 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2700
2700
  };
2701
2701
  }
2702
2702
  });
2703
+ const _hoisted_1$1 = ["aria-disabled"];
2704
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2705
+ ...{ name: "CkMilkdownEditor" },
2706
+ __name: "CkMilkdownEditor",
2707
+ props: {
2708
+ modelValue: { default: "" },
2709
+ placeholder: { default: void 0 },
2710
+ readonly: { type: Boolean, default: false },
2711
+ disabled: { type: Boolean, default: false },
2712
+ ariaLabel: { default: void 0 },
2713
+ classes: { default: () => ({}) },
2714
+ autofocus: { type: Boolean, default: false }
2715
+ },
2716
+ emits: ["update:modelValue", "focus", "blur"],
2717
+ setup(__props, { expose: __expose, emit: __emit }) {
2718
+ const props = __props;
2719
+ const emit = __emit;
2720
+ const labels = useChatKitLabels();
2721
+ const rootRef = useTemplateRef("rootRef");
2722
+ const isLocked = computed(() => props.readonly || props.disabled);
2723
+ const isReady = ref(false);
2724
+ let editor;
2725
+ let destroyed = false;
2726
+ let lastKnownMarkdown = props.modelValue;
2727
+ function handleMarkdownUpdated(markdown) {
2728
+ if (markdown === lastKnownMarkdown) return;
2729
+ lastKnownMarkdown = markdown;
2730
+ emit("update:modelValue", markdown);
2731
+ }
2732
+ onMounted(async () => {
2733
+ const root = rootRef.value;
2734
+ if (!root) return;
2735
+ const { createCrepeEditor } = await import("./createCrepeEditor-CFbvSH3s.js").then((n) => n.K);
2736
+ if (destroyed) return;
2737
+ const initialMarkdown = props.modelValue;
2738
+ lastKnownMarkdown = initialMarkdown;
2739
+ const handle = await createCrepeEditor({
2740
+ root,
2741
+ defaultValue: initialMarkdown,
2742
+ placeholder: props.placeholder,
2743
+ ariaLabel: props.ariaLabel,
2744
+ readonly: isLocked.value,
2745
+ classes: { ...defaultMarkdownClasses, ...props.classes },
2746
+ labels: labels.value,
2747
+ onMarkdownUpdated: handleMarkdownUpdated
2748
+ });
2749
+ if (destroyed) {
2750
+ handle.destroy();
2751
+ return;
2752
+ }
2753
+ editor = handle;
2754
+ if (props.modelValue !== initialMarkdown)
2755
+ handle.setMarkdown(props.modelValue);
2756
+ handle.setReadonly(isLocked.value);
2757
+ isReady.value = true;
2758
+ if (props.autofocus) handle.focus();
2759
+ });
2760
+ watch(
2761
+ () => props.modelValue,
2762
+ (next) => {
2763
+ if (next === lastKnownMarkdown) return;
2764
+ lastKnownMarkdown = next;
2765
+ editor?.setMarkdown(next);
2766
+ }
2767
+ );
2768
+ watch(isLocked, (locked) => {
2769
+ editor?.setReadonly(locked);
2770
+ });
2771
+ onBeforeUnmount(() => {
2772
+ destroyed = true;
2773
+ editor?.destroy();
2774
+ editor = void 0;
2775
+ });
2776
+ function isInsideRoot(target) {
2777
+ return target instanceof Node && (rootRef.value?.contains(target) ?? false);
2778
+ }
2779
+ function onFocusIn(event) {
2780
+ if (!isInsideRoot(event.relatedTarget)) emit("focus");
2781
+ }
2782
+ function onFocusOut(event) {
2783
+ if (!isInsideRoot(event.relatedTarget)) emit("blur");
2784
+ }
2785
+ function focus() {
2786
+ editor?.focus();
2787
+ }
2788
+ function getMarkdown() {
2789
+ return editor?.getMarkdown() ?? props.modelValue;
2790
+ }
2791
+ __expose({ focus, getMarkdown });
2792
+ return (_ctx, _cache) => {
2793
+ return openBlock(), createElementBlock("div", {
2794
+ ref_key: "rootRef",
2795
+ ref: rootRef,
2796
+ class: normalizeClass([
2797
+ "ck-milkdown min-w-0 break-words",
2798
+ isReady.value && "ck-milkdown--ready",
2799
+ __props.disabled && "ck-milkdown--disabled"
2800
+ ]),
2801
+ "aria-disabled": __props.disabled || void 0,
2802
+ onFocusin: onFocusIn,
2803
+ onFocusout: onFocusOut
2804
+ }, null, 42, _hoisted_1$1);
2805
+ };
2806
+ }
2807
+ });
2808
+ const CkMilkdownEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f33efa98"]]);
2703
2809
  const _hoisted_1 = {
2704
2810
  key: 1,
2705
2811
  class: "flex size-8 shrink-0 items-center justify-center rounded-2xl bg-background-surface-muted-subtle"
@@ -2750,7 +2856,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2750
2856
  }
2751
2857
  __expose({ scrollToMessage });
2752
2858
  return (_ctx, _cache) => {
2753
- return openBlock(), createBlock(_sfc_main$m, {
2859
+ return openBlock(), createBlock(_sfc_main$n, {
2754
2860
  ref_key: "layoutRef",
2755
2861
  ref: layoutRef,
2756
2862
  messages: __props.messages
@@ -2773,7 +2879,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2773
2879
  ]),
2774
2880
  "agent-message": withCtx(({ message }) => [
2775
2881
  renderSlot(_ctx.$slots, "agent-message", { message }, () => [
2776
- createVNode(_sfc_main$s, {
2882
+ createVNode(_sfc_main$t, {
2777
2883
  "bottom-separator": message.id !== lastAgentMessageId.value
2778
2884
  }, createSlots({
2779
2885
  footer: withCtx(() => [
@@ -2788,7 +2894,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2788
2894
  ]),
2789
2895
  default: withCtx(() => [
2790
2896
  renderSlot(_ctx.$slots, "agent-message-content", { message }, () => [
2791
- createVNode(_sfc_main$g, {
2897
+ createVNode(_sfc_main$h, {
2792
2898
  content: getMessageText(message),
2793
2899
  classes: __props.agentMarkdownClasses
2794
2900
  }, {
@@ -2810,7 +2916,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2810
2916
  name: "header",
2811
2917
  fn: withCtx(() => [
2812
2918
  renderSlot(_ctx.$slots, "agent-message-header", { message }, () => [
2813
- createVNode(_sfc_main$r, null, createSlots({
2919
+ createVNode(_sfc_main$s, null, createSlots({
2814
2920
  default: withCtx(() => [
2815
2921
  renderSlot(_ctx.$slots, "agent-message-header-content", { message })
2816
2922
  ]),
@@ -2944,7 +3050,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2944
3050
  }
2945
3051
  return (_ctx, _cache) => {
2946
3052
  return openBlock(), createElementBlock("div", null, [
2947
- createVNode(_sfc_main$b, {
3053
+ createVNode(_sfc_main$c, {
2948
3054
  class: normalizeClass([
2949
3055
  isExpanded.value && props.maxHeight ? "overflow-y-auto" : void 0,
2950
3056
  props.contentClass
@@ -2966,7 +3072,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2966
3072
  edit: () => emit("edit", conversation),
2967
3073
  delete: () => emit("delete", conversation)
2968
3074
  }, () => [
2969
- createVNode(_sfc_main$c, {
3075
+ createVNode(_sfc_main$d, {
2970
3076
  as: "a",
2971
3077
  href: hrefFor(conversation),
2972
3078
  "is-active": conversation.id === props.activeId,
@@ -3033,34 +3139,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3033
3139
  }
3034
3140
  });
3035
3141
  export {
3036
- CkUserMessage as A,
3037
- formatRelativeTime as B,
3142
+ _sfc_main$u as A,
3143
+ CkUserMessage as B,
3038
3144
  CkCitationLabel as C,
3039
- _sfc_main$s as _,
3040
- _sfc_main$r as a,
3041
- _sfc_main$n as b,
3042
- _sfc_main$p as c,
3145
+ formatRelativeTime as D,
3146
+ _sfc_main$t as _,
3147
+ _sfc_main$s as a,
3148
+ _sfc_main$o as b,
3149
+ _sfc_main$q as c,
3043
3150
  _sfc_main$1 as d,
3044
- _sfc_main$m as e,
3151
+ _sfc_main$n as e,
3045
3152
  CkCopyMessageButton as f,
3046
3153
  CkDropZoneOverlay as g,
3047
- _sfc_main$2 as h,
3154
+ _sfc_main$3 as h,
3048
3155
  CkFeedbackButton as i,
3049
3156
  CkFeedbackDialog as j,
3050
- _sfc_main$d as k,
3051
- _sfc_main$q as l,
3157
+ _sfc_main$e as k,
3158
+ _sfc_main$r as l,
3052
3159
  _sfc_main as m,
3053
- _sfc_main$c as n,
3054
- _sfc_main$b as o,
3055
- _sfc_main$g as p,
3056
- _sfc_main$l as q,
3057
- _sfc_main$a as r,
3058
- CkPromptInput as s,
3059
- _sfc_main$5 as t,
3060
- _sfc_main$8 as u,
3160
+ _sfc_main$d as n,
3161
+ _sfc_main$c as o,
3162
+ _sfc_main$h as p,
3163
+ _sfc_main$m as q,
3164
+ CkMilkdownEditor as r,
3165
+ _sfc_main$b as s,
3166
+ CkPromptInput as t,
3167
+ _sfc_main$6 as u,
3061
3168
  _sfc_main$9 as v,
3062
- _sfc_main$7 as w,
3063
- _sfc_main$4 as x,
3064
- _sfc_main$u as y,
3065
- _sfc_main$t as z
3169
+ _sfc_main$a as w,
3170
+ _sfc_main$8 as x,
3171
+ _sfc_main$5 as y,
3172
+ _sfc_main$v as z
3066
3173
  };