@devtron-labs/devtron-fe-common-lib 1.19.0-pre-6 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-C4ZrS_SZ.js → @code-editor-CIWrAu92.js} +8352 -8405
- package/dist/{@common-rjsf-CJeMTP5a.js → @common-rjsf-BtyeBkM1.js} +1 -1
- package/dist/Common/Common.service.d.ts +1 -1
- package/dist/Common/Constants.d.ts +0 -3
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +0 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/RJSF/utils.d.ts +1 -1
- package/dist/Common/Types.d.ts +5 -13
- package/dist/Common/index.d.ts +0 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +8 -8
- package/dist/Shared/Components/Backdrop/types.d.ts +2 -11
- package/dist/Shared/Components/Button/Button.component.d.ts +68 -68
- package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +9 -0
- package/dist/Shared/Components/GenericModal/types.d.ts +1 -1
- package/dist/Shared/Components/Header/utils.d.ts +2 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -12
- package/dist/Shared/Components/Illustration/Illustration.d.ts +0 -1
- package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
- package/dist/Shared/Components/License/constants.d.ts +1 -0
- package/dist/Shared/Components/License/types.d.ts +4 -2
- package/dist/Shared/Components/License/utils.d.ts +2 -2
- package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
- package/dist/Shared/Components/MaterialHistory/types.d.ts +2 -1
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +4 -8
- package/dist/Shared/Components/Table/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -31
- package/dist/Shared/Services/ToastManager/ToastContent.d.ts +1 -2
- package/dist/Shared/Services/ToastManager/constants.d.ts +2 -2
- package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
- package/dist/Shared/Services/ToastManager/types.d.ts +3 -23
- package/dist/Shared/Services/app.service.d.ts +3 -3
- package/dist/Shared/types.d.ts +9 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-upgrade-enterprise.49cbd888.svg +320 -0
- package/dist/index.js +899 -903
- package/package.json +1 -1
- package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +0 -27
- package/dist/Common/InteractiveCellText/index.d.ts +0 -2
- package/dist/Common/InteractiveCellText/types.d.ts +0 -10
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +0 -3
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +0 -1
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +0 -4
- package/dist/assets/ic-diff-added.6ef6f938.svg +0 -3
- package/dist/assets/ic-diff-deleted.54eb24dd.svg +0 -3
- package/dist/assets/ic-diff-updated.294b925e.svg +0 -4
- package/dist/assets/ic-group-filter-applied.2cdb11e7.svg +0 -20
- package/dist/assets/ic-group-filter.ed1869f5.svg +0 -19
- package/dist/assets/ic-input.57281408.svg +0 -3
- package/dist/assets/ic-locked.dd40e181.svg +0 -3
- package/dist/assets/ic-storage.03f282b6.svg +0 -21
- package/dist/assets/ic-tag.5fdc7834.svg +0 -3
- package/dist/assets/ic-warning-fill.bfea8b38.svg +0 -4
- package/dist/assets/img-mechanical-operation.04a318d6.svg +0 -17
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, au as T, aw as J, av as K } from "./@vendor-3ORIJA0h.js";
|
2
2
|
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
3
3
|
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
4
|
-
import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-
|
4
|
+
import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-CIWrAu92.js";
|
5
5
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
6
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
7
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
@@ -18,7 +18,7 @@ export declare function extractImage(image: string): string;
|
|
18
18
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
19
19
|
export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
|
20
20
|
export declare const getDefaultConfig: () => Promise<ResponseType>;
|
21
|
-
export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean
|
21
|
+
export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
|
22
22
|
export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
23
23
|
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
24
24
|
export declare function getNamespaceListMin(clusterIdsCsv: string, abortControllerRef?: APIOptions['abortControllerRef']): Promise<EnvironmentListHelmResponse>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { SelectPickerOptionType } from '../Shared/Components';
|
2
1
|
export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
|
3
2
|
export declare const Host: string;
|
4
3
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
@@ -365,5 +364,3 @@ export declare enum SSOProvider {
|
|
365
364
|
oidc = "oidc",
|
366
365
|
openshift = "openshift"
|
367
366
|
}
|
368
|
-
export declare const BULK_DEPLOY_LATEST_IMAGE_TAG: SelectPickerOptionType<string>;
|
369
|
-
export declare const BULK_DEPLOY_ACTIVE_IMAGE_TAG: SelectPickerOptionType<string>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ErrorPageType } from './Types';
|
2
|
-
declare const ErrorPage: ({ code, image, title, subTitle, imageType, redirectURL, reload
|
2
|
+
declare const ErrorPage: ({ code, image, title, subTitle, imageType, redirectURL, reload }: ErrorPageType) => JSX.Element;
|
3
3
|
export default ErrorPage;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ErrorScreenManagerProps } from './Types';
|
2
|
-
declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, redirectURL,
|
2
|
+
declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, redirectURL, imageType, }: ErrorScreenManagerProps) => JSX.Element;
|
3
3
|
export default ErrorScreenManager;
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -10,7 +10,7 @@ interface ConditionalWrapper<T> {
|
|
10
10
|
children: T;
|
11
11
|
}
|
12
12
|
export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
|
13
|
-
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 |
|
13
|
+
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | 0 | -1;
|
14
14
|
export declare const stopPropagation: (event: any) => void;
|
15
15
|
export declare const preventDefault: (event: SyntheticEvent) => void;
|
16
16
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("N" | "R" | "
|
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,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "acceptCharset" | "action" | "method" | "noValidate" | "tagName" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
@@ -13,7 +13,7 @@ export declare const getRedirectionProps: (url: string) => React.AnchorHTMLAttri
|
|
13
13
|
/**
|
14
14
|
* Infers the type for json schema from value type
|
15
15
|
*/
|
16
|
-
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "
|
16
|
+
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "null" | "array";
|
17
17
|
export declare const conformPathToPointers: (path: string) => string;
|
18
18
|
export declare const parseSchemaHiddenType: (hiddenSchema: HiddenType) => MetaHiddenType;
|
19
19
|
export declare const getSchemaPathToUpdatePathMap: (schema: RJSFFormSchema) => Record<string, string>;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -26,6 +26,9 @@ export interface ResponseType<T = any> {
|
|
26
26
|
}
|
27
27
|
export interface APIOptions {
|
28
28
|
timeout?: number;
|
29
|
+
/**
|
30
|
+
* @deprecated Use abortController instead
|
31
|
+
*/
|
29
32
|
signal?: AbortSignal;
|
30
33
|
abortControllerRef?: MutableRefObject<AbortController>;
|
31
34
|
/**
|
@@ -138,29 +141,20 @@ export interface GenericEmptyStateType {
|
|
138
141
|
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload' | 'redirectURL'> {
|
139
142
|
code: number;
|
140
143
|
redirectURL?: string;
|
141
|
-
on404Redirect?: () => void;
|
142
144
|
reload?: () => void;
|
143
145
|
}
|
144
|
-
export
|
146
|
+
export interface ErrorScreenManagerProps {
|
145
147
|
code?: number;
|
146
148
|
imageType?: ImageType;
|
147
149
|
reload?: (...args: any[]) => any;
|
148
150
|
subtitle?: React.ReactChild;
|
149
151
|
reloadClass?: string;
|
150
|
-
} & ({
|
151
152
|
/**
|
152
153
|
* Would be used to redirect URL in case of 404
|
153
154
|
* @default - APP_LIST
|
154
155
|
*/
|
155
156
|
redirectURL?: string;
|
156
|
-
|
157
|
-
} | {
|
158
|
-
redirectURL?: never;
|
159
|
-
on404Redirect: () => void;
|
160
|
-
} | {
|
161
|
-
redirectURL?: never;
|
162
|
-
on404Redirect?: never;
|
163
|
-
});
|
157
|
+
}
|
164
158
|
export interface ErrorScreenNotAuthorizedProps {
|
165
159
|
subtitle?: React.ReactChild;
|
166
160
|
title?: string;
|
@@ -390,8 +384,6 @@ export interface CDMaterialListModalServiceUtilProps {
|
|
390
384
|
artifactId?: number;
|
391
385
|
artifactStatus?: string;
|
392
386
|
disableDefaultSelection?: boolean;
|
393
|
-
isExceptionUser: boolean;
|
394
|
-
isApprovalConfigured: boolean;
|
395
387
|
}
|
396
388
|
export interface CDMaterialType {
|
397
389
|
index: number;
|
package/dist/Common/index.d.ts
CHANGED
@@ -25,7 +25,6 @@ export * from './Helper';
|
|
25
25
|
export * from './Hooks';
|
26
26
|
export * from './ImageTags';
|
27
27
|
export * from './ImageTags.Types';
|
28
|
-
export * from './InteractiveCellText';
|
29
28
|
export * from './Markdown';
|
30
29
|
export * from './Modals/Modal';
|
31
30
|
export * from './Modals/VisibleModal';
|
@@ -9,7 +9,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
9
9
|
}[];
|
10
10
|
filteredOptions: import('./types').ActionMenuOptionType<T>[];
|
11
11
|
focusedIndex: number;
|
12
|
-
itemsRef: import('react').MutableRefObject<RefObject<
|
12
|
+
itemsRef: import('react').MutableRefObject<RefObject<HTMLAnchorElement | HTMLButtonElement>[]>;
|
13
13
|
triggerProps: import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
14
14
|
bounds: Pick<DOMRect, "left" | "top" | "height" | "width">;
|
15
15
|
};
|
@@ -26,16 +26,12 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
26
26
|
about?: string;
|
27
27
|
is?: string;
|
28
28
|
security?: string;
|
29
|
-
hidden?: boolean;
|
30
|
-
prefix?: string;
|
31
|
-
resource?: string;
|
32
|
-
draggable?: boolean | "true" | "false";
|
33
|
-
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
34
29
|
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
35
30
|
"aria-describedby"?: string;
|
36
31
|
"aria-errormessage"?: string;
|
37
32
|
"aria-label"?: string;
|
38
33
|
"aria-labelledby"?: string;
|
34
|
+
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
39
35
|
defaultChecked?: boolean;
|
40
36
|
suppressContentEditableWarning?: boolean;
|
41
37
|
suppressHydrationWarning?: boolean;
|
@@ -43,6 +39,8 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
43
39
|
contentEditable?: "inherit" | (boolean | "true" | "false");
|
44
40
|
contextMenu?: string;
|
45
41
|
dir?: string;
|
42
|
+
draggable?: boolean | "true" | "false";
|
43
|
+
hidden?: boolean;
|
46
44
|
lang?: string;
|
47
45
|
placeholder?: string;
|
48
46
|
spellCheck?: boolean | "true" | "false";
|
@@ -51,7 +49,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
51
49
|
radioGroup?: string;
|
52
50
|
datatype?: string;
|
53
51
|
inlist?: any;
|
52
|
+
prefix?: string;
|
54
53
|
property?: string;
|
54
|
+
resource?: string;
|
55
55
|
typeof?: string;
|
56
56
|
vocab?: string;
|
57
57
|
autoCapitalize?: string;
|
@@ -67,14 +67,14 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
67
67
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
|
68
68
|
"aria-activedescendant"?: string;
|
69
69
|
"aria-atomic"?: boolean | "true" | "false";
|
70
|
-
"aria-autocomplete"?: "
|
70
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both";
|
71
71
|
"aria-busy"?: boolean | "true" | "false";
|
72
72
|
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
73
73
|
"aria-colcount"?: number;
|
74
74
|
"aria-colindex"?: number;
|
75
75
|
"aria-colspan"?: number;
|
76
76
|
"aria-controls"?: string;
|
77
|
-
"aria-current"?: boolean | "time" | "
|
77
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
|
78
78
|
"aria-details"?: string;
|
79
79
|
"aria-disabled"?: boolean | "true" | "false";
|
80
80
|
"aria-dropeffect"?: "link" | "none" | "popup" | "copy" | "execute" | "move";
|
@@ -1,15 +1,6 @@
|
|
1
|
-
import { MouseEvent, ReactNode
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
2
2
|
import { DTFocusTrapType } from '../DTFocusTrap';
|
3
|
-
export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus'> {
|
4
|
-
/**
|
5
|
-
* Callback function that gets triggered when the Escape key is pressed. \
|
6
|
-
* Should be wrapped in useCallback to prevent unnecessary re-renders.
|
7
|
-
* @example
|
8
|
-
* const handleEscape = useCallback(() => {
|
9
|
-
* // Handle escape key press
|
10
|
-
* }, []);
|
11
|
-
*/
|
12
|
-
onEscape: (e?: SyntheticEvent) => void;
|
3
|
+
export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'> {
|
13
4
|
/**
|
14
5
|
* The content to be rendered within the backdrop component.
|
15
6
|
*/
|
@@ -66,12 +66,12 @@ import { ButtonComponentType, ButtonStyleType, ButtonVariantType } from './types
|
|
66
66
|
* ```
|
67
67
|
*/
|
68
68
|
declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
69
|
-
ref?: import('react').Ref<
|
70
|
-
component
|
71
|
-
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
69
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
70
|
+
component: ButtonComponentType.anchor;
|
72
71
|
linkProps?: never;
|
73
|
-
|
74
|
-
|
72
|
+
buttonProps?: never;
|
73
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
74
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
75
75
|
} & {
|
76
76
|
id?: string;
|
77
77
|
variant?: ButtonVariantType;
|
@@ -100,13 +100,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
100
100
|
startIcon?: import('react').ReactElement;
|
101
101
|
endIcon?: import('react').ReactElement;
|
102
102
|
fontWeight?: "bold" | "normal";
|
103
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
104
|
-
ref?: import('react').Ref<
|
105
|
-
component
|
106
|
-
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
103
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
104
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
105
|
+
component: ButtonComponentType.anchor;
|
107
106
|
linkProps?: never;
|
108
|
-
|
109
|
-
|
107
|
+
buttonProps?: never;
|
108
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
109
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
110
110
|
} & {
|
111
111
|
id?: string;
|
112
112
|
variant?: ButtonVariantType;
|
@@ -135,13 +135,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
135
135
|
startIcon?: never;
|
136
136
|
endIcon?: never;
|
137
137
|
fontWeight?: never;
|
138
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
139
|
-
ref?: import('react').Ref<
|
140
|
-
component
|
141
|
-
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
138
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
139
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
140
|
+
component: ButtonComponentType.anchor;
|
142
141
|
linkProps?: never;
|
143
|
-
|
144
|
-
|
142
|
+
buttonProps?: never;
|
143
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
144
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
145
145
|
} & {
|
146
146
|
id?: string;
|
147
147
|
variant?: ButtonVariantType;
|
@@ -164,13 +164,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
164
164
|
startIcon?: import('react').ReactElement;
|
165
165
|
endIcon?: import('react').ReactElement;
|
166
166
|
fontWeight?: "bold" | "normal";
|
167
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
168
|
-
ref?: import('react').Ref<
|
169
|
-
component
|
170
|
-
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
167
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
168
|
+
ref?: import('react').Ref<HTMLAnchorElement>;
|
169
|
+
component: ButtonComponentType.anchor;
|
171
170
|
linkProps?: never;
|
172
|
-
|
173
|
-
|
171
|
+
buttonProps?: never;
|
172
|
+
anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
|
173
|
+
onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
174
174
|
} & {
|
175
175
|
id?: string;
|
176
176
|
variant?: ButtonVariantType;
|
@@ -193,13 +193,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
193
193
|
startIcon?: never;
|
194
194
|
endIcon?: never;
|
195
195
|
fontWeight?: never;
|
196
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
197
|
-
ref?: import('react').Ref<
|
198
|
-
component
|
199
|
-
|
200
|
-
|
196
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
197
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
198
|
+
component?: ButtonComponentType.button;
|
199
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
200
|
+
linkProps?: never;
|
201
201
|
anchorProps?: never;
|
202
|
-
onClick?: import('react
|
202
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
203
203
|
} & {
|
204
204
|
id?: string;
|
205
205
|
variant?: ButtonVariantType;
|
@@ -228,13 +228,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
228
228
|
startIcon?: import('react').ReactElement;
|
229
229
|
endIcon?: import('react').ReactElement;
|
230
230
|
fontWeight?: "bold" | "normal";
|
231
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
232
|
-
ref?: import('react').Ref<
|
233
|
-
component
|
234
|
-
|
235
|
-
|
231
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
232
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
233
|
+
component?: ButtonComponentType.button;
|
234
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
235
|
+
linkProps?: never;
|
236
236
|
anchorProps?: never;
|
237
|
-
onClick?: import('react
|
237
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
238
238
|
} & {
|
239
239
|
id?: string;
|
240
240
|
variant?: ButtonVariantType;
|
@@ -263,13 +263,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
263
263
|
startIcon?: never;
|
264
264
|
endIcon?: never;
|
265
265
|
fontWeight?: never;
|
266
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
267
|
-
ref?: import('react').Ref<
|
268
|
-
component
|
269
|
-
|
270
|
-
|
266
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
267
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
268
|
+
component?: ButtonComponentType.button;
|
269
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
270
|
+
linkProps?: never;
|
271
271
|
anchorProps?: never;
|
272
|
-
onClick?: import('react
|
272
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
273
273
|
} & {
|
274
274
|
id?: string;
|
275
275
|
variant?: ButtonVariantType;
|
@@ -292,13 +292,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
292
292
|
startIcon?: import('react').ReactElement;
|
293
293
|
endIcon?: import('react').ReactElement;
|
294
294
|
fontWeight?: "bold" | "normal";
|
295
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
296
|
-
ref?: import('react').Ref<
|
297
|
-
component
|
298
|
-
|
299
|
-
|
295
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
296
|
+
ref?: import('react').Ref<HTMLButtonElement>;
|
297
|
+
component?: ButtonComponentType.button;
|
298
|
+
buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
|
299
|
+
linkProps?: never;
|
300
300
|
anchorProps?: never;
|
301
|
-
onClick?: import('react
|
301
|
+
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
302
302
|
} & {
|
303
303
|
id?: string;
|
304
304
|
variant?: ButtonVariantType;
|
@@ -321,13 +321,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
321
321
|
startIcon?: never;
|
322
322
|
endIcon?: never;
|
323
323
|
fontWeight?: never;
|
324
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
324
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
325
325
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
326
|
-
component: ButtonComponentType.
|
327
|
-
linkProps
|
326
|
+
component: ButtonComponentType.link;
|
327
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
328
328
|
buttonProps?: never;
|
329
|
-
anchorProps
|
330
|
-
onClick?: import('react').
|
329
|
+
anchorProps?: never;
|
330
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
331
331
|
} & {
|
332
332
|
id?: string;
|
333
333
|
variant?: ButtonVariantType;
|
@@ -356,13 +356,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
356
356
|
startIcon?: import('react').ReactElement;
|
357
357
|
endIcon?: import('react').ReactElement;
|
358
358
|
fontWeight?: "bold" | "normal";
|
359
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
359
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
360
360
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
361
|
-
component: ButtonComponentType.
|
362
|
-
linkProps
|
361
|
+
component: ButtonComponentType.link;
|
362
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
363
363
|
buttonProps?: never;
|
364
|
-
anchorProps
|
365
|
-
onClick?: import('react').
|
364
|
+
anchorProps?: never;
|
365
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
366
366
|
} & {
|
367
367
|
id?: string;
|
368
368
|
variant?: ButtonVariantType;
|
@@ -391,13 +391,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
391
391
|
startIcon?: never;
|
392
392
|
endIcon?: never;
|
393
393
|
fontWeight?: never;
|
394
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
394
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
395
395
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
396
|
-
component: ButtonComponentType.
|
397
|
-
linkProps
|
396
|
+
component: ButtonComponentType.link;
|
397
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
398
398
|
buttonProps?: never;
|
399
|
-
anchorProps
|
400
|
-
onClick?: import('react').
|
399
|
+
anchorProps?: never;
|
400
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
401
401
|
} & {
|
402
402
|
id?: string;
|
403
403
|
variant?: ButtonVariantType;
|
@@ -420,13 +420,13 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
420
420
|
startIcon?: import('react').ReactElement;
|
421
421
|
endIcon?: import('react').ReactElement;
|
422
422
|
fontWeight?: "bold" | "normal";
|
423
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
423
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
|
424
424
|
ref?: import('react').Ref<HTMLAnchorElement>;
|
425
|
-
component: ButtonComponentType.
|
426
|
-
linkProps
|
425
|
+
component: ButtonComponentType.link;
|
426
|
+
linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
|
427
427
|
buttonProps?: never;
|
428
|
-
anchorProps
|
429
|
-
onClick?: import('react').
|
428
|
+
anchorProps?: never;
|
429
|
+
onClick?: import('react-router-dom').LinkProps["onClick"];
|
430
430
|
} & {
|
431
431
|
id?: string;
|
432
432
|
variant?: ButtonVariantType;
|
@@ -449,5 +449,5 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
|
|
449
449
|
startIcon?: never;
|
450
450
|
endIcon?: never;
|
451
451
|
fontWeight?: never;
|
452
|
-
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "
|
452
|
+
}, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy">) & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
453
453
|
export default Button;
|
@@ -10,7 +10,7 @@ export declare const getUpdatedSearchMatchesCount: (newQuery: SearchQuery, view:
|
|
10
10
|
current: number;
|
11
11
|
};
|
12
12
|
export declare const updateDiffMinimapValues: (view: MergeView, transactions: readonly Transaction[], side: "a" | "b") => void;
|
13
|
-
export declare const getScanLimit: (lhsValue: string, value: string) =>
|
13
|
+
export declare const getScanLimit: (lhsValue: string, value: string) => 500 | 10000 | 5000 | 15000 | 20000;
|
14
14
|
export declare const getFoldGutterElement: (open: boolean) => HTMLSpanElement;
|
15
15
|
export declare const getReadOnlyElement: () => HTMLDivElement;
|
16
16
|
export declare const getRevertControlButton: () => HTMLButtonElement;
|
@@ -4,5 +4,5 @@ export declare const useFocusTrapControl: () => {
|
|
4
4
|
disableFocusTrap: typeof noop;
|
5
5
|
resumeFocusTrap: typeof noop;
|
6
6
|
};
|
7
|
-
declare const DTFocusTrap: ({ deactivateFocusOnEscape, children, initialFocus }: DTFocusTrapType) => JSX.Element;
|
7
|
+
declare const DTFocusTrap: ({ onEscape, deactivateFocusOnEscape, children, initialFocus, }: DTFocusTrapType) => JSX.Element;
|
8
8
|
export default DTFocusTrap;
|
@@ -8,6 +8,15 @@ type FocusTargetValueOrFalse = FocusTargetValue | false;
|
|
8
8
|
*/
|
9
9
|
type FocusTargetOrFalse = FocusTargetValueOrFalse | (() => FocusTargetValueOrFalse);
|
10
10
|
export interface DTFocusTrapType {
|
11
|
+
/**
|
12
|
+
* Callback function that gets triggered when the Escape key is pressed. \
|
13
|
+
* Should be wrapped in useCallback to prevent unnecessary re-renders.
|
14
|
+
* @example
|
15
|
+
* const handleEscape = useCallback(() => {
|
16
|
+
* // Handle escape key press
|
17
|
+
* }, []);
|
18
|
+
*/
|
19
|
+
onEscape: (e?: KeyboardEvent | MouseEvent) => void;
|
11
20
|
/**
|
12
21
|
* If focus should be deactivated on escape, pass false when escape is disabled or has no action
|
13
22
|
* true for cases when we are closing modals or dialogs
|
@@ -11,7 +11,7 @@ export interface GenericModalProps extends Partial<Pick<BackdropProps, 'onEscape
|
|
11
11
|
* Width of the modal (in pixels).
|
12
12
|
* @default 600
|
13
13
|
*/
|
14
|
-
width?: 500 | 600 | 800;
|
14
|
+
width?: 450 | 500 | 600 | 800;
|
15
15
|
/**
|
16
16
|
* Determines if the modal should close when the user clicks outside of it (on the backdrop).
|
17
17
|
* @default false
|
@@ -2,7 +2,7 @@ import { HelpButtonActionMenuProps } from './types';
|
|
2
2
|
export declare const getDateInMilliseconds: (days: any) => number;
|
3
3
|
export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
|
4
4
|
export declare const setActionWithExpiry: (key: string, days: number) => void;
|
5
|
-
export declare const getHelpActionMenuOptions: ({ isEnterprise,
|
5
|
+
export declare const getHelpActionMenuOptions: ({ isEnterprise, isTrialOrFreemium, }: {
|
6
6
|
isEnterprise: boolean;
|
7
|
-
|
7
|
+
isTrialOrFreemium: boolean;
|
8
8
|
}) => HelpButtonActionMenuProps["options"];
|