@tiptap/extension-paragraph 2.7.1 → 2.7.2

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.
@@ -66,14 +66,16 @@ export declare class Editor extends EventEmitter<EditorEvents> {
66
66
  *
67
67
  * @param plugin A ProseMirror plugin
68
68
  * @param handlePlugins Control how to merge the plugin into the existing plugins.
69
+ * @returns The new editor state
69
70
  */
70
- registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): void;
71
+ registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): EditorState;
71
72
  /**
72
73
  * Unregister a ProseMirror plugin.
73
74
  *
74
75
  * @param nameOrPluginKey The plugins name
76
+ * @returns The new editor state or undefined if the editor is destroyed
75
77
  */
76
- unregisterPlugin(nameOrPluginKey: string | PluginKey): void;
78
+ unregisterPlugin(nameOrPluginKey: string | PluginKey): EditorState | undefined;
77
79
  /**
78
80
  * Creates an extension manager.
79
81
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-paragraph",
3
3
  "description": "paragraph extension for tiptap",
4
- "version": "2.7.1",
4
+ "version": "2.7.2",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "devDependencies": {
32
- "@tiptap/core": "^2.7.1"
32
+ "@tiptap/core": "^2.7.2"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@tiptap/core": "^2.7.0"