chore(redux-devtools): move to scoped package (#691)

* Start

* Finish
This commit is contained in:
Nathan Bierema 2020-12-21 09:08:08 -05:00 committed by GitHub
parent 02e95fc724
commit cf357931e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
46 changed files with 78 additions and 62 deletions

View File

@ -15,7 +15,7 @@ It shows a real-time view of the store aka the current state of the app.
### Installation
```
yarn add --dev redux-devtools-chart-monitor
yarn add redux-devtools-chart-monitor
```
### Usage
@ -26,7 +26,7 @@ You can use `ChartMonitor` as the only monitor in your app:
```js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import ChartMonitor from 'redux-devtools-chart-monitor';
export default createDevTools(<ChartMonitor />);

View File

@ -46,15 +46,15 @@
"redux-devtools-themes": "^1.0.0"
},
"devDependencies": {
"@redux-devtools/core": "^3.7.0",
"@types/react": "^16.9.46",
"react": "^16.13.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0"
"redux": "^4.0.5"
},
"peerDependencies": {
"@redux-devtools/core": "^3.4.0",
"@types/react": "^16.3.18",
"react": "^16.3.0",
"redux": "^3.4.0 || ^4.0.0",
"redux-devtools": "^3.0.0"
"redux": "^3.4.0 || ^4.0.0"
}
}

View File

@ -2,7 +2,7 @@ import React, { Component, createRef } from 'react';
import PropTypes from 'prop-types';
import { tree } from 'd3-state-visualizer';
import { Action, Dispatch } from 'redux';
import { LiftedAction, LiftedState } from 'redux-devtools';
import { LiftedAction, LiftedState } from '@redux-devtools/core';
import * as themes from 'redux-devtools-themes';
import { Base16Theme } from 'react-base16-styling';
import { ChartMonitorState } from './reducers';

View File

@ -1,7 +1,11 @@
import React, { CSSProperties, PureComponent } from 'react';
import PropTypes from 'prop-types';
import * as themes from 'redux-devtools-themes';
import { ActionCreators, LiftedAction, LiftedState } from 'redux-devtools';
import {
ActionCreators,
LiftedAction,
LiftedState,
} from '@redux-devtools/core';
import deepmerge from 'deepmerge';
import { Action, Dispatch } from 'redux';
import { Base16Theme } from 'react-base16-styling';

View File

@ -37,6 +37,7 @@
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"@redux-devtools/core": "^3.7.0",
"d3-state-visualizer": "^1.3.4",
"devui": "^1.0.0-6",
"get-params": "^0.1.2",
@ -52,7 +53,6 @@
"react-is": "^16.13.1",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0",
"redux-devtools-chart-monitor": "^1.7.2",
"redux-devtools-inspector-monitor": "^0.14.0",
"redux-devtools-inspector-monitor-test-tab": "^0.6.2",

View File

@ -43,7 +43,7 @@ import {
import { Action } from 'redux';
import { Features, State } from '../reducers/instances';
import { MonitorStateMonitorState } from '../reducers/monitor';
import { LiftedAction } from 'redux-devtools';
import { LiftedAction } from '@redux-devtools/core';
import { Data } from '../reducers/reports';
let monitorReducer: (

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ActionCreators, LiftedAction } from 'redux-devtools';
import { ActionCreators, LiftedAction } from '@redux-devtools/core';
import { Button, Toolbar, Divider } from 'devui';
import { Action } from 'redux';
import RecordButton from './buttons/RecordButton';

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import { withTheme } from 'styled-components';
import { LiftedAction, LiftedState } from 'redux-devtools';
import { LiftedAction, LiftedState } from '@redux-devtools/core';
import { Action } from 'redux';
import getMonitor from '../utils/getMonitor';
import { InitMonitorAction } from '../actions';

View File

@ -1,7 +1,7 @@
import React, { Component } from 'react';
import styled, { withTheme } from 'styled-components';
import SliderMonitor from 'redux-devtools-slider-monitor';
import { LiftedAction } from 'redux-devtools';
import { LiftedAction } from '@redux-devtools/core';
import { Action } from 'redux';
import { ThemeFromProvider } from 'devui';
import { State } from '../../reducers/instances';

View File

@ -1,4 +1,4 @@
import { PerformAction } from 'redux-devtools';
import { PerformAction } from '@redux-devtools/core';
import { Action } from 'redux';
import {
UPDATE_STATE,

View File

@ -1,7 +1,7 @@
import commitExcessActions from './commitExcessActions';
import { State } from '../reducers/instances';
import { Action } from 'redux';
import { PerformAction } from 'redux-devtools';
import { PerformAction } from '@redux-devtools/core';
export function recompute(
previousLiftedState: State,

View File

@ -1,5 +1,5 @@
import mapValues from 'lodash/mapValues';
import { PerformAction } from 'redux-devtools';
import { PerformAction } from '@redux-devtools/core';
import { Action } from 'redux';
import { State } from '../app/reducers/instances';

View File

@ -20,7 +20,7 @@ For example, you can use it together with [`LogMonitor`](https://github.com/redu
```js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import LogMonitor from 'redux-devtools-log-monitor';
import SliderMonitor from 'redux-devtools-slider-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';

View File

@ -46,16 +46,16 @@
"react-dock": "^0.3.0"
},
"devDependencies": {
"@redux-devtools/core": "^3.7.0",
"@types/parse-key": "^0.2.0",
"@types/react": "^16.9.46",
"react": "^16.13.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0"
"redux": "^4.0.5"
},
"peerDependencies": {
"@redux-devtools/core": "^3.4.0",
"@types/react": "^16.3.18",
"react": "^16.3.0",
"redux": "^3.4.0 || ^4.0.0",
"redux-devtools": "^3.4.0"
"redux": "^3.4.0 || ^4.0.0"
}
}

