superdoc 0.30.0-next.1 → 0.30.0-next.2

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 (280) hide show
  1. package/dist/chunks/{PdfViewer-DNnHwEf_.es.js → PdfViewer-B_U27-1K.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-Mru9qU0u.cjs → PdfViewer-DjMr1y41.cjs} +1 -1
  3. package/dist/chunks/{index-C3nnrhrj-D8emuLzt.es.js → index-BJia6SL_-D6cjpcdW.es.js} +1 -1
  4. package/dist/chunks/{index-C3nnrhrj-D6qn1DZi.cjs → index-BJia6SL_-O9_RiF6K.cjs} +1 -1
  5. package/dist/chunks/{index-DcqOqWRC.es.js → index-D8F3d1e3.es.js} +3 -3
  6. package/dist/chunks/{index-s9auAjqk.cjs → index-uO0JG1KW.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-D1glcoJr.es.js → super-editor.es-BjEfFiAF.es.js} +7251 -7710
  8. package/dist/chunks/{super-editor.es-DPd8_luo.cjs → super-editor.es-C0Cv2AzF.cjs} +7251 -7710
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  11. package/dist/style.css +4 -3
  12. package/dist/super-editor/ai-writer.es.js +2 -2
  13. package/dist/super-editor/chunks/{converter-Z2aFlUnt.js → converter-DxPmeV-v.js} +7511 -7991
  14. package/dist/super-editor/chunks/{docx-zipper-DIZfYOpO.js → docx-zipper-BnnW7IuB.js} +1 -1
  15. package/dist/super-editor/chunks/{editor-DCiWw1F7.js → editor-B2jkX1wz.js} +75 -52
  16. package/dist/super-editor/chunks/{index-C3nnrhrj.js → index-BJia6SL_.js} +1 -1
  17. package/dist/super-editor/chunks/{toolbar-B5-PSkGu.js → toolbar-DFlHgpZd.js} +2 -2
  18. package/dist/super-editor/converter.es.js +1 -1
  19. package/dist/super-editor/docx-zipper.es.js +2 -2
  20. package/dist/super-editor/editor.es.js +3 -3
  21. package/dist/super-editor/file-zipper.es.js +1 -1
  22. package/dist/super-editor/style.css +4 -3
  23. package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
  24. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +1 -1
  25. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
  26. package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts +24 -0
  27. package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts.map +1 -0
  28. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +2 -1
  29. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts.map +1 -1
  30. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
  31. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +11 -0
  32. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/trackChangesImporter.d.ts.map +1 -1
  34. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/index.d.ts.map +1 -1
  35. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +30 -4
  36. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/utils.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.d.ts +7 -0
  38. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.d.ts.map +1 -0
  39. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/index.d.ts +2 -0
  40. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/index.d.ts.map +1 -0
  41. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.d.ts +7 -0
  42. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.d.ts.map +1 -0
  43. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/index.d.ts +2 -0
  44. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/index.d.ts.map +1 -0
  45. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.d.ts +7 -0
  46. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.d.ts.map +1 -0
  47. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/index.d.ts +2 -0
  48. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/index.d.ts.map +1 -0
  49. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +1 -2
  50. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts.map +1 -1
  51. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/bCs-translator.d.ts +7 -0
  52. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/bCs-translator.d.ts.map +1 -0
  53. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/index.d.ts +2 -0
  54. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/index.d.ts.map +1 -0
  55. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/bar-translator.d.ts +7 -0
  56. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/bar-translator.d.ts.map +1 -0
  57. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/index.d.ts +2 -0
  58. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/index.d.ts.map +1 -0
  59. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/between-translator.d.ts +7 -0
  60. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/between-translator.d.ts.map +1 -0
  61. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/index.d.ts +2 -0
  62. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/index.d.ts.map +1 -0
  63. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/bidi-translator.d.ts +7 -0
  64. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/bidi-translator.d.ts.map +1 -0
  65. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/index.d.ts +2 -0
  66. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/index.d.ts.map +1 -0
  67. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +1 -2
  68. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts.map +1 -1
  69. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +1 -2
  70. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts.map +1 -1
  71. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/contextualSpacing-translator.d.ts +7 -0
  72. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/contextualSpacing-translator.d.ts.map +1 -0
  73. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/index.d.ts +2 -0
  74. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/index.d.ts.map +1 -0
  75. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/dstrike/dstrike-translator.d.ts +7 -0
  76. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/dstrike/dstrike-translator.d.ts.map +1 -0
  77. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/framePr-translator.d.ts +7 -0
  78. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/framePr-translator.d.ts.map +1 -0
  79. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/index.d.ts +2 -0
  80. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/index.d.ts.map +1 -0
  81. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/headers-translator.d.ts +0 -2
  82. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/headers-translator.d.ts.map +1 -1
  83. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +1 -2
  84. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts.map +1 -1
  85. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/ilvl-translator.d.ts +7 -0
  86. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/ilvl-translator.d.ts.map +1 -0
  87. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/index.d.ts +2 -0
  88. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/index.d.ts.map +1 -0
  89. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/ind-translator.d.ts +7 -0
  90. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/ind-translator.d.ts.map +1 -0
  91. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/index.d.ts +2 -0
  92. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/index.d.ts.map +1 -0
  93. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/index.d.ts +2 -0
  94. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/index.d.ts.map +1 -0
  95. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/keepLines-translator.d.ts +7 -0
  96. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/keepLines-translator.d.ts.map +1 -0
  97. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/index.d.ts +2 -0
  98. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/index.d.ts.map +1 -0
  99. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/keepNext-translator.d.ts +7 -0
  100. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/keepNext-translator.d.ts.map +1 -0
  101. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/index.d.ts +2 -0
  102. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/index.d.ts.map +1 -0
  103. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/kinsoku-translator.d.ts +7 -0
  104. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/kinsoku-translator.d.ts.map +1 -0
  105. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/index.d.ts +2 -0
  106. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/index.d.ts.map +1 -0
  107. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/lang-translator.d.ts +7 -0
  108. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/lang-translator.d.ts.map +1 -0
  109. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/index.d.ts +2 -0
  110. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/index.d.ts.map +1 -0
  111. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/mirrorIndents-translator.d.ts +7 -0
  112. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/mirrorIndents-translator.d.ts.map +1 -0
  113. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/index.d.ts +2 -0
  114. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/index.d.ts.map +1 -0
  115. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/numId-translator.d.ts +7 -0
  116. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/numId-translator.d.ts.map +1 -0
  117. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/index.d.ts +2 -0
  118. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/index.d.ts.map +1 -0
  119. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/numPr-translator.d.ts +6 -0
  120. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/numPr-translator.d.ts.map +1 -0
  121. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/index.d.ts +2 -0
  122. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/index.d.ts.map +1 -0
  123. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/outlineLvl-translator.d.ts +7 -0
  124. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/outlineLvl-translator.d.ts.map +1 -0
  125. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/index.d.ts +2 -0
  126. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/index.d.ts.map +1 -0
  127. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/overflowPunct-translator.d.ts +7 -0
  128. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/overflowPunct-translator.d.ts.map +1 -0
  129. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -1
  130. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts.map +1 -1
  131. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/index.d.ts +2 -0
  132. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/index.d.ts.map +1 -0
  133. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/pBdr-translator.d.ts +6 -0
  134. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/pBdr-translator.d.ts.map +1 -0
  135. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/index.d.ts +2 -0
  136. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/index.d.ts.map +1 -0
  137. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/pPr-translator.d.ts +6 -0
  138. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/pPr-translator.d.ts.map +1 -0
  139. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/index.d.ts +2 -0
  140. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/index.d.ts.map +1 -0
  141. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/pStyle-translator.d.ts +7 -0
  142. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/pStyle-translator.d.ts.map +1 -0
  143. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/index.d.ts +2 -0
  144. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/index.d.ts.map +1 -0
  145. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/pageBreakBefore-translator.d.ts +7 -0
  146. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/pageBreakBefore-translator.d.ts.map +1 -0
  147. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pict/helpers/handle-v-rect-import.d.ts +1 -1
  148. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pict/helpers/handle-v-rect-import.d.ts.map +1 -1
  149. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +1 -37
  150. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts.map +1 -1
  151. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -1
  152. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts.map +1 -1
  153. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +1 -0
  154. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts.map +1 -1
  155. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +1 -2
  156. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts.map +1 -1
  157. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +2 -0
  158. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts.map +1 -1
  159. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/index.d.ts +2 -0
  160. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/index.d.ts.map +1 -0
  161. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/snapToGrid-translator.d.ts +7 -0
  162. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/snapToGrid-translator.d.ts.map +1 -0
  163. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/index.d.ts +2 -0
  164. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/index.d.ts.map +1 -0
  165. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/letter-spacing-translator.d.ts +7 -0
  166. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/letter-spacing-translator.d.ts.map +1 -0
  167. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/spacing-translator.d.ts +7 -0
  168. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/spacing-translator.d.ts.map +1 -0
  169. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +1 -2
  170. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts.map +1 -1
  171. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/index.d.ts +2 -0
  172. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/index.d.ts.map +1 -0
  173. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/suppressAutoHyphens-translator.d.ts +7 -0
  174. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/suppressAutoHyphens-translator.d.ts.map +1 -0
  175. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/index.d.ts +2 -0
  176. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/index.d.ts.map +1 -0
  177. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/suppressLineNumbers-translator.d.ts +7 -0
  178. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/suppressLineNumbers-translator.d.ts.map +1 -0
  179. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/index.d.ts +2 -0
  180. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/index.d.ts.map +1 -0
  181. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/suppressOverlap-translator.d.ts +7 -0
  182. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/suppressOverlap-translator.d.ts.map +1 -0
  183. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +5 -3
  184. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts.map +1 -1
  185. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +5 -3
  186. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts.map +1 -1
  187. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +1 -1
  188. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts.map +1 -1
  189. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/{w-tab-size.d.ts → w-tab-type.d.ts} +1 -1
  190. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-type.d.ts.map +1 -0
  191. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts.map +1 -1
  192. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/index.d.ts +2 -0
  193. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/index.d.ts.map +1 -0
  194. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/tabs-translator.d.ts +6 -0
  195. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/tabs-translator.d.ts.map +1 -0
  196. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts.map +1 -1
  197. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/index.d.ts +2 -0
  198. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/index.d.ts.map +1 -0
  199. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/textAlignment-translator.d.ts +7 -0
  200. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/textAlignment-translator.d.ts.map +1 -0
  201. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/index.d.ts +2 -0
  202. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/index.d.ts.map +1 -0
  203. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/textboxTightWrap-translator.d.ts +7 -0
  204. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/textboxTightWrap-translator.d.ts.map +1 -0
  205. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/index.d.ts +2 -0
  206. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/index.d.ts.map +1 -0
  207. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/topLinePunct-translator.d.ts +7 -0
  208. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/topLinePunct-translator.d.ts.map +1 -0
  209. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/index.d.ts +2 -0
  210. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/index.d.ts.map +1 -0
  211. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/widowControl-translator.d.ts +7 -0
  212. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/widowControl-translator.d.ts.map +1 -0
  213. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/index.d.ts +2 -0
  214. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/index.d.ts.map +1 -0
  215. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/wordWrap-translator.d.ts +7 -0
  216. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/wordWrap-translator.d.ts.map +1 -0
  217. package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts +1 -1
  218. package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
  219. package/dist/super-editor/super-editor/src/extensions/paragraph/helpers/getDefaultSpacing.d.ts +4 -4
  220. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  221. package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts.map +1 -1
  222. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  223. package/dist/super-editor/super-editor.es.js +19 -17
  224. package/dist/super-editor/toolbar.es.js +2 -2
  225. package/dist/super-editor.cjs +1 -1
  226. package/dist/super-editor.es.js +1 -1
  227. package/dist/superdoc.cjs +2 -2
  228. package/dist/superdoc.es.js +2 -2
  229. package/dist/superdoc.umd.js +7256 -7715
  230. package/dist/superdoc.umd.js.map +1 -1
  231. package/package.json +1 -1
  232. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -4
  233. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts.map +0 -1
  234. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -5
  235. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts.map +0 -1
  236. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -3
  237. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts.map +0 -1
  238. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -5
  239. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts.map +0 -1
  240. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -5
  241. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts.map +0 -1
  242. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -5
  243. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts.map +0 -1
  244. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -5
  245. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts.map +0 -1
  246. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -3
  247. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts.map +0 -1
  248. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -5
  249. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts.map +0 -1
  250. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -5
  251. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts.map +0 -1
  252. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -10
  253. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts.map +0 -1
  254. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -3
  255. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts.map +0 -1
  256. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -5
  257. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts.map +0 -1
  258. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -5
  259. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts.map +0 -1
  260. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -5
  261. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts.map +0 -1
  262. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -5
  263. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts.map +0 -1
  264. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -5
  265. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts.map +0 -1
  266. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -3
  267. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts.map +0 -1
  268. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -5
  269. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts.map +0 -1
  270. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -12
  271. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts.map +0 -1
  272. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -3
  273. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts.map +0 -1
  274. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -5
  275. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts.map +0 -1
  276. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -3
  277. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts.map +0 -1
  278. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -5
  279. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts.map +0 -1
  280. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-Z2aFlUnt.js";
