@devtron-labs/devtron-fe-common-lib 1.19.2 → 1.19.4-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/{@code-editor-Yvnd5mSs.js → @code-editor-BDOpS-4p.js} +9690 -8976
  2. package/dist/{@common-rjsf-DSIk1aHH.js → @common-rjsf-B26oCCx-.js} +46 -46
  3. package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
  4. package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
  5. package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
  7. package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
  8. package/dist/Common/CIPipeline.Types.d.ts +1 -0
  9. package/dist/Common/Common.service.d.ts +1 -1
  10. package/dist/Common/Constants.d.ts +11 -0
  11. package/dist/Common/ErrorPage.d.ts +1 -1
  12. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  13. package/dist/Common/Helper.d.ts +1 -1
  14. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +1 -0
  15. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
  16. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  17. package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +27 -0
  18. package/dist/Common/InteractiveCellText/index.d.ts +2 -0
  19. package/dist/Common/InteractiveCellText/types.d.ts +10 -0
  20. package/dist/Common/RJSF/Form.d.ts +1 -1
  21. package/dist/Common/RJSF/utils.d.ts +1 -1
  22. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  23. package/dist/Common/SearchBar/types.d.ts +4 -0
  24. package/dist/Common/Types.d.ts +13 -5
  25. package/dist/Common/index.d.ts +1 -0
  26. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
  27. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
  28. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +1 -0
  29. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +1 -0
  30. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
  31. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
  32. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
  33. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
  34. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
  35. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
  36. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
  37. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +9 -0
  38. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
  39. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
  40. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
  41. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
  42. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
  43. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
  44. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
  45. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
  46. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +1 -0
  47. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
  48. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
  49. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
  50. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
  51. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
  52. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
  53. package/dist/Pages-Devtron-2.0/index.d.ts +1 -0
  54. package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
  55. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +8 -8
  56. package/dist/Shared/Components/Backdrop/types.d.ts +11 -2
  57. package/dist/Shared/Components/Button/Button.component.d.ts +68 -68
  58. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  59. package/dist/Shared/Components/CICDHistory/types.d.ts +2 -0
  60. package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
  61. package/dist/Shared/Components/Charts/constants.d.ts +16 -0
  62. package/dist/Shared/Components/Charts/index.d.ts +2 -0
  63. package/dist/Shared/Components/Charts/types.d.ts +56 -0
  64. package/dist/Shared/Components/Charts/utils.d.ts +11 -0
  65. package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
  66. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
  67. package/dist/Shared/Components/DTFocusTrap/types.d.ts +0 -9
  68. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  69. package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +1 -1
  70. package/dist/Shared/Components/GenericModal/types.d.ts +1 -0
  71. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  72. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
  73. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +1 -0
  74. package/dist/Shared/Components/Icon/Icon.d.ts +23 -1
  75. package/dist/Shared/Components/Illustration/Illustration.d.ts +2 -0
  76. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
  77. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
  78. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
  79. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
  80. package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -2
  81. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  82. package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
  83. package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
  84. package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
  85. package/dist/Shared/Components/RegistryIcon/RegistryIcon.d.ts +1 -1
  86. package/dist/Shared/Components/RegistryIcon/types.d.ts +17 -2
  87. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  88. package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
  89. package/dist/Shared/Components/Table/types.d.ts +8 -4
  90. package/dist/Shared/Components/Table/utils.d.ts +1 -1
  91. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  92. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  93. package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
  94. package/dist/Shared/Components/TreeView/types.d.ts +13 -3
  95. package/dist/Shared/Components/index.d.ts +3 -0
  96. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  97. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +31 -2
  98. package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -1
  99. package/dist/Shared/Services/ToastManager/constants.d.ts +2 -2
  100. package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
  101. package/dist/Shared/Services/ToastManager/types.d.ts +23 -3
  102. package/dist/Shared/Services/app.service.d.ts +3 -3
  103. package/dist/Shared/constants.d.ts +3 -1
  104. package/dist/Shared/types.d.ts +10 -0
  105. package/dist/assets/@code-editor.css +1 -1
  106. package/dist/assets/ic-aws-codecommit.236f850c.svg +10 -0
  107. package/dist/assets/ic-bot.65f403dd.svg +3 -0
  108. package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
  109. package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
  110. package/dist/assets/ic-coins.2c15f406.svg +3 -0
  111. package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
  112. package/dist/assets/ic-diff-added.6ef6f938.svg +3 -0
  113. package/dist/assets/ic-diff-deleted.54eb24dd.svg +3 -0
  114. package/dist/assets/ic-diff-updated.294b925e.svg +4 -0
  115. package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
  116. package/dist/assets/ic-group-filter-applied.2cdb11e7.svg +20 -0
  117. package/dist/assets/{ic-folder.051cd30d.svg → ic-group-filter.ed1869f5.svg} +3 -3
  118. package/dist/assets/ic-input.57281408.svg +3 -0
  119. package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
  120. package/dist/assets/ic-locked.dd40e181.svg +3 -0
  121. package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
  122. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
  123. package/dist/assets/ic-storage.03f282b6.svg +21 -0
  124. package/dist/assets/ic-tag.5fdc7834.svg +3 -0
  125. package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
  126. package/dist/assets/ic-warning-fill.bfea8b38.svg +4 -0
  127. package/dist/assets/img-mechanical-operation.04a318d6.svg +17 -0
  128. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
  129. package/dist/index.d.ts +1 -0
  130. package/dist/index.js +928 -914
  131. package/package.json +2 -1
  132. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
  133. package/dist/assets/ic-apica.1c78c468.svg +0 -31