View File

@ -2,7 +2,7 @@ import React, { cloneElement, Children, Component } from 'react';
import PropTypes from 'prop-types';
import Dock from 'react-dock';
import { Action, Dispatch } from 'redux';
import { LiftedState, Monitor } from 'redux-devtools';
import { LiftedState, Monitor } from '@redux-devtools/core';
import { POSITIONS } from './constants';
import {
toggleVisibility,

View File

@ -3,7 +3,7 @@
### Installation
```
yarn add --dev redux-devtools-inspector-monitor-test-tab
yarn add redux-devtools-inspector-monitor-test-tab
```
### Usage
@ -16,7 +16,7 @@ With [`redux-devtools`](https://github.com/reduxjs/redux-devtools) and [`redux-d
```js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import InspectorMonitor from 'redux-devtools-inspector-monitor';
import TestGenerator from 'redux-devtools-inspector-monitor-test-tab';
import mochaTemplate from 'redux-devtools-inspector-monitor-test-tab/lib/redux/mocha'; // If using default tests.

View File

@ -1,6 +1,6 @@
import React from 'react';
import { connect } from 'react-redux';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import InspectorMonitor, {
base16Themes,
Tab,

View File

@ -14,7 +14,7 @@ import logger from 'redux-logger';
import { Route } from 'react-router';
import { createBrowserHistory } from 'history';
import { ConnectedRouter, routerMiddleware } from 'connected-react-router';
import { persistState } from 'redux-devtools';
import { persistState } from '@redux-devtools/core';
import DemoApp from './DemoApp';
import createRootReducer from './reducers';
import getOptions from './getOptions';

View File

@ -54,6 +54,7 @@
"simple-diff": "^1.6.0"
},
"devDependencies": {
"@redux-devtools/core": "^3.7.0",
"@types/es6template": "^1.0.0",
"@types/history": "^4.7.7",
"@types/jsan": "^3.1.0",
@ -76,7 +77,6 @@
"react-redux": "^7.2.1",
"react-router": "^5.2.0",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0",
"redux-devtools-dock-monitor": "^1.2.0",
"redux-devtools-inspector-monitor": "^0.14.0",
"redux-logger": "^3.0.6",

View File

@ -1,7 +1,7 @@
import React from 'react';
import { render } from 'enzyme';
import { renderToJson } from 'enzyme-to-json';
import { PerformAction } from 'redux-devtools';
import { PerformAction } from '@redux-devtools/core';
import { Action } from 'redux';
import TestGenerator from '../src/TestGenerator';
import fnTemplate from '../src/redux/mocha';

View File

@ -8,7 +8,7 @@ It's integrated in Redux DevTools browser extension. To use it separately with [
```js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import InspectorMonitor from 'redux-devtools-inspector-monitor';
import TraceTab from 'redux-devtools-inspector-monitor-trace-tab';

View File

@ -36,6 +36,7 @@
"settle-promise": "^1.0.0"
},
"devDependencies": {
"@redux-devtools/core": "^3.7.0",
"@types/babel__code-frame": "^7.0.2",
"@types/enzyme": "^3.10.5",
"@types/enzyme-adapter-react-16": "^1.0.6",
@ -49,14 +50,12 @@
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0",
"redux-devtools-inspector-monitor": "^0.14.0"
},
"peerDependencies": {
"@types/react": "^16.3.18",
"react": "^16.3.0",
"redux": "^3.4.0 || ^4.0.0",
"redux-devtools": "^3.4.0",
"redux-devtools-inspector-monitor": "^0.14.0"
}
}

