@harbour-enterprises/superdoc 0.20.2 → 0.21.0-RC2

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 (271) hide show
  1. package/dist/chunks/{PdfViewer-BceCsygM.es.js → PdfViewer-CbGuPQY8.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-BhwyCIho.cjs → PdfViewer-DGbJ8_qc.cjs} +1 -1
  3. package/dist/chunks/{index-B6tAKGVb.cjs → index-ecl0ZFNw.cjs} +14 -33
  4. package/dist/chunks/{index-C0kV6dM8.es.js → index-qjntJEk0.es.js} +14 -33
  5. package/dist/chunks/{super-editor.es-BollA_Sr.es.js → super-editor.es-BF_Xaucb.es.js} +6167 -3139
  6. package/dist/chunks/{super-editor.es-Dzt_HBkR.cjs → super-editor.es-CS5l-cVZ.cjs} +6167 -3139
  7. package/dist/core/SuperDoc.d.ts.map +1 -1
  8. package/dist/stores/comments-store.d.ts.map +1 -1
  9. package/dist/style.css +38 -0
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-DyzbfydS.js → converter-DUqGq6qj.js} +4201 -2198
  12. package/dist/super-editor/chunks/{docx-zipper-Bk9SAmal.js → docx-zipper-CQsQR8Zs.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-BWE7oMgS.js → editor-gMF6aWiz.js} +2539 -1559
  14. package/dist/super-editor/chunks/{toolbar-BmHEsvA1.js → toolbar-BxsT1ZgG.js} +11 -21
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/src/components/toolbar/format-negation.d.ts +5 -0
  20. package/dist/super-editor/src/core/commands/index.d.ts +1 -0
  21. package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +42 -0
  22. package/dist/super-editor/src/core/commands/types/index.d.ts +29 -1
  23. package/dist/super-editor/src/core/helpers/index.d.ts +1 -0
  24. package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +1 -0
  25. package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +5 -0
  26. package/dist/super-editor/src/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +6 -0
  27. package/dist/super-editor/src/core/super-converter/exporter.d.ts +15 -1
  28. package/dist/super-editor/src/core/super-converter/helpers.d.ts +4 -0
  29. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +6 -0
  30. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +5 -0
  31. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +6 -0
  32. package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +1 -1
  33. package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +12 -0
  34. package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +6 -6
  35. package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +0 -22
  36. package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +1 -0
  37. package/dist/super-editor/src/core/super-converter/v3/handlers/constants/index.d.ts +1 -0
  38. package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +2 -8
  39. package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +10 -3
  40. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +3 -0
  41. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +4 -0
  42. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +7 -0
  43. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/index.d.ts +1 -0
  44. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +6 -0
  45. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +1 -0
  46. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +2 -0
  47. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +4 -0
  48. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +4 -0
  49. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +7 -0
  50. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +1 -0
  51. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +2 -0
  52. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +4 -0
  53. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +4 -0
  54. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +4 -0
  55. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +4 -0
  56. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +4 -0
  57. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +7 -0
  58. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +1 -0
  59. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +6 -0
  60. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +2 -0
  61. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +6 -0
  62. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +2 -0
  63. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +4 -0
  64. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +4 -0
  65. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +4 -0
  66. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +4 -0
  67. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +7 -0
  68. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +6 -0
  69. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +1 -0
  70. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +6 -0
  71. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +2 -0
  72. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +6 -0
  73. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +6 -0
  74. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +1 -0
  75. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +2 -0
  76. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +4 -0
  77. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +4 -0
  78. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +2 -0
  79. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +4 -0
  80. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +7 -0
  81. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +1 -0
  82. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +6 -0
  83. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +1 -0
  84. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +6 -0
  85. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +2 -0
  86. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +6 -0
  87. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +6 -0
  88. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +1 -1
  89. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +2 -0
  90. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +4 -0
  91. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +4 -0
  92. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +4 -0
  93. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +40 -0
  94. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +3 -0
  95. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +9 -0
  96. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +5 -0
  97. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/index.d.ts +1 -0
  98. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts +4 -0
  99. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +2 -0
  100. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +4 -0
  101. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +4 -0
  102. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +4 -0
  103. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +4 -0
  104. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +4 -0
  105. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/index.d.ts +1 -0
  106. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +5 -0
  107. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +2 -0
  108. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +4 -0
  109. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/index.d.ts +1 -0
  110. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +7 -0
  111. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +2 -0
  112. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +6 -0
  113. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +6 -0
  114. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/index.d.ts +1 -0
  115. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +5 -0
  116. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +11 -0
  117. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +1 -0
  118. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +6 -0
  119. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +2 -0
  120. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +6 -0
  121. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +6 -0
  122. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +2 -0
  123. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +4 -0
  124. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +7 -0
  125. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +2 -0
  126. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +4 -0
  127. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +4 -0
  128. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +2 -0
  129. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +4 -0
  130. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +4 -0
  131. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +1 -0
  132. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +28 -0
  133. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +1 -0
  134. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +6 -0
  135. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +1 -0
  136. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +6 -0
  137. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +1 -0
  138. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +2 -0
  139. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +1 -0
  140. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +6 -0
  141. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +1 -0
  142. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +5 -0
  143. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +5 -0
  144. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +1 -0
  145. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +6 -0
  146. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +1 -0
  147. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +6 -0
  148. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +1 -0
  149. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +6 -0
  150. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +1 -0
  151. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +6 -0
  152. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +1 -0
  153. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +5 -0
  154. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +1 -0
  155. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +6 -0
  156. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +1 -0
  157. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +6 -0
  158. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +1 -0
  159. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +6 -0
  160. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +1 -0
  161. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +6 -0
  162. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +1 -0
  163. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +6 -0
  164. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
  165. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +2 -0
  166. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +6 -0
  167. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +6 -0
  168. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +2 -0
  169. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +4 -0
  170. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +4 -0
  171. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +4 -0
  172. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +4 -0
  173. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +4 -0
  174. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/u-translator.d.ts +7 -0
  175. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +6 -0
  176. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +6 -0
  177. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +6 -0
  178. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +1 -0
  179. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +18 -0
  180. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +6 -0
  181. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +6 -0
  182. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +6 -0
  183. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +1 -0
  184. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +6 -0
  185. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +11 -1
  186. package/dist/super-editor/src/extensions/block-node/block-node.d.ts +30 -5
  187. package/dist/super-editor/src/extensions/bold/bold.d.ts +20 -0
  188. package/dist/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +6 -0
  189. package/dist/super-editor/src/extensions/bookmarks/index.d.ts +2 -1
  190. package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +12 -0
  191. package/dist/super-editor/src/extensions/color/color.d.ts +26 -0
  192. package/dist/super-editor/src/extensions/content-block/content-block.d.ts +30 -0
  193. package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +16 -0
  194. package/dist/super-editor/src/extensions/document/document.d.ts +26 -0
  195. package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +26 -0
  196. package/dist/super-editor/src/extensions/font-family/font-family.d.ts +29 -0
  197. package/dist/super-editor/src/extensions/font-size/font-size.d.ts +21 -0
  198. package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +9 -0
  199. package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +9 -0
  200. package/dist/super-editor/src/extensions/heading/heading.d.ts +12 -6
  201. package/dist/super-editor/src/extensions/highlight/highlight.d.ts +20 -0
  202. package/dist/super-editor/src/extensions/history/history.d.ts +7 -15
  203. package/dist/super-editor/src/extensions/image/image.d.ts +78 -0
  204. package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +3 -0
  205. package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +1 -0
  206. package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +2 -0
  207. package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +11 -0
  208. package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +3 -1
  209. package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
  210. package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +4 -0
  211. package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +18 -23
  212. package/dist/super-editor/src/extensions/index.d.ts +3 -2
  213. package/dist/super-editor/src/extensions/italic/italic.d.ts +10 -0
  214. package/dist/super-editor/src/extensions/line-break/line-break.d.ts +43 -0
  215. package/dist/super-editor/src/extensions/line-height/line-height.d.ts +22 -0
  216. package/dist/super-editor/src/extensions/link/link.d.ts +53 -25
  217. package/dist/super-editor/src/extensions/linked-styles/index.d.ts +1 -0
  218. package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +9 -0
  219. package/dist/super-editor/src/extensions/linked-styles/underline-css.d.ts +17 -0
  220. package/dist/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts +62 -0
  221. package/dist/super-editor/src/extensions/list-item/list-item.d.ts +48 -0
  222. package/dist/super-editor/src/extensions/mention/mention.d.ts +26 -0
  223. package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +14 -0
  224. package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +35 -0
  225. package/dist/super-editor/src/extensions/page-number/page-number.d.ts +52 -0
  226. package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +49 -0
  227. package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +15 -0
  228. package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +9 -0
  229. package/dist/super-editor/src/extensions/run/commands/index.d.ts +1 -0
  230. package/dist/super-editor/src/extensions/run/commands/split-run.d.ts +1 -0
  231. package/dist/super-editor/src/extensions/run/index.d.ts +1 -0
  232. package/dist/super-editor/src/extensions/run/run.d.ts +6 -0
  233. package/dist/super-editor/src/extensions/run-item/run-item.d.ts +24 -0
  234. package/dist/super-editor/src/extensions/search/search.d.ts +11 -2
  235. package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +29 -0
  236. package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +26 -0
  237. package/dist/super-editor/src/extensions/shared/cascade-toggle.d.ts +8 -0
  238. package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +9 -0
  239. package/dist/super-editor/src/extensions/strike/strike.d.ts +10 -0
  240. package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +9 -0
  241. package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +9 -0
  242. package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +24 -0
  243. package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +46 -27
  244. package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +29 -1
  245. package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +29 -1
  246. package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +12 -0
  247. package/dist/super-editor/src/extensions/tab/tab.d.ts +29 -0
  248. package/dist/super-editor/src/extensions/table/table.d.ts +376 -55
  249. package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +41 -0
  250. package/dist/super-editor/src/extensions/table-header/table-header.d.ts +22 -0
  251. package/dist/super-editor/src/extensions/table-row/table-row.d.ts +28 -0
  252. package/dist/super-editor/src/extensions/text/text.d.ts +14 -0
  253. package/dist/super-editor/src/extensions/text-align/text-align.d.ts +22 -0
  254. package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +19 -10
  255. package/dist/super-editor/src/extensions/text-style/text-style.d.ts +20 -0
  256. package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +20 -0
  257. package/dist/super-editor/src/extensions/underline/underline.d.ts +25 -0
  258. package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +14 -0
  259. package/dist/super-editor/src/tests/helpers/getParagraphText.d.ts +2 -0
  260. package/dist/super-editor/style.css +38 -0
  261. package/dist/super-editor/super-editor.es.js +146 -67
  262. package/dist/super-editor/toolbar.es.js +2 -2
  263. package/dist/super-editor.cjs +1 -1
  264. package/dist/super-editor.es.js +1 -1
  265. package/dist/superdoc.cjs +2 -2
  266. package/dist/superdoc.es.js +2 -2
  267. package/dist/superdoc.umd.js +6809 -3800
  268. package/dist/superdoc.umd.js.map +1 -1
  269. package/package.json +1 -1
  270. package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +0 -5
  271. /package/dist/super-editor/src/extensions/bookmarks/{bookmarks.d.ts → bookmark-start.d.ts} +0 -0
