@tiptap/vue-2 3.0.1 → 3.0.2-beta.0

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.
@@ -49,7 +49,10 @@ interface BubbleMenuPluginProps {
49
49
  to: number;
50
50
  }) => boolean) | null;
51
51
  /**
52
- * FloatingUI options.
52
+ * The options for the bubble menu. Those are passed to Floating UI and include options for the placement, offset, flip, shift, arrow, size, autoPlacement,
53
+ * hide, and inline middlewares.
54
+ * @default {}
55
+ * @see https://floating-ui.com/docs/computePosition#options
53
56
  */
54
57
  options?: {
55
58
  strategy?: 'absolute' | 'fixed';
@@ -108,7 +111,10 @@ interface FloatingMenuPluginProps {
108
111
  to: number;
109
112
  }) => boolean) | null;
110
113
  /**
111
- * FloatingUI options.
114
+ * The options for the floating menu. Those are passed to Floating UI and include options for the placement, offset, flip, shift, arrow, size, autoPlacement,
115
+ * hide, and inline middlewares.
116
+ * @default {}
117
+ * @see https://floating-ui.com/docs/computePosition#options
112
118
  */
113
119
  options?: {
114
120
  strategy?: 'absolute' | 'fixed';
@@ -49,7 +49,10 @@ interface BubbleMenuPluginProps {
49
49
  to: number;
50
50
  }) => boolean) | null;
51
51
  /**
52
- * FloatingUI options.
52
+ * The options for the bubble menu. Those are passed to Floating UI and include options for the placement, offset, flip, shift, arrow, size, autoPlacement,
53
+ * hide, and inline middlewares.
54
+ * @default {}
55
+ * @see https://floating-ui.com/docs/computePosition#options
53
56
  */
54
57
  options?: {
55
58
  strategy?: 'absolute' | 'fixed';
@@ -108,7 +111,10 @@ interface FloatingMenuPluginProps {
108
111
  to: number;
109
112
  }) => boolean) | null;
110
113
  /**
111
- * FloatingUI options.
114
+ * The options for the floating menu. Those are passed to Floating UI and include options for the placement, offset, flip, shift, arrow, size, autoPlacement,
115
+ * hide, and inline middlewares.
116
+ * @default {}
117
+ * @see https://floating-ui.com/docs/computePosition#options
112
118
  */
113
119
  options?: {
114
120
  strategy?: 'absolute' | 'fixed';
@@ -1885,6 +1885,7 @@ var BubbleMenu = Extension.create({
1885
1885
  editor: this.editor,
1886
1886
  element: this.options.element,
1887
1887
  updateDelay: this.options.updateDelay,
1888
+ options: this.options.options,
1888
1889
  shouldShow: this.options.shouldShow
1889
1890
  })
1890
1891
  ];