@devtron-labs/devtron-fe-common-lib 1.19.4 → 1.20.0-alpha-3
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-D2U9F6h2.js → @code-editor-BS8YRK8i.js} +11053 -10103
- package/dist/{@common-rjsf-BQSkXbLx.js → @common-rjsf-jeWCms6o.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/CIPipeline.Types.d.ts +1 -0
- package/dist/Common/Common.service.d.ts +1 -1
- package/dist/Common/Constants.d.ts +42 -14
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +27 -0
- package/dist/Common/InteractiveCellText/index.d.ts +2 -0
- package/dist/Common/InteractiveCellText/types.d.ts +10 -0
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/RJSF/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -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 +13 -5
- package/dist/Common/index.d.ts +1 -0
- 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/index.d.ts +1 -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 +1 -0
- package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +8 -8
- package/dist/Shared/Components/Button/Button.component.d.ts +68 -68
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -0
- 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/CodeEditor/utils.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/GitProviderIcon/utils.d.ts +1 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +25 -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 +2 -0
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.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/MaterialHistory/MaterialHistory.component.d.ts +1 -1
- package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- 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/RegistryIcon/RegistryIcon.d.ts +1 -1
- package/dist/Shared/Components/RegistryIcon/types.d.ts +17 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +8 -4
- package/dist/Shared/Components/Table/utils.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 +3 -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 +31 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
- package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -1
- package/dist/Shared/Services/ToastManager/constants.d.ts +2 -2
- package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
- package/dist/Shared/Services/ToastManager/types.d.ts +23 -3
- package/dist/Shared/Services/app.service.d.ts +3 -3
- 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-aws-codecommit.236f850c.svg +10 -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-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-diff-added.6ef6f938.svg +3 -0
- package/dist/assets/ic-diff-deleted.54eb24dd.svg +3 -0
- package/dist/assets/ic-diff-updated.294b925e.svg +4 -0
- package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
- package/dist/assets/ic-group-filter-applied.2cdb11e7.svg +20 -0
- package/dist/assets/{ic-folder.051cd30d.svg → ic-group-filter.ed1869f5.svg} +3 -3
- package/dist/assets/ic-input.57281408.svg +3 -0
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
- package/dist/assets/ic-locked.dd40e181.svg +3 -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-storage.03f282b6.svg +21 -0
- package/dist/assets/ic-tag.5fdc7834.svg +3 -0
- package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
- package/dist/assets/ic-warning-fill.bfea8b38.svg +4 -0
- package/dist/assets/img-mechanical-operation.04a318d6.svg +17 -0
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +927 -913
- package/package.json +2 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -14,6 +14,7 @@ export declare const iconMap: {
|
|
14
14
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
15
|
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
16
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
|
+
'ic-aws-codecommit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
18
|
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
19
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
19
20
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -21,10 +22,12 @@ export declare const iconMap: {
|
|
21
22
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
23
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
24
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
|
+
'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
26
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
27
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
28
|
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
29
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
|
+
'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
31
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
32
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
33
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -41,13 +44,16 @@ export declare const iconMap: {
|
|
41
44
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
45
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
46
|
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
|
+
'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
48
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
49
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
50
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
51
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
|
+
'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
53
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
54
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
55
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
|
+
'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
57
|
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
58
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
59
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -55,6 +61,7 @@ export declare const iconMap: {
|
|
55
61
|
'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
62
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
63
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
|
+
'ic-database-backup': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
65
|
'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
66
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
67
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -65,7 +72,11 @@ export declare const iconMap: {
|
|
65
72
|
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
73
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
74
|
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
|
+
'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
76
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
|
+
'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
|
+
'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
|
+
'ic-diff-updated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
80
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
81
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
82
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -87,6 +98,7 @@ export declare const iconMap: {
|
|
87
98
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
99
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
100
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
|
+
'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
90
102
|
'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
91
103
|
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
92
104
|
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -107,6 +119,8 @@ export declare const iconMap: {
|
|
107
119
|
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
120
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
121
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
|
+
'ic-group-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
|
+
'ic-group-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
124
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
125
|
'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
126
|
'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -121,6 +135,7 @@ export declare const iconMap: {
|
|
121
135
|
'ic-info-filled-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
136
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
137
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
|
+
'ic-input': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
139
|
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
140
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
141
|
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -128,6 +143,7 @@ export declare const iconMap: {
|
|
128
143
|
'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
129
144
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
130
145
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
|
+
'ic-kubernetes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
131
147
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
148
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
149
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -137,8 +153,10 @@ export declare const iconMap: {
|
|
137
153
|
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
154
|
'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
155
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
156
|
+
'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
157
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
141
158
|
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
159
|
+
'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
142
160
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
143
161
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
144
162
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -170,6 +188,7 @@ export declare const iconMap: {
|
|
170
188
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
171
189
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
172
190
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
191
|
+
'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
173
192
|
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
174
193
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
175
194
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -187,6 +206,7 @@ export declare const iconMap: {
|
|
187
206
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
188
207
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
189
208
|
'ic-stop-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
209
|
+
'ic-storage': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
190
210
|
'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
191
211
|
'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
192
212
|
'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -198,6 +218,7 @@ export declare const iconMap: {
|
|
198
218
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
199
219
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
200
220
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
221
|
+
'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
201
222
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
202
223
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
203
224
|
'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -208,6 +229,7 @@ export declare const iconMap: {
|
|
208
229
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
209
230
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
210
231
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
232
|
+
'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
211
233
|
'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
212
234
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
213
235
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -216,6 +238,9 @@ export declare const iconMap: {
|
|
216
238
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
217
239
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
218
240
|
'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
241
|
+
'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
242
|
+
'ic-visibility-on': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
243
|
+
'ic-warning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
219
244
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
220
245
|
'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
221
246
|
'ic-wifi-slash': 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
|
*/
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { IllustrationBaseProps } from './types';
|
2
2
|
export declare const illustrationMap: {
|
3
|
+
'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
3
4
|
'img-code': string;
|
4
5
|
'img-man-on-rocket': string;
|
5
6
|
'img-no-result': string;
|
7
|
+
'no-cluster-cost-enabled': string;
|
6
8
|
};
|
7
9
|
export type IllustrationName = keyof typeof illustrationMap;
|
8
10
|
export interface IllustrationProps extends Omit<IllustrationBaseProps, 'name' | 'illustrationMap'> {
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as KeyboardShortcut } from './KeyboardShortcut.component';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { MaterialHistoryProps } from './types';
|
2
|
-
declare const MaterialHistory: ({ material, pipelineName,
|
2
|
+
declare const MaterialHistory: ({ material, pipelineName, selectCommit, isCommitInfoModal }: MaterialHistoryProps) => JSX.Element;
|
3
3
|
export default MaterialHistory;
|
@@ -2,7 +2,6 @@ import { CIMaterialType } from '../../Services/app.types';
|
|
2
2
|
export interface MaterialHistoryProps {
|
3
3
|
material: CIMaterialType;
|
4
4
|
pipelineName: string;
|
5
|
-
|
6
|
-
selectCommit?: (materialId: string, commit: string, ciPipelineId?: string) => void;
|
5
|
+
selectCommit?: (commitId: string) => void;
|
7
6
|
isCommitInfoModal?: boolean;
|
8
7
|
}
|
@@ -87,6 +87,6 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
|
|
87
87
|
triggerRect: DOMRect;
|
88
88
|
popoverRect: DOMRect;
|
89
89
|
}) => {
|
90
|
-
fallbackPosition: "top" | "
|
90
|
+
fallbackPosition: "top" | "right" | "bottom" | "left";
|
91
91
|
fallbackAlignment: "start" | "middle" | "end";
|
92
92
|
};
|
@@ -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 {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { RegistryIconProps } from './types';
|
2
|
-
export declare const RegistryIcon: ({ registryType, size }: RegistryIconProps) => JSX.Element;
|
2
|
+
export declare const RegistryIcon: ({ registryType, size, registryUrl }: RegistryIconProps) => JSX.Element;
|
@@ -1,10 +1,25 @@
|
|
1
1
|
import { RegistryType } from '../../types';
|
2
2
|
import { IconsProps } from '../Icon';
|
3
|
-
export
|
3
|
+
export type RegistryIconProps = {
|
4
4
|
registryType: RegistryType;
|
5
5
|
/**
|
6
6
|
* The size of the icon in pixels.
|
7
7
|
* @default 20
|
8
8
|
*/
|
9
9
|
size?: IconsProps['size'];
|
10
|
-
|
10
|
+
/**
|
11
|
+
* The registry URL to determine the icon.
|
12
|
+
*/
|
13
|
+
registryUrl?: never;
|
14
|
+
} | {
|
15
|
+
registryType?: never;
|
16
|
+
/**
|
17
|
+
* The size of the icon in pixels.
|
18
|
+
* @default 20
|
19
|
+
*/
|
20
|
+
size?: IconsProps['size'];
|
21
|
+
/**
|
22
|
+
* The registry URL to determine the icon.
|
23
|
+
*/
|
24
|
+
registryUrl: string;
|
25
|
+
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SEVERITIES } from './constants';
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--
|
4
|
+
color: "var(--Y500)" | "var(--R700)" | "var(--R500)" | "var(--G500)" | "var(--N300)" | "var(--O500)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -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 { FiltersTypeEnum, TableContentProps } from './types';
|
2
|
-
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, filteredRows, areFilteredRowsLoading, }: TableContentProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
2
|
+
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, filteredRows, areFilteredRowsLoading, getRows, totalRows, }: TableContentProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
3
3
|
export default TableContent;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Dispatch, FunctionComponent, MouseEvent, PropsWithChildren, SetStateAction } from 'react';
|
2
2
|
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
3
3
|
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps, UseUrlFiltersReturnType } from '../../../Common/Hooks';
|
4
|
-
import { GenericEmptyStateType } from '../../../Common/index';
|
4
|
+
import { APIOptions, GenericEmptyStateType } from '../../../Common/index';
|
5
5
|
import { PageSizeOption } from '../../../Common/Pagination/types';
|
6
6
|
import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
|
7
7
|
import { useBulkSelection, UseBulkSelectionProps } from '../BulkSelection';
|
@@ -105,7 +105,7 @@ export interface ConfigurableColumnsType<RowData extends unknown, FilterVariant
|
|
105
105
|
interface GetRowsProps extends Pick<UseFiltersReturnType, 'offset' | 'pageSize' | 'searchKey' | 'sortBy' | 'sortOrder'> {
|
106
106
|
}
|
107
107
|
type AdditionalFilterPropsType<T extends FiltersTypeEnum> = T extends FiltersTypeEnum.URL ? Pick<UseUrlFiltersProps<string, unknown>, 'parseSearchParams' | 'localStorageKey' | 'redirectionMethod' | 'initialSortKey' | 'defaultPageSize'> : T extends FiltersTypeEnum.STATE ? Pick<UseStateFiltersProps<string>, 'initialSortKey' | 'defaultPageSize'> : never;
|
108
|
-
export type ViewWrapperProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = PropsWithChildren<(FilterVariant extends FiltersTypeEnum.NONE ? {} : Pick<UseFiltersReturnType, 'offset' | 'handleSearch' | 'searchKey' | 'sortBy' | 'sortOrder' | 'clearFilters'>) & AdditionalProps & Partial<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>> & {
|
108
|
+
export type ViewWrapperProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = PropsWithChildren<(FilterVariant extends FiltersTypeEnum.NONE ? {} : Pick<UseFiltersReturnType, 'offset' | 'handleSearch' | 'searchKey' | 'sortBy' | 'sortOrder' | 'clearFilters' | 'areFiltersApplied'>) & AdditionalProps & Partial<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>> & {
|
109
109
|
areRowsLoading: boolean;
|
110
110
|
filteredRows: RowsType<RowData> | null;
|
111
111
|
rows: RowsType<RowData> | null;
|
@@ -177,7 +177,10 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
|
|
177
177
|
} | {
|
178
178
|
rows?: never;
|
179
179
|
/** NOTE: Sorting on frontend is only handled if rows is provided instead of getRows */
|
180
|
-
getRows: (props: GetRowsProps) => Promise<
|
180
|
+
getRows: (props: GetRowsProps, abortControllerRef: APIOptions['abortControllerRef']) => Promise<{
|
181
|
+
rows: RowsType<RowData>;
|
182
|
+
totalRows: number;
|
183
|
+
}>;
|
181
184
|
}) & ({
|
182
185
|
paginationVariant: PaginationEnum.PAGINATED;
|
183
186
|
pageSizeOptions?: PageSizeOption[];
|
@@ -203,8 +206,9 @@ export interface GetFilteringPromiseProps<RowData extends unknown> {
|
|
203
206
|
searchSortTimeoutRef: React.MutableRefObject<number>;
|
204
207
|
callback: () => Promise<RowsType<RowData>> | RowsType<RowData>;
|
205
208
|
}
|
206
|
-
export interface TableContentProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> extends Pick<InternalTableProps<RowData, FilterVariant, AdditionalProps>, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'RowActionsOnHoverComponent' | 'pageSizeOptions'> {
|
209
|
+
export interface TableContentProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> extends Pick<InternalTableProps<RowData, FilterVariant, AdditionalProps>, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'RowActionsOnHoverComponent' | 'pageSizeOptions' | 'getRows'> {
|
207
210
|
filteredRows: RowsType<RowData>;
|
208
211
|
areFilteredRowsLoading: boolean;
|
212
|
+
totalRows: number;
|
209
213
|
}
|
210
214
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Column, ConfigurableColumnsType, FiltersTypeEnum, GetFilteringPromiseProps, RowsType, TableProps, UseFiltersReturnType } from './types';
|
2
|
-
export declare const searchAndSortRows: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>(rows: TableProps<RowData, FilterVariant, AdditionalProps>["rows"], filter: TableProps<RowData, FilterVariant, AdditionalProps>["filter"], filterData: UseFiltersReturnType, comparator?: Column<RowData, FilterVariant, AdditionalProps>["comparator"]) =>
|
2
|
+
export declare const searchAndSortRows: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>(rows: TableProps<RowData, FilterVariant, AdditionalProps>["rows"], filter: TableProps<RowData, FilterVariant, AdditionalProps>["filter"], filterData: UseFiltersReturnType, comparator?: Column<RowData, FilterVariant, AdditionalProps>["comparator"]) => Awaited<ReturnType<TableProps<RowData>["getRows"]>>;
|
3
3
|
export declare const getVisibleColumnsFromLocalStorage: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ allColumns, id, }: Pick<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>, "allColumns"> & Pick<TableProps<RowData, FilterVariant, AdditionalProps>, "id">) => Column<RowData, FilterVariant, AdditionalProps>[];
|
4
4
|
export declare const setVisibleColumnsToLocalStorage: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ id, visibleColumns, }: Pick<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>, "visibleColumns"> & Pick<TableProps<RowData, FilterVariant, AdditionalProps>, "id">) => void;
|
5
5
|
export declare const getVisibleColumns: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ areColumnsConfigurable, columns, id, }: Pick<TableProps<RowData, FilterVariant, AdditionalProps>, "areColumnsConfigurable" | "columns" | "id">) => Column<RowData, FilterVariant, AdditionalProps>[];
|
@@ -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';
|
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-item' | '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
|
}
|
@@ -36,13 +38,18 @@ export interface GetUserPreferencesParsedDTO {
|
|
36
38
|
*
|
37
39
|
*/
|
38
40
|
resources?: UserPreferenceResourceType;
|
41
|
+
commandBar: {
|
42
|
+
recentNavigationActions: {
|
43
|
+
id: NavigationItemID | NavigationSubMenuItemID;
|
44
|
+
}[];
|
45
|
+
};
|
39
46
|
}
|
40
47
|
export interface UserPreferencesPayloadValueType extends GetUserPreferencesParsedDTO {
|
41
48
|
}
|
42
49
|
export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
|
43
50
|
value: string;
|
44
51
|
}
|
45
|
-
export interface UserPreferencesType {
|
52
|
+
export interface UserPreferencesType extends Pick<GetUserPreferencesParsedDTO, 'commandBar'> {
|
46
53
|
/**
|
47
54
|
* Preferred theme for the user
|
48
55
|
* If null, would forcibly show user theme switcher dialog for user to select
|
@@ -69,7 +76,7 @@ export interface UseUserPreferencesProps {
|
|
69
76
|
migrateUserPreferences?: (userPreferencesResponse: UserPreferencesType) => Promise<UserPreferencesType>;
|
70
77
|
recentlyVisitedFetchConfig?: RecentlyVisitedFetchConfigType;
|
71
78
|
}
|
72
|
-
|
79
|
+
type UserPathValueMapType = {
|
73
80
|
path: 'themePreference';
|
74
81
|
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
75
82
|
resourceKind?: never;
|
@@ -84,7 +91,28 @@ export type UserPathValueMapType = {
|
|
84
91
|
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
85
92
|
resourceKind: PreferredResourceKindType;
|
86
93
|
userPreferencesResponse?: UserPreferencesType;
|
94
|
+
} | {
|
95
|
+
path: 'commandBar.recentNavigationActions';
|
96
|
+
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
97
|
+
resourceKind?: never;
|
98
|
+
userPreferencesResponse?: never;
|
87
99
|
};
|
100
|
+
export type GetUserPreferencePayloadParams = {
|
101
|
+
userPreferencesResponse: UserPreferencesType;
|
102
|
+
resourceKind?: PreferredResourceKindType;
|
103
|
+
} & ({
|
104
|
+
path: 'themePreference';
|
105
|
+
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
106
|
+
} | {
|
107
|
+
path: 'pipelineRBACViewSelectedTab';
|
108
|
+
value: Required<Pick<UserPreferencesType, 'pipelineRBACViewSelectedTab'>>;
|
109
|
+
} | {
|
110
|
+
path: 'resources';
|
111
|
+
value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
|
112
|
+
} | {
|
113
|
+
path: 'commandBar.recentNavigationActions';
|
114
|
+
value: UserPreferencesType['commandBar']['recentNavigationActions'];
|
115
|
+
});
|
88
116
|
export type UserPreferenceResourceProps = UserPathValueMapType & {
|
89
117
|
shouldThrowError?: boolean;
|
90
118
|
userPreferencesResponse?: UserPreferencesType;
|
@@ -92,3 +120,4 @@ export type UserPreferenceResourceProps = UserPathValueMapType & {
|
|
92
120
|
export interface UserPreferenceFilteredListTypes extends UserPreferenceRecentlyVisitedAppsTypes {
|
93
121
|
userPreferencesResponse?: UserPreferencesType;
|
94
122
|
}
|
123
|
+
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,2 +1,3 @@
|
|
1
|
-
import { ToastProps } from './types';
|
1
|
+
import { ShortcutToastContentProps, ToastProps } from './types';
|
2
2
|
export declare const ToastContent: ({ title, description, buttonProps, }: Pick<ToastProps, "title" | "description" | "buttonProps">) => JSX.Element;
|
3
|
+
export declare const ShortcutToastContent: ({ shortcuts, text }: ShortcutToastContentProps) => JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ToastContainerProps, ToastOptions } from 'react-toastify';
|
2
|
-
import {
|
2
|
+
import { BaseToastProps, ToastProps } from './types';
|
3
3
|
export declare const TOAST_BASE_CONFIG: ToastContainerProps;
|
4
|
-
export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<
|
4
|
+
export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<BaseToastProps['variant'], Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
|
@@ -65,7 +65,7 @@ declare class ToastManager {
|
|
65
65
|
/**
|
66
66
|
* Handler for showing the toast
|
67
67
|
*/
|
68
|
-
showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
|
68
|
+
showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, text, shortcuts, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
|
69
69
|
/**
|
70
70
|
* Handler for dismissing an existing toast
|
71
71
|
*/
|