@underverse-ui/underverse 2.0.32 → 2.0.33
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/api-reference.json +1 -1
- package/dist/{EmojiPicker-ISJ6RXYG.js → EmojiPicker-6H52Q4YE.js} +4 -4
- package/dist/{chunk-ZP7F4ZD7.js → chunk-6FAHXNDQ.js} +5 -1
- package/dist/chunk-6FAHXNDQ.js.map +1 -0
- package/dist/{chunk-C4KZOMP3.js → chunk-FQVWYDKP.js} +15 -11
- package/dist/chunk-FQVWYDKP.js.map +1 -0
- package/dist/{chunk-S4UHFRL3.js → chunk-L73HBI6E.js} +3 -3
- package/dist/{chunk-4TXHZS3S.js → chunk-OTPC2OTQ.js} +2 -2
- package/dist/{chunk-RSSSQS2A.js → chunk-UHUKUI5S.js} +3 -3
- package/dist/{chunk-5W63IHIN.js → chunk-W3QTP2DM.js} +2 -2
- package/dist/index.cjs +12 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +6 -6
- package/dist/{menu-bar-GDDGHNNJ.js → menu-bar-HZBBRX42.js} +4 -4
- package/dist/ueditor.cjs +12 -5
- package/dist/ueditor.cjs.map +1 -1
- package/dist/ueditor.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-C4KZOMP3.js.map +0 -1
- package/dist/chunk-ZP7F4ZD7.js.map +0 -1
- /package/dist/{EmojiPicker-ISJ6RXYG.js.map → EmojiPicker-6H52Q4YE.js.map} +0 -0
- /package/dist/{chunk-S4UHFRL3.js.map → chunk-L73HBI6E.js.map} +0 -0
- /package/dist/{chunk-4TXHZS3S.js.map → chunk-OTPC2OTQ.js.map} +0 -0
- /package/dist/{chunk-RSSSQS2A.js.map → chunk-UHUKUI5S.js.map} +0 -0
- /package/dist/{chunk-5W63IHIN.js.map → chunk-W3QTP2DM.js.map} +0 -0
- /package/dist/{menu-bar-GDDGHNNJ.js.map → menu-bar-HZBBRX42.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EmojiGridButton
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W3QTP2DM.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-
|
|
12
|
+
} from "./chunk-6FAHXNDQ.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-
|
|
208
|
+
//# sourceMappingURL=chunk-L73HBI6E.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
setRefValue,
|
|
12
12
|
useSmartTranslations,
|
|
13
13
|
useUEditorPortalContainerGetter
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6FAHXNDQ.js";
|
|
15
15
|
|
|
16
16
|
// src/contexts/UnderverseConfigContext.tsx
|
|
17
17
|
import * as React from "react";
|
|
@@ -5827,4 +5827,4 @@ export {
|
|
|
5827
5827
|
EditorToolbar,
|
|
5828
5828
|
UEDITOR_PROSEMIRROR_CLASS_NAME
|
|
5829
5829
|
};
|
|
5830
|
-
//# sourceMappingURL=chunk-
|
|
5830
|
+
//# sourceMappingURL=chunk-OTPC2OTQ.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPanelBorderRadiusClass,
|
|
3
3
|
useUnderverseUIConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OTPC2OTQ.js";
|
|
5
5
|
import {
|
|
6
6
|
cn,
|
|
7
7
|
useGlobalI18n
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6FAHXNDQ.js";
|
|
9
9
|
|
|
10
10
|
// src/components/Modal.tsx
|
|
11
11
|
import * as React from "react";
|
|
@@ -253,4 +253,4 @@ var Modal_default = Modal;
|
|
|
253
253
|
export {
|
|
254
254
|
Modal_default
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-UHUKUI5S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6FAHXNDQ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/emoji-ui.tsx
|
|
6
6
|
import React from "react";
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
getEmojiImageUrl,
|
|
80
80
|
EmojiGridButton
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-W3QTP2DM.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -484,6 +484,7 @@ var init_en = __esm({
|
|
|
484
484
|
dragColumn: "Drag Column",
|
|
485
485
|
resizeBoth: "Resize Table",
|
|
486
486
|
resizeCtrlHint: "Drag freely. Hold Ctrl to lock to one axis; hold Ctrl+Shift to preserve proportions",
|
|
487
|
+
fitToEditorWidth: "Fit to Editor Width",
|
|
487
488
|
alignLeft: "Align Table Left",
|
|
488
489
|
alignCenter: "Align Table Center",
|
|
489
490
|
alignRight: "Align Table Right",
|
|
@@ -950,6 +951,7 @@ var init_vi = __esm({
|
|
|
950
951
|
dragColumn: "K\xE9o c\u1ED9t",
|
|
951
952
|
resizeBoth: "\u0110\u1ED5i k\xEDch th\u01B0\u1EDBc b\u1EA3ng",
|
|
952
953
|
resizeCtrlHint: "K\xE9o t\u1EF1 do; gi\u1EEF Ctrl \u0111\u1EC3 kh\xF3a m\u1ED9t chi\u1EC1u, ho\u1EB7c Ctrl+Shift \u0111\u1EC3 gi\u1EEF nguy\xEAn t\u1EF7 l\u1EC7",
|
|
954
|
+
fitToEditorWidth: "V\u1EEBa chi\u1EC1u r\u1ED9ng tr\xECnh so\u1EA1n th\u1EA3o",
|
|
953
955
|
alignLeft: "C\u0103n b\u1EA3ng tr\xE1i",
|
|
954
956
|
alignCenter: "C\u0103n b\u1EA3ng gi\u1EEFa",
|
|
955
957
|
alignRight: "C\u0103n b\u1EA3ng ph\u1EA3i",
|
|
@@ -1416,6 +1418,7 @@ var init_ko = __esm({
|
|
|
1416
1418
|
dragColumn: "\uC5F4 \uB4DC\uB798\uADF8",
|
|
1417
1419
|
resizeBoth: "\uD45C \uD06C\uAE30 \uC870\uC808",
|
|
1418
1420
|
resizeCtrlHint: "\uC790\uC720\uB86D\uAC8C \uB4DC\uB798\uADF8\uD569\uB2C8\uB2E4. Ctrl \uD0A4\uB97C \uB204\uB974\uBA74 \uD55C \uCD95\uC73C\uB85C \uACE0\uC815\uB418\uACE0, Ctrl+Shift \uD0A4\uB97C \uB204\uB974\uBA74 \uBE44\uC728\uC774 \uC720\uC9C0\uB429\uB2C8\uB2E4",
|
|
1421
|
+
fitToEditorWidth: "\uD3B8\uC9D1\uAE30 \uB108\uBE44\uC5D0 \uB9DE\uCD94\uAE30",
|
|
1419
1422
|
alignLeft: "\uD45C \uC67C\uCABD \uC815\uB82C",
|
|
1420
1423
|
alignCenter: "\uD45C \uAC00\uC6B4\uB370 \uC815\uB82C",
|
|
1421
1424
|
alignRight: "\uD45C \uC624\uB978\uCABD \uC815\uB82C",
|
|
@@ -1882,6 +1885,7 @@ var init_ja = __esm({
|
|
|
1882
1885
|
dragColumn: "\u5217\u3092\u30C9\u30E9\u30C3\u30B0",
|
|
1883
1886
|
resizeBoth: "\u8868\u306E\u30B5\u30A4\u30BA\u3092\u5909\u66F4",
|
|
1884
1887
|
resizeCtrlHint: "\u81EA\u7531\u306B\u30C9\u30E9\u30C3\u30B0\u3067\u304D\u307E\u3059\u3002Ctrl\u30AD\u30FC\u30671\u65B9\u5411\u306B\u56FA\u5B9A\u3057\u3001Ctrl+Shift\u30AD\u30FC\u3067\u7E26\u6A2A\u6BD4\u3092\u7DAD\u6301\u3057\u307E\u3059",
|
|
1888
|
+
fitToEditorWidth: "\u30A8\u30C7\u30A3\u30BF\u30FC\u306E\u5E45\u306B\u5408\u308F\u305B\u308B",
|
|
1885
1889
|
alignLeft: "\u8868\u3092\u5DE6\u5BC4\u305B",
|
|
1886
1890
|
alignCenter: "\u8868\u3092\u4E2D\u592E\u63C3\u3048",
|
|
1887
1891
|
alignRight: "\u8868\u3092\u53F3\u5BC4\u305B",
|
|
@@ -48220,8 +48224,8 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
48220
48224
|
updateTableResizePreview(pendingDimensions);
|
|
48221
48225
|
setDocumentCursor(editorDocument, edge === "both" ? "nwse-resize" : "ew-resize");
|
|
48222
48226
|
}, [editor, editorDocument, updateTableResizePreview]);
|
|
48223
|
-
const fitTableToEditorWidth = import_react78.default.useCallback((
|
|
48224
|
-
if (
|
|
48227
|
+
const fitTableToEditorWidth = import_react78.default.useCallback(() => {
|
|
48228
|
+
if (dragStateRef.current) return;
|
|
48225
48229
|
const activeLayout = layoutRef.current;
|
|
48226
48230
|
if (!activeLayout) return;
|
|
48227
48231
|
const snapshot = createTableSizeSnapshot(
|
|
@@ -48232,8 +48236,6 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
48232
48236
|
activeLayout.viewportWidth
|
|
48233
48237
|
);
|
|
48234
48238
|
if (!snapshot) return;
|
|
48235
|
-
event.preventDefault();
|
|
48236
|
-
event.stopPropagation();
|
|
48237
48239
|
const didResize = applyTableSize(editor, snapshot, {
|
|
48238
48240
|
width: Math.round(activeLayout.viewportWidth),
|
|
48239
48241
|
height: snapshot.startHeight,
|
|
@@ -48621,6 +48623,11 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
48621
48623
|
icon: import_lucide_react57.Paintbrush,
|
|
48622
48624
|
onClick: openCellInspector
|
|
48623
48625
|
}] : [],
|
|
48626
|
+
{
|
|
48627
|
+
label: t("tableMenu.fitToEditorWidth"),
|
|
48628
|
+
icon: import_lucide_react57.Minimize2,
|
|
48629
|
+
onClick: fitTableToEditorWidth
|
|
48630
|
+
},
|
|
48624
48631
|
{
|
|
48625
48632
|
label: t("tableMenu.alignLeft"),
|
|
48626
48633
|
icon: import_lucide_react57.AlignLeft,
|
|
@@ -48685,7 +48692,7 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
48685
48692
|
destructive: true
|
|
48686
48693
|
}
|
|
48687
48694
|
];
|
|
48688
|
-
}, [editor, layout, openCellInspector, runAtActiveCell, showCellInspector, t]);
|
|
48695
|
+
}, [editor, fitTableToEditorWidth, layout, openCellInspector, runAtActiveCell, showCellInspector, t]);
|
|
48689
48696
|
const getRowHandleMenuItems = import_react78.default.useCallback((rowHandle) => [
|
|
48690
48697
|
{
|
|
48691
48698
|
label: t("tableMenu.addRowBefore"),
|