@devtron-labs/devtron-fe-common-lib 1.5.3-beta-3 → 1.5.3
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-BOZaVf1s.js → @code-editor-ZZG6aOfw.js} +6278 -7459
- package/dist/{@common-rjsf-xACGB2Yo.js → @common-rjsf-DO7kJLDu.js} +2 -2
- package/dist/{@framer-motion-CtC3e2uC.js → @framer-motion-CdgdF0KV.js} +1 -1
- package/dist/{@react-dates-BlBjJ115.js → @react-dates-CtQV2TLr.js} +31 -31
- package/dist/{@react-select-CjYy5-X-.js → @react-select-Cn3OpC9h.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DCAYOwGQ.js → @react-virtualized-sticky-tree-CVJYfMx0.js} +1 -1
- package/dist/{@vendor-CB7cq1II.js → @vendor-CwAQS8iU.js} +8897 -9849
- package/dist/Common/Constants.d.ts +0 -6
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -7
- package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +51 -120
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +2 -5
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -5
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +0 -4
- package/dist/Shared/Components/index.d.ts +0 -5
- package/dist/Shared/Hooks/useForm/useForm.d.ts +2 -7
- package/dist/Shared/Services/app.types.d.ts +1 -72
- package/dist/Shared/Services/index.d.ts +0 -1
- package/dist/Shared/validations.d.ts +0 -4
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +24 -0
- package/dist/index.js +684 -718
- package/package.json +3 -3
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtilityContext.d.ts +0 -3
- package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +0 -11
- package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +0 -3
- package/dist/Shared/Components/CMCS/constants.d.ts +0 -23
- package/dist/Shared/Components/CMCS/helpers.d.ts +0 -1
- package/dist/Shared/Components/CMCS/index.d.ts +0 -6
- package/dist/Shared/Components/CMCS/types.d.ts +0 -24
- package/dist/Shared/Components/CMCS/utils.d.ts +0 -17
- package/dist/Shared/Components/CMCS/validations.d.ts +0 -3
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +0 -4
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +0 -3
- package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +0 -3
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +0 -2
- package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +0 -7
- package/dist/Shared/Components/FloatingVariablesSuggestions/index.d.ts +0 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +0 -2
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +0 -39
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +0 -3
- package/dist/Shared/Components/ToggleResolveScopedVariables/index.d.ts +0 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +0 -10
- package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +0 -2
- package/dist/Shared/Components/UnsavedChanges/index.d.ts +0 -1
- package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +0 -3
- package/dist/Shared/Components/UnsavedChangesDialog/index.d.ts +0 -1
- package/dist/Shared/Components/UnsavedChangesDialog/types.d.ts +0 -5
- package/dist/assets/ic-view-variable-toggle.93c3599f.svg +0 -19
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devtron-labs/devtron-fe-common-lib",
|
3
|
-
"version": "1.5.3
|
3
|
+
"version": "1.5.3",
|
4
4
|
"description": "Supporting common component library",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -86,6 +86,7 @@
|
|
86
86
|
"patch-package": "^8.0.0",
|
87
87
|
"react": "^17.0.2",
|
88
88
|
"react-dom": "^17.0.2",
|
89
|
+
"react-draggable": "^4.4.5",
|
89
90
|
"react-ga4": "^1.4.1",
|
90
91
|
"react-mde": "^11.5.0",
|
91
92
|
"react-router-dom": "^5.3.0",
|
@@ -107,8 +108,7 @@
|
|
107
108
|
"react-monaco-editor": "^0.54.0",
|
108
109
|
"react-virtualized-sticky-tree": "^3.0.0-beta18",
|
109
110
|
"sass": "^1.69.7",
|
110
|
-
"tslib": "2.7.0"
|
111
|
-
"react-draggable": "^4.4.5"
|
111
|
+
"tslib": "2.7.0"
|
112
112
|
},
|
113
113
|
"overrides": {
|
114
114
|
"cross-spawn": "^7.0.5",
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { ValidateNodeSelectorParamsType, ValidateRequestLimitResponseType, ValidateRequestLimitType } from '../../index';
|
2
|
-
import { ValidationResponseType } from '../../../Shared/validations';
|
3
|
-
/**
|
4
|
-
* @description A valid platform name should not be empty and be less than 128 characters. Plus profile can not have duplicate platform names
|
5
|
-
*/
|
6
|
-
export declare const validateTargetPlatformName: (name: string, platformMap: Record<string, unknown>) => ValidationResponseType;
|
7
|
-
export declare const validateLabelValue: (value?: string) => Pick<ValidationResponseType, "isValid"> & {
|
8
|
-
messages: string[];
|
9
|
-
};
|
10
|
-
export declare const validateRequestLimit: ({ request, limit, unitsMap, }: ValidateRequestLimitType) => ValidateRequestLimitResponseType;
|
11
|
-
export declare const validateNodeSelector: ({ selector: { key, value, id }, existingKeys, profileInputErrors: currentInputErrors, }: ValidateNodeSelectorParamsType) => void;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { ConfigMapSecretReadyOnlyProps } from './types';
|
2
|
-
declare const ConfigMapSecretReadyOnly: ({ componentType, isJob, configMapSecretData, cmSecretStateLabel, areScopeVariablesResolving, fallbackMergeStrategy, hideCodeEditor, containerClassName, displayKeys, isBorderLess, }: ConfigMapSecretReadyOnlyProps) => JSX.Element;
|
3
|
-
export default ConfigMapSecretReadyOnly;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { CMSecretYamlData } from '../../Services';
|
2
|
-
import { ConfigMapSecretDataTypeOptionType } from './types';
|
3
|
-
export declare const CONFIG_MAP_SECRET_YAML_PARSE_ERROR = "Please provide valid YAML";
|
4
|
-
export declare const SECRET_TOAST_INFO: {
|
5
|
-
BOTH_STORE_AVAILABLE: string;
|
6
|
-
CHECK_KEY_SECRET_KEY: string;
|
7
|
-
BOTH_STORE_UNAVAILABLE: string;
|
8
|
-
CHECK_KEY_NAME: string;
|
9
|
-
BOTH_ESO_DATA_AND_DATA_FROM_AVAILABLE: string;
|
10
|
-
BOTH_ESO_DATA_AND_DATA_FROM_UNAVAILABLE: string;
|
11
|
-
};
|
12
|
-
export declare const configMapDataTypeOptions: ConfigMapSecretDataTypeOptionType[];
|
13
|
-
export declare const CONFIG_MAP_SECRET_DEFAULT_CURRENT_DATA: CMSecretYamlData[];
|
14
|
-
export declare const configMapSecretMountDataMap: {
|
15
|
-
environment: {
|
16
|
-
title: string;
|
17
|
-
value: string;
|
18
|
-
};
|
19
|
-
volume: {
|
20
|
-
title: string;
|
21
|
-
value: string;
|
22
|
-
};
|
23
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const renderHashiOrAwsDeprecatedInfo: () => JSX.Element;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { OverrideMergeStrategyType } from '../../../Pages/index';
|
2
|
-
import { CM_SECRET_STATE, CMSecretComponentType, CMSecretConfigData } from '../../Services';
|
3
|
-
import { SelectPickerOptionType } from '../SelectPicker';
|
4
|
-
export interface ConfigMapSecretReadyOnlyProps {
|
5
|
-
configMapSecretData: CMSecretConfigData;
|
6
|
-
componentType: CMSecretComponentType;
|
7
|
-
cmSecretStateLabel: CM_SECRET_STATE;
|
8
|
-
isJob: boolean;
|
9
|
-
areScopeVariablesResolving: boolean;
|
10
|
-
fallbackMergeStrategy: OverrideMergeStrategyType;
|
11
|
-
hideCodeEditor?: boolean;
|
12
|
-
containerClassName?: string;
|
13
|
-
/**
|
14
|
-
* @default false
|
15
|
-
*/
|
16
|
-
displayKeys?: boolean;
|
17
|
-
/**
|
18
|
-
* @default false
|
19
|
-
*/
|
20
|
-
isBorderLess?: boolean;
|
21
|
-
}
|
22
|
-
export interface GetConfigMapSecretReadOnlyValuesParamsType extends Pick<ConfigMapSecretReadyOnlyProps, 'componentType' | 'configMapSecretData' | 'cmSecretStateLabel' | 'isJob' | 'fallbackMergeStrategy' | 'displayKeys'> {
|
23
|
-
}
|
24
|
-
export type ConfigMapSecretDataTypeOptionType = SelectPickerOptionType<string>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { GroupBase, OptionsOrGroups } from 'react-select';
|
2
|
-
import { CMSecretPayloadType, CMSecretYamlData, ConfigMapSecretUseFormProps, ESOSecretData, GetConfigMapSecretFormInitialValuesParamsType } from '../../Services';
|
3
|
-
import { ConfigMapSecretDataTypeOptionType, GetConfigMapSecretReadOnlyValuesParamsType } from './types';
|
4
|
-
export declare const getSecretDataTypeOptions: (isJob: boolean, isHashiOrAWS: boolean) => ConfigMapSecretDataTypeOptionType[] | OptionsOrGroups<ConfigMapSecretDataTypeOptionType, GroupBase<ConfigMapSecretDataTypeOptionType>>;
|
5
|
-
export declare const convertKeyValuePairToYAML: (currentData: CMSecretYamlData[]) => string;
|
6
|
-
export declare const getConfigMapSecretFormInitialValues: ({ isJob, configMapSecretData, cmSecretStateLabel, componentType, skipValidation, fallbackMergeStrategy, }: GetConfigMapSecretFormInitialValuesParamsType) => ConfigMapSecretUseFormProps;
|
7
|
-
export declare const getConfigMapSecretReadOnlyValues: ({ configMapSecretData, cmSecretStateLabel, componentType, isJob, fallbackMergeStrategy, displayKeys, }: GetConfigMapSecretReadOnlyValuesParamsType) => {
|
8
|
-
configData: {
|
9
|
-
displayName: string;
|
10
|
-
value: any;
|
11
|
-
key: string;
|
12
|
-
}[];
|
13
|
-
data: string;
|
14
|
-
};
|
15
|
-
export declare const convertYAMLToKeyValuePair: (yaml: string) => CMSecretYamlData[];
|
16
|
-
export declare const getESOSecretDataFromYAML: (yaml: string) => ESOSecretData;
|
17
|
-
export declare const getConfigMapSecretPayload: ({ isSecret, external, externalType, externalSubpathValues, yaml, yamlMode, currentData, esoSecretYaml, filePermission, name, selectedType, isFilePermissionChecked, roleARN, volumeMountPath, isSubPathChecked, mergeStrategy, }: ConfigMapSecretUseFormProps) => CMSecretPayloadType;
|
package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
import { default as React } from 'react';
|
2
|
-
import { FloatingVariablesSuggestionsProps } from './types';
|
3
|
-
declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
|
4
|
-
export default _default;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export declare const SUGGESTIONS_SIZE: {
|
2
|
-
width: number;
|
3
|
-
height: number;
|
4
|
-
};
|
5
|
-
export declare const NO_DEFINED_DESCRIPTION = "No Defined Description";
|
6
|
-
export declare const NO_DEFINED_VALUE = "No Defined Value";
|
7
|
-
export declare const SUGGESTIONS_INFO_TITLE = "What is scoped variable?";
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as FloatingVariablesSuggestions } from './FloatingVariablesSuggestions';
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import { FloatingVariablesSuggestionsProps, ScopedVariableType } from './types';
|
2
|
-
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], hideObjectVariables?: boolean) => Promise<ScopedVariableType[]>;
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { DraggableBounds } from 'react-draggable';
|
2
|
-
export interface ScopedVariableType {
|
3
|
-
variableName: string;
|
4
|
-
shortDescription: string | null;
|
5
|
-
variableValue?: {
|
6
|
-
value: string | number | boolean | Record<string | number, unknown>;
|
7
|
-
} | null;
|
8
|
-
isRedacted: boolean;
|
9
|
-
}
|
10
|
-
export interface FloatingVariablesSuggestionsProps {
|
11
|
-
zIndex: number;
|
12
|
-
appId?: string;
|
13
|
-
envId?: string;
|
14
|
-
clusterId?: string;
|
15
|
-
bounds?: DraggableBounds | string | false;
|
16
|
-
/**
|
17
|
-
* This will hide the variables with object/array values if set to true
|
18
|
-
* @default true
|
19
|
-
*/
|
20
|
-
hideObjectVariables?: boolean;
|
21
|
-
/**
|
22
|
-
* @default true
|
23
|
-
*/
|
24
|
-
showValueOnHover?: boolean;
|
25
|
-
}
|
26
|
-
export interface SuggestionsProps extends Required<Pick<FloatingVariablesSuggestionsProps, 'showValueOnHover'>> {
|
27
|
-
handleDeActivation: (e: React.MouseEvent<HTMLOrSVGElement>) => void;
|
28
|
-
loading: boolean;
|
29
|
-
variables: ScopedVariableType[];
|
30
|
-
reloadVariables: () => void;
|
31
|
-
error: boolean;
|
32
|
-
}
|
33
|
-
export interface SuggestionsItemProps extends Pick<SuggestionsProps, 'showValueOnHover'> {
|
34
|
-
variableName: string;
|
35
|
-
description: string;
|
36
|
-
variableValue: Required<ScopedVariableType['variableValue']['value']>;
|
37
|
-
isRedacted: boolean;
|
38
|
-
highlightText: string;
|
39
|
-
}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { ToggleResolveScopedVariablesProps } from './types';
|
2
|
-
declare const ToggleResolveScopedVariables: ({ resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip, throttleOnChange, }: ToggleResolveScopedVariablesProps) => JSX.Element;
|
3
|
-
export default ToggleResolveScopedVariables;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as ToggleResolveScopedVariables } from './ToggleResolveScopedVariables.component';
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as UnsavedChanges } from './UnsavedChanges.component';
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default as UnsavedChangesDialog } from './UnsavedChangesDialog.component';
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
- Copyright (c) 2024. Devtron Inc.
|
3
|
-
-
|
4
|
-
- Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
- you may not use this file except in compliance with the License.
|
6
|
-
- You may obtain a copy of the License at
|
7
|
-
-
|
8
|
-
- http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
-
|
10
|
-
- Unless required by applicable law or agreed to in writing, software
|
11
|
-
- distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
- See the License for the specific language governing permissions and
|
14
|
-
- limitations under the License.
|
15
|
-
-->
|
16
|
-
|
17
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
18
|
-
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.786 21a3.857 3.857 0 0 1-3.857-3.857v-3.214L2 12l1.929-1.929V6.857A3.857 3.857 0 0 1 7.786 3m8.428 18a3.857 3.857 0 0 0 3.857-3.857v-3.214L22 12l-1.929-1.929V6.857A3.857 3.857 0 0 0 16.214 3M12 11a1 1 0 1 1 0 2m0-2a1 1 0 1 0 0 2m0-2v2" vector-effect="non-scaling-stroke"/>
|
19
|
-
</svg>
|