@devtron-labs/devtron-fe-common-lib 1.20.4 → 1.20.5-alpha-8
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-DLmaobU2.js → @code-editor-BO1bHk5C.js} +11043 -9481
- package/dist/{@common-rjsf-DS5LSU3C.js → @common-rjsf-BMcdpRk4.js} +30 -30
- package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-DMkBQPN0.js} +92 -90
- package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-BjZWpiVv.js} +1 -1
- package/dist/{@react-select-DS68hCUM.js → @react-select-DtwlfcIG.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-M81Af3Qs.js} +1 -1
- package/dist/{@vendor-3ORIJA0h.js → @vendor-DceGoESd.js} +26335 -18086
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/API/types.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +1 -0
- package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +15 -0
- package/dist/Common/Common.service.d.ts +4 -1
- package/dist/Common/Constants.d.ts +46 -14
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +8 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
- package/dist/Common/Types.d.ts +58 -5
- package/dist/Common/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +13 -7
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +31 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/index.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/types.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/Badge/utils.d.ts +2 -1
- package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
- package/dist/Shared/Components/Charts/constants.d.ts +9 -0
- package/dist/Shared/Components/Charts/index.d.ts +4 -0
- package/dist/Shared/Components/Charts/plugins.d.ts +4 -0
- package/dist/Shared/Components/Charts/types.d.ts +114 -0
- package/dist/Shared/Components/Charts/utils.d.ts +70 -0
- package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +3 -0
- package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +1 -0
- package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +5 -0
- package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
- package/dist/Shared/Components/ContextSwitcher/types.d.ts +0 -1
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
- package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +3 -0
- package/dist/Shared/Components/ExportToCsv/index.d.ts +2 -0
- package/dist/Shared/Components/ExportToCsv/types.d.ts +64 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -3
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +32 -0
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +6 -0
- package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +20 -0
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +6 -4
- package/dist/Shared/Components/TrailingItem/types.d.ts +4 -0
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
- package/dist/Shared/Components/TreeView/types.d.ts +17 -3
- package/dist/Shared/Components/index.d.ts +6 -0
- package/dist/Shared/Helpers.d.ts +2 -0
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -5
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +5 -20
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
- package/dist/Shared/Services/common.service.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +6 -0
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +20 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
- package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
- package/dist/assets/ic-arrow-line-down.b6a98848.svg +3 -0
- package/dist/assets/ic-aws.b094356f.svg +11 -0
- package/dist/assets/ic-bg-build.8609d0ea.svg +13 -0
- package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
- package/dist/assets/ic-bg-production-pipelines.2951cdc0.svg +22 -0
- package/dist/assets/ic-bg-project.84658405.svg +12 -0
- package/dist/assets/ic-bg-scan.2249360c.svg +28 -0
- package/dist/assets/ic-bg-webhook.b455152d.svg +13 -0
- package/dist/assets/ic-bot.65f403dd.svg +3 -0
- package/dist/assets/ic-building.2405d07b.svg +3 -0
- package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
- package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
- package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
- package/dist/assets/ic-coins.2c15f406.svg +3 -0
- package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
- package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
- package/dist/assets/ic-edit-lines.57927b07.svg +3 -0
- package/dist/assets/ic-file-download.ca57c068.svg +5 -0
- package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
- package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
- package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
- package/dist/assets/ic-google-cloud.a0198038.svg +6 -0
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
- package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +3 -0
- package/dist/assets/ic-otc-cloud.43b31bd8.svg +5 -0
- package/dist/assets/ic-priority-medium-fill.7bab0ff8.svg +4 -0
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
- package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
- package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1007 -957
- package/package.json +4 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -1,7 +1,7 @@
|
|
1
|
-
import { j as n,
|
1
|
+
import { j as n, aK as v, aM as J, aL as K } from "./@vendor-DceGoESd.js";
|
2
2
|
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
3
3
|
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
4
|
-
import { T as O, j as F, c as
|
4
|
+
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-BO1bHk5C.js";
|
5
5
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
6
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
7
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
@@ -38,7 +38,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
38
38
|
}
|
39
39
|
) })
|
40
40
|
] });
|
41
|
-
},
|
41
|
+
}, w = ({
|
42
42
|
showLabel: e,
|
43
43
|
label: t,
|
44
44
|
required: s,
|
@@ -108,7 +108,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
108
108
|
registry: c
|
109
109
|
}
|
110
110
|
)
|
111
|
-
] }) : /* @__PURE__ */ n.jsx(
|
111
|
+
] }) : /* @__PURE__ */ n.jsx(w, { label: u, required: d, showLabel: !0, id: r.$id, children: /* @__PURE__ */ n.jsx(
|
112
112
|
A,
|
113
113
|
{
|
114
114
|
label: u,
|
@@ -200,7 +200,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
200
200
|
}
|
201
201
|
),
|
202
202
|
/* @__PURE__ */ n.jsx(
|
203
|
-
|
203
|
+
w,
|
204
204
|
{
|
205
205
|
label: s,
|
206
206
|
showLabel: j,
|
@@ -222,7 +222,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
222
222
|
r
|
223
223
|
] })
|
224
224
|
] }, a)) });
|
225
|
-
},
|
225
|
+
}, Te = (e, t) => {
|
226
226
|
switch (e) {
|
227
227
|
case oe.NewStringDefault:
|
228
228
|
return "";
|
@@ -257,7 +257,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
257
257
|
default:
|
258
258
|
return "null";
|
259
259
|
}
|
260
|
-
},
|
260
|
+
}, T = (e) => {
|
261
261
|
if (!e)
|
262
262
|
return "";
|
263
263
|
const t = e.trim(), r = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
|
@@ -265,25 +265,25 @@ import './assets/@common-rjsf.css';const P = {
|
|
265
265
|
}, I = {
|
266
266
|
value: !1,
|
267
267
|
path: ""
|
268
|
-
},
|
268
|
+
}, ve = (e) => {
|
269
269
|
if (!e)
|
270
270
|
return null;
|
271
271
|
const t = structuredClone(e);
|
272
272
|
return typeof t == "string" ? {
|
273
273
|
value: !0,
|
274
|
-
path:
|
274
|
+
path: T(t)
|
275
275
|
} : typeof t != "object" ? structuredClone(I) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
|
276
276
|
value: t.condition,
|
277
|
-
path:
|
277
|
+
path: T(t.value)
|
278
278
|
} : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
|
279
279
|
value: t.value,
|
280
|
-
path:
|
280
|
+
path: T(t.path)
|
281
281
|
} : structuredClone(I);
|
282
282
|
}, H = (e, t, s) => {
|
283
283
|
e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([r, a]) => {
|
284
284
|
H(a, `${t}/${r}`, s);
|
285
|
-
}), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (s[t] =
|
286
|
-
},
|
285
|
+
}), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (s[t] = T(e.updatePath ?? t)));
|
286
|
+
}, Se = (e) => {
|
287
287
|
const t = {};
|
288
288
|
return H(e, "", t), t;
|
289
289
|
}, M = (e, t, s) => {
|
@@ -299,7 +299,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
299
299
|
return delete a[r], a;
|
300
300
|
}
|
301
301
|
return e;
|
302
|
-
},
|
302
|
+
}, we = (e, t) => {
|
303
303
|
if (!e || typeof e != "object" || Array.isArray(e))
|
304
304
|
throw new Error("Invalid object");
|
305
305
|
if (!t || !t.startsWith("/"))
|
@@ -315,16 +315,16 @@ import './assets/@common-rjsf.css';const P = {
|
|
315
315
|
return r && (Object.entries(s).forEach(([a, i]) => {
|
316
316
|
if (a === i || !i)
|
317
317
|
return;
|
318
|
-
const l =
|
318
|
+
const l = v({
|
319
319
|
json: t,
|
320
|
-
path:
|
320
|
+
path: S(a),
|
321
321
|
resultType: "value",
|
322
322
|
wrap: !1
|
323
323
|
});
|
324
|
-
l === void 0 ? r =
|
325
|
-
const o =
|
324
|
+
l === void 0 ? r = we(r, a) : r = F([N(a, l), r]);
|
325
|
+
const o = v({
|
326
326
|
json: e,
|
327
|
-
path:
|
327
|
+
path: S(a),
|
328
328
|
resultType: "value",
|
329
329
|
wrap: !1
|
330
330
|
});
|
@@ -334,9 +334,9 @@ import './assets/@common-rjsf.css';const P = {
|
|
334
334
|
...Object.entries(t).map(([s, r]) => {
|
335
335
|
if (s === r || !r)
|
336
336
|
return {};
|
337
|
-
const a =
|
337
|
+
const a = v({
|
338
338
|
json: e,
|
339
|
-
path:
|
339
|
+
path: S(r),
|
340
340
|
resultType: "value",
|
341
341
|
wrap: !1
|
342
342
|
});
|
@@ -372,11 +372,11 @@ import './assets/@common-rjsf.css';const P = {
|
|
372
372
|
if (!j)
|
373
373
|
return !0;
|
374
374
|
try {
|
375
|
-
const _ =
|
375
|
+
const _ = ve(j);
|
376
376
|
if (!_.path)
|
377
377
|
throw new Error("Empty path property of hidden descriptor field");
|
378
|
-
const y =
|
379
|
-
path:
|
378
|
+
const y = v({
|
379
|
+
path: S(_.path),
|
380
380
|
json: m,
|
381
381
|
resultType: "value",
|
382
382
|
wrap: !1
|
@@ -388,7 +388,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
388
388
|
}).map((p) => p.content);
|
389
389
|
return h ? a.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
390
390
|
/* @__PURE__ */ n.jsx(
|
391
|
-
|
391
|
+
w,
|
392
392
|
{
|
393
393
|
label: d,
|
394
394
|
required: o,
|
@@ -399,7 +399,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
399
399
|
}
|
400
400
|
),
|
401
401
|
u
|
402
|
-
] }) : /* @__PURE__ */ n.jsx(
|
402
|
+
] }) : /* @__PURE__ */ n.jsx(w, { label: d, required: o, showLabel: !0, id: s.$id, children: u }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
403
403
|
x,
|
404
404
|
u
|
405
405
|
] });
|
@@ -542,7 +542,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
542
542
|
WrapIfAdditionalTemplate: Pe
|
543
543
|
}, Ie = z, De = ne, qe = G((e, t) => {
|
544
544
|
const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = E(() => {
|
545
|
-
const o =
|
545
|
+
const o = Se(e.schema);
|
546
546
|
return {
|
547
547
|
schemaPathToUpdatePathMap: o,
|
548
548
|
isUpdatePathKeywordPresent: Object.entries(o).some(([c, d]) => c !== d)
|
@@ -587,7 +587,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
587
587
|
},
|
588
588
|
formContext: a,
|
589
589
|
widgets: { ...Re, ...e.widgets },
|
590
|
-
translateString:
|
590
|
+
translateString: Te,
|
591
591
|
ref: t
|
592
592
|
}
|
593
593
|
),
|
@@ -598,7 +598,7 @@ export {
|
|
598
598
|
Je as H,
|
599
599
|
qe as R,
|
600
600
|
Ke as a,
|
601
|
-
|
602
|
-
|
601
|
+
Se as b,
|
602
|
+
T as c,
|
603
603
|
Ve as g
|
604
604
|
};
|