@devtron-labs/devtron-fe-common-lib 1.19.3 → 1.19.4-pre-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/{@code-editor-CNbDePr1.js → @code-editor-BoOtx8NN.js} +9634 -9049
  2. package/dist/{@common-rjsf-D5cvCLaG.js → @common-rjsf-Bu-65uaK.js} +46 -46
  3. package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
  4. package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
  5. package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
  7. package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
  8. package/dist/Common/CIPipeline.Types.d.ts +1 -0
  9. package/dist/Common/Common.service.d.ts +1 -1
  10. package/dist/Common/Constants.d.ts +11 -0
  11. package/dist/Common/ErrorPage.d.ts +1 -1
  12. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  13. package/dist/Common/Helper.d.ts +1 -1
  14. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +1 -0
  15. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
  16. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  17. package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +27 -0
  18. package/dist/Common/InteractiveCellText/index.d.ts +2 -0
  19. package/dist/Common/InteractiveCellText/types.d.ts +10 -0
  20. package/dist/Common/RJSF/Form.d.ts +1 -1
  21. package/dist/Common/RJSF/utils.d.ts +1 -1
  22. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  23. package/dist/Common/SearchBar/types.d.ts +4 -0
  24. package/dist/Common/Types.d.ts +13 -5
  25. package/dist/Common/index.d.ts +1 -0
  26. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +1 -0
  27. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +1 -0
  28. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
  29. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
  30. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
  31. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
  32. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
  33. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
  34. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
  35. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +9 -0
  36. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
  37. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
  38. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
  39. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
  40. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
  41. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
  42. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
  43. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
  44. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +1 -0
  45. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
  46. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
  47. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
  48. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
  49. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
  50. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
  51. package/dist/Pages-Devtron-2.0/index.d.ts +1 -0
  52. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +8 -8
  53. package/dist/Shared/Components/Backdrop/types.d.ts +11 -2
  54. package/dist/Shared/Components/Button/Button.component.d.ts +68 -68
  55. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  56. package/dist/Shared/Components/CICDHistory/types.d.ts +2 -0
  57. package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
  58. package/dist/Shared/Components/Charts/constants.d.ts +16 -0
  59. package/dist/Shared/Components/Charts/index.d.ts +2 -0
  60. package/dist/Shared/Components/Charts/types.d.ts +56 -0
  61. package/dist/Shared/Components/Charts/utils.d.ts +11 -0
  62. package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
  63. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
  64. package/dist/Shared/Components/DTFocusTrap/types.d.ts +0 -9
  65. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  66. package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +1 -1
  67. package/dist/Shared/Components/GenericModal/types.d.ts +1 -0
  68. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  69. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
  70. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +1 -0
  71. package/dist/Shared/Components/Icon/Icon.d.ts +21 -0
  72. package/dist/Shared/Components/Illustration/Illustration.d.ts +2 -0
  73. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
  74. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
  75. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
  76. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
  77. package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -2
  78. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  79. package/dist/Shared/Components/RegistryIcon/RegistryIcon.d.ts +1 -1
  80. package/dist/Shared/Components/RegistryIcon/types.d.ts +17 -2
  81. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  82. package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
  83. package/dist/Shared/Components/Table/types.d.ts +8 -4
  84. package/dist/Shared/Components/Table/utils.d.ts +1 -1
  85. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  86. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  87. package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
  88. package/dist/Shared/Components/TreeView/types.d.ts +13 -3
  89. package/dist/Shared/Components/index.d.ts +2 -0
  90. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  91. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +31 -2
  92. package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -1
  93. package/dist/Shared/Services/ToastManager/constants.d.ts +2 -2
  94. package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
  95. package/dist/Shared/Services/ToastManager/types.d.ts +23 -3
  96. package/dist/Shared/Services/app.service.d.ts +3 -3
  97. package/dist/assets/@code-editor.css +1 -1
  98. package/dist/assets/ic-aws-codecommit.236f850c.svg +10 -0
  99. package/dist/assets/ic-bot.65f403dd.svg +3 -0
  100. package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
  101. package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
  102. package/dist/assets/ic-coins.2c15f406.svg +3 -0
  103. package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
  104. package/dist/assets/ic-diff-added.6ef6f938.svg +3 -0
  105. package/dist/assets/ic-diff-deleted.54eb24dd.svg +3 -0
  106. package/dist/assets/ic-diff-updated.294b925e.svg +4 -0
  107. package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
  108. package/dist/assets/ic-group-filter-applied.2cdb11e7.svg +20 -0
  109. package/dist/assets/{ic-folder.051cd30d.svg → ic-group-filter.ed1869f5.svg} +3 -3
  110. package/dist/assets/ic-input.57281408.svg +3 -0
  111. package/dist/assets/ic-locked.dd40e181.svg +3 -0
  112. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
  113. package/dist/assets/ic-storage.03f282b6.svg +21 -0
  114. package/dist/assets/ic-tag.5fdc7834.svg +3 -0
  115. package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
  116. package/dist/assets/ic-warning-fill.bfea8b38.svg +4 -0
  117. package/dist/assets/img-mechanical-operation.04a318d6.svg +17 -0
  118. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
  119. package/dist/index.d.ts +1 -0
  120. package/dist/index.js +906 -898
  121. package/package.json +2 -1
