Skip to content

Commit 465754b

Browse files
authored
fix: update prosemirror dependencies and fix type of ignoreMutation (#259)
1 parent 582b4e4 commit 465754b

File tree

3 files changed

+58
-57
lines changed

3 files changed

+58
-57
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"dist"
3636
],
3737
"dependencies": {
38-
"prosemirror-keymap": "^1.1.2",
39-
"prosemirror-model": "^1.8.1",
40-
"prosemirror-state": "^1.3.1",
41-
"prosemirror-transform": "^1.2.1",
42-
"prosemirror-view": "^1.13.3"
38+
"prosemirror-keymap": "^1.2.2",
39+
"prosemirror-model": "^1.24.1",
40+
"prosemirror-state": "^1.4.3",
41+
"prosemirror-transform": "^1.10.2",
42+
"prosemirror-view": "^1.37.1"
4343
},
4444
"devDependencies": {
4545
"@typescript-eslint/eslint-plugin": "^5.59.11",
@@ -50,11 +50,11 @@
5050
"happy-dom": "^11.0.2",
5151
"ist": "^1.1.7",
5252
"prettier": "^2.8.8",
53-
"prosemirror-commands": "^1.5.2",
54-
"prosemirror-example-setup": "^1.2.2",
53+
"prosemirror-commands": "^1.6.2",
54+
"prosemirror-example-setup": "^1.2.3",
5555
"prosemirror-gapcursor": "^1.3.2",
56-
"prosemirror-menu": "^1.2.2",
57-
"prosemirror-schema-basic": "^1.2.2",
56+
"prosemirror-menu": "^1.2.4",
57+
"prosemirror-schema-basic": "^1.2.3",
5858
"prosemirror-test-builder": "^1.1.1",
5959
"tsup": "^7.2.0",
6060
"typescript": "^4.9.5",

pnpm-lock.yaml

Lines changed: 47 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tableview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Node } from 'prosemirror-model';
2-
import { NodeView } from 'prosemirror-view';
2+
import { NodeView, ViewMutationRecord } from 'prosemirror-view';
33
import { CellAttrs } from './util';
44

55
/**
@@ -36,7 +36,7 @@ export class TableView implements NodeView {
3636
return true;
3737
}
3838

39-
ignoreMutation(record: MutationRecord): boolean {
39+
ignoreMutation(record: ViewMutationRecord): boolean {
4040
return (
4141
record.type == 'attributes' &&
4242
(record.target == this.table || this.colgroup.contains(record.target))

0 commit comments

Comments
 (0)