@devtron-labs/devtron-fe-common-lib 1.14.0 → 1.14.1-pre-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-YS-brIXD.js → @code-editor-DCLOIdJm.js} +25559 -25400
- package/dist/{@common-rjsf--YchCFEp.js → @common-rjsf-DZwjTDv9.js} +7 -7
- package/dist/{@framer-motion-eB9Rj-_8.js → @framer-motion-u7P-WzAO.js} +1 -1
- package/dist/{@react-dates-CJpoumtu.js → @react-dates-B9MPAm_X.js} +1 -1
- package/dist/{@react-select-CUbAbK6L.js → @react-select-BjvVd-sE.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-Ckb5S1RC.js → @react-virtualized-sticky-tree-B8m_4lZW.js} +1 -1
- package/dist/{@vendor-4cEd9dja.js → @vendor-BtL2Znh4.js} +72 -72
- package/dist/Common/Constants.d.ts +0 -10
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +3 -2
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/Types.d.ts +10 -6
- package/dist/Common/index.d.ts +1 -0
- 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 +5 -2
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +5 -4
- package/dist/Shared/Components/Icon/Icon.d.ts +3 -0
- 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 +4 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/DocLink/DocLink.d.ts +2 -0
- package/dist/Shared/DocLink/constants.d.ts +91 -0
- package/dist/Shared/DocLink/index.d.ts +3 -0
- package/dist/Shared/DocLink/types.d.ts +11 -0
- package/dist/Shared/DocLink/utils.d.ts +2 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/empty-create.661d9355.png +0 -0
- package/dist/assets/ic-app-template.82736707.svg +23 -0
- package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
- package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
- package/dist/index.js +686 -682
- package/package.json +1 -1
- package/dist/assets/ic-arrow-square-out.3d1a0d41.svg +0 -19
@@ -1,7 +1,7 @@
|
|
1
|
-
import { j as n,
|
2
|
-
import
|
1
|
+
import { j as n, J as y, b as k, a as W } from "./@vendor-BtL2Znh4.js";
|
2
|
+
import J, { forwardRef as V, 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-DCLOIdJm.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", Ve = {
|
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(J.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 = V((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
|
+
Ve 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-BtL2Znh4.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-BtL2Znh4.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-BtL2Znh4.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-BtL2Znh4.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
|
+
T0 as $,
|
68507
|
+
b3e as A,
|
68508
|
+
l3e as B,
|
68509
|
+
m3e as C,
|
68510
68510
|
NAe as D,
|
68511
68511
|
Oe as E,
|
68512
|
-
|
68513
|
-
|
68514
|
-
|
68515
|
-
|
68516
|
-
|
68517
|
-
|
68518
|
-
|
68519
|
-
|
68520
|
-
|
68521
|
-
|
68522
|
-
|
68512
|
+
nle as F,
|
68513
|
+
h3e as G,
|
68514
|
+
g3e as H,
|
68515
|
+
r3e as I,
|
68516
|
+
Ot as J,
|
68517
|
+
i3e as K,
|
68518
|
+
p3e as L,
|
68519
|
+
Do as M,
|
68520
|
+
kre as N,
|
68521
|
+
QAe as O,
|
68522
|
+
Ff 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
|
+
oB as U,
|
68528
|
+
Vm as V,
|
68529
|
+
Hm as W,
|
68530
|
+
s$ as X,
|
68531
|
+
aB as Y,
|
68532
|
+
wO as Z,
|
68533
|
+
Gr as _,
|
68534
|
+
jX as a,
|
68535
68535
|
g0 as a$,
|
68536
|
-
|
68537
|
-
|
68538
|
-
|
68539
|
-
|
68540
|
-
|
68541
|
-
|
68542
|
-
|
68543
|
-
|
68544
|
-
|
68545
|
-
|
68536
|
+
on as a0,
|
68537
|
+
HAe as a1,
|
68538
|
+
Te as a2,
|
68539
|
+
n3e as a3,
|
68540
|
+
mue as a4,
|
68541
|
+
noe as a5,
|
68542
|
+
dt as a6,
|
68543
|
+
b$ as a7,
|
68544
|
+
Pd as a8,
|
68545
|
+
JAe 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
|
+
ZAe as aa,
|
68574
|
+
YAe as ab,
|
68575
|
+
XAe as ac,
|
68576
|
+
t3e as ad,
|
68577
|
+
Vl as ae,
|
68578
|
+
w3e as af,
|
68579
|
+
x3e as ag,
|
68580
|
+
_3e as ah,
|
68581
|
+
C3e as ai,
|
68582
|
+
Tz as aj,
|
68583
|
+
Jl as ak,
|
68584
|
+
Zi as al,
|
68585
|
+
JDe as am,
|
68586
|
+
j3e as an,
|
68587
|
+
Zg as ao,
|
68588
|
+
Ve as ap,
|
68589
|
+
Xg as aq,
|
68590
|
+
nke as ar,
|
68591
|
+
N3e as as,
|
68592
|
+
ja as at,
|
68593
|
+
BSe as au,
|
68594
|
+
LSe as av,
|
68595
|
+
wve as aw,
|
68596
|
+
jke as ax,
|
68597
68597
|
Vt as ay,
|
68598
68598
|
vf as az,
|
68599
|
-
|
68599
|
+
uS 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
|
+
nAe 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
|
+
bue as d,
|
68670
|
+
cn as e,
|
68671
|
+
KAe as f,
|
68672
68672
|
xue as g,
|
68673
|
-
|
68673
|
+
Ij as h,
|
68674
68674
|
eAe as i,
|
68675
68675
|
ue as j,
|
68676
68676
|
RA as k,
|
68677
|
-
|
68678
|
-
|
68677
|
+
a3e as l,
|
68678
|
+
u3e as m,
|
68679
68679
|
rAe as n,
|
68680
68680
|
vO as o,
|
68681
|
-
|
68682
|
-
|
68681
|
+
GAe as p,
|
68682
|
+
o3e as q,
|
68683
68683
|
lB as r,
|
68684
68684
|
xF as s,
|
68685
68685
|
U as t,
|
68686
|
-
|
68687
|
-
|
68688
|
-
|
68689
|
-
|
68686
|
+
J9 as u,
|
68687
|
+
y3e as v,
|
68688
|
+
Tle as w,
|
68689
|
+
v3e as x,
|
68690
68690
|
s3e as y,
|
68691
|
-
|
68691
|
+
pie as z
|
68692
68692
|
};
|
@@ -5,16 +5,6 @@ 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
|
-
};
|
18
8
|
export declare const PATTERNS: {
|
19
9
|
STRING: RegExp;
|
20
10
|
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" | "Enter" | "Escape" | "." | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "Space" | "Control" | "Shift" | "Meta" | "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" | "tagName" | "onChange" | "onBlur" | "onSubmit" | "target" | "onFocus" | "onError" | "autoComplete" | "method" | "action" | "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,3 +1,3 @@
|
|
1
1
|
import { SegmentProps } from './types';
|
2
|
-
declare const Segment: ({ segment, isSelected, name,
|
2
|
+
declare const Segment: ({ segment, isSelected, name, onChange, fullWidth, size, disabled }: SegmentProps) => JSX.Element;
|
3
3
|
export default Segment;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { RefObject } from 'react';
|
2
1
|
import { TooltipProps } from '../Tooltip';
|
3
2
|
import { IconsProps, SelectPickerOptionType } from '../../Shared/Components';
|
4
3
|
import { ComponentSizeType } from '../../Shared/constants';
|
@@ -46,6 +45,9 @@ export type SegmentedControlProps = {
|
|
46
45
|
* List of segments to be displayed
|
47
46
|
*/
|
48
47
|
segments: SegmentType[];
|
48
|
+
/**
|
49
|
+
* Please make sure this is unique
|
50
|
+
*/
|
49
51
|
name: string;
|
50
52
|
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.small | ComponentSizeType.medium>;
|
51
53
|
fullWidth?: boolean;
|
@@ -66,6 +68,5 @@ export type SegmentedControlProps = {
|
|
66
68
|
export interface SegmentProps extends Required<Pick<SegmentedControlProps, 'name' | 'onChange' | 'fullWidth' | 'size' | 'disabled'>> {
|
67
69
|
isSelected: boolean;
|
68
70
|
segment: SegmentType;
|
69
|
-
selectedSegmentRef: RefObject<HTMLDivElement> | undefined;
|
70
71
|
}
|
71
72
|
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { TippyCustomizedProps } from './Types';
|
2
|
-
export declare const TippyCustomized: (props: TippyCustomizedProps) => JSX.Element;
|
2
|
+
export declare const TippyCustomized: <T extends boolean = false>(props: TippyCustomizedProps<T>) => 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, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
6
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, DOCUMENTATION, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
9
9
|
*
|
@@ -77,7 +77,12 @@ export interface CheckboxProps {
|
|
77
77
|
dataTestId?: string;
|
78
78
|
children?: ReactNode;
|
79
79
|
}
|
80
|
-
export
|
80
|
+
export type TippyWithBaseDocLinkTypes<T extends boolean> = {
|
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> & {
|
81
86
|
theme: TippyTheme;
|
82
87
|
visible?: boolean;
|
83
88
|
heading?: ReactNode | string;
|
@@ -102,14 +107,13 @@ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
|
102
107
|
animation?: string;
|
103
108
|
duration?: number;
|
104
109
|
additionalContent?: ReactNode;
|
105
|
-
documentationLink?: string;
|
106
110
|
documentationLinkText?: string;
|
107
111
|
children: React.ReactElement<any>;
|
108
112
|
disableClose?: boolean;
|
109
|
-
}
|
110
|
-
export interface InfoIconTippyProps extends Pick<TippyCustomizedProps
|
113
|
+
};
|
114
|
+
export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | 'isEnterprise' | 'isExternalLink'> {
|
111
115
|
dataTestid?: string;
|
112
|
-
children?: TippyCustomizedProps['children'];
|
116
|
+
children?: TippyCustomizedProps<T>['children'];
|
113
117
|
iconClassName?: string;
|
114
118
|
buttonPadding?: string;
|
115
119
|
}
|
package/dist/Common/index.d.ts
CHANGED
@@ -23,22 +23,26 @@ 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
|
-
|
26
|
+
hidden?: boolean;
|
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;
|
27
35
|
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
28
36
|
"aria-describedby"?: string;
|
29
37
|
"aria-errormessage"?: string;
|
30
38
|
"aria-label"?: string;
|
31
39
|
"aria-labelledby"?: string;
|
32
|
-
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
33
40
|
defaultChecked?: boolean;
|
34
41
|
suppressContentEditableWarning?: boolean;
|
35
42
|
suppressHydrationWarning?: boolean;
|
36
43
|
accessKey?: string;
|
37
44
|
contentEditable?: "inherit" | (boolean | "true" | "false");
|
38
45
|
contextMenu?: string;
|
39
|
-
dir?: string;
|
40
|
-
draggable?: boolean | "true" | "false";
|
41
|
-
hidden?: boolean;
|
42
46
|
lang?: string;
|
43
47
|
placeholder?: string;
|
44
48
|
spellCheck?: boolean | "true" | "false";
|
@@ -47,9 +51,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
47
51
|
radioGroup?: string;
|
48
52
|
datatype?: string;
|
49
53
|
inlist?: any;
|
50
|
-
prefix?: string;
|
51
54
|
property?: string;
|
52
|
-
resource?: string;
|
53
55
|
typeof?: string;
|
54
56
|
vocab?: string;
|
55
57
|
autoCapitalize?: string;
|
@@ -61,6 +63,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
61
63
|
itemID?: string;
|
62
64
|
itemRef?: string;
|
63
65
|
results?: number;
|
66
|
+
security?: string;
|
64
67
|
unselectable?: "on" | "off";
|
65
68
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
|
66
69
|
"aria-activedescendant"?: string;
|
@@ -75,7 +78,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
75
78
|
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
|
76
79
|
"aria-details"?: string;
|
77
80
|
"aria-disabled"?: boolean | "true" | "false";
|
78
|
-
"aria-dropeffect"?: "link" | "none" | "
|
81
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
79
82
|
"aria-expanded"?: boolean | "true" | "false";
|
80
83
|
"aria-flowto"?: string;
|
81
84
|
"aria-grabbed"?: boolean | "true" | "false";
|
@@ -124,9 +127,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
124
127
|
onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLDivElement>;
|
125
128
|
onFocus?: import('react').FocusEventHandler<HTMLDivElement>;
|
126
129
|
onFocusCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
127
|
-
onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
|
128
130
|
onBlurCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
129
|
-
onChange?: import('react').FormEventHandler<HTMLDivElement>;
|
130
131
|
onChangeCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
131
132
|
onBeforeInput?: import('react').FormEventHandler<HTMLDivElement>;
|
132
133
|
onBeforeInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
@@ -134,7 +135,6 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
134
135
|
onInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
135
136
|
onReset?: import('react').FormEventHandler<HTMLDivElement>;
|
136
137
|
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, }: FeatureDescriptionModalProps) => JSX.Element;
|
2
|
+
export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, isEnterprise, }: 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, }: DescriptorProps) => JSX.Element;
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, isEnterprise, }: DescriptorProps) => JSX.Element;
|
3
3
|
export default FeatureTitleWithInfo;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
2
|
+
import { DocLinkProps } from '@Shared/DocLink/types';
|
2
3
|
import { ImageType } from '../../../Common';
|
3
4
|
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
4
|
-
interface BaseFeatureDescriptionModalProps {
|
5
|
+
interface BaseFeatureDescriptionModalProps<T extends boolean = false> {
|
5
6
|
renderDescriptionContent?: () => ReactNode;
|
6
|
-
docLink?:
|
7
|
+
docLink?: DocLinkProps<T>['docLinkKey'];
|
7
8
|
imageVariant?: ImageType;
|
8
9
|
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
9
10
|
imageStyles?: React.CSSProperties;
|
@@ -33,6 +34,7 @@ export type FeatureDescriptionModalProps = {
|
|
33
34
|
title: string;
|
34
35
|
closeModalText?: string;
|
35
36
|
closeModal?: () => void;
|
37
|
+
isEnterprise?: boolean;
|
36
38
|
} & ((BaseFeatureDescriptionModalProps & {
|
37
39
|
tabsConfig?: never;
|
38
40
|
}) | FeatureDescriptionModalWithTabsConfig);
|
@@ -53,5 +55,6 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
|
|
53
55
|
* @default false
|
54
56
|
*/
|
55
57
|
showInfoIcon?: boolean;
|
58
|
+
isEnterprise?: boolean;
|
56
59
|
};
|
57
60
|
export {};
|
@@ -1,2 +1,4 @@
|
|
1
1
|
export { default as GenericInfoCard } from './GenericInfoCard.component';
|
2
|
-
export
|
2
|
+
export * from './GenericInfoCardListing';
|
3
|
+
export { GenericInfoListSkeleton } from './GenericInfoListSkeleton';
|
4
|
+
export { GenericInfoCardBorderVariant, type GenericInfoCardListingProps, type GenericInfoCardProps } from './types';
|
@@ -1,5 +1,8 @@
|
|
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';
|
3
6
|
type BaseGenericInfoCardProps = {
|
4
7
|
title: string;
|
5
8
|
description: string;
|
@@ -23,4 +26,14 @@ export type GenericInfoCardProps = {
|
|
23
26
|
} & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
|
24
27
|
isLoading?: boolean;
|
25
28
|
} & 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
|
+
}
|
26
39
|
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, }: PageHeaderType) => JSX.Element;
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, isEnterprise, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { ModuleStatus } from '../../types';
|
2
|
-
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
2
|
+
import { DOCUMENTATION, 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<T extends boolean = false> {
|
10
10
|
headerName?: string;
|
11
11
|
showTabs?: boolean;
|
12
12
|
additionalHeaderInfo?: () => JSX.Element;
|
@@ -17,13 +17,14 @@ export interface PageHeaderType {
|
|
17
17
|
showCloseButton?: boolean;
|
18
18
|
onClose?: () => void;
|
19
19
|
markAsBeta?: boolean;
|
20
|
-
tippyProps?: Pick<TippyCustomizedProps
|
20
|
+
tippyProps?: Pick<TippyCustomizedProps<T>, 'additionalContent'> & {
|
21
21
|
isTippyCustomized?: boolean;
|
22
|
-
tippyRedirectLink?:
|
22
|
+
tippyRedirectLink?: keyof typeof DOCUMENTATION;
|
23
23
|
TippyIcon?: React.FunctionComponent<any>;
|
24
24
|
tippyMessage?: string;
|
25
25
|
onClickTippyButton?: () => void;
|
26
26
|
};
|
27
|
+
isEnterprise?: boolean;
|
27
28
|
}
|
28
29
|
export interface ServerInfo {
|
29
30
|
currentVersion: string;
|
@@ -6,6 +6,7 @@ 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>>;
|
9
10
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
11
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
12
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -49,7 +50,9 @@ export declare const iconMap: {
|
|
49
50
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
51
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
52
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
|
+
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
54
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
+
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
56
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
57
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
58
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
2
|
-
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
|
2
|
+
declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, isEnterprise, isExternalLink, }: InfoIconTippyProps<T>) => 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, }: ModalSidebarPanelProps) => JSX.Element;
|
2
|
+
declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, isEnterprise, }: ModalSidebarPanelProps) => JSX.Element;
|
3
3
|
export default ModalSidebarPanel;
|