@devtron-labs/devtron-fe-common-lib 1.5.1-beta-2 → 1.5.2

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.
Files changed (59) hide show
  1. package/dist/{@code-editor-B0vme9Gy.js → @code-editor-BOeFXRpX.js} +5933 -7079
  2. package/dist/@common-rjsf-CwZhqVif.js +516 -0
  3. package/dist/{@framer-motion-CtC3e2uC.js → @framer-motion-CdgdF0KV.js} +1 -1
  4. package/dist/{@react-dates-BlBjJ115.js → @react-dates-CtQV2TLr.js} +31 -31
  5. package/dist/{@react-select-CjYy5-X-.js → @react-select-Cn3OpC9h.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-DCAYOwGQ.js → @react-virtualized-sticky-tree-CVJYfMx0.js} +1 -1
  7. package/dist/{@vendor-CB7cq1II.js → @vendor-CwAQS8iU.js} +8897 -9849
  8. package/dist/Common/Constants.d.ts +0 -6
  9. package/dist/Common/Helper.d.ts +1 -1
  10. package/dist/Common/RJSF/utils.d.ts +0 -13
  11. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
  12. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -7
  13. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +0 -1
  14. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +0 -2
  15. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +51 -120
  16. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +2 -5
  17. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -5
  18. package/dist/Shared/Components/ConfirmationModal/types.d.ts +0 -4
  19. package/dist/Shared/Components/ReactSelect/utils.d.ts +3 -33
  20. package/dist/Shared/Components/index.d.ts +0 -5
  21. package/dist/Shared/Hooks/useForm/useForm.d.ts +2 -7
  22. package/dist/Shared/Services/app.types.d.ts +1 -72
  23. package/dist/Shared/Services/index.d.ts +0 -1
  24. package/dist/Shared/validations.d.ts +0 -4
  25. package/dist/assets/@code-editor.css +1 -1
  26. package/dist/assets/{delete-medium.baa284da.svg → delete-medium.897114e0.svg} +1 -1
  27. package/dist/assets/{ic-not-authorized.2d8e208f.svg → ic-not-authorized.24862281.svg} +1 -1
  28. package/dist/assets/{ic-not-found.86f588bf.svg → ic-not-found.f5857c12.svg} +1 -1
  29. package/dist/assets/{ic-page-not-found.da74a367.svg → ic-page-not-found.3c4f114b.svg} +1 -1
  30. package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +24 -0
  31. package/dist/index.js +684 -718
  32. package/package.json +3 -3
  33. package/dist/@common-rjsf-D8vkvmqW.js +0 -583
  34. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtilityContext.d.ts +0 -3
  35. package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +0 -11
  36. package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +0 -3
  37. package/dist/Shared/Components/CMCS/constants.d.ts +0 -23
  38. package/dist/Shared/Components/CMCS/helpers.d.ts +0 -1
  39. package/dist/Shared/Components/CMCS/index.d.ts +0 -6
  40. package/dist/Shared/Components/CMCS/types.d.ts +0 -24
  41. package/dist/Shared/Components/CMCS/utils.d.ts +0 -17
  42. package/dist/Shared/Components/CMCS/validations.d.ts +0 -3
  43. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +0 -4
  44. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +0 -3
  45. package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +0 -3
  46. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +0 -2
  47. package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +0 -7
  48. package/dist/Shared/Components/FloatingVariablesSuggestions/index.d.ts +0 -1
  49. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +0 -2
  50. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +0 -39
  51. package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +0 -3
  52. package/dist/Shared/Components/ToggleResolveScopedVariables/index.d.ts +0 -1
  53. package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +0 -10
  54. package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +0 -2
  55. package/dist/Shared/Components/UnsavedChanges/index.d.ts +0 -1
  56. package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +0 -3
  57. package/dist/Shared/Components/UnsavedChangesDialog/index.d.ts +0 -1
  58. package/dist/Shared/Components/UnsavedChangesDialog/types.d.ts +0 -5
  59. package/dist/assets/ic-view-variable-toggle.93c3599f.svg +0 -19
@@ -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;
@@ -1,3 +0,0 @@
1
- import { ConfigMapSecretUseFormProps } from '../../Services';
2
- import { UseFormValidations } from '../../Hooks';
3
- export declare const getConfigMapSecretFormValidations: UseFormValidations<ConfigMapSecretUseFormProps>;
@@ -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,3 +0,0 @@
1
- import { SuggestionsItemProps } from './types';
2
- declare const SuggestionItem: ({ variableName, description, variableValue, isRedacted, highlightText, showValueOnHover, }: SuggestionsItemProps) => JSX.Element;
3
- export default SuggestionItem;
@@ -1,3 +0,0 @@
1
- import { SuggestionsProps } from './types';
2
- declare const _default: import('react').MemoExoticComponent<({ handleDeActivation, loading, variables, reloadVariables, error, showValueOnHover, }: SuggestionsProps) => JSX.Element>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('react').MemoExoticComponent<() => JSX.Element>;
2
- 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,10 +0,0 @@
1
- export interface ToggleResolveScopedVariablesProps {
2
- resolveScopedVariables: boolean;
3
- handleToggleScopedVariablesView: () => void;
4
- isDisabled?: boolean;
5
- /**
6
- * @default true
7
- */
8
- showTooltip?: boolean;
9
- throttleOnChange?: boolean;
10
- }
@@ -1,2 +0,0 @@
1
- declare const UnsavedChanges: () => JSX.Element;
2
- export default UnsavedChanges;
@@ -1 +0,0 @@
1
- export { default as UnsavedChanges } from './UnsavedChanges.component';
@@ -1,3 +0,0 @@
1
- import { UnsavedChangesDialogProps } from './types';
2
- declare const UnsavedChangesDialog: ({ showUnsavedChangesDialog, handleClose, handleProceed }: UnsavedChangesDialogProps) => JSX.Element;
3
- export default UnsavedChangesDialog;
@@ -1 +0,0 @@
1
- export { default as UnsavedChangesDialog } from './UnsavedChangesDialog.component';
@@ -1,5 +0,0 @@
1
- export interface UnsavedChangesDialogProps {
2
- showUnsavedChangesDialog: boolean;
3
- handleProceed: () => void;
4
- handleClose: () => void;
5
- }
@@ -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>