@devtron-labs/devtron-fe-common-lib 1.4.9 → 1.5.1-beta-1

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 (61) hide show
  1. package/dist/{@code-editor-BOLaG1cq.js → @code-editor-nJMq__nd.js} +7953 -6725
  2. package/dist/{@common-rjsf-D95ycdjG.js → @common-rjsf-D_HM1zib.js} +78 -78
  3. package/dist/{@framer-motion-CdgdF0KV.js → @framer-motion-CtC3e2uC.js} +1 -1
  4. package/dist/{@react-dates-CtQV2TLr.js → @react-dates-BlBjJ115.js} +31 -31
  5. package/dist/{@react-select-Cn3OpC9h.js → @react-select-CjYy5-X-.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CVJYfMx0.js → @react-virtualized-sticky-tree-DCAYOwGQ.js} +1 -1
  7. package/dist/{@vendor-CwAQS8iU.js → @vendor-CB7cq1II.js} +10317 -9365
  8. package/dist/Common/Constants.d.ts +6 -0
  9. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtilityContext.d.ts +3 -0
  10. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
  11. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +7 -1
  12. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +1 -0
  13. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -0
  14. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +115 -51
  15. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +5 -2
  16. package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +11 -0
  17. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  18. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  19. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +5 -4
  20. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -5
  21. package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +3 -0
  22. package/dist/Shared/Components/CMCS/constants.d.ts +23 -0
  23. package/dist/Shared/Components/CMCS/helpers.d.ts +1 -0
  24. package/dist/Shared/Components/CMCS/index.d.ts +6 -0
  25. package/dist/Shared/Components/CMCS/types.d.ts +24 -0
  26. package/dist/Shared/Components/CMCS/utils.d.ts +17 -0
  27. package/dist/Shared/Components/CMCS/validations.d.ts +3 -0
  28. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +5 -0
  29. package/dist/Shared/Components/ConfirmationModal/types.d.ts +4 -0
  30. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +1 -0
  31. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -0
  32. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
  33. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +4 -0
  34. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +3 -0
  35. package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +3 -0
  36. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +2 -0
  37. package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +7 -0
  38. package/dist/Shared/Components/FloatingVariablesSuggestions/index.d.ts +1 -0
  39. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +2 -0
  40. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +39 -0
  41. package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityCard.d.ts +1 -1
  42. package/dist/Shared/Components/Security/SecurityDetailsCards/types.d.ts +2 -1
  43. package/dist/Shared/Components/Security/utils.d.ts +3 -0
  44. package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +3 -0
  45. package/dist/Shared/Components/ToggleResolveScopedVariables/index.d.ts +1 -0
  46. package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +10 -0
  47. package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +2 -0
  48. package/dist/Shared/Components/UnsavedChanges/index.d.ts +1 -0
  49. package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +3 -0
  50. package/dist/Shared/Components/UnsavedChangesDialog/index.d.ts +1 -0
  51. package/dist/Shared/Components/UnsavedChangesDialog/types.d.ts +5 -0
  52. package/dist/Shared/Components/index.d.ts +5 -0
  53. package/dist/Shared/Hooks/useForm/useForm.d.ts +7 -2
  54. package/dist/Shared/Services/app.types.d.ts +72 -1
  55. package/dist/Shared/Services/index.d.ts +1 -0
  56. package/dist/Shared/validations.d.ts +4 -0
  57. package/dist/assets/@code-editor.css +1 -1
  58. package/dist/assets/ic-view-variable-toggle.93c3599f.svg +19 -0
  59. package/dist/index.js +717 -680
  60. package/package.json +3 -3
  61. package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +0 -24
@@ -23,6 +23,11 @@ export declare const PATTERNS: {
23
23
  ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
24
24
  ESCAPED_CHARACTERS: RegExp;
25
25
  NUMBERS_WITH_SCOPE_VARIABLES: RegExp;
26
+ ALL_DIGITS_BETWEEN_0_AND_7: RegExp;
27
+ CONFIG_MAP_AND_SECRET_MULTIPLE_KEYS: RegExp;
28
+ CONFIG_MAP_AND_SECRET_KEY: RegExp;
29
+ CONFIGMAP_AND_SECRET_NAME: RegExp;
30
+ ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
26
31
  };
27
32
  export declare const URLS: {
28
33
  LOGIN_SSO: string;
@@ -108,6 +113,7 @@ export declare const ROUTES: {
108
113
  FILE_UPLOAD: string;
109
114
  PLUGIN_GLOBAL_VARIABLES: string;
110
115
  CONFIG_COMPARE_SECRET: string;
116
+ SCOPED_GLOBAL_VARIABLES: string;
111
117
  CD_TRIGGER_POST: string;
112
118
  DELETE_RESOURCE: string;
113
119
  NODE_CAPACITY: string;
@@ -0,0 +1,3 @@
1
+ import { BuildInfraUtilityContextType } from '../../index';
2
+ export declare const BuildInfraUtilityContext: import('react').Context<BuildInfraUtilityContextType>;
3
+ export declare const useBuildInfraUtilityContext: () => BuildInfraUtilityContextType;
@@ -1,3 +1,3 @@
1
1
  import { BuildInfraDescriptorProps } from './types';
2
- declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, tooltipNode, }: BuildInfraDescriptorProps) => JSX.Element;
2
+ declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, tooltipNode, tooltipHeading, }: BuildInfraDescriptorProps) => JSX.Element;
3
3
  export default Descriptor;
