@underverse-ui/underverse 0.2.80 → 0.2.82
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/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +55 -8
package/dist/index.js
CHANGED
|
@@ -19755,6 +19755,16 @@ var BubbleMenuContent = ({
|
|
|
19755
19755
|
useEffect27(() => {
|
|
19756
19756
|
onKeepOpenChange?.(showLinkInput);
|
|
19757
19757
|
}, [onKeepOpenChange, showLinkInput]);
|
|
19758
|
+
useEffect27(() => {
|
|
19759
|
+
if (!showLinkInput) return;
|
|
19760
|
+
const close2 = () => setShowLinkInput(false);
|
|
19761
|
+
editor.on("selectionUpdate", close2);
|
|
19762
|
+
editor.on("blur", close2);
|
|
19763
|
+
return () => {
|
|
19764
|
+
editor.off("selectionUpdate", close2);
|
|
19765
|
+
editor.off("blur", close2);
|
|
19766
|
+
};
|
|
19767
|
+
}, [editor, showLinkInput]);
|
|
19758
19768
|
if (showLinkInput) {
|
|
19759
19769
|
return /* @__PURE__ */ jsx73(
|
|
19760
19770
|
LinkInput,
|