superdoc 2.30.0-next.4 → 2.30.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/chunks/{create-super-doc-ui-CbEDXtpm.es.js → create-super-doc-ui-Cq8trPVC.es.js} +494 -107
- package/dist/chunks/{create-super-doc-ui--kQBNTyt.cjs → create-super-doc-ui-FH5GSHph.cjs} +492 -105
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/comments/comment-create-attribution.d.ts +4 -0
- package/dist/document-api/src/comments/comments.types.d.ts +4 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +25 -7
- package/dist/document-api/src/contract/operation-registry.d.ts +2 -2
- package/dist/document-api/src/contract/schemas.d.ts +7 -1
- package/dist/document-api/src/index.d.ts +7 -1
- package/dist/document-api/src/paragraphs/paragraphs.d.ts +8 -3
- package/dist/document-api/src/paragraphs/paragraphs.types.d.ts +49 -5
- package/dist/document-api/src/tables/data/table-preset-appearance.generated.d.ts +2 -0
- package/dist/document-api/src/tables/table-style-presets.d.ts +73 -0
- package/dist/document-api/src/tables/tables.d.ts +4 -1
- package/dist/document-api/src/types/sd-props.d.ts +7 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +12 -15
- package/dist/layout-engine/contracts/src/index.d.ts +1 -0
- package/dist/layout-engine/contracts/src/table-cell-vector-overlay.d.ts +2 -0
- package/dist/layout-engine/painters/dom/src/index.d.ts +2 -0
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/composables/use-comment-sidebar.d.ts +6 -0
- package/dist/superdoc/src/core/config/normalize-interaction-config.d.ts +10 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +4 -0
- package/dist/superdoc/src/core/types/index.d.ts +39 -0
- package/dist/superdoc/src/public/index.d.cts +4 -0
- package/dist/superdoc/src/public/index.d.ts +1 -1
- package/dist/superdoc/src/public/ui/format-painter-paragraph.d.ts +7 -0
- package/dist/superdoc/src/public/ui/format-painter-state.d.ts +5 -9
- package/dist/superdoc/src/public/ui/inline-values.d.ts +1 -1
- package/dist/superdoc/src/public/ui/reasons.d.ts +1 -0
- package/dist/superdoc/src/public/ui/selection-targets.d.ts +2 -0
- package/dist/superdoc/src/stores/comments-store.d.ts +21 -9
- package/dist/superdoc/src/stores/helpers/review-presentation.d.ts +1 -0
- package/dist/superdoc.cjs +239 -60
- package/dist/superdoc.es.js +239 -60
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +38 -38
- 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.30.0-next.
|
|
22
|
+
superdocVersion: "2.30.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.30.0-next.
|
|
21
|
+
superdocVersion: "2.30.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
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { CommentCreateAttributionInput } from './comments.types.js';
|
|
2
2
|
export declare function normalizeCommentCreateAttribution(input: CommentCreateAttributionInput): CommentCreateAttributionInput | null;
|
|
3
|
+
export declare function normalizeCommentIdentity(value: unknown): {
|
|
4
|
+
providerId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
} | null;
|
|
@@ -9,6 +9,10 @@ export type CommentMetadataValue = string | number | boolean | null | readonly C
|
|
|
9
9
|
export type CommentMetadata = Readonly<Record<string, CommentMetadataValue>>;
|
|
10
10
|
/** Optional caller-owned identity and authorship for a newly-created comment. */
|
|
11
11
|
export interface CommentCreateAttributionInput {
|
|
12
|
+
authorIdentity?: {
|
|
13
|
+
providerId: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
} | null;
|
|
12
16
|
/**
|
|
13
17
|
* Durable document-scoped integration id, distinct from the Word-compatible
|
|
14
18
|
* `commentId` returned by the operation. Must be unique when provided and no
|
|
@@ -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: ("insert" | "replace" | "find" | "delete" | "info" | "selection.extractOoxml" | "selection.current" | "selection.releaseSnapshot" | "format.readSelection" | "projectHtml" | "projectMarkdown" | "capabilities.check" | "format.apply" | "comments.patch" | "trackChanges.decide" | "styles.getCatalog" | "blocks.delete" | "comments.create" | "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.cs" | "format.shading" | "format.rtl" | "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.deleteRange" | "styles.apply" | "styles.create" | "styles.getTheme" | "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.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "query.match" | "ranges.resolve" | "mutations.beginTemporary" | "mutations.replaceTemporary" | "mutations.rollbackTemporary" | "mutations.commitTemporary" | "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" | "changes.list" | "changes.get" | "changes.resolve" | "changes.actors" | "changes.snapshot" | "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: ("insert" | "replace" | "find" | "delete" | "info" | "selection.extractOoxml" | "selection.current" | "selection.releaseSnapshot" | "format.readSelection" | "projectHtml" | "projectMarkdown" | "capabilities.check" | "format.apply" | "comments.patch" | "trackChanges.decide" | "styles.getCatalog" | "blocks.delete" | "comments.create" | "format.paragraph.applyBatch" | "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.cs" | "format.shading" | "format.rtl" | "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.deleteRange" | "styles.apply" | "styles.create" | "styles.getTheme" | "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.delete" | "comments.get" | "comments.list" | "trackChanges.list" | "trackChanges.get" | "query.match" | "ranges.resolve" | "mutations.beginTemporary" | "mutations.replaceTemporary" | "mutations.rollbackTemporary" | "mutations.commitTemporary" | "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.listPresets" | "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" | "changes.list" | "changes.get" | "changes.resolve" | "changes.actors" | "changes.snapshot" | "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. */
|
|
@@ -28,7 +28,7 @@ export interface IntentGroupMeta {
|
|
|
28
28
|
*/
|
|
29
29
|
inputExamples?: Record<string, unknown>[];
|
|
30
30
|
}
|
|
31
|
-
export declare const V1_RUNTIME_UNAVAILABLE_OPERATION_IDS: readonly ["selection.releaseSnapshot", "blocks.split", "blocks.merge", "blocks.move", "lists.getState", "lists.apply", "lists.continue", "lists.restart", "lists.remove", "format.paragraph.setMarkRunProps", "tables.moveRow", "tables.moveColumn"];
|
|
31
|
+
export declare const V1_RUNTIME_UNAVAILABLE_OPERATION_IDS: readonly ["format.paragraph.applyBatch", "selection.releaseSnapshot", "blocks.split", "blocks.merge", "blocks.move", "lists.getState", "lists.apply", "lists.continue", "lists.restart", "lists.remove", "format.paragraph.setMarkRunProps", "tables.moveRow", "tables.moveColumn"];
|
|
32
32
|
export declare const INTENT_GROUP_META: Record<string, IntentGroupMeta>;
|
|
33
33
|
export declare const OPERATION_DEFINITIONS: {
|
|
34
34
|
readonly 'format.readSelection': {
|
|
@@ -319,6 +319,15 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
319
319
|
readonly referenceDocPath: "format/paragraph/reset-direct-formatting.mdx";
|
|
320
320
|
readonly referenceGroup: "format.paragraph";
|
|
321
321
|
};
|
|
322
|
+
readonly 'format.paragraph.applyBatch': {
|
|
323
|
+
readonly memberPath: "format.paragraph.applyBatch";
|
|
324
|
+
readonly description: "Apply an explicit ordered paragraph action program target-major to 1..1000 unique existing targets in one story, atomically. Accepts 1..1000 closed actions, at most 32000 expanded writer calls and 1048576 JSON bytes, cumulative across batches in an atomic plan. Uses existing writer validation; omitted groups are preserved. No nested plans, per-action targets/options or dry run. Expected revision is consumed once at batch start; live freshness is checked again before publication. Shared sessions support direct identity-preserving writes only.";
|
|
325
|
+
readonly expectedResult: "Resolves to ParagraphBatchMutationResult with resolution.targets, applied mode and tracked refs when committed, or indexed failure details. An all-no-op batch succeeds without revision, publication or history. Standalone commits once; inside an atomic plan shares its one preparation, publication and Undo/Redo unit.";
|
|
326
|
+
readonly requiresDocumentContext: true;
|
|
327
|
+
readonly metadata: CommandStaticMetadata;
|
|
328
|
+
readonly referenceDocPath: "format/paragraph/apply-batch.mdx";
|
|
329
|
+
readonly referenceGroup: "format.paragraph";
|
|
330
|
+
};
|
|
322
331
|
readonly 'format.paragraph.setAlignment': {
|
|
323
332
|
readonly memberPath: "format.paragraph.setAlignment";
|
|
324
333
|
readonly description: "Set visual paragraph alignment on a paragraph-like block. For RTL paragraphs, left/right are translated to Word-compatible stored justification values.";
|
|
@@ -1610,12 +1619,21 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
1610
1619
|
readonly 'tables.applyPreset': {
|
|
1611
1620
|
readonly memberPath: "tables.applyPreset";
|
|
1612
1621
|
readonly description: string;
|
|
1613
|
-
readonly expectedResult: "Returns a TableMutationResult receipt.";
|
|
1622
|
+
readonly expectedResult: "Returns a TableMutationResult receipt. Read tables.getProperties to see the installed Word style ID, which can differ from the Word default when the document already customizes that style.";
|
|
1614
1623
|
readonly requiresDocumentContext: true;
|
|
1615
1624
|
readonly metadata: CommandStaticMetadata;
|
|
1616
1625
|
readonly referenceDocPath: "tables/apply-preset.mdx";
|
|
1617
1626
|
readonly referenceGroup: "tables";
|
|
1618
1627
|
};
|
|
1628
|
+
readonly 'tables.listPresets': {
|
|
1629
|
+
readonly memberPath: "tables.listPresets";
|
|
1630
|
+
readonly description: string;
|
|
1631
|
+
readonly expectedResult: "Returns a TablesListPresetsOutput page with items (id, name, source, group, accent, appearance), the exact filtered total, the page offset, and nextOffset (null when no more matches remain).";
|
|
1632
|
+
readonly requiresDocumentContext: true;
|
|
1633
|
+
readonly metadata: CommandStaticMetadata;
|
|
1634
|
+
readonly referenceDocPath: "tables/list-presets.mdx";
|
|
1635
|
+
readonly referenceGroup: "tables";
|
|
1636
|
+
};
|
|
1619
1637
|
readonly 'tables.get': {
|
|
1620
1638
|
readonly memberPath: "tables.get";
|
|
1621
1639
|
readonly description: "Retrieve table structure and dimensions by locator.";
|
|
@@ -1636,8 +1654,8 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
1636
1654
|
};
|
|
1637
1655
|
readonly 'tables.getProperties': {
|
|
1638
1656
|
readonly memberPath: "tables.getProperties";
|
|
1639
|
-
readonly description: "Retrieve layout and
|
|
1640
|
-
readonly expectedResult: "Returns a TablesGetPropertiesOutput with direct table layout and style state,
|
|
1657
|
+
readonly description: "Retrieve layout, style, and authored row and grid column dimensions of a table.";
|
|
1658
|
+
readonly expectedResult: "Returns a TablesGetPropertiesOutput with direct table layout and style state and optional indexed rows and columns. Row heightPt and grid widthPt are authored points, not rendered sizes. Unspecified dimensions and unstored heightRule are omitted; explicit zero and auto are retained. Existing style options, borders, default cell margins, and cell spacing are included when explicitly set.";
|
|
1641
1659
|
readonly requiresDocumentContext: true;
|
|
1642
1660
|
readonly metadata: CommandStaticMetadata;
|
|
1643
1661
|
readonly referenceDocPath: "tables/get-properties.mdx";
|
|
@@ -3767,7 +3785,7 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
3767
3785
|
readonly get: {
|
|
3768
3786
|
readonly memberPath: "get";
|
|
3769
3787
|
readonly description: "Read the full document as an SDDocument structure.";
|
|
3770
|
-
readonly expectedResult: "Returns an SDDocument with body content projected into SDM/1 canonical shapes, plus the document's authored styles, theme (labeled document or fallback), docDefaults, and diagnostics for missing or unreadable style parts.";
|
|
3788
|
+
readonly expectedResult: "Returns an SDDocument with body content projected into SDM/1 canonical shapes, plus the document's authored styles, theme (labeled document or fallback), docDefaults, and diagnostics for missing or unreadable style parts. Paragraph indent *Chars values remain hundredths of a character; numeric distances remain points. Read-model fields do not expand operation-specific authoring support.";
|
|
3771
3789
|
readonly requiresDocumentContext: true;
|
|
3772
3790
|
readonly metadata: CommandStaticMetadata;
|
|
3773
3791
|
readonly referenceDocPath: "get.mdx";
|
|
@@ -3786,7 +3804,7 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
3786
3804
|
readonly getNode: {
|
|
3787
3805
|
readonly memberPath: "getNode";
|
|
3788
3806
|
readonly description: "Retrieve a single node by target position.";
|
|
3789
|
-
readonly expectedResult: "Returns an SDNodeResult envelope with the projected SDM/1 node and canonical address.";
|
|
3807
|
+
readonly expectedResult: "Returns an SDNodeResult envelope with the projected SDM/1 node and canonical address. Paragraph indent *Chars values remain hundredths of a character; numeric distances remain points. Paragraph setters and fragment materialization retain their operation-specific property limits.";
|
|
3790
3808
|
readonly requiresDocumentContext: true;
|
|
3791
3809
|
readonly metadata: CommandStaticMetadata;
|
|
3792
3810
|
readonly referenceDocPath: "get-node.mdx";
|
|
@@ -3795,7 +3813,7 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
3795
3813
|
readonly getNodeById: {
|
|
3796
3814
|
readonly memberPath: "getNodeById";
|
|
3797
3815
|
readonly description: "Resolve a block ID across the body, linked headers/footers, and supported textboxes, optionally restricted by story. Paragraphs at every table-cell depth and top-level body/header/footer tables are supported; notes, comments, glossary, and nested table containers are excluded.";
|
|
3798
|
-
readonly expectedResult: "Returns an SDNodeResult envelope with the projected SDM/1 node and canonical address.";
|
|
3816
|
+
readonly expectedResult: "Returns an SDNodeResult envelope with the projected SDM/1 node and canonical address. Paragraph indent *Chars values remain hundredths of a character; numeric distances remain points. Paragraph setters and fragment materialization retain their operation-specific property limits.";
|
|
3799
3817
|
readonly requiresDocumentContext: true;
|
|
3800
3818
|
readonly metadata: CommandStaticMetadata;
|
|
3801
3819
|
readonly referenceDocPath: "get-node-by-id.mdx";
|
|
@@ -20,7 +20,7 @@ export type OperationRegistry = {
|
|
|
20
20
|
[Id in OperationId]: ResolveMemberPath<DocumentApiSurface, (typeof OPERATION_DEFINITIONS)[Id]['memberPath']> extends infer Method ? {
|
|
21
21
|
input: MethodInput<Method>;
|
|
22
22
|
options: MethodOptions<Method>;
|
|
23
|
-
output: Id extends 'mutations.preview' | 'mutations.apply' | 'plan.execute' ? Awaited<MethodReturn<Method>> : MethodReturn<Method>;
|
|
23
|
+
output: Id extends 'mutations.preview' | 'mutations.apply' | 'plan.execute' | 'format.paragraph.applyBatch' ? Awaited<MethodReturn<Method>> : MethodReturn<Method>;
|
|
24
24
|
} : never;
|
|
25
25
|
};
|
|
26
26
|
type MethodInvokeRequest<T extends OperationId> = OperationRegistry[T]['options'] extends never ? {
|
|
@@ -47,7 +47,7 @@ type AttributedInvokeRequest<T extends OperationId> = T extends 'insert' ? {
|
|
|
47
47
|
/** Typed invoke request narrowed by `operationId` and supported content shape. */
|
|
48
48
|
export type InvokeRequest<T extends OperationId> = MethodInvokeRequest<T> | AttributedInvokeRequest<T>;
|
|
49
49
|
/** Typed invoke result narrowed by `operationId`. */
|
|
50
|
-
export type InvokeResult<T extends OperationId> = T extends 'mutations.preview' | 'mutations.apply' ? Promise<OperationRegistry[T]['output']> : T extends 'plan.execute' ? OperationRegistry[T]['output'] | Promise<OperationRegistry[T]['output']> : OperationRegistry[T]['output'];
|
|
50
|
+
export type InvokeResult<T extends OperationId> = T extends 'mutations.preview' | 'mutations.apply' | 'format.paragraph.applyBatch' ? Promise<OperationRegistry[T]['output']> : T extends 'plan.execute' ? OperationRegistry[T]['output'] | Promise<OperationRegistry[T]['output']> : OperationRegistry[T]['output'];
|
|
51
51
|
export type OperationCall<T extends OperationId> = InvokeRequest<T> extends infer Request ? (Request extends unknown ? Omit<Request, 'operationId'> : never) : never;
|
|
52
52
|
export type OperationInput<T extends OperationId> = InvokeRequest<T>['input'];
|
|
53
53
|
export type OperationOptions<T extends OperationId> = Exclude<InvokeRequest<T>['options'], undefined>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { OperationId } from './types.js';
|
|
2
|
-
type JsonSchema =
|
|
2
|
+
type JsonSchema = {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
properties?: Record<string, JsonSchema>;
|
|
5
|
+
required?: readonly string[];
|
|
6
|
+
anyOf?: JsonSchema[];
|
|
7
|
+
oneOf?: JsonSchema[];
|
|
8
|
+
};
|
|
3
9
|
/** JSON Schema descriptors for a single operation's input, output, and result variants. */
|
|
4
10
|
export interface OperationSchemaSet {
|
|
5
11
|
/** Schema describing the operation's accepted input payload. */
|
|
@@ -43,6 +43,7 @@ import { HistoryAdapter, HistoryApi } from './history/history.js';
|
|
|
43
43
|
import { ChangesAdapter, ChangesApi } from './changes/changes.js';
|
|
44
44
|
import { DiffAdapter, DiffApi } from './diff/diff.js';
|
|
45
45
|
import { ExportAdapter, ExportApi } from './export/export.js';
|
|
46
|
+
import { TablesListPresetsInput, TablesListPresetsOutput } from './tables/table-style-presets.js';
|
|
46
47
|
import { ParagraphsAdapter, ParagraphFormatApi, ParagraphStylesApi } from './paragraphs/paragraphs.js';
|
|
47
48
|
import { SectionsAdapter, SectionsApi } from './sections/sections.js';
|
|
48
49
|
import { HeaderFootersAdapter, HeaderFootersApi } from './header-footers/header-footers.js';
|
|
@@ -105,6 +106,7 @@ export type { HistoryState, HistoryActionResult, HistoryNoopReason, SDHistorySta
|
|
|
105
106
|
export { executeTrackChangesGet, executeTrackChangesList, executeTrackChangesDecide, } from './track-changes/track-changes.js';
|
|
106
107
|
export { createPlanApi, type PlanApi, type PlanExecuteInput, type PlanExecuteEntry, type PlanExecuteEntryExpect, type PlanExecuteResult, type PlanEntryReceipt, type PlanEntryReceiptStatus, type PlanExecuteFailure, type PlanCaptureRefMarker, type PlanProjectTextOffsetMarker, } from './plan/plan.js';
|
|
107
108
|
export type { DiffSnapshot, DiffPayload, DiffPartChange, DiffApplyResult, DiffCompareInput, DiffApplyInput, DiffApplyOptions, DiffApplyOperationReceipt, DiffApplyReviewItem, DiffApplyEligibility, DiffApplyModeEligibility, DiffApplyEligibilityBlocker, DiffApplyEligibilityBlockerCode, } from './diff/diff.types.js';
|
|
109
|
+
export * from './tables/table-style-presets.js';
|
|
108
110
|
export type { GetAdapter } from './get/get.js';
|
|
109
111
|
export type { FindAdapter, FindOptions } from './find/find.js';
|
|
110
112
|
export type { GetNodeAdapter, GetNodeByIdInput } from './get-node/get-node.js';
|
|
@@ -170,6 +172,8 @@ export type * from './citations/citations.types.js';
|
|
|
170
172
|
export type * from './authorities/authorities.types.js';
|
|
171
173
|
export type { ListsAdapter } from './lists/lists.js';
|
|
172
174
|
export type { SectionsAdapter } from './sections/sections.js';
|
|
175
|
+
export { validateParagraphsApplyBatchInput, PARAGRAPH_BATCH_OPERATION_IDS, PARAGRAPH_BATCH_MAX_TARGETS, PARAGRAPH_BATCH_MAX_OPERATIONS, PARAGRAPH_BATCH_MAX_EXPANDED_WRITES, PARAGRAPH_BATCH_MAX_PAYLOAD_BYTES, } from './paragraphs/paragraphs.js';
|
|
176
|
+
export type { ParagraphsApplyBatchInput, ParagraphBatchOperation, ParagraphBatchMutationResult, } from './paragraphs/paragraphs.js';
|
|
173
177
|
export type { ParagraphsAdapter, ParagraphFormatApi, ParagraphStylesApi } from './paragraphs/paragraphs.js';
|
|
174
178
|
export type { ParagraphTarget, ParagraphBlockType, ParagraphMutationResult, ParagraphMutationSuccess, ParagraphMutationFailure, MutationResolution, ParagraphAlignment, TabStopAlignment, TabStopLeader, BorderSide, ClearBorderSide, LineRule, ParagraphsSetStyleInput, ParagraphSemanticStyleRole, ParagraphsSetStyleRefInput, ParagraphsClearStyleInput, ParagraphsResetDirectFormattingInput, ParagraphsSetAlignmentInput, ParagraphsClearAlignmentInput, ParagraphsSetIndentationInput, ParagraphsClearIndentationInput, ParagraphsSetSpacingInput, ParagraphsClearSpacingInput, ParagraphsSetKeepOptionsInput, ParagraphsSetOutlineLevelInput, ParagraphsSetFlowOptionsInput, ParagraphsSetTabStopInput, ParagraphsClearTabStopInput, ParagraphsClearAllTabStopsInput, ParagraphsSetBorderInput, ParagraphsClearBorderInput, ParagraphsSetShadingInput, ParagraphsClearShadingInput, ParagraphsSetMarkRunPropsInput, ParagraphsSetDirectionInput, ParagraphsClearDirectionInput, ParagraphsSetNumberingInput, ParagraphDirection, AlignmentPolicy, } from './paragraphs/paragraphs.js';
|
|
175
179
|
export { PARAGRAPH_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TAB_STOP_LEADERS, BORDER_SIDES, CLEAR_BORDER_SIDES, LINE_RULES, PARAGRAPH_DIRECTIONS, ALIGNMENT_POLICIES, } from './paragraphs/paragraphs.js';
|
|
@@ -238,6 +242,7 @@ export interface TablesApi {
|
|
|
238
242
|
setBorders(input: TablesSetBordersInput, options?: MutationOptions): TableMutationResult;
|
|
239
243
|
setTableOptions(input: TablesSetTableOptionsInput, options?: MutationOptions): TableMutationResult;
|
|
240
244
|
applyPreset(input: TablesApplyPresetInput, options?: MutationOptions): TableMutationResult;
|
|
245
|
+
listPresets(input?: TablesListPresetsInput): TablesListPresetsOutput;
|
|
241
246
|
get(input: TablesGetInput): TablesGetOutput;
|
|
242
247
|
getCells(input: TablesGetCellsInput): TablesGetCellsOutput;
|
|
243
248
|
getProperties(input: TablesGetPropertiesInput): TablesGetPropertiesOutput;
|
|
@@ -245,7 +250,7 @@ export interface TablesApi {
|
|
|
245
250
|
setDefaultStyle(input: TablesSetDefaultStyleInput, options?: MutationOptions): DocumentMutationResult;
|
|
246
251
|
clearDefaultStyle(input?: TablesClearDefaultStyleInput, options?: MutationOptions): DocumentMutationResult;
|
|
247
252
|
}
|
|
248
|
-
export type TablesAdapter = Omit<TablesApi, 'moveRow' | 'moveColumn'> & {
|
|
253
|
+
export type TablesAdapter = Omit<TablesApi, 'moveRow' | 'moveColumn' | 'listPresets'> & {
|
|
249
254
|
moveRow?: TablesApi['moveRow'];
|
|
250
255
|
moveColumn?: TablesApi['moveColumn'];
|
|
251
256
|
};
|
|
@@ -635,3 +640,4 @@ export interface DocumentApiAdapters {
|
|
|
635
640
|
metadata?: AnchoredMetadataAdapter;
|
|
636
641
|
}
|
|
637
642
|
export declare function createDocumentApi(adapters: DocumentApiAdapters): DocumentApi;
|
|
643
|
+
export { normalizeCommentIdentity } from './comments/comment-create-attribution.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { MutationOptions } from '../write/write.js';
|
|
2
|
-
import { ParagraphMutationResult, ParagraphsSetStyleInput, ParagraphsSetStyleRefInput, ParagraphsClearStyleInput, ParagraphsResetDirectFormattingInput, ParagraphsSetAlignmentInput, ParagraphsClearAlignmentInput, ParagraphsSetIndentationInput, ParagraphsClearIndentationInput, ParagraphsSetSpacingInput, ParagraphsClearSpacingInput, ParagraphsSetKeepOptionsInput, ParagraphsSetOutlineLevelInput, ParagraphsSetFlowOptionsInput, ParagraphsSetTabStopInput, ParagraphsClearTabStopInput, ParagraphsClearAllTabStopsInput, ParagraphsSetBorderInput, ParagraphsClearBorderInput, ParagraphsSetShadingInput, ParagraphsClearShadingInput, ParagraphsSetMarkRunPropsInput, ParagraphsSetDirectionInput, ParagraphsClearDirectionInput, ParagraphsSetNumberingInput } from './paragraphs.types.js';
|
|
3
|
-
export type { ParagraphTarget, ParagraphBlockType, ParagraphMutationResult, ParagraphMutationSuccess, ParagraphMutationFailure, MutationResolution, ParagraphAlignment, TabStopAlignment, TabStopLeader, BorderSide, ClearBorderSide, LineRule, ParagraphsSetStyleInput, ParagraphSemanticStyleRole, ParagraphsSetStyleRefInput, ParagraphsClearStyleInput, ParagraphsResetDirectFormattingInput, ParagraphsSetAlignmentInput, ParagraphsClearAlignmentInput, ParagraphsSetIndentationInput, ParagraphsClearIndentationInput, ParagraphsSetSpacingInput, ParagraphsClearSpacingInput, ParagraphsSetKeepOptionsInput, ParagraphsSetOutlineLevelInput, ParagraphsSetFlowOptionsInput, ParagraphsSetTabStopInput, ParagraphsClearTabStopInput, ParagraphsClearAllTabStopsInput, ParagraphsSetBorderInput, ParagraphsClearBorderInput, ParagraphsSetShadingInput, ParagraphsClearShadingInput, ParagraphsSetMarkRunPropsInput, ParagraphsSetDirectionInput, ParagraphsClearDirectionInput, ParagraphsSetNumberingInput, ParagraphDirection, AlignmentPolicy, } from './paragraphs.types.js';
|
|
4
|
-
export { PARAGRAPH_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TAB_STOP_LEADERS, BORDER_SIDES, CLEAR_BORDER_SIDES, LINE_RULES, PARAGRAPH_DIRECTIONS, ALIGNMENT_POLICIES, } from './paragraphs.types.js';
|
|
2
|
+
import { ParagraphsApplyBatchInput, ParagraphBatchMutationResult, ParagraphMutationResult, ParagraphsSetStyleInput, ParagraphsSetStyleRefInput, ParagraphsClearStyleInput, ParagraphsResetDirectFormattingInput, ParagraphsSetAlignmentInput, ParagraphsClearAlignmentInput, ParagraphsSetIndentationInput, ParagraphsClearIndentationInput, ParagraphsSetSpacingInput, ParagraphsClearSpacingInput, ParagraphsSetKeepOptionsInput, ParagraphsSetOutlineLevelInput, ParagraphsSetFlowOptionsInput, ParagraphsSetTabStopInput, ParagraphsClearTabStopInput, ParagraphsClearAllTabStopsInput, ParagraphsSetBorderInput, ParagraphsClearBorderInput, ParagraphsSetShadingInput, ParagraphsClearShadingInput, ParagraphsSetMarkRunPropsInput, ParagraphsSetDirectionInput, ParagraphsClearDirectionInput, ParagraphsSetNumberingInput } from './paragraphs.types.js';
|
|
3
|
+
export type { ParagraphTarget, ParagraphsApplyBatchInput, ParagraphBatchOperation, ParagraphBatchMutationResult, ParagraphBlockType, ParagraphMutationResult, ParagraphMutationSuccess, ParagraphMutationFailure, MutationResolution, ParagraphAlignment, TabStopAlignment, TabStopLeader, BorderSide, ClearBorderSide, LineRule, ParagraphsSetStyleInput, ParagraphSemanticStyleRole, ParagraphsSetStyleRefInput, ParagraphsClearStyleInput, ParagraphsResetDirectFormattingInput, ParagraphsSetAlignmentInput, ParagraphsClearAlignmentInput, ParagraphsSetIndentationInput, ParagraphsClearIndentationInput, ParagraphsSetSpacingInput, ParagraphsClearSpacingInput, ParagraphsSetKeepOptionsInput, ParagraphsSetOutlineLevelInput, ParagraphsSetFlowOptionsInput, ParagraphsSetTabStopInput, ParagraphsClearTabStopInput, ParagraphsClearAllTabStopsInput, ParagraphsSetBorderInput, ParagraphsClearBorderInput, ParagraphsSetShadingInput, ParagraphsClearShadingInput, ParagraphsSetMarkRunPropsInput, ParagraphsSetDirectionInput, ParagraphsClearDirectionInput, ParagraphsSetNumberingInput, ParagraphDirection, AlignmentPolicy, } from './paragraphs.types.js';
|
|
4
|
+
export { PARAGRAPH_BATCH_MAX_TARGETS, PARAGRAPH_BATCH_MAX_OPERATIONS, PARAGRAPH_BATCH_MAX_EXPANDED_WRITES, PARAGRAPH_BATCH_MAX_PAYLOAD_BYTES, PARAGRAPH_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TAB_STOP_LEADERS, BORDER_SIDES, CLEAR_BORDER_SIDES, LINE_RULES, PARAGRAPH_DIRECTIONS, ALIGNMENT_POLICIES, } from './paragraphs.types.js';
|
|
5
5
|
export interface ParagraphsAdapter {
|
|
6
|
+
applyBatch?(input: ParagraphsApplyBatchInput, options?: MutationOptions): Promise<ParagraphBatchMutationResult>;
|
|
6
7
|
setStyle(input: ParagraphsSetStyleInput, options?: MutationOptions): ParagraphMutationResult;
|
|
7
8
|
setStyleRef(input: ParagraphsSetStyleRefInput, options?: MutationOptions): ParagraphMutationResult;
|
|
8
9
|
clearStyle(input: ParagraphsClearStyleInput, options?: MutationOptions): ParagraphMutationResult;
|
|
@@ -30,6 +31,7 @@ export interface ParagraphsAdapter {
|
|
|
30
31
|
}
|
|
31
32
|
/** Public API surface for `format.paragraph.*`: direct paragraph formatting. */
|
|
32
33
|
export interface ParagraphFormatApi {
|
|
34
|
+
applyBatch(input: ParagraphsApplyBatchInput, options?: MutationOptions): Promise<ParagraphBatchMutationResult>;
|
|
33
35
|
resetDirectFormatting(input: ParagraphsResetDirectFormattingInput, options?: MutationOptions): ParagraphMutationResult;
|
|
34
36
|
setAlignment(input: ParagraphsSetAlignmentInput, options?: MutationOptions): ParagraphMutationResult;
|
|
35
37
|
clearAlignment(input: ParagraphsClearAlignmentInput, options?: MutationOptions): ParagraphMutationResult;
|
|
@@ -82,3 +84,6 @@ export declare function executeParagraphsSetMarkRunProps(adapter: ParagraphsAdap
|
|
|
82
84
|
export declare function executeParagraphsSetDirection(adapter: ParagraphsAdapter, input: ParagraphsSetDirectionInput, options?: MutationOptions): ParagraphMutationResult;
|
|
83
85
|
export declare function executeParagraphsClearDirection(adapter: ParagraphsAdapter, input: ParagraphsClearDirectionInput, options?: MutationOptions): ParagraphMutationResult;
|
|
84
86
|
export declare function executeParagraphsSetNumbering(adapter: ParagraphsAdapter, input: ParagraphsSetNumberingInput, options?: MutationOptions): ParagraphMutationResult;
|
|
87
|
+
export declare const PARAGRAPH_BATCH_OPERATION_IDS: ("format.paragraph.setMarkRunProps" | "styles.paragraph.setStyleRef" | "styles.paragraph.clearStyle" | "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.clearAllTabStops" | "format.paragraph.setBorder" | "format.paragraph.clearBorder" | "format.paragraph.setShading" | "format.paragraph.clearShading" | "format.paragraph.setDirection" | "format.paragraph.clearDirection")[];
|
|
88
|
+
export declare function validateParagraphsApplyBatchInput(input: unknown): asserts input is ParagraphsApplyBatchInput;
|
|
89
|
+
export declare function executeParagraphsApplyBatch(adapter: ParagraphsAdapter, input: ParagraphsApplyBatchInput, options?: MutationOptions): Promise<ParagraphBatchMutationResult>;
|
|
@@ -113,9 +113,9 @@ export interface ParagraphsClearSpacingInput {
|
|
|
113
113
|
/** paragraphs.setKeepOptions */
|
|
114
114
|
export interface ParagraphsSetKeepOptionsInput {
|
|
115
115
|
target: ParagraphTarget;
|
|
116
|
-
keepNext?: boolean;
|
|
117
|
-
keepLines?: boolean;
|
|
118
|
-
widowControl?: boolean;
|
|
116
|
+
keepNext?: boolean | null;
|
|
117
|
+
keepLines?: boolean | null;
|
|
118
|
+
widowControl?: boolean | null;
|
|
119
119
|
}
|
|
120
120
|
/** paragraphs.setOutlineLevel */
|
|
121
121
|
export interface ParagraphsSetOutlineLevelInput {
|
|
@@ -125,8 +125,8 @@ export interface ParagraphsSetOutlineLevelInput {
|
|
|
125
125
|
/** paragraphs.setFlowOptions */
|
|
126
126
|
export interface ParagraphsSetFlowOptionsInput {
|
|
127
127
|
target: ParagraphTarget;
|
|
128
|
-
contextualSpacing?: boolean;
|
|
129
|
-
pageBreakBefore?: boolean;
|
|
128
|
+
contextualSpacing?: boolean | null;
|
|
129
|
+
pageBreakBefore?: boolean | null;
|
|
130
130
|
suppressAutoHyphens?: boolean;
|
|
131
131
|
/** `w:autoSpaceDE` — auto-space between East-Asian and Latin text. */
|
|
132
132
|
autoSpaceDE?: boolean;
|
|
@@ -223,3 +223,47 @@ export interface ParagraphsSetNumberingInput {
|
|
|
223
223
|
/** Numbering level (`w:ilvl`), 0-8. Defaults to 0 when omitted. */
|
|
224
224
|
level?: number;
|
|
225
225
|
}
|
|
226
|
+
export interface ParagraphBatchInputs {
|
|
227
|
+
'styles.paragraph.setStyleRef': ParagraphsSetStyleRefInput;
|
|
228
|
+
'styles.paragraph.clearStyle': ParagraphsClearStyleInput;
|
|
229
|
+
'format.paragraph.setAlignment': ParagraphsSetAlignmentInput;
|
|
230
|
+
'format.paragraph.clearAlignment': ParagraphsClearAlignmentInput;
|
|
231
|
+
'format.paragraph.setSpacing': ParagraphsSetSpacingInput;
|
|
232
|
+
'format.paragraph.clearSpacing': ParagraphsClearSpacingInput;
|
|
233
|
+
'format.paragraph.setIndentation': ParagraphsSetIndentationInput;
|
|
234
|
+
'format.paragraph.clearIndentation': ParagraphsClearIndentationInput;
|
|
235
|
+
'format.paragraph.setKeepOptions': ParagraphsSetKeepOptionsInput;
|
|
236
|
+
'format.paragraph.setFlowOptions': ParagraphsSetFlowOptionsInput;
|
|
237
|
+
'format.paragraph.setOutlineLevel': ParagraphsSetOutlineLevelInput;
|
|
238
|
+
'format.paragraph.setBorder': ParagraphsSetBorderInput;
|
|
239
|
+
'format.paragraph.clearBorder': ParagraphsClearBorderInput;
|
|
240
|
+
'format.paragraph.setShading': ParagraphsSetShadingInput;
|
|
241
|
+
'format.paragraph.clearShading': ParagraphsClearShadingInput;
|
|
242
|
+
'format.paragraph.setTabStop': ParagraphsSetTabStopInput;
|
|
243
|
+
'format.paragraph.clearAllTabStops': ParagraphsClearAllTabStopsInput;
|
|
244
|
+
'format.paragraph.setDirection': ParagraphsSetDirectionInput;
|
|
245
|
+
'format.paragraph.clearDirection': ParagraphsClearDirectionInput;
|
|
246
|
+
'format.paragraph.setMarkRunProps': ParagraphsSetMarkRunPropsInput;
|
|
247
|
+
}
|
|
248
|
+
export type ParagraphBatchOperation = {
|
|
249
|
+
[Id in keyof ParagraphBatchInputs]: {
|
|
250
|
+
operationId: Id;
|
|
251
|
+
input: keyof Omit<ParagraphBatchInputs[Id], 'target'> extends never ? Record<string, never> : Omit<ParagraphBatchInputs[Id], 'target'>;
|
|
252
|
+
};
|
|
253
|
+
}[keyof ParagraphBatchInputs];
|
|
254
|
+
export interface ParagraphsApplyBatchInput {
|
|
255
|
+
targets: ParagraphTarget[];
|
|
256
|
+
operations: ParagraphBatchOperation[];
|
|
257
|
+
}
|
|
258
|
+
export type ParagraphBatchMutationResult = {
|
|
259
|
+
success: true;
|
|
260
|
+
resolution: {
|
|
261
|
+
targets: ParagraphTarget[];
|
|
262
|
+
};
|
|
263
|
+
appliedChangeMode?: ChangeMode;
|
|
264
|
+
trackedChangeRefs?: ReceiptInsert[];
|
|
265
|
+
} | ParagraphMutationFailure;
|
|
266
|
+
export declare const PARAGRAPH_BATCH_MAX_TARGETS = 1000;
|
|
267
|
+
export declare const PARAGRAPH_BATCH_MAX_OPERATIONS = 1000;
|
|
268
|
+
export declare const PARAGRAPH_BATCH_MAX_EXPANDED_WRITES = 32000;
|
|
269
|
+
export declare const PARAGRAPH_BATCH_MAX_PAYLOAD_BYTES = 1048576;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type TablePresetSource = 'word' | 'superdoc';
|
|
2
|
+
export type TablePresetGroup = 'plain' | 'grid' | 'list' | 'convenience';
|
|
3
|
+
export type TablePresetAccent = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
export type SuperDocTablePresetId = 'grid' | 'minimal' | 'striped' | 'accent';
|
|
5
|
+
type WordFamilySlug = 'grid-table' | 'list-table';
|
|
6
|
+
type WordDesignedPresetId = `word.${WordFamilySlug}-${'1-light' | '2' | '3' | '4' | '5-dark' | '6-colorful' | '7-colorful'}` | `word.${WordFamilySlug}-${'1-light' | '2' | '3' | '4' | '5-dark' | '6-colorful' | '7-colorful'}-accent-${TablePresetAccent}`;
|
|
7
|
+
export type WordPlainTablePresetId = 'word.table-grid' | 'word.grid-table-light' | `word.plain-table-${1 | 2 | 3 | 4 | 5}`;
|
|
8
|
+
export type WordTablePresetId = WordPlainTablePresetId | WordDesignedPresetId;
|
|
9
|
+
export type TablePresetId = SuperDocTablePresetId | WordTablePresetId;
|
|
10
|
+
export interface TablePresetColor {
|
|
11
|
+
themeColor?: string;
|
|
12
|
+
rgb?: string;
|
|
13
|
+
tint?: string;
|
|
14
|
+
shade?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TablePresetAppearance {
|
|
17
|
+
baseFill?: TablePresetColor;
|
|
18
|
+
header: {
|
|
19
|
+
treatment: Array<'shading' | 'bold' | 'borders'>;
|
|
20
|
+
fill?: TablePresetColor;
|
|
21
|
+
textColor?: TablePresetColor;
|
|
22
|
+
};
|
|
23
|
+
bandedRows: {
|
|
24
|
+
effect: 'none' | 'shading' | 'borders' | 'shadingAndBorders';
|
|
25
|
+
fill?: TablePresetColor;
|
|
26
|
+
borderColor?: TablePresetColor;
|
|
27
|
+
};
|
|
28
|
+
borders: {
|
|
29
|
+
layout: 'none' | 'horizontal' | 'outer' | 'outerAndHorizontal' | 'grid';
|
|
30
|
+
color?: TablePresetColor;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface TablePresetInfo {
|
|
34
|
+
id: TablePresetId;
|
|
35
|
+
name: string;
|
|
36
|
+
source: TablePresetSource;
|
|
37
|
+
group: TablePresetGroup;
|
|
38
|
+
accent: TablePresetAccent | null;
|
|
39
|
+
appearance: TablePresetAppearance | null;
|
|
40
|
+
}
|
|
41
|
+
export interface WordTablePresetDefinition extends TablePresetInfo {
|
|
42
|
+
id: WordTablePresetId;
|
|
43
|
+
source: 'word';
|
|
44
|
+
wordStyleName: string;
|
|
45
|
+
wordStyleId: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const SUPERDOC_TABLE_PRESET_IDS: readonly ["grid", "minimal", "striped", "accent"];
|
|
48
|
+
export declare const WORD_ACCENT_DISPLAY_SEPARATOR = " - ";
|
|
49
|
+
export declare const WORD_TABLE_PRESETS: readonly WordTablePresetDefinition[];
|
|
50
|
+
export declare const SUPERDOC_TABLE_PRESETS: readonly TablePresetInfo[];
|
|
51
|
+
export declare const TABLE_PRESET_CATALOGUE: readonly TablePresetInfo[];
|
|
52
|
+
export declare const TABLE_PRESET_IDS: readonly TablePresetId[];
|
|
53
|
+
export declare function isWordTablePresetId(value: unknown): value is WordTablePresetId;
|
|
54
|
+
export declare function isSuperDocTablePresetId(value: unknown): value is SuperDocTablePresetId;
|
|
55
|
+
export declare function isTablePresetId(value: unknown): value is TablePresetId;
|
|
56
|
+
export declare function getWordTablePreset(id: string): WordTablePresetDefinition | null;
|
|
57
|
+
export declare const TABLE_PRESET_LIST_DEFAULT_LIMIT = 25;
|
|
58
|
+
export declare const TABLE_PRESET_LIST_MAX_LIMIT = 25;
|
|
59
|
+
export interface TablesListPresetsInput {
|
|
60
|
+
source?: TablePresetSource;
|
|
61
|
+
group?: TablePresetGroup;
|
|
62
|
+
query?: string;
|
|
63
|
+
limit?: number;
|
|
64
|
+
offset?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface TablesListPresetsOutput {
|
|
67
|
+
items: TablePresetInfo[];
|
|
68
|
+
total: number;
|
|
69
|
+
offset: number;
|
|
70
|
+
nextOffset: number | null;
|
|
71
|
+
}
|
|
72
|
+
export declare function listTablePresets(input?: TablesListPresetsInput): TablesListPresetsOutput;
|
|
73
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MutationOptions } from '../write/write.js';
|
|
2
|
-
import {
|
|
2
|
+
import { TablesListPresetsInput, TablesListPresetsOutput } from './table-style-presets.js';
|
|
3
|
+
import { TablesApplyPresetInput, TablesApplyStyleInput, TablesSetBordersInput, TablesSetCellPaddingInput, TablesSetLayoutInput, TablesSetTableOptionsInput, TablesSortInput } from '../types/table-operations.types.js';
|
|
3
4
|
type RowLocatorInput = {
|
|
4
5
|
target?: unknown;
|
|
5
6
|
nodeId?: unknown;
|
|
@@ -81,4 +82,6 @@ export declare function executeTablesSetTableOptions<TResult>(operationName: str
|
|
|
81
82
|
* any-of side requirement (and the adapter never authors an empty `w:tcMar`).
|
|
82
83
|
*/
|
|
83
84
|
export declare function executeTablesSetCellPadding<TResult>(operationName: string, adapter: (input: TablesSetCellPaddingInput, options?: MutationOptions) => TResult, input: TablesSetCellPaddingInput, options?: MutationOptions): TResult;
|
|
85
|
+
export declare function executeTablesListPresets(input: TablesListPresetsInput | undefined): TablesListPresetsOutput;
|
|
86
|
+
export declare function executeTablesApplyPreset<TResult>(adapter: (input: TablesApplyPresetInput, options?: MutationOptions) => TResult, input: TablesApplyPresetInput, options?: MutationOptions): TResult;
|
|
84
87
|
export {};
|
|
@@ -125,6 +125,12 @@ export interface SDParagraphProps {
|
|
|
125
125
|
firstLine?: number;
|
|
126
126
|
/** Hanging indent in points. */
|
|
127
127
|
hanging?: number;
|
|
128
|
+
leftChars?: number;
|
|
129
|
+
rightChars?: number;
|
|
130
|
+
startChars?: number;
|
|
131
|
+
endChars?: number;
|
|
132
|
+
firstLineChars?: number;
|
|
133
|
+
hangingChars?: number;
|
|
128
134
|
};
|
|
129
135
|
spacing?: {
|
|
130
136
|
/** Space before in points. */
|
|
@@ -139,6 +145,7 @@ export interface SDParagraphProps {
|
|
|
139
145
|
line?: number;
|
|
140
146
|
lineRule?: 'auto' | 'multiple' | 'exact' | 'atLeast';
|
|
141
147
|
};
|
|
148
|
+
contextualSpacing?: boolean;
|
|
142
149
|
keepWithNext?: boolean;
|
|
143
150
|
keepLines?: boolean;
|
|
144
151
|
pageBreakBefore?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TablePresetId } from '../tables/table-style-presets.js';
|
|
1
2
|
import { BlockNodeAddress, TableAddress, TableCellAddress, TableOrCellAddress, TableOrRowAddress, TableRowAddress } from './base.js';
|
|
2
3
|
import { ReceiptFailure, ReceiptInsert } from './receipt.js';
|
|
3
4
|
/**
|
|
@@ -483,24 +484,11 @@ export interface TablesSetTableOptionsInput extends TableLocator {
|
|
|
483
484
|
/** Non-negative number, or `null` to clear. */
|
|
484
485
|
cellSpacingPt?: number | null;
|
|
485
486
|
}
|
|
486
|
-
|
|
487
|
-
* Named visual presets for tables. Each preset composes borders, shading,
|
|
488
|
-
* and conditional-format flags into a polished look.
|
|
489
|
-
*
|
|
490
|
-
* - `grid` — 0.5pt black borders all around, no shading.
|
|
491
|
-
* - `minimal` — no outer borders, hairline grey separators between rows.
|
|
492
|
-
* - `striped` — banded rows on, 0.5pt grey borders all around.
|
|
493
|
-
* - `accent` — header row filled with `accentColor` (default `1F3864`),
|
|
494
|
-
* thick accent bottom under the header.
|
|
495
|
-
*/
|
|
496
|
-
export type TablePresetName = 'grid' | 'minimal' | 'striped' | 'accent';
|
|
487
|
+
export type TablePresetName = TablePresetId;
|
|
497
488
|
export interface TablesApplyPresetInput extends TableLocator {
|
|
498
489
|
preset: TablePresetName;
|
|
499
|
-
/**
|
|
500
|
-
* Optional accent color (hex; same format as `setShading.color`).
|
|
501
|
-
* Used by presets that need an accent (`accent`). Ignored otherwise.
|
|
502
|
-
*/
|
|
503
490
|
accentColor?: string;
|
|
491
|
+
styleOptions?: TableStyleOptionsPatch;
|
|
504
492
|
}
|
|
505
493
|
export type BorderEdge = 'top' | 'bottom' | 'left' | 'right' | 'insideH' | 'insideV' | 'diagonalDown' | 'diagonalUp';
|
|
506
494
|
export interface TablesSetBorderInput {
|
|
@@ -620,6 +608,15 @@ export type TablesGetPropertiesInput = TableLocator;
|
|
|
620
608
|
export interface TablesGetPropertiesOutput {
|
|
621
609
|
nodeId: string;
|
|
622
610
|
address: TableAddress;
|
|
611
|
+
rows?: Array<{
|
|
612
|
+
rowIndex: number;
|
|
613
|
+
heightPt?: number;
|
|
614
|
+
heightRule?: 'atLeast' | 'exact' | 'auto';
|
|
615
|
+
}>;
|
|
616
|
+
columns?: Array<{
|
|
617
|
+
columnIndex: number;
|
|
618
|
+
widthPt?: number;
|
|
619
|
+
}>;
|
|
623
620
|
styleId?: string;
|
|
624
621
|
alignment?: TableAlignment;
|
|
625
622
|
direction?: TableDirection;
|
|
@@ -10,6 +10,7 @@ export type { BaseDirection, WritingMode, SectionDirectionContext, TableDirectio
|
|
|
10
10
|
export { getParagraphInlineDirection, getTableVisualDirection } from './direction-context.js';
|
|
11
11
|
export { OOXML_PCT_DIVISOR, resolveTableWidthAttr, type TableWidthAttr, type TableColumnSpec, } from './engines/tables.js';
|
|
12
12
|
export { effectiveTableCellSpacing } from './table-cell-spacing.js';
|
|
13
|
+
export { isTableCellVectorOverlay } from './table-cell-vector-overlay.js';
|
|
13
14
|
export { createHeaderFooterResolutionIndex, selectHeaderFooterVariantForPage, resolveEffectiveHeaderFooterRef, type HeaderFooterResolutionIndex, type HeaderFooterKind, type HeaderFooterVariant, type HeaderFooterSectionRefs, type HeaderFooterResolutionSection, type HeaderFooterVariantSelectionInput, type HeaderFooterEffectiveRefInput, type HeaderFooterEffectiveRefResult, } from './header-footer-resolution.js';
|
|
14
15
|
export { rescaleColumnWidths } from './table-column-rescale.js';
|
|
15
16
|
export { getCellSpacingPx } from './cell-spacing.js';
|
|
@@ -147,3 +147,5 @@ export { resolveTrackedChangeDecorationFacts, syncTrackedDeletionBand, getTracke
|
|
|
147
147
|
export { buildLinkRenderData } from './runs/links.js';
|
|
148
148
|
export { INLINE_TRACKED_CHANGE_DEFAULTS } from './styles.js';
|
|
149
149
|
export { resolveDecorationFragmentPosition } from './decoration-geometry.js';
|
|
150
|
+
export { createChartElement } from './chart-renderer.js';
|
|
151
|
+
export { convertOmmlToMathml } from './features/math/omml-to-mathml.js';
|
package/dist/public/ui-react.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-FH5GSHph.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let use_sync_external_store_shim = require("use-sync-external-store/shim");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-Cq8trPVC.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useSyncExternalStore } from "use-sync-external-store/shim";
|
package/dist/public/ui-vue.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-FH5GSHph.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let superdoc_entry_vue = require("vue");
|
|
5
5
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui-vue.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-Cq8trPVC.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
|
|
4
4
|
//#region src/public/ui/vue.ts
|