@schmitech/chatbot-widget 0.5.3 → 0.6.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/dist/_basePickBy-C3-QE0dl-5eQ6L29l.js +152 -0
- package/dist/_baseUniq-CstiM9Lp-AFR_Ns0a.js +615 -0
- package/dist/arc-W3NKKXLI-DHbDwLx0.js +84 -0
- package/dist/architecture-U656AL7Q-fn9wJZsH-BLoGjtkP.js +6 -0
- package/dist/architectureDiagram-VXUJARFQ-zzJsgPC6-C4OfUE0m.js +4667 -0
- package/dist/blockDiagram-VD42YOAC-D-In4h7h-BYXdRmeG.js +2266 -0
- package/dist/c4Diagram-YG6GDRKO-DBs8r9gh-BdLuHgPT.js +1582 -0
- package/dist/channel-RBWQyMSg-Cx0HUumY.js +6 -0
- package/dist/chatbot-widget.bundle.js +4473 -1556
- package/dist/chatbot-widget.css +1 -1
- package/dist/chatbot-widget.es.js +12 -63659
- package/dist/chatbot-widget.umd.js +4472 -1555
- package/dist/chunk-4BX2VUAB-BqD7w0AR-CbA2613c.js +10 -0
- package/dist/chunk-55IACEB6-D8pvDVEJ-DrL4SJSR.js +9 -0
- package/dist/chunk-B4BG7PRW-Dwma1pSy-BWjG5dc6.js +1375 -0
- package/dist/chunk-DI55MBZ5-BY2XXvZz-DbAvz3Pq.js +1383 -0
- package/dist/chunk-FMBD7UC4-BeiLbQ8U-BNaZTCv4.js +20 -0
- package/dist/chunk-QN33PNHL-BkO3hOeq-DkU1EzGA.js +21 -0
- package/dist/chunk-QZHKN3VN-Cwlo2qTG-DMmeZmp5.js +16 -0
- package/dist/chunk-TZMSLE5B-BnXK-OiF-RfzVsOBe.js +65 -0
- package/dist/classDiagram-2ON5EDUG-Crd6O69V-kCZrFOLN.js +17 -0
- package/dist/classDiagram-v2-WZHVMYZB-Crd6O69V-kCZrFOLN.js +17 -0
- package/dist/clone-CfLgyC8S-DsDOh4B4.js +9 -0
- package/dist/config/index.d.ts +4 -2
- package/dist/cose-bilkent-S5V4N54A-DKeVcPDK-de_7nZTY.js +2609 -0
- package/dist/cytoscape.esm-CjI2IsL8-Be2K4mI6.js +18723 -0
- package/dist/dagre-6UL2VRFP-BPf604Df-BhZs6zCq.js +448 -0
- package/dist/diagram-PSM6KHXK-DeLcpEV3-qb4rujeN.js +532 -0
- package/dist/diagram-QEK2KX5R-C_5RR1NJ-C5kZWmRl.js +222 -0
- package/dist/diagram-S2PKOQOG-DVx43aon-4nlw6iDz.js +144 -0
- package/dist/erDiagram-Q2GNP2WA-DgUeO5_h-DHc9Yphl.js +841 -0
- package/dist/flowDiagram-NV44I4VS-C5HQUzU9-DHjbmAtJ.js +1628 -0
- package/dist/ganttDiagram-JELNMOA3-DgSZ1ixF-C3hJs_k9.js +1936 -0
- package/dist/gitGraph-F6HP7TQM-UL7-Bx1s-Cog5rj3j.js +6 -0
- package/dist/gitGraphDiagram-NY62KEGX-DY5loT9K-CEcKQNrM.js +713 -0
- package/dist/graph-BfwqPHx6-DErF9dBN.js +248 -0
- package/dist/index-B5s_uaP2.js +124168 -0
- package/dist/index-BAOVR-xx-thst7Pu6.js +13251 -0
- package/dist/info-NVLQJR56-BsqQ0RXQ-BcYgZCCY.js +6 -0
- package/dist/infoDiagram-WHAUD3N6-DIqQ6vCk-BuiAAMSH.js +25 -0
- package/dist/journeyDiagram-XKPGCS4Q-DXjg3S3r-Byi_TGXs.js +835 -0
- package/dist/kanban-definition-3W4ZIXB7-Uxt7Am6n-jy96nA-g.js +721 -0
- package/dist/layout-CSfkE668-BjigbqJL.js +1333 -0
- package/dist/mermaid-parser.core-LjuO4CL3-BLqmPe8-.js +12891 -0
- package/dist/mindmap-definition-VGOIOE7T-DXwVuAPE-SK4e1Sse.js +787 -0
- package/dist/packet-BFZMPI3H-DJWkrKrV-BamBev9S.js +6 -0
- package/dist/pie-7BOR55EZ-DC8hTFwn-D1bcIQbR.js +6 -0
- package/dist/pieDiagram-ADFJNKIX-Cj0EHHtj-Dbr09c-S.js +161 -0
- package/dist/quadrantDiagram-AYHSOK5B-CnLDz007-Ci0DQl2T.js +1024 -0
- package/dist/radar-NHE76QYJ-Bijk-Fk9-9nAmDCMr.js +6 -0
- package/dist/requirementDiagram-UZGBJVZJ-rDaI-8Be-CSEc4S33.js +851 -0
- package/dist/sankeyDiagram-TZEHDZUN-A0YO8ixs-Zj8Z0j0n.js +810 -0
- package/dist/sequenceDiagram-WL72ISMW-BFF7TtP7-Dcofckjv.js +2519 -0
- package/dist/shared/styles.d.ts +1 -1
- package/dist/stateDiagram-FKZM4ZOC-ofFsB7HJ-BJBX12rE.js +264 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CEZFbksU-BywmU88h.js +17 -0
- package/dist/timeline-definition-IT6M3QCI-5W361ZNm-MP_ufVe7.js +800 -0
- package/dist/treemap-KMMF4GRG-pGRoYcSn-BeZ7sXgP.js +6 -0
- package/dist/ui/Message.d.ts +1 -5
- package/dist/ui/MessagesList.d.ts +1 -5
- package/dist/utils/contentFiltering.d.ts +12 -0
- package/dist/xychartDiagram-PRI3JC2R-CSr0GxaP-DBgCtplP.js +1297 -0
- package/package.json +3 -3
- package/dist/ui/TypingEffect.d.ts +0 -18
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { x as e } from "./index-B5s_uaP2.js";
|
|
2
|
+
typeof window < "u" && (window.global = window);
|
|
3
|
+
var i = /* @__PURE__ */ e(() => `
|
|
4
|
+
/* Font Awesome icon styling - consolidated */
|
|
5
|
+
.label-icon {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
height: 1em;
|
|
8
|
+
overflow: visible;
|
|
9
|
+
vertical-align: -0.125em;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.node .label-icon path {
|
|
13
|
+
fill: currentColor;
|
|
14
|
+
stroke: revert;
|
|
15
|
+
stroke-width: revert;
|
|
16
|
+
}
|
|
17
|
+
`, "getIconStyles");
|
|
18
|
+
export {
|
|
19
|
+
i as l
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { x as n, G as s, a as x } from "./index-B5s_uaP2.js";
|
|
2
|
+
typeof window < "u" && (window.global = window);
|
|
3
|
+
var u = /* @__PURE__ */ n((i, t, e, o) => {
|
|
4
|
+
i.attr("class", e);
|
|
5
|
+
const { width: d, height: h, x: a, y: r } = g(i, t);
|
|
6
|
+
s(i, h, d, o);
|
|
7
|
+
const w = c(a, r, d, h, t);
|
|
8
|
+
i.attr("viewBox", w), x.debug(`viewBox configured: ${w} with padding: ${t}`);
|
|
9
|
+
}, "setupViewPortForSVG"), g = /* @__PURE__ */ n((i, t) => {
|
|
10
|
+
var e;
|
|
11
|
+
const o = ((e = i.node()) == null ? void 0 : e.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
|
|
12
|
+
return {
|
|
13
|
+
width: o.width + t * 2,
|
|
14
|
+
height: o.height + t * 2,
|
|
15
|
+
x: o.x,
|
|
16
|
+
y: o.y
|
|
17
|
+
};
|
|
18
|
+
}, "calculateDimensionsWithPadding"), c = /* @__PURE__ */ n((i, t, e, o, d) => `${i - d} ${t - d} ${e} ${o}`, "createViewBox");
|
|
19
|
+
export {
|
|
20
|
+
u as d
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { x as e } from "./index-B5s_uaP2.js";
|
|
2
|
+
typeof window < "u" && (window.global = window);
|
|
3
|
+
var i, r = (i = class {
|
|
4
|
+
/**
|
|
5
|
+
* @param init - Function that creates the default state.
|
|
6
|
+
*/
|
|
7
|
+
constructor(t) {
|
|
8
|
+
this.init = t, this.records = this.init();
|
|
9
|
+
}
|
|
10
|
+
reset() {
|
|
11
|
+
this.records = this.init();
|
|
12
|
+
}
|
|
13
|
+
}, e(i, "ImperativeState"), i);
|
|
14
|
+
export {
|
|
15
|
+
r as e
|
|
16
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { x as n, aR as o, l as x } from "./index-B5s_uaP2.js";
|
|
2
|
+
typeof window < "u" && (window.global = window);
|
|
3
|
+
var l = /* @__PURE__ */ n((s, t) => {
|
|
4
|
+
const r = s.append("rect");
|
|
5
|
+
if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.name && r.attr("name", t.name), t.rx && r.attr("rx", t.rx), t.ry && r.attr("ry", t.ry), t.attrs !== void 0)
|
|
6
|
+
for (const a in t.attrs)
|
|
7
|
+
r.attr(a, t.attrs[a]);
|
|
8
|
+
return t.class && r.attr("class", t.class), r;
|
|
9
|
+
}, "drawRect"), d = /* @__PURE__ */ n((s, t) => {
|
|
10
|
+
const r = {
|
|
11
|
+
x: t.startx,
|
|
12
|
+
y: t.starty,
|
|
13
|
+
width: t.stopx - t.startx,
|
|
14
|
+
height: t.stopy - t.starty,
|
|
15
|
+
fill: t.fill,
|
|
16
|
+
stroke: t.stroke,
|
|
17
|
+
class: "rect"
|
|
18
|
+
};
|
|
19
|
+
l(s, r).lower();
|
|
20
|
+
}, "drawBackgroundRect"), h = /* @__PURE__ */ n((s, t) => {
|
|
21
|
+
const r = t.text.replace(o, " "), a = s.append("text");
|
|
22
|
+
a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class && a.attr("class", t.class);
|
|
23
|
+
const e = a.append("tspan");
|
|
24
|
+
return e.attr("x", t.x + t.textMargin * 2), e.text(r), a;
|
|
25
|
+
}, "drawText"), y = /* @__PURE__ */ n((s, t, r, a) => {
|
|
26
|
+
const e = s.append("image");
|
|
27
|
+
e.attr("x", t), e.attr("y", r);
|
|
28
|
+
const i = x.sanitizeUrl(a);
|
|
29
|
+
e.attr("xlink:href", i);
|
|
30
|
+
}, "drawImage"), p = /* @__PURE__ */ n((s, t, r, a) => {
|
|
31
|
+
const e = s.append("use");
|
|
32
|
+
e.attr("x", t), e.attr("y", r);
|
|
33
|
+
const i = x.sanitizeUrl(a);
|
|
34
|
+
e.attr("xlink:href", `#${i}`);
|
|
35
|
+
}, "drawEmbeddedImage"), g = /* @__PURE__ */ n(() => ({
|
|
36
|
+
x: 0,
|
|
37
|
+
y: 0,
|
|
38
|
+
width: 100,
|
|
39
|
+
height: 100,
|
|
40
|
+
fill: "#EDF2AE",
|
|
41
|
+
stroke: "#666",
|
|
42
|
+
anchor: "start",
|
|
43
|
+
rx: 0,
|
|
44
|
+
ry: 0
|
|
45
|
+
}), "getNoteRect"), w = /* @__PURE__ */ n(() => ({
|
|
46
|
+
x: 0,
|
|
47
|
+
y: 0,
|
|
48
|
+
width: 100,
|
|
49
|
+
height: 100,
|
|
50
|
+
"text-anchor": "start",
|
|
51
|
+
style: "#666",
|
|
52
|
+
textMargin: 0,
|
|
53
|
+
rx: 0,
|
|
54
|
+
ry: 0,
|
|
55
|
+
tspan: !0
|
|
56
|
+
}), "getTextObj");
|
|
57
|
+
export {
|
|
58
|
+
d,
|
|
59
|
+
h as g,
|
|
60
|
+
y as h,
|
|
61
|
+
p as m,
|
|
62
|
+
w as p,
|
|
63
|
+
l as x,
|
|
64
|
+
g as y
|
|
65
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { D as e, F as s, T as t, k as a } from "./chunk-B4BG7PRW-Dwma1pSy-BWjG5dc6.js";
|
|
2
|
+
import { x as o } from "./index-B5s_uaP2.js";
|
|
3
|
+
typeof window < "u" && (window.global = window);
|
|
4
|
+
var d = {
|
|
5
|
+
parser: t,
|
|
6
|
+
get db() {
|
|
7
|
+
return new a();
|
|
8
|
+
},
|
|
9
|
+
renderer: s,
|
|
10
|
+
styles: e,
|
|
11
|
+
init: /* @__PURE__ */ o((r) => {
|
|
12
|
+
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute;
|
|
13
|
+
}, "init")
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
d as diagram
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { D as e, F as s, T as t, k as a } from "./chunk-B4BG7PRW-Dwma1pSy-BWjG5dc6.js";
|
|
2
|
+
import { x as o } from "./index-B5s_uaP2.js";
|
|
3
|
+
typeof window < "u" && (window.global = window);
|
|
4
|
+
var d = {
|
|
5
|
+
parser: t,
|
|
6
|
+
get db() {
|
|
7
|
+
return new a();
|
|
8
|
+
},
|
|
9
|
+
renderer: s,
|
|
10
|
+
styles: e,
|
|
11
|
+
init: /* @__PURE__ */ o((r) => {
|
|
12
|
+
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute;
|
|
13
|
+
}, "init")
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
d as diagram
|
|
17
|
+
};
|
package/dist/config/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface ChatConfig {
|
|
|
6
6
|
primary: string;
|
|
7
7
|
secondary: string;
|
|
8
8
|
background: string;
|
|
9
|
+
mode?: 'light' | 'dark' | 'system';
|
|
9
10
|
text: {
|
|
10
11
|
primary: string;
|
|
11
12
|
secondary: string;
|
|
@@ -22,7 +23,7 @@ export interface ChatConfig {
|
|
|
22
23
|
assistantText?: string;
|
|
23
24
|
};
|
|
24
25
|
suggestedQuestions: {
|
|
25
|
-
|
|
26
|
+
questionsBackground: string;
|
|
26
27
|
text: string;
|
|
27
28
|
highlightedBackground: string;
|
|
28
29
|
};
|
|
@@ -48,6 +49,7 @@ export declare const defaultTheme: {
|
|
|
48
49
|
primary: string;
|
|
49
50
|
secondary: string;
|
|
50
51
|
background: string;
|
|
52
|
+
mode: "light";
|
|
51
53
|
text: {
|
|
52
54
|
primary: string;
|
|
53
55
|
secondary: string;
|
|
@@ -63,7 +65,7 @@ export declare const defaultTheme: {
|
|
|
63
65
|
assistant: string;
|
|
64
66
|
};
|
|
65
67
|
suggestedQuestions: {
|
|
66
|
-
|
|
68
|
+
questionsBackground: string;
|
|
67
69
|
text: string;
|
|
68
70
|
highlightedBackground: string;
|
|
69
71
|
};
|