@underverse-ui/underverse 2.0.36 → 2.0.38
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/{chunk-V4VZZHV7.js → chunk-GZ7EDNGF.js} +202 -184
- package/dist/chunk-GZ7EDNGF.js.map +1 -0
- package/dist/{chunk-SCW2XGCE.js → chunk-R27HNUZQ.js} +23 -17
- package/dist/chunk-R27HNUZQ.js.map +1 -0
- package/dist/index.cjs +497 -465
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{menu-bar-MX3LXG6T.js → menu-bar-VXAMTP3E.js} +2 -2
- package/dist/ueditor.cjs +509 -477
- package/dist/ueditor.cjs.map +1 -1
- package/dist/ueditor.d.cts +2 -0
- package/dist/ueditor.d.ts +2 -0
- package/dist/ueditor.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-SCW2XGCE.js.map +0 -1
- package/dist/chunk-V4VZZHV7.js.map +0 -1
- /package/dist/{menu-bar-MX3LXG6T.js.map → menu-bar-VXAMTP3E.js.map} +0 -0
|
@@ -19,6 +19,9 @@ import {
|
|
|
19
19
|
MIN_TABLE_ROW_HEIGHT,
|
|
20
20
|
ROW_RESIZE_LINE_THICKNESS,
|
|
21
21
|
TABLE_WIDTH_BASIS_POINTS,
|
|
22
|
+
TableVerticalAlignBottomIcon,
|
|
23
|
+
TableVerticalAlignMiddleIcon,
|
|
24
|
+
TableVerticalAlignTopIcon,
|
|
22
25
|
TextColorIcon,
|
|
23
26
|
ToolbarButton,
|
|
24
27
|
UEDITOR_PROSEMIRROR_CLASS_NAME,
|
|
@@ -93,7 +96,7 @@ import {
|
|
|
93
96
|
sanitizeUEditorUrl,
|
|
94
97
|
useEditorColors,
|
|
95
98
|
useSharedEditorUiRenderState
|
|
96
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-GZ7EDNGF.js";
|
|
97
100
|
import {
|
|
98
101
|
Tooltip
|
|
99
102
|
} from "./chunk-EN33T3LJ.js";
|
|
@@ -5736,6 +5739,7 @@ function buildUEditorExtensions({
|
|
|
5736
5739
|
fallbackToDataUrl,
|
|
5737
5740
|
onImageUploadError,
|
|
5738
5741
|
editable = true,
|
|
5742
|
+
enableAutocomplete = true,
|
|
5739
5743
|
fetchMetadata
|
|
5740
5744
|
}) {
|
|
5741
5745
|
return [
|
|
@@ -5862,12 +5866,14 @@ function buildUEditorExtensions({
|
|
|
5862
5866
|
return true;
|
|
5863
5867
|
}
|
|
5864
5868
|
}),
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5869
|
+
...enableAutocomplete ? [
|
|
5870
|
+
SlashCommand.configure({
|
|
5871
|
+
messages: buildSlashCommandMessages(translate),
|
|
5872
|
+
getPortalContainer
|
|
5873
|
+
}),
|
|
5874
|
+
FormulaSuggestion.configure({ getPortalContainer }),
|
|
5875
|
+
EmojiSuggestion.configure({ getPortalContainer })
|
|
5876
|
+
] : [],
|
|
5871
5877
|
Callout,
|
|
5872
5878
|
Bookmark.configure({
|
|
5873
5879
|
fetchMetadata
|
|
@@ -5908,9 +5914,6 @@ import {
|
|
|
5908
5914
|
Unlink,
|
|
5909
5915
|
ExternalLink as ExternalLink2,
|
|
5910
5916
|
Sigma as Sigma2,
|
|
5911
|
-
AlignStartVertical,
|
|
5912
|
-
AlignCenterVertical,
|
|
5913
|
-
AlignEndVertical,
|
|
5914
5917
|
ArrowDown,
|
|
5915
5918
|
ArrowRight,
|
|
5916
5919
|
WrapText
|
|
@@ -6900,7 +6903,7 @@ var BubbleMenuContent = ({
|
|
|
6900
6903
|
] })
|
|
6901
6904
|
] });
|
|
6902
6905
|
}
|
|
6903
|
-
const VerticalAlignActiveIcon = currentCellVerticalAlign === "middle" ?
|
|
6906
|
+
const VerticalAlignActiveIcon = currentCellVerticalAlign === "middle" ? TableVerticalAlignMiddleIcon : currentCellVerticalAlign === "bottom" ? TableVerticalAlignBottomIcon : TableVerticalAlignTopIcon;
|
|
6904
6907
|
if (isTableCellSelection) {
|
|
6905
6908
|
return /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-0.5 p-1", "data-ueditor-cell-inspector": "", children: [
|
|
6906
6909
|
/* @__PURE__ */ jsx13(
|
|
@@ -6994,7 +6997,7 @@ var BubbleMenuContent = ({
|
|
|
6994
6997
|
/* @__PURE__ */ jsx13(
|
|
6995
6998
|
DropdownMenuItem,
|
|
6996
6999
|
{
|
|
6997
|
-
icon:
|
|
7000
|
+
icon: TableVerticalAlignTopIcon,
|
|
6998
7001
|
label: t("tableMenu.alignVerticalTop") || "Align top",
|
|
6999
7002
|
onClick: () => applyTableCellAttribute(editor, "verticalAlign", "top", { focus: false }),
|
|
7000
7003
|
active: currentCellVerticalAlign === "top"
|
|
@@ -7003,7 +7006,7 @@ var BubbleMenuContent = ({
|
|
|
7003
7006
|
/* @__PURE__ */ jsx13(
|
|
7004
7007
|
DropdownMenuItem,
|
|
7005
7008
|
{
|
|
7006
|
-
icon:
|
|
7009
|
+
icon: TableVerticalAlignMiddleIcon,
|
|
7007
7010
|
label: t("tableMenu.alignVerticalMiddle") || "Align middle",
|
|
7008
7011
|
onClick: () => applyTableCellAttribute(editor, "verticalAlign", "middle", { focus: false }),
|
|
7009
7012
|
active: currentCellVerticalAlign === "middle"
|
|
@@ -7012,7 +7015,7 @@ var BubbleMenuContent = ({
|
|
|
7012
7015
|
/* @__PURE__ */ jsx13(
|
|
7013
7016
|
DropdownMenuItem,
|
|
7014
7017
|
{
|
|
7015
|
-
icon:
|
|
7018
|
+
icon: TableVerticalAlignBottomIcon,
|
|
7016
7019
|
label: t("tableMenu.alignVerticalBottom") || "Align bottom",
|
|
7017
7020
|
onClick: () => applyTableCellAttribute(editor, "verticalAlign", "bottom", { focus: false }),
|
|
7018
7021
|
active: currentCellVerticalAlign === "bottom"
|
|
@@ -14997,7 +15000,7 @@ function useUEditorOutput({
|
|
|
14997
15000
|
// src/components/UEditor/UEditor.tsx
|
|
14998
15001
|
import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
14999
15002
|
var LazyMenuBar = React17.lazy(async () => {
|
|
15000
|
-
const { MenuBar } = await import("./menu-bar-
|
|
15003
|
+
const { MenuBar } = await import("./menu-bar-VXAMTP3E.js");
|
|
15001
15004
|
return { default: MenuBar };
|
|
15002
15005
|
});
|
|
15003
15006
|
var UEditor = React17.forwardRef(({
|
|
@@ -15026,6 +15029,7 @@ var UEditor = React17.forwardRef(({
|
|
|
15026
15029
|
showBubbleMenu = true,
|
|
15027
15030
|
bubbleMenuPlacement = "auto",
|
|
15028
15031
|
showFloatingMenu = false,
|
|
15032
|
+
enableAutocomplete = true,
|
|
15029
15033
|
showCharacterCount = true,
|
|
15030
15034
|
showFooter = true,
|
|
15031
15035
|
maxCharacters,
|
|
@@ -15108,11 +15112,12 @@ var UEditor = React17.forwardRef(({
|
|
|
15108
15112
|
fallbackToDataUrl,
|
|
15109
15113
|
onImageUploadError,
|
|
15110
15114
|
editable,
|
|
15115
|
+
enableAutocomplete,
|
|
15111
15116
|
fetchMetadata
|
|
15112
15117
|
}),
|
|
15113
15118
|
...extraExtensions ?? []
|
|
15114
15119
|
],
|
|
15115
|
-
[getPortalContainer, effectivePlaceholder, t, maxCharacters, uploadImage, resolvedUploadFile, imageInsertMode, maxImageFileSize, allowedImageMimeTypes, fallbackToDataUrl, onImageUploadError, editable, fetchMetadata, extraExtensions]
|
|
15120
|
+
[getPortalContainer, effectivePlaceholder, t, maxCharacters, uploadImage, resolvedUploadFile, imageInsertMode, maxImageFileSize, allowedImageMimeTypes, fallbackToDataUrl, onImageUploadError, editable, enableAutocomplete, fetchMetadata, extraExtensions]
|
|
15116
15121
|
);
|
|
15117
15122
|
const syncFormulaRangeHighlight = React17.useCallback((pickState) => {
|
|
15118
15123
|
const container = formulaRangeSurfaceRef.current;
|
|
@@ -15124,6 +15129,7 @@ var UEditor = React17.forwardRef(({
|
|
|
15124
15129
|
content,
|
|
15125
15130
|
editable,
|
|
15126
15131
|
autofocus,
|
|
15132
|
+
enableInputRules: enableAutocomplete,
|
|
15127
15133
|
editorProps: {
|
|
15128
15134
|
handleDOMEvents: {
|
|
15129
15135
|
mousedown: (view, event) => {
|
|
@@ -15491,4 +15497,4 @@ export {
|
|
|
15491
15497
|
prepareUEditorContentForSave,
|
|
15492
15498
|
UEditor_default
|
|
15493
15499
|
};
|
|
15494
|
-
//# sourceMappingURL=chunk-
|
|
15500
|
+
//# sourceMappingURL=chunk-R27HNUZQ.js.map
|