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 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../src/core/Editor.js"],"names":[],"mappings":"AA4CA;;;;GAIG;AAEH;;;;;;;;GAQG;AAEH;;;;;GAKG;AACH;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AAEH;;;;GAIG;AACH;IAuyBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;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Ac,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAKlE;;OAEG;IACH,mBAAmB,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAYlF;;;;;OAKG;IACH,qBAAqB,CAAC,gBAAgB,GAAE,UAAU,EAAO,GAAG,IAAI;IAMhE;;;;OAIG;IACG,sBAAsB,CAAC,gBAAgB,GAAE,UAAU,EAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAMxF;;OAEG;IACH,QAAQ,CAAC,gBAAgB,GAAE,UAAU,EAAO,EAAE,SAAS,GAAE,MAAM,EAAO,EAAE,iBAAiB,GAAE,OAAe,GAAG,IAAI;IAkBjH;;;OAGG;IACH,kBAAkB,CAAC,gBAAgB,GAAE,UAAU,EAAO,EAAE,SAAS,GAAE,MAAM,EAAO,GAAG,IAAI;IAKvF;;OAEG;IACH,YAAY,IAAI,IAAI;CAmCrB"}
@@ -1,40 +1,49 @@
1
+ /**
2
+ * Default event map with string keys and any arguments.
3
+ */
4
+ export type DefaultEventMap = Record<string, any[]>;
5
+ /**
6
+ * Event callback function type.
7
+ */
8
+ export type EventCallback<Args extends any[] = any[]> = (...args: Args) => void;
1
9
  /**
2
10
  * EventEmitter class is used to emit and subscribe to events.
11
+ * @template EventMap - Map of event names to their argument types
3
12
  */
