@yudaocode/univer-docs 1.6.217 → 1.6.218
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/lib/cjs/index.js +3968 -1251
- package/lib/cjs/index.js.map +1 -1
- package/lib/es/index.js +3613 -927
- package/lib/es/index.js.map +1 -1
- package/lib/types/index.d.ts +223 -5
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ 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";
|
|
7
12
|
/**
|
|
8
13
|
* Document working mode:
|
|
9
14
|
* - `design`: full template authoring (edit body, insert/delete SDT controls, bind datasets & row loops)
|
|
@@ -450,7 +455,7 @@ interface IDocInsertInlineFormulaSpec {
|
|
|
450
455
|
format?: DocInlineFormulaFormat;
|
|
451
456
|
decimals?: number;
|
|
452
457
|
}
|
|
453
|
-
type DocEmbeddedChartType = 'bar' | 'horizontalBar' | 'line' | 'area' | 'pie' | 'doughnut';
|
|
458
|
+
type DocEmbeddedChartType = 'bar' | 'column' | 'horizontalBar' | 'line' | 'area' | 'pie' | 'doughnut' | 'scatter' | 'radar';
|
|
454
459
|
interface IDocChartSeries {
|
|
455
460
|
name: string;
|
|
456
461
|
values: number[];
|
|
@@ -883,6 +888,8 @@ interface IDocTemplateMetadata {
|
|
|
883
888
|
comments?: IDocCommentThread[];
|
|
884
889
|
/** Round 3: Structured Title concept block properties keyed by `paragraphId` */
|
|
885
890
|
titleProperties?: Record<string, IDocTitleProperties>;
|
|
891
|
+
/** Embedded live calculable mini-spreadsheets keyed by `id` */
|
|
892
|
+
miniSheets?: Record<string, IDocMiniSheet>;
|
|
886
893
|
}
|
|
887
894
|
type DocAreaMode = 'edit' | 'readonly' | 'form';
|
|
888
895
|
interface IDocCornerBadge {
|
|
@@ -1109,14 +1116,20 @@ interface IDocCellBorderEdgeSpec {
|
|
|
1109
1116
|
widthPt?: number;
|
|
1110
1117
|
color?: string;
|
|
1111
1118
|
}
|
|
1119
|
+
type IDocTableBorderSide = IDocCellBorderEdgeSpec;
|
|
1112
1120
|
interface IDocTableCellBorders {
|
|
1113
1121
|
top?: IDocCellBorderEdgeSpec;
|
|
1114
1122
|
bottom?: IDocCellBorderEdgeSpec;
|
|
1115
1123
|
left?: IDocCellBorderEdgeSpec;
|
|
1116
1124
|
right?: IDocCellBorderEdgeSpec;
|
|
1125
|
+
diagonalDown?: IDocTableBorderSide;
|
|
1126
|
+
diagonalUp?: IDocTableBorderSide;
|
|
1117
1127
|
}
|
|
1118
1128
|
interface IDocTableCellProperties {
|
|
1119
1129
|
slashType?: DocTableCellSlashType;
|
|
1130
|
+
diagonalDown?: IDocTableBorderSide;
|
|
1131
|
+
diagonalUp?: IDocTableBorderSide;
|
|
1132
|
+
formula?: string;
|
|
1120
1133
|
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
1121
1134
|
locked?: boolean;
|
|
1122
1135
|
hint?: string;
|
|
@@ -1365,6 +1378,42 @@ declare class DocTemplateProtocolError extends Error {
|
|
|
1365
1378
|
rowIndex?: number;
|
|
1366
1379
|
});
|
|
1367
1380
|
}
|
|
1381
|
+
type DocSupportedCodeLanguage = 'typescript' | 'javascript' | 'python' | 'java' | 'sql' | 'json' | 'html/css' | 'html' | 'css' | 'bash' | 'go' | 'rust';
|
|
1382
|
+
interface IDocMiniSheetCell {
|
|
1383
|
+
raw: string;
|
|
1384
|
+
value?: string | number;
|
|
1385
|
+
bold?: boolean;
|
|
1386
|
+
bg?: string;
|
|
1387
|
+
numFmt?: string;
|
|
1388
|
+
}
|
|
1389
|
+
interface IDocMiniSheet {
|
|
1390
|
+
id: string;
|
|
1391
|
+
title: string;
|
|
1392
|
+
rows: number;
|
|
1393
|
+
cols: number;
|
|
1394
|
+
cells: Record<string, IDocMiniSheetCell>;
|
|
1395
|
+
anchorIndex?: number;
|
|
1396
|
+
tableId?: string;
|
|
1397
|
+
}
|
|
1398
|
+
type IDocInsertMiniSheetSpec = Partial<Omit<IDocMiniSheet, 'id'>> & {
|
|
1399
|
+
id?: string;
|
|
1400
|
+
};
|
|
1401
|
+
type DocMarkdownShortcutKind = 'heading' | 'blockquote' | 'codeBlock' | 'callout' | 'checklist' | 'divider';
|
|
1402
|
+
interface IDocMarkdownShortcutMatch {
|
|
1403
|
+
kind: DocMarkdownShortcutKind;
|
|
1404
|
+
trigger: string;
|
|
1405
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1406
|
+
language?: string;
|
|
1407
|
+
calloutPreset?: DocCalloutPreset;
|
|
1408
|
+
checked?: boolean;
|
|
1409
|
+
remainingText: string;
|
|
1410
|
+
}
|
|
1411
|
+
interface IDocDelimitedTableData {
|
|
1412
|
+
rows: string[][];
|
|
1413
|
+
rowCount: number;
|
|
1414
|
+
colCount: number;
|
|
1415
|
+
delimiter: string;
|
|
1416
|
+
}
|
|
1368
1417
|
|
|
1369
1418
|
interface ISyncDocAuxStateMutationParams {
|
|
1370
1419
|
unitId: string;
|
|
@@ -2035,6 +2084,83 @@ interface ISetDocTitlePropertiesCommandParams {
|
|
|
2035
2084
|
declare const SetDocTitlePropertiesCommand: ICommand<ISetDocTitlePropertiesCommandParams>;
|
|
2036
2085
|
declare const ALL_DOC_ROUND3_COMMANDS: ICommand[];
|
|
2037
2086
|
|
|
2087
|
+
interface IInsertDocBlockquoteCommandParams {
|
|
2088
|
+
unitId?: string;
|
|
2089
|
+
offset?: number;
|
|
2090
|
+
spec?: IDocInsertQuoteSpec;
|
|
2091
|
+
text?: string;
|
|
2092
|
+
citation?: string;
|
|
2093
|
+
}
|
|
2094
|
+
declare const InsertDocBlockquoteCommand: ICommand<IInsertDocBlockquoteCommandParams>;
|
|
2095
|
+
interface ISetDocParagraphHeadingCommandParams {
|
|
2096
|
+
unitId?: string;
|
|
2097
|
+
level: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2098
|
+
offset?: number;
|
|
2099
|
+
textOverride?: string;
|
|
2100
|
+
}
|
|
2101
|
+
declare const SetDocParagraphHeadingCommand: ICommand<ISetDocParagraphHeadingCommandParams>;
|
|
2102
|
+
interface IUpdateDocCodeBlockCommandParams {
|
|
2103
|
+
unitId?: string;
|
|
2104
|
+
id: string;
|
|
2105
|
+
code?: string;
|
|
2106
|
+
language?: string;
|
|
2107
|
+
}
|
|
2108
|
+
declare const UpdateDocCodeBlockCommand: ICommand<IUpdateDocCodeBlockCommandParams>;
|
|
2109
|
+
interface IRemoveDocCodeBlockCommandParams {
|
|
2110
|
+
unitId?: string;
|
|
2111
|
+
id: string;
|
|
2112
|
+
}
|
|
2113
|
+
declare const RemoveDocCodeBlockCommand: ICommand<IRemoveDocCodeBlockCommandParams>;
|
|
2114
|
+
interface IApplyDocMarkdownShortcutCommandParams {
|
|
2115
|
+
unitId?: string;
|
|
2116
|
+
offset?: number;
|
|
2117
|
+
}
|
|
2118
|
+
declare const ApplyDocMarkdownShortcutCommand: ICommand<IApplyDocMarkdownShortcutCommandParams>;
|
|
2119
|
+
interface IInsertDocMiniSheetCommandParams {
|
|
2120
|
+
unitId?: string;
|
|
2121
|
+
offset?: number;
|
|
2122
|
+
spec?: IDocInsertMiniSheetSpec;
|
|
2123
|
+
}
|
|
2124
|
+
declare const InsertDocMiniSheetCommand: ICommand<IInsertDocMiniSheetCommandParams>;
|
|
2125
|
+
interface IUpdateDocMiniSheetCommandParams {
|
|
2126
|
+
unitId?: string;
|
|
2127
|
+
id: string;
|
|
2128
|
+
patch: Partial<Omit<IDocMiniSheet, 'id'>>;
|
|
2129
|
+
}
|
|
2130
|
+
declare const UpdateDocMiniSheetCommand: ICommand<IUpdateDocMiniSheetCommandParams>;
|
|
2131
|
+
interface IRemoveDocMiniSheetCommandParams {
|
|
2132
|
+
unitId?: string;
|
|
2133
|
+
id: string;
|
|
2134
|
+
}
|
|
2135
|
+
declare const RemoveDocMiniSheetCommand: ICommand<IRemoveDocMiniSheetCommandParams>;
|
|
2136
|
+
interface IConvertTextToTableCommandParams {
|
|
2137
|
+
unitId?: string;
|
|
2138
|
+
text?: string;
|
|
2139
|
+
delimiter?: string;
|
|
2140
|
+
startOffset?: number;
|
|
2141
|
+
endOffset?: number;
|
|
2142
|
+
}
|
|
2143
|
+
declare const ConvertTextToTableCommand: ICommand<IConvertTextToTableCommandParams>;
|
|
2144
|
+
interface IConvertTableToTextCommandParams {
|
|
2145
|
+
unitId?: string;
|
|
2146
|
+
tableIndexOrId?: number | string;
|
|
2147
|
+
delimiter?: string;
|
|
2148
|
+
}
|
|
2149
|
+
declare const ConvertTableToTextCommand: ICommand<IConvertTableToTextCommandParams>;
|
|
2150
|
+
interface ISetDocTableCellFormulaCommandParams {
|
|
2151
|
+
unitId?: string;
|
|
2152
|
+
tableIndexOrId: number | string;
|
|
2153
|
+
rowIndex: number;
|
|
2154
|
+
colIndex: number;
|
|
2155
|
+
formula: string;
|
|
2156
|
+
}
|
|
2157
|
+
declare const SetDocTableCellFormulaCommand: ICommand<ISetDocTableCellFormulaCommandParams>;
|
|
2158
|
+
interface IRecalculateDocTableFormulasCommandParams {
|
|
2159
|
+
unitId?: string;
|
|
2160
|
+
}
|
|
2161
|
+
declare const RecalculateDocTableFormulasCommand: ICommand<IRecalculateDocTableFormulasCommandParams>;
|
|
2162
|
+
declare const ALL_DOC_PRO_COMMANDS: ICommand<any>[];
|
|
2163
|
+
|
|
2038
2164
|
declare function getTargetDocModel(accessor: IAccessor, unitId?: string): DocumentDataModel | null;
|
|
2039
2165
|
declare function reinitializeDocHeaderFooterModels(docModel: DocumentDataModel): void;
|
|
2040
2166
|
/**
|
|
@@ -2700,7 +2826,7 @@ declare class DocExtensionRegistryService extends Disposable implements IDocExte
|
|
|
2700
2826
|
|
|
2701
2827
|
declare const UNIVER_DOC_CHART_PALETTE: readonly string[];
|
|
2702
2828
|
/**
|
|
2703
|
-
* Renders a crisp Univer-themed SVG chart (`bar`, `horizontalBar`, `line`, `area`, `pie`, `doughnut`).
|
|
2829
|
+
* Renders a crisp Univer-themed SVG chart (`bar`, `column`, `horizontalBar`, `line`, `area`, `pie`, `doughnut`, `scatter`, `radar`).
|
|
2704
2830
|
*/
|
|
2705
2831
|
declare function renderDocChartSvg(spec: IDocEmbeddedChart): string;
|
|
2706
2832
|
declare function renderDocChartToSvgDataUri(spec: IDocEmbeddedChart): {
|
|
@@ -2825,11 +2951,13 @@ interface ICodeSyntaxToken {
|
|
|
2825
2951
|
color: string;
|
|
2826
2952
|
bold?: boolean;
|
|
2827
2953
|
italic?: boolean;
|
|
2954
|
+
kind?: 'keyword' | 'string' | 'comment' | 'number' | 'tag' | 'plain';
|
|
2828
2955
|
}
|
|
2829
2956
|
/**
|
|
2830
|
-
* Lightweight zero-dependency syntax tokenizer for inline code blocks
|
|
2957
|
+
* Lightweight zero-dependency syntax tokenizer for inline code blocks
|
|
2958
|
+
* (`TypeScript`, `JavaScript`, `Python`, `Java`, `SQL`, `JSON`, `HTML/CSS`, `Bash`, `Go`, `Rust`).
|
|
2831
2959
|
*/
|
|
2832
|
-
declare function tokenizeCodeLineForHighlight(line: string): ICodeSyntaxToken[];
|
|
2960
|
+
declare function tokenizeCodeLineForHighlight(line: string, language?: string): ICodeSyntaxToken[];
|
|
2833
2961
|
/**
|
|
2834
2962
|
* Inserts a `\b` (`CUSTOM_BLOCK`) inline image drawing into `sourceSnapshot` at `rawOffset`,
|
|
2835
2963
|
* keeping `paragraphs`, `sectionBreaks`, `tables`, `customBlocks`, `customRanges`, `textRuns`,
|
|
@@ -3099,6 +3227,9 @@ interface IDocBuilderTableCellInput {
|
|
|
3099
3227
|
rowSpan?: number;
|
|
3100
3228
|
backgroundRgb?: string;
|
|
3101
3229
|
borders?: IDocTableCellBorders;
|
|
3230
|
+
diagonalDown?: IDocCellBorderEdgeSpec;
|
|
3231
|
+
diagonalUp?: IDocCellBorderEdgeSpec;
|
|
3232
|
+
formula?: string;
|
|
3102
3233
|
/** Explicit cell-only border overrides (when omitted on DOCX import, cell inherits `table.borderDefaults`) */
|
|
3103
3234
|
explicitBorders?: Partial<IDocTableCellBorders>;
|
|
3104
3235
|
/** Resolved 4-side cell margins in points (`1 pt = 20 twip`) */
|
|
@@ -3853,4 +3984,91 @@ declare function setDocTitlePropertiesInSnapshot(sourceSnapshot: IDocumentData,
|
|
|
3853
3984
|
};
|
|
3854
3985
|
declare function isEditBlockedByTitleLock(snapshot: Partial<IDocumentData> | null | undefined, editStart: number, editEndExclusive: number, isDeletion: boolean): boolean;
|
|
3855
3986
|
|
|
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 };
|
|
3987
|
+
declare const DOC_SUPPORTED_CODE_LANGUAGES: ReadonlyArray<{
|
|
3988
|
+
value: string;
|
|
3989
|
+
label: string;
|
|
3990
|
+
}>;
|
|
3991
|
+
declare function normalizeDocCodeLanguageLabel(rawLang?: string): string;
|
|
3992
|
+
declare function listDocCodeBlocks(snapshot: Partial<IDocumentData> | null | undefined): IDocEmbeddedCodeBlockEntry[];
|
|
3993
|
+
declare function updateSyntaxCodeBlockInSnapshot(sourceSnapshot: IDocumentData, id: string, patch: {
|
|
3994
|
+
code?: string;
|
|
3995
|
+
language?: string;
|
|
3996
|
+
}): {
|
|
3997
|
+
snapshot: IDocumentData;
|
|
3998
|
+
entry: IDocEmbeddedCodeBlockEntry;
|
|
3999
|
+
} | null;
|
|
4000
|
+
declare function removeSyntaxCodeBlockFromSnapshot(sourceSnapshot: IDocumentData, id: string): IDocumentData | null;
|
|
4001
|
+
/**
|
|
4002
|
+
* Pure deterministic parser for Markdown block auto-shortcuts at paragraph start:
|
|
4003
|
+
* - `# `, `## `, `### ` (up to `###### `) -> Heading 1..6
|
|
4004
|
+
* - `> ` -> Blockquote
|
|
4005
|
+
* - ```` ```lang ```` -> Code Block (`language = lang`)
|
|
4006
|
+
* - `:::info` / `:::warning` / `:::success` / `:::danger` -> Callout Block
|
|
4007
|
+
* - `- [ ] ` / `- [x] ` -> Interactive Checklist item
|
|
4008
|
+
* - `---` -> Horizontal Divider
|
|
4009
|
+
*/
|
|
4010
|
+
declare function applyDocMarkdownShortcut(lineText: string): IDocMarkdownShortcutMatch | null;
|
|
4011
|
+
declare function setDocParagraphHeadingInSnapshot(sourceSnapshot: IDocumentData, level: 0 | 1 | 2 | 3 | 4 | 5 | 6, offset?: number, textOverride?: string): {
|
|
4012
|
+
snapshot: IDocumentData;
|
|
4013
|
+
cursorOffset: number;
|
|
4014
|
+
} | null;
|
|
4015
|
+
declare function applyDocMarkdownShortcutInSnapshot(sourceSnapshot: IDocumentData, offset?: number): {
|
|
4016
|
+
snapshot: IDocumentData;
|
|
4017
|
+
match: IDocMarkdownShortcutMatch;
|
|
4018
|
+
cursorOffset: number;
|
|
4019
|
+
} | null;
|
|
4020
|
+
declare function miniSheetColIndexToLetters(colIdx: number): string;
|
|
4021
|
+
declare function miniSheetLettersToColIndex(letters: string): number;
|
|
4022
|
+
declare function miniSheetCellKey(rowIdx: number, colIdx: number): string;
|
|
4023
|
+
declare function parseMiniSheetCellKey(cellRef: string): {
|
|
4024
|
+
row: number;
|
|
4025
|
+
col: number;
|
|
4026
|
+
} | null;
|
|
4027
|
+
/**
|
|
4028
|
+
* Evaluates all formulas (`=SUM`, `=AVERAGE`, `=MIN`, `=MAX`, `=COUNT`, `=IF`, `=ROUND`, and `+ - * / ()` across cells)
|
|
4029
|
+
* inside an `IDocMiniSheet`, returning a new `IDocMiniSheet` with every cell's computed `value` populated.
|
|
4030
|
+
*/
|
|
4031
|
+
declare function evaluateDocMiniSheet(sheet: IDocMiniSheet): IDocMiniSheet;
|
|
4032
|
+
declare function formatMiniSheetCellDisplay(cell?: IDocMiniSheetCell): string;
|
|
4033
|
+
declare function insertDocMiniSheetInSnapshot(sourceSnapshot: IDocumentData, spec?: IDocInsertMiniSheetSpec, offset?: number): {
|
|
4034
|
+
snapshot: IDocumentData;
|
|
4035
|
+
miniSheet: IDocMiniSheet;
|
|
4036
|
+
endOffset: number;
|
|
4037
|
+
};
|
|
4038
|
+
declare function updateDocMiniSheetInSnapshot(sourceSnapshot: IDocumentData, id: string, patch: Partial<Omit<IDocMiniSheet, 'id'>>): {
|
|
4039
|
+
snapshot: IDocumentData;
|
|
4040
|
+
miniSheet: IDocMiniSheet;
|
|
4041
|
+
} | null;
|
|
4042
|
+
declare function removeDocMiniSheetFromSnapshot(sourceSnapshot: IDocumentData, id: string): IDocumentData | null;
|
|
4043
|
+
declare function listDocMiniSheets(snapshot: Partial<IDocumentData> | null | undefined): IDocMiniSheet[];
|
|
4044
|
+
declare function convertDelimitedTextToTableData(text: string, delimiter?: string): IDocDelimitedTableData;
|
|
4045
|
+
declare function convertTableDataToDelimitedText(tableDataOrSnapshot: string[][] | Partial<IDocumentData> | null | undefined, delimiter?: string, tableIndex?: number): string;
|
|
4046
|
+
declare function convertDocTableToTextInSnapshot(sourceSnapshot: IDocumentData, tableIndexOrId?: number | string, delimiter?: string): {
|
|
4047
|
+
snapshot: IDocumentData;
|
|
4048
|
+
text: string;
|
|
4049
|
+
insertOffset: number;
|
|
4050
|
+
} | null;
|
|
4051
|
+
declare function convertSelectedTextToTableInSnapshot(sourceSnapshot: IDocumentData, params: {
|
|
4052
|
+
text?: string;
|
|
4053
|
+
delimiter?: string;
|
|
4054
|
+
startOffset?: number;
|
|
4055
|
+
endOffset?: number;
|
|
4056
|
+
}): {
|
|
4057
|
+
snapshot: IDocumentData;
|
|
4058
|
+
tableId: string;
|
|
4059
|
+
endOffset: number;
|
|
4060
|
+
} | null;
|
|
4061
|
+
/**
|
|
4062
|
+
* Evaluates a Word positional or cell-reference table formula (`=SUM(ABOVE)`, `=SUM(LEFT)`, `=SUM(RIGHT)`,
|
|
4063
|
+
* `=SUM(BELOW)`, `=AVERAGE(ABOVE)`, `=COUNT(ABOVE)`, `=MAX(LEFT)`, `=MIN(LEFT)`, `=A2*B2`, `=ROUND(...)`)
|
|
4064
|
+
* against a 2D `tableGrid`.
|
|
4065
|
+
*/
|
|
4066
|
+
declare function evaluateDocTableFormula(tableGrid: Array<Array<string | number>>, rowIdx: number, colIdx: number, formulaExpr: string): number | string;
|
|
4067
|
+
/**
|
|
4068
|
+
* Recalculates all Word positional & cell-reference formulas across all tables in `docData`,
|
|
4069
|
+
* preserving `<w:fldSimple w:instr=" =... ">` customRanges and cell formula metadata.
|
|
4070
|
+
*/
|
|
4071
|
+
declare function recalculateDocTableFormulas(docData: IDocumentData): IDocumentData;
|
|
4072
|
+
declare function setDocTableCellFormulaInSnapshot(sourceSnapshot: IDocumentData, tableIndexOrId: number | string, rowIndex: number, colIndex: number, formulaExpr: string): IDocumentData | null;
|
|
4073
|
+
|
|
4074
|
+
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, CancelDocHyperlinkCommand, CleanUpDocFormattingCommand, ClearDocGraffitiStrokesCommand, 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 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 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 ICancelDocHyperlinkCommandParams, type ICleanUpDocFormattingCommandParams, type IClearDocGraffitiStrokesCommandParams, type ICodeSyntaxToken, 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 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 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 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 IDocTableBorderSide, 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 IInsertDocBlockquoteCommandParams, 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 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 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 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, 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, 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, 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_CHARTS, YUDAO_DOCS_CODE_BLOCKS, YUDAO_DOCS_FOOTNOTES, YUDAO_DOCS_MINI_SHEETS, 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, buildTocBlockLines, buildVisualComparisonSnapshot, canRoleEditSdtControl, cancelHyperlinkInSnapshot, checkDocumentSpellingAndTerms, cleanUpDocFormattingInSnapshot, clearDocGraffitiStrokesInSnapshot as clearDocGraffitiStrokes, clearDocGraffitiStrokesInSnapshot, clearRegisteredDocMacros, 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, 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, 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, inspectDocxExportCapabilities, isDynamicPageFieldInstruction, isEditBlockedByTitleLock, isOffsetInLockedTableCell, isOffsetLockedByGroupSdt, isOffsetReadonlyByArea, layoutLatexFormulaWidget, layoutMedicalFormulaWidget, listDocBookmarks, listDocCallouts, listDocCaptions, listDocCitations, listDocCodeBlocks, listDocCommentsFromSnapshot, listDocFields, listDocHyperlinks, listDocInlineFormulas, listDocMiniSheets, listDocNotesFromSnapshot, listDocQuotes, listDocSdtControls, listDocTables, listLiveDocCharts, listLiveDocShapes, listLiveLatexFormulas, listLiveSmartArts, matchSdtHighlightRule, mergeDocTableCellsInSnapshot, miniSheetCellKey, miniSheetColIndexToLetters, miniSheetLettersToColIndex, normalizeDocCodeLanguageLabel, normalizeDocDrawingsAndPluginResource, normalizeImageDataUriForSdt, normalizeMacroName, normalizeSdtListItems, numberToChineseUpperMoney, parseDateRangePair, parseDocBindingKey, parseDocxBytesToDocData, parseDocxBytesWithReport, parseFieldInstrString, parseIsoDateForExpr, parseLatexMathAst, parseMiniSheetCellKey, parseParagraphBorderLine, parseSdtRangeToResolved, parseTableRowsInStream, readDocTemplateMetadataFromSnapshot, 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, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yudaocode/univer-docs",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.218",
|
|
4
4
|
"description": "Univer Docs enterprise enhancement core plugin: structured SDT controls, table row loop & dataset template engine, view mode & pluggable DOCX/Markdown/HTML IO adapter",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/yudaocode/yudao-univer#readme",
|