@devtron-labs/devtron-fe-common-lib 0.5.2 → 0.5.4-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/Common/Constants.d.ts +3 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +53 -3
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +6 -0
- package/dist/Common/Tooltip/index.d.ts +0 -1
- package/dist/Common/Tooltip/types.d.ts +1 -7
- package/dist/Common/Types.d.ts +2 -6
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +171 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +27 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +2 -0
- package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/types.d.ts +4 -4
- package/dist/Pages/{App → Applications/DevtronApps/Details}/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/index.d.ts +1 -0
- package/dist/Pages/Applications/index.d.ts +1 -0
- package/dist/Pages/index.d.ts +1 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +6 -0
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -54
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +2 -55
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +4 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +3 -0
- package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +2 -0
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +6 -0
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -0
- package/dist/Shared/Components/SelectPicker/constants.d.ts +5 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +9 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +29 -26
- package/dist/Shared/Hooks/useForm/useForm.types.d.ts +15 -8
- package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +35 -22
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +12 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-AQ13-53e.js → cssMode-COfNaasW.js} +1 -1
- package/dist/{freemarker2-BPY6HFv9.js → freemarker2-D4JQzudf.js} +1 -1
- package/dist/{handlebars-BGTB0fFB.js → handlebars-DGji_OpS.js} +1 -1
- package/dist/{html-C1JYxDWB.js → html-adPIuadx.js} +1 -1
- package/dist/{htmlMode-DBDTH7uv.js → htmlMode-FhxZVJ1N.js} +1 -1
- package/dist/{index-P1iGiBeJ.js → index-C_1GsWlM.js} +25920 -25700
- package/dist/index.js +541 -521
- package/dist/{javascript-Bl_vEjJI.js → javascript-BNupu1_G.js} +1 -1
- package/dist/{jsonMode-CzFtSbfV.js → jsonMode-BsIruUr1.js} +1 -1
- package/dist/{liquid-DXsVzf-a.js → liquid-ljKMsaYG.js} +1 -1
- package/dist/{mdx-CMTQmEX0.js → mdx-Bd5sySmF.js} +1 -1
- package/dist/{python-DuxuOYRY.js → python-DeguJ984.js} +1 -1
- package/dist/{razor-DiPq0jCg.js → razor-E5N2Ai3j.js} +1 -1
- package/dist/{tsMode-wscnJk1O.js → tsMode-C6PtS8O-.js} +1 -1
- package/dist/{typescript-FFRtOH62.js → typescript-Deq8uEvD.js} +1 -1
- package/dist/{xml-Cx3e_sa5.js → xml-BYmsqqWY.js} +1 -1
- package/dist/{yaml-Bik3TkiX.js → yaml-D7je9MqX.js} +1 -1
- package/package.json +3 -4
- package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
- package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
- /package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/index.d.ts +0 -0
|
@@ -5,6 +5,7 @@ export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
|
5
5
|
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
7
7
|
export declare const DOCUMENTATION: {
|
|
8
|
+
APP_METRICS: string;
|
|
8
9
|
APP_TAGS: string;
|
|
9
10
|
APP_OVERVIEW_TAGS: string;
|
|
10
11
|
BLOB_STORAGE: string;
|
|
@@ -48,6 +49,7 @@ export declare const URLS: {
|
|
|
48
49
|
export declare const ROUTES: {
|
|
49
50
|
APP: string;
|
|
50
51
|
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
52
|
+
APP_TEMPLATE_DATA: string;
|
|
51
53
|
PROJECT_LIST_MIN: string;
|
|
52
54
|
USER_CHECK_ROLE: string;
|
|
53
55
|
IMAGE_TAGGING: string;
|
|
@@ -250,6 +252,7 @@ export declare const API_STATUS_CODES: {
|
|
|
250
252
|
PERMISSION_DENIED: number;
|
|
251
253
|
NOT_FOUND: number;
|
|
252
254
|
EXPECTATION_FAILED: number;
|
|
255
|
+
LOCKED: number;
|
|
253
256
|
};
|
|
254
257
|
export declare enum SERVER_MODE {
|
|
255
258
|
EA_ONLY = "EA_ONLY",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UseRegisterShortcutContextType } from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const UseRegisterShortcutContext: import('react').Context<UseRegisterShortcutContextType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UseRegisterShortcutProviderType } from './types';
|
|
2
|
-
declare const UseRegisterShortcutProvider: ({ children }: UseRegisterShortcutProviderType) => JSX.Element;
|
|
2
|
+
declare const UseRegisterShortcutProvider: ({ ignoreTags, preventDefault, shortcutTimeout, children, }: UseRegisterShortcutProviderType) => JSX.Element;
|
|
3
3
|
export default UseRegisterShortcutProvider;
|
|
@@ -1,7 +1,57 @@
|
|
|
1
|
+
export declare const KEYBOARD_KEYS_MAP: {
|
|
2
|
+
readonly Control: "Ctrl";
|
|
3
|
+
readonly Shift: "⇧";
|
|
4
|
+
readonly Meta: "⌘" | "Win";
|
|
5
|
+
readonly Alt: "⌥" | "Alt";
|
|
6
|
+
readonly F: "F";
|
|
7
|
+
readonly E: "E";
|
|
8
|
+
readonly R: "R";
|
|
9
|
+
readonly K: "K";
|
|
10
|
+
};
|
|
11
|
+
export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
|
|
12
|
+
export interface ShortcutType {
|
|
13
|
+
keys: SupportedKeyboardKeysType[];
|
|
14
|
+
callbackStack: Array<() => void>;
|
|
15
|
+
description?: string;
|
|
16
|
+
}
|
|
17
|
+
interface RegisterShortcutType extends Pick<ShortcutType, 'keys' | 'description'> {
|
|
18
|
+
callback: ShortcutType['callbackStack'][number];
|
|
19
|
+
}
|
|
1
20
|
export interface UseRegisterShortcutContextType {
|
|
2
|
-
|
|
3
|
-
|
|
21
|
+
/**
|
|
22
|
+
* This method registers a shortcut with its corresponding callback
|
|
23
|
+
*
|
|
24
|
+
* If keys is undefined or null this method will throw an error
|
|
25
|
+
*/
|
|
26
|
+
registerShortcut: (props: RegisterShortcutType) => void;
|
|
27
|
+
/**
|
|
28
|
+
* This method unregisters the provided shortcut if found
|
|
29
|
+
*
|
|
30
|
+
* If keys is undefined or null this method will throw an error
|
|
31
|
+
*/
|
|
32
|
+
unregisterShortcut: (keys: ShortcutType['keys']) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Globally disable all shortcuts with this function
|
|
35
|
+
*/
|
|
36
|
+
setDisableShortcuts: (shouldDisable: boolean) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Programmatically trigger a shortcut if already registered
|
|
39
|
+
*/
|
|
40
|
+
triggerShortcut: (keys: ShortcutType['keys']) => void;
|
|
4
41
|
}
|
|
5
42
|
export interface UseRegisterShortcutProviderType {
|
|
6
|
-
children: React.
|
|
43
|
+
children: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Defines how long after holding the keys down do we trigger the callback in milliseconds
|
|
46
|
+
*/
|
|
47
|
+
shortcutTimeout?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Defines which html tags to ignore as source of an event
|
|
50
|
+
*/
|
|
51
|
+
ignoreTags?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* If true, call preventDefault on the event
|
|
54
|
+
*/
|
|
55
|
+
preventDefault?: boolean;
|
|
7
56
|
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ShortcutType } from './types';
|
|
2
|
+
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
|
3
|
+
keys: ("Control" | "Alt" | "F" | "E" | "R" | "K" | "Shift" | "Meta")[];
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
+
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
|
1
2
|
import { TippyProps } from '@tippyjs/react';
|
|
2
|
-
export declare const KEYBOARD_KEYS_MAP: {
|
|
3
|
-
readonly Control: "⌘" | "Ctrl";
|
|
4
|
-
readonly Shift: "⇧";
|
|
5
|
-
readonly F: "F";
|
|
6
|
-
readonly E: "E";
|
|
7
|
-
};
|
|
8
|
-
export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
|
|
9
3
|
type BaseTooltipProps = {
|
|
10
4
|
/**
|
|
11
5
|
* If true, show tippy on truncate
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -661,6 +661,8 @@ export interface AppEnvironment {
|
|
|
661
661
|
isProtected?: boolean;
|
|
662
662
|
pipelineId?: number;
|
|
663
663
|
latestCdWorkflowRunnerId?: number;
|
|
664
|
+
commits?: string[];
|
|
665
|
+
ciArtifactId?: number;
|
|
664
666
|
}
|
|
665
667
|
export interface Strategy {
|
|
666
668
|
deploymentTemplate: string;
|
|
@@ -779,12 +781,6 @@ export interface CiPipeline {
|
|
|
779
781
|
isOffendingMandatoryPlugin?: boolean;
|
|
780
782
|
pipelineType?: string;
|
|
781
783
|
}
|
|
782
|
-
export interface DeploymentChartVersionType {
|
|
783
|
-
chartRefId: number;
|
|
784
|
-
chartVersion: string;
|
|
785
|
-
chartType: string;
|
|
786
|
-
type: number;
|
|
787
|
-
}
|
|
788
784
|
export interface ChartVersionAndTypeSelectorProps {
|
|
789
785
|
setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
|
|
790
786
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DTApplicationMetricsFormFieldProps } from './types';
|
|
2
|
+
declare const DTApplicationMetricsFormField: ({ showApplicationMetrics, isLoading, selectedChart, isDisabled, toggleAppMetrics, isAppMetricsEnabled, onlyShowCurrentStatus, parsingError, restoreLastSavedYAML, }: DTApplicationMetricsFormFieldProps) => JSX.Element;
|
|
3
|
+
export default DTApplicationMetricsFormField;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ResponseType } from '../../../../../../Common/Types';
|
|
2
|
+
import { GetDeploymentManifestProps, GetResolvedDeploymentTemplateProps, GetResolvedDeploymentTemplateReturnType, ResolvedDeploymentTemplateDTO } from './types';
|
|
3
|
+
export declare const getDeploymentManifest: (params: GetDeploymentManifestProps, abortSignal?: AbortSignal) => Promise<ResponseType<ResolvedDeploymentTemplateDTO>>;
|
|
4
|
+
export declare const getResolvedDeploymentTemplate: (params: GetResolvedDeploymentTemplateProps, signal?: AbortSignal) => Promise<GetResolvedDeploymentTemplateReturnType>;
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
|
2
|
+
import { OverrideMergeStrategyType } from '../types';
|
|
3
|
+
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
|
4
|
+
export interface DeploymentChartVersionType {
|
|
5
|
+
id: number | string;
|
|
6
|
+
version: string;
|
|
7
|
+
/**
|
|
8
|
+
* BEWARE: This field may or may not exist, not sure why it was there in first place
|
|
9
|
+
*/
|
|
10
|
+
chartRefId?: number;
|
|
11
|
+
type: number;
|
|
12
|
+
deploymentTemplateHistoryId: number;
|
|
13
|
+
pipelineId: number;
|
|
14
|
+
environmentId: number;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
isAppMetricsSupported: boolean;
|
|
18
|
+
userUploaded?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface DeploymentChartOptionType extends DeploymentChartVersionType {
|
|
21
|
+
value: string | number;
|
|
22
|
+
label: string;
|
|
23
|
+
kind?: DeploymentChartOptionkind;
|
|
24
|
+
}
|
|
25
|
+
export interface ChartMetadataType {
|
|
26
|
+
chartDescription: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetResolvedDeploymentTemplateReturnType {
|
|
29
|
+
resolvedData: string;
|
|
30
|
+
data: string;
|
|
31
|
+
areVariablesPresent: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare enum ValuesAndManifestFlagDTO {
|
|
34
|
+
DEPLOYMENT_TEMPLATE = 1,
|
|
35
|
+
MANIFEST = 2
|
|
36
|
+
}
|
|
37
|
+
type GetResolvedDeploymentTemplateCustomValuesPayloadType = {
|
|
38
|
+
/**
|
|
39
|
+
* String to be resolved
|
|
40
|
+
*/
|
|
41
|
+
values: string;
|
|
42
|
+
type?: never;
|
|
43
|
+
deploymentTemplateHistoryId?: never;
|
|
44
|
+
pipelineId?: never;
|
|
45
|
+
};
|
|
46
|
+
type GetHistoricResolvedDeploymentTemplatePayloadType = {
|
|
47
|
+
values?: never;
|
|
48
|
+
type: TemplateListType;
|
|
49
|
+
deploymentTemplateHistoryId: number;
|
|
50
|
+
pipelineId: number;
|
|
51
|
+
};
|
|
52
|
+
type GetDeploymentTemplateAndManifestBasePayload = {
|
|
53
|
+
appId: number;
|
|
54
|
+
/**
|
|
55
|
+
* EnvId for the given VALUE
|
|
56
|
+
*/
|
|
57
|
+
envId?: number;
|
|
58
|
+
chartRefId: number;
|
|
59
|
+
} & (GetHistoricResolvedDeploymentTemplatePayloadType | GetResolvedDeploymentTemplateCustomValuesPayloadType);
|
|
60
|
+
export type GetResolvedDeploymentTemplatePayloadType = {
|
|
61
|
+
valuesAndManifestFlag: ValuesAndManifestFlagDTO.DEPLOYMENT_TEMPLATE;
|
|
62
|
+
} & GetDeploymentTemplateAndManifestBasePayload;
|
|
63
|
+
export type GetResolvedDeploymentTemplateProps = GetResolvedDeploymentTemplatePayloadType;
|
|
64
|
+
export type GetDeploymentManifestProps = GetDeploymentTemplateAndManifestBasePayload;
|
|
65
|
+
export type GetDeploymentManifestPayloadType = {
|
|
66
|
+
valuesAndManifestFlag: ValuesAndManifestFlagDTO.MANIFEST;
|
|
67
|
+
} & GetDeploymentTemplateAndManifestBasePayload;
|
|
68
|
+
export interface ResolvedDeploymentTemplateDTO {
|
|
69
|
+
/**
|
|
70
|
+
* Template with encoded variables
|
|
71
|
+
*/
|
|
72
|
+
data: string;
|
|
73
|
+
/**
|
|
74
|
+
* Template with resolved variables
|
|
75
|
+
*/
|
|
76
|
+
resolvedData: string;
|
|
77
|
+
variableSnapshot: Record<string, string>;
|
|
78
|
+
}
|
|
79
|
+
export interface ManifestTemplateDTO extends Pick<ResolvedDeploymentTemplateDTO, 'data'> {
|
|
80
|
+
}
|
|
81
|
+
interface DeploymentTemplateChartConfigType {
|
|
82
|
+
id: number;
|
|
83
|
+
/**
|
|
84
|
+
* Not consumed on UI just need to send in payload while update
|
|
85
|
+
*/
|
|
86
|
+
refChartTemplate: string;
|
|
87
|
+
/**
|
|
88
|
+
* Not consumed on UI just need to send in payload while update
|
|
89
|
+
*/
|
|
90
|
+
refChartTemplateVersion: string;
|
|
91
|
+
chartRefId: number;
|
|
92
|
+
readme: string;
|
|
93
|
+
}
|
|
94
|
+
export interface SelectedChartDetailsType {
|
|
95
|
+
selectedChartRefId: number;
|
|
96
|
+
selectedChart: DeploymentChartVersionType;
|
|
97
|
+
}
|
|
98
|
+
interface EnvironmentConfigType {
|
|
99
|
+
id: number;
|
|
100
|
+
status: number;
|
|
101
|
+
manualReviewed: boolean;
|
|
102
|
+
active: boolean;
|
|
103
|
+
namespace: string;
|
|
104
|
+
}
|
|
105
|
+
interface BaseDeploymentTemplateConfigState {
|
|
106
|
+
chartConfig: DeploymentTemplateChartConfigType;
|
|
107
|
+
isOverridden?: never;
|
|
108
|
+
environmentConfig?: never;
|
|
109
|
+
mergeStrategy?: never;
|
|
110
|
+
}
|
|
111
|
+
interface EnvironmentOverrideDeploymentTemplateConfigState {
|
|
112
|
+
chartConfig?: never;
|
|
113
|
+
isOverridden: boolean;
|
|
114
|
+
environmentConfig: EnvironmentConfigType;
|
|
115
|
+
mergeStrategy: OverrideMergeStrategyType;
|
|
116
|
+
}
|
|
117
|
+
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
118
|
+
/**
|
|
119
|
+
* The first ever state of the deployment template
|
|
120
|
+
*/
|
|
121
|
+
originalTemplate: Record<string, string>;
|
|
122
|
+
isAppMetricsEnabled: boolean;
|
|
123
|
+
readme: string;
|
|
124
|
+
schema: Record<string, string>;
|
|
125
|
+
guiSchema: string;
|
|
126
|
+
latestDraft?: DraftMetadataDTO;
|
|
127
|
+
editorTemplate: string;
|
|
128
|
+
editorTemplateWithoutLockedKeys: string;
|
|
129
|
+
}
|
|
130
|
+
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
|
131
|
+
type DTApplicationMetricsReadOnlyProps = {
|
|
132
|
+
isLoading?: never;
|
|
133
|
+
selectedChart?: never;
|
|
134
|
+
isDisabled?: never;
|
|
135
|
+
toggleAppMetrics?: never;
|
|
136
|
+
/**
|
|
137
|
+
* @default - false
|
|
138
|
+
* If true, would only text depicting the information whether the application metrics is enabled or not
|
|
139
|
+
*/
|
|
140
|
+
onlyShowCurrentStatus: true;
|
|
141
|
+
parsingError?: never;
|
|
142
|
+
restoreLastSavedYAML?: never;
|
|
143
|
+
};
|
|
144
|
+
type DTApplicationMetricsParseErrorProps = {
|
|
145
|
+
parsingError: string;
|
|
146
|
+
restoreLastSavedYAML: () => void;
|
|
147
|
+
} | {
|
|
148
|
+
parsingError?: never;
|
|
149
|
+
restoreLastSavedYAML?: never;
|
|
150
|
+
};
|
|
151
|
+
type DTApplicationMetricsActionProps = {
|
|
152
|
+
isLoading: boolean;
|
|
153
|
+
selectedChart: DeploymentChartVersionType;
|
|
154
|
+
isDisabled: boolean;
|
|
155
|
+
toggleAppMetrics: () => void;
|
|
156
|
+
onlyShowCurrentStatus?: false;
|
|
157
|
+
} & DTApplicationMetricsParseErrorProps;
|
|
158
|
+
export type DTApplicationMetricsFormFieldProps = {
|
|
159
|
+
isAppMetricsEnabled: boolean;
|
|
160
|
+
showApplicationMetrics: boolean;
|
|
161
|
+
} & (DTApplicationMetricsActionProps | DTApplicationMetricsReadOnlyProps);
|
|
162
|
+
export declare enum CompareFromApprovalOptionsValuesType {
|
|
163
|
+
APPROVAL_PENDING = 1,
|
|
164
|
+
VALUES_FROM_DRAFT = 2
|
|
165
|
+
}
|
|
166
|
+
export declare enum DryRunEditorMode {
|
|
167
|
+
APPROVAL_PENDING = "approvalPending",
|
|
168
|
+
VALUES_FROM_DRAFT = "valuesFromDraft",
|
|
169
|
+
PUBLISHED_VALUES = "publishedValues"
|
|
170
|
+
}
|
|
171
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
export declare enum ConfigHeaderTabType {
|
|
3
|
+
VALUES = "values",
|
|
4
|
+
INHERITED = "inherited",
|
|
5
|
+
DRY_RUN = "dryRun"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ProtectConfigTabsType {
|
|
8
|
+
PUBLISHED = "published",
|
|
9
|
+
COMPARE = "compare",
|
|
10
|
+
EDIT_DRAFT = "editDraft"
|
|
11
|
+
}
|
|
12
|
+
export declare enum OverrideMergeStrategyType {
|
|
13
|
+
PATCH = "patch",
|
|
14
|
+
REPLACE = "replace"
|
|
15
|
+
}
|
|
16
|
+
export interface ConfigToolbarPopupMenuConfigType {
|
|
17
|
+
text: string;
|
|
18
|
+
onClick: (event: SyntheticEvent) => void;
|
|
19
|
+
dataTestId: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
icon?: ReactNode | null;
|
|
22
|
+
variant?: 'default' | 'negative';
|
|
23
|
+
}
|
|
24
|
+
export declare enum ConfigToolbarPopupNodeType {
|
|
25
|
+
DISCARD_DRAFT = "discardDraft",
|
|
26
|
+
EDIT_HISTORY = "editHistory"
|
|
27
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BuildStageType, FormType } from '
|
|
2
|
-
import { DeploymentAppTypes, UserApprovalConfigType } from '
|
|
3
|
-
import { DeploymentStrategy } from '
|
|
4
|
-
import { EnvListMinDTO } from '
|
|
1
|
+
import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
|
|
2
|
+
import { DeploymentAppTypes, UserApprovalConfigType } from '../../../../../Common/Types';
|
|
3
|
+
import { DeploymentStrategy } from '../../../../../Shared/Components';
|
|
4
|
+
import { EnvListMinDTO } from '../../../../../Shared/types';
|
|
5
5
|
interface ConfigSecretType {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Details';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DevtronApps';
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
|
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
|
-
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, ...props }: ButtonProps) => JSX.Element;
|
|
66
|
+
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, ...props }: ButtonProps) => JSX.Element;
|
|
67
67
|
export default Button;
|
|
@@ -74,6 +74,12 @@ export type ButtonProps = ({
|
|
|
74
74
|
* @default false
|
|
75
75
|
*/
|
|
76
76
|
disabled?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Determines if the button should expand to fill the full width of its container.
|
|
79
|
+
*
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
fullWidth?: boolean;
|
|
77
83
|
} & ({
|
|
78
84
|
/**
|
|
79
85
|
* If true, the tooltip is shown for the button
|
|
@@ -1,57 +1,4 @@
|
|
|
1
|
-
import { IWithShortcut } from 'react-keybind';
|
|
2
1
|
import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
|
|
3
|
-
export declare const LogResizeButton: {
|
|
4
|
-
new (props: Readonly<LogResizeButtonType & IWithShortcut>): {
|
|
5
|
-
render(): JSX.Element;
|
|
6
|
-
context: any;
|
|
7
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogResizeButtonType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
8
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
9
|
-
readonly props: Readonly<LogResizeButtonType & IWithShortcut> & Readonly<{
|
|
10
|
-
children?: import('react').ReactNode;
|
|
11
|
-
}>;
|
|
12
|
-
state: Readonly<{}>;
|
|
13
|
-
refs: {
|
|
14
|
-
[key: string]: import('react').ReactInstance;
|
|
15
|
-
};
|
|
16
|
-
componentDidMount?(): void;
|
|
17
|
-
shouldComponentUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
18
|
-
componentWillUnmount?(): void;
|
|
19
|
-
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
20
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
21
|
-
componentDidUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
|
-
componentWillMount?(): void;
|
|
23
|
-
UNSAFE_componentWillMount?(): void;
|
|
24
|
-
componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
25
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
26
|
-
componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
-
};
|
|
29
|
-
new (props: LogResizeButtonType & IWithShortcut, context?: any): {
|
|
30
|
-
render(): JSX.Element;
|
|
31
|
-
context: any;
|
|
32
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogResizeButtonType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
33
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
-
readonly props: Readonly<LogResizeButtonType & IWithShortcut> & Readonly<{
|
|
35
|
-
children?: import('react').ReactNode;
|
|
36
|
-
}>;
|
|
37
|
-
state: Readonly<{}>;
|
|
38
|
-
refs: {
|
|
39
|
-
[key: string]: import('react').ReactInstance;
|
|
40
|
-
};
|
|
41
|
-
componentDidMount?(): void;
|
|
42
|
-
shouldComponentUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
43
|
-
componentWillUnmount?(): void;
|
|
44
|
-
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
45
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
46
|
-
componentDidUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
47
|
-
componentWillMount?(): void;
|
|
48
|
-
UNSAFE_componentWillMount?(): void;
|
|
49
|
-
componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
51
|
-
componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
52
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
-
};
|
|
54
|
-
contextType?: import('react').Context<any> | undefined;
|
|
55
|
-
};
|
|
2
|
+
export declare const LogResizeButton: ({ shortcutCombo, showOnlyWhenPathIncludesLogs, fullScreenView, setFullScreenView, }: LogResizeButtonType) => JSX.Element;
|
|
56
3
|
export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
|
|
57
4
|
export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, }: GitChangesType) => JSX.Element;
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
import { IWithShortcut } from 'react-keybind';
|
|
2
1
|
import { LogsRendererType } from './types';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
render(): JSX.Element;
|
|
6
|
-
context: any;
|
|
7
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogsRendererType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
8
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
9
|
-
readonly props: Readonly<LogsRendererType & IWithShortcut> & Readonly<{
|
|
10
|
-
children?: import('react').ReactNode;
|
|
11
|
-
}>;
|
|
12
|
-
state: Readonly<{}>;
|
|
13
|
-
refs: {
|
|
14
|
-
[key: string]: import('react').ReactInstance;
|
|
15
|
-
};
|
|
16
|
-
componentDidMount?(): void;
|
|
17
|
-
shouldComponentUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
18
|
-
componentWillUnmount?(): void;
|
|
19
|
-
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
20
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
21
|
-
componentDidUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
|
-
componentWillMount?(): void;
|
|
23
|
-
UNSAFE_componentWillMount?(): void;
|
|
24
|
-
componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
25
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
26
|
-
componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
-
};
|
|
29
|
-
new (props: LogsRendererType & IWithShortcut, context?: any): {
|
|
30
|
-
render(): JSX.Element;
|
|
31
|
-
context: any;
|
|
32
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogsRendererType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
33
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
-
readonly props: Readonly<LogsRendererType & IWithShortcut> & Readonly<{
|
|
35
|
-
children?: import('react').ReactNode;
|
|
36
|
-
}>;
|
|
37
|
-
state: Readonly<{}>;
|
|
38
|
-
refs: {
|
|
39
|
-
[key: string]: import('react').ReactInstance;
|
|
40
|
-
};
|
|
41
|
-
componentDidMount?(): void;
|
|
42
|
-
shouldComponentUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
43
|
-
componentWillUnmount?(): void;
|
|
44
|
-
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
45
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
46
|
-
componentDidUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
47
|
-
componentWillMount?(): void;
|
|
48
|
-
UNSAFE_componentWillMount?(): void;
|
|
49
|
-
componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
51
|
-
componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
52
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
-
};
|
|
54
|
-
contextType?: import('react').Context<any> | undefined;
|
|
55
|
-
};
|
|
56
|
-
export default _default;
|
|
2
|
+
declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, fullScreenView }: LogsRendererType) => JSX.Element;
|
|
3
|
+
export default LogsRenderer;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
|
3
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
|
|
3
4
|
import { DeploymentStageType } from '../../constants';
|
|
4
5
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
6
|
export declare enum HistoryComponentType {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, showDetailedDiffState, hideDiffState, renderedInDrawer, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, errorConfig, showDetailedDiffState, hideDiffState, renderedInDrawer, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType
|
|
2
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType } from '../../Services';
|
|
3
|
+
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
|
3
4
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
4
5
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
6
|
import { SelectPickerProps } from '../SelectPicker';
|
|
@@ -37,6 +38,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
37
38
|
selectPickerProps: SelectPickerProps;
|
|
38
39
|
};
|
|
39
40
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
|
|
41
|
+
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
40
42
|
diffState: DeploymentConfigListItem['diffState'];
|
|
41
43
|
}
|
|
42
44
|
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
|
|
@@ -83,7 +85,7 @@ export interface DeploymentConfigDiffProps {
|
|
|
83
85
|
};
|
|
84
86
|
renderedInDrawer?: boolean;
|
|
85
87
|
}
|
|
86
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | '
|
|
88
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig' | 'errorConfig' | 'isNavHelpTextShowingError' | 'showDetailedDiffState' | 'hideDiffState'> {
|
|
87
89
|
}
|
|
88
90
|
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig' | 'scopeVariablesConfig' | 'showDetailedDiffState' | 'hideDiffState'> {
|
|
89
91
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, showDetailedDiffState, hideDiffState, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, isNavHelpTextShowingError, tabConfig, errorConfig, showDetailedDiffState, hideDiffState, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_INVALID_YAML_ERROR = "The provided YAML is invalid. Please provide valid YAML.";
|