@@ -4,6 +4,11 @@
4
4
  * @property {string} name - Mark name
5
5
  * @property {Object} attrs - Mark attributes
6
6
  */
7
+ /**
8
+ * Configuration options for FormatCommands
9
+ * @typedef {Object} FormatCommandsOptions
10
+ * @category Options
11
+ */
7
12
  /**
8
13
  * @module FormatCommands
9
14
  * @sidebarTitle Format Commands
@@ -24,4 +29,8 @@ export type StoredStyle = {
24
29
  */
25
30
  attrs: any;
26
31
  };
32
+ /**
33
+ * Configuration options for FormatCommands
34
+ */
35
+ export type FormatCommandsOptions = any;
27
36
  import { Extension } from '@core/index.js';
@@ -1,7 +1,16 @@
1
+ /**
2
+ * Configuration options for Gapcursor
3
+ * @typedef {Object} GapcursorOptions
4
+ * @category Options
5
+ */
1
6
  /**
2
7
  * @module Gapcursor
3
8
  * @sidebarTitle Gap Cursor
4
9
  * @snippetPath /snippets/extensions/gapcursor.mdx
5
10
  */
6
11
  export const Gapcursor: Extension;
12
+ /**
13
+ * Configuration options for Gapcursor
14
+ */
15
+ export type GapcursorOptions = any;
7
16
  import { Extension } from '@core/index.js';
