@devtron-labs/devtron-fe-common-lib 1.19.4-pre-8 → 1.20.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 (79) hide show
  1. package/dist/{@code-editor-C76zAfYW.js → @code-editor-3C-BQlAW.js} +7853 -8344
  2. package/dist/{@common-rjsf-BL7kwKZW.js → @common-rjsf-Bka55zwe.js} +46 -46
  3. package/dist/{@framer-motion-D-YaCAW-.js → @framer-motion-DZveCoIL.js} +90 -92
  4. package/dist/{@react-dates-Bo3yT8LF.js → @react-dates-CZ1bNWJM.js} +1 -1
  5. package/dist/{@react-select-DTi_5fIc.js → @react-select-DS68hCUM.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CuvDiqTo.js → @react-virtualized-sticky-tree-V-8klKy9.js} +1 -1
  7. package/dist/{@vendor-DMIFbFhR.js → @vendor-3ORIJA0h.js} +17976 -26066
  8. package/dist/Common/API/reactQueryHooks.d.ts +1 -1
  9. package/dist/Common/Constants.d.ts +14 -40
  10. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -1
  11. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  12. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  13. package/dist/Common/SearchBar/types.d.ts +0 -4
  14. package/dist/Common/Types.d.ts +3 -0
  15. package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
  16. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  17. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -2
  18. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +5 -21
  19. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  20. package/dist/Shared/Components/Header/types.d.ts +0 -1
  21. package/dist/Shared/Components/Icon/Icon.d.ts +0 -10
  22. package/dist/Shared/Components/Illustration/Illustration.d.ts +0 -1
  23. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  24. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  25. package/dist/Shared/Components/TreeView/constants.d.ts +0 -3
  26. package/dist/Shared/Components/TreeView/types.d.ts +3 -17
  27. package/dist/Shared/Components/index.d.ts +0 -2
  28. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  29. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -31
  30. package/dist/Shared/Providers/MainContextProvider/types.d.ts +0 -9
  31. package/dist/assets/@code-editor.css +1 -1
  32. package/dist/index.d.ts +0 -1
  33. package/dist/index.js +825 -830
  34. package/package.json +1 -2
  35. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +0 -1
  36. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +0 -1
  37. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +0 -1
  38. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +0 -1
  39. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +0 -1
  40. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +0 -1
  41. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +0 -1
  42. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +0 -1
  43. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +0 -1
  44. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +0 -11
  45. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +0 -1
  46. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +0 -1
  47. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +0 -1
  48. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +0 -1
  49. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +0 -1
  50. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +0 -1
  51. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +0 -1
  52. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +0 -1
  53. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +0 -1
  54. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +0 -1
  55. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +0 -1
  56. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +0 -1
  57. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +0 -1
  58. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +0 -1
  59. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +0 -1
  60. package/dist/Pages-Devtron-2.0/index.d.ts +0 -1
  61. package/dist/Shared/Components/Charts/Chart.component.d.ts +0 -102
  62. package/dist/Shared/Components/Charts/constants.d.ts +0 -16
  63. package/dist/Shared/Components/Charts/index.d.ts +0 -2
  64. package/dist/Shared/Components/Charts/types.d.ts +0 -56
  65. package/dist/Shared/Components/Charts/utils.d.ts +0 -11
  66. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +0 -3
  67. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +0 -1
  68. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +0 -4
  69. package/dist/assets/ic-bot.65f403dd.svg +0 -3
  70. package/dist/assets/ic-building.2405d07b.svg +0 -3
  71. package/dist/assets/ic-clipboard.2869fa7d.svg +0 -3
  72. package/dist/assets/ic-cloud.aa7acc8a.svg +0 -3
  73. package/dist/assets/ic-coins.2c15f406.svg +0 -3
  74. package/dist/assets/ic-database-backup.b9e7c558.svg +0 -3
  75. package/dist/assets/ic-devtron-text.67a413b6.svg +0 -3
  76. package/dist/assets/ic-files-changed.04e6de3f.svg +0 -3
  77. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +0 -3
  78. package/dist/assets/ic-trend-up.5752ef30.svg +0 -3
  79. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
