@docx-editor.dev/core 2.7.0 → 2.8.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 (90) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.js +1 -1
  3. package/dist/binding.cjs +1 -1
  4. package/dist/binding.d.cts +8 -7
  5. package/dist/binding.d.ts +8 -7
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-2WIXJ7CW.js +10 -0
  8. package/dist/chunk-5XKD3VFP.js +18 -0
  9. package/dist/{chunk-DTR64XCS.cjs → chunk-HCSWWXS2.cjs} +2 -2
  10. package/dist/chunk-HTJLSGBH.cjs +18 -0
  11. package/dist/{chunk-O4VILLOM.cjs → chunk-JEHWQPXS.cjs} +1 -1
  12. package/dist/chunk-KCJLRAKT.js +5 -0
  13. package/dist/chunk-KTL3UMPK.js +2 -0
  14. package/dist/chunk-M6ZIVJUA.cjs +2 -0
  15. package/dist/chunk-NU57YOQE.js +15 -0
  16. package/dist/chunk-RUS2YBWU.cjs +10 -0
  17. package/dist/chunk-TJEWP7MX.cjs +15 -0
  18. package/dist/chunk-UGUPVZDY.cjs +5 -0
  19. package/dist/{chunk-NDTLLSG7.js → chunk-XJRMFS6O.js} +1 -1
  20. package/dist/chunk-XN634HAC.js +2 -0
  21. package/dist/contracts/document.d.cts +25 -3
  22. package/dist/contracts/document.d.ts +25 -3
  23. package/dist/contracts/editor.d.cts +7 -7
  24. package/dist/contracts/editor.d.ts +7 -7
  25. package/dist/contracts/interaction.d.cts +6 -6
  26. package/dist/contracts/interaction.d.ts +6 -6
  27. package/dist/contracts/modules.d.cts +4 -3
  28. package/dist/contracts/modules.d.ts +4 -3
  29. package/dist/contracts/types.d.cts +101 -1
  30. package/dist/contracts/types.d.ts +101 -1
  31. package/dist/{custom-node-writes-BpOBjNzo.d.ts → custom-node-writes-BdVl-LAC.d.ts} +19 -4
  32. package/dist/{custom-node-writes-C_AlNvds.d.cts → custom-node-writes-Bu8JIqfA.d.cts} +19 -4
  33. package/dist/{editor-CXaGlcUa.d.cts → editor-CWlj33GH.d.cts} +78 -67
  34. package/dist/{editor-C--WWCBA.d.ts → editor-D52SD4jG.d.ts} +78 -67
  35. package/dist/editor.cjs +1 -1
  36. package/dist/editor.d.cts +63 -31
  37. package/dist/editor.d.ts +63 -31
  38. package/dist/editor.js +1 -1
  39. package/dist/{image-resources-Bkmu1Jei.d.cts → image-resources-BveffuKp.d.cts} +1 -1
  40. package/dist/{image-resources-BWd5u-op.d.ts → image-resources-D63k8w5f.d.ts} +1 -1
  41. package/dist/{index-QsE1xXyT.d.cts → index-39yzaZO_.d.cts} +1573 -1429
  42. package/dist/{index-DW0TsrYl.d.ts → index-ZuqIj0b9.d.ts} +1573 -1429
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.d.cts +14 -14
  45. package/dist/index.d.ts +14 -14
  46. package/dist/index.js +1 -1
  47. package/dist/layout.cjs +1 -1
  48. package/dist/layout.d.cts +149 -21
  49. package/dist/layout.d.ts +149 -21
  50. package/dist/layout.js +1 -1
  51. package/dist/output.cjs +1 -1
  52. package/dist/output.d.cts +6 -5
  53. package/dist/output.d.ts +6 -5
  54. package/dist/output.js +1 -1
  55. package/dist/{review-reads-C5E7u-pt.d.ts → review-reads-B_pXe43J.d.ts} +1 -1
  56. package/dist/{review-reads-ChgUq41I.d.cts → review-reads-Bn7aZU4u.d.cts} +1 -1
  57. package/dist/{review-support-Cr2n7f1-.d.ts → review-support--I4ChuzF.d.ts} +1 -1
  58. package/dist/{review-support-oQrX6Xu3.d.cts → review-support-CG7aVSPh.d.cts} +1 -1
  59. package/dist/{semantic-cell-selection-CQOgvtbT.d.cts → semantic-cell-selection-C45Gn4K-.d.cts} +14 -2
  60. package/dist/{semantic-cell-selection-C8RC0VnN.d.ts → semantic-cell-selection-I-uAmi0q.d.ts} +14 -2
  61. package/dist/{semantic-interaction-C45D_oG2.d.ts → semantic-interaction-Bu_3IPaV.d.ts} +14 -2
  62. package/dist/{semantic-interaction-f4GyBQ_1.d.cts → semantic-interaction-DVUqu_47.d.cts} +14 -2
  63. package/dist/{semantic-paint-DUkGLJ_L.d.ts → semantic-paint-BKiiDJol.d.ts} +2 -2
  64. package/dist/{semantic-paint-BUt0ePEW.d.cts → semantic-paint-COQY0Lnq.d.cts} +2 -2
  65. package/dist/{semantic-records-DoW_xNgJ.d.ts → semantic-records-DHcMZM2-.d.ts} +22 -30
  66. package/dist/{semantic-records-CuT3Wsd-.d.cts → semantic-records-rAKWaD-1.d.cts} +22 -30
  67. package/dist/{shaped-measurer-CDcHzjhf.d.cts → shaped-measurer-BRL__nm2.d.cts} +1 -1
  68. package/dist/{shaped-measurer-CakZ7g1s.d.ts → shaped-measurer-Cw45Nu5R.d.ts} +1 -1
  69. package/dist/store.cjs +1 -1
  70. package/dist/store.d.cts +21 -9
  71. package/dist/store.d.ts +21 -9
  72. package/dist/store.js +1 -1
  73. package/dist/{tree-op-types-QujrzgCz.d.cts → tree-op-types-A-SLSKzK.d.cts} +54 -9
  74. package/dist/{tree-op-types-fZgbrR5F.d.ts → tree-op-types-BbzrA-kg.d.ts} +54 -9
  75. package/dist/{tree-session-5UWKAQ41.d.cts → tree-session-C2NsEgfW.d.cts} +41 -6
  76. package/dist/{tree-session--6LDTNjR.d.ts → tree-session-DeNJa86l.d.ts} +41 -6
  77. package/dist/{tree-store-Dy9FZ1pa.d.ts → tree-store-CKswbQl3.d.ts} +13 -1
  78. package/dist/{tree-store-DhYIACNE.d.cts → tree-store-Dob9Us6Y.d.cts} +13 -1
  79. package/package.json +2 -2
  80. package/dist/chunk-32HTRN7R.js +0 -10
  81. package/dist/chunk-BRBRYJKE.cjs +0 -2
  82. package/dist/chunk-EMQSFPJO.cjs +0 -15
  83. package/dist/chunk-GBK7Z6F4.cjs +0 -5
  84. package/dist/chunk-GPJXQDHC.js +0 -2
  85. package/dist/chunk-JLSB6KNZ.js +0 -5
  86. package/dist/chunk-LEV2X47E.cjs +0 -18
  87. package/dist/chunk-OB6JFVYA.js +0 -15
  88. package/dist/chunk-QTUZFJ4O.js +0 -18
  89. package/dist/chunk-UE7KTQLK.js +0 -2
  90. package/dist/chunk-WC3LI6FC.cjs +0 -10
