@tiptap/extension-drag-handle-vue-3 3.3.0 → 3.4.0

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.
package/dist/index.d.cts CHANGED
@@ -845,6 +845,18 @@ type ParentConfig<T> = Partial<{
845
845
  [P in keyof T]: Required<T>[P] extends (...args: any) => any ? (...args: Parameters<Required<T>[P]>) => ReturnType<Required<T>[P]> : T[P];
846
846
  }>;
847
847
  interface EditorEvents {
848
+ mount: {
849
+ /**
850
+ * The editor instance
851
+ */
852
+ editor: Editor;
853
+ };
854
+ unmount: {
855
+ /**
856
+ * The editor instance
857
+ */
858
+ editor: Editor;
859
+ };
848
860
  beforeCreate: {
849
861
  /**
850
862
  * The editor instance
@@ -1157,6 +1169,14 @@ interface EditorOptions {
1157
1169
  * Called after the editor is constructed.
1158
1170
  */
1159
1171
  onCreate: (props: EditorEvents['create']) => void;
1172
+ /**
1173
+ * Called when the editor is mounted.
1174
+ */
1175
+ onMount: (props: EditorEvents['mount']) => void;
1176
+ /**
1177
+ * Called when the editor is unmounted.
1178
+ */
1179
+ onUnmount: (props: EditorEvents['unmount']) => void;
1160
1180
  /**
1161
1181
  * Called when the editor encounters an error while parsing the content.
1162
1182
  * Only enabled if `enableContentCheck` is `true`.
package/dist/index.d.ts CHANGED
@@ -845,6 +845,18 @@ type ParentConfig<T> = Partial<{
845
845
  [P in keyof T]: Required<T>[P] extends (...args: any) => any ? (...args: Parameters<Required<T>[P]>) => ReturnType<Required<T>[P]> : T[P];
846
846
  }>;
847
847
  interface EditorEvents {
848
+ mount: {
849
+ /**
850
+ * The editor instance
851
+ */
852
+ editor: Editor;
853
+ };
854
+ unmount: {
855
+ /**
856
+ * The editor instance
857
+ */
858
+ editor: Editor;
859
+ };
848
860
  beforeCreate: {
849
861
  /**
850
862
  * The editor instance
@@ -1157,6 +1169,14 @@ interface EditorOptions {
1157
1169
  * Called after the editor is constructed.
1158
1170
  */
1159
1171
  onCreate: (props: EditorEvents['create']) => void;
1172
+ /**
1173
+ * Called when the editor is mounted.
1174
+ */
1175
+ onMount: (props: EditorEvents['mount']) => void;
1176
+ /**
1177
+ * Called when the editor is unmounted.
1178
+ */
1179
+ onUnmount: (props: EditorEvents['unmount']) => void;
1160
1180
  /**
1161
1181
  * Called when the editor encounters an error while parsing the content.
1162
1182
  * Only enabled if `enableContentCheck` is `true`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-drag-handle-vue-3",
3
3
  "description": "drag handle extension for tiptap with vue 3",
4
- "version": "3.3.0",
4
+ "version": "3.4.0",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -37,15 +37,15 @@
37
37
  ],
38
38
  "peerDependencies": {
39
39
  "vue": "^3.0.0",
40
- "@tiptap/extension-drag-handle": "^3.3.0",
41
- "@tiptap/pm": "^3.3.0",
42
- "@tiptap/vue-3": "^3.3.0"
40
+ "@tiptap/extension-drag-handle": "^3.4.0",
41
+ "@tiptap/pm": "^3.4.0",
42
+ "@tiptap/vue-3": "^3.4.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "vue": "^3.0.0",
46
- "@tiptap/extension-drag-handle": "^3.3.0",
47
- "@tiptap/pm": "^3.3.0",
48
- "@tiptap/vue-3": "^3.3.0"
46
+ "@tiptap/extension-drag-handle": "^3.4.0",
47
+ "@tiptap/pm": "^3.4.0",
48
+ "@tiptap/vue-3": "^3.4.0"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup",