@docx-editor.dev/core 2.13.0 → 2.14.1

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 (101) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.cts +3 -3
  3. package/dist/automation.d.ts +3 -3
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.cts +4 -4
  7. package/dist/binding.d.ts +4 -4
  8. package/dist/binding.js +1 -1
  9. package/dist/{chunk-PFSJVAWJ.cjs → chunk-2PIHW2QM.cjs} +1 -1
  10. package/dist/chunk-2QTY5S6T.js +1 -0
  11. package/dist/chunk-4Z5MODAE.cjs +2 -0
  12. package/dist/{chunk-WANKXD34.cjs → chunk-5TKAPFZT.cjs} +1 -1
  13. package/dist/chunk-DRQHIQ4R.cjs +1 -0
  14. package/dist/chunk-F2K6SDHA.cjs +20 -0
  15. package/dist/chunk-FBA57EUJ.js +2 -0
  16. package/dist/{chunk-67S7OHE6.cjs → chunk-KIAP7PFQ.cjs} +1 -1
  17. package/dist/chunk-KTAQ7BRQ.js +20 -0
  18. package/dist/chunk-LBAHXZCU.cjs +5 -0
  19. package/dist/chunk-MCDUQYWP.js +5 -0
  20. package/dist/chunk-MQP26KCF.js +1 -0
  21. package/dist/chunk-NDJGSR6M.cjs +19 -0
  22. package/dist/chunk-NJNFJPGB.cjs +11 -0
  23. package/dist/chunk-O5M4CR4P.cjs +2 -0
  24. package/dist/{chunk-HWWHGREA.js → chunk-OKEDGR65.js} +1 -1
  25. package/dist/chunk-UKUOZXUD.js +19 -0
  26. package/dist/chunk-VQ4R5LTU.js +2 -0
  27. package/dist/chunk-ZBEJHJN2.js +11 -0
  28. package/dist/{chunk-PRIBU3UH.js → chunk-ZVTW7RGD.js} +1 -1
  29. package/dist/collaboration/replication.cjs +1 -1
  30. package/dist/collaboration/replication.d.cts +1 -1
  31. package/dist/collaboration/replication.d.ts +1 -1
  32. package/dist/collaboration/replication.js +1 -1
  33. package/dist/collaboration.d.cts +1 -1
  34. package/dist/collaboration.d.ts +1 -1
  35. package/dist/contracts/editor.d.cts +4 -4
  36. package/dist/contracts/editor.d.ts +4 -4
  37. package/dist/contracts/interaction.d.cts +4 -4
  38. package/dist/contracts/interaction.d.ts +4 -4
  39. package/dist/contracts/modules.d.cts +2 -2
  40. package/dist/contracts/modules.d.ts +2 -2
  41. package/dist/{editor-DLrTueVe.d.cts → editor-AJ06hyyg.d.cts} +26 -2
  42. package/dist/{editor-KiB6JNvk.d.ts → editor-a6VvsfYU.d.ts} +26 -2
  43. package/dist/editor.cjs +1 -1
  44. package/dist/editor.css +1 -1
  45. package/dist/editor.d.cts +15 -15
  46. package/dist/editor.d.ts +15 -15
  47. package/dist/editor.js +1 -1
  48. package/dist/{index-D4Pxdo_p.d.ts → index-C5ZnSRkF.d.ts} +49 -15
  49. package/dist/{index-D_PA2Xv6.d.cts → index-Cbw4lkOt.d.cts} +49 -15
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.d.cts +9 -9
  52. package/dist/index.d.ts +9 -9
  53. package/dist/index.js +1 -1
  54. package/dist/layout.cjs +1 -1
  55. package/dist/layout.d.cts +36 -86
  56. package/dist/layout.d.ts +36 -86
  57. package/dist/layout.js +1 -1
  58. package/dist/output.cjs +1 -1
  59. package/dist/output.d.cts +4 -4
  60. package/dist/output.d.ts +4 -4
  61. package/dist/output.js +1 -1
  62. package/dist/{protocol-DjgYKCAy.d.ts → protocol-BsmQgblT.d.ts} +1 -1
  63. package/dist/{protocol-C8L58j66.d.cts → protocol-gOY5GA8K.d.cts} +1 -1
  64. package/dist/{review-reads-DcGYCH0w.d.ts → review-reads-BjZYeMd4.d.ts} +6 -19
  65. package/dist/{review-reads-BrTDmoYH.d.cts → review-reads-DEsV0OOW.d.cts} +6 -19
  66. package/dist/{revision-projection-BmLtLPxH.d.ts → revision-projection-BeXVrSSV.d.ts} +23 -2
  67. package/dist/{revision-projection-Dknlar93.d.cts → revision-projection-DXbrfNGD.d.cts} +23 -2
  68. package/dist/{semantic-cell-selection-BZ50i-Fu.d.ts → semantic-cell-selection-BK91NCCG.d.ts} +15 -6
  69. package/dist/{semantic-cell-selection-COnfaOZO.d.cts → semantic-cell-selection-BMhku3B1.d.cts} +15 -6
  70. package/dist/{semantic-interaction-BDJ4TBjm.d.ts → semantic-interaction-BmQ7h2cq.d.ts} +1 -1
  71. package/dist/{semantic-interaction-Bq3ixB0I.d.cts → semantic-interaction-DUAnxbgf.d.cts} +1 -1
  72. package/dist/{semantic-paint-C5SMTO8Y.d.cts → semantic-paint-DufNL1Zr.d.cts} +1 -1
  73. package/dist/{semantic-paint-DuhhY5-R.d.ts → semantic-paint-WJD2KeG1.d.ts} +1 -1
  74. package/dist/{semantic-records-BI1jpft7.d.ts → semantic-records-92UnKeU_.d.ts} +546 -5
  75. package/dist/{semantic-records-Btw3Ao4v.d.cts → semantic-records-BpozY7-j.d.cts} +546 -5
  76. package/dist/shaped-measurer-BWbindlI.d.ts +168 -0
  77. package/dist/shaped-measurer-CFPnXFs9.d.cts +168 -0
  78. package/dist/store.cjs +1 -1
  79. package/dist/store.d.cts +14 -7
  80. package/dist/store.d.ts +14 -7
  81. package/dist/store.js +1 -1
  82. package/dist/{tree-package-fragment-B1supBtE.d.ts → tree-package-fragment-CWFjgH6a.d.ts} +1 -9
  83. package/dist/{tree-package-fragment-ByN5yzll.d.cts → tree-package-fragment-Dhyw7oPm.d.cts} +1 -9
  84. package/dist/{tree-session-contract-BasiwZgZ.d.ts → tree-session-contract-B2HfGt79.d.ts} +6 -2
  85. package/dist/{tree-session-contract-DbeBenMR.d.cts → tree-session-contract-BY9xd7s_.d.cts} +6 -2
  86. package/package.json +2 -2
  87. package/dist/chunk-3AT4RUQ3.cjs +0 -19
  88. package/dist/chunk-4NAQLFXA.cjs +0 -2
  89. package/dist/chunk-BHAUFJO6.js +0 -20
  90. package/dist/chunk-F7U4OLMS.cjs +0 -2
  91. package/dist/chunk-FNMXRLGW.cjs +0 -5
  92. package/dist/chunk-I36WS6XX.cjs +0 -20
  93. package/dist/chunk-IOTL2GGW.js +0 -1
  94. package/dist/chunk-OF2QZCTN.js +0 -19
  95. package/dist/chunk-RO3HFCML.js +0 -5
  96. package/dist/chunk-SFOUCTKA.js +0 -2
  97. package/dist/chunk-VBEKERLJ.js +0 -2
  98. package/dist/chunk-XETEMUIP.cjs +0 -11
  99. package/dist/chunk-YMW34EBA.js +0 -11
  100. package/dist/shaped-measurer-CqdYa0fa.d.cts +0 -619
  101. package/dist/shaped-measurer-qnBJziPx.d.ts +0 -619
