@tiptap/extension-drag-handle-vue-2 3.0.0-beta.19 → 3.0.0-beta.21
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 +31 -0
- package/dist/index.d.ts +31 -0
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1136,6 +1136,18 @@ interface EditorOptions {
|
|
|
1136
1136
|
* @default false
|
|
1137
1137
|
*/
|
|
1138
1138
|
emitContentError: boolean;
|
|
1139
|
+
/**
|
|
1140
|
+
* Enable a lazy-loaded Prosemirror DevTools integration.
|
|
1141
|
+
*
|
|
1142
|
+
* Requires having the `prosemirror-dev-tools` npm package installed.
|
|
1143
|
+
* @type boolean
|
|
1144
|
+
* @default false
|
|
1145
|
+
* @example
|
|
1146
|
+
* ```js
|
|
1147
|
+
* enableDevTools: true
|
|
1148
|
+
* ```
|
|
1149
|
+
*/
|
|
1150
|
+
enableDevTools: boolean;
|
|
1139
1151
|
/**
|
|
1140
1152
|
* Called before the editor is constructed.
|
|
1141
1153
|
*/
|
|
@@ -2390,6 +2402,25 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2390
2402
|
* Remove the editor from the DOM, but still allow remounting at a different point in time
|
|
2391
2403
|
*/
|
|
2392
2404
|
unmount(): void;
|
|
2405
|
+
/**
|
|
2406
|
+
*
|
|
2407
|
+
* @returns
|
|
2408
|
+
*/
|
|
2409
|
+
/**
|
|
2410
|
+
* Applies ProseMirror dev tools to the editor instance if enabled and running in a browser environment.
|
|
2411
|
+
*
|
|
2412
|
+
* This method dynamically imports the `prosemirror-dev-tools` package and applies it to the current
|
|
2413
|
+
* editor view. If the dev tools are not installed, a warning is logged to the console.
|
|
2414
|
+
*
|
|
2415
|
+
* @private
|
|
2416
|
+
* @remarks
|
|
2417
|
+
* - Dev tools are only applied if `this.options.enableDevTools` is `true` and the code is running in a browser.
|
|
2418
|
+
* - If the editor view is not available, the dev tools are not applied.
|
|
2419
|
+
* - If the `prosemirror-dev-tools` package is missing, a warning is shown in the console.
|
|
2420
|
+
*
|
|
2421
|
+
* @returns {void}
|
|
2422
|
+
*/
|
|
2423
|
+
private applyDevTools;
|
|
2393
2424
|
/**
|
|
2394
2425
|
* Returns the editor storage.
|
|
2395
2426
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1136,6 +1136,18 @@ interface EditorOptions {
|
|
|
1136
1136
|
* @default false
|
|
1137
1137
|
*/
|
|
1138
1138
|
emitContentError: boolean;
|
|
1139
|
+
/**
|
|
1140
|
+
* Enable a lazy-loaded Prosemirror DevTools integration.
|
|
1141
|
+
*
|
|
1142
|
+
* Requires having the `prosemirror-dev-tools` npm package installed.
|
|
1143
|
+
* @type boolean
|
|
1144
|
+
* @default false
|
|
1145
|
+
* @example
|
|
1146
|
+
* ```js
|
|
1147
|
+
* enableDevTools: true
|
|
1148
|
+
* ```
|
|
1149
|
+
*/
|
|
1150
|
+
enableDevTools: boolean;
|
|
1139
1151
|
/**
|
|
1140
1152
|
* Called before the editor is constructed.
|
|
1141
1153
|
*/
|
|
@@ -2390,6 +2402,25 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2390
2402
|
* Remove the editor from the DOM, but still allow remounting at a different point in time
|
|
2391
2403
|
*/
|
|
2392
2404
|
unmount(): void;
|
|
2405
|
+
/**
|
|
2406
|
+
*
|
|
2407
|
+
* @returns
|
|
2408
|
+
*/
|
|
2409
|
+
/**
|
|
2410
|
+
* Applies ProseMirror dev tools to the editor instance if enabled and running in a browser environment.
|
|
2411
|
+
*
|
|
2412
|
+
* This method dynamically imports the `prosemirror-dev-tools` package and applies it to the current
|
|
2413
|
+
* editor view. If the dev tools are not installed, a warning is logged to the console.
|
|
2414
|
+
*
|
|
2415
|
+
* @private
|
|
2416
|
+
* @remarks
|
|
2417
|
+
* - Dev tools are only applied if `this.options.enableDevTools` is `true` and the code is running in a browser.
|
|
2418
|
+
* - If the editor view is not available, the dev tools are not applied.
|
|
2419
|
+
* - If the `prosemirror-dev-tools` package is missing, a warning is shown in the console.
|
|
2420
|
+
*
|
|
2421
|
+
* @returns {void}
|
|
2422
|
+
*/
|
|
2423
|
+
private applyDevTools;
|
|
2393
2424
|
/**
|
|
2394
2425
|
* Returns the editor storage.
|
|
2395
2426
|
*/
|
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.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.21",
|
|
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.0.0-beta.
|
|
41
|
-
"@tiptap/pm": "3.0.0-beta.
|
|
42
|
-
"@tiptap/vue-2": "3.0.0-beta.
|
|
40
|
+
"@tiptap/extension-drag-handle": "3.0.0-beta.21",
|
|
41
|
+
"@tiptap/pm": "3.0.0-beta.21",
|
|
42
|
+
"@tiptap/vue-2": "3.0.0-beta.21"
|
|
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.0.0-beta.
|
|
48
|
-
"@tiptap/pm": "3.0.0-beta.
|
|
49
|
-
"@tiptap/vue-2": "3.0.0-beta.
|
|
47
|
+
"@tiptap/extension-drag-handle": "3.0.0-beta.21",
|
|
48
|
+
"@tiptap/pm": "3.0.0-beta.21",
|
|
49
|
+
"@tiptap/vue-2": "3.0.0-beta.21"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup",
|