@aleph-alpha/chat-kit 5.11.0 → 5.12.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-SL1vOAd9.js → CkHistory.vue_vue_type_script_setup_true_lang-CImSzLYs.js} +118 -74
- package/dist/chat-kit.css +13 -13
- package/dist/components/base/CkCitation/CkCitation.vue.d.ts.map +1 -1
- package/dist/components/base/CkCitationLabel/CkCitationLabel.stories.d.ts +39 -0
- package/dist/components/base/CkCitationLabel/CkCitationLabel.stories.d.ts.map +1 -0
- package/dist/components/base/CkCitationLabel/CkCitationLabel.vue.d.ts +9 -0
- package/dist/components/base/CkCitationLabel/CkCitationLabel.vue.d.ts.map +1 -0
- package/dist/components/base/CkCitationLabel/index.d.ts +3 -0
- package/dist/components/base/CkCitationLabel/index.d.ts.map +1 -0
- package/dist/components/base/CkCitationLabel/types.d.ts +44 -0
- package/dist/components/base/CkCitationLabel/types.d.ts.map +1 -0
- package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.d.ts +7 -0
- package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.d.ts.map +1 -1
- package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.vue.d.ts +2 -2
- package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.vue.d.ts.map +1 -1
- package/dist/components/base/CkFeedbackDialog/types.d.ts +19 -0
- package/dist/components/base/CkFeedbackDialog/types.d.ts.map +1 -1
- package/dist/components/base/CkFileItemsList/CkFileItemsList.vue.d.ts +1 -1
- package/dist/components/base/CkUserMessage/CkUserMessage.vue.d.ts.map +1 -1
- package/dist/components/base/index.d.ts +2 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/composed/CkConversation/CkConversation.stories.d.ts +12 -0
- package/dist/components/composed/CkConversation/CkConversation.stories.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 +28 -27
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -28
- package/dist/types.d.ts +33 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/base/CkCitation/CkCitation.spec.ts +11 -0
- package/src/components/base/CkCitation/CkCitation.vue +9 -36
- package/src/components/base/CkCitationLabel/CkCitationLabel.spec.ts +73 -0
- package/src/components/base/CkCitationLabel/CkCitationLabel.stories.ts +86 -0
- package/src/components/base/CkCitationLabel/CkCitationLabel.vue +69 -0
- package/src/components/base/CkCitationLabel/index.ts +2 -0
- package/src/components/base/CkCitationLabel/types.ts +43 -0
- package/src/components/base/CkFeedbackDialog/CkFeedbackDialog.spec.ts +36 -0
- package/src/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.ts +42 -0
- package/src/components/base/CkFeedbackDialog/CkFeedbackDialog.vue +11 -1
- package/src/components/base/CkFeedbackDialog/types.ts +20 -0
- package/src/components/base/CkUserMessage/CkUserMessage.vue +1 -1
- package/src/components/base/index.ts +2 -0
- package/src/components/composed/CkConversation/CkConversation.spec.ts +65 -2
- package/src/components/composed/CkConversation/CkConversation.stories.ts +136 -0
- package/src/components/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/types.ts +34 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, createElementBlock, createElementVNode, normalizeClass, renderSlot, createCommentVNode, mergeProps, withCtx, computed, createVNode, toDisplayString, ref, onBeforeUnmount, useSlots, onMounted, nextTick, onUnmounted, watch, Fragment, renderList, normalizeStyle, Transition, createStaticVNode, Teleport, withModifiers, toValue, h, toRefs, useId,
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, createElementBlock, createElementVNode, normalizeClass, renderSlot, createCommentVNode, mergeProps, withCtx, computed, createVNode, toDisplayString, resolveDynamicComponent, createTextVNode, ref, onBeforeUnmount, useSlots, onMounted, nextTick, onUnmounted, watch, Fragment, renderList, normalizeStyle, Transition, createStaticVNode, Teleport, withModifiers, toValue, h, toRefs, useId, useAttrs, useTemplateRef, onUpdated, createSlots, normalizeProps, guardReactiveProps, Comment, Text } from "vue";
|
|
2
2
|
import { UiIcon, UiButton, UiFileType, UiPopover, UiPopoverTrigger, UiPopoverContent, UiTooltip, 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
3
|
import { u as useChatKitLabels, d as defaultChatKitLabels, r as remarkCitations, b as useMarkdownParser } from "./useChatKitLabels-CMOr3Kjq.js";
|
|
4
4
|
const MINUTE = 60;
|
|
@@ -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$u = /* @__PURE__ */ defineComponent({
|
|
40
40
|
...{ name: "CkSendIcon" },
|
|
41
41
|
__name: "CkSendIcon",
|
|
42
42
|
setup(__props) {
|
|
@@ -45,19 +45,19 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
const _hoisted_1$
|
|
48
|
+
const _hoisted_1$g = {
|
|
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$t = /* @__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$g, [..._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$s = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
const _hoisted_1$
|
|
69
|
+
const _hoisted_1$f = {
|
|
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$s = /* @__PURE__ */ defineComponent({
|
|
80
80
|
...{ name: "CkAgentMessage" },
|
|
81
81
|
__name: "CkAgentMessage",
|
|
82
82
|
props: {
|
|
@@ -90,7 +90,7 @@ const _sfc_main$r = /* @__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$f, [
|
|
94
94
|
renderSlot(_ctx.$slots, "header")
|
|
95
95
|
])) : createCommentVNode("", true),
|
|
96
96
|
createElementVNode("div", _hoisted_2$a, [
|
|
@@ -103,7 +103,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
const _hoisted_1$
|
|
106
|
+
const _hoisted_1$e = {
|
|
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$r = /* @__PURE__ */ defineComponent({
|
|
118
118
|
...{ name: "CkAgentMessageHeader" },
|
|
119
119
|
__name: "CkAgentMessageHeader",
|
|
120
120
|
setup(__props) {
|
|
@@ -126,7 +126,7 @@ const _sfc_main$q = /* @__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$e, [
|
|
130
130
|
renderSlot(_ctx.$slots, "icon")
|
|
131
131
|
])) : createCommentVNode("", true),
|
|
132
132
|
createElementVNode("span", _hoisted_2$9, [
|
|
@@ -139,7 +139,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
-
const _sfc_main$
|
|
142
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
143
143
|
...{
|
|
144
144
|
name: "CkHeaderActivityButton"
|
|
145
145
|
},
|
|
@@ -181,7 +181,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
const _hoisted_1$
|
|
184
|
+
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" };
|
|
185
185
|
const _hoisted_2$8 = { class: "flex items-center gap-2" };
|
|
186
186
|
const _hoisted_3$7 = ["title"];
|
|
187
187
|
const _hoisted_4$7 = { class: "line-clamp-6 break-words text-sm leading-5 text-content-on-surface-secondary" };
|
|
@@ -189,7 +189,7 @@ const _hoisted_5$4 = {
|
|
|
189
189
|
key: 0,
|
|
190
190
|
class: "text-sm leading-5 text-content-on-surface-muted"
|
|
191
191
|
};
|
|
192
|
-
const _sfc_main$
|
|
192
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
193
193
|
...{
|
|
194
194
|
name: "CkCitationCard"
|
|
195
195
|
},
|
|
@@ -215,7 +215,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
return (_ctx, _cache) => {
|
|
218
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
218
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
219
219
|
createElementVNode("div", _hoisted_2$8, [
|
|
220
220
|
createVNode(unref(UiFileType), {
|
|
221
221
|
filename: __props.fileName,
|
|
@@ -249,7 +249,54 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
|
-
const
|
|
252
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
253
|
+
...{
|
|
254
|
+
name: "CkCitationLabel"
|
|
255
|
+
},
|
|
256
|
+
__name: "CkCitationLabel",
|
|
257
|
+
props: {
|
|
258
|
+
index: {},
|
|
259
|
+
selected: { type: Boolean, default: false },
|
|
260
|
+
as: { default: "span" },
|
|
261
|
+
ariaLabel: { default: void 0 }
|
|
262
|
+
},
|
|
263
|
+
setup(__props) {
|
|
264
|
+
const props = __props;
|
|
265
|
+
const labels = useChatKitLabels();
|
|
266
|
+
const isButton = computed(() => props.as === "button");
|
|
267
|
+
const resolvedAriaLabel = computed(
|
|
268
|
+
() => props.ariaLabel ?? `${labels.value.citationSourceLabel ?? defaultChatKitLabels.citationSourceLabel} ${props.index}`
|
|
269
|
+
);
|
|
270
|
+
return (_ctx, _cache) => {
|
|
271
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
272
|
+
type: isButton.value ? "button" : void 0,
|
|
273
|
+
role: isButton.value ? void 0 : "img",
|
|
274
|
+
"aria-label": resolvedAriaLabel.value,
|
|
275
|
+
class: normalizeClass([
|
|
276
|
+
"ck-citation mx-px inline-flex h-5 min-w-5 items-center justify-center rounded-sm px-1 align-middle text-sm leading-4 tabular-nums transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
277
|
+
// The static chip is part of the prose: it must stay selectable so the
|
|
278
|
+
// number survives a copy of the surrounding text. A control shouldn't
|
|
279
|
+
// start a text selection on click, so button mode keeps `select-none`.
|
|
280
|
+
isButton.value ? "select-none" : "",
|
|
281
|
+
__props.selected ? "bg-background-accent-soft text-black" : "bg-background-accent-yellow text-background-status-warning"
|
|
282
|
+
])
|
|
283
|
+
}, {
|
|
284
|
+
default: withCtx(() => [
|
|
285
|
+
createTextVNode(toDisplayString(__props.index), 1)
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}, 8, ["type", "role", "aria-label", "class"]);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
const _export_sfc = (sfc, props) => {
|
|
293
|
+
const target = sfc.__vccOpts || sfc;
|
|
294
|
+
for (const [key, val] of props) {
|
|
295
|
+
target[key] = val;
|
|
296
|
+
}
|
|
297
|
+
return target;
|
|
298
|
+
};
|
|
299
|
+
const CkCitationLabel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-66d74063"]]);
|
|
253
300
|
const CLOSE_DELAY_MS = 80;
|
|
254
301
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
255
302
|
...{
|
|
@@ -268,12 +315,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
268
315
|
},
|
|
269
316
|
emits: ["open-source"],
|
|
270
317
|
setup(__props, { emit: __emit }) {
|
|
271
|
-
const props = __props;
|
|
272
318
|
const emit = __emit;
|
|
273
|
-
const labels = useChatKitLabels();
|
|
274
|
-
const triggerLabel = computed(
|
|
275
|
-
() => props.ariaLabel ?? `${labels.value.citationSourceLabel ?? defaultChatKitLabels.citationSourceLabel} ${props.index}`
|
|
276
|
-
);
|
|
277
319
|
const open = ref(false);
|
|
278
320
|
const openedByPointer = ref(false);
|
|
279
321
|
let closeTimer;
|
|
@@ -327,17 +369,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
327
369
|
default: withCtx(() => [
|
|
328
370
|
createVNode(unref(UiPopoverTrigger), { "as-child": "" }, {
|
|
329
371
|
default: withCtx(() => [
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
__props.selected ? "bg-background-accent-soft text-black" : "bg-background-accent-yellow text-background-status-warning"
|
|
336
|
-
]),
|
|
372
|
+
createVNode(unref(CkCitationLabel), {
|
|
373
|
+
as: "button",
|
|
374
|
+
index: __props.index,
|
|
375
|
+
selected: __props.selected,
|
|
376
|
+
"aria-label": __props.ariaLabel,
|
|
337
377
|
onKeydown: onTriggerKeydown,
|
|
338
378
|
onMouseenter: onPointerEnter,
|
|
339
379
|
onMouseleave: onPointerLeave
|
|
340
|
-
},
|
|
380
|
+
}, null, 8, ["index", "selected", "aria-label"])
|
|
341
381
|
]),
|
|
342
382
|
_: 1
|
|
343
383
|
}),
|
|
@@ -353,7 +393,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
353
393
|
onFocusout: onContentFocusOut
|
|
354
394
|
}, {
|
|
355
395
|
default: withCtx(() => [
|
|
356
|
-
createVNode(unref(_sfc_main$
|
|
396
|
+
createVNode(unref(_sfc_main$p), {
|
|
357
397
|
"file-name": __props.fileName,
|
|
358
398
|
snippet: __props.snippet,
|
|
359
399
|
"location-label": __props.locationLabel,
|
|
@@ -370,14 +410,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
370
410
|
};
|
|
371
411
|
}
|
|
372
412
|
});
|
|
373
|
-
const _export_sfc = (sfc, props) => {
|
|
374
|
-
const target = sfc.__vccOpts || sfc;
|
|
375
|
-
for (const [key, val] of props) {
|
|
376
|
-
target[key] = val;
|
|
377
|
-
}
|
|
378
|
-
return target;
|
|
379
|
-
};
|
|
380
|
-
const CkCitation = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-73025da4"]]);
|
|
381
413
|
const _hoisted_1$c = { class: "relative flex min-h-0 flex-col overflow-hidden" };
|
|
382
414
|
const _hoisted_2$7 = ["data-message-row"];
|
|
383
415
|
const _hoisted_3$6 = {
|
|
@@ -1061,7 +1093,7 @@ function useCitationRendering(citations, onOpenSource) {
|
|
|
1061
1093
|
const source = sourcesByIndex.value.get(index);
|
|
1062
1094
|
if (!source) return null;
|
|
1063
1095
|
if (slot) return slot({ source, openSource: onOpenSource });
|
|
1064
|
-
return h(
|
|
1096
|
+
return h(_sfc_main$n, { ...source, onOpenSource });
|
|
1065
1097
|
}
|
|
1066
1098
|
return { citationPlugins, renderCitationNode };
|
|
1067
1099
|
}
|
|
@@ -1202,6 +1234,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1202
1234
|
open: { type: Boolean, default: false },
|
|
1203
1235
|
sentiment: {},
|
|
1204
1236
|
responseText: { default: "" },
|
|
1237
|
+
citations: {},
|
|
1205
1238
|
reasons: {},
|
|
1206
1239
|
maxFreeTextLength: { default: 250 },
|
|
1207
1240
|
reasonRequired: { type: Boolean, default: true },
|
|
@@ -1358,7 +1391,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1358
1391
|
_: 1
|
|
1359
1392
|
}),
|
|
1360
1393
|
createElementVNode("div", _hoisted_2$5, [
|
|
1361
|
-
createVNode(unref(_sfc_main$g), {
|
|
1394
|
+
createVNode(unref(_sfc_main$g), {
|
|
1395
|
+
content: __props.responseText,
|
|
1396
|
+
citations: __props.citations
|
|
1397
|
+
}, {
|
|
1398
|
+
citation: withCtx(({ source }) => [
|
|
1399
|
+
createVNode(unref(CkCitationLabel), {
|
|
1400
|
+
index: source.index
|
|
1401
|
+
}, null, 8, ["index"])
|
|
1402
|
+
]),
|
|
1403
|
+
_: 1
|
|
1404
|
+
}, 8, ["content", "citations"])
|
|
1362
1405
|
])
|
|
1363
1406
|
])) : createCommentVNode("", true),
|
|
1364
1407
|
createElementVNode("section", _hoisted_3$4, [
|
|
@@ -1424,7 +1467,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1424
1467
|
};
|
|
1425
1468
|
}
|
|
1426
1469
|
});
|
|
1427
|
-
const CkFeedbackDialog = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
1470
|
+
const CkFeedbackDialog = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-175a7cb9"]]);
|
|
1428
1471
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1429
1472
|
...{
|
|
1430
1473
|
name: "CkFileItemRow",
|
|
@@ -2488,7 +2531,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2488
2531
|
createElementVNode("div", {
|
|
2489
2532
|
ref_key: "contentRef",
|
|
2490
2533
|
ref: contentRef,
|
|
2491
|
-
class: normalizeClass(["ck-user-message__content text-content-on-surface-muted min-w-0 max-w-full self-stretch text-lg leading-7 font-medium break-words whitespace-pre-wrap [overflow-wrap:anywhere]", {
|
|
2534
|
+
class: normalizeClass(["ck-user-message__content select-text text-content-on-surface-muted min-w-0 max-w-full self-stretch text-lg leading-7 font-medium break-words whitespace-pre-wrap [overflow-wrap:anywhere]", {
|
|
2492
2535
|
"ck-user-message__content--clamped": clampEnabled.value && !expanded.value,
|
|
2493
2536
|
"ck-user-message__content--faded": clampEnabled.value && !expanded.value && isOverflowing.value
|
|
2494
2537
|
}]),
|
|
@@ -2511,7 +2554,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2511
2554
|
};
|
|
2512
2555
|
}
|
|
2513
2556
|
});
|
|
2514
|
-
const CkUserMessage = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
2557
|
+
const CkUserMessage = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-75aacd04"]]);
|
|
2515
2558
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2516
2559
|
...{ name: "CkEditableUserMessage" },
|
|
2517
2560
|
__name: "CkEditableUserMessage",
|
|
@@ -2646,7 +2689,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2646
2689
|
]),
|
|
2647
2690
|
"agent-message": withCtx(({ message }) => [
|
|
2648
2691
|
renderSlot(_ctx.$slots, "agent-message", { message }, () => [
|
|
2649
|
-
createVNode(_sfc_main$
|
|
2692
|
+
createVNode(_sfc_main$s, {
|
|
2650
2693
|
"bottom-separator": message.id !== lastAgentMessageId.value
|
|
2651
2694
|
}, createSlots({
|
|
2652
2695
|
footer: withCtx(() => [
|
|
@@ -2683,7 +2726,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2683
2726
|
name: "header",
|
|
2684
2727
|
fn: withCtx(() => [
|
|
2685
2728
|
renderSlot(_ctx.$slots, "agent-message-header", { message }, () => [
|
|
2686
|
-
createVNode(_sfc_main$
|
|
2729
|
+
createVNode(_sfc_main$r, null, createSlots({
|
|
2687
2730
|
default: withCtx(() => [
|
|
2688
2731
|
renderSlot(_ctx.$slots, "agent-message-header-content", { message })
|
|
2689
2732
|
]),
|
|
@@ -2906,33 +2949,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2906
2949
|
}
|
|
2907
2950
|
});
|
|
2908
2951
|
export {
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
_sfc_main$
|
|
2913
|
-
_sfc_main$
|
|
2914
|
-
_sfc_main$
|
|
2915
|
-
_sfc_main$
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
_sfc_main as
|
|
2924
|
-
_sfc_main$
|
|
2925
|
-
_sfc_main
|
|
2926
|
-
_sfc_main$
|
|
2927
|
-
_sfc_main$
|
|
2928
|
-
_sfc_main$
|
|
2929
|
-
|
|
2930
|
-
_sfc_main$
|
|
2931
|
-
|
|
2932
|
-
_sfc_main$
|
|
2933
|
-
_sfc_main$
|
|
2934
|
-
_sfc_main$
|
|
2935
|
-
_sfc_main$
|
|
2936
|
-
_sfc_main$
|
|
2937
|
-
|
|
2952
|
+
CkUserMessage as A,
|
|
2953
|
+
formatRelativeTime as B,
|
|
2954
|
+
CkCitationLabel as C,
|
|
2955
|
+
_sfc_main$s as _,
|
|
2956
|
+
_sfc_main$r as a,
|
|
2957
|
+
_sfc_main$n as b,
|
|
2958
|
+
_sfc_main$p as c,
|
|
2959
|
+
_sfc_main$1 as d,
|
|
2960
|
+
_sfc_main$m as e,
|
|
2961
|
+
CkCopyMessageButton as f,
|
|
2962
|
+
CkDropZoneOverlay as g,
|
|
2963
|
+
_sfc_main$2 as h,
|
|
2964
|
+
CkFeedbackButton as i,
|
|
2965
|
+
CkFeedbackDialog as j,
|
|
2966
|
+
_sfc_main$d as k,
|
|
2967
|
+
_sfc_main$q as l,
|
|
2968
|
+
_sfc_main as m,
|
|
2969
|
+
_sfc_main$c as n,
|
|
2970
|
+
_sfc_main$b as o,
|
|
2971
|
+
_sfc_main$g as p,
|
|
2972
|
+
_sfc_main$l as q,
|
|
2973
|
+
_sfc_main$a as r,
|
|
2974
|
+
CkPromptInput as s,
|
|
2975
|
+
_sfc_main$5 as t,
|
|
2976
|
+
_sfc_main$8 as u,
|
|
2977
|
+
_sfc_main$9 as v,
|
|
2978
|
+
_sfc_main$7 as w,
|
|
2979
|
+
_sfc_main$4 as x,
|
|
2980
|
+
_sfc_main$u as y,
|
|
2981
|
+
_sfc_main$t as z
|
|
2938
2982
|
};
|