@@ -1,7 +1,7 @@
1
1
  import { O as OoxmlPart, g as OoxmlElement, a as OoxmlNode } from './tree-op-types-BUulYD5y.cjs';
2
- import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, b as TableRowFragmentRecord, c as TableCellFragmentRecord } from './semantic-records-Btw3Ao4v.cjs';
3
- import { R as RevisionDisplayMode } from './revision-projection-Dknlar93.cjs';
4
- import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-Bq3ixB0I.cjs';
2
+ import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, e as TableRowFragmentRecord, f as TableCellFragmentRecord } from './semantic-records-BpozY7-j.cjs';
3
+ import { R as RevisionDisplayMode, a as RevisionAuthorFilter } from './revision-projection-DXbrfNGD.cjs';
4
+ import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-DUAnxbgf.cjs';
5
5
 
6
6
  /**
7
7
  * Hard ceiling on sections enumerated from a document (matches write-path
@@ -144,7 +144,16 @@ declare function readSectionProperties(part: OoxmlPart): SectionProperties;
144
144
  * a filtered list with indices counted over an unfiltered one puts body text under another
145
145
  * section's page geometry — the wrong paper size, the wrong margins, the wrong header.
146
146
  */
147
- declare function enumerateDocumentSections(part: OoxmlPart, displayMode?: RevisionDisplayMode): DocumentSection[];
147
+ declare function enumerateDocumentSections(part: OoxmlPart, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): DocumentSection[];
148
+ /**
149
+ * Canonical section index behind each section in a revision-projected body.
150
+ *
151
+ * A removed paragraph mark can collapse an entire section. The projected section keeps the
152
+ * surviving paragraph's geometry, while package APIs such as header/footer resolution remain
153
+ * indexed over the canonical tree. This bridge prevents those two index spaces from being
154
+ * paired positionally.
155
+ */
156
+ declare function projectedSectionSourceIndexes(part: OoxmlPart, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): readonly number[];
148
157
  /**
149
158
  * Every section in a document, with a flag saying whether the list was cut short.
150
159
  *
@@ -162,7 +171,7 @@ interface DocumentSectionsEnumeration {
162
171
  * hostile input. Prefer the plain enumerator for normal layout; use this when a caller
163
172
  * needs a named fail-closed diagnostic.
164
173
  */
