superdoc 0.30.0 → 0.31.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (587) hide show
  1. package/dist/chunks/{PdfViewer-soUG7IDt.cjs → PdfViewer-K3AvhcPe.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-D_iKMNQq.es.js → PdfViewer-SNmZ-cFQ.es.js} +1 -1
  3. package/dist/chunks/{index-D04RPnYX-D4QY0wzH.es.js → index-BYoh4bTC-CvwLNvhw.es.js} +1 -1
  4. package/dist/chunks/{index-D04RPnYX-C9XCLJFR.cjs → index-BYoh4bTC-D3KgbMGN.cjs} +1 -1
  5. package/dist/chunks/{index-CkMyo2zy.es.js → index-B_y8k48i.es.js} +7 -6
  6. package/dist/chunks/{index-D4zMX0uJ.cjs → index-BhTmqYMI.cjs} +7 -6
  7. package/dist/chunks/{super-editor.es-B2pA2Nu-.es.js → super-editor.es-2s47mdgM.es.js} +14154 -15744
  8. package/dist/chunks/{super-editor.es-DmA8JlL1.cjs → super-editor.es-qzNK-dCq.cjs} +14154 -15744
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts +132 -52
  10. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  11. package/dist/packages/superdoc/src/core/types/index.d.ts +132 -52
  12. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  13. package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
  14. package/dist/style.css +11 -31
  15. package/dist/super-editor/ai-writer.es.js +2 -2
  16. package/dist/super-editor/chunks/{converter-DrPdSxVd.js → converter-B9P9VS_X.js} +12502 -13001
  17. package/dist/super-editor/chunks/{docx-zipper-IcLp4qO8.js → docx-zipper-CrHein3w.js} +1 -1
  18. package/dist/super-editor/chunks/{editor-CNJV20ln.js → editor-uhFrEJtT.js} +1701 -2842
  19. package/dist/super-editor/chunks/{index-D04RPnYX.js → index-BYoh4bTC.js} +1 -1
  20. package/dist/super-editor/chunks/{toolbar-D9Y3NWGF.js → toolbar-BnD2JDA6.js} +2 -2
  21. package/dist/super-editor/converter.es.js +2 -2
  22. package/dist/super-editor/docx-zipper.es.js +2 -2
  23. package/dist/super-editor/editor.es.js +3 -3
  24. package/dist/super-editor/file-zipper.es.js +1 -1
  25. package/dist/super-editor/style.css +11 -31
  26. package/dist/super-editor/super-editor/src/components/slash-menu/utils.d.ts.map +1 -1
  27. package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
  28. package/dist/super-editor/super-editor/src/components/toolbar/super-toolbar.d.ts.map +1 -1
  29. package/dist/super-editor/super-editor/src/core/Attribute.d.ts +75 -29
  30. package/dist/super-editor/super-editor/src/core/Attribute.d.ts.map +1 -1
  31. package/dist/super-editor/super-editor/src/core/CommandService.d.ts +1 -1
  32. package/dist/super-editor/super-editor/src/core/CommandService.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/core/Editor.d.ts +136 -673
  34. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  35. package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts +23 -14
  36. package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor/src/core/Extension.d.ts +25 -11
  38. package/dist/super-editor/super-editor/src/core/Extension.d.ts.map +1 -1
  39. package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts +1 -1
  40. package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts.map +1 -1
  41. package/dist/super-editor/super-editor/src/core/InputRule.d.ts.map +1 -1
  42. package/dist/super-editor/super-editor/src/core/Mark.d.ts +28 -12
  43. package/dist/super-editor/super-editor/src/core/Mark.d.ts.map +1 -1
  44. package/dist/super-editor/super-editor/src/core/Node.d.ts +87 -25
  45. package/dist/super-editor/super-editor/src/core/Node.d.ts.map +1 -1
  46. package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts +20 -13
  47. package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts.map +1 -1
  48. package/dist/super-editor/super-editor/src/core/commands/__tests__/schemaWithLists.d.ts +1 -1
  49. package/dist/super-editor/super-editor/src/core/commands/changeListLevel.d.ts +15 -0
  50. package/dist/super-editor/super-editor/src/core/commands/changeListLevel.d.ts.map +1 -0
  51. package/dist/super-editor/super-editor/src/core/commands/decreaseListIndent.d.ts +1 -1
  52. package/dist/super-editor/super-editor/src/core/commands/decreaseListIndent.d.ts.map +1 -1
  53. package/dist/super-editor/super-editor/src/core/commands/increaseListIndent.d.ts +2 -1
  54. package/dist/super-editor/super-editor/src/core/commands/increaseListIndent.d.ts.map +1 -1
  55. package/dist/super-editor/super-editor/src/core/commands/index.d.ts +2 -7
  56. package/dist/super-editor/super-editor/src/core/commands/list-helpers/is-list.d.ts +1 -1
  57. package/dist/super-editor/super-editor/src/core/commands/list-helpers/is-list.d.ts.map +1 -1
  58. package/dist/super-editor/super-editor/src/core/commands/list-helpers/list-indent-helpers.d.ts +0 -1
  59. package/dist/super-editor/super-editor/src/core/commands/list-helpers/list-indent-helpers.d.ts.map +1 -1
  60. package/dist/super-editor/super-editor/src/core/commands/removeNumberingProperties.d.ts +4 -0
  61. package/dist/super-editor/super-editor/src/core/commands/removeNumberingProperties.d.ts.map +1 -0
  62. package/dist/super-editor/super-editor/src/core/commands/restartNumbering.d.ts +7 -0
  63. package/dist/super-editor/super-editor/src/core/commands/restartNumbering.d.ts.map +1 -0
  64. package/dist/super-editor/super-editor/src/core/commands/splitBlock.d.ts +2 -1
  65. package/dist/super-editor/super-editor/src/core/commands/splitBlock.d.ts.map +1 -1
  66. package/dist/super-editor/super-editor/src/core/commands/tests/test-schema.d.ts +1 -1
  67. package/dist/super-editor/super-editor/src/core/commands/toggleList.d.ts +6 -56
  68. package/dist/super-editor/super-editor/src/core/commands/toggleList.d.ts.map +1 -1
  69. package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts +11 -89
  70. package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts.map +1 -1
  71. package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts +1 -1
  72. package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts.map +1 -1
  73. package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts +1 -1
  74. package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts.map +1 -1
  75. package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts +1 -1
  76. package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts.map +1 -1
  77. package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts +1 -1
  78. package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts.map +1 -1
  79. package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts +3 -2
  80. package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts.map +1 -1
  81. package/dist/super-editor/super-editor/src/core/helpers/contentProcessor.d.ts +3 -3
  82. package/dist/super-editor/super-editor/src/core/helpers/createNodeFromContent.d.ts +2 -2
  83. package/dist/super-editor/super-editor/src/core/helpers/createNodeFromContent.d.ts.map +1 -1
  84. package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts +12 -5
  85. package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts.map +1 -1
  86. package/dist/super-editor/super-editor/src/core/helpers/importHtml.d.ts +2 -2
  87. package/dist/super-editor/super-editor/src/core/helpers/importHtml.d.ts.map +1 -1
  88. package/dist/super-editor/super-editor/src/core/helpers/importMarkdown.d.ts +2 -2
  89. package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts +1 -1
  90. package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts.map +1 -1
  91. package/dist/super-editor/super-editor/src/core/helpers/list-numbering-helpers.d.ts +15 -42
  92. package/dist/super-editor/super-editor/src/core/helpers/list-numbering-helpers.d.ts.map +1 -1
  93. package/dist/super-editor/super-editor/src/core/helpers/orderedListUtils.d.ts.map +1 -1
  94. package/dist/super-editor/super-editor/src/core/helpers/pasteListHelpers.d.ts +2 -0
  95. package/dist/super-editor/super-editor/src/core/helpers/pasteListHelpers.d.ts.map +1 -1
  96. package/dist/super-editor/super-editor/src/core/index.d.ts +18 -13
  97. package/dist/super-editor/super-editor/src/core/index.d.ts.map +1 -1
  98. package/dist/super-editor/super-editor/src/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -1
  99. package/dist/super-editor/super-editor/src/core/inputRules/html/html-helpers.d.ts +2 -5
  100. package/dist/super-editor/super-editor/src/core/inputRules/html/html-helpers.d.ts.map +1 -1
  101. package/dist/super-editor/super-editor/src/core/super-converter/SuperConverter.d.ts.map +1 -1
  102. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +1 -1
  103. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
  104. package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts +2 -0
  105. package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts.map +1 -1
  106. package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts +26 -0
  107. package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts.map +1 -0
  108. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +3 -1
  109. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts.map +1 -1
  110. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts +0 -97
  111. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
  112. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +12 -1
  113. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts.map +1 -1
  114. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/trackChangesImporter.d.ts.map +1 -1
  115. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/index.d.ts.map +1 -1
  116. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +30 -4
  117. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/utils.d.ts.map +1 -1
  118. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.d.ts +7 -0
  119. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.d.ts.map +1 -0
  120. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/index.d.ts +2 -0
  121. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/index.d.ts.map +1 -0
  122. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.d.ts +7 -0
  123. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.d.ts.map +1 -0
  124. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/index.d.ts +2 -0
  125. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/index.d.ts.map +1 -0
  126. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.d.ts +7 -0
  127. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.d.ts.map +1 -0
  128. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/index.d.ts +2 -0
  129. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/index.d.ts.map +1 -0
  130. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +1 -2
  131. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts.map +1 -1
  132. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/bCs-translator.d.ts +7 -0
  133. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/bCs-translator.d.ts.map +1 -0
  134. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/index.d.ts +2 -0
  135. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/index.d.ts.map +1 -0
  136. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/bar-translator.d.ts +7 -0
  137. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/bar-translator.d.ts.map +1 -0
  138. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/index.d.ts +2 -0
  139. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/index.d.ts.map +1 -0
  140. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/between-translator.d.ts +7 -0
  141. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/between-translator.d.ts.map +1 -0
  142. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/index.d.ts +2 -0
  143. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/index.d.ts.map +1 -0
  144. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/bidi-translator.d.ts +7 -0
  145. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/bidi-translator.d.ts.map +1 -0
  146. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/index.d.ts +2 -0
  147. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/index.d.ts.map +1 -0
  148. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +1 -2
  149. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts.map +1 -1
  150. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +1 -2
  151. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts.map +1 -1
  152. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/contextualSpacing-translator.d.ts +7 -0
  153. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/contextualSpacing-translator.d.ts.map +1 -0
  154. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/index.d.ts +2 -0
  155. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/index.d.ts.map +1 -0
  156. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/dstrike/dstrike-translator.d.ts +7 -0
  157. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/dstrike/dstrike-translator.d.ts.map +1 -0
  158. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/framePr-translator.d.ts +7 -0
  159. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/framePr-translator.d.ts.map +1 -0
  160. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/index.d.ts +2 -0
  161. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/index.d.ts.map +1 -0
  162. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/headers-translator.d.ts +0 -2
  163. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/headers-translator.d.ts.map +1 -1
  164. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +1 -2
  165. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts.map +1 -1
  166. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/ilvl-translator.d.ts +7 -0
  167. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/ilvl-translator.d.ts.map +1 -0
  168. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/index.d.ts +2 -0
  169. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/index.d.ts.map +1 -0
  170. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/ind-translator.d.ts +7 -0
  171. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/ind-translator.d.ts.map +1 -0
  172. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/index.d.ts +2 -0
  173. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/index.d.ts.map +1 -0
  174. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/index.d.ts +2 -0
  175. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/index.d.ts.map +1 -0
  176. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/keepLines-translator.d.ts +7 -0
  177. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/keepLines-translator.d.ts.map +1 -0
  178. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/index.d.ts +2 -0
  179. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/index.d.ts.map +1 -0
  180. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/keepNext-translator.d.ts +7 -0
  181. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/keepNext-translator.d.ts.map +1 -0
  182. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/index.d.ts +2 -0
  183. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/index.d.ts.map +1 -0
  184. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/kinsoku-translator.d.ts +7 -0
  185. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/kinsoku-translator.d.ts.map +1 -0
  186. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/index.d.ts +2 -0
  187. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/index.d.ts.map +1 -0
  188. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/lang-translator.d.ts +7 -0
  189. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/lang-translator.d.ts.map +1 -0
  190. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/index.d.ts +2 -0
  191. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/index.d.ts.map +1 -0
  192. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/mirrorIndents-translator.d.ts +7 -0
  193. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/mirrorIndents-translator.d.ts.map +1 -0
  194. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/index.d.ts +2 -0
  195. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/index.d.ts.map +1 -0
  196. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/numId-translator.d.ts +7 -0
  197. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/numId-translator.d.ts.map +1 -0
  198. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/index.d.ts +2 -0
  199. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/index.d.ts.map +1 -0
  200. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/numPr-translator.d.ts +6 -0
  201. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/numPr-translator.d.ts.map +1 -0
  202. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/index.d.ts +2 -0
  203. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/index.d.ts.map +1 -0
  204. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/outlineLvl-translator.d.ts +7 -0
  205. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/outlineLvl-translator.d.ts.map +1 -0
  206. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/index.d.ts +2 -0
  207. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/index.d.ts.map +1 -0
  208. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/overflowPunct-translator.d.ts +7 -0
  209. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/overflowPunct-translator.d.ts.map +1 -0
  210. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -1
  211. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts.map +1 -1
  212. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/index.d.ts +2 -0
  213. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/index.d.ts.map +1 -0
  214. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/pBdr-translator.d.ts +6 -0
  215. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/pBdr-translator.d.ts.map +1 -0
  216. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/index.d.ts +2 -0
  217. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/index.d.ts.map +1 -0
  218. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/pPr-translator.d.ts +6 -0
  219. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/pPr-translator.d.ts.map +1 -0
  220. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/index.d.ts +2 -0
  221. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/index.d.ts.map +1 -0
  222. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/pStyle-translator.d.ts +7 -0
  223. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/pStyle-translator.d.ts.map +1 -0
  224. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/index.d.ts +2 -0
  225. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/index.d.ts.map +1 -0
  226. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/pageBreakBefore-translator.d.ts +7 -0
  227. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/pageBreakBefore-translator.d.ts.map +1 -0
  228. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pict/helpers/handle-v-rect-import.d.ts +1 -1
  229. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pict/helpers/handle-v-rect-import.d.ts.map +1 -1
  230. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +1 -37
  231. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts.map +1 -1
  232. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -1
  233. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts.map +1 -1
  234. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +1 -0
  235. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts.map +1 -1
  236. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +1 -2
  237. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts.map +1 -1
  238. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +2 -0
  239. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts.map +1 -1
  240. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/index.d.ts +2 -0
  241. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/index.d.ts.map +1 -0
  242. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/snapToGrid-translator.d.ts +7 -0
  243. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/snapToGrid-translator.d.ts.map +1 -0
  244. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/index.d.ts +2 -0
  245. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/index.d.ts.map +1 -0
  246. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/letter-spacing-translator.d.ts +7 -0
  247. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/letter-spacing-translator.d.ts.map +1 -0
  248. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/spacing-translator.d.ts +7 -0
  249. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/spacing-translator.d.ts.map +1 -0
  250. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +1 -2
  251. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts.map +1 -1
  252. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/index.d.ts +2 -0
  253. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/index.d.ts.map +1 -0
  254. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/suppressAutoHyphens-translator.d.ts +7 -0
  255. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/suppressAutoHyphens-translator.d.ts.map +1 -0
  256. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/index.d.ts +2 -0
  257. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/index.d.ts.map +1 -0
  258. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/suppressLineNumbers-translator.d.ts +7 -0
  259. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/suppressLineNumbers-translator.d.ts.map +1 -0
  260. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/index.d.ts +2 -0
  261. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/index.d.ts.map +1 -0
  262. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/suppressOverlap-translator.d.ts +7 -0
  263. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/suppressOverlap-translator.d.ts.map +1 -0
  264. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +5 -3
  265. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts.map +1 -1
  266. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +5 -3
  267. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts.map +1 -1
  268. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +1 -1
  269. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts.map +1 -1
  270. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/{w-tab-size.d.ts → w-tab-type.d.ts} +1 -1
  271. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-type.d.ts.map +1 -0
  272. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts.map +1 -1
  273. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/index.d.ts +2 -0
  274. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/index.d.ts.map +1 -0
  275. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/tabs-translator.d.ts +6 -0
  276. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/tabs-translator.d.ts.map +1 -0
  277. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts.map +1 -1
  278. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/index.d.ts +2 -0
  279. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/index.d.ts.map +1 -0
  280. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/textAlignment-translator.d.ts +7 -0
  281. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/textAlignment-translator.d.ts.map +1 -0
  282. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/index.d.ts +2 -0
  283. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/index.d.ts.map +1 -0
  284. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/textboxTightWrap-translator.d.ts +7 -0
  285. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/textboxTightWrap-translator.d.ts.map +1 -0
  286. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/index.d.ts +2 -0
  287. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/index.d.ts.map +1 -0
  288. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/topLinePunct-translator.d.ts +7 -0
  289. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/topLinePunct-translator.d.ts.map +1 -0
  290. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/index.d.ts +2 -0
  291. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/index.d.ts.map +1 -0
  292. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/widowControl-translator.d.ts +7 -0
  293. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/widowControl-translator.d.ts.map +1 -0
  294. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/index.d.ts +2 -0
  295. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/index.d.ts.map +1 -0
  296. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/wordWrap-translator.d.ts +7 -0
  297. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/wordWrap-translator.d.ts.map +1 -0
  298. package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts +118 -0
  299. package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts.map +1 -0
  300. package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts +265 -0
  301. package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts.map +1 -0
  302. package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts +144 -0
  303. package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts.map +1 -0
  304. package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts +73 -0
  305. package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts.map +1 -0
  306. package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts +2 -0
  307. package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts.map +1 -0
  308. package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts +6 -2
  309. package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts.map +1 -1
  310. package/dist/super-editor/super-editor/src/core/utilities/isIOS.d.ts.map +1 -1
  311. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts +8 -2
  312. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
  313. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts +7 -1
  314. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
  315. package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts +1 -1
  316. package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts.map +1 -1
  317. package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts +1 -1
  318. package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts.map +1 -1
  319. package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts +3 -1
  320. package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts.map +1 -1
  321. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +1 -1
  322. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts.map +1 -1
  323. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts +1 -1
  324. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts.map +1 -1
  325. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts +6 -1
  326. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts.map +1 -1
  327. package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts +9 -1
  328. package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts.map +1 -1
  329. package/dist/super-editor/super-editor/src/extensions/color/color.d.ts +3 -1
  330. package/dist/super-editor/super-editor/src/extensions/color/color.d.ts.map +1 -1
  331. package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts +18 -3
  332. package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts.map +1 -1
  333. package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts +5 -1
  334. package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts.map +1 -1
  335. package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +1 -1
  336. package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts.map +1 -1
  337. package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts +1 -1
  338. package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts.map +1 -1
  339. package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts +1 -1
  340. package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts.map +1 -1
  341. package/dist/super-editor/super-editor/src/extensions/document/document.d.ts +1 -1
  342. package/dist/super-editor/super-editor/src/extensions/document/document.d.ts.map +1 -1
  343. package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts +5 -1
  344. package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts.map +1 -1
  345. package/dist/super-editor/super-editor/src/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts.map +1 -1
  346. package/dist/super-editor/super-editor/src/extensions/field-annotation/cleanup-commands/index.d.ts.map +1 -1
  347. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts +1 -1
  348. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  349. package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts +3 -1
  350. package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts.map +1 -1
  351. package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts +9 -1
  352. package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts.map +1 -1
  353. package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts +7 -1
  354. package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts.map +1 -1
  355. package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts +1 -1
  356. package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts.map +1 -1
  357. package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts +3 -1
  358. package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts.map +1 -1
  359. package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts +3 -1
  360. package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts.map +1 -1
  361. package/dist/super-editor/super-editor/src/extensions/history/history.d.ts +4 -1
  362. package/dist/super-editor/super-editor/src/extensions/history/history.d.ts.map +1 -1
  363. package/dist/super-editor/super-editor/src/extensions/image/image.d.ts +1 -1
  364. package/dist/super-editor/super-editor/src/extensions/image/image.d.ts.map +1 -1
  365. package/dist/super-editor/super-editor/src/extensions/index.d.ts +23 -6
  366. package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
  367. package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts +3 -1
  368. package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts.map +1 -1
  369. package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts +2 -2
  370. package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts.map +1 -1
  371. package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts +6 -1
  372. package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts.map +1 -1
  373. package/dist/super-editor/super-editor/src/extensions/link/link.d.ts +9 -1
  374. package/dist/super-editor/super-editor/src/extensions/link/link.d.ts.map +1 -1
  375. package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts +1 -1
  376. package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
  377. package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts +1 -1
  378. package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  379. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts +6 -1
  380. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
  381. package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts +1 -1
  382. package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts.map +1 -1
  383. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts +2 -2
  384. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
  385. package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts +8 -1
  386. package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts.map +1 -1
  387. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts +5 -1
  388. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
  389. package/dist/super-editor/super-editor/src/extensions/paragraph/NumberingManager.d.ts +30 -0
  390. package/dist/super-editor/super-editor/src/extensions/paragraph/NumberingManager.d.ts.map +1 -0
  391. package/dist/super-editor/super-editor/src/extensions/paragraph/ParagraphNodeView.d.ts +37 -0
  392. package/dist/super-editor/super-editor/src/extensions/paragraph/ParagraphNodeView.d.ts.map +1 -0
  393. package/dist/super-editor/super-editor/src/extensions/paragraph/helpers/getDefaultSpacing.d.ts +4 -4
  394. package/dist/super-editor/super-editor/src/extensions/paragraph/numberingPlugin.d.ts +9 -0
  395. package/dist/super-editor/super-editor/src/extensions/paragraph/numberingPlugin.d.ts.map +1 -0
  396. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts +1 -1
  397. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  398. package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts +3 -1
  399. package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts.map +1 -1
  400. package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +1 -1
  401. package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts.map +1 -1
  402. package/dist/super-editor/super-editor/src/extensions/run/commands/split-run.d.ts +1 -0
  403. package/dist/super-editor/super-editor/src/extensions/run/commands/split-run.d.ts.map +1 -1
  404. package/dist/super-editor/super-editor/src/extensions/run/run.d.ts +1 -1
  405. package/dist/super-editor/super-editor/src/extensions/run/run.d.ts.map +1 -1
  406. package/dist/super-editor/super-editor/src/extensions/search/search.d.ts +1 -1
  407. package/dist/super-editor/super-editor/src/extensions/search/search.d.ts.map +1 -1
  408. package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts +6 -1
  409. package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts.map +1 -1
  410. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +1 -1
  411. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -1
  412. package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +6 -1
  413. package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts.map +1 -1
  414. package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts +1 -1
  415. package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts.map +1 -1
  416. package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts +3 -1
  417. package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts.map +1 -1
  418. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts +6 -1
  419. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
  420. package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts +1 -1
  421. package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts.map +1 -1
  422. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +6 -1
  423. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts.map +1 -1
  424. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +1 -1
  425. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
  426. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +6 -1
  427. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts.map +1 -1
  428. package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +14 -2
  429. package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts.map +1 -1
  430. package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts +6 -1
  431. package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts.map +1 -1
  432. package/dist/super-editor/super-editor/src/extensions/table/table.d.ts +1 -1
  433. package/dist/super-editor/super-editor/src/extensions/table/table.d.ts.map +1 -1
  434. package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts +5 -1
  435. package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts.map +1 -1
  436. package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts +5 -1
  437. package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts.map +1 -1
  438. package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts +6 -1
  439. package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts.map +1 -1
  440. package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts +5 -1
  441. package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts.map +1 -1
  442. package/dist/super-editor/super-editor/src/extensions/text/text.d.ts +1 -1
  443. package/dist/super-editor/super-editor/src/extensions/text/text.d.ts.map +1 -1
  444. package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts +4 -1
  445. package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts.map +1 -1
  446. package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts +7 -1
  447. package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts.map +1 -1
  448. package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts +3 -1
  449. package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts.map +1 -1
  450. package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts +3 -1
  451. package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts.map +1 -1
  452. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +132 -52
  453. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  454. package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts +1 -1
  455. package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts.map +1 -1
  456. package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts +5 -1
  457. package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts.map +1 -1
  458. package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts +5 -1
  459. package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts.map +1 -1
  460. package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts +5 -1
  461. package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts.map +1 -1
  462. package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +5 -1
  463. package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts.map +1 -1
  464. package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts +40 -0
  465. package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts.map +1 -0
  466. package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts +57 -0
  467. package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts.map +1 -0
  468. package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts +83 -0
  469. package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts.map +1 -0
  470. package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts +3 -1
  471. package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts.map +1 -1
  472. package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts +1 -1
  473. package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts.map +1 -1
  474. package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts +1 -1
  475. package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  476. package/dist/super-editor/super-editor.es.js +98 -59
  477. package/dist/super-editor/toolbar.es.js +2 -2
  478. package/dist/super-editor.cjs +1 -1
  479. package/dist/super-editor.es.js +1 -1
  480. package/dist/superdoc.cjs +2 -2
  481. package/dist/superdoc.es.js +2 -2
  482. package/dist/superdoc.umd.js +14168 -15757
  483. package/dist/superdoc.umd.js.map +1 -1
  484. package/package.json +1 -1
  485. package/dist/shared/common/Telemetry.d.ts +0 -237
  486. package/dist/shared/common/Telemetry.d.ts.map +0 -1
  487. package/dist/shared/common/collaboration/awareness.d.ts +0 -39
  488. package/dist/shared/common/collaboration/awareness.d.ts.map +0 -1
  489. package/dist/shared/common/document-types.d.ts +0 -10
  490. package/dist/shared/common/document-types.d.ts.map +0 -1
  491. package/dist/shared/common/event-types.d.ts +0 -14
  492. package/dist/shared/common/event-types.d.ts.map +0 -1
  493. package/dist/shared/common/helpers/compare-superdoc-versions.d.ts +0 -8
  494. package/dist/shared/common/helpers/compare-superdoc-versions.d.ts.map +0 -1
  495. package/dist/shared/common/helpers/get-file-object.d.ts +0 -50
  496. package/dist/shared/common/helpers/get-file-object.d.ts.map +0 -1
  497. package/dist/shared/common/helpers/v-click-outside.d.ts +0 -11
  498. package/dist/shared/common/helpers/v-click-outside.d.ts.map +0 -1
  499. package/dist/shared/common/index.d.ts +0 -10
  500. package/dist/shared/common/index.d.ts.map +0 -1
  501. package/dist/shared/common/key-transform.d.ts +0 -44
  502. package/dist/shared/common/key-transform.d.ts.map +0 -1
  503. package/dist/super-editor/super-editor/src/core/commands/backspaceNextToList.d.ts +0 -6
  504. package/dist/super-editor/super-editor/src/core/commands/backspaceNextToList.d.ts.map +0 -1
  505. package/dist/super-editor/super-editor/src/core/commands/deleteListItem.d.ts +0 -2
  506. package/dist/super-editor/super-editor/src/core/commands/deleteListItem.d.ts.map +0 -1
  507. package/dist/super-editor/super-editor/src/core/commands/deleteNextToList.d.ts +0 -15
  508. package/dist/super-editor/super-editor/src/core/commands/deleteNextToList.d.ts.map +0 -1
  509. package/dist/super-editor/super-editor/src/core/commands/liftListItem.d.ts +0 -5
  510. package/dist/super-editor/super-editor/src/core/commands/liftListItem.d.ts.map +0 -1
  511. package/dist/super-editor/super-editor/src/core/commands/sinkListItem.d.ts +0 -5
  512. package/dist/super-editor/super-editor/src/core/commands/sinkListItem.d.ts.map +0 -1
  513. package/dist/super-editor/super-editor/src/core/commands/splitListItem.d.ts +0 -2
  514. package/dist/super-editor/super-editor/src/core/commands/splitListItem.d.ts.map +0 -1
  515. package/dist/super-editor/super-editor/src/core/commands/wrapInList.d.ts +0 -5
  516. package/dist/super-editor/super-editor/src/core/commands/wrapInList.d.ts.map +0 -1
  517. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -4
  518. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts.map +0 -1
  519. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -5
  520. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts.map +0 -1
  521. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -3
  522. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts.map +0 -1
  523. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -5
  524. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts.map +0 -1
  525. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -5
  526. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts.map +0 -1
  527. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -5
  528. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts.map +0 -1
  529. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -5
  530. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts.map +0 -1
  531. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -3
  532. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts.map +0 -1
  533. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -5
  534. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts.map +0 -1
  535. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -5
  536. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts.map +0 -1
  537. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -10
  538. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts.map +0 -1
  539. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -3
  540. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts.map +0 -1
  541. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -5
  542. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts.map +0 -1
  543. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -5
  544. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts.map +0 -1
  545. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -5
  546. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts.map +0 -1
  547. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -5
  548. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts.map +0 -1
  549. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -5
  550. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts.map +0 -1
  551. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -3
  552. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts.map +0 -1
  553. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -5
  554. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts.map +0 -1
  555. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -12
  556. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts.map +0 -1
  557. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -3
  558. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts.map +0 -1
  559. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -5
  560. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts.map +0 -1
  561. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -3
  562. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts.map +0 -1
  563. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -5
  564. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts.map +0 -1
  565. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts.map +0 -1
  566. package/dist/super-editor/super-editor/src/extensions/bullet-list/bullet-list.d.ts +0 -15
  567. package/dist/super-editor/super-editor/src/extensions/bullet-list/bullet-list.d.ts.map +0 -1
  568. package/dist/super-editor/super-editor/src/extensions/bullet-list/index.d.ts +0 -2
  569. package/dist/super-editor/super-editor/src/extensions/bullet-list/index.d.ts.map +0 -1
  570. package/dist/super-editor/super-editor/src/extensions/list-item/ListItemNodeView.d.ts +0 -43
  571. package/dist/super-editor/super-editor/src/extensions/list-item/ListItemNodeView.d.ts.map +0 -1
  572. package/dist/super-editor/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts +0 -68
  573. package/dist/super-editor/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts.map +0 -1
  574. package/dist/super-editor/super-editor/src/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +0 -13
  575. package/dist/super-editor/super-editor/src/extensions/list-item/helpers/styledListMarkerPlugin.d.ts.map +0 -1
  576. package/dist/super-editor/super-editor/src/extensions/list-item/index.d.ts +0 -2
  577. package/dist/super-editor/super-editor/src/extensions/list-item/index.d.ts.map +0 -1
  578. package/dist/super-editor/super-editor/src/extensions/list-item/list-item.d.ts +0 -51
  579. package/dist/super-editor/super-editor/src/extensions/list-item/list-item.d.ts.map +0 -1
  580. package/dist/super-editor/super-editor/src/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +0 -3
  581. package/dist/super-editor/super-editor/src/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts.map +0 -1
  582. package/dist/super-editor/super-editor/src/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +0 -6
  583. package/dist/super-editor/super-editor/src/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts.map +0 -1
  584. package/dist/super-editor/super-editor/src/extensions/ordered-list/index.d.ts +0 -2
  585. package/dist/super-editor/super-editor/src/extensions/ordered-list/index.d.ts.map +0 -1
  586. package/dist/super-editor/super-editor/src/extensions/ordered-list/ordered-list.d.ts +0 -38
  587. package/dist/super-editor/super-editor/src/extensions/ordered-list/ordered-list.d.ts.map +0 -1