@@ -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, WrapWithResponseType extends boolean = true>(options: UseQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
4
+ export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<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 };
@@ -30,7 +30,11 @@ 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";
33
35
  readonly APP_LIST: "list";
36
+ readonly CHARTS_DISCOVER: "/chart-store/discover";
37
+ readonly JOB: "/job";
34
38
  readonly CREATE_JOB: "create-job";
35
39
  readonly GETTING_STARTED: "getting-started";
36
40
  readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
@@ -45,51 +49,21 @@ export declare const URLS: {
45
49
  readonly DETAILS: "/details";
46
50
  readonly CD_DETAILS: "cd-details";
47
51
  readonly APP_TRIGGER: "trigger";
52
+ readonly GLOBAL_CONFIG_DOCKER: "/global-config/docker";
48
53
  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";
49
57
  readonly NETWORK_STATUS_INTERFACE: "/network-status-interface";
58
+ readonly RESOURCE_BROWSER: "/resource-browser";
50
59
  readonly COMPARE_CLUSTERS: "/compare-clusters";
51
60
  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";
52
65
  readonly LICENSE_AUTH: "/license-auth";
53
- readonly APPLICATION_MANAGEMENT: "/application-management";
54
- readonly APPLICATION_MANAGEMENT_OVERVIEW: "/application-management/overview";
55
- readonly APPLICATION_MANAGEMENT_APP: "/application-management/app";
56
- readonly APPLICATION_MANAGEMENT_APPLICATION_GROUP: "/application-management/application-group";
57
- readonly APPLICATION_MANAGEMENT_CHART_STORE: "/application-management/chart-store";
58
- readonly APPLICATION_MANAGEMENT_CHART_STORE_DISCOVER: "/application-management/chart-store/discover";
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_CATALOG_FRAMEWORK: "/application-management/configurations/catalog-framework";
66
- readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_SCOPED_VARIABLES: "/application-management/configurations/scoped-variables";
67
- readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA: "/application-management/configurations/build-infra";
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_RESOURCE_BROWSER: "/infrastructure-management/resource-browser";
72
- readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: "/infrastructure-management/resource-watcher";
73
- readonly SOFTWARE_RELEASE_MANAGEMENT: "/software-release-management";
74
- readonly COST_VISIBILITY: "/cost-visibility";
75
- readonly COST_VISIBILITY_OVERVIEW: "/cost-visibility/overview";
76
- readonly COST_BREAKDOWN_ROUTE: "/cost-visibility/breakdown/:breakdownViewType";
77
- readonly COST_BREAKDOWN_CLUSTERS: "/cost-visibility/breakdown/clusters";
78
- readonly COST_BREAKDOWN_ENVIRONMENTS: "/cost-visibility/breakdown/environments";
79
- readonly COST_BREAKDOWN_PROJECTS: "/cost-visibility/breakdown/projects";
80
- readonly COST_BREAKDOWN_APPLICATIONS: "/cost-visibility/breakdown/applications";
81
- readonly COST_BREAKDOWN_ITEM_NAME: ":itemName";
82
- readonly COST_BREAKDOWN_DETAIL: ":itemName/:view/:detail?";
83
- readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
84
- readonly SECURITY_CENTER: "/security-center";
85
- readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
86
- readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
87
- readonly GLOBAL_CONFIG: "/global-configuration";
88
- readonly GLOBAL_CONFIG_DOCKER: "/global-configuration/docker";
89
- readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-configuration/cluster-env/edit/:clusterId";
90
- readonly PERMISSION_GROUPS: "/global-configuration/auth/groups";
91
- readonly AI_RECOMMENDATIONS: "/ai-recommendations";
92
- readonly AI_RECOMMENDATIONS_OVERVIEW: "/ai-recommendations/overview";
66
+ readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-config/cluster-env/edit/:clusterId";
93
67
  };
94
68
  export declare const ROUTES: {
95
69
  readonly APP: "app";
@@ -27,7 +27,6 @@ export declare const KEYBOARD_KEYS_MAP: {
27
27
  readonly Delete: "⌦";
28
28
  readonly '.': ".";
29
29
  readonly Space: "Space";
30
- readonly '>': ">";
31
30
  };
32
31
  export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
33
32
  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, variant, }: SearchBarProps) => JSX.Element;
