@altimateai/ui-components 0.0.64-beta2 → 0.0.64-beta4
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/Carousel.js +3 -2
- package/dist/CoachForm.js +6322 -6279
- package/dist/_basePickBy.js +18 -18
- package/dist/_baseUniq.js +28 -28
- package/dist/arc.js +32 -32
- package/dist/architectureDiagram-VXUJARFQ.js +125 -125
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/c4Diagram-YG6GDRKO.js +1 -1
- package/dist/channel.js +1 -1
- package/dist/chatbotV2/index.d.ts +7 -5
- package/dist/chatbotV2/index.js +24 -23
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-B4BG7PRW.js +9 -9
- package/dist/chunk-DI55MBZ5.js +1 -1
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-QN33PNHL.js +5 -5
- package/dist/chunk-QZHKN3VN.js +1 -1
- package/dist/chunk-TZMSLE5B.js +1 -1
- package/dist/classDiagram-2ON5EDUG.js +1 -1
- package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
- package/dist/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/dagre-6UL2VRFP.js +3 -3
- package/dist/diagram-PSM6KHXK.js +24 -24
- package/dist/diagram-QEK2KX5R.js +16 -16
- package/dist/diagram-S2PKOQOG.js +1 -1
- package/dist/erDiagram-Q2GNP2WA.js +1 -1
- package/dist/flowDiagram-NV44I4VS.js +1 -1
- package/dist/ganttDiagram-LVOFAZNH.js +1 -1
- package/dist/gitGraphDiagram-NY62KEGX.js +1 -1
- package/dist/graph.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/infoDiagram-F6ZHWCRC.js +9 -9
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +9 -9
- package/dist/layout.js +34 -34
- package/dist/main.js +1 -1
- package/dist/mermaid-parser.core.js +1 -1
- package/dist/mindmap-definition-VGOIOE7T.js +17 -17
- package/dist/pieDiagram-ADFJNKIX.js +21 -21
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
- package/dist/sankeyDiagram-TZEHDZUN.js +22 -22
- package/dist/sequenceDiagram-WL72ISMW.js +1 -1
- package/dist/stateDiagram-FKZM4ZOC.js +10 -10
- package/dist/stateDiagram-v2-4FDKWEC3.js +4 -4
- package/dist/timeline-definition-IT6M3QCI.js +12 -12
- package/dist/{types-DbY7DJ8y.d.ts → types-N2nctlGV.d.ts} +23 -12
- package/dist/xychartDiagram-PRI3JC2R.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b0 as S, aU as F, bv as Z, at as q, af as H, ag as J, a2 as K, a3 as Q, a5 as X, a4 as Y, a0 as g, ac as z, am as ee, a6 as te, au as ae, ay as re, aF as ne, ad as ie } from "./CoachForm.js";
|
|
2
2
|
import { p as se } from "./chunk-4BX2VUAB.js";
|
|
3
3
|
import { p as le } from "./mermaid-parser.core.js";
|
|
4
4
|
import "./redux-toolkit.modern.js";
|
|
@@ -11,17 +11,17 @@ function ue(e) {
|
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
13
13
|
function pe() {
|
|
14
|
-
var e = ue, a = ce, f = null,
|
|
14
|
+
var e = ue, a = ce, f = null, y = S(0), s = S(F), o = S(0);
|
|
15
15
|
function l(t) {
|
|
16
|
-
var n, c = (t = Z(t)).length, u,
|
|
16
|
+
var n, c = (t = Z(t)).length, u, x, m = 0, p = new Array(c), i = new Array(c), v = +y.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), h, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
|
|
17
17
|
for (n = 0; n < c; ++n)
|
|
18
18
|
(d = i[p[n] = n] = +e(t[n], n, t)) > 0 && (m += d);
|
|
19
19
|
for (a != null ? p.sort(function(A, D) {
|
|
20
20
|
return a(i[A], i[D]);
|
|
21
21
|
}) : f != null && p.sort(function(A, D) {
|
|
22
22
|
return f(t[A], t[D]);
|
|
23
|
-
}), n = 0,
|
|
24
|
-
u = p[n], d = i[u], h = v + (d > 0 ? d *
|
|
23
|
+
}), n = 0, x = m ? (w - c * $) / m : 0; n < c; ++n, v = h)
|
|
24
|
+
u = p[n], d = i[u], h = v + (d > 0 ? d * x : 0) + $, i[u] = {
|
|
25
25
|
data: t[u],
|
|
26
26
|
index: n,
|
|
27
27
|
value: d,
|
|
@@ -38,7 +38,7 @@ function pe() {
|
|
|
38
38
|
}, l.sort = function(t) {
|
|
39
39
|
return arguments.length ? (f = t, a = null, l) : f;
|
|
40
40
|
}, l.startAngle = function(t) {
|
|
41
|
-
return arguments.length ? (
|
|
41
|
+
return arguments.length ? (y = typeof t == "function" ? t : S(+t), l) : y;
|
|
42
42
|
}, l.endAngle = function(t) {
|
|
43
43
|
return arguments.length ? (s = typeof t == "function" ? t : S(+t), l) : s;
|
|
44
44
|
}, l.padAngle = function(t) {
|
|
@@ -56,7 +56,7 @@ var L = q.pie, G = {
|
|
|
56
56
|
throw new Error(
|
|
57
57
|
`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
|
|
58
58
|
);
|
|
59
|
-
T.has(e) || (T.set(e, a),
|
|
59
|
+
T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
|
|
60
60
|
}, "addSection"), me = /* @__PURE__ */ g(() => T, "getSections"), ve = /* @__PURE__ */ g((e) => {
|
|
61
61
|
N = e;
|
|
62
62
|
}, "setShowData"), Se = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
|
|
@@ -72,12 +72,12 @@ var L = q.pie, G = {
|
|
|
72
72
|
getSections: me,
|
|
73
73
|
setShowData: ve,
|
|
74
74
|
getShowData: Se
|
|
75
|
-
},
|
|
75
|
+
}, ye = /* @__PURE__ */ g((e, a) => {
|
|
76
76
|
se(e, a), a.setShowData(e.showData), e.sections.map(a.addSection);
|
|
77
|
-
}, "populateDb"),
|
|
77
|
+
}, "populateDb"), xe = {
|
|
78
78
|
parse: /* @__PURE__ */ g(async (e) => {
|
|
79
79
|
const a = await le("pie", e);
|
|
80
|
-
|
|
80
|
+
z.debug(a), ye(a, _);
|
|
81
81
|
}, "parse")
|
|
82
82
|
}, we = /* @__PURE__ */ g((e) => `
|
|
83
83
|
.pieCircle{
|
|
@@ -110,15 +110,15 @@ var L = q.pie, G = {
|
|
|
110
110
|
`, "getStyles"), Ae = we, De = /* @__PURE__ */ g((e) => {
|
|
111
111
|
const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
|
|
112
112
|
return pe().value((s) => s.value)(f);
|
|
113
|
-
}, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f,
|
|
114
|
-
|
|
113
|
+
}, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f, y) => {
|
|
114
|
+
z.debug(`rendering pie chart
|
|
115
115
|
` + e);
|
|
116
|
-
const s =
|
|
117
|
-
p.attr("transform", "translate(" +
|
|
116
|
+
const s = y.db, o = te(), l = ae(s.getConfig(), o.pie), t = 40, n = 18, c = 4, u = 450, x = u, m = re(a), p = m.append("g");
|
|
117
|
+
p.attr("transform", "translate(" + x / 2 + "," + u / 2 + ")");
|
|
118
118
|
const { themeVariables: i } = o;
|
|
119
119
|
let [v] = ne(i.pieOuterStrokeWidth);
|
|
120
120
|
v ?? (v = 2);
|
|
121
|
-
const w = l.textPosition, h = Math.min(
|
|
121
|
+
const w = l.textPosition, h = Math.min(x, u) / 2 - t, C = I().innerRadius(0).outerRadius(h), $ = I().innerRadius(h * w).outerRadius(h * w);
|
|
122
122
|
p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", h + v / 2).attr("class", "pieOuterCircle");
|
|
123
123
|
const d = s.getSections(), A = De(d), D = [
|
|
124
124
|
i.pie1,
|
|
@@ -144,20 +144,20 @@ var L = q.pie, G = {
|
|
|
144
144
|
label: r,
|
|
145
145
|
value: M
|
|
146
146
|
})), k = p.selectAll(".legend").data(O).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
|
|
147
|
-
const R = n + c,
|
|
148
|
-
return "translate(" +
|
|
147
|
+
const R = n + c, U = R * O.length / 2, V = 12 * n, j = M * R - U;
|
|
148
|
+
return "translate(" + V + "," + j + ")";
|
|
149
149
|
});
|
|
150
150
|
k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => E(r.label)).style("stroke", (r) => E(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
|
|
151
151
|
const B = Math.max(
|
|
152
152
|
...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
|
|
153
|
-
), P =
|
|
153
|
+
), P = x + t + n + c + B;
|
|
154
154
|
m.attr("viewBox", `0 0 ${P} ${u}`), ie(m, u, P, l.useMaxWidth);
|
|
155
|
-
}, "draw"), $e = { draw: Ce },
|
|
156
|
-
parser:
|
|
155
|
+
}, "draw"), $e = { draw: Ce }, ze = {
|
|
156
|
+
parser: xe,
|
|
157
157
|
db: _,
|
|
158
158
|
renderer: $e,
|
|
159
159
|
styles: Ae
|
|
160
160
|
};
|
|
161
161
|
export {
|
|
162
|
-
|
|
162
|
+
ze as diagram
|
|
163
163
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a0 as o, aA as _e, at as D, ac as At, a6 as wt, ab as Ae, ag as ie, a2 as ke, a3 as Fe, af as Pe, a4 as ve, a5 as Ce, am as Le, ad as Ee } from "./CoachForm.js";
|
|
2
2
|
import { s as zt } from "./redux-toolkit.modern.js";
|
|
3
3
|
import { l as ee } from "./linear.js";
|
|
4
4
|
var Vt = function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as Ge } from "./chunk-55IACEB6.js";
|
|
2
2
|
import { s as ze } from "./chunk-QN33PNHL.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a0 as f, a2 as Xe, a3 as Je, a5 as Ze, a4 as et, af as tt, ag as st, a6 as Ne, ac as qe, am as it, as as rt, ap as nt, aq as at, al as lt } from "./CoachForm.js";
|
|
4
4
|
var Ae = function() {
|
|
5
5
|
var e = /* @__PURE__ */ f(function(P, i, r, l) {
|
|
6
6
|
for (r = r || {}, l = P.length; l--; r[P[l]] = i) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a0 as p, a6 as lt, a3 as _t, a2 as xt, a4 as vt, a5 as bt, ag as wt, af as St, am as Lt, a8 as Et, an as At, aN as Tt } from "./CoachForm.js";
|
|
2
2
|
import { s as X } from "./redux-toolkit.modern.js";
|
|
3
3
|
import { o as Mt } from "./ordinal.js";
|
|
4
4
|
function Nt(t) {
|
|
@@ -54,7 +54,7 @@ function Ot(t, e) {
|
|
|
54
54
|
function mt(t, e) {
|
|
55
55
|
return t.sourceLinks.length ? t.depth : e - 1;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Dt(t) {
|
|
58
58
|
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
|
|
59
59
|
}
|
|
60
60
|
function q(t) {
|
|
@@ -74,7 +74,7 @@ function Q(t, e) {
|
|
|
74
74
|
function it(t) {
|
|
75
75
|
return t.value;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function $t(t) {
|
|
78
78
|
return t.index;
|
|
79
79
|
}
|
|
80
80
|
function zt(t) {
|
|
@@ -98,7 +98,7 @@ function yt({ nodes: t }) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
function Bt() {
|
|
101
|
-
let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ =
|
|
101
|
+
let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ = $t, s = mt, o, l, x = zt, v = jt, y = 6;
|
|
102
102
|
function b() {
|
|
103
103
|
const n = { nodes: x.apply(null, arguments), links: v.apply(null, arguments) };
|
|
104
104
|
return M(n), T(n), N(n), C(n), S(n), yt(n), n;
|
|
@@ -171,7 +171,7 @@ function Bt() {
|
|
|
171
171
|
u = c, c = /* @__PURE__ */ new Set();
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function $({ nodes: n }) {
|
|
175
175
|
const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
|
|
176
176
|
for (const r of n) {
|
|
177
177
|
const k = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
|
|
@@ -199,7 +199,7 @@ function Bt() {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
function S(n) {
|
|
202
|
-
const f =
|
|
202
|
+
const f = $(n);
|
|
203
203
|
m = Math.min(d, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
|
|
204
204
|
for (let u = 0; u < y; ++u) {
|
|
205
205
|
const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
|
|
@@ -240,9 +240,9 @@ function Bt() {
|
|
|
240
240
|
}
|
|
241
241
|
function O(n, f) {
|
|
242
242
|
const u = n.length >> 1, c = n[u];
|
|
243
|
-
g(n, c.y0 - m, u - 1, f),
|
|
243
|
+
g(n, c.y0 - m, u - 1, f), D(n, c.y1 + m, u + 1, f), g(n, a, n.length - 1, f), D(n, e, 0, f);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function D(n, f, u, c) {
|
|
246
246
|
for (; u < n.length; ++u) {
|
|
247
247
|
const r = n[u], k = (f - r.y0) * c;
|
|
248
248
|
k > 1e-6 && (r.y0 += k, r.y1 += k), f = r.y1 + m;
|
|
@@ -327,8 +327,8 @@ ot.prototype = kt.prototype = {
|
|
|
327
327
|
else if (x > V) if (!(Math.abs(l * _ - s * o) > V) || !h)
|
|
328
328
|
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
329
329
|
else {
|
|
330
|
-
var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2),
|
|
331
|
-
Math.abs(
|
|
330
|
+
var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), $ = C / N, R = C / T;
|
|
331
|
+
Math.abs($ - 1) > V && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
arc: function(t, e, i, a, h, d) {
|
|
@@ -434,13 +434,13 @@ var at = function() {
|
|
|
434
434
|
}
|
|
435
435
|
}, "parseError"),
|
|
436
436
|
parse: /* @__PURE__ */ p(function(s) {
|
|
437
|
-
var o = this, l = [0], x = [], v = [null], y = [], b = this.table, M = "", T = 0, N = 0, C = 2,
|
|
437
|
+
var o = this, l = [0], x = [], v = [null], y = [], b = this.table, M = "", T = 0, N = 0, C = 2, $ = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
|
|
438
438
|
for (var B in this.yy)
|
|
439
439
|
Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
|
|
440
440
|
S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
441
441
|
var O = S.yylloc;
|
|
442
442
|
y.push(O);
|
|
443
|
-
var
|
|
443
|
+
var D = S.options && S.options.ranges;
|
|
444
444
|
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
445
445
|
function g(L) {
|
|
446
446
|
l.length = l.length - 2 * L, v.length = v.length - L, y.length = y.length - L;
|
|
@@ -448,7 +448,7 @@ var at = function() {
|
|
|
448
448
|
p(g, "popStack");
|
|
449
449
|
function E() {
|
|
450
450
|
var L;
|
|
451
|
-
return L = x.pop() || S.lex() ||
|
|
451
|
+
return L = x.pop() || S.lex() || $, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = o.symbols_[L] || L), L;
|
|
452
452
|
}
|
|
453
453
|
p(E, "lex");
|
|
454
454
|
for (var A, z, I, n, f = {}, u, c, r, k; ; ) {
|
|
@@ -459,7 +459,7 @@ var at = function() {
|
|
|
459
459
|
this.terminals_[u] && u > C && k.push("'" + this.terminals_[u] + "'");
|
|
460
460
|
S.showPosition ? w = "Parse error on line " + (T + 1) + `:
|
|
461
461
|
` + S.showPosition() + `
|
|
462
|
-
Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A ==
|
|
462
|
+
Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == $ ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
|
|
463
463
|
text: S.match,
|
|
464
464
|
token: this.terminals_[A] || A,
|
|
465
465
|
line: S.yylineno,
|
|
@@ -479,7 +479,7 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
479
479
|
last_line: y[y.length - 1].last_line,
|
|
480
480
|
first_column: y[y.length - (c || 1)].first_column,
|
|
481
481
|
last_column: y[y.length - 1].last_column
|
|
482
|
-
},
|
|
482
|
+
}, D && (f._$.range = [
|
|
483
483
|
y[y.length - (c || 1)].range[0],
|
|
484
484
|
y[y.length - 1].range[1]
|
|
485
485
|
]), n = this.performAction.apply(f, [
|
|
@@ -755,7 +755,7 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
755
755
|
}, p(j, "Uid"), j.count = 0, j), ae = {
|
|
756
756
|
left: Ct,
|
|
757
757
|
right: Ot,
|
|
758
|
-
center:
|
|
758
|
+
center: Dt,
|
|
759
759
|
justify: mt
|
|
760
760
|
}, le = /* @__PURE__ */ p(function(t, e, i, a) {
|
|
761
761
|
const { securityLevel: h, sankey: d } = lt(), m = At.sankey;
|
|
@@ -778,21 +778,21 @@ ${b}${Math.round(E * 100) / 100}${M}` : g, "getText");
|
|
|
778
778
|
const g = B.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
|
|
779
779
|
g.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), g.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
|
|
780
780
|
}
|
|
781
|
-
let
|
|
781
|
+
let D;
|
|
782
782
|
switch (O) {
|
|
783
783
|
case "gradient":
|
|
784
|
-
|
|
784
|
+
D = /* @__PURE__ */ p((g) => g.uid, "coloring");
|
|
785
785
|
break;
|
|
786
786
|
case "source":
|
|
787
|
-
|
|
787
|
+
D = /* @__PURE__ */ p((g) => S(g.source.id), "coloring");
|
|
788
788
|
break;
|
|
789
789
|
case "target":
|
|
790
|
-
|
|
790
|
+
D = /* @__PURE__ */ p((g) => S(g.target.id), "coloring");
|
|
791
791
|
break;
|
|
792
792
|
default:
|
|
793
|
-
|
|
793
|
+
D = O;
|
|
794
794
|
}
|
|
795
|
-
B.append("path").attr("d", Kt()).attr("stroke",
|
|
795
|
+
B.append("path").attr("d", Kt()).attr("stroke", D).attr("stroke-width", (g) => Math.max(1, g.width)), Tt(void 0, o, 0, v);
|
|
796
796
|
}, "draw"), ce = {
|
|
797
797
|
draw: le
|
|
798
798
|
}, ue = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as ct, a as Xt, d as we, b as ve, c as Qt, e as Jt } from "./chunk-TZMSLE5B.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a0 as f, a2 as se, a5 as Ie, af as Le, a3 as Ae, a4 as _e, ag as ke, a6 as st, ah as Pe, ai as Ne, am as Se, ac as J, ab as St, ao as Me, a8 as I, aB as z, aC as At, al as F, a1 as Re, ad as De, ae as re, aD as Ce, aE as ie, av as Ht, aF as ne, aG as Oe } from "./CoachForm.js";
|
|
3
3
|
import { I as Be } from "./chunk-QZHKN3VN.js";
|
|
4
4
|
import { s as Mt } from "./redux-toolkit.modern.js";
|
|
5
5
|
var Ut = function() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as R, S as N, a as W } from "./chunk-DI55MBZ5.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a0 as f, a6 as t, ac as S, ad as P, a8 as z, aI as U, aJ as _, aD as C, al as F } from "./CoachForm.js";
|
|
3
3
|
import { s as H } from "./redux-toolkit.modern.js";
|
|
4
|
-
import { G as
|
|
5
|
-
import { l as
|
|
6
|
-
var
|
|
4
|
+
import { G as J } from "./graph.js";
|
|
5
|
+
import { l as O } from "./layout.js";
|
|
6
|
+
var D = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), X = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), I = /* @__PURE__ */ f((e, i) => {
|
|
7
7
|
const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
|
|
8
8
|
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
|
|
9
9
|
}, "drawSimpleState"), Y = /* @__PURE__ */ f((e, i) => {
|
|
@@ -82,7 +82,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
82
82
|
width: 0,
|
|
83
83
|
height: 0
|
|
84
84
|
}, n = e.append("g").attr("id", d).attr("class", "stateGroup");
|
|
85
|
-
i.type === "start" &&
|
|
85
|
+
i.type === "start" && D(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") && Z(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && X(n), i.type === "default" && i.descriptions.length === 0 && I(n, i), i.type === "default" && i.descriptions.length > 0 && Y(n, i);
|
|
86
86
|
const l = n.node().getBBox();
|
|
87
87
|
return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
|
|
88
88
|
}, "drawState"), A = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
|
|
@@ -99,13 +99,13 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
99
99
|
}
|
|
100
100
|
}, "getRelationType");
|
|
101
101
|
i.points = i.points.filter((s) => !Number.isNaN(s.y));
|
|
102
|
-
const n = i.points, l =
|
|
102
|
+
const n = i.points, l = U().x(function(s) {
|
|
103
103
|
return s.x;
|
|
104
104
|
}).y(function(s) {
|
|
105
105
|
return s.y;
|
|
106
|
-
}).curve(
|
|
106
|
+
}).curve(_), x = e.append("path").attr("d", l(n)).attr("id", "edge" + A).attr("class", "transition");
|
|
107
107
|
let a = "";
|
|
108
|
-
if (t().state.arrowMarkerAbsolute && (a =
|
|
108
|
+
if (t().state.arrowMarkerAbsolute && (a = C(!0)), x.attr(
|
|
109
109
|
"marker-end",
|
|
110
110
|
"url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
|
|
111
111
|
), d.title !== void 0) {
|
|
@@ -146,7 +146,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
146
146
|
`${o.x - b.padding} ${o.y - b.padding} ` + g + " " + B
|
|
147
147
|
);
|
|
148
148
|
}, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
|
|
149
|
-
const a = new
|
|
149
|
+
const a = new J({
|
|
150
150
|
compound: !0,
|
|
151
151
|
multigraph: !0
|
|
152
152
|
});
|
|
@@ -222,7 +222,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
|
|
|
222
222
|
},
|
|
223
223
|
"id" + B
|
|
224
224
|
);
|
|
225
|
-
}),
|
|
225
|
+
}), O(a), S.debug("Graph after layout", a.nodes());
|
|
226
226
|
const m = i.node();
|
|
227
227
|
a.nodes().forEach(function(r) {
|
|
228
228
|
r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + m.id + " #" + r).attr(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import {
|
|
1
|
+
import { s as a, S as t, b as r, a as s } from "./chunk-DI55MBZ5.js";
|
|
2
|
+
import { a0 as i } from "./CoachForm.js";
|
|
3
3
|
import "./redux-toolkit.modern.js";
|
|
4
4
|
var l = {
|
|
5
|
-
parser:
|
|
5
|
+
parser: a,
|
|
6
6
|
get db() {
|
|
7
|
-
return new
|
|
7
|
+
return new t(2);
|
|
8
8
|
},
|
|
9
9
|
renderer: r,
|
|
10
10
|
styles: s,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a0 as s, as as xt, aM as kt, am as vt, a6 as _t, ac as E, aN as bt, aO as wt, aP as St, aQ as Et } from "./CoachForm.js";
|
|
2
2
|
import { s as q } from "./redux-toolkit.modern.js";
|
|
3
3
|
import { d as nt } from "./arc.js";
|
|
4
4
|
var X = function() {
|
|
@@ -63,7 +63,7 @@ var X = function() {
|
|
|
63
63
|
}
|
|
64
64
|
}, "parseError"),
|
|
65
65
|
parse: /* @__PURE__ */ s(function(i) {
|
|
66
|
-
var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2,
|
|
66
|
+
var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, Q = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
|
|
67
67
|
for (var L in this.yy)
|
|
68
68
|
Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
|
|
69
69
|
v.setInput(i, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
|
|
@@ -77,18 +77,18 @@ var X = function() {
|
|
|
77
77
|
s(R, "popStack");
|
|
78
78
|
function A() {
|
|
79
79
|
var T;
|
|
80
|
-
return T = u.pop() || v.lex() ||
|
|
80
|
+
return T = u.pop() || v.lex() || Q, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
|
|
81
81
|
}
|
|
82
82
|
s(A, "lex");
|
|
83
|
-
for (var w, P, I,
|
|
83
|
+
for (var w, P, I, J, z = {}, j, H, et, G; ; ) {
|
|
84
84
|
if (P = h[h.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = A()), I = S[P] && S[P][w]), typeof I > "u" || !I.length || !I[0]) {
|
|
85
|
-
var
|
|
85
|
+
var K = "";
|
|
86
86
|
G = [];
|
|
87
87
|
for (j in S[P])
|
|
88
88
|
this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
|
|
89
|
-
v.showPosition ?
|
|
89
|
+
v.showPosition ? K = "Parse error on line " + (M + 1) + `:
|
|
90
90
|
` + v.showPosition() + `
|
|
91
|
-
Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" :
|
|
91
|
+
Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : K = "Parse error on line " + (M + 1) + ": Unexpected " + (w == Q ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(K, {
|
|
92
92
|
text: v.match,
|
|
93
93
|
token: this.terminals_[w] || w,
|
|
94
94
|
line: v.yylineno,
|
|
@@ -111,7 +111,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
111
111
|
}, $ && (z._$.range = [
|
|
112
112
|
o[o.length - (H || 1)].range[0],
|
|
113
113
|
o[o.length - 1].range[1]
|
|
114
|
-
]),
|
|
114
|
+
]), J = this.performAction.apply(z, [
|
|
115
115
|
k,
|
|
116
116
|
C,
|
|
117
117
|
M,
|
|
@@ -119,8 +119,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
119
119
|
I[1],
|
|
120
120
|
y,
|
|
121
121
|
o
|
|
122
|
-
].concat(O)), typeof
|
|
123
|
-
return
|
|
122
|
+
].concat(O)), typeof J < "u")
|
|
123
|
+
return J;
|
|
124
124
|
H && (h = h.slice(0, -1 * H * 2), y = y.slice(0, -1 * H), o = o.slice(0, -1 * H)), h.push(this.productions_[I[1]][0]), y.push(z.$), o.push(z._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
|
|
125
125
|
break;
|
|
126
126
|
case 3:
|
|
@@ -791,12 +791,12 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
791
791
|
.eventWrapper {
|
|
792
792
|
filter: brightness(120%);
|
|
793
793
|
}
|
|
794
|
-
`, "getStyles"), qt = Gt,
|
|
794
|
+
`, "getStyles"), qt = Gt, Jt = {
|
|
795
795
|
db: at,
|
|
796
796
|
renderer: Ot,
|
|
797
797
|
parser: Tt,
|
|
798
798
|
styles: qt
|
|
799
799
|
};
|
|
800
800
|
export {
|
|
801
|
-
|
|
801
|
+
Jt as diagram
|
|
802
802
|
};
|
|
@@ -23,15 +23,22 @@ interface Feedback {
|
|
|
23
23
|
rating?: "up" | "down";
|
|
24
24
|
comment?: string;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
type ContextOption = {
|
|
27
27
|
label: string;
|
|
28
28
|
key: string;
|
|
29
|
-
|
|
29
|
+
type: "submenu";
|
|
30
|
+
options: {
|
|
30
31
|
id: string;
|
|
31
32
|
label: string;
|
|
32
33
|
}[];
|
|
33
|
-
|
|
34
|
-
}
|
|
34
|
+
icon?: ReactNode;
|
|
35
|
+
} | {
|
|
36
|
+
label: string;
|
|
37
|
+
key: string;
|
|
38
|
+
type: "trigger";
|
|
39
|
+
handler?: () => void;
|
|
40
|
+
icon?: ReactNode;
|
|
41
|
+
};
|
|
35
42
|
interface ChatSession {
|
|
36
43
|
id: string;
|
|
37
44
|
messages: ChatMessage[];
|
|
@@ -42,6 +49,7 @@ interface ChatSession {
|
|
|
42
49
|
selectedModel?: string | null;
|
|
43
50
|
mode?: string;
|
|
44
51
|
datamates?: string[];
|
|
52
|
+
status?: SessionStatusEnum;
|
|
45
53
|
userInput?: string;
|
|
46
54
|
}
|
|
47
55
|
interface FileUploadProps {
|
|
@@ -104,10 +112,11 @@ interface ChatbotProps {
|
|
|
104
112
|
};
|
|
105
113
|
initialMessage?: string;
|
|
106
114
|
questionFormLeftActions?: ReactNode[];
|
|
107
|
-
|
|
115
|
+
refetchSession?: () => Promise<unknown>;
|
|
108
116
|
chatboxStartPosition?: "middle" | "bottom";
|
|
109
117
|
helloMessageFooter?: ReactNode;
|
|
110
118
|
handleSavePrompt?: (message: ChatMessage) => void;
|
|
119
|
+
showSavePromptButton?: boolean;
|
|
111
120
|
}
|
|
112
121
|
interface ChatbotProviderProps extends ChatbotProps {
|
|
113
122
|
taskLabel?: keyof typeof TaskLabels;
|
|
@@ -197,6 +206,8 @@ interface ChatResponse {
|
|
|
197
206
|
heading: string;
|
|
198
207
|
todos?: TodoItem[];
|
|
199
208
|
}
|
|
209
|
+
declare const sessionStatusSchema: z.ZodEnum<["failed", "completed", "pending", "cancelled"]>;
|
|
210
|
+
type SessionStatusEnum = z.infer<typeof sessionStatusSchema>;
|
|
200
211
|
interface ChatState {
|
|
201
212
|
sessions: Record<string, ChatSession>;
|
|
202
213
|
currentSessionId: string | null;
|
|
@@ -235,12 +246,12 @@ declare const todoItemSchema: z.ZodObject<{
|
|
|
235
246
|
}, "strip", z.ZodTypeAny, {
|
|
236
247
|
id: string;
|
|
237
248
|
content: string;
|
|
238
|
-
status: "
|
|
249
|
+
status: "completed" | "pending" | "in_progress";
|
|
239
250
|
priority: "high" | "low" | "medium";
|
|
240
251
|
}, {
|
|
241
252
|
id: string;
|
|
242
253
|
content: string;
|
|
243
|
-
status: "
|
|
254
|
+
status: "completed" | "pending" | "in_progress";
|
|
244
255
|
priority: "high" | "low" | "medium";
|
|
245
256
|
}>;
|
|
246
257
|
type TodoItem = z.infer<typeof todoItemSchema>;
|
|
@@ -273,12 +284,12 @@ declare const agentStreamResponseSchema: z.ZodObject<{
|
|
|
273
284
|
}, "strip", z.ZodTypeAny, {
|
|
274
285
|
id: string;
|
|
275
286
|
content: string;
|
|
276
|
-
status: "
|
|
287
|
+
status: "completed" | "pending" | "in_progress";
|
|
277
288
|
priority: "high" | "low" | "medium";
|
|
278
289
|
}, {
|
|
279
290
|
id: string;
|
|
280
291
|
content: string;
|
|
281
|
-
status: "
|
|
292
|
+
status: "completed" | "pending" | "in_progress";
|
|
282
293
|
priority: "high" | "low" | "medium";
|
|
283
294
|
}>, "many">>;
|
|
284
295
|
response: z.ZodOptional<z.ZodString>;
|
|
@@ -397,7 +408,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
|
|
|
397
408
|
todos?: {
|
|
398
409
|
id: string;
|
|
399
410
|
content: string;
|
|
400
|
-
status: "
|
|
411
|
+
status: "completed" | "pending" | "in_progress";
|
|
401
412
|
priority: "high" | "low" | "medium";
|
|
402
413
|
}[] | undefined;
|
|
403
414
|
response?: string | undefined;
|
|
@@ -440,7 +451,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
|
|
|
440
451
|
todos?: {
|
|
441
452
|
id: string;
|
|
442
453
|
content: string;
|
|
443
|
-
status: "
|
|
454
|
+
status: "completed" | "pending" | "in_progress";
|
|
444
455
|
priority: "high" | "low" | "medium";
|
|
445
456
|
}[] | undefined;
|
|
446
457
|
response?: string | undefined;
|
|
@@ -596,4 +607,4 @@ interface Citation {
|
|
|
596
607
|
taskLabel: TaskLabels;
|
|
597
608
|
}
|
|
598
609
|
|
|
599
|
-
export { type Artifact as A, type EntityDetectionResponse as B, type CoachAiResponse as C, type DetectedEntity as D, EntityType as E, type Feedback as F, type Mode as G, type InteractionType as H, type InteractionRequest as I, type InteractionChoice as J,
|
|
610
|
+
export { type Artifact as A, type EntityDetectionResponse as B, type CoachAiResponse as C, type DetectedEntity as D, EntityType as E, type Feedback as F, type Mode as G, type InteractionType as H, type InteractionRequest as I, type InteractionChoice as J, sessionStatusSchema as K, type Learning as L, type MessageAttachment as M, todoItemSchema as N, type ToolUsageData as O, PersonalizationScope as P, type ProgressUpdate as Q, type FinalResponseData as R, type SessionStatusEnum as S, TaskLabels as T, type UploadedFile as U, agentStreamResponseSchema as V, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type ChatSession as s, type TodoItem as t, type AgentStreamResponse as u, type AssistantMeta as v, type FileUploadProps as w, type ChatbotUrls as x, type Datamate as y, type EntityDetectionRequest as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a0 as a, bu as gi, ac as Xt, aI as Wt, aA as xi, av as St, au as Nt, at as di, ab as fi, ag as Yt, a2 as pi, a3 as mi, af as yi, a4 as bi, a5 as Ai, am as wi, ay as Ci, ad as Si } from "./CoachForm.js";
|
|
2
2
|
import "./redux-toolkit.modern.js";
|
|
3
3
|
import { i as _i } from "./init.js";
|
|
4
4
|
import { o as ki } from "./ordinal.js";
|