diff --git a/package.json b/package.json index 6a127ad..ce4efa6 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4463272..f760c7b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,20 +9,20 @@ importers: .: dependencies: prosemirror-keymap: - specifier: ^1.1.2 + specifier: ^1.2.2 version: 1.2.2 prosemirror-model: - specifier: ^1.8.1 - version: 1.22.3 + specifier: ^1.24.1 + version: 1.24.1 prosemirror-state: - specifier: ^1.3.1 + specifier: ^1.4.3 version: 1.4.3 prosemirror-transform: - specifier: ^1.2.1 - version: 1.10.0 + specifier: ^1.10.2 + version: 1.10.2 prosemirror-view: - specifier: ^1.13.3 - version: 1.33.11 + specifier: ^1.37.1 + version: 1.37.1 devDependencies: '@typescript-eslint/eslint-plugin': specifier: ^5.59.11 @@ -49,19 +49,19 @@ importers: specifier: ^2.8.8 version: 2.8.8 prosemirror-commands: - specifier: ^1.5.2 - version: 1.6.0 + specifier: ^1.6.2 + version: 1.6.2 prosemirror-example-setup: - specifier: ^1.2.2 + specifier: ^1.2.3 version: 1.2.3 prosemirror-gapcursor: specifier: ^1.3.2 version: 1.3.2 prosemirror-menu: - specifier: ^1.2.2 + specifier: ^1.2.4 version: 1.2.4 prosemirror-schema-basic: - specifier: ^1.2.2 + specifier: ^1.2.3 version: 1.2.3 prosemirror-test-builder: specifier: ^1.1.1 @@ -802,6 +802,7 @@ packages: eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true espree@9.6.1: @@ -1240,8 +1241,8 @@ packages: engines: {node: '>=10.13.0'} hasBin: true - prosemirror-commands@1.6.0: - resolution: {integrity: sha512-xn1U/g36OqXn2tn5nGmvnnimAj/g1pUx2ypJJIe8WkVX83WyJVC5LTARaxZa2AtQRwntu9Jc5zXs9gL9svp/mg==} + prosemirror-commands@1.6.2: + resolution: {integrity: sha512-0nDHH++qcf/BuPLYvmqZTUUsPJUCPBUXt0J1ErTcDIS369CTp773itzLGIgIXG4LJXOlwYCr44+Mh4ii6MP1QA==} prosemirror-dropcursor@1.8.1: resolution: {integrity: sha512-M30WJdJZLyXHi3N8vxN6Zh5O8ZBbQCz0gURTfPmTIBNQ5pxrdU7A58QkNqfa98YEjSAL1HUyyU34f6Pm5xBSGw==} @@ -1264,8 +1265,8 @@ packages: prosemirror-menu@1.2.4: resolution: {integrity: sha512-S/bXlc0ODQup6aiBbWVsX/eM+xJgCTAfMq/nLqaO5ID/am4wS0tTCIkzwytmao7ypEtjj39i7YbJjAgO20mIqA==} - prosemirror-model@1.22.3: - resolution: {integrity: sha512-V4XCysitErI+i0rKFILGt/xClnFJaohe/wrrlT2NSZ+zk8ggQfDH4x2wNK7Gm0Hp4CIoWizvXFP7L9KMaCuI0Q==} + prosemirror-model@1.24.1: + resolution: {integrity: sha512-YM053N+vTThzlWJ/AtPtF1j0ebO36nvbmDy4U7qA2XQB8JVaQp1FmB9Jhrps8s+z+uxhhVTny4m20ptUvhk0Mg==} prosemirror-schema-basic@1.2.3: resolution: {integrity: sha512-h+H0OQwZVqMon1PNn0AG9cTfx513zgIG2DY00eJ00Yvgb3UD+GQ/VlWW5rcaxacpCGT1Yx8nuhwXk4+QbXUfJA==} @@ -1279,11 +1280,11 @@ packages: prosemirror-test-builder@1.1.1: resolution: {integrity: sha512-DJ1+4TNTE9ZcYN/ozXCaWJVrGA99UttMoVvZuidvAotRg7FaiNtEYxL/vlDwfZDRnzJDXNYhmM3XPv3EweK7yA==} - prosemirror-transform@1.10.0: - resolution: {integrity: sha512-9UOgFSgN6Gj2ekQH5CTDJ8Rp/fnKR2IkYfGdzzp5zQMFsS4zDllLVx/+jGcX86YlACpG7UR5fwAXiWzxqWtBTg==} + prosemirror-transform@1.10.2: + resolution: {integrity: sha512-2iUq0wv2iRoJO/zj5mv8uDUriOHWzXRnOTVgCzSXnktS/2iQRa3UUQwVlkBlYZFtygw6Nh1+X4mGqoYBINn5KQ==} - prosemirror-view@1.33.11: - resolution: {integrity: sha512-K0z9oMf6EI2ZifS9yW8PUPjEw2o1ZoFAaNzvcuyfcjIzsU6pJMo3tk9r26MyzEsuGHXZwmKPEmrjgFd78biTGA==} + prosemirror-view@1.37.1: + resolution: {integrity: sha512-MEAnjOdXU1InxEmhjgmEzQAikaS6lF3hD64MveTPpjOGNTl87iRLA1HupC/DEV6YuK7m4Q9DHFNTjwIVtqz5NA==} punycode.js@2.3.1: resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} @@ -2680,21 +2681,21 @@ snapshots: prettier@2.8.8: {} - prosemirror-commands@1.6.0: + prosemirror-commands@1.6.2: dependencies: - prosemirror-model: 1.22.3 + prosemirror-model: 1.24.1 prosemirror-state: 1.4.3 - prosemirror-transform: 1.10.0 + prosemirror-transform: 1.10.2 prosemirror-dropcursor@1.8.1: dependencies: prosemirror-state: 1.4.3 - prosemirror-transform: 1.10.0 - prosemirror-view: 1.33.11 + prosemirror-transform: 1.10.2 + prosemirror-view: 1.37.1 prosemirror-example-setup@1.2.3: dependencies: - prosemirror-commands: 1.6.0 + prosemirror-commands: 1.6.2 prosemirror-dropcursor: 1.8.1 prosemirror-gapcursor: 1.3.2 prosemirror-history: 1.4.1 @@ -2707,21 +2708,21 @@ snapshots: prosemirror-gapcursor@1.3.2: dependencies: prosemirror-keymap: 1.2.2 - prosemirror-model: 1.22.3 + prosemirror-model: 1.24.1 prosemirror-state: 1.4.3 - prosemirror-view: 1.33.11 + prosemirror-view: 1.37.1 prosemirror-history@1.4.1: dependencies: prosemirror-state: 1.4.3 - prosemirror-transform: 1.10.0 - prosemirror-view: 1.33.11 + prosemirror-transform: 1.10.2 + prosemirror-view: 1.37.1 rope-sequence: 1.3.4 prosemirror-inputrules@1.4.0: dependencies: prosemirror-state: 1.4.3 - prosemirror-transform: 1.10.0 + prosemirror-transform: 1.10.2 prosemirror-keymap@1.2.2: dependencies: @@ -2731,45 +2732,45 @@ snapshots: prosemirror-menu@1.2.4: dependencies: crelt: 1.0.6 - prosemirror-commands: 1.6.0 + prosemirror-commands: 1.6.2 prosemirror-history: 1.4.1 prosemirror-state: 1.4.3 - prosemirror-model@1.22.3: + prosemirror-model@1.24.1: dependencies: orderedmap: 2.1.1 prosemirror-schema-basic@1.2.3: dependencies: - prosemirror-model: 1.22.3 + prosemirror-model: 1.24.1 prosemirror-schema-list@1.4.1: dependencies: - prosemirror-model: 1.22.3 + prosemirror-model: 1.24.1 prosemirror-state: 1.4.3 - prosemirror-transform: 1.10.0 + prosemirror-transform: 1.10.2 prosemirror-state@1.4.3: dependencies: - prosemirror-model: 1.22.3 - prosemirror-transform: 1.10.0 - prosemirror-view: 1.33.11 + prosemirror-model: 1.24.1 + prosemirror-transform: 1.10.2 + prosemirror-view: 1.37.1 prosemirror-test-builder@1.1.1: dependencies: - prosemirror-model: 1.22.3 + prosemirror-model: 1.24.1 prosemirror-schema-basic: 1.2.3 prosemirror-schema-list: 1.4.1 - prosemirror-transform@1.10.0: + prosemirror-transform@1.10.2: dependencies: - prosemirror-model: 1.22.3 + prosemirror-model: 1.24.1 - prosemirror-view@1.33.11: + prosemirror-view@1.37.1: dependencies: - prosemirror-model: 1.22.3 + prosemirror-model: 1.24.1 prosemirror-state: 1.4.3 - prosemirror-transform: 1.10.0 + prosemirror-transform: 1.10.2 punycode.js@2.3.1: {} diff --git a/src/tableview.ts b/src/tableview.ts index 22444fc..469a430 100644 --- a/src/tableview.ts +++ b/src/tableview.ts @@ -1,5 +1,5 @@ import { Node } from 'prosemirror-model'; -import { NodeView } from 'prosemirror-view'; +import { NodeView, ViewMutationRecord } from 'prosemirror-view'; import { CellAttrs } from './util'; /** @@ -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))