@altimateai/ui-components 0.0.1-beta.2 → 0.0.1-beta.4

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 (60) hide show
  1. package/dist/Accordion.js +43 -114
  2. package/dist/Badge.js +1 -1
  3. package/dist/CoachForm.js +6285 -6583
  4. package/dist/DbtDocsRenderer.js +833 -2651
  5. package/dist/Tooltip.js +115 -0
  6. package/dist/assets/icons/index.js +44 -39
  7. package/dist/chatbot/index.js +100 -96
  8. package/dist/chatbotV2/index.js +16 -3
  9. package/dist/flowchart-elk-definition-170a3958.js +2 -2
  10. package/dist/index.js +16 -16
  11. package/dist/index2.js +194 -193
  12. package/dist/is_dark.js +1 -1
  13. package/dist/lineage/index.js +2284 -2710
  14. package/dist/main.js +50 -185
  15. package/dist/mindmap-definition-44684416.js +2 -2
  16. package/dist/redux-toolkit.modern.js +1 -1
  17. package/dist/shadcn/index.js +352 -382
  18. package/dist/timeline-definition-8e5a9bc6.js +1 -1
  19. package/dist/v4.js +524 -514
  20. package/package.json +54 -54
  21. package/readme.md +11 -0
  22. package/dist/Stack.js +0 -132
  23. package/dist/assets/icons/index.d.ts +0 -86
  24. package/dist/chatbot/index.d.ts +0 -39
  25. package/dist/chatbotV2/index.d.ts +0 -111
  26. package/dist/index.d.ts +0 -217
  27. package/dist/lineage/index.d.ts +0 -183
  28. package/dist/shadcn/index.d.ts +0 -517
  29. package/dist/storybook/Accordion.stories.tsx +0 -61
  30. package/dist/storybook/Alert.stories.tsx +0 -65
  31. package/dist/storybook/AlertDialog.stories.tsx +0 -166
  32. package/dist/storybook/Avatar.stories.tsx +0 -58
  33. package/dist/storybook/Badge.stories.tsx +0 -36
  34. package/dist/storybook/Button.stories.tsx +0 -129
  35. package/dist/storybook/Card.stories.tsx +0 -76
  36. package/dist/storybook/Checkbox.stories.tsx +0 -74
  37. package/dist/storybook/Command.stories.tsx +0 -35
  38. package/dist/storybook/DropdownMenu.stories.tsx +0 -36
  39. package/dist/storybook/Form.stories.tsx +0 -120
  40. package/dist/storybook/HoverCard.stories.tsx +0 -105
  41. package/dist/storybook/Input.stories.tsx +0 -53
  42. package/dist/storybook/Label.stories.tsx +0 -42
  43. package/dist/storybook/Menubar.stories.tsx +0 -159
  44. package/dist/storybook/Pagination.stories.tsx +0 -155
  45. package/dist/storybook/Popover.stories.tsx +0 -25
  46. package/dist/storybook/Progress.stories.tsx +0 -89
  47. package/dist/storybook/RadioGroup.stories.tsx +0 -61
  48. package/dist/storybook/Resizable.stories.tsx +0 -119
  49. package/dist/storybook/ScrollArea.stories.tsx +0 -120
  50. package/dist/storybook/Select.stories.tsx +0 -95
  51. package/dist/storybook/Sheet.stories.tsx +0 -75
  52. package/dist/storybook/Sidebar.stories.tsx +0 -97
  53. package/dist/storybook/Slider.stories.tsx +0 -81
  54. package/dist/storybook/Switch.stories.tsx +0 -99
  55. package/dist/storybook/Textarea.stories.tsx +0 -50
  56. package/dist/storybook/Toast.stories.tsx +0 -111
  57. package/dist/storybook/Tooltip.stories.tsx +0 -33
  58. package/dist/storybook/Typography.stories.tsx +0 -178
  59. package/dist/types-PVxbm0tZ.d.ts +0 -99
  60. /package/dist/{Stack.css → v4.css} +0 -0
