@altimateai/ui-components 0.0.62 → 0.0.64-beta1

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.
Files changed (59) hide show
  1. package/dist/Carousel.js +8523 -0
  2. package/dist/CoachForm.js +8492 -8484
  3. package/dist/Stack.js +3 -3
  4. package/dist/_basePickBy.js +19 -19
  5. package/dist/_baseUniq.js +57 -57
  6. package/dist/arc.js +34 -34
  7. package/dist/architectureDiagram-VXUJARFQ.js +125 -125
  8. package/dist/assets/icons/index.js +1 -1
  9. package/dist/blockDiagram-VD42YOAC.js +1 -1
  10. package/dist/c4Diagram-YG6GDRKO.js +1 -1
  11. package/dist/channel.js +3 -3
  12. package/dist/chatbotV2/index.d.ts +11 -5
  13. package/dist/chatbotV2/index.js +21 -20
  14. package/dist/chunk-4BX2VUAB.js +1 -1
  15. package/dist/chunk-55IACEB6.js +1 -1
  16. package/dist/chunk-B4BG7PRW.js +1 -1
  17. package/dist/chunk-DI55MBZ5.js +1 -1
  18. package/dist/chunk-FMBD7UC4.js +1 -1
  19. package/dist/chunk-QN33PNHL.js +5 -5
  20. package/dist/chunk-QZHKN3VN.js +1 -1
  21. package/dist/chunk-TZMSLE5B.js +1 -1
  22. package/dist/classDiagram-2ON5EDUG.js +1 -1
  23. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  24. package/dist/cose-bilkent-S5V4N54A.js +1 -1
  25. package/dist/dagre-6UL2VRFP.js +4 -4
  26. package/dist/diagram-PSM6KHXK.js +46 -46
  27. package/dist/diagram-QEK2KX5R.js +12 -12
  28. package/dist/diagram-S2PKOQOG.js +1 -1
  29. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  30. package/dist/flowDiagram-NV44I4VS.js +11 -11
  31. package/dist/ganttDiagram-LVOFAZNH.js +1 -1
  32. package/dist/gitGraphDiagram-NY62KEGX.js +10 -10
  33. package/dist/graph.js +1 -1
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +11 -11
  36. package/dist/index2.js +6 -6
  37. package/dist/infoDiagram-F6ZHWCRC.js +1 -1
  38. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  39. package/dist/kanban-definition-3W4ZIXB7.js +23 -23
  40. package/dist/layout.js +18 -18
  41. package/dist/lineage/index.js +1 -1
  42. package/dist/main.js +2 -2
  43. package/dist/mermaid-parser.core.js +1 -1
  44. package/dist/mindmap-definition-VGOIOE7T.js +7 -7
  45. package/dist/pieDiagram-ADFJNKIX.js +14 -14
  46. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  47. package/dist/requirementDiagram-UZGBJVZJ.js +38 -38
  48. package/dist/sankeyDiagram-TZEHDZUN.js +22 -22
  49. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  50. package/dist/shadcn/index.d.ts +36 -2
  51. package/dist/shadcn/index.js +3490 -2805
  52. package/dist/stateDiagram-FKZM4ZOC.js +16 -16
  53. package/dist/stateDiagram-v2-4FDKWEC3.js +3 -3
  54. package/dist/storybook/TagsInput.stories.tsx +34 -1
  55. package/dist/timeline-definition-IT6M3QCI.js +24 -24
  56. package/dist/{types-Bm5uFaKK.d.ts → types-C-PrgKT_.d.ts} +5 -1
  57. package/dist/xychartDiagram-PRI3JC2R.js +17 -17
  58. package/package.json +1 -1
  59. package/dist/TagsInput.js +0 -6935
@@ -1,12 +1,12 @@
1
1
  import { s as R, S as N, a as W } from "./chunk-DI55MBZ5.js";
2
- import { _ as f, a4 as t, aa as S, ab as P, a6 as z, aG as _, aH as U, aB as C, aj as F } from "./CoachForm.js";
2
+ import { $ as f, a5 as t, ab as S, ac as P, a7 as z, aH as C, aI as U, aC as _, ak as F } from "./CoachForm.js";
3
3
  import { s as H } from "./redux-toolkit.modern.js";
4
4
  import { G as O } from "./graph.js";
