@tiptap/vue-2 3.10.7 → 3.10.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/vue-2",
3
3
  "description": "Vue components for tiptap",
4
- "version": "3.10.7",
4
+ "version": "3.10.8",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -43,17 +43,17 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "vue": "^2.7.16",
46
- "@tiptap/core": "^3.10.7",
47
- "@tiptap/pm": "^3.10.7"
46
+ "@tiptap/core": "^3.10.8",
47
+ "@tiptap/pm": "^3.10.8"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@tiptap/extension-bubble-menu": "^3.10.7",
51
- "@tiptap/extension-floating-menu": "^3.10.7"
50
+ "@tiptap/extension-bubble-menu": "^3.10.8",
51
+ "@tiptap/extension-floating-menu": "^3.10.8"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "vue": "^2.6.0",
55
- "@tiptap/core": "^3.10.7",
56
- "@tiptap/pm": "^3.10.7"
55
+ "@tiptap/core": "^3.10.8",
56
+ "@tiptap/pm": "^3.10.8"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",
package/src/Vue.ts ADDED
@@ -0,0 +1,8 @@
1
+ import type { VueConstructor } from 'vue'
2
+ import VueDefault from 'vue'
3
+
4
+ // With nodenext module resolution, TypeScript treats the default import as the module type.
5
+ // We need to explicitly type it as VueConstructor to access static methods like extend and observable.
6
+ // This is necessary because Vue 2's type definitions export Vue as VueConstructor, but nodenext
7
+ // doesn't correctly infer the default export type.
8
+ export const Vue: VueConstructor = VueDefault as unknown as VueConstructor
@@ -2,11 +2,11 @@ import type { DecorationWithType, NodeViewProps, NodeViewRenderer, NodeViewRende
2
2
  import { NodeView } from '@tiptap/core'
3
3
  import type { Node as ProseMirrorNode } from '@tiptap/pm/model'
4
4
  import type { Decoration, DecorationSource, NodeView as ProseMirrorNodeView } from '@tiptap/pm/view'
5
- import Vue from 'vue'
6
- import type { VueConstructor } from 'vue/types/umd'
5
+ import type { VueConstructor } from 'vue'
7
6
  import { booleanProp, functionProp, objectProp } from 'vue-ts-types'
8
7
 
9
8
  import type { Editor } from './Editor.js'
9
+ import { Vue } from './Vue.js'
10
10
  import { VueRenderer } from './VueRenderer.js'
11
11
 
12
12
  export const nodeViewProps = {
@@ -1,5 +1,6 @@
1
- import Vue from 'vue'
2
- import type { VueConstructor } from 'vue/types/umd'
1
+ import type { VueConstructor } from 'vue'
2
+
3
+ import { Vue } from './Vue.js'
3
4
 
4
5
  /**
5
6
  * The VueRenderer class is responsible for rendering a Vue component as a ProseMirror node view.