@n8n/chat 0.68.3 → 0.68.5
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 +11 -6
- package/dist/chat.bundle.umd.js +15 -15
- package/dist/chat.es.js +11 -6
- package/dist/chat.umd.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/dist/chat.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Package version @n8n/chat@0.68.
|
|
1
|
+
/*! Package version @n8n/chat@0.68.5 */
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onDeactivated, onMounted, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useSlots, vModelText, vShow, warn, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp$1 = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __export = (e) => {
|
|
@@ -43,23 +43,28 @@ const defaultOptions = {
|
|
|
43
43
|
theme: {},
|
|
44
44
|
enableStreaming: !1
|
|
45
45
|
}, localStorageSessionIdKey = "n8n-chat/sessionId", ChatSymbol = "Chat", ChatOptionsSymbol = "ChatOptions";
|
|
46
|
-
|
|
46
|
+
var byteToHex = [];
|
|
47
|
+
for (let e = 0; e < 256; ++e) byteToHex.push((e + 256).toString(16).slice(1));
|
|
47
48
|
function unsafeStringify(e, t = 0) {
|
|
48
49
|
return (byteToHex[e[t + 0]] + byteToHex[e[t + 1]] + byteToHex[e[t + 2]] + byteToHex[e[t + 3]] + "-" + byteToHex[e[t + 4]] + byteToHex[e[t + 5]] + "-" + byteToHex[e[t + 6]] + byteToHex[e[t + 7]] + "-" + byteToHex[e[t + 8]] + byteToHex[e[t + 9]] + "-" + byteToHex[e[t + 10]] + byteToHex[e[t + 11]] + byteToHex[e[t + 12]] + byteToHex[e[t + 13]] + byteToHex[e[t + 14]] + byteToHex[e[t + 15]]).toLowerCase();
|
|
49
50
|
}
|
|
50
51
|
var getRandomValues, rnds8 = new Uint8Array(16);
|
|
51
52
|
function rng() {
|
|
52
|
-
if (!getRandomValues
|
|
53
|
+
if (!getRandomValues) {
|
|
54
|
+
if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
55
|
+
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
56
|
+
}
|
|
53
57
|
return getRandomValues(rnds8);
|
|
54
58
|
}
|
|
55
59
|
var native_default = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
56
60
|
function v4(e, t, n) {
|
|
57
61
|
if (native_default.randomUUID && !t && !e) return native_default.randomUUID();
|
|
58
62
|
e ||= {};
|
|
59
|
-
|
|
63
|
+
let r = e.random ?? e.rng?.() ?? rng();
|
|
64
|
+
if (r.length < 16) throw Error("Random bytes length must be >= 16");
|
|
60
65
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
61
|
-
n ||= 0;
|
|
62
|
-
for (
|
|
66
|
+
if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
|
|
67
|
+
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
63
68
|
return t;
|
|
64
69
|
}
|
|
65
70
|
return unsafeStringify(r);
|