@docx-editor.dev/core 2.6.1 → 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 (96) 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-42PRWWVE.js +2 -0
  9. package/dist/chunk-5XKD3VFP.js +18 -0
  10. package/dist/{chunk-SFMAIFEN.cjs → chunk-HCSWWXS2.cjs} +2 -2
  11. package/dist/chunk-HTJLSGBH.cjs +18 -0
  12. package/dist/chunk-JEHWQPXS.cjs +1 -0
  13. package/dist/chunk-KCJLRAKT.js +5 -0
  14. package/dist/chunk-KTL3UMPK.js +2 -0
  15. package/dist/chunk-M6ZIVJUA.cjs +2 -0
  16. package/dist/chunk-NU57YOQE.js +15 -0
  17. package/dist/chunk-RUS2YBWU.cjs +10 -0
  18. package/dist/chunk-TJEWP7MX.cjs +15 -0
  19. package/dist/chunk-UGUPVZDY.cjs +5 -0
  20. package/dist/chunk-XJRMFS6O.js +1 -0
  21. package/dist/chunk-XN634HAC.js +2 -0
  22. package/dist/chunk-XRDTD4X3.cjs +2 -0
  23. package/dist/contracts/document.d.cts +25 -3
  24. package/dist/contracts/document.d.ts +25 -3
  25. package/dist/contracts/editor.d.cts +7 -7
  26. package/dist/contracts/editor.d.ts +7 -7
  27. package/dist/contracts/interaction.d.cts +6 -6
  28. package/dist/contracts/interaction.d.ts +6 -6
  29. package/dist/contracts/modules.d.cts +4 -3
  30. package/dist/contracts/modules.d.ts +4 -3
  31. package/dist/contracts/types.d.cts +110 -2
  32. package/dist/contracts/types.d.ts +110 -2
  33. package/dist/{custom-node-writes-tJw8U9MO.d.ts → custom-node-writes-BdVl-LAC.d.ts} +19 -10
  34. package/dist/{custom-node-writes-D9G3GKQ7.d.cts → custom-node-writes-Bu8JIqfA.d.cts} +19 -10
  35. package/dist/{editor-BZEJL3vv.d.cts → editor-CWlj33GH.d.cts} +80 -69
  36. package/dist/{editor-D2zOJztO.d.ts → editor-D52SD4jG.d.ts} +80 -69
  37. package/dist/editor.cjs +1 -1
  38. package/dist/editor.d.cts +63 -31
  39. package/dist/editor.d.ts +63 -31
  40. package/dist/editor.js +1 -1
  41. package/dist/{image-resources-BaHz4QAd.d.cts → image-resources-BveffuKp.d.cts} +1 -1
  42. package/dist/{image-resources-Cl5_cNi9.d.ts → image-resources-D63k8w5f.d.ts} +1 -1
  43. package/dist/{index-_xF7n_z0.d.cts → index-39yzaZO_.d.cts} +1573 -1429
  44. package/dist/{index-D8L8WrNF.d.ts → index-ZuqIj0b9.d.ts} +1573 -1429
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.cts +14 -14
  47. package/dist/index.d.ts +14 -14
  48. package/dist/index.js +1 -1
  49. package/dist/layout.cjs +1 -1
  50. package/dist/layout.d.cts +220 -23
  51. package/dist/layout.d.ts +220 -23
  52. package/dist/layout.js +1 -1
  53. package/dist/output.cjs +1 -1
  54. package/dist/output.d.cts +6 -5
  55. package/dist/output.d.ts +6 -5
  56. package/dist/output.js +1 -1
  57. package/dist/{review-reads-HDvoQXK2.d.ts → review-reads-B_pXe43J.d.ts} +1 -1
  58. package/dist/{review-reads-Dr0CpW6u.d.cts → review-reads-Bn7aZU4u.d.cts} +1 -1
  59. package/dist/{review-support-D4ZBdUXa.d.ts → review-support--I4ChuzF.d.ts} +1 -1
  60. package/dist/{review-support-T-riLz4Y.d.cts → review-support-CG7aVSPh.d.cts} +1 -1
  61. package/dist/{semantic-cell-selection-BTQFpN0S.d.cts → semantic-cell-selection-C45Gn4K-.d.cts} +14 -2
  62. package/dist/{semantic-cell-selection-B5vfPz4Q.d.ts → semantic-cell-selection-I-uAmi0q.d.ts} +14 -2
  63. package/dist/{semantic-interaction-CDNEU_Tx.d.cts → semantic-interaction-Bu_3IPaV.d.ts} +14 -2
  64. package/dist/{semantic-interaction-lvpzZRpA.d.ts → semantic-interaction-DVUqu_47.d.cts} +14 -2
  65. package/dist/{semantic-paint-BBPL3u5w.d.ts → semantic-paint-BKiiDJol.d.ts} +8 -2
  66. package/dist/{semantic-paint-IjbL-4CT.d.cts → semantic-paint-COQY0Lnq.d.cts} +8 -2
  67. package/dist/{semantic-records-CdQvpUj1.d.ts → semantic-records-DHcMZM2-.d.ts} +35 -36
  68. package/dist/{semantic-records-DEOs3_tE.d.cts → semantic-records-rAKWaD-1.d.cts} +35 -36
  69. package/dist/{shaped-measurer-C2SJAjV0.d.cts → shaped-measurer-BRL__nm2.d.cts} +1 -1
  70. package/dist/{shaped-measurer-l4o5ITJ0.d.ts → shaped-measurer-Cw45Nu5R.d.ts} +1 -1
  71. package/dist/store.cjs +1 -1
  72. package/dist/store.d.cts +55 -9
  73. package/dist/store.d.ts +55 -9
  74. package/dist/store.js +1 -1
  75. package/dist/{tree-op-types-CUCwPWjT.d.cts → tree-op-types-A-SLSKzK.d.cts} +62 -9
  76. package/dist/{tree-op-types-D0fTNBVW.d.ts → tree-op-types-BbzrA-kg.d.ts} +62 -9
  77. package/dist/{tree-session-b7bggR-S.d.cts → tree-session-C2NsEgfW.d.cts} +41 -6
  78. package/dist/{tree-session-CH1oA75f.d.ts → tree-session-DeNJa86l.d.ts} +41 -6
  79. package/dist/{tree-store-CIKASRHk.d.ts → tree-store-CKswbQl3.d.ts} +13 -1
  80. package/dist/{tree-store-BqgeCa1Q.d.cts → tree-store-Dob9Us6Y.d.cts} +13 -1
  81. package/package.json +2 -2
  82. package/dist/chunk-4GQXAXTZ.js +0 -5
  83. package/dist/chunk-DGUHCJPF.cjs +0 -18
  84. package/dist/chunk-DY3QVCWC.cjs +0 -10
  85. package/dist/chunk-E7BXJ4BF.js +0 -1
  86. package/dist/chunk-F7Z6PWAZ.cjs +0 -2
  87. package/dist/chunk-IJ4V3LGV.cjs +0 -2
  88. package/dist/chunk-JEMP5YI5.cjs +0 -15
  89. package/dist/chunk-JZXK4DKV.cjs +0 -1
  90. package/dist/chunk-NIGGABAA.js +0 -15
  91. package/dist/chunk-OPKOTVQQ.js +0 -18
  92. package/dist/chunk-R75OLPL6.js +0 -10
  93. package/dist/chunk-SKWYEZCO.cjs +0 -5
  94. package/dist/chunk-SMRD66T5.js +0 -2
  95. package/dist/chunk-UVIUNAQ6.js +0 -2
  96. package/dist/chunk-WAVN7MAT.js +0 -2
