@underverse-ui/underverse 1.0.211 → 2.0.0

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,7 +1,7 @@
1
1
  import {
2
2
  EmojiGridButton,
3
3
  formatEmojiCountLabel
4
- } from "./chunk-CYCBSKWI.js";
4
+ } from "./chunk-KGNYK5YF.js";
5
5
  import {
6
6
  COLUMN_RESIZE_LINE_THICKNESS,
7
7
  CellBgColorIcon,
@@ -53,12 +53,12 @@ import {
53
53
  sanitizeUEditorUrl,
54
54
  useEditorColors,
55
55
  useSharedEditorUiRenderState
56
- } from "./chunk-AMAILXHP.js";
56
+ } from "./chunk-LTIU5FQY.js";
57
57
  import {
58
58
  Tooltip,
59
59
  cn,
60
60
  useSmartTranslations
61
- } from "./chunk-BRDGIALS.js";
61
+ } from "./chunk-PLHJWXCW.js";
62
62
 
63
63
  // src/components/UEditor/prepare-content-for-save.ts
64
64
  var MIME_EXTENSION_MAP = {
@@ -508,7 +508,7 @@ import { NodeViewWrapper, NodeViewContent } from "@tiptap/react";
508
508
  import React from "react";
509
509
  import { jsx } from "react/jsx-runtime";
510
510
  var LazyBaseEmojiPicker = React.lazy(async () => {
511
- const { EmojiPicker: EmojiPicker2 } = await import("./EmojiPicker-FEJJDAWZ.js");
511
+ const { EmojiPicker: EmojiPicker2 } = await import("./EmojiPicker-34YATB7Z.js");
512
512
  return { default: EmojiPicker2 };
513
513
  });
514
514
  var EmojiPicker = ({ onSelect }) => {
@@ -12131,7 +12131,7 @@ function TableResizeHandles({
12131
12131
  "data-resizing": active ? "true" : "false",
12132
12132
  className: cn(
12133
12133
  "pointer-events-none absolute z-[38] box-border border border-primary/55",
12134
- active && "border-primary bg-primary/[0.03]"
12134
+ active && "border-primary bg-primary/3"
12135
12135
  ),
12136
12136
  style: {
12137
12137
  left: layout.tableLeft,
@@ -14180,11 +14180,17 @@ function useUEditorOutput({
14180
14180
  onJsonChange,
14181
14181
  outputDebounceMs
14182
14182
  }) {
14183
- const callbacksRef = React14.useRef({});
14183
+ const callbacksRef = React14.useRef({
14184
+ onChange,
14185
+ onHtmlChange,
14186
+ onJsonChange
14187
+ });
14184
14188
  const pendingEditorRef = React14.useRef(null);
14185
14189
  const timeoutRef = React14.useRef(null);
14186
14190
  const debounceMs = normalizeDebounceMs(outputDebounceMs);
14187
- callbacksRef.current = { onChange, onHtmlChange, onJsonChange };
14191
+ React14.useLayoutEffect(() => {
14192
+ callbacksRef.current = { onChange, onHtmlChange, onJsonChange };
14193
+ }, [onChange, onHtmlChange, onJsonChange]);
14188
14194
  const flushOutputUpdates = React14.useCallback(() => {
14189
14195
  if (timeoutRef.current !== null) {
14190
14196
  clearTimeout(timeoutRef.current);
@@ -14239,7 +14245,7 @@ function useUEditorOutput({
14239
14245
  // src/components/UEditor/UEditor.tsx
14240
14246
  import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
14241
14247
  var LazyMenuBar = React15.lazy(async () => {
14242
- const { MenuBar } = await import("./menu-bar-6GS5LLTD.js");
14248
+ const { MenuBar } = await import("./menu-bar-SPAAI5X6.js");
14243
14249
  return { default: MenuBar };
14244
14250
  });
14245
14251
  var UEditor = React15.forwardRef(({
@@ -14689,4 +14695,4 @@ export {
14689
14695
  prepareUEditorContentForSave,
14690
14696
  UEditor_default
14691
14697
  };
14692
- //# sourceMappingURL=chunk-4E43DRP2.js.map
14698
+ //# sourceMappingURL=chunk-QIMAN4VF.js.map