165
- declare function enumerateDocumentSectionsBounded(part: OoxmlPart, displayMode?: RevisionDisplayMode): DocumentSectionsEnumeration;
174
+ declare function enumerateDocumentSectionsBounded(part: OoxmlPart, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): DocumentSectionsEnumeration;
166
175
  /**
167
176
  * Section properties as the geometry layout paginates against.
168
177
  *
@@ -439,4 +448,4 @@ interface TableCellContext {
439
448
  */
440
449
  declare function tableContextAt(layout: SemanticLayout, paragraphId: string): TableCellContext | null;
441
450
 
442
- export { pageAtY as A, paragraphSectionNode as B, type CellSelection as C, DEFAULT_SECTION_PROPERTIES as D, paragraphsInCells as E, parsePageNumbering as F, parseSectionProperties as G, type HitPoint as H, readSectionProperties as I, spanOffsetX as J, spansInCells as K, tableContextAt as L, MAX_DOCUMENT_SECTIONS as M, type PlacedCell as P, type SectionProperties as S, type TableCellAddress as T, type SectionColumns as a, DEFAULT_VERTICAL_WEIGHT as b, type DocumentSection as c, type DocumentSectionsEnumeration as d, type DrawingOverlayFrame as e, type HitTestOptions as f, type SectionBreakType as g, type SectionColumnDefinition as h, type SectionMargins as i, type SectionPageNumbering as j, type SemanticHit as k, type SemanticHitDrawing as l, type TableCellContext as m, caretBoxOnLine as n, cellSelectionBetween as o, cellSelectionRects as p, cellSelectionText as q, contentControlAtPoint as r, enumerateDocumentSections as s, enumerateDocumentSectionsBounded as t, findDrawingOverlayFrameInLayout as u, geometryOfSection as v, hitTestPage as w, hitTestSheet as x, isFurniturePoint as y, lineEndOffset as z };
451
+ export { pageAtY as A, paragraphSectionNode as B, type CellSelection as C, DEFAULT_SECTION_PROPERTIES as D, paragraphsInCells as E, parsePageNumbering as F, parseSectionProperties as G, type HitPoint as H, projectedSectionSourceIndexes as I, readSectionProperties as J, spanOffsetX as K, spansInCells as L, MAX_DOCUMENT_SECTIONS as M, tableContextAt as N, type PlacedCell as P, type SectionProperties as S, type TableCellAddress as T, type SectionColumns as a, DEFAULT_VERTICAL_WEIGHT as b, type DocumentSection as c, type DocumentSectionsEnumeration as d, type DrawingOverlayFrame as e, type HitTestOptions as f, type SectionBreakType as g, type SectionColumnDefinition as h, type SectionMargins as i, type SectionPageNumbering as j, type SemanticHit as k, type SemanticHitDrawing as l, type TableCellContext as m, caretBoxOnLine as n, cellSelectionBetween as o, cellSelectionRects as p, cellSelectionText as q, contentControlAtPoint as r, enumerateDocumentSections as s, enumerateDocumentSectionsBounded as t, findDrawingOverlayFrameInLayout as u, geometryOfSection as v, hitTestPage as w, hitTestSheet as x, isFurniturePoint as y, lineEndOffset as z };
@@ -1,4 +1,4 @@
1
- import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-BI1jpft7.js';
1
+ import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-92UnKeU_.js';
2
2
 
3
3
  /** A caret position in the model. */
4
4
  interface SemanticPosition {
@@ -1,4 +1,4 @@
1
- import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-Btw3Ao4v.cjs';
1
+ import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-BpozY7-j.cjs';
2
2
 
3
3
  /** A caret position in the model. */
4
4
  interface SemanticPosition {
@@ -1,4 +1,4 @@
1
- import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-Btw3Ao4v.cjs';
1
+ import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-BpozY7-j.cjs';
2
2
  import { V as ValidatedImageBytesHandle, t as RenderableImageMime } from './tree-op-types-BUulYD5y.cjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-BI1jpft7.js';
1
+ import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-92UnKeU_.js';
2
2
  import { V as ValidatedImageBytesHandle, t as RenderableImageMime } from './tree-op-types-D6HzlPR4.js';
3
3
 
4
4
  /**