superdoc 2.24.0-next.7 → 2.24.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/authorities/authorities.types.d.ts +2 -0
- package/dist/document-api/src/bookmarks/bookmarks.types.d.ts +1 -0
- package/dist/document-api/src/captions/captions.types.d.ts +1 -0
- package/dist/document-api/src/citations/citations.types.d.ts +2 -0
- package/dist/document-api/src/content-controls/content-controls.types.d.ts +1 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +3 -3
- package/dist/document-api/src/cross-refs/cross-refs.types.d.ts +1 -0
- package/dist/document-api/src/fields/fields.types.d.ts +1 -0
- package/dist/document-api/src/footnotes/footnotes.types.d.ts +2 -0
- package/dist/document-api/src/hyperlinks/hyperlinks.types.d.ts +1 -0
- package/dist/document-api/src/images/images.types.d.ts +2 -0
- package/dist/document-api/src/index/index.types.d.ts +2 -0
- package/dist/document-api/src/lists/lists.types.d.ts +10 -0
- package/dist/document-api/src/paragraphs/paragraphs.types.d.ts +3 -0
- package/dist/document-api/src/receipt-bridge.d.ts +1 -0
- package/dist/document-api/src/sections/sections.types.d.ts +4 -1
- package/dist/document-api/src/toc/toc.types.d.ts +3 -0
- package/dist/document-api/src/types/blocks.types.d.ts +6 -1
- package/dist/document-api/src/types/create.types.d.ts +3 -1
- package/dist/document-api/src/types/mutation-plan.types.d.ts +4 -0
- package/dist/document-api/src/types/receipt.d.ts +8 -0
- package/dist/document-api/src/types/sd-contract.d.ts +2 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +2 -0
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist-cdn/superdoc.min.js +3 -3
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
19
19
|
var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
|
|
20
20
|
var ENGINE_INFO = Object.freeze({
|
|
21
21
|
...PRIVATE_ENGINE_INFO,
|
|
22
|
-
superdocVersion: "2.24.0-next.
|
|
22
|
+
superdocVersion: "2.24.0-next.9",
|
|
23
23
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
24
24
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
25
25
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
18
18
|
var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
|
|
19
19
|
var ENGINE_INFO = Object.freeze({
|
|
20
20
|
...PRIVATE_ENGINE_INFO,
|
|
21
|
-
superdocVersion: "2.24.0-next.
|
|
21
|
+
superdocVersion: "2.24.0-next.9",
|
|
22
22
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
23
23
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
24
24
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -101,11 +101,13 @@ export interface AuthorityEntryDomain {
|
|
|
101
101
|
}
|
|
102
102
|
export interface AuthoritiesMutationSuccess {
|
|
103
103
|
success: true;
|
|
104
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
104
105
|
authorities: AuthoritiesAddress;
|
|
105
106
|
}
|
|
106
107
|
export type AuthoritiesMutationResult = AuthoritiesMutationSuccess | AdapterMutationFailure;
|
|
107
108
|
export interface AuthorityEntryMutationSuccess {
|
|
108
109
|
success: true;
|
|
110
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
109
111
|
entry: AuthorityEntryAddress;
|
|
110
112
|
}
|
|
111
113
|
export type AuthorityEntryMutationResult = AuthorityEntryMutationSuccess | AdapterMutationFailure;
|
|
@@ -82,6 +82,7 @@ export interface BookmarkDomain {
|
|
|
82
82
|
}
|
|
83
83
|
export interface BookmarkMutationSuccess {
|
|
84
84
|
success: true;
|
|
85
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
85
86
|
bookmark: BookmarkAddress;
|
|
86
87
|
}
|
|
87
88
|
export type BookmarkMutationResult = BookmarkMutationSuccess | AdapterMutationFailure;
|
|
@@ -51,6 +51,7 @@ export interface CaptionDomain {
|
|
|
51
51
|
}
|
|
52
52
|
export interface CaptionMutationSuccess {
|
|
53
53
|
success: true;
|
|
54
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
54
55
|
caption: CaptionAddress;
|
|
55
56
|
}
|
|
56
57
|
export type CaptionMutationResult = CaptionMutationSuccess | AdapterMutationFailure;
|
|
@@ -144,6 +144,7 @@ export interface BibliographyInfo {
|
|
|
144
144
|
}
|
|
145
145
|
export interface CitationMutationSuccess {
|
|
146
146
|
success: true;
|
|
147
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
147
148
|
citation: CitationAddress;
|
|
148
149
|
}
|
|
149
150
|
export type CitationMutationResult = CitationMutationSuccess | AdapterMutationFailure;
|
|
@@ -154,6 +155,7 @@ export interface CitationSourceMutationSuccess {
|
|
|
154
155
|
export type CitationSourceMutationResult = CitationSourceMutationSuccess | AdapterMutationFailure;
|
|
155
156
|
export interface BibliographyMutationSuccess {
|
|
156
157
|
success: true;
|
|
158
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
157
159
|
bibliography: BibliographyAddress;
|
|
158
160
|
}
|
|
159
161
|
export type BibliographyMutationResult = BibliographyMutationSuccess | AdapterMutationFailure;
|
|
@@ -156,6 +156,7 @@ export interface ContentControlInfo {
|
|
|
156
156
|
}
|
|
157
157
|
export interface ContentControlMutationSuccess {
|
|
158
158
|
success: true;
|
|
159
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
159
160
|
contentControl: ContentControlTarget;
|
|
160
161
|
updatedRef?: ContentControlTarget;
|
|
161
162
|
affectedStories?: StoryLocator[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandCatalog, CommandStaticMetadata, OperationId } from './types.js';
|
|
2
2
|
export declare const COMMAND_CATALOG: CommandCatalog;
|
|
3
3
|
/** Operation IDs whose catalog entry has `mutates: true`. */
|
|
4
|
-
export declare const MUTATING_OPERATION_IDS: ("replace" | "find" | "delete" | "insert" | "info" | "selection.extractOoxml" | "selection.current" | "selection.releaseSnapshot" | "projectHtml" | "projectMarkdown" | "capabilities.check" | "format.apply" | "blocks.split" | "blocks.merge" | "blocks.move" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "format.paragraph.setMarkRunProps" | "tables.moveRow" | "tables.moveColumn" | "format.bold" | "format.strike" | "format.color" | "format.position" | "format.rtl" | "format.cs" | "format.shading" | "format.fontFamily" | "format.lang" | "format.fontSize" | "format.fontSizeCs" | "format.highlight" | "format.italic" | "format.underline" | "format.caps" | "format.smallCaps" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.border" | "format.fitText" | "format.dstrike" | "format.vertAlign" | "format.bCs" | "format.iCs" | "format.snapToGrid" | "format.oMath" | "format.letterSpacing" | "format.charScale" | "format.kerning" | "format.rStyle" | "format.rFonts" | "format.eastAsianLayout" | "format.em" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "get" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "markdownToFragment" | "htmlToFragment" | "extract" | "clearContent" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve")[];
|
|
4
|
+
export declare const MUTATING_OPERATION_IDS: ("replace" | "find" | "delete" | "selection.extractOoxml" | "selection.current" | "selection.releaseSnapshot" | "insert" | "info" | "projectHtml" | "projectMarkdown" | "capabilities.check" | "format.apply" | "blocks.split" | "blocks.merge" | "blocks.move" | "lists.getState" | "lists.apply" | "lists.continue" | "lists.restart" | "lists.remove" | "format.paragraph.setMarkRunProps" | "tables.moveRow" | "tables.moveColumn" | "format.bold" | "format.strike" | "format.color" | "format.position" | "format.rtl" | "format.cs" | "format.shading" | "format.fontFamily" | "format.lang" | "format.fontSize" | "format.fontSizeCs" | "format.highlight" | "format.italic" | "format.underline" | "format.caps" | "format.smallCaps" | "format.outline" | "format.shadow" | "format.emboss" | "format.imprint" | "format.vanish" | "format.webHidden" | "format.specVanish" | "format.border" | "format.dstrike" | "format.vertAlign" | "format.bCs" | "format.iCs" | "format.snapToGrid" | "format.oMath" | "format.letterSpacing" | "format.charScale" | "format.kerning" | "format.fitText" | "format.rStyle" | "format.rFonts" | "format.eastAsianLayout" | "format.em" | "format.ligatures" | "format.numForm" | "format.numSpacing" | "format.stylisticSets" | "format.contextualAlternates" | "get" | "getNode" | "getNodeById" | "getText" | "getMarkdown" | "getHtml" | "markdownToFragment" | "htmlToFragment" | "extract" | "clearContent" | "formatRange" | "blocks.findText" | "blocks.list" | "blocks.delete" | "blocks.deleteRange" | "styles.apply" | "styles.getCatalog" | "templates.apply" | "create.paragraph" | "create.heading" | "create.sectionBreak" | "sections.list" | "sections.get" | "sections.setBreakType" | "sections.setPageMargins" | "sections.setHeaderFooterMargins" | "sections.setPageSetup" | "sections.setColumns" | "sections.setLineNumbering" | "sections.setPageNumbering" | "sections.setTitlePage" | "sections.setOddEvenHeadersFooters" | "sections.setVerticalAlign" | "sections.setSectionDirection" | "sections.setHeaderFooterRef" | "sections.clearHeaderFooterRef" | "sections.setLinkToPrevious" | "sections.setPageBorders" | "sections.clearPageBorders" | "styles.paragraph.setStyle" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "format.paragraph.resetDirectFormatting" | "format.paragraph.setAlignment" | "format.paragraph.clearAlignment" | "format.paragraph.setIndentation" | "format.paragraph.clearIndentation" | "format.paragraph.setSpacing" | "format.paragraph.clearSpacing" | "format.paragraph.setKeepOptions" | "format.paragraph.setOutlineLevel" | "format.paragraph.setFlowOptions" | "format.paragraph.setTabStop" | "format.paragraph.clearTabStop" | "format.paragraph.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setDirection" | "format.paragraph.clearDirection" | "format.paragraph.setNumbering" | "lists.list" | "lists.get" | "lists.insert" | "lists.create" | "lists.attach" | "lists.detach" | "lists.delete" | "lists.indent" | "lists.outdent" | "lists.join" | "lists.canJoin" | "lists.separate" | "lists.merge" | "lists.split" | "lists.setLevel" | "lists.setValue" | "lists.continuePrevious" | "lists.canContinuePrevious" | "lists.setLevelRestart" | "lists.convertToText" | "lists.applyTemplate" | "lists.applyPreset" | "lists.setType" | "lists.captureTemplate" | "lists.setLevelNumbering" | "lists.setLevelBullet" | "lists.setLevelPictureBullet" | "lists.setLevelAlignment" | "lists.setLevelIndents" | "lists.setLevelTrailingCharacter" | "lists.setLevelMarkerFont" | "lists.clearLevelOverrides" | "lists.getStyle" | "lists.applyStyle" | "lists.restartAt" | "lists.setLevelNumberStyle" | "lists.setLevelText" | "lists.setLevelStart" | "lists.setLevelLayout" | "comments.create" | "comments.patch" | "comments.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "trackChanges.decide" | "query.match" | "ranges.resolve" | "mutations.preview" | "mutations.apply" | "plan.execute" | "capabilities.get" | "capabilities.resolve" | "create.table" | "tables.convertFromText" | "tables.delete" | "tables.clearContents" | "tables.move" | "tables.split" | "tables.convertToText" | "tables.setLayout" | "tables.insertRow" | "tables.deleteRow" | "tables.setRowHeight" | "tables.distributeRows" | "tables.setRowOptions" | "tables.insertColumn" | "tables.deleteColumn" | "tables.setColumnWidth" | "tables.distributeColumns" | "tables.insertCell" | "tables.deleteCell" | "tables.mergeCells" | "tables.unmergeCells" | "tables.splitCell" | "tables.setCellProperties" | "tables.setCellText" | "tables.sort" | "tables.setAltText" | "tables.setStyle" | "tables.clearStyle" | "tables.setStyleOption" | "tables.setBorder" | "tables.clearBorder" | "tables.applyBorderPreset" | "tables.setShading" | "tables.clearShading" | "tables.setTablePadding" | "tables.setCellPadding" | "tables.setCellSpacing" | "tables.clearCellSpacing" | "tables.applyStyle" | "tables.setBorders" | "tables.setTableOptions" | "tables.applyPreset" | "tables.get" | "tables.getCells" | "tables.getProperties" | "tables.getStyles" | "tables.setDefaultStyle" | "tables.clearDefaultStyle" | "create.tableOfContents" | "toc.list" | "toc.get" | "toc.configure" | "toc.update" | "toc.remove" | "toc.markEntry" | "toc.unmarkEntry" | "toc.listEntries" | "toc.getEntry" | "toc.editEntry" | "history.get" | "history.undo" | "history.redo" | "create.image" | "images.list" | "images.get" | "images.delete" | "images.move" | "images.convertToInline" | "images.convertToFloating" | "images.setSize" | "images.setWrapType" | "images.setWrapSide" | "images.setWrapDistances" | "images.setPosition" | "images.setAnchorOptions" | "images.setZOrder" | "images.scale" | "images.setLockAspectRatio" | "images.rotate" | "images.flip" | "images.crop" | "images.resetCrop" | "images.replaceSource" | "images.setAltText" | "images.setDecorative" | "images.setName" | "images.setHyperlink" | "images.insertCaption" | "images.updateCaption" | "images.removeCaption" | "hyperlinks.list" | "hyperlinks.get" | "hyperlinks.wrap" | "hyperlinks.insert" | "hyperlinks.patch" | "hyperlinks.remove" | "headerFooters.list" | "headerFooters.get" | "headerFooters.resolve" | "headerFooters.refs.set" | "headerFooters.refs.clear" | "headerFooters.refs.setLinkedToPrevious" | "headerFooters.parts.list" | "headerFooters.parts.create" | "headerFooters.parts.delete" | "headerFooters.pageNumbers.get" | "headerFooters.pageNumbers.insert" | "headerFooters.pageNumbers.set" | "headerFooters.pageNumbers.remove" | "watermarks.apply" | "watermarks.list" | "watermarks.insert" | "watermarks.replace" | "watermarks.remove" | "create.contentControl" | "contentControls.list" | "contentControls.get" | "contentControls.listInRange" | "contentControls.selectByTag" | "contentControls.selectByTitle" | "contentControls.listChildren" | "contentControls.getParent" | "contentControls.wrap" | "contentControls.unwrap" | "contentControls.delete" | "contentControls.copy" | "contentControls.move" | "contentControls.patch" | "contentControls.setLockMode" | "contentControls.setType" | "contentControls.getContent" | "contentControls.replaceContent" | "contentControls.clearContent" | "contentControls.appendContent" | "contentControls.prependContent" | "contentControls.insertBefore" | "contentControls.insertAfter" | "contentControls.getBinding" | "contentControls.setBinding" | "contentControls.clearBinding" | "contentControls.getRawProperties" | "contentControls.patchRawProperties" | "contentControls.validateWordCompatibility" | "contentControls.normalizeWordCompatibility" | "contentControls.normalizeTagPayload" | "contentControls.text.setMultiline" | "contentControls.text.setValue" | "contentControls.text.clearValue" | "contentControls.date.setValue" | "contentControls.date.clearValue" | "contentControls.date.setDisplayFormat" | "contentControls.date.setDisplayLocale" | "contentControls.date.setStorageFormat" | "contentControls.date.setCalendar" | "contentControls.checkbox.getState" | "contentControls.checkbox.setState" | "contentControls.checkbox.toggle" | "contentControls.checkbox.setSymbolPair" | "contentControls.choiceList.getItems" | "contentControls.choiceList.setItems" | "contentControls.choiceList.setSelected" | "contentControls.repeatingSection.listItems" | "contentControls.repeatingSection.insertItemBefore" | "contentControls.repeatingSection.insertItemAfter" | "contentControls.repeatingSection.cloneItem" | "contentControls.repeatingSection.deleteItem" | "contentControls.repeatingSection.setAllowInsertDelete" | "contentControls.group.wrap" | "contentControls.group.ungroup" | "bookmarks.list" | "bookmarks.get" | "bookmarks.insert" | "bookmarks.rename" | "bookmarks.remove" | "footnotes.list" | "footnotes.get" | "footnotes.insert" | "footnotes.update" | "footnotes.remove" | "footnotes.configure" | "clipboard.parse" | "clipboard.insert" | "clipboard.serializeSelection" | "crossRefs.list" | "crossRefs.get" | "crossRefs.insert" | "crossRefs.rebuild" | "crossRefs.remove" | "index.list" | "index.get" | "index.insert" | "index.configure" | "index.rebuild" | "index.remove" | "index.entries.list" | "index.entries.get" | "index.entries.insert" | "index.entries.update" | "index.entries.remove" | "captions.list" | "captions.get" | "captions.insert" | "captions.update" | "captions.remove" | "captions.configure" | "fields.list" | "fields.get" | "fields.insert" | "fields.rebuild" | "fields.remove" | "citations.list" | "citations.get" | "citations.insert" | "citations.update" | "citations.remove" | "citations.sources.list" | "citations.sources.get" | "citations.sources.insert" | "citations.sources.update" | "citations.sources.remove" | "citations.bibliography.get" | "citations.bibliography.insert" | "citations.bibliography.rebuild" | "citations.bibliography.configure" | "citations.bibliography.remove" | "authorities.list" | "authorities.get" | "authorities.insert" | "authorities.configure" | "authorities.rebuild" | "authorities.remove" | "authorities.entries.list" | "authorities.entries.get" | "authorities.entries.insert" | "authorities.entries.update" | "authorities.entries.remove" | "diff.capture" | "diff.compare" | "diff.apply" | "export.toDocx" | "protection.get" | "protection.setEditingRestriction" | "protection.clearEditingRestriction" | "permissionRanges.list" | "permissionRanges.get" | "permissionRanges.create" | "permissionRanges.remove" | "permissionRanges.updatePrincipal" | "customXml.parts.list" | "customXml.parts.get" | "customXml.parts.create" | "customXml.parts.patch" | "customXml.parts.remove" | "metadata.attach" | "metadata.list" | "metadata.get" | "metadata.update" | "metadata.remove" | "metadata.resolve")[];
|
|
5
5
|
/** Maps each operation to its human-readable description. */
|
|
6
6
|
export declare const OPERATION_DESCRIPTION_MAP: Record<OperationId, string>;
|
|
7
7
|
/** Maps each operation to whether it requires an open document to execute. */
|
|
@@ -3590,9 +3590,6 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
3590
3590
|
readonly "format.border": OperationDefinitionEntry & {
|
|
3591
3591
|
memberPath: "format.border";
|
|
3592
3592
|
};
|
|
3593
|
-
readonly "format.fitText": OperationDefinitionEntry & {
|
|
3594
|
-
memberPath: "format.fitText";
|
|
3595
|
-
};
|
|
3596
3593
|
readonly "format.dstrike": OperationDefinitionEntry & {
|
|
3597
3594
|
memberPath: "format.dstrike";
|
|
3598
3595
|
};
|
|
@@ -3620,6 +3617,9 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
3620
3617
|
readonly "format.kerning": OperationDefinitionEntry & {
|
|
3621
3618
|
memberPath: "format.kerning";
|
|
3622
3619
|
};
|
|
3620
|
+
readonly "format.fitText": OperationDefinitionEntry & {
|
|
3621
|
+
memberPath: "format.fitText";
|
|
3622
|
+
};
|
|
3623
3623
|
readonly "format.rStyle": OperationDefinitionEntry & {
|
|
3624
3624
|
memberPath: "format.rStyle";
|
|
3625
3625
|
};
|
|
@@ -62,6 +62,7 @@ export interface CrossRefDomain {
|
|
|
62
62
|
}
|
|
63
63
|
export interface CrossRefMutationSuccess {
|
|
64
64
|
success: true;
|
|
65
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
65
66
|
crossRef: CrossRefAddress;
|
|
66
67
|
}
|
|
67
68
|
export type CrossRefMutationResult = CrossRefMutationSuccess | AdapterMutationFailure;
|
|
@@ -94,11 +94,13 @@ export interface FootnoteDomain {
|
|
|
94
94
|
}
|
|
95
95
|
export interface FootnoteMutationSuccess {
|
|
96
96
|
success: true;
|
|
97
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
97
98
|
footnote: FootnoteAddress;
|
|
98
99
|
}
|
|
99
100
|
export type FootnoteMutationResult = FootnoteMutationSuccess | AdapterMutationFailure;
|
|
100
101
|
export interface FootnoteConfigSuccess {
|
|
101
102
|
success: true;
|
|
103
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
102
104
|
}
|
|
103
105
|
export type FootnoteConfigResult = FootnoteConfigSuccess | AdapterMutationFailure;
|
|
104
106
|
export type FootnotesListResult = DiscoveryOutput<FootnoteDomain>;
|
|
@@ -188,6 +188,7 @@ export interface SetZOrderInput {
|
|
|
188
188
|
}
|
|
189
189
|
export interface CreateImageSuccessResult {
|
|
190
190
|
success: true;
|
|
191
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
191
192
|
image: ImageAddress;
|
|
192
193
|
trackedChangeRefs?: ReceiptInsert[];
|
|
193
194
|
/** Commit id for the insertion, including its alt text when that was set in the same call. */
|
|
@@ -207,6 +208,7 @@ export interface ImagesListResult {
|
|
|
207
208
|
}
|
|
208
209
|
export interface ImagesMutationSuccessResult {
|
|
209
210
|
success: true;
|
|
211
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
210
212
|
image: ImageAddress;
|
|
211
213
|
trackedChangeRefs?: ReceiptInsert[];
|
|
212
214
|
}
|
|
@@ -113,11 +113,13 @@ export interface IndexEntryDomain {
|
|
|
113
113
|
}
|
|
114
114
|
export interface IndexMutationSuccess {
|
|
115
115
|
success: true;
|
|
116
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
116
117
|
index: IndexAddress;
|
|
117
118
|
}
|
|
118
119
|
export type IndexMutationResult = IndexMutationSuccess | AdapterMutationFailure;
|
|
119
120
|
export interface IndexEntryMutationSuccess {
|
|
120
121
|
success: true;
|
|
122
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
121
123
|
entry: IndexEntryAddress;
|
|
122
124
|
}
|
|
123
125
|
export type IndexEntryMutationResult = IndexEntryMutationSuccess | AdapterMutationFailure;
|
|
@@ -358,12 +358,14 @@ export interface ListsCaptureTemplateSuccessResult {
|
|
|
358
358
|
export type ListsCaptureTemplateResult = ListsCaptureTemplateSuccessResult | ListsFailureResult;
|
|
359
359
|
export interface ListsInsertSuccessResult {
|
|
360
360
|
success: true;
|
|
361
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
361
362
|
item: ListItemAddress;
|
|
362
363
|
insertionPoint: TextAddress;
|
|
363
364
|
trackedChangeRefs?: ReceiptInsert[];
|
|
364
365
|
}
|
|
365
366
|
export interface ListsMutateItemSuccessResult {
|
|
366
367
|
success: true;
|
|
368
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
367
369
|
item: ListItemAddress;
|
|
368
370
|
/** Tracked changes authored by this mutation when `changeMode` is tracked. */
|
|
369
371
|
trackedChangeRefs?: ReceiptInsert[];
|
|
@@ -375,32 +377,38 @@ export interface ListsMutateItemSuccessResult {
|
|
|
375
377
|
}
|
|
376
378
|
export interface ListsCreateSuccessResult {
|
|
377
379
|
success: true;
|
|
380
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
378
381
|
listId: string;
|
|
379
382
|
item: ListItemAddress;
|
|
380
383
|
}
|
|
381
384
|
export interface ListsJoinSuccessResult {
|
|
382
385
|
success: true;
|
|
386
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
383
387
|
listId: string;
|
|
384
388
|
}
|
|
385
389
|
export interface ListsSeparateSuccessResult {
|
|
386
390
|
success: true;
|
|
391
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
387
392
|
listId: string;
|
|
388
393
|
numId: number;
|
|
389
394
|
}
|
|
390
395
|
export interface ListsMergeSuccessResult {
|
|
391
396
|
success: true;
|
|
397
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
392
398
|
listId: string;
|
|
393
399
|
absorbedCount: number;
|
|
394
400
|
removedEmptyBlocks: number;
|
|
395
401
|
}
|
|
396
402
|
export interface ListsSplitSuccessResult {
|
|
397
403
|
success: true;
|
|
404
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
398
405
|
listId: string;
|
|
399
406
|
numId: number;
|
|
400
407
|
restartedAt: number | null;
|
|
401
408
|
}
|
|
402
409
|
export interface ListsDetachSuccessResult {
|
|
403
410
|
success: true;
|
|
411
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
404
412
|
paragraph: {
|
|
405
413
|
kind: 'block';
|
|
406
414
|
nodeType: 'paragraph';
|
|
@@ -409,6 +417,7 @@ export interface ListsDetachSuccessResult {
|
|
|
409
417
|
}
|
|
410
418
|
export interface ListsConvertToTextSuccessResult {
|
|
411
419
|
success: true;
|
|
420
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
412
421
|
paragraph: {
|
|
413
422
|
kind: 'block';
|
|
414
423
|
nodeType: 'paragraph';
|
|
@@ -440,6 +449,7 @@ export type ListsDetachResult = ListsDetachSuccessResult | ListsFailureResult;
|
|
|
440
449
|
export type ListsConvertToTextResult = ListsConvertToTextSuccessResult | ListsFailureResult;
|
|
441
450
|
export interface ListsDeleteSuccessResult {
|
|
442
451
|
success: true;
|
|
452
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
443
453
|
/** Number of list items removed. */
|
|
444
454
|
deletedCount: number;
|
|
445
455
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BlockNodeAddress } from '../types/base.js';
|
|
2
2
|
import { ReceiptFailure, ReceiptInsert } from '../types/receipt.js';
|
|
3
3
|
import { SDRunProps } from '../types/sd-props.js';
|
|
4
|
+
import { ChangeMode } from '../write/write.js';
|
|
4
5
|
export type ParagraphBlockType = 'paragraph' | 'heading' | 'listItem';
|
|
5
6
|
export type ParagraphTarget = BlockNodeAddress & {
|
|
6
7
|
nodeType: ParagraphBlockType;
|
|
@@ -12,6 +13,8 @@ export interface ParagraphMutationSuccess {
|
|
|
12
13
|
success: true;
|
|
13
14
|
target: ParagraphTarget;
|
|
14
15
|
resolution: MutationResolution;
|
|
16
|
+
/** Mode applied to committed paragraph content; omitted when no content was committed. */
|
|
17
|
+
appliedChangeMode?: ChangeMode;
|
|
15
18
|
/** Logical tracked-change entities created or revised by this mutation. */
|
|
16
19
|
trackedChangeRefs?: ReceiptInsert[];
|
|
17
20
|
}
|
|
@@ -7,6 +7,7 @@ export interface MutationReceiptBridgeContext {
|
|
|
7
7
|
conversion?: SDMutationConversionReport;
|
|
8
8
|
}
|
|
9
9
|
interface CanonicalSuccessMetadata {
|
|
10
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
10
11
|
id?: ReceiptSuccess['id'];
|
|
11
12
|
inserted?: ReceiptSuccess['inserted'];
|
|
12
13
|
updated?: ReceiptSuccess['updated'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockNodeAddress, ReceiptFailure } from '../types/index.js';
|
|
1
|
+
import { BlockNodeAddress, ChangeMode, ReceiptFailure } from '../types/index.js';
|
|
2
2
|
import { DiscoveryOutput } from '../types/discovery.js';
|
|
3
3
|
export type SectionAddress = {
|
|
4
4
|
kind: 'section';
|
|
@@ -112,6 +112,8 @@ export type SectionsListResult = DiscoveryOutput<SectionDomain>;
|
|
|
112
112
|
export interface SectionMutationSuccessResult {
|
|
113
113
|
success: true;
|
|
114
114
|
section: SectionAddress;
|
|
115
|
+
/** Committed review-aware content mode; omitted for dry runs, no-ops and non-reviewable settings. */
|
|
116
|
+
appliedChangeMode?: ChangeMode;
|
|
115
117
|
}
|
|
116
118
|
export interface SectionMutationFailureResult {
|
|
117
119
|
success: false;
|
|
@@ -128,6 +130,7 @@ export interface DocumentMutationSuccessResult {
|
|
|
128
130
|
export type DocumentMutationResult = DocumentMutationSuccessResult | SectionMutationFailureResult;
|
|
129
131
|
export interface CreateSectionBreakSuccessResult {
|
|
130
132
|
success: true;
|
|
133
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
131
134
|
section: SectionAddress;
|
|
132
135
|
/**
|
|
133
136
|
* Present only when the break is represented as a dedicated paragraph.
|
|
@@ -116,6 +116,7 @@ export interface TocRemoveInput {
|
|
|
116
116
|
}
|
|
117
117
|
export interface TocMutationSuccess {
|
|
118
118
|
success: true;
|
|
119
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
119
120
|
toc: TocAddress;
|
|
120
121
|
}
|
|
121
122
|
export interface TocMutationFailure {
|
|
@@ -147,6 +148,7 @@ export interface CreateTableOfContentsInput {
|
|
|
147
148
|
}
|
|
148
149
|
export interface CreateTableOfContentsSuccess {
|
|
149
150
|
success: true;
|
|
151
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
150
152
|
toc: TocAddress;
|
|
151
153
|
}
|
|
152
154
|
export interface CreateTableOfContentsFailure {
|
|
@@ -238,6 +240,7 @@ export interface TocEntryDomain {
|
|
|
238
240
|
export type TocListEntriesResult = DiscoveryOutput<TocEntryDomain>;
|
|
239
241
|
export interface TocEntryMutationSuccess {
|
|
240
242
|
success: true;
|
|
243
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
241
244
|
entry: TocEntryAddress;
|
|
242
245
|
}
|
|
243
246
|
export interface TocEntryMutationFailure {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BlockNodeType, BlockNodeAddress, DeletableBlockNodeAddress } from './base.js';
|
|
2
|
-
import { AffectedRef, AffectedRefRemapping, Receipt, ReceiptFailure, ReceiptInsert, TextRangeShift } from './receipt.js';
|
|
2
|
+
import { AffectedRef, AffectedRefRemapping, Receipt, ReceiptFailure, ReceiptInsert, ReceiptSuccess, TextRangeShift } from './receipt.js';
|
|
3
3
|
import { StoryLocator } from './story.types.js';
|
|
4
4
|
import { ParagraphNumbering } from './paragraph.types.js';
|
|
5
5
|
import { SDProjectionReviewMode } from './content-projection.js';
|
|
@@ -117,6 +117,7 @@ export interface BlocksDeleteInput {
|
|
|
117
117
|
}
|
|
118
118
|
export interface BlocksDeleteResult {
|
|
119
119
|
success: true;
|
|
120
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
120
121
|
deleted: DeletableBlockNodeAddress;
|
|
121
122
|
deletedBlock?: DeletedBlockSummary;
|
|
122
123
|
trackedChangeRefs?: ReceiptInsert[];
|
|
@@ -145,6 +146,7 @@ export interface BlocksSplitInput {
|
|
|
145
146
|
}
|
|
146
147
|
export interface BlocksSplitSuccessResult {
|
|
147
148
|
success: true;
|
|
149
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
148
150
|
/** Address of the new paragraph created by the split (the tail). */
|
|
149
151
|
inserted: BlockNodeAddress;
|
|
150
152
|
/**
|
|
@@ -173,6 +175,7 @@ export interface BlocksMergeInput {
|
|
|
173
175
|
}
|
|
174
176
|
export interface BlocksMergeSuccessResult {
|
|
175
177
|
success: true;
|
|
178
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
176
179
|
/** Address of the paragraph that was removed (the second paragraph). */
|
|
177
180
|
removed: BlockNodeAddress;
|
|
178
181
|
/**
|
|
@@ -208,6 +211,7 @@ export interface BlocksMoveInput {
|
|
|
208
211
|
}
|
|
209
212
|
export interface BlocksMoveSuccessResult {
|
|
210
213
|
success: true;
|
|
214
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
211
215
|
/** Same `source` paragraph, now relocated. */
|
|
212
216
|
moved: BlockNodeAddress;
|
|
213
217
|
remappedRefs?: AffectedRefRemapping[];
|
|
@@ -229,6 +233,7 @@ export type BlocksMoveResult = BlocksMoveSuccessResult | BlocksMoveFailureResult
|
|
|
229
233
|
export type { Receipt };
|
|
230
234
|
export interface BlocksDeleteRangeResult {
|
|
231
235
|
success: true;
|
|
236
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
232
237
|
deletedCount: number;
|
|
233
238
|
deletedBlocks: DeletedBlockSummary[];
|
|
234
239
|
revision: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextAddress } from './address.js';
|
|
2
2
|
import { BlockNodeAddress } from './base.js';
|
|
3
3
|
import { ResolvedHandle } from './discovery.js';
|
|
4
|
-
import { ReceiptFailure, ReceiptInsert } from './receipt.js';
|
|
4
|
+
import { ReceiptFailure, ReceiptInsert, ReceiptSuccess } from './receipt.js';
|
|
5
5
|
import { StoryLocator } from './story.types.js';
|
|
6
6
|
export type ParagraphCreateLocation = {
|
|
7
7
|
kind: 'documentStart';
|
|
@@ -29,6 +29,7 @@ export interface CreateParagraphInput {
|
|
|
29
29
|
}
|
|
30
30
|
export interface CreateParagraphSuccessResult {
|
|
31
31
|
success: true;
|
|
32
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
32
33
|
paragraph: BlockNodeAddress;
|
|
33
34
|
insertionPoint: TextAddress;
|
|
34
35
|
trackedChangeRefs?: ReceiptInsert[];
|
|
@@ -95,6 +96,7 @@ export interface CreateHeadingInput {
|
|
|
95
96
|
}
|
|
96
97
|
export interface CreateHeadingSuccessResult {
|
|
97
98
|
success: true;
|
|
99
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
98
100
|
heading: BlockNodeAddress;
|
|
99
101
|
insertionPoint: TextAddress;
|
|
100
102
|
trackedChangeRefs?: ReceiptInsert[];
|
|
@@ -233,6 +233,8 @@ export type StructuralStepData = {
|
|
|
233
233
|
export type StepOutcomeData = TextStepData | AssertStepData | DomainStepData | TableStepData | StructuralStepData;
|
|
234
234
|
export type StepOutcome = {
|
|
235
235
|
stepId: string;
|
|
236
|
+
/** Effective mode when all committed requests in this step used the same mode. */
|
|
237
|
+
appliedChangeMode?: ChangeMode;
|
|
236
238
|
op: string;
|
|
237
239
|
effect: StepEffect;
|
|
238
240
|
matchCount: number;
|
|
@@ -241,6 +243,8 @@ export type StepOutcome = {
|
|
|
241
243
|
};
|
|
242
244
|
export type PlanReceipt = {
|
|
243
245
|
success: true;
|
|
246
|
+
/** Effective mode when every committed step used the same mode. */
|
|
247
|
+
appliedChangeMode?: ChangeMode;
|
|
244
248
|
revision: {
|
|
245
249
|
before: string;
|
|
246
250
|
after: string;
|
|
@@ -2,6 +2,7 @@ import { BlockNavigationAddress, EntityAddress, SelectionTarget, TextAddress, Tr
|
|
|
2
2
|
import { BlockNodeAddress } from './base.js';
|
|
3
3
|
import { BookmarkAddress } from '../bookmarks/bookmarks.types.js';
|
|
4
4
|
import { StoryLocator } from './story.types.js';
|
|
5
|
+
import { ChangeMode } from '../write/write.js';
|
|
5
6
|
export type ReceiptInsert = TrackedChangeAddress;
|
|
6
7
|
export type ReceiptEntity = EntityAddress;
|
|
7
8
|
export type AffectedRef = TextAddress | BookmarkAddress | EntityAddress | BlockNavigationAddress;
|
|
@@ -109,6 +110,13 @@ export interface ReceiptEffects {
|
|
|
109
110
|
}
|
|
110
111
|
export type ReceiptSuccess = {
|
|
111
112
|
success: true;
|
|
113
|
+
/**
|
|
114
|
+
* Mode in which this call's document content was committed. An edit folded
|
|
115
|
+
* into the author's existing insertion is tracked; auxiliary style and
|
|
116
|
+
* numbering definition writes do not change the content mode. Omitted for
|
|
117
|
+
* dry runs, no-ops, and operations that do not author reviewable content.
|
|
118
|
+
*/
|
|
119
|
+
appliedChangeMode?: ChangeMode;
|
|
112
120
|
/**
|
|
113
121
|
* Convenience id for operations that create exactly one primary durable entity.
|
|
114
122
|
* Generic consumers should prefer `inserted`; this field exists for simple
|
|
@@ -23,6 +23,8 @@ export interface SDError {
|
|
|
23
23
|
export type MutationResolutionTarget = TextAddress | BlockNodeAddress | BodyStoryLocator;
|
|
24
24
|
export interface SDMutationReceipt {
|
|
25
25
|
success: boolean;
|
|
26
|
+
/** Effective content mode on a committed success; absent for no-op and dry-run calls. */
|
|
27
|
+
appliedChangeMode?: ReceiptSuccess['appliedChangeMode'];
|
|
26
28
|
/** Rich HTML/Markdown fidelity outcome, when this receipt came from a rich write. */
|
|
27
29
|
outcome?: SDHtmlMarkdownOutcome;
|
|
28
30
|
failure?: SDError;
|
|
@@ -133,6 +133,7 @@ export type TableCreateLocation = TableAnchorLocation
|
|
|
133
133
|
*/
|
|
134
134
|
export interface TableMutationSuccess {
|
|
135
135
|
success: true;
|
|
136
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
136
137
|
table?: TableAddress;
|
|
137
138
|
trackedChangeRefs?: ReceiptInsert[];
|
|
138
139
|
}
|
|
@@ -154,6 +155,7 @@ export interface CreateTableInput {
|
|
|
154
155
|
}
|
|
155
156
|
export interface CreateTableSuccessResult {
|
|
156
157
|
success: true;
|
|
158
|
+
appliedChangeMode?: 'direct' | 'tracked';
|
|
157
159
|
table: TableAddress;
|
|
158
160
|
trackedChangeRefs?: ReceiptInsert[];
|
|
159
161
|
}
|
package/dist/superdoc.cjs
CHANGED
|
@@ -304,7 +304,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
304
304
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
305
305
|
function getSuperdocVersion() {
|
|
306
306
|
try {
|
|
307
|
-
return "2.24.0-next.
|
|
307
|
+
return "2.24.0-next.9";
|
|
308
308
|
} catch {
|
|
309
309
|
return "unknown";
|
|
310
310
|
}
|
|
@@ -46621,7 +46621,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46621
46621
|
}
|
|
46622
46622
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46623
46623
|
this.colorIndex = 0;
|
|
46624
|
-
this.version = "2.24.0-next.
|
|
46624
|
+
this.version = "2.24.0-next.9";
|
|
46625
46625
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46626
46626
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46627
46627
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -302,7 +302,7 @@ var awarenessStatesToArray = (context, states) => {
|
|
|
302
302
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
303
303
|
function getSuperdocVersion() {
|
|
304
304
|
try {
|
|
305
|
-
return "2.24.0-next.
|
|
305
|
+
return "2.24.0-next.9";
|
|
306
306
|
} catch {
|
|
307
307
|
return "unknown";
|
|
308
308
|
}
|
|
@@ -46550,7 +46550,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46550
46550
|
}
|
|
46551
46551
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46552
46552
|
this.colorIndex = 0;
|
|
46553
|
-
this.version = "2.24.0-next.
|
|
46553
|
+
this.version = "2.24.0-next.9";
|
|
46554
46554
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46555
46555
|
this.superdocId = config.superdocId || v4();
|
|
46556
46556
|
this.colors = this.config.colors ?? [];
|