@devtron-labs/devtron-fe-common-lib 1.19.4 → 1.20.0-alpha-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 (140) hide show
  1. package/dist/{@code-editor-D2U9F6h2.js → @code-editor-BS8YRK8i.js} +11053 -10103
  2. package/dist/{@common-rjsf-BQSkXbLx.js → @common-rjsf-jeWCms6o.js} +46 -46
  3. package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
  4. package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
  5. package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
  7. package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
  8. package/dist/Common/API/reactQueryHooks.d.ts +1 -1
  9. package/dist/Common/CIPipeline.Types.d.ts +1 -0
  10. package/dist/Common/Common.service.d.ts +1 -1
  11. package/dist/Common/Constants.d.ts +42 -14
  12. package/dist/Common/ErrorPage.d.ts +1 -1
  13. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  14. package/dist/Common/Helper.d.ts +1 -1
  15. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +1 -0
  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/InteractiveCellText/InteractiveCellText.d.ts +27 -0
  19. package/dist/Common/InteractiveCellText/index.d.ts +2 -0
  20. package/dist/Common/InteractiveCellText/types.d.ts +10 -0
  21. package/dist/Common/RJSF/Form.d.ts +1 -1
  22. package/dist/Common/RJSF/utils.d.ts +1 -1
  23. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  24. package/dist/Common/SearchBar/types.d.ts +4 -0
  25. package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
  26. package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
  27. package/dist/Common/Types.d.ts +13 -5
  28. package/dist/Common/index.d.ts +1 -0
  29. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
  30. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
  31. package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
  32. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +1 -0
  33. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +1 -0
  34. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
  35. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
  36. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
  37. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
  38. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
  39. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
  40. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
  41. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +11 -0
  42. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
  43. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
  44. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
  45. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
  46. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
  47. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
  48. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
  49. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
  50. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +1 -0
  51. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
  52. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
  53. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
  54. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
  55. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
  56. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
  57. package/dist/Pages-Devtron-2.0/index.d.ts +1 -0
  58. package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
  59. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +8 -8
  60. package/dist/Shared/Components/Button/Button.component.d.ts +68 -68
  61. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  62. package/dist/Shared/Components/CICDHistory/types.d.ts +2 -0
  63. package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
  64. package/dist/Shared/Components/Charts/constants.d.ts +16 -0
  65. package/dist/Shared/Components/Charts/index.d.ts +2 -0
  66. package/dist/Shared/Components/Charts/types.d.ts +61 -0
  67. package/dist/Shared/Components/Charts/utils.d.ts +11 -0
  68. package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
  69. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  70. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  71. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
  72. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +1 -0
  73. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  74. package/dist/Shared/Components/Header/types.d.ts +1 -0
  75. package/dist/Shared/Components/Icon/Icon.d.ts +25 -0
  76. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  77. package/dist/Shared/Components/Icon/types.d.ts +6 -0
  78. package/dist/Shared/Components/Illustration/Illustration.d.ts +2 -0
  79. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
  80. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
  81. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
  82. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
  83. package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -2
  84. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  85. package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
  86. package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
  87. package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
  88. package/dist/Shared/Components/RegistryIcon/RegistryIcon.d.ts +1 -1
  89. package/dist/Shared/Components/RegistryIcon/types.d.ts +17 -2
  90. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  91. package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
  92. package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
  93. package/dist/Shared/Components/Table/types.d.ts +8 -4
  94. package/dist/Shared/Components/Table/utils.d.ts +1 -1
  95. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  96. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  97. package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
  98. package/dist/Shared/Components/TreeView/types.d.ts +17 -3
  99. package/dist/Shared/Components/index.d.ts +3 -0
  100. package/dist/Shared/Helpers.d.ts +1 -0
  101. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  102. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +31 -2
  103. package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
  104. package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -1
  105. package/dist/Shared/Services/ToastManager/constants.d.ts +2 -2
  106. package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
  107. package/dist/Shared/Services/ToastManager/types.d.ts +23 -3
  108. package/dist/Shared/Services/app.service.d.ts +3 -3
  109. package/dist/Shared/constants.d.ts +2 -1
  110. package/dist/Shared/types.d.ts +20 -0
  111. package/dist/assets/@code-editor.css +1 -1
  112. package/dist/assets/ic-aws-codecommit.236f850c.svg +10 -0
  113. package/dist/assets/ic-bot.65f403dd.svg +3 -0
  114. package/dist/assets/ic-building.2405d07b.svg +3 -0
  115. package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
  116. package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
  117. package/dist/assets/ic-coins.2c15f406.svg +3 -0
  118. package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
  119. package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
  120. package/dist/assets/ic-diff-added.6ef6f938.svg +3 -0
  121. package/dist/assets/ic-diff-deleted.54eb24dd.svg +3 -0
  122. package/dist/assets/ic-diff-updated.294b925e.svg +4 -0
  123. package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
  124. package/dist/assets/ic-group-filter-applied.2cdb11e7.svg +20 -0
  125. package/dist/assets/{ic-folder.051cd30d.svg → ic-group-filter.ed1869f5.svg} +3 -3
  126. package/dist/assets/ic-input.57281408.svg +3 -0
  127. package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
  128. package/dist/assets/ic-locked.dd40e181.svg +3 -0
  129. package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
  130. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
  131. package/dist/assets/ic-storage.03f282b6.svg +21 -0
  132. package/dist/assets/ic-tag.5fdc7834.svg +3 -0
  133. package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
  134. package/dist/assets/ic-warning-fill.bfea8b38.svg +4 -0
  135. package/dist/assets/img-mechanical-operation.04a318d6.svg +17 -0
  136. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
  137. package/dist/index.d.ts +1 -0
  138. package/dist/index.js +927 -913
  139. package/package.json +2 -1
  140. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -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 };