4
- export class EventEmitter {
13
+ export declare class EventEmitter<EventMap extends DefaultEventMap = DefaultEventMap> {
14
+ #private;
5
15
  /**
6
16
  * Subscribe to the event.
7
- * @param {string} name Event name.
8
- * @param {(...args: any[]) => void} fn Callback.
17
+ * @param name Event name.
18
+ * @param fn Callback.
9
19
  * @returns {void}
10
20
  */
11
- on(name: string, fn: (...args: any[]) => void): void;
21
+ on<K extends keyof EventMap>(name: K, fn: EventCallback<EventMap[K]>): void;
12
22
  /**
13
23
  * Emit event.
14
- * @param {string} name Event name.
15
- * @param {...any} args Arguments to pass to each listener.
24
+ * @param name Event name.
25
+ * @param args Arguments to pass to each listener.
16
26
  * @returns {void}
17
27
  */
18
- emit(name: string, ...args: any[]): void;
28
+ emit<K extends keyof EventMap>(name: K, ...args: EventMap[K]): void;
19
29
  /**
20
30
  * Remove a specific callback from event
21
31
  * or all event subscriptions.
22
- * @param {string} name Event name.
23
- * @param {(...args: any[]) => void} fn Callback.
32
+ * @param name Event name.
33
+ * @param fn Callback.
24
34
  * @returns {void}
25
35
  */
26
- off(name: string, fn: (...args: any[]) => void): void;
36
+ off<K extends keyof EventMap>(name: K, fn?: EventCallback<EventMap[K]>): void;
27
37
  /**
28
38
  * Subscribe to an event that will be called only once.
29
- * @param {string} name Event name.
30
- * @param {(...args: any[]) => void} fn Callback.
39
+ * @param name Event name.
40
+ * @param fn Callback.
31
41
  * @returns {void}
32
42
  */
33
- once(name: string, fn: (...args: any[]) => void): void;
43
+ once<K extends keyof EventMap>(name: K, fn: EventCallback<EventMap[K]>): void;
34
44
  /**
35
45
  * Remove all registered events and subscriptions.
36
46
  */
37
47
  removeAllListeners(): void;
38
- #private;
39
48
  }
40
49
  //# sourceMappingURL=EventEmitter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/core/EventEmitter.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAGE;;;;;OAKG;IACH,SAJW,MAAM,MACN,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACtB,IAAI,CAMhB;IAED;;;;;OAKG;IACH,WAJW,MAAM,WACH,GAAG,EAAA,GACJ,IAAI,CAQhB;IAED;;;;;;OAMG;IACH,UAJW,MAAM,MACN,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACtB,IAAI,CAahB;IAED;;;;;OAKG;IACH,WAJW,MAAM,MACN,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACtB,IAAI,CAQhB;IAED;;OAEG;IACH,2BAEC;;CACF"}
1
+ {"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/core/EventEmitter.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,IAAI,SAAS,GAAG,EAAE,GAAG,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;AAEhF;;;GAGG;AACH,qBAAa,YAAY,CAAC,QAAQ,SAAS,eAAe,GAAG,eAAe;;IAG1E;;;;;OAKG;IACH,EAAE,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAM3E;;;;;OAKG;IACH,IAAI,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI;IAQnE;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAa7E;;;;;OAKG;IACH,IAAI,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAQ7E;;OAEG;IACH,kBAAkB,IAAI,IAAI;CAG3B"}
@@ -1,19 +1,33 @@
1
+ import type { MaybeGetter } from './utilities/callOrGet.js';
2
+ /**
3
+ * Base configuration for extensions.
4
+ */
5
+ export interface ExtensionConfig<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> {
6
+ /** The unique name of the extension */
7
+ name: string;
8
+ /** Function to define extension options */
9
+ addOptions?: MaybeGetter<Options>;
10
+ /** Function to define extension storage */
11
+ addStorage?: MaybeGetter<Storage>;
12
+ /** Additional config fields - use with caution */
13
+ [key: string]: unknown;
14
+ }
1
15
  /**
2
16
  * Extension class is used to create extensions.
17
+ * @template Options - Type for extension options
18
+ * @template Storage - Type for extension storage
3
19
  */
4
- export class Extension {
20
+ export declare class Extension<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> {
21
+ type: "extension";
22
+ name: string;
23
+ options: Options;
24
+ storage: Storage;
25
+ config: ExtensionConfig<Options, Storage>;
26
+ constructor(config: ExtensionConfig<Options, Storage>);
5
27
  /**
6
28
  * Static method for creating an extension.
7
- * @param args Arguments for the constructor.
29
+ * @param config Configuration for the extension.
8
30
  */
9
- static create(...args: any[]): Extension;
10
- constructor(config: any);
11
- type: string;
12
- name: string;
13
- options: any;
14
- storage: any;
15
- config: {
16
- name: string;
17
- };
31
+ static create<O extends Record<string, unknown> = Record<string, never>, S extends Record<string, unknown> = Record<string, never>>(config: ExtensionConfig<O, S>): Extension<O, S>;
18
32
  }
19
33
  //# sourceMappingURL=Extension.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Extension.d.ts","sourceRoot":"","sources":["../../../../src/core/Extension.js"],"names":[],"mappings":"AAGA;;GAEG;AACH;IAsCE;;;OAGG;IACH,yCAEC;IA/BD,yBAuBC;IAnCD,aAAmB;IAEnB,aAAmB;IAEnB,aAAQ;IAER,aAAQ;IAER;;MAEE;CAkCH"}
1
+ {"version":3,"file":"Extension.d.ts","sourceRoot":"","sources":["../../../../src/core/Extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D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C,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;CAGlD"}
@@ -29,7 +29,7 @@ export class ExtensionService {
29
29
  * Get all attributes defined in the extensions.
30
30
  * @returns Array of attributes.
31
31
  */
32
- get attributes(): any[];
32
+ get attributes(): import("./Attribute.js").ExtensionAttribute[];
33
33
  /**
34
34
  * Get all commands defined in the extensions.
35
35
  * @returns Object with commands (key - command name, value - function).
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionService.d.ts","sourceRoot":"","sources":["../../../../src/core/ExtensionService.js"],"names":[],"mappings":"AAUA;;GAEG;AACH;IA4BE;;;OAGG;IACH,gDAEC;IAED;;;;OAIG;IACH,mDAGC;IAED;;;;OAIG;IACH,4CASC;IAjDD,+DAeC;IAzBD,YAAO;IAEP,2DAAO;IAEP,gBAAW;IAEX,0BAAwB;IAExB,uBAAqB;IAqDrB;;;OAGG;IACH,wBAEC;IAED;;;OAGG;IACH,mBAsBC;IAED;;;;;OAKG;IACH,mBAuBC;IAED;;;;OAIG;IACH,qBAuDC;IAED;;;OAGG;IACH;;MA4CC;;CA6DF"}
1
+ {"version":3,"file":"ExtensionService.d.ts","sourceRoot":"","sources":["../../../../src/core/ExtensionService.js"],"names":[],"mappings":"AAUA;;GAEG;AACH;IA4BE;;;OAGG;IACH,gDAEC;IAED;;;;OAIG;IACH,mDAGC;IAED;;;;OAIG;IACH,4CASC;IAjDD,+DAeC;IAzBD,YAAO;IAEP,2DAAO;IAEP,gBAAW;IAEX,0BAAwB;IAExB,uBAAqB;IAqDrB;;;OAGG;IACH,gEAEC;IAED;;;OAGG;IACH,mBAsBC;IAED;;;;;OAKG;IACH,mBAuBC;IAED;;;;OAIG;IACH,qBAuDC;IAED;;;OAGG;IACH;;MA4CC;;CA6DF"}
@@ -1,20 +1,36 @@
1
+ import type { MaybeGetter } from './utilities/callOrGet.js';
2
+ /**
3
+ * Configuration for Mark extensions.
4
+ */
5
+ export interface MarkConfig<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> {
6
+ /** The unique name of the mark */
7
+ name: string;
8
+ /** Whether this mark is from an external package */
9
+ isExternal?: boolean;
10
+ /** Function to define mark options */
11
+ addOptions?: MaybeGetter<Options>;
12
+ /** Function to define mark storage */
13
+ addStorage?: MaybeGetter<Storage>;
14
+ /** Additional config fields - use with caution */
15
+ [key: string]: unknown;
16
+ }
1
17
  /**
2
18
  * Mark class is used to create Mark extensions.
19
+ * @template Options - Type for mark options
20
+ * @template Storage - Type for mark storage
3
21
  */
4
- export class Mark {
22
+ export declare class Mark<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> {
23
+ type: "mark";
24
+ name: string;
25
+ options: Options;
26
+ storage: Storage;
27
+ isExternal: boolean;
28
+ config: MarkConfig<Options, Storage>;
29
+ constructor(config: MarkConfig<Options, Storage>);
5
30
  /**
6
31
  * Static method for creating Mark extension.
7
- * @param args Arguments for the constructor.
32
+ * @param config Configuration for the mark.
8
33
  */
9
- static create(...args: any[]): Mark;
10
- constructor(config: any);
11
- type: string;
12
- name: string;
13
- options: any;
14
- storage: any;
15
- isExternal: boolean;
16
- config: {
17
- name: string;
18
- };
34
+ static create<O extends Record<string, unknown> = Record<string, never>, S extends Record<string, unknown> = Record<string, never>>(config: MarkConfig<O, S>): Mark<O, S>;
19
35
  }
20
36
  //# sourceMappingURL=Mark.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Mark.d.ts","sourceRoot":"","sources":["../../../../src/core/Mark.js"],"names":[],"mappings":"AAGA;;GAEG;AACH;IA0CE;;;OAGG;IACH,oCAEC;IAjCD,yBAyBC;IAvCD,aAAc;IAEd,aAAc;IAEd,aAAQ;IAER,aAAQ;IAER,oBAAW;IAEX;;MAEE;CAoCH"}
1
+ {"version":3,"file":"Mark.d.ts","sourceRoot":"","sources":["../../../../src/core/Mark.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC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M,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;CAGxC"}
@@ -1,30 +1,92 @@
1
- export class Node {
1
+ import type { MaybeGetter } from './utilities/callOrGet.js';
2
+ import type { NodeType, ParseRule, DOMOutputSpec } from 'prosemirror-model';
3
+ import type { Plugin } from 'prosemirror-state';
4
+ import type { InputRule } from './InputRule.js';
5
+ import type { NodeView } from 'prosemirror-view';
6
+ import type { Editor } from './Editor.js';
7
+ import type { Command } from './types/ChainedCommands.js';
8
+ import type { AttributeSpec } from './Attribute.js';
9
+ /**
10
+ * Configuration for Node extensions.
11
+ */
12
+ export interface NodeConfig<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> {
13
+ /** The node name */
14
+ name: string;
15
+ /** The node group */
16
+ group?: string;
17
+ /** The node options */
18
+ options?: Options;
19
+ /** Whether the node is an atom node */
20
+ atom?: boolean;
21
+ /** Whether the node is draggable */
22
+ draggable?: boolean;
23
+ /** Whether the node is isolating */
24
+ isolating?: boolean;
25
+ /** Whether the node is defining */
26
+ defining?: boolean;
27
+ /** Whether the node is a top-level node */
28
+ topNode?: boolean;
29
+ /** The role of the node in a table */
30
+ tableRole?: string;
31
+ /** ProseMirror string for what content this node accepts */
32
+ content?: MaybeGetter<string, []>;
33
+ /** The marks applied to this node */
34
+ marks?: string;
35
+ /** Whether the node is an inline node */
36
+ inline?: boolean;
37
+ /** Whether the node is selectable */
38
+ selectable?: boolean;
39
+ /** The ProseMirror node type (set at runtime) */
40
+ type?: NodeType;
41
+ /** The editor instance (set at runtime) */
42
+ editor?: Editor;
43
+ /** The DOM parsing rules */
44
+ parseDOM?: MaybeGetter<ParseRule[]>;
45
+ /** The DOM rendering function - returns a DOMOutputSpec (allows mutable arrays for JS compatibility) */
46
+ renderDOM?: MaybeGetter<DOMOutputSpec | any[]>;
47
+ /** Function or object to add options to the node */
48
+ addOptions?: MaybeGetter<Options>;
49
+ /** Function or object to add storage to the node */
50
+ addStorage?: MaybeGetter<Storage>;
51
+ /** Function or object to add attributes to the node */
52
+ addAttributes?: MaybeGetter<Record<string, Partial<AttributeSpec>>>;
53
+ /** Function or object to add commands to the node */
54
+ addCommands?: MaybeGetter<Record<string, Command>>;
55
+ /** Function or object to add helpers to the node */
56
+ addHelpers?: MaybeGetter<Record<string, (...args: unknown[]) => unknown>>;
57
+ /** Function or object to add shortcuts to the node */
58
+ addShortcuts?: MaybeGetter<Record<string, Command>>;
59
+ /** Function or object to add input rules to the node */
60
+ addInputRules?: MaybeGetter<InputRule[]>;
61
+ /** Function to add a custom node view to the node */
62
+ addNodeView?: MaybeGetter<(props: any) => NodeView | null>;
63
+ /** Function to add ProseMirror plugins to the node */
64
+ addPmPlugins?: MaybeGetter<Plugin[]>;
65
+ /** Function to extend the ProseMirror node schema */
66
+ extendNodeSchema?: MaybeGetter<Record<string, any>>;
67
+ /** Additional config fields - use with caution */
68
+ [key: string]: unknown;
69
+ }
70
+ /**
71
+ * Node class is used to create Node extensions.
72
+ * @template Options - Type for node options
73
+ * @template Storage - Type for node storage
74
+ */
75
+ export declare class Node<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> {
76
+ type: NodeType | string;
77
+ name: string;
78
+ options: Options;
79
+ group: string | undefined;
80
+ atom: boolean | undefined;
81
+ editor: Editor | undefined;
82
+ storage: Storage;
83
+ config: NodeConfig<Options, Storage>;
84
+ constructor(config: NodeConfig<Options, Storage>);
2
85
  /**
3
86
  * Factory method to construct a new Node extension.
4
- *
5
- * @param {import('./types/index.js').EditorNodeConfig} config - The node configuration.
6
- * @returns {Node} A new Node instance.
87
+ * @param config - The node configuration.
88
+ * @returns A new Node instance.
7
89
  */
8
- static create(config: import("./types/index.js").EditorNodeConfig): Node;
9
- /**
10
- * @param {import('./types/index.js').EditorNodeConfig} config
11
- */
12
- constructor(config: import("./types/index.js").EditorNodeConfig);
13
- /** @type {import('prosemirror-model').NodeType | String} */
14
- type: import("prosemirror-model").NodeType | string;
15
- /** @type {string} */
16
- name: string;
17
- /** @type {import('./types/index.js').EditorNodeOptions} */
18
- options: import("./types/index.js").EditorNodeOptions;
19
- /** @type {string} */
20
- group: string;
21
- /** @type {boolean} */
22
- atom: boolean;
23
- /** @type {import('./Editor.js').Editor} */
24
- editor: import("./Editor.js").Editor;
25
- /** @type {import('./types/index.js').EditorNodeStorage} */
26
- storage: import("./types/index.js").EditorNodeStorage;
27
- /** @type {import('./types/index.js').EditorNodeConfig} */
28
- config: import("./types/index.js").EditorNodeConfig;
90
+ static create<O extends Record<string, unknown> = Record<string, never>, S extends Record<string, unknown> = Record<string, never>>(config: NodeConfig<O, S>): Node<O, S>;
29
91
  }
30
92
  //# sourceMappingURL=Node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../../../src/core/Node.js"],"names":[],"mappings":"AAIA;IAwDE;;;;;OAKG;IACH,sBAHW,OAAO,kBAAkB,EAAE,gBAAgB,GACzC,IAAI,CAIhB;IArCD;;OAEG;IACH,oBAFW,OAAO,kBAAkB,EAAE,gBAAgB,EA0BrD;IArDD,4DAA4D;IAC5D,MADW,OAAO,mBAAmB,EAAE,QAAQ,SAAS,CAC1C;IAEd,qBAAqB;IACrB,MADW,MAAM,CACH;IAEd,2DAA2D;IAC3D,SADW,OAAO,kBAAkB,EAAE,iBAAiB,CAC/C;IAER,qBAAqB;IACrB,OADW,MAAM,CACX;IAEN,sBAAsB;IACtB,MADW,OAAO,CACb;IAEL,2CAA2C;IAC3C,QADW,OAAO,aAAa,EAAE,MAAM,CAChC;IAEP,2DAA2D;IAC3D,SADW,OAAO,kBAAkB,EAAE,iBAAiB,CAC/C;IAER,0DAA0D;IAC1D,QADW,OAAO,kBAAkB,EAAE,gBAAgB,CAGpD;CAwCH"}
1
+ {"version":3,"file":"Node.d.ts","sourceRoot":"","sources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,20 +1,27 @@
1
+ import { Node } from './Node.js';
2
+ import type { NodeConfig } from './Node.js';
3
+ /**
4
+ * Configuration for OXML Node extensions (extends NodeConfig)
5
+ */
6
+ export interface OxmlNodeConfig<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> extends NodeConfig<Options, Storage> {
7
+ /** The OXML element name */
8
+ oXmlName: string;
9
+ /** Child attributes to extract */
10
+ childToAttributes?: string[];
11
+ }
1
12
  /**
2
- * @type {import('./types/index.js').OxmlNode}
13
+ * OxmlNode class extends Node with OXML-specific properties.
14
+ * @template Options - Type for node options
15
+ * @template Storage - Type for node storage
3
16
  */
4
- export class OxmlNode extends Node {
17
+ export declare class OxmlNode<Options extends Record<string, unknown> = Record<string, never>, Storage extends Record<string, unknown> = Record<string, never>> extends Node<Options, Storage> {
18
+ oXmlName: string;
19
+ constructor(config: OxmlNodeConfig<Options, Storage>);
5
20
  /**
6
21
  * Factory method to construct a new OxmlNode instance.
7
- *
8
- * @param {import('./types/index.js').OxmlNodeConfig} config
9
- * @returns {OxmlNode} A new OxmlNode instance.
10
- */
11
- static create(config: import("./types/index.js").OxmlNodeConfig): OxmlNode;
12
- /**
13
- * @param {import('./types/index.js').OxmlNodeConfig} config
22
+ * @param config - The OXML node configuration.
23
+ * @returns A new OxmlNode instance.
14
24
  */
15
- constructor(config: import("./types/index.js").OxmlNodeConfig);
16
- /** @type {string} */
17
- oXmlName: string;
25
+ static create<O extends Record<string, unknown> = Record<string, never>, S extends Record<string, unknown> = Record<string, never>>(config: OxmlNodeConfig<O, S>): OxmlNode<O, S>;
18
26
  }
19
- import { Node } from './Node.js';
20
27
  //# sourceMappingURL=OxmlNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OxmlNode.d.ts","sourceRoot":"","sources":["../../../../src/core/OxmlNode.js"],"names":[],"mappings":"AAGA;;GAEG;AACH;IAYE;;;;;OAKG;IACH,sBAHW,OAAO,kBAAkB,EAAE,cAAc,GACvC,QAA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,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAChI,MAAM,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3B,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;CAGlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/core/Schema.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;;;;OAKG;IACH,wFASC;IAED;;;;;;OAMG;IACH;;MA0EC;IAED;;;;;;OAMG;IACH;;MA6CC;CACF;mCAnKkC,mBAAmB"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/core/Schema.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;;;;OAKG;IACH,wFASC;IAED;;;;;;OAMG;IACH;;MA2EC;IAED;;;;;;OAMG;IACH;;MA6CC;CACF;mCApKkC,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"changeListLevel.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/changeListLevel.js"],"names":[],"mappings":"AAwGA;;;;;;;;GAQG;AACH,kEANW;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,iBACtC,OAAO,mBAAmB,EAAE,IAAI,OAChC,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,MAC1B,OAAO,mBAAmB,EAAE,WAAW,QAuCjD;AAzIM,uCALI,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,MAC1B,OAAO,mBAAmB,EAAE,WAAW,GACrC,OAAO,CA2FnB"}
1
+ {"version":3,"file":"changeListLevel.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/changeListLevel.js"],"names":[],"mappings":"AAwGA;;;;;;;;GAQG;AACH,kEANW;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,iBACtC,OAAO,mBAAmB,EAAE,IAAI,OAChC,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,MAC1B,OAAO,mBAAmB,EAAE,WAAW,QA0BjD;AA5HM,uCALI,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,MAC1B,OAAO,mBAAmB,EAAE,WAAW,GACrC,OAAO,CA2FnB"}
@@ -31,6 +31,8 @@ export * from "./selectTextblockEnd.js";
31
31
  export * from "./insertContent.js";
32
32
  export * from "./insertContentAt.js";
33
33
  export * from "./undoInputRule.js";
34
+ export * from "./textIndent.js";
35
+ export * from "./lineHeight.js";
34
36
  export * from "./toggleList.js";
35
37
  export * from "./increaseListIndent.js";
36
38
  export * from "./decreaseListIndent.js";
@@ -0,0 +1,7 @@
1
+ export function setLineHeight(lineHeight: number): ({ commands }: {
2
+ commands: any;
3
+ }) => any;
4
+ export function unsetLineHeight(): ({ commands }: {
5
+ commands: any;
6
+ }) => any;
7
+ //# sourceMappingURL=lineHeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lineHeight.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/lineHeight.js"],"names":[],"mappings":"AASO,0CAJI,MAAM,IAMd;;CAAY,SAMZ;AASI,oCAEJ;;CAAY,SAMZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-list.d.ts","sourceRoot":"","sources":["../../../../../../src/core/commands/list-helpers/is-list.js"],"names":[],"mappings":"AAKO,mCAFM,OAAO,CAGuF"}
1
+ {"version":3,"file":"is-list.d.ts","sourceRoot":"","sources":["../../../../../../src/core/commands/list-helpers/is-list.js"],"names":[],"mappings":"AAMO,mCAFM,OAAO,CAMO"}
@@ -1 +1 @@
1
- {"version":3,"file":"removeNumberingProperties.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/removeNumberingProperties.js"],"names":[],"mappings":"AAMO;;KAEJ,UAAK,SA0BL"}
1
+ {"version":3,"file":"removeNumberingProperties.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/removeNumberingProperties.js"],"names":[],"mappings":"AAOO;;KAEJ,UAAK,SA0BL"}
@@ -1 +1 @@
1
- {"version":3,"file":"resetAttributes.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/resetAttributes.js"],"names":[],"mappings":"AAUO,4CAHI,GAAC,SACD,GAAC,IAIT;;;;CAAuB,aAqCvB"}
1
+ {"version":3,"file":"resetAttributes.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/resetAttributes.js"],"names":[],"mappings":"AAUO,4CAHI,GAAC,SACD,GAAC,IAIT;;;;CAAuB,aAsCvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"restartNumbering.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/restartNumbering.js"],"names":[],"mappings":"AAKO;;;;;YA8CN"}
1
+ {"version":3,"file":"restartNumbering.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/restartNumbering.js"],"names":[],"mappings":"AAMO;;;;;YAgDN"}
@@ -0,0 +1,5 @@
1
+ export function increaseTextIndent(): Function;
2
+ export function decreaseTextIndent(): Function;
3
+ export function setTextIndentation(points: number): Function;
4
+ export function unsetTextIndentation(): Function;
5
+ //# sourceMappingURL=textIndent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textIndent.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/textIndent.js"],"names":[],"mappings":"AAcO,+CAA8F;AAW9F,+CAA+F;AAY/F,2CAPI,MAAM,YAOuE;AAUjF,iDAAgE"}
@@ -1 +1 @@
1
- {"version":3,"file":"toggleList.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/toggleList.js"],"names":[],"mappings":"AAIO,4CAEJ;;;;;CAA+B,aAmF/B"}
1
+ {"version":3,"file":"toggleList.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/toggleList.js"],"names":[],"mappings":"AAKO,4CAEJ;;;;;CAA+B,aA4F/B"}
@@ -1,90 +1,12 @@
1
- export type CommandServiceOptions = {
2
- /**
3
- * - The editor instance
4
- */
5
- editor: import("../../Editor.js").Editor;
6
- };
7
- /**
8
- * Core editor commands available on all instances
9
- */
10
- export type CoreCommands = {
11
- /**
12
- * - Focus the editor
13
- */
14
- focus: () => boolean;
15
- /**
16
- * - Blur the editor
17
- */
18
- blur: () => boolean;
19
- };
20
- /**
21
- * Commands added by extensions - will be populated by individual extensions
22
- */
23
- export type ExtensionCommands = any;
24
- /**
25
- * All available editor commands
26
- */
27
- export type EditorCommands = CoreCommands & ExtensionCommands;
28
- /**
29
- * A chainable version of an editor command.
30
- */
31
- export type ChainedCommand = (...args: any[]) => ChainableCommandObject;
32
- /**
33
- * Chainable command object returned by `createChain`.
34
- * Has dynamic keys (one per command) and a `run()` method.
35
- */
36
- export type ChainableCommandObject = {
37
- run: () => boolean;
38
- } & Record<string, ChainedCommand>;
39
- export type CanCommand = (...args: any[]) => boolean;
40
- export type CanCommands = {
41
- [x: string]: CanCommand;
42
- };
43
- /**
44
- * Object returned by `createCan`: dynamic boolean commands + a `chain()` helper.
45
- */
46
- export type CanObject = Record<string, CanCommand> & {
47
- chain: () => ChainableCommandObject;
48
- };
49
- /**
50
- * Command props made available to every command handler.
51
- */
52
- export type CommandProps = {
53
- /**
54
- * - The editor instance
55
- */
56
- editor: import("../../Editor.js").Editor;
57
- /**
58
- * - The ProseMirror transaction
59
- */
60
- tr: import("prosemirror-state").Transaction;
61
- /**
62
- * - The current editor state
63
- */
64
- state: import("prosemirror-state").EditorState;
65
- /**
66
- * - The active editor view
67
- */
68
- view: import("prosemirror-view").EditorView;
69
- /**
70
- * - Optional dispatcher
71
- */
72
- dispatch?: (tr: import("prosemirror-state").Transaction) => void;
73
- /**
74
- * - Helper to build command chains
75
- */
76
- chain: () => ChainableCommandObject;
77
- /**
78
- * - Helper to check command availability
79
- */
80
- can: () => CanObject;
81
- /**
82
- * - Lazy command map bound to current props
83
- */
84
- commands: EditorCommands;
85
- };
86
- /**
87
- * A command handler invoked by the command service.
88
- */
89
- export type Command = (props: CommandProps) => boolean;
1
+ export type CommandServiceOptions = import("../../types/ChainedCommands.js").CommandServiceOptions;
2
+ export type CoreCommands = import("../../types/ChainedCommands.js").CoreCommands;
3
+ export type ExtensionCommands = import("../../types/ChainedCommands.js").ExtensionCommands;
4
+ export type EditorCommands = import("../../types/ChainedCommands.js").EditorCommands;
5
+ export type ChainedCommand = import("../../types/ChainedCommands.js").ChainedCommand;
6
+ export type ChainableCommandObject = import("../../types/ChainedCommands.js").ChainableCommandObject;
7
+ export type CanCommand = import("../../types/ChainedCommands.js").CanCommand;
8
+ export type CanCommands = import("../../types/ChainedCommands.js").CanCommands;
9
+ export type CanObject = import("../../types/ChainedCommands.js").CanObject;
10
+ export type CommandProps = import("../../types/ChainedCommands.js").CommandProps;
11
+ export type Command = import("../../types/ChainedCommands.js").Command;
90
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/commands/types/index.js"],"names":[],"mappings":";;;;YAEc,OAAO,iBAAiB,EAAE,MAAM;;;;;;;;;WAMhC,MAAM,OAAO;;;;UACb,MAAM,OAAO;;;;;;;;;6BAUd,YAAY,GAAG,iBAAiB;;;;uCAM/B,GAAG,EAAA,KACJ,sBAAsB;;;;;qCAMtB;IAAE,GAAG,EAAE,MAAM,OAAO,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;yBAIvD,CAAC,GAAG,IAAI,EAAC,GAAG,EAAE,KAAK,OAAO;;;;;;;wBAS1B,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;CAAE;;;;;;;;YAMnE,OAAO,iBAAiB,EAAE,MAAM;;;;QAChC,OAAO,mBAAmB,EAAE,WAAW;;;;WACvC,OAAO,mBAAmB,EAAE,WAAW;;;;UACvC,OAAO,kBAAkB,EAAE,UAAU;;;;eACrC,CAAC,EAAE,EAAE,OAAO,mBAAmB,EAAE,WAAW,KAAK,IAAI;;;;WACrD,MAAM,sBAAsB;;;;SAC5B,MAAM,SAAS;;;;cACf,cAAc;;;;;sBAKf,CAAC,KAAK,EAAE,YAAY,KAAK,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/commands/types/index.js"],"names":[],"mappings":"oCAMa,OAAO,gCAAgC,EAAE,qBAAqB;2BAI9D,OAAO,gCAAgC,EAAE,YAAY;gCAIrD,OAAO,gCAAgC,EAAE,iBAAiB;6BAI1D,OAAO,gCAAgC,EAAE,cAAc;6BAIvD,OAAO,gCAAgC,EAAE,cAAc;qCAIvD,OAAO,gCAAgC,EAAE,sBAAsB;yBAI/D,OAAO,gCAAgC,EAAE,UAAU;0BAInD,OAAO,gCAAgC,EAAE,WAAW;wBAIpD,OAAO,gCAAgC,EAAE,SAAS;2BAIlD,OAAO,gCAAgC,EAAE,YAAY;sBAIrD,OAAO,gCAAgC,EAAE,OAAO"}
@@ -1,6 +1,6 @@
1
- export function updateAttributes(typeOrName: any, attrs?: {}): ({ tr, state, dispatch }: {
2
- tr: any;
3
- state: any;
4
- dispatch: any;
1
+ export function updateAttributes(typeOrName: any | any | string, attrs?: Record<string, any>): (params: {
2
+ tr: import("prosemirror-state").Transaction;
3
+ state: import("prosemirror-state").EditorState;
4
+ dispatch?: (tr: import("prosemirror-state").Transaction) => void;
5
5
  }) => boolean;
6
6
  //# sourceMappingURL=updateAttributes.d.ts.map