@@ -1,469 +1,264 @@
1
- /**
2
- * @typedef {Object} FieldValue
3
- * @property {string} input_id The id of the input field
4
- * @property {string} input_value The value to insert into the field
5
- */
6
- /**
7
- * A map of plugin names to their helper API objects.
8
- * Each plugin defines its own helper methods.
9
- *
10
- * Example:
11
- * editor.helpers.linkedStyles.getStyles()
12
- *
13
- * @typedef {Object<string, Object<string, Function>>} EditorHelpers
14
- */
15
- /**
16
- * Editor main class.
17
- *
18
- * Expects a config object.
19
- * @class
20
- */
21
- /**
22
- * @typedef {Object} User The current user of this superdoc
23
- * @property {string} name The user's name
24
- * @property {string} email The user's email
25
- * @property {string | null} image The user's photo
26
- */
27
- /**
28
- * @typedef {Object} DocxNode A JSON representation of a docx node
29
- */
30
- /**
31
- * @typedef {Object} EditorOptions
32
- * @property {HTMLElement} [element] - The container element for the editor
33
- * @property {string} [selector] - CSS selector for the editor container
34
- * @property {boolean} [isHeadless=false] - Whether the editor is running in headless mode
35
- * @property {Document} [mockDocument] - Mock document for testing
36
- * @property {Window} [mockWindow] - Mock window for testing
37
- * @property {string} [content=''] - XML content
38
- * @property {User} [user] - Current user information
39
- * @property {Array.<User>} [users=[]] - List of users for collaboration
40
- * @property {Object} [media={}] - Media configuration
41
- * @property {Object} [mediaFiles={}] - Media files
42
- * @property {Object} [fonts={}] - Font configuration
43
- * @property {string} [documentMode='editing'] - Document mode ('editing', 'viewing', 'suggesting')
44
- * @property {string} [mode='docx'] - Editor mode ('docx', 'text', 'html')
45
- * @property {string} [role='editor'] - User role ('editor', 'viewer', 'suggester')
46
- * @property {Array} [colors=[]] - Available colors
47
- * @property {Object} [converter] - Document converter
48
- * @property {File|Blob|Buffer} [fileSource] - Source of the file (File/Blob in browser, Buffer in Node.js)
49
- * @property {Object} [initialState] - Initial editor state
50
- * @property {string} [documentId] - Unique document identifier
51
- * @property {Array} [extensions=[]] - Editor extensions
52
- * @property {boolean} [editable=true] - Whether the editor is editable
53
- * @property {Object} [editorProps={}] - Editor properties
54
- * @property {Object} [parseOptions={}] - Parsing options
55
- * @property {Object} [coreExtensionOptions={}] - Core extension options
56
- * @property {boolean} [enableInputRules=true] - Whether to enable input rules
57
- * @property {boolean} [isCommentsEnabled=false] - Whether comments are enabled
58
- * @property {boolean} [isNewFile=false] - Whether this is a new file
59
- * @property {number} [scale=1] - Editor scale/zoom
60
- * @property {boolean} [annotations=false] - Whether annotations are enabled
61
- * @property {boolean} [isInternal=false] - Whether this is an internal editor
62
- * @property {Array} [externalExtensions=[]] - External extensions
63
- * @property {Object} [numbering={}] - Numbering configuration
64
- * @property {boolean} [isHeaderOrFooter=false] - Whether this is a header or footer editor
65
- * @property {Function} [onBeforeCreate] - Called before editor creation
66
- * @property {Function} [onCreate] - Called after editor creation
67
- * @property {Function} [onUpdate] - Called when editor content updates
68
- * @property {Function} [onSelectionUpdate] - Called when selection updates
69
- * @property {Function} [onTransaction] - Called when a transaction is processed
70
- * @property {Function} [onFocus] - Called when editor gets focus
71
- * @property {Function} [onBlur] - Called when editor loses focus
72
- * @property {Function} [onDestroy] - Called when editor is destroyed
73
- * @property {Function} [onContentError] - Called when there's a content error
74
- * @property {Function} [onTrackedChangesUpdate] - Called when tracked changes update
75
- * @property {Function} [onCommentsUpdate] - Called when comments update
76
- * @property {Function} [onCommentsLoaded] - Called when comments are loaded
77
- * @property {Function} [onCommentClicked] - Called when a comment is clicked
78
- * @property {Function} [onCommentLocationsUpdate] - Called when comment locations update
79
- * @property {Function} [onDocumentLocked] - Called when document is locked
80
- * @property {Function} [onFirstRender] - Called on first render
81
- * @property {Function} [onCollaborationReady] - Called when collaboration is ready
82
- * @property {Function} [onPaginationUpdate] - Called when pagination updates
83
- * @property {Function} [onException] - Called when an exception occurs
84
- * @property {Function} [onListDefinitionsChange] - Called when list definitions change
85
- * @property {Function} [onFontsResolved] - Called when all fonts used in the document are determined
86
- * @property {Function} [handleImageUpload] - Handler for image uploads
87
- * @property {Object} [telemetry] - Telemetry configuration
88
- * @property {boolean} [suppressDefaultDocxStyles] - Prevent default styles from being applied in docx mode
89
- * @property {Object} [jsonOverride] - Provided JSON to override content with
90
- * @property {string} [html] - HTML content to initialize the editor with
91
- * @property {string} [markdown] - Markdown content to initialize the editor with
92
- * @property {boolean} [isDebug=false] - Whether to enable debug mode
93
- * @property {(params: {
94
- * permission: string,
95
- * role?: string,
96
- * isInternal?: boolean,
97
- * comment?: Object | null,
98
- * trackedChange?: Object | null,
99
- }) => boolean | undefined} [permissionResolver] - Host-provided permission hook
100
- */
1
+ import type { EditorState, Plugin } from 'prosemirror-state';
2
+ import type { Node as PmNode, Schema } from 'prosemirror-model';
3
+ import type { EditorOptions, User, FieldValue, DocxFileEntry } from './types/EditorConfig.js';
4
+ import type { EditorHelpers, ExtensionStorage, ProseMirrorJSON, PageStyles, Toolbar } from './types/EditorTypes.js';
5
+ import type { ChainableCommandObject, CanObject, EditorCommands } from './types/ChainedCommands.js';
6
+ import type { EditorEventMap, Comment } from './types/EditorEvents.js';
7
+ import { EditorView } from 'prosemirror-view';
8
+ import { EventEmitter } from './EventEmitter.js';
9
+ import { ExtensionService } from './ExtensionService.js';
10
+ import { SuperConverter } from '@core/super-converter/SuperConverter.js';
101
11
  /**
102
12
  * Main editor class that manages document state, extensions, and user interactions
103
- * @class
104
- * @extends EventEmitter
105
13
  */