@@ -1,8 +1,15 @@
1
1
  /**
2
2
  * Heading attributes
3
3
  * @typedef {Object} HeadingAttributes
4
+ * @category Attributes
4
5
  * @property {number} level - Heading level (1-6)
5
6
  */
7
+ /**
8
+ * Configuration options for Heading
9
+ * @typedef {Object} HeadingOptions
10
+ * @category Options
11
+ * @property {number[]} [levels=[1,2,3,4,5,6]] - Supported heading levels
12
+ */
6
13
  /**
7
14
  * @module Heading
8
15
  * @sidebarTitle Heading
@@ -18,10 +25,9 @@ export const Heading: Extension;
18
25
  /**
19
26
  * Heading attributes
20
27
  */
21
- export type HeadingAttributes = {
22
- /**
23
- * - Heading level (1-6)
24
- */
25
- level: number;
26
- };
28
+ export type HeadingAttributes = any;
29
+ /**
30
+ * Configuration options for Heading
31
+ */
32
+ export type HeadingOptions = any;
27
33
  import { Extension } from '@core/index.js';
@@ -1,3 +1,15 @@
1
+ /**
2
+ * Configuration options for Highlight
3
+ * @typedef {Object} HighlightOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes={}] - HTML attributes for highlight elements
6
+ */
7
+ /**
8
+ * Attributes for highlight marks
9
+ * @typedef {Object} HighlightAttributes
10
+ * @category Attributes
11
+ * @property {string} [color] - Background color (CSS color value)
12
+ */
1
13
  /**
2
14
  * @module Highlight
3
15
  * @sidebarTitle Highlight
@@ -5,4 +17,12 @@
5
17
  * @shortcut Mod-Shift-h | toggleHighlight | Toggle highlighted formatting
6
18
  */
7
19
  export const Highlight: Mark;
