@harbour-enterprises/superdoc 0.20.2 → 0.21.0-RC2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-BceCsygM.es.js → PdfViewer-CbGuPQY8.es.js} +1 -1
- package/dist/chunks/{PdfViewer-BhwyCIho.cjs → PdfViewer-DGbJ8_qc.cjs} +1 -1
- package/dist/chunks/{index-B6tAKGVb.cjs → index-ecl0ZFNw.cjs} +14 -33
- package/dist/chunks/{index-C0kV6dM8.es.js → index-qjntJEk0.es.js} +14 -33
- package/dist/chunks/{super-editor.es-BollA_Sr.es.js → super-editor.es-BF_Xaucb.es.js} +6167 -3139
- package/dist/chunks/{super-editor.es-Dzt_HBkR.cjs → super-editor.es-CS5l-cVZ.cjs} +6167 -3139
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/style.css +38 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DyzbfydS.js → converter-DUqGq6qj.js} +4201 -2198
- package/dist/super-editor/chunks/{docx-zipper-Bk9SAmal.js → docx-zipper-CQsQR8Zs.js} +1 -1
- package/dist/super-editor/chunks/{editor-BWE7oMgS.js → editor-gMF6aWiz.js} +2539 -1559
- package/dist/super-editor/chunks/{toolbar-BmHEsvA1.js → toolbar-BxsT1ZgG.js} +11 -21
- 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/components/toolbar/format-negation.d.ts +5 -0
- package/dist/super-editor/src/core/commands/index.d.ts +1 -0
- package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +42 -0
- package/dist/super-editor/src/core/commands/types/index.d.ts +29 -1
- package/dist/super-editor/src/core/helpers/index.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +15 -1
- package/dist/super-editor/src/core/super-converter/helpers.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +6 -0
- 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 +12 -0
- 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 +0 -22
- package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/constants/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +2 -8
- package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +10 -3
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +3 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/drawing/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +6 -0
- 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/r/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +40 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +3 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +9 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +11 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +28 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +6 -0
- 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/handlers/w/top/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/u-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/anchor/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +18 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +11 -1
- package/dist/super-editor/src/extensions/block-node/block-node.d.ts +30 -5
- package/dist/super-editor/src/extensions/bold/bold.d.ts +20 -0
- package/dist/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +6 -0
- package/dist/super-editor/src/extensions/bookmarks/index.d.ts +2 -1
- package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +12 -0
- package/dist/super-editor/src/extensions/color/color.d.ts +26 -0
- package/dist/super-editor/src/extensions/content-block/content-block.d.ts +30 -0
- package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +16 -0
- package/dist/super-editor/src/extensions/document/document.d.ts +26 -0
- package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +26 -0
- package/dist/super-editor/src/extensions/font-family/font-family.d.ts +29 -0
- package/dist/super-editor/src/extensions/font-size/font-size.d.ts +21 -0
- package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +9 -0
- package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +9 -0
- package/dist/super-editor/src/extensions/heading/heading.d.ts +12 -6
- package/dist/super-editor/src/extensions/highlight/highlight.d.ts +20 -0
- package/dist/super-editor/src/extensions/history/history.d.ts +7 -15
- package/dist/super-editor/src/extensions/image/image.d.ts +78 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +3 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +1 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +2 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +11 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +3 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +4 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +18 -23
- package/dist/super-editor/src/extensions/index.d.ts +3 -2
- package/dist/super-editor/src/extensions/italic/italic.d.ts +10 -0
- package/dist/super-editor/src/extensions/line-break/line-break.d.ts +43 -0
- package/dist/super-editor/src/extensions/line-height/line-height.d.ts +22 -0
- package/dist/super-editor/src/extensions/link/link.d.ts +53 -25
- package/dist/super-editor/src/extensions/linked-styles/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +9 -0
- package/dist/super-editor/src/extensions/linked-styles/underline-css.d.ts +17 -0
- package/dist/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts +62 -0
- package/dist/super-editor/src/extensions/list-item/list-item.d.ts +48 -0
- package/dist/super-editor/src/extensions/mention/mention.d.ts +26 -0
- package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +14 -0
- package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +35 -0
- package/dist/super-editor/src/extensions/page-number/page-number.d.ts +52 -0
- package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +49 -0
- package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +15 -0
- package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +9 -0
- package/dist/super-editor/src/extensions/run/commands/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/commands/split-run.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/run.d.ts +6 -0
- package/dist/super-editor/src/extensions/run-item/run-item.d.ts +24 -0
- package/dist/super-editor/src/extensions/search/search.d.ts +11 -2
- package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +29 -0
- package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +26 -0
- package/dist/super-editor/src/extensions/shared/cascade-toggle.d.ts +8 -0
- package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +9 -0
- package/dist/super-editor/src/extensions/strike/strike.d.ts +10 -0
- package/dist/super-editor/src/extensions/structured-content/StructuredContentBlockView.d.ts +9 -0
- package/dist/super-editor/src/extensions/structured-content/StructuredContentInlineView.d.ts +9 -0
- package/dist/super-editor/src/extensions/structured-content/StructuredContentViewBase.d.ts +24 -0
- package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +46 -27
- package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +29 -1
- package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +29 -1
- package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +12 -0
- package/dist/super-editor/src/extensions/tab/tab.d.ts +29 -0
- package/dist/super-editor/src/extensions/table/table.d.ts +376 -55
- package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +41 -0
- package/dist/super-editor/src/extensions/table-header/table-header.d.ts +22 -0
- package/dist/super-editor/src/extensions/table-row/table-row.d.ts +28 -0
- package/dist/super-editor/src/extensions/text/text.d.ts +14 -0
- package/dist/super-editor/src/extensions/text-align/text-align.d.ts +22 -0
- package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +19 -10
- package/dist/super-editor/src/extensions/text-style/text-style.d.ts +20 -0
- package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +20 -0
- package/dist/super-editor/src/extensions/underline/underline.d.ts +25 -0
- package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +14 -0
- package/dist/super-editor/src/tests/helpers/getParagraphText.d.ts +2 -0
- package/dist/super-editor/style.css +38 -0
- package/dist/super-editor/super-editor.es.js +146 -67
- 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 +6809 -3800
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +0 -5
- /package/dist/super-editor/src/extensions/bookmarks/{bookmarks.d.ts → bookmark-start.d.ts} +0 -0
|
@@ -1,2 +1,50 @@
|
|
|
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
|
+
*/
|
|
1
41
|
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;
|
|
2
50
|
import { Node } from '@core/index.js';
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for Mention
|
|
3
|
+
* @typedef {Object} MentionOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes] - HTML attributes for mention elements
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for mention nodes
|
|
9
|
+
* @typedef {Object} MentionAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {string} [name=null] - Display name of the mentioned person
|
|
12
|
+
* @property {string} [email=null] - Email address of the mentioned person
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @module Mention
|
|
16
|
+
* @sidebarTitle Mention
|
|
17
|
+
* @snippetPath /snippets/extensions/mention.mdx
|
|
18
|
+
*/
|
|
1
19
|
export const Mention: Node;
|
|
20
|
+
/**
|
|
21
|
+
* Configuration options for Mention
|
|
22
|
+
*/
|
|
23
|
+
export type MentionOptions = any;
|
|
24
|
+
/**
|
|
25
|
+
* Attributes for mention nodes
|
|
26
|
+
*/
|
|
27
|
+
export type MentionAttributes = any;
|
|
2
28
|
import { Node } from '@core/index.js';
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for NodeResizer
|
|
3
|
+
* @typedef {Object} NodeResizerOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
*/
|
|
1
6
|
export const NodeResizerKey: PluginKey<any>;
|
|
7
|
+
/**
|
|
8
|
+
* @module NodeResizer
|
|
9
|
+
* @sidebarTitle Node Resizer
|
|
10
|
+
* @snippetPath /snippets/extensions/node-resizer.mdx
|
|
11
|
+
*/
|
|
2
12
|
export const NodeResizer: Extension;
|
|
13
|
+
/**
|
|
14
|
+
* Configuration options for NodeResizer
|
|
15
|
+
*/
|
|
16
|
+
export type NodeResizerOptions = any;
|
|
3
17
|
import { PluginKey } from 'prosemirror-state';
|
|
4
18
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for OrderedList
|
|
3
|
+
* @typedef {Object} OrderedListOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {string} [itemTypeName='listItem'] - Name of list item node type
|
|
6
|
+
* @property {Object} [htmlAttributes] - HTML attributes for ordered list elements
|
|
7
|
+
* @property {boolean} [keepMarks=true] - Whether to preserve marks when creating lists
|
|
8
|
+
* @property {boolean} [keepAttributes=false] - Whether to preserve attributes
|
|
9
|
+
* @property {Array<string>} [listStyleTypes=['decimal', 'lowerAlpha', 'lowerRoman']] - Available list style types
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Attributes for ordered list nodes
|
|
13
|
+
* @typedef {Object} OrderedListAttributes
|
|
14
|
+
* @category Attributes
|
|
15
|
+
* @property {number} [order=1] - Starting number for the list
|
|
16
|
+
* @property {string} [sdBlockId] - Block identifier for tracking
|
|
17
|
+
* @property {string} [syncId] - Synchronization identifier
|
|
18
|
+
* @property {string} [listId] - List identifier
|
|
19
|
+
* @property {string} [list-style-type='decimal'] - List style type (decimal, lowerAlpha, lowerRoman)
|
|
20
|
+
* @property {Object} [attributes] - Additional attributes
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @module OrderedList
|
|
24
|
+
* @sidebarTitle Ordered List
|
|
25
|
+
* @snippetPath /snippets/extensions/ordered-list.mdx
|
|
26
|
+
* @shortcut Mod-Shift-7 | toggleOrderedList | Toggle ordered list
|
|
27
|
+
*/
|
|
1
28
|
export const OrderedList: Node;
|
|
29
|
+
/**
|
|
30
|
+
* Configuration options for OrderedList
|
|
31
|
+
*/
|
|
32
|
+
export type OrderedListOptions = any;
|
|
33
|
+
/**
|
|
34
|
+
* Attributes for ordered list nodes
|
|
35
|
+
*/
|
|
36
|
+
export type OrderedListAttributes = any;
|
|
2
37
|
import { Node } from '@core/index.js';
|
|
@@ -1,4 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for PageNumber
|
|
3
|
+
* @typedef {Object} PageNumberOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes] - HTML attributes for page number elements
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for page number nodes
|
|
9
|
+
* @typedef {Object} PageNumberAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {Array} [marksAsAttrs=null] @internal - Internal marks storage
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @module PageNumber
|
|
15
|
+
* @sidebarTitle Page Number
|
|
16
|
+
* @snippetPath /snippets/extensions/page-number.mdx
|
|
17
|
+
* @shortcut Mod-Shift-alt-p | addAutoPageNumber | Insert page number
|
|
18
|
+
*/
|
|
1
19
|
export const PageNumber: Node;
|
|
20
|
+
/**
|
|
21
|
+
* Configuration options for TotalPageCount
|
|
22
|
+
* @typedef {Object} TotalPageCountOptions
|
|
23
|
+
* @category Options
|
|
24
|
+
* @property {Object} [htmlAttributes] - HTML attributes for total page count elements
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Attributes for total page count nodes
|
|
28
|
+
* @typedef {Object} TotalPageCountAttributes
|
|
29
|
+
* @category Attributes
|
|
30
|
+
* @property {Array} [marksAsAttrs=null] @internal - Internal marks storage
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @module TotalPageCount
|
|
34
|
+
* @sidebarTitle Total Page Count
|
|
35
|
+
* @snippetPath /snippets/extensions/total-page-count.mdx
|
|
36
|
+
* @shortcut Mod-Shift-alt-c | addTotalPageCount | Insert total page count
|
|
37
|
+
*/
|
|
2
38
|
export const TotalPageCount: Node;
|
|
3
39
|
export class AutoPageNumberNodeView {
|
|
4
40
|
constructor(node: any, getPos: any, decorations: any, editor: any, htmlAttributes?: {});
|
|
@@ -10,4 +46,20 @@ export class AutoPageNumberNodeView {
|
|
|
10
46
|
update(node: any): boolean;
|
|
11
47
|
#private;
|
|
12
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Configuration options for PageNumber
|
|
51
|
+
*/
|
|
52
|
+
export type PageNumberOptions = any;
|
|
53
|
+
/**
|
|
54
|
+
* Attributes for page number nodes
|
|
55
|
+
*/
|
|
56
|
+
export type PageNumberAttributes = any;
|
|
57
|
+
/**
|
|
58
|
+
* Configuration options for TotalPageCount
|
|
59
|
+
*/
|
|
60
|
+
export type TotalPageCountOptions = any;
|
|
61
|
+
/**
|
|
62
|
+
* Attributes for total page count nodes
|
|
63
|
+
*/
|
|
64
|
+
export type TotalPageCountAttributes = any;
|
|
13
65
|
import { Node } from '@core/index.js';
|
|
@@ -1,2 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for Paragraph
|
|
3
|
+
* @typedef {Object} ParagraphOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {number[]} [headingLevels=[1,2,3,4,5,6]] - Supported heading levels
|
|
6
|
+
* @property {Object} [htmlAttributes={}] - HTML attributes for paragraph elements
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Attributes for paragraph nodes
|
|
10
|
+
* @typedef {Object} ParagraphAttributes
|
|
11
|
+
* @category Attributes
|
|
12
|
+
* @property {Object} [spacing] - Paragraph spacing configuration
|
|
13
|
+
* @property {Object} [extraAttrs={}] - Additional HTML attributes
|
|
14
|
+
* @property {Array} [marksAttrs] - Text formatting marks
|
|
15
|
+
* @property {Object} [indent] - Indentation settings
|
|
16
|
+
* @property {Object} [borders] - Paragraph borders
|
|
17
|
+
* @property {string} [class] - CSS class name
|
|
18
|
+
* @property {string} [styleId] - Linked style identifier
|
|
19
|
+
* @property {Object} [justify] - Text justification
|
|
20
|
+
* @property {Array} [tabStops] - Tab stop positions
|
|
21
|
+
* @property {string} [sdBlockId] @internal - Internal block tracking ID
|
|
22
|
+
* @property {string} [paraId] @internal - Paragraph identifier
|
|
23
|
+
* @property {string} [textId] @internal - Text identifier
|
|
24
|
+
* @property {string} [rsidR] @internal - Revision save ID
|
|
25
|
+
* @property {string} [rsidRDefault] @internal - Default revision save ID
|
|
26
|
+
* @property {string} [rsidP] @internal - Paragraph revision save ID
|
|
27
|
+
* @property {string} [rsidRPr] @internal - Run properties revision save ID
|
|
28
|
+
* @property {string} [rsidDel] @internal - Deletion revision save ID
|
|
29
|
+
* @property {Object} [attributes] @internal - Internal attributes storage
|
|
30
|
+
* @property {string} [filename] @internal - Associated filename
|
|
31
|
+
* @property {boolean} [keepLines] @internal - Keep lines together
|
|
32
|
+
* @property {boolean} [keepNext] @internal - Keep with next paragraph
|
|
33
|
+
* @property {Object} [paragraphProperties] @internal - Internal paragraph properties
|
|
34
|
+
* @property {Object} [dropcap] @internal - Drop cap configuration
|
|
35
|
+
* @property {string} [pageBreakSource] @internal - Page break source
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* @module Paragraph
|
|
39
|
+
* @sidebarTitle Paragraph
|
|
40
|
+
* @snippetPath /snippets/extensions/paragraph.mdx
|
|
41
|
+
*/
|
|
1
42
|
export const Paragraph: OxmlNode;
|
|
43
|
+
/**
|
|
44
|
+
* Configuration options for Paragraph
|
|
45
|
+
*/
|
|
46
|
+
export type ParagraphOptions = any;
|
|
47
|
+
/**
|
|
48
|
+
* Attributes for paragraph nodes
|
|
49
|
+
*/
|
|
50
|
+
export type ParagraphAttributes = any;
|
|
2
51
|
import { OxmlNode } from '@core/index.js';
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for Placeholder
|
|
3
|
+
* @typedef {Object} PlaceholderOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {string} [placeholder='Type something...'] - Placeholder text to display when editor is empty
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @module Placeholder
|
|
9
|
+
* @sidebarTitle Placeholder
|
|
10
|
+
* @snippetPath /snippets/extensions/placeholder.mdx
|
|
11
|
+
*/
|
|
1
12
|
export const Placeholder: Extension;
|
|
13
|
+
/**
|
|
14
|
+
* Configuration options for Placeholder
|
|
15
|
+
*/
|
|
16
|
+
export type PlaceholderOptions = any;
|
|
2
17
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module PopoverPlugin
|
|
3
|
+
* @sidebarTitle Popover Plugin
|
|
4
|
+
* @snippetPath /snippets/extensions/popover-plugin.mdx
|
|
5
|
+
*/
|
|
1
6
|
export const PopoverPlugin: Extension;
|
|
7
|
+
/**
|
|
8
|
+
* Configuration options for PopoverPlugin
|
|
9
|
+
*/
|
|
10
|
+
export type PopoverPluginOptions = any;
|
|
2
11
|
import { Extension } from '@core/Extension.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./split-run.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function splitRun(): import("@core/commands/types").Command;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./run.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run node emulates OOXML w:r (run) boundaries while remaining transparent to layout.
|
|
3
|
+
* It carries run-level metadata (runProperties, rsid attributes) without affecting visual style.
|
|
4
|
+
*/
|
|
5
|
+
export const Run: OxmlNode;
|
|
6
|
+
import { OxmlNode } from '@core/index.js';
|
|
@@ -1,2 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for RunItem
|
|
3
|
+
* @typedef {Object} RunItemOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Attributes for run nodes
|
|
8
|
+
* @typedef {Object} RunItemAttributes
|
|
9
|
+
* @category Attributes
|
|
10
|
+
* @property {Object} [attributes] @internal - Internal attributes storage
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @module RunItem
|
|
14
|
+
* @sidebarTitle Run Item
|
|
15
|
+
* @snippetPath /snippets/extensions/run-item.mdx
|
|
16
|
+
*/
|
|
1
17
|
export const RunItem: Node;
|
|
18
|
+
/**
|
|
19
|
+
* Configuration options for RunItem
|
|
20
|
+
*/
|
|
21
|
+
export type RunItemOptions = any;
|
|
22
|
+
/**
|
|
23
|
+
* Attributes for run nodes
|
|
24
|
+
*/
|
|
25
|
+
export type RunItemAttributes = any;
|
|
2
26
|
import { Node } from '@core/index.js';
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Search match
|
|
2
|
+
* Search match object
|
|
3
3
|
* @typedef {Object} SearchMatch
|
|
4
4
|
* @property {string} text - Found text
|
|
5
5
|
* @property {number} from - From position
|
|
6
6
|
* @property {number} to - To position
|
|
7
7
|
* @property {string} id - ID of the search match
|
|
8
8
|
*/
|
|
9
|
+
/**
|
|
10
|
+
* Configuration options for Search
|
|
11
|
+
* @typedef {Object} SearchOptions
|
|
12
|
+
* @category Options
|
|
13
|
+
*/
|
|
9
14
|
/**
|
|
10
15
|
* @module Search
|
|
11
16
|
* @sidebarTitle Search
|
|
@@ -13,7 +18,7 @@
|
|
|
13
18
|
*/
|
|
14
19
|
export const Search: Extension;
|
|
15
20
|
/**
|
|
16
|
-
* Search match
|
|
21
|
+
* Search match object
|
|
17
22
|
*/
|
|
18
23
|
export type SearchMatch = {
|
|
19
24
|
/**
|
|
@@ -33,4 +38,8 @@ export type SearchMatch = {
|
|
|
33
38
|
*/
|
|
34
39
|
id: string;
|
|
35
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Configuration options for Search
|
|
43
|
+
*/
|
|
44
|
+
export type SearchOptions = any;
|
|
36
45
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,2 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for ShapeContainer
|
|
3
|
+
* @typedef {Object} ShapeContainerOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes] - HTML attributes for shape container elements
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for shape container nodes
|
|
9
|
+
* @typedef {Object} ShapeContainerAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {string} [fillcolor] - Background color for the shape
|
|
12
|
+
* @property {string} [style] - CSS style string
|
|
13
|
+
* @property {string} [sdBlockId] @internal - Internal block tracking ID
|
|
14
|
+
* @property {Object} [wrapAttributes] @internal - Internal wrapper attributes
|
|
15
|
+
* @property {Object} [attributes] @internal - Internal attributes storage
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* @module ShapeContainer
|
|
19
|
+
* @sidebarTitle Shape Container
|
|
20
|
+
* @snippetPath /snippets/extensions/shape-container.mdx
|
|
21
|
+
*/
|
|
1
22
|
export const ShapeContainer: Node;
|
|
23
|
+
/**
|
|
24
|
+
* Configuration options for ShapeContainer
|
|
25
|
+
*/
|
|
26
|
+
export type ShapeContainerOptions = any;
|
|
27
|
+
/**
|
|
28
|
+
* Attributes for shape container nodes
|
|
29
|
+
*/
|
|
30
|
+
export type ShapeContainerAttributes = any;
|
|
2
31
|
import { Node } from '@core/index.js';
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for ShapeTextbox
|
|
3
|
+
* @typedef {Object} ShapeTextboxOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes] - HTML attributes for shape textbox elements
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for shape textbox nodes
|
|
9
|
+
* @typedef {Object} ShapeTextboxAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {string} [sdBlockId] @internal - Internal block tracking ID
|
|
12
|
+
* @property {Object} [attributes] @internal - Internal attributes storage
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @module ShapeTextbox
|
|
16
|
+
* @sidebarTitle Shape Textbox
|
|
17
|
+
* @snippetPath /snippets/extensions/shape-textbox.mdx
|
|
18
|
+
*/
|
|
1
19
|
export const ShapeTextbox: Node;
|
|
20
|
+
/**
|
|
21
|
+
* Configuration options for ShapeTextbox
|
|
22
|
+
*/
|
|
23
|
+
export type ShapeTextboxOptions = any;
|
|
24
|
+
/**
|
|
25
|
+
* Attributes for shape textbox nodes
|
|
26
|
+
*/
|
|
27
|
+
export type ShapeTextboxAttributes = any;
|
|
2
28
|
import { Node } from '@core/index.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility helpers for cascade-aware mark toggles.
|
|
3
|
+
*/
|
|
4
|
+
export function createCascadeToggleCommands({ markName, setCommand, unsetCommand, toggleCommand, negationAttrs, isNegation, extendEmptyMarkRange, }?: {}): {
|
|
5
|
+
[x: number]: () => ({ commands }: {
|
|
6
|
+
commands: any;
|
|
7
|
+
}) => any;
|
|
8
|
+
};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export const SlashMenuPluginKey: PluginKey<any>;
|
|
2
|
+
/**
|
|
3
|
+
* @module SlashMenu
|
|
4
|
+
* @sidebarTitle Slash Menu
|
|
5
|
+
* @snippetPath /snippets/extensions/slash-menu.mdx
|
|
6
|
+
*/
|
|
2
7
|
export const SlashMenu: Extension;
|
|
8
|
+
/**
|
|
9
|
+
* Configuration options for SlashMenu
|
|
10
|
+
*/
|
|
11
|
+
export type SlashMenuOptions = any;
|
|
3
12
|
import { PluginKey } from 'prosemirror-state';
|
|
4
13
|
import { Extension } from '@core/Extension.js';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for Strike
|
|
3
|
+
* @typedef {Object} StrikeOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes={}] - HTML attributes for strikethrough elements
|
|
6
|
+
*/
|
|
1
7
|
/**
|
|
2
8
|
* @module Strike
|
|
3
9
|
* @sidebarTitle Strike
|
|
@@ -5,4 +11,8 @@
|
|
|
5
11
|
* @shortcut Mod-Shift-s | toggleStrike | Toggle strikethrough formatting
|
|
6
12
|
*/
|
|
7
13
|
export const Strike: Mark;
|
|
14
|
+
/**
|
|
15
|
+
* Configuration options for Strike
|
|
16
|
+
*/
|
|
17
|
+
export type StrikeOptions = any;
|
|
8
18
|
import { Mark } from '@core/index.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export class StructuredContentBlockView extends StructuredContentViewBase {
|
|
2
|
+
createElement(): {
|
|
3
|
+
element: HTMLDivElement;
|
|
4
|
+
contentElement: HTMLDivElement;
|
|
5
|
+
};
|
|
6
|
+
buildView(): void;
|
|
7
|
+
updateView(): void;
|
|
8
|
+
}
|
|
9
|
+
import { StructuredContentViewBase } from './StructuredContentViewBase';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export class StructuredContentInlineView extends StructuredContentViewBase {
|
|
2
|
+
createElement(): {
|
|
3
|
+
element: HTMLSpanElement;
|
|
4
|
+
contentElement: HTMLSpanElement;
|
|
5
|
+
};
|
|
6
|
+
buildView(): void;
|
|
7
|
+
updateView(): void;
|
|
8
|
+
}
|
|
9
|
+
import { StructuredContentViewBase } from './StructuredContentViewBase';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class StructuredContentViewBase {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
node: any;
|
|
4
|
+
view: any;
|
|
5
|
+
getPos: any;
|
|
6
|
+
decorations: any;
|
|
7
|
+
innerDecorations: any;
|
|
8
|
+
editor: any;
|
|
9
|
+
extension: any;
|
|
10
|
+
htmlAttributes: any;
|
|
11
|
+
root: any;
|
|
12
|
+
isDragging: boolean;
|
|
13
|
+
mount(): void;
|
|
14
|
+
get dom(): any;
|
|
15
|
+
get contentDOM(): any;
|
|
16
|
+
update(node: any, decorations: any, innerDecorations: any): boolean;
|
|
17
|
+
stopEvent(event: any): boolean;
|
|
18
|
+
ignoreMutation(mutation: any): boolean;
|
|
19
|
+
destroy(): void;
|
|
20
|
+
updateAttributes(attrs: any): any;
|
|
21
|
+
updateHTMLAttributes(): void;
|
|
22
|
+
createDragHandle(): HTMLSpanElement;
|
|
23
|
+
onDragStart(event: any): void;
|
|
24
|
+
}
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document section creation options
|
|
3
|
+
* @typedef {Object} SectionCreate
|
|
4
|
+
* @property {number} [id] - Unique ID. Auto-increments from existing sections if omitted
|
|
5
|
+
* @property {string} [title="Document section"] - Label shown in section header
|
|
6
|
+
* @property {string} [description] - Metadata for tracking (stored in Word's w:tag)
|
|
7
|
+
* @property {string} [sectionType] - Business classification
|
|
8
|
+
* @property {boolean} [isLocked=false] - Prevent editing when true
|
|
9
|
+
* @property {string} [html] - HTML content to insert
|
|
10
|
+
* @property {Object} [json] - ProseMirror JSON (overrides html if both provided)
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Update an existing section
|
|
14
|
+
* @typedef {Object} SectionUpdate
|
|
15
|
+
* @property {number} id - Target section ID (required)
|
|
16
|
+
* @property {string} [html] - Replace content with HTML
|
|
17
|
+
* @property {Object} [json] - Replace content with ProseMirror JSON (overrides html)
|
|
18
|
+
* @property {Partial<DocumentSectionAttributes>} [attrs] - Update attributes only (preserves content)
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Configuration options for DocumentSection
|
|
22
|
+
* @typedef {Object} DocumentSectionOptions
|
|
23
|
+
* @category Options
|
|
24
|
+
* @property {Object} [htmlAttributes] - HTML attributes for document sections
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Attributes for document section nodes
|
|
28
|
+
* @typedef {Object} DocumentSectionAttributes
|
|
29
|
+
* @category Attributes
|
|
30
|
+
* @property {number} [id] - Unique section identifier
|
|
31
|
+
* @property {string} [title] - Section display label (becomes w:alias in Word)
|
|
32
|
+
* @property {string} [description] - Additional metadata stored in w:tag
|
|
33
|
+
* @property {string} [sectionType] - Business type for filtering/logic (e.g., 'legal', 'pricing')
|
|
34
|
+
* @property {boolean} [isLocked=false] - Lock state (maps to w:lock="sdtContentLocked")
|
|
35
|
+
* @property {string} [sdBlockId] @internal - Internal block tracking
|
|
36
|
+
*/
|
|
1
37
|
/**
|
|
2
38
|
* @module DocumentSection
|
|
3
39
|
* @sidebarTitle Document Section
|
|
@@ -5,32 +41,7 @@
|
|
|
5
41
|
*/
|
|
6
42
|
export const DocumentSection: Node;
|
|
7
43
|
/**
|
|
8
|
-
* Document section
|
|
9
|
-
*/
|
|
10
|
-
export type SectionAttributes = {
|
|
11
|
-
/**
|
|
12
|
-
* - Unique section identifier
|
|
13
|
-
*/
|
|
14
|
-
id?: number;
|
|
15
|
-
/**
|
|
16
|
-
* - Display label (becomes w:alias in Word)
|
|
17
|
-
*/
|
|
18
|
-
title?: string;
|
|
19
|
-
/**
|
|
20
|
-
* - Additional metadata stored in w:tag
|
|
21
|
-
*/
|
|
22
|
-
description?: string;
|
|
23
|
-
/**
|
|
24
|
-
* - Business type for filtering/logic (e.g., 'legal', 'pricing')
|
|
25
|
-
*/
|
|
26
|
-
sectionType?: string;
|
|
27
|
-
/**
|
|
28
|
-
* - Lock state (maps to w:lock="sdtContentLocked")
|
|
29
|
-
*/
|
|
30
|
-
isLocked?: boolean;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Create a new document section
|
|
44
|
+
* Document section creation options
|
|
34
45
|
*/
|
|
35
46
|
export type SectionCreate = {
|
|
36
47
|
/**
|
|
@@ -81,6 +92,14 @@ export type SectionUpdate = {
|
|
|
81
92
|
/**
|
|
82
93
|
* - Update attributes only (preserves content)
|
|
83
94
|
*/
|
|
84
|
-
attrs?: Partial<
|
|
95
|
+
attrs?: Partial<DocumentSectionAttributes>;
|
|
85
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* Configuration options for DocumentSection
|
|
99
|
+
*/
|
|
100
|
+
export type DocumentSectionOptions = any;
|
|
101
|
+
/**
|
|
102
|
+
* Attributes for document section nodes
|
|
103
|
+
*/
|
|
104
|
+
export type DocumentSectionAttributes = any;
|
|
86
105
|
import { Node } from '@core/index.js';
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
+
export const structuredContentClass: "sd-structured-content-block";
|
|
2
|
+
export const structuredContentInnerClass: "sd-structured-content-block__content";
|
|
3
|
+
/**
|
|
4
|
+
* Configuration options for StructuredContentBlock
|
|
5
|
+
* @typedef {Object} StructuredContentBlockOptions
|
|
6
|
+
* @category Options
|
|
7
|
+
* @property {string} [structuredContentClass='sd-structured-content-block-tag'] - CSS class for the block
|
|
8
|
+
* @property {Object} [htmlAttributes] - HTML attributes for structured content blocks
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Attributes for structured content block nodes
|
|
12
|
+
* @typedef {Object} StructuredContentBlockAttributes
|
|
13
|
+
* @category Attributes
|
|
14
|
+
* @property {Object} [sdtPr] @internal - Internal structured document tag properties
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @module StructuredContentBlock
|
|
18
|
+
* @sidebarTitle Structured Content Block
|
|
19
|
+
* @snippetPath /snippets/extensions/structured-content-block.mdx
|
|
20
|
+
*/
|
|
1
21
|
export const StructuredContentBlock: Node;
|
|
2
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Configuration options for StructuredContentBlock
|
|
24
|
+
*/
|
|
25
|
+
export type StructuredContentBlockOptions = any;
|
|
26
|
+
/**
|
|
27
|
+
* Attributes for structured content block nodes
|
|
28
|
+
*/
|
|
29
|
+
export type StructuredContentBlockAttributes = any;
|
|
30
|
+
import { Node } from '@core/index';
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
+
export const structuredContentClass: "sd-structured-content";
|
|
2
|
+
export const structuredContentInnerClass: "sd-structured-content__content";
|
|
3
|
+
/**
|
|
4
|
+
* Configuration options for StructuredContent
|
|
5
|
+
* @typedef {Object} StructuredContentOptions
|
|
6
|
+
* @category Options
|
|
7
|
+
* @property {string} [structuredContentClass='sd-structured-content-tag'] - CSS class for the inline element
|
|
8
|
+
* @property {Object} [htmlAttributes] - HTML attributes for structured content elements
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Attributes for structured content nodes
|
|
12
|
+
* @typedef {Object} StructuredContentAttributes
|
|
13
|
+
* @category Attributes
|
|
14
|
+
* @property {Object} [sdtPr] @internal - Internal structured document tag properties
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @module StructuredContent
|
|
18
|
+
* @sidebarTitle Structured Content
|
|
19
|
+
* @snippetPath /snippets/extensions/structured-content.mdx
|
|
20
|
+
*/
|
|
1
21
|
export const StructuredContent: Node;
|
|
2
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Configuration options for StructuredContent
|
|
24
|
+
*/
|
|
25
|
+
export type StructuredContentOptions = any;
|
|
26
|
+
/**
|
|
27
|
+
* Attributes for structured content nodes
|
|
28
|
+
*/
|
|
29
|
+
export type StructuredContentAttributes = any;
|
|
30
|
+
import { Node } from '@core/index';
|