@altimateai/ui-components 0.0.77-beta.6 → 0.0.77-beta.7
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/CoachForm.js +23618 -18374
- package/dist/Stack.js +39 -39
- package/dist/ToggleGroup.js +9 -9
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/chatbotV2/index.js +73 -102
- package/dist/dagre-6UL2VRFP.js +95 -95
- package/dist/dagre-6UL2VRFP2.js +88 -88
- package/dist/index.d.ts +101 -6
- package/dist/index.js +7 -7
- package/dist/index3.js +20 -20
- package/dist/lineage/index.js +157 -157
- package/dist/main.js +76 -76
- package/dist/mermaid-parser.core.js +1 -1
- package/dist/pie.js +10 -10
- package/dist/shadcn/index.js +3 -3
- package/dist/{types-BZH4Xw79.d.ts → types-UHJCpYj0.d.ts} +24 -115
- package/dist/wasm.js +5 -4
- package/dist/wasm2.js +4 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ds as un, dt as Yn, du as Wn, dv as Kn, dw as Xn, dx as
|
|
1
|
+
import { ds as un, dt as Yn, du as Wn, dv as Kn, dw as Xn, dx as Zn, dy as rt, dz as Gn, dA as Qn } from "./CoachForm.js";
|
|
2
2
|
import { d as dt, C as Jn } from "./dayjs.min.js";
|
|
3
3
|
import { g as yt, k as ln, A as ve, l as er, I as Ie, u as cn, m as tr } from "./redux-toolkit.modern.js";
|
|
4
|
-
import { B as ye, a5 as $e, a6 as He, a7 as nr, S as oe, a8 as rr,
|
|
5
|
-
import { j as h, A as dn,
|
|
4
|
+
import { B as ye, a5 as $e, a6 as He, a7 as nr, S as oe, a8 as rr, T as or, a2 as ft, Z as ir } from "./Stack.js";
|
|
5
|
+
import { j as h, A as dn, e as sr, f as ar, a as ur, d as lr, D as cr, E as dr, c as fr, b as pr } from "./index3.js";
|
|
6
6
|
import * as te from "react";
|
|
7
|
-
import
|
|
7
|
+
import G, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as gr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as hr, Children as De, isValidElement as vr, useState as re, lazy as mr } from "react";
|
|
8
8
|
import Er, { createPortal as bt } from "react-dom";
|
|
9
9
|
import { u as yr, F as Mt, a as br, A as gn, N as Lt, B as Cr } from "./ToggleGroup.js";
|
|
10
10
|
import { S as Sr } from "./Switch.js";
|
|
@@ -648,11 +648,11 @@ var hn = { exports: {} };
|
|
|
648
648
|
c.forEach(N.childNodes, function(I) {
|
|
649
649
|
return $.appendChild(I.cloneNode(!1));
|
|
650
650
|
});
|
|
651
|
-
var
|
|
652
|
-
j.replaceChild($, N), a.normalizeSiblingText(
|
|
651
|
+
var Z = N.previousSibling, _ = N.nextSibling;
|
|
652
|
+
j.replaceChild($, N), a.normalizeSiblingText(Z, !0), a.normalizeSiblingText(_, !1), b.Remove.UpdateNodes.call(y, N, "remove");
|
|
653
653
|
}), w.forEach(function(N) {
|
|
654
|
-
var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION),
|
|
655
|
-
_ && (c.removeAllClass(N), c.addClass(N, u(_.classList))), j[p.CAMEL_DATASET_IDENTIFIER] =
|
|
654
|
+
var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION), Z = $.shift(), _ = document.querySelector(D + "[data-" + p.DATASET_IDENTIFIER + '="' + Z + '"]');
|
|
655
|
+
_ && (c.removeAllClass(N), c.addClass(N, u(_.classList))), j[p.CAMEL_DATASET_IDENTIFIER] = Z, j[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = $.join(p.ID_DIVISION), b.Remove.UpdateNodes.call(y, N, "id-update");
|
|
656
656
|
}), A.forEach(function(N) {
|
|
657
657
|
var j = N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
|
|
658
658
|
N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = j.replace(T, ""), b.Remove.UpdateNodes.call(y, N, "extra-update");
|
|
@@ -706,12 +706,12 @@ var hn = { exports: {} };
|
|
|
706
706
|
n.getSelectedNodes = function(p, m, v, y) {
|
|
707
707
|
var C = m.$node, S = v.$node, T = m.offset, b = v.offset;
|
|
708
708
|
if (C === S && C instanceof Text) return function(F, V, N, j) {
|
|
709
|
-
for (var $ = F,
|
|
709
|
+
for (var $ = F, Z = function(I) {
|
|
710
710
|
return j == null ? void 0 : j.some(function(L) {
|
|
711
711
|
return c(I, L);
|
|
712
712
|
});
|
|
713
713
|
}; $; ) {
|
|
714
|
-
if ($.nodeType === 1 &&
|
|
714
|
+
if ($.nodeType === 1 && Z($)) return [];
|
|
715
715
|
$ = $.parentNode;
|
|
716
716
|
}
|
|
717
717
|
F.splitText(V);
|
|
@@ -759,10 +759,10 @@ var hn = { exports: {} };
|
|
|
759
759
|
}(p, m, v) : function(b, D, O, E) {
|
|
760
760
|
var w = document.createElement(E), A = b.$node.parentNode, P = b.$node.previousSibling, q = b.$node.nextSibling, Y = document.createDocumentFragment(), F = A.dataset[d.CAMEL_DATASET_IDENTIFIER], V = A.dataset[d.CAMEL_DATASET_IDENTIFIER_EXTRA], N = V ? F + d.ID_DIVISION + V : F;
|
|
761
761
|
w.setAttribute("data-" + d.DATASET_IDENTIFIER, D.id), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, N), w.appendChild(b.$node.cloneNode(!1));
|
|
762
|
-
var j, $ = !1,
|
|
762
|
+
var j, $ = !1, Z = !1;
|
|
763
763
|
P && ((_ = A.cloneNode(!1)).textContent = P.textContent, Y.appendChild(_), $ = !0);
|
|
764
764
|
var _, I = [];
|
|
765
|
-
return Array.isArray(O) ? I.push.apply(I, s(O)) : I.push(O), f(w, a.unique(I)), Y.appendChild(w), q && ((_ = A.cloneNode(!1)).textContent = q.textContent, Y.appendChild(_),
|
|
765
|
+
return Array.isArray(O) ? I.push.apply(I, s(O)) : I.push(O), f(w, a.unique(I)), Y.appendChild(w), q && ((_ = A.cloneNode(!1)).textContent = q.textContent, Y.appendChild(_), Z = !0), j = $ && Z ? u.SplitType.both : $ ? u.SplitType.head : Z ? u.SplitType.tail : u.SplitType.none, w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, j), A.parentNode.replaceChild(Y, A), w;
|
|
766
766
|
}(p, m, v, y) : function(b, D, O, E) {
|
|
767
767
|
var w = document.createElement(E);
|
|
768
768
|
return f(w, O), w.appendChild(b.$node.cloneNode(!1)), b.$node.parentNode.replaceChild(w, b.$node), w.setAttribute("data-" + d.DATASET_IDENTIFIER, D.id), w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, b.splitType), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, ""), w;
|
|
@@ -902,7 +902,7 @@ const jr = {
|
|
|
902
902
|
codeblockLoaded: !1,
|
|
903
903
|
source: Ct.DBT_DOCS,
|
|
904
904
|
manifest: {}
|
|
905
|
-
},
|
|
905
|
+
}, Ze = ln({
|
|
906
906
|
name: "appState",
|
|
907
907
|
initialState: jr,
|
|
908
908
|
reducers: {
|
|
@@ -1009,8 +1009,8 @@ const jr = {
|
|
|
1009
1009
|
refetchConversations: yn,
|
|
1010
1010
|
setConversationSource: Is,
|
|
1011
1011
|
setManifest: Lr
|
|
1012
|
-
} =
|
|
1013
|
-
state:
|
|
1012
|
+
} = Ze.actions, tt = _e({
|
|
1013
|
+
state: Ze.getInitialState(),
|
|
1014
1014
|
dispatch: () => null,
|
|
1015
1015
|
getValue: () => null
|
|
1016
1016
|
}), Br = ({
|
|
@@ -1020,8 +1020,8 @@ const jr = {
|
|
|
1020
1020
|
conversationGroupId: n,
|
|
1021
1021
|
source: t
|
|
1022
1022
|
}) => {
|
|
1023
|
-
const [o, s] = fn(
|
|
1024
|
-
...
|
|
1023
|
+
const [o, s] = fn(Ze.reducer, {
|
|
1024
|
+
...Ze.getInitialState(),
|
|
1025
1025
|
shareId: r,
|
|
1026
1026
|
currentUserId: i,
|
|
1027
1027
|
selectedConversationId: n,
|
|
@@ -1143,7 +1143,7 @@ function Ht(e) {
|
|
|
1143
1143
|
vr(i) && r.push(i);
|
|
1144
1144
|
}), r;
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
1147
1147
|
bn(!r, "Replace exitBeforeEnter with mode='wait'");
|
|
1148
1148
|
const u = fe(() => Ht(e), [e]), l = u.map(qe), d = Se(!0), a = Se(u), c = Cn(() => /* @__PURE__ */ new Map()), [f, g] = re(u), [p, m] = re(u);
|
|
1149
1149
|
Vr(() => {
|
|
@@ -1178,8 +1178,8 @@ const Gr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1178
1178
|
};
|
|
1179
1179
|
return h.jsx(Kr, { isPresent: T, initial: !d.current || n ? void 0 : !1, custom: T ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: T ? void 0 : b, children: C }, S);
|
|
1180
1180
|
}) });
|
|
1181
|
-
},
|
|
1182
|
-
/* @__PURE__ */ h.jsx(
|
|
1181
|
+
}, Gr = ({ pos: e, onAddComment: r }) => bt(
|
|
1182
|
+
/* @__PURE__ */ h.jsx(Zr, { children: e && /* @__PURE__ */ h.jsx(
|
|
1183
1183
|
ye,
|
|
1184
1184
|
{
|
|
1185
1185
|
onClick: r,
|
|
@@ -1411,7 +1411,7 @@ function Ao(e) {
|
|
|
1411
1411
|
function To() {
|
|
1412
1412
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function Ge(e) {
|
|
1415
1415
|
return _o(e) || Ao(e) || To();
|
|
1416
1416
|
}
|
|
1417
1417
|
function ue() {
|
|
@@ -1705,9 +1705,9 @@ var On = function(r) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
} else return [];
|
|
1707
1707
|
return r;
|
|
1708
|
-
},
|
|
1708
|
+
}, Zo = {}, Go = function(r) {
|
|
1709
1709
|
return function(i, n) {
|
|
1710
|
-
var t = n ||
|
|
1710
|
+
var t = n || Zo;
|
|
1711
1711
|
r.memoize = r.memoize || /* @__PURE__ */ new WeakMap();
|
|
1712
1712
|
var o;
|
|
1713
1713
|
r.memoize.has(t) ? o = r.memoize.get(t) : (o = {}, r.memoize.set(t, o));
|
|
@@ -1750,7 +1750,7 @@ var Qo = function(r) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
};
|
|
1752
1752
|
function Dn(e) {
|
|
1753
|
-
var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : In, o = i || Qo(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r :
|
|
1753
|
+
var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : In, o = i || Qo(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r : Go(function(c, f) {
|
|
1754
1754
|
var g = On(c);
|
|
1755
1755
|
Re(Array.isArray(g), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), Re(!f || Ke(f), "Optional second parameter must be a plain object.");
|
|
1756
1756
|
var p = g.filter(Rt), m = g.filter(Yo), v = m.length > 0 ? function(S) {
|
|
@@ -1940,7 +1940,7 @@ function ni() {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
var b = l, D = d, O = u, E = s, w = r, A = a, P = n, q = p, Y = g, F = i, V = o, N = t, j = c, $ = !1;
|
|
1943
|
-
function
|
|
1943
|
+
function Z(R) {
|
|
1944
1944
|
return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(R) || T(R) === l;
|
|
1945
1945
|
}
|
|
1946
1946
|
function _(R) {
|
|
@@ -1979,7 +1979,7 @@ function ni() {
|
|
|
1979
1979
|
function se(R) {
|
|
1980
1980
|
return T(R) === c;
|
|
1981
1981
|
}
|
|
1982
|
-
J.AsyncMode = b, J.ConcurrentMode = D, J.ContextConsumer = O, J.ContextProvider = E, J.Element = w, J.ForwardRef = A, J.Fragment = P, J.Lazy = q, J.Memo = Y, J.Portal = F, J.Profiler = V, J.StrictMode = N, J.Suspense = j, J.isAsyncMode =
|
|
1982
|
+
J.AsyncMode = b, J.ConcurrentMode = D, J.ContextConsumer = O, J.ContextProvider = E, J.Element = w, J.ForwardRef = A, J.Fragment = P, J.Lazy = q, J.Memo = Y, J.Portal = F, J.Profiler = V, J.StrictMode = N, J.Suspense = j, J.isAsyncMode = Z, J.isConcurrentMode = _, J.isContextConsumer = I, J.isContextProvider = L, J.isElement = B, J.isForwardRef = M, J.isFragment = W, J.isLazy = U, J.isMemo = z, J.isPortal = K, J.isProfiler = ee, J.isStrictMode = X, J.isSuspense = se, J.isValidElementType = S, J.typeOf = T;
|
|
1983
1983
|
}()), J;
|
|
1984
1984
|
}
|
|
1985
1985
|
var Kt;
|
|
@@ -2037,16 +2037,16 @@ function ri() {
|
|
|
2037
2037
|
return l;
|
|
2038
2038
|
}, ot;
|
|
2039
2039
|
}
|
|
2040
|
-
var it,
|
|
2040
|
+
var it, Zt;
|
|
2041
2041
|
function Nt() {
|
|
2042
|
-
if (
|
|
2043
|
-
|
|
2042
|
+
if (Zt) return it;
|
|
2043
|
+
Zt = 1;
|
|
2044
2044
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2045
2045
|
return it = e, it;
|
|
2046
2046
|
}
|
|
2047
|
-
var st,
|
|
2047
|
+
var st, Gt;
|
|
2048
2048
|
function wn() {
|
|
2049
|
-
return
|
|
2049
|
+
return Gt || (Gt = 1, st = Function.call.bind(Object.prototype.hasOwnProperty)), st;
|
|
2050
2050
|
}
|
|
2051
2051
|
var at, Qt;
|
|
2052
2052
|
function oi() {
|
|
@@ -2232,7 +2232,7 @@ function ii() {
|
|
|
2232
2232
|
function D(_) {
|
|
2233
2233
|
function I(L, B, M, W, U) {
|
|
2234
2234
|
if (!(L[B] instanceof _)) {
|
|
2235
|
-
var z = _.name || f, K =
|
|
2235
|
+
var z = _.name || f, K = Z(L[B]);
|
|
2236
2236
|
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected ") + ("instance of `" + z + "`."));
|
|
2237
2237
|
}
|
|
2238
2238
|
return null;
|
|
@@ -2412,7 +2412,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
2412
2412
|
return I;
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2415
|
+
function Z(_) {
|
|
2416
2416
|
return !_.constructor || !_.constructor.name ? f : _.constructor.name;
|
|
2417
2417
|
}
|
|
2418
2418
|
return g.checkPropTypes = t, g.resetWarningCache = t.resetWarningCache, g.PropTypes = g, g;
|
|
@@ -2907,11 +2907,11 @@ function nt(e, r) {
|
|
|
2907
2907
|
className: a,
|
|
2908
2908
|
classNames: c
|
|
2909
2909
|
}, g);
|
|
2910
|
-
return /* @__PURE__ */
|
|
2910
|
+
return /* @__PURE__ */ G.createElement(t, ue({}, f, {
|
|
2911
2911
|
style: p
|
|
2912
2912
|
}));
|
|
2913
2913
|
}, s = t.displayName || t.name || "Component";
|
|
2914
|
-
return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */
|
|
2914
|
+
return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */ G.forwardRef(function(u, l) {
|
|
2915
2915
|
return o(sn(sn({}, u), {}, {
|
|
2916
2916
|
ref: l
|
|
2917
2917
|
}));
|
|
@@ -2952,11 +2952,11 @@ function Fn(e) {
|
|
|
2952
2952
|
} else
|
|
2953
2953
|
D.push(A(F, O));
|
|
2954
2954
|
O++;
|
|
2955
|
-
}, w = function(F, V, N, j, $,
|
|
2955
|
+
}, w = function(F, V, N, j, $, Z, _) {
|
|
2956
2956
|
var I = _i(b, j);
|
|
2957
|
-
D.push(P(j, $,
|
|
2957
|
+
D.push(P(j, $, Z, I));
|
|
2958
2958
|
}, A = function(F, V) {
|
|
2959
|
-
return /* @__PURE__ */
|
|
2959
|
+
return /* @__PURE__ */ G.createElement("span", ue({}, l("substring"), {
|
|
2960
2960
|
key: V
|
|
2961
2961
|
}), F);
|
|
2962
2962
|
}, P = function(F, V, N, j) {
|
|
@@ -2964,15 +2964,15 @@ function Fn(e) {
|
|
|
2964
2964
|
id: F,
|
|
2965
2965
|
display: V,
|
|
2966
2966
|
key: j
|
|
2967
|
-
},
|
|
2968
|
-
return /* @__PURE__ */
|
|
2967
|
+
}, Z = De.toArray(u)[N];
|
|
2968
|
+
return /* @__PURE__ */ G.cloneElement(Z, $);
|
|
2969
2969
|
}, q = function(F) {
|
|
2970
|
-
return /* @__PURE__ */
|
|
2970
|
+
return /* @__PURE__ */ G.createElement("span", ue({}, l("caret"), {
|
|
2971
2971
|
ref: v,
|
|
2972
2972
|
key: "caret"
|
|
2973
2973
|
}), F);
|
|
2974
2974
|
};
|
|
2975
|
-
return ke(t, C, w, E), D.push(" "), D !== T && T.push(q(D)), /* @__PURE__ */
|
|
2975
|
+
return ke(t, C, w, E), D.push(" "), D !== T && T.push(q(D)), /* @__PURE__ */ G.createElement("div", ue({}, l, {
|
|
2976
2976
|
ref: s
|
|
2977
2977
|
}), T);
|
|
2978
2978
|
}
|
|
@@ -3024,9 +3024,9 @@ function Mn(e) {
|
|
|
3024
3024
|
return v === void 0 || !y ? v : y;
|
|
3025
3025
|
}, p = function(v) {
|
|
3026
3026
|
var y = Pn(v, u, n);
|
|
3027
|
-
return y === -1 ? /* @__PURE__ */
|
|
3027
|
+
return y === -1 ? /* @__PURE__ */ G.createElement("span", a("display"), v) : /* @__PURE__ */ G.createElement("span", a("display"), v.substring(0, y), /* @__PURE__ */ G.createElement("b", a("highlight"), v.substring(y, y + u.length)), v.substring(y + u.length));
|
|
3028
3028
|
};
|
|
3029
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ G.createElement("li", ue({
|
|
3030
3030
|
id: r,
|
|
3031
3031
|
role: "option",
|
|
3032
3032
|
"aria-selected": i
|
|
@@ -3057,7 +3057,7 @@ function Oi(e) {
|
|
|
3057
3057
|
className: i,
|
|
3058
3058
|
classNames: n
|
|
3059
3059
|
}), o = t("spinner");
|
|
3060
|
-
return /* @__PURE__ */
|
|
3060
|
+
return /* @__PURE__ */ G.createElement("div", t, /* @__PURE__ */ G.createElement("div", o, /* @__PURE__ */ G.createElement("div", o(["element", "element1"])), /* @__PURE__ */ G.createElement("div", o(["element", "element2"])), /* @__PURE__ */ G.createElement("div", o(["element", "element3"])), /* @__PURE__ */ G.createElement("div", o(["element", "element4"])), /* @__PURE__ */ G.createElement("div", o(["element", "element5"]))));
|
|
3061
3061
|
}
|
|
3062
3062
|
var Di = {};
|
|
3063
3063
|
function Ln(e) {
|
|
@@ -3066,31 +3066,31 @@ function Ln(e) {
|
|
|
3066
3066
|
} : g, m = e.ignoreAccents, v = e.containerRef, y = e.children, C = e.style, S = e.customSuggestionsContainer, T = e.onMouseDown, b = e.onMouseEnter, D = re(void 0), O = Je(D, 2), E = O[0], w = O[1];
|
|
3067
3067
|
le(function() {
|
|
3068
3068
|
if (!(!E || E.offsetHeight >= E.scrollHeight || !a)) {
|
|
3069
|
-
var N = E.scrollTop, j = E.children[o].getBoundingClientRect(), $ = j.top,
|
|
3070
|
-
$ = $ - I + N,
|
|
3069
|
+
var N = E.scrollTop, j = E.children[o].getBoundingClientRect(), $ = j.top, Z = j.bottom, _ = E.getBoundingClientRect(), I = _.top;
|
|
3070
|
+
$ = $ - I + N, Z = Z - I + N, $ < N ? E.scrollTop = $ : Z > E.offsetHeight && (E.scrollTop = Z - E.offsetHeight);
|
|
3071
3071
|
}
|
|
3072
3072
|
}, [o, a, E]);
|
|
3073
3073
|
var A = function() {
|
|
3074
|
-
var j = /* @__PURE__ */
|
|
3074
|
+
var j = /* @__PURE__ */ G.createElement("ul", ue({
|
|
3075
3075
|
ref: w,
|
|
3076
3076
|
id: r,
|
|
3077
3077
|
role: "listbox",
|
|
3078
3078
|
"aria-label": t
|
|
3079
|
-
}, C("list")), Object.values(n).reduce(function($,
|
|
3080
|
-
var _ =
|
|
3081
|
-
return [].concat(
|
|
3079
|
+
}, C("list")), Object.values(n).reduce(function($, Z) {
|
|
3080
|
+
var _ = Z.results, I = Z.queryInfo;
|
|
3081
|
+
return [].concat(Ge($), Ge(_.map(function(L, B) {
|
|
3082
3082
|
return P(L, I, $.length + B);
|
|
3083
3083
|
})));
|
|
3084
3084
|
}, []));
|
|
3085
3085
|
return S ? S(j) : j;
|
|
3086
|
-
}, P = function(j, $,
|
|
3087
|
-
var _ =
|
|
3088
|
-
return /* @__PURE__ */
|
|
3086
|
+
}, P = function(j, $, Z) {
|
|
3087
|
+
var _ = Z === o, I = $.childIndex, L = $.query, B = De.toArray(y)[I].props.renderSuggestion;
|
|
3088
|
+
return /* @__PURE__ */ G.createElement(xi, {
|
|
3089
3089
|
style: C("item"),
|
|
3090
3090
|
key: "".concat(I, "-").concat(V(j)),
|
|
3091
|
-
id: jn(r,
|
|
3091
|
+
id: jn(r, Z),
|
|
3092
3092
|
query: L,
|
|
3093
|
-
index:
|
|
3093
|
+
index: Z,
|
|
3094
3094
|
ignoreAccents: m,
|
|
3095
3095
|
renderSuggestion: B,
|
|
3096
3096
|
suggestion: j,
|
|
@@ -3099,12 +3099,12 @@ function Ln(e) {
|
|
|
3099
3099
|
return F(j, $);
|
|
3100
3100
|
},
|
|
3101
3101
|
onMouseEnter: function() {
|
|
3102
|
-
return Y(
|
|
3102
|
+
return Y(Z);
|
|
3103
3103
|
}
|
|
3104
3104
|
});
|
|
3105
3105
|
}, q = function() {
|
|
3106
3106
|
if (c)
|
|
3107
|
-
return /* @__PURE__ */
|
|
3107
|
+
return /* @__PURE__ */ G.createElement(Oi, {
|
|
3108
3108
|
style: C("loadingIndicator")
|
|
3109
3109
|
});
|
|
3110
3110
|
}, Y = function(j, $) {
|
|
@@ -3114,7 +3114,7 @@ function Ln(e) {
|
|
|
3114
3114
|
}, V = function(j) {
|
|
3115
3115
|
return typeof j == "string" ? j : j.id;
|
|
3116
3116
|
};
|
|
3117
|
-
return f ? /* @__PURE__ */
|
|
3117
|
+
return f ? /* @__PURE__ */ G.createElement("div", ue({}, ei({
|
|
3118
3118
|
position: s || "absolute",
|
|
3119
3119
|
left: u,
|
|
3120
3120
|
right: l,
|
|
@@ -3273,14 +3273,14 @@ var Pi = function(r) {
|
|
|
3273
3273
|
});
|
|
3274
3274
|
}), H(k(t), "renderControl", function() {
|
|
3275
3275
|
var o = t.props, s = o.singleLine, u = o.style, l = t.getInputProps();
|
|
3276
|
-
return /* @__PURE__ */
|
|
3276
|
+
return /* @__PURE__ */ G.createElement("div", u("control"), t.renderHighlighter(), s ? t.renderInput(l) : t.renderTextarea(l));
|
|
3277
3277
|
}), H(k(t), "renderInput", function(o) {
|
|
3278
|
-
return /* @__PURE__ */
|
|
3278
|
+
return /* @__PURE__ */ G.createElement("input", ue({
|
|
3279
3279
|
type: "text",
|
|
3280
3280
|
ref: t.setInputRef
|
|
3281
3281
|
}, o));
|
|
3282
3282
|
}), H(k(t), "renderTextarea", function(o) {
|
|
3283
|
-
return /* @__PURE__ */
|
|
3283
|
+
return /* @__PURE__ */ G.createElement("textarea", ue({
|
|
3284
3284
|
ref: t.setInputRef
|
|
3285
3285
|
}, o));
|
|
3286
3286
|
}), H(k(t), "setInputRef", function(o) {
|
|
@@ -3292,7 +3292,7 @@ var Pi = function(r) {
|
|
|
3292
3292
|
}), H(k(t), "renderSuggestionsOverlay", function() {
|
|
3293
3293
|
if (!mt(t.state.selectionStart))
|
|
3294
3294
|
return null;
|
|
3295
|
-
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */
|
|
3295
|
+
var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ G.createElement(wi, {
|
|
3296
3296
|
id: t.uuidSuggestionsOverlay,
|
|
3297
3297
|
style: t.props.style("suggestions"),
|
|
3298
3298
|
position: s,
|
|
@@ -3315,7 +3315,7 @@ var Pi = function(r) {
|
|
|
3315
3315
|
return t.props.suggestionsPortalHost ? /* @__PURE__ */ Er.createPortal(a, t.props.suggestionsPortalHost) : a;
|
|
3316
3316
|
}), H(k(t), "renderHighlighter", function() {
|
|
3317
3317
|
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;
|
|
3318
|
-
return /* @__PURE__ */
|
|
3318
|
+
return /* @__PURE__ */ G.createElement(Ti, {
|
|
3319
3319
|
containerRef: t.setHighlighterElement,
|
|
3320
3320
|
style: f("highlighter"),
|
|
3321
3321
|
value: c,
|
|
@@ -3420,7 +3420,7 @@ var Pi = function(r) {
|
|
|
3420
3420
|
}), H(k(t), "selectFocused", function() {
|
|
3421
3421
|
var o = t.state, s = o.suggestions, u = o.focusIndex, l = Object.values(s).reduce(function(c, f) {
|
|
3422
3422
|
var g = f.results, p = f.queryInfo;
|
|
3423
|
-
return [].concat(
|
|
3423
|
+
return [].concat(Ge(c), Ge(g.map(function(m) {
|
|
3424
3424
|
return {
|
|
3425
3425
|
result: m,
|
|
3426
3426
|
queryInfo: p
|
|
@@ -3493,7 +3493,7 @@ var Pi = function(r) {
|
|
|
3493
3493
|
var u = t.props.value || "", l = t.props.children, d = Ee(l), a = ie(u, d, s, "NULL");
|
|
3494
3494
|
if (a !== null) {
|
|
3495
3495
|
var c = pi(u.substring(0, a), d), f = o.substring(c, s);
|
|
3496
|
-
|
|
3496
|
+
G.Children.forEach(l, function(g, p) {
|
|
3497
3497
|
if (g) {
|
|
3498
3498
|
var m = Pi(g.props.trigger, t.props), v = f.match(m);
|
|
3499
3499
|
if (v) {
|
|
@@ -3550,7 +3550,7 @@ var Pi = function(r) {
|
|
|
3550
3550
|
t.executeOnChange(P, E, Y, q), T && T(u, l, b, D), t.clearSuggestions();
|
|
3551
3551
|
}), H(k(t), "isLoading", function() {
|
|
3552
3552
|
var o = !1;
|
|
3553
|
-
return
|
|
3553
|
+
return G.Children.forEach(t.props.children, function(s) {
|
|
3554
3554
|
o = o || s && s.props.isLoading;
|
|
3555
3555
|
}), o;
|
|
3556
3556
|
}), H(k(t), "isOpened", function() {
|
|
@@ -3587,7 +3587,7 @@ var Pi = function(r) {
|
|
|
3587
3587
|
}, {
|
|
3588
3588
|
key: "render",
|
|
3589
3589
|
value: function() {
|
|
3590
|
-
return /* @__PURE__ */
|
|
3590
|
+
return /* @__PURE__ */ G.createElement("div", ue({
|
|
3591
3591
|
ref: this.setContainerElement
|
|
3592
3592
|
}, this.props.style), this.renderControl(), this.renderSuggestionsOverlay());
|
|
3593
3593
|
}
|
|
@@ -3641,7 +3641,7 @@ var Pi = function(r) {
|
|
|
3641
3641
|
}
|
|
3642
3642
|
// Handle input element's change event
|
|
3643
3643
|
}]), i;
|
|
3644
|
-
}(
|
|
3644
|
+
}(G.Component);
|
|
3645
3645
|
H(jt, "propTypes", Bn);
|
|
3646
3646
|
H(jt, "defaultProps", {
|
|
3647
3647
|
ignoreAccents: !1,
|
|
@@ -3701,7 +3701,7 @@ var ct = function(r, i) {
|
|
|
3701
3701
|
className: t,
|
|
3702
3702
|
classNames: o
|
|
3703
3703
|
});
|
|
3704
|
-
return /* @__PURE__ */
|
|
3704
|
+
return /* @__PURE__ */ G.createElement("strong", s, i);
|
|
3705
3705
|
};
|
|
3706
3706
|
Pt.propTypes = {
|
|
3707
3707
|
/**
|
|
@@ -4133,7 +4133,7 @@ const Hi = {
|
|
|
4133
4133
|
i ? /* @__PURE__ */ h.jsx(Ui, {}) : /* @__PURE__ */ h.jsx(Ki, {})
|
|
4134
4134
|
] })
|
|
4135
4135
|
] }) : null;
|
|
4136
|
-
},
|
|
4136
|
+
}, Zi = 10, Gi = () => {
|
|
4137
4137
|
const e = Se(), r = ne(
|
|
4138
4138
|
(s) => s.shareId
|
|
4139
4139
|
), i = ne(
|
|
@@ -4145,7 +4145,7 @@ const Hi = {
|
|
|
4145
4145
|
clearTimeout(e.current), no(s).then((u) => {
|
|
4146
4146
|
console.log("useConversations", u), n(Fr(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
|
|
4147
4147
|
o(s);
|
|
4148
|
-
},
|
|
4148
|
+
}, Zi * 1e3);
|
|
4149
4149
|
}).catch((u) => console.error("error while fetching conversations list", u)).finally(() => {
|
|
4150
4150
|
n($t(ae.INITIALIZED));
|
|
4151
4151
|
});
|
|
@@ -4166,7 +4166,7 @@ const Hi = {
|
|
|
4166
4166
|
n(ae.INITIALIZED);
|
|
4167
4167
|
}));
|
|
4168
4168
|
}, [e, i, r]), { isLoading: i === ae.LOADING };
|
|
4169
|
-
}, Ji = () => (Qi(),
|
|
4169
|
+
}, Ji = () => (Qi(), Gi(), /* @__PURE__ */ h.jsxs("div", { children: [
|
|
4170
4170
|
/* @__PURE__ */ h.jsx(Xi, {}),
|
|
4171
4171
|
/* @__PURE__ */ h.jsx(uo, {})
|
|
4172
4172
|
] })), qn = ({ target: e, ...r }) => bt(
|
|
@@ -4239,7 +4239,7 @@ const Hi = {
|
|
|
4239
4239
|
] }),
|
|
4240
4240
|
/* @__PURE__ */ h.jsx(Ji, {}),
|
|
4241
4241
|
/* @__PURE__ */ h.jsx(rs, { shareDetails: r, onSelectionEnd: o }),
|
|
4242
|
-
t ? /* @__PURE__ */ h.jsx(
|
|
4242
|
+
t ? /* @__PURE__ */ h.jsx(Gr, { pos: t, onAddComment: s }) : null
|
|
4243
4243
|
] });
|
|
4244
4244
|
}, xs = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ h.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ h.jsx(
|
|
4245
4245
|
Br,
|
|
@@ -4293,7 +4293,7 @@ const Hi = {
|
|
|
4293
4293
|
setValue: f
|
|
4294
4294
|
} = yr({
|
|
4295
4295
|
defaultValues: e,
|
|
4296
|
-
resolver: Xn(
|
|
4296
|
+
resolver: Xn(Zn)
|
|
4297
4297
|
}), g = c(), p = async (E) => {
|
|
4298
4298
|
await ve.post(`coach/training/${e.train_doc_uid}`, E, {
|
|
4299
4299
|
method: "PUT"
|
|
@@ -4524,7 +4524,7 @@ const Hi = {
|
|
|
4524
4524
|
children: "View details"
|
|
4525
4525
|
}
|
|
4526
4526
|
),
|
|
4527
|
-
e.seeInAction && e.availability.includes(
|
|
4527
|
+
e.seeInAction && e.availability.includes(Gn[r]) && /* @__PURE__ */ h.jsx(
|
|
4528
4528
|
ye,
|
|
4529
4529
|
{
|
|
4530
4530
|
variant: "outline",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ac = Object.defineProperty;
|
|
2
2
|
var Ec = (n, e, t) => e in n ? Ac(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Ze = (n, e, t) => Ec(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import {
|
|
4
|
+
import { dK as $c, dL as kc, cV as Nl, db as xc, cZ as Sc, cW as ee, aA as Ic, aB as Ea, d1 as Cc, d4 as wl, d5 as Ll, dg as $a, d2 as Nc, ah as vt, ai as D, cX as ka, cR as wc } from "./CoachForm.js";
|
|
5
5
|
import { k as qt, j as Hs, g as nn, S as Lc, w as _c, x as Oc, d as _l, v as z, y as Ol, l as bc, z as Pc, A as Mc, B as Dc, C as Fc, c as bl, a as C, i as Ye, r as le, f as ke, D as Y } from "./_baseUniq.js";
|
|
6
6
|
import { j as js, m as x, d as Gc, f as Ne, g as Yt, i as zs, h as N, l as Xt, e as Uc } from "./_basePickBy.js";
|
|
7
7
|
import { c as ne } from "./clone.js";
|
package/dist/pie.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { aw as a, ao as
|
|
1
|
+
import { aw as a, ao as x, cM as j } from "./CoachForm.js";
|
|
2
2
|
function k(r, u) {
|
|
3
3
|
return u < r ? -1 : u > r ? 1 : u >= r ? 0 : NaN;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function q(r) {
|
|
6
6
|
return r;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
var r =
|
|
8
|
+
function B() {
|
|
9
|
+
var r = q, u = k, s = null, p = a(0), m = a(x), h = a(0);
|
|
10
10
|
function t(n) {
|
|
11
|
-
var e, l = (n = j(n)).length, f, w, y = 0, g = new Array(l), i = new Array(l), c = +p.apply(this, arguments), A = Math.min(
|
|
11
|
+
var e, l = (n = j(n)).length, f, w, y = 0, g = new Array(l), i = new Array(l), c = +p.apply(this, arguments), A = Math.min(x, Math.max(-x, m.apply(this, arguments) - c)), d, N = Math.min(Math.abs(A) / l, h.apply(this, arguments)), V = N * (A < 0 ? -1 : 1), o;
|
|
12
12
|
for (e = 0; e < l; ++e)
|
|
13
13
|
(o = i[g[e] = e] = +r(n[e], e, n)) > 0 && (y += o);
|
|
14
|
-
for (u != null ? g.sort(function(v,
|
|
15
|
-
return u(i[v], i[
|
|
16
|
-
}) : s != null && g.sort(function(v,
|
|
17
|
-
return s(n[v], n[
|
|
14
|
+
for (u != null ? g.sort(function(v, M) {
|
|
15
|
+
return u(i[v], i[M]);
|
|
16
|
+
}) : s != null && g.sort(function(v, M) {
|
|
17
|
+
return s(n[v], n[M]);
|
|
18
18
|
}), e = 0, w = y ? (A - l * V) / y : 0; e < l; ++e, c = d)
|
|
19
19
|
f = g[e], o = i[f], d = c + (o > 0 ? o * w : 0) + V, i[f] = {
|
|
20
20
|
data: n[f],
|
|
@@ -41,5 +41,5 @@ function q() {
|
|
|
41
41
|
}, t;
|
|
42
42
|
}
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
B as d
|
|
45
45
|
};
|
package/dist/shadcn/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { I as nu, b as ru, c as au, d as ou, e as vo, f as bo, R as su, T as iu, C as lu, g as yo, h as cu, S as uu, i as du, j as wo, k as fu, l as mu } from "../ToggleGroup.js";
|
|
2
2
|
import { A as hx, aa as gx, ab as vx, ak as bx, al as yx, af as wx, aj as xx, ah as Sx, ag as Cx, ad as Mx, ac as Ex, ai as Nx, ae as Px, a9 as Dx, B as _x, aP as Tx, aQ as Rx, aR as Ox, aT as Ix, aS as kx, x as Ax, z as jx, y as Lx, ax as $x, aw as Wx, Z as Fx, _ as zx, a1 as Bx, a2 as Yx, $ as Hx, a3 as Vx, a0 as Gx, a5 as Kx, a4 as Ux, D as qx, E as Xx, K as Zx, H as Qx, Q as Jx, J as eS, M as tS, U as nS, Y as rS, L as aS, O as oS, P as sS, V as iS, W as lS, X as cS, G as uS, az as dS, aB as fS, aC as mS, aD as pS, F as hS, aA as gS, a as vS, aG as bS, aI as yS, aH as wS, m as xS, n as SS, N as CS, aE as MS, aF as ES, am as NS, aq as PS, an as DS, as as _S, ar as TS, av as RS, au as OS, at as IS, ap as kS, ao as AS, r as jS, w as LS, t as $S, s as WS, p as FS, o as zS, v as BS, q as YS, aJ as HS, aO as VS, aM as GS, aN as KS, aK as US, aL as qS, aU as XS, aW as ZS, aX as QS, a6 as JS, a7 as eC, a8 as tC, aV as nC, ay as rC } from "../ToggleGroup.js";
|
|
3
|
-
import { a as N,
|
|
4
|
-
import { aw as oC, av as sC, au as iC, a8 as lC, a7 as cC, a9 as uC,
|
|
5
|
-
import { j as f,
|
|
3
|
+
import { a as N, X as ir, B as tt, $ as pu, a0 as hu, S as rn, a1 as gu, a2 as vu, c as bu, E as Or, o as yu, u as lr, n as wu, b as Ir, d as cr, e as kr, f as dn, P as St, l as xo, ac as Gt, g as Ct, ad as xu, I as Su, ae as Cu, af as Mu, ag as Eu, a4 as Mt, m as Nu, ah as So, ai as Pu, aj as Du, ak as _u, al as Tu, am as Ru, an as Ou, ao as Iu, ap as ku, aq as Au, ar as ju, J as Lu, _ as $u, K as Wu, L as dt, M as Fu, N as zu, Q as Bu, U as Yu, V as Hu, W as Vu, q as Gu, a5 as Ku, a6 as Uu } from "../Stack.js";
|
|
4
|
+
import { aw as oC, av as sC, au as iC, a8 as lC, a7 as cC, a9 as uC, G as dC, ay as fC, H as mC, aD as pC, aB as hC, aA as gC, ab as vC, aa as bC, aC as yC, az as wC, a3 as xC, ax as SC, as as CC, at as MC, T as EC, Z as NC } from "../Stack.js";
|
|
5
|
+
import { j as f, o as Co, C as wn, b as Mo, p as qu, d as Eo, q as Xu, M as No, a as Zu, S as Qu, r as Ju, s as ed, F as td } from "../index3.js";
|
|
6
6
|
import * as c from "react";
|
|
7
7
|
import D, { createContext as nd, useContext as rd, useCallback as ce, useRef as ht, useLayoutEffect as ad, useState as Ne, useEffect as fn, useMemo as Lt, useImperativeHandle as od, forwardRef as xn } from "react";
|
|
8
8
|
import * as Ar from "react-dom";
|