superdoc 0.31.0-next.1 → 0.31.0-next.10
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.
- package/dist/chunks/{PdfViewer-DYfpBL2P.es.js → PdfViewer-Ck2UtdkO.es.js} +2 -2
- package/dist/chunks/{PdfViewer-CSZtzevK.cjs → PdfViewer-CxLHqmsp.cjs} +2 -2
- package/dist/chunks/{eventemitter3-hYlnBzSA.es.js → eventemitter3-BZXKb7j7.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DmHNHvFX.cjs → eventemitter3-CFCpOk3d.cjs} +1 -1
- package/dist/chunks/{index-BiYSI2c3.es.js → index-S2kR904m.es.js} +6 -6
- package/dist/chunks/{index-0zP7LFOd-CQ5IRTwG.es.js → index-TPvf306Z-DLAdtd9g.es.js} +1 -1
- package/dist/chunks/{index-0zP7LFOd-PDPveafF.cjs → index-TPvf306Z-Dymhw354.cjs} +1 -1
- package/dist/chunks/{index-9j37gBmK.cjs → index-qZtf9OYt.cjs} +6 -6
- package/dist/chunks/{jszip-BP2FTbpi.cjs → jszip-B99MTu59.cjs} +1 -1
- package/dist/chunks/{jszip-jKrsZoMS.es.js → jszip-Duxs2YMV.es.js} +1 -1
- package/dist/chunks/{super-editor.es-BzhuUuJx.es.js → super-editor.es-CNPHD-mt.es.js} +2310 -1997
- package/dist/chunks/{super-editor.es-D8j9E-4h.cjs → super-editor.es-d0fSEchl.cjs} +2357 -2044
- package/dist/chunks/{vue-Cwv-wUpm.cjs → vue-ARQSyfaw.cjs} +2401 -2360
- package/dist/chunks/{vue-CKmzTNVs.es.js → vue-B5QAf5pA.es.js} +2401 -2360
- package/dist/chunks/xml-js-CVyfrKaV.es.js +2 -0
- package/dist/chunks/xml-js-DQa4Ye5C.cjs +3 -0
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts +140 -52
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts +140 -52
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/style.css +12 -9
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-B3mE6WPB.js → converter-CuN7BQ8r.js} +1452 -1348
- package/dist/super-editor/chunks/{docx-zipper-FgUekv4g.js → docx-zipper-DvU3g1QE.js} +1 -1
- package/dist/super-editor/chunks/{editor-B0PiO07g.js → editor-CJUnMzXV.js} +604 -459
- package/dist/super-editor/chunks/{index-0zP7LFOd.js → index-TPvf306Z.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-Bj9E8rmT.js → toolbar-_AUH-ukY.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +12 -9
- package/dist/super-editor/super-editor/src/core/Attribute.d.ts +75 -29
- package/dist/super-editor/super-editor/src/core/Attribute.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/CommandService.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/CommandService.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Editor.d.ts +145 -673
- package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts +23 -14
- package/dist/super-editor/super-editor/src/core/EventEmitter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Extension.d.ts +25 -11
- package/dist/super-editor/super-editor/src/core/Extension.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/ExtensionService.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Mark.d.ts +28 -12
- package/dist/super-editor/super-editor/src/core/Mark.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Node.d.ts +87 -25
- package/dist/super-editor/super-editor/src/core/Node.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts +20 -13
- package/dist/super-editor/super-editor/src/core/OxmlNode.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Schema.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts +11 -89
- package/dist/super-editor/super-editor/src/core/commands/types/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/commands.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/editorFocus.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/keymap.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts +3 -2
- package/dist/super-editor/super-editor/src/core/helpers/annotator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts +12 -5
- package/dist/super-editor/super-editor/src/core/helpers/getExtensionConfigField.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/helpers/isList.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/helpers/list-numbering-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/index.d.ts +18 -13
- package/dist/super-editor/super-editor/src/core/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/schema-summary.d.ts +4 -0
- package/dist/super-editor/super-editor/src/core/schema-summary.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +0 -48
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts +2 -1
- package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/autoPageNumber-translator.d.ts +8 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/autoPageNumber-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/autoPageNumber/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/totalPageNumber-translator.d.ts +8 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/sd/totalPageNumber/totalPageNumber-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/generate-paragraph-properties.d.ts +8 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/generate-paragraph-properties.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/translate-paragraph-node.d.ts +8 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/translate-paragraph-node.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/convert-sdt-content-to-runs.d.ts +7 -0
- 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
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/helpers/translate-text-node.d.ts +5 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/t/helpers/translate-text-node.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +14 -10
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts +118 -0
- package/dist/super-editor/super-editor/src/core/types/ChainedCommands.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts +265 -0
- package/dist/super-editor/super-editor/src/core/types/EditorConfig.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts +144 -0
- package/dist/super-editor/super-editor/src/core/types/EditorEvents.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts +35 -0
- package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts +73 -0
- package/dist/super-editor/super-editor/src/core/types/EditorTypes.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/types/__tests__/command-types.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts +6 -2
- package/dist/super-editor/super-editor/src/core/utilities/callOrGet.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/utilities/isIOS.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts +8 -2
- package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts +7 -1
- package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/ai/ai-plugin.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/block-node/block-node.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/bold/bold.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-end.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/bookmarks/bookmark-start.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts +9 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/color/color.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/color/color.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts +18 -3
- package/dist/super-editor/super-editor/src/extensions/comment/comment.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comments-marks.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/content-block/content-block.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/custom-selection/custom-selection.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/document/document.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/document/document.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/dropcursor/dropcursor.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/font-family/font-family.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts +9 -1
- package/dist/super-editor/super-editor/src/extensions/font-size/font-size.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts +7 -1
- package/dist/super-editor/super-editor/src/extensions/format-commands/format-commands.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/gapcursor/gapcursor.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/heading/heading.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/highlight/highlight.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/history/history.d.ts +4 -1
- package/dist/super-editor/super-editor/src/extensions/history/history.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/image/image.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/image/image.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/index.d.ts +22 -2
- package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/italic/italic.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts +2 -2
- package/dist/super-editor/super-editor/src/extensions/line-break/line-break.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/line-height/line-height.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/link/link.d.ts +9 -1
- package/dist/super-editor/super-editor/src/extensions/link/link.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/linked-styles.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/plugin.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/noderesizer/noderesizer.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts +2 -2
- package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts +8 -1
- package/dist/super-editor/super-editor/src/extensions/page-reference/page-reference.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/placeholder/placeholder.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/run/run.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/run/run.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/search/search.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/search/search.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/shape-container/shape-container.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/slash-menu/slash-menu.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/document-section.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +9 -3
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentByGroup.d.ts +19 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentByGroup.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/tagUtils.d.ts +53 -0
- package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/tagUtils.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/tab/tab.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/table/TableView.d.ts +7 -1
- package/dist/super-editor/super-editor/src/extensions/table/TableView.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/table/table.d.ts +19 -1
- package/dist/super-editor/super-editor/src/extensions/table/table.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/table-header/table-header.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts +6 -1
- package/dist/super-editor/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/table-row/table-row.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/text/text.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/text/text.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts +4 -1
- package/dist/super-editor/super-editor/src/extensions/text-align/text-align.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts +7 -1
- package/dist/super-editor/super-editor/src/extensions/text-indent/text-indent.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/text-style/text-style.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/text-transform/text-transform.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +140 -52
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-changes.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-delete.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-format.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/track-insert.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +5 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts +40 -0
- package/dist/super-editor/super-editor/src/extensions/types/formatting-commands.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts +57 -0
- package/dist/super-editor/super-editor/src/extensions/types/history-link-table-commands.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts +83 -0
- package/dist/super-editor/super-editor/src/extensions/types/specialized-commands.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts +3 -1
- package/dist/super-editor/super-editor/src/extensions/underline/underline.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/vector-shape/vector-shape.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts +1 -1
- package/dist/super-editor/super-editor/src/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +7 -7
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +2699 -2346
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-BSDu25I7.cjs +0 -3
- package/dist/chunks/xml-js-CBrRls0f.es.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../src/core/Editor.
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../src/core/Editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,KAAK,EAAiB,IAAI,IAAI,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK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,IAAI,CAAC;IA+B/D;;;;OAIG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,GAAG,QAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI;IAY3F;;;;OAIG;IACH,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI;IAU3E;;OAEG;IACH,cAAc,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
|
|
8
|
-
* @param
|
|
17
|
+
* @param name Event name.
|
|
18
|
+
* @param fn Callback.
|
|
9
19
|
* @returns {void}
|
|
10
20
|
*/
|
|
11
|
-
on(name:
|
|
21
|
+
on<K extends keyof EventMap>(name: K, fn: EventCallback<EventMap[K]>): void;
|
|
12
22
|
/**
|
|
13
23
|
* Emit event.
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
24
|
+
* @param name Event name.
|
|
25
|
+
* @param args Arguments to pass to each listener.
|
|
16
26
|
* @returns {void}
|
|
17
27
|
*/
|
|
18
|
-
emit(name:
|
|
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
|
|
23
|
-
* @param
|
|
32
|
+
* @param name Event name.
|
|
33
|
+
* @param fn Callback.
|
|
24
34
|
* @returns {void}
|
|
25
35
|
*/
|
|
26
|
-
off(name:
|
|
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
|
|
30
|
-
* @param
|
|
39
|
+
* @param name Event name.
|
|
40
|
+
* @param fn Callback.
|
|
31
41
|
* @returns {void}
|
|
32
42
|
*/
|
|
33
|
-
once(name:
|
|
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.
|
|
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
|
|
29
|
+
* @param config Configuration for the extension.
|
|
8
30
|
*/
|
|
9
|
-
static create(
|
|
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.
|
|
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;;GAEG;AACH,MAAM,WAAW,eAAe,CAC9B,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/D,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAE/D,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IAEb,2CAA2C;IAC3C,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAElC,2CAA2C;IAC3C,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAElC,kDAAkD;IAClD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,qBAAa,SAAS,CACpB,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/D,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAE/D,IAAI,EAAG,WAAW,CAAU;IAE5B,IAAI,EAAE,MAAM,CAAe;IAE3B,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAE9B,MAAM,EAAE,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC;IA2BrD;;;OAGG;IACH,MAAM,CAAC,MAAM,CACX,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,MAAM,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,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():
|
|
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,
|
|
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
|
|
32
|
+
* @param config Configuration for the mark.
|
|
8
33
|
*/
|
|
9
|
-
static create(
|
|
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.
|
|
1
|
+
{"version":3,"file":"Mark.d.ts","sourceRoot":"","sources":["../../../../src/core/Mark.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D;;GAEG;AACH,MAAM,WAAW,UAAU,CACzB,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/D,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAE/D,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IAEb,oDAAoD;IACpD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,sCAAsC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAElC,sCAAsC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAElC,kDAAkD;IAClD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,qBAAa,IAAI,CACf,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/D,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAE/D,IAAI,EAAG,MAAM,CAAU;IAEvB,IAAI,EAAE,MAAM,CAAU;IAEtB,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,EAAE,OAAO,CAAC;IAEpB,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAEzB,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC;IA6BhD;;;OAGG;IACH,MAAM,CAAC,MAAM,CACX,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,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
|
-
|
|
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
|
-
* @
|
|
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:
|
|
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.
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../../../src/core/Node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,UAAU,CACzB,OAAO,SAAS,M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CAAU;IAEtB,OAAO,EAAE,OAAO,CAAC;IAEjB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAE1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAEzB,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC;IA4BhD;;;;OAIG;IACH,MAAM,CAAC,MAAM,CACX,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;CAGxC"}
|
|
@@ -1,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
|
-
*
|
|
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
|
-
* @
|
|
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
|
-
|
|
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.
|
|
1
|
+
{"version":3,"file":"OxmlNode.d.ts","sourceRoot":"","sources":["../../../../src/core/OxmlNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc,CAC7B,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/D,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAC/D,SAAQ,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC;IACpC,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;IAEjB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED;;;;GAIG;AACH,qBAAa,QAAQ,CACnB,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAC/D,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAC/D,SAAQ,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;gBAEL,MAAM,EAAE,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC;IAKpD;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,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;;
|
|
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,90 +1,12 @@
|
|
|
1
|
-
export type CommandServiceOptions =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type
|
|
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":"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/commands.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/commands.js"],"names":[],"mappings":"AAGA,+EAMG;0BATuB,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/editable.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/editable.js"],"names":[],"mappings":"AAGA,+EAeG;0BAjBuB,iBAAiB"}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* For reference.
|
|
3
3
|
* https://prosemirror.net/docs/ref/#history.history
|
|
4
4
|
*/
|
|
5
|
-
export const EditorFocus: Extension
|
|
5
|
+
export const EditorFocus: Extension<Record<string, never>, Record<string, never>>;
|
|
6
6
|
import { Extension } from '../Extension.js';
|
|
7
7
|
//# sourceMappingURL=editorFocus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorFocus.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/editorFocus.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"editorFocus.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/editorFocus.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH,kFAgCG;0BAtCuB,iBAAiB"}
|
|
@@ -5,6 +5,6 @@ export function handleDelete(editor: any): any;
|
|
|
5
5
|
* For reference.
|
|
6
6
|
* https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.ts
|
|
7
7
|
*/
|
|
8
|
-
export const Keymap: Extension
|
|
8
|
+
export const Keymap: Extension<Record<string, never>, Record<string, never>>;
|
|
9
9
|
import { Extension } from '../Extension.js';
|
|
10
10
|
//# sourceMappingURL=keymap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keymap.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/keymap.js"],"names":[],"mappings":"AAIO,8CAQN;AAEM,kDAYN;AAEM,+CAMN;AAED;;;GAGG;AACH
|
|
1
|
+
{"version":3,"file":"keymap.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/keymap.js"],"names":[],"mappings":"AAIO,8CAQN;AAEM,kDAYN;AAEM,+CAMN;AAED;;;GAGG;AACH,6EAwCG;0BAhFuB,iBAAiB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export function getFieldAttrs(field: any, value: any, input: any): any;
|
|
2
2
|
export function processTables({ state, tr, annotationValues }: {
|
|
3
|
-
|
|
3
|
+
state: import("prosemirror-state").EditorState;
|
|
4
|
+
tr: import("prosemirror-state").Transaction;
|
|
4
5
|
annotationValues: any[];
|
|
5
|
-
}):
|
|
6
|
+
}): import("prosemirror-state").Transaction;
|
|
6
7
|
export function getAllHeaderFooterEditors(editor: Editor): any[];
|
|
7
8
|
export function annotateDocument({ annotationValues, hiddenFieldIds, removeEmptyFields, schema, tr, editor, }: {
|
|
8
9
|
annotationValues?: any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAUO,uEAiBN;
|
|
1
|
+
{"version":3,"file":"annotator.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/annotator.js"],"names":[],"mappings":"AAUO,uEAiBN;AAkCM,+DAJJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACS,EAAE,EAAlD,OAAO,mBAAmB,EAAE,WAAW;IACzB,gBAAgB;CACxC,2CAwBA;AA0MM,kDAHI,MAAM,GACJ,KAAQ,CAsCpB;AAwBM;;;;;;;QAoFN;;;;;;;;;;;AA1GD;;;;;;;;GAQG;AACH,6GALG;IAAuB,MAAM;IACP,gBAAgB;IAChB,cAAc;CACpC,GAAU,IAAI,CAahB;AAkHD;;;;SAUC;AAED;;;SAUC;AAED;;SAUC"}
|