1
+ import { p as process$1, aC as commonjsGlobal, B as Buffer, aD as getDefaultExportFromCjs, aE as getContentTypesFromXml, aF as xmljs } from "./converter-DxPmeV-v.js";
2
2
  function commonjsRequire(path) {
3
3
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ListItemNodeView_instances, init_fn3, applyIndentStyling_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-Z2aFlUnt.js";
16
- import { D as DocxZipper } from "./docx-zipper-DIZfYOpO.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as findParentNodeClosestToPos, ap as docxNumberingHelpers, aq as getListItemStyleDefinitions, ar as parseIndentElement, as as combineIndents, at as eighthPointsToPixels, au as linesToTwips, av as PIXELS_PER_INCH, aw as SelectionRange, ax as Transform, ay as isInTable$1, az as generateDocxRandomId, aA as insertNewRelationship, aB as inchesToPixels } from "./converter-DxPmeV-v.js";
16
+ import { D as DocxZipper } from "./docx-zipper-BnnW7IuB.js";
17
17
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
@@ -15081,7 +15081,7 @@ const _Editor = class _Editor extends EventEmitter {
15081
15081
  { default: remarkStringify },
15082
15082
  { default: remarkGfm }
15083
15083
  ] = await Promise.all([
15084
- import("./index-C3nnrhrj.js"),
15084
+ import("./index-BJia6SL_.js"),
15085
15085
  import("./index-DRCvimau.js"),
15086
15086
  import("./index-C_x_N6Uh.js"),
15087
15087
  import("./index-D_sWOSiG.js"),
@@ -15299,7 +15299,7 @@ const _Editor = class _Editor extends EventEmitter {
15299
15299
  * @returns {Object | void} Migration results
15300
15300
  */
15301
15301
  processCollaborationMigrations() {
15302
- console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.1");
15302
+ console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.2");
15303
15303
  if (!this.options.ydoc) return;
15304
15304
  const metaMap = this.options.ydoc.getMap("meta");
15305
15305
  let docVersion = metaMap.get("version");
@@ -19372,11 +19372,25 @@ const getSpacingStyle = (spacing) => {
19372
19372
  ...lineHeightStyles
19373
19373
  };
19374
19374
  };
19375
- const getSpacingStyleString = (spacing) => {
19376
- const { lineSpaceBefore, lineSpaceAfter, line } = spacing;
19375
+ const getSpacingStyleString = (spacing, marks) => {
19376
+ let { before, after, line, lineRule, beforeAutospacing, afterAutospacing } = spacing;
19377
+ line = twipsToLines(line);
19378
+ if (lineRule === "exact" && line) {
19379
+ line = String(line);
19380
+ }
19381
+ const textStyleMark = marks?.find((mark) => mark.type === "textStyle");
19382
+ const fontSize = textStyleMark?.attrs?.fontSize;
19383
+ before = twipsToPixels(before);
19384
+ if (beforeAutospacing && fontSize) {
19385
+ before += halfPointToPixels(parseInt(fontSize) * 0.5);
19386
+ }
19387
+ after = twipsToPixels(after);
19388
+ if (afterAutospacing && fontSize) {
19389
+ after += halfPointToPixels(parseInt(fontSize) * 0.5);
19390
+ }
19377
19391
  return `
19378
- ${lineSpaceBefore ? `margin-top: ${lineSpaceBefore}px;` : ""}
19379
- ${lineSpaceAfter ? `margin-bottom: ${lineSpaceAfter}px;` : ""}
19392
+ ${before ? `margin-top: ${before}px;` : ""}
19393
+ ${after ? `margin-bottom: ${after}px;` : ""}
19380
19394
  ${line ? getLineHeightValueString(line, "") : ""}
19381
19395
  `.trim();
19382
19396
  };
@@ -20713,10 +20727,10 @@ const ListItem = Node$1.create({
20713
20727
  }
20714
20728
  });
20715
20729
  const getDefaultSpacing = () => ({
20716
- lineSpaceAfter: 0,
20717
- lineSpaceBefore: 0,
20718
- line: 0,
20719
- lineRule: null
20730
+ after: null,
20731
+ before: null,
20732
+ line: null,
20733
+ lineRule: "auto"
20720
20734
  });
20721
20735
  const Paragraph = OxmlNode.create({
20722
20736
  name: "paragraph",
@@ -20745,20 +20759,20 @@ const Paragraph = OxmlNode.create({
20745
20759
  parseDOM: (element) => {
20746
20760
  if (element && element.closest("[data-superdoc-import]")) {
20747
20761
  return {
20748
- lineSpaceAfter: 11,
20749
- lineSpaceBefore: 0,
20750
- line: 1.15,
20762
+ after: pixelsToTwips(11),
20763
+ before: 0,
20764
+ line: linesToTwips(1.15),
20751
20765
  lineRule: "auto"
20752
20766
  };
20753
20767
  }
20754
20768
  return void 0;
20755
20769
  },
20756
20770
  renderDOM: (attrs) => {
20757
- const { spacing } = attrs;
20771
+ const { spacing, marksAttrs } = attrs;
20758
20772
  if (!spacing) return {};
20759
20773
  const spacingCopy = { ...spacing };
20760
20774
  if (attrs.lineHeight) delete spacingCopy.line;
20761
- const style = getSpacingStyleString(spacingCopy);
20775
+ const style = getSpacingStyleString(spacingCopy, marksAttrs ?? []);
20762
20776
  if (style) return { style };
20763
20777
  return {};
20764
20778
  }
@@ -20794,11 +20808,11 @@ const Paragraph = OxmlNode.create({
20794
20808
  return {};
20795
20809
  }
20796
20810
  let style = "";
20797
- if (left2) style += `margin-left: ${left2}px;`;
20798
- if (right2) style += `margin-right: ${right2}px;`;
20799
- if (firstLine && !hanging) style += `text-indent: ${firstLine}px;`;
20800
- if (firstLine && hanging) style += `text-indent: ${firstLine - hanging}px;`;
20801
- if (!firstLine && hanging) style += `text-indent: ${-hanging}px;`;
20811
+ if (left2) style += `margin-left: ${twipsToPixels(left2)}px;`;
20812
+ if (right2) style += `margin-right: ${twipsToPixels(right2)}px;`;
20813
+ if (firstLine && !hanging) style += `text-indent: ${twipsToPixels(firstLine)}px;`;
20814
+ if (firstLine && hanging) style += `text-indent: ${twipsToPixels(firstLine - hanging)}px;`;
20815
+ if (!firstLine && hanging) style += `text-indent: ${twipsToPixels(-hanging)}px;`;
20802
20816
  return { style };
20803
20817
  }
20804
20818
  },
@@ -20817,12 +20831,16 @@ const Paragraph = OxmlNode.create({
20817
20831
  sideOrder.forEach((side) => {
20818
20832
  const b = borders[side];
20819
20833
  if (!b) return;
20820
- const width = b.size != null ? `${b.size}px` : "1px";
20834
+ if (["nil", "none", void 0, null].includes(b.val)) {
20835
+ style += `border-${side}: none;`;
20836
+ return;
20837
+ }
20838
+ const width = b.size != null ? `${eighthPointsToPixels(b.size)}px` : "1px";
20821
20839
  const cssStyle = valToCss[b.val] || "solid";
20822
- const color = b.color || "#000000";
20840
+ const color = !b.color || b.color === "auto" ? "#000000" : `#${b.color}`;
20823
20841
  style += `border-${side}: ${width} ${cssStyle} ${color};`;
20824
20842
  if (b.space != null && side === "bottom") {
20825
- style += `padding-bottom: ${b.space}px;`;
20843
+ style += `padding-bottom: ${eighthPointsToPixels(b.space)}px;`;
20826
20844
  }
20827
20845
  });
20828
20846
  return style ? { style } : {};
@@ -20854,15 +20872,14 @@ const Paragraph = OxmlNode.create({
20854
20872
  paragraphProperties: { rendered: false },
20855
20873
  dropcap: { rendered: false },
20856
20874
  pageBreakSource: { rendered: false },
20857
- justify: {
20858
- renderDOM: ({ justify }) => {
20859
- const { val: jc } = justify || {};
20860
- if (!jc) return {};
20875
+ textAlign: {
20876
+ renderDOM: ({ textAlign }) => {
20877
+ if (!textAlign) return {};
20861
20878
  let style = "";
20862
- if (jc === "left") style += "text-align: left;";
20863
- else if (jc === "right") style += "text-align: right;";
20864
- else if (jc === "center") style += "text-align: center;";
20865
- else if (jc === "both") style += "text-align: justify;";
20879
+ if (textAlign === "left") style += "text-align: left;";
20880
+ else if (textAlign === "right") style += "text-align: right;";
20881
+ else if (textAlign === "center") style += "text-align: center;";
20882
+ else if (textAlign === "both") style += "text-align: justify;";
20866
20883
  return { style };
20867
20884
  }
20868
20885
  },
@@ -21209,13 +21226,16 @@ const getTabDecorations = (doc2, view, helpers2, from2 = 0, to = null) => {
21209
21226
  const tabStop = tabStops.find((stop) => stop.pos > currentWidth && stop.val !== "clear");
21210
21227
  if (tabStop) {
21211
21228
  tabWidth = tabStop.pos - currentWidth;
21212
- if (tabStop.val === "center" || tabStop.val === "end" || tabStop.val === "right") {
21229
+ let val = tabStop.val;
21230
+ const aliases = { left: "start", right: "end" };
21231
+ if (aliases[val]) val = aliases[val];
21232
+ if (val === "center" || val === "end" || val === "right") {
21213
21233
  const nextTabIndex = findNextTabIndex(flattened, entryIndex + 1);
21214
21234
  const segmentStartPos = pos + node.nodeSize;
21215
21235
  const segmentEndPos = nextTabIndex === -1 ? startPos + paragraphContext.paragraph.nodeSize - 1 : flattened[nextTabIndex].pos;
21216
21236
  const segmentWidth = measureRangeWidth(view, segmentStartPos, segmentEndPos, coordCache, domPosCache);
21217
- tabWidth -= tabStop.val === "center" ? segmentWidth / 2 : segmentWidth;
21218
- } else if (tabStop.val === "decimal" || tabStop.val === "num") {
21237
+ tabWidth -= val === "center" ? segmentWidth / 2 : segmentWidth;
21238
+ } else if (val === "decimal" || val === "num") {
21219
21239
  const breakChar = tabStop.decimalChar || ".";
21220
21240
  const decimalPos = findDecimalBreakPos(flattened, entryIndex + 1, breakChar);
21221
21241
  const integralWidth = decimalPos ? measureRangeWidth(view, pos + node.nodeSize, decimalPos, coordCache, domPosCache) : measureRangeWidth(
@@ -21264,7 +21284,15 @@ function getParagraphContext($pos, cache, helpers2) {
21264
21284
  if (!cache.has(startPos)) {
21265
21285
  let tabStops = [];
21266
21286
  if (Array.isArray(node.attrs?.tabStops)) {
21267
- tabStops = node.attrs.tabStops;
21287
+ tabStops = node.attrs.tabStops.map((stop) => {
21288
+ const ref2 = stop?.tab;
21289
+ if (!ref2) return stop || null;
21290
+ return {
21291
+ val: ref2.tabType || "start",
21292
+ pos: twipsToPixels(Number(ref2.pos) || 0),
21293
+ leader: ref2.leader
21294
+ };
21295
+ }).filter(Boolean);
21268
21296
  } else {
21269
21297
  const style = helpers2.linkedStyles.getStyleById(node.attrs?.styleId);
21270
21298
  if (Array.isArray(style?.definition?.styles?.tabStops)) {
@@ -21365,9 +21393,9 @@ function getIndentWidth(view, paragraphStartPos, indentAttrs = {}, coordCache =
21365
21393
  }
21366
21394
  function calculateIndentFallback(indentAttrs = {}) {
21367
21395
  if (!indentAttrs) return 0;
21368
- const left2 = Number(indentAttrs.left) || 0;
21369
- const firstLine = Number(indentAttrs.firstLine) || 0;
21370
- const hanging = Number(indentAttrs.hanging) || 0;
21396
+ const left2 = twipsToPixels(Number(indentAttrs.left) || 0);
21397
+ const firstLine = twipsToPixels(Number(indentAttrs.firstLine) || 0);
21398
+ const hanging = twipsToPixels(Number(indentAttrs.hanging) || 0);
21371
21399
  let textIndent = 0;
21372
21400
  if (firstLine && hanging) {
21373
21401
  textIndent = firstLine - hanging;
@@ -21375,11 +21403,6 @@ function calculateIndentFallback(indentAttrs = {}) {
21375
21403
  textIndent = firstLine;
21376
21404
  } else if (hanging) {
21377
21405
  textIndent = -hanging;
21378
- } else if (typeof indentAttrs.textIndent === "string") {
21379
- const match = indentAttrs.textIndent.match(/(-?\d*\.?\d+)in$/);
21380
- if (match) {
21381
- textIndent = Number(match[1]) * 96;
21382
- }
21383
21406
  }
21384
21407
  if (textIndent) return left2 + textIndent;
21385
21408
  if (left2) return left2;
@@ -31816,8 +31839,8 @@ const Bold = Mark.create({
31816
31839
  value: {
31817
31840
  default: null,
31818
31841
  renderDOM: (attrs) => {
31819
- if (!attrs.value) return {};
31820
- if (attrs.value === "0") {
31842
+ if (attrs.value == null) return {};
31843
+ if (attrs.value === "0" || !attrs.value) {
31821
31844
  return { style: "font-weight: normal" };
31822
31845
  }
31823
31846
  return {};
@@ -31894,8 +31917,8 @@ const Italic = Mark.create({
31894
31917
  value: {
31895
31918
  default: null,
31896
31919
  renderDOM: (attrs) => {
31897
- if (!attrs.value) return {};
31898
- if (attrs.value === "0") return { style: "font-style: normal" };
31920
+ if (attrs.value == null) return {};
31921
+ if (attrs.value === "0" || !attrs.value) return { style: "font-style: normal" };
31899
31922
  return {};
31900
31923
  }
31901
31924
  }
@@ -32114,7 +32137,7 @@ const Strike = Mark.create({
32114
32137
  const merged = Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes);
32115
32138
  const { value } = mark.attrs;
32116
32139
  const { ...rest } = merged || {};
32117
- if (value === "0") {
32140
+ if (value === "0" || value === false) {
32118
32141
  return ["span", rest, 0];
32119
32142
  }
32120
32143
  return ["s", rest, 0];
@@ -32157,8 +32180,8 @@ const Strike = Mark.create({
32157
32180
  value: {
32158
32181
  default: null,
32159
32182
  renderDOM: (attrs) => {
32160
- if (!attrs.value) return {};
32161
- if (attrs.value === "0") {
32183
+ if (attrs.value == null) return {};
32184
+ if (attrs.value === "0" || !attrs.value) {
32162
32185
  return { style: "text-decoration: none" };
32163
32186
  }
32164
32187
  return {};
@@ -1,4 +1,4 @@
1
- import { aA as getDefaultExportFromCjs } from "./converter-Z2aFlUnt.js";
1
+ import { aD as getDefaultExportFromCjs } from "./converter-DxPmeV-v.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-Z2aFlUnt.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DCiWw1F7.js";
2
+ import { p as process$1 } from "./converter-DxPmeV-v.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-B2jkX1wz.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { a5 } from "./chunks/converter-Z2aFlUnt.js";
1
+ import { a5 } from "./chunks/converter-DxPmeV-v.js";
2
2
  export {
3
3
  a5 as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-Z2aFlUnt.js";
2
- import { D } from "./chunks/docx-zipper-DIZfYOpO.js";
1
+ import "./chunks/converter-DxPmeV-v.js";
2
+ import { D } from "./chunks/docx-zipper-BnnW7IuB.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DCiWw1F7.js";
2
- import "./chunks/converter-Z2aFlUnt.js";
3
- import "./chunks/docx-zipper-DIZfYOpO.js";
1
+ import { E } from "./chunks/editor-B2jkX1wz.js";
2
+ import "./chunks/converter-DxPmeV-v.js";
3
+ import "./chunks/docx-zipper-BnnW7IuB.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-DIZfYOpO.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-BnnW7IuB.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -681,8 +681,8 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
681
681
  border-top: 1px dashed #cb0e47;
682
682
  border-bottom: 1px dashed #cb0e47;
683
683
  background-color: #cb0e4722;
684
- text-decoration: line-through;
685
- text-decoration-thickness: 2px;
684
+ text-decoration: line-through !important;
685
+ text-decoration-thickness: 2px !important;
686
686
  }
687
687
  .ProseMirror .track-format-dec.highlighted {
688
688
  border-bottom: 2px solid gold;
@@ -767,7 +767,8 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
767
767
  .ProseMirror div[data-horizontal-rule='true'] {
768
768
  position: relative;
769
769
  z-index: auto;
770
- display: block;
770
+ display: inline-block;
771
+ vertical-align: middle;
771
772
  margin-top: auto;
772
773
  align-self: flex-end;
773
774
  }
@@ -1 +1 @@
1
- {"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAuBO;;;;;EAgrCN"}
1
+ {"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAuBO;;;;;EAirCN"}
@@ -57,7 +57,7 @@ export function translateParagraphNode(params: any): XmlReadyNode;
57
57
  * @param {SchemaNode} node
58
58
  * @returns {XmlReadyNode} The paragraph properties node
59
59
  */
60
- export function generateParagraphProperties(node: SchemaNode): XmlReadyNode;
60
+ export function generateParagraphProperties(params: any): XmlReadyNode;
61
61
  /**
62
62
  * Helper function to be used for text node translation
63
63
  * Also used for transforming text annotations for the final submit
@@ -1 +1 @@
1
- {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAiHA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyDxB;AAyFD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AAoBD;;;;;GAKG;AACH,kDAHW,UAAU,GACR,YAAY,CAwLxB;AAiDD;;;;;;;GAOG;AAEH,0DAJW,KAAQ,gBACN,YAAY,CA0DxB;AAED;;;;;GAKG;AACH,6DAFa,YAAY,CAYxB;AAED;;;;;GAKG;AACH,yCAHW,KAAQ;;;EAQlB;AAED;;;;;GAKG;AACH,2CAHW,QAAQ,EAAE,SAgBpB;AAED,uDA2CC;AAED;;;;;;GAMG;AACH,+CAJW,YAAY,QACZ,MAAM,GACJ,MAAM,CAqBlB;AA6UD;;;;;;;;;EAgBC;AAvmCM,8EAiDN;AAEM,mDAON;AA+iCD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAoFF;;;;;;;;;;;;;oBAhlCa,KAAQ;;;;;;;;;;UAMR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AA4GA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyDxB;AAyFD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AAED;;;;;GAKG;AACH,0DAFa,YAAY,CAuCxB;AAwBD;;;;;;;GAOG;AAEH,0DAJW,KAAQ,gBACN,YAAY,CAiExB;AAED;;;;;GAKG;AACH,6DAFa,YAAY,CAYxB;AAED;;;;;GAKG;AACH,yCAHW,KAAQ;;;EAQlB;AAED;;;;;GAKG;AACH,2CAHW,QAAQ,EAAE,SAgBpB;AAED,uDA2CC;AAED;;;;;;GAMG;AACH,+CAJW,YAAY,QACZ,MAAM,GACJ,MAAM,CAqBlB;AAmUD;;;;;;;;;EAgBC;AAx6BM,8EAiDN;AAEM,mDAON;AAg3BD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAoFF;;;;;;;;;;;;;oBAj5Ba,KAAQ;;;;;;;;;;UAMR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Gets the resolved paragraph properties by merging defaults, styles, and inline properties.
3
+ * @param {import('@translator').SCEncoderConfig} params
4
+ * @param {Object} inlineProps - The inline paragraph properties.
5
+ * @param {boolean} [insideTable=false] - Whether the paragraph is inside a table.
6
+ * @returns {Object} The resolved paragraph properties.
7
+ */
8
+ export function resolveParagraphProperties(params: import("@translator").SCEncoderConfig, inlineProps: any, insideTable?: boolean): any;
9
+ export function getDefaultProperties(params: any, translator: any): any;
10
+ export function getStyleProperties(params: any, styleId: any, translator: any): {
11
+ properties: any;
12
+ isDefault: boolean;
13
+ basedOn: any;
14
+ };
15
+ export function getNumberingProperties(params: any, ilvl: any, numId: any, translator: any): any;
16
+ export function encodeMarksFromRPr(runProperties: any, docx: any): {
17
+ type: string;
18
+ attrs: {};
19
+ }[];
20
+ export function decodeRPrFromMarks(marks: any): {};
21
+ export function resolveRunProperties(params: import("@translator").SCEncoderConfig, inlineRpr: any, resolvedPpr: any, isListNumber?: boolean): any;
22
+ export function combineProperties(propertiesArray: any, fullOverrideProps?: any[]): any;
23
+ export function combineRunProperties(propertiesArray: any): any;
24
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/styles.js"],"names":[],"mappings":"AAyDA;;;;;;GAMG;AACH,mDALW,OAAO,aAAa,EAAE,eAAe,kCAErC,OAAO,OAsCjB;AA8BD,wEAgBC;AAED;;;;EAsBC;AAED,iGA8CC;AAsCD;;;IAqGC;AAED,mDAoFC;AA5aM,6CALI,OAAO,aAAa,EAAE,eAAe,iEA8C/C;AAoKM,wFA8BN;AAEM,gEAEN"}
@@ -29,7 +29,7 @@ export function createDocumentJson(docx: ParsedDocx, converter: SuperConverter,
29
29
  pageStyles: any;
30
30
  } | null;
31
31
  export function defaultNodeListHandler(): {
32
- handler: ({ nodes: elements, docx, insideTrackChange, converter, editor, filename, parentStyleId, lists, inlineDocumentFonts, path, }: {
32
+ handler: ({ nodes: elements, docx, insideTrackChange, converter, editor, filename, parentStyleId, lists, inlineDocumentFonts, path, extraParams, }: {
33
33
  nodes: any;
34
34
  docx: any;
35
35
  insideTrackChange: any;
@@ -40,6 +40,7 @@ export function defaultNodeListHandler(): {
40
40
  lists: any;
41
41
  inlineDocumentFonts: any;
42
42
  path?: any[];
43
+ extraParams?: {};
43
44
  }) => any[];
44
45
  handlerEntities: any[];
45
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"docxImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/docxImporter.js"],"names":[],"mappings":"AAifA;;;;;;;;GAQG;AACH,wDAFa,MAAS,IAAI,CAiBzB;AAoHD;;;;;;;;GAQG;AACH,mDAHW,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC,SA4B1E;AA/mBM,yCALI,UAAU,aACV,cAAc,UACd,MAAM,GACJ;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,kBAAkB,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,GAAC,CAAA;CAAC,GAAC,IAAI,CAuGhF;AAEM;;;;;;;;;;;;;;EA6BN;sBAtJY,OAAO,GAAA,CAAC;yBACR;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAC,CAAC;IAAC,IAAI,EAAE,GAAC,CAAC;IAAC,KAAK,EAAE,GAAC,CAAC;IAAC,KAAK,EAAE,EAAE,CAAC;CAAC;yBACzD;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,EAAE,CAAA;CAAC;gCAEzB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,KAAK,UAAU,EAAE;8BAChF;IAAC,OAAO,EAAE,iBAAiB,CAAC;IAAC,eAAe,EAAE,gBAAgB,EAAE,CAAA;CAAC;0BAEjE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,OAAO,KAAK;IAAC,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC;+BAC7I;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAC"}
1
+ {"version":3,"file":"docxImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/docxImporter.js"],"names":[],"mappings":"AAmfA;;;;;;;;GAQG;AACH,wDAFa,MAAS,IAAI,CAiBzB;AAoHD;;;;;;;;GAQG;AACH,mDAHW,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC,SA4B1E;AAjnBM,yCALI,UAAU,aACV,cAAc,UACd,MAAM,GACJ;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,kBAAkB,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,GAAC,CAAA;CAAC,GAAC,IAAI,CAuGhF;AAEM;;;;;;;;;;;;;;;EA6BN;sBAtJY,OAAO,GAAA,CAAC;yBACR;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAC,CAAC;IAAC,IAAI,EAAE,GAAC,CAAC;IAAC,KAAK,EAAE,GAAC,CAAC;IAAC,KAAK,EAAE,EAAE,CAAC;CAAC;yBACzD;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,EAAE,CAAA;CAAC;gCAEzB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,KAAK,UAAU,EAAE;8BAChF;IAAC,OAAO,EAAE,iBAAiB,CAAC;IAAC,eAAe,EAAE,gBAAgB,EAAE,CAAA;CAAC;0BAEjE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,OAAO,KAAK;IAAC,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC;+BAC7I;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAkMA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAwCnB;AAMD;;;;;;GAMG;AACH,gDAJW,MAAM,kBAahB;AAED;;;;;;;;;;;GAWG;AACH,+EAFa,MAAM,GAAC,IAAI,CAwBvB;AA2KD;;;;GAIG;AACH,8CAHW,MAAM,GACJ,MAAM,CAWlB;AAED;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;EAiDpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BC;AAoGD,kEAWC;AAED,qDAUC;AAED,yDAmBC;AAlsBD;;GAEG;AACH,iCAoBE;AAEF;;GAEG;AACH,oCAGE;AAwUK,2HAsCN;AAEM,sGAWN;AASM,iDALI,MAAM,SACN,MAAM,iCA8ChB"}
1
+ {"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AA8KA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAwCnB;AAMD;;;;;;GAMG;AACH,gDAJW,MAAM,kBAahB;AAED;;;;;;;;;;;GAWG;AACH,+EAFa,MAAM,GAAC,IAAI,CAwBvB;AA2KD;;;;GAIG;AACH,8CAHW,MAAM,GACJ,MAAM,CAWlB;AAED;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;EAiDpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BC;AAoGD,kEAWC;AAED,qDAUC;AAED,yDAmBC;AA7qBD;;GAEG;AACH,iCAoBE;AAEF;;GAEG;AACH,oCAGE;AAmTK,2HAsCN;AAEM,sGAWN;AASM,iDALI,MAAM,SACN,MAAM,iCA8ChB"}
@@ -4,6 +4,17 @@
4
4
  * @returns {PmMarkJson[]}
5
5
  */
6
6
  export function parseMarks(property: any, unknownMarks?: any[], docx?: any): PmMarkJson[];
7
+ export function handleStyleChangeMarksV2(rPrChange: any, currentMarks: any, params: any): {
8
+ type: string;
9
+ attrs: {
10
+ before: any[];
11
+ after: any[];
12
+ id: any;
13
+ date: any;
14
+ author: any;
15
+ authorEmail: any;
16
+ };
17
+ }[];
7
18
  /**
8
19
  *
9
20
  * @param {XmlNode} rPr
@@ -1 +1 @@
1
- {"version":3,"file":"markImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/markImporter.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,6EAFa,UAAU,EAAE,CAsGxB;AAED;;;;;GAKG;AACH,4CAJW,OAAO,gBACP,UAAU,EAAE,GACV,UAAU,EAAE,CAiBxB;AAED;;;;GAIG;AACH,yCAHW,UAAU,EAAE,GACV,UAAU,EAAE,CAoBxB;AAED;;;;;GAKG;AACH,uCAJW,MAAM,+BAEJ,GAAC,CA6Bb;AAED,oEAsBC;AAED,wDAIC;AAED,4DAYC;AAED,2DAKC;AAED,2DAOC"}
1
+ {"version":3,"file":"markImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/markImporter.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,6EAFa,UAAU,EAAE,CAsGxB;AAED;;;;;;;;;;IAoBC;AAED;;;;;GAKG;AACH,4CAJW,OAAO,gBACP,UAAU,EAAE,GACV,UAAU,EAAE,CAiBxB;AAED;;;;GAIG;AACH,yCAHW,UAAU,EAAE,GACV,UAAU,EAAE,CAoBxB;AAED;;;;;GAKG;AACH,uCAJW,MAAM,+BAEJ,GAAC,CA6Bb;AAED,oEAuBC;AAED,wDAIC;AAED,4DAYC;AAED,2DAKC;AAED,2DAOC"}
@@ -1 +1 @@
1
- {"version":3,"file":"trackChangesImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/trackChangesImporter.js"],"names":[],"mappings":"AA+BA;;GAEG;AACH,wCAsCE;AAEF;;GAEG;AACH,+CAGE;;;;AA3EF,uDAwBC"}
1
+ {"version":3,"file":"trackChangesImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/trackChangesImporter.js"],"names":[],"mappings":"AA+BA;;GAEG;AACH,wCAwCE;AAEF;;GAEG;AACH,+CAGE;;;;AA7EF,uDAwBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/index.js"],"names":[],"mappings":"AA2LA,iCAAiC;AACjC,iCADW,kBAAkB,CACiC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/index.js"],"names":[],"mappings":"AA4LA,iCAAiC;AACjC,iCADW,kBAAkB,CACiC"}
@@ -8,6 +8,21 @@
8
8
  * @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
9
9
  */
10
10
  export function createSingleAttrPropertyHandler(xmlName: string, sdName?: string | null, attrName?: string, transformEncode?: Function, transformDecode?: Function): import("@translator").NodeTranslatorConfig;
11
+ /**
12
+ * Helper to create property handlers for boolean attributes (CT_OnOff => w:val)
13
+ * @param {string} xmlName The XML attribute name (with namespace).
14
+ * @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
15
+ * @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
16
+ */
17
+ export function createSingleBooleanPropertyHandler(xmlName: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
18
+ /**
19
+ * Helper to create property handlers for track changes attributes (CT_TrackChange => w:id, w:author, w:date, w:original)
20
+ * @param {string} xmlName The XML attribute name (with namespace).
21
+ * @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
22
+ * @param {Array} extraAttrs Additional attribute handlers to include.
23
+ * @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
24
+ */
25
+ export function createTrackChangesPropertyHandler(xmlName: string, sdName?: string | null, extraAttrs?: any[]): import("@translator").NodeTranslatorConfig;
11
26
  /**
12
27
  * Helper to create property handlers for measurement attributes (CT_TblWidth => w:w and w:type)
13
28
  * @param {string} xmlName The XML attribute name (with namespace).
@@ -24,19 +39,19 @@ export function createMeasurementPropertyHandler(xmlName: string, sdName?: strin
24
39
  export function createBorderPropertyHandler(xmlName?: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
25
40
  /**
26
41
  * Encodes properties of a node using provided translators and adds them to the attributes object.
27
- * @param {object} [node] The node containing elements to be encoded.
42
+ * @param {import('@translator').SCEncoderConfig} params The encoding parameters containing the nodes to process.
28
43
  * @param {object} [translatorsByXmlName] A mapping of XML names to their corresponding translators.
29
44
  * @param {boolean} [asArray=false] If true, encodes attributes as an array of objects; otherwise, as a single object.
30
45
  * @returns {object|Array} The encoded attributes as an object or array based on the asArray flag.
31
46
  */
32
- export function encodeProperties(node?: object, translatorsByXmlName?: object, asArray?: boolean): object | any[];
47
+ export function encodeProperties(params: import("@translator").SCEncoderConfig, translatorsByXmlName?: object, asArray?: boolean): object | any[];
33
48
  /** Decodes properties from a given properties object using provided translators and adds them to the elements array.
34
- * @param {object} [node] The node being processed.
49
+ * @param {import('@translator').SCDecoderConfig} params The decodeing parameters containing the node to process.
35
50
  * @param {object} [translatorsBySdName] A mapping of SuperDoc names to their corresponding translators.
36
51
  * @param {object} [properties] The properties object containing attributes to be decoded.
37
52
  * @returns {Array} An array of decoded elements.
38
53
  */
39
- export function decodeProperties(translatorsBySdName?: object, properties?: object): any[];
54
+ export function decodeProperties(params: import("@translator").SCDecoderConfig, translatorsBySdName?: object, properties?: object): any[];
40
55
  /**
41
56
  * Helper to create property handlers for nested properties (eg: w:tcBorders => borders)
42
57
  * @param {string} xmlName The XML element name (with namespace).
@@ -46,8 +61,19 @@ export function decodeProperties(translatorsBySdName?: object, properties?: obje
46
61
  * @returns {import('@translator').NodeTranslatorConfig} The nested property handler config with xmlName, sdName, encode, and decode functions.
47
62
  */
48
63
  export function createNestedPropertiesTranslator(xmlName: string, sdName: string, propertyTranslators: import("@translator").NodeTranslatorConfig[], defaultEncodedAttrs?: object): import("@translator").NodeTranslatorConfig;
64
+ /**
65
+ * Helper to create property handlers for nested array properties (eg: w:tabs => w:tab)
66
+ * @param {string} xmlName The XML element name (with namespace).
67
+ * @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
68
+ * @param {import('@translator').NodeTranslatorConfig[]} propertyTranslators An array of property translators to handle nested properties.
69
+ * @returns {import('@translator').NodeTranslatorConfig} The nested array property handler config with xmlName, sdName, encode, and decode functions.
70
+ */
71
+ export function createNestedArrayPropertyHandler(xmlName: string, sdName: string | null, propertyTranslators: import("@translator").NodeTranslatorConfig[], extraParamsForDecode?: {}): import("@translator").NodeTranslatorConfig;
49
72
  export function generateV2HandlerEntity(handlerName: string, translator: import("../node-translator/").NodeTranslator): import("../../v2/importer/docxImporter").NodeHandlerEntry;
73
+ export function createSingleIntegerPropertyHandler(xmlName: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
50
74
  export function createAttributeHandler(xmlName?: string, sdName?: string | null, transformEncode?: any, transformDecode?: any): import("@translator").AttrConfig;
75
+ export function createIntegerAttributeHandler(xmlName: string, sdName?: string | null): import("@translator").AttrConfig;
76
+ export function createBooleanAttributeHandler(xmlName: string, sdName?: string | null): import("@translator").AttrConfig;
51
77
  export function parseBoolean(value: string): boolean | undefined;
52
78
  export function booleanToString(value: boolean): string | undefined;
53
79
  export function parseInteger(value: any): number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/utils.js"],"names":[],"mappings":"AAwBA;;;;;;;;GAQG;AACH,yDAPW,MAAM,WACN,MAAM,GAAC,IAAI,aACX,MAAM,2DAGJ,OAAO,aAAa,EAAE,oBAAoB,CAuBtD;AAED;;;;;GAKG;AACH,0DAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAmBtD;AAED;;;;;GAKG;AACH,sDAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAoDtD;AAoBD;;;;;;GAMG;AACH,wCALW,MAAM,yBACN,MAAM,YACN,OAAO,GACL,MAAM,QAAM,CAqBxB;AAED;;;;;GAKG;AACH,uDAJW,MAAM,eACN,MAAM,SAmBhB;AAED;;;;;;;GAOG;AACH,0DANW,MAAM,UACN,MAAM,uBACN,OAAO,aAAa,EAAE,oBAAoB,EAAE,wBAC5C,MAAM,GACJ,OAAO,aAAa,EAAE,oBAAoB,CAwCtD;AAvPM,qDAJI,MAAM,cACN,OAAO,qBAAqB,EAAE,cAAc,GACzC,OAAO,gCAAgC,EAAE,gBAAgB,CAgBrE;AA2HK,iDAJI,MAAM,WACN,MAAM,GAAC,IAAI,iDACT,OAAO,aAAa,EAAE,UAAU,CAY5C;AA4GM,oCAHI,MAAM,GACJ,OAAO,GAAC,SAAS,CAEoE;AAQ3F,uCAHI,OAAO,GACL,MAAM,GAAC,SAAS,CAE8D;AAQpF,oCAHI,GAAG,GACD,MAAM,GAAC,SAAS,CAM5B;AAQM,uCAHI,GAAG,GACD,MAAM,GAAC,SAAS,CAK5B"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/utils.js"],"names":[],"mappings":"AAwBA;;;;;;;;GAQG;AACH,yDAPW,MAAM,WACN,MAAM,GAAC,IAAI,aACX,MAAM,2DAGJ,OAAO,aAAa,EAAE,oBAAoB,CAuBtD;AAED;;;;;GAKG;AACH,4DAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAatD;AAWD;;;;;;GAMG;AACH,2DALW,MAAM,WACN,MAAM,GAAC,IAAI,uBAET,OAAO,aAAa,EAAE,oBAAoB,CAqBtD;AAED;;;;;GAKG;AACH,0DAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAmBtD;AAED;;;;;GAKG;AACH,sDAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAoDtD;AAsCD;;;;;;GAMG;AACH,yCALW,OAAO,aAAa,EAAE,eAAe,yBACrC,MAAM,YACN,OAAO,GACL,MAAM,QAAM,CA8BxB;AAED;;;;;GAKG;AACH,yCALW,OAAO,aAAa,EAAE,eAAe,wBACrC,MAAM,eACN,MAAM,SAmBhB;AAED;;;;;;;GAOG;AACH,0DANW,MAAM,UACN,MAAM,uBACN,OAAO,aAAa,EAAE,oBAAoB,EAAE,wBAC5C,MAAM,GACJ,OAAO,aAAa,EAAE,oBAAoB,CA+CtD;AAED;;;;;;GAMG;AACH,0DALW,MAAM,UACN,MAAM,GAAC,IAAI,uBACX,OAAO,aAAa,EAAE,oBAAoB,EAAE,8BAC1C,OAAO,aAAa,EAAE,oBAAoB,CA6DtD;AArZM,qDAJI,MAAM,cACN,OAAO,qBAAqB,EAAE,cAAc,GACzC,OAAO,gCAAgC,EAAE,gBAAgB,CAgBrE;AA2DK,4DAJI,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAGmC;AAuHnF,iDAJI,MAAM,WACN,MAAM,GAAC,IAAI,iDACT,OAAO,aAAa,EAAE,UAAU,CAY5C;AAQM,uDAJI,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,UAAU,CAG2B;AAQjE,uDAJI,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,UAAU,CAG2B;AAgMjE,oCAHI,MAAM,GACJ,OAAO,GAAC,SAAS,CAEmF;AAQ1G,uCAHI,OAAO,GACL,MAAM,GAAC,SAAS,CAE8D;AAQpF,oCAHI,GAAG,GACD,MAAM,GAAC,SAAS,CAM5B;AAQM,uCAHI,GAAG,GACD,MAAM,GAAC,SAAS,CAK5B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The NodeTranslator instance for the w:adjustRightInd element.
3
+ * @type {import('@translator').NodeTranslator}
4
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 373
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
7
+ //# sourceMappingURL=adjustRightInd-translator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adjustRightInd-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,yBAHU,OAAO,aAAa,EAAE,cAAc,CAGwD"}
@@ -0,0 +1,2 @@
1
+ export * from "./adjustRightInd-translator.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/adjustRightInd/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The NodeTranslator instance for the w:autoSpaceDE element.
3
+ * @type {import('@translator').NodeTranslator}
4
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 195
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
7
+ //# sourceMappingURL=autoSpaceDE-translator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoSpaceDE-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,yBAHU,OAAO,aAAa,EAAE,cAAc,CAGqD"}
@@ -0,0 +1,2 @@
1
+ export * from "./autoSpaceDE-translator.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDE/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The NodeTranslator instance for the w:autoSpaceDN element.
3
+ * @type {import('@translator').NodeTranslator}
4
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 196
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
7
+ //# sourceMappingURL=autoSpaceDN-translator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoSpaceDN-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,yBAHU,OAAO,aAAa,EAAE,cAAc,CAGqD"}
@@ -0,0 +1,2 @@
1
+ export * from "./autoSpaceDN-translator.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDN/index.js"],"names":[],"mappings":""}