@devtron-labs/devtron-fe-common-lib 1.16.0 → 1.17.0-pre-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.
- package/dist/{@code-editor-CEmGYRXP.js → @code-editor-IalENjkh.js} +9490 -9066
- package/dist/{@common-rjsf-qWtqbYmP.js → @common-rjsf-ChkYseh5.js} +6 -6
- package/dist/{@framer-motion-DAmKhMSi.js → @framer-motion-j6RIjEIR.js} +20 -20
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-D5kydtW-.js → @react-dates-BVyHiOGU.js} +2065 -2140
- package/dist/{@react-select-Cmser7OI.js → @react-select-BQNFZu0Y.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-DMnFy9PE.js → @react-virtualized-sticky-tree-CuElh0mS.js} +1 -1
- package/dist/{@vendor-STJ9h0oI.js → @vendor-DbxoIktR.js} +29809 -29542
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
- package/dist/Common/GenericDescription/types.d.ts +4 -1
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +21 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/Hooks/useStateFilters/types.d.ts +2 -2
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +2 -1
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal.d.ts +1 -0
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -0
- package/dist/Common/Pagination/constants.d.ts +4 -0
- package/dist/Common/Pagination/index.d.ts +1 -0
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +8 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +35 -2
- package/dist/Pages/ResourceBrowser/constants.d.ts +13 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +17 -0
- package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +1 -3
- package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +5 -9
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +2 -1
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
- package/dist/Shared/Components/Backdrop/types.d.ts +28 -2
- package/dist/Shared/Components/Backdrop/utils.d.ts +1 -0
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +4 -9
- package/dist/Shared/Components/Button/Button.component.d.ts +376 -2
- package/dist/Shared/Components/Button/types.d.ts +6 -3
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +2 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +7 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +9 -0
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +6 -0
- package/dist/Shared/Components/GenericModal/constants.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/index.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/types.d.ts +37 -0
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +0 -3
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -3
- package/dist/Shared/Components/Icon/Icon.d.ts +18 -1
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -1
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +3 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/BulkSelectionActionWidget.d.ts +1 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +3 -0
- package/dist/Shared/Components/Table/constants.d.ts +1 -0
- package/dist/Shared/Components/Table/index.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +48 -21
- package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +6 -1
- package/dist/Shared/Components/Table/utils.d.ts +5 -0
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +75 -41
- package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +10 -12
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +13 -2
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +3 -2
- package/dist/Shared/Hooks/useStickyEvent/constants.d.ts +3 -2
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +3 -0
- package/dist/Shared/Providers/{types.d.ts → MainContextProvider/types.d.ts} +4 -4
- package/dist/Shared/Providers/index.d.ts +0 -2
- package/dist/Shared/Services/types.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/Shared/types.d.ts +15 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-bug.8a8dc1fc.svg +3 -0
- package/dist/assets/ic-check-all.fdea6b38.svg +5 -0
- package/dist/assets/ic-check-square.e355731d.svg +4 -0
- package/dist/assets/ic-clean-brush.c21cbe1e.svg +3 -0
- package/dist/assets/ic-container.92a4c33a.svg +3 -0
- package/dist/assets/ic-deploy-color.73a8df48.svg +14 -0
- package/dist/assets/ic-deploy-sync.6b1cf1b1.svg +16 -0
- package/dist/assets/ic-download.468a0cb7.svg +3 -0
- package/dist/assets/ic-file-code.0926d194.svg +3 -0
- package/dist/assets/ic-gavel.a3b064b5.svg +3 -0
- package/dist/assets/ic-git-branch.d6b3d950.svg +3 -0
- package/dist/assets/ic-info-filled-color.47953fcf.svg +8 -0
- package/dist/assets/ic-linked-build-color.d1df5ce1.svg +7 -0
- package/dist/assets/ic-logs.d310db72.svg +3 -0
- package/dist/assets/{ic-minus.416da21b.svg → ic-minus.aac464f7.svg} +1 -1
- package/dist/assets/ic-pause-circle.f9405070.svg +3 -0
- package/dist/assets/ic-speedometer.3ecaae3b.svg +3 -0
- package/dist/assets/ic-two-cubes.056d1333.svg +3 -0
- package/dist/assets/ic-webhook.ffd8ded6.svg +21 -0
- package/dist/assets/workflow-options-modal-header.0444485e.svg +38 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +854 -838
- package/package.json +7 -7
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -3
- package/dist/assets/change-source.abc9d12f.png +0 -0
- package/dist/assets/ic-check-all.0376437d.svg +0 -21
- package/dist/assets/ic-check-square.2a3d3fb9.svg +0 -20
- package/dist/assets/ic-ci-webhook.a2ab6db6.svg +0 -42
- package/dist/assets/ic-source-build.7d776b10.svg +0 -22
- package/dist/assets/ic-source-job.a40f06cf.svg +0 -26
- package/dist/assets/ic-source-linked-build.f24ecbed.svg +0 -24
- package/dist/assets/ic-source-webhook.ee64a29a.svg +0 -22
- package/dist/assets/select-image-source.fb911f42.png +0 -0
- /package/dist/Shared/Providers/{MainContextProvider.d.ts → MainContextProvider/MainContextProvider.d.ts} +0 -0
- /package/dist/assets/{ic-container.4e1e6455.svg → ic-container-registry.4e1e6455.svg} +0 -0
@@ -1,2 +1,2 @@
|
|
1
1
|
import { CheckboxProps } from '../Types';
|
2
|
-
export declare const Checkbox: (
|
2
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
|
@@ -63,6 +63,7 @@ export declare const URLS: {
|
|
63
63
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
64
64
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
65
65
|
readonly LICENSE_AUTH: "/license-auth";
|
66
|
+
readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-config/cluster-env/edit/:clusterId";
|
66
67
|
};
|
67
68
|
export declare const ROUTES: {
|
68
69
|
readonly APP: "app";
|
@@ -293,6 +294,7 @@ export declare const API_STATUS_CODES: {
|
|
293
294
|
NOT_FOUND: number;
|
294
295
|
REQUEST_TIMEOUT: number;
|
295
296
|
CONFLICT: number;
|
297
|
+
PRE_CONDITION_FAILED: number;
|
296
298
|
EXPECTATION_FAILED: number;
|
297
299
|
UNPROCESSABLE_ENTITY: number;
|
298
300
|
LOCKED: number;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { GenericDescriptionProps } from './types';
|
2
|
-
declare const GenericDescription: ({ text, updatedBy, updatedOn,
|
2
|
+
declare const GenericDescription: ({ text, updatedBy, updatedOn, tabIndex, updateDescription, title, minEditorHeight, emptyStateConfig, }: GenericDescriptionProps) => JSX.Element;
|
3
3
|
export default GenericDescription;
|
@@ -2,11 +2,14 @@ export interface GenericDescriptionProps {
|
|
2
2
|
text?: string;
|
3
3
|
updatedBy?: string;
|
4
4
|
updatedOn?: string;
|
5
|
-
isDescriptionPreview: boolean;
|
6
5
|
updateDescription: (string: any) => Promise<void>;
|
7
6
|
title: string;
|
8
7
|
tabIndex?: number;
|
9
8
|
minEditorHeight?: number;
|
9
|
+
emptyStateConfig?: {
|
10
|
+
img: string;
|
11
|
+
subtitle: JSX.Element;
|
12
|
+
};
|
10
13
|
}
|
11
14
|
export declare enum MDEditorSelectedTabType {
|
12
15
|
WRITE = "write",
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { UseRegisterShortcutProviderType } from './types';
|
2
|
-
declare const UseRegisterShortcutProvider: ({ ignoreTags, preventDefault, shortcutTimeout, children, }: UseRegisterShortcutProviderType) => JSX.Element;
|
2
|
+
declare const UseRegisterShortcutProvider: ({ shouldHookOntoWindow, ignoreTags, preventDefault, shortcutTimeout, children, }: UseRegisterShortcutProviderType) => JSX.Element;
|
3
3
|
export default UseRegisterShortcutProvider;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { FocusEvent, KeyboardEvent } from 'react';
|
1
2
|
export declare const KEYBOARD_KEYS_MAP: {
|
2
3
|
readonly Control: "Ctrl";
|
3
4
|
readonly Shift: "⇧";
|
@@ -9,6 +10,9 @@ export declare const KEYBOARD_KEYS_MAP: {
|
|
9
10
|
readonly K: "K";
|
10
11
|
readonly X: "X";
|
11
12
|
readonly A: "A";
|
13
|
+
readonly N: "N";
|
14
|
+
readonly S: "S";
|
15
|
+
readonly '/': "/";
|
12
16
|
readonly Escape: "Esc";
|
13
17
|
readonly Enter: "↩";
|
14
18
|
readonly ArrowLeft: "←";
|
@@ -54,8 +58,25 @@ export interface UseRegisterShortcutContextType {
|
|
54
58
|
* Programmatically trigger a shortcut if already registered
|
55
59
|
*/
|
56
60
|
triggerShortcut: (keys: ShortcutType['keys']) => void;
|
61
|
+
/**
|
62
|
+
* If shouldHookOntoWindow is false, these props need to be hooked onto
|
63
|
+
* the component that needs to listen to the shortcuts
|
64
|
+
*/
|
65
|
+
targetProps?: {
|
66
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
67
|
+
onKeyUp: (event: KeyboardEvent<HTMLElement>) => void;
|
68
|
+
onBlur: (event: FocusEvent<HTMLElement>) => void;
|
69
|
+
};
|
57
70
|
}
|
58
71
|
export interface UseRegisterShortcutProviderType {
|
72
|
+
/**
|
73
|
+
* If false, the shortcuts will not be registered to the window object
|
74
|
+
* instead onKeyDown, onKeyUp and onBlur will be exposed as context methods
|
75
|
+
* which need to be hooked onto the component that needs to listen to the shortcuts
|
76
|
+
*
|
77
|
+
* defaults to true
|
78
|
+
*/
|
79
|
+
shouldHookOntoWindow?: boolean;
|
59
80
|
children: React.ReactNode;
|
60
81
|
/**
|
61
82
|
* Defines how long after holding the keys down do we trigger the callback in milliseconds
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
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")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
2
|
-
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
2
|
+
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey' | 'defaultPageSize'> {
|
3
3
|
}
|
4
|
-
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize' | 'searchKey' | 'handleSearch' | '
|
4
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize' | 'searchKey' | 'handleSearch' | 'areFiltersApplied'> {
|
5
5
|
}
|
6
6
|
export interface PaginationType<T> extends Pick<UseUrlFiltersReturnType<T>, 'pageSize'> {
|
7
7
|
pageNumber: number;
|
@@ -12,5 +12,5 @@ import { UseStateFiltersProps, UseStateFiltersReturnType } from './types';
|
|
12
12
|
*
|
13
13
|
* To be extended to be used with pagination and search as and when required
|
14
14
|
*/
|
15
|
-
declare const useStateFilters: <T = string>({ initialSortKey, }?: UseStateFiltersProps<T>) => UseStateFiltersReturnType<T>;
|
15
|
+
declare const useStateFilters: <T = string>({ initialSortKey, defaultPageSize, }?: UseStateFiltersProps<T>) => UseStateFiltersReturnType<T>;
|
16
16
|
export default useStateFilters;
|
@@ -18,6 +18,7 @@ export interface UseUrlFiltersProps<T, K extends {}> {
|
|
18
18
|
* @default 'replace'
|
19
19
|
*/
|
20
20
|
redirectionMethod?: 'replace' | 'push';
|
21
|
+
defaultPageSize?: number;
|
21
22
|
}
|
22
23
|
export type UpdateSearchParamsOptionsType<T, K = {}> = Partial<Pick<UseUrlFiltersProps<T, K>, 'redirectionMethod'>>;
|
23
24
|
export type UseUrlFiltersReturnType<T, K = {}> = K & {
|
@@ -67,5 +68,5 @@ export type UseUrlFiltersReturnType<T, K = {}> = K & {
|
|
67
68
|
* Update the search params with the passed object
|
68
69
|
*/
|
69
70
|
updateSearchParams: (paramsToSerialize: Partial<K>, options?: UpdateSearchParamsOptionsType<T, K>) => void;
|
70
|
-
|
71
|
+
areFiltersApplied: boolean;
|
71
72
|
};
|
@@ -16,5 +16,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
|
|
16
16
|
* ```
|
17
17
|
*
|
18
18
|
*/
|
19
|
-
declare const useUrlFilters: <T = string, K = {}>({ initialSortKey, parseSearchParams, localStorageKey, redirectionMethod, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
|
19
|
+
declare const useUrlFilters: <T = string, K = {}>({ initialSortKey, parseSearchParams, localStorageKey, redirectionMethod, defaultPageSize, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
|
20
20
|
export default useUrlFilters;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TippyProps } from '@tippyjs/react';
|
2
|
-
import { SupportedKeyboardKeysType } from '
|
2
|
+
import { SupportedKeyboardKeysType } from '../Hooks/UseRegisterShortcut/types';
|
3
3
|
type BaseTooltipProps = {
|
4
4
|
/**
|
5
5
|
* If true, show tippy on truncate
|
package/dist/Common/Types.d.ts
CHANGED
@@ -550,10 +550,10 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTr
|
|
550
550
|
}
|
551
551
|
export declare enum DeploymentAppTypes {
|
552
552
|
HELM = "helm",
|
553
|
-
|
553
|
+
ARGO = "argo_cd",
|
554
554
|
MANIFEST_DOWNLOAD = "manifest_download",
|
555
555
|
MANIFEST_PUSH = "manifest_push",
|
556
|
-
FLUX = "
|
556
|
+
FLUX = "flux_cd"
|
557
557
|
}
|
558
558
|
export interface VulnerabilityType {
|
559
559
|
name: string;
|
@@ -1,3 +1,11 @@
|
|
1
1
|
import { SelectPickerOptionType } from '../../../../../Shared/Components';
|
2
2
|
export declare const IO_VARIABLES_VALUE_COLUMN_BOOL_OPTIONS: SelectPickerOptionType<string>[];
|
3
3
|
export declare const IO_VARIABLES_VALUE_COLUMN_DATE_OPTIONS: SelectPickerOptionType<string>[];
|
4
|
+
export declare const VALUE_COLUMN_DROPDOWN_LABEL: {
|
5
|
+
readonly CHOICES: "Choices";
|
6
|
+
readonly SUPPORTED_DATE_FORMATS: "Supported date formats";
|
7
|
+
readonly SYSTEM_VARIABLES: "System variables";
|
8
|
+
readonly PRE_BUILD_STAGE: "From Pre-build Stage";
|
9
|
+
readonly POST_BUILD_STAGE: "From Post-build Stage";
|
10
|
+
readonly PREVIOUS_STEPS: "From Previous Steps";
|
11
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { UseBreadcrumbProps } from '
|
1
|
+
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
2
2
|
import { CMSecretComponentType } from '../../../Shared/Services';
|
3
3
|
import { BuildInfraAPIVersionType, BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraInheritActionsOnSubValues, BuildInfraLocators, BuildInfraMetaConfigTypes, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType, HandleProfileInputChangeType, InfraConfigWithSubValues, ProfileInputErrorType, RequestLimitConfigType, TargetPlatformErrorFields, ValidateRequestLimitType } from './types';
|
4
4
|
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { RefObject } from 'react';
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
2
2
|
import { Nodes, NodeType } from '../../Shared/types';
|
3
3
|
export interface GVKType {
|
4
4
|
Group: string;
|
@@ -34,14 +34,37 @@ export interface K8sResourceListPayloadType {
|
|
34
34
|
filter?: string;
|
35
35
|
k8sRequest: ResourceListPayloadK8sRequestType;
|
36
36
|
}
|
37
|
+
export declare enum ResourceRecommenderHeaderType {
|
38
|
+
NAME = "name",
|
39
|
+
NAMESPACE = "namespace",
|
40
|
+
KIND = "kind",
|
41
|
+
API_VERSION = "apiVersion",
|
42
|
+
CONTAINER_NAME = "containerName",
|
43
|
+
CPU_REQUEST = "cpuRequest",
|
44
|
+
CPU_LIMIT = "cpuLimit",
|
45
|
+
MEMORY_REQUEST = "memoryRequest",
|
46
|
+
MEMORY_LIMIT = "memoryLimit"
|
47
|
+
}
|
48
|
+
export type ResourceRecommenderHeaderWithStringValue = Extract<ResourceRecommenderHeaderType, ResourceRecommenderHeaderType.NAME | ResourceRecommenderHeaderType.NAMESPACE | ResourceRecommenderHeaderType.KIND | ResourceRecommenderHeaderType.API_VERSION | ResourceRecommenderHeaderType.CONTAINER_NAME>;
|
49
|
+
export type ResourceRecommenderHeaderWithRecommendation = Extract<ResourceRecommenderHeaderType, ResourceRecommenderHeaderType.CPU_REQUEST | ResourceRecommenderHeaderType.CPU_LIMIT | ResourceRecommenderHeaderType.MEMORY_REQUEST | ResourceRecommenderHeaderType.MEMORY_LIMIT>;
|
37
50
|
export type K8sResourceDetailDataType = {
|
38
51
|
[key: string]: string | number | object | boolean;
|
52
|
+
additionalMetadata?: Partial<Record<ResourceRecommenderHeaderWithRecommendation, {
|
53
|
+
current: {
|
54
|
+
value: string | 'none';
|
55
|
+
} | null;
|
56
|
+
recommended: {
|
57
|
+
value: string | 'none';
|
58
|
+
} | null;
|
59
|
+
delta: number | null;
|
60
|
+
}>>;
|
39
61
|
};
|
40
62
|
export interface K8sResourceDetailType {
|
41
63
|
headers: string[];
|
42
64
|
data: K8sResourceDetailDataType[];
|
43
65
|
}
|
44
66
|
export interface BulkSelectionActionWidgetProps {
|
67
|
+
isResourceRecommendationView: boolean;
|
45
68
|
count: number;
|
46
69
|
handleOpenBulkDeleteModal: () => void;
|
47
70
|
handleClearBulkSelection: () => void;
|
@@ -49,11 +72,12 @@ export interface BulkSelectionActionWidgetProps {
|
|
49
72
|
handleOpenUncordonNodeModal: () => void;
|
50
73
|
handleOpenDrainNodeModal: () => void;
|
51
74
|
handleOpenRestartWorkloadModal: () => void;
|
75
|
+
handleOpenApplyResourceRecommendationModal: () => void;
|
52
76
|
parentRef: RefObject<HTMLDivElement>;
|
53
77
|
showBulkRestartOption: boolean;
|
54
78
|
showNodeListingOptions: boolean;
|
55
79
|
}
|
56
|
-
export type RBBulkOperationType = 'restart' | 'delete' | 'cordon' | 'uncordon' | 'drain';
|
80
|
+
export type RBBulkOperationType = 'restart' | 'delete' | 'cordon' | 'uncordon' | 'drain' | 'applyResourceRecommendation';
|
57
81
|
export interface CreateResourceRequestBodyType {
|
58
82
|
appId: string;
|
59
83
|
clusterId: number;
|
@@ -65,6 +89,7 @@ export interface CreateResourceRequestBodyType {
|
|
65
89
|
export interface ResourceManifestDTO {
|
66
90
|
manifestResponse: {
|
67
91
|
manifest: Record<string, unknown>;
|
92
|
+
recommendedManifest?: Record<string, unknown>;
|
68
93
|
};
|
69
94
|
secretViewAccess: boolean;
|
70
95
|
}
|
@@ -108,4 +133,12 @@ export interface NodeActionRequest {
|
|
108
133
|
version: string;
|
109
134
|
kind: string;
|
110
135
|
}
|
136
|
+
export interface GVKOptionValueType {
|
137
|
+
kind: string;
|
138
|
+
apiVersion: string;
|
139
|
+
}
|
140
|
+
export interface ResourceRecommenderActionMenuProps {
|
141
|
+
children: ReactNode;
|
142
|
+
lastScannedOn: string;
|
143
|
+
}
|
111
144
|
export {};
|
@@ -50,3 +50,16 @@ export declare const NODE_DRAIN_OPTIONS_CHECKBOX_CONFIG: {
|
|
50
50
|
infoText: string;
|
51
51
|
label: string;
|
52
52
|
}[];
|
53
|
+
export declare const GVK_FILTER_KIND_QUERY_PARAM_KEY = "gvkFilterKind";
|
54
|
+
export declare const GVK_FILTER_API_VERSION_QUERY_PARAM_KEY = "gvkFilterApiVersion";
|
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";
|
64
|
+
};
|
65
|
+
export declare const K8S_EMPTY_GROUP = "k8sEmptyGroup";
|
@@ -2,7 +2,7 @@ import { APIOptions, ResponseType } from '../../Common/Types';
|
|
2
2
|
import { CreateResourceDTO, CreateResourcePayload, K8sResourceDetailType, K8sResourceListPayloadType, NodeActionRequest, ResourceListPayloadType, ResourceType } from './ResourceBrowser.Types';
|
3
3
|
import { ClusterDetail, NodeCordonRequest } from './types';
|
4
4
|
export declare const getK8sResourceList: (resourceListPayload: K8sResourceListPayloadType, signal?: AbortSignal) => Promise<ResponseType<K8sResourceDetailType>>;
|
5
|
-
export declare const createNewResource: (resourceListPayload: CreateResourcePayload) => Promise<ResponseType<CreateResourceDTO[]>>;
|
5
|
+
export declare const createNewResource: (resourceListPayload: CreateResourcePayload, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType<CreateResourceDTO[]>>;
|
6
6
|
export declare const deleteResource: (resourceListPayload: ResourceListPayloadType, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType<ResourceType[]>>;
|
7
7
|
export declare const deleteNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
8
8
|
export declare const cordonNodeCapacity: (requestPayload: NodeCordonRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
@@ -113,4 +113,21 @@ export interface InstallationClusterConfigType extends Pick<InstallationClusterC
|
|
113
113
|
status: InstallationClusterStatus;
|
114
114
|
correspondingClusterId: number | 0;
|
115
115
|
}
|
116
|
+
export declare enum NodeActionMenuOptionIdEnum {
|
117
|
+
terminal = "terminal",
|
118
|
+
cordon = "cordon",
|
119
|
+
uncordon = "uncordon",
|
120
|
+
drain = "drain",
|
121
|
+
editTaints = "edit-taints",
|
122
|
+
editYaml = "edit-yaml",
|
123
|
+
delete = "delete"
|
124
|
+
}
|
125
|
+
export declare enum ResourceBrowserActionMenuEnum {
|
126
|
+
manifest = "manifest",
|
127
|
+
events = "events",
|
128
|
+
logs = "logs",
|
129
|
+
terminal = "terminal",
|
130
|
+
delete = "delete",
|
131
|
+
vulnerability = "vulnerability"
|
132
|
+
}
|
116
133
|
export {};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
declare const AboutDevtronDialog: ({ handleCloseLicenseInfoDialog
|
1
|
+
declare const AboutDevtronDialog: ({ handleCloseLicenseInfoDialog }: {
|
2
2
|
handleCloseLicenseInfoDialog: () => void;
|
3
|
-
isFELibAvailable: boolean;
|
4
3
|
}) => JSX.Element;
|
5
4
|
export default AboutDevtronDialog;
|
@@ -13,7 +13,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
13
13
|
triggerProps: import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
14
14
|
bounds: Pick<DOMRect, "left" | "top" | "height" | "width">;
|
15
15
|
};
|
16
|
-
overlayProps:
|
16
|
+
overlayProps: Omit<import('..').BackdropProps, "children">;
|
17
17
|
popoverProps: {
|
18
18
|
slot?: string;
|
19
19
|
title?: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { AnimatedDeployButtonProps } from './types';
|
2
|
-
declare const AnimatedDeployButton: ({ isLoading,
|
2
|
+
declare const AnimatedDeployButton: ({ text, style, disabled, isLoading, startIcon, endIcon, dataTestId, onButtonClick, tooltipContent, animateStartIcon, }: AnimatedDeployButtonProps) => JSX.Element;
|
3
3
|
export default AnimatedDeployButton;
|
@@ -1,10 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
canDeploy: boolean;
|
7
|
-
isImageApprover: boolean;
|
8
|
-
};
|
9
|
-
isBulkCDTrigger?: boolean;
|
1
|
+
import { ButtonProps } from '../Button';
|
2
|
+
export interface AnimatedDeployButtonProps extends Pick<ButtonProps, 'dataTestId' | 'text' | 'disabled' | 'isLoading' | 'startIcon' | 'endIcon' | 'style'> {
|
3
|
+
onButtonClick: (e?: any) => void;
|
4
|
+
tooltipContent?: string;
|
5
|
+
animateStartIcon?: boolean;
|
10
6
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { AppDetails, DeploymentStatusDetailsBreakdownDataType } from '../../types';
|
2
2
|
import { GetAppDetailsParamsType, GetDeploymentStatusWithTimelineParamsType } from './types';
|
3
3
|
export declare const getAppDetails: ({ appId, envId, abortControllerRef, }: GetAppDetailsParamsType) => Promise<AppDetails>;
|
4
|
-
export declare const getDeploymentStatusWithTimeline: ({ abortControllerRef, appId, envId, showTimeline, virtualEnvironmentConfig, isHelmApp, }: GetDeploymentStatusWithTimelineParamsType) => Promise<DeploymentStatusDetailsBreakdownDataType>;
|
4
|
+
export declare const getDeploymentStatusWithTimeline: ({ abortControllerRef, appId, envId, showTimeline, virtualEnvironmentConfig, isHelmApp, deploymentAppType, }: GetDeploymentStatusWithTimelineParamsType) => Promise<DeploymentStatusDetailsBreakdownDataType>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
2
|
-
import { APIOptions } from '../../../Common/Types';
|
2
|
+
import { APIOptions, DeploymentAppTypes } from '../../../Common/Types';
|
3
3
|
import { AppDetails, ConfigDriftModalProps, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, IntelligenceConfig } from '../../types';
|
4
4
|
export declare enum AppStatusModalTabType {
|
5
5
|
APP_STATUS = "appStatus",
|
@@ -65,6 +65,7 @@ export type GetDeploymentStatusWithTimelineParamsType = Pick<APIOptions, 'abortC
|
|
65
65
|
wfrId: AppDetails['resourceTree']['wfrId'];
|
66
66
|
};
|
67
67
|
isHelmApp?: boolean;
|
68
|
+
deploymentAppType: DeploymentAppTypes;
|
68
69
|
};
|
69
70
|
export interface AppStatusModalTabListProps extends Pick<AppStatusModalProps, 'appDetails' | 'type'> {
|
70
71
|
handleSelectTab: (updatedTab: AppStatusModalTabType) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BackdropProps } from './types';
|
2
|
-
declare const Backdrop: ({ children, onEscape }: BackdropProps) => import('react').ReactPortal;
|
2
|
+
declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount }: BackdropProps) => import('react').ReactPortal;
|
3
3
|
export default Backdrop;
|
@@ -1,8 +1,34 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
2
2
|
export interface BackdropProps {
|
3
|
+
/**
|
4
|
+
* The content to be rendered within the backdrop component.
|
5
|
+
*/
|
3
6
|
children: ReactNode;
|
4
7
|
/**
|
5
|
-
*
|
8
|
+
* Callback function that gets triggered when the Escape key is pressed. \
|
9
|
+
* Should be wrapped in useCallback to prevent unnecessary re-renders.
|
10
|
+
* @example
|
11
|
+
* const handleEscape = useCallback(() => {
|
12
|
+
* // Handle escape key press
|
13
|
+
* }, []);
|
6
14
|
*/
|
7
15
|
onEscape: () => void;
|
16
|
+
/**
|
17
|
+
* Callback function that gets triggered when the backdrop is clicked.
|
18
|
+
* Useful for dismissing modals or other overlay content.
|
19
|
+
* @param e - The mouse event object from the click interaction
|
20
|
+
*/
|
21
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
22
|
+
/**
|
23
|
+
* Determines if the backdrop should be transparent.
|
24
|
+
* When true, the backdrop will not have any background color or blur filter.
|
25
|
+
* @default false
|
26
|
+
*/
|
27
|
+
hasClearBackground?: boolean;
|
28
|
+
/**
|
29
|
+
* Callback function that gets triggered when the backdrop component mounts or unmounts.
|
30
|
+
* This can be used to perform side effects or state updates when the backdrop's visibility changes.
|
31
|
+
* @param isMounted - A boolean indicating whether the backdrop is currently mounted (true) or not (false)
|
32
|
+
*/
|
33
|
+
onBackdropMount?: (isMounted: boolean) => void;
|
8
34
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const createPortalContainerAndAppendToDOM: (portalContainerId: string) => HTMLDivElement;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ComponentSizeType } from '../../constants';
|
2
|
+
import { IconBaseColorType } from '../../types';
|
3
|
+
import { IconsProps } from '../Icon';
|
4
|
+
export type BadgeVariants = 'default' | 'negative' | 'negative-grey' | 'positive' | 'warning' | 'neutral' | 'custom';
|
5
|
+
export type BadgeProps = {
|
6
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.xxs | ComponentSizeType.xxxs>;
|
7
|
+
startIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
8
|
+
endIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
9
|
+
label: string;
|
10
|
+
} & ({
|
11
|
+
variant?: Exclude<BadgeVariants, 'custom'>;
|
12
|
+
fontColor?: never;
|
13
|
+
bgColor?: never;
|
14
|
+
} | {
|
15
|
+
variant: 'custom';
|
16
|
+
fontColor: IconBaseColorType;
|
17
|
+
bgColor: IconBaseColorType;
|
18
|
+
});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IconBaseColorType } from '../../types';
|
2
|
+
import { BadgeProps } from './types';
|
3
|
+
export declare const getClassNameAccToVariant: (variant: BadgeProps["variant"]) => {
|
4
|
+
styles: string;
|
5
|
+
iconColor: IconBaseColorType;
|
6
|
+
};
|
7
|
+
export declare const getClassNameAccToSize: (size: BadgeProps["size"]) => "fs-11 lh-16 px-4 py-1" | "fs-12 lh-16 px-6 py-2" | "fs-13 lh-20 px-6 py-2";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { APIOptions, DrawerProps } from '../../../Common/index';
|
3
|
-
import { Entity } from '
|
3
|
+
import { Entity } from '../../../Common/SegmentedBarChart/types';
|
4
4
|
import { ConfirmationModalProps } from '../ConfirmationModal/types';
|
5
5
|
import { getProgressingStateForStatus } from '../Security';
|
6
6
|
interface BulkOperationAdditionalKeysType {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BulkSelectionProps } from './types';
|
2
|
-
declare const BulkSelection: <
|
2
|
+
declare const BulkSelection: import('react').ForwardRefExoticComponent<BulkSelectionProps & import('react').RefAttributes<HTMLLabelElement>>;
|
3
3
|
export default BulkSelection;
|
@@ -33,15 +33,10 @@ export interface BulkSelectionProps {
|
|
33
33
|
*/
|
34
34
|
showChevronDownIcon?: boolean;
|
35
35
|
disabled?: boolean;
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
isSelected: boolean;
|
41
|
-
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
42
|
-
iconClass?: string;
|
43
|
-
}
|
44
|
-
export interface BulkSelectionDropdownItemsProps<T> extends BulkSelectionDropdownItemsType, Pick<UseBulkSelectionReturnType<T>, 'handleBulkSelection'> {
|
36
|
+
/**
|
37
|
+
* Will act as checkbox instead of opening up popup if list is not paginated
|
38
|
+
*/
|
39
|
+
selectAllIfNotPaginated?: boolean;
|
45
40
|
}
|
46
41
|
export declare enum SelectAllDialogStatus {
|
47
42
|
OPEN = "OPEN",
|