@@ -0,0 +1,115 @@
1
+ import { j as i } from "./index2.js";
2
+ import { createContext as h, Component as f, createElement as u, isValidElement as m, useState as p, useRef as g } from "react";
3
+ import { Tooltip as y } from "reactstrap";
4
+ var x = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
+ function T(t) {
6
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7
+ }
8
+ const E = h(null), d = {
9
+ didCatch: !1,
10
+ error: null
11
+ };
12
+ class v extends f {
13
+ constructor(e) {
14
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = d;
15
+ }
16
+ static getDerivedStateFromError(e) {
17
+ return {
18
+ didCatch: !0,
19
+ error: e
20
+ };
21
+ }
22
+ resetErrorBoundary() {
23
+ const {
24
+ error: e
25
+ } = this.state;
26
+ if (e !== null) {
27
+ for (var o, n, r = arguments.length, a = new Array(r), s = 0; s < r; s++)
28
+ a[s] = arguments[s];
29
+ (o = (n = this.props).onReset) === null || o === void 0 || o.call(n, {
30
+ args: a,
31
+ reason: "imperative-api"
32
+ }), this.setState(d);
33
+ }
34
+ }
35
+ componentDidCatch(e, o) {
36
+ var n, r;
37
+ (n = (r = this.props).onError) === null || n === void 0 || n.call(r, e, o);
38
+ }
39
+ componentDidUpdate(e, o) {
40
+ const {
41
+ didCatch: n
42
+ } = this.state, {
43
+ resetKeys: r
44
+ } = this.props;
45
+ if (n && o.error !== null && b(e.resetKeys, r)) {
46
+ var a, s;
47
+ (a = (s = this.props).onReset) === null || a === void 0 || a.call(s, {
48
+ next: r,
49
+ prev: e.resetKeys,
50
+ reason: "keys"
51
+ }), this.setState(d);
52
+ }
53
+ }
54
+ render() {
55
+ const {
56
+ children: e,
57
+ fallbackRender: o,
58
+ FallbackComponent: n,
59
+ fallback: r
60
+ } = this.props, {
61
+ didCatch: a,
62
+ error: s
63
+ } = this.state;
64
+ let l = e;
65
+ if (a) {
66
+ const c = {
67
+ error: s,
68
+ resetErrorBoundary: this.resetErrorBoundary
69
+ };
70
+ if (typeof o == "function")
71
+ l = o(c);
72
+ else if (n)
73
+ l = u(n, c);
74
+ else if (r === null || m(r))
75
+ l = r;
76
+ else
77
+ throw s;
78
+ }
79
+ return u(E.Provider, {
80
+ value: {
81
+ didCatch: a,
82
+ error: s,
83
+ resetErrorBoundary: this.resetErrorBoundary
84
+ }
85
+ }, l);
86
+ }
87
+ }
88
+ function b() {
89
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
90
+ return t.length !== e.length || t.some((o, n) => !Object.is(o, e[n]));
91
+ }
92
+ const w = (t) => {
93
+ const [e, o] = p(!1), n = () => o(!e), r = g(
94
+ (t.id ?? `tooltip-${Math.random().toString(36).substring(3, 9)}`).replace(/\s/g, "-")
95
+ );
96
+ return /* @__PURE__ */ i.jsxs(v, { fallback: /* @__PURE__ */ i.jsx("span", { id: r.current, children: t.children }), children: [
97
+ /* @__PURE__ */ i.jsx("span", { id: r.current, children: t.children }),
98
+ t.title ? /* @__PURE__ */ i.jsx(
99
+ y,
100
+ {
101
+ isOpen: e,
102
+ target: r.current,
103
+ toggle: n,
104
+ className: t.className,
105
+ placement: "top",
106
+ children: t.title
107
+ }
108
+ ) : null
109
+ ] });
110
+ };
111
+ export {
112
+ w as T,
113
+ x as c,
114
+ T as g
115
+ };
@@ -1,44 +1,49 @@
1
- import { A as s, l as a, n as c, B as e, p as I, d as i, C as r, a as t, g as l, f as C, b as h, S as d, c as m, m as p, y as v, z as f, k as b, t as k, D as u, E as S, v as U, F as D, x as R, G as g, h as A, H as G, I as L, L as w, M as B, e as F, r as H, w as T, R as x, i as y, q as z, s as E, o as M, u as q, K as J, J as K, U as N } from "../../index2.js";
1
+ import { A as s, J as a, z as c, l as e, n as I, B as r, p as t, d as i, C as l, a as C, g as h, f as d, b as m, S as f, c as p, m as v, P as b, Q as D, k as g, w as k, F as u, D as w, v as A, E as R, y as S, O as U, G, N as L, L as T, h as B, H as F, I as H, T as M, M as x, e as y, r as z, K as E, R as N, i as O, q as P, s as q, o as J, x as K, u as Q, t as V, U as j } from "../../index2.js";
2
2
  export {
3
3
  s as AddIcon,
4
- a as AskIcon,
5
- c as BoltIcon,
6
- e as BracketsIcon,
7
- I as CaseSensitiveIcon,
4
+ a as ArrowLeftIcon,
5
+ c as ArrowRightIcon,
6
+ e as AskIcon,
7
+ I as BoltIcon,
8
+ r as BracketsIcon,
9
+ t as CaseSensitiveIcon,
8
10
  i as CheckNoOutlineIcon,
9
- r as CheckedIcon,
10
- t as ChevronDownIcon,
11
- l as ChevronLeftIcon,
12
- C as ChevronRightIcon,
13
- h as ChevronUpIcon,
14
- d as CircleIcon,
15
- m as CloseIcon,
16
- p as CodeIcon,
17
- v as CommentAddIcon,
18
- f as CommentDiscussionIcon,
19
- b as CommentUnresolvedIcon,
11
+ l as CheckedIcon,
12
+ C as ChevronDownIcon,
13
+ h as ChevronLeftIcon,
14
+ d as ChevronRightIcon,
15
+ m as ChevronUpIcon,
16
+ f as CircleIcon,
17
+ p as CloseIcon,
18
+ v as CodeIcon,
19
+ b as CommentAddIcon,
20
+ D as CommentDiscussionIcon,
21
+ g as CommentUnresolvedIcon,
20
22
  k as CopyIcon,
21
- u as DeleteIcon,
22
- S as EditIcon,
23
- U as FileUploadIcon,
24
- D as FilesIcon,
25
- R as GithubIcon,
26
- g as GlobeIcon,
27
- A as GripVerticalIcon,
28
- G as HalfCircleIcon,
29
- L as InfoCircleIcon,
30
- w as LoaderIcon,
31
- B as MoreIcon,
32
- F as PanelLeftIcon,
33
- H as RefreshIcon,
34
- T as RemoveIcon,
35
- x as RobotIcon,
36
- y as SearchIcon,
37
- z as SettingsIcon,
38
- E as ShareIcon,
39
- M as SplitHorizontalIcon,
40
- q as ThinkingIcon,
41
- J as ThumbsDownIcon,
42
- K as ThumbsUpIcon,
43
- N as UserIcon
23
+ u as DatabaseIcon,
24
+ w as DeleteIcon,
25
+ A as DownloadIcon,
26
+ R as EditIcon,
27
+ S as FileUploadIcon,
28
+ U as FilesIcon,
29
+ G as GitMergeIcon,
30
+ L as GithubIcon,
31
+ T as GlobeIcon,
32
+ B as GripVerticalIcon,
33
+ F as HalfCircleIcon,
34
+ H as InfoCircleIcon,
35
+ M as LoaderIcon,
36
+ x as MoreIcon,
37
+ y as PanelLeftIcon,
38
+ z as RefreshIcon,
39
+ E as RemoveIcon,
40
+ N as RobotIcon,
41
+ O as SearchIcon,
42
+ P as SettingsIcon,
43
+ q as ShareIcon,
44
+ J as SplitHorizontalIcon,
45
+ K as ThinkingIcon,
46
+ Q as ThumbsDownIcon,
47
+ V as ThumbsUpIcon,
48
+ j as UserIcon
44
49
  };