@@ -10,6 +10,7 @@ export interface MaterialType {
10
10
  gitProviderId: number;
11
11
  regex?: string;
12
12
  isRegex: boolean;
13
+ url: string;
13
14
  }
14
15
  export interface Githost {
15
16
  id: number;
@@ -18,7 +18,7 @@ export declare function extractImage(image: string): string;
18
18
  export declare function createGitCommitUrl(url: string, revision: string): string;
19
19
  export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
20
20
  export declare const getDefaultConfig: () => Promise<ResponseType>;
21
- export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
21
+ export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean, options?: APIOptions): Promise<ResponseType<any>>;
22
22
  export declare function getClusterListMin(): Promise<ResponseType<any>>;
23
23
  export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
24
24
  export declare function getNamespaceListMin(clusterIdsCsv: string, abortControllerRef?: APIOptions['abortControllerRef']): Promise<EnvironmentListHelmResponse>;
@@ -1,3 +1,4 @@
1
+ import { SelectPickerOptionType } from '../Shared/Components';
1
2
  export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
2
3
  export declare const Host: string;
3
4
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
@@ -29,11 +30,7 @@ export declare const PATTERNS: {
29
30
  export declare const URLS: {
30
31
  readonly LOGIN: "/login";
31
32
  readonly LOGIN_SSO: "/login/sso";
32
- readonly PERMISSION_GROUPS: "/global-config/auth/groups";
33
- readonly APP: "/app";
34
33
  readonly APP_LIST: "list";
35
- readonly CHARTS_DISCOVER: "/chart-store/discover";
36
- readonly JOB: "/job";
37
34
  readonly CREATE_JOB: "create-job";
38
35
  readonly GETTING_STARTED: "getting-started";
39
36
  readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
@@ -48,21 +45,50 @@ export declare const URLS: {
48
45
  readonly DETAILS: "/details";
49
46
  readonly CD_DETAILS: "cd-details";
50
47
  readonly APP_TRIGGER: "trigger";
51
- readonly GLOBAL_CONFIG_DOCKER: "/global-config/docker";
52
48
  readonly DEPLOYMENT_HISTORY_CONFIGURATIONS: "/configuration";
53
- readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "/global-config/scoped-variables";
54
- readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: "/global-config/deployment-charts";
55
- readonly GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: "/global-config/deployment-charts/upload-chart";
56
49
  readonly NETWORK_STATUS_INTERFACE: "/network-status-interface";
57
- readonly RESOURCE_BROWSER: "/resource-browser";
58
50
  readonly COMPARE_CLUSTERS: "/compare-clusters";
59
51
  readonly APP_CONFIG: "edit";
60
- readonly GLOBAL_CONFIG: "/global-config";
61
- readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
62
- readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
63
- readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
64
52
  readonly LICENSE_AUTH: "/license-auth";
65
- 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/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_DETAIL: ":itemName/:view/:detail?";
82
+ readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
83
+ readonly SECURITY_CENTER: "/security-center";
84
+ readonly AUTOMATION_AND_ENABLEMENT: "/automation-and-enablement";
85
+ readonly AUTOMATION_AND_ENABLEMENT_JOB: "/automation-and-enablement/job";
86
+ readonly GLOBAL_CONFIG: "/global-configuration";
87
+ readonly GLOBAL_CONFIG_DOCKER: "/global-configuration/docker";
88
+ readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-configuration/cluster-env/edit/:clusterId";
89
+ readonly PERMISSION_GROUPS: "/global-configuration/auth/groups";
90
+ readonly AI_RECOMMENDATIONS: "/ai-recommendations";
91
+ readonly AI_RECOMMENDATIONS_OVERVIEW: "/ai-recommendations/overview";
66
92
  };
67
93
  export declare const ROUTES: {
68
94
  readonly APP: "app";
@@ -364,3 +390,5 @@ export declare enum SSOProvider {
364
390
  oidc = "oidc",
365
391
  openshift = "openshift"
366
392
  }
393
+ export declare const BULK_DEPLOY_LATEST_IMAGE_TAG: SelectPickerOptionType<string>;
394
+ export declare const BULK_DEPLOY_ACTIVE_IMAGE_TAG: SelectPickerOptionType<string>;
@@ -1,3 +1,3 @@
1
1
  import { ErrorPageType } from './Types';
2
- declare const ErrorPage: ({ code, image, title, subTitle, imageType, redirectURL, reload }: ErrorPageType) => JSX.Element;
2
+ declare const ErrorPage: ({ code, image, title, subTitle, imageType, redirectURL, reload, on404Redirect }: ErrorPageType) => JSX.Element;
3
3
  export default ErrorPage;
@@ -1,3 +1,3 @@
1
1
  import { ErrorScreenManagerProps } from './Types';
2
- declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, redirectURL, imageType, }: ErrorScreenManagerProps) => JSX.Element;
2
+ declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, redirectURL, on404Redirect, imageType, }: ErrorScreenManagerProps) => JSX.Element;
3
3
  export default ErrorScreenManager;
