@devtron-labs/devtron-fe-common-lib 1.5.5 → 1.5.6-beta-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.
- package/dist/{@code-editor-CllTU1-0.js → @code-editor-CZEHtHpd.js} +7284 -6095
- package/dist/{@common-rjsf-DGQ1V_AK.js → @common-rjsf-BIgLDvCI.js} +2 -2
- package/dist/{@framer-motion-CdgdF0KV.js → @framer-motion-CtC3e2uC.js} +1 -1
- package/dist/{@react-dates-CtQV2TLr.js → @react-dates-BlBjJ115.js} +31 -31
- package/dist/{@react-select-Cn3OpC9h.js → @react-select-CjYy5-X-.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CVJYfMx0.js → @react-virtualized-sticky-tree-DCAYOwGQ.js} +1 -1
- package/dist/{@vendor-CwAQS8iU.js → @vendor-CB7cq1II.js} +10317 -9365
- package/dist/Common/Constants.d.ts +6 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtilityContext.d.ts +3 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +7 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +120 -51
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +5 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +11 -0
- package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +3 -0
- package/dist/Shared/Components/CMCS/constants.d.ts +23 -0
- package/dist/Shared/Components/CMCS/helpers.d.ts +1 -0
- package/dist/Shared/Components/CMCS/index.d.ts +6 -0
- package/dist/Shared/Components/CMCS/types.d.ts +24 -0
- package/dist/Shared/Components/CMCS/utils.d.ts +17 -0
- package/dist/Shared/Components/CMCS/validations.d.ts +3 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +5 -0
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +4 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +4 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +3 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +3 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +2 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +7 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/index.d.ts +1 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +2 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +39 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +3 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/index.d.ts +1 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +10 -0
- package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +2 -0
- package/dist/Shared/Components/UnsavedChanges/index.d.ts +1 -0
- package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +3 -0
- package/dist/Shared/Components/UnsavedChangesDialog/index.d.ts +1 -0
- package/dist/Shared/Components/UnsavedChangesDialog/types.d.ts +5 -0
- package/dist/Shared/Components/index.d.ts +5 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +7 -2
- package/dist/Shared/Services/app.types.d.ts +72 -1
- package/dist/Shared/Services/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +1 -7
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-view-variable-toggle.93c3599f.svg +19 -0
- package/dist/index.js +723 -689
- package/package.json +3 -3
- 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;
|
@@ -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 {
|
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
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
}
|
136
|
-
|
137
|
-
|
138
|
-
unit
|
139
|
-
}
|
140
|
-
|
141
|
-
|
142
|
-
|
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
|
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 =
|
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,19 @@ export type HandleProfileInputChangeType = {
|
|
275
304
|
value: string;
|
276
305
|
};
|
277
306
|
} | {
|
278
|
-
action:
|
307
|
+
action: BuildInfraProfileInputActionType.ADD_TARGET_PLATFORM;
|
308
|
+
data: ProfileInputDispatchDataType & {
|
309
|
+
handleCaptureSnapshot: (data: BuildInfraProfileData) => void;
|
310
|
+
};
|
311
|
+
} | {
|
312
|
+
action: Exclude<BuildInfraInheritActions, BuildInfraInheritActionsOnSubValues> | BuildInfraProfileInputActionType.REMOVE_TARGET_PLATFORM;
|
279
313
|
data: ProfileInputDispatchDataType;
|
314
|
+
} | {
|
315
|
+
action: BuildInfraInheritActionsOnSubValues;
|
316
|
+
data: ProfileInputDispatchDataType & {
|
317
|
+
componentType: CMSecretComponentType;
|
318
|
+
id: string;
|
319
|
+
};
|
280
320
|
} | {
|
281
321
|
action: BuildInfraProfileInputActionType.RENAME_TARGET_PLATFORM;
|
282
322
|
data: {
|
@@ -307,6 +347,24 @@ export type HandleProfileInputChangeType = {
|
|
307
347
|
} | {
|
308
348
|
action: BuildInfraProfileInputActionType.EDIT_TOLERANCE_ITEM;
|
309
349
|
data: ProfileInputDispatchDataType & Pick<BuildInfraToleranceValueType, 'id' | 'key' | 'value' | 'effect' | 'operator'>;
|
350
|
+
} | {
|
351
|
+
action: BuildInfraProfileInputActionType.ADD_CM_CS_ITEM;
|
352
|
+
data: ProfileInputDispatchDataType & Pick<BuildInfraCMCSValueType, 'id'> & {
|
353
|
+
infraConfigType: InfraConfigWithSubValues;
|
354
|
+
};
|
355
|
+
} | {
|
356
|
+
action: BuildInfraProfileInputActionType.SYNC_CM_CS_ITEM;
|
357
|
+
data: ProfileInputDispatchDataType & {
|
358
|
+
id: BuildInfraCMCSValueType['id'];
|
359
|
+
value: ConfigMapSecretUseFormProps;
|
360
|
+
hasError: boolean;
|
361
|
+
componentType: CMSecretComponentType;
|
362
|
+
};
|
363
|
+
} | {
|
364
|
+
action: BuildInfraProfileInputActionType.DELETE_CM_CS_ITEM;
|
365
|
+
data: ProfileInputDispatchDataType & Pick<BuildInfraCMCSValueType, 'id'> & {
|
366
|
+
componentType: CMSecretComponentType;
|
367
|
+
};
|
310
368
|
};
|
311
369
|
export interface UseBuildInfraFormResponseType {
|
312
370
|
isLoading: boolean;
|
@@ -324,7 +382,7 @@ export interface BuildInfraConfigFormProps extends Pick<UseBuildInfraFormRespons
|
|
324
382
|
unitsMap?: BuildInfraProfileResponseType['configurationUnits'];
|
325
383
|
configurationContainerLabel?: ReactNode;
|
326
384
|
}
|
327
|
-
export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, 'marker' | 'heading'
|
385
|
+
export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, 'marker' | 'heading'> {
|
328
386
|
children?: ReactNode;
|
329
387
|
/**
|
330
388
|
* If true, means profile is inheriting values from other profile (e.g, default)
|
@@ -334,11 +392,6 @@ export interface BuildInfraFormItemProps extends Pick<BuildInfraFormFieldType, '
|
|
334
392
|
* Would be false for last item
|
335
393
|
*/
|
336
394
|
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
395
|
}
|
343
396
|
export interface ValidateRequestLimitType {
|
344
397
|
request: NumericBuildInfraConfigPayloadType;
|
@@ -349,7 +402,7 @@ export interface ValidateRequestLimitResponseType {
|
|
349
402
|
request: ValidationResponseType;
|
350
403
|
limit: ValidationResponseType;
|
351
404
|
}
|
352
|
-
export interface BuildInfraFormActionProps extends BuildInfraActionType
|
405
|
+
export interface BuildInfraFormActionProps extends BuildInfraActionType {
|
353
406
|
handleProfileInputChange: UseBuildInfraFormResponseType['handleProfileInputChange'];
|
354
407
|
currentValue: number;
|
355
408
|
error?: string;
|
@@ -364,6 +417,7 @@ export interface BuildInfraFormActionProps extends BuildInfraActionType, Pick<Bu
|
|
364
417
|
* @default false
|
365
418
|
*/
|
366
419
|
autoFocus?: boolean;
|
420
|
+
targetPlatform?: string;
|
367
421
|
}
|
368
422
|
export interface FooterProps {
|
369
423
|
/**
|
@@ -390,9 +444,15 @@ export interface BuildInfraInputFieldComponentProps {
|
|
390
444
|
currentValue: BuildInfraConfigValuesType['value'];
|
391
445
|
error?: string;
|
392
446
|
}
|
393
|
-
export
|
447
|
+
export type BuildInfraProfileMetaFieldProps = Pick<BuildInfraInputFieldComponentProps, 'error'> & {
|
394
448
|
currentValue: string;
|
395
|
-
}
|
449
|
+
} & ({
|
450
|
+
handleProfileInputChange: BuildInfraInputFieldComponentProps['handleProfileInputChange'];
|
451
|
+
onChange?: never;
|
452
|
+
} | {
|
453
|
+
onChange: (e: SyntheticEvent) => void;
|
454
|
+
handleProfileInputChange?: never;
|
455
|
+
});
|
396
456
|
export interface InheritingHeaderProps extends Pick<BuildInfraConfigFormProps, 'isGlobalProfile'> {
|
397
457
|
defaultHeading: BuildInfraFormFieldType['heading'];
|
398
458
|
inheritingData: BuildInfraConfigValuesType[];
|
@@ -406,9 +466,6 @@ interface BaseBuildInfraProfileDTO {
|
|
406
466
|
defaultConfigurations: BuildInfraPlatformConfigurationMapDTO;
|
407
467
|
configurationUnits: BuildInfraUnitsMapType;
|
408
468
|
}
|
409
|
-
export interface BuildInfraListResponseType extends BaseBuildInfraProfileDTO {
|
410
|
-
profiles: BuildInfraProfileInfoDTO[];
|
411
|
-
}
|
412
469
|
export interface BuildInfraProfileDTO extends BaseBuildInfraProfileDTO {
|
413
470
|
profile: BuildInfraProfileInfoDTO;
|
414
471
|
}
|
@@ -418,6 +475,10 @@ export interface GetPlatformConfigurationsWithDefaultValuesParamsType {
|
|
418
475
|
profileConfigurationsMap: BuildInfraConfigurationMapTypeWithoutDefaultFallback;
|
419
476
|
defaultConfigurationsMap: BuildInfraConfigurationMapTypeWithoutDefaultFallback;
|
420
477
|
platformName: string;
|
478
|
+
/**
|
479
|
+
* @default false
|
480
|
+
*/
|
481
|
+
isDefaultProfile?: boolean;
|
421
482
|
}
|
422
483
|
export declare enum BuildInfraAPIVersionType {
|
423
484
|
ALPHA1 = "alpha1"
|
@@ -427,6 +488,14 @@ export interface ValidateNodeSelectorParamsType extends Pick<ReturnType<typeof u
|
|
427
488
|
selector: BuildInfraNodeSelectorValueType;
|
428
489
|
existingKeys: string[];
|
429
490
|
}
|
491
|
+
export interface BuildInfraCMCSFormProps {
|
492
|
+
parsedData: BuildInfraCMCSValueType;
|
493
|
+
useFormProps: ReturnType<typeof useForm<ConfigMapSecretUseFormProps>>;
|
494
|
+
componentType: CMSecretComponentType;
|
495
|
+
}
|
496
|
+
export interface BuildInfraUtilityContextType {
|
497
|
+
BuildInfraCMCSForm: FunctionComponent<BuildInfraCMCSFormProps>;
|
498
|
+
}
|
430
499
|
export interface GetBaseProfileObjectParamsType extends Pick<BuildInfraProfileTransformerParamsType, 'canConfigureUseK8sDriver' | 'fromCreateView' | 'profile'> {
|
431
500
|
}
|
432
501
|
export {};
|
@@ -1,7 +1,10 @@
|
|
1
|
-
import {
|
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
|
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;
|
@@ -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 = "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
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const renderHashiOrAwsDeprecatedInfo: () => JSX.Element;
|
@@ -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;
|
@@ -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;
|
@@ -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,7 @@
|
|
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?";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as FloatingVariablesSuggestions } from './FloatingVariablesSuggestions';
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { FloatingVariablesSuggestionsProps, ScopedVariableType } from './types';
|
2
|
+
export declare const getScopedVariables: (appId: FloatingVariablesSuggestionsProps["appId"], envId: FloatingVariablesSuggestionsProps["envId"], clusterId: FloatingVariablesSuggestionsProps["clusterId"], hideObjectVariables?: boolean) => Promise<ScopedVariableType[]>;
|
@@ -0,0 +1,39 @@
|
|
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
|
+
}
|
@@ -79,7 +79,7 @@ export declare enum SelectPickerVariantType {
|
|
79
79
|
DEFAULT = "default",
|
80
80
|
BORDER_LESS = "border-less"
|
81
81
|
}
|
82
|
-
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' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & {
|
82
|
+
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' | 'filterOption'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & {
|
83
83
|
/**
|
84
84
|
* Error message for the select
|
85
85
|
*/
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { ToggleResolveScopedVariablesProps } from './types';
|
2
|
+
declare const ToggleResolveScopedVariables: ({ resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip, throttleOnChange, }: ToggleResolveScopedVariablesProps) => JSX.Element;
|
3
|
+
export default ToggleResolveScopedVariables;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as ToggleResolveScopedVariables } from './ToggleResolveScopedVariables.component';
|