@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
package/dist/index.d.cts
CHANGED
|
@@ -3964,6 +3964,7 @@ declare const underverseMessages: {
|
|
|
3964
3964
|
dragColumn: string;
|
|
3965
3965
|
resizeBoth: string;
|
|
3966
3966
|
resizeCtrlHint: string;
|
|
3967
|
+
fitToEditorWidth: string;
|
|
3967
3968
|
alignLeft: string;
|
|
3968
3969
|
alignCenter: string;
|
|
3969
3970
|
alignRight: string;
|
|
@@ -4423,6 +4424,7 @@ declare const underverseMessages: {
|
|
|
4423
4424
|
dragColumn: string;
|
|
4424
4425
|
resizeBoth: string;
|
|
4425
4426
|
resizeCtrlHint: string;
|
|
4427
|
+
fitToEditorWidth: string;
|
|
4426
4428
|
alignLeft: string;
|
|
4427
4429
|
alignCenter: string;
|
|
4428
4430
|
alignRight: string;
|
|
@@ -4882,6 +4884,7 @@ declare const underverseMessages: {
|
|
|
4882
4884
|
dragColumn: string;
|
|
4883
4885
|
resizeBoth: string;
|
|
4884
4886
|
resizeCtrlHint: string;
|
|
4887
|
+
fitToEditorWidth: string;
|
|
4885
4888
|
alignLeft: string;
|
|
4886
4889
|
alignCenter: string;
|
|
4887
4890
|
alignRight: string;
|
|
@@ -5341,6 +5344,7 @@ declare const underverseMessages: {
|
|
|
5341
5344
|
dragColumn: string;
|
|
5342
5345
|
resizeBoth: string;
|
|
5343
5346
|
resizeCtrlHint: string;
|
|
5347
|
+
fitToEditorWidth: string;
|
|
5344
5348
|
alignLeft: string;
|
|
5345
5349
|
alignCenter: string;
|
|
5346
5350
|
alignRight: string;
|
|
@@ -5803,6 +5807,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
5803
5807
|
dragColumn: string;
|
|
5804
5808
|
resizeBoth: string;
|
|
5805
5809
|
resizeCtrlHint: string;
|
|
5810
|
+
fitToEditorWidth: string;
|
|
5806
5811
|
alignLeft: string;
|
|
5807
5812
|
alignCenter: string;
|
|
5808
5813
|
alignRight: string;
|
|
@@ -6261,6 +6266,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
6261
6266
|
dragColumn: string;
|
|
6262
6267
|
resizeBoth: string;
|
|
6263
6268
|
resizeCtrlHint: string;
|
|
6269
|
+
fitToEditorWidth: string;
|
|
6264
6270
|
alignLeft: string;
|
|
6265
6271
|
alignCenter: string;
|
|
6266
6272
|
alignRight: string;
|
|
@@ -6719,6 +6725,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
6719
6725
|
dragColumn: string;
|
|
6720
6726
|
resizeBoth: string;
|
|
6721
6727
|
resizeCtrlHint: string;
|
|
6728
|
+
fitToEditorWidth: string;
|
|
6722
6729
|
alignLeft: string;
|
|
6723
6730
|
alignCenter: string;
|
|
6724
6731
|
alignRight: string;
|
|
@@ -7177,6 +7184,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
7177
7184
|
dragColumn: string;
|
|
7178
7185
|
resizeBoth: string;
|
|
7179
7186
|
resizeCtrlHint: string;
|
|
7187
|
+
fitToEditorWidth: string;
|
|
7180
7188
|
alignLeft: string;
|
|
7181
7189
|
alignCenter: string;
|
|
7182
7190
|
alignRight: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3964,6 +3964,7 @@ declare const underverseMessages: {
|
|
|
3964
3964
|
dragColumn: string;
|
|
3965
3965
|
resizeBoth: string;
|
|
3966
3966
|
resizeCtrlHint: string;
|
|
3967
|
+
fitToEditorWidth: string;
|
|
3967
3968
|
alignLeft: string;
|
|
3968
3969
|
alignCenter: string;
|
|
3969
3970
|
alignRight: string;
|
|
@@ -4423,6 +4424,7 @@ declare const underverseMessages: {
|
|
|
4423
4424
|
dragColumn: string;
|
|
4424
4425
|
resizeBoth: string;
|
|
4425
4426
|
resizeCtrlHint: string;
|
|
4427
|
+
fitToEditorWidth: string;
|
|
4426
4428
|
alignLeft: string;
|
|
4427
4429
|
alignCenter: string;
|
|
4428
4430
|
alignRight: string;
|
|
@@ -4882,6 +4884,7 @@ declare const underverseMessages: {
|
|
|
4882
4884
|
dragColumn: string;
|
|
4883
4885
|
resizeBoth: string;
|
|
4884
4886
|
resizeCtrlHint: string;
|
|
4887
|
+
fitToEditorWidth: string;
|
|
4885
4888
|
alignLeft: string;
|
|
4886
4889
|
alignCenter: string;
|
|
4887
4890
|
alignRight: string;
|
|
@@ -5341,6 +5344,7 @@ declare const underverseMessages: {
|
|
|
5341
5344
|
dragColumn: string;
|
|
5342
5345
|
resizeBoth: string;
|
|
5343
5346
|
resizeCtrlHint: string;
|
|
5347
|
+
fitToEditorWidth: string;
|
|
5344
5348
|
alignLeft: string;
|
|
5345
5349
|
alignCenter: string;
|
|
5346
5350
|
alignRight: string;
|
|
@@ -5803,6 +5807,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
5803
5807
|
dragColumn: string;
|
|
5804
5808
|
resizeBoth: string;
|
|
5805
5809
|
resizeCtrlHint: string;
|
|
5810
|
+
fitToEditorWidth: string;
|
|
5806
5811
|
alignLeft: string;
|
|
5807
5812
|
alignCenter: string;
|
|
5808
5813
|
alignRight: string;
|
|
@@ -6261,6 +6266,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
6261
6266
|
dragColumn: string;
|
|
6262
6267
|
resizeBoth: string;
|
|
6263
6268
|
resizeCtrlHint: string;
|
|
6269
|
+
fitToEditorWidth: string;
|
|
6264
6270
|
alignLeft: string;
|
|
6265
6271
|
alignCenter: string;
|
|
6266
6272
|
alignRight: string;
|
|
@@ -6719,6 +6725,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
6719
6725
|
dragColumn: string;
|
|
6720
6726
|
resizeBoth: string;
|
|
6721
6727
|
resizeCtrlHint: string;
|
|
6728
|
+
fitToEditorWidth: string;
|
|
6722
6729
|
alignLeft: string;
|
|
6723
6730
|
alignCenter: string;
|
|
6724
6731
|
alignRight: string;
|
|
@@ -7177,6 +7184,7 @@ declare function getUnderverseMessages(locale?: UnderverseLocale): {
|
|
|
7177
7184
|
dragColumn: string;
|
|
7178
7185
|
resizeBoth: string;
|
|
7179
7186
|
resizeCtrlHint: string;
|
|
7187
|
+
fitToEditorWidth: string;
|
|
7180
7188
|
alignLeft: string;
|
|
7181
7189
|
alignCenter: string;
|
|
7182
7190
|
alignRight: string;
|
package/dist/index.js
CHANGED
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
extractImageSrcsFromHtml,
|
|
5
5
|
normalizeImageUrl,
|
|
6
6
|
prepareUEditorContentForSave
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FQVWYDKP.js";
|
|
8
8
|
import {
|
|
9
9
|
EmojiPicker_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L73HBI6E.js";
|
|
11
11
|
import {
|
|
12
12
|
getEmojiImageUrl,
|
|
13
13
|
getEmojiUnifiedCode,
|
|
14
14
|
setEmojiBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W3QTP2DM.js";
|
|
16
16
|
import "./chunk-4TYW5K4J.js";
|
|
17
17
|
import {
|
|
18
18
|
Modal_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UHUKUI5S.js";
|
|
20
20
|
import {
|
|
21
21
|
DropdownMenuItem,
|
|
22
22
|
DropdownMenuSeparator,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
shadcnAnimationStyles,
|
|
32
32
|
useShadCNAnimations,
|
|
33
33
|
useUnderverseUIConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OTPC2OTQ.js";
|
|
35
35
|
import {
|
|
36
36
|
ForceInternalTranslationsProvider,
|
|
37
37
|
NextIntlAdapter,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
useUnderverseLocale,
|
|
59
59
|
useUnderverseTranslations,
|
|
60
60
|
vi_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6FAHXNDQ.js";
|
|
62
62
|
import {
|
|
63
63
|
__export,
|
|
64
64
|
__require
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Modal_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UHUKUI5S.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_TABLE_ROW_HEIGHT,
|
|
7
7
|
DEFAULT_UEDITOR_IMAGE_MAX_FILE_SIZE,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
trackEditorInsertionPosition,
|
|
30
30
|
useDropdownMenuClose,
|
|
31
31
|
useSharedEditorUiRenderState
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OTPC2OTQ.js";
|
|
33
33
|
import {
|
|
34
34
|
cn,
|
|
35
35
|
resolveUEditorPortalContainer,
|
|
36
36
|
useSmartTranslations,
|
|
37
37
|
useUEditorPortalContainerGetter
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6FAHXNDQ.js";
|
|
39
39
|
import "./chunk-NSBPE2FW.js";
|
|
40
40
|
|
|
41
41
|
// src/components/UEditor/menu-bar.tsx
|
|
@@ -1118,4 +1118,4 @@ var MenuBar = ({
|
|
|
1118
1118
|
export {
|
|
1119
1119
|
MenuBar
|
|
1120
1120
|
};
|
|
1121
|
-
//# sourceMappingURL=menu-bar-
|
|
1121
|
+
//# sourceMappingURL=menu-bar-HZBBRX42.js.map
|
package/dist/ueditor.cjs
CHANGED
|
@@ -343,6 +343,7 @@ var init_en = __esm({
|
|
|
343
343
|
dragColumn: "Drag Column",
|
|
344
344
|
resizeBoth: "Resize Table",
|
|
345
345
|
resizeCtrlHint: "Drag freely. Hold Ctrl to lock to one axis; hold Ctrl+Shift to preserve proportions",
|
|
346
|
+
fitToEditorWidth: "Fit to Editor Width",
|
|
346
347
|
alignLeft: "Align Table Left",
|
|
347
348
|
alignCenter: "Align Table Center",
|
|
348
349
|
alignRight: "Align Table Right",
|
|
@@ -809,6 +810,7 @@ var init_vi = __esm({
|
|
|
809
810
|
dragColumn: "K\xE9o c\u1ED9t",
|
|
810
811
|
resizeBoth: "\u0110\u1ED5i k\xEDch th\u01B0\u1EDBc b\u1EA3ng",
|
|
811
812
|
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",
|
|
813
|
+
fitToEditorWidth: "V\u1EEBa chi\u1EC1u r\u1ED9ng tr\xECnh so\u1EA1n th\u1EA3o",
|
|
812
814
|
alignLeft: "C\u0103n b\u1EA3ng tr\xE1i",
|
|
813
815
|
alignCenter: "C\u0103n b\u1EA3ng gi\u1EEFa",
|
|
814
816
|
alignRight: "C\u0103n b\u1EA3ng ph\u1EA3i",
|
|
@@ -1275,6 +1277,7 @@ var init_ko = __esm({
|
|
|
1275
1277
|
dragColumn: "\uC5F4 \uB4DC\uB798\uADF8",
|
|
1276
1278
|
resizeBoth: "\uD45C \uD06C\uAE30 \uC870\uC808",
|
|
1277
1279
|
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",
|
|
1280
|
+
fitToEditorWidth: "\uD3B8\uC9D1\uAE30 \uB108\uBE44\uC5D0 \uB9DE\uCD94\uAE30",
|
|
1278
1281
|
alignLeft: "\uD45C \uC67C\uCABD \uC815\uB82C",
|
|
1279
1282
|
alignCenter: "\uD45C \uAC00\uC6B4\uB370 \uC815\uB82C",
|
|
1280
1283
|
alignRight: "\uD45C \uC624\uB978\uCABD \uC815\uB82C",
|
|
@@ -1741,6 +1744,7 @@ var init_ja = __esm({
|
|
|
1741
1744
|
dragColumn: "\u5217\u3092\u30C9\u30E9\u30C3\u30B0",
|
|
1742
1745
|
resizeBoth: "\u8868\u306E\u30B5\u30A4\u30BA\u3092\u5909\u66F4",
|
|
1743
1746
|
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",
|
|
1747
|
+
fitToEditorWidth: "\u30A8\u30C7\u30A3\u30BF\u30FC\u306E\u5E45\u306B\u5408\u308F\u305B\u308B",
|
|
1744
1748
|
alignLeft: "\u8868\u3092\u5DE6\u5BC4\u305B",
|
|
1745
1749
|
alignCenter: "\u8868\u3092\u4E2D\u592E\u63C3\u3048",
|
|
1746
1750
|
alignRight: "\u8868\u3092\u53F3\u5BC4\u305B",
|
|
@@ -23656,8 +23660,8 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
23656
23660
|
updateTableResizePreview(pendingDimensions);
|
|
23657
23661
|
setDocumentCursor(editorDocument, edge === "both" ? "nwse-resize" : "ew-resize");
|
|
23658
23662
|
}, [editor, editorDocument, updateTableResizePreview]);
|
|
23659
|
-
const fitTableToEditorWidth = import_react38.default.useCallback((
|
|
23660
|
-
if (
|
|
23663
|
+
const fitTableToEditorWidth = import_react38.default.useCallback(() => {
|
|
23664
|
+
if (dragStateRef.current) return;
|
|
23661
23665
|
const activeLayout = layoutRef.current;
|
|
23662
23666
|
if (!activeLayout) return;
|
|
23663
23667
|
const snapshot = createTableSizeSnapshot(
|
|
@@ -23668,8 +23672,6 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
23668
23672
|
activeLayout.viewportWidth
|
|
23669
23673
|
);
|
|
23670
23674
|
if (!snapshot) return;
|
|
23671
|
-
event.preventDefault();
|
|
23672
|
-
event.stopPropagation();
|
|
23673
23675
|
const didResize = applyTableSize(editor, snapshot, {
|
|
23674
23676
|
width: Math.round(activeLayout.viewportWidth),
|
|
23675
23677
|
height: snapshot.startHeight,
|
|
@@ -24057,6 +24059,11 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
24057
24059
|
icon: import_lucide_react18.Paintbrush,
|
|
24058
24060
|
onClick: openCellInspector
|
|
24059
24061
|
}] : [],
|
|
24062
|
+
{
|
|
24063
|
+
label: t("tableMenu.fitToEditorWidth"),
|
|
24064
|
+
icon: import_lucide_react18.Minimize2,
|
|
24065
|
+
onClick: fitTableToEditorWidth
|
|
24066
|
+
},
|
|
24060
24067
|
{
|
|
24061
24068
|
label: t("tableMenu.alignLeft"),
|
|
24062
24069
|
icon: import_lucide_react18.AlignLeft,
|
|
@@ -24121,7 +24128,7 @@ function TableControls({ editor, containerRef, showCellInspector = true }) {
|
|
|
24121
24128
|
destructive: true
|
|
24122
24129
|
}
|
|
24123
24130
|
];
|
|
24124
|
-
}, [editor, layout, openCellInspector, runAtActiveCell, showCellInspector, t]);
|
|
24131
|
+
}, [editor, fitTableToEditorWidth, layout, openCellInspector, runAtActiveCell, showCellInspector, t]);
|
|
24125
24132
|
const getRowHandleMenuItems = import_react38.default.useCallback((rowHandle) => [
|
|
24126
24133
|
{
|
|
24127
24134
|
label: t("tableMenu.addRowBefore"),
|