@tiptap/extension-drag-handle-vue-2 3.0.5 → 3.0.7

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
@@ -172,8 +172,13 @@ declare class Mark<Options = any, Storage = any> extends Extendable<Options, Sto
172
172
  mark: Mark;
173
173
  }): boolean;
174
174
  configure(options?: Partial<Options>): Mark<Options, Storage>;
175
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
176
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
175
+ extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
176
+ name: string;
177
+ options: ExtendedOptions;
178
+ storage: ExtendedStorage;
179
+ editor: Editor;
180
+ type: MarkType$1;
181
+ }>)): Mark<ExtendedOptions, ExtendedStorage>;
177
182
  }
178
183
 
179
184
  interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
@@ -460,8 +465,13 @@ declare class Node$1<Options = any, Storage = any> extends Extendable<Options, S
460
465
  */
461
466
  static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node$1<O, S>;
462
467
  configure(options?: Partial<Options>): Node$1<Options, Storage>;
463
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node$1<ExtendedOptions, ExtendedStorage>;
464
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node$1<ExtendedOptions, ExtendedStorage>;
468
+ extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = NodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
469
+ name: string;
470
+ options: ExtendedOptions;
471
+ storage: ExtendedStorage;
472
+ editor: Editor;
473
+ type: NodeType$1;
474
+ }>)): Node$1<ExtendedOptions, ExtendedStorage>;
465
475
  }
466
476
 
467
477
  type PasteRuleMatch = {
package/dist/index.d.ts CHANGED
@@ -172,8 +172,13 @@ declare class Mark<Options = any, Storage = any> extends Extendable<Options, Sto
172
172
  mark: Mark;
173
173
  }): boolean;
174
174
  configure(options?: Partial<Options>): Mark<Options, Storage>;
175
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
176
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<MarkConfig<ExtendedOptions, ExtendedStorage>>): Mark<ExtendedOptions, ExtendedStorage>;
175
+ extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
176
+ name: string;
177
+ options: ExtendedOptions;
178
+ storage: ExtendedStorage;
179
+ editor: Editor;
180
+ type: MarkType$1;
181
+ }>)): Mark<ExtendedOptions, ExtendedStorage>;
177
182
  }
178
183
 
179
184
  interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
@@ -460,8 +465,13 @@ declare class Node$1<Options = any, Storage = any> extends Extendable<Options, S
460
465
  */
461
466
  static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node$1<O, S>;
462
467
  configure(options?: Partial<Options>): Node$1<Options, Storage>;
463
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: () => Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node$1<ExtendedOptions, ExtendedStorage>;
464
- extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig: Partial<NodeConfig<ExtendedOptions, ExtendedStorage>>): Node$1<ExtendedOptions, ExtendedStorage>;
468
+ extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = NodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
469
+ name: string;
470
+ options: ExtendedOptions;
471
+ storage: ExtendedStorage;
472
+ editor: Editor;
473
+ type: NodeType$1;
474
+ }>)): Node$1<ExtendedOptions, ExtendedStorage>;
465
475
  }
466
476
 
467
477
  type PasteRuleMatch = {
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.5",
4
+ "version": "3.0.7",
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.5",
41
- "@tiptap/pm": "^3.0.5",
42
- "@tiptap/vue-2": "^3.0.5"
40
+ "@tiptap/extension-drag-handle": "^3.0.7",
41
+ "@tiptap/pm": "^3.0.7",
42
+ "@tiptap/vue-2": "^3.0.7"
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.5",
48
- "@tiptap/pm": "^3.0.5",
49
- "@tiptap/vue-2": "^3.0.5"
47
+ "@tiptap/extension-drag-handle": "^3.0.7",
48
+ "@tiptap/pm": "^3.0.7",
49
+ "@tiptap/vue-2": "^3.0.7"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup",