@underverse-ui/underverse 0.2.118 → 0.2.119

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/dist/index.cjs CHANGED
@@ -19726,7 +19726,7 @@ var ToolbarButton = import_react44.default.forwardRef(({ onClick, onMouseDown, a
19726
19726
  }
19727
19727
  );
19728
19728
  if (title) {
19729
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Tooltip, { content: title, placement: "top", delay: { open: 500, close: 0 }, children: button });
19729
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Tooltip, { content: title, placement: "top", delay: { open: 200, close: 0 }, children: button });
19730
19730
  }
19731
19731
  return button;
19732
19732
  });
@@ -19764,15 +19764,7 @@ var EditorToolbar = ({
19764
19764
  if (variant === "minimal") {
19765
19765
  return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-1 p-2 border-b bg-muted/30", children: [
19766
19766
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleBold().run(), active: editor.isActive("bold"), title: t("toolbar.bold"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Bold, { className: "w-4 h-4" }) }),
19767
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
19768
- ToolbarButton,
19769
- {
19770
- onClick: () => editor.chain().focus().toggleItalic().run(),
19771
- active: editor.isActive("italic"),
19772
- title: t("toolbar.italic"),
19773
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Italic, { className: "w-4 h-4" })
19774
- }
19775
- ),
19767
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleItalic().run(), active: editor.isActive("italic"), title: t("toolbar.italic"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Italic, { className: "w-4 h-4" }) }),
19776
19768
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
19777
19769
  ToolbarButton,
19778
19770
  {
@@ -19794,7 +19786,15 @@ var EditorToolbar = ({
19794
19786
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.ChevronDown, { className: "w-3 h-3" })
19795
19787
  ] }),
19796
19788
  children: [
19797
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DropdownMenuItem, { icon: import_lucide_react40.Type, label: t("toolbar.normal"), onClick: () => editor.chain().focus().setParagraph().run(), active: editor.isActive("paragraph") }),
19789
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
19790
+ DropdownMenuItem,
19791
+ {
19792
+ icon: import_lucide_react40.Type,
19793
+ label: t("toolbar.normal"),
19794
+ onClick: () => editor.chain().focus().setParagraph().run(),
19795
+ active: editor.isActive("paragraph")
19796
+ }
19797
+ ),
19798
19798
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
19799
19799
  DropdownMenuItem,
19800
19800
  {
@@ -19830,15 +19830,7 @@ var EditorToolbar = ({
19830
19830
  ),
19831
19831
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarDivider, {}),
19832
19832
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleBold().run(), active: editor.isActive("bold"), title: t("toolbar.bold"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Bold, { className: "w-4 h-4" }) }),
19833
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
19834
- ToolbarButton,
19835
- {
19836
- onClick: () => editor.chain().focus().toggleItalic().run(),
19837
- active: editor.isActive("italic"),
19838
- title: t("toolbar.italic"),
19839
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Italic, { className: "w-4 h-4" })
19840
- }
19841
- ),
19833
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleItalic().run(), active: editor.isActive("italic"), title: t("toolbar.italic"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Italic, { className: "w-4 h-4" }) }),
19842
19834
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
19843
19835
  ToolbarButton,
19844
19836
  {
@@ -19848,15 +19840,7 @@ var EditorToolbar = ({
19848
19840
  children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Underline, { className: "w-4 h-4" })
19849
19841
  }
19850
19842
  ),
19851
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
19852
- ToolbarButton,
19853
- {
19854
- onClick: () => editor.chain().focus().toggleStrike().run(),
19855
- active: editor.isActive("strike"),
19856
- title: t("toolbar.strike"),
19857
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Strikethrough, { className: "w-4 h-4" })
19858
- }
19859
- ),
19843
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleStrike().run(), active: editor.isActive("strike"), title: t("toolbar.strike"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Strikethrough, { className: "w-4 h-4" }) }),
19860
19844
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleCode().run(), active: editor.isActive("code"), title: t("toolbar.code"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Code, { className: "w-4 h-4" }) }),
19861
19845
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarDivider, {}),
19862
19846
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
@@ -20089,7 +20073,14 @@ var EditorToolbar = ({
20089
20073
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.ChevronDown, { className: "w-3 h-3" })
20090
20074
  ] }),
20091
20075
  children: [
20092
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DropdownMenuItem, { icon: import_lucide_react40.Table, label: t("tableMenu.insert3x3"), onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run() }),
20076
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
20077
+ DropdownMenuItem,
20078
+ {
20079
+ icon: import_lucide_react40.Table,
20080
+ label: t("tableMenu.insert3x3"),
20081
+ onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run()
20082
+ }
20083
+ ),
20093
20084
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "my-1 border-t" }),
20094
20085
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
20095
20086
  DropdownMenuItem,
@@ -20137,7 +20128,15 @@ var EditorToolbar = ({
20137
20128
  disabled: !editor.can().deleteColumn()
20138
20129
  }
20139
20130
  ),
20140
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DropdownMenuItem, { icon: import_lucide_react40.Trash2, label: t("tableMenu.deleteRow"), onClick: () => editor.chain().focus().deleteRow().run(), disabled: !editor.can().deleteRow() }),
20131
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
20132
+ DropdownMenuItem,
20133
+ {
20134
+ icon: import_lucide_react40.Trash2,
20135
+ label: t("tableMenu.deleteRow"),
20136
+ onClick: () => editor.chain().focus().deleteRow().run(),
20137
+ disabled: !editor.can().deleteRow()
20138
+ }
20139
+ ),
20141
20140
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
20142
20141
  DropdownMenuItem,
20143
20142
  {
@@ -20151,8 +20150,24 @@ var EditorToolbar = ({
20151
20150
  }
20152
20151
  ),
20153
20152
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarDivider, {}),
20154
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleSubscript().run(), active: editor.isActive("subscript"), title: t("toolbar.subscript"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Subscript, { className: "w-4 h-4" }) }),
20155
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().toggleSuperscript().run(), active: editor.isActive("superscript"), title: t("toolbar.superscript"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Superscript, { className: "w-4 h-4" }) }),
20153
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
20154
+ ToolbarButton,
20155
+ {
20156
+ onClick: () => editor.chain().focus().toggleSubscript().run(),
20157
+ active: editor.isActive("subscript"),
20158
+ title: t("toolbar.subscript"),
20159
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Subscript, { className: "w-4 h-4" })
20160
+ }
20161
+ ),
20162
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
20163
+ ToolbarButton,
20164
+ {
20165
+ onClick: () => editor.chain().focus().toggleSuperscript().run(),
20166
+ active: editor.isActive("superscript"),
20167
+ title: t("toolbar.superscript"),
20168
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Superscript, { className: "w-4 h-4" })
20169
+ }
20170
+ ),
20156
20171
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarDivider, {}),
20157
20172
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().undo().run(), disabled: !editor.can().undo(), title: t("toolbar.undo"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Undo, { className: "w-4 h-4" }) }),
20158
20173
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ToolbarButton, { onClick: () => editor.chain().focus().redo().run(), disabled: !editor.can().redo(), title: t("toolbar.redo"), children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_lucide_react40.Redo, { className: "w-4 h-4" }) })