@tiptap/vue-2 3.10.4 → 3.10.6

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.4",
4
+ "version": "3.10.6",
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.4",
47
- "@tiptap/pm": "^3.10.4"
46
+ "@tiptap/core": "^3.10.6",
47
+ "@tiptap/pm": "^3.10.6"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@tiptap/extension-bubble-menu": "^3.10.4",
51
- "@tiptap/extension-floating-menu": "^3.10.4"
50
+ "@tiptap/extension-bubble-menu": "^3.10.6",
51
+ "@tiptap/extension-floating-menu": "^3.10.6"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "vue": "^2.6.0",
55
- "@tiptap/core": "^3.10.4",
56
- "@tiptap/pm": "^3.10.4"
55
+ "@tiptap/core": "^3.10.6",
56
+ "@tiptap/pm": "^3.10.6"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",
@@ -34,7 +34,7 @@ export const BubbleMenu: Component = {
34
34
 
35
35
  options: {
36
36
  type: Object as PropType<BubbleMenuPluginProps['options']>,
37
- default: {},
37
+ default: () => ({}),
38
38
  },
39
39
 
40
40
  resizeDelay: {
@@ -60,6 +60,10 @@ export const BubbleMenu: Component = {
60
60
  return
61
61
  }
62
62
 
63
+ if (!this.$el) {
64
+ return
65
+ }
66
+
63
67
  ;(this.$el as HTMLElement).style.visibility = 'hidden'
64
68
  ;(this.$el as HTMLElement).style.position = 'absolute'
65
69
 
@@ -49,6 +49,10 @@ export const FloatingMenu: Component = {
49
49
  return
50
50
  }
51
51
 
52
+ if (!this.$el) {
53
+ return
54
+ }
55
+
52
56
  ;(this.$el as HTMLElement).style.visibility = 'hidden'
53
57
  ;(this.$el as HTMLElement).style.position = 'absolute'
54
58