@@ -1,44 +1,52 @@
1
- import { j as t, C as U, a as w, b as R, D as T, R as D, U as $ } from "../index2.js";
2
- import { useState as I, useRef as N, useEffect as B } from "react";
3
- import { useProChat as E, ProChat as A } from "@ant-design/pro-chat";
4
- import { Button as M, Spinner as F, Card as k, CardTitle as O, Collapse as q, CardBody as z, List as H } from "reactstrap";
5
- import { S as _ } from "../Stack.js";
6
- import { u as V, M as P, v as Q } from "../v4.js";
1
+ import { j as t, C as I, a as T, b as D, D as $, R as N, U as B } from "../index2.js";
2
+ import { useState as S, useEffect as _, useRef as E } from "react";
3
+ import { useProChat as L, ProChat as A } from "@ant-design/pro-chat";
4
+ import { Button as b, Spinner as F, Card as k, CardTitle as O, Collapse as q, CardBody as z, List as H } from "reactstrap";
5
+ import { u as V, S as v, M as P, v as Q } from "../v4.js";
7
6
  import { B as G } from "../Badge.js";
8
- import '../index.css';const J = "_chatbot_1ti7a_1", K = "_chatTriggerLink_1ti7a_1", W = "_statusUpdates_1ti7a_51", C = {
7
+ import '../index.css';const J = "_chatbot_1ti7a_1", K = "_chatTriggerLink_1ti7a_1", W = "_statusUpdates_1ti7a_51", U = {
9
8
  chatbot: J,
10
9
  chatTriggerLink: K,
11
10
  statusUpdates: W
12
- }, X = ({ text: n }) => {
13
- const { sendMessage: d } = E();
14
- return /* @__PURE__ */ t.jsx(M, { onClick: () => d(n), color: "link", className: C.chatTriggerLink, children: n }, n);
15
- }, Y = ({ onFollowupRequest: n, sessionId: d }) => {
16
- const { data: r } = V({
11
+ }, X = ({ text: o }) => {
12
+ const { sendMessage: d } = L();
13
+ return /* @__PURE__ */ t.jsx(
14
+ b,
15
+ {
16
+ onClick: () => d(o),
17
+ color: "link",
18
+ className: U.chatTriggerLink,
19
+ children: o
20
+ },
21
+ o
22
+ );
23
+ }, Y = ({ onFollowupRequest: o, sessionId: d }) => {
24
+ const { data: a } = V({
17
25
  // @ts-expect-error valid
18
- queryFn: () => n(d)
26
+ queryFn: () => o(d)
19
27
  });
20
- return r != null && r.length ? /* @__PURE__ */ t.jsx(_, { direction: "column", children: r.map((c) => /* @__PURE__ */ t.jsx(X, { text: c }, c)) }) : null;
21
- }, Z = ({ chat: n }) => {
22
- var p;
23
- const [d, r] = I(!0), {
24
- originData: { extra: c }
25
- } = n;
26
- if (!((p = c == null ? void 0 : c.statusUpdates) != null && p.length))
28
+ return a != null && a.length ? /* @__PURE__ */ t.jsx(v, { direction: "column", children: a.map((l) => /* @__PURE__ */ t.jsx(X, { text: l }, l)) }) : null;
29
+ }, Z = ({ chat: o }) => {
30
+ var j;
31
+ const { getChatLoadingId: d } = L(), [a, l] = S(!0), { originData: p } = o, x = d();
32
+ if (_(() => {
33
+ x || l(!1);
34
+ }, [x]), !((j = p == null ? void 0 : p.statusUpdates) != null && j.length))
27
35
  return null;
28
- const x = () => r((h) => !h), [j, ...i] = c.statusUpdates.filter(
36
+ const i = () => l((h) => !h), [C, ...m] = p.statusUpdates.filter(
29
37
  (h) => h.type === "info"
30
- ), f = n.loading ? /* @__PURE__ */ t.jsx(F, { size: "sm" }) : /* @__PURE__ */ t.jsx(U, {});
31
- return /* @__PURE__ */ t.jsxs(k, { className: C.statusUpdates, children: [
32
- /* @__PURE__ */ t.jsxs(O, { color: "primary", onClick: x, children: [
38
+ ), y = o.loading ? /* @__PURE__ */ t.jsx(F, { size: "sm" }) : /* @__PURE__ */ t.jsx(I, {});
39
+ return /* @__PURE__ */ t.jsxs(k, { className: U.statusUpdates, children: [
40
+ /* @__PURE__ */ t.jsxs(O, { color: "primary", onClick: i, children: [
33
41
  /* @__PURE__ */ t.jsxs("span", { children: [
34
- f,
42
+ y,
35
43
  " ",
36
- j.message
44
+ C.message
37
45
  ] }),
38
- d ? /* @__PURE__ */ t.jsx(R, {}) : /* @__PURE__ */ t.jsx(w, {})
46
+ a ? /* @__PURE__ */ t.jsx(D, {}) : /* @__PURE__ */ t.jsx(T, {})
39
47
  ] }),
40
- i.length ? /* @__PURE__ */ t.jsx(q, { isOpen: d, children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(z, { children: /* @__PURE__ */ t.jsx(H, { className: "list-unstyled m-0", style: { lineHeight: 1.5 }, children: i.map((h) => /* @__PURE__ */ t.jsxs("li", { children: [
41
- /* @__PURE__ */ t.jsx(U, {}),
48
+ m.length ? /* @__PURE__ */ t.jsx(q, { isOpen: a, children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(z, { children: /* @__PURE__ */ t.jsx(H, { className: "list-unstyled m-0", style: { lineHeight: 1.5 }, children: m.map((h) => /* @__PURE__ */ t.jsxs("li", { children: [
49
+ /* @__PURE__ */ t.jsx(I, {}),
42
50
  " ",
43
51
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(P, { children: h.message.trim().replace(/```/g, "\n```") }) })
44
52
  ] }, h.id)) }) }) }) }) : null
@@ -46,72 +54,74 @@ import '../index.css';const J = "_chatbot_1ti7a_1", K = "_chatTriggerLink_1ti7a_
46
54
  }, tt = "_citations_18435_1", et = {
47
55
  citations: tt
48
56
  }, st = ({
49
- citations: n,
57
+ citations: o,
50
58
  frontendUrl: d
51
- }) => n != null && n.length ? /* @__PURE__ */ t.jsxs(_, { className: et.citations, children: [
59
+ }) => o != null && o.length ? /* @__PURE__ */ t.jsxs(v, { className: et.citations, children: [
52
60
  "Learnings applied:",
53
- /* @__PURE__ */ t.jsx("ul", { style: { padding: 0, display: "flex", gap: 8, marginTop: -2 }, children: n.map((r, c) => /* @__PURE__ */ t.jsx("li", { style: { listStyle: "none" }, children: /* @__PURE__ */ t.jsx(
61
+ /* @__PURE__ */ t.jsx("ul", { style: { padding: 0, display: "flex", gap: 8, marginTop: -2 }, children: o.map((a, l) => /* @__PURE__ */ t.jsx("li", { style: { listStyle: "none" }, children: /* @__PURE__ */ t.jsx(
54
62
  G,
55
63
  {
56
64
  tag: "a",
57
- href: `${d}/teammates/${r.taskLabel}?learning=${r.id}`,
58
- tooltip: r.content,
59
- children: c + 1
65
+ href: `${d}/teammates/${a.taskLabel}?learning=${a.id}`,
66
+ tooltip: a.content,
67
+ children: l + 1
60
68
  }
61
- ) }, r.id)) })
62
- ] }) : null, dt = ({
63
- loading: n,
69
+ ) }, a.id)) })
70
+ ] }) : null, lt = ({
71
+ loading: o,
64
72
  onRequest: d,
65
- sessionId: r,
66
- onFollowupRequest: c,
67
- frontendUrl: x,
68
- ...j
73
+ sessionId: a,
74
+ onFollowupRequest: l,
75
+ frontendUrl: p,
76
+ ...x
69
77
  }) => {
70
- const i = N(), f = (e = 16) => {
78
+ const i = E(), C = (e = 16) => {
71
79
  const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
72
80
  return Array.from(
73
81
  { length: e },
74
82
  () => s.charAt(Math.floor(Math.random() * s.length))
75
83
  ).join("");
76
- }, [p, h] = I(f());
77
- B(() => {
78
- r && h(r);
79
- }, [r]);
80
- const S = (e) => {
81
- var a, o, l, g;
82
- const s = (a = i.current) == null ? void 0 : a.getChatLoadingId();
84
+ }, [m, y] = S(C());
85
+ _(() => {
86
+ a && y(a);
87
+ }, [a]);
88
+ const j = (e) => {
89
+ var r, n, c, g;
90
+ const s = (r = i.current) == null ? void 0 : r.getChatLoadingId();
83
91
  if (console.log("onStatusUpdate", e, s), s) {
84
- const u = (o = i.current) == null ? void 0 : o.getChatById(s), m = u != null && u.extra ? { ...u.extra } : {}, y = e.id || Q();
85
- m.statusUpdates = m.statusUpdates ? [{ ...e, id: y }, ...m.statusUpdates] : [{ ...e, id: y }], (l = i.current) == null || l.setMessageValue(s, "extra", m), (g = i.current) == null || g.setMessageValue(
86
- s,
87
- "content",
88
- (u == null ? void 0 : u.content) + " "
89
- );
92
+ const u = (n = i.current) == null ? void 0 : n.getChatById(s), f = u != null && u.extra ? { ...u.extra } : {}, M = e.id || Q();
93
+ f.statusUpdates = f.statusUpdates ? [{ ...e, id: M }, ...f.statusUpdates] : [{ ...e, id: M }], (c = i.current) == null || c.setMessageValue(s, "extra", f), (g = i.current) == null || g.setMessageValue(s, "content", (u == null ? void 0 : u.content) + " ");
90
94
  }
91
- }, L = async (e) => {
95
+ }, h = async (e) => {
96
+ var s, r;
92
97
  try {
93
- return await d(e, p, S);
94
- } catch (s) {
95
- return typeof s == "string" ? s : s.message;
98
+ const n = e.filter((g) => g.role === "user"), c = n[n.length - 1];
99
+ if (!((s = c.content) != null && s.toString().trim())) {
100
+ (r = i.current) == null || r.deleteMessage(c.id);
101
+ return;
102
+ }
103
+ return await d(e, m, j);
104
+ } catch (n) {
105
+ return typeof n == "string" ? n : n.message;
96
106
  }
97
- }, b = () => {
107
+ }, w = () => {
98
108
  setTimeout(() => {
99
- var a, o, l;
100
- const e = (a = i.current) == null ? void 0 : a.getChats();
109
+ var r, n, c;
110
+ const e = (r = i.current) == null ? void 0 : r.getChats();
101
111
  if (!(e != null && e.length))
102
112
  return;
103
113
  const s = e[e.length - 1];
104
- (l = i.current) == null || l.setChat(s.id, {
114
+ (c = i.current) == null || c.setChat(s.id, {
105
115
  ...s,
106
- content: (o = s.content) == null ? void 0 : o.replace(/\\\$/g, "$").replace(/\$/g, "\\$")
116
+ content: (n = s.content) == null ? void 0 : n.replace(/\\\$/g, "$").replace(/\$/g, "\\$")
107
117
  });
108
118
  }, 100);
109
- }, v = () => {
119
+ }, R = () => {
110
120
  var s;
111
121
  const e = (s = i.current) == null ? void 0 : s.getChats();
112
- e == null || e.forEach((a) => {
113
- var o;
114
- return (o = i.current) == null ? void 0 : o.deleteMessage(a.id);
122
+ e == null || e.forEach((r) => {
123
+ var n;
124
+ return (n = i.current) == null ? void 0 : n.deleteMessage(r.id);
115
125
  });
116
126
  };
117
127
  return /* @__PURE__ */ t.jsx(
@@ -119,64 +129,58 @@ import '../index.css';const J = "_chatbot_1ti7a_1", K = "_chatTriggerLink_1ti7a_
119
129
  {
120
130
  actions: {
121
131
  render: () => [
122
- /* @__PURE__ */ t.jsxs(M, { onClick: v, outline: !0, color: "primary", size: "sm", children: [
132
+ /* @__PURE__ */ t.jsxs(b, { onClick: R, outline: !0, color: "primary", size: "sm", children: [
123
133
  "Clear chat ",
124
- /* @__PURE__ */ t.jsx(T, { className: "align-middle" })
125
- ] })
134
+ /* @__PURE__ */ t.jsx($, { className: "align-middle" })
135
+ ] }, "clear-chat")
126
136
  ]
127
137
  },
128
138
  locale: "en-US",
129
- request: L,
139
+ request: h,
130
140
  appStyle: { height: "100%", width: "100%" },
131
141
  assistantMeta: {
132
- avatar: D,
142
+ avatar: N,
133
143
  name: "Altimate"
134
144
  },
135
145
  helloMessage: "Hello, how are you??",
136
146
  userMeta: {
137
- avatar: $,
147
+ avatar: B,
138
148
  name: "User"
139
149
  },
140
- loading: n,
141
- className: C.chatbot,
150
+ loading: o,
151
+ className: U.chatbot,
142
152
  chatRef: i,
143
- onChatEnd: b,
153
+ onChatEnd: w,
144
154
  chatItemRenderConfig: {
145
155
  contentRender: (e, s) => {
146
- var o, l, g;
147
- const a = (g = (l = (o = e.originData) == null ? void 0 : o.extra) == null ? void 0 : l.statusUpdates) == null ? void 0 : g.find((u) => u.type === "citations");
156
+ var n, c, g;
157
+ const r = (g = (c = (n = e.originData) == null ? void 0 : n.extra) == null ? void 0 : c.statusUpdates) == null ? void 0 : g.find((u) => u.type === "citations");
148
158
  return /* @__PURE__ */ t.jsxs("div", { children: [
149
- /* @__PURE__ */ t.jsx(Z, { chat: e }),
159
+ /* @__PURE__ */ t.jsx(Z, { chat: { ...e, originData: e.originData || {} } }),
150
160
  s,
151
- /* @__PURE__ */ t.jsx(st, { citations: a == null ? void 0 : a.citations, frontendUrl: x })
161
+ /* @__PURE__ */ t.jsx(st, { citations: r == null ? void 0 : r.citations, frontendUrl: p })
152
162
  ] });
153
163
  },
154
- render: (e, s, a) => {
155
- var l;
156
- const o = e.loading || !c || ((l = e.originData) == null ? void 0 : l.role) !== "assistant";
164
+ render: (e, s, r) => {
165
+ var c;
166
+ const n = e.loading || !l || ((c = e.originData) == null ? void 0 : c.role) !== "assistant";
157
167
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
158
- a,
159
- o ? null : /* @__PURE__ */ t.jsx(
160
- Y,
161
- {
162
- onFollowupRequest: c,
163
- sessionId: p
164
- }
165
- )
168
+ r,
169
+ n ? null : /* @__PURE__ */ t.jsx(Y, { onFollowupRequest: l, sessionId: m })
166
170
  ] });
167
171
  }
168
172
  },
169
173
  markdownProps: {
170
174
  components: {
171
- pre: ({ node: e, className: s, children: a, ...o }) => /* @__PURE__ */ t.jsx("pre", { ...o, className: s, children: a })
175
+ pre: ({ node: e, className: s, children: r, ...n }) => /* @__PURE__ */ t.jsx("pre", { ...n, className: s, children: r })
172
176
  }
173
177
  },
174
- ...j
178
+ ...x
175
179
  }
176
180
  );
177
181
  };
178
182
  export {
179
183
  X as ChatTriggerLink,
180
- dt as Chatbot,
184
+ lt as Chatbot,
181
185
  st as Citations
182
186
  };
@@ -1,6 +1,19 @@
1
- import { a as o, C as r, L as e } from "../CoachForm.js";
1
+ import { A as t, b as e, a as o, C as n, c as r, d as i, F as c, I as d, L as g, g as u, M as C, e as I, f as M, Q as m, R as L, S as b } from "../CoachForm.js";
2
2
  export {
3
+ t as Artifacts,
4
+ e as CancelGenerationButton,
3
5
  o as ChatProvider,
4
- r as ChatbotV2,
5
- e as LoadingState
6
+ n as ChatbotV2,
7
+ r as CoachAI,
8
+ i as ContextPanel,
9
+ c as FeedbackButtons,
10
+ d as InteractionPrompt,
11
+ g as LoadingIndicator,
12
+ u as LoadingState,
13
+ C as MessageItem,
14
+ I as MessageList,
15
+ M as MessageMenu,
16
+ m as QuestionForm,
17
+ L as RegenerateButton,
18
+ b as StatusUpdates
6
19
  };
@@ -1,6 +1,6 @@
1
- import { h as DH, i as wMe, j as gMe, l as K1, g as J1n, k as pMe, s as vMe, m as Y1n, n as mMe, o as kMe, q as Uee, r as yMe, t as Q1n, u as $H, v as jMe, w as EMe } from "./CoachForm.js";
1
+ import { o as DH, q as wMe, r as gMe, l as K1, j as J1n, t as pMe, s as vMe, u as Y1n, v as mMe, w as kMe, x as Uee, y as yMe, z as Q1n, B as $H, D as jMe, E as EMe } from "./CoachForm.js";
2
2
  import { s as bI } from "./redux-toolkit.modern.js";
3
- import { c as Hee, g as CMe } from "./Stack.js";
3
+ import { c as Hee, g as CMe } from "./Tooltip.js";
4
4
  var Wee = { exports: {} };
5
5
  (function(Ae, It) {
6
6
  (function(ot) {
package/dist/index.js CHANGED
@@ -1,35 +1,35 @@
1
1
  import { j as s, i as r, h as t, C as n, D as i, L as m, T as c, m as p, l as C, k as T } from "./main.js";
2
2
  import "reactstrap";
3
3
  import { A as v, C as h, I as u } from "./redux-toolkit.modern.js";
4
- import { T as P } from "./Stack.js";
5
- import { I as f, F as g, z as x, P as A, M as B, N as k, K as F, J as G, T as j, G as y, H as D, D as I } from "./CoachForm.js";
6
- import { B as S } from "./Badge.js";
4
+ import { T as f } from "./Tooltip.js";
5
+ import { Z as x, T as A, J as B, V as M, a0 as P, a1 as k, $ as j, _ as y, W as F, X as G, Y as L, O as S } from "./CoachForm.js";
6
+ import { B as D } from "./Badge.js";
7
7
  export {
8
8
  v as ApiHelper,
9
- S as Badge,
10
- f as CoachForm,
9
+ D as Badge,
10
+ x as CoachForm,
11
11
  s as CoachFormButton,
12
12
  h as CodeBlock,
13
- g as ContentCategory,
13
+ A as ContentCategory,
14
14
  r as ConversationGroupProvider,
15
15
  t as ConversationInputForm,
16
16
  n as ConversationSources,
17
17
  i as DbtDocs,
18
18
  u as IconButton,
19
19
  m as Learnings,
20
- x as LoadingButton,
21
- A as PersonalizationScope,
22
- B as ProjectGovernorAllowedFiles,
20
+ B as LoadingButton,
21
+ M as PersonalizationScope,
22
+ P as ProjectGovernorAllowedFiles,
23
23
  k as ProjectGovernorCheckSchema,
24
- F as ProjectGovernorCheckTypes,
25
- G as TaskLabels,
26
- j as TeamMateActionType,
27
- y as TeamMateAvailability,
24
+ j as ProjectGovernorCheckTypes,
25
+ y as TaskLabels,
26
+ F as TeamMateActionType,
27
+ G as TeamMateAvailability,
28
28
  c as TeamMateProvider,
29
29
  p as TeamMates,
30
- D as TeamMatesConfig,
30
+ L as TeamMatesConfig,
31
31
  C as TeammateActions,
32
- P as Tooltip,
33
- I as learningSchema,
32
+ f as Tooltip,
33
+ S as learningSchema,
34
34
  T as useTeamMateContext
35
35
  };