oasis-editor 0.0.416 → 0.0.418

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.
Files changed (35) hide show
  1. package/dist/OasisEditorApp-DAqRW7aB.js +1 -0
  2. package/dist/assets/{importDocxWorker-7COTnEu5.js → importDocxWorker-FgGrfnHp.js} +4329 -2666
  3. package/dist/core/commands/builtinCommands.d.ts +1 -1
  4. package/dist/core/commands/publicCommandTypes.d.ts +13 -0
  5. package/dist/core/commands/text.d.ts +1 -1
  6. package/dist/core/document/contentControlTransactions.d.ts +20 -0
  7. package/dist/core/document/contentControlTraversal.d.ts +9 -0
  8. package/dist/core/document/contentControlValues.d.ts +8 -0
  9. package/dist/core/document/documentProtection.d.ts +3 -0
  10. package/dist/core/document/inlineContentControlEdit.d.ts +8 -0
  11. package/dist/core/document/repeatingSectionRows.d.ts +4 -0
  12. package/dist/core/model/types/document.d.ts +6 -0
  13. package/dist/core/model/types/docxSourcePackage.d.ts +4 -0
  14. package/dist/core/model/types/nodes.d.ts +4 -0
  15. package/dist/core/model/types/primitives.d.ts +2 -0
  16. package/dist/defaultToolbar-Ux_dvdoA.js +1 -0
  17. package/dist/export/docx/docxPackageXml.d.ts +1 -1
  18. package/dist/export/docx/docxTypes.d.ts +2 -0
  19. package/dist/export/docx/synchronizeBoundContentControls.d.ts +7 -1
  20. package/dist/export/docx/text/sdtSubtypeSource.d.ts +2 -0
  21. package/dist/import/docx/numbering.d.ts +29 -3
  22. package/dist/import/docx/opc/sourcePackage.d.ts +1 -0
  23. package/dist/import/docx/settings.d.ts +5 -0
  24. package/dist/oasis-editor.js +1 -1
  25. package/dist/oasis-editor.umd.cjs +1 -1
  26. package/dist/ooxml/word/customXmlBinding.d.ts +5 -0
  27. package/dist/ooxml/word/numberFormat.d.ts +2 -1
  28. package/dist/ooxml/word/numberingMetadata.d.ts +2 -0
  29. package/dist/plugins/internal/essentialsCapabilities.d.ts +3 -0
  30. package/dist/sourcePackage-GLrWYLnd.js +1 -0
  31. package/dist/ui/app/useEditorTransactions.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/dist/OasisEditorApp-BN_8lhHA.js +0 -1
  34. package/dist/defaultToolbar-DzDVVDsk.js +0 -1
  35. package/dist/sourcePackage-ByCOFs8g.js +0 -1
