@devtron-labs/devtron-fe-common-lib 0.0.51-beta-4 → 0.0.52-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/{CodeEditor-a1233daa.js → CodeEditor-68cd2e5b.js} +21 -21
- package/dist/Common/Api.js +13 -13
- package/dist/Common/BreadCrumb/BreadCrumb.js +1 -1
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +3 -0
- package/dist/Common/ChartVersionAndTypeSelector.js +61 -0
- package/dist/Common/ClipboardButton/ClipboardButton.js +1 -1
- package/dist/Common/CodeEditor/CodeEditor.js +2 -2
- package/dist/Common/Common.service.d.ts +1 -0
- package/dist/Common/Common.service.js +32 -28
- package/dist/Common/Constants.d.ts +3 -1
- package/dist/Common/Constants.js +9 -6
- package/dist/Common/CustomTagSelector/PropagateTagInfo.js +1 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +1 -1
- package/dist/Common/CustomTagSelector/TagDetails.js +1 -1
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.js +1 -1
- package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -0
- package/dist/Common/DraggableWrapper/DraggableButton.js +16 -0
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -0
- package/dist/Common/DraggableWrapper/DraggableWrapper.js +1499 -0
- package/dist/Common/DraggableWrapper/index.d.ts +3 -0
- package/dist/Common/DraggableWrapper/index.js +8 -0
- package/dist/Common/DraggableWrapper/types.d.ts +23 -0
- package/dist/Common/DraggableWrapper/types.js +4 -0
- package/dist/Common/Grid/Grid.d.ts +1 -1
- package/dist/Common/Grid/Grid.js +19 -10
- package/dist/Common/Grid/types.d.ts +2 -2
- package/dist/Common/Helper.d.ts +9 -0
- package/dist/Common/Helper.js +24 -20
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +1 -1
- package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -0
- package/dist/Common/Hooks/UseWindowSize/UseWindowSize.js +17 -0
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Hooks/index.js +6 -4
- package/dist/Common/ImageTags.js +3 -3
- package/dist/Common/MultiSelectCustomization.js +1 -1
- package/dist/Common/RJSF/widgets/Select.js +1 -1
- package/dist/Common/RadioGroup/RadioGroup.js +1 -1
- package/dist/Common/ResizableTextarea.js +1 -1
- package/dist/Common/Select/Select.js +1 -1
- package/dist/Common/TippyCustomized.js +2 -2
- package/dist/Common/ToastBody.js +1 -1
- package/dist/Common/Toggle/Toggle.js +1 -1
- package/dist/Common/Types.d.ts +64 -0
- package/dist/Common/index.d.ts +2 -0
- package/dist/Common/index.js +206 -190
- package/dist/Helper-1f1cf2ba.js +9824 -0
- package/dist/{TippyCustomized-b4379006.js → TippyCustomized-0d0b9a6f.js} +1 -1
- package/dist/{cssMode-a1869154.js → cssMode-7289250b.js} +1 -1
- package/dist/{freemarker2-51e1c403.js → freemarker2-3b903d5b.js} +1 -1
- package/dist/{handlebars-91940b5d.js → handlebars-702717e9.js} +1 -1
- package/dist/{html-f466e610.js → html-9a684e15.js} +1 -1
- package/dist/{htmlMode-1f121ca6.js → htmlMode-3e336aa8.js} +1 -1
- package/dist/index-c855d89c.js +173 -0
- package/dist/index.js +206 -190
- package/dist/{javascript-c8bf1ba9.js → javascript-101cb9b7.js} +1 -1
- package/dist/{jsonMode-d03e0315.js → jsonMode-006d8be9.js} +1 -1
- package/dist/{liquid-8f190965.js → liquid-729ea99d.js} +1 -1
- package/dist/{python-89c90f80.js → python-c9b92f72.js} +1 -1
- package/dist/{razor-3889a56a.js → razor-c48ef378.js} +1 -1
- package/dist/{react-select.esm-a99b516e.js → react-select.esm-fa95915b.js} +1111 -1279
- package/dist/{react-toastify.esm-f2ac8a63.js → react-toastify.esm-e28f7200.js} +162 -156
- package/dist/{tsMode-a6b9a239.js → tsMode-da78a323.js} +1 -1
- package/dist/{typescript-f36342d1.js → typescript-bd6d35ce.js} +1 -1
- package/dist/{xml-20660057.js → xml-828eca7a.js} +1 -1
- package/dist/{yaml-b321e220.js → yaml-89980d67.js} +1 -1
- package/package.json +5 -2
- package/dist/Helper-e95e2932.js +0 -8839
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as e } from "./DraggableWrapper.js";
|
|
2
|
+
import { default as t } from "./DraggableButton.js";
|
|
3
|
+
import { DraggablePositionVariant as f } from "./types.js";
|
|
4
|
+
export {
|
|
5
|
+
t as DraggableButton,
|
|
6
|
+
f as DraggablePositionVariant,
|
|
7
|
+
e as DraggableWrapper
|
|
8
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
export declare enum DraggablePositionVariant {
|
|
3
|
+
PARENT_BOTTOM_CENTER = "PARENT_BOTTOM_CENTER",
|
|
4
|
+
SCREEN_BOTTOM_CENTER = "SCREEN_BOTTOM_CENTER"
|
|
5
|
+
}
|
|
6
|
+
export interface DraggableWrapperProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
zIndex?: number;
|
|
9
|
+
positionVariant?: DraggablePositionVariant;
|
|
10
|
+
/**
|
|
11
|
+
* dragSelector (class - (append with .), id, etc) will be used to identify the grabbable button that will grab the div to drag
|
|
12
|
+
*/
|
|
13
|
+
dragSelector: string;
|
|
14
|
+
parentRef?: RefObject<HTMLDivElement>;
|
|
15
|
+
boundaryGap?: number;
|
|
16
|
+
childDivProps?: HTMLAttributes<HTMLDivElement>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* dragClassName is the class that we feed to Draggable to identify dragging buttons
|
|
20
|
+
*/
|
|
21
|
+
export interface DraggableButtonProps {
|
|
22
|
+
dragClassName: string;
|
|
23
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GridProps } from './types';
|
|
3
|
-
export default function Grid({ container, spacing, item, xs, containerClass, itemClass, children, }: GridProps): JSX.Element;
|
|
3
|
+
export default function Grid({ container, spacing, item, xs, containerClass, itemClass, children, ...containerDivProps }: GridProps): JSX.Element;
|
package/dist/Common/Grid/Grid.js
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
function
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
function u({
|
|
3
3
|
container: t,
|
|
4
|
-
spacing:
|
|
4
|
+
spacing: a = 0,
|
|
5
5
|
item: n,
|
|
6
6
|
xs: r,
|
|
7
|
-
containerClass:
|
|
7
|
+
containerClass: c = "",
|
|
8
8
|
itemClass: o = "",
|
|
9
|
-
children: e
|
|
9
|
+
children: e,
|
|
10
|
+
...s
|
|
10
11
|
}) {
|
|
11
|
-
const
|
|
12
|
+
const i = t ? { gap: a + "px" } : {};
|
|
12
13
|
if (n) {
|
|
13
|
-
const
|
|
14
|
+
const d = {
|
|
14
15
|
flex: `1 1 ${(() => `calc(${r / 12 * 100}%)`)()}`
|
|
15
16
|
};
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ l("div", { className: `p-0 ${o}`, style: d, ...s, children: e });
|
|
17
18
|
}
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ l(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: `flex-wrap flexbox ${t ? c : ""}`,
|
|
23
|
+
style: i,
|
|
24
|
+
...s,
|
|
25
|
+
children: e
|
|
26
|
+
}
|
|
27
|
+
);
|
|
19
28
|
}
|
|
20
29
|
export {
|
|
21
|
-
|
|
30
|
+
u as default
|
|
22
31
|
};
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -49,4 +49,13 @@ export declare const getUrlWithSearchParams: (url: string, params: Record<string
|
|
|
49
49
|
* Custom exception logger function for logging errors to sentry
|
|
50
50
|
*/
|
|
51
51
|
export declare const logExceptionToSentry: any;
|
|
52
|
+
export declare const customStyles: {
|
|
53
|
+
control: (base: any, state: any) => any;
|
|
54
|
+
indicatorSeparator: (base: any, state: any) => any;
|
|
55
|
+
valueContainer: (base: any, state: any) => any;
|
|
56
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
57
|
+
};
|
|
58
|
+
export declare const getFilteredChartVersions: (charts: any, selectedChartType: any) => any;
|
|
59
|
+
export declare function getUnlockedJSON(json: any, jsonPathArray: any): any;
|
|
60
|
+
export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
|
|
52
61
|
export {};
|
package/dist/Common/Helper.js
CHANGED
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as l, p as c, m, q as g, x as d, c as f, h, d as u, y, A as C, i as S, g as E, z as T, v as b, k, w as A, n as O, e as x, t as J, s as L, a as P, b as U, r as w, f as F, j as I, o as K, l as M, u as N } from "../Helper-1f1cf2ba.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-router-dom";
|
|
5
|
-
import "../react-toastify.esm-
|
|
5
|
+
import "../react-toastify.esm-e28f7200.js";
|
|
6
6
|
import "./Constants.js";
|
|
7
7
|
import "./ServerError.js";
|
|
8
8
|
import "./ToastBody.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
l as ConditionalWrap,
|
|
11
|
+
c as cleanKubeManifest,
|
|
12
|
+
m as closeOnEscKeyPressed,
|
|
13
13
|
g as copyToClipboard,
|
|
14
|
+
d as customStyles,
|
|
14
15
|
f as getAlphabetIcon,
|
|
15
16
|
h as getCookie,
|
|
16
17
|
u as getEmptyArrayOfLength,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
E as
|
|
21
|
-
T as
|
|
22
|
-
b as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
y as getFilteredChartVersions,
|
|
19
|
+
C as getLockedJSON,
|
|
20
|
+
S as getLoginInfo,
|
|
21
|
+
E as getRandomColor,
|
|
22
|
+
T as getUnlockedJSON,
|
|
23
|
+
b as getUrlWithSearchParams,
|
|
24
|
+
k as handleUTCTime,
|
|
25
|
+
A as logExceptionToSentry,
|
|
26
|
+
O as noop,
|
|
27
|
+
x as not,
|
|
28
|
+
J as processDeployedTime,
|
|
29
|
+
L as showError,
|
|
26
30
|
P as sortCallback,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
U as stopPropagation,
|
|
32
|
+
w as useAsync,
|
|
33
|
+
F as useEffectAfterMount,
|
|
34
|
+
I as useForm,
|
|
35
|
+
K as useJsonYaml,
|
|
32
36
|
M as useSearchString,
|
|
33
|
-
|
|
37
|
+
N as useThrottledEffect
|
|
34
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as t, useEffect as o } from "react";
|
|
2
2
|
import { getUserRole as m } from "../../Common.service.js";
|
|
3
|
-
import { s as u } from "../../../Helper-
|
|
3
|
+
import { s as u } from "../../../Helper-1f1cf2ba.js";
|
|
4
4
|
const f = () => {
|
|
5
5
|
const [r, s] = t(!1);
|
|
6
6
|
return o(() => {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useState as r, useEffect as w } from "react";
|
|
2
|
+
let e;
|
|
3
|
+
const n = () => ({
|
|
4
|
+
width: window.innerWidth,
|
|
5
|
+
height: window.innerHeight
|
|
6
|
+
}), a = () => {
|
|
7
|
+
const [t, o] = r(n);
|
|
8
|
+
function i(s) {
|
|
9
|
+
e && window.cancelAnimationFrame(e), e = window.requestAnimationFrame(function() {
|
|
10
|
+
o(n());
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return w(() => (window.addEventListener("resize", i, !1), () => window.removeEventListener("resize", i, !1)), []), t;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
a as useWindowSize
|
|
17
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { useSuperAdmin as
|
|
2
|
-
import { useClickOutside as
|
|
1
|
+
import { useSuperAdmin as r } from "./UseSuperAdmin/UseSuperAdmin.js";
|
|
2
|
+
import { useClickOutside as u } from "./UseClickOutside/UseClickOutside.js";
|
|
3
|
+
import { useWindowSize as p } from "./UseWindowSize/UseWindowSize.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
u as useClickOutside,
|
|
6
|
+
r as useSuperAdmin,
|
|
7
|
+
p as useWindowSize
|
|
6
8
|
};
|
package/dist/Common/ImageTags.js
CHANGED
|
@@ -3,13 +3,13 @@ import * as f from "react";
|
|
|
3
3
|
import { useState as o, useEffect as ne, useRef as Ne } from "react";
|
|
4
4
|
import { S as Te } from "../ic-add-4787ded5.js";
|
|
5
5
|
import { S as xe } from "../ic-cross-0e71861d.js";
|
|
6
|
-
import { T as be, a as _e, S as Ie } from "../TippyCustomized-
|
|
7
|
-
import { t as ke } from "../react-toastify.esm-
|
|
6
|
+
import { T as be, a as _e, S as Ie } from "../TippyCustomized-0d0b9a6f.js";
|
|
7
|
+
import { t as ke } from "../react-toastify.esm-e28f7200.js";
|
|
8
8
|
import { S as ye } from "../ic-info-filled-31a15add.js";
|
|
9
9
|
import { S as se } from "../ic-warning-42534af1.js";
|
|
10
10
|
import { S as Se } from "../ic-error-exclamation-5f9af461.js";
|
|
11
11
|
import { TippyTheme as Ee } from "./Types.js";
|
|
12
|
-
import { b as p, s as De } from "../Helper-
|
|
12
|
+
import { b as p, s as De } from "../Helper-1f1cf2ba.js";
|
|
13
13
|
import { setImageTags as Le } from "./Common.service.js";
|
|
14
14
|
import { T as ie } from "../tippy-react.esm-d5c56a0a.js";
|
|
15
15
|
import { Progressing as Me } from "./Progressing.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as a, R as f } from "../react-select.esm-
|
|
2
|
+
import { c as a, R as f } from "../react-select.esm-fa95915b.js";
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
const u = (e) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: 24, height: 24, ...e }, /* @__PURE__ */ r.createElement("g", { fill: "none", fillRule: "evenodd", transform: "translate(2 2)" }, /* @__PURE__ */ r.createElement("rect", { width: 20, height: 20, fill: "#B1B7BC", rx: 10 }), /* @__PURE__ */ r.createElement("path", { fill: "#FFF", fillRule: "nonzero", d: "M6.464 6.464a1 1 0 0 1 1.415 0l2.12 2.12 2.122-2.12a1 1 0 0 1 1.32-.083l.095.083a1 1 0 0 1 0 1.415l-2.122 2.12 2.122 2.122a1 1 0 0 1 .083 1.32l-.083.095a1 1 0 0 1-1.415 0L10 11.414l-2.121 2.122a1 1 0 0 1-1.32.083l-.095-.083a1 1 0 0 1 0-1.415L8.584 10l-2.12-2.121a1 1 0 0 1-.083-1.32z" }))), g = (e) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ r.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ r.createElement("path", { stroke: "#06C", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3.898 12.564l4.95 4.95L19.455 6.906" }))), v = (e) => /* @__PURE__ */ r.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 21, viewBox: "0 0 20 21", ...e }, /* @__PURE__ */ r.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ r.createElement("path", { fill: "#FDE7E7", stroke: "#F33E3E", strokeLinejoin: "round", strokeWidth: 2, d: "M10 1.667C5.4 1.667 1.667 5.4 1.667 10S5.4 18.333 10 18.333 18.333 14.6 18.333 10 14.6 1.667 10 1.667z" }), /* @__PURE__ */ r.createElement("path", { fill: "#F33E3E", d: "M10 10.833c.46 0 .833-.373.833-.833V6.667c0-.46-.373-.834-.833-.834-.46 0-.833.373-.833.834V10c0 .46.373.833.833.833zm0 3.334c.46 0 .833-.373.833-.834 0-.46-.373-.833-.833-.833-.46 0-.833.373-.833.833 0 .46.373.834.833.834z" }))), E = (e) => {
|
|
5
5
|
const { selectOption: t, data: n } = e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as l } from "../../../enums-d0bd3f97.js";
|
|
3
|
-
import { R as D, c as m } from "../../../react-select.esm-
|
|
3
|
+
import { R as D, c as m } from "../../../react-select.esm-fa95915b.js";
|
|
4
4
|
import { PLACEHOLDERS as E } from "../constants.js";
|
|
5
5
|
import { getCommonSelectStyle as L } from "../utils.js";
|
|
6
6
|
import { S as O } from "../../../ic-chevron-down-eb7fd953.js";
|
|
@@ -2,7 +2,7 @@ import "../../assets/RadioGroup.css";
|
|
|
2
2
|
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
3
3
|
import { T as b } from "../../tippy-react.esm-d5c56a0a.js";
|
|
4
4
|
import m, { useState as w, useEffect as N } from "react";
|
|
5
|
-
import { C as _ } from "../../Helper-
|
|
5
|
+
import { C as _ } from "../../Helper-1f1cf2ba.js";
|
|
6
6
|
const f = m.createContext(null);
|
|
7
7
|
function $() {
|
|
8
8
|
const e = m.useContext(f);
|
|
@@ -3,7 +3,7 @@ import { jsx as n, jsxs as m, Fragment as G } from "react/jsx-runtime";
|
|
|
3
3
|
import u, { useEffect as I } from "react";
|
|
4
4
|
import { a as R } from "../../ic-chevron-down-eb7fd953.js";
|
|
5
5
|
import b from "../PopupMenu.js";
|
|
6
|
-
import { s as q } from "../../Helper-
|
|
6
|
+
import { s as q } from "../../Helper-1f1cf2ba.js";
|
|
7
7
|
const N = u.createContext(null);
|
|
8
8
|
function y() {
|
|
9
9
|
const t = u.useContext(N);
|
|
@@ -2,9 +2,9 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../tippy-react.esm-d5c56a0a.js";
|
|
4
4
|
import "../ic-cross-0e71861d.js";
|
|
5
|
-
import { T } from "../TippyCustomized-
|
|
5
|
+
import { T } from "../TippyCustomized-0d0b9a6f.js";
|
|
6
6
|
import "./Types.js";
|
|
7
|
-
import "../Helper-
|
|
7
|
+
import "../Helper-1f1cf2ba.js";
|
|
8
8
|
export {
|
|
9
9
|
T as TippyCustomized
|
|
10
10
|
};
|
package/dist/Common/ToastBody.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import o from "react";
|
|
3
|
-
import { t as a } from "../react-toastify.esm-
|
|
3
|
+
import { t as a } from "../react-toastify.esm-e28f7200.js";
|
|
4
4
|
import { TOAST_ACCESS_DENIED as i } from "./Constants.js";
|
|
5
5
|
class n extends o.Component {
|
|
6
6
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../assets/Toggle.css";
|
|
2
2
|
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import _ from "react";
|
|
4
|
-
import { f as n } from "../../Helper-
|
|
4
|
+
import { f as n } from "../../Helper-1f1cf2ba.js";
|
|
5
5
|
const k = ({
|
|
6
6
|
selected: t = !1,
|
|
7
7
|
onSelect: l = null,
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -570,6 +570,70 @@ export interface CiPipeline {
|
|
|
570
570
|
isOffendingMandatoryPlugin?: boolean;
|
|
571
571
|
pipelineType?: string;
|
|
572
572
|
}
|
|
573
|
+
export interface InformationBarProps {
|
|
574
|
+
text: string;
|
|
575
|
+
className?: string;
|
|
576
|
+
children?: React.ReactNode;
|
|
577
|
+
}
|
|
578
|
+
export interface CodeEditorInterface {
|
|
579
|
+
value?: string;
|
|
580
|
+
lineDecorationsWidth?: number;
|
|
581
|
+
responseType?: string;
|
|
582
|
+
onChange?: (string: any) => void;
|
|
583
|
+
onBlur?: () => void;
|
|
584
|
+
onFocus?: () => void;
|
|
585
|
+
children?: any;
|
|
586
|
+
defaultValue?: string;
|
|
587
|
+
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile' | 'plaintext';
|
|
588
|
+
tabSize?: number;
|
|
589
|
+
readOnly?: boolean;
|
|
590
|
+
noParsing?: boolean;
|
|
591
|
+
minHeight?: number;
|
|
592
|
+
maxHeight?: number;
|
|
593
|
+
inline?: boolean;
|
|
594
|
+
height?: number | string;
|
|
595
|
+
shebang?: string | JSX.Element;
|
|
596
|
+
diffView?: boolean;
|
|
597
|
+
loading?: boolean;
|
|
598
|
+
customLoader?: JSX.Element;
|
|
599
|
+
theme?: string;
|
|
600
|
+
original?: string;
|
|
601
|
+
focus?: boolean;
|
|
602
|
+
validatorSchema?: any;
|
|
603
|
+
isKubernetes?: boolean;
|
|
604
|
+
cleanData?: boolean;
|
|
605
|
+
chartVersion?: any;
|
|
606
|
+
}
|
|
607
|
+
export interface CodeEditorComposition {
|
|
608
|
+
Header?: React.FC<any>;
|
|
609
|
+
LanguageChanger?: React.FC<any>;
|
|
610
|
+
ThemeChanger?: React.FC<any>;
|
|
611
|
+
ValidationError?: React.FC<any>;
|
|
612
|
+
Clipboard?: React.FC<any>;
|
|
613
|
+
Warning?: React.FC<InformationBarProps>;
|
|
614
|
+
ErrorBar?: React.FC<InformationBarProps>;
|
|
615
|
+
Information?: React.FC<InformationBarProps>;
|
|
616
|
+
}
|
|
617
|
+
export interface CodeEditorHeaderComposition {
|
|
618
|
+
LanguageChanger?: React.FC<any>;
|
|
619
|
+
ThemeChanger?: React.FC<any>;
|
|
620
|
+
ValidationError?: React.FC<any>;
|
|
621
|
+
Clipboard?: React.FC<any>;
|
|
622
|
+
}
|
|
623
|
+
export interface CodeEditorHeaderInterface {
|
|
624
|
+
children?: any;
|
|
625
|
+
className?: string;
|
|
626
|
+
hideDefaultSplitHeader?: boolean;
|
|
627
|
+
}
|
|
628
|
+
export interface DeploymentChartVersionType {
|
|
629
|
+
chartRefId: number;
|
|
630
|
+
chartVersion: string;
|
|
631
|
+
chartType: string;
|
|
632
|
+
type: number;
|
|
633
|
+
}
|
|
634
|
+
export interface ChartVersionAndTypeSelectorProps {
|
|
635
|
+
setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
|
|
636
|
+
}
|
|
573
637
|
export declare enum PipelineType {
|
|
574
638
|
CI_PIPELINE = "CI_PIPELINE",
|
|
575
639
|
CD_PIPELINE = "CD_PIPELINE",
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -44,5 +44,7 @@ export * from './Hooks';
|
|
|
44
44
|
export { AppStatus } from './AppStatus';
|
|
45
45
|
export * from './RJSF';
|
|
46
46
|
export * from './DevtronProgressing';
|
|
47
|
+
export { default as ChartVersionAndTypeSelector } from './ChartVersionAndTypeSelector';
|
|
47
48
|
export * from './AddCDButton';
|
|
48
49
|
export * from './CustomInput';
|
|
50
|
+
export * from './DraggableWrapper';
|