@jetbrains/ring-ui 7.0.40 → 7.0.42
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/data-list/data-list.d.ts +1 -29
- package/components/header/profile.d.ts +1 -1
- package/components/island/adaptive-island-hoc.d.ts +2 -28
- package/components/island/island.d.ts +1 -27
- package/components/link/link.d.ts +3 -49
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -26
- package/components/shortcuts/shortcuts.d.ts +3 -3
- package/components/table/disable-hover-hoc.d.ts +1 -29
- package/components/table/table.d.ts +1 -29
- package/package.json +15 -5
|
@@ -20,35 +20,7 @@ export interface DataListBaseProps<T extends SelectionItem> {
|
|
|
20
20
|
type FocusableProps<T extends SelectionItem> = DataListBaseProps<T> & DisableHoverAddProps & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsAddProps<T>;
|
|
21
21
|
export type DataListContainerProps<T extends SelectionItem> = DataListBaseProps<T> & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsOuterProps<T>;
|
|
22
22
|
export default class DataListContainer<T extends SelectionItem> extends Component<DataListContainerProps<T>> {
|
|
23
|
-
DataList:
|
|
24
|
-
new (props: import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>): {
|
|
25
|
-
state: {
|
|
26
|
-
disabledHover: boolean;
|
|
27
|
-
};
|
|
28
|
-
componentDidMount(): void;
|
|
29
|
-
componentWillUnmount(): void;
|
|
30
|
-
onMouseMove: () => void;
|
|
31
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
32
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
context: unknown;
|
|
34
|
-
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;
|
|
35
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
36
|
-
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
|
37
|
-
shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
38
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
39
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
|
|
40
|
-
componentDidUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
41
|
-
componentWillMount?(): void;
|
|
42
|
-
UNSAFE_componentWillMount?(): void;
|
|
43
|
-
componentWillReceiveProps?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextContext: any): void;
|
|
44
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextContext: any): void;
|
|
45
|
-
componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
46
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
47
|
-
};
|
|
48
|
-
defaultProps: Partial<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>> | undefined;
|
|
49
|
-
contextType?: import("react").Context<any> | undefined;
|
|
50
|
-
propTypes?: any;
|
|
51
|
-
};
|
|
23
|
+
DataList: import("react").ComponentClass<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
|
|
52
24
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
53
25
|
}
|
|
54
26
|
export {};
|
|
@@ -44,6 +44,6 @@ export default class Profile extends PureComponent<ProfileProps> {
|
|
|
44
44
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
|
45
45
|
context: React.ContextType<typeof Profile.contextType>;
|
|
46
46
|
static Size: typeof Size;
|
|
47
|
-
render():
|
|
47
|
+
render(): ReactNode;
|
|
48
48
|
}
|
|
49
49
|
export type ProfileAttrs = React.JSX.LibraryManagedAttributes<typeof Profile, ProfileProps>;
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentClass, ComponentType } from 'react';
|
|
2
2
|
export declare const PhaseContext: import("react").Context<number | null>;
|
|
3
3
|
type ScrollHandler = (element: Element) => void;
|
|
4
4
|
export declare const ScrollHandlerContext: import("react").Context<ScrollHandler | null>;
|
|
5
|
-
export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>):
|
|
6
|
-
new (props: P): {
|
|
7
|
-
state: {
|
|
8
|
-
phase: null;
|
|
9
|
-
};
|
|
10
|
-
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
|
11
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
context: unknown;
|
|
13
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
14
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
15
|
-
readonly props: Readonly<P>;
|
|
16
|
-
componentDidMount?(): void;
|
|
17
|
-
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
18
|
-
componentWillUnmount?(): void;
|
|
19
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
20
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any;
|
|
21
|
-
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
|
-
componentWillMount?(): void;
|
|
23
|
-
UNSAFE_componentWillMount?(): void;
|
|
24
|
-
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
25
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
26
|
-
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
-
};
|
|
29
|
-
contextType?: import("react").Context<any> | undefined;
|
|
30
|
-
propTypes?: any;
|
|
31
|
-
};
|
|
5
|
+
export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>): ComponentClass<P>;
|
|
32
6
|
export {};
|
|
@@ -10,32 +10,6 @@ export interface IslandProps extends HTMLAttributes<HTMLElement> {
|
|
|
10
10
|
export default class Island extends Component<IslandProps> {
|
|
11
11
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
}
|
|
13
|
-
export declare const AdaptiveIsland:
|
|
14
|
-
new (props: IslandProps): {
|
|
15
|
-
state: {
|
|
16
|
-
phase: null;
|
|
17
|
-
};
|
|
18
|
-
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
|
19
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
context: unknown;
|
|
21
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<IslandProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
22
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
23
|
-
readonly props: Readonly<IslandProps>;
|
|
24
|
-
componentDidMount?(): void;
|
|
25
|
-
shouldComponentUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
26
|
-
componentWillUnmount?(): void;
|
|
27
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
28
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>): any;
|
|
29
|
-
componentDidUpdate?(prevProps: Readonly<IslandProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
30
|
-
componentWillMount?(): void;
|
|
31
|
-
UNSAFE_componentWillMount?(): void;
|
|
32
|
-
componentWillReceiveProps?(nextProps: Readonly<IslandProps>, nextContext: any): void;
|
|
33
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<IslandProps>, nextContext: any): void;
|
|
34
|
-
componentWillUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
35
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<IslandProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
36
|
-
};
|
|
37
|
-
contextType?: import("react").Context<any> | undefined;
|
|
38
|
-
propTypes?: any;
|
|
39
|
-
};
|
|
13
|
+
export declare const AdaptiveIsland: import("react").ComponentClass<IslandProps, any>;
|
|
40
14
|
export { default as Header } from './header';
|
|
41
15
|
export { default as Content } from './content';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, ComponentType } from 'react';
|
|
1
|
+
import { ReactNode, ComponentType, ComponentClass } from 'react';
|
|
2
2
|
import { ClickableLinkProps } from './clickableLink';
|
|
3
3
|
/**
|
|
4
4
|
* @name Link
|
|
@@ -12,52 +12,6 @@ export interface LinkBaseProps {
|
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
}
|
|
14
14
|
export type LinkProps<P extends ClickableLinkProps = ClickableLinkProps> = Omit<P, keyof LinkBaseProps> & LinkBaseProps;
|
|
15
|
-
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string):
|
|
16
|
-
|
|
17
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
context: unknown;
|
|
19
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
20
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
21
|
-
readonly props: Readonly<LinkProps<P>>;
|
|
22
|
-
state: Readonly<{}>;
|
|
23
|
-
componentDidMount?(): void;
|
|
24
|
-
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
25
|
-
componentWillUnmount?(): void;
|
|
26
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
27
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
|
28
|
-
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
29
|
-
componentWillMount?(): void;
|
|
30
|
-
UNSAFE_componentWillMount?(): void;
|
|
31
|
-
componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
32
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
33
|
-
componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
34
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
35
|
-
};
|
|
36
|
-
contextType?: import("react").Context<any> | undefined;
|
|
37
|
-
propTypes?: any;
|
|
38
|
-
};
|
|
39
|
-
declare const _default: {
|
|
40
|
-
new (props: LinkProps<ClickableLinkProps>): {
|
|
41
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
context: unknown;
|
|
43
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
44
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
45
|
-
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
|
46
|
-
state: Readonly<{}>;
|
|
47
|
-
componentDidMount?(): void;
|
|
48
|
-
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
49
|
-
componentWillUnmount?(): void;
|
|
50
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
51
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
|
52
|
-
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
53
|
-
componentWillMount?(): void;
|
|
54
|
-
UNSAFE_componentWillMount?(): void;
|
|
55
|
-
componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
56
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
57
|
-
componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
58
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
59
|
-
};
|
|
60
|
-
contextType?: import("react").Context<any> | undefined;
|
|
61
|
-
propTypes?: any;
|
|
62
|
-
};
|
|
15
|
+
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string): ComponentClass<LinkProps<P>>;
|
|
16
|
+
declare const _default: ComponentClass<LinkProps<ClickableLinkProps>, any>;
|
|
63
17
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentClass, ComponentType } from 'react';
|
|
2
2
|
import { ShortcutsMap, ShortcutsScopeOptions } from './core';
|
|
3
3
|
export interface ShortcutsHOCOptions extends ShortcutsScopeOptions {
|
|
4
4
|
disabled?: boolean | null | undefined;
|
|
@@ -7,28 +7,4 @@ export interface ShortcutsHOCProps {
|
|
|
7
7
|
rgShortcutsOptions: ShortcutsHOCOptions;
|
|
8
8
|
rgShortcutsMap: ShortcutsMap;
|
|
9
9
|
}
|
|
10
|
-
export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentType<P> | string):
|
|
11
|
-
new (props: P & ShortcutsHOCProps): {
|
|
12
|
-
_shortcutsScopeUid: string;
|
|
13
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
context: unknown;
|
|
15
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
16
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
17
|
-
readonly props: Readonly<P & ShortcutsHOCProps>;
|
|
18
|
-
state: Readonly<{}>;
|
|
19
|
-
componentDidMount?(): void;
|
|
20
|
-
shouldComponentUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
21
|
-
componentWillUnmount?(): void;
|
|
22
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
23
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>): any;
|
|
24
|
-
componentDidUpdate?(prevProps: Readonly<P & ShortcutsHOCProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
25
|
-
componentWillMount?(): void;
|
|
26
|
-
UNSAFE_componentWillMount?(): void;
|
|
27
|
-
componentWillReceiveProps?(nextProps: Readonly<P & ShortcutsHOCProps>, nextContext: any): void;
|
|
28
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & ShortcutsHOCProps>, nextContext: any): void;
|
|
29
|
-
componentWillUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & ShortcutsHOCProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
31
|
-
};
|
|
32
|
-
contextType?: import("react").Context<any> | undefined;
|
|
33
|
-
propTypes?: any;
|
|
34
|
-
};
|
|
10
|
+
export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentType<P> | string): ComponentClass<P & ShortcutsHOCProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import { PureComponent, type ReactNode } from 'react';
|
|
2
2
|
import { ShortcutsMap, ShortcutsScopeOptions } from './core';
|
|
3
3
|
export interface ShortcutsProps {
|
|
4
4
|
map: ShortcutsMap;
|
|
5
5
|
scope: string;
|
|
6
6
|
options: ShortcutsScopeOptions;
|
|
7
|
-
children?:
|
|
7
|
+
children?: ReactNode;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
9
9
|
}
|
|
10
10
|
export default class Shortcuts extends PureComponent<ShortcutsProps> {
|
|
@@ -16,5 +16,5 @@ export default class Shortcuts extends PureComponent<ShortcutsProps> {
|
|
|
16
16
|
componentWillUnmount(): void;
|
|
17
17
|
turnShorcutsOn(): void;
|
|
18
18
|
turnShorcutsOff(): void;
|
|
19
|
-
render():
|
|
19
|
+
render(): ReactNode;
|
|
20
20
|
}
|
|
@@ -3,32 +3,4 @@ export interface DisableHoverAddProps {
|
|
|
3
3
|
disabledHover: boolean;
|
|
4
4
|
}
|
|
5
5
|
export type DisableHoverProps<P extends DisableHoverAddProps> = Omit<P, keyof DisableHoverAddProps>;
|
|
6
|
-
export default function disableHoverHOC<P extends DisableHoverAddProps>(ComposedComponent: ComponentClass<P>):
|
|
7
|
-
new (props: DisableHoverProps<P>): {
|
|
8
|
-
state: {
|
|
9
|
-
disabledHover: boolean;
|
|
10
|
-
};
|
|
11
|
-
componentDidMount(): void;
|
|
12
|
-
componentWillUnmount(): void;
|
|
13
|
-
onMouseMove: () => void;
|
|
14
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
15
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
context: unknown;
|
|
17
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
18
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
19
|
-
readonly props: Readonly<DisableHoverProps<P>>;
|
|
20
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
21
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
22
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>): any;
|
|
23
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
24
|
-
componentWillMount?(): void;
|
|
25
|
-
UNSAFE_componentWillMount?(): void;
|
|
26
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
|
27
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<P>>, nextContext: any): void;
|
|
28
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
29
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
30
|
-
};
|
|
31
|
-
defaultProps: Partial<P> | undefined;
|
|
32
|
-
contextType?: import("react").Context<any> | undefined;
|
|
33
|
-
propTypes?: any;
|
|
34
|
-
};
|
|
6
|
+
export default function disableHoverHOC<P extends DisableHoverAddProps>(ComposedComponent: ComponentClass<P>): ComponentClass<DisableHoverProps<P>>;
|
|
@@ -102,34 +102,6 @@ export declare class Table<T extends SelectionItem> extends PureComponent<TableP
|
|
|
102
102
|
}
|
|
103
103
|
export type TableAttrs<T extends SelectionItem> = DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>;
|
|
104
104
|
export default class TableContainer<T extends SelectionItem> extends Component<TableAttrs<T>> {
|
|
105
|
-
Table:
|
|
106
|
-
new (props: DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>): {
|
|
107
|
-
state: {
|
|
108
|
-
disabledHover: boolean;
|
|
109
|
-
};
|
|
110
|
-
componentDidMount(): void;
|
|
111
|
-
componentWillUnmount(): void;
|
|
112
|
-
onMouseMove: () => void;
|
|
113
|
-
onKeyDown: (e: KeyboardEvent) => void;
|
|
114
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
115
|
-
context: unknown;
|
|
116
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
117
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
118
|
-
readonly props: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>;
|
|
119
|
-
shouldComponentUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
120
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
121
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>): any;
|
|
122
|
-
componentDidUpdate?(prevProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
123
|
-
componentWillMount?(): void;
|
|
124
|
-
UNSAFE_componentWillMount?(): void;
|
|
125
|
-
componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
|
126
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextContext: any): void;
|
|
127
|
-
componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
128
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
129
|
-
};
|
|
130
|
-
defaultProps: Partial<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>> | undefined;
|
|
131
|
-
contextType?: React.Context<any> | undefined;
|
|
132
|
-
propTypes?: any;
|
|
133
|
-
};
|
|
105
|
+
Table: React.ComponentClass<DisableHoverProps<SelectionShortcutsProps<T, FocusSensorProps<TableProps<T>, HTMLTableRowElement, typeof Table>>>, any>;
|
|
134
106
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
135
107
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.42",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -15,7 +15,17 @@
|
|
|
15
15
|
"jslint-xml.js",
|
|
16
16
|
"typings.d.ts"
|
|
17
17
|
],
|
|
18
|
-
"
|
|
18
|
+
"exports": {
|
|
19
|
+
"./*.js": "./*.js",
|
|
20
|
+
"./*.css": "./*.css",
|
|
21
|
+
"./*.d.ts": "./*.d.ts",
|
|
22
|
+
"./*.svg": "./*.svg",
|
|
23
|
+
"./*.gif": "./*.gif",
|
|
24
|
+
"./*.json": "./*.json",
|
|
25
|
+
"./*.md": "./*.md",
|
|
26
|
+
"./components/icon": "./components/icon/index.js",
|
|
27
|
+
"./*": "./*.js"
|
|
28
|
+
},
|
|
19
29
|
"workspaces": [
|
|
20
30
|
"packages/*"
|
|
21
31
|
],
|
|
@@ -122,12 +132,12 @@
|
|
|
122
132
|
"@types/chai-dom": "1.11.3",
|
|
123
133
|
"@types/eslint__js": "^8.42.3",
|
|
124
134
|
"@types/markdown-it": "^14.1.2",
|
|
125
|
-
"@types/react": "^19.1.
|
|
135
|
+
"@types/react": "^19.1.2",
|
|
126
136
|
"@types/react-dom": "^19.1.1",
|
|
127
137
|
"@types/sinon": "^17.0.4",
|
|
128
138
|
"@types/sinon-chai": "^4.0.0",
|
|
129
139
|
"@types/webpack-env": "^1.18.8",
|
|
130
|
-
"@vitejs/plugin-react": "^4.
|
|
140
|
+
"@vitejs/plugin-react": "^4.4.0",
|
|
131
141
|
"@vitest/eslint-plugin": "^1.1.42",
|
|
132
142
|
"acorn": "^8.14.1",
|
|
133
143
|
"axe-playwright": "^2.1.0",
|
|
@@ -182,7 +192,7 @@
|
|
|
182
192
|
"teamcity-service-messages": "^0.1.14",
|
|
183
193
|
"terser-webpack-plugin": "^5.3.14",
|
|
184
194
|
"typescript": "~5.8.3",
|
|
185
|
-
"typescript-eslint": "^8.
|
|
195
|
+
"typescript-eslint": "^8.30.1",
|
|
186
196
|
"vitest": "^3.1.1",
|
|
187
197
|
"vitest-teamcity-reporter": "^0.3.1",
|
|
188
198
|
"wallaby-webpack": "^3.9.16",
|