@@ -1,2 +1,2 @@
1
- export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "selectWord", "selectSentence", "selectParagraph", "selectCollapse", "selectText", "selectRange", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "doubleUnderline", "wordUnderline", "strike", "doubleStrike", "smallCaps", "allCaps", "hidden", "noProof", "webHidden", "specVanish", "contextualAlternates", "characterBorder", "shadow", "emboss", "engrave", "outline", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "replaceAll", "toggleTrackChanges", "toggleRevisionMarkup", "showMarkupOptions", "applyShowMarkup", "toggleOutlinePanel", "toggleRevisionsPanel", "openCommandSearch", "repeatLastAction", "acceptRevisions", "rejectRevisions", "setReviewDisplayMode", "acceptAllRevisions", "rejectAllRevisions", "requestAcceptAllRevisions", "requestRejectAllRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "columnBreak", "splitBlock", "insertNonBreakingSpace", "insertNonBreakingHyphen", "insertOptionalHyphen", "insertEmDash", "insertEllipsis", "insertCopyright", "insertRegistered", "insertTrademark", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "growFont1", "shrinkFont1", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "applyUnderlineStyle", "setUnderlineColor", "setCharacterScale", "setCharacterSpacing", "setRunSnapToGrid", "setFitText", "setBaselineShift", "setEmphasisMark", "setTextEffect", "setKerning", "setLigatures", "setNumberSpacing", "setNumberForm", "setStylisticSet", "documentStyles", "print", "copy", "cut", "newDocument", "saveDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageFlip", "imageRotate", "imageBorder", "imageTransparency", "resetImage", "outdent", "indent", "moveParagraphsUp", "moveParagraphsDown", "togglePageBreakBefore", "toggleKeepWithNext", "toggleKeepLinesTogether", "toggleWidowControl", "toggleParagraphBidi", "setParagraphBidi", "setParagraphAlign", "sortParagraphs", "promote", "demote", "resetParagraphFormatting", "setParagraphTabStops", "setOutlineLevel", "setSpacingAfter", "setSpacingBefore", "setContextualSpacing", "setMirrorIndents", "setLineRule", "setTextDirection", "setSuppressAutoHyphens", "setSuppressLineNumbers", "setKinsoku", "setOverflowPunct", "setWordWrap", "setAutoSpaceDE", "setAutoSpaceDN", "setAdjustRightInd", "setTopLinePunct", "setPageBreakBefore", "setKeepWithNext", "setKeepLinesTogether", "setWidowControl", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "applyHorizontalLine", "setDropCap", "setLineHeight", "setListFormat", "setListStartAt", "restartList", "continueList", "setListLevel", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setMarginsPreset", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "setSectionVerticalAlign", "setSectionStart", "setSectionBidi", "setHyphenation", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "updateBodyFields", "updateSelectedFields", "insertFieldCode", "editFieldCode", "editFieldCodeAtSelection", "toggleFieldLock", "toggleFieldCodes", "nextField", "previousField", "markAuthorityEntry", "insertTableOfAuthorities", "updateTableOfAuthorities", "insertTableOfFigures", "updateTableOfFigures", "previewMergeRecord", "mergeToNewDocuments", "updateVariableFields", "setFormFieldValue", "toggleFormCheckbox", "insertDateTime", "insertCrossReference", "markIndexEntry", "insertIndex", "updateIndex", "setNoteOptions", "exitHeaderFooter", "setDifferentFirstPage", "setDifferentOddEven", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableDeleteCells", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellAlignment", "tableSetCellVerticalAlign", "tableSetCellTextDirection", "tableToText", "textToTable", "tableSplitAtRow", "tableSortAscending", "tableSortDescending", "tableDelete", "tableRepeatHeaderRows", "tableSetCellMargins", "tableSetCellSpacing", "tableSetTableIndent", "tableSetAlignment", "tableFormula", "tableSelectCell", "tableSelectRow", "tableSelectColumn", "tableSelectTable", "tableSetRowHeight", "tableSetBreakAcrossPages", "tableSetHeaderRow", "tableSetColumnWidth", "tableSetTableWidth", "tableSetCellWidth", "tableSetCellNoWrap", "tableSetCellFitText", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "setShapeFill", "setShapeOutline", "setShapeOutlineWidth", "alignFloatingObject", "reorderFloatingObject", "nudgeFloatingObject", "setFloatingFixedPosition", "setFloatingRotation", "setFloatingWrapPreset", "setFloatingWrapText", "setFloatingPositionPreset", "setShapePreset", "setTextBoxTextDirection", "setTextBoxVerticalAlign", "editTextBoxAlt", "rotateTextBox", "textBoxWidthCm", "textBoxHeightCm", "openSymbolDialog", "openEquationDialog", "tableProperties", "openFontDialog", "openParagraphDialog"];
1
+ export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "selectWord", "selectSentence", "selectParagraph", "selectCollapse", "selectText", "selectRange", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "doubleUnderline", "wordUnderline", "strike", "doubleStrike", "smallCaps", "allCaps", "hidden", "noProof", "webHidden", "specVanish", "contextualAlternates", "characterBorder", "shadow", "emboss", "engrave", "outline", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "replaceAll", "toggleTrackChanges", "toggleRevisionMarkup", "showMarkupOptions", "applyShowMarkup", "toggleOutlinePanel", "toggleRevisionsPanel", "openCommandSearch", "repeatLastAction", "acceptRevisions", "rejectRevisions", "setReviewDisplayMode", "acceptAllRevisions", "rejectAllRevisions", "requestAcceptAllRevisions", "requestRejectAllRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "columnBreak", "splitBlock", "insertNonBreakingSpace", "insertNonBreakingHyphen", "insertOptionalHyphen", "insertEmDash", "insertEllipsis", "insertCopyright", "insertRegistered", "insertTrademark", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "growFont1", "shrinkFont1", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "applyUnderlineStyle", "setUnderlineColor", "setCharacterScale", "setCharacterSpacing", "setRunSnapToGrid", "setFitText", "setBaselineShift", "setEmphasisMark", "setTextEffect", "setKerning", "setLigatures", "setNumberSpacing", "setNumberForm", "setStylisticSet", "documentStyles", "print", "copy", "cut", "newDocument", "saveDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageFlip", "imageRotate", "imageBorder", "imageTransparency", "resetImage", "outdent", "indent", "moveParagraphsUp", "moveParagraphsDown", "togglePageBreakBefore", "toggleKeepWithNext", "toggleKeepLinesTogether", "toggleWidowControl", "toggleParagraphBidi", "setParagraphBidi", "setParagraphAlign", "sortParagraphs", "promote", "demote", "resetParagraphFormatting", "setParagraphTabStops", "setOutlineLevel", "setSpacingAfter", "setSpacingBefore", "setContextualSpacing", "setMirrorIndents", "setLineRule", "setTextDirection", "setSuppressAutoHyphens", "setSuppressLineNumbers", "setKinsoku", "setOverflowPunct", "setWordWrap", "setAutoSpaceDE", "setAutoSpaceDN", "setAdjustRightInd", "setTopLinePunct", "setPageBreakBefore", "setKeepWithNext", "setKeepLinesTogether", "setWidowControl", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "applyHorizontalLine", "setDropCap", "setLineHeight", "setListFormat", "setListStartAt", "restartList", "continueList", "setListLevel", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setMarginsPreset", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "setSectionVerticalAlign", "setSectionStart", "setSectionBidi", "setHyphenation", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "updateBodyFields", "updateSelectedFields", "insertFieldCode", "editFieldCode", "editFieldCodeAtSelection", "toggleFieldLock", "toggleFieldCodes", "nextField", "previousField", "markAuthorityEntry", "insertTableOfAuthorities", "updateTableOfAuthorities", "insertTableOfFigures", "updateTableOfFigures", "previewMergeRecord", "mergeToNewDocuments", "updateVariableFields", "setFormFieldValue", "setContentControlValue", "mutateRepeatingSectionRow", "toggleFormCheckbox", "insertDateTime", "insertCrossReference", "markIndexEntry", "insertIndex", "updateIndex", "setNoteOptions", "exitHeaderFooter", "setDifferentFirstPage", "setDifferentOddEven", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableDeleteCells", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellAlignment", "tableSetCellVerticalAlign", "tableSetCellTextDirection", "tableToText", "textToTable", "tableSplitAtRow", "tableSortAscending", "tableSortDescending", "tableDelete", "tableRepeatHeaderRows", "tableSetCellMargins", "tableSetCellSpacing", "tableSetTableIndent", "tableSetAlignment", "tableFormula", "tableSelectCell", "tableSelectRow", "tableSelectColumn", "tableSelectTable", "tableSetRowHeight", "tableSetBreakAcrossPages", "tableSetHeaderRow", "tableSetColumnWidth", "tableSetTableWidth", "tableSetCellWidth", "tableSetCellNoWrap", "tableSetCellFitText", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "setShapeFill", "setShapeOutline", "setShapeOutlineWidth", "alignFloatingObject", "reorderFloatingObject", "nudgeFloatingObject", "setFloatingFixedPosition", "setFloatingRotation", "setFloatingWrapPreset", "setFloatingWrapText", "setFloatingPositionPreset", "setShapePreset", "setTextBoxTextDirection", "setTextBoxVerticalAlign", "editTextBoxAlt", "rotateTextBox", "textBoxWidthCm", "textBoxHeightCm", "openSymbolDialog", "openEquationDialog", "tableProperties", "openFontDialog", "openParagraphDialog"];
2
2
  export type OasisBuiltinCommand = (typeof OASIS_BUILTIN_COMMANDS)[number];