@@ -1,6 +1,6 @@
1
1
  import { e as OoxmlPart } from './ooxml-tree-BU0e3DVi.cjs';
2
2
  import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
3
- import { I as ImpactClass, T as TreeDocOp, a as TreeOpRejection } from './tree-op-types-QujrzgCz.cjs';
3
+ import { I as ImpactClass, T as TreeDocOp, a as TreeOpRejection } from './tree-op-types-A-SLSKzK.cjs';
4
4
 
5
5
  /**
6
6
  * The document metadata Word's document-property fields render.
@@ -166,6 +166,16 @@ interface HistoryEntry {
166
166
  interface TreeDocumentStoreOptions {
167
167
  /** Bound on retained history entries. Oldest entries drop first. */
168
168
  readonly historyLimit?: number;
169
+ /**
170
+ * The document's `settings.xml`, for a store built from a PART rather than a package.
171
+ *
172
+ * Forms protection lives one part up from the op, and a store built from a part gets a
173
+ * synthetic one-part package that cannot see it — so `w:documentProtection w:edit="forms"`
174
+ * was enforced in the body and nowhere else, and a header, a footer or a note accepted every
175
+ * write a protected document is supposed to refuse. Read through a getter, not captured: a
176
+ * document can gain or lose protection while its stories stay open.
177
+ */
178
+ readonly settingsPart?: () => OoxmlPart | null | undefined;
169
179
  }
170
180
  /**
171
181
  * Opaque document+history checkpoint for package-coordinator rollback.
@@ -205,6 +215,8 @@ declare class TreeDocumentStore {
205
215
  private readonly redoStack;
206
216
  private readonly subscribers;
207
217
  private readonly historyLimit;
218
+ /** See {@link TreeDocumentStoreOptions.settingsPart}. */
219
+ private readonly settingsPartOverride;
208
220
  /** Package-aware story tag applied to publishes (including undo/redo). */
209
221
  private storyRef;
210
222
  /** Open composition, if any. While set, transactions extend one entry (task 5.5). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docx-editor.dev/core",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Framework-agnostic core for docx-editor.dev: OOXML parse/serialize, the canonical document tree, layout and paint, and the Editor contract the adapters render.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -86,7 +86,7 @@
86
86
  "directory": "packages/core"
87
87
  },
88
88
  "dependencies": {
89
- "@docx-editor.dev/i18n": "^2.7.0",
89
+ "@docx-editor.dev/i18n": "^2.8.0",
90
90
  "bidi-js": "1.0.3",
91
91
  "emf-converter": "2.0.2",
92
92
  "fast-xml-parser": "^5.10.1",