@devtron-labs/devtron-fe-common-lib 1.6.13 → 1.7.0-beta-1
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/@code-editor-DKia2h7P.js +23493 -0
- package/dist/{@common-rjsf-BD3cf25o.js → @common-rjsf-DN4pFCn5.js} +36 -36
- package/dist/{@framer-motion-BFqoU0Z7.js → @framer-motion-C88ROIS4.js} +70 -70
- package/dist/@monaco-editor-CVagbUeH.js +138960 -0
- package/dist/{@react-dates-Dx7AjKDr.js → @react-dates-Ct1VA7V6.js} +14 -14
- package/dist/{@react-select-BfYm_1lF.js → @react-select-qU4oRypC.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BNk-_Tvs.js → @react-virtualized-sticky-tree-DmvoaDNw.js} +1 -1
- package/dist/@vendor-C6rSXA7p.js +22734 -0
- package/dist/Common/CodeEditor/CodeEditor.d.ts +3 -13
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +47 -3
- package/dist/Common/CodeEditor/index.d.ts +1 -1
- package/dist/Common/CodeEditor/types.d.ts +76 -83
- package/dist/Common/CodeEditor/utils.d.ts +3 -13
- package/dist/Common/CodeMirror/CodeEditor.d.ts +14 -0
- package/dist/Common/CodeMirror/CodeEditor.reducer.d.ts +4 -0
- package/dist/Common/CodeMirror/index.d.ts +2 -0
- package/dist/Common/CodeMirror/types.d.ts +107 -0
- package/dist/Common/CodeMirror/utils.d.ts +13 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -0
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@monaco-editor.css +1 -0
- package/dist/assets/codicon.ecfbfe4b.ttf +0 -0
- package/dist/assets/ic-environment.d241eccb.svg +20 -0
- package/dist/assets/{ic-github.bb1f1753.svg → ic-github.9d82ed09.svg} +16 -0
- package/dist/assets/ic-help-filled.b7ae284e.svg +20 -0
- package/dist/index.js +667 -664
- package/package.json +7 -1
- package/dist/@code-editor-BR2fcwFa.js +0 -42307
- package/dist/@vendor-CWh7bjwl.js +0 -42519
- package/dist/assets/ic-environment.e639b8f3.svg +0 -4
- package/dist/assets/ic-help-filled.4468cdf1.svg +0 -4
- package/dist/assets/ic-match-case.702186fe.svg +0 -3
- package/dist/assets/ic-match-word.991dea5a.svg +0 -3
- package/dist/assets/ic-replace-all-text.7ebbab01.svg +0 -3
- package/dist/assets/ic-replace-text.5de817d2.svg +0 -3
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.components.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.constants.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.context.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.theme.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditorRenderer.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/findAndReplace.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/index.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/readOnlyTooltip.d.ts +0 -0
- /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/yamlParseLinter.d.ts +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import * as
|
3
|
-
import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as
|
1
|
+
import { g as ct, l as m, o as I, p as Yr, q as we, r as T, t as at, v as zt, w as ae, x as Xe, y as J, z as kr, B as Qn, C as Xr, E as ti, F as ei, G as ri, H as ni, I as ii, K as Wr, L as ai, M as oi, N as si, O as ui, P as li, S as fi, T as ci, U as yt, V as k, W as pe, X as Zr, Y as vi, Z as di, $ as W, a0 as $, a1 as pi, a2 as he, a3 as Dt, a4 as hi, a5 as mi, a6 as $r, a7 as Mt, a8 as O, a9 as me, aa as gi, ab as oe, ac as yi } from "./@vendor-C6rSXA7p.js";
|
2
|
+
import * as K from "react";
|
3
|
+
import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
|
4
4
|
var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {
|
5
5
|
return {
|
6
6
|
isEnabled: function(e) {
|
@@ -50,7 +50,7 @@ function wi(t, e, r) {
|
|
50
50
|
Le !== "production" && r && i.strict && ct(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
|
51
51
|
for (var s = 0; s < Ai; s++) {
|
52
52
|
var o = Qr[s], a = Ot[o], u = a.isEnabled, l = a.Component;
|
53
|
-
u(t) && l && n.push(
|
53
|
+
u(t) && l && n.push(K.createElement(l, m({ key: o }, t, { visualElement: e })));
|
54
54
|
}
|
55
55
|
return n;
|
56
56
|
}
|
@@ -64,7 +64,7 @@ var Re = bt({
|
|
64
64
|
function Ei() {
|
65
65
|
return F(te).visualElement;
|
66
66
|
}
|
67
|
-
var Bt = bt(null), Vt = typeof document < "u", Wt = Vt ? Pi :
|
67
|
+
var Bt = bt(null), Vt = typeof document < "u", Wt = Vt ? Pi : G, ye = { current: null }, tn = !1;
|
68
68
|
function Li() {
|
69
69
|
if (tn = !0, !!Vt)
|
70
70
|
if (window.matchMedia) {
|
@@ -97,7 +97,7 @@ function Mi(t, e, r, n) {
|
|
97
97
|
var l = u.current;
|
98
98
|
return Wt(function() {
|
99
99
|
l?.syncRender();
|
100
|
-
}),
|
100
|
+
}), G(function() {
|
101
101
|
var f;
|
102
102
|
(f = l?.animationState) === null || f === void 0 || f.animateChanges();
|
103
103
|
}), Wt(function() {
|
@@ -242,23 +242,23 @@ function zi(t) {
|
|
242
242
|
var e = t.preloadedFeatures, r = t.createVisualElement, n = t.projectionNodeConstructor, i = t.useRender, s = t.useVisualState, o = t.Component;
|
243
243
|
e && Ci(e);
|
244
244
|
function a(u, l) {
|
245
|
-
var f =
|
245
|
+
var f = Ki(u);
|
246
246
|
u = m(m({}, u), { layoutId: f });
|
247
247
|
var v = F(Re), c = null, d = Bi(u), p = v.isStatic ? void 0 : Ui(), h = s(u, v.isStatic);
|
248
|
-
return !v.isStatic && Vt && (d.visualElement = Mi(o, h, m(m({}, v), u), r), Ni(p, u, d.visualElement, n || Ot.projectionNodeConstructor), c = wi(u, d.visualElement, e)),
|
248
|
+
return !v.isStatic && Vt && (d.visualElement = Mi(o, h, m(m({}, v), u), r), Ni(p, u, d.visualElement, n || Ot.projectionNodeConstructor), c = wi(u, d.visualElement, e)), K.createElement(
|
249
249
|
Hi,
|
250
250
|
{ visualElement: d.visualElement, props: m(m({}, v), u) },
|
251
251
|
c,
|
252
|
-
|
252
|
+
K.createElement(te.Provider, { value: d }, i(o, u, p, Ii(h, d.visualElement, l), h, v.isStatic, d.visualElement))
|
253
253
|
);
|
254
254
|
}
|
255
255
|
return bi(a);
|
256
256
|
}
|
257
|
-
function
|
257
|
+
function Ki(t) {
|
258
258
|
var e, r = t.layoutId, n = (e = F(De)) === null || e === void 0 ? void 0 : e.id;
|
259
259
|
return n && r !== void 0 ? n + "-" + r : r;
|
260
260
|
}
|
261
|
-
function
|
261
|
+
function Gi(t) {
|
262
262
|
function e(n, i) {
|
263
263
|
return i === void 0 && (i = {}), zi(t(n, i));
|
264
264
|
}
|
@@ -766,7 +766,7 @@ function ne(t, e, r, n) {
|
|
766
766
|
};
|
767
767
|
}
|
768
768
|
function be(t, e, r, n) {
|
769
|
-
|
769
|
+
G(function() {
|
770
770
|
var i = t.current;
|
771
771
|
if (r && i)
|
772
772
|
return ne(i, e, r, n);
|
@@ -893,7 +893,7 @@ var wn = function(t, e) {
|
|
893
893
|
return e ? t === e ? !0 : wn(t, e.parentElement) : !1;
|
894
894
|
};
|
895
895
|
function Ue(t) {
|
896
|
-
return
|
896
|
+
return G(function() {
|
897
897
|
return function() {
|
898
898
|
return t();
|
899
899
|
};
|
@@ -960,7 +960,7 @@ var ja = {
|
|
960
960
|
};
|
961
961
|
function Ba(t, e, r, n) {
|
962
962
|
var i = n.root, s = n.margin, o = n.amount, a = o === void 0 ? "some" : o, u = n.once;
|
963
|
-
|
963
|
+
G(function() {
|
964
964
|
if (t) {
|
965
965
|
var l = {
|
966
966
|
root: i?.current,
|
@@ -980,7 +980,7 @@ function Ba(t, e, r, n) {
|
|
980
980
|
}
|
981
981
|
function _a(t, e, r, n) {
|
982
982
|
var i = n.fallback, s = i === void 0 ? !0 : i;
|
983
|
-
|
983
|
+
G(function() {
|
984
984
|
!t || !s || (Le !== "production" && En(!1, "IntersectionObserver not available on this device. whileInView animations will trigger on mount."), requestAnimationFrame(function() {
|
985
985
|
var o;
|
986
986
|
e.hasEnteredView = !0;
|
@@ -1008,7 +1008,7 @@ function Rn() {
|
|
1008
1008
|
if (t === null)
|
1009
1009
|
return [!0, null];
|
1010
1010
|
var e = t.isPresent, r = t.onExitComplete, n = t.register, i = Ln();
|
1011
|
-
|
1011
|
+
G(function() {
|
1012
1012
|
return n(i);
|
1013
1013
|
}, []);
|
1014
1014
|
var s = function() {
|
@@ -1065,7 +1065,7 @@ var Jt = function(t) {
|
|
1065
1065
|
damping: 25,
|
1066
1066
|
restSpeed: 10
|
1067
1067
|
};
|
1068
|
-
},
|
1068
|
+
}, Kt = function(t) {
|
1069
1069
|
return {
|
1070
1070
|
type: "spring",
|
1071
1071
|
stiffness: 550,
|
@@ -1078,7 +1078,7 @@ var Jt = function(t) {
|
|
1078
1078
|
ease: "linear",
|
1079
1079
|
duration: 0.3
|
1080
1080
|
};
|
1081
|
-
},
|
1081
|
+
}, Ka = function(t) {
|
1082
1082
|
return {
|
1083
1083
|
type: "keyframes",
|
1084
1084
|
duration: 0.8,
|
@@ -1092,16 +1092,16 @@ var Jt = function(t) {
|
|
1092
1092
|
rotateX: lt,
|
1093
1093
|
rotateY: lt,
|
1094
1094
|
rotateZ: lt,
|
1095
|
-
scaleX:
|
1096
|
-
scaleY:
|
1097
|
-
scale:
|
1095
|
+
scaleX: Kt,
|
1096
|
+
scaleY: Kt,
|
1097
|
+
scale: Kt,
|
1098
1098
|
opacity: ue,
|
1099
1099
|
backgroundColor: ue,
|
1100
1100
|
color: ue,
|
1101
|
-
default:
|
1102
|
-
},
|
1101
|
+
default: Kt
|
1102
|
+
}, Ga = function(t, e) {
|
1103
1103
|
var r;
|
1104
|
-
return jt(e) ? r =
|
1104
|
+
return jt(e) ? r = Ka : r = or[t] || or.default, m({ to: e }, r(e));
|
1105
1105
|
}, Ya = m(m({}, ln), {
|
1106
1106
|
// Color props
|
1107
1107
|
color: k,
|
@@ -1143,7 +1143,7 @@ function Za(t) {
|
|
1143
1143
|
}
|
1144
1144
|
function $a(t, e, r) {
|
1145
1145
|
var n;
|
1146
|
-
return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), Za(e), ka(t) || (t = m(m({}, t),
|
1146
|
+
return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), Za(e), ka(t) || (t = m(m({}, t), Ga(r, e.to))), m(m({}, e), Xa(t));
|
1147
1147
|
}
|
1148
1148
|
function qa(t, e, r, n, i) {
|
1149
1149
|
var s, o = ze(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = ar(t, r);
|
@@ -1184,7 +1184,7 @@ function lr(t) {
|
|
1184
1184
|
function ze(t, e) {
|
1185
1185
|
return t[e] || t.default || t;
|
1186
1186
|
}
|
1187
|
-
function
|
1187
|
+
function Ke(t, e, r, n) {
|
1188
1188
|
return n === void 0 && (n = {}), e.start(function(i) {
|
1189
1189
|
var s, o, a = qa(t, e, r, n, i), u = Wa(n, t), l = function() {
|
1190
1190
|
return o = a();
|
@@ -1199,7 +1199,7 @@ var Ja = function(t) {
|
|
1199
1199
|
}, Qa = function(t) {
|
1200
1200
|
return /^0[^.\s]+$/.test(t);
|
1201
1201
|
};
|
1202
|
-
function
|
1202
|
+
function Ge(t, e) {
|
1203
1203
|
t.indexOf(e) === -1 && t.push(e);
|
1204
1204
|
}
|
1205
1205
|
function Ye(t, e) {
|
@@ -1214,7 +1214,7 @@ var wt = (
|
|
1214
1214
|
}
|
1215
1215
|
return t.prototype.add = function(e) {
|
1216
1216
|
var r = this;
|
1217
|
-
return
|
1217
|
+
return Ge(this.subscriptions, e), function() {
|
1218
1218
|
return Ye(r.subscriptions, e);
|
1219
1219
|
};
|
1220
1220
|
}, t.prototype.notify = function(e, r, n) {
|
@@ -1391,7 +1391,7 @@ function On(t, e, r) {
|
|
1391
1391
|
if (!(!P || b === void 0 || h && po(h, g))) {
|
1392
1392
|
var S = m({ delay: o }, v);
|
1393
1393
|
t.shouldReduceMotion && Ut(g) && (S = m(m({}, S), { type: !1, delay: 0 }));
|
1394
|
-
var C =
|
1394
|
+
var C = Ke(g, P, b, S);
|
1395
1395
|
p.push(C);
|
1396
1396
|
}
|
1397
1397
|
}
|
@@ -1532,13 +1532,13 @@ function bo() {
|
|
1532
1532
|
var Vo = {
|
1533
1533
|
animation: ut(function(t) {
|
1534
1534
|
var e = t.visualElement, r = t.animate;
|
1535
|
-
e.animationState || (e.animationState = yo(e)), Be(r) &&
|
1535
|
+
e.animationState || (e.animationState = yo(e)), Be(r) && G(function() {
|
1536
1536
|
return r.subscribe(e);
|
1537
1537
|
}, [r]);
|
1538
1538
|
}),
|
1539
1539
|
exit: ut(function(t) {
|
1540
1540
|
var e = t.custom, r = t.visualElement, n = I(Rn(), 2), i = n[0], s = n[1], o = F(Bt);
|
1541
|
-
|
1541
|
+
G(function() {
|
1542
1542
|
var a, u;
|
1543
1543
|
r.isPresent = i;
|
1544
1544
|
var l = (a = r.animationState) === null || a === void 0 ? void 0 : a.setActive(L.Exit, !i, { custom: (u = o?.custom) !== null && u !== void 0 ? u : e });
|
@@ -1857,7 +1857,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
|
|
1857
1857
|
!n && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), (r = this.visualElement.animationState) === null || r === void 0 || r.setActive(L.Drag, !1);
|
1858
1858
|
}, t.prototype.updateAxis = function(e, r, n) {
|
1859
1859
|
var i = this.getProps().drag;
|
1860
|
-
if (!(!n || !
|
1860
|
+
if (!(!n || !Gt(e, i, this.currentDirection))) {
|
1861
1861
|
var s = this.getAxisMotionValue(e), o = this.originPoint[e] + n[e];
|
1862
1862
|
this.constraints && this.constraints[e] && (o = Co(o, this.constraints[e], this.elastic[e])), s.set(o);
|
1863
1863
|
}
|
@@ -1884,7 +1884,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
|
|
1884
1884
|
}, t.prototype.startAnimation = function(e) {
|
1885
1885
|
var r = this, n = this.getProps(), i = n.drag, s = n.dragMomentum, o = n.dragElastic, a = n.dragTransition, u = n.dragSnapToOrigin, l = n.onDragTransitionEnd, f = this.constraints || {}, v = Z(function(c) {
|
1886
1886
|
var d;
|
1887
|
-
if (
|
1887
|
+
if (Gt(c, i, r.currentDirection)) {
|
1888
1888
|
var p = (d = f?.[c]) !== null && d !== void 0 ? d : {};
|
1889
1889
|
u && (p = { min: 0, max: 0 });
|
1890
1890
|
var h = o ? 200 : 1e6, g = o ? 40 : 1e7, P = m(m({ type: "inertia", velocity: s ? e[c] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
|
@@ -1894,7 +1894,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
|
|
1894
1894
|
return Promise.all(v).then(l);
|
1895
1895
|
}, t.prototype.startAxisValueAnimation = function(e, r) {
|
1896
1896
|
var n = this.getAxisMotionValue(e);
|
1897
|
-
return
|
1897
|
+
return Ke(e, n, 0, r);
|
1898
1898
|
}, t.prototype.stopAnimation = function() {
|
1899
1899
|
var e = this;
|
1900
1900
|
Z(function(r) {
|
@@ -1907,7 +1907,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
|
|
1907
1907
|
var r = this;
|
1908
1908
|
Z(function(n) {
|
1909
1909
|
var i = r.getProps().drag;
|
1910
|
-
if (
|
1910
|
+
if (Gt(n, i, r.currentDirection)) {
|
1911
1911
|
var s = r.visualElement.projection, o = r.getAxisMotionValue(n);
|
1912
1912
|
if (s && s.layout) {
|
1913
1913
|
var a = s.layout.actual[n], u = a.min, l = a.max;
|
@@ -1929,7 +1929,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
|
|
1929
1929
|
});
|
1930
1930
|
var u = this.visualElement.getProps().transformTemplate;
|
1931
1931
|
this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (r = o.root) === null || r === void 0 || r.updateScroll(), o.updateLayout(), this.resolveConstraints(), Z(function(l) {
|
1932
|
-
if (
|
1932
|
+
if (Gt(l, i, null)) {
|
1933
1933
|
var f = e.getAxisMotionValue(l), v = e.constraints[l], c = v.min, d = v.max;
|
1934
1934
|
f.set(O(c, d, a[l]));
|
1935
1935
|
}
|
@@ -1964,7 +1964,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
|
|
1964
1964
|
}, t;
|
1965
1965
|
}()
|
1966
1966
|
);
|
1967
|
-
function
|
1967
|
+
function Gt(t, e, r) {
|
1968
1968
|
return (e === !0 || e === t) && (r === null || r === t);
|
1969
1969
|
}
|
1970
1970
|
function Uo(t, e) {
|
@@ -1976,9 +1976,9 @@ function No(t) {
|
|
1976
1976
|
var e = t.dragControls, r = t.visualElement, n = _t(function() {
|
1977
1977
|
return new _o(r);
|
1978
1978
|
});
|
1979
|
-
|
1979
|
+
G(function() {
|
1980
1980
|
return e && e.subscribe(n);
|
1981
|
-
}, [n, e]),
|
1981
|
+
}, [n, e]), G(function() {
|
1982
1982
|
return n.addListeners();
|
1983
1983
|
}, [n]);
|
1984
1984
|
}
|
@@ -1991,7 +1991,7 @@ function Ho(t) {
|
|
1991
1991
|
a.current = null, n && n(v, c);
|
1992
1992
|
}
|
1993
1993
|
};
|
1994
|
-
|
1994
|
+
G(function() {
|
1995
1995
|
a.current !== null && a.current.updateHandlers(l);
|
1996
1996
|
});
|
1997
1997
|
function f(v) {
|
@@ -2020,7 +2020,7 @@ var zo = {
|
|
2020
2020
|
"SetAxisTarget",
|
2021
2021
|
"Unmount"
|
2022
2022
|
];
|
2023
|
-
function
|
2023
|
+
function Ko() {
|
2024
2024
|
var t = Yt.map(function() {
|
2025
2025
|
return new wt();
|
2026
2026
|
}), e = {}, r = {
|
@@ -2046,7 +2046,7 @@ function Go() {
|
|
2046
2046
|
};
|
2047
2047
|
}), r;
|
2048
2048
|
}
|
2049
|
-
function
|
2049
|
+
function Go(t, e, r) {
|
2050
2050
|
var n;
|
2051
2051
|
for (var i in e) {
|
2052
2052
|
var s = e[i], o = r[i];
|
@@ -2070,7 +2070,7 @@ var Hn = function(t) {
|
|
2070
2070
|
return function(c, d) {
|
2071
2071
|
var p = c.parent, h = c.props, g = c.presenceId, P = c.blockInitialAnimation, b = c.visualState, S = c.shouldReduceMotion;
|
2072
2072
|
d === void 0 && (d = {});
|
2073
|
-
var C = !1, A = b.latestValues, M = b.renderState, R, x =
|
2073
|
+
var C = !1, A = b.latestValues, M = b.renderState, R, x = Ko(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), H = {}, B = m({}, A), N;
|
2074
2074
|
function rt() {
|
2075
2075
|
!R || !C || (nt(), a(R, M, h.style, E.projection));
|
2076
2076
|
}
|
@@ -2321,7 +2321,7 @@ var Hn = function(t) {
|
|
2321
2321
|
* added to our map, old ones removed, and listeners updated.
|
2322
2322
|
*/
|
2323
2323
|
setProps: function(y) {
|
2324
|
-
(y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), H =
|
2324
|
+
(y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), H = Go(E, v(h), H);
|
2325
2325
|
},
|
2326
2326
|
getProps: function() {
|
2327
2327
|
return h;
|
@@ -2366,9 +2366,9 @@ var Hn = function(t) {
|
|
2366
2366
|
function Ce(t) {
|
2367
2367
|
return typeof t == "string" && t.startsWith("var(--");
|
2368
2368
|
}
|
2369
|
-
var
|
2369
|
+
var Kn = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
2370
2370
|
function ko(t) {
|
2371
|
-
var e =
|
2371
|
+
var e = Kn.exec(t);
|
2372
2372
|
if (!e)
|
2373
2373
|
return [,];
|
2374
2374
|
var r = I(e, 3), n = r[1], i = r[2];
|
@@ -2412,10 +2412,10 @@ var Zo = /* @__PURE__ */ new Set([
|
|
2412
2412
|
"bottom",
|
2413
2413
|
"x",
|
2414
2414
|
"y"
|
2415
|
-
]),
|
2415
|
+
]), Gn = function(t) {
|
2416
2416
|
return Zo.has(t);
|
2417
2417
|
}, $o = function(t) {
|
2418
|
-
return Object.keys(t).some(
|
2418
|
+
return Object.keys(t).some(Gn);
|
2419
2419
|
}, Yn = function(t, e) {
|
2420
2420
|
t.set(e, !1), t.set(e);
|
2421
2421
|
}, kt = function(t) {
|
@@ -2488,7 +2488,7 @@ var wr = {
|
|
2488
2488
|
}), t;
|
2489
2489
|
}, es = function(t, e, r, n) {
|
2490
2490
|
r === void 0 && (r = {}), n === void 0 && (n = {}), e = m({}, e), n = m({}, n);
|
2491
|
-
var i = Object.keys(e).filter(
|
2491
|
+
var i = Object.keys(e).filter(Gn), s = [], o = !1, a = [];
|
2492
2492
|
if (i.forEach(function(f) {
|
2493
2493
|
var v = t.getValue(f);
|
2494
2494
|
if (t.hasValue(f)) {
|
@@ -2613,7 +2613,7 @@ var Ct = {
|
|
2613
2613
|
}, Lr = "_$css", us = {
|
2614
2614
|
correct: function(t, e) {
|
2615
2615
|
var r = e.treeScale, n = e.projectionDelta, i = t, s = t.includes("var("), o = [];
|
2616
|
-
s && (t = t.replace(
|
2616
|
+
s && (t = t.replace(Kn, function(h) {
|
2617
2617
|
return o.push(h), Lr;
|
2618
2618
|
}));
|
2619
2619
|
var a = yt.parse(t);
|
@@ -2689,7 +2689,7 @@ var cs = {
|
|
2689
2689
|
function ds(t, e, r) {
|
2690
2690
|
r === void 0 && (r = {});
|
2691
2691
|
var n = tt(t) ? t : Pt(t);
|
2692
|
-
return
|
2692
|
+
return Ke("", n, e, r), {
|
2693
2693
|
stop: function() {
|
2694
2694
|
return n.stop();
|
2695
2695
|
},
|
@@ -2776,7 +2776,7 @@ var Vs = (
|
|
2776
2776
|
this.members = [];
|
2777
2777
|
}
|
2778
2778
|
return t.prototype.add = function(e) {
|
2779
|
-
|
2779
|
+
Ge(this.members, e), e.scheduleRender();
|
2780
2780
|
}, t.prototype.remove = function(e) {
|
2781
2781
|
if (Ye(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
2782
2782
|
var r = this.members[this.members.length - 1];
|
@@ -2835,7 +2835,7 @@ var Ss = function(t, e) {
|
|
2835
2835
|
this.children = [], this.isDirty = !1;
|
2836
2836
|
}
|
2837
2837
|
return t.prototype.add = function(e) {
|
2838
|
-
|
2838
|
+
Ge(this.children, e), this.isDirty = !0;
|
2839
2839
|
}, t.prototype.remove = function(e) {
|
2840
2840
|
Ye(this.children, e), this.isDirty = !0;
|
2841
2841
|
}, t.prototype.forEach = function(e) {
|
@@ -2951,7 +2951,7 @@ function qn(t) {
|
|
2951
2951
|
}, o.prototype.updateSnapshot = function() {
|
2952
2952
|
if (!(this.snapshot || !this.instance)) {
|
2953
2953
|
var a = this.measure(), u = this.removeTransform(this.removeElementScroll(a));
|
2954
|
-
|
2954
|
+
Gr(u), this.snapshot = {
|
2955
2955
|
measured: a,
|
2956
2956
|
layout: u,
|
2957
2957
|
latestValues: {}
|
@@ -2966,7 +2966,7 @@ function qn(t) {
|
|
2966
2966
|
l.updateScroll();
|
2967
2967
|
}
|
2968
2968
|
var f = this.measure();
|
2969
|
-
|
2969
|
+
Gr(f);
|
2970
2970
|
var v = this.layout;
|
2971
2971
|
this.layout = {
|
2972
2972
|
measured: f,
|
@@ -3261,11 +3261,11 @@ function Bs(t, e) {
|
|
3261
3261
|
var i = r && r !== t.root ? r.instance : document, s = i.querySelector('[data-projection-id="'.concat(e, '"]'));
|
3262
3262
|
s && t.mount(s, !0);
|
3263
3263
|
}
|
3264
|
-
function
|
3264
|
+
function Kr(t) {
|
3265
3265
|
t.min = Math.round(t.min), t.max = Math.round(t.max);
|
3266
3266
|
}
|
3267
|
-
function
|
3268
|
-
|
3267
|
+
function Gr(t) {
|
3268
|
+
Kr(t.x), Kr(t.y);
|
3269
3269
|
}
|
3270
3270
|
var _s = qn({
|
3271
3271
|
attachResizeListener: function(t, e) {
|
@@ -3302,7 +3302,7 @@ var _s = qn({
|
|
3302
3302
|
checkIsScrollRoot: function(t) {
|
3303
3303
|
return window.getComputedStyle(t).position === "fixed";
|
3304
3304
|
}
|
3305
|
-
}), Ns = m(m(m(m({}, Vo), Ua), zo), vs), Xs = /* @__PURE__ */
|
3305
|
+
}), Ns = m(m(m(m({}, Vo), Ua), zo), vs), Xs = /* @__PURE__ */ Gi(function(t, e) {
|
3306
3306
|
return ya(t, e, Ns, ss, Us);
|
3307
3307
|
});
|
3308
3308
|
function Jn() {
|
@@ -3367,9 +3367,9 @@ var de = function(t) {
|
|
3367
3367
|
a.forEach(function(f, v) {
|
3368
3368
|
return a.set(v, !1);
|
3369
3369
|
});
|
3370
|
-
}, [n]),
|
3370
|
+
}, [n]), K.useEffect(function() {
|
3371
3371
|
!n && !a.size && i?.();
|
3372
|
-
}, [n]),
|
3372
|
+
}, [n]), K.createElement(Bt.Provider, { value: l }, e);
|
3373
3373
|
};
|
3374
3374
|
function zs() {
|
3375
3375
|
return /* @__PURE__ */ new Map();
|
@@ -3377,13 +3377,13 @@ function zs() {
|
|
3377
3377
|
var pt = function(t) {
|
3378
3378
|
return t.key || "";
|
3379
3379
|
};
|
3380
|
-
function
|
3380
|
+
function Ks(t, e) {
|
3381
3381
|
t.forEach(function(r) {
|
3382
3382
|
var n = pt(r);
|
3383
3383
|
e.set(n, r);
|
3384
3384
|
});
|
3385
3385
|
}
|
3386
|
-
function
|
3386
|
+
function Gs(t) {
|
3387
3387
|
var e = [];
|
3388
3388
|
return Si.forEach(t, function(r) {
|
3389
3389
|
xi(r) && e.push(r);
|
@@ -3392,14 +3392,14 @@ function Ks(t) {
|
|
3392
3392
|
var Ws = function(t) {
|
3393
3393
|
var e = t.children, r = t.custom, n = t.initial, i = n === void 0 ? !0 : n, s = t.onExitComplete, o = t.exitBeforeEnter, a = t.presenceAffectsLayout, u = a === void 0 ? !0 : a, l = I(Hs(), 1), f = l[0], v = F(De).forceRender;
|
3394
3394
|
v && (f = v);
|
3395
|
-
var c = Jn(), d =
|
3395
|
+
var c = Jn(), d = Gs(e), p = d, h = /* @__PURE__ */ new Set(), g = q(p), P = q(/* @__PURE__ */ new Map()).current, b = q(!0);
|
3396
3396
|
if (Wt(function() {
|
3397
|
-
b.current = !1,
|
3397
|
+
b.current = !1, Ks(d, P), g.current = p;
|
3398
3398
|
}), Ue(function() {
|
3399
3399
|
b.current = !0, P.clear(), h.clear();
|
3400
3400
|
}), b.current)
|
3401
|
-
return
|
3402
|
-
return
|
3401
|
+
return K.createElement(K.Fragment, null, p.map(function(x) {
|
3402
|
+
return K.createElement(de, { key: pt(x), isPresent: !0, initial: i ? void 0 : !1, presenceAffectsLayout: u }, x);
|
3403
3403
|
}));
|
3404
3404
|
p = W([], I(p), !1);
|
3405
3405
|
for (var S = g.current.map(pt), C = d.map(pt), A = S.length, M = 0; M < A; M++) {
|
@@ -3421,13 +3421,13 @@ var Ws = function(t) {
|
|
3421
3421
|
f(), s && s();
|
3422
3422
|
}
|
3423
3423
|
};
|
3424
|
-
p.splice(D, 0,
|
3424
|
+
p.splice(D, 0, K.createElement(de, { key: pt(w), isPresent: !1, onExitComplete: H, custom: r, presenceAffectsLayout: u }, w));
|
3425
3425
|
}
|
3426
3426
|
}
|
3427
3427
|
}), p = p.map(function(x) {
|
3428
3428
|
var w = x.key;
|
3429
|
-
return h.has(w) ? x :
|
3430
|
-
}), Le !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),
|
3429
|
+
return h.has(w) ? x : K.createElement(de, { key: pt(x), isPresent: !0, presenceAffectsLayout: u }, x);
|
3430
|
+
}), Le !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."), K.createElement(K.Fragment, null, h.size ? p : p.map(function(x) {
|
3431
3431
|
return Ti(x);
|
3432
3432
|
}));
|
3433
3433
|
};
|