@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
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the tblOverlap 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 440
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./tblPr-translator.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The NodeTranslator instance for the w:tblPr element.
3
+ * @type {import('@translator').NodeTranslator}
4
+ */
5
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./tblStyle-translator.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the tblStyle 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 454
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./tblStyleColBandSize-translator.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the tblStyleColBandSize 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 657
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./tblStyleRowBandSize-translator.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the tblStyleRowBandSize 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 660
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./tblW-translator.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the tblW 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 455
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./tblpPr-translator.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the tblpPr 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 442
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -2,7 +2,7 @@
2
2
  * @param {Object} options
3
3
  * @returns {{type: string, content: (*|*[]), attrs: {}}}
4
4
  */
5
- export function handleTableCellNode({ params, node, table, row, rowBorders, styleTag, columnIndex, columnWidth, }: any): {
5
+ export function handleTableCellNode({ params, node, table, row, rowBorders, styleTag, columnIndex, columnWidth, allColumnWidths, }: any): {
6
6
  type: string;
7
7
  content: (any | any[]);
8
8
  attrs: {};
@@ -0,0 +1,2 @@
1
+ export * from "./top-translator.js";
2
+ export { translator as marginTopTranslator } from "./marginTop-translator.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the top 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 469
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The NodeTranslator instance for the top 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 468
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,7 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * The NodeTranslator instance for the w:u element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,6 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * @type {import('@translator').NodeTranslator}
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Anchor image node handler
3
+ * @param {import('@translator').SCEncoderConfig} params
4
+ * @returns {Object|null} Handler result
5
+ */
6
+ export function handleAnchorNode(params: import("@translator").SCEncoderConfig): any | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Translates anchor image
3
+ * @param {Object} params - The parameters for translation.
4
+ * @returns {Object} The XML representation.
5
+ */
6
+ export function translateAnchorNode(params: any): any;
@@ -0,0 +1 @@
1
+ export * from "./anchor-translator.js";
@@ -0,0 +1,18 @@
1
+ export function translateImageNode(params: any): any;
2
+ /**
3
+ * Decodes image into export XML
4
+ */
5
+ export type ExportParams = {
6
+ /**
7
+ * JSON node to translate (from PM schema)
8
+ */
9
+ node: any;
10
+ /**
11
+ * The stored body node to restore, if available
12
+ */
13
+ bodyNode: any;
14
+ /**
15
+ * The relationships to add to the document
16
+ */
17
+ relationships: any[];
18
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Encodes image xml into Editor node
3
+ * @param {Object} params
4
+ * @returns {Object|null}
5
+ */
6
+ export function handleImageNode(node: any, params: any, isAnchor: any): any | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Inline image node handler
3
+ * @param {import('@translator').SCEncoderConfig} params
4
+ * @returns {Object|null} Handler result
5
+ */
6
+ export function handleInlineNode(params: import("@translator").SCEncoderConfig): any | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Translates inline image
3
+ * @param {Object} params - The parameters for translation.
4
+ * @returns {Object} The XML representation.
5
+ */
6
+ export function translateInlineNode(params: any): any;
@@ -0,0 +1 @@
1
+ export * from "./inline-translator.js";
@@ -0,0 +1,6 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * @type {import('@translator').NodeTranslator}
5
+ */
6
+ export const translator: import("@translator").NodeTranslator;
@@ -21,7 +21,14 @@ export const TranslatorTypes: Readonly<{
21
21
  */
22
22
  /** @typedef {import('../../v2/importer/types').NodeHandlerParams} SCEncoderConfig */
23
23
  /** @typedef {import('../../v2/types').SuperDocNode} SCEncoderResult */
24
- /** @typedef {{ node: { attrs?: any, marks?: any[], type: string }, children?: any[], relationships?: any[] }} SCDecoderConfig */
24
+ /**
25
+ * @typedef {Object} SCDecoderConfig
26
+ * @property {{ attrs?: any, marks?: any[], type: string, content?: any[] }} node
27
+ * @property {any[]} [children]
28
+ * @property {any[]} [relationships]
29
+ * @property {Record<string, any>} [extraParams]
30
+ * @property {import('../../../Editor.js').Editor} [editor]
31
+ */
25
32
  /** @typedef {{ name: string, attributes?: any, elements: any[] }} SCDecoderResult */
26
33
  /**
27
34
  * @callback NodeTranslatorEncodeFn
@@ -150,9 +157,12 @@ export type SCDecoderConfig = {
150
157
  attrs?: any;
151
158
  marks?: any[];
152
159
  type: string;
160
+ content?: any[];
153
161
  };
154
162
  children?: any[];
155
163
  relationships?: any[];
164
+ extraParams?: Record<string, any>;
165
+ editor?: import("../../../Editor.js").Editor;
156
166
  };
157
167
  export type SCDecoderResult = {
158
168
  name: string;
@@ -1,19 +1,36 @@
1
1
  export const BlockNodePluginKey: PluginKey<any>;
2
+ /**
3
+ * @typedef {import('prosemirror-model').Node} ProseMirrorNode
4
+ * @typedef {import('prosemirror-state').Transaction} Transaction
5
+ */
2
6
  /**
3
7
  * Block node information object
4
8
  * @typedef {Object} BlockNodeInfo
5
- * @property {Object} node - The block node
9
+ * @property {ProseMirrorNode} node - The block node
6
10
  * @property {number} pos - Position in the document
7
11
  */
12
+ /**
13
+ * Configuration options for BlockNode
14
+ * @typedef {Object} BlockNodeOptions
15
+ * @category Options
16
+ */
17
+ /**
18
+ * Attributes for block nodes
19
+ * @typedef {Object} BlockNodeAttributes
20
+ * @category Attributes
21
+ * @property {string} [sdBlockId] @internal Unique identifier for the block
22
+ */
8
23
  /**
9
24
  * @module BlockNode
10
25
  * @sidebarTitle Block Node
11
26
  * @snippetPath /snippets/extensions/block-node.mdx
12
27
  */
13
28
  export const BlockNode: Extension;
14
- export function nodeAllowsSdBlockIdAttr(node: any): boolean;
15
- export function nodeNeedsSdBlockId(node: any): boolean;
16
- export function checkForNewBlockNodesInTrs(transactions: ArrayLike<any>): boolean;
29
+ export function nodeAllowsSdBlockIdAttr(node: ProseMirrorNode): boolean;
30
+ export function nodeNeedsSdBlockId(node: ProseMirrorNode): boolean;
31
+ export function checkForNewBlockNodesInTrs(transactions: Transaction[]): boolean;
32
+ export type ProseMirrorNode = import("prosemirror-model").Node;
33
+ export type Transaction = import("prosemirror-state").Transaction;
17
34
  /**
18
35
  * Block node information object
19
36
  */
@@ -21,11 +38,19 @@ export type BlockNodeInfo = {
21
38
  /**
22
39
  * - The block node
23
40
  */
24
- node: any;
41
+ node: ProseMirrorNode;
25
42
  /**
26
43
  * - Position in the document
27
44
  */
28
45
  pos: number;
29
46
  };
47
+ /**
48
+ * Configuration options for BlockNode
49
+ */
50
+ export type BlockNodeOptions = any;
51
+ /**
52
+ * Attributes for block nodes
53
+ */
54
+ export type BlockNodeAttributes = any;
30
55
  import { PluginKey } from 'prosemirror-state';
31
56
  import { Extension } from '@core/Extension.js';
@@ -1,3 +1,15 @@
1
+ /**
2
+ * Configuration options for Bold
3
+ * @typedef {Object} BoldOptions
4
+ * @category Options
5
+ * @property {Object} [htmlAttributes] HTML attributes for the strong element
6
+ */
7
+ /**
8
+ * Attributes for bold marks
9
+ * @typedef {Object} BoldAttributes
10
+ * @category Attributes
11
+ * @property {string} [value] Bold weight value ('0' renders as normal)
12
+ */
1
13
  /**
2
14
  * @module Bold
3
15
  * @sidebarTitle Bold
@@ -6,4 +18,12 @@
6
18
  * @shortcut Mod-B | toggleBold | Toggle bold formatting (uppercase)
7
19
  */
8
20
  export const Bold: Mark;
21
+ /**
22
+ * Configuration options for Bold
23
+ */
24
+ export type BoldOptions = any;
25
+ /**
26
+ * Attributes for bold marks
27
+ */
28
+ export type BoldAttributes = any;
9
29
  import { Mark } from '@core/index.js';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module BookmarkEnd
3
+ * @sidebarTitle Bookmarks
4
+ */
5
+ export const BookmarkEnd: Node;
6
+ import { Node } from '@core/index.js';
@@ -1 +1,2 @@
1
- export * from "./bookmarks";
1
+ export { BookmarkStart } from "./bookmark-start.js";
2
+ export { BookmarkEnd } from "./bookmark-end.js";
@@ -1,2 +1,14 @@
1
1
  export const BulletList: Node;
2
+ /**
3
+ * Configuration options for BulletList
4
+ */
5
+ export type BulletListOptions = any;
6
+ /**
7
+ * Attributes for bullet list nodes
8
+ */
9
+ export type BulletListAttributes = any;
10
+ /**
11
+ * Commands provided by BulletList extension
12
+ */
13
+ export type BulletListCommands = any;
2
14
  import { Node } from '@core/index.js';
@@ -3,6 +3,24 @@
3
3
  * @typedef {string} ColorValue
4
4
  * @description Accepts hex colors (#ff0000), rgb(255,0,0), or named colors (red)
5
5
  */
6
+ /**
7
+ * Configuration options for Color
8
+ * @typedef {Object} ColorOptions
9
+ * @category Options
10
+ * @property {string[]} [types=['textStyle']] Mark types to add color support to
11
+ */
12
+ /**
13
+ * Attributes for color marks
14
+ * @typedef {Object} ColorAttributes
15
+ * @category Attributes
16
+ * @property {ColorValue} [color] Text color value
17
+ * @example
18
+ * // Apply color to selected text
19
+ * editor.commands.setColor('#ff0000')
20
+ *
21
+ * // Remove color
22
+ * editor.commands.unsetColor()
23
+ */
6
24
  /**
7
25
  * @module Color
8
26
  * @sidebarTitle Color
@@ -13,4 +31,12 @@ export const Color: Extension;
13
31
  * Color value format
14
32
  */
15
33
  export type ColorValue = string;
34
+ /**
35
+ * Configuration options for Color
36
+ */
37
+ export type ColorOptions = any;
38
+ /**
39
+ * Attributes for color marks
40
+ */
41
+ export type ColorAttributes = any;
16
42
  import { Extension } from '@core/index.js';
@@ -13,6 +13,28 @@
13
13
  * @property {ContentBlockSize} [size] - Size and position configuration
14
14
  * @property {string} [background] - Background color (hex, rgb, or named color)
15
15
  */
16
+ /**
17
+ * Configuration options for ContentBlock
18
+ * @typedef {Object} ContentBlockOptions
19
+ * @category Options
20
+ * @property {Object} [htmlAttributes] HTML attributes for the block element
21
+ */
22
+ /**
23
+ * Attributes for content blocks
24
+ * @typedef {Object} ContentBlockAttributes
25
+ * @category Attributes
26
+ * @property {boolean} [horizontalRule=false] Whether this block is a horizontal rule
27
+ * @property {ContentBlockSize} [size] Size and position of the content block
28
+ * @property {string} [background] Background color for the block
29
+ * @property {Object} [drawingContent] @internal Internal drawing data
30
+ * @property {Object} [attributes] @internal Additional internal attributes
31
+ * @example
32
+ * // Insert a custom content block
33
+ * editor.commands.insertContentBlock({
34
+ * size: { width: '100%', height: 2 },
35
+ * background: '#e5e7eb'
36
+ * })
37
+ */
16
38
  /**
17
39
  * @module ContentBlock
18
40
  * @sidebarTitle Content Block
@@ -57,4 +79,12 @@ export type ContentBlockConfig = {
57
79
  */
58
80
  background?: string;
59
81
  };
82
+ /**
83
+ * Configuration options for ContentBlock
84
+ */
85
+ export type ContentBlockOptions = any;
86
+ /**
87
+ * Attributes for content blocks
88
+ */
89
+ export type ContentBlockAttributes = any;
60
90
  import { Node } from '@core/index.js';
@@ -5,6 +5,18 @@
5
5
  * @property {Object|null} preservedSelection - Stored selection
6
6
  * @property {boolean} showVisualSelection - Whether to show selection decoration
7
7
  */
8
+ /**
9
+ * Configuration options for CustomSelection
10
+ * @typedef {Object} CustomSelectionOptions
11
+ * @category Options
12
+ * @example
13
+ * // CustomSelection works automatically
14
+ * new SuperDoc({
15
+ * selector: '#editor',
16
+ * document: 'document.docx'
17
+ * // Selection handling is built-in
18
+ * });
19
+ */
8
20
  /**
9
21
  * Plugin key for custom selection management
10
22
  * @private
@@ -33,5 +45,9 @@ export type SelectionState = {
33
45
  */
34
46
  showVisualSelection: boolean;
35
47
  };
48
+ /**
49
+ * Configuration options for CustomSelection
50
+ */
51
+ export type CustomSelectionOptions = any;
36
52
  import { PluginKey } from 'prosemirror-state';
37
53
  import { Extension } from '@core/Extension.js';
@@ -1,7 +1,33 @@
1
+ /**
2
+ * Configuration options for Document
3
+ * @typedef {Object} DocumentOptions
4
+ * @category Options
5
+ * @example
6
+ * // Document node is the root - always included
7
+ * new SuperDoc({
8
+ * selector: '#editor',
9
+ * document: 'document.docx',
10
+ * // Document node wraps all content
11
+ * });
12
+ */
13
+ /**
14
+ * Attributes for document nodes
15
+ * @typedef {Object} DocumentAttributes
16
+ * @category Attributes
17
+ * @property {Object} [attributes] @internal Internal document attributes
18
+ */
1
19
  /**
2
20
  * @module Document
3
21
  * @sidebarTitle Document
4
22
  * @snippetPath /snippets/extensions/document.mdx
5
23
  */
6
24
  export const Document: Node;
25
+ /**
26
+ * Configuration options for Document
27
+ */
28
+ export type DocumentOptions = any;
29
+ /**
30
+ * Attributes for document nodes
31
+ */
32
+ export type DocumentAttributes = any;
7
33
  import { Node } from '@core/index.js';
@@ -1,7 +1,33 @@
1
+ /**
2
+ * Configuration options for DropCursor
3
+ * @typedef {Object} DropCursorOptions
4
+ * @category Options
5
+ * @property {string} [color='currentColor'] CSS color for the drop cursor indicator
6
+ * @property {number} [width=2] Width of the drop cursor line in pixels
7
+ * @property {string} [class] Optional CSS class to apply to the drop cursor element
8
+ * @example
9
+ * // Customize drop cursor appearance
10
+ * const ConfiguredDropCursor = DropCursor.configure({
11
+ * color: '#3b82f6',
12
+ * width: 3,
13
+ * class: 'custom-drop-cursor'
14
+ * });
15
+ *
16
+ * // Use in SuperDoc
17
+ * new SuperDoc({
18
+ * selector: '#editor',
19
+ * document: 'document.docx',
20
+ * editorExtensions: [ConfiguredDropCursor]
21
+ * });
22
+ */
1
23
  /**
2
24
  * @module DropCursor
3
25
  * @sidebarTitle Drop Cursor
4
26
  * @snippetPath /snippets/extensions/dropcursor.mdx
5
27
  */
6
28
  export const DropCursor: Extension;
29
+ /**
30
+ * Configuration options for DropCursor
31
+ */
32
+ export type DropCursorOptions = any;
7
33
  import { Extension } from '@core/index.js';
@@ -3,6 +3,27 @@
3
3
  * @typedef {string} FontFamilyValue
4
4
  * @description CSS font-family string (e.g., 'Arial', 'Times New Roman', 'sans-serif')
5
5
  */
6
+ /**
7
+ * Configuration options for FontFamily
8
+ * @typedef {Object} FontFamilyOptions
9
+ * @category Options
10
+ * @property {string[]} [types=['textStyle']] Mark types to add font family support to
11
+ */
12
+ /**
13
+ * Attributes for font family marks
14
+ * @typedef {Object} FontFamilyAttributes
15
+ * @category Attributes
16
+ * @property {FontFamilyValue} [fontFamily] Font family for text
17
+ * @example
18
+ * // Set font family on selected text
19
+ * editor.commands.setFontFamily('Arial')
20
+ *
21
+ * // Change to serif font
22
+ * editor.commands.setFontFamily('Georgia, serif')
23
+ *
24
+ * // Remove custom font
25
+ * editor.commands.unsetFontFamily()
26
+ */
6
27
  /**
7
28
  * @module FontFamily
8
29
  * @sidebarTitle Font Family
@@ -13,4 +34,12 @@ export const FontFamily: Extension;
13
34
  * Font family value
14
35
  */
15
36
  export type FontFamilyValue = string;
37
+ /**
38
+ * Configuration options for FontFamily
39
+ */
40
+ export type FontFamilyOptions = any;
41
+ /**
42
+ * Attributes for font family marks
43
+ */
44
+ export type FontFamilyAttributes = any;
16
45
  import { Extension } from '@core/index.js';
@@ -18,6 +18,19 @@
18
18
  * @typedef {string|number} FontSizeValue
19
19
  * @description Size with optional unit (e.g., '12pt', '16px', 14)
20
20
  */
21
+ /**
22
+ * Configuration options for FontSize
23
+ * @typedef {Object} FontSizeOptions
24
+ * @category Options
25
+ * @property {string[]} [types=['textStyle', 'tableCell']] - Node/mark types to add font size support to
26
+ * @property {FontSizeDefaults} [defaults] - Default size configuration
27
+ */
28
+ /**
29
+ * Attributes for font size
30
+ * @typedef {Object} FontSizeAttributes
31
+ * @category Attributes
32
+ * @property {FontSizeValue} [fontSize] - Font size with unit
33
+ */
21
34
  /**
22
35
  * @module FontSize
23
36
  * @sidebarTitle Font Size
@@ -49,4 +62,12 @@ export type FontSizeDefaults = {
49
62
  * Font size value
50
63
  */
51
64
  export type FontSizeValue = string | number;
65
+ /**
66
+ * Configuration options for FontSize
67
+ */
68
+ export type FontSizeOptions = any;
69
+ /**
70
+ * Attributes for font size
71
+ */
72
+ export type FontSizeAttributes = any;
52
73
  import { Extension } from '@core/index.js';