@@ -1,5 +1,6 @@
1
1
  import { UseBreadcrumbProps } from '@Common/BreadCrumb/Types';
2
- import { BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraLocators, BuildInfraMetaConfigTypes, ProfileInputErrorType, HandleProfileInputChangeType, BuildInfraAPIVersionType, TargetPlatformErrorFields, ValidateRequestLimitType, RequestLimitConfigType, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType } from './types';
2
+ import { CMSecretComponentType } from '../../../Shared/index';
3
+ import { BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraLocators, BuildInfraMetaConfigTypes, ProfileInputErrorType, HandleProfileInputChangeType, BuildInfraAPIVersionType, TargetPlatformErrorFields, ValidateRequestLimitType, RequestLimitConfigType, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType, BuildInfraInheritActionsOnSubValues, InfraConfigWithSubValues } from './types';
3
4
  export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
4
5
  readonly STEP: "any";
5
6
  readonly MIN: 0;
@@ -59,4 +60,9 @@ export declare const ACTION_TO_PERSISTED_VALUE_MAP: Readonly<Record<RequestLimit
59
60
  export declare const DEFAULT_TOLERANCE_EFFECT = BuildInfraToleranceEffectType.NO_SCHEDULE;
60
61
  export declare const DEFAULT_TOLERANCE_OPERATOR = BuildInfraToleranceOperatorType.EQUALS;
61
62
  export declare const INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X: Partial<Record<BuildInfraConfigTypes, true>>;
63
+ export declare const INFRA_CONFIG_CONTAINING_SUB_VALUES: Record<InfraConfigWithSubValues, true>;
64
+ export declare const INFRA_CONFIG_TO_CM_SECRET_COMPONENT_TYPE_MAP: Partial<Record<BuildInfraConfigTypes, CMSecretComponentType>>;
65
+ export declare const CM_SECRET_COMPONENT_TYPE_TO_INFRA_CONFIG_MAP: Partial<Record<CMSecretComponentType, InfraConfigWithSubValues>>;
66
+ export declare const CM_SECRET_COMPONENT_TYPE_TO_LOCATOR_MAP: Partial<Record<CMSecretComponentType, BuildInfraLocators.CONFIG_MAP | BuildInfraLocators.SECRET>>;
62
67
  export declare const USE_BUILD_X_DRIVER_FALLBACK = true;
68
+ export declare const BUILD_INFRA_SUB_VALUES_INHERIT_ACTIONS: Record<BuildInfraInheritActionsOnSubValues, true>;
@@ -5,6 +5,7 @@ export { default as BuildInfraProfileNameField } from './BuildInfraProfileNameFi
5
5
  export { default as BuildInfraProfileDescriptionField } from './BuildInfraDescriptionField';
6
6
  export { default as BuildInfraFormAction } from './BuildInfraFormAction';
7
7
  export { default as useBuildInfraForm } from './UseBuildInfraForm';
8
+ export * from './BuildInfraUtilityContext';
8
9
  export * from './services';
9
10
  export * from './utils';
10
11
  export * from './types';
@@ -1,3 +1,5 @@
1
+ import { BuildInfraPayloadType } from '../../index';
1
2
  import { BuildInfraProfileResponseType, GetBuildInfraProfileType, UpsertBuildInfraProfileServiceParamsType } from './types';
2
3
  export declare const getBuildInfraProfileByName: ({ name, fromCreateView, canConfigureUseK8sDriver, }: GetBuildInfraProfileType) => Promise<BuildInfraProfileResponseType>;
4
+ export declare const createBuildInfraProfileService: (payload: BuildInfraPayloadType) => Promise<import('../../../Common').ResponseType<Promise<import('../../../Common').ResponseType<unknown>>>>;
3
5
  export declare const upsertBuildInfraProfile: ({ name, profileInput, canConfigureUseK8sDriver, }: UpsertBuildInfraProfileServiceParamsType) => Promise<import('../../../Common').ResponseType<Promise<import('../../../Common').ResponseType<unknown>>>>;
@@ -1,7 +1,7 @@
1
- import { FormEvent, FunctionComponent, ReactNode } from 'react';
1
+ import { FormEvent, FunctionComponent, ReactNode, SyntheticEvent } from 'react';
2
2
  import { BUILD_INFRA_INHERIT_ACTIONS, useBuildInfraForm } from '../../index';
3
3
  import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
4
- import { ValidationResponseType } from '../../../Shared';
4
+ import { CMSecretComponentType, CMSecretConfigData, CMSecretPayloadType, ConfigMapSecretUseFormProps, getUniqueId, useForm, ValidationResponseType } from '../../../Shared';
5
5
  import { ServerErrors } from '../../../Common';
