@aleph-alpha/chat-kit 5.13.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.
- package/dist/{CkHistory.vue_vue_type_script_setup_true_lang-BNcJURkq.js → CkHistory.vue_vue_type_script_setup_true_lang-Cr8vF94e.js} +221 -115
- package/dist/adapters/responses-api.d.ts +1 -1
- package/dist/adapters/responses-api.d.ts.map +1 -1
- package/dist/adapters/responses-api.js +9 -7
- package/dist/apl-fqmucPXA.js +140 -0
- package/dist/asciiarmor-DucZyvP0.js +56 -0
- package/dist/asn1-BnOEsgAm.js +144 -0
- package/dist/asterisk-QAlztEwS.js +345 -0
- package/dist/brainfuck-DZVCuF_t.js +53 -0
- package/dist/chat-kit.css +1177 -12
- package/dist/clike-CTYGlS6x.js +799 -0
- package/dist/clojure-BhXMqnxz.js +849 -0
- package/dist/cmake-BGaNd9E7.js +71 -0
- package/dist/cobol-4yqQntpt.js +120 -0
- package/dist/coffeescript-D2dXvhEc.js +308 -0
- package/dist/commonlisp-CF_VNHQR.js +130 -0
- package/dist/components/base/CkHistoryItem/CkHistoryItem.vue.d.ts.map +1 -1
- package/dist/components/base/CkHistoryWrapper/CkHistoryWrapper.vue.d.ts.map +1 -1
- package/dist/components/base/CkMarkdownRenderer/CkMarkdownRenderer.stories.d.ts.map +1 -1
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts +41 -0
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts +26 -0
- package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts +20 -0
- package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts +42 -0
- package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/crepeIcons.d.ts +33 -0
- package/dist/components/base/CkMilkdownEditor/crepeIcons.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/index.d.ts +3 -0
- package/dist/components/base/CkMilkdownEditor/index.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/markdownClassAttrs.d.ts +16 -0
- package/dist/components/base/CkMilkdownEditor/markdownClassAttrs.d.ts.map +1 -0
- package/dist/components/base/CkMilkdownEditor/types.d.ts +98 -0
- package/dist/components/base/CkMilkdownEditor/types.d.ts.map +1 -0
- package/dist/components/base/index.d.ts +2 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +12 -11
- package/dist/composables/fileUpload/useFileUpload.d.ts.map +1 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/useChat.d.ts.map +1 -1
- package/dist/composables/useConversations.d.ts.map +1 -1
- package/dist/createCrepeEditor-CFbvSH3s.js +74141 -0
- package/dist/crystal-DyuLTqLs.js +398 -0
- package/dist/css-DkSyTW67.js +1772 -0
- package/dist/cypher-Dlu_3r4V.js +121 -0
- package/dist/d-UURgV0Ux.js +179 -0
- package/dist/diff-B_Bi2Crb.js +25 -0
- package/dist/dockerfile-Bvk733Ga.js +201 -0
- package/dist/dtd-Dy74G54E.js +114 -0
- package/dist/dylan-TSb-Nfix.js +314 -0
- package/dist/ebnf-4fKAGW3a.js +140 -0
- package/dist/ecl-B59qGGVg.js +178 -0
- package/dist/eiffel-Dze7nlu3.js +134 -0
- package/dist/elm-DG7jkhNZ.js +176 -0
- package/dist/erlang-BO6gOnGA.js +674 -0
- package/dist/factor-CMxFHDqz.js +65 -0
- package/dist/fcl-CDDUNjTj.js +141 -0
- package/dist/forth-B9D2JCeE.js +116 -0
- package/dist/fortran-CAG2BFbe.js +467 -0
- package/dist/gas-0Aw8zDr5.js +293 -0
- package/dist/gherkin-DhZlEZiy.js +115 -0
- package/dist/groovy-CpwJiBl7.js +223 -0
- package/dist/handlers/index.js +1 -1
- package/dist/handlers/useChatKitLabels.d.ts +62 -1
- package/dist/handlers/useChatKitLabels.d.ts.map +1 -1
- package/dist/haskell-ySd-OUo8.js +459 -0
- package/dist/haxe-7MlzfeYV.js +514 -0
- package/dist/http-BqypyemW.js +79 -0
- package/dist/idl-4HIGJlDI.js +985 -0
- package/dist/index-A5rWjRtZ.js +689 -0
- package/dist/index-B0ldhzaj.js +385 -0
- package/dist/index-BVOjyn3y.js +2490 -0
- package/dist/index-BWvkps_G.js +309 -0
- package/dist/index-BaS8OW8V.js +151 -0
- package/dist/index-BlHHEbV-.js +406 -0
- package/dist/index-BoqzHVNB.js +82 -0
- package/dist/index-C6zYjwIQ.js +704 -0
- package/dist/{index-Dn4ctxk8.js → index-C72e57-5.js} +48 -24
- package/dist/index-CMJGuXap.js +330 -0
- package/dist/index-CRfGWVdQ.js +116 -0
- package/dist/index-C_gTb50u.js +81 -0
- package/dist/index-DSU7cBGz.js +178 -0
- package/dist/index-DSq3gvqU.js +1767 -0
- package/dist/index-Da3777l2.js +289 -0
- package/dist/index-DdlzabmR.js +1021 -0
- package/dist/index-DhY_9bdS.js +61 -0
- package/dist/index-Dm6C1blN.js +1052 -0
- package/dist/index-Tj3pzx-E.js +327 -0
- package/dist/index-ZeRS5rER.js +97 -0
- package/dist/index-gzleljO6.js +157 -0
- package/dist/index-naWlQpaL.js +642 -0
- package/dist/index-sKO1lHHC.js +312 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -14
- package/dist/javascript-Bt8B7yTi.js +992 -0
- package/dist/julia-Bs6JJhYG.js +407 -0
- package/dist/livescript-DmzgM3Yt.js +296 -0
- package/dist/lua-Cvg8VrAA.js +256 -0
- package/dist/mathematica-DNLOL9PQ.js +110 -0
- package/dist/mbox-Ga7d4MMN.js +117 -0
- package/dist/mirc-Dma3B8rS.js +107 -0
- package/dist/mllike-DHn7xckP.js +334 -0
- package/dist/modelica-0d55jYY0.js +147 -0
- package/dist/mscgen-DdqZYINH.js +135 -0
- package/dist/mumps-Btr8VblO.js +93 -0
- package/dist/nginx-DTDtBDVN.js +141 -0
- package/dist/nsis-CyKBdPWp.js +62 -0
- package/dist/ntriples-CvgOYMpL.js +153 -0
- package/dist/octave-DYBj3-tl.js +200 -0
- package/dist/oz-R_e8WMIi.js +231 -0
- package/dist/pascal-GD8iposT.js +105 -0
- package/dist/perl-DL9mHpoi.js +1105 -0
- package/dist/pig-C_4T4YIV.js +101 -0
- package/dist/powershell-B0suO7Vd.js +328 -0
- package/dist/properties-BR-vP1aU.js +58 -0
- package/dist/protobuf-BxgpyhoW.js +77 -0
- package/dist/pug-vHnWR0UE.js +405 -0
- package/dist/puppet-Bdao66PW.js +137 -0
- package/dist/python-BFGRmuZ9.js +426 -0
- package/dist/q-CrbCVq4a.js +131 -0
- package/dist/r-V7nswm59.js +170 -0
- package/dist/rpm-C-DLY-If.js +109 -0
- package/dist/ruby-CQTpZw6f.js +331 -0
- package/dist/sas-D2UG-yhZ.js +207 -0
- package/dist/scheme-BKzrkGJD.js +222 -0
- package/dist/shell-BlsXDxCn.js +222 -0
- package/dist/sieve-CjwBwOY5.js +135 -0
- package/dist/simple-mode-DMneyfDu.js +130 -0
- package/dist/smalltalk-BOIGQuhN.js +121 -0
- package/dist/solr-CwD7U71z.js +69 -0
- package/dist/sparql-DYskk2vE.js +249 -0
- package/dist/spreadsheet-Bgtt3oLP.js +87 -0
- package/dist/sql-Cei9CMfk.js +342 -0
- package/dist/stex-C1nZSzAw.js +230 -0
- package/dist/stylus-BkS-boTH.js +565 -0
- package/dist/swift-FRZi1uvB.js +291 -0
- package/dist/tcl-CUcaCdmq.js +114 -0
- package/dist/test-utils/createTextPlugin.d.ts +7 -1
- package/dist/test-utils/createTextPlugin.d.ts.map +1 -1
- package/dist/textile-BnFpjsrl.js +414 -0
- package/dist/tiddlywiki-CjprD-Qp.js +218 -0
- package/dist/tiki-DK9DOeWn.js +268 -0
- package/dist/toml-BOuWGMcf.js +76 -0
- package/dist/troff-E1bJ0PPL.js +61 -0
- package/dist/ttcn-cfg-Dc39-fIP.js +133 -0
- package/dist/ttcn-tKd4HLu4.js +192 -0
- package/dist/turtle-Dq7-1WAf.js +124 -0
- package/dist/{useChatKitLabels-CMOr3Kjq.js → useChatKitLabels-Ww1Q7xUr.js} +26 -3
- package/dist/vb-Dp90gtsv.js +196 -0
- package/dist/vbscript-Bfn8O8I7.js +478 -0
- package/dist/velocity-BwIZK1TH.js +149 -0
- package/dist/verilog-CnT9bMk0.js +429 -0
- package/dist/vhdl-DCkMIyT9.js +158 -0
- package/dist/webidl-BTLTThCm.js +204 -0
- package/dist/xquery-BrBUuxMR.js +525 -0
- package/dist/yacas-b5lAVEIl.js +130 -0
- package/dist/z80-ClgwfNdB.js +92 -0
- package/package.json +11 -5
- package/src/adapters/responses-api.spec.ts +86 -0
- package/src/adapters/responses-api.ts +13 -9
- package/src/components/base/CkCitationCard/CkCitationCard.vue +1 -1
- package/src/components/base/CkCitationLabel/CkCitationLabel.vue +1 -1
- package/src/components/base/CkConversationLayout/CkConversationLayout.spec.ts +1 -5
- package/src/components/base/CkCopyMessageButton/CkCopyMessageButton.spec.ts +1 -1
- package/src/components/base/CkFeedbackButton/CkFeedbackButton.vue +3 -3
- package/src/components/base/CkFeedbackDialog/CkFeedbackDialog.vue +9 -9
- package/src/components/base/CkHistoryItem/CkHistoryItem.vue +5 -7
- package/src/components/base/CkHistoryWrapper/CkHistoryWrapper.vue +2 -1
- package/src/components/base/CkMarkdownRenderer/CkMarkdownRenderer.stories.ts +9 -4
- package/src/components/base/CkMarkdownRenderer/CkMarkdownRenderer.vue +1 -1
- package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.spec.ts +221 -0
- package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.ts +274 -0
- package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.vue +151 -0
- package/src/components/base/CkMilkdownEditor/codeMirrorTheme.ts +132 -0
- package/src/components/base/CkMilkdownEditor/createCrepeEditor.ts +192 -0
- package/src/components/base/CkMilkdownEditor/crepeIcons.ts +77 -0
- package/src/components/base/CkMilkdownEditor/index.ts +2 -0
- package/src/components/base/CkMilkdownEditor/markdownClassAttrs.ts +64 -0
- package/src/components/base/CkMilkdownEditor/milkdown-theme.css +441 -0
- package/src/components/base/CkMilkdownEditor/types.ts +100 -0
- package/src/components/base/CkModelSelector/CkModelSelector.vue +3 -3
- package/src/components/base/CkPromptInputDisclaimer/CkPromptInputDisclaimer.stories.ts +2 -2
- package/src/components/base/index.ts +6 -0
- package/src/components/index.ts +4 -0
- package/src/composables/fileUpload/useFileUpload.ts +45 -30
- package/src/composables/fileUpload/useFileUploadWrapper.spec.ts +1 -1
- package/src/composables/fileUpload/useFileUploadWrapper.ts +3 -3
- package/src/composables/useChat.ts +3 -1
- package/src/composables/useConversations.ts +8 -5
- package/src/handlers/useChatKitLabels.spec.ts +0 -1
- package/src/handlers/useChatKitLabels.ts +29 -2
- package/src/handlers/useMarkdownParser.ts +1 -1
- package/src/index.ts +4 -0
- package/src/test-setup.ts +3 -3
- package/src/test-utils/createTextPlugin.ts +11 -3
|
@@ -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-
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
382
|
+
const CkCitationLabel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-66ed453e"]]);
|
|
383
383
|
const CLOSE_DELAY_MS = 80;
|
|
384
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
736
|
+
const _hoisted_1$c = {
|
|
737
737
|
class: "sr-only",
|
|
738
738
|
"aria-live": "polite"
|
|
739
739
|
};
|
|
740
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
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$
|
|
832
|
-
const _hoisted_1$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1055
|
-
const _hoisted_1$
|
|
1056
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
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$
|
|
1158
|
+
], 8, _hoisted_1$9);
|
|
1159
1159
|
};
|
|
1160
1160
|
}
|
|
1161
1161
|
});
|
|
1162
|
-
const CkFeedbackButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1556
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1868
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1869
1869
|
...{
|
|
1870
1870
|
name: "CkHistoryItem",
|
|
1871
1871
|
inheritAttrs: false
|
|
@@ -1959,13 +1959,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1959
1959
|
props.actionPopoverContentClass
|
|
1960
1960
|
]);
|
|
1961
1961
|
const passthroughAttrs = computed(() => {
|
|
1962
|
-
const {
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
...rest
|
|
1968
|
-
} = attrs;
|
|
1962
|
+
const rest = { ...attrs };
|
|
1963
|
+
delete rest.class;
|
|
1964
|
+
delete rest.as;
|
|
1965
|
+
delete rest.asChild;
|
|
1966
|
+
delete rest["as-child"];
|
|
1969
1967
|
return rest;
|
|
1970
1968
|
});
|
|
1971
1969
|
const primitiveAs = computed(() => attrs.as ?? "button");
|
|
@@ -2101,12 +2099,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2101
2099
|
}))
|
|
2102
2100
|
], 42, _hoisted_10))
|
|
2103
2101
|
], 34)) : createCommentVNode("", true)
|
|
2104
|
-
], 10, _hoisted_1$
|
|
2102
|
+
], 10, _hoisted_1$6);
|
|
2105
2103
|
};
|
|
2106
2104
|
}
|
|
2107
2105
|
});
|
|
2108
2106
|
const baseClass = "flex w-full min-w-0 flex-col py-2";
|
|
2109
|
-
const _sfc_main$
|
|
2107
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2110
2108
|
...{
|
|
2111
2109
|
name: "CkHistoryWrapper",
|
|
2112
2110
|
inheritAttrs: false
|
|
@@ -2123,7 +2121,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2123
2121
|
return [baseClass, props.withGap ? "gap-1" : void 0, consumerClass].filter(Boolean).join(" ");
|
|
2124
2122
|
});
|
|
2125
2123
|
const passthroughAttrs = computed(() => {
|
|
2126
|
-
const
|
|
2124
|
+
const rest = { ...attrs };
|
|
2125
|
+
delete rest.class;
|
|
2127
2126
|
return rest;
|
|
2128
2127
|
});
|
|
2129
2128
|
return (_ctx, _cache) => {
|
|
@@ -2136,7 +2135,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2136
2135
|
};
|
|
2137
2136
|
}
|
|
2138
2137
|
});
|
|
2139
|
-
const _hoisted_1$
|
|
2138
|
+
const _hoisted_1$5 = ["disabled", "aria-expanded", "aria-label"];
|
|
2140
2139
|
const _hoisted_2$2 = { class: "min-w-0 max-w-[10rem] truncate" };
|
|
2141
2140
|
const _hoisted_3$1 = ["aria-label"];
|
|
2142
2141
|
const _hoisted_4$1 = ["aria-selected", "onClick"];
|
|
@@ -2146,7 +2145,7 @@ const _hoisted_7 = {
|
|
|
2146
2145
|
key: 0,
|
|
2147
2146
|
class: "min-w-0 truncate text-xs text-content-on-surface-muted"
|
|
2148
2147
|
};
|
|
2149
|
-
const _sfc_main$
|
|
2148
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2150
2149
|
...{ name: "CkModelSelector" },
|
|
2151
2150
|
__name: "CkModelSelector",
|
|
2152
2151
|
props: {
|
|
@@ -2203,7 +2202,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2203
2202
|
class: "shrink-0",
|
|
2204
2203
|
"aria-hidden": "true"
|
|
2205
2204
|
})
|
|
2206
|
-
], 8, _hoisted_1$
|
|
2205
|
+
], 8, _hoisted_1$5)
|
|
2207
2206
|
]),
|
|
2208
2207
|
_: 1
|
|
2209
2208
|
}),
|
|
@@ -2257,7 +2256,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2257
2256
|
};
|
|
2258
2257
|
}
|
|
2259
2258
|
});
|
|
2260
|
-
const _sfc_main$
|
|
2259
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2261
2260
|
...{ name: "CkPromptSendButton" },
|
|
2262
2261
|
__name: "CkPromptSendButton",
|
|
2263
2262
|
props: {
|
|
@@ -2283,7 +2282,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2283
2282
|
};
|
|
2284
2283
|
}
|
|
2285
2284
|
});
|
|
2286
|
-
const _sfc_main$
|
|
2285
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2287
2286
|
...{ name: "CkPromptMenuButton" },
|
|
2288
2287
|
__name: "CkPromptMenuButton",
|
|
2289
2288
|
props: {
|
|
@@ -2313,7 +2312,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2313
2312
|
};
|
|
2314
2313
|
}
|
|
2315
2314
|
});
|
|
2316
|
-
const _sfc_main$
|
|
2315
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2317
2316
|
...{ name: "CkPromptStopButton" },
|
|
2318
2317
|
__name: "CkPromptStopButton",
|
|
2319
2318
|
props: {
|
|
@@ -2339,7 +2338,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2339
2338
|
};
|
|
2340
2339
|
}
|
|
2341
2340
|
});
|
|
2342
|
-
const _hoisted_1$
|
|
2341
|
+
const _hoisted_1$4 = { class: "ck-prompt-root flex flex-col gap-2" };
|
|
2343
2342
|
const _hoisted_2$1 = {
|
|
2344
2343
|
key: 0,
|
|
2345
2344
|
style: { "grid-area": "top" }
|
|
@@ -2347,7 +2346,7 @@ const _hoisted_2$1 = {
|
|
|
2347
2346
|
const _hoisted_3 = ["for"];
|
|
2348
2347
|
const _hoisted_4 = ["id", "value", "placeholder", "disabled"];
|
|
2349
2348
|
const MAX_LINES = 6;
|
|
2350
|
-
const _sfc_main$
|
|
2349
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2351
2350
|
...{ name: "CkPromptInput" },
|
|
2352
2351
|
__name: "CkPromptInput",
|
|
2353
2352
|
props: {
|
|
@@ -2436,7 +2435,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2436
2435
|
onMounted(adjustHeight);
|
|
2437
2436
|
__expose({ focus, submit });
|
|
2438
2437
|
return (_ctx, _cache) => {
|
|
2439
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2438
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
2440
2439
|
createElementVNode("form", {
|
|
2441
2440
|
class: normalizeClass([
|
|
2442
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)] ",
|
|
@@ -2498,12 +2497,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2498
2497
|
};
|
|
2499
2498
|
}
|
|
2500
2499
|
});
|
|
2501
|
-
const CkPromptInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2502
|
-
const _hoisted_1$
|
|
2500
|
+
const CkPromptInput = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-c6b78cec"]]);
|
|
2501
|
+
const _hoisted_1$3 = {
|
|
2503
2502
|
key: 0,
|
|
2504
2503
|
class: "text-center text-content-on-surface-muted text-xs font-normal leading-4"
|
|
2505
2504
|
};
|
|
2506
|
-
const _sfc_main$
|
|
2505
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2507
2506
|
...{ name: "CkPromptInputDisclaimer" },
|
|
2508
2507
|
__name: "CkPromptInputDisclaimer",
|
|
2509
2508
|
props: {
|
|
@@ -2511,7 +2510,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2511
2510
|
},
|
|
2512
2511
|
setup(__props) {
|
|
2513
2512
|
return (_ctx, _cache) => {
|
|
2514
|
-
return _ctx.$slots.default || __props.text ? (openBlock(), createElementBlock("p", _hoisted_1$
|
|
2513
|
+
return _ctx.$slots.default || __props.text ? (openBlock(), createElementBlock("p", _hoisted_1$3, [
|
|
2515
2514
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2516
2515
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2517
2516
|
])
|
|
@@ -2519,7 +2518,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2519
2518
|
};
|
|
2520
2519
|
}
|
|
2521
2520
|
});
|
|
2522
|
-
const _sfc_main$
|
|
2521
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2523
2522
|
...{
|
|
2524
2523
|
name: "CkRegenerateMessageButton"
|
|
2525
2524
|
},
|
|
@@ -2546,7 +2545,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2546
2545
|
"delay-duration": 0
|
|
2547
2546
|
}, {
|
|
2548
2547
|
default: withCtx(() => [
|
|
2549
|
-
createVNode(unref(_sfc_main$
|
|
2548
|
+
createVNode(unref(_sfc_main$m), mergeProps({ ariaLabel: __props.ariaLabel }, {
|
|
2550
2549
|
disabled: __props.disabled,
|
|
2551
2550
|
onClick: handleClick
|
|
2552
2551
|
}), {
|
|
@@ -2565,9 +2564,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2565
2564
|
};
|
|
2566
2565
|
}
|
|
2567
2566
|
});
|
|
2568
|
-
const _hoisted_1$
|
|
2567
|
+
const _hoisted_1$2 = { class: "inline-flex max-w-[536px] flex-col items-end justify-start gap-1" };
|
|
2569
2568
|
const _hoisted_2 = ["aria-expanded"];
|
|
2570
|
-
const _sfc_main$
|
|
2569
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2571
2570
|
...{ name: "CkUserMessage" },
|
|
2572
2571
|
__name: "CkUserMessage",
|
|
2573
2572
|
props: {
|
|
@@ -2612,7 +2611,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2612
2611
|
nextTick(measure);
|
|
2613
2612
|
});
|
|
2614
2613
|
return (_ctx, _cache) => {
|
|
2615
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2614
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
2616
2615
|
createElementVNode("div", {
|
|
2617
2616
|
ref_key: "contentRef",
|
|
2618
2617
|
ref: contentRef,
|
|
@@ -2639,8 +2638,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2639
2638
|
};
|
|
2640
2639
|
}
|
|
2641
2640
|
});
|
|
2642
|
-
const CkUserMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2643
|
-
const _sfc_main$
|
|
2641
|
+
const CkUserMessage = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-75aacd04"]]);
|
|
2642
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2644
2643
|
...{ name: "CkEditableUserMessage" },
|
|
2645
2644
|
__name: "CkEditableUserMessage",
|
|
2646
2645
|
props: {
|
|
@@ -2701,6 +2700,112 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2701
2700
|
};
|
|
2702
2701
|
}
|
|
2703
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"]]);
|
|
2704
2809
|
const _hoisted_1 = {
|
|
2705
2810
|
key: 1,
|
|
2706
2811
|
class: "flex size-8 shrink-0 items-center justify-center rounded-2xl bg-background-surface-muted-subtle"
|
|
@@ -2751,7 +2856,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2751
2856
|
}
|
|
2752
2857
|
__expose({ scrollToMessage });
|
|
2753
2858
|
return (_ctx, _cache) => {
|
|
2754
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2859
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
2755
2860
|
ref_key: "layoutRef",
|
|
2756
2861
|
ref: layoutRef,
|
|
2757
2862
|
messages: __props.messages
|
|
@@ -2774,7 +2879,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2774
2879
|
]),
|
|
2775
2880
|
"agent-message": withCtx(({ message }) => [
|
|
2776
2881
|
renderSlot(_ctx.$slots, "agent-message", { message }, () => [
|
|
2777
|
-
createVNode(_sfc_main$
|
|
2882
|
+
createVNode(_sfc_main$t, {
|
|
2778
2883
|
"bottom-separator": message.id !== lastAgentMessageId.value
|
|
2779
2884
|
}, createSlots({
|
|
2780
2885
|
footer: withCtx(() => [
|
|
@@ -2789,7 +2894,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2789
2894
|
]),
|
|
2790
2895
|
default: withCtx(() => [
|
|
2791
2896
|
renderSlot(_ctx.$slots, "agent-message-content", { message }, () => [
|
|
2792
|
-
createVNode(_sfc_main$
|
|
2897
|
+
createVNode(_sfc_main$h, {
|
|
2793
2898
|
content: getMessageText(message),
|
|
2794
2899
|
classes: __props.agentMarkdownClasses
|
|
2795
2900
|
}, {
|
|
@@ -2811,7 +2916,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2811
2916
|
name: "header",
|
|
2812
2917
|
fn: withCtx(() => [
|
|
2813
2918
|
renderSlot(_ctx.$slots, "agent-message-header", { message }, () => [
|
|
2814
|
-
createVNode(_sfc_main$
|
|
2919
|
+
createVNode(_sfc_main$s, null, createSlots({
|
|
2815
2920
|
default: withCtx(() => [
|
|
2816
2921
|
renderSlot(_ctx.$slots, "agent-message-header-content", { message })
|
|
2817
2922
|
]),
|
|
@@ -2945,7 +3050,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2945
3050
|
}
|
|
2946
3051
|
return (_ctx, _cache) => {
|
|
2947
3052
|
return openBlock(), createElementBlock("div", null, [
|
|
2948
|
-
createVNode(_sfc_main$
|
|
3053
|
+
createVNode(_sfc_main$c, {
|
|
2949
3054
|
class: normalizeClass([
|
|
2950
3055
|
isExpanded.value && props.maxHeight ? "overflow-y-auto" : void 0,
|
|
2951
3056
|
props.contentClass
|
|
@@ -2967,7 +3072,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2967
3072
|
edit: () => emit("edit", conversation),
|
|
2968
3073
|
delete: () => emit("delete", conversation)
|
|
2969
3074
|
}, () => [
|
|
2970
|
-
createVNode(_sfc_main$
|
|
3075
|
+
createVNode(_sfc_main$d, {
|
|
2971
3076
|
as: "a",
|
|
2972
3077
|
href: hrefFor(conversation),
|
|
2973
3078
|
"is-active": conversation.id === props.activeId,
|
|
@@ -3034,34 +3139,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3034
3139
|
}
|
|
3035
3140
|
});
|
|
3036
3141
|
export {
|
|
3037
|
-
|
|
3038
|
-
|
|
3142
|
+
_sfc_main$u as A,
|
|
3143
|
+
CkUserMessage as B,
|
|
3039
3144
|
CkCitationLabel as C,
|
|
3040
|
-
|
|
3041
|
-
_sfc_main$
|
|
3042
|
-
_sfc_main$
|
|
3043
|
-
_sfc_main$
|
|
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,
|
|
3044
3150
|
_sfc_main$1 as d,
|
|
3045
|
-
_sfc_main$
|
|
3151
|
+
_sfc_main$n as e,
|
|
3046
3152
|
CkCopyMessageButton as f,
|
|
3047
3153
|
CkDropZoneOverlay as g,
|
|
3048
|
-
_sfc_main$
|
|
3154
|
+
_sfc_main$3 as h,
|
|
3049
3155
|
CkFeedbackButton as i,
|
|
3050
3156
|
CkFeedbackDialog as j,
|
|
3051
|
-
_sfc_main$
|
|
3052
|
-
_sfc_main$
|
|
3157
|
+
_sfc_main$e as k,
|
|
3158
|
+
_sfc_main$r as l,
|
|
3053
3159
|
_sfc_main as m,
|
|
3054
|
-
_sfc_main$
|
|
3055
|
-
_sfc_main$
|
|
3056
|
-
_sfc_main$
|
|
3057
|
-
_sfc_main$
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
_sfc_main$
|
|
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,
|
|
3062
3168
|
_sfc_main$9 as v,
|
|
3063
|
-
_sfc_main$
|
|
3064
|
-
_sfc_main$
|
|
3065
|
-
_sfc_main$
|
|
3066
|
-
_sfc_main$
|
|
3169
|
+
_sfc_main$a as w,
|
|
3170
|
+
_sfc_main$8 as x,
|
|
3171
|
+
_sfc_main$5 as y,
|
|
3172
|
+
_sfc_main$v as z
|
|
3067
3173
|
};
|