superdoc 0.30.0-next.1 → 0.30.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-DNnHwEf_.es.js → PdfViewer-B_U27-1K.es.js} +1 -1
- package/dist/chunks/{PdfViewer-Mru9qU0u.cjs → PdfViewer-DjMr1y41.cjs} +1 -1
- package/dist/chunks/{index-C3nnrhrj-D8emuLzt.es.js → index-BJia6SL_-D6cjpcdW.es.js} +1 -1
- package/dist/chunks/{index-C3nnrhrj-D6qn1DZi.cjs → index-BJia6SL_-O9_RiF6K.cjs} +1 -1
- package/dist/chunks/{index-DcqOqWRC.es.js → index-D8F3d1e3.es.js} +3 -3
- package/dist/chunks/{index-s9auAjqk.cjs → index-uO0JG1KW.cjs} +3 -3
- package/dist/chunks/{super-editor.es-D1glcoJr.es.js → super-editor.es-BjEfFiAF.es.js} +7251 -7710
- package/dist/chunks/{super-editor.es-DPd8_luo.cjs → super-editor.es-C0Cv2AzF.cjs} +7251 -7710
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/style.css +4 -3
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Z2aFlUnt.js → converter-DxPmeV-v.js} +7511 -7991
- package/dist/super-editor/chunks/{docx-zipper-DIZfYOpO.js → docx-zipper-BnnW7IuB.js} +1 -1
- package/dist/super-editor/chunks/{editor-DCiWw1F7.js → editor-B2jkX1wz.js} +75 -52
- package/dist/super-editor/chunks/{index-C3nnrhrj.js → index-BJia6SL_.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-B5-PSkGu.js → toolbar-DFlHgpZd.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +4 -3
- package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts +24 -0
- package/dist/super-editor/super-editor/src/core/super-converter/styles.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +2 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +11 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/trackChangesImporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +30 -4
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/utils.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/adjustRightInd/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDE/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/autoSpaceDN/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +1 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/bCs-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/bCs-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bCs/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/bar-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/bar-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bar/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/between-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/between-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/between/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/bidi-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/bidi-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/bidi/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +1 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +1 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/contextualSpacing-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/contextualSpacing-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/contextualSpacing/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/dstrike/dstrike-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/dstrike/dstrike-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/framePr-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/framePr-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/framePr/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/headers-translator.d.ts +0 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/headers-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +1 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/ilvl-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/ilvl-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ilvl/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/ind-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/ind-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ind/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/keepLines-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepLines/keepLines-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/keepNext-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/keepNext/keepNext-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/kinsoku-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/kinsoku/kinsoku-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/lang-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/lang/lang-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/mirrorIndents-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/mirrorIndents/mirrorIndents-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/numId-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numId/numId-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/numPr-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/numPr/numPr-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/outlineLvl-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/outlineLvl/outlineLvl-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/overflowPunct-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/overflowPunct/overflowPunct-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/pBdr-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pBdr/pBdr-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/pPr-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pPr/pPr-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/pStyle-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pStyle/pStyle-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/pageBreakBefore-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pageBreakBefore/pageBreakBefore-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pict/helpers/handle-v-rect-import.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/pict/helpers/handle-v-rect-import.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +1 -37
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +1 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/snapToGrid-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/snapToGrid/snapToGrid-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/letter-spacing-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/letter-spacing-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/spacing-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/spacing/spacing-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +1 -2
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/suppressAutoHyphens-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressAutoHyphens/suppressAutoHyphens-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/suppressLineNumbers-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressLineNumbers/suppressLineNumbers-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/suppressOverlap-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/suppressOverlap/suppressOverlap-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +5 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +5 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/{w-tab-size.d.ts → w-tab-type.d.ts} +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-type.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/tabs-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tabs/tabs-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/textAlignment-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textAlignment/textAlignment-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/textboxTightWrap-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textboxTightWrap/textboxTightWrap-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/topLinePunct-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/topLinePunct/topLinePunct-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/widowControl-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/widowControl/widowControl-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/wordWrap-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/wordWrap/wordWrap-translator.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/linked-styles/helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/helpers/getDefaultSpacing.d.ts +4 -4
- package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +19 -17
- 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 +7256 -7715
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -4
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -10
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -12
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts.map +0 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1,
|
|
1
|
+
import { p as process$1, aC as commonjsGlobal, B as Buffer, aD as getDefaultExportFromCjs, aE as getContentTypesFromXml, aF as xmljs } from "./converter-DxPmeV-v.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ListItemNodeView_instances, init_fn3, applyIndentStyling_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as
|
|
16
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as findParentNodeClosestToPos, ap as docxNumberingHelpers, aq as getListItemStyleDefinitions, ar as parseIndentElement, as as combineIndents, at as eighthPointsToPixels, au as linesToTwips, av as PIXELS_PER_INCH, aw as SelectionRange, ax as Transform, ay as isInTable$1, az as generateDocxRandomId, aA as insertNewRelationship, aB as inchesToPixels } from "./converter-DxPmeV-v.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-BnnW7IuB.js";
|
|
17
17
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
@@ -15081,7 +15081,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15081
15081
|
{ default: remarkStringify },
|
|
15082
15082
|
{ default: remarkGfm }
|
|
15083
15083
|
] = await Promise.all([
|
|
15084
|
-
import("./index-
|
|
15084
|
+
import("./index-BJia6SL_.js"),
|
|
15085
15085
|
import("./index-DRCvimau.js"),
|
|
15086
15086
|
import("./index-C_x_N6Uh.js"),
|
|
15087
15087
|
import("./index-D_sWOSiG.js"),
|
|
@@ -15299,7 +15299,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15299
15299
|
* @returns {Object | void} Migration results
|
|
15300
15300
|
*/
|
|
15301
15301
|
processCollaborationMigrations() {
|
|
15302
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.
|
|
15302
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.2");
|
|
15303
15303
|
if (!this.options.ydoc) return;
|
|
15304
15304
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
15305
15305
|
let docVersion = metaMap.get("version");
|
|
@@ -19372,11 +19372,25 @@ const getSpacingStyle = (spacing) => {
|
|
|
19372
19372
|
...lineHeightStyles
|
|
19373
19373
|
};
|
|
19374
19374
|
};
|
|
19375
|
-
const getSpacingStyleString = (spacing) => {
|
|
19376
|
-
|
|
19375
|
+
const getSpacingStyleString = (spacing, marks) => {
|
|
19376
|
+
let { before, after, line, lineRule, beforeAutospacing, afterAutospacing } = spacing;
|
|
19377
|
+
line = twipsToLines(line);
|
|
19378
|
+
if (lineRule === "exact" && line) {
|
|
19379
|
+
line = String(line);
|
|
19380
|
+
}
|
|
19381
|
+
const textStyleMark = marks?.find((mark) => mark.type === "textStyle");
|
|
19382
|
+
const fontSize = textStyleMark?.attrs?.fontSize;
|
|
19383
|
+
before = twipsToPixels(before);
|
|
19384
|
+
if (beforeAutospacing && fontSize) {
|
|
19385
|
+
before += halfPointToPixels(parseInt(fontSize) * 0.5);
|
|
19386
|
+
}
|
|
19387
|
+
after = twipsToPixels(after);
|
|
19388
|
+
if (afterAutospacing && fontSize) {
|
|
19389
|
+
after += halfPointToPixels(parseInt(fontSize) * 0.5);
|
|
19390
|
+
}
|
|
19377
19391
|
return `
|
|
19378
|
-
${
|
|
19379
|
-
${
|
|
19392
|
+
${before ? `margin-top: ${before}px;` : ""}
|
|
19393
|
+
${after ? `margin-bottom: ${after}px;` : ""}
|
|
19380
19394
|
${line ? getLineHeightValueString(line, "") : ""}
|
|
19381
19395
|
`.trim();
|
|
19382
19396
|
};
|
|
@@ -20713,10 +20727,10 @@ const ListItem = Node$1.create({
|
|
|
20713
20727
|
}
|
|
20714
20728
|
});
|
|
20715
20729
|
const getDefaultSpacing = () => ({
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
line:
|
|
20719
|
-
lineRule:
|
|
20730
|
+
after: null,
|
|
20731
|
+
before: null,
|
|
20732
|
+
line: null,
|
|
20733
|
+
lineRule: "auto"
|
|
20720
20734
|
});
|
|
20721
20735
|
const Paragraph = OxmlNode.create({
|
|
20722
20736
|
name: "paragraph",
|
|
@@ -20745,20 +20759,20 @@ const Paragraph = OxmlNode.create({
|
|
|
20745
20759
|
parseDOM: (element) => {
|
|
20746
20760
|
if (element && element.closest("[data-superdoc-import]")) {
|
|
20747
20761
|
return {
|
|
20748
|
-
|
|
20749
|
-
|
|
20750
|
-
line: 1.15,
|
|
20762
|
+
after: pixelsToTwips(11),
|
|
20763
|
+
before: 0,
|
|
20764
|
+
line: linesToTwips(1.15),
|
|
20751
20765
|
lineRule: "auto"
|
|
20752
20766
|
};
|
|
20753
20767
|
}
|
|
20754
20768
|
return void 0;
|
|
20755
20769
|
},
|
|
20756
20770
|
renderDOM: (attrs) => {
|
|
20757
|
-
const { spacing } = attrs;
|
|
20771
|
+
const { spacing, marksAttrs } = attrs;
|
|
20758
20772
|
if (!spacing) return {};
|
|
20759
20773
|
const spacingCopy = { ...spacing };
|
|
20760
20774
|
if (attrs.lineHeight) delete spacingCopy.line;
|
|
20761
|
-
const style = getSpacingStyleString(spacingCopy);
|
|
20775
|
+
const style = getSpacingStyleString(spacingCopy, marksAttrs ?? []);
|
|
20762
20776
|
if (style) return { style };
|
|
20763
20777
|
return {};
|
|
20764
20778
|
}
|
|
@@ -20794,11 +20808,11 @@ const Paragraph = OxmlNode.create({
|
|
|
20794
20808
|
return {};
|
|
20795
20809
|
}
|
|
20796
20810
|
let style = "";
|
|
20797
|
-
if (left2) style += `margin-left: ${left2}px;`;
|
|
20798
|
-
if (right2) style += `margin-right: ${right2}px;`;
|
|
20799
|
-
if (firstLine && !hanging) style += `text-indent: ${firstLine}px;`;
|
|
20800
|
-
if (firstLine && hanging) style += `text-indent: ${firstLine - hanging}px;`;
|
|
20801
|
-
if (!firstLine && hanging) style += `text-indent: ${-hanging}px;`;
|
|
20811
|
+
if (left2) style += `margin-left: ${twipsToPixels(left2)}px;`;
|
|
20812
|
+
if (right2) style += `margin-right: ${twipsToPixels(right2)}px;`;
|
|
20813
|
+
if (firstLine && !hanging) style += `text-indent: ${twipsToPixels(firstLine)}px;`;
|
|
20814
|
+
if (firstLine && hanging) style += `text-indent: ${twipsToPixels(firstLine - hanging)}px;`;
|
|
20815
|
+
if (!firstLine && hanging) style += `text-indent: ${twipsToPixels(-hanging)}px;`;
|
|
20802
20816
|
return { style };
|
|
20803
20817
|
}
|
|
20804
20818
|
},
|
|
@@ -20817,12 +20831,16 @@ const Paragraph = OxmlNode.create({
|
|
|
20817
20831
|
sideOrder.forEach((side) => {
|
|
20818
20832
|
const b = borders[side];
|
|
20819
20833
|
if (!b) return;
|
|
20820
|
-
|
|
20834
|
+
if (["nil", "none", void 0, null].includes(b.val)) {
|
|
20835
|
+
style += `border-${side}: none;`;
|
|
20836
|
+
return;
|
|
20837
|
+
}
|
|
20838
|
+
const width = b.size != null ? `${eighthPointsToPixels(b.size)}px` : "1px";
|
|
20821
20839
|
const cssStyle = valToCss[b.val] || "solid";
|
|
20822
|
-
const color = b.color || "#000000"
|
|
20840
|
+
const color = !b.color || b.color === "auto" ? "#000000" : `#${b.color}`;
|
|
20823
20841
|
style += `border-${side}: ${width} ${cssStyle} ${color};`;
|
|
20824
20842
|
if (b.space != null && side === "bottom") {
|
|
20825
|
-
style += `padding-bottom: ${b.space}px;`;
|
|
20843
|
+
style += `padding-bottom: ${eighthPointsToPixels(b.space)}px;`;
|
|
20826
20844
|
}
|
|
20827
20845
|
});
|
|
20828
20846
|
return style ? { style } : {};
|
|
@@ -20854,15 +20872,14 @@ const Paragraph = OxmlNode.create({
|
|
|
20854
20872
|
paragraphProperties: { rendered: false },
|
|
20855
20873
|
dropcap: { rendered: false },
|
|
20856
20874
|
pageBreakSource: { rendered: false },
|
|
20857
|
-
|
|
20858
|
-
renderDOM: ({
|
|
20859
|
-
|
|
20860
|
-
if (!jc) return {};
|
|
20875
|
+
textAlign: {
|
|
20876
|
+
renderDOM: ({ textAlign }) => {
|
|
20877
|
+
if (!textAlign) return {};
|
|
20861
20878
|
let style = "";
|
|
20862
|
-
if (
|
|
20863
|
-
else if (
|
|
20864
|
-
else if (
|
|
20865
|
-
else if (
|
|
20879
|
+
if (textAlign === "left") style += "text-align: left;";
|
|
20880
|
+
else if (textAlign === "right") style += "text-align: right;";
|
|
20881
|
+
else if (textAlign === "center") style += "text-align: center;";
|
|
20882
|
+
else if (textAlign === "both") style += "text-align: justify;";
|
|
20866
20883
|
return { style };
|
|
20867
20884
|
}
|
|
20868
20885
|
},
|
|
@@ -21209,13 +21226,16 @@ const getTabDecorations = (doc2, view, helpers2, from2 = 0, to = null) => {
|
|
|
21209
21226
|
const tabStop = tabStops.find((stop) => stop.pos > currentWidth && stop.val !== "clear");
|
|
21210
21227
|
if (tabStop) {
|
|
21211
21228
|
tabWidth = tabStop.pos - currentWidth;
|
|
21212
|
-
|
|
21229
|
+
let val = tabStop.val;
|
|
21230
|
+
const aliases = { left: "start", right: "end" };
|
|
21231
|
+
if (aliases[val]) val = aliases[val];
|
|
21232
|
+
if (val === "center" || val === "end" || val === "right") {
|
|
21213
21233
|
const nextTabIndex = findNextTabIndex(flattened, entryIndex + 1);
|
|
21214
21234
|
const segmentStartPos = pos + node.nodeSize;
|
|
21215
21235
|
const segmentEndPos = nextTabIndex === -1 ? startPos + paragraphContext.paragraph.nodeSize - 1 : flattened[nextTabIndex].pos;
|
|
21216
21236
|
const segmentWidth = measureRangeWidth(view, segmentStartPos, segmentEndPos, coordCache, domPosCache);
|
|
21217
|
-
tabWidth -=
|
|
21218
|
-
} else if (
|
|
21237
|
+
tabWidth -= val === "center" ? segmentWidth / 2 : segmentWidth;
|
|
21238
|
+
} else if (val === "decimal" || val === "num") {
|
|
21219
21239
|
const breakChar = tabStop.decimalChar || ".";
|
|
21220
21240
|
const decimalPos = findDecimalBreakPos(flattened, entryIndex + 1, breakChar);
|
|
21221
21241
|
const integralWidth = decimalPos ? measureRangeWidth(view, pos + node.nodeSize, decimalPos, coordCache, domPosCache) : measureRangeWidth(
|
|
@@ -21264,7 +21284,15 @@ function getParagraphContext($pos, cache, helpers2) {
|
|
|
21264
21284
|
if (!cache.has(startPos)) {
|
|
21265
21285
|
let tabStops = [];
|
|
21266
21286
|
if (Array.isArray(node.attrs?.tabStops)) {
|
|
21267
|
-
tabStops = node.attrs.tabStops
|
|
21287
|
+
tabStops = node.attrs.tabStops.map((stop) => {
|
|
21288
|
+
const ref2 = stop?.tab;
|
|
21289
|
+
if (!ref2) return stop || null;
|
|
21290
|
+
return {
|
|
21291
|
+
val: ref2.tabType || "start",
|
|
21292
|
+
pos: twipsToPixels(Number(ref2.pos) || 0),
|
|
21293
|
+
leader: ref2.leader
|
|
21294
|
+
};
|
|
21295
|
+
}).filter(Boolean);
|
|
21268
21296
|
} else {
|
|
21269
21297
|
const style = helpers2.linkedStyles.getStyleById(node.attrs?.styleId);
|
|
21270
21298
|
if (Array.isArray(style?.definition?.styles?.tabStops)) {
|
|
@@ -21365,9 +21393,9 @@ function getIndentWidth(view, paragraphStartPos, indentAttrs = {}, coordCache =
|
|
|
21365
21393
|
}
|
|
21366
21394
|
function calculateIndentFallback(indentAttrs = {}) {
|
|
21367
21395
|
if (!indentAttrs) return 0;
|
|
21368
|
-
const left2 = Number(indentAttrs.left) || 0;
|
|
21369
|
-
const firstLine = Number(indentAttrs.firstLine) || 0;
|
|
21370
|
-
const hanging = Number(indentAttrs.hanging) || 0;
|
|
21396
|
+
const left2 = twipsToPixels(Number(indentAttrs.left) || 0);
|
|
21397
|
+
const firstLine = twipsToPixels(Number(indentAttrs.firstLine) || 0);
|
|
21398
|
+
const hanging = twipsToPixels(Number(indentAttrs.hanging) || 0);
|
|
21371
21399
|
let textIndent = 0;
|
|
21372
21400
|
if (firstLine && hanging) {
|
|
21373
21401
|
textIndent = firstLine - hanging;
|
|
@@ -21375,11 +21403,6 @@ function calculateIndentFallback(indentAttrs = {}) {
|
|
|
21375
21403
|
textIndent = firstLine;
|
|
21376
21404
|
} else if (hanging) {
|
|
21377
21405
|
textIndent = -hanging;
|
|
21378
|
-
} else if (typeof indentAttrs.textIndent === "string") {
|
|
21379
|
-
const match = indentAttrs.textIndent.match(/(-?\d*\.?\d+)in$/);
|
|
21380
|
-
if (match) {
|
|
21381
|
-
textIndent = Number(match[1]) * 96;
|
|
21382
|
-
}
|
|
21383
21406
|
}
|
|
21384
21407
|
if (textIndent) return left2 + textIndent;
|
|
21385
21408
|
if (left2) return left2;
|
|
@@ -31816,8 +31839,8 @@ const Bold = Mark.create({
|
|
|
31816
31839
|
value: {
|
|
31817
31840
|
default: null,
|
|
31818
31841
|
renderDOM: (attrs) => {
|
|
31819
|
-
if (
|
|
31820
|
-
if (attrs.value === "0") {
|
|
31842
|
+
if (attrs.value == null) return {};
|
|
31843
|
+
if (attrs.value === "0" || !attrs.value) {
|
|
31821
31844
|
return { style: "font-weight: normal" };
|
|
31822
31845
|
}
|
|
31823
31846
|
return {};
|
|
@@ -31894,8 +31917,8 @@ const Italic = Mark.create({
|
|
|
31894
31917
|
value: {
|
|
31895
31918
|
default: null,
|
|
31896
31919
|
renderDOM: (attrs) => {
|
|
31897
|
-
if (
|
|
31898
|
-
if (attrs.value === "0") return { style: "font-style: normal" };
|
|
31920
|
+
if (attrs.value == null) return {};
|
|
31921
|
+
if (attrs.value === "0" || !attrs.value) return { style: "font-style: normal" };
|
|
31899
31922
|
return {};
|
|
31900
31923
|
}
|
|
31901
31924
|
}
|
|
@@ -32114,7 +32137,7 @@ const Strike = Mark.create({
|
|
|
32114
32137
|
const merged = Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes);
|
|
32115
32138
|
const { value } = mark.attrs;
|
|
32116
32139
|
const { ...rest } = merged || {};
|
|
32117
|
-
if (value === "0") {
|
|
32140
|
+
if (value === "0" || value === false) {
|
|
32118
32141
|
return ["span", rest, 0];
|
|
32119
32142
|
}
|
|
32120
32143
|
return ["s", rest, 0];
|
|
@@ -32157,8 +32180,8 @@ const Strike = Mark.create({
|
|
|
32157
32180
|
value: {
|
|
32158
32181
|
default: null,
|
|
32159
32182
|
renderDOM: (attrs) => {
|
|
32160
|
-
if (
|
|
32161
|
-
if (attrs.value === "0") {
|
|
32183
|
+
if (attrs.value == null) return {};
|
|
32184
|
+
if (attrs.value === "0" || !attrs.value) {
|
|
32162
32185
|
return { style: "text-decoration: none" };
|
|
32163
32186
|
}
|
|
32164
32187
|
return {};
|
|
@@ -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-DxPmeV-v.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-B2jkX1wz.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-B2jkX1wz.js";
|
|
2
|
+
import "./chunks/converter-DxPmeV-v.js";
|
|
3
|
+
import "./chunks/docx-zipper-BnnW7IuB.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -681,8 +681,8 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
681
681
|
border-top: 1px dashed #cb0e47;
|
|
682
682
|
border-bottom: 1px dashed #cb0e47;
|
|
683
683
|
background-color: #cb0e4722;
|
|
684
|
-
text-decoration: line-through;
|
|
685
|
-
text-decoration-thickness: 2px;
|
|
684
|
+
text-decoration: line-through !important;
|
|
685
|
+
text-decoration-thickness: 2px !important;
|
|
686
686
|
}
|
|
687
687
|
.ProseMirror .track-format-dec.highlighted {
|
|
688
688
|
border-bottom: 2px solid gold;
|
|
@@ -767,7 +767,8 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
767
767
|
.ProseMirror div[data-horizontal-rule='true'] {
|
|
768
768
|
position: relative;
|
|
769
769
|
z-index: auto;
|
|
770
|
-
display: block;
|
|
770
|
+
display: inline-block;
|
|
771
|
+
vertical-align: middle;
|
|
771
772
|
margin-top: auto;
|
|
772
773
|
align-self: flex-end;
|
|
773
774
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAuBO;;;;;
|
|
1
|
+
{"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAuBO;;;;;EAirCN"}
|
|
@@ -57,7 +57,7 @@ export function translateParagraphNode(params: any): XmlReadyNode;
|
|
|
57
57
|
* @param {SchemaNode} node
|
|
58
58
|
* @returns {XmlReadyNode} The paragraph properties node
|
|
59
59
|
*/
|
|
60
|
-
export function generateParagraphProperties(
|
|
60
|
+
export function generateParagraphProperties(params: any): XmlReadyNode;
|
|
61
61
|
/**
|
|
62
62
|
* Helper function to be used for text node translation
|
|
63
63
|
* Also used for transforming text annotations for the final submit
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AA4GA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyDxB;AAyFD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AAED;;;;;GAKG;AACH,0DAFa,YAAY,CAuCxB;AAwBD;;;;;;;GAOG;AAEH,0DAJW,KAAQ,gBACN,YAAY,CAiExB;AAED;;;;;GAKG;AACH,6DAFa,YAAY,CAYxB;AAED;;;;;GAKG;AACH,yCAHW,KAAQ;;;EAQlB;AAED;;;;;GAKG;AACH,2CAHW,QAAQ,EAAE,SAgBpB;AAED,uDA2CC;AAED;;;;;;GAMG;AACH,+CAJW,YAAY,QACZ,MAAM,GACJ,MAAM,CAqBlB;AAmUD;;;;;;;;;EAgBC;AAx6BM,8EAiDN;AAEM,mDAON;AAg3BD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAoFF;;;;;;;;;;;;;oBAj5Ba,KAAQ;;;;;;;;;;UAMR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the resolved paragraph properties by merging defaults, styles, and inline properties.
|
|
3
|
+
* @param {import('@translator').SCEncoderConfig} params
|
|
4
|
+
* @param {Object} inlineProps - The inline paragraph properties.
|
|
5
|
+
* @param {boolean} [insideTable=false] - Whether the paragraph is inside a table.
|
|
6
|
+
* @returns {Object} The resolved paragraph properties.
|
|
7
|
+
*/
|
|
8
|
+
export function resolveParagraphProperties(params: import("@translator").SCEncoderConfig, inlineProps: any, insideTable?: boolean): any;
|
|
9
|
+
export function getDefaultProperties(params: any, translator: any): any;
|
|
10
|
+
export function getStyleProperties(params: any, styleId: any, translator: any): {
|
|
11
|
+
properties: any;
|
|
12
|
+
isDefault: boolean;
|
|
13
|
+
basedOn: any;
|
|
14
|
+
};
|
|
15
|
+
export function getNumberingProperties(params: any, ilvl: any, numId: any, translator: any): any;
|
|
16
|
+
export function encodeMarksFromRPr(runProperties: any, docx: any): {
|
|
17
|
+
type: string;
|
|
18
|
+
attrs: {};
|
|
19
|
+
}[];
|
|
20
|
+
export function decodeRPrFromMarks(marks: any): {};
|
|
21
|
+
export function resolveRunProperties(params: import("@translator").SCEncoderConfig, inlineRpr: any, resolvedPpr: any, isListNumber?: boolean): any;
|
|
22
|
+
export function combineProperties(propertiesArray: any, fullOverrideProps?: any[]): any;
|
|
23
|
+
export function combineRunProperties(propertiesArray: any): any;
|
|
24
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/styles.js"],"names":[],"mappings":"AAyDA;;;;;;GAMG;AACH,mDALW,OAAO,aAAa,EAAE,eAAe,kCAErC,OAAO,OAsCjB;AA8BD,wEAgBC;AAED;;;;EAsBC;AAED,iGA8CC;AAsCD;;;IAqGC;AAED,mDAoFC;AA5aM,6CALI,OAAO,aAAa,EAAE,eAAe,iEA8C/C;AAoKM,wFA8BN;AAEM,gEAEN"}
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export function createDocumentJson(docx: ParsedDocx, converter: SuperConverter,
|
|
|
29
29
|
pageStyles: any;
|
|
30
30
|
} | null;
|
|
31
31
|
export function defaultNodeListHandler(): {
|
|
32
|
-
handler: ({ nodes: elements, docx, insideTrackChange, converter, editor, filename, parentStyleId, lists, inlineDocumentFonts, path, }: {
|
|
32
|
+
handler: ({ nodes: elements, docx, insideTrackChange, converter, editor, filename, parentStyleId, lists, inlineDocumentFonts, path, extraParams, }: {
|
|
33
33
|
nodes: any;
|
|
34
34
|
docx: any;
|
|
35
35
|
insideTrackChange: any;
|
|
@@ -40,6 +40,7 @@ export function defaultNodeListHandler(): {
|
|
|
40
40
|
lists: any;
|
|
41
41
|
inlineDocumentFonts: any;
|
|
42
42
|
path?: any[];
|
|
43
|
+
extraParams?: {};
|
|
43
44
|
}) => any[];
|
|
44
45
|
handlerEntities: any[];
|
|
45
46
|
};
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docxImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/docxImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docxImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/docxImporter.js"],"names":[],"mappings":"AAmfA;;;;;;;;GAQG;AACH,wDAFa,MAAS,IAAI,CAiBzB;AAoHD;;;;;;;;GAQG;AACH,mDAHW,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC,SA4B1E;AAjnBM,yCALI,UAAU,aACV,cAAc,UACd,MAAM,GACJ;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,kBAAkB,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,GAAC,CAAA;CAAC,GAAC,IAAI,CAuGhF;AAEM;;;;;;;;;;;;;;;EA6BN;sBAtJY,OAAO,GAAA,CAAC;yBACR;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAC,CAAC;IAAC,IAAI,EAAE,GAAC,CAAC;IAAC,KAAK,EAAE,GAAC,CAAC;IAAC,KAAK,EAAE,EAAE,CAAC;CAAC;yBACzD;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,EAAE,CAAA;CAAC;gCAEzB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,KAAK,UAAU,EAAE;8BAChF;IAAC,OAAO,EAAE,iBAAiB,CAAC;IAAC,eAAe,EAAE,gBAAgB,EAAE,CAAA;CAAC;0BAEjE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,OAAO,KAAK;IAAC,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC;+BAC7I;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAC"}
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AA8KA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAwCnB;AAMD;;;;;;GAMG;AACH,gDAJW,MAAM,kBAahB;AAED;;;;;;;;;;;GAWG;AACH,+EAFa,MAAM,GAAC,IAAI,CAwBvB;AA2KD;;;;GAIG;AACH,8CAHW,MAAM,GACJ,MAAM,CAWlB;AAED;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;EAiDpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BC;AAoGD,kEAWC;AAED,qDAUC;AAED,yDAmBC;AA7qBD;;GAEG;AACH,iCAoBE;AAEF;;GAEG;AACH,oCAGE;AAmTK,2HAsCN;AAEM,sGAWN;AASM,iDALI,MAAM,SACN,MAAM,iCA8ChB"}
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts
CHANGED
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
* @returns {PmMarkJson[]}
|
|
5
5
|
*/
|
|
6
6
|
export function parseMarks(property: any, unknownMarks?: any[], docx?: any): PmMarkJson[];
|
|
7
|
+
export function handleStyleChangeMarksV2(rPrChange: any, currentMarks: any, params: any): {
|
|
8
|
+
type: string;
|
|
9
|
+
attrs: {
|
|
10
|
+
before: any[];
|
|
11
|
+
after: any[];
|
|
12
|
+
id: any;
|
|
13
|
+
date: any;
|
|
14
|
+
author: any;
|
|
15
|
+
authorEmail: any;
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
7
18
|
/**
|
|
8
19
|
*
|
|
9
20
|
* @param {XmlNode} rPr
|
package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/markImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/markImporter.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,6EAFa,UAAU,EAAE,CAsGxB;AAED;;;;;;;;;;IAoBC;AAED;;;;;GAKG;AACH,4CAJW,OAAO,gBACP,UAAU,EAAE,GACV,UAAU,EAAE,CAiBxB;AAED;;;;GAIG;AACH,yCAHW,UAAU,EAAE,GACV,UAAU,EAAE,CAoBxB;AAED;;;;;GAKG;AACH,uCAJW,MAAM,+BAEJ,GAAC,CA6Bb;AAED,oEAuBC;AAED,wDAIC;AAED,4DAYC;AAED,2DAKC;AAED,2DAOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trackChangesImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/trackChangesImporter.js"],"names":[],"mappings":"AA+BA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"trackChangesImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/trackChangesImporter.js"],"names":[],"mappings":"AA+BA;;GAEG;AACH,wCAwCE;AAEF;;GAEG;AACH,+CAGE;;;;AA7EF,uDAwBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/index.js"],"names":[],"mappings":"AA4LA,iCAAiC;AACjC,iCADW,kBAAkB,CACiC"}
|
|
@@ -8,6 +8,21 @@
|
|
|
8
8
|
* @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
|
|
9
9
|
*/
|
|
10
10
|
export function createSingleAttrPropertyHandler(xmlName: string, sdName?: string | null, attrName?: string, transformEncode?: Function, transformDecode?: Function): import("@translator").NodeTranslatorConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Helper to create property handlers for boolean attributes (CT_OnOff => w:val)
|
|
13
|
+
* @param {string} xmlName The XML attribute name (with namespace).
|
|
14
|
+
* @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
15
|
+
* @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
|
|
16
|
+
*/
|
|
17
|
+
export function createSingleBooleanPropertyHandler(xmlName: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Helper to create property handlers for track changes attributes (CT_TrackChange => w:id, w:author, w:date, w:original)
|
|
20
|
+
* @param {string} xmlName The XML attribute name (with namespace).
|
|
21
|
+
* @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
22
|
+
* @param {Array} extraAttrs Additional attribute handlers to include.
|
|
23
|
+
* @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
|
|
24
|
+
*/
|
|
25
|
+
export function createTrackChangesPropertyHandler(xmlName: string, sdName?: string | null, extraAttrs?: any[]): import("@translator").NodeTranslatorConfig;
|
|
11
26
|
/**
|
|
12
27
|
* Helper to create property handlers for measurement attributes (CT_TblWidth => w:w and w:type)
|
|
13
28
|
* @param {string} xmlName The XML attribute name (with namespace).
|
|
@@ -24,19 +39,19 @@ export function createMeasurementPropertyHandler(xmlName: string, sdName?: strin
|
|
|
24
39
|
export function createBorderPropertyHandler(xmlName?: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
25
40
|
/**
|
|
26
41
|
* Encodes properties of a node using provided translators and adds them to the attributes object.
|
|
27
|
-
* @param {
|
|
42
|
+
* @param {import('@translator').SCEncoderConfig} params The encoding parameters containing the nodes to process.
|
|
28
43
|
* @param {object} [translatorsByXmlName] A mapping of XML names to their corresponding translators.
|
|
29
44
|
* @param {boolean} [asArray=false] If true, encodes attributes as an array of objects; otherwise, as a single object.
|
|
30
45
|
* @returns {object|Array} The encoded attributes as an object or array based on the asArray flag.
|
|
31
46
|
*/
|
|
32
|
-
export function encodeProperties(
|
|
47
|
+
export function encodeProperties(params: import("@translator").SCEncoderConfig, translatorsByXmlName?: object, asArray?: boolean): object | any[];
|
|
33
48
|
/** Decodes properties from a given properties object using provided translators and adds them to the elements array.
|
|
34
|
-
* @param {
|
|
49
|
+
* @param {import('@translator').SCDecoderConfig} params The decodeing parameters containing the node to process.
|
|
35
50
|
* @param {object} [translatorsBySdName] A mapping of SuperDoc names to their corresponding translators.
|
|
36
51
|
* @param {object} [properties] The properties object containing attributes to be decoded.
|
|
37
52
|
* @returns {Array} An array of decoded elements.
|
|
38
53
|
*/
|
|
39
|
-
export function decodeProperties(translatorsBySdName?: object, properties?: object): any[];
|
|
54
|
+
export function decodeProperties(params: import("@translator").SCDecoderConfig, translatorsBySdName?: object, properties?: object): any[];
|
|
40
55
|
/**
|
|
41
56
|
* Helper to create property handlers for nested properties (eg: w:tcBorders => borders)
|
|
42
57
|
* @param {string} xmlName The XML element name (with namespace).
|
|
@@ -46,8 +61,19 @@ export function decodeProperties(translatorsBySdName?: object, properties?: obje
|
|
|
46
61
|
* @returns {import('@translator').NodeTranslatorConfig} The nested property handler config with xmlName, sdName, encode, and decode functions.
|
|
47
62
|
*/
|
|
48
63
|
export function createNestedPropertiesTranslator(xmlName: string, sdName: string, propertyTranslators: import("@translator").NodeTranslatorConfig[], defaultEncodedAttrs?: object): import("@translator").NodeTranslatorConfig;
|
|
64
|
+
/**
|
|
65
|
+
* Helper to create property handlers for nested array properties (eg: w:tabs => w:tab)
|
|
66
|
+
* @param {string} xmlName The XML element name (with namespace).
|
|
67
|
+
* @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
68
|
+
* @param {import('@translator').NodeTranslatorConfig[]} propertyTranslators An array of property translators to handle nested properties.
|
|
69
|
+
* @returns {import('@translator').NodeTranslatorConfig} The nested array property handler config with xmlName, sdName, encode, and decode functions.
|
|
70
|
+
*/
|
|
71
|
+
export function createNestedArrayPropertyHandler(xmlName: string, sdName: string | null, propertyTranslators: import("@translator").NodeTranslatorConfig[], extraParamsForDecode?: {}): import("@translator").NodeTranslatorConfig;
|
|
49
72
|
export function generateV2HandlerEntity(handlerName: string, translator: import("../node-translator/").NodeTranslator): import("../../v2/importer/docxImporter").NodeHandlerEntry;
|
|
73
|
+
export function createSingleIntegerPropertyHandler(xmlName: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
50
74
|
export function createAttributeHandler(xmlName?: string, sdName?: string | null, transformEncode?: any, transformDecode?: any): import("@translator").AttrConfig;
|
|
75
|
+
export function createIntegerAttributeHandler(xmlName: string, sdName?: string | null): import("@translator").AttrConfig;
|
|
76
|
+
export function createBooleanAttributeHandler(xmlName: string, sdName?: string | null): import("@translator").AttrConfig;
|
|
51
77
|
export function parseBoolean(value: string): boolean | undefined;
|
|
52
78
|
export function booleanToString(value: boolean): string | undefined;
|
|
53
79
|
export function parseInteger(value: any): number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/utils.js"],"names":[],"mappings":"AAwBA;;;;;;;;GAQG;AACH,yDAPW,MAAM,WACN,MAAM,GAAC,IAAI,aACX,MAAM,2DAGJ,OAAO,aAAa,EAAE,oBAAoB,CAuBtD;AAED;;;;;GAKG;AACH,0DAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAmBtD;AAED;;;;;GAKG;AACH,sDAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAoDtD;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v3/handlers/utils.js"],"names":[],"mappings":"AAwBA;;;;;;;;GAQG;AACH,yDAPW,MAAM,WACN,MAAM,GAAC,IAAI,aACX,MAAM,2DAGJ,OAAO,aAAa,EAAE,oBAAoB,CAuBtD;AAED;;;;;GAKG;AACH,4DAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAatD;AAWD;;;;;;GAMG;AACH,2DALW,MAAM,WACN,MAAM,GAAC,IAAI,uBAET,OAAO,aAAa,EAAE,oBAAoB,CAqBtD;AAED;;;;;GAKG;AACH,0DAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAmBtD;AAED;;;;;GAKG;AACH,sDAJW,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAoDtD;AAsCD;;;;;;GAMG;AACH,yCALW,OAAO,aAAa,EAAE,eAAe,yBACrC,MAAM,YACN,OAAO,GACL,MAAM,QAAM,CA8BxB;AAED;;;;;GAKG;AACH,yCALW,OAAO,aAAa,EAAE,eAAe,wBACrC,MAAM,eACN,MAAM,SAmBhB;AAED;;;;;;;GAOG;AACH,0DANW,MAAM,UACN,MAAM,uBACN,OAAO,aAAa,EAAE,oBAAoB,EAAE,wBAC5C,MAAM,GACJ,OAAO,aAAa,EAAE,oBAAoB,CA+CtD;AAED;;;;;;GAMG;AACH,0DALW,MAAM,UACN,MAAM,GAAC,IAAI,uBACX,OAAO,aAAa,EAAE,oBAAoB,EAAE,8BAC1C,OAAO,aAAa,EAAE,oBAAoB,CA6DtD;AArZM,qDAJI,MAAM,cACN,OAAO,qBAAqB,EAAE,cAAc,GACzC,OAAO,gCAAgC,EAAE,gBAAgB,CAgBrE;AA2DK,4DAJI,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,oBAAoB,CAGmC;AAuHnF,iDAJI,MAAM,WACN,MAAM,GAAC,IAAI,iDACT,OAAO,aAAa,EAAE,UAAU,CAY5C;AAQM,uDAJI,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,UAAU,CAG2B;AAQjE,uDAJI,MAAM,WACN,MAAM,GAAC,IAAI,GACT,OAAO,aAAa,EAAE,UAAU,CAG2B;AAgMjE,oCAHI,MAAM,GACJ,OAAO,GAAC,SAAS,CAEmF;AAQ1G,uCAHI,OAAO,GACL,MAAM,GAAC,SAAS,CAE8D;AAQpF,oCAHI,GAAG,GACD,MAAM,GAAC,SAAS,CAM5B;AAQM,uCAHI,GAAG,GACD,MAAM,GAAC,SAAS,CAK5B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:adjustRightInd 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;
|
|
7
|
+
//# sourceMappingURL=adjustRightInd-translator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adjustRightInd-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/adjustRightInd/adjustRightInd-translator.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,yBAHU,OAAO,aAAa,EAAE,cAAc,CAGwD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/adjustRightInd/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:autoSpaceDE 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 195
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
7
|
+
//# sourceMappingURL=autoSpaceDE-translator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoSpaceDE-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDE/autoSpaceDE-translator.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,yBAHU,OAAO,aAAa,EAAE,cAAc,CAGqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDE/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:autoSpaceDN 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 196
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
7
|
+
//# sourceMappingURL=autoSpaceDN-translator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoSpaceDN-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDN/autoSpaceDN-translator.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,yBAHU,OAAO,aAAa,EAAE,cAAc,CAGqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/w/autoSpaceDN/index.js"],"names":[],"mappings":""}
|