@tiptap/extension-bubble-menu
Advanced tools
Comparing version 2.0.0-beta.4 to 2.0.0-beta.5
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-beta.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bubble-menu@2.0.0-beta.4...@tiptap/extension-bubble-menu@2.0.0-beta.5) (2021-04-01) | ||
**Note:** Version bump only for package @tiptap/extension-bubble-menu | ||
# [2.0.0-beta.4](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bubble-menu@2.0.0-beta.3...@tiptap/extension-bubble-menu@2.0.0-beta.4) (2021-04-01) | ||
@@ -8,0 +16,0 @@ |
@@ -25,2 +25,3 @@ import { Editor } from '@tiptap/core'; | ||
focusHandler: () => void; | ||
resizeHandler: () => void; | ||
blurHandler: ({ event }: { | ||
@@ -27,0 +28,0 @@ event: FocusEvent; |
@@ -84,2 +84,7 @@ 'use strict'; | ||
}; | ||
this.resizeHandler = () => { | ||
if (this.isActive) { | ||
this.update(this.editor.view); | ||
} | ||
}; | ||
this.blurHandler = ({ event }) => { | ||
@@ -104,2 +109,3 @@ var _a; | ||
this.editor.on('blur', this.blurHandler); | ||
this.editor.on('resize', this.resizeHandler); | ||
this.render(); | ||
@@ -152,2 +158,3 @@ } | ||
this.editor.off('blur', this.blurHandler); | ||
this.editor.off('resize', this.resizeHandler); | ||
} | ||
@@ -154,0 +161,0 @@ } |
@@ -80,2 +80,7 @@ import { Extension } from '@tiptap/core'; | ||
}; | ||
this.resizeHandler = () => { | ||
if (this.isActive) { | ||
this.update(this.editor.view); | ||
} | ||
}; | ||
this.blurHandler = ({ event }) => { | ||
@@ -100,2 +105,3 @@ var _a; | ||
this.editor.on('blur', this.blurHandler); | ||
this.editor.on('resize', this.resizeHandler); | ||
this.render(); | ||
@@ -148,2 +154,3 @@ } | ||
this.editor.off('blur', this.blurHandler); | ||
this.editor.off('resize', this.resizeHandler); | ||
} | ||
@@ -150,0 +157,0 @@ } |
@@ -83,2 +83,7 @@ (function (global, factory) { | ||
}; | ||
this.resizeHandler = () => { | ||
if (this.isActive) { | ||
this.update(this.editor.view); | ||
} | ||
}; | ||
this.blurHandler = ({ event }) => { | ||
@@ -103,2 +108,3 @@ var _a; | ||
this.editor.on('blur', this.blurHandler); | ||
this.editor.on('resize', this.resizeHandler); | ||
this.render(); | ||
@@ -151,2 +157,3 @@ } | ||
this.editor.off('blur', this.blurHandler); | ||
this.editor.off('resize', this.resizeHandler); | ||
} | ||
@@ -153,0 +160,0 @@ } |
{ | ||
"name": "@tiptap/extension-bubble-menu", | ||
"description": "bubble-menu extension for tiptap", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.0-beta.5", | ||
"homepage": "https://tiptap.dev", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "95642d979c27742a3e7b6a28059939d09fd1fbc4" | ||
"gitHead": "17726770d25b280f46da7608daf9f373afc3c73c" | ||
} |
@@ -48,2 +48,3 @@ import { Editor } from '@tiptap/core' | ||
this.editor.on('blur', this.blurHandler) | ||
this.editor.on('resize', this.resizeHandler) | ||
this.render() | ||
@@ -61,2 +62,8 @@ } | ||
resizeHandler = () => { | ||
if (this.isActive) { | ||
this.update(this.editor.view) | ||
} | ||
} | ||
blurHandler = ({ event }: { event: FocusEvent }) => { | ||
@@ -142,2 +149,3 @@ if (this.preventHide) { | ||
this.editor.off('blur', this.blurHandler) | ||
this.editor.off('resize', this.resizeHandler) | ||
} | ||
@@ -144,0 +152,0 @@ } |
Sorry, the diff of this file is too big to display
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
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
515128
1160