106
- export class Editor extends EventEmitter {
107
- /**
108
- * Load the data from DOCX to be used in the schema.
109
- * Expects a DOCX file.
110
- * @static
111
- * @async
112
- * @param {File|Blob|Buffer} fileSource - The DOCX file to load (File/Blob in browser, Buffer in Node.js)
113
- * @param {boolean} [isNode=false] - Whether the method is being called in a Node.js environment
114
- * @returns {Promise<Array>} - A promise that resolves to an array containing:
115
- * - [0] xmlFiles - Array of XML files extracted from the DOCX
116
- * - [1] mediaFiles - Object containing media files with URLs (browser only)
117
- * - [2] mediaFiles - Object containing media files with base64 data
118
- * - [3] fonts - Object containing font files from the DOCX
119
- */
120
- static loadXmlData(fileSource: File | Blob | Buffer, isNode?: boolean): Promise<any[]>;
121
- /**
122
- * Get the document version
123
- * @static
124
- * @param {Object} doc - Document object
125
- * @returns {string} Document version
126
- */
127
- static getDocumentVersion(doc: any): string;
14
+ export declare class Editor extends EventEmitter<EditorEventMap> {
15
+ #private;
128
16
  /**
129
- * Set the document version
130
- * @static
131
- * @param {Object} doc - Document object
132
- * @param {string} version - New version
133
- * @returns {string} The set version
17
+ * Service for managing extensions
134
18
  */
135
- static setDocumentVersion(doc: any, version: string): string;
19
+ extensionService: ExtensionService;
136
20
  /**
137
- * Get the document GUID
138
- * @static
139
- * @param {Object} doc - Document object
140
- * @returns {string|null} Document GUID
21
+ * Storage for extension data
141
22
  */
142
- static getDocumentGuid(doc: any): string | null;
23
+ extensionStorage: ExtensionStorage;
143
24
  /**
144
- * @deprecated use setDocumentVersion instead
25
+ * ProseMirror schema for the editor
145
26
  */
146
- static updateDocumentVersion(doc: any, version: any): string;
27
+ schema: Schema;
147
28
  /**
148
- * Check if migrations are needed for the data
149
- * @static
150
- * @param {Object} data - Document data
151
- * @returns {boolean} Whether migrations are needed
29
+ * ProseMirror view instance
152
30
  */
153
- static checkIfMigrationsNeeded(): boolean;
31
+ view: EditorView;
154
32
  /**
155
- * Create a new Editor instance
156
- * @param {EditorOptions} options - Editor configuration options
33
+ * Whether the editor currently has focus
157
34
  */
158
- constructor(options: EditorOptions);
35
+ isFocused: boolean;
159
36
  /**
160
- * Service for managing extensions
161
- * @type {Object}
37
+ * All the embedded fonts that were imported by the Editor
162
38
  */
163
- extensionService: any;
39
+ fontsImported: string[];
164
40
  /**
165
- * Storage for extension data
166
- * @type {Object}
41
+ * The document converter instance
167
42
  */
168
- extensionStorage: any;
43
+ converter: SuperConverter;
169
44
  /**
170
- * ProseMirror schema for the editor
171
- * @type {Object}
45
+ * Toolbar instance (if attached)
172
46
  */
173
- schema: any;
47
+ toolbar?: Toolbar;
174
48
  /**
175
- * ProseMirror view instance
176
- * @type {Object}
49
+ * Original state for preview mode
177
50
  */
178
- view: any;
51
+ originalState?: EditorState;
179
52
  /**
180
- * Whether the editor currently has focus
181
- * @type {boolean}
53
+ * High contrast mode setter
182
54
  */
183
- isFocused: boolean;
55
+ setHighContrastMode?: (enabled: boolean) => void;
56
+ options: EditorOptions;
184
57
  /**
185
- * All the embedded fonts that were imported by the Editor
186
- * @type {string[]}
58
+ * Create a new Editor instance
59
+ * @param options - Editor configuration options
187
60
  */
188
- fontsImported: string[];
189
- options: {
190
- element: any;
191
- selector: any;
192
- isHeadless: boolean;
193
- mockDocument: any;
194
- mockWindow: any;
195
- content: string;
196
- user: any;
197
- users: any[];
198
- media: {};
199
- mediaFiles: {};
200
- fonts: {};
201
- documentMode: string;
202
- mode: string;
203
- role: string;
204
- colors: any[];
205
- converter: any;
206
- fileSource: any;
207
- initialState: any;
208
- documentId: any;
209
- extensions: any[];
210
- editable: boolean;
211
- editorProps: {};
212
- parseOptions: {};
213
- coreExtensionOptions: {};
214
- enableInputRules: boolean;
215
- isCommentsEnabled: boolean;
216
- isNewFile: boolean;
217
- scale: number;
218
- annotations: boolean;
219
- isInternal: boolean;
220
- externalExtensions: any[];
221
- numbering: {};
222
- isHeaderOrFooter: boolean;
223
- lastSelection: any;
224
- suppressDefaultDocxStyles: boolean;
225
- jsonOverride: any;
226
- onBeforeCreate: () => any;
227
- onCreate: () => any;
228
- onUpdate: () => any;
229
- onSelectionUpdate: () => any;
230
- onTransaction: () => any;
231
- onFocus: () => any;
232
- onBlur: () => any;
233
- onDestroy: () => any;
234
- onContentError: ({ error }: {
235
- error: any;
236
- }) => never;
237
- onTrackedChangesUpdate: () => any;
238
- onCommentsUpdate: () => any;
239
- onCommentsLoaded: () => any;
240
- onCommentClicked: () => any;
241
- onCommentLocationsUpdate: () => any;
242
- onDocumentLocked: () => any;
243
- onFirstRender: () => any;
244
- onCollaborationReady: () => any;
245
- onPaginationUpdate: () => any;
246
- onException: () => any;
247
- onListDefinitionsChange: () => any;
248
- onFontsResolved: any;
249
- handleImageUpload: any;
250
- telemetry: any;
251
- customUpdatedFiles: {};
252
- isHeaderFooterChanged: boolean;
253
- isCustomXmlChanged: boolean;
254
- focusTarget: any;
255
- permissionResolver: any;
256
- parentEditor: any;
257
- };
258
- setHighContrastMode: (value: any) => void;
61
+ constructor(options: Partial<EditorOptions>);
259
62
  /**
260
63
  * Getter which indicates if any changes happen in Editor
261
- * @returns {boolean}
262
64
  */
263
65
  get docChanged(): boolean;
264
- mount(el: any): void;
66
+ mount(el: HTMLElement | null): void;
265
67
  unmount(): void;
266
68
  /**
267
69
  * Set the toolbar for this editor
268
- * @param {Object} toolbar - The toolbar instance
269
- * @returns {void}
270
70
  */
271
- setToolbar(toolbar: any): void;
272
- toolbar: any;
71
+ setToolbar(toolbar: Toolbar): void;
273
72
  /**
274
73
  * Focus the editor.
275
- * @returns {void}
276
74
  */
277
75
  focus(): void;
278
76
  /**
279
77
  * Get the editor state
280
- * @returns {Object} ProseMirror state
281
78
  */
282
- get state(): any;
79
+ get state(): EditorState;
283
80
  /**
284
81
  * Get the editor storage.
285
- * @returns {Object} Editor storage object
286
82
  */
287
- get storage(): any;
83
+ get storage(): ExtensionStorage;
288
84
  /**
289
85
  * Get object of registered commands.
290
- * @returns {import('./commands/types/index.js').EditorCommands} Commands object
291
86
  */
292
- get commands(): import("./commands/types/index.js").EditorCommands;
87
+ get commands(): EditorCommands;
293
88
  /**
294
89
  * Get extension helpers.
295
- * @returns {EditorHelpers} Object with helper methods for extensions
296
90
  */
297
91
  get helpers(): EditorHelpers;
298
92
  /**
299
93
  * Check if the editor is editable.
300
- * @returns {boolean}
301
94
  */
302
95
  get isEditable(): boolean;
303
96
  /**
304
97
  * Check if editor is destroyed.
305
- * @returns {boolean}
306
98
  */
307
99
  get isDestroyed(): boolean;
308
100
  /**
309
101
  * Get the editor element
310
- * @returns {HTMLElement} The editor element
311
102
  */
312
- get element(): HTMLElement;
103
+ get element(): HTMLElement | null;
313
104
  /**
314
105
  * Get possible users of the editor.
315
- * @returns {Array.<User>} List of users
316
106
  */
317
- get users(): Array<User>;
107
+ get users(): User[];
318
108
  /**
319
109
  * Create a chain of commands to call multiple commands at once.
320
- * @returns {Object} Command chain
321
110
  */
322
- chain(): any;
111
+ chain(): ChainableCommandObject;
323
112
  /**
324
113
  * Check if a command or a chain of commands can be executed. Without executing it.
325
- * @returns {Object} Object with methods to check command availability
326
114
  */
327
- can(): any;
115
+ can(): CanObject;
328
116
  /**
329
117
  * Set the document mode
330
- * @param {string} documentMode - The document mode ('editing', 'viewing', 'suggesting')
331
- * @param {string} caller - Calling context
118
+ * @param documentMode - The document mode ('editing', 'viewing', 'suggesting')
119
+ * @param caller - Calling context
332
120
  */
333
- setDocumentMode(documentMode: string, caller: string): void;
121
+ setDocumentMode(documentMode: string, caller?: string): void;
334
122
  /**
335
123
  * Export the yjs binary from the current state.
336
- * @returns {Promise<Uint8Array>} The exported yjs binary
337
124
  */
338
125
  generateCollaborationUpdate(): Promise<Uint8Array>;
339
126
  /**
340
127
  * Initialize data for collaborative editing
341
128
  * If we are replacing data and have a valid provider, listen for synced event
342
129
  * so that we can initialize the data
343
- * @returns {void}
344
130
  */
345
131
  initializeCollaborationData(): void;
346
132
  /**
347
133
  * Replace content of editor that was created with loadFromSchema option
348
134
  * Used to replace content of other header/footer when one of it was edited
349
135
  *
350
- * @param {object} content - new editor content json (retrieved from editor.getUpdatedJson)
351
- * @returns {void}
136
+ * @param content - new editor content json (retrieved from editor.getUpdatedJson)
352
137
  */
353
- replaceContent(content: object): void;
138
+ replaceContent(content: ProseMirrorJSON): void;
354
139
  /**
355
140
  * Set editor options and update state.
356
- * @param {EditorOptions} options - Editor options
357
- * @returns {void}
358
141
  */
359
- setOptions(options?: EditorOptions): void;
142
+ setOptions(options?: Partial<EditorOptions>): void;
360
143
  /**
361
144
  * Set whether the editor is editable
362
- * @param {boolean} [editable=true] - Whether the editor is editable
363
- * @param {boolean} [emitUpdate=true] - Whether to emit an update event
364
- * @returns {void}
365
145
  */
366
146
  setEditable(editable?: boolean, emitUpdate?: boolean): void;
367
147
  /**
368
148
  * Register PM plugin.
369
149
  * @param plugin PM plugin.
370
150
  * @param handlePlugins Optional function for handling plugin merge.
371
- * @returns {void}
372
151
  */
373
- registerPlugin(plugin: any, handlePlugins: any): void;
152
+ registerPlugin(plugin: Plugin, handlePlugins?: (plugin: Plugin, plugins: Plugin[]) => Plugin[]): void;
374
153
  /**
375
154
  * Unregister a PM plugin
376
- * @param {string|Object} nameOrPluginKey - Plugin name or plugin instance
377
- * @returns {void}
378
155
  */
379
- unregisterPlugin(nameOrPluginKey: string | any): void;
380
- converter: any;
156
+ unregisterPlugin(nameOrPluginKey: string | {
157
+ key?: string;
158
+ }): void;
159
+ /**
160
+ * Load the data from DOCX to be used in the schema.
161
+ * Expects a DOCX file.
162
+ * @param fileSource - The DOCX file to load (File/Blob in browser, Buffer in Node.js)
163
+ * @param isNode - Whether the method is being called in a Node.js environment
164
+ * @returns A promise that resolves to an array containing:
165
+ * - [0] xmlFiles - Array of XML files extracted from the DOCX
166
+ * - [1] mediaFiles - Object containing media files with URLs (browser only)
167
+ * - [2] mediaFiles - Object containing media files with base64 data
168
+ * - [3] fonts - Object containing font files from the DOCX
169
+ */
170
+ static loadXmlData(fileSource: File | Blob | Buffer, isNode?: boolean): Promise<[DocxFileEntry[], Record<string, unknown>, Record<string, unknown>, Record<string, unknown>] | undefined>;
171
+ /**
172
+ * Get the document version
173
+ */
174
+ static getDocumentVersion(doc: DocxFileEntry[]): string;
175
+ /**
176
+ * Set the document version
177
+ */
178
+ static setDocumentVersion(doc: DocxFileEntry[], version: string): string;
179
+ /**
180
+ * Get the document GUID
181
+ */
182
+ static getDocumentGuid(doc: DocxFileEntry[]): string | null;
183
+ /**
184
+ * @deprecated use setDocumentVersion instead
185
+ */
186
+ static updateDocumentVersion(doc: DocxFileEntry[], version: string): string;
381
187
  /**
382
188
  * Creates all node views.
383
- * @returns {void}
384
189
  */
385
190
  createNodeViews(): void;
386
191
  /**
387
192
  * Get the maximum content size
388
- * @returns {Object} Size object with width and height
389
193
  */
390
- getMaxContentSize(): any;
194
+ getMaxContentSize(): {
195
+ width?: number;
196
+ height?: number;
197
+ };
391
198
  /**
392
199
  * Attach styles and attributes to the editor element
393
200
  */
394
- updateEditorStyles(element: any, proseMirror: any, hasPaginationEnabled?: boolean): void;
201
+ updateEditorStyles(element: HTMLElement, proseMirror: HTMLElement, hasPaginationEnabled?: boolean): void;
395
202
  /**
396
203
  * Initialize default styles for the editor container and ProseMirror.
397
204
  * Get page size and margins from the converter.
398
205
  * Set document default font and font size.
399
206
  *
400
- * @param {HTMLElement} [element=this.element] - The DOM element to apply styles to
401
- * @returns {void}
207
+ * @param element - The DOM element to apply styles to
402
208
  */
403
- initDefaultStyles(element?: HTMLElement, isPaginationEnabled?: boolean): void;
209
+ initDefaultStyles(element?: HTMLElement | null, isPaginationEnabled?: boolean): void;
404
210
  /**
405
211
  * Initializes responsive styles for mobile devices.
406
212
  * Sets up scaling based on viewport width and handles orientation changes.
407
- *
408
- * @param {HTMLElement|void} element - The DOM element to apply mobile styles to
409
- * @returns {void}
410
213
  */
411
- initMobileStyles(element: HTMLElement | void): void;
214
+ initMobileStyles(element: HTMLElement | null): void;
412
215
  /**
413
216
  * Get document identifier for telemetry (async - may generate hash)
414
- * @returns {Promise<string>} GUID for modified docs, hash for unmodified
415
217
  */
416
- getDocumentIdentifier(): Promise<string>;
218
+ getDocumentIdentifier(): Promise<string | null>;
417
219
  /**
418
220
  * Get permanent document GUID (sync - only for modified documents)
419
- * @returns {string|null} GUID or null if document hasn't been modified
420
221
  */
421
222
  getDocumentGuid(): string | null;
422
223
  /**
423
224
  * Check if document has been modified
424
- * @returns {boolean}
425
225
  */
426
226
  isDocumentModified(): boolean;
427
227
  /**
428
228
  * Get telemetry data (async because of lazy hash generation)
429
229
  */
430
230
  getTelemetryData(): Promise<{
431
- documentId: string;
231
+ documentId: string | null;
432
232
  isModified: boolean;
433
233
  isPermanentId: boolean;
434
- version: any;
234
+ version: string | null;
435
235
  }>;
436
- getDocumentId(): string;
236
+ /**
237
+ * @deprecated use getDocumentGuid instead
238
+ */
239
+ getDocumentId(): string | null;
437
240
  /**
438
241
  * Get attrs of the currently selected node or mark.
439
- * @param {String} nameOrType
440
242
  * @example
441
243
  * editor.getAttributes('textStyle').color
442
244
  */
443
- getAttributes(nameOrType: string): any;
245
+ getAttributes(nameOrType: string): Record<string, unknown>;
444
246
  /**
445
247
  * Returns if the currently selected node or mark is active.
446
- * @param {String|Object} nameOrAttributes - The name of the node/mark or an attributes object
447
- * @param {Object} [attributesOrUndefined] - Optional attributes to check when first parameter is a name
448
- * @returns {Boolean} Whether the node or mark is active with the specified attributes
248
+ * @param nameOrAttributes - The name of the node/mark or an attributes object
249
+ * @param attributesOrUndefined - Optional attributes to check when first parameter is a name
449
250
  * @example
450
251
  * editor.isActive('bold')
451
252
  * editor.isActive('textStyle', { color: 'purple' })
452
253
  * editor.isActive({ textAlign: 'center' })
453
254
  */
454
- isActive(nameOrAttributes: string | any, attributesOrUndefined?: any): boolean;
255
+ isActive(nameOrAttributes: string | Record<string, unknown>, attributesOrUndefined?: Record<string, unknown>): boolean;
455
256
  /**
456
257
  * Get the editor content as JSON
457
- * @returns {Object} Editor content as JSON
458
258
  */
459
- getJSON(): any;
259
+ getJSON(): ProseMirrorJSON;
460
260
  /**
461
261
  * Get document metadata including GUID, modification status, and version
462
- * @returns {{
463
- * documentGuid: string | null,
464
- * isModified: boolean,
465
- * version: string | null
466
- * }} Document metadata
467
262
  */
468
263
  getMetadata(): {
469
264
  documentGuid: string | null;
@@ -472,448 +267,116 @@ export class Editor extends EventEmitter {
472
267
  };
473
268
  /**
474
269
  * Get the editor content as HTML
475
- * @param {Object} options - Options for the HTML serializer
476
- * @param {boolean} [options.unflattenLists] - Whether to unflatten lists in the HTML
477
- * @returns {string} Editor content as HTML
478
270
  */
479
271
  getHTML({ unflattenLists }?: {
480
272
  unflattenLists?: boolean;
481
273
  }): string;
482
274
  /**
483
275
  * Get the editor content as Markdown
484
- * @returns {Promise<string>} Editor content as Markdown
485
276
  */
486
277
  getMarkdown(): Promise<string>;
487
278
  /**
488
279
  * Get the document version from the converter
489
- * @returns {string|null} The SuperDoc version stored in the document
490
280
  */
491
281
  getDocumentVersion(): string | null;
492
282
  /**
493
283
  * Create a child editor linked to this editor.
494
284
  * This is useful for creating header/footer editors that are linked to the main editor.
495
285
  * Or paragraph fields that rely on the same underlying document and list defintions
496
- * @param {EditorOptions} options - Options for the child editor
497
- * @returns {Editor} A new child editor instance linked to this editor
498
286
  */
499
- createChildEditor(options: EditorOptions): Editor;
287
+ createChildEditor(options: Partial<EditorOptions>): Editor;
500
288
  /**
501
289
  * Get page styles
502
- * @returns {Object} Page styles
503
290
  */
504
- getPageStyles(): any;
291
+ getPageStyles(): PageStyles;
505
292
  /**
506
293
  * Update page styles
507
- *
508
- * @param {Object} param0
509
- * @param {Object} param0.pageMargins The new page margins
510
- * @returns {void}
511
294
  */
512
295
  updatePageStyle({ pageMargins }: {
513
- pageMargins: any;
296
+ pageMargins?: Record<string, unknown>;
514
297
  }): void;
515
- migrateListsToV2(): any;
516
- getUpdatedJson(): any;
298
+ migrateListsToV2(): any[];
299
+ getUpdatedJson(): ProseMirrorJSON;
517
300
  /**
518
301
  * Export the editor document to DOCX.
519
- * @async
520
- * @param {Object} options - The export options
521
- * @param {boolean} [options.isFinalDoc=false] - Whether this is the final document version
522
- * @param {string} [options.commentsType] - The type of comments to include
523
- * @param {Array} [options.comments=[]] - Array of comments to include in the document
524
- * @param {boolean} [options.getUpdatedDocs=false] - When set to true return only updated docx files
525
- * @returns {Promise<Blob|ArrayBuffer|Object>} The exported DOCX file or updated docx files
526
302
  */
527
303
  exportDocx({ isFinalDoc, commentsType, exportJsonOnly, exportXmlOnly, comments, getUpdatedDocs, fieldsHighlightColor, }?: {
528
304
  isFinalDoc?: boolean;
529
305
  commentsType?: string;
530
- comments?: any[];
306
+ exportJsonOnly?: boolean;
307
+ exportXmlOnly?: boolean;
308
+ comments?: Comment[];
531
309
  getUpdatedDocs?: boolean;
532
- }): Promise<Blob | ArrayBuffer | any>;
310
+ fieldsHighlightColor?: string | null;
311
+ }): Promise<Blob | ArrayBuffer | Buffer | Record<string, string> | ProseMirrorJSON | string | undefined>;
533
312
  /**
534
313
  * Destroy the editor and clean up resources
535
- * @returns {void}
536
314
  */
537
315
  destroy(): void;
538
316
  destroyHeaderFooterEditors(): void;
317
+ /**
318
+ * Check if migrations are needed for the data
319
+ */
320
+ static checkIfMigrationsNeeded(): boolean;
539
321
  /**
540
322
  * Process collaboration migrations
541
- * @returns {Object | void} Migration results
542
323
  */
543
- processCollaborationMigrations(): any | void;
324
+ processCollaborationMigrations(): unknown | void;
544
325
  /**
545
326
  * Replace the current file
546
- * @async
547
- * @param {Object} newFile - New file data
548
- * @returns {Promise<void>}
549
327
  */
550
- replaceFile(newFile: any): Promise<void>;
328
+ replaceFile(newFile: File | Blob | Buffer): Promise<void>;
551
329
  /**
552
330
  * Get internal docx file content
553
- * @param {string} name - File name
554
- * @param {string} type - type of result (json, string)
555
- * @returns {Object|String} - file content
331
+ * @param name - File name
332
+ * @param type - type of result (json, string)
556
333
  */
557
- getInternalXmlFile(name: string, type?: string): any | string;
334
+ getInternalXmlFile(name: string, type?: 'json' | 'string'): unknown | string | null;
558
335
  /**
559
336
  * Update internal docx file content
560
- * @param {string} name - File name
561
- * @param {string} updatedContent - new file content
337
+ * @param name - File name
338
+ * @param updatedContent - new file content
562
339
  */
563
- updateInternalXmlFile(name: string, updatedContent: string): void;
340
+ updateInternalXmlFile(name: string, updatedContent: string | unknown): void;
564
341
  /**
565
342
  * Get all nodes of a specific type
566
- * @param {string} type - Node type
567
- * @returns {Array} Array of nodes
568
343
  */
569
- getNodesOfType(type: string): any[];
344
+ getNodesOfType(type: string): Array<{
345
+ node: PmNode;
346
+ pos: number;
347
+ }>;
570
348
  /**
571
349
  * Replace a node with HTML content
572
- * @param {Object} targetNode - The node to replace
573
- * @param {string} html - HTML content to replace with
574
- * @returns {void}
575
350
  */
576
- replaceNodeWithHTML(targetNode: any, html: string): void;
351
+ replaceNodeWithHTML(targetNode: {
352
+ node: PmNode;
353
+ pos: number;
354
+ }, html: string): void;
577
355
  /**
578
356
  * A command to prepare the editor to receive annotations. This will
579
357
  * pre-process the document as needed prior to running in the annotator.
580
358
  *
581
359
  * Currently this is only used for table generation but additional pre-processing can be done here.
582
- *
583
- * @param {FieldValue[]} annotationValues
584
- * @returns {void}
585
360
  */
586
361
  prepareForAnnotations(annotationValues?: FieldValue[]): void;
587
362
  /**
588
363
  * Migrate paragraph fields to lists V2 structure if necessary.
589
- * @param {FieldValue[]} annotationValues - List of field values to migrate.
590
- * @returns {Promise<FieldValue[]>} - Returns a promise that resolves to the migrated
364
+ * @param annotationValues - List of field values to migrate.
365
+ * @returns Returns a promise that resolves to the migrated values
591
366
  */
592
367
  migrateParagraphFields(annotationValues?: FieldValue[]): Promise<FieldValue[]>;
593
368
  /**
594
369
  * Annotate the document with the given annotation values.
595
- *
596
- * @param {FieldValue[]} annotationValues List of field values to apply.
597
- * @param {String[]} hiddenIds List of field ids to remove from the document.
598
- * @returns {void}
599
370
  */
600
371
  annotate(annotationValues?: FieldValue[], hiddenIds?: string[], removeEmptyFields?: boolean): void;
601
372
  /**
602
373
  * Preview annotations in the editor. It stores a copy of the original state.
603
374
  * This can be reverted via closePreview()
604
- *
605
- * @param {Object[]} annotationValues
606
- * @param {string[]} hiddenIds
607
- * @returns {void}
608
375
  */
609
- previewAnnotations(annotationValues?: any[], hiddenIds?: string[]): void;
610
- originalState: any;
376
+ previewAnnotations(annotationValues?: FieldValue[], hiddenIds?: string[]): void;
611
377
  /**
612
378
  * If there is a preview active, this will revert the editor to the original state.
613
- *
614
- * @returns {void}
615
379
  */
616
380
  closePreview(): void;
617
- #private;
618
381
  }
