@gantfdt/semiword 1.1.1 → 1.2.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.
- package/dist-lib/ai.mjs +5 -5
- package/dist-lib/{chunk-YE3O5CVM.mjs → chunk-6JRQONYS.mjs} +135 -10
- package/dist-lib/chunk-6JRQONYS.mjs.map +1 -0
- package/dist-lib/{chunk-JUWUIWRJ.mjs → chunk-76EFOMJ3.mjs} +3 -3
- package/dist-lib/{chunk-JUWUIWRJ.mjs.map → chunk-76EFOMJ3.mjs.map} +1 -1
- package/dist-lib/{chunk-YLBAMBKK.mjs → chunk-ERWBH53C.mjs} +3 -3
- package/dist-lib/{chunk-YLBAMBKK.mjs.map → chunk-ERWBH53C.mjs.map} +1 -1
- package/dist-lib/{chunk-IQZHLLFT.mjs → chunk-G7P3OSVI.mjs} +3 -3
- package/dist-lib/{chunk-IQZHLLFT.mjs.map → chunk-G7P3OSVI.mjs.map} +1 -1
- package/dist-lib/{chunk-V4AKDECS.mjs → chunk-INIR3SZ3.mjs} +14 -8
- package/dist-lib/chunk-INIR3SZ3.mjs.map +1 -0
- package/dist-lib/{chunk-UNGEXPJP.mjs → chunk-MEI6FU7P.mjs} +5 -5
- package/dist-lib/{chunk-UNGEXPJP.mjs.map → chunk-MEI6FU7P.mjs.map} +1 -1
- package/dist-lib/{chunk-2NQHWRMX.mjs → chunk-YMND7XVN.mjs} +6 -6
- package/dist-lib/{chunk-2NQHWRMX.mjs.map → chunk-YMND7XVN.mjs.map} +1 -1
- package/dist-lib/designer.mjs +6 -6
- package/dist-lib/editor.d.mts +3 -3
- package/dist-lib/editor.mjs +6 -6
- package/dist-lib/gant-ai.mjs +5 -5
- package/dist-lib/index.d.mts +2 -2
- package/dist-lib/index.mjs +6 -6
- package/dist-lib/io.mjs +2 -2
- package/dist-lib/sdk.mjs +3 -3
- package/dist-lib/storage.d.mts +3 -3
- package/dist-lib/{types-D7kCE5Mu.d.mts → types-D43MTtwD.d.mts} +4 -0
- package/dist-lib/{useDocumentPersistence-CDUT0u5S.d.mts → useDocumentPersistence-0s-GS72-.d.mts} +1 -1
- package/package.json +1 -1
- package/dist-lib/chunk-V4AKDECS.mjs.map +0 -1
- package/dist-lib/chunk-YE3O5CVM.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEditorRefApi, isTemplateTableEl, useTableActions, useTableRowColActions } from './chunk-
|
|
2
|
-
import { glassSurfaceCss, createCssScope, templateCss, typographyCss, codeBlockCss, tableCss, fixedTableCss, getDefaultPlaceholder, PluginRegistry, BUILTIN_PLUGINS, MINIMAL_PLUGINS, isSafeCssColor, sanitizeJsonContent, findAncestor } from './chunk-
|
|
1
|
+
import { useEditorRefApi, isTemplateTableEl, useTableActions, useTableRowColActions } from './chunk-G7P3OSVI.mjs';
|
|
2
|
+
import { glassSurfaceCss, createCssScope, templateCss, typographyCss, codeBlockCss, tableCss, fixedTableCss, getDefaultPlaceholder, PluginRegistry, BUILTIN_PLUGINS, MINIMAL_PLUGINS, isSafeCssColor, sanitizeJsonContent, findAncestor } from './chunk-6JRQONYS.mjs';
|
|
3
3
|
import { createStyles, Button, IconChevronDown, Tooltip, Tag, Dropdown, Divider, Input, InputNumber } from './chunk-WT7ZJINB.mjs';
|
|
4
4
|
import { sanitizeHtml } from './chunk-7D6NMYFG.mjs';
|
|
5
5
|
import { tr } from './chunk-W627LLF4.mjs';
|
|
@@ -1555,10 +1555,9 @@ var useToolbarStyles = createStyles(({ css, token, sizeToken, glassEffect, getAl
|
|
|
1555
1555
|
gap: 4px;
|
|
1556
1556
|
font-size: ${token.fontSizeLG}px;
|
|
1557
1557
|
`,
|
|
1558
|
-
/*
|
|
1558
|
+
/* 触发器文字列:宽度由工具栏项按需固定(triggerLabelWidth),未配置时随文案自适应 */
|
|
1559
1559
|
dropdownTriggerLabel: css`
|
|
1560
1560
|
display: inline-block;
|
|
1561
|
-
width: 2em;
|
|
1562
1561
|
text-align: left;
|
|
1563
1562
|
white-space: nowrap;
|
|
1564
1563
|
`,
|
|
@@ -2323,7 +2322,7 @@ function ToolbarDropdown({ item, editor }) {
|
|
|
2323
2322
|
if (options.length === 0) return null;
|
|
2324
2323
|
const activeIndex = options.findIndex((opt) => opt.isActive?.(editor) ?? false);
|
|
2325
2324
|
const activeOption = activeIndex >= 0 ? options[activeIndex] : null;
|
|
2326
|
-
const triggerLabel = activeOption?.label ?? item.label ?? "";
|
|
2325
|
+
const triggerLabel = activeOption?.label ?? item.fallbackLabel ?? item.label ?? "";
|
|
2327
2326
|
const menuItems = options.map((opt, index) => ({
|
|
2328
2327
|
key: String(index),
|
|
2329
2328
|
label: opt.label,
|
|
@@ -2346,7 +2345,14 @@ function ToolbarDropdown({ item, editor }) {
|
|
|
2346
2345
|
},
|
|
2347
2346
|
children: /* @__PURE__ */ jsxs(ToolbarDropdownTrigger, { children: [
|
|
2348
2347
|
item.icon,
|
|
2349
|
-
/* @__PURE__ */ jsx(
|
|
2348
|
+
/* @__PURE__ */ jsx(
|
|
2349
|
+
"span",
|
|
2350
|
+
{
|
|
2351
|
+
className: styles.dropdownTriggerLabel,
|
|
2352
|
+
style: item.triggerLabelWidth ? { width: `${item.triggerLabelWidth}em` } : void 0,
|
|
2353
|
+
children: triggerLabel
|
|
2354
|
+
}
|
|
2355
|
+
)
|
|
2350
2356
|
] })
|
|
2351
2357
|
}
|
|
2352
2358
|
);
|
|
@@ -3363,5 +3369,5 @@ var RichEditor = forwardRef(function RichEditor2(props, ref) {
|
|
|
3363
3369
|
});
|
|
3364
3370
|
|
|
3365
3371
|
export { CollaborationProvider, EditorContext, RichEditor, useCollaboration, useEditorContext, usePluginRegistry };
|
|
3366
|
-
//# sourceMappingURL=chunk-
|
|
3367
|
-
//# sourceMappingURL=chunk-
|
|
3372
|
+
//# sourceMappingURL=chunk-INIR3SZ3.mjs.map
|
|
3373
|
+
//# sourceMappingURL=chunk-INIR3SZ3.mjs.map
|