36
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, keyboardShortcut, }: SearchBarProps) => JSX.Element;
37
37
  export default SearchBar;
@@ -53,8 +53,4 @@ 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
56
  }
@@ -26,6 +26,9 @@ export interface ResponseType<T = any> {
26
26
  }
27
27
  export interface APIOptions {
28
28
  timeout?: number;
29
+ /**
30
+ * @deprecated Use abortController instead
31
+ */
29
32
  signal?: AbortSignal;
30
33
  abortControllerRef?: MutableRefObject<AbortController>;
31
34
  /**
@@ -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: "/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";
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";
64
64
  };
65
65
  export declare const K8S_EMPTY_GROUP = "k8sEmptyGroup";
@@ -1,2 +1,2 @@
1
- import { animate, AnimatePresence, motion, useAnimation, useAnimationControls, useMotionTemplate, useMotionValue } from 'framer-motion';
2
- export { animate, AnimatePresence, motion, useAnimation, useAnimationControls, useMotionTemplate, useMotionValue };
1
+ import { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue } from 'framer-motion';
2
+ export { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue };
@@ -1,4 +1,3 @@
1
- import { ButtonComponentType } from '../Button';
2
1
  import { GenericSectionErrorStateProps } from './types';
3
- declare const GenericSectionErrorState: <T extends ButtonComponentType = ButtonComponentType.button>({ reload, buttonProps, customIcon, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps<T>) => JSX.Element;
2
+ declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps) => JSX.Element;
4
3
  export default GenericSectionErrorState;
@@ -1,7 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
- import { ButtonComponentType, ButtonProps } from '../Button';
3
2
  import { IconsProps } from '../Icon';
4
- export type GenericSectionErrorStateProps<ButtonType extends ButtonComponentType = ButtonComponentType.button> = {
3
+ export type GenericSectionErrorStateProps = {
4
+ /**
5
+ * Handler for reloading the section
6
+ */
7
+ reload?: () => void;
5
8
  /**
6
9
  * If true, border is added to the section
7
10
  *
@@ -34,7 +37,6 @@ export type GenericSectionErrorStateProps<ButtonType extends ButtonComponentType
34
37
  */
35
38
  progressingProps: Omit<IconsProps, 'name'>;
36
39
  useInfoIcon?: false;
37
- customIcon?: never;
38
40
  } | {
39
41
  progressingProps?: never;
40
42
  /**
@@ -43,25 +45,7 @@ export type GenericSectionErrorStateProps<ButtonType extends ButtonComponentType
43
45
  * @default false
44
46
  */
45
47
  useInfoIcon: true;
46
- customIcon?: never;
47
- } | {
48
- progressingProps?: never;
49
- useInfoIcon?: never;
50
- customIcon?: never;
51
48
  } | {
52
- customIcon: JSX.Element;
53
49
  progressingProps?: never;
54
50
  useInfoIcon?: never;
55
- }) & ({
56
- /**
57
- * Handler for reloading the section
58
- */
59
- reload: () => void;
60
- buttonProps?: never;
61
- } | {
62
- reload?: never;
63
- buttonProps: ButtonProps<ButtonType>;
64
- } | {
65
- reload?: never;
66
- buttonProps?: never;
67
51
  });
@@ -1,3 +1,3 @@
1
1
  import { PageHeaderType } from './types';
2
- declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, closeIcon, }: PageHeaderType) => JSX.Element;
2
+ declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, }: PageHeaderType) => JSX.Element;
3
3
  export default PageHeader;
@@ -19,7 +19,6 @@ export interface PageHeaderType {
19
19
  onClickTippyButton?: () => void;
20
20
  };
21
21
  onClose?: () => void;
22
- closeIcon?: JSX.Element;
23
22
  }
