@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,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-DUqGq6qj.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-gMF6aWiz.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -2483,7 +2483,7 @@ function resolveTo(selector) {
|
|
|
2483
2483
|
if (typeof selector === "string") {
|
|
2484
2484
|
return document.querySelector(selector);
|
|
2485
2485
|
}
|
|
2486
|
-
return selector()
|
|
2486
|
+
return selector();
|
|
2487
2487
|
}
|
|
2488
2488
|
const LazyTeleport = defineComponent({
|
|
2489
2489
|
name: "LazyTeleport",
|
|
@@ -2571,11 +2571,8 @@ const oppositeAlignCssPositionProps = {
|
|
|
2571
2571
|
};
|
|
2572
2572
|
const keepOffsetDirection = {
|
|
2573
2573
|
top: true,
|
|
2574
|
-
// top++
|
|
2575
2574
|
bottom: false,
|
|
2576
|
-
// top--
|
|
2577
2575
|
left: true,
|
|
2578
|
-
// left++
|
|
2579
2576
|
right: false
|
|
2580
2577
|
// left--
|
|
2581
2578
|
};
|
|
@@ -3692,6 +3689,7 @@ function isFocusable(element) {
|
|
|
3692
3689
|
return !!element.href && element.rel !== "ignore";
|
|
3693
3690
|
case "INPUT":
|
|
3694
3691
|
return element.type !== "hidden" && element.type !== "file";
|
|
3692
|
+
case "BUTTON":
|
|
3695
3693
|
case "SELECT":
|
|
3696
3694
|
case "TEXTAREA":
|
|
3697
3695
|
return true;
|
|
@@ -3710,8 +3708,8 @@ const FocusTrap = defineComponent({
|
|
|
3710
3708
|
default: true
|
|
3711
3709
|
},
|
|
3712
3710
|
onEsc: Function,
|
|
3713
|
-
initialFocusTo:
|
|
3714
|
-
finalFocusTo:
|
|
3711
|
+
initialFocusTo: String,
|
|
3712
|
+
finalFocusTo: String,
|
|
3715
3713
|
returnFocusOnDeactivated: {
|
|
3716
3714
|
type: Boolean,
|
|
3717
3715
|
default: true
|
|
@@ -5809,7 +5807,6 @@ function self$6(vars) {
|
|
|
5809
5807
|
});
|
|
5810
5808
|
}
|
|
5811
5809
|
const scrollbarLight = {
|
|
5812
|
-
name: "Scrollbar",
|
|
5813
5810
|
common: derived,
|
|
5814
5811
|
self: self$6
|
|
5815
5812
|
};
|
|
@@ -7325,14 +7322,11 @@ function self$5(vars) {
|
|
|
7325
7322
|
boxShadow: boxShadow2
|
|
7326
7323
|
});
|
|
7327
7324
|
}
|
|
7328
|
-
const popoverLight =
|
|
7325
|
+
const popoverLight = {
|
|
7329
7326
|
name: "Popover",
|
|
7330
7327
|
common: derived,
|
|
7331
|
-
peers: {
|
|
7332
|
-
Scrollbar: scrollbarLight
|
|
7333
|
-
},
|
|
7334
7328
|
self: self$5
|
|
7335
|
-
}
|
|
7329
|
+
};
|
|
7336
7330
|
const oppositePlacement = {
|
|
7337
7331
|
top: "bottom",
|
|
7338
7332
|
bottom: "top",
|
|
@@ -7552,11 +7546,9 @@ const NPopoverBody = defineComponent({
|
|
|
7552
7546
|
const {
|
|
7553
7547
|
namespaceRef,
|
|
7554
7548
|
mergedClsPrefixRef,
|
|
7555
|
-
inlineThemeDisabled
|
|
7556
|
-
mergedRtlRef
|
|
7549
|
+
inlineThemeDisabled
|
|
7557
7550
|
} = useConfig(props);
|
|
7558
7551
|
const themeRef = useTheme("Popover", "-popover", style$3, popoverLight, props, mergedClsPrefixRef);
|
|
7559
|
-
const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
|
|
7560
7552
|
const followerRef = ref(null);
|
|
7561
7553
|
const NPopover2 = inject("NPopover");
|
|
7562
7554
|
const bodyRef = ref(null);
|
|
@@ -7754,8 +7746,6 @@ const NPopoverBody = defineComponent({
|
|
|
7754
7746
|
style: props.contentStyle
|
|
7755
7747
|
}, slots);
|
|
7756
7748
|
const maybeScrollableBody = props.scrollable ? h(XScrollbar, {
|
|
7757
|
-
themeOverrides: themeRef.value.peerOverrides.Scrollbar,
|
|
7758
|
-
theme: themeRef.value.peers.Scrollbar,
|
|
7759
7749
|
contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
|
|
7760
7750
|
contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
|
|
7761
7751
|
}, {
|
|
@@ -7771,7 +7761,7 @@ const NPopoverBody = defineComponent({
|
|
|
7771
7761
|
return [maybeScrollableBody, arrow];
|
|
7772
7762
|
};
|
|
7773
7763
|
contentNode = h("div", mergeProps({
|
|
7774
|
-
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`,
|
|
7764
|
+
class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
|
|
7775
7765
|
[`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
|
|
7776
7766
|
[`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
|
|
7777
7767
|
[`${mergedClsPrefix}-popover--raw`]: props.raw,
|
|
@@ -7795,7 +7785,7 @@ const NPopoverBody = defineComponent({
|
|
|
7795
7785
|
// The popover class and overlap class must exists, they will be used
|
|
7796
7786
|
// to place the body & transition animation.
|
|
7797
7787
|
// Shadow class exists for reuse box-shadow.
|
|
7798
|
-
[`${mergedClsPrefix}-popover-shared`,
|
|
7788
|
+
[`${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
|
|
7799
7789
|
bodyRef,
|
|
7800
7790
|
styleRef.value,
|
|
7801
7791
|
handleMouseEnter,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-gMF6aWiz.js";
|
|
2
|
+
import "./chunks/converter-DUqGq6qj.js";
|
|
3
|
+
import "./chunks/docx-zipper-CQsQR8Zs.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export function isOffValue(value: unknown): boolean;
|
|
2
|
+
/** @type {Record<string, (attrs?: Record<string, unknown>) => boolean>} */
|
|
3
|
+
export const negationChecks: Record<string, (attrs?: Record<string, unknown>) => boolean>;
|
|
4
|
+
export function isNegatedMark(name: string, attrs?: Record<string, unknown>): boolean;
|
|
5
|
+
export default isNegatedMark;
|
|
@@ -12,6 +12,7 @@ export * from "./setMark.js";
|
|
|
12
12
|
export * from "./unsetMark.js";
|
|
13
13
|
export * from "./unsetAllMarks.js";
|
|
14
14
|
export * from "./toggleMark.js";
|
|
15
|
+
export * from "./toggleMarkCascade.js";
|
|
15
16
|
export * from "./clearNodes.js";
|
|
16
17
|
export * from "./setNode.js";
|
|
17
18
|
export * from "./toggleNode.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default style detector that checks run-level or paragraph-level styleId
|
|
3
|
+
* @param {Object} params
|
|
4
|
+
* @returns {boolean}
|
|
5
|
+
*/
|
|
6
|
+
export function defaultStyleDetector({ state, selectionMarks, markName, editor }: any): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Determines the effective style ID for the current selection/cursor position
|
|
9
|
+
* by checking multiple sources in priority order.
|
|
10
|
+
*
|
|
11
|
+
* Priority hierarchy:
|
|
12
|
+
* 1. Run-level rStyle from selection marks (highest priority)
|
|
13
|
+
* 2. Cursor-adjacent node marks (handles boundaries where selection marks omit run mark)
|
|
14
|
+
* 3. TextStyle styleId mark from selection marks
|
|
15
|
+
* 4. Paragraph ancestor styleId (lowest priority)
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} state - The ProseMirror editor state
|
|
18
|
+
* @param {Array} selectionMarks - Array of marks from the current selection
|
|
19
|
+
* @returns {string|null} The effective style ID, or null if none found
|
|
20
|
+
*/
|
|
21
|
+
export function getEffectiveStyleId(state: any, selectionMarks: any[]): string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Get the style ID from an array of marks.
|
|
24
|
+
* @param {import('prosemirror-model').Mark[]} marks
|
|
25
|
+
* @returns {string|null}
|
|
26
|
+
*/
|
|
27
|
+
export function getStyleIdFromMarks(marks: import("prosemirror-model").Mark[]): string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Maps a mark name to its corresponding style key.
|
|
30
|
+
* Special case: both 'textStyle' and 'color' marks map to the 'color' style key.
|
|
31
|
+
* All other mark names map directly to themselves.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} markName - The name of the mark to map
|
|
34
|
+
* @returns {string} The corresponding style key
|
|
35
|
+
*/
|
|
36
|
+
export function mapMarkToStyleKey(markName: string): string;
|
|
37
|
+
export function isStyleTokenEnabled(val: any): boolean;
|
|
38
|
+
export function toggleMarkCascade(markName: string, options?: {}): ({ state, chain, editor }: {
|
|
39
|
+
state: any;
|
|
40
|
+
chain: any;
|
|
41
|
+
editor: any;
|
|
42
|
+
}) => any;
|
|
@@ -47,7 +47,7 @@ export type CanObject = Record<string, CanCommand> & {
|
|
|
47
47
|
chain: () => ChainableCommandObject;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
|
-
* Command props
|
|
50
|
+
* Command props made available to every command handler.
|
|
51
51
|
*/
|
|
52
52
|
export type CommandProps = {
|
|
53
53
|
/**
|
|
@@ -58,4 +58,32 @@ export type CommandProps = {
|
|
|
58
58
|
* - The ProseMirror transaction
|
|
59
59
|
*/
|
|
60
60
|
tr: import("prosemirror-state").Transaction;
|
|
61
|
+
/**
|
|
62
|
+
* - The current editor state
|
|
63
|
+
*/
|
|
64
|
+
state: import("prosemirror-state").EditorState;
|
|
65
|
+
/**
|
|
66
|
+
* - The active editor view
|
|
67
|
+
*/
|
|
68
|
+
view: import("prosemirror-view").EditorView;
|
|
69
|
+
/**
|
|
70
|
+
* - Optional dispatcher
|
|
71
|
+
*/
|
|
72
|
+
dispatch?: (tr: import("prosemirror-state").Transaction) => void;
|
|
73
|
+
/**
|
|
74
|
+
* - Helper to build command chains
|
|
75
|
+
*/
|
|
76
|
+
chain: () => ChainableCommandObject;
|
|
77
|
+
/**
|
|
78
|
+
* - Helper to check command availability
|
|
79
|
+
*/
|
|
80
|
+
can: () => CanObject;
|
|
81
|
+
/**
|
|
82
|
+
* - Lazy command map bound to current props
|
|
83
|
+
*/
|
|
84
|
+
commands: EditorCommands;
|
|
61
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
* A command handler invoked by the command service.
|
|
88
|
+
*/
|
|
89
|
+
export type Command = (props: CommandProps) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function updateDOMAttributes(dom: any, attrs?: {}, options?: {}): void;
|
|
@@ -47,6 +47,9 @@ export class SuperConverter {
|
|
|
47
47
|
'w:tcPr': "tableCellProperties";
|
|
48
48
|
}>;
|
|
49
49
|
static elements: Set<string>;
|
|
50
|
+
static getFontTableEntry(docx: any, fontName: any): any;
|
|
51
|
+
static getFallbackFromFontTable(docx: any, fontName: any): any;
|
|
52
|
+
static toCssFontFamily(fontName: any, docx: any): any;
|
|
50
53
|
static getStoredSuperdocVersion(docx: any): any;
|
|
51
54
|
static updateDocumentVersion(docx?: any, version?: any): any;
|
|
52
55
|
constructor(params?: any);
|
|
@@ -100,11 +103,13 @@ export class SuperConverter {
|
|
|
100
103
|
kern?: undefined;
|
|
101
104
|
typeface?: undefined;
|
|
102
105
|
panose?: undefined;
|
|
106
|
+
fontFamilyCss?: undefined;
|
|
103
107
|
} | {
|
|
104
108
|
fontSizePt: number;
|
|
105
109
|
kern: any;
|
|
106
110
|
typeface: any;
|
|
107
111
|
panose: any;
|
|
112
|
+
fontFamilyCss: any;
|
|
108
113
|
};
|
|
109
114
|
getDocumentFonts(): string;
|
|
110
115
|
getDocumentInternalId(): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prepare table rows for vertical merge export by inserting merge placeholders.
|
|
3
|
+
* @param {import('prosemirror-model').Node} table
|
|
4
|
+
* @param {object} options
|
|
5
|
+
*/
|
|
6
|
+
export function preProcessVerticalMergeCells(table: import("prosemirror-model").Node, { editorSchema }: object): import("prosemirror-model").Node;
|
|
@@ -44,6 +44,13 @@ export function exportSchemaToJson(params: ExportParams): XmlReadyNode;
|
|
|
44
44
|
* @returns {XmlReadyNode} JSON of the XML-ready paragraph node
|
|
45
45
|
*/
|
|
46
46
|
export function translateParagraphNode(params: any): XmlReadyNode;
|
|
47
|
+
/**
|
|
48
|
+
* Generate the w:pPr props for a paragraph node
|
|
49
|
+
*
|
|
50
|
+
* @param {SchemaNode} node
|
|
51
|
+
* @returns {XmlReadyNode} The paragraph properties node
|
|
52
|
+
*/
|
|
53
|
+
export function generateParagraphProperties(node: SchemaNode): XmlReadyNode;
|
|
47
54
|
/**
|
|
48
55
|
* Helper function to be used for text node translation
|
|
49
56
|
* Also used for transforming text annotations for the final submit
|
|
@@ -53,6 +60,13 @@ export function translateParagraphNode(params: any): XmlReadyNode;
|
|
|
53
60
|
* @returns {XmlReadyNode} The translated text node
|
|
54
61
|
*/
|
|
55
62
|
export function getTextNodeForExport(text: string, marks: any[], params: any): XmlReadyNode;
|
|
63
|
+
/**
|
|
64
|
+
* Wrap a text node in a run
|
|
65
|
+
*
|
|
66
|
+
* @param {XmlReadyNode} node
|
|
67
|
+
* @returns {XmlReadyNode} The wrapped run node
|
|
68
|
+
*/
|
|
69
|
+
export function wrapTextInRun(nodeOrNodes: any, marks: any): XmlReadyNode;
|
|
56
70
|
/**
|
|
57
71
|
* Generate a w:rPr node (run properties) from marks
|
|
58
72
|
*
|
|
@@ -79,7 +93,6 @@ export function processLinkContentNode(node: any): any;
|
|
|
79
93
|
* @returns {string} The new relationship ID
|
|
80
94
|
*/
|
|
81
95
|
export function addNewLinkRelationship(params: ExportParams, link: string): string;
|
|
82
|
-
export function translateImageNode(params: any, imageSize: any): any;
|
|
83
96
|
export function translateHardBreak(params: any): {
|
|
84
97
|
name: string;
|
|
85
98
|
elements: {
|
|
@@ -90,6 +103,7 @@ export function translateHardBreak(params: any): {
|
|
|
90
103
|
};
|
|
91
104
|
}[];
|
|
92
105
|
};
|
|
106
|
+
export function isLineBreakOnlyRun(node: any): any;
|
|
93
107
|
export class DocxExporter {
|
|
94
108
|
constructor(converter: any);
|
|
95
109
|
converter: any;
|
|
@@ -11,9 +11,13 @@ export function pixelsToHalfPoints(pixels: any): number;
|
|
|
11
11
|
export function halfPointToPoints(halfPoints: any): number;
|
|
12
12
|
export function eigthPointsToPixels(eigthPoints: any): number;
|
|
13
13
|
export function pixelsToEightPoints(pixels: any): number;
|
|
14
|
+
export function rotToDegrees(rot: any): number;
|
|
15
|
+
export function degreesToRot(degrees: any): number;
|
|
14
16
|
export function getArrayBufferFromUrl(input: any, isHeadless: any): Promise<ArrayBuffer>;
|
|
15
17
|
export function getContentTypesFromXml(contentTypesXml: any): string[];
|
|
16
18
|
export function getHexColorFromDocxSystem(docxColor: any): string;
|
|
19
|
+
export function getDocxHighlightKeywordFromHex(hexColor: any): any;
|
|
20
|
+
export function normalizeHexColor(hex: any): any;
|
|
17
21
|
export function isValidHexColor(color: any): boolean;
|
|
18
22
|
export function rgbToHex(rgb: any): string;
|
|
19
23
|
export function ptToTwips(pt: any): number;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated This handler is deprecated in favor of v3 bookmark translators.
|
|
3
|
+
* Kept for reference for custom mark logic that needs migration.
|
|
4
|
+
* TODO: Migrate custom mark logic to a proper system
|
|
5
|
+
*/
|
|
1
6
|
/**
|
|
2
7
|
* @type {import("docxImporter").NodeHandler}
|
|
3
8
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function handleImageImport(node: any, currentFileName: any, params: any): any;
|
|
2
1
|
/**
|
|
3
2
|
* @type {import("docxImporter").NodeHandler}
|
|
4
3
|
*/
|
|
5
4
|
export const handleDrawingNode: any;
|
|
5
|
+
export function handleImageImport(node: any, filename: string | null, params?: any): any | null;
|
|
6
6
|
/**
|
|
7
7
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
8
8
|
*/
|
|
@@ -17,3 +17,15 @@ export function handleStyleChangeMarks(rPr: XmlNode, currentMarks: PmMarkJson[])
|
|
|
17
17
|
* @returns {PmMarkJson[]}
|
|
18
18
|
*/
|
|
19
19
|
export function createImportMarks(marks: PmMarkJson[]): PmMarkJson[];
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param {string} markType
|
|
23
|
+
* @param attributes
|
|
24
|
+
* @returns {*}
|
|
25
|
+
*/
|
|
26
|
+
export function getMarkValue(markType: string, attributes: any, docx: any): any;
|
|
27
|
+
export function getFontFamilyValue(attributes: any, docx: any): any;
|
|
28
|
+
export function getIndentValue(attributes: any): string;
|
|
29
|
+
export function getLineHeightValue(attributes: any): string;
|
|
30
|
+
export function getHighLightValue(attributes: any): string;
|
|
31
|
+
export function getStrikeValue(attributes: any): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @type {import("docxImporter").
|
|
2
|
+
* @type {import("./docxImporter").NodeHandlerEntry}
|
|
3
3
|
*/
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export const runNodeHandlerEntity: import("./docxImporter").NodeHandlerEntry;
|
|
5
|
+
export function handleRunNode(params: import("./docxImporter").NodeHandlerParams): {
|
|
6
|
+
nodes: any[];
|
|
7
|
+
consumed: number;
|
|
8
|
+
};
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {XmlNode} node
|
|
4
|
-
* @param {ParsedDocx} docx
|
|
5
|
-
* @param {NodeListHandler} nodeListHandler
|
|
6
|
-
* @param {boolean} insideTrackChange
|
|
7
|
-
* @returns {{type: string, content: *, attrs: {borders: *, tableWidth: *, tableWidthType: *}}}
|
|
8
|
-
*/
|
|
9
|
-
export function handleTableNode(node: XmlNode, params: any): {
|
|
10
|
-
type: string;
|
|
11
|
-
content: any;
|
|
12
|
-
attrs: {
|
|
13
|
-
borders: any;
|
|
14
|
-
tableWidth: any;
|
|
15
|
-
tableWidthType: any;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
*
|
|
20
3
|
* @param tblStyleTag
|
|
@@ -29,12 +12,7 @@ export function getReferencedTableStyles(tblStyleTag: any, docx: ParsedDocx): {
|
|
|
29
12
|
rowBorders: {};
|
|
30
13
|
basedOn: any;
|
|
31
14
|
} | null;
|
|
32
|
-
/**
|
|
33
|
-
* @type {import("docxImporter").NodeHandler}
|
|
34
|
-
*/
|
|
35
|
-
export const handleAllTableNodes: any;
|
|
36
15
|
/**
|
|
37
16
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
38
17
|
*/
|
|
39
18
|
export const tableNodeHandlerEntity: any;
|
|
40
|
-
export function getGridColumnWidths(tableNode: any): any;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const EAST_ASIAN_CHARACTER_REGEX: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./east-asian-regex.js";
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
export const registeredHandlers: Readonly<{
|
|
5
|
-
'w:br': import("../node-translator/node-translator.js").NodeTranslator;
|
|
6
|
-
'w:tab': import("../node-translator/node-translator.js").NodeTranslator;
|
|
7
|
-
'w:p': import("../node-translator/node-translator.js").NodeTranslator;
|
|
8
|
-
}>;
|
|
1
|
+
/** @type {RegisteredHandlers} */
|
|
2
|
+
export const registeredHandlers: RegisteredHandlers;
|
|
9
3
|
export type RegisteredHandlers = any;
|
|
@@ -9,12 +9,19 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export function createSingleAttrPropertyHandler(xmlName: string, sdName?: string | null, attrName?: string, transformEncode?: Function, transformDecode?: Function): import("@translator").NodeTranslatorConfig;
|
|
11
11
|
/**
|
|
12
|
-
* Helper to create property handlers for measurement attributes (w:w and w:type)
|
|
12
|
+
* Helper to create property handlers for measurement attributes (CT_TblWidth => w:w and w:type)
|
|
13
13
|
* @param {string} xmlName The XML attribute name (with namespace).
|
|
14
14
|
* @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
15
15
|
* @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
|
|
16
16
|
*/
|
|
17
17
|
export function createMeasurementPropertyHandler(xmlName: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Helper to create property handlers for border attributes (CT_Border xml type)
|
|
20
|
+
* @param {string} [xmlName] The XML element name (with namespace).
|
|
21
|
+
* @param {string|null} [sdName] The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
22
|
+
* @returns {import('@translator').NodeTranslatorConfig} The border property handler config with xmlName, sdName, encode, and decode functions.
|
|
23
|
+
*/
|
|
24
|
+
export function createBorderPropertyHandler(xmlName?: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
18
25
|
/**
|
|
19
26
|
* Encodes properties of a node using provided translators and adds them to the attributes object.
|
|
20
27
|
* @param {object} [node] The node containing elements to be encoded.
|
|
@@ -32,7 +39,7 @@ export function encodeProperties(node?: object, translatorsByXmlName?: object, a
|
|
|
32
39
|
export function decodeProperties(translatorsBySdName?: object, properties?: object): any[];
|
|
33
40
|
export function generateV2HandlerEntity(handlerName: string, translator: import("../node-translator/").NodeTranslator): import("../../v2/importer/docxImporter").NodeHandlerEntry;
|
|
34
41
|
export function createAttributeHandler(xmlName?: string, sdName?: string | null, transformEncode?: any, transformDecode?: any): import("@translator").AttrConfig;
|
|
35
|
-
export function parseBoolean(value: string): boolean;
|
|
36
|
-
export function booleanToString(value: boolean): string;
|
|
42
|
+
export function parseBoolean(value: string): boolean | undefined;
|
|
43
|
+
export function booleanToString(value: boolean): string | undefined;
|
|
37
44
|
export function parseInteger(value: any): number | undefined;
|
|
38
45
|
export function integerToString(value: any): string | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance for the w:b element.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./b-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the bidiVisual element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 373
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./bidiVisual-translator.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance for the <w:bookmarkEnd> element.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./bookmark-end-translator.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance for the <w:bookmarkStart> element.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./bookmark-start-translator.js";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the bottom element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 375
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the bottom element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 374
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|