superdoc 0.20.0-next.13

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 (712) hide show
  1. package/README.md +113 -0
  2. package/dist/chunks/PdfViewer-Cdw_Rxtl.cjs +507 -0
  3. package/dist/chunks/PdfViewer-UKMeGyCc.es.js +507 -0
  4. package/dist/chunks/blank-docx-CPqX9RF5.cjs +3 -0
  5. package/dist/chunks/blank-docx-iwdyG9RH.es.js +4 -0
  6. package/dist/chunks/eventemitter3-B_kO1Pxm.cjs +168 -0
  7. package/dist/chunks/eventemitter3-CZv6vEhA.es.js +169 -0
  8. package/dist/chunks/index-ByynlgNA.es.js +18649 -0
  9. package/dist/chunks/index-QAHP9Hp3.cjs +18664 -0
  10. package/dist/chunks/jszip-B8KIZSNe.es.js +1774 -0
  11. package/dist/chunks/jszip-b7l8QkfH.cjs +1773 -0
  12. package/dist/chunks/super-editor.es-BFcP4oFS.cjs +83013 -0
  13. package/dist/chunks/super-editor.es-D9-ZMXnA.es.js +82998 -0
  14. package/dist/chunks/uuid-CQzaMNgL.cjs +36 -0
  15. package/dist/chunks/uuid-DIIKH5Zc.es.js +37 -0
  16. package/dist/chunks/vue-CXxsqYcP.es.js +9743 -0
  17. package/dist/chunks/vue-DWle4Cai.cjs +9742 -0
  18. package/dist/chunks/xml-js-CX8FH0He.cjs +3 -0
  19. package/dist/chunks/xml-js-D0tLGmKu.es.js +2 -0
  20. package/dist/components/CommentsLayer/comment-schemas.d.ts +17 -0
  21. package/dist/components/CommentsLayer/comment-schemas.d.ts.map +1 -0
  22. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +21 -0
  23. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +1 -0
  24. package/dist/components/CommentsLayer/helpers.d.ts +8 -0
  25. package/dist/components/CommentsLayer/helpers.d.ts.map +1 -0
  26. package/dist/components/CommentsLayer/use-comment.d.ts +8 -0
  27. package/dist/components/CommentsLayer/use-comment.d.ts.map +1 -0
  28. package/dist/components/CommentsLayer/use-conversation.d.ts +23 -0
  29. package/dist/components/CommentsLayer/use-conversation.d.ts.map +1 -0
  30. package/dist/components/CommentsLayer/use-floating-comment.d.ts +12 -0
  31. package/dist/components/CommentsLayer/use-floating-comment.d.ts.map +1 -0
  32. package/dist/components/PdfViewer/helpers/range.d.ts +2 -0
  33. package/dist/components/PdfViewer/helpers/range.d.ts.map +1 -0
  34. package/dist/components/PdfViewer/helpers/read-file.d.ts +2 -0
  35. package/dist/components/PdfViewer/helpers/read-file.d.ts.map +1 -0
  36. package/dist/components/PdfViewer/pdf/pdf-adapter.d.ts +115 -0
  37. package/dist/components/PdfViewer/pdf/pdf-adapter.d.ts.map +1 -0
  38. package/dist/composables/use-ai.d.ts +11 -0
  39. package/dist/composables/use-ai.d.ts.map +1 -0
  40. package/dist/composables/use-document.d.ts +29 -0
  41. package/dist/composables/use-document.d.ts.map +1 -0
  42. package/dist/composables/use-field.d.ts +34 -0
  43. package/dist/composables/use-field.d.ts.map +1 -0
  44. package/dist/composables/use-high-contrast-mode.d.ts +5 -0
  45. package/dist/composables/use-high-contrast-mode.d.ts.map +1 -0
  46. package/dist/composables/use-selected-text.d.ts +8 -0
  47. package/dist/composables/use-selected-text.d.ts.map +1 -0
  48. package/dist/core/SuperDoc.d.ts +803 -0
  49. package/dist/core/SuperDoc.d.ts.map +1 -0
  50. package/dist/core/collaboration/collaboration-comments.d.ts +5 -0
  51. package/dist/core/collaboration/collaboration-comments.d.ts.map +1 -0
  52. package/dist/core/collaboration/collaboration.d.ts +18 -0
  53. package/dist/core/collaboration/collaboration.d.ts.map +1 -0
  54. package/dist/core/collaboration/helpers.d.ts +5 -0
  55. package/dist/core/collaboration/helpers.d.ts.map +1 -0
  56. package/dist/core/collaboration/permissions.d.ts +14 -0
  57. package/dist/core/collaboration/permissions.d.ts.map +1 -0
  58. package/dist/core/create-app.d.ts +2 -0
  59. package/dist/core/create-app.d.ts.map +1 -0
  60. package/dist/core/helpers/export.d.ts +3 -0
  61. package/dist/core/helpers/export.d.ts.map +1 -0
  62. package/dist/core/helpers/file.d.ts +44 -0
  63. package/dist/core/helpers/file.d.ts.map +1 -0
  64. package/dist/core/index.d.ts +2 -0
  65. package/dist/core/index.d.ts.map +1 -0
  66. package/dist/helpers/floor.d.ts +2 -0
  67. package/dist/helpers/floor.d.ts.map +1 -0
  68. package/dist/helpers/group-changes.d.ts +2 -0
  69. package/dist/helpers/group-changes.d.ts.map +1 -0
  70. package/dist/helpers/use-selection.d.ts +18 -0
  71. package/dist/helpers/use-selection.d.ts.map +1 -0
  72. package/dist/icons.d.ts +11 -0
  73. package/dist/icons.d.ts.map +1 -0
  74. package/dist/images/altText_add.svg +3 -0
  75. package/dist/images/altText_done.svg +3 -0
  76. package/dist/images/annotation-check.svg +11 -0
  77. package/dist/images/annotation-comment.svg +16 -0
  78. package/dist/images/annotation-help.svg +26 -0
  79. package/dist/images/annotation-insert.svg +10 -0
  80. package/dist/images/annotation-key.svg +11 -0
  81. package/dist/images/annotation-newparagraph.svg +11 -0
  82. package/dist/images/annotation-noicon.svg +7 -0
  83. package/dist/images/annotation-note.svg +42 -0
  84. package/dist/images/annotation-paperclip.svg +6 -0
  85. package/dist/images/annotation-paragraph.svg +16 -0
  86. package/dist/images/annotation-pushpin.svg +7 -0
  87. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  88. package/dist/images/cursor-editorFreeText.svg +3 -0
  89. package/dist/images/cursor-editorInk.svg +4 -0
  90. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  91. package/dist/images/editor-toolbar-delete.svg +5 -0
  92. package/dist/images/loading-icon.gif +0 -0
  93. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  94. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  95. package/dist/index.d.ts +19 -0
  96. package/dist/index.d.ts.map +1 -0
  97. package/dist/main.d.ts +2 -0
  98. package/dist/main.d.ts.map +1 -0
  99. package/dist/stores/comments-store.d.ts +245 -0
  100. package/dist/stores/comments-store.d.ts.map +1 -0
  101. package/dist/stores/hrbr-fields-store.d.ts +44 -0
  102. package/dist/stores/hrbr-fields-store.d.ts.map +1 -0
  103. package/dist/stores/superdoc-store.d.ts +146 -0
  104. package/dist/stores/superdoc-store.d.ts.map +1 -0
  105. package/dist/style.css +5290 -0
  106. package/dist/super-editor/ai-writer.es.js +523 -0
  107. package/dist/super-editor/chunks/converter-Brf9NxwA.js +32437 -0
  108. package/dist/super-editor/chunks/docx-zipper-Dld3TtPb.js +2552 -0
  109. package/dist/super-editor/chunks/editor-27QWXfk-.js +33078 -0
  110. package/dist/super-editor/chunks/toolbar-BPRbNqgL.js +10168 -0
  111. package/dist/super-editor/converter.es.js +5 -0
  112. package/dist/super-editor/docx-zipper.es.js +5 -0
  113. package/dist/super-editor/editor.es.js +6 -0
  114. package/dist/super-editor/file-zipper.es.js +12 -0
  115. package/dist/super-editor/postcss.config.d.cts +1 -0
  116. package/dist/super-editor/src/components/cursor-helpers.d.ts +24 -0
  117. package/dist/super-editor/src/components/pagination-helpers.d.ts +8 -0
  118. package/dist/super-editor/src/components/slash-menu/constants.d.ts +67 -0
  119. package/dist/super-editor/src/components/slash-menu/menuItems.d.ts +36 -0
  120. package/dist/super-editor/src/components/slash-menu/utils.d.ts +9 -0
  121. package/dist/super-editor/src/components/toolbar/ai-helpers.d.ts +76 -0
  122. package/dist/super-editor/src/components/toolbar/color-dropdown-helpers.d.ts +14 -0
  123. package/dist/super-editor/src/components/toolbar/constants.d.ts +18 -0
  124. package/dist/super-editor/src/components/toolbar/defaultItems.d.ts +6 -0
  125. package/dist/super-editor/src/components/toolbar/helpers.d.ts +5 -0
  126. package/dist/super-editor/src/components/toolbar/scroll-helpers.d.ts +4 -0
  127. package/dist/super-editor/src/components/toolbar/super-toolbar.d.ts +506 -0
  128. package/dist/super-editor/src/components/toolbar/toolbarIcons.d.ts +61 -0
  129. package/dist/super-editor/src/components/toolbar/toolbarTexts.d.ts +52 -0
  130. package/dist/super-editor/src/components/toolbar/use-toolbar-item.d.ts +45 -0
  131. package/dist/super-editor/src/composables/use-high-contrast-mode.d.ts +4 -0
  132. package/dist/super-editor/src/core/Attribute.d.ts +79 -0
  133. package/dist/super-editor/src/core/CommandService.d.ts +63 -0
  134. package/dist/super-editor/src/core/DocxZipper.d.ts +61 -0
  135. package/dist/super-editor/src/core/Editor.d.ts +828 -0
  136. package/dist/super-editor/src/core/EventEmitter.d.ts +39 -0
  137. package/dist/super-editor/src/core/Extension.d.ts +18 -0
  138. package/dist/super-editor/src/core/ExtensionService.d.ts +59 -0
  139. package/dist/super-editor/src/core/InputRule.d.ts +60 -0
  140. package/dist/super-editor/src/core/Mark.d.ts +19 -0
  141. package/dist/super-editor/src/core/Node.d.ts +29 -0
  142. package/dist/super-editor/src/core/OxmlNode.d.ts +19 -0
  143. package/dist/super-editor/src/core/Schema.d.ts +33 -0
  144. package/dist/super-editor/src/core/child-editor/child-editor.d.ts +2 -0
  145. package/dist/super-editor/src/core/child-editor/index.d.ts +1 -0
  146. package/dist/super-editor/src/core/commands/backspaceNextToList.d.ts +5 -0
  147. package/dist/super-editor/src/core/commands/clearNodes.d.ts +5 -0
  148. package/dist/super-editor/src/core/commands/command.d.ts +1 -0
  149. package/dist/super-editor/src/core/commands/createParagraphNear.d.ts +4 -0
  150. package/dist/super-editor/src/core/commands/decreaseListIndent.d.ts +1 -0
  151. package/dist/super-editor/src/core/commands/deleteListItem.d.ts +1 -0
  152. package/dist/super-editor/src/core/commands/deleteNextToList.d.ts +14 -0
  153. package/dist/super-editor/src/core/commands/deleteSelection.d.ts +5 -0
  154. package/dist/super-editor/src/core/commands/exitCode.d.ts +4 -0
  155. package/dist/super-editor/src/core/commands/first.d.ts +1 -0
  156. package/dist/super-editor/src/core/commands/increaseListIndent.d.ts +4 -0
  157. package/dist/super-editor/src/core/commands/index.d.ts +43 -0
  158. package/dist/super-editor/src/core/commands/insertContent.d.ts +4 -0
  159. package/dist/super-editor/src/core/commands/insertContentAt.d.ts +8 -0
  160. package/dist/super-editor/src/core/commands/insertTabChar.d.ts +3 -0
  161. package/dist/super-editor/src/core/commands/insertTabNode.d.ts +10 -0
  162. package/dist/super-editor/src/core/commands/joinBackward.d.ts +4 -0
  163. package/dist/super-editor/src/core/commands/joinDown.d.ts +4 -0
  164. package/dist/super-editor/src/core/commands/joinForward.d.ts +4 -0
  165. package/dist/super-editor/src/core/commands/joinUp.d.ts +4 -0
  166. package/dist/super-editor/src/core/commands/liftEmptyBlock.d.ts +4 -0
  167. package/dist/super-editor/src/core/commands/liftListItem.d.ts +4 -0
  168. package/dist/super-editor/src/core/commands/list-helpers/find-node-position.d.ts +1 -0
  169. package/dist/super-editor/src/core/commands/list-helpers/index.d.ts +2 -0
  170. package/dist/super-editor/src/core/commands/list-helpers/is-list.d.ts +1 -0
  171. package/dist/super-editor/src/core/commands/list-helpers/test-helpers.d.ts +126 -0
  172. package/dist/super-editor/src/core/commands/newlineInCode.d.ts +4 -0
  173. package/dist/super-editor/src/core/commands/resetAttributes.d.ts +5 -0
  174. package/dist/super-editor/src/core/commands/restoreSelection.d.ts +5 -0
  175. package/dist/super-editor/src/core/commands/selectAll.d.ts +4 -0
  176. package/dist/super-editor/src/core/commands/selectNodeBackward.d.ts +4 -0
  177. package/dist/super-editor/src/core/commands/selectNodeForward.d.ts +4 -0
  178. package/dist/super-editor/src/core/commands/selectTextblockEnd.d.ts +4 -0
  179. package/dist/super-editor/src/core/commands/selectTextblockStart.d.ts +4 -0
  180. package/dist/super-editor/src/core/commands/setMark.d.ts +6 -0
  181. package/dist/super-editor/src/core/commands/setMeta.d.ts +3 -0
  182. package/dist/super-editor/src/core/commands/setNode.d.ts +5 -0
  183. package/dist/super-editor/src/core/commands/sinkListItem.d.ts +4 -0
  184. package/dist/super-editor/src/core/commands/splitBlock.d.ts +3 -0
  185. package/dist/super-editor/src/core/commands/splitListItem.d.ts +1 -0
  186. package/dist/super-editor/src/core/commands/toggleList.d.ts +56 -0
  187. package/dist/super-editor/src/core/commands/toggleMark.d.ts +4 -0
  188. package/dist/super-editor/src/core/commands/toggleNode.d.ts +4 -0
  189. package/dist/super-editor/src/core/commands/types/index.d.ts +61 -0
  190. package/dist/super-editor/src/core/commands/undoInputRule.d.ts +4 -0
  191. package/dist/super-editor/src/core/commands/unsetAllMarks.d.ts +5 -0
  192. package/dist/super-editor/src/core/commands/unsetMark.d.ts +6 -0
  193. package/dist/super-editor/src/core/commands/updateAttributes.d.ts +5 -0
  194. package/dist/super-editor/src/core/commands/wrapInList.d.ts +4 -0
  195. package/dist/super-editor/src/core/encoding-helpers.d.ts +27 -0
  196. package/dist/super-editor/src/core/extensions/commands.d.ts +2 -0
  197. package/dist/super-editor/src/core/extensions/editable.d.ts +2 -0
  198. package/dist/super-editor/src/core/extensions/editorFocus.d.ts +6 -0
  199. package/dist/super-editor/src/core/extensions/index.d.ts +4 -0
  200. package/dist/super-editor/src/core/extensions/keymap.d.ts +9 -0
  201. package/dist/super-editor/src/core/helpers/ErrorWithDetails.d.ts +20 -0
  202. package/dist/super-editor/src/core/helpers/annotator.d.ts +51 -0
  203. package/dist/super-editor/src/core/helpers/baseListDefinitions.d.ts +443 -0
  204. package/dist/super-editor/src/core/helpers/chainableEditorState.d.ts +8 -0
  205. package/dist/super-editor/src/core/helpers/cleanSchemaItem.d.ts +8 -0
  206. package/dist/super-editor/src/core/helpers/contentProcessor.d.ts +13 -0
  207. package/dist/super-editor/src/core/helpers/createDocument.d.ts +10 -0
  208. package/dist/super-editor/src/core/helpers/createNodeFromContent.d.ts +2 -0
  209. package/dist/super-editor/src/core/helpers/defaultBlockAt.d.ts +8 -0
  210. package/dist/super-editor/src/core/helpers/findChildren.d.ts +7 -0
  211. package/dist/super-editor/src/core/helpers/findMark.d.ts +1 -0
  212. package/dist/super-editor/src/core/helpers/findParentNode.d.ts +2 -0
  213. package/dist/super-editor/src/core/helpers/findParentNodeClosestToPos.d.ts +19 -0
  214. package/dist/super-editor/src/core/helpers/findWordBounds.d.ts +4 -0
  215. package/dist/super-editor/src/core/helpers/generateDocxListAttributes.d.ts +34 -0
  216. package/dist/super-editor/src/core/helpers/generateDocxRandomId.d.ts +6 -0
  217. package/dist/super-editor/src/core/helpers/getActiveFormatting.d.ts +4 -0
  218. package/dist/super-editor/src/core/helpers/getExtensionConfigField.d.ts +8 -0
  219. package/dist/super-editor/src/core/helpers/getHTMLFromFragment.d.ts +1 -0
  220. package/dist/super-editor/src/core/helpers/getMarkRange.d.ts +8 -0
  221. package/dist/super-editor/src/core/helpers/getMarkType.d.ts +7 -0
  222. package/dist/super-editor/src/core/helpers/getMarksBetween.d.ts +1 -0
  223. package/dist/super-editor/src/core/helpers/getMarksFromSelection.d.ts +1 -0
  224. package/dist/super-editor/src/core/helpers/getNodeType.d.ts +7 -0
  225. package/dist/super-editor/src/core/helpers/getSchemaTypeByName.d.ts +7 -0
  226. package/dist/super-editor/src/core/helpers/getSchemaTypeNameByName.d.ts +7 -0
  227. package/dist/super-editor/src/core/helpers/getTextContentFromNodes.d.ts +1 -0
  228. package/dist/super-editor/src/core/helpers/htmlSanitizer.d.ts +8 -0
  229. package/dist/super-editor/src/core/helpers/importHtml.d.ts +8 -0
  230. package/dist/super-editor/src/core/helpers/importMarkdown.d.ts +14 -0
  231. package/dist/super-editor/src/core/helpers/index.d.ts +30 -0
  232. package/dist/super-editor/src/core/helpers/isActive.d.ts +8 -0
  233. package/dist/super-editor/src/core/helpers/isExtentionRulesEnabled.d.ts +1 -0
  234. package/dist/super-editor/src/core/helpers/isInTable.d.ts +1 -0
  235. package/dist/super-editor/src/core/helpers/isList.d.ts +1 -0
  236. package/dist/super-editor/src/core/helpers/isMarkActive.d.ts +8 -0
  237. package/dist/super-editor/src/core/helpers/isNodeActive.d.ts +8 -0
  238. package/dist/super-editor/src/core/helpers/isTextSelection.d.ts +1 -0
  239. package/dist/super-editor/src/core/helpers/list-numbering-helpers.d.ts +98 -0
  240. package/dist/super-editor/src/core/helpers/orderedListUtils.d.ts +7 -0
  241. package/dist/super-editor/src/core/helpers/pasteListHelpers.d.ts +8 -0
  242. package/dist/super-editor/src/core/helpers/posToDOMRect.d.ts +20 -0
  243. package/dist/super-editor/src/core/helpers/selectionToInsertionEnd.d.ts +1 -0
  244. package/dist/super-editor/src/core/helpers/setImageNodeSelection.d.ts +1 -0
  245. package/dist/super-editor/src/core/helpers/setWordSelection.d.ts +1 -0
  246. package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +1 -0
  247. package/dist/super-editor/src/core/index.d.ts +13 -0
  248. package/dist/super-editor/src/core/inputRules/docx-paste/docx-paste.d.ts +2 -0
  249. package/dist/super-editor/src/core/inputRules/google-docs-paste/google-docs-paste.d.ts +1 -0
  250. package/dist/super-editor/src/core/inputRules/html/html-helpers.d.ts +21 -0
  251. package/dist/super-editor/src/core/inputRules/html/transform-copied-lists.d.ts +3 -0
  252. package/dist/super-editor/src/core/inputRules/wrappingInputRule.d.ts +8 -0
  253. package/dist/super-editor/src/core/migrations/0.14-listsv2/listsv2migration.d.ts +2 -0
  254. package/dist/super-editor/src/core/migrations/index.d.ts +1 -0
  255. package/dist/super-editor/src/core/migrations/migration_after_0_4_14.d.ts +1 -0
  256. package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +143 -0
  257. package/dist/super-editor/src/core/super-converter/constants.d.ts +3 -0
  258. package/dist/super-editor/src/core/super-converter/docx-helpers/document-rels.d.ts +8 -0
  259. package/dist/super-editor/src/core/super-converter/docx-helpers/docx-constants.d.ts +5 -0
  260. package/dist/super-editor/src/core/super-converter/docx-helpers/docx-helpers.d.ts +8 -0
  261. package/dist/super-editor/src/core/super-converter/docx-helpers/get-default-style-definition.d.ts +1 -0
  262. package/dist/super-editor/src/core/super-converter/docx-helpers/index.d.ts +3 -0
  263. package/dist/super-editor/src/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +6 -0
  264. package/dist/super-editor/src/core/super-converter/exporter-docx-defs.d.ts +934 -0
  265. package/dist/super-editor/src/core/super-converter/exporter.d.ts +171 -0
  266. package/dist/super-editor/src/core/super-converter/helpers/mediaHelpers.d.ts +2 -0
  267. package/dist/super-editor/src/core/super-converter/helpers.d.ts +35 -0
  268. package/dist/super-editor/src/core/super-converter/types.d.ts +3 -0
  269. package/dist/super-editor/src/core/super-converter/v2/docxHelper.d.ts +12 -0
  270. package/dist/super-editor/src/core/super-converter/v2/exporter/commentsExporter.d.ts +23 -0
  271. package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts +443 -0
  272. package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/index.d.ts +2 -0
  273. package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +7 -0
  274. package/dist/super-editor/src/core/super-converter/v2/exporter/index.d.ts +1 -0
  275. package/dist/super-editor/src/core/super-converter/v2/importer/alternateChoiceImporter.d.ts +4 -0
  276. package/dist/super-editor/src/core/super-converter/v2/importer/autoPageNumberImporter.d.ts +8 -0
  277. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +6 -0
  278. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +13 -0
  279. package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +6 -0
  280. package/dist/super-editor/src/core/super-converter/v2/importer/documentCommentsImporter.d.ts +17 -0
  281. package/dist/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +67 -0
  282. package/dist/super-editor/src/core/super-converter/v2/importer/hyperlinkImporter.d.ts +4 -0
  283. package/dist/super-editor/src/core/super-converter/v2/importer/ignoredNodes.d.ts +2 -0
  284. package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +9 -0
  285. package/dist/super-editor/src/core/super-converter/v2/importer/importerHelpers.d.ts +24 -0
  286. package/dist/super-editor/src/core/super-converter/v2/importer/index.d.ts +2 -0
  287. package/dist/super-editor/src/core/super-converter/v2/importer/lineBreakImporter.d.ts +6 -0
  288. package/dist/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts +119 -0
  289. package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +19 -0
  290. package/dist/super-editor/src/core/super-converter/v2/importer/mergeTextNodes.d.ts +1 -0
  291. package/dist/super-editor/src/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +6 -0
  292. package/dist/super-editor/src/core/super-converter/v2/importer/pictNodeImporter.d.ts +116 -0
  293. package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +8 -0
  294. package/dist/super-editor/src/core/super-converter/v2/importer/sdtNodeImporter.d.ts +8 -0
  295. package/dist/super-editor/src/core/super-converter/v2/importer/standardNodeImporter.d.ts +8 -0
  296. package/dist/super-editor/src/core/super-converter/v2/importer/tabImporter.d.ts +5 -0
  297. package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +18 -0
  298. package/dist/super-editor/src/core/super-converter/v2/importer/textNodeImporter.d.ts +8 -0
  299. package/dist/super-editor/src/core/super-converter/v2/importer/trackChangesImporter.d.ts +8 -0
  300. package/dist/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +73 -0
  301. package/dist/super-editor/src/core/super-converter/v2/types/index.d.ts +8 -0
  302. package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +13 -0
  303. package/dist/super-editor/src/core/super-converter/v3/handlers/types/index.d.ts +1 -0
  304. package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +45 -0
  305. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +6 -0
  306. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +1 -0
  307. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +2 -0
  308. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +4 -0
  309. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +4 -0
  310. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +7 -0
  311. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +1 -0
  312. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +2 -0
  313. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +4 -0
  314. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +4 -0
  315. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +4 -0
  316. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +4 -0
  317. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +4 -0
  318. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +7 -0
  319. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +1 -0
  320. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +6 -0
  321. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +2 -0
  322. package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +6 -0
  323. package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/attributes/index.d.ts +2 -0
  324. package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/attributes/w-clear.d.ts +4 -0
  325. package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/attributes/w-line-break-type.d.ts +4 -0
  326. package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/br-translator.d.ts +7 -0
  327. package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/index.d.ts +1 -0
  328. package/dist/super-editor/src/core/super-converter/v3/handlers/w/cantSplit/cantSplit-translator.d.ts +6 -0
  329. package/dist/super-editor/src/core/super-converter/v3/handlers/w/cantSplit/index.d.ts +1 -0
  330. package/dist/super-editor/src/core/super-converter/v3/handlers/w/cnfStyle/cnfStyle-translator.d.ts +7 -0
  331. package/dist/super-editor/src/core/super-converter/v3/handlers/w/cnfStyle/index.d.ts +1 -0
  332. package/dist/super-editor/src/core/super-converter/v3/handlers/w/divId/divId-translator.d.ts +6 -0
  333. package/dist/super-editor/src/core/super-converter/v3/handlers/w/divId/index.d.ts +1 -0
  334. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +6 -0
  335. package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +1 -0
  336. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +6 -0
  337. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +2 -0
  338. package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +6 -0
  339. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridAfter/gridAfter-translator.d.ts +6 -0
  340. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridAfter/index.d.ts +1 -0
  341. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridBefore/gridBefore-translator.d.ts +6 -0
  342. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridBefore/index.d.ts +1 -0
  343. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +6 -0
  344. package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +1 -0
  345. package/dist/super-editor/src/core/super-converter/v3/handlers/w/hidden/hidden-translator.d.ts +6 -0
  346. package/dist/super-editor/src/core/super-converter/v3/handlers/w/hidden/index.d.ts +1 -0
  347. package/dist/super-editor/src/core/super-converter/v3/handlers/w/hyperlink/hyperlink-translator.d.ts +7 -0
  348. package/dist/super-editor/src/core/super-converter/v3/handlers/w/hyperlink/index.d.ts +1 -0
  349. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +1 -0
  350. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +6 -0
  351. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +1 -0
  352. package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +6 -0
  353. package/dist/super-editor/src/core/super-converter/v3/handlers/w/jc/index.d.ts +1 -0
  354. package/dist/super-editor/src/core/super-converter/v3/handlers/w/jc/jc-translator.d.ts +6 -0
  355. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +2 -0
  356. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +6 -0
  357. package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +6 -0
  358. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/index.d.ts +2 -0
  359. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-del.d.ts +4 -0
  360. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-p.d.ts +4 -0
  361. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-default.d.ts +4 -0
  362. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-pr.d.ts +4 -0
  363. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r.d.ts +4 -0
  364. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w14-para-id.d.ts +4 -0
  365. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w14-text-id.d.ts +4 -0
  366. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +1 -0
  367. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts +1 -0
  368. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +6 -0
  369. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/index.d.ts +1 -0
  370. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/p-translator.d.ts +7 -0
  371. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +2 -0
  372. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +6 -0
  373. package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +6 -0
  374. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +22 -0
  375. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +6 -0
  376. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +6 -0
  377. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +5 -0
  378. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +5 -0
  379. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +9 -0
  380. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +7 -0
  381. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +80 -0
  382. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +5 -0
  383. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/index.d.ts +1 -0
  384. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +6 -0
  385. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +1 -0
  386. package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +6 -0
  387. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +2 -0
  388. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +6 -0
  389. package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +6 -0
  390. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/index.d.ts +2 -0
  391. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-leader.d.ts +4 -0
  392. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +4 -0
  393. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts +4 -0
  394. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/index.d.ts +1 -0
  395. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts +7 -0
  396. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +1 -0
  397. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +28 -0
  398. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +1 -0
  399. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +6 -0
  400. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +1 -0
  401. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +6 -0
  402. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +1 -0
  403. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +2 -0
  404. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellSpacing/index.d.ts +1 -0
  405. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellSpacing/tblCellSpacing-translator.d.ts +6 -0
  406. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +1 -0
  407. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +6 -0
  408. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +1 -0
  409. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +5 -0
  410. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +5 -0
  411. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblHeader/index.d.ts +1 -0
  412. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblHeader/tblHeader-translator.d.ts +6 -0
  413. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +1 -0
  414. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +6 -0
  415. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +1 -0
  416. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +6 -0
  417. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +1 -0
  418. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +6 -0
  419. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +1 -0
  420. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +6 -0
  421. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +1 -0
  422. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +5 -0
  423. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +1 -0
  424. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +6 -0
  425. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +1 -0
  426. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +6 -0
  427. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +1 -0
  428. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +6 -0
  429. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +1 -0
  430. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +6 -0
  431. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +1 -0
  432. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +6 -0
  433. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +9 -0
  434. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +17 -0
  435. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/index.d.ts +1 -0
  436. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/tc-translator.d.ts +6 -0
  437. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +2 -0
  438. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +6 -0
  439. package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +6 -0
  440. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tr/index.d.ts +1 -0
  441. package/dist/super-editor/src/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts +7 -0
  442. package/dist/super-editor/src/core/super-converter/v3/handlers/w/trHeight/index.d.ts +1 -0
  443. package/dist/super-editor/src/core/super-converter/v3/handlers/w/trHeight/trHeight-translator.d.ts +6 -0
  444. package/dist/super-editor/src/core/super-converter/v3/handlers/w/trPr/index.d.ts +1 -0
  445. package/dist/super-editor/src/core/super-converter/v3/handlers/w/trPr/trPr-translator.d.ts +5 -0
  446. package/dist/super-editor/src/core/super-converter/v3/handlers/w/wAfter/index.d.ts +1 -0
  447. package/dist/super-editor/src/core/super-converter/v3/handlers/w/wAfter/wAfter-translator.d.ts +6 -0
  448. package/dist/super-editor/src/core/super-converter/v3/handlers/w/wBefore/index.d.ts +1 -0
  449. package/dist/super-editor/src/core/super-converter/v3/handlers/w/wBefore/wBefore-translator.d.ts +6 -0
  450. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +6 -0
  451. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +6 -0
  452. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +6 -0
  453. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +1 -0
  454. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +18 -0
  455. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +6 -0
  456. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +6 -0
  457. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +6 -0
  458. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +1 -0
  459. package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +6 -0
  460. package/dist/super-editor/src/core/super-converter/v3/node-translator/index.d.ts +1 -0
  461. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +215 -0
  462. package/dist/super-editor/src/core/super-converter/zipper.d.ts +7 -0
  463. package/dist/super-editor/src/core/super-validator/index.d.ts +1 -0
  464. package/dist/super-editor/src/core/super-validator/logger/index.d.ts +1 -0
  465. package/dist/super-editor/src/core/super-validator/logger/logger.d.ts +7 -0
  466. package/dist/super-editor/src/core/super-validator/super-validator.d.ts +58 -0
  467. package/dist/super-editor/src/core/super-validator/types.d.ts +61 -0
  468. package/dist/super-editor/src/core/super-validator/validators/state/index.d.ts +16 -0
  469. package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/image-validator.d.ts +26 -0
  470. package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/index.d.ts +1 -0
  471. package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/rules/image-rid.d.ts +22 -0
  472. package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/rules/index.d.ts +1 -0
  473. package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/index.d.ts +1 -0
  474. package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/link-validator.d.ts +24 -0
  475. package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/rules/index.d.ts +1 -0
  476. package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/rules/link-rid.d.ts +24 -0
  477. package/dist/super-editor/src/core/super-validator/validators/xml/index.d.ts +12 -0
  478. package/dist/super-editor/src/core/super-validator/validators/xml/numbering/numbering-validator.d.ts +13 -0
  479. package/dist/super-editor/src/core/super-validator/validators/xml/relationships/relationships-validator.d.ts +31 -0
  480. package/dist/super-editor/src/core/types/index.d.ts +128 -0
  481. package/dist/super-editor/src/core/utilities/callOrGet.d.ts +8 -0
  482. package/dist/super-editor/src/core/utilities/carbonCopy.d.ts +1 -0
  483. package/dist/super-editor/src/core/utilities/clipboardUtils.d.ts +16 -0
  484. package/dist/super-editor/src/core/utilities/createStyleTag.d.ts +6 -0
  485. package/dist/super-editor/src/core/utilities/deleteProps.d.ts +6 -0
  486. package/dist/super-editor/src/core/utilities/imageBlobs.d.ts +1 -0
  487. package/dist/super-editor/src/core/utilities/index.d.ts +10 -0
  488. package/dist/super-editor/src/core/utilities/isEmptyObject.d.ts +5 -0
  489. package/dist/super-editor/src/core/utilities/isIOS.d.ts +1 -0
  490. package/dist/super-editor/src/core/utilities/isMacOS.d.ts +1 -0
  491. package/dist/super-editor/src/core/utilities/isRegExp.d.ts +1 -0
  492. package/dist/super-editor/src/core/utilities/minMax.d.ts +1 -0
  493. package/dist/super-editor/src/core/utilities/objectIncludes.d.ts +8 -0
  494. package/dist/super-editor/src/core/utilities/parseSizeUnit.d.ts +6 -0
  495. package/dist/super-editor/src/extensions/ai/ai-constants.d.ts +3 -0
  496. package/dist/super-editor/src/extensions/ai/ai-marks.d.ts +3 -0
  497. package/dist/super-editor/src/extensions/ai/ai-nodes.d.ts +2 -0
  498. package/dist/super-editor/src/extensions/ai/ai-plugin.d.ts +4 -0
  499. package/dist/super-editor/src/extensions/ai/index.d.ts +4 -0
  500. package/dist/super-editor/src/extensions/block-node/block-node.d.ts +56 -0
  501. package/dist/super-editor/src/extensions/block-node/index.d.ts +1 -0
  502. package/dist/super-editor/src/extensions/bold/bold.d.ts +29 -0
  503. package/dist/super-editor/src/extensions/bold/index.d.ts +1 -0
  504. package/dist/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +6 -0
  505. package/dist/super-editor/src/extensions/bookmarks/bookmark-start.d.ts +26 -0
  506. package/dist/super-editor/src/extensions/bookmarks/index.d.ts +2 -0
  507. package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +14 -0
  508. package/dist/super-editor/src/extensions/bullet-list/index.d.ts +1 -0
  509. package/dist/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts +1 -0
  510. package/dist/super-editor/src/extensions/collaboration/collaboration.d.ts +7 -0
  511. package/dist/super-editor/src/extensions/collaboration/index.d.ts +1 -0
  512. package/dist/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts +2 -0
  513. package/dist/super-editor/src/extensions/collaboration-cursor/index.d.ts +1 -0
  514. package/dist/super-editor/src/extensions/color/color.d.ts +42 -0
  515. package/dist/super-editor/src/extensions/color/index.d.ts +1 -0
  516. package/dist/super-editor/src/extensions/comment/comment.d.ts +4 -0
  517. package/dist/super-editor/src/extensions/comment/comments-constants.d.ts +1 -0
  518. package/dist/super-editor/src/extensions/comment/comments-helpers.d.ts +14 -0
  519. package/dist/super-editor/src/extensions/comment/comments-marks.d.ts +2 -0
  520. package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +4 -0
  521. package/dist/super-editor/src/extensions/comment/index.d.ts +3 -0
  522. package/dist/super-editor/src/extensions/content-block/content-block.d.ts +90 -0
  523. package/dist/super-editor/src/extensions/content-block/index.d.ts +1 -0
  524. package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +53 -0
  525. package/dist/super-editor/src/extensions/custom-selection/index.d.ts +1 -0
  526. package/dist/super-editor/src/extensions/document/document.d.ts +33 -0
  527. package/dist/super-editor/src/extensions/document/index.d.ts +1 -0
  528. package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +33 -0
  529. package/dist/super-editor/src/extensions/dropcursor/index.d.ts +1 -0
  530. package/dist/super-editor/src/extensions/field-annotation/FieldAnnotationPlugin.d.ts +2 -0
  531. package/dist/super-editor/src/extensions/field-annotation/FieldAnnotationView.d.ts +32 -0
  532. package/dist/super-editor/src/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts +1 -0
  533. package/dist/super-editor/src/extensions/field-annotation/cleanup-commands/cleanUpParagraphWithAnnotations.d.ts +1 -0
  534. package/dist/super-editor/src/extensions/field-annotation/cleanup-commands/index.d.ts +6 -0
  535. package/dist/super-editor/src/extensions/field-annotation/field-annotation.d.ts +5 -0
  536. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotations.d.ts +1 -0
  537. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsBetween.d.ts +8 -0
  538. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsByFieldId.d.ts +7 -0
  539. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFirstFieldAnnotationByFieldId.d.ts +7 -0
  540. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findHeaderFooterAnnotationsByFieldId.d.ts +7 -0
  541. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findRemovedFieldAnnotations.d.ts +1 -0
  542. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotations.d.ts +6 -0
  543. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotationsWithRect.d.ts +30 -0
  544. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +1 -0
  545. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +10 -0
  546. package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts +1 -0
  547. package/dist/super-editor/src/extensions/field-annotation/index.d.ts +2 -0
  548. package/dist/super-editor/src/extensions/font-family/font-family.d.ts +45 -0
  549. package/dist/super-editor/src/extensions/font-family/index.d.ts +1 -0
  550. package/dist/super-editor/src/extensions/font-size/font-size.d.ts +73 -0
  551. package/dist/super-editor/src/extensions/font-size/index.d.ts +1 -0
  552. package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +36 -0
  553. package/dist/super-editor/src/extensions/format-commands/index.d.ts +1 -0
  554. package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +16 -0
  555. package/dist/super-editor/src/extensions/gapcursor/index.d.ts +1 -0
  556. package/dist/super-editor/src/extensions/heading/heading.d.ts +33 -0
  557. package/dist/super-editor/src/extensions/heading/index.d.ts +1 -0
  558. package/dist/super-editor/src/extensions/highlight/highlight.d.ts +28 -0
  559. package/dist/super-editor/src/extensions/highlight/index.d.ts +1 -0
  560. package/dist/super-editor/src/extensions/history/history.d.ts +21 -0
  561. package/dist/super-editor/src/extensions/history/index.d.ts +1 -0
  562. package/dist/super-editor/src/extensions/image/image.d.ts +85 -0
  563. package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +3 -0
  564. package/dist/super-editor/src/extensions/image/imageHelpers/getFileOpener.d.ts +1 -0
  565. package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +1 -0
  566. package/dist/super-editor/src/extensions/image/imageHelpers/handleImageUpload.d.ts +1 -0
  567. package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +2 -0
  568. package/dist/super-editor/src/extensions/image/imageHelpers/imagePositionPlugin.d.ts +4 -0
  569. package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +11 -0
  570. package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +8 -0
  571. package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -0
  572. package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +4 -0
  573. package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +22 -0
  574. package/dist/super-editor/src/extensions/image/index.d.ts +2 -0
  575. package/dist/super-editor/src/extensions/index.d.ts +66 -0
  576. package/dist/super-editor/src/extensions/italic/index.d.ts +1 -0
  577. package/dist/super-editor/src/extensions/italic/italic.d.ts +19 -0
  578. package/dist/super-editor/src/extensions/line-break/index.d.ts +1 -0
  579. package/dist/super-editor/src/extensions/line-break/line-break.d.ts +56 -0
  580. package/dist/super-editor/src/extensions/line-height/index.d.ts +1 -0
  581. package/dist/super-editor/src/extensions/line-height/line-height.d.ts +38 -0
  582. package/dist/super-editor/src/extensions/link/index.d.ts +1 -0
  583. package/dist/super-editor/src/extensions/link/link.d.ts +69 -0
  584. package/dist/super-editor/src/extensions/linked-styles/helpers.d.ts +7 -0
  585. package/dist/super-editor/src/extensions/linked-styles/index.d.ts +3 -0
  586. package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +40 -0
  587. package/dist/super-editor/src/extensions/linked-styles/plugin.d.ts +6 -0
  588. package/dist/super-editor/src/extensions/list-item/ListItemNodeView.d.ts +36 -0
  589. package/dist/super-editor/src/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +3 -0
  590. package/dist/super-editor/src/extensions/list-item/index.d.ts +1 -0
  591. package/dist/super-editor/src/extensions/list-item/list-item.d.ts +50 -0
  592. package/dist/super-editor/src/extensions/mention/index.d.ts +1 -0
  593. package/dist/super-editor/src/extensions/mention/mention.d.ts +28 -0
  594. package/dist/super-editor/src/extensions/noderesizer/index.d.ts +1 -0
  595. package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +18 -0
  596. package/dist/super-editor/src/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +2 -0
  597. package/dist/super-editor/src/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +5 -0
  598. package/dist/super-editor/src/extensions/ordered-list/index.d.ts +1 -0
  599. package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +37 -0
  600. package/dist/super-editor/src/extensions/page-number/index.d.ts +1 -0
  601. package/dist/super-editor/src/extensions/page-number/page-number.d.ts +65 -0
  602. package/dist/super-editor/src/extensions/pagination/index.d.ts +1 -0
  603. package/dist/super-editor/src/extensions/pagination/pagination-helpers.d.ts +25 -0
  604. package/dist/super-editor/src/extensions/pagination/pagination.d.ts +2 -0
  605. package/dist/super-editor/src/extensions/paragraph/helpers/getDefaultSpacing.d.ts +6 -0
  606. package/dist/super-editor/src/extensions/paragraph/index.d.ts +1 -0
  607. package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +51 -0
  608. package/dist/super-editor/src/extensions/placeholder/index.d.ts +1 -0
  609. package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +17 -0
  610. package/dist/super-editor/src/extensions/popover-plugin/index.d.ts +1 -0
  611. package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +11 -0
  612. package/dist/super-editor/src/extensions/run-item/index.d.ts +1 -0
  613. package/dist/super-editor/src/extensions/run-item/run-item.d.ts +26 -0
  614. package/dist/super-editor/src/extensions/search/index.d.ts +1 -0
  615. package/dist/super-editor/src/extensions/search/search.d.ts +45 -0
  616. package/dist/super-editor/src/extensions/shape-container/index.d.ts +1 -0
  617. package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +31 -0
  618. package/dist/super-editor/src/extensions/shape-textbox/index.d.ts +1 -0
  619. package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +28 -0
  620. package/dist/super-editor/src/extensions/slash-menu/index.d.ts +1 -0
  621. package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +13 -0
  622. package/dist/super-editor/src/extensions/strike/index.d.ts +1 -0
  623. package/dist/super-editor/src/extensions/strike/strike.d.ts +18 -0
  624. package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +9 -0
  625. package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +9 -0
  626. package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +24 -0
  627. package/dist/super-editor/src/extensions/structured-content/document-section/DocumentSectionView.d.ts +15 -0
  628. package/dist/super-editor/src/extensions/structured-content/document-section/helpers.d.ts +11 -0
  629. package/dist/super-editor/src/extensions/structured-content/document-section/index.d.ts +2 -0
  630. package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +105 -0
  631. package/dist/super-editor/src/extensions/structured-content/index.d.ts +3 -0
  632. package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +30 -0
  633. package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +30 -0
  634. package/dist/super-editor/src/extensions/tab/index.d.ts +1 -0
  635. package/dist/super-editor/src/extensions/tab/tab.d.ts +27 -0
  636. package/dist/super-editor/src/extensions/table/TableView.d.ts +16 -0
  637. package/dist/super-editor/src/extensions/table/index.d.ts +2 -0
  638. package/dist/super-editor/src/extensions/table/table.d.ts +459 -0
  639. package/dist/super-editor/src/extensions/table/tableHelpers/cellAround.d.ts +1 -0
  640. package/dist/super-editor/src/extensions/table/tableHelpers/cellWrapping.d.ts +1 -0
  641. package/dist/super-editor/src/extensions/table/tableHelpers/createCell.d.ts +1 -0
  642. package/dist/super-editor/src/extensions/table/tableHelpers/createColGroup.d.ts +11 -0
  643. package/dist/super-editor/src/extensions/table/tableHelpers/createTable.d.ts +1 -0
  644. package/dist/super-editor/src/extensions/table/tableHelpers/createTableBorders.d.ts +60 -0
  645. package/dist/super-editor/src/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +3 -0
  646. package/dist/super-editor/src/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +1 -0
  647. package/dist/super-editor/src/extensions/table/tableHelpers/index.d.ts +6 -0
  648. package/dist/super-editor/src/extensions/table/tableHelpers/isCellSelection.d.ts +1 -0
  649. package/dist/super-editor/src/extensions/table-cell/helpers/createCellBorders.d.ts +42 -0
  650. package/dist/super-editor/src/extensions/table-cell/index.d.ts +1 -0
  651. package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +78 -0
  652. package/dist/super-editor/src/extensions/table-header/index.d.ts +1 -0
  653. package/dist/super-editor/src/extensions/table-header/table-header.d.ts +29 -0
  654. package/dist/super-editor/src/extensions/table-row/index.d.ts +1 -0
  655. package/dist/super-editor/src/extensions/table-row/table-row.d.ts +184 -0
  656. package/dist/super-editor/src/extensions/text/index.d.ts +1 -0
  657. package/dist/super-editor/src/extensions/text/text.d.ts +16 -0
  658. package/dist/super-editor/src/extensions/text-align/index.d.ts +1 -0
  659. package/dist/super-editor/src/extensions/text-align/text-align.d.ts +33 -0
  660. package/dist/super-editor/src/extensions/text-indent/index.d.ts +1 -0
  661. package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +30 -0
  662. package/dist/super-editor/src/extensions/text-style/index.d.ts +1 -0
  663. package/dist/super-editor/src/extensions/text-style/text-style.d.ts +27 -0
  664. package/dist/super-editor/src/extensions/text-transform/index.d.ts +1 -0
  665. package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +27 -0
  666. package/dist/super-editor/src/extensions/track-changes/constants.d.ts +3 -0
  667. package/dist/super-editor/src/extensions/track-changes/index.d.ts +6 -0
  668. package/dist/super-editor/src/extensions/track-changes/plugins/index.d.ts +1 -0
  669. package/dist/super-editor/src/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +10 -0
  670. package/dist/super-editor/src/extensions/track-changes/track-changes.d.ts +2 -0
  671. package/dist/super-editor/src/extensions/track-changes/track-delete.d.ts +2 -0
  672. package/dist/super-editor/src/extensions/track-changes/track-format.d.ts +2 -0
  673. package/dist/super-editor/src/extensions/track-changes/track-insert.d.ts +2 -0
  674. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +1 -0
  675. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +8 -0
  676. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +8 -0
  677. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +1 -0
  678. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/index.d.ts +12 -0
  679. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +1 -0
  680. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +1 -0
  681. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +1 -0
  682. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +1 -0
  683. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +1 -0
  684. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +1 -0
  685. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +1 -0
  686. package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +1 -0
  687. package/dist/super-editor/src/extensions/underline/index.d.ts +1 -0
  688. package/dist/super-editor/src/extensions/underline/underline.d.ts +43 -0
  689. package/dist/super-editor/src/index.d.ts +32 -0
  690. package/dist/super-editor/src/main.d.ts +1 -0
  691. package/dist/super-editor/src/tests/data/annotations_doc_content.d.ts +429 -0
  692. package/dist/super-editor/src/tests/editor/data/imageBase64.d.ts +1 -0
  693. package/dist/super-editor/src/tests/export/data/comments/basic-resolved-comment.d.ts +32 -0
  694. package/dist/super-editor/src/tests/export/export-helpers/export-helpers.d.ts +8 -0
  695. package/dist/super-editor/src/tests/export/export-helpers/index.d.ts +2 -0
  696. package/dist/super-editor/src/tests/export/export-helpers/list-export-helpers.d.ts +23 -0
  697. package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +14 -0
  698. package/dist/super-editor/src/tests/helpers/helpers.d.ts +6 -0
  699. package/dist/super-editor/src/tests/import/testUtils.d.ts +1 -0
  700. package/dist/super-editor/style.css +1897 -0
  701. package/dist/super-editor/super-editor.es.js +4653 -0
  702. package/dist/super-editor/toolbar.es.js +6 -0
  703. package/dist/super-editor/vite.config.d.ts +2 -0
  704. package/dist/super-editor.cjs +29 -0
  705. package/dist/super-editor.d.ts +5 -0
  706. package/dist/super-editor.d.ts.map +1 -0
  707. package/dist/super-editor.es.js +29 -0
  708. package/dist/superdoc.cjs +25 -0
  709. package/dist/superdoc.es.js +25 -0
  710. package/dist/superdoc.umd.js +108866 -0
  711. package/dist/superdoc.umd.js.map +1 -0
  712. package/package.json +86 -0