24
23
  export interface ServerInfo {
25
24
  currentVersion: string;
@@ -22,12 +22,10 @@ export declare const iconMap: {
22
22
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
23
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
24
  'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
- 'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
25
  'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
26
  'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
27
  'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
29
28
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
30
- 'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
29
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
32
30
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
31
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -44,16 +42,13 @@ export declare const iconMap: {
44
42
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
45
43
  'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
44
  'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
- 'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
45
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
46
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
47
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
48
  'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
- 'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
49
  'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
50
  'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
51
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
- 'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
52
  'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
53
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
54
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -61,7 +56,6 @@ export declare const iconMap: {
61
56
  'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
57
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
58
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
- 'ic-database-backup': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
59
  'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
60
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
61
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -72,7 +66,6 @@ export declare const iconMap: {
72
66
  'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
67
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
74
68
  'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
75
- 'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
76
69
  'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
77
70
  'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
78
71
  'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -98,7 +91,6 @@ export declare const iconMap: {
98
91
  'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
99
92
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
100
93
  'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
101
- 'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
102
94
  'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
103
95
  'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
104
96
  'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -186,7 +178,6 @@ export declare const iconMap: {
186
178
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
187
179
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
188
180
  'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
189
- 'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
190
181
  'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
191
182
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
192
183
  'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -227,7 +218,6 @@ export declare const iconMap: {
227
218
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
228
219
  'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
229
220
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
230
- 'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
231
221
  'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
232
222
  'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
233
223
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -4,7 +4,6 @@ export declare const illustrationMap: {
4
4
  'img-code': string;
5
5
  'img-man-on-rocket': string;
6
6
  'img-no-result': string;
7
- 'no-cluster-cost-enabled': string;
8
7
  };
9
8
  export type IllustrationName = keyof typeof illustrationMap;
10
9
  export interface IllustrationProps extends Omit<IllustrationBaseProps, 'name' | 'illustrationMap'> {
@@ -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, highlightSelectedHeadingOnlyWhenCollapsed, useOverflowAuto, }: 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, }: 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, variant, }: TreeViewNodeContentProps) => JSX.Element;
2
+ declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, }: TreeViewNodeContentProps) => JSX.Element;
3
3
  export default TreeViewNodeContent;
@@ -2,6 +2,3 @@ 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,11 +96,9 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
96
96
  onClick?: (e: SyntheticEvent) => void;
97
97
  href?: never;
98
98
  clearQueryParamsOnNavigation?: never;
99
- activeClassName?: never;
100
99
  } | {
101
100
  as: 'link';
102
101
  href: string;
103
- activeClassName?: string;
104
102
  /**
105
103
  * The callback function to handle click events on the nav link.
106
104
  */
@@ -115,7 +113,6 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
115
113
  href?: never;
116
114
  onClick?: never;
117
115
  clearQueryParamsOnNavigation?: never;
118
- activeClassName?: never;
119
116
  });
120
117
  /**
121
118
  * Props for the TreeView component.
@@ -154,25 +151,14 @@ export type TreeViewProps<DataAttributeType = null> = {
154
151
  */
155
152
  mode?: 'navigation' | 'form';
156
153
  /**
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.
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.
160
155
  * @default 'primary'
161
156
  */
162
- variant?: 'primary' | 'secondary' | 'sidenav';
157
+ variant?: 'primary' | 'secondary';
163
158
  /**
164
159
  * @default {}
165
160
  */
166
161
  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;
176
162
  } /**
177
163
  * WARNING: For internal use only.
178
164
  */ & ({
@@ -202,7 +188,7 @@ export type TreeViewProps<DataAttributeType = null> = {
202
188
  expandedMap?: never;
203
189
  isControlled?: false;
204
190
  });
205
- export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'>, Required<Pick<TreeViewProps, 'variant'>> {
191
+ export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'> {
206
192
  type: 'heading' | 'item';
207
193
  isSelected: boolean;
208
194
  }
@@ -13,7 +13,6 @@ export * from './BulkSelection';
13
13
  export * from './Button';
14
14
  export * from './ButtonWithLoader';
15
15
  export * from './ButtonWithSelector';
16
- export * from './Charts';
17
16
  export * from './Chip';
18
17
  export * from './CICDHistory';
19
18
  export * from './CMCS';
@@ -60,7 +59,6 @@ export * from './ImageWithFallback';
60
59
  export * from './InfoBlock';
61
60
  export * from './InfoIconTippy';
62
61
  export * from './InvalidYAMLTippy';
63
- export * from './KeyboardShortcut';
64
62
  export * from './KeyValueTable';
