@n8n-zengchao/chat 0.62.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/README.md +289 -0
- package/dist/App.vue.d.ts +2 -0
- package/dist/__stories__/App.stories.d.ts +18 -0
- package/dist/__tests__/Input.spec.d.ts +1 -0
- package/dist/__tests__/api/generic.spec.d.ts +1 -0
- package/dist/__tests__/api/message.spec.d.ts +1 -0
- package/dist/__tests__/index.spec.d.ts +1 -0
- package/dist/__tests__/plugins/chat.spec.d.ts +1 -0
- package/dist/__tests__/plugins/chat.test.d.ts +1 -0
- package/dist/__tests__/setup.d.ts +0 -0
- package/dist/__tests__/utils/create.d.ts +5 -0
- package/dist/__tests__/utils/fetch.d.ts +13 -0
- package/dist/__tests__/utils/index.d.ts +3 -0
- package/dist/__tests__/utils/selectors.d.ts +12 -0
- package/dist/__tests__/utils/streaming.spec.d.ts +1 -0
- package/dist/__tests__/utils/streamingHandlers.spec.d.ts +1 -0
- package/dist/_basePickBy-aQilsjEs.mjs +106 -0
- package/dist/_baseUniq-Agc10qFQ.mjs +232 -0
- package/dist/api/generic.d.ts +7 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/message.d.ts +11 -0
- package/dist/arc-EhYU_DB1.mjs +79 -0
- package/dist/architecture-U656AL7Q-B1STlXpR.mjs +10 -0
- package/dist/architectureDiagram-VXUJARFQ-DOVAbXSw.mjs +4054 -0
- package/dist/array-B5w981Vk.mjs +5 -0
- package/dist/blockDiagram-VD42YOAC-BsX3Fkg3.mjs +3013 -0
- package/dist/c4Diagram-YG6GDRKO-B5JaLuX6.mjs +2957 -0
- package/dist/channel-CqrIo07y.mjs +4 -0
- package/dist/chat.bundle.es.js +37656 -0
- package/dist/chat.bundle.umd.js +2784 -0
- package/dist/chat.es.js +35738 -0
- package/dist/chat.umd.js +2776 -0
- package/dist/chunk-4BX2VUAB-dn0RXIrC.mjs +7 -0
- package/dist/chunk-55IACEB6-DrIttNoL.mjs +7 -0
- package/dist/chunk-76Q3JFCE-D7DMbWeQ.mjs +20 -0
- package/dist/chunk-ABZYJK2D-_NXv778f.mjs +2516 -0
- package/dist/chunk-ATLVNIR6-CBnG7Ev9.mjs +66 -0
- package/dist/chunk-B4BG7PRW-DElmmAse.mjs +3109 -0
- package/dist/chunk-CVBHYZKI-kPsSw5G9.mjs +11 -0
- package/dist/chunk-DI55MBZ5-Bw6uFFfD.mjs +1995 -0
- package/dist/chunk-DZXZ2BO8.mjs +19 -0
- package/dist/chunk-EXTU4WIE-DWzncOZf.mjs +8 -0
- package/dist/chunk-FMBD7UC4-CQf-nVrj.mjs +4 -0
- package/dist/chunk-FPAJGGOC-HRc6DGju.mjs +12254 -0
- package/dist/chunk-FWNWRKHM-CGiJVNMo.mjs +57 -0
- package/dist/chunk-HN2XXSSU-DMfVdeUE.mjs +75 -0
- package/dist/chunk-JA3XYJ7Z-b0Li4NN8.mjs +1834 -0
- package/dist/chunk-JZLCHNYA-C_4MLySW.mjs +4862 -0
- package/dist/chunk-KS23V3DP-BRKOfbU6.mjs +136 -0
- package/dist/chunk-LBM3YZW2-JIQK8wiH.mjs +20 -0
- package/dist/chunk-LHMN2FUI-PNCyIUgu.mjs +20 -0
- package/dist/chunk-MI3HLSF2-B9GTCmLp.mjs +1146 -0
- package/dist/chunk-N4CR4FBY-CjlmnCPD.mjs +40 -0
- package/dist/chunk-O7ZBX7Z2-DmJUfqJj.mjs +27 -0
- package/dist/chunk-QN33PNHL-nN1zLFSf.mjs +24 -0
- package/dist/chunk-QXUST7PY-CY78Btj9.mjs +487 -0
- package/dist/chunk-QZHKN3VN-BF5N1pfB.mjs +12 -0
- package/dist/chunk-S3R3BYOJ-BhFsv0Go.mjs +1076 -0
- package/dist/chunk-S6J4BHB3-BvrWTdbl.mjs +20 -0
- package/dist/chunk-T53DSG4Q-XzY06amw.mjs +25 -0
- package/dist/chunk-TZMSLE5B-DVmJQ8eg.mjs +57 -0
- package/dist/classDiagram-2ON5EDUG-CKxiEVX9.mjs +33 -0
- package/dist/classDiagram-v2-WZHVMYZB-sAa_2keq.mjs +33 -0
- package/dist/clone-nkGlb0Gn.mjs +8 -0
- package/dist/components/Button.vue.d.ts +17 -0
- package/dist/components/Chat.vue.d.ts +2 -0
- package/dist/components/ChatFile.vue.d.ts +11 -0
- package/dist/components/ChatWindow.vue.d.ts +2 -0
- package/dist/components/GetStarted.vue.d.ts +2 -0
- package/dist/components/GetStartedFooter.vue.d.ts +2 -0
- package/dist/components/Input.vue.d.ts +39 -0
- package/dist/components/Layout.vue.d.ts +23 -0
- package/dist/components/Message.vue.d.ts +39 -0
- package/dist/components/MessageTyping.vue.d.ts +76 -0
- package/dist/components/MessagesList.vue.d.ts +164 -0
- package/dist/components/PoweredBy.vue.d.ts +2 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/composables/index.d.ts +3 -0
- package/dist/composables/useChat.d.ts +2 -0
- package/dist/composables/useI18n.d.ts +4 -0
- package/dist/composables/useOptions.d.ts +4 -0
- package/dist/constants/defaults.d.ts +3 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/localStorage.d.ts +2 -0
- package/dist/constants/symbols.d.ts +4 -0
- package/dist/cose-bilkent-S5V4N54A-1lKG2PUg.mjs +2251 -0
- package/dist/cytoscape.esm-Dls1_mGy.mjs +18108 -0
- package/dist/dagre-6UL2VRFP-CbWFu9xQ.mjs +300 -0
- package/dist/dagre-DEdOheHq.mjs +1385 -0
- package/dist/defaultLocale-CyoQm63E.mjs +178 -0
- package/dist/diagram-PSM6KHXK-CJcHbrJH.mjs +499 -0
- package/dist/diagram-QEK2KX5R-XQ9XOVL4.mjs +228 -0
- package/dist/diagram-S2PKOQOG-CmRfaeSf.mjs +146 -0
- package/dist/dist-BT0fjU7K.mjs +50 -0
- package/dist/erDiagram-Q2GNP2WA-iuoUWHwm.mjs +1603 -0
- package/dist/event-buses/chatEventBus.d.ts +1 -0
- package/dist/event-buses/index.d.ts +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/flowDiagram-NV44I4VS-D3GMS8-G.mjs +4132 -0
- package/dist/ganttDiagram-LVOFAZNH-DMTZVZDR.mjs +2832 -0
- package/dist/gitGraph-F6HP7TQM-CrdUzURw.mjs +10 -0
- package/dist/gitGraphDiagram-NY62KEGX-DipP5Fgt.mjs +636 -0
- package/dist/graphlib-D9eH5icd.mjs +224 -0
- package/dist/index.d.ts +2 -0
- package/dist/info-NVLQJR56-C-93Yf3U.mjs +10 -0
- package/dist/infoDiagram-F6ZHWCRC-jM50s26K.mjs +33 -0
- package/dist/init-CYeu4QfE.mjs +14 -0
- package/dist/isArrayLikeObject-BPcFdnyK.mjs +459 -0
- package/dist/isUndefined-BvarJ1wS.mjs +374 -0
- package/dist/journeyDiagram-XKPGCS4Q-BEEO_0Bh.mjs +885 -0
- package/dist/kanban-definition-3W4ZIXB7-B8u_HDmL.mjs +971 -0
- package/dist/katex-Dc1vXbUC.mjs +22094 -0
- package/dist/line-BJxACIPZ.mjs +31 -0
- package/dist/linear-DHHVI-cj.mjs +251 -0
- package/dist/math-Byg0NvhS.mjs +9 -0
- package/dist/mermaid-parser.core-YT4qvimq.mjs +49 -0
- package/dist/mindmap-definition-VGOIOE7T-ah41V88S.mjs +960 -0
- package/dist/now-DsJMgI1z.mjs +6 -0
- package/dist/ordinal-L0-EVPg8.mjs +62 -0
- package/dist/packet-BFZMPI3H-Cs4kRHct.mjs +10 -0
- package/dist/path-BcDHwjEr.mjs +80 -0
- package/dist/pie-7BOR55EZ-YZ5Xu4o6.mjs +10 -0
- package/dist/pieDiagram-ADFJNKIX-CqI33m1a.mjs +174 -0
- package/dist/plugins/chat.d.ts +3 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/quadrantDiagram-AYHSOK5B-DDv2X9c1.mjs +1971 -0
- package/dist/radar-NHE76QYJ-TpirOFtv.mjs +10 -0
- package/dist/requirementDiagram-UZGBJVZJ-DXa77VzO.mjs +2194 -0
- package/dist/sankeyDiagram-TZEHDZUN--B9DInJC.mjs +885 -0
- package/dist/sequenceDiagram-WL72ISMW-Dqn9jJ3g.mjs +3562 -0
- package/dist/src-DdwtiGjk.mjs +1976 -0
- package/dist/stateDiagram-FKZM4ZOC-D3eEcVjS.mjs +226 -0
- package/dist/stateDiagram-v2-4FDKWEC3-dzwJ4caL.mjs +32 -0
- package/dist/style.css +3 -0
- package/dist/timeline-definition-IT6M3QCI-z93ry7RN.mjs +831 -0
- package/dist/toInteger-1S_4Byef.mjs +36 -0
- package/dist/treemap-KMMF4GRG-BlF0Ev1z.mjs +10 -0
- package/dist/types/chat.d.ts +13 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/messages.d.ts +17 -0
- package/dist/types/options.d.ts +33 -0
- package/dist/types/streaming.d.ts +18 -0
- package/dist/types/webhook.d.ts +19 -0
- package/dist/utils/event-bus.d.ts +8 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/mount.d.ts +1 -0
- package/dist/utils/streaming.d.ts +26 -0
- package/dist/utils/streamingHandlers.d.ts +6 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/xychartDiagram-PRI3JC2R-C3aDcgBz.mjs +2022 -0
- package/package.json +78 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
import { E as _baseRest_default, P as constant_default, R as isFunction_default, t as isArrayLikeObject_default } from "./isArrayLikeObject-BPcFdnyK.mjs";
|
|
3
|
+
import { T as keys_default, n as isEmpty_default, t as isUndefined_default } from "./isUndefined-BvarJ1wS.mjs";
|
|
4
|
+
import { i as filter_default, n as reduce_default, o as forEach_default, p as _baseFlatten_default, r as values_default, t as _baseUniq_default } from "./_baseUniq-Agc10qFQ.mjs";
|
|
5
|
+
var union_default = _baseRest_default(function(e) {
|
|
6
|
+
return _baseUniq_default(_baseFlatten_default(e, 1, isArrayLikeObject_default, !0));
|
|
7
|
+
}), DEFAULT_EDGE_NAME = "\0", GRAPH_NODE = "\0", EDGE_KEY_DELIM = "", Graph = class {
|
|
8
|
+
constructor(e = {}) {
|
|
9
|
+
this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = constant_default(void 0), this._defaultEdgeLabelFn = constant_default(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[GRAPH_NODE] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
|
|
10
|
+
}
|
|
11
|
+
isDirected() {
|
|
12
|
+
return this._isDirected;
|
|
13
|
+
}
|
|
14
|
+
isMultigraph() {
|
|
15
|
+
return this._isMultigraph;
|
|
16
|
+
}
|
|
17
|
+
isCompound() {
|
|
18
|
+
return this._isCompound;
|
|
19
|
+
}
|
|
20
|
+
setGraph(e) {
|
|
21
|
+
return this._label = e, this;
|
|
22
|
+
}
|
|
23
|
+
graph() {
|
|
24
|
+
return this._label;
|
|
25
|
+
}
|
|
26
|
+
setDefaultNodeLabel(e) {
|
|
27
|
+
return isFunction_default(e) || (e = constant_default(e)), this._defaultNodeLabelFn = e, this;
|
|
28
|
+
}
|
|
29
|
+
nodeCount() {
|
|
30
|
+
return this._nodeCount;
|
|
31
|
+
}
|
|
32
|
+
nodes() {
|
|
33
|
+
return keys_default(this._nodes);
|
|
34
|
+
}
|
|
35
|
+
sources() {
|
|
36
|
+
var e = this;
|
|
37
|
+
return filter_default(this.nodes(), function(h) {
|
|
38
|
+
return isEmpty_default(e._in[h]);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
sinks() {
|
|
42
|
+
var e = this;
|
|
43
|
+
return filter_default(this.nodes(), function(h) {
|
|
44
|
+
return isEmpty_default(e._out[h]);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
setNodes(e, h) {
|
|
48
|
+
var g = arguments, _ = this;
|
|
49
|
+
return forEach_default(e, function(e) {
|
|
50
|
+
g.length > 1 ? _.setNode(e, h) : _.setNode(e);
|
|
51
|
+
}), this;
|
|
52
|
+
}
|
|
53
|
+
setNode(e, h) {
|
|
54
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = h), this) : (this._nodes[e] = arguments.length > 1 ? h : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = GRAPH_NODE, this._children[e] = {}, this._children[GRAPH_NODE][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
|
|
55
|
+
}
|
|
56
|
+
node(e) {
|
|
57
|
+
return this._nodes[e];
|
|
58
|
+
}
|
|
59
|
+
hasNode(e) {
|
|
60
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, e);
|
|
61
|
+
}
|
|
62
|
+
removeNode(e) {
|
|
63
|
+
if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
|
|
64
|
+
var h = (e) => this.removeEdge(this._edgeObjs[e]);
|
|
65
|
+
delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], forEach_default(this.children(e), (e) => {
|
|
66
|
+
this.setParent(e);
|
|
67
|
+
}), delete this._children[e]), forEach_default(keys_default(this._in[e]), h), delete this._in[e], delete this._preds[e], forEach_default(keys_default(this._out[e]), h), delete this._out[e], delete this._sucs[e], --this._nodeCount;
|
|
68
|
+
}
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
setParent(e, h) {
|
|
72
|
+
if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
|
|
73
|
+
if (isUndefined_default(h)) h = GRAPH_NODE;
|
|
74
|
+
else {
|
|
75
|
+
h += "";
|
|
76
|
+
for (var g = h; !isUndefined_default(g); g = this.parent(g)) if (g === e) throw Error("Setting " + h + " as parent of " + e + " would create a cycle");
|
|
77
|
+
this.setNode(h);
|
|
78
|
+
}
|
|
79
|
+
return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = h, this._children[h][e] = !0, this;
|
|
80
|
+
}
|
|
81
|
+
_removeFromParentsChildList(e) {
|
|
82
|
+
delete this._children[this._parent[e]][e];
|
|
83
|
+
}
|
|
84
|
+
parent(e) {
|
|
85
|
+
if (this._isCompound) {
|
|
86
|
+
var h = this._parent[e];
|
|
87
|
+
if (h !== GRAPH_NODE) return h;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
children(e) {
|
|
91
|
+
if (isUndefined_default(e) && (e = GRAPH_NODE), this._isCompound) {
|
|
92
|
+
var h = this._children[e];
|
|
93
|
+
if (h) return keys_default(h);
|
|
94
|
+
} else if (e === GRAPH_NODE) return this.nodes();
|
|
95
|
+
else if (this.hasNode(e)) return [];
|
|
96
|
+
}
|
|
97
|
+
predecessors(e) {
|
|
98
|
+
var h = this._preds[e];
|
|
99
|
+
if (h) return keys_default(h);
|
|
100
|
+
}
|
|
101
|
+
successors(e) {
|
|
102
|
+
var h = this._sucs[e];
|
|
103
|
+
if (h) return keys_default(h);
|
|
104
|
+
}
|
|
105
|
+
neighbors(e) {
|
|
106
|
+
var h = this.predecessors(e);
|
|
107
|
+
if (h) return union_default(h, this.successors(e));
|
|
108
|
+
}
|
|
109
|
+
isLeaf(e) {
|
|
110
|
+
return (this.isDirected() ? this.successors(e) : this.neighbors(e)).length === 0;
|
|
111
|
+
}
|
|
112
|
+
filterNodes(e) {
|
|
113
|
+
var h = new this.constructor({
|
|
114
|
+
directed: this._isDirected,
|
|
115
|
+
multigraph: this._isMultigraph,
|
|
116
|
+
compound: this._isCompound
|
|
117
|
+
});
|
|
118
|
+
h.setGraph(this.graph());
|
|
119
|
+
var g = this;
|
|
120
|
+
forEach_default(this._nodes, function(g, _) {
|
|
121
|
+
e(_) && h.setNode(_, g);
|
|
122
|
+
}), forEach_default(this._edgeObjs, function(e) {
|
|
123
|
+
h.hasNode(e.v) && h.hasNode(e.w) && h.setEdge(e, g.edge(e));
|
|
124
|
+
});
|
|
125
|
+
var _ = {};
|
|
126
|
+
function v(e) {
|
|
127
|
+
var y = g.parent(e);
|
|
128
|
+
return y === void 0 || h.hasNode(y) ? (_[e] = y, y) : y in _ ? _[y] : v(y);
|
|
129
|
+
}
|
|
130
|
+
return this._isCompound && forEach_default(h.nodes(), function(e) {
|
|
131
|
+
h.setParent(e, v(e));
|
|
132
|
+
}), h;
|
|
133
|
+
}
|
|
134
|
+
setDefaultEdgeLabel(e) {
|
|
135
|
+
return isFunction_default(e) || (e = constant_default(e)), this._defaultEdgeLabelFn = e, this;
|
|
136
|
+
}
|
|
137
|
+
edgeCount() {
|
|
138
|
+
return this._edgeCount;
|
|
139
|
+
}
|
|
140
|
+
edges() {
|
|
141
|
+
return values_default(this._edgeObjs);
|
|
142
|
+
}
|
|
143
|
+
setPath(e, h) {
|
|
144
|
+
var g = this, _ = arguments;
|
|
145
|
+
return reduce_default(e, function(e, v) {
|
|
146
|
+
return _.length > 1 ? g.setEdge(e, v, h) : g.setEdge(e, v), v;
|
|
147
|
+
}), this;
|
|
148
|
+
}
|
|
149
|
+
setEdge() {
|
|
150
|
+
var e, h, g, _, v = !1, y = arguments[0];
|
|
151
|
+
typeof y == "object" && y && "v" in y ? (e = y.v, h = y.w, g = y.name, arguments.length === 2 && (_ = arguments[1], v = !0)) : (e = y, h = arguments[1], g = arguments[3], arguments.length > 2 && (_ = arguments[2], v = !0)), e = "" + e, h = "" + h, isUndefined_default(g) || (g = "" + g);
|
|
152
|
+
var x = edgeArgsToId(this._isDirected, e, h, g);
|
|
153
|
+
if (Object.prototype.hasOwnProperty.call(this._edgeLabels, x)) return v && (this._edgeLabels[x] = _), this;
|
|
154
|
+
if (!isUndefined_default(g) && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
|
|
155
|
+
this.setNode(e), this.setNode(h), this._edgeLabels[x] = v ? _ : this._defaultEdgeLabelFn(e, h, g);
|
|
156
|
+
var S = edgeArgsToObj(this._isDirected, e, h, g);
|
|
157
|
+
return e = S.v, h = S.w, Object.freeze(S), this._edgeObjs[x] = S, incrementOrInitEntry(this._preds[h], e), incrementOrInitEntry(this._sucs[e], h), this._in[h][x] = S, this._out[e][x] = S, this._edgeCount++, this;
|
|
158
|
+
}
|
|
159
|
+
edge(e, h, g) {
|
|
160
|
+
var _ = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, e, h, g);
|
|
161
|
+
return this._edgeLabels[_];
|
|
162
|
+
}
|
|
163
|
+
hasEdge(e, h, g) {
|
|
164
|
+
var _ = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, e, h, g);
|
|
165
|
+
return Object.prototype.hasOwnProperty.call(this._edgeLabels, _);
|
|
166
|
+
}
|
|
167
|
+
removeEdge(e, h, g) {
|
|
168
|
+
var _ = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, e, h, g), v = this._edgeObjs[_];
|
|
169
|
+
return v && (e = v.v, h = v.w, delete this._edgeLabels[_], delete this._edgeObjs[_], decrementOrRemoveEntry(this._preds[h], e), decrementOrRemoveEntry(this._sucs[e], h), delete this._in[h][_], delete this._out[e][_], this._edgeCount--), this;
|
|
170
|
+
}
|
|
171
|
+
inEdges(e, h) {
|
|
172
|
+
var g = this._in[e];
|
|
173
|
+
if (g) {
|
|
174
|
+
var _ = values_default(g);
|
|
175
|
+
return h ? filter_default(_, function(e) {
|
|
176
|
+
return e.v === h;
|
|
177
|
+
}) : _;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
outEdges(e, h) {
|
|
181
|
+
var g = this._out[e];
|
|
182
|
+
if (g) {
|
|
183
|
+
var _ = values_default(g);
|
|
184
|
+
return h ? filter_default(_, function(e) {
|
|
185
|
+
return e.w === h;
|
|
186
|
+
}) : _;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
nodeEdges(e, h) {
|
|
190
|
+
var g = this.inEdges(e, h);
|
|
191
|
+
if (g) return g.concat(this.outEdges(e, h));
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
Graph.prototype._nodeCount = 0, Graph.prototype._edgeCount = 0;
|
|
195
|
+
function incrementOrInitEntry(e, h) {
|
|
196
|
+
e[h] ? e[h]++ : e[h] = 1;
|
|
197
|
+
}
|
|
198
|
+
function decrementOrRemoveEntry(e, h) {
|
|
199
|
+
--e[h] || delete e[h];
|
|
200
|
+
}
|
|
201
|
+
function edgeArgsToId(e, h, g, _) {
|
|
202
|
+
var v = "" + h, y = "" + g;
|
|
203
|
+
if (!e && v > y) {
|
|
204
|
+
var x = v;
|
|
205
|
+
v = y, y = x;
|
|
206
|
+
}
|
|
207
|
+
return v + EDGE_KEY_DELIM + y + EDGE_KEY_DELIM + (isUndefined_default(_) ? DEFAULT_EDGE_NAME : _);
|
|
208
|
+
}
|
|
209
|
+
function edgeArgsToObj(e, h, g, _) {
|
|
210
|
+
var v = "" + h, y = "" + g;
|
|
211
|
+
if (!e && v > y) {
|
|
212
|
+
var b = v;
|
|
213
|
+
v = y, y = b;
|
|
214
|
+
}
|
|
215
|
+
var x = {
|
|
216
|
+
v,
|
|
217
|
+
w: y
|
|
218
|
+
};
|
|
219
|
+
return _ && (x.name = _), x;
|
|
220
|
+
}
|
|
221
|
+
function edgeObjToId(e, h) {
|
|
222
|
+
return edgeArgsToId(e, h.v, h.w, h.name);
|
|
223
|
+
}
|
|
224
|
+
export { Graph as t };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
import "./isArrayLikeObject-BPcFdnyK.mjs";
|
|
3
|
+
import "./isUndefined-BvarJ1wS.mjs";
|
|
4
|
+
import "./toInteger-1S_4Byef.mjs";
|
|
5
|
+
import "./_baseUniq-Agc10qFQ.mjs";
|
|
6
|
+
import "./chunk-FPAJGGOC-HRc6DGju.mjs";
|
|
7
|
+
import "./_basePickBy-aQilsjEs.mjs";
|
|
8
|
+
import "./clone-nkGlb0Gn.mjs";
|
|
9
|
+
import { n as createInfoServices, t as InfoModule } from "./chunk-LBM3YZW2-JIQK8wiH.mjs";
|
|
10
|
+
export { InfoModule, createInfoServices };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
import "./isArrayLikeObject-BPcFdnyK.mjs";
|
|
3
|
+
import "./isUndefined-BvarJ1wS.mjs";
|
|
4
|
+
import "./toInteger-1S_4Byef.mjs";
|
|
5
|
+
import "./_baseUniq-Agc10qFQ.mjs";
|
|
6
|
+
import "./chunk-FPAJGGOC-HRc6DGju.mjs";
|
|
7
|
+
import "./_basePickBy-aQilsjEs.mjs";
|
|
8
|
+
import "./clone-nkGlb0Gn.mjs";
|
|
9
|
+
import { t as package_default } from "./chunk-KS23V3DP-BRKOfbU6.mjs";
|
|
10
|
+
import { g as log, h as __name } from "./src-DdwtiGjk.mjs";
|
|
11
|
+
import { c as configureSvgSize } from "./chunk-ABZYJK2D-_NXv778f.mjs";
|
|
12
|
+
import { t as selectSvgElement } from "./chunk-EXTU4WIE-DWzncOZf.mjs";
|
|
13
|
+
import "./chunk-O7ZBX7Z2-DmJUfqJj.mjs";
|
|
14
|
+
import "./chunk-S6J4BHB3-BvrWTdbl.mjs";
|
|
15
|
+
import "./chunk-LBM3YZW2-JIQK8wiH.mjs";
|
|
16
|
+
import "./chunk-76Q3JFCE-D7DMbWeQ.mjs";
|
|
17
|
+
import "./chunk-T53DSG4Q-XzY06amw.mjs";
|
|
18
|
+
import "./chunk-LHMN2FUI-PNCyIUgu.mjs";
|
|
19
|
+
import "./chunk-FWNWRKHM-CGiJVNMo.mjs";
|
|
20
|
+
import { t as parse } from "./mermaid-parser.core-YT4qvimq.mjs";
|
|
21
|
+
var parser = { parse: /* @__PURE__ */ __name(async (e) => {
|
|
22
|
+
let o = await parse("info", e);
|
|
23
|
+
log.debug(o);
|
|
24
|
+
}, "parse") }, DEFAULT_INFO_DB = { version: package_default.version + "" }, diagram = {
|
|
25
|
+
parser,
|
|
26
|
+
db: { getVersion: /* @__PURE__ */ __name(() => DEFAULT_INFO_DB.version, "getVersion") },
|
|
27
|
+
renderer: { draw: /* @__PURE__ */ __name((e, o, s) => {
|
|
28
|
+
log.debug("rendering info diagram\n" + e);
|
|
29
|
+
let c = selectSvgElement(o);
|
|
30
|
+
configureSvgSize(c, 100, 400, !0), c.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${s}`);
|
|
31
|
+
}, "draw") }
|
|
32
|
+
};
|
|
33
|
+
export { diagram };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! Package version @n8n/chat@0.62.0 */
|
|
2
|
+
function initRange(e, t) {
|
|
3
|
+
switch (arguments.length) {
|
|
4
|
+
case 0: break;
|
|
5
|
+
case 1:
|
|
6
|
+
this.range(e);
|
|
7
|
+
break;
|
|
8
|
+
default:
|
|
9
|
+
this.range(t).domain(e);
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
export { initRange as t };
|