@devtron-labs/devtron-fe-common-lib 1.5.11-beta-4 → 1.5.12-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-BSq_PP4E.js +41922 -0
- package/dist/{@common-rjsf-CoxlqMVo.js → @common-rjsf-CTlKDfkP.js} +2 -2
- package/dist/{@framer-motion-CbfcgbXI.js → @framer-motion-CpA7HTl-.js} +70 -70
- package/dist/{@react-dates-CHLhA4kl.js → @react-dates-CaRoxjcN.js} +14 -14
- package/dist/{@react-select-CgLj7C5f.js → @react-select-D4CIuOAx.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-Cj8etBAu.js → @react-virtualized-sticky-tree-CZZtnJ_O.js} +1 -1
- package/dist/@vendor-CKSERKp7.js +42519 -0
- package/dist/Common/AppStatus/utils.d.ts +0 -1
- package/dist/Common/ClipboardButton/index.d.ts +1 -0
- package/dist/Common/CodeEditor/CodeEditor.components.d.ts +11 -0
- package/dist/Common/CodeEditor/CodeEditor.constants.d.ts +7 -0
- package/dist/Common/CodeEditor/CodeEditor.context.d.ts +3 -0
- package/dist/Common/CodeEditor/CodeEditor.d.ts +13 -3
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +3 -47
- package/dist/Common/CodeEditor/CodeEditor.theme.d.ts +1 -0
- package/dist/Common/CodeEditor/CodeEditorRenderer.d.ts +2 -0
- package/dist/Common/CodeEditor/Extensions/findAndReplace.d.ts +2 -0
- package/dist/Common/CodeEditor/Extensions/index.d.ts +3 -0
- package/dist/Common/CodeEditor/Extensions/readOnlyTooltip.d.ts +6 -0
- package/dist/Common/CodeEditor/Extensions/yamlParseLinter.d.ts +3 -0
- package/dist/Common/CodeEditor/index.d.ts +1 -1
- package/dist/Common/CodeEditor/types.d.ts +83 -76
- package/dist/Common/CodeEditor/utils.d.ts +13 -3
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -0
- package/dist/Common/Dialogs/DeleteDialog.d.ts +4 -0
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +4 -0
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +3 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -38
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +25 -90
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -9
- package/dist/Shared/Components/Collapse/Collapse.d.ts +0 -1
- package/dist/Shared/Components/ConfirmationModal/CannotDeleteModal.d.ts +2 -0
- package/dist/Shared/Components/ConfirmationModal/DeleteConfirmationModal.d.ts +3 -0
- package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +2 -0
- package/dist/Shared/Components/ConfirmationModal/index.d.ts +3 -0
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +20 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +1 -3
- package/dist/Shared/Helpers.d.ts +1 -3
- package/dist/Shared/constants.d.ts +25 -0
- package/dist/Shared/types.d.ts +8 -11
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-calendar.984accc5.svg +19 -0
- package/dist/assets/ic-match-case.702186fe.svg +3 -0
- package/dist/assets/ic-match-word.991dea5a.svg +3 -0
- package/dist/assets/ic-person.f78738ac.svg +22 -0
- package/dist/assets/{ic-pulsate-status.2ca548fd.svg → ic-pulsate-status.cc755b3f.svg} +1 -0
- package/dist/assets/ic-replace-all-text.7ebbab01.svg +3 -0
- package/dist/assets/ic-replace-text.5de817d2.svg +3 -0
- package/dist/index.js +555 -565
- package/package.json +14 -7
- package/dist/@code-editor-BKysRe8x.js +0 -23255
- package/dist/@monaco-editor-CVagbUeH.js +0 -138960
- package/dist/@vendor-ROKJESOw.js +0 -22734
- package/dist/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/GitTriggerList.d.ts +0 -5
- package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +0 -3
- package/dist/assets/@monaco-editor.css +0 -1
- package/dist/assets/codicon.ecfbfe4b.ttf +0 -0
- package/dist/assets/ic-aws-codecommit.43f0dd23.svg +0 -26
- package/dist/assets/ic-bitbucket.ffe914a0.svg +0 -30
- package/dist/assets/ic-calendar.1d9c66d2.svg +0 -19
- package/dist/assets/ic-environment.e639b8f3.svg +0 -4
- package/dist/assets/ic-git.89f79adf.svg +0 -17
- package/dist/assets/ic-github.bb1f1753.svg +0 -3
- package/dist/assets/ic-gitlab.de184b7f.svg +0 -31
- package/dist/assets/ic-help-filled.4468cdf1.svg +0 -4
- package/dist/assets/ic-person.d066bc6d.svg +0 -19
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ClipboardButton';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { CodeEditorHeaderProps, CodeEditorStatusBarProps } from './types';
|
3
|
+
export declare const Header: ({ children, className, hideDefaultSplitHeader }: CodeEditorHeaderProps) => JSX.Element;
|
4
|
+
export declare const Warning: ({ className, text, children }: CodeEditorStatusBarProps) => JSX.Element;
|
5
|
+
export declare const ErrorBar: ({ className, text, children }: CodeEditorStatusBarProps) => JSX.Element;
|
6
|
+
export declare const Information: ({ className, children, text }: CodeEditorStatusBarProps) => JSX.Element;
|
7
|
+
export declare const Clipboard: () => JSX.Element;
|
8
|
+
export declare const Container: ({ children, flexExpand }: {
|
9
|
+
children: ReactNode;
|
10
|
+
flexExpand?: boolean;
|
11
|
+
}) => JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
2
|
+
export declare const PREVIOUS_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
3
|
+
export declare const NEXT_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
4
|
+
export declare const REPLACE_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
5
|
+
export declare const REPLACE_ALL_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
6
|
+
export declare const SELECT_ALL_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
7
|
+
export declare const CLOSE_SEARCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
@@ -1,4 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
1
|
+
import { CodeEditorProps } from './types';
|
2
|
+
declare const CodeEditor: {
|
3
|
+
<DiffView extends boolean = false>({ theme, value: propValue, originalValue, modifiedValue, isOriginalModifiable, mode, noParsing, children, tabSize, height, shebang, onChange, onOriginalValueChange, onModifiedValueChange, readOnly, placeholder, diffView, loading, customLoader, validatorSchema, schemaURI, cleanData, onBlur, onFocus, autoFocus, disableSearch, }: CodeEditorProps<DiffView>): JSX.Element;
|
4
|
+
Clipboard: () => JSX.Element;
|
5
|
+
Header: ({ children, className, hideDefaultSplitHeader }: import('./types').CodeEditorHeaderProps) => JSX.Element;
|
6
|
+
Warning: ({ className, text, children }: import('./types').CodeEditorStatusBarProps) => JSX.Element;
|
7
|
+
ErrorBar: ({ className, text, children }: import('./types').CodeEditorStatusBarProps) => JSX.Element;
|
8
|
+
Information: ({ className, children, text }: import('./types').CodeEditorStatusBarProps) => JSX.Element;
|
9
|
+
Container: ({ children, flexExpand }: {
|
10
|
+
children: import('react').ReactNode;
|
11
|
+
flexExpand?: boolean;
|
12
|
+
}) => JSX.Element;
|
13
|
+
};
|
4
14
|
export default CodeEditor;
|
@@ -1,48 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
export declare const CodeEditorReducer: (state: CodeEditorState, action: Action) => {
|
4
|
-
mode: any;
|
5
|
-
diffMode: boolean;
|
6
|
-
theme: import('./types').CodeEditorThemesKeys;
|
7
|
-
code: string;
|
8
|
-
defaultCode: string;
|
9
|
-
noParsing: boolean;
|
10
|
-
} | {
|
11
|
-
diffMode: any;
|
12
|
-
mode: MODES;
|
13
|
-
theme: import('./types').CodeEditorThemesKeys;
|
14
|
-
code: string;
|
15
|
-
defaultCode: string;
|
16
|
-
noParsing: boolean;
|
17
|
-
} | {
|
18
|
-
theme: any;
|
19
|
-
mode: MODES;
|
20
|
-
diffMode: boolean;
|
21
|
-
code: string;
|
22
|
-
defaultCode: string;
|
23
|
-
noParsing: boolean;
|
24
|
-
} | {
|
25
|
-
code: any;
|
26
|
-
mode: MODES;
|
27
|
-
diffMode: boolean;
|
28
|
-
theme: import('./types').CodeEditorThemesKeys;
|
29
|
-
defaultCode: string;
|
30
|
-
noParsing: boolean;
|
31
|
-
} | {
|
32
|
-
defaultCode: any;
|
33
|
-
mode: MODES;
|
34
|
-
diffMode: boolean;
|
35
|
-
theme: import('./types').CodeEditorThemesKeys;
|
36
|
-
code: string;
|
37
|
-
noParsing: boolean;
|
38
|
-
} | {
|
39
|
-
height: any;
|
40
|
-
mode: MODES;
|
41
|
-
diffMode: boolean;
|
42
|
-
theme: import('./types').CodeEditorThemesKeys;
|
43
|
-
code: string;
|
44
|
-
defaultCode: string;
|
45
|
-
noParsing: boolean;
|
46
|
-
};
|
1
|
+
import { CodeEditorPayloadType, CodeEditorInitialValueType, CodeEditorState } from './types';
|
2
|
+
export declare const CodeEditorReducer: (state: CodeEditorState, action: CodeEditorPayloadType) => CodeEditorState;
|
47
3
|
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
48
|
-
export declare const initialState: ({ mode,
|
4
|
+
export declare const initialState: ({ mode, value, lhsValue, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getCodeEditorTheme: (isDark: boolean) => import('@codemirror/state').Extension;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { CodeEditorRendererProps } from './types';
|
2
|
+
export declare const CodeEditorRenderer: ({ loading, customLoader, height, state, codeEditorTheme, codemirrorMergeKey, isDarkTheme, readOnly, isOriginalModifiable, handleLhsOnChange, originalViewExtensions, handleOnChange, modifiedViewExtensions, codeMirrorParentDivRef, shebang, placeholder, onFocus, onBlur, extensions, autoFocus, }: CodeEditorRendererProps) => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { default as CodeEditor } from './CodeEditor';
|
2
|
-
export
|
2
|
+
export type { CodeEditorProps } from './types';
|
@@ -1,100 +1,107 @@
|
|
1
|
-
import {
|
1
|
+
import { Dispatch, FunctionComponent, Key, MutableRefObject, ReactNode, SVGProps } from 'react';
|
2
|
+
import { JSONSchema7 } from 'json-schema';
|
3
|
+
import { EditorView, ReactCodeMirrorProps } from '@uiw/react-codemirror';
|
4
|
+
import { SearchQuery } from '@codemirror/search';
|
2
5
|
import { MODES } from '../Constants';
|
3
|
-
|
6
|
+
import { Never } from '../../Shared/types';
|
7
|
+
import { AppThemeType } from '../../Shared/Providers';
|
8
|
+
export interface CodeEditorStatusBarProps {
|
4
9
|
text: string;
|
5
10
|
className?: string;
|
6
|
-
children?:
|
11
|
+
children?: ReactNode;
|
7
12
|
}
|
8
|
-
export
|
9
|
-
|
10
|
-
|
11
|
-
|
13
|
+
export interface CodeEditorHeaderProps {
|
14
|
+
className?: string;
|
15
|
+
hideDefaultSplitHeader?: boolean;
|
16
|
+
children?: ReactNode;
|
12
17
|
}
|
13
|
-
|
14
|
-
value?:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
type CodeEditorBaseProps = Partial<Pick<ReactCodeMirrorProps, 'onBlur' | 'onFocus' | 'autoFocus'>> & {
|
19
|
+
value?: ReactCodeMirrorProps['value'];
|
20
|
+
onChange?: (value: string) => void;
|
21
|
+
shebang?: string | JSX.Element;
|
22
|
+
validatorSchema?: JSONSchema7;
|
23
|
+
schemaURI?: string;
|
24
|
+
};
|
25
|
+
type CodeEditorDiffBaseProps = {
|
26
|
+
onOriginalValueChange?: (originalValue: string) => void;
|
27
|
+
onModifiedValueChange?: (modifiedValue: string) => void;
|
28
|
+
originalValue?: ReactCodeMirrorProps['value'];
|
29
|
+
modifiedValue?: ReactCodeMirrorProps['value'];
|
30
|
+
isOriginalModifiable?: boolean;
|
31
|
+
};
|
32
|
+
type CodeEditorPropsBasedOnDiffView<DiffView extends boolean> = DiffView extends true ? CodeEditorDiffBaseProps & Never<CodeEditorBaseProps> : CodeEditorBaseProps & Never<CodeEditorDiffBaseProps>;
|
33
|
+
export type CodeEditorProps<DiffView extends boolean = false> = {
|
34
|
+
/**
|
35
|
+
* @default 450
|
36
|
+
*/
|
37
|
+
height?: 'auto' | '100%' | 'fitToParent' | number;
|
38
|
+
children?: ReactNode;
|
39
|
+
mode?: MODES;
|
23
40
|
tabSize?: number;
|
24
41
|
readOnly?: boolean;
|
42
|
+
placeholder?: string;
|
25
43
|
noParsing?: boolean;
|
26
|
-
inline?: boolean;
|
27
|
-
shebang?: string | JSX.Element;
|
28
|
-
diffView?: boolean;
|
29
44
|
loading?: boolean;
|
30
45
|
customLoader?: JSX.Element;
|
31
|
-
theme?: CodeEditorThemesKeys;
|
32
|
-
original?: string;
|
33
|
-
focus?: boolean;
|
34
|
-
validatorSchema?: any;
|
35
|
-
isKubernetes?: boolean;
|
36
46
|
cleanData?: boolean;
|
37
|
-
schemaURI?: string;
|
38
47
|
/**
|
39
|
-
* If true,
|
48
|
+
* If true, disables the in-built search
|
40
49
|
* @default false
|
41
50
|
*/
|
42
51
|
disableSearch?: boolean;
|
52
|
+
diffView?: DiffView;
|
53
|
+
theme?: AppThemeType;
|
54
|
+
} & CodeEditorPropsBasedOnDiffView<DiffView>;
|
55
|
+
export interface GetCodeEditorHeightReturnType {
|
56
|
+
codeEditorParentClassName: string;
|
57
|
+
codeEditorClassName: string;
|
58
|
+
codeEditorHeight: string;
|
43
59
|
}
|
44
|
-
export type
|
45
|
-
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
children?: any;
|
53
|
-
className?: string;
|
54
|
-
hideDefaultSplitHeader?: boolean;
|
55
|
-
}
|
56
|
-
export interface CodeEditorComposition {
|
57
|
-
Header?: React.FC<any>;
|
58
|
-
LanguageChanger?: React.FC<any>;
|
59
|
-
ThemeChanger?: React.FC<any>;
|
60
|
-
ValidationError?: React.FC<any>;
|
61
|
-
Clipboard?: React.FC<any>;
|
62
|
-
Warning?: React.FC<InformationBarProps>;
|
63
|
-
ErrorBar?: React.FC<InformationBarProps>;
|
64
|
-
Information?: React.FC<InformationBarProps>;
|
65
|
-
}
|
66
|
-
export interface CodeEditorHeaderComposition {
|
67
|
-
LanguageChanger?: React.FC<any>;
|
68
|
-
ThemeChanger?: React.FC<any>;
|
69
|
-
ValidationError?: React.FC<any>;
|
70
|
-
Clipboard?: React.FC<any>;
|
60
|
+
export type HoverTexts = {
|
61
|
+
message: string;
|
62
|
+
typeInfo: string;
|
63
|
+
};
|
64
|
+
export type FindReplaceQuery = Partial<Pick<SearchQuery, 'search' | 'wholeWord' | 'regexp' | 'replace' | 'caseSensitive'>>;
|
65
|
+
export interface FindReplaceProps {
|
66
|
+
view: EditorView;
|
67
|
+
defaultQuery: SearchQuery;
|
71
68
|
}
|
72
|
-
export type
|
73
|
-
export interface
|
74
|
-
type:
|
69
|
+
export type CodeEditorActionTypes = 'setDiff' | 'setCode' | 'setLhsCode';
|
70
|
+
export interface CodeEditorPayloadType {
|
71
|
+
type: CodeEditorActionTypes;
|
75
72
|
value: any;
|
76
73
|
}
|
77
|
-
export interface CodeEditorInitialValueType extends Pick<
|
78
|
-
|
74
|
+
export interface CodeEditorInitialValueType extends Pick<CodeEditorProps, 'value' | 'noParsing' | 'tabSize' | 'mode'> {
|
75
|
+
lhsValue: ReactCodeMirrorProps['value'];
|
79
76
|
diffView: boolean;
|
80
|
-
value: string;
|
81
|
-
defaultValue: string;
|
82
|
-
noParsing?: boolean;
|
83
|
-
tabSize: number;
|
84
|
-
appTheme: AppThemeType;
|
85
77
|
}
|
86
|
-
export interface CodeEditorState {
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
78
|
+
export interface CodeEditorState extends Pick<CodeEditorProps, 'noParsing'> {
|
79
|
+
code: CodeEditorProps['value'];
|
80
|
+
lhsCode: CodeEditorProps<true>['originalValue'];
|
81
|
+
diffMode: CodeEditorProps<boolean>['diffView'];
|
82
|
+
}
|
83
|
+
export interface CodeEditorContextProps extends Pick<CodeEditorProps, 'readOnly' | 'height'> {
|
84
|
+
state: CodeEditorState;
|
85
|
+
hasCodeEditorContainer: boolean;
|
86
|
+
dispatch: Dispatch<CodeEditorPayloadType>;
|
93
87
|
}
|
94
|
-
export
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
88
|
+
export interface FindReplaceToggleButtonProps {
|
89
|
+
isChecked: boolean;
|
90
|
+
Icon: FunctionComponent<SVGProps<SVGSVGElement>>;
|
91
|
+
onChange: (isChecked: boolean) => void;
|
92
|
+
iconType?: 'stroke' | 'fill';
|
93
|
+
tooltipText: string;
|
99
94
|
}
|
95
|
+
export type CodeEditorRendererProps = Required<Pick<CodeEditorProps, 'loading' | 'customLoader' | 'height' | 'readOnly' | 'shebang' | 'placeholder' | 'onBlur' | 'onFocus' | 'autoFocus'>> & Required<Pick<CodeEditorDiffBaseProps, 'isOriginalModifiable'>> & {
|
96
|
+
codemirrorMergeKey: Key;
|
97
|
+
codeMirrorParentDivRef: MutableRefObject<HTMLDivElement>;
|
98
|
+
codeEditorTheme: ReactCodeMirrorProps['theme'];
|
99
|
+
isDarkTheme: boolean;
|
100
|
+
state: CodeEditorState;
|
101
|
+
handleOnChange: ReactCodeMirrorProps['onChange'];
|
102
|
+
handleLhsOnChange: ReactCodeMirrorProps['onChange'];
|
103
|
+
originalViewExtensions: ReactCodeMirrorProps['extensions'];
|
104
|
+
modifiedViewExtensions: ReactCodeMirrorProps['extensions'];
|
105
|
+
extensions: ReactCodeMirrorProps['extensions'];
|
106
|
+
};
|
100
107
|
export {};
|
@@ -1,3 +1,13 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { SearchQuery } from '@codemirror/search';
|
2
|
+
import { EditorView, Extension } from '@uiw/react-codemirror';
|
3
|
+
import { CodeEditorProps, FindReplaceToggleButtonProps, GetCodeEditorHeightReturnType } from './types';
|
4
|
+
export declare const getCodeEditorHeight: (height: CodeEditorProps["height"]) => GetCodeEditorHeightReturnType;
|
5
|
+
export declare const getFindReplaceToggleButtonIconClass: ({ iconType, isChecked, }: Pick<FindReplaceToggleButtonProps, "iconType" | "isChecked">) => "scb-5" | "scn-7" | "fcb-5" | "fcn-7";
|
6
|
+
export declare const getUpdatedSearchMatchesCount: (newQuery: SearchQuery, view: EditorView) => {
|
7
|
+
count: number;
|
8
|
+
current: number;
|
9
|
+
};
|
10
|
+
export declare const getFoldGutterElement: (open: boolean) => HTMLSpanElement;
|
11
|
+
export declare const getReadOnlyElement: () => HTMLDivElement;
|
12
|
+
export declare const getLanguageExtension: (mode: CodeEditorProps["mode"]) => Extension;
|
13
|
+
export declare const getValidationSchema: ({ mode, validatorSchema, schemaURI, }: Pick<CodeEditorProps, "schemaURI" | "validatorSchema" | "mode">) => Extension[];
|
@@ -1,3 +1,7 @@
|
|
1
1
|
import { DeleteComponentProps } from './types';
|
2
|
+
/**
|
3
|
+
*
|
4
|
+
* @deprecated Use DeleteConfirmationDialog instead
|
5
|
+
*/
|
2
6
|
declare const DeleteComponent: ({ setDeleting, toggleConfirmation, deleteComponent, title, component, payload, confirmationDialogDescription, redirectTo, url, reload, configuration, closeCustomComponent, }: DeleteComponentProps) => JSX.Element;
|
3
7
|
export default DeleteComponent;
|
@@ -1,2 +1,6 @@
|
|
1
1
|
import { ForceDeleteDialogType } from './Types';
|
2
|
+
/**
|
3
|
+
*
|
4
|
+
* @deprecated Use ForceConfirmationModal instead
|
5
|
+
*/
|
2
6
|
export default function ForceDeleteDialog({ onClickDelete, closeDeleteModal, forceDeleteDialogTitle, forceDeleteDialogMessage, }: ForceDeleteDialogType): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("Alt" | "F" | "E" | "R" | "K" | "
|
3
|
+
keys: ("Alt" | "F" | "E" | "R" | "K" | "Control" | "Shift" | "Meta" | "Escape" | "Enter")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName,
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
|
3
3
|
export default DeploymentHistoryDiffView;
|
@@ -1,3 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
3
|
+
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, }: TriggerDetailsType) => JSX.Element>;
|
2
4
|
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo, appName, }: TriggerOutputProps) => JSX.Element;
|
3
5
|
export default TriggerOutput;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { WorkflowStageStatusType } from './types';
|
2
1
|
export declare const HISTORY_LABEL: {
|
3
2
|
APPLICATION: string;
|
4
3
|
ENVIRONMENT: string;
|
@@ -30,7 +29,6 @@ export declare const TERMINAL_STATUS_MAP: {
|
|
30
29
|
CANCELLED: string;
|
31
30
|
UNABLE_TO_FETCH: string;
|
32
31
|
TIMED_OUT: string;
|
33
|
-
WAITING_TO_START: string;
|
34
32
|
};
|
35
33
|
export declare const EVENT_STREAM_EVENTS_MAP: {
|
36
34
|
MESSAGE: string;
|
@@ -42,45 +40,10 @@ export declare const POD_STATUS: {
|
|
42
40
|
PENDING: string;
|
43
41
|
};
|
44
42
|
export declare const TIMEOUT_VALUE = "1";
|
45
|
-
export declare const
|
46
|
-
export declare const DEFAULT_NAMESPACE = "devtron-ci";
|
43
|
+
export declare const WORKER_POD_BASE_URL = "/resource-browser/1/devtron-ci/pod/k8sEmptyGroup";
|
47
44
|
export declare const DEFAULT_ENV = "devtron-ci";
|
48
45
|
export declare const LOGS_RETRY_COUNT = 3;
|
49
46
|
export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
|
50
47
|
export declare const MANIFEST_STATUS_HEADERS: string[];
|
51
48
|
export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
|
52
49
|
export declare const LOGS_STAGE_STREAM_SEPARATOR = "|";
|
53
|
-
export declare const statusColor: {
|
54
|
-
[x: string]: string;
|
55
|
-
suspended: string;
|
56
|
-
unknown: string;
|
57
|
-
queued: string;
|
58
|
-
degraded: string;
|
59
|
-
healthy: string;
|
60
|
-
notdeployed: string;
|
61
|
-
missing: string;
|
62
|
-
progressing: string;
|
63
|
-
initiating: string;
|
64
|
-
starting: string;
|
65
|
-
succeeded: string;
|
66
|
-
running: string;
|
67
|
-
failed: string;
|
68
|
-
error: string;
|
69
|
-
cancelled: string;
|
70
|
-
aborted: string;
|
71
|
-
timedout: string;
|
72
|
-
unabletofetch: string;
|
73
|
-
hibernating: string;
|
74
|
-
};
|
75
|
-
export declare const PULSATING_STATUS_MAP: {
|
76
|
-
[key in keyof typeof statusColor]?: boolean;
|
77
|
-
};
|
78
|
-
export declare const WORKFLOW_STAGE_STATUS_TO_TEXT_MAP: Record<WorkflowStageStatusType, string>;
|
79
|
-
export declare const EXECUTION_FINISHED_TEXT_MAP: Partial<Record<WorkflowStageStatusType, string>>;
|
80
|
-
export declare const TERMINAL_STATUS_COLOR_CLASS_MAP: {
|
81
|
-
readonly [x: string]: "cr-5" | "cg-5" | "co-5";
|
82
|
-
};
|
83
|
-
export declare const PROGRESSING_STATUS: {
|
84
|
-
readonly [x: string]: "progressing" | "starting" | "initiating" | "queued" | "running";
|
85
|
-
};
|
86
|
-
export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
export { default as Sidebar } from './Sidebar';
|
2
2
|
export { default as Artifacts } from './Artifacts';
|
3
3
|
export { default as TriggerOutput } from './TriggerOutput';
|
4
|
-
export { default as TriggerDetails } from './TriggerDetails';
|
5
4
|
export { default as CDEmptyState } from './CDEmptyState';
|
6
5
|
export { default as DeploymentStatusDetailBreakdown } from './DeploymentStatusBreakdown';
|
7
6
|
export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
|
@@ -10,8 +9,8 @@ export * from './types';
|
|
10
9
|
export * from './service';
|
11
10
|
export * from './History.components';
|
12
11
|
export * from './utils';
|
12
|
+
export * from './TriggerOutput';
|
13
13
|
export { default as LogsRenderer } from './LogsRenderer';
|
14
14
|
export * from './DeploymentHistoryConfigDiff';
|
15
15
|
export * from './CiPipelineSourceConfig';
|
16
16
|
export * from './StatusFilterButtonComponent';
|
17
|
-
export { statusColor } from './constants';
|