@devtron-labs/devtron-fe-common-lib 1.21.0-beta-1 → 1.21.0-beta-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/{@code-editor-Db3cFxL2.js → @code-editor-Y6MpEL3Z.js} +11387 -9831
  2. package/dist/{@common-rjsf-4dkL5TGO.js → @common-rjsf-DR5BfKgV.js} +30 -30
  3. package/dist/{@framer-motion-s0JmPZws.js → @framer-motion-BHpgn0v_.js} +196 -194
  4. package/dist/{@moment-CGWt8tF2.js → @moment-CwOqp704.js} +493 -524
  5. package/dist/{@react-select-oQ7yDO_E.js → @react-select-DjXUormN.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-jv4XRZlA.js → @react-virtualized-sticky-tree-BcREO5hN.js} +1 -1
  7. package/dist/{@vendor-x0E6hada.js → @vendor-Dg_U8cQV.js} +33775 -28795
  8. package/dist/Common/API/reactQueryHooks.d.ts +1 -1
  9. package/dist/Common/API/types.d.ts +1 -1
  10. package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +2 -0
  11. package/dist/Common/BreadCrumb/Types.d.ts +20 -0
  12. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +2 -2
  13. package/dist/Common/ClipboardButton/types.d.ts +12 -2
  14. package/dist/Common/Common.service.d.ts +4 -1
  15. package/dist/Common/Constants.d.ts +70 -21
  16. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
  17. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  18. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  19. package/dist/Common/SearchBar/types.d.ts +8 -0
  20. package/dist/Common/SegmentedBarChart/types.d.ts +10 -2
  21. package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
  22. package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
  23. package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
  24. package/dist/Common/SegmentedControl/index.d.ts +1 -1
  25. package/dist/Common/SegmentedControl/types.d.ts +13 -9
  26. package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
  27. package/dist/Common/Types.d.ts +64 -5
  28. package/dist/Common/index.d.ts +1 -1
  29. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
  30. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -2
  31. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +13 -7
  32. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
  33. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
  34. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
  35. package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
  36. package/dist/Pages/ResourceBrowser/types.d.ts +2 -1
  37. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
  38. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
  39. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +6 -0
  40. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -0
  41. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
  42. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
  43. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
  44. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
  45. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
  46. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
  47. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
  48. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +2 -0
  49. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +31 -0
  50. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
  51. package/dist/Pages-Devtron-2.0/DataProtectionManagement/index.d.ts +1 -0
  52. package/dist/Pages-Devtron-2.0/DataProtectionManagement/types.d.ts +8 -0
  53. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
  54. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
  55. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
  56. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
  57. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
  58. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
  59. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
  60. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
  61. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +1 -0
  62. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +1 -0
  63. package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +11 -0
  64. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/SecurityCenterIcon.d.ts +1 -0
  65. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/index.d.ts +1 -0
  66. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/utils.d.ts +6 -0
  67. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/index.d.ts +1 -0
  68. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
  69. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
  70. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
  71. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
  72. package/dist/Pages-Devtron-2.0/index.d.ts +5 -0
  73. package/dist/Shared/Components/ActionMenu/types.d.ts +3 -0
  74. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +2 -2
  75. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  76. package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
  77. package/dist/Shared/Components/Badge/utils.d.ts +2 -1
  78. package/dist/Shared/Components/Button/Button.component.d.ts +12 -12
  79. package/dist/Shared/Components/Card/Card.component.d.ts +3 -0
  80. package/dist/Shared/Components/Card/constants.d.ts +4 -0
  81. package/dist/Shared/Components/Card/index.d.ts +2 -0
  82. package/dist/Shared/Components/Card/types.d.ts +25 -0
  83. package/dist/Shared/Components/Charts/Chart.component.d.ts +121 -0
  84. package/dist/Shared/Components/Charts/constants.d.ts +10 -0
  85. package/dist/Shared/Components/Charts/index.d.ts +4 -0
  86. package/dist/Shared/Components/Charts/plugins.d.ts +7 -0
  87. package/dist/Shared/Components/Charts/types.d.ts +135 -0
  88. package/dist/Shared/Components/Charts/utils.d.ts +30 -0
  89. package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +3 -0
  90. package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +1 -0
  91. package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +5 -0
  92. package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +2 -0
  93. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
  94. package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
  95. package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +1 -1
  96. package/dist/Shared/Components/DatePicker/constants.d.ts +2 -101
  97. package/dist/Shared/Components/DatePicker/index.d.ts +0 -2
  98. package/dist/Shared/Components/DatePicker/types.d.ts +34 -30
  99. package/dist/Shared/Components/DatePicker/utils.d.ts +1 -13
  100. package/dist/Shared/Components/DocLink/constants.d.ts +3 -0
  101. package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
  102. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  103. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  104. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
  105. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
  106. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -3
  107. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  108. package/dist/Shared/Components/Header/types.d.ts +2 -0
  109. package/dist/Shared/Components/Icon/Icon.d.ts +69 -4
  110. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  111. package/dist/Shared/Components/Icon/types.d.ts +6 -0
  112. package/dist/Shared/Components/Illustration/Illustration.d.ts +6 -0
  113. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
  114. package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
  115. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
  116. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
  117. package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
  118. package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
  119. package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +20 -0
  120. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
  121. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
  122. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +3 -3
  123. package/dist/Shared/Components/Security/constants.d.ts +2 -0
  124. package/dist/Shared/Components/Security/index.d.ts +3 -0
  125. package/dist/Shared/Components/Security/types.d.ts +10 -0
  126. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  127. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  128. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
  129. package/dist/Shared/Components/SelectPicker/type.d.ts +3 -1
  130. package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -0
  131. package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
  132. package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
  133. package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
  134. package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
  135. package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
  136. package/dist/Shared/Components/Table/types.d.ts +12 -6
  137. package/dist/Shared/Components/TrailingItem/types.d.ts +4 -0
  138. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  139. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  140. package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
  141. package/dist/Shared/Components/TreeView/types.d.ts +17 -3
  142. package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +3 -3
  143. package/dist/Shared/Components/index.d.ts +6 -0
  144. package/dist/Shared/Helpers.d.ts +11 -0
  145. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -5
  146. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +5 -20
  147. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  148. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
  149. package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
  150. package/dist/Shared/Services/common.service.d.ts +3 -0
  151. package/dist/Shared/Services/types.d.ts +10 -1
  152. package/dist/Shared/constants.d.ts +3 -16
  153. package/dist/Shared/types.d.ts +22 -11
  154. package/dist/Shared/validations.d.ts +2 -0
  155. package/dist/assets/@code-editor.css +1 -1
  156. package/dist/assets/@vendor.css +1 -1
  157. package/dist/assets/create-backup-schedule.bbac4a86.webp +0 -0
  158. package/dist/assets/create-backup-snapshot.c794f612.webp +0 -0
  159. package/dist/assets/ic-ai.25e44e0c.svg +3 -0
  160. package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
  161. package/dist/assets/ic-application-group.4b448cca.svg +3 -0
  162. package/dist/assets/ic-application-management.7fb9e3a0.svg +3 -0
  163. package/dist/assets/ic-application-template.212d14f1.svg +3 -0
  164. package/dist/assets/ic-application.4c80bfcf.svg +3 -0
  165. package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
  166. package/dist/assets/ic-arrow-line-down.b6a98848.svg +3 -0
  167. package/dist/assets/ic-aws.eb2d0124.svg +12 -0
  168. package/dist/assets/ic-backup-and-schedule.51b7d3dd.svg +3 -0
  169. package/dist/assets/ic-backup-color.dc62e9d5.svg +6 -0
  170. package/dist/assets/ic-backup-location.ebaf1148.svg +3 -0
  171. package/dist/assets/ic-backup-schedule-color.a16c34b0.svg +5 -0
  172. package/dist/assets/ic-bg-backup-schedule.9ef9bc39.svg +19 -0
  173. package/dist/assets/ic-bg-backups.396e99bd.svg +19 -0
  174. package/dist/assets/ic-bg-build.8609d0ea.svg +13 -0
  175. package/dist/assets/ic-bg-cpu.15ec70f0.svg +11 -0
  176. package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
  177. package/dist/assets/ic-bg-memory.5373a125.svg +11 -0
  178. package/dist/assets/ic-bg-pause-schedule.6edcc1d4.svg +14 -0
  179. package/dist/assets/ic-bg-production-pipelines.2951cdc0.svg +22 -0
  180. package/dist/assets/ic-bg-project.84658405.svg +12 -0
  181. package/dist/assets/ic-bg-ransomware-vulnerable-cluster.1b25a5d0.svg +7 -0
  182. package/dist/assets/ic-bg-restore.4fa13869.svg +33 -0
  183. package/dist/assets/ic-bg-scan.2249360c.svg +28 -0
  184. package/dist/assets/ic-bg-storage-locations.894070b0.svg +22 -0
  185. package/dist/assets/ic-bg-webhook.b455152d.svg +13 -0
  186. package/dist/assets/ic-bot.65f403dd.svg +3 -0
  187. package/dist/assets/ic-building.2405d07b.svg +3 -0
  188. package/dist/assets/ic-chart-line-up.7ab47f4e.svg +3 -0
  189. package/dist/assets/ic-check-circle.af18cd7e.svg +3 -0
  190. package/dist/assets/ic-circle-small.a0740b0e.svg +3 -0
  191. package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
  192. package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
  193. package/dist/assets/ic-cloud-upload.55d9c163.svg +3 -0
  194. package/dist/assets/ic-coins-color-animated.fe11cdc3.svg +112 -0
  195. package/dist/assets/ic-coins.2c15f406.svg +3 -0
  196. package/dist/assets/ic-cost-visibility.5595009f.svg +3 -0
  197. package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
  198. package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
  199. package/dist/assets/ic-edit-lines.57927b07.svg +3 -0
  200. package/dist/assets/ic-file-download.ca57c068.svg +5 -0
  201. package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
  202. package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
  203. package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
  204. package/dist/assets/ic-global-overview.56ba9dc0.svg +3 -0
  205. package/dist/assets/ic-google-cloud.3077a8dd.svg +6 -0
  206. package/dist/assets/ic-infrastructure-management.4b052d41.svg +3 -0
  207. package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
  208. package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
  209. package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +3 -0
  210. package/dist/assets/ic-otc-cloud.43b31bd8.svg +5 -0
  211. package/dist/assets/ic-party.cfc7e7c6.svg +4 -0
  212. package/dist/assets/ic-pause.4e5c6056.svg +4 -0
  213. package/dist/assets/ic-priority-medium-fill.7bab0ff8.svg +4 -0
  214. package/dist/assets/ic-release-hub.25b9707a.svg +3 -0
  215. package/dist/assets/ic-resource-browser.4ff3e571.svg +3 -0
  216. package/dist/assets/ic-resource-watcher.7cce5305.svg +3 -0
  217. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
  218. package/dist/assets/ic-security-fixable.168b5bf8.svg +12 -0
  219. package/dist/assets/ic-security-not-fixable.be099f65.svg +12 -0
  220. package/dist/assets/ic-security-policy.874568da.svg +3 -0
  221. package/dist/assets/ic-security-scan.3ae78d50.svg +3 -0
  222. package/dist/assets/ic-security-vulnerability.c954b87a.svg +4 -0
  223. package/dist/assets/ic-software-release-management.dceedf80.svg +3 -0
  224. package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
  225. package/dist/assets/ic-tenants.4f997b9a.svg +3 -0
  226. package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
  227. package/dist/assets/ic-warning-stroke.fc850a4a.svg +3 -0
  228. package/dist/assets/img-folder-empty.8e898c33.svg +33 -0
  229. package/dist/assets/img-no-backup-location.0e8699c5.svg +180 -0
  230. package/dist/assets/img-no-restores.f26cb7db.svg +114 -0
  231. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
  232. package/dist/index.d.ts +5 -6
  233. package/dist/index.js +1020 -967
  234. package/package.json +5 -7
  235. package/dist/@react-dates-C-SIZ4x1.js +0 -7634
  236. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
  237. package/dist/Shared/Components/DatePicker/DayPickerRangeController.d.ts +0 -2
  238. package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +0 -11
  239. package/dist/assets/@react-dates.css +0 -1
  240. package/dist/assets/ic-bg-cloud-vms.7241e97c.svg +0 -4
  241. package/dist/assets/ic-bg-healthy-vms.653e8abc.svg +0 -4
  242. package/dist/assets/ic-bg-running-vms.e469929a.svg +0 -4
  243. package/dist/assets/ic-bg-tenants.d0369094.svg +0 -4
  244. package/dist/assets/ic-calender-blank.963e3423.svg +0 -19
