@underverse-ui/underverse 1.0.110 → 1.0.112
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/index.cjs +17 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -7425,7 +7425,7 @@ var Combobox = ({
|
|
|
7425
7425
|
useShadCNAnimations();
|
|
7426
7426
|
const inputRef = React24.useRef(null);
|
|
7427
7427
|
const optionsViewportRef = React24.useRef(null);
|
|
7428
|
-
useOverlayScrollbarTarget(optionsViewportRef, { enabled: useOverlayScrollbar && !virtualized });
|
|
7428
|
+
useOverlayScrollbarTarget(optionsViewportRef, { enabled: open && useOverlayScrollbar && !virtualized });
|
|
7429
7429
|
const autoId = (0, import_react15.useId)();
|
|
7430
7430
|
const resolvedId = id ? String(id) : `combobox-${autoId}`;
|
|
7431
7431
|
const labelId = label ? `${resolvedId}-label` : void 0;
|
|
@@ -15763,7 +15763,7 @@ var MultiCombobox = ({
|
|
|
15763
15763
|
const inputRef = React39.useRef(null);
|
|
15764
15764
|
const listRef = React39.useRef([]);
|
|
15765
15765
|
const optionsListRef = React39.useRef(null);
|
|
15766
|
-
useOverlayScrollbarTarget(optionsListRef, { enabled: useOverlayScrollbar && !virtualized });
|
|
15766
|
+
useOverlayScrollbarTarget(optionsListRef, { enabled: open && useOverlayScrollbar && !virtualized });
|
|
15767
15767
|
const triggerRef = React39.useRef(null);
|
|
15768
15768
|
useShadCNAnimations();
|
|
15769
15769
|
const normalizedOptions = React39.useMemo(
|
|
@@ -24099,9 +24099,12 @@ var ClipboardImages = import_core2.Extension.create({
|
|
|
24099
24099
|
for (const file of files) {
|
|
24100
24100
|
if (file.size > options.maxFileSize) continue;
|
|
24101
24101
|
if (options.allowedMimeTypes.length > 0 && !options.allowedMimeTypes.includes(file.type)) continue;
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
|
|
24102
|
+
try {
|
|
24103
|
+
const src = await resolveImageSrc(file, options);
|
|
24104
|
+
editor.chain().focus().setImage({ src, alt: file.name }).run();
|
|
24105
|
+
editor.commands.createParagraphNear();
|
|
24106
|
+
} catch {
|
|
24107
|
+
}
|
|
24105
24108
|
}
|
|
24106
24109
|
};
|
|
24107
24110
|
return [
|
|
@@ -32429,12 +32432,15 @@ function useTableRowResize({
|
|
|
32429
32432
|
tr.setMeta("addToHistory", false);
|
|
32430
32433
|
editor.view.dispatch(tr);
|
|
32431
32434
|
state.rowNode = editor.view.state.doc.nodeAt(state.rowPos) ?? state.rowNode;
|
|
32432
|
-
const
|
|
32433
|
-
if (
|
|
32434
|
-
|
|
32435
|
-
|
|
32436
|
-
|
|
32437
|
-
|
|
32435
|
+
const rowIndex = state.rowElement.rowIndex;
|
|
32436
|
+
if (rowIndex >= 0) {
|
|
32437
|
+
const refreshedRow = state.tableElement.rows.item(rowIndex);
|
|
32438
|
+
if (refreshedRow instanceof HTMLTableRowElement) {
|
|
32439
|
+
state.rowElement = refreshedRow;
|
|
32440
|
+
const refreshedCell = refreshedRow.cells.item(state.cellIndex);
|
|
32441
|
+
if (refreshedCell instanceof HTMLTableCellElement) {
|
|
32442
|
+
state.cellElement = refreshedCell;
|
|
32443
|
+
}
|
|
32438
32444
|
}
|
|
32439
32445
|
}
|
|
32440
32446
|
document.body.style.cursor = "row-resize";
|
|
@@ -32794,9 +32800,7 @@ function useUEditorTableInteractions(editor) {
|
|
|
32794
32800
|
document.addEventListener("selectionchange", handleSelectionChange);
|
|
32795
32801
|
surface?.addEventListener("scroll", handleActiveCellLayoutChange, { passive: true });
|
|
32796
32802
|
window.addEventListener("resize", handleActiveCellLayoutChange);
|
|
32797
|
-
window.addEventListener("mousemove", handlePointerMove);
|
|
32798
32803
|
document.addEventListener("pointermove", handlePointerMove);
|
|
32799
|
-
window.addEventListener("mouseup", handlePointerUp);
|
|
32800
32804
|
document.addEventListener("pointerup", handlePointerUp);
|
|
32801
32805
|
window.addEventListener("blur", handleWindowBlur);
|
|
32802
32806
|
editor.on("selectionUpdate", syncActiveTableCellFromSelection);
|
|
@@ -32813,9 +32817,7 @@ function useUEditorTableInteractions(editor) {
|
|
|
32813
32817
|
document.removeEventListener("selectionchange", handleSelectionChange);
|
|
32814
32818
|
surface?.removeEventListener("scroll", handleActiveCellLayoutChange);
|
|
32815
32819
|
window.removeEventListener("resize", handleActiveCellLayoutChange);
|
|
32816
|
-
window.removeEventListener("mousemove", handlePointerMove);
|
|
32817
32820
|
document.removeEventListener("pointermove", handlePointerMove);
|
|
32818
|
-
window.removeEventListener("mouseup", handlePointerUp);
|
|
32819
32821
|
document.removeEventListener("pointerup", handlePointerUp);
|
|
32820
32822
|
window.removeEventListener("blur", handleWindowBlur);
|
|
32821
32823
|
editor.off("selectionUpdate", syncActiveTableCellFromSelection);
|