@yudaocode/univer-docs 1.6.217 → 1.6.219
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/README.md +7 -5
- package/lib/cjs/index.js +5977 -1375
- package/lib/cjs/index.js.map +1 -1
- package/lib/es/index.js +5606 -1052
- package/lib/es/index.js.map +1 -1
- package/lib/types/index.d.ts +377 -11
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import * as _univerjs_core from '@univerjs/core';
|
|
2
|
-
import { ISdtListItem, ICommand, IMutation, IAccessor, DocumentDataModel,
|
|
2
|
+
import { ISdtListItem, ICommand, IMutation, IDocumentData, IAccessor, DocumentDataModel, IDocumentBody, Injector, ITextStyle, Disposable, IDisposable, IUniverInstanceService, Plugin, ICommandService, IParagraph, ITableCell, ITableRow, BooleanNumber, ITable, ISdtRangeProperties, ICustomRange } from '@univerjs/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
declare const YUDAO_DOCS_TEMPLATE_RESOURCE = "YUDAO_DOCS_TEMPLATE_RESOURCE";
|
|
6
6
|
declare const DOC_DRAWING_PLUGIN_RESOURCE = "DOC_DRAWING_PLUGIN";
|
|
7
|
+
declare const YUDAO_DOCS_CALLOUTS = "YUDAO_DOCS_CALLOUTS";
|
|
8
|
+
declare const YUDAO_DOCS_CODE_BLOCKS = "YUDAO_DOCS_CODE_BLOCKS";
|
|
9
|
+
declare const YUDAO_DOCS_CHARTS = "YUDAO_DOCS_CHARTS";
|
|
10
|
+
declare const YUDAO_DOCS_FOOTNOTES = "YUDAO_DOCS_FOOTNOTES";
|
|
11
|
+
declare const YUDAO_DOCS_MINI_SHEETS = "YUDAO_DOCS_MINI_SHEETS";
|
|
12
|
+
declare const YUDAO_DOCS_REVISIONS = "YUDAO_DOCS_REVISIONS";
|
|
13
|
+
declare const YUDAO_DOCS_SMARTART = "YUDAO_DOCS_SMARTART";
|
|
14
|
+
declare const YUDAO_DOCS_LINE_NUMBERING = "YUDAO_DOCS_LINE_NUMBERING";
|
|
15
|
+
declare const YUDAO_DOCS_CAPTIONS = "YUDAO_DOCS_CAPTIONS";
|
|
16
|
+
declare const YUDAO_DOCS_CROSS_REFS = "YUDAO_DOCS_CROSS_REFS";
|
|
7
17
|
/**
|
|
8
18
|
* Document working mode:
|
|
9
19
|
* - `design`: full template authoring (edit body, insert/delete SDT controls, bind datasets & row loops)
|
|
@@ -450,7 +460,7 @@ interface IDocInsertInlineFormulaSpec {
|
|
|
450
460
|
format?: DocInlineFormulaFormat;
|
|
451
461
|
decimals?: number;
|
|
452
462
|
}
|
|
453
|
-
type DocEmbeddedChartType = 'bar' | 'horizontalBar' | 'line' | 'area' | 'pie' | 'doughnut';
|
|
463
|
+
type DocEmbeddedChartType = 'bar' | 'column' | 'horizontalBar' | 'line' | 'area' | 'pie' | 'doughnut' | 'scatter' | 'radar';
|
|
454
464
|
interface IDocChartSeries {
|
|
455
465
|
name: string;
|
|
456
466
|
values: number[];
|
|
@@ -667,21 +677,47 @@ interface IDocImageTransformSpec {
|
|
|
667
677
|
behindDoc?: boolean;
|
|
668
678
|
wrapText?: string;
|
|
669
679
|
}
|
|
670
|
-
type DocSmartArtLayout = 'process' | 'hierarchy' | 'cycle' | 'pyramid' | 'matrix';
|
|
680
|
+
type DocSmartArtLayout = 'process' | 'hierarchy' | 'cycle' | 'list' | 'pyramid' | 'matrix';
|
|
671
681
|
interface IDocSmartArtNode {
|
|
672
682
|
id: string;
|
|
673
683
|
label: string;
|
|
674
684
|
subLabel?: string;
|
|
685
|
+
/** Optional alias for `subLabel` */
|
|
686
|
+
subtitle?: string;
|
|
675
687
|
parentId?: string;
|
|
688
|
+
/** Optional nested child nodes (normalized alongside `parentId`) */
|
|
689
|
+
children?: IDocSmartArtNode[];
|
|
690
|
+
/** Optional per-node accent hex color */
|
|
691
|
+
color?: string;
|
|
676
692
|
}
|
|
677
693
|
interface IDocSmartArtSpec {
|
|
678
694
|
id?: string;
|
|
679
695
|
title?: string;
|
|
680
696
|
layout: DocSmartArtLayout;
|
|
681
697
|
nodes: IDocSmartArtNode[];
|
|
698
|
+
accentColor?: string;
|
|
682
699
|
width?: number;
|
|
683
700
|
height?: number;
|
|
684
701
|
}
|
|
702
|
+
type IDocSmartArtConfig = IDocSmartArtSpec;
|
|
703
|
+
type DocLineNumberRestart = 'continuous' | 'newPage' | 'newSection';
|
|
704
|
+
interface IDocLineNumberingConfig {
|
|
705
|
+
enabled: boolean;
|
|
706
|
+
countBy?: number;
|
|
707
|
+
start?: number;
|
|
708
|
+
restart?: DocLineNumberRestart;
|
|
709
|
+
distanceDxa?: number;
|
|
710
|
+
}
|
|
711
|
+
interface IDocReviewerCopyInput {
|
|
712
|
+
author: string;
|
|
713
|
+
date?: string;
|
|
714
|
+
doc: _univerjs_core.IDocumentData;
|
|
715
|
+
}
|
|
716
|
+
interface IDocReviewerDocxInput {
|
|
717
|
+
author: string;
|
|
718
|
+
date?: string;
|
|
719
|
+
bytes: Uint8Array;
|
|
720
|
+
}
|
|
685
721
|
type DocFieldType = 'PAGE' | 'NUMPAGES' | 'SECTIONPAGES' | 'DATE' | 'TIME' | 'AUTHOR' | 'FILENAME' | 'SEQ' | 'REF' | 'DOCPROPERTY' | 'COMPANY' | 'TITLE';
|
|
686
722
|
interface IDocFieldContext {
|
|
687
723
|
page?: number;
|
|
@@ -706,18 +742,47 @@ interface IDocFieldEntry {
|
|
|
706
742
|
startIndex?: number;
|
|
707
743
|
endIndex?: number;
|
|
708
744
|
}
|
|
709
|
-
type
|
|
745
|
+
type DocCaptionCategoryKey = 'figure' | 'table' | 'equation';
|
|
746
|
+
type DocCaptionCategory = DocCaptionCategoryKey | '图' | '表' | '公式';
|
|
710
747
|
interface IDocCaptionEntry {
|
|
711
748
|
id: string;
|
|
712
749
|
category: DocCaptionCategory;
|
|
750
|
+
prefixLabel: string;
|
|
751
|
+
seqNumber: number;
|
|
752
|
+
/** Alias synchronized with `seqNumber` for backward compatibility */
|
|
713
753
|
number: number;
|
|
714
754
|
title: string;
|
|
755
|
+
anchorIndex: number;
|
|
715
756
|
fullText: string;
|
|
716
757
|
bookmarkName: string;
|
|
717
758
|
fieldId: string;
|
|
718
759
|
startIndex?: number;
|
|
719
760
|
endIndex?: number;
|
|
720
761
|
}
|
|
762
|
+
type DocCrossRefDisplayMode = 'labelAndNumber' | 'fullCaption' | 'pageNumber';
|
|
763
|
+
interface IDocCrossReference {
|
|
764
|
+
id: string;
|
|
765
|
+
targetCaptionId: string;
|
|
766
|
+
displayMode: DocCrossRefDisplayMode;
|
|
767
|
+
renderedText: string;
|
|
768
|
+
anchorIndex: number;
|
|
769
|
+
bookmarkName?: string;
|
|
770
|
+
fieldId?: string;
|
|
771
|
+
startIndex?: number;
|
|
772
|
+
endIndex?: number;
|
|
773
|
+
}
|
|
774
|
+
interface IDocTableOfFiguresItem {
|
|
775
|
+
captionId: string;
|
|
776
|
+
category: DocCaptionCategoryKey;
|
|
777
|
+
prefixLabel: string;
|
|
778
|
+
seqNumber: number;
|
|
779
|
+
title: string;
|
|
780
|
+
labelAndNumber: string;
|
|
781
|
+
fullCaption: string;
|
|
782
|
+
pageNumber: number;
|
|
783
|
+
anchorIndex: number;
|
|
784
|
+
formattedLine: string;
|
|
785
|
+
}
|
|
721
786
|
interface IDocCitationSource {
|
|
722
787
|
id: string;
|
|
723
788
|
author: string;
|
|
@@ -883,6 +948,12 @@ interface IDocTemplateMetadata {
|
|
|
883
948
|
comments?: IDocCommentThread[];
|
|
884
949
|
/** Round 3: Structured Title concept block properties keyed by `paragraphId` */
|
|
885
950
|
titleProperties?: Record<string, IDocTitleProperties>;
|
|
951
|
+
/** Embedded live calculable mini-spreadsheets keyed by `id` */
|
|
952
|
+
miniSheets?: Record<string, IDocMiniSheet>;
|
|
953
|
+
/** Page margin line numbering configuration (`<w:lnNumType>`) */
|
|
954
|
+
lineNumbering?: IDocLineNumberingConfig;
|
|
955
|
+
/** Live cross-references targeting auto-numbered captions (`REF _RefCap_... \h`) */
|
|
956
|
+
crossRefs?: IDocCrossReference[];
|
|
886
957
|
}
|
|
887
958
|
type DocAreaMode = 'edit' | 'readonly' | 'form';
|
|
888
959
|
interface IDocCornerBadge {
|
|
@@ -1109,14 +1180,20 @@ interface IDocCellBorderEdgeSpec {
|
|
|
1109
1180
|
widthPt?: number;
|
|
1110
1181
|
color?: string;
|
|
1111
1182
|
}
|
|
1183
|
+
type IDocTableBorderSide = IDocCellBorderEdgeSpec;
|
|
1112
1184
|
interface IDocTableCellBorders {
|
|
1113
1185
|
top?: IDocCellBorderEdgeSpec;
|
|
1114
1186
|
bottom?: IDocCellBorderEdgeSpec;
|
|
1115
1187
|
left?: IDocCellBorderEdgeSpec;
|
|
1116
1188
|
right?: IDocCellBorderEdgeSpec;
|
|
1189
|
+
diagonalDown?: IDocTableBorderSide;
|
|
1190
|
+
diagonalUp?: IDocTableBorderSide;
|
|
1117
1191
|
}
|
|
1118
1192
|
interface IDocTableCellProperties {
|
|
1119
1193
|
slashType?: DocTableCellSlashType;
|
|
1194
|
+
diagonalDown?: IDocTableBorderSide;
|
|
1195
|
+
diagonalUp?: IDocTableBorderSide;
|
|
1196
|
+
formula?: string;
|
|
1120
1197
|
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
1121
1198
|
locked?: boolean;
|
|
1122
1199
|
hint?: string;
|
|
@@ -1365,6 +1442,42 @@ declare class DocTemplateProtocolError extends Error {
|
|
|
1365
1442
|
rowIndex?: number;
|
|
1366
1443
|
});
|
|
1367
1444
|
}
|
|
1445
|
+
type DocSupportedCodeLanguage = 'typescript' | 'javascript' | 'python' | 'java' | 'sql' | 'json' | 'html/css' | 'html' | 'css' | 'bash' | 'go' | 'rust';
|
|
1446
|
+
interface IDocMiniSheetCell {
|
|
1447
|
+
raw: string;
|
|
1448
|
+
value?: string | number;
|
|
1449
|
+
bold?: boolean;
|
|
1450
|
+
bg?: string;
|
|
1451
|
+
numFmt?: string;
|
|
1452
|
+
}
|
|
1453
|
+
interface IDocMiniSheet {
|
|
1454
|
+
id: string;
|
|
1455
|
+
title: string;
|
|
1456
|
+
rows: number;
|
|
1457
|
+
cols: number;
|
|
1458
|
+
cells: Record<string, IDocMiniSheetCell>;
|
|
1459
|
+
anchorIndex?: number;
|
|
1460
|
+
tableId?: string;
|
|
1461
|
+
}
|
|
1462
|
+
type IDocInsertMiniSheetSpec = Partial<Omit<IDocMiniSheet, 'id'>> & {
|
|
1463
|
+
id?: string;
|
|
1464
|
+
};
|
|
1465
|
+
type DocMarkdownShortcutKind = 'heading' | 'blockquote' | 'codeBlock' | 'callout' | 'checklist' | 'divider';
|
|
1466
|
+
interface IDocMarkdownShortcutMatch {
|
|
1467
|
+
kind: DocMarkdownShortcutKind;
|
|
1468
|
+
trigger: string;
|
|
1469
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1470
|
+
language?: string;
|
|
1471
|
+
calloutPreset?: DocCalloutPreset;
|
|
1472
|
+
checked?: boolean;
|
|
1473
|
+
remainingText: string;
|
|
1474
|
+
}
|
|
1475
|
+
interface IDocDelimitedTableData {
|
|
1476
|
+
rows: string[][];
|
|
1477
|
+
rowCount: number;
|
|
1478
|
+
colCount: number;
|
|
1479
|
+
delimiter: string;
|
|
1480
|
+
}
|
|
1368
1481
|
|
|
1369
1482
|
interface ISyncDocAuxStateMutationParams {
|
|
1370
1483
|
unitId: string;
|
|
@@ -1590,6 +1703,13 @@ interface ISetDocPrintConfigCommandParams {
|
|
|
1590
1703
|
config: Partial<IDocPrintConfig>;
|
|
1591
1704
|
}
|
|
1592
1705
|
declare const SetDocPrintConfigCommand: ICommand<ISetDocPrintConfigCommandParams>;
|
|
1706
|
+
interface ISetDocLineNumberingCommandParams {
|
|
1707
|
+
unitId?: string;
|
|
1708
|
+
config: Partial<IDocLineNumberingConfig> & {
|
|
1709
|
+
enabled: boolean;
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
declare const SetDocLineNumberingCommand: ICommand<ISetDocLineNumberingCommandParams>;
|
|
1593
1713
|
interface IUpdateDocImageTransformCommandParams {
|
|
1594
1714
|
unitId?: string;
|
|
1595
1715
|
drawingId: string;
|
|
@@ -1599,7 +1719,8 @@ declare const UpdateDocImageTransformCommand: ICommand<IUpdateDocImageTransformC
|
|
|
1599
1719
|
interface IInsertDocSmartArtCommandParams {
|
|
1600
1720
|
unitId?: string;
|
|
1601
1721
|
offset?: number;
|
|
1602
|
-
spec
|
|
1722
|
+
spec?: Partial<IDocSmartArtSpec>;
|
|
1723
|
+
idOut?: (id: string) => void;
|
|
1603
1724
|
}
|
|
1604
1725
|
declare const InsertDocSmartArtCommand: ICommand<IInsertDocSmartArtCommandParams>;
|
|
1605
1726
|
interface IUpdateDocSmartArtCommandParams {
|
|
@@ -1673,6 +1794,7 @@ interface IInsertDocCaptionCommandParams {
|
|
|
1673
1794
|
unitId?: string;
|
|
1674
1795
|
category: DocCaptionCategory;
|
|
1675
1796
|
title: string;
|
|
1797
|
+
prefixLabel?: string;
|
|
1676
1798
|
offset?: number;
|
|
1677
1799
|
captionIdOut?: (id: string) => void;
|
|
1678
1800
|
}
|
|
@@ -1680,10 +1802,39 @@ declare const InsertDocCaptionCommand: ICommand<IInsertDocCaptionCommandParams>;
|
|
|
1680
1802
|
interface IInsertDocCrossReferenceCommandParams {
|
|
1681
1803
|
unitId?: string;
|
|
1682
1804
|
targetBookmarkOrCaptionId: string;
|
|
1805
|
+
displayMode?: DocCrossRefDisplayMode;
|
|
1806
|
+
prefixText?: string;
|
|
1683
1807
|
offset?: number;
|
|
1684
1808
|
fieldIdOut?: (id: string) => void;
|
|
1685
1809
|
}
|
|
1686
1810
|
declare const InsertDocCrossReferenceCommand: ICommand<IInsertDocCrossReferenceCommandParams>;
|
|
1811
|
+
interface IInsertDocCrossRefCommandParams {
|
|
1812
|
+
unitId?: string;
|
|
1813
|
+
targetCaptionId: string;
|
|
1814
|
+
displayMode?: DocCrossRefDisplayMode;
|
|
1815
|
+
prefixText?: string;
|
|
1816
|
+
offset?: number;
|
|
1817
|
+
crossRefIdOut?: (id: string) => void;
|
|
1818
|
+
}
|
|
1819
|
+
declare const InsertDocCrossRefCommand: ICommand<IInsertDocCrossRefCommandParams>;
|
|
1820
|
+
interface IBuildDocTableOfFiguresCommandParams {
|
|
1821
|
+
unitId?: string;
|
|
1822
|
+
offset?: number;
|
|
1823
|
+
category?: 'figure' | 'table' | 'equation' | 'all';
|
|
1824
|
+
title?: string;
|
|
1825
|
+
showPageNumbers?: boolean;
|
|
1826
|
+
}
|
|
1827
|
+
declare const BuildDocTableOfFiguresCommand: ICommand<IBuildDocTableOfFiguresCommandParams>;
|
|
1828
|
+
interface IRefreshDocCaptionsAndCrossRefsCommandParams {
|
|
1829
|
+
unitId?: string;
|
|
1830
|
+
}
|
|
1831
|
+
declare const RefreshDocCaptionsAndCrossRefsCommand: ICommand<IRefreshDocCaptionsAndCrossRefsCommandParams>;
|
|
1832
|
+
interface ICombineDocRevisionsCommandParams {
|
|
1833
|
+
unitId?: string;
|
|
1834
|
+
baseDoc?: IDocumentData;
|
|
1835
|
+
reviewerCopies: IDocReviewerCopyInput[];
|
|
1836
|
+
}
|
|
1837
|
+
declare const CombineDocRevisionsCommand: ICommand<ICombineDocRevisionsCommandParams>;
|
|
1687
1838
|
interface IInsertDocCitationCommandParams {
|
|
1688
1839
|
unitId?: string;
|
|
1689
1840
|
source: IDocCitationSource;
|
|
@@ -2035,6 +2186,83 @@ interface ISetDocTitlePropertiesCommandParams {
|
|
|
2035
2186
|
declare const SetDocTitlePropertiesCommand: ICommand<ISetDocTitlePropertiesCommandParams>;
|
|
2036
2187
|
declare const ALL_DOC_ROUND3_COMMANDS: ICommand[];
|
|
2037
2188
|
|
|
2189
|
+
interface IInsertDocBlockquoteCommandParams {
|
|
2190
|
+
unitId?: string;
|
|
2191
|
+
offset?: number;
|
|
2192
|
+
spec?: IDocInsertQuoteSpec;
|
|
2193
|
+
text?: string;
|
|
2194
|
+
citation?: string;
|
|
2195
|
+
}
|
|
2196
|
+
declare const InsertDocBlockquoteCommand: ICommand<IInsertDocBlockquoteCommandParams>;
|
|
2197
|
+
interface ISetDocParagraphHeadingCommandParams {
|
|
2198
|
+
unitId?: string;
|
|
2199
|
+
level: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2200
|
+
offset?: number;
|
|
2201
|
+
textOverride?: string;
|
|
2202
|
+
}
|
|
2203
|
+
declare const SetDocParagraphHeadingCommand: ICommand<ISetDocParagraphHeadingCommandParams>;
|
|
2204
|
+
interface IUpdateDocCodeBlockCommandParams {
|
|
2205
|
+
unitId?: string;
|
|
2206
|
+
id: string;
|
|
2207
|
+
code?: string;
|
|
2208
|
+
language?: string;
|
|
2209
|
+
}
|
|
2210
|
+
declare const UpdateDocCodeBlockCommand: ICommand<IUpdateDocCodeBlockCommandParams>;
|
|
2211
|
+
interface IRemoveDocCodeBlockCommandParams {
|
|
2212
|
+
unitId?: string;
|
|
2213
|
+
id: string;
|
|
2214
|
+
}
|
|
2215
|
+
declare const RemoveDocCodeBlockCommand: ICommand<IRemoveDocCodeBlockCommandParams>;
|
|
2216
|
+
interface IApplyDocMarkdownShortcutCommandParams {
|
|
2217
|
+
unitId?: string;
|
|
2218
|
+
offset?: number;
|
|
2219
|
+
}
|
|
2220
|
+
declare const ApplyDocMarkdownShortcutCommand: ICommand<IApplyDocMarkdownShortcutCommandParams>;
|
|
2221
|
+
interface IInsertDocMiniSheetCommandParams {
|
|
2222
|
+
unitId?: string;
|
|
2223
|
+
offset?: number;
|
|
2224
|
+
spec?: IDocInsertMiniSheetSpec;
|
|
2225
|
+
}
|
|
2226
|
+
declare const InsertDocMiniSheetCommand: ICommand<IInsertDocMiniSheetCommandParams>;
|
|
2227
|
+
interface IUpdateDocMiniSheetCommandParams {
|
|
2228
|
+
unitId?: string;
|
|
2229
|
+
id: string;
|
|
2230
|
+
patch: Partial<Omit<IDocMiniSheet, 'id'>>;
|
|
2231
|
+
}
|
|
2232
|
+
declare const UpdateDocMiniSheetCommand: ICommand<IUpdateDocMiniSheetCommandParams>;
|
|
2233
|
+
interface IRemoveDocMiniSheetCommandParams {
|
|
2234
|
+
unitId?: string;
|
|
2235
|
+
id: string;
|
|
2236
|
+
}
|
|
2237
|
+
declare const RemoveDocMiniSheetCommand: ICommand<IRemoveDocMiniSheetCommandParams>;
|
|
2238
|
+
interface IConvertTextToTableCommandParams {
|
|
2239
|
+
unitId?: string;
|
|
2240
|
+
text?: string;
|
|
2241
|
+
delimiter?: string;
|
|
2242
|
+
startOffset?: number;
|
|
2243
|
+
endOffset?: number;
|
|
2244
|
+
}
|
|
2245
|
+
declare const ConvertTextToTableCommand: ICommand<IConvertTextToTableCommandParams>;
|
|
2246
|
+
interface IConvertTableToTextCommandParams {
|
|
2247
|
+
unitId?: string;
|
|
2248
|
+
tableIndexOrId?: number | string;
|
|
2249
|
+
delimiter?: string;
|
|
2250
|
+
}
|
|
2251
|
+
declare const ConvertTableToTextCommand: ICommand<IConvertTableToTextCommandParams>;
|
|
2252
|
+
interface ISetDocTableCellFormulaCommandParams {
|
|
2253
|
+
unitId?: string;
|
|
2254
|
+
tableIndexOrId: number | string;
|
|
2255
|
+
rowIndex: number;
|
|
2256
|
+
colIndex: number;
|
|
2257
|
+
formula: string;
|
|
2258
|
+
}
|
|
2259
|
+
declare const SetDocTableCellFormulaCommand: ICommand<ISetDocTableCellFormulaCommandParams>;
|
|
2260
|
+
interface IRecalculateDocTableFormulasCommandParams {
|
|
2261
|
+
unitId?: string;
|
|
2262
|
+
}
|
|
2263
|
+
declare const RecalculateDocTableFormulasCommand: ICommand<IRecalculateDocTableFormulasCommandParams>;
|
|
2264
|
+
declare const ALL_DOC_PRO_COMMANDS: ICommand<any>[];
|
|
2265
|
+
|
|
2038
2266
|
declare function getTargetDocModel(accessor: IAccessor, unitId?: string): DocumentDataModel | null;
|
|
2039
2267
|
declare function reinitializeDocHeaderFooterModels(docModel: DocumentDataModel): void;
|
|
2040
2268
|
/**
|
|
@@ -2700,7 +2928,7 @@ declare class DocExtensionRegistryService extends Disposable implements IDocExte
|
|
|
2700
2928
|
|
|
2701
2929
|
declare const UNIVER_DOC_CHART_PALETTE: readonly string[];
|
|
2702
2930
|
/**
|
|
2703
|
-
* Renders a crisp Univer-themed SVG chart (`bar`, `horizontalBar`, `line`, `area`, `pie`, `doughnut`).
|
|
2931
|
+
* Renders a crisp Univer-themed SVG chart (`bar`, `column`, `horizontalBar`, `line`, `area`, `pie`, `doughnut`, `scatter`, `radar`).
|
|
2704
2932
|
*/
|
|
2705
2933
|
declare function renderDocChartSvg(spec: IDocEmbeddedChart): string;
|
|
2706
2934
|
declare function renderDocChartToSvgDataUri(spec: IDocEmbeddedChart): {
|
|
@@ -2825,11 +3053,13 @@ interface ICodeSyntaxToken {
|
|
|
2825
3053
|
color: string;
|
|
2826
3054
|
bold?: boolean;
|
|
2827
3055
|
italic?: boolean;
|
|
3056
|
+
kind?: 'keyword' | 'string' | 'comment' | 'number' | 'tag' | 'plain';
|
|
2828
3057
|
}
|
|
2829
3058
|
/**
|
|
2830
|
-
* Lightweight zero-dependency syntax tokenizer for inline code blocks
|
|
3059
|
+
* Lightweight zero-dependency syntax tokenizer for inline code blocks
|
|
3060
|
+
* (`TypeScript`, `JavaScript`, `Python`, `Java`, `SQL`, `JSON`, `HTML/CSS`, `Bash`, `Go`, `Rust`).
|
|
2831
3061
|
*/
|
|
2832
|
-
declare function tokenizeCodeLineForHighlight(line: string): ICodeSyntaxToken[];
|
|
3062
|
+
declare function tokenizeCodeLineForHighlight(line: string, language?: string): ICodeSyntaxToken[];
|
|
2833
3063
|
/**
|
|
2834
3064
|
* Inserts a `\b` (`CUSTOM_BLOCK`) inline image drawing into `sourceSnapshot` at `rawOffset`,
|
|
2835
3065
|
* keeping `paragraphs`, `sectionBreaks`, `tables`, `customBlocks`, `customRanges`, `textRuns`,
|
|
@@ -3099,6 +3329,9 @@ interface IDocBuilderTableCellInput {
|
|
|
3099
3329
|
rowSpan?: number;
|
|
3100
3330
|
backgroundRgb?: string;
|
|
3101
3331
|
borders?: IDocTableCellBorders;
|
|
3332
|
+
diagonalDown?: IDocCellBorderEdgeSpec;
|
|
3333
|
+
diagonalUp?: IDocCellBorderEdgeSpec;
|
|
3334
|
+
formula?: string;
|
|
3102
3335
|
/** Explicit cell-only border overrides (when omitted on DOCX import, cell inherits `table.borderDefaults`) */
|
|
3103
3336
|
explicitBorders?: Partial<IDocTableCellBorders>;
|
|
3104
3337
|
/** Resolved 4-side cell margins in points (`1 pt = 20 twip`) */
|
|
@@ -3419,9 +3652,12 @@ declare function setParagraphPaginationInSnapshot(sourceSnapshot: IDocumentData,
|
|
|
3419
3652
|
declare function getParagraphPagination(snapshot: Partial<IDocumentData> | null | undefined, paragraphIndex: number): IDocParagraphPaginationSpec;
|
|
3420
3653
|
declare function setDocPrintConfigInSnapshot(sourceSnapshot: IDocumentData, patch: Partial<IDocPrintConfig>): IDocumentData;
|
|
3421
3654
|
declare function getDocPrintConfigFromSnapshot(snapshot: Partial<IDocumentData> | null | undefined): IDocPrintConfig;
|
|
3655
|
+
declare function getDocLineNumberingFromSnapshot(snapshot: Partial<IDocumentData> | null | undefined): IDocLineNumberingConfig;
|
|
3656
|
+
declare function setDocLineNumberingInSnapshot(sourceSnapshot: IDocumentData, patch: Partial<IDocLineNumberingConfig>): IDocumentData;
|
|
3422
3657
|
|
|
3423
3658
|
declare function updateDocImageTransformInSnapshot(sourceSnapshot: IDocumentData, drawingId: string, spec: IDocImageTransformSpec): IDocumentData | null;
|
|
3424
3659
|
declare function getDocImageTransformFromSnapshot(snapshot: Partial<IDocumentData> | null | undefined, drawingId: string): IDocImageTransformSpec | undefined;
|
|
3660
|
+
declare function normalizeSmartArtNodes(rawNodes: IDocSmartArtNode[] | undefined): IDocSmartArtNode[];
|
|
3425
3661
|
declare function renderSmartArtSvg(spec: IDocSmartArtSpec): string;
|
|
3426
3662
|
declare function renderSmartArtToSvgDataUri(spec: IDocSmartArtSpec): {
|
|
3427
3663
|
svg: string;
|
|
@@ -3460,6 +3696,11 @@ declare function findMergedMasterInTableRows(tableRows: ITableRow[] | undefined,
|
|
|
3460
3696
|
} | null;
|
|
3461
3697
|
declare function mergeDocTableCellsInSnapshot(sourceSnapshot: IDocumentData, tableIndex: number, startRow: number, startCol: number, endRow: number, endCol: number): IDocumentData | null;
|
|
3462
3698
|
declare function splitDocTableCellInSnapshot(sourceSnapshot: IDocumentData, tableIndex: number, row: number, col: number): IDocumentData | null;
|
|
3699
|
+
declare function normalizeDocCaptionCategory(rawCategory?: DocCaptionCategory | string, explicitPrefixLabel?: string): {
|
|
3700
|
+
categoryKey: DocCaptionCategoryKey;
|
|
3701
|
+
prefixLabel: string;
|
|
3702
|
+
ooxmlSeqIdent: 'Figure' | 'Table' | 'Equation';
|
|
3703
|
+
};
|
|
3463
3704
|
declare function parseFieldInstrString(rawInstr: string): {
|
|
3464
3705
|
fieldType: DocFieldType;
|
|
3465
3706
|
instructionArgs?: string;
|
|
@@ -3476,17 +3717,40 @@ declare function getDocCustomPropertiesFromSnapshot(snapshot: Partial<IDocumentD
|
|
|
3476
3717
|
};
|
|
3477
3718
|
declare function listDocFields(snapshot: Partial<IDocumentData> | null | undefined): IDocFieldEntry[];
|
|
3478
3719
|
declare function updateAllDocFieldsInSnapshot(snapshot: IDocumentData, context?: IDocFieldContext): boolean;
|
|
3479
|
-
declare function insertCaptionIntoSnapshot(sourceSnapshot: IDocumentData, category: DocCaptionCategory, title: string, offset?: number): {
|
|
3720
|
+
declare function insertCaptionIntoSnapshot(sourceSnapshot: IDocumentData, category: DocCaptionCategory, title: string, offset?: number, explicitPrefixLabel?: string): {
|
|
3480
3721
|
snapshot: IDocumentData;
|
|
3481
3722
|
caption: IDocCaptionEntry;
|
|
3482
3723
|
endOffset: number;
|
|
3483
3724
|
} | null;
|
|
3484
3725
|
declare function listDocCaptions(snapshot: Partial<IDocumentData> | null | undefined): IDocCaptionEntry[];
|
|
3485
|
-
declare function
|
|
3726
|
+
declare function listDocCrossRefs(snapshot: Partial<IDocumentData> | null | undefined): IDocCrossReference[];
|
|
3727
|
+
declare function insertCrossReferenceIntoSnapshot(sourceSnapshot: IDocumentData, targetBookmarkOrCaptionId: string, offset?: number, options?: {
|
|
3728
|
+
displayMode?: DocCrossRefDisplayMode;
|
|
3729
|
+
prefixText?: string;
|
|
3730
|
+
}): {
|
|
3486
3731
|
snapshot: IDocumentData;
|
|
3487
3732
|
field: IDocFieldEntry;
|
|
3733
|
+
crossRef?: IDocCrossReference;
|
|
3734
|
+
endOffset: number;
|
|
3735
|
+
} | null;
|
|
3736
|
+
declare function buildTableOfFiguresEntries(docData: Partial<IDocumentData> | null | undefined, categoryFilter?: 'all' | DocCaptionCategory): IDocTableOfFiguresItem[];
|
|
3737
|
+
declare function insertTableOfFiguresIntoSnapshot(sourceSnapshot: IDocumentData, options?: {
|
|
3738
|
+
offset?: number;
|
|
3739
|
+
title?: string;
|
|
3740
|
+
category?: 'all' | DocCaptionCategory;
|
|
3741
|
+
showPageNumbers?: boolean;
|
|
3742
|
+
}): {
|
|
3743
|
+
snapshot: IDocumentData;
|
|
3744
|
+
entries: IDocTableOfFiguresItem[];
|
|
3488
3745
|
endOffset: number;
|
|
3489
3746
|
} | null;
|
|
3747
|
+
/**
|
|
3748
|
+
* Automatically renumbers all `'figure'` (`图 1`, `图 2`...), `'table'` (`表 1`, `表 2`...), and `'equation'`
|
|
3749
|
+
* captions in document order (`anchorIndex`), updates every `IDocCrossReference` & `REF` field text in
|
|
3750
|
+
* `docData.body.dataStream` (e.g. `见图 1` -> `见图 2`), refreshes any in-document Table of Figures,
|
|
3751
|
+
* and persists `YUDAO_DOCS_CAPTIONS` + `YUDAO_DOCS_CROSS_REFS` on `docData`.
|
|
3752
|
+
*/
|
|
3753
|
+
declare function recalculateDocCaptionsAndCrossRefs(docData: IDocumentData): IDocumentData;
|
|
3490
3754
|
declare function insertCitationIntoSnapshot(sourceSnapshot: IDocumentData, source: IDocCitationSource, offset?: number): {
|
|
3491
3755
|
snapshot: IDocumentData;
|
|
3492
3756
|
citationIndex: number;
|
|
@@ -3504,6 +3768,21 @@ declare function insertBuildingBlockIntoSnapshot(sourceSnapshot: IDocumentData,
|
|
|
3504
3768
|
} | null;
|
|
3505
3769
|
declare function runMailMergeBatchOnSnapshot(templateSnapshot: IDocumentData, records: Array<Record<string, unknown>>, format: DocMailMergeBatchFormat): Promise<IDocMailMergeBatchResultItem[]>;
|
|
3506
3770
|
|
|
3771
|
+
declare function getDocRevisionsFromSnapshot(docData: Partial<IDocumentData> | null | undefined): IDocTrackRevision[];
|
|
3772
|
+
/**
|
|
3773
|
+
* Multi-Reviewer Document Revisions Combine (`多审阅副本合并 · Combine Revisions`):
|
|
3774
|
+
* - Computes paragraph-level + intra-paragraph token-level diffs of every reviewer copy against `baseDoc`;
|
|
3775
|
+
* - Synthesizes a single combined `IDocumentData` containing the merged text stream AND distinct per-author
|
|
3776
|
+
* `insert` (`<w:ins>`) and `delete` (`<w:del>`) revision entries in `YUDAO_DOCS_REVISIONS`, preserving
|
|
3777
|
+
* conflicting edits on the same paragraph from multiple reviewers for human accept/reject.
|
|
3778
|
+
*/
|
|
3779
|
+
declare function combineReviewedDocuments(baseDoc: IDocumentData, reviewerCopies: IDocReviewerCopyInput[]): IDocumentData;
|
|
3780
|
+
/**
|
|
3781
|
+
* Imports `baseDocxBytes` and every reviewer `.docx` input, runs `combineReviewedDocuments`,
|
|
3782
|
+
* and exports a combined `.docx` preserving multi-author `<w:ins w:author="..."/>` and `<w:del w:author="..."/>` OOXML markup.
|
|
3783
|
+
*/
|
|
3784
|
+
declare function combineReviewedDocxBytes(baseDocxBytes: Uint8Array, reviewerDocxInputs: IDocReviewerDocxInput[]): Promise<Uint8Array>;
|
|
3785
|
+
|
|
3507
3786
|
declare const DEFAULT_FOOTNOTE_SETTINGS: IDocNoteSettings;
|
|
3508
3787
|
declare const DEFAULT_ENDNOTE_SETTINGS: IDocNoteSettings;
|
|
3509
3788
|
declare function formatDocNoteNumber(num: number, format?: DocNoteNumberFormat): string;
|
|
@@ -3853,4 +4132,91 @@ declare function setDocTitlePropertiesInSnapshot(sourceSnapshot: IDocumentData,
|
|
|
3853
4132
|
};
|
|
3854
4133
|
declare function isEditBlockedByTitleLock(snapshot: Partial<IDocumentData> | null | undefined, editStart: number, editEndExclusive: number, isDeletion: boolean): boolean;
|
|
3855
4134
|
|
|
3856
|
-
export { ALL_DOC_BATCH3_COMMANDS, ALL_DOC_ROUND1_COMMANDS, ALL_DOC_ROUND3_COMMANDS, ALL_DOC_WAVE2_COMMANDS, AddDocCascadeRuleCommand, AddDocCommentCommand, AddDocGraffitiStrokeCommand, ApplyDocMacrosCommand, AutoFitDocTableCommand, CancelDocHyperlinkCommand, CleanUpDocFormattingCommand, ClearDocGraffitiStrokesCommand, CompareDocSnapshotsToTrackCommand, ConvertTextToDocTableCommand, DEFAULT_CASCADER_OPTIONS, DEFAULT_ENDNOTE_SETTINGS, DEFAULT_FOOTNOTE_SETTINGS, DOC_DRAWING_PLUGIN_RESOURCE, DOC_HYPERLINK_DEFAULT_COLOR, DOC_IO_CAPABILITY_FORMATS, DOC_TRACK_DELETE_STYLE, DOC_TRACK_INSERT_STYLE, DeleteDocAreaCommand, DeleteDocColumnGroupCommand, DeleteDocCommentCommand, DeleteDocHyperlinkCommand, DeleteDocNoteCommand, DeleteDocSdtCommand, DeleteDocTableColumnCommand, DeleteDocTableRowCommand, DocActionMacroService, type DocAdapterImportResult, DocAiCopilotService, type DocAiRiskSeverity, type DocAreaMode, type DocBarcodeBlockKind, type DocBuilderBlockInput, type DocBuilderSegment, type DocCalloutPreset, type DocCaptionCategory, type DocCellBorderLineStyle, type DocCustomGlossaryInput, type DocEmbedBlockKind, type DocEmbeddedChartType, type DocEmbeddedShapeKind, type DocEmptyRowStrategy, type DocExportFormat, DocExtensionRegistryService, type DocFieldType, type DocHorizontalDividerStyle, type DocImageWrapType, type DocInlineFormulaFormat, type DocInlinePlaceholderSyntax, type DocIoCapabilityFormat, DocIoService, type DocIoTarget, DocIoTargetError, type DocLabelBadgeTone, type DocListGlyphType, type DocMacroResolver, type DocMailMergeBatchFormat, type DocMarkdownAlign, type DocMedicalFormulaKind, type DocNoteNumberFormat, type DocNoteRestartRule, type DocNoteType, type DocPageOrientation, type DocSdtControlKind, type DocSdtKind, type DocSdtLockPolicy, DocSdtService, type DocSdtType, type DocSdtValidatorPreset, type DocSdtVisualChrome, type DocSectionBreakKind, type DocSeparatorDashStyle, type DocSmartArtLayout, type DocTabStopAlignment, type DocTabStopLeader, type DocTableAutoFitMode, type DocTableBorderPreset, type DocTableCellSlashType, DocTemplateProtocolError, type DocTemplateProtocolErrorCode, type DocTextDirection, type DocTrackRevisionStatus, type DocTrackRevisionType, type DocUnderlineStyle, type DocWatermarkLayer, type DocWorkMode, DocxImportError, EvaluateDocCascadeRulesCommand, EvaluateDocTableFormulasCommand, FillDocDatasetCommand, FindAndReplaceDocTextCommand, HighlightInvalidDocSdtCommand, type IAddDocCascadeRuleCommandParams, type IAddDocCommentCommandParams, type IAddDocGraffitiStrokeCommandParams, type IApplyDocMacrosCommandParams, type IAutoFitDocTableCommandParams, type ICancelDocHyperlinkCommandParams, type ICleanUpDocFormattingCommandParams, type IClearDocGraffitiStrokesCommandParams, type ICodeSyntaxToken, type ICompareDocSnapshotsToTrackCommandParams, type IConvertTextToDocTableCommandParams, type IDeleteDocAreaCommandParams, type IDeleteDocColumnGroupCommandParams, type IDeleteDocCommentCommandParams, type IDeleteDocHyperlinkCommandParams, type IDeleteDocNoteCommandParams, type IDeleteDocSdtCommandParams, type IDeleteDocTableColumnCommandParams, type IDeleteDocTableRowCommandParams, IDocActionMacroService, type IDocActionMacroStep, type IDocAdapterImportEnvelope, type IDocAddCommentSpec, type IDocAddGraffitiStrokeSpec, type IDocAiCopilotAdapter, type IDocAiCopilotContext, IDocAiCopilotService, type IDocAiRiskFinding, type IDocAreaHiddenSlice, type IDocAreaRegion, type IDocAreaValueResult, type IDocBarcodeBlockSpec, type IDocBatchDocxFileItem, type IDocBeforeSaveEvent, type IDocBookmark, type IDocBuilderParagraphInput, type IDocBuilderTableCellInput, type IDocBuilderTableInput, type IDocBuildingBlockEntry, type IDocBuildingBlockSpec, type IDocCalloutBlock, type IDocCaptionEntry, type IDocCascadeEvaluationResult, type IDocCascadeRule, type IDocCascadeTarget, type IDocCascadeTargetEffects, type IDocCascaderNode, type IDocCatalogItem, type IDocCellBorderEdgeSpec, type IDocChartSeries, type IDocCitationSource, type IDocCleanUpFormattingOptions, type IDocCleanUpFormattingResult, type IDocCodeBlockSpec, type IDocCollapsedHeadingEntry, type IDocCollapsedHeadingSlice, type IDocColumnGroupConfig, type IDocColumnGroupOptions, type IDocCommentReply, type IDocCommentThread, type IDocContentChangeEvent, type IDocContextMenuContext, type IDocContextMenuItem, type IDocControlCascadeBaseline, type IDocControlChangeEvent, type IDocControlValueChangeEvent, type IDocCopyPastePolicy, type IDocCornerBadge, type IDocCustomGlossaryRule, type IDocDatasetField, type IDocDatasetGroup, type IDocDocumentStats, type IDocEmbedBlock, type IDocEmbeddedBarcodeEntry, type IDocEmbeddedChart, type IDocEmbeddedCodeBlockEntry, type IDocEmbeddedMedicalFormulaEntry, type IDocEmbeddedShape, type IDocExportContext, type IDocExportFromUnitOptions, type IDocExportOptions, IDocExtensionRegistryService, type IDocFieldContext, type IDocFieldDiffItem, type IDocFieldEntry, type IDocFindReplaceOptions, type IDocFormValidationIssue, type IDocFormValidationResult, type IDocGraffitiPoint, type IDocGraffitiStroke, type IDocHtmlPrintOptions, type IDocHyperlinkEntry, type IDocImageCropSpec, type IDocImageTransformSpec, type IDocImportContext, type IDocImportOptions, type IDocImportOutcomeReport, type IDocImportWarning, type IDocInlineFormula, type IDocInlinePlaceholderMatch, type IDocInsertAreaSpec, type IDocInsertBookmarkSpec, type IDocInsertCalloutSpec, type IDocInsertEmbedBlockSpec, type IDocInsertHyperlinkSpec, type IDocInsertInlineFormulaSpec, type IDocInsertLabelBadgeSpec, type IDocInsertLatexFormulaSpec, type IDocInsertQuoteSpec, type IDocInsertSdtSpec, type IDocInsertTitleSpec, type IDocIoAdapter, type IDocIoCapabilities, type IDocIoFormatCapabilityEntry, IDocIoService, type IDocLabelBadge, type IDocLatexFormulaSpec, type IDocLatexRenderOptions, type IDocLatexRenderResult, type IDocListInsertSpec, type IDocListParagraphInfo, type IDocMailMergeBatchResultItem, type IDocMedicalFormulaSpec, type IDocModeChangeEvent, type IDocMultiOptionSpan, type IDocNoteEntry, type IDocNoteSettings, type IDocPageBorderConfig, type IDocParagraphBorderShadingSpec, type IDocParagraphPaginationSpec, type IDocParsedBindingKey, type IDocPdfExportOptions, type IDocPrintConfig, type IDocQuoteBlock, type IDocReadabilityStatistics, type IDocRecordedActionMacro, type IDocRepeatingSectionSpec, type IDocReplyCommentSpec, type IDocReportTemplateMetadata, type IDocResolvedSdtControl, type IDocRiskAlertItem, type IDocSaveContext, type IDocSavedEvent, type IDocSdtControlMeta, type IDocSdtControlSpec, type IDocSdtHighlightRule, type IDocSdtOptionItem, IDocSdtService, type IDocShortcutItem, type IDocShortcutKeyboardEventLike, type IDocSignatureStroke, type IDocSignatureStrokePoint, type IDocSmartArtNode, type IDocSmartArtSpec, type IDocSnapshotDiffResult, type IDocStyledSeparatorEntry, type IDocTabStop, type IDocTableCellBorders, type IDocTableCellProperties, type IDocTableOfContentsEntry, type IDocTableOfContentsSpec, type IDocTableRowLoop, type IDocTableRowLoopConfig, type IDocTableRowSummary, type IDocTableSummary, type IDocTemplateBindingEntry, type IDocTemplateMetadata, type IDocTemplateSummary, type IDocTermDiagnostic, type IDocTitleEntry, type IDocTitleProperties, type IDocTrackRevision, type IDocUpdateHyperlinkSpec, type IDocVersionSnapshot, type IDocVisibilityClause, type IDocVisualComparisonOptions, type IDocVisualComparisonResult, type IDocxExportCapabilitiesReport, type IDocxImportReport, type IEvaluateDocCascadeRulesCommandParams, type IEvaluateDocTableFormulasCommandParams, type IFillDocDatasetCommandParams, type IFindAndReplaceDocTextCommandParams, type IHighlightInvalidDocSdtCommandParams, type IInsertDocAreaCommandParams, type IInsertDocBibliographyCommandParams, type IInsertDocBookmarkCommandParams, type IInsertDocBuildingBlockCommandParams, type IInsertDocCalloutCommandParams, type IInsertDocCaptionCommandParams, type IInsertDocChartCommandParams, type IInsertDocCitationCommandParams, type IInsertDocCodeBlockCommandParams, type IInsertDocColumnGroupCommandParams, type IInsertDocCrossReferenceCommandParams, type IInsertDocEmbedBlockCommandParams, type IInsertDocFieldCommandParams, type IInsertDocHyperlinkCommandParams, type IInsertDocInlineFormulaCommandParams, type IInsertDocLabelBadgeCommandParams, type IInsertDocLatexFormulaCommandParams, type IInsertDocListCommandParams, type IInsertDocMedicalFormulaCommandParams, type IInsertDocNoteCommandParams, type IInsertDocPageBreakCommandParams, type IInsertDocQrOrBarcodeBlockCommandParams, type IInsertDocQuoteCommandParams, type IInsertDocRepeatingSectionCommandParams, type IInsertDocSdtCommandParams, type IInsertDocSectionBreakCommandParams, type IInsertDocShapeCommandParams, type IInsertDocSmartArtCommandParams, type IInsertDocTableColumnCommandParams, type IInsertDocTableOfContentsCommandParams, type IInsertDocTableRowCommandParams, type IInsertDocTitleCommandParams, type IInsertHorizontalDividerCommandParams, type IInsertStyledSeparatorCommandParams, type IJumpDocSdtControlCommandParams, type IMedicalFormulaLayoutResult, type IMergeDocTableCellsCommandParams, INLINE_VALUE_TOKEN_RE, type IPdfExtractedPageText, type IPdfRasterImageAsset, type IRecalculateDocInlineFormulasCommandParams, type IRecordDocRevisionCommandParams, type IRefreshDocTableOfContentsCommandParams, type IRemoveDocBookmarkCommandParams, type IRemoveDocCalloutCommandParams, type IRemoveDocCascadeRuleCommandParams, type IRemoveDocChartCommandParams, type IRemoveDocEmbedBlockCommandParams, type IRemoveDocLabelBadgeCommandParams, type IRemoveDocLatexFormulaCommandParams, type IRemoveDocQuoteCommandParams, type IRemoveDocShapeCommandParams, type IRemoveDocSmartArtCommandParams, type IRemoveDocTableOfContentsCommandParams, type IReplaceDocUnitSnapshotCommandParams, type IReplyDocCommentCommandParams, type IResolveDocCommentCommandParams, type IResolveDocRevisionCommandParams, type IRestoreDocVersionCommandParams, type ISaveDocVersionCommandParams, type ISetDocActiveRoleCommandParams, type ISetDocAreaBadgeCommandParams, type ISetDocAreaPropertiesCommandParams, type ISetDocAreaValueCommandParams, type ISetDocCascadeRulesCommandParams, type ISetDocCopyPastePolicyCommandParams, type ISetDocCustomPropertiesCommandParams, type ISetDocListGlyphTypeCommandParams, type ISetDocListLevelCommandParams, type ISetDocMainBadgeCommandParams, type ISetDocModeCommandParams, type ISetDocNoteSettingsCommandParams, type ISetDocPrintConfigCommandParams, type ISetDocSectionOrientationCommandParams, type ISetDocTableBorderPresetCommandParams, type ISetDocTableCellPropertiesCommandParams, type ISetDocTableRepeatHeaderCommandParams, type ISetDocTableRowLoopCommandParams, type ISetDocTextDirectionCommandParams, type ISetDocTitlePropertiesCommandParams, type ISetDocTrackChangesCommandParams, type ISetParagraphBorderAndShadingCommandParams, type ISetParagraphPaginationCommandParams, type ISetParagraphTabStopsCommandParams, type ISortDocTableCommandParams, type ISplitDocTableCellCommandParams, type ISyncDocAuxStateMutationParams, type IToggleDocListCheckboxCommandParams, type IToggleDocScriptCommandParams, type IToggleHeadingCollapseCommandParams, type IUniverDocsExtConfig, type IUpdateAllDocFieldsCommandParams, type IUpdateDocCalloutCommandParams, type IUpdateDocChartCommandParams, type IUpdateDocColumnGroupCommandParams, type IUpdateDocHyperlinkCommandParams, type IUpdateDocImageTransformCommandParams, type IUpdateDocLatexFormulaCommandParams, type IUpdateDocNoteCommandParams, type IUpdateDocQuoteCommandParams, type IUpdateDocSdtPropertiesCommandParams, type IUpdateDocSdtValueCommandParams, type IUpdateDocShapeCommandParams, type IUpdateDocSmartArtCommandParams, InsertDocAreaCommand, InsertDocBibliographyCommand, InsertDocBookmarkCommand, InsertDocBuildingBlockCommand, InsertDocCalloutCommand, InsertDocCaptionCommand, InsertDocChartCommand, InsertDocCitationCommand, InsertDocCodeBlockCommand, InsertDocColumnGroupCommand, InsertDocCrossReferenceCommand, InsertDocEmbedBlockCommand, InsertDocEndnoteCommand, InsertDocFieldCommand, InsertDocFootnoteCommand, InsertDocHyperlinkCommand, InsertDocInlineFormulaCommand, InsertDocLabelBadgeCommand, InsertDocLatexFormulaCommand, InsertDocListCommand, InsertDocMedicalFormulaCommand, InsertDocPageBreakCommand, InsertDocQrOrBarcodeBlockCommand, InsertDocQuoteCommand, InsertDocRepeatingSectionCommand, InsertDocSdtCommand, InsertDocSectionBreakCommand, InsertDocShapeCommand, InsertDocSmartArtCommand, InsertDocTableColumnCommand, InsertDocTableOfContentsCommand, InsertDocTableRowCommand, InsertDocTitleCommand, InsertHorizontalDividerCommand, InsertStyledSeparatorCommand, JumpDocSdtControlCommand, type LatexAstNode, MAX_CASCADE_ITERATIONS, MergeDocTableCellsCommand, RecalculateDocInlineFormulasCommand, RecordDocRevisionCommand, RefreshDocTableOfContentsCommand, RemoveDocBookmarkCommand, RemoveDocCalloutCommand, RemoveDocCascadeRuleCommand, RemoveDocChartCommand, RemoveDocEmbedBlockCommand, RemoveDocLabelBadgeCommand, RemoveDocLatexFormulaCommand, RemoveDocQuoteCommand, RemoveDocShapeCommand, RemoveDocSmartArtCommand, RemoveDocTableOfContentsCommand, ReplaceDocUnitSnapshotCommand, ReplyDocCommentCommand, ResolveDocCommentCommand, ResolveDocRevisionCommand, RestoreDocVersionCommand, SaveDocVersionCommand, SetDocActiveRoleCommand, SetDocAreaBadgeCommand, SetDocAreaPropertiesCommand, SetDocAreaValueCommand, SetDocCascadeRulesCommand, SetDocCopyPastePolicyCommand, SetDocCustomPropertiesCommand, SetDocListGlyphTypeCommand, SetDocListLevelCommand, SetDocMainBadgeCommand, SetDocModeCommand, SetDocNoteSettingsCommand, SetDocPrintConfigCommand, SetDocSectionOrientationCommand, SetDocTableBorderPresetCommand, SetDocTableCellPropertiesCommand, SetDocTableRepeatHeaderCommand, SetDocTableRowLoopCommand, SetDocTextDirectionCommand, SetDocTitlePropertiesCommand, SetDocTrackChangesCommand, SetParagraphBorderAndShadingCommand, SetParagraphPaginationCommand, SetParagraphTabStopsCommand, SortDocTableCommand, SplitDocTableCellCommand, SyncDocAuxStateMutation, ToggleDocListCheckboxCommand, ToggleDocSubscriptCommand, ToggleDocSuperscriptCommand, ToggleHeadingCollapseCommand, UNIVER_DOCS_EXT_PLUGIN_NAME, UNIVER_DOC_CHART_PALETTE, UniverDocsExtPlugin, UpdateAllDocFieldsCommand, UpdateDocCalloutCommand, UpdateDocChartCommand, UpdateDocColumnGroupCommand, UpdateDocHyperlinkCommand, UpdateDocImageTransformCommand, UpdateDocLatexFormulaCommand, UpdateDocNoteCommand, UpdateDocQuoteCommand, UpdateDocSdtPropertiesCommand, UpdateDocSdtValueCommand, UpdateDocShapeCommand, UpdateDocSmartArtCommand, YUDAO_DOCS_TEMPLATE_RESOURCE, addDocCascadeRuleInSnapshot as addDocCascadeRule, addDocCascadeRuleInSnapshot, addDocCommentInSnapshot, addDocGraffitiStrokeInSnapshot as addDocGraffitiStroke, addDocGraffitiStrokeInSnapshot, applyCopyPolicyToSelectedText, applyDocMacrosInSnapshot as applyDocMacros, applyDocMacrosInSnapshot, applyPictureOrSignatureSdtValueInSnapshot, applyTextStyleToBodySpan, attachSmartArtMetaRangeOnBody, auditContractRisksOffline, autoCropCanvasToPngDataUrl, autoFitDocTableInSnapshot, buildCode128BarcodeSvg, buildLiveDocFormContext, buildMedicalFormulaDataUri, buildMedicalFormulaSvg, buildQrCodeSvg, buildQrMatrix, buildQrOrBarcodeDataUri, buildQrOrBarcodeSvg, buildSdtPropertiesFromSpec, buildStructuredDocData, buildTocBlockLines, buildVisualComparisonSnapshot, canRoleEditSdtControl, cancelHyperlinkInSnapshot, checkDocumentSpellingAndTerms, cleanUpDocFormattingInSnapshot, clearDocGraffitiStrokesInSnapshot as clearDocGraffitiStrokes, clearDocGraffitiStrokesInSnapshot, clearRegisteredDocMacros, compareDocTableCellValues, computeAuthorInitials, computeSdtVisualStyle, computeSignatureBoundingBox, computeToggledMultiOptionValue, convertDocTableToText, convertTextToDocTableInSnapshot, createDocAbortError, decodeImageDataUrlForPdf, deleteColumnGroupFromSnapshot, deleteDocAreaFromSnapshot as deleteDocArea, deleteDocAreaFromSnapshot, deleteDocCommentFromSnapshot, deleteDocNoteFromSnapshot, deleteDocTableColumnInSnapshot, deleteDocTableRowInSnapshot, deleteHyperlinkFromSnapshot, detectAutoTextDirection, diffDocSnapshots, doesDocShortcutMatchEvent, draftContractClauseByPrompt, encodeCode128Bars, encodeUtf8Base64DataUri, estimateDocOffsetPageNumber, evaluateCascadeCondition, evaluateComputedSdtControls, evaluateComputedSdtControlsInPlace, evaluateDocCascadeRules, evaluateDocCascadeRulesInPlace, evaluateDocDateDiff, evaluateDocTableFormulas, evaluateLiveVisibilityClauses, evaluateSafeDocExpression, evaluateVisibleIfCondition, executeBodyUpdateViaRichTextMutation, executeWave2SnapshotUpdateWithUndoRedo, expandRepeatingSectionTemplate, exportBatchDocPdfBytes, exportBatchDocxFiles as exportBatchDocxArchives, exportBatchDocxFiles, exportDocHtmlString, exportDocToMarkdown, exportDocToOdtBytes, exportDocToPdfBytes, exportDocToRtf, exportDocxBytes, extractAnchorTypography, extractDocCatalog, extractDocCatalogTree, extractDocFieldInstruction, extractDocFormValues, extractDocInlinePlaceholders, extractNativeTextSpansFromPdfBytes, fillDatasetIntoDocSnapshot, findAndReplaceDocTextInSnapshot, findMergedMasterInTableRows, flattenCascaderLeafItems, formatCalloutDisplayText, formatDocListMarker, formatDocNoteNumber, formatInlineFormulaResult, formatIsoDateByPattern, formatQuoteDisplayText, formatSdtDisplayText, getCollapsedHeadingsFromSnapshot, getColumnGroupConfigFromSnapshot, getDocAreaBadgeFromSnapshot as getDocAreaBadge, getDocAreaBadgeFromSnapshot, getDocAreaValueFromSnapshot as getDocAreaValue, getDocAreaValueFromSnapshot, getDocAreasFromSnapshot as getDocAreas, getDocAreasFromSnapshot, getDocCascadeRulesFromSnapshot as getDocCascadeRules, getDocCascadeRulesFromSnapshot, getDocCopyPastePolicyFromSnapshot, getDocCustomPropertiesFromSnapshot, getDocEmbedBlocksFromSnapshot as getDocEmbedBlocks, getDocEmbedBlocksFromSnapshot, getDocGraffitiStrokesFromSnapshot as getDocGraffitiStrokes, getDocGraffitiStrokesFromSnapshot, getDocImageTransformFromSnapshot, getDocLabelBadgesFromSnapshot as getDocLabelBadges, getDocLabelBadgesFromSnapshot, getDocListsFromSnapshot, getDocMainBadgeFromSnapshot as getDocMainBadge, getDocMainBadgeFromSnapshot, getDocNoteSettingsFromSnapshot, getDocParagraphDirection, getDocPrintConfigFromSnapshot, getDocTableCellProperties, getDocTableDirection, getDocTitleEntriesFromSnapshot, getDocTitleValueFromSnapshot, extractDocCatalog as getDocumentOutline, getDocumentStatistics, getDocumentStats, getLocalTodayIso, getMultiOptionHitIndexAtOffset, getMultiOptionSpansForSdtControl, getParagraphBorderAndShading, getParagraphPagination, getParagraphTabStops, getDocumentStatistics as getReadabilityStatistics, getRegisteredDocMacros, getStyledSeparatorsFromSnapshot, getTargetDocModel, importHtmlToDocData, importLegacyDocBytes, importMarkdownToDocData, inflateRawSync, insertBibliographyIntoSnapshot, insertBookmarkIntoSnapshot, insertBuildingBlockIntoSnapshot, insertCalloutIntoSnapshot, insertCaptionIntoSnapshot, insertCitationIntoSnapshot, insertColumnGroupInSnapshot, insertCrossReferenceIntoSnapshot, insertDocAreaInSnapshot as insertDocArea, insertDocAreaInSnapshot, insertDocEmbedBlockInSnapshot as insertDocEmbedBlock, insertDocEmbedBlockInSnapshot, insertDocFieldIntoSnapshot, insertDocLabelBadgeInSnapshot as insertDocLabelBadge, insertDocLabelBadgeInSnapshot, insertDocListInSnapshot, insertDocNoteIntoSnapshot, insertDocTableColumnInSnapshot, insertDocTableRowInSnapshot, insertDocTitleInSnapshot, insertHorizontalDividerInSnapshot, insertHyperlinkIntoSnapshot, insertInlineDrawingIntoSnapshot, insertInlineFormulaIntoSnapshot, insertPageBreakInSnapshot, insertQuoteIntoSnapshot, insertSdtControlIntoBody, insertSectionBreakInSnapshot, insertSmartArtIntoSnapshot, insertStyledSeparatorInSnapshot as insertStyledSeparator, insertStyledSeparatorInSnapshot, insertSyntaxCodeBlockIntoSnapshot, insertTableOfContentsIntoSnapshot, inspectDocxExportCapabilities, isDynamicPageFieldInstruction, isEditBlockedByTitleLock, isOffsetInLockedTableCell, isOffsetLockedByGroupSdt, isOffsetReadonlyByArea, layoutLatexFormulaWidget, layoutMedicalFormulaWidget, listDocBookmarks, listDocCallouts, listDocCaptions, listDocCitations, listDocCommentsFromSnapshot, listDocFields, listDocHyperlinks, listDocInlineFormulas, listDocNotesFromSnapshot, listDocQuotes, listDocSdtControls, listDocTables, listLiveDocCharts, listLiveDocShapes, listLiveLatexFormulas, listLiveSmartArts, matchSdtHighlightRule, mergeDocTableCellsInSnapshot, normalizeDocDrawingsAndPluginResource, normalizeImageDataUriForSdt, normalizeMacroName, normalizeSdtListItems, numberToChineseUpperMoney, parseDateRangePair, parseDocBindingKey, parseDocxBytesToDocData, parseDocxBytesWithReport, parseFieldInstrString, parseIsoDateForExpr, parseLatexMathAst, parseParagraphBorderLine, parseSdtRangeToResolved, parseTableRowsInStream, readDocTemplateMetadataFromSnapshot, recalculateInlineFormulasInPlace, reconcileTemplateMetadataWithLiveSnapshot, recordDocTrackRevisionOnSnapshot, refreshTableOfContentsInSnapshot, registerDocMacro, reinitializeDocHeaderFooterModels, removeBookmarkFromSnapshot, removeCalloutFromSnapshot, removeDocCascadeRuleFromSnapshot as removeDocCascadeRule, removeDocCascadeRuleFromSnapshot, removeDocEmbedBlockFromSnapshot as removeDocEmbedBlock, removeDocEmbedBlockFromSnapshot, removeDocLabelBadgeFromSnapshot as removeDocLabelBadge, removeDocLabelBadgeFromSnapshot, removeInlineDrawingBlockFromBody, removeQuoteFromSnapshot, removeTableOfContentsFromSnapshot, renderDocChartSvg, renderDocChartToSvgDataUri, renderDocEmbedBlockCardSvg, renderDocLabelBadgeSvg, renderDocShapeSvg, renderDocShapeToSvgDataUri, renderLatexToSvg, renderLatexToSvgDataUri, renderSignatureStrokesToSvgDataUri, renderSmartArtSvg, renderSmartArtToSvgDataUri, exportDocHtmlString as renderStructuredDocHtml, renderStyledSeparatorSvg, renumberDocNotesInPlace, replyDocCommentInSnapshot, resolveActiveInsertOffset, resolveBarcodeBlockPayload, resolveBodyOffsetTypography, resolveCalloutPresetTheme, resolveCascaderPath, resolveDocCommentInSnapshot, resolveDocTrackRevisionOnSnapshot, resolveEffectiveSdtAffixes, resolveLabelBadgePalette, resolveListIdGlyphType, resolveLiveDocAreaSpan, resolvePathValue, resolveRangeAnchorTypography, resolveSegmentBodyInSnapshot, resolveSeparatorDimensions, resolveTableHeaderRowCount, resolveUnderlineCssStyle, runMailMergeBatchOnSnapshot, sanitizeDocEmbedUrl, sanitizeDocHyperlinkUrl, setDocAreaBadgeInSnapshot as setDocAreaBadge, setDocAreaBadgeInSnapshot, setDocAreaPropertiesInSnapshot as setDocAreaProperties, setDocAreaPropertiesInSnapshot, setDocAreaValueInSnapshot as setDocAreaValue, setDocAreaValueInSnapshot, setDocCascadeRulesInSnapshot as setDocCascadeRules, setDocCascadeRulesInSnapshot, setDocCopyPastePolicyInSnapshot, setDocCustomPropertiesInSnapshot, setDocListGlyphTypeInSnapshot, setDocListLevelInSnapshot, setDocMainBadgeInSnapshot as setDocMainBadge, setDocMainBadgeInSnapshot, setDocNoteSettingsInSnapshot, setDocPrintConfigInSnapshot, setDocTableBorderPresetInSnapshot, setDocTableCellPropertiesInSnapshot, setDocTableRepeatHeaderInSnapshot, setDocTextDirectionInSnapshot, setDocTitlePropertiesInSnapshot, setParagraphBorderAndShadingInSnapshot, setParagraphPaginationInSnapshot, setParagraphTabStopsInSnapshot, setSectionOrientationInSnapshot, shiftTrackRevisions, sortDocTableByColumnInSnapshot, spliceDocumentBodySpan, spliceMultiParagraphBodySpan, splitDocTableCellInSnapshot, stripDocEditorChromeForView, stripSdtAffixes, summarizeDocTemplate, syncDocDrawingsToUniverServices, syncSnapshotAuxFields, toControlSpecSnapshot, toggleDocListCheckboxInSnapshot, toggleDocScriptInSnapshot, toggleHeadingCollapseInSnapshot, tokenizeCodeLineForHighlight, unregisterDocMacro, updateAllDocFieldsInSnapshot, updateCalloutInSnapshot, updateColumnGroupInSnapshot, updateDocImageTransformInSnapshot, updateDocNoteInSnapshot, updateHyperlinkInSnapshot, updateQuoteInSnapshot, updateSmartArtInSnapshot, validateDocForm, validateSdtValueBySpec, writeDocTemplateMetadataToSnapshot, writeSegmentBodyInSnapshot };
|
|
4135
|
+
declare const DOC_SUPPORTED_CODE_LANGUAGES: ReadonlyArray<{
|
|
4136
|
+
value: string;
|
|
4137
|
+
label: string;
|
|
4138
|
+
}>;
|
|
4139
|
+
declare function normalizeDocCodeLanguageLabel(rawLang?: string): string;
|
|
4140
|
+
declare function listDocCodeBlocks(snapshot: Partial<IDocumentData> | null | undefined): IDocEmbeddedCodeBlockEntry[];
|
|
4141
|
+
declare function updateSyntaxCodeBlockInSnapshot(sourceSnapshot: IDocumentData, id: string, patch: {
|
|
4142
|
+
code?: string;
|
|
4143
|
+
language?: string;
|
|
4144
|
+
}): {
|
|
4145
|
+
snapshot: IDocumentData;
|
|
4146
|
+
entry: IDocEmbeddedCodeBlockEntry;
|
|
4147
|
+
} | null;
|
|
4148
|
+
declare function removeSyntaxCodeBlockFromSnapshot(sourceSnapshot: IDocumentData, id: string): IDocumentData | null;
|
|
4149
|
+
/**
|
|
4150
|
+
* Pure deterministic parser for Markdown block auto-shortcuts at paragraph start:
|
|
4151
|
+
* - `# `, `## `, `### ` (up to `###### `) -> Heading 1..6
|
|
4152
|
+
* - `> ` -> Blockquote
|
|
4153
|
+
* - ```` ```lang ```` -> Code Block (`language = lang`)
|
|
4154
|
+
* - `:::info` / `:::warning` / `:::success` / `:::danger` -> Callout Block
|
|
4155
|
+
* - `- [ ] ` / `- [x] ` -> Interactive Checklist item
|
|
4156
|
+
* - `---` -> Horizontal Divider
|
|
4157
|
+
*/
|
|
4158
|
+
declare function applyDocMarkdownShortcut(lineText: string): IDocMarkdownShortcutMatch | null;
|
|
4159
|
+
declare function setDocParagraphHeadingInSnapshot(sourceSnapshot: IDocumentData, level: 0 | 1 | 2 | 3 | 4 | 5 | 6, offset?: number, textOverride?: string): {
|
|
4160
|
+
snapshot: IDocumentData;
|
|
4161
|
+
cursorOffset: number;
|
|
4162
|
+
} | null;
|
|
4163
|
+
declare function applyDocMarkdownShortcutInSnapshot(sourceSnapshot: IDocumentData, offset?: number): {
|
|
4164
|
+
snapshot: IDocumentData;
|
|
4165
|
+
match: IDocMarkdownShortcutMatch;
|
|
4166
|
+
cursorOffset: number;
|
|
4167
|
+
} | null;
|
|
4168
|
+
declare function miniSheetColIndexToLetters(colIdx: number): string;
|
|
4169
|
+
declare function miniSheetLettersToColIndex(letters: string): number;
|
|
4170
|
+
declare function miniSheetCellKey(rowIdx: number, colIdx: number): string;
|
|
4171
|
+
declare function parseMiniSheetCellKey(cellRef: string): {
|
|
4172
|
+
row: number;
|
|
4173
|
+
col: number;
|
|
4174
|
+
} | null;
|
|
4175
|
+
/**
|
|
4176
|
+
* Evaluates all formulas (`=SUM`, `=AVERAGE`, `=MIN`, `=MAX`, `=COUNT`, `=IF`, `=ROUND`, and `+ - * / ()` across cells)
|
|
4177
|
+
* inside an `IDocMiniSheet`, returning a new `IDocMiniSheet` with every cell's computed `value` populated.
|
|
4178
|
+
*/
|
|
4179
|
+
declare function evaluateDocMiniSheet(sheet: IDocMiniSheet): IDocMiniSheet;
|
|
4180
|
+
declare function formatMiniSheetCellDisplay(cell?: IDocMiniSheetCell): string;
|
|
4181
|
+
declare function insertDocMiniSheetInSnapshot(sourceSnapshot: IDocumentData, spec?: IDocInsertMiniSheetSpec, offset?: number): {
|
|
4182
|
+
snapshot: IDocumentData;
|
|
4183
|
+
miniSheet: IDocMiniSheet;
|
|
4184
|
+
endOffset: number;
|
|
4185
|
+
};
|
|
4186
|
+
declare function updateDocMiniSheetInSnapshot(sourceSnapshot: IDocumentData, id: string, patch: Partial<Omit<IDocMiniSheet, 'id'>>): {
|
|
4187
|
+
snapshot: IDocumentData;
|
|
4188
|
+
miniSheet: IDocMiniSheet;
|
|
4189
|
+
} | null;
|
|
4190
|
+
declare function removeDocMiniSheetFromSnapshot(sourceSnapshot: IDocumentData, id: string): IDocumentData | null;
|
|
4191
|
+
declare function listDocMiniSheets(snapshot: Partial<IDocumentData> | null | undefined): IDocMiniSheet[];
|
|
4192
|
+
declare function convertDelimitedTextToTableData(text: string, delimiter?: string): IDocDelimitedTableData;
|
|
4193
|
+
declare function convertTableDataToDelimitedText(tableDataOrSnapshot: string[][] | Partial<IDocumentData> | null | undefined, delimiter?: string, tableIndex?: number): string;
|
|
4194
|
+
declare function convertDocTableToTextInSnapshot(sourceSnapshot: IDocumentData, tableIndexOrId?: number | string, delimiter?: string): {
|
|
4195
|
+
snapshot: IDocumentData;
|
|
4196
|
+
text: string;
|
|
4197
|
+
insertOffset: number;
|
|
4198
|
+
} | null;
|
|
4199
|
+
declare function convertSelectedTextToTableInSnapshot(sourceSnapshot: IDocumentData, params: {
|
|
4200
|
+
text?: string;
|
|
4201
|
+
delimiter?: string;
|
|
4202
|
+
startOffset?: number;
|
|
4203
|
+
endOffset?: number;
|
|
4204
|
+
}): {
|
|
4205
|
+
snapshot: IDocumentData;
|
|
4206
|
+
tableId: string;
|
|
4207
|
+
endOffset: number;
|
|
4208
|
+
} | null;
|
|
4209
|
+
/**
|
|
4210
|
+
* Evaluates a Word positional or cell-reference table formula (`=SUM(ABOVE)`, `=SUM(LEFT)`, `=SUM(RIGHT)`,
|
|
4211
|
+
* `=SUM(BELOW)`, `=AVERAGE(ABOVE)`, `=COUNT(ABOVE)`, `=MAX(LEFT)`, `=MIN(LEFT)`, `=A2*B2`, `=ROUND(...)`)
|
|
4212
|
+
* against a 2D `tableGrid`.
|
|
4213
|
+
*/
|
|
4214
|
+
declare function evaluateDocTableFormula(tableGrid: Array<Array<string | number>>, rowIdx: number, colIdx: number, formulaExpr: string): number | string;
|
|
4215
|
+
/**
|
|
4216
|
+
* Recalculates all Word positional & cell-reference formulas across all tables in `docData`,
|
|
4217
|
+
* preserving `<w:fldSimple w:instr=" =... ">` customRanges and cell formula metadata.
|
|
4218
|
+
*/
|
|
4219
|
+
declare function recalculateDocTableFormulas(docData: IDocumentData): IDocumentData;
|
|
4220
|
+
declare function setDocTableCellFormulaInSnapshot(sourceSnapshot: IDocumentData, tableIndexOrId: number | string, rowIndex: number, colIndex: number, formulaExpr: string): IDocumentData | null;
|
|
4221
|
+
|
|
4222
|
+
export { ALL_DOC_BATCH3_COMMANDS, ALL_DOC_PRO_COMMANDS, ALL_DOC_ROUND1_COMMANDS, ALL_DOC_ROUND3_COMMANDS, ALL_DOC_WAVE2_COMMANDS, AddDocCascadeRuleCommand, AddDocCommentCommand, AddDocGraffitiStrokeCommand, ApplyDocMacrosCommand, ApplyDocMarkdownShortcutCommand, AutoFitDocTableCommand, BuildDocTableOfFiguresCommand, CancelDocHyperlinkCommand, CleanUpDocFormattingCommand, ClearDocGraffitiStrokesCommand, CombineDocRevisionsCommand, CompareDocSnapshotsToTrackCommand, ConvertTableToTextCommand, ConvertTextToDocTableCommand, ConvertTextToTableCommand, DEFAULT_CASCADER_OPTIONS, DEFAULT_ENDNOTE_SETTINGS, DEFAULT_FOOTNOTE_SETTINGS, DOC_DRAWING_PLUGIN_RESOURCE, DOC_HYPERLINK_DEFAULT_COLOR, DOC_IO_CAPABILITY_FORMATS, DOC_SUPPORTED_CODE_LANGUAGES, DOC_TRACK_DELETE_STYLE, DOC_TRACK_INSERT_STYLE, DeleteDocAreaCommand, DeleteDocColumnGroupCommand, DeleteDocCommentCommand, DeleteDocHyperlinkCommand, DeleteDocNoteCommand, DeleteDocSdtCommand, DeleteDocTableColumnCommand, DeleteDocTableRowCommand, DocActionMacroService, type DocAdapterImportResult, DocAiCopilotService, type DocAiRiskSeverity, type DocAreaMode, type DocBarcodeBlockKind, type DocBuilderBlockInput, type DocBuilderSegment, type DocCalloutPreset, type DocCaptionCategory, type DocCaptionCategoryKey, type DocCellBorderLineStyle, type DocCrossRefDisplayMode, type DocCustomGlossaryInput, type DocEmbedBlockKind, type DocEmbeddedChartType, type DocEmbeddedShapeKind, type DocEmptyRowStrategy, type DocExportFormat, DocExtensionRegistryService, type DocFieldType, type DocHorizontalDividerStyle, type DocImageWrapType, type DocInlineFormulaFormat, type DocInlinePlaceholderSyntax, type DocIoCapabilityFormat, DocIoService, type DocIoTarget, DocIoTargetError, type DocLabelBadgeTone, type DocLineNumberRestart, type DocListGlyphType, type DocMacroResolver, type DocMailMergeBatchFormat, type DocMarkdownAlign, type DocMarkdownShortcutKind, type DocMedicalFormulaKind, type DocNoteNumberFormat, type DocNoteRestartRule, type DocNoteType, type DocPageOrientation, type DocSdtControlKind, type DocSdtKind, type DocSdtLockPolicy, DocSdtService, type DocSdtType, type DocSdtValidatorPreset, type DocSdtVisualChrome, type DocSectionBreakKind, type DocSeparatorDashStyle, type DocSmartArtLayout, type DocSupportedCodeLanguage, type DocTabStopAlignment, type DocTabStopLeader, type DocTableAutoFitMode, type DocTableBorderPreset, type DocTableCellSlashType, DocTemplateProtocolError, type DocTemplateProtocolErrorCode, type DocTextDirection, type DocTrackRevisionStatus, type DocTrackRevisionType, type DocUnderlineStyle, type DocWatermarkLayer, type DocWorkMode, DocxImportError, EvaluateDocCascadeRulesCommand, EvaluateDocTableFormulasCommand, FillDocDatasetCommand, FindAndReplaceDocTextCommand, HighlightInvalidDocSdtCommand, type IAddDocCascadeRuleCommandParams, type IAddDocCommentCommandParams, type IAddDocGraffitiStrokeCommandParams, type IApplyDocMacrosCommandParams, type IApplyDocMarkdownShortcutCommandParams, type IAutoFitDocTableCommandParams, type IBuildDocTableOfFiguresCommandParams, type ICancelDocHyperlinkCommandParams, type ICleanUpDocFormattingCommandParams, type IClearDocGraffitiStrokesCommandParams, type ICodeSyntaxToken, type ICombineDocRevisionsCommandParams, type ICompareDocSnapshotsToTrackCommandParams, type IConvertTableToTextCommandParams, type IConvertTextToDocTableCommandParams, type IConvertTextToTableCommandParams, type IDeleteDocAreaCommandParams, type IDeleteDocColumnGroupCommandParams, type IDeleteDocCommentCommandParams, type IDeleteDocHyperlinkCommandParams, type IDeleteDocNoteCommandParams, type IDeleteDocSdtCommandParams, type IDeleteDocTableColumnCommandParams, type IDeleteDocTableRowCommandParams, IDocActionMacroService, type IDocActionMacroStep, type IDocAdapterImportEnvelope, type IDocAddCommentSpec, type IDocAddGraffitiStrokeSpec, type IDocAiCopilotAdapter, type IDocAiCopilotContext, IDocAiCopilotService, type IDocAiRiskFinding, type IDocAreaHiddenSlice, type IDocAreaRegion, type IDocAreaValueResult, type IDocBarcodeBlockSpec, type IDocBatchDocxFileItem, type IDocBeforeSaveEvent, type IDocBookmark, type IDocBuilderParagraphInput, type IDocBuilderTableCellInput, type IDocBuilderTableInput, type IDocBuildingBlockEntry, type IDocBuildingBlockSpec, type IDocCalloutBlock, type IDocCaptionEntry, type IDocCascadeEvaluationResult, type IDocCascadeRule, type IDocCascadeTarget, type IDocCascadeTargetEffects, type IDocCascaderNode, type IDocCatalogItem, type IDocCellBorderEdgeSpec, type IDocChartSeries, type IDocCitationSource, type IDocCleanUpFormattingOptions, type IDocCleanUpFormattingResult, type IDocCodeBlockSpec, type IDocCollapsedHeadingEntry, type IDocCollapsedHeadingSlice, type IDocColumnGroupConfig, type IDocColumnGroupOptions, type IDocCommentReply, type IDocCommentThread, type IDocContentChangeEvent, type IDocContextMenuContext, type IDocContextMenuItem, type IDocControlCascadeBaseline, type IDocControlChangeEvent, type IDocControlValueChangeEvent, type IDocCopyPastePolicy, type IDocCornerBadge, type IDocCrossReference, type IDocCustomGlossaryRule, type IDocDatasetField, type IDocDatasetGroup, type IDocDelimitedTableData, type IDocDocumentStats, type IDocEmbedBlock, type IDocEmbeddedBarcodeEntry, type IDocEmbeddedChart, type IDocEmbeddedCodeBlockEntry, type IDocEmbeddedMedicalFormulaEntry, type IDocEmbeddedShape, type IDocExportContext, type IDocExportFromUnitOptions, type IDocExportOptions, IDocExtensionRegistryService, type IDocFieldContext, type IDocFieldDiffItem, type IDocFieldEntry, type IDocFindReplaceOptions, type IDocFormValidationIssue, type IDocFormValidationResult, type IDocGraffitiPoint, type IDocGraffitiStroke, type IDocHtmlPrintOptions, type IDocHyperlinkEntry, type IDocImageCropSpec, type IDocImageTransformSpec, type IDocImportContext, type IDocImportOptions, type IDocImportOutcomeReport, type IDocImportWarning, type IDocInlineFormula, type IDocInlinePlaceholderMatch, type IDocInsertAreaSpec, type IDocInsertBookmarkSpec, type IDocInsertCalloutSpec, type IDocInsertEmbedBlockSpec, type IDocInsertHyperlinkSpec, type IDocInsertInlineFormulaSpec, type IDocInsertLabelBadgeSpec, type IDocInsertLatexFormulaSpec, type IDocInsertMiniSheetSpec, type IDocInsertQuoteSpec, type IDocInsertSdtSpec, type IDocInsertTitleSpec, type IDocIoAdapter, type IDocIoCapabilities, type IDocIoFormatCapabilityEntry, IDocIoService, type IDocLabelBadge, type IDocLatexFormulaSpec, type IDocLatexRenderOptions, type IDocLatexRenderResult, type IDocLineNumberingConfig, type IDocListInsertSpec, type IDocListParagraphInfo, type IDocMailMergeBatchResultItem, type IDocMarkdownShortcutMatch, type IDocMedicalFormulaSpec, type IDocMiniSheet, type IDocMiniSheetCell, type IDocModeChangeEvent, type IDocMultiOptionSpan, type IDocNoteEntry, type IDocNoteSettings, type IDocPageBorderConfig, type IDocParagraphBorderShadingSpec, type IDocParagraphPaginationSpec, type IDocParsedBindingKey, type IDocPdfExportOptions, type IDocPrintConfig, type IDocQuoteBlock, type IDocReadabilityStatistics, type IDocRecordedActionMacro, type IDocRepeatingSectionSpec, type IDocReplyCommentSpec, type IDocReportTemplateMetadata, type IDocResolvedSdtControl, type IDocReviewerCopyInput, type IDocReviewerDocxInput, type IDocRiskAlertItem, type IDocSaveContext, type IDocSavedEvent, type IDocSdtControlMeta, type IDocSdtControlSpec, type IDocSdtHighlightRule, type IDocSdtOptionItem, IDocSdtService, type IDocShortcutItem, type IDocShortcutKeyboardEventLike, type IDocSignatureStroke, type IDocSignatureStrokePoint, type IDocSmartArtConfig, type IDocSmartArtNode, type IDocSmartArtSpec, type IDocSnapshotDiffResult, type IDocStyledSeparatorEntry, type IDocTabStop, type IDocTableBorderSide, type IDocTableCellBorders, type IDocTableCellProperties, type IDocTableOfContentsEntry, type IDocTableOfContentsSpec, type IDocTableOfFiguresItem, type IDocTableRowLoop, type IDocTableRowLoopConfig, type IDocTableRowSummary, type IDocTableSummary, type IDocTemplateBindingEntry, type IDocTemplateMetadata, type IDocTemplateSummary, type IDocTermDiagnostic, type IDocTitleEntry, type IDocTitleProperties, type IDocTrackRevision, type IDocUpdateHyperlinkSpec, type IDocVersionSnapshot, type IDocVisibilityClause, type IDocVisualComparisonOptions, type IDocVisualComparisonResult, type IDocxExportCapabilitiesReport, type IDocxImportReport, type IEvaluateDocCascadeRulesCommandParams, type IEvaluateDocTableFormulasCommandParams, type IFillDocDatasetCommandParams, type IFindAndReplaceDocTextCommandParams, type IHighlightInvalidDocSdtCommandParams, type IInsertDocAreaCommandParams, type IInsertDocBibliographyCommandParams, type IInsertDocBlockquoteCommandParams, type IInsertDocBookmarkCommandParams, type IInsertDocBuildingBlockCommandParams, type IInsertDocCalloutCommandParams, type IInsertDocCaptionCommandParams, type IInsertDocChartCommandParams, type IInsertDocCitationCommandParams, type IInsertDocCodeBlockCommandParams, type IInsertDocColumnGroupCommandParams, type IInsertDocCrossRefCommandParams, type IInsertDocCrossReferenceCommandParams, type IInsertDocEmbedBlockCommandParams, type IInsertDocFieldCommandParams, type IInsertDocHyperlinkCommandParams, type IInsertDocInlineFormulaCommandParams, type IInsertDocLabelBadgeCommandParams, type IInsertDocLatexFormulaCommandParams, type IInsertDocListCommandParams, type IInsertDocMedicalFormulaCommandParams, type IInsertDocMiniSheetCommandParams, type IInsertDocNoteCommandParams, type IInsertDocPageBreakCommandParams, type IInsertDocQrOrBarcodeBlockCommandParams, type IInsertDocQuoteCommandParams, type IInsertDocRepeatingSectionCommandParams, type IInsertDocSdtCommandParams, type IInsertDocSectionBreakCommandParams, type IInsertDocShapeCommandParams, type IInsertDocSmartArtCommandParams, type IInsertDocTableColumnCommandParams, type IInsertDocTableOfContentsCommandParams, type IInsertDocTableRowCommandParams, type IInsertDocTitleCommandParams, type IInsertHorizontalDividerCommandParams, type IInsertStyledSeparatorCommandParams, type IJumpDocSdtControlCommandParams, type IMedicalFormulaLayoutResult, type IMergeDocTableCellsCommandParams, INLINE_VALUE_TOKEN_RE, type IPdfExtractedPageText, type IPdfRasterImageAsset, type IRecalculateDocInlineFormulasCommandParams, type IRecalculateDocTableFormulasCommandParams, type IRecordDocRevisionCommandParams, type IRefreshDocCaptionsAndCrossRefsCommandParams, type IRefreshDocTableOfContentsCommandParams, type IRemoveDocBookmarkCommandParams, type IRemoveDocCalloutCommandParams, type IRemoveDocCascadeRuleCommandParams, type IRemoveDocChartCommandParams, type IRemoveDocCodeBlockCommandParams, type IRemoveDocEmbedBlockCommandParams, type IRemoveDocLabelBadgeCommandParams, type IRemoveDocLatexFormulaCommandParams, type IRemoveDocMiniSheetCommandParams, type IRemoveDocQuoteCommandParams, type IRemoveDocShapeCommandParams, type IRemoveDocSmartArtCommandParams, type IRemoveDocTableOfContentsCommandParams, type IReplaceDocUnitSnapshotCommandParams, type IReplyDocCommentCommandParams, type IResolveDocCommentCommandParams, type IResolveDocRevisionCommandParams, type IRestoreDocVersionCommandParams, type ISaveDocVersionCommandParams, type ISetDocActiveRoleCommandParams, type ISetDocAreaBadgeCommandParams, type ISetDocAreaPropertiesCommandParams, type ISetDocAreaValueCommandParams, type ISetDocCascadeRulesCommandParams, type ISetDocCopyPastePolicyCommandParams, type ISetDocCustomPropertiesCommandParams, type ISetDocLineNumberingCommandParams, type ISetDocListGlyphTypeCommandParams, type ISetDocListLevelCommandParams, type ISetDocMainBadgeCommandParams, type ISetDocModeCommandParams, type ISetDocNoteSettingsCommandParams, type ISetDocParagraphHeadingCommandParams, type ISetDocPrintConfigCommandParams, type ISetDocSectionOrientationCommandParams, type ISetDocTableBorderPresetCommandParams, type ISetDocTableCellFormulaCommandParams, type ISetDocTableCellPropertiesCommandParams, type ISetDocTableRepeatHeaderCommandParams, type ISetDocTableRowLoopCommandParams, type ISetDocTextDirectionCommandParams, type ISetDocTitlePropertiesCommandParams, type ISetDocTrackChangesCommandParams, type ISetParagraphBorderAndShadingCommandParams, type ISetParagraphPaginationCommandParams, type ISetParagraphTabStopsCommandParams, type ISortDocTableCommandParams, type ISplitDocTableCellCommandParams, type ISyncDocAuxStateMutationParams, type IToggleDocListCheckboxCommandParams, type IToggleDocScriptCommandParams, type IToggleHeadingCollapseCommandParams, type IUniverDocsExtConfig, type IUpdateAllDocFieldsCommandParams, type IUpdateDocCalloutCommandParams, type IUpdateDocChartCommandParams, type IUpdateDocCodeBlockCommandParams, type IUpdateDocColumnGroupCommandParams, type IUpdateDocHyperlinkCommandParams, type IUpdateDocImageTransformCommandParams, type IUpdateDocLatexFormulaCommandParams, type IUpdateDocMiniSheetCommandParams, type IUpdateDocNoteCommandParams, type IUpdateDocQuoteCommandParams, type IUpdateDocSdtPropertiesCommandParams, type IUpdateDocSdtValueCommandParams, type IUpdateDocShapeCommandParams, type IUpdateDocSmartArtCommandParams, InsertDocAreaCommand, InsertDocBibliographyCommand, InsertDocBlockquoteCommand, InsertDocBookmarkCommand, InsertDocBuildingBlockCommand, InsertDocCalloutCommand, InsertDocCaptionCommand, InsertDocChartCommand, InsertDocCitationCommand, InsertDocCodeBlockCommand, InsertDocColumnGroupCommand, InsertDocCrossRefCommand, InsertDocCrossReferenceCommand, InsertDocEmbedBlockCommand, InsertDocEndnoteCommand, InsertDocFieldCommand, InsertDocFootnoteCommand, InsertDocHyperlinkCommand, InsertDocInlineFormulaCommand, InsertDocLabelBadgeCommand, InsertDocLatexFormulaCommand, InsertDocListCommand, InsertDocMedicalFormulaCommand, InsertDocMiniSheetCommand, InsertDocPageBreakCommand, InsertDocQrOrBarcodeBlockCommand, InsertDocQuoteCommand, InsertDocRepeatingSectionCommand, InsertDocSdtCommand, InsertDocSectionBreakCommand, InsertDocShapeCommand, InsertDocSmartArtCommand, InsertDocTableColumnCommand, InsertDocTableOfContentsCommand, InsertDocTableRowCommand, InsertDocTitleCommand, InsertHorizontalDividerCommand, InsertStyledSeparatorCommand, JumpDocSdtControlCommand, type LatexAstNode, MAX_CASCADE_ITERATIONS, MergeDocTableCellsCommand, RecalculateDocInlineFormulasCommand, RecalculateDocTableFormulasCommand, RecordDocRevisionCommand, RefreshDocCaptionsAndCrossRefsCommand, RefreshDocTableOfContentsCommand, RemoveDocBookmarkCommand, RemoveDocCalloutCommand, RemoveDocCascadeRuleCommand, RemoveDocChartCommand, RemoveDocCodeBlockCommand, RemoveDocEmbedBlockCommand, RemoveDocLabelBadgeCommand, RemoveDocLatexFormulaCommand, RemoveDocMiniSheetCommand, RemoveDocQuoteCommand, RemoveDocShapeCommand, RemoveDocSmartArtCommand, RemoveDocTableOfContentsCommand, ReplaceDocUnitSnapshotCommand, ReplyDocCommentCommand, ResolveDocCommentCommand, ResolveDocRevisionCommand, RestoreDocVersionCommand, SaveDocVersionCommand, SetDocActiveRoleCommand, SetDocAreaBadgeCommand, SetDocAreaPropertiesCommand, SetDocAreaValueCommand, SetDocCascadeRulesCommand, SetDocCopyPastePolicyCommand, SetDocCustomPropertiesCommand, SetDocLineNumberingCommand, SetDocListGlyphTypeCommand, SetDocListLevelCommand, SetDocMainBadgeCommand, SetDocModeCommand, SetDocNoteSettingsCommand, SetDocParagraphHeadingCommand, SetDocPrintConfigCommand, SetDocSectionOrientationCommand, SetDocTableBorderPresetCommand, SetDocTableCellFormulaCommand, SetDocTableCellPropertiesCommand, SetDocTableRepeatHeaderCommand, SetDocTableRowLoopCommand, SetDocTextDirectionCommand, SetDocTitlePropertiesCommand, SetDocTrackChangesCommand, SetParagraphBorderAndShadingCommand, SetParagraphPaginationCommand, SetParagraphTabStopsCommand, SortDocTableCommand, SplitDocTableCellCommand, SyncDocAuxStateMutation, ToggleDocListCheckboxCommand, ToggleDocSubscriptCommand, ToggleDocSuperscriptCommand, ToggleHeadingCollapseCommand, UNIVER_DOCS_EXT_PLUGIN_NAME, UNIVER_DOC_CHART_PALETTE, UniverDocsExtPlugin, UpdateAllDocFieldsCommand, UpdateDocCalloutCommand, UpdateDocChartCommand, UpdateDocCodeBlockCommand, UpdateDocColumnGroupCommand, UpdateDocHyperlinkCommand, UpdateDocImageTransformCommand, UpdateDocLatexFormulaCommand, UpdateDocMiniSheetCommand, UpdateDocNoteCommand, UpdateDocQuoteCommand, UpdateDocSdtPropertiesCommand, UpdateDocSdtValueCommand, UpdateDocShapeCommand, UpdateDocSmartArtCommand, YUDAO_DOCS_CALLOUTS, YUDAO_DOCS_CAPTIONS, YUDAO_DOCS_CHARTS, YUDAO_DOCS_CODE_BLOCKS, YUDAO_DOCS_CROSS_REFS, YUDAO_DOCS_FOOTNOTES, YUDAO_DOCS_LINE_NUMBERING, YUDAO_DOCS_MINI_SHEETS, YUDAO_DOCS_REVISIONS, YUDAO_DOCS_SMARTART, YUDAO_DOCS_TEMPLATE_RESOURCE, addDocCascadeRuleInSnapshot as addDocCascadeRule, addDocCascadeRuleInSnapshot, addDocCommentInSnapshot, addDocGraffitiStrokeInSnapshot as addDocGraffitiStroke, addDocGraffitiStrokeInSnapshot, applyCopyPolicyToSelectedText, applyDocMacrosInSnapshot as applyDocMacros, applyDocMacrosInSnapshot, applyDocMarkdownShortcut, applyDocMarkdownShortcutInSnapshot, applyPictureOrSignatureSdtValueInSnapshot, applyTextStyleToBodySpan, attachSmartArtMetaRangeOnBody, auditContractRisksOffline, autoCropCanvasToPngDataUrl, autoFitDocTableInSnapshot, buildCode128BarcodeSvg, buildLiveDocFormContext, buildMedicalFormulaDataUri, buildMedicalFormulaSvg, buildQrCodeSvg, buildQrMatrix, buildQrOrBarcodeDataUri, buildQrOrBarcodeSvg, buildSdtPropertiesFromSpec, buildStructuredDocData, buildTableOfFiguresEntries, buildTocBlockLines, buildVisualComparisonSnapshot, canRoleEditSdtControl, cancelHyperlinkInSnapshot, checkDocumentSpellingAndTerms, cleanUpDocFormattingInSnapshot, clearDocGraffitiStrokesInSnapshot as clearDocGraffitiStrokes, clearDocGraffitiStrokesInSnapshot, clearRegisteredDocMacros, combineReviewedDocuments, combineReviewedDocxBytes, compareDocTableCellValues, computeAuthorInitials, computeSdtVisualStyle, computeSignatureBoundingBox, computeToggledMultiOptionValue, convertDelimitedTextToTableData, convertDocTableToText, convertDocTableToTextInSnapshot, convertSelectedTextToTableInSnapshot, convertTableDataToDelimitedText, convertTextToDocTableInSnapshot, createDocAbortError, decodeImageDataUrlForPdf, deleteColumnGroupFromSnapshot, deleteDocAreaFromSnapshot as deleteDocArea, deleteDocAreaFromSnapshot, deleteDocCommentFromSnapshot, deleteDocNoteFromSnapshot, deleteDocTableColumnInSnapshot, deleteDocTableRowInSnapshot, deleteHyperlinkFromSnapshot, detectAutoTextDirection, diffDocSnapshots, doesDocShortcutMatchEvent, draftContractClauseByPrompt, encodeCode128Bars, encodeUtf8Base64DataUri, estimateDocOffsetPageNumber, evaluateCascadeCondition, evaluateComputedSdtControls, evaluateComputedSdtControlsInPlace, evaluateDocCascadeRules, evaluateDocCascadeRulesInPlace, evaluateDocDateDiff, evaluateDocMiniSheet, evaluateDocTableFormula, evaluateDocTableFormulas, evaluateLiveVisibilityClauses, evaluateSafeDocExpression, evaluateVisibleIfCondition, executeBodyUpdateViaRichTextMutation, executeWave2SnapshotUpdateWithUndoRedo, expandRepeatingSectionTemplate, exportBatchDocPdfBytes, exportBatchDocxFiles as exportBatchDocxArchives, exportBatchDocxFiles, exportDocHtmlString, exportDocToMarkdown, exportDocToOdtBytes, exportDocToPdfBytes, exportDocToRtf, exportDocxBytes, extractAnchorTypography, extractDocCatalog, extractDocCatalogTree, extractDocFieldInstruction, extractDocFormValues, extractDocInlinePlaceholders, extractNativeTextSpansFromPdfBytes, fillDatasetIntoDocSnapshot, findAndReplaceDocTextInSnapshot, findMergedMasterInTableRows, flattenCascaderLeafItems, formatCalloutDisplayText, formatDocListMarker, formatDocNoteNumber, formatInlineFormulaResult, formatIsoDateByPattern, formatMiniSheetCellDisplay, formatQuoteDisplayText, formatSdtDisplayText, getCollapsedHeadingsFromSnapshot, getColumnGroupConfigFromSnapshot, getDocAreaBadgeFromSnapshot as getDocAreaBadge, getDocAreaBadgeFromSnapshot, getDocAreaValueFromSnapshot as getDocAreaValue, getDocAreaValueFromSnapshot, getDocAreasFromSnapshot as getDocAreas, getDocAreasFromSnapshot, getDocCascadeRulesFromSnapshot as getDocCascadeRules, getDocCascadeRulesFromSnapshot, getDocCopyPastePolicyFromSnapshot, getDocCustomPropertiesFromSnapshot, getDocEmbedBlocksFromSnapshot as getDocEmbedBlocks, getDocEmbedBlocksFromSnapshot, getDocGraffitiStrokesFromSnapshot as getDocGraffitiStrokes, getDocGraffitiStrokesFromSnapshot, getDocImageTransformFromSnapshot, getDocLabelBadgesFromSnapshot as getDocLabelBadges, getDocLabelBadgesFromSnapshot, getDocLineNumberingFromSnapshot, getDocListsFromSnapshot, getDocMainBadgeFromSnapshot as getDocMainBadge, getDocMainBadgeFromSnapshot, getDocNoteSettingsFromSnapshot, getDocParagraphDirection, getDocPrintConfigFromSnapshot, getDocRevisionsFromSnapshot, getDocTableCellProperties, getDocTableDirection, getDocTitleEntriesFromSnapshot, getDocTitleValueFromSnapshot, extractDocCatalog as getDocumentOutline, getDocumentStatistics, getDocumentStats, getLocalTodayIso, getMultiOptionHitIndexAtOffset, getMultiOptionSpansForSdtControl, getParagraphBorderAndShading, getParagraphPagination, getParagraphTabStops, getDocumentStatistics as getReadabilityStatistics, getRegisteredDocMacros, getStyledSeparatorsFromSnapshot, getTargetDocModel, parseDocxBytesToDocData as importDocxToDocData, importHtmlToDocData, importLegacyDocBytes, importMarkdownToDocData, inflateRawSync, insertBibliographyIntoSnapshot, insertBookmarkIntoSnapshot, insertBuildingBlockIntoSnapshot, insertCalloutIntoSnapshot, insertCaptionIntoSnapshot, insertCitationIntoSnapshot, insertColumnGroupInSnapshot, insertCrossReferenceIntoSnapshot, insertDocAreaInSnapshot as insertDocArea, insertDocAreaInSnapshot, insertDocEmbedBlockInSnapshot as insertDocEmbedBlock, insertDocEmbedBlockInSnapshot, insertDocFieldIntoSnapshot, insertDocLabelBadgeInSnapshot as insertDocLabelBadge, insertDocLabelBadgeInSnapshot, insertDocListInSnapshot, insertDocMiniSheetInSnapshot, insertDocNoteIntoSnapshot, insertDocTableColumnInSnapshot, insertDocTableRowInSnapshot, insertDocTitleInSnapshot, insertHorizontalDividerInSnapshot, insertHyperlinkIntoSnapshot, insertInlineDrawingIntoSnapshot, insertInlineFormulaIntoSnapshot, insertPageBreakInSnapshot, insertQuoteIntoSnapshot, insertSdtControlIntoBody, insertSectionBreakInSnapshot, insertSmartArtIntoSnapshot, insertStyledSeparatorInSnapshot as insertStyledSeparator, insertStyledSeparatorInSnapshot, insertSyntaxCodeBlockIntoSnapshot, insertTableOfContentsIntoSnapshot, insertTableOfFiguresIntoSnapshot, inspectDocxExportCapabilities, isDynamicPageFieldInstruction, isEditBlockedByTitleLock, isOffsetInLockedTableCell, isOffsetLockedByGroupSdt, isOffsetReadonlyByArea, layoutLatexFormulaWidget, layoutMedicalFormulaWidget, listDocBookmarks, listDocCallouts, listDocCaptions, listDocCitations, listDocCodeBlocks, listDocCommentsFromSnapshot, listDocCrossRefs, listDocFields, listDocHyperlinks, listDocInlineFormulas, listDocMiniSheets, listDocNotesFromSnapshot, listDocQuotes, listDocSdtControls, listDocTables, listLiveDocCharts, listLiveDocShapes, listLiveLatexFormulas, listLiveSmartArts, matchSdtHighlightRule, mergeDocTableCellsInSnapshot, miniSheetCellKey, miniSheetColIndexToLetters, miniSheetLettersToColIndex, normalizeDocCaptionCategory, normalizeDocCodeLanguageLabel, normalizeDocDrawingsAndPluginResource, normalizeImageDataUriForSdt, normalizeMacroName, normalizeSdtListItems, normalizeSmartArtNodes, numberToChineseUpperMoney, parseDateRangePair, parseDocBindingKey, parseDocxBytesToDocData, parseDocxBytesWithReport, parseFieldInstrString, parseIsoDateForExpr, parseLatexMathAst, parseMiniSheetCellKey, parseParagraphBorderLine, parseSdtRangeToResolved, parseTableRowsInStream, readDocTemplateMetadataFromSnapshot, recalculateDocCaptionsAndCrossRefs, recalculateDocTableFormulas, recalculateInlineFormulasInPlace, reconcileTemplateMetadataWithLiveSnapshot, recordDocTrackRevisionOnSnapshot, refreshTableOfContentsInSnapshot, registerDocMacro, reinitializeDocHeaderFooterModels, removeBookmarkFromSnapshot, removeCalloutFromSnapshot, removeDocCascadeRuleFromSnapshot as removeDocCascadeRule, removeDocCascadeRuleFromSnapshot, removeDocEmbedBlockFromSnapshot as removeDocEmbedBlock, removeDocEmbedBlockFromSnapshot, removeDocLabelBadgeFromSnapshot as removeDocLabelBadge, removeDocLabelBadgeFromSnapshot, removeDocMiniSheetFromSnapshot, removeInlineDrawingBlockFromBody, removeQuoteFromSnapshot, removeSyntaxCodeBlockFromSnapshot, removeTableOfContentsFromSnapshot, renderDocChartSvg, renderDocChartToSvgDataUri, renderDocEmbedBlockCardSvg, renderDocLabelBadgeSvg, renderDocShapeSvg, renderDocShapeToSvgDataUri, renderLatexToSvg, renderLatexToSvgDataUri, renderSignatureStrokesToSvgDataUri, renderSmartArtSvg, renderSmartArtToSvgDataUri, exportDocHtmlString as renderStructuredDocHtml, renderStyledSeparatorSvg, renumberDocNotesInPlace, replyDocCommentInSnapshot, resolveActiveInsertOffset, resolveBarcodeBlockPayload, resolveBodyOffsetTypography, resolveCalloutPresetTheme, resolveCascaderPath, resolveDocCommentInSnapshot, resolveDocTrackRevisionOnSnapshot, resolveEffectiveSdtAffixes, resolveLabelBadgePalette, resolveListIdGlyphType, resolveLiveDocAreaSpan, resolvePathValue, resolveRangeAnchorTypography, resolveSegmentBodyInSnapshot, resolveSeparatorDimensions, resolveTableHeaderRowCount, resolveUnderlineCssStyle, runMailMergeBatchOnSnapshot, sanitizeDocEmbedUrl, sanitizeDocHyperlinkUrl, setDocAreaBadgeInSnapshot as setDocAreaBadge, setDocAreaBadgeInSnapshot, setDocAreaPropertiesInSnapshot as setDocAreaProperties, setDocAreaPropertiesInSnapshot, setDocAreaValueInSnapshot as setDocAreaValue, setDocAreaValueInSnapshot, setDocCascadeRulesInSnapshot as setDocCascadeRules, setDocCascadeRulesInSnapshot, setDocCopyPastePolicyInSnapshot, setDocCustomPropertiesInSnapshot, setDocLineNumberingInSnapshot, setDocListGlyphTypeInSnapshot, setDocListLevelInSnapshot, setDocMainBadgeInSnapshot as setDocMainBadge, setDocMainBadgeInSnapshot, setDocNoteSettingsInSnapshot, setDocParagraphHeadingInSnapshot, setDocPrintConfigInSnapshot, setDocTableBorderPresetInSnapshot, setDocTableCellFormulaInSnapshot, setDocTableCellPropertiesInSnapshot, setDocTableRepeatHeaderInSnapshot, setDocTextDirectionInSnapshot, setDocTitlePropertiesInSnapshot, setParagraphBorderAndShadingInSnapshot, setParagraphPaginationInSnapshot, setParagraphTabStopsInSnapshot, setSectionOrientationInSnapshot, shiftTrackRevisions, sortDocTableByColumnInSnapshot, spliceDocumentBodySpan, spliceMultiParagraphBodySpan, splitDocTableCellInSnapshot, stripDocEditorChromeForView, stripSdtAffixes, summarizeDocTemplate, syncDocDrawingsToUniverServices, syncSnapshotAuxFields, toControlSpecSnapshot, toggleDocListCheckboxInSnapshot, toggleDocScriptInSnapshot, toggleHeadingCollapseInSnapshot, tokenizeCodeLineForHighlight, unregisterDocMacro, updateAllDocFieldsInSnapshot, updateCalloutInSnapshot, updateColumnGroupInSnapshot, updateDocImageTransformInSnapshot, updateDocMiniSheetInSnapshot, updateDocNoteInSnapshot, updateHyperlinkInSnapshot, updateQuoteInSnapshot, updateSmartArtInSnapshot, updateSyntaxCodeBlockInSnapshot, validateDocForm, validateSdtValueBySpec, writeDocTemplateMetadataToSnapshot, writeSegmentBodyInSnapshot };
|