@@ -1,6 +1,6 @@
1
1
  import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import { ServerErrors } from '../ServerError';
3
3
  import { ResponseType } from '../Types';
4
- export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData>, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
4
+ export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
5
5
  export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
6
6
  export { useQueryClient };
@@ -18,6 +18,6 @@ export interface FetchInTimeParamsType<Data = object> {
18
18
  options?: APIOptions;
19
19
  isMultipartRequest?: boolean;
20
20
  }
21
- export interface FetchAPIParamsType<Data = object> extends Omit<FetchInTimeParamsType<Data>, 'options'>, Pick<APIOptions, 'preventAutoLogout' | 'preventLicenseRedirect' | 'shouldParseServerErrorForUnauthorizedUser'> {
21
+ export interface FetchAPIParamsType<Data = object> extends Omit<FetchInTimeParamsType<Data>, 'options'>, Pick<APIOptions, 'preventAutoLogout' | 'preventLicenseRedirect' | 'shouldParseServerErrorForUnauthorizedUser' | 'isProxyHost'> {
22
22
  signal: AbortSignal;
23
23
  }
@@ -0,0 +1,2 @@
1
+ import { NestedBreadCrumbProps } from './Types';
2
+ export declare const NestedBreadCrumb: ({ redirectUrl, linkText, profileName, nestedBreadCrumbsText, }: NestedBreadCrumbProps) => JSX.Element;
@@ -34,3 +34,23 @@ export interface BreadcrumbTextProps {
34
34
  */
35
35
  shouldTruncate?: boolean;
36
36
  }
37
+ export interface NestedBreadCrumbProps {
38
+ /**
39
+ * It is the url to which the link should redirect
40
+ */
41
+ redirectUrl: string;
42
+ /**
43
+ * It is the text of the link
44
+ */
45
+ linkText: string;
46
+ /**
47
+ * It is the name of the profile
48
+ * If not given, would show "Create Profile"
49
+ */
50
+ profileName: string;
51
+ /**
52
+ * @default Profiles
53
+ * It is the text of the nested breadcrumb
54
+ */
55
+ nestedBreadCrumbsText?: string;
56
+ }
@@ -1,4 +1,4 @@
1
- import { default as ClipboardProps } from './types';
1
+ import { ClipboardProps } from './types';
2
2
  /**
3
3
  * @param content - Content to be copied
4
4
  * @param copiedTippyText - Text to be shown in the tippy when the content is copied, default 'Copied!'
@@ -7,4 +7,4 @@ import { default as ClipboardProps } from './types';
7
7
  * @param rootClassName - additional classes to add to button
8
8
  * @param iconSize - size of svg icon to be shown, default 16 (icon-dim-16)
9
9
  */
10
- export declare const ClipboardButton: ({ content, initialTippyText, copiedTippyText, duration, copyToClipboardPromise, rootClassName, iconSize, handleSuccess, }: ClipboardProps) => JSX.Element;
10
+ export declare const ClipboardButton: ({ content, initialTippyText, copiedTippyText, duration, copyToClipboardPromise, rootClassName, iconSize, handleSuccess, variant, size, }: ClipboardProps) => JSX.Element;
@@ -1,4 +1,14 @@
1
- export default interface ClipboardProps {
1
+ import { ComponentSizeType } from '../../Shared/constants';
2
+ export type ClipboardProps = ({
3
+ /**
4
+ * @default 'default'
5
+ */
6
+ variant?: 'default';
7
+ size?: never;
8
+ } | {
9
+ variant: 'button--secondary';
10
+ size: ComponentSizeType;
11
+ }) & {
2
12
  content: string;
3
13
  /**
4
14
  * tippy text before copying
@@ -16,4 +26,4 @@ export default interface ClipboardProps {
16
26
  rootClassName?: string;
17
27
  iconSize?: number;
18
28
  handleSuccess?: () => void;
19
- }
29
+ };
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
3
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType, ClusterDetailListType } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
6
6
  export declare const SourceTypeMap: {
@@ -36,3 +36,6 @@ export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }:
36
36
  abortControllerRef?: MutableRefObject<AbortController>;
37
37
  }) => Promise<GlobalVariableOptionType[]>;
38
38
  export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvProps) => Promise<EnvAppsMetaDTO>;
39
+ export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
40
+ export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
41
+ export declare const getDetailedClusterList: (clusterIds?: number[], signal?: AbortSignal) => Promise<ClusterDetailListType[]>;
@@ -3,7 +3,7 @@ export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
3
3
  export declare const Host: string;
4
4
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
5
5
  export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
6
- export declare const DOCUMENTATION_VERSION = "/devtron/v1.7";
6
+ export declare const DOCUMENTATION_VERSION = "/devtron/v2.0";
7
7
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
8
8
  export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
9
9
  export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/dashboard";
@@ -30,11 +30,7 @@ export declare const PATTERNS: {
30
30
  export declare const URLS: {
31
31
  readonly LOGIN: "/login";
32
32
  readonly LOGIN_SSO: "/login/sso";
33
- readonly PERMISSION_GROUPS: "/global-config/auth/groups";
34
- readonly APP: "/app";
35
33
  readonly APP_LIST: "list";
36
- readonly CHARTS_DISCOVER: "/chart-store/discover";
37
- readonly JOB: "/job";
38
34
  readonly CREATE_JOB: "create-job";
39
35
  readonly GETTING_STARTED: "getting-started";
40
36
  readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
@@ -49,28 +45,72 @@ export declare const URLS: {
49
45
  readonly DETAILS: "/details";
50
46
  readonly CD_DETAILS: "cd-details";
51
47
  readonly APP_TRIGGER: "trigger";
52
- readonly GLOBAL_CONFIG_DOCKER: "/global-config/docker";
53
48
  readonly DEPLOYMENT_HISTORY_CONFIGURATIONS: "/configuration";
54
- readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "/global-config/scoped-variables";
55
- readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: "/global-config/deployment-charts";
56
- readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: "/global-config/deployment-charts/upload-chart";
57
49
  readonly NETWORK_STATUS_INTERFACE: "/network-status-interface";
58
- readonly RESOURCE_BROWSER: "/resource-browser";
59
50
  readonly COMPARE_CLUSTERS: "/compare-clusters";
60
51
  readonly APP_CONFIG: "edit";
61
- readonly GLOBAL_CONFIG: "/global-config";
62
- readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
63
- readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
64
- readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
65
52
  readonly LICENSE_AUTH: "/license-auth";
66
- readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-config/cluster-env/edit/:clusterId";
53
+ readonly APPLICATION_MANAGEMENT: "/application-management";
54
+ readonly APPLICATION_MANAGEMENT_OVERVIEW: "/application-management/overview";
55
+ readonly APPLICATION_MANAGEMENT_APP: "/application-management/devtron-app";
56
+ readonly APPLICATION_MANAGEMENT_APP_LIST: "/application-management/devtron-app/list";
57
+ readonly APPLICATION_MANAGEMENT_CREATE_DEVTRON_APP: "/application-management/devtron-app/list/create-app";
58
+ readonly APPLICATION_MANAGEMENT_APPLICATION_GROUP: "/application-management/application-group";
59
+ readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP: "/application-management/templates/devtron-app";
60
+ readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP_CREATE: "/application-management/templates/devtron-app/create";
61
+ readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP_DETAIL: "/application-management/templates/devtron-app/detail/:appId";
62
+ readonly APPLICATION_MANAGEMENT_PROJECTS: "/application-management/projects";
63
+ readonly APPLICATION_MANAGEMENT_CONFIGURATIONS: "/application-management/configurations";
64
+ readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_DEPLOYMENT_CHARTS: "/application-management/configurations/deployment-charts";
65
+ readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_SCOPED_VARIABLES: "/application-management/configurations/scoped-variables";
66
+ readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA: "/application-management/configurations/build-infra";
67
+ readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA_PROFILES: "/application-management/configurations/build-infra/profiles";
68
+ readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_NOTIFICATIONS: "/application-management/configurations/notifications";
69
+ readonly INFRASTRUCTURE_MANAGEMENT: "/infrastructure-management";
70
+ readonly INFRASTRUCTURE_MANAGEMENT_OVERVIEW: "/infrastructure-management/overview";
71
+ readonly INFRASTRUCTURE_MANAGEMENT_APP_LIST: `/infrastructure-management/apps/:appType(${string})`;
72
+ readonly INFRASTRUCTURE_MANAGEMENT_APP: "/infrastructure-management/apps";
73
+ readonly INFRASTRUCTURE_MANAGEMENT_CHART_STORE: "/infrastructure-management/chart-store";
74
+ readonly INFRASTRUCTURE_MANAGEMENT_CHART_STORE_DISCOVER: "/infrastructure-management/chart-store/discover";
75
+ readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: "/infrastructure-management/resource-browser";
76
+ readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: "/infrastructure-management/resource-watcher";
77
+ readonly SOFTWARE_RELEASE_MANAGEMENT: "/software-release-management";
78
+ readonly COST_VISIBILITY: "/cost-visibility";
79
+ readonly COST_VISIBILITY_OVERVIEW: "/cost-visibility/overview";
80
+ readonly COST_BREAKDOWN_ROUTE: "/cost-visibility/breakdown/:breakdownViewType";
81
+ readonly COST_BREAKDOWN_CLUSTERS: "/cost-visibility/breakdown/clusters";
82
+ readonly COST_BREAKDOWN_ENVIRONMENTS: "/cost-visibility/breakdown/environments";
83
+ readonly COST_BREAKDOWN_PROJECTS: "/cost-visibility/breakdown/projects";
84
+ readonly COST_BREAKDOWN_APPLICATIONS: "/cost-visibility/breakdown/applications";
85
+ readonly COST_BREAKDOWN_DETAIL: ":itemName/:view/:detail?";
86
+ readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
87
+ readonly SECURITY_CENTER: "/security-center";
88
+ readonly SECURITY_CENTER_OVERVIEW: "/security-center/overview";
89
+ readonly SECURITY_CENTER_VULNERABILITIES: "/security-center/vulnerabilities";
90
+ readonly SECURITY_CENTER_VULNERABILITY_DEPLOYMENTS: "/security-center/vulnerabilities/deployments";
91
+ readonly SECURITY_CENTER_VULNERABILITY_CVES: "/security-center/vulnerabilities/cves";
92
+ readonly SECURITY_CENTER_SECURITY_ENABLEMENT: "/security-center/security-enablement";
93
+ readonly SECURITY_CENTER_POLICIES: "/security-center/policies";
94
+ readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
95
+ readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
96
+ readonly DATA_PROTECTION: "/data-protection-management";
97
+ readonly DATA_PROTECTION_OVERVIEW: "/data-protection-management/overview";
98
+ readonly DATA_PROTECTION_BACKUP_AND_SCHEDULE: `/data-protection-management/backup-and-schedule/:view(${string})`;
99
+ readonly DATA_PROTECTION_BACKUP_AND_SCHEDULE_DETAIL: `/data-protection-management/backup-and-schedule/:view(${string})/detail/:id`;
100
+ readonly DATA_PROTECTION_RESTORES: "/data-protection-management/restores";
101
+ readonly DATA_PROTECTION_RESTORES_DETAIL: "/data-protection-management/restores/:restoreId";
102
+ readonly DATA_PROTECTION_BACKUP_LOCATIONS: `/data-protection-management/backup-locations/:type(${string})`;
103
+ readonly BACKUP_LOCATION_DETAILS: "/:locationId";
104
+ readonly GLOBAL_CONFIG: "/global-configuration";
105
+ readonly GLOBAL_CONFIG_DOCKER: "/global-configuration/docker";
106
+ readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-configuration/cluster-env/edit/:clusterId";
107
+ readonly PERMISSION_GROUPS: "/global-configuration/auth/groups";
108
+ readonly AI_RECOMMENDATIONS: "/ai-recommendations";
109
+ readonly AI_RECOMMENDATIONS_OVERVIEW: "/ai-recommendations/overview";
110
+ readonly EXTERNAL_APPS: "ea";
67
111
  readonly OBSERVABILITY: "/observability";
68
112
  readonly OBSERVABILITY_OVERVIEW: "/observability/overview";
69
- readonly OBSERVABILITY_TENANTS: "/observability/tenants";
70
- readonly OBSERVABILITY_TENANT_DETAILS: "/observability/tenants/:tenantName";
71
- readonly OBSERVABILITY_TENANT_OVERVIEW: "/observability/tenants/:tenantName/overview";
72
- readonly OBSERVABILITY_TENANT_VMS: "/observability/tenants/:tenantName/vms";
73
- readonly OBSERVABILITY_TENANT_VM_DETAILS: "/observability/tenants/:tenantName/vms/:vmName";
113
+ readonly OBSERVABILITY_CUSTOMER_LIST: "/observability/tenants";
74
114
  };
75
115
  export declare const ROUTES: {
76
116
  readonly APP: "app";
@@ -97,6 +137,7 @@ export declare const ROUTES: {
97
137
  readonly PATCH: "patch";
98
138
  readonly ENVIRONMENT_LIST_MIN: "env/autocomplete";
99
139
  readonly CLUSTER: "cluster";
140
+ readonly CLUSTER_MIN: "cluster/min";
100
141
  readonly API_RESOURCE: "k8s/api-resources";
101
142
  readonly GVK: "gvk";
102
143
  readonly NAMESPACE: "env/namespace";
@@ -334,7 +375,15 @@ export declare const DATE_TIME_FORMATS: {
334
375
  DD_MMM_YYYY_HH_MM: string;
335
376
  DD_MMM_YYYY: string;
336
377
  'DD/MM/YYYY': string;
337
- FULL_DATE_WITH_TIME: string;
378
+ DD_MMM: string;
379
+ TWENTY_FOUR_HOUR_FORMAT_HOUR: string;
380
+ ABBREVIATED_MONTH: string;
381
+ DATE_WITH_ABBREVIATED_MONTH: string;
382
+ WEEKDAY_WITH_DATE_MONTH_AND_YEAR: string;
383
+ WEEKDAY_DATE_MONTH_YEAR_AND_HOUR: string;
384
+ DAY_OF_MONTH_WITH_ORDINAL: string;
385
+ ABBREVIATED_WEEKDAY: string;
386
+ DAY_OF_MONTH: string;
338
387
  };
339
388
  export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
340
389
  export declare const VULNERABILITIES_SORT_PRIORITY: {
@@ -27,6 +27,7 @@ export declare const KEYBOARD_KEYS_MAP: {
27
27
  readonly Delete: "⌦";
28
28
  readonly '.': ".";
29
29
  readonly Space: "Space";
30
+ readonly '>': ">";
30
31
  };
31
32
  export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
32
33
  export interface ShortcutType {
@@ -1,6 +1,6 @@
1
1
  import { ShortcutType } from './types';
2
2
  export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
3
- keys: ("N" | "R" | "Enter" | "/" | "Alt" | "F" | "E" | "K" | "X" | "A" | "S" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
3
+ keys: ("N" | "R" | "Enter" | "/" | "Alt" | "F" | "E" | "K" | "X" | "A" | "S" | "Home" | "End" | "." | "Space" | ">" | "Control" | "Shift" | "Meta" | "Escape" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
4
4
  id: string;
5
5
  };
6
6
  export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
@@ -33,5 +33,5 @@ import { SearchBarProps } from './types';
33
33
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
34
34
  * ```
35
35
  */
36
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, keyboardShortcut, }: SearchBarProps) => JSX.Element;
36
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, keyboardShortcut, variant, isLoading, }: SearchBarProps) => JSX.Element;
37
37
  export default SearchBar;
