@n8n/chat 1.12.0 → 1.13.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 +2950 -2950
- package/dist/chat.bundle.umd.js +24 -24
- package/dist/chat.es.js +121 -121
- package/dist/chat.umd.js +16 -16
- package/dist/style.css +2 -2
- package/package.json +4 -4
package/dist/chat.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Package version @n8n/chat@1.
|
|
1
|
+
/*! Package version @n8n/chat@1.13.1 */
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { Comment, Fragment, Teleport, Text, Transition, camelize, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onDeactivated, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, shallowRef, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, triggerRef, unref, useAttrs, useCssModule, useSlots, vModelText, vShow, warn, watch, watchEffect, watchPostEffect, 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, t) => {
|
|
@@ -23759,123 +23759,10 @@ Boolean, Boolean, Boolean, Boolean, Object, Boolean, require_markdown_it(), requ
|
|
|
23759
23759
|
return (e ?? "") + "";
|
|
23760
23760
|
};
|
|
23761
23761
|
})))();
|
|
23762
|
-
var N8nTooltip_default = Tooltip_default,
|
|
23763
|
-
function isSameRouteRecord(e, t) {
|
|
23764
|
-
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
23765
|
-
}
|
|
23766
|
-
function isSameRouteLocationParams(e, t) {
|
|
23767
|
-
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
23768
|
-
for (let n in e) if (!isSameRouteLocationParamsValue(e[n], t[n])) return !1;
|
|
23769
|
-
return !0;
|
|
23770
|
-
}
|
|
23771
|
-
function isSameRouteLocationParamsValue(e, t) {
|
|
23772
|
-
return isArray$6(e) ? isEquivalentArray(e, t) : isArray$6(t) ? isEquivalentArray(t, e) : e === t;
|
|
23773
|
-
}
|
|
23774
|
-
function isEquivalentArray(e, t) {
|
|
23775
|
-
return isArray$6(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
|
|
23776
|
-
}
|
|
23777
|
-
var NavigationType;
|
|
23778
|
-
(function(e) {
|
|
23779
|
-
e.pop = "pop", e.push = "push";
|
|
23780
|
-
})(NavigationType ||= {});
|
|
23781
|
-
var NavigationDirection;
|
|
23782
|
-
(function(e) {
|
|
23783
|
-
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
23784
|
-
})(NavigationDirection ||= {});
|
|
23785
|
-
var NavigationFailureType;
|
|
23786
|
-
(function(e) {
|
|
23787
|
-
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
23788
|
-
})(NavigationFailureType ||= {});
|
|
23789
|
-
var routerKey = Symbol(""), routeLocationKey = Symbol("");
|
|
23790
|
-
function useLink(e) {
|
|
23791
|
-
let t = inject(routerKey), n = inject(routeLocationKey), i = computed(() => {
|
|
23792
|
-
let n = unref(e.to);
|
|
23793
|
-
return t.resolve(n);
|
|
23794
|
-
}), o = computed(() => {
|
|
23795
|
-
let { matched: e } = i.value, { length: t } = e, o = e[t - 1], s = n.matched;
|
|
23796
|
-
if (!o || !s.length) return -1;
|
|
23797
|
-
let l = s.findIndex(isSameRouteRecord.bind(null, o));
|
|
23798
|
-
if (l > -1) return l;
|
|
23799
|
-
let d = getOriginalPath(e[t - 2]);
|
|
23800
|
-
return t > 1 && getOriginalPath(o) === d && s[s.length - 1].path !== d ? s.findIndex(isSameRouteRecord.bind(null, e[t - 2])) : l;
|
|
23801
|
-
}), s = computed(() => o.value > -1 && includesParams(n.params, i.value.params)), l = computed(() => o.value > -1 && o.value === n.matched.length - 1 && isSameRouteLocationParams(n.params, i.value.params));
|
|
23802
|
-
function d(n = {}) {
|
|
23803
|
-
if (guardEvent(n)) {
|
|
23804
|
-
let n = t[unref(e.replace) ? "replace" : "push"](unref(e.to)).catch(noop$1);
|
|
23805
|
-
return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => n), n;
|
|
23806
|
-
}
|
|
23807
|
-
return Promise.resolve();
|
|
23808
|
-
}
|
|
23809
|
-
return {
|
|
23810
|
-
route: i,
|
|
23811
|
-
href: computed(() => i.value.href),
|
|
23812
|
-
isActive: s,
|
|
23813
|
-
isExactActive: l,
|
|
23814
|
-
navigate: d
|
|
23815
|
-
};
|
|
23816
|
-
}
|
|
23817
|
-
function preferSingleVNode(e) {
|
|
23818
|
-
return e.length === 1 ? e[0] : e;
|
|
23819
|
-
}
|
|
23820
|
-
var RouterLink = /* @__PURE__ */ defineComponent({
|
|
23821
|
-
name: "RouterLink",
|
|
23822
|
-
compatConfig: { MODE: 3 },
|
|
23823
|
-
props: {
|
|
23824
|
-
to: {
|
|
23825
|
-
type: [String, Object],
|
|
23826
|
-
required: !0
|
|
23827
|
-
},
|
|
23828
|
-
replace: Boolean,
|
|
23829
|
-
activeClass: String,
|
|
23830
|
-
exactActiveClass: String,
|
|
23831
|
-
custom: Boolean,
|
|
23832
|
-
ariaCurrentValue: {
|
|
23833
|
-
type: String,
|
|
23834
|
-
default: "page"
|
|
23835
|
-
}
|
|
23836
|
-
},
|
|
23837
|
-
useLink,
|
|
23838
|
-
setup(e, { slots: t }) {
|
|
23839
|
-
let n = reactive(useLink(e)), { options: i } = inject(routerKey), o = computed(() => ({
|
|
23840
|
-
[getLinkClass(e.activeClass, i.linkActiveClass, "router-link-active")]: n.isActive,
|
|
23841
|
-
[getLinkClass(e.exactActiveClass, i.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
|
23842
|
-
}));
|
|
23843
|
-
return () => {
|
|
23844
|
-
let i = t.default && preferSingleVNode(t.default(n));
|
|
23845
|
-
return e.custom ? i : h("a", {
|
|
23846
|
-
"aria-current": n.isExactActive ? e.ariaCurrentValue : null,
|
|
23847
|
-
href: n.href,
|
|
23848
|
-
onClick: n.navigate,
|
|
23849
|
-
class: o.value
|
|
23850
|
-
}, i);
|
|
23851
|
-
};
|
|
23852
|
-
}
|
|
23853
|
-
});
|
|
23854
|
-
function guardEvent(e) {
|
|
23855
|
-
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
|
23856
|
-
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
23857
|
-
let t = e.currentTarget.getAttribute("target");
|
|
23858
|
-
if (/\b_blank\b/i.test(t)) return;
|
|
23859
|
-
}
|
|
23860
|
-
return e.preventDefault && e.preventDefault(), !0;
|
|
23861
|
-
}
|
|
23862
|
-
}
|
|
23863
|
-
function includesParams(e, t) {
|
|
23864
|
-
for (let n in t) {
|
|
23865
|
-
let i = t[n], o = e[n];
|
|
23866
|
-
if (typeof i == "string") {
|
|
23867
|
-
if (i !== o) return !1;
|
|
23868
|
-
} else if (!isArray$6(o) || o.length !== i.length || i.some((e, t) => e !== o[t])) return !1;
|
|
23869
|
-
}
|
|
23870
|
-
return !0;
|
|
23871
|
-
}
|
|
23872
|
-
function getOriginalPath(e) {
|
|
23873
|
-
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
23874
|
-
}
|
|
23875
|
-
var getLinkClass = (e, t, n) => e ?? t ?? n, composeEventHandlers = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (i) => {
|
|
23762
|
+
var N8nTooltip_default = Tooltip_default, composeEventHandlers = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (i) => {
|
|
23876
23763
|
let o = e?.(i);
|
|
23877
23764
|
if (n === !1 || !o) return t?.(i);
|
|
23878
|
-
}, isClient = typeof window < "u", isString$1 = (e) => typeof e == "string", noop = () => {}, isIOS = isClient && (window == null ? void 0 : window.navigator)?.userAgent && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
23765
|
+
}, isClient = typeof window < "u", isString$1 = (e) => typeof e == "string", noop$1 = () => {}, isIOS = isClient && (window == null ? void 0 : window.navigator)?.userAgent && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
23879
23766
|
function resolveUnref(e) {
|
|
23880
23767
|
return typeof e == "function" ? e() : (0, lib_exports.unref)(e);
|
|
23881
23768
|
}
|
|
@@ -23896,7 +23783,7 @@ var defaultWindow = isClient ? window : void 0;
|
|
|
23896
23783
|
isClient && window.document, isClient && window.navigator, isClient && window.location;
|
|
23897
23784
|
function useEventListener(...e) {
|
|
23898
23785
|
let t, n, i, o;
|
|
23899
|
-
if (isString$1(e[0]) || Array.isArray(e[0]) ? ([n, i, o] = e, t = defaultWindow) : [t, n, i, o] = e, !t) return noop;
|
|
23786
|
+
if (isString$1(e[0]) || Array.isArray(e[0]) ? ([n, i, o] = e, t = defaultWindow) : [t, n, i, o] = e, !t) return noop$1;
|
|
23900
23787
|
Array.isArray(n) || (n = [n]), Array.isArray(i) || (i = [i]);
|
|
23901
23788
|
let s = [], l = () => {
|
|
23902
23789
|
s.forEach((e) => e()), s.length = 0;
|
|
@@ -23914,7 +23801,7 @@ var _iOSWorkaround = !1;
|
|
|
23914
23801
|
function onClickOutside(e, t, n = {}) {
|
|
23915
23802
|
let { window: i = defaultWindow, ignore: o = [], capture: s = !0, detectIframe: l = !1 } = n;
|
|
23916
23803
|
if (!i) return;
|
|
23917
|
-
isIOS && !_iOSWorkaround && (_iOSWorkaround = !0, Array.from(i.document.body.children).forEach((e) => e.addEventListener("click", noop)));
|
|
23804
|
+
isIOS && !_iOSWorkaround && (_iOSWorkaround = !0, Array.from(i.document.body.children).forEach((e) => e.addEventListener("click", noop$1)));
|
|
23918
23805
|
let d = !0, f = (e) => o.some((t) => {
|
|
23919
23806
|
if (typeof t == "string") return Array.from(i.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
23920
23807
|
{
|
|
@@ -24140,7 +24027,7 @@ var isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent), g
|
|
|
24140
24027
|
clientX: t,
|
|
24141
24028
|
clientY: n
|
|
24142
24029
|
};
|
|
24143
|
-
}, NOOP = () => {}, hasOwnProperty$13 = Object.prototype.hasOwnProperty, hasOwn = (e, t) => hasOwnProperty$13.call(e, t), isArray$
|
|
24030
|
+
}, NOOP = () => {}, hasOwnProperty$13 = Object.prototype.hasOwnProperty, hasOwn = (e, t) => hasOwnProperty$13.call(e, t), isArray$5 = Array.isArray, isFunction$2 = (e) => typeof e == "function", isString = (e) => typeof e == "string", isObject$3 = (e) => typeof e == "object" && !!e, objectToString$3 = Object.prototype.toString, toTypeString = (e) => objectToString$3.call(e), toRawType = (e) => toTypeString(e).slice(8, -1), _freeGlobal_default = typeof global == "object" && global && global.Object === Object && global, freeSelf$1 = typeof self == "object" && self && self.Object === Object && self, _root_default = _freeGlobal_default || freeSelf$1 || Function("return this")(), _Symbol_default = _root_default.Symbol, objectProto$5 = Object.prototype, hasOwnProperty$12 = objectProto$5.hasOwnProperty, nativeObjectToString$3 = objectProto$5.toString, symToStringTag$3 = _Symbol_default ? _Symbol_default.toStringTag : void 0;
|
|
24144
24031
|
function getRawTag$2(e) {
|
|
24145
24032
|
var t = hasOwnProperty$12.call(e, symToStringTag$3), n = e[symToStringTag$3];
|
|
24146
24033
|
try {
|
|
@@ -27938,7 +27825,7 @@ var DEFAULT_ARROW_OFFSET = 0, usePopperContent = (e) => {
|
|
|
27938
27825
|
"hide",
|
|
27939
27826
|
"open",
|
|
27940
27827
|
"close"
|
|
27941
|
-
], isTriggerType = (e, t) => isArray$
|
|
27828
|
+
], isTriggerType = (e, t) => isArray$5(e) ? e.includes(t) : e === t, whenTrigger = (e, t, n) => (i) => {
|
|
27942
27829
|
isTriggerType(unref(e), t) && n(i);
|
|
27943
27830
|
}, ElTooltipTrigger = /* @__PURE__ */ _export_sfc(/* @__PURE__ */ defineComponent({
|
|
27944
27831
|
...defineComponent({ name: "ElTooltipTrigger" }),
|
|
@@ -33319,7 +33206,120 @@ function uid(e) {
|
|
|
33319
33206
|
return `${e ? `${e}-` : ""}${Math.random().toString(36).substring(2, 11)}`;
|
|
33320
33207
|
}
|
|
33321
33208
|
Boolean, Boolean, Boolean, uid("color-picker"), { ...paginationProps }, { ...ElSelect.props }, String, String, Boolean, Boolean, Boolean, Boolean, Number, Function, Boolean, String, String, Boolean, Boolean, String;
|
|
33322
|
-
var
|
|
33209
|
+
var noop = () => {}, isArray$4 = Array.isArray;
|
|
33210
|
+
function isSameRouteRecord(e, t) {
|
|
33211
|
+
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
33212
|
+
}
|
|
33213
|
+
function isSameRouteLocationParams(e, t) {
|
|
33214
|
+
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
33215
|
+
for (let n in e) if (!isSameRouteLocationParamsValue(e[n], t[n])) return !1;
|
|
33216
|
+
return !0;
|
|
33217
|
+
}
|
|
33218
|
+
function isSameRouteLocationParamsValue(e, t) {
|
|
33219
|
+
return isArray$4(e) ? isEquivalentArray(e, t) : isArray$4(t) ? isEquivalentArray(t, e) : e === t;
|
|
33220
|
+
}
|
|
33221
|
+
function isEquivalentArray(e, t) {
|
|
33222
|
+
return isArray$4(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
|
|
33223
|
+
}
|
|
33224
|
+
var NavigationType;
|
|
33225
|
+
(function(e) {
|
|
33226
|
+
e.pop = "pop", e.push = "push";
|
|
33227
|
+
})(NavigationType ||= {});
|
|
33228
|
+
var NavigationDirection;
|
|
33229
|
+
(function(e) {
|
|
33230
|
+
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
33231
|
+
})(NavigationDirection ||= {});
|
|
33232
|
+
var NavigationFailureType;
|
|
33233
|
+
(function(e) {
|
|
33234
|
+
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
33235
|
+
})(NavigationFailureType ||= {});
|
|
33236
|
+
var routerKey = Symbol(""), routeLocationKey = Symbol("");
|
|
33237
|
+
function useLink(e) {
|
|
33238
|
+
let t = inject(routerKey), n = inject(routeLocationKey), i = computed(() => {
|
|
33239
|
+
let n = unref(e.to);
|
|
33240
|
+
return t.resolve(n);
|
|
33241
|
+
}), o = computed(() => {
|
|
33242
|
+
let { matched: e } = i.value, { length: t } = e, o = e[t - 1], s = n.matched;
|
|
33243
|
+
if (!o || !s.length) return -1;
|
|
33244
|
+
let l = s.findIndex(isSameRouteRecord.bind(null, o));
|
|
33245
|
+
if (l > -1) return l;
|
|
33246
|
+
let d = getOriginalPath(e[t - 2]);
|
|
33247
|
+
return t > 1 && getOriginalPath(o) === d && s[s.length - 1].path !== d ? s.findIndex(isSameRouteRecord.bind(null, e[t - 2])) : l;
|
|
33248
|
+
}), s = computed(() => o.value > -1 && includesParams(n.params, i.value.params)), l = computed(() => o.value > -1 && o.value === n.matched.length - 1 && isSameRouteLocationParams(n.params, i.value.params));
|
|
33249
|
+
function d(n = {}) {
|
|
33250
|
+
if (guardEvent(n)) {
|
|
33251
|
+
let n = t[unref(e.replace) ? "replace" : "push"](unref(e.to)).catch(noop);
|
|
33252
|
+
return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => n), n;
|
|
33253
|
+
}
|
|
33254
|
+
return Promise.resolve();
|
|
33255
|
+
}
|
|
33256
|
+
return {
|
|
33257
|
+
route: i,
|
|
33258
|
+
href: computed(() => i.value.href),
|
|
33259
|
+
isActive: s,
|
|
33260
|
+
isExactActive: l,
|
|
33261
|
+
navigate: d
|
|
33262
|
+
};
|
|
33263
|
+
}
|
|
33264
|
+
function preferSingleVNode(e) {
|
|
33265
|
+
return e.length === 1 ? e[0] : e;
|
|
33266
|
+
}
|
|
33267
|
+
var RouterLink = /* @__PURE__ */ defineComponent({
|
|
33268
|
+
name: "RouterLink",
|
|
33269
|
+
compatConfig: { MODE: 3 },
|
|
33270
|
+
props: {
|
|
33271
|
+
to: {
|
|
33272
|
+
type: [String, Object],
|
|
33273
|
+
required: !0
|
|
33274
|
+
},
|
|
33275
|
+
replace: Boolean,
|
|
33276
|
+
activeClass: String,
|
|
33277
|
+
exactActiveClass: String,
|
|
33278
|
+
custom: Boolean,
|
|
33279
|
+
ariaCurrentValue: {
|
|
33280
|
+
type: String,
|
|
33281
|
+
default: "page"
|
|
33282
|
+
}
|
|
33283
|
+
},
|
|
33284
|
+
useLink,
|
|
33285
|
+
setup(e, { slots: t }) {
|
|
33286
|
+
let n = reactive(useLink(e)), { options: i } = inject(routerKey), o = computed(() => ({
|
|
33287
|
+
[getLinkClass(e.activeClass, i.linkActiveClass, "router-link-active")]: n.isActive,
|
|
33288
|
+
[getLinkClass(e.exactActiveClass, i.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
|
33289
|
+
}));
|
|
33290
|
+
return () => {
|
|
33291
|
+
let i = t.default && preferSingleVNode(t.default(n));
|
|
33292
|
+
return e.custom ? i : h("a", {
|
|
33293
|
+
"aria-current": n.isExactActive ? e.ariaCurrentValue : null,
|
|
33294
|
+
href: n.href,
|
|
33295
|
+
onClick: n.navigate,
|
|
33296
|
+
class: o.value
|
|
33297
|
+
}, i);
|
|
33298
|
+
};
|
|
33299
|
+
}
|
|
33300
|
+
});
|
|
33301
|
+
function guardEvent(e) {
|
|
33302
|
+
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
|
33303
|
+
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
33304
|
+
let t = e.currentTarget.getAttribute("target");
|
|
33305
|
+
if (/\b_blank\b/i.test(t)) return;
|
|
33306
|
+
}
|
|
33307
|
+
return e.preventDefault && e.preventDefault(), !0;
|
|
33308
|
+
}
|
|
33309
|
+
}
|
|
33310
|
+
function includesParams(e, t) {
|
|
33311
|
+
for (let n in t) {
|
|
33312
|
+
let i = t[n], o = e[n];
|
|
33313
|
+
if (typeof i == "string") {
|
|
33314
|
+
if (i !== o) return !1;
|
|
33315
|
+
} else if (!isArray$4(o) || o.length !== i.length || i.some((e, t) => e !== o[t])) return !1;
|
|
33316
|
+
}
|
|
33317
|
+
return !0;
|
|
33318
|
+
}
|
|
33319
|
+
function getOriginalPath(e) {
|
|
33320
|
+
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
33321
|
+
}
|
|
33322
|
+
var getLinkClass = (e, t, n) => e ?? t ?? n, full_exports = /* @__PURE__ */ __export({
|
|
33323
33323
|
a: () => a,
|
|
33324
33324
|
ab: () => ab,
|
|
33325
33325
|
abacus: () => abacus,
|