@@ -5,6 +5,7 @@ import { TextCaseMode } from './text.js';
5
5
  import { TableBorderPreset, TableCellAlignment, TableRowHeight } from './table.js';
6
6
  import { DesignThemeId } from './design.js';
7
7
  import { ShowMarkupPayload } from './reviewMarkup.js';
8
+ import { RepeatingRowOperation } from '../document/repeatingSectionRows.js';
8
9
  /** Payload for the `insertTable` command. */
9
10
  export interface InsertTablePayload {
10
11
  rows: number;
@@ -353,6 +354,16 @@ export interface OasisCommandPayloads {
353
354
  name: string;
354
355
  value: string;
355
356
  };
357
+ /** Set a checkbox or list control using its wrapper group identity and stored value. */
358
+ setContentControlValue: {
359
+ groupId: string;
360
+ value: string;
361
+ };
362
+ mutateRepeatingSectionRow: {
363
+ sectionId: string;
364
+ itemId: string;
365
+ operation: RepeatingRowOperation;
366
+ };
356
367
  toggleFormCheckbox: string;
357
368
  insertDateTime: {
358
369
  dateFormat?: string;
@@ -480,6 +491,8 @@ export interface OasisCommandResults {
480
491
  insertTableOfFigures: boolean;
481
492
  updateTableOfFigures: boolean;
482
493
  setFormFieldValue: boolean;
494
+ setContentControlValue: boolean;
495
+ mutateRepeatingSectionRow: boolean;
483
496
  toggleFormCheckbox: boolean;
484
497
  documentStyles: unknown;
485
498
  [command: string]: unknown;
@@ -2,4 +2,4 @@ export { moveOrCopySelectionToPosition, insertTextAtSelection, insertPlainTextAt
2
2
  export { deleteBackward, deleteForward, deleteCharsBackwardRaw, } from './textDeletion.js';
3
3
  export { toggleTextStyle, toggleCharacterBorder, clearSelectedTextFormatting, setTextStyleValue, nudgeFontSize, } from './textFormatting.js';
4
4
  export { type TextCaseMode, transformSelectedText, changeSelectedTextCase, } from './textCase.js';
5
- export { relocateSelectedOpaqueObject, type OpaqueRelocationDestination } from './opaqueRelocation.js';
5
+ export { relocateSelectedOpaqueObject, type OpaqueRelocationDestination, } from './opaqueRelocation.js';
@@ -0,0 +1,20 @@
1
+ import { EditorDocxDiagnostic } from '../model/types/docxSourcePackage.js';
2
+ import { EditorDocument, EditorState } from '../model.js';
3
+ /** Reject direct core mutations that alter locked wrappers or their contents. */
4
+ export declare function validateContentControlLocks(previous: EditorState, proposed: EditorState): EditorState;
5
+ /** Mark a temporary table-edit projection; its enclosing document commits the transaction. */
6
+ export declare function markContentControlProjection(document: EditorDocument): void;
7
+ /** Synchronize direct edits when the full source package is available. */
8
+ export declare function applyCoreContentControlEdit(previous: EditorState, proposed: EditorState): EditorState;
9
+ /** Set the semantic value of a checkbox or list control as one validated edit. */
10
+ export declare function setContentControlValue(state: EditorState, groupId: string, value: string, report?: (diagnostic: EditorDocxDiagnostic) => void): EditorState;
11
+ export declare function inspectContentControlBindings(document: EditorDocument): EditorDocxDiagnostic[];
12
+ /** Refresh supported controls from package data when a document is opened. */
13
+ export declare function refreshContentControlsFromStore(state: EditorState, report: (diagnostic: EditorDocxDiagnostic) => void): EditorState;
14
+ /** Admit a validated legacy field command into the protected-form transaction path. */
15
+ export declare function applyLegacyFormFieldTransaction(previous: EditorState, proposed: EditorState): EditorState;
16
+ /** Validate a repeating-row removal and remember it for the outer history transaction. */
17
+ export declare function applyRepeatingRowTransaction(previous: EditorState, proposed: EditorState, removedBindings: ReadonlySet<string>): EditorState;
18
+ /** Validate a proposed editor mutation before it enters history. All peers and
19
+ * the copy-on-write package part land in the same editor state. */
20
+ export declare function applyContentControlTransaction(previous: EditorState, proposed: EditorState, report: (diagnostic: EditorDocxDiagnostic) => void): EditorState;
@@ -0,0 +1,9 @@
1
+ import { EditorBlockNode, EditorDocument, EditorTableCellNode, EditorTableRowNode } from '../model.js';
2
+ interface ContentControlVisitor {
3
+ block?: (block: EditorBlockNode) => EditorBlockNode;
4
+ row?: (row: EditorTableRowNode) => void;
5
+ cell?: (cell: EditorTableCellNode) => void;
6
+ }
7
+ /** Visit the modeled Word stories, including tables and text boxes. */
8
+ export declare function traverseContentControlStories(document: EditorDocument, visitor: ContentControlVisitor): EditorDocument;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { EditorSdtPr } from '../model.js';
2
+ /** Return the data-store value represented by a control, or null if unknown. */
3
+ export declare function contentControlStoredValue(properties: EditorSdtPr, display: string): string | null;
4
+ /** Project a supported XML value into the control's display and metadata. */
5
+ export declare function contentControlValueFromStore(properties: EditorSdtPr, value: string): {
6
+ display: string;
7
+ properties: EditorSdtPr;
8
+ } | null;
@@ -0,0 +1,3 @@
1
+ import { EditorState } from '../model.js';
2
+ /** Whether Word's enforced read-only mode applies to document edits. */
3
+ export declare function isDocumentReadOnly(state: EditorState): boolean;
@@ -0,0 +1,8 @@
1
+ import { EditorState, EditorTextStyle } from '../model.js';
2
+ /** Whether a one-paragraph selection is inside a multiline plain-text control. */
3
+ export declare function isMultilinePlainControlSelection(state: EditorState): boolean;
4
+ /** Edit within one inline control without slicing away its wrapper on a whole-value replacement. */
5
+ export declare function replaceInlineContentControlText(state: EditorState, text: string | undefined, options?: {
6
+ range?: [number, number];
7
+ styles?: EditorTextStyle;
8
+ }): EditorState | undefined;
@@ -0,0 +1,4 @@
1
+ import { EditorState } from '../model.js';
2
+ export type RepeatingRowOperation = "insertAfter" | "remove" | "moveUp" | "moveDown";
3
+ /** Mutate a one-row-per-item repeating section without changing existing identities. */
4
+ export declare function mutateRepeatingSectionRow(state: EditorState, sectionId: string, itemId: string, operation: RepeatingRowOperation): EditorState;
@@ -205,6 +205,12 @@ export interface EditorDocument {
205
205
  sections?: EditorSection[];
206
206
  styles?: Record<string, EditorNamedStyle>;
207
207
  settings?: {
208
+ /** Imported Word protection mode and its original XML, including password metadata. */
209
+ documentProtection?: {
210
+ edit?: string;
211
+ enforcement: boolean;
212
+ sourceXml: string;
213
+ };
208
214
  defaultTabStop?: number;
209
215
  /** `w:allowSpaceOfSameStyleInTable`: contextual spacing applies in table cells. */
210
216
  allowSpaceOfSameStyleInTable?: boolean;
@@ -70,6 +70,10 @@ export interface EditorDocxSourcePackage {
70
70
  rootRelationships: EditorOpcRelationship[];
71
71
  parts: Record<string, EditorOpcPart>;
72
72
  diagnostics?: EditorDocxDiagnostic[];
73
+ /** Original displayed values, keyed by imported control group identity. */
74
+ contentControlBindingBaseline?: Record<string, string>;
75
+ /** Original semantic store values for typed controls, keyed by group identity. */
76
+ contentControlBindingSemanticBaseline?: Record<string, string | null>;
73
77
  /** Inventory of unsupported story objects; not part of the editable run model yet. */
74
78
  opaqueObjects?: EditorDocxOpaqueObject[];
75
79
  /**
@@ -222,6 +222,8 @@ export interface EditorSdtPr {
222
222
  dataBinding?: EditorSdtDataBinding;
223
223
  /** Recognized content-control subtype element (`<w:text>`, `<w:dropDownList>`, …). */
224
224
  subtype?: EditorSdtSubtype;
225
+ /** Original typed subtype XML used to retain unmodeled attributes and children. */
226
+ subtypeSourceXml?: string;
225
227
  /**
226
228
  * Serialized XML of every `w:sdtPr` child the parser did not recognize, in
227
229
  * document order, so a future-proof round-trip re-emits extension/future-schema
@@ -291,6 +293,8 @@ export interface EditorSdtListItem {
291
293
  }
292
294
  /** `<w:dataBinding>` — XPath binding into a custom-XML storage part. */
293
295
  export interface EditorSdtDataBinding {
296
+ /** Source XML containing binding extension metadata, when present. */
297
+ sourceXml?: string;
294
298
  /** `<w:prefixMappings w:val="…"/>` — namespace prefixes for the XPath. */
295
299
  prefixMappings?: string;
296
300
  /** `<w:xpath w:val="…"/>` — the XPath expression selecting the bound node. */
@@ -76,6 +76,8 @@ export interface EditorParagraphListStyle {
76
76
  startAt?: number;
77
77
  /** Effective `w:lvlText` pattern, for example `%1.%2.`. */
78
78
  levelText?: string;
79
+ /** `w:lvlText/@w:null`: the level renders a null character, not text. */
80
+ nullText?: boolean;
79
81
  /** Effective formats for referenced levels in a multilevel label. */
80
82
  levelFormats?: NumberFormatToken[];
81
83
  /** `w:lvlJc`: alignment of the label inside its hanging-indent area. */