@tiptap/extension-bubble-menu
Advanced tools
Comparing version 2.0.0-beta.27 to 2.0.0-beta.28
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.28](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bubble-menu@2.0.0-beta.27...@tiptap/extension-bubble-menu@2.0.0-beta.28) (2021-08-13) | ||
### Bug Fixes | ||
* rename key to pluginKey for menus ([89d26f7](https://github.com/ueberdosis/tiptap/commit/89d26f7cba2a115aa342f0ee621f0b65c840dfb8)) | ||
# [2.0.0-beta.27](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bubble-menu@2.0.0-beta.26...@tiptap/extension-bubble-menu@2.0.0-beta.27) (2021-08-12) | ||
@@ -8,0 +19,0 @@ |
@@ -6,3 +6,3 @@ import { Editor } from '@tiptap/core'; | ||
export interface BubbleMenuPluginProps { | ||
key: PluginKey | string; | ||
pluginKey: PluginKey | string; | ||
editor: Editor; | ||
@@ -9,0 +9,0 @@ element: HTMLElement; |
@@ -136,5 +136,5 @@ 'use strict'; | ||
return new prosemirrorState.Plugin({ | ||
key: typeof options.key === 'string' | ||
? new prosemirrorState.PluginKey(options.key) | ||
: options.key, | ||
key: typeof options.pluginKey === 'string' | ||
? new prosemirrorState.PluginKey(options.pluginKey) | ||
: options.pluginKey, | ||
view: view => new BubbleMenuView({ view, ...options }), | ||
@@ -149,3 +149,3 @@ }); | ||
tippyOptions: {}, | ||
key: 'bubbleMenu', | ||
pluginKey: 'bubbleMenu', | ||
shouldShow: null, | ||
@@ -159,3 +159,3 @@ }, | ||
BubbleMenuPlugin({ | ||
key: this.options.key, | ||
pluginKey: this.options.pluginKey, | ||
editor: this.editor, | ||
@@ -162,0 +162,0 @@ element: this.options.element, |
@@ -128,5 +128,5 @@ import { isTextSelection, isNodeSelection, posToDOMRect, Extension } from '@tiptap/core'; | ||
return new Plugin({ | ||
key: typeof options.key === 'string' | ||
? new PluginKey(options.key) | ||
: options.key, | ||
key: typeof options.pluginKey === 'string' | ||
? new PluginKey(options.pluginKey) | ||
: options.pluginKey, | ||
view: view => new BubbleMenuView({ view, ...options }), | ||
@@ -141,3 +141,3 @@ }); | ||
tippyOptions: {}, | ||
key: 'bubbleMenu', | ||
pluginKey: 'bubbleMenu', | ||
shouldShow: null, | ||
@@ -151,3 +151,3 @@ }, | ||
BubbleMenuPlugin({ | ||
key: this.options.key, | ||
pluginKey: this.options.pluginKey, | ||
editor: this.editor, | ||
@@ -154,0 +154,0 @@ element: this.options.element, |
@@ -134,5 +134,5 @@ (function (global, factory) { | ||
return new prosemirrorState.Plugin({ | ||
key: typeof options.key === 'string' | ||
? new prosemirrorState.PluginKey(options.key) | ||
: options.key, | ||
key: typeof options.pluginKey === 'string' | ||
? new prosemirrorState.PluginKey(options.pluginKey) | ||
: options.pluginKey, | ||
view: view => new BubbleMenuView({ view, ...options }), | ||
@@ -147,3 +147,3 @@ }); | ||
tippyOptions: {}, | ||
key: 'bubbleMenu', | ||
pluginKey: 'bubbleMenu', | ||
shouldShow: null, | ||
@@ -157,3 +157,3 @@ }, | ||
BubbleMenuPlugin({ | ||
key: this.options.key, | ||
pluginKey: this.options.pluginKey, | ||
editor: this.editor, | ||
@@ -160,0 +160,0 @@ element: this.options.element, |
{ | ||
"name": "@tiptap/extension-bubble-menu", | ||
"description": "bubble-menu extension for tiptap", | ||
"version": "2.0.0-beta.27", | ||
"version": "2.0.0-beta.28", | ||
"homepage": "https://tiptap.dev", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6547ced826f66a540c30c1dcf9b8add1c97a5ff0" | ||
"gitHead": "bcc823405078273b6ff1bf611f4321fe70d61739" | ||
} |
@@ -12,3 +12,3 @@ import { | ||
export interface BubbleMenuPluginProps { | ||
key: PluginKey | string, | ||
pluginKey: PluginKey | string, | ||
editor: Editor, | ||
@@ -195,7 +195,7 @@ element: HTMLElement, | ||
return new Plugin({ | ||
key: typeof options.key === 'string' | ||
? new PluginKey(options.key) | ||
: options.key, | ||
key: typeof options.pluginKey === 'string' | ||
? new PluginKey(options.pluginKey) | ||
: options.pluginKey, | ||
view: view => new BubbleMenuView({ view, ...options }), | ||
}) | ||
} |
@@ -14,3 +14,3 @@ import { Extension } from '@tiptap/core' | ||
tippyOptions: {}, | ||
key: 'bubbleMenu', | ||
pluginKey: 'bubbleMenu', | ||
shouldShow: null, | ||
@@ -26,3 +26,3 @@ }, | ||
BubbleMenuPlugin({ | ||
key: this.options.key, | ||
pluginKey: this.options.pluginKey, | ||
editor: this.editor, | ||
@@ -29,0 +29,0 @@ element: this.options.element, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69735