@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,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for TextAlign
|
|
3
|
+
* @typedef {Object} TextAlignOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {string[]} [types=['heading', 'paragraph']] - Node types to apply alignment to
|
|
6
|
+
* @property {string[]} [alignments=['left', 'center', 'right', 'justify']] - Available alignment options
|
|
7
|
+
* @property {string} [defaultAlignment='left'] - Default text alignment
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Attributes for text alignment
|
|
11
|
+
* @typedef {Object} TextAlignAttributes
|
|
12
|
+
* @category Attributes
|
|
13
|
+
* @property {string} [textAlign='left'] - Text alignment value (left, center, right, justify)
|
|
14
|
+
*/
|
|
1
15
|
/**
|
|
2
16
|
* @module TextAlign
|
|
3
17
|
* @sidebarTitle Text Align
|
|
@@ -8,4 +22,12 @@
|
|
|
8
22
|
* @shortcut Mod-Shift-j | setTextAlign('justify') | Justify text
|
|
9
23
|
*/
|
|
10
24
|
export const TextAlign: Extension;
|
|
25
|
+
/**
|
|
26
|
+
* Configuration options for TextAlign
|
|
27
|
+
*/
|
|
28
|
+
export type TextAlignOptions = any;
|
|
29
|
+
/**
|
|
30
|
+
* Attributes for text alignment
|
|
31
|
+
*/
|
|
32
|
+
export type TextAlignAttributes = any;
|
|
11
33
|
import { Extension } from '@core/index.js';
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @typedef {Object}
|
|
4
|
-
* @
|
|
2
|
+
* Configuration options for TextIndent
|
|
3
|
+
* @typedef {Object} TextIndentOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {string[]} [types=['heading', 'paragraph']] - Node types to apply indentation to
|
|
6
|
+
* @property {Object} [defaults] - Default indentation settings
|
|
7
|
+
* @property {string} [defaults.unit='in'] - Default unit for indentation (in, cm, px, etc.)
|
|
8
|
+
* @property {number} [defaults.increment=0.125] - Default increment/decrement value
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Attributes for text indentation
|
|
12
|
+
* @typedef {Object} TextIndentAttributes
|
|
13
|
+
* @category Attributes
|
|
14
|
+
* @property {string} [textIndent] - Text indentation value with unit (e.g., '0.5in')
|
|
5
15
|
*/
|
|
6
16
|
/**
|
|
7
17
|
* @module TextIndent
|
|
@@ -10,12 +20,11 @@
|
|
|
10
20
|
*/
|
|
11
21
|
export const TextIndent: Extension;
|
|
12
22
|
/**
|
|
13
|
-
*
|
|
23
|
+
* Configuration options for TextIndent
|
|
24
|
+
*/
|
|
25
|
+
export type TextIndentOptions = any;
|
|
26
|
+
/**
|
|
27
|
+
* Attributes for text indentation
|
|
14
28
|
*/
|
|
15
|
-
export type
|
|
16
|
-
/**
|
|
17
|
-
* - Indent value with unit (e.g., '0.5in', '1cm')
|
|
18
|
-
*/
|
|
19
|
-
indent: string;
|
|
20
|
-
};
|
|
29
|
+
export type TextIndentAttributes = any;
|
|
21
30
|
import { Extension } from '@core/index.js';
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for TextStyle
|
|
3
|
+
* @typedef {Object} TextStyleOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {Object} [htmlAttributes={}] - Custom HTML attributes to apply to text style spans
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for text style marks
|
|
9
|
+
* @typedef {Object} TextStyleAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {string} [styleId] - Style identifier for referencing predefined styles
|
|
12
|
+
*/
|
|
1
13
|
/**
|
|
2
14
|
* @module TextStyle
|
|
3
15
|
* @sidebarTitle Text Style
|
|
4
16
|
* @snippetPath /snippets/extensions/text-style.mdx
|
|
5
17
|
*/
|
|
6
18
|
export const TextStyle: Mark;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration options for TextStyle
|
|
21
|
+
*/
|
|
22
|
+
export type TextStyleOptions = any;
|
|
23
|
+
/**
|
|
24
|
+
* Attributes for text style marks
|
|
25
|
+
*/
|
|
26
|
+
export type TextStyleAttributes = any;
|
|
7
27
|
import { Mark } from '@core/index.js';
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for TextTransform
|
|
3
|
+
* @typedef {Object} TextTransformOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
* @property {string[]} [types=['textStyle']] - Mark types to apply text transform to
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Attributes for text transform
|
|
9
|
+
* @typedef {Object} TextTransformAttributes
|
|
10
|
+
* @category Attributes
|
|
11
|
+
* @property {string} [textTransform] - Text transform value (uppercase, lowercase, capitalize, none)
|
|
12
|
+
*/
|
|
1
13
|
/**
|
|
2
14
|
* @module TextTransform
|
|
3
15
|
* @sidebarTitle Text Transform
|
|
4
16
|
* @snippetPath /snippets/extensions/text-transform.mdx
|
|
5
17
|
*/
|
|
6
18
|
export const TextTransform: Extension;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration options for TextTransform
|
|
21
|
+
*/
|
|
22
|
+
export type TextTransformOptions = any;
|
|
23
|
+
/**
|
|
24
|
+
* Attributes for text transform
|
|
25
|
+
*/
|
|
26
|
+
export type TextTransformAttributes = any;
|
|
7
27
|
import { Extension } from '@core/index.js';
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Underline style configuration
|
|
3
|
+
* @typedef {Object} UnderlineConfig
|
|
4
|
+
* @property {'single'|'double'|'thick'|'dotted'|'dashed'|'wavy'} value - Style variant
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Configuration options for Underline
|
|
8
|
+
* @typedef {Object} UnderlineOptions
|
|
9
|
+
* @category Options
|
|
10
|
+
* @property {Object} [htmlAttributes={}] - HTML attributes for underline elements
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Attributes for underline marks
|
|
14
|
+
* @typedef {Object} UnderlineAttributes
|
|
15
|
+
* @category Attributes
|
|
16
|
+
* @property {UnderlineConfig} [underlineType='single'] - Style of underline
|
|
17
|
+
*/
|
|
1
18
|
/**
|
|
2
19
|
* @module Underline
|
|
3
20
|
* @sidebarTitle Underline
|
|
@@ -15,4 +32,12 @@ export type UnderlineConfig = {
|
|
|
15
32
|
*/
|
|
16
33
|
value: "single" | "double" | "thick" | "dotted" | "dashed" | "wavy";
|
|
17
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Configuration options for Underline
|
|
37
|
+
*/
|
|
38
|
+
export type UnderlineOptions = any;
|
|
39
|
+
/**
|
|
40
|
+
* Attributes for underline marks
|
|
41
|
+
*/
|
|
42
|
+
export type UnderlineAttributes = any;
|
|
18
43
|
import { Mark } from '@core/index.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function createTestEditor(options?: {
|
|
2
|
+
extensions: any[];
|
|
3
|
+
content: any;
|
|
4
|
+
editorOptions: any;
|
|
5
|
+
}): Editor;
|
|
6
|
+
export function createMinimalTestEditor(extensions?: any[], options?: any): Editor;
|
|
7
|
+
export function createDocxTestEditor(options?: any): Editor;
|
|
8
|
+
export function getNodeFromEditor(editor: Editor, nodeType: string, pos?: number): Node | null;
|
|
9
|
+
export function insertText(editor: Editor, text: string, pos?: number): void;
|
|
10
|
+
export function createTransaction(editor: Editor): Transaction;
|
|
11
|
+
export function applyTransaction(editor: Editor, tr: Transaction): void;
|
|
12
|
+
export function getEditorJSON(editor: Editor): any;
|
|
13
|
+
export function setEditorContent(editor: Editor, content: any): void;
|
|
14
|
+
import { Editor } from '@core/Editor.js';
|
|
@@ -1117,6 +1117,44 @@ on the right if it is inside shape textbox.
|
|
|
1117
1117
|
white-space: nowrap;
|
|
1118
1118
|
text-overflow: ellipsis;
|
|
1119
1119
|
}
|
|
1120
|
+
.sd-structured-content,
|
|
1121
|
+
.sd-structured-content-block {
|
|
1122
|
+
padding: 1px;
|
|
1123
|
+
box-sizing: border-box;
|
|
1124
|
+
border-radius: 4px;
|
|
1125
|
+
border: 1px solid #629be7;
|
|
1126
|
+
position: relative;
|
|
1127
|
+
}
|
|
1128
|
+
.sd-structured-content-draggable {
|
|
1129
|
+
font-size: 10px;
|
|
1130
|
+
align-items: center;
|
|
1131
|
+
justify-content: center;
|
|
1132
|
+
position: absolute;
|
|
1133
|
+
left: 2px;
|
|
1134
|
+
bottom: 100%;
|
|
1135
|
+
width: calc(100% - 4px);
|
|
1136
|
+
max-width: 110px;
|
|
1137
|
+
min-width: 0;
|
|
1138
|
+
height: 18px;
|
|
1139
|
+
padding: 0 4px;
|
|
1140
|
+
border: 1px solid #629be7;
|
|
1141
|
+
border-bottom: none;
|
|
1142
|
+
border-radius: 6px 6px 0 0;
|
|
1143
|
+
background-color: #629be733;
|
|
1144
|
+
z-index: 10;
|
|
1145
|
+
cursor: grab;
|
|
1146
|
+
display: none;
|
|
1147
|
+
}
|
|
1148
|
+
.sd-structured-content-draggable span {
|
|
1149
|
+
max-width: 100%;
|
|
1150
|
+
overflow: hidden;
|
|
1151
|
+
white-space: nowrap;
|
|
1152
|
+
text-overflow: ellipsis;
|
|
1153
|
+
}
|
|
1154
|
+
.sd-structured-content:hover .sd-structured-content-draggable,
|
|
1155
|
+
.sd-structured-content-block:hover .sd-structured-content-draggable {
|
|
1156
|
+
display: inline-flex;
|
|
1157
|
+
}
|
|
1120
1158
|
|
|
1121
1159
|
.alignment-buttons[data-v-d84f57b6] {
|
|
1122
1160
|
display: flex;
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener,
|
|
15
|
-
import {
|
|
12
|
+
import { av as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, ay as vClickOutside, H as findParentNode, az as getActiveFormatting, ap as isInTable, aA as readFromClipboard, aB as handleClipboardPaste, aC as getFileObject, aD as runPropertyTranslators, aE as translator, aF as translator$1, aG as translator$2, aH as translator$3, aI as translator$4, aJ as translator$5, aK as translator$6, aL as translator$7, aM as translator$8, aN as translator$9, aO as translator$a, aP as translator$b, aQ as translator$c, aR as translator$d, aS as translator$e, aT as translator$f, aU as translator$g, aV as translator$h, aW as translator$i, aX as translator$j, aY as translator$k, aZ as translator$l, a_ as translator$m, a$ as translator$n, b0 as translator$o, b1 as translator$p, a as Plugin } from "./chunks/converter-DUqGq6qj.js";
|
|
13
|
+
import { b2, a5, i, a2 } from "./chunks/converter-DUqGq6qj.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-gMF6aWiz.js";
|
|
15
|
+
import { n, C, o, T, l, p, m } from "./chunks/editor-gMF6aWiz.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-BxsT1ZgG.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CQsQR8Zs.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -69,8 +69,8 @@ function requireEventemitter3() {
|
|
|
69
69
|
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
70
70
|
if (!handlers) return [];
|
|
71
71
|
if (handlers.fn) return [handlers.fn];
|
|
72
|
-
for (var
|
|
73
|
-
ee[
|
|
72
|
+
for (var i2 = 0, l2 = handlers.length, ee = new Array(l2); i2 < l2; i2++) {
|
|
73
|
+
ee[i2] = handlers[i2].fn;
|
|
74
74
|
}
|
|
75
75
|
return ee;
|
|
76
76
|
};
|
|
@@ -83,7 +83,7 @@ function requireEventemitter3() {
|
|
|
83
83
|
EventEmitter2.prototype.emit = function emit(event, a1, a22, a3, a4, a52) {
|
|
84
84
|
var evt = prefix ? prefix + event : event;
|
|
85
85
|
if (!this._events[evt]) return false;
|
|
86
|
-
var listeners = this._events[evt], len = arguments.length, args,
|
|
86
|
+
var listeners = this._events[evt], len = arguments.length, args, i2;
|
|
87
87
|
if (listeners.fn) {
|
|
88
88
|
if (listeners.once) this.removeListener(event, listeners.fn, void 0, true);
|
|
89
89
|
switch (len) {
|
|
@@ -100,32 +100,32 @@ function requireEventemitter3() {
|
|
|
100
100
|
case 6:
|
|
101
101
|
return listeners.fn.call(listeners.context, a1, a22, a3, a4, a52), true;
|
|
102
102
|
}
|
|
103
|
-
for (
|
|
104
|
-
args[
|
|
103
|
+
for (i2 = 1, args = new Array(len - 1); i2 < len; i2++) {
|
|
104
|
+
args[i2 - 1] = arguments[i2];
|
|
105
105
|
}
|
|
106
106
|
listeners.fn.apply(listeners.context, args);
|
|
107
107
|
} else {
|
|
108
|
-
var length = listeners.length,
|
|
109
|
-
for (
|
|
110
|
-
if (listeners[
|
|
108
|
+
var length = listeners.length, j;
|
|
109
|
+
for (i2 = 0; i2 < length; i2++) {
|
|
110
|
+
if (listeners[i2].once) this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
111
111
|
switch (len) {
|
|
112
112
|
case 1:
|
|
113
|
-
listeners[
|
|
113
|
+
listeners[i2].fn.call(listeners[i2].context);
|
|
114
114
|
break;
|
|
115
115
|
case 2:
|
|
116
|
-
listeners[
|
|
116
|
+
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
117
117
|
break;
|
|
118
118
|
case 3:
|
|
119
|
-
listeners[
|
|
119
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a22);
|
|
120
120
|
break;
|
|
121
121
|
case 4:
|
|
122
|
-
listeners[
|
|
122
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a22, a3);
|
|
123
123
|
break;
|
|
124
124
|
default:
|
|
125
|
-
if (!args) for (
|
|
126
|
-
args[
|
|
125
|
+
if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) {
|
|
126
|
+
args[j - 1] = arguments[j];
|
|
127
127
|
}
|
|
128
|
-
listeners[
|
|
128
|
+
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -150,9 +150,9 @@ function requireEventemitter3() {
|
|
|
150
150
|
clearEvent(this, evt);
|
|
151
151
|
}
|
|
152
152
|
} else {
|
|
153
|
-
for (var
|
|
154
|
-
if (listeners[
|
|
155
|
-
events.push(listeners[
|
|
153
|
+
for (var i2 = 0, events = [], length = listeners.length; i2 < length; i2++) {
|
|
154
|
+
if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
155
|
+
events.push(listeners[i2]);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
|
|
@@ -1145,8 +1145,8 @@ const _sfc_main$7 = {
|
|
|
1145
1145
|
const selectGridItems = (allItems, cols, rows) => {
|
|
1146
1146
|
selectedCols.value = cols;
|
|
1147
1147
|
selectedRows.value = rows;
|
|
1148
|
-
for (let
|
|
1149
|
-
let item = allItems[
|
|
1148
|
+
for (let i2 = 0; i2 < allItems.length; i2++) {
|
|
1149
|
+
let item = allItems[i2];
|
|
1150
1150
|
let itemsCols = parseInt(item.dataset.cols, 10);
|
|
1151
1151
|
let itemsRows = parseInt(item.dataset.rows, 10);
|
|
1152
1152
|
if (itemsCols <= cols && itemsRows <= rows) {
|
|
@@ -1223,20 +1223,20 @@ const _sfc_main$7 = {
|
|
|
1223
1223
|
onMouseover: onTableGridMouseOver,
|
|
1224
1224
|
"data-grid": "true"
|
|
1225
1225
|
}, [
|
|
1226
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(5, (
|
|
1227
|
-
return openBlock(), createElementBlock(Fragment, { key:
|
|
1228
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(5, (
|
|
1226
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (i2) => {
|
|
1227
|
+
return openBlock(), createElementBlock(Fragment, { key: i2 }, [
|
|
1228
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (n2) => {
|
|
1229
1229
|
return createElementVNode("div", {
|
|
1230
1230
|
class: "toolbar-table-grid__item",
|
|
1231
|
-
key: `${
|
|
1232
|
-
"data-cols":
|
|
1233
|
-
"data-rows":
|
|
1231
|
+
key: `${i2}_${n2}`,
|
|
1232
|
+
"data-cols": n2,
|
|
1233
|
+
"data-rows": i2,
|
|
1234
1234
|
"data-item": "true",
|
|
1235
1235
|
ref_for: true,
|
|
1236
1236
|
ref_key: "tableGridItems",
|
|
1237
1237
|
ref: tableGridItems,
|
|
1238
|
-
onKeydown: withModifiers((event) => handleKeyDown(event,
|
|
1239
|
-
onClick: withModifiers(($event) => handleClick({ cols:
|
|
1238
|
+
onKeydown: withModifiers((event) => handleKeyDown(event, n2, i2), ["prevent"]),
|
|
1239
|
+
onClick: withModifiers(($event) => handleClick({ cols: n2, rows: i2 }), ["stop", "prevent"])
|
|
1240
1240
|
}, null, 40, _hoisted_1$6);
|
|
1241
1241
|
}), 64))
|
|
1242
1242
|
], 64);
|
|
@@ -1457,7 +1457,7 @@ const makeDefaultItems = ({
|
|
|
1457
1457
|
onActivate: ({ fontFamily }) => {
|
|
1458
1458
|
if (!fontFamily) return;
|
|
1459
1459
|
fontButton.label.value = fontFamily;
|
|
1460
|
-
const foundFont = fontOptions.find((
|
|
1460
|
+
const foundFont = fontOptions.find((i2) => i2.label === fontFamily);
|
|
1461
1461
|
if (foundFont) {
|
|
1462
1462
|
fontButton.selectedValue.value = foundFont.key;
|
|
1463
1463
|
} else {
|
|
@@ -1543,8 +1543,8 @@ const makeDefaultItems = ({
|
|
|
1543
1543
|
if (sanitizedValue < 8) sanitizedValue = 8;
|
|
1544
1544
|
if (sanitizedValue > 96) sanitizedValue = 96;
|
|
1545
1545
|
let sanitizedValueStr = String(sanitizedValue);
|
|
1546
|
-
const foundSize = fontSizeOptions.find((
|
|
1547
|
-
return
|
|
1546
|
+
const foundSize = fontSizeOptions.find((i2) => {
|
|
1547
|
+
return i2.label === sanitizedValueStr || i2.key === sanitizedValueStr;
|
|
1548
1548
|
});
|
|
1549
1549
|
if (foundSize) {
|
|
1550
1550
|
fontSize.selectedValue.value = foundSize.key;
|
|
@@ -2504,6 +2504,38 @@ const toolbarTexts = {
|
|
|
2504
2504
|
documentViewingModeDescription: "View clean version of document only",
|
|
2505
2505
|
linkedStyles: "Linked styles"
|
|
2506
2506
|
};
|
|
2507
|
+
const isOffValue = (value) => {
|
|
2508
|
+
if (value == null) return false;
|
|
2509
|
+
const normalized = String(value).toLowerCase();
|
|
2510
|
+
return normalized === "0" || normalized === "false" || normalized === "off";
|
|
2511
|
+
};
|
|
2512
|
+
const negationChecks = {
|
|
2513
|
+
bold: (attrs = {}) => isOffValue(attrs.value),
|
|
2514
|
+
italic: (attrs = {}) => isOffValue(attrs.value),
|
|
2515
|
+
strike: (attrs = {}) => isOffValue(attrs.value),
|
|
2516
|
+
underline: (attrs = {}) => {
|
|
2517
|
+
const type = attrs.underlineType ?? attrs.value;
|
|
2518
|
+
if (type == null) return false;
|
|
2519
|
+
const normalized = String(type).toLowerCase();
|
|
2520
|
+
return normalized === "none" || isOffValue(normalized);
|
|
2521
|
+
},
|
|
2522
|
+
color: (attrs = {}) => {
|
|
2523
|
+
const value = attrs.color;
|
|
2524
|
+
if (value == null) return true;
|
|
2525
|
+
return String(value).toLowerCase() === "inherit";
|
|
2526
|
+
},
|
|
2527
|
+
highlight: (attrs = {}) => {
|
|
2528
|
+
const value = attrs.color;
|
|
2529
|
+
if (value == null) return true;
|
|
2530
|
+
const normalized = String(value).toLowerCase();
|
|
2531
|
+
return normalized === "transparent" || normalized === "none";
|
|
2532
|
+
}
|
|
2533
|
+
};
|
|
2534
|
+
const isNegatedMark = (name, attrs = {}) => {
|
|
2535
|
+
const checker = negationChecks[name];
|
|
2536
|
+
if (typeof checker !== "function") return false;
|
|
2537
|
+
return Boolean(checker(attrs));
|
|
2538
|
+
};
|
|
2507
2539
|
class SuperToolbar extends EventEmitter {
|
|
2508
2540
|
/**
|
|
2509
2541
|
* Creates a new SuperToolbar instance
|
|
@@ -2606,10 +2638,14 @@ class SuperToolbar extends EventEmitter {
|
|
|
2606
2638
|
* @param {string} params.argument - The color to set
|
|
2607
2639
|
* @returns {void}
|
|
2608
2640
|
*/
|
|
2609
|
-
setColor: ({
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2641
|
+
setColor: ({ argument }) => {
|
|
2642
|
+
if (!argument || !this.activeEditor) return;
|
|
2643
|
+
const isNone = argument === "none";
|
|
2644
|
+
const value = isNone ? "inherit" : argument;
|
|
2645
|
+
if (this.activeEditor?.commands?.setColor) this.activeEditor.commands.setColor(value);
|
|
2646
|
+
const argValue = isNone ? null : argument;
|
|
2647
|
+
this.activeEditor?.commands.setFieldAnnotationsTextColor(argValue, true);
|
|
2648
|
+
this.updateToolbarState();
|
|
2613
2649
|
},
|
|
2614
2650
|
/**
|
|
2615
2651
|
* Sets the highlight color for text
|
|
@@ -2618,12 +2654,14 @@ class SuperToolbar extends EventEmitter {
|
|
|
2618
2654
|
* @param {string} params.argument - The highlight color to set
|
|
2619
2655
|
* @returns {void}
|
|
2620
2656
|
*/
|
|
2621
|
-
setHighlight: ({
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2657
|
+
setHighlight: ({ argument }) => {
|
|
2658
|
+
if (!argument || !this.activeEditor) return;
|
|
2659
|
+
const inlineColor = argument !== "none" ? argument : "transparent";
|
|
2660
|
+
if (this.activeEditor?.commands?.setHighlight) this.activeEditor.commands.setHighlight(inlineColor);
|
|
2661
|
+
const argValue = argument !== "none" ? argument : null;
|
|
2662
|
+
this.activeEditor?.commands.setFieldAnnotationsTextHighlight(argValue, true);
|
|
2663
|
+
this.activeEditor?.commands.setCellBackground(argValue);
|
|
2664
|
+
this.updateToolbarState();
|
|
2627
2665
|
},
|
|
2628
2666
|
/**
|
|
2629
2667
|
* Toggles the ruler visibility
|
|
@@ -2643,10 +2681,25 @@ class SuperToolbar extends EventEmitter {
|
|
|
2643
2681
|
if (!result?.file) {
|
|
2644
2682
|
return;
|
|
2645
2683
|
}
|
|
2646
|
-
|
|
2684
|
+
const { size, file } = await checkAndProcessImage({
|
|
2685
|
+
file: result.file,
|
|
2686
|
+
getMaxContentSize: () => this.activeEditor.getMaxContentSize()
|
|
2687
|
+
});
|
|
2688
|
+
if (!file) {
|
|
2689
|
+
return;
|
|
2690
|
+
}
|
|
2691
|
+
const id = {};
|
|
2692
|
+
replaceSelectionWithImagePlaceholder({
|
|
2693
|
+
view: this.activeEditor.view,
|
|
2694
|
+
editorOptions: this.activeEditor.options,
|
|
2695
|
+
id
|
|
2696
|
+
});
|
|
2697
|
+
await uploadAndInsertImage({
|
|
2647
2698
|
editor: this.activeEditor,
|
|
2648
2699
|
view: this.activeEditor.view,
|
|
2649
|
-
file
|
|
2700
|
+
file,
|
|
2701
|
+
size,
|
|
2702
|
+
id
|
|
2650
2703
|
});
|
|
2651
2704
|
},
|
|
2652
2705
|
/**
|
|
@@ -2929,14 +2982,16 @@ class SuperToolbar extends EventEmitter {
|
|
|
2929
2982
|
return item.activate();
|
|
2930
2983
|
}
|
|
2931
2984
|
}
|
|
2932
|
-
const
|
|
2985
|
+
const rawActiveMark = marks.find((mark) => mark.name === item.name.value);
|
|
2986
|
+
const markNegated = rawActiveMark ? isNegatedMark(rawActiveMark.name, rawActiveMark.attrs) : false;
|
|
2987
|
+
const activeMark = markNegated ? null : rawActiveMark;
|
|
2933
2988
|
if (activeMark) {
|
|
2934
2989
|
item.activate(activeMark.attrs);
|
|
2935
2990
|
} else {
|
|
2936
2991
|
item.deactivate();
|
|
2937
2992
|
}
|
|
2938
2993
|
const styleIdMark = marks.find((mark) => mark.name === "styleId");
|
|
2939
|
-
if (!activeMark && styleIdMark?.attrs.styleId) {
|
|
2994
|
+
if (!activeMark && !markNegated && styleIdMark?.attrs.styleId) {
|
|
2940
2995
|
const markToStyleMap = {
|
|
2941
2996
|
fontSize: "font-size",
|
|
2942
2997
|
fontFamily: "font-family",
|
|
@@ -2994,7 +3049,6 @@ class SuperToolbar extends EventEmitter {
|
|
|
2994
3049
|
if (!command) {
|
|
2995
3050
|
return;
|
|
2996
3051
|
}
|
|
2997
|
-
this.log("(emmitCommand) Command:", command, "\n item:", item, "\n argument:", argument, "\n option:", option);
|
|
2998
3052
|
if (command in __privateGet(this, _interceptedCommands)) {
|
|
2999
3053
|
return __privateGet(this, _interceptedCommands)[command]({ item, argument });
|
|
3000
3054
|
}
|
|
@@ -3977,11 +4031,11 @@ const _sfc_main$3 = {
|
|
|
3977
4031
|
pageMargins.value = docMargins;
|
|
3978
4032
|
rightHandle.x = docSize.width * 96 - docMargins.right * 96;
|
|
3979
4033
|
leftHandle.x = docMargins.left * 96;
|
|
3980
|
-
for (let
|
|
4034
|
+
for (let i2 = 0; i2 < docSize.width; i2++) {
|
|
3981
4035
|
const marginNum = 0.0625 * 96 - 0.5;
|
|
3982
4036
|
const margin = `${marginNum}px`;
|
|
3983
|
-
const diff = docSize.width -
|
|
3984
|
-
rulerItems.push(...generateSection(1, "main", "20%", margin,
|
|
4037
|
+
const diff = docSize.width - i2;
|
|
4038
|
+
rulerItems.push(...generateSection(1, "main", "20%", margin, i2));
|
|
3985
4039
|
rulerItems.push(...generateSection(3, "eighth", "10%", margin));
|
|
3986
4040
|
rulerItems.push(...generateSection(1, "half", "40%", margin));
|
|
3987
4041
|
if (diff <= 0.5) break;
|
|
@@ -3990,7 +4044,7 @@ const _sfc_main$3 = {
|
|
|
3990
4044
|
return rulerItems;
|
|
3991
4045
|
};
|
|
3992
4046
|
const generateSection = (qty, size, height, margin, index) => {
|
|
3993
|
-
return Array.from({ length: qty }, (_,
|
|
4047
|
+
return Array.from({ length: qty }, (_, i2) => {
|
|
3994
4048
|
const item = {
|
|
3995
4049
|
className: `${size}-unit ruler-section`,
|
|
3996
4050
|
height,
|
|
@@ -4602,11 +4656,36 @@ const _sfc_main = {
|
|
|
4602
4656
|
}
|
|
4603
4657
|
};
|
|
4604
4658
|
const SuperInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d5cff52"]]);
|
|
4605
|
-
const
|
|
4606
|
-
|
|
4607
|
-
"w:
|
|
4608
|
-
"w:
|
|
4609
|
-
|
|
4659
|
+
const baseHandlers = {
|
|
4660
|
+
...runPropertyTranslators,
|
|
4661
|
+
"w:br": translator$p,
|
|
4662
|
+
"w:cantSplit": translator$o,
|
|
4663
|
+
"w:cnfStyle": translator$n,
|
|
4664
|
+
"w:divId": translator$m,
|
|
4665
|
+
"w:gridAfter": translator$l,
|
|
4666
|
+
"w:gridBefore": translator$k,
|
|
4667
|
+
"w:hidden": translator$j,
|
|
4668
|
+
"w:hyperlink": translator$i,
|
|
4669
|
+
"w:jc": translator$h,
|
|
4670
|
+
"w:p": translator$g,
|
|
4671
|
+
"w:r": translator$f,
|
|
4672
|
+
"w:rPr": translator$e,
|
|
4673
|
+
"w:sdt": translator$d,
|
|
4674
|
+
"w:tab": translator$c,
|
|
4675
|
+
"w:tblCellSpacing": translator$b,
|
|
4676
|
+
"w:tblHeader": translator$a,
|
|
4677
|
+
"w:tc": translator$9,
|
|
4678
|
+
"w:tr": translator$8,
|
|
4679
|
+
"w:trHeight": translator$7,
|
|
4680
|
+
"w:trPr": translator$6,
|
|
4681
|
+
"w:wAfter": translator$5,
|
|
4682
|
+
"w:wBefore": translator$4,
|
|
4683
|
+
"wp:anchor": translator$3,
|
|
4684
|
+
"wp:inline": translator$2,
|
|
4685
|
+
"w:bookmarkStart": translator$1,
|
|
4686
|
+
"w:bookmarkEnd": translator
|
|
4687
|
+
};
|
|
4688
|
+
const registeredHandlers = Object.freeze(baseHandlers);
|
|
4610
4689
|
const Extensions = {
|
|
4611
4690
|
Node,
|
|
4612
4691
|
Attribute,
|
|
@@ -4616,13 +4695,13 @@ const Extensions = {
|
|
|
4616
4695
|
};
|
|
4617
4696
|
export {
|
|
4618
4697
|
AIWriter,
|
|
4619
|
-
|
|
4620
|
-
|
|
4698
|
+
n as AnnotatorHelpers,
|
|
4699
|
+
b2 as BasicUpload,
|
|
4621
4700
|
C as CommentsPluginKey,
|
|
4622
4701
|
D as DocxZipper,
|
|
4623
4702
|
Editor,
|
|
4624
4703
|
Extensions,
|
|
4625
|
-
|
|
4704
|
+
o as SectionHelpers,
|
|
4626
4705
|
_sfc_main$4 as SlashMenu,
|
|
4627
4706
|
a5 as SuperConverter,
|
|
4628
4707
|
SuperEditor,
|
|
@@ -4631,13 +4710,13 @@ export {
|
|
|
4631
4710
|
Toolbar,
|
|
4632
4711
|
T as TrackChangesBasePluginKey,
|
|
4633
4712
|
createZip,
|
|
4634
|
-
|
|
4713
|
+
l as fieldAnnotationHelpers,
|
|
4635
4714
|
getActiveFormatting,
|
|
4636
|
-
|
|
4715
|
+
p as getAllowedImageDimensions,
|
|
4637
4716
|
i as getMarksFromSelection,
|
|
4638
4717
|
getRichTextExtensions,
|
|
4639
4718
|
getStarterExtensions,
|
|
4640
4719
|
a2 as helpers,
|
|
4641
4720
|
registeredHandlers,
|
|
4642
|
-
|
|
4721
|
+
m as trackChangesHelpers
|
|
4643
4722
|
};
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-CS5l-cVZ.cjs");
|
|
4
4
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BF_Xaucb.es.js";
|
|
2
2
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-CS5l-cVZ.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-ecl0ZFNw.cjs");
|
|
5
5
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
6
6
|
require("./chunks/jszip-b7l8QkfH.cjs");
|
|
7
7
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|