@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.js CHANGED
@@ -19596,7 +19596,7 @@ var ToolbarButton = React66.forwardRef(({ onClick, onMouseDown, active, disabled
19596
19596
  }
19597
19597
  );
19598
19598
  if (title) {
19599
- return /* @__PURE__ */ jsx78(Tooltip, { content: title, placement: "top", delay: { open: 500, close: 0 }, children: button });
19599
+ return /* @__PURE__ */ jsx78(Tooltip, { content: title, placement: "top", delay: { open: 200, close: 0 }, children: button });
19600
19600
  }
19601
19601
  return button;
19602
19602
  });
@@ -19634,15 +19634,7 @@ var EditorToolbar = ({
19634
19634
  if (variant === "minimal") {
19635
19635
  return /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-1 p-2 border-b bg-muted/30", children: [
19636
19636
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleBold().run(), active: editor.isActive("bold"), title: t("toolbar.bold"), children: /* @__PURE__ */ jsx78(BoldIcon, { className: "w-4 h-4" }) }),
19637
- /* @__PURE__ */ jsx78(
19638
- ToolbarButton,
19639
- {
19640
- onClick: () => editor.chain().focus().toggleItalic().run(),
19641
- active: editor.isActive("italic"),
19642
- title: t("toolbar.italic"),
19643
- children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" })
19644
- }
19645
- ),
19637
+ /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleItalic().run(), active: editor.isActive("italic"), title: t("toolbar.italic"), children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" }) }),
19646
19638
  /* @__PURE__ */ jsx78(
19647
19639
  ToolbarButton,
19648
19640
  {
@@ -19664,7 +19656,15 @@ var EditorToolbar = ({
19664
19656
  /* @__PURE__ */ jsx78(ChevronDown6, { className: "w-3 h-3" })
19665
19657
  ] }),
19666
19658
  children: [
19667
- /* @__PURE__ */ jsx78(DropdownMenuItem, { icon: Type2, label: t("toolbar.normal"), onClick: () => editor.chain().focus().setParagraph().run(), active: editor.isActive("paragraph") }),
19659
+ /* @__PURE__ */ jsx78(
19660
+ DropdownMenuItem,
19661
+ {
19662
+ icon: Type2,
19663
+ label: t("toolbar.normal"),
19664
+ onClick: () => editor.chain().focus().setParagraph().run(),
19665
+ active: editor.isActive("paragraph")
19666
+ }
19667
+ ),
19668
19668
  /* @__PURE__ */ jsx78(
19669
19669
  DropdownMenuItem,
19670
19670
  {
@@ -19700,15 +19700,7 @@ var EditorToolbar = ({
19700
19700
  ),
19701
19701
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
19702
19702
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleBold().run(), active: editor.isActive("bold"), title: t("toolbar.bold"), children: /* @__PURE__ */ jsx78(BoldIcon, { className: "w-4 h-4" }) }),
19703
- /* @__PURE__ */ jsx78(
19704
- ToolbarButton,
19705
- {
19706
- onClick: () => editor.chain().focus().toggleItalic().run(),
19707
- active: editor.isActive("italic"),
19708
- title: t("toolbar.italic"),
19709
- children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" })
19710
- }
19711
- ),
19703
+ /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleItalic().run(), active: editor.isActive("italic"), title: t("toolbar.italic"), children: /* @__PURE__ */ jsx78(ItalicIcon, { className: "w-4 h-4" }) }),
19712
19704
  /* @__PURE__ */ jsx78(
19713
19705
  ToolbarButton,
19714
19706
  {
@@ -19718,15 +19710,7 @@ var EditorToolbar = ({
19718
19710
  children: /* @__PURE__ */ jsx78(UnderlineIcon, { className: "w-4 h-4" })
19719
19711
  }
19720
19712
  ),
19721
- /* @__PURE__ */ jsx78(
19722
- ToolbarButton,
19723
- {
19724
- onClick: () => editor.chain().focus().toggleStrike().run(),
19725
- active: editor.isActive("strike"),
19726
- title: t("toolbar.strike"),
19727
- children: /* @__PURE__ */ jsx78(StrikethroughIcon, { className: "w-4 h-4" })
19728
- }
19729
- ),
19713
+ /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleStrike().run(), active: editor.isActive("strike"), title: t("toolbar.strike"), children: /* @__PURE__ */ jsx78(StrikethroughIcon, { className: "w-4 h-4" }) }),
19730
19714
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleCode().run(), active: editor.isActive("code"), title: t("toolbar.code"), children: /* @__PURE__ */ jsx78(CodeIcon, { className: "w-4 h-4" }) }),
19731
19715
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
19732
19716
  /* @__PURE__ */ jsx78(
@@ -19959,7 +19943,14 @@ var EditorToolbar = ({
19959
19943
  /* @__PURE__ */ jsx78(ChevronDown6, { className: "w-3 h-3" })
19960
19944
  ] }),
