@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.129",
3
+ "version": "1.0.130",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 232,
6
6
  "exports": [
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.jsxs)("div", { className: "w-56", children: [
27034
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
27035
- EditorColorPalette,
27036
- {
27037
- colors: isTextPalette ? textColors : highlightColors,
27038
- currentColor: isTextPalette ? currentTextColor : isHighlightPalette ? currentHighlightColor : currentCellBgColor,
27039
- onSelect: (color) => {
27040
- if (isTextPalette) {
27041
- if (color === "inherit") {
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
- applyTableCellBackground(editor, color);
27043
+ editor.chain().focus().setColor(color).run();
27054
27044
  }
27055
- },
27056
- label: isTextPalette ? t("colors.textColor") : isHighlightPalette ? t("colors.highlight") : t("tableMenu.cellBackground") || "Cell background"
27057
- }
27058
- ),
27059
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "p-2 border-t", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
27060
- "button",
27061
- {
27062
- type: "button",
27063
- onClick: () => setActiveColorPalette(null),
27064
- className: "w-full py-1.5 text-sm rounded-lg hover:bg-muted transition-colors",
27065
- children: t("colors.done")
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: [