@tiptap/extension-drag-handle-vue-2 3.0.0-beta.25 → 3.0.0-beta.27
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 +2 -32
- package/dist/index.d.ts +2 -32
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1136,18 +1136,6 @@ 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-toolkit` npm package installed.
|
|
1143
|
-
* @type boolean
|
|
1144
|
-
* @default false
|
|
1145
|
-
* @example
|
|
1146
|
-
* ```js
|
|
1147
|
-
* enableDevTools: true
|
|
1148
|
-
* ```
|
|
1149
|
-
*/
|
|
1150
|
-
enableDevTools: boolean;
|
|
1151
1139
|
/**
|
|
1152
1140
|
* Called before the editor is constructed.
|
|
1153
1141
|
*/
|
|
@@ -1360,8 +1348,9 @@ interface MarkViewRendererProps {
|
|
|
1360
1348
|
* The HTML attributes that should be added to the mark's DOM element.
|
|
1361
1349
|
*/
|
|
1362
1350
|
HTMLAttributes: Record<string, any>;
|
|
1351
|
+
updateAttributes: (attrs: Record<string, any>) => void;
|
|
1363
1352
|
}
|
|
1364
|
-
type MarkViewRenderer = (props:
|
|
1353
|
+
type MarkViewRenderer<Props = MarkViewRendererProps> = (props: Props) => MarkView;
|
|
1365
1354
|
type UnionCommands<T = Command> = UnionToIntersection<ValuesOf<Pick<Commands<T>, KeysWithTypeOf<Commands<T>, object>>>>;
|
|
1366
1355
|
type RawCommands = {
|
|
1367
1356
|
[Item in keyof UnionCommands]: UnionCommands<Command>[Item];
|
|
@@ -2402,25 +2391,6 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2402
2391
|
* Remove the editor from the DOM, but still allow remounting at a different point in time
|
|
2403
2392
|
*/
|
|
2404
2393
|
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-toolkit` 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-toolkit` package is missing, a warning is shown in the console.
|
|
2420
|
-
*
|
|
2421
|
-
* @returns {void}
|
|
2422
|
-
*/
|
|
2423
|
-
private applyDevTools;
|
|
2424
2394
|
/**
|
|
2425
2395
|
* Returns the editor storage.
|
|
2426
2396
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1136,18 +1136,6 @@ 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-toolkit` npm package installed.
|
|
1143
|
-
* @type boolean
|
|
1144
|
-
* @default false
|
|
1145
|
-
* @example
|
|
1146
|
-
* ```js
|
|
1147
|
-
* enableDevTools: true
|
|
1148
|
-
* ```
|
|
1149
|
-
*/
|
|
1150
|
-
enableDevTools: boolean;
|
|
1151
1139
|
/**
|
|
1152
1140
|
* Called before the editor is constructed.
|
|
1153
1141
|
*/
|
|
@@ -1360,8 +1348,9 @@ interface MarkViewRendererProps {
|
|
|
1360
1348
|
* The HTML attributes that should be added to the mark's DOM element.
|
|
1361
1349
|
*/
|
|
1362
1350
|
HTMLAttributes: Record<string, any>;
|
|
1351
|
+
updateAttributes: (attrs: Record<string, any>) => void;
|
|
1363
1352
|
}
|
|
1364
|
-
type MarkViewRenderer = (props:
|
|
1353
|
+
type MarkViewRenderer<Props = MarkViewRendererProps> = (props: Props) => MarkView;
|
|
1365
1354
|
type UnionCommands<T = Command> = UnionToIntersection<ValuesOf<Pick<Commands<T>, KeysWithTypeOf<Commands<T>, object>>>>;
|
|
1366
1355
|
type RawCommands = {
|
|
1367
1356
|
[Item in keyof UnionCommands]: UnionCommands<Command>[Item];
|
|
@@ -2402,25 +2391,6 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2402
2391
|
* Remove the editor from the DOM, but still allow remounting at a different point in time
|
|
2403
2392
|
*/
|
|
2404
2393
|
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-toolkit` 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-toolkit` package is missing, a warning is shown in the console.
|
|
2420
|
-
*
|
|
2421
|
-
* @returns {void}
|
|
2422
|
-
*/
|
|
2423
|
-
private applyDevTools;
|
|
2424
2394
|
/**
|
|
2425
2395
|
* Returns the editor storage.
|
|
2426
2396
|
*/
|
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.27",
|
|
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.27",
|
|
41
|
+
"@tiptap/pm": "3.0.0-beta.27",
|
|
42
|
+
"@tiptap/vue-2": "3.0.0-beta.27"
|
|
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.27",
|
|
48
|
+
"@tiptap/pm": "3.0.0-beta.27",
|
|
49
|
+
"@tiptap/vue-2": "3.0.0-beta.27"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup",
|