@devtron-labs/devtron-fe-common-lib 1.3.12 → 1.4.0-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-Cs4nWw3d.js → @code-editor-DKwWMrM8.js} +3781 -3710
- package/dist/{@common-rjsf-DiBcUe82.js → @common-rjsf-Dkh3jTCW.js} +2 -2
- package/dist/{@framer-motion-BxQTtYmm.js → @framer-motion-CdgdF0KV.js} +1 -1
- package/dist/{@react-dates-M_eJUVeH.js → @react-dates-CtQV2TLr.js} +1 -1
- package/dist/{@react-select-CywptBlV.js → @react-select-Cn3OpC9h.js} +1 -1
- package/dist/@react-virtualized-sticky-tree-CVJYfMx0.js +452 -0
- package/dist/{@vendor-QI4m26H1.js → @vendor-CwAQS8iU.js} +5895 -5492
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +13 -1
- package/dist/Common/CodeEditor/types.d.ts +4 -2
- package/dist/Shared/Components/VirtualizedList/VirtualizedList.component.d.ts +2 -0
- package/dist/Shared/Components/VirtualizedList/VirtualizedList.constants.d.ts +2 -0
- package/dist/Shared/Components/VirtualizedList/VirtualizedList.types.d.ts +36 -0
- package/dist/Shared/Components/VirtualizedList/index.d.ts +2 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +1 -0
- package/dist/Shared/Services/types.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +273 -272
- package/package.json +6 -1
@@ -5,24 +5,35 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
5
5
|
diffMode: boolean;
|
6
6
|
theme: CodeEditorThemesKeys;
|
7
7
|
code: string;
|
8
|
+
defaultCode: string;
|
8
9
|
noParsing: boolean;
|
9
10
|
} | {
|
10
11
|
diffMode: any;
|
11
12
|
mode: MODES;
|
12
13
|
theme: CodeEditorThemesKeys;
|
13
14
|
code: string;
|
15
|
+
defaultCode: string;
|
14
16
|
noParsing: boolean;
|
15
17
|
} | {
|
16
18
|
theme: any;
|
17
19
|
mode: MODES;
|
18
20
|
diffMode: boolean;
|
19
21
|
code: string;
|
22
|
+
defaultCode: string;
|
20
23
|
noParsing: boolean;
|
21
24
|
} | {
|
22
25
|
code: any;
|
23
26
|
mode: MODES;
|
24
27
|
diffMode: boolean;
|
25
28
|
theme: CodeEditorThemesKeys;
|
29
|
+
defaultCode: string;
|
30
|
+
noParsing: boolean;
|
31
|
+
} | {
|
32
|
+
defaultCode: any;
|
33
|
+
mode: MODES;
|
34
|
+
diffMode: boolean;
|
35
|
+
theme: CodeEditorThemesKeys;
|
36
|
+
code: string;
|
26
37
|
noParsing: boolean;
|
27
38
|
} | {
|
28
39
|
height: any;
|
@@ -30,7 +41,8 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
30
41
|
diffMode: boolean;
|
31
42
|
theme: CodeEditorThemesKeys;
|
32
43
|
code: string;
|
44
|
+
defaultCode: string;
|
33
45
|
noParsing: boolean;
|
34
46
|
};
|
35
47
|
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
36
|
-
export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
48
|
+
export declare const initialState: ({ mode, theme, value, defaultValue, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
@@ -8,7 +8,7 @@ interface CodeEditorBaseInterface {
|
|
8
8
|
value?: string;
|
9
9
|
lineDecorationsWidth?: number;
|
10
10
|
responseType?: string;
|
11
|
-
onChange?: (string:
|
11
|
+
onChange?: (value: string, defaultValue: string) => void;
|
12
12
|
onBlur?: () => void;
|
13
13
|
onFocus?: () => void;
|
14
14
|
children?: any;
|
@@ -63,7 +63,7 @@ export interface CodeEditorHeaderComposition {
|
|
63
63
|
ValidationError?: React.FC<any>;
|
64
64
|
Clipboard?: React.FC<any>;
|
65
65
|
}
|
66
|
-
export type ActionTypes = 'changeLanguage' | 'setDiff' | 'setTheme' | 'setCode' | 'setHeight';
|
66
|
+
export type ActionTypes = 'changeLanguage' | 'setDiff' | 'setTheme' | 'setCode' | 'setDefaultCode' | 'setHeight';
|
67
67
|
export interface Action {
|
68
68
|
type: ActionTypes;
|
69
69
|
value: any;
|
@@ -80,6 +80,7 @@ export interface CodeEditorInitialValueType {
|
|
80
80
|
diffView: boolean;
|
81
81
|
theme?: string;
|
82
82
|
value: string;
|
83
|
+
defaultValue: string;
|
83
84
|
noParsing?: boolean;
|
84
85
|
tabSize: number;
|
85
86
|
}
|
@@ -88,6 +89,7 @@ export interface CodeEditorState {
|
|
88
89
|
diffMode: boolean;
|
89
90
|
theme: CodeEditorThemesKeys;
|
90
91
|
code: string;
|
92
|
+
defaultCode: string;
|
91
93
|
noParsing: boolean;
|
92
94
|
}
|
93
95
|
export declare enum CodeEditorActionTypes {
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { AutoSizedStickyTreeProps, StickyTreeRowRenderer } from 'react-virtualized-sticky-tree';
|
2
|
+
/**
|
3
|
+
* Represents a virtualized list item.
|
4
|
+
*
|
5
|
+
* @template ListKeys - The type of the keys used to identify list items (e.g., `string` or `number`).
|
6
|
+
* @template ExtendedType - An optional type to extend the base item structure with additional fields.
|
7
|
+
*/
|
8
|
+
export type VirtualizedListItem<ListKeys, ExtendedType = {}> = ExtendedType & {
|
9
|
+
/** The unique identifier of the item. */
|
10
|
+
id: string | number;
|
11
|
+
/** The height of the item. (in pixels) */
|
12
|
+
height: number;
|
13
|
+
/** The depth level of the item in the hierarchical structure. */
|
14
|
+
depth: number;
|
15
|
+
/** An optional array of child item keys. */
|
16
|
+
children?: ListKeys[];
|
17
|
+
};
|
18
|
+
/**
|
19
|
+
* Props for the VirtualizedList component, which supports a virtualized tree-like structure.
|
20
|
+
*
|
21
|
+
* @template ListKeys - The type of the keys used to identify list items (e.g., `string` or `number`).
|
22
|
+
* @template ExtendedType - An optional type to extend the base item structure with additional fields.
|
23
|
+
*/
|
24
|
+
export interface VirtualizedListProps<ListKeys extends string | number, ExtendedType extends object = {}> extends Omit<AutoSizedStickyTreeProps<VirtualizedListItem<ListKeys, ExtendedType>>, 'root' | 'renderRoot' | 'rowRenderer' | 'getChildren'> {
|
25
|
+
/**
|
26
|
+
* A dictionary of items keyed by their unique identifiers.
|
27
|
+
*/
|
28
|
+
items: Record<ListKeys, VirtualizedListItem<ListKeys, ExtendedType>>;
|
29
|
+
/**
|
30
|
+
* A function that renders an individual list item.
|
31
|
+
*
|
32
|
+
* @param params - An object containing the node and nodeInfo to render.
|
33
|
+
* @returns A React node representing the rendered item.
|
34
|
+
*/
|
35
|
+
renderItem: (params: Pick<Parameters<StickyTreeRowRenderer<VirtualizedListItem<ListKeys, ExtendedType>>>['0'], 'node' | 'nodeInfo'>) => React.ReactNode;
|
36
|
+
}
|
@@ -17,6 +17,7 @@ export interface ClusterDTO {
|
|
17
17
|
id: number;
|
18
18
|
cluster_name: string;
|
19
19
|
isVirtualCluster: boolean;
|
20
|
+
isProd: boolean;
|
20
21
|
}
|
21
22
|
export interface UseGetResourceKindsOptionsProps {
|
22
23
|
resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
|
package/dist/index.d.ts
CHANGED
@@ -63,7 +63,6 @@ export interface customEnv {
|
|
63
63
|
FEATURE_SCOPED_VARIABLE_ENVIRONMENT_LIST_ENABLE?: boolean;
|
64
64
|
HIDE_NETWORK_STATUS_INTERFACE?: boolean;
|
65
65
|
SYSTEM_CONTROLLER_LISTING_TIMEOUT?: number;
|
66
|
-
FEATURE_STEP_WISE_LOGS_ENABLE?: boolean;
|
67
66
|
FEATURE_IMAGE_PROMOTION_ENABLE?: boolean;
|
68
67
|
FEATURE_CD_MANDATORY_PLUGINS_ENABLE?: boolean;
|
69
68
|
/**
|
@@ -76,6 +75,7 @@ export interface customEnv {
|
|
76
75
|
FEATURE_PROMO_EMBEDDED_BUTTON_TEXT?: string;
|
77
76
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE?: string;
|
78
77
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL?: string;
|
78
|
+
FEATURE_SWAP_TRAFFIC_ENABLE?: boolean;
|
79
79
|
FEATURE_BULK_RESTART_WORKLOADS_FROM_RB: string;
|
80
80
|
FEATURE_RB_SYNC_CLUSTER_ENABLE?: boolean;
|
81
81
|
FEATURE_DEFAULT_MERGE_STRATEGY?: OverrideMergeStrategyType;
|