@harbour-enterprises/superdoc 0.19.0 → 0.20.0-next.10
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-DJb0akn3.cjs → PdfViewer-DOggjrQG.cjs} +1 -1
- package/dist/chunks/{PdfViewer-D0lSSW0x.es.js → PdfViewer-Dqmc7nRW.es.js} +1 -1
- package/dist/chunks/{index-BZOsYVVo.es.js → index-BWLk-GjX.es.js} +4 -3
- package/dist/chunks/{index-CeLW_JxI.cjs → index-BbzkKu8K.cjs} +4 -3
- package/dist/chunks/{super-editor.es-FNewwzSy.cjs → super-editor.es--aCMUiMA.cjs} +16872 -15653
- package/dist/chunks/{super-editor.es-B1rC4GHL.es.js → super-editor.es-Czm6AhQx.es.js} +16872 -15653
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +44 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CFVPKGqT.js → converter-CJg7BSkp.js} +13681 -12973
- package/dist/super-editor/chunks/{docx-zipper-CGdYHGDa.js → docx-zipper-D56KgEUM.js} +2 -2
- package/dist/super-editor/chunks/{editor-DrhZRXX9.js → editor-CZE0QdnY.js} +1802 -1307
- package/dist/super-editor/chunks/{toolbar-CKQ-GucL.js → toolbar-YvqMpKof.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/core/Editor.d.ts +2 -0
- 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/inputRules/html/transform-copied-lists.d.ts +3 -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 +25 -1
- package/dist/super-editor/src/core/super-converter/helpers/mediaHelpers.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/helpers.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/index.d.ts +0 -1
- 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/sdtNodeImporter.d.ts +8 -0
- 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/index.d.ts +4 -0
- 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/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/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/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/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/sdt/helpers/handle-annotation-node.d.ts +22 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +9 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +80 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +6 -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/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/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 +19 -9
- 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 +2 -1
- 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/linked-styles.d.ts +9 -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-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/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/tab.d.ts +25 -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/style.css +44 -6
- package/dist/super-editor/super-editor.es.js +72 -57
- 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 +17566 -16346
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/core/super-converter/v2/exporter/documentSectionExporter.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v2/importer/annotationImporter.d.ts +0 -9
- package/dist/super-editor/src/core/super-converter/v2/importer/docPartGalleryImporter.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v2/importer/docPartObjImporter.d.ts +0 -4
- package/dist/super-editor/src/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +0 -8
- package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +0 -5
- /package/dist/super-editor/src/extensions/bookmarks/{bookmarks.d.ts → bookmark-start.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-CJg7BSkp.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CZE0QdnY.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-CZE0QdnY.js";
|
|
2
|
+
import "./chunks/converter-CJg7BSkp.js";
|
|
3
|
+
import "./chunks/docx-zipper-D56KgEUM.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -406,6 +406,8 @@ export class Editor extends EventEmitter {
|
|
|
406
406
|
getJSON(): any;
|
|
407
407
|
/**
|
|
408
408
|
* Get the editor content as HTML
|
|
409
|
+
* @param {Object} options - Options for the HTML serializer
|
|
410
|
+
* @param {boolean} [options.unflattenLists] - Whether to unflatten lists in the HTML
|
|
409
411
|
* @returns {string} Editor content as HTML
|
|
410
412
|
*/
|
|
411
413
|
getHTML({ unflattenLists }?: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function updateDOMAttributes(dom: any, attrs?: {}, options?: {}): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prepare table rows for vertical merge export by inserting merge placeholders.
|
|
3
|
+
* @param {import('prosemirror-model').Node} table
|
|
4
|
+
* @param {object} options
|
|
5
|
+
*/
|
|
6
|
+
export function preProcessVerticalMergeCells(table: import("prosemirror-model").Node, { editorSchema }: object): import("prosemirror-model").Node;
|
|
@@ -44,6 +44,22 @@ export function exportSchemaToJson(params: ExportParams): XmlReadyNode;
|
|
|
44
44
|
* @returns {XmlReadyNode} JSON of the XML-ready paragraph node
|
|
45
45
|
*/
|
|
46
46
|
export function translateParagraphNode(params: any): XmlReadyNode;
|
|
47
|
+
/**
|
|
48
|
+
* Helper function to be used for text node translation
|
|
49
|
+
* Also used for transforming text annotations for the final submit
|
|
50
|
+
*
|
|
51
|
+
* @param {String} text Text node's content
|
|
52
|
+
* @param {Object[]} marks The marks to add to the run properties
|
|
53
|
+
* @returns {XmlReadyNode} The translated text node
|
|
54
|
+
*/
|
|
55
|
+
export function getTextNodeForExport(text: string, marks: any[], params: any): XmlReadyNode;
|
|
56
|
+
/**
|
|
57
|
+
* Wrap a text node in a run
|
|
58
|
+
*
|
|
59
|
+
* @param {XmlReadyNode} node
|
|
60
|
+
* @returns {XmlReadyNode} The wrapped run node
|
|
61
|
+
*/
|
|
62
|
+
export function wrapTextInRun(nodeOrNodes: any, marks: any): XmlReadyNode;
|
|
47
63
|
/**
|
|
48
64
|
* Generate a w:rPr node (run properties) from marks
|
|
49
65
|
*
|
|
@@ -61,6 +77,15 @@ export function generateRunProps(marks?: any[]): {
|
|
|
61
77
|
* @returns
|
|
62
78
|
*/
|
|
63
79
|
export function processOutputMarks(marks?: MarkType[]): any[];
|
|
80
|
+
export function processLinkContentNode(node: any): any;
|
|
81
|
+
/**
|
|
82
|
+
* Create a new link relationship and add it to the relationships array
|
|
83
|
+
*
|
|
84
|
+
* @param {ExportParams} params
|
|
85
|
+
* @param {string} link The URL of this link
|
|
86
|
+
* @returns {string} The new relationship ID
|
|
87
|
+
*/
|
|
88
|
+
export function addNewLinkRelationship(params: ExportParams, link: string): string;
|
|
64
89
|
export function translateHardBreak(params: any): {
|
|
65
90
|
name: string;
|
|
66
91
|
elements: {
|
|
@@ -77,7 +102,6 @@ export class DocxExporter {
|
|
|
77
102
|
schemaToXml(data: any, debug?: boolean): string;
|
|
78
103
|
#private;
|
|
79
104
|
}
|
|
80
|
-
export function getFieldHighlightJson(fieldsHighlightColor: string): any;
|
|
81
105
|
export type ExportParams = {
|
|
82
106
|
/**
|
|
83
107
|
* JSON node to translate (from PM schema)
|
|
@@ -11,6 +11,8 @@ export function pixelsToHalfPoints(pixels: any): number;
|
|
|
11
11
|
export function halfPointToPoints(halfPoints: any): number;
|
|
12
12
|
export function eigthPointsToPixels(eigthPoints: any): number;
|
|
13
13
|
export function pixelsToEightPoints(pixels: any): number;
|
|
14
|
+
export function rotToDegrees(rot: any): number;
|
|
15
|
+
export function degreesToRot(degrees: any): number;
|
|
14
16
|
export function getArrayBufferFromUrl(input: any, isHeadless: any): Promise<ArrayBuffer>;
|
|
15
17
|
export function getContentTypesFromXml(contentTypesXml: any): string[];
|
|
16
18
|
export function getHexColorFromDocxSystem(docxColor: any): string;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated This handler is deprecated in favor of v3 bookmark translators.
|
|
3
|
+
* Kept for reference for custom mark logic that needs migration.
|
|
4
|
+
* TODO: Migrate custom mark logic to a proper system
|
|
5
|
+
*/
|
|
1
6
|
/**
|
|
2
7
|
* @type {import("docxImporter").NodeHandler}
|
|
3
8
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function handleImageImport(node: any, currentFileName: any, params: any): any;
|
|
2
1
|
/**
|
|
3
2
|
* @type {import("docxImporter").NodeHandler}
|
|
4
3
|
*/
|
|
5
4
|
export const handleDrawingNode: any;
|
|
5
|
+
export function handleImageImport(node: any, filename: string | null, params?: any): any | null;
|
|
6
6
|
/**
|
|
7
7
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
8
8
|
*/
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {XmlNode} node
|
|
4
|
-
* @param {ParsedDocx} docx
|
|
5
|
-
* @param {NodeListHandler} nodeListHandler
|
|
6
|
-
* @param {boolean} insideTrackChange
|
|
7
|
-
* @returns {{type: string, content: *, attrs: {borders: *, tableWidth: *, tableWidthType: *}}}
|
|
8
|
-
*/
|
|
9
|
-
export function handleTableNode(node: XmlNode, params: any): {
|
|
10
|
-
type: string;
|
|
11
|
-
content: any;
|
|
12
|
-
attrs: {
|
|
13
|
-
borders: any;
|
|
14
|
-
tableWidth: any;
|
|
15
|
-
tableWidthType: any;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
1
|
/**
|
|
19
2
|
*
|
|
20
3
|
* @param tblStyleTag
|
|
@@ -29,12 +12,7 @@ export function getReferencedTableStyles(tblStyleTag: any, docx: ParsedDocx): {
|
|
|
29
12
|
rowBorders: {};
|
|
30
13
|
basedOn: any;
|
|
31
14
|
} | null;
|
|
32
|
-
/**
|
|
33
|
-
* @type {import("docxImporter").NodeHandler}
|
|
34
|
-
*/
|
|
35
|
-
export const handleAllTableNodes: any;
|
|
36
15
|
/**
|
|
37
16
|
* @type {import("docxImporter").NodeHandlerEntry}
|
|
38
17
|
*/
|
|
39
18
|
export const tableNodeHandlerEntity: any;
|
|
40
|
-
export function getGridColumnWidths(tableNode: any): any;
|
|
@@ -5,5 +5,9 @@ export const registeredHandlers: Readonly<{
|
|
|
5
5
|
'w:br': import("../node-translator/node-translator.js").NodeTranslator;
|
|
6
6
|
'w:tab': import("../node-translator/node-translator.js").NodeTranslator;
|
|
7
7
|
'w:p': import("../node-translator/node-translator.js").NodeTranslator;
|
|
8
|
+
'wp:anchor': import("../node-translator/node-translator.js").NodeTranslator;
|
|
9
|
+
'wp:inline': import("../node-translator/node-translator.js").NodeTranslator;
|
|
10
|
+
'w:bookmarkStart': import("../node-translator/node-translator.js").NodeTranslator;
|
|
11
|
+
'w:bookmarkEnd': import("../node-translator/node-translator.js").NodeTranslator;
|
|
8
12
|
}>;
|
|
9
13
|
export type RegisteredHandlers = any;
|
|
@@ -9,12 +9,19 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export function createSingleAttrPropertyHandler(xmlName: string, sdName?: string | null, attrName?: string, transformEncode?: Function, transformDecode?: Function): import("@translator").NodeTranslatorConfig;
|
|
11
11
|
/**
|
|
12
|
-
* Helper to create property handlers for measurement attributes (w:w and w:type)
|
|
12
|
+
* Helper to create property handlers for measurement attributes (CT_TblWidth => w:w and w:type)
|
|
13
13
|
* @param {string} xmlName The XML attribute name (with namespace).
|
|
14
14
|
* @param {string|null} sdName The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
15
15
|
* @returns {import('@translator').NodeTranslatorConfig} The attribute handler config with xmlName, sdName, encode, and decode functions.
|
|
16
16
|
*/
|
|
17
17
|
export function createMeasurementPropertyHandler(xmlName: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Helper to create property handlers for border attributes (CT_Border xml type)
|
|
20
|
+
* @param {string} [xmlName] The XML element name (with namespace).
|
|
21
|
+
* @param {string|null} [sdName] The SuperDoc attribute name (without namespace). If null, it will be derived from xmlName.
|
|
22
|
+
* @returns {import('@translator').NodeTranslatorConfig} The border property handler config with xmlName, sdName, encode, and decode functions.
|
|
23
|
+
*/
|
|
24
|
+
export function createBorderPropertyHandler(xmlName?: string, sdName?: string | null): import("@translator").NodeTranslatorConfig;
|
|
18
25
|
/**
|
|
19
26
|
* Encodes properties of a node using provided translators and adds them to the attributes object.
|
|
20
27
|
* @param {object} [node] The node containing elements to be encoded.
|
|
@@ -32,7 +39,7 @@ export function encodeProperties(node?: object, translatorsByXmlName?: object, a
|
|
|
32
39
|
export function decodeProperties(translatorsBySdName?: object, properties?: object): any[];
|
|
33
40
|
export function generateV2HandlerEntity(handlerName: string, translator: import("../node-translator/").NodeTranslator): import("../../v2/importer/docxImporter").NodeHandlerEntry;
|
|
34
41
|
export function createAttributeHandler(xmlName?: string, sdName?: string | null, transformEncode?: any, transformDecode?: any): import("@translator").AttrConfig;
|
|
35
|
-
export function parseBoolean(value: string): boolean;
|
|
36
|
-
export function booleanToString(value: boolean): string;
|
|
42
|
+
export function parseBoolean(value: string): boolean | undefined;
|
|
43
|
+
export function booleanToString(value: boolean): string | undefined;
|
|
37
44
|
export function parseInteger(value: any): number | undefined;
|
|
38
45
|
export function integerToString(value: any): string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the bidiVisual element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 373
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./bidiVisual-translator.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance for the <w:bookmarkEnd> element.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./bookmark-end-translator.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance for the <w:bookmarkStart> element.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./bookmark-start-translator.js";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the bottom element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 375
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the bottom element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 374
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./drawing-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the end 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 394
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the end 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 393
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the gridCol 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 398
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./gridCol-translator.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./insideH-translator.js";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the insideH 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 407
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./insideV-translator.js";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the insideV 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 409
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the left 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 423
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the left 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 426
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function parseParagraphBorders(pBdr: any): {};
|
|
2
2
|
export function getParagraphIndent(node: any, docx: any, styleId?: string): any;
|
|
3
|
-
export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[]): any;
|
|
3
|
+
export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[], options?: {}): any;
|
|
4
4
|
export function getDefaultParagraphStyle(docx: any, styleId?: string): any;
|
|
5
5
|
export function preProcessNodesForFldChar(nodes?: any[]): any[];
|
|
6
6
|
export function processCombinedNodesForFldChar(nodesToCombine?: any[]): any[];
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the right 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 426
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the right 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 423
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {Object} params
|
|
3
|
+
* @returns {Object|null}
|
|
4
|
+
*/
|
|
5
|
+
export function handleAnnotationNode(params: any): any | null;
|
|
6
|
+
export function getAttrsFromElements({ sdtPr, tag, alias }: {
|
|
7
|
+
sdtPr: any;
|
|
8
|
+
tag: any;
|
|
9
|
+
alias: any;
|
|
10
|
+
}): {
|
|
11
|
+
type: any;
|
|
12
|
+
fieldId: any;
|
|
13
|
+
displayLabel: any;
|
|
14
|
+
fieldType: any;
|
|
15
|
+
fieldColor: any;
|
|
16
|
+
multipleImage: boolean;
|
|
17
|
+
fontFamily: any;
|
|
18
|
+
fontSize: any;
|
|
19
|
+
textColor: any;
|
|
20
|
+
textHighlight: any;
|
|
21
|
+
};
|
|
22
|
+
export function parseAnnotationMarks(content?: any): any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle document section node. Special case of w:sdt nodes
|
|
3
|
+
* @param {Object} params - The parameters containing nodes and nodeListHandler
|
|
4
|
+
* @returns {Object|null} An object containing the processed node and consumed count
|
|
5
|
+
*/
|
|
6
|
+
export function handleDocumentSectionNode(params: any): any | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* There are multiple types of w:sdt nodes.
|
|
3
|
+
* We need to route to the correct handler depending on certain properties.
|
|
4
|
+
* Example: If tag has documentSection type, we handle it as a document section node.
|
|
5
|
+
* If it has structuredContent type, we handle it as a structured content node.
|
|
6
|
+
* @param {Object} node
|
|
7
|
+
* @returns {Object}
|
|
8
|
+
*/
|
|
9
|
+
export function sdtNodeTypeStrategy(node: any): any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translate a structured content block node to its XML representation.
|
|
3
|
+
* @param {Object} params - The parameters for translation.
|
|
4
|
+
* @returns {Object} The XML representation of the structured content block.
|
|
5
|
+
*/
|
|
6
|
+
export function translateDocumentSection(params: any): any;
|
|
7
|
+
export function generateSdtPrTagForDocumentSection(id: string, title: string, tag: string): any;
|