@devtron-labs/devtron-fe-common-lib 1.20.0 → 1.20.1-pre-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-3C-BQlAW.js → @code-editor-CywBBv09.js} +10629 -9748
- package/dist/{@common-rjsf-Bka55zwe.js → @common-rjsf-BAI7aimV.js} +46 -46
- package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
- package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
- package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
- package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/Constants.d.ts +41 -14
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +8 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
- package/dist/Common/Types.d.ts +0 -3
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/utils.d.ts +6 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/index.d.ts +2 -0
- package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
- package/dist/Shared/Components/Charts/constants.d.ts +16 -0
- package/dist/Shared/Components/Charts/index.d.ts +2 -0
- package/dist/Shared/Components/Charts/types.d.ts +61 -0
- package/dist/Shared/Components/Charts/utils.d.ts +11 -0
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +17 -0
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +6 -0
- package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
- package/dist/Shared/Components/TreeView/types.d.ts +17 -3
- package/dist/Shared/Components/index.d.ts +4 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +20 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
- package/dist/assets/ic-bot.65f403dd.svg +3 -0
- package/dist/assets/ic-building.2405d07b.svg +3 -0
- package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
- package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
- package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
- package/dist/assets/ic-coins.2c15f406.svg +3 -0
- package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
- package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
- package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
- package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
- package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
- package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
- package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1014 -956
- package/package.json +2 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -1,10 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
+
import { ButtonComponentType, ButtonProps } from '../Button';
|
2
3
|
import { IconsProps } from '../Icon';
|
3
|
-
export type GenericSectionErrorStateProps = {
|
4
|
-
/**
|
5
|
-
* Handler for reloading the section
|
6
|
-
*/
|
7
|
-
reload?: () => void;
|
4
|
+
export type GenericSectionErrorStateProps<ButtonType extends ButtonComponentType = ButtonComponentType.button> = {
|
8
5
|
/**
|
9
6
|
* If true, border is added to the section
|
10
7
|
*
|
@@ -37,6 +34,7 @@ export type GenericSectionErrorStateProps = {
|
|
37
34
|
*/
|
38
35
|
progressingProps: Omit<IconsProps, 'name'>;
|
39
36
|
useInfoIcon?: false;
|
37
|
+
customIcon?: never;
|
40
38
|
} | {
|
41
39
|
progressingProps?: never;
|
42
40
|
/**
|
@@ -45,7 +43,25 @@ export type GenericSectionErrorStateProps = {
|
|
45
43
|
* @default false
|
46
44
|
*/
|
47
45
|
useInfoIcon: true;
|
46
|
+
customIcon?: never;
|
47
|
+
} | {
|
48
|
+
progressingProps?: never;
|
49
|
+
useInfoIcon?: never;
|
50
|
+
customIcon?: never;
|
48
51
|
} | {
|
52
|
+
customIcon: JSX.Element;
|
49
53
|
progressingProps?: never;
|
50
54
|
useInfoIcon?: never;
|
55
|
+
}) & ({
|
56
|
+
/**
|
57
|
+
* Handler for reloading the section
|
58
|
+
*/
|
59
|
+
reload: () => void;
|
60
|
+
buttonProps?: never;
|
61
|
+
} | {
|
62
|
+
reload?: never;
|
63
|
+
buttonProps: ButtonProps<ButtonType>;
|
64
|
+
} | {
|
65
|
+
reload?: never;
|
66
|
+
buttonProps?: never;
|
51
67
|
});
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PageHeaderType } from './types';
|
2
|
-
declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, }: PageHeaderType) => JSX.Element;
|
2
|
+
declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, closeIcon, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -17,8 +17,10 @@ export interface PageHeaderType {
|
|
17
17
|
TippyIcon?: React.FunctionComponent<any>;
|
18
18
|
tippyMessage?: string;
|
19
19
|
onClickTippyButton?: () => void;
|
20
|
+
tippyHeader?: string;
|
20
21
|
};
|
21
22
|
onClose?: () => void;
|
23
|
+
closeIcon?: JSX.Element;
|
22
24
|
}
|
23
25
|
export interface ServerInfo {
|
24
26
|
currentVersion: string;
|
@@ -7,6 +7,7 @@ export declare const iconMap: {
|
|
7
7
|
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
8
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
9
|
'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
|
+
'ic-argocd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
11
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
12
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
13
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -22,10 +23,12 @@ export declare const iconMap: {
|
|
22
23
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
24
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
25
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
|
+
'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
27
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
28
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
29
|
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
30
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
|
+
'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
32
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
33
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
34
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -42,13 +45,17 @@ export declare const iconMap: {
|
|
42
45
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
46
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
47
|
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
|
+
'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
|
+
'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
50
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
51
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
52
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
53
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
|
+
'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
55
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
56
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
57
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
|
+
'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
59
|
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
60
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
61
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -56,6 +63,7 @@ export declare const iconMap: {
|
|
56
63
|
'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
64
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
65
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
|
+
'ic-database-backup': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
67
|
'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
68
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
69
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -66,6 +74,7 @@ export declare const iconMap: {
|
|
66
74
|
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
75
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
76
|
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
|
+
'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
78
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
79
|
'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
80
|
'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -91,10 +100,13 @@ export declare const iconMap: {
|
|
91
100
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
92
101
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
93
102
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
|
+
'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
104
|
'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
105
|
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
106
|
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
107
|
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
|
+
'ic-floppy-disk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
|
+
'ic-fluxcd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
110
|
'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
99
111
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
100
112
|
'ic-folder': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -135,6 +147,7 @@ export declare const iconMap: {
|
|
135
147
|
'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
148
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
149
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
|
+
'ic-kubernetes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
151
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
152
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
153
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -147,6 +160,7 @@ export declare const iconMap: {
|
|
147
160
|
'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
148
161
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
149
162
|
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
163
|
+
'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
164
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
151
165
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
152
166
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -178,6 +192,7 @@ export declare const iconMap: {
|
|
178
192
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
179
193
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
180
194
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
195
|
+
'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
181
196
|
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
182
197
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
183
198
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -207,6 +222,7 @@ export declare const iconMap: {
|
|
207
222
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
208
223
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
209
224
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
225
|
+
'ic-symbol-greater-than': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
210
226
|
'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
211
227
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
212
228
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -218,6 +234,7 @@ export declare const iconMap: {
|
|
218
234
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
219
235
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
220
236
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
237
|
+
'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
221
238
|
'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
222
239
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
223
240
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
|
-
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId, rotateBy, fillSpace, }: IconBaseProps) => JSX.Element;
|
2
|
+
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId, rotateBy, fillSpace, flip, }: IconBaseProps) => JSX.Element;
|
@@ -38,6 +38,12 @@ export interface IconBaseProps {
|
|
38
38
|
* @example 90, 180, 270
|
39
39
|
*/
|
40
40
|
rotateBy?: number;
|
41
|
+
/**
|
42
|
+
* Flips the icon in the specified direction
|
43
|
+
*
|
44
|
+
* @default undefined
|
45
|
+
*/
|
46
|
+
flip?: 'horizontal' | 'vertical';
|
41
47
|
/**
|
42
48
|
* If true, the icon will expand to fill the available space of its container.
|
43
49
|
*/
|
@@ -4,6 +4,7 @@ export declare const illustrationMap: {
|
|
4
4
|
'img-code': string;
|
5
5
|
'img-man-on-rocket': string;
|
6
6
|
'img-no-result': string;
|
7
|
+
'no-cluster-cost-enabled': string;
|
7
8
|
};
|
8
9
|
export type IllustrationName = keyof typeof illustrationMap;
|
9
10
|
export interface IllustrationProps extends Omit<IllustrationBaseProps, 'name' | 'illustrationMap'> {
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as KeyboardShortcut } from './KeyboardShortcut.component';
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
2
|
+
import { AuthenticationType } from '../../types';
|
3
|
+
interface ValueErrorType<T = string> {
|
4
|
+
value: T;
|
5
|
+
error: string;
|
6
|
+
}
|
7
|
+
export interface PromoetheusConfig {
|
8
|
+
endpoint: ValueErrorType;
|
9
|
+
authType: ValueErrorType<AuthenticationType>;
|
10
|
+
userName: ValueErrorType;
|
11
|
+
password: ValueErrorType;
|
12
|
+
prometheusTlsClientKey: ValueErrorType;
|
13
|
+
prometheusTlsClientCert: ValueErrorType;
|
14
|
+
}
|
15
|
+
export interface PromoetheusConfigProps {
|
16
|
+
prometheusConfig: PromoetheusConfig;
|
17
|
+
handleOnChange: (event: SyntheticEvent) => void;
|
18
|
+
onPrometheusAuthTypeChange: (event: SyntheticEvent) => void;
|
19
|
+
isCostPrometheus?: boolean;
|
20
|
+
}
|
21
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
2
|
+
export type SideNavigationItemBase = {
|
3
|
+
id: string;
|
4
|
+
title: string;
|
5
|
+
dataTestId: string;
|
6
|
+
};
|
7
|
+
export type SideNavigationItemLink = SideNavigationItemBase & {
|
8
|
+
href: string;
|
9
|
+
items?: never;
|
10
|
+
tooltipProps?: TooltipProps;
|
11
|
+
};
|
12
|
+
export type SideNavigationItemGroup = SideNavigationItemBase & {
|
13
|
+
items: Omit<SideNavigationItemLink, 'items'>[];
|
14
|
+
href?: never;
|
15
|
+
tooltipProps?: never;
|
16
|
+
};
|
17
|
+
export interface SideNavigationProps {
|
18
|
+
list: (SideNavigationItemLink | SideNavigationItemGroup)[];
|
19
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { FiltersTypeEnum, InternalTableProps } from './types';
|
2
|
-
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
2
|
+
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, id, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
3
3
|
export default InternalTable;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TreeViewProps } from './types';
|
2
|
-
declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, }: TreeViewProps<DataAttributeType>) => JSX.Element;
|
2
|
+
declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, highlightSelectedHeadingOnlyWhenCollapsed, useOverflowAuto, }: TreeViewProps<DataAttributeType>) => JSX.Element;
|
3
3
|
export default TreeView;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TreeViewNodeContentProps } from './types';
|
2
|
-
declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, }: TreeViewNodeContentProps) => JSX.Element;
|
2
|
+
declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, variant, }: TreeViewNodeContentProps) => JSX.Element;
|
3
3
|
export default TreeViewNodeContent;
|
@@ -2,3 +2,6 @@ import { TreeViewProps } from './types';
|
|
2
2
|
export declare const DEFAULT_NO_ITEMS_TEXT = "No items found";
|
3
3
|
export declare const VARIANT_TO_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
4
4
|
export declare const VARIANT_TO_HOVER_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
5
|
+
export declare const VARIANT_TO_SELECTED_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
6
|
+
export declare const VARIANT_TO_TEXT_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
7
|
+
export declare const VARIANT_TO_TREE_ITEM_ACTIVE_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
|
@@ -96,9 +96,11 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
|
|
96
96
|
onClick?: (e: SyntheticEvent) => void;
|
97
97
|
href?: never;
|
98
98
|
clearQueryParamsOnNavigation?: never;
|
99
|
+
activeClassName?: never;
|
99
100
|
} | {
|
100
101
|
as: 'link';
|
101
102
|
href: string;
|
103
|
+
activeClassName?: string;
|
102
104
|
/**
|
103
105
|
* The callback function to handle click events on the nav link.
|
104
106
|
*/
|
@@ -113,6 +115,7 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
|
|
113
115
|
href?: never;
|
114
116
|
onClick?: never;
|
115
117
|
clearQueryParamsOnNavigation?: never;
|
118
|
+
activeClassName?: never;
|
116
119
|
});
|
117
120
|
/**
|
118
121
|
* Props for the TreeView component.
|
@@ -151,14 +154,25 @@ export type TreeViewProps<DataAttributeType = null> = {
|
|
151
154
|
*/
|
152
155
|
mode?: 'navigation' | 'form';
|
153
156
|
/**
|
154
|
-
* If primary the background color will be bg__primary and bg__hover--opaque
|
157
|
+
* If primary the background color will be bg__primary and bg__hover--opaque \
|
158
|
+
* if secondary the background color will be bg__secondary bg__hover-secondary--opaque,
|
159
|
+
* if sidenav the background color will be bg__transparent bg__hover-sidebar-item.
|
155
160
|
* @default 'primary'
|
156
161
|
*/
|
157
|
-
variant?: 'primary' | 'secondary';
|
162
|
+
variant?: 'primary' | 'secondary' | 'sidenav';
|
158
163
|
/**
|
159
164
|
* @default {}
|
160
165
|
*/
|
161
166
|
defaultExpandedMap?: Record<string, boolean>;
|
167
|
+
/**
|
168
|
+
* When true, the selected heading (`selectedId`) will be highlighted only when it is collapsed.
|
169
|
+
* @default false
|
170
|
+
*/
|
171
|
+
highlightSelectedHeadingOnlyWhenCollapsed?: boolean;
|
172
|
+
/**
|
173
|
+
* @default true
|
174
|
+
*/
|
175
|
+
useOverflowAuto?: boolean;
|
162
176
|
} /**
|
163
177
|
* WARNING: For internal use only.
|
164
178
|
*/ & ({
|
@@ -188,7 +202,7 @@ export type TreeViewProps<DataAttributeType = null> = {
|
|
188
202
|
expandedMap?: never;
|
189
203
|
isControlled?: false;
|
190
204
|
});
|
191
|
-
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'
|
205
|
+
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'>, Required<Pick<TreeViewProps, 'variant'>> {
|
192
206
|
type: 'heading' | 'item';
|
193
207
|
isSelected: boolean;
|
194
208
|
}
|
@@ -13,6 +13,7 @@ export * from './BulkSelection';
|
|
13
13
|
export * from './Button';
|
14
14
|
export * from './ButtonWithLoader';
|
15
15
|
export * from './ButtonWithSelector';
|
16
|
+
export * from './Charts';
|
16
17
|
export * from './Chip';
|
17
18
|
export * from './CICDHistory';
|
18
19
|
export * from './CMCS';
|
@@ -59,6 +60,7 @@ export * from './ImageWithFallback';
|
|
59
60
|
export * from './InfoBlock';
|
60
61
|
export * from './InfoIconTippy';
|
61
62
|
export * from './InvalidYAMLTippy';
|
63
|
+
export * from './KeyboardShortcut';
|
62
64
|
export * from './KeyValueTable';
|
63
65
|
export * from './License';
|
64
66
|
export { default as LoadingCard } from './LoadingCard';
|
@@ -71,6 +73,7 @@ export * from './Plugin';
|
|
71
73
|
export * from './Popover';
|
72
74
|
export * from './PortalContainer';
|
73
75
|
export * from './ProgressBar';
|
76
|
+
export * from './PrometheusConfigurations';
|
74
77
|
export { default as QRCode } from './QRCode';
|
75
78
|
export * from './ReactSelect';
|
76
79
|
export * from './RegistryIcon';
|
@@ -78,6 +81,7 @@ export * from './ScannedByToolModal';
|
|
78
81
|
export * from './Security';
|
79
82
|
export * from './SelectPicker';
|
80
83
|
export * from './ShowMoreText';
|
84
|
+
export * from './SideNavigation';
|
81
85
|
export * from './SSOProviderIcon';
|
82
86
|
export * from './StatusComponent';
|
83
87
|
export * from './Switch';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -103,4 +103,5 @@ export declare const clearCookieOnLogout: () => void;
|
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
105
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
106
|
+
export declare const YAMLtoJSON: (yamlString: string) => string;
|
106
107
|
export {};
|
@@ -4,7 +4,7 @@ import { PreferredResourceKindType, UserPreferenceFilteredListTypes, UserPrefere
|
|
4
4
|
* @description This function fetches the user preferences from the server. It uses the `get` method to make a request to the server and retrieves the user preferences based on the `USER_PREFERENCES_ATTRIBUTE_KEY`. The result is parsed and returned as a `UserPreferencesType` object.
|
5
5
|
* @throws Will throw an error if the request fails or if the result is not in the expected format.
|
6
6
|
*/
|
7
|
-
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
7
|
+
export declare const getUserPreferences: (signal?: AbortSignal) => Promise<UserPreferencesType>;
|
8
8
|
export declare const updateUserPreferences: ({ path, value, resourceKind, shouldThrowError, userPreferencesResponse, }: UserPreferenceResourceProps) => Promise<boolean>;
|
9
9
|
/**
|
10
10
|
* Optimized function to get updated user preferences with resource filtering
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
2
2
|
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
|
3
3
|
import { ResourceKindType } from '../../types';
|
4
|
+
export type NavigationItemID = 'application-management-overview' | 'application-management-applications' | 'application-management-application-groups' | 'application-management-chart-store' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-scans' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'backup-and-restore-overview' | 'backup-and-restore-backup-and-schedule' | 'backup-and-restore-restores' | 'backup-and-restore-backup-repositories' | 'backup-and-restore-backup-locations' | 'backup-and-restore-history-and-logs' | 'ai-recommendations-overview';
|
5
|
+
export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
|
4
6
|
export interface GetUserPreferencesQueryParamsType {
|
5
7
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|
6
8
|
}
|
@@ -23,6 +25,7 @@ export interface UserResourceKindActionType {
|
|
23
25
|
[UserPreferenceResourceActions.RECENTLY_VISITED]: BaseRecentlyVisitedEntitiesTypes[];
|
24
26
|
}
|
25
27
|
export type UserPreferenceResourceType = Partial<Record<PreferredResourceKindType, UserResourceKindActionType>>;
|
28
|
+
export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}`;
|
26
29
|
export interface GetUserPreferencesParsedDTO {
|
27
30
|
viewPermittedEnvOnly?: boolean;
|
28
31
|
/**
|
@@ -36,13 +39,18 @@ export interface GetUserPreferencesParsedDTO {
|
|
36
39
|
*
|
37
40
|
*/
|
38
41
|
resources?: UserPreferenceResourceType;
|
42
|
+
commandBar: {
|
43
|
+
recentNavigationActions: {
|
44
|
+
id: NavigationItemID | NavigationSubMenuItemID | CommandBarAdditionalItemsId;
|
45
|
+
}[];
|
46
|
+
};
|
39
47
|
}
|
40
48
|
export interface UserPreferencesPayloadValueType extends GetUserPreferencesParsedDTO {
|
41
49
|
}
|
42
50
|
export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
|
43
51
|
value: string;
|
44
52
|
}
|
45
|
-
export interface UserPreferencesType {
|
53
|
+
export interface UserPreferencesType extends Pick<GetUserPreferencesParsedDTO, 'commandBar'> {
|
46
54
|
/**
|
47
55
|
* Preferred theme for the user
|
48
56
|
* If null, would forcibly show user theme switcher dialog for user to select
|
@@ -69,7 +77,7 @@ export interface UseUserPreferencesProps {
|
|
69
77
|
migrateUserPreferences?: (userPreferencesResponse: UserPreferencesType) => Promise<UserPreferencesType>;
|
70
78
|
recentlyVisitedFetchConfig?: RecentlyVisitedFetchConfigType;
|
71
79
|
}
|
72
|
-
|
80
|
+
type UserPathValueMapType = {
|
73
81
|
path: 'themePreference';
|
74
82
|
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
75
83
|
resourceKind?: never;
|
@@ -84,7 +92,28 @@ export type UserPathValueMapType = {
|
|
84
92
|
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
85
93
|
resourceKind: PreferredResourceKindType;
|
86
94
|
userPreferencesResponse?: UserPreferencesType;
|
95
|
+
} | {
|
96
|
+
path: 'commandBar.recentNavigationActions';
|
97
|
+
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
98
|
+
resourceKind?: never;
|
99
|
+
userPreferencesResponse?: never;
|
87
100
|
};
|
101
|
+
export type GetUserPreferencePayloadParams = {
|
102
|
+
userPreferencesResponse: UserPreferencesType;
|
103
|
+
resourceKind?: PreferredResourceKindType;
|
104
|
+
} & ({
|
105
|
+
path: 'themePreference';
|
106
|
+
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
107
|
+
} | {
|
108
|
+
path: 'pipelineRBACViewSelectedTab';
|
109
|
+
value: Required<Pick<UserPreferencesType, 'pipelineRBACViewSelectedTab'>>;
|
110
|
+
} | {
|
111
|
+
path: 'resources';
|
112
|
+
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
113
|
+
} | {
|
114
|
+
path: 'commandBar.recentNavigationActions';
|
115
|
+
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
116
|
+
});
|
88
117
|
export type UserPreferenceResourceProps = UserPathValueMapType & {
|
89
118
|
shouldThrowError?: boolean;
|
90
119
|
userPreferencesResponse?: UserPreferencesType;
|
@@ -92,3 +121,4 @@ export type UserPreferenceResourceProps = UserPathValueMapType & {
|
|
92
121
|
export interface UserPreferenceFilteredListTypes extends UserPreferenceRecentlyVisitedAppsTypes {
|
93
122
|
userPreferencesResponse?: UserPreferencesType;
|
94
123
|
}
|
124
|
+
export {};
|
@@ -21,6 +21,7 @@ export interface SidePanelConfig {
|
|
21
21
|
reinitialize?: boolean;
|
22
22
|
/** URL to documentation that should be displayed in the panel */
|
23
23
|
docLink: string | null;
|
24
|
+
aiSessionId?: string;
|
24
25
|
}
|
25
26
|
type AIAgentContextType = {
|
26
27
|
path: string;
|
@@ -39,6 +40,14 @@ export interface TempAppWindowConfig {
|
|
39
40
|
showOpenInNewTab?: boolean;
|
40
41
|
/** React component to render in the window */
|
41
42
|
component?: JSX.Element;
|
43
|
+
customCloseConfig?: {
|
44
|
+
/**
|
45
|
+
* Provide this method if you want to do something before temp window closes
|
46
|
+
* Provide noop if not relevant
|
47
|
+
* */
|
48
|
+
beforeClose: () => void;
|
49
|
+
icon: JSX.Element;
|
50
|
+
};
|
42
51
|
}
|
43
52
|
type CommonMainContextProps = {
|
44
53
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
2
|
import { InfoBlockProps } from './Components';
|
3
|
-
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType, RemoteConnectionType } from './types';
|
4
4
|
export declare const ARTIFACT_STATUS: {
|
5
5
|
PROGRESSING: string;
|
6
6
|
DEGRADED: string;
|
@@ -434,3 +434,4 @@ export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
|
434
434
|
export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
|
435
435
|
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
436
436
|
export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
|
437
|
+
export declare const REMOTE_CONNECTION_TYPE_LABEL_MAP: Record<RemoteConnectionType, string>;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1114,4 +1114,24 @@ export interface PipelineDeploymentStrategy {
|
|
1114
1114
|
strategies: Strategy[];
|
1115
1115
|
error: ServerError;
|
1116
1116
|
}
|
1117
|
+
export declare enum RemoteConnectionType {
|
1118
|
+
Direct = "DIRECT",
|
1119
|
+
Proxy = "PROXY",
|
1120
|
+
SSHTunnel = "SSH"
|
1121
|
+
}
|
1122
|
+
export declare enum AuthenticationType {
|
1123
|
+
BASIC = "BASIC",
|
1124
|
+
ANONYMOUS = "ANONYMOUS",
|
1125
|
+
IAM = "IAM"
|
1126
|
+
}
|
1127
|
+
/**
|
1128
|
+
* Makes all props in T optional and set to never when isLoading is true.
|
1129
|
+
* Used for components with loading states.
|
1130
|
+
* @example See usage in CostVisibility -> cards
|
1131
|
+
*/
|
1132
|
+
export type PropsTypeWithIsLoading<T extends Record<string, any>> = (Partial<Record<keyof T, never>> & {
|
1133
|
+
isLoading: true;
|
1134
|
+
}) | ({
|
1135
|
+
isLoading?: false;
|
1136
|
+
} & T);
|
1117
1137
|
export {};
|