@devtron-labs/devtron-fe-common-lib 1.15.3 → 1.16.0-beta-5
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-BSHPw8A0.js → @code-editor-b_sdr086.js} +9138 -8783
- package/dist/{@common-rjsf-CwVuUFdU.js → @common-rjsf-Bs6LFW3z.js} +6 -6
- package/dist/{@framer-motion-Bw9QEkUf.js → @framer-motion-j6RIjEIR.js} +854 -784
- 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 +19 -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/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/PopupMenu.d.ts +2 -1
- package/dist/Common/Tooltip/types.d.ts +1 -1
- 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 +46 -2
- package/dist/Pages/ResourceBrowser/constants.d.ts +2 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- 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/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 +1 -9
- package/dist/Shared/Components/Button/types.d.ts +2 -2
- 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/types.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- 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/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 +13 -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.js +852 -841
- 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,7 @@ 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";
|
12
14
|
readonly Escape: "Esc";
|
13
15
|
readonly Enter: "↩";
|
14
16
|
readonly ArrowLeft: "←";
|
@@ -54,8 +56,25 @@ export interface UseRegisterShortcutContextType {
|
|
54
56
|
* Programmatically trigger a shortcut if already registered
|
55
57
|
*/
|
56
58
|
triggerShortcut: (keys: ShortcutType['keys']) => void;
|
59
|
+
/**
|
60
|
+
* If shouldHookOntoWindow is false, these props need to be hooked onto
|
61
|
+
* the component that needs to listen to the shortcuts
|
62
|
+
*/
|
63
|
+
targetProps?: {
|
64
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
65
|
+
onKeyUp: (event: KeyboardEvent<HTMLElement>) => void;
|
66
|
+
onBlur: (event: FocusEvent<HTMLElement>) => void;
|
67
|
+
};
|
57
68
|
}
|
58
69
|
export interface UseRegisterShortcutProviderType {
|
70
|
+
/**
|
71
|
+
* If false, the shortcuts will not be registered to the window object
|
72
|
+
* instead onKeyDown, onKeyUp and onBlur will be exposed as context methods
|
73
|
+
* which need to be hooked onto the component that needs to listen to the shortcuts
|
74
|
+
*
|
75
|
+
* defaults to true
|
76
|
+
*/
|
77
|
+
shouldHookOntoWindow?: boolean;
|
59
78
|
children: React.ReactNode;
|
60
79
|
/**
|
61
80
|
* 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" | "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,7 +1,8 @@
|
|
1
|
+
import { default as React } from 'react';
|
1
2
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
2
3
|
declare const PopupMenu: {
|
3
4
|
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault, }: PopupMenuType): any;
|
4
|
-
Button:
|
5
|
+
Button: React.ForwardRefExoticComponent<PopupMenuButtonType & React.RefAttributes<unknown>>;
|
5
6
|
Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
|
6
7
|
};
|
7
8
|
export default PopupMenu;
|
@@ -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
|
@@ -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,7 @@
|
|
1
|
-
import { RefObject } from 'react';
|
1
|
+
import { Dispatch, ReactNode, RefObject, SetStateAction } from 'react';
|
2
|
+
import { GroupBase } from 'react-select';
|
3
|
+
import { ServerErrors } from '../../Common/ServerError';
|
4
|
+
import { SelectPickerOptionType } from '../../Shared/Components';
|
2
5
|
import { Nodes, NodeType } from '../../Shared/types';
|
3
6
|
export interface GVKType {
|
4
7
|
Group: string;
|
@@ -34,14 +37,37 @@ export interface K8sResourceListPayloadType {
|
|
34
37
|
filter?: string;
|
35
38
|
k8sRequest: ResourceListPayloadK8sRequestType;
|
36
39
|
}
|
40
|
+
export declare enum ResourceRecommenderHeaderType {
|
41
|
+
NAME = "name",
|
42
|
+
NAMESPACE = "namespace",
|
43
|
+
KIND = "kind",
|
44
|
+
API_VERSION = "apiVersion",
|
45
|
+
CONTAINER_NAME = "containerName",
|
46
|
+
CPU_REQUEST = "cpuRequest",
|
47
|
+
CPU_LIMIT = "cpuLimit",
|
48
|
+
MEMORY_REQUEST = "memoryRequest",
|
49
|
+
MEMORY_LIMIT = "memoryLimit"
|
50
|
+
}
|
51
|
+
export type ResourceRecommenderHeaderWithStringValue = Extract<ResourceRecommenderHeaderType, ResourceRecommenderHeaderType.NAME | ResourceRecommenderHeaderType.NAMESPACE | ResourceRecommenderHeaderType.KIND | ResourceRecommenderHeaderType.API_VERSION | ResourceRecommenderHeaderType.CONTAINER_NAME>;
|
52
|
+
export type ResourceRecommenderHeaderWithRecommendation = Extract<ResourceRecommenderHeaderType, ResourceRecommenderHeaderType.CPU_REQUEST | ResourceRecommenderHeaderType.CPU_LIMIT | ResourceRecommenderHeaderType.MEMORY_REQUEST | ResourceRecommenderHeaderType.MEMORY_LIMIT>;
|
37
53
|
export type K8sResourceDetailDataType = {
|
38
54
|
[key: string]: string | number | object | boolean;
|
55
|
+
additionalMetadata?: Partial<Record<ResourceRecommenderHeaderWithRecommendation, {
|
56
|
+
current: {
|
57
|
+
value: string | 'none';
|
58
|
+
} | null;
|
59
|
+
recommended: {
|
60
|
+
value: string | 'none';
|
61
|
+
} | null;
|
62
|
+
delta: number | null;
|
63
|
+
}>>;
|
39
64
|
};
|
40
65
|
export interface K8sResourceDetailType {
|
41
66
|
headers: string[];
|
42
67
|
data: K8sResourceDetailDataType[];
|
43
68
|
}
|
44
69
|
export interface BulkSelectionActionWidgetProps {
|
70
|
+
isResourceRecommendationView: boolean;
|
45
71
|
count: number;
|
46
72
|
handleOpenBulkDeleteModal: () => void;
|
47
73
|
handleClearBulkSelection: () => void;
|
@@ -49,11 +75,12 @@ export interface BulkSelectionActionWidgetProps {
|
|
49
75
|
handleOpenUncordonNodeModal: () => void;
|
50
76
|
handleOpenDrainNodeModal: () => void;
|
51
77
|
handleOpenRestartWorkloadModal: () => void;
|
78
|
+
handleOpenApplyResourceRecommendationModal: () => void;
|
52
79
|
parentRef: RefObject<HTMLDivElement>;
|
53
80
|
showBulkRestartOption: boolean;
|
54
81
|
showNodeListingOptions: boolean;
|
55
82
|
}
|
56
|
-
export type RBBulkOperationType = 'restart' | 'delete' | 'cordon' | 'uncordon' | 'drain';
|
83
|
+
export type RBBulkOperationType = 'restart' | 'delete' | 'cordon' | 'uncordon' | 'drain' | 'applyResourceRecommendation';
|
57
84
|
export interface CreateResourceRequestBodyType {
|
58
85
|
appId: string;
|
59
86
|
clusterId: number;
|
@@ -65,6 +92,7 @@ export interface CreateResourceRequestBodyType {
|
|
65
92
|
export interface ResourceManifestDTO {
|
66
93
|
manifestResponse: {
|
67
94
|
manifest: Record<string, unknown>;
|
95
|
+
recommendedManifest?: Record<string, unknown>;
|
68
96
|
};
|
69
97
|
secretViewAccess: boolean;
|
70
98
|
}
|
@@ -108,4 +136,20 @@ export interface NodeActionRequest {
|
|
108
136
|
version: string;
|
109
137
|
kind: string;
|
110
138
|
}
|
139
|
+
export interface GVKOptionValueType {
|
140
|
+
kind: string;
|
141
|
+
apiVersion: string;
|
142
|
+
}
|
143
|
+
export interface GetResourceRecommenderResourceListPropsType {
|
144
|
+
setShowAbsoluteValuesInResourceRecommender: Dispatch<SetStateAction<boolean>>;
|
145
|
+
showAbsoluteValuesInResourceRecommender: boolean;
|
146
|
+
gvkOptions: GroupBase<SelectPickerOptionType<GVKOptionValueType>>[];
|
147
|
+
areGVKOptionsLoading: boolean;
|
148
|
+
reloadGVKOptions: () => void;
|
149
|
+
gvkOptionsError: ServerErrors;
|
150
|
+
}
|
151
|
+
export interface ResourceRecommenderActionMenuProps {
|
152
|
+
children: ReactNode;
|
153
|
+
lastScannedOn: string;
|
154
|
+
}
|
111
155
|
export {};
|
@@ -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>;
|
@@ -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,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,7 @@ export interface BulkSelectionProps {
|
|
33
33
|
*/
|
34
34
|
showChevronDownIcon?: boolean;
|
35
35
|
disabled?: boolean;
|
36
|
-
|
37
|
-
export interface BulkSelectionDropdownItemsType {
|
38
|
-
locator: BulkSelectionEvents;
|
39
|
-
label: string;
|
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
|
+
selectAllIfNotPaginated?: boolean;
|
45
37
|
}
|
46
38
|
export declare enum SelectAllDialogStatus {
|
47
39
|
OPEN = "OPEN",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactElement } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { TooltipProps } from '
|
3
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
4
4
|
import { ComponentSizeType } from '../../constants';
|
5
5
|
export declare enum ButtonVariantType {
|
6
6
|
primary = "primary",
|
@@ -112,7 +112,7 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
112
112
|
/**
|
113
113
|
* If true, the tooltip is shown for the button
|
114
114
|
*/
|
115
|
-
showTooltip
|
115
|
+
showTooltip?: boolean;
|
116
116
|
/**
|
117
117
|
* Props for tooltip
|
118
118
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DeploymentConfigDiffProps } from '
|
1
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
2
2
|
import { History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string, hideDiffState: boolean) => JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
2
|
import { UseUrlFiltersReturnType } from '../../../../Common/Hooks';
|
3
|
-
import { DeploymentConfigDiffProps } from '
|
3
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
4
4
|
import { EnvResourceType } from '../../../Services';
|
5
5
|
import { History, HistoryLogsProps } from '../types';
|
6
6
|
export interface DeploymentHistoryConfigDiffQueryParams {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SelectPickerOptionType } from '
|
1
|
+
import { SelectPickerOptionType } from '../../SelectPicker';
|
2
2
|
import { DeploymentHistorySingleValue, History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const getPipelineDeployments: (triggerHistory: DeploymentHistoryConfigDiffProps["triggerHistory"]) => History[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
|
2
|
-
import { SupportedKeyboardKeysType } from '
|
2
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
3
3
|
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, TooltipProps, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
5
|
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SupportedKeyboardKeysType } from '
|
1
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
2
2
|
export declare const PREVIOUS_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
3
3
|
export declare const NEXT_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
4
4
|
export declare const REPLACE_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DetailedHTMLProps, ReactElement, ReactNode } from 'react';
|
2
2
|
import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
|
3
3
|
import { UseStateFiltersReturnType } from '../../../Common/Hooks';
|
4
|
-
import { TooltipProps } from '
|
4
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
5
5
|
import { FileUploadProps } from '../FileUpload';
|
6
6
|
import { SelectPickerOptionType, SelectPickerProps, SelectPickerTextAreaProps } from '../SelectPicker';
|
7
7
|
/**
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue } from 'framer-motion';
|
2
|
-
export { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue };
|
1
|
+
import { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue } from 'framer-motion';
|
2
|
+
export { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { GenericFilterEmptyStateProps } from '
|
3
|
+
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
4
4
|
import { GenericEmptyStateType } from '../../../Common/Types';
|
5
5
|
import { APIResponseHandlerProps } from '../APIResponseHandler';
|
6
6
|
type BaseGenericInfoCardProps = {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { GenericModalFooterProps, GenericModalHeaderProps, GenericModalProps } from './types';
|
3
|
+
declare const GenericModal: {
|
4
|
+
({ name, open, width, onClose, onEscape, closeOnBackdropClick, children, }: PropsWithChildren<GenericModalProps>): JSX.Element;
|
5
|
+
Header: ({ title }: GenericModalHeaderProps) => JSX.Element;
|
6
|
+
Body: ({ children }: PropsWithChildren<{}>) => JSX.Element;
|
7
|
+
Footer: ({ leftSideElement, buttonConfig, children, }: PropsWithChildren<GenericModalFooterProps>) => JSX.Element;
|
8
|
+
};
|
9
|
+
export default GenericModal;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { GenericModalContextType } from './types';
|
3
|
+
export declare const GenericModalProvider: ({ value, children }: PropsWithChildren<{
|
4
|
+
value: GenericModalContextType;
|
5
|
+
}>) => JSX.Element;
|
6
|
+
export declare const useGenericModalContext: () => GenericModalContextType;
|