Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/bright-sheep-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@redux-devtools/app-core': major
'@redux-devtools/app': major
'@redux-devtools/inspector-monitor-test-tab': major
'@redux-devtools/rtk-query-monitor': major
'@redux-devtools/slider-monitor': major
'@redux-devtools/ui': major
---

Replace styled-components with Emotion
5 changes: 2 additions & 3 deletions extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@redux-devtools/app": "workspace:^",
"@redux-devtools/core": "workspace:^",
"@redux-devtools/instrument": "workspace:^",
Expand All @@ -44,8 +45,7 @@
"react-json-tree": "workspace:^",
"react-redux": "^9.2.0",
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
"styled-components": "^5.3.11"
"redux-persist": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.27.1",
Expand All @@ -60,7 +60,6 @@
"@types/lodash-es": "^4.17.12",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.5",
"@types/styled-components": "^5.1.34",
"chromedriver": "^126.0.5",
"cross-env": "^7.0.3",
"electron": "^31.7.7",
Expand Down
5 changes: 2 additions & 3 deletions packages/react-dock/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@emotion/styled": "^11.14.0",
"react": "^19.1.0",
"react-bootstrap": "^2.10.10",
"react-dock": "workspace:^",
"react-dom": "^19.1.0",
"react-icons": "^5.5.0",
"react-is": "^19.1.0",
"styled-components": "^5.3.11"
"react-is": "^19.1.0"
},
"devDependencies": {
"@babel/core": "^7.27.1",
Expand All @@ -26,7 +26,6 @@
"@types/node": "^22.15.21",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.5",
"@types/styled-components": "^5.1.34",
"babel-loader": "^10.0.0",
"cross-env": "^7.0.3",
"fork-ts-checker-webpack-plugin": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dock/demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import Button from 'react-bootstrap/Button';
import Form from 'react-bootstrap/Form';
import { BsX } from 'react-icons/bs';
import styled from 'styled-components';
import styled from '@emotion/styled';

import { Dock } from 'react-dock';

Expand Down
8 changes: 3 additions & 5 deletions packages/redux-devtools-app-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@reduxjs/toolkit": "^2.8.2",
"@rjsf/core": "^5.24.10",
"@testing-library/dom": "^10.4.0",
Expand All @@ -72,7 +73,6 @@
"@types/node": "^22.15.21",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.5",
"@types/styled-components": "^5.1.34",
"cross-env": "^7.0.3",
"esbuild": "^0.25.4",
"jest": "^29.7.0",
Expand All @@ -83,21 +83,19 @@
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
"rimraf": "^6.0.1",
"styled-components": "^5.3.11",
"ts-jest": "^29.3.4",
"ts-node": "^10.9.2",
"typescript": "~5.8.3"
},
"peerDependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@reduxjs/toolkit": "^1.0.0 || ^2.0.0",
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@types/styled-components": "^5.1.34",
"react": "^16.8.4 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-redux": "^8.0.0 || ^9.0.0",
"redux": "^4.0.0 || ^5.0.0",
"redux-persist": "^6.0.0",
"styled-components": "^5.3.11"
"redux-persist": "^6.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { withTheme } from 'styled-components';
import { withTheme } from '@emotion/react';
import { LiftedAction, LiftedState } from '@redux-devtools/core';
import { Action } from 'redux';
import getMonitor from '../utils/getMonitor';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
// Based on https://github.com/YoruNoHikage/redux-devtools-dispatch

import React, { Component } from 'react';
import styled from 'styled-components';
import { Button, Select, Editor, Toolbar } from '@redux-devtools/ui';
import styled from '@emotion/styled';
import {
Button,
Select,
Editor,
Toolbar,
Base16Theme,
} from '@redux-devtools/ui';
import { connect, ResolveThunks } from 'react-redux';
import { dispatchRemotely } from '../../actions';
import { Options } from '../../reducers/instances';
Expand All @@ -12,7 +18,7 @@ export const DispatcherContainer = styled.div`
flex-direction: column;
flex-shrink: 0;
padding-top: 2px;
background: ${(props) => props.theme.base01};
background: ${(props: { theme?: Base16Theme }) => props.theme!.base01};
`;

