docxodus 8.0.0 → 9.1.0

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 (114) hide show
  1. package/README.md +156 -31
  2. package/dist/editor-headerfooter.d.ts +39 -3
  3. package/dist/editor-headerfooter.d.ts.map +1 -1
  4. package/dist/editor-headerfooter.js +118 -2
  5. package/dist/editor-headerfooter.js.map +1 -1
  6. package/dist/editor-reconcile.d.ts +75 -0
  7. package/dist/editor-reconcile.d.ts.map +1 -0
  8. package/dist/editor-reconcile.js +125 -0
  9. package/dist/editor-reconcile.js.map +1 -0
  10. package/dist/editor.bundle.js +799 -42
  11. package/dist/editor.d.ts +121 -5
  12. package/dist/editor.d.ts.map +1 -1
  13. package/dist/editor.js +572 -31
  14. package/dist/editor.js.map +1 -1
  15. package/dist/embed.bundle.js +6569 -0
  16. package/dist/embed.d.ts +77 -0
  17. package/dist/embed.d.ts.map +1 -0
  18. package/dist/embed.iife.js +6596 -0
  19. package/dist/embed.js +350 -0
  20. package/dist/embed.js.map +1 -0
  21. package/dist/index.d.ts +11 -2
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +17 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/page-number-format.d.ts +22 -0
  26. package/dist/page-number-format.d.ts.map +1 -0
  27. package/dist/page-number-format.js +60 -0
  28. package/dist/page-number-format.js.map +1 -0
  29. package/dist/pagination.bundle.js +158 -21
  30. package/dist/pagination.d.ts +38 -0
  31. package/dist/pagination.d.ts.map +1 -1
  32. package/dist/pagination.js +181 -29
  33. package/dist/pagination.js.map +1 -1
  34. package/dist/session.bundle.js +241 -4
  35. package/dist/session.d.ts +154 -6
  36. package/dist/session.d.ts.map +1 -1
  37. package/dist/session.js +193 -4
  38. package/dist/session.js.map +1 -1
  39. package/dist/types.d.ts +192 -4
  40. package/dist/types.d.ts.map +1 -1
  41. package/dist/types.js.map +1 -1
  42. package/dist/wasm/_framework/DocumentFormat.OpenXml.Framework.wasm +0 -0
  43. package/dist/wasm/_framework/DocumentFormat.OpenXml.Framework.wasm.br +0 -0
  44. package/dist/wasm/_framework/DocumentFormat.OpenXml.wasm +0 -0
  45. package/dist/wasm/_framework/DocumentFormat.OpenXml.wasm.br +0 -0
  46. package/dist/wasm/_framework/Docxodus.wasm +0 -0
  47. package/dist/wasm/_framework/Docxodus.wasm.br +0 -0
  48. package/dist/wasm/_framework/DocxodusWasm.wasm +0 -0
  49. package/dist/wasm/_framework/DocxodusWasm.wasm.br +0 -0
  50. package/dist/wasm/_framework/System.Collections.Concurrent.wasm +0 -0
  51. package/dist/wasm/_framework/System.Collections.Concurrent.wasm.br +0 -0
  52. package/dist/wasm/_framework/System.Collections.Immutable.wasm.br +0 -0
  53. package/dist/wasm/_framework/System.Collections.NonGeneric.wasm.br +0 -0
  54. package/dist/wasm/_framework/System.Collections.Specialized.wasm.br +0 -0
  55. package/dist/wasm/_framework/System.Collections.wasm +0 -0
  56. package/dist/wasm/_framework/System.Collections.wasm.br +0 -0
  57. package/dist/wasm/_framework/System.ComponentModel.Primitives.wasm.br +0 -0
  58. package/dist/wasm/_framework/System.ComponentModel.TypeConverter.wasm.br +0 -0
  59. package/dist/wasm/_framework/System.ComponentModel.wasm.br +0 -0
  60. package/dist/wasm/_framework/System.Console.wasm +0 -0
  61. package/dist/wasm/_framework/System.Console.wasm.br +0 -0
  62. package/dist/wasm/_framework/System.Diagnostics.Process.wasm +0 -0
  63. package/dist/wasm/_framework/System.Diagnostics.Process.wasm.br +0 -0
  64. package/dist/wasm/_framework/System.IO.Compression.wasm +0 -0
  65. package/dist/wasm/_framework/System.IO.Compression.wasm.br +0 -0
  66. package/dist/wasm/_framework/System.IO.Packaging.wasm +0 -0
  67. package/dist/wasm/_framework/System.IO.Packaging.wasm.br +0 -0
  68. package/dist/wasm/_framework/System.IO.Pipelines.wasm.br +0 -0
  69. package/dist/wasm/_framework/System.Linq.Expressions.wasm.br +0 -0
  70. package/dist/wasm/_framework/System.Linq.wasm +0 -0
  71. package/dist/wasm/_framework/System.Linq.wasm.br +0 -0
  72. package/dist/wasm/_framework/System.Memory.wasm +0 -0
  73. package/dist/wasm/_framework/System.Memory.wasm.br +0 -0
  74. package/dist/wasm/_framework/System.Net.Http.wasm.br +0 -0
  75. package/dist/wasm/_framework/System.Net.Primitives.wasm.br +0 -0
  76. package/dist/wasm/_framework/System.ObjectModel.wasm.br +0 -0
  77. package/dist/wasm/_framework/System.Private.CoreLib.wasm +0 -0
  78. package/dist/wasm/_framework/System.Private.CoreLib.wasm.br +0 -0
  79. package/dist/wasm/_framework/System.Private.Uri.wasm.br +0 -0
  80. package/dist/wasm/_framework/System.Private.Xml.Linq.wasm +0 -0
  81. package/dist/wasm/_framework/System.Private.Xml.Linq.wasm.br +0 -0
  82. package/dist/wasm/_framework/System.Private.Xml.wasm +0 -0
  83. package/dist/wasm/_framework/System.Private.Xml.wasm.br +0 -0
  84. package/dist/wasm/_framework/System.Runtime.InteropServices.JavaScript.wasm.br +0 -0
  85. package/dist/wasm/_framework/System.Runtime.wasm +0 -0
  86. package/dist/wasm/_framework/System.Runtime.wasm.br +0 -0
  87. package/dist/wasm/_framework/System.Security.Cryptography.wasm.br +0 -0
  88. package/dist/wasm/_framework/System.Text.Encodings.Web.wasm.br +0 -0
  89. package/dist/wasm/_framework/System.Text.Json.wasm +0 -0
  90. package/dist/wasm/_framework/System.Text.Json.wasm.br +0 -0
  91. package/dist/wasm/_framework/System.Text.RegularExpressions.wasm +0 -0
  92. package/dist/wasm/_framework/System.Text.RegularExpressions.wasm.br +0 -0
  93. package/dist/wasm/_framework/System.Xml.Linq.wasm.br +0 -0
  94. package/dist/wasm/_framework/System.Xml.XDocument.wasm +0 -0
  95. package/dist/wasm/_framework/System.Xml.XDocument.wasm.br +0 -0
  96. package/dist/wasm/_framework/System.wasm.br +0 -0
  97. package/dist/wasm/_framework/dotnet.boot.js +22 -57
  98. package/dist/wasm/_framework/dotnet.boot.js.br +0 -0
  99. package/dist/wasm/_framework/dotnet.js.br +0 -0
  100. package/dist/wasm/_framework/dotnet.native.js +0 -171
  101. package/dist/wasm/_framework/dotnet.native.js.br +0 -0
  102. package/dist/wasm/_framework/dotnet.native.wasm +0 -0
  103. package/dist/wasm/_framework/dotnet.native.wasm.br +0 -0
  104. package/dist/wasm/_framework/dotnet.runtime.js.br +0 -0
  105. package/package.json +26 -5
  106. package/dist/wasm/_framework/System.Text.Encoding.Extensions.wasm +0 -0
  107. package/dist/wasm/_framework/System.Threading.Thread.wasm +0 -0
  108. package/dist/wasm/_framework/System.Threading.wasm +0 -0
  109. package/dist/wasm/_framework/System.Xml.ReaderWriter.wasm +0 -0
  110. package/dist/wasm/_framework/System.Xml.XPath.XDocument.wasm +0 -0
  111. package/dist/wasm/_framework/System.Xml.XPath.wasm +0 -0
  112. package/dist/wasm/_framework/dotnet.js.map +0 -1
  113. package/dist/wasm/_framework/dotnet.native.js.symbols +0 -5532
  114. package/dist/wasm/_framework/dotnet.runtime.js.map +0 -1
