@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/Button-BKBSxoPA.d.ts +14 -0
- package/dist/CoachForm.css +1 -1
- package/dist/CoachForm.js +22686 -15999
- package/dist/NativeSelect.js +8994 -0
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +8 -112
- package/dist/chatbotV2/index.js +11 -10
- package/dist/flowchart-elk-definition-170a3958.js +4 -5
- package/dist/index.css +1 -1
- package/dist/index.d.ts +76 -13
- package/dist/index.js +68 -31
- package/dist/index2.js +52 -52
- package/dist/is_dark.js +1 -1
- package/dist/lineage/index.js +21 -22
- package/dist/main.js +44 -47
- package/dist/mindmap-definition-44684416.js +4 -5
- package/dist/redux-toolkit.modern.js +995 -886
- package/dist/shadcn/index.d.ts +27 -22
- package/dist/shadcn/index.js +3073 -4254
- package/dist/storybook/Select.stories.tsx +23 -0
- package/dist/timeline-definition-8e5a9bc6.js +1 -1
- package/dist/types-6QSONCz1.d.ts +249 -0
- package/package.json +1 -1
- package/dist/Accordion.js +0 -7781
- package/dist/Badge.js +0 -7
- package/dist/Tooltip.js +0 -115
- package/dist/chatbot/index.d.ts +0 -43
- package/dist/chatbot/index.js +0 -186
- package/dist/index2.css +0 -1
- package/dist/types-FVWfXDNw.d.ts +0 -104
- package/dist/v4.css +0 -1
- package/dist/v4.js +0 -6839
package/dist/main.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Button as Ce, Card as $e, CardBody as Je, CardTitle as Et, CloseButton as Wn, FormGroup as Mt, Input as Lt, FormFeedback as Kn, Collapse as Xn, Alert as ln, Col as Gn, CardImg as Zn, CardSubtitle as Qn, CardText as Jn, Row as er } from "reactstrap";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { B as lr } from "./Badge.js";
|
|
6
|
-
import { j as v, A as pn, k as cr, l as dr, d as fr, D as pr, E as gr, b as hr, a as vr } from "./index2.js";
|
|
2
|
+
import { g as yt, a as cn, A as ve, C as tr, I as Ie, T as nr } from "./redux-toolkit.modern.js";
|
|
3
|
+
import { K as dn, N as dt, O as rr, P as or, T as fn, V as se, W as ir, X as sr, Y as ar, Z as ur, _ as lr, $ as rt, a0 as cr, a1 as dr } from "./CoachForm.js";
|
|
4
|
+
import { j as v, A as pn, i as fr, k as pr, c as gr, D as hr, E as vr, h as mr, g as Er } from "./index2.js";
|
|
7
5
|
import * as te from "react";
|
|
8
|
-
import Z, { createContext as _e, useReducer as gn, useCallback as we, useMemo as de, useContext as ye, useLayoutEffect as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { Popconfirm as _r, Select as Bt } from "antd";
|
|
6
|
+
import Z, { createContext as _e, useReducer as gn, useCallback as we, useMemo as de, useContext as ye, useLayoutEffect as yr, useEffect as fe, useRef as Se, useId as hn, useInsertionEffect as br, Children as De, isValidElement as Cr, useState as re, lazy as Sr } from "react";
|
|
7
|
+
import _r, { createPortal as bt } from "react-dom";
|
|
8
|
+
import { bi as Bt } from "./NativeSelect.js";
|
|
12
9
|
import { useFormik as Ar } from "formik";
|
|
13
10
|
import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
|
|
14
11
|
const Tr = () => {
|
|
@@ -886,7 +883,7 @@ const Rr = (e) => {
|
|
|
886
883
|
start: a,
|
|
887
884
|
end: l
|
|
888
885
|
};
|
|
889
|
-
},
|
|
886
|
+
}, bs = () => {
|
|
890
887
|
var e;
|
|
891
888
|
return [(e = _t()) == null ? void 0 : e.parentElement, Tt()];
|
|
892
889
|
};
|
|
@@ -994,22 +991,22 @@ const Fr = {
|
|
|
994
991
|
}
|
|
995
992
|
}
|
|
996
993
|
}), {
|
|
997
|
-
setCurrentUserId:
|
|
998
|
-
setShareId:
|
|
994
|
+
setCurrentUserId: Cs,
|
|
995
|
+
setShareId: Ss,
|
|
999
996
|
updateSelectedConversationId: It,
|
|
1000
997
|
updateRightPanelState: xt,
|
|
1001
998
|
setUsers: Mr,
|
|
1002
999
|
setConversations: Lr,
|
|
1003
1000
|
resetNewConversation: Ot,
|
|
1004
1001
|
updateNewConversation: Dt,
|
|
1005
|
-
upsertConversation:
|
|
1006
|
-
setDocsAppRendered:
|
|
1007
|
-
updateCurrentPage:
|
|
1008
|
-
updateCodeblockLoaded:
|
|
1002
|
+
upsertConversation: _s,
|
|
1003
|
+
setDocsAppRendered: As,
|
|
1004
|
+
updateCurrentPage: Ts,
|
|
1005
|
+
updateCodeblockLoaded: Is,
|
|
1009
1006
|
resolveConversationGroup: Br,
|
|
1010
1007
|
setConversationsLoadingState: Ht,
|
|
1011
1008
|
refetchConversations: bn,
|
|
1012
|
-
setConversationSource:
|
|
1009
|
+
setConversationSource: xs,
|
|
1013
1010
|
setManifest: $r
|
|
1014
1011
|
} = Xe.actions, tt = _e({
|
|
1015
1012
|
state: Xe.getInitialState(),
|
|
@@ -1057,7 +1054,7 @@ const qr = _e(null), zr = _e({}), Vr = _e({
|
|
|
1057
1054
|
transformPagePoint: (e) => e,
|
|
1058
1055
|
isStatic: !1,
|
|
1059
1056
|
reducedMotion: "never"
|
|
1060
|
-
}), Yr = typeof window < "u", Wr = Yr ?
|
|
1057
|
+
}), Yr = typeof window < "u", Wr = Yr ? yr : fe;
|
|
1061
1058
|
function Sn(e) {
|
|
1062
1059
|
const r = Se(null);
|
|
1063
1060
|
return r.current === null && (r.current = e()), r.current;
|
|
@@ -1087,7 +1084,7 @@ function Xr({ children: e, isPresent: r }) {
|
|
|
1087
1084
|
top: 0,
|
|
1088
1085
|
left: 0
|
|
1089
1086
|
}), { nonce: o } = ye(Vr);
|
|
1090
|
-
return
|
|
1087
|
+
return br(() => {
|
|
1091
1088
|
const { width: s, height: u, top: l, left: d } = t.current;
|
|
1092
1089
|
if (r || !n.current || !s || !u)
|
|
1093
1090
|
return;
|
|
@@ -1142,7 +1139,7 @@ const Ue = (e) => e.key || "";
|
|
|
1142
1139
|
function kt(e) {
|
|
1143
1140
|
const r = [];
|
|
1144
1141
|
return De.forEach(e, (i) => {
|
|
1145
|
-
|
|
1142
|
+
Cr(i) && r.push(i);
|
|
1146
1143
|
}), r;
|
|
1147
1144
|
}
|
|
1148
1145
|
const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
@@ -1360,7 +1357,7 @@ const Qr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1360
1357
|
className: `altimate-highlighter ${r === e.conversation_group_id ? "active" : ""}`,
|
|
1361
1358
|
style: { top: s.top, height: s.bottom - s.top },
|
|
1362
1359
|
onClick: o,
|
|
1363
|
-
children: /* @__PURE__ */ v.jsx(
|
|
1360
|
+
children: /* @__PURE__ */ v.jsx(fr, {})
|
|
1364
1361
|
}
|
|
1365
1362
|
),
|
|
1366
1363
|
t.parentElement
|
|
@@ -3314,7 +3311,7 @@ var Mi = function(r) {
|
|
|
3314
3311
|
ignoreAccents: t.props.ignoreAccents,
|
|
3315
3312
|
a11ySuggestionsListLabel: t.props.a11ySuggestionsListLabel
|
|
3316
3313
|
}, t.props.children);
|
|
3317
|
-
return t.props.suggestionsPortalHost ? /* @__PURE__ */
|
|
3314
|
+
return t.props.suggestionsPortalHost ? /* @__PURE__ */ _r.createPortal(a, t.props.suggestionsPortalHost) : a;
|
|
3318
3315
|
}), H(k(t), "renderHighlighter", function() {
|
|
3319
3316
|
var o = t.state, s = o.selectionStart, u = o.selectionEnd, l = t.props, d = l.singleLine, a = l.children, c = l.value, f = l.style;
|
|
3320
3317
|
return /* @__PURE__ */ Z.createElement(xi, {
|
|
@@ -3840,7 +3837,7 @@ const Ui = {
|
|
|
3840
3837
|
onEnterKeypress: s
|
|
3841
3838
|
}
|
|
3842
3839
|
),
|
|
3843
|
-
/* @__PURE__ */ v.jsx(dn, { loading: i, color: "primary", children: /* @__PURE__ */ v.jsx(
|
|
3840
|
+
/* @__PURE__ */ v.jsx(dn, { loading: i, color: "primary", children: /* @__PURE__ */ v.jsx(pr, {}) })
|
|
3844
3841
|
] }), kn = ({
|
|
3845
3842
|
meta: { highlight: e, filePath: r, field: i, column: n }
|
|
3846
3843
|
}) => {
|
|
@@ -3924,7 +3921,7 @@ const Ui = {
|
|
|
3924
3921
|
className: me.resolveButton,
|
|
3925
3922
|
title: "Resolve conversation",
|
|
3926
3923
|
onClick: s,
|
|
3927
|
-
children: /* @__PURE__ */ v.jsx(
|
|
3924
|
+
children: /* @__PURE__ */ v.jsx(gr, {})
|
|
3928
3925
|
}
|
|
3929
3926
|
) : null;
|
|
3930
3927
|
}, Un = ({
|
|
@@ -4220,7 +4217,7 @@ const Ui = {
|
|
|
4220
4217
|
}, os = () => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4221
4218
|
/* @__PURE__ */ v.jsx(rs, {}),
|
|
4222
4219
|
/* @__PURE__ */ v.jsx(ns, {})
|
|
4223
|
-
] }), is =
|
|
4220
|
+
] }), is = Sr(() => import("./DbtDocsRenderer.js")), ss = () => {
|
|
4224
4221
|
const { loading: e, shareDetails: r } = ao(), i = le(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = uo(), s = (u) => {
|
|
4225
4222
|
u.stopPropagation();
|
|
4226
4223
|
const l = n();
|
|
@@ -4235,7 +4232,7 @@ const Ui = {
|
|
|
4235
4232
|
/* @__PURE__ */ v.jsx(is, { shareDetails: r, onSelectionEnd: o }),
|
|
4236
4233
|
t ? /* @__PURE__ */ v.jsx(Jr, { pos: t, onAddComment: s }) : null
|
|
4237
4234
|
] });
|
|
4238
|
-
},
|
|
4235
|
+
}, Os = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ v.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ v.jsx(
|
|
4239
4236
|
Hr,
|
|
4240
4237
|
{
|
|
4241
4238
|
shareId: e,
|
|
@@ -4257,7 +4254,7 @@ const Ui = {
|
|
|
4257
4254
|
}), as = mt.actions, Yn = _e({
|
|
4258
4255
|
state: Vn,
|
|
4259
4256
|
dispatch: () => null
|
|
4260
|
-
}),
|
|
4257
|
+
}), Ds = ({ children: e }) => {
|
|
4261
4258
|
const [r, i] = gn(mt.reducer, mt.getInitialState()), n = de(
|
|
4262
4259
|
() => ({
|
|
4263
4260
|
state: r,
|
|
@@ -4273,7 +4270,7 @@ const Ui = {
|
|
|
4273
4270
|
if (e === void 0)
|
|
4274
4271
|
throw new Error("useTeamMateContext must be used within a TeamMateProvider");
|
|
4275
4272
|
return e;
|
|
4276
|
-
},
|
|
4273
|
+
}, Rs = () => {
|
|
4277
4274
|
const { dispatch: e } = ls(), r = () => {
|
|
4278
4275
|
e(as.setShowCoachingForm(!0));
|
|
4279
4276
|
};
|
|
@@ -4363,7 +4360,7 @@ const Ui = {
|
|
|
4363
4360
|
}
|
|
4364
4361
|
) }),
|
|
4365
4362
|
/* @__PURE__ */ v.jsx(
|
|
4366
|
-
|
|
4363
|
+
ir,
|
|
4367
4364
|
{
|
|
4368
4365
|
title: "Delete the task",
|
|
4369
4366
|
description: "Are you sure to delete this task?",
|
|
@@ -4378,7 +4375,7 @@ const Ui = {
|
|
|
4378
4375
|
className: "pt-1 pb-0",
|
|
4379
4376
|
disabled: p,
|
|
4380
4377
|
onClick: E,
|
|
4381
|
-
children: /* @__PURE__ */ v.jsx(
|
|
4378
|
+
children: /* @__PURE__ */ v.jsx(hr, {})
|
|
4382
4379
|
}
|
|
4383
4380
|
)
|
|
4384
4381
|
}
|
|
@@ -4395,8 +4392,8 @@ const Ui = {
|
|
|
4395
4392
|
children: "Save"
|
|
4396
4393
|
}
|
|
4397
4394
|
)
|
|
4398
|
-
] }) : /* @__PURE__ */ v.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ v.jsx(
|
|
4399
|
-
/* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(
|
|
4395
|
+
] }) : /* @__PURE__ */ v.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ v.jsx(vr, {}) }),
|
|
4396
|
+
/* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(mr, {}) : /* @__PURE__ */ v.jsx(Er, {}) })
|
|
4400
4397
|
] })
|
|
4401
4398
|
] }) }),
|
|
4402
4399
|
/* @__PURE__ */ v.jsxs(Xn, { isOpen: y, children: [
|
|
@@ -4409,7 +4406,7 @@ const Ui = {
|
|
|
4409
4406
|
Bt,
|
|
4410
4407
|
{
|
|
4411
4408
|
style: { minWidth: 160 },
|
|
4412
|
-
options: Object.values(
|
|
4409
|
+
options: Object.values(sr).map((A) => ({
|
|
4413
4410
|
value: A,
|
|
4414
4411
|
label: A
|
|
4415
4412
|
})),
|
|
@@ -4434,7 +4431,7 @@ const Ui = {
|
|
|
4434
4431
|
Bt,
|
|
4435
4432
|
{
|
|
4436
4433
|
style: { minWidth: 100 },
|
|
4437
|
-
options: Object.values(
|
|
4434
|
+
options: Object.values(ar).map((A) => ({
|
|
4438
4435
|
value: A,
|
|
4439
4436
|
label: A
|
|
4440
4437
|
})),
|
|
@@ -4461,9 +4458,9 @@ const Ui = {
|
|
|
4461
4458
|
] })
|
|
4462
4459
|
] })
|
|
4463
4460
|
] }) });
|
|
4464
|
-
},
|
|
4461
|
+
}, ws = ({ filters: e, learning: r }) => {
|
|
4465
4462
|
var d;
|
|
4466
|
-
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } =
|
|
4463
|
+
const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = ur({
|
|
4467
4464
|
queryFn: () => ve.get("coach/training", e)
|
|
4468
4465
|
}), l = (a) => {
|
|
4469
4466
|
n((c) => c === a ? void 0 : a);
|
|
@@ -4527,7 +4524,7 @@ const Ui = {
|
|
|
4527
4524
|
children: "View details"
|
|
4528
4525
|
}
|
|
4529
4526
|
),
|
|
4530
|
-
e.seeInAction && e.availability.includes(
|
|
4527
|
+
e.seeInAction && e.availability.includes(cr[r]) && /* @__PURE__ */ v.jsx(
|
|
4531
4528
|
Ce,
|
|
4532
4529
|
{
|
|
4533
4530
|
color: "primary",
|
|
@@ -4542,25 +4539,25 @@ const Ui = {
|
|
|
4542
4539
|
] })
|
|
4543
4540
|
] })
|
|
4544
4541
|
] }) });
|
|
4545
|
-
},
|
|
4542
|
+
}, Ns = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(er, { children: dr.map((i) => /* @__PURE__ */ v.jsx(ds, { config: i, client: r, onSelect: e }, i.name)) }) });
|
|
4546
4543
|
export {
|
|
4547
4544
|
Ct as C,
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4545
|
+
Os as D,
|
|
4546
|
+
ws as L,
|
|
4547
|
+
Ds as T,
|
|
4551
4548
|
ne as a,
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4549
|
+
Ts as b,
|
|
4550
|
+
Is as c,
|
|
4551
|
+
bs as d,
|
|
4555
4552
|
_t as e,
|
|
4556
4553
|
me as f,
|
|
4557
4554
|
Tr as g,
|
|
4558
4555
|
Hn as h,
|
|
4559
4556
|
Xi as i,
|
|
4560
|
-
|
|
4557
|
+
Rs as j,
|
|
4561
4558
|
ls as k,
|
|
4562
4559
|
as as l,
|
|
4563
|
-
|
|
4564
|
-
|
|
4560
|
+
Ns as m,
|
|
4561
|
+
As as s,
|
|
4565
4562
|
le as u
|
|
4566
4563
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as Cn } from "./redux-toolkit.modern.js";
|
|
3
|
-
import { c as za, g as Vu } from "./Tooltip.js";
|
|
1
|
+
import { J as Zy, k as Dn, l as fa, s as Qy, m as Jy, n as jy } from "./CoachForm.js";
|
|
2
|
+
import { c as za, g as Vu, s as Cn } from "./redux-toolkit.modern.js";
|
|
4
3
|
import { i as em } from "./is_dark.js";
|
|
5
4
|
var Uu = { exports: {} };
|
|
6
5
|
(function(Ee, me) {
|
|
@@ -20504,12 +20503,12 @@ const Mm = async (Ee, me, J, pe) => {
|
|
|
20504
20503
|
.edge {
|
|
20505
20504
|
fill: none;
|
|
20506
20505
|
}
|
|
20507
|
-
`, Bm = km,
|
|
20506
|
+
`, Bm = km, _m = {
|
|
20508
20507
|
db: pm,
|
|
20509
20508
|
renderer: Pm,
|
|
20510
20509
|
parser: sm,
|
|
20511
20510
|
styles: Bm
|
|
20512
20511
|
};
|
|
20513
20512
|
export {
|
|
20514
|
-
|
|
20513
|
+
_m as diagram
|
|
20515
20514
|
};
|