@devtron-labs/devtron-fe-common-lib 1.14.1-pre-7-beta-1 → 1.14.2-beta-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-CkMdOfQQ.js → @code-editor-BuYqYK_U.js} +8074 -7959
- package/dist/{@common-rjsf-CSPmJewm.js → @common-rjsf-C-srMZXE.js} +2 -2
- package/dist/{@framer-motion-CXr339mx.js → @framer-motion-62wGf8yQ.js} +1 -1
- package/dist/{@react-dates-BqsAxdEY.js → @react-dates-CYMJp3U9.js} +1 -1
- package/dist/{@react-select-BMTMYG5B.js → @react-select-DwgZP5FJ.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-wtn_BsmV.js → @react-virtualized-sticky-tree-fnroedPy.js} +1 -1
- package/dist/{@vendor-CmCjU670.js → @vendor-CShVblFI.js} +16199 -14486
- package/dist/Common/API/QueryClientProvider.d.ts +2 -0
- package/dist/Common/API/index.d.ts +2 -0
- package/dist/Common/API/useQueryClient.d.ts +6 -0
- package/dist/Common/Constants.d.ts +4 -3
- package/dist/Common/Types.d.ts +3 -9
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -1
- package/dist/Shared/Components/ActionMenu/types.d.ts +31 -4
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +4 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/constants.d.ts +1 -0
- package/dist/Shared/Components/Button/types.d.ts +14 -1
- package/dist/Shared/Components/Button/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -3
- package/dist/Shared/Components/DocLink/DocLink.d.ts +1 -1
- package/dist/Shared/Components/DocLink/constants.d.ts +2 -2
- package/dist/Shared/Components/DocLink/types.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/Header/ProfileMenu.d.ts +2 -0
- package/dist/Shared/Components/Header/types.d.ts +4 -0
- package/dist/Shared/Components/Header/utils.d.ts +0 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +21 -4
- package/dist/Shared/Components/Icon/types.d.ts +2 -2
- package/dist/Shared/Components/LoadingCard.d.ts +5 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/NumbersCount/index.d.ts +1 -0
- package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +5 -3
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/StatusComponent/AppStatus.d.ts +1 -1
- package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
- package/dist/Shared/Components/Switch/types.d.ts +2 -5
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
- package/dist/Shared/Components/ThemeSwitcher/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +5 -1
- package/dist/Shared/types.d.ts +23 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-arrows-clockwise.5858ba0a.svg +3 -0
- package/dist/assets/ic-checkbox-selected-error.185fc40c.svg +4 -0
- package/dist/assets/{ic-hibernate.f75c1e70.svg → ic-checkbox-selected-error.b40237bc.svg} +3 -2
- package/dist/assets/{ic-cluster.f1c3fad1.svg → ic-cluster.71ba9e26.svg} +1 -1
- package/dist/assets/ic-fast-forward.8d1a414b.svg +4 -0
- package/dist/assets/ic-filter-applied.56f397cb.svg +4 -0
- package/dist/assets/ic-filter.d6f03b78.svg +3 -0
- package/dist/assets/ic-flask.d0624c30.svg +3 -0
- package/dist/assets/ic-hibernate-circle.7c32c56e.svg +3 -0
- package/dist/assets/ic-hibernate.263ffcea.svg +19 -0
- package/dist/assets/ic-lego.1d2c5e1d.svg +3 -0
- package/dist/assets/ic-magnifying-glass.cf47bce0.svg +3 -0
- package/dist/assets/ic-mechanical-operation.04a318d6.svg +17 -0
- package/dist/assets/ic-more-vertical.6b4cc903.svg +3 -0
- package/dist/assets/ic-play-outline.a4f09bf9.svg +3 -0
- package/dist/assets/ic-rocket-gear.f1e30f8a.svg +3 -0
- package/dist/assets/ic-strategy-blue-green-color.0b348d03.svg +6 -0
- package/dist/assets/ic-strategy-blue-green.4e57a068.svg +3 -0
- package/dist/assets/ic-strategy-canary-color.db010ee7.svg +5 -0
- package/dist/assets/ic-strategy-canary.aa75f27f.svg +3 -0
- package/dist/assets/ic-strategy-recreate-color.187facd4.svg +4 -0
- package/dist/assets/ic-strategy-recreate.77b19a53.svg +3 -0
- package/dist/assets/ic-strategy-rolling-color.f9b3c0bb.svg +6 -0
- package/dist/assets/ic-strategy-rolling.ba8a30f7.svg +3 -0
- package/dist/assets/ic-sun.47c14f53.svg +3 -0
- package/dist/assets/ic-traffic-signal.f23a1086.svg +3 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +620 -614
- package/package.json +3 -2
- package/dist/Shared/Components/LogoutCard.d.ts +0 -10
- package/dist/assets/ic-cluster-isolated.93f843b9.svg +0 -3
- package/dist/assets/ic-environment-isolated.b772ae9d.svg +0 -3
- package/dist/assets/ic-environment.e639b8f3.svg +0 -4
- package/dist/assets/ic-mechanical-operation.3c3f4672.svg +0 -76
- package/dist/assets/ic-shapes.b7b5c28f.svg +0 -3
@@ -1,3 +1,5 @@
|
|
1
1
|
export declare const post: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions, isMultipartRequest?: boolean) => Promise<import('..').ResponseType<T>>, put: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, patch: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, get: <T = any>(url: string, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, trash: <T = any, K = object>(url: string, data?: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>;
|
2
2
|
export { default as CoreAPI } from './CoreAPI';
|
3
|
+
export { QueryClientProvider } from './QueryClientProvider';
|
4
|
+
export * from './useQueryClient';
|
3
5
|
export { abortPreviousRequests, getIsRequestAborted, handleRedirectToLicenseActivation } from './utils';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
2
|
+
import { ServerErrors } from '../ServerError';
|
3
|
+
import { ResponseType } from '../Types';
|
4
|
+
export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData>, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
|
5
|
+
export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
|
6
|
+
export { useQueryClient };
|
@@ -2,9 +2,10 @@ export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
|
|
2
2
|
export declare const Host: string;
|
3
3
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
4
4
|
export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
|
5
|
-
export declare const DOCUMENTATION_VERSION = "/
|
5
|
+
export declare const DOCUMENTATION_VERSION = "/devtron/v0.7";
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
7
7
|
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
8
|
+
export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/dashboard";
|
8
9
|
export declare const PATTERNS: {
|
9
10
|
STRING: RegExp;
|
10
11
|
DECIMAL_NUMBERS: RegExp;
|
@@ -25,6 +26,7 @@ export declare const PATTERNS: {
|
|
25
26
|
EMAIL: RegExp;
|
26
27
|
};
|
27
28
|
export declare const URLS: {
|
29
|
+
readonly LOGIN: "/login";
|
28
30
|
readonly LOGIN_SSO: "/login/sso";
|
29
31
|
readonly PERMISSION_GROUPS: "/global-config/auth/groups";
|
30
32
|
readonly APP: "/app";
|
@@ -55,7 +57,6 @@ export declare const URLS: {
|
|
55
57
|
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
56
58
|
readonly APP_CONFIG: "edit";
|
57
59
|
readonly GLOBAL_CONFIG: "/global-config";
|
58
|
-
readonly GLOBAL_CONFIG_MANAGE_CATEGORIES: "/global-config/cluster-env/manage-categories";
|
59
60
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
60
61
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
61
62
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
@@ -65,7 +66,6 @@ export declare const ROUTES: {
|
|
65
66
|
readonly APP: "app";
|
66
67
|
readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
|
67
68
|
readonly APP_TEMPLATE_DATA: "app/template/data";
|
68
|
-
readonly ENVIRONMENT_CATEGORIES: "env/categories";
|
69
69
|
readonly PROJECT_LIST_MIN: "team/autocomplete";
|
70
70
|
readonly USER_CHECK_ROLE: "user/check/roles";
|
71
71
|
readonly IMAGE_TAGGING: "app/image-tagging";
|
@@ -293,6 +293,7 @@ export declare const API_STATUS_CODES: {
|
|
293
293
|
EXPECTATION_FAILED: number;
|
294
294
|
UNPROCESSABLE_ENTITY: number;
|
295
295
|
LOCKED: number;
|
296
|
+
FAILED_DEPENDENCY: number;
|
296
297
|
};
|
297
298
|
export declare enum SERVER_MODE {
|
298
299
|
EA_ONLY = "EA_ONLY",
|
package/dist/Common/Types.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType, DocLinkProps } from '../Shared';
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType } from '../Shared';
|
6
6
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
@@ -75,6 +75,7 @@ export interface CheckboxProps {
|
|
75
75
|
onClick?: (event: any) => void;
|
76
76
|
id?: string;
|
77
77
|
dataTestId?: string;
|
78
|
+
error?: boolean;
|
78
79
|
children?: ReactNode;
|
79
80
|
}
|
80
81
|
export interface TippyWithBaseDocLinkTypes<T extends boolean> extends Pick<DocLinkProps<T>, 'isExternalLink' | 'openInNewTab'> {
|
@@ -714,7 +715,7 @@ export interface AppEnvironment {
|
|
714
715
|
ciArtifactId?: number;
|
715
716
|
}
|
716
717
|
export interface Strategy {
|
717
|
-
deploymentTemplate:
|
718
|
+
deploymentTemplate: DeploymentStrategyType;
|
718
719
|
config: any;
|
719
720
|
default?: boolean;
|
720
721
|
}
|
@@ -957,11 +958,4 @@ export interface EnvAppsMetaDTO {
|
|
957
958
|
appCount: number;
|
958
959
|
apps: AppMeta[];
|
959
960
|
}
|
960
|
-
export interface ClusterEnvironmentCategoryDTO {
|
961
|
-
id: number;
|
962
|
-
name: string;
|
963
|
-
description?: string;
|
964
|
-
}
|
965
|
-
export interface ClusterEnvironmentCategoryType extends ClusterEnvironmentCategoryDTO {
|
966
|
-
}
|
967
961
|
export {};
|
@@ -6,4 +6,4 @@ export declare const uploadCDPipelineFile: ({ file, appId, envId, allowedExtensi
|
|
6
6
|
envId: number;
|
7
7
|
abortControllerRef?: MutableRefObject<AbortController>;
|
8
8
|
}) => Promise<UploadFileDTO>;
|
9
|
-
export declare const triggerCDNode: ({ pipelineId, ciArtifactId, appId, stageType, deploymentWithConfig, wfrId, runtimeParamsPayload, abortControllerRef, skipIfHibernated, isRollbackTrigger, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
|
9
|
+
export declare const triggerCDNode: ({ pipelineId, ciArtifactId, appId, stageType, deploymentWithConfig, wfrId, runtimeParamsPayload, abortControllerRef, skipIfHibernated, isRollbackTrigger, strategy, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
|
2
2
|
import { APIOptions, DeploymentAppTypes, DeploymentNodeType } from '../../../../../Common/Types';
|
3
3
|
import { DeploymentStrategy } from '../../../../../Shared/Components';
|
4
|
-
import { EnvListMinDTO, RuntimeParamsTriggerPayloadType } from '../../../../../Shared/types';
|
4
|
+
import { DeploymentStrategyType, EnvListMinDTO, RuntimeParamsTriggerPayloadType } from '../../../../../Shared/types';
|
5
5
|
import { STAGE_MAP } from '../../../../index';
|
6
6
|
interface ConfigSecretType {
|
7
7
|
label: string;
|
@@ -108,6 +108,7 @@ export interface TriggerCDNodeServiceProps extends Pick<APIOptions, 'abortContro
|
|
108
108
|
*/
|
109
109
|
runtimeParamsPayload?: RuntimeParamsTriggerPayloadType;
|
110
110
|
isRollbackTrigger?: boolean;
|
111
|
+
strategy?: DeploymentStrategyType;
|
111
112
|
}
|
112
113
|
export interface TriggerCDPipelinePayloadType extends Pick<TriggerCDNodeServiceProps, 'pipelineId' | 'appId' | 'ciArtifactId' | 'runtimeParamsPayload' | 'deploymentWithConfig'>, Partial<Pick<TriggerCDNodeServiceProps, 'skipIfHibernated'>> {
|
113
114
|
cdWorkflowType: (typeof STAGE_MAP)[keyof typeof STAGE_MAP];
|
@@ -1,8 +1,12 @@
|
|
1
|
-
import { LegacyRef, Ref } from 'react';
|
1
|
+
import { LegacyRef, MouseEvent, ReactElement, Ref } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
+
import { OmitNever } from '../../types';
|
4
|
+
import { ButtonProps } from '../Button';
|
3
5
|
import { IconsProps } from '../Icon';
|
6
|
+
import { NumbersCountProps } from '../NumbersCount';
|
4
7
|
import { PopoverProps, UsePopoverProps } from '../Popover';
|
5
8
|
import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
9
|
+
import { DTSwitchProps } from '../Switch';
|
6
10
|
type ConditionalActionMenuComponentType = {
|
7
11
|
/**
|
8
12
|
* @default 'button'
|
@@ -25,6 +29,29 @@ type ActionMenuItemIconType = Pick<IconsProps, 'name'> & {
|
|
25
29
|
/** @default 'N800' */
|
26
30
|
color?: IconsProps['color'];
|
27
31
|
};
|
32
|
+
type TrailingItemType = {
|
33
|
+
type: 'icon';
|
34
|
+
config: ActionMenuItemIconType;
|
35
|
+
} | {
|
36
|
+
type: 'text';
|
37
|
+
config: {
|
38
|
+
value: string;
|
39
|
+
icon?: ActionMenuItemIconType;
|
40
|
+
};
|
41
|
+
} | {
|
42
|
+
type: 'counter';
|
43
|
+
config: {
|
44
|
+
value: NumbersCountProps['count'];
|
45
|
+
};
|
46
|
+
} | {
|
47
|
+
type: 'switch';
|
48
|
+
config: Pick<DTSwitchProps, 'ariaLabel' | 'isChecked' | 'indeterminate' | 'isDisabled' | 'isLoading' | 'name' | 'onChange' | 'tooltipContent'>;
|
49
|
+
} | {
|
50
|
+
type: 'button';
|
51
|
+
config: OmitNever<Omit<Extract<ButtonProps, {
|
52
|
+
icon: ReactElement;
|
53
|
+
}>, 'size' | 'variant'>>;
|
54
|
+
};
|
28
55
|
export type ActionMenuItemType<T extends string | number = string | number> = Omit<SelectPickerOptionType, 'label' | 'value' | 'endIcon' | 'startIcon'> & {
|
29
56
|
/** A unique identifier for the action menu item. */
|
30
57
|
id: T;
|
@@ -39,8 +66,8 @@ export type ActionMenuItemType<T extends string | number = string | number> = Om
|
|
39
66
|
type?: 'neutral' | 'negative';
|
40
67
|
/** Defines the icon to be displayed at the start of the menu item. */
|
41
68
|
startIcon?: ActionMenuItemIconType;
|
42
|
-
/** Defines the
|
43
|
-
|
69
|
+
/** Defines the item to be displayed at the end of the menu item. */
|
70
|
+
trailingItem?: TrailingItemType;
|
44
71
|
} & ConditionalActionMenuComponentType;
|
45
72
|
export type ActionMenuOptionType<T extends string | number> = {
|
46
73
|
/**
|
@@ -68,7 +95,7 @@ export type ActionMenuProps<T extends string | number = string | number> = UseAc
|
|
68
95
|
* Callback function triggered when an item is clicked.
|
69
96
|
* @param item - The selected item.
|
70
97
|
*/
|
71
|
-
onClick: (item: ActionMenuItemType<T>) => void;
|
98
|
+
onClick: (item: ActionMenuItemType<T>, e: MouseEvent<HTMLAnchorElement> | MouseEvent<HTMLButtonElement>) => void;
|
72
99
|
/**
|
73
100
|
* Config for the footer at the bottom of action menu list. It is sticky by default
|
74
101
|
*/
|
@@ -10,7 +10,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
10
10
|
filteredOptions: import('./types').ActionMenuOptionType<T>[];
|
11
11
|
focusedIndex: number;
|
12
12
|
itemsRef: import('react').MutableRefObject<RefObject<HTMLAnchorElement | HTMLButtonElement>[]>;
|
13
|
-
triggerProps: import('react').
|
13
|
+
triggerProps: import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
14
|
+
bounds: Pick<DOMRect, "left" | "top" | "height" | "width">;
|
15
|
+
};
|
14
16
|
overlayProps: import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
15
17
|
popoverProps: {
|
16
18
|
slot?: string;
|
@@ -271,5 +273,5 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
271
273
|
closePopover: () => void;
|
272
274
|
searchTerm: string;
|
273
275
|
handleSearch: (e: ChangeEvent<HTMLInputElement>) => void;
|
274
|
-
scrollableRef: import('react').MutableRefObject<
|
276
|
+
scrollableRef: import('react').MutableRefObject<any> | import('react').LegacyRef<any>;
|
275
277
|
};
|
@@ -63,5 +63,5 @@ import { ButtonComponentType, ButtonProps } from './types';
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
64
64
|
* ```
|
65
65
|
*/
|
66
|
-
declare const Button: <ComponentType extends ButtonComponentType>({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, triggerAutoClickTimestamp, ...props }: ButtonProps<ComponentType>) => JSX.Element;
|
66
|
+
declare const Button: <ComponentType extends ButtonComponentType>({ dataTestId, text, variant, size, style, fontWeight, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, triggerAutoClickTimestamp, ...props }: ButtonProps<ComponentType>) => JSX.Element;
|
67
67
|
export default Button;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ProgressingProps } from '../../../Common/Types';
|
2
2
|
import { ButtonProps } from './types';
|
3
3
|
export declare const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
4
|
+
export declare const BUTTON_FONT_WEIGHT_TO_CLASS_NAME_MAP: Record<ButtonProps['fontWeight'], string>;
|
4
5
|
export declare const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
5
6
|
export declare const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
6
7
|
export declare const ICON_BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
@@ -116,7 +116,13 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
116
116
|
/**
|
117
117
|
* Props for tooltip
|
118
118
|
*/
|
119
|
-
tooltipProps: Omit<
|
119
|
+
tooltipProps: Omit<Extract<TooltipProps, {
|
120
|
+
alwaysShowTippyOnHover: boolean;
|
121
|
+
}>, 'alwaysShowTippyOnHover'> | Omit<Extract<TooltipProps, {
|
122
|
+
alwaysShowTippyOnHover?: boolean;
|
123
|
+
}>, 'alwaysShowTippyOnHover'> | Omit<Extract<TooltipProps, {
|
124
|
+
alwaysShowTippyOnHover?: never;
|
125
|
+
}>, 'alwaysShowTippyOnHover'>;
|
120
126
|
} | {
|
121
127
|
showTooltip?: never;
|
122
128
|
tooltipProps?: never;
|
@@ -136,6 +142,12 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
136
142
|
* If provided, icon to be displayed at the end of the button
|
137
143
|
*/
|
138
144
|
endIcon?: ReactElement;
|
145
|
+
/**
|
146
|
+
* Controls the font weight of the button text
|
147
|
+
*
|
148
|
+
* @default 'bold'
|
149
|
+
*/
|
150
|
+
fontWeight?: 'bold' | 'normal';
|
139
151
|
} | {
|
140
152
|
/**
|
141
153
|
* If provided, icon button is rendered
|
@@ -155,4 +167,5 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
155
167
|
text?: never;
|
156
168
|
startIcon?: never;
|
157
169
|
endIcon?: never;
|
170
|
+
fontWeight?: never;
|
158
171
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ButtonProps } from './types';
|
2
2
|
export declare const getButtonIconClassName: ({ size, icon }: Pick<ButtonProps, "size" | "icon">) => string;
|
3
3
|
export declare const getButtonLoaderSize: ({ size, icon }: Pick<ButtonProps, "size" | "icon">) => number;
|
4
|
-
export declare const getButtonDerivedClass: ({ size, variant, style, isLoading, icon, isAutoTriggerActive, }: Required<Pick<ButtonProps, "variant" | "size" | "style" | "isLoading" | "icon"> & {
|
4
|
+
export declare const getButtonDerivedClass: ({ size, variant, style, isLoading, icon, isAutoTriggerActive, fontWeight, }: Required<Pick<ButtonProps, "variant" | "size" | "style" | "isLoading" | "icon" | "fontWeight"> & {
|
5
5
|
isAutoTriggerActive: boolean;
|
6
6
|
}>) => string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName,
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
|
3
3
|
export default DeploymentHistoryDiffView;
|
@@ -2,7 +2,7 @@ import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react'
|
|
2
2
|
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
3
3
|
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
|
-
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
5
|
+
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
6
6
|
import { TargetPlatformBadgeListProps } from '../TargetPlatforms';
|
7
7
|
export declare enum HistoryComponentType {
|
8
8
|
CI = "CI",
|
@@ -427,7 +427,6 @@ export interface DeploymentTemplateHistoryType {
|
|
427
427
|
baseTemplateConfiguration: DeploymentHistoryDetail;
|
428
428
|
previousConfigAvailable: boolean;
|
429
429
|
rootClassName?: string;
|
430
|
-
codeEditorKey?: string;
|
431
430
|
}
|
432
431
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
433
432
|
result?: DeploymentHistoryDetail;
|
@@ -593,7 +592,6 @@ export interface DeploymentHistory {
|
|
593
592
|
ci_artifact_id?: number;
|
594
593
|
runSource?: RunSourceType;
|
595
594
|
}
|
596
|
-
type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE_GREEN';
|
597
595
|
export interface DeploymentStrategy {
|
598
596
|
deploymentTemplate: DeploymentStrategyType;
|
599
597
|
config: any;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DocLinkProps } from './types';
|
2
|
-
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant, isExternalLink, openInNewTab, fullWidth, }: DocLinkProps<T>) => JSX.Element;
|
2
|
+
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, startIcon, showExternalIcon, onClick, fontWeight, size, variant, isExternalLink, openInNewTab, fullWidth, }: DocLinkProps<T>) => JSX.Element;
|
@@ -13,7 +13,7 @@ export declare const DOCUMENTATION: {
|
|
13
13
|
readonly APP_METRICS: "usage/applications/app-details/app-metrics";
|
14
14
|
readonly APP_OVERVIEW_TAGS: "usage/applications/overview#manage-tags";
|
15
15
|
readonly APP_ROLLOUT_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template/rollout-deployment";
|
16
|
-
readonly BUILD_STAGE: "usage/applications/creating-application/ci-pipeline#build-stage";
|
16
|
+
readonly BUILD_STAGE: "usage/applications/creating-application/workflow/ci-pipeline#build-stage";
|
17
17
|
readonly APP_TAGS: "usage/applications/create-application#tags";
|
18
18
|
readonly BLOB_STORAGE: "configurations-overview/installation-configuration#configuration-of-blob-storage";
|
19
19
|
readonly BULK_UPDATE: "usage/bulk-update";
|
@@ -39,7 +39,7 @@ export declare const DOCUMENTATION: {
|
|
39
39
|
readonly GLOBAL_CONFIG_CHART: "getting-started/global-configurations/chart-repo";
|
40
40
|
readonly GLOBAL_CONFIG_CLUSTER: "getting-started/global-configurations/cluster-and-environments";
|
41
41
|
readonly GLOBAL_CONFIG_CUSTOM_CHART: "getting-started/global-configurations/custom-charts";
|
42
|
-
readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "
|
42
|
+
readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "global-configurations/deployment-charts#preparing-a-deployment-chart";
|
43
43
|
readonly GLOBAL_CONFIG_DOCKER: "getting-started/global-configurations/container-registries";
|
44
44
|
readonly GLOBAL_CONFIG_GIT: "getting-started/global-configurations/git-accounts";
|
45
45
|
readonly GLOBAL_CONFIG_GITOPS: "global-configurations/gitops";
|
@@ -6,7 +6,7 @@ export type BaseDocLink<T extends boolean> = {
|
|
6
6
|
isEnterprise?: boolean;
|
7
7
|
docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
|
8
8
|
};
|
9
|
-
export type DocLinkProps<T extends boolean> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
9
|
+
export type DocLinkProps<T extends boolean = false> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth' | 'fontWeight' | 'startIcon'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
10
10
|
text?: string;
|
11
11
|
showExternalIcon?: boolean;
|
12
12
|
onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
|
@@ -4,7 +4,7 @@ import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
4
4
|
import { DocLinkProps } from '../DocLink';
|
5
5
|
interface BaseFeatureDescriptionModalProps {
|
6
6
|
renderDescriptionContent?: () => ReactNode;
|
7
|
-
docLink?: DocLinkProps
|
7
|
+
docLink?: DocLinkProps['docLinkKey'];
|
8
8
|
imageVariant?: ImageType;
|
9
9
|
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
10
10
|
imageStyles?: React.CSSProperties;
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import { DevtronLicenseInfo } from '../License';
|
2
1
|
import { HelpButtonActionMenuProps } from './types';
|
3
2
|
export declare const getDateInMilliseconds: (days: any) => number;
|
4
3
|
export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
|
5
4
|
export declare const setActionWithExpiry: (key: string, days: number) => void;
|
6
|
-
export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
|
7
5
|
export declare const getHelpActionMenuOptions: ({ isEnterprise, isTrial, }: {
|
8
6
|
isEnterprise: boolean;
|
9
7
|
isTrial: boolean;
|
@@ -10,6 +10,7 @@ export declare const iconMap: {
|
|
10
10
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
11
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
12
|
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
|
+
'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
14
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
15
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
16
|
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -38,7 +39,6 @@ export declare const iconMap: {
|
|
38
39
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
40
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
41
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
|
-
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
42
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
43
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
44
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -64,16 +64,18 @@ export declare const iconMap: {
|
|
64
64
|
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
65
|
'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
66
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
|
-
'ic-environment-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
|
-
'ic-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
67
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
68
|
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
69
|
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
70
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
|
+
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
72
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
73
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
74
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
75
|
'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
|
+
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
|
+
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
|
+
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
79
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
80
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
81
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -93,6 +95,7 @@ export declare const iconMap: {
|
|
93
95
|
'ic-helm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
96
|
'ic-help-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
97
|
'ic-help-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
|
+
'ic-hibernate-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
99
|
'ic-hibernate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
100
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
101
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -106,10 +109,12 @@ export declare const iconMap: {
|
|
106
109
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
107
110
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
111
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
|
+
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
113
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
114
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
115
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
116
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
117
|
+
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
113
118
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
119
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
115
120
|
'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -120,6 +125,7 @@ export declare const iconMap: {
|
|
120
125
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
126
|
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
127
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
128
|
+
'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
129
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
130
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
131
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -130,11 +136,12 @@ export declare const iconMap: {
|
|
130
136
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
131
137
|
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
138
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
|
+
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
140
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
141
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
142
|
+
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
143
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
144
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
|
-
'ic-shapes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
145
|
'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
146
|
'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
147
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -145,7 +152,16 @@ export declare const iconMap: {
|
|
145
152
|
'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
153
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
147
154
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
155
|
+
'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
156
|
+
'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
157
|
+
'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
158
|
+
'ic-strategy-canary': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
159
|
+
'ic-strategy-recreate-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
160
|
+
'ic-strategy-recreate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
161
|
+
'ic-strategy-rolling-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
162
|
+
'ic-strategy-rolling': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
148
163
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
164
|
+
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
149
165
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
166
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
151
167
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -155,6 +171,7 @@ export declare const iconMap: {
|
|
155
171
|
'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
156
172
|
'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
157
173
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
174
|
+
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
158
175
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
159
176
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
160
177
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FC, SVGProps } from 'react';
|
2
|
-
import { TooltipProps } from '
|
3
|
-
import { IconBaseColorType, IconBaseSizeType } from '../../
|
2
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
3
|
+
import { IconBaseColorType, IconBaseSizeType } from '../../types';
|
4
4
|
type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
|
5
5
|
export interface IconBaseProps {
|
6
6
|
/**
|
@@ -5,4 +5,4 @@ import { PopoverProps } from './types';
|
|
5
5
|
* @note Use this component in conjunction with the `usePopover` hook to create a custom popover component. \
|
6
6
|
* For example, see the `ActionMenu` component for reference.
|
7
7
|
*/
|
8
|
-
export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
|
8
|
+
export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps: { bounds, ...triggerProps }, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DetailedHTMLProps, KeyboardEvent, MutableRefObject, ReactElement } from 'react';
|
1
|
+
import { DetailedHTMLProps, KeyboardEvent, LegacyRef, MutableRefObject, ReactElement } from 'react';
|
2
2
|
import { HTMLMotionProps } from 'framer-motion';
|
3
3
|
import { ButtonProps } from '../Button';
|
4
4
|
export interface UsePopoverProps {
|
@@ -64,7 +64,9 @@ export interface UsePopoverReturnType {
|
|
64
64
|
* Props to be spread onto the trigger element that opens the popover.
|
65
65
|
* These props include standard HTML attributes for a `div` element.
|
66
66
|
*/
|
67
|
-
triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement
|
67
|
+
triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
68
|
+
bounds: Pick<DOMRect, 'left' | 'top' | 'height' | 'width'>;
|
69
|
+
};
|
68
70
|
/**
|
69
71
|
* Props to be spread onto the overlay element of the popover.
|
70
72
|
* These props include standard HTML attributes for a `div` element.
|
@@ -81,7 +83,7 @@ export interface UsePopoverReturnType {
|
|
81
83
|
* A mutable reference to the scrollable element inside the popover. \
|
82
84
|
* This reference should be assigned to the element that is scrollable.
|
83
85
|
*/
|
84
|
-
scrollableRef: MutableRefObject<
|
86
|
+
scrollableRef: MutableRefObject<any> | LegacyRef<any>;
|
85
87
|
/**
|
86
88
|
* A function to close the popover.
|
87
89
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SEVERITIES } from './constants';
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--R500)" | "var(--N300)" | "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--G500)" | "var(--Y500)" | "var(--R700)" | "var(--O500)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { AppStatusProps } from './types';
|
2
|
-
export declare const AppStatus: ({ status, isJobView, isVirtualEnv, ...restProps }: AppStatusProps) => JSX.Element;
|
2
|
+
export declare const AppStatus: ({ status, isJobView, isVirtualEnv, hideMessage, ...restProps }: AppStatusProps) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DTSwitchProps } from './types';
|
2
|
-
declare const Switch: ({ ariaLabel,
|
2
|
+
declare const Switch: ({ ariaLabel, isDisabled, isLoading, isChecked, tooltipContent, shape, variant, iconColor, iconName, indeterminate, size, name, onChange, }: DTSwitchProps) => JSX.Element;
|
3
3
|
export default Switch;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
1
2
|
import { ComponentSizeType } from '../../constants';
|
2
3
|
import { IconBaseColorType } from '../../types';
|
3
4
|
import { IconName } from '../Icon';
|
@@ -63,10 +64,6 @@ export type DTSwitchProps = {
|
|
63
64
|
* Used in forms to identify the switch.
|
64
65
|
*/
|
65
66
|
name: string;
|
66
|
-
/**
|
67
|
-
* A unique identifier for testing purposes.
|
68
|
-
*/
|
69
|
-
dataTestId: string;
|
70
67
|
/**
|
71
68
|
* The visual variant of the switch.
|
72
69
|
*
|
@@ -82,7 +79,7 @@ export type DTSwitchProps = {
|
|
82
79
|
* Callback function that is called when the switch state changes.
|
83
80
|
* This function should handle the logic for toggling the switch.
|
84
81
|
*/
|
85
|
-
onChange:
|
82
|
+
onChange: ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
|
86
83
|
/**
|
87
84
|
* Indicates whether the switch is disabled.
|
88
85
|
*/
|