@tiptap/extension-drag-handle-vue-2 3.5.2 → 3.6.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
@@ -1063,11 +1063,15 @@ interface EditorEvents {
1063
1063
  type EnableRules = (AnyExtension | string)[] | boolean;
1064
1064
  interface EditorOptions {
1065
1065
  /**
1066
- * The element or selector to bind the editor to
1067
- * If `null` is passed, the editor will not be mounted automatically
1068
- * If a function is passed, it will be called with the editor's root element
1069
- */
1070
- element: Element | null;
1066
+ * The element to bind the editor to:
1067
+ * - If an `Element` is passed, the editor will be mounted appended to that element
1068
+ * - If `null` is passed, the editor will not be mounted automatically
1069
+ * - If an object with a `mount` property is passed, the editor will be mounted to that element
1070
+ * - If a function is passed, it will be called with the editor's element, which should place the editor within the document
1071
+ */
1072
+ element: Element | {
1073
+ mount: HTMLElement;
1074
+ } | ((editor: HTMLElement) => void) | null;
1071
1075
  /**
1072
1076
  * The content of the editor (HTML, JSON, or a JSON array)
1073
1077
  */
package/dist/index.d.ts CHANGED
@@ -1063,11 +1063,15 @@ interface EditorEvents {
1063
1063
  type EnableRules = (AnyExtension | string)[] | boolean;
1064
1064
  interface EditorOptions {
1065
1065
  /**
1066
- * The element or selector to bind the editor to
1067
- * If `null` is passed, the editor will not be mounted automatically
1068
- * If a function is passed, it will be called with the editor's root element
1069
- */
1070
- element: Element | null;
1066
+ * The element to bind the editor to:
1067
+ * - If an `Element` is passed, the editor will be mounted appended to that element
1068
+ * - If `null` is passed, the editor will not be mounted automatically
1069
+ * - If an object with a `mount` property is passed, the editor will be mounted to that element
1070
+ * - If a function is passed, it will be called with the editor's element, which should place the editor within the document
1071
+ */
1072
+ element: Element | {
1073
+ mount: HTMLElement;
1074
+ } | ((editor: HTMLElement) => void) | null;
1071
1075
  /**
1072
1076
  * The content of the editor (HTML, JSON, or a JSON array)
1073
1077
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-drag-handle-vue-2",
3
3
  "description": "drag handle extension for tiptap with vue 2",
4
- "version": "3.5.2",
4
+ "version": "3.6.0",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -37,16 +37,16 @@
37
37
  ],
38
38
  "peerDependencies": {
39
39
  "vue": "^2.0.0",
40
- "@tiptap/extension-drag-handle": "^3.5.2",
41
- "@tiptap/pm": "^3.5.2",
42
- "@tiptap/vue-2": "^3.5.2"
40
+ "@tiptap/extension-drag-handle": "^3.6.0",
41
+ "@tiptap/pm": "^3.6.0",
42
+ "@tiptap/vue-2": "^3.6.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "vue": "^2.0.0",
46
46
  "vue-ts-types": "1.6.2",
47
- "@tiptap/extension-drag-handle": "^3.5.2",
48
- "@tiptap/pm": "^3.5.2",
49
- "@tiptap/vue-2": "^3.5.2"
47
+ "@tiptap/extension-drag-handle": "^3.6.0",
48
+ "@tiptap/pm": "^3.6.0",
49
+ "@tiptap/vue-2": "^3.6.0"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup",