@devtron-labs/devtron-fe-common-lib 1.2.7-beta-5 → 1.2.8-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-HL5a1btU.js → @code-editor-BEceVER4.js} +5708 -5783
- package/dist/{@common-rjsf-DFgZpQQ7.js → @common-rjsf--SfC2_Jn.js} +2 -2
- package/dist/{@framer-motion-DHY98qq3.js → @framer-motion-DHzxZlAx.js} +1 -1
- package/dist/@monaco-editor-CVagbUeH.js +138960 -0
- package/dist/{@react-dates-WNnwjI5S.js → @react-dates-BZU5RIqe.js} +1 -1
- package/dist/{@react-select-BbR996pa.js → @react-select-Dx53b3Wk.js} +50 -50
- package/dist/{@vendor-RU8AW1bK.js → @vendor-BG3OpQCq.js} +8756 -7936
- package/dist/Common/CIPipeline.Types.d.ts +5 -41
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +2 -1
- package/dist/Common/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Common.service.d.ts +3 -9
- package/dist/Common/Constants.d.ts +3 -4
- package/dist/Common/Helper.d.ts +3 -3
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +3 -0
- package/dist/Common/SegmentedControl/index.d.ts +2 -0
- package/dist/Common/SegmentedControl/types.d.ts +15 -0
- package/dist/Common/Types.d.ts +3 -15
- package/dist/Common/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +6 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +21 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +7 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/index.d.ts +0 -1
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +6 -0
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -5
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +7 -0
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -2
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +5 -3
- package/dist/Shared/Hooks/useForm/useForm.d.ts +4 -0
- package/dist/Shared/Services/app.types.d.ts +4 -0
- package/dist/Shared/types.d.ts +7 -30
- package/dist/assets/@monaco-editor.css +1 -1
- package/dist/assets/codicon.ecfbfe4b.ttf +0 -0
- package/dist/assets/ic-file-code.80000c9b.svg +7 -0
- package/dist/assets/ic-medal.4a7e5cbc.svg +3 -0
- package/dist/assets/ic-stamp.526499d2.svg +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +537 -536
- package/package.json +4 -4
- package/dist/@monaco-editor-34kqzg3G.js +0 -70451
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +0 -7
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/SystemVariableIcon.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/index.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +0 -3
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/index.d.ts +0 -3
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/services.d.ts +0 -11
- package/dist/Shared/Components/FileUpload/FileUpload.d.ts +0 -2
- package/dist/Shared/Components/FileUpload/index.d.ts +0 -2
- package/dist/Shared/Components/FileUpload/types.d.ts +0 -8
- package/dist/assets/ic-cloud-upload.18066e05.svg +0 -3
- package/dist/assets/ic-file-code.21a1f748.svg +0 -7
- package/dist/assets/ic-stamp.8689f42d.svg +0 -9
- package/dist/assets/ic-var-initial.afdaa854.svg +0 -25
- package/dist/yaml.worker.d.ts +0 -0
@@ -1,4 +1,3 @@
|
|
1
|
-
import { DynamicDataTableCellValidationState } from '../Shared/Components';
|
2
1
|
export interface MaterialType {
|
3
2
|
name: string;
|
4
3
|
type: string;
|
@@ -71,30 +70,11 @@ export declare enum RefVariableStageType {
|
|
71
70
|
PRE_CI = "PRE_CI",
|
72
71
|
POST_CI = "POST_CI"
|
73
72
|
}
|
74
|
-
export interface FilePropertyType {
|
75
|
-
allowedExtensions: string[];
|
76
|
-
maxUploadSize: number;
|
77
|
-
}
|
78
|
-
export interface ConstraintType {
|
79
|
-
fileProperty: FilePropertyType;
|
80
|
-
}
|
81
|
-
export interface ValueConstraintType {
|
82
|
-
choices?: string[];
|
83
|
-
blockCustomValue?: boolean;
|
84
|
-
constraint?: ConstraintType;
|
85
|
-
}
|
86
|
-
export declare enum VariableTypeFormat {
|
87
|
-
STRING = "STRING",
|
88
|
-
NUMBER = "NUMBER",
|
89
|
-
BOOL = "BOOL",
|
90
|
-
DATE = "DATE",
|
91
|
-
FILE = "FILE"
|
92
|
-
}
|
93
73
|
export interface VariableType {
|
94
74
|
id: number;
|
95
75
|
name: string;
|
96
76
|
value: string;
|
97
|
-
format:
|
77
|
+
format: string;
|
98
78
|
description: string;
|
99
79
|
defaultValue: string;
|
100
80
|
allowEmptyValue: boolean;
|
@@ -103,12 +83,6 @@ export interface VariableType {
|
|
103
83
|
refVariableName: string;
|
104
84
|
refVariableStage?: RefVariableStageType;
|
105
85
|
variableStepIndexInPlugin?: number;
|
106
|
-
fileMountDir: string;
|
107
|
-
fileReferenceId?: number;
|
108
|
-
valueConstraintId?: number;
|
109
|
-
valueConstraint?: ValueConstraintType;
|
110
|
-
isRuntimeArg: boolean;
|
111
|
-
refVariableUsed: boolean;
|
112
86
|
}
|
113
87
|
interface CommandArgsMap {
|
114
88
|
command: string;
|
@@ -252,26 +226,16 @@ export interface ErrorObj {
|
|
252
226
|
isValid: boolean;
|
253
227
|
message: string | null;
|
254
228
|
}
|
255
|
-
export declare enum InputOutputVariablesHeaderKeys {
|
256
|
-
VARIABLE = "variable",
|
257
|
-
FORMAT = "format",
|
258
|
-
VALUE = "val"
|
259
|
-
}
|
260
|
-
export type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState>;
|
261
229
|
export interface TaskErrorObj {
|
262
230
|
isValid: boolean;
|
263
231
|
name: ErrorObj;
|
264
232
|
inlineStepDetail?: {
|
265
|
-
inputVariables?:
|
266
|
-
outputVariables?:
|
267
|
-
isInputVariablesValid?: boolean;
|
268
|
-
isOutputVariablesValid?: boolean;
|
233
|
+
inputVariables?: ErrorObj[];
|
234
|
+
outputVariables?: ErrorObj[];
|
269
235
|
};
|
270
236
|
pluginRefStepDetail?: {
|
271
|
-
inputVariables?:
|
272
|
-
outputVariables?:
|
273
|
-
isInputVariablesValid?: boolean;
|
274
|
-
isOutputVariablesValid?: boolean;
|
237
|
+
inputVariables?: ErrorObj[];
|
238
|
+
outputVariables?: ErrorObj[];
|
275
239
|
};
|
276
240
|
}
|
277
241
|
export interface FormErrorObjectType {
|
@@ -32,4 +32,5 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
32
32
|
code: string;
|
33
33
|
noParsing: boolean;
|
34
34
|
};
|
35
|
-
export declare const
|
35
|
+
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
36
|
+
export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
|
|
28
28
|
validatorSchema?: any;
|
29
29
|
isKubernetes?: boolean;
|
30
30
|
cleanData?: boolean;
|
31
|
-
|
31
|
+
schemaURI?: string;
|
32
32
|
/**
|
33
33
|
* If true, disable the in-built search of monaco editor
|
34
34
|
* @default false
|
@@ -81,6 +81,7 @@ export interface CodeEditorInitialValueType {
|
|
81
81
|
theme?: string;
|
82
82
|
value: string;
|
83
83
|
noParsing?: boolean;
|
84
|
+
tabSize: number;
|
84
85
|
}
|
85
86
|
export interface CodeEditorState {
|
86
87
|
mode: MODES;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, GlobalVariableOptionType } from './Types';
|
1
|
+
import { RuntimeParamsAPIResponseType, RuntimeParamsListItemType } from '../Shared/types';
|
2
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse } from './Types';
|
4
3
|
import { ApiResourceType } from '../Pages';
|
5
4
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
6
5
|
interface UserRole extends ResponseType {
|
@@ -16,7 +15,7 @@ export declare const SourceTypeMap: {
|
|
16
15
|
};
|
17
16
|
export declare function getUserRole(appName?: string): Promise<UserRole>;
|
18
17
|
export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType<any>>;
|
19
|
-
export declare const parseRuntimeParams: (response: RuntimeParamsAPIResponseType) =>
|
18
|
+
export declare const parseRuntimeParams: (response: RuntimeParamsAPIResponseType) => RuntimeParamsListItemType[];
|
20
19
|
export declare const processCDMaterialServiceResponse: (cdMaterialsResult: any, stage: DeploymentNodeType, offset: number, filter: CDMaterialFilterQuery, disableDefaultSelection?: boolean) => CDMaterialResponseType;
|
21
20
|
export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
|
22
21
|
export declare function extractImage(image: string): string;
|
@@ -35,9 +34,4 @@ export declare function getWebhookEventsForEventId(eventId: string | number): Pr
|
|
35
34
|
* @returns URL to the branch in the Git repository
|
36
35
|
*/
|
37
36
|
export declare const getGitBranchUrl: (gitUrl: string, branchName: string) => string | null;
|
38
|
-
export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }: {
|
39
|
-
appId: number;
|
40
|
-
isCD?: boolean;
|
41
|
-
abortControllerRef?: MutableRefObject<AbortController>;
|
42
|
-
}) => Promise<GlobalVariableOptionType[]>;
|
43
37
|
export {};
|
@@ -4,6 +4,7 @@ export declare const Host: string;
|
|
4
4
|
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
|
+
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
7
8
|
export declare const DOCUMENTATION: {
|
8
9
|
APP_METRICS: string;
|
9
10
|
APP_TAGS: string;
|
@@ -12,13 +13,11 @@ export declare const DOCUMENTATION: {
|
|
12
13
|
GLOBAL_CONFIG_BUILD_INFRA: string;
|
13
14
|
};
|
14
15
|
export declare const PATTERNS: {
|
15
|
-
NATURAL_NUMBERS: RegExp;
|
16
16
|
KUBERNETES_KEY_PREFIX: RegExp;
|
17
17
|
KUBERNETES_KEY_NAME: RegExp;
|
18
18
|
START_END_ALPHANUMERIC: RegExp;
|
19
19
|
ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
|
20
20
|
ESCAPED_CHARACTERS: RegExp;
|
21
|
-
NUMBERS_WITH_SCOPE_VARIABLES: RegExp;
|
22
21
|
};
|
23
22
|
export declare const URLS: {
|
24
23
|
LOGIN_SSO: string;
|
@@ -96,8 +95,6 @@ export declare const ROUTES: {
|
|
96
95
|
USER_LIST_MIN: string;
|
97
96
|
CONFIG_DATA: string;
|
98
97
|
K8S_RESOURCE_LIST: string;
|
99
|
-
FILE_UPLOAD: string;
|
100
|
-
PLUGIN_GLOBAL_VARIABLES: string;
|
101
98
|
CONFIG_COMPARE_SECRET: string;
|
102
99
|
};
|
103
100
|
export declare enum KEY_VALUE {
|
@@ -263,6 +260,7 @@ export declare const API_STATUS_CODES: {
|
|
263
260
|
EXPECTATION_FAILED: number;
|
264
261
|
UNPROCESSABLE_ENTITY: number;
|
265
262
|
LOCKED: number;
|
263
|
+
UNPROCESSABLE_CONTENT: number;
|
266
264
|
};
|
267
265
|
export declare enum SERVER_MODE {
|
268
266
|
EA_ONLY = "EA_ONLY",
|
@@ -314,3 +312,4 @@ export declare enum GitProviderType {
|
|
314
312
|
* Formats the schema removing any irregularity in the existing schema
|
315
313
|
*/
|
316
314
|
export declare const getFormattedSchema: (schema?: string) => string;
|
315
|
+
export declare const UNCHANGED_ARRAY_ELEMENT_SYMBOL: unique symbol;
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -59,9 +59,10 @@ export declare const getFilteredChartVersions: (charts: any, selectedChartType:
|
|
59
59
|
* @param {object} object from which we need to delete nulls in its arrays
|
60
60
|
* @returns object after removing (in-place) the null items in arrays
|
61
61
|
*/
|
62
|
-
export declare const
|
62
|
+
export declare const recursivelyRemoveSymbolFromArraysInObject: (object: object, symbol: symbol) => object;
|
63
63
|
/**
|
64
64
|
* Merges the objects into one object
|
65
|
+
* Works more like Object.assign; that doesn't deep copy
|
65
66
|
* @param {object[]} objects list of js objects
|
66
67
|
* @returns object after the merge
|
67
68
|
*/
|
@@ -90,7 +91,7 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
90
91
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
91
92
|
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
92
93
|
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions["resultType"]) => string[];
|
93
|
-
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) =>
|
94
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
|
94
95
|
/**
|
95
96
|
* Returns a debounced variant of the function
|
96
97
|
*/
|
@@ -134,5 +135,4 @@ export declare const getSanitizedIframe: (iframeString: string) => string;
|
|
134
135
|
* This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
|
135
136
|
*/
|
136
137
|
export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
|
137
|
-
export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) => string;
|
138
138
|
export {};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { MarkDownProps } from './Types';
|
2
|
-
declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
2
|
+
declare const MarkDown: ({ setExpandableIcon, markdown: markdownProp, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
3
3
|
export default MarkDown;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "children" | "className" | "disabled" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "target" | "action" | "tagName" | "autoComplete" | "method" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { OptionType } from '../Types';
|
2
|
+
export declare enum SegmentedControlVariant {
|
3
|
+
GRAY_ON_WHITE = "gui-yaml-switch",
|
4
|
+
WHITE_ON_GRAY = "gui-yaml-switch-window-bg"
|
5
|
+
}
|
6
|
+
export interface SegmentedControlProps {
|
7
|
+
tabs: OptionType[];
|
8
|
+
initialTab: string;
|
9
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
10
|
+
name: string;
|
11
|
+
tooltips?: string[];
|
12
|
+
disabled?: boolean;
|
13
|
+
rootClassName?: string;
|
14
|
+
variant?: SegmentedControlVariant;
|
15
|
+
}
|
package/dist/Common/Types.d.ts
CHANGED
@@ -3,8 +3,8 @@ import { TippyProps } from '@tippyjs/react';
|
|
3
3
|
import { Placement } from 'tippy.js';
|
4
4
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
5
5
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
6
|
-
import { MandatoryPluginBaseStateType, RegistryType,
|
7
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType,
|
6
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimeParamsListItemType, Severity } from '../Shared';
|
7
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
8
8
|
/**
|
9
9
|
* Generic response type object with support for overriding the result type
|
10
10
|
*
|
@@ -94,7 +94,6 @@ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
|
94
94
|
documentationLink?: string;
|
95
95
|
documentationLinkText?: string;
|
96
96
|
children: React.ReactElement<any>;
|
97
|
-
disableClose?: boolean;
|
98
97
|
}
|
99
98
|
export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading' | 'infoText' | 'iconClass' | 'documentationLink' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo'> {
|
100
99
|
dataTestid?: string;
|
@@ -593,7 +592,7 @@ export interface CDMaterialsMetaInfo {
|
|
593
592
|
* This is the ID of user that has request the material
|
594
593
|
*/
|
595
594
|
requestedUserId: number;
|
596
|
-
runtimeParams:
|
595
|
+
runtimeParams: RuntimeParamsListItemType[];
|
597
596
|
}
|
598
597
|
export interface ImagePromotionMaterialInfo {
|
599
598
|
isApprovalPendingForPromotion: boolean;
|
@@ -872,15 +871,4 @@ export interface WidgetEventDetails {
|
|
872
871
|
age: string;
|
873
872
|
lastSeen: string;
|
874
873
|
}
|
875
|
-
export interface GlobalVariableDTO {
|
876
|
-
name: string;
|
877
|
-
format: VariableTypeFormat;
|
878
|
-
description: string;
|
879
|
-
stageType: 'cd' | 'post-cd' | 'ci';
|
880
|
-
}
|
881
|
-
export type GlobalVariableOptionType = Omit<GlobalVariableDTO, 'name'> & {
|
882
|
-
label: string;
|
883
|
-
value: string;
|
884
|
-
variableType: Extract<RefVariableType, RefVariableType.GLOBAL>;
|
885
|
-
};
|
886
874
|
export {};
|
package/dist/Common/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './GUIView';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './DeploymentTemplate';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './AppConfiguration';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './utils';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
2
|
+
import { ServerErrors } from '../../../../../../Common/ServerError';
|
2
3
|
import { OverrideMergeStrategyType } from '../types';
|
3
4
|
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
4
5
|
export interface DeploymentChartVersionType {
|
@@ -108,15 +109,15 @@ interface BaseDeploymentTemplateConfigState {
|
|
108
109
|
environmentConfig?: never;
|
109
110
|
mergeStrategy?: never;
|
110
111
|
}
|
111
|
-
|
112
|
+
type EnvironmentOverrideDeploymentTemplateConfigState = {
|
112
113
|
chartConfig?: never;
|
113
114
|
isOverridden: boolean;
|
114
115
|
environmentConfig: EnvironmentConfigType;
|
115
116
|
mergeStrategy: OverrideMergeStrategyType;
|
116
|
-
}
|
117
|
+
};
|
117
118
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
118
119
|
/**
|
119
|
-
* The first ever state of the deployment template
|
120
|
+
* The first ever state of the deployment template on editor
|
120
121
|
*/
|
121
122
|
originalTemplate: Record<string, string>;
|
122
123
|
isAppMetricsEnabled: boolean;
|
@@ -126,6 +127,23 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
|
|
126
127
|
latestDraft?: DraftMetadataDTO;
|
127
128
|
editorTemplate: string;
|
128
129
|
editorTemplateWithoutLockedKeys: string;
|
130
|
+
/**
|
131
|
+
* This final template to be applied on the deployment in string format
|
132
|
+
* In current editor, this may be null initially
|
133
|
+
*/
|
134
|
+
mergedTemplate: string | null;
|
135
|
+
/**
|
136
|
+
* This final template to be applied on the deployment without locked keys in string format
|
137
|
+
* In current editor, this may be null initially
|
138
|
+
*/
|
139
|
+
mergedTemplateWithoutLockedKeys: string | null;
|
140
|
+
/**
|
141
|
+
* This final template to be applied on the deployment in object format
|
142
|
+
* In current editor, this may be null initially
|
143
|
+
*/
|
144
|
+
mergedTemplateObject: Record<string, string> | null;
|
145
|
+
isLoadingMergedTemplate: boolean;
|
146
|
+
mergedTemplateError: ServerErrors | null;
|
129
147
|
}
|
130
148
|
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
131
149
|
type DTApplicationMetricsReadOnlyProps = {
|
@@ -1,2 +1,3 @@
|
|
1
|
-
|
1
|
+
import { OverrideStrategyTippyContentProps } from './types';
|
2
|
+
declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
|
2
3
|
export default OverrideStrategyTippyContent;
|
@@ -20,8 +20,15 @@ export interface ConfigToolbarPopupMenuConfigType {
|
|
20
20
|
disabled?: boolean;
|
21
21
|
icon?: ReactNode | null;
|
22
22
|
variant?: 'default' | 'negative';
|
23
|
+
tooltipText?: string;
|
23
24
|
}
|
24
25
|
export declare enum ConfigToolbarPopupNodeType {
|
25
26
|
DISCARD_DRAFT = "discardDraft",
|
26
27
|
EDIT_HISTORY = "editHistory"
|
27
28
|
}
|
29
|
+
export interface OverrideStrategyTippyContentProps {
|
30
|
+
/**
|
31
|
+
* Would be rendered as li conveying the information about the merge strategy
|
32
|
+
*/
|
33
|
+
children?: ReactNode;
|
34
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DeploymentStageType } from '../../../../../Shared/constants';
|
2
|
-
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
|
package/dist/Pages/index.d.ts
CHANGED
@@ -54,6 +54,12 @@ export type CollapsibleListItem<TabType extends TabOptions = 'navLink'> = Condit
|
|
54
54
|
*/
|
55
55
|
tooltipProps?: TippyProps;
|
56
56
|
};
|
57
|
+
/**
|
58
|
+
* If `true`, clears query parameters during navigation.
|
59
|
+
*
|
60
|
+
* @default false
|
61
|
+
*/
|
62
|
+
clearQueryParamsOnNavigation?: boolean;
|
57
63
|
};
|
58
64
|
export interface CollapsibleListConfig<TabType extends TabOptions = 'navLink'> {
|
59
65
|
/**
|
@@ -4,7 +4,6 @@ import { UseStateFiltersReturnType } from '../../../Common/Hooks';
|
|
4
4
|
import { TooltipProps } from '@Common/Tooltip/types';
|
5
5
|
import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
6
6
|
import { SelectTextAreaProps } from '../SelectTextArea';
|
7
|
-
import { FileUploadProps } from '../FileUpload';
|
8
7
|
/**
|
9
8
|
* Interface representing header for a dynamic data table.
|
10
9
|
* @template K - A string representing the key type.
|
@@ -25,8 +24,7 @@ export declare enum DynamicDataTableRowDataType {
|
|
25
24
|
TEXT = "text",
|
26
25
|
DROPDOWN = "dropdown",
|
27
26
|
SELECT_TEXT = "select-text",
|
28
|
-
BUTTON = "button"
|
29
|
-
FILE_UPLOAD = "file-upload"
|
27
|
+
BUTTON = "button"
|
30
28
|
}
|
31
29
|
export type DynamicDataTableCellPropsMap = {
|
32
30
|
[DynamicDataTableRowDataType.TEXT]: Omit<ResizableTagTextAreaProps, 'id' | 'className' | 'minHeight' | 'maxHeight' | 'value' | 'onChange' | 'disabled' | 'disableOnBlurResizeToMinHeight' | 'refVar' | 'dependentRef'>;
|
@@ -38,7 +36,6 @@ export type DynamicDataTableCellPropsMap = {
|
|
38
36
|
icon?: ReactNode;
|
39
37
|
text: string;
|
40
38
|
};
|
41
|
-
[DynamicDataTableRowDataType.FILE_UPLOAD]: Omit<FileUploadProps, 'className' | 'fileName' | 'onUpload' | 'multiple'>;
|
42
39
|
};
|
43
40
|
type DynamicDataTableCellData<T extends keyof DynamicDataTableCellPropsMap = keyof DynamicDataTableCellPropsMap> = T extends keyof DynamicDataTableCellPropsMap ? {
|
44
41
|
type: T;
|
@@ -123,7 +120,6 @@ export type DynamicDataTableProps<K extends string, CustomStateType = Record<str
|
|
123
120
|
* @param extraData - Additional data, such as a selected value for dropdowns.
|
124
121
|
*/
|
125
122
|
onRowEdit: (row: DynamicDataTableRowType<K, CustomStateType>, headerKey: K, value: string, extraData: {
|
126
|
-
files?: File[];
|
127
123
|
selectedValue?: SelectPickerOptionType<string>;
|
128
124
|
}) => void;
|
129
125
|
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as EnterpriseTag } from './EnterpriseTag.component';
|
@@ -4,3 +4,10 @@ export interface InvalidYAMLTippyWrapperProps {
|
|
4
4
|
restoreLastSavedYAML?: () => void;
|
5
5
|
children: TooltipProps['children'];
|
6
6
|
}
|
7
|
+
export declare enum InvalidTippyTypeEnum {
|
8
|
+
YAML = "yaml",
|
9
|
+
JSON = "json"
|
10
|
+
}
|
11
|
+
export interface InvalidTippyProps extends Pick<InvalidYAMLTippyWrapperProps, 'parsingError' | 'restoreLastSavedYAML'> {
|
12
|
+
type?: InvalidTippyTypeEnum;
|
13
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const getInvalidTippyContent: ({ parsingError, restoreLastSavedYAML, }:
|
1
|
+
import { InvalidTippyProps } from './types';
|
2
|
+
export declare const getInvalidTippyContent: ({ type, parsingError, restoreLastSavedYAML, }: InvalidTippyProps) => JSX.Element;
|
@@ -41,7 +41,7 @@ export * from './Collapse';
|
|
41
41
|
export * from './Security';
|
42
42
|
export * from './Button';
|
43
43
|
export * from './InvalidYAMLTippy';
|
44
|
+
export * from './EnterpriseTag';
|
44
45
|
export * from './ConfirmationModal';
|
45
46
|
export * from './DiffViewer';
|
46
47
|
export * from './DynamicDataTable';
|
47
|
-
export * from './FileUpload';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { Pair } from 'yaml';
|
3
|
+
import { StrictRJSFSchema } from '@rjsf/utils';
|
3
4
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
4
5
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
5
6
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, WebhookEventNameType } from './types';
|
@@ -66,10 +67,11 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
66
67
|
*/
|
67
68
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
68
69
|
/**
|
69
|
-
*
|
70
|
-
*
|
71
|
-
* @
|
70
|
+
* This function returns a null/zero value corresponding to @type
|
71
|
+
*
|
72
|
+
* @param type - a RJSF supported type
|
72
73
|
*/
|
74
|
+
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
73
75
|
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
74
76
|
/**
|
75
77
|
* @description - Function to get the webhook date
|
@@ -61,6 +61,10 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
|
|
61
61
|
keepTouched?: boolean;
|
62
62
|
/** A boolean indicating whether to retain the current error state of the form fields. */
|
63
63
|
keepErrors?: boolean;
|
64
|
+
/** A boolean indicating whether the form should check for dirty state upon reset. */
|
65
|
+
triggerDirty?: boolean;
|
66
|
+
/** A boolean indicating whether the initial values of the form should be retained after reset. If false, provided formData will become initial data. */
|
67
|
+
keepInitialValues?: boolean;
|
64
68
|
}) => void;
|
65
69
|
/** An object representing additional form state. */
|
66
70
|
formState: {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
1
2
|
import { ReleaseTag } from '../../Common';
|
2
3
|
interface WebhookDataType {
|
3
4
|
id: number;
|
@@ -147,9 +148,11 @@ export declare enum CMSecretExternalType {
|
|
147
148
|
}
|
148
149
|
export interface ConfigDatum {
|
149
150
|
name: string;
|
151
|
+
mergeStrategy: OverrideMergeStrategyType;
|
150
152
|
type: string;
|
151
153
|
external: boolean;
|
152
154
|
data: Record<string, any>;
|
155
|
+
patchData: Record<string, any>;
|
153
156
|
defaultData: Record<string, any>;
|
154
157
|
global: boolean;
|
155
158
|
externalType: CMSecretExternalType;
|
@@ -172,6 +175,7 @@ export interface ConfigMapSecretDataType {
|
|
172
175
|
id: number;
|
173
176
|
appId: number;
|
174
177
|
configData: ConfigMapSecretDataConfigDatumDTO[];
|
178
|
+
isDeletable: boolean;
|
175
179
|
}
|
176
180
|
export declare enum ConfigResourceType {
|
177
181
|
ConfigMap = "ConfigMap",
|