Skip to content

Commit

Permalink
fix: update prosemirror dependencies and fix type of ignoreMutation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Dec 24, 2024
1 parent 582b4e4 commit 465754b
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 57 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"dist"
],
"dependencies": {
"prosemirror-keymap": "^1.1.2",
"prosemirror-model": "^1.8.1",
"prosemirror-state": "^1.3.1",
"prosemirror-transform": "^1.2.1",
"prosemirror-view": "^1.13.3"
"prosemirror-keymap": "^1.2.2",
"prosemirror-model": "^1.24.1",
"prosemirror-state": "^1.4.3",
"prosemirror-transform": "^1.10.2",
"prosemirror-view": "^1.37.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.59.11",
Expand All @@ -50,11 +50,11 @@
"happy-dom": "^11.0.2",
"ist": "^1.1.7",
"prettier": "^2.8.8",
"prosemirror-commands": "^1.5.2",
"prosemirror-example-setup": "^1.2.2",
"prosemirror-commands": "^1.6.2",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-gapcursor": "^1.3.2",
"prosemirror-menu": "^1.2.2",
"prosemirror-schema-basic": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-test-builder": "^1.1.1",
"tsup": "^7.2.0",
"typescript": "^4.9.5",
Expand Down
93 changes: 47 additions & 46 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/tableview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Node } from 'prosemirror-model';
import { NodeView } from 'prosemirror-view';
import { NodeView, ViewMutationRecord } from 'prosemirror-view';
import { CellAttrs } from './util';

/**
Expand Down Expand Up @@ -36,7 +36,7 @@ export class TableView implements NodeView {
return true;
}

ignoreMutation(record: MutationRecord): boolean {
ignoreMutation(record: ViewMutationRecord): boolean {
return (
record.type == 'attributes' &&
(record.target == this.table || this.colgroup.contains(record.target))
Expand Down

0 comments on commit 465754b

Please sign in to comment.