superdoc 0.31.0-next.1 → 0.31.0-next.11

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 (345) hide show
  1. package/dist/chunks/{PdfViewer-CSZtzevK.cjs → PdfViewer-D9P6oSyP.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-DYfpBL2P.es.js → PdfViewer-DrGdcxMi.es.js} +2 -2
  3. package/dist/chunks/{eventemitter3-hYlnBzSA.es.js → eventemitter3-BZXKb7j7.es.js} +1 -1
  4. package/dist/chunks/{eventemitter3-DmHNHvFX.cjs → eventemitter3-CFCpOk3d.cjs} +1 -1
  5. package/dist/chunks/{index-BiYSI2c3.es.js → index-8TkBu9O_.es.js} +6 -6
  6. package/dist/chunks/{index-9j37gBmK.cjs → index-ZC9yiay1.cjs} +6 -6
  7. package/dist/chunks/{index-0zP7LFOd-CQ5IRTwG.es.js → index-hUtaGvC8-Vf8Tdemp.es.js} +1 -1
  8. package/dist/chunks/{index-0zP7LFOd-PDPveafF.cjs → index-hUtaGvC8-aunRWvRG.cjs} +1 -1
  9. package/dist/chunks/{jszip-BP2FTbpi.cjs → jszip-B99MTu59.cjs} +1 -1
  10. package/dist/chunks/{jszip-jKrsZoMS.es.js → jszip-Duxs2YMV.es.js} +1 -1
  11. package/dist/chunks/{super-editor.es-D8j9E-4h.cjs → super-editor.es-4uI_8knu.cjs} +4590 -4487
  12. package/dist/chunks/{super-editor.es-BzhuUuJx.es.js → super-editor.es-DS6vzo6Y.es.js} +4543 -4440
  13. package/dist/chunks/{vue-Cwv-wUpm.cjs → vue-ARQSyfaw.cjs} +2401 -2360
  14. package/dist/chunks/{vue-CKmzTNVs.es.js → vue-B5QAf5pA.es.js} +2401 -2360
  15. package/dist/chunks/xml-js-CVyfrKaV.es.js +2 -0
  16. package/dist/chunks/xml-js-DQa4Ye5C.cjs +3 -0
  17. package/dist/images/altText_add.svg +3 -0
  18. package/dist/images/altText_disclaimer.svg +3 -0
  19. package/dist/images/altText_done.svg +3 -0
  20. package/dist/images/altText_spinner.svg +30 -0
  21. package/dist/images/altText_warning.svg +3 -0
  22. package/dist/images/annotation-check.svg +11 -0
  23. package/dist/images/annotation-comment.svg +16 -0
  24. package/dist/images/annotation-help.svg +26 -0
  25. package/dist/images/annotation-insert.svg +10 -0
  26. package/dist/images/annotation-key.svg +11 -0
  27. package/dist/images/annotation-newparagraph.svg +11 -0
  28. package/dist/images/annotation-noicon.svg +7 -0
  29. package/dist/images/annotation-note.svg +42 -0
  30. package/dist/images/annotation-paperclip.svg +6 -0
  31. package/dist/images/annotation-paragraph.svg +16 -0
  32. package/dist/images/annotation-pushpin.svg +7 -0
  33. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  34. package/dist/images/cursor-editorFreeText.svg +3 -0
  35. package/dist/images/cursor-editorInk.svg +4 -0
  36. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  37. package/dist/images/editor-toolbar-delete.svg +5 -0
  38. package/dist/images/loading-icon.gif +0 -0
  39. package/dist/images/messageBar_closingButton.svg +3 -0
  40. package/dist/images/messageBar_warning.svg +3 -0
  41. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  42. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  43. package/dist/packages/superdoc/src/core/SuperDoc.d.ts +140 -52
  44. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  45. package/dist/packages/superdoc/src/core/types/index.d.ts +140 -52
  46. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  47. package/dist/style.css +12 -9
  48. package/dist/super-editor/ai-writer.es.js +2 -2
  49. package/dist/super-editor/chunks/{converter-B3mE6WPB.js → converter-DNZlAyEp.js} +1658 -1447
  50. package/dist/super-editor/chunks/{docx-zipper-FgUekv4g.js → docx-zipper-CGXr6ESB.js} +1 -1
  51. package/dist/super-editor/chunks/{editor-B0PiO07g.js → editor-BG6XbVA7.js} +2381 -2531
  52. package/dist/super-editor/chunks/{index-0zP7LFOd.js → index-hUtaGvC8.js} +1 -1
  53. package/dist/super-editor/chunks/{toolbar-Bj9E8rmT.js → toolbar-8Nf_jruN.js} +2 -2
  54. package/dist/super-editor/converter.es.js +2 -2
  55. package/dist/super-editor/docx-zipper.es.js +2 -2
  56. package/dist/super-editor/editor.es.js +3 -3
  57. package/dist/super-editor/file-zipper.es.js +1 -1
  58. package/dist/super-editor/style.css +12 -9
  59. package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
  60. package/dist/super-editor/super-editor/src/components/toolbar/super-toolbar.d.ts.map +1 -1
  61. package/dist/super-editor/super-editor/src/core/Attribute.d.ts +75 -29
  62. package/dist/super-editor/super-editor/src/core/Attribute.d.ts.map +1 -1
  63. package/dist/super-editor/super-editor/src/core/CommandService.d.ts +1 -1
  64. package/dist/super-editor/super-editor/src/core/CommandService.d.ts.map +1 -1
  65. package/dist/super-editor/super-editor/src/core/Editor.d.ts +145 -673
  66. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  67. package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts +23 -14
  68. package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts.map +1 -1
  69. package/dist/super-editor/super-editor/src/core/Extension.d.ts +25 -11
  70. package/dist/super-editor/super-editor/src/core/Extension.d.ts.map +1 -1
  71. package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts +1 -1
  72. package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts.map +1 -1
  73. package/dist/super-editor/super-editor/src/core/Mark.d.ts +28 -12
  74. package/dist/super-editor/super-editor/src/core/Mark.d.ts.map +1 -1
  75. package/dist/super-editor/super-editor/src/core/Node.d.ts +87 -25
  76. package/dist/super-editor/super-editor/src/core/Node.d.ts.map +1 -1
  77. package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts +20 -13
  78. package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts.map +1 -1
  79. package/dist/super-editor/super-editor/src/core/Schema.d.ts.map +1 -1
  80. package/dist/super-editor/super-editor/src/core/commands/changeListLevel.d.ts.map +1 -1
  81. package/dist/super-editor/super-editor/src/core/commands/index.d.ts +2 -0
  82. package/dist/super-editor/super-editor/src/core/commands/lineHeight.d.ts +7 -0
  83. package/dist/super-editor/super-editor/src/core/commands/lineHeight.d.ts.map +1 -0
  84. package/dist/super-editor/super-editor/src/core/commands/list-helpers/is-list.d.ts.map +1 -1
  85. package/dist/super-editor/super-editor/src/core/commands/removeNumberingProperties.d.ts.map +1 -1
  86. package/dist/super-editor/super-editor/src/core/commands/resetAttributes.d.ts.map +1 -1
  87. package/dist/super-editor/super-editor/src/core/commands/restartNumbering.d.ts.map +1 -1
  88. package/dist/super-editor/super-editor/src/core/commands/textIndent.d.ts +5 -0
  89. package/dist/super-editor/super-editor/src/core/commands/textIndent.d.ts.map +1 -0
  90. package/dist/super-editor/super-editor/src/core/commands/toggleList.d.ts.map +1 -1
  91. package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts +11 -89
  92. package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts.map +1 -1
  93. package/dist/super-editor/super-editor/src/core/commands/updateAttributes.d.ts +4 -4
  94. package/dist/super-editor/super-editor/src/core/commands/updateAttributes.d.ts.map +1 -1
  95. package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts +1 -1
  96. package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts.map +1 -1
  97. package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts +1 -1
  98. package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts.map +1 -1
  99. package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts +1 -1
  100. package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts.map +1 -1
  101. package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts +1 -1
  102. package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts.map +1 -1
  103. package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts +3 -2
  104. package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts.map +1 -1
  105. package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts +12 -5
  106. package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts.map +1 -1
  107. package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts +1 -1
  108. package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts.map +1 -1
  109. package/dist/super-editor/super-editor/src/core/helpers/list-numbering-helpers.d.ts.map +1 -1
  110. package/dist/super-editor/super-editor/src/core/index.d.ts +18 -13
  111. package/dist/super-editor/super-editor/src/core/index.d.ts.map +1 -1
  112. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts +4 -0
  113. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts.map +1 -0
  114. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +0 -48
  115. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
  116. package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts +7 -0
  117. package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts.map +1 -1
  118. package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts +59 -13
  119. package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts.map +1 -1
  120. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
  121. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +1 -1
  122. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +4 -0
  123. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts.map +1 -1
  124. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/autoPageNumber-translator.d.ts +8 -0
  125. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/autoPageNumber-translator.d.ts.map +1 -0
  126. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/index.d.ts +2 -0
  127. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/index.d.ts.map +1 -0
  128. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/index.d.ts +2 -0
  129. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/index.d.ts.map +1 -0
  130. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/totalPageNumber-translator.d.ts +8 -0
  131. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/totalPageNumber-translator.d.ts.map +1 -0
  132. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/generate-paragraph-properties.d.ts +8 -0
  133. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/generate-paragraph-properties.d.ts.map +1 -0
  134. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts.map +1 -1
  135. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/translate-paragraph-node.d.ts +8 -0
  136. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/translate-paragraph-node.d.ts.map +1 -0
  137. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/convert-sdt-content-to-runs.d.ts +7 -0
  138. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/convert-sdt-content-to-runs.d.ts.map +1 -0
  139. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts.map +1 -1
  140. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/helpers/translate-text-node.d.ts +5 -0
  141. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/helpers/translate-text-node.d.ts.map +1 -0
  142. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +14 -10
  143. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts.map +1 -1
  144. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts.map +1 -1
  145. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts.map +1 -1
  146. package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts +118 -0
  147. package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts.map +1 -0
  148. package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts +265 -0
  149. package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts.map +1 -0
  150. package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts +144 -0
  151. package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts.map +1 -0
  152. package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts +35 -0
  153. package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts.map +1 -0
  154. package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts +73 -0
  155. package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts.map +1 -0
  156. package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts +2 -0
  157. package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts.map +1 -0
  158. package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts +6 -2
  159. package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts.map +1 -1
  160. package/dist/super-editor/super-editor/src/core/utilities/deleteProps.d.ts.map +1 -1
  161. package/dist/super-editor/super-editor/src/core/utilities/isIOS.d.ts.map +1 -1
  162. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts +8 -2
  163. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
  164. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts +7 -1
  165. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
  166. package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts +1 -1
  167. package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts.map +1 -1
  168. package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts +1 -1
  169. package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts.map +1 -1
  170. package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts +3 -1
  171. package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts.map +1 -1
  172. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +1 -1
  173. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts.map +1 -1
  174. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts +1 -1
  175. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts.map +1 -1
  176. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
  177. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts +6 -1
  178. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts.map +1 -1
  179. package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts +9 -1
  180. package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts.map +1 -1
  181. package/dist/super-editor/super-editor/src/extensions/color/color.d.ts +3 -1
  182. package/dist/super-editor/super-editor/src/extensions/color/color.d.ts.map +1 -1
  183. package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts +18 -3
  184. package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts.map +1 -1
  185. package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts +5 -1
  186. package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts.map +1 -1
  187. package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +1 -1
  188. package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts.map +1 -1
  189. package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts +1 -1
  190. package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts.map +1 -1
  191. package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts +1 -1
  192. package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts.map +1 -1
  193. package/dist/super-editor/super-editor/src/extensions/document/document.d.ts +1 -1
  194. package/dist/super-editor/super-editor/src/extensions/document/document.d.ts.map +1 -1
  195. package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts +5 -1
  196. package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts.map +1 -1
  197. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts +1 -1
  198. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  199. package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts +3 -1
  200. package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts.map +1 -1
  201. package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts +9 -1
  202. package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts.map +1 -1
  203. package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts +7 -1
  204. package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts.map +1 -1
  205. package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts +1 -1
  206. package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts.map +1 -1
  207. package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts +3 -1
  208. package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts.map +1 -1
  209. package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts +3 -1
  210. package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts.map +1 -1
  211. package/dist/super-editor/super-editor/src/extensions/history/history.d.ts +4 -1
  212. package/dist/super-editor/super-editor/src/extensions/history/history.d.ts.map +1 -1
  213. package/dist/super-editor/super-editor/src/extensions/image/image.d.ts +1 -1
  214. package/dist/super-editor/super-editor/src/extensions/image/image.d.ts.map +1 -1
  215. package/dist/super-editor/super-editor/src/extensions/index.d.ts +23 -5
  216. package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
  217. package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts +3 -1
  218. package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts.map +1 -1
  219. package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts +2 -2
  220. package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts.map +1 -1
  221. package/dist/super-editor/super-editor/src/extensions/link/link.d.ts +9 -1
  222. package/dist/super-editor/super-editor/src/extensions/link/link.d.ts.map +1 -1
  223. package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts +1 -0
  224. package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
  225. package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts +1 -1
  226. package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  227. package/dist/super-editor/super-editor/src/extensions/linked-styles/plugin.d.ts.map +1 -1
  228. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts +6 -1
  229. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
  230. package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts +1 -1
  231. package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts.map +1 -1
  232. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts +2 -2
  233. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
  234. package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts +8 -1
  235. package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts.map +1 -1
  236. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts +5 -1
  237. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
  238. package/dist/super-editor/super-editor/src/extensions/paragraph/ParagraphNodeView.d.ts.map +1 -1
  239. package/dist/super-editor/super-editor/src/extensions/paragraph/dropcapPlugin.d.ts +4 -0
  240. package/dist/super-editor/super-editor/src/extensions/paragraph/dropcapPlugin.d.ts.map +1 -0
  241. package/dist/super-editor/super-editor/src/extensions/paragraph/numberingPlugin.d.ts.map +1 -1
  242. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts +1 -10
  243. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  244. package/dist/super-editor/super-editor/src/extensions/paragraph/resolvedPropertiesCache.d.ts +3 -0
  245. package/dist/super-editor/super-editor/src/extensions/paragraph/resolvedPropertiesCache.d.ts.map +1 -0
  246. package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts +3 -1
  247. package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts.map +1 -1
  248. package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +1 -1
  249. package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts.map +1 -1
  250. package/dist/super-editor/super-editor/src/extensions/run/run.d.ts +1 -1
  251. package/dist/super-editor/super-editor/src/extensions/run/run.d.ts.map +1 -1
  252. package/dist/super-editor/super-editor/src/extensions/search/search.d.ts +1 -1
  253. package/dist/super-editor/super-editor/src/extensions/search/search.d.ts.map +1 -1
  254. package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts +6 -1
  255. package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts.map +1 -1
  256. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +1 -1
  257. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -1
  258. package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +6 -1
  259. package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts.map +1 -1
  260. package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts +1 -1
  261. package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts.map +1 -1
  262. package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts +3 -1
  263. package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts.map +1 -1
  264. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts +6 -1
  265. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
  266. package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts +1 -1
  267. package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts.map +1 -1
  268. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +6 -1
  269. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts.map +1 -1
  270. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +9 -3
  271. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
  272. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +6 -1
  273. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts.map +1 -1
  274. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentByGroup.d.ts +19 -0
  275. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentByGroup.d.ts.map +1 -0
  276. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/index.d.ts +2 -0
  277. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/tagUtils.d.ts +53 -0
  278. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/tagUtils.d.ts.map +1 -0
  279. package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts.map +1 -1
  280. package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts +6 -1
  281. package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts.map +1 -1
  282. package/dist/super-editor/super-editor/src/extensions/table/TableView.d.ts +7 -1
  283. package/dist/super-editor/super-editor/src/extensions/table/TableView.d.ts.map +1 -1
  284. package/dist/super-editor/super-editor/src/extensions/table/table.d.ts +19 -1
  285. package/dist/super-editor/super-editor/src/extensions/table/table.d.ts.map +1 -1
  286. package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts +5 -1
  287. package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts.map +1 -1
  288. package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts +5 -1
  289. package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts.map +1 -1
  290. package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts +6 -1
  291. package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts.map +1 -1
  292. package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts +5 -1
  293. package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts.map +1 -1
  294. package/dist/super-editor/super-editor/src/extensions/text/text.d.ts +1 -1
  295. package/dist/super-editor/super-editor/src/extensions/text/text.d.ts.map +1 -1
  296. package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts +3 -12
  297. package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts.map +1 -1
  298. package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts +3 -1
  299. package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts.map +1 -1
  300. package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts +3 -1
  301. package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts.map +1 -1
  302. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +140 -52
  303. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  304. package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts +1 -1
  305. package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts.map +1 -1
  306. package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts +5 -1
  307. package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts.map +1 -1
  308. package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts +5 -1
  309. package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts.map +1 -1
  310. package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts +5 -1
  311. package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts.map +1 -1
  312. package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +5 -1
  313. package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts.map +1 -1
  314. package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts +40 -0
  315. package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts.map +1 -0
  316. package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts +57 -0
  317. package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts.map +1 -0
  318. package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts +83 -0
  319. package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts.map +1 -0
  320. package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts +3 -1
  321. package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts.map +1 -1
  322. package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts +1 -1
  323. package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts.map +1 -1
  324. package/dist/super-editor/super-editor/src/tests/data/annotations_doc_content.d.ts +113 -61
  325. package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts +1 -1
  326. package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  327. package/dist/super-editor/super-editor.es.js +42 -64
  328. package/dist/super-editor/toolbar.es.js +2 -2
  329. package/dist/super-editor.cjs +2 -2
  330. package/dist/super-editor.es.js +2 -2
  331. package/dist/superdoc.cjs +2 -2
  332. package/dist/superdoc.es.js +2 -2
  333. package/dist/superdoc.umd.js +4935 -4792
  334. package/dist/superdoc.umd.js.map +1 -1
  335. package/package.json +1 -1
  336. package/dist/chunks/xml-js-BSDu25I7.cjs +0 -3
  337. package/dist/chunks/xml-js-CBrRls0f.es.js +0 -2
  338. package/dist/super-editor/super-editor/src/extensions/line-height/index.d.ts +0 -2
  339. package/dist/super-editor/super-editor/src/extensions/line-height/index.d.ts.map +0 -1
  340. package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts +0 -39
  341. package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts.map +0 -1
  342. package/dist/super-editor/super-editor/src/extensions/text-indent/index.d.ts +0 -2
  343. package/dist/super-editor/super-editor/src/extensions/text-indent/index.d.ts.map +0 -1
  344. package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts +0 -31
  345. package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { aF as getDefaultExportFromCjs } from "./converter-B3mE6WPB.js";
