Skip to content

Commit

Permalink
feat: update remirror to v3 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Jul 31, 2024
1 parent 04817b5 commit 64de05d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
8 changes: 4 additions & 4 deletions with-jest-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"author": "",
"license": "MIT",
"dependencies": {
"@remirror/pm": "^2.0.8",
"@remirror/react": "^2.0.35",
"remirror": "^2.0.39"
"@remirror/pm": "^3.0.0",
"@remirror/react": "^3.0.0",
"remirror": "^3.0.0"
},
"devDependencies": {
"@swc/core": "^1.6.6",
Expand All @@ -19,7 +19,7 @@
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-remirror": "^2.1.5",
"jest-remirror": "^3.0.0",
"typescript": "^5.5.3"
}
}
6 changes: 3 additions & 3 deletions with-jest-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"author": "",
"license": "MIT",
"dependencies": {
"@remirror/pm": "^2.0.8",
"remirror": "^2.0.39"
"@remirror/pm": "^3.0.0",
"remirror": "^3.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-remirror": "^2.1.5",
"jest-remirror": "^3.0.0",
"ts-jest": "^29.1.5",
"typescript": "^5.5.3"
}
Expand Down
10 changes: 5 additions & 5 deletions with-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"test": "jest"
},
"dependencies": {
"@remirror/pm": "^2.0.8",
"@remirror/react": "^2.0.35",
"next": "^14.2.4",
"@remirror/pm": "^3.0.0",
"@remirror/react": "^3.0.0",
"next": "^14.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remirror": "^2.0.39"
"remirror": "^3.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
Expand All @@ -26,7 +26,7 @@
"eslint-config-next": "^14.2.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-remirror": "^2.1.5",
"jest-remirror": "^3.0.0",
"typescript": "^5.5.3"
}
}
9 changes: 5 additions & 4 deletions with-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@remirror/pm": "^2.0.8",
"@remirror/react": "^2.0.35",
"@remirror/styles": "^2.0.7",
"@remirror/pm": "^3.0.0",
"@remirror/react": "^3.0.0",
"@remirror/react-ui": "^1.0.0",
"@remirror/styles": "^3.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remirror": "^2.0.39"
"remirror": "^3.0.0"
},
"devDependencies": {
"@types/react": "^18.3.3",
Expand Down
6 changes: 3 additions & 3 deletions with-vite/src/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { Remirror, ThemeProvider, Toolbar, useRemirror } from "@remirror/react";
import { Remirror, ThemeProvider, useRemirror } from "@remirror/react";
import { AllStyledComponent } from "@remirror/styles/emotion";
import {
BoldExtension,
HeadingExtension,
ItalicExtension,
UnderlineExtension,
} from "remirror/extensions";

import {
Toolbar,
BasicFormattingButtonGroup,
DataTransferButtonGroup,
HeadingLevelButtonGroup,
HistoryButtonGroup,
VerticalDivider,
} from "@remirror/react";
} from "@remirror/react-ui";

const extensions = () => [
new HeadingExtension({}),
Expand Down

0 comments on commit 64de05d

Please sign in to comment.