@tiptap/vue-2 3.4.6 → 3.5.1

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.4.6",
4
+ "version": "3.5.1",
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.4.6",
47
- "@tiptap/pm": "^3.4.6"
46
+ "@tiptap/core": "^3.5.1",
47
+ "@tiptap/pm": "^3.5.1"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@tiptap/extension-bubble-menu": "^3.4.6",
51
- "@tiptap/extension-floating-menu": "^3.4.6"
50
+ "@tiptap/extension-bubble-menu": "^3.5.1",
51
+ "@tiptap/extension-floating-menu": "^3.5.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "vue": "^2.6.0",
55
- "@tiptap/core": "^3.4.6",
56
- "@tiptap/pm": "^3.4.6"
55
+ "@tiptap/core": "^3.5.1",
56
+ "@tiptap/pm": "^3.5.1"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",
@@ -8,6 +8,7 @@ export interface BubbleMenuInterface extends Vue {
8
8
  editor: BubbleMenuPluginProps['editor']
9
9
  updateDelay: BubbleMenuPluginProps['updateDelay']
10
10
  resizeDelay: BubbleMenuPluginProps['resizeDelay']
11
+ appendTo: BubbleMenuPluginProps['appendTo']
11
12
  shouldShow: BubbleMenuPluginProps['shouldShow']
12
13
  getReferencedVirtualElement: BubbleMenuPluginProps['getReferencedVirtualElement']
13
14
  options: BubbleMenuPluginProps['options']
@@ -40,6 +41,11 @@ export const BubbleMenu: Component = {
40
41
  type: Number as PropType<BubbleMenuPluginProps['resizeDelay']>,
41
42
  },
42
43
 
44
+ appendTo: {
45
+ type: Object as PropType<BubbleMenuPluginProps['appendTo']>,
46
+ default: undefined,
47
+ },
48
+
43
49
  shouldShow: {
44
50
  type: Function as PropType<Exclude<BubbleMenuPluginProps['shouldShow'], null>>,
45
51
  default: null,
@@ -68,6 +74,7 @@ export const BubbleMenu: Component = {
68
74
  editor,
69
75
  element: this.$el as HTMLElement,
70
76
  pluginKey: this.pluginKey,
77
+ appendTo: this.appendTo,
71
78
  shouldShow: this.shouldShow,
72
79
  getReferencedVirtualElement: this.getReferencedVirtualElement,
73
80
  }),
@@ -78,7 +85,7 @@ export const BubbleMenu: Component = {
78
85
  },
79
86
 
80
87
  render(this: BubbleMenuInterface, createElement: CreateElement) {
81
- return createElement('div', { style: { visibility: 'hidden' } }, this.$slots.default)
88
+ return createElement('div', {}, this.$slots.default)
82
89
  },
83
90
 
84
91
  beforeDestroy(this: BubbleMenuInterface) {
@@ -7,6 +7,7 @@ export interface FloatingMenuInterface extends Vue {
7
7
  pluginKey: FloatingMenuPluginProps['pluginKey']
8
8
  options: FloatingMenuPluginProps['options']
9
9
  editor: FloatingMenuPluginProps['editor']
10
+ appendTo: FloatingMenuPluginProps['appendTo']
10
11
  shouldShow: FloatingMenuPluginProps['shouldShow']
11
12
  }
12
13
 
@@ -29,6 +30,11 @@ export const FloatingMenu: Component = {
29
30
  default: () => ({}),
30
31
  },
31
32
 
33
+ appendTo: {
34
+ type: Object as PropType<FloatingMenuPluginProps['appendTo']>,
35
+ default: undefined,
36
+ },
37
+
32
38
  shouldShow: {
33
39
  type: Function as PropType<Exclude<FloatingMenuPluginProps['shouldShow'], null>>,
34
40
  default: null,
@@ -55,6 +61,7 @@ export const FloatingMenu: Component = {
55
61
  editor,
56
62
  element: this.$el as HTMLElement,
57
63
  options: this.options,
64
+ appendTo: this.appendTo,
58
65
  shouldShow: this.shouldShow,
59
66
  }),
60
67
  )
@@ -64,7 +71,7 @@ export const FloatingMenu: Component = {
64
71
  },
65
72
 
66
73
  render(this: FloatingMenuInterface, createElement: CreateElement) {
67
- return createElement('div', { style: { visibility: 'hidden' } }, this.$slots.default)
74
+ return createElement('div', {}, this.$slots.default)
68
75
  },
69
76
 
70
77
  beforeDestroy(this: FloatingMenuInterface) {