@devtron-labs/devtron-fe-common-lib 1.14.0-pre-0 → 1.14.1-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-Bk1EiJbr.js → @code-editor-88djyVSe.js} +10784 -10936
- package/dist/{@common-rjsf-N-B6bUkj.js → @common-rjsf-C7GozLa4.js} +7 -7
- package/dist/{@framer-motion-u7P-WzAO.js → @framer-motion-eB9Rj-_8.js} +1 -1
- package/dist/{@react-dates-B9MPAm_X.js → @react-dates-CJpoumtu.js} +1 -1
- package/dist/{@react-select-BjvVd-sE.js → @react-select-CUbAbK6L.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-B8m_4lZW.js → @react-virtualized-sticky-tree-Ckb5S1RC.js} +1 -1
- package/dist/{@vendor-BtL2Znh4.js → @vendor-4cEd9dja.js} +72 -72
- package/dist/Common/Constants.d.ts +10 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/Types.d.ts +6 -10
- package/dist/Common/index.d.ts +0 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +11 -11
- package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +4 -1
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -5
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +1 -3
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +0 -13
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +4 -5
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -3
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +2 -4
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-arrow-square-out.3d1a0d41.svg +19 -0
- package/dist/assets/ic-email.78fed574.svg +3 -0
- package/dist/index.js +683 -686
- package/package.json +1 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +0 -2
- package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +0 -2
- package/dist/Shared/DocLink/DocLink.d.ts +0 -2
- package/dist/Shared/DocLink/constants.d.ts +0 -91
- package/dist/Shared/DocLink/index.d.ts +0 -3
- package/dist/Shared/DocLink/types.d.ts +0 -11
- package/dist/Shared/DocLink/utils.d.ts +0 -2
- package/dist/assets/empty-create.661d9355.png +0 -0
- package/dist/assets/ic-app-template.82736707.svg +0 -23
- package/dist/assets/ic-devtron-app.a8b688d3.svg +0 -23
- package/dist/assets/ic-devtron-job.1b216232.svg +0 -10
@@ -1,7 +1,7 @@
|
|
1
|
-
import { j as n,
|
2
|
-
import
|
1
|
+
import { j as n, au as y, aw as k, av as W } from "./@vendor-4cEd9dja.js";
|
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, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-88djyVSe.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 B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
|
@@ -12,7 +12,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
12
12
|
SELECT: "Please select an option",
|
13
13
|
INPUT: "Please enter an input",
|
14
14
|
OBJECT_KEY: "Please enter a value for the key"
|
15
|
-
}, ce = "Key not available",
|
15
|
+
}, ce = "Key not available", Je = {
|
16
16
|
"ui:submitButtonOptions": {
|
17
17
|
norender: !0
|
18
18
|
}
|
@@ -214,7 +214,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
214
214
|
);
|
215
215
|
}, je = ({ errors: e = [], idSchema: t }) => {
|
216
216
|
const s = ee(t);
|
217
|
-
return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: e.filter((r) => !!r).map((r, a) => /* @__PURE__ */ n.jsxs(
|
217
|
+
return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: e.filter((r) => !!r).map((r, a) => /* @__PURE__ */ n.jsxs(V.Fragment, { children: [
|
218
218
|
/* @__PURE__ */ n.jsx("span", {}),
|
219
219
|
/* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
|
220
220
|
/* @__PURE__ */ n.jsx(le, { className: "form__icon form__icon--error" }),
|
@@ -556,7 +556,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
556
556
|
ObjectFieldTemplate: we,
|
557
557
|
TitleFieldTemplate: C,
|
558
558
|
WrapIfAdditionalTemplate: Ne
|
559
|
-
}, Ae = K, Re = G, Ye =
|
559
|
+
}, Ae = K, Re = G, Ye = J((e, t) => {
|
560
560
|
const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = P(() => {
|
561
561
|
const o = be(e.schema);
|
562
562
|
return {
|
@@ -608,7 +608,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
608
608
|
);
|
609
609
|
});
|
610
610
|
export {
|
611
|
-
|
611
|
+
Je as H,
|
612
612
|
Ye as R,
|
613
613
|
Ke as a,
|
614
614
|
be as b,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { az as ct, aA as m, aB as M, aC as Xr, aD as Ee, aE as T, aF as at, aG as Kt, aH as oe, aI as We, aJ as J, aK as Wr, aL as ei, aM as Zr, aN as ri, aO as ni, aP as ii, aQ as ai, aR as oi, aS as $r, aT as si, aU as ui, aV as li, aW as fi, aX as ci, aY as vi, aZ as di, a_ as Pt, a$ as k, b0 as he, b1 as qr, b2 as pi, b3 as hi, b4 as W, b5 as Z, b6 as mi, b7 as me, b8 as Mt, b9 as gi, ba as yi, bb as Jr, bc as It, bd as O, be as ge, bf as bi, bg as se, bh as Pi, bi as Vi } from "./@vendor-
|
1
|
+
import { az as ct, aA as m, aB as M, aC as Xr, aD as Ee, aE as T, aF as at, aG as Kt, aH as oe, aI as We, aJ as J, aK as Wr, aL as ei, aM as Zr, aN as ri, aO as ni, aP as ii, aQ as ai, aR as oi, aS as $r, aT as si, aU as ui, aV as li, aW as fi, aX as ci, aY as vi, aZ as di, a_ as Pt, a$ as k, b0 as he, b1 as qr, b2 as pi, b3 as hi, b4 as W, b5 as Z, b6 as mi, b7 as me, b8 as Mt, b9 as gi, ba as yi, bb as Jr, bc as It, bd as O, be as ge, bf as bi, bg as se, bh as Pi, bi as Vi } from "./@vendor-4cEd9dja.js";
|
2
2
|
import * as G from "react";
|
3
3
|
import Le, { createContext as Vt, useContext as F, useLayoutEffect as Ti, useEffect as H, useState as Re, useRef as q, useCallback as ye, useMemo as Ot, forwardRef as Si, createElement as xi, cloneElement as Ci, Children as Ai, isValidElement as wi } from "react";
|
4
4
|
var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze : process.env.NODE_ENV || Ze, Q = function(t) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Te from "react";
|
2
|
-
import { bj as xe, bk as we, bl as ve, bm as lr, bn as Le, bo as Je, bp as tt, bq as at, br as et, bs as lt, bt as rt, bu as Xn, bv as sr, bw as Jn, bx as Dt, by as Go, bz as dr, bA as eo, bB as to, bC as ao, bD as ur, bE as Fe, bF as Rt, bG as $o, bH as cr, bI as Yo, bJ as Cr, bK as Uo, bL as Qo, bM as Zo, bN as Xo, bO as Jo } from "./@vendor-
|
2
|
+
import { bj as xe, bk as we, bl as ve, bm as lr, bn as Le, bo as Je, bp as tt, bq as at, br as et, bs as lt, bt as rt, bu as Xn, bv as sr, bw as Jn, bx as Dt, by as Go, bz as dr, bA as eo, bB as to, bC as ao, bD as ur, bE as Fe, bF as Rt, bG as $o, bH as cr, bI as Yo, bJ as Cr, bK as Uo, bL as Qo, bM as Zo, bN as Xo, bO as Jo } from "./@vendor-4cEd9dja.js";
|
3
3
|
import { r as Ne, h as ei, g 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 { bP as xt, bQ as Bt, bR as Ft, bS as v, bT as U, bU as xe, bD as re, bV as h, bL as f, bW as Y, bX as Vt, bY as Ue, bZ as Et, b_ as yt, b$ as Wt, c0 as Xt, c1 as Zt, c2 as ne } from "./@vendor-
|
1
|
+
import { bP as xt, bQ as Bt, bR as Ft, bS as v, bT as U, bU as xe, bD as re, bV as h, bL as f, bW as Y, bX as Vt, bY as Ue, bZ as Et, b_ as yt, b$ as Wt, c0 as Xt, c1 as Zt, c2 as ne } from "./@vendor-4cEd9dja.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";
|
@@ -2,7 +2,7 @@ var v = Object.defineProperty;
|
|
2
2
|
var E = (a, h, e) => h in a ? v(a, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[h] = e;
|
3
3
|
var f = (a, h, e) => E(a, typeof h != "symbol" ? h + "" : h, e);
|
4
4
|
import u, { createRef as k } from "react";
|
5
|
-
import { c3 as x } from "./@vendor-
|
5
|
+
import { c3 as x } from "./@vendor-4cEd9dja.js";
|
6
6
|
const b = () => typeof navigator < "u" && /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor) ? "-webkit-sticky" : "sticky";
|
7
7
|
var g;
|
8
8
|
(function(a) {
|
@@ -68503,46 +68503,46 @@ const qDe = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c
|
|
68503
68503
|
default: UDe
|
68504
68504
|
}, Symbol.toStringTag, { value: "Module" }));
|
68505
68505
|
export {
|
68506
|
-
|
68507
|
-
|
68508
|
-
|
68509
|
-
|
68506
|
+
noe as $,
|
68507
|
+
h3e as A,
|
68508
|
+
g3e as B,
|
68509
|
+
r3e as C,
|
68510
68510
|
NAe as D,
|
68511
68511
|
Oe as E,
|
68512
|
-
|
68513
|
-
|
68514
|
-
|
68515
|
-
|
68516
|
-
|
68517
|
-
|
68518
|
-
|
68519
|
-
|
68520
|
-
|
68521
|
-
|
68522
|
-
|
68512
|
+
i3e as F,
|
68513
|
+
p3e as G,
|
68514
|
+
Do as H,
|
68515
|
+
kre as I,
|
68516
|
+
QAe as J,
|
68517
|
+
Ff as K,
|
68518
|
+
oB as L,
|
68519
|
+
Vm as M,
|
68520
|
+
Hm as N,
|
68521
|
+
s$ as O,
|
68522
|
+
aB as P,
|
68523
68523
|
pn as Q,
|
68524
68524
|
jAe as R,
|
68525
68525
|
Ue as S,
|
68526
68526
|
Mn as T,
|
68527
|
-
|
68528
|
-
|
68529
|
-
|
68530
|
-
|
68531
|
-
|
68532
|
-
|
68533
|
-
|
68534
|
-
|
68527
|
+
wO as U,
|
68528
|
+
T0 as V,
|
68529
|
+
on as W,
|
68530
|
+
HAe as X,
|
68531
|
+
Te as Y,
|
68532
|
+
n3e as Z,
|
68533
|
+
mue as _,
|
68534
|
+
bue as a,
|
68535
68535
|
g0 as a$,
|
68536
|
-
|
68537
|
-
|
68538
|
-
|
68539
|
-
|
68540
|
-
|
68541
|
-
|
68542
|
-
|
68543
|
-
|
68544
|
-
|
68545
|
-
|
68536
|
+
dt as a0,
|
68537
|
+
b$ as a1,
|
68538
|
+
Pd as a2,
|
68539
|
+
JAe as a3,
|
68540
|
+
ZAe as a4,
|
68541
|
+
YAe as a5,
|
68542
|
+
XAe as a6,
|
68543
|
+
t3e as a7,
|
68544
|
+
Vl as a8,
|
68545
|
+
w3e as a9,
|
68546
68546
|
e3 as aA,
|
68547
68547
|
gAe as aB,
|
68548
68548
|
pAe as aC,
|
@@ -68570,33 +68570,33 @@ export {
|
|
68570
68570
|
$Ae as aY,
|
68571
68571
|
R2 as aZ,
|
68572
68572
|
kS as a_,
|
68573
|
-
|
68574
|
-
|
68575
|
-
|
68576
|
-
|
68577
|
-
|
68578
|
-
|
68579
|
-
|
68580
|
-
|
68581
|
-
|
68582
|
-
|
68583
|
-
|
68584
|
-
|
68585
|
-
|
68586
|
-
|
68587
|
-
|
68588
|
-
|
68589
|
-
|
68590
|
-
|
68591
|
-
|
68592
|
-
|
68593
|
-
|
68594
|
-
|
68595
|
-
|
68596
|
-
|
68573
|
+
x3e as aa,
|
68574
|
+
_3e as ab,
|
68575
|
+
C3e as ac,
|
68576
|
+
Tz as ad,
|
68577
|
+
Jl as ae,
|
68578
|
+
Zi as af,
|
68579
|
+
JDe as ag,
|
68580
|
+
j3e as ah,
|
68581
|
+
Zg as ai,
|
68582
|
+
Ve as aj,
|
68583
|
+
Xg as ak,
|
68584
|
+
nke as al,
|
68585
|
+
N3e as am,
|
68586
|
+
ja as an,
|
68587
|
+
BSe as ao,
|
68588
|
+
LSe as ap,
|
68589
|
+
wve as aq,
|
68590
|
+
jke as ar,
|
68591
|
+
nAe as as,
|
68592
|
+
J9 as at,
|
68593
|
+
Ot as au,
|
68594
|
+
jX as av,
|
68595
|
+
uS as aw,
|
68596
|
+
Gr as ax,
|
68597
68597
|
Vt as ay,
|
68598
68598
|
vf as az,
|
68599
|
-
|
68599
|
+
cn as b,
|
68600
68600
|
uAe as b$,
|
68601
68601
|
EAe as b0,
|
68602
68602
|
SS as b1,
|
@@ -68661,32 +68661,32 @@ export {
|
|
68661
68661
|
k3e as bx,
|
68662
68662
|
rwe as by,
|
68663
68663
|
D3e as bz,
|
68664
|
-
|
68664
|
+
KAe as c,
|
68665
68665
|
sAe as c0,
|
68666
68666
|
oAe as c1,
|
68667
68667
|
jQ as c2,
|
68668
68668
|
YW as c3,
|
68669
|
-
|
68670
|
-
|
68671
|
-
|
68669
|
+
Ij as d,
|
68670
|
+
a3e as e,
|
68671
|
+
u3e as f,
|
68672
68672
|
xue as g,
|
68673
|
-
|
68673
|
+
o3e as h,
|
68674
68674
|
eAe as i,
|
68675
68675
|
ue as j,
|
68676
68676
|
RA as k,
|
68677
|
-
|
68678
|
-
|
68677
|
+
GAe as l,
|
68678
|
+
y3e as m,
|
68679
68679
|
rAe as n,
|
68680
68680
|
vO as o,
|
68681
|
-
|
68682
|
-
|
68681
|
+
Tle as p,
|
68682
|
+
v3e as q,
|
68683
68683
|
lB as r,
|
68684
68684
|
xF as s,
|
68685
68685
|
U as t,
|
68686
|
-
|
68687
|
-
|
68688
|
-
|
68689
|
-
|
68686
|
+
pie as u,
|
68687
|
+
b3e as v,
|
68688
|
+
l3e as w,
|
68689
|
+
m3e as x,
|
68690
68690
|
s3e as y,
|
68691
|
-
|
68691
|
+
nle as z
|
68692
68692
|
};
|
@@ -5,6 +5,16 @@ export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
|
|
5
5
|
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
7
7
|
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
8
|
+
export declare const DOCUMENTATION: {
|
9
|
+
APP_METRICS: string;
|
10
|
+
APP_TAGS: string;
|
11
|
+
APP_OVERVIEW_TAGS: string;
|
12
|
+
BLOB_STORAGE: string;
|
13
|
+
GLOBAL_CONFIG_BUILD_INFRA: string;
|
14
|
+
ENTERPRISE_LICENSE: string;
|
15
|
+
KUBE_CONFIG: string;
|
16
|
+
TENANT_INSTALLATION: string;
|
17
|
+
};
|
8
18
|
export declare const PATTERNS: {
|
9
19
|
STRING: RegExp;
|
10
20
|
DECIMAL_NUMBERS: RegExp;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("R" | "
|
3
|
+
keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "method" | "action" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { TippyCustomizedProps } from './Types';
|
2
|
-
export declare const TippyCustomized:
|
2
|
+
export declare const TippyCustomized: (props: TippyCustomizedProps) => JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { TippyProps } from '@tippyjs/react';
|
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
5
|
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType } from '../Shared';
|
6
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType,
|
6
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
9
9
|
*
|
@@ -77,12 +77,7 @@ export interface CheckboxProps {
|
|
77
77
|
dataTestId?: string;
|
78
78
|
children?: ReactNode;
|
79
79
|
}
|
80
|
-
export
|
81
|
-
isExternalLink?: T;
|
82
|
-
isEnterprise?: boolean;
|
83
|
-
documentationLink?: T extends true ? string : keyof typeof DOCUMENTATION;
|
84
|
-
};
|
85
|
-
export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo'> & TippyWithBaseDocLinkTypes<T> & {
|
80
|
+
export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
86
81
|
theme: TippyTheme;
|
87
82
|
visible?: boolean;
|
88
83
|
heading?: ReactNode | string;
|
@@ -107,13 +102,14 @@ export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo
|
|
107
102
|
animation?: string;
|
108
103
|
duration?: number;
|
109
104
|
additionalContent?: ReactNode;
|
105
|
+
documentationLink?: string;
|
110
106
|
documentationLinkText?: string;
|
111
107
|
children: React.ReactElement<any>;
|
112
108
|
disableClose?: boolean;
|
113
|
-
}
|
114
|
-
export interface InfoIconTippyProps
|
109
|
+
}
|
110
|
+
export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading' | 'infoText' | 'iconClass' | 'documentationLink' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo'> {
|
115
111
|
dataTestid?: string;
|
116
|
-
children?: TippyCustomizedProps
|
112
|
+
children?: TippyCustomizedProps['children'];
|
117
113
|
iconClassName?: string;
|
118
114
|
buttonPadding?: string;
|
119
115
|
}
|
package/dist/Common/index.d.ts
CHANGED
@@ -23,26 +23,22 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
23
23
|
role?: import('react').AriaRole;
|
24
24
|
about?: string;
|
25
25
|
is?: string;
|
26
|
-
|
27
|
-
prefix?: string;
|
28
|
-
resource?: string;
|
29
|
-
draggable?: boolean | "true" | "false";
|
30
|
-
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
31
|
-
onChange?: import('react').FormEventHandler<HTMLDivElement>;
|
32
|
-
onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
|
33
|
-
onSubmit?: import('react').FormEventHandler<HTMLDivElement>;
|
34
|
-
dir?: string;
|
26
|
+
security?: string;
|
35
27
|
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
36
28
|
"aria-describedby"?: string;
|
37
29
|
"aria-errormessage"?: string;
|
38
30
|
"aria-label"?: string;
|
39
31
|
"aria-labelledby"?: string;
|
32
|
+
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
40
33
|
defaultChecked?: boolean;
|
41
34
|
suppressContentEditableWarning?: boolean;
|
42
35
|
suppressHydrationWarning?: boolean;
|
43
36
|
accessKey?: string;
|
44
37
|
contentEditable?: "inherit" | (boolean | "true" | "false");
|
45
38
|
contextMenu?: string;
|
39
|
+
dir?: string;
|
40
|
+
draggable?: boolean | "true" | "false";
|
41
|
+
hidden?: boolean;
|
46
42
|
lang?: string;
|
47
43
|
placeholder?: string;
|
48
44
|
spellCheck?: boolean | "true" | "false";
|
@@ -51,7 +47,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
51
47
|
radioGroup?: string;
|
52
48
|
datatype?: string;
|
53
49
|
inlist?: any;
|
50
|
+
prefix?: string;
|
54
51
|
property?: string;
|
52
|
+
resource?: string;
|
55
53
|
typeof?: string;
|
56
54
|
vocab?: string;
|
57
55
|
autoCapitalize?: string;
|
@@ -63,7 +61,6 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
63
61
|
itemID?: string;
|
64
62
|
itemRef?: string;
|
65
63
|
results?: number;
|
66
|
-
security?: string;
|
67
64
|
unselectable?: "on" | "off";
|
68
65
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
|
69
66
|
"aria-activedescendant"?: string;
|
@@ -78,7 +75,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
78
75
|
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
|
79
76
|
"aria-details"?: string;
|
80
77
|
"aria-disabled"?: boolean | "true" | "false";
|
81
|
-
"aria-dropeffect"?: "link" | "none" | "
|
78
|
+
"aria-dropeffect"?: "link" | "none" | "popup" | "copy" | "execute" | "move";
|
82
79
|
"aria-expanded"?: boolean | "true" | "false";
|
83
80
|
"aria-flowto"?: string;
|
84
81
|
"aria-grabbed"?: boolean | "true" | "false";
|
@@ -127,7 +124,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
127
124
|
onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLDivElement>;
|
128
125
|
onFocus?: import('react').FocusEventHandler<HTMLDivElement>;
|
129
126
|
onFocusCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
127
|
+
onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
|
130
128
|
onBlurCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
129
|
+
onChange?: import('react').FormEventHandler<HTMLDivElement>;
|
131
130
|
onChangeCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
132
131
|
onBeforeInput?: import('react').FormEventHandler<HTMLDivElement>;
|
133
132
|
onBeforeInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
@@ -135,6 +134,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
135
134
|
onInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
136
135
|
onReset?: import('react').FormEventHandler<HTMLDivElement>;
|
137
136
|
onResetCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
137
|
+
onSubmit?: import('react').FormEventHandler<HTMLDivElement>;
|
138
138
|
onSubmitCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
139
139
|
onInvalid?: import('react').FormEventHandler<HTMLDivElement>;
|
140
140
|
onInvalidCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
@@ -11,7 +11,10 @@ export declare enum WorkflowRunnerStatusDTO {
|
|
11
11
|
QUEUED = "Queued",
|
12
12
|
INITIATING = "Initiating",
|
13
13
|
HEALTHY = "Healthy",
|
14
|
-
DEGRADED = "Degraded"
|
14
|
+
DEGRADED = "Degraded",
|
15
|
+
MISSING = "Missing",
|
16
|
+
UNKNOWN = "Unknown",
|
17
|
+
SUSPENDED = "Suspended"
|
15
18
|
}
|
16
19
|
export interface ProcessUnableToFetchOrTimedOutStatusType {
|
17
20
|
timelineData: DeploymentStatusBreakdownItemType;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { FeatureDescriptionModalProps } from './types';
|
2
|
-
export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig,
|
2
|
+
export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, }: FeatureDescriptionModalProps) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DescriptorProps } from './types';
|
2
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig,
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, }: DescriptorProps) => JSX.Element;
|
3
3
|
export default FeatureTitleWithInfo;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
2
|
-
import { DocLinkProps } from '@Shared/DocLink/types';
|
3
2
|
import { ImageType } from '../../../Common';
|
4
3
|
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
5
|
-
interface BaseFeatureDescriptionModalProps
|
4
|
+
interface BaseFeatureDescriptionModalProps {
|
6
5
|
renderDescriptionContent?: () => ReactNode;
|
7
|
-
docLink?:
|
6
|
+
docLink?: string;
|
8
7
|
imageVariant?: ImageType;
|
9
8
|
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
10
9
|
imageStyles?: React.CSSProperties;
|
@@ -34,7 +33,6 @@ export type FeatureDescriptionModalProps = {
|
|
34
33
|
title: string;
|
35
34
|
closeModalText?: string;
|
36
35
|
closeModal?: () => void;
|
37
|
-
isEnterprise?: boolean;
|
38
36
|
} & ((BaseFeatureDescriptionModalProps & {
|
39
37
|
tabsConfig?: never;
|
40
38
|
}) | FeatureDescriptionModalWithTabsConfig);
|
@@ -55,6 +53,5 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
|
|
55
53
|
* @default false
|
56
54
|
*/
|
57
55
|
showInfoIcon?: boolean;
|
58
|
-
isEnterprise?: boolean;
|
59
56
|
};
|
60
57
|
export {};
|
@@ -1,4 +1,2 @@
|
|
1
1
|
export { default as GenericInfoCard } from './GenericInfoCard.component';
|
2
|
-
export
|
3
|
-
export { GenericInfoListSkeleton } from './GenericInfoListSkeleton';
|
4
|
-
export { GenericInfoCardBorderVariant, type GenericInfoCardListingProps, type GenericInfoCardProps } from './types';
|
2
|
+
export { GenericInfoCardBorderVariant, type GenericInfoCardProps } from './types';
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { GenericFilterEmptyStateProps } from '@Common/EmptyState/types';
|
4
|
-
import { GenericEmptyStateType } from '../../../Common/Types';
|
5
|
-
import { APIResponseHandlerProps } from '../APIResponseHandler';
|
6
3
|
type BaseGenericInfoCardProps = {
|
7
4
|
title: string;
|
8
5
|
description: string;
|
@@ -26,14 +23,4 @@ export type GenericInfoCardProps = {
|
|
26
23
|
} & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
|
27
24
|
isLoading?: boolean;
|
28
25
|
} & BaseGenericInfoCardProps));
|
29
|
-
export interface GenericInfoCardListingProps extends Pick<GenericInfoCardProps, 'borderVariant'>, Pick<GenericFilterEmptyStateProps, 'handleClearFilters'> {
|
30
|
-
list: (Pick<GenericInfoCardProps, 'Icon' | 'author' | 'description' | 'linkProps' | 'onClick' | 'title'> & Record<'id', string>)[];
|
31
|
-
emptyStateConfig: Pick<GenericEmptyStateType, 'title' | 'subTitle' | 'image' | 'renderButton' | 'renderButton'>;
|
32
|
-
searchKey?: string;
|
33
|
-
reloadList: () => void;
|
34
|
-
error?: APIResponseHandlerProps['error'];
|
35
|
-
isLoading?: boolean;
|
36
|
-
}
|
37
|
-
export interface GenericInfoListSkeletonProps extends Partial<Pick<GenericInfoCardProps, 'borderVariant'>> {
|
38
|
-
}
|
39
26
|
export {};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PageHeaderType } from './types';
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps,
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { ModuleStatus } from '../../types';
|
2
|
-
import {
|
2
|
+
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
3
3
|
import { ActionMenuProps } from '../ActionMenu';
|
4
4
|
export declare enum InstallationType {
|
5
5
|
OSS_KUBECTL = "oss_kubectl",
|
6
6
|
OSS_HELM = "oss_helm",
|
7
7
|
ENTERPRISE = "enterprise"
|
8
8
|
}
|
9
|
-
export interface PageHeaderType
|
9
|
+
export interface PageHeaderType {
|
10
10
|
headerName?: string;
|
11
11
|
showTabs?: boolean;
|
12
12
|
additionalHeaderInfo?: () => JSX.Element;
|
@@ -17,14 +17,13 @@ export interface PageHeaderType<T extends boolean = false> {
|
|
17
17
|
showCloseButton?: boolean;
|
18
18
|
onClose?: () => void;
|
19
19
|
markAsBeta?: boolean;
|
20
|
-
tippyProps?: Pick<TippyCustomizedProps
|
20
|
+
tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
|
21
21
|
isTippyCustomized?: boolean;
|
22
|
-
tippyRedirectLink?:
|
22
|
+
tippyRedirectLink?: string;
|
23
23
|
TippyIcon?: React.FunctionComponent<any>;
|
24
24
|
tippyMessage?: string;
|
25
25
|
onClickTippyButton?: () => void;
|
26
26
|
};
|
27
|
-
isEnterprise?: boolean;
|
28
27
|
}
|
29
28
|
export interface ServerInfo {
|
30
29
|
currentVersion: string;
|
@@ -6,7 +6,6 @@ export declare const iconMap: {
|
|
6
6
|
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
7
|
'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
8
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
|
-
'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
9
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
10
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
11
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -50,15 +49,14 @@ export declare const iconMap: {
|
|
50
49
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
50
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
51
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
|
-
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
52
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
-
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
53
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
54
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
55
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
56
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
57
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
58
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
|
+
'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
60
|
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
61
|
'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
62
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
2
|
-
declare const InfoIconTippy:
|
2
|
+
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
|
3
3
|
export default InfoIconTippy;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ModalSidebarPanelProps } from './types';
|
2
|
-
declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink,
|
2
|
+
declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, }: ModalSidebarPanelProps) => JSX.Element;
|
3
3
|
export default ModalSidebarPanel;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
|
3
|
-
import { PageHeaderType } from '../Header/types';
|
4
|
-
export interface ModalSidebarPanelProps<T extends boolean = false> extends Pick<PageHeaderType, 'isEnterprise'> {
|
2
|
+
export interface ModalSidebarPanelProps {
|
5
3
|
rootClassName?: string;
|
6
4
|
heading: string | null;
|
7
5
|
icon?: JSX.Element;
|
8
6
|
children?: ReactNode;
|
9
|
-
documentationLink:
|
7
|
+
documentationLink: string;
|
10
8
|
}
|
@@ -87,6 +87,6 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
|
|
87
87
|
triggerRect: DOMRect;
|
88
88
|
popoverRect: DOMRect;
|
89
89
|
}) => {
|
90
|
-
fallbackPosition: "top" | "
|
90
|
+
fallbackPosition: "top" | "bottom" | "right" | "left";
|
91
91
|
fallbackAlignment: "start" | "middle" | "end";
|
92
92
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SEVERITIES } from './constants';
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--Y500)" | "var(--G500)" | "var(--R700)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|