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,9 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base interface for extensions with a config object.
|
|
3
|
+
*/
|
|
4
|
+
export interface ExtensionLike {
|
|
5
|
+
config: Record<string, any>;
|
|
6
|
+
}
|
|
1
7
|
/**
|
|
2
8
|
* Get extension config field.
|
|
3
|
-
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @
|
|
9
|
+
* If the field is a function, it will be bound to the provided context.
|
|
10
|
+
* @param extension The Editor extension.
|
|
11
|
+
* @param field The config field name.
|
|
12
|
+
* @param context The context object to bind to function.
|
|
13
|
+
* @returns The config field value or bound function.
|
|
7
14
|
*/
|
|
8
|
-
export function getExtensionConfigField(extension:
|
|
15
|
+
export declare function getExtensionConfigField<T = any>(extension: ExtensionLike, field: string, context?: Record<string, any>): T;
|
|
9
16
|
//# sourceMappingURL=getExtensionConfigField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExtensionConfigField.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/getExtensionConfigField.
|
|
1
|
+
{"version":3,"file":"getExtensionConfigField.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/getExtensionConfigField.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,GAAG,EAC7C,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAChC,CAAC,CASH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function isList(name: any, extensions: any):
|
|
1
|
+
export function isList(name: any, extensions: any): any;
|
|
2
2
|
//# sourceMappingURL=isList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isList.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/isList.js"],"names":[],"mappings":"AAQO,
|
|
1
|
+
{"version":3,"file":"isList.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/isList.js"],"names":[],"mappings":"AAQO,wDAcN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-numbering-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/list-numbering-helpers.js"],"names":[],"mappings":"AAoBO,gGATJ;IAAuB,KAAK,EAApB,MAAM;IACS,QAAQ;IACP,KAAK,GAArB,MAAM;IACU,KAAK,GAArB,MAAM;IACU,IAAI,GAApB,MAAM;IACU,GAAG,GAAnB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;CAClC,
|
|
1
|
+
{"version":3,"file":"list-numbering-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/helpers/list-numbering-helpers.js"],"names":[],"mappings":"AAoBO,gGATJ;IAAuB,KAAK,EAApB,MAAM;IACS,QAAQ;IACP,KAAK,GAArB,MAAM;IACU,KAAK,GAArB,MAAM;IACU,IAAI,GAApB,MAAM;IACU,GAAG,GAAnB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;CAClC,OAmFF;AAEM,+EAYN;AAUM,+CANI,MAAM,SACN,MAAM,YACN,OAAO,mBAAmB,EAAE,QAAQ,UACpC,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CAiClB;AAQM,wCAJI,MAAM,cACN,MAAM,OAYhB;AASM,qCAHI,OAAO,WAAW,EAAE,MAAM,sBACxB,MAAM,CASlB;AAeM,oFAPJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACwC,QAAQ,GAAtD,OAAO,mBAAmB,EAAE,QAAQ;IACrB,MAAM;IACL,KAAK,GAArB,MAAM;CACd,OA6GF;AAOM,8CAHI,OAAO,WAAW,EAAE,MAAM,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;IAAC,KAAK,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,iBAAiB,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,YAAY,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAO,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,GAAC,SAAS,CAAA;CAAC,CAAC,CAAC,CA+ChP;AAUM,8CAJI,MAAM,UACN,OAAO,WAAW,EAAE,MAAM,GACxB,IAAI,CAehB;AAYM,sEALJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IACS,WAAW;CAClC,OAsBF;AAaM,mFANJ;IAAuB,KAAK,EAApB,MAAM;IACS,KAAK,EAApB,MAAM;IAC6B,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACX,WAAW;CAClC,OAQF;AAUM,wDALJ;IAA8B,QAAQ,EAA9B,MAAM,MAAO;IACsB,MAAM,EAAzC,OAAO,WAAW,EAAE,MAAM;IACsB,EAAE,EAAlD,OAAO,mBAAmB,EAAE,WAAW;CAC/C,WAyBF;AAWM,+DANJ;IAAuB,EAAE;IACF,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;IACO,OAAO,EAApB,IAAI;CACZ,GAAU,IAAI,CAIhB;;;;;;;;;;;;;;;;;mCAjekD,uBAAuB;+BAAvB,uBAAuB"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * as
|
|
11
|
-
export * as
|
|
12
|
-
export *
|
|
13
|
-
export { default as DocxZipper } from
|
|
1
|
+
export * from './Node.js';
|
|
2
|
+
export * from './Mark.js';
|
|
3
|
+
export * from './Schema.js';
|
|
4
|
+
export * from './Attribute.js';
|
|
5
|
+
export * from './CommandService.js';
|
|
6
|
+
export * from './Extension.js';
|
|
7
|
+
export * from './super-converter/SuperConverter.js';
|
|
8
|
+
export * from './OxmlNode.js';
|
|
9
|
+
export * as coreExtensions from './extensions/index.js';
|
|
10
|
+
export * as helpers from './helpers/index.js';
|
|
11
|
+
export * as utilities from './utilities/index.js';
|
|
12
|
+
export * from './Editor.js';
|
|
13
|
+
export { default as DocxZipper } from './DocxZipper.js';
|
|
14
|
+
export type * from './types/EditorConfig.js';
|
|
15
|
+
export type * from './types/EditorTypes.js';
|
|
16
|
+
export type * from './types/EditorEvents.js';
|
|
17
|
+
export type * from './EventEmitter.js';
|
|
18
|
+
export type { ChainedCommand, ChainableCommandObject, CanCommand, CanCommands, CanObject, CoreCommands, ExtensionCommands, EditorCommands, CommandProps, Command, CommandServiceOptions, } from './types/ChainedCommands.js';
|
|
14
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qCAAqC,CAAC;AACpD,cAAc,eAAe,CAAC;AAE9B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,cAAc,aAAa,CAAC;AAE5B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGxD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,mBAAmB,CAAC;AAGvC,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,UAAU,EACV,WAAW,EACX,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,OAAO,EACP,qBAAqB,GACtB,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-summary.d.ts","sourceRoot":"","sources":["../../../../src/core/schema-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAC;AAkDzF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAgC5F"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert SDT child elements into Word run elements.
|
|
3
|
-
* @param {Array<Object>|Object} elements
|
|
4
|
-
* @returns {Array<Object>}
|
|
5
|
-
*/
|
|
6
|
-
export function convertSdtContentToRuns(elements: Array<any> | any): Array<any>;
|
|
7
1
|
/**
|
|
8
2
|
* @typedef {Object} ExportParams
|
|
9
3
|
* @property {Object} node JSON node to translate (from PM schema)
|
|
@@ -44,29 +38,6 @@ export function convertSdtContentToRuns(elements: Array<any> | any): Array<any>;
|
|
|
44
38
|
* @returns {XmlReadyNode} The complete document node in XML-ready format
|
|
45
39
|
*/
|
|
46
40
|
export function exportSchemaToJson(params: ExportParams): XmlReadyNode;
|
|
47
|
-
/**
|
|
48
|
-
* Translate a paragraph node
|
|
49
|
-
*
|
|
50
|
-
* @param {ExportParams} node A prose mirror paragraph node
|
|
51
|
-
* @returns {XmlReadyNode} JSON of the XML-ready paragraph node
|
|
52
|
-
*/
|
|
53
|
-
export function translateParagraphNode(params: any): XmlReadyNode;
|
|
54
|
-
/**
|
|
55
|
-
* Generate the w:pPr props for a paragraph node
|
|
56
|
-
*
|
|
57
|
-
* @param {SchemaNode} node
|
|
58
|
-
* @returns {XmlReadyNode} The paragraph properties node
|
|
59
|
-
*/
|
|
60
|
-
export function generateParagraphProperties(params: any): XmlReadyNode;
|
|
61
|
-
/**
|
|
62
|
-
* Helper function to be used for text node translation
|
|
63
|
-
* Also used for transforming text annotations for the final submit
|
|
64
|
-
*
|
|
65
|
-
* @param {String} text Text node's content
|
|
66
|
-
* @param {Object[]} marks The marks to add to the run properties
|
|
67
|
-
* @returns {XmlReadyNode} The translated text node
|
|
68
|
-
*/
|
|
69
|
-
export function getTextNodeForExport(text: string, marks: any[], params: any): XmlReadyNode;
|
|
70
41
|
/**
|
|
71
42
|
* Wrap a text node in a run
|
|
72
43
|
*
|
|
@@ -91,25 +62,6 @@ export function generateRunProps(marks?: any[]): {
|
|
|
91
62
|
* @returns
|
|
92
63
|
*/
|
|
93
64
|
export function processOutputMarks(marks?: MarkType[]): any[];
|
|
94
|
-
export function processLinkContentNode(node: any): any;
|
|
95
|
-
/**
|
|
96
|
-
* Create a new link relationship and add it to the relationships array
|
|
97
|
-
*
|
|
98
|
-
* @param {ExportParams} params
|
|
99
|
-
* @param {string} link The URL of this link
|
|
100
|
-
* @returns {string} The new relationship ID
|
|
101
|
-
*/
|
|
102
|
-
export function addNewLinkRelationship(params: ExportParams, link: string): string;
|
|
103
|
-
export function translateHardBreak(params: any): {
|
|
104
|
-
name: string;
|
|
105
|
-
elements: {
|
|
106
|
-
name: string;
|
|
107
|
-
type: string;
|
|
108
|
-
attributes: {
|
|
109
|
-
'w:type': string;
|
|
110
|
-
};
|
|
111
|
-
}[];
|
|
112
|
-
};
|
|
113
65
|
export function ensureSectionLayoutDefaults(sectPr: any, converter: any): any;
|
|
114
66
|
export function isLineBreakOnlyRun(node: any): any;
|
|
115
67
|
export class DocxExporter {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAsGA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAuDxB;AA+GD;;;;;GAKG;AACH,6DAFa,YAAY,CAYxB;AAED;;;;;GAKG;AACH,yCAHW,KAAQ;;;EAQlB;AAED;;;;;GAKG;AACH,2CAHW,QAAQ,EAAE,SAgBpB;AA9TM,8EAiDN;AAEM,mDAON;AAoYD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAoFF;;;;;;;;;;;;;oBA1da,KAAQ;;;;;;;;;;UAMR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
|
@@ -60,4 +60,11 @@ export function hasSomeParentWithClass(element: any, classname: any): any;
|
|
|
60
60
|
export function getTextIndentExportValue(indent: string | number): number;
|
|
61
61
|
export function polygonUnitsToPixels(pu: any): number;
|
|
62
62
|
export function pixelsToPolygonUnits(pixels: any): number;
|
|
63
|
+
/**
|
|
64
|
+
* @param {number | string} value Value (e.g. 5000 or "100%")
|
|
65
|
+
* @param {"dxa" | "pct" | "nil" | "auto" | null} type Units: either "dxa" (or null/undefined) for absolute measurements in twips, "pct" for relative measurements (either as 1/50 of a percent, or as a percentage with a trailing "%"), "nil" (zero width, see 17.18.90 of ECMA-376-1:2016), or "auto" (
|
|
66
|
+
*
|
|
67
|
+
* @returns {string | null} CSS specification for size (e.g. `100%`, `25px`) or `null` if the type is `"auto"`
|
|
68
|
+
*/
|
|
69
|
+
export function convertSizeToCSS(value: number | string, type: "dxa" | "pct" | "nil" | "auto" | null): string | null;
|
|
63
70
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAGA,8BAAwB,EAAE,CAAC;AAE3B,mDAIC;AAED,kDAKC;AAED,kDAIC;AAED,mDAGC;AAQD,oDAIC;AAoDD,mDAGC;AAjED,oDAIC;AAQD,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,gEAKC;AAYD,yDAGC;AAbD,mDAGC;AAsBD,+CAGC;AAED,mDAGC;AAgDD;;;;;;;GAOG;AACH,qCAHW,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACrB,MAAO,IAAI,CAyCvB;AA7ED;;;;;;;GAOG;AACH,gDAFa,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAC,IAAI,CAsBxC;AAsED,4FAyDC;AAED,uEAKC;AAmCD,kEAGC;AAED,mEASC;AA5BD,iDAYC;AAkBD,qDAaC;AAOD,2CAEC;AA1QD,2CAGC;AARD,8CAGC;AA8QD;;;;EAUC;AAED,qEAuBC;AAED,0EAGC;AAtMD;;;;GAIG;AACH,iDAHW,MAAM,GAAC,MAAM,GACX,MAAM,CAWlB;AApGD,sDAKC;AAdD,0DAOC"}
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAGA,8BAAwB,EAAE,CAAC;AAE3B,mDAIC;AAED,kDAKC;AAED,kDAIC;AAED,mDAGC;AAQD,oDAIC;AAoDD,mDAGC;AAjED,oDAIC;AAQD,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,gEAKC;AAYD,yDAGC;AAbD,mDAGC;AAsBD,+CAGC;AAED,mDAGC;AAgDD;;;;;;;GAOG;AACH,qCAHW,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACrB,MAAO,IAAI,CAyCvB;AA7ED;;;;;;;GAOG;AACH,gDAFa,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAC,IAAI,CAsBxC;AAsED,4FAyDC;AAED,uEAKC;AAmCD,kEAGC;AAED,mEASC;AA5BD,iDAYC;AAkBD,qDAaC;AAOD,2CAEC;AA1QD,2CAGC;AARD,8CAGC;AA8QD;;;;EAUC;AAED,qEAuBC;AAED,0EAGC;AAtMD;;;;GAIG;AACH,iDAHW,MAAM,GAAC,MAAM,GACX,MAAM,CAWlB;AApGD,sDAKC;AAdD,0DAOC;AAgSD;;;;;GAKG;AACH,wCALW,MAAM,GAAG,MAAM,QACf,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,GAEnC,MAAM,GAAG,IAAI,CAoDzB"}
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* @param {Object} inlineProps - The inline paragraph properties.
|
|
5
5
|
* @param {boolean} [insideTable=false] - Whether the paragraph is inside a table.
|
|
6
6
|
* @param {boolean} [overrideInlineStyleId=false] - Whether to override the inline style ID with the one from numbering.
|
|
7
|
+
* @param {string | null} [tableStyleId=null] - styleId for the current table, if any
|
|
7
8
|
* @returns {Object} The resolved paragraph properties.
|
|
8
9
|
*/
|
|
9
|
-
export function resolveParagraphProperties(params: import("@translator").SCEncoderConfig, inlineProps: any, insideTable?: boolean, overrideInlineStyleId?: boolean): any;
|
|
10
|
+
export function resolveParagraphProperties(params: import("@translator").SCEncoderConfig, inlineProps: any, insideTable?: boolean, overrideInlineStyleId?: boolean, tableStyleId?: string | null): any;
|
|
10
11
|
export function getDefaultProperties(params: any, translator: any): any;
|
|
11
12
|
export function getStyleProperties(params: any, styleId: any, translator: any): {
|
|
12
13
|
properties: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/styles.js"],"names":[],"mappings":"AA0EA
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/styles.js"],"names":[],"mappings":"AA0EA;;;;;;;;GAQG;AACH,mDAPW,OAAO,aAAa,EAAE,eAAe,kCAErC,OAAO,0BACP,OAAO,iBACP,MAAM,GAAG,IAAI,OAgGvB;AA8BD,wEAgBC;AAED;;;;EAsBC;AAED,iHA8DC;AA2CD;;;IAqGC;AAED,oEAyKC;AAED,mDAoFC;AAxrBM,6CALI,OAAO,aAAa,EAAE,eAAe,mGA8D/C;AAgPM,8GAmCN;AAEM,gEAEN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"AAIA;;GAEG;AACH,wCAAgH;AAEhH;;GAEG;AACH,2CAAuH"}
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts
CHANGED
|
@@ -39,5 +39,5 @@ export function getFontFamilyValue(attributes: any, docx: any): any;
|
|
|
39
39
|
export function getIndentValue(attributes: any): string;
|
|
40
40
|
export function getLineHeightValue(attributes: any): string;
|
|
41
41
|
export function getHighLightValue(attributes: any): string;
|
|
42
|
-
export function getStrikeValue(attributes: any): "
|
|
42
|
+
export function getStrikeValue(attributes: any): "0" | "1";
|
|
43
43
|
//# sourceMappingURL=markImporter.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
|
8
|
+
//# sourceMappingURL=autoPageNumber-translator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoPageNumber-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/sd/autoPageNumber/autoPageNumber-translator.js"],"names":[],"mappings":"AA+GA,yDAAyD;AACzD,qBADW,OAAO,aAAa,EAAE,oBAAoB,CAOnD;AAEF;;;GAGG;AACH,yBAFU,OAAO,aAAa,EAAE,cAAc,CAEQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/sd/autoPageNumber/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/sd/totalPageNumber/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
|
8
|
+
//# sourceMappingURL=totalPageNumber-translator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"totalPageNumber-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/sd/totalPageNumber/totalPageNumber-translator.js"],"names":[],"mappings":"AA+GA,yDAAyD;AACzD,qBADW,OAAO,aAAa,EAAE,oBAAoB,CAOnD;AAEF;;;GAGG;AACH,yBAFU,OAAO,aAAa,EAAE,cAAc,CAEQ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate the w:pPr props for a paragraph node
|
|
3
|
+
*
|
|
4
|
+
* @param {SchemaNode} node
|
|
5
|
+
* @returns {XmlReadyNode} The paragraph properties node
|
|
6
|
+
*/
|
|
7
|
+
export function generateParagraphProperties(params: any): XmlReadyNode;
|
|
8
|
+
//# sourceMappingURL=generate-paragraph-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-paragraph-properties.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/p/helpers/generate-paragraph-properties.js"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,0DAFa,YAAY,CAuCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-handle-paragraph-node.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"legacy-handle-paragraph-node.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.js"],"names":[],"mappings":"AA0BO,4CAHI,OAAO,aAAa,EAAE,eAAe,OAqF/C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translate a paragraph node
|
|
3
|
+
*
|
|
4
|
+
* @param {ExportParams} node A prose mirror paragraph node
|
|
5
|
+
* @returns {XmlReadyNode} JSON of the XML-ready paragraph node
|
|
6
|
+
*/
|
|
7
|
+
export function translateParagraphNode(params: any): XmlReadyNode;
|
|
8
|
+
//# sourceMappingURL=translate-paragraph-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate-paragraph-node.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/p/helpers/translate-paragraph-node.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert SDT child elements into Word run elements.
|
|
3
|
+
* @param {Array<Object>|Object} elements
|
|
4
|
+
* @returns {Array<Object>}
|
|
5
|
+
*/
|
|
6
|
+
export function convertSdtContentToRuns(elements: Array<any> | any): Array<any>;
|
|
7
|
+
//# sourceMappingURL=convert-sdt-content-to-runs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-sdt-content-to-runs.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/sdt/helpers/convert-sdt-content-to-runs.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate-field-annotation.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translate-field-annotation.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.js"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,2DAyEC;AAED;;;;;GAKG;AACH,2GA0BC;AAED;;;;GAIG;AACH,wDAOC;AAED;;;;;GAKG;AACH,yEAKC;AAED;;;;GAIG;AACH,4DAMC;AAED;;;;GAIG;AACH,wDAgDC;AAED;;;;GAIG;AACH,uDAiCC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAYC;AAED,wEAgEC;AAED;;;;GAIG;AACH,4DAHW,MAAM,OAmChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate-text-node.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/core/super-converter/v3/handlers/w/t/helpers/translate-text-node.js"],"names":[],"mappings":"AAWA;;;EA8DC"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {{borders?: {}, name?: *, justification?: *, fonts?: {}, fontSize?: *, rowBorders?: {}, cellMargins?: {}}} TableStyles
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
*
|
|
3
6
|
* @param {string|null} tableStyleReference
|
|
4
7
|
* @param {import('@translator').SCEncoderConfig} [params]
|
|
5
|
-
* @returns {
|
|
8
|
+
* @returns {TableStyles|null}
|
|
6
9
|
*/
|
|
7
|
-
export function _getReferencedTableStyles(tableStyleReference: string | null, params?: import("@translator").SCEncoderConfig):
|
|
8
|
-
borders: {};
|
|
9
|
-
name: any;
|
|
10
|
-
justification: any;
|
|
11
|
-
fonts: {};
|
|
12
|
-
fontSize: any;
|
|
13
|
-
rowBorders: {};
|
|
14
|
-
cellMargins: {};
|
|
15
|
-
} | null;
|
|
10
|
+
export function _getReferencedTableStyles(tableStyleReference: string | null, params?: import("@translator").SCEncoderConfig): TableStyles | null;
|
|
16
11
|
/**
|
|
17
12
|
* Restore vertically merged cells from a table
|
|
18
13
|
* @param {Object} table The table node
|
|
@@ -26,4 +21,13 @@ export const config: import("@translator").NodeTranslatorConfig;
|
|
|
26
21
|
* @type {import('@translator').NodeTranslator}
|
|
27
22
|
*/
|
|
28
23
|
export const translator: import("@translator").NodeTranslator;
|
|
24
|
+
export type TableStyles = {
|
|
25
|
+
borders?: {};
|
|
26
|
+
name?: any;
|
|
27
|
+
justification?: any;
|
|
28
|
+
fonts?: {};
|
|
29
|
+
fontSize?: any;
|
|
30
|
+
rowBorders?: {};
|
|
31
|
+
cellMargins?: {};
|
|
32
|
+
};
|
|
29
33
|
//# sourceMappingURL=tbl-translator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tbl-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/tbl/tbl-translator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tbl-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/tbl/tbl-translator.js"],"names":[],"mappings":"AAgQA;;GAEG;AAEH;;;;;GAKG;AACH,+DAJW,MAAM,GAAC,IAAI,WACX,OAAO,aAAa,EAAE,eAAe,GACnC,WAAW,GAAC,IAAI,CAwE5B;AAED;;;;;GAKG;AACH,yDAAyD;AACzD,qBADW,OAAO,aAAa,EAAE,oBAAoB,CAQnD;AAEF;;;GAGG;AACH,yBAFU,OAAO,aAAa,EAAE,cAAc,CAEQ;0BArGzC;IAAC,OAAO,CAAC,EAAE,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,GAAC,CAAC;IAAC,aAAa,CAAC,EAAE,GAAC,CAAC;IAAC,KAAK,CAAC,EAAE,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAC,CAAC;IAAC,UAAU,CAAC,EAAE,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,EAAE,CAAA;CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tblGrid-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tblGrid-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.js"],"names":[],"mappings":"AAoIA;;;GAGG;AACH,yBAFU,OAAO,aAAa,EAAE,cAAc,CAEQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tr-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/tr/tr-translator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tr-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/tr/tr-translator.js"],"names":[],"mappings":"AAsMA,yDAAyD;AACzD,qBADW,OAAO,aAAa,EAAE,oBAAoB,CAQnD;AAEF;;;GAGG;AACH,yBAFU,OAAO,aAAa,EAAE,cAAc,CAEQ"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { Transaction, EditorState } from 'prosemirror-state';
|
|
2
|
+
import type { EditorView } from 'prosemirror-view';
|
|
3
|
+
import type { Editor } from '../Editor.js';
|
|
4
|
+
/**
|
|
5
|
+
* Map of built-in command names to their parameter signatures.
|
|
6
|
+
* Extensions can augment this interface to add more precise types.
|
|
7
|
+
* Currently empty because built-in focus/blur are exposed directly on Editor,
|
|
8
|
+
* not via `editor.commands`. Populate here when core commands are added.
|
|
9
|
+
*/
|
|
10
|
+
export interface CoreCommandMap {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Map of extension command names to their parameter signatures.
|
|
14
|
+
* Each extension should augment this interface when adding typed commands.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Map of extension command names to their parameter signatures.
|
|
18
|
+
* Extensions should augment this interface via module augmentation, e.g.:
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* declare module '@core/types/ChainedCommands.js' {
|
|
22
|
+
* interface ExtensionCommandMap {
|
|
23
|
+
* setFontSize: (fontSize: string | number) => boolean;
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export interface ExtensionCommandMap {
|
|
29
|
+
}
|
|
30
|
+
type AnyCommand = (...args: unknown[]) => unknown;
|
|
31
|
+
type RegisteredCommands = CoreCommandMap & ExtensionCommandMap;
|
|
32
|
+
type KnownCommandKey = keyof RegisteredCommands;
|
|
33
|
+
type UntypedCommandFallback<K extends PropertyKey> = (...args: unknown[]) => boolean;
|
|
34
|
+
type ExtractCommand<K extends PropertyKey> = K extends KnownCommandKey ? RegisteredCommands[K] : UntypedCommandFallback<K>;
|
|
35
|
+
type NormalizeCommand<F> = F extends (...args: infer A) => (props: CommandProps) => infer R ? (...args: A) => R : F;
|
|
36
|
+
type CommandForKey<K extends PropertyKey> = NormalizeCommand<ExtractCommand<K>>;
|
|
37
|
+
type CommandArgs<K extends PropertyKey> = Parameters<CommandForKey<K>>;
|
|
38
|
+
type CommandResult<K extends PropertyKey> = ReturnType<CommandForKey<K>>;
|
|
39
|
+
type KnownCommandRecord = {
|
|
40
|
+
[K in keyof RegisteredCommands]: CommandForKey<K>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* A chainable version of an editor command keyed by command name.
|
|
44
|
+
*/
|
|
45
|
+
export type ChainedCommand<K extends string = string> = (...args: CommandArgs<K>) => ChainableCommandObject;
|
|
46
|
+
type KnownChainedCommands = {
|
|
47
|
+
[K in keyof RegisteredCommands]: (...args: CommandArgs<K>) => ChainableCommandObject;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Chainable command object returned by `createChain`.
|
|
51
|
+
* Has dynamic keys (one per command) and a `run()` method.
|
|
52
|
+
*/
|
|
53
|
+
export type ChainableCommandObject = {
|
|
54
|
+
run: () => boolean;
|
|
55
|
+
} & KnownChainedCommands & Record<string, (...args: unknown[]) => ChainableCommandObject>;
|
|
56
|
+
/**
|
|
57
|
+
* A command that can be checked for availability.
|
|
58
|
+
*/
|
|
59
|
+
export type CanCommand<K extends string = string> = (...args: CommandArgs<K>) => CommandResult<K>;
|
|
60
|
+
type KnownCanCommands = {
|
|
61
|
+
[K in keyof RegisteredCommands]: (...args: CommandArgs<K>) => CommandResult<K>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Map of commands that can be checked.
|
|
65
|
+
*/
|
|
66
|
+
export type CanCommands = Record<string, CanCommand>;
|
|
67
|
+
/**
|
|
68
|
+
* Object returned by `createCan`: dynamic boolean commands + a `chain()` helper.
|
|
69
|
+
*/
|
|
70
|
+
export type CanObject = KnownCanCommands & Record<string, CanCommand> & {
|
|
71
|
+
chain: () => ChainableCommandObject;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Core editor commands available on all instances.
|
|
75
|
+
*/
|
|
76
|
+
export type CoreCommands = Pick<KnownCommandRecord, keyof CoreCommandMap>;
|
|
77
|
+
/**
|
|
78
|
+
* Commands added by extensions - populated via module augmentation.
|
|
79
|
+
*/
|
|
80
|
+
export type ExtensionCommands = Pick<KnownCommandRecord, keyof ExtensionCommandMap>;
|
|
81
|
+
/**
|
|
82
|
+
* All available editor commands
|
|
83
|
+
*/
|
|
84
|
+
export type EditorCommands = CoreCommands & ExtensionCommands & Record<string, AnyCommand>;
|
|
85
|
+
/**
|
|
86
|
+
* Command props made available to every command handler.
|
|
87
|
+
*/
|
|
88
|
+
export interface CommandProps {
|
|
89
|
+
/** The editor instance */
|
|
90
|
+
editor: Editor;
|
|
91
|
+
/** The ProseMirror transaction */
|
|
92
|
+
tr: Transaction;
|
|
93
|
+
/** The current editor state */
|
|
94
|
+
state: EditorState;
|
|
95
|
+
/** The active editor view */
|
|
96
|
+
view: EditorView;
|
|
97
|
+
/** Optional dispatcher */
|
|
98
|
+
dispatch?: (tr: Transaction) => void;
|
|
99
|
+
/** Helper to build command chains */
|
|
100
|
+
chain: () => ChainableCommandObject;
|
|
101
|
+
/** Helper to check command availability */
|
|
102
|
+
can: () => CanObject;
|
|
103
|
+
/** Lazy command map bound to current props */
|
|
104
|
+
commands: EditorCommands;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A command handler invoked by the command service.
|
|
108
|
+
*/
|
|
109
|
+
export type Command = (props: CommandProps) => boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Command service options
|
|
112
|
+
*/
|
|
113
|
+
export interface CommandServiceOptions {
|
|
114
|
+
/** The editor instance */
|
|
115
|
+
editor: Editor;
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
118
|
+
//# sourceMappingURL=ChainedCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChainedCommands.d.ts","sourceRoot":"","sources":["../../../../../src/core/types/ChainedCommands.ts"],"names":[],"mappings":"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"}
|