@@ -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,6 +22,7 @@ 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>>;
@@ -41,13 +43,16 @@ export declare const iconMap: {
41
43
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
42
44
  'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
43
45
  'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
+ 'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
44
47
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
45
48
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
49
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
50
  'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
+ 'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
52
  'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
53
  'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
54
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
+ 'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
56
  'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
57
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
58
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -65,7 +70,11 @@ export declare const iconMap: {
65
70
  'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
71
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
72
  'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
+ 'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
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>>;
69
78
  'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
79
  'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
80
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -87,6 +96,7 @@ export declare const iconMap: {
87
96
  'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
88
97
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
89
98
  'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
99
+ 'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
90
100
  'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
91
101
  'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
102
  'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -107,6 +117,8 @@ export declare const iconMap: {
107
117
  'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
108
118
  'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
109
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>>;
110
122
  'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
111
123
  'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
112
124
  'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -121,6 +133,7 @@ export declare const iconMap: {
121
133
  'ic-info-filled-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
122
134
  'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
123
135
  'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
136
+ 'ic-input': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
124
137
  'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
125
138
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
126
139
  'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -137,6 +150,7 @@ export declare const iconMap: {
137
150
  'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
138
151
  'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
139
152
  'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
153
+ 'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
140
154
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
141
155
  'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
142
156
  'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -170,6 +184,7 @@ export declare const iconMap: {
170
184
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
171
185
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
172
186
  'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
187
+ 'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
173
188
  'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
174
189
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
175
190
  'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -187,6 +202,7 @@ export declare const iconMap: {
187
202
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
188
203
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
189
204
  'ic-stop-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
205
+ 'ic-storage': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
190
206
  'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
191
207
  'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
192
208
  'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -198,6 +214,7 @@ export declare const iconMap: {
198
214
  'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
199
215
  'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
200
216
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
217
+ 'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
201
218
  'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
202
219
  'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
203
220
  'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -208,6 +225,7 @@ export declare const iconMap: {
208
225
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
209
226
  'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
210
227
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
228
+ 'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
211
229
  'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
212
230
  'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
213
231
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -216,6 +234,9 @@ export declare const iconMap: {
216
234
  'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
217
235
  'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
218
236
  'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
237
+ 'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
238
+ 'ic-visibility-on': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
239
+ 'ic-warning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
219
240
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
220
241
  'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
221
242
  '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,3 @@
1
+ import { KeyboardShortcutProps } from './types';
2
+ declare const KeyboardShortcut: ({ keyboardKey }: KeyboardShortcutProps) => JSX.Element;
3
+ export default KeyboardShortcut;
@@ -0,0 +1 @@
1
+ export { default as KeyboardShortcut } from './KeyboardShortcut.component';
@@ -0,0 +1,4 @@
1
+ import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
2
+ export interface KeyboardShortcutProps {
3
+ keyboardKey: SupportedKeyboardKeysType;
4
+ }
@@ -1,3 +1,3 @@
1
1
  import { MaterialHistoryProps } from './types';
2
- declare const MaterialHistory: ({ material, pipelineName, ciPipelineId, selectCommit, isCommitInfoModal, }: MaterialHistoryProps) => JSX.Element;
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
- ciPipelineId?: string;
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" | "bottom" | "right" | "left";
90
+ fallbackPosition: "top" | "right" | "bottom" | "left";
91
91
  fallbackAlignment: "start" | "middle" | "end";
92
92
  };
@@ -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 interface RegistryIconProps {
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(--R500)" | "var(--N300)" | "var(--G500)" | "var(--Y500)" | "var(--R700)" | "var(--O500)";
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<RowsType<RowData>>;
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"]) => RowsType<RowData>;
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, if secondary the background color will be bg__secondary bg__hover-secondary--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';
@@ -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
- export type UserPathValueMapType = {
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 { ToastProps, ToastVariantType } from './types';
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<ToastVariantType, Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
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 ToastProps {
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, CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
4
- export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
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<CIMaterialInfoType>;
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;