mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Updates
This commit is contained in:
parent
75ab725fb0
commit
79185b706d
|
@ -37,3 +37,6 @@ packageExtensions:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': '^14.17.15'
|
'@types/node': '^14.17.15'
|
||||||
'sqlite3': '^5.0.2'
|
'sqlite3': '^5.0.2'
|
||||||
|
'react-select@^5.0.0':
|
||||||
|
dependencies:
|
||||||
|
'@emotion/serialize': '^1.0.2'
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
"@types/codemirror": "^5.60.2",
|
"@types/codemirror": "^5.60.2",
|
||||||
"@types/json-schema": "^7.0.9",
|
"@types/json-schema": "^7.0.9",
|
||||||
"@types/prop-types": "^15.7.4",
|
"@types/prop-types": "^15.7.4",
|
||||||
"@types/react-select": "^4.0.17",
|
|
||||||
"@types/redux-devtools-themes": "^1.0.0",
|
"@types/redux-devtools-themes": "^1.0.0",
|
||||||
"@types/simple-element-resize-detector": "^1.3.0",
|
"@types/simple-element-resize-detector": "^1.3.0",
|
||||||
"base16": "^1.0.0",
|
"base16": "^1.0.0",
|
||||||
|
|
|
@ -12,6 +12,7 @@ const SelectWidget: Widget = ({
|
||||||
defaultValue,
|
defaultValue,
|
||||||
tabIndex,
|
tabIndex,
|
||||||
onFocus,
|
onFocus,
|
||||||
|
'aria-invalid': ariaInvalid,
|
||||||
...rest
|
...rest
|
||||||
}) => (
|
}) => (
|
||||||
<Select<{ label: string; value: string }>
|
<Select<{ label: string; value: string }>
|
||||||
|
|
|
@ -1,17 +1,16 @@
|
||||||
import React, { PureComponent, Component, ReactElement } from 'react';
|
import React, { PureComponent, Component, ReactElement } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ReactSelect, {
|
import ReactSelect, {
|
||||||
GroupTypeBase,
|
GroupBase,
|
||||||
NamedProps as ReactSelectProps,
|
Props as ReactSelectProps,
|
||||||
OptionTypeBase,
|
|
||||||
} from 'react-select';
|
} from 'react-select';
|
||||||
import createThemedComponent from '../utils/createThemedComponent';
|
import createThemedComponent from '../utils/createThemedComponent';
|
||||||
import { Theme } from '../themes/default';
|
import { Theme } from '../themes/default';
|
||||||
|
|
||||||
export interface SelectProps<
|
export interface SelectProps<
|
||||||
Option extends OptionTypeBase,
|
Option,
|
||||||
IsMulti extends boolean = false,
|
IsMulti extends boolean = false,
|
||||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
Group extends GroupBase<Option> = GroupBase<Option>
|
||||||
> extends Omit<ReactSelectProps<Option, IsMulti, Group>, 'theme'> {
|
> extends Omit<ReactSelectProps<Option, IsMulti, Group>, 'theme'> {
|
||||||
theme: Theme;
|
theme: Theme;
|
||||||
}
|
}
|
||||||
|
@ -20,9 +19,9 @@ export interface SelectProps<
|
||||||
* Wrapper around [React Select](https://github.com/JedWatson/react-select).
|
* Wrapper around [React Select](https://github.com/JedWatson/react-select).
|
||||||
*/
|
*/
|
||||||
export class Select<
|
export class Select<
|
||||||
Option extends OptionTypeBase,
|
Option,
|
||||||
IsMulti extends boolean = false,
|
IsMulti extends boolean = false,
|
||||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
Group extends GroupBase<Option> = GroupBase<Option>
|
||||||
> extends (PureComponent || Component)<SelectProps<Option, IsMulti, Group>> {
|
> extends (PureComponent || Component)<SelectProps<Option, IsMulti, Group>> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
@ -95,17 +94,17 @@ export class Select<
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ExternalSelectProps<
|
export interface ExternalSelectProps<
|
||||||
Option extends OptionTypeBase,
|
Option,
|
||||||
IsMulti extends boolean = false,
|
IsMulti extends boolean = false,
|
||||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
Group extends GroupBase<Option> = GroupBase<Option>
|
||||||
> extends Omit<ReactSelectProps<Option, IsMulti, Group>, 'theme'> {
|
> extends Omit<ReactSelectProps<Option, IsMulti, Group>, 'theme'> {
|
||||||
theme?: Theme;
|
theme?: Theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
type SelectComponent = <
|
type SelectComponent = <
|
||||||
Option extends OptionTypeBase,
|
Option,
|
||||||
IsMulti extends boolean = false,
|
IsMulti extends boolean = false,
|
||||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
Group extends GroupBase<Option> = GroupBase<Option>
|
||||||
>(
|
>(
|
||||||
props: ExternalSelectProps<Option, IsMulti, Group>
|
props: ExternalSelectProps<Option, IsMulti, Group>
|
||||||
) => ReactElement;
|
) => ReactElement;
|
||||||
|
|
File diff suppressed because one or more lines are too long
19
yarn.lock
19
yarn.lock
|
@ -2697,7 +2697,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@emotion/serialize@npm:^1.0.0, @emotion/serialize@npm:^1.0.2":
|
"@emotion/serialize@npm:^1.0.2":
|
||||||
version: 1.0.2
|
version: 1.0.2
|
||||||
resolution: "@emotion/serialize@npm:1.0.2"
|
resolution: "@emotion/serialize@npm:1.0.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -5144,7 +5144,6 @@ __metadata:
|
||||||
"@types/json-schema": ^7.0.9
|
"@types/json-schema": ^7.0.9
|
||||||
"@types/prop-types": ^15.7.4
|
"@types/prop-types": ^15.7.4
|
||||||
"@types/react": ^16.14.15
|
"@types/react": ^16.14.15
|
||||||
"@types/react-select": ^4.0.17
|
|
||||||
"@types/redux-devtools-themes": ^1.0.0
|
"@types/redux-devtools-themes": ^1.0.0
|
||||||
"@types/simple-element-resize-detector": ^1.3.0
|
"@types/simple-element-resize-detector": ^1.3.0
|
||||||
"@types/styled-components": ^5.1.14
|
"@types/styled-components": ^5.1.14
|
||||||
|
@ -7312,7 +7311,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/react-dom@npm:*, @types/react-dom@npm:^16.9.14":
|
"@types/react-dom@npm:^16.9.14":
|
||||||
version: 16.9.14
|
version: 16.9.14
|
||||||
resolution: "@types/react-dom@npm:16.9.14"
|
resolution: "@types/react-dom@npm:16.9.14"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -7363,18 +7362,6 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/react-select@npm:^4.0.17":
|
|
||||||
version: 4.0.17
|
|
||||||
resolution: "@types/react-select@npm:4.0.17"
|
|
||||||
dependencies:
|
|
||||||
"@emotion/serialize": ^1.0.0
|
|
||||||
"@types/react": "*"
|
|
||||||
"@types/react-dom": "*"
|
|
||||||
"@types/react-transition-group": "*"
|
|
||||||
checksum: aa94bd1ff3536ab2bb8443bcf3c11109bcd78ae965dc534b205273eb98a84487d272e008adff50744870255e4ec5767465283649abd3d449fbc712718c062fca
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"@types/react-syntax-highlighter@npm:11.0.5":
|
"@types/react-syntax-highlighter@npm:11.0.5":
|
||||||
version: 11.0.5
|
version: 11.0.5
|
||||||
resolution: "@types/react-syntax-highlighter@npm:11.0.5"
|
resolution: "@types/react-syntax-highlighter@npm:11.0.5"
|
||||||
|
@ -7393,7 +7380,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/react-transition-group@npm:*, @types/react-transition-group@npm:^4.4.0, @types/react-transition-group@npm:^4.4.1":
|
"@types/react-transition-group@npm:^4.4.0, @types/react-transition-group@npm:^4.4.1":
|
||||||
version: 4.4.3
|
version: 4.4.3
|
||||||
resolution: "@types/react-transition-group@npm:4.4.3"
|
resolution: "@types/react-transition-group@npm:4.4.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user