@devtron-labs/devtron-fe-common-lib 1.21.1 → 1.22.0-beta-0

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 (252) hide show
  1. package/dist/{@code-editor-C8nhIfoI.js → @code-editor-umdiXXey.js} +11529 -9614
  2. package/dist/{@common-rjsf-rYligcdi.js → @common-rjsf-DlvuWlrc.js} +30 -30
  3. package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-LZK2bgCK.js} +141 -139
  4. package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-CbpfVsC0.js} +1 -1
  5. package/dist/{@react-select-DS68hCUM.js → @react-select-BuPEYnTv.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-DX7VkyTZ.js} +1 -1
  7. package/dist/{@vendor-3ORIJA0h.js → @vendor-BsABdDGm.js} +28472 -19353
  8. package/dist/Common/API/types.d.ts +1 -1
  9. package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +2 -0
  10. package/dist/Common/BreadCrumb/Types.d.ts +20 -0
  11. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +2 -2
  12. package/dist/Common/ClipboardButton/types.d.ts +12 -2
  13. package/dist/Common/Common.service.d.ts +4 -1
  14. package/dist/Common/Constants.d.ts +67 -18
  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/SearchBar/SearchBar.component.d.ts +1 -1
  18. package/dist/Common/SearchBar/types.d.ts +8 -0
  19. package/dist/Common/SegmentedBarChart/types.d.ts +10 -2
  20. package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
  21. package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
  22. package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
  23. package/dist/Common/SegmentedControl/index.d.ts +1 -1
  24. package/dist/Common/SegmentedControl/types.d.ts +13 -9
  25. package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
  26. package/dist/Common/Types.d.ts +64 -5
  27. package/dist/Common/index.d.ts +1 -1
  28. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
  29. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -2
  30. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +13 -7
  31. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
  32. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
  33. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +3 -3
  34. package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
  35. package/dist/Pages/ResourceBrowser/types.d.ts +2 -1
  36. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
  37. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
  38. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +6 -0
  39. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -0
  40. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
  41. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
  42. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
  43. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
  44. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
  45. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
  46. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
  47. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +2 -0
  48. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +31 -0
  49. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
  50. package/dist/Pages-Devtron-2.0/DataProtectionManagement/index.d.ts +1 -0
  51. package/dist/Pages-Devtron-2.0/DataProtectionManagement/types.d.ts +8 -0
  52. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
  53. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
  54. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
  55. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
  56. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
  57. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
  58. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
  59. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
  60. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +1 -0
  61. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +1 -0
  62. package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +11 -0
  63. package/dist/Pages-Devtron-2.0/Navigation/index.d.ts +1 -0
  64. package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +32 -0
  65. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/SecurityCenterIcon.d.ts +1 -0
  66. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/index.d.ts +1 -0
  67. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/utils.d.ts +6 -0
  68. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/index.d.ts +1 -0
  69. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
  70. package/dist/Pages-Devtron-2.0/Shared/Overview/components.d.ts +7 -0
  71. package/dist/Pages-Devtron-2.0/Shared/Overview/constants.d.ts +8 -0
  72. package/dist/Pages-Devtron-2.0/Shared/Overview/index.d.ts +3 -0
  73. package/dist/Pages-Devtron-2.0/Shared/Overview/types.d.ts +26 -0
  74. package/dist/Pages-Devtron-2.0/Shared/index.d.ts +1 -0
  75. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
  76. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
  77. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
  78. package/dist/Pages-Devtron-2.0/index.d.ts +7 -0
  79. package/dist/Shared/Components/ActionMenu/types.d.ts +3 -0
  80. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +2 -2
  81. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  82. package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
  83. package/dist/Shared/Components/Badge/utils.d.ts +2 -1
  84. package/dist/Shared/Components/Button/Button.component.d.ts +12 -12
  85. package/dist/Shared/Components/Card/Card.component.d.ts +3 -0
  86. package/dist/Shared/Components/Card/constants.d.ts +4 -0
  87. package/dist/Shared/Components/Card/index.d.ts +2 -0
  88. package/dist/Shared/Components/Card/types.d.ts +25 -0
  89. package/dist/Shared/Components/Charts/Chart.component.d.ts +121 -0
  90. package/dist/Shared/Components/Charts/constants.d.ts +10 -0
  91. package/dist/Shared/Components/Charts/index.d.ts +4 -0
  92. package/dist/Shared/Components/Charts/plugins.d.ts +7 -0
  93. package/dist/Shared/Components/Charts/types.d.ts +135 -0
  94. package/dist/Shared/Components/Charts/utils.d.ts +30 -0
  95. package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +3 -0
  96. package/dist/Shared/Components/ClusterStatusIcon/index.d.ts +1 -0
  97. package/dist/Shared/Components/ClusterStatusIcon/types.d.ts +5 -0
  98. package/dist/Shared/Components/ClusterStatusIcon/utils.d.ts +2 -0
  99. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
  100. package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
  101. package/dist/Shared/Components/DocLink/constants.d.ts +15 -4
  102. package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +3 -0
  103. package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +3 -0
  104. package/dist/Shared/Components/ExportToCsv/index.d.ts +2 -0
  105. package/dist/Shared/Components/ExportToCsv/types.d.ts +64 -0
  106. package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
  107. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  108. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  109. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
  110. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
  111. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -3
  112. package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
  113. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  114. package/dist/Shared/Components/Header/constants.d.ts +2 -2
  115. package/dist/Shared/Components/Header/types.d.ts +8 -1
  116. package/dist/Shared/Components/Header/utils.d.ts +2 -5
  117. package/dist/Shared/Components/Icon/Icon.d.ts +71 -0
  118. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  119. package/dist/Shared/Components/Icon/types.d.ts +6 -0
  120. package/dist/Shared/Components/Illustration/Illustration.d.ts +10 -0
  121. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
  122. package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
  123. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
  124. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
  125. package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
  126. package/dist/Shared/Components/License/index.d.ts +1 -0
  127. package/dist/Shared/Components/License/types.d.ts +4 -0
  128. package/dist/Shared/Components/License/utils.d.ts +1 -1
  129. package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
  130. package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
  131. package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +20 -0
  132. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
  133. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
  134. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +3 -3
  135. package/dist/Shared/Components/Security/constants.d.ts +2 -0
  136. package/dist/Shared/Components/Security/index.d.ts +3 -0
  137. package/dist/Shared/Components/Security/types.d.ts +10 -0
  138. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  139. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  140. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
  141. package/dist/Shared/Components/SelectPicker/type.d.ts +3 -1
  142. package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -0
  143. package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
  144. package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
  145. package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
  146. package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
  147. package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
  148. package/dist/Shared/Components/Table/types.d.ts +12 -6
  149. package/dist/Shared/Components/TrailingItem/types.d.ts +4 -0
  150. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  151. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  152. package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
  153. package/dist/Shared/Components/TreeView/types.d.ts +17 -3
  154. package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +3 -3
  155. package/dist/Shared/Components/index.d.ts +7 -0
  156. package/dist/Shared/Helpers.d.ts +11 -0
  157. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -5
  158. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +5 -20
  159. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  160. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +31 -2
  161. package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
  162. package/dist/Shared/Services/common.service.d.ts +3 -0
  163. package/dist/Shared/Services/types.d.ts +10 -1
  164. package/dist/Shared/constants.d.ts +4 -16
  165. package/dist/Shared/types.d.ts +48 -10
  166. package/dist/Shared/validations.d.ts +2 -0
  167. package/dist/assets/@code-editor.css +1 -1
  168. package/dist/assets/create-backup-schedule.bbac4a86.webp +0 -0
  169. package/dist/assets/create-backup-snapshot.c794f612.webp +0 -0
  170. package/dist/assets/ic-ai.25e44e0c.svg +3 -0
  171. package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
  172. package/dist/assets/ic-application-group.4b448cca.svg +3 -0
  173. package/dist/assets/ic-application-management.7fb9e3a0.svg +3 -0
  174. package/dist/assets/ic-application-template.212d14f1.svg +3 -0
  175. package/dist/assets/ic-application.4c80bfcf.svg +3 -0
  176. package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
  177. package/dist/assets/ic-arrow-line-down.b6a98848.svg +3 -0
  178. package/dist/assets/ic-aws.eb2d0124.svg +12 -0
  179. package/dist/assets/ic-backup-and-schedule.51b7d3dd.svg +3 -0
  180. package/dist/assets/ic-backup-color.dc62e9d5.svg +6 -0
  181. package/dist/assets/ic-backup-location.ebaf1148.svg +3 -0
  182. package/dist/assets/ic-backup-schedule-color.a16c34b0.svg +5 -0
  183. package/dist/assets/ic-bg-backup-schedule.9ef9bc39.svg +19 -0
  184. package/dist/assets/ic-bg-backups.396e99bd.svg +19 -0
  185. package/dist/assets/ic-bg-build.8609d0ea.svg +13 -0
  186. package/dist/assets/ic-bg-cpu.15ec70f0.svg +11 -0
  187. package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
  188. package/dist/assets/ic-bg-memory.5373a125.svg +11 -0
  189. package/dist/assets/ic-bg-pause-schedule.6edcc1d4.svg +14 -0
  190. package/dist/assets/ic-bg-production-pipelines.2951cdc0.svg +22 -0
  191. package/dist/assets/ic-bg-project.84658405.svg +12 -0
  192. package/dist/assets/ic-bg-ransomware-vulnerable-cluster.1b25a5d0.svg +7 -0
  193. package/dist/assets/ic-bg-restore.4fa13869.svg +33 -0
  194. package/dist/assets/ic-bg-scan.2249360c.svg +28 -0
  195. package/dist/assets/ic-bg-storage-locations.894070b0.svg +22 -0
  196. package/dist/assets/ic-bg-webhook.b455152d.svg +13 -0
  197. package/dist/assets/ic-bot.65f403dd.svg +3 -0
  198. package/dist/assets/ic-building.2405d07b.svg +3 -0
  199. package/dist/assets/ic-chart-line-up.7ab47f4e.svg +3 -0
  200. package/dist/assets/ic-chart-repo.4c12016f.svg +5 -0
  201. package/dist/assets/ic-check-circle.af18cd7e.svg +3 -0
  202. package/dist/assets/ic-circle-small.a0740b0e.svg +3 -0
  203. package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
  204. package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
  205. package/dist/assets/ic-cloud-upload.55d9c163.svg +3 -0
  206. package/dist/assets/ic-coins-color-animated.fe11cdc3.svg +112 -0
  207. package/dist/assets/ic-coins.2c15f406.svg +3 -0
  208. package/dist/assets/ic-cost-visibility.5595009f.svg +3 -0
  209. package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
  210. package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
  211. package/dist/assets/ic-edit-lines.57927b07.svg +3 -0
  212. package/dist/assets/ic-external-link.0dd8eed7.svg +4 -0
  213. package/dist/assets/ic-file-download.ca57c068.svg +5 -0
  214. package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
  215. package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
  216. package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
  217. package/dist/assets/ic-global-overview.56ba9dc0.svg +3 -0
  218. package/dist/assets/ic-google-cloud.3077a8dd.svg +6 -0
  219. package/dist/assets/ic-infrastructure-management.4b052d41.svg +3 -0
  220. package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
  221. package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
  222. package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +3 -0
  223. package/dist/assets/ic-otc-cloud.43b31bd8.svg +5 -0
  224. package/dist/assets/ic-party.cfc7e7c6.svg +4 -0
  225. package/dist/assets/ic-pause.4e5c6056.svg +4 -0
  226. package/dist/assets/ic-priority-medium-fill.7bab0ff8.svg +4 -0
  227. package/dist/assets/ic-release-hub.25b9707a.svg +3 -0
  228. package/dist/assets/ic-resource-browser.4ff3e571.svg +3 -0
  229. package/dist/assets/ic-resource-watcher.7cce5305.svg +3 -0
  230. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
  231. package/dist/assets/ic-security-fixable.168b5bf8.svg +12 -0
  232. package/dist/assets/ic-security-not-fixable.be099f65.svg +12 -0
  233. package/dist/assets/ic-security-policy.874568da.svg +3 -0
  234. package/dist/assets/ic-security-scan.3ae78d50.svg +3 -0
  235. package/dist/assets/ic-security-vulnerability.c954b87a.svg +4 -0
  236. package/dist/assets/ic-software-release-management.dceedf80.svg +3 -0
  237. package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
  238. package/dist/assets/ic-tenants.4f997b9a.svg +3 -0
  239. package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
  240. package/dist/assets/ic-warning-stroke.fc850a4a.svg +3 -0
  241. package/dist/assets/img-celebration.8ceac2a9.svg +149 -0
  242. package/dist/assets/img-folder-empty.8e898c33.svg +33 -0
  243. package/dist/assets/img-install-freemium-saas.4388531c.svg +40 -0
  244. package/dist/assets/img-install-via-aws-marketplace.df85f572.svg +48 -0
  245. package/dist/assets/img-no-backup-location.0e8699c5.svg +180 -0
  246. package/dist/assets/img-no-restores.f26cb7db.svg +114 -0
  247. package/dist/assets/img-page-not-found.3c4f114b.svg +81 -0
  248. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
  249. package/dist/index.d.ts +15 -11
  250. package/dist/index.js +1146 -970
  251. package/package.json +6 -1
  252. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -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 { APIOptions, GenericEmptyStateType } from '../../../Common/index';