20
+ /**
21
+ * Configuration options for Highlight
22
+ */
23
+ export type HighlightOptions = any;
24
+ /**
25
+ * Attributes for highlight marks
26
+ */
27
+ export type HighlightAttributes = any;
8
28
  import { Mark } from '@core/index.js';
@@ -1,8 +1,9 @@
1
1
  /**
2
- * History configuration
3
- * @typedef {Object} HistoryConfig
4
- * @property {number} [depth=100] - Maximum number of history events to store
5
- * @property {number} [newGroupDelay=500] - Time in ms to group changes together
2
+ * Configuration options for History
3
+ * @typedef {Object} HistoryOptions
4
+ * @category Options
5
+ * @property {number} [depth=100] - Maximum undo/redo steps to remember
6
+ * @property {number} [newGroupDelay=500] - Milliseconds to wait before starting a new history group
6
7
  */
7
8
  /**
8
9
  * @module History
@@ -14,16 +15,7 @@
14
15
  */
15
16
  export const History: Extension;
16
17
  /**
17
- * History configuration
18
+ * Configuration options for History
18
19
  */
19
- export type HistoryConfig = {
20
- /**
21
- * - Maximum number of history events to store
22
- */
23
- depth?: number;
24
- /**
25
- * - Time in ms to group changes together
26
- */
27
- newGroupDelay?: number;
28
- };
20
+ export type HistoryOptions = any;
29
21
  import { Extension } from '@core/Extension.js';
@@ -1,7 +1,85 @@
1
+ /**
2
+ * Configuration options for Image
3
+ * @typedef {Object} ImageOptions
4
+ * @category Options
5
+ * @property {boolean} [allowBase64=true] - Allow base64 encoded images
6
+ * @property {Object} [htmlAttributes] - Default HTML attributes for image elements
7
+ */
8
+ /**
9
+ * Attributes for image nodes
10
+ * @typedef {Object} ImageAttributes
11
+ * @category Attributes
12
+ * @property {string} [src] - Image source URL or path
13
+ * @property {string} [alt='Uploaded picture'] - Alternative text for accessibility
14
+ * @property {string} [title] - Image title/tooltip text
15
+ * @property {Object} [size] - Image dimensions
16
+ * @property {number} [size.width] - Width in pixels
17
+ * @property {number} [size.height] - Height in pixels
18
+ * @property {Object} [padding] - Image padding/margins
19
+ * @property {number} [padding.left] - Left padding in pixels
20
+ * @property {number} [padding.top] - Top padding in pixels
21
+ * @property {number} [padding.bottom] - Bottom padding in pixels
22
+ * @property {number} [padding.right] - Right padding in pixels
23
+ * @property {Object} [marginOffset] - Margin offset for anchored images
24
+ * @property {number} [marginOffset.left] - Left margin offset
25
+ * @property {number} [marginOffset.top] - Top margin offset
26
+ * @property {string} [style] - Custom inline CSS styles
27
+ * @property {string} [id] @internal Image element ID
28
+ * @property {string} [rId] @internal Relationship ID for Word export
29
+ * @property {Object} [originalPadding] @internal Original padding values from Word import
30
+ * @property {Object} [originalAttributes] @internal Original attributes from Word import
31
+ * @property {boolean} [wrapTopAndBottom] @internal Wrap text above and below image
32
+ * @property {Object} [anchorData] @internal Anchor positioning data for Word
33
+ * @property {boolean} [isAnchor] @internal Whether image is anchored
34
+ * @property {boolean} [simplePos] @internal Simple positioning flag
35
+ * @property {string} [wrapText] @internal Text wrapping style
36
+ */
37
+ /**
38
+ * Options for inserting an image
39
+ * @typedef {Object} ImageInsertOptions
40
+ * @property {string} src - Image source URL or data URI
41
+ * @property {string} [alt] - Alternative text
42
+ * @property {string} [title] - Image title
43
+ * @property {Object} [size] - Image dimensions
44
+ * @property {number} [size.width] - Width in pixels
45
+ * @property {number} [size.height] - Height in pixels
46
+ */
1
47
  /**
2
48
  * @module Image
3
49
  * @sidebarTitle Image
4
50
  * @snippetPath /snippets/extensions/image.mdx
5
51
  */
6
52
  export const Image: Node;
53
+ /**
54
+ * Configuration options for Image
55
+ */
56
+ export type ImageOptions = any;
57
+ /**
58
+ * Attributes for image nodes
59
+ */
60
+ export type ImageAttributes = any;
61
+ /**
62
+ * Options for inserting an image
63
+ */
64
+ export type ImageInsertOptions = {
65
+ /**
66
+ * - Image source URL or data URI
67
+ */
68
+ src: string;
69
+ /**
70
+ * - Alternative text
71
+ */
72
+ alt?: string;
73
+ /**
74
+ * - Image title
75
+ */
76
+ title?: string;
77
+ /**
78
+ * - Image dimensions
79
+ */
80
+ size?: {
81
+ width?: number;
82
+ height?: number;
83
+ };
84
+ };
7
85
  import { Node } from '@core/index.js';
