@harbour-enterprises/superdoc 0.20.0-next.15 → 0.20.0-next.2
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/README.md +4 -4
- package/dist/chunks/{PdfViewer-DuEWa8ox.cjs → PdfViewer-B6adMXJl.cjs} +1 -1
- package/dist/chunks/{PdfViewer-D3gJ5ozH.es.js → PdfViewer-_tL5RYr9.es.js} +1 -1
- package/dist/chunks/{index-DiSIyVKk.es.js → index-DwXeHvLq.es.js} +9 -32
- package/dist/chunks/{index-D2h9q27o.cjs → index-mjjKSLDT.cjs} +9 -32
- package/dist/chunks/{super-editor.es-4Ig7dBJr.es.js → super-editor.es-CPrd1wq8.es.js} +3086 -6130
- package/dist/chunks/{super-editor.es-lzaBZOn2.cjs → super-editor.es-DJHyk0Zs.cjs} +3086 -6130
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/style.css +0 -38
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BJVy6JMW.js → converter-KHB8spG5.js} +2134 -4143
- package/dist/super-editor/chunks/{docx-zipper-DWDJGX0b.js → docx-zipper-B-vl4ISA.js} +1 -1
- package/dist/super-editor/chunks/{editor-BUCOmU2Y.js → editor-Df2sUgT0.js} +1558 -2538
- package/dist/super-editor/chunks/{toolbar-CiBIcgiI.js → toolbar-C6JoUIM_.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/src/core/commands/index.d.ts +0 -1
- package/dist/super-editor/src/core/commands/types/index.d.ts +1 -29
- package/dist/super-editor/src/core/helpers/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +1 -15
- package/dist/super-editor/src/core/super-converter/helpers.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +0 -12
- package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +6 -6
- package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +22 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +8 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +3 -10
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +1 -11
- package/dist/super-editor/src/extensions/block-node/block-node.d.ts +5 -30
- package/dist/super-editor/src/extensions/bold/bold.d.ts +0 -20
- package/dist/super-editor/src/extensions/bookmarks/index.d.ts +1 -2
- package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +0 -12
- package/dist/super-editor/src/extensions/color/color.d.ts +0 -26
- package/dist/super-editor/src/extensions/content-block/content-block.d.ts +0 -30
- package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +0 -16
- package/dist/super-editor/src/extensions/document/document.d.ts +0 -26
- package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +0 -26
- package/dist/super-editor/src/extensions/font-family/font-family.d.ts +0 -29
- package/dist/super-editor/src/extensions/font-size/font-size.d.ts +0 -21
- package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +0 -9
- package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +0 -9
- package/dist/super-editor/src/extensions/heading/heading.d.ts +6 -12
- package/dist/super-editor/src/extensions/highlight/highlight.d.ts +0 -20
- package/dist/super-editor/src/extensions/history/history.d.ts +15 -7
- package/dist/super-editor/src/extensions/image/image.d.ts +0 -78
- package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +5 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +1 -3
- package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +23 -18
- package/dist/super-editor/src/extensions/index.d.ts +2 -3
- package/dist/super-editor/src/extensions/italic/italic.d.ts +0 -10
- package/dist/super-editor/src/extensions/line-break/line-break.d.ts +0 -43
- package/dist/super-editor/src/extensions/line-height/line-height.d.ts +0 -22
- package/dist/super-editor/src/extensions/link/link.d.ts +25 -53
- package/dist/super-editor/src/extensions/linked-styles/index.d.ts +0 -1
- package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +0 -9
- package/dist/super-editor/src/extensions/list-item/list-item.d.ts +0 -48
- package/dist/super-editor/src/extensions/mention/mention.d.ts +0 -26
- package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +0 -14
- package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +0 -35
- package/dist/super-editor/src/extensions/page-number/page-number.d.ts +0 -52
- package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +0 -49
- package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +0 -15
- package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +0 -9
- package/dist/super-editor/src/extensions/run-item/run-item.d.ts +0 -24
- package/dist/super-editor/src/extensions/search/search.d.ts +2 -11
- package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +0 -29
- package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +0 -26
- package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +0 -9
- package/dist/super-editor/src/extensions/strike/strike.d.ts +0 -10
- package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +27 -46
- package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +1 -29
- package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +1 -29
- package/dist/super-editor/src/extensions/tab/tab.d.ts +0 -29
- package/dist/super-editor/src/extensions/table/table.d.ts +55 -376
- package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +0 -41
- package/dist/super-editor/src/extensions/table-header/table-header.d.ts +0 -22
- package/dist/super-editor/src/extensions/table-row/table-row.d.ts +0 -28
- package/dist/super-editor/src/extensions/text/text.d.ts +0 -14
- package/dist/super-editor/src/extensions/text-align/text-align.d.ts +0 -22
- package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +10 -19
- package/dist/super-editor/src/extensions/text-style/text-style.d.ts +0 -20
- package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +0 -20
- package/dist/super-editor/src/extensions/underline/underline.d.ts +0 -25
- package/dist/super-editor/style.css +0 -38
- package/dist/super-editor/super-editor.es.js +67 -146
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +3723 -6790
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +4 -7
- package/dist/super-editor/src/components/toolbar/format-negation.d.ts +0 -5
- package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +0 -42
- package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/constants/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -3
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +0 -40
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -3
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -9
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -11
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -28
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/u-translator.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -18
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -6
- package/dist/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +0 -6
- package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -3
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +0 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +0 -11
- package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +0 -4
- package/dist/super-editor/src/extensions/linked-styles/underline-css.d.ts +0 -17
- package/dist/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts +0 -62
- package/dist/super-editor/src/extensions/run/commands/index.d.ts +0 -1
- package/dist/super-editor/src/extensions/run/commands/split-run.d.ts +0 -1
- package/dist/super-editor/src/extensions/run/index.d.ts +0 -1
- package/dist/super-editor/src/extensions/run/run.d.ts +0 -6
- package/dist/super-editor/src/extensions/shared/cascade-toggle.d.ts +0 -8
- package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +0 -9
- package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +0 -9
- package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +0 -24
- package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +0 -12
- package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +0 -14
- package/dist/super-editor/src/tests/helpers/getParagraphText.d.ts +0 -2
- /package/dist/super-editor/src/extensions/bookmarks/{bookmark-start.d.ts → bookmarks.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-KHB8spG5.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Df2sUgT0.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-Df2sUgT0.js";
|
|
2
|
+
import "./chunks/converter-KHB8spG5.js";
|
|
3
|
+
import "./chunks/docx-zipper-B-vl4ISA.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -12,7 +12,6 @@ export * from "./setMark.js";
|
|
|
12
12
|
export * from "./unsetMark.js";
|
|
13
13
|
export * from "./unsetAllMarks.js";
|
|
14
14
|
export * from "./toggleMark.js";
|
|
15
|
-
export * from "./toggleMarkCascade.js";
|
|
16
15
|
export * from "./clearNodes.js";
|
|
17
16
|
export * from "./setNode.js";
|
|
18
17
|
export * from "./toggleNode.js";
|
|
@@ -47,7 +47,7 @@ export type CanObject = Record<string, CanCommand> & {
|
|
|
47
47
|
chain: () => ChainableCommandObject;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
|
-
* Command props
|
|
50
|
+
* Command props
|
|
51
51
|
*/
|
|
52
52
|
export type CommandProps = {
|
|
53
53
|
/**
|
|
@@ -58,32 +58,4 @@ export type CommandProps = {
|
|
|
58
58
|
* - The ProseMirror transaction
|
|
59
59
|
*/
|
|
60
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
61
|
};
|
|
86
|
-
/**
|
|
87
|
-
* A command handler invoked by the command service.
|
|
88
|
-
*/
|
|
89
|
-
export type Command = (props: CommandProps) => boolean;
|
|
@@ -47,9 +47,6 @@ export class SuperConverter {
|
|
|
47
47
|
'w:tcPr': "tableCellProperties";
|
|
48
48
|
}>;
|
|
49
49
|
static elements: Set<string>;
|
|
50
|
-
static getFontTableEntry(docx: any, fontName: any): any;
|
|
51
|
-
static getFallbackFromFontTable(docx: any, fontName: any): any;
|
|
52
|
-
static toCssFontFamily(fontName: any, docx: any): any;
|
|
53
50
|
static getStoredSuperdocVersion(docx: any): any;
|
|
54
51
|
static updateDocumentVersion(docx?: any, version?: any): any;
|
|
55
52
|
constructor(params?: any);
|
|
@@ -103,13 +100,11 @@ export class SuperConverter {
|
|
|
103
100
|
kern?: undefined;
|
|
104
101
|
typeface?: undefined;
|
|
105
102
|
panose?: undefined;
|
|
106
|
-
fontFamilyCss?: undefined;
|
|
107
103
|
} | {
|
|
108
104
|
fontSizePt: number;
|
|
109
105
|
kern: any;
|
|
110
106
|
typeface: any;
|
|
111
107
|
panose: any;
|
|
112
|
-
fontFamilyCss: any;
|
|
113
108
|
};
|
|
114
109
|
getDocumentFonts(): string;
|
|
115
110
|
getDocumentInternalId(): void;
|
|
@@ -44,13 +44,6 @@ export function exportSchemaToJson(params: ExportParams): XmlReadyNode;
|
|
|
44
44
|
* @returns {XmlReadyNode} JSON of the XML-ready paragraph node
|
|
45
45
|
*/
|
|
46
46
|
export function translateParagraphNode(params: any): XmlReadyNode;
|
|
47
|
-
/**
|
|
48
|
-
* Generate the w:pPr props for a paragraph node
|
|
49
|
-
*
|
|
50
|
-
* @param {SchemaNode} node
|
|
51
|
-
* @returns {XmlReadyNode} The paragraph properties node
|
|
52
|
-
*/
|
|
53
|
-
export function generateParagraphProperties(node: SchemaNode): XmlReadyNode;
|
|
54
47
|
/**
|
|
55
48
|
* Helper function to be used for text node translation
|
|
56
49
|
* Also used for transforming text annotations for the final submit
|
|
@@ -60,13 +53,6 @@ export function generateParagraphProperties(node: SchemaNode): XmlReadyNode;
|
|
|
60
53
|
* @returns {XmlReadyNode} The translated text node
|
|
61
54
|
*/
|
|
62
55
|
export function getTextNodeForExport(text: string, marks: any[], params: any): XmlReadyNode;
|
|
63
|
-
/**
|
|
64
|
-
* Wrap a text node in a run
|
|
65
|
-
*
|
|
66
|
-
* @param {XmlReadyNode} node
|
|
67
|
-
* @returns {XmlReadyNode} The wrapped run node
|
|
68
|
-
*/
|
|
69
|
-
export function wrapTextInRun(nodeOrNodes: any, marks: any): XmlReadyNode;
|
|
70
56
|
/**
|
|
71
57
|
* Generate a w:rPr node (run properties) from marks
|
|
72
58
|
*
|
|
@@ -93,6 +79,7 @@ export function processLinkContentNode(node: any): any;
|
|
|
93
79
|
* @returns {string} The new relationship ID
|
|
94
80
|
*/
|
|
95
81
|
export function addNewLinkRelationship(params: ExportParams, link: string): string;
|
|
82
|
+
export function translateImageNode(params: any, imageSize: any): any;
|
|
96
83
|
export function translateHardBreak(params: any): {
|
|
97
84
|
name: string;
|
|
98
85
|
elements: {
|
|
@@ -103,7 +90,6 @@ export function translateHardBreak(params: any): {
|
|
|
103
90
|
};
|
|
104
91
|
}[];
|
|
105
92
|
};
|
|
106
|
-
export function isLineBreakOnlyRun(node: any): any;
|
|
107
93
|
export class DocxExporter {
|
|
108
94
|
constructor(converter: any);
|
|
109
95
|
converter: any;
|
|
@@ -11,13 +11,9 @@ export function pixelsToHalfPoints(pixels: any): number;
|
|
|
11
11
|
export function halfPointToPoints(halfPoints: any): number;
|
|
12
12
|
export function eigthPointsToPixels(eigthPoints: any): number;
|
|
13
13
|
export function pixelsToEightPoints(pixels: any): number;
|
|
14
|
-
export function rotToDegrees(rot: any): number;
|
|
15
|
-
export function degreesToRot(degrees: any): number;
|
|
16
14
|
export function getArrayBufferFromUrl(input: any, isHeadless: any): Promise<ArrayBuffer>;
|
|
17
15
|
export function getContentTypesFromXml(contentTypesXml: any): string[];
|
|
18
16
|
export function getHexColorFromDocxSystem(docxColor: any): string;
|
|
19
|
-
export function getDocxHighlightKeywordFromHex(hexColor: any): any;
|
|
20
|
-
export function normalizeHexColor(hex: any): any;
|
|
21
17
|
export function isValidHexColor(color: any): boolean;
|
|
22
18
|
export function rgbToHex(rgb: any): string;
|
|
23
19
|
export function ptToTwips(pt: any): number;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated This handler is deprecated in favor of v3 bookmark translators.
|
|
3
|
-
* Kept for reference for custom mark logic that needs migration.
|
|
4
|
-
* TODO: Migrate custom mark logic to a proper system
|
|
5
|
-
*/
|
|
6
1
|
/**
|
|
7
2
|
* @type {import("docxImporter").NodeHandler}
|
|
8
3
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export function handleImageImport(node: any, currentFileName: any, params: any): any;
|
|
1
2
|
/**
|
|
2
3
|
* @type {import("docxImporter").NodeHandler}
|
|
3
4
|
*/
|
|
4
5
|
export const handleDrawingNode: any;
|
|
5
|
-
export function handleImageImport(node: any, filename: string | null, params?: any): any | null;
|
|
6
6
|
/**
|
|
7
7
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
8
8
|
*/
|
|
@@ -17,15 +17,3 @@ export function handleStyleChangeMarks(rPr: XmlNode, currentMarks: PmMarkJson[])
|
|
|
17
17
|
* @returns {PmMarkJson[]}
|
|
18
18
|
*/
|
|
19
19
|
export function createImportMarks(marks: PmMarkJson[]): PmMarkJson[];
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param {string} markType
|
|
23
|
-
* @param attributes
|
|
24
|
-
* @returns {*}
|
|
25
|
-
*/
|
|
26
|
-
export function getMarkValue(markType: string, attributes: any, docx: any): any;
|
|
27
|
-
export function getFontFamilyValue(attributes: any, docx: any): any;
|
|
28
|
-
export function getIndentValue(attributes: any): string;
|
|
29
|
-
export function getLineHeightValue(attributes: any): string;
|
|
30
|
-
export function getHighLightValue(attributes: any): string;
|
|
31
|
-
export function getStrikeValue(attributes: any): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @type {import("
|
|
2
|
+
* @type {import("docxImporter").NodeHandler}
|
|
3
3
|
*/
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export const handleRunNode: any;
|
|
5
|
+
/**
|
|
6
|
+
* @type {import("docxImporter").NodeHandlerEntry}
|
|
7
|
+
*/
|
|
8
|
+
export const runNodeHandlerEntity: any;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {XmlNode} node
|
|
4
|
+
* @param {ParsedDocx} docx
|
|
5
|
+
* @param {NodeListHandler} nodeListHandler
|
|
6
|
+
* @param {boolean} insideTrackChange
|
|
7
|
+
* @returns {{type: string, content: *, attrs: {borders: *, tableWidth: *, tableWidthType: *}}}
|
|
8
|
+
*/
|
|
9
|
+
export function handleTableNode(node: XmlNode, params: any): {
|
|
10
|
+
type: string;
|
|
11
|
+
content: any;
|
|
12
|
+
attrs: {
|
|
13
|
+
borders: any;
|
|
14
|
+
tableWidth: any;
|
|
15
|
+
tableWidthType: any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
1
18
|
/**
|
|
2
19
|
*
|
|
3
20
|
* @param tblStyleTag
|
|
@@ -12,7 +29,12 @@ export function getReferencedTableStyles(tblStyleTag: any, docx: ParsedDocx): {
|
|
|
12
29
|
rowBorders: {};
|
|
13
30
|
basedOn: any;
|
|
14
31
|
} | null;
|
|
32
|
+
/**
|
|
33
|
+
* @type {import("docxImporter").NodeHandler}
|
|
34
|
+
*/
|
|
35
|
+
export const handleAllTableNodes: any;
|
|
15
36
|
/**
|
|
16
37
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
17
38
|
*/
|
|
18
39
|
export const tableNodeHandlerEntity: any;
|
|
40
|
+
export function getGridColumnWidths(tableNode: any): any;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} RegisteredHandlers
|
|
3
|
+
*/
|
|
4
|
+
export const registeredHandlers: Readonly<{
|
|
5
|
+
'w:br': import("../node-translator/node-translator.js").NodeTranslator;
|
|
6
|
+
'w:tab': import("../node-translator/node-translator.js").NodeTranslator;
|
|
7
|
+
'w:p': import("../node-translator/node-translator.js").NodeTranslator;
|
|
8
|
+
}>;
|
|
3
9
|
export type RegisteredHandlers = any;
|
|
@@ -9,19 +9,12 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export function createSingleAttrPropertyHandler(xmlName: string, sdName?: string | null, attrName?: string, transformEncode?: Function, transformDecode?: Function): import("@translator").NodeTranslatorConfig;
|
|
11
11
|
/**
|
|
12
|
-
* Helper to create property handlers for measurement attributes (
|
|
12
|
+
* Helper to create property handlers for measurement attributes (w:w and w:type)
|
|
13
13
|
* @param {string} xmlName The XML attribute name (with namespace).
|
|
14
14
|
* @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
15
15
|
* @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
|
|
16
16
|
*/
|
|
17
17
|
export function createMeasurementPropertyHandler(xmlName: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
18
|
-
/**
|
|
19
|
-
* Helper to create property handlers for border attributes (CT_Border xml type)
|
|
20
|
-
* @param {string} [xmlName] The XML element name (with namespace).
|
|
21
|
-
* @param {string|null} [sdName] The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
22
|
-
* @returns {import('@translator').NodeTranslatorConfig} The border property handler config with xmlName, sdName, encode, and decode functions.
|
|
23
|
-
*/
|
|
24
|
-
export function createBorderPropertyHandler(xmlName?: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
25
18
|
/**
|
|
26
19
|
* Encodes properties of a node using provided translators and adds them to the attributes object.
|
|
27
20
|
* @param {object} [node] The node containing elements to be encoded.
|
|
@@ -39,7 +32,7 @@ export function encodeProperties(node?: object, translatorsByXmlName?: object, a
|
|
|
39
32
|
export function decodeProperties(translatorsBySdName?: object, properties?: object): any[];
|
|
40
33
|
export function generateV2HandlerEntity(handlerName: string, translator: import("../node-translator/").NodeTranslator): import("../../v2/importer/docxImporter").NodeHandlerEntry;
|
|
41
34
|
export function createAttributeHandler(xmlName?: string, sdName?: string | null, transformEncode?: any, transformDecode?: any): import("@translator").AttrConfig;
|
|
42
|
-
export function parseBoolean(value: string): boolean
|
|
43
|
-
export function booleanToString(value: boolean): string
|
|
35
|
+
export function parseBoolean(value: string): boolean;
|
|
36
|
+
export function booleanToString(value: boolean): string;
|
|
44
37
|
export function parseInteger(value: any): number | undefined;
|
|
45
38
|
export function integerToString(value: any): string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function parseParagraphBorders(pBdr: any): {};
|
|
2
2
|
export function getParagraphIndent(node: any, docx: any, styleId?: string): any;
|
|
3
|
-
export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[]
|
|
3
|
+
export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[]): any;
|
|
4
4
|
export function getDefaultParagraphStyle(docx: any, styleId?: string): any;
|
|
5
5
|
export function preProcessNodesForFldChar(nodes?: any[]): any[];
|
|
6
6
|
export function processCombinedNodesForFldChar(nodesToCombine?: any[]): any[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @param {Object} options
|
|
3
3
|
* @returns {{type: string, content: (*|*[]), attrs: {}}}
|
|
4
4
|
*/
|
|
5
|
-
export function handleTableCellNode({ params, node, table, row, rowBorders, styleTag, columnIndex, columnWidth,
|
|
5
|
+
export function handleTableCellNode({ params, node, table, row, rowBorders, styleTag, columnIndex, columnWidth, }: any): {
|
|
6
6
|
type: string;
|
|
7
7
|
content: (any | any[]);
|
|
8
8
|
attrs: {};
|
|
@@ -21,14 +21,7 @@ export const TranslatorTypes: Readonly<{
|
|
|
21
21
|
*/
|
|
22
22
|
/** @typedef {import('../../v2/importer/types').NodeHandlerParams} SCEncoderConfig */
|
|
23
23
|
/** @typedef {import('../../v2/types').SuperDocNode} SCEncoderResult */
|
|
24
|
-
/**
|
|
25
|
-
* @typedef {Object} SCDecoderConfig
|
|
26
|
-
* @property {{ attrs?: any, marks?: any[], type: string, content?: any[] }} node
|
|
27
|
-
* @property {any[]} [children]
|
|
28
|
-
* @property {any[]} [relationships]
|
|
29
|
-
* @property {Record<string, any>} [extraParams]
|
|
30
|
-
* @property {import('../../../Editor.js').Editor} [editor]
|
|
31
|
-
*/
|
|
24
|
+
/** @typedef {{ node: { attrs?: any, marks?: any[], type: string }, children?: any[], relationships?: any[] }} SCDecoderConfig */
|
|
32
25
|
/** @typedef {{ name: string, attributes?: any, elements: any[] }} SCDecoderResult */
|
|
33
26
|
/**
|
|
34
27
|
* @callback NodeTranslatorEncodeFn
|
|
@@ -157,12 +150,9 @@ export type SCDecoderConfig = {
|
|
|
157
150
|
attrs?: any;
|
|
158
151
|
marks?: any[];
|
|
159
152
|
type: string;
|
|
160
|
-
content?: any[];
|
|
161
153
|
};
|
|
162
154
|
children?: any[];
|
|
163
155
|
relationships?: any[];
|
|
164
|
-
extraParams?: Record<string, any>;
|
|
165
|
-
editor?: import("../../../Editor.js").Editor;
|
|
166
156
|
};
|
|
167
157
|
export type SCDecoderResult = {
|
|
168
158
|
name: string;
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
export const BlockNodePluginKey: PluginKey<any>;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef {import('prosemirror-model').Node} ProseMirrorNode
|
|
4
|
-
* @typedef {import('prosemirror-state').Transaction} Transaction
|
|
5
|
-
*/
|
|
6
2
|
/**
|
|
7
3
|
* Block node information object
|
|
8
4
|
* @typedef {Object} BlockNodeInfo
|
|
9
|
-
* @property {
|
|
5
|
+
* @property {Object} node - The block node
|
|
10
6
|
* @property {number} pos - Position in the document
|
|
11
7
|
*/
|
|
12
|
-
/**
|
|
13
|
-
* Configuration options for BlockNode
|
|
14
|
-
* @typedef {Object} BlockNodeOptions
|
|
15
|
-
* @category Options
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Attributes for block nodes
|
|
19
|
-
* @typedef {Object} BlockNodeAttributes
|
|
20
|
-
* @category Attributes
|
|
21
|
-
* @property {string} [sdBlockId] @internal Unique identifier for the block
|
|
22
|
-
*/
|
|
23
8
|
/**
|
|
24
9
|
* @module BlockNode
|
|
25
10
|
* @sidebarTitle Block Node
|
|
26
11
|
* @snippetPath /snippets/extensions/block-node.mdx
|
|
27
12
|
*/
|
|
28
13
|
export const BlockNode: Extension;
|
|
29
|
-
export function nodeAllowsSdBlockIdAttr(node:
|
|
30
|
-
export function nodeNeedsSdBlockId(node:
|
|
31
|
-
export function checkForNewBlockNodesInTrs(transactions:
|
|
32
|
-
export type ProseMirrorNode = import("prosemirror-model").Node;
|
|
33
|
-
export type Transaction = import("prosemirror-state").Transaction;
|
|
14
|
+
export function nodeAllowsSdBlockIdAttr(node: any): boolean;
|
|
15
|
+
export function nodeNeedsSdBlockId(node: any): boolean;
|
|
16
|
+
export function checkForNewBlockNodesInTrs(transactions: ArrayLike<any>): boolean;
|
|
34
17
|
/**
|
|
35
18
|
* Block node information object
|
|
36
19
|
*/
|
|
@@ -38,19 +21,11 @@ export type BlockNodeInfo = {
|
|
|
38
21
|
/**
|
|
39
22
|
* - The block node
|
|
40
23
|
*/
|
|
41
|
-
node:
|
|
24
|
+
node: any;
|
|
42
25
|
/**
|
|
43
26
|
* - Position in the document
|
|
44
27
|
*/
|
|
45
28
|
pos: number;
|
|
46
29
|
};
|
|
47
|
-
/**
|
|
48
|
-
* Configuration options for BlockNode
|
|
49
|
-
*/
|
|
50
|
-
export type BlockNodeOptions = any;
|
|
51
|
-
/**
|
|
52
|
-
* Attributes for block nodes
|
|
53
|
-
*/
|
|
54
|
-
export type BlockNodeAttributes = any;
|
|
55
30
|
import { PluginKey } from 'prosemirror-state';
|
|
56
31
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for Bold
|
|
3
|
-
* @typedef {Object} BoldOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
* @property {Object} [htmlAttributes] HTML attributes for the strong element
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Attributes for bold marks
|
|
9
|
-
* @typedef {Object} BoldAttributes
|
|
10
|
-
* @category Attributes
|
|
11
|
-
* @property {string} [value] Bold weight value ('0' renders as normal)
|
|
12
|
-
*/
|
|
13
1
|
/**
|
|
14
2
|
* @module Bold
|
|
15
3
|
* @sidebarTitle Bold
|
|
@@ -18,12 +6,4 @@
|
|
|
18
6
|
* @shortcut Mod-B | toggleBold | Toggle bold formatting (uppercase)
|
|
19
7
|
*/
|
|
20
8
|
export const Bold: Mark;
|
|
21
|
-
/**
|
|
22
|
-
* Configuration options for Bold
|
|
23
|
-
*/
|
|
24
|
-
export type BoldOptions = any;
|
|
25
|
-
/**
|
|
26
|
-
* Attributes for bold marks
|
|
27
|
-
*/
|
|
28
|
-
export type BoldAttributes = any;
|
|
29
9
|
import { Mark } from '@core/index.js';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { BookmarkEnd } from "./bookmark-end.js";
|
|
1
|
+
export * from "./bookmarks";
|
|
@@ -1,14 +1,2 @@
|
|
|
1
1
|
export const BulletList: Node;
|
|
2
|
-
/**
|
|
3
|
-
* Configuration options for BulletList
|
|
4
|
-
*/
|
|
5
|
-
export type BulletListOptions = any;
|
|
6
|
-
/**
|
|
7
|
-
* Attributes for bullet list nodes
|
|
8
|
-
*/
|
|
9
|
-
export type BulletListAttributes = any;
|
|
10
|
-
/**
|
|
11
|
-
* Commands provided by BulletList extension
|
|
12
|
-
*/
|
|
13
|
-
export type BulletListCommands = any;
|
|
14
2
|
import { Node } from '@core/index.js';
|
|
@@ -3,24 +3,6 @@
|
|
|
3
3
|
* @typedef {string} ColorValue
|
|
4
4
|
* @description Accepts hex colors (#ff0000), rgb(255,0,0), or named colors (red)
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Configuration options for Color
|
|
8
|
-
* @typedef {Object} ColorOptions
|
|
9
|
-
* @category Options
|
|
10
|
-
* @property {string[]} [types=['textStyle']] Mark types to add color support to
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Attributes for color marks
|
|
14
|
-
* @typedef {Object} ColorAttributes
|
|
15
|
-
* @category Attributes
|
|
16
|
-
* @property {ColorValue} [color] Text color value
|
|
17
|
-
* @example
|
|
18
|
-
* // Apply color to selected text
|
|
19
|
-
* editor.commands.setColor('#ff0000')
|
|
20
|
-
*
|
|
21
|
-
* // Remove color
|
|
22
|
-
* editor.commands.unsetColor()
|
|
23
|
-
*/
|
|
24
6
|
/**
|
|
25
7
|
* @module Color
|
|
26
8
|
* @sidebarTitle Color
|
|
@@ -31,12 +13,4 @@ export const Color: Extension;
|
|
|
31
13
|
* Color value format
|
|
32
14
|
*/
|
|
33
15
|
export type ColorValue = string;
|
|
34
|
-
/**
|
|
35
|
-
* Configuration options for Color
|
|
36
|
-
*/
|
|
37
|
-
export type ColorOptions = any;
|
|
38
|
-
/**
|
|
39
|
-
* Attributes for color marks
|
|
40
|
-
*/
|
|
41
|
-
export type ColorAttributes = any;
|
|
42
16
|
import { Extension } from '@core/index.js';
|
|
@@ -13,28 +13,6 @@
|
|
|
13
13
|
* @property {ContentBlockSize} [size] - Size and position configuration
|
|
14
14
|
* @property {string} [background] - Background color (hex, rgb, or named color)
|
|
15
15
|
*/
|
|
16
|
-
/**
|
|
17
|
-
* Configuration options for ContentBlock
|
|
18
|
-
* @typedef {Object} ContentBlockOptions
|
|
19
|
-
* @category Options
|
|
20
|
-
* @property {Object} [htmlAttributes] HTML attributes for the block element
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* Attributes for content blocks
|
|
24
|
-
* @typedef {Object} ContentBlockAttributes
|
|
25
|
-
* @category Attributes
|
|
26
|
-
* @property {boolean} [horizontalRule=false] Whether this block is a horizontal rule
|
|
27
|
-
* @property {ContentBlockSize} [size] Size and position of the content block
|
|
28
|
-
* @property {string} [background] Background color for the block
|
|
29
|
-
* @property {Object} [drawingContent] @internal Internal drawing data
|
|
30
|
-
* @property {Object} [attributes] @internal Additional internal attributes
|
|
31
|
-
* @example
|
|
32
|
-
* // Insert a custom content block
|
|
33
|
-
* editor.commands.insertContentBlock({
|
|
34
|
-
* size: { width: '100%', height: 2 },
|
|
35
|
-
* background: '#e5e7eb'
|
|
36
|
-
* })
|
|
37
|
-
*/
|
|
38
16
|
/**
|
|
39
17
|
* @module ContentBlock
|
|
40
18
|
* @sidebarTitle Content Block
|
|
@@ -79,12 +57,4 @@ export type ContentBlockConfig = {
|
|
|
79
57
|
*/
|
|
80
58
|
background?: string;
|
|
81
59
|
};
|
|
82
|
-
/**
|
|
83
|
-
* Configuration options for ContentBlock
|
|
84
|
-
*/
|
|
85
|
-
export type ContentBlockOptions = any;
|
|
86
|
-
/**
|
|
87
|
-
* Attributes for content blocks
|
|
88
|
-
*/
|
|
89
|
-
export type ContentBlockAttributes = any;
|
|
90
60
|
import { Node } from '@core/index.js';
|
|
@@ -5,18 +5,6 @@
|
|
|
5
5
|
* @property {Object|null} preservedSelection - Stored selection
|
|
6
6
|
* @property {boolean} showVisualSelection - Whether to show selection decoration
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* Configuration options for CustomSelection
|
|
10
|
-
* @typedef {Object} CustomSelectionOptions
|
|
11
|
-
* @category Options
|
|
12
|
-
* @example
|
|
13
|
-
* // CustomSelection works automatically
|
|
14
|
-
* new SuperDoc({
|
|
15
|
-
* selector: '#editor',
|
|
16
|
-
* document: 'document.docx'
|
|
17
|
-
* // Selection handling is built-in
|
|
18
|
-
* });
|
|
19
|
-
*/
|
|
20
8
|
/**
|
|
21
9
|
* Plugin key for custom selection management
|
|
22
10
|
* @private
|
|
@@ -45,9 +33,5 @@ export type SelectionState = {
|
|
|
45
33
|
*/
|
|
46
34
|
showVisualSelection: boolean;
|
|
47
35
|
};
|
|
48
|
-
/**
|
|
49
|
-
* Configuration options for CustomSelection
|
|
50
|
-
*/
|
|
51
|
-
export type CustomSelectionOptions = any;
|
|
52
36
|
import { PluginKey } from 'prosemirror-state';
|
|
53
37
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for Document
|
|
3
|
-
* @typedef {Object} DocumentOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
* @example
|
|
6
|
-
* // Document node is the root - always included
|
|
7
|
-
* new SuperDoc({
|
|
8
|
-
* selector: '#editor',
|
|
9
|
-
* document: 'document.docx',
|
|
10
|
-
* // Document node wraps all content
|
|
11
|
-
* });
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Attributes for document nodes
|
|
15
|
-
* @typedef {Object} DocumentAttributes
|
|
16
|
-
* @category Attributes
|
|
17
|
-
* @property {Object} [attributes] @internal Internal document attributes
|
|
18
|
-
*/
|
|
19
1
|
/**
|
|
20
2
|
* @module Document
|
|
21
3
|
* @sidebarTitle Document
|
|
22
4
|
* @snippetPath /snippets/extensions/document.mdx
|
|
23
5
|
*/
|
|
24
6
|
export const Document: Node;
|
|
25
|
-
/**
|
|
26
|
-
* Configuration options for Document
|
|
27
|
-
*/
|
|
28
|
-
export type DocumentOptions = any;
|
|
29
|
-
/**
|
|
30
|
-
* Attributes for document nodes
|
|
31
|
-
*/
|
|
32
|
-
export type DocumentAttributes = any;
|
|
33
7
|
import { Node } from '@core/index.js';
|
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for DropCursor
|
|
3
|
-
* @typedef {Object} DropCursorOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
* @property {string} [color='currentColor'] CSS color for the drop cursor indicator
|
|
6
|
-
* @property {number} [width=2] Width of the drop cursor line in pixels
|
|
7
|
-
* @property {string} [class] Optional CSS class to apply to the drop cursor element
|
|
8
|
-
* @example
|
|
9
|
-
* // Customize drop cursor appearance
|
|
10
|
-
* const ConfiguredDropCursor = DropCursor.configure({
|
|
11
|
-
* color: '#3b82f6',
|
|
12
|
-
* width: 3,
|
|
13
|
-
* class: 'custom-drop-cursor'
|
|
14
|
-
* });
|
|
15
|
-
*
|
|
16
|
-
* // Use in SuperDoc
|
|
17
|
-
* new SuperDoc({
|
|
18
|
-
* selector: '#editor',
|
|
19
|
-
* document: 'document.docx',
|
|
20
|
-
* editorExtensions: [ConfiguredDropCursor]
|
|
21
|
-
* });
|
|
22
|
-
*/
|
|
23
1
|
/**
|
|
24
2
|
* @module DropCursor
|
|
25
3
|
* @sidebarTitle Drop Cursor
|
|
26
4
|
* @snippetPath /snippets/extensions/dropcursor.mdx
|
|
27
5
|
*/
|
|
28
6
|
export const DropCursor: Extension;
|
|
29
|
-
/**
|
|
30
|
-
* Configuration options for DropCursor
|
|
31
|
-
*/
|
|
32
|
-
export type DropCursorOptions = any;
|
|
33
7
|
import { Extension } from '@core/index.js';
|