4
+ import { 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';
@@ -91,6 +91,7 @@ export interface BulkOperationModalProps<T extends string = string, RowData exte
91
91
  type BulkSelectionConfigType = Pick<UseBulkSelectionProps<unknown>, 'getSelectAllDialogStatus'> & {
92
92
  BulkActionsComponent: FunctionComponent<BulkActionsComponentProps>;
93
93
  BulkOperationModal: FunctionComponent<BulkOperationModalProps>;
94
+ disableSelectAllAcrossEvenIfPaginated?: boolean;
94
95
  } & Pick<BulkActionsComponentProps, 'bulkActionsData'> & Pick<BulkOperationModalProps, 'bulkOperationModalData'>;
95
96
  export declare enum PaginationEnum {
96
97
  PAGINATED = "paginated",
@@ -160,7 +161,10 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
160
161
  /**
161
162
  * Use this component to display additional content at the end of a row when it is hovered over.
162
163
  */
163
- RowActionsOnHoverComponent?: FunctionComponent<RowActionsOnHoverComponentProps<RowData, AdditionalProps>>;
164
+ rowActionOnHoverConfig?: {
165
+ Component: FunctionComponent<RowActionsOnHoverComponentProps<RowData, AdditionalProps>>;
166
+ width: string | number;
167
+ };
164
168
  bulkSelectionReturnValue: BulkSelectionReturnValueType | null;
165
169
  handleClearBulkSelection: () => void;
166
170
  handleToggleBulkSelectionOnRow: (row: RowType<RowData>) => void;
@@ -177,7 +181,7 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
177
181
  } | {
178
182
  rows?: never;
179
183
  /** NOTE: Sorting on frontend is only handled if rows is provided instead of getRows */
180
- getRows: (props: GetRowsProps, abortControllerRef: APIOptions['abortControllerRef']) => Promise<{
184
+ getRows: (props: GetRowsProps, signal: AbortSignal) => Promise<{
181
185
  rows: RowsType<RowData>;
182
186
  totalRows: number;
183
187
  }>;
@@ -192,7 +196,7 @@ export type UseResizableTableConfigWrapperProps<RowData extends unknown, FilterV
192
196
  export type TableWithBulkSelectionProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<UseResizableTableConfigWrapperProps<RowData, FilterVariant, AdditionalProps>, 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow'>;
193
197
  export type VisibleColumnsWrapperProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<TableWithBulkSelectionProps<RowData, FilterVariant, AdditionalProps>, 'visibleColumns' | 'setVisibleColumns'>;
194
198
  export type FilterWrapperProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> = Omit<VisibleColumnsWrapperProps<RowData, FilterVariant, AdditionalProps>, 'filterData'>;
195
- export type TableProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = Pick<FilterWrapperProps<RowData, FilterVariant, AdditionalProps>, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | 'RowActionsOnHoverComponent' | 'loading' | 'ViewWrapper' | 'pageSizeOptions' | 'clearFilters'>;
199
+ export type TableProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = Pick<FilterWrapperProps<RowData, FilterVariant, AdditionalProps>, 'additionalFilterProps' | 'bulkSelectionConfig' | 'areColumnsConfigurable' | 'emptyStateConfig' | 'filtersVariant' | 'filter' | 'additionalProps' | 'columns' | 'getRows' | 'rows' | 'paginationVariant' | 'stylesConfig' | 'id' | 'rowActionOnHoverConfig' | 'loading' | 'ViewWrapper' | 'pageSizeOptions' | 'clearFilters'>;
196
200
  export type BulkActionStateType = string | null;
197
201
  export interface BulkSelectionActionWidgetProps extends Pick<BulkSelectionConfigType, 'BulkActionsComponent' | 'bulkActionsData'> {
198
202
  count: number;
@@ -206,9 +210,11 @@ export interface GetFilteringPromiseProps<RowData extends unknown> {
206
210
  searchSortTimeoutRef: React.MutableRefObject<number>;
207
211
  callback: () => Promise<RowsType<RowData>> | RowsType<RowData>;
208
212
  }
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'> {
213
+ export interface RowsResultType<RowData extends unknown> {
210
214
  filteredRows: RowsType<RowData>;
211
- areFilteredRowsLoading: boolean;
212
215
  totalRows: number;
213
216
  }
217
+ 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' | 'rowActionOnHoverConfig' | 'pageSizeOptions' | 'getRows'>, RowsResultType<RowData> {
218
+ areFilteredRowsLoading: boolean;
219
+ }
214
220
  export {};
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { OmitNever } from '../../types';
3
+ import { ActionMenuProps } from '../ActionMenu';
3
4
  import { ButtonProps } from '../Button';
4
5
  import { IconsProps } from '../Icon';
5
6
  import { NumbersCountProps } from '../NumbersCount';
@@ -30,6 +31,9 @@ export type TrailingItemType = {
30
31
  config: OmitNever<Omit<Extract<ButtonProps, {
31
32
  icon: ReactElement;
32
33
  }>, 'size' | 'variant'>>;
34
+ } | {
35
+ type: 'action-menu';
36
+ config: ActionMenuProps;
33
37
  };
34
38
  export type TrailingItemProps = TrailingItemType & {
35
39
  /**
@@ -1,3 +1,3 @@
1
1
  import { TreeViewProps } from './types';
2
- declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, }: TreeViewProps<DataAttributeType>) => JSX.Element;
2
+ declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, highlightSelectedHeadingOnlyWhenCollapsed, useOverflowAuto, }: TreeViewProps<DataAttributeType>) => JSX.Element;
3
3
  export default TreeView;
@@ -1,3 +1,3 @@
1
1
  import { TreeViewNodeContentProps } from './types';
2
- declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, }: TreeViewNodeContentProps) => JSX.Element;
2
+ declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, variant, }: TreeViewNodeContentProps) => JSX.Element;
3
3
  export default TreeViewNodeContent;
@@ -2,3 +2,6 @@ import { TreeViewProps } from './types';
2
2
  export declare const DEFAULT_NO_ITEMS_TEXT = "No items found";
3
3
  export declare const VARIANT_TO_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
4
4
  export declare const VARIANT_TO_HOVER_CLASS_MAP: Record<TreeViewProps['variant'], string>;
5
+ export declare const VARIANT_TO_SELECTED_CLASS_MAP: Record<TreeViewProps['variant'], string>;
6
+ export declare const VARIANT_TO_TEXT_CLASS_MAP: Record<TreeViewProps['variant'], string>;
7
+ export declare const VARIANT_TO_TREE_ITEM_ACTIVE_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
@@ -96,9 +96,11 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
96
96
  onClick?: (e: SyntheticEvent) => void;
97
97
  href?: never;
98
98
  clearQueryParamsOnNavigation?: never;
99
+ activeClassName?: never;
99
100
  } | {
100
101
  as: 'link';
101
102
  href: string;
103
+ activeClassName?: string;
102
104
  /**
103
105
  * The callback function to handle click events on the nav link.
104
106
  */
@@ -113,6 +115,7 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
113
115
  href?: never;
114
116
  onClick?: never;
115
117
  clearQueryParamsOnNavigation?: never;
118
+ activeClassName?: never;
116
119
  });
117
120
  /**
118
121
  * Props for the TreeView component.
@@ -151,14 +154,25 @@ export type TreeViewProps<DataAttributeType = null> = {
151
154
  */
152
155
  mode?: 'navigation' | 'form';
153
156
  /**
154
- * If primary the background color will be bg__primary and bg__hover--opaque, 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;
172
+ /**
173
+ * @default true
174
+ */
175
+ useOverflowAuto?: boolean;
162
176
  } /**
163
177
  * WARNING: For internal use only.
164
178
  */ & ({
@@ -188,7 +202,7 @@ export type TreeViewProps<DataAttributeType = null> = {
188
202
  expandedMap?: never;
189
203
  isControlled?: false;
190
204
  });
191
- export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'> {
205
+ export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'>, Required<Pick<TreeViewProps, 'variant'>> {
192
206
  type: 'heading' | 'item';
193
207
  isSelected: boolean;
194
208
  }
@@ -16,10 +16,10 @@ export declare const getSwitchToWebhookPayload: (changeCIPayload: ChangeCIPayloa
16
16
  export declare const getCurrentPipelineType: ({ workflows, changeCIPayload, }: Required<Pick<WorkflowOptionsModalProps, "workflows" | "changeCIPayload">>) => SourceTypeCardProps["type"];
17
17
  export declare const getBuildWorkflowCardsConfig: ({ currentPipelineType, changeCIPayload, isAppGroup, }: {
18
18
  currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
19
- } & Required<Pick<WorkflowOptionsModalProps, "changeCIPayload" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
19
+ } & Required<Pick<WorkflowOptionsModalProps, "changeCIPayload" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "disabled" | "dataTestId" | "type" | "subtitle" | "icons">[];
20
20
  export declare const getReceiveWorkflowCardsConfig: ({ currentPipelineType, linkedCDSourceVariant, isAppGroup, }: {
21
21
  currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
22
- } & Required<Pick<WorkflowOptionsModalProps, "linkedCDSourceVariant" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
22
+ } & Required<Pick<WorkflowOptionsModalProps, "linkedCDSourceVariant" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "disabled" | "dataTestId" | "type" | "subtitle" | "icons">[];
23
23
  export declare const getJobWorkflowCardsConfig: ({ currentPipelineType, isAppGroup, }: {
24
24
  currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
25
- } & Required<Pick<WorkflowOptionsModalProps, "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
25
+ } & Required<Pick<WorkflowOptionsModalProps, "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "disabled" | "dataTestId" | "type" | "subtitle" | "icons">[];
@@ -13,8 +13,11 @@ export * from './BulkSelection';
13
13
  export * from './Button';
14
14
  export * from './ButtonWithLoader';
15
15
  export * from './ButtonWithSelector';
16
+ export * from './Card';
17
+ export * from './Charts';
16
18
  export * from './Chip';
17
19
  export * from './CICDHistory';
20
+ export * from './ClusterStatusIcon';
18
21
  export * from './CMCS';
19
22
  export * from './CodeEditor';
20
23
  export * from './Collapse';
@@ -36,6 +39,7 @@ export * from './EditImageFormField';
36
39
  export * from './EnvironmentSelector';
37
40
  export * from './Error';
38
41
  export * from './ExcludedImageNode';
42
+ export * from './ExportToCsv';
39
43
  export * from './FeatureDescription';
40
44
  export * from './FileUpload';
41
45
  export * from './FilterChips';
@@ -59,6 +63,7 @@ export * from './ImageWithFallback';
59
63
  export * from './InfoBlock';
60
64
  export * from './InfoIconTippy';
61
65
  export * from './InvalidYAMLTippy';
66
+ export * from './KeyboardShortcut';
62
67
  export * from './KeyValueTable';
63
68
  export * from './License';
64
69
  export { default as LoadingCard } from './LoadingCard';
@@ -71,6 +76,7 @@ export * from './Plugin';
71
76
  export * from './Popover';
72
77
  export * from './PortalContainer';
73
78
  export * from './ProgressBar';
79
+ export * from './PrometheusConfigurations';
74
80
  export { default as QRCode } from './QRCode';
75
81
  export * from './ReactSelect';
76
82
  export * from './RegistryIcon';
@@ -78,6 +84,7 @@ export * from './ScannedByToolModal';
78
84
  export * from './Security';
79
85
  export * from './SelectPicker';
80
86
  export * from './ShowMoreText';
87
+ export * from './SideNavigation';
81
88
  export * from './SSOProviderIcon';
82
89
  export * from './StatusComponent';
83
90
  export * from './Switch';
@@ -104,5 +104,16 @@ export declare const clearCookieOnLogout: () => void;
104
104
  export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
105
105
  export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
106
106
  export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
107
+ export declare const YAMLtoJSON: (yamlString: string) => string;
108
+ export declare const formatNumberToCurrency: (value: number, currency: string, minimumFractionDigits?: number) => string;
109
+ /**
110
+ * Returns the human readable explanation of the expression
111
+ * NOTE: expectation is that the expression is valid
112
+ *
113
+ * @throws Error - if given expression is incorrect
114
+ * @param expression
115
+ * @returns string - helper text explaining the expression in a human readable format
116
+ */
117
+ export declare const explainCronExpression: (expression: string) => string;
107
118
  export declare const getGVKTitle: (gvk: GVKType) => string;
108
119
  export {};
@@ -1,7 +1,2 @@
1
1
  import { Teams } from '../../../Common/Types';
2
- import { ClusterType } from '../../Services';
3
- import { AppsGroupedByProjectsType, EnvironmentsGroupedByClustersType } from './types';
4
- export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
5
2
  export declare const getProjectOptions: () => Promise<Pick<Teams, "id" | "name">[]>;
6
- export declare const getClusterOptions: () => Promise<ClusterType[]>;
7
- export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
@@ -1,24 +1,9 @@
1
+ import { getAppOptionsGroupedByProjects } from '../../../Common/Common.service';
1
2
  import { ServerErrors } from '../../../Common/ServerError';
2
- import { EnvironmentType, ResourceKindType } from '../../types';
3
- import { getAppOptionsGroupedByProjects, getClusterOptions, getProjectOptions } from './service';
4
- export interface AppType {
5
- name: string;
6
- }
7
- export type AppsGroupedByProjectsType = {
8
- projectId: number;
9
- projectName: string;
10
- appList: AppType[];
11
- }[];
12
- export type EnvironmentsGroupedByClustersType = {
13
- clusterName: EnvironmentType['cluster'];
14
- envList: EnvironmentType[];
15
- }[];
16
- export interface ClusterDTO {
17
- id: number;
18
- cluster_name: string;
19
- isVirtualCluster: boolean;
20
- isProd: boolean;
21
- }
3
+ import { EnvironmentsGroupedByClustersType } from '../../../Common/Types';
4
+ import { getClusterOptions } from '../../index';
5
+ import { ResourceKindType } from '../../types';
6
+ import { getProjectOptions } from './service';
22
7
  export interface UseGetResourceKindsOptionsProps {
23
8
  resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
24
9
  }
@@ -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,7 @@
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
+ import { NavigationItemID, NavigationSubMenuItemID } from '../../../Pages-Devtron-2.0/Navigation';
4
5
  export interface GetUserPreferencesQueryParamsType {
5
6
  key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
6
7
  }
@@ -23,6 +24,7 @@ export interface UserResourceKindActionType {
23
24
  [UserPreferenceResourceActions.RECENTLY_VISITED]: BaseRecentlyVisitedEntitiesTypes[];
24
25
  }
25
26
  export type UserPreferenceResourceType = Partial<Record<PreferredResourceKindType, UserResourceKindActionType>>;
27
+ export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}` | 'search-app-list-view' | `chart-list-${number}` | 'search-chart-list-view' | `helm-app-list-${number}` | 'search-helm-app-list-view' | `cluster-list-${number}` | 'search-cluster-list-view';
26
28
  export interface GetUserPreferencesParsedDTO {
27
29
  viewPermittedEnvOnly?: boolean;
28
30
  /**
@@ -36,13 +38,18 @@ export interface GetUserPreferencesParsedDTO {
36
38
  *
37
39
  */
38
40
  resources?: UserPreferenceResourceType;
41
+ commandBar: {
42
+ recentNavigationActions: {
43
+ id: NavigationItemID | NavigationSubMenuItemID | CommandBarAdditionalItemsId;
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 {};
@@ -21,6 +21,7 @@ export interface SidePanelConfig {
21
21
  reinitialize?: boolean;
22
22
  /** URL to documentation that should be displayed in the panel */
23
23
  docLink: string | null;
24
+ aiSessionId?: string;
24
25
  }
25
26
  type AIAgentContextType = {
26
27
  path: string;
@@ -39,6 +40,14 @@ export interface TempAppWindowConfig {
39
40
  showOpenInNewTab?: boolean;
40
41
  /** React component to render in the window */
41
42
  component?: JSX.Element;
43
+ customCloseConfig?: {
44
+ /**
45
+ * Provide this method if you want to do something before temp window closes
46
+ * Provide noop if not relevant
47
+ * */
48
+ beforeClose: () => void;
49
+ icon: JSX.Element;
50
+ };
42
51
  }
43
52
  type CommonMainContextProps = {
44
53
  setServerMode: (serverMode: SERVER_MODE) => void;
@@ -1,6 +1,9 @@
1
1
  import { AppConfigProps } from '../../Pages/index';
2
+ import { AllClusterListMinItemDTO, ClusterType } from '..';
2
3
  import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
3
4
  export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
4
5
  export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
5
6
  export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
6
7
  export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
8
+ export declare const getClusterOptions: (signal?: AbortSignal) => Promise<ClusterType[]>;
9
+ export declare const getAllClusterListMin: (signal: AbortSignal) => Promise<import('../../Common').ResponseType<AllClusterListMinItemDTO[]>>;
@@ -1,5 +1,5 @@
1
1
  import { MainContext } from '../Providers';
2
- import { getUrlWithSearchParams } from '../../Common';
2
+ import { ClusterDetailDTO, getUrlWithSearchParams } from '../../Common';
3
3
  import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
4
4
  export interface BaseAppMetaData {
5
5
  appId: number;
@@ -40,4 +40,13 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
40
40
  devtronManagedLicensingEnabled: boolean;
41
41
  isResourceRecommendationEnabled?: boolean;
42
42
  }
43
+ export interface ClusterMinDTO {
44
+ id: number;
45
+ cluster_name: string;
46
+ isVirtualCluster: boolean;
47
+ isProd: boolean;
48
+ }
49
+ export type AllClusterListMinItemDTO = Pick<ClusterDetailDTO, 'id' | 'cluster_name' | 'isVirtualCluster' | 'isProd'> & {
50
+ costModuleConfig: Pick<ClusterDetailDTO['costModuleConfig'], 'enabled' | 'installationStatus'>;
51
+ };
43
52
  export {};
@@ -1,6 +1,6 @@
1
1
  import { DeploymentNodeType, OptionType } from '../Common/Types';
2
2
  import { InfoBlockProps } from './Components';
3
- import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
3
+ import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType, RemoteConnectionType } from './types';
4
4
  export declare const ARTIFACT_STATUS: {
5
5
  PROGRESSING: string;
6
6
  DEGRADED: string;
@@ -322,27 +322,12 @@ export declare const APP_STATUS_HEADERS: string[];
322
322
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
323
323
  export declare const AppListConstants: {
324
324
  SAMPLE_NODE_REPO_URL: string;
325
- CREATE_DEVTRON_APP_URL: string;
326
325
  AppTabs: {
327
326
  DEVTRON_APPS: string;
328
327
  HELM_APPS: string;
329
328
  ARGO_APPS: string;
330
329
  FLUX_APPS: string;
331
330
  };
332
- AppType: {
333
- DEVTRON_APPS: string;
334
- HELM_APPS: string;
335
- ARGO_APPS: string;
336
- FLUX_APPS: string;
337
- };
338
- FilterType: {
339
- PROJECT: string;
340
- CLUTSER: string;
341
- NAMESPACE: string;
342
- ENVIRONMENT: string;
343
- APP_STATUS: string;
344
- TEMPLATE_TYPE: string;
345
- };
346
331
  };
347
332
  export declare enum K8sResourcePayloadAppType {
348
333
  DEVTRON_APP = 0,
@@ -434,3 +419,6 @@ export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
434
419
  export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
435
420
  export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
436
421
  export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
422
+ export declare const LICENSE_KEY_QUERY_PARAM = "licenseKey";
423
+ export declare const REMOTE_CONNECTION_TYPE_LABEL_MAP: Record<RemoteConnectionType, string>;
424
+ export declare const TARGET_K8S_VERSION_SEARCH_KEY = "targetK8sVersion";
@@ -941,18 +941,10 @@ export interface LicenseErrorStruct {
941
941
  code: LicensingErrorCodes;
942
942
  userMessage: string;
943
943
  }
944
- export interface DevtronLicenseBaseDTO {
944
+ export type DevtronLicenseBaseDTO = {
945
945
  fingerprint: string | null;
946
946
  isTrial: boolean | null;
947
947
  isFreemium: boolean | null;
948
- /**
949
- * In timestamp format
950
- */
951
- expiry: string | null;
952
- /**
953
- * Can be negative, depicts time left in seconds for license to expire
954
- */
955
- ttl: number | null;
956
948
  /**
957
949
  * Show a reminder after these many DAYS left for license to expire, i.e,
958
950
  * Show if `ttl` is less than `reminderThreshold` [converted to seconds]
@@ -963,7 +955,28 @@ export interface DevtronLicenseBaseDTO {
963
955
  domain: string | null;
964
956
  } | null;
965
957
  license: string | null;
966
- }
958
+ } & ({
959
+ isSaasInstance: true;
960
+ /**
961
+ * In seconds
962
+ */
963
+ timeElapsedSinceCreation: number;
964
+ creationTime: string;
965
+ ttl?: never;
966
+ expiry?: never;
967
+ } | {
968
+ isSaasInstance?: false;
969
+ timeElapsedSinceCreation?: never;
970
+ creationTime?: never;
971
+ /**
972
+ * Can be negative, depicts time left in seconds for license to expire
973
+ */
974
+ ttl: number | null;
975
+ /**
976
+ * In timestamp format
977
+ */
978
+ expiry: string | null;
979
+ });
967
980
  export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
968
981
  claimedByUserDetails: {
969
982
  firstName: string | null;
@@ -973,8 +986,13 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
973
986
  showLicenseData?: never;
974
987
  licenseStatusError?: never;
975
988
  moduleLimits?: never;
989
+ instanceData: {
990
+ devtronUrl: string;
991
+ devtronPassword: string;
992
+ } | null;
976
993
  } : {
977
994
  claimedByUserDetails?: never;
995
+ instanceData?: never;
978
996
  showLicenseData: boolean;
979
997
  licenseStatusError?: LicenseErrorStruct;
980
998
  moduleLimits: {
@@ -1113,4 +1131,24 @@ export interface PipelineDeploymentStrategy {
1113
1131
  strategies: Strategy[];
1114
1132
  error: ServerError;
1115
1133
  }
1134
+ export declare enum RemoteConnectionType {
1135
+ Direct = "DIRECT",
1136
+ Proxy = "PROXY",
1137
+ SSHTunnel = "SSH"
1138
+ }
1139
+ export declare enum AuthenticationType {
1140
+ BASIC = "BASIC",
1141
+ ANONYMOUS = "ANONYMOUS",
1142
+ IAM = "IAM"
1143
+ }
1144
+ /**
1145
+ * Makes all props in T optional and set to never when isLoading is true.
1146
+ * Used for components with loading states.
1147
+ * @example See usage in CostVisibility -> cards
1148
+ */
1149
+ export type PropsTypeWithIsLoading<T extends Record<string, any>> = (Partial<Record<keyof T, never>> & {
1150
+ isLoading: true;
1151
+ }) | ({
1152
+ isLoading?: false;
1153
+ } & T);
1116
1154
  export {};
@@ -60,3 +60,5 @@ export declare const validateCMVolumeMountPath: (value: string) => {
60
60
  };
61
61
  export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;
62
62
  export declare const validateEmail: (email: string) => ValidationResponseType;
63
+ export declare const getIsRegexValid: (regexString: string) => ValidationResponseType;
64
+ export declare const validateCronExpression: (expression: string) => ValidationResponseType;