@altimateai/ui-components 0.0.23-beta.2 → 0.0.23-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-Ba6FLZh8.d.ts → Button-C4jhPGlR.d.ts} +1 -1
- package/dist/CoachForm.js +49 -49
- package/dist/Form.js +89 -89
- package/dist/{Tooltip.js → Stack.js} +349 -276
- package/dist/Switch.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/assets/icons/index.d.ts +2 -0
- package/dist/assets/icons/index.js +48 -47
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -12
- package/dist/index2.css +1 -1
- package/dist/index2.js +142 -141
- package/dist/lineage/index.js +83 -79
- package/dist/main.js +96 -96
- package/dist/redux-toolkit.modern.js +464 -534
- package/dist/shadcn/index.d.ts +33 -8
- package/dist/shadcn/index.js +5858 -2905
- package/dist/storybook/Badge.stories.tsx +7 -0
- package/dist/storybook/Calendar.stories.tsx +103 -0
- package/dist/storybook/Card.stories.tsx +2 -2
- package/dist/storybook/DateRange.stories.tsx +540 -0
- package/dist/storybook/Label.stories.tsx +2 -2
- package/dist/storybook/Typography.stories.tsx +26 -0
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { C as Yn } from "./Table.js";
|
|
2
|
-
import { P as un, T as dt, V as Wn, W as
|
|
3
|
-
import { g as Et, a as ln, A as ve, C as er, I as Ie,
|
|
4
|
-
import {
|
|
2
|
+
import { P as un, T as dt, V as Wn, W as Xn, X as Kn, Y as Zn, Z as Gn, _ as rt, $ as Qn, a0 as Jn } from "./CoachForm.js";
|
|
3
|
+
import { g as Et, a as ln, A as ve, C as er, I as Ie, u as cn, b as tr } from "./redux-toolkit.modern.js";
|
|
4
|
+
import { Q as ye, U as $e, X as He, Y as nr, Z as oe, _ as rr, $ as or, a0 as ir, a1 as Ft } from "./Stack.js";
|
|
5
|
+
import { j as h, A as dn, f as sr, g as ar, b as ur, C as lr, D as cr, E as dr, e as fr, d as pr } from "./index2.js";
|
|
5
6
|
import * as te from "react";
|
|
6
|
-
import G, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { ay as Mt, aC as yr, a7 as gn, al as Lt, $ as br } from "./Form.js";
|
|
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
|
+
import Er, { createPortal as yt } from "react-dom";
|
|
9
|
+
import { F as Mt, a as yr, A as gn, N as Lt, B as br } from "./Form.js";
|
|
10
10
|
import { S as Cr } from "./Switch.js";
|
|
11
11
|
import { useFormik as Sr } from "formik";
|
|
12
12
|
import './main.css';var bt = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(bt || {});
|
|
@@ -1056,7 +1056,7 @@ const kr = _e(null), Ur = _e({}), qr = _e({
|
|
|
1056
1056
|
transformPagePoint: (e) => e,
|
|
1057
1057
|
isStatic: !1,
|
|
1058
1058
|
reducedMotion: "never"
|
|
1059
|
-
}), zr = typeof window < "u", Vr = zr ?
|
|
1059
|
+
}), zr = typeof window < "u", Vr = zr ? gr : le;
|
|
1060
1060
|
function Cn(e) {
|
|
1061
1061
|
const r = Se(null);
|
|
1062
1062
|
return r.current === null && (r.current = e()), r.current;
|
|
@@ -1086,7 +1086,7 @@ function Wr({ children: e, isPresent: r }) {
|
|
|
1086
1086
|
top: 0,
|
|
1087
1087
|
left: 0
|
|
1088
1088
|
}), { nonce: o } = be(qr);
|
|
1089
|
-
return
|
|
1089
|
+
return hr(() => {
|
|
1090
1090
|
const { width: s, height: u, top: l, left: d } = t.current;
|
|
1091
1091
|
if (r || !n.current || !s || !u)
|
|
1092
1092
|
return;
|
|
@@ -1105,8 +1105,8 @@ function Wr({ children: e, isPresent: r }) {
|
|
|
1105
1105
|
};
|
|
1106
1106
|
}, [r]), h.jsx(Yr, { isPresent: r, childRef: n, sizeRef: t, children: te.cloneElement(e, { ref: n }) });
|
|
1107
1107
|
}
|
|
1108
|
-
const
|
|
1109
|
-
const u = Cn(
|
|
1108
|
+
const Xr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom: t, presenceAffectsLayout: o, mode: s }) => {
|
|
1109
|
+
const u = Cn(Kr), l = pn(), d = fe(
|
|
1110
1110
|
() => ({
|
|
1111
1111
|
id: l,
|
|
1112
1112
|
initial: r,
|
|
@@ -1134,14 +1134,14 @@ const Kr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom:
|
|
|
1134
1134
|
!i && !u.size && n && n();
|
|
1135
1135
|
}, [i]), s === "popLayout" && (e = h.jsx(Wr, { isPresent: i, children: e })), h.jsx(kr.Provider, { value: d, children: e });
|
|
1136
1136
|
};
|
|
1137
|
-
function
|
|
1137
|
+
function Kr() {
|
|
1138
1138
|
return /* @__PURE__ */ new Map();
|
|
1139
1139
|
}
|
|
1140
1140
|
const qe = (e) => e.key || "";
|
|
1141
1141
|
function Ht(e) {
|
|
1142
1142
|
const r = [];
|
|
1143
1143
|
return De.forEach(e, (i) => {
|
|
1144
|
-
|
|
1144
|
+
vr(i) && r.push(i);
|
|
1145
1145
|
}), r;
|
|
1146
1146
|
}
|
|
1147
1147
|
const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
|
|
@@ -1177,7 +1177,7 @@ const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1177
1177
|
D || (A = !1);
|
|
1178
1178
|
}), A && (E == null || E(), m(a.current), t && t());
|
|
1179
1179
|
};
|
|
1180
|
-
return h.jsx(
|
|
1180
|
+
return h.jsx(Xr, { isPresent: I, initial: !d.current || n ? void 0 : !1, custom: I ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: I ? void 0 : y, children: C }, S);
|
|
1181
1181
|
}) });
|
|
1182
1182
|
}, Gr = ({ pos: e, onAddComment: r }) => yt(
|
|
1183
1183
|
/* @__PURE__ */ h.jsx(Zr, { children: e && /* @__PURE__ */ h.jsx(
|
|
@@ -1359,7 +1359,7 @@ const Zr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExi
|
|
|
1359
1359
|
className: `altimate-highlighter ${r === e.conversation_group_id ? "active" : ""}`,
|
|
1360
1360
|
style: { top: s.top, height: s.bottom - s.top },
|
|
1361
1361
|
onClick: o,
|
|
1362
|
-
children: /* @__PURE__ */ h.jsx(
|
|
1362
|
+
children: /* @__PURE__ */ h.jsx(sr, {})
|
|
1363
1363
|
}
|
|
1364
1364
|
),
|
|
1365
1365
|
t.parentElement
|
|
@@ -1614,8 +1614,8 @@ var Ne = function(r) {
|
|
|
1614
1614
|
};
|
|
1615
1615
|
function An(e, r) {
|
|
1616
1616
|
var i = Object.assign({}, e);
|
|
1617
|
-
return
|
|
1618
|
-
|
|
1617
|
+
return Xe(e) && Xe(r) && Ne(r).forEach(function(n) {
|
|
1618
|
+
Xe(r[n]) ? n in e ? i[n] = An(e[n], r[n]) : Object.assign(i, Le({}, n, r[n])) : Object.assign(i, Le({}, n, r[n]));
|
|
1619
1619
|
}), i;
|
|
1620
1620
|
}
|
|
1621
1621
|
var gt = function(r) {
|
|
@@ -1630,7 +1630,7 @@ var gt = function(r) {
|
|
|
1630
1630
|
for (var t = 0; t < i.length; t++)
|
|
1631
1631
|
delete n[i[t]];
|
|
1632
1632
|
return n;
|
|
1633
|
-
},
|
|
1633
|
+
}, Xe = function(r) {
|
|
1634
1634
|
return r === Object(r) && !(r instanceof Date) && !Array.isArray(r);
|
|
1635
1635
|
}, Vo = function(r) {
|
|
1636
1636
|
return (r || []).filter(Boolean);
|
|
@@ -1657,7 +1657,7 @@ var gt = function(r) {
|
|
|
1657
1657
|
(i.indexOf(l) >= 0 || n.indexOf(kt(l)) >= 0) && (o[l] = r[l]);
|
|
1658
1658
|
}
|
|
1659
1659
|
return o;
|
|
1660
|
-
},
|
|
1660
|
+
}, Xo = function e(r, i) {
|
|
1661
1661
|
for (var n = gt.apply(void 0, [{}, zo(r, i)].concat(he(_n(Tn(r, i))))), t = Ne(n).filter(Dt), o = 0, s = t.length; o < s; o += 1) {
|
|
1662
1662
|
var u = t[o], l = e(n[u], i);
|
|
1663
1663
|
i.indexOf(u) >= 0 ? (delete n[u], n = gt({}, n, l)) : n[u] = l;
|
|
@@ -1685,10 +1685,10 @@ function qt(e) {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
return e;
|
|
1687
1687
|
}
|
|
1688
|
-
var
|
|
1688
|
+
var Ko = ["animationName"], In = function(r) {
|
|
1689
1689
|
var i = r.style, n = r.className;
|
|
1690
1690
|
return qt(qt({}, i ? {
|
|
1691
|
-
style: Wo(i,
|
|
1691
|
+
style: Wo(i, Ko)
|
|
1692
1692
|
} : {}), n ? {
|
|
1693
1693
|
className: n
|
|
1694
1694
|
} : {});
|
|
@@ -1753,14 +1753,14 @@ var Qo = function(r) {
|
|
|
1753
1753
|
function Dn(e) {
|
|
1754
1754
|
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) {
|
|
1755
1755
|
var g = On(c);
|
|
1756
|
-
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 ||
|
|
1756
|
+
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 || Xe(f), "Optional second parameter must be a plain object.");
|
|
1757
1757
|
var p = g.filter(Dt), m = g.filter(Yo), v = m.length > 0 ? function(S) {
|
|
1758
1758
|
return _n(Tn(S, m));
|
|
1759
1759
|
} : function(S) {
|
|
1760
1760
|
return [S];
|
|
1761
1761
|
}, E = function() {
|
|
1762
1762
|
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1763
|
-
return v(
|
|
1763
|
+
return v(Xo(I, p));
|
|
1764
1764
|
}, C = Jo(o, m, p);
|
|
1765
1765
|
return Dn(Ae(Ae(Ae({}, (r || f) && {
|
|
1766
1766
|
style: gt.apply(void 0, [{}].concat(he(E(f)), he(E(r))))
|
|
@@ -1968,34 +1968,34 @@ function ni() {
|
|
|
1968
1968
|
function z(R) {
|
|
1969
1969
|
return I(R) === g;
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
function X(R) {
|
|
1972
1972
|
return I(R) === i;
|
|
1973
1973
|
}
|
|
1974
1974
|
function ee(R) {
|
|
1975
1975
|
return I(R) === o;
|
|
1976
1976
|
}
|
|
1977
|
-
function
|
|
1977
|
+
function K(R) {
|
|
1978
1978
|
return I(R) === t;
|
|
1979
1979
|
}
|
|
1980
1980
|
function se(R) {
|
|
1981
1981
|
return I(R) === c;
|
|
1982
1982
|
}
|
|
1983
|
-
J.AsyncMode = y, J.ConcurrentMode = A, J.ContextConsumer = D, J.ContextProvider = b, J.Element = w, J.ForwardRef = T, 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 = x, J.isContextProvider = L, J.isElement = B, J.isForwardRef = M, J.isFragment = W, J.isLazy = U, J.isMemo = z, J.isPortal =
|
|
1983
|
+
J.AsyncMode = y, J.ConcurrentMode = A, J.ContextConsumer = D, J.ContextProvider = b, J.Element = w, J.ForwardRef = T, 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 = x, J.isContextProvider = L, J.isElement = B, J.isForwardRef = M, J.isFragment = W, J.isLazy = U, J.isMemo = z, J.isPortal = X, J.isProfiler = ee, J.isStrictMode = K, J.isSuspense = se, J.isValidElementType = S, J.typeOf = I;
|
|
1984
1984
|
}()), J;
|
|
1985
1985
|
}
|
|
1986
|
-
var
|
|
1986
|
+
var Xt;
|
|
1987
1987
|
function Rn() {
|
|
1988
|
-
return
|
|
1988
|
+
return Xt || (Xt = 1, process.env.NODE_ENV === "production" ? ze.exports = ti() : ze.exports = ni()), ze.exports;
|
|
1989
1989
|
}
|
|
1990
1990
|
/*
|
|
1991
1991
|
object-assign
|
|
1992
1992
|
(c) Sindre Sorhus
|
|
1993
1993
|
@license MIT
|
|
1994
1994
|
*/
|
|
1995
|
-
var ot,
|
|
1995
|
+
var ot, Kt;
|
|
1996
1996
|
function ri() {
|
|
1997
|
-
if (
|
|
1998
|
-
|
|
1997
|
+
if (Kt) return ot;
|
|
1998
|
+
Kt = 1;
|
|
1999
1999
|
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
2000
2000
|
function n(o) {
|
|
2001
2001
|
if (o == null)
|
|
@@ -2153,33 +2153,33 @@ function ii() {
|
|
|
2153
2153
|
function v(_) {
|
|
2154
2154
|
if (process.env.NODE_ENV !== "production")
|
|
2155
2155
|
var x = {}, L = 0;
|
|
2156
|
-
function B(W, U, z,
|
|
2157
|
-
if (
|
|
2156
|
+
function B(W, U, z, X, ee, K, se) {
|
|
2157
|
+
if (X = X || f, K = K || z, se !== i) {
|
|
2158
2158
|
if (l) {
|
|
2159
2159
|
var R = new Error(
|
|
2160
2160
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2161
2161
|
);
|
|
2162
2162
|
throw R.name = "Invariant Violation", R;
|
|
2163
2163
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2164
|
-
var pe =
|
|
2164
|
+
var pe = X + ":" + z;
|
|
2165
2165
|
!x[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2166
2166
|
L < 3 && (o(
|
|
2167
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
2167
|
+
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + X + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2168
2168
|
), x[pe] = !0, L++);
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
|
-
return U[z] == null ? W ? U[z] === null ? new m("The " + ee + " `" +
|
|
2171
|
+
return U[z] == null ? W ? U[z] === null ? new m("The " + ee + " `" + K + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new m("The " + ee + " `" + K + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : _(U, z, X, ee, K);
|
|
2172
2172
|
}
|
|
2173
2173
|
var M = B.bind(null, !1);
|
|
2174
2174
|
return M.isRequired = B.bind(null, !0), M;
|
|
2175
2175
|
}
|
|
2176
2176
|
function E(_) {
|
|
2177
2177
|
function x(L, B, M, W, U, z) {
|
|
2178
|
-
var
|
|
2178
|
+
var X = L[B], ee = N(X);
|
|
2179
2179
|
if (ee !== _) {
|
|
2180
|
-
var
|
|
2180
|
+
var K = j(X);
|
|
2181
2181
|
return new m(
|
|
2182
|
-
"Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2182
|
+
"Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected ") + ("`" + _ + "`."),
|
|
2183
2183
|
{ expectedType: _ }
|
|
2184
2184
|
);
|
|
2185
2185
|
}
|
|
@@ -2196,13 +2196,13 @@ function ii() {
|
|
|
2196
2196
|
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
|
|
2197
2197
|
var z = L[B];
|
|
2198
2198
|
if (!Array.isArray(z)) {
|
|
2199
|
-
var
|
|
2200
|
-
return new m("Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2199
|
+
var X = N(z);
|
|
2200
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected an array."));
|
|
2201
2201
|
}
|
|
2202
2202
|
for (var ee = 0; ee < z.length; ee++) {
|
|
2203
|
-
var
|
|
2204
|
-
if (
|
|
2205
|
-
return
|
|
2203
|
+
var K = _(z, ee, M, W, U + "[" + ee + "]", i);
|
|
2204
|
+
if (K instanceof Error)
|
|
2205
|
+
return K;
|
|
2206
2206
|
}
|
|
2207
2207
|
return null;
|
|
2208
2208
|
}
|
|
@@ -2233,8 +2233,8 @@ function ii() {
|
|
|
2233
2233
|
function A(_) {
|
|
2234
2234
|
function x(L, B, M, W, U) {
|
|
2235
2235
|
if (!(L[B] instanceof _)) {
|
|
2236
|
-
var z = _.name || f,
|
|
2237
|
-
return new m("Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2236
|
+
var z = _.name || f, X = Z(L[B]);
|
|
2237
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected ") + ("instance of `" + z + "`."));
|
|
2238
2238
|
}
|
|
2239
2239
|
return null;
|
|
2240
2240
|
}
|
|
@@ -2246,8 +2246,8 @@ function ii() {
|
|
|
2246
2246
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2247
2247
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2248
2248
|
function x(L, B, M, W, U) {
|
|
2249
|
-
for (var z = L[B],
|
|
2250
|
-
if (p(z, _[
|
|
2249
|
+
for (var z = L[B], X = 0; X < _.length; X++)
|
|
2250
|
+
if (p(z, _[X]))
|
|
2251
2251
|
return null;
|
|
2252
2252
|
var ee = JSON.stringify(_, function(se, R) {
|
|
2253
2253
|
var pe = j(R);
|
|
@@ -2261,14 +2261,14 @@ function ii() {
|
|
|
2261
2261
|
function x(L, B, M, W, U) {
|
|
2262
2262
|
if (typeof _ != "function")
|
|
2263
2263
|
return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
|
|
2264
|
-
var z = L[B],
|
|
2265
|
-
if (
|
|
2266
|
-
return new m("Invalid " + W + " `" + U + "` of type " + ("`" +
|
|
2264
|
+
var z = L[B], X = N(z);
|
|
2265
|
+
if (X !== "object")
|
|
2266
|
+
return new m("Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected an object."));
|
|
2267
2267
|
for (var ee in z)
|
|
2268
2268
|
if (n(z, ee)) {
|
|
2269
|
-
var
|
|
2270
|
-
if (
|
|
2271
|
-
return
|
|
2269
|
+
var K = _(z, ee, M, W, U + "." + ee, i);
|
|
2270
|
+
if (K instanceof Error)
|
|
2271
|
+
return K;
|
|
2272
2272
|
}
|
|
2273
2273
|
return null;
|
|
2274
2274
|
}
|
|
@@ -2284,15 +2284,15 @@ function ii() {
|
|
|
2284
2284
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(L) + " at index " + x + "."
|
|
2285
2285
|
), s;
|
|
2286
2286
|
}
|
|
2287
|
-
function B(M, W, U, z,
|
|
2288
|
-
for (var ee = [],
|
|
2289
|
-
var se = _[
|
|
2287
|
+
function B(M, W, U, z, X) {
|
|
2288
|
+
for (var ee = [], K = 0; K < _.length; K++) {
|
|
2289
|
+
var se = _[K], R = se(M, W, U, z, X, i);
|
|
2290
2290
|
if (R == null)
|
|
2291
2291
|
return null;
|
|
2292
2292
|
R.data && n(R.data, "expectedType") && ee.push(R.data.expectedType);
|
|
2293
2293
|
}
|
|
2294
2294
|
var pe = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
|
|
2295
|
-
return new m("Invalid " + z + " `" +
|
|
2295
|
+
return new m("Invalid " + z + " `" + X + "` supplied to " + ("`" + U + "`" + pe + "."));
|
|
2296
2296
|
}
|
|
2297
2297
|
return v(B);
|
|
2298
2298
|
}
|
|
@@ -2309,14 +2309,14 @@ function ii() {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
function q(_) {
|
|
2311
2311
|
function x(L, B, M, W, U) {
|
|
2312
|
-
var z = L[B],
|
|
2313
|
-
if (
|
|
2314
|
-
return new m("Invalid " + W + " `" + U + "` of type `" +
|
|
2312
|
+
var z = L[B], X = N(z);
|
|
2313
|
+
if (X !== "object")
|
|
2314
|
+
return new m("Invalid " + W + " `" + U + "` of type `" + X + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
2315
2315
|
for (var ee in _) {
|
|
2316
|
-
var
|
|
2317
|
-
if (typeof
|
|
2318
|
-
return P(M, W, U, ee, j(
|
|
2319
|
-
var se =
|
|
2316
|
+
var K = _[ee];
|
|
2317
|
+
if (typeof K != "function")
|
|
2318
|
+
return P(M, W, U, ee, j(K));
|
|
2319
|
+
var se = K(z, ee, M, W, U + "." + ee, i);
|
|
2320
2320
|
if (se)
|
|
2321
2321
|
return se;
|
|
2322
2322
|
}
|
|
@@ -2326,20 +2326,20 @@ function ii() {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
function Y(_) {
|
|
2328
2328
|
function x(L, B, M, W, U) {
|
|
2329
|
-
var z = L[B],
|
|
2330
|
-
if (
|
|
2331
|
-
return new m("Invalid " + W + " `" + U + "` of type `" +
|
|
2329
|
+
var z = L[B], X = N(z);
|
|
2330
|
+
if (X !== "object")
|
|
2331
|
+
return new m("Invalid " + W + " `" + U + "` of type `" + X + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
2332
2332
|
var ee = r({}, L[B], _);
|
|
2333
|
-
for (var
|
|
2334
|
-
var se = _[
|
|
2335
|
-
if (n(_,
|
|
2336
|
-
return P(M, W, U,
|
|
2333
|
+
for (var K in ee) {
|
|
2334
|
+
var se = _[K];
|
|
2335
|
+
if (n(_, K) && typeof se != "function")
|
|
2336
|
+
return P(M, W, U, K, j(se));
|
|
2337
2337
|
if (!se)
|
|
2338
2338
|
return new m(
|
|
2339
|
-
"Invalid " + W + " `" + U + "` key `" +
|
|
2339
|
+
"Invalid " + W + " `" + U + "` key `" + K + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[B], null, " ") + `
|
|
2340
2340
|
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
2341
2341
|
);
|
|
2342
|
-
var R = se(z,
|
|
2342
|
+
var R = se(z, K, M, W, U + "." + K, i);
|
|
2343
2343
|
if (R)
|
|
2344
2344
|
return R;
|
|
2345
2345
|
}
|
|
@@ -2474,7 +2474,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2474
2474
|
ht.exports = si()();
|
|
2475
2475
|
var li = ht.exports;
|
|
2476
2476
|
const O = /* @__PURE__ */ Et(li);
|
|
2477
|
-
var
|
|
2477
|
+
var Ke = function(r) {
|
|
2478
2478
|
return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
2479
2479
|
}, ge = {
|
|
2480
2480
|
id: "__id__",
|
|
@@ -2568,8 +2568,8 @@ var Xe = function(r) {
|
|
|
2568
2568
|
var n = Pe(r, i), t = n[n.length - 1];
|
|
2569
2569
|
return t ? t.plainTextIndex + t.display.length : 0;
|
|
2570
2570
|
}, gi = function(r) {
|
|
2571
|
-
var i =
|
|
2572
|
-
return new RegExp(i.replace(ge.display, "([^".concat(
|
|
2571
|
+
var i = Ke(r), n = r[r.indexOf(ge.display) + ge.display.length], t = r[r.indexOf(ge.id) + ge.id.length];
|
|
2572
|
+
return new RegExp(i.replace(ge.display, "([^".concat(Ke(n || ""), "]+?)")).replace(ge.id, "([^".concat(Ke(t || ""), "]+?)")));
|
|
2573
2573
|
}, Ee = function(r) {
|
|
2574
2574
|
return De.toArray(r).map(function(i) {
|
|
2575
2575
|
var n = i.props, t = n.markup, o = n.regex, s = n.displayTransform;
|
|
@@ -3202,7 +3202,7 @@ var Pi = function(r) {
|
|
|
3202
3202
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3203
3203
|
if (r instanceof RegExp)
|
|
3204
3204
|
return r;
|
|
3205
|
-
var n = i.allowSpaceInQuery, t =
|
|
3205
|
+
var n = i.allowSpaceInQuery, t = Ke(r);
|
|
3206
3206
|
return new RegExp("(?:^|\\s)(".concat(t, "([^").concat(n ? "" : "\\s").concat(t, "]*))$"));
|
|
3207
3207
|
}, Fi = function(r, i) {
|
|
3208
3208
|
return r instanceof Array ? function(n, t) {
|
|
@@ -3313,7 +3313,7 @@ var Pi = function(r) {
|
|
|
3313
3313
|
ignoreAccents: t.props.ignoreAccents,
|
|
3314
3314
|
a11ySuggestionsListLabel: t.props.a11ySuggestionsListLabel
|
|
3315
3315
|
}, t.props.children);
|
|
3316
|
-
return t.props.suggestionsPortalHost ? /* @__PURE__ */
|
|
3316
|
+
return t.props.suggestionsPortalHost ? /* @__PURE__ */ Er.createPortal(a, t.props.suggestionsPortalHost) : a;
|
|
3317
3317
|
}), H(k(t), "renderHighlighter", function() {
|
|
3318
3318
|
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;
|
|
3319
3319
|
return /* @__PURE__ */ G.createElement(Ti, {
|
|
@@ -3839,7 +3839,7 @@ const Hi = {
|
|
|
3839
3839
|
onEnterKeypress: s
|
|
3840
3840
|
}
|
|
3841
3841
|
),
|
|
3842
|
-
/* @__PURE__ */ h.jsx(un, { loading: i, color: "primary", children: /* @__PURE__ */ h.jsx(
|
|
3842
|
+
/* @__PURE__ */ h.jsx(un, { loading: i, color: "primary", children: /* @__PURE__ */ h.jsx(ar, {}) })
|
|
3843
3843
|
] }), Hn = ({
|
|
3844
3844
|
meta: { highlight: e, filePath: r, field: i, column: n }
|
|
3845
3845
|
}) => {
|
|
@@ -3923,7 +3923,7 @@ const Hi = {
|
|
|
3923
3923
|
className: me.resolveButton,
|
|
3924
3924
|
title: "Resolve conversation",
|
|
3925
3925
|
onClick: s,
|
|
3926
|
-
children: /* @__PURE__ */ h.jsx(
|
|
3926
|
+
children: /* @__PURE__ */ h.jsx(ur, {})
|
|
3927
3927
|
}
|
|
3928
3928
|
) : null;
|
|
3929
3929
|
}, kn = ({
|
|
@@ -3932,7 +3932,7 @@ const Hi = {
|
|
|
3932
3932
|
showResolveButton: i,
|
|
3933
3933
|
conversationGroupId: n,
|
|
3934
3934
|
shareId: t
|
|
3935
|
-
}) => /* @__PURE__ */ h.jsx(
|
|
3935
|
+
}) => /* @__PURE__ */ h.jsx(nr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "center", justify: "between", className: "mb-0", children: [
|
|
3936
3936
|
/* @__PURE__ */ h.jsxs(oe, { align: "center", children: [
|
|
3937
3937
|
/* @__PURE__ */ h.jsx(Sn, { user: e }),
|
|
3938
3938
|
/* @__PURE__ */ h.jsxs("h4", { children: [
|
|
@@ -4081,7 +4081,7 @@ const Hi = {
|
|
|
4081
4081
|
onSelect: n
|
|
4082
4082
|
}
|
|
4083
4083
|
) });
|
|
4084
|
-
}, Be = () => be(Un),
|
|
4084
|
+
}, Be = () => be(Un), Xi = () => {
|
|
4085
4085
|
const e = ne((c) => c.source), r = ne(
|
|
4086
4086
|
(c) => c.conversations
|
|
4087
4087
|
), i = ne(
|
|
@@ -4113,7 +4113,7 @@ const Hi = {
|
|
|
4113
4113
|
},
|
|
4114
4114
|
c.conversation_group_id
|
|
4115
4115
|
)) });
|
|
4116
|
-
},
|
|
4116
|
+
}, Ki = () => {
|
|
4117
4117
|
const e = ne((s) => s.isRightPanelOpen), r = ne(
|
|
4118
4118
|
(s) => s.selectedConversationId
|
|
4119
4119
|
), i = ne((s) => s.newConversation), n = ce(), t = () => {
|
|
@@ -4126,12 +4126,12 @@ const Hi = {
|
|
|
4126
4126
|
variant: "ghost",
|
|
4127
4127
|
onClick: t,
|
|
4128
4128
|
className: me.conversationRightPanelCloseButton,
|
|
4129
|
-
children: /* @__PURE__ */ h.jsx(
|
|
4129
|
+
children: /* @__PURE__ */ h.jsx(lr, {})
|
|
4130
4130
|
}
|
|
4131
4131
|
),
|
|
4132
4132
|
/* @__PURE__ */ h.jsxs("div", { className: me.conversationRightPanel, children: [
|
|
4133
4133
|
/* @__PURE__ */ h.jsx("h3", { children: "Comments" }),
|
|
4134
|
-
i ? /* @__PURE__ */ h.jsx(Ui, {}) : /* @__PURE__ */ h.jsx(
|
|
4134
|
+
i ? /* @__PURE__ */ h.jsx(Ui, {}) : /* @__PURE__ */ h.jsx(Xi, {})
|
|
4135
4135
|
] })
|
|
4136
4136
|
] }) : null;
|
|
4137
4137
|
}, Zi = 10, Gi = () => {
|
|
@@ -4168,7 +4168,7 @@ const Hi = {
|
|
|
4168
4168
|
}));
|
|
4169
4169
|
}, [e, i, r]), { isLoading: i === ae.LOADING };
|
|
4170
4170
|
}, Ji = () => (Qi(), Gi(), /* @__PURE__ */ h.jsxs("div", { children: [
|
|
4171
|
-
/* @__PURE__ */ h.jsx(
|
|
4171
|
+
/* @__PURE__ */ h.jsx(Ki, {}),
|
|
4172
4172
|
/* @__PURE__ */ h.jsx(uo, {})
|
|
4173
4173
|
] })), qn = ({ target: e, ...r }) => yt(
|
|
4174
4174
|
/* @__PURE__ */ h.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ h.jsx(dn, {}) }),
|
|
@@ -4227,7 +4227,7 @@ const Hi = {
|
|
|
4227
4227
|
}, ns = () => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
4228
4228
|
/* @__PURE__ */ h.jsx(ts, {}),
|
|
4229
4229
|
/* @__PURE__ */ h.jsx(es, {})
|
|
4230
|
-
] }), rs =
|
|
4230
|
+
] }), rs = mr(() => import("./DbtDocsRenderer.js")), os = () => {
|
|
4231
4231
|
const { loading: e, shareDetails: r } = io(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = so(), s = (u) => {
|
|
4232
4232
|
u.stopPropagation();
|
|
4233
4233
|
const l = n();
|
|
@@ -4288,7 +4288,7 @@ const Hi = {
|
|
|
4288
4288
|
}, us = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
|
|
4289
4289
|
const [t, o] = re(!1), { errors: s, isValid: u, isSubmitting: l, handleSubmit: d, values: a, handleChange: c, setSubmitting: f } = Sr({
|
|
4290
4290
|
initialValues: e,
|
|
4291
|
-
validationSchema: Wn(
|
|
4291
|
+
validationSchema: Wn(Xn),
|
|
4292
4292
|
onSubmit: async (A) => {
|
|
4293
4293
|
await ve.post(`coach/training/${e.train_doc_uid}`, A, {
|
|
4294
4294
|
method: "PUT"
|
|
@@ -4311,11 +4311,11 @@ const Hi = {
|
|
|
4311
4311
|
E(A), i(e.train_doc_uid), o(!0);
|
|
4312
4312
|
}, y = n === e.train_doc_uid;
|
|
4313
4313
|
return /* @__PURE__ */ h.jsx($e, { className: y ? "al-border-blue-500" : "", children: /* @__PURE__ */ h.jsxs("form", { onSubmit: d, children: [
|
|
4314
|
-
/* @__PURE__ */ h.jsx(
|
|
4314
|
+
/* @__PURE__ */ h.jsx(rr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "start", children: [
|
|
4315
4315
|
/* @__PURE__ */ h.jsxs("div", { style: { flex: 1 }, children: [
|
|
4316
4316
|
/* @__PURE__ */ h.jsx("div", { children: t ? /* @__PURE__ */ h.jsxs(Mt, { children: [
|
|
4317
4317
|
/* @__PURE__ */ h.jsx(
|
|
4318
|
-
|
|
4318
|
+
or,
|
|
4319
4319
|
{
|
|
4320
4320
|
name: "content",
|
|
4321
4321
|
value: a.content,
|
|
@@ -4349,7 +4349,7 @@ const Hi = {
|
|
|
4349
4349
|
] }),
|
|
4350
4350
|
/* @__PURE__ */ h.jsxs(oe, { className: "align-items-top gap-0", children: [
|
|
4351
4351
|
/* @__PURE__ */ h.jsx(Mt, { children: /* @__PURE__ */ h.jsx(
|
|
4352
|
-
|
|
4352
|
+
ir,
|
|
4353
4353
|
{
|
|
4354
4354
|
title: a.isActive ? "Disable this learning" : "Enable this learning",
|
|
4355
4355
|
children: /* @__PURE__ */ h.jsx("span", { children: /* @__PURE__ */ h.jsx(
|
|
@@ -4367,7 +4367,7 @@ const Hi = {
|
|
|
4367
4367
|
}
|
|
4368
4368
|
) }),
|
|
4369
4369
|
/* @__PURE__ */ h.jsx(
|
|
4370
|
-
|
|
4370
|
+
Kn,
|
|
4371
4371
|
{
|
|
4372
4372
|
title: "Delete the task",
|
|
4373
4373
|
description: "Are you sure to delete this task?",
|
|
@@ -4382,7 +4382,7 @@ const Hi = {
|
|
|
4382
4382
|
className: "pt-1 pb-0",
|
|
4383
4383
|
disabled: p,
|
|
4384
4384
|
onClick: E,
|
|
4385
|
-
children: /* @__PURE__ */ h.jsx(
|
|
4385
|
+
children: /* @__PURE__ */ h.jsx(cr, {})
|
|
4386
4386
|
}
|
|
4387
4387
|
)
|
|
4388
4388
|
}
|
|
@@ -4390,8 +4390,8 @@ const Hi = {
|
|
|
4390
4390
|
t ? /* @__PURE__ */ h.jsxs(oe, { className: "align-items-baseline", children: [
|
|
4391
4391
|
/* @__PURE__ */ h.jsx(ye, { onClick: S, variant: "outline", size: "sm", children: "Cancel" }),
|
|
4392
4392
|
/* @__PURE__ */ h.jsx(ye, { size: "sm", disabled: l || !u, type: "submit", children: "Save" })
|
|
4393
|
-
] }) : /* @__PURE__ */ h.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ h.jsx(
|
|
4394
|
-
/* @__PURE__ */ h.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ h.jsx(
|
|
4393
|
+
] }) : /* @__PURE__ */ h.jsx(Ie, { title: "Edit this learning", onClick: I, children: /* @__PURE__ */ h.jsx(dr, {}) }),
|
|
4394
|
+
/* @__PURE__ */ h.jsx(Ie, { onClick: () => i(e.train_doc_uid), children: y ? /* @__PURE__ */ h.jsx(fr, {}) : /* @__PURE__ */ h.jsx(pr, {}) })
|
|
4395
4395
|
] })
|
|
4396
4396
|
] }) }),
|
|
4397
4397
|
/* @__PURE__ */ h.jsx(Yn, { isOpen: y, children: /* @__PURE__ */ h.jsxs(He, { children: [
|