@handlewithcare/react-prosemirror 3.2.1 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { ViewMutationRecord } from "prosemirror-view";
2
- export type IgnoreMutation = (mutation: ViewMutationRecord) => boolean;
1
+ import { NodeView, ViewMutationRecord } from "prosemirror-view";
2
+ export type IgnoreMutation = (this: NodeView, mutation: ViewMutationRecord) => boolean;
3
3
  type IgnoreMutationtContextValue = (ignoreMutation: IgnoreMutation) => void;
4
4
  export declare const IgnoreMutationContext: import("react").Context<IgnoreMutationtContextValue>;
5
5
  export {};
@@ -1,4 +1,5 @@
1
+ import { NodeView } from "prosemirror-view";
1
2
  export type StopEvent = (event: Event) => boolean;
2
- type StopEventContextValue = (stopEvent: (event: Event) => boolean) => void;
3
+ type StopEventContextValue = (stopEvent: (this: NodeView, event: Event) => boolean) => void;
3
4
  export declare const StopEventContext: import("react").Context<StopEventContextValue>;
4
5
  export {};
@@ -1,2 +1,2 @@
1
- import { EditorView, ViewMutationRecord } from "prosemirror-view";
2
- export declare function useIgnoreMutation(ignoreMutation: (view: EditorView, mutation: ViewMutationRecord) => boolean): void;
1
+ import { EditorView, NodeView, ViewMutationRecord } from "prosemirror-view";
2
+ export declare function useIgnoreMutation(ignoreMutation: (this: NodeView, view: EditorView, mutation: ViewMutationRecord) => boolean): void;
@@ -1,2 +1,2 @@
1
- import { EditorView } from "prosemirror-view";
2
- export declare function useStopEvent(stopEvent: (view: EditorView, event: Event) => boolean): void;
1
+ import { EditorView, NodeView } from "prosemirror-view";
2
+ export declare function useStopEvent(stopEvent: (this: NodeView, view: EditorView, event: Event) => boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handlewithcare/react-prosemirror",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -132,9 +132,9 @@
132
132
  "prosemirror-view": "1.41.7"
133
133
  },
134
134
  "peerDependencies": {
135
- "@tiptap/core": "^3.15.3",
136
- "@tiptap/pm": "^3.15.3",
137
- "@tiptap/react": "^3.15.3",
135
+ "@tiptap/core": "^3.0.0",
136
+ "@tiptap/pm": "^3.0.0",
137
+ "@tiptap/react": "^3.0.0",
138
138
  "prosemirror-model": "^1.0.0",
139
139
  "prosemirror-state": "^1.0.0",
140
140
  "prosemirror-view": "1.41.7",