@tiptap/vue-2 3.0.4 → 3.0.5

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.
@@ -39,7 +39,7 @@ interface BubbleMenuPluginProps {
39
39
  * A function that determines whether the menu should be shown or not.
40
40
  * If this function returns `false`, the menu will be hidden, otherwise it will be shown.
41
41
  */
42
- shouldShow: ((props: {
42
+ shouldShow?: ((props: {
43
43
  editor: Editor;
44
44
  element: HTMLElement;
45
45
  view: EditorView;
@@ -102,7 +102,7 @@ interface FloatingMenuPluginProps {
102
102
  * A function that determines whether the menu should be shown or not.
103
103
  * If this function returns `false`, the menu will be hidden, otherwise it will be shown.
104
104
  */
105
- shouldShow: ((props: {
105
+ shouldShow?: ((props: {
106
106
  editor: Editor;
107
107
  view: EditorView;
108
108
  state: EditorState;
@@ -39,7 +39,7 @@ interface BubbleMenuPluginProps {
39
39
  * A function that determines whether the menu should be shown or not.
40
40
  * If this function returns `false`, the menu will be hidden, otherwise it will be shown.
41
41
  */
42
- shouldShow: ((props: {
42
+ shouldShow?: ((props: {
43
43
  editor: Editor;
44
44
  element: HTMLElement;
45
45
  view: EditorView;
@@ -102,7 +102,7 @@ interface FloatingMenuPluginProps {
102
102
  * A function that determines whether the menu should be shown or not.
103
103
  * If this function returns `false`, the menu will be hidden, otherwise it will be shown.
104
104
  */
105
- shouldShow: ((props: {
105
+ shouldShow?: ((props: {
106
106
  editor: Editor;
107
107
  view: EditorView;
108
108
  state: EditorState;