@@ -53,4 +53,12 @@ export interface SearchBarProps {
53
53
  * @note This is displayed in place of the dropdown indicator
54
54
  */
55
55
  keyboardShortcut?: SupportedKeyboardKeysType;
56
+ /**
57
+ * @default 'default'
58
+ */
59
+ variant?: 'default' | 'sidenav';
60
+ /**
61
+ * If true, would convert the magnifying glass icon to a loading spinner
62
+ */
63
+ isLoading?: boolean;
56
64
  }
@@ -1,3 +1,4 @@
1
+ import { ComponentSizeType } from '../../Shared/constants';
1
2
  export type Entity = {
2
3
  color: string;
3
4
  label: string;
@@ -12,13 +13,20 @@ type EntityPropType = {
12
13
  label?: never;
13
14
  }>[];
14
15
  };
16
+ type ProportionalType = {
17
+ isProportional?: true;
18
+ hideTotal?: boolean;
19
+ } | {
20
+ isProportional?: false | never;
21
+ hideTotal?: never;
22
+ };
15
23
  export type SegmentedBarChartProps = {
16
24
  rootClassName?: string;
17
25
  countClassName?: string;
18
26
  labelClassName?: string;
19
- isProportional?: boolean;
20
27
  swapLegendAndBar?: boolean;
21
28
  showAnimationOnBar?: boolean;
22
29
  isLoading?: boolean;
23
- } & EntityPropType;
30
+ size?: ComponentSizeType;
31
+ } & EntityPropType & ProportionalType;
24
32
  export {};
