Skip to content

Commit

Permalink
chore(deps): update prosemirror packages (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Nov 28, 2024
1 parent 1705a84 commit ea584d1
Show file tree
Hide file tree
Showing 15 changed files with 180 additions and 180 deletions.
6 changes: 3 additions & 3 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"@vitejs/plugin-vue": "^5.0.0",
"cypress": "^13.15.0",
"lit": "^3.0.0",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-menu": "^1.2.1",
"prosemirror-schema-basic": "^1.2.1",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-menu": "^1.2.4",
"prosemirror-schema-basic": "^1.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"solid-js": "^1.8.11",
Expand Down
14 changes: 7 additions & 7 deletions examples/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"@lit-labs/context": "^0.3.0",
"@prosemirror-adapter/lit": "*",
"lit": "^2.7.0",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-keymap": "^1.2.1",
"prosemirror-menu": "^1.2.1",
"prosemirror-model": "^1.19.0",
"prosemirror-schema-basic": "^1.2.1",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.30.2",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"@types/react": "^18.0.30",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^2.2.0",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-keymap": "^1.2.1",
"prosemirror-menu": "^1.2.1",
"prosemirror-model": "^1.19.0",
"prosemirror-schema-basic": "^1.2.1",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.30.2",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tslib": "^2.5.0",
Expand Down
14 changes: 7 additions & 7 deletions examples/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@prosemirror-adapter/solid": "workspace:*",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-keymap": "^1.2.1",
"prosemirror-menu": "^1.2.1",
"prosemirror-model": "^1.19.0",
"prosemirror-schema-basic": "^1.2.1",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.30.2",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"solid-js": "^1.8.11"
},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions examples/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
},
"dependencies": {
"@prosemirror-adapter/svelte": "*",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-keymap": "^1.2.1",
"prosemirror-menu": "^1.2.1",
"prosemirror-model": "^1.19.0",
"prosemirror-schema-basic": "^1.2.1",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.30.2"
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.5",
Expand Down
14 changes: 7 additions & 7 deletions examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"@prosemirror-adapter/vue": "*",
"@type-config/strict": "^1.2.1",
"@vitejs/plugin-vue": "^3.2.0",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-keymap": "^1.2.1",
"prosemirror-menu": "^1.2.1",
"prosemirror-model": "^1.19.0",
"prosemirror-schema-basic": "^1.2.1",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.30.2",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"tslib": "^2.5.0",
"typescript": "^4.9.5",
"vite": "^3.2.5",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"git-cz": "^4.9.0",
"husky": "^9.0.11",
"lint-staged": "^15.0.0",
"prosemirror-keymap": "^1.2.1",
"prosemirror-model": "^1.19.0",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.30.2",
"prosemirror-keymap": "^1.2.2",
"prosemirror-model": "^1.24.0",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"tslib": "^2.5.0",
"typescript": "^5.4.5",
"vite": "^5.2.11"
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/nodeView/CoreNodeView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Attrs, Node } from 'prosemirror-model'
import type { Decoration, DecorationSource, EditorView, NodeView } from 'prosemirror-view'
import type { Decoration, DecorationSource, EditorView, NodeView, ViewMutationRecord } from 'prosemirror-view'

import type { CoreNodeViewSpec, CoreNodeViewUserOptions } from './CoreNodeViewOptions'

Expand Down Expand Up @@ -102,7 +102,7 @@ export class CoreNodeView<ComponentType> implements NodeView {
return result
}