1
+ import { aF as getDefaultExportFromCjs } from "./converter-DNZlAyEp.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-B3mE6WPB.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-B0PiO07g.js";
2
+ import { p as process$1 } from "./converter-DNZlAyEp.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BG6XbVA7.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { a7 } from "./chunks/converter-B3mE6WPB.js";
1
+ import { aa } from "./chunks/converter-DNZlAyEp.js";
2
2
  export {
3
- a7 as SuperConverter
3
+ aa as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-B3mE6WPB.js";
2
- import { D } from "./chunks/docx-zipper-FgUekv4g.js";
1
+ import "./chunks/converter-DNZlAyEp.js";
2
+ import { D } from "./chunks/docx-zipper-CGXr6ESB.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-B0PiO07g.js";
2
- import "./chunks/converter-B3mE6WPB.js";
3
- import "./chunks/docx-zipper-FgUekv4g.js";
1
+ import { E } from "./chunks/editor-BG6XbVA7.js";
2
+ import "./chunks/converter-DNZlAyEp.js";
3
+ import "./chunks/docx-zipper-CGXr6ESB.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-FgUekv4g.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-CGXr6ESB.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -466,6 +466,8 @@ a {
466
466
  */
467
467
  .ProseMirror {
468
468
  position: relative;
469
+ /* We use "all: revert" to isolate the editor content from external stylesheets. This makes the "contenteditable" not editable on Safari devices. So we need to keep this. */
470
+ -webkit-user-modify: read-write-plaintext-only;
469
471
  }
470
472
  .ProseMirror {
471
473
  word-wrap: break-word;
@@ -602,7 +604,7 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
602
604
 
603
605
  overflow-x: auto;
604
606
  scrollbar-width: thin;
605
- overflow: hidden;
607
+ overflow: visible; /* Allow table to extend beyond margins */
606
608
 
607
609
  /*
608
610
  The border width does not need to be multiplied by two,
@@ -612,7 +614,7 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
612
614
  .ProseMirror table {
613
615
  border-collapse: collapse;
614
616
  border-spacing: 0;
615
- table-layout: fixed;
617
+ table-layout: auto;
616
618
  margin: 0;
617
619
  /* width: 100%; */
618
620
  }
@@ -621,7 +623,7 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
621
623
  }
