@tiptap/extension-drag-handle-vue-2 3.0.0-beta.24 → 3.0.0-beta.26

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
@@ -1139,7 +1139,7 @@ interface EditorOptions {
1139
1139
  /**
1140
1140
  * Enable a lazy-loaded Prosemirror DevTools integration.
1141
1141
  *
1142
- * Requires having the `prosemirror-dev-tools` npm package installed.
1142
+ * Requires having the `prosemirror-dev-toolkit` npm package installed.
1143
1143
  * @type boolean
1144
1144
  * @default false
1145
1145
  * @example
@@ -1360,8 +1360,9 @@ interface MarkViewRendererProps {
1360
1360
  * The HTML attributes that should be added to the mark's DOM element.
1361
1361
  */
1362
1362
  HTMLAttributes: Record<string, any>;
1363
+ updateAttributes: (attrs: Record<string, any>) => void;
1363
1364
  }
1364
- type MarkViewRenderer = (props: MarkViewRendererProps) => MarkView;
1365
+ type MarkViewRenderer<Props = MarkViewRendererProps> = (props: Props) => MarkView;
1365
1366
  type UnionCommands<T = Command> = UnionToIntersection<ValuesOf<Pick<Commands<T>, KeysWithTypeOf<Commands<T>, object>>>>;
1366
1367
  type RawCommands = {
1367
1368
  [Item in keyof UnionCommands]: UnionCommands<Command>[Item];
@@ -2409,14 +2410,14 @@ declare class Editor extends EventEmitter<EditorEvents> {
2409
2410
  /**
2410
2411
  * Applies ProseMirror dev tools to the editor instance if enabled and running in a browser environment.
2411
2412
  *
2412
- * This method dynamically imports the `prosemirror-dev-tools` package and applies it to the current
2413
+ * This method dynamically imports the `prosemirror-dev-toolkit` package and applies it to the current
2413
2414
  * editor view. If the dev tools are not installed, a warning is logged to the console.
2414
2415
  *
2415
2416
  * @private
2416
2417
  * @remarks
2417
2418
  * - Dev tools are only applied if `this.options.enableDevTools` is `true` and the code is running in a browser.
2418
2419
  * - 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
+ * - If the `prosemirror-dev-toolkit` package is missing, a warning is shown in the console.
2420
2421
  *
2421
2422
  * @returns {void}
2422
2423
  */
package/dist/index.d.ts CHANGED
@@ -1139,7 +1139,7 @@ interface EditorOptions {
1139
1139
  /**
1140
1140
  * Enable a lazy-loaded Prosemirror DevTools integration.
1141
1141
  *
1142
- * Requires having the `prosemirror-dev-tools` npm package installed.
1142
+ * Requires having the `prosemirror-dev-toolkit` npm package installed.
1143
1143
  * @type boolean
1144
1144
  * @default false
1145
1145
  * @example
@@ -1360,8 +1360,9 @@ interface MarkViewRendererProps {
1360
1360
  * The HTML attributes that should be added to the mark's DOM element.
1361
1361
  */
1362
1362
  HTMLAttributes: Record<string, any>;
1363
+ updateAttributes: (attrs: Record<string, any>) => void;
1363
1364
  }
1364
- type MarkViewRenderer = (props: MarkViewRendererProps) => MarkView;
1365
+ type MarkViewRenderer<Props = MarkViewRendererProps> = (props: Props) => MarkView;
1365
1366
  type UnionCommands<T = Command> = UnionToIntersection<ValuesOf<Pick<Commands<T>, KeysWithTypeOf<Commands<T>, object>>>>;
1366
1367
  type RawCommands = {
1367
1368
  [Item in keyof UnionCommands]: UnionCommands<Command>[Item];
@@ -2409,14 +2410,14 @@ declare class Editor extends EventEmitter<EditorEvents> {
2409
2410
  /**
2410
2411
  * Applies ProseMirror dev tools to the editor instance if enabled and running in a browser environment.
2411
2412
  *
2412
- * This method dynamically imports the `prosemirror-dev-tools` package and applies it to the current
2413
+ * This method dynamically imports the `prosemirror-dev-toolkit` package and applies it to the current
2413
2414
  * editor view. If the dev tools are not installed, a warning is logged to the console.
2414
2415
  *
2415
2416
  * @private
2416
2417
  * @remarks
2417
2418
  * - Dev tools are only applied if `this.options.enableDevTools` is `true` and the code is running in a browser.
2418
2419
  * - 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
+ * - If the `prosemirror-dev-toolkit` package is missing, a warning is shown in the console.
2420
2421
  *
2421
2422
  * @returns {void}
2422
2423
  */
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.24",
4
+ "version": "3.0.0-beta.26",
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/pm": "3.0.0-beta.24",
41
- "@tiptap/vue-2": "3.0.0-beta.24",
42
- "@tiptap/extension-drag-handle": "3.0.0-beta.24"
40
+ "@tiptap/extension-drag-handle": "3.0.0-beta.26",
41
+ "@tiptap/pm": "3.0.0-beta.26",
42
+ "@tiptap/vue-2": "3.0.0-beta.26"
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.24",
48
- "@tiptap/pm": "3.0.0-beta.24",
49
- "@tiptap/vue-2": "3.0.0-beta.24"
47
+ "@tiptap/extension-drag-handle": "3.0.0-beta.26",
48
+ "@tiptap/pm": "3.0.0-beta.26",
49
+ "@tiptap/vue-2": "3.0.0-beta.26"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup",