@devtron-labs/devtron-fe-common-lib 1.1.7-beta-5 → 1.1.7-beta-6
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 +1 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +14 -19
- package/dist/Common/Types.d.ts +1 -2
- package/dist/Shared/Components/SelectPicker/type.d.ts +4 -5
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Services/app.service.d.ts +1 -0
- package/dist/Shared/Services/app.types.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-C67UWj9F.js → cssMode-ICx75qXv.js} +1 -1
- package/dist/{freemarker2-f_brQ_Fu.js → freemarker2-RxbcapwN.js} +1 -1
- package/dist/{handlebars-B7PmDT7X.js → handlebars-OYgBS5aN.js} +1 -1
- package/dist/{html--8_GJNVl.js → html-Dyvt0nEn.js} +1 -1
- package/dist/{htmlMode-Cpdidgs7.js → htmlMode-DouVhb9f.js} +1 -1
- package/dist/{index-C8nHuOF3.js → index-Dd9M9by5.js} +28473 -28846
- package/dist/index.js +490 -492
- package/dist/{javascript-DaBt1F2q.js → javascript-SPqrmmin.js} +1 -1
- package/dist/{jsonMode-C_wjYAWs.js → jsonMode-BAFHuhXk.js} +1 -1
- package/dist/{liquid-BzWuiSNf.js → liquid-BDIXXgdk.js} +1 -1
- package/dist/{mdx-C0_sOqOx.js → mdx-JIaHCpAj.js} +1 -1
- package/dist/{python-C9TivYDS.js → python-A07Ms5Z6.js} +1 -1
- package/dist/{razor-CprU5jHJ.js → razor-DCGgeaNu.js} +1 -1
- package/dist/{tsMode-D9v57yOE.js → tsMode-CCWyhmhb.js} +1 -1
- package/dist/{typescript-Cxaa53sE.js → typescript-Dsug3y9N.js} +1 -1
- package/dist/{xml-GCkqXpcP.js → xml-Dkum64Rz.js} +1 -1
- package/dist/{yaml-C2WVRNkx.js → yaml-CFGZEZy6.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/index.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +0 -175
- package/dist/Shared/Components/DynamicDataTable/utils.d.ts +0 -5
- package/dist/Shared/Components/SelectTextArea/SelectTextArea.d.ts +0 -2
- package/dist/Shared/Components/SelectTextArea/index.d.ts +0 -2
- package/dist/Shared/Components/SelectTextArea/types.d.ts +0 -12
|
@@ -12,7 +12,6 @@ export declare const DOCUMENTATION: {
|
|
|
12
12
|
GLOBAL_CONFIG_BUILD_INFRA: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const PATTERNS: {
|
|
15
|
-
STRING: RegExp;
|
|
16
15
|
KUBERNETES_KEY_PREFIX: RegExp;
|
|
17
16
|
KUBERNETES_KEY_NAME: RegExp;
|
|
18
17
|
START_END_ALPHANUMERIC: RegExp;
|
|
@@ -95,6 +94,7 @@ export declare const ROUTES: {
|
|
|
95
94
|
USER_LIST_MIN: string;
|
|
96
95
|
CONFIG_DATA: string;
|
|
97
96
|
K8S_RESOURCE_LIST: string;
|
|
97
|
+
CONFIG_COMPARE_SECRET: string;
|
|
98
98
|
};
|
|
99
99
|
export declare enum KEY_VALUE {
|
|
100
100
|
KEY = "key",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ResizableTagTextAreaProps } from './Types';
|
|
2
|
-
export declare const ResizableTagTextArea: ({
|
|
2
|
+
export declare const ResizableTagTextArea: ({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, handleKeyDown, disabled, disableOnBlurResizeToMinHeight, }: ResizableTagTextAreaProps) => JSX.Element;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import { DetailedHTMLProps, MutableRefObject, TextareaHTMLAttributes } from 'react';
|
|
2
1
|
import { KEY_VALUE } from '../Constants';
|
|
3
2
|
import { OptionType } from '../Types';
|
|
4
3
|
export interface SuggestedTagOptionType extends OptionType {
|
|
5
4
|
description: string;
|
|
6
5
|
propagate: boolean;
|
|
7
6
|
}
|
|
8
|
-
export declare enum DeploymentPolicy {
|
|
9
|
-
ALLOW = "allow",
|
|
10
|
-
BLOCK = "block",
|
|
11
|
-
BLOCK_PROD = "block-prod",
|
|
12
|
-
BLOCK_NON_PROD = "block-non-prod"
|
|
13
|
-
}
|
|
14
|
-
export interface VariableValueConstraintTypes {
|
|
15
|
-
choices?: string[];
|
|
16
|
-
blockCustomValue?: boolean;
|
|
17
|
-
}
|
|
18
7
|
export interface TagType {
|
|
19
8
|
id?: number;
|
|
20
9
|
key: string;
|
|
@@ -26,8 +15,6 @@ export interface TagType {
|
|
|
26
15
|
isInvalidValue?: boolean;
|
|
27
16
|
isSuggested?: boolean;
|
|
28
17
|
isPropagateDisabled?: boolean;
|
|
29
|
-
deploymentPolicy?: DeploymentPolicy;
|
|
30
|
-
valueConstraint?: VariableValueConstraintTypes;
|
|
31
18
|
}
|
|
32
19
|
export interface TagErrorType {
|
|
33
20
|
isValid: boolean;
|
|
@@ -61,16 +48,24 @@ export interface TagLabelValueSelectorType {
|
|
|
61
48
|
tagInputType?: KEY_VALUE;
|
|
62
49
|
placeholder?: string;
|
|
63
50
|
tabIndex?: number;
|
|
64
|
-
refVar?: MutableRefObject<HTMLTextAreaElement>;
|
|
65
|
-
dependentRef?: MutableRefObject<HTMLTextAreaElement>;
|
|
51
|
+
refVar?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
52
|
+
dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
66
53
|
noBackDrop?: boolean;
|
|
67
54
|
}
|
|
68
|
-
export interface ResizableTagTextAreaProps
|
|
55
|
+
export interface ResizableTagTextAreaProps {
|
|
56
|
+
className?: string;
|
|
69
57
|
minHeight?: number;
|
|
70
58
|
maxHeight?: number;
|
|
71
|
-
value
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
value?: string;
|
|
60
|
+
onChange?: (e: any) => void;
|
|
61
|
+
onBlur?: (e: any) => void;
|
|
62
|
+
onFocus?: (e: any) => void;
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
tabIndex?: number;
|
|
65
|
+
refVar?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
66
|
+
dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
74
67
|
dataTestId?: string;
|
|
68
|
+
handleKeyDown?: any;
|
|
69
|
+
disabled?: boolean;
|
|
75
70
|
disableOnBlurResizeToMinHeight?: boolean;
|
|
76
71
|
}
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObject } from 'react';
|
|
2
|
-
import { TippyProps } from '@tippyjs/react';
|
|
3
2
|
import { Placement } from 'tippy.js';
|
|
4
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
5
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
@@ -66,7 +65,7 @@ export interface CheckboxProps {
|
|
|
66
65
|
id?: string;
|
|
67
66
|
dataTestId?: string;
|
|
68
67
|
}
|
|
69
|
-
export interface TippyCustomizedProps
|
|
68
|
+
export interface TippyCustomizedProps {
|
|
70
69
|
theme: TippyTheme;
|
|
71
70
|
visible?: boolean;
|
|
72
71
|
heading?: ReactNode | string;
|
|
@@ -24,10 +24,6 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
|
24
24
|
tooltipProps?: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
|
|
25
25
|
}
|
|
26
26
|
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
|
27
|
-
export declare enum SelectPickerVariantType {
|
|
28
|
-
DEFAULT = "default",
|
|
29
|
-
BORDER_LESS = "border-less"
|
|
30
|
-
}
|
|
31
27
|
declare module 'react-select/base' {
|
|
32
28
|
interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
|
33
29
|
/**
|
|
@@ -59,9 +55,12 @@ declare module 'react-select/base' {
|
|
|
59
55
|
* @default 'true'
|
|
60
56
|
*/
|
|
61
57
|
showSelectedOptionIcon?: boolean;
|
|
62
|
-
variant?: SelectPickerVariantType;
|
|
63
58
|
}
|
|
64
59
|
}
|
|
60
|
+
export declare enum SelectPickerVariantType {
|
|
61
|
+
DEFAULT = "default",
|
|
62
|
+
BORDER_LESS = "border-less"
|
|
63
|
+
}
|
|
65
64
|
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
|
|
66
65
|
/**
|
|
67
66
|
* Error message for the select
|
|
@@ -9,3 +9,4 @@ export declare const getAppEnvDeploymentConfig: ({ params, signal, }: {
|
|
|
9
9
|
params: AppEnvDeploymentConfigPayloadType;
|
|
10
10
|
signal?: AbortSignal;
|
|
11
11
|
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
12
|
+
export declare const getCompareSecretsData: (params: AppEnvDeploymentConfigPayloadType[]) => Promise<AppEnvDeploymentConfigDTO[]>;
|
|
@@ -213,7 +213,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
|
213
213
|
appName: string;
|
|
214
214
|
envName: string;
|
|
215
215
|
configType: AppEnvDeploymentConfigType;
|
|
216
|
-
|
|
216
|
+
wfrId?: number;
|
|
217
217
|
pipelineId?: number;
|
|
218
218
|
resourceType?: ConfigResourceType;
|
|
219
219
|
resourceId?: number;
|