@devtron-labs/devtron-fe-common-lib 1.4.0-beta-5 → 1.4.0-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.
Files changed (54) hide show
  1. package/dist/{@code-editor-zlnAVvPx.js → @code-editor-r8mIxPmX.js} +5471 -5402
  2. package/dist/{@common-rjsf-DzGbu1Bm.js → @common-rjsf-Pzf33XFr.js} +27 -15
  3. package/dist/{@framer-motion-CdgdF0KV.js → @framer-motion-BxQTtYmm.js} +1 -1
  4. package/dist/{@react-dates-CtQV2TLr.js → @react-dates-M_eJUVeH.js} +1 -1
  5. package/dist/{@react-select-Cn3OpC9h.js → @react-select-CywptBlV.js} +1 -1
  6. package/dist/{@vendor-CwAQS8iU.js → @vendor-QI4m26H1.js} +5491 -5894
  7. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +6 -18
  8. package/dist/Common/CodeEditor/types.d.ts +11 -14
  9. package/dist/Common/CodeEditor/utils.d.ts +3 -0
  10. package/dist/Common/Constants.d.ts +0 -1
  11. package/dist/Common/MultiSelectCustomization.d.ts +2 -0
  12. package/dist/Common/RJSF/utils.d.ts +3 -0
  13. package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
  14. package/dist/Common/SegmentedControl/constants.d.ts +2 -0
  15. package/dist/Common/SegmentedControl/types.d.ts +7 -1
  16. package/dist/Pages/ResourceBrowser/service.d.ts +0 -2
  17. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  18. package/dist/Shared/Components/CICDHistory/constants.d.ts +2 -0
  19. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -2
  20. package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
  21. package/dist/Shared/Components/Plugin/types.d.ts +2 -2
  22. package/dist/Shared/Components/Plugin/utils.d.ts +0 -16
  23. package/dist/Shared/Components/ReactSelect/constants.d.ts +1 -0
  24. package/dist/Shared/Components/ReactSelect/utils.d.ts +6 -0
  25. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +8 -8
  26. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  27. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  28. package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +3 -0
  29. package/dist/Shared/Components/ThemeSwitcher/constants.d.ts +6 -0
  30. package/dist/Shared/Components/ThemeSwitcher/index.d.ts +1 -0
  31. package/dist/Shared/Components/ThemeSwitcher/types.d.ts +3 -0
  32. package/dist/Shared/Components/index.d.ts +0 -1
  33. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +0 -1
  34. package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +3 -0
  35. package/dist/Shared/Providers/ThemeProvider/constants.d.ts +2 -0
  36. package/dist/Shared/Providers/ThemeProvider/index.d.ts +2 -0
  37. package/dist/Shared/Providers/ThemeProvider/types.d.ts +33 -0
  38. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +4 -0
  39. package/dist/Shared/Providers/index.d.ts +1 -0
  40. package/dist/Shared/Services/types.d.ts +0 -4
  41. package/dist/assets/@code-editor.css +1 -1
  42. package/dist/assets/ic-laptop.485e21b4.svg +3 -0
  43. package/dist/assets/ic-moon.17d37c40.svg +3 -0
  44. package/dist/assets/{ic-nav-rocket.9e50bb61.svg → ic-nav-rocket.433c9706.svg} +1 -1
  45. package/dist/assets/{ic-rotate-devtron.200e165b.svg → ic-rotate-devtron.5a8363d8.svg} +87 -86
  46. package/dist/assets/ic-sun.33e8214b.svg +3 -0
  47. package/dist/index.d.ts +6 -0
  48. package/dist/index.js +513 -514
  49. package/package.json +1 -6
  50. package/dist/@react-virtualized-sticky-tree-CVJYfMx0.js +0 -452
  51. package/dist/Shared/Components/VirtualizedList/VirtualizedList.component.d.ts +0 -2
  52. package/dist/Shared/Components/VirtualizedList/VirtualizedList.constants.d.ts +0 -2
  53. package/dist/Shared/Components/VirtualizedList/VirtualizedList.types.d.ts +0 -36
  54. package/dist/Shared/Components/VirtualizedList/index.d.ts +0 -2
@@ -1,10 +1,10 @@
1
- import { j as n, J as A } from "./@vendor-CwAQS8iU.js";
1
+ import { j as n, J as A } from "./@vendor-QI4m26H1.js";
2
2
  import E, { forwardRef as $ } from "react";
3
3
  import L, { getDefaultRegistry as k } from "@rjsf/core";
4
4
  import D from "@rjsf/validator-ajv8";
5
- import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-zlnAVvPx.js";
5
+ import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-r8mIxPmX.js";
6
6
  import M, { components as O } from "react-select";