@@ -10,7 +10,7 @@ interface ConditionalWrapper<T> {
10
10
  children: T;
11
11
  }
12
12
  export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
13
- export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | 0 | -1;
13
+ export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | -1 | 0;
14
14
  export declare const stopPropagation: (event: any) => void;
15
15
  export declare const preventDefault: (event: SyntheticEvent) => void;
16
16
  export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
@@ -1,2 +1,3 @@
1
+ export type { SupportedKeyboardKeysType } from './types';
1
2
  export { default as useRegisterShortcut } from './UseRegisterShortcut';
2
3
  export { default as UseRegisterShortcutProvider } from './UseRegisterShortcutProvider';
@@ -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" | "Alt" | "F" | "E" | "K" | "X" | "A" | "S" | "/" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "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;
@@ -0,0 +1,27 @@
1
+ import { InteractiveCellTextProps } from './types';
2
+ /**
3
+ * A reusable component for rendering text within a tooltip. The text can be interactive (clickable) or static.
4
+ *
5
+ * @param {Object} props - The props for the component.
6
+ * @param {string} props.text - The text to display inside the component. Defaults to `'-'` if not provided.
7
+ * @param {function} [props.onClickHandler] - Optional click handler function. If provided, the text will be rendered as a button.
8
+ * @param {string} [props.dataTestId] - Optional test ID for the component, useful for testing purposes.
9
+ * @param {string} [props.rootClassName] - Additional CSS class names to apply to the root element.
10
+ * @param {boolean} [props.interactive=false] - Whether the tooltip content is interactive.
11
+ * @param {number} [props.fontSize=13] - Font size for the text. Defaults to `13`.
12
+ * @param {React.ReactNode} [props.tippyContent=null] - Custom content for the tooltip. If not provided, `text` will be used.
13
+ * @returns {JSX.Element} The rendered `InteractiveCellText` component.
14
+ *
15
+ * @example
16
+ * // Example usage:
17
+ * <InteractiveCellText
18
+ * text="Click me"
19
+ * onClickHandler={() => alert('Clicked!')}
20
+ * dataTestId="interactive-cell"
21
+ * rootClassName="custom-class"
22
+ * interactive={true}
23
+ * fontSize={14}
24
+ * tippyContent="Tooltip content"
25
+ * />
26
+ */
27
+ export declare const InteractiveCellText: ({ text, onClickHandler, dataTestId, rootClassName, interactive, fontSize, tippyContent, }: InteractiveCellTextProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './InteractiveCellText';
2
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ import { TippyCustomizedProps } from '../Types';
2
+ export interface InteractiveCellTextProps {
3
+ text: string;
4
+ onClickHandler?: () => void;
5
+ dataTestId?: string;
6
+ rootClassName?: string;
7
+ interactive?: boolean;
8
+ fontSize?: number;
9
+ tippyContent?: TippyCustomizedProps<false>['additionalContent'];
10
+ }
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "acceptCharset" | "action" | "method" | "noValidate" | "tagName" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "tagName" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "acceptCharset" | "action" | "method" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
@@ -13,7 +13,7 @@ export declare const getRedirectionProps: (url: string) => React.AnchorHTMLAttri
13
13
  /**
14
14
  * Infers the type for json schema from value type
15
15
  */
16
- export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "null" | "array";
16
+ export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
17
17
  export declare const conformPathToPointers: (path: string) => string;
18
18
  export declare const parseSchemaHiddenType: (hiddenSchema: HiddenType) => MetaHiddenType;
19
19
  export declare const getSchemaPathToUpdatePathMap: (schema: RJSFFormSchema) => Record<string, string>;
@@ -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, }: SearchBarProps) => JSX.Element;
37
37
  export default SearchBar;