@@ -0,0 +1,3 @@
1
+ export function sanitizeImageFileName(inputName: any): any;
2
+ export function ensureUniqueFileName(preferredName: any, existingNames?: Set<any>): any;
3
+ export function buildMediaPath(fileName: any): string;
@@ -0,0 +1 @@
1
+ export function base64ToFile(base64String: any): File;
@@ -0,0 +1,2 @@
1
+ export function urlToFile(url: string, filename?: string, mimeType?: string): Promise<File | null>;
2
+ export function validateUrlAccessibility(url: string): Promise<boolean>;
@@ -0,0 +1,11 @@
1
+ export function ImageRegistrationPlugin({ editor }: {
2
+ editor: any;
3
+ }): Plugin<{
4
+ set: DecorationSet;
5
+ }>;
6
+ export function findPlaceholder(state: any, id: any): any;
7
+ export function removeImagePlaceholder(state: any, tr: any, id: any): any;
8
+ export function addImagePlaceholder(state: any, tr: any, id: any, pos: any): any;
9
+ export function getImageRegistrationMetaType(tr: any): any;
10
+ import { DecorationSet } from 'prosemirror-view';
11
+ import { Plugin } from 'prosemirror-state';
@@ -1,6 +1,8 @@
1
1
  export * from "./getFileOpener.js";
2
2
  export * from "./startImageUpload.js";
3
3
  export * from "./handleImageUpload.js";
4
- export * from "./imagePlaceholderPlugin.js";
4
+ export * from "./imageRegistrationPlugin.js";
5
5
  export * from "./processUploadedImage.js";
6
6
  export * from "./imagePositionPlugin.js";