7
- import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as P, errorId as V, englishStringTranslator as q, TranslatableString as K, titleId as Y, canExpand as z, deepEquals as G } from "@rjsf/utils";
7
+ import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as V, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as q, TranslatableString as K, titleId as Y, canExpand as z, deepEquals as G } from "@rjsf/utils";
8
8
  import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
9
9
  import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
10
10
  import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
@@ -155,7 +155,7 @@ import './assets/@common-rjsf.css';const N = {
155
155
  }
156
156
  ) });
157
157
  }, ae = ({ icon: t, iconType: e, registry: s, uiSchema: o, ...r }) => /* @__PURE__ */ n.jsx("button", { ...r, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(Z, { className: "icon-dim-16 fcn-6" }) }), ie = ({ uiSchema: t }) => {
158
- const { submitText: e, norender: s, props: o = {} } = W(t);
158
+ const { submitText: e, norender: s, props: o = {} } = V(t);
159
159
  return s ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...o, className: `cta ${o.className || ""}`, children: e }) });
160
160
  }, T = ({
161
161
  id: t,
@@ -214,7 +214,7 @@ import './assets/@common-rjsf.css';const N = {
214
214
  ] })
215
215
  );
216
216
  }, ce = ({ errors: t = [], idSchema: e }) => {
217
- const s = V(e);
217
+ const s = W(e);
218
218
  return t.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: t.filter((o) => !!o).map((o, r) => /* @__PURE__ */ n.jsxs(E.Fragment, { children: [
219
219
  /* @__PURE__ */ n.jsx("span", {}),
220
220
  /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
@@ -240,14 +240,14 @@ import './assets/@common-rjsf.css';const N = {
240
240
  ...e,
241
241
  minHeight: "32px",
242
242
  boxShadow: "none",
243
- backgroundColor: "var(--N50)",
243
+ backgroundColor: "var(--bg-secondary)",
244
244
  border: s.isFocused ? "1px solid var(--B500)" : "1px solid var(--N200)",
245
245
  cursor: "pointer"
246
246
  }),
247
247
  option: (e, s) => ({
248
248
  ...e,
249
249
  color: "var(--N900)",
250
- backgroundColor: s.isFocused ? "var(--N100)" : "white",
250
+ backgroundColor: s.isFocused ? "var(--N100)" : "var(--bg-primary)",
251
251
  padding: "10px 12px",
252
252
  cursor: "pointer"
253
253
  }),
@@ -276,12 +276,24 @@ import './assets/@common-rjsf.css';const N = {
276
276
  ...e,
277
277
  border: "1px solid var(--N200)",
278
278
  borderRadius: "4px",
279
- background: "white",
279
+ background: "var(--bg-primary)",
280
280
  height: "28px",
281
281
  marginRight: "8px",
282
282
  padding: "2px",
283
283
  fontSize: "12px"
284
284
  }),
285
+ singleValue: (e) => ({
286
+ ...e,
287
+ color: "var(--N900)"
288
+ }),
289
+ input: (e) => ({
290
+ ...e,
291
+ color: "var(--N900)"
292
+ }),
293
+ menu: (e) => ({
294
+ ...e,
295
+ backgroundColor: "var(--bg-menu)"
296
+ }),
285
297
  ...t
286
298
  }), Le = (t) => {
287
299
  try {
@@ -316,7 +328,7 @@ import './assets/@common-rjsf.css';const N = {
316
328
  return "";
317
329
  const e = t.trim();
318
330
  return e.match(/^\w+(\/\w+)*$/g) ? `/${e}` : e.match(/^\w+(\.\w+)*$/g) ? `/${e.replaceAll(/\./g, "/")}` : e;
319
- }, F = {
331
+ }, C = {
320
332
  value: !1,
321
333
  path: ""
322
334
  }, me = (t) => {
@@ -326,13 +338,13 @@ import './assets/@common-rjsf.css';const N = {
326
338
  return typeof e == "string" ? {
327
339
  value: !0,
328
340
  path: v(e)
329
- } : typeof e != "object" ? structuredClone(F) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
341
+ } : typeof e != "object" ? structuredClone(C) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
330
342
  value: e.condition,
331
343
  path: v(e.value)
332
344
  } : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
333
345
  value: e.value,
334
346
  path: v(e.path)
335
- } : structuredClone(F);
347
+ } : structuredClone(C);
336
348
  }, ue = ({
337
349
  disabled: t,
338
350
  formData: e,
@@ -485,7 +497,7 @@ import './assets/@common-rjsf.css';const N = {
485
497
  ),
486
498
  /* @__PURE__ */ n.jsx("span", { className: "dc__capitalize ml-8", children: f.toString() })
487
499
  ] });