shouldIgnoreMutation: (mutation: MutationRecord) => boolean = (mutation) => {
shouldIgnoreMutation: (mutation: ViewMutationRecord) => boolean = (mutation) => {
if (!this.dom || !this.contentDOM)
return true

Expand All @@ -121,7 +121,7 @@ export class CoreNodeView<ComponentType> implements NodeView {
return true
}

ignoreMutation: (mutation: MutationRecord) => boolean = (mutation) => {
ignoreMutation: (mutation: ViewMutationRecord) => boolean = (mutation) => {
if (!this.dom || !this.contentDOM)
return true

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/nodeView/CoreNodeViewOptions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Node } from 'prosemirror-model'
import type { Decoration, DecorationSource, EditorView } from 'prosemirror-view'
import type { Decoration, DecorationSource, EditorView, ViewMutationRecord } from 'prosemirror-view'

export type NodeViewDOMSpec = string | HTMLElement | ((node: Node) => HTMLElement)

Expand All @@ -13,7 +13,7 @@ export interface CoreNodeViewUserOptions<Component> {

// Overrides
update?: (node: Node, decorations: readonly Decoration[], innerDecorations: DecorationSource) => boolean | void
ignoreMutation?: (mutation: MutationRecord) => boolean | void
ignoreMutation?: (mutation: ViewMutationRecord) => boolean | void
selectNode?: () => void
deselectNode?: () => void
setSelection?: (anchor: number, head: number, root: Document | ShadowRoot) => void
Expand Down
2 changes: 1 addition & 1 deletion packages/lit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ interface NodeViewFactoryOptions {

// Overrides: this part is equal to properties of [NodeView](https://prosemirror.net/docs/ref/#view.NodeView)
update?: (node: Node, decorations: readonly Decoration[], innerDecorations: DecorationSource) => boolean | void
ignoreMutation?: (mutation: MutationRecord) => boolean | void
ignoreMutation?: (mutation: ViewMutationRecord) => boolean | void
selectNode?: () => void
deselectNode?: () => void
setSelection?: (anchor: number, head: number, root: Document | ShadowRoot) => void
Expand Down
2 changes: 1 addition & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ interface NodeViewFactoryOptions {

// Overrides: this part is equal to properties of [NodeView](https://prosemirror.net/docs/ref/#view.NodeView)
update?: (node: Node, decorations: readonly Decoration[], innerDecorations: DecorationSource) => boolean | void
ignoreMutation?: (mutation: MutationRecord) => boolean | void
ignoreMutation?: (mutation: ViewMutationRecord) => boolean | void
selectNode?: () => void
deselectNode?: () => void
setSelection?: (anchor: number, head: number, root: Document | ShadowRoot) => void
Expand Down
2 changes: 1 addition & 1 deletion packages/solid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ interface NodeViewFactoryOptions {
decorations: readonly Decoration[],
innerDecorations: DecorationSource
) => boolean | void
ignoreMutation?: (mutation: MutationRecord) => boolean | void
ignoreMutation?: (mutation: ViewMutationRecord) => boolean | void
selectNode?: () => void
deselectNode?: () => void
setSelection?: (
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ interface NodeViewFactoryOptions {
// Overrides: this part is equal to properties of [NodeView](https://prosemirror.net/docs/ref/#view.NodeView)
update?: (node: Node, decorations: readonly Decoration[], innerDecorations: DecorationSource) => boolean | void
ignoreMutation?: (mutation: MutationRecord) => boolean | void
ignoreMutation?: (mutation: ViewMutationRecord) => boolean | void
selectNode?: () => void
deselectNode?: () => void
setSelection?: (anchor: number, head: number, root: Document | ShadowRoot) => void
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ interface NodeViewFactoryOptions {

// Overrides: this part is equal to properties of [NodeView](https://prosemirror.net/docs/ref/#view.NodeView)
update?: (node: Node, decorations: readonly Decoration[], innerDecorations: DecorationSource) => boolean | void
ignoreMutation?: (mutation: MutationRecord) => boolean | void
ignoreMutation?: (mutation: ViewMutationRecord) => boolean | void
selectNode?: () => void
deselectNode?: () => void
setSelection?: (anchor: number, head: number, root: Document | ShadowRoot) => void
Expand Down
Loading

0 comments on commit ea584d1

Please sign in to comment.