@docx-editor.dev/core 2.22.0 → 2.24.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 (108) hide show
  1. package/README.md +7 -6
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.d.ts +13 -12
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.ts +11 -10
  7. package/dist/binding.js +1 -1
  8. package/dist/{chunk-5RKCJ5DF.js → chunk-2LXGB2X7.js} +1 -1
  9. package/dist/chunk-3OMDEMLL.js +1 -0
  10. package/dist/{chunk-RLKX7BIP.cjs → chunk-6CPYOVRT.cjs} +1 -1
  11. package/dist/chunk-AKF5KM2W.cjs +4 -0
  12. package/dist/chunk-BOGQGMMU.cjs +1 -0
  13. package/dist/chunk-CVNDMQIX.cjs +26 -0
  14. package/dist/chunk-DF7F7TNU.cjs +1 -0
  15. package/dist/{chunk-IWAUA732.js → chunk-G765WG4R.js} +1 -1
  16. package/dist/{chunk-X2LJDR53.cjs → chunk-IEXYOLNR.cjs} +5 -5
  17. package/dist/chunk-J3EM5ZEA.js +18 -0
  18. package/dist/{chunk-P5PWSRNW.cjs → chunk-JDAAGZNE.cjs} +1 -1
  19. package/dist/chunk-JNE6QF47.js +26 -0
  20. package/dist/chunk-JQTVFP72.cjs +2 -0
  21. package/dist/chunk-JXL25DRU.js +11 -0
  22. package/dist/chunk-KPSGB64S.js +1 -0
  23. package/dist/chunk-P4SBMHHO.cjs +5 -0
  24. package/dist/chunk-QQAF64KN.js +5 -0
  25. package/dist/chunk-SI5FLZGU.js +4 -0
  26. package/dist/chunk-SOUJNWXV.js +1 -0
  27. package/dist/chunk-T4TKRNZT.cjs +11 -0
  28. package/dist/chunk-TBFZZX7Z.cjs +1 -0
  29. package/dist/chunk-VPKKYCZI.cjs +2 -0
  30. package/dist/chunk-W3ZUPQIZ.cjs +18 -0
  31. package/dist/chunk-XMWH2R23.js +5 -0
  32. package/dist/chunk-XWXJB4J7.js +1 -0
  33. package/dist/chunk-YIBEBHT3.js +2 -0
  34. package/dist/chunk-ZSM6X52G.cjs +1 -0
  35. package/dist/chunk-ZXAGLAY2.js +2 -0
  36. package/dist/collaboration/replication.cjs +1 -1
  37. package/dist/collaboration/replication.d.ts +6 -5
  38. package/dist/collaboration/replication.js +1 -1
  39. package/dist/collaboration.d.ts +7 -6
  40. package/dist/contracts/document.d.ts +4 -3
  41. package/dist/contracts/editor.d.ts +9 -9
  42. package/dist/contracts/interaction.d.ts +2 -1
  43. package/dist/contracts/modules.d.ts +9 -8
  44. package/dist/contracts/types.d.ts +1 -1
  45. package/dist/{custom-node-writes-Ck6eOiJ3.d.ts → custom-node-writes-77rvPW2-.d.ts} +4 -3
  46. package/dist/{document-protection-CMPEonQc.d.ts → document-protection-CYIjO-li.d.ts} +3 -2
  47. package/dist/{editor-BKDVqXyk.d.ts → editor-BU6rjQZz.d.ts} +134 -26
  48. package/dist/editor.cjs +1 -1
  49. package/dist/editor.css +1 -1
  50. package/dist/editor.d.ts +57 -66
  51. package/dist/editor.js +1 -1
  52. package/dist/export.cjs +2 -2
  53. package/dist/export.d.ts +17 -16
  54. package/dist/export.js +2 -2
  55. package/dist/{failure-DNNmwsgD.d.ts → failure-BIPVQbRm.d.ts} +2 -1
  56. package/dist/{font-resolver-PBc8Vuxs.d.ts → font-resolver-CPO7wtg6.d.ts} +3 -2
  57. package/dist/{headless-document-view-9wjJT20Y.d.ts → headless-document-view-Cc3fFWhv.d.ts} +4 -3
  58. package/dist/{image-resources-B0v-XaTM.d.ts → image-resources-DkuzBnTM.d.ts} +3 -2
  59. package/dist/{index-DQA53aR1.d.ts → index-BOkQYOsZ.d.ts} +75 -36
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.d.ts +18 -18
  62. package/dist/index.js +1 -1
  63. package/dist/{layout-shaping-Dyr0ZSOI.d.ts → layout-shaping-BOOxnLxF.d.ts} +3 -2
  64. package/dist/layout.cjs +1 -1
  65. package/dist/layout.d.ts +164 -83
  66. package/dist/layout.js +1 -1
  67. package/dist/{note-properties-D_lmG9xx.d.ts → note-properties-DMfKK3QU.d.ts} +3 -2
  68. package/dist/{omml-equation-CfTm3jOK.d.ts → omml-equation-BY7OdfGY.d.ts} +3 -2
  69. package/dist/output.cjs +1 -1
  70. package/dist/output.d.ts +9 -8
  71. package/dist/output.js +1 -1
  72. package/dist/{protocol-CkVDxyQ3.d.ts → protocol-CPAakntQ.d.ts} +4 -3
  73. package/dist/{review-paragraph-order-BjUs-tDd.d.ts → review-paragraph-order-B0BP_wJP.d.ts} +1 -1
  74. package/dist/{revision-projection-DDVBYTIG.d.ts → revision-projection-CVJeA2jp.d.ts} +3 -2
  75. package/dist/{semantic-cell-selection-DW6qsmoC.d.ts → semantic-cell-selection-BtO2s2Za.d.ts} +10 -6
  76. package/dist/{semantic-interaction-BNiYSBcB.d.ts → semantic-interaction-COMnWyBQ.d.ts} +3 -2
  77. package/dist/{semantic-paint-DE236npp.d.ts → semantic-paint-C032N0ps.d.ts} +4 -3
  78. package/dist/{semantic-records-C5OeXnaL.d.ts → semantic-records-BSjo-xck.d.ts} +889 -779
  79. package/dist/store.cjs +1 -1
  80. package/dist/store.d.ts +17 -17
  81. package/dist/store.js +1 -1
  82. package/dist/{tree-package-fragment-DBb97w3F.d.ts → tree-package-fragment-BIyGh6L8.d.ts} +4 -3
  83. package/dist/{tree-session-contract-BYat3RKx.d.ts → tree-session-contract-CHcCnz3W.d.ts} +7 -6
  84. package/dist/{types-barrel-ChGvWjkO.d.ts → types-barrel-DN_-gaRX.d.ts} +70 -5
  85. package/package.json +3 -3
  86. package/dist/chunk-65GJRSZ5.cjs +0 -18
  87. package/dist/chunk-6TBRG6SA.cjs +0 -20
  88. package/dist/chunk-A72MJGY7.cjs +0 -4
  89. package/dist/chunk-AZ7QSAXH.js +0 -4
  90. package/dist/chunk-BL57VQ7E.js +0 -1
  91. package/dist/chunk-CB6RQ3GD.cjs +0 -11
  92. package/dist/chunk-FGBADUSK.cjs +0 -1
  93. package/dist/chunk-GG4IAKFI.js +0 -5
  94. package/dist/chunk-HJYLFMLX.js +0 -2
  95. package/dist/chunk-HL6NO7IH.cjs +0 -2
  96. package/dist/chunk-HZQFGB2X.cjs +0 -5
  97. package/dist/chunk-OZXBAEWW.js +0 -2
  98. package/dist/chunk-PD5XKBJA.js +0 -1
  99. package/dist/chunk-REMFTPDL.cjs +0 -2
  100. package/dist/chunk-UGLO2GA5.cjs +0 -1
  101. package/dist/chunk-UOQONZVQ.js +0 -11
  102. package/dist/chunk-VD2MWTR6.js +0 -20
  103. package/dist/chunk-VIXH2OVP.js +0 -1
  104. package/dist/chunk-VP7SDFCM.js +0 -1
  105. package/dist/chunk-W2JIZ5JH.js +0 -18
  106. package/dist/chunk-W5H62AWM.cjs +0 -1
  107. package/dist/chunk-YQXY6TQ3.js +0 -5
  108. package/dist/chunk-YYFBYVW4.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { a6 as AutomationTableMutation, _ as RevisionBatchResult } from './types-barrel-ChGvWjkO.js';
