@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,11 +1,11 @@
1
1
  import {
2
2
  getPanelBorderRadiusClass,
3
3
  useUnderverseUIConfig
4
- } from "./chunk-MMMCBJ2L.js";
4
+ } from "./chunk-3Q5EE2ZA.js";
5
5
  import {
6
6
  cn,
7
7
  useGlobalI18n
8
- } from "./chunk-PYC5EY5W.js";
8
+ } from "./chunk-PV2G2XME.js";
9
9
 
10
10
  // src/components/Modal.tsx
11
11
  import * as React from "react";
@@ -196,4 +196,4 @@ var Modal_default = Modal;
196
196
  export {
197
197
  Modal_default
198
198
  };
199
- //# sourceMappingURL=chunk-R7ZKNCWR.js.map
199
+ //# sourceMappingURL=chunk-DCFQGH3K.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-PYC5EY5W.js";
3
+ } from "./chunk-PV2G2XME.js";
4
4
 
5
5
  // src/components/emoji-ui.tsx
6
6
  import React from "react";
@@ -71,4 +71,4 @@ export {
71
71
  getEmojiImageUrl,
72
72
  EmojiGridButton
73
73
  };
74
- //# sourceMappingURL=chunk-VNSCI3OK.js.map
74
+ //# sourceMappingURL=chunk-DXLSCUYA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EmojiGridButton
3
- } from "./chunk-VNSCI3OK.js";
3
+ } from "./chunk-DXLSCUYA.js";
4
4
  import {
5
5
  EMOJI_LIST
6
6
  } from "./chunk-4TYW5K4J.js";
@@ -9,7 +9,7 @@ import {
9
9
  cn,
10
10
  formControlOutlineClass,
11
11
  useSmartTranslations
12
- } from "./chunk-PYC5EY5W.js";
12
+ } from "./chunk-PV2G2XME.js";
13
13
 
14
14
  // src/components/EmojiPicker.tsx
15
15
  import { useEffect, useMemo, useRef, useState } from "react";
@@ -205,4 +205,4 @@ export {
205
205
  EmojiPicker,
206
206
  EmojiPicker_default
207
207
  };
208
- //# sourceMappingURL=chunk-HEYNAGQD.js.map
208
+ //# sourceMappingURL=chunk-N2S6RI4Y.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EmojiGridButton,
3
3
  formatEmojiCountLabel
4
- } from "./chunk-VNSCI3OK.js";
4
+ } from "./chunk-DXLSCUYA.js";
5
5
  import {
6
6
  COLUMN_RESIZE_LINE_THICKNESS,
7
7
  CellBgColorIcon,
@@ -55,14 +55,14 @@ import {
55
55
  sanitizeUEditorUrl,
56
56
  useEditorColors,
57
57
  useSharedEditorUiRenderState
58
- } from "./chunk-MMMCBJ2L.js";
58
+ } from "./chunk-3Q5EE2ZA.js";
59
59
  import {
60
60
  Tooltip,
61
61
  cn,
62
62
  formControlGroupOutlineClass,
63
63
  formControlOutlineClass,
64
64
  useSmartTranslations
65
- } from "./chunk-PYC5EY5W.js";
65
+ } from "./chunk-PV2G2XME.js";
66
66
 
67
67
  // src/components/UEditor/prepare-content-for-save.ts
68
68
  var MIME_EXTENSION_MAP = {
@@ -512,7 +512,7 @@ import { NodeViewWrapper, NodeViewContent } from "@tiptap/react";
512
512
  import React from "react";
513
513
  import { jsx } from "react/jsx-runtime";
514
514
  var LazyBaseEmojiPicker = React.lazy(async () => {
515
- const { EmojiPicker: EmojiPicker2 } = await import("./EmojiPicker-FFNIUMI3.js");
515
+ const { EmojiPicker: EmojiPicker2 } = await import("./EmojiPicker-CGMUDB4I.js");
516
516
  return { default: EmojiPicker2 };
517
517
  });
518
518
  var EmojiPicker = ({ onSelect }) => {
@@ -14445,7 +14445,7 @@ function useUEditorOutput({
14445
14445
  // src/components/UEditor/UEditor.tsx
14446
14446
  import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
14447
14447
  var LazyMenuBar = React15.lazy(async () => {
14448
- const { MenuBar } = await import("./menu-bar-SVX36W4S.js");
14448
+ const { MenuBar } = await import("./menu-bar-55SAOAX6.js");
14449
14449
  return { default: MenuBar };
14450
14450
  });
14451
14451
  var UEditor = React15.forwardRef(({
@@ -14501,6 +14501,10 @@ var UEditor = React15.forwardRef(({
14501
14501
  const formulaRangePickRef = useRef10(null);
14502
14502
  const formulaRangeSurfaceRef = useRef10(null);
14503
14503
  const [formulaRangeHighlight, setFormulaRangeHighlight] = React15.useState(null);
14504
+ const [isMenuBarVisible, setIsMenuBarVisible] = React15.useState(showMenuBar);
14505
+ useEffect10(() => {
14506
+ setIsMenuBarVisible(showMenuBar);
14507
+ }, [showMenuBar]);
14504
14508
  const { flushOutputUpdates, scheduleOutputUpdate } = useUEditorOutput({
14505
14509
  onChange,
14506
14510
  onHtmlChange,
@@ -14759,7 +14763,7 @@ var UEditor = React15.forwardRef(({
14759
14763
  ),
14760
14764
  children: [
14761
14765
  editable && (showMenuBar || showToolbar || showBubbleMenu) ? /* @__PURE__ */ jsxs17(EditorUiRenderStateProvider, { editor, children: [
14762
- showMenuBar && /* @__PURE__ */ jsx20(React15.Suspense, { fallback: null, children: /* @__PURE__ */ jsx20(
14766
+ isMenuBarVisible && /* @__PURE__ */ jsx20(React15.Suspense, { fallback: null, children: /* @__PURE__ */ jsx20(
14763
14767
  LazyMenuBar,
14764
14768
  {
14765
14769
  editor,
@@ -14780,6 +14784,8 @@ var UEditor = React15.forwardRef(({
14780
14784
  {
14781
14785
  editor,
14782
14786
  variant,
14787
+ isMenuBarVisible,
14788
+ onToggleMenuBar: () => setIsMenuBarVisible((visible) => !visible),
14783
14789
  uploadImage,
14784
14790
  imageInsertMode,
14785
14791
  maxImageFileSize,
@@ -14900,4 +14906,4 @@ export {
14900
14906
  prepareUEditorContentForSave,
14901
14907
  UEditor_default
14902
14908
  };
14903
- //# sourceMappingURL=chunk-WDY3QWOW.js.map
14909
+ //# sourceMappingURL=chunk-PDYEK7HL.js.map