6
6
  /**
7
7
  * Unique actions that will be dispatched and,
@@ -14,7 +14,9 @@ export declare enum BuildInfraConfigTypes {
14
14
  MEMORY_REQUEST = "memory_request",
15
15
  BUILD_TIMEOUT = "timeout",
16
16
  NODE_SELECTOR = "node_selector",
17
- TOLERANCE = "tolerations"
17
+ TOLERANCE = "tolerations",
18
+ CONFIG_MAP = "cm",
19
+ SECRET = "cs"
18
20
  }
19
21
  /**
20
22
  * Combination of BuildInfraConfigTypes and BuildInfraMetaConfigTypes is going to derive error state and actions(actions will also be derived with BuildInfraInheritActions)
@@ -31,7 +33,9 @@ export declare enum BuildInfraLocators {
31
33
  MEMORY = "memory",
32
34
  BUILD_TIMEOUT = "timeout",
33
35
  NODE_SELECTOR = "node selector",
34
- TOLERANCE = "tolerance"
36
+ TOLERANCE = "tolerance",
37
+ CONFIG_MAP = "cm",
38
+ SECRET = "cs"
35
39
  }
36
40
  export type BuildInfraInheritActions = keyof typeof BUILD_INFRA_INHERIT_ACTIONS;
37
41
  export declare enum BuildInfraProfileVariants {
@@ -52,6 +56,7 @@ export interface BuildInfraDescriptorProps {
52
56
  tippyInfoText?: string;
53
57
  tippyAdditionalContent?: ReactNode;
54
58
  tooltipNode?: ReactNode;
59
+ tooltipHeading?: string;
55
60
  }
56
61
  export type NumericBuildInfraConfigTypes = Extract<BuildInfraConfigTypes, BuildInfraConfigTypes.BUILD_TIMEOUT | BuildInfraConfigTypes.CPU_LIMIT | BuildInfraConfigTypes.CPU_REQUEST | BuildInfraConfigTypes.MEMORY_LIMIT | BuildInfraConfigTypes.MEMORY_REQUEST>;
57
62
  export interface BuildInfraActionType {
@@ -128,20 +133,38 @@ export type BuildInfraToleranceValueType = {
128
133
  operator: BuildInfraToleranceOperatorType.EXISTS;
129
134
  value?: never;
130
135
  });
131
- export type BuildInfraConfigValuesType = {
132
- key: NumericBuildInfraConfigTypes;
133
- value: number;
134
- unit: ConfigurationUnitType['name'];
135
- } | {
136
- key: BuildInfraConfigTypes.NODE_SELECTOR;
137
- value: BuildInfraNodeSelectorValueType[];
138
- unit?: never;
139
- } | {
140
- key: BuildInfraConfigTypes.TOLERANCE;
141
- value: BuildInfraToleranceValueType[];
142
- unit?: never;
136
+ export type InfraConfigWithSubValues = Extract<BuildInfraConfigTypes, BuildInfraConfigTypes.CONFIG_MAP | BuildInfraConfigTypes.SECRET>;
137
+ type BuildInfraConfigTypeFormat<Key, Value, Unit> = {
138
+ key: Key;
139
+ value: Value;
140
+ } & ([Unit] extends [never] ? {
141
+ unit?: Unit;
142
+ } : {
143
+ unit: Unit;
144
+ });
145
+ type NumericBuildInfraConfigValueDTO = BuildInfraConfigTypeFormat<NumericBuildInfraConfigTypes, number, ConfigurationUnitType['name']>;
146
+ type NodeSelectorConfigDTO = BuildInfraConfigTypeFormat<BuildInfraConfigTypes.NODE_SELECTOR, BuildInfraNodeSelectorValueType[], never>;
147
+ type ToleranceConfigDTO = BuildInfraConfigTypeFormat<BuildInfraConfigTypes.TOLERANCE, BuildInfraToleranceValueType[], never>;
148
+ type BuildInfraCMCSConfigDTO = BuildInfraConfigTypeFormat<InfraConfigWithSubValues, CMSecretConfigData[], never>;
149
+ export type BuildInfraCMCSValueType = {
150
+ useFormProps: ConfigMapSecretUseFormProps;
151
+ id: ReturnType<typeof getUniqueId>;
152
+ isOverridden: boolean;
153
+ canOverride: boolean;
154
+ defaultValue: ConfigMapSecretUseFormProps | null;
155
+ defaultValueInitialResponse: CMSecretConfigData;
156
+ initialResponse: CMSecretConfigData;
143
157
  };
144
- interface BuildInfraProfileConfigBase {
158
+ export interface BuildInfraCMCSConfigType extends Pick<BuildInfraCMCSConfigDTO, 'key' | 'unit'> {
159
+ value: BuildInfraCMCSValueType[];
160
+ }
161
+ interface BuildInfraCMCSPayloadConfigType extends Pick<BuildInfraCMCSConfigDTO, 'key' | 'unit'> {
162
+ value: CMSecretPayloadType[];
163
+ }
164
+ export type BuildInfraConfigDTO = NumericBuildInfraConfigValueDTO | NodeSelectorConfigDTO | ToleranceConfigDTO | BuildInfraCMCSConfigDTO;
165
+ export type BuildInfraConfigValuesType = NumericBuildInfraConfigValueDTO | NodeSelectorConfigDTO | ToleranceConfigDTO | BuildInfraCMCSConfigType;
166
+ export type BuildInfraConfigPayloadType = NumericBuildInfraConfigValueDTO | NodeSelectorConfigDTO | ToleranceConfigDTO | BuildInfraCMCSPayloadConfigType;
167
+ export interface BuildInfraProfileConfigBase {
145
168
  id?: number;
146
169
  /**
147
170
  * This key holds value when we are inheriting values from other profiles in case of listing
@@ -151,21 +174,8 @@ interface BuildInfraProfileConfigBase {
151
174
  targetPlatform: string;
152
175
  }
153
176
  export type BuildInfraConfigInfoType = BuildInfraConfigValuesType & BuildInfraProfileConfigBase;
154
- export type BuildInfraConfigurationDTO = BuildInfraConfigValuesType & Omit<BuildInfraProfileConfigBase, 'targetPlatform'>;
155
- /**
156
- * Maps target platform to its configuration values
157
- */
158
- export type BuildInfraPlatformConfigurationMapDTO = Record<string, BuildInfraConfigurationDTO[]>;
159
- export type BuildInfraConfigurationType = BuildInfraConfigInfoType & {
160
- /**
161
- * Used to display values in case of inheriting data
162
- */
163
- defaultValue: BuildInfraConfigValuesType;
164
- };
165
- export type BuildInfraConfigurationMapTypeWithoutDefaultFallback = {
166
- [key in BuildInfraConfigTypes]?: BuildInfraConfigInfoType;
167
- };
168
- export type BuildInfraConfigurationMapType = Record<BuildInfraConfigTypes, BuildInfraConfigurationType>;
177
+ export type BuildInfraConfigurationDTO = BuildInfraConfigDTO & Omit<BuildInfraProfileConfigBase, 'targetPlatform'>;
178
+ export type BuildInfraConfigurationItemPayloadType = Omit<BuildInfraProfileConfigBase, 'targetPlatform'> & BuildInfraConfigPayloadType;
169
179
  export declare enum BuildXDriverType {
170
180
  KUBERNETES = "kubernetes",
171
181
  DOCKER_CONTAINER = "docker-container"
@@ -182,6 +192,24 @@ interface BuildInfraProfileBaseDTO {
182
192
  */
183
193
  buildxDriverType?: BuildXDriverType;
184
194
  }
195
+ export interface BuildInfraPayloadType extends BuildInfraProfileBaseDTO {
196
+ configurations: Record<string, BuildInfraConfigurationItemPayloadType[]>;
197
+ }
198
+ /**
199
+ * Maps target platform to its configuration values
200
+ */
201
+ export type BuildInfraPlatformConfigurationMapDTO = Record<string, BuildInfraConfigurationDTO[]>;
202
+ export type BuildInfraConfigurationType = BuildInfraConfigInfoType & {
203
+ /**
204
+ * Used to display values in case of inheriting data
205
+ * This will be null in case of CM/CS
206
+ */
207
+ defaultValue: BuildInfraConfigValuesType;
208
+ };
209
+ export type BuildInfraConfigurationMapTypeWithoutDefaultFallback = {
210
+ [key in BuildInfraConfigTypes]?: BuildInfraConfigInfoType;
211
+ };
212
+ export type BuildInfraConfigurationMapType = Record<BuildInfraConfigTypes, BuildInfraConfigurationType>;
185
213
  export interface BuildInfraProfileBase extends Omit<BuildInfraProfileBaseDTO, 'buildxDriverType'> {
186
214
  useK8sDriver?: boolean;
187
215
  }
@@ -237,11 +265,12 @@ export declare enum ToleranceHeaderType {
237
265
  VALUE = "VALUE",
238
266
  EFFECT = "EFFECT"
239
267
  }
268
+ export type BuildInfraCMCSErrorType = Record<InfraConfigWithSubValues, Record<BuildInfraCMCSValueType['id'], boolean>>;
240
269
  /**
241
270
  * Would be maintaining error state for name and description irrespective of platform
242
271
  * For error states related to platform, we would not be letting user to switch platform if there are errors
243
272
  */
244
- export type ProfileInputErrorType = Record<NumericBuildInfraConfigTypes | BuildInfraMetaConfigTypes | BuildInfraProfileAdditionalErrorKeysType.TARGET_PLATFORM, string> & Record<BuildInfraConfigTypes.NODE_SELECTOR, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<NodeSelectorHeaderType, string[]>>>> & Record<BuildInfraConfigTypes.TOLERANCE, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<ToleranceHeaderType, string[]>>>>;
273
+ export type ProfileInputErrorType = Record<NumericBuildInfraConfigTypes | BuildInfraMetaConfigTypes | BuildInfraProfileAdditionalErrorKeysType.TARGET_PLATFORM, string> & Record<BuildInfraConfigTypes.NODE_SELECTOR, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<NodeSelectorHeaderType, string[]>>>> & Record<BuildInfraConfigTypes.TOLERANCE, Record<BuildInfraNodeSelectorValueType['id'], Partial<Record<ToleranceHeaderType, string[]>>>> & BuildInfraCMCSErrorType;
245
274
  export type TargetPlatformErrorFields = BuildInfraConfigTypes | BuildInfraProfileAdditionalErrorKeysType;
246
275
  export interface ProfileInputDispatchDataType {
247
276
  targetPlatform: string;
@@ -252,7 +281,6 @@ interface NumericBuildInfraConfigPayloadType {
252
281
  }
253
282
  export declare enum BuildInfraProfileInputActionType {
254
283
  ADD_TARGET_PLATFORM = "add_target_platform",
255
- TOGGLE_USE_K8S_DRIVER = "toggle_use_k8s_driver",
256
284
  REMOVE_TARGET_PLATFORM = "remove_target_platform",
257
285
  RENAME_TARGET_PLATFORM = "rename_target_platform",
258
286
  RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot",
@@ -261,12 +289,13 @@ export declare enum BuildInfraProfileInputActionType {
261
289
  EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item",
262
290
  DELETE_TOLERANCE_ITEM = "delete_tolerance_item",
263
291
  ADD_TOLERANCE_ITEM = "add_tolerance_item",
264
- EDIT_TOLERANCE_ITEM = "edit_tolerance_item"
292
+ EDIT_TOLERANCE_ITEM = "edit_tolerance_item",
293
+ ADD_CM_CS_ITEM = "add_cm_cs_item",
294
+ SYNC_CM_CS_ITEM = "sync_cm_cs_item",
295
+ DELETE_CM_CS_ITEM = "delete_cm_cs_item"
265
296
  }
297
+ export type BuildInfraInheritActionsOnSubValues = Extract<BuildInfraInheritActions, `activate_${BuildInfraLocators.CONFIG_MAP}` | `de_activate_${BuildInfraLocators.CONFIG_MAP}` | `activate_${BuildInfraLocators.SECRET}` | `de_activate_${BuildInfraLocators.SECRET}`>;
266
298
  export type HandleProfileInputChangeType = {
267
- action: BuildInfraProfileInputActionType.TOGGLE_USE_K8S_DRIVER;
268
- data?: never;
269
- } | {
270
299
  action: NumericBuildInfraConfigTypes;
271
300
  data: ProfileInputDispatchDataType & NumericBuildInfraConfigPayloadType;
272
301
  } | {
@@ -275,8 +304,14 @@ export type HandleProfileInputChangeType = {
275
304
  value: string;
276
305
  };
277
306
  } | {
278
- action: BuildInfraInheritActions | BuildInfraProfileInputActionType.ADD_TARGET_PLATFORM | BuildInfraProfileInputActionType.REMOVE_TARGET_PLATFORM;
307
+ action: Exclude<BuildInfraInheritActions, BuildInfraInheritActionsOnSubValues> | BuildInfraProfileInputActionType.ADD_TARGET_PLATFORM | BuildInfraProfileInputActionType.REMOVE_TARGET_PLATFORM;
279
308
  data: ProfileInputDispatchDataType;
309
+ } | {
310
+ action: BuildInfraInheritActionsOnSubValues;
311
+ data: ProfileInputDispatchDataType & {
312
+ componentType: CMSecretComponentType;
313
+ id: string;
314
+ };
280
315
  } | {
281
316
  action: BuildInfraProfileInputActionType.RENAME_TARGET_PLATFORM;
282
317
  data: {
@@ -307,6 +342,24 @@ export type HandleProfileInputChangeType = {
307
342
  } | {
308
343
  action: BuildInfraProfileInputActionType.EDIT_TOLERANCE_ITEM;
309
344
  data: ProfileInputDispatchDataType & Pick<BuildInfraToleranceValueType, 'id' | 'key' | 'value' | 'effect' | 'operator'>;
345
+ } | {
346
+ action: BuildInfraProfileInputActionType.ADD_CM_CS_ITEM;
347
+ data: ProfileInputDispatchDataType & Pick<BuildInfraCMCSValueType, 'id'> & {
348
+ infraConfigType: InfraConfigWithSubValues;
349
+ };
350
+ } | {
351
+ action: BuildInfraProfileInputActionType.SYNC_CM_CS_ITEM;
352
+ data: ProfileInputDispatchDataType & {
353
+ id: BuildInfraCMCSValueType['id'];
354
+ value: ConfigMapSecretUseFormProps;
355
+ hasError: boolean;
356
+ componentType: CMSecretComponentType;
357
+ };
358
+ } | {
359
+ action: BuildInfraProfileInputActionType.DELETE_CM_CS_ITEM;
360
+ data: ProfileInputDispatchDataType & Pick<BuildInfraCMCSValueType, 'id'> & {
361
+ componentType: CMSecretComponentType;
362
+ };
310
363
  };
311
364
  export interface UseBuildInfraFormResponseType {
312
365
  isLoading: boolean;
@@ -324,7 +377,7 @@ export interface BuildInfraConfigFormProps extends Pick<UseBuildInfraFormRespons
324
377
  unitsMap?: BuildInfraProfileResponseType['configurationUnits'];
325
378
  configurationContainerLabel?: ReactNode;
326
379
  }
327
- export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, 'marker' | 'heading'>, Partial<Pick<BuildInfraProfileConfigBase, 'targetPlatform'>>, Pick<BuildInfraConfigFormProps, 'isGlobalProfile'> {
380
+ export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, 'marker' | 'heading'> {
328
381
  children?: ReactNode;
329
382
  /**
330
383
  * If true, means profile is inheriting values from other profile (e.g, default)
@@ -334,11 +387,6 @@ export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, '
334
387
  * Would be false for last item
335
388
  */
336
389
  showDivider?: boolean;
337
- /**
338
- * Would be used to dispatch inherit actions (activate_cpu, de_activate_cpu, etc)
339
- */
340
- handleProfileInputChange: UseBuildInfraFormResponseType['handleProfileInputChange'];
341
- locator: BuildInfraFormFieldType['locator'];
342
390
  }
343
391
  export interface ValidateRequestLimitType {
344
392
  request: NumericBuildInfraConfigPayloadType;
@@ -349,7 +397,7 @@ export interface ValidateRequestLimitResponseType {
349
397
  request: ValidationResponseType;
350
398
  limit: ValidationResponseType;
351
399
  }
352
- export interface BuildInfraFormActionProps extends BuildInfraActionType, Pick<BuildInfraFormItemProps, 'targetPlatform'> {
400
+ export interface BuildInfraFormActionProps extends BuildInfraActionType {
353
401
  handleProfileInputChange: UseBuildInfraFormResponseType['handleProfileInputChange'];
354
402
  currentValue: number;
355
403
  error?: string;
@@ -364,6 +412,7 @@ export interface BuildInfraFormActionProps extends BuildInfraActionType, Pick<Bu
364
412
  * @default false
365
413
  */
366
414
  autoFocus?: boolean;
415
+ targetPlatform?: string;
367
416
  }
368
417
  export interface FooterProps {
369
418
  /**
@@ -390,9 +439,15 @@ export interface BuildInfraInputFieldComponentProps {
390
439
  currentValue: BuildInfraConfigValuesType['value'];
391
440
  error?: string;
392
441
  }
393
- export interface BuildInfraProfileMetaFieldProps extends Pick<BuildInfraInputFieldComponentProps, 'error' | 'handleProfileInputChange'> {
442
+ export type BuildInfraProfileMetaFieldProps = Pick<BuildInfraInputFieldComponentProps, 'error'> & {
394
443
  currentValue: string;
395
- }
444
+ } & ({
445
+ handleProfileInputChange: BuildInfraInputFieldComponentProps['handleProfileInputChange'];
446
+ onChange?: never;
447
+ } | {
448
+ onChange: (e: SyntheticEvent) => void;
449
+ handleProfileInputChange?: never;
450
+ });
396
451
  export interface InheritingHeaderProps extends Pick<BuildInfraConfigFormProps, 'isGlobalProfile'> {
397
452
  defaultHeading: BuildInfraFormFieldType['heading'];
398
453
  inheritingData: BuildInfraConfigValuesType[];
@@ -406,9 +461,6 @@ interface BaseBuildInfraProfileDTO {
406
461
  defaultConfigurations: BuildInfraPlatformConfigurationMapDTO;
407
462
  configurationUnits: BuildInfraUnitsMapType;
408
463
  }
409
- export interface BuildInfraListResponseType extends BaseBuildInfraProfileDTO {
410
- profiles: BuildInfraProfileInfoDTO[];
411
- }
412
464
  export interface BuildInfraProfileDTO extends BaseBuildInfraProfileDTO {
413
465
  profile: BuildInfraProfileInfoDTO;
414
466
  }
@@ -418,6 +470,10 @@ export interface GetPlatformConfigurationsWithDefaultValuesParamsType {
418
470
  profileConfigurationsMap: BuildInfraConfigurationMapTypeWithoutDefaultFallback;
419
471
  defaultConfigurationsMap: BuildInfraConfigurationMapTypeWithoutDefaultFallback;
420
472
  platformName: string;
473
+ /**
474
+ * @default false
475
+ */
476
+ isDefaultProfile?: boolean;
421
477
  }
422
478
  export declare enum BuildInfraAPIVersionType {
423
479
  ALPHA1 = "alpha1"
@@ -427,6 +483,14 @@ export interface ValidateNodeSelectorParamsType extends Pick<ReturnType<typeof u
427
483
  selector: BuildInfraNodeSelectorValueType;
428
484
  existingKeys: string[];
429
485
  }
486
+ export interface BuildInfraCMCSFormProps {
487
+ parsedData: BuildInfraCMCSValueType;
488
+ useFormProps: ReturnType<typeof useForm<ConfigMapSecretUseFormProps>>;
489
+ componentType: CMSecretComponentType;
490
+ }
491
+ export interface BuildInfraUtilityContextType {
492
+ BuildInfraCMCSForm: FunctionComponent<BuildInfraCMCSFormProps>;
493
+ }
430
494
  export interface GetBaseProfileObjectParamsType extends Pick<BuildInfraProfileTransformerParamsType, 'canConfigureUseK8sDriver' | 'fromCreateView' | 'profile'> {
431
495
  }
432
496
  export {};
@@ -1,7 +1,10 @@
1
- import { BuildInfraConfigValuesType, BuildInfraInheritActions, BuildInfraLocators, BuildInfraProfileInfoDTO, BuildInfraProfileResponseType, BuildInfraProfileTransformerParamsType, BuildXDriverType, CreateBuildInfraProfileType } from './types';
1
+ import { BuildInfraPayloadType, InfraConfigWithSubValues } from '../../index';
2
+ import { BuildInfraConfigTypes, BuildInfraConfigValuesType, BuildInfraInheritActions, BuildInfraLocators, BuildInfraProfileResponseType, BuildInfraProfileTransformerParamsType, BuildXDriverType, CreateBuildInfraProfileType } from './types';
2
3
  export declare const parsePlatformConfigIntoValue: (configuration: BuildInfraConfigValuesType, addUniqueId?: boolean) => BuildInfraConfigValuesType;
3
4
  export declare const getParsedValueForUseK8sDriver: (buildxDriverType: BuildXDriverType) => boolean;
5
+ export declare const getDoesInfraConfigContainsSubValue: (infraConfig: BuildInfraConfigTypes) => infraConfig is InfraConfigWithSubValues;
4
6
  export declare const getTransformedBuildInfraProfileResponse: ({ configurationUnits, defaultConfigurations, profile, fromCreateView, canConfigureUseK8sDriver, }: BuildInfraProfileTransformerParamsType) => BuildInfraProfileResponseType;
5
- export declare const getBuildInfraProfilePayload: (profileInput: CreateBuildInfraProfileType["profileInput"], canConfigureUseK8sDriver: boolean) => BuildInfraProfileInfoDTO;
7
+ export declare const getBuildxDriverTypeFromUseK8sDriver: (useK8sDriver: boolean) => BuildXDriverType;
8
+ export declare const getBuildInfraProfilePayload: (profileInput: CreateBuildInfraProfileType["profileInput"], canConfigureUseK8sDriver: boolean) => BuildInfraPayloadType;
6
9
  export declare const getBuildInfraProfileEndpoint: () => string;
7
10
  export declare const getBuildInfraInheritActionFromLocator: (locator: BuildInfraLocators, activateLocator: boolean) => BuildInfraInheritActions;
@@ -0,0 +1,11 @@
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,2 +1,2 @@
1
1
  import { DeploymentHistoryDiffDetailedProps } from './types';
2
- export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments: initialPipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, triggerHistory: initialTriggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments: initialPipelineDeployments, wfrId, urlFilters, convertVariables, setConvertVariables, triggerHistory: initialTriggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DeploymentTemplateHistoryType } from '../types';
2
- declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName, sortingConfig, codeEditorKey, }: DeploymentTemplateHistoryType) => JSX.Element;
2
+ declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName, codeEditorKey, }: DeploymentTemplateHistoryType) => JSX.Element;
3
3
  export default DeploymentHistoryDiffView;
@@ -1,7 +1,11 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
3
3
  import { EnvResourceType } from '../../../Services';
4
+ import { UseUrlFiltersReturnType } from '../../../../Common/Hooks';
4
5
  import { History, HistoryLogsProps } from '../types';
6
+ export interface DeploymentHistoryConfigDiffQueryParams {
7
+ compareWfrId: number;
8
+ }
5
9
  export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
6
10
  appName: string;
7
11
  envName: string;
@@ -12,14 +16,11 @@ export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryL
12
16
  }
13
17
  export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList' | 'hideDiffState'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'triggerHistory'>> & {
14
18
  pipelineDeployments: History[];
15
- previousWfrId: number;
16
19
  convertVariables: boolean;
17
20
  setConvertVariables: Dispatch<SetStateAction<boolean>>;
18
21
  isCompareDeploymentConfigNotAvailable?: boolean;
22
+ urlFilters: UseUrlFiltersReturnType<string, DeploymentHistoryConfigDiffQueryParams>;
19
23
  };
20
- export interface DeploymentHistoryConfigDiffQueryParams {
21
- compareWfrId: number;
22
- }
23
24
  export interface DeploymentHistoryConfigDiffRouteParams {
24
25
  appId: string;
25
26
  envId: string;
@@ -1,6 +1,6 @@
1
1
  import { CSSProperties, ReactElement } from 'react';
2
2
  import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
3
- import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
3
+ import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
4
4
  import { DeploymentStageType } from '../../constants';
5
5
  import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
6
6
  export declare enum HistoryComponentType {
@@ -392,10 +392,6 @@ export interface DeploymentTemplateHistoryType {
392
392
  previousConfigAvailable: boolean;
393
393
  rootClassName?: string;
394
394
  codeEditorKey?: React.Key;
395
- sortingConfig?: {
396
- sortBy: string;
397
- sortOrder: SortingOrder;
398
- };
399
395
  }
400
396
  export interface DeploymentHistoryDetailRes extends ResponseType {
401
397
  result?: DeploymentHistoryDetail;
@@ -0,0 +1,3 @@
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;
@@ -0,0 +1,23 @@
1
+ import { CMSecretYamlData } from '../../Services';
2
+ import { ConfigMapSecretDataTypeOptionType } from './types';
3
+ export declare const CONFIG_MAP_SECRET_YAML_PARSE_ERROR = "Could not parse to 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
+ };
@@ -0,0 +1 @@
1
+ export declare const renderHashiOrAwsDeprecatedInfo: () => JSX.Element;
@@ -0,0 +1,6 @@
1
+ export { default as ConfigMapSecretReadyOnly } from './ConfigMapSecretReadyOnly';
2
+ export * from './validations';
3
+ export * from './helpers';
4
+ export * from './types';
5
+ export * from './utils';
6
+ export * from './constants';
@@ -0,0 +1,24 @@
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>;
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,3 @@
1
+ import { ConfigMapSecretUseFormProps } from '../../Services';
2
+ import { UseFormValidations } from '../../Hooks';
3
+ export declare const getConfigMapSecretFormValidations: UseFormValidations<ConfigMapSecretUseFormProps>;
@@ -37,6 +37,11 @@ export type CollapsibleListItem<TabType extends TabOptions = 'navLink'> = Condit
37
37
  * If true, the title will be rendered with line-through.
38
38
  */
39
39
  strikeThrough?: boolean;
40
+ /**
41
+ * To be used as key for the list item.
42
+ * If not given title will be used as key.
43
+ */
44
+ id?: string | number;
40
45
  /**
41
46
  * Configuration for the icon.
42
47
  */
@@ -45,6 +45,10 @@ type ButtonConfigAndVariantType<isConfig extends boolean> = {
45
45
  export type ConfirmationModalProps<isConfig extends boolean = false> = {
46
46
  title: string;
47
47
  subtitle: ReactNode;
48
+ /**
49
+ * @default true
50
+ */
51
+ shouldCloseOnEscape?: boolean;
48
52
  } & ButtonConfigAndVariantType<isConfig> & CustomInputConfigOrChildrenType & (isConfig extends false ? {
49
53
  handleClose: (e?: SyntheticEvent) => void;
50
54
  showConfirmationModal: boolean;
@@ -4,3 +4,4 @@ export declare const diffStateTextMap: Record<DeploymentConfigDiffState, string>
4
4
  export declare const diffStateIconMap: Record<DeploymentConfigDiffState, FunctionComponent<SVGProps<SVGSVGElement>>>;
5
5
  export declare const diffStateTooltipTextMap: Record<DeploymentConfigDiffState, string>;
6
6
  export declare const diffStateTextColorMap: Record<DeploymentConfigDiffState, `c${string}`>;
7
+ export declare const DEPLOYMENT_CONFIG_DIFF_SORT_KEY = "sort-config";
@@ -103,11 +103,13 @@ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView e
103
103
  compareList: ManifestTemplateDTO;
104
104
  compareToTemplateOptions?: never;
105
105
  compareWithTemplateOptions?: never;
106
+ sortingConfig?: never;
106
107
  } : {
107
108
  currentList: AppEnvDeploymentConfigDTO;
108
109
  compareList: AppEnvDeploymentConfigDTO;
109
110
  compareToTemplateOptions?: TemplateListDTO[];
110
111
  compareWithTemplateOptions?: TemplateListDTO[];
112
+ sortingConfig?: Pick<DeploymentConfigDiffProps['sortingConfig'], 'sortBy' | 'sortOrder'>;
111
113
  }) & {
112
114
  getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
113
115
  isManifestView?: IsManifestView;
@@ -29,7 +29,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
29
29
  *
30
30
  * @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
31
31
  */
32
- export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
32
+ export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, convertVariables, compareToTemplateOptions, compareWithTemplateOptions, sortingConfig, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
33
33
  configList: DeploymentConfigDiffProps["configList"];
34
34
  navList: DeploymentConfigDiffProps["navList"];
35
35
  collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,3 @@
1
+ import { SuggestionsItemProps } from './types';
2
+ declare const SuggestionItem: ({ variableName, description, variableValue, isRedacted, highlightText, showValueOnHover, }: SuggestionsItemProps) => JSX.Element;
3
+ export default SuggestionItem;
@@ -0,0 +1,3 @@
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;