2
- import { H as HeaderFooterVariant, N as NoteKind } from './tree-package-fragment-DBb97w3F.js';
1
+ import { a6 as AutomationTableMutation, _ as RevisionBatchResult } from './types-barrel-DN_-gaRX.js';
2
+ import { H as HeaderFooterVariant, N as NoteKind } from './tree-package-fragment-BIyGh6L8.js';
3
3
 
4
4
  interface AutomationInlinePictureRead {
5
5
  readonly width: number;
@@ -1558,4 +1558,5 @@ interface AutomationHost {
1558
1558
  dispose(): void;
1559
1559
  }
1560
1560
 
1561
- export { type AutomationCapabilities as A, type AutomationParagraphFormatRead as B, type AutomationParagraphFormatWrite as C, type AutomationParagraphRef as D, type AutomationPoint as E, type AutomationSaveResult as F, type AutomationSearchOptions as G, type AutomationSelectionMode as H, type AutomationSpan as I, type AutomationSpanRef as J, type AutomationTextProjection as K, type AutomationUnsubscribe as L, type AutomationValue as M, isAutomationCommand as N, isSolitaryAutomationCommand as O, type AutomationHost as a, AUTOMATION_COMMAND_OPERATIONS as b, AUTOMATION_QUERY_OPERATIONS as c, AUTOMATION_SOLITARY_OPERATIONS as d, type AutomationAlignment as e, type AutomationBatchRequest as f, type AutomationBatchResponse as g, type AutomationChangeEvent as h, type AutomationContentControlLock as i, type AutomationContentControlRangeLocation as j, type AutomationContentControlScope as k, type AutomationContentControlSubtype as l, type AutomationContentControlValue as m, type AutomationError as n, type AutomationErrorCode as o, type AutomationFontRead as p, type AutomationFontWrite as q, type AutomationHandle as r, type AutomationHandleRef as s, type AutomationObjectKind as t, type AutomationOperation as u, type AutomationOperationKind as v, type AutomationOperationResult as w, type AutomationPageOrientation as x, type AutomationPageSetupRead as y, type AutomationPageSetupWrite as z };
1561
+ export { isAutomationCommand as N, isSolitaryAutomationCommand as O, AUTOMATION_COMMAND_OPERATIONS as b, AUTOMATION_QUERY_OPERATIONS as c, AUTOMATION_SOLITARY_OPERATIONS as d };
1562
+ export type { AutomationCapabilities as A, AutomationParagraphFormatRead as B, AutomationParagraphFormatWrite as C, AutomationParagraphRef as D, AutomationPoint as E, AutomationSaveResult as F, AutomationSearchOptions as G, AutomationSelectionMode as H, AutomationSpan as I, AutomationSpanRef as J, AutomationTextProjection as K, AutomationUnsubscribe as L, AutomationValue as M, AutomationHost as a, AutomationAlignment as e, AutomationBatchRequest as f, AutomationBatchResponse as g, AutomationChangeEvent as h, AutomationContentControlLock as i, AutomationContentControlRangeLocation as j, AutomationContentControlScope as k, AutomationContentControlSubtype as l, AutomationContentControlValue as m, AutomationError as n, AutomationErrorCode as o, AutomationFontRead as p, AutomationFontWrite as q, AutomationHandle as r, AutomationHandleRef as s, AutomationObjectKind as t, AutomationOperation as u, AutomationOperationKind as v, AutomationOperationResult as w, AutomationPageOrientation as x, AutomationPageSetupRead as y, AutomationPageSetupWrite as z };
@@ -1,4 +1,4 @@
1
- import { i as OoxmlNode, a1 as OoxmlElement, a2 as OoxmlContentControlNode, V as OoxmlGenericElementNode, a3 as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './types-barrel-ChGvWjkO.js';
1
+ import { N as OoxmlNode, a1 as OoxmlElement, a2 as OoxmlContentControlNode, V as OoxmlGenericElementNode, a3 as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './types-barrel-DN_-gaRX.js';
2
2
 
3
3
  /** Nested content-control wrappers deeper than this stop flattening; content stays preserved. */
4
4
  declare const MAX_CONTENT_CONTROL_NESTING = 32;
@@ -1,4 +1,4 @@
1
- import { i as OoxmlNode } from './types-barrel-ChGvWjkO.js';
1
+ import { N as OoxmlNode } from './types-barrel-DN_-gaRX.js';
2
2
 
3
3
  /**
4
4
  * What a revision wrapper asserts about the content inside it.
@@ -167,4 +167,5 @@ declare function formatRevisionOf(properties: readonly {
167
167
  /** True when this stack of revisions marks its content as deleted from the live document. */
168
168
  declare function revisionsAreDeletion(revisions: readonly RevisionAttribution[]): boolean;
169
169
 
170
- export { DEFAULT_REVISION_DISPLAY_MODE as D, type ReviewDisplayMode as R, type RevisionDisplayMode as a, type RevisionAuthorFilter as b, type RevisionAttribution as c, type RevisionFilter as d, type RevisionKind as e, formatRevisionOf as f, paragraphMarkRevisionOf as g, paragraphMarkRevisionsOf as h, revisionsAreDeletion as i, revisionsVisible as j, markRevisionRemovesMark as m, paragraphMarkFormatRevisionOf as p, revisionAuthorFilter as r, shownMarkRevision as s };
170
+ export { DEFAULT_REVISION_DISPLAY_MODE as D, formatRevisionOf as f, paragraphMarkRevisionOf as g, paragraphMarkRevisionsOf as h, revisionsAreDeletion as i, revisionsVisible as j, markRevisionRemovesMark as m, paragraphMarkFormatRevisionOf as p, revisionAuthorFilter as r, shownMarkRevision as s };
171
+ export type { ReviewDisplayMode as R, RevisionDisplayMode as a, RevisionAuthorFilter as b, RevisionAttribution as c, RevisionFilter as d, RevisionKind as e };
@@ -1,7 +1,7 @@
1
- import { O as OoxmlPart, a1 as OoxmlElement, i as OoxmlNode } from './types-barrel-ChGvWjkO.js';
2
- import { a as RevisionDisplayMode, b as RevisionAuthorFilter } from './revision-projection-DDVBYTIG.js';
3
- import { b as SectionPageBorders, P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, c as TableRowFragmentRecord, d as TableCellFragmentRecord } from './semantic-records-C5OeXnaL.js';
4
- import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-BNiYSBcB.js';
1
+ import { O as OoxmlPart, a1 as OoxmlElement, N as OoxmlNode } from './types-barrel-DN_-gaRX.js';
2
+ import { a as RevisionDisplayMode, b as RevisionAuthorFilter } from './revision-projection-CVJeA2jp.js';
3
+ import { b as SectionPageBorders, P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, c as TableRowFragmentRecord, d as TableCellFragmentRecord } from './semantic-records-BSjo-xck.js';
4
+ import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-COMnWyBQ.js';
5
5
 
6
6
  /**
7
7
  * Hard ceiling on sections enumerated from a document (matches write-path
@@ -79,7 +79,7 @@ interface SectionPageNumbering {
79
79
  * inherited.
80
80
  */
81
81
  interface SectionProperties {
82
- /** Active document grid line pitch for line-unit paragraph margins. */
82
+ /** Active document grid line pitch: line-unit paragraph margins and line snapping. */
83
83
  readonly gridLinePitchTwips?: number;
84
84
  readonly pageSize: {
85
85
  readonly widthTwips: number;
@@ -184,6 +184,9 @@ declare function enumerateDocumentSectionsBounded(part: OoxmlPart, displayMode?:
184
184
  *
185
185
  * The gutter is added to the LEFT margin: it is binding allowance, extra space on the inner
186
186
  * edge, and folding it into the content width instead would silently narrow every line.
187
+ *
188
+ * Top and bottom keep the authored sign of `w:pgMar`: a negative value is an exact inset that
189
+ * header and footer height never moves. Read them through `page-body-margins.ts`.
187
190
  */
188
191
  declare function geometryOfSection(section: SectionProperties): PageGeometry;
189
192
 
@@ -437,4 +440,5 @@ interface TableCellContext {
437
440
  */
438
441
  declare function tableContextAt(layout: SemanticLayout, paragraphId: string): TableCellContext | null;
439
442
 
440
- 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 };
443
+ export { pageAtY as A, paragraphSectionNode as B, DEFAULT_SECTION_PROPERTIES as D, paragraphsInCells as E, parsePageNumbering as F, parseSectionProperties as G, projectedSectionSourceIndexes as I, readSectionProperties as J, spanOffsetX as K, spansInCells as L, MAX_DOCUMENT_SECTIONS as M, tableContextAt as N, DEFAULT_VERTICAL_WEIGHT as b, 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 };
444
+ export type { CellSelection as C, HitPoint as H, PlacedCell as P, SectionProperties as S, TableCellAddress as T, SectionColumns as a, DocumentSection as c, DocumentSectionsEnumeration as d, DrawingOverlayFrame as e, HitTestOptions as f, SectionBreakType as g, SectionColumnDefinition as h, SectionMargins as i, SectionPageNumbering as j, SemanticHit as k, SemanticHitDrawing as l, TableCellContext as m };
@@ -1,4 +1,4 @@
1
- import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-C5OeXnaL.js';
1
+ import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-BSjo-xck.js';
2
2
 
3
3
  /** A caret position in the model. */
4
4
  interface SemanticPosition {
@@ -140,4 +140,5 @@ declare function spansInSelection(layout: SemanticLayout, selection: SemanticSel
140
140
  */
141
141
  order: readonly string[]): StyleSpanRecord[];
142
142
 
143
- export { type CaretGeometry as C, type MoveCaretOptions as M, type NavigationCommand as N, type SemanticPosition as S, type SemanticSelection as a, type SelectionRect as b, type CaretAtOptions as c, caretAt as d, caretStops as e, caretStopsForBlocks as f, compositionAnchor as g, contentControlAtSemantic as h, contentControlsInLayout as i, deletedTextBoundaries as j, hitTestSemantic as k, moveCaret as m, paragraphTextFromLayout as p, spansInSelection as s };
143
+ export { caretAt as d, caretStops as e, caretStopsForBlocks as f, compositionAnchor as g, contentControlAtSemantic as h, contentControlsInLayout as i, deletedTextBoundaries as j, hitTestSemantic as k, moveCaret as m, paragraphTextFromLayout as p, spansInSelection as s };
144
+ export type { CaretGeometry as C, MoveCaretOptions as M, NavigationCommand as N, SemanticPosition as S, SemanticSelection as a, SelectionRect as b, CaretAtOptions as c };
@@ -1,5 +1,5 @@
1
- import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-C5OeXnaL.js';
2
- import { V as ValidatedImageBytesHandle, R as RenderableImageMime } from './image-resources-B0v-XaTM.js';
1
+ import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-BSjo-xck.js';
2
+ import { V as ValidatedImageBytesHandle, R as RenderableImageMime } from './image-resources-DkuzBnTM.js';
3
3
 
4
4
  /**
5
5
  * Everything a host can say about ONE author's presentation. Every field is optional and
@@ -270,4 +270,5 @@ interface PaintOptions {
270
270
  */
271
271
  declare function paintSemanticLayout(container: HTMLElement, layout: SemanticLayout, options?: PaintOptions): void;
272
272
 
273
- export { DEFAULT_FIELD_SHADING as D, type FieldShadingMode as F, type PaintOptions as P, type ReviewAuthorInfo as R, type RevisionAuthorAssignments as a, type RevisionAuthorStyle as b, type RevisionStyles as c, type DrawingPaintStrings as d, paintSemanticLayout as p };
273
+ export { DEFAULT_FIELD_SHADING as D, paintSemanticLayout as p };
274
+ export type { FieldShadingMode as F, PaintOptions as P, ReviewAuthorInfo as R, RevisionAuthorAssignments as a, RevisionAuthorStyle as b, RevisionStyles as c, DrawingPaintStrings as d };