5
5
  import { l as J } from "./layout.js";
6
- var X = /* @__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"), D = /* @__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"), Y = /* @__PURE__ */ f((e, i) => {
6
+ var X = /* @__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"), D = /* @__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
- }, "drawSimpleState"), I = /* @__PURE__ */ f((e, i) => {
9
+ }, "drawSimpleState"), Y = /* @__PURE__ */ f((e, i) => {
10
10
  const d = /* @__PURE__ */ f(function(g, B, m) {
11
11
  const E = g.append("tspan").attr("x", 2 * t().state.padding).text(B);
12
12
  m || E.attr("dy", t().state.textHeight);
@@ -38,20 +38,20 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
38
38
  "y",
39
39
  t().state.titleShift - t().state.textHeight - t().state.padding
40
40
  ).attr("width", o).attr("height", B.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
41
- }, "addTitleAndBox"), j = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
41
+ }, "addTitleAndBox"), q = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
42
42
  "cx",
43
43
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
44
44
  ).attr(
45
45
  "cy",
46
46
  t().state.padding + t().state.sizeUnit + t().state.miniPadding
47
- ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), q = /* @__PURE__ */ f((e, i) => {
47
+ ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), Z = /* @__PURE__ */ f((e, i) => {
48
48
  let d = t().state.forkWidth, c = t().state.forkHeight;
49
49
  if (i.parentId) {
50
50
  let n = d;
51
51
  d = c, c = n;
52
52
  }
53
53
  return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
54
- }, "drawForkJoinState"), Z = /* @__PURE__ */ f((e, i, d, c) => {
54
+ }, "drawForkJoinState"), j = /* @__PURE__ */ f((e, i, d, c) => {
55
55
  let n = 0;
56
56
  const l = c.append("text");
57
57
  l.style("text-anchor", "start"), l.attr("class", "noteText");
@@ -73,7 +73,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
73
73
  return { textWidth: l.node().getBBox().width, textHeight: n };
74
74
  }, "_drawLongText"), K = /* @__PURE__ */ f((e, i) => {
75
75
  i.attr("class", "state-note");
76
- const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = Z(e, 0, 0, c);
76
+ const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = j(e, 0, 0, c);
77
77
  return d.attr("height", l + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d;
78
78
  }, "drawNote"), L = /* @__PURE__ */ f(function(e, i) {
79
79
  const d = i.id, c = {
@@ -82,10 +82,10 @@ 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" && X(n), i.type === "end" && j(n), (i.type === "fork" || i.type === "join") && q(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
85
+ i.type === "start" && X(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" && D(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
- }, "drawState"), G = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
88
+ }, "drawState"), A = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
89
89
  const c = /* @__PURE__ */ f(function(s) {
90
90
  switch (s) {
91
91
  case N.relationType.AGGREGATION:
@@ -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 = _().x(function(s) {
102
+ const n = i.points, l = C().x(function(s) {
103
103
  return s.x;
104
104
  }).y(function(s) {
105
105
  return s.y;
106
- }).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" + G).attr("class", "transition");
106
+ }).curve(U), 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 = C(!0)), x.attr(
108
+ if (t().state.arrowMarkerAbsolute && (a = _(!0)), x.attr(
109
109
  "marker-end",
110
110
  "url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
111
111
  ), d.title !== void 0) {
@@ -125,7 +125,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
125
125
  const r = s.node().getBBox();
126
126
  s.insert("rect", ":first-child").attr("class", "box").attr("x", w - m / 2 - t().state.padding / 2).attr("y", p - k / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", k + t().state.padding), S.info(r);
127
127
  }
128
- G++;
128
+ A++;
129
129
  }, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() {
130
130
  }, "setConf"), tt = /* @__PURE__ */ f(function(e) {
131
131
  e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
@@ -139,13 +139,13 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
139
139
  const s = x.select(`[id='${i}']`);
140
140
  tt(s);
141
141
  const w = c.db.getRootDoc();
142
- A(w, s, void 0, !1, x, a, c);
142
+ G(w, s, void 0, !1, x, a, c);
143
143
  const p = b.padding, o = s.node().getBBox(), g = o.width + p * 2, B = o.height + p * 2, m = g * 1.75;
144
144
  P(s, B, m, b.useMaxWidth), s.attr(
145
145
  "viewBox",
146
146
  `${o.x - b.padding} ${o.y - b.padding} ` + g + " " + B
147
147
  );
148
- }, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), A = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
148
+ }, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
149
149
  const a = new O({
150
150
  compound: !0,
151
151
  multigraph: !0
@@ -189,7 +189,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
189
189
  let h;
190
190
  if (u.doc) {
191
191
  let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
192
- h = A(u.doc, y, u.id, !c, n, l, x);
192
+ h = G(u.doc, y, u.id, !c, n, l, x);
193
193
  {
194
194
  y = $(y, u, c);
195
195
  let v = y.node().getBBox();
@@ -1,7 +1,7 @@
1
1
  import { s as t, S as a, b as r, a as s } from "./chunk-DI55MBZ5.js";
2
- import { _ as i } from "./CoachForm.js";
2
+ import { $ as i } from "./CoachForm.js";
3
3
  import "./redux-toolkit.modern.js";
4
- var _ = {
4
+ var l = {
5
5
  parser: t,
6
6
  get db() {
7
7
  return new a(2);
@@ -13,5 +13,5 @@ var _ = {
13
13
  }, "init")
14
14
  };
15
15
  export {
16
- _ as diagram
16
+ l as diagram
17
17
  };
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { useState } from "react";
2
+ import React, { useState } from "react";
3
3
  import {
4
4
  TagsInput,
5
5
  TagsInputLabel,
@@ -226,3 +226,36 @@ export const Interactive: Story = {
226
226
  );
227
227
  },
228
228
  };
229
+
230
+ export const WithSuggestions: Story = {
231
+ render: () => {
232
+ const [tags, setTags] = React.useState<string[]>([]);
233
+ return (
234
+ <div className="al-space-y-4 al-p-2">
235
+ <TagsInput
236
+ value={tags}
237
+ onValueChange={setTags}
238
+ suggestions={["React", "Vue", "Angular", "Svelte", "TypeScript", "JavaScript"]}
239
+ onSuggestionSelect={suggestion => {
240
+ setTags([...tags, suggestion]);
241
+ }}
242
+ >
243
+ <TagsInputLabel>With Suggestions Demo</TagsInputLabel>
244
+ <TagsInputList>
245
+ {tags.map(tag => (
246
+ <TagsInputItem key={tag} value={tag}>
247
+ {tag}
248
+ </TagsInputItem>
249
+ ))}
250
+ <TagsInputInput placeholder="Type and press Enter..." />
251
+ <TagsInputClear />
252
+ </TagsInputList>
253
+ </TagsInput>
254
+
255
+ <div className="al-text-sm al-text-muted-foreground">
256
+ <strong>Current tags:</strong> {tags.length > 0 ? tags.join(", ") : "None"}
257
+ </div>
258
+ </div>
259
+ );
260
+ },
261
+ };
@@ -1,4 +1,4 @@
1
- import { _ as s, aq as xt, aK as kt, ak as vt, a4 as _t, aa as E, aL as bt, aM as wt, aN as St, aO as Et } from "./CoachForm.js";
1
+ import { $ as s, ar as xt, aL as kt, al as vt, a5 as _t, ab as E, aM as bt, aN as wt, aO as St, aP 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, K = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
66
+ var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, J = 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() || K, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
80
+ return T = u.pop() || v.lex() || J, 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, H, I, J, z = {}, j, P, et, G; ; ) {
84
- if (H = h[h.length - 1], this.defaultActions[H] ? I = this.defaultActions[H] : ((w === null || typeof w > "u") && (w = A()), I = S[H] && S[H][w]), typeof I > "u" || !I.length || !I[0]) {
83
+ for (var w, P, I, K, z = {}, j, H, et, G; ; ) {
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
85
  var Q = "";
86
86
  G = [];
87
- for (j in S[H])
87
+ for (j in S[P])
88
88
  this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
89
89
  v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
90
90
  ` + v.showPosition() + `
91
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == K ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
91
+ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
92
92
  text: v.match,
93
93
  token: this.terminals_[w] || w,
94
94
  line: v.yylineno,
@@ -97,21 +97,21 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
97
97
  });
98
98
  }
99
99
  if (I[0] instanceof Array && I.length > 1)
100
- throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
100
+ throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + w);
101
101
  switch (I[0]) {
102
102
  case 1:
103
103
  h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, M = v.yylineno, b = v.yylloc;
104
104
  break;
105
105
  case 2:
106
- if (P = this.productions_[I[1]][1], z.$ = y[y.length - P], z._$ = {
107
- first_line: o[o.length - (P || 1)].first_line,
106
+ if (H = this.productions_[I[1]][1], z.$ = y[y.length - H], z._$ = {
107
+ first_line: o[o.length - (H || 1)].first_line,
108
108
  last_line: o[o.length - 1].last_line,
109
- first_column: o[o.length - (P || 1)].first_column,
109
+ first_column: o[o.length - (H || 1)].first_column,
110
110
  last_column: o[o.length - 1].last_column
111
111
  }, $ && (z._$.range = [
112
- o[o.length - (P || 1)].range[0],
112
+ o[o.length - (H || 1)].range[0],
113
113
  o[o.length - 1].range[1]
114
- ]), J = this.performAction.apply(z, [
114
+ ]), K = this.performAction.apply(z, [
115
115
  k,
116
116
  C,
117
117
  M,
@@ -119,9 +119,9 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
119
119
  I[1],
120
120
  y,
121
121
  o
122
- ].concat(O)), typeof J < "u")
123
- return J;
124
- P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), o = o.slice(0, -1 * P)), 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);
122
+ ].concat(O)), typeof K < "u")
123
+ return K;
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:
127
127
  return !0;
@@ -454,7 +454,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "ge
454
454
  s(e, "genPoints");
455
455
  const l = n.append("polygon");
456
456
  l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
457
- }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
457
+ }, "drawLabel"), Pt = /* @__PURE__ */ s(function(n, t, e) {
458
458
  const l = n.append("g"), r = D();
459
459
  r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Z(l, r), mt(e)(
460
460
  t.text,
@@ -467,7 +467,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "ge
467
467
  e,
468
468
  t.colour
469
469
  );
470
- }, "drawSection"), it = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
470
+ }, "drawSection"), it = -1, Ht = /* @__PURE__ */ s(function(n, t, e) {
471
471
  const l = t.x + e.width / 2, r = n.append("g");
472
472
  it++;
473
473
  const d = 300 + 5 * 30;
@@ -577,10 +577,10 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
577
577
  }, "defaultBkg"), F = {
578
578
  drawRect: Z,
579
579
  drawCircle: Mt,
580
- drawSection: Ht,
580
+ drawSection: Pt,
581
581
  drawText: ft,
582
582
  drawLabel: $t,
583
- drawTask: Pt,
583
+ drawTask: Ht,
584
584
  drawBackgroundRect: At,
585
585
  getTextObj: Ct,
586
586
  getNoteRect: D,
@@ -628,7 +628,7 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
628
628
  E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, b.events.length);
