@devtron-labs/devtron-fe-common-lib 1.14.1-pre-4 → 1.14.1-pre-5
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-C-5R5fdP.js → @code-editor-BerlFPcZ.js} +11313 -11314
- package/dist/{@common-rjsf-DEX3BKEv.js → @common-rjsf-LvBnybtX.js} +7 -7
- package/dist/{@framer-motion-DxBDfxHd.js → @framer-motion-BBrovRGX.js} +1 -1
- package/dist/{@react-dates-CXp7pow5.js → @react-dates-BN55ZZis.js} +1 -1
- package/dist/{@react-select-9j0-8_aU.js → @react-select-Be-sUPBr.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BJQn8hUJ.js → @react-virtualized-sticky-tree-C1LT8GyU.js} +1 -1
- package/dist/{@vendor-BiSFCp-8.js → @vendor-DpX3lhti.js} +71 -71
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/Types.d.ts +6 -8
- package/dist/Common/index.d.ts +0 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +11 -11
- package/dist/Shared/{DocLink → Components/DocLink}/DocLink.d.ts +1 -1
- package/dist/Shared/{DocLink → Components/DocLink}/constants.d.ts +6 -4
- package/dist/Shared/{DocLink → Components/DocLink}/index.d.ts +1 -0
- package/dist/Shared/Components/DocLink/types.d.ts +18 -0
- 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 +3 -5
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -3
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +5 -10
- 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 +3 -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/Components/index.d.ts +1 -0
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +16 -0
- package/dist/Shared/types.d.ts +5 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.js +42 -39
- package/package.json +1 -1
- package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
- package/dist/Shared/DocLink/types.d.ts +0 -11
- /package/dist/Shared/{DocLink → Components/DocLink}/utils.d.ts +0 -0
@@ -1,7 +1,7 @@
|
|
1
|
-
import { j as n,
|
2
|
-
import
|
1
|
+
import { j as n, as as y, au as k, at as W } from "./@vendor-DpX3lhti.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-BerlFPcZ.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 { ax as ct, ay as m, az as M, aA as Xr, aB as Ee, aC as T, aD as at, aE as Kt, aF as oe, aG as We, aH as J, aI as Wr, aJ as ei, aK as Zr, aL as ri, aM as ni, aN as ii, aO as ai, aP as oi, aQ as $r, aR as si, aS as ui, aT as li, aU as fi, aV as ci, aW as vi, aX as di, aY as Pt, aZ as k, a_ as he, a$ as qr, b0 as pi, b1 as hi, b2 as W, b3 as Z, b4 as mi, b5 as me, b6 as Mt, b7 as gi, b8 as yi, b9 as Jr, ba as It, bb as O, bc as ge, bd as bi, be as se, bf as Pi, bg as Vi } from "./@vendor-
|
1
|
+
import { ax as ct, ay as m, az as M, aA as Xr, aB as Ee, aC as T, aD as at, aE as Kt, aF as oe, aG as We, aH as J, aI as Wr, aJ as ei, aK as Zr, aL as ri, aM as ni, aN as ii, aO as ai, aP as oi, aQ as $r, aR as si, aS as ui, aT as li, aU as fi, aV as ci, aW as vi, aX as di, aY as Pt, aZ as k, a_ as he, a$ as qr, b0 as pi, b1 as hi, b2 as W, b3 as Z, b4 as mi, b5 as me, b6 as Mt, b7 as gi, b8 as yi, b9 as Jr, ba as It, bb as O, bc as ge, bd as bi, be as se, bf as Pi, bg as Vi } from "./@vendor-DpX3lhti.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 { bh as xe, bi as we, bj as ve, bk as lr, bl as Le, bm as Je, bn as tt, bo as at, bp as et, bq as lt, br as rt, bs as Xn, bt as sr, bu as Jn, bv as Dt, bw as Go, bx as dr, by as eo, bz as to, bA as ao, bB as ur, bC as Fe, bD as Rt, bE as $o, bF as cr, bG as Yo, bH as Cr, bI as Uo, bJ as Qo, bK as Zo, bL as Xo, bM as Jo } from "./@vendor-
|
2
|
+
import { bh as xe, bi as we, bj as ve, bk as lr, bl as Le, bm as Je, bn as tt, bo as at, bp as et, bq as lt, br as rt, bs as Xn, bt as sr, bu as Jn, bv as Dt, bw as Go, bx as dr, by as eo, bz as to, bA as ao, bB as ur, bC as Fe, bD as Rt, bE as $o, bF as cr, bG as Yo, bH as Cr, bI as Uo, bJ as Qo, bK as Zo, bL as Xo, bM as Jo } from "./@vendor-DpX3lhti.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 { bN as xt, bO as Bt, bP as Ft, bQ as v, bR as U, bS as xe, bB as re, bT as h, bJ as f, bU as Y, bV as Vt, bW as Ue, bX as Et, bY as yt, bZ as Wt, b_ as Xt, b$ as ne, c0 as Zt } from "./@vendor-
|
1
|
+
import { bN as xt, bO as Bt, bP as Ft, bQ as v, bR as U, bS as xe, bB as re, bT as h, bJ as f, bU as Y, bV as Vt, bW as Ue, bX as Et, bY as yt, bZ as Wt, b_ as Xt, b$ as ne, c0 as Zt } from "./@vendor-DpX3lhti.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 { c1 as x } from "./@vendor-
|
5
|
+
import { c1 as x } from "./@vendor-DpX3lhti.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) {
|
@@ -66611,46 +66611,46 @@ const lOe = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c
|
|
66611
66611
|
default: pOe
|
66612
66612
|
}, Symbol.toStringTag, { value: "Module" }));
|
66613
66613
|
export {
|
66614
|
-
|
66615
|
-
|
66616
|
-
|
66617
|
-
|
66614
|
+
hP as $,
|
66615
|
+
jke as A,
|
66616
|
+
Ske as B,
|
66617
|
+
Oke as C,
|
66618
66618
|
ske as D,
|
66619
66619
|
Oe as E,
|
66620
|
-
|
66621
|
-
|
66622
|
-
|
66623
|
-
|
66624
|
-
|
66625
|
-
|
66626
|
-
|
66627
|
-
|
66628
|
-
|
66629
|
-
|
66630
|
-
|
66620
|
+
Fke as F,
|
66621
|
+
ko as G,
|
66622
|
+
Xee as H,
|
66623
|
+
bke as I,
|
66624
|
+
Cf as J,
|
66625
|
+
LN as K,
|
66626
|
+
wm as L,
|
66627
|
+
_m as M,
|
66628
|
+
tP as N,
|
66629
|
+
zN as O,
|
66630
|
+
$S as P,
|
66631
66631
|
pn as Q,
|
66632
|
-
|
66632
|
+
i0 as R,
|
66633
66633
|
Ue as S,
|
66634
66634
|
Mn as T,
|
66635
|
-
|
66636
|
-
|
66637
|
-
|
66638
|
-
|
66639
|
-
|
66640
|
-
|
66641
|
-
|
66642
|
-
|
66635
|
+
dke as U,
|
66636
|
+
on as V,
|
66637
|
+
$e as W,
|
66638
|
+
Cke as X,
|
66639
|
+
Noe as Y,
|
66640
|
+
Cne as Z,
|
66641
|
+
dt as _,
|
66642
|
+
Loe as a,
|
66643
66643
|
HC as a$,
|
66644
|
-
|
66645
|
-
|
66646
|
-
|
66647
|
-
|
66648
|
-
|
66649
|
-
|
66650
|
-
|
66651
|
-
|
66652
|
-
|
66653
|
-
|
66644
|
+
dd as a0,
|
66645
|
+
wke as a1,
|
66646
|
+
xke as a2,
|
66647
|
+
gke as a3,
|
66648
|
+
yke as a4,
|
66649
|
+
Eke as a5,
|
66650
|
+
Rl as a6,
|
66651
|
+
zke as a7,
|
66652
|
+
Vke as a8,
|
66653
|
+
Hke as a9,
|
66654
66654
|
NOe as aA,
|
66655
66655
|
Gg as aB,
|
66656
66656
|
VOe as aC,
|
@@ -66678,33 +66678,33 @@ export {
|
|
66678
66678
|
UC as aY,
|
66679
66679
|
Yg as aZ,
|
66680
66680
|
GOe as a_,
|
66681
|
-
|
66682
|
-
|
66683
|
-
|
66684
|
-
|
66685
|
-
|
66686
|
-
|
66687
|
-
|
66688
|
-
|
66689
|
-
|
66690
|
-
|
66691
|
-
|
66692
|
-
|
66693
|
-
|
66694
|
-
|
66695
|
-
|
66696
|
-
|
66697
|
-
|
66698
|
-
|
66699
|
-
|
66700
|
-
|
66701
|
-
|
66702
|
-
|
66681
|
+
Wke as aa,
|
66682
|
+
hq as ab,
|
66683
|
+
Vl as ac,
|
66684
|
+
Ki as ad,
|
66685
|
+
wOe as ae,
|
66686
|
+
sDe as af,
|
66687
|
+
Pg as ag,
|
66688
|
+
Ve as ah,
|
66689
|
+
kg as ai,
|
66690
|
+
CCe as aj,
|
66691
|
+
oDe as ak,
|
66692
|
+
Ra as al,
|
66693
|
+
aEe as am,
|
66694
|
+
uEe as an,
|
66695
|
+
z0e as ao,
|
66696
|
+
sSe as ap,
|
66697
|
+
COe as aq,
|
66698
|
+
Y9 as ar,
|
66699
|
+
Ot as as,
|
66700
|
+
vY as at,
|
66701
|
+
DC as au,
|
66702
|
+
Ur as av,
|
66703
66703
|
Vt as aw,
|
66704
66704
|
uf as ax,
|
66705
66705
|
fA as ay,
|
66706
66706
|
BOe as az,
|
66707
|
-
|
66707
|
+
cn as b,
|
66708
66708
|
vX as b$,
|
66709
66709
|
nke as b0,
|
66710
66710
|
UK as b1,
|
@@ -66769,30 +66769,30 @@ export {
|
|
66769
66769
|
Qke as bx,
|
66770
66770
|
Zke as by,
|
66771
66771
|
pz as bz,
|
66772
|
-
|
66772
|
+
gN as c,
|
66773
66773
|
FOe as c0,
|
66774
66774
|
AH as c1,
|
66775
|
-
|
66776
|
-
|
66777
|
-
|
66775
|
+
Ake as d,
|
66776
|
+
Pke as e,
|
66777
|
+
kke as f,
|
66778
66778
|
Voe as g,
|
66779
|
-
|
66779
|
+
Bke as h,
|
66780
66780
|
_Oe as i,
|
66781
66781
|
ue as j,
|
66782
66782
|
HD as k,
|
66783
|
-
|
66784
|
-
|
66783
|
+
mke as l,
|
66784
|
+
eae as m,
|
66785
66785
|
SOe as n,
|
66786
66786
|
PS as o,
|
66787
|
-
|
66788
|
-
|
66787
|
+
qke as p,
|
66788
|
+
Fte as q,
|
66789
66789
|
HN as r,
|
66790
66790
|
vke as s,
|
66791
66791
|
U as t,
|
66792
|
-
|
66793
|
-
|
66794
|
-
|
66795
|
-
|
66792
|
+
Lke as u,
|
66793
|
+
$ke as v,
|
66794
|
+
Nke as w,
|
66795
|
+
Cse as x,
|
66796
66796
|
Dke as y,
|
66797
|
-
|
66797
|
+
Ike as z
|
66798
66798
|
};
|
@@ -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>>>;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType } from '../Shared';
|
6
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType,
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType, DocLinkProps } from '../Shared';
|
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,11 +77,9 @@ export interface CheckboxProps {
|
|
77
77
|
dataTestId?: string;
|
78
78
|
children?: ReactNode;
|
79
79
|
}
|
80
|
-
export
|
81
|
-
|
82
|
-
|
83
|
-
documentationLink?: T extends true ? string : keyof typeof DOCUMENTATION;
|
84
|
-
};
|
80
|
+
export interface TippyWithBaseDocLinkTypes<T extends boolean> extends Pick<DocLinkProps<T>, 'isExternalLink' | 'openInNewTab'> {
|
81
|
+
documentationLink?: DocLinkProps<T>['docLinkKey'];
|
82
|
+
}
|
85
83
|
export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo'> & TippyWithBaseDocLinkTypes<T> & {
|
86
84
|
theme: TippyTheme;
|
87
85
|
visible?: boolean;
|
@@ -111,7 +109,7 @@ export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo
|
|
111
109
|
children: React.ReactElement<any>;
|
112
110
|
disableClose?: boolean;
|
113
111
|
};
|
114
|
-
export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | '
|
112
|
+
export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | 'isExternalLink' | 'openInNewTab'> {
|
115
113
|
dataTestid?: string;
|
116
114
|
children?: TippyCustomizedProps<T>['children'];
|
117
115
|
iconClassName?: string;
|
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>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DocLinkProps } from './types';
|
2
|
-
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant,
|
2
|
+
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant, isExternalLink, openInNewTab, fullWidth, }: DocLinkProps<T>) => JSX.Element;
|
@@ -15,7 +15,7 @@ export declare const DOCUMENTATION: {
|
|
15
15
|
readonly APP_ROLLOUT_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template/rollout-deployment";
|
16
16
|
readonly BUILD_STAGE: "usage/applications/creating-application/ci-pipeline#build-stage";
|
17
17
|
readonly APP_TAGS: "usage/applications/create-application#tags";
|
18
|
-
readonly BLOB_STORAGE: "
|
18
|
+
readonly BLOB_STORAGE: "configurations-overview/installation-configuration#configuration-of-blob-storage";
|
19
19
|
readonly BULK_UPDATE: "usage/bulk-update";
|
20
20
|
readonly CHART_GROUP: "usage/deploy-chart/chart-group";
|
21
21
|
readonly CHART_LIST: "usage/deploy-chart/overview-of-charts";
|
@@ -30,7 +30,9 @@ export declare const DOCUMENTATION: {
|
|
30
30
|
readonly EXTERNAL_LINKS: "getting-started/global-configurations/external-links";
|
31
31
|
readonly EXTERNAL_SECRET: "usage/applications/creating-application/secrets#external-secrets";
|
32
32
|
readonly HOME_PAGE: "https://devtron.ai";
|
33
|
+
readonly DOC_HOME_PAGE: "https://docs.devtron.ai";
|
33
34
|
readonly KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally";
|
35
|
+
readonly JOBS: "usage/jobs";
|
34
36
|
readonly TAINT: "usage/resource-browser#taint-a-node";
|
35
37
|
readonly GLOBAL_CONFIG_API_TOKEN: "getting-started/global-configurations/authorization/api-tokens";
|
36
38
|
readonly GLOBAL_CONFIG_BUILD_INFRA: "global-configurations/build-infra";
|
@@ -40,16 +42,16 @@ export declare const DOCUMENTATION: {
|
|
40
42
|
readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "getting-started/global-configurations/custom-charts#prerequisites";
|
41
43
|
readonly GLOBAL_CONFIG_DOCKER: "getting-started/global-configurations/container-registries";
|
42
44
|
readonly GLOBAL_CONFIG_GIT: "getting-started/global-configurations/git-accounts";
|
43
|
-
readonly GLOBAL_CONFIG_GITOPS: "
|
45
|
+
readonly GLOBAL_CONFIG_GITOPS: "global-configurations/gitops";
|
44
46
|
readonly GLOBAL_CONFIG_GITOPS_GITHUB: "global-configurations/gitops#github";
|
45
47
|
readonly GLOBAL_CONFIG_GITOPS_GITLAB: "global-configurations/gitops#gitlab";
|
46
48
|
readonly GLOBAL_CONFIG_GITOPS_AZURE: "global-configurations/gitops#azure";
|
47
49
|
readonly GLOBAL_CONFIG_GITOPS_BITBUCKET: "global-configurations/gitops#bitbucket";
|
48
50
|
readonly GLOBAL_CONFIG_GROUPS: "getting-started/global-configurations/authorization/permission-groups";
|
49
|
-
readonly GLOBAL_CONFIG_HOST_URL: "
|
51
|
+
readonly GLOBAL_CONFIG_HOST_URL: "global-configurations/host-url";
|
50
52
|
readonly GLOBAL_CONFIG_NOTIFICATION: "getting-started/global-configurations/manage-notification";
|
51
53
|
readonly GLOBAL_CONFIG_PERMISSION: "global-configurations/authorization/user-access#devtron-apps-permissions";
|
52
|
-
readonly GLOBAL_CONFIG_PROJECT: "
|
54
|
+
readonly GLOBAL_CONFIG_PROJECT: "global-configurations/projects";
|
53
55
|
readonly GLOBAL_CONFIG_SSO: "getting-started/global-configurations/sso-login";
|
54
56
|
readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "getting-started/global-configurations/scoped-variables";
|
55
57
|
readonly GLOBAL_CONFIG_USER: "getting-started/global-configurations/authorization/user-access";
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { MouseEvent } from 'react';
|
2
|
+
import { ButtonComponentType, ButtonProps } from '..';
|
3
|
+
import { DOCUMENTATION } from './constants';
|
4
|
+
export type BaseDocLink<T extends boolean> = {
|
5
|
+
isExternalLink?: T;
|
6
|
+
isEnterprise?: boolean;
|
7
|
+
docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
|
8
|
+
};
|
9
|
+
export type DocLinkProps<T extends boolean> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
10
|
+
text?: string;
|
11
|
+
showExternalIcon?: boolean;
|
12
|
+
onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
|
13
|
+
/**
|
14
|
+
* If `true`, the documentation will open in a new browser tab instead of the side panel.
|
15
|
+
* @default false
|
16
|
+
*/
|
17
|
+
openInNewTab?: boolean;
|
18
|
+
};
|
@@ -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,10 @@
|
|
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
|
-
|
4
|
+
import { DocLinkProps } from '../DocLink';
|
5
|
+
interface BaseFeatureDescriptionModalProps {
|
6
6
|
renderDescriptionContent?: () => ReactNode;
|
7
|
-
docLink?: DocLinkProps<
|
7
|
+
docLink?: DocLinkProps<false>['docLinkKey'];
|
8
8
|
imageVariant?: ImageType;
|
9
9
|
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
10
10
|
imageStyles?: React.CSSProperties;
|
@@ -34,7 +34,6 @@ export type FeatureDescriptionModalProps = {
|
|
34
34
|
title: string;
|
35
35
|
closeModalText?: string;
|
36
36
|
closeModal?: () => void;
|
37
|
-
isEnterprise?: boolean;
|
38
37
|
} & ((BaseFeatureDescriptionModalProps & {
|
39
38
|
tabsConfig?: never;
|
40
39
|
}) | FeatureDescriptionModalWithTabsConfig);
|
@@ -55,6 +54,5 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
|
|
55
54
|
* @default false
|
56
55
|
*/
|
57
56
|
showInfoIcon?: boolean;
|
58
|
-
isEnterprise?: boolean;
|
59
57
|
};
|
60
58
|
export {};
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import { AnimatePresence, motion } from 'framer-motion';
|
2
|
-
export
|
3
|
-
export { AnimatePresence, motion };
|
1
|
+
import { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue } from 'framer-motion';
|
2
|
+
export { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue };
|
@@ -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,8 @@
|
|
1
|
-
import { ModuleStatus } from '../../types';
|
2
|
-
import {
|
1
|
+
import { InstallationType, ModuleStatus } from '../../types';
|
2
|
+
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
3
3
|
import { ActionMenuProps } from '../ActionMenu';
|
4
|
-
|
5
|
-
|
6
|
-
OSS_HELM = "oss_helm",
|
7
|
-
ENTERPRISE = "enterprise"
|
8
|
-
}
|
9
|
-
export interface PageHeaderType<T extends boolean = false> {
|
4
|
+
import { DOCUMENTATION } from '../DocLink';
|
5
|
+
export interface PageHeaderType {
|
10
6
|
headerName?: string;
|
11
7
|
showTabs?: boolean;
|
12
8
|
additionalHeaderInfo?: () => JSX.Element;
|
@@ -17,14 +13,13 @@ export interface PageHeaderType<T extends boolean = false> {
|
|
17
13
|
showCloseButton?: boolean;
|
18
14
|
onClose?: () => void;
|
19
15
|
markAsBeta?: boolean;
|
20
|
-
tippyProps?: Pick<TippyCustomizedProps<
|
16
|
+
tippyProps?: Pick<TippyCustomizedProps<false>, 'additionalContent'> & {
|
21
17
|
isTippyCustomized?: boolean;
|
22
18
|
tippyRedirectLink?: keyof typeof DOCUMENTATION;
|
23
19
|
TippyIcon?: React.FunctionComponent<any>;
|
24
20
|
tippyMessage?: string;
|
25
21
|
onClickTippyButton?: () => void;
|
26
22
|
};
|
27
|
-
isEnterprise?: boolean;
|
28
23
|
}
|
29
24
|
export interface ServerInfo {
|
30
25
|
currentVersion: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
2
|
-
declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding,
|
2
|
+
declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, isExternalLink, openInNewTab, }: 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,
|
2
|
+
declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, }: ModalSidebarPanelProps) => JSX.Element;
|
3
3
|
export default ModalSidebarPanel;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { DocLinkProps } from '
|
3
|
-
|
4
|
-
export interface ModalSidebarPanelProps<T extends boolean = false> extends Pick<PageHeaderType, 'isEnterprise'> {
|
2
|
+
import { DocLinkProps } from '../DocLink';
|
3
|
+
export interface ModalSidebarPanelProps {
|
5
4
|
rootClassName?: string;
|
6
5
|
heading: string | null;
|
7
6
|
icon?: JSX.Element;
|
8
7
|
children?: ReactNode;
|
9
|
-
documentationLink: DocLinkProps<
|
8
|
+
documentationLink: DocLinkProps<false>['docLinkKey'];
|
10
9
|
}
|
@@ -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
|
}[];
|
@@ -26,6 +26,7 @@ export * from './DatePicker';
|
|
26
26
|
export * from './DeploymentConfigDiff';
|
27
27
|
export * from './DeploymentStatusBreakdown';
|
28
28
|
export * from './DetectBottom';
|
29
|
+
export * from './DocLink';
|
29
30
|
export * from './DynamicDataTable';
|
30
31
|
export * from './EditableTextArea';
|
31
32
|
export * from './EditImageFormField';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from './ImageSelectionUtility';
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
|
-
export type { MainContext, ReloadVersionConfigTypes } from './types';
|
4
|
+
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
5
5
|
export * from './UserEmailProvider';
|