622
624
  .ProseMirror td,
623
625
  .ProseMirror th {
624
- min-width: 1em;
626
+ min-width: 0;
625
627
  position: relative;
626
628
  vertical-align: top;
627
629
  box-sizing: border-box;
@@ -1927,10 +1929,10 @@ on the right if it is inside shape textbox.
1927
1929
  min-height: 40px;
1928
1930
  }
1929
1931
 
1930
- .editor-element[data-v-cd3558fe] {
1932
+ .editor-element[data-v-4615ea7d] {
1931
1933
  position: relative;
1932
1934
  }
1933
- .super-editor-container[data-v-cd3558fe] {
1935
+ .super-editor-container[data-v-4615ea7d] {
1934
1936
  width: auto;
1935
1937
  height: auto;
1936
1938
  min-width: 8in;
@@ -1939,13 +1941,14 @@ on the right if it is inside shape textbox.
1939
1941
  display: flex;
1940
1942
  flex-direction: column;
1941
1943
  }
1942
- .ruler[data-v-cd3558fe] {
1944
+ .ruler[data-v-4615ea7d] {
1943
1945
  margin-bottom: 2px;
1944
1946
  }
1945
- .super-editor[data-v-cd3558fe] {
1947
+ .super-editor[data-v-4615ea7d] {
1946
1948
  color: initial;
1949
+ overflow: hidden;
1947
1950
  }
1948
- .placeholder-editor[data-v-cd3558fe] {
1951
+ .placeholder-editor[data-v-4615ea7d] {
1949
1952
  position: absolute;
1950
1953
  top: 0;
1951
1954
  left: 0;
@@ -1957,7 +1960,7 @@ on the right if it is inside shape textbox.
1957
1960
  background-color: white;
1958
1961
  box-sizing: border-box;
1959
1962
  }
1960
- .placeholder-title[data-v-cd3558fe] {
1963
+ .placeholder-title[data-v-4615ea7d] {
1961
1964
  display: flex;
1962
1965
  justify-content: center;
1963
1966
  margin-bottom: 40px;
@@ -1 +1 @@
1
- {"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAuBO;;;;;EA2qCN"}
1
+ {"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAuBO;;;;;EA6oCN"}
@@ -1 +1 @@
1
- {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAyBA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH;IAwBE;;;;OAIG;IACH,oBAHW,aAAa,EA4DvB;IArFD;;;OAGG;IACH,QAFU,aAAa,CAmBrB;IAWA,oBAAsB;IACtB,qBAAuB;IACvB,kBAAoD;IACpD,WAAkC;IAClC,cAA+B;IAC/B,aAAmC;IACnC,sBAA4B;IAuC5B,gCAA6B;IAI3B,uQAAoD;IAEtD,kBAAyC;IAI3C,0CAgBC;IA8UD;;;;OAIG;IACH,aAHc,GAAC,EAAA,GACF,IAAI,CAIhB;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACJ,IAAI,CAMhB;IA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;KACZ;;;;cACA;QAAuB,KAAK,EAAjB,GAAC;KACZ;;;;gBACA;QAAyB,KAAK,EAAnB,GAAC;KACZ;;;;eACA;QAAwB,KAAK,EAAlB,GAAC;KACZ;;;;eACA;QAAwB,KAAK,EAAlB,GAAC;KACZ;;;;cACA;QAA6B,KAAK,EAAvB,OAAO;KAClB;;;;oBACA;QAA6B,KAAK,EAAvB,GAAC;KACZ;;;;oBACA;QAAmC,KAAK,EAA7B,OAAO;KAClB;;;;oBACA;QAA6B,KAAK,EAAvB,GAAC;KACZ;;;;kBACA;QAA2B,KAAK,EAArB,GAAC;KACZ;;;;WACA;QAAoB,KAAK,EAAd,GAAC;KACZ;;;;eACA;QAA8B,KAAK,EAAxB,OAAO;KAClB;;;;4BACA;QAA2C,KAAK,EAArC,OAAO;KAClB;;;;wBACA;QAAuC,KAAK,EAAjC,OAAO;KAClB;;;;cACA;QAAuB,KAAK,EAAjB,GAAC;KACZ;;;;eACA;QAAwB,KAAK,EAAlB,GAAC;KACZ;;;;wBACA;QAAuC,KAAK,EAAjC,OAAO;KAClB;;;;sBACA;QAA+B,KAAK,EAAzB,GAAC;KACZ;;;;mBACA;QAA4B,KAAK,EAAtB,GAAC;KACZ;;;;cACA;QAAuB,KAAK,EAAjB,GAAC;KACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAWW,WAAW;;;;eACX,GAAC;;6BArIc,eAAe"}
1
+ {"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AA2BA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AAEH;;;;GAIG;AAEH;;;;GAIG;AACH;IAwBE;;;;OAIG;IACH,oBAHW,aAAa,EA4DvB;IArFD;;;OAGG;IACH,QAFU,aAAa,CA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ule } from 'prosemirror-model';
2
+ import type { EditorState } from 'prosemirror-state';
3
+ /**
4
+ * Primitive attribute value types
5
+ */
6
+ export type AttributePrimitive = string | number | boolean | null | undefined;
7
+ /**
8
+ * Allowed attribute values (recursive to permit nested objects/arrays)
9
+ */
10
+ export type AttributeValue = AttributePrimitive | AttributeValue[] | {
11
+ [key: string]: AttributeValue;
12
+ };
13
+ /**
14
+ * Supported attribute default value (raw value or lazy getter)
15
+ */
16
+ export type AttributeDefault = AttributeValue | (() => AttributeValue);
17
+ /**
18
+ * Attribute specification for extensions.
19
+ */
20
+ export interface AttributeSpec {
21
+ /** Default value for the attribute */
22
+ default: AttributeDefault;
23
+ /** Whether the attribute should be rendered in the DOM */
24
+ rendered: boolean;
25
+ /** Function to render the attribute to the DOM */
26
+ renderDOM: ((attrs: Record<string, AttributeValue>) => Record<string, AttributeValue> | null) | null;
27
+ /** Function to parse the attribute from the DOM */
28
+ parseDOM: ((node: HTMLElement) => AttributeValue) | null;
29
+ /** Whether the attribute should be kept when splitting */
30
+ keepOnSplit: boolean;
31
+ }
32
+ /**
33
+ * Extension attribute item with type and name.
34
+ */
35
+ export interface ExtensionAttribute {
36
+ /** The type (extension name) this attribute belongs to */
37
+ type: string;
38
+ /** The attribute name */
39
+ name: string;
40
+ /** The attribute specification */
41
+ attribute: AttributeSpec;
42
+ }
43
+ /**
44
+ * Global attribute configuration.
45
+ */
46
+ export interface GlobalAttribute {
47
+ /** Types this global attribute applies to */
48
+ types: string[];
49
+ /** Map of attribute names to specs */
50
+ attributes: Record<string, Partial<AttributeSpec>>;
51
+ }
52
+ /**
53
+ * Extension with type information.
54
+ */
55
+ export interface ExtensionLike {
56
+ type: string;
57
+ name: string;
58
+ options: Record<string, unknown>;
59
+ storage: Record<string, unknown>;
60
+ config: Record<string, any>;
61
+ }
62
+ /**
63
+ * ProseMirror ParseRule type (imported from prosemirror-model)
64
+ */
65
+ export type ParseRule = PmParseRule;
1
66
  /**
2
67
  * Attribute class is a space that contains
3
68
  * methods for working with attributes.
4
69
  */
5
- export class Attribute {
70
+ export declare class Attribute {
71
+ #private;
6
72
  /**
7
73
  * Get a list of all attributes defined in the extensions.
8
74
  * @param extensions List of all extensions.
9
75
  * @returns Extension attributes.
10
76
  */
11
- static getAttributesFromExtensions(extensions: any): any[];
12
- /**
13
- * Get a list of global attributes defined in the extensions.
14
- * @param extensions List of all extensions.
15
- * @param defaultAttribute Default attribute.
16
- * @returns Global extension attributes.
17
- */
18
- static "__#private@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
19
- /**
20
- * Get a list of attributes defined in the Node and Mark extensions.
21
- * @param extensions List of all extensions.
22
- * @param defaultAttribute Default attribute.
23
- * @returns Node and Mark extension attributes.
24
- */
25
- static "__#private@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
26
- type: any;
27
- name: string;
28
- attribute: any;
29
- }[];
77
+ static getAttributesFromExtensions(extensions: ExtensionLike[]): ExtensionAttribute[];
30
78
  /**
31
79
  * Inserts extension attributes into parseRule attributes.
32
80
  * @param parseRule PM ParseRule.
33
81
  * @param extensionAttrs List of attributes to insert.
34
82
  */
35
- static insertExtensionAttrsToParseRule(parseRule: any, extensionAttrs: any): any;
83
+ static insertExtensionAttrsToParseRule(parseRule: ParseRule, extensionAttrs: ExtensionAttribute[]): ParseRule;
36
84
  /**
37
85
  * Get attributes to render.
38
86
  * @param nodeOrMark Node or Mark.
39
87
  * @param extensionAttrs Extension attributes.
40
88
  */
41
- static getAttributesToRender(nodeOrMark: any, extensionAttrs: any): {};
89
+ static getAttributesToRender(nodeOrMark: PmNode | PmMark, extensionAttrs: ExtensionAttribute[]): Record<string, AttributeValue>;
42
90
  /**
43
91
  * Merges attributes.
44
92
  * @param objects Objects with attributes.
45
93
  * @returns Object with merged attributes.
46
94
  */
47
- static mergeAttributes(...objects: any[]): {};
95
+ static mergeAttributes(...objects: (Record<string, AttributeValue> | null | undefined)[]): Record<string, AttributeValue>;
48
96
  /**
49
97
  * Get extension attributes that should be splitted by keepOnSplit flag.
50
98
  * @param extensionAttrs Array of attributes.
@@ -52,29 +100,27 @@ export class Attribute {
52
100
  * @param attributes The extension attributes.
53
101
  * @returns The splitted attributes.
54
102
  */
55
- static getSplittedAttributes(extensionAttrs: any, typeName: any, attributes: any): {
56
- [k: string]: any;
57
- };
103
+ static getSplittedAttributes(extensionAttrs: ExtensionAttribute[], typeName: string, attributes: Record<string, AttributeValue>): Record<string, AttributeValue>;
58
104
  /**
59
105
  * Get mark attrs on the current editor state.
60
106
  * @param state The current editor state.
61
107
  * @param typeOrName The mark type or name.
62
108
  * @returns The mark attrs.
63
109
  */
64
- static getMarkAttributes(state: any, typeOrName: any): any;
110
+ static getMarkAttributes(state: EditorState, typeOrName: string | MarkType): Record<string, AttributeValue>;
65
111
  /**
66
112
  * Get node attrs on the current editor state.
67
113
  * @param state The current editor state.
68
114
  * @param typeOrName The node type or name.
69
115
  * @returns The node attrs.
70
116
  */
71
- static getNodeAttributes(state: any, typeOrName: any): any;
117
+ static getNodeAttributes(state: EditorState, typeOrName: string | NodeType): Record<string, AttributeValue>;
72
118
  /**
73
119
  * Get node or mark attrs on the current editor state.
74
120
  * @param state The current editor state.
75
121
  * @param typeOrName The node/mark type or name.
76
122
  * @returns The attrs of the node/mark or an empty object.
77
123
  */
78
- static getAttributes(state: any, typeOrName: any): any;
124
+ static getAttributes(state: EditorState, typeOrName: string | NodeType | MarkType): Record<string, AttributeValue>;
79
125
  }
80
126
  //# sourceMappingURL=Attribute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Attribute.d.ts","sourceRoot":"","sources":["../../../../src/core/Attribute.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH;IACE;;;;OAIG;IACH,2DAiBC;IAED;;;;;OAKG;IACH,wFAsCC;IAED;;;;;OAKG;IACH;;;;QAuCC;IAED;;;;OAIG;IACH,iFAqCC;IAED;;;;OAIG;IACH,uEAgBC;IAED;;;;OAIG;IACH,8CAgCC;IAED;;;;;;OAMG;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G;IACH,MAAM,CAAC,qBAAqB,CAC1B,cAAc,EAAE,kBAAkB,EAAE,EACpC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GACzC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;IAcjC;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CACtB,KAAK,EAAE,WAAW,EAClB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAC5B,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;IAWjC;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CACtB,KAAK,EAAE,WAAW,EAClB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAC5B,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;IAgBjC;;;;;OAKG;IACH,MAAM,CAAC,aAAa,CAClB,KAAK,EAAE,WAAW,EAClB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GACvC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;CAgBlC"}
@@ -17,7 +17,7 @@ export class CommandService {
17
17
  */
18
18
  constructor(props: import("./commands/types/index.js").CommandServiceOptions);
19
19
  editor: import("./Editor.js").Editor;
20
- rawCommands: any;
20
+ rawCommands: {};
21
21
  /**
22
22
  * Get editor state.
23
23
  * @returns {import("prosemirror-state").EditorState} Editor state
@@ -1 +1 @@
1
- {"version":3,"file":"CommandService.d.ts","sourceRoot":"","sources":["../../../../src/core/CommandService.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH;;GAEG;AACH;IAaE;;;;OAIG;IACH,sBAHW,OAAO,2BAA2B,EAAE,qBAAqB,GACvD,cAAc,CAI1B;IAfD;;OAEG;IACH,mBAFW,OAAO,2BAA2B,EAAE,qBAAqB,EAKnE;IAVD,qCAAO;IAEP,iBAAY;IAmBZ;;;OAGG;IACH,aAFa,OAAO,mBAAmB,EAAE,WAAW,CAInD;IAED;;;OAGG;IACH,gBAFa,OAAO,2BAA2B,EAAE,cAAc,CAwB9D;IAED;;;OAGG;IACH,aAFa,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,sBAAsB,CAIvF;IAED;;;OAGG;IACH,WAFa,MAAM,OAAO,2BAA2B,EAAE,SAAS,CAI/D;IAED;;;;;OAKG;IACH,sBAJW,OAAO,mBAAmB,EAAE,WAAW,mBACvC,OAAO,GACL,OAAO,2BAA2B,EAAE,sBAAsB,CAkCtE;IAED;;;;OAIG;IACH,oBAHW,OAAO,mBAAmB,EAAE,WAAW,GACrC,OAAO,2BAA2B,EAAE,SAAS,CAqBzD;IAED;;;;;OAKG;IACH,gBAJW,OAAO,mBAAmB,EAAE,WAAW,mBACvC,OAAO,OAyBjB;CACF;0BAhLY,OAAO,mBAAmB,EAAE,WAAW;qCACvC,OAAO,2BAA2B,EAAE,sBAAsB"}
1
+ {"version":3,"file":"CommandService.d.ts","sourceRoot":"","sources":["../../../../src/core/CommandService.js"],"names":[],"mappings":"AAGA;;;GAGG;AAEH;;GAEG;AACH;IAaE;;;;OAIG;IACH,sBAHW,OAAO,2BAA2B,EAAE,qBAAqB,GACvD,cAAc,CAI1B;IAfD;;OAEG;IACH,mBAFW,OAAO,2BAA2B,EAAE,qBAAqB,EAKnE;IAVD,qCAAO;IAEP,gBAAY;IAmBZ;;;OAGG;IACH,aAFa,OAAO,mBAAmB,EAAE,WAAW,CAInD;IAED;;;OAGG;IACH,gBAFa,OAAO,2BAA2B,EAAE,cAAc,CAwB9D;IAED;;;OAGG;IACH,aAFa,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,sBAAsB,CAIvF;IAED;;;OAGG;IACH,WAFa,MAAM,OAAO,2BAA2B,EAAE,SAAS,CAI/D;IAED;;;;;OAKG;IACH,sBAJW,OAAO,mBAAmB,EAAE,WAAW,mBACvC,OAAO,GACL,OAAO,2BAA2B,EAAE,sBAAsB,CAkCtE;IAED;;;;OAIG;IACH,oBAHW,OAAO,mBAAmB,EAAE,WAAW,GACrC,OAAO,2BAA2B,EAAE,SAAS,CAqBzD;IAED;;;;;OAKG;IACH,gBAJW,OAAO,mBAAmB,EAAE,WAAW,mBACvC,OAAO,OAyBjB;CACF;0BAhLY,OAAO,mBAAmB,EAAE,WAAW;qCACvC,OAAO,2BAA2B,EAAE,sBAAsB"}