@underverse-ui/underverse 2.0.13 → 2.0.14

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": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 257,
6
6
  "exports": [
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  EmojiPicker,
4
4
  EmojiPicker_default
5
- } from "./chunk-HEYNAGQD.js";
6
- import "./chunk-VNSCI3OK.js";
5
+ } from "./chunk-N2S6RI4Y.js";
6
+ import "./chunk-DXLSCUYA.js";
7
7
  import "./chunk-4TYW5K4J.js";
8
- import "./chunk-PYC5EY5W.js";
8
+ import "./chunk-PV2G2XME.js";
9
9
  import "./chunk-NSBPE2FW.js";
10
10
  export {
11
11
  EmojiPicker,
12
12
  EmojiPicker_default as default
13
13
  };
14
- //# sourceMappingURL=EmojiPicker-FFNIUMI3.js.map
14
+ //# sourceMappingURL=EmojiPicker-CGMUDB4I.js.map
@@ -9,7 +9,7 @@ import {
9
9
  mergeRefs,
10
10
  setRefValue,
11
11
  useSmartTranslations
12
- } from "./chunk-PYC5EY5W.js";
12
+ } from "./chunk-PV2G2XME.js";
13
13
 
14
14
  // src/contexts/UnderverseConfigContext.tsx
15
15
  import * as React from "react";
@@ -2033,6 +2033,8 @@ import {
2033
2033
  List as ListIcon,
2034
2034
  ListOrdered as ListOrderedIcon,
2035
2035
  ListTodo,
2036
+ PanelTopClose,
2037
+ PanelTopOpen,
2036
2038
  Quote as QuoteIcon,
2037
2039
  RotateCcw,
2038
2040
  SquareCheckBig,
@@ -3404,6 +3406,8 @@ function applyTableCellAttribute(editor, name, value) {
3404
3406
  var EditorToolbar = ({
3405
3407
  editor,
3406
3408
  variant,
3409
+ isMenuBarVisible,
3410
+ onToggleMenuBar,
3407
3411
  uploadImage,
3408
3412
  imageInsertMode = "base64",
3409
3413
  maxImageFileSize = DEFAULT_UEDITOR_IMAGE_MAX_FILE_SIZE,
@@ -3578,6 +3582,15 @@ var EditorToolbar = ({
3578
3582
  )
3579
3583
  ] })
3580
3584
  }
3585
+ ),
3586
+ onToggleMenuBar && /* @__PURE__ */ jsx7(
3587
+ ToolbarButton,
3588
+ {
3589
+ onClick: onToggleMenuBar,
3590
+ active: isMenuBarVisible,
3591
+ title: t(isMenuBarVisible ? "toolbar.hideMenuBar" : "toolbar.showMenuBar"),
3592
+ children: isMenuBarVisible ? /* @__PURE__ */ jsx7(PanelTopClose, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx7(PanelTopOpen, { className: "h-4 w-4" })
3593
+ }
3581
3594
  )
3582
3595
  ] });
3583
3596
  }
@@ -3586,7 +3599,7 @@ var EditorToolbar = ({
3586
3599
  "div",
3587
3600
  {
3588
3601
  role: "toolbar",
3589
- className: "flex min-h-9 flex-nowrap items-center gap-0.5 overflow-x-auto border-b border-[rgba(196,197,213,0.6)] bg-[#F4F4F4] px-1.5 py-1 dark:bg-muted/60",
3602
+ className: "flex min-h-9 flex-wrap items-center gap-0.5 border-b border-[rgba(196,197,213,0.6)] bg-[#F4F4F4] px-1.5 py-1 dark:bg-muted/60",
3590
3603
  children: [
3591
3604
  isFull && /* @__PURE__ */ jsx7(
3592
3605
  DropdownMenu,
@@ -4301,7 +4314,16 @@ var EditorToolbar = ({
4301
4314
  children: /* @__PURE__ */ jsx7(TableCellsMerge, { className: "w-4 h-4" })
4302
4315
  }
4303
4316
  )
4304
- ] })
4317
+ ] }),
4318
+ onToggleMenuBar && /* @__PURE__ */ jsx7(
4319
+ ToolbarButton,
4320
+ {
4321
+ onClick: onToggleMenuBar,
4322
+ active: isMenuBarVisible,
4323
+ title: t(isMenuBarVisible ? "toolbar.hideMenuBar" : "toolbar.showMenuBar"),
4324
+ children: isMenuBarVisible ? /* @__PURE__ */ jsx7(PanelTopClose, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx7(PanelTopOpen, { className: "h-4 w-4" })
4325
+ }
4326
+ )
4305
4327
  ]
4306
4328
  }
4307
4329
  );
@@ -4586,4 +4608,4 @@ export {
4586
4608
  EditorToolbar,
4587
4609
  UEDITOR_PROSEMIRROR_CLASS_NAME
4588
4610
  };
4589
- //# sourceMappingURL=chunk-MMMCBJ2L.js.map
4611
+ //# sourceMappingURL=chunk-3Q5EE2ZA.js.map