@@ -0,0 +1,2 @@
1
+ var k="http://schemas.microsoft.com/office/word/2012/wordml";function A(e){return `${e.kind}-${e.id}`}function M(e){let a=[],t=n=>{if(n.kind==="textValue"){a.push(n.value);return}for(let o of n.children)t(o);};for(let n of e.blocks)t(n);return a.join("")}function C(e){if(e.initials&&e.initials.trim().length>0)return e.initials.trim();let a=e.author.trim().split(/\s+/).filter(Boolean);return a.length===0?"?":a.slice(0,2).map(t=>t[0].toUpperCase()).join("")}function m(e){return e.kind==="revision"?e.ranges:e.range?[e.range]:[]}function y(e){return m(e)[0]??null}function T(e,a){let t=y(e);if(!t)return Number.MAX_SAFE_INTEGER;let n=a.get(t.start.paragraphId);return n===void 0?Number.MAX_SAFE_INTEGER:n*1e6+Math.min(t.start.offset,999999)}function p(e,a){let t=a.get(e.start.paragraphId),n=a.get(e.end.paragraphId);return t===void 0||n===void 0?Number.MAX_SAFE_INTEGER:(n-t)*1e6+(e.end.offset-e.start.offset)}var c=0,f=1,R=2;function v(e,a,t){let n=t.get(a.paragraphId),o=t.get(e.start.paragraphId),r=t.get(e.end.paragraphId);return n===void 0||o===void 0||r===void 0||n<o||n>r||n===o&&a.offset<e.start.offset||n===r&&a.offset>e.end.offset?null:o===r&&e.start.offset===e.end.offset?c:n===r&&a.offset===e.end.offset?R:f}function I(e,a,t){let n=null;for(let o of m(e)){let r=v(o,a,t);if(r===null)continue;let i=p(o,t);(n===null||r<n.grip||r===n.grip&&i<n.width)&&(n={grip:r,width:i});}return n}var s={comment:0,custom:1,revision:2};function w(e,a,t){let n=[];for(let o of e){let r=I(o,a,t);r!==null&&n.push({item:o,grip:r.grip,width:r.width});}return n.sort((o,r)=>o.grip!==r.grip?o.grip-r.grip:o.width!==r.width?o.width-r.width:o.item.kind!==r.item.kind?s[o.item.kind]-s[r.item.kind]:o.item.kind==="revision"&&r.item.kind==="revision"?r.item.nesting-o.item.nesting:0).map(o=>o.item)}function N(e,a,t){let o=w(e,a,t).filter(r=>!(r.kind==="comment"&&r.resolved))[0];return o?o.kind==="comment"?g(e,o):o:null}function _(e,a){return g(e,a)}function g(e,a){let t=new Map,n=new Map;for(let i of e)i.kind==="comment"?t.set(i.id,i):i.kind==="revision"&&n.set(i.id,i);let o=new Set([a.id]),r=a;for(;r.parentId!==void 0;){let i=t.get(r.parentId);if(!i||o.has(i.id))break;o.add(i.id),r=i;}if(r.parentRevisionId!==void 0){let i=n.get(r.parentRevisionId);if(i)return i}return r}function h(e,a,t){let n=e.lines?.find(o=>{let r=o.spans;if(!r)return t<o.range.end;let i=r.filter(d=>d.range.paragraphId===a);return i.length===r.length?t<o.range.end:i.length>0&&t<i[i.length-1].range.end});return n?n.box.y:e.fragmentY}function E(e,a){let t=new Map;for(let n of e.pages)for(let[o,r]of x(n,a))t.has(o)||t.set(o,r);return t}var l=new WeakMap;function x(e,a){let t=l.get(a);t||(t=new WeakMap,l.set(a,t));let n=t.get(e);if(n)return n;let o=new Map;for(let r of a(e)){let i=new Set([r.paragraphId]);for(let d of r.lines??[])for(let u of d.spans??[])i.add(u.range.paragraphId);for(let d of i)o.has(d)||o.set(d,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:r.box.y,...r.lines?{lines:r.lines}:{}});}return t.set(e,o),o}function O(e,a){let t=y(e);if(!t)return null;let n=a.get(t.start.paragraphId);return n?{pageIndex:n.pageIndex,y:n.contentY+h(n,t.start.paragraphId,t.start.offset)}:null}
2
+ export{k as a,A as b,M as c,C as d,m as e,y as f,T as g,w as h,N as i,_ as j,h as k,E as l,O as m};