@@ -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";
@@ -63,6 +64,14 @@ export declare const URLS: {
63
64
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
64
65
  readonly LICENSE_AUTH: "/license-auth";
65
66
  readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-config/cluster-env/edit/:clusterId";
67
+ readonly COST_VISIBILITY_OVERVIEW: "/cost-visibility/overview";
68
+ readonly COST_BREAKDOWN_ROUTE: "/cost-visibility/breakdown/:breakdownViewType";
69
+ readonly COST_BREAKDOWN_CLUSTERS: "/cost-visibility/breakdown/clusters";
70
+ readonly COST_BREAKDOWN_ENVIRONMENTS: "/cost-visibility/breakdown/environments";
71
+ readonly COST_BREAKDOWN_PROJECTS: "/cost-visibility/breakdown/projects";
72
+ readonly COST_BREAKDOWN_APPLICATIONS: "/cost-visibility/breakdown/applications";
73
+ readonly COST_BREAKDOWN_ITEM_NAME: ":itemName";
74
+ readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
66
75
  };
67
76
  export declare const ROUTES: {
68
77
  readonly APP: "app";
@@ -364,3 +373,5 @@ export declare enum SSOProvider {
364
373
  oidc = "oidc",
365
374
  openshift = "openshift"
366
375
  }
376
+ export declare const BULK_DEPLOY_LATEST_IMAGE_TAG: SelectPickerOptionType<string>;
377
+ 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
  }
@@ -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';
@@ -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,9 @@
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
+ }
@@ -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";
@@ -1,6 +1,15 @@
1
- import { MouseEvent, ReactNode } from 'react';
1
+ import { MouseEvent, ReactNode, SyntheticEvent } from 'react';
2
2
  import { DTFocusTrapType } from '../DTFocusTrap';
3
- export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'> {
3
+ export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus'> {
4
+ /**
5
+ * Callback function that gets triggered when the Escape key is pressed. \
6
+ * Should be wrapped in useCallback to prevent unnecessary re-renders.
7
+ * @example
8
+ * const handleEscape = useCallback(() => {
9
+ * // Handle escape key press
10
+ * }, []);
11
+ */
12
+ onEscape: (e?: SyntheticEvent) => void;
4
13
  /**
5
14
  * The content to be rendered within the backdrop component.
6
15
  */