@n8n/chat 1.18.0 → 1.18.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.
- package/dist/chat.bundle.es.js +12 -12
- package/dist/chat.bundle.umd.js +1 -1
- package/dist/chat.es.js +12 -12
- package/dist/chat.umd.js +1 -1
- package/dist/{node-icons-BfpANqUU.mjs → node-icons-Ca5tmG4k.mjs} +1 -1
- package/dist/style.css +2 -2
- package/dist/types/webhook.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -1
- package/package.json +3 -3
package/dist/chat.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Package version @n8n/chat@1.18.
|
|
1
|
+
/*! Package version @n8n/chat@1.18.1 */
|
|
2
2
|
import * as e from "vue";
|
|
3
3
|
import { Comment as t, Fragment as n, Teleport as r, Text as i, Transition as a, camelize as o, cloneVNode as s, computed as c, createApp as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createStaticVNode as h, createTextVNode as g, createVNode as _, customRef as v, defineComponent as y, getCurrentInstance as b, getCurrentScope as x, guardReactiveProps as S, h as C, inject as w, isRef as T, mergeDefaults as E, mergeProps as D, nextTick as O, normalizeClass as k, normalizeProps as A, normalizeStyle as j, onBeforeMount as M, onBeforeUnmount as N, onDeactivated as P, onMounted as F, onScopeDispose as I, onUnmounted as L, onUpdated as R, openBlock as z, popScopeId as ee, provide as te, pushScopeId as ne, reactive as re, readonly as ie, ref as B, renderList as ae, renderSlot as V, resolveComponent as oe, resolveDirective as se, resolveDynamicComponent as H, shallowRef as ce, toDisplayString as U, toHandlerKey as le, toHandlers as ue, toRaw as de, toRef as fe, toRefs as pe, toValue as me, triggerRef as he, unref as W, useAttrs as ge, useCssModule as _e, useSlots as ve, vModelText as ye, vShow as be, warn as xe, watch as G, watchEffect as Se, watchPostEffect as Ce, withCtx as K, withDirectives as we, withKeys as Te, withModifiers as Ee } from "vue";
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
@@ -8896,9 +8896,9 @@ function ys(e) {
|
|
|
8896
8896
|
//#endregion
|
|
8897
8897
|
//#region src/utils/utils.ts
|
|
8898
8898
|
var bs = "with-buttons";
|
|
8899
|
-
function xs(e, t, n, r) {
|
|
8900
|
-
let
|
|
8901
|
-
return
|
|
8899
|
+
function xs(e, t, n, r, i) {
|
|
8900
|
+
let a = new URL(e).origin, o = a.startsWith("https") ? "wss" : "ws", s = `${a.replace(/^https?/, o)}/chat?sessionId=${n}&executionId=${t}`;
|
|
8901
|
+
return r && (s += "&isPublic=true"), i && (s += `&token=${i}`), s;
|
|
8902
8902
|
}
|
|
8903
8903
|
function Ss(e) {
|
|
8904
8904
|
let t = is(), n = {
|
|
@@ -9475,8 +9475,8 @@ var Wee = {
|
|
|
9475
9475
|
for (let n = 0; n < e.length; n++) t.items.add(e[n]);
|
|
9476
9476
|
m.value = t.files;
|
|
9477
9477
|
});
|
|
9478
|
-
function A(e) {
|
|
9479
|
-
R(e);
|
|
9478
|
+
function A(e, t) {
|
|
9479
|
+
R(e, t);
|
|
9480
9480
|
}
|
|
9481
9481
|
F(() => {
|
|
9482
9482
|
Y.on("focusInput", N), Y.on("blurInput", M), Y.on("setInputValue", P), Y.on("setupWebsocket", A), h.value && (y.value = new ResizeObserver((e) => {
|
|
@@ -9501,10 +9501,10 @@ var Wee = {
|
|
|
9501
9501
|
}
|
|
9502
9502
|
return [];
|
|
9503
9503
|
}
|
|
9504
|
-
function R(e) {
|
|
9504
|
+
function R(e, t) {
|
|
9505
9505
|
if (o.webhookUrl && s.currentSessionId.value) try {
|
|
9506
|
-
let
|
|
9507
|
-
s.ws = new WebSocket(
|
|
9506
|
+
let n = xs(o.webhookUrl, e, s.currentSessionId.value, !0, t);
|
|
9507
|
+
s.ws = new WebSocket(n), s.ws.onmessage = (e) => {
|
|
9508
9508
|
if (e.data === "n8n|heartbeat") {
|
|
9509
9509
|
s.ws?.send("n8n|heartbeat-ack");
|
|
9510
9510
|
return;
|
|
@@ -9556,7 +9556,7 @@ var Wee = {
|
|
|
9556
9556
|
return;
|
|
9557
9557
|
}
|
|
9558
9558
|
let n = await s.sendMessage(t, I());
|
|
9559
|
-
n?.executionId && R(n.executionId), Y.emit("messageSent"), v.value = !1;
|
|
9559
|
+
n?.executionId && R(n.executionId, n.resumeToken), Y.emit("messageSent"), v.value = !1;
|
|
9560
9560
|
}
|
|
9561
9561
|
async function re(e) {
|
|
9562
9562
|
e.shiftKey || e.isComposing || (await ne(e), H());
|
|
@@ -9628,7 +9628,7 @@ var Wee = {
|
|
|
9628
9628
|
onRemove: ie
|
|
9629
9629
|
}, null, 8, ["file"]))), 128))])) : d("", !0)], 4));
|
|
9630
9630
|
}
|
|
9631
|
-
}), [["__scopeId", "data-v-
|
|
9631
|
+
}), [["__scopeId", "data-v-fb8d706b"]]), ete = { class: "chat-layout" }, tte = {
|
|
9632
9632
|
key: 0,
|
|
9633
9633
|
class: "chat-header"
|
|
9634
9634
|
}, nte = {
|
|
@@ -14425,7 +14425,7 @@ var g_ = {
|
|
|
14425
14425
|
}), l = ce(null);
|
|
14426
14426
|
G(() => t.icon, async (e) => {
|
|
14427
14427
|
if (typeof e == "string" && e.startsWith("node:") && !l.value) {
|
|
14428
|
-
let { nodeIconSet: e } = await import("./node-icons-
|
|
14428
|
+
let { nodeIconSet: e } = await import("./node-icons-Ca5tmG4k.mjs");
|
|
14429
14429
|
l.value = e;
|
|
14430
14430
|
}
|
|
14431
14431
|
}, { immediate: !0 });
|