package/dist/session.js CHANGED
@@ -137,6 +137,39 @@ export class DocxSession {
137
137
  deleteTableColumn(cellAnchorId) {
138
138
  return JSON.parse(this.wasm.DeleteTableColumn(this.handle, cellAnchorId));
139
139
  }
140
+ /**
141
+ * Table styling, addressed by a cell-paragraph anchor — the post-insert counterpart of
142
+ * {@link insertTable}'s options (issue #315 Stage A). `setColumnWidths` retunes `w:tblGrid` +
143
+ * every row's cell width (one positive twip value per column) and pins the table to fixed
144
+ * layout, exactly as inserting with explicit `columnWidths` would.
145
+ */
146
+ setColumnWidths(cellAnchorId, widthsTwips) {
147
+ return JSON.parse(this.wasm.SetColumnWidths(this.handle, cellAnchorId, JSON.stringify(widthsTwips)));
148
+ }
149
+ /**
150
+ * Set the table-level borders (`w:tblPr/w:tblBorders`) of the table containing the anchor.
151
+ * Only the edges named by `spec.scope` are written; the rest are left untouched. Style
152
+ * `"none"` removes the targeted edges. Omitting `spec` writes a thin single border all round.
153
+ */
154
+ setTableBorders(cellAnchorId, spec) {
155
+ return JSON.parse(this.wasm.SetTableBorders(this.handle, cellAnchorId, spec ? JSON.stringify(spec) : ""));
156
+ }
157
+ /**
158
+ * Shade the cell containing the anchor — or, with scope `"row"`, every cell of its row
159
+ * (header-row banding). `fill` is a hex RRGGBB triplet (leading '#' tolerated) or `"auto"`;
160
+ * `null` removes the shading.
161
+ */
162
+ setCellShading(cellAnchorId, fill, scope = "cell") {
163
+ return JSON.parse(this.wasm.SetCellShading(this.handle, cellAnchorId, fill ?? "", scope));
164
+ }
165
+ /**
166
+ * Mark (or unmark) the row containing the anchor as a repeating header row
167
+ * (`w:trPr/w:tblHeader`), so a multi-page table re-shows it on every page. Word only honors
168
+ * the flag on a run of rows starting at the table's first row.
169
+ */
170
+ setRepeatHeaderRow(cellAnchorId, repeat) {
171
+ return JSON.parse(this.wasm.SetRepeatHeaderRow(this.handle, cellAnchorId, repeat));
172
+ }
140
173
  // ─── Headers / footers / page numbers ────────────────────────────────
141
174
  /**
142
175
  * Set the running header story for the section that owns `anchorId` (any body block in that
@@ -157,11 +190,39 @@ export class DocxSession {
157
190
  /**
158
191
  * Append a page-number field to the paragraph `anchorId` — typically a header/footer paragraph
159
192
  * returned by {@link setFooterText}/{@link setHeaderText}. `"currentPage"` emits a PAGE field,
160
- * `"totalPages"` a NUMPAGES field (native complex field with a cached "1"). Center it by setting
161
- * the paragraph alignment ({@link setParagraphFormat}). Returns the paragraph anchor in `modified`.
193
+ * `"totalPages"` a NUMPAGES field (native complex field with a cached result). Center it by
194
+ * setting the paragraph alignment ({@link setParagraphFormat}). Returns the paragraph anchor in
195
+ * `modified`.
196
+ *
197
+ * `format` writes the field's own `\*` general-formatting switch (`PAGE \* roman` → `i, ii, iii`).
198
+ * Omitting it — the default — emits a plain field, which is what Word inserts and what follows the
199
+ * SECTION's format ({@link setPageNumbering}). Prefer the section setting for ordinary page
200
+ * numbering: a switch here overrides it for this one field and keeps overriding it if the section
201
+ * later changes.
162
202
  */
163
- insertPageNumberField(anchorId, field = "currentPage") {
164
- return JSON.parse(this.wasm.InsertPageNumberField(this.handle, anchorId, field));
203
+ insertPageNumberField(anchorId, field = "currentPage", format) {
204
+ return JSON.parse(this.wasm.InsertPageNumberField(this.handle, anchorId, field, format ?? ""));
205
+ }
206
+ /**
207
+ * Set the page-numbering properties (`w:pgNumType`) of the section that owns `anchorId` (any body
208
+ * block in that section) — Word's *Format Page Numbers…* dialog: which number the section starts
209
+ * at and which format its pages use. Omitted fields on `op` are left unchanged, so the start can
210
+ * be set without disturbing the format and vice versa. Creates the element, and a trailing
211
+ * `w:sectPr`, if absent.
212
+ *
213
+ * Applying values the section already has is a successful no-op that does NOT consume undo
214
+ * history — safe to call from a dropdown's change handler.
215
+ */
216
+ setPageNumbering(anchorId, op) {
217
+ return JSON.parse(this.wasm.SetPageNumbering(this.handle, anchorId, JSON.stringify(op)));
218
+ }
219
+ /**
220
+ * Remove the section's page-numbering start/format: it reverts to continuing the previous
221
+ * section's numbering in Word's default `1, 2, 3`. Chapter-numbering attributes
222
+ * (`w:chapStyle`/`w:chapSep`) are preserved. A section with nothing to clear is a no-op.
223
+ */
224
+ clearPageNumbering(anchorId) {
225
+ return JSON.parse(this.wasm.ClearPageNumbering(this.handle, anchorId));
165
226
  }
166
227
  /**
167
228
  * Make the `kind` header/footer stories of the section that owns `anchorId` actually RENDER:
@@ -178,6 +239,104 @@ export class DocxSession {
178
239
  ensureHeaderFooterVisible(anchorId, kind) {
179
240
  return JSON.parse(this.wasm.EnsureHeaderFooterVisible(this.handle, anchorId, kind));
180
241
  }
242
+ // ─── Footnotes / endnotes ────────────────────────────────────────────
243
+ /**
244
+ * Create a footnote whose body is `markdown` and cite it from the body paragraph `anchorId`, at
245
+ * `characterOffset` characters into that paragraph's text (0 = before all text, text length =
246
+ * after all of it). On a document with no footnotes yet this also creates the footnotes part,
247
+ * Word's two reserved separator notes, the `FootnoteText`/`FootnoteReference` styles and the
248
+ * `w:footnotePr` settings declaration; otherwise the existing part is reused. The note id is
249
+ * allocated above every id already used in the package, so non-contiguous ids can't collide.
250
+ *
251
+ * Returns the created note anchors in `EditResult.created` — the definition (kind `fn`) and its
252
+ * paragraphs (kind `p`, scope `fn`) — so the note can immediately be edited with
253
+ * {@link replaceText} or removed with {@link deleteBlock} (which also drops the body reference).
254
+ *
255
+ * Body paragraphs only: Word does not allow a note reference inside a header/footer story or
256
+ * inside another note, so a non-body anchor fails with `anchorWrongKind`.
257
+ */
258
+ insertFootnote(anchorId, characterOffset, markdown) {
259
+ return JSON.parse(this.wasm.InsertFootnote(this.handle, anchorId, characterOffset, markdown));
260
+ }
261
+ /** Create an endnote — see {@link insertFootnote}; writes the endnotes part and a
262
+ * `w:endnoteReference`, and the created definition anchor has kind `en`. */
263
+ insertEndnote(anchorId, characterOffset, markdown) {
264
+ return JSON.parse(this.wasm.InsertEndnote(this.handle, anchorId, characterOffset, markdown));
265
+ }
266
+ // ─── Comments (issue #300) ───────────────────────────────────────────
267
+ /**
268
+ * Add a **native Word comment** (real `w:comment` markup, visible in Word/Google
269
+ * Docs/LibreOffice's Reviewing pane — not the {@link addAnnotation} overlay) on the body
270
+ * paragraph `anchorId`. `span` selects the commented character range; `null` comments the
271
+ * whole block. On a document with no comments yet this also creates the comments part and
272
+ * the `CommentText`/`CommentReference` styles. `opts.date` (ISO-8601) is written only when
273
+ * provided, keeping output deterministic by default.
274
+ *
275
+ * Returns the created definition anchor (kind `cmt`) and its paragraph anchors (kind `p`,
276
+ * scope `cmt`) in `EditResult.created`, so the comment can immediately be edited with
277
+ * {@link updateComment} or removed with {@link removeComment}.
278
+ *
279
+ * Body paragraphs only (Word has no comments-on-comments); a non-body anchor fails with
280
+ * `anchor_wrong_kind`, a zero-length span with `empty_comment_span`.
281
+ */
282
+ addComment(anchorId, span, author, markdown, opts) {
283
+ const spanJson = span ? JSON.stringify(span) : "";
284
+ return JSON.parse(this.wasm.AddComment(this.handle, anchorId, spanJson, author, opts?.initials ?? "", opts?.date ?? "", markdown));
285
+ }
286
+ /** Add a native Word comment around the exact live extent of a tracked revision returned by
287
+ * {@link listRevisions}. Accepting/rejecting the revision keeps the comment and either leaves
288
+ * its range on surviving text or collapses it to a point. */
289
+ addCommentToRevision(revisionId, author, markdown, opts) {
290
+ return JSON.parse(this.wasm.AddCommentToRevision(this.handle, revisionId, author, opts?.initials ?? "", opts?.date ?? "", markdown));
291
+ }
292
+ /**
293
+ * Add a native Word reply to `parentCommentAnchorId`. It adds an adjacent reference and
294
+ * inherits the thread root's range through `w15:paraIdParent`; the required
295
+ * `commentsExtended.xml` and `commentsIds.xml` parts are created when the parent was flat.
296
+ */
297
+ addCommentReply(parentCommentAnchorId, author, markdown, opts) {
298
+ return JSON.parse(this.wasm.AddCommentReply(this.handle, parentCommentAnchorId, author, opts?.initials ?? "", opts?.date ?? "", markdown));
299
+ }
300
+ /** Replace a comment's body text, addressed by its definition anchor (kind `cmt`); the
301
+ * comment's author/initials/date are preserved, as is the last paragraph's `w14:paraId`
302
+ * (Word's reply-threading key). */
303
+ updateComment(commentAnchorId, markdown) {
304
+ return JSON.parse(this.wasm.UpdateComment(this.handle, commentAnchorId, markdown));
305
+ }
306
+ /** Resolve or reopen one comment (`false` reopens it). Flat comments are upgraded with the
307
+ * paraId-keyed metadata Word uses, and the operation is undoable. */
308
+ setCommentResolved(commentAnchorId, resolved) {
309
+ return JSON.parse(this.wasm.SetCommentResolved(this.handle, commentAnchorId, resolved));
310
+ }
311
+ /** Remove a comment: the definition, its body marker triple everywhere in the package, and
312
+ * any `commentsExtended`/`commentsIds` threading entries keyed by it. */
313
+ removeComment(commentAnchorId) {
314
+ return JSON.parse(this.wasm.RemoveComment(this.handle, commentAnchorId));
315
+ }
316
+ /** The document's native Word comments in comments-part order. */
317
+ listComments() {
318
+ return JSON.parse(this.wasm.ListComments(this.handle));
319
+ }
320
+ // ─── Tracked revisions (issue #318) ──────────────────────────────────
321
+ /** Markup-native tracked-revision listing, in document order across body, headers,
322
+ * footers, footnotes, and endnotes. Ids are stable while the underlying markup
323
+ * exists and address {@link acceptRevision}/{@link rejectRevision}; authors/dates
324
+ * are the markup's own (no accept/reject re-diff). */
325
+ listRevisions() {
326
+ return JSON.parse(this.wasm.ListRevisions(this.handle));
327
+ }
328
+ /** Accept ONE revision by the id {@link listRevisions} reported — insertions keep
329
+ * their content, deletions are carried out, a move materializes at its destination,
330
+ * a format change keeps the new properties. Undoable. */
331
+ acceptRevision(revisionId) {
332
+ return JSON.parse(this.wasm.AcceptRevision(this.handle, revisionId));
333
+ }
334
+ /** Reject ONE revision by id — the inverse of {@link acceptRevision}: insertions are
335
+ * removed, deleted content is restored, a move stays at its source, a format change
336
+ * restores the stored old properties. Undoable. */
337
+ rejectRevision(revisionId) {
338
+ return JSON.parse(this.wasm.RejectRevision(this.handle, revisionId));
339
+ }
181
340
  // ─── Tier C: formatting ──────────────────────────────────────────────
182
341
  applyFormat(anchorId, span, op) {
183
342
  const spanJson = span ? JSON.stringify(span) : "";
@@ -217,6 +376,25 @@ export class DocxSession {
217
376
  applyListFormat(anchorId, kind) {
218
377
  return JSON.parse(this.wasm.ApplyListFormat(this.handle, anchorId, kind));
219
378
  }
379
+ /** Apply one list format across the contiguous sibling run from `firstAnchorId` to
380
+ * `lastAnchorId` inclusive (either document order). Every member shares one `w:num`
381
+ * instance so the numbering sequence stays intact; the whole range is a single undo step. */
382
+ applyListFormatRange(firstAnchorId, lastAnchorId, kind) {
383
+ return JSON.parse(this.wasm.ApplyListFormatRange(this.handle, firstAnchorId, lastAnchorId, kind));
384
+ }
385
+ /** Restart the anchored list item's numbering at `value` — Word's *Set Numbering Value…*.
386
+ * Writes a `w:startOverride` on a dedicated `w:num` instance and repoints the anchored item
387
+ * plus every following member of its sequence, so a mid-list restart splits the sequence
388
+ * exactly like Word (earlier items keep their numbers, the tail continues from `value`). */
389
+ setListStartOverride(anchorId, value) {
390
+ return JSON.parse(this.wasm.SetListStartOverride(this.handle, anchorId, value));
391
+ }
392
+ /** Remove the numbering restart from the anchored item's whole sequence (the inverse of
393
+ * {@link setListStartOverride}); the sequence reverts to the definition's own start. A
394
+ * sequence with no override at the item's level is a successful no-op. */
395
+ clearListStartOverride(anchorId) {
396
+ return JSON.parse(this.wasm.ClearListStartOverride(this.handle, anchorId));
397
+ }
220
398
  // ─── Tier D: cell content ────────────────────────────────────────────
221
399
  replaceCellContent(cellAnchorId, markdown) {
222
400
  return JSON.parse(this.wasm.ReplaceCellContent(this.handle, cellAnchorId, markdown));
@@ -619,6 +797,17 @@ export class DocxSession {
619
797
  return JSON.parse(this.wasm.MoveAnnotation(this.handle, annotationId, newAnchorId, spanJson));
620
798
  }
621
799
  // ─── Lifecycle ───────────────────────────────────────────────────────
800
+ /**
801
+ * Switch how subsequent mutations are recorded (issue #304). Session configuration,
802
+ * not a document mutation: not undoable, and already-applied markup is never touched.
803
+ */
804
+ setTrackedChanges(mode) {
805
+ this.wasm.SetTrackedChanges(this.handle, mode);
806
+ }
807
+ /** Author stamped on subsequent tracked-change markup; `null` restores the "docxodus" default. */
808
+ setRevisionAuthor(author) {
809
+ this.wasm.SetRevisionAuthor(this.handle, author ?? "");
810
+ }
622
811
  undo() {
623
812
  return this.wasm.Undo(this.handle);
624
813
  }
@@ -1 +1 @@
1
- {"version":3,"file":"session.js","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,qGAAqG;AAmCrG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE5F;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAW;IAItB,gBAAgB;IAChB,YAAY,MAAc,EAAE,IAA8C;QA4Q1E,wEAAwE;QAE/D,QAAG,GAAG;YACb,MAAM,EAAE,CAAC,QAAgB,EAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC;YAChF,SAAS,EAAE,CAAC,QAAgB,EAAE,QAA4B,EAAE,GAAW,EA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AG,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACnF,OAAO,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACzC,CAAC;AAGD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
package/dist/types.d.ts CHANGED
@@ -783,6 +783,24 @@ export interface DocxodusWasmExports {
783
783
  CreateBlankDocx: () => Uint8Array;
784
784
  Project: (handle: number) => string;
785
785
  ProjectAnchor: (handle: number, anchorId: string, depth: number) => string;
786
+ /** Ordered top-level render units per scope container (JSON {@link RenderPlan}) —
787
+ * what the editor's incremental reconciler diffs its DOM against. Optional:
788
+ * absent on older WASM bundles. */
789
+ ListBlocks?: (handle: number) => string;
790
+ /** Citation-ordered footnotes/endnotes (JSON {@link NoteListEntry}[]) — the
791
+ * id↔ordinal authority for renumbering rendered note chrome. Optional:
792
+ * absent on older WASM bundles. */
793
+ ListNotes?: (handle: number, endnotes: boolean) => string;
794
+ /** The anchor index alone as `{"anchorIndex":{…}}` — the editor's per-op
795
+ * anchor-map refresh without marshaling the whole markdown projection.
796
+ * Optional: absent on older WASM bundles. */
797
+ ListAnchors?: (handle: number) => string;
798
+ /** Batch block render: `anchorIdsJson` is a JSON string array; returns a JSON
799
+ * object mapping each id to its HTML element (null when unresolvable), or
800
+ * `{"error": …}` on total failure — parse and check for `error`. One throwaway
801
+ * doc + one converter run for the whole batch, with real sibling context and
802
+ * true list-marker numbers. Optional: absent on older WASM bundles. */
803
+ RenderBlocksHtml?: (handle: number, anchorIdsJson: string, cssPrefix: string, fabricateClasses: boolean) => string;
786
804
  RenderBlockHtml: (handle: number, anchorId: string, cssPrefix: string, fabricateClasses: boolean) => string;
787
805
  RenderHtml: (handle: number, cssPrefix: string, fabricateClasses: boolean, paginated: boolean, scale: number) => string;
788
806
  ReplaceText: (handle: number, anchor: string, md: string) => string;
@@ -798,10 +816,28 @@ export interface DocxodusWasmExports {
798
816
  InsertTableColumn: (handle: number, cellAnchor: string, pos: string) => string;
799
817
  DeleteTableRow: (handle: number, cellAnchor: string) => string;
800
818
  DeleteTableColumn: (handle: number, cellAnchor: string) => string;
819
+ SetColumnWidths: (handle: number, cellAnchor: string, widthsJson: string) => string;
820
+ SetTableBorders: (handle: number, cellAnchor: string, specJson: string) => string;
821
+ SetCellShading: (handle: number, cellAnchor: string, fill: string, scope: string) => string;
822
+ SetRepeatHeaderRow: (handle: number, cellAnchor: string, repeat: boolean) => string;
801
823
  SetHeaderText: (handle: number, anchor: string, kind: string, markdown: string) => string;
802
824
  SetFooterText: (handle: number, anchor: string, kind: string, markdown: string) => string;
803
- InsertPageNumberField: (handle: number, anchor: string, field: string) => string;
825
+ InsertPageNumberField: (handle: number, anchor: string, field: string, format: string) => string;
826
+ SetPageNumbering: (handle: number, anchor: string, opJson: string) => string;
827
+ ClearPageNumbering: (handle: number, anchor: string) => string;
804
828
  EnsureHeaderFooterVisible: (handle: number, anchor: string, kind: string) => string;
829
+ InsertFootnote: (handle: number, anchor: string, characterOffset: number, markdown: string) => string;
830
+ InsertEndnote: (handle: number, anchor: string, characterOffset: number, markdown: string) => string;
831
+ AddComment: (handle: number, anchor: string, spanJson: string, author: string, initials: string, date: string, markdown: string) => string;
832
+ AddCommentToRevision: (handle: number, revisionId: string, author: string, initials: string, date: string, markdown: string) => string;
833
+ AddCommentReply: (handle: number, parentCommentAnchor: string, author: string, initials: string, date: string, markdown: string) => string;
834
+ UpdateComment: (handle: number, commentAnchor: string, markdown: string) => string;
835
+ SetCommentResolved: (handle: number, commentAnchor: string, resolved: boolean) => string;
836
+ RemoveComment: (handle: number, commentAnchor: string) => string;
837
+ ListComments: (handle: number) => string;
838
+ ListRevisions: (handle: number) => string;
839
+ AcceptRevision: (handle: number, revisionId: string) => string;
840
+ RejectRevision: (handle: number, revisionId: string) => string;
805
841
  ApplyFormat: (handle: number, anchor: string, spanJson: string, opJson: string) => string;
806
842
  ApplyFormatBySubstring: (handle: number, anchor: string, substring: string, opJson: string) => string;
807
843
  SetParagraphStyle: (handle: number, anchor: string, styleId: string) => string;
@@ -809,6 +845,9 @@ export interface DocxodusWasmExports {
809
845
  SetListLevel: (handle: number, anchor: string, delta: number) => string;
810
846
  RemoveListMembership: (handle: number, anchor: string) => string;
811
847
  ApplyListFormat: (handle: number, anchor: string, kind: string) => string;
848
+ ApplyListFormatRange: (handle: number, firstAnchor: string, lastAnchor: string, kind: string) => string;
849
+ SetListStartOverride: (handle: number, anchor: string, value: number) => string;
850
+ ClearListStartOverride: (handle: number, anchor: string) => string;
812
851
  ReplaceCellContent: (handle: number, anchor: string, md: string) => string;
813
852
  RawGetXml: (handle: number, anchor: string) => string;
814
853
  RawInsertXml: (handle: number, anchor: string, pos: string, xml: string) => string;
@@ -843,10 +882,17 @@ export interface DocxodusWasmExports {
843
882
  MoveAnnotation: (handle: number, annotationId: string, newAnchorId: string, newSpanJson: string) => string;
844
883
  Undo: (handle: number) => boolean;
845
884
  Redo: (handle: number) => boolean;
885
+ SetTrackedChanges: (handle: number, mode: number) => void;
886
+ SetRevisionAuthor: (handle: number, author: string) => void;
846
887
  Save: (handle: number) => Uint8Array;
888
+ /** Save KEEPING the projector's `PtOpenXml:Unid` bookkeeping. Exists for the in-browser
889
+ * editor's remount, which re-renders these bytes and needs the anchors to survive the hop.
890
+ * Roughly 6x the document's size and read by no renderer — never hand it to a user; a
891
+ * save-to-disk wants {@link Save}. */
892
+ SaveWithAnchorIds: (handle: number) => Uint8Array;
847
893
  };
848
894
  }
849
- export type EditErrorCode = "anchor_not_found" | "anchor_wrong_kind" | "anchors_not_adjacent" | "session_disposed" | "malformed_markdown" | "unsupported_markdown_syntax" | "table_insert_not_supported" | "footnote_ref_not_supported" | "comment_marker_not_supported" | "image_insert_not_supported" | "anchor_token_in_payload" | "offset_out_of_range" | "invalid_position" | "unknown_style" | "invalid_list_level" | "malformed_xml" | "disallowed_namespace" | "incompatible_element_type" | "validation_failed" | "nothing_to_undo" | "nothing_to_redo" | "internal_error";
895
+ export type EditErrorCode = "anchor_not_found" | "anchor_wrong_kind" | "anchors_not_adjacent" | "session_disposed" | "malformed_markdown" | "unsupported_markdown_syntax" | "table_insert_not_supported" | "footnote_ref_not_supported" | "comment_marker_not_supported" | "image_insert_not_supported" | "anchor_token_in_payload" | "offset_out_of_range" | "invalid_position" | "unknown_style" | "invalid_list_level" | "invalid_list_start_value" | "invalid_page_numbering" | "invalid_paragraph_format" | "invalid_table_styling" | "malformed_xml" | "disallowed_namespace" | "incompatible_element_type" | "validation_failed" | "nothing_to_undo" | "nothing_to_redo" | "duplicate_annotation_id" | "annotation_not_found" | "empty_annotation_span" | "empty_comment_span" | "revision_not_found" | "internal_error";
850
896
  export interface AnchorRef {
851
897
  id: string;
852
898
  kind: string;
@@ -869,6 +915,47 @@ export interface EditResult {
869
915
  removed: AnchorRef[];
870
916
  modified: AnchorRef[];
871
917
  patch?: MarkdownPatch;
918
+ /** Set by the annotation ops (addAnnotation/removeAnnotation/updateAnnotation/
919
+ * moveAnnotation) with the affected annotation id; absent for every other op. */
920
+ annotationId?: string;
921
+ }
922
+ /**
923
+ * One native Word comment, in comments-part order — see {@link DocxSession.listComments}.
924
+ * `anchorId` addresses the definition (kind `cmt`) for updateComment/removeComment;
925
+ * `date` is the raw `w:date` attribute string; `text` is the flattened body.
926
+ * `parentAnchorId` and `resolved` are present when the comment has a
927
+ * `commentsExtended.xml` entry; their absence distinguishes a legacy/flat comment from an
928
+ * explicitly reopened one. The numeric `w:id` is deliberately not surfaced — comments are
929
+ * addressed by anchor everywhere.
930
+ */
931
+ export interface CommentListEntry {
932
+ anchorId: string;
933
+ author: string;
934
+ initials?: string;
935
+ date?: string;
936
+ text: string;
937
+ parentAnchorId?: string;
938
+ resolved?: boolean;
939
+ }
940
+ /** Revision kind in a markup-native revision listing. A `move` entry is a linked
941
+ * move pair — both sides resolve together. */
942
+ export type SessionRevisionType = "insert" | "delete" | "move" | "format";
943
+ /**
944
+ * One tracked revision read directly off the live markup, in document order — see
945
+ * {@link DocxSession.listRevisions}. `id` is stable while the underlying markup exists
946
+ * (derived from the markup's own `w:id` attributes — resolving OTHER revisions never
947
+ * renames it) and is what acceptRevision/rejectRevision address. `author`/`date` are
948
+ * the markup's true `w:author`/`w:date`. `text` is the revision's visible text (deleted
949
+ * text for deletions, `¶` for a revised paragraph mark, the affected text for format
950
+ * changes). `anchorId` is the containing block's anchor when addressable.
951
+ */
952
+ export interface RevisionListEntry {
953
+ id: string;
954
+ type: SessionRevisionType;
955
+ author: string;
956
+ date?: string;
957
+ text: string;
958
+ anchorId?: string;
872
959
  }
873
960
  export interface CharSpan {
874
961
  start: number;
@@ -906,14 +993,42 @@ export interface ParagraphBorderEdge {
906
993
  /** Padding between border and text, in points (`w:space`). Default 1. */
907
994
  space?: number;
908
995
  }
909
- /** List membership for `DocxSession.applyListFormat`. */
910
- export type ListFormat = "none" | "bullet" | "decimal";
996
+ /** List format for `DocxSession.applyListFormat` / `applyListFormatRange`. The plain numbered
997
+ * formats render `1.` / `a.` / `i.` level text; the `*Parenthesis` variants render `(1)` /
998
+ * `(a)` / `(i)` — same `w:numFmt`, different `w:lvlText` (the legal-drafting presets). */
999
+ export type ListFormat = "none" | "bullet" | "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "decimalParenthesis" | "lowerLetterParenthesis" | "upperLetterParenthesis" | "lowerRomanParenthesis" | "upperRomanParenthesis";
1000
+ /** How `ParagraphFormatOp.lineSpacing` is interpreted (`w:spacing/@w:lineRule`): under `"auto"`
1001
+ * the value is in 240ths of a line (240 = single, 360 = 1.5×, 480 = double); under
1002
+ * `"exact"`/`"atLeast"` it is a height in twips (20 twips = 1pt). */
1003
+ export type LineSpacingRule = "auto" | "exact" | "atLeast";
911
1004
  /** Paragraph-level formatting for `DocxSession.setParagraphFormat`. Omit a field to leave it unchanged. */
912
1005
  export interface ParagraphFormatOp {
913
1006
  /** Paragraph alignment. */
914
1007
  alignment?: "left" | "center" | "right" | "justify";
915
1008
  /** Adjust the left indent by this many twips (1440 = 1 inch); clamped at 0. */
916
1009
  indentDelta?: number;
1010
+ /** First-line indent in twips (`w:ind/@w:firstLine`; 1440 = 1 inch). Absolute, not a delta;
1011
+ * 0 writes an explicit "none". Mutually exclusive with `hangingIndent` (Word's `w:ind` holds
1012
+ * one or the other) — setting this removes any hanging indent, and an op carrying both is
1013
+ * rejected with `invalid_paragraph_format`. Negatives are invalid. */
1014
+ firstLineIndent?: number;
1015
+ /** Hanging indent in twips (`w:ind/@w:hanging`; 1440 = 1 inch) — every line EXCEPT the first
1016
+ * starts this far right of the paragraph's left edge. Mutually exclusive with
1017
+ * `firstLineIndent`; setting this removes any first-line indent. Negatives are invalid. */
1018
+ hangingIndent?: number;
1019
+ /** Space above the paragraph in twips (`w:spacing/@w:before`; 20 twips = 1pt, so 240 = 12pt).
1020
+ * Absolute; negatives are invalid. */
1021
+ spacingBefore?: number;
1022
+ /** Space below the paragraph in twips (`w:spacing/@w:after`; 20 twips = 1pt). Absolute;
1023
+ * negatives are invalid. */
1024
+ spacingAfter?: number;
1025
+ /** Line spacing (`w:spacing/@w:line`). Units depend on `lineSpacingRule`: 240ths of a line
1026
+ * under `"auto"` (the default when the rule is omitted), twips under `"exact"`/`"atLeast"`.
1027
+ * Negatives are invalid. */
1028
+ lineSpacing?: number;
1029
+ /** How `lineSpacing` is interpreted. Only meaningful alongside `lineSpacing` — set without
1030
+ * it, the op is rejected with `invalid_paragraph_format`. */
1031
+ lineSpacingRule?: LineSpacingRule;
917
1032
  /** Page-break-before: true to add, false to remove. */
918
1033
  pageBreakBefore?: boolean;
919
1034
  /** Top paragraph border (`w:pBdr/w:top`). Omit to leave unchanged. */
@@ -932,6 +1047,26 @@ export type HeaderFooterKind = "default" | "first" | "even";
932
1047
  /** Which page-number field `DocxSession.insertPageNumberField` emits: `"currentPage"` → PAGE,
933
1048
  * `"totalPages"` → NUMPAGES. */
934
1049
  export type PageNumberField = "currentPage" | "totalPages";
1050
+ /**
1051
+ * Section-level page-numbering setup for {@link DocxSession.setPageNumbering} — the `w:pgNumType`
1052
+ * element, which is what Word's *Format Page Numbers…* dialog writes. Each field is tri-state: an
1053
+ * omitted field leaves that attribute exactly as it is. Use
1054
+ * {@link DocxSession.clearPageNumbering} to remove them.
1055
+ *
1056
+ * This governs how a **plain** PAGE field renders anywhere in the section, which is the normal way
1057
+ * to number pages: set the section once, insert unswitched fields. It is distinct from the
1058
+ * per-field `\*` switch {@link DocxSession.insertPageNumberField} can stamp, which overrides the
1059
+ * section for that one field.
1060
+ */
1061
+ export interface PageNumberingOp {
1062
+ /** The page number this section starts at (`w:start`) — e.g. `1` to restart at a section break.
1063
+ * Omitted leaves it unchanged; absent means the section continues the previous one. */
1064
+ start?: number;
1065
+ /** This section's page-number format (`w:fmt`) — e.g. `"lowerRoman"` for `i, ii, iii` front
1066
+ * matter. Omitted leaves it unchanged; absent means Word's default `1, 2, 3`. `"bullet"` is
1067
+ * rejected — pages cannot be bulleted. */
1068
+ format?: NumberFormat;
1069
+ }
935
1070
  /** Options for `DocxSession.insertTable`. */
936
1071
  export interface TableInsertOptions {
937
1072
  /** Emit an invisible layout table (explicit "none" borders) — the S-1 multi-column blocks. */
@@ -945,6 +1080,25 @@ export interface TableInsertOptions {
945
1080
  * wide-left / narrow-right filing-header row. */
946
1081
  columnWidths?: number[];
947
1082
  }
1083
+ /** Which table edges `DocxSession.setTableBorders` targets: `"outside"` = top/left/bottom/right,
1084
+ * `"inside"` = the inner grid lines (`w:insideH`/`w:insideV`), `"all"` = both. */
1085
+ export type TableBorderScope = "all" | "outside" | "inside";
1086
+ /** Shading granularity for `DocxSession.setCellShading`: the one cell the anchor sits in, or
1087
+ * every cell of its row (header-row banding). */
1088
+ export type TableShadingScope = "cell" | "row";
1089
+ /** Border specification for `DocxSession.setTableBorders`. Written as explicit `w:tblBorders`
1090
+ * edges (overriding style-inherited borders); edges outside `scope` are left untouched. */
1091
+ export interface TableBorderSpec {
1092
+ /** Which edges to write. Default `"all"`. */
1093
+ scope?: TableBorderScope;
1094
+ /** Border line style (`w:val`): `"single"`, `"double"`, `"thick"`, `"dotted"`, `"dashed"`, … —
1095
+ * or `"none"` to remove the targeted edges. Default `"single"`. */
1096
+ style?: string;
1097
+ /** Border weight in eighths of a point (`w:sz`). Default 4 (= 0.5pt). */
1098
+ size?: number;
1099
+ /** Border color as a hex RRGGBB triplet without '#', or `"auto"`. Default `"auto"`. */
1100
+ color?: string;
1101
+ }
948
1102
  export interface DocxSessionSettings {
949
1103
  undoDepth?: number;
950
1104
  validateRawOps?: boolean;
@@ -965,6 +1119,13 @@ export interface DocxSessionSettings {
965
1119
  * straight-quoted text adjacent to surrounding already-curly text. Default false.
966
1120
  */
967
1121
  smartQuotes?: boolean;
1122
+ /**
1123
+ * When false, mutation EditResults omit the markdown patch and skip the per-op
1124
+ * scope re-projection that builds it — the fast path for clients that re-render
1125
+ * from HTML (the browser editor) rather than consuming markdown patches.
1126
+ * Default true.
1127
+ */
1128
+ emitMarkdownPatch?: boolean;
968
1129
  /**
969
1130
  * When `true` (default), the session projects the document at construction
970
1131
  * time so {@link DocxSession.getDiff} can compare initial vs. current.
@@ -972,6 +1133,26 @@ export interface DocxSessionSettings {
972
1133
  */
973
1134
  captureInitialProjection?: boolean;
974
1135
  }
1136
+ /** One top-level render unit in a {@link RenderPlan}: a body block (`p`/`h`/`li`),
1137
+ * one whole table (`tbl`), or one footnote/endnote definition (`fn`/`en`). */
1138
+ export interface RenderUnit {
1139
+ id: string;
1140
+ kind: string;
1141
+ }
1142
+ /** Ordered top-level render units per scope container — the authority for "what
1143
+ * blocks exist, in what order" that the incremental reconciler diffs against. */
1144
+ export interface RenderPlan {
1145
+ body: RenderUnit[];
1146
+ footnotes: RenderUnit[];
1147
+ endnotes: RenderUnit[];
1148
+ }
1149
+ /** One footnote/endnote in citation order. `id` is the note's `w:id`; `ordinal`
1150
+ * is its 1-based citation position — which IS its displayed number. */
1151
+ export interface NoteListEntry {
1152
+ id: string;
1153
+ defAnchorId: string;
1154
+ ordinal: number;
1155
+ }
975
1156
  export interface DocxSessionProjection {
976
1157
  markdown: string;
977
1158
  anchorIndex: Record<string, {
@@ -1357,6 +1538,13 @@ export interface SectionInfo {
1357
1538
  /** Footer references in declaration order, each with its `w:type`. Describes exactly the
1358
1539
  * parts {@link SectionInfo.footerPartUris} lists, plus the kind each supplies. */
1359
1540
  footerRefs: HeaderFooterRef[];
1541
+ /** The page number this section starts at (`w:pgNumType/@w:start`). Absent when the section
1542
+ * continues the previous section's numbering. */
1543
+ pageNumberStart?: number;
1544
+ /** This section's page-number format (`w:pgNumType/@w:fmt`). Absent means Word's default
1545
+ * `1, 2, 3` — deliberately not reported as `"decimal"`, so a UI can tell "inherits" from
1546
+ * "explicitly decimal" and avoid writing an attribute the document never had. */
1547
+ pageNumberFormat?: NumberFormat;
1360
1548
  }
1361
1549
  /**
1362
1550
  * A custom annotation persisted in the document via Docxodus' annotation system.