superdoc 0.20.0-next.13
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/README.md +113 -0
- package/dist/chunks/PdfViewer-Cdw_Rxtl.cjs +507 -0
- package/dist/chunks/PdfViewer-UKMeGyCc.es.js +507 -0
- package/dist/chunks/blank-docx-CPqX9RF5.cjs +3 -0
- package/dist/chunks/blank-docx-iwdyG9RH.es.js +4 -0
- package/dist/chunks/eventemitter3-B_kO1Pxm.cjs +168 -0
- package/dist/chunks/eventemitter3-CZv6vEhA.es.js +169 -0
- package/dist/chunks/index-ByynlgNA.es.js +18649 -0
- package/dist/chunks/index-QAHP9Hp3.cjs +18664 -0
- package/dist/chunks/jszip-B8KIZSNe.es.js +1774 -0
- package/dist/chunks/jszip-b7l8QkfH.cjs +1773 -0
- package/dist/chunks/super-editor.es-BFcP4oFS.cjs +83013 -0
- package/dist/chunks/super-editor.es-D9-ZMXnA.es.js +82998 -0
- package/dist/chunks/uuid-CQzaMNgL.cjs +36 -0
- package/dist/chunks/uuid-DIIKH5Zc.es.js +37 -0
- package/dist/chunks/vue-CXxsqYcP.es.js +9743 -0
- package/dist/chunks/vue-DWle4Cai.cjs +9742 -0
- package/dist/chunks/xml-js-CX8FH0He.cjs +3 -0
- package/dist/chunks/xml-js-D0tLGmKu.es.js +2 -0
- package/dist/components/CommentsLayer/comment-schemas.d.ts +17 -0
- package/dist/components/CommentsLayer/comment-schemas.d.ts.map +1 -0
- package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +21 -0
- package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +1 -0
- package/dist/components/CommentsLayer/helpers.d.ts +8 -0
- package/dist/components/CommentsLayer/helpers.d.ts.map +1 -0
- package/dist/components/CommentsLayer/use-comment.d.ts +8 -0
- package/dist/components/CommentsLayer/use-comment.d.ts.map +1 -0
- package/dist/components/CommentsLayer/use-conversation.d.ts +23 -0
- package/dist/components/CommentsLayer/use-conversation.d.ts.map +1 -0
- package/dist/components/CommentsLayer/use-floating-comment.d.ts +12 -0
- package/dist/components/CommentsLayer/use-floating-comment.d.ts.map +1 -0
- package/dist/components/PdfViewer/helpers/range.d.ts +2 -0
- package/dist/components/PdfViewer/helpers/range.d.ts.map +1 -0
- package/dist/components/PdfViewer/helpers/read-file.d.ts +2 -0
- package/dist/components/PdfViewer/helpers/read-file.d.ts.map +1 -0
- package/dist/components/PdfViewer/pdf/pdf-adapter.d.ts +115 -0
- package/dist/components/PdfViewer/pdf/pdf-adapter.d.ts.map +1 -0
- package/dist/composables/use-ai.d.ts +11 -0
- package/dist/composables/use-ai.d.ts.map +1 -0
- package/dist/composables/use-document.d.ts +29 -0
- package/dist/composables/use-document.d.ts.map +1 -0
- package/dist/composables/use-field.d.ts +34 -0
- package/dist/composables/use-field.d.ts.map +1 -0
- package/dist/composables/use-high-contrast-mode.d.ts +5 -0
- package/dist/composables/use-high-contrast-mode.d.ts.map +1 -0
- package/dist/composables/use-selected-text.d.ts +8 -0
- package/dist/composables/use-selected-text.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +803 -0
- package/dist/core/SuperDoc.d.ts.map +1 -0
- package/dist/core/collaboration/collaboration-comments.d.ts +5 -0
- package/dist/core/collaboration/collaboration-comments.d.ts.map +1 -0
- package/dist/core/collaboration/collaboration.d.ts +18 -0
- package/dist/core/collaboration/collaboration.d.ts.map +1 -0
- package/dist/core/collaboration/helpers.d.ts +5 -0
- package/dist/core/collaboration/helpers.d.ts.map +1 -0
- package/dist/core/collaboration/permissions.d.ts +14 -0
- package/dist/core/collaboration/permissions.d.ts.map +1 -0
- package/dist/core/create-app.d.ts +2 -0
- package/dist/core/create-app.d.ts.map +1 -0
- package/dist/core/helpers/export.d.ts +3 -0
- package/dist/core/helpers/export.d.ts.map +1 -0
- package/dist/core/helpers/file.d.ts +44 -0
- package/dist/core/helpers/file.d.ts.map +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/helpers/floor.d.ts +2 -0
- package/dist/helpers/floor.d.ts.map +1 -0
- package/dist/helpers/group-changes.d.ts +2 -0
- package/dist/helpers/group-changes.d.ts.map +1 -0
- package/dist/helpers/use-selection.d.ts +18 -0
- package/dist/helpers/use-selection.d.ts.map +1 -0
- package/dist/icons.d.ts +11 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/stores/comments-store.d.ts +245 -0
- package/dist/stores/comments-store.d.ts.map +1 -0
- package/dist/stores/hrbr-fields-store.d.ts +44 -0
- package/dist/stores/hrbr-fields-store.d.ts.map +1 -0
- package/dist/stores/superdoc-store.d.ts +146 -0
- package/dist/stores/superdoc-store.d.ts.map +1 -0
- package/dist/style.css +5290 -0
- package/dist/super-editor/ai-writer.es.js +523 -0
- package/dist/super-editor/chunks/converter-Brf9NxwA.js +32437 -0
- package/dist/super-editor/chunks/docx-zipper-Dld3TtPb.js +2552 -0
- package/dist/super-editor/chunks/editor-27QWXfk-.js +33078 -0
- package/dist/super-editor/chunks/toolbar-BPRbNqgL.js +10168 -0
- package/dist/super-editor/converter.es.js +5 -0
- package/dist/super-editor/docx-zipper.es.js +5 -0
- package/dist/super-editor/editor.es.js +6 -0
- package/dist/super-editor/file-zipper.es.js +12 -0
- package/dist/super-editor/postcss.config.d.cts +1 -0
- package/dist/super-editor/src/components/cursor-helpers.d.ts +24 -0
- package/dist/super-editor/src/components/pagination-helpers.d.ts +8 -0
- package/dist/super-editor/src/components/slash-menu/constants.d.ts +67 -0
- package/dist/super-editor/src/components/slash-menu/menuItems.d.ts +36 -0
- package/dist/super-editor/src/components/slash-menu/utils.d.ts +9 -0
- package/dist/super-editor/src/components/toolbar/ai-helpers.d.ts +76 -0
- package/dist/super-editor/src/components/toolbar/color-dropdown-helpers.d.ts +14 -0
- package/dist/super-editor/src/components/toolbar/constants.d.ts +18 -0
- package/dist/super-editor/src/components/toolbar/defaultItems.d.ts +6 -0
- package/dist/super-editor/src/components/toolbar/helpers.d.ts +5 -0
- package/dist/super-editor/src/components/toolbar/scroll-helpers.d.ts +4 -0
- package/dist/super-editor/src/components/toolbar/super-toolbar.d.ts +506 -0
- package/dist/super-editor/src/components/toolbar/toolbarIcons.d.ts +61 -0
- package/dist/super-editor/src/components/toolbar/toolbarTexts.d.ts +52 -0
- package/dist/super-editor/src/components/toolbar/use-toolbar-item.d.ts +45 -0
- package/dist/super-editor/src/composables/use-high-contrast-mode.d.ts +4 -0
- package/dist/super-editor/src/core/Attribute.d.ts +79 -0
- package/dist/super-editor/src/core/CommandService.d.ts +63 -0
- package/dist/super-editor/src/core/DocxZipper.d.ts +61 -0
- package/dist/super-editor/src/core/Editor.d.ts +828 -0
- package/dist/super-editor/src/core/EventEmitter.d.ts +39 -0
- package/dist/super-editor/src/core/Extension.d.ts +18 -0
- package/dist/super-editor/src/core/ExtensionService.d.ts +59 -0
- package/dist/super-editor/src/core/InputRule.d.ts +60 -0
- package/dist/super-editor/src/core/Mark.d.ts +19 -0
- package/dist/super-editor/src/core/Node.d.ts +29 -0
- package/dist/super-editor/src/core/OxmlNode.d.ts +19 -0
- package/dist/super-editor/src/core/Schema.d.ts +33 -0
- package/dist/super-editor/src/core/child-editor/child-editor.d.ts +2 -0
- package/dist/super-editor/src/core/child-editor/index.d.ts +1 -0
- package/dist/super-editor/src/core/commands/backspaceNextToList.d.ts +5 -0
- package/dist/super-editor/src/core/commands/clearNodes.d.ts +5 -0
- package/dist/super-editor/src/core/commands/command.d.ts +1 -0
- package/dist/super-editor/src/core/commands/createParagraphNear.d.ts +4 -0
- package/dist/super-editor/src/core/commands/decreaseListIndent.d.ts +1 -0
- package/dist/super-editor/src/core/commands/deleteListItem.d.ts +1 -0
- package/dist/super-editor/src/core/commands/deleteNextToList.d.ts +14 -0
- package/dist/super-editor/src/core/commands/deleteSelection.d.ts +5 -0
- package/dist/super-editor/src/core/commands/exitCode.d.ts +4 -0
- package/dist/super-editor/src/core/commands/first.d.ts +1 -0
- package/dist/super-editor/src/core/commands/increaseListIndent.d.ts +4 -0
- package/dist/super-editor/src/core/commands/index.d.ts +43 -0
- package/dist/super-editor/src/core/commands/insertContent.d.ts +4 -0
- package/dist/super-editor/src/core/commands/insertContentAt.d.ts +8 -0
- package/dist/super-editor/src/core/commands/insertTabChar.d.ts +3 -0
- package/dist/super-editor/src/core/commands/insertTabNode.d.ts +10 -0
- package/dist/super-editor/src/core/commands/joinBackward.d.ts +4 -0
- package/dist/super-editor/src/core/commands/joinDown.d.ts +4 -0
- package/dist/super-editor/src/core/commands/joinForward.d.ts +4 -0
- package/dist/super-editor/src/core/commands/joinUp.d.ts +4 -0
- package/dist/super-editor/src/core/commands/liftEmptyBlock.d.ts +4 -0
- package/dist/super-editor/src/core/commands/liftListItem.d.ts +4 -0
- package/dist/super-editor/src/core/commands/list-helpers/find-node-position.d.ts +1 -0
- package/dist/super-editor/src/core/commands/list-helpers/index.d.ts +2 -0
- package/dist/super-editor/src/core/commands/list-helpers/is-list.d.ts +1 -0
- package/dist/super-editor/src/core/commands/list-helpers/test-helpers.d.ts +126 -0
- package/dist/super-editor/src/core/commands/newlineInCode.d.ts +4 -0
- package/dist/super-editor/src/core/commands/resetAttributes.d.ts +5 -0
- package/dist/super-editor/src/core/commands/restoreSelection.d.ts +5 -0
- package/dist/super-editor/src/core/commands/selectAll.d.ts +4 -0
- package/dist/super-editor/src/core/commands/selectNodeBackward.d.ts +4 -0
- package/dist/super-editor/src/core/commands/selectNodeForward.d.ts +4 -0
- package/dist/super-editor/src/core/commands/selectTextblockEnd.d.ts +4 -0
- package/dist/super-editor/src/core/commands/selectTextblockStart.d.ts +4 -0
- package/dist/super-editor/src/core/commands/setMark.d.ts +6 -0
- package/dist/super-editor/src/core/commands/setMeta.d.ts +3 -0
- package/dist/super-editor/src/core/commands/setNode.d.ts +5 -0
- package/dist/super-editor/src/core/commands/sinkListItem.d.ts +4 -0
- package/dist/super-editor/src/core/commands/splitBlock.d.ts +3 -0
- package/dist/super-editor/src/core/commands/splitListItem.d.ts +1 -0
- package/dist/super-editor/src/core/commands/toggleList.d.ts +56 -0
- package/dist/super-editor/src/core/commands/toggleMark.d.ts +4 -0
- package/dist/super-editor/src/core/commands/toggleNode.d.ts +4 -0
- package/dist/super-editor/src/core/commands/types/index.d.ts +61 -0
- package/dist/super-editor/src/core/commands/undoInputRule.d.ts +4 -0
- package/dist/super-editor/src/core/commands/unsetAllMarks.d.ts +5 -0
- package/dist/super-editor/src/core/commands/unsetMark.d.ts +6 -0
- package/dist/super-editor/src/core/commands/updateAttributes.d.ts +5 -0
- package/dist/super-editor/src/core/commands/wrapInList.d.ts +4 -0
- package/dist/super-editor/src/core/encoding-helpers.d.ts +27 -0
- package/dist/super-editor/src/core/extensions/commands.d.ts +2 -0
- package/dist/super-editor/src/core/extensions/editable.d.ts +2 -0
- package/dist/super-editor/src/core/extensions/editorFocus.d.ts +6 -0
- package/dist/super-editor/src/core/extensions/index.d.ts +4 -0
- package/dist/super-editor/src/core/extensions/keymap.d.ts +9 -0
- package/dist/super-editor/src/core/helpers/ErrorWithDetails.d.ts +20 -0
- package/dist/super-editor/src/core/helpers/annotator.d.ts +51 -0
- package/dist/super-editor/src/core/helpers/baseListDefinitions.d.ts +443 -0
- package/dist/super-editor/src/core/helpers/chainableEditorState.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/cleanSchemaItem.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/contentProcessor.d.ts +13 -0
- package/dist/super-editor/src/core/helpers/createDocument.d.ts +10 -0
- package/dist/super-editor/src/core/helpers/createNodeFromContent.d.ts +2 -0
- package/dist/super-editor/src/core/helpers/defaultBlockAt.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/findChildren.d.ts +7 -0
- package/dist/super-editor/src/core/helpers/findMark.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/findParentNode.d.ts +2 -0
- package/dist/super-editor/src/core/helpers/findParentNodeClosestToPos.d.ts +19 -0
- package/dist/super-editor/src/core/helpers/findWordBounds.d.ts +4 -0
- package/dist/super-editor/src/core/helpers/generateDocxListAttributes.d.ts +34 -0
- package/dist/super-editor/src/core/helpers/generateDocxRandomId.d.ts +6 -0
- package/dist/super-editor/src/core/helpers/getActiveFormatting.d.ts +4 -0
- package/dist/super-editor/src/core/helpers/getExtensionConfigField.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/getHTMLFromFragment.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/getMarkRange.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/getMarkType.d.ts +7 -0
- package/dist/super-editor/src/core/helpers/getMarksBetween.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/getMarksFromSelection.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/getNodeType.d.ts +7 -0
- package/dist/super-editor/src/core/helpers/getSchemaTypeByName.d.ts +7 -0
- package/dist/super-editor/src/core/helpers/getSchemaTypeNameByName.d.ts +7 -0
- package/dist/super-editor/src/core/helpers/getTextContentFromNodes.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/htmlSanitizer.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/importHtml.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/importMarkdown.d.ts +14 -0
- package/dist/super-editor/src/core/helpers/index.d.ts +30 -0
- package/dist/super-editor/src/core/helpers/isActive.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/isExtentionRulesEnabled.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/isInTable.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/isList.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/isMarkActive.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/isNodeActive.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/isTextSelection.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/list-numbering-helpers.d.ts +98 -0
- package/dist/super-editor/src/core/helpers/orderedListUtils.d.ts +7 -0
- package/dist/super-editor/src/core/helpers/pasteListHelpers.d.ts +8 -0
- package/dist/super-editor/src/core/helpers/posToDOMRect.d.ts +20 -0
- package/dist/super-editor/src/core/helpers/selectionToInsertionEnd.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/setImageNodeSelection.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/setWordSelection.d.ts +1 -0
- package/dist/super-editor/src/core/helpers/updateDOMAttributes.d.ts +1 -0
- package/dist/super-editor/src/core/index.d.ts +13 -0
- package/dist/super-editor/src/core/inputRules/docx-paste/docx-paste.d.ts +2 -0
- package/dist/super-editor/src/core/inputRules/google-docs-paste/google-docs-paste.d.ts +1 -0
- package/dist/super-editor/src/core/inputRules/html/html-helpers.d.ts +21 -0
- package/dist/super-editor/src/core/inputRules/html/transform-copied-lists.d.ts +3 -0
- package/dist/super-editor/src/core/inputRules/wrappingInputRule.d.ts +8 -0
- package/dist/super-editor/src/core/migrations/0.14-listsv2/listsv2migration.d.ts +2 -0
- package/dist/super-editor/src/core/migrations/index.d.ts +1 -0
- package/dist/super-editor/src/core/migrations/migration_after_0_4_14.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +143 -0
- package/dist/super-editor/src/core/super-converter/constants.d.ts +3 -0
- package/dist/super-editor/src/core/super-converter/docx-helpers/document-rels.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/docx-helpers/docx-constants.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/docx-helpers/docx-helpers.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/docx-helpers/get-default-style-definition.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/docx-helpers/index.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-docx-defs.d.ts +934 -0
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +171 -0
- 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 +35 -0
- package/dist/super-editor/src/core/super-converter/types.d.ts +3 -0
- package/dist/super-editor/src/core/super-converter/v2/docxHelper.d.ts +12 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/commentsExporter.d.ts +23 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts +443 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/alternateChoiceImporter.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/autoPageNumberImporter.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +13 -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/documentCommentsImporter.d.ts +17 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +67 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/hyperlinkImporter.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/ignoredNodes.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/imageImporter.d.ts +9 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/importerHelpers.d.ts +24 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/lineBreakImporter.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts +119 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +19 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/mergeTextNodes.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/pictNodeImporter.d.ts +116 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +8 -0
- 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/standardNodeImporter.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/tabImporter.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +18 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/textNodeImporter.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/trackChangesImporter.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +73 -0
- package/dist/super-editor/src/core/super-converter/v2/types/index.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +13 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/types/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +45 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/attributes/w-clear.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/attributes/w-line-break-type.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/br-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/br/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/cantSplit/cantSplit-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/cantSplit/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/cnfStyle/cnfStyle-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/cnfStyle/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/divId/divId-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/divId/index.d.ts +1 -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/gridAfter/gridAfter-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridAfter/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridBefore/gridBefore-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridBefore/index.d.ts +1 -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/hidden/hidden-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/hidden/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/hyperlink/hyperlink-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/hyperlink/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/jc/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/jc/jc-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/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-del.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-p.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-default.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-pr.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w14-para-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/attributes/w14-text-id.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/p-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/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/tab/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-leader.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts +7 -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/tblCellSpacing/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellSpacing/tblCellSpacing-translator.d.ts +6 -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/tblHeader/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblHeader/tblHeader-translator.d.ts +6 -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 +9 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +17 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/tc-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/trHeight/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/trHeight/trHeight-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/trPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/trPr/trPr-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/wAfter/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/wAfter/wAfter-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/wBefore/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/wBefore/wBefore-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/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +215 -0
- package/dist/super-editor/src/core/super-converter/zipper.d.ts +7 -0
- package/dist/super-editor/src/core/super-validator/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-validator/logger/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-validator/logger/logger.d.ts +7 -0
- package/dist/super-editor/src/core/super-validator/super-validator.d.ts +58 -0
- package/dist/super-editor/src/core/super-validator/types.d.ts +61 -0
- package/dist/super-editor/src/core/super-validator/validators/state/index.d.ts +16 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/image-validator.d.ts +26 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/rules/image-rid.d.ts +22 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/image/rules/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/link-validator.d.ts +24 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/rules/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-validator/validators/state/nodes/link/rules/link-rid.d.ts +24 -0
- package/dist/super-editor/src/core/super-validator/validators/xml/index.d.ts +12 -0
- package/dist/super-editor/src/core/super-validator/validators/xml/numbering/numbering-validator.d.ts +13 -0
- package/dist/super-editor/src/core/super-validator/validators/xml/relationships/relationships-validator.d.ts +31 -0
- package/dist/super-editor/src/core/types/index.d.ts +128 -0
- package/dist/super-editor/src/core/utilities/callOrGet.d.ts +8 -0
- package/dist/super-editor/src/core/utilities/carbonCopy.d.ts +1 -0
- package/dist/super-editor/src/core/utilities/clipboardUtils.d.ts +16 -0
- package/dist/super-editor/src/core/utilities/createStyleTag.d.ts +6 -0
- package/dist/super-editor/src/core/utilities/deleteProps.d.ts +6 -0
- package/dist/super-editor/src/core/utilities/imageBlobs.d.ts +1 -0
- package/dist/super-editor/src/core/utilities/index.d.ts +10 -0
- package/dist/super-editor/src/core/utilities/isEmptyObject.d.ts +5 -0
- package/dist/super-editor/src/core/utilities/isIOS.d.ts +1 -0
- package/dist/super-editor/src/core/utilities/isMacOS.d.ts +1 -0
- package/dist/super-editor/src/core/utilities/isRegExp.d.ts +1 -0
- package/dist/super-editor/src/core/utilities/minMax.d.ts +1 -0
- package/dist/super-editor/src/core/utilities/objectIncludes.d.ts +8 -0
- package/dist/super-editor/src/core/utilities/parseSizeUnit.d.ts +6 -0
- package/dist/super-editor/src/extensions/ai/ai-constants.d.ts +3 -0
- package/dist/super-editor/src/extensions/ai/ai-marks.d.ts +3 -0
- package/dist/super-editor/src/extensions/ai/ai-nodes.d.ts +2 -0
- package/dist/super-editor/src/extensions/ai/ai-plugin.d.ts +4 -0
- package/dist/super-editor/src/extensions/ai/index.d.ts +4 -0
- package/dist/super-editor/src/extensions/block-node/block-node.d.ts +56 -0
- package/dist/super-editor/src/extensions/block-node/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/bold/bold.d.ts +29 -0
- package/dist/super-editor/src/extensions/bold/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/bookmarks/bookmark-end.d.ts +6 -0
- package/dist/super-editor/src/extensions/bookmarks/bookmark-start.d.ts +26 -0
- package/dist/super-editor/src/extensions/bookmarks/index.d.ts +2 -0
- package/dist/super-editor/src/extensions/bullet-list/bullet-list.d.ts +14 -0
- package/dist/super-editor/src/extensions/bullet-list/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts +1 -0
- package/dist/super-editor/src/extensions/collaboration/collaboration.d.ts +7 -0
- package/dist/super-editor/src/extensions/collaboration/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/collaboration-cursor/collaboration-cursor.d.ts +2 -0
- package/dist/super-editor/src/extensions/collaboration-cursor/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/color/color.d.ts +42 -0
- package/dist/super-editor/src/extensions/color/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/comment/comment.d.ts +4 -0
- package/dist/super-editor/src/extensions/comment/comments-constants.d.ts +1 -0
- package/dist/super-editor/src/extensions/comment/comments-helpers.d.ts +14 -0
- package/dist/super-editor/src/extensions/comment/comments-marks.d.ts +2 -0
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +4 -0
- package/dist/super-editor/src/extensions/comment/index.d.ts +3 -0
- package/dist/super-editor/src/extensions/content-block/content-block.d.ts +90 -0
- package/dist/super-editor/src/extensions/content-block/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/custom-selection/custom-selection.d.ts +53 -0
- package/dist/super-editor/src/extensions/custom-selection/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/document/document.d.ts +33 -0
- package/dist/super-editor/src/extensions/document/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/dropcursor/dropcursor.d.ts +33 -0
- package/dist/super-editor/src/extensions/dropcursor/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/field-annotation/FieldAnnotationPlugin.d.ts +2 -0
- package/dist/super-editor/src/extensions/field-annotation/FieldAnnotationView.d.ts +32 -0
- package/dist/super-editor/src/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts +1 -0
- package/dist/super-editor/src/extensions/field-annotation/cleanup-commands/cleanUpParagraphWithAnnotations.d.ts +1 -0
- package/dist/super-editor/src/extensions/field-annotation/cleanup-commands/index.d.ts +6 -0
- package/dist/super-editor/src/extensions/field-annotation/field-annotation.d.ts +5 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotations.d.ts +1 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsBetween.d.ts +8 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsByFieldId.d.ts +7 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findFirstFieldAnnotationByFieldId.d.ts +7 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findHeaderFooterAnnotationsByFieldId.d.ts +7 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/findRemovedFieldAnnotations.d.ts +1 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotations.d.ts +6 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotationsWithRect.d.ts +30 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +1 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +10 -0
- package/dist/super-editor/src/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts +1 -0
- package/dist/super-editor/src/extensions/field-annotation/index.d.ts +2 -0
- package/dist/super-editor/src/extensions/font-family/font-family.d.ts +45 -0
- package/dist/super-editor/src/extensions/font-family/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/font-size/font-size.d.ts +73 -0
- package/dist/super-editor/src/extensions/font-size/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/format-commands/format-commands.d.ts +36 -0
- package/dist/super-editor/src/extensions/format-commands/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/gapcursor/gapcursor.d.ts +16 -0
- package/dist/super-editor/src/extensions/gapcursor/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/heading/heading.d.ts +33 -0
- package/dist/super-editor/src/extensions/heading/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/highlight/highlight.d.ts +28 -0
- package/dist/super-editor/src/extensions/highlight/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/history/history.d.ts +21 -0
- package/dist/super-editor/src/extensions/history/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/image/image.d.ts +85 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/fileNameUtils.d.ts +3 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/getFileOpener.d.ts +1 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +1 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleImageUpload.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/imagePositionPlugin.d.ts +4 -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 +8 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/rotation.d.ts +4 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +22 -0
- package/dist/super-editor/src/extensions/image/index.d.ts +2 -0
- package/dist/super-editor/src/extensions/index.d.ts +66 -0
- package/dist/super-editor/src/extensions/italic/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/italic/italic.d.ts +19 -0
- package/dist/super-editor/src/extensions/line-break/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/line-break/line-break.d.ts +56 -0
- package/dist/super-editor/src/extensions/line-height/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/line-height/line-height.d.ts +38 -0
- package/dist/super-editor/src/extensions/link/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/link/link.d.ts +69 -0
- package/dist/super-editor/src/extensions/linked-styles/helpers.d.ts +7 -0
- package/dist/super-editor/src/extensions/linked-styles/index.d.ts +3 -0
- package/dist/super-editor/src/extensions/linked-styles/linked-styles.d.ts +40 -0
- package/dist/super-editor/src/extensions/linked-styles/plugin.d.ts +6 -0
- package/dist/super-editor/src/extensions/list-item/ListItemNodeView.d.ts +36 -0
- package/dist/super-editor/src/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +3 -0
- package/dist/super-editor/src/extensions/list-item/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/list-item/list-item.d.ts +50 -0
- package/dist/super-editor/src/extensions/mention/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/mention/mention.d.ts +28 -0
- package/dist/super-editor/src/extensions/noderesizer/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/noderesizer/noderesizer.d.ts +18 -0
- package/dist/super-editor/src/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +2 -0
- package/dist/super-editor/src/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +5 -0
- package/dist/super-editor/src/extensions/ordered-list/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/ordered-list/ordered-list.d.ts +37 -0
- package/dist/super-editor/src/extensions/page-number/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/page-number/page-number.d.ts +65 -0
- package/dist/super-editor/src/extensions/pagination/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/pagination/pagination-helpers.d.ts +25 -0
- package/dist/super-editor/src/extensions/pagination/pagination.d.ts +2 -0
- package/dist/super-editor/src/extensions/paragraph/helpers/getDefaultSpacing.d.ts +6 -0
- package/dist/super-editor/src/extensions/paragraph/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/paragraph/paragraph.d.ts +51 -0
- package/dist/super-editor/src/extensions/placeholder/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/placeholder/placeholder.d.ts +17 -0
- package/dist/super-editor/src/extensions/popover-plugin/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/popover-plugin/popover-plugin.d.ts +11 -0
- package/dist/super-editor/src/extensions/run-item/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/run-item/run-item.d.ts +26 -0
- package/dist/super-editor/src/extensions/search/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/search/search.d.ts +45 -0
- package/dist/super-editor/src/extensions/shape-container/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/shape-container/shape-container.d.ts +31 -0
- package/dist/super-editor/src/extensions/shape-textbox/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/shape-textbox/shape-textbox.d.ts +28 -0
- package/dist/super-editor/src/extensions/slash-menu/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/slash-menu/slash-menu.d.ts +13 -0
- package/dist/super-editor/src/extensions/strike/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/strike/strike.d.ts +18 -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/DocumentSectionView.d.ts +15 -0
- package/dist/super-editor/src/extensions/structured-content/document-section/helpers.d.ts +11 -0
- package/dist/super-editor/src/extensions/structured-content/document-section/index.d.ts +2 -0
- package/dist/super-editor/src/extensions/structured-content/document-section.d.ts +105 -0
- package/dist/super-editor/src/extensions/structured-content/index.d.ts +3 -0
- package/dist/super-editor/src/extensions/structured-content/structured-content-block.d.ts +30 -0
- package/dist/super-editor/src/extensions/structured-content/structured-content.d.ts +30 -0
- package/dist/super-editor/src/extensions/tab/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/tab/tab.d.ts +27 -0
- package/dist/super-editor/src/extensions/table/TableView.d.ts +16 -0
- package/dist/super-editor/src/extensions/table/index.d.ts +2 -0
- package/dist/super-editor/src/extensions/table/table.d.ts +459 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/cellAround.d.ts +1 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/cellWrapping.d.ts +1 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/createCell.d.ts +1 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/createColGroup.d.ts +11 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/createTable.d.ts +1 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/createTableBorders.d.ts +60 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +3 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +1 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/index.d.ts +6 -0
- package/dist/super-editor/src/extensions/table/tableHelpers/isCellSelection.d.ts +1 -0
- package/dist/super-editor/src/extensions/table-cell/helpers/createCellBorders.d.ts +42 -0
- package/dist/super-editor/src/extensions/table-cell/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/table-cell/table-cell.d.ts +78 -0
- package/dist/super-editor/src/extensions/table-header/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/table-header/table-header.d.ts +29 -0
- package/dist/super-editor/src/extensions/table-row/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/table-row/table-row.d.ts +184 -0
- package/dist/super-editor/src/extensions/text/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/text/text.d.ts +16 -0
- package/dist/super-editor/src/extensions/text-align/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/text-align/text-align.d.ts +33 -0
- package/dist/super-editor/src/extensions/text-indent/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/text-indent/text-indent.d.ts +30 -0
- package/dist/super-editor/src/extensions/text-style/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/text-style/text-style.d.ts +27 -0
- package/dist/super-editor/src/extensions/text-transform/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/text-transform/text-transform.d.ts +27 -0
- package/dist/super-editor/src/extensions/track-changes/constants.d.ts +3 -0
- package/dist/super-editor/src/extensions/track-changes/index.d.ts +6 -0
- package/dist/super-editor/src/extensions/track-changes/plugins/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +10 -0
- package/dist/super-editor/src/extensions/track-changes/track-changes.d.ts +2 -0
- package/dist/super-editor/src/extensions/track-changes/track-delete.d.ts +2 -0
- package/dist/super-editor/src/extensions/track-changes/track-format.d.ts +2 -0
- package/dist/super-editor/src/extensions/track-changes/track-insert.d.ts +2 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +8 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +8 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/index.d.ts +12 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +1 -0
- package/dist/super-editor/src/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +1 -0
- package/dist/super-editor/src/extensions/underline/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/underline/underline.d.ts +43 -0
- package/dist/super-editor/src/index.d.ts +32 -0
- package/dist/super-editor/src/main.d.ts +1 -0
- package/dist/super-editor/src/tests/data/annotations_doc_content.d.ts +429 -0
- package/dist/super-editor/src/tests/editor/data/imageBase64.d.ts +1 -0
- package/dist/super-editor/src/tests/export/data/comments/basic-resolved-comment.d.ts +32 -0
- package/dist/super-editor/src/tests/export/export-helpers/export-helpers.d.ts +8 -0
- package/dist/super-editor/src/tests/export/export-helpers/index.d.ts +2 -0
- package/dist/super-editor/src/tests/export/export-helpers/list-export-helpers.d.ts +23 -0
- package/dist/super-editor/src/tests/helpers/editor-test-utils.d.ts +14 -0
- package/dist/super-editor/src/tests/helpers/helpers.d.ts +6 -0
- package/dist/super-editor/src/tests/import/testUtils.d.ts +1 -0
- package/dist/super-editor/style.css +1897 -0
- package/dist/super-editor/super-editor.es.js +4653 -0
- package/dist/super-editor/toolbar.es.js +6 -0
- package/dist/super-editor/vite.config.d.ts +2 -0
- package/dist/super-editor.cjs +29 -0
- package/dist/super-editor.d.ts +5 -0
- package/dist/super-editor.d.ts.map +1 -0
- package/dist/super-editor.es.js +29 -0
- package/dist/superdoc.cjs +25 -0
- package/dist/superdoc.es.js +25 -0
- package/dist/superdoc.umd.js +108866 -0
- package/dist/superdoc.umd.js.map +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} ExportParams
|
|
3
|
+
* @property {Object} node JSON node to translate (from PM schema)
|
|
4
|
+
* @property {Object} bodyNode The stored body node to restore, if available
|
|
5
|
+
* @property {Object[]} relationships The relationships to add to the document
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {Object} SchemaNode
|
|
9
|
+
* @property {string} type The name of this node from the prose mirror schema
|
|
10
|
+
* @property {Array<SchemaNode>} content The child nodes
|
|
11
|
+
* @property {Object} attrs The node attributes
|
|
12
|
+
* /
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @typedef {Object} XmlReadyNode
|
|
16
|
+
* @property {string} name The XML tag name
|
|
17
|
+
* @property {Array<XmlReadyNode>} elements The child nodes
|
|
18
|
+
* @property {Object} [attributes] The node attributes
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object.<string, *>} SchemaAttributes
|
|
22
|
+
* Key value pairs representing the node attributes from prose mirror
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {Object.<string, *>} XmlAttributes
|
|
26
|
+
* Key value pairs representing the node attributes to export to XML format
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {Object} MarkType
|
|
30
|
+
* @property {string} type The mark type
|
|
31
|
+
* @property {Object} attrs Any attributes for this mark
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Main export function. It expects the prose mirror data as JSON (ie: a doc node)
|
|
35
|
+
*
|
|
36
|
+
* @param {ExportParams} params - The parameters object, containing a node and possibly a body node
|
|
37
|
+
* @returns {XmlReadyNode} The complete document node in XML-ready format
|
|
38
|
+
*/
|
|
39
|
+
export function exportSchemaToJson(params: ExportParams): XmlReadyNode;
|
|
40
|
+
/**
|
|
41
|
+
* Translate a paragraph node
|
|
42
|
+
*
|
|
43
|
+
* @param {ExportParams} node A prose mirror paragraph node
|
|
44
|
+
* @returns {XmlReadyNode} JSON of the XML-ready paragraph node
|
|
45
|
+
*/
|
|
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;
|
|
63
|
+
/**
|
|
64
|
+
* Generate a w:rPr node (run properties) from marks
|
|
65
|
+
*
|
|
66
|
+
* @param {Object[]} marks The marks to add to the run properties
|
|
67
|
+
* @returns
|
|
68
|
+
*/
|
|
69
|
+
export function generateRunProps(marks?: any[]): {
|
|
70
|
+
name: string;
|
|
71
|
+
elements: any[];
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Get all marks as a list of MarkType objects
|
|
75
|
+
*
|
|
76
|
+
* @param {MarkType[]} marks
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
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;
|
|
89
|
+
export function translateHardBreak(params: any): {
|
|
90
|
+
name: string;
|
|
91
|
+
elements: {
|
|
92
|
+
name: string;
|
|
93
|
+
type: string;
|
|
94
|
+
attributes: {
|
|
95
|
+
'w:type': string;
|
|
96
|
+
};
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
export class DocxExporter {
|
|
100
|
+
constructor(converter: any);
|
|
101
|
+
converter: any;
|
|
102
|
+
schemaToXml(data: any, debug?: boolean): string;
|
|
103
|
+
#private;
|
|
104
|
+
}
|
|
105
|
+
export type ExportParams = {
|
|
106
|
+
/**
|
|
107
|
+
* JSON node to translate (from PM schema)
|
|
108
|
+
*/
|
|
109
|
+
node: any;
|
|
110
|
+
/**
|
|
111
|
+
* The stored body node to restore, if available
|
|
112
|
+
*/
|
|
113
|
+
bodyNode: any;
|
|
114
|
+
/**
|
|
115
|
+
* The relationships to add to the document
|
|
116
|
+
*/
|
|
117
|
+
relationships: any[];
|
|
118
|
+
};
|
|
119
|
+
export type SchemaNode = {
|
|
120
|
+
/**
|
|
121
|
+
* The name of this node from the prose mirror schema
|
|
122
|
+
*/
|
|
123
|
+
type: string;
|
|
124
|
+
/**
|
|
125
|
+
* The child nodes
|
|
126
|
+
*/
|
|
127
|
+
content: Array<SchemaNode>;
|
|
128
|
+
/**
|
|
129
|
+
* The node attributes
|
|
130
|
+
* /
|
|
131
|
+
*
|
|
132
|
+
* /**
|
|
133
|
+
*/
|
|
134
|
+
attrs: any;
|
|
135
|
+
};
|
|
136
|
+
export type XmlReadyNode = {
|
|
137
|
+
/**
|
|
138
|
+
* The XML tag name
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
/**
|
|
142
|
+
* The child nodes
|
|
143
|
+
*/
|
|
144
|
+
elements: Array<XmlReadyNode>;
|
|
145
|
+
/**
|
|
146
|
+
* The node attributes
|
|
147
|
+
*/
|
|
148
|
+
attributes?: any;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Key value pairs representing the node attributes from prose mirror
|
|
152
|
+
*/
|
|
153
|
+
export type SchemaAttributes = {
|
|
154
|
+
[x: string]: any;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Key value pairs representing the node attributes to export to XML format
|
|
158
|
+
*/
|
|
159
|
+
export type XmlAttributes = {
|
|
160
|
+
[x: string]: any;
|
|
161
|
+
};
|
|
162
|
+
export type MarkType = {
|
|
163
|
+
/**
|
|
164
|
+
* The mark type
|
|
165
|
+
*/
|
|
166
|
+
type: string;
|
|
167
|
+
/**
|
|
168
|
+
* Any attributes for this mark
|
|
169
|
+
*/
|
|
170
|
+
attrs: any;
|
|
171
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function inchesToTwips(inches: any): number;
|
|
2
|
+
export function twipsToInches(twips: any): number;
|
|
3
|
+
export function twipsToPixels(twips: any): number;
|
|
4
|
+
export function pixelsToTwips(pixels: any): number;
|
|
5
|
+
export function twipsToLines(twips: any): number;
|
|
6
|
+
export function linesToTwips(lines: any): number;
|
|
7
|
+
export function halfPointToPixels(halfPoints: any): number;
|
|
8
|
+
export function emuToPixels(emu: any): number;
|
|
9
|
+
export function pixelsToEmu(px: any): number;
|
|
10
|
+
export function pixelsToHalfPoints(pixels: any): number;
|
|
11
|
+
export function halfPointToPoints(halfPoints: any): number;
|
|
12
|
+
export function eigthPointsToPixels(eigthPoints: any): number;
|
|
13
|
+
export function pixelsToEightPoints(pixels: any): number;
|
|
14
|
+
export function rotToDegrees(rot: any): number;
|
|
15
|
+
export function degreesToRot(degrees: any): number;
|
|
16
|
+
export function getArrayBufferFromUrl(input: any, isHeadless: any): Promise<ArrayBuffer>;
|
|
17
|
+
export function getContentTypesFromXml(contentTypesXml: any): string[];
|
|
18
|
+
export function getHexColorFromDocxSystem(docxColor: any): string;
|
|
19
|
+
export function isValidHexColor(color: any): boolean;
|
|
20
|
+
export function rgbToHex(rgb: any): string;
|
|
21
|
+
export function ptToTwips(pt: any): number;
|
|
22
|
+
export function twipsToPt(twips: any): number;
|
|
23
|
+
export function getLineHeightValueString(lineHeight: any, defaultUnit: any, lineRule?: string, isObject?: boolean): string | {
|
|
24
|
+
"line-height"?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
"line-height": string;
|
|
27
|
+
};
|
|
28
|
+
export function deobfuscateFont(arrayBuffer: any, guidHex: any): any;
|
|
29
|
+
export function hasSomeParentWithClass(element: any, classname: any): any;
|
|
30
|
+
/**
|
|
31
|
+
* Get the export value for text indent
|
|
32
|
+
* @param {string|number} indent - The text indent value to export
|
|
33
|
+
* @returns {number} - The export value in twips
|
|
34
|
+
*/
|
|
35
|
+
export function getTextIndentExportValue(indent: string | number): number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function docxAsXmlFileList2ParsedDocx(docxAsXmlFileList: {
|
|
2
|
+
name: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}[]): ParsedDocx;
|
|
5
|
+
export function parseXmlToJson(xml: any): any;
|
|
6
|
+
export function getInitialJSON(parsedDocx: ParsedDocx, fallbackXml?: string): any;
|
|
7
|
+
/**
|
|
8
|
+
* this should have the `media` as a key for image handling
|
|
9
|
+
*/
|
|
10
|
+
export type ParsedDocx = {
|
|
11
|
+
[x: string]: XmlNode;
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate the end node for a comment
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} params The export params
|
|
5
|
+
* @returns {Object} The translated w:commentRangeEnd node for the comment
|
|
6
|
+
*/
|
|
7
|
+
export function translateCommentNode(params: any, type: any): any;
|
|
8
|
+
export function prepareCommentParaIds(comment: any): any;
|
|
9
|
+
export function getCommentDefinition(comment: any, commentId: string, allComments: any, editor: any): any;
|
|
10
|
+
export function getInitials(name: string): string | null;
|
|
11
|
+
export function toIsoNoFractional(unixMillis: number): string;
|
|
12
|
+
export function updateCommentsXml(commentDefs: any[], commentsXml: any): any;
|
|
13
|
+
export function updateCommentsExtendedXml(comments: any, commentsExtendedXml: any): any;
|
|
14
|
+
export function updateCommentsIdsAndExtensible(comments: any, commentsIds: any, extensible: any): any;
|
|
15
|
+
export function updateDocumentRels(): any;
|
|
16
|
+
export function generateConvertedXmlWithCommentFiles(convertedXml: any): any;
|
|
17
|
+
export function getCommentsFilesConverted(converter: any, convertedXml: any): any;
|
|
18
|
+
export function removeCommentsFilesFromConvertedXml(convertedXml: any): any;
|
|
19
|
+
export function generateRelationship(target: string): any;
|
|
20
|
+
export function prepareCommentsXmlFilesForExport({ convertedXml, defs, commentsWithParaIds, exportType }: any): {
|
|
21
|
+
documentXml: any;
|
|
22
|
+
relationships: any[];
|
|
23
|
+
};
|
package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts
ADDED
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
export namespace baseOrderedListDef {
|
|
2
|
+
let type: string;
|
|
3
|
+
let name: string;
|
|
4
|
+
let attributes: {
|
|
5
|
+
'w:abstractNumId': string;
|
|
6
|
+
'w15:restartNumberingAfterBreak': string;
|
|
7
|
+
};
|
|
8
|
+
let elements: ({
|
|
9
|
+
type: string;
|
|
10
|
+
name: string;
|
|
11
|
+
attributes: {
|
|
12
|
+
'w:val': string;
|
|
13
|
+
'w:ilvl'?: undefined;
|
|
14
|
+
'w:tplc'?: undefined;
|
|
15
|
+
'w:tentative'?: undefined;
|
|
16
|
+
};
|
|
17
|
+
elements?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: string;
|
|
20
|
+
name: string;
|
|
21
|
+
attributes: {
|
|
22
|
+
'w:ilvl': string;
|
|
23
|
+
'w:tplc': string;
|
|
24
|
+
'w:val'?: undefined;
|
|
25
|
+
'w:tentative'?: undefined;
|
|
26
|
+
};
|
|
27
|
+
elements: ({
|
|
28
|
+
type: string;
|
|
29
|
+
name: string;
|
|
30
|
+
attributes: {
|
|
31
|
+
'w:val': string;
|
|
32
|
+
};
|
|
33
|
+
elements?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
type: string;
|
|
36
|
+
name: string;
|
|
37
|
+
elements: {
|
|
38
|
+
type: string;
|
|
39
|
+
name: string;
|
|
40
|
+
attributes: {
|
|
41
|
+
'w:left': string;
|
|
42
|
+
'w:hanging': string;
|
|
43
|
+
};
|
|
44
|
+
}[];
|
|
45
|
+
attributes?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
} | {
|
|
48
|
+
type: string;
|
|
49
|
+
name: string;
|
|
50
|
+
attributes: {
|
|
51
|
+
'w:ilvl': string;
|
|
52
|
+
'w:tplc': string;
|
|
53
|
+
'w:tentative': string;
|
|
54
|
+
'w:val'?: undefined;
|
|
55
|
+
};
|
|
56
|
+
elements: ({
|
|
57
|
+
type: string;
|
|
58
|
+
name: string;
|
|
59
|
+
attributes: {
|
|
60
|
+
'w:val': string;
|
|
61
|
+
};
|
|
62
|
+
elements?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
type: string;
|
|
65
|
+
name: string;
|
|
66
|
+
elements: {
|
|
67
|
+
type: string;
|
|
68
|
+
name: string;
|
|
69
|
+
attributes: {
|
|
70
|
+
'w:left': string;
|
|
71
|
+
'w:hanging': string;
|
|
72
|
+
};
|
|
73
|
+
}[];
|
|
74
|
+
attributes?: undefined;
|
|
75
|
+
})[];
|
|
76
|
+
})[];
|
|
77
|
+
}
|
|
78
|
+
export namespace baseBulletList {
|
|
79
|
+
let type_1: string;
|
|
80
|
+
export { type_1 as type };
|
|
81
|
+
let name_1: string;
|
|
82
|
+
export { name_1 as name };
|
|
83
|
+
let attributes_1: {
|
|
84
|
+
'w:abstractNumId': string;
|
|
85
|
+
'w15:restartNumberingAfterBreak': string;
|
|
86
|
+
};
|
|
87
|
+
export { attributes_1 as attributes };
|
|
88
|
+
let elements_1: ({
|
|
89
|
+
type: string;
|
|
90
|
+
name: string;
|
|
91
|
+
attributes: {
|
|
92
|
+
'w:val': string;
|
|
93
|
+
'w:ilvl'?: undefined;
|
|
94
|
+
'w:tplc'?: undefined;
|
|
95
|
+
'w:tentative'?: undefined;
|
|
96
|
+
};
|
|
97
|
+
elements?: undefined;
|
|
98
|
+
} | {
|
|
99
|
+
type: string;
|
|
100
|
+
name: string;
|
|
101
|
+
attributes: {
|
|
102
|
+
'w:ilvl': string;
|
|
103
|
+
'w:tplc': string;
|
|
104
|
+
'w:val'?: undefined;
|
|
105
|
+
'w:tentative'?: undefined;
|
|
106
|
+
};
|
|
107
|
+
elements: ({
|
|
108
|
+
type: string;
|
|
109
|
+
name: string;
|
|
110
|
+
attributes: {
|
|
111
|
+
'w:val': string;
|
|
112
|
+
};
|
|
113
|
+
elements?: undefined;
|
|
114
|
+
} | {
|
|
115
|
+
type: string;
|
|
116
|
+
name: string;
|
|
117
|
+
elements: {
|
|
118
|
+
type: string;
|
|
119
|
+
name: string;
|
|
120
|
+
attributes: {
|
|
121
|
+
'w:left': string;
|
|
122
|
+
'w:hanging': string;
|
|
123
|
+
};
|
|
124
|
+
}[];
|
|
125
|
+
attributes?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
type: string;
|
|
128
|
+
name: string;
|
|
129
|
+
elements: {
|
|
130
|
+
type: string;
|
|
131
|
+
name: string;
|
|
132
|
+
attributes: {
|
|
133
|
+
'w:ascii': string;
|
|
134
|
+
'w:hAnsi': string;
|
|
135
|
+
'w:hint': string;
|
|
136
|
+
};
|
|
137
|
+
}[];
|
|
138
|
+
attributes?: undefined;
|
|
139
|
+
})[];
|
|
140
|
+
} | {
|
|
141
|
+
type: string;
|
|
142
|
+
name: string;
|
|
143
|
+
attributes: {
|
|
144
|
+
'w:ilvl': string;
|
|
145
|
+
'w:tplc': string;
|
|
146
|
+
'w:tentative': string;
|
|
147
|
+
'w:val'?: undefined;
|
|
148
|
+
};
|
|
149
|
+
elements: ({
|
|
150
|
+
type: string;
|
|
151
|
+
name: string;
|
|
152
|
+
attributes: {
|
|
153
|
+
'w:val': string;
|
|
154
|
+
};
|
|
155
|
+
elements?: undefined;
|
|
156
|
+
} | {
|
|
157
|
+
type: string;
|
|
158
|
+
name: string;
|
|
159
|
+
elements: {
|
|
160
|
+
type: string;
|
|
161
|
+
name: string;
|
|
162
|
+
attributes: {
|
|
163
|
+
'w:left': string;
|
|
164
|
+
'w:hanging': string;
|
|
165
|
+
};
|
|
166
|
+
}[];
|
|
167
|
+
attributes?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
type: string;
|
|
170
|
+
name: string;
|
|
171
|
+
elements: {
|
|
172
|
+
type: string;
|
|
173
|
+
name: string;
|
|
174
|
+
attributes: {
|
|
175
|
+
'w:ascii': string;
|
|
176
|
+
'w:hAnsi': string;
|
|
177
|
+
'w:cs': string;
|
|
178
|
+
'w:hint': string;
|
|
179
|
+
};
|
|
180
|
+
}[];
|
|
181
|
+
attributes?: undefined;
|
|
182
|
+
})[];
|
|
183
|
+
} | {
|
|
184
|
+
type: string;
|
|
185
|
+
name: string;
|
|
186
|
+
attributes: {
|
|
187
|
+
'w:ilvl': string;
|
|
188
|
+
'w:tplc': string;
|
|
189
|
+
'w:tentative': string;
|
|
190
|
+
'w:val'?: undefined;
|
|
191
|
+
};
|
|
192
|
+
elements: ({
|
|
193
|
+
type: string;
|
|
194
|
+
name: string;
|
|
195
|
+
attributes: {
|
|
196
|
+
'w:val': string;
|
|
197
|
+
};
|
|
198
|
+
elements?: undefined;
|
|
199
|
+
} | {
|
|
200
|
+
type: string;
|
|
201
|
+
name: string;
|
|
202
|
+
elements: {
|
|
203
|
+
type: string;
|
|
204
|
+
name: string;
|
|
205
|
+
attributes: {
|
|
206
|
+
'w:left': string;
|
|
207
|
+
'w:hanging': string;
|
|
208
|
+
};
|
|
209
|
+
}[];
|
|
210
|
+
attributes?: undefined;
|
|
211
|
+
} | {
|
|
212
|
+
type: string;
|
|
213
|
+
name: string;
|
|
214
|
+
elements: {
|
|
215
|
+
type: string;
|
|
216
|
+
name: string;
|
|
217
|
+
attributes: {
|
|
218
|
+
'w:ascii': string;
|
|
219
|
+
'w:hAnsi': string;
|
|
220
|
+
'w:hint': string;
|
|
221
|
+
};
|
|
222
|
+
}[];
|
|
223
|
+
attributes?: undefined;
|
|
224
|
+
})[];
|
|
225
|
+
})[];
|
|
226
|
+
export { elements_1 as elements };
|
|
227
|
+
}
|
|
228
|
+
export namespace baseNumbering {
|
|
229
|
+
export namespace declaration {
|
|
230
|
+
export namespace attributes_2 {
|
|
231
|
+
let version: string;
|
|
232
|
+
let encoding: string;
|
|
233
|
+
let standalone: string;
|
|
234
|
+
}
|
|
235
|
+
export { attributes_2 as attributes };
|
|
236
|
+
}
|
|
237
|
+
let elements_2: {
|
|
238
|
+
type: string;
|
|
239
|
+
name: string;
|
|
240
|
+
attributes: {
|
|
241
|
+
'xmlns:wpc': string;
|
|
242
|
+
'xmlns:cx': string;
|
|
243
|
+
'xmlns:cx1': string;
|
|
244
|
+
'xmlns:cx2': string;
|
|
245
|
+
'xmlns:cx3': string;
|
|
246
|
+
'xmlns:cx4': string;
|
|
247
|
+
'xmlns:cx5': string;
|
|
248
|
+
'xmlns:cx6': string;
|
|
249
|
+
'xmlns:cx7': string;
|
|
250
|
+
'xmlns:cx8': string;
|
|
251
|
+
'xmlns:mc': string;
|
|
252
|
+
'xmlns:aink': string;
|
|
253
|
+
'xmlns:am3d': string;
|
|
254
|
+
'xmlns:o': string;
|
|
255
|
+
'xmlns:oel': string;
|
|
256
|
+
'xmlns:r': string;
|
|
257
|
+
'xmlns:m': string;
|
|
258
|
+
'xmlns:v': string;
|
|
259
|
+
'xmlns:wp14': string;
|
|
260
|
+
'xmlns:wp': string;
|
|
261
|
+
'xmlns:w10': string;
|
|
262
|
+
'xmlns:w': string;
|
|
263
|
+
'xmlns:w14': string;
|
|
264
|
+
'xmlns:w15': string;
|
|
265
|
+
'xmlns:w16cex': string;
|
|
266
|
+
'xmlns:w16cid': string;
|
|
267
|
+
'xmlns:w16': string;
|
|
268
|
+
'xmlns:w16du': string;
|
|
269
|
+
'xmlns:w16sdtdh': string;
|
|
270
|
+
'xmlns:w16se': string;
|
|
271
|
+
'xmlns:wpg': string;
|
|
272
|
+
'xmlns:wpi': string;
|
|
273
|
+
'xmlns:wne': string;
|
|
274
|
+
'xmlns:wps': string;
|
|
275
|
+
'mc:Ignorable': string;
|
|
276
|
+
};
|
|
277
|
+
elements: ({
|
|
278
|
+
type: string;
|
|
279
|
+
name: string;
|
|
280
|
+
attributes: {
|
|
281
|
+
'w:abstractNumId': string;
|
|
282
|
+
'w15:restartNumberingAfterBreak': string;
|
|
283
|
+
'w:numId'?: undefined;
|
|
284
|
+
'w16cid:durableId'?: undefined;
|
|
285
|
+
};
|
|
286
|
+
elements: ({
|
|
287
|
+
type: string;
|
|
288
|
+
name: string;
|
|
289
|
+
attributes: {
|
|
290
|
+
'w:val': string;
|
|
291
|
+
'w:ilvl'?: undefined;
|
|
292
|
+
'w:tplc'?: undefined;
|
|
293
|
+
'w:tentative'?: undefined;
|
|
294
|
+
};
|
|
295
|
+
elements?: undefined;
|
|
296
|
+
} | {
|
|
297
|
+
type: string;
|
|
298
|
+
name: string;
|
|
299
|
+
attributes: {
|
|
300
|
+
'w:ilvl': string;
|
|
301
|
+
'w:tplc': string;
|
|
302
|
+
'w:val'?: undefined;
|
|
303
|
+
'w:tentative'?: undefined;
|
|
304
|
+
};
|
|
305
|
+
elements: ({
|
|
306
|
+
type: string;
|
|
307
|
+
name: string;
|
|
308
|
+
attributes: {
|
|
309
|
+
'w:val': string;
|
|
310
|
+
};
|
|
311
|
+
elements?: undefined;
|
|
312
|
+
} | {
|
|
313
|
+
type: string;
|
|
314
|
+
name: string;
|
|
315
|
+
elements: {
|
|
316
|
+
type: string;
|
|
317
|
+
name: string;
|
|
318
|
+
attributes: {
|
|
319
|
+
'w:left': string;
|
|
320
|
+
'w:hanging': string;
|
|
321
|
+
};
|
|
322
|
+
}[];
|
|
323
|
+
attributes?: undefined;
|
|
324
|
+
} | {
|
|
325
|
+
type: string;
|
|
326
|
+
name: string;
|
|
327
|
+
elements: {
|
|
328
|
+
type: string;
|
|
329
|
+
name: string;
|
|
330
|
+
attributes: {
|
|
331
|
+
'w:ascii': string;
|
|
332
|
+
'w:hAnsi': string;
|
|
333
|
+
'w:hint': string;
|
|
334
|
+
};
|
|
335
|
+
}[];
|
|
336
|
+
attributes?: undefined;
|
|
337
|
+
})[];
|
|
338
|
+
} | {
|
|
339
|
+
type: string;
|
|
340
|
+
name: string;
|
|
341
|
+
attributes: {
|
|
342
|
+
'w:ilvl': string;
|
|
343
|
+
'w:tplc': string;
|
|
344
|
+
'w:tentative': string;
|
|
345
|
+
'w:val'?: undefined;
|
|
346
|
+
};
|
|
347
|
+
elements: ({
|
|
348
|
+
type: string;
|
|
349
|
+
name: string;
|
|
350
|
+
attributes: {
|
|
351
|
+
'w:val': string;
|
|
352
|
+
};
|
|
353
|
+
elements?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
type: string;
|
|
356
|
+
name: string;
|
|
357
|
+
elements: {
|
|
358
|
+
type: string;
|
|
359
|
+
name: string;
|
|
360
|
+
attributes: {
|
|
361
|
+
'w:left': string;
|
|
362
|
+
'w:hanging': string;
|
|
363
|
+
};
|
|
364
|
+
}[];
|
|
365
|
+
attributes?: undefined;
|
|
366
|
+
} | {
|
|
367
|
+
type: string;
|
|
368
|
+
name: string;
|
|
369
|
+
elements: {
|
|
370
|
+
type: string;
|
|
371
|
+
name: string;
|
|
372
|
+
attributes: {
|
|
373
|
+
'w:ascii': string;
|
|
374
|
+
'w:hAnsi': string;
|
|
375
|
+
'w:cs': string;
|
|
376
|
+
'w:hint': string;
|
|
377
|
+
};
|
|
378
|
+
}[];
|
|
379
|
+
attributes?: undefined;
|
|
380
|
+
})[];
|
|
381
|
+
} | {
|
|
382
|
+
type: string;
|
|
383
|
+
name: string;
|
|
384
|
+
attributes: {
|
|
385
|
+
'w:ilvl': string;
|
|
386
|
+
'w:tplc': string;
|
|
387
|
+
'w:tentative': string;
|
|
388
|
+
'w:val'?: undefined;
|
|
389
|
+
};
|
|
390
|
+
elements: ({
|
|
391
|
+
type: string;
|
|
392
|
+
name: string;
|
|
393
|
+
attributes: {
|
|
394
|
+
'w:val': string;
|
|
395
|
+
};
|
|
396
|
+
elements?: undefined;
|
|
397
|
+
} | {
|
|
398
|
+
type: string;
|
|
399
|
+
name: string;
|
|
400
|
+
elements: {
|
|
401
|
+
type: string;
|
|
402
|
+
name: string;
|
|
403
|
+
attributes: {
|
|
404
|
+
'w:left': string;
|
|
405
|
+
'w:hanging': string;
|
|
406
|
+
};
|
|
407
|
+
}[];
|
|
408
|
+
attributes?: undefined;
|
|
409
|
+
} | {
|
|
410
|
+
type: string;
|
|
411
|
+
name: string;
|
|
412
|
+
elements: {
|
|
413
|
+
type: string;
|
|
414
|
+
name: string;
|
|
415
|
+
attributes: {
|
|
416
|
+
'w:ascii': string;
|
|
417
|
+
'w:hAnsi': string;
|
|
418
|
+
'w:hint': string;
|
|
419
|
+
};
|
|
420
|
+
}[];
|
|
421
|
+
attributes?: undefined;
|
|
422
|
+
})[];
|
|
423
|
+
})[];
|
|
424
|
+
} | {
|
|
425
|
+
type: string;
|
|
426
|
+
name: string;
|
|
427
|
+
attributes: {
|
|
428
|
+
'w:numId': string;
|
|
429
|
+
'w16cid:durableId': string;
|
|
430
|
+
'w:abstractNumId'?: undefined;
|
|
431
|
+
'w15:restartNumberingAfterBreak'?: undefined;
|
|
432
|
+
};
|
|
433
|
+
elements: {
|
|
434
|
+
type: string;
|
|
435
|
+
name: string;
|
|
436
|
+
attributes: {
|
|
437
|
+
'w:val': string;
|
|
438
|
+
};
|
|
439
|
+
}[];
|
|
440
|
+
})[];
|
|
441
|
+
}[];
|
|
442
|
+
export { elements_2 as elements };
|
|
443
|
+
}
|