@devtron-labs/devtron-fe-common-lib 1.15.3-pre-4 → 1.15.3

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.
Files changed (41) hide show
  1. package/dist/{@code-editor-BqrKjHnF.js → @code-editor-BSHPw8A0.js} +5687 -5700
  2. package/dist/{@common-rjsf-BouEdO2I.js → @common-rjsf-CwVuUFdU.js} +6 -6
  3. package/dist/{@framer-motion-BhKAac90.js → @framer-motion-Bw9QEkUf.js} +20 -20
  4. package/dist/{@moment-CGWt8tF2.js → @moment-C_WeV3Af.js} +1 -12
  5. package/dist/{@react-dates-CfRo6n5e.js → @react-dates-D5kydtW-.js} +2140 -2065
  6. package/dist/{@react-select-DNDV8S9D.js → @react-select-Cmser7OI.js} +6 -6
  7. package/dist/{@react-virtualized-sticky-tree-mXcyQzGx.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
  8. package/dist/{@vendor-CA9d7Ztm.js → @vendor-STJ9h0oI.js} +20458 -20720
  9. package/dist/Common/Tooltip/types.d.ts +1 -1
  10. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +0 -1
  11. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
  12. package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
  13. package/dist/Shared/Components/Button/types.d.ts +1 -1
  14. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
  15. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
  16. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
  17. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
  18. package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
  19. package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
  20. package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
  21. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
  22. package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
  23. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
  24. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
  25. package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
  26. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  27. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  28. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
  29. package/dist/Shared/Components/Table/types.d.ts +1 -1
  30. package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
  31. package/dist/Shared/Components/index.d.ts +0 -1
  32. package/dist/Shared/Helpers.d.ts +1 -1
  33. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
  34. package/dist/Shared/constants.d.ts +0 -1
  35. package/dist/index.js +853 -854
  36. package/package.json +7 -6
  37. package/dist/Shared/Components/Badge/Badge.d.ts +0 -3
  38. package/dist/Shared/Components/Badge/index.d.ts +0 -2
  39. package/dist/Shared/Components/Badge/types.d.ts +0 -18
  40. package/dist/Shared/Components/Badge/utils.d.ts +0 -7
  41. package/dist/Shared/Components/Security/SeverityChip.d.ts +0 -6
@@ -1,13 +1,13 @@
1
- import { j as n, as as b, au as k, at as W } from "./@vendor-CA9d7Ztm.js";
1
+ import { j as n, as as b, au as k, at as W } from "./@vendor-STJ9h0oI.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-BqrKjHnF.js";
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-BSHPw8A0.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-warning.ecf7ff97.svg";
10
- import { ReactComponent as le } from "./assets/ic-cross.01e03666.svg";
9
+ import { ReactComponent as ie } from "./assets/ic-cross.01e03666.svg";
10
+ import { ReactComponent as le } from "./assets/ic-warning.ecf7ff97.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(le, { className: "icon-dim-16 fcn-6" }) }), he = ({ uiSchema: e }) => {
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(ie, { 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(ie, { className: "form__icon form__icon--error" }),
220
+ /* @__PURE__ */ n.jsx(le, { className: "form__icon form__icon--error" }),
221
221
  r
222
222
  ] })
223
223
  ] }, s)) });
@@ -1,4 +1,4 @@
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";
1
+ import { ax as ct, ay as m, az as M, aA as Xr, aB as Ee, aC as T, aD as at, aE as Gt, aF as oe, aG as We, aH as Q, aI as Wr, aJ as ni, aK as Zr, aL as ii, aM as ai, aN as oi, aO as si, aP as ui, aQ as $r, aR as li, aS as fi, aT as ci, aU as vi, aV as di, aW as pi, aX as hi, aY as Pt, aZ as k, a_ as he, a$ as qr, b0 as mi, b1 as Jr, b2 as W, b3 as Z, b4 as gi, b5 as me, 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-STJ9h0oI.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: $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
1033
+ linear: Zr,
1034
+ easeIn: ii,
1035
+ easeInOut: ai,
1036
+ easeOut: oi,
1037
+ circIn: si,
1038
+ circInOut: ui,
1039
+ circOut: $r,
1040
+ backIn: li,
1041
+ backInOut: fi,
1042
+ backOut: ci,
1043
+ anticipate: vi,
1044
+ bounceIn: di,
1045
+ bounceInOut: pi,
1046
+ bounceOut: hi
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) && (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;
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) && (qr(!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
- 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."));
1152
+ qr(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)) : qr(m(m({}, to(o, c, t)), { onUpdate: function(d) {
1163
+ return o.type === "inertia" || o.type === "decay" ? mi(m(m({}, c), o)) : Jr(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, Zr), Vs = $n(0.5, 0.95, $r);
2729
+ var Ps = $n(0, 0.5, $r), Vs = $n(0.5, 0.95, Zr);
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 = qr(m(m({ from: i.get(), to: s, velocity: i.getVelocity() }, e), { onUpdate: o })), i.get());
3520
+ return r ? o(s) : (n.current && n.current.stop(), n.current = Jr(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 (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
6
+ if (e.__esModule) return e;
7
7
  var t = e.default;
8
8
  if (typeof t == "function") {
9
9
  var s = function r() {
@@ -517,13 +517,8 @@ 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));
524
520
  case "FullYear":
525
521
  break;
526
- // See below ...
527
522
  default:
528
523
  return;
529
524
  }
@@ -1632,23 +1627,18 @@ function Za(e, t, s) {
1632
1627
  case "second":
1633
1628
  n = (this - r) / 1e3;
1634
1629
  break;
1635
- // 1000
1636
1630
  case "minute":
1637
1631
  n = (this - r) / 6e4;
1638
1632
  break;
1639
- // 1000 * 60
1640
1633
  case "hour":
1641
1634
  n = (this - r) / 36e5;
1642
1635
  break;
1643
- // 1000 * 60 * 60
1644
1636
  case "day":
1645
1637
  n = (this - r - a) / 864e5;
1646
1638
  break;
1647
- // 1000 * 60 * 60 * 24, negate dst
1648
1639
  case "week":
1649
1640
  n = (this - r - a) / 6048e5;
1650
1641
  break;
1651
- // 1000 * 60 * 60 * 24 * 7, negate dst
1652
1642
  default:
1653
1643
  n = this - r;
1654
1644
  }
@@ -2436,7 +2426,6 @@ function Xn(e) {
2436
2426
  return t * 1440 + r / 6e4;
2437
2427
  case "second":
2438
2428
  return t * 86400 + r / 1e3;
2439
- // Math.floor prevents floating point math errors here
2440
2429
  case "millisecond":
2441
2430
  return Math.floor(t * 864e5) + r;
2442
2431
  default: