@devtron-labs/devtron-fe-common-lib 1.15.3-beta-0 → 1.15.3-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-4GamD7ww.js → @code-editor-Bd6MuRxN.js} +5075 -5062
- package/dist/{@common-rjsf-D5al5CTH.js → @common-rjsf-DPDULtgg.js} +6 -6
- package/dist/{@framer-motion-CqekqZ92.js → @framer-motion-BhKAac90.js} +20 -20
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-B6q1sdbJ.js → @react-dates-CfRo6n5e.js} +2065 -2140
- package/dist/{@react-select-LSvqtVJj.js → @react-select-DNDV8S9D.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-BpJty95h.js → @react-virtualized-sticky-tree-mXcyQzGx.js} +1 -1
- package/dist/{@vendor-DC3JvJ9U.js → @vendor-CA9d7Ztm.js} +20235 -19983
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/index.js +844 -843
- package/package.json +6 -7
@@ -1,13 +1,13 @@
|
|
1
|
-
import { j as n, as as b, au as k, at as W } from "./@vendor-
|
1
|
+
import { j as n, as as b, au as k, at as W } from "./@vendor-CA9d7Ztm.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-Bd6MuRxN.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as $, getTemplate as B, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as ae, deepEquals as se } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as oe } from "./assets/ic-add.cfaa779b.svg";
|
9
|
-
import { ReactComponent as ie } from "./assets/ic-
|
10
|
-
import { ReactComponent as le } from "./assets/ic-
|
9
|
+
import { ReactComponent as ie } from "./assets/ic-warning.ecf7ff97.svg";
|
10
|
+
import { ReactComponent as le } from "./assets/ic-cross.01e03666.svg";
|
11
11
|
import './assets/@common-rjsf.css';const C = {
|
12
12
|
SELECT: "Please select an option",
|
13
13
|
INPUT: "Please enter an input",
|
@@ -153,7 +153,7 @@ import './assets/@common-rjsf.css';const C = {
|
|
153
153
|
]
|
154
154
|
}
|
155
155
|
) });
|
156
|
-
}, fe = ({ icon: e, iconType: t, registry: a, uiSchema: r, ...s }) => /* @__PURE__ */ n.jsx("button", { ...s, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(
|
156
|
+
}, fe = ({ icon: e, iconType: t, registry: a, uiSchema: r, ...s }) => /* @__PURE__ */ n.jsx("button", { ...s, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(le, { className: "icon-dim-16 fcn-6" }) }), he = ({ uiSchema: e }) => {
|
157
157
|
const { submitText: t, norender: a, props: r = {} } = Z(e);
|
158
158
|
return a ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...r, className: `cta ${r.className || ""}`, children: t }) });
|
159
159
|
}, O = ({
|
@@ -217,7 +217,7 @@ import './assets/@common-rjsf.css';const C = {
|
|
217
217
|
return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: a, children: e.filter((r) => !!r).map((r, s) => /* @__PURE__ */ n.jsxs(V.Fragment, { children: [
|
218
218
|
/* @__PURE__ */ n.jsx("span", {}),
|
219
219
|
/* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
|
220
|
-
/* @__PURE__ */ n.jsx(
|
220
|
+
/* @__PURE__ */ n.jsx(ie, { className: "form__icon form__icon--error" }),
|
221
221
|
r
|
222
222
|
] })
|
223
223
|
] }, s)) });
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ax as
|
1
|
+
import { ax as m, ay as ct, az as M, aA as Xr, aB as Ee, aC as oe, aD as T, aE as We, aF as at, aG as Gt, aH as Q, aI as Wr, aJ as ni, aK as ii, aL as ai, aM as oi, aN as si, aO as ui, aP as li, aQ as fi, aR as Zr, aS as ci, aT as vi, aU as di, aV as pi, aW as hi, aX as $r, aY as Pt, aZ as he, a_ as k, a$ as mi, b0 as qr, b1 as W, b2 as Jr, b3 as me, b4 as Z, b5 as gi, b6 as Ot, b7 as yi, b8 as bi, b9 as Qr, ba as Ft, bb as O, bc as ge, bd as Pi, be as se, bf as Vi, bg as Ti } from "./@vendor-CA9d7Ztm.js";
|
2
2
|
import * as G from "react";
|
3
3
|
import Le, { createContext as St, useContext as F, useLayoutEffect as Si, useEffect as H, useState as Re, useRef as $, useCallback as ye, useMemo as Vt, forwardRef as xi, createElement as Ci, cloneElement as Ai, Children as wi, isValidElement as Ei } from "react";
|
4
4
|
var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze : process.env.NODE_ENV || Ze, tt = function(t) {
|
@@ -1030,20 +1030,20 @@ function In(t, e) {
|
|
1030
1030
|
var Qt = function(t) {
|
1031
1031
|
return t * 1e3;
|
1032
1032
|
}, ir = {
|
1033
|
-
linear:
|
1034
|
-
easeIn:
|
1035
|
-
easeInOut:
|
1036
|
-
easeOut:
|
1037
|
-
circIn:
|
1038
|
-
circInOut:
|
1039
|
-
circOut:
|
1040
|
-
backIn:
|
1041
|
-
backInOut:
|
1042
|
-
backOut:
|
1043
|
-
anticipate:
|
1044
|
-
bounceIn:
|
1045
|
-
bounceInOut:
|
1046
|
-
bounceOut:
|
1033
|
+
linear: $r,
|
1034
|
+
easeIn: hi,
|
1035
|
+
easeInOut: pi,
|
1036
|
+
easeOut: di,
|
1037
|
+
circIn: vi,
|
1038
|
+
circInOut: ci,
|
1039
|
+
circOut: Zr,
|
1040
|
+
backIn: fi,
|
1041
|
+
backInOut: li,
|
1042
|
+
backOut: ui,
|
1043
|
+
anticipate: si,
|
1044
|
+
bounceIn: oi,
|
1045
|
+
bounceInOut: ai,
|
1046
|
+
bounceOut: ii
|
1047
1047
|
}, ar = function(t) {
|
1048
1048
|
if (Array.isArray(t)) {
|
1049
1049
|
ct(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
@@ -1132,7 +1132,7 @@ function $a(t) {
|
|
1132
1132
|
var ur = !1;
|
1133
1133
|
function qa(t) {
|
1134
1134
|
var e = t.ease, r = t.times, n = t.yoyo, i = t.flip, s = t.loop, o = Q(t, ["ease", "times", "yoyo", "flip", "loop"]), a = m({}, o);
|
1135
|
-
return r && (a.offset = r), o.duration && (a.duration = Qt(o.duration)), o.repeatDelay && (a.repeatDelay = Qt(o.repeatDelay)), e && (a.ease = ka(e) ? e.map(ar) : ar(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (
|
1135
|
+
return r && (a.offset = r), o.duration && (a.duration = Qt(o.duration)), o.repeatDelay && (a.repeatDelay = Qt(o.repeatDelay)), e && (a.ease = ka(e) ? e.map(ar) : ar(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (Jr(!ur, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), ur = !0, n ? a.repeatType = "reverse" : s ? a.repeatType = "loop" : i && (a.repeatType = "mirror"), a.repeat = s || n || i || o.repeat), o.type !== "spring" && (a.type = "keyframes"), a;
|
1136
1136
|
}
|
1137
1137
|
function Ja(t, e) {
|
1138
1138
|
var r, n, i = Ke(t, e) || {};
|
@@ -1149,7 +1149,7 @@ function eo(t, e, r, n, i) {
|
|
1149
1149
|
var s, o = Ke(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = or(t, r);
|
1150
1150
|
a === "none" && u && typeof r == "string" ? a = ze(t, r) : lr(a) && typeof r == "string" ? a = fr(r) : !Array.isArray(r) && lr(r) && typeof a == "string" && (r = fr(a));
|
1151
1151
|
var l = or(t, a);
|
1152
|
-
|
1152
|
+
Jr(l === u, "You are trying to animate ".concat(t, ' from "').concat(a, '" to "').concat(r, '". ').concat(a, " is not an animatable value - to enable this animation set ").concat(a, " to a value animatable to ").concat(r, " via the `style` property."));
|
1153
1153
|
function f() {
|
1154
1154
|
var c = {
|
1155
1155
|
from: a,
|
@@ -1160,7 +1160,7 @@ function eo(t, e, r, n, i) {
|
|
1160
1160
|
return e.set(d);
|
1161
1161
|
}
|
1162
1162
|
};
|
1163
|
-
return o.type === "inertia" || o.type === "decay" ? mi(m(m({}, c), o)) :
|
1163
|
+
return o.type === "inertia" || o.type === "decay" ? mi(m(m({}, c), o)) : qr(m(m({}, to(o, c, t)), { onUpdate: function(d) {
|
1164
1164
|
var p;
|
1165
1165
|
c.onUpdate(d), (p = o.onUpdate) === null || p === void 0 || p.call(o, d);
|
1166
1166
|
}, onComplete: function() {
|
@@ -2726,7 +2726,7 @@ function Ir(t, e) {
|
|
2726
2726
|
var r;
|
2727
2727
|
return (r = t[e]) !== null && r !== void 0 ? r : t.borderRadius;
|
2728
2728
|
}
|
2729
|
-
var Ps = $n(0, 0.5,
|
2729
|
+
var Ps = $n(0, 0.5, Zr), Vs = $n(0.5, 0.95, $r);
|
2730
2730
|
function $n(t, e, r) {
|
2731
2731
|
return function(n) {
|
2732
2732
|
return n < t ? 0 : n > e ? 1 : r(ge(t, e, n));
|
@@ -3517,7 +3517,7 @@ function ou(t, e) {
|
|
3517
3517
|
var r = F(_t).isStatic, n = $(null), i = ei(q(t) ? t.get() : t);
|
3518
3518
|
return Vt(function() {
|
3519
3519
|
return i.attach(function(s, o) {
|
3520
|
-
return r ? o(s) : (n.current && n.current.stop(), n.current =
|
3520
|
+
return r ? o(s) : (n.current && n.current.stop(), n.current = qr(m(m({ from: i.get(), to: s, velocity: i.getVelocity() }, e), { onUpdate: o })), i.get());
|
3521
3521
|
});
|
3522
3522
|
}, [JSON.stringify(e)]), Js(t, function(s) {
|
3523
3523
|
return i.set(parseFloat(s));
|
@@ -3,7 +3,7 @@ function Yi(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
4
4
|
}
|
5
5
|
function Ss(e) {
|
6
|
-
if (e
|
6
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
7
7
|
var t = e.default;
|
8
8
|
if (typeof t == "function") {
|
9
9
|
var s = function r() {
|
@@ -517,8 +517,13 @@ function Et(e, t, s) {
|
|
517
517
|
return void (a ? r.setUTCHours(s) : r.setHours(s));
|
518
518
|
case "Date":
|
519
519
|
return void (a ? r.setUTCDate(s) : r.setDate(s));
|
520
|
+
// case 'Day': // Not real
|
521
|
+
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
522
|
+
// case 'Month': // Not used because we need to pass two variables
|
523
|
+
// return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
|
520
524
|
case "FullYear":
|
521
525
|
break;
|
526
|
+
// See below ...
|
522
527
|
default:
|
523
528
|
return;
|
524
529
|
}
|
@@ -1627,18 +1632,23 @@ function Za(e, t, s) {
|
|
1627
1632
|
case "second":
|
1628
1633
|
n = (this - r) / 1e3;
|
1629
1634
|
break;
|
1635
|
+
// 1000
|
1630
1636
|
case "minute":
|
1631
1637
|
n = (this - r) / 6e4;
|
1632
1638
|
break;
|
1639
|
+
// 1000 * 60
|
1633
1640
|
case "hour":
|
1634
1641
|
n = (this - r) / 36e5;
|
1635
1642
|
break;
|
1643
|
+
// 1000 * 60 * 60
|
1636
1644
|
case "day":
|
1637
1645
|
n = (this - r - a) / 864e5;
|
1638
1646
|
break;
|
1647
|
+
// 1000 * 60 * 60 * 24, negate dst
|
1639
1648
|
case "week":
|
1640
1649
|
n = (this - r - a) / 6048e5;
|
1641
1650
|
break;
|
1651
|
+
// 1000 * 60 * 60 * 24 * 7, negate dst
|
1642
1652
|
default:
|
1643
1653
|
n = this - r;
|
1644
1654
|
}
|
@@ -2426,6 +2436,7 @@ function Xn(e) {
|
|
2426
2436
|
return t * 1440 + r / 6e4;
|
2427
2437
|
case "second":
|
2428
2438
|
return t * 86400 + r / 1e3;
|
2439
|
+
// Math.floor prevents floating point math errors here
|
2429
2440
|
case "millisecond":
|
2430
2441
|
return Math.floor(t * 864e5) + r;
|
2431
2442
|
default:
|