@underverse-ui/underverse 1.0.129 → 1.0.130
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 +24 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -27030,42 +27030,32 @@ var BubbleMenuContent = ({
|
|
|
27030
27030
|
if (activeColorPalette) {
|
|
27031
27031
|
const isTextPalette = activeColorPalette === "text";
|
|
27032
27032
|
const isHighlightPalette = activeColorPalette === "highlight";
|
|
27033
|
-
return /* @__PURE__ */ (0, import_jsx_runtime82.
|
|
27034
|
-
|
|
27035
|
-
|
|
27036
|
-
|
|
27037
|
-
|
|
27038
|
-
|
|
27039
|
-
|
|
27040
|
-
if (
|
|
27041
|
-
|
|
27042
|
-
editor.chain().focus().unsetColor().run();
|
|
27043
|
-
} else {
|
|
27044
|
-
editor.chain().focus().setColor(color).run();
|
|
27045
|
-
}
|
|
27046
|
-
} else if (isHighlightPalette) {
|
|
27047
|
-
if (color === "") {
|
|
27048
|
-
editor.chain().focus().unsetHighlight().run();
|
|
27049
|
-
} else {
|
|
27050
|
-
editor.chain().focus().toggleHighlight({ color }).run();
|
|
27051
|
-
}
|
|
27033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "w-56", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
27034
|
+
EditorColorPalette,
|
|
27035
|
+
{
|
|
27036
|
+
colors: isTextPalette ? textColors : highlightColors,
|
|
27037
|
+
currentColor: isTextPalette ? currentTextColor : isHighlightPalette ? currentHighlightColor : currentCellBgColor,
|
|
27038
|
+
onSelect: (color) => {
|
|
27039
|
+
if (isTextPalette) {
|
|
27040
|
+
if (color === "inherit") {
|
|
27041
|
+
editor.chain().focus().unsetColor().run();
|
|
27052
27042
|
} else {
|
|
27053
|
-
|
|
27043
|
+
editor.chain().focus().setColor(color).run();
|
|
27054
27044
|
}
|
|
27055
|
-
}
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
|
|
27062
|
-
|
|
27063
|
-
|
|
27064
|
-
|
|
27065
|
-
|
|
27066
|
-
|
|
27067
|
-
|
|
27068
|
-
|
|
27045
|
+
} else if (isHighlightPalette) {
|
|
27046
|
+
if (color === "") {
|
|
27047
|
+
editor.chain().focus().unsetHighlight().run();
|
|
27048
|
+
} else {
|
|
27049
|
+
editor.chain().focus().toggleHighlight({ color }).run();
|
|
27050
|
+
}
|
|
27051
|
+
} else {
|
|
27052
|
+
applyTableCellBackground(editor, color);
|
|
27053
|
+
}
|
|
27054
|
+
setActiveColorPalette(null);
|
|
27055
|
+
},
|
|
27056
|
+
label: isTextPalette ? t("colors.textColor") : isHighlightPalette ? t("colors.highlight") : t("tableMenu.cellBackground") || "Cell background"
|
|
27057
|
+
}
|
|
27058
|
+
) });
|
|
27069
27059
|
}
|
|
27070
27060
|
if (isImageSelected) {
|
|
27071
27061
|
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex items-center gap-0.5 p-1", children: [
|