@blueking/ai-blueking 2.0.0-dev.13 → 2.0.0-dev.15
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/components/chat-bot.vue.d.ts.map +1 -1
- package/dist/vue2/index.es.min.js +4 -4
- package/dist/vue2/index.iife.min.js +187 -187
- package/dist/vue2/index.umd.min.js +3 -3
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.es.min.js +4 -4
- package/dist/vue3/index.iife.min.js +3 -3
- package/dist/vue3/index.umd.min.js +3 -3
- package/dist/vue3/style.css +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-bot.vue.d.ts","sourceRoot":"","sources":["../../src/components/chat-bot.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat-bot.vue.d.ts","sourceRoot":"","sources":["../../src/components/chat-bot.vue"],"names":[],"mappings":"AAioCE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAgB,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAoC,MAAM,kBAAkB,CAAC;AAypC9F,QAAA,IAAI,QAAQ,IAAiC,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -25103,7 +25103,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$19 = ["aria-
|
|
|
25103
25103
|
let r = e, i = n, a = () => {
|
|
25104
25104
|
i("stopSending");
|
|
25105
25105
|
}, o = () => {
|
|
25106
|
-
r.messageState === MessageStatus.Pending || r.messageState === MessageStatus.Streaming || i("sendMessage");
|
|
25106
|
+
r.messageState === MessageStatus.Disabled || r.messageState === MessageStatus.Pending || r.messageState === MessageStatus.Streaming || i("sendMessage");
|
|
25107
25107
|
};
|
|
25108
25108
|
return (n, i) => (openBlock(), createElementBlock("div", _hoisted_1$26, [renderSlot(n.$slots, "default"), renderSlot(n.$slots, "send-icon", {}, () => [createElementVNode("div", { class: normalizeClass(["send-message-icon", { ["send-message-icon__" + e.messageState]: !0 }]) }, [e.messageState === unref(MessageStatus).Streaming || e.messageState === unref(MessageStatus).Pending ? withDirectives((openBlock(), createBlock(unref(LoadingMessageIcon), {
|
|
25109
25109
|
key: 0,
|
|
@@ -25149,8 +25149,8 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$19 = ["aria-
|
|
|
25149
25149
|
}),
|
|
25150
25150
|
emits: /* @__PURE__ */ mergeModels(["selectShortcut", "deleteShortcut"], ["update:modelValue", "update:cite"]),
|
|
25151
25151
|
setup(e, { expose: n, emit: r }) {
|
|
25152
|
-
useCssVars((e) => ({
|
|
25153
|
-
let i = useTemplateRef("aiSlashInputRef"), a = useTemplateRef("filesRef"), o = useModel(e, "modelValue"), s = useModel(e, "cite"), l = shallowRef(200), u = e, m = r, E = ref(u.defaultUploadFiles || []), k = computed(() => u.shortcuts?.find((e) => e.id === u.shortcutId)), j = computed(() => o.value.length < 1 || Array.isArray(o.value) && !o.value
|
|
25152
|
+
useCssVars((e) => ({ v4dd87044: unref(CHAT_Z_INDEX) }));
|
|
25153
|
+
let i = useTemplateRef("aiSlashInputRef"), a = useTemplateRef("filesRef"), o = useModel(e, "modelValue"), s = useModel(e, "cite"), l = shallowRef(200), u = e, m = r, E = ref(u.defaultUploadFiles || []), k = computed(() => u.shortcuts?.find((e) => e.id === u.shortcutId)), j = computed(() => o.value.length < 1 || Array.isArray(o.value) && !docToString(o.value).trim() ? MessageStatus.Disabled : u.messageStatus), L = computed(() => typeof u.onUpload == "function");
|
|
25154
25154
|
watchPostEffect(() => {
|
|
25155
25155
|
let e = u.inputMaxHeight || 200;
|
|
25156
25156
|
if (E.value.length < 1 || !a.value) {
|
|
@@ -25177,7 +25177,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$19 = ["aria-
|
|
|
25177
25177
|
}
|
|
25178
25178
|
}, B = (e) => {
|
|
25179
25179
|
if (e.key === "Enter" || e.key === "NumpadEnter") {
|
|
25180
|
-
if (e.shiftKey) return;
|
|
25180
|
+
if (e.shiftKey || j.value === MessageStatus.Disabled) return;
|
|
25181
25181
|
z();
|
|
25182
25182
|
}
|
|
25183
25183
|
}, H = async () => {
|