@devtron-labs/devtron-fe-common-lib 0.1.16-beta-3 → 0.1.16-beta-4
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/Api.d.ts +1 -1
- package/dist/Common/CIPipeline.Types.d.ts +0 -1
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/CustomInput/Types.d.ts +2 -2
- package/dist/Common/Modals/VisibleModal.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/CDPipeline/index.d.ts +1 -0
- package/dist/Pages/CDPipeline/types.d.ts +93 -0
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
- package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +1 -2
- package/dist/Shared/Components/Plugin/service.d.ts +1 -3
- package/dist/Shared/Components/Plugin/types.d.ts +2 -8
- package/dist/Shared/Components/Plugin/utils.d.ts +0 -3
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -10
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/validations.d.ts +0 -3
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9d46c29e.js → cssMode-cbfd9843.js} +1 -1
- package/dist/{freemarker2-f424b7d3.js → freemarker2-596cc0dd.js} +1 -1
- package/dist/{handlebars-cd842efa.js → handlebars-3016aee7.js} +1 -1
- package/dist/{html-e195840d.js → html-c3effcc9.js} +1 -1
- package/dist/{htmlMode-90c6effe.js → htmlMode-c249dd9b.js} +1 -1
- package/dist/{index-929341c0.js → index-65bc1312.js} +21669 -21876
- package/dist/index.js +372 -378
- package/dist/{javascript-730d138b.js → javascript-9ad056d5.js} +1 -1
- package/dist/{jsonMode-595c0e49.js → jsonMode-22ff5c0c.js} +1 -1
- package/dist/{liquid-4b1beab5.js → liquid-5aa8a906.js} +1 -1
- package/dist/{mdx-bd1f5806.js → mdx-d31b2fbc.js} +1 -1
- package/dist/{python-e2cb1a69.js → python-2ae0c267.js} +1 -1
- package/dist/{razor-79753b32.js → razor-d297fb12.js} +1 -1
- package/dist/{tsMode-8951e816.js → tsMode-d0870e7f.js} +1 -1
- package/dist/{typescript-50709c01.js → typescript-8dd8a9fc.js} +1 -1
- package/dist/{xml-b2530eaf.js → xml-3c437f8f.js} +1 -1
- package/dist/{yaml-7b6c85c0.js → yaml-141d3bd7.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +0 -4
- package/dist/Shared/Components/EditImageFormField/constants.d.ts +0 -6
- package/dist/Shared/Components/EditImageFormField/index.d.ts +0 -2
- package/dist/Shared/Components/EditImageFormField/types.d.ts +0 -18
package/dist/Common/Api.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ResponseType, APIOptions } from './Types';
|
|
|
4
4
|
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
5
5
|
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
6
6
|
export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
7
|
-
export declare const get:
|
|
7
|
+
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
|
|
8
8
|
export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
|
|
9
9
|
/**
|
|
10
10
|
* Aborts the previous request before triggering next request
|
|
@@ -78,7 +78,6 @@ export declare const ROUTES: {
|
|
|
78
78
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
79
79
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
80
80
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
81
|
-
PLUGIN_LIST_MIN: string;
|
|
82
81
|
};
|
|
83
82
|
export declare enum KEY_VALUE {
|
|
84
83
|
KEY = "key",
|
|
@@ -268,4 +267,3 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
268
267
|
DD_MMM_YYYY_HH_MM: string;
|
|
269
268
|
DD_MMM_YYYY: string;
|
|
270
269
|
};
|
|
271
|
-
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes
|
|
1
|
+
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface CustomInputProps {
|
|
4
4
|
name: string;
|
|
@@ -17,7 +17,7 @@ export interface CustomInputProps {
|
|
|
17
17
|
autoFocus?: boolean;
|
|
18
18
|
rootClassName?: string;
|
|
19
19
|
error?: string[] | string;
|
|
20
|
-
helperText?:
|
|
20
|
+
helperText?: string;
|
|
21
21
|
handleOnBlur?: (e: any) => void;
|
|
22
22
|
readOnly?: boolean;
|
|
23
23
|
noTrim?: boolean;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -177,10 +177,10 @@ export interface RadioGroupItemProps {
|
|
|
177
177
|
export interface RadioGroupInterface {
|
|
178
178
|
name: string;
|
|
179
179
|
onChange: any;
|
|
180
|
+
className?: string;
|
|
180
181
|
initialTab: string;
|
|
182
|
+
disabled: boolean;
|
|
181
183
|
children: ReactNode;
|
|
182
|
-
disabled?: boolean;
|
|
183
|
-
className?: string;
|
|
184
184
|
}
|
|
185
185
|
export interface RadioInterface {
|
|
186
186
|
children: ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { FormType, StepType } from '../../Common/CIPipeline.Types';
|
|
2
|
+
import { DeploymentAppTypes } from '../../Common/Types';
|
|
3
|
+
import { DeploymentStrategy } from '../../Shared/Components';
|
|
4
|
+
|
|
5
|
+
interface ConfigSecretType {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Environment {
|
|
11
|
+
description?: string;
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
namespace: string;
|
|
15
|
+
active: boolean;
|
|
16
|
+
clusterName: string;
|
|
17
|
+
clusterId: string;
|
|
18
|
+
isClusterCdActive: boolean;
|
|
19
|
+
isVirtualEnvironment?: boolean;
|
|
20
|
+
allowedDeploymentTypes?: DeploymentAppTypes[];
|
|
21
|
+
isDigestEnforcedForEnv?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface PipelineBuildStageType {
|
|
24
|
+
id: number;
|
|
25
|
+
triggerType?: string;
|
|
26
|
+
steps: StepType[];
|
|
27
|
+
}
|
|
28
|
+
export interface SavedDeploymentStrategy extends DeploymentStrategy {
|
|
29
|
+
isCollapsed?: boolean;
|
|
30
|
+
defaultConfig?: any;
|
|
31
|
+
yamlStr?: any;
|
|
32
|
+
jsonStr?: any;
|
|
33
|
+
}
|
|
34
|
+
export interface CustomTagType {
|
|
35
|
+
tagPattern: string;
|
|
36
|
+
counterX: string;
|
|
37
|
+
}
|
|
38
|
+
export declare enum ReleaseMode {
|
|
39
|
+
CREATE = "create",
|
|
40
|
+
LINK = "link"
|
|
41
|
+
}
|
|
42
|
+
export interface CDFormType {
|
|
43
|
+
name: string;
|
|
44
|
+
ciPipelineId: number;
|
|
45
|
+
environmentId: number;
|
|
46
|
+
environmentName: string;
|
|
47
|
+
namespace: string;
|
|
48
|
+
environments: Environment[];
|
|
49
|
+
deploymentAppType: string;
|
|
50
|
+
deploymentAppName?: string;
|
|
51
|
+
releaseMode: ReleaseMode;
|
|
52
|
+
triggerType: string;
|
|
53
|
+
preBuildStage?: PipelineBuildStageType;
|
|
54
|
+
postBuildStage?: PipelineBuildStageType;
|
|
55
|
+
strategies: DeploymentStrategy[];
|
|
56
|
+
savedStrategies: SavedDeploymentStrategy[];
|
|
57
|
+
preStageConfigMapSecretNames: {
|
|
58
|
+
configMaps: ConfigSecretType[];
|
|
59
|
+
secrets: ConfigSecretType[];
|
|
60
|
+
};
|
|
61
|
+
postStageConfigMapSecretNames: {
|
|
62
|
+
configMaps: ConfigSecretType[];
|
|
63
|
+
secrets: ConfigSecretType[];
|
|
64
|
+
};
|
|
65
|
+
requiredApprovals: string;
|
|
66
|
+
userApprovalConfig?: {
|
|
67
|
+
requiredCount: number;
|
|
68
|
+
};
|
|
69
|
+
isClusterCdActive: boolean;
|
|
70
|
+
deploymentAppCreated: boolean;
|
|
71
|
+
clusterId: string;
|
|
72
|
+
clusterName: string;
|
|
73
|
+
runPreStageInEnv: boolean;
|
|
74
|
+
runPostStageInEnv: boolean;
|
|
75
|
+
allowedDeploymentTypes: DeploymentAppTypes[];
|
|
76
|
+
containerRegistryName: string;
|
|
77
|
+
repoName: string;
|
|
78
|
+
selectedRegistry: any;
|
|
79
|
+
generatedHelmPushAction: string;
|
|
80
|
+
}
|
|
81
|
+
export interface PipelineFormType extends Partial<FormType>, Partial<CDFormType> {
|
|
82
|
+
name: string;
|
|
83
|
+
triggerType: string;
|
|
84
|
+
preBuildStage?: PipelineBuildStageType;
|
|
85
|
+
postBuildStage?: PipelineBuildStageType;
|
|
86
|
+
defaultTag?: string[];
|
|
87
|
+
customTag?: CustomTagType;
|
|
88
|
+
enableCustomTag?: boolean;
|
|
89
|
+
customTagStage?: string;
|
|
90
|
+
isDigestEnforcedForPipeline?: boolean;
|
|
91
|
+
isDigestEnforcedForEnv?: boolean;
|
|
92
|
+
}
|
|
93
|
+
export {};
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -522,7 +522,7 @@ export interface DeploymentHistory {
|
|
|
522
522
|
runSource?: RunSourceType;
|
|
523
523
|
}
|
|
524
524
|
type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE_GREEN';
|
|
525
|
-
interface DeploymentStrategy {
|
|
525
|
+
export interface DeploymentStrategy {
|
|
526
526
|
deploymentTemplate: DeploymentStrategyType;
|
|
527
527
|
config: any;
|
|
528
528
|
default: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
interface DetectBottomProps {
|
|
2
2
|
callback: () => void;
|
|
3
|
-
hasError?: boolean;
|
|
4
3
|
}
|
|
5
|
-
declare const DetectBottom: ({ callback
|
|
4
|
+
declare const DetectBottom: ({ callback }: DetectBottomProps) => JSX.Element;
|
|
6
5
|
export default DetectBottom;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
1
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, PluginDetailServiceParamsType } from './types';
|
|
3
2
|
|
|
4
3
|
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, 'pluginStore'>>;
|
|
5
4
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
6
5
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
7
|
-
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -14,11 +14,6 @@ export interface GetPluginTagsPayloadType {
|
|
|
14
14
|
export interface PluginTagNamesDTO {
|
|
15
15
|
tagNames: string[];
|
|
16
16
|
}
|
|
17
|
-
export interface MinParentPluginDTO {
|
|
18
|
-
id: number;
|
|
19
|
-
pluginName: string;
|
|
20
|
-
icon: string;
|
|
21
|
-
}
|
|
22
17
|
/**
|
|
23
18
|
* Minimal data of child plugins
|
|
24
19
|
*/
|
|
@@ -50,7 +45,6 @@ export interface ParentPluginDTO {
|
|
|
50
45
|
type: PluginCreationType;
|
|
51
46
|
icon: string;
|
|
52
47
|
pluginVersions: PluginVersionsDTO;
|
|
53
|
-
pluginIdentifier: string;
|
|
54
48
|
}
|
|
55
49
|
export interface PluginDetailDTO {
|
|
56
50
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -72,11 +66,11 @@ export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsT
|
|
|
72
66
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
73
67
|
selectedTags: string[];
|
|
74
68
|
}
|
|
75
|
-
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'
|
|
69
|
+
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'> {
|
|
76
70
|
latestVersionId: MinimalPluginVersionDataDTO['id'];
|
|
77
71
|
pluginVersions: MinimalPluginVersionDataDTO[];
|
|
78
72
|
}
|
|
79
|
-
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'
|
|
73
|
+
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'> {
|
|
80
74
|
parentPluginId: ParentPluginType['id'];
|
|
81
75
|
}
|
|
82
76
|
export interface PluginDataStoreType {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { OptionProps } from 'react-select';
|
|
2
|
-
import { OptionType } from '../../../Common/Types';
|
|
3
1
|
import { ParentPluginDTO, PluginDataStoreType } from './types';
|
|
4
2
|
|
|
5
3
|
export declare const parsePluginDetailsDTOIntoPluginStore: (pluginData: ParentPluginDTO[]) => PluginDataStoreType;
|
|
@@ -16,7 +14,6 @@ export declare const pluginTagSelectStyles: {
|
|
|
16
14
|
group: (base: any) => any;
|
|
17
15
|
groupHeading: (base: any) => any;
|
|
18
16
|
};
|
|
19
|
-
export declare const PluginTagOption: (props: OptionProps<OptionType, true>) => JSX.Element;
|
|
20
17
|
/**
|
|
21
18
|
* @description This method takes the initial plugin data store and updates the keys with the target parent plugin store and plugin version store
|
|
22
19
|
*/
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize,
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ServerErrors } from '../../../Common/ServerError';
|
|
2
1
|
import { OptionType } from '../../../Common/Types';
|
|
3
2
|
import { ComponentSizeType } from '../../constants';
|
|
4
3
|
import { ReactElement, ReactNode } from 'react';
|
|
@@ -19,7 +18,7 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
19
18
|
endIcon?: ReactElement;
|
|
20
19
|
}
|
|
21
20
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
22
|
-
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'
|
|
21
|
+
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
23
22
|
/**
|
|
24
23
|
* Icon to be rendered in the control
|
|
25
24
|
*/
|
|
@@ -71,13 +70,5 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
71
70
|
* @default 'ComponentSizeType.small'
|
|
72
71
|
*/
|
|
73
72
|
menuSize?: ComponentSizeType;
|
|
74
|
-
/**
|
|
75
|
-
* If true, would show generic section error state as no options message
|
|
76
|
-
*/
|
|
77
|
-
optionListError?: ServerErrors;
|
|
78
|
-
/**
|
|
79
|
-
* Would reload the option list when called in case optionListError is present
|
|
80
|
-
*/
|
|
81
|
-
reloadOptionList?: () => void;
|
|
82
73
|
}
|
|
83
74
|
export {};
|
|
@@ -12,7 +12,6 @@ export declare const MESSAGES: {
|
|
|
12
12
|
VALID_POSITIVE_NUMBER: string;
|
|
13
13
|
VALID_POSITIVE_INTEGER: string;
|
|
14
14
|
MAX_SAFE_INTEGER: string;
|
|
15
|
-
INVALID_SEMANTIC_VERSION: string;
|
|
16
15
|
};
|
|
17
16
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
18
17
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -29,5 +28,3 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
29
28
|
isValid: boolean;
|
|
30
29
|
message: string;
|
|
31
30
|
};
|
|
32
|
-
export declare const validateSematicVersioning: (version: string) => ValidationResponseType;
|
|
33
|
-
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|