@@ -0,0 +1,2 @@
1
+ import { ComponentSizeType } from '../../Shared/constants';
2
+ export declare const getBarHeightForSize: (size: ComponentSizeType) => "h-20" | "h-12" | "h-6" | "h-8";
@@ -1,3 +1,3 @@
1
1
  import { SegmentProps } from './types';
2
- declare const Segment: ({ segment, isSelected, name, onChange, fullWidth, size, disabled }: SegmentProps) => JSX.Element;
2
+ declare const Segment: <T extends string | number>({ segment, isSelected, name, onChange, fullWidth, size, disabled, }: SegmentProps<T>) => JSX.Element;
3
3
  export default Segment;
@@ -1,3 +1,3 @@
1
1
  import { SegmentedControlProps } from './types';
2
- declare const SegmentedControl: ({ segments, onChange, name, size, value: controlledValue, fullWidth, disabled, }: SegmentedControlProps) => JSX.Element;
2
+ declare const SegmentedControl: <T extends string | number>({ segments, onChange, name, size, value: controlledValue, fullWidth, disabled, }: SegmentedControlProps<T>) => JSX.Element;
3
3
  export default SegmentedControl;
@@ -1,2 +1,2 @@
1
1
  export { default as SegmentedControl } from './SegmentedControl.component';