export const CodeContainer = styled.div`
Expand All @@ -24,7 +30,7 @@ export const CodeContainer = styled.div`
export const ActionContainer = styled.div`
display: table;
width: 100%;
color: ${(props) => props.theme.base06};
color: ${(props: { theme?: Base16Theme }) => props.theme!.base06};

> div {
display: table-row;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component, RefCallback } from 'react';
import { connect, ResolveThunks } from 'react-redux';
import { withTheme } from 'styled-components';
import { withTheme } from '@emotion/react';
import { tree } from 'd3-state-visualizer';
import type { HierarchyPointNode, Node, Options } from 'd3-state-visualizer';
import { getPath } from '../ChartMonitorWrapper';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Component } from 'react';
import type { Delta } from 'jsondiffpatch';
import * as htmlFormatter from 'jsondiffpatch/formatters/html';
import styled, { ThemedStyledProps } from 'styled-components';
import { effects, Theme } from '@redux-devtools/ui';
import styled from '@emotion/styled';
import { Base16Theme, effects } from '@redux-devtools/ui';

export const StyledContainer = styled.div`
.jsondiffpatch-delta {
Expand All @@ -19,8 +19,7 @@ export const StyledContainer = styled.div`
padding: 2px 3px;
border-radius: 3px;
position: relative;
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
color: ${(props: ThemedStyledProps<{}, Theme>) => props.theme.base07};
color: ${(props: { theme?: Base16Theme }) => props.theme!.base07};
display: inline-block;
}

Expand All @@ -44,25 +43,22 @@ export const StyledContainer = styled.div`
.jsondiffpatch-modified .jsondiffpatch-right-value:before {
vertical-align: top;
padding: 2px;
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
color: ${(props: ThemedStyledProps<{}, Theme>) => props.theme.base0E};
color: ${(props) => props.theme.base0E};
content: ' => ';
}

.jsondiffpatch-added .jsondiffpatch-value pre,
.jsondiffpatch-modified .jsondiffpatch-right-value pre,
.jsondiffpatch-textdiff-added {
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
background: ${(props: ThemedStyledProps<{}, Theme>) =>
effects.color(props.theme.base0B, 'alpha', 0.2)};
background: ${(props: { theme?: Base16Theme }) =>
effects.color(props.theme!.base0B, 'alpha', 0.2)};
}

.jsondiffpatch-deleted pre,
.jsondiffpatch-modified .jsondiffpatch-left-value pre,
.jsondiffpatch-textdiff-deleted {
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
background: ${(props: ThemedStyledProps<{}, Theme>) =>
effects.color(props.theme.base08, 'alpha', 0.2)};
background: ${(props: { theme?: Base16Theme }) =>
effects.color(props.theme!.base08, 'alpha', 0.2)};
text-decoration: line-through;
}

Expand Down Expand Up @@ -129,14 +125,12 @@ export const StyledContainer = styled.div`
padding: 2px 0;
padding-right: 5px;
vertical-align: top;
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
color: ${(props: ThemedStyledProps<{}, Theme>) => props.theme.base0D};
color: ${(props) => props.theme.base0D};
}

.jsondiffpatch-property-name:after {
content: ': ';
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
color: ${(props: ThemedStyledProps<{}, Theme>) => props.theme.base07};
color: ${(props) => props.theme.base07};
}

.jsondiffpatch-child-node-type-array > .jsondiffpatch-property-name:after {
Expand Down Expand Up @@ -172,8 +166,7 @@ export const StyledContainer = styled.div`
}

.jsondiffpatch-value pre:after {
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
color: ${(props: ThemedStyledProps<{}, Theme>) => props.theme.base07};
color: ${(props) => props.theme.base07};
content: ',';
}

