@devtron-labs/devtron-fe-common-lib 1.19.2 → 1.19.4-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-Yvnd5mSs.js → @code-editor-BDOpS-4p.js} +9690 -8976
- package/dist/{@common-rjsf-DSIk1aHH.js → @common-rjsf-B26oCCx-.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/CIPipeline.Types.d.ts +1 -0
- package/dist/Common/Common.service.d.ts +1 -1
- package/dist/Common/Constants.d.ts +11 -0
- 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/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-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 +9 -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/Backdrop/types.d.ts +11 -2
- 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 +56 -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/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +0 -9
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/types.d.ts +1 -0
- 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/Icon/Icon.d.ts +23 -1
- 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/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 +13 -3
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +31 -2
- 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 +3 -1
- package/dist/Shared/types.d.ts +10 -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-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-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 +928 -914
- package/package.json +2 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
- package/dist/assets/ic-apica.1c78c468.svg +0 -31
@@ -5,7 +5,6 @@ export declare const iconMap: {
|
|
5
5
|
'ic-activity': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
6
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
7
|
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
|
-
'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
8
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
9
|
'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
10
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -15,6 +14,7 @@ export declare const iconMap: {
|
|
15
14
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
15
|
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
16
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
|
+
'ic-aws-codecommit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
18
|
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
19
19
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
20
20
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -22,6 +22,7 @@ export declare const iconMap: {
|
|
22
22
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
23
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
24
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
|
+
'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
26
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
27
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
28
|
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -42,13 +43,16 @@ export declare const iconMap: {
|
|
42
43
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
44
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
45
|
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
|
+
'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
47
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
48
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
49
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
50
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
|
+
'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
52
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
53
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
54
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
+
'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
56
|
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
57
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
58
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -66,7 +70,11 @@ export declare const iconMap: {
|
|
66
70
|
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
71
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
72
|
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
|
+
'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
74
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
|
+
'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
|
+
'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
|
+
'ic-diff-updated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
78
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
79
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
80
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -88,6 +96,7 @@ export declare const iconMap: {
|
|
88
96
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
97
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
90
98
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
99
|
+
'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
91
100
|
'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
92
101
|
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
93
102
|
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -108,6 +117,8 @@ export declare const iconMap: {
|
|
108
117
|
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
118
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
119
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
120
|
+
'ic-group-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
|
+
'ic-group-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
122
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
123
|
'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
113
124
|
'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -122,6 +133,7 @@ export declare const iconMap: {
|
|
122
133
|
'ic-info-filled-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
134
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
135
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
|
+
'ic-input': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
137
|
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
138
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
127
139
|
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -129,6 +141,7 @@ export declare const iconMap: {
|
|
129
141
|
'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
130
142
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
131
143
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
144
|
+
'ic-kubernetes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
145
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
146
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
147
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -138,8 +151,10 @@ export declare const iconMap: {
|
|
138
151
|
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
152
|
'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
153
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
154
|
+
'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
141
155
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
142
156
|
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
157
|
+
'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
143
158
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
144
159
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
145
160
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -171,6 +186,7 @@ export declare const iconMap: {
|
|
171
186
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
172
187
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
173
188
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
189
|
+
'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
174
190
|
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
175
191
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
176
192
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -188,6 +204,7 @@ export declare const iconMap: {
|
|
188
204
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
189
205
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
190
206
|
'ic-stop-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
207
|
+
'ic-storage': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
191
208
|
'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
192
209
|
'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
193
210
|
'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -199,6 +216,7 @@ export declare const iconMap: {
|
|
199
216
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
200
217
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
201
218
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
219
|
+
'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
202
220
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
203
221
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
204
222
|
'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -209,6 +227,7 @@ export declare const iconMap: {
|
|
209
227
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
210
228
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
211
229
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
230
|
+
'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
212
231
|
'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
213
232
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
214
233
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -217,6 +236,9 @@ export declare const iconMap: {
|
|
217
236
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
218
237
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
219
238
|
'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
239
|
+
'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
240
|
+
'ic-visibility-on': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
241
|
+
'ic-warning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
220
242
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
221
243
|
'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
222
244
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -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, 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, }: 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,21 @@ 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;
|
162
172
|
} /**
|
163
173
|
* WARNING: For internal use only.
|
164
174
|
*/ & ({
|
@@ -188,7 +198,7 @@ export type TreeViewProps<DataAttributeType = null> = {
|
|
188
198
|
expandedMap?: never;
|
189
199
|
isControlled?: false;
|
190
200
|
});
|
191
|
-
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'
|
201
|
+
export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'>, Required<Pick<TreeViewProps, 'variant'>> {
|
192
202
|
type: 'heading' | 'item';
|
193
203
|
isSelected: boolean;
|
194
204
|
}
|
@@ -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';
|
@@ -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-configurations' | 'application-management-policies' | 'application-management-others' | 'infrastructure-management-overview' | 'infrastructure-management-resource-browser' | 'infrastructure-management-intercepted-changes' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-software-release' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-application-security' | 'security-center-security-policies' | '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';
|
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-lock-deployment-configuration' | 'application-management-others-application-templates' | 'application-management-others-projects' | '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 {};
|
@@ -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
|
*/
|
@@ -1,13 +1,28 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks';
|
2
3
|
import { ButtonComponentType, ButtonProps } from '../../Components';
|
3
4
|
export declare enum ToastVariantType {
|
4
5
|
info = "info",
|
5
6
|
success = "success",
|
6
7
|
error = "error",
|
7
8
|
warn = "warn",
|
8
|
-
notAuthorized = "notAuthorized"
|
9
|
+
notAuthorized = "notAuthorized",
|
10
|
+
shortcut = "shortcut"
|
9
11
|
}
|
10
|
-
export interface
|
12
|
+
export interface ShortcutToastProps {
|
13
|
+
variant: ToastVariantType.shortcut;
|
14
|
+
/**
|
15
|
+
* Text to display along the shortcuts in the toast
|
16
|
+
* Example: "Press [S] to switch context"
|
17
|
+
*/
|
18
|
+
text: string;
|
19
|
+
/**
|
20
|
+
* The shortcuts to be displayed in the toast
|
21
|
+
* Note: The shortcuts should be in the format of `['Ctrl', 'A']
|
22
|
+
*/
|
23
|
+
shortcuts: SupportedKeyboardKeysType[];
|
24
|
+
}
|
25
|
+
export interface BaseToastProps {
|
11
26
|
/**
|
12
27
|
* Title for the toast
|
13
28
|
* If not provided, defaults to a value based on the selected variant
|
@@ -26,7 +41,7 @@ export interface ToastProps {
|
|
26
41
|
*
|
27
42
|
* @default ToastVariantType.info
|
28
43
|
*/
|
29
|
-
variant?: ToastVariantType
|
44
|
+
variant?: Exclude<ToastVariantType, ToastVariantType.shortcut>;
|
30
45
|
/**
|
31
46
|
* Props for the action button to be displayed in the toast
|
32
47
|
*
|
@@ -38,3 +53,8 @@ export interface ToastProps {
|
|
38
53
|
*/
|
39
54
|
progressBarBg?: string;
|
40
55
|
}
|
56
|
+
export type ToastProps = (BaseToastProps & Partial<Record<Exclude<keyof ShortcutToastProps, 'variant'>, never>>) | (ShortcutToastProps & Partial<Record<Exclude<keyof BaseToastProps, 'variant'>, never>>);
|
57
|
+
export interface ShortcutToastContentProps {
|
58
|
+
text: string;
|
59
|
+
shortcuts: SupportedKeyboardKeysType[];
|
60
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { AppConfigProps } from '../../Pages/index';
|
2
2
|
import { ResponseType } from '../../Common';
|
3
|
-
import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType,
|
4
|
-
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<
|
3
|
+
import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType, CIMaterialInfoDTO, GetCITriggerInfoParamsType } from './app.types';
|
4
|
+
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<ResponseType<CIMaterialInfoDTO>>;
|
5
5
|
/**
|
6
6
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
7
7
|
*/
|
8
|
-
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<
|
8
|
+
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<ResponseType<CIMaterialInfoDTO>>;
|
9
9
|
export declare const getAppEnvDeploymentConfig: ({ params, signal, isTemplateView, appId, }: {
|
10
10
|
params: AppEnvDeploymentConfigPayloadType;
|
11
11
|
signal?: AbortSignal;
|