2
- export { type SegmentedControlProps } from './types';
2
+ export { type SegmentedControlProps, type SegmentType } from './types';
@@ -2,7 +2,7 @@ import { TooltipProps } from '../Tooltip';
2
2
  import { IconsProps, SelectPickerOptionType } from '../../Shared/Components';
3
3
  import { ComponentSizeType } from '../../Shared/constants';
4
4
  type SegmentTooltipProps = Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo' | 'placement'>;
5
- export type SegmentType = Pick<SelectPickerOptionType, 'value'> & {
5
+ export type SegmentType<T = string | number> = {
6
6
  /**
7
7
  * If true, the segment will be in error state with error icon
8
8
  */
@@ -11,6 +11,10 @@ export type SegmentType = Pick<SelectPickerOptionType, 'value'> & {
11
11
  * If true, the segment will be in disabled state
12
12
  */
13
13
  isDisabled?: boolean;
14
+ /**
15
+ * Value for the segment
16
+ */
17
+ value: T;
14
18
  } & (({
15
19
  /**
16
20
  * Label for the segment
@@ -40,16 +44,16 @@ export type SegmentType = Pick<SelectPickerOptionType, 'value'> & {
40
44
  */
41
45
  ariaLabel: string;
42
46
  });
43
- export type SegmentedControlProps = {
47
+ export type SegmentedControlProps<T = string | number> = {
44
48
  /**
45
49
  * List of segments to be displayed
46
50
  */
47
- segments: SegmentType[];
51
+ segments: SegmentType<T>[];
48
52
  /**
49
53
  * Please make sure this is unique
50
54
  */
51
55
  name: string;
52
- size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.small | ComponentSizeType.medium>;
56
+ size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.small | ComponentSizeType.medium | ComponentSizeType.large>;
53
57
  fullWidth?: boolean;
54
58
  disabled?: boolean;
55
59
  } & ({
@@ -57,16 +61,16 @@ export type SegmentedControlProps = {
57
61
  /**
58
62
  * On change handler for the component
59
63
  */
60
- onChange?: (selectedSegment: SegmentType) => void;
64
+ onChange?: (selectedSegment: SegmentType<T>) => void;
61
65
  } | {
62
66
  /**
63
67
  * If defined, the component is controlled and onChange needs to be handled by the parent
64
68
  */
65
- value: SegmentType['value'];
66
- onChange: (selectedSegment: SegmentType) => void;
69
+ value: SegmentType<T>['value'];
70
+ onChange: (selectedSegment: SegmentType<T>) => void;
67
71
  });
68
- export interface SegmentProps extends Required<Pick<SegmentedControlProps, 'name' | 'onChange' | 'fullWidth' | 'size' | 'disabled'>> {
72
+ export interface SegmentProps<T> extends Required<Pick<SegmentedControlProps<T>, 'name' | 'onChange' | 'fullWidth' | 'size' | 'disabled'>> {
69
73
  isSelected: boolean;
70
- segment: SegmentType;
74
+ segment: SegmentType<T>;
71
75
  }
72
76
  export {};
@@ -1,3 +1,3 @@
1
1
  import { TooltipProps } from './types';
2
- declare const Tooltip: ({ shortcutKeyCombo, alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, ...rest }: TooltipProps) => JSX.Element;
2
+ declare const Tooltip: ({ shortcutKeyCombo, alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, plugins, ...rest }: TooltipProps) => JSX.Element;
3
3
  export default Tooltip;
@@ -2,9 +2,11 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
2
2
  import { TippyProps } from '@tippyjs/react';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
- import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType, EnvironmentType } from '../Shared';
6
6
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
- import { IllustrationName } from '../Shared/Components';
7
+ import { IllustrationName, SelectPickerOptionType } from '../Shared/Components';
8
+ import { ClusterStatusType } from '../Pages/ResourceBrowser';
9
+ import { ClusterProviderType } from '../Pages-Devtron-2.0/CostVisibility';
8
10
  /**
9
11
  * Generic response type object with support for overriding the result type
10
12
  *
@@ -26,9 +28,6 @@ export interface ResponseType<T = any> {
26
28
  }
27
29
  export interface APIOptions {
28
30
  timeout?: number;
29
- /**
30
- * @deprecated Use abortController instead
31
- */
32
31
  signal?: AbortSignal;
33
32
  abortControllerRef?: MutableRefObject<AbortController>;
34
33
  /**
@@ -43,6 +42,11 @@ export interface APIOptions {
43
42
  * @default false
44
43
  */
45
44
  shouldParseServerErrorForUnauthorizedUser?: boolean;
45
+ /**
46
+ * @default false
47
+ * @description - If true, will override the default host (orchestrator or whatever defined initially in CoreAPI constructor) with the `proxy` host
48
+ */
49
+ isProxyHost?: boolean;
46
50
  }
47
51
  export interface OptionType<T = string, K = string> {
48
52
  value: T;
@@ -935,4 +939,59 @@ export interface ClusterEnvironmentCategoryDTO {
935
939
  }
936
940
  export interface ClusterEnvironmentCategoryType extends ClusterEnvironmentCategoryDTO {
937
941
  }
942
+ export type AppsGroupedByProjectsType = {
943
+ projectId: number;
944
+ projectName: string;
945
+ appList: {
946
+ name: string;
947
+ id: number;
948
+ }[];
949
+ }[];
950
+ export type EnvironmentsGroupedByClustersType = {
951
+ clusterName: EnvironmentType['cluster'];
952
+ envList: EnvironmentType[];
953
+ }[];
954
+ export type ClusterCostModuleConfigPayload = {
955
+ enabled: true;
956
+ config?: Record<string, any> & {
957
+ detectedProvider: ClusterProviderType;
958
+ };
959
+ } | {
960
+ enabled: false;
961
+ config?: never;
962
+ };
963
+ interface ClusterCostModuleDetailsDTO extends Pick<ClusterCostModuleConfigPayload, 'enabled' | 'config'> {
964
+ installationStatus: 'Success' | 'Installing' | 'Upgrading' | 'NotInstalled' | 'Failed';
965
+ installationError?: string;
966
+ }
967
+ export interface ClusterDetailDTO {
968
+ category: ClusterEnvironmentCategoryType;
969
+ cluster_name: string;
970
+ description: string;
971
+ id: number;
972
+ insecureSkipTlsVerify: boolean;
973
+ installationId: number;
974
+ isProd: boolean;
975
+ isVirtualCluster: boolean;
976
+ server_url: string;
977
+ sshTunnelConfig: any;
978
+ prometheus_url: string;
979
+ proxyUrl: string;
980
+ toConnectWithSSHTunnel: boolean;
981
+ clusterStatus: ClusterStatusType;
982
+ costModuleConfig: ClusterCostModuleDetailsDTO;
983
+ }
984
+ export interface ClusterDetailListType extends Omit<ClusterDetailDTO, 'server_url' | 'cluster_name' | 'prometheus_url' | 'id' | 'category' | 'clusterStatus'> {
985
+ serverUrl: ClusterDetailDTO['server_url'];
986
+ clusterName: ClusterDetailDTO['cluster_name'];
987
+ prometheusUrl: ClusterDetailDTO['prometheus_url'];
988
+ clusterId: ClusterDetailDTO['id'];
989
+ category: SelectPickerOptionType;
990
+ status: ClusterStatusType;
991
+ }
992
+ export declare enum InfrastructureManagementAppListType {
993
+ HELM = "helm",
994
+ ARGO_CD = "argocd",
995
+ FLUX_CD = "fluxcd"
996
+ }
938
997
  export {};
@@ -2,6 +2,7 @@ export * from './AddCDButton';
2
2
  export * from './API';
3
3
  export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
4
4
  export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
5
+ export { NestedBreadCrumb } from './BreadCrumb/NestedBreadCrumb';
5
6
  export { default as ChartVersionAndTypeSelector } from './ChartVersionAndTypeSelector';
6
7
  export * from './Checkbox';
7
8
  export * from './CIPipeline.Types';
@@ -36,7 +37,6 @@ export * from './Policy.Types';
36
37
  export { default as PopupMenu } from './PopupMenu';
37
38
  export * from './Progressing';
38
39
  export { default as RadioGroup } from './RadioGroup';
39
- export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
40
40
  export { default as RadioGroupItem } from './RadioGroupItem';
41
41
  export { default as Reload } from './Reload';
42
42
  export * from './RJSF';
@@ -1,3 +1,3 @@
1
1
  import { BuildInfraDescriptorProps } from './types';
2
- declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, tooltipNode, tooltipHeading, }: BuildInfraDescriptorProps) => JSX.Element;
2
+ declare const Descriptor: ({ additionalContainerClasses, children, tooltipNode, tippyInfoText, tippyAdditionalContent, tooltipHeading, profileName, }: BuildInfraDescriptorProps) => JSX.Element;
3
3
  export default Descriptor;
@@ -1,4 +1,3 @@
1
- import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
2
1
  import { CMSecretComponentType } from '../../../Shared/Services';
3
2
  import { BuildInfraAPIVersionType, BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraInheritActionsOnSubValues, BuildInfraLocators, BuildInfraMetaConfigTypes, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType, HandleProfileInputChangeType, InfraConfigWithSubValues, ProfileInputErrorType, RequestLimitConfigType, TargetPlatformErrorFields, ValidateRequestLimitType } from './types';
4
3
  export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
@@ -37,7 +36,6 @@ export declare const BUILD_INFRA_TEXT: {
37
36
  };
38
37
  readonly INVALID_FORM_MESSAGE: "Valid input is required for all mandatory fields.";
39
38
  };
40
- export declare const BUILD_INFRA_BREADCRUMB: UseBreadcrumbProps;
41
39
  export declare const BUILD_INFRA_LOCATOR_MARKER_MAP: Readonly<Record<BuildInfraLocators, BuildInfraFormFieldType['marker']>>;
42
40
  export declare const BUILD_INFRA_LOCATOR_LABEL_MAP: Readonly<Record<BuildInfraLocators, string>>;
43
41
  export declare const BUILD_INFRA_FORM_FIELDS: Readonly<BuildInfraFormFieldType[]>;
@@ -1,7 +1,6 @@
1
1
  import { FormEvent, FunctionComponent, ReactNode, SyntheticEvent } from 'react';
2
2
  import { BUILD_INFRA_INHERIT_ACTIONS, useBuildInfraForm } from '../../index';
3
3
  import { ServerErrors } from '../../../Common';
4
- import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
5
4
  import { CMSecretComponentType, CMSecretConfigData, CMSecretPayloadType, ConfigMapSecretUseFormProps, getUniqueId, useForm, ValidationResponseType } from '../../../Shared';
6
5
  /**
7
6
  * Unique actions that will be dispatched and,
@@ -43,21 +42,28 @@ export declare enum BuildInfraProfileVariants {
43
42
  NORMAL = "NORMAL",
44
43
  CUSTOM = "CUSTOM"
45
44
  }
46
- export interface BuildInfraDescriptorProps {
45
+ export type BuildInfraDescriptorProps = {
47
46
  /**
48
47
  * In case we want to restrict the max-width
49
48
  */
50
49
  additionalContainerClasses?: string;
51
- breadCrumbs: Breadcrumb[];
52
50
  /**
53
51
  * Would stick at right of div
54
52
  */
55
53
  children?: ReactNode;
56
- tippyInfoText?: string;
57
- tippyAdditionalContent?: ReactNode;
58
- tooltipNode?: ReactNode;
54
+ } & ({
55
+ tooltipNode: ReactNode;
56
+ tippyInfoText?: never;
57
+ tooltipHeading?: never;
58
+ tippyAdditionalContent?: never;
59
+ profileName?: never;
60
+ } | {
61
+ tooltipNode?: never;
62
+ tippyInfoText: string;
59
63
  tooltipHeading?: string;
60
- }
64
+ tippyAdditionalContent?: ReactNode;
65
+ profileName?: string;
66
+ });
61
67
  export type NumericBuildInfraConfigTypes = Extract<BuildInfraConfigTypes, BuildInfraConfigTypes.BUILD_TIMEOUT | BuildInfraConfigTypes.CPU_LIMIT | BuildInfraConfigTypes.CPU_REQUEST | BuildInfraConfigTypes.MEMORY_LIMIT | BuildInfraConfigTypes.MEMORY_REQUEST>;
