@altimateai/ui-components 0.0.1-beta.6 → 0.0.1-beta.8

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/Badge.js DELETED
@@ -1,7 +0,0 @@
1
- import { j as o } from "./index2.js";
2
- import { Badge as s } from "reactstrap";
3
- import { T as e } from "./Tooltip.js";
4
- const p = ({ tooltip: r, ...t }) => /* @__PURE__ */ o.jsx(e, { title: r, children: /* @__PURE__ */ o.jsx(s, { ...t }) });
5
- export {
6
- p as B
7
- };
package/dist/Tooltip.js DELETED
@@ -1,115 +0,0 @@
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,43 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ChatMessage } from '@ant-design/pro-chat';
3
- import { ProChatProps } from '@ant-design/pro-chat/es/ProChat/container';
4
- import { T as TaskLabels } from '../types-FVWfXDNw.js';
5
- import 'react';
6
- import '@reduxjs/toolkit';
7
- import 'zod';
8
-
9
- interface Citation {
10
- id: string;
11
- content: string;
12
- taskLabel: TaskLabels;
13
- }
14
- interface StatusInfoMessage {
15
- type: "info" | "agent_outcome" | "citations";
16
- message: string;
17
- citations?: Citation[];
18
- id?: string;
19
- }
20
-
21
- type ChatExtra = {
22
- statusUpdates?: StatusInfoMessage[];
23
- citations?: Citation[];
24
- };
25
- interface Props extends ProChatProps<ChatExtra> {
26
- loading?: boolean;
27
- onRequest: (messages: ChatMessage[], sessionId: string, onStatusUpdate: (info: StatusInfoMessage) => void) => Promise<Response | string>;
28
- sessionId?: string;
29
- onFollowupRequest?: (sessionId: string) => Promise<string[] | undefined>;
30
- frontendUrl: string;
31
- }
32
- declare const Chatbot: ({ loading, onRequest, sessionId: sessionIdProp, onFollowupRequest, frontendUrl, ...props }: Props) => react_jsx_runtime.JSX.Element;
33
-
34
- declare const ChatTriggerLink: ({ text }: {
35
- text: string;
36
- }) => react_jsx_runtime.JSX.Element;
37
-
38
- declare const Citations: ({ citations, frontendUrl, }: {
39
- citations?: Citation[];
40
- frontendUrl: string;
41
- }) => JSX.Element | null;
42
-
43
- export { ChatTriggerLink, Chatbot, type Citation, Citations, type StatusInfoMessage };
@@ -1,186 +0,0 @@
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";
6
- import { B as G } from "../Badge.js";
7
- import '../index.css';const J = "_chatbot_1ti7a_1", K = "_chatTriggerLink_1ti7a_1", W = "_statusUpdates_1ti7a_51", U = {
8
- chatbot: J,
9
- chatTriggerLink: K,
10
- statusUpdates: W
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({
25
- // @ts-expect-error valid
26
- queryFn: () => o(d)
27
- });
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))
35
- return null;
36
- const i = () => l((h) => !h), [C, ...m] = p.statusUpdates.filter(
37
- (h) => h.type === "info"
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: [
41
- /* @__PURE__ */ t.jsxs("span", { children: [
42
- y,
43
- " ",
44
- C.message
45
- ] }),
46
- a ? /* @__PURE__ */ t.jsx(D, {}) : /* @__PURE__ */ t.jsx(T, {})
47
- ] }),
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, {}),
50
- " ",
51
- /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(P, { children: h.message.trim().replace(/```/g, "\n```") }) })
52
- ] }, h.id)) }) }) }) }) : null
53
- ] });
54
- }, tt = "_citations_18435_1", et = {
55
- citations: tt
56
- }, st = ({
57
- citations: o,
58
- frontendUrl: d
59
- }) => o != null && o.length ? /* @__PURE__ */ t.jsxs(v, { className: et.citations, children: [
60
- "Learnings applied:",
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(
62
- G,
63
- {
64
- tag: "a",
65
- href: `${d}/teammates/${a.taskLabel}?learning=${a.id}`,
66
- tooltip: a.content,
67
- children: l + 1
68
- }
69
- ) }, a.id)) })
70
- ] }) : null, lt = ({
71
- loading: o,
72
- onRequest: d,
73
- sessionId: a,
74
- onFollowupRequest: l,
75
- frontendUrl: p,
76
- ...x
77
- }) => {
78
- const i = E(), C = (e = 16) => {
79
- const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
80
- return Array.from(
81
- { length: e },
82
- () => s.charAt(Math.floor(Math.random() * s.length))
83
- ).join("");
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();
91
- if (console.log("onStatusUpdate", e, s), s) {
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) + " ");
94
- }
95
- }, h = async (e) => {
96
- var s, r;
97
- try {
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;
106
- }
107
- }, w = () => {
108
- setTimeout(() => {
109
- var r, n, c;
110
- const e = (r = i.current) == null ? void 0 : r.getChats();
111
- if (!(e != null && e.length))
112
- return;
113
- const s = e[e.length - 1];
114
- (c = i.current) == null || c.setChat(s.id, {
115
- ...s,
116
- content: (n = s.content) == null ? void 0 : n.replace(/\\\$/g, "$").replace(/\$/g, "\\$")
117
- });
118
- }, 100);
119
- }, R = () => {
120
- var s;
121
- const e = (s = i.current) == null ? void 0 : s.getChats();
122
- e == null || e.forEach((r) => {
123
- var n;
124
- return (n = i.current) == null ? void 0 : n.deleteMessage(r.id);
125
- });
126
- };
127
- return /* @__PURE__ */ t.jsx(
128
- A,
129
- {
130
- actions: {
131
- render: () => [
132
- /* @__PURE__ */ t.jsxs(b, { onClick: R, outline: !0, color: "primary", size: "sm", children: [
133
- "Clear chat ",
134
- /* @__PURE__ */ t.jsx($, { className: "align-middle" })
135
- ] }, "clear-chat")
136
- ]
137
- },
138
- locale: "en-US",
139
- request: h,
140
- appStyle: { height: "100%", width: "100%" },
141
- assistantMeta: {
142
- avatar: N,
143
- name: "Altimate"
144
- },
145
- helloMessage: "Hello, how are you??",
146
- userMeta: {
147
- avatar: B,
148
- name: "User"
149
- },
150
- loading: o,
151
- className: U.chatbot,
152
- chatRef: i,
153
- onChatEnd: w,
154
- chatItemRenderConfig: {
155
- contentRender: (e, s) => {
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");
158
- return /* @__PURE__ */ t.jsxs("div", { children: [
159
- /* @__PURE__ */ t.jsx(Z, { chat: { ...e, originData: e.originData || {} } }),
160
- s,
161
- /* @__PURE__ */ t.jsx(st, { citations: r == null ? void 0 : r.citations, frontendUrl: p })
162
- ] });
163
- },
164
- render: (e, s, r) => {
165
- var c;
166
- const n = e.loading || !l || ((c = e.originData) == null ? void 0 : c.role) !== "assistant";
167
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
168
- r,
169
- n ? null : /* @__PURE__ */ t.jsx(Y, { onFollowupRequest: l, sessionId: m })
170
- ] });
171
- }
172
- },
173
- markdownProps: {
174
- components: {
175
- pre: ({ node: e, className: s, children: r, ...n }) => /* @__PURE__ */ t.jsx("pre", { ...n, className: s, children: r })
176
- }
177
- },
178
- ...x
179
- }
180
- );
181
- };
182
- export {
183
- X as ChatTriggerLink,
184
- lt as Chatbot,
185
- st as Citations
186
- };
package/dist/index2.css DELETED
@@ -1 +0,0 @@
1
- ._table_node_1h0by_1{width:300px;display:flex;flex-direction:column;cursor:default;color:var(--text-color)}._table_node_1h0by_1 ._header_1h0by_8{background:var(--table-node-expand-bg);border-top:2px solid var(--table-node-border-color);border-left:2px solid var(--table-node-border-color);border-right:2px solid var(--table-node-border-color);border-radius:.25em .25em 0 0;padding:.25em}._table_node_1h0by_1 ._header_1h0by_8._collapse_1h0by_16{background:var(--table-node-collapse-bg);border-bottom:2px solid var(--table-node-border-color);border-radius:.25em}._table_node_1h0by_1 ._header_1h0by_8._selected_1h0by_21{border-color:#e38e00}._table_node_1h0by_1 ._content_1h0by_24{flex-grow:1;background:var(--table-node-content-bg);border-bottom:2px solid var(--table-node-border-color);border-left:2px solid var(--table-node-border-color);border-right:2px solid var(--table-node-border-color);border-radius:0 0 .25em .25em;padding:.25em}._table_node_1h0by_1 ._content_1h0by_24._selected_1h0by_21{border-color:#e38e00}._table_header_1h0by_37{display:grid;grid-template-columns:3.2em 1fr 1em;gap:0em .5em;width:100%;height:3.2em;align-items:center;border-radius:.25em;border:1px solid var(--table-node-border-color);overflow-x:hidden}._table_header_1h0by_37 ._seed_1h0by_48{border:1px solid rgba(1,205,140,.3);color:#01cd8c;background-color:#01cd8c1a}._table_header_1h0by_37 ._model_1h0by_53{border:1px solid rgba(var(--node-model-color),.3);color:rgba(var(--node-model-color),1);background-color:rgba(var(--node-model-color),.1)}._table_header_1h0by_37 ._source_1h0by_58{border:1px solid rgba(188,226,228,.3);color:#bce2e4;background-color:#bce2e41a}._table_header_1h0by_37 ._exposure_1h0by_63{border:1px solid rgba(241,180,151,.3);color:#f1b497;background-color:#f1b4971a}._table_header_1h0by_37 ._snapshot_1h0by_68{border:1px solid rgba(245,197,240,.3);color:#f5c5f0;background-color:#f5c5f01a}._table_header_1h0by_37 ._metrics_1h0by_73{border:1px solid rgba(199,243,192,.3);color:#c7f3c0;background-color:#c7f3c01a}._table_header_1h0by_37 ._macros_1h0by_78{border:1px solid rgba(221,157,165,.3);color:#dd9da5;background-color:#dd9da51a}._table_header_1h0by_37 ._analysis_1h0by_83{border:1px solid rgba(255,132,136,.3);color:#ff8488;background-color:#ff84881a}._table_header_1h0by_37 ._node_icon_1h0by_88{display:flex;flex-direction:column;align-items:center;padding:.15em .5em;border-radius:.25em;font-size:.75em}._table_header_1h0by_37 ._node_icon_1h0by_88 svg{width:2em;height:2em}._table_header_1h0by_37 ._dialect_icon_1h0by_100{display:flex;flex-direction:column;align-items:center;width:2em;height:2em;justify-self:center}._table_handle_1h0by_109{width:1.2em;height:1.2em;line-height:1.2em;border-radius:50%;background-color:var(--primary-accent);border:1px solid #d6e7ff;color:#fff;display:flex;justify-content:center;align-items:end;cursor:default}._see_more_node_1h0by_123{width:300px;display:flex;background:var(--table-node-collapse-bg);border:1px solid var(--table-node-border-color);border-radius:.5em;padding:.5em;cursor:default;color:var(--text-color)}._table_card_1h0by_134{width:100%;overflow-x:hidden;border-radius:.25em;padding:.25em;border:1px solid var(--card-border-color);cursor:pointer;background-color:var(--card-bg)}._table_card_1h0by_134._selected_1h0by_21{border-color:#e38e00}._table_card_1h0by_134._disabled_1h0by_146{background-color:#e5e6e7;cursor:default}._column_card_1h0by_151{display:flex;flex-direction:column;gap:.5em;border-radius:.6em;padding:.8em;border:1px solid var(--card-border-color);background-color:var(--card-bg)}._column_card_1h0by_151._selected_1h0by_21{border-color:#e38e00}._edit_icon_1h0by_164{width:1.2rem;height:1.2rem;color:#8390a3}._edit_icon_1h0by_164:hover,._edit_icon_1h0by_164._active_1h0by_172{color:var(--primary-accent)}._expand_lineage_icon_1h0by_176{background-color:var(--primary-accent);padding:.25rem;border-radius:.25rem;display:flex;justify-content:center;align-items:center}._expand_lineage_icon_1h0by_176 svg{width:1rem;height:1rem}._processing_div_1h0by_189{background-color:#fff}._processing_div_1h0by_189 ._gif_img_1h0by_192{max-width:100%;max-height:90%}._card_1h0by_197{box-shadow:0 1px 2px #38414a26;background-color:#fff;border-radius:.5rem;padding:.5rem}._card_1h0by_197 .card{background-color:var(--background--01)}._card_1h0by_197 .card pre{border:none!important;margin:0!important;padding:6px!important}._column_node_1h0by_212{border:1px solid var(--primary-accent);width:276px;border-radius:.25em;padding:4px 8px;color:var(--column-node-color);position:relative}._column_node_1h0by_212._default_1h0by_220{background:var(--column-node-bg)}._column_node_1h0by_212 ._column_name_1h0by_223{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._column_node_1h0by_212 ._column_top_right_1h0by_228{position:absolute;top:-6px;right:4px;display:flex;gap:.25rem}._divider_1h0by_236{height:2px;width:100%;background-color:var(--card-border-color)}._table_details_header_1h0by_242{width:100%;display:grid;grid-template-columns:1.5rem 1fr;gap:0em .5em;align-items:center}._verticle_divider_1h0by_250{width:2px;background-color:#c4cad2}._low_confidence_1h0by_255{padding:.125em .75em;border-radius:.375rem;background:#ff754c;color:#fff}._high_confidence_1h0by_262{padding:.125em .75em;border-radius:.375rem;background:#327e36;color:#fff}._alert_icon_1h0by_269{width:1rem;height:1rem;display:flex}._menu_card_1h0by_275{padding:.275em!important;font-size:.875em}._menu_card_container_1h0by_280{background-color:var(--background--02);border-color:var(--stroke--disable);padding:1px;border-radius:6px}._table_details_tabs_1h0by_287{width:100%;padding:.25em;border-radius:.5em;display:flex;background-color:var(--column-section-bg)}._table_details_tabs_1h0by_287 ._tab_1h0by_1{width:100%;padding:.5em;border-radius:.5em;color:var(--text-color);text-align:center;cursor:pointer}._table_details_tabs_1h0by_287 ._tab_1h0by_1._selected_1h0by_21{background-color:var(--primary-accent);color:#fff}._table_node_pill_1h0by_307{display:flex;align-items:center;border-radius:.5em;gap:.25em;padding:.125em .325em;font-size:.8em;background-color:var(--tag-bg);color:var(--text-color)}._table_node_pill_1h0by_307 ._icon_1h0by_317{width:1rem;height:1rem;display:flex;align-items:center}._node-checkbox_1h0by_324,._non_select_node_checkbox_1h0by_324,._select_node_checkbox_1h0by_324{display:flex;align-items:start;gap:.5em;padding:.125em .5em;border-radius:.5em}._select_node_checkbox_1h0by_324{border:2px solid var(--card-border-color)}._non_select_node_checkbox_1h0by_324{border:2px dashed var(--card-border-color)}._node_extra_info_1h0by_340{height:1.6em}._help_body_1h0by_344,._feedback_body_1h0by_348{color:var(--text-grey2-color)}._feedback_body_1h0by_348 ._cancel_btn_1h0by_351{color:var(--text-grey-color);text-decoration:none}._expand_nav_1h0by_356{border-radius:4px;border:var(--table-node-border-color) solid 1px;display:flex;align-items:center;background-color:var(--background--01);color:var(--text-color)}._expand_nav_1h0by_356 ._expand_nav_btn_1h0by_364{background-color:var(--popover-bg);border-radius:4px;margin:.125em;display:flex;align-items:center}._expand_nav_1h0by_356 ._expand_nav_btn_1h0by_364 ._divider_1h0by_236{height:1.75em;width:1px;background-color:var(--divider-color)}._expand_nav_1h0by_356 ._expand_nav_btn_1h0by_364 ._icon_1h0by_317{padding:.125em;cursor:pointer}._expand_nav_1h0by_356 ._expand_nav_btn_1h0by_364 ._icon_1h0by_317 svg{width:1.5em;height:1.5em}._expand_nav_1h0by_356._disabled_1h0by_146{opacity:.5}._expand_nav_1h0by_356._disabled_1h0by_146 ._icon_1h0by_317{cursor:default}._column_legend_1h0by_408 .popover{border-radius:2px;--bs-popover-bg: --popover-bg;background-color:var(--popover-bg);color:var(--text-color)!important;text-transform:capitalize;border:1px solid #d5dbe4}._column_legend_1h0by_408 .popover .popover-body{color:var(--text-color)!important;padding:.5rem 1rem}._column_legend_1h0by_408 .popover .popover-body>div{margin-bottom:1rem;font-size:10px}._column_legend_1h0by_408 ._dot_1h0by_424{width:.75rem;height:.75rem;border-radius:50%;display:inline-block;vertical-align:text-bottom;margin-right:.4rem;color:#fff;text-align:center;font-size:8px}._model_views_type_1h0by_436{padding:.5rem;background-color:var(--column-section-bg);border-radius:6px;display:flex;align-items:center;gap:.5rem}._close_button_1h0by_445{background-color:var(--primary-accent);padding:.5rem;position:absolute;top:0;right:0;cursor:pointer}._close_button_1h0by_445 svg{width:1rem;height:1rem}._op_node_1h0by_458{display:flex;align-items:center;gap:.25rem;border-radius:2rem;background:var(--table-node-content-bg);border:2px solid var(--table-node-border-color);padding:.25rem}._op_node_1h0by_458 ._node_icon_1h0by_88{width:2.5rem;height:2.5rem;padding:.1rem;border-radius:50%;border:2px solid var(--table-node-border-color);display:flex;justify-content:center;align-items:center}._op_node_1h0by_458 ._node_icon_1h0by_88._light_mode_1h0by_477{background-color:#eaf3ff}._op_node_1h0by_458 ._node_icon_1h0by_88._dark_mode_1h0by_480{background-color:#d3e5ff}._op_node_1h0by_458._highlighted_1h0by_483{background-color:#fbe16b}._op_node_1h0by_458._selected_1h0by_21{border-color:#e38e00}._op_node_1h0by_458 ._cost_data_1h0by_489{display:flex;flex-direction:column;align-items:center;justify-content:center;height:2.5rem;padding:0rem .25rem;border:solid 1px #ff754c;background-color:#ffefeb;color:#374c6a;border-radius:2rem;font-size:.8em;letter-spacing:-.05em;line-height:.75rem}._op_node_1h0by_458 ._op_type_text_1h0by_504{color:var(--primary-accent)}._op_node_1h0by_458 ._op_type_text_1h0by_504 ._node_stats_1h0by_507{position:absolute;right:20%;top:-.45rem;display:flex;gap:.25em}._node_stats_1h0by_507{position:absolute;right:5%;top:-.45rem;display:flex;gap:.25em}._savings-performance_1h0by_523,._performance_1h0by_523,._savings_1h0by_523{display:flex;align-items:center;gap:.25rem;border-radius:1rem;padding:0rem .125rem;font-size:.65rem;text-wrap:nowrap;line-height:.75rem}._savings_1h0by_523{background:#dcfae6;border:1px solid #ade4cb}._savings_1h0by_523 ._value_1h0by_538{color:#374c6a}._savings_1h0by_523 ._percent_1h0by_541{color:#079455}._performance_1h0by_523{background:#fff1d7;border:1px solid #e7a427}._performance_1h0by_523 ._value_1h0by_538{color:#374c6a}._performance_1h0by_523 ._percent_1h0by_541{color:#e7a427}._static_table_node_1h0by_556{width:300px;display:flex;flex-direction:column;cursor:default;color:var(--text-color)}._static_table_node_1h0by_556 ._header_1h0by_8{background:var(--table-node-expand-bg);border-top:2px solid var(--table-node-border-color);border-left:2px solid var(--table-node-border-color);border-right:2px solid var(--table-node-border-color);border-radius:.25em .25em 0 0}._static_table_node_1h0by_556 ._header_1h0by_8._collapse_1h0by_16{background:var(--table-node-collapse-bg);border-bottom:2px solid var(--table-node-border-color);border-radius:.25em}._static_table_node_1h0by_556 ._header_1h0by_8._selected_1h0by_21{border-color:#e38e00}._static_table_node_1h0by_556 ._header_1h0by_8._highlighted_1h0by_483{background-color:#fbe16b}._static_table_node_1h0by_556 ._node_icon_1h0by_88{display:flex;flex-direction:column;align-items:center;margin-top:.25rem;margin-bottom:.25rem}._static_table_node_1h0by_556 ._node_icon_1h0by_88 svg{width:2.8rem;height:2.8rem}._static_table_node_1h0by_556 ._cost_data_1h0by_489{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:.25rem;margin-bottom:.25rem;height:100%;padding:.325rem .3rem;border:solid 1px #ff754c;background-color:#ffefeb;color:#374c6a;border-radius:.375rem;font-size:.8em;letter-spacing:-.05em}._static_table_node_1h0by_556 ._content_1h0by_24{flex-grow:1;background:var(--table-node-content-bg);border-bottom:2px solid var(--table-node-border-color);border-left:2px solid var(--table-node-border-color);border-right:2px solid var(--table-node-border-color);border-radius:0 0 .25em .25em;padding:.25em}._static_table_node_1h0by_556 ._content_1h0by_24._selected_1h0by_21{border-color:#e38e00}._static_table_node_1h0by_556 ._details_btn_1h0by_620{border-radius:50%;width:1.25rem;height:1.25rem;display:flex;justify-content:center;align-items:center;padding:.2rem}._static_table_node_1h0by_556 ._details_btn_1h0by_620._enable_1h0by_629{background-color:var(--primary-accent);cursor:pointer;color:#fff}._static_table_node_1h0by_556 ._details_btn_1h0by_620._disable_1h0by_146{background-color:var(--btn-disable);color:var(--btn-disable-text);cursor:not-allowed}._code_editor_container_1h0by_640{background-color:var(--code-bg)!important;margin:0!important;padding:.25rem!important;flex-grow:1}._code_editor_1h0by_640{background-color:var(--code-bg)!important;padding:.5rem;width:100%;line-height:2!important}._tooltip_container_1h0by_654{position:relative;display:flex;align-items:center}._tooltip_container_1h0by_654:hover ._tooltip_text_1h0by_660{display:block}._tooltip_text_1h0by_660{display:none;position:absolute;bottom:125%;left:50%;transform:translate(-50%);padding:8px;color:#fff;border-radius:4px;white-space:nowrap;background:#082247}._views_type_badge_1h0by_677{background-color:var(--views-color)!important;font-size:8px;padding:2px;width:12px;height:12px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#fff;cursor:default}._lineage_legend_1h0by_391{position:absolute;bottom:1rem;left:3.5rem;z-index:4;background-color:var(--card-bg)!important;color:var(--text-color)!important;border:1px solid var(--input-border-color)!important;border-radius:5px!important;font-size:10px!important;padding:6px!important}._lineage_legend_1h0by_391 svg{margin-left:.6rem;vertical-align:baseline}._column_code_icon_1h0by_708{background-color:#082247!important;padding:2px;width:12px;height:12px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#fff}._column_code_icon_1h0by_708 .codicon{font-size:10px!important}._edge_select_1h0by_724{display:flex;align-items:center}._edge_select_1h0by_724 div{height:2px;width:12px;border-top:solid 2px #e38e00}._edge_non_select_1h0by_734{display:flex;align-items:center}._edge_non_select_1h0by_734 div{height:2px;width:12px;border-top:dashed 1px #e38e00}._modal_views_code_container_1h0by_744{background-color:var(--card-bg);border-radius:6px}._custom_node_code_block_1h0by_749 .tooltip{--bs-tooltip-max-width: none}._custom_node_code_block_1h0by_749 .tooltip .card{border:none;background-color:transparent}._custom_node_code_block_1h0by_749 .tooltip .card pre{padding:0!important;white-space:nowrap!important}._reset_btn_1h0by_761{align-items:center;display:flex;gap:4px}._error_tooltip_1h0by_767{padding:8px;color:#fff;border-radius:4px;background:#082247}:root{--border-radius: 8px}._tableWrapper_1h0by_778{width:100%;max-width:800px;margin:0 auto}._dataTable_1h0by_784{background-color:var(--background--02);color:var(--text-color--paragraph);border-radius:var(--border-radius);overflow:hidden}._dataTable_1h0by_784.table{border:1px solid var(--gray--gray-01);margin-bottom:0}._dataTable_1h0by_784 td{border-color:var(--gray--gray-01)!important;padding:.25rem .5rem!important;background-color:var(--background--02)}._dataTable_1h0by_784 thead th{background-color:var(--background--04);border-bottom-width:2px;border-color:var(--gray--gray-01)!important;padding:.25rem .5rem!important;font-weight:500}._dataTable_1h0by_784 thead th:first-child{border-top-left-radius:calc(var(--border-radius) - 1px)}._dataTable_1h0by_784 thead th:last-child{border-top-right-radius:calc(var(--border-radius) - 1px)}._dataTable_1h0by_784 tbody tr:last-child td:first-child{border-bottom-left-radius:calc(var(--border-radius) - 1px)}._dataTable_1h0by_784 tbody tr:last-child td:last-child{border-bottom-right-radius:calc(var(--border-radius) - 1px)}#lineage-sidebar .sidebar-modal{position:fixed;top:-1px;height:calc(100% + 1px);box-shadow:none;transition:transform .3s ease-in-out;z-index:997;color:var(--text-color);left:0;width:100vw;background-color:transparent}#lineage-sidebar .sidebar-background-screen{position:absolute;top:0;left:0;width:100vw;height:100%;background-color:#08224780;z-index:998;display:block}#lineage-sidebar .sidebar-modal-content{border-radius:0;height:100%;right:0;position:absolute;background-color:var(--card-bg);z-index:998;min-width:400px;max-width:600px}#lineage-sidebar .sidebar-close-button{position:absolute;top:0;right:100%;height:32px;width:32px;background:1px solid #e7e8ea;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;z-index:999;padding:8px;background:var(--primary-accent, #247efe)}._component_13r39_1{position:absolute;width:100%;height:100%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center;flex-direction:column;border:4px solid rgba(0,0,0,.1);width:40px;height:40px;border-radius:50%;border-left-color:var(--primary-color);margin:0 auto;animation:_spin_13r39_1 1s linear infinite}@keyframes _spin_13r39_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._level_tag_x6wwh_1{width:-moz-min-content;width:min-content;display:flex;align-items:center;padding:2px 8px;font-weight:500;border-radius:30px;white-space:nowrap;text-overflow:ellipsis;font-size:.8em;background-color:var(--tag-bg);color:var(--tag-text-color)}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:grab}.react-flow__node.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.lineage-component{--primary-color: #247efe;--bg-color: #f5f5f7;--primary-accent: #247efe;--column-node-bg: #e9f2ff;--column-node-color: var(--primary-accent);--text-color: #000000;--card-bg: #ffffff;--card-border-color: #e7e8ea;--table-node-border-color: rgba(167, 178, 193, .3);--table-node-expand-bg: #eaf3ff;--table-node-collapse-bg: #ffffff;--table-node-content-bg: #ffffff;--text-grey-color: #8390a3;--text-grey2-color: #c4cad2;--purpose-section-bg: #eaf3ff;--column-section-bg: #f5f6f7;--tag-bg: #f5f6f7;--tag-text-color: #082247;--input-placeholder-color: rgba(8, 34, 71, .5);--input-bg: #ffffff;--input-text-color: #212529;--input-border-color: #dee2e6;--modal-bg: #ffffff;--popover-bg: #ffffff;--divider-color: #e8e8e8;--code-bg: #082247;--node-model-color: 36, 126, 254;line-height:var(--bs-body-line-height);height:100%}.vscode-dark .lineage-component{--bg-color: #1e1e1e;--primary-accent: #247efe;--column-node-bg: rgba(131, 144, 163, .2);--column-node-color: #ffffff;--text-color: #ffffff;--card-bg: #252526;--card-border-color: #d5dbe433;--table-node-border-color: rgba(213, 219, 228, .1);--table-node-expand-bg: #494e56;--table-node-collapse-bg: #3a3d41;--table-node-content-bg: #3a3d41;--text-grey-color: #66768d;--text-grey2-color: #c4cad2;--purpose-section-bg: #3c3c3c;--column-section-bg: #3c3c3c;--tag-bg: #4a4d51;--tag-text-color: #ffffff;--input-placeholder-color: #ffffff;--input-bg: rgba(131, 144, 163, .2);--input-text-color: #ffffff;--input-border-color: rgba(131, 144, 163, .1);--modal-bg: #484e55;--popover-bg: #28292c;--divider-color: #424750;--code-bg: #171717;--node-model-color: 202, 232, 249}body.lineage .popover{--bs-popover-bg: var(--background--02)}body.vscode-dark .bs-modal{--bs-modal-bg: #252526 !important;--bs-modal-color: #ffffff !important}.position-relative{position:relative}.gap-xxs{gap:.25rem}.gap-xs{gap:.5rem}.gap-sm{gap:.75rem}.gap-md{gap:1rem}.gap-lg{gap:1.25rem}.gap-xl{gap:2rem}.overflow-y{overflow-y:auto}.overflow-x{overflow-x:auto}.lines-2{display:-webkit-box;text-overflow:ellipsis;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}.text-blue{color:var(--primary-accent)}.text-grey{color:var(--text-grey-color)}.text-overflow{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.invisible{visibility:hidden}.spacer{flex-grow:1}.fw-semibold{font-weight:600}.top-right-container{position:absolute;top:16px;right:16px;display:flex;gap:8px;z-index:1;align-items:center}.fs-xxs{font-size:.875rem}.purpose-section{background-color:var(--purpose-section-bg)}.column-section{background-color:var(--column-section-bg)}.custom-input{background-color:var(--input-bg)!important;color:var(--input-text-color)!important;border-color:var(--input-border-color)!important}.custom-input::placeholder{color:var(--input-placeholder-color)!important;opacity:1!important}.custom-input::-moz-placeholder{color:var(--input-placeholder-color)!important;opacity:1!important}.custom-input::-ms-input-placeholder{color:var(--input-placeholder-color)!important;opacity:1!important}.cursor-pointer{cursor:pointer}.tooltip-container{position:relative;display:flex;align-items:center}.tooltip-container:hover .tooltip-text{display:block}.tooltip-text{display:none;position:absolute;bottom:125%;left:50%;transform:translate(-50%);padding:8px;color:#082247;border-radius:4px;white-space:nowrap;background:#ffce73}.bottom-right-container{position:absolute;bottom:16px;right:16px;display:flex;gap:8px;z-index:100;align-items:center}.normal-text{color:var(--text-color)}.theme-bg{background-color:var(--bg-color)!important}.cursor-disable{cursor:not-allowed}pre[class*=language-],code[class*=language-]{overflow:auto;word-break:break-word}.text-primary{color:var(--primary-accent)}.text-white{color:#fff}code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:#999}.token.punctuation{color:#ccc}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}
@@ -1,104 +0,0 @@
1
- import { Dispatch, ComponentType } from 'react';
2
- import { UnknownAction } from '@reduxjs/toolkit';
3
- import { z } from 'zod';
4
-
5
- interface TeamMateState {
6
- showCoachingForm: boolean;
7
- }
8
- interface TeamMateContextProps {
9
- state: TeamMateState;
10
- dispatch: Dispatch<UnknownAction>;
11
- }
12
- interface CoachAiResponse {
13
- ai_response: string;
14
- category: string;
15
- personalizationScope: string;
16
- }
17
- interface CoachAiConfirmationResponse {
18
- ok: boolean;
19
- train_doc_uid: string;
20
- frontend_url: string;
21
- }
22
- declare enum ContentCategory {
23
- TERM_CLARIFICATION = "TermClarification",
24
- GENERAL_GUIDELINES = "GeneralGuidelines",
25
- BUSINESS_EXPLANATION = "BusinessExplanation"
26
- }
27
- declare enum TaskLabels {
28
- DocGen = "DocGen",
29
- ChartBot = "ChartBot",
30
- SqlBot = "SqlExpert",
31
- OpportunitiesBot = "OpportunitiesBot",
32
- ProjectGovernor = "ProjectGovernor",
33
- TeradataToSnowflakeMigrator = "TeradataToSnowflakeMigrator",
34
- AlertManager = "AlertManager"
35
- }
36
- declare enum PersonalizationScope {
37
- USER_SPECIFIC = "UserSpecific",
38
- ALL_USERS = "AllUsers"
39
- }
40
- declare const learningSchema: z.ZodObject<{
41
- train_doc_uid: z.ZodString;
42
- userId: z.ZodString;
43
- display_name: z.ZodString;
44
- taskLabel: z.ZodString;
45
- category: z.ZodEnum<[string, ...string[]]>;
46
- personalizationScope: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
47
- createdDate: z.ZodString;
48
- updatedDate: z.ZodString;
49
- content: z.ZodString;
50
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
51
- isActive: z.ZodDefault<z.ZodBoolean>;
52
- }, "strip", z.ZodTypeAny, {
53
- content: string;
54
- display_name: string;
55
- userId: string;
56
- train_doc_uid: string;
57
- taskLabel: string;
58
- category: string;
59
- personalizationScope: string;
60
- createdDate: string;
61
- updatedDate: string;
62
- isActive: boolean;
63
- metadata?: Record<string, unknown> | undefined;
64
- }, {
65
- content: string;
66
- display_name: string;
67
- userId: string;
68
- train_doc_uid: string;
69
- taskLabel: string;
70
- category: string;
71
- createdDate: string;
72
- updatedDate: string;
73
- metadata?: Record<string, unknown> | undefined;
74
- personalizationScope?: string | undefined;
75
- isActive?: boolean | undefined;
76
- }>;
77
- interface Learning extends z.infer<typeof learningSchema> {
78
- }
79
- declare enum TeamMateAvailability {
80
- EXTENSION = "VSCode Extension",
81
- SAAS = "SaaS"
82
- }
83
- interface TeamMateComponentProps<T = void> {
84
- onClose?: (data?: T) => void;
85
- frontendUrl?: string;
86
- }
87
- interface TeamMateConfig<T = unknown> {
88
- name: string;
89
- avatar: string;
90
- description: string;
91
- availability: TeamMateAvailability[];
92
- key: TaskLabels;
93
- seeInAction?: boolean;
94
- comingSoon?: boolean | (() => boolean);
95
- displayComponent?: ComponentType<TeamMateComponentProps<T>>;
96
- formComponent?: ComponentType<TeamMateComponentProps<T>>;
97
- }
98
- declare enum TeamMateActionType {
99
- SEE_IN_ACTION = "SEE_IN_ACTION",
100
- REQUEST_ACCESS = "REQUEST_ACCESS",
101
- VIEW_DETAILS = "VIEW_DETAILS"
102
- }
103
-
104
- export { type CoachAiResponse as C, type Learning as L, PersonalizationScope as P, TaskLabels as T, 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, learningSchema as l };
package/dist/v4.css DELETED
@@ -1 +0,0 @@
1
- ._stack_73h55_1{display:flex;flex-direction:row;gap:10px}._stack_73h55_1.stack-column{flex-direction:column}