629
629
  let A = 0;
630
630
  for (const w of b.events) {
631
- const H = {
631
+ const P = {
632
632
  descr: w,
633
633
  section: b.section,
634
634
  number: b.section,
@@ -636,7 +636,7 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
636
636
  padding: 20,
637
637
  maxHeight: 50
638
638
  };
639
- A += F.getVirtualNodeHeight(p, H, r);
639
+ A += F.getVirtualNodeHeight(p, P, r);
640
640
  }
641
641
  b.events.length > 0 && (A += (b.events.length - 1) * 10), C = Math.max(C, A);
642
642
  }
@@ -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, Jt = {
794
+ `, "getStyles"), qt = Gt, Kt = {
795
795
  db: at,
796
796
  renderer: Ot,
797
797
  parser: Tt,
798
798
  styles: qt
799
799
  };
800
800
  export {
801
- Jt as diagram
801
+ Kt as diagram
802
802
  };
@@ -42,6 +42,7 @@ interface ChatSession {
42
42
  selectedModel?: string | null;
43
43
  mode?: string;
44
44
  datamates?: string[];
45
+ userInput?: string;
45
46
  }
46
47
  interface FileUploadProps {
47
48
  allowedFiles: string;
@@ -89,7 +90,7 @@ interface Mode {
89
90
  icon?: ReactNode;
90
91
  }
91
92
  interface ChatbotProps {
92
- helloMessage?: React.ReactNode;
93
+ helloMessage?: ReactNode;
93
94
  assistantMeta?: AssistantMeta;
94
95
  context?: Record<string, unknown>;
95
96
  fileUploadProps?: FileUploadProps;
@@ -103,6 +104,9 @@ interface ChatbotProps {
103
104
  };
104
105
  initialMessage?: string;
105
106
  questionFormLeftActions?: ReactNode[];
107
+ contextPanelDropdowns?: ReactNode[];
108
+ chatboxStartPosition?: "middle" | "bottom";
109
+ helloMessageFooter?: ReactNode;
106
110
  }
107
111
  interface ChatbotProviderProps extends ChatbotProps {
108
112
  taskLabel?: keyof typeof TaskLabels;
@@ -1,4 +1,4 @@
1
- import { _ as a, bs as gi, aa as Xt, aG as Wt, ay as xi, at as St, as as Nt, ar as di, a9 as fi, ae as Yt, a0 as pi, a1 as mi, ad as yi, a2 as bi, a3 as Ai, ak as wi, aw as Ci, ab as Si } from "./CoachForm.js";
1
+ import { $ as a, bt as gi, ab as Xt, aH as Wt, az as xi, au as St, at as Nt, as as di, aa as fi, af as Yt, a1 as pi, a2 as mi, ae as yi, a3 as bi, a4 as Ai, al as wi, ax as Ci, ac 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";
@@ -173,7 +173,7 @@ var bt = function() {
173
173
  return V = d.pop() || T.lex() || Mt, typeof V != "number" && (V instanceof Array && (d = V, V = d.pop()), V = u.symbols_[V] || V), V;
174
174
  }
175
175
  a(Vt, "lex");
176
- for (var M, H, B, pt, G = {}, ct, F, Bt, ut; ; ) {
176
+ for (var M, H, B, pt, q = {}, ct, F, Bt, ut; ; ) {
177
177
  if (H = x[x.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = Vt()), B = at[H] && at[H][M]), typeof B > "u" || !B.length || !B[0]) {
178
178
  var mt = "";
179
179
  ut = [];
@@ -196,15 +196,15 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
196
196
  x.push(M), w.push(T.yytext), r.push(T.yylloc), x.push(B[1]), M = null, It = T.yyleng, f = T.yytext, lt = T.yylineno, ft = T.yylloc;
197
197
  break;
198
198
  case 2:
199
- if (F = this.productions_[B[1]][1], G.$ = w[w.length - F], G._$ = {
199
+ if (F = this.productions_[B[1]][1], q.$ = w[w.length - F], q._$ = {
200
200
  first_line: r[r.length - (F || 1)].first_line,
201
201
  last_line: r[r.length - 1].last_line,
202
202
  first_column: r[r.length - (F || 1)].first_column,
203
203
  last_column: r[r.length - 1].last_column
204
- }, ci && (G._$.range = [
204
+ }, ci && (q._$.range = [
205
205
  r[r.length - (F || 1)].range[0],
206
206
  r[r.length - 1].range[1]
207
- ]), pt = this.performAction.apply(G, [
207
+ ]), pt = this.performAction.apply(q, [
208
208
  f,
209
209
  It,
210
210
  lt,
@@ -214,7 +214,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
214
214
  r
215
215
  ].concat(li)), typeof pt < "u")
216
216
  return pt;
217
- F && (x = x.slice(0, -1 * F * 2), w = w.slice(0, -1 * F), r = r.slice(0, -1 * F)), x.push(this.productions_[B[1]][0]), w.push(G.$), r.push(G._$), Bt = at[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
217
+ F && (x = x.slice(0, -1 * F * 2), w = w.slice(0, -1 * F), r = r.slice(0, -1 * F)), x.push(this.productions_[B[1]][0]), w.push(q.$), r.push(q._$), Bt = at[x[x.length - 2]][x[x.length - 1]], x.push(Bt);
218
218
  break;
219
219
  case 3:
220
220
  return !0;
@@ -516,10 +516,10 @@ function _t(e) {
516
516
  return e.type === "band";
517
517
  }
518
518
  a(_t, "isBandAxisData");
519
- function q(e) {
519
+ function G(e) {
520
520
  return e.type === "linear";
521
521
  }
522
- a(q, "isLinearAxisData");
522
+ a(G, "isLinearAxisData");
523
523
  var j, Ht = (j = class {
524
524
  constructor(t) {
525
525
  this.parentGroup = t;
@@ -1007,15 +1007,15 @@ var tt, Li = (tt = class {
1007
1007
  return t;
1008
1008
  }
1009
1009
  }, a(et, "BasePlot"), et);
1010
- function Gt(e, t, i) {
1010
+ function qt(e, t, i) {
1011
1011
  return new Ii(e, t, i);
1012
1012
  }
1013
- a(Gt, "getPlotComponent");
1013
+ a(qt, "getPlotComponent");
1014
1014
  var st, Mi = (st = class {
1015
1015
  constructor(t, i, s, n) {
1016
1016
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1017
1017
  title: $t(t, i, s, n),
1018
- plot: Gt(t, i, s),
1018
+ plot: qt(t, i, s),
1019
1019
  xAxis: wt(
1020
1020
  i.xAxis,
1021
1021
  t.xAxis,
@@ -1097,7 +1097,7 @@ var st, Mi = (st = class {
1097
1097
  static build(t, i, s, n) {
1098
1098
  return new Mi(t, i, s, n).getDrawableElement();
1099
1099
  }
1100
- }, a(nt, "XYChartBuilder"), nt), rt = 0, qt, ot = Tt(), ht = Rt(), A = Dt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1100
+ }, a(nt, "XYChartBuilder"), nt), rt = 0, Gt, ot = Tt(), ht = Rt(), A = Dt(), Ct = ht.plotColorPalette.split(",").map((e) => e.trim()), gt = !1, kt = !1;
1101
1101
  function Rt() {
1102
1102
  const e = xi(), t = St();
1103
1103
  return Nt(e.xyChart, t.themeVariables.xyChart);
@@ -1135,7 +1135,7 @@ function xt(e) {
1135
1135
  }
1136
1136
  a(xt, "textSanitizer");
1137
1137
  function jt(e) {
1138
- qt = e;
1138
+ Gt = e;
1139
1139
  }
1140
1140
  a(jt, "setTmpSVGG");
1141
1141
  function Qt(e) {
@@ -1167,7 +1167,7 @@ function ti(e, t) {
1167
1167
  }
1168
1168
  a(ti, "setYAxisRangeData");
1169
1169
  function ii(e) {
1170
- const t = Math.min(...e), i = Math.max(...e), s = q(A.yAxis) ? A.yAxis.min : 1 / 0, n = q(A.yAxis) ? A.yAxis.max : -1 / 0;
1170
+ const t = Math.min(...e), i = Math.max(...e), s = G(A.yAxis) ? A.yAxis.min : 1 / 0, n = G(A.yAxis) ? A.yAxis.max : -1 / 0;
1171
1171
  A.yAxis = {
1172
1172
  type: "linear",
1173
1173
  title: A.yAxis.title,
@@ -1181,10 +1181,10 @@ function Pt(e) {
1181
1181
  if (e.length === 0)
1182
1182
  return t;
1183
1183
  if (!gt) {
1184
- const i = q(A.xAxis) ? A.xAxis.min : 1 / 0, s = q(A.xAxis) ? A.xAxis.max : -1 / 0;
1184
+ const i = G(A.xAxis) ? A.xAxis.min : 1 / 0, s = G(A.xAxis) ? A.xAxis.max : -1 / 0;
1185
1185
  vt(Math.min(i, 1), Math.max(s, e.length));
1186
1186
  }
1187
- if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), q(A.xAxis)) {
1187
+ if (kt || ii(e), _t(A.xAxis) && (t = A.xAxis.categories.map((i, s) => [i, e[s]])), G(A.xAxis)) {
1188
1188
  const i = A.xAxis.min, s = A.xAxis.max, n = (s - i) / (e.length - 1), o = [];
1189
1189
  for (let g = i; g <= s; g += n)
1190
1190
  o.push(`${g}`);
@@ -1219,7 +1219,7 @@ a(si, "setBarData");
1219
1219
  function ni() {
1220
1220
  if (A.plots.length === 0)
1221
1221
  throw Error("No Plot to render, please provide a plot with some data");
1222
- return A.title = Yt(), Vi.build(ot, A, ht, qt);
1222
+ return A.title = Yt(), Vi.build(ot, A, ht, Gt);
1223
1223
  }
1224
1224
  a(ni, "getDrawableElem");
1225
1225
  function ai() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.62",
3
+ "version": "0.0.64-beta1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"