@underverse-ui/underverse 1.0.131 → 1.0.133
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 +31 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -6229,12 +6229,12 @@ var Popover = ({
|
|
|
6229
6229
|
top: 0,
|
|
6230
6230
|
left: 0,
|
|
6231
6231
|
transform: "translate3d(0, 0, 0)",
|
|
6232
|
-
zIndex:
|
|
6232
|
+
zIndex: 99999,
|
|
6233
6233
|
visibility: "hidden",
|
|
6234
6234
|
pointerEvents: "none",
|
|
6235
6235
|
willChange: "transform"
|
|
6236
6236
|
},
|
|
6237
|
-
className: "z-
|
|
6237
|
+
className: "z-[99999]",
|
|
6238
6238
|
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
6239
6239
|
"div",
|
|
6240
6240
|
{
|
|
@@ -24123,12 +24123,12 @@ function ThemeToggleHeadless({
|
|
|
24123
24123
|
}
|
|
24124
24124
|
),
|
|
24125
24125
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
|
|
24126
|
-
typeof window !== "undefined" && (0, import_react_dom6.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "fixed inset-0 z-
|
|
24126
|
+
typeof window !== "undefined" && (0, import_react_dom6.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "fixed inset-0 z-[99998]", onClick: () => setIsOpen(false) }), document.body),
|
|
24127
24127
|
typeof window !== "undefined" && dropdownPosition && (0, import_react_dom6.createPortal)(
|
|
24128
24128
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
24129
24129
|
"div",
|
|
24130
24130
|
{
|
|
24131
|
-
className: "z-
|
|
24131
|
+
className: "z-[99999] bg-card border border-border/50 rounded-lg shadow-lg overflow-hidden",
|
|
24132
24132
|
style: { position: "absolute", top: dropdownPosition.top, left: dropdownPosition.left, width: dropdownPosition.width },
|
|
24133
24133
|
onMouseDown: (e) => e.stopPropagation(),
|
|
24134
24134
|
role: "menu",
|
|
@@ -24220,12 +24220,12 @@ function LanguageSwitcherHeadless({
|
|
|
24220
24220
|
}
|
|
24221
24221
|
),
|
|
24222
24222
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
|
|
24223
|
-
typeof window !== "undefined" && (0, import_react_dom7.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "fixed inset-0 z-
|
|
24223
|
+
typeof window !== "undefined" && (0, import_react_dom7.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "fixed inset-0 z-[99998]", onClick: () => setIsOpen(false) }), document.body),
|
|
24224
24224
|
typeof window !== "undefined" && dropdownPosition && (0, import_react_dom7.createPortal)(
|
|
24225
24225
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
24226
24226
|
"div",
|
|
24227
24227
|
{
|
|
24228
|
-
className: "z-
|
|
24228
|
+
className: "z-[99999] bg-card border border-border/50 rounded-lg shadow-lg overflow-hidden",
|
|
24229
24229
|
style: { position: "absolute", top: dropdownPosition.top, left: dropdownPosition.left, width: dropdownPosition.width },
|
|
24230
24230
|
onMouseDown: (e) => e.stopPropagation(),
|
|
24231
24231
|
role: "menu",
|
|
@@ -24659,7 +24659,8 @@ var SlashCommand = import_core.Extension.create({
|
|
|
24659
24659
|
showOnCreate: true,
|
|
24660
24660
|
interactive: true,
|
|
24661
24661
|
trigger: "manual",
|
|
24662
|
-
placement: "bottom-start"
|
|
24662
|
+
placement: "bottom-start",
|
|
24663
|
+
zIndex: 99999
|
|
24663
24664
|
});
|
|
24664
24665
|
},
|
|
24665
24666
|
onUpdate(props) {
|
|
@@ -24954,7 +24955,8 @@ var EmojiSuggestion = import_core3.Extension.create({
|
|
|
24954
24955
|
showOnCreate: true,
|
|
24955
24956
|
interactive: true,
|
|
24956
24957
|
trigger: "manual",
|
|
24957
|
-
placement: "bottom-start"
|
|
24958
|
+
placement: "bottom-start",
|
|
24959
|
+
zIndex: 99999
|
|
24958
24960
|
});
|
|
24959
24961
|
},
|
|
24960
24962
|
onUpdate(props) {
|
|
@@ -27382,7 +27384,15 @@ var BubbleMenuContent = ({
|
|
|
27382
27384
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ToolbarButton, { onClick: () => applyImageWidthPreset(editor, "lg"), active: imageWidthPreset === "lg", title: t("toolbar.imageWidthLg"), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-[10px] font-semibold", children: "L" }) }),
|
|
27383
27385
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "w-px h-6 bg-border/50 mx-1" }),
|
|
27384
27386
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ToolbarButton, { onClick: () => resetImageSize(editor), title: t("toolbar.imageResetSize"), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react45.RotateCcw, { className: "w-4 h-4" }) }),
|
|
27385
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27387
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27388
|
+
ToolbarButton,
|
|
27389
|
+
{
|
|
27390
|
+
onClick: () => deleteSelectedImage(editor),
|
|
27391
|
+
title: t("toolbar.imageDelete"),
|
|
27392
|
+
className: "text-destructive hover:text-destructive",
|
|
27393
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_lucide_react45.Trash2, { className: "w-4 h-4" })
|
|
27394
|
+
}
|
|
27395
|
+
)
|
|
27386
27396
|
] });
|
|
27387
27397
|
}
|
|
27388
27398
|
if (showTypographyPanel) {
|
|
@@ -27572,7 +27582,15 @@ var BubbleMenuContent = ({
|
|
|
27572
27582
|
),
|
|
27573
27583
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ToolbarButton, { onClick: () => setActiveColorPalette("text"), title: t("colors.textColor"), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TextColorIcon, { color: currentTextColor }) }),
|
|
27574
27584
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ToolbarButton, { onClick: () => setActiveColorPalette("highlight"), active: editor.isActive("highlight"), title: t("colors.highlight"), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(HighlightColorIcon, { color: currentHighlightColor }) }),
|
|
27575
|
-
isInTable2 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27585
|
+
isInTable2 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27586
|
+
ToolbarButton,
|
|
27587
|
+
{
|
|
27588
|
+
onClick: () => setActiveColorPalette("cell-bg"),
|
|
27589
|
+
active: Boolean(currentCellBgColor),
|
|
27590
|
+
title: t("tableMenu.cellBackground") || "Cell background",
|
|
27591
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(CellBgColorIcon, { color: currentCellBgColor })
|
|
27592
|
+
}
|
|
27593
|
+
),
|
|
27576
27594
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27577
27595
|
ToolbarButton,
|
|
27578
27596
|
{
|
|
@@ -27653,22 +27671,14 @@ var CustomBubbleMenu = ({
|
|
|
27653
27671
|
"div",
|
|
27654
27672
|
{
|
|
27655
27673
|
ref: menuRef,
|
|
27656
|
-
className: "fixed z-
|
|
27674
|
+
className: "fixed z-99999 flex rounded-xl border border-border/40 bg-card text-card-foreground shadow-lg backdrop-blur-sm overflow-hidden animate-in fade-in-0 zoom-in-95",
|
|
27657
27675
|
style: {
|
|
27658
27676
|
top: `${position.top}px`,
|
|
27659
27677
|
left: `${position.left}px`,
|
|
27660
27678
|
transform: "translate(-50%, -100%)"
|
|
27661
27679
|
},
|
|
27662
27680
|
onMouseDown: (e) => e.preventDefault(),
|
|
27663
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27664
|
-
BubbleMenuContent,
|
|
27665
|
-
{
|
|
27666
|
-
editor,
|
|
27667
|
-
onKeepOpenChange: setKeepOpen,
|
|
27668
|
-
fontSizes,
|
|
27669
|
-
lineHeights
|
|
27670
|
-
}
|
|
27671
|
-
)
|
|
27681
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(BubbleMenuContent, { editor, onKeepOpenChange: setKeepOpen, fontSizes, lineHeights })
|
|
27672
27682
|
}
|
|
27673
27683
|
),
|
|
27674
27684
|
document.body
|
|
@@ -27708,7 +27718,7 @@ var CustomFloatingMenu = ({ editor }) => {
|
|
|
27708
27718
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27709
27719
|
"div",
|
|
27710
27720
|
{
|
|
27711
|
-
className: "fixed z-
|
|
27721
|
+
className: "fixed z-99999 rounded-2xl border border-border/50 bg-card text-card-foreground shadow-lg backdrop-blur-sm overflow-hidden animate-in fade-in-0 slide-in-from-bottom-2",
|
|
27712
27722
|
style: {
|
|
27713
27723
|
top: `${position.top}px`,
|
|
27714
27724
|
left: `${position.left}px`,
|