@underverse-ui/underverse 0.2.80 → 0.2.81
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 +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19862,6 +19862,16 @@ var BubbleMenuContent = ({
|
|
|
19862
19862
|
(0, import_react45.useEffect)(() => {
|
|
19863
19863
|
onKeepOpenChange?.(showLinkInput);
|
|
19864
19864
|
}, [onKeepOpenChange, showLinkInput]);
|
|
19865
|
+
(0, import_react45.useEffect)(() => {
|
|
19866
|
+
if (!showLinkInput) return;
|
|
19867
|
+
const close2 = () => setShowLinkInput(false);
|
|
19868
|
+
editor.on("selectionUpdate", close2);
|
|
19869
|
+
editor.on("blur", close2);
|
|
19870
|
+
return () => {
|
|
19871
|
+
editor.off("selectionUpdate", close2);
|
|
19872
|
+
editor.off("blur", close2);
|
|
19873
|
+
};
|
|
19874
|
+
}, [editor, showLinkInput]);
|
|
19865
19875
|
if (showLinkInput) {
|
|
19866
19876
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
19867
19877
|
LinkInput,
|