19961
19945
  children: [
19962
- /* @__PURE__ */ jsx78(DropdownMenuItem, { icon: TableIcon, label: t("tableMenu.insert3x3"), onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run() }),
19946
+ /* @__PURE__ */ jsx78(
19947
+ DropdownMenuItem,
19948
+ {
19949
+ icon: TableIcon,
19950
+ label: t("tableMenu.insert3x3"),
19951
+ onClick: () => editor.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: true }).run()
19952
+ }
19953
+ ),
19963
19954
  /* @__PURE__ */ jsx78("div", { className: "my-1 border-t" }),
19964
19955
  /* @__PURE__ */ jsx78(
19965
19956
  DropdownMenuItem,
@@ -20007,7 +19998,15 @@ var EditorToolbar = ({
20007
19998
  disabled: !editor.can().deleteColumn()
20008
19999
  }
20009
20000
  ),
20010
- /* @__PURE__ */ jsx78(DropdownMenuItem, { icon: Trash2, label: t("tableMenu.deleteRow"), onClick: () => editor.chain().focus().deleteRow().run(), disabled: !editor.can().deleteRow() }),
20001
+ /* @__PURE__ */ jsx78(
20002
+ DropdownMenuItem,
20003
+ {
20004
+ icon: Trash2,
20005
+ label: t("tableMenu.deleteRow"),
20006
+ onClick: () => editor.chain().focus().deleteRow().run(),
20007
+ disabled: !editor.can().deleteRow()
20008
+ }
20009
+ ),
20011
20010
  /* @__PURE__ */ jsx78(
20012
20011
  DropdownMenuItem,
20013
20012
  {
@@ -20021,8 +20020,24 @@ var EditorToolbar = ({
20021
20020
  }
20022
20021
  ),
20023
20022
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
20024
- /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleSubscript().run(), active: editor.isActive("subscript"), title: t("toolbar.subscript"), children: /* @__PURE__ */ jsx78(SubscriptIcon, { className: "w-4 h-4" }) }),
20025
- /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().toggleSuperscript().run(), active: editor.isActive("superscript"), title: t("toolbar.superscript"), children: /* @__PURE__ */ jsx78(SuperscriptIcon, { className: "w-4 h-4" }) }),
20023
+ /* @__PURE__ */ jsx78(
20024
+ ToolbarButton,
20025
+ {
20026
+ onClick: () => editor.chain().focus().toggleSubscript().run(),
20027
+ active: editor.isActive("subscript"),
20028
+ title: t("toolbar.subscript"),
20029
+ children: /* @__PURE__ */ jsx78(SubscriptIcon, { className: "w-4 h-4" })
20030
+ }
20031
+ ),
20032
+ /* @__PURE__ */ jsx78(
20033
+ ToolbarButton,
20034
+ {
20035
+ onClick: () => editor.chain().focus().toggleSuperscript().run(),
20036
+ active: editor.isActive("superscript"),
20037
+ title: t("toolbar.superscript"),
20038
+ children: /* @__PURE__ */ jsx78(SuperscriptIcon, { className: "w-4 h-4" })
20039
+ }
20040
+ ),
20026
20041
  /* @__PURE__ */ jsx78(ToolbarDivider, {}),
20027
20042
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().undo().run(), disabled: !editor.can().undo(), title: t("toolbar.undo"), children: /* @__PURE__ */ jsx78(UndoIcon, { className: "w-4 h-4" }) }),
20028
20043
  /* @__PURE__ */ jsx78(ToolbarButton, { onClick: () => editor.chain().focus().redo().run(), disabled: !editor.can().redo(), title: t("toolbar.redo"), children: /* @__PURE__ */ jsx78(RedoIcon, { className: "w-4 h-4" }) })