488
- }, C = pe(), ge = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(O.MenuList, { ...e, children: Array.isArray(t) ? t.slice(0, 20) : t }), je = (t) => /* @__PURE__ */ n.jsx(O.DropdownIndicator, { ...t, children: /* @__PURE__ */ n.jsx(Q, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), _e = (t) => {
500
+ }, F = pe(), ge = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(O.MenuList, { ...e, children: Array.isArray(t) ? t.slice(0, 20) : t }), je = (t) => /* @__PURE__ */ n.jsx(O.DropdownIndicator, { ...t, children: /* @__PURE__ */ n.jsx(Q, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), _e = (t) => {
489
501
  const {
490
502
  id: e,
491
503
  multiple: s = !1,
@@ -516,11 +528,11 @@ import './assets/@common-rjsf.css';const N = {
516
528
  placeholder: p || N.SELECT,
517
529
  isDisabled: a || i,
518
530
  styles: {
519
- ...C,
531
+ ...F,
520
532
  control: (g) => ({
521
533
  ...g,
522
- ...C.control,
523
- backgroundColor: "var(--N50)"
534
+ ...F.control,
535
+ backgroundColor: "var(--bg-secondary)"
524
536
  })
525
537
  },
526
538
  components: {
@@ -1,4 +1,4 @@
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, D as ti, E as ei, F as ri, G as ni, H as ii, I as Wr, K as ai, L as oi, M as si, N as ui, O as li, P as fi, S as ci, T as yt, U as k, V as pe, W as Zr, X as vi, Y as di, Z as W, $, a0 as pi, a1 as he, a2 as Dt, a3 as hi, a4 as mi, a5 as $r, a6 as Mt, a7 as O, a8 as me, a9 as gi, aa as oe, ab as yi } from "./@vendor-CwAQS8iU.js";
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, D as ti, E as ei, F as ri, G as ni, H as ii, I as Wr, K as ai, L as oi, M as si, N as ui, O as li, P as fi, S as ci, T as yt, U as k, V as pe, W as Zr, X as vi, Y as di, Z as W, $, a0 as pi, a1 as he, a2 as Dt, a3 as hi, a4 as mi, a5 as $r, a6 as Mt, a7 as O, a8 as me, a9 as gi, aa as oe, ab as yi } from "./@vendor-QI4m26H1.js";
2
2
  import * as K from "react";
3
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) {
@@ -1,5 +1,5 @@
1
1
  import Te from "react";
2
- import { ac as xe, ad as we, ae as ve, af as lr, ag as Le, ah as Je, ai as tt, aj as at, ak as et, al as lt, am as rt, an as Xn, ao as sr, ap as Jn, aq as bt, ar as Go, as as dr, at as eo, au as to, av as ao, aw as $o, ax as Yo, ay as ur, az as Fe, aA as Rt, aB as Uo, aC as cr, aD as Qo, aE as Cr, aF as Zo, aG as Xo, aH as Jo } from "./@vendor-CwAQS8iU.js";
2
+ import { ac as xe, ad as we, ae as ve, af as lr, ag as Le, ah as Je, ai as tt, aj as at, ak as et, al as lt, am as rt, an as Xn, ao as sr, ap as Jn, aq as bt, ar as Go, as as dr, at as eo, au as to, av as ao, aw as $o, ax as Yo, ay as ur, az as Fe, aA as Rt, aB as Uo, aC as cr, aD as Qo, aE as Cr, aF as Zo, aG as Xo, aH as Jo } from "./@vendor-QI4m26H1.js";
3
3
  import { r as Ne, g as ei, h as ti } from "./@moment-C_WeV3Af.js";
4
4
  import './assets/@react-dates.css';var ro = {}, Wt = {}, jt = {}, Mr;
5
5
  function Ve() {
@@ -1,4 +1,4 @@
1
- import { aI as xt, aJ as Bt, aK as Ft, aL as v, aM as U, aN as xe, ay as re, aO as h, aG as f, aP as Y, aQ as Vt, aR as Ue, aS as Et, aT as yt, aU as Wt, aV as Xt, aW as Zt, aX as ne } from "./@vendor-CwAQS8iU.js";
1
+ import { aI as xt, aJ as Bt, aK as Ft, aL as v, aM as U, aN as xe, ay as re, aO as h, aG as f, aP as Y, aQ as Vt, aR as Ue, aS as Et, aT as yt, aU as Wt, aV as Xt, aW as Zt, aX as ne } from "./@vendor-QI4m26H1.js";
2
2
  import * as y from "react";
3
3
  import { useContext as Nt, useRef as j, useState as ee, createContext as St, useMemo as q, useCallback as D, Component as Rt, Fragment as Be, useEffect as Qe, forwardRef as Ht } from "react";
4
4
  import { createPortal as Tt } from "react-dom";