@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/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 { c as cn, A as ve, C as tr, I as Ie } from "./redux-toolkit.modern.js";
3
- import { g as yt, T as nr } from "./Tooltip.js";
4
- import { J as dn, K as dt, N as rr, O as or, P as fn, T as ir, V as sr, W as rt, X as ar, Y as ur } from "./CoachForm.js";
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 mr, useEffect as fe, useRef as Se, useId as hn, useInsertionEffect as Er, Children as De, isValidElement as yr, useState as re, lazy as br } from "react";
9
- import Cr, { createPortal as bt } from "react-dom";
10
- import { S as se, u as Sr } from "./v4.js";
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
- }, _s = () => {
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: As,
998
- setShareId: Ts,
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: Is,
1006
- setDocsAppRendered: xs,
1007
- updateCurrentPage: Os,
1008
- updateCodeblockLoaded: Ds,
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: Rs,
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 ? mr : fe;
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 Er(() => {
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
- yr(i) && r.push(i);
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(cr, {})
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__ */ Cr.createPortal(a, t.props.suggestionsPortalHost) : a;
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(dr, {}) })
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(fr, {})
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 = br(() => import("./DbtDocsRenderer.js")), ss = () => {
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
- }, ws = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ v.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ v.jsx(
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
- }), Ns = ({ children: e }) => {
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
- }, js = () => {
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
- _r,
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(pr, {})
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(gr, {}) }),
4399
- /* @__PURE__ */ v.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ v.jsx(hr, {}) : /* @__PURE__ */ v.jsx(vr, {}) })
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(ir).map((A) => ({
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(sr).map((A) => ({
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
- }, Ps = ({ filters: e, learning: r }) => {
4461
+ }, ws = ({ filters: e, learning: r }) => {
4465
4462
  var d;
4466
- const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = Sr({
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(ar[r]) && /* @__PURE__ */ v.jsx(
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
- }, Fs = ({ onSelect: e, client: r }) => /* @__PURE__ */ v.jsx("div", { className: "teammates", children: /* @__PURE__ */ v.jsx(er, { children: ur.map((i) => /* @__PURE__ */ v.jsx(ds, { config: i, client: r, onSelect: e }, i.name)) }) });
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
- ws as D,
4549
- Ps as L,
4550
- Ns as T,
4545
+ Os as D,
4546
+ ws as L,
4547
+ Ds as T,
4551
4548
  ne as a,
4552
- Os as b,
4553
- Ds as c,
4554
- _s as d,
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
- js as j,
4557
+ Rs as j,
4561
4558
  ls as k,
4562
4559
  as as l,
4563
- Fs as m,
4564
- xs as s,
4560
+ Ns as m,
4561
+ As as s,
4565
4562
  le as u
4566
4563
  };
@@ -1,6 +1,5 @@
1
- import { H as Zy, j as Dn, l as fa, s as Qy, k as Jy, m as jy } from "./CoachForm.js";
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, Vm = {
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
- Vm as diagram
20513
+ _m as diagram
20515
20514
  };