@yudaocode/univer-docs 1.6.209 → 1.6.211
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/WORD_TEMPLATE_PROTOCOL.md +176 -0
- package/fixtures/word-template-protocol-v1.json +9135 -0
- package/lib/cjs/index.js +737 -134
- package/lib/cjs/index.js.map +1 -1
- package/lib/es/index.js +745 -144
- package/lib/es/index.js.map +1 -1
- package/lib/types/index.d.ts +51 -7
- package/package.json +5 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -1045,7 +1045,7 @@ interface IDocAddGraffitiStrokeSpec {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
type IDocReportTemplateMetadata = IDocTemplateMetadata;
|
|
1047
1047
|
interface IDocImportWarning {
|
|
1048
|
-
code: 'UNSUPPORTED_SHAPE' | 'UNSUPPORTED_TEXTBOX' | 'UNSUPPORTED_SMARTART' | 'UNSUPPORTED_FIELD' | 'UNSUPPORTED_NOTE' | 'UNSUPPORTED_COMMENT_TRACK' | 'UNSUPPORTED_EMBED' | 'MULTI_SECTION_FLATTENED' | 'FLOATING_IMAGE_INLINE' | 'COMPLEX_NUMBERING_SIMPLIFIED';
|
|
1048
|
+
code: 'UNSUPPORTED_SHAPE' | 'UNSUPPORTED_TEXTBOX' | 'UNSUPPORTED_SMARTART' | 'UNSUPPORTED_FIELD' | 'UNSUPPORTED_NOTE' | 'UNSUPPORTED_COMMENT_TRACK' | 'UNSUPPORTED_EMBED' | 'MULTI_SECTION_FLATTENED' | 'FLOATING_IMAGE_INLINE' | 'COMPLEX_NUMBERING_SIMPLIFIED' | 'SERVER_IMPORT_WARNING' | (string & {});
|
|
1049
1049
|
message: string;
|
|
1050
1050
|
count?: number;
|
|
1051
1051
|
}
|
|
@@ -2276,10 +2276,12 @@ declare function parseDocxBytesWithReport(bytes: Uint8Array, title?: string): Pr
|
|
|
2276
2276
|
*/
|
|
2277
2277
|
declare function parseDocxBytesToDocData(bytes: Uint8Array, title?: string): Promise<IDocumentData>;
|
|
2278
2278
|
|
|
2279
|
-
type DocExportFormat = 'docx' | 'html' | 'pdf' | 'json' | 'rtf' | 'odt' | 'doc' | 'md';
|
|
2279
|
+
type DocExportFormat = 'docx' | 'html' | 'pdf' | 'json' | 'rtf' | 'odt' | 'doc' | 'md' | 'txt';
|
|
2280
|
+
declare const DOC_IO_CAPABILITY_FORMATS: readonly ["docx", "doc", "rtf", "odt", "md", "html", "pdf", "txt", "json"];
|
|
2281
|
+
type DocIoCapabilityFormat = (typeof DOC_IO_CAPABILITY_FORMATS)[number];
|
|
2280
2282
|
/**
|
|
2281
2283
|
* Per-operation IO execution target:
|
|
2282
|
-
* - `'auto'` (default): uses `'server'` when a server adapter hook
|
|
2284
|
+
* - `'auto'` (default): uses `'server'` when a server adapter hook supports the format, otherwise `'browser'`
|
|
2283
2285
|
* - `'browser'`: forces local browser engine (zero upload; never silently falls back to server on error)
|
|
2284
2286
|
* - `'server'`: forces backend adapter hook (throws `DocIoTargetError` if not configured; never silently falls back to browser)
|
|
2285
2287
|
*/
|
|
@@ -2290,6 +2292,11 @@ declare class DocIoTargetError extends Error {
|
|
|
2290
2292
|
readonly suggestedFallback: "browser";
|
|
2291
2293
|
constructor(message: string);
|
|
2292
2294
|
}
|
|
2295
|
+
interface IDocIoFormatCapabilityEntry {
|
|
2296
|
+
browser: boolean;
|
|
2297
|
+
server: boolean;
|
|
2298
|
+
defaultTarget: 'browser' | 'server';
|
|
2299
|
+
}
|
|
2293
2300
|
interface IDocIoCapabilities {
|
|
2294
2301
|
browser: {
|
|
2295
2302
|
importDocx: true;
|
|
@@ -2305,12 +2312,19 @@ interface IDocIoCapabilities {
|
|
|
2305
2312
|
exportDoc: boolean;
|
|
2306
2313
|
onSave: boolean;
|
|
2307
2314
|
};
|
|
2315
|
+
defaultIoTarget: DocIoTarget;
|
|
2308
2316
|
recommendedDefaultTarget: 'server' | 'browser';
|
|
2317
|
+
formats: {
|
|
2318
|
+
import: Record<string, IDocIoFormatCapabilityEntry>;
|
|
2319
|
+
export: Record<string, IDocIoFormatCapabilityEntry>;
|
|
2320
|
+
};
|
|
2309
2321
|
}
|
|
2310
2322
|
interface IDocImportOutcomeReport {
|
|
2323
|
+
snapshot: Partial<IDocumentData>;
|
|
2311
2324
|
documentData: Partial<IDocumentData>;
|
|
2312
2325
|
warnings: IDocImportWarning[];
|
|
2313
2326
|
executedBy: 'browser' | 'server';
|
|
2327
|
+
fileName: string;
|
|
2314
2328
|
}
|
|
2315
2329
|
interface IDocImportContext {
|
|
2316
2330
|
unitId?: string;
|
|
@@ -2328,14 +2342,29 @@ interface IDocSaveContext {
|
|
|
2328
2342
|
unitId: string;
|
|
2329
2343
|
snapshot: IDocumentData;
|
|
2330
2344
|
}
|
|
2345
|
+
interface IDocAdapterImportEnvelope {
|
|
2346
|
+
snapshot?: Partial<IDocumentData>;
|
|
2347
|
+
documentData?: Partial<IDocumentData>;
|
|
2348
|
+
warnings?: Array<IDocImportWarning | string>;
|
|
2349
|
+
}
|
|
2350
|
+
type DocAdapterImportResult = Partial<IDocumentData> | IDocAdapterImportEnvelope;
|
|
2331
2351
|
/**
|
|
2332
2352
|
* Pluggable Import / Export / Save IO adapter for `@yudaocode/univer-docs`.
|
|
2333
2353
|
* Built-in pure frontend engine supports `.docx` (with `<w:sdt>` Structured Document Tags),
|
|
2334
|
-
* `.html`, and `.json` out of the box; host apps can override any hook to delegate to backend APIs.
|
|
2354
|
+
* `.html`, `.md`, `.pdf`, and `.json` out of the box; host apps can override any hook to delegate to backend APIs.
|
|
2335
2355
|
*/
|
|
2336
2356
|
interface IDocIoAdapter {
|
|
2337
2357
|
name?: string;
|
|
2338
|
-
|
|
2358
|
+
defaultIoTarget?: DocIoTarget;
|
|
2359
|
+
browserFormats?: {
|
|
2360
|
+
import?: string[];
|
|
2361
|
+
export?: string[];
|
|
2362
|
+
} | boolean;
|
|
2363
|
+
serverFormats?: {
|
|
2364
|
+
import?: string[];
|
|
2365
|
+
export?: string[];
|
|
2366
|
+
};
|
|
2367
|
+
importDoc?: (file: File, context: IDocImportContext) => Promise<DocAdapterImportResult>;
|
|
2339
2368
|
exportDoc?: (context: IDocExportContext) => Promise<Uint8Array | ArrayBuffer | Blob>;
|
|
2340
2369
|
onSave?: (context: IDocSaveContext) => Promise<void> | void;
|
|
2341
2370
|
}
|
|
@@ -2344,6 +2373,8 @@ interface IDocIoService {
|
|
|
2344
2373
|
readonly saved$: Observable<IDocSavedEvent>;
|
|
2345
2374
|
getAdapter(): IDocIoAdapter;
|
|
2346
2375
|
setAdapter(adapter: IDocIoAdapter): void;
|
|
2376
|
+
getDefaultIoTarget(): DocIoTarget;
|
|
2377
|
+
setDefaultIoTarget(target: DocIoTarget): void;
|
|
2347
2378
|
getIoCapabilities(): IDocIoCapabilities;
|
|
2348
2379
|
onBeforeSave(cb: (ev: IDocBeforeSaveEvent) => void | boolean | Promise<void | boolean>, unitId?: string): IDisposable;
|
|
2349
2380
|
onSaved(cb: (ev: IDocSavedEvent) => void, unitId?: string): IDisposable;
|
|
@@ -2368,6 +2399,7 @@ declare const IDocIoService: _univerjs_core.IdentifierDecorator<IDocIoService>;
|
|
|
2368
2399
|
declare class DocIoService extends Disposable implements IDocIoService {
|
|
2369
2400
|
private readonly _adapter$;
|
|
2370
2401
|
private readonly _saved$;
|
|
2402
|
+
private _serviceDefaultIoTarget?;
|
|
2371
2403
|
private _nextHookId;
|
|
2372
2404
|
private readonly _beforeSaveHooks;
|
|
2373
2405
|
private readonly _savedHooks;
|
|
@@ -2378,7 +2410,10 @@ declare class DocIoService extends Disposable implements IDocIoService {
|
|
|
2378
2410
|
onSaved(cb: (ev: IDocSavedEvent) => void, unitId?: string): IDisposable;
|
|
2379
2411
|
getAdapter(): IDocIoAdapter;
|
|
2380
2412
|
setAdapter(adapter: IDocIoAdapter): void;
|
|
2413
|
+
getDefaultIoTarget(): DocIoTarget;
|
|
2414
|
+
setDefaultIoTarget(target: DocIoTarget): void;
|
|
2381
2415
|
getIoCapabilities(): IDocIoCapabilities;
|
|
2416
|
+
private _resolveEffectiveTarget;
|
|
2382
2417
|
importDocWithReport(file: File, options?: {
|
|
2383
2418
|
unitId?: string;
|
|
2384
2419
|
target?: DocIoTarget;
|
|
@@ -2400,6 +2435,8 @@ declare class DocIoService extends Disposable implements IDocIoService {
|
|
|
2400
2435
|
interface IUniverDocsExtConfig {
|
|
2401
2436
|
/** Optional pluggable frontend/backend DOCX, HTML, PDF & JSON IO adapter */
|
|
2402
2437
|
io?: IDocIoAdapter;
|
|
2438
|
+
/** Default IO execution target (`'auto'` | `'browser'` | `'server'`) */
|
|
2439
|
+
defaultIoTarget?: DocIoTarget;
|
|
2403
2440
|
/** Optional pluggable AI Contract Risk Audit & Clause Drafting copilot adapter */
|
|
2404
2441
|
aiCopilot?: IDocAiCopilotAdapter;
|
|
2405
2442
|
/** Initial document mode (`'design'` | `'form'` | `'view'`). `'view'` enforces strict read-only */
|
|
@@ -2763,6 +2800,11 @@ declare function resolveEffectiveSdtAffixes(spec: Pick<IDocSdtControlSpec, 'visu
|
|
|
2763
2800
|
postfix: string;
|
|
2764
2801
|
};
|
|
2765
2802
|
declare function stripSdtAffixes(rawText: string, spec: Pick<IDocSdtControlSpec, 'visualChrome' | 'prefix' | 'postfix' | 'preText' | 'postText'>): string;
|
|
2803
|
+
/**
|
|
2804
|
+
* Strips editor-only SDT placeholder background/text chrome (`#f3f5ff`, `#eeeff1`, `#7d8698`, `#9ca3af`)
|
|
2805
|
+
* on filled SDTs unless `visualChrome === 'highlight'` was explicitly configured.
|
|
2806
|
+
*/
|
|
2807
|
+
declare function stripDocEditorChromeForView(snapshot: IDocumentData): IDocumentData;
|
|
2766
2808
|
declare function extractAnchorTypography(ts: ITextStyle | undefined): Partial<ITextStyle> | undefined;
|
|
2767
2809
|
declare function resolveBodyOffsetTypography(body: IDocumentBody | undefined, offset: number): Partial<ITextStyle> | undefined;
|
|
2768
2810
|
declare function resolveRangeAnchorTypography(body: IDocumentBody | undefined, range: ICustomRange | undefined): Partial<ITextStyle> | undefined;
|
|
@@ -2873,6 +2915,8 @@ declare function fillDatasetIntoDocSnapshot(snapshot: IDocumentData, data: Recor
|
|
|
2873
2915
|
start: number;
|
|
2874
2916
|
end: number;
|
|
2875
2917
|
}>;
|
|
2918
|
+
/** Strip editor-only `#f3f5ff`/`#eeeff1` background chrome on filled SDTs unless `visualChrome === 'highlight'` (default `true`) */
|
|
2919
|
+
cleanFilledChrome?: boolean;
|
|
2876
2920
|
}): IDocumentData;
|
|
2877
2921
|
type DocBuilderSegment = string | {
|
|
2878
2922
|
text: string;
|
|
@@ -3052,7 +3096,7 @@ declare function buildLiveDocFormContext(snapshot: IDocumentData, extraData?: Re
|
|
|
3052
3096
|
* Evaluates all SDT controls that define `computedExpr` in topological/multi-pass fixed-point order,
|
|
3053
3097
|
* updating their SDT value, display text, and risk highlight styling in-place on `snapshot`.
|
|
3054
3098
|
*/
|
|
3055
|
-
declare function evaluateComputedSdtControlsInPlace(snapshot: IDocumentData, extraData?: Record<string, unknown
|
|
3099
|
+
declare function evaluateComputedSdtControlsInPlace(snapshot: IDocumentData, extraData?: Record<string, unknown>, cleanFilledChrome?: boolean): boolean;
|
|
3056
3100
|
declare function evaluateComputedSdtControls(snapshot: IDocumentData, extraData?: Record<string, unknown>): IDocumentData;
|
|
3057
3101
|
declare function toControlSpecSnapshot(ctrl: IDocResolvedSdtControl): IDocSdtControlSpec;
|
|
3058
3102
|
/**
|
|
@@ -3684,4 +3728,4 @@ declare function setDocTitlePropertiesInSnapshot(sourceSnapshot: IDocumentData,
|
|
|
3684
3728
|
};
|
|
3685
3729
|
declare function isEditBlockedByTitleLock(snapshot: Partial<IDocumentData> | null | undefined, editStart: number, editEndExclusive: number, isDeletion: boolean): boolean;
|
|
3686
3730
|
|
|
3687
|
-
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_HYPERLINK_DEFAULT_COLOR, DOC_TRACK_DELETE_STYLE, DOC_TRACK_INSERT_STYLE, DeleteDocAreaCommand, DeleteDocColumnGroupCommand, DeleteDocCommentCommand, DeleteDocHyperlinkCommand, DeleteDocNoteCommand, DeleteDocSdtCommand, DeleteDocTableColumnCommand, DeleteDocTableRowCommand, DocActionMacroService, 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, 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, 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 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, 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 IDocImportOutcomeReport, type IDocImportWarning, type IDocInlineFormula, 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, 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 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 IDocTableRowLoopConfig, type IDocTableRowSummary, type IDocTableSummary, type IDocTemplateMetadata, 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, 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, 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, extractDocFormValues, 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, isEditBlockedByTitleLock, isOffsetInLockedTableCell, isOffsetLockedByGroupSdt, isOffsetReadonlyByArea, layoutLatexFormulaWidget, layoutMedicalFormulaWidget, listDocBookmarks, listDocCallouts, listDocCaptions, listDocCitations, listDocCommentsFromSnapshot, listDocFields, listDocHyperlinks, listDocInlineFormulas, listDocNotesFromSnapshot, listDocQuotes, listDocSdtControls, listDocTables, listLiveDocCharts, listLiveDocShapes, listLiveLatexFormulas, listLiveSmartArts, matchSdtHighlightRule, mergeDocTableCellsInSnapshot, normalizeImageDataUriForSdt, normalizeMacroName, normalizeSdtListItems, numberToChineseUpperMoney, parseDateRangePair, parseDocxBytesToDocData, parseDocxBytesWithReport, parseFieldInstrString, parseIsoDateForExpr, parseLatexMathAst, parseParagraphBorderLine, parseSdtRangeToResolved, parseTableRowsInStream, readDocTemplateMetadataFromSnapshot, recalculateInlineFormulasInPlace, reconcileTemplateMetadataWithLiveSnapshot, recordDocTrackRevisionOnSnapshot, refreshTableOfContentsInSnapshot, registerDocMacro, 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, stripSdtAffixes, syncSnapshotAuxFields, toControlSpecSnapshot, toggleDocListCheckboxInSnapshot, toggleDocScriptInSnapshot, toggleHeadingCollapseInSnapshot, tokenizeCodeLineForHighlight, unregisterDocMacro, updateAllDocFieldsInSnapshot, updateCalloutInSnapshot, updateColumnGroupInSnapshot, updateDocImageTransformInSnapshot, updateDocNoteInSnapshot, updateHyperlinkInSnapshot, updateQuoteInSnapshot, updateSmartArtInSnapshot, validateDocForm, validateSdtValueBySpec, writeDocTemplateMetadataToSnapshot, writeSegmentBodyInSnapshot };
|
|
3731
|
+
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_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 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, 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, 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 IDocImportOutcomeReport, type IDocImportWarning, type IDocInlineFormula, 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 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 IDocTableRowLoopConfig, type IDocTableRowSummary, type IDocTableSummary, type IDocTemplateMetadata, 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, 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, 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, extractDocFormValues, 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, isEditBlockedByTitleLock, isOffsetInLockedTableCell, isOffsetLockedByGroupSdt, isOffsetReadonlyByArea, layoutLatexFormulaWidget, layoutMedicalFormulaWidget, listDocBookmarks, listDocCallouts, listDocCaptions, listDocCitations, listDocCommentsFromSnapshot, listDocFields, listDocHyperlinks, listDocInlineFormulas, listDocNotesFromSnapshot, listDocQuotes, listDocSdtControls, listDocTables, listLiveDocCharts, listLiveDocShapes, listLiveLatexFormulas, listLiveSmartArts, matchSdtHighlightRule, mergeDocTableCellsInSnapshot, normalizeImageDataUriForSdt, normalizeMacroName, normalizeSdtListItems, numberToChineseUpperMoney, parseDateRangePair, parseDocxBytesToDocData, parseDocxBytesWithReport, parseFieldInstrString, parseIsoDateForExpr, parseLatexMathAst, parseParagraphBorderLine, parseSdtRangeToResolved, parseTableRowsInStream, readDocTemplateMetadataFromSnapshot, recalculateInlineFormulasInPlace, reconcileTemplateMetadataWithLiveSnapshot, recordDocTrackRevisionOnSnapshot, refreshTableOfContentsInSnapshot, registerDocMacro, 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, syncSnapshotAuxFields, toControlSpecSnapshot, toggleDocListCheckboxInSnapshot, toggleDocScriptInSnapshot, toggleHeadingCollapseInSnapshot, tokenizeCodeLineForHighlight, unregisterDocMacro, updateAllDocFieldsInSnapshot, updateCalloutInSnapshot, updateColumnGroupInSnapshot, updateDocImageTransformInSnapshot, updateDocNoteInSnapshot, updateHyperlinkInSnapshot, updateQuoteInSnapshot, updateSmartArtInSnapshot, 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.211",
|
|
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",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"registry": "https://registry.npmjs.org/"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
|
-
"lib"
|
|
30
|
+
"lib",
|
|
31
|
+
"fixtures",
|
|
32
|
+
"WORD_TEMPLATE_PROTOCOL.md"
|
|
31
33
|
],
|
|
32
34
|
"main": "./lib/cjs/index.js",
|
|
33
35
|
"module": "./lib/es/index.js",
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
"import": "./lib/es/facade/index.js",
|
|
44
46
|
"require": "./lib/cjs/facade/index.js"
|
|
45
47
|
},
|
|
48
|
+
"./fixtures/word-template-protocol-v1.json": "./fixtures/word-template-protocol-v1.json",
|
|
46
49
|
"./package.json": "./package.json"
|
|
47
50
|
},
|
|
48
51
|
"peerDependencies": {
|