@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
  "use client";
2
2
  import {
3
3
  Modal_default
4
- } from "./chunk-GKY5DHGR.js";
4
+ } from "./chunk-MNZVW2QX.js";
5
5
  import {
6
6
  DEFAULT_TABLE_ROW_HEIGHT,
7
7
  DEFAULT_UEDITOR_IMAGE_MAX_FILE_SIZE,
@@ -21,11 +21,11 @@ import {
21
21
  sanitizeUEditorUrl,
22
22
  useDropdownMenuClose,
23
23
  useSharedEditorUiRenderState
24
- } from "./chunk-AMAILXHP.js";
24
+ } from "./chunk-LTIU5FQY.js";
25
25
  import {
26
26
  cn,
27
27
  useSmartTranslations
28
- } from "./chunk-BRDGIALS.js";
28
+ } from "./chunk-PLHJWXCW.js";
29
29
  import "./chunk-NSBPE2FW.js";
30
30
 
31
31
  // src/components/UEditor/menu-bar.tsx
@@ -944,4 +944,4 @@ var MenuBar = ({
944
944
  export {
945
945
  MenuBar
946
946
  };
947
- //# sourceMappingURL=menu-bar-6GS5LLTD.js.map
947
+ //# sourceMappingURL=menu-bar-SPAAI5X6.js.map
package/dist/ueditor.cjs CHANGED
@@ -3033,7 +3033,7 @@ var init_Tooltip = __esm({
3033
3033
  onBlur: chainEventHandlers(
3034
3034
  triggerPassthroughProps.onBlur,
3035
3035
  childProps.onBlur,
3036
- (e) => {
3036
+ () => {
3037
3037
  handleBlur();
3038
3038
  }
3039
3039
  )
@@ -7829,7 +7829,7 @@ var init_editor_styles = __esm({
7829
7829
  "[&_td]:px-2",
7830
7830
  "[&_td]:py-0",
7831
7831
  "[&_td]:whitespace-normal",
7832
- "[&_td]:[overflow-wrap:anywhere]",
7832
+ "[&_td]:wrap-anywhere",
7833
7833
  "[&_td]:[word-break:normal]",
7834
7834
  "[&_td[data-text-wrap='nowrap']]:whitespace-nowrap",
7835
7835
  "[&_td[data-text-wrap='nowrap']]:[overflow-wrap:normal]",
@@ -7841,7 +7841,7 @@ var init_editor_styles = __esm({
7841
7841
  "[&_th]:px-2",
7842
7842
  "[&_th]:py-0",
7843
7843
  "[&_th]:whitespace-normal",
7844
- "[&_th]:[overflow-wrap:anywhere]",
7844
+ "[&_th]:wrap-anywhere",
7845
7845
  "[&_th]:[word-break:normal]",
7846
7846
  "[&_th[data-text-wrap='nowrap']]:whitespace-nowrap",
7847
7847
  "[&_th[data-text-wrap='nowrap']]:[overflow-wrap:normal]",
@@ -21166,7 +21166,7 @@ function TableResizeHandles({
21166
21166
  "data-resizing": active ? "true" : "false",
21167
21167
  className: cn(
21168
21168
  "pointer-events-none absolute z-[38] box-border border border-primary/55",
21169
- active && "border-primary bg-primary/[0.03]"
21169
+ active && "border-primary bg-primary/3"
21170
21170
  ),
21171
21171
  style: {
21172
21172
  left: layout.tableLeft,
@@ -23229,11 +23229,17 @@ function useUEditorOutput({
23229
23229
  onJsonChange,
23230
23230
  outputDebounceMs
23231
23231
  }) {
23232
- const callbacksRef = React28.useRef({});
23232
+ const callbacksRef = React28.useRef({
23233
+ onChange,
23234
+ onHtmlChange,
23235
+ onJsonChange
23236
+ });
23233
23237
  const pendingEditorRef = React28.useRef(null);
23234
23238
  const timeoutRef = React28.useRef(null);
23235
23239
  const debounceMs = normalizeDebounceMs(outputDebounceMs);
23236
- callbacksRef.current = { onChange, onHtmlChange, onJsonChange };
23240
+ React28.useLayoutEffect(() => {
23241
+ callbacksRef.current = { onChange, onHtmlChange, onJsonChange };
23242
+ }, [onChange, onHtmlChange, onJsonChange]);
23237
23243
  const flushOutputUpdates = React28.useCallback(() => {
23238
23244
  if (timeoutRef.current !== null) {
23239
23245
  clearTimeout(timeoutRef.current);