View File

@ -9,7 +9,7 @@ A state monitor for [Redux DevTools](https://github.com/reduxjs/redux-devtools)
### Installation
```
yarn add --dev redux-devtools-inspector-monitor
yarn add redux-devtools-inspector-monitor
```
### Usage
@ -20,7 +20,7 @@ You can use `Inspector` as the only monitor in your app:
```js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import Inspector from 'redux-devtools-inspector-monitor';
export default createDevTools(<Inspector />);

View File

@ -1,6 +1,6 @@
import React from 'react';
import { connect } from 'react-redux';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import DockMonitor from 'redux-devtools-dock-monitor';
import { Location } from 'history';
import DevtoolsInspector from '../../../src/DevtoolsInspector';

View File

@ -12,7 +12,7 @@ import logger from 'redux-logger';
import { Route } from 'react-router';
import { createBrowserHistory } from 'history';
import { ConnectedRouter, routerMiddleware } from 'connected-react-router';
import { persistState } from 'redux-devtools';
import { persistState } from '@redux-devtools/core';
import DemoApp from './DemoApp';
import createRootReducer from './reducers';
import getOptions from './getOptions';

View File

@ -53,6 +53,7 @@
"redux-devtools-themes": "^1.0.0"
},
"devDependencies": {
"@redux-devtools/core": "^3.7.0",
"@types/dateformat": "^3.0.1",
"@types/hex-rgba": "^1.0.0",
"@types/history": "^4.7.7",
@ -72,12 +73,12 @@
"react-redux": "^7.2.1",
"react-router": "^5.2.0",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0",
"redux-devtools-dock-monitor": "^1.2.0",
"redux-logger": "^3.0.6",
"seamless-immutable": "^7.1.4"
},
"peerDependencies": {
"@redux-devtools/core": "^3.4.0",
"@types/react": "^16.3.18",
"react": "^16.3.0",
"redux": "^3.4.0 || ^4.0.0"

View File

@ -2,7 +2,7 @@ import React, { PureComponent, RefCallback } from 'react';
import { Drake } from 'dragula';
import dragula from 'react-dragula';
import { Action } from 'redux';
import { PerformAction } from 'redux-devtools';
import { PerformAction } from '@redux-devtools/core';
import { StylingFunction } from 'react-base16-styling';
import ActionListRow from './ActionListRow';
import ActionListHeader from './ActionListHeader';

View File

@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { Base16Theme } from 'redux-devtools-themes';
import { Action } from 'redux';
import { StylingFunction } from 'react-base16-styling';
import { PerformAction } from 'redux-devtools';
import { PerformAction } from '@redux-devtools/core';
import { Delta } from 'jsondiffpatch';
import { DEFAULT_STATE, DevtoolsInspectorState } from './redux';
import ActionPreviewHeader from './ActionPreviewHeader';

View File

@ -6,7 +6,11 @@ import {
invertTheme,
StylingFunction,
} from 'react-base16-styling';
import { ActionCreators, LiftedAction, LiftedState } from 'redux-devtools';
import {
ActionCreators,
LiftedAction,
LiftedState,
} from '@redux-devtools/core';
import { Action, Dispatch } from 'redux';
import { Delta, DiffContext } from 'jsondiffpatch';
import {

View File

@ -19,7 +19,7 @@ You can use `LogMonitor` as the only monitor in your app:
```js
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(<LogMonitor />);

View File

@ -49,15 +49,15 @@
"redux-devtools-themes": "^1.0.0"
},
"devDependencies": {
"@redux-devtools/core": "^3.7.0",
"@types/react": "^16.9.46",
"react": "^16.13.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0"
"redux": "^4.0.5"
},
"peerDependencies": {
"@redux-devtools/core": "^3.4.0",
"@types/react": "^16.3.18",
"react": "^16.3.0",
"redux": "^3.4.0 || ^4.0.0",
"redux-devtools": "^3.4.0"
"redux": "^3.4.0 || ^4.0.0"
}
}

View File

