@underverse-ui/underverse 1.0.204 → 1.0.205
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/api-reference.json +1 -1
- package/dist/{EmojiPicker-UN6N7YVB.js → EmojiPicker-BAWP2RAS.js} +4 -4
- package/dist/{chunk-CC3QO2YM.js → chunk-2V6A6PGI.js} +147 -39
- package/dist/chunk-2V6A6PGI.js.map +1 -0
- package/dist/{chunk-QVQTWZ24.js → chunk-7U3Y7R7U.js} +3 -3
- package/dist/{chunk-ZUAIBY2Z.js → chunk-IXEFOLUD.js} +2 -2
- package/dist/{chunk-KFTYWTJR.js → chunk-MJV7ETJM.js} +22 -2
- package/dist/{chunk-KFTYWTJR.js.map → chunk-MJV7ETJM.js.map} +1 -1
- package/dist/{chunk-GSBRTFP2.js → chunk-XJR7E6QB.js} +16 -13
- package/dist/{chunk-GSBRTFP2.js.map → chunk-XJR7E6QB.js.map} +1 -1
- package/dist/{chunk-CKKLFVOY.js → chunk-Z63YNF3N.js} +3 -3
- package/dist/index.cjs +157 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/{menu-bar-6U5S4PS7.js → menu-bar-NDAP3SOR.js} +4 -4
- package/dist/ueditor.cjs +167 -39
- package/dist/ueditor.cjs.map +1 -1
- package/dist/ueditor.d.cts +6 -0
- package/dist/ueditor.d.ts +6 -0
- package/dist/ueditor.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-CC3QO2YM.js.map +0 -1
- /package/dist/{EmojiPicker-UN6N7YVB.js.map → EmojiPicker-BAWP2RAS.js.map} +0 -0
- /package/dist/{chunk-QVQTWZ24.js.map → chunk-7U3Y7R7U.js.map} +0 -0
- /package/dist/{chunk-ZUAIBY2Z.js.map → chunk-IXEFOLUD.js.map} +0 -0
- /package/dist/{chunk-CKKLFVOY.js.map → chunk-Z63YNF3N.js.map} +0 -0
- /package/dist/{menu-bar-6U5S4PS7.js.map → menu-bar-NDAP3SOR.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPanelBorderRadiusClass,
|
|
3
3
|
useUnderverseUIConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MJV7ETJM.js";
|
|
5
5
|
import {
|
|
6
6
|
cn,
|
|
7
7
|
useGlobalI18n
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XJR7E6QB.js";
|
|
9
9
|
|
|
10
10
|
// src/components/Modal.tsx
|
|
11
11
|
import * as React from "react";
|
|
@@ -196,4 +196,4 @@ var Modal_default = Modal;
|
|
|
196
196
|
export {
|
|
197
197
|
Modal_default
|
|
198
198
|
};
|
|
199
|
-
//# sourceMappingURL=chunk-
|
|
199
|
+
//# sourceMappingURL=chunk-7U3Y7R7U.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XJR7E6QB.js";
|
|
4
4
|
|
|
5
5
|
// src/components/emoji-ui.tsx
|
|
6
6
|
import React from "react";
|
|
@@ -71,4 +71,4 @@ export {
|
|
|
71
71
|
getEmojiImageUrl,
|
|
72
72
|
EmojiGridButton
|
|
73
73
|
};
|
|
74
|
-
//# sourceMappingURL=chunk-
|
|
74
|
+
//# sourceMappingURL=chunk-IXEFOLUD.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
mergeRefs,
|
|
6
6
|
setRefValue,
|
|
7
7
|
useSmartTranslations
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XJR7E6QB.js";
|
|
9
9
|
|
|
10
10
|
// src/contexts/UnderverseConfigContext.tsx
|
|
11
11
|
import * as React from "react";
|
|
@@ -2611,6 +2611,25 @@ function resolveEventElement(target) {
|
|
|
2611
2611
|
if (target instanceof Node) return target.parentElement;
|
|
2612
2612
|
return null;
|
|
2613
2613
|
}
|
|
2614
|
+
function isPointOverRenderedText(root, clientX, clientY) {
|
|
2615
|
+
const view = root.ownerDocument.defaultView;
|
|
2616
|
+
if (!view) return false;
|
|
2617
|
+
const walker = root.ownerDocument.createTreeWalker(root, view.NodeFilter.SHOW_TEXT);
|
|
2618
|
+
let textNode = walker.nextNode();
|
|
2619
|
+
while (textNode) {
|
|
2620
|
+
if (textNode.textContent?.length) {
|
|
2621
|
+
const range = root.ownerDocument.createRange();
|
|
2622
|
+
range.selectNodeContents(textNode);
|
|
2623
|
+
const textRects = Array.from(range.getClientRects());
|
|
2624
|
+
range.detach?.();
|
|
2625
|
+
if (textRects.some((rect) => clientX >= rect.left && clientX <= rect.right && clientY >= rect.top && clientY <= rect.bottom)) {
|
|
2626
|
+
return true;
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
textNode = walker.nextNode();
|
|
2630
|
+
}
|
|
2631
|
+
return false;
|
|
2632
|
+
}
|
|
2614
2633
|
function getSelectionTableCell(view) {
|
|
2615
2634
|
const browserSelection = window.getSelection();
|
|
2616
2635
|
const anchorElement = resolveEventElement(browserSelection?.anchorNode ?? null);
|
|
@@ -4437,6 +4456,7 @@ export {
|
|
|
4437
4456
|
UEDITOR_TABLE_LAYOUT_CHANGE_EVENT,
|
|
4438
4457
|
findTableRowNodeInfo,
|
|
4439
4458
|
resolveEventElement,
|
|
4459
|
+
isPointOverRenderedText,
|
|
4440
4460
|
getSelectionTableCell,
|
|
4441
4461
|
isRowResizeHotspot,
|
|
4442
4462
|
isColumnResizeHotspot,
|
|
@@ -4478,4 +4498,4 @@ export {
|
|
|
4478
4498
|
EditorToolbar,
|
|
4479
4499
|
UEDITOR_PROSEMIRROR_CLASS_NAME
|
|
4480
4500
|
};
|
|
4481
|
-
//# sourceMappingURL=chunk-
|
|
4501
|
+
//# sourceMappingURL=chunk-MJV7ETJM.js.map
|