@docx-editor.dev/core 2.32.0 → 2.33.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 (119) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -0
  3. package/dist/automation.cjs +1 -1
  4. package/dist/automation.d.ts +13 -51
  5. package/dist/automation.js +1 -1
  6. package/dist/binding.cjs +1 -1
  7. package/dist/binding.d.ts +14 -14
  8. package/dist/binding.js +1 -1
  9. package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-CrPI9ZQc.d.ts} +85 -30
  10. package/dist/chunk-23MKR33J.js +4 -0
  11. package/dist/chunk-2DEY5NUC.cjs +32 -0
  12. package/dist/chunk-2DR4TH6B.js +1 -0
  13. package/dist/{chunk-ETDZFNMI.js → chunk-2F2UEAE2.js} +1 -1
  14. package/dist/chunk-2GPGAFOJ.cjs +5 -0
  15. package/dist/chunk-ALD626VU.cjs +2 -0
  16. package/dist/chunk-AU33YWEJ.js +236 -0
  17. package/dist/chunk-AXU63LYW.cjs +1 -0
  18. package/dist/chunk-CM5VZRBV.js +32 -0
  19. package/dist/chunk-D7FAFFTN.js +1 -0
  20. package/dist/{chunk-TJHE5EET.cjs → chunk-DYUVJNDD.cjs} +1 -1
  21. package/dist/chunk-ESYUKD5D.js +2 -0
  22. package/dist/chunk-F7TGQMVR.js +5 -0
  23. package/dist/chunk-FLW7KIQX.js +30 -0
  24. package/dist/chunk-JG4A6W6I.js +7 -0
  25. package/dist/chunk-JNGLSBPH.js +2 -0
  26. package/dist/chunk-KE6ZWRIY.cjs +236 -0
  27. package/dist/{chunk-L5TYBFDB.js → chunk-L3YXJDPX.js} +1 -1
  28. package/dist/chunk-LI42N7OW.cjs +4 -0
  29. package/dist/{chunk-ACLR4DMK.js → chunk-PLKDS4JT.js} +1 -1
  30. package/dist/{chunk-6UDJUI3W.cjs → chunk-PXMTQ73F.cjs} +1 -1
  31. package/dist/chunk-R4R3AAE4.js +1 -0
  32. package/dist/{chunk-OKMEMSKB.cjs → chunk-RFUNFTGV.cjs} +1 -1
  33. package/dist/chunk-SVM6PGMS.js +3 -0
  34. package/dist/chunk-SZURLHR3.cjs +3 -0
  35. package/dist/chunk-UYCGCVZ2.cjs +1 -0
  36. package/dist/chunk-X34QRAUU.cjs +1 -0
  37. package/dist/chunk-XNBYG4XJ.cjs +30 -0
  38. package/dist/chunk-ZDFJW5XS.cjs +2 -0
  39. package/dist/chunk-ZWO4JHNN.cjs +7 -0
  40. package/dist/collaboration/replication.cjs +1 -1
  41. package/dist/collaboration/replication.d.ts +13 -4
  42. package/dist/collaboration/replication.js +1 -1
  43. package/dist/collaboration.d.ts +3 -3
  44. package/dist/contracts/document.d.ts +3 -3
  45. package/dist/contracts/editor.d.ts +10 -10
  46. package/dist/contracts/interaction.d.ts +2 -2
  47. package/dist/contracts/modules.d.ts +12 -12
  48. package/dist/contracts/types.d.ts +4 -4
  49. package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-AqY5KpVx.d.ts} +2 -2
  50. package/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
  51. package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +2 -2
  52. package/dist/{document-protection-NaniLHWF.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
  53. package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CXYGYbB3.d.ts} +74 -4
  54. package/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
  55. package/dist/{editor-DZwOTmlR.d.ts → editor-B7OOAAie.d.ts} +85 -13
  56. package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +4 -4
  59. package/dist/editor.d.ts +215 -31
  60. package/dist/editor.js +1 -1
  61. package/dist/export.cjs +2 -2
  62. package/dist/export.d.ts +47 -12
  63. package/dist/export.js +2 -2
  64. package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.ts +38 -23
  67. package/dist/index.js +1 -1
  68. package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Ci_BTnSU.d.ts} +1 -1
  69. package/dist/layout.cjs +1 -1
  70. package/dist/layout.d.ts +174 -99
  71. package/dist/layout.js +1 -1
  72. package/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
  73. package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
  74. package/dist/output.cjs +1 -1
  75. package/dist/output.d.ts +11 -11
  76. package/dist/output.js +1 -1
  77. package/dist/{protocol-DKa4qt7F.d.ts → protocol-Cp_QzVxS.d.ts} +2 -2
  78. package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
  79. package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-OVusTS77.d.ts} +1 -1
  80. package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
  81. package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
  82. package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-B5JcIv9c.d.ts} +16 -9
  83. package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
  84. package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-DoK0lNjS.d.ts} +254 -43
  85. package/dist/store.cjs +1 -1
  86. package/dist/store.d.ts +510 -18
  87. package/dist/store.js +1 -1
  88. package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-Df4oY2u4.d.ts} +718 -252
  89. package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-DXhX1PE-.d.ts} +8 -3
  90. package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-CF2625mv.d.ts} +5 -5
  91. package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-CUojsaCr.d.ts} +1 -1
  92. package/licenses/ECMA-376.md +29 -0
  93. package/package.json +2 -2
  94. package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
  95. package/dist/chunk-25EXMBV2.cjs +0 -5
  96. package/dist/chunk-3IEXDEFH.cjs +0 -7
  97. package/dist/chunk-65XBN67F.cjs +0 -2
  98. package/dist/chunk-6NVZNB7O.cjs +0 -3
  99. package/dist/chunk-B2BEELUE.js +0 -1
  100. package/dist/chunk-DDFHKQFU.js +0 -30
  101. package/dist/chunk-E4IAO4CY.cjs +0 -2
  102. package/dist/chunk-FDSL5OJU.cjs +0 -30
  103. package/dist/chunk-FS7CMYLT.js +0 -4
  104. package/dist/chunk-GDS24SZN.js +0 -30
  105. package/dist/chunk-GIY6NT2X.js +0 -5
  106. package/dist/chunk-GWM3AKUD.js +0 -18
  107. package/dist/chunk-HDOXACHP.js +0 -2
  108. package/dist/chunk-IILEENID.js +0 -1
  109. package/dist/chunk-MNF2K7NN.cjs +0 -30
  110. package/dist/chunk-O324RB6R.cjs +0 -1
  111. package/dist/chunk-QXJKYNYZ.js +0 -1
  112. package/dist/chunk-RALTVLB6.js +0 -2
  113. package/dist/chunk-SRVKFUFI.js +0 -3
  114. package/dist/chunk-TELQ52LG.cjs +0 -1
  115. package/dist/chunk-UMMRURPE.js +0 -7
  116. package/dist/chunk-XJYZVGQR.cjs +0 -1
  117. package/dist/chunk-ZGTIE3QJ.cjs +0 -4
  118. package/dist/chunk-ZOZI27AW.cjs +0 -18
  119. package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