Expand All @@ -196,8 +189,7 @@ export const StyledContainer = styled.div`

.jsondiffpatch-moved .jsondiffpatch-moved-destination {
display: inline-block;
${/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */ ''}
background: ${(props: ThemedStyledProps<{}, Theme>) => props.theme.base0A};
background: ${(props) => props.theme.base0A};
}

.jsondiffpatch-moved .jsondiffpatch-moved-destination:before {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React, { Component } from 'react';
import styled, { withTheme } from 'styled-components';
import styled from '@emotion/styled';
import { withTheme } from '@emotion/react';
import { SliderMonitor } from '@redux-devtools/slider-monitor';
import { LiftedAction } from '@redux-devtools/core';
import { Action } from 'redux';
import { ThemeFromProvider } from '@redux-devtools/ui';
import { Base16Theme, ThemeFromProvider } from '@redux-devtools/ui';
import { State } from '../../reducers/instances';

const SliderWrapper = styled.div`
border-color: ${(props) => props.theme.base02};
border-color: ${(props: { theme?: Base16Theme }) => props.theme!.base02};
border-style: solid;
border-width: 1px 0;
`;
Expand Down
8 changes: 3 additions & 5 deletions packages/redux-devtools-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@reduxjs/toolkit": "^2.8.2",
"@rjsf/core": "^5.24.10",
"@types/jsan": "^3.1.5",
Expand All @@ -65,7 +66,6 @@
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.5",
"@types/socketcluster-client": "^19.1.0",
"@types/styled-components": "^5.1.34",
"@types/webpack-env": "^1.18.8",
"babel-loader": "^10.0.0",
"cross-env": "^7.0.3",
Expand All @@ -79,7 +79,6 @@
"react-dom": "^19.1.0",
"rimraf": "^6.0.1",
"style-loader": "^4.0.0",
"styled-components": "^5.3.11",
"ts-jest": "^29.3.4",
"ts-node": "^10.9.2",
"typescript": "~5.8.3",
Expand All @@ -89,11 +88,10 @@
},
"peerDependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@reduxjs/toolkit": "^1.0.0 || ^2.0.0",
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@types/styled-components": "^5.1.34",
"react": "^16.8.4 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"styled-components": "^5.3.11"
"react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
}
3 changes: 1 addition & 2 deletions packages/redux-devtools-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"dependencies": {
"@apollo/server": "^4.12.1",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@redux-devtools/app": "workspace:^",
"@reduxjs/toolkit": "^2.8.2",
"@types/react": "^19.1.6",
Expand All @@ -65,7 +66,6 @@
"semver": "^7.7.2",
"socketcluster-server": "^19.1.1",
"sqlite3": "^5.1.7",
"styled-components": "^5.3.11",
"uuid": "^11.1.0"
},
"devDependencies": {
Expand All @@ -81,7 +81,6 @@
"@types/semver": "^7.7.0",
"@types/socketcluster-client": "^19.1.0",
"@types/socketcluster-server": "^19.0.1",
"@types/styled-components": "^5.1.34",
"@types/supertest": "^6.0.3",
"@types/uuid": "^10.0.0",
"globals": "^16.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@redux-devtools/core": "workspace:^",
"@redux-devtools/dock-monitor": "workspace:^",
"@redux-devtools/inspector-monitor": "workspace:^",
Expand All @@ -24,8 +25,7 @@
"react-redux": "^9.2.0",
"react-router-dom": "^7.6.1",
"redux": "^5.0.1",
"redux-logger": "^3.0.6",
"styled-components": "^5.3.11"
"redux-logger": "^3.0.6"
},
"devDependencies": {
"@babel/core": "^7.27.1",
Expand All @@ -37,7 +37,6 @@
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.5",
"@types/redux-logger": "^3.0.13",
"@types/styled-components": "^5.1.34",
"@types/webpack-env": "^1.18.8",
"babel-loader": "^10.0.0",
"cross-env": "^7.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@redux-devtools/core": "workspace:^",
"@redux-devtools/inspector-monitor": "workspace:^",
"@testing-library/dom": "^10.4.0",
Expand All @@ -81,12 +82,11 @@
},
"peerDependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@redux-devtools/inspector-monitor": "workspace:^",
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@types/styled-components": "^5.1.34",
"react": "^16.8.4 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"redux": "^3.4.0 || ^4.0.0 || ^5.0.0",
"styled-components": "^5.3.11"
"redux": "^3.4.0 || ^4.0.0 || ^5.0.0"
}
}
Loading