@harbour-enterprises/superdoc 0.20.0-next.15 → 0.20.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/chunks/{PdfViewer-DuEWa8ox.cjs → PdfViewer-B9b7_8E2.cjs} +1 -1
- package/dist/chunks/{PdfViewer-D3gJ5ozH.es.js → PdfViewer-DbuZR81Q.es.js} +1 -1
- package/dist/chunks/{index-DiSIyVKk.es.js → index-CEAEymUl.es.js} +9 -32
- package/dist/chunks/{index-D2h9q27o.cjs → index-CLepjsej.cjs} +9 -32
- package/dist/chunks/{super-editor.es-4Ig7dBJr.es.js → super-editor.es-C7rC3O3K.es.js} +3084 -6128
- package/dist/chunks/{super-editor.es-lzaBZOn2.cjs → super-editor.es-TdXXCNpJ.cjs} +3084 -6128
- 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-BZ638uQi.js} +2133 -4142
- package/dist/super-editor/chunks/{docx-zipper-DWDJGX0b.js → docx-zipper-B-DSvrA8.js} +1 -1
- package/dist/super-editor/chunks/{editor-BUCOmU2Y.js → editor-JXnNPHDg.js} +1558 -2538
- package/dist/super-editor/chunks/{toolbar-CiBIcgiI.js → toolbar-CGu2Zc7R.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 +3721 -6788
- 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
|
@@ -3,27 +3,6 @@
|
|
|
3
3
|
* @typedef {string} FontFamilyValue
|
|
4
4
|
* @description CSS font-family string (e.g., 'Arial', 'Times New Roman', 'sans-serif')
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Configuration options for FontFamily
|
|
8
|
-
* @typedef {Object} FontFamilyOptions
|
|
9
|
-
* @category Options
|
|
10
|
-
* @property {string[]} [types=['textStyle']] Mark types to add font family support to
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Attributes for font family marks
|
|
14
|
-
* @typedef {Object} FontFamilyAttributes
|
|
15
|
-
* @category Attributes
|
|
16
|
-
* @property {FontFamilyValue} [fontFamily] Font family for text
|
|
17
|
-
* @example
|
|
18
|
-
* // Set font family on selected text
|
|
19
|
-
* editor.commands.setFontFamily('Arial')
|
|
20
|
-
*
|
|
21
|
-
* // Change to serif font
|
|
22
|
-
* editor.commands.setFontFamily('Georgia, serif')
|
|
23
|
-
*
|
|
24
|
-
* // Remove custom font
|
|
25
|
-
* editor.commands.unsetFontFamily()
|
|
26
|
-
*/
|
|
27
6
|
/**
|
|
28
7
|
* @module FontFamily
|
|
29
8
|
* @sidebarTitle Font Family
|
|
@@ -34,12 +13,4 @@ export const FontFamily: Extension;
|
|
|
34
13
|
* Font family value
|
|
35
14
|
*/
|
|
36
15
|
export type FontFamilyValue = string;
|
|
37
|
-
/**
|
|
38
|
-
* Configuration options for FontFamily
|
|
39
|
-
*/
|
|
40
|
-
export type FontFamilyOptions = any;
|
|
41
|
-
/**
|
|
42
|
-
* Attributes for font family marks
|
|
43
|
-
*/
|
|
44
|
-
export type FontFamilyAttributes = any;
|
|
45
16
|
import { Extension } from '@core/index.js';
|
|
@@ -18,19 +18,6 @@
|
|
|
18
18
|
* @typedef {string|number} FontSizeValue
|
|
19
19
|
* @description Size with optional unit (e.g., '12pt', '16px', 14)
|
|
20
20
|
*/
|
|
21
|
-
/**
|
|
22
|
-
* Configuration options for FontSize
|
|
23
|
-
* @typedef {Object} FontSizeOptions
|
|
24
|
-
* @category Options
|
|
25
|
-
* @property {string[]} [types=['textStyle', 'tableCell']] - Node/mark types to add font size support to
|
|
26
|
-
* @property {FontSizeDefaults} [defaults] - Default size configuration
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* Attributes for font size
|
|
30
|
-
* @typedef {Object} FontSizeAttributes
|
|
31
|
-
* @category Attributes
|
|
32
|
-
* @property {FontSizeValue} [fontSize] - Font size with unit
|
|
33
|
-
*/
|
|
34
21
|
/**
|
|
35
22
|
* @module FontSize
|
|
36
23
|
* @sidebarTitle Font Size
|
|
@@ -62,12 +49,4 @@ export type FontSizeDefaults = {
|
|
|
62
49
|
* Font size value
|
|
63
50
|
*/
|
|
64
51
|
export type FontSizeValue = string | number;
|
|
65
|
-
/**
|
|
66
|
-
* Configuration options for FontSize
|
|
67
|
-
*/
|
|
68
|
-
export type FontSizeOptions = any;
|
|
69
|
-
/**
|
|
70
|
-
* Attributes for font size
|
|
71
|
-
*/
|
|
72
|
-
export type FontSizeAttributes = any;
|
|
73
52
|
import { Extension } from '@core/index.js';
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
* @property {string} name - Mark name
|
|
5
5
|
* @property {Object} attrs - Mark attributes
|
|
6
6
|
*/
|
|
7
|
-
/**
|
|
8
|
-
* Configuration options for FormatCommands
|
|
9
|
-
* @typedef {Object} FormatCommandsOptions
|
|
10
|
-
* @category Options
|
|
11
|
-
*/
|
|
12
7
|
/**
|
|
13
8
|
* @module FormatCommands
|
|
14
9
|
* @sidebarTitle Format Commands
|
|
@@ -29,8 +24,4 @@ export type StoredStyle = {
|
|
|
29
24
|
*/
|
|
30
25
|
attrs: any;
|
|
31
26
|
};
|
|
32
|
-
/**
|
|
33
|
-
* Configuration options for FormatCommands
|
|
34
|
-
*/
|
|
35
|
-
export type FormatCommandsOptions = any;
|
|
36
27
|
import { Extension } from '@core/index.js';
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for Gapcursor
|
|
3
|
-
* @typedef {Object} GapcursorOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
*/
|
|
6
1
|
/**
|
|
7
2
|
* @module Gapcursor
|
|
8
3
|
* @sidebarTitle Gap Cursor
|
|
9
4
|
* @snippetPath /snippets/extensions/gapcursor.mdx
|
|
10
5
|
*/
|
|
11
6
|
export const Gapcursor: Extension;
|
|
12
|
-
/**
|
|
13
|
-
* Configuration options for Gapcursor
|
|
14
|
-
*/
|
|
15
|
-
export type GapcursorOptions = any;
|
|
16
7
|
import { Extension } from '@core/index.js';
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Heading attributes
|
|
3
3
|
* @typedef {Object} HeadingAttributes
|
|
4
|
-
* @category Attributes
|
|
5
4
|
* @property {number} level - Heading level (1-6)
|
|
6
5
|
*/
|
|
7
|
-
/**
|
|
8
|
-
* Configuration options for Heading
|
|
9
|
-
* @typedef {Object} HeadingOptions
|
|
10
|
-
* @category Options
|
|
11
|
-
* @property {number[]} [levels=[1,2,3,4,5,6]] - Supported heading levels
|
|
12
|
-
*/
|
|
13
6
|
/**
|
|
14
7
|
* @module Heading
|
|
15
8
|
* @sidebarTitle Heading
|
|
@@ -25,9 +18,10 @@ export const Heading: Extension;
|
|
|
25
18
|
/**
|
|
26
19
|
* Heading attributes
|
|
27
20
|
*/
|
|
28
|
-
export type HeadingAttributes =
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
export type HeadingAttributes = {
|
|
22
|
+
/**
|
|
23
|
+
* - Heading level (1-6)
|
|
24
|
+
*/
|
|
25
|
+
level: number;
|
|
26
|
+
};
|
|
33
27
|
import { Extension } from '@core/index.js';
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for Highlight
|
|
3
|
-
* @typedef {Object} HighlightOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
* @property {Object} [htmlAttributes={}] - HTML attributes for highlight elements
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Attributes for highlight marks
|
|
9
|
-
* @typedef {Object} HighlightAttributes
|
|
10
|
-
* @category Attributes
|
|
11
|
-
* @property {string} [color] - Background color (CSS color value)
|
|
12
|
-
*/
|
|
13
1
|
/**
|
|
14
2
|
* @module Highlight
|
|
15
3
|
* @sidebarTitle Highlight
|
|
@@ -17,12 +5,4 @@
|
|
|
17
5
|
* @shortcut Mod-Shift-h | toggleHighlight | Toggle highlighted formatting
|
|
18
6
|
*/
|
|
19
7
|
export const Highlight: Mark;
|
|
20
|
-
/**
|
|
21
|
-
* Configuration options for Highlight
|
|
22
|
-
*/
|
|
23
|
-
export type HighlightOptions = any;
|
|
24
|
-
/**
|
|
25
|
-
* Attributes for highlight marks
|
|
26
|
-
*/
|
|
27
|
-
export type HighlightAttributes = any;
|
|
28
8
|
import { Mark } from '@core/index.js';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @typedef {Object}
|
|
4
|
-
* @
|
|
5
|
-
* @property {number} [
|
|
6
|
-
* @property {number} [newGroupDelay=500] - Milliseconds to wait before starting a new history group
|
|
2
|
+
* History configuration
|
|
3
|
+
* @typedef {Object} HistoryConfig
|
|
4
|
+
* @property {number} [depth=100] - Maximum number of history events to store
|
|
5
|
+
* @property {number} [newGroupDelay=500] - Time in ms to group changes together
|
|
7
6
|
*/
|
|
8
7
|
/**
|
|
9
8
|
* @module History
|
|
@@ -15,7 +14,16 @@
|
|
|
15
14
|
*/
|
|
16
15
|
export const History: Extension;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
17
|
+
* History configuration
|
|
19
18
|
*/
|
|
20
|
-
export type
|
|
19
|
+
export type HistoryConfig = {
|
|
20
|
+
/**
|
|
21
|
+
* - Maximum number of history events to store
|
|
22
|
+
*/
|
|
23
|
+
depth?: number;
|
|
24
|
+
/**
|
|
25
|
+
* - Time in ms to group changes together
|
|
26
|
+
*/
|
|
27
|
+
newGroupDelay?: number;
|
|
28
|
+
};
|
|
21
29
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,85 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for Image
|
|
3
|
-
* @typedef {Object} ImageOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
* @property {boolean} [allowBase64=true] - Allow base64 encoded images
|
|
6
|
-
* @property {Object} [htmlAttributes] - Default HTML attributes for image elements
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Attributes for image nodes
|
|
10
|
-
* @typedef {Object} ImageAttributes
|
|
11
|
-
* @category Attributes
|
|
12
|
-
* @property {string} [src] - Image source URL or path
|
|
13
|
-
* @property {string} [alt='Uploaded picture'] - Alternative text for accessibility
|
|
14
|
-
* @property {string} [title] - Image title/tooltip text
|
|
15
|
-
* @property {Object} [size] - Image dimensions
|
|
16
|
-
* @property {number} [size.width] - Width in pixels
|
|
17
|
-
* @property {number} [size.height] - Height in pixels
|
|
18
|
-
* @property {Object} [padding] - Image padding/margins
|
|
19
|
-
* @property {number} [padding.left] - Left padding in pixels
|
|
20
|
-
* @property {number} [padding.top] - Top padding in pixels
|
|
21
|
-
* @property {number} [padding.bottom] - Bottom padding in pixels
|
|
22
|
-
* @property {number} [padding.right] - Right padding in pixels
|
|
23
|
-
* @property {Object} [marginOffset] - Margin offset for anchored images
|
|
24
|
-
* @property {number} [marginOffset.left] - Left margin offset
|
|
25
|
-
* @property {number} [marginOffset.top] - Top margin offset
|
|
26
|
-
* @property {string} [style] - Custom inline CSS styles
|
|
27
|
-
* @property {string} [id] @internal Image element ID
|
|
28
|
-
* @property {string} [rId] @internal Relationship ID for Word export
|
|
29
|
-
* @property {Object} [originalPadding] @internal Original padding values from Word import
|
|
30
|
-
* @property {Object} [originalAttributes] @internal Original attributes from Word import
|
|
31
|
-
* @property {boolean} [wrapTopAndBottom] @internal Wrap text above and below image
|
|
32
|
-
* @property {Object} [anchorData] @internal Anchor positioning data for Word
|
|
33
|
-
* @property {boolean} [isAnchor] @internal Whether image is anchored
|
|
34
|
-
* @property {boolean} [simplePos] @internal Simple positioning flag
|
|
35
|
-
* @property {string} [wrapText] @internal Text wrapping style
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* Options for inserting an image
|
|
39
|
-
* @typedef {Object} ImageInsertOptions
|
|
40
|
-
* @property {string} src - Image source URL or data URI
|
|
41
|
-
* @property {string} [alt] - Alternative text
|
|
42
|
-
* @property {string} [title] - Image title
|
|
43
|
-
* @property {Object} [size] - Image dimensions
|
|
44
|
-
* @property {number} [size.width] - Width in pixels
|
|
45
|
-
* @property {number} [size.height] - Height in pixels
|
|
46
|
-
*/
|
|
47
1
|
/**
|
|
48
2
|
* @module Image
|
|
49
3
|
* @sidebarTitle Image
|
|
50
4
|
* @snippetPath /snippets/extensions/image.mdx
|
|
51
5
|
*/
|
|
52
6
|
export const Image: Node;
|
|
53
|
-
/**
|
|
54
|
-
* Configuration options for Image
|
|
55
|
-
*/
|
|
56
|
-
export type ImageOptions = any;
|
|
57
|
-
/**
|
|
58
|
-
* Attributes for image nodes
|
|
59
|
-
*/
|
|
60
|
-
export type ImageAttributes = any;
|
|
61
|
-
/**
|
|
62
|
-
* Options for inserting an image
|
|
63
|
-
*/
|
|
64
|
-
export type ImageInsertOptions = {
|
|
65
|
-
/**
|
|
66
|
-
* - Image source URL or data URI
|
|
67
|
-
*/
|
|
68
|
-
src: string;
|
|
69
|
-
/**
|
|
70
|
-
* - Alternative text
|
|
71
|
-
*/
|
|
72
|
-
alt?: string;
|
|
73
|
-
/**
|
|
74
|
-
* - Image title
|
|
75
|
-
*/
|
|
76
|
-
title?: string;
|
|
77
|
-
/**
|
|
78
|
-
* - Image dimensions
|
|
79
|
-
*/
|
|
80
|
-
size?: {
|
|
81
|
-
width?: number;
|
|
82
|
-
height?: number;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
7
|
import { Node } from '@core/index.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const ImagePlaceholderPluginKey: PluginKey<any>;
|
|
2
|
+
export function ImagePlaceholderPlugin(): Plugin;
|
|
3
|
+
export function findPlaceholder(state: any, id: string): number | null;
|
|
4
|
+
import { PluginKey } from 'prosemirror-state';
|
|
5
|
+
import { Plugin } from 'prosemirror-state';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from "./getFileOpener.js";
|
|
2
2
|
export * from "./startImageUpload.js";
|
|
3
3
|
export * from "./handleImageUpload.js";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./imagePlaceholderPlugin.js";
|
|
5
5
|
export * from "./processUploadedImage.js";
|
|
6
6
|
export * from "./imagePositionPlugin.js";
|
|
7
|
-
export * from "./fileNameUtils.js";
|
|
8
|
-
export * from "./rotation.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function processUploadedImage(fileData: string | File,
|
|
2
|
-
export function getAllowedImageDimensions(width: number, height: number,
|
|
1
|
+
export function processUploadedImage(fileData: string | File, editor: any): Promise<string | any>;
|
|
2
|
+
export function getAllowedImageDimensions(width: number, height: number, editor: any): any;
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Uploads an image and inserts it into the document
|
|
3
|
+
* @category Helper
|
|
4
|
+
* @param {Object} params - Upload parameters
|
|
5
|
+
* @param {Object} params.editor - Editor instance
|
|
6
|
+
* @param {Object} params.view - Editor view
|
|
7
|
+
* @param {File} params.file - Processed image file
|
|
8
|
+
* @param {Object} params.size - Image dimensions
|
|
9
|
+
* @param {Function} params.uploadHandler - Function to handle the upload
|
|
10
|
+
* @returns {Promise<void>}
|
|
11
|
+
* @example
|
|
12
|
+
* await uploadImage({ editor, view, file, size, uploadHandler });
|
|
13
|
+
* @note Shows placeholder during upload
|
|
14
|
+
* @note Handles collaboration mode image sharing
|
|
15
|
+
*/
|
|
16
|
+
export function uploadImage({ editor, view, file, size, uploadHandler }: {
|
|
7
17
|
editor: any;
|
|
8
18
|
view: any;
|
|
9
|
-
file:
|
|
19
|
+
file: File;
|
|
10
20
|
size: any;
|
|
11
|
-
|
|
21
|
+
uploadHandler: Function;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
export function startImageUpload({ editor, view, file }: {
|
|
24
|
+
editor: any;
|
|
25
|
+
view: any;
|
|
26
|
+
file: File;
|
|
12
27
|
}): Promise<void>;
|
|
13
|
-
export function checkAndProcessImage({ getMaxContentSize, file }: {
|
|
14
|
-
getMaxContentSize: any;
|
|
15
|
-
file: any;
|
|
16
|
-
}): Promise<{
|
|
17
|
-
file: any;
|
|
18
|
-
size: {
|
|
19
|
-
width: any;
|
|
20
|
-
height: any;
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
@@ -2,7 +2,7 @@ import { History } from './history/index.js';
|
|
|
2
2
|
import { Heading } from './heading/index.js';
|
|
3
3
|
import { Document } from './document/index.js';
|
|
4
4
|
import { Text } from './text/index.js';
|
|
5
|
-
import {
|
|
5
|
+
import { RunItem } from './run-item/index.js';
|
|
6
6
|
import { BulletList } from './bullet-list/index.js';
|
|
7
7
|
import { OrderedList } from './ordered-list/index.js';
|
|
8
8
|
import { ListItem } from './list-item/index.js';
|
|
@@ -39,7 +39,6 @@ import { FieldAnnotation } from './field-annotation/index.js';
|
|
|
39
39
|
import { fieldAnnotationHelpers } from './field-annotation/index.js';
|
|
40
40
|
import { Image } from './image/index.js';
|
|
41
41
|
import { BookmarkStart } from './bookmarks/index.js';
|
|
42
|
-
import { BookmarkEnd } from './bookmarks/index.js';
|
|
43
42
|
import { PopoverPlugin } from './popover-plugin/index.js';
|
|
44
43
|
import { Mention } from './mention/index.js';
|
|
45
44
|
import { Collaboration } from './collaboration/index.js';
|
|
@@ -63,4 +62,4 @@ import { DocumentSection } from './structured-content/index.js';
|
|
|
63
62
|
import { NodeResizer } from './noderesizer/index.js';
|
|
64
63
|
import { CustomSelection } from './custom-selection/index.js';
|
|
65
64
|
import { TextTransform } from './text-transform/index.js';
|
|
66
|
-
export { History, Heading, Document, Text,
|
|
65
|
+
export { History, Heading, Document, Text, RunItem, BulletList, OrderedList, ListItem, Paragraph, CommentRangeStart, CommentRangeEnd, CommentReference, TabNode, LineBreak, HardBreak, Bold, Italic, Underline, Highlight, Strike, Color, FontFamily, FontSize, TextAlign, TextIndent, TextStyle, LineHeight, FormatCommands, CommentsPlugin, Gapcursor, Table, TableRow, TableCell, TableHeader, Placeholder, DropCursor, BlockNode, FieldAnnotation, fieldAnnotationHelpers, Image, BookmarkStart, PopoverPlugin, Mention, Collaboration, CollaborationCursor, TrackChanges, TrackInsert, TrackDelete, TrackFormat, CommentsMark, trackChangesHelpers, AiMark, AiAnimationMark, AiLoaderNode, AiPlugin, Search, StructuredContent, StructuredContentBlock, DocumentSection, NodeResizer, CustomSelection, TextTransform };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for Italic
|
|
3
|
-
* @typedef {Object} ItalicOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
* @property {Object} [htmlAttributes={}] - HTML attributes for italic elements
|
|
6
|
-
*/
|
|
7
1
|
/**
|
|
8
2
|
* @module Italic
|
|
9
3
|
* @sidebarTitle Italic
|
|
@@ -12,8 +6,4 @@
|
|
|
12
6
|
* @shortcut Mod-I | toggleItalic | Toggle italic formatting (uppercase)
|
|
13
7
|
*/
|
|
14
8
|
export const Italic: Mark;
|
|
15
|
-
/**
|
|
16
|
-
* Configuration options for Italic
|
|
17
|
-
*/
|
|
18
|
-
export type ItalicOptions = any;
|
|
19
9
|
import { Mark } from '@core/index.js';
|
|
@@ -1,56 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for LineBreak
|
|
3
|
-
* @typedef {Object} LineBreakOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Attributes for line break nodes
|
|
8
|
-
* @typedef {Object} LineBreakAttributes
|
|
9
|
-
* @category Attributes
|
|
10
|
-
* @property {string} [lineBreakType] @internal Type of line break - passthrough in this node
|
|
11
|
-
* @property {string} [clear] @internal Clear attribute - passthrough in this node
|
|
12
|
-
*/
|
|
13
1
|
/**
|
|
14
2
|
* @module LineBreak
|
|
15
3
|
* @sidebarTitle Line Break
|
|
16
4
|
* @snippetPath /snippets/extensions/line-break.mdx
|
|
17
5
|
*/
|
|
18
6
|
export const LineBreak: Node;
|
|
19
|
-
/**
|
|
20
|
-
* Configuration options for HardBreak
|
|
21
|
-
* @typedef {Object} HardBreakOptions
|
|
22
|
-
* @category Options
|
|
23
|
-
* @property {Object} [htmlAttributes] - HTML attributes for the break element
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
* Attributes for hard break nodes
|
|
27
|
-
* @typedef {Object} HardBreakAttributes
|
|
28
|
-
* @category Attributes
|
|
29
|
-
* @property {string} [pageBreakSource] @internal Source of the page break
|
|
30
|
-
* @property {string} [pageBreakType] @internal Type of page break
|
|
31
|
-
* @property {string} [lineBreakType] @internal Type of line break - passthrough in this node
|
|
32
|
-
* @property {string} [clear] @internal Clear attribute - passthrough in this node
|
|
33
|
-
*/
|
|
34
7
|
/**
|
|
35
8
|
* @module HardBreak
|
|
36
9
|
* @sidebarTitle Hard Break
|
|
37
10
|
* @snippetPath /snippets/extensions/hard-break.mdx
|
|
38
11
|
*/
|
|
39
12
|
export const HardBreak: Node;
|
|
40
|
-
/**
|
|
41
|
-
* Configuration options for LineBreak
|
|
42
|
-
*/
|
|
43
|
-
export type LineBreakOptions = any;
|
|
44
|
-
/**
|
|
45
|
-
* Attributes for line break nodes
|
|
46
|
-
*/
|
|
47
|
-
export type LineBreakAttributes = any;
|
|
48
|
-
/**
|
|
49
|
-
* Configuration options for HardBreak
|
|
50
|
-
*/
|
|
51
|
-
export type HardBreakOptions = any;
|
|
52
|
-
/**
|
|
53
|
-
* Attributes for hard break nodes
|
|
54
|
-
*/
|
|
55
|
-
export type HardBreakAttributes = any;
|
|
56
13
|
import { Node } from '@core/index.js';
|
|
@@ -3,20 +3,6 @@
|
|
|
3
3
|
* @typedef {string|number} LineHeightValue
|
|
4
4
|
* @description Line height as number (1.5) or string with unit ('1.5em', '24px')
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* Configuration options for LineHeight
|
|
8
|
-
* @typedef {Object} LineHeightOptions
|
|
9
|
-
* @category Options
|
|
10
|
-
* @property {string[]} [types=['heading', 'paragraph']] - Block types to add line height support to
|
|
11
|
-
* @property {Object} [defaults] - Default configuration
|
|
12
|
-
* @property {string} [defaults.unit=''] - Default unit for line height values
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Attributes for line height
|
|
16
|
-
* @typedef {Object} LineHeightAttributes
|
|
17
|
-
* @category Attributes
|
|
18
|
-
* @property {LineHeightValue} [lineHeight] - Line height value
|
|
19
|
-
*/
|
|
20
6
|
/**
|
|
21
7
|
* @module LineHeight
|
|
22
8
|
* @sidebarTitle Line Height
|
|
@@ -27,12 +13,4 @@ export const LineHeight: Extension;
|
|
|
27
13
|
* Line height value
|
|
28
14
|
*/
|
|
29
15
|
export type LineHeightValue = string | number;
|
|
30
|
-
/**
|
|
31
|
-
* Configuration options for LineHeight
|
|
32
|
-
*/
|
|
33
|
-
export type LineHeightOptions = any;
|
|
34
|
-
/**
|
|
35
|
-
* Attributes for line height
|
|
36
|
-
*/
|
|
37
|
-
export type LineHeightAttributes = any;
|
|
38
16
|
import { Extension } from '@core/index.js';
|
|
@@ -1,39 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Target frame options
|
|
3
|
-
* @typedef {'_top' | '_self' | '_parent' | '_blank' | string} TargetFrameOptions
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Configuration options for Link
|
|
7
|
-
* @typedef {Object} LinkOptions
|
|
8
|
-
* @category Options
|
|
9
|
-
* @property {string[]} [protocols=['http', 'https']] - Allowed URL protocols
|
|
10
|
-
* @property {Object} [htmlAttributes] - HTML attributes for link elements
|
|
11
|
-
* @property {string} [htmlAttributes.target=null] - Default link target
|
|
12
|
-
* @property {string} [htmlAttributes.rel='noopener noreferrer nofollow'] - Default rel attribute
|
|
13
|
-
* @property {string} [htmlAttributes.class=null] - CSS class
|
|
14
|
-
* @property {string} [htmlAttributes.title=null] - Title attribute
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Attributes for link marks
|
|
18
|
-
* @typedef {Object} LinkAttributes
|
|
19
|
-
* @category Attributes
|
|
20
|
-
* @property {string} [href] - URL or anchor reference
|
|
21
|
-
* @property {TargetFrameOptions} [target='_blank'] - Link target window
|
|
22
|
-
* @property {string} [rel='noopener noreferrer nofollow'] - Relationship attributes
|
|
23
|
-
* @property {string} [text] - Display text for the link
|
|
24
|
-
* @property {string} [name] - Anchor name for internal references
|
|
25
|
-
* @property {boolean} [history=true] - Whether to add to viewed hyperlinks list
|
|
26
|
-
* @property {string} [anchor] - Bookmark target name (ignored if rId and href specified)
|
|
27
|
-
* @property {string} [docLocation] - Location in target hyperlink
|
|
28
|
-
* @property {string} [tooltip] - Tooltip for the link
|
|
29
|
-
* @property {string} [rId] @internal Word relationship ID for internal links
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* Link options for setLink command
|
|
33
|
-
* @typedef {Object} SetLinkOptions
|
|
34
|
-
* @property {string} [href] - URL for the link
|
|
35
|
-
* @property {string} [text] - Display text (uses selection if omitted)
|
|
36
|
-
*/
|
|
37
1
|
/**
|
|
38
2
|
* @module Link
|
|
39
3
|
* @sidebarTitle Link
|
|
@@ -42,28 +6,36 @@
|
|
|
42
6
|
*/
|
|
43
7
|
export const Link: Mark;
|
|
44
8
|
/**
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export type TargetFrameOptions = "_top" | "_self" | "_parent" | "_blank" | string;
|
|
48
|
-
/**
|
|
49
|
-
* Configuration options for Link
|
|
50
|
-
*/
|
|
51
|
-
export type LinkOptions = any;
|
|
52
|
-
/**
|
|
53
|
-
* Attributes for link marks
|
|
9
|
+
* Link attributes
|
|
54
10
|
*/
|
|
55
|
-
export type LinkAttributes =
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
11
|
+
export type LinkAttributes = {
|
|
12
|
+
/**
|
|
13
|
+
* - URL or anchor reference
|
|
14
|
+
*/
|
|
15
|
+
href: string;
|
|
16
|
+
/**
|
|
17
|
+
* - Link target
|
|
18
|
+
*/
|
|
19
|
+
target?: string;
|
|
20
|
+
/**
|
|
21
|
+
* - Relationship attributes
|
|
22
|
+
*/
|
|
23
|
+
rel?: string;
|
|
60
24
|
/**
|
|
61
|
-
* -
|
|
25
|
+
* - Word relationship ID for internal links
|
|
62
26
|
*/
|
|
63
|
-
|
|
27
|
+
rId?: string;
|
|
64
28
|
/**
|
|
65
|
-
* - Display text
|
|
29
|
+
* - Display text for the link
|
|
66
30
|
*/
|
|
67
31
|
text?: string;
|
|
32
|
+
/**
|
|
33
|
+
* - Anchor name for internal references
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
68
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Target frame options
|
|
39
|
+
*/
|
|
40
|
+
export type TargetFrameOptions = "_top" | "_self" | "_parent" | "_blank" | string;
|
|
69
41
|
import { Mark } from '@core/index.js';
|
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
* @property {string} type - Style type ('paragraph' or 'character')
|
|
6
6
|
* @property {Object} definition - Style definition from Word
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* Configuration options for LinkedStyles
|
|
10
|
-
* @typedef {Object} LinkedStylesOptions
|
|
11
|
-
* @category Options
|
|
12
|
-
*/
|
|
13
8
|
/**
|
|
14
9
|
* @module LinkedStyles
|
|
15
10
|
* @sidebarTitle Linked Styles
|
|
@@ -33,8 +28,4 @@ export type LinkedStyle = {
|
|
|
33
28
|
*/
|
|
34
29
|
definition: any;
|
|
35
30
|
};
|
|
36
|
-
/**
|
|
37
|
-
* Configuration options for LinkedStyles
|
|
38
|
-
*/
|
|
39
|
-
export type LinkedStylesOptions = any;
|
|
40
31
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration options for ListItem
|
|
3
|
-
* @typedef {Object} ListItemOptions
|
|
4
|
-
* @category Options
|
|
5
|
-
* @property {Object} [htmlAttributes] - HTML attributes for list item elements
|
|
6
|
-
* @property {string} [bulletListTypeName='bulletList'] - Name of bullet list node type
|
|
7
|
-
* @property {string} [orderedListTypeName='orderedList'] - Name of ordered list node type
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Attributes for list item nodes
|
|
11
|
-
* @typedef {Object} ListItemAttributes
|
|
12
|
-
* @category Attributes
|
|
13
|
-
* @property {string} [markerType] - Virtual attribute for marker display
|
|
14
|
-
* @property {string} [lvlText] - Level text template for numbering
|
|
15
|
-
* @property {string} [listNumberingType] - Numbering format type
|
|
16
|
-
* @property {Array} [listLevel] - List level hierarchy
|
|
17
|
-
* @property {string} [lvlJc] - Level justification (left, right, center)
|
|
18
|
-
* @property {Object} [listParagraphProperties] - Indentation and spacing info
|
|
19
|
-
* @property {Object} [listRunProperties] - Run properties for list item
|
|
20
|
-
* @property {string} [numId] - Numbering definition ID
|
|
21
|
-
* @property {string} [numPrType='inline'] - Numbering properties type
|
|
22
|
-
* @property {string} [level] - Current nesting level
|
|
23
|
-
* @property {Object} [attributes] - Additional attributes
|
|
24
|
-
* @property {Object} [spacing] - Spacing configuration
|
|
25
|
-
* @property {Object} [indent] - Indentation settings
|
|
26
|
-
* @property {Object} [markerStyle] - Marker styling
|
|
27
|
-
* @property {string} [styleId] - Linked style ID
|
|
28
|
-
* @property {string} [customFormat] - Custom numbering format
|
|
29
|
-
* @property {string} [importedFontFamily] - Font family from import
|
|
30
|
-
* @property {string} [importedFontSize] - Font size from import
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* @module ListItem
|
|
34
|
-
* @sidebarTitle List Item
|
|
35
|
-
* @snippetPath /snippets/extensions/list-item.mdx
|
|
36
|
-
* @shortcut Enter | splitListItem | Split list item at cursor
|
|
37
|
-
* @shortcut Shift-Enter | createParagraphNear | Create paragraph in list
|
|
38
|
-
* @shortcut Tab | increaseListIndent | Increase list indentation
|
|
39
|
-
* @shortcut Shift-Tab | decreaseListIndent | Decrease list indentation
|
|
40
|
-
*/
|
|
41
1
|
export const ListItem: Node;
|
|
42
|
-
/**
|
|
43
|
-
* Configuration options for ListItem
|
|
44
|
-
*/
|
|
45
|
-
export type ListItemOptions = any;
|
|
46
|
-
/**
|
|
47
|
-
* Attributes for list item nodes
|
|
48
|
-
*/
|
|
49
|
-
export type ListItemAttributes = any;
|
|
50
2
|
import { Node } from '@core/index.js';
|