@devtron-labs/devtron-fe-common-lib 1.9.1-beta-4 → 1.9.2
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-BcdvXLUs.js → @code-editor-Vc2RufTo.js} +7202 -7584
- package/dist/{@common-rjsf-Dtdmx6jk.js → @common-rjsf-Ds6mom5d.js} +2 -2
- package/dist/{@framer-motion-B1qa0yMz.js → @framer-motion-FKAND_5t.js} +1 -1
- package/dist/{@react-dates-B1uoPc_Q.js → @react-dates-Cc7UHR4b.js} +1 -1
- package/dist/{@react-select-CIub7ipj.js → @react-select-45zYr11O.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CzHL2GVC.js → @react-virtualized-sticky-tree-Du399kou.js} +1 -1
- package/dist/{@vendor-ihgcJgmv.js → @vendor-CSolG4o7.js} +24778 -31391
- package/dist/Common/CodeMirror/CodeEditor.constants.d.ts +1 -1
- package/dist/Common/CodeMirror/CodeEditorRenderer.d.ts +1 -1
- package/dist/Common/CodeMirror/Extensions/DiffMinimap.d.ts +1 -1
- package/dist/Common/CodeMirror/types.d.ts +8 -6
- package/dist/Common/CodeMirror/utils.d.ts +3 -3
- package/dist/Common/Constants.d.ts +88 -94
- package/dist/Common/Tooltip/constants.d.ts +0 -1
- package/dist/Common/Types.d.ts +0 -4
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -38
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +1 -3
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -2
- package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/types.d.ts +3 -8
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -3
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/ReactSelect/constants.d.ts +15 -7
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -2
- package/dist/Shared/Components/index.d.ts +0 -2
- package/dist/Shared/Services/app.service.d.ts +1 -4
- package/dist/Shared/Services/common.service.d.ts +3 -4
- package/dist/Shared/Services/index.d.ts +0 -1
- package/dist/Shared/Services/types.d.ts +14 -6
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +795 -804
- package/package.json +2 -3
- package/dist/Common/GenericDescription/utils.d.ts +0 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +0 -3
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +0 -2
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +0 -26
- package/dist/Shared/Components/GenericInfoCard/utils.d.ts +0 -2
- package/dist/Shared/Components/GitProviderIcon/utils.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +0 -4
- package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +0 -19
- package/dist/Shared/Components/GraphVisualizer/constants.d.ts +0 -15
- package/dist/Shared/Components/GraphVisualizer/index.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/types.d.ts +0 -12
- package/dist/Shared/Components/GraphVisualizer/utils.d.ts +0 -17
- package/dist/Shared/Services/template.service.d.ts +0 -2
- package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
- package/dist/assets/ic-copy.416d85f3.svg +0 -3
- package/dist/assets/ic-new.2c179139.svg +0 -3
@@ -5,6 +5,6 @@ export declare const REPLACE_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
|
5
5
|
export declare const REPLACE_ALL_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
6
6
|
export declare const CLOSE_SEARCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
7
7
|
export declare const READ_ONLY_TOOLTIP_TIMEOUT = 2000;
|
8
|
-
export declare const CODE_EDITOR_FONT_SIZE =
|
8
|
+
export declare const CODE_EDITOR_FONT_SIZE = 14;
|
9
9
|
export declare const CODE_EDITOR_LINE_HEIGHT = 1.4;
|
10
10
|
export declare const CODE_EDITOR_MIN_OVERLAY_HEIGHT = 20;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { CodeEditorRendererProps } from './types';
|
2
|
-
export declare const CodeEditorRenderer: ({ codemirrorMergeKey, theme, loading, customLoader, height, codeEditorTheme, readOnly,
|
2
|
+
export declare const CodeEditorRenderer: ({ codemirrorMergeKey, theme, loading, customLoader, height, codeEditorTheme, readOnly, handleLhsOnChange, originalViewExtensions, handleOnChange, modifiedViewExtensions, codeMirrorParentDivRef, shebang, placeholder, onFocus, onBlur, extensions, autoFocus, diffMinimapExtensions, }: CodeEditorRendererProps) => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DiffMinimapProps } from '../types';
|
2
|
-
export declare const DiffMinimap: ({ view,
|
2
|
+
export declare const DiffMinimap: ({ view, theme, diffMinimapParentRef, scalingFactor }: DiffMinimapProps) => JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Dispatch, FunctionComponent, Key, MutableRefObject, ReactNode, SetStateAction, SVGProps } from 'react';
|
2
2
|
import { JSONSchema7 } from 'json-schema';
|
3
|
-
import { EditorView, ReactCodeMirrorProps } from '@uiw/react-codemirror';
|
4
|
-
import {
|
3
|
+
import { EditorView, Extension, ReactCodeMirrorProps } from '@uiw/react-codemirror';
|
4
|
+
import { MergeView } from '@codemirror/merge';
|
5
5
|
import { SearchQuery } from '@codemirror/search';
|
6
6
|
import { MODES } from '../Constants';
|
7
7
|
import { Never } from '../../Shared/types';
|
@@ -84,10 +84,10 @@ export interface FindReplaceToggleButtonProps {
|
|
84
84
|
iconType?: 'stroke' | 'fill';
|
85
85
|
tooltipText: string;
|
86
86
|
}
|
87
|
-
export type CodeEditorRendererProps = Required<Pick<CodeEditorProps, 'theme' | 'loading' | 'customLoader' | 'height' | 'readOnly' | 'shebang' | 'placeholder' | 'onBlur' | 'onFocus' | 'autoFocus'>> &
|
87
|
+
export type CodeEditorRendererProps = Required<Pick<CodeEditorProps, 'theme' | 'loading' | 'customLoader' | 'height' | 'readOnly' | 'shebang' | 'placeholder' | 'onBlur' | 'onFocus' | 'autoFocus'>> & {
|
88
88
|
codemirrorMergeKey: Key;
|
89
89
|
codeMirrorParentDivRef: MutableRefObject<HTMLDivElement>;
|
90
|
-
codeEditorTheme:
|
90
|
+
codeEditorTheme: Extension;
|
91
91
|
handleOnChange: ReactCodeMirrorProps['onChange'];
|
92
92
|
handleLhsOnChange: ReactCodeMirrorProps['onChange'];
|
93
93
|
originalViewExtensions: ReactCodeMirrorProps['extensions'];
|
@@ -95,7 +95,9 @@ export type CodeEditorRendererProps = Required<Pick<CodeEditorProps, 'theme' | '
|
|
95
95
|
extensions: ReactCodeMirrorProps['extensions'];
|
96
96
|
diffMinimapExtensions: ReactCodeMirrorProps['extensions'];
|
97
97
|
};
|
98
|
-
export interface DiffMinimapProps extends Pick<CodeEditorRendererProps, '
|
99
|
-
view:
|
98
|
+
export interface DiffMinimapProps extends Pick<CodeEditorRendererProps, 'theme'> {
|
99
|
+
view: MergeView;
|
100
|
+
diffMinimapParentRef: MutableRefObject<HTMLDivElement>;
|
101
|
+
scalingFactor: number;
|
100
102
|
}
|
101
103
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { EditorView, Extension, Transaction } from '@uiw/react-codemirror';
|
2
|
+
import { MergeView } from '@codemirror/merge';
|
2
3
|
import { SearchQuery } from '@codemirror/search';
|
3
|
-
import { EditorView, Extension } from '@uiw/react-codemirror';
|
4
4
|
import { CodeEditorProps, FindReplaceToggleButtonProps, GetCodeEditorHeightReturnType } from './types';
|
5
5
|
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
6
6
|
export declare const getCodeEditorHeight: (height: CodeEditorProps["height"]) => GetCodeEditorHeightReturnType;
|
@@ -9,7 +9,7 @@ export declare const getUpdatedSearchMatchesCount: (newQuery: SearchQuery, view:
|
|
9
9
|
count: number;
|
10
10
|
current: number;
|
11
11
|
};
|
12
|
-
export declare const updateDiffMinimapValues: (view:
|
12
|
+
export declare const updateDiffMinimapValues: (view: MergeView, transactions: readonly Transaction[], side: "a" | "b") => void;
|
13
13
|
export declare const getFoldGutterElement: (open: boolean) => HTMLSpanElement;
|
14
14
|
export declare const getReadOnlyElement: () => HTMLDivElement;
|
15
15
|
export declare const getRevertControlButton: () => HTMLButtonElement;
|
@@ -30,102 +30,96 @@ export declare const PATTERNS: {
|
|
30
30
|
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
|
31
31
|
};
|
32
32
|
export declare const URLS: {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
readonly GLOBAL_CONFIG: "/global-config";
|
64
|
-
readonly CONFIG_DRIFT: "config-drift";
|
65
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
66
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
67
|
-
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
33
|
+
LOGIN_SSO: string;
|
34
|
+
PERMISSION_GROUPS: string;
|
35
|
+
APP: string;
|
36
|
+
APP_LIST: string;
|
37
|
+
CHARTS_DISCOVER: string;
|
38
|
+
JOB: string;
|
39
|
+
CREATE_JOB: string;
|
40
|
+
GETTING_STARTED: string;
|
41
|
+
STACK_MANAGER_ABOUT: string;
|
42
|
+
APP_LIST_HELM: string;
|
43
|
+
APP_CI_DETAILS: string;
|
44
|
+
LOGS: string;
|
45
|
+
CREATE: string;
|
46
|
+
RELEASES: string;
|
47
|
+
DEVTRON_CHARTS: string;
|
48
|
+
APP_DEPLOYMNENT_HISTORY: string;
|
49
|
+
APP_DETAILS: string;
|
50
|
+
APP_DETAILS_K8: string;
|
51
|
+
DETAILS: string;
|
52
|
+
CD_DETAILS: string;
|
53
|
+
APP_TRIGGER: string;
|
54
|
+
GLOBAL_CONFIG_DOCKER: string;
|
55
|
+
DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
|
56
|
+
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
57
|
+
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
|
58
|
+
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: string;
|
59
|
+
NETWORK_STATUS_INTERFACE: string;
|
60
|
+
RESOURCE_BROWSER: string;
|
61
|
+
COMPARE_CLUSTERS: string;
|
62
|
+
CONFIG_DRIFT: string;
|
68
63
|
};
|
69
64
|
export declare const ROUTES: {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
readonly ENVIRONMENT_DATA: "global/environment-variables";
|
65
|
+
APP: string;
|
66
|
+
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
67
|
+
APP_TEMPLATE_DATA: string;
|
68
|
+
PROJECT_LIST_MIN: string;
|
69
|
+
USER_CHECK_ROLE: string;
|
70
|
+
IMAGE_TAGGING: string;
|
71
|
+
CREATE_RESOURCE: string;
|
72
|
+
K8S_RESOURCE_CREATE: string;
|
73
|
+
CI_CONFIG_GET: string;
|
74
|
+
CD_MATERIAL_GET: string;
|
75
|
+
DEPLOYMENT_TEMPLATE_LIST: string;
|
76
|
+
INFRA_CONFIG_PROFILE: string;
|
77
|
+
SCAN_RESULT: string;
|
78
|
+
NOTIFIER: string;
|
79
|
+
APP_LIST: string;
|
80
|
+
TELEMETRY_EVENT: string;
|
81
|
+
SERVER_INFO_API: string;
|
82
|
+
ATTRIBUTES_USER: string;
|
83
|
+
GET: string;
|
84
|
+
UPDATE: string;
|
85
|
+
ENVIRONMENT_LIST_MIN: string;
|
86
|
+
CLUSTER: string;
|
87
|
+
API_RESOURCE: string;
|
88
|
+
GVK: string;
|
89
|
+
NAMESPACE: string;
|
90
|
+
CLUSTER_NOTE: string;
|
91
|
+
APPLICATION_NOTE: string;
|
92
|
+
GIT_HOST_EVENT: string;
|
93
|
+
HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: string;
|
94
|
+
DEPLOYMENT_STATUS: string;
|
95
|
+
MANUAL_SYNC: string;
|
96
|
+
CD_CONFIG: string;
|
97
|
+
CONFIG_CD_PIPELINE: string;
|
98
|
+
MODULE_CONFIGURED: string;
|
99
|
+
RESOURCE_HISTORY_DEPLOYMENT: string;
|
100
|
+
ATTRIBUTES: string;
|
101
|
+
ATTRIBUTES_CREATE: string;
|
102
|
+
ATTRIBUTES_UPDATE: string;
|
103
|
+
APP_LIST_MIN: string;
|
104
|
+
CLUSTER_LIST_MIN: string;
|
105
|
+
CLUSTER_LIST_RAW: string;
|
106
|
+
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
107
|
+
PLUGIN_GLOBAL_LIST_V2: string;
|
108
|
+
PLUGIN_GLOBAL_LIST_TAGS: string;
|
109
|
+
PLUGIN_LIST_MIN: string;
|
110
|
+
DEPLOYMENT_CHARTS_LIST: string;
|
111
|
+
USER_LIST_MIN: string;
|
112
|
+
CONFIG_DATA: string;
|
113
|
+
K8S_RESOURCE: string;
|
114
|
+
K8S_RESOURCE_LIST: string;
|
115
|
+
FILE_UPLOAD: string;
|
116
|
+
PLUGIN_GLOBAL_VARIABLES: string;
|
117
|
+
CONFIG_COMPARE_SECRET: string;
|
118
|
+
SCOPED_GLOBAL_VARIABLES: string;
|
119
|
+
CD_TRIGGER_POST: string;
|
120
|
+
DELETE_RESOURCE: string;
|
121
|
+
NODE_CAPACITY: string;
|
122
|
+
ENVIRONMENT_DATA: string;
|
129
123
|
};
|
130
124
|
export declare enum KEY_VALUE {
|
131
125
|
KEY = "key",
|
package/dist/Common/Types.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ResourceKindType } from '../../../../../Shared/types';
|
2
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
3
2
|
export declare enum ConfigHeaderTabType {
|
4
3
|
VALUES = "values",
|
@@ -33,40 +32,3 @@ export interface OverrideStrategyTippyContentProps {
|
|
33
32
|
*/
|
34
33
|
children?: ReactNode;
|
35
34
|
}
|
36
|
-
export interface AppConfigProps {
|
37
|
-
appName: string;
|
38
|
-
resourceKind: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.job>;
|
39
|
-
filteredEnvIds?: string;
|
40
|
-
isTemplateView?: boolean;
|
41
|
-
}
|
42
|
-
export declare enum GetTemplateAPIRouteType {
|
43
|
-
GIT_MATERIAL = "git-material",
|
44
|
-
CI_BUILD_CONFIG = "ci-build-config",
|
45
|
-
STAGE_STATUS = "stage-status",
|
46
|
-
CD_DEPLOY_CONFIG = "cd-deploy-config",
|
47
|
-
CD_ENV_LIST = "cd-env-list",
|
48
|
-
CONFIG_DEPLOYMENT_TEMPLATE = "config/deployment-template",
|
49
|
-
CONFIG_DEPLOYMENT_TEMPLATE_ENV = "config/deployment-template/env",
|
50
|
-
CONFIG_DATA = "config-data",
|
51
|
-
CONFIG_CM = "config/config-map",
|
52
|
-
CONFIG_CS = "config/secret",
|
53
|
-
WORKFLOW = "workflow",
|
54
|
-
WORKFLOW_LIST = "workflow/list",
|
55
|
-
OVERVIEW = "overview",
|
56
|
-
README = "readme",
|
57
|
-
CD_PIPELINE_LIST = "cd-pipeline/list",
|
58
|
-
EXTERNAL_CI_LIST = "external-ci/list",
|
59
|
-
EXTERNAL_CI = "external-ci",
|
60
|
-
CI_PIPELINE = "ci-pipeline",
|
61
|
-
CD_PIPELINE = "cd-pipeline",
|
62
|
-
CONFIG_STRATEGY = "config/strategy",
|
63
|
-
CHART_REF = "chartRef",
|
64
|
-
PIPELINE_SUGGEST_CI = "pipeline/suggest/ci",
|
65
|
-
PIPELINE_SUGGEST_CD = "pipeline/suggest/cd"
|
66
|
-
}
|
67
|
-
export interface GetTemplateAPIRouteProps {
|
68
|
-
type: GetTemplateAPIRouteType;
|
69
|
-
queryParams: {
|
70
|
-
id: string | number;
|
71
|
-
} & Record<string, any>;
|
72
|
-
}
|
package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
import { FloatingVariablesSuggestionsProps } from './types';
|
3
|
-
declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover,
|
3
|
+
declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
|
4
4
|
export default _default;
|
@@ -1,4 +1,2 @@
|
|
1
1
|
import { FloatingVariablesSuggestionsProps, ScopedVariableType } from './types';
|
2
|
-
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"],
|
3
|
-
hideObjectVariables?: boolean;
|
4
|
-
}) => Promise<ScopedVariableType[]>;
|
2
|
+
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], hideObjectVariables?: boolean) => Promise<ScopedVariableType[]>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { AppConfigProps } from '../../../Pages/index';
|
2
1
|
import { DraggableBounds } from 'react-draggable';
|
3
2
|
export interface ScopedVariableType {
|
4
3
|
variableName: string;
|
@@ -8,7 +7,7 @@ export interface ScopedVariableType {
|
|
8
7
|
} | null;
|
9
8
|
isRedacted: boolean;
|
10
9
|
}
|
11
|
-
export interface FloatingVariablesSuggestionsProps
|
10
|
+
export interface FloatingVariablesSuggestionsProps {
|
12
11
|
zIndex: number;
|
13
12
|
appId?: string;
|
14
13
|
envId?: string;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { GitProviderIconProps } from './types';
|
2
|
-
export declare const GitProviderIcon: ({ gitProvider, size
|
2
|
+
export declare const GitProviderIcon: ({ gitProvider, size }: GitProviderIconProps) => JSX.Element;
|
@@ -1,15 +1,10 @@
|
|
1
1
|
import { GitProviderType } from '../../../Common/Constants';
|
2
2
|
import { IconsProps } from '../Icon';
|
3
|
-
export
|
3
|
+
export interface GitProviderIconProps {
|
4
|
+
gitProvider: GitProviderType;
|
4
5
|
/**
|
5
6
|
* The size of the icon in pixels.
|
6
7
|
* @default 20
|
7
8
|
*/
|
8
9
|
size?: IconsProps['size'];
|
9
|
-
}
|
10
|
-
gitProvider: GitProviderType;
|
11
|
-
gitRepoUrl?: never;
|
12
|
-
} | {
|
13
|
-
gitProvider?: never;
|
14
|
-
gitRepoUrl: string;
|
15
|
-
});
|
10
|
+
}
|
@@ -8,7 +8,6 @@ export declare const iconMap: {
|
|
8
8
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
9
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
10
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
|
-
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
11
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
12
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
13
|
'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -17,7 +16,6 @@ export declare const iconMap: {
|
|
17
16
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
17
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
19
18
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
20
|
-
'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
19
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
20
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
21
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -51,7 +49,6 @@ export declare const iconMap: {
|
|
51
49
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
50
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
51
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
|
-
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
52
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
53
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
54
|
'ic-open-box': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,7 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
export declare const CommonGroupedDropdownStyles: {
|
2
|
+
container: (base: any, state: any) => any;
|
3
|
+
control: (base: any, state: any) => any;
|
4
|
+
singleValue: (base: any) => any;
|
5
|
+
option: (base: any, state: any) => any;
|
6
|
+
valueContainer: (base: any) => any;
|
7
|
+
dropdownIndicator: (base: any, state: any) => any;
|
8
|
+
group: (base: any) => any;
|
9
|
+
groupHeading: (base: any) => any;
|
10
|
+
menuList: (base: any) => any;
|
11
|
+
multiValue: (base: any) => any;
|
12
|
+
multiValueLabel: (base: any) => any;
|
13
|
+
placeholder: (base: any) => any;
|
14
|
+
menu: (base: any) => any;
|
15
|
+
};
|
@@ -80,7 +80,7 @@ export declare enum SelectPickerVariantType {
|
|
80
80
|
DEFAULT = "default",
|
81
81
|
BORDER_LESS = "border-less"
|
82
82
|
}
|
83
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption'
|
83
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
84
84
|
/**
|
85
85
|
* Custom selected options count for use cases like filters
|
86
86
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { WorkflowOptionsModalProps } from './types';
|
2
|
-
declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup,
|
2
|
+
declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
|
3
3
|
export default WorkflowOptionsModal;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { AppConfigProps } from '../../../Pages/index';
|
2
1
|
import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
|
3
2
|
interface LinkedCDSourceVariant {
|
4
3
|
title: string;
|
@@ -13,7 +12,7 @@ export interface SourceTypeCardProps extends LinkedCDSourceVariant {
|
|
13
12
|
disableInfo: string;
|
14
13
|
isDisabled?: boolean;
|
15
14
|
}
|
16
|
-
export interface WorkflowOptionsModalProps
|
15
|
+
export interface WorkflowOptionsModalProps {
|
17
16
|
handleCloseWorkflowOptionsModal: () => void;
|
18
17
|
addCIPipeline: (type: CIPipelineNodeType, workflowId?: number | string) => void;
|
19
18
|
addWebhookCD: (workflowId?: number | string) => void;
|
@@ -59,8 +59,6 @@ export * from './ThemeSwitcher';
|
|
59
59
|
export * from './TargetPlatforms';
|
60
60
|
export * from './UnsavedChanges';
|
61
61
|
export * from './UnsavedChangesDialog';
|
62
|
-
export * from './GraphVisualizer';
|
63
|
-
export * from './GenericInfoCard';
|
64
62
|
export * from './Icon';
|
65
63
|
export * from './StatusComponent';
|
66
64
|
export * from './RegistryIcon';
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { AppConfigProps } from '../../Pages/index';
|
2
1
|
import { ResponseType } from '../../Common';
|
3
2
|
import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
|
4
3
|
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
@@ -6,10 +5,8 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
|
|
6
5
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
7
6
|
*/
|
8
7
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
|
9
|
-
export declare const getAppEnvDeploymentConfig: ({ params, signal,
|
8
|
+
export declare const getAppEnvDeploymentConfig: ({ params, signal, }: {
|
10
9
|
params: AppEnvDeploymentConfigPayloadType;
|
11
10
|
signal?: AbortSignal;
|
12
|
-
isTemplateView: AppConfigProps["isTemplateView"];
|
13
|
-
appId: string | number | null;
|
14
11
|
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
15
12
|
export declare const getCompareSecretsData: (params: AppEnvDeploymentConfigPayloadType[]) => Promise<AppEnvDeploymentConfigDTO[]>;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
|
1
|
+
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps, UpdatedUserPreferencesType, UserPreferencesType } from './types';
|
3
2
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
4
3
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
5
|
-
export declare const saveCDPipeline: (request: any
|
4
|
+
export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
|
6
5
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
7
6
|
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
8
|
-
export declare const updateUserPreferences: (updatedUserPreferences:
|
7
|
+
export declare const updateUserPreferences: (updatedUserPreferences: UpdatedUserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MainContext } from '../Providers';
|
2
|
-
import { ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
|
2
|
+
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
|
3
3
|
import { getUrlWithSearchParams } from '../../Common';
|
4
4
|
import { PolicyKindType, ResourceKindType, ResourceVersionType, ViewIsPipelineRBACConfiguredRadioTabs } from '../types';
|
5
5
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
@@ -42,17 +42,25 @@ export interface GetUserPreferencesQueryParamsType {
|
|
42
42
|
export interface GetUserPreferencesParsedDTO {
|
43
43
|
viewPermittedEnvOnly?: boolean;
|
44
44
|
/**
|
45
|
-
*
|
46
|
-
*
|
45
|
+
* Computed app theme for the user
|
46
|
+
*
|
47
|
+
* Could be 'light' | 'dark' | 'system-light' | 'system-dark'
|
47
48
|
*/
|
48
|
-
|
49
|
+
computedAppTheme: AppThemeType | `system-${AppThemeType}`;
|
49
50
|
}
|
50
|
-
export interface
|
51
|
+
export interface UserPreferencesPayloadValueType extends GetUserPreferencesParsedDTO {
|
51
52
|
}
|
52
53
|
export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
|
53
54
|
value: string;
|
54
55
|
}
|
55
|
-
export interface UserPreferencesType
|
56
|
+
export interface UserPreferencesType {
|
57
|
+
/**
|
58
|
+
* Preferred theme for the user
|
59
|
+
* If null, would forcibly show user theme switcher dialog for user to select
|
60
|
+
*/
|
61
|
+
themePreference: ThemePreferenceType | null;
|
56
62
|
pipelineRBACViewSelectedTab: ViewIsPipelineRBACConfiguredRadioTabs;
|
57
63
|
}
|
64
|
+
export interface UpdatedUserPreferencesType extends UserPreferencesType, Pick<ThemeConfigType, 'appTheme'> {
|
65
|
+
}
|
58
66
|
export {};
|
@@ -17,7 +17,6 @@ export declare const MESSAGES: {
|
|
17
17
|
INVALID_DATE: string;
|
18
18
|
DATE_BEFORE_CURRENT_TIME: string;
|
19
19
|
};
|
20
|
-
export declare const MAX_DESCRIPTION_LENGTH = 350;
|
21
20
|
export declare const validateLabelValue: (value: string) => string[];
|
22
21
|
export declare const validateLabelKey: (key: string, skipValidationIfSpecialPrefix?: boolean) => {
|
23
22
|
isValid: boolean;
|