@jetbrains/ring-ui-built 6.0.36 → 6.0.37
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/components/auth/request-builder.d.ts +0 -1
- package/components/auth/token-validator.d.ts +1 -1
- package/components/auth-dialog-service/auth-dialog-service.d.ts +0 -1
- package/components/avatar/fallback-avatar.d.ts +0 -1
- package/components/code/code.d.ts +0 -1
- package/components/collapse/collapse-context.d.ts +0 -1
- package/components/data-list/data-list.d.ts +4 -4
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/month-names.d.ts +0 -1
- package/components/date-picker/month.d.ts +0 -1
- package/components/date-picker/months.d.ts +0 -1
- package/components/date-picker/weekdays.d.ts +0 -1
- package/components/dropdown/anchor.d.ts +0 -1
- package/components/dropdown-menu/dropdown-menu.d.ts +2 -2
- package/components/global/controls-height.d.ts +0 -1
- package/components/global/dom.d.ts +2 -2
- package/components/global/typescript-utils.d.ts +1 -1
- package/components/island/adaptive-island-hoc.d.ts +4 -4
- package/components/island/island.d.ts +4 -4
- package/components/link/link.d.ts +8 -8
- package/components/list/list.d.ts +1 -1
- package/components/popup/popup.d.ts +2 -2
- package/components/query-assist/query-assist__suggestions.d.ts +0 -1
- package/components/select/select__popup.d.ts +1 -34
- package/components/shortcuts/shortcuts-hoc.d.ts +4 -4
- package/components/style.css +1 -1
- package/components/table/disable-hover-hoc.d.ts +4 -4
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/table.d.ts +4 -4
- package/components/tabs/collapsible-more.d.ts +1 -1
- package/components/tabs/custom-item.d.ts +1 -1
- package/package.json +1 -1
@@ -68,7 +68,7 @@ export default class TokenValidator {
|
|
68
68
|
* @param {string} error
|
69
69
|
* @return {boolean}
|
70
70
|
*/
|
71
|
-
static shouldRefreshToken(error: string | undefined):
|
71
|
+
static shouldRefreshToken(error: string | undefined): error is "invalid_grant" | "invalid_request" | "invalid_token";
|
72
72
|
/**
|
73
73
|
* Check scopes
|
74
74
|
* @param {StoredToken} storedToken
|
@@ -32,7 +32,7 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
32
32
|
onKeyDown: (e: KeyboardEvent) => void;
|
33
33
|
render(): import("react").JSX.Element;
|
34
34
|
context: unknown;
|
35
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) =>
|
35
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
36
36
|
forceUpdate(callback?: (() => void) | undefined): void;
|
37
37
|
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
38
38
|
refs: {
|
@@ -40,7 +40,7 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
40
40
|
};
|
41
41
|
shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
42
42
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
43
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
|
43
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any | null;
|
44
44
|
componentDidUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
45
45
|
componentWillMount?(): void;
|
46
46
|
UNSAFE_componentWillMount?(): void;
|
@@ -59,7 +59,7 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
59
59
|
onKeyDown: (e: KeyboardEvent) => void;
|
60
60
|
render(): import("react").JSX.Element;
|
61
61
|
context: unknown;
|
62
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) =>
|
62
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
63
63
|
forceUpdate(callback?: (() => void) | undefined): void;
|
64
64
|
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
65
65
|
refs: {
|
@@ -67,7 +67,7 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
67
67
|
};
|
68
68
|
shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
69
69
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
70
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
|
70
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any | null;
|
71
71
|
componentDidUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
72
72
|
componentWillMount?(): void;
|
73
73
|
UNSAFE_componentWillMount?(): void;
|
@@ -23,7 +23,7 @@ export default class Day extends Component<DayProps> {
|
|
23
23
|
handleMouseOver: () => void;
|
24
24
|
handleMouseOut: () => void;
|
25
25
|
isDay: (date: Date) => boolean;
|
26
|
-
is: (name:
|
26
|
+
is: (name: "date" | "from" | "to" | "activeDate") => boolean;
|
27
27
|
inRange: (range: [Date, Date] | null) => boolean | null;
|
28
28
|
isDisabled: (date: Date) => boolean;
|
29
29
|
parse(text: string | null | undefined): Date | null;
|
@@ -16,8 +16,8 @@ export interface DropdownMenuProps<T = unknown> extends Omit<DropdownAttrs, 'anc
|
|
16
16
|
menuProps?: PopupMenuAttrs<T> | null | undefined;
|
17
17
|
}
|
18
18
|
declare const _default: (<T = unknown>(props: DropdownMenuProps<T> & {
|
19
|
-
ref?: Ref<PopupMenu
|
20
|
-
}) => ReactElement
|
19
|
+
ref?: Ref<PopupMenu>;
|
20
|
+
}) => ReactElement | null) & {
|
21
21
|
ListProps: {
|
22
22
|
Type: typeof import("../list/consts").Type;
|
23
23
|
Dimension: {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
*/
|
4
4
|
import { SyntheticEvent } from 'react';
|
5
5
|
import type { PropertiesHyphen } from 'csstype';
|
6
|
-
export declare const getStyles: ((elt: Element, pseudoElt?: string | null
|
6
|
+
export declare const getStyles: ((elt: Element, pseudoElt?: string | null) => CSSStyleDeclaration) & typeof getComputedStyle;
|
7
7
|
export declare function isMounted(node: Node | Range | null | undefined): boolean;
|
8
8
|
export interface Rect {
|
9
9
|
top: number;
|
@@ -20,7 +20,7 @@ export declare function getWindowWidth(): number;
|
|
20
20
|
export declare function isNodeInVisiblePartOfPage(node: Element | Range): boolean;
|
21
21
|
export declare function getDocumentScrollTop(): number;
|
22
22
|
export declare function getDocumentScrollLeft(): number;
|
23
|
-
export declare const applyMethodToClasses: (method:
|
23
|
+
export declare const applyMethodToClasses: (method: "add" | "remove") => (classList: DOMTokenList, classes?: string) => void;
|
24
24
|
export declare const addClasses: (classList: DOMTokenList, classes?: string) => void;
|
25
25
|
export declare const removeClasses: (classList: DOMTokenList, classes?: string) => void;
|
26
26
|
export declare const toggleClasses: (classList: DOMTokenList, classes: Record<string, boolean>) => void;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export declare const isArray: (arg: unknown) => arg is readonly unknown[];
|
2
|
-
export declare const isTruthy: <T>(arg: T | false |
|
2
|
+
export declare const isTruthy: <T>(arg: T | false | "" | 0 | null | undefined) => arg is T;
|
@@ -10,7 +10,7 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
10
10
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
11
11
|
render(): import("react").JSX.Element;
|
12
12
|
context: unknown;
|
13
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) =>
|
13
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
14
14
|
forceUpdate(callback?: (() => void) | undefined): void;
|
15
15
|
readonly props: Readonly<P>;
|
16
16
|
refs: {
|
@@ -20,7 +20,7 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
20
20
|
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
|
21
21
|
componentWillUnmount?(): void;
|
22
22
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
23
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any;
|
23
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any | null;
|
24
24
|
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void;
|
25
25
|
componentWillMount?(): void;
|
26
26
|
UNSAFE_componentWillMount?(): void;
|
@@ -36,7 +36,7 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
36
36
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
37
37
|
render(): import("react").JSX.Element;
|
38
38
|
context: unknown;
|
39
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) =>
|
39
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
40
40
|
forceUpdate(callback?: (() => void) | undefined): void;
|
41
41
|
readonly props: Readonly<P>;
|
42
42
|
refs: {
|
@@ -46,7 +46,7 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
46
46
|
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
|
47
47
|
componentWillUnmount?(): void;
|
48
48
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
49
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any;
|
49
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any | null;
|
50
50
|
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void;
|
51
51
|
componentWillMount?(): void;
|
52
52
|
UNSAFE_componentWillMount?(): void;
|
@@ -26,7 +26,7 @@ export declare const AdaptiveIsland: {
|
|
26
26
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
27
27
|
render(): import("react").JSX.Element;
|
28
28
|
context: unknown;
|
29
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) =>
|
29
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
30
30
|
forceUpdate(callback?: (() => void) | undefined): void;
|
31
31
|
readonly props: Readonly<IslandProps>;
|
32
32
|
refs: {
|
@@ -36,7 +36,7 @@ export declare const AdaptiveIsland: {
|
|
36
36
|
shouldComponentUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
37
37
|
componentWillUnmount?(): void;
|
38
38
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
39
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>): any;
|
39
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>): any | null;
|
40
40
|
componentDidUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
41
41
|
componentWillMount?(): void;
|
42
42
|
UNSAFE_componentWillMount?(): void;
|
@@ -52,7 +52,7 @@ export declare const AdaptiveIsland: {
|
|
52
52
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
53
53
|
render(): import("react").JSX.Element;
|
54
54
|
context: unknown;
|
55
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) =>
|
55
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
56
56
|
forceUpdate(callback?: (() => void) | undefined): void;
|
57
57
|
readonly props: Readonly<IslandProps>;
|
58
58
|
refs: {
|
@@ -62,7 +62,7 @@ export declare const AdaptiveIsland: {
|
|
62
62
|
shouldComponentUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
63
63
|
componentWillUnmount?(): void;
|
64
64
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
65
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>): any;
|
65
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>): any | null;
|
66
66
|
componentDidUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
67
67
|
componentWillMount?(): void;
|
68
68
|
UNSAFE_componentWillMount?(): void;
|
@@ -17,7 +17,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
17
17
|
new (props: LinkProps<P>): {
|
18
18
|
render(): import("react").JSX.Element;
|
19
19
|
context: unknown;
|
20
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) =>
|
20
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
21
21
|
forceUpdate(callback?: (() => void) | undefined): void;
|
22
22
|
readonly props: Readonly<LinkProps<P>>;
|
23
23
|
state: Readonly<{}>;
|
@@ -28,7 +28,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
28
28
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
29
29
|
componentWillUnmount?(): void;
|
30
30
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
31
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
31
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any | null;
|
32
32
|
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
33
33
|
componentWillMount?(): void;
|
34
34
|
UNSAFE_componentWillMount?(): void;
|
@@ -40,7 +40,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
40
40
|
new (props: LinkProps<P>, context: any): {
|
41
41
|
render(): import("react").JSX.Element;
|
42
42
|
context: unknown;
|
43
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) =>
|
43
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
44
44
|
forceUpdate(callback?: (() => void) | undefined): void;
|
45
45
|
readonly props: Readonly<LinkProps<P>>;
|
46
46
|
state: Readonly<{}>;
|
@@ -51,7 +51,7 @@ export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent:
|
|
51
51
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
52
52
|
componentWillUnmount?(): void;
|
53
53
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
54
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any | null;
|
55
55
|
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
56
56
|
componentWillMount?(): void;
|
57
57
|
UNSAFE_componentWillMount?(): void;
|
@@ -78,7 +78,7 @@ declare const _default: {
|
|
78
78
|
new (props: LinkProps<ClickableLinkProps>): {
|
79
79
|
render(): import("react").JSX.Element;
|
80
80
|
context: unknown;
|
81
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) =>
|
81
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
82
82
|
forceUpdate(callback?: (() => void) | undefined): void;
|
83
83
|
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
84
84
|
state: Readonly<{}>;
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
89
89
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
90
90
|
componentWillUnmount?(): void;
|
91
91
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
92
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
92
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any | null;
|
93
93
|
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
94
94
|
componentWillMount?(): void;
|
95
95
|
UNSAFE_componentWillMount?(): void;
|
@@ -101,7 +101,7 @@ declare const _default: {
|
|
101
101
|
new (props: LinkProps<ClickableLinkProps>, context: any): {
|
102
102
|
render(): import("react").JSX.Element;
|
103
103
|
context: unknown;
|
104
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) =>
|
104
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
105
105
|
forceUpdate(callback?: (() => void) | undefined): void;
|
106
106
|
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
107
107
|
state: Readonly<{}>;
|
@@ -112,7 +112,7 @@ declare const _default: {
|
|
112
112
|
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
113
113
|
componentWillUnmount?(): void;
|
114
114
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
115
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
115
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any | null;
|
116
116
|
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
117
117
|
componentWillMount?(): void;
|
118
118
|
UNSAFE_componentWillMount?(): void;
|
@@ -57,7 +57,7 @@ export declare const ActiveItemContext: {
|
|
57
57
|
};
|
58
58
|
displayName: string;
|
59
59
|
};
|
60
|
-
useUpdate: (value: string | undefined, skipUpdate?: boolean
|
60
|
+
useUpdate: (value: string | undefined, skipUpdate?: boolean) => void;
|
61
61
|
Updater: import("react").MemoExoticComponent<{
|
62
62
|
({ value, skipUpdate }: import("../global/create-stateful-context").UpdaterProps<string | undefined>): null;
|
63
63
|
displayName: string;
|
@@ -98,8 +98,8 @@ export default class Popup<P extends BasePopupProps = PopupProps> extends PureCo
|
|
98
98
|
uid: string;
|
99
99
|
calculateDisplay: (prevState: PopupState) => {
|
100
100
|
display: Display;
|
101
|
-
client?: boolean
|
102
|
-
direction?: Directions
|
101
|
+
client?: boolean;
|
102
|
+
direction?: Directions;
|
103
103
|
};
|
104
104
|
static PopupProps: {
|
105
105
|
Directions: typeof Directions;
|
@@ -3,7 +3,6 @@
|
|
3
3
|
*/
|
4
4
|
import { ComponentType, CSSProperties, PureComponent, ReactNode, Ref, SyntheticEvent } from 'react';
|
5
5
|
import * as React from 'react';
|
6
|
-
import PropTypes from 'prop-types';
|
7
6
|
import { IconType } from '../icon/icon';
|
8
7
|
import Popup from '../popup/popup';
|
9
8
|
import { Directions } from '../popup/position';
|
@@ -114,39 +113,7 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
114
113
|
getFilter(): React.JSX.Element | null;
|
115
114
|
handleRemoveTag: (arg: ListDataItem<T>) => (event: SyntheticEvent) => void;
|
116
115
|
handleTagClick: (arg: ListDataItem<T>) => () => void;
|
117
|
-
getCustomTag(tags: Tags | boolean | null): ((tag:
|
118
|
-
onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
119
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
120
|
-
rgTagIcon: PropTypes.Requireable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>;
|
121
|
-
icon: PropTypes.Requireable<string>;
|
122
|
-
avatar: PropTypes.Requireable<string>;
|
123
|
-
rgTagTitle: PropTypes.Requireable<string>;
|
124
|
-
readOnly: PropTypes.Requireable<boolean>;
|
125
|
-
disabled: PropTypes.Requireable<boolean>;
|
126
|
-
focused: PropTypes.Requireable<boolean>;
|
127
|
-
angled: PropTypes.Requireable<boolean>;
|
128
|
-
backgroundColor: PropTypes.Requireable<string>;
|
129
|
-
textColor: PropTypes.Requireable<string>;
|
130
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
131
|
-
className: PropTypes.Requireable<string>;
|
132
|
-
render: PropTypes.Requireable<(...args: any[]) => any>;
|
133
|
-
}>, never> & Pick<import("../tag/tag").TagProps, never>, never> & {
|
134
|
-
className?: string | null | undefined;
|
135
|
-
children?: ReactNode;
|
136
|
-
onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
|
137
|
-
icon?: string | undefined;
|
138
|
-
disabled?: boolean | undefined;
|
139
|
-
avatar?: string | null | undefined;
|
140
|
-
readOnly?: boolean | undefined;
|
141
|
-
focused?: boolean | undefined;
|
142
|
-
render?: ((props: import("../tag/tag").TagRenderProps) => ReactNode) | undefined;
|
143
|
-
onRemove?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
|
144
|
-
rgTagIcon?: string | IconType | null | undefined;
|
145
|
-
rgTagTitle?: string | undefined;
|
146
|
-
angled?: boolean | null | undefined;
|
147
|
-
textColor?: string | undefined;
|
148
|
-
backgroundColor?: string | undefined;
|
149
|
-
} & {}) => ReactNode) | undefined;
|
116
|
+
getCustomTag(tags: Tags | boolean | null): ((tag: TagAttrs) => ReactNode) | undefined;
|
150
117
|
getTags(): false | React.JSX.Element;
|
151
118
|
getFilterWithTags(): React.JSX.Element | null;
|
152
119
|
getBottomLine(): "" | React.JSX.Element | null;
|
@@ -13,7 +13,7 @@ export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentT
|
|
13
13
|
_shortcutsScopeUid: string;
|
14
14
|
render(): import("react").JSX.Element;
|
15
15
|
context: unknown;
|
16
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) =>
|
16
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
17
17
|
forceUpdate(callback?: (() => void) | undefined): void;
|
18
18
|
readonly props: Readonly<P & ShortcutsHOCProps>;
|
19
19
|
state: Readonly<{}>;
|
@@ -24,7 +24,7 @@ export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentT
|
|
24
24
|
shouldComponentUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
25
25
|
componentWillUnmount?(): void;
|
26
26
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
27
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>): any;
|
27
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>): any | null;
|
28
28
|
componentDidUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
29
29
|
componentWillMount?(): void;
|
30
30
|
UNSAFE_componentWillMount?(): void;
|
@@ -37,7 +37,7 @@ export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentT
|
|
37
37
|
_shortcutsScopeUid: string;
|
38
38
|
render(): import("react").JSX.Element;
|
39
39
|
context: unknown;
|
40
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) =>
|
40
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
41
41
|
forceUpdate(callback?: (() => void) | undefined): void;
|
42
42
|
readonly props: Readonly<P & ShortcutsHOCProps>;
|
43
43
|
state: Readonly<{}>;
|
@@ -48,7 +48,7 @@ export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentT
|
|
48
48
|
shouldComponentUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
49
49
|
componentWillUnmount?(): void;
|
50
50
|
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
51
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>): any;
|
51
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>): any | null;
|
52
52
|
componentDidUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
53
53
|
componentWillMount?(): void;
|
54
54
|
UNSAFE_componentWillMount?(): void;
|