@ -3,7 +3,11 @@ import PropTypes from 'prop-types';
import { Action, Dispatch } from 'redux';
import * as themes from 'redux-devtools-themes';
import { Base16Theme } from 'redux-devtools-themes';
import { ActionCreators, LiftedAction, LiftedState } from 'redux-devtools';
import {
ActionCreators,
LiftedAction,
LiftedState,
} from '@redux-devtools/core';
import debounce from 'lodash.debounce';
import {
updateScrollTop,

View File

@ -1,6 +1,6 @@
import React, { CSSProperties, PureComponent } from 'react';
import PropTypes from 'prop-types';
import { ActionCreators, LiftedAction } from 'redux-devtools';
import { ActionCreators, LiftedAction } from '@redux-devtools/core';
import { Base16Theme } from 'redux-devtools-themes';
import { Action, Dispatch } from 'redux';
import LogMonitorButton from './LogMonitorButton';

View File

@ -1,7 +1,7 @@
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Action } from 'redux';
import { PerformAction } from 'redux-devtools';
import { PerformAction } from '@redux-devtools/core';
import { Base16Theme } from 'redux-devtools-themes';
import LogMonitorEntry from './LogMonitorEntry';

View File

@ -1,5 +1,5 @@
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'redux-devtools-slider-monitor';

View File

@ -15,13 +15,13 @@
"type-check:watch": "npm run type-check -- --watch"
},
"dependencies": {
"@redux-devtools/core": "^3.7.0",
"classnames": "^2.2.6",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-hot-loader": "^4.12.21",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0",
"redux-devtools-dock-monitor": "^1.2.0",
"redux-devtools-log-monitor": "^2.1.0",
"redux-devtools-slider-monitor": "^2.0.0-5",

View File

@ -1,5 +1,5 @@
import { createStore, compose, PreloadedState } from 'redux';
import { persistState } from 'redux-devtools';
import { persistState } from '@redux-devtools/core';
import rootReducer, { TodoState } from '../reducers';
import DevTools from '../containers/DevTools';

View File

@ -38,15 +38,15 @@
"redux-devtools-themes": "^1.0.0"
},
"devDependencies": {
"@redux-devtools/core": "^3.7.0",
"@types/react": "^16.9.46",
"react": "^16.13.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0"
"redux": "^4.0.5"
},
"peerDependencies": {
"@redux-devtools/core": "^3.4.0",
"@types/react": "^16.3.18",
"react": "^16.3.0",
"redux": "^3.4.0 || ^4.0.0",
"redux-devtools": "^3.4.0"
"redux": "^3.4.0 || ^4.0.0"
}
}

View File

@ -3,7 +3,11 @@ import PropTypes from 'prop-types';
import { Action, Dispatch } from 'redux';
import * as themes from 'redux-devtools-themes';
import { Base16Theme } from 'redux-devtools-themes';
import { ActionCreators, LiftedAction, LiftedState } from 'redux-devtools';
import {
ActionCreators,
LiftedAction,
LiftedState,
} from '@redux-devtools/core';
import { Toolbar, Divider } from 'devui/lib/Toolbar';
import Slider from 'devui/lib/Slider';
import Button from 'devui/lib/Button';

View File

@ -19,13 +19,13 @@
"type-check:watch": "npm run type-check -- --watch"
},
"dependencies": {
"@redux-devtools/core": "^3.7.0",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-hot-loader": "^4.12.21",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0",
"redux-devtools-dock-monitor": "^1.2.0",
"redux-devtools-log-monitor": "^2.1.0",
"redux-thunk": "^2.3.0"

View File

@ -1,5 +1,5 @@
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';

View File

@ -1,5 +1,5 @@
import { createStore, applyMiddleware, compose, PreloadedState } from 'redux';
import { persistState } from 'redux-devtools';
import { persistState } from '@redux-devtools/core';
import thunk from 'redux-thunk';
import rootReducer, { CounterState } from '../reducers';
import DevTools from '../containers/DevTools';

View File

@ -1,5 +1,5 @@
import React from 'react';
import { createDevTools } from 'redux-devtools';
import { createDevTools } from '@redux-devtools/core';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';

View File

@ -31,6 +31,7 @@
"type-check:watch": "npm run type-check -- --watch"
},
"dependencies": {
"@redux-devtools/core": "^3.7.0",
"classnames": "^2.2.6",
"prop-types": "^15.7.2",
"react": "^16.13.1",
@ -38,7 +39,6 @@
"react-hot-loader": "^4.12.21",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools": "^3.7.0",
"redux-devtools-dock-monitor": "^1.2.0",
"redux-devtools-log-monitor": "^2.1.0",
"todomvc-app-css": "^2.3.0"

View File

@ -1,5 +1,5 @@
import { createStore, compose, PreloadedState } from 'redux';
import { persistState } from 'redux-devtools';
import { persistState } from '@redux-devtools/core';
import rootReducer, { TodoState } from '../reducers';
import DevTools from '../containers/DevTools';

View File

@ -1,5 +1,5 @@
{
"name": "redux-devtools",
"name": "@redux-devtools/core",
"version": "3.7.0",
"description": "Redux DevTools with hot reloading and time travel",
"keywords": [