62
68
  export interface BuildInfraActionType {
63
69
  /**
@@ -0,0 +1,2 @@
1
+ declare const VirtualClusterSidebar: () => JSX.Element;
2
+ export default VirtualClusterSidebar;
@@ -1 +1 @@
1
- export type { NewClusterFormFooterProps, NewClusterFormProps } from './types';
1
+ export { default as VirtualClusterSidebar } from './VirtualClusterSidebar';
@@ -1,4 +1,5 @@
1
- import { ReactNode, RefObject } from 'react';
1
+ import { RefObject } from 'react';
2
+ import { FiltersTypeEnum, TableViewWrapperProps } from '../../Shared/Components';
2
3
  import { Nodes, NodeType } from '../../Shared/types';
3
4
  export interface GVKType {
4
5
  Group: string;
@@ -136,8 +137,7 @@ export interface GVKOptionValueType {
136
137
  kind: string;
137
138
  apiVersion: string;
138
139
  }
139
- export interface ResourceRecommenderActionMenuProps {
140
- children: ReactNode;
140
+ export interface ResourceRecommenderActionMenuProps extends Pick<TableViewWrapperProps<K8sResourceDetailDataType, FiltersTypeEnum.URL>, 'filteredRows'> {
141
141
  lastScannedOn: string;
142
142
  }
143
143
  export {};
@@ -53,13 +53,13 @@ export declare const NODE_DRAIN_OPTIONS_CHECKBOX_CONFIG: {
53
53
  export declare const GVK_FILTER_KIND_QUERY_PARAM_KEY = "gvkFilterKind";
54
54
  export declare const GVK_FILTER_API_VERSION_QUERY_PARAM_KEY = "gvkFilterApiVersion";
55
55
  export declare const RESOURCE_BROWSER_ROUTES: {
56
- readonly OVERVIEW: "/resource-browser/:clusterId/overview";
57
- readonly MONITORING_DASHBOARD: "/resource-browser/:clusterId/monitoring-dashboard";
58
- readonly TERMINAL: "/resource-browser/:clusterId/terminal";
59
- readonly CLUSTER_UPGRADE: "/resource-browser/:clusterId/cluster-upgrade";
60
- readonly NODE_DETAIL: "/resource-browser/:clusterId/node/detail/:name";
61
- readonly K8S_RESOURCE_DETAIL: "/resource-browser/:clusterId/:namespace/:kind/:group/:name";
62
- readonly K8S_RESOURCE_LIST: "/resource-browser/:clusterId/:kind/:group";
63
- readonly RESOURCE_RECOMMENDER: "/resource-browser/:clusterId/resource-recommender";
56
+ readonly OVERVIEW: "/infrastructure-management/resource-browser/:clusterId/overview";
57
+ readonly MONITORING_DASHBOARD: "/infrastructure-management/resource-browser/:clusterId/monitoring-dashboard";
58
+ readonly TERMINAL: "/infrastructure-management/resource-browser/:clusterId/terminal";
59
+ readonly CLUSTER_UPGRADE: "/infrastructure-management/resource-browser/:clusterId/cluster-upgrade";
60
+ readonly NODE_DETAIL: "/infrastructure-management/resource-browser/:clusterId/node/detail/:name";
61
+ readonly K8S_RESOURCE_DETAIL: "/infrastructure-management/resource-browser/:clusterId/:namespace/:kind/:group/:name";
62
+ readonly K8S_RESOURCE_LIST: "/infrastructure-management/resource-browser/:clusterId/:kind/:group";
63
+ readonly RESOURCE_RECOMMENDER: "/infrastructure-management/resource-browser/:clusterId/resource-recommender";
64
64
  };
65
65
  export declare const K8S_EMPTY_GROUP = "k8sEmptyGroup";
@@ -5,7 +5,8 @@ import { NodeActionRequest } from './ResourceBrowser.Types';
5
5
  export declare enum ClusterFiltersType {
6
6
  ALL_CLUSTERS = "all",
7
7
  HEALTHY = "healthy",
8
- UNHEALTHY = "unhealthy"
8
+ UNHEALTHY = "unhealthy",
9
+ CONNECTION_FAILED = "connectionFailed"
9
10
  }
10
11
  export declare enum InstallationClusterStatus {
11
12
  Creating = "Creating",