@devtron-labs/devtron-fe-common-lib 1.7.9 → 1.7.10-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.
- package/dist/{@code-editor-Ddj_R6r2.js → @code-editor-4aM6nD8R.js} +3872 -3971
- package/dist/{@common-rjsf-C-0OHnSy.js → @common-rjsf-sdlkqXQy.js} +1 -1
- package/dist/Common/CodeMirror/Extensions/diffMap.d.ts +8 -0
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +6 -8
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +4 -0
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +520 -521
- package/package.json +1 -1
- package/dist/Shared/Components/KeyValueList/KeyValueList.d.ts +0 -3
- package/dist/Shared/Components/KeyValueList/constants.d.ts +0 -5
- package/dist/Shared/Components/KeyValueList/index.d.ts +0 -2
- package/dist/Shared/Components/KeyValueList/types.d.ts +0 -52
package/package.json
CHANGED
@@ -1,52 +0,0 @@
|
|
1
|
-
export declare enum KeyValueListActionType {
|
2
|
-
ADD = "ADD_KEY_VALUE",
|
3
|
-
DELETE = "DELETE_KEY_VALUE",
|
4
|
-
UPDATE_KEY = "UPDATE",
|
5
|
-
UPDATE_VALUE = "UPDATE_VALUE"
|
6
|
-
}
|
7
|
-
export type KeyValueListType = {
|
8
|
-
key: string;
|
9
|
-
value: string;
|
10
|
-
};
|
11
|
-
export interface KeyValueHandlerDataType {
|
12
|
-
/**
|
13
|
-
* Used to identify the key-value pair.
|
14
|
-
* Optional - only for ADD action else it is mandatory
|
15
|
-
*/
|
16
|
-
index?: number;
|
17
|
-
value?: string;
|
18
|
-
}
|
19
|
-
export interface HandleKeyValueChangeType {
|
20
|
-
action: KeyValueListActionType;
|
21
|
-
data?: KeyValueHandlerDataType;
|
22
|
-
}
|
23
|
-
export interface KeyValueListProps {
|
24
|
-
keyValueList: KeyValueListType[];
|
25
|
-
handleKeyValueChange: ({ action, data }: HandleKeyValueChangeType) => void;
|
26
|
-
/**
|
27
|
-
* Would disable adding/deleting/updating parameters
|
28
|
-
*/
|
29
|
-
isDisabled?: boolean;
|
30
|
-
disabledInfo?: string;
|
31
|
-
/**
|
32
|
-
* @default - Add Parameter
|
33
|
-
*/
|
34
|
-
addButtonText?: string;
|
35
|
-
/**
|
36
|
-
* @default - Enter Key
|
37
|
-
*/
|
38
|
-
keyPlaceholder?: string;
|
39
|
-
/**
|
40
|
-
* @default - Enter Value
|
41
|
-
*/
|
42
|
-
valuePlaceholder?: string;
|
43
|
-
/**
|
44
|
-
* to be applied on each item
|
45
|
-
*/
|
46
|
-
itemClassName?: string;
|
47
|
-
}
|
48
|
-
export interface KeyValueItemProps extends Omit<KeyValueListProps, 'addButtonText' | 'keyValueList' | 'disabledInfo'> {
|
49
|
-
itemKey: string;
|
50
|
-
itemValue: string;
|
51
|
-
index: number;
|
52
|
-
}
|