package/README.md CHANGED
@@ -30,7 +30,7 @@ Node.js requires `^20.16.0 || >=22.3.0`.
30
30
  ## Features
31
31
 
32
32
  - [Read and save DOCX files](https://www.docx-editor.dev/docs/2.x/guides/loading-and-saving).
33
- - [Lay out and render document pages](https://www.docx-editor.dev/docs/2.x/word-fidelity).
33
+ - [Lay out and render document pages](https://www.docx-editor.dev/docs/2.x/word-fidelity). Charts, SmartArt saved without its drawing, shape effects, and WordArt need [`@docx-editor.dev/pro/drawing`](https://www.docx-editor.dev/docs/2.x/pro/drawing).
34
34
  - [Build an editor with shared commands and controls](https://www.docx-editor.dev/docs/2.x/guides/chrome-slots).
35
35
  - [Configure fonts for text measurement](https://www.docx-editor.dev/docs/2.x/guides/fonts).
36
36
 
@@ -19,6 +19,7 @@ This package also ships prebuilt third-party assets that are not esbuild inputs,
19
19
  so they cannot appear below. Their licenses travel with the package in
20
20
  `licenses/`:
21
21
 
22
+ - `licenses/ECMA-376.md`
22
23
  - `licenses/HarfBuzz-COPYING.txt`
23
24
 
24
25
  ## Bundled packages
@@ -1 +1 @@
1
- 'use strict';var chunk3IEXDEFH_cjs=require('./chunk-3IEXDEFH.cjs');require('./chunk-TELQ52LG.cjs'),require('./chunk-FDSL5OJU.cjs'),require('./chunk-6UDJUI3W.cjs'),require('./chunk-OKMEMSKB.cjs'),require('./chunk-TJHE5EET.cjs'),require('./chunk-65XBN67F.cjs'),require('./chunk-O324RB6R.cjs'),require('./chunk-ZOZI27AW.cjs');Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.f}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.e}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.g}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.d}});Object.defineProperty(exports,"SERVER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.o}});Object.defineProperty(exports,"byteSizeBucket",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.w}});Object.defineProperty(exports,"countBucket",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.x}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.m}});Object.defineProperty(exports,"createDiagnosticEmitter",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.y}});Object.defineProperty(exports,"createServerAutomationHost",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.p}});Object.defineProperty(exports,"diagnosticCause",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.A}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.z}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.s}});Object.defineProperty(exports,"diagnosticErrorName",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.C}});Object.defineProperty(exports,"documentPartKind",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.D}});Object.defineProperty(exports,"exceptionCause",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.B}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.r}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.i}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.h}});Object.defineProperty(exports,"openDiagnosticCode",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.t}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.k}});Object.defineProperty(exports,"reviewDiagnosticCode",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.v}});Object.defineProperty(exports,"storeEditDiagnosticCode",{enumerable:true,get:function(){return chunk3IEXDEFH_cjs.u}});
1
+ 'use strict';var chunkZWO4JHNN_cjs=require('./chunk-ZWO4JHNN.cjs');require('./chunk-AXU63LYW.cjs'),require('./chunk-2DEY5NUC.cjs'),require('./chunk-PXMTQ73F.cjs'),require('./chunk-RFUNFTGV.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-X34QRAUU.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.g}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.f}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.h}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.e}});Object.defineProperty(exports,"SERVER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.p}});Object.defineProperty(exports,"byteSizeBucket",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.y}});Object.defineProperty(exports,"countBucket",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.z}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.n}});Object.defineProperty(exports,"createDiagnosticEmitter",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.A}});Object.defineProperty(exports,"createServerAutomationHost",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.q}});Object.defineProperty(exports,"diagnosticCause",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.C}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.B}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.t}});Object.defineProperty(exports,"diagnosticErrorName",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.F}});Object.defineProperty(exports,"documentPartKind",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.G}});Object.defineProperty(exports,"exceptionCause",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.E}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.s}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.j}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.i}});Object.defineProperty(exports,"openDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.u}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.l}});Object.defineProperty(exports,"reviewCodeOfSkip",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.w}});Object.defineProperty(exports,"reviewDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.x}});Object.defineProperty(exports,"reviewSkipOfReason",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.D}});Object.defineProperty(exports,"storeEditDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.v}});
@@ -11,19 +11,18 @@
11
11
  * @packageDocumentation
12
12
  * @public
13
13
  */
14
- import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-DKa4qt7F.js';
15
- export { c as AutomationAlignment, d as AutomationAuthoringOperation, e as AutomationBatchRequest, f as AutomationBatchResponse, g as AutomationChangeEvent, h as AutomationContentControlLock, i as AutomationContentControlRangeLocation, j as AutomationContentControlScope, k as AutomationContentControlSubtype, l as AutomationContentControlValue, m as AutomationCustomNodePayload, n as AutomationEndpoint, o as AutomationError, p as AutomationErrorCode, q as AutomationFontRead, r as AutomationFontWrite, s as AutomationHandle, t as AutomationHandleRef, u as AutomationInlinePictureRead, v as AutomationInlinePictureWrite, w as AutomationListBullet, x as AutomationListLevelFormat, y as AutomationListNumbering, z as AutomationObjectKind, B as AutomationOperationKind, C as AutomationOperationResult, D as AutomationPageOrientation, E as AutomationPageSetupRead, F as AutomationPageSetupWrite, G as AutomationParagraphFormatRead, H as AutomationParagraphFormatWrite, I as AutomationParagraphRef, J as AutomationPoint, K as AutomationReadingOrder, L as AutomationSaveResult, M as AutomationSearchOptions, N as AutomationSelectionMode, O as AutomationShapeRead, P as AutomationShapeType, Q as AutomationSpan, R as AutomationSpanRef, S as AutomationTextProjection, T as AutomationUnsubscribe, U as AutomationValue } from './protocol-DKa4qt7F.js';
16
- import { c as HeaderFooterVariant, N as NoteKind, C as ContentLockPolicy } from './tree-package-store-CRHvMyNj.js';
17
- import { aD as OoxmlPackageLimits, aB as OoxmlPackageRejection } from './tree-op-types-C_S2niXW.js';
18
- export { aE as AutomationTableMutation, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal } from './tree-op-types-C_S2niXW.js';
19
- import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-BvN-WWst.js';
20
- import { H as HeadlessDocumentView } from './headless-document-view-Bcz9_Qva.js';
14
+ import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-Cp_QzVxS.js';
15
+ export { c as AutomationAlignment, d as AutomationAuthoringOperation, e as AutomationBatchRequest, f as AutomationBatchResponse, g as AutomationChangeEvent, h as AutomationContentControlLock, i as AutomationContentControlRangeLocation, j as AutomationContentControlScope, k as AutomationContentControlSubtype, l as AutomationContentControlValue, m as AutomationCustomNodePayload, n as AutomationEndpoint, o as AutomationError, p as AutomationErrorCode, q as AutomationFontRead, r as AutomationFontWrite, s as AutomationHandle, t as AutomationHandleRef, u as AutomationInlinePictureRead, v as AutomationInlinePictureWrite, w as AutomationListBullet, x as AutomationListLevelFormat, y as AutomationListNumbering, z as AutomationObjectKind, B as AutomationOperationKind, C as AutomationOperationResult, D as AutomationPageOrientation, E as AutomationPageSetupRead, F as AutomationPageSetupWrite, G as AutomationParagraphFormatRead, H as AutomationParagraphFormatWrite, I as AutomationParagraphRef, J as AutomationPoint, K as AutomationReadingOrder, L as AutomationSaveResult, M as AutomationSearchOptions, N as AutomationSelectionMode, O as AutomationShapeRead, P as AutomationShapeType, Q as AutomationSpan, R as AutomationSpanRef, S as AutomationTextProjection, T as AutomationUnsubscribe, U as AutomationValue } from './protocol-Cp_QzVxS.js';
16
+ import { H as HeaderFooterVariant, N as NoteKind, C as ContentLockPolicy } from './tree-package-store-DXhX1PE-.js';
17
+ import { az as OoxmlPackageLimits, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
18
+ export { aB as AutomationTableMutation, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal } from './tree-op-types-Df4oY2u4.js';
19
+ import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-DoK0lNjS.js';
20
+ import { H as HeadlessDocumentView } from './drawing-graphic-kind-CXYGYbB3.js';
21
21
  import { CollaborationModuleContribution } from './collaboration.js';
22
- import { B as ByteSizeBucket, b as CountBucket, f as DocumentOpenDiagnosticCode, j as ReviewDiagnosticCode, E as EditDiagnosticCode } from './diagnostic-hints-DK8-V0fk.js';
23
- export { C as CollaborationDiagnosticCode, c as CustomNodeDiagnosticCode, d as DiagnosticCode, D as DiagnosticErrorName, e as DiagnosticExplanation, a as DocumentPartKind, g as DocumentSaveDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, R as ReviewChangeKind, k as ReviewOperation, l as diagnosticCodes, m as explainDiagnostic } from './diagnostic-hints-DK8-V0fk.js';
24
- export { a as diagnosticCause, d as diagnosticCauses, b as diagnosticErrorName, c as documentPartKind, e as exceptionCause } from './diagnostic-context-BtDUY3v2.js';
25
- export { c as HistoryGroup, H as HistoryGroupOutcome } from './editor-scope-B3L-1ALc.js';
26
- import './revision-projection-Cn6rZJ7H.js';
22
+ export { D as DiagnosticEmitter, a as DiagnosticPayload, b as byteSizeBucket, c as countBucket, e as createDiagnosticEmitter, f as diagnosticCause, d as diagnosticCauses, g as diagnosticErrorName, h as documentPartKind, i as exceptionCause, o as openDiagnosticCode, r as reviewCodeOfSkip, j as reviewDiagnosticCode, k as reviewSkipOfReason, s as storeEditDiagnosticCode } from './diagnostic-context-CuzhOX0g.js';
23
+ export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, a as CountBucket, b as CustomNodeDiagnosticCode, D as DiagnosticCode, c as DiagnosticErrorName, d as DiagnosticExplanation, e as DocumentOpenDiagnosticCode, f as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, R as ReviewDiagnosticCode, k as ReviewOperation, l as diagnosticCodes, m as explainDiagnostic } from './diagnostic-hints-BtCaCqQC.js';
24
+ export { c as HistoryGroup, H as HistoryGroupOutcome } from './editor-scope-CA6egMaK.js';
25
+ import './revision-projection-OVusTS77.js';
27
26
  import './collaboration/replication.js';
28
27
  import './failure-6KGFrDO9.js';
29
28
 
@@ -164,42 +163,5 @@ interface ServerAutomationHostOptions {
164
163
  */
165
164
  declare function createServerAutomationHost(bytes: Uint8Array, options?: ServerAutomationHostOptions): ServerAutomationHostResult;
166
165
 
167
- /**
168
- * The public code for a refused open. `too-large` is the one reason two layers share: the
169
- * archive reports it WITH the limit it crossed, a single XML part reports it without one.
170
- *
171
- * @public
172
- */
173
- declare function openDiagnosticCode(reason: string, limit?: string): DocumentOpenDiagnosticCode;
174
- /**
175
- * The public code for a store or host refusal reason, or `null` for a reason this table does
176
- * not know (a sentence, a binding reason). `unsupported-revision:<kind>` counts as
177
- * `unsupported-revision`, except `unsupported-revision:foreign-insertion`, which has its own
178
- * code.
179
- *
180
- * @public
181
- */
182
- declare function storeEditDiagnosticCode(reason: string): EditDiagnosticCode | null;
183
- /** The public code for a skipped tracked change, or null for a reason with no public code. */
184
- declare function reviewDiagnosticCode(reason: string): ReviewDiagnosticCode | null;
185
- /** The power-of-two bucket of a byte size. */
186
- declare function byteSizeBucket(bytes: number): ByteSizeBucket;
187
- /** The order-of-magnitude bucket of a count. */
188
- declare function countBucket(count: number): CountBucket;
189
- /** A diagnostic without the fields the emitter adds. Distributes over the union. */
190
- type DiagnosticPayload<T> = T extends unknown ? Omit<T, 'schemaVersion' | 'editorSessionId' | 'time'> : never;
191
- /** One delivery path for one editor or runtime instance. */
192
- interface DiagnosticEmitter<E> {
193
- /** Random for this instance and never stored. */
194
- readonly editorSessionId: string;
195
- /** Stamp the payload and hand it to every listener. A listener that throws is ignored. */
196
- deliver(payload: DiagnosticPayload<E>): void;
197
- }
198
- /**
199
- * A delivery path over `listeners`, read at each delivery so a later listener is heard. Generic
200
- * over the event union, which the editor contracts own: this lane never names them.
201
- */
202
- declare function createDiagnosticEmitter<E>(listeners: () => Iterable<(event: E) => unknown>, now?: () => number): DiagnosticEmitter<E>;
203
-
204
- export { AUTOMATION_COMMAND_OPERATIONS, AUTOMATION_QUERY_OPERATIONS, AUTOMATION_SOLITARY_OPERATIONS, AutomationCapabilities, AutomationHost, AutomationOperation, ByteSizeBucket, ContentLockPolicy, CountBucket, DocumentOpenDiagnosticCode, EditDiagnosticCode, HEADER_FOOTER_VARIANTS, ReviewDiagnosticCode, SERVER_AUTOMATION_CAPABILITIES, byteSizeBucket, countBucket, createAutomationPaginationProvider, createDiagnosticEmitter, createServerAutomationHost, isAutomationCommand, isSolitaryAutomationCommand, openDiagnosticCode, paginationSnapshotOf, reviewDiagnosticCode, storeEditDiagnosticCode };
205
- export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationShapeOwnerStory, AutomationStoryId, DiagnosticEmitter, DiagnosticPayload, ServerAutomationHostOptions, ServerAutomationHostRejection, ServerAutomationHostResult };
166
+ export { AUTOMATION_COMMAND_OPERATIONS, AUTOMATION_QUERY_OPERATIONS, AUTOMATION_SOLITARY_OPERATIONS, AutomationCapabilities, AutomationHost, AutomationOperation, ContentLockPolicy, HEADER_FOOTER_VARIANTS, SERVER_AUTOMATION_CAPABILITIES, createAutomationPaginationProvider, createServerAutomationHost, isAutomationCommand, isSolitaryAutomationCommand, paginationSnapshotOf };
167
+ export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationShapeOwnerStory, AutomationStoryId, ServerAutomationHostOptions, ServerAutomationHostRejection, ServerAutomationHostResult };
@@ -1 +1 @@
1
- export{f as AUTOMATION_COMMAND_OPERATIONS,e as AUTOMATION_QUERY_OPERATIONS,g as AUTOMATION_SOLITARY_OPERATIONS,d as HEADER_FOOTER_VARIANTS,o as SERVER_AUTOMATION_CAPABILITIES,w as byteSizeBucket,x as countBucket,m as createAutomationPaginationProvider,y as createDiagnosticEmitter,p as createServerAutomationHost,A as diagnosticCause,z as diagnosticCauses,s as diagnosticCodes,C as diagnosticErrorName,D as documentPartKind,B as exceptionCause,r as explainDiagnostic,i as isAutomationCommand,h as isSolitaryAutomationCommand,t as openDiagnosticCode,k as paginationSnapshotOf,v as reviewDiagnosticCode,u as storeEditDiagnosticCode}from'./chunk-UMMRURPE.js';import'./chunk-QXJKYNYZ.js';import'./chunk-DDFHKQFU.js';import'./chunk-ETDZFNMI.js';import'./chunk-L5TYBFDB.js';import'./chunk-ACLR4DMK.js';import'./chunk-HDOXACHP.js';import'./chunk-IILEENID.js';import'./chunk-GWM3AKUD.js';
1
+ export{g as AUTOMATION_COMMAND_OPERATIONS,f as AUTOMATION_QUERY_OPERATIONS,h as AUTOMATION_SOLITARY_OPERATIONS,e as HEADER_FOOTER_VARIANTS,p as SERVER_AUTOMATION_CAPABILITIES,y as byteSizeBucket,z as countBucket,n as createAutomationPaginationProvider,A as createDiagnosticEmitter,q as createServerAutomationHost,C as diagnosticCause,B as diagnosticCauses,t as diagnosticCodes,F as diagnosticErrorName,G as documentPartKind,E as exceptionCause,s as explainDiagnostic,j as isAutomationCommand,i as isSolitaryAutomationCommand,u as openDiagnosticCode,l as paginationSnapshotOf,w as reviewCodeOfSkip,x as reviewDiagnosticCode,D as reviewSkipOfReason,v as storeEditDiagnosticCode}from'./chunk-JG4A6W6I.js';import'./chunk-R4R3AAE4.js';import'./chunk-CM5VZRBV.js';import'./chunk-2F2UEAE2.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-2DR4TH6B.js';import'./chunk-AU33YWEJ.js';
package/dist/binding.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunk25EXMBV2_cjs=require('./chunk-25EXMBV2.cjs');require('./chunk-XJYZVGQR.cjs'),require('./chunk-6UDJUI3W.cjs'),require('./chunk-OKMEMSKB.cjs'),require('./chunk-TJHE5EET.cjs'),require('./chunk-65XBN67F.cjs'),require('./chunk-O324RB6R.cjs'),require('./chunk-ZOZI27AW.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.n}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.o}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.l}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunk25EXMBV2_cjs.e}});
1
+ 'use strict';var chunk2GPGAFOJ_cjs=require('./chunk-2GPGAFOJ.cjs');require('./chunk-UYCGCVZ2.cjs'),require('./chunk-PXMTQ73F.cjs'),require('./chunk-RFUNFTGV.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-X34QRAUU.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.n}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.o}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.l}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.e}});
package/dist/binding.d.ts CHANGED
@@ -9,28 +9,28 @@
9
9
  * @public
10
10
  */
11
11
  import { Node, Schema } from 'prosemirror-model';
12
- import { az as OoxmlProperty, aA as OoxmlPackageResult, aB as OoxmlPackageRejection } from './tree-op-types-C_S2niXW.js';
13
- import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-D1awo_dA.js';
14
- export { D as DocumentStyleEntry, M as MapResult, P as PackageWriteOptions, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-D1awo_dA.js';
15
- import { C as ContentLockPolicy } from './tree-package-store-CRHvMyNj.js';
16
- export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-CRHvMyNj.js';
12
+ import { aC as OoxmlProperty, aD as OoxmlPackageResult, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
13
+ import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-CF2625mv.js';
14
+ export { D as DocumentStyleEntry, M as MapResult, P as PackageWriteOptions, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-CF2625mv.js';
15
+ import { C as ContentLockPolicy } from './tree-package-store-DXhX1PE-.js';
16
+ export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-DXhX1PE-.js';
17
17
  import { ReviewModuleContribution } from './contracts/modules.js';
18
18
  import { EditorView } from 'prosemirror-view';
19
- import './editor-scope-B3L-1ALc.js';
20
- import './custom-node-writes-CLJKGD9t.js';
21
- import './headless-document-view-Bcz9_Qva.js';
19
+ import './editor-scope-CA6egMaK.js';
20
+ import './custom-node-writes-AqY5KpVx.js';
21
+ import './drawing-graphic-kind-CXYGYbB3.js';
22
22
  import './collaboration/replication.js';
23
- import './revision-projection-Cn6rZJ7H.js';
23
+ import './revision-projection-OVusTS77.js';
24
24
  import './contracts/types.js';
25
25
  import './failure-6KGFrDO9.js';
26
- import './document-protection-NaniLHWF.js';
27
- import './editor-DZwOTmlR.js';
26
+ import './document-protection-BvbpSXbQ.js';
27
+ import './editor-B7OOAAie.js';
28
28
  import './editor-fonts-D_-vjuJi.js';
29
- import './diagnostic-hints-DK8-V0fk.js';
29
+ import './diagnostic-hints-BtCaCqQC.js';
30
30
  import './contracts/document.js';
31
31
  import './contracts/interaction.js';
32
- import './semantic-interaction-CJoHLoOl.js';
33
- import './semantic-records-BvN-WWst.js';
32
+ import './semantic-interaction-BbA4dgEo.js';
33
+ import './semantic-records-DoK0lNjS.js';
34
34
  import './collaboration.js';
35
35
 
36
36
  /** Attributes carried by a projected paragraph. */
package/dist/binding.js CHANGED
@@ -1 +1 @@
1
- export{n as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,o as mountTreeSurface,l as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-GIY6NT2X.js';import'./chunk-B2BEELUE.js';import'./chunk-ETDZFNMI.js';import'./chunk-L5TYBFDB.js';import'./chunk-ACLR4DMK.js';import'./chunk-HDOXACHP.js';import'./chunk-IILEENID.js';import'./chunk-GWM3AKUD.js';
1
+ export{n as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,o as mountTreeSurface,l as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-F7TGQMVR.js';import'./chunk-D7FAFFTN.js';import'./chunk-2F2UEAE2.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-2DR4TH6B.js';import'./chunk-AU33YWEJ.js';
@@ -1,32 +1,77 @@
1
- import { c as FontConfigurationFragment, g as FontResolver, M as MarkedFontResolver, f as FontResolutionRequest } from './font-resolver-BlQNGdvR.js';
1
+ import { d as FontOrigin, M as MarkedFontResolver, c as FontConfigurationFragment, g as FontResolver, f as FontResolutionRequest } from './font-resolver-Bm9XqTNO.js';
2
2
  import { F as FontConfiguration, a as FontFaceRequest, b as FontSource } from './editor-fonts-D_-vjuJi.js';
3
- import { V as ViewScope, a as EditorExecOptions } from './editor-scope-B3L-1ALc.js';
4
- import { au as TreeDocOp, b0 as TextFormFieldRange, b1 as TextFormFieldOptions, ad as ImageDecodePort, ao as Unsubscribe, E as ExecResult, aa as DrawingPositionInput, b2 as DrawingTransform, G as ParagraphTabStop, y as IndentFormatting, F as ParagraphFlags, A as ParagraphDisagreements, aJ as DrawingTreeDocOp, an as SupportedImageMime, am as SelectionPin, a5 as OoxmlPackage, g as ReviewRevisionKind, aH as PackageWatermarkWrite, ag as ImageWrapTarget } from './tree-op-types-C_S2niXW.js';
5
- import { e as BookmarkStory, u as DocumentSource, aP as ZoomMode, J as EditorFontError, x as Editor, b as EditorCommand, C as CanResult, aw as SelectedImageState, _ as FormatPainterSurfaceState, f as BookmarkSummary, au as ScrollPlacement, aN as TrackedChangePredicate, aM as TrackedChangeFilterMode, a9 as ImageContext, aA as TableBorderEdgeTarget, aB as TableBorderSpec, aC as TableBorderStyle, aH as TableContext } from './editor-DZwOTmlR.js';
6
- import { T as TextMeasurer, f as UnsupportedElementRule, S as SemanticLayout, C as ContentControlBoundaryRecord, t as SectionProperties } from './semantic-records-BvN-WWst.js';
7
- import { a as ReviewDisplayMode, d as ResolvedRevisionMarkup, k as RevisionMarkupOptions, g as RevisionMarkupChromeHandlers } from './revision-projection-Cn6rZJ7H.js';
8
- import { F as FieldResultsMode, C as ContentLockPolicy, I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, i as ImageIntentResult } from './tree-package-store-CRHvMyNj.js';
3
+ import { V as ViewScope, a as EditorExecOptions } from './editor-scope-CA6egMaK.js';
4
+ import { au as TreeDocOp, aU as TextFormFieldRange, aV as TextFormFieldOptions, ad as ImageDecodePort, ao as Unsubscribe, E as ExecResult, aa as DrawingPositionInput, aW as DrawingTransform, G as ParagraphTabStop, y as IndentFormatting, F as ParagraphFlags, A as ParagraphDisagreements, aJ as DrawingTreeDocOp, an as SupportedImageMime, am as SelectionPin, a5 as OoxmlPackage, g as ReviewRevisionKind, aH as PackageWatermarkWrite, ag as ImageWrapTarget } from './tree-op-types-Df4oY2u4.js';
5
+ import { e as BookmarkStory, u as DocumentSource, aQ as ZoomMode, J as EditorFontError, x as Editor, b as EditorCommand, C as CanResult, ax as SelectedImageState, _ as FormatPainterSurfaceState, f as BookmarkSummary, av as ScrollPlacement, aO as TrackedChangePredicate, aN as TrackedChangeFilterMode, a9 as ImageContext, aB as TableBorderEdgeTarget, aC as TableBorderSpec, aD as TableBorderStyle, aI as TableContext } from './editor-B7OOAAie.js';
6
+ import { T as TextMeasurer, f as UnsupportedElementRule, S as SemanticLayout, C as ContentControlBoundaryRecord, t as SectionProperties } from './semantic-records-DoK0lNjS.js';
7
+ import { a as ReviewDisplayMode, d as ResolvedRevisionMarkup, k as RevisionMarkupOptions, g as RevisionMarkupChromeHandlers } from './revision-projection-OVusTS77.js';
8
+ import { F as FieldResultsMode, C as ContentLockPolicy, I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, i as ImageIntentResult } from './tree-package-store-DXhX1PE-.js';
9
9
  import { ReviewPaneOptions } from './contracts/types.js';
10
10
  import { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
11
- import { F as FieldShadingMode, c as RevisionStyles, f as DrawingPaintStrings, R as ReviewAuthorInfo, b as RevisionAuthorStyle } from './semantic-paint-BPw_n0li.js';
12
- import { ReviewModuleContribution, EditorModule } from './contracts/modules.js';
13
- import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-CJoHLoOl.js';
14
11
  import { CollaborationModuleContribution, EditorCollaborationSession, CollaborationRemoteSelection } from './collaboration.js';
15
- import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-Ds5R2_3F.js';
16
- import { B as BookmarkIndex } from './custom-node-writes-CLJKGD9t.js';
17
- import { C as CellSelection } from './semantic-cell-selection-BaUR0iJ4.js';
18
- import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-D1awo_dA.js';
12
+ import { F as FieldShadingMode, c as RevisionStyles, f as DrawingPaintStrings, R as ReviewAuthorInfo, b as RevisionAuthorStyle } from './semantic-paint-B5JcIv9c.js';
13
+ import { ReviewModuleContribution, EditorModule } from './contracts/modules.js';
14
+ import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-BbA4dgEo.js';
15
+ import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-DCIJUKIy.js';
16
+ import { B as BookmarkIndex } from './custom-node-writes-AqY5KpVx.js';
17
+ import { C as CellSelection } from './semantic-cell-selection-CoI5hHBm.js';
18
+ import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-CF2625mv.js';
19
19
  import { a as CollaborationStatus } from './failure-6KGFrDO9.js';
20
20
 
21
+ /**
22
+ * Load an origin's faces after the document first paints, instead of before.
23
+ *
24
+ * The editor opens the document with the faces the other origins supply, then lays it out
25
+ * again when these arrive. Use it for faces that are large or slow to fetch. Leave an origin
26
+ * unwrapped to install its faces with the document's other waiting fonts: a large document
27
+ * (over about 512 KB of uncompressed content) waits up to 2 seconds for them before its
28
+ * first paint.
29
+ *
30
+ * ```ts
31
+ * const fonts = [packagedFonts(), deferFonts(myBrandFonts())];
32
+ * ```
33
+ *
34
+ * A document export that receives this origin waits for its faces, so exported pages use them.
35
+ * The faces never change the configuration settings, such as `defaultFont` or `maxFontBytes`:
36
+ * those come from the origins that answer at once, so the document does not change its
37
+ * default font after it paints.
38
+ *
39
+ * @public
40
+ */
41
+ declare function deferFonts(origin: FontOrigin): MarkedFontResolver;
42
+
43
+ /**
44
+ * How a blank document starts.
45
+ *
46
+ * @public
47
+ */
48
+ interface BlankDocumentOptions {
49
+ /**
50
+ * `'rtl'` starts the document right to left: its paragraphs (`w:bidi` in the paragraph
51
+ * defaults) and its section (`w:sectPr/w:bidi`) read right to left, as a new document does
52
+ * when a right-to-left editing language is the default. `'ltr'` is the default.
53
+ */
54
+ readonly direction?: 'ltr' | 'rtl';
55
+ /**
56
+ * The language of right-to-left and complex-script text, as a BCP 47 tag such as `ar-SA`
57
+ * or `he-IL`, written as the run defaults' `w:lang/@w:bidi`. Layout follows it: European
58
+ * digits in an Arabic-script language draw in the Latin face. A value that is not a
59
+ * language tag is ignored.
60
+ */
61
+ readonly bidiLanguage?: string;
62
+ }
21
63
  /**
22
64
  * A blank document, freshly zipped per call (the caller may hand the
23
65
  * bytes to a loader that takes ownership). Calibri 11pt and Word's Normal paragraph
24
66
  * spacing are authored in `w:docDefaults`, Word's built-in style gallery in `styles.xml`,
25
67
  * and US Letter geometry in the section. Word opens the saved file.
26
68
  *
69
+ * A right-to-left interface usually wants `{ direction: 'rtl', bidiLanguage: 'ar-SA' }` (or
70
+ * the reader's own language), so the first paragraph is ready for right-to-left typing.
71
+ *
27
72
  * @public
28
73
  */
29
- declare function blankDocumentBytes(): Uint8Array;
74
+ declare function blankDocumentBytes(options?: BlankDocumentOptions): Uint8Array;
30
75
 
31
76
  type TableCommandSelectionPolicy = {
32
77
  readonly kind: 'preserveSelection';
@@ -1243,6 +1288,11 @@ interface ImageOverlayScrollPort {
1243
1288
  interface SelectedDrawingOverlayTarget {
1244
1289
  /** Keep the text area available for pointer editing through the frame. */
1245
1290
  readonly textbox?: boolean;
1291
+ /**
1292
+ * False for a text box whose text takes no caret: rotated or vertical text, or a story
1293
+ * holding a table. Absent for a drawing that is not a text box.
1294
+ */
1295
+ readonly textEditable?: boolean;
1246
1296
  readonly id: string;
1247
1297
  readonly pageIndex: number;
1248
1298
  readonly x: number;
@@ -1987,11 +2037,11 @@ interface PaginatedSurface {
1987
2037
  */
1988
2038
  adjustIndent(direction: 'increase' | 'decrease'): boolean;
1989
2039
  /**
1990
- * Tab (`increase`) or Shift+Tab (`decrease`) over a selection outside a list: change the
1991
- * indent and keep the text.
2040
+ * Tab (`increase`) or Shift+Tab (`decrease`) over a selection outside a list and outside a
2041
+ * table cell (the key moves between cells there): change the indent and keep the text.
1992
2042
  *
1993
- * A selection over two or more paragraphs, or a cell rectangle, steps the left indent of
1994
- * each paragraph. A selection in one paragraph that starts at the paragraph start, whole or
2043
+ * A selection over two or more paragraphs, or a cell rectangle (only from a host calling
2044
+ * this directly), steps the left indent of each paragraph. A selection in one paragraph that starts at the paragraph start, whole or
1995
2045
  * partial, works on the first line: Tab sets a first-line indent of one default tab stop
1996
2046
  * (`w:defaultTabStop`), or steps the left indent when the first line already has that
1997
2047
  * indent or more, or a hanging indent. Shift+Tab clears a first-line indent that the
@@ -2554,14 +2604,14 @@ interface PaginatedSurface {
2554
2604
  selectedText(): string;
2555
2605
  /**
2556
2606
  * Every clipboard flavour for the current selection: plain text, and the interop HTML
2557
- * carrying the embedded fragment when the selection is a body-story range. A cell
2558
- * rectangle answers grid text plus a flattened table; `html` is null where only plain
2559
- * text should be written. Unsupported object selections return a refusal reason.
2607
+ * carrying the embedded fragment when the selection is a body-story range. A cell rectangle
2608
+ * answers grid text plus a flattened table; `html` is null where only plain text should be
2609
+ * written. A chart refuses as `'chart-content'`, another object as `'unsupported-content'`.
2560
2610
  */
2561
2611
  copyFlavours(): {
2562
2612
  readonly text: string;
2563
2613
  readonly html: string | null;
2564
- readonly reason?: 'unsupported-content';
2614
+ readonly reason?: 'unsupported-content' | 'chart-content';
2565
2615
  };
2566
2616
  /**
2567
2617
  * Route one paste payload by fidelity: embedded fragment, then external HTML, then
@@ -3804,15 +3854,20 @@ declare function chromeSlotId(group: {
3804
3854
  * @public
3805
3855
  */
3806
3856
  declare function defaultChromeGroups(): readonly ChromeGroup[];
3857
+ /** Options for {@link formattingBarChromeGroups}. @public */
3858
+ interface FormattingBarOptions {
3859
+ /** Show `direction.ltr` and `direction.rtl` after alignment, as for a right-to-left UI. */
3860
+ readonly direction?: boolean;
3861
+ }
3807
3862
  /**
3808
- * The formatting-bar groups for one editor snapshot: the default bar, plus the
3809
- * contextual `image` group when a drawing is selected. Insertion without a selection
3810
- * lives in the packaged Insert menu (`CHROME_MENUS`), not in the bar — a host that wants
3811
- * a bar button places `DocxEditor.Toolbar.ImageInsert` itself.
3863
+ * The formatting-bar groups for one editor snapshot: the default bar, the contextual `image`
3864
+ * group when a drawing is selected, and the direction group when `options.direction` asks.
3865
+ * Insertion without a selection lives in the packaged Insert menu (`CHROME_MENUS`), not in
3866
+ * the bar — a host that wants a bar button places `DocxEditor.Toolbar.ImageInsert` itself.
3812
3867
  *
3813
3868
  * @public
3814
3869
  */
3815
- declare function formattingBarChromeGroups(image: ImageContext | null): readonly ChromeGroup[];
3870
+ declare function formattingBarChromeGroups(image: ImageContext | null, options?: FormattingBarOptions): readonly ChromeGroup[];
3816
3871
 
3817
3872
  /**
3818
3873
  * The menu bar the chrome shows above the toolbar, in bar order: File, Format, Insert, Review,
@@ -4244,5 +4299,5 @@ interface ChromePrintJob {
4244
4299
  */
4245
4300
  declare function runChromePrint(editor: Pick<Editor, 'save'> & Partial<Pick<Editor, 'snapshot'>>, handlers?: ChromeExportHandlers, container?: Document | Element): Promise<ChromePrintJob>;
4246
4301
 
4247
- export { blankDocumentBytes as $, CHROME_GROUPS as C, bindHistoryGroup as _, chromeMenuSlots as a0, commandForSlot as a1, commandForSlotValue as a2, createDocxEditor as a3, createFontSource as a4, customFonts as a5, isChromePrintShortcut as a6, loadFonts as a7, runChromeExport as a8, runChromePrint as a9, TABLE_BORDER_STYLE_OPTIONS as aR, TABLE_BORDER_TARGET_OPTIONS as aS, TABLE_BORDER_WIDTH_OPTIONS as aT, TABLE_CHROME_SLOT_IDS as aU, runToolbarCommand as aa, toolbarCommandState as ab, CHROME_UNAVAILABLE_KEY as aj, DEFAULT_TABLE_CHROME_DRAFT as ap, EMU_PER_POINT as ar, IMAGE_OVERLAY_NUDGE_PT as aw, IMAGE_OVERLAY_NUDGE_SHIFT_PT as ax, applyTableChromePick as b3, canExecuteImageCommand as b4, captureImageMutationPreconditions as b5, chromeControlCount as b6, chromeProbeForSlot as b7, chromeSlotId as b8, chromeSlotIsToggle as b9, selectedImageStateOf as bA, surfacePaintScale as bB, tableChromeIconPaths as bC, tableChromeLabelKeyForTarget as bD, tableChromeToolbarState as bE, tableChromeVisible as bF, tableCommandToolbarState as bG, toolbarCommandStates as bH, commandExecOptions as ba, commandForTableChromeSlotValue as bb, computeImageResizeResult as bc, computeMovedImagePosition as bd, computeResizedImageExtentEmu as be, createImageOverlayScrollPort as bf, cssPixelsToLayoutPoints as bg, defaultChromeGroups as bh, defaultTableLabel as bi, emuToOverlayPoints as bj, equationAtPosition as bk, executeImageCommand as bl, finalizeImageOverlayInteraction as bm, formattingBarChromeGroups as bn, isStaleImageInteractionCommit as bo, isTableChromeSlot as bp, layoutPointsToCssPixels as bq, overlayFrameToSheetCssPixels as br, overlayHostOrigin as bs, pointsToEmu as bt, probeTableChromeCommand as bu, resizePreservesAspect as bv, runSave as bw, runTableChromeCommand as bx, runTableCommand as by, selectedDrawingOverlayTargetOf as bz, CHROME_MENUS as c, ChromeExportError as d, ChromePrintError as o };
4248
- export type { AttachOptions as A, BookmarkChromeHandlers as B, DocxEditorConfig as D, EquationActivation as E, FontLoadFailure as F, FontLoadFailureReason as G, FontMeasurementState as H, FontUrlSource as I, GoToChromeHandlers as J, HistoryGroupBinding as K, HistoryGroupBindingOptions as L, HyperlinkActivation as M, HyperlinkChromeHandlers as N, InvalidTextFormFieldChromeHandlers as O, InvalidTextFormFieldSession as P, LoadFontsRequest as Q, LoadFontsResult as R, LockedControlNavigation as S, PopupChromeRegistrationOptions as T, SurfaceEquation as U, SurfaceHyperlink as V, TableChromeSlotId as W, ToolbarCommandState as X, ToolbarValueMap as Y, ToolbarValueSlot as Z, BookmarkMarkInfo as a, TableInteractionLabelKey as a$, ImageResizeHandle as aA, ImageResizeResult as aB, OpeningIndicatorHost as aC, OverlayFrameRect as aD, PaginatedSurfaceState as aE, ParagraphPropertyEdit as aF, RemoteCaretLabelAnchor as aG, RemoteCaretLabelHost as aH, ReviewWriteIntent as aI, RunTableChromeCommandResult as aJ, SectionAnchor as aK, SectionBreakInsertType as aL, SelectedDrawingOverlayTarget as aM, SurfaceInsertImageInput as aN, SurfaceNavigation as aO, SurfaceOverlayCoordinates as aP, SurfaceParagraphFormat as aQ, TableBorderStyleOption as aV, TableBorderTargetOption as aW, TableBorderTargetValue as aX, TableBorderWidthOption as aY, TableChromeDraft as aZ, TableChromePick as a_, PaginatedSurfaceOptions as ac, OpenPaginatedResult as ad, PaginatedSurface as ae, TableCommandPlan as af, SurfaceFormatting as ag, AnchorFrameOrigin as ah, BookmarkMarkOptionsSource as ai, ChromeControl as ak, ChromeControlId as al, ChromeControlState as am, ChromeGroup as an, ChromeGroupId as ao, DrawingSelectionIntent as aq, EditorCommandExecute as as, EquationOps as at, FinalizedImageOverlayInteraction as au, HyperlinkOps as av, ImageInteractionSession as ay, ImageOverlayScrollPort as az, BookmarkMarkOptions as b, TextFormFieldChromeHandlers as b0, TextFormFieldDialogSession as b1, ToolbarSlotValue as b2, ChromeExportFormat as e, ChromeExportHandlers as f, ChromeExportResult as g, ChromeExportView as h, ChromeMenu as i, ChromeMenuEntry as j, ChromeMenuId as k, ChromeMenuItemEntry as l, ChromeMenuSeparatorEntry as m, ChromeMenuSubmenuEntry as n, ChromePrintErrorCode as p, ChromePrintJob as q, ChromePrintOptions as r, ChromeSlotId as s, CommentDraftChromeHandlers as t, ContentControlWidgetChromeHandlers as u, ContentControlWidgetSession as v, CustomFontsOptions as w, CustomFontsResolver as x, DocxEditorInstance as y, EquationChromeHandlers as z };
4302
+ export { bindHistoryGroup as $, CHROME_GROUPS as C, blankDocumentBytes as a0, chromeMenuSlots as a1, commandForSlot as a2, commandForSlotValue as a3, createDocxEditor as a4, createFontSource as a5, customFonts as a6, deferFonts as a7, isChromePrintShortcut as a8, loadFonts as a9, IMAGE_OVERLAY_NUDGE_SHIFT_PT as aA, TABLE_BORDER_STYLE_OPTIONS as aU, TABLE_BORDER_TARGET_OPTIONS as aV, TABLE_BORDER_WIDTH_OPTIONS as aW, TABLE_CHROME_SLOT_IDS as aX, runChromeExport as aa, runChromePrint as ab, runToolbarCommand as ac, toolbarCommandState as ad, CHROME_UNAVAILABLE_KEY as al, DEFAULT_TABLE_CHROME_DRAFT as ar, EMU_PER_POINT as at, IMAGE_OVERLAY_NUDGE_PT as az, applyTableChromePick as b6, canExecuteImageCommand as b7, captureImageMutationPreconditions as b8, chromeControlCount as b9, runTableChromeCommand as bA, runTableCommand as bB, selectedDrawingOverlayTargetOf as bC, selectedImageStateOf as bD, surfacePaintScale as bE, tableChromeIconPaths as bF, tableChromeLabelKeyForTarget as bG, tableChromeToolbarState as bH, tableChromeVisible as bI, tableCommandToolbarState as bJ, toolbarCommandStates as bK, chromeProbeForSlot as ba, chromeSlotId as bb, chromeSlotIsToggle as bc, commandExecOptions as bd, commandForTableChromeSlotValue as be, computeImageResizeResult as bf, computeMovedImagePosition as bg, computeResizedImageExtentEmu as bh, createImageOverlayScrollPort as bi, cssPixelsToLayoutPoints as bj, defaultChromeGroups as bk, defaultTableLabel as bl, emuToOverlayPoints as bm, equationAtPosition as bn, executeImageCommand as bo, finalizeImageOverlayInteraction as bp, formattingBarChromeGroups as bq, isStaleImageInteractionCommit as br, isTableChromeSlot as bs, layoutPointsToCssPixels as bt, overlayFrameToSheetCssPixels as bu, overlayHostOrigin as bv, pointsToEmu as bw, probeTableChromeCommand as bx, resizePreservesAspect as by, runSave as bz, CHROME_MENUS as d, ChromeExportError as e, ChromePrintError as p };
4303
+ export type { AttachOptions as A, BlankDocumentOptions as B, DocxEditorConfig as D, EquationActivation as E, EquationChromeHandlers as F, FontLoadFailure as G, FontLoadFailureReason as H, FontMeasurementState as I, FontUrlSource as J, GoToChromeHandlers as K, HistoryGroupBinding as L, HistoryGroupBindingOptions as M, HyperlinkActivation as N, HyperlinkChromeHandlers as O, InvalidTextFormFieldChromeHandlers as P, InvalidTextFormFieldSession as Q, LoadFontsRequest as R, LoadFontsResult as S, LockedControlNavigation as T, PopupChromeRegistrationOptions as U, SurfaceEquation as V, SurfaceHyperlink as W, TableChromeSlotId as X, ToolbarCommandState as Y, ToolbarValueMap as Z, ToolbarValueSlot as _, BookmarkChromeHandlers as a, TableBorderWidthOption as a$, ImageInteractionSession as aB, ImageOverlayScrollPort as aC, ImageResizeHandle as aD, ImageResizeResult as aE, OpeningIndicatorHost as aF, OverlayFrameRect as aG, PaginatedSurfaceState as aH, ParagraphPropertyEdit as aI, RemoteCaretLabelAnchor as aJ, RemoteCaretLabelHost as aK, ReviewWriteIntent as aL, RunTableChromeCommandResult as aM, SectionAnchor as aN, SectionBreakInsertType as aO, SelectedDrawingOverlayTarget as aP, SurfaceInsertImageInput as aQ, SurfaceNavigation as aR, SurfaceOverlayCoordinates as aS, SurfaceParagraphFormat as aT, TableBorderStyleOption as aY, TableBorderTargetOption as aZ, TableBorderTargetValue as a_, PaginatedSurfaceOptions as ae, OpenPaginatedResult as af, PaginatedSurface as ag, TableCommandPlan as ah, SurfaceFormatting as ai, AnchorFrameOrigin as aj, BookmarkMarkOptionsSource as ak, ChromeControl as am, ChromeControlId as an, ChromeControlState as ao, ChromeGroup as ap, ChromeGroupId as aq, DrawingSelectionIntent as as, EditorCommandExecute as au, EquationOps as av, FinalizedImageOverlayInteraction as aw, FormattingBarOptions as ax, HyperlinkOps as ay, BookmarkMarkInfo as b, TableChromeDraft as b0, TableChromePick as b1, TableInteractionLabelKey as b2, TextFormFieldChromeHandlers as b3, TextFormFieldDialogSession as b4, ToolbarSlotValue as b5, BookmarkMarkOptions as c, ChromeExportFormat as f, ChromeExportHandlers as g, ChromeExportResult as h, ChromeExportView as i, ChromeMenu as j, ChromeMenuEntry as k, ChromeMenuId as l, ChromeMenuItemEntry as m, ChromeMenuSeparatorEntry as n, ChromeMenuSubmenuEntry as o, ChromePrintErrorCode as q, ChromePrintJob as r, ChromePrintOptions as s, ChromeSlotId as t, CommentDraftChromeHandlers as u, ContentControlWidgetChromeHandlers as v, ContentControlWidgetSession as w, CustomFontsOptions as x, CustomFontsResolver as y, DocxEditorInstance as z };