@devtron-labs/devtron-fe-common-lib 0.1.16-beta-7 → 0.1.16-beta-9
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 +1 -4
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/CustomInput/Types.d.ts +2 -2
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +7 -0
- 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/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 -5
- 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-5222472b.js → cssMode-196cc80c.js} +1 -1
- package/dist/{freemarker2-86e00522.js → freemarker2-47504685.js} +1 -1
- package/dist/{handlebars-6a922d2a.js → handlebars-10c523a3.js} +1 -1
- package/dist/{html-b4158742.js → html-cad07397.js} +1 -1
- package/dist/{htmlMode-d8c49ab0.js → htmlMode-32b0109b.js} +1 -1
- package/dist/{index-6d3a3314.js → index-ca7b2606.js} +21903 -22085
- package/dist/index.js +402 -408
- package/dist/{javascript-80dc4c2a.js → javascript-3d2ea74a.js} +1 -1
- package/dist/{jsonMode-771da968.js → jsonMode-e8cc164d.js} +1 -1
- package/dist/{liquid-12cc259d.js → liquid-e99b3ed2.js} +1 -1
- package/dist/{mdx-3e169bed.js → mdx-bf54bacf.js} +1 -1
- package/dist/{python-7abb639f.js → python-de5761fd.js} +1 -1
- package/dist/{razor-0c1382cc.js → razor-ea9a29bd.js} +1 -1
- package/dist/{tsMode-bc8858f6.js → tsMode-d8ac7821.js} +1 -1
- package/dist/{typescript-0f031a62.js → typescript-b146e039.js} +1 -1
- package/dist/{xml-86ca1795.js → xml-d597e233.js} +1 -1
- package/dist/{yaml-71afa4d4.js → yaml-a6d46f62.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
|
|
@@ -77,7 +77,6 @@ export interface VariableType {
|
|
|
77
77
|
format: string;
|
|
78
78
|
description: string;
|
|
79
79
|
defaultValue: string;
|
|
80
|
-
allowEmptyValue: boolean;
|
|
81
80
|
variableType: RefVariableType;
|
|
82
81
|
refVariableStepIndex: number;
|
|
83
82
|
refVariableName: string;
|
|
@@ -99,7 +98,7 @@ interface ConditionDetails {
|
|
|
99
98
|
conditionType: ConditionType;
|
|
100
99
|
conditionalValue: string;
|
|
101
100
|
}
|
|
102
|
-
|
|
101
|
+
interface InlineStepDetailType {
|
|
103
102
|
scriptType: ScriptType;
|
|
104
103
|
isMountCustomScript?: boolean;
|
|
105
104
|
script?: string;
|
|
@@ -118,8 +117,6 @@ export interface InlineStepDetailType {
|
|
|
118
117
|
inputVariables?: VariableType[];
|
|
119
118
|
outputVariables?: VariableType[];
|
|
120
119
|
conditionDetails: ConditionDetails[];
|
|
121
|
-
storeScriptAt?: string;
|
|
122
|
-
mountCodeToContainerPath?: string;
|
|
123
120
|
}
|
|
124
121
|
interface PluginRefStepDetailType {
|
|
125
122
|
id: number;
|
|
@@ -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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TagDetailType } from './Types';
|
|
2
2
|
|
|
3
|
-
export declare const TagDetails: ({ index, tagData, setTagData, removeTag, tabIndex, suggestedTagsOptions, }: TagDetailType) => JSX.Element;
|
|
3
|
+
export declare const TagDetails: ({ index, tagData, setTagData, removeTag, tabIndex, suggestedTagsOptions, isHelmChart, }: TagDetailType) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TagLabelSelectType } from './Types';
|
|
2
2
|
|
|
3
|
-
export declare const TagLabelSelect: ({ isCreateApp, labelTags, setLabelTags, tabIndex }: TagLabelSelectType) => JSX.Element;
|
|
3
|
+
export declare const TagLabelSelect: ({ isCreateApp, labelTags, setLabelTags, tabIndex, appType }: TagLabelSelectType) => JSX.Element;
|
|
@@ -21,6 +21,11 @@ export interface TagErrorType {
|
|
|
21
21
|
isValid: boolean;
|
|
22
22
|
messages: string[];
|
|
23
23
|
}
|
|
24
|
+
export declare enum APP_TYPE {
|
|
25
|
+
HELM_CHART = "helm-chart",
|
|
26
|
+
DEVTRON_APPS = "app",
|
|
27
|
+
JOB = "job"
|
|
28
|
+
}
|
|
24
29
|
export interface TagLabelSelectType {
|
|
25
30
|
isCreateApp?: boolean;
|
|
26
31
|
labelTags: TagType[];
|
|
@@ -29,6 +34,7 @@ export interface TagLabelSelectType {
|
|
|
29
34
|
selectedProjectId?: number;
|
|
30
35
|
suggestedTagsOptions?: SuggestedTagOptionType[];
|
|
31
36
|
reloadProjectTags?: boolean;
|
|
37
|
+
appType?: APP_TYPE;
|
|
32
38
|
}
|
|
33
39
|
export interface TagDetailType {
|
|
34
40
|
index: number;
|
|
@@ -37,6 +43,7 @@ export interface TagDetailType {
|
|
|
37
43
|
removeTag?: (index: number) => void;
|
|
38
44
|
tabIndex?: number;
|
|
39
45
|
suggestedTagsOptions?: SuggestedTagOptionType[];
|
|
46
|
+
isHelmChart?: boolean;
|
|
40
47
|
}
|
|
41
48
|
export interface TagLabelValueSelectorType {
|
|
42
49
|
selectedTagIndex: number;
|
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;
|
|
@@ -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[]>>;
|
|
@@ -45,9 +45,6 @@ export interface ParentPluginDTO {
|
|
|
45
45
|
type: PluginCreationType;
|
|
46
46
|
icon: string;
|
|
47
47
|
pluginVersions: PluginVersionsDTO;
|
|
48
|
-
pluginIdentifier: string;
|
|
49
|
-
}
|
|
50
|
-
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
51
48
|
}
|
|
52
49
|
export interface PluginDetailDTO {
|
|
53
50
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -69,11 +66,11 @@ export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsT
|
|
|
69
66
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
70
67
|
selectedTags: string[];
|
|
71
68
|
}
|
|
72
|
-
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'
|
|
69
|
+
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'> {
|
|
73
70
|
latestVersionId: MinimalPluginVersionDataDTO['id'];
|
|
74
71
|
pluginVersions: MinimalPluginVersionDataDTO[];
|
|
75
72
|
}
|
|
76
|
-
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'> {
|
|
77
74
|
parentPluginId: ParentPluginType['id'];
|
|
78
75
|
}
|
|
79
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 validateSemanticVersioning: (version: string) => ValidationResponseType;
|
|
33
|
-
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|