65
63
  export * from './License';
66
64
  export { default as LoadingCard } from './LoadingCard';
@@ -4,7 +4,7 @@ import { PreferredResourceKindType, UserPreferenceFilteredListTypes, UserPrefere
4
4
  * @description This function fetches the user preferences from the server. It uses the `get` method to make a request to the server and retrieves the user preferences based on the `USER_PREFERENCES_ATTRIBUTE_KEY`. The result is parsed and returned as a `UserPreferencesType` object.
5
5
  * @throws Will throw an error if the request fails or if the result is not in the expected format.
6
6
  */
7
- export declare const getUserPreferences: (signal?: AbortSignal) => Promise<UserPreferencesType>;
7
+ export declare const getUserPreferences: () => 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,8 +1,6 @@
1
1
  import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
2
2
  import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
3
3
  import { ResourceKindType } from '../../types';
4
- export type NavigationItemID = 'application-management-overview' | 'application-management-applications' | 'application-management-application-groups' | 'application-management-chart-store' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-scans' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'backup-and-restore-overview' | 'backup-and-restore-item' | 'backup-and-restore-backup-repositories' | 'backup-and-restore-backup-locations' | 'backup-and-restore-history-and-logs' | 'ai-recommendations-overview';
5
- export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
6
4
  export interface GetUserPreferencesQueryParamsType {
7
5
  key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
8
6
  }
@@ -38,18 +36,13 @@ export interface GetUserPreferencesParsedDTO {
38
36
  *
39
37
  */
40
38
  resources?: UserPreferenceResourceType;
41
- commandBar: {
42
- recentNavigationActions: {
43
- id: NavigationItemID | NavigationSubMenuItemID;
44
- }[];
45
- };
46
39
  }
47
40
  export interface UserPreferencesPayloadValueType extends GetUserPreferencesParsedDTO {
48
41
  }
49
42
  export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
50
43
  value: string;
51
44
  }
52
- export interface UserPreferencesType extends Pick<GetUserPreferencesParsedDTO, 'commandBar'> {
45
+ export interface UserPreferencesType {
53
46
  /**
54
47
  * Preferred theme for the user
55
48
  * If null, would forcibly show user theme switcher dialog for user to select
@@ -76,7 +69,7 @@ export interface UseUserPreferencesProps {
76
69
  migrateUserPreferences?: (userPreferencesResponse: UserPreferencesType) => Promise<UserPreferencesType>;
77
70
  recentlyVisitedFetchConfig?: RecentlyVisitedFetchConfigType;
78
71
  }
79
- type UserPathValueMapType = {
72
+ export type UserPathValueMapType = {
80
73
  path: 'themePreference';
81
74
  value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
82
75
  resourceKind?: never;
@@ -91,28 +84,7 @@ type UserPathValueMapType = {
91
84
  value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
92
85
  resourceKind: PreferredResourceKindType;
93
86
  userPreferencesResponse?: UserPreferencesType;
94
- } | {
95
- path: 'commandBar.recentNavigationActions';
96
- value: UserPreferencesType['commandBar']['recentNavigationActions'];
97
- resourceKind?: never;
98
- userPreferencesResponse?: never;
99
87
  };
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
- });
116
88
  export type UserPreferenceResourceProps = UserPathValueMapType & {
117
89
  shouldThrowError?: boolean;
118
90
  userPreferencesResponse?: UserPreferencesType;
@@ -120,4 +92,3 @@ export type UserPreferenceResourceProps = UserPathValueMapType & {
120
92
  export interface UserPreferenceFilteredListTypes extends UserPreferenceRecentlyVisitedAppsTypes {
121
93
  userPreferencesResponse?: UserPreferencesType;
122
94
  }
123
- export {};
@@ -21,7 +21,6 @@ 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;
25
24
  }
26
25
  type AIAgentContextType = {
27
26
  path: string;
@@ -40,14 +39,6 @@ export interface TempAppWindowConfig {
40
39
  showOpenInNewTab?: boolean;
41
40
  /** React component to render in the window */
42
41
  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
- };
51
42
  }
52
43
  type CommonMainContextProps = {
53
44
  setServerMode: (serverMode: SERVER_MODE) => void;