@@ -53,4 +53,8 @@ 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';
56
60
  }
@@ -1,3 +1,4 @@
1
+ import { ComponentSizeType } from '../../Shared/constants';
1
2
  export type Entity = {
2
3
  color: string;
3
4
  label: string;
@@ -20,5 +21,6 @@ export type SegmentedBarChartProps = {
20
21
  swapLegendAndBar?: boolean;
21
22
  showAnimationOnBar?: boolean;
22
23
  isLoading?: boolean;
24
+ size?: ComponentSizeType;
23
25
  } & EntityPropType;
24
26
  export {};
@@ -0,0 +1,2 @@
1
+ import { ComponentSizeType } from '../../Shared/constants';
2
+ export declare const getBarHeightForSize: (size: ComponentSizeType) => "h-20" | "h-6" | "h-8";
@@ -26,9 +26,6 @@ export interface ResponseType<T = any> {
26
26
  }
27
27
  export interface APIOptions {
28
28
  timeout?: number;
29
- /**
30
- * @deprecated Use abortController instead
31
- */
32
29
  signal?: AbortSignal;
33
30
  abortControllerRef?: MutableRefObject<AbortController>;
34
31
  /**
@@ -141,20 +138,29 @@ export interface GenericEmptyStateType {
141
138
  export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload' | 'redirectURL'> {
142
139
  code: number;
143
140
  redirectURL?: string;
141
+ on404Redirect?: () => void;
144
142
  reload?: () => void;
145
143
  }
146
- export interface ErrorScreenManagerProps {
144
+ export type ErrorScreenManagerProps = {
147
145
  code?: number;
148
146
  imageType?: ImageType;
149
147
  reload?: (...args: any[]) => any;
150
148
  subtitle?: React.ReactChild;
151
149
  reloadClass?: string;
150
+ } & ({
152
151
  /**
153
152
  * Would be used to redirect URL in case of 404
154
153
  * @default - APP_LIST
155
154
  */
156
155
  redirectURL?: string;
157
- }
156
+ on404Redirect?: never;
157
+ } | {
158
+ redirectURL?: never;
159
+ on404Redirect: () => void;
160
+ } | {
161
+ redirectURL?: never;
162
+ on404Redirect?: never;
163
+ });
158
164
  export interface ErrorScreenNotAuthorizedProps {
159
165
  subtitle?: React.ReactChild;
160
166
  title?: string;
@@ -384,6 +390,8 @@ export interface CDMaterialListModalServiceUtilProps {
384
390
  artifactId?: number;
385
391
  artifactStatus?: string;
386
392
  disableDefaultSelection?: boolean;
393
+ isExceptionUser: boolean;
394
+ isApprovalConfigured: boolean;
387
395
  }
388
396
  export interface CDMaterialType {
389
397
  index: number;
@@ -25,6 +25,7 @@ export * from './Helper';
25
25
  export * from './Hooks';
26
26
  export * from './ImageTags';
27
27
  export * from './ImageTags.Types';
28
+ export * from './InteractiveCellText';
28
29
  export * from './Markdown';
29
30
  export * from './Modals/Modal';
30
31
  export * from './Modals/VisibleModal';
@@ -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';
@@ -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";
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ export declare enum CostBreakdownViewType {
2
+ CLUSTERS = "clusters",
3
+ ENVIRONMENTS = "environments",
4
+ PROJECTS = "projects",
5
+ APPLICATIONS = "applications"
6
+ }
7
+ export declare enum CostBreakdownItemViewParamsType {
8
+ ITEM_NAME = "itemName",
9
+ VIEW = "view",
10
+ DETAIL = "detail"
11
+ }
@@ -0,0 +1 @@
1
+ export * from './Shared';
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export declare const GlobalOverview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './GlobalOverview';
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -0,0 +1 @@
1
+ export * from './CostVisibility';
@@ -37,6 +37,8 @@ export type ActionMenuItemType<T extends string | number = string | number> = Om
37
37
  startIcon?: ActionMenuItemIconType;
38
38
  /** Defines the item to be displayed at the end of the menu item. */
39
39
  trailingItem?: TrailingItemType;
40
+ /** Prevents the menu from closing when the item is clicked. */
41
+ doNotCloseMenuOnClick?: boolean;
40
42
  } & ConditionalActionMenuComponentType;
41
43
  export type ActionMenuOptionType<T extends string | number> = {
42
44
  /**
@@ -9,7 +9,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
9
9
  }[];
10
10
  filteredOptions: import('./types').ActionMenuOptionType<T>[];
11
11
  focusedIndex: number;
12
- itemsRef: import('react').MutableRefObject<RefObject<HTMLAnchorElement | HTMLButtonElement>[]>;
12
+ itemsRef: import('react').MutableRefObject<RefObject<HTMLButtonElement | HTMLAnchorElement>[]>;
13
13
  triggerProps: import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
14
14
  bounds: Pick<DOMRect, "left" | "top" | "height" | "width">;
15
15
  };
@@ -26,12 +26,16 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
26
26
  about?: string;
27
27
  is?: string;
28
28
  security?: string;
29
+ hidden?: boolean;
30
+ prefix?: string;
31
+ resource?: string;
32
+ draggable?: boolean | "true" | "false";
33
+ onClick?: import('react').MouseEventHandler<HTMLDivElement>;
29
34
  onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
30
35
  "aria-describedby"?: string;
31
36
  "aria-errormessage"?: string;
32
37
  "aria-label"?: string;
33
38
  "aria-labelledby"?: string;
34
- onClick?: import('react').MouseEventHandler<HTMLDivElement>;
35
39
  defaultChecked?: boolean;
36
40
  suppressContentEditableWarning?: boolean;
37
41
  suppressHydrationWarning?: boolean;
@@ -39,8 +43,6 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
39
43
  contentEditable?: "inherit" | (boolean | "true" | "false");
40
44
  contextMenu?: string;
41
45
  dir?: string;
42
- draggable?: boolean | "true" | "false";
43
- hidden?: boolean;
44
46
  lang?: string;
45
47
  placeholder?: string;
46
48
  spellCheck?: boolean | "true" | "false";
@@ -49,9 +51,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
49
51
  radioGroup?: string;
50
52
  datatype?: string;
51
53
  inlist?: any;
52
- prefix?: string;
53
54
  property?: string;
54
- resource?: string;
55
55
  typeof?: string;
56
56
  vocab?: string;
57
57
  autoCapitalize?: string;
@@ -67,14 +67,14 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
67
67
  inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
68
68
  "aria-activedescendant"?: string;
69
69
  "aria-atomic"?: boolean | "true" | "false";
70
- "aria-autocomplete"?: "list" | "none" | "inline" | "both";
70
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both";
71
71
  "aria-busy"?: boolean | "true" | "false";
72
72
  "aria-checked"?: boolean | "true" | "false" | "mixed";
73
73
  "aria-colcount"?: number;
74
74
  "aria-colindex"?: number;
75
75
  "aria-colspan"?: number;
76
76
  "aria-controls"?: string;
77
- "aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
77
+ "aria-current"?: boolean | "time" | "location" | "true" | "false" | "page" | "step" | "date";
78
78
  "aria-details"?: string;
79
79
  "aria-disabled"?: boolean | "true" | "false";
80
80
  "aria-dropeffect"?: "link" | "none" | "popup" | "copy" | "execute" | "move";