superdoc 0.31.0-next.1 → 0.31.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/chunks/{PdfViewer-CSZtzevK.cjs → PdfViewer-DoOKSkNf.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-DYfpBL2P.es.js → PdfViewer-UMfEMyPR.es.js} +1 -1
  3. package/dist/chunks/{index-0zP7LFOd-CQ5IRTwG.es.js → index-B74saKaW-CeHVjvs8.es.js} +1 -1
  4. package/dist/chunks/{index-0zP7LFOd-PDPveafF.cjs → index-B74saKaW-nw0M-3t9.cjs} +1 -1
  5. package/dist/chunks/{index-9j37gBmK.cjs → index-CjrYy0l4.cjs} +3 -3
  6. package/dist/chunks/{index-BiYSI2c3.es.js → index-D78pvKjo.es.js} +3 -3
  7. package/dist/chunks/{super-editor.es-BzhuUuJx.es.js → super-editor.es-CQFVPho1.es.js} +199 -255
  8. package/dist/chunks/{super-editor.es-D8j9E-4h.cjs → super-editor.es-DTqtLZgT.cjs} +199 -255
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts +132 -52
  10. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  11. package/dist/packages/superdoc/src/core/types/index.d.ts +132 -52
  12. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  13. package/dist/super-editor/ai-writer.es.js +2 -2
  14. package/dist/super-editor/chunks/{converter-B3mE6WPB.js → converter-BdxQSBuI.js} +10 -7
  15. package/dist/super-editor/chunks/{docx-zipper-FgUekv4g.js → docx-zipper-CeENQy4K.js} +1 -1
  16. package/dist/super-editor/chunks/{editor-B0PiO07g.js → editor-fHPBoGEW.js} +203 -326
  17. package/dist/super-editor/chunks/{index-0zP7LFOd.js → index-B74saKaW.js} +1 -1
  18. package/dist/super-editor/chunks/{toolbar-Bj9E8rmT.js → toolbar-DVn2P_6q.js} +2 -2
  19. package/dist/super-editor/converter.es.js +1 -1
  20. package/dist/super-editor/docx-zipper.es.js +2 -2
  21. package/dist/super-editor/editor.es.js +3 -3
  22. package/dist/super-editor/file-zipper.es.js +1 -1
  23. package/dist/super-editor/super-editor/src/core/Attribute.d.ts +75 -29
  24. package/dist/super-editor/super-editor/src/core/Attribute.d.ts.map +1 -1
  25. package/dist/super-editor/super-editor/src/core/CommandService.d.ts +1 -1
  26. package/dist/super-editor/super-editor/src/core/CommandService.d.ts.map +1 -1
  27. package/dist/super-editor/super-editor/src/core/Editor.d.ts +136 -673
  28. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  29. package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts +23 -14
  30. package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts.map +1 -1
  31. package/dist/super-editor/super-editor/src/core/Extension.d.ts +25 -11
  32. package/dist/super-editor/super-editor/src/core/Extension.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts +1 -1
  34. package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts.map +1 -1
  35. package/dist/super-editor/super-editor/src/core/Mark.d.ts +28 -12
  36. package/dist/super-editor/super-editor/src/core/Mark.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor/src/core/Node.d.ts +87 -25
  38. package/dist/super-editor/super-editor/src/core/Node.d.ts.map +1 -1
  39. package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts +20 -13
  40. package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts.map +1 -1
  41. package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts +11 -89
  42. package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts.map +1 -1
  43. package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts +1 -1
  44. package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts.map +1 -1
  45. package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts +1 -1
  46. package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts.map +1 -1
  47. package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts +1 -1
  48. package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts.map +1 -1
  49. package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts +1 -1
  50. package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts.map +1 -1
  51. package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts +3 -2
  52. package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts.map +1 -1
  53. package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts +12 -5
  54. package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts.map +1 -1
  55. package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts +1 -1
  56. package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts.map +1 -1
  57. package/dist/super-editor/super-editor/src/core/helpers/list-numbering-helpers.d.ts.map +1 -1
  58. package/dist/super-editor/super-editor/src/core/index.d.ts +18 -13
  59. package/dist/super-editor/super-editor/src/core/index.d.ts.map +1 -1
  60. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +1 -1
  61. package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts +118 -0
  62. package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts.map +1 -0
  63. package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts +265 -0
  64. package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts.map +1 -0
  65. package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts +144 -0
  66. package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts.map +1 -0
  67. package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts +73 -0
  68. package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts.map +1 -0
  69. package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts +2 -0
  70. package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts.map +1 -0
  71. package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts +6 -2
  72. package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts.map +1 -1
  73. package/dist/super-editor/super-editor/src/core/utilities/isIOS.d.ts.map +1 -1
  74. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts +8 -2
  75. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
  76. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts +7 -1
  77. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
  78. package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts +1 -1
  79. package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts.map +1 -1
  80. package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts +1 -1
  81. package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts.map +1 -1
  82. package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts +3 -1
  83. package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts.map +1 -1
  84. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +1 -1
  85. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts.map +1 -1
  86. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts +1 -1
  87. package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts.map +1 -1
  88. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts +6 -1
  89. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts.map +1 -1
  90. package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts +9 -1
  91. package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts.map +1 -1
  92. package/dist/super-editor/super-editor/src/extensions/color/color.d.ts +3 -1
  93. package/dist/super-editor/super-editor/src/extensions/color/color.d.ts.map +1 -1
  94. package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts +18 -3
  95. package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts.map +1 -1
  96. package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts +5 -1
  97. package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts.map +1 -1
  98. package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +1 -1
  99. package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts.map +1 -1
  100. package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts +1 -1
  101. package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts.map +1 -1
  102. package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts +1 -1
  103. package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts.map +1 -1
  104. package/dist/super-editor/super-editor/src/extensions/document/document.d.ts +1 -1
  105. package/dist/super-editor/super-editor/src/extensions/document/document.d.ts.map +1 -1
  106. package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts +5 -1
  107. package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts.map +1 -1
  108. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts +1 -1
  109. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  110. package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts +3 -1
  111. package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts.map +1 -1
  112. package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts +9 -1
  113. package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts.map +1 -1
  114. package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts +7 -1
  115. package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts.map +1 -1
  116. package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts +1 -1
  117. package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts.map +1 -1
  118. package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts +3 -1
  119. package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts.map +1 -1
  120. package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts +3 -1
  121. package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts.map +1 -1
  122. package/dist/super-editor/super-editor/src/extensions/history/history.d.ts +4 -1
  123. package/dist/super-editor/super-editor/src/extensions/history/history.d.ts.map +1 -1
  124. package/dist/super-editor/super-editor/src/extensions/image/image.d.ts +1 -1
  125. package/dist/super-editor/super-editor/src/extensions/image/image.d.ts.map +1 -1
  126. package/dist/super-editor/super-editor/src/extensions/index.d.ts +22 -2
  127. package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
  128. package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts +3 -1
  129. package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts.map +1 -1
  130. package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts +2 -2
  131. package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts.map +1 -1
  132. package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts +6 -1
  133. package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts.map +1 -1
  134. package/dist/super-editor/super-editor/src/extensions/link/link.d.ts +9 -1
  135. package/dist/super-editor/super-editor/src/extensions/link/link.d.ts.map +1 -1
  136. package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts +1 -1
  137. package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  138. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts +6 -1
  139. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
  140. package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts +1 -1
  141. package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts.map +1 -1
  142. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts +2 -2
  143. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
  144. package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts +8 -1
  145. package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts.map +1 -1
  146. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts +5 -1
  147. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
  148. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts +1 -1
  149. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  150. package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts +3 -1
  151. package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts.map +1 -1
  152. package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +1 -1
  153. package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts.map +1 -1
  154. package/dist/super-editor/super-editor/src/extensions/run/run.d.ts +1 -1
  155. package/dist/super-editor/super-editor/src/extensions/run/run.d.ts.map +1 -1
  156. package/dist/super-editor/super-editor/src/extensions/search/search.d.ts +1 -1
  157. package/dist/super-editor/super-editor/src/extensions/search/search.d.ts.map +1 -1
  158. package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts +6 -1
  159. package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts.map +1 -1
  160. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +1 -1
  161. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -1
  162. package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +6 -1
  163. package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts.map +1 -1
  164. package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts +1 -1
  165. package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts.map +1 -1
  166. package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts +3 -1
  167. package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts.map +1 -1
  168. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts +6 -1
  169. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
  170. package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts +1 -1
  171. package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts.map +1 -1
  172. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +6 -1
  173. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts.map +1 -1
  174. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +1 -1
  175. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
  176. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +6 -1
  177. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts.map +1 -1
  178. package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts +6 -1
  179. package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts.map +1 -1
  180. package/dist/super-editor/super-editor/src/extensions/table/table.d.ts +1 -1
  181. package/dist/super-editor/super-editor/src/extensions/table/table.d.ts.map +1 -1
  182. package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts +5 -1
  183. package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts.map +1 -1
  184. package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts +5 -1
  185. package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts.map +1 -1
  186. package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts +6 -1
  187. package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts.map +1 -1
  188. package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts +5 -1
  189. package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts.map +1 -1
  190. package/dist/super-editor/super-editor/src/extensions/text/text.d.ts +1 -1
  191. package/dist/super-editor/super-editor/src/extensions/text/text.d.ts.map +1 -1
  192. package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts +4 -1
  193. package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts.map +1 -1
  194. package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts +7 -1
  195. package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts.map +1 -1
  196. package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts +3 -1
  197. package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts.map +1 -1
  198. package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts +3 -1
  199. package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts.map +1 -1
  200. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +132 -52
  201. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  202. package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts +1 -1
  203. package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts.map +1 -1
  204. package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts +5 -1
  205. package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts.map +1 -1
  206. package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts +5 -1
  207. package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts.map +1 -1
  208. package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts +5 -1
  209. package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts.map +1 -1
  210. package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +5 -1
  211. package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts.map +1 -1
  212. package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts +40 -0
  213. package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts.map +1 -0
  214. package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts +57 -0
  215. package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts.map +1 -0
  216. package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts +83 -0
  217. package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts.map +1 -0
  218. package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts +3 -1
  219. package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts.map +1 -1
  220. package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts +1 -1
  221. package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts.map +1 -1
  222. package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts +1 -1
  223. package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  224. package/dist/super-editor/super-editor.es.js +6 -6
  225. package/dist/super-editor/toolbar.es.js +2 -2
  226. package/dist/super-editor.cjs +1 -1
  227. package/dist/super-editor.es.js +1 -1
  228. package/dist/superdoc.cjs +2 -2
  229. package/dist/superdoc.es.js +2 -2
  230. package/dist/superdoc.umd.js +201 -257
  231. package/dist/superdoc.umd.js.map +1 -1
  232. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { aF as getDefaultExportFromCjs } from "./converter-B3mE6WPB.js";
1
+ import { aF as getDefaultExportFromCjs } from "./converter-BdxQSBuI.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-BdxQSBuI.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-fHPBoGEW.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 { a7 } from "./chunks/converter-BdxQSBuI.js";
2
2
  export {
3
3
  a7 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-BdxQSBuI.js";
2
+ import { D } from "./chunks/docx-zipper-CeENQy4K.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-fHPBoGEW.js";
2
+ import "./chunks/converter-BdxQSBuI.js";
3
+ import "./chunks/docx-zipper-CeENQy4K.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-CeENQy4K.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -1,50 +1,98 @@
1
+ import type { Node as PmNode, Mark as PmMark, MarkType, NodeType, ParseRule as PmParseRule } 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;IA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M,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAChE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;IAqCjC;;;;;;OAMG;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"}