@harbour-enterprises/superdoc 0.20.0-next.15 → 0.20.0-next.3

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/README.md +4 -4
  2. package/dist/chunks/{PdfViewer-DuEWa8ox.cjs → PdfViewer-B9b7_8E2.cjs} +1 -1
  3. package/dist/chunks/{PdfViewer-D3gJ5ozH.es.js → PdfViewer-DbuZR81Q.es.js} +1 -1
  4. package/dist/chunks/{index-DiSIyVKk.es.js → index-CEAEymUl.es.js} +9 -32
  5. package/dist/chunks/{index-D2h9q27o.cjs → index-CLepjsej.cjs} +9 -32
  6. package/dist/chunks/{super-editor.es-4Ig7dBJr.es.js → super-editor.es-C7rC3O3K.es.js} +3084 -6128
  7. package/dist/chunks/{super-editor.es-lzaBZOn2.cjs → super-editor.es-TdXXCNpJ.cjs} +3084 -6128
  8. package/dist/core/SuperDoc.d.ts.map +1 -1
  9. package/dist/stores/comments-store.d.ts.map +1 -1
  10. package/dist/style.css +0 -38
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-BJVy6JMW.js → converter-BZ638uQi.js} +2133 -4142
  13. package/dist/super-editor/chunks/{docx-zipper-DWDJGX0b.js → docx-zipper-B-DSvrA8.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-BUCOmU2Y.js → editor-JXnNPHDg.js} +1558 -2538
  15. package/dist/super-editor/chunks/{toolbar-CiBIcgiI.js → toolbar-CGu2Zc7R.js} +2 -2
  16. package/dist/super-editor/converter.es.js +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/src/core/commands/index.d.ts +0 -1
  21. package/dist/super-editor/src/core/commands/types/index.d.ts +1 -29
  22. package/dist/super-editor/src/core/helpers/index.d.ts +0 -1
  23. package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +0 -5
  24. package/dist/super-editor/src/core/super-converter/exporter.d.ts +1 -15
  25. package/dist/super-editor/src/core/super-converter/helpers.d.ts +0 -4
  26. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +0 -5
  27. package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +1 -1
  28. package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +0 -12
  29. package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +6 -6
  30. package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +22 -0
  31. package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +8 -2
  32. package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +3 -10
  33. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +1 -1
  34. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
  35. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +1 -11
  36. package/dist/super-editor/src/extensions/block-node/block-node.d.ts +5 -30
  37. package/dist/super-editor/src/extensions/bold/bold.d.ts +0 -20
  38. package/dist/super-editor/src/extensions/bookmarks/index.d.ts +1 -2
  39. package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +0 -12
  40. package/dist/super-editor/src/extensions/color/color.d.ts +0 -26
  41. package/dist/super-editor/src/extensions/content-block/content-block.d.ts +0 -30
  42. package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +0 -16
  43. package/dist/super-editor/src/extensions/document/document.d.ts +0 -26
  44. package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +0 -26
  45. package/dist/super-editor/src/extensions/font-family/font-family.d.ts +0 -29
  46. package/dist/super-editor/src/extensions/font-size/font-size.d.ts +0 -21
  47. package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +0 -9
  48. package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +0 -9
  49. package/dist/super-editor/src/extensions/heading/heading.d.ts +6 -12
  50. package/dist/super-editor/src/extensions/highlight/highlight.d.ts +0 -20
  51. package/dist/super-editor/src/extensions/history/history.d.ts +15 -7
  52. package/dist/super-editor/src/extensions/image/image.d.ts +0 -78
  53. package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +5 -0
  54. package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +1 -3
  55. package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
  56. package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +23 -18
  57. package/dist/super-editor/src/extensions/index.d.ts +2 -3
  58. package/dist/super-editor/src/extensions/italic/italic.d.ts +0 -10
  59. package/dist/super-editor/src/extensions/line-break/line-break.d.ts +0 -43
  60. package/dist/super-editor/src/extensions/line-height/line-height.d.ts +0 -22
  61. package/dist/super-editor/src/extensions/link/link.d.ts +25 -53
  62. package/dist/super-editor/src/extensions/linked-styles/index.d.ts +0 -1
  63. package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +0 -9
  64. package/dist/super-editor/src/extensions/list-item/list-item.d.ts +0 -48
  65. package/dist/super-editor/src/extensions/mention/mention.d.ts +0 -26
  66. package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +0 -14
  67. package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +0 -35
  68. package/dist/super-editor/src/extensions/page-number/page-number.d.ts +0 -52
  69. package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +0 -49
  70. package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +0 -15
  71. package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +0 -9
  72. package/dist/super-editor/src/extensions/run-item/run-item.d.ts +0 -24
  73. package/dist/super-editor/src/extensions/search/search.d.ts +2 -11
  74. package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +0 -29
  75. package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +0 -26
  76. package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +0 -9
  77. package/dist/super-editor/src/extensions/strike/strike.d.ts +0 -10
  78. package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +27 -46
  79. package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +1 -29
  80. package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +1 -29
  81. package/dist/super-editor/src/extensions/tab/tab.d.ts +0 -29
  82. package/dist/super-editor/src/extensions/table/table.d.ts +55 -376
  83. package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +0 -41
  84. package/dist/super-editor/src/extensions/table-header/table-header.d.ts +0 -22
  85. package/dist/super-editor/src/extensions/table-row/table-row.d.ts +0 -28
  86. package/dist/super-editor/src/extensions/text/text.d.ts +0 -14
  87. package/dist/super-editor/src/extensions/text-align/text-align.d.ts +0 -22
  88. package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +10 -19
  89. package/dist/super-editor/src/extensions/text-style/text-style.d.ts +0 -20
  90. package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +0 -20
  91. package/dist/super-editor/src/extensions/underline/underline.d.ts +0 -25
  92. package/dist/super-editor/style.css +0 -38
  93. package/dist/super-editor/super-editor.es.js +67 -146
  94. package/dist/super-editor/toolbar.es.js +2 -2
  95. package/dist/super-editor.cjs +1 -1
  96. package/dist/super-editor.es.js +1 -1
  97. package/dist/superdoc.cjs +2 -2
  98. package/dist/superdoc.es.js +2 -2
  99. package/dist/superdoc.umd.js +3721 -6788
  100. package/dist/superdoc.umd.js.map +1 -1
  101. package/package.json +4 -7
  102. package/dist/super-editor/src/components/toolbar/format-negation.d.ts +0 -5
  103. package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +0 -42
  104. package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +0 -1
  105. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +0 -6
  106. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +0 -6
  107. package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +0 -1
  108. package/dist/super-editor/src/core/super-converter/v3/handlers/constants/index.d.ts +0 -1
  109. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -3
  110. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -4
  111. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +0 -7
  112. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/index.d.ts +0 -1
  113. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -6
  114. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -1
  115. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +0 -2
  116. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +0 -4
  117. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +0 -4
  118. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +0 -7
  119. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +0 -1
  120. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +0 -2
  121. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +0 -4
  122. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +0 -4
  123. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +0 -4
  124. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +0 -4
  125. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +0 -4
  126. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +0 -7
  127. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +0 -1
  128. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -6
  129. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -2
  130. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -6
  131. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -2
  132. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -4
  133. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -4
  134. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -4
  135. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -4
  136. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +0 -7
  137. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -6
  138. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -1
  139. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -6
  140. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +0 -2
  141. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -6
  142. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -6
  143. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -1
  144. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +0 -2
  145. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +0 -4
  146. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +0 -4
  147. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -2
  148. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -4
  149. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +0 -7
  150. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -1
  151. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -6
  152. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -1
  153. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -6
  154. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +0 -2
  155. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -6
  156. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -6
  157. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +0 -2
  158. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +0 -4
  159. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +0 -4
  160. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +0 -4
  161. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +0 -40
  162. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -3
  163. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -9
  164. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +0 -5
  165. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/index.d.ts +0 -1
  166. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts +0 -4
  167. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -2
  168. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -4
  169. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -4
  170. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -4
  171. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -4
  172. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -4
  173. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/index.d.ts +0 -1
  174. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +0 -5
  175. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -2
  176. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -4
  177. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/index.d.ts +0 -1
  178. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +0 -7
  179. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +0 -2
  180. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -6
  181. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -6
  182. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/index.d.ts +0 -1
  183. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +0 -5
  184. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -11
  185. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -1
  186. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -6
  187. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +0 -2
  188. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -6
  189. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -6
  190. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -2
  191. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -4
  192. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +0 -7
  193. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -2
  194. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -4
  195. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +0 -4
  196. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +0 -2
  197. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +0 -4
  198. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +0 -4
  199. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -1
  200. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -28
  201. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -1
  202. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -6
  203. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -1
  204. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -6
  205. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -1
  206. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -2
  207. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -1
  208. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -6
  209. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -1
  210. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -5
  211. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -5
  212. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -1
  213. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -6
  214. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -1
  215. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -6
  216. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -1
  217. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -6
  218. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -1
  219. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -6
  220. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -1
  221. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -5
  222. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -1
  223. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -6
  224. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -1
  225. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -6
  226. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -1
  227. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -6
  228. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -1
  229. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -6
  230. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -1
  231. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -6
  232. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +0 -2
  233. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -6
  234. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -6
  235. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +0 -2
  236. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +0 -4
  237. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +0 -4
  238. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +0 -4
  239. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +0 -4
  240. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +0 -4
  241. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/u-translator.d.ts +0 -7
  242. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -6
  243. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -6
  244. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -6
  245. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -1
  246. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -18
  247. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -6
  248. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -6
  249. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -6
  250. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -1
  251. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -6
  252. package/dist/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +0 -6
  253. package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -3
  254. package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
  255. package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +0 -2
  256. package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +0 -11
  257. package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +0 -4
  258. package/dist/super-editor/src/extensions/linked-styles/underline-css.d.ts +0 -17
  259. package/dist/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts +0 -62
  260. package/dist/super-editor/src/extensions/run/commands/index.d.ts +0 -1
  261. package/dist/super-editor/src/extensions/run/commands/split-run.d.ts +0 -1
  262. package/dist/super-editor/src/extensions/run/index.d.ts +0 -1
  263. package/dist/super-editor/src/extensions/run/run.d.ts +0 -6
  264. package/dist/super-editor/src/extensions/shared/cascade-toggle.d.ts +0 -8
  265. package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +0 -9
  266. package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +0 -9
  267. package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +0 -24
  268. package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +0 -12
  269. package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +0 -14
  270. package/dist/super-editor/src/tests/helpers/getParagraphText.d.ts +0 -2
  271. /package/dist/super-editor/src/extensions/bookmarks/{bookmark-start.d.ts → bookmarks.d.ts} +0 -0
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Documentation](https://img.shields.io/badge/docs-available-1355ff.svg)](https://docs.superdoc.dev/)
6
6
  [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-1355ff.svg)](https://www.gnu.org/licenses/agpl-3.0)
7
- [![npm version](https://img.shields.io/npm/v/superdoc.svg?color=1355ff)](https://www.npmjs.com/package/superdoc)
7
+ [![npm version](https://img.shields.io/npm/v/@harbour-enterprises/superdoc.svg?color=1355ff)](https://www.npmjs.com/package/@harbour-enterprises/superdoc)
8
8
  [![Discord](https://img.shields.io/badge/discord-join-1355ff)](https://discord.gg/FBeRDqWy)
9
9
 
10
10
  SuperDoc is a powerful document editor that brings Microsoft Word-level capabilities to your web applications. With real-time collaboration, extensive formatting options, and seamless integration capabilities, SuperDoc makes document editing on the web better for everyone.
@@ -23,14 +23,14 @@ SuperDoc is a powerful document editor that brings Microsoft Word-level capabili
23
23
  ### Installation
24
24
 
25
25
  ```bash
26
- npm install superdoc
26
+ npm install @harbour-enterprises/superdoc
27
27
  ```
28
28
 
29
29
  ### Basic Usage
30
30
 
31
31
  ```javascript
32
- import 'superdoc/style.css';
33
- import { SuperDoc } from 'superdoc';
32
+ import '@harbour-enterprises/superdoc/style.css';
33
+ import { SuperDoc } from '@harbour-enterprises/superdoc';
34
34
 
35
35
  const superdoc = new SuperDoc({
36
36
  selector: '#superdoc',
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-DWle4Cai.cjs");
4
- const superdoc = require("./index-D2h9q27o.cjs");
4
+ const superdoc = require("./index-CLepjsej.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  import { m as defineComponent, B as h, O as Transition, $ as process$1, I as watchEffect, d as computed, r as ref, j as onMounted, W as onUnmounted, c as createElementBlock, o as openBlock, a as createBaseVNode, f as createCommentVNode, v as createVNode, x as unref } from "./vue-CXxsqYcP.es.js";
2
- import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-DiSIyVKk.es.js";
2
+ import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-CEAEymUl.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,4 +1,4 @@
1
- import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-4Ig7dBJr.es.js";
1
+ import { q as index$1, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-C7rC3O3K.es.js";
2
2
  import { a0 as effectScope, r as ref, _ as markRaw, $ as process$1, a1 as toRaw, d as computed, a2 as isRef, a3 as isReactive, C as toRef, i as inject, p as getCurrentInstance, l as watch, x as unref, a4 as hasInjectionContext, M as reactive, s as nextTick, a5 as getCurrentScope, a6 as onScopeDispose, a7 as toRefs, g as global$1, J as shallowRef, N as readonly, j as onMounted, k as onBeforeUnmount, h as onBeforeMount, S as onActivated, q as onDeactivated, z as createTextVNode, F as Fragment, Q as Comment, m as defineComponent, D as provide, H as withDirectives, B as h, U as Teleport, R as renderSlot, V as isVNode, I as watchEffect, O as Transition, a8 as TransitionGroup, E as mergeProps, P as vShow, G as cloneVNode, T as Text, c as createElementBlock, o as openBlock, t as toDisplayString, v as createVNode, y as withCtx, a as createBaseVNode, A as normalizeStyle, f as createCommentVNode, u as createBlock, w as withModifiers, n as normalizeClass, a9 as resolveDirective, e as renderList, b as createApp, X as resolveDynamicComponent, aa as defineAsyncComponent } from "./vue-CXxsqYcP.es.js";
3
3
  import { B as Buffer$2 } from "./jszip-B8KIZSNe.es.js";
4
4
  import { B as BlankDOCX } from "./blank-docx-iwdyG9RH.es.js";
@@ -4292,6 +4292,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4292
4292
  }
4293
4293
  debounceTimers[commentId] = setTimeout(() => {
4294
4294
  if (superdoc2) {
4295
+ console.debug("[debounceEmit] tracked change update emitting...", event);
4295
4296
  superdoc2.emit("comments-update", event);
4296
4297
  }
4297
4298
  delete debounceTimers[commentId];
@@ -4299,6 +4300,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4299
4300
  };
4300
4301
  const showAddComment = (superdoc2) => {
4301
4302
  const event = { type: COMMENT_EVENTS.PENDING };
4303
+ console.debug("[showAddComment] emitting...", event);
4302
4304
  superdoc2.emit("comments-update", event);
4303
4305
  const selection = { ...superdocStore.activeSelection };
4304
4306
  selection.selectionBounds = { ...selection.selectionBounds };
@@ -4399,6 +4401,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4399
4401
  }
4400
4402
  const event = { type: COMMENT_EVENTS.ADD, comment: newComment.getValues() };
4401
4403
  syncCommentsToClients(superdoc2, event);
4404
+ console.debug("[addComment] emitting...", event);
4402
4405
  superdoc2.emit("comments-update", event);
4403
4406
  };
4404
4407
  const deleteComment = ({ commentId: commentIdToDelete, superdoc: superdoc2 }) => {
@@ -4415,6 +4418,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4415
4418
  comment: comment.getValues(),
4416
4419
  changes: [{ key: "deleted", commentId, fileId }]
4417
4420
  };
4421
+ console.debug("[deleteComment] emitting...", event);
4418
4422
  superdoc2.emit("comments-update", event);
4419
4423
  syncCommentsToClients(superdoc2, event);
4420
4424
  };
@@ -4423,6 +4427,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4423
4427
  };
4424
4428
  const processLoadedDocxComments = async ({ superdoc: superdoc2, editor, comments, documentId }) => {
4425
4429
  const document2 = superdocStore.getDocument(documentId);
4430
+ console.debug("[processLoadedDocxComments] processing comments...", comments);
4426
4431
  comments.forEach((comment) => {
4427
4432
  const htmlContent = getHTmlFromComment(comment.textJson);
4428
4433
  if (!htmlContent && !comment.trackedChange) {
@@ -4524,41 +4529,13 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4524
4529
  });
4525
4530
  return comments;
4526
4531
  });
4527
- const normalizeCommentForEditor = (node) => {
4528
- if (!node || typeof node !== "object") return node;
4529
- const cloneMarks = (marks) => Array.isArray(marks) ? marks.filter(Boolean).map((mark) => ({
4530
- ...mark,
4531
- attrs: mark?.attrs ? { ...mark.attrs } : void 0
4532
- })) : void 0;
4533
- const cloneAttrs = (attrs) => attrs && typeof attrs === "object" ? { ...attrs } : void 0;
4534
- if (!Array.isArray(node.content)) {
4535
- return {
4536
- type: node.type,
4537
- ...node.text !== void 0 ? { text: node.text } : {},
4538
- ...node.attrs ? { attrs: cloneAttrs(node.attrs) } : {},
4539
- ...node.marks ? { marks: cloneMarks(node.marks) } : {}
4540
- };
4541
- }
4542
- const normalizedChildren = node.content.map((child) => normalizeCommentForEditor(child)).flat().filter(Boolean);
4543
- if (node.type === "run") {
4544
- return normalizedChildren;
4545
- }
4546
- return {
4547
- type: node.type,
4548
- ...node.attrs ? { attrs: cloneAttrs(node.attrs) } : {},
4549
- ...node.marks ? { marks: cloneMarks(node.marks) } : {},
4550
- content: normalizedChildren
4551
- };
4552
- };
4553
4532
  const getHTmlFromComment = (commentTextJson) => {
4554
4533
  if (!commentTextJson.content?.length) return;
4555
4534
  try {
4556
- const normalizedContent = normalizeCommentForEditor(commentTextJson);
4557
- const schemaContent = Array.isArray(normalizedContent) ? normalizedContent[0] : normalizedContent;
4558
4535
  const editor = new Editor({
4559
4536
  mode: "text",
4560
4537
  isHeadless: true,
4561
- content: schemaContent,
4538
+ content: commentTextJson,
4562
4539
  loadFromSchema: true,
4563
4540
  extensions: getRichTextExtensions()
4564
4541
  });
@@ -17392,7 +17369,7 @@ const _sfc_main = {
17392
17369
  __name: "SuperDoc",
17393
17370
  emits: ["selection-update"],
17394
17371
  setup(__props, { emit: __emit }) {
17395
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-D3gJ5ozH.es.js"));
17372
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-DbuZR81Q.es.js"));
17396
17373
  const superdocStore = useSuperdocStore();
17397
17374
  const commentsStore = useCommentsStore();
17398
17375
  const {
@@ -18036,7 +18013,7 @@ class SuperDoc extends EventEmitter {
18036
18013
  this.config.colors = shuffleArray(this.config.colors);
18037
18014
  this.userColorMap = /* @__PURE__ */ new Map();
18038
18015
  this.colorIndex = 0;
18039
- this.version = "0.20.0-next.13";
18016
+ this.version = "0.20.0";
18040
18017
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18041
18018
  this.superdocId = config.superdocId || v4();
18042
18019
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-lzaBZOn2.cjs");
2
+ const superEditor_es = require("./super-editor.es-TdXXCNpJ.cjs");
3
3
  const vue = require("./vue-DWle4Cai.cjs");
4
4
  const jszip = require("./jszip-b7l8QkfH.cjs");
5
5
  const blankDocx = require("./blank-docx-CPqX9RF5.cjs");
@@ -4309,6 +4309,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4309
4309
  }
4310
4310
  debounceTimers[commentId] = setTimeout(() => {
4311
4311
  if (superdoc2) {
4312
+ console.debug("[debounceEmit] tracked change update emitting...", event);
4312
4313
  superdoc2.emit("comments-update", event);
4313
4314
  }
4314
4315
  delete debounceTimers[commentId];
@@ -4316,6 +4317,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4316
4317
  };
4317
4318
  const showAddComment = (superdoc2) => {
4318
4319
  const event = { type: COMMENT_EVENTS.PENDING };
4320
+ console.debug("[showAddComment] emitting...", event);
4319
4321
  superdoc2.emit("comments-update", event);
4320
4322
  const selection = { ...superdocStore.activeSelection };
4321
4323
  selection.selectionBounds = { ...selection.selectionBounds };
@@ -4416,6 +4418,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4416
4418
  }
4417
4419
  const event = { type: COMMENT_EVENTS.ADD, comment: newComment.getValues() };
4418
4420
  syncCommentsToClients(superdoc2, event);
4421
+ console.debug("[addComment] emitting...", event);
4419
4422
  superdoc2.emit("comments-update", event);
4420
4423
  };
4421
4424
  const deleteComment = ({ commentId: commentIdToDelete, superdoc: superdoc2 }) => {
@@ -4432,6 +4435,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4432
4435
  comment: comment.getValues(),
4433
4436
  changes: [{ key: "deleted", commentId, fileId }]
4434
4437
  };
4438
+ console.debug("[deleteComment] emitting...", event);
4435
4439
  superdoc2.emit("comments-update", event);
4436
4440
  syncCommentsToClients(superdoc2, event);
4437
4441
  };
@@ -4440,6 +4444,7 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4440
4444
  };
4441
4445
  const processLoadedDocxComments = async ({ superdoc: superdoc2, editor, comments, documentId }) => {
4442
4446
  const document2 = superdocStore.getDocument(documentId);
4447
+ console.debug("[processLoadedDocxComments] processing comments...", comments);
4443
4448
  comments.forEach((comment) => {
4444
4449
  const htmlContent = getHTmlFromComment(comment.textJson);
4445
4450
  if (!htmlContent && !comment.trackedChange) {
@@ -4541,41 +4546,13 @@ const useCommentsStore = /* @__PURE__ */ defineStore("comments", () => {
4541
4546
  });
4542
4547
  return comments;
4543
4548
  });
4544
- const normalizeCommentForEditor = (node) => {
4545
- if (!node || typeof node !== "object") return node;
4546
- const cloneMarks = (marks) => Array.isArray(marks) ? marks.filter(Boolean).map((mark) => ({
4547
- ...mark,
4548
- attrs: mark?.attrs ? { ...mark.attrs } : void 0
4549
- })) : void 0;
4550
- const cloneAttrs = (attrs) => attrs && typeof attrs === "object" ? { ...attrs } : void 0;
4551
- if (!Array.isArray(node.content)) {
4552
- return {
4553
- type: node.type,
4554
- ...node.text !== void 0 ? { text: node.text } : {},
4555
- ...node.attrs ? { attrs: cloneAttrs(node.attrs) } : {},
4556
- ...node.marks ? { marks: cloneMarks(node.marks) } : {}
4557
- };
4558
- }
4559
- const normalizedChildren = node.content.map((child) => normalizeCommentForEditor(child)).flat().filter(Boolean);
4560
- if (node.type === "run") {
4561
- return normalizedChildren;
4562
- }
4563
- return {
4564
- type: node.type,
4565
- ...node.attrs ? { attrs: cloneAttrs(node.attrs) } : {},
4566
- ...node.marks ? { marks: cloneMarks(node.marks) } : {},
4567
- content: normalizedChildren
4568
- };
4569
- };
4570
4549
  const getHTmlFromComment = (commentTextJson) => {
4571
4550
  if (!commentTextJson.content?.length) return;
4572
4551
  try {
4573
- const normalizedContent = normalizeCommentForEditor(commentTextJson);
4574
- const schemaContent = Array.isArray(normalizedContent) ? normalizedContent[0] : normalizedContent;
4575
4552
  const editor = new superEditor_es.Editor({
4576
4553
  mode: "text",
4577
4554
  isHeadless: true,
4578
- content: schemaContent,
4555
+ content: commentTextJson,
4579
4556
  loadFromSchema: true,
4580
4557
  extensions: superEditor_es.getRichTextExtensions()
4581
4558
  });
@@ -17409,7 +17386,7 @@ const _sfc_main = {
17409
17386
  __name: "SuperDoc",
17410
17387
  emits: ["selection-update"],
17411
17388
  setup(__props, { emit: __emit }) {
17412
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-DuEWa8ox.cjs")));
17389
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-B9b7_8E2.cjs")));
17413
17390
  const superdocStore = useSuperdocStore();
17414
17391
  const commentsStore = useCommentsStore();
17415
17392
  const {
@@ -18053,7 +18030,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
18053
18030
  this.config.colors = shuffleArray(this.config.colors);
18054
18031
  this.userColorMap = /* @__PURE__ */ new Map();
18055
18032
  this.colorIndex = 0;
18056
- this.version = "0.20.0-next.13";
18033
+ this.version = "0.20.0";
18057
18034
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18058
18035
  this.superdocId = config.superdocId || uuid.v4();
18059
18036
  this.colors = this.config.colors;