@@ -0,0 +1,828 @@
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} [handleImageUpload] - Handler for image uploads
86
+ * @property {Object} [telemetry] - Telemetry configuration
87
+ * @property {boolean} [suppressDefaultDocxStyles] - Prevent default styles from being applied in docx mode
88
+ * @property {Object} [jsonOverride] - Provided JSON to override content with
89
+ * @property {string} [html] - HTML content to initialize the editor with
90
+ * @property {string} [markdown] - Markdown content to initialize the editor with
91
+ * @property {boolean} [isDebug=false] - Whether to enable debug mode
92
+ */
93
+ /**
94
+ * Main editor class that manages document state, extensions, and user interactions
95
+ * @class
96
+ * @extends EventEmitter
97
+ */
98
+ export class Editor extends EventEmitter {
99
+ /**
100
+ * Load the data from DOCX to be used in the schema.
101
+ * Expects a DOCX file.
102
+ * @static
103
+ * @async
104
+ * @param {File|Blob|Buffer} fileSource - The DOCX file to load (File/Blob in browser, Buffer in Node.js)
105
+ * @param {boolean} [isNode=false] - Whether the method is being called in a Node.js environment
106
+ * @returns {Promise<Array>} - A promise that resolves to an array containing:
107
+ * - [0] xmlFiles - Array of XML files extracted from the DOCX
108
+ * - [1] mediaFiles - Object containing media files with URLs (browser only)
109
+ * - [2] mediaFiles - Object containing media files with base64 data
110
+ * - [3] fonts - Object containing font files from the DOCX
111
+ */
112
+ static loadXmlData(fileSource: File | Blob | Buffer, isNode?: boolean): Promise<any[]>;
113
+ /**
114
+ * Get the document version
115
+ * @static
116
+ * @param {Object} doc - Document object
117
+ * @returns {string} Document version
118
+ */
119
+ static getDocumentVersion(doc: any): string;
120
+ /**
121
+ * Update the document version
122
+ * @static
123
+ * @param {Object} doc - Document object
124
+ * @param {string} version - New version
125
+ * @returns {Object}
126
+ */
127
+ static updateDocumentVersion(doc: any, version: string): any;
128
+ /**
129
+ * Check if migrations are needed for the data
130
+ * @static
131
+ * @param {Object} data - Document data
132
+ * @returns {boolean} Whether migrations are needed
133
+ */
134
+ static checkIfMigrationsNeeded(): boolean;
135
+ /**
136
+ * Create a new Editor instance
137
+ * @param {EditorOptions} options - Editor configuration options
138
+ */
139
+ constructor(options: EditorOptions);
140
+ /**
141
+ * Service for managing extensions
142
+ * @type {Object}
143
+ */
144
+ extensionService: any;
145
+ /**
146
+ * Storage for extension data
147
+ * @type {Object}
148
+ */
149
+ extensionStorage: any;
150
+ /**
151
+ * ProseMirror schema for the editor
152
+ * @type {Object}
153
+ */
154
+ schema: any;
155
+ /**
156
+ * ProseMirror view instance
157
+ * @type {Object}
158
+ */
159
+ view: any;
160
+ /**
161
+ * Whether the editor currently has focus
162
+ * @type {boolean}
163
+ */
164
+ isFocused: boolean;
165
+ options: {
166
+ element: any;
167
+ selector: any;
168
+ isHeadless: boolean;
169
+ mockDocument: any;
170
+ mockWindow: any;
171
+ content: string;
172
+ user: any;
173
+ users: any[];
174
+ media: {};
175
+ mediaFiles: {};
176
+ fonts: {};
177
+ documentMode: string;
178
+ mode: string;
179
+ role: string;
180
+ colors: any[];
181
+ converter: any;
182
+ fileSource: any;
183
+ initialState: any;
184
+ documentId: any;
185
+ extensions: any[];
186
+ editable: boolean;
187
+ editorProps: {};
188
+ parseOptions: {};
189
+ coreExtensionOptions: {};
190
+ enableInputRules: boolean;
191
+ isCommentsEnabled: boolean;
192
+ isNewFile: boolean;
193
+ scale: number;
194
+ annotations: boolean;
195
+ isInternal: boolean;
196
+ externalExtensions: any[];
197
+ numbering: {};
198
+ isHeaderOrFooter: boolean;
199
+ lastSelection: any;
200
+ suppressDefaultDocxStyles: boolean;
201
+ jsonOverride: any;
202
+ onBeforeCreate: () => any;
203
+ onCreate: () => any;
204
+ onUpdate: () => any;
205
+ onSelectionUpdate: () => any;
206
+ onTransaction: () => any;
207
+ onFocus: () => any;
208
+ onBlur: () => any;
209
+ onDestroy: () => any;
210
+ onContentError: ({ error }: {
211
+ error: any;
212
+ }) => never;
213
+ onTrackedChangesUpdate: () => any;
214
+ onCommentsUpdate: () => any;
215
+ onCommentsLoaded: () => any;
216
+ onCommentClicked: () => any;
217
+ onCommentLocationsUpdate: () => any;
218
+ onDocumentLocked: () => any;
219
+ onFirstRender: () => any;
220
+ onCollaborationReady: () => any;
221
+ onPaginationUpdate: () => any;
222
+ onException: () => any;
223
+ onListDefinitionsChange: () => any;
224
+ handleImageUpload: any;
225
+ telemetry: any;
226
+ customUpdatedFiles: {};
227
+ isHeaderFooterChanged: boolean;
228
+ isCustomXmlChanged: boolean;
229
+ focusTarget: any;
230
+ };
231
+ setHighContrastMode: (value: any) => void;
232
+ /**
233
+ * Getter which indicates if any changes happen in Editor
234
+ * @returns {boolean}
235
+ */
236
+ get docChanged(): boolean;
237
+ mount(el: any): void;
238
+ unmount(): void;
239
+ /**
240
+ * Set the toolbar for this editor
241
+ * @param {Object} toolbar - The toolbar instance
242
+ * @returns {void}
243
+ */
244
+ setToolbar(toolbar: any): void;
245
+ toolbar: any;
246
+ /**
247
+ * Focus the editor.
248
+ * @returns {void}
249
+ */
250
+ focus(): void;
251
+ /**
252
+ * Get the editor state
253
+ * @returns {Object} ProseMirror state
254
+ */
255
+ get state(): any;
256
+ /**
257
+ * Get the editor storage.
258
+ * @returns {Object} Editor storage object
259
+ */
260
+ get storage(): any;
261
+ /**
262
+ * Get object of registered commands.
263
+ * @returns {import('./commands/types/index.js').EditorCommands} Commands object
264
+ */
265
+ get commands(): import("./commands/types/index.js").EditorCommands;
266
+ /**
267
+ * Get extension helpers.
268
+ * @returns {EditorHelpers} Object with helper methods for extensions
269
+ */
270
+ get helpers(): EditorHelpers;
271
+ /**
272
+ * Check if the editor is editable.
273
+ * @returns {boolean}
274
+ */
275
+ get isEditable(): boolean;
276
+ /**
277
+ * Check if editor is destroyed.
278
+ * @returns {boolean}
279
+ */
280
+ get isDestroyed(): boolean;
281
+ /**
282
+ * Get the editor element
283
+ * @returns {HTMLElement} The editor element
284
+ */
285
+ get element(): HTMLElement;
286
+ /**
287
+ * Get possible users of the editor.
288
+ * @returns {Array.<User>} List of users
289
+ */
290
+ get users(): Array<User>;
291
+ /**
292
+ * Create a chain of commands to call multiple commands at once.
293
+ * @returns {Object} Command chain
294
+ */
295
+ chain(): any;
296
+ /**
297
+ * Check if a command or a chain of commands can be executed. Without executing it.
298
+ * @returns {Object} Object with methods to check command availability
299
+ */
300
+ can(): any;
301
+ /**
302
+ * Set the document mode
303
+ * @param {string} documentMode - The document mode ('editing', 'viewing', 'suggesting')
304
+ */
305
+ setDocumentMode(documentMode: string): void;
306
+ /**
307
+ * Export the yjs binary from the current state.
308
+ * @returns {Promise<Uint8Array>} The exported yjs binary
309
+ */
310
+ generateCollaborationUpdate(): Promise<Uint8Array>;
311
+ /**
312
+ * Initialize data for collaborative editing
313
+ * If we are replacing data and have a valid provider, listen for synced event
314
+ * so that we can initialize the data
315
+ * @returns {void}
316
+ */
317
+ initializeCollaborationData(): void;
318
+ /**
319
+ * Replace content of editor that was created with loadFromSchema option
320
+ * Used to replace content of other header/footer when one of it was edited
321
+ *
322
+ * @param {object} content - new editor content json (retrieved from editor.getUpdatedJson)
323
+ * @returns {void}
324
+ */
325
+ replaceContent(content: object): void;
326
+ /**
327
+ * Set editor options and update state.
328
+ * @param {EditorOptions} options - Editor options
329
+ * @returns {void}
330
+ */
331
+ setOptions(options?: EditorOptions): void;
332
+ /**
333
+ * Set whether the editor is editable
334
+ * @param {boolean} [editable=true] - Whether the editor is editable
335
+ * @param {boolean} [emitUpdate=true] - Whether to emit an update event
336
+ * @returns {void}
337
+ */
338
+ setEditable(editable?: boolean, emitUpdate?: boolean): void;
339
+ /**
340
+ * Register PM plugin.
341
+ * @param plugin PM plugin.
342
+ * @param handlePlugins Optional function for handling plugin merge.
343
+ * @returns {void}
344
+ */
345
+ registerPlugin(plugin: any, handlePlugins: any): void;
346
+ /**
347
+ * Unregister a PM plugin
348
+ * @param {string|Object} nameOrPluginKey - Plugin name or plugin instance
349
+ * @returns {void}
350
+ */
351
+ unregisterPlugin(nameOrPluginKey: string | any): void;
352
+ converter: any;
353
+ /**
354
+ * Creates all node views.
355
+ * @returns {void}
356
+ */
357
+ createNodeViews(): void;
358
+ /**
359
+ * Get the maximum content size
360
+ * @returns {Object} Size object with width and height
361
+ */
362
+ getMaxContentSize(): any;
363
+ /**
364
+ * Attach styles and attributes to the editor element
365
+ */
366
+ updateEditorStyles(element: any, proseMirror: any, hasPaginationEnabled?: boolean): void;
367
+ /**
368
+ * Initialize default styles for the editor container and ProseMirror.
369
+ * Get page size and margins from the converter.
370
+ * Set document default font and font size.
371
+ *
372
+ * @param {HTMLElement} [element=this.element] - The DOM element to apply styles to
373
+ * @returns {void}
374
+ */
375
+ initDefaultStyles(element?: HTMLElement, isPaginationEnabled?: boolean): void;
376
+ /**
377
+ * Initializes responsive styles for mobile devices.
378
+ * Sets up scaling based on viewport width and handles orientation changes.
379
+ *
380
+ * @param {HTMLElement|void} element - The DOM element to apply mobile styles to
381
+ * @returns {void}
382
+ */
383
+ initMobileStyles(element: HTMLElement | void): void;
384
+ /**
385
+ * Get attrs of the currently selected node or mark.
386
+ * @param {String} nameOrType
387
+ * @example
388
+ * editor.getAttributes('textStyle').color
389
+ */
390
+ getAttributes(nameOrType: string): any;
391
+ /**
392
+ * Returns if the currently selected node or mark is active.
393
+ * @param {String|Object} nameOrAttributes - The name of the node/mark or an attributes object
394
+ * @param {Object} [attributesOrUndefined] - Optional attributes to check when first parameter is a name
395
+ * @returns {Boolean} Whether the node or mark is active with the specified attributes
396
+ * @example
397
+ * editor.isActive('bold')
398
+ * editor.isActive('textStyle', { color: 'purple' })
399
+ * editor.isActive({ textAlign: 'center' })
400
+ */
401
+ isActive(nameOrAttributes: string | any, attributesOrUndefined?: any): boolean;
402
+ /**
403
+ * Get the editor content as JSON
404
+ * @returns {Object} Editor content as JSON
405
+ */
406
+ getJSON(): any;
407
+ /**
408
+ * Get the editor content as HTML
409
+ * @param {Object} options - Options for the HTML serializer
410
+ * @param {boolean} [options.unflattenLists] - Whether to unflatten lists in the HTML
411
+ * @returns {string} Editor content as HTML
412
+ */
413
+ getHTML({ unflattenLists }?: {
414
+ unflattenLists?: boolean;
415
+ }): string;
416
+ /**
417
+ * Create a child editor linked to this editor.
418
+ * This is useful for creating header/footer editors that are linked to the main editor.
419
+ * Or paragraph fields that rely on the same underlying document and list defintions
420
+ * @param {EditorOptions} options - Options for the child editor
421
+ * @returns {Editor} A new child editor instance linked to this editor
422
+ */
423
+ createChildEditor(options: EditorOptions): Editor;
424
+ /**
425
+ * Get page styles
426
+ * @returns {Object} Page styles
427
+ */
428
+ getPageStyles(): any;
429
+ /**
430
+ * Update page styles
431
+ *
432
+ * @param {Object} param0
433
+ * @param {Object} param0.pageMargins The new page margins
434
+ * @returns {void}
435
+ */
436
+ updatePageStyle({ pageMargins }: {
437
+ pageMargins: any;
438
+ }): void;
439
+ migrateListsToV2(): any;
440
+ getUpdatedJson(): any;
441
+ /**
442
+ * Export the editor document to DOCX.
443
+ * @async
444
+ * @param {Object} options - The export options
445
+ * @param {boolean} [options.isFinalDoc=false] - Whether this is the final document version
446
+ * @param {string} [options.commentsType] - The type of comments to include
447
+ * @param {Array} [options.comments=[]] - Array of comments to include in the document
448
+ * @param {boolean} [options.getUpdatedDocs=false] - When set to true return only updated docx files
449
+ * @returns {Promise<Blob|ArrayBuffer|Object>} The exported DOCX file or updated docx files
450
+ */
451
+ exportDocx({ isFinalDoc, commentsType, exportJsonOnly, exportXmlOnly, comments, getUpdatedDocs, fieldsHighlightColor, }?: {
452
+ isFinalDoc?: boolean;
453
+ commentsType?: string;
454
+ comments?: any[];
455
+ getUpdatedDocs?: boolean;
456
+ }): Promise<Blob | ArrayBuffer | any>;
457
+ /**
458
+ * Destroy the editor and clean up resources
459
+ * @returns {void}
460
+ */
461
+ destroy(): void;
462
+ destroyHeaderFooterEditors(): void;
463
+ /**
464
+ * Process collaboration migrations
465
+ * @returns {Object | void} Migration results
466
+ */
467
+ processCollaborationMigrations(): any | void;
468
+ /**
469
+ * Replace the current file
470
+ * @async
471
+ * @param {Object} newFile - New file data
472
+ * @returns {Promise<void>}
473
+ */
474
+ replaceFile(newFile: any): Promise<void>;
475
+ /**
476
+ * Get internal docx file content
477
+ * @param {string} name - File name
478
+ * @param {string} type - type of result (json, string)
479
+ * @returns {Object|String} - file content
480
+ */
481
+ getInternalXmlFile(name: string, type?: string): any | string;
482
+ /**
483
+ * Update internal docx file content
484
+ * @param {string} name - File name
485
+ * @param {string} updatedContent - new file content
486
+ */
487
+ updateInternalXmlFile(name: string, updatedContent: string): void;
488
+ /**
489
+ * Get all nodes of a specific type
490
+ * @param {string} type - Node type
491
+ * @returns {Array} Array of nodes
492
+ */
493
+ getNodesOfType(type: string): any[];
494
+ /**
495
+ * Replace a node with HTML content
496
+ * @param {Object} targetNode - The node to replace
497
+ * @param {string} html - HTML content to replace with
498
+ * @returns {void}
499
+ */
500
+ replaceNodeWithHTML(targetNode: any, html: string): void;
501
+ /**
502
+ * A command to prepare the editor to receive annotations. This will
503
+ * pre-process the document as needed prior to running in the annotator.
504
+ *
505
+ * Currently this is only used for table generation but additional pre-processing can be done here.
506
+ *
507
+ * @param {FieldValue[]} annotationValues
508
+ * @returns {void}
509
+ */
510
+ prepareForAnnotations(annotationValues?: FieldValue[]): void;
511
+ /**
512
+ * Migrate paragraph fields to lists V2 structure if necessary.
513
+ * @param {FieldValue[]} annotationValues - List of field values to migrate.
514
+ * @returns {Promise<FieldValue[]>} - Returns a promise that resolves to the migrated
515
+ */
516
+ migrateParagraphFields(annotationValues?: FieldValue[]): Promise<FieldValue[]>;
517
+ /**
518
+ * Annotate the document with the given annotation values.
519
+ *
520
+ * @param {FieldValue[]} annotationValues List of field values to apply.
521
+ * @param {String[]} hiddenIds List of field ids to remove from the document.
522
+ * @returns {void}
523
+ */
524
+ annotate(annotationValues?: FieldValue[], hiddenIds?: string[], removeEmptyFields?: boolean): void;
525
+ /**
526
+ * Preview annotations in the editor. It stores a copy of the original state.
527
+ * This can be reverted via closePreview()
528
+ *
529
+ * @param {Object[]} annotationValues
530
+ * @param {string[]} hiddenIds
531
+ * @returns {void}
532
+ */
533
+ previewAnnotations(annotationValues?: any[], hiddenIds?: string[]): void;
534
+ originalState: any;
535
+ /**
536
+ * If there is a preview active, this will revert the editor to the original state.
537
+ *
538
+ * @returns {void}
539
+ */
540
+ closePreview(): void;
541
+ #private;
542
+ }
543
+ export type FieldValue = {
544
+ /**
545
+ * The id of the input field
546
+ */
547
+ input_id: string;
548
+ /**
549
+ * The value to insert into the field
550
+ */
551
+ input_value: string;
552
+ };
553
+ /**
554
+ * A map of plugin names to their helper API objects.
555
+ * Each plugin defines its own helper methods.
556
+ *
557
+ * Example:
558
+ * editor.helpers.linkedStyles.getStyles()
559
+ */
560
+ export type EditorHelpers = {
561
+ [x: string]: {
562
+ [x: string]: Function;
563
+ };
564
+ };
565
+ /**
566
+ * The current user of this superdoc
567
+ */
568
+ export type User = {
569
+ /**
570
+ * The user's name
571
+ */
572
+ name: string;
573
+ /**
574
+ * The user's email
575
+ */
576
+ email: string;
577
+ /**
578
+ * The user's photo
579
+ */
580
+ image: string | null;
581
+ };
582
+ /**
583
+ * A JSON representation of a docx node
584
+ */
585
+ export type DocxNode = any;
586
+ export type EditorOptions = {
587
+ /**
588
+ * - The container element for the editor
589
+ */
590
+ element?: HTMLElement;
591
+ /**
592
+ * - CSS selector for the editor container
593
+ */
594
+ selector?: string;
595
+ /**
596
+ * - Whether the editor is running in headless mode
597
+ */
598
+ isHeadless?: boolean;
599
+ /**
600
+ * - Mock document for testing
601
+ */
602
+ mockDocument?: Document;
603
+ /**
604
+ * - Mock window for testing
605
+ */
606
+ mockWindow?: Window;
607
+ /**
608
+ * - XML content
609
+ */
610
+ content?: string;
611
+ /**
612
+ * - Current user information
613
+ */
614
+ user?: User;
615
+ /**
616
+ * - List of users for collaboration
617
+ */
618
+ users?: Array<User>;
619
+ /**
620
+ * - Media configuration
621
+ */
622
+ media?: any;
623
+ /**
624
+ * - Media files
625
+ */
626
+ mediaFiles?: any;
627
+ /**
628
+ * - Font configuration
629
+ */
630
+ fonts?: any;
631
+ /**
632
+ * - Document mode ('editing', 'viewing', 'suggesting')
633
+ */
634
+ documentMode?: string;
635
+ /**
636
+ * - Editor mode ('docx', 'text', 'html')
637
+ */
638
+ mode?: string;
639
+ /**
640
+ * - User role ('editor', 'viewer', 'suggester')
641
+ */
642
+ role?: string;
643
+ /**
644
+ * - Available colors
645
+ */
646
+ colors?: any[];
647
+ /**
648
+ * - Document converter
649
+ */
650
+ converter?: any;
651
+ /**
652
+ * - Source of the file (File/Blob in browser, Buffer in Node.js)
653
+ */
654
+ fileSource?: File | Blob | Buffer;
655
+ /**
656
+ * - Initial editor state
657
+ */
658
+ initialState?: any;
659
+ /**
660
+ * - Unique document identifier
661
+ */
662
+ documentId?: string;
663
+ /**
664
+ * - Editor extensions
665
+ */
666
+ extensions?: any[];
667
+ /**
668
+ * - Whether the editor is editable
669
+ */
670
+ editable?: boolean;
671
+ /**
672
+ * - Editor properties
673
+ */
674
+ editorProps?: any;
675
+ /**
676
+ * - Parsing options
677
+ */
678
+ parseOptions?: any;
679
+ /**
680
+ * - Core extension options
681
+ */
682
+ coreExtensionOptions?: any;
683
+ /**
684
+ * - Whether to enable input rules
685
+ */
686
+ enableInputRules?: boolean;
687
+ /**
688
+ * - Whether comments are enabled
689
+ */
690
+ isCommentsEnabled?: boolean;
691
+ /**
692
+ * - Whether this is a new file
693
+ */
694
+ isNewFile?: boolean;
695
+ /**
696
+ * - Editor scale/zoom
697
+ */
698
+ scale?: number;
699
+ /**
700
+ * - Whether annotations are enabled
701
+ */
702
+ annotations?: boolean;
703
+ /**
704
+ * - Whether this is an internal editor
705
+ */
706
+ isInternal?: boolean;
707
+ /**
708
+ * - External extensions
709
+ */
710
+ externalExtensions?: any[];
711
+ /**
712
+ * - Numbering configuration
713
+ */
714
+ numbering?: any;
715
+ /**
716
+ * - Whether this is a header or footer editor
717
+ */
718
+ isHeaderOrFooter?: boolean;
719
+ /**
720
+ * - Called before editor creation
721
+ */
722
+ onBeforeCreate?: Function;
723
+ /**
724
+ * - Called after editor creation
725
+ */
726
+ onCreate?: Function;
727
+ /**
728
+ * - Called when editor content updates
729
+ */
730
+ onUpdate?: Function;
731
+ /**
732
+ * - Called when selection updates
733
+ */
734
+ onSelectionUpdate?: Function;
735
+ /**
736
+ * - Called when a transaction is processed
737
+ */
738
+ onTransaction?: Function;
739
+ /**
740
+ * - Called when editor gets focus
741
+ */
742
+ onFocus?: Function;
743
+ /**
744
+ * - Called when editor loses focus
745
+ */
746
+ onBlur?: Function;
747
+ /**
748
+ * - Called when editor is destroyed
749
+ */
750
+ onDestroy?: Function;
751
+ /**
752
+ * - Called when there's a content error
753
+ */
754
+ onContentError?: Function;
755
+ /**
756
+ * - Called when tracked changes update
757
+ */
758
+ onTrackedChangesUpdate?: Function;
759
+ /**
760
+ * - Called when comments update
761
+ */
762
+ onCommentsUpdate?: Function;
763
+ /**
764
+ * - Called when comments are loaded
765
+ */
766
+ onCommentsLoaded?: Function;
767
+ /**
768
+ * - Called when a comment is clicked
769
+ */
770
+ onCommentClicked?: Function;
771
+ /**
772
+ * - Called when comment locations update
773
+ */
774
+ onCommentLocationsUpdate?: Function;
775
+ /**
776
+ * - Called when document is locked
777
+ */
778
+ onDocumentLocked?: Function;
779
+ /**
780
+ * - Called on first render
781
+ */
782
+ onFirstRender?: Function;
783
+ /**
784
+ * - Called when collaboration is ready
785
+ */
786
+ onCollaborationReady?: Function;
787
+ /**
788
+ * - Called when pagination updates
789
+ */
790
+ onPaginationUpdate?: Function;
791
+ /**
792
+ * - Called when an exception occurs
793
+ */
794
+ onException?: Function;
795
+ /**
796
+ * - Called when list definitions change
797
+ */
798
+ onListDefinitionsChange?: Function;
799
+ /**
800
+ * - Handler for image uploads
801
+ */
802
+ handleImageUpload?: Function;
803
+ /**
804
+ * - Telemetry configuration
805
+ */
806
+ telemetry?: any;
807
+ /**
808
+ * - Prevent default styles from being applied in docx mode
809
+ */
810
+ suppressDefaultDocxStyles?: boolean;
811
+ /**
812
+ * - Provided JSON to override content with
813
+ */
814
+ jsonOverride?: any;
815
+ /**
816
+ * - HTML content to initialize the editor with
817
+ */
818
+ html?: string;
819
+ /**
820
+ * - Markdown content to initialize the editor with
821
+ */
822
+ markdown?: string;
823
+ /**
824
+ * - Whether to enable debug mode
825
+ */
826
+ isDebug?: boolean;
827
+ };
828
+ import { EventEmitter } from './EventEmitter.js';