619
- export type FieldValue = {
620
- /**
621
- * The id of the input field
622
- */
623
- input_id: string;
624
- /**
625
- * The value to insert into the field
626
- */
627
- input_value: string;
628
- };
629
- /**
630
- * A map of plugin names to their helper API objects.
631
- * Each plugin defines its own helper methods.
632
- *
633
- * Example:
634
- * editor.helpers.linkedStyles.getStyles()
635
- */
636
- export type EditorHelpers = {
637
- [x: string]: {
638
- [x: string]: Function;
639
- };
640
- };
641
- /**
642
- * The current user of this superdoc
643
- */
644
- export type User = {
645
- /**
646
- * The user's name
647
- */
648
- name: string;
649
- /**
650
- * The user's email
651
- */
652
- email: string;
653
- /**
654
- * The user's photo
655
- */
656
- image: string | null;
657
- };
658
- /**
659
- * A JSON representation of a docx node
660
- */
661
- export type DocxNode = any;
662
- export type EditorOptions = {
663
- /**
664
- * - The container element for the editor
665
- */
666
- element?: HTMLElement;
667
- /**
668
- * - CSS selector for the editor container
669
- */
670
- selector?: string;
671
- /**
672
- * - Whether the editor is running in headless mode
673
- */
674
- isHeadless?: boolean;
675
- /**
676
- * - Mock document for testing
677
- */
678
- mockDocument?: Document;
679
- /**
680
- * - Mock window for testing
681
- */
682
- mockWindow?: Window;
683
- /**
684
- * - XML content
685
- */
686
- content?: string;
687
- /**
688
- * - Current user information
689
- */
690
- user?: User;
691
- /**
692
- * - List of users for collaboration
693
- */
694
- users?: Array<User>;
695
- /**
696
- * - Media configuration
697
- */
698
- media?: any;
699
- /**
700
- * - Media files
701
- */
702
- mediaFiles?: any;
703
- /**
704
- * - Font configuration
705
- */
706
- fonts?: any;
707
- /**
708
- * - Document mode ('editing', 'viewing', 'suggesting')
709
- */
710
- documentMode?: string;
711
- /**
712
- * - Editor mode ('docx', 'text', 'html')
713
- */
714
- mode?: string;
715
- /**
716
- * - User role ('editor', 'viewer', 'suggester')
717
- */
718
- role?: string;
719
- /**
720
- * - Available colors
721
- */
722
- colors?: any[];
723
- /**
724
- * - Document converter
725
- */
726
- converter?: any;
727
- /**
728
- * - Source of the file (File/Blob in browser, Buffer in Node.js)
729
- */
730
- fileSource?: File | Blob | Buffer;
731
- /**
732
- * - Initial editor state
733
- */
734
- initialState?: any;
735
- /**
736
- * - Unique document identifier
737
- */
738
- documentId?: string;
739
- /**
740
- * - Editor extensions
741
- */
742
- extensions?: any[];
743
- /**
744
- * - Whether the editor is editable
745
- */
746
- editable?: boolean;
747
- /**
748
- * - Editor properties
749
- */
750
- editorProps?: any;
751
- /**
752
- * - Parsing options
753
- */
754
- parseOptions?: any;
755
- /**
756
- * - Core extension options
757
- */
758
- coreExtensionOptions?: any;
759
- /**
760
- * - Whether to enable input rules
761
- */
762
- enableInputRules?: boolean;
763
- /**
764
- * - Whether comments are enabled
765
- */
766
- isCommentsEnabled?: boolean;
767
- /**
768
- * - Whether this is a new file
769
- */
770
- isNewFile?: boolean;
771
- /**
772
- * - Editor scale/zoom
773
- */
774
- scale?: number;
775
- /**
776
- * - Whether annotations are enabled
777
- */
778
- annotations?: boolean;
779
- /**
780
- * - Whether this is an internal editor
781
- */
782
- isInternal?: boolean;
783
- /**
784
- * - External extensions
785
- */
786
- externalExtensions?: any[];
787
- /**
788
- * - Numbering configuration
789
- */
790
- numbering?: any;
791
- /**
792
- * - Whether this is a header or footer editor
793
- */
794
- isHeaderOrFooter?: boolean;
795
- /**
796
- * - Called before editor creation
797
- */
798
- onBeforeCreate?: Function;
799
- /**
800
- * - Called after editor creation
801
- */
802
- onCreate?: Function;
803
- /**
804
- * - Called when editor content updates
805
- */
806
- onUpdate?: Function;
807
- /**
808
- * - Called when selection updates
809
- */
810
- onSelectionUpdate?: Function;
811
- /**
812
- * - Called when a transaction is processed
813
- */
814
- onTransaction?: Function;
815
- /**
816
- * - Called when editor gets focus
817
- */
818
- onFocus?: Function;
819
- /**
820
- * - Called when editor loses focus
821
- */
822
- onBlur?: Function;
823
- /**
824
- * - Called when editor is destroyed
825
- */
826
- onDestroy?: Function;
827
- /**
828
- * - Called when there's a content error
829
- */
830
- onContentError?: Function;
831
- /**
832
- * - Called when tracked changes update
833
- */
834
- onTrackedChangesUpdate?: Function;
835
- /**
836
- * - Called when comments update
837
- */
838
- onCommentsUpdate?: Function;
839
- /**
840
- * - Called when comments are loaded
841
- */
842
- onCommentsLoaded?: Function;
843
- /**
844
- * - Called when a comment is clicked
845
- */
846
- onCommentClicked?: Function;
847
- /**
848
- * - Called when comment locations update
849
- */
850
- onCommentLocationsUpdate?: Function;
851
- /**
852
- * - Called when document is locked
853
- */
854
- onDocumentLocked?: Function;
855
- /**
856
- * - Called on first render
857
- */
858
- onFirstRender?: Function;
859
- /**
860
- * - Called when collaboration is ready
861
- */
862
- onCollaborationReady?: Function;
863
- /**
864
- * - Called when pagination updates
865
- */
866
- onPaginationUpdate?: Function;
867
- /**
868
- * - Called when an exception occurs
869
- */
870
- onException?: Function;
871
- /**
872
- * - Called when list definitions change
873
- */
874
- onListDefinitionsChange?: Function;
875
- /**
876
- * - Called when all fonts used in the document are determined
877
- */
878
- onFontsResolved?: Function;
879
- /**
880
- * - Handler for image uploads
881
- */
882
- handleImageUpload?: Function;
883
- /**
884
- * - Telemetry configuration
885
- */
886
- telemetry?: any;
887
- /**
888
- * - Prevent default styles from being applied in docx mode
889
- */
890
- suppressDefaultDocxStyles?: boolean;
891
- /**
892
- * - Provided JSON to override content with
893
- */
894
- jsonOverride?: any;
895
- /**
896
- * - HTML content to initialize the editor with
897
- */
898
- html?: string;
899
- /**
900
- * - Markdown content to initialize the editor with
901
- */
902
- markdown?: string;
903
- /**
904
- * - Whether to enable debug mode
905
- */
906
- isDebug?: boolean;
907
- /**
908
- * - Host-provided permission hook
909
- */
910
- permissionResolver?: (params: {
911
- permission: string;
912
- role?: string;
913
- isInternal?: boolean;
914
- comment?: any | null;
915
- trackedChange?: any | null;
916
- }) => boolean | undefined;
917
- };
918
- import { EventEmitter } from './EventEmitter.js';
919
382
  //# sourceMappingURL=Editor.d.ts.map