7
+ export * from "./fileNameUtils.js";
8
+ export * from "./rotation.js";
@@ -1,2 +1,2 @@
1
- export function processUploadedImage(fileData: string | File, editor: any): Promise<string | any>;
2
- export function getAllowedImageDimensions(width: number, height: number, editor: any): any;
1
+ export function processUploadedImage(fileData: string | File, getMaxContentSize: Function): Promise<string | any>;
2
+ export function getAllowedImageDimensions(width: number, height: number, getMaxContentSize: Function): any;
@@ -0,0 +1,4 @@
1
+ export function getRotationMargins(w: any, h: any, angleDegrees: any): {
2
+ horizontal: number;
3
+ vertical: number;
4
+ };
@@ -1,27 +1,22 @@
1
- /**
2
- * Uploads an image and inserts it into the document
3
- * @category Helper
4
- * @param {Object} params - Upload parameters
5
- * @param {Object} params.editor - Editor instance
6
- * @param {Object} params.view - Editor view
7
- * @param {File} params.file - Processed image file
8
- * @param {Object} params.size - Image dimensions
9
- * @param {Function} params.uploadHandler - Function to handle the upload
10
- * @returns {Promise<void>}
11
- * @example
12
- * await uploadImage({ editor, view, file, size, uploadHandler });
13
- * @note Shows placeholder during upload
14
- * @note Handles collaboration mode image sharing
15
- */
16
- export function uploadImage({ editor, view, file, size, uploadHandler }: {
17
- editor: any;
1
+ export function replaceSelectionWithImagePlaceholder({ editorOptions, view, id }: {
2
+ editorOptions: any;
18
3
  view: any;
19
- file: File;
20
- size: any;
21
- uploadHandler: Function;
22
- }): Promise<void>;
23
- export function startImageUpload({ editor, view, file }: {
4
+ id: any;
5
+ }): void;
6
+ export function uploadAndInsertImage({ editor, view, file, size, id }: {
24
7
  editor: any;
25
8
  view: any;
26
- file: File;
9
+ file: any;
10
+ size: any;
11
+ id: any;
27
12
  }): Promise<void>;
13
+ export function checkAndProcessImage({ getMaxContentSize, file }: {
14
+ getMaxContentSize: any;
15
+ file: any;
16
+ }): Promise<{
17
+ file: any;
18
+ size: {
19
+ width: any;
20
+ height: any;
21
+ };
22
+ }>;
@@ -2,7 +2,7 @@ import { History } from './history/index.js';
2
2
  import { Heading } from './heading/index.js';
3
3
  import { Document } from './document/index.js';
4
4
  import { Text } from './text/index.js';
5
- import { RunItem } from './run-item/index.js';
5
+ import { Run } from './run/index.js';
6
6
  import { BulletList } from './bullet-list/index.js';
7
7
  import { OrderedList } from './ordered-list/index.js';
8
8
  import { ListItem } from './list-item/index.js';
@@ -39,6 +39,7 @@ import { FieldAnnotation } from './field-annotation/index.js';
39
39
  import { fieldAnnotationHelpers } from './field-annotation/index.js';
40
40
  import { Image } from './image/index.js';
41
41
  import { BookmarkStart } from './bookmarks/index.js';
42
+ import { BookmarkEnd } from './bookmarks/index.js';
42
43
  import { PopoverPlugin } from './popover-plugin/index.js';
43
44
  import { Mention } from './mention/index.js';
44
45
  import { Collaboration } from './collaboration/index.js';
@@ -62,4 +63,4 @@ import { DocumentSection } from './structured-content/index.js';
62
63
  import { NodeResizer } from './noderesizer/index.js';
63
64
  import { CustomSelection } from './custom-selection/index.js';
64
65
  import { TextTransform } from './text-transform/index.js';
65
- export { History, Heading, Document, Text, RunItem, BulletList, OrderedList, ListItem, Paragraph, CommentRangeStart, CommentRangeEnd, CommentReference, TabNode, LineBreak, HardBreak, Bold, Italic, Underline, Highlight, Strike, Color, FontFamily, FontSize, TextAlign, TextIndent, TextStyle, LineHeight, FormatCommands, CommentsPlugin, Gapcursor, Table, TableRow, TableCell, TableHeader, Placeholder, DropCursor, BlockNode, FieldAnnotation, fieldAnnotationHelpers, Image, BookmarkStart, PopoverPlugin, Mention, Collaboration, CollaborationCursor, TrackChanges, TrackInsert, TrackDelete, TrackFormat, CommentsMark, trackChangesHelpers, AiMark, AiAnimationMark, AiLoaderNode, AiPlugin, Search, StructuredContent, StructuredContentBlock, DocumentSection, NodeResizer, CustomSelection, TextTransform };
66
+ export { History, Heading, Document, Text, Run, BulletList, OrderedList, ListItem, Paragraph, CommentRangeStart, CommentRangeEnd, CommentReference, TabNode, LineBreak, HardBreak, Bold, Italic, Underline, Highlight, Strike, Color, FontFamily, FontSize, TextAlign, TextIndent, TextStyle, LineHeight, FormatCommands, CommentsPlugin, Gapcursor, Table, TableRow, TableCell, TableHeader, Placeholder, DropCursor, BlockNode, FieldAnnotation, fieldAnnotationHelpers, Image, BookmarkStart, BookmarkEnd, PopoverPlugin, Mention, Collaboration, CollaborationCursor, TrackChanges, TrackInsert, TrackDelete, TrackFormat, CommentsMark, trackChangesHelpers, AiMark, AiAnimationMark, AiLoaderNode, AiPlugin, Search, StructuredContent, StructuredContentBlock, DocumentSection, NodeResizer, CustomSelection, TextTransform };
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Configuration options for Italic
3
+ * @typedef {Object} ItalicOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes={}] - HTML attributes for italic elements
6
+ */
1
7
  /**
2
8
  * @module Italic
3
9
  * @sidebarTitle Italic
@@ -6,4 +12,8 @@
6
12
  * @shortcut Mod-I | toggleItalic | Toggle italic formatting (uppercase)
7
13
  */
8
14
  export const Italic: Mark;
15
+ /**
16
+ * Configuration options for Italic
17
+ */
18
+ export type ItalicOptions = any;
9
19
  import { Mark } from '@core/index.js';
@@ -1,13 +1,56 @@
1
+ /**
2
+ * Configuration options for LineBreak
3
+ * @typedef {Object} LineBreakOptions
4
+ * @category Options
5
+ */
6
+ /**
7
+ * Attributes for line break nodes
8
+ * @typedef {Object} LineBreakAttributes
9
+ * @category Attributes
10
+ * @property {string} [lineBreakType] @internal Type of line break - passthrough in this node
11
+ * @property {string} [clear] @internal Clear attribute - passthrough in this node
12
+ */
1
13
  /**
2
14
  * @module LineBreak
3
15
  * @sidebarTitle Line Break
4
16
  * @snippetPath /snippets/extensions/line-break.mdx
5
17
  */
6
18
  export const LineBreak: Node;
19
+ /**
20
+ * Configuration options for HardBreak
21
+ * @typedef {Object} HardBreakOptions
22
+ * @category Options
23
+ * @property {Object} [htmlAttributes] - HTML attributes for the break element
24
+ */
25
+ /**
26
+ * Attributes for hard break nodes
27
+ * @typedef {Object} HardBreakAttributes
28
+ * @category Attributes
29
+ * @property {string} [pageBreakSource] @internal Source of the page break
30
+ * @property {string} [pageBreakType] @internal Type of page break
31
+ * @property {string} [lineBreakType] @internal Type of line break - passthrough in this node
32
+ * @property {string} [clear] @internal Clear attribute - passthrough in this node
33
+ */
7
34
  /**
8
35
  * @module HardBreak
9
36
  * @sidebarTitle Hard Break
10
37
  * @snippetPath /snippets/extensions/hard-break.mdx
11
38
  */
12
39
  export const HardBreak: Node;
40
+ /**
41
+ * Configuration options for LineBreak
42
+ */
43
+ export type LineBreakOptions = any;
44
+ /**
45
+ * Attributes for line break nodes
46
+ */
47
+ export type LineBreakAttributes = any;
48
+ /**
49
+ * Configuration options for HardBreak
50
+ */
51
+ export type HardBreakOptions = any;
52
+ /**
53
+ * Attributes for hard break nodes
54
+ */
55
+ export type HardBreakAttributes = any;
13
56
  import { Node } from '@core/index.js';
@@ -3,6 +3,20 @@
3
3
  * @typedef {string|number} LineHeightValue
4
4
  * @description Line height as number (1.5) or string with unit ('1.5em', '24px')
5
5
  */
6
+ /**
7
+ * Configuration options for LineHeight
8
+ * @typedef {Object} LineHeightOptions
9
+ * @category Options
10
+ * @property {string[]} [types=['heading', 'paragraph']] - Block types to add line height support to
11
+ * @property {Object} [defaults] - Default configuration
12
+ * @property {string} [defaults.unit=''] - Default unit for line height values
13
+ */
14
+ /**
15
+ * Attributes for line height
16
+ * @typedef {Object} LineHeightAttributes
17
+ * @category Attributes
18
+ * @property {LineHeightValue} [lineHeight] - Line height value
19
+ */
6
20
  /**
7
21
  * @module LineHeight
8
22
  * @sidebarTitle Line Height
@@ -13,4 +27,12 @@ export const LineHeight: Extension;
13
27
  * Line height value
14
28
  */
15
29
  export type LineHeightValue = string | number;
30
+ /**
31
+ * Configuration options for LineHeight
32
+ */
33
+ export type LineHeightOptions = any;
34
+ /**
35
+ * Attributes for line height
36
+ */
37
+ export type LineHeightAttributes = any;
16
38
  import { Extension } from '@core/index.js';
@@ -1,3 +1,39 @@
1
+ /**
2
+ * Target frame options
3
+ * @typedef {'_top' | '_self' | '_parent' | '_blank' | string} TargetFrameOptions
4
+ */
5
+ /**
6
+ * Configuration options for Link
7
+ * @typedef {Object} LinkOptions
8
+ * @category Options
9
+ * @property {string[]} [protocols=['http', 'https']] - Allowed URL protocols
10
+ * @property {Object} [htmlAttributes] - HTML attributes for link elements
11
+ * @property {string} [htmlAttributes.target=null] - Default link target
12
+ * @property {string} [htmlAttributes.rel='noopener noreferrer nofollow'] - Default rel attribute
13
+ * @property {string} [htmlAttributes.class=null] - CSS class
14
+ * @property {string} [htmlAttributes.title=null] - Title attribute
15
+ */
16
+ /**
17
+ * Attributes for link marks
18
+ * @typedef {Object} LinkAttributes
19
+ * @category Attributes
20
+ * @property {string} [href] - URL or anchor reference
21
+ * @property {TargetFrameOptions} [target='_blank'] - Link target window
22
+ * @property {string} [rel='noopener noreferrer nofollow'] - Relationship attributes
23
+ * @property {string} [text] - Display text for the link
24
+ * @property {string} [name] - Anchor name for internal references
25
+ * @property {boolean} [history=true] - Whether to add to viewed hyperlinks list
26
+ * @property {string} [anchor] - Bookmark target name (ignored if rId and href specified)
27
+ * @property {string} [docLocation] - Location in target hyperlink
28
+ * @property {string} [tooltip] - Tooltip for the link
29
+ * @property {string} [rId] @internal Word relationship ID for internal links
30
+ */
31
+ /**
32
+ * Link options for setLink command
33
+ * @typedef {Object} SetLinkOptions
34
+ * @property {string} [href] - URL for the link
35
+ * @property {string} [text] - Display text (uses selection if omitted)
36
+ */
1
37
  /**
2
38
  * @module Link
3
39
  * @sidebarTitle Link
@@ -6,36 +42,28 @@
6
42
  */
7
43
  export const Link: Mark;
8
44
  /**
9
- * Link attributes
45
+ * Target frame options
10
46
  */
11
- export type LinkAttributes = {
12
- /**
13
- * - URL or anchor reference
14
- */
15
- href: string;
16
- /**
17
- * - Link target
18
- */
19
- target?: string;
20
- /**
21
- * - Relationship attributes
22
- */
23
- rel?: string;
47
+ export type TargetFrameOptions = "_top" | "_self" | "_parent" | "_blank" | string;
48
+ /**
49
+ * Configuration options for Link
50
+ */
51
+ export type LinkOptions = any;
52
+ /**
53
+ * Attributes for link marks
54
+ */
55
+ export type LinkAttributes = any;
56
+ /**
57
+ * Link options for setLink command
58
+ */
59
+ export type SetLinkOptions = {
24
60
  /**
25
- * - Word relationship ID for internal links
61
+ * - URL for the link
26
62
  */
27
- rId?: string;
63
+ href?: string;
28
64
  /**
29
- * - Display text for the link
65
+ * - Display text (uses selection if omitted)
30
66
  */
31
67
  text?: string;
32
- /**
33
- * - Anchor name for internal references
34
- */
35
- name?: string;
36
68
  };
37
- /**
38
- * Target frame options
39
- */
40
- export type TargetFrameOptions = "_top" | "_self" | "_parent" | "_blank" | string;
41
69
  import { Mark } from '@core/index.js';
@@ -1,3 +1,4 @@
1
1
  export * from "./linked-styles";
2
+ export * from "./underline-css.js";
2
3
  export * from "./helpers.js";
3
4
  export * from "./plugin.js";
@@ -5,6 +5,11 @@
5
5
  * @property {string} type - Style type ('paragraph' or 'character')
6
6
  * @property {Object} definition - Style definition from Word
7
7
  */
8
+ /**
9
+ * Configuration options for LinkedStyles
10
+ * @typedef {Object} LinkedStylesOptions
11
+ * @category Options
12
+ */
8
13
  /**
9
14
  * @module LinkedStyles
10
15
  * @sidebarTitle Linked Styles
@@ -28,4 +33,8 @@ export type LinkedStyle = {
28
33
  */
29
34
  definition: any;
30
35
  };
36
+ /**
37
+ * Configuration options for LinkedStyles
38
+ */
39
+ export type LinkedStylesOptions = any;
31
40
  import { Extension } from '@core/Extension.js';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Map OOXML underline types to CSS text-decoration properties.
3
+ * Returns a CSS style string (kebab-case) suitable for inline decorations.
4
+ *
5
+ * @param {Object} params
6
+ * @param {string} [params.type='single'] - OOXML w:u@w:val value
7
+ * @param {string|null} [params.color=null] - CSS color (e.g., '#RRGGBB')
8
+ * @param {string|null} [params.thickness=null] - Optional explicit thickness (e.g., '0.2em', '2px')
9
+ * @param {boolean} [params.approximate=true] - Whether to approximate non-standard styles
10
+ * @returns {string} CSS style string (e.g., 'text-decoration-line: underline; text-decoration-style: dashed;')
11
+ */
12
+ export function getUnderlineCssString({ type, color, thickness, approximate }?: {
13
+ type?: string;
14
+ color?: string | null;
15
+ thickness?: string | null;
16
+ approximate?: boolean;
17
+ }): string;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Collect textStyle marks within a list item node.
3
+ * @param {Node} listItem
4
+ * @param {MarkType} markType
5
+ * @returns {{ marks: Array, attrs: { lineHeight?: string } }}
6
+ */
7
+ export function collectTextStyleMarks(listItem: Node, markType: MarkType): {
8
+ marks: any[];
9
+ attrs: {
10
+ lineHeight?: string;
11
+ };
12
+ };
13
+ export function parseSizeFromRunProperties(listRunProperties: any): string;
14
+ export function parseFontFamilyFromRunProperties(listRunProperties: any): any;
15
+ export function readNodeViewStyles(view: any): {
16
+ fontSize: any;
17
+ fontFamily: any;
18
+ lineHeight: any;
19
+ };
20
+ export function getAdjacentListItemNodeView({ nodeView, pos, direction, activeNodeViews }: {
21
+ nodeView: any;
22
+ pos: any;
23
+ direction: any;
24
+ activeNodeViews: any;
25
+ }): any;
26
+ export function findSiblingListItem({ editor, pos, direction }: {
27
+ editor: any;
28
+ pos: any;
29
+ direction: any;
30
+ }): any;
31
+ export function deriveFontStylesFromNode({ node, textStyleType, defaultFont, defaultSize, listRunProperties }: {
32
+ node: any;
33
+ textStyleType: any;
34
+ defaultFont: any;
35
+ defaultSize: any;
36
+ listRunProperties: any;
37
+ }): {
38
+ fontSize: any;
39
+ fontFamily: any;
40
+ lineHeight: string;
41
+ hasSize: boolean;
42
+ hasFamily: boolean;
43
+ };
44
+ export function getStylesFromLinkedStyles({ node, pos, editor }: {
45
+ node: any;
46
+ pos: any;
47
+ editor: any;
48
+ }): {
49
+ font: any;
50
+ size: any;
51
+ };
52
+ export function resolveListItemTypography({ node, pos, editor, nodeView, activeNodeViews }: {
53
+ node: any;
54
+ pos: any;
55
+ editor: any;
56
+ nodeView: any;
57
+ activeNodeViews: any;
58
+ }): {
59
+ fontSize: any;
60
+ fontFamily: any;
61
+ lineHeight: string;
62
+ };