@harbour-enterprises/superdoc 0.23.0-next.2 → 0.23.0-next.21
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-BItyloFT.cjs → PdfViewer-C1OeVT5x.cjs} +2 -2
- package/dist/chunks/{PdfViewer-MPmm-SUD.es.js → PdfViewer-DN7WcPFE.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-BWEnUdTY.es.js} +1 -1
- package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DkXkH2rT.cjs} +1 -1
- package/dist/chunks/{index-OVF3JhUR.es.js → index-C4jqec_K.es.js} +98 -356
- package/dist/chunks/{index-CdJOxoqt.cjs → index-CzDXj8Kn.cjs} +231 -489
- package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-BDk3JBqp.es.js} +4 -4
- package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-u4dvXAKa.cjs} +4 -4
- package/dist/chunks/{super-editor.es-C7stybby.cjs → super-editor.es-BAutf_un.cjs} +1465 -735
- package/dist/chunks/{super-editor.es-DQnqUJZs.es.js → super-editor.es-C_TNO7vs.es.js} +1465 -735
- package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
- package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
- package/dist/chunks/xml-js-D_ZIzxu0.cjs +3 -0
- package/dist/chunks/xml-js-Dx4FIjnp.es.js +2 -0
- package/dist/components/CommentsLayer/types.d.ts +158 -0
- package/dist/components/CommentsLayer/types.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +5 -18
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +48 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/stores/superdoc-store.d.ts.map +1 -1
- package/dist/style.css +73 -54
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BVirrB35.js → converter-DRfV_TdS.js} +1311 -847
- package/dist/super-editor/chunks/{docx-zipper-Cpb9d2an.js → docx-zipper-BGbNO5Td.js} +1 -1
- package/dist/super-editor/chunks/{editor-DIINh50j.js → editor-CkWePiIz.js} +345 -92
- package/dist/super-editor/chunks/{toolbar-CmDmkPHL.js → toolbar-Ba-s6umZ.js} +4 -4
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +46 -27
- package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarTexts.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/Attribute.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/Editor.d.ts +57 -3
- package/dist/super-editor/{src → super-editor/src}/core/Schema.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/helpers/htmlSanitizer.d.ts +1 -1
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/SuperConverter.d.ts +58 -2
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter-docx-defs.d.ts +28 -39
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/commentsExporter.d.ts +0 -7
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/w-id.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/comment-range-translator.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/index.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/node-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +64 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
- package/dist/super-editor/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +5 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
- package/dist/super-editor/super-editor.es.js +26 -11
- package/dist/super-editor/superdoc/src/components/CommentsLayer/types.d.ts +157 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +3 -4
- package/dist/superdoc.es.js +3 -4
- package/dist/superdoc.umd.js +1606 -1134
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
- package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +0 -4
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
- /package/dist/super-editor/{postcss.config.d.cts → super-editor/postcss.config.d.cts} +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/cursor-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/menuItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/tests/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/ai-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/color-dropdown-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/defaultItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/format-negation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/scroll-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/super-toolbar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarIcons.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/use-toolbar-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/composables/use-high-contrast-mode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/CommandService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/DocxZipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/EventEmitter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Extension.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/ExtensionService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/InputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Mark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/OxmlNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/child-editor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/schemaWithLists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testSchema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/backspaceNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/clearNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/command.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/createParagraphNear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/decreaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/exitCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/increaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContentAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinDown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinUp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftEmptyBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/find-node-position.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/is-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/test-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/newlineInCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/resetAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/restoreSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectAll.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockStart.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMeta.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/sinkListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/commandTestUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/test-schema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMarkCascade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/undoInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetAllMarks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/updateAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/wrapInList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/encoding-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editorFocus.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/keymap.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/ErrorWithDetails.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/annotator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/baseListDefinitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/chainableEditorState.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/cleanSchemaItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/contentProcessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createDocument.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createNodeFromContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/defaultBlockAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findChildren.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNodeClosestToPos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findWordBounds.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxListAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxRandomId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getActiveFormatting.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getExtensionConfigField.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getHTMLFromFragment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkRange.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksFromSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getNodeType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeNameByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getTextContentFromNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importHtml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importMarkdown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isExtentionRulesEnabled.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isInTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isMarkActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isNodeActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isTextSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/list-numbering-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/orderedListUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/pasteListHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/posToDOMRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/selectionToInsertionEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setImageNodeSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setWordSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/updateDOMAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/docx-paste/docx-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/google-docs-paste/google-docs-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/html-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/transform-copied-lists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/wrappingInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/0.14-listsv2/listsv2migration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/migration_after_0_4_14.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/document-rels.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/get-default-style-definition.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/hyperlink-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/num-pages-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-ref-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/toc-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/preProcessNodesForFldChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/mediaHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/tableFallbackHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/docxHelper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/alternateChoiceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/autoPageNumberImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/documentCommentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/docxImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/hyperlinkImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/ignoredNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/imageImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/importerHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/lineBreakImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/listImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/markImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/mergeTextNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pageReferenceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pictNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/runNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/standardNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tabImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableOfContentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/textNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/trackChangesImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/pageReference-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/tableOfContents-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/b-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-clear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-line-break-type.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/br-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/cantSplit-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/cnfStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/color-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/divId-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/gridAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/gridBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/hidden-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/hyperlink-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/i-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/jc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-p.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-default.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-para-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-text-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/p-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/r-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-leader.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/tblCellSpacing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/tblHeader-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/tc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/trHeight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/trPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/u-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/wAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/wBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/zipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/logger.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/super-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/image-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/image-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/link-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/link-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/numbering/numbering-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/relationships/relationships-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/callOrGet.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/carbonCopy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/clipboardUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/createStyleTag.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/deleteProps.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/imageBlobs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isEmptyObject.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isIOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isMacOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isRegExp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/minMax.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/objectIncludes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/parseSizeUnit.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-nodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/block-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/bold.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-end.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-start.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/bullet-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/collaboration-cursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment-import-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/custom-selection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/document.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/dropcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpParagraphWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFirstFieldAnnotationByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findHeaderFooterAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findRemovedFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotationsWithRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/font-family.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/font-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/format-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/gapcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/heading.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/highlight.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/history.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/image.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/getFileOpener.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleImageUpload.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleUrl.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imagePositionPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/processUploadedImage.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/rotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/italic.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/line-break.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/line-height.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/link.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/linked-styles.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/underline-css.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/ListItemNodeView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/listItemTypography.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/list-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/mention.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/noderesizer.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/ordered-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/page-number.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/page-reference.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/helpers/getDefaultSpacing.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/paragraph.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/placeholder.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/popover-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/split-run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/prosemirror-search-patched.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/search.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/shape-container.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/shape-textbox.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shared/cascade-toggle.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/slash-menu.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/strike.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentBlockView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentInlineView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentViewBase.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-part-object.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/DocumentSectionView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/helpers/tabDecorations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/tab.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/TableView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/table.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellAround.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createCell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createColGroup.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTableBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/isCellSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/helpers/createCellBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/table-header.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/table-of-contents.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/table-row.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/text.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/text-align.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/text-indent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/text-style.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/text-transform.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-changes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-delete.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-format.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-insert.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/underline.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/main.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/data/annotations_doc_content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/editor/data/imageBase64.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/data/comments/basic-resolved-comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/list-export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/editor-test-utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/getParagraphText.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/import/testUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/utils/contextmenu-helpers.d.ts +0 -0
- /package/dist/super-editor/{vite.config.d.ts → super-editor/vite.config.d.ts} +0 -0
package/dist/superdoc.umd.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
const Y__namespace = /* @__PURE__ */ _interopNamespaceDefault(Y);
|
|
22
22
|
/**
|
|
23
|
-
* @vue/shared v3.5.
|
|
23
|
+
* @vue/shared v3.5.22
|
|
24
24
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
25
25
|
* @license MIT
|
|
26
26
|
**/
|
|
@@ -915,7 +915,7 @@
|
|
|
915
915
|
iter._next = iter.next;
|
|
916
916
|
iter.next = () => {
|
|
917
917
|
const result = iter._next();
|
|
918
|
-
if (result.
|
|
918
|
+
if (!result.done) {
|
|
919
919
|
result.value = wrapValue(result.value);
|
|
920
920
|
}
|
|
921
921
|
return result;
|
|
@@ -1041,7 +1041,8 @@
|
|
|
1041
1041
|
return res;
|
|
1042
1042
|
}
|
|
1043
1043
|
if (isRef(res)) {
|
|
1044
|
-
|
|
1044
|
+
const value = targetIsArray && isIntegerKey(key2) ? res : res.value;
|
|
1045
|
+
return isReadonly2 && isObject$3(value) ? readonly(value) : value;
|
|
1045
1046
|
}
|
|
1046
1047
|
if (isObject$3(res)) {
|
|
1047
1048
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
@@ -2214,9 +2215,6 @@
|
|
|
2214
2215
|
insert(mainAnchor, container, anchor);
|
|
2215
2216
|
const mount2 = (container2, anchor2) => {
|
|
2216
2217
|
if (shapeFlag & 16) {
|
|
2217
|
-
if (parentComponent && parentComponent.isCE) {
|
|
2218
|
-
parentComponent.ce._teleportTarget = container2;
|
|
2219
|
-
}
|
|
2220
2218
|
mountChildren(
|
|
2221
2219
|
children,
|
|
2222
2220
|
container2,
|
|
@@ -2238,6 +2236,9 @@
|
|
|
2238
2236
|
} else if (namespace2 !== "mathml" && isTargetMathML(target)) {
|
|
2239
2237
|
namespace2 = "mathml";
|
|
2240
2238
|
}
|
|
2239
|
+
if (parentComponent && parentComponent.isCE) {
|
|
2240
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
2241
|
+
}
|
|
2241
2242
|
if (!disabled) {
|
|
2242
2243
|
mount2(target, targetAnchor);
|
|
2243
2244
|
updateCssVars(n2, false);
|
|
@@ -3326,11 +3327,12 @@
|
|
|
3326
3327
|
}
|
|
3327
3328
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
3328
3329
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
3330
|
+
const hasProps = Object.keys(props).length > 0;
|
|
3329
3331
|
return openBlock(), createBlock(
|
|
3330
3332
|
Fragment$1,
|
|
3331
3333
|
null,
|
|
3332
3334
|
[createVNode("slot", props, fallback)],
|
|
3333
|
-
64
|
|
3335
|
+
hasProps ? -2 : 64
|
|
3334
3336
|
);
|
|
3335
3337
|
}
|
|
3336
3338
|
let slot = slots[name];
|
|
@@ -6720,34 +6722,31 @@
|
|
|
6720
6722
|
return c2;
|
|
6721
6723
|
};
|
|
6722
6724
|
function h$1(type2, propsOrChildren, children) {
|
|
6723
|
-
|
|
6725
|
+
try {
|
|
6724
6726
|
setBlockTracking(-1);
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
if (isVNode(propsOrChildren)) {
|
|
6735
|
-
return doCreateVNode(type2, null, [propsOrChildren]);
|
|
6727
|
+
const l = arguments.length;
|
|
6728
|
+
if (l === 2) {
|
|
6729
|
+
if (isObject$3(propsOrChildren) && !isArray$3(propsOrChildren)) {
|
|
6730
|
+
if (isVNode(propsOrChildren)) {
|
|
6731
|
+
return createVNode(type2, null, [propsOrChildren]);
|
|
6732
|
+
}
|
|
6733
|
+
return createVNode(type2, propsOrChildren);
|
|
6734
|
+
} else {
|
|
6735
|
+
return createVNode(type2, null, propsOrChildren);
|
|
6736
6736
|
}
|
|
6737
|
-
return doCreateVNode(type2, propsOrChildren);
|
|
6738
6737
|
} else {
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
children = [children];
|
|
6738
|
+
if (l > 3) {
|
|
6739
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
6740
|
+
} else if (l === 3 && isVNode(children)) {
|
|
6741
|
+
children = [children];
|
|
6742
|
+
}
|
|
6743
|
+
return createVNode(type2, propsOrChildren, children);
|
|
6746
6744
|
}
|
|
6747
|
-
|
|
6745
|
+
} finally {
|
|
6746
|
+
setBlockTracking(1);
|
|
6748
6747
|
}
|
|
6749
6748
|
}
|
|
6750
|
-
const version$1 = "3.5.
|
|
6749
|
+
const version$1 = "3.5.22";
|
|
6751
6750
|
let policy = void 0;
|
|
6752
6751
|
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
6753
6752
|
if (tt) {
|
|
@@ -6953,11 +6952,11 @@
|
|
|
6953
6952
|
const resolve2 = () => finishLeave(el, done);
|
|
6954
6953
|
addTransitionClass(el, leaveFromClass);
|
|
6955
6954
|
if (!el._enterCancelled) {
|
|
6956
|
-
forceReflow();
|
|
6955
|
+
forceReflow(el);
|
|
6957
6956
|
addTransitionClass(el, leaveActiveClass);
|
|
6958
6957
|
} else {
|
|
6959
6958
|
addTransitionClass(el, leaveActiveClass);
|
|
6960
|
-
forceReflow();
|
|
6959
|
+
forceReflow(el);
|
|
6961
6960
|
}
|
|
6962
6961
|
nextFrame(() => {
|
|
6963
6962
|
if (!el._isLeaving) {
|
|
@@ -7100,8 +7099,9 @@
|
|
|
7100
7099
|
if (s === "auto") return 0;
|
|
7101
7100
|
return Number(s.slice(0, -1).replace(",", ".")) * 1e3;
|
|
7102
7101
|
}
|
|
7103
|
-
function forceReflow() {
|
|
7104
|
-
|
|
7102
|
+
function forceReflow(el) {
|
|
7103
|
+
const targetDocument = el ? el.ownerDocument : document;
|
|
7104
|
+
return targetDocument.body.offsetHeight;
|
|
7105
7105
|
}
|
|
7106
7106
|
function patchClass(el, value, isSVG2) {
|
|
7107
7107
|
const transitionClasses = el[vtcKey];
|
|
@@ -7487,7 +7487,7 @@
|
|
|
7487
7487
|
prevChildren.forEach(callPendingCbs);
|
|
7488
7488
|
prevChildren.forEach(recordPosition);
|
|
7489
7489
|
const movedChildren = prevChildren.filter(applyTranslation);
|
|
7490
|
-
forceReflow();
|
|
7490
|
+
forceReflow(instance.vnode.el);
|
|
7491
7491
|
movedChildren.forEach((c2) => {
|
|
7492
7492
|
const el = c2.el;
|
|
7493
7493
|
const style2 = el.style;
|
|
@@ -7752,11 +7752,7 @@
|
|
|
7752
7752
|
var __accessCheck$2 = (obj, member, msg2) => member.has(obj) || __typeError$2("Cannot " + msg2);
|
|
7753
7753
|
var __privateAdd$2 = (obj, member, value) => member.has(obj) ? __typeError$2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7754
7754
|
var __privateMethod$2 = (obj, member, method) => (__accessCheck$2(obj, member, "access private method"), method);
|
|
7755
|
-
var _a, _DocxExporter_instances, generate_xml_as_list_fn, replaceSpecialCharacters_fn, generateXml_fn, _SuperConverter_instances, exportNumberingFile_fn, prepareCommentsXmlFilesForExport_fn, exportProcessHeadersFooters_fn, exportProcessNewRelationships_fn, exportProcessMediaFiles_fn;
|
|
7756
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
7757
|
-
function getDefaultExportFromCjs$1$1(x) {
|
|
7758
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
7759
|
-
}
|
|
7755
|
+
var _a, _DocxExporter_instances, generate_xml_as_list_fn, replaceSpecialCharacters_fn, generateXml_fn, _SuperConverter_instances, generateDocumentHash_fn, exportNumberingFile_fn, prepareCommentsXmlFilesForExport_fn, exportProcessHeadersFooters_fn, exportProcessNewRelationships_fn, exportProcessMediaFiles_fn;
|
|
7760
7756
|
var buffer = {};
|
|
7761
7757
|
var base64Js = {};
|
|
7762
7758
|
base64Js.byteLength = byteLength;
|
|
@@ -9523,6 +9519,10 @@
|
|
|
9523
9519
|
}
|
|
9524
9520
|
})(buffer);
|
|
9525
9521
|
const Buffer2 = buffer.Buffer;
|
|
9522
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
9523
|
+
function getDefaultExportFromCjs$2(x) {
|
|
9524
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
9525
|
+
}
|
|
9526
9526
|
var sax = {};
|
|
9527
9527
|
var events$2 = { exports: {} };
|
|
9528
9528
|
var hasRequiredEvents;
|
|
@@ -9925,7 +9925,7 @@
|
|
|
9925
9925
|
}
|
|
9926
9926
|
return inherits_browser.exports;
|
|
9927
9927
|
}
|
|
9928
|
-
function getDefaultExportFromCjs$
|
|
9928
|
+
function getDefaultExportFromCjs$1(x) {
|
|
9929
9929
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
9930
9930
|
}
|
|
9931
9931
|
var browser$1 = { exports: {} };
|
|
@@ -10086,7 +10086,7 @@
|
|
|
10086
10086
|
return 0;
|
|
10087
10087
|
};
|
|
10088
10088
|
var browserExports = browser$1.exports;
|
|
10089
|
-
const process$1$1 = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
10089
|
+
const process$1$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(browserExports);
|
|
10090
10090
|
var streamBrowser;
|
|
10091
10091
|
var hasRequiredStreamBrowser;
|
|
10092
10092
|
function requireStreamBrowser() {
|
|
@@ -12836,6 +12836,19 @@
|
|
|
12836
12836
|
};
|
|
12837
12837
|
return safeRegexTest;
|
|
12838
12838
|
}
|
|
12839
|
+
var generatorFunction;
|
|
12840
|
+
var hasRequiredGeneratorFunction;
|
|
12841
|
+
function requireGeneratorFunction() {
|
|
12842
|
+
if (hasRequiredGeneratorFunction) return generatorFunction;
|
|
12843
|
+
hasRequiredGeneratorFunction = 1;
|
|
12844
|
+
const cached = (
|
|
12845
|
+
/** @type {GeneratorFunctionConstructor} */
|
|
12846
|
+
function* () {
|
|
12847
|
+
}.constructor
|
|
12848
|
+
);
|
|
12849
|
+
generatorFunction = () => cached;
|
|
12850
|
+
return generatorFunction;
|
|
12851
|
+
}
|
|
12839
12852
|
var isGeneratorFunction;
|
|
12840
12853
|
var hasRequiredIsGeneratorFunction;
|
|
12841
12854
|
function requireIsGeneratorFunction() {
|
|
@@ -12848,16 +12861,7 @@
|
|
|
12848
12861
|
var getProto2 = requireGetProto();
|
|
12849
12862
|
var toStr = callBound2("Object.prototype.toString");
|
|
12850
12863
|
var fnToStr = callBound2("Function.prototype.toString");
|
|
12851
|
-
var
|
|
12852
|
-
if (!hasToStringTag) {
|
|
12853
|
-
return false;
|
|
12854
|
-
}
|
|
12855
|
-
try {
|
|
12856
|
-
return Function("return function*() {}")();
|
|
12857
|
-
} catch (e) {
|
|
12858
|
-
}
|
|
12859
|
-
};
|
|
12860
|
-
var GeneratorFunction;
|
|
12864
|
+
var getGeneratorFunction = /* @__PURE__ */ requireGeneratorFunction();
|
|
12861
12865
|
isGeneratorFunction = function isGeneratorFunction2(fn) {
|
|
12862
12866
|
if (typeof fn !== "function") {
|
|
12863
12867
|
return false;
|
|
@@ -12872,14 +12876,8 @@
|
|
|
12872
12876
|
if (!getProto2) {
|
|
12873
12877
|
return false;
|
|
12874
12878
|
}
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
GeneratorFunction = generatorFunc ? (
|
|
12878
|
-
/** @type {GeneratorFunctionConstructor} */
|
|
12879
|
-
getProto2(generatorFunc)
|
|
12880
|
-
) : false;
|
|
12881
|
-
}
|
|
12882
|
-
return getProto2(fn) === GeneratorFunction;
|
|
12879
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
12880
|
+
return GeneratorFunction && getProto2(fn) === GeneratorFunction.prototype;
|
|
12883
12881
|
};
|
|
12884
12882
|
return isGeneratorFunction;
|
|
12885
12883
|
}
|
|
@@ -19073,7 +19071,7 @@
|
|
|
19073
19071
|
return lib;
|
|
19074
19072
|
}
|
|
19075
19073
|
var libExports = requireLib();
|
|
19076
|
-
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
19074
|
+
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$2(libExports);
|
|
19077
19075
|
var getRandomValues$1;
|
|
19078
19076
|
var rnds8$1 = new Uint8Array(16);
|
|
19079
19077
|
function rng$1() {
|
|
@@ -19108,6 +19106,306 @@
|
|
|
19108
19106
|
rnds[8] = rnds[8] & 63 | 128;
|
|
19109
19107
|
return stringify$1(rnds);
|
|
19110
19108
|
}
|
|
19109
|
+
function getDefaultExportFromCjs$3(x) {
|
|
19110
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
19111
|
+
}
|
|
19112
|
+
const CRC_TABLE = new Int32Array([
|
|
19113
|
+
0,
|
|
19114
|
+
1996959894,
|
|
19115
|
+
3993919788,
|
|
19116
|
+
2567524794,
|
|
19117
|
+
124634137,
|
|
19118
|
+
1886057615,
|
|
19119
|
+
3915621685,
|
|
19120
|
+
2657392035,
|
|
19121
|
+
249268274,
|
|
19122
|
+
2044508324,
|
|
19123
|
+
3772115230,
|
|
19124
|
+
2547177864,
|
|
19125
|
+
162941995,
|
|
19126
|
+
2125561021,
|
|
19127
|
+
3887607047,
|
|
19128
|
+
2428444049,
|
|
19129
|
+
498536548,
|
|
19130
|
+
1789927666,
|
|
19131
|
+
4089016648,
|
|
19132
|
+
2227061214,
|
|
19133
|
+
450548861,
|
|
19134
|
+
1843258603,
|
|
19135
|
+
4107580753,
|
|
19136
|
+
2211677639,
|
|
19137
|
+
325883990,
|
|
19138
|
+
1684777152,
|
|
19139
|
+
4251122042,
|
|
19140
|
+
2321926636,
|
|
19141
|
+
335633487,
|
|
19142
|
+
1661365465,
|
|
19143
|
+
4195302755,
|
|
19144
|
+
2366115317,
|
|
19145
|
+
997073096,
|
|
19146
|
+
1281953886,
|
|
19147
|
+
3579855332,
|
|
19148
|
+
2724688242,
|
|
19149
|
+
1006888145,
|
|
19150
|
+
1258607687,
|
|
19151
|
+
3524101629,
|
|
19152
|
+
2768942443,
|
|
19153
|
+
901097722,
|
|
19154
|
+
1119000684,
|
|
19155
|
+
3686517206,
|
|
19156
|
+
2898065728,
|
|
19157
|
+
853044451,
|
|
19158
|
+
1172266101,
|
|
19159
|
+
3705015759,
|
|
19160
|
+
2882616665,
|
|
19161
|
+
651767980,
|
|
19162
|
+
1373503546,
|
|
19163
|
+
3369554304,
|
|
19164
|
+
3218104598,
|
|
19165
|
+
565507253,
|
|
19166
|
+
1454621731,
|
|
19167
|
+
3485111705,
|
|
19168
|
+
3099436303,
|
|
19169
|
+
671266974,
|
|
19170
|
+
1594198024,
|
|
19171
|
+
3322730930,
|
|
19172
|
+
2970347812,
|
|
19173
|
+
795835527,
|
|
19174
|
+
1483230225,
|
|
19175
|
+
3244367275,
|
|
19176
|
+
3060149565,
|
|
19177
|
+
1994146192,
|
|
19178
|
+
31158534,
|
|
19179
|
+
2563907772,
|
|
19180
|
+
4023717930,
|
|
19181
|
+
1907459465,
|
|
19182
|
+
112637215,
|
|
19183
|
+
2680153253,
|
|
19184
|
+
3904427059,
|
|
19185
|
+
2013776290,
|
|
19186
|
+
251722036,
|
|
19187
|
+
2517215374,
|
|
19188
|
+
3775830040,
|
|
19189
|
+
2137656763,
|
|
19190
|
+
141376813,
|
|
19191
|
+
2439277719,
|
|
19192
|
+
3865271297,
|
|
19193
|
+
1802195444,
|
|
19194
|
+
476864866,
|
|
19195
|
+
2238001368,
|
|
19196
|
+
4066508878,
|
|
19197
|
+
1812370925,
|
|
19198
|
+
453092731,
|
|
19199
|
+
2181625025,
|
|
19200
|
+
4111451223,
|
|
19201
|
+
1706088902,
|
|
19202
|
+
314042704,
|
|
19203
|
+
2344532202,
|
|
19204
|
+
4240017532,
|
|
19205
|
+
1658658271,
|
|
19206
|
+
366619977,
|
|
19207
|
+
2362670323,
|
|
19208
|
+
4224994405,
|
|
19209
|
+
1303535960,
|
|
19210
|
+
984961486,
|
|
19211
|
+
2747007092,
|
|
19212
|
+
3569037538,
|
|
19213
|
+
1256170817,
|
|
19214
|
+
1037604311,
|
|
19215
|
+
2765210733,
|
|
19216
|
+
3554079995,
|
|
19217
|
+
1131014506,
|
|
19218
|
+
879679996,
|
|
19219
|
+
2909243462,
|
|
19220
|
+
3663771856,
|
|
19221
|
+
1141124467,
|
|
19222
|
+
855842277,
|
|
19223
|
+
2852801631,
|
|
19224
|
+
3708648649,
|
|
19225
|
+
1342533948,
|
|
19226
|
+
654459306,
|
|
19227
|
+
3188396048,
|
|
19228
|
+
3373015174,
|
|
19229
|
+
1466479909,
|
|
19230
|
+
544179635,
|
|
19231
|
+
3110523913,
|
|
19232
|
+
3462522015,
|
|
19233
|
+
1591671054,
|
|
19234
|
+
702138776,
|
|
19235
|
+
2966460450,
|
|
19236
|
+
3352799412,
|
|
19237
|
+
1504918807,
|
|
19238
|
+
783551873,
|
|
19239
|
+
3082640443,
|
|
19240
|
+
3233442989,
|
|
19241
|
+
3988292384,
|
|
19242
|
+
2596254646,
|
|
19243
|
+
62317068,
|
|
19244
|
+
1957810842,
|
|
19245
|
+
3939845945,
|
|
19246
|
+
2647816111,
|
|
19247
|
+
81470997,
|
|
19248
|
+
1943803523,
|
|
19249
|
+
3814918930,
|
|
19250
|
+
2489596804,
|
|
19251
|
+
225274430,
|
|
19252
|
+
2053790376,
|
|
19253
|
+
3826175755,
|
|
19254
|
+
2466906013,
|
|
19255
|
+
167816743,
|
|
19256
|
+
2097651377,
|
|
19257
|
+
4027552580,
|
|
19258
|
+
2265490386,
|
|
19259
|
+
503444072,
|
|
19260
|
+
1762050814,
|
|
19261
|
+
4150417245,
|
|
19262
|
+
2154129355,
|
|
19263
|
+
426522225,
|
|
19264
|
+
1852507879,
|
|
19265
|
+
4275313526,
|
|
19266
|
+
2312317920,
|
|
19267
|
+
282753626,
|
|
19268
|
+
1742555852,
|
|
19269
|
+
4189708143,
|
|
19270
|
+
2394877945,
|
|
19271
|
+
397917763,
|
|
19272
|
+
1622183637,
|
|
19273
|
+
3604390888,
|
|
19274
|
+
2714866558,
|
|
19275
|
+
953729732,
|
|
19276
|
+
1340076626,
|
|
19277
|
+
3518719985,
|
|
19278
|
+
2797360999,
|
|
19279
|
+
1068828381,
|
|
19280
|
+
1219638859,
|
|
19281
|
+
3624741850,
|
|
19282
|
+
2936675148,
|
|
19283
|
+
906185462,
|
|
19284
|
+
1090812512,
|
|
19285
|
+
3747672003,
|
|
19286
|
+
2825379669,
|
|
19287
|
+
829329135,
|
|
19288
|
+
1181335161,
|
|
19289
|
+
3412177804,
|
|
19290
|
+
3160834842,
|
|
19291
|
+
628085408,
|
|
19292
|
+
1382605366,
|
|
19293
|
+
3423369109,
|
|
19294
|
+
3138078467,
|
|
19295
|
+
570562233,
|
|
19296
|
+
1426400815,
|
|
19297
|
+
3317316542,
|
|
19298
|
+
2998733608,
|
|
19299
|
+
733239954,
|
|
19300
|
+
1555261956,
|
|
19301
|
+
3268935591,
|
|
19302
|
+
3050360625,
|
|
19303
|
+
752459403,
|
|
19304
|
+
1541320221,
|
|
19305
|
+
2607071920,
|
|
19306
|
+
3965973030,
|
|
19307
|
+
1969922972,
|
|
19308
|
+
40735498,
|
|
19309
|
+
2617837225,
|
|
19310
|
+
3943577151,
|
|
19311
|
+
1913087877,
|
|
19312
|
+
83908371,
|
|
19313
|
+
2512341634,
|
|
19314
|
+
3803740692,
|
|
19315
|
+
2075208622,
|
|
19316
|
+
213261112,
|
|
19317
|
+
2463272603,
|
|
19318
|
+
3855990285,
|
|
19319
|
+
2094854071,
|
|
19320
|
+
198958881,
|
|
19321
|
+
2262029012,
|
|
19322
|
+
4057260610,
|
|
19323
|
+
1759359992,
|
|
19324
|
+
534414190,
|
|
19325
|
+
2176718541,
|
|
19326
|
+
4139329115,
|
|
19327
|
+
1873836001,
|
|
19328
|
+
414664567,
|
|
19329
|
+
2282248934,
|
|
19330
|
+
4279200368,
|
|
19331
|
+
1711684554,
|
|
19332
|
+
285281116,
|
|
19333
|
+
2405801727,
|
|
19334
|
+
4167216745,
|
|
19335
|
+
1634467795,
|
|
19336
|
+
376229701,
|
|
19337
|
+
2685067896,
|
|
19338
|
+
3608007406,
|
|
19339
|
+
1308918612,
|
|
19340
|
+
956543938,
|
|
19341
|
+
2808555105,
|
|
19342
|
+
3495958263,
|
|
19343
|
+
1231636301,
|
|
19344
|
+
1047427035,
|
|
19345
|
+
2932959818,
|
|
19346
|
+
3654703836,
|
|
19347
|
+
1088359270,
|
|
19348
|
+
936918e3,
|
|
19349
|
+
2847714899,
|
|
19350
|
+
3736837829,
|
|
19351
|
+
1202900863,
|
|
19352
|
+
817233897,
|
|
19353
|
+
3183342108,
|
|
19354
|
+
3401237130,
|
|
19355
|
+
1404277552,
|
|
19356
|
+
615818150,
|
|
19357
|
+
3134207493,
|
|
19358
|
+
3453421203,
|
|
19359
|
+
1423857449,
|
|
19360
|
+
601450431,
|
|
19361
|
+
3009837614,
|
|
19362
|
+
3294710456,
|
|
19363
|
+
1567103746,
|
|
19364
|
+
711928724,
|
|
19365
|
+
3020668471,
|
|
19366
|
+
3272380065,
|
|
19367
|
+
1510334235,
|
|
19368
|
+
755167117
|
|
19369
|
+
]);
|
|
19370
|
+
function ensureBuffer(input) {
|
|
19371
|
+
if (Buffer2.isBuffer(input)) {
|
|
19372
|
+
return input;
|
|
19373
|
+
}
|
|
19374
|
+
if (typeof input === "number") {
|
|
19375
|
+
return Buffer2.alloc(input);
|
|
19376
|
+
} else if (typeof input === "string") {
|
|
19377
|
+
return Buffer2.from(input);
|
|
19378
|
+
} else {
|
|
19379
|
+
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
19380
|
+
}
|
|
19381
|
+
}
|
|
19382
|
+
function bufferizeInt(num) {
|
|
19383
|
+
const tmp = ensureBuffer(4);
|
|
19384
|
+
tmp.writeInt32BE(num, 0);
|
|
19385
|
+
return tmp;
|
|
19386
|
+
}
|
|
19387
|
+
function _crc32(buf, previous) {
|
|
19388
|
+
buf = ensureBuffer(buf);
|
|
19389
|
+
if (Buffer2.isBuffer(previous)) {
|
|
19390
|
+
previous = previous.readUInt32BE(0);
|
|
19391
|
+
}
|
|
19392
|
+
let crc = ~~previous ^ -1;
|
|
19393
|
+
for (var n = 0; n < buf.length; n++) {
|
|
19394
|
+
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
19395
|
+
}
|
|
19396
|
+
return crc ^ -1;
|
|
19397
|
+
}
|
|
19398
|
+
function crc32() {
|
|
19399
|
+
return bufferizeInt(_crc32.apply(null, arguments));
|
|
19400
|
+
}
|
|
19401
|
+
crc32.signed = function() {
|
|
19402
|
+
return _crc32.apply(null, arguments);
|
|
19403
|
+
};
|
|
19404
|
+
crc32.unsigned = function() {
|
|
19405
|
+
return _crc32.apply(null, arguments) >>> 0;
|
|
19406
|
+
};
|
|
19407
|
+
var bufferCrc32 = crc32;
|
|
19408
|
+
const index$2 = /* @__PURE__ */ getDefaultExportFromCjs$3(bufferCrc32);
|
|
19111
19409
|
function callOrGet(value, context = null, ...props) {
|
|
19112
19410
|
if (typeof value === "function") {
|
|
19113
19411
|
if (context) return value.bind(context)(...props);
|
|
@@ -22789,18 +23087,6 @@
|
|
|
22789
23087
|
}
|
|
22790
23088
|
]
|
|
22791
23089
|
};
|
|
22792
|
-
const SETTINGS_CUSTOM_XML = {
|
|
22793
|
-
elements: [
|
|
22794
|
-
{
|
|
22795
|
-
type: "element",
|
|
22796
|
-
name: "w:settings",
|
|
22797
|
-
attributes: {
|
|
22798
|
-
"xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
22799
|
-
},
|
|
22800
|
-
elements: []
|
|
22801
|
-
}
|
|
22802
|
-
]
|
|
22803
|
-
};
|
|
22804
23090
|
const COMMENT_REF = {
|
|
22805
23091
|
type: "element",
|
|
22806
23092
|
name: "w:r",
|
|
@@ -23967,212 +24253,6 @@
|
|
|
23967
24253
|
return void 0;
|
|
23968
24254
|
}
|
|
23969
24255
|
};
|
|
23970
|
-
function translateCommentNode(params2, type2) {
|
|
23971
|
-
const { node, commentsExportType, exportedCommentDefs = [] } = params2;
|
|
23972
|
-
if (!exportedCommentDefs.length || commentsExportType === "clean") return;
|
|
23973
|
-
const nodeId = node.attrs["w:id"];
|
|
23974
|
-
const originalComment = params2.comments.find((comment) => {
|
|
23975
|
-
return comment.commentId == nodeId;
|
|
23976
|
-
});
|
|
23977
|
-
if (!originalComment) return;
|
|
23978
|
-
const commentIndex = params2.comments?.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
23979
|
-
const parentId = originalComment.parentCommentId;
|
|
23980
|
-
let parentComment;
|
|
23981
|
-
if (parentId) {
|
|
23982
|
-
parentComment = params2.comments.find((c2) => c2.commentId === parentId || c2.importedId === parentId);
|
|
23983
|
-
}
|
|
23984
|
-
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
23985
|
-
if (commentsExportType === "external" && isInternal) return;
|
|
23986
|
-
const isResolved = !!originalComment.resolvedTime;
|
|
23987
|
-
if (isResolved) return;
|
|
23988
|
-
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
23989
|
-
if (type2 === "End") {
|
|
23990
|
-
const commentReference = {
|
|
23991
|
-
name: "w:r",
|
|
23992
|
-
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
23993
|
-
};
|
|
23994
|
-
commentSchema = [commentSchema, commentReference];
|
|
23995
|
-
}
|
|
23996
|
-
return commentSchema;
|
|
23997
|
-
}
|
|
23998
|
-
const getCommentSchema = (type2, commentId) => {
|
|
23999
|
-
return {
|
|
24000
|
-
name: `w:commentRange${type2}`,
|
|
24001
|
-
attributes: {
|
|
24002
|
-
"w:id": String(commentId)
|
|
24003
|
-
}
|
|
24004
|
-
};
|
|
24005
|
-
};
|
|
24006
|
-
const prepareCommentParaIds = (comment) => {
|
|
24007
|
-
const newComment = {
|
|
24008
|
-
...comment,
|
|
24009
|
-
commentParaId: generateRandom32BitHex()
|
|
24010
|
-
};
|
|
24011
|
-
return newComment;
|
|
24012
|
-
};
|
|
24013
|
-
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
24014
|
-
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
24015
|
-
const attributes = {
|
|
24016
|
-
"w:id": String(commentId),
|
|
24017
|
-
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
24018
|
-
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
24019
|
-
"w:date": toIsoNoFractional(comment.createdTime),
|
|
24020
|
-
"w:initials": getInitials(comment.creatorName),
|
|
24021
|
-
"w:done": comment.resolvedTime ? "1" : "0",
|
|
24022
|
-
"w15:paraId": comment.commentParaId,
|
|
24023
|
-
"custom:internalId": comment.commentId || comment.internalId,
|
|
24024
|
-
"custom:trackedChange": comment.trackedChange,
|
|
24025
|
-
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
24026
|
-
"custom:trackedChangeType": comment.trackedChangeType,
|
|
24027
|
-
"custom:trackedDeletedText": comment.deletedText || null
|
|
24028
|
-
};
|
|
24029
|
-
if (comment?.parentCommentId) {
|
|
24030
|
-
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
24031
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
24032
|
-
}
|
|
24033
|
-
return {
|
|
24034
|
-
type: "element",
|
|
24035
|
-
name: "w:comment",
|
|
24036
|
-
attributes,
|
|
24037
|
-
elements: [translatedText]
|
|
24038
|
-
};
|
|
24039
|
-
};
|
|
24040
|
-
const getInitials = (name) => {
|
|
24041
|
-
if (!name) return null;
|
|
24042
|
-
const preparedText = name.replace("(imported)", "").trim();
|
|
24043
|
-
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
24044
|
-
return initials;
|
|
24045
|
-
};
|
|
24046
|
-
const toIsoNoFractional = (unixMillis) => {
|
|
24047
|
-
const date = new Date(unixMillis || Date.now());
|
|
24048
|
-
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
24049
|
-
};
|
|
24050
|
-
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
24051
|
-
const newCommentsXml = carbonCopy(commentsXml);
|
|
24052
|
-
commentDefs.forEach((commentDef) => {
|
|
24053
|
-
const elements = commentDef.elements[0].elements;
|
|
24054
|
-
elements.unshift(COMMENT_REF);
|
|
24055
|
-
const paraId = commentDef.attributes["w15:paraId"];
|
|
24056
|
-
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
24057
|
-
commentDef.attributes = {
|
|
24058
|
-
"w:id": commentDef.attributes["w:id"],
|
|
24059
|
-
"w:author": commentDef.attributes["w:author"],
|
|
24060
|
-
"w:email": commentDef.attributes["w:email"],
|
|
24061
|
-
"w:date": commentDef.attributes["w:date"],
|
|
24062
|
-
"w:initials": commentDef.attributes["w:initials"],
|
|
24063
|
-
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
24064
|
-
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
24065
|
-
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
24066
|
-
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
24067
|
-
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
24068
|
-
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
24069
|
-
};
|
|
24070
|
-
});
|
|
24071
|
-
newCommentsXml.elements[0].elements = commentDefs;
|
|
24072
|
-
return newCommentsXml;
|
|
24073
|
-
};
|
|
24074
|
-
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
24075
|
-
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
24076
|
-
const commentsEx = comments.map((comment) => {
|
|
24077
|
-
const attributes = {
|
|
24078
|
-
"w15:paraId": comment.commentParaId,
|
|
24079
|
-
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
24080
|
-
};
|
|
24081
|
-
const parentId = comment.parentCommentId;
|
|
24082
|
-
if (parentId) {
|
|
24083
|
-
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
24084
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
24085
|
-
}
|
|
24086
|
-
return {
|
|
24087
|
-
type: "element",
|
|
24088
|
-
name: "w15:commentEx",
|
|
24089
|
-
attributes
|
|
24090
|
-
};
|
|
24091
|
-
});
|
|
24092
|
-
xmlCopy.elements[0].elements = commentsEx;
|
|
24093
|
-
return xmlCopy;
|
|
24094
|
-
};
|
|
24095
|
-
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
24096
|
-
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
24097
|
-
const extensibleUpdated = carbonCopy(extensible);
|
|
24098
|
-
documentIdsUpdated.elements[0].elements = [];
|
|
24099
|
-
extensibleUpdated.elements[0].elements = [];
|
|
24100
|
-
comments.forEach((comment) => {
|
|
24101
|
-
const newDurableId = generateRandom32BitHex();
|
|
24102
|
-
const newCommentIdDef = {
|
|
24103
|
-
type: "element",
|
|
24104
|
-
name: "w16cid:commentId",
|
|
24105
|
-
attributes: {
|
|
24106
|
-
"w16cid:paraId": comment.commentParaId,
|
|
24107
|
-
"w16cid:durableId": newDurableId
|
|
24108
|
-
}
|
|
24109
|
-
};
|
|
24110
|
-
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
24111
|
-
const newExtensible = {
|
|
24112
|
-
type: "element",
|
|
24113
|
-
name: "w16cex:commentExtensible",
|
|
24114
|
-
attributes: {
|
|
24115
|
-
"w16cex:durableId": newDurableId,
|
|
24116
|
-
"w16cex:dateUtc": toIsoNoFractional()
|
|
24117
|
-
}
|
|
24118
|
-
};
|
|
24119
|
-
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
24120
|
-
});
|
|
24121
|
-
return {
|
|
24122
|
-
documentIdsUpdated,
|
|
24123
|
-
extensibleUpdated
|
|
24124
|
-
};
|
|
24125
|
-
};
|
|
24126
|
-
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
24127
|
-
const newXml = carbonCopy(convertedXml);
|
|
24128
|
-
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
24129
|
-
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
24130
|
-
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
24131
|
-
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
24132
|
-
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
24133
|
-
return newXml;
|
|
24134
|
-
};
|
|
24135
|
-
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
24136
|
-
const updatedXml = carbonCopy(convertedXml);
|
|
24137
|
-
delete updatedXml["word/comments.xml"];
|
|
24138
|
-
delete updatedXml["word/commentsExtended.xml"];
|
|
24139
|
-
delete updatedXml["word/commentsExtensible.xml"];
|
|
24140
|
-
delete updatedXml["word/commentsIds.xml"];
|
|
24141
|
-
return updatedXml;
|
|
24142
|
-
};
|
|
24143
|
-
const generateRelationship = (target) => {
|
|
24144
|
-
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
24145
|
-
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
24146
|
-
return { ...rel };
|
|
24147
|
-
};
|
|
24148
|
-
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
24149
|
-
const relationships = [];
|
|
24150
|
-
if (exportType === "clean") {
|
|
24151
|
-
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
24152
|
-
return { documentXml, relationships };
|
|
24153
|
-
}
|
|
24154
|
-
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
24155
|
-
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
24156
|
-
relationships.push(generateRelationship("comments.xml"));
|
|
24157
|
-
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
24158
|
-
commentsWithParaIds,
|
|
24159
|
-
updatedXml["word/commentsExtended.xml"]
|
|
24160
|
-
);
|
|
24161
|
-
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
24162
|
-
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
24163
|
-
commentsWithParaIds,
|
|
24164
|
-
updatedXml["word/commentsIds.xml"],
|
|
24165
|
-
updatedXml["word/commentsExtensible.xml"]
|
|
24166
|
-
);
|
|
24167
|
-
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
24168
|
-
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
24169
|
-
relationships.push(generateRelationship("commentsIds.xml"));
|
|
24170
|
-
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
24171
|
-
return {
|
|
24172
|
-
relationships,
|
|
24173
|
-
documentXml: updatedXml
|
|
24174
|
-
};
|
|
24175
|
-
};
|
|
24176
24256
|
const lower16 = 65535;
|
|
24177
24257
|
const factor16 = Math.pow(2, 16);
|
|
24178
24258
|
function makeRecover(index2, offset2) {
|
|
@@ -25137,15 +25217,15 @@
|
|
|
25137
25217
|
if (base2 < 0 || $pos.parent.type.spec.isolating || !$pos.parent.canReplace($pos.index(), $pos.parent.childCount) || !innerType.type.validContent($pos.parent.content.cutByIndex($pos.index(), $pos.parent.childCount)))
|
|
25138
25218
|
return false;
|
|
25139
25219
|
for (let d2 = $pos.depth - 1, i2 = depth - 2; d2 > base2; d2--, i2--) {
|
|
25140
|
-
let node = $pos.node(d2),
|
|
25220
|
+
let node = $pos.node(d2), index3 = $pos.index(d2);
|
|
25141
25221
|
if (node.type.spec.isolating)
|
|
25142
25222
|
return false;
|
|
25143
|
-
let rest = node.content.cutByIndex(
|
|
25223
|
+
let rest = node.content.cutByIndex(index3, node.childCount);
|
|
25144
25224
|
let overrideChild = typesAfter && typesAfter[i2 + 1];
|
|
25145
25225
|
if (overrideChild)
|
|
25146
25226
|
rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs));
|
|
25147
25227
|
let after = typesAfter && typesAfter[i2] || node;
|
|
25148
|
-
if (!node.canReplace(
|
|
25228
|
+
if (!node.canReplace(index3 + 1, node.childCount) || !after.type.validContent(rest))
|
|
25149
25229
|
return false;
|
|
25150
25230
|
}
|
|
25151
25231
|
let index2 = $pos.indexAfter(base2);
|
|
@@ -29139,6 +29219,16 @@
|
|
|
29139
29219
|
if (node.nodeType !== window.Node.ELEMENT_NODE) return;
|
|
29140
29220
|
[...node.attributes].forEach((attr) => {
|
|
29141
29221
|
const name = attr.name.toLowerCase();
|
|
29222
|
+
if (node.nodeName.toLowerCase() === "span") {
|
|
29223
|
+
node.innerHTML = node.innerHTML.replace(/(\S) (<\/span>)/g, "$1 $2");
|
|
29224
|
+
}
|
|
29225
|
+
if (name === "style") {
|
|
29226
|
+
const cleanedStyle = cleanStyle(attr.value);
|
|
29227
|
+
if (!cleanedStyle) {
|
|
29228
|
+
node.removeAttribute(attr.name);
|
|
29229
|
+
} else node.setAttribute(attr.name, cleanedStyle);
|
|
29230
|
+
return;
|
|
29231
|
+
}
|
|
29142
29232
|
const shouldKeep = SUPPORTED_ATTRS.includes(name) || name.startsWith("data-");
|
|
29143
29233
|
if (!shouldKeep) {
|
|
29144
29234
|
node.removeAttribute(attr.name);
|
|
@@ -29149,6 +29239,12 @@
|
|
|
29149
29239
|
cleanNode(doc2.body);
|
|
29150
29240
|
return doc2.body.innerHTML;
|
|
29151
29241
|
}
|
|
29242
|
+
function cleanStyle(style2) {
|
|
29243
|
+
if (!style2) return "";
|
|
29244
|
+
const declarations = style2.split(";").map((s) => s.trim()).filter(Boolean);
|
|
29245
|
+
const textAlign = declarations.find((d2) => d2.startsWith("text-align"));
|
|
29246
|
+
return textAlign ? `${textAlign};` : "";
|
|
29247
|
+
}
|
|
29152
29248
|
function createDocFromHTML(content, schema, options = {}) {
|
|
29153
29249
|
const { isImport = false } = options;
|
|
29154
29250
|
let parsedContent;
|
|
@@ -32109,33 +32205,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32109
32205
|
const encode$1b = (attributes) => {
|
|
32110
32206
|
return attributes["w:type"];
|
|
32111
32207
|
};
|
|
32112
|
-
const decode$
|
|
32208
|
+
const decode$13 = (attrs) => {
|
|
32113
32209
|
const { lineBreakType } = attrs;
|
|
32114
32210
|
return lineBreakType;
|
|
32115
32211
|
};
|
|
32116
|
-
const attrConfig$
|
|
32212
|
+
const attrConfig$G = Object.freeze({
|
|
32117
32213
|
xmlName: "w:type",
|
|
32118
32214
|
sdName: "lineBreakType",
|
|
32119
32215
|
encode: encode$1b,
|
|
32120
|
-
decode: decode$
|
|
32216
|
+
decode: decode$13
|
|
32121
32217
|
});
|
|
32122
32218
|
const encode$1a = (attributes) => {
|
|
32123
32219
|
const xmlAttrValue = attributes["w:clear"];
|
|
32124
32220
|
return xmlAttrValue;
|
|
32125
32221
|
};
|
|
32126
|
-
const decode$
|
|
32222
|
+
const decode$12 = (attrs) => {
|
|
32127
32223
|
const { clear } = attrs;
|
|
32128
32224
|
return clear;
|
|
32129
32225
|
};
|
|
32130
|
-
const attrConfig$
|
|
32226
|
+
const attrConfig$F = Object.freeze({
|
|
32131
32227
|
xmlName: "w:clear",
|
|
32132
32228
|
sdName: "clear",
|
|
32133
32229
|
encode: encode$1a,
|
|
32134
|
-
decode: decode$
|
|
32230
|
+
decode: decode$12
|
|
32135
32231
|
});
|
|
32136
|
-
const validXmlAttributes$m = [attrConfig$
|
|
32137
|
-
const XML_NODE_NAME$
|
|
32138
|
-
const SD_NODE_NAME$
|
|
32232
|
+
const validXmlAttributes$m = [attrConfig$G, attrConfig$F];
|
|
32233
|
+
const XML_NODE_NAME$y = "w:br";
|
|
32234
|
+
const SD_NODE_NAME$g = "lineBreak";
|
|
32139
32235
|
const encode$19 = (_2, encodedAttrs) => {
|
|
32140
32236
|
const isPageBreak = encodedAttrs?.lineBreakType === "page";
|
|
32141
32237
|
const translated = {
|
|
@@ -32146,7 +32242,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32146
32242
|
}
|
|
32147
32243
|
return translated;
|
|
32148
32244
|
};
|
|
32149
|
-
const decode
|
|
32245
|
+
const decode$11 = (params2, decodedAttrs) => {
|
|
32150
32246
|
const { node } = params2;
|
|
32151
32247
|
if (!node) return;
|
|
32152
32248
|
const wBreak = { name: "w:br" };
|
|
@@ -32164,24 +32260,24 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32164
32260
|
return translated;
|
|
32165
32261
|
};
|
|
32166
32262
|
const config$v = {
|
|
32167
|
-
xmlName: XML_NODE_NAME$
|
|
32168
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
32263
|
+
xmlName: XML_NODE_NAME$y,
|
|
32264
|
+
sdNodeOrKeyName: SD_NODE_NAME$g,
|
|
32169
32265
|
type: NodeTranslator.translatorTypes.NODE,
|
|
32170
32266
|
encode: encode$19,
|
|
32171
|
-
decode: decode
|
|
32267
|
+
decode: decode$11,
|
|
32172
32268
|
attributes: validXmlAttributes$m
|
|
32173
32269
|
};
|
|
32174
32270
|
const translator$19 = NodeTranslator.from(config$v);
|
|
32175
32271
|
const encode$18 = (attributes) => attributes?.["w:val"];
|
|
32176
|
-
const decode$
|
|
32177
|
-
const attrConfig$
|
|
32272
|
+
const decode$10 = (attrs) => attrs?.highlight;
|
|
32273
|
+
const attrConfig$E = Object.freeze({
|
|
32178
32274
|
xmlName: "w:val",
|
|
32179
32275
|
sdName: "highlight",
|
|
32180
32276
|
encode: encode$18,
|
|
32181
|
-
decode: decode$
|
|
32277
|
+
decode: decode$10
|
|
32182
32278
|
});
|
|
32183
|
-
const validXmlAttributes$l = [attrConfig$
|
|
32184
|
-
const XML_NODE_NAME$
|
|
32279
|
+
const validXmlAttributes$l = [attrConfig$E];
|
|
32280
|
+
const XML_NODE_NAME$x = "w:highlight";
|
|
32185
32281
|
const SD_ATTR_KEY$g = "highlight";
|
|
32186
32282
|
const DISABLED_TOKENS = /* @__PURE__ */ new Set(["transparent", "none", "inherit"]);
|
|
32187
32283
|
const encode$17 = (params2, encodedAttrs = {}) => {
|
|
@@ -32190,12 +32286,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32190
32286
|
const value = encodedAttrs.highlight ?? node?.attributes?.["w:val"];
|
|
32191
32287
|
return {
|
|
32192
32288
|
type: "attr",
|
|
32193
|
-
xmlName: XML_NODE_NAME$
|
|
32289
|
+
xmlName: XML_NODE_NAME$x,
|
|
32194
32290
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
32195
32291
|
attributes: { "w:val": value ?? null }
|
|
32196
32292
|
};
|
|
32197
32293
|
};
|
|
32198
|
-
const decode
|
|
32294
|
+
const decode$$ = (params2) => {
|
|
32199
32295
|
const attrs = params2?.node?.attrs || {};
|
|
32200
32296
|
const highlightValue = attrs.highlight ?? attrs.color ?? null;
|
|
32201
32297
|
if (!highlightValue) return void 0;
|
|
@@ -32203,14 +32299,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32203
32299
|
if (!normalizedValue) return void 0;
|
|
32204
32300
|
if (DISABLED_TOKENS.has(normalizedValue)) {
|
|
32205
32301
|
return {
|
|
32206
|
-
name: XML_NODE_NAME$
|
|
32302
|
+
name: XML_NODE_NAME$x,
|
|
32207
32303
|
attributes: { "w:val": "none" }
|
|
32208
32304
|
};
|
|
32209
32305
|
}
|
|
32210
32306
|
const keyword = getDocxHighlightKeywordFromHex(highlightValue);
|
|
32211
32307
|
if (keyword) {
|
|
32212
32308
|
return {
|
|
32213
|
-
name: XML_NODE_NAME$
|
|
32309
|
+
name: XML_NODE_NAME$x,
|
|
32214
32310
|
attributes: { "w:val": keyword }
|
|
32215
32311
|
};
|
|
32216
32312
|
}
|
|
@@ -32226,62 +32322,62 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32226
32322
|
};
|
|
32227
32323
|
};
|
|
32228
32324
|
const config$u = {
|
|
32229
|
-
xmlName: XML_NODE_NAME$
|
|
32325
|
+
xmlName: XML_NODE_NAME$x,
|
|
32230
32326
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
32231
32327
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
32232
32328
|
encode: encode$17,
|
|
32233
|
-
decode: decode
|
|
32329
|
+
decode: decode$$,
|
|
32234
32330
|
attributes: validXmlAttributes$l
|
|
32235
32331
|
};
|
|
32236
32332
|
const translator$18 = NodeTranslator.from(config$u);
|
|
32237
32333
|
const encode$16 = (attributes) => {
|
|
32238
32334
|
return attributes["w:val"];
|
|
32239
32335
|
};
|
|
32240
|
-
const decode$
|
|
32336
|
+
const decode$_ = (attrs) => {
|
|
32241
32337
|
const { tabSize } = attrs || {};
|
|
32242
32338
|
return tabSize;
|
|
32243
32339
|
};
|
|
32244
|
-
const attrConfig$
|
|
32340
|
+
const attrConfig$D = Object.freeze({
|
|
32245
32341
|
xmlName: "w:val",
|
|
32246
32342
|
sdName: "tabSize",
|
|
32247
32343
|
encode: encode$16,
|
|
32248
|
-
decode: decode$
|
|
32344
|
+
decode: decode$_
|
|
32249
32345
|
});
|
|
32250
32346
|
const encode$15 = (attributes) => {
|
|
32251
32347
|
return attributes["w:leader"];
|
|
32252
32348
|
};
|
|
32253
|
-
const decode$
|
|
32349
|
+
const decode$Z = (attrs) => {
|
|
32254
32350
|
const { leader } = attrs || {};
|
|
32255
32351
|
return leader;
|
|
32256
32352
|
};
|
|
32257
|
-
const attrConfig$
|
|
32353
|
+
const attrConfig$C = Object.freeze({
|
|
32258
32354
|
xmlName: "w:leader",
|
|
32259
32355
|
sdName: "leader",
|
|
32260
32356
|
encode: encode$15,
|
|
32261
|
-
decode: decode$
|
|
32357
|
+
decode: decode$Z
|
|
32262
32358
|
});
|
|
32263
32359
|
const encode$14 = (attributes) => {
|
|
32264
32360
|
return attributes["w:pos"];
|
|
32265
32361
|
};
|
|
32266
|
-
const decode$
|
|
32362
|
+
const decode$Y = (attrs) => {
|
|
32267
32363
|
const { pos } = attrs || {};
|
|
32268
32364
|
return pos;
|
|
32269
32365
|
};
|
|
32270
|
-
const attrConfig$
|
|
32366
|
+
const attrConfig$B = Object.freeze({
|
|
32271
32367
|
xmlName: "w:pos",
|
|
32272
32368
|
sdName: "pos",
|
|
32273
32369
|
encode: encode$14,
|
|
32274
|
-
decode: decode$
|
|
32370
|
+
decode: decode$Y
|
|
32275
32371
|
});
|
|
32276
|
-
const validXmlAttributes$k = [attrConfig$
|
|
32277
|
-
const XML_NODE_NAME$
|
|
32278
|
-
const SD_NODE_NAME$
|
|
32372
|
+
const validXmlAttributes$k = [attrConfig$D, attrConfig$B, attrConfig$C];
|
|
32373
|
+
const XML_NODE_NAME$w = "w:tab";
|
|
32374
|
+
const SD_NODE_NAME$f = "tab";
|
|
32279
32375
|
const encode$13 = (_2, encodedAttrs = {}) => {
|
|
32280
32376
|
const translated = { type: "tab" };
|
|
32281
32377
|
if (encodedAttrs) translated.attrs = { ...encodedAttrs };
|
|
32282
32378
|
return translated;
|
|
32283
32379
|
};
|
|
32284
|
-
const decode$
|
|
32380
|
+
const decode$X = (params2, decodedAttrs = {}) => {
|
|
32285
32381
|
const { node } = params2 || {};
|
|
32286
32382
|
if (!node) return;
|
|
32287
32383
|
const wTab = { name: "w:tab" };
|
|
@@ -32298,11 +32394,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32298
32394
|
return translated;
|
|
32299
32395
|
};
|
|
32300
32396
|
const config$t = {
|
|
32301
|
-
xmlName: XML_NODE_NAME$
|
|
32302
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
32397
|
+
xmlName: XML_NODE_NAME$w,
|
|
32398
|
+
sdNodeOrKeyName: SD_NODE_NAME$f,
|
|
32303
32399
|
type: NodeTranslator.translatorTypes.NODE,
|
|
32304
32400
|
encode: encode$13,
|
|
32305
|
-
decode: decode$
|
|
32401
|
+
decode: decode$X,
|
|
32306
32402
|
attributes: validXmlAttributes$k
|
|
32307
32403
|
};
|
|
32308
32404
|
const translator$17 = NodeTranslator.from(config$t);
|
|
@@ -32826,98 +32922,98 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32826
32922
|
const encode$12 = (attributes) => {
|
|
32827
32923
|
return attributes["w:rsidDel"];
|
|
32828
32924
|
};
|
|
32829
|
-
const decode$
|
|
32925
|
+
const decode$W = (attrs) => {
|
|
32830
32926
|
return attrs.rsidDel;
|
|
32831
32927
|
};
|
|
32832
|
-
const attrConfig$
|
|
32928
|
+
const attrConfig$A = Object.freeze({
|
|
32833
32929
|
xmlName: "w:rsidDel",
|
|
32834
32930
|
sdName: "rsidDel",
|
|
32835
32931
|
encode: encode$12,
|
|
32836
|
-
decode: decode$
|
|
32932
|
+
decode: decode$W
|
|
32837
32933
|
});
|
|
32838
32934
|
const encode$11 = (attributes) => {
|
|
32839
32935
|
return attributes["w:rsidP"];
|
|
32840
32936
|
};
|
|
32841
|
-
const decode$
|
|
32937
|
+
const decode$V = (attrs) => {
|
|
32842
32938
|
return attrs.rsidP;
|
|
32843
32939
|
};
|
|
32844
|
-
const attrConfig$
|
|
32940
|
+
const attrConfig$z = Object.freeze({
|
|
32845
32941
|
xmlName: "w:rsidP",
|
|
32846
32942
|
sdName: "rsidP",
|
|
32847
32943
|
encode: encode$11,
|
|
32848
|
-
decode: decode$
|
|
32944
|
+
decode: decode$V
|
|
32849
32945
|
});
|
|
32850
32946
|
const encode$10 = (attributes) => {
|
|
32851
32947
|
return attributes["w:rsidR"];
|
|
32852
32948
|
};
|
|
32853
|
-
const decode$
|
|
32949
|
+
const decode$U = (attrs) => {
|
|
32854
32950
|
return attrs.rsidR;
|
|
32855
32951
|
};
|
|
32856
|
-
const attrConfig$
|
|
32952
|
+
const attrConfig$y = Object.freeze({
|
|
32857
32953
|
xmlName: "w:rsidR",
|
|
32858
32954
|
sdName: "rsidR",
|
|
32859
32955
|
encode: encode$10,
|
|
32860
|
-
decode: decode$
|
|
32956
|
+
decode: decode$U
|
|
32861
32957
|
});
|
|
32862
32958
|
const encode$$ = (attributes) => {
|
|
32863
32959
|
return attributes["w:rsidRPr"];
|
|
32864
32960
|
};
|
|
32865
|
-
const decode$
|
|
32961
|
+
const decode$T = (attrs) => {
|
|
32866
32962
|
return attrs.rsidRPr;
|
|
32867
32963
|
};
|
|
32868
|
-
const attrConfig$
|
|
32964
|
+
const attrConfig$x = Object.freeze({
|
|
32869
32965
|
xmlName: "w:rsidRPr",
|
|
32870
32966
|
sdName: "rsidRPr",
|
|
32871
32967
|
encode: encode$$,
|
|
32872
|
-
decode: decode$
|
|
32968
|
+
decode: decode$T
|
|
32873
32969
|
});
|
|
32874
32970
|
const encode$_ = (attributes) => {
|
|
32875
32971
|
return attributes["w:rsidRDefault"];
|
|
32876
32972
|
};
|
|
32877
|
-
const decode$
|
|
32973
|
+
const decode$S = (attrs) => {
|
|
32878
32974
|
return attrs.rsidRDefault;
|
|
32879
32975
|
};
|
|
32880
|
-
const attrConfig$
|
|
32976
|
+
const attrConfig$w = Object.freeze({
|
|
32881
32977
|
xmlName: "w:rsidRDefault",
|
|
32882
32978
|
sdName: "rsidRDefault",
|
|
32883
32979
|
encode: encode$_,
|
|
32884
|
-
decode: decode$
|
|
32980
|
+
decode: decode$S
|
|
32885
32981
|
});
|
|
32886
32982
|
const encode$Z = (attributes) => {
|
|
32887
32983
|
return attributes["w14:paraId"];
|
|
32888
32984
|
};
|
|
32889
|
-
const decode$
|
|
32985
|
+
const decode$R = (attrs) => {
|
|
32890
32986
|
return attrs.paraId;
|
|
32891
32987
|
};
|
|
32892
|
-
const attrConfig$
|
|
32988
|
+
const attrConfig$v = Object.freeze({
|
|
32893
32989
|
xmlName: "w14:paraId",
|
|
32894
32990
|
sdName: "paraId",
|
|
32895
32991
|
encode: encode$Z,
|
|
32896
|
-
decode: decode$
|
|
32992
|
+
decode: decode$R
|
|
32897
32993
|
});
|
|
32898
32994
|
const encode$Y = (attributes) => {
|
|
32899
32995
|
return attributes["w14:textId"];
|
|
32900
32996
|
};
|
|
32901
|
-
const decode$
|
|
32997
|
+
const decode$Q = (attrs) => {
|
|
32902
32998
|
return attrs.textId;
|
|
32903
32999
|
};
|
|
32904
|
-
const attrConfig$
|
|
33000
|
+
const attrConfig$u = Object.freeze({
|
|
32905
33001
|
xmlName: "w14:textId",
|
|
32906
33002
|
sdName: "textId",
|
|
32907
33003
|
encode: encode$Y,
|
|
32908
|
-
decode: decode$
|
|
33004
|
+
decode: decode$Q
|
|
32909
33005
|
});
|
|
32910
33006
|
const validXmlAttributes$j = [
|
|
32911
|
-
attrConfig$u,
|
|
32912
|
-
attrConfig$t,
|
|
32913
|
-
attrConfig$x,
|
|
32914
33007
|
attrConfig$v,
|
|
33008
|
+
attrConfig$u,
|
|
32915
33009
|
attrConfig$y,
|
|
32916
33010
|
attrConfig$w,
|
|
32917
|
-
attrConfig$z
|
|
33011
|
+
attrConfig$z,
|
|
33012
|
+
attrConfig$x,
|
|
33013
|
+
attrConfig$A
|
|
32918
33014
|
];
|
|
32919
|
-
const XML_NODE_NAME$
|
|
32920
|
-
const SD_NODE_NAME$
|
|
33015
|
+
const XML_NODE_NAME$v = "w:p";
|
|
33016
|
+
const SD_NODE_NAME$e = "paragraph";
|
|
32921
33017
|
const encode$X = (params2, encodedAttrs = {}) => {
|
|
32922
33018
|
const node = handleParagraphNode$1(params2);
|
|
32923
33019
|
if (!node) return void 0;
|
|
@@ -32926,7 +33022,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32926
33022
|
}
|
|
32927
33023
|
return node;
|
|
32928
33024
|
};
|
|
32929
|
-
const decode$
|
|
33025
|
+
const decode$P = (params2, decodedAttrs = {}) => {
|
|
32930
33026
|
const translated = translateParagraphNode(params2);
|
|
32931
33027
|
if (!translated) return void 0;
|
|
32932
33028
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
@@ -32935,11 +33031,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32935
33031
|
return translated;
|
|
32936
33032
|
};
|
|
32937
33033
|
const config$s = {
|
|
32938
|
-
xmlName: XML_NODE_NAME$
|
|
32939
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
33034
|
+
xmlName: XML_NODE_NAME$v,
|
|
33035
|
+
sdNodeOrKeyName: SD_NODE_NAME$e,
|
|
32940
33036
|
type: NodeTranslator.translatorTypes.NODE,
|
|
32941
33037
|
encode: encode$X,
|
|
32942
|
-
decode: decode$
|
|
33038
|
+
decode: decode$P,
|
|
32943
33039
|
attributes: validXmlAttributes$j
|
|
32944
33040
|
};
|
|
32945
33041
|
const translator$16 = NodeTranslator.from(config$s);
|
|
@@ -32953,18 +33049,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32953
33049
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
32954
33050
|
return void 0;
|
|
32955
33051
|
};
|
|
32956
|
-
const decode$
|
|
33052
|
+
const decode$O = (runProps) => {
|
|
32957
33053
|
if (runProps?.bold === false) return "0";
|
|
32958
33054
|
return void 0;
|
|
32959
33055
|
};
|
|
32960
|
-
const attrConfig$
|
|
33056
|
+
const attrConfig$t = Object.freeze({
|
|
32961
33057
|
xmlName: "w:val",
|
|
32962
33058
|
sdName: "bold",
|
|
32963
33059
|
encode: encode$W,
|
|
32964
|
-
decode: decode$
|
|
33060
|
+
decode: decode$O
|
|
32965
33061
|
});
|
|
32966
|
-
const validXmlAttributes$i = [attrConfig$
|
|
32967
|
-
const XML_NODE_NAME$
|
|
33062
|
+
const validXmlAttributes$i = [attrConfig$t];
|
|
33063
|
+
const XML_NODE_NAME$u = "w:b";
|
|
32968
33064
|
const SD_ATTR_KEY$f = "bold";
|
|
32969
33065
|
const encode$V = (params2, encodedAttrs = {}) => {
|
|
32970
33066
|
const { nodes } = params2;
|
|
@@ -32978,20 +33074,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32978
33074
|
else attributes = node.attributes || {};
|
|
32979
33075
|
return {
|
|
32980
33076
|
type: "attr",
|
|
32981
|
-
xmlName: XML_NODE_NAME$
|
|
33077
|
+
xmlName: XML_NODE_NAME$u,
|
|
32982
33078
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
32983
33079
|
attributes
|
|
32984
33080
|
};
|
|
32985
33081
|
};
|
|
32986
33082
|
const config$r = {
|
|
32987
|
-
xmlName: XML_NODE_NAME$
|
|
33083
|
+
xmlName: XML_NODE_NAME$u,
|
|
32988
33084
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
32989
33085
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
32990
33086
|
encode: encode$V,
|
|
32991
33087
|
attributes: validXmlAttributes$i
|
|
32992
33088
|
};
|
|
32993
33089
|
const translator$15 = NodeTranslator.from(config$r);
|
|
32994
|
-
const XML_NODE_NAME$
|
|
33090
|
+
const XML_NODE_NAME$t = "w:i";
|
|
32995
33091
|
const SD_ATTR_KEY$e = "italic";
|
|
32996
33092
|
const encode$U = (params2) => {
|
|
32997
33093
|
const { nodes } = params2;
|
|
@@ -32999,7 +33095,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32999
33095
|
if (!node) return void 0;
|
|
33000
33096
|
return {
|
|
33001
33097
|
type: "attr",
|
|
33002
|
-
xmlName: XML_NODE_NAME$
|
|
33098
|
+
xmlName: XML_NODE_NAME$t,
|
|
33003
33099
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
33004
33100
|
attributes: {
|
|
33005
33101
|
"w:val": node.attributes?.["w:val"] ?? null
|
|
@@ -33007,54 +33103,54 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33007
33103
|
};
|
|
33008
33104
|
};
|
|
33009
33105
|
const config$q = {
|
|
33010
|
-
xmlName: XML_NODE_NAME$
|
|
33106
|
+
xmlName: XML_NODE_NAME$t,
|
|
33011
33107
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
33012
33108
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33013
33109
|
encode: encode$U
|
|
33014
33110
|
};
|
|
33015
33111
|
const translator$14 = NodeTranslator.from(config$q);
|
|
33016
33112
|
const encode$T = (attributes) => attributes?.["w:val"];
|
|
33017
|
-
const decode$
|
|
33018
|
-
const attrConfig$
|
|
33113
|
+
const decode$N = (attrs) => attrs?.underline;
|
|
33114
|
+
const attrConfig$s = Object.freeze({
|
|
33019
33115
|
xmlName: "w:val",
|
|
33020
33116
|
sdName: "underline",
|
|
33021
33117
|
encode: encode$T,
|
|
33022
|
-
decode: decode$
|
|
33118
|
+
decode: decode$N
|
|
33023
33119
|
});
|
|
33024
33120
|
const encode$S = (attributes) => attributes?.["w:color"];
|
|
33025
|
-
const decode$
|
|
33026
|
-
const attrConfig$
|
|
33121
|
+
const decode$M = (attrs) => attrs?.color;
|
|
33122
|
+
const attrConfig$r = Object.freeze({
|
|
33027
33123
|
xmlName: "w:color",
|
|
33028
33124
|
sdName: "color",
|
|
33029
33125
|
encode: encode$S,
|
|
33030
|
-
decode: decode$
|
|
33126
|
+
decode: decode$M
|
|
33031
33127
|
});
|
|
33032
33128
|
const encode$R = (attributes) => attributes?.["w:themeColor"];
|
|
33033
|
-
const decode$
|
|
33034
|
-
const attrConfig$
|
|
33129
|
+
const decode$L = (attrs) => attrs?.themeColor;
|
|
33130
|
+
const attrConfig$q = Object.freeze({
|
|
33035
33131
|
xmlName: "w:themeColor",
|
|
33036
33132
|
sdName: "themeColor",
|
|
33037
33133
|
encode: encode$R,
|
|
33038
|
-
decode: decode$
|
|
33134
|
+
decode: decode$L
|
|
33039
33135
|
});
|
|
33040
33136
|
const encode$Q = (attributes) => attributes?.["w:themeTint"];
|
|
33041
|
-
const decode$
|
|
33042
|
-
const attrConfig$
|
|
33137
|
+
const decode$K = (attrs) => attrs?.themeTint;
|
|
33138
|
+
const attrConfig$p = Object.freeze({
|
|
33043
33139
|
xmlName: "w:themeTint",
|
|
33044
33140
|
sdName: "themeTint",
|
|
33045
33141
|
encode: encode$Q,
|
|
33046
|
-
decode: decode$
|
|
33142
|
+
decode: decode$K
|
|
33047
33143
|
});
|
|
33048
33144
|
const encode$P = (attributes) => attributes?.["w:themeShade"];
|
|
33049
|
-
const decode$
|
|
33050
|
-
const attrConfig$
|
|
33145
|
+
const decode$J = (attrs) => attrs?.themeShade;
|
|
33146
|
+
const attrConfig$o = Object.freeze({
|
|
33051
33147
|
xmlName: "w:themeShade",
|
|
33052
33148
|
sdName: "themeShade",
|
|
33053
33149
|
encode: encode$P,
|
|
33054
|
-
decode: decode$
|
|
33150
|
+
decode: decode$J
|
|
33055
33151
|
});
|
|
33056
|
-
const validXmlAttributes$h = [attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o
|
|
33057
|
-
const XML_NODE_NAME$
|
|
33152
|
+
const validXmlAttributes$h = [attrConfig$s, attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o];
|
|
33153
|
+
const XML_NODE_NAME$s = "w:u";
|
|
33058
33154
|
const SD_ATTR_KEY$d = "underline";
|
|
33059
33155
|
const encode$O = (params2, encodedAttrs = {}) => {
|
|
33060
33156
|
const { nodes } = params2;
|
|
@@ -33072,12 +33168,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33072
33168
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
33073
33169
|
return {
|
|
33074
33170
|
type: "attr",
|
|
33075
|
-
xmlName: XML_NODE_NAME$
|
|
33171
|
+
xmlName: XML_NODE_NAME$s,
|
|
33076
33172
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
33077
33173
|
attributes
|
|
33078
33174
|
};
|
|
33079
33175
|
};
|
|
33080
|
-
const decode$
|
|
33176
|
+
const decode$I = (params2) => {
|
|
33081
33177
|
const attrs = params2?.node?.attrs || {};
|
|
33082
33178
|
const underlineType = attrs.underlineType ?? attrs.underline ?? null;
|
|
33083
33179
|
const color = attrs.underlineColor ?? attrs.color ?? null;
|
|
@@ -33095,16 +33191,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33095
33191
|
if (themeTint) attributes["w:themeTint"] = themeTint;
|
|
33096
33192
|
if (themeShade) attributes["w:themeShade"] = themeShade;
|
|
33097
33193
|
return {
|
|
33098
|
-
name: XML_NODE_NAME$
|
|
33194
|
+
name: XML_NODE_NAME$s,
|
|
33099
33195
|
attributes
|
|
33100
33196
|
};
|
|
33101
33197
|
};
|
|
33102
33198
|
const config$p = {
|
|
33103
|
-
xmlName: XML_NODE_NAME$
|
|
33199
|
+
xmlName: XML_NODE_NAME$s,
|
|
33104
33200
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
33105
33201
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33106
33202
|
encode: encode$O,
|
|
33107
|
-
decode: decode$
|
|
33203
|
+
decode: decode$I,
|
|
33108
33204
|
attributes: validXmlAttributes$h
|
|
33109
33205
|
};
|
|
33110
33206
|
const translator$13 = NodeTranslator.from(config$p);
|
|
@@ -33118,18 +33214,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33118
33214
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
33119
33215
|
return void 0;
|
|
33120
33216
|
};
|
|
33121
|
-
const decode$
|
|
33217
|
+
const decode$H = (attrs) => {
|
|
33122
33218
|
if (attrs?.strike === false) return "0";
|
|
33123
33219
|
return void 0;
|
|
33124
33220
|
};
|
|
33125
|
-
const attrConfig$
|
|
33221
|
+
const attrConfig$n = Object.freeze({
|
|
33126
33222
|
xmlName: "w:val",
|
|
33127
33223
|
sdName: "strike",
|
|
33128
33224
|
encode: encode$N,
|
|
33129
|
-
decode: decode$
|
|
33225
|
+
decode: decode$H
|
|
33130
33226
|
});
|
|
33131
|
-
const validXmlAttributes$g = [attrConfig$
|
|
33132
|
-
const XML_NODE_NAME$
|
|
33227
|
+
const validXmlAttributes$g = [attrConfig$n];
|
|
33228
|
+
const XML_NODE_NAME$r = "w:strike";
|
|
33133
33229
|
const SD_ATTR_KEY$c = "strike";
|
|
33134
33230
|
const encode$M = (params2, encodedAttrs = {}) => {
|
|
33135
33231
|
const { nodes } = params2;
|
|
@@ -33144,13 +33240,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33144
33240
|
else if (val === true && attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
33145
33241
|
return {
|
|
33146
33242
|
type: "attr",
|
|
33147
|
-
xmlName: XML_NODE_NAME$
|
|
33243
|
+
xmlName: XML_NODE_NAME$r,
|
|
33148
33244
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
33149
33245
|
attributes
|
|
33150
33246
|
};
|
|
33151
33247
|
};
|
|
33152
33248
|
const config$o = {
|
|
33153
|
-
xmlName: XML_NODE_NAME$
|
|
33249
|
+
xmlName: XML_NODE_NAME$r,
|
|
33154
33250
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
33155
33251
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33156
33252
|
encode: encode$M,
|
|
@@ -33158,39 +33254,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33158
33254
|
};
|
|
33159
33255
|
const translator$12 = NodeTranslator.from(config$o);
|
|
33160
33256
|
const encode$L = (attributes) => attributes?.["w:val"];
|
|
33161
|
-
const decode$
|
|
33162
|
-
const attrConfig$
|
|
33257
|
+
const decode$G = (attrs) => attrs?.color;
|
|
33258
|
+
const attrConfig$m = Object.freeze({
|
|
33163
33259
|
xmlName: "w:val",
|
|
33164
33260
|
sdName: "color",
|
|
33165
33261
|
encode: encode$L,
|
|
33166
|
-
decode: decode$
|
|
33262
|
+
decode: decode$G
|
|
33167
33263
|
});
|
|
33168
33264
|
const encode$K = (attributes) => attributes?.["w:themeColor"];
|
|
33169
|
-
const decode$
|
|
33170
|
-
const attrConfig$
|
|
33265
|
+
const decode$F = (attrs) => attrs?.themeColor;
|
|
33266
|
+
const attrConfig$l = Object.freeze({
|
|
33171
33267
|
xmlName: "w:themeColor",
|
|
33172
33268
|
sdName: "themeColor",
|
|
33173
33269
|
encode: encode$K,
|
|
33174
|
-
decode: decode$
|
|
33270
|
+
decode: decode$F
|
|
33175
33271
|
});
|
|
33176
33272
|
const encode$J = (attributes) => attributes?.["w:themeTint"];
|
|
33177
|
-
const decode$
|
|
33178
|
-
const attrConfig$
|
|
33273
|
+
const decode$E = (attrs) => attrs?.themeTint;
|
|
33274
|
+
const attrConfig$k = Object.freeze({
|
|
33179
33275
|
xmlName: "w:themeTint",
|
|
33180
33276
|
sdName: "themeTint",
|
|
33181
33277
|
encode: encode$J,
|
|
33182
|
-
decode: decode$
|
|
33278
|
+
decode: decode$E
|
|
33183
33279
|
});
|
|
33184
33280
|
const encode$I = (attributes) => attributes?.["w:themeShade"];
|
|
33185
|
-
const decode$
|
|
33186
|
-
const attrConfig$
|
|
33281
|
+
const decode$D = (attrs) => attrs?.themeShade;
|
|
33282
|
+
const attrConfig$j = Object.freeze({
|
|
33187
33283
|
xmlName: "w:themeShade",
|
|
33188
33284
|
sdName: "themeShade",
|
|
33189
33285
|
encode: encode$I,
|
|
33190
|
-
decode: decode$
|
|
33286
|
+
decode: decode$D
|
|
33191
33287
|
});
|
|
33192
|
-
const validXmlAttributes$f = [attrConfig$
|
|
33193
|
-
const XML_NODE_NAME$
|
|
33288
|
+
const validXmlAttributes$f = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j];
|
|
33289
|
+
const XML_NODE_NAME$q = "w:color";
|
|
33194
33290
|
const SD_ATTR_KEY$b = "color";
|
|
33195
33291
|
const encode$H = (params2, encodedAttrs = {}) => {
|
|
33196
33292
|
const { nodes } = params2;
|
|
@@ -33207,13 +33303,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33207
33303
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
33208
33304
|
return {
|
|
33209
33305
|
type: "attr",
|
|
33210
|
-
xmlName: XML_NODE_NAME$
|
|
33306
|
+
xmlName: XML_NODE_NAME$q,
|
|
33211
33307
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
33212
33308
|
attributes
|
|
33213
33309
|
};
|
|
33214
33310
|
};
|
|
33215
33311
|
const config$n = {
|
|
33216
|
-
xmlName: XML_NODE_NAME$
|
|
33312
|
+
xmlName: XML_NODE_NAME$q,
|
|
33217
33313
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
33218
33314
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33219
33315
|
encode: encode$H,
|
|
@@ -33221,47 +33317,47 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33221
33317
|
};
|
|
33222
33318
|
const translator$11 = NodeTranslator.from(config$n);
|
|
33223
33319
|
const encode$G = (attributes) => attributes?.["w:eastAsia"];
|
|
33224
|
-
const decode$
|
|
33225
|
-
const attrConfig$
|
|
33320
|
+
const decode$C = (attrs) => attrs?.eastAsia;
|
|
33321
|
+
const attrConfig$i = Object.freeze({
|
|
33226
33322
|
xmlName: "w:eastAsia",
|
|
33227
33323
|
sdName: "eastAsia",
|
|
33228
33324
|
encode: encode$G,
|
|
33229
|
-
decode: decode$
|
|
33325
|
+
decode: decode$C
|
|
33230
33326
|
});
|
|
33231
33327
|
const encode$F = (attributes) => attributes?.["w:ascii"];
|
|
33232
|
-
const decode$
|
|
33233
|
-
const attrConfig$
|
|
33328
|
+
const decode$B = (attrs) => attrs?.ascii;
|
|
33329
|
+
const attrConfig$h = Object.freeze({
|
|
33234
33330
|
xmlName: "w:ascii",
|
|
33235
33331
|
sdName: "ascii",
|
|
33236
33332
|
encode: encode$F,
|
|
33237
|
-
decode: decode$
|
|
33333
|
+
decode: decode$B
|
|
33238
33334
|
});
|
|
33239
33335
|
const encode$E = (attributes) => attributes?.["w:hAnsi"];
|
|
33240
|
-
const decode$
|
|
33241
|
-
const attrConfig$
|
|
33336
|
+
const decode$A = (attrs) => attrs?.hAnsi;
|
|
33337
|
+
const attrConfig$g = Object.freeze({
|
|
33242
33338
|
xmlName: "w:hAnsi",
|
|
33243
33339
|
sdName: "hAnsi",
|
|
33244
33340
|
encode: encode$E,
|
|
33245
|
-
decode: decode$
|
|
33341
|
+
decode: decode$A
|
|
33246
33342
|
});
|
|
33247
33343
|
const encode$D = (attributes) => attributes?.["w:cs"];
|
|
33248
|
-
const decode$
|
|
33249
|
-
const attrConfig$
|
|
33344
|
+
const decode$z = (attrs) => attrs?.cs;
|
|
33345
|
+
const attrConfig$f = Object.freeze({
|
|
33250
33346
|
xmlName: "w:cs",
|
|
33251
33347
|
sdName: "cs",
|
|
33252
33348
|
encode: encode$D,
|
|
33253
|
-
decode: decode$
|
|
33349
|
+
decode: decode$z
|
|
33254
33350
|
});
|
|
33255
33351
|
const encode$C = (attributes) => attributes?.["w:val"];
|
|
33256
|
-
const decode$
|
|
33257
|
-
const attrConfig$
|
|
33352
|
+
const decode$y = (attrs) => attrs?.value;
|
|
33353
|
+
const attrConfig$e = Object.freeze({
|
|
33258
33354
|
xmlName: "w:val",
|
|
33259
33355
|
sdName: "value",
|
|
33260
33356
|
encode: encode$C,
|
|
33261
|
-
decode: decode$
|
|
33357
|
+
decode: decode$y
|
|
33262
33358
|
});
|
|
33263
|
-
const validXmlAttributes$e = [attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e
|
|
33264
|
-
const XML_NODE_NAME$
|
|
33359
|
+
const validXmlAttributes$e = [attrConfig$i, attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e];
|
|
33360
|
+
const XML_NODE_NAME$p = "w:rFonts";
|
|
33265
33361
|
const SD_ATTR_KEY$a = "fontFamily";
|
|
33266
33362
|
const encode$B = (params2, encodedAttrs = {}) => {
|
|
33267
33363
|
const { nodes } = params2;
|
|
@@ -33289,13 +33385,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33289
33385
|
if (attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
33290
33386
|
return {
|
|
33291
33387
|
type: "attr",
|
|
33292
|
-
xmlName: XML_NODE_NAME$
|
|
33388
|
+
xmlName: XML_NODE_NAME$p,
|
|
33293
33389
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
33294
33390
|
attributes
|
|
33295
33391
|
};
|
|
33296
33392
|
};
|
|
33297
33393
|
const config$m = {
|
|
33298
|
-
xmlName: XML_NODE_NAME$
|
|
33394
|
+
xmlName: XML_NODE_NAME$p,
|
|
33299
33395
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
33300
33396
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33301
33397
|
encode: encode$B,
|
|
@@ -33303,15 +33399,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33303
33399
|
};
|
|
33304
33400
|
const translator$10 = NodeTranslator.from(config$m);
|
|
33305
33401
|
const encode$A = (attributes) => attributes?.["w:val"];
|
|
33306
|
-
const decode$
|
|
33307
|
-
const attrConfig$
|
|
33402
|
+
const decode$x = (attrs) => attrs?.styleId;
|
|
33403
|
+
const attrConfig$d = Object.freeze({
|
|
33308
33404
|
xmlName: "w:val",
|
|
33309
33405
|
sdName: "styleId",
|
|
33310
33406
|
encode: encode$A,
|
|
33311
|
-
decode: decode$
|
|
33407
|
+
decode: decode$x
|
|
33312
33408
|
});
|
|
33313
|
-
const validXmlAttributes$d = [attrConfig$
|
|
33314
|
-
const XML_NODE_NAME$
|
|
33409
|
+
const validXmlAttributes$d = [attrConfig$d];
|
|
33410
|
+
const XML_NODE_NAME$o = "w:rStyle";
|
|
33315
33411
|
const SD_ATTR_KEY$9 = "styleId";
|
|
33316
33412
|
const encode$z = (params2, encodedAttrs = {}) => {
|
|
33317
33413
|
const { nodes } = params2;
|
|
@@ -33319,13 +33415,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33319
33415
|
const value = encodedAttrs.styleId ?? node?.attributes?.["w:val"];
|
|
33320
33416
|
return {
|
|
33321
33417
|
type: "attr",
|
|
33322
|
-
xmlName: XML_NODE_NAME$
|
|
33418
|
+
xmlName: XML_NODE_NAME$o,
|
|
33323
33419
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
33324
33420
|
attributes: { "w:val": value ?? null }
|
|
33325
33421
|
};
|
|
33326
33422
|
};
|
|
33327
33423
|
const config$l = {
|
|
33328
|
-
xmlName: XML_NODE_NAME$
|
|
33424
|
+
xmlName: XML_NODE_NAME$o,
|
|
33329
33425
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
33330
33426
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33331
33427
|
encode: encode$z,
|
|
@@ -33333,15 +33429,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33333
33429
|
};
|
|
33334
33430
|
const translator$$ = NodeTranslator.from(config$l);
|
|
33335
33431
|
const encode$y = (attributes) => attributes?.["w:val"];
|
|
33336
|
-
const decode$
|
|
33337
|
-
const attrConfig$
|
|
33432
|
+
const decode$w = (attrs) => attrs?.fontSize;
|
|
33433
|
+
const attrConfig$c = Object.freeze({
|
|
33338
33434
|
xmlName: "w:val",
|
|
33339
33435
|
sdName: "fontSize",
|
|
33340
33436
|
encode: encode$y,
|
|
33341
|
-
decode: decode$
|
|
33437
|
+
decode: decode$w
|
|
33342
33438
|
});
|
|
33343
|
-
const validXmlAttributes$c = [attrConfig$
|
|
33344
|
-
const XML_NODE_NAME$
|
|
33439
|
+
const validXmlAttributes$c = [attrConfig$c];
|
|
33440
|
+
const XML_NODE_NAME$n = "w:sz";
|
|
33345
33441
|
const SD_ATTR_KEY$8 = "fontSize";
|
|
33346
33442
|
const encode$x = (params2, encodedAttrs = {}) => {
|
|
33347
33443
|
const { nodes } = params2;
|
|
@@ -33349,13 +33445,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33349
33445
|
const value = encodedAttrs.fontSize ?? node?.attributes?.["w:val"];
|
|
33350
33446
|
return {
|
|
33351
33447
|
type: "attr",
|
|
33352
|
-
xmlName: XML_NODE_NAME$
|
|
33448
|
+
xmlName: XML_NODE_NAME$n,
|
|
33353
33449
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
33354
33450
|
attributes: { "w:val": value ?? null }
|
|
33355
33451
|
};
|
|
33356
33452
|
};
|
|
33357
33453
|
const config$k = {
|
|
33358
|
-
xmlName: XML_NODE_NAME$
|
|
33454
|
+
xmlName: XML_NODE_NAME$n,
|
|
33359
33455
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
33360
33456
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33361
33457
|
encode: encode$x,
|
|
@@ -33363,15 +33459,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33363
33459
|
};
|
|
33364
33460
|
const translator$_ = NodeTranslator.from(config$k);
|
|
33365
33461
|
const encode$w = (attributes) => attributes?.["w:val"];
|
|
33366
|
-
const decode$
|
|
33367
|
-
const attrConfig$
|
|
33462
|
+
const decode$v = (attrs) => attrs?.fontSizeCs;
|
|
33463
|
+
const attrConfig$b = Object.freeze({
|
|
33368
33464
|
xmlName: "w:val",
|
|
33369
33465
|
sdName: "fontSizeCs",
|
|
33370
33466
|
encode: encode$w,
|
|
33371
|
-
decode: decode$
|
|
33467
|
+
decode: decode$v
|
|
33372
33468
|
});
|
|
33373
|
-
const validXmlAttributes$b = [attrConfig$
|
|
33374
|
-
const XML_NODE_NAME$
|
|
33469
|
+
const validXmlAttributes$b = [attrConfig$b];
|
|
33470
|
+
const XML_NODE_NAME$m = "w:szCs";
|
|
33375
33471
|
const SD_ATTR_KEY$7 = "fontSizeCs";
|
|
33376
33472
|
const encode$v = (params2, encodedAttrs = {}) => {
|
|
33377
33473
|
const { nodes } = params2;
|
|
@@ -33379,13 +33475,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33379
33475
|
const value = encodedAttrs.fontSizeCs ?? node?.attributes?.["w:val"];
|
|
33380
33476
|
return {
|
|
33381
33477
|
type: "attr",
|
|
33382
|
-
xmlName: XML_NODE_NAME$
|
|
33478
|
+
xmlName: XML_NODE_NAME$m,
|
|
33383
33479
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
33384
33480
|
attributes: { "w:val": value ?? null }
|
|
33385
33481
|
};
|
|
33386
33482
|
};
|
|
33387
33483
|
const config$j = {
|
|
33388
|
-
xmlName: XML_NODE_NAME$
|
|
33484
|
+
xmlName: XML_NODE_NAME$m,
|
|
33389
33485
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
33390
33486
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33391
33487
|
encode: encode$v,
|
|
@@ -33525,7 +33621,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33525
33621
|
const intValue = parseInteger(value);
|
|
33526
33622
|
return intValue != void 0 ? String(intValue) : void 0;
|
|
33527
33623
|
};
|
|
33528
|
-
const XML_NODE_NAME$
|
|
33624
|
+
const XML_NODE_NAME$l = "w:caps";
|
|
33529
33625
|
const SD_ATTR_KEY$6 = "textTransform";
|
|
33530
33626
|
const encode$u = (params2, encodedAttrs = {}) => {
|
|
33531
33627
|
const { nodes } = params2;
|
|
@@ -33539,13 +33635,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33539
33635
|
}
|
|
33540
33636
|
return {
|
|
33541
33637
|
type: "attr",
|
|
33542
|
-
xmlName: XML_NODE_NAME$
|
|
33638
|
+
xmlName: XML_NODE_NAME$l,
|
|
33543
33639
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
33544
33640
|
attributes: { [SD_ATTR_KEY$6]: result }
|
|
33545
33641
|
};
|
|
33546
33642
|
};
|
|
33547
33643
|
const config$i = {
|
|
33548
|
-
xmlName: XML_NODE_NAME$
|
|
33644
|
+
xmlName: XML_NODE_NAME$l,
|
|
33549
33645
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
33550
33646
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33551
33647
|
encode: encode$u,
|
|
@@ -33577,7 +33673,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33577
33673
|
attributes: { ...candidate.attributes || {} }
|
|
33578
33674
|
};
|
|
33579
33675
|
};
|
|
33580
|
-
const XML_NODE_NAME$
|
|
33676
|
+
const XML_NODE_NAME$k = "w:rPr";
|
|
33581
33677
|
const SD_ATTR_KEY$5 = "runProperties";
|
|
33582
33678
|
const encode$t = (params2) => {
|
|
33583
33679
|
const { nodes } = params2;
|
|
@@ -33614,7 +33710,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33614
33710
|
};
|
|
33615
33711
|
};
|
|
33616
33712
|
const config$h = {
|
|
33617
|
-
xmlName: XML_NODE_NAME$
|
|
33713
|
+
xmlName: XML_NODE_NAME$k,
|
|
33618
33714
|
sdNodeOrKeyName: SD_ATTR_KEY$5,
|
|
33619
33715
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33620
33716
|
encode: encode$t
|
|
@@ -34095,8 +34191,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34095
34191
|
}
|
|
34096
34192
|
return runs;
|
|
34097
34193
|
};
|
|
34098
|
-
const XML_NODE_NAME$
|
|
34099
|
-
const SD_NODE_NAME$
|
|
34194
|
+
const XML_NODE_NAME$j = "w:hyperlink";
|
|
34195
|
+
const SD_NODE_NAME$d = "link";
|
|
34100
34196
|
const _createAttributeHandler = (xmlName, sdName) => ({
|
|
34101
34197
|
xmlName,
|
|
34102
34198
|
sdName,
|
|
@@ -34150,7 +34246,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34150
34246
|
}
|
|
34151
34247
|
return href;
|
|
34152
34248
|
};
|
|
34153
|
-
function decode$
|
|
34249
|
+
function decode$u(params2) {
|
|
34154
34250
|
const { hyperlinkGroup = [params2.node] } = params2.extraParams || {};
|
|
34155
34251
|
const node = hyperlinkGroup[0];
|
|
34156
34252
|
const linkMark = node.marks.find((m2) => m2.type === "link");
|
|
@@ -34207,52 +34303,52 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34207
34303
|
return rId;
|
|
34208
34304
|
}
|
|
34209
34305
|
const config$g = {
|
|
34210
|
-
xmlName: XML_NODE_NAME$
|
|
34211
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
34306
|
+
xmlName: XML_NODE_NAME$j,
|
|
34307
|
+
sdNodeOrKeyName: SD_NODE_NAME$d,
|
|
34212
34308
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34213
34309
|
encode: encode$s,
|
|
34214
|
-
decode: decode$
|
|
34310
|
+
decode: decode$u,
|
|
34215
34311
|
attributes: validXmlAttributes$a
|
|
34216
34312
|
};
|
|
34217
34313
|
const translator$W = NodeTranslator.from(config$g);
|
|
34218
34314
|
const encode$r = (attributes) => {
|
|
34219
34315
|
return attributes["w:rsidR"];
|
|
34220
34316
|
};
|
|
34221
|
-
const decode$
|
|
34317
|
+
const decode$t = (attrs) => {
|
|
34222
34318
|
return attrs.rsidR;
|
|
34223
34319
|
};
|
|
34224
|
-
const attrConfig$
|
|
34320
|
+
const attrConfig$a = Object.freeze({
|
|
34225
34321
|
xmlName: "w:rsidR",
|
|
34226
34322
|
sdName: "rsidR",
|
|
34227
34323
|
encode: encode$r,
|
|
34228
|
-
decode: decode$
|
|
34324
|
+
decode: decode$t
|
|
34229
34325
|
});
|
|
34230
34326
|
const encode$q = (attributes) => {
|
|
34231
34327
|
return attributes["w:rsidRPr"];
|
|
34232
34328
|
};
|
|
34233
|
-
const decode$
|
|
34329
|
+
const decode$s = (attrs) => {
|
|
34234
34330
|
return attrs.rsidRPr;
|
|
34235
34331
|
};
|
|
34236
|
-
const attrConfig$
|
|
34332
|
+
const attrConfig$9 = Object.freeze({
|
|
34237
34333
|
xmlName: "w:rsidRPr",
|
|
34238
34334
|
sdName: "rsidRPr",
|
|
34239
34335
|
encode: encode$q,
|
|
34240
|
-
decode: decode$
|
|
34336
|
+
decode: decode$s
|
|
34241
34337
|
});
|
|
34242
34338
|
const encode$p = (attributes) => {
|
|
34243
34339
|
return attributes["w:rsidDel"];
|
|
34244
34340
|
};
|
|
34245
|
-
const decode$
|
|
34341
|
+
const decode$r = (attrs) => {
|
|
34246
34342
|
return attrs.rsidDel;
|
|
34247
34343
|
};
|
|
34248
|
-
const attrConfig$
|
|
34344
|
+
const attrConfig$8 = Object.freeze({
|
|
34249
34345
|
xmlName: "w:rsidDel",
|
|
34250
34346
|
sdName: "rsidDel",
|
|
34251
34347
|
encode: encode$p,
|
|
34252
|
-
decode: decode$
|
|
34348
|
+
decode: decode$r
|
|
34253
34349
|
});
|
|
34254
|
-
const validXmlAttributes$9 = [attrConfig$
|
|
34255
|
-
const XML_NODE_NAME$
|
|
34350
|
+
const validXmlAttributes$9 = [attrConfig$a, attrConfig$9, attrConfig$8];
|
|
34351
|
+
const XML_NODE_NAME$i = "w:r";
|
|
34256
34352
|
const SD_KEY_NAME = "run";
|
|
34257
34353
|
const encode$o = (params2, encodedAttrs = {}) => {
|
|
34258
34354
|
const { nodes = [], nodeListHandler } = params2 || {};
|
|
@@ -34302,7 +34398,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34302
34398
|
}
|
|
34303
34399
|
return runNodeResult;
|
|
34304
34400
|
};
|
|
34305
|
-
const decode$
|
|
34401
|
+
const decode$q = (params2, decodedAttrs = {}) => {
|
|
34306
34402
|
const { node } = params2 || {};
|
|
34307
34403
|
if (!node) return void 0;
|
|
34308
34404
|
const isLinkNode = node.marks?.some((m2) => m2.type === "link");
|
|
@@ -34361,7 +34457,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34361
34457
|
runs.push(trackedClone);
|
|
34362
34458
|
return;
|
|
34363
34459
|
}
|
|
34364
|
-
const runWrapper = { name: XML_NODE_NAME$
|
|
34460
|
+
const runWrapper = { name: XML_NODE_NAME$i, elements: [] };
|
|
34365
34461
|
applyBaseRunProps(runWrapper);
|
|
34366
34462
|
if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
|
|
34367
34463
|
runWrapper.elements.push(cloneXmlNode(child));
|
|
@@ -34369,7 +34465,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34369
34465
|
});
|
|
34370
34466
|
const trackedRuns = ensureTrackedWrapper(runs, trackingMarksByType);
|
|
34371
34467
|
if (!trackedRuns.length) {
|
|
34372
|
-
const emptyRun = { name: XML_NODE_NAME$
|
|
34468
|
+
const emptyRun = { name: XML_NODE_NAME$i, elements: [] };
|
|
34373
34469
|
applyBaseRunProps(emptyRun);
|
|
34374
34470
|
trackedRuns.push(emptyRun);
|
|
34375
34471
|
}
|
|
@@ -34384,11 +34480,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34384
34480
|
return trackedRuns;
|
|
34385
34481
|
};
|
|
34386
34482
|
const config$f = {
|
|
34387
|
-
xmlName: XML_NODE_NAME$
|
|
34483
|
+
xmlName: XML_NODE_NAME$i,
|
|
34388
34484
|
sdNodeOrKeyName: SD_KEY_NAME,
|
|
34389
34485
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34390
34486
|
encode: encode$o,
|
|
34391
|
-
decode: decode$
|
|
34487
|
+
decode: decode$q,
|
|
34392
34488
|
attributes: validXmlAttributes$9
|
|
34393
34489
|
};
|
|
34394
34490
|
const translator$V = NodeTranslator.from(config$f);
|
|
@@ -34526,7 +34622,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34526
34622
|
});
|
|
34527
34623
|
const translator$K = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
|
|
34528
34624
|
const translator$J = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
|
|
34529
|
-
const XML_NODE_NAME$
|
|
34625
|
+
const XML_NODE_NAME$h = "w:trPr";
|
|
34530
34626
|
const SD_ATTR_KEY$4 = "tableRowProperties";
|
|
34531
34627
|
const encode$n = (params2) => {
|
|
34532
34628
|
const { nodes } = params2;
|
|
@@ -34542,12 +34638,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34542
34638
|
};
|
|
34543
34639
|
return {
|
|
34544
34640
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
34545
|
-
xmlName: XML_NODE_NAME$
|
|
34641
|
+
xmlName: XML_NODE_NAME$h,
|
|
34546
34642
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
34547
34643
|
attributes
|
|
34548
34644
|
};
|
|
34549
34645
|
};
|
|
34550
|
-
const decode$
|
|
34646
|
+
const decode$p = (params2) => {
|
|
34551
34647
|
const { tableRowProperties = {} } = params2.node.attrs || {};
|
|
34552
34648
|
const elements = decodeProperties(propertyTranslatorsBySdName$2, tableRowProperties);
|
|
34553
34649
|
const newNode = {
|
|
@@ -34581,15 +34677,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34581
34677
|
propertyTranslatorsBySdName$2[translator2.sdNodeOrKeyName] = translator2;
|
|
34582
34678
|
});
|
|
34583
34679
|
const config$e = {
|
|
34584
|
-
xmlName: XML_NODE_NAME$
|
|
34680
|
+
xmlName: XML_NODE_NAME$h,
|
|
34585
34681
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
34586
34682
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
34587
34683
|
encode: encode$n,
|
|
34588
|
-
decode: decode$
|
|
34684
|
+
decode: decode$p
|
|
34589
34685
|
};
|
|
34590
34686
|
const translator$I = NodeTranslator.from(config$e);
|
|
34591
|
-
const XML_NODE_NAME$
|
|
34592
|
-
const SD_NODE_NAME$
|
|
34687
|
+
const XML_NODE_NAME$g = "w:tr";
|
|
34688
|
+
const SD_NODE_NAME$c = "tableRow";
|
|
34593
34689
|
const validXmlAttributes$8 = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
|
|
34594
34690
|
(xmlName) => createAttributeHandler(xmlName)
|
|
34595
34691
|
);
|
|
@@ -34633,7 +34729,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34633
34729
|
};
|
|
34634
34730
|
return newNode;
|
|
34635
34731
|
};
|
|
34636
|
-
const decode$
|
|
34732
|
+
const decode$o = (params2, decodedAttrs) => {
|
|
34637
34733
|
const { node } = params2;
|
|
34638
34734
|
const elements = translateChildNodes(params2);
|
|
34639
34735
|
if (node.attrs?.tableRowProperties) {
|
|
@@ -34658,11 +34754,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34658
34754
|
};
|
|
34659
34755
|
};
|
|
34660
34756
|
const config$d = {
|
|
34661
|
-
xmlName: XML_NODE_NAME$
|
|
34662
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
34757
|
+
xmlName: XML_NODE_NAME$g,
|
|
34758
|
+
sdNodeOrKeyName: SD_NODE_NAME$c,
|
|
34663
34759
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34664
34760
|
encode: encode$m,
|
|
34665
|
-
decode: decode$
|
|
34761
|
+
decode: decode$o,
|
|
34666
34762
|
attributes: validXmlAttributes$8
|
|
34667
34763
|
};
|
|
34668
34764
|
const translator$H = NodeTranslator.from(config$d);
|
|
@@ -34745,7 +34841,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34745
34841
|
const translator$i = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
|
|
34746
34842
|
const translator$h = NodeTranslator.from(createBorderPropertyHandler("w:top"));
|
|
34747
34843
|
const translator$g = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
|
|
34748
|
-
const XML_NODE_NAME$
|
|
34844
|
+
const XML_NODE_NAME$f = "w:tblBorders";
|
|
34749
34845
|
const SD_ATTR_KEY$3 = "borders";
|
|
34750
34846
|
const encode$l = (params2) => {
|
|
34751
34847
|
const { nodes } = params2;
|
|
@@ -34753,7 +34849,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34753
34849
|
const attributes = encodeProperties(node, tblBordersTranslatorsByXmlName);
|
|
34754
34850
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
34755
34851
|
};
|
|
34756
|
-
const decode$
|
|
34852
|
+
const decode$n = (params2) => {
|
|
34757
34853
|
const { borders = {} } = params2.node.attrs || {};
|
|
34758
34854
|
const elements = decodeProperties(tblBordersTranslatorsBySdName, borders);
|
|
34759
34855
|
const newNode = {
|
|
@@ -34781,14 +34877,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34781
34877
|
tblBordersTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
34782
34878
|
});
|
|
34783
34879
|
const translator$f = NodeTranslator.from({
|
|
34784
|
-
xmlName: XML_NODE_NAME$
|
|
34880
|
+
xmlName: XML_NODE_NAME$f,
|
|
34785
34881
|
sdNodeOrKeyName: SD_ATTR_KEY$3,
|
|
34786
34882
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34787
34883
|
attributes: [],
|
|
34788
34884
|
encode: encode$l,
|
|
34789
|
-
decode: decode$
|
|
34885
|
+
decode: decode$n
|
|
34790
34886
|
});
|
|
34791
|
-
const XML_NODE_NAME$
|
|
34887
|
+
const XML_NODE_NAME$e = "w:tblCellMar";
|
|
34792
34888
|
const SD_ATTR_KEY$2 = "cellMargins";
|
|
34793
34889
|
const encode$k = (params2) => {
|
|
34794
34890
|
const { nodes } = params2;
|
|
@@ -34796,11 +34892,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34796
34892
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName$1);
|
|
34797
34893
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
34798
34894
|
};
|
|
34799
|
-
const decode$
|
|
34895
|
+
const decode$m = (params2) => {
|
|
34800
34896
|
const { cellMargins = {} } = params2.node.attrs || {};
|
|
34801
34897
|
const elements = decodeProperties(propertyTranslatorsBySdName$1, cellMargins);
|
|
34802
34898
|
const newNode = {
|
|
34803
|
-
name: XML_NODE_NAME$
|
|
34899
|
+
name: XML_NODE_NAME$e,
|
|
34804
34900
|
type: "element",
|
|
34805
34901
|
attributes: {},
|
|
34806
34902
|
elements
|
|
@@ -34822,26 +34918,26 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34822
34918
|
propertyTranslatorsBySdName$1[translator2.sdNodeOrKeyName] = translator2;
|
|
34823
34919
|
});
|
|
34824
34920
|
const translator$e = NodeTranslator.from({
|
|
34825
|
-
xmlName: XML_NODE_NAME$
|
|
34921
|
+
xmlName: XML_NODE_NAME$e,
|
|
34826
34922
|
sdNodeOrKeyName: SD_ATTR_KEY$2,
|
|
34827
34923
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34828
34924
|
attributes: [],
|
|
34829
34925
|
encode: encode$k,
|
|
34830
|
-
decode: decode$
|
|
34926
|
+
decode: decode$m
|
|
34831
34927
|
});
|
|
34832
|
-
const XML_NODE_NAME$
|
|
34928
|
+
const XML_NODE_NAME$d = "w:tblPr";
|
|
34833
34929
|
const SD_ATTR_KEY$1 = "tableProperties";
|
|
34834
34930
|
const encode$j = (params2) => {
|
|
34835
34931
|
const { nodes } = params2;
|
|
34836
34932
|
const node = nodes[0];
|
|
34837
34933
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName);
|
|
34838
34934
|
return {
|
|
34839
|
-
xmlName: XML_NODE_NAME$
|
|
34935
|
+
xmlName: XML_NODE_NAME$d,
|
|
34840
34936
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
34841
34937
|
attributes
|
|
34842
34938
|
};
|
|
34843
34939
|
};
|
|
34844
|
-
const decode$
|
|
34940
|
+
const decode$l = (params2) => {
|
|
34845
34941
|
const { tableProperties = {} } = params2.node.attrs || {};
|
|
34846
34942
|
const elements = decodeProperties(propertyTranslatorsBySdName, tableProperties);
|
|
34847
34943
|
const newNode = {
|
|
@@ -34878,10 +34974,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34878
34974
|
propertyTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
34879
34975
|
});
|
|
34880
34976
|
const config$c = {
|
|
34881
|
-
xmlName: XML_NODE_NAME$
|
|
34977
|
+
xmlName: XML_NODE_NAME$d,
|
|
34882
34978
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
34883
34979
|
encode: encode$j,
|
|
34884
|
-
decode: decode$
|
|
34980
|
+
decode: decode$l
|
|
34885
34981
|
};
|
|
34886
34982
|
const translator$d = NodeTranslator.from(config$c);
|
|
34887
34983
|
const translator$c = NodeTranslator.from(
|
|
@@ -34934,7 +35030,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34934
35030
|
}
|
|
34935
35031
|
return Math.max(fallbackWidthTwips, cellMinWidthTwips);
|
|
34936
35032
|
};
|
|
34937
|
-
const XML_NODE_NAME$
|
|
35033
|
+
const XML_NODE_NAME$c = "w:tblGrid";
|
|
34938
35034
|
const SD_ATTR_KEY = "grid";
|
|
34939
35035
|
const cellMinWidth = pixelsToTwips(10);
|
|
34940
35036
|
const encode$i = (params2) => {
|
|
@@ -34942,12 +35038,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34942
35038
|
const node = nodes[0];
|
|
34943
35039
|
const attributes = encodeProperties(node, { [translator$c.xmlName]: translator$c }, true);
|
|
34944
35040
|
return {
|
|
34945
|
-
xmlName: XML_NODE_NAME$
|
|
35041
|
+
xmlName: XML_NODE_NAME$c,
|
|
34946
35042
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
34947
35043
|
attributes
|
|
34948
35044
|
};
|
|
34949
35045
|
};
|
|
34950
|
-
const decode$
|
|
35046
|
+
const decode$k = (params2) => {
|
|
34951
35047
|
const { grid: rawGrid } = params2.node.attrs || {};
|
|
34952
35048
|
const grid = Array.isArray(rawGrid) ? rawGrid : [];
|
|
34953
35049
|
const { firstRow = {} } = params2.extraParams || {};
|
|
@@ -35004,17 +35100,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35004
35100
|
columnIndex++;
|
|
35005
35101
|
}
|
|
35006
35102
|
const newNode = {
|
|
35007
|
-
name: XML_NODE_NAME$
|
|
35103
|
+
name: XML_NODE_NAME$c,
|
|
35008
35104
|
attributes: {},
|
|
35009
35105
|
elements
|
|
35010
35106
|
};
|
|
35011
35107
|
return newNode;
|
|
35012
35108
|
};
|
|
35013
35109
|
const config$b = {
|
|
35014
|
-
xmlName: XML_NODE_NAME$
|
|
35110
|
+
xmlName: XML_NODE_NAME$c,
|
|
35015
35111
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
35016
35112
|
encode: encode$i,
|
|
35017
|
-
decode: decode$
|
|
35113
|
+
decode: decode$k
|
|
35018
35114
|
};
|
|
35019
35115
|
const translator$b = NodeTranslator.from(config$b);
|
|
35020
35116
|
const DEFAULT_PAGE_WIDTH_TWIPS = 12240;
|
|
@@ -35079,8 +35175,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35079
35175
|
columnWidths: Array(columnCount).fill(fallbackColumnWidthPx)
|
|
35080
35176
|
};
|
|
35081
35177
|
};
|
|
35082
|
-
const XML_NODE_NAME$
|
|
35083
|
-
const SD_NODE_NAME$
|
|
35178
|
+
const XML_NODE_NAME$b = "w:tbl";
|
|
35179
|
+
const SD_NODE_NAME$b = "table";
|
|
35084
35180
|
const encode$h = (params2, encodedAttrs) => {
|
|
35085
35181
|
const { nodes } = params2;
|
|
35086
35182
|
const node = nodes[0];
|
|
@@ -35169,7 +35265,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35169
35265
|
columnWidths
|
|
35170
35266
|
}
|
|
35171
35267
|
});
|
|
35172
|
-
if (result
|
|
35268
|
+
if (result) content.push(result);
|
|
35173
35269
|
});
|
|
35174
35270
|
return {
|
|
35175
35271
|
type: "table",
|
|
@@ -35177,7 +35273,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35177
35273
|
attrs: encodedAttrs
|
|
35178
35274
|
};
|
|
35179
35275
|
};
|
|
35180
|
-
const decode$
|
|
35276
|
+
const decode$j = (params2, decodedAttrs) => {
|
|
35181
35277
|
params2.node = preProcessVerticalMergeCells(params2.node, params2);
|
|
35182
35278
|
const { node } = params2;
|
|
35183
35279
|
const elements = translateChildNodes(params2);
|
|
@@ -35277,11 +35373,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35277
35373
|
return stylesToReturn;
|
|
35278
35374
|
}
|
|
35279
35375
|
const config$a = {
|
|
35280
|
-
xmlName: XML_NODE_NAME$
|
|
35281
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
35376
|
+
xmlName: XML_NODE_NAME$b,
|
|
35377
|
+
sdNodeOrKeyName: SD_NODE_NAME$b,
|
|
35282
35378
|
type: NodeTranslator.translatorTypes.NODE,
|
|
35283
35379
|
encode: encode$h,
|
|
35284
|
-
decode: decode$
|
|
35380
|
+
decode: decode$j,
|
|
35285
35381
|
attributes: []
|
|
35286
35382
|
};
|
|
35287
35383
|
const translator$a = NodeTranslator.from(config$a);
|
|
@@ -35647,8 +35743,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35647
35743
|
if (left2 != null) elements.push({ name: "w:left", attributes: { "w:w": pixelsToTwips(left2) } });
|
|
35648
35744
|
return elements;
|
|
35649
35745
|
}
|
|
35650
|
-
const XML_NODE_NAME$
|
|
35651
|
-
const SD_NODE_NAME$
|
|
35746
|
+
const XML_NODE_NAME$a = "w:tc";
|
|
35747
|
+
const SD_NODE_NAME$a = "tableCell";
|
|
35652
35748
|
const validXmlAttributes$7 = [];
|
|
35653
35749
|
function encode$g(params2, encodedAttrs) {
|
|
35654
35750
|
const {
|
|
@@ -35677,7 +35773,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35677
35773
|
}
|
|
35678
35774
|
return schemaNode;
|
|
35679
35775
|
}
|
|
35680
|
-
function decode$
|
|
35776
|
+
function decode$i(params2, decodedAttrs) {
|
|
35681
35777
|
const translated = translateTableCell(params2);
|
|
35682
35778
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
35683
35779
|
translated.attributes = { ...translated.attributes || {}, ...decodedAttrs };
|
|
@@ -35685,11 +35781,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35685
35781
|
return translated;
|
|
35686
35782
|
}
|
|
35687
35783
|
const config$9 = {
|
|
35688
|
-
xmlName: XML_NODE_NAME$
|
|
35689
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
35784
|
+
xmlName: XML_NODE_NAME$a,
|
|
35785
|
+
sdNodeOrKeyName: SD_NODE_NAME$a,
|
|
35690
35786
|
type: NodeTranslator.translatorTypes.NODE,
|
|
35691
35787
|
encode: encode$g,
|
|
35692
|
-
decode: decode$
|
|
35788
|
+
decode: decode$i,
|
|
35693
35789
|
attributes: validXmlAttributes$7
|
|
35694
35790
|
};
|
|
35695
35791
|
const translator$9 = NodeTranslator.from(config$9);
|
|
@@ -36511,8 +36607,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36511
36607
|
elements: [...anchorElements, ...elementsWithWrap]
|
|
36512
36608
|
};
|
|
36513
36609
|
}
|
|
36514
|
-
const XML_NODE_NAME$
|
|
36515
|
-
const SD_NODE_NAME$
|
|
36610
|
+
const XML_NODE_NAME$9 = "wp:anchor";
|
|
36611
|
+
const SD_NODE_NAME$9 = ["image"];
|
|
36516
36612
|
const validXmlAttributes$6 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
36517
36613
|
function encode$f(params2) {
|
|
36518
36614
|
const { node } = params2.extraParams;
|
|
@@ -36521,7 +36617,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36521
36617
|
}
|
|
36522
36618
|
return handleAnchorNode(params2);
|
|
36523
36619
|
}
|
|
36524
|
-
function decode$
|
|
36620
|
+
function decode$h(params2) {
|
|
36525
36621
|
const { node } = params2;
|
|
36526
36622
|
if (!node || !node.type) {
|
|
36527
36623
|
return null;
|
|
@@ -36529,11 +36625,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36529
36625
|
return translateAnchorNode(params2);
|
|
36530
36626
|
}
|
|
36531
36627
|
const config$8 = {
|
|
36532
|
-
xmlName: XML_NODE_NAME$
|
|
36533
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
36628
|
+
xmlName: XML_NODE_NAME$9,
|
|
36629
|
+
sdNodeOrKeyName: SD_NODE_NAME$9,
|
|
36534
36630
|
type: NodeTranslator.translatorTypes.NODE,
|
|
36535
36631
|
encode: encode$f,
|
|
36536
|
-
decode: decode$
|
|
36632
|
+
decode: decode$h,
|
|
36537
36633
|
attributes: validXmlAttributes$6
|
|
36538
36634
|
};
|
|
36539
36635
|
const translator$8 = NodeTranslator.from(config$8);
|
|
@@ -36552,8 +36648,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36552
36648
|
elements: nodeElements.elements
|
|
36553
36649
|
};
|
|
36554
36650
|
}
|
|
36555
|
-
const XML_NODE_NAME$
|
|
36556
|
-
const SD_NODE_NAME$
|
|
36651
|
+
const XML_NODE_NAME$8 = "wp:inline";
|
|
36652
|
+
const SD_NODE_NAME$8 = ["image"];
|
|
36557
36653
|
const validXmlAttributes$5 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
36558
36654
|
function encode$e(params2) {
|
|
36559
36655
|
const { node } = params2.extraParams;
|
|
@@ -36562,7 +36658,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36562
36658
|
}
|
|
36563
36659
|
return handleInlineNode(params2);
|
|
36564
36660
|
}
|
|
36565
|
-
function decode$
|
|
36661
|
+
function decode$g(params2) {
|
|
36566
36662
|
const { node } = params2;
|
|
36567
36663
|
if (!node || !node.type) {
|
|
36568
36664
|
return null;
|
|
@@ -36570,16 +36666,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36570
36666
|
return translateInlineNode(params2);
|
|
36571
36667
|
}
|
|
36572
36668
|
const config$7 = {
|
|
36573
|
-
xmlName: XML_NODE_NAME$
|
|
36574
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
36669
|
+
xmlName: XML_NODE_NAME$8,
|
|
36670
|
+
sdNodeOrKeyName: SD_NODE_NAME$8,
|
|
36575
36671
|
type: NodeTranslator.translatorTypes.NODE,
|
|
36576
36672
|
encode: encode$e,
|
|
36577
|
-
decode: decode$
|
|
36673
|
+
decode: decode$g,
|
|
36578
36674
|
attributes: validXmlAttributes$5
|
|
36579
36675
|
};
|
|
36580
36676
|
const translator$7 = NodeTranslator.from(config$7);
|
|
36581
|
-
const XML_NODE_NAME$
|
|
36582
|
-
const SD_NODE_NAME$
|
|
36677
|
+
const XML_NODE_NAME$7 = "w:drawing";
|
|
36678
|
+
const SD_NODE_NAME$7 = [];
|
|
36583
36679
|
const validXmlAttributes$4 = [];
|
|
36584
36680
|
function encode$d(params2) {
|
|
36585
36681
|
const nodes = params2.nodes;
|
|
@@ -36595,7 +36691,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36595
36691
|
return translator2.encode({ ...params2, extraParams: { node: child } }) || acc;
|
|
36596
36692
|
}, null);
|
|
36597
36693
|
}
|
|
36598
|
-
function decode$
|
|
36694
|
+
function decode$f(params2) {
|
|
36599
36695
|
const { node } = params2;
|
|
36600
36696
|
if (!node || !node.type) {
|
|
36601
36697
|
return null;
|
|
@@ -36611,11 +36707,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36611
36707
|
);
|
|
36612
36708
|
}
|
|
36613
36709
|
const config$6 = {
|
|
36614
|
-
xmlName: XML_NODE_NAME$
|
|
36615
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
36710
|
+
xmlName: XML_NODE_NAME$7,
|
|
36711
|
+
sdNodeOrKeyName: SD_NODE_NAME$7,
|
|
36616
36712
|
type: NodeTranslator.translatorTypes.NODE,
|
|
36617
36713
|
encode: encode$d,
|
|
36618
|
-
decode: decode$
|
|
36714
|
+
decode: decode$f,
|
|
36619
36715
|
attributes: validXmlAttributes$4
|
|
36620
36716
|
};
|
|
36621
36717
|
const translator$6 = NodeTranslator.from(config$6);
|
|
@@ -37080,7 +37176,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37080
37176
|
editor
|
|
37081
37177
|
});
|
|
37082
37178
|
}
|
|
37083
|
-
let level =
|
|
37179
|
+
let level = Number(listElem.getAttribute("data-level"));
|
|
37180
|
+
if (Number.isNaN(level)) {
|
|
37181
|
+
level = 0;
|
|
37182
|
+
}
|
|
37084
37183
|
let ancestor = listElem.parentElement;
|
|
37085
37184
|
while (ancestor && ancestor !== localDoc.body) {
|
|
37086
37185
|
if (ancestor.tagName && ancestor.tagName.toLowerCase() === "li") {
|
|
@@ -37100,6 +37199,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37100
37199
|
const newList = createSingleItemList({ li, tag, rootNumId, level, editor, NodeInterface });
|
|
37101
37200
|
newLists.push(newList);
|
|
37102
37201
|
nestedListsData.forEach((data) => {
|
|
37202
|
+
data.element.setAttribute("data-level", level + 1);
|
|
37103
37203
|
newLists.push(data.element);
|
|
37104
37204
|
});
|
|
37105
37205
|
});
|
|
@@ -37534,7 +37634,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37534
37634
|
const paragraphContent = doc2.firstChild.content;
|
|
37535
37635
|
const tr = state2.tr.replaceSelectionWith(paragraphContent, false);
|
|
37536
37636
|
dispatch(tr);
|
|
37537
|
-
} else if (isInParagraph) {
|
|
37637
|
+
} else if (isInParagraph && state2.doc.textContent) {
|
|
37538
37638
|
const allContent = [];
|
|
37539
37639
|
doc2.content.forEach((node, index2) => {
|
|
37540
37640
|
if (node.type.name === "paragraph") {
|
|
@@ -37868,7 +37968,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37868
37968
|
return he$2.exports;
|
|
37869
37969
|
}
|
|
37870
37970
|
var heExports = requireHe();
|
|
37871
|
-
const he = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
37971
|
+
const he = /* @__PURE__ */ getDefaultExportFromCjs$2(heExports);
|
|
37872
37972
|
function translateFieldAnnotation(params2) {
|
|
37873
37973
|
const { node, isFinalDoc, fieldsHighlightColor } = params2;
|
|
37874
37974
|
const { attrs = {} } = node;
|
|
@@ -38270,8 +38370,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38270
38370
|
};
|
|
38271
38371
|
return result;
|
|
38272
38372
|
}
|
|
38273
|
-
const XML_NODE_NAME$
|
|
38274
|
-
const SD_NODE_NAME$
|
|
38373
|
+
const XML_NODE_NAME$6 = "w:sdt";
|
|
38374
|
+
const SD_NODE_NAME$6 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
|
|
38275
38375
|
const validXmlAttributes$3 = [];
|
|
38276
38376
|
function encode$c(params2) {
|
|
38277
38377
|
const nodes = params2.nodes;
|
|
@@ -38283,7 +38383,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38283
38383
|
const result = handler2(params2);
|
|
38284
38384
|
return result;
|
|
38285
38385
|
}
|
|
38286
|
-
function decode$
|
|
38386
|
+
function decode$e(params2) {
|
|
38287
38387
|
const { node } = params2;
|
|
38288
38388
|
if (!node || !node.type) {
|
|
38289
38389
|
return null;
|
|
@@ -38302,84 +38402,84 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38302
38402
|
return result;
|
|
38303
38403
|
}
|
|
38304
38404
|
const config$5 = {
|
|
38305
|
-
xmlName: XML_NODE_NAME$
|
|
38306
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38405
|
+
xmlName: XML_NODE_NAME$6,
|
|
38406
|
+
sdNodeOrKeyName: SD_NODE_NAME$6,
|
|
38307
38407
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38308
38408
|
encode: encode$c,
|
|
38309
|
-
decode: decode$
|
|
38409
|
+
decode: decode$e,
|
|
38310
38410
|
attributes: validXmlAttributes$3
|
|
38311
38411
|
};
|
|
38312
38412
|
const translator$5 = NodeTranslator.from(config$5);
|
|
38313
38413
|
const encode$b = (attributes) => {
|
|
38314
38414
|
return attributes["w:id"];
|
|
38315
38415
|
};
|
|
38316
|
-
const decode$
|
|
38416
|
+
const decode$d = (attrs) => {
|
|
38317
38417
|
return attrs.id;
|
|
38318
38418
|
};
|
|
38319
|
-
const attrConfig$
|
|
38419
|
+
const attrConfig$7 = Object.freeze({
|
|
38320
38420
|
xmlName: "w:id",
|
|
38321
38421
|
sdName: "id",
|
|
38322
38422
|
encode: encode$b,
|
|
38323
|
-
decode: decode$
|
|
38423
|
+
decode: decode$d
|
|
38324
38424
|
});
|
|
38325
38425
|
const encode$a = (attributes) => {
|
|
38326
38426
|
return attributes["w:name"];
|
|
38327
38427
|
};
|
|
38328
|
-
const decode$
|
|
38428
|
+
const decode$c = (attrs) => {
|
|
38329
38429
|
return attrs.name;
|
|
38330
38430
|
};
|
|
38331
|
-
const attrConfig$
|
|
38431
|
+
const attrConfig$6 = Object.freeze({
|
|
38332
38432
|
xmlName: "w:name",
|
|
38333
38433
|
sdName: "name",
|
|
38334
38434
|
encode: encode$a,
|
|
38335
|
-
decode: decode$
|
|
38435
|
+
decode: decode$c
|
|
38336
38436
|
});
|
|
38337
38437
|
const encode$9 = (attributes) => {
|
|
38338
38438
|
return attributes["w:colFirst"];
|
|
38339
38439
|
};
|
|
38340
|
-
const decode$
|
|
38440
|
+
const decode$b = (attrs) => {
|
|
38341
38441
|
return attrs.colFirst;
|
|
38342
38442
|
};
|
|
38343
|
-
const attrConfig$
|
|
38443
|
+
const attrConfig$5 = Object.freeze({
|
|
38344
38444
|
xmlName: "w:colFirst",
|
|
38345
38445
|
sdName: "colFirst",
|
|
38346
38446
|
encode: encode$9,
|
|
38347
|
-
decode: decode$
|
|
38447
|
+
decode: decode$b
|
|
38348
38448
|
});
|
|
38349
38449
|
const encode$8 = (attributes) => {
|
|
38350
38450
|
return attributes["w:colLast"];
|
|
38351
38451
|
};
|
|
38352
|
-
const decode$
|
|
38452
|
+
const decode$a = (attrs) => {
|
|
38353
38453
|
return attrs.colLast;
|
|
38354
38454
|
};
|
|
38355
|
-
const attrConfig$
|
|
38455
|
+
const attrConfig$4 = Object.freeze({
|
|
38356
38456
|
xmlName: "w:colLast",
|
|
38357
38457
|
sdName: "colLast",
|
|
38358
38458
|
encode: encode$8,
|
|
38359
|
-
decode: decode$
|
|
38459
|
+
decode: decode$a
|
|
38360
38460
|
});
|
|
38361
38461
|
const encode$7 = (attributes) => {
|
|
38362
38462
|
return attributes["w:displacedByCustomXml"];
|
|
38363
38463
|
};
|
|
38364
|
-
const decode$
|
|
38464
|
+
const decode$9 = (attrs) => {
|
|
38365
38465
|
return attrs.displacedByCustomXml;
|
|
38366
38466
|
};
|
|
38367
|
-
const attrConfig$
|
|
38467
|
+
const attrConfig$3 = Object.freeze({
|
|
38368
38468
|
xmlName: "w:displacedByCustomXml",
|
|
38369
38469
|
sdName: "displacedByCustomXml",
|
|
38370
38470
|
encode: encode$7,
|
|
38371
|
-
decode: decode$
|
|
38471
|
+
decode: decode$9
|
|
38372
38472
|
});
|
|
38373
|
-
const validXmlAttributes$2 = [attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3
|
|
38374
|
-
const XML_NODE_NAME$
|
|
38375
|
-
const SD_NODE_NAME$
|
|
38473
|
+
const validXmlAttributes$2 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
|
|
38474
|
+
const XML_NODE_NAME$5 = "w:bookmarkStart";
|
|
38475
|
+
const SD_NODE_NAME$5 = "bookmarkStart";
|
|
38376
38476
|
const encode$6 = (params2, encodedAttrs = {}) => {
|
|
38377
38477
|
return {
|
|
38378
38478
|
type: "bookmarkStart",
|
|
38379
38479
|
attrs: encodedAttrs
|
|
38380
38480
|
};
|
|
38381
38481
|
};
|
|
38382
|
-
const decode$
|
|
38482
|
+
const decode$8 = (params2, decodedAttrs = {}) => {
|
|
38383
38483
|
const result = {
|
|
38384
38484
|
name: "w:bookmarkStart",
|
|
38385
38485
|
elements: []
|
|
@@ -38390,48 +38490,48 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38390
38490
|
return result;
|
|
38391
38491
|
};
|
|
38392
38492
|
const config$4 = {
|
|
38393
|
-
xmlName: XML_NODE_NAME$
|
|
38394
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38493
|
+
xmlName: XML_NODE_NAME$5,
|
|
38494
|
+
sdNodeOrKeyName: SD_NODE_NAME$5,
|
|
38395
38495
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38396
38496
|
encode: encode$6,
|
|
38397
|
-
decode: decode$
|
|
38497
|
+
decode: decode$8,
|
|
38398
38498
|
attributes: validXmlAttributes$2
|
|
38399
38499
|
};
|
|
38400
38500
|
const translator$4 = NodeTranslator.from(config$4);
|
|
38401
38501
|
const encode$5 = (attributes) => {
|
|
38402
38502
|
return attributes["w:id"];
|
|
38403
38503
|
};
|
|
38404
|
-
const decode$
|
|
38504
|
+
const decode$7 = (attrs) => {
|
|
38405
38505
|
return attrs.id;
|
|
38406
38506
|
};
|
|
38407
|
-
const attrConfig$
|
|
38507
|
+
const attrConfig$2 = Object.freeze({
|
|
38408
38508
|
xmlName: "w:id",
|
|
38409
38509
|
sdName: "id",
|
|
38410
38510
|
encode: encode$5,
|
|
38411
|
-
decode: decode$
|
|
38511
|
+
decode: decode$7
|
|
38412
38512
|
});
|
|
38413
38513
|
const encode$4 = (attributes) => {
|
|
38414
38514
|
return attributes["w:displacedByCustomXml"];
|
|
38415
38515
|
};
|
|
38416
|
-
const decode$
|
|
38516
|
+
const decode$6 = (attrs) => {
|
|
38417
38517
|
return attrs.displacedByCustomXml;
|
|
38418
38518
|
};
|
|
38419
|
-
const attrConfig = Object.freeze({
|
|
38519
|
+
const attrConfig$1 = Object.freeze({
|
|
38420
38520
|
xmlName: "w:displacedByCustomXml",
|
|
38421
38521
|
sdName: "displacedByCustomXml",
|
|
38422
38522
|
encode: encode$4,
|
|
38423
|
-
decode: decode$
|
|
38523
|
+
decode: decode$6
|
|
38424
38524
|
});
|
|
38425
|
-
const validXmlAttributes$1 = [attrConfig$
|
|
38426
|
-
const XML_NODE_NAME$
|
|
38427
|
-
const SD_NODE_NAME$
|
|
38525
|
+
const validXmlAttributes$1 = [attrConfig$2, attrConfig$1];
|
|
38526
|
+
const XML_NODE_NAME$4 = "w:bookmarkEnd";
|
|
38527
|
+
const SD_NODE_NAME$4 = "bookmarkEnd";
|
|
38428
38528
|
const encode$3 = (params2, encodedAttrs = {}) => {
|
|
38429
38529
|
return {
|
|
38430
38530
|
type: "bookmarkEnd",
|
|
38431
38531
|
attrs: encodedAttrs
|
|
38432
38532
|
};
|
|
38433
38533
|
};
|
|
38434
|
-
const decode$
|
|
38534
|
+
const decode$5 = (params2, decodedAttrs = {}) => {
|
|
38435
38535
|
const result = {
|
|
38436
38536
|
name: "w:bookmarkEnd",
|
|
38437
38537
|
elements: []
|
|
@@ -38442,16 +38542,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38442
38542
|
return result;
|
|
38443
38543
|
};
|
|
38444
38544
|
const config$3 = {
|
|
38445
|
-
xmlName: XML_NODE_NAME$
|
|
38446
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38545
|
+
xmlName: XML_NODE_NAME$4,
|
|
38546
|
+
sdNodeOrKeyName: SD_NODE_NAME$4,
|
|
38447
38547
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38448
38548
|
encode: encode$3,
|
|
38449
|
-
decode: decode$
|
|
38549
|
+
decode: decode$5,
|
|
38450
38550
|
attributes: validXmlAttributes$1
|
|
38451
38551
|
};
|
|
38452
38552
|
const translator$3 = NodeTranslator.from(config$3);
|
|
38453
|
-
const XML_NODE_NAME$
|
|
38454
|
-
const SD_NODE_NAME$
|
|
38553
|
+
const XML_NODE_NAME$3 = "mc:AlternateContent";
|
|
38554
|
+
const SD_NODE_NAME$3 = [];
|
|
38455
38555
|
const validXmlAttributes = [];
|
|
38456
38556
|
function encode$2(params2) {
|
|
38457
38557
|
const { nodeListHandler } = params2;
|
|
@@ -38473,7 +38573,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38473
38573
|
path: [...params2.path || [], wpsNode]
|
|
38474
38574
|
});
|
|
38475
38575
|
}
|
|
38476
|
-
function decode$
|
|
38576
|
+
function decode$4(params2) {
|
|
38477
38577
|
const { node } = params2;
|
|
38478
38578
|
const { drawingContent } = node.attrs;
|
|
38479
38579
|
const drawing = {
|
|
@@ -38491,14 +38591,78 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38491
38591
|
};
|
|
38492
38592
|
}
|
|
38493
38593
|
const config$2 = {
|
|
38494
|
-
xmlName: XML_NODE_NAME$
|
|
38495
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38594
|
+
xmlName: XML_NODE_NAME$3,
|
|
38595
|
+
sdNodeOrKeyName: SD_NODE_NAME$3,
|
|
38496
38596
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38497
38597
|
encode: encode$2,
|
|
38498
|
-
decode: decode$
|
|
38598
|
+
decode: decode$4,
|
|
38499
38599
|
attributes: validXmlAttributes
|
|
38500
38600
|
};
|
|
38501
38601
|
const translator$2 = NodeTranslator.from(config$2);
|
|
38602
|
+
const decode$3 = (attrs) => attrs?.["w:id"];
|
|
38603
|
+
const attrConfig = Object.freeze({
|
|
38604
|
+
xmlName: "w:id",
|
|
38605
|
+
sdName: "w:id",
|
|
38606
|
+
// We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
|
|
38607
|
+
encode: () => {
|
|
38608
|
+
},
|
|
38609
|
+
decode: decode$3
|
|
38610
|
+
});
|
|
38611
|
+
const XML_NODE_NAME$2 = "w:commentRange";
|
|
38612
|
+
const SD_NODE_NAME$2 = "commentRange";
|
|
38613
|
+
const decode$2 = (params2, decodedAttrs) => {
|
|
38614
|
+
const { node, comments, commentsExportType, exportedCommentDefs } = params2;
|
|
38615
|
+
if (!node) return;
|
|
38616
|
+
if (!comments) return;
|
|
38617
|
+
if (exportedCommentDefs?.length === 0) return;
|
|
38618
|
+
if (commentsExportType === "clean") return;
|
|
38619
|
+
const commentNodeId = node.attrs["w:id"];
|
|
38620
|
+
const originalComment = comments.find((comment) => {
|
|
38621
|
+
return comment.commentId == commentNodeId;
|
|
38622
|
+
});
|
|
38623
|
+
if (!originalComment) return;
|
|
38624
|
+
const parentCommentId = originalComment.parentCommentId;
|
|
38625
|
+
const parentComment = comments.find(
|
|
38626
|
+
({ commentId, importedId }) => commentId === parentCommentId || importedId === parentCommentId
|
|
38627
|
+
);
|
|
38628
|
+
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
38629
|
+
if (commentsExportType === "external" && isInternal) return;
|
|
38630
|
+
const isResolved = !!originalComment.resolvedTime;
|
|
38631
|
+
if (isResolved) return;
|
|
38632
|
+
if (node.type !== "commentRangeStart" && node.type !== "commentRangeEnd") {
|
|
38633
|
+
return;
|
|
38634
|
+
}
|
|
38635
|
+
const { type: type2 } = node;
|
|
38636
|
+
const commentIndex = comments.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
38637
|
+
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
38638
|
+
if (type2 === "commentRangeEnd") {
|
|
38639
|
+
const commentReference = {
|
|
38640
|
+
name: "w:r",
|
|
38641
|
+
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
38642
|
+
};
|
|
38643
|
+
commentSchema = [commentSchema, commentReference];
|
|
38644
|
+
}
|
|
38645
|
+
return commentSchema;
|
|
38646
|
+
};
|
|
38647
|
+
const getCommentSchema = (type2, commentIndex) => {
|
|
38648
|
+
return {
|
|
38649
|
+
name: `w:${type2}`,
|
|
38650
|
+
attributes: {
|
|
38651
|
+
"w:id": String(commentIndex)
|
|
38652
|
+
}
|
|
38653
|
+
};
|
|
38654
|
+
};
|
|
38655
|
+
const getConfig = (type2) => ({
|
|
38656
|
+
xmlName: `${XML_NODE_NAME$2}${type2}`,
|
|
38657
|
+
sdNodeOrKeyName: `${SD_NODE_NAME$2}${type2}`,
|
|
38658
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
38659
|
+
encode: () => {
|
|
38660
|
+
},
|
|
38661
|
+
decode: decode$2,
|
|
38662
|
+
attributes: [attrConfig]
|
|
38663
|
+
});
|
|
38664
|
+
const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
|
|
38665
|
+
const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
|
|
38502
38666
|
const XML_NODE_NAME$1 = "sd:pageReference";
|
|
38503
38667
|
const SD_NODE_NAME$1 = "pageReference";
|
|
38504
38668
|
const encode$1 = (params2, _2) => {
|
|
@@ -38758,8 +38922,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38758
38922
|
tab: translator$17,
|
|
38759
38923
|
image: translator$6,
|
|
38760
38924
|
hardBreak: translator$19,
|
|
38761
|
-
commentRangeStart:
|
|
38762
|
-
commentRangeEnd:
|
|
38925
|
+
commentRangeStart: commentRangeStartTranslator,
|
|
38926
|
+
commentRangeEnd: commentRangeEndTranslator,
|
|
38763
38927
|
commentReference: () => null,
|
|
38764
38928
|
shapeContainer: translateShapeContainer,
|
|
38765
38929
|
shapeTextbox: translateShapeTextbox,
|
|
@@ -41006,7 +41170,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41006
41170
|
fileType: filePath.split(".").pop()
|
|
41007
41171
|
};
|
|
41008
41172
|
});
|
|
41009
|
-
converter.telemetry.trackFileStructure(
|
|
41173
|
+
const trackStructure = (documentIdentifier = null) => converter.telemetry.trackFileStructure(
|
|
41010
41174
|
{
|
|
41011
41175
|
totalFiles: files.length,
|
|
41012
41176
|
maxDepth: Math.max(...files.map((f) => f.fileDepth)),
|
|
@@ -41014,9 +41178,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41014
41178
|
files
|
|
41015
41179
|
},
|
|
41016
41180
|
converter.fileSource,
|
|
41017
|
-
converter.documentId,
|
|
41181
|
+
converter.documentGuid ?? converter.documentId ?? null,
|
|
41182
|
+
documentIdentifier ?? converter.documentId ?? null,
|
|
41018
41183
|
converter.documentInternalId
|
|
41019
41184
|
);
|
|
41185
|
+
try {
|
|
41186
|
+
const identifierResult = converter.getDocumentIdentifier?.();
|
|
41187
|
+
if (identifierResult && typeof identifierResult.then === "function") {
|
|
41188
|
+
identifierResult.then(trackStructure).catch(() => trackStructure());
|
|
41189
|
+
} else {
|
|
41190
|
+
trackStructure(identifierResult);
|
|
41191
|
+
}
|
|
41192
|
+
} catch (error) {
|
|
41193
|
+
trackStructure();
|
|
41194
|
+
}
|
|
41020
41195
|
}
|
|
41021
41196
|
const nodeListHandler = defaultNodeListHandler();
|
|
41022
41197
|
const bodyNode = json.elements[0].elements.find((el) => el.name === "w:body");
|
|
@@ -41492,6 +41667,176 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41492
41667
|
const evenOdd = elements.find((el) => el.name === "w:evenAndOddHeaders");
|
|
41493
41668
|
return !!evenOdd;
|
|
41494
41669
|
};
|
|
41670
|
+
const prepareCommentParaIds = (comment) => {
|
|
41671
|
+
const newComment = {
|
|
41672
|
+
...comment,
|
|
41673
|
+
commentParaId: generateRandom32BitHex()
|
|
41674
|
+
};
|
|
41675
|
+
return newComment;
|
|
41676
|
+
};
|
|
41677
|
+
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
41678
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
41679
|
+
const attributes = {
|
|
41680
|
+
"w:id": String(commentId),
|
|
41681
|
+
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
41682
|
+
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
41683
|
+
"w:date": toIsoNoFractional(comment.createdTime),
|
|
41684
|
+
"w:initials": getInitials(comment.creatorName),
|
|
41685
|
+
"w:done": comment.resolvedTime ? "1" : "0",
|
|
41686
|
+
"w15:paraId": comment.commentParaId,
|
|
41687
|
+
"custom:internalId": comment.commentId || comment.internalId,
|
|
41688
|
+
"custom:trackedChange": comment.trackedChange,
|
|
41689
|
+
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
41690
|
+
"custom:trackedChangeType": comment.trackedChangeType,
|
|
41691
|
+
"custom:trackedDeletedText": comment.deletedText || null
|
|
41692
|
+
};
|
|
41693
|
+
if (comment?.parentCommentId) {
|
|
41694
|
+
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
41695
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
41696
|
+
}
|
|
41697
|
+
return {
|
|
41698
|
+
type: "element",
|
|
41699
|
+
name: "w:comment",
|
|
41700
|
+
attributes,
|
|
41701
|
+
elements: [translatedText]
|
|
41702
|
+
};
|
|
41703
|
+
};
|
|
41704
|
+
const getInitials = (name) => {
|
|
41705
|
+
if (!name) return null;
|
|
41706
|
+
const preparedText = name.replace("(imported)", "").trim();
|
|
41707
|
+
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
41708
|
+
return initials;
|
|
41709
|
+
};
|
|
41710
|
+
const toIsoNoFractional = (unixMillis) => {
|
|
41711
|
+
const date = new Date(unixMillis || Date.now());
|
|
41712
|
+
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
41713
|
+
};
|
|
41714
|
+
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
41715
|
+
const newCommentsXml = carbonCopy(commentsXml);
|
|
41716
|
+
commentDefs.forEach((commentDef) => {
|
|
41717
|
+
const elements = commentDef.elements[0].elements;
|
|
41718
|
+
elements.unshift(COMMENT_REF);
|
|
41719
|
+
const paraId = commentDef.attributes["w15:paraId"];
|
|
41720
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
41721
|
+
commentDef.attributes = {
|
|
41722
|
+
"w:id": commentDef.attributes["w:id"],
|
|
41723
|
+
"w:author": commentDef.attributes["w:author"],
|
|
41724
|
+
"w:email": commentDef.attributes["w:email"],
|
|
41725
|
+
"w:date": commentDef.attributes["w:date"],
|
|
41726
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
41727
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
41728
|
+
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
41729
|
+
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
41730
|
+
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
41731
|
+
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
41732
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
41733
|
+
};
|
|
41734
|
+
});
|
|
41735
|
+
newCommentsXml.elements[0].elements = commentDefs;
|
|
41736
|
+
return newCommentsXml;
|
|
41737
|
+
};
|
|
41738
|
+
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
41739
|
+
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
41740
|
+
const commentsEx = comments.map((comment) => {
|
|
41741
|
+
const attributes = {
|
|
41742
|
+
"w15:paraId": comment.commentParaId,
|
|
41743
|
+
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
41744
|
+
};
|
|
41745
|
+
const parentId = comment.parentCommentId;
|
|
41746
|
+
if (parentId) {
|
|
41747
|
+
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
41748
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
41749
|
+
}
|
|
41750
|
+
return {
|
|
41751
|
+
type: "element",
|
|
41752
|
+
name: "w15:commentEx",
|
|
41753
|
+
attributes
|
|
41754
|
+
};
|
|
41755
|
+
});
|
|
41756
|
+
xmlCopy.elements[0].elements = commentsEx;
|
|
41757
|
+
return xmlCopy;
|
|
41758
|
+
};
|
|
41759
|
+
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
41760
|
+
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
41761
|
+
const extensibleUpdated = carbonCopy(extensible);
|
|
41762
|
+
documentIdsUpdated.elements[0].elements = [];
|
|
41763
|
+
extensibleUpdated.elements[0].elements = [];
|
|
41764
|
+
comments.forEach((comment) => {
|
|
41765
|
+
const newDurableId = generateRandom32BitHex();
|
|
41766
|
+
const newCommentIdDef = {
|
|
41767
|
+
type: "element",
|
|
41768
|
+
name: "w16cid:commentId",
|
|
41769
|
+
attributes: {
|
|
41770
|
+
"w16cid:paraId": comment.commentParaId,
|
|
41771
|
+
"w16cid:durableId": newDurableId
|
|
41772
|
+
}
|
|
41773
|
+
};
|
|
41774
|
+
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
41775
|
+
const newExtensible = {
|
|
41776
|
+
type: "element",
|
|
41777
|
+
name: "w16cex:commentExtensible",
|
|
41778
|
+
attributes: {
|
|
41779
|
+
"w16cex:durableId": newDurableId,
|
|
41780
|
+
"w16cex:dateUtc": toIsoNoFractional()
|
|
41781
|
+
}
|
|
41782
|
+
};
|
|
41783
|
+
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
41784
|
+
});
|
|
41785
|
+
return {
|
|
41786
|
+
documentIdsUpdated,
|
|
41787
|
+
extensibleUpdated
|
|
41788
|
+
};
|
|
41789
|
+
};
|
|
41790
|
+
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
41791
|
+
const newXml = carbonCopy(convertedXml);
|
|
41792
|
+
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
41793
|
+
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
41794
|
+
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
41795
|
+
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
41796
|
+
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
41797
|
+
return newXml;
|
|
41798
|
+
};
|
|
41799
|
+
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
41800
|
+
const updatedXml = carbonCopy(convertedXml);
|
|
41801
|
+
delete updatedXml["word/comments.xml"];
|
|
41802
|
+
delete updatedXml["word/commentsExtended.xml"];
|
|
41803
|
+
delete updatedXml["word/commentsExtensible.xml"];
|
|
41804
|
+
delete updatedXml["word/commentsIds.xml"];
|
|
41805
|
+
return updatedXml;
|
|
41806
|
+
};
|
|
41807
|
+
const generateRelationship = (target) => {
|
|
41808
|
+
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
41809
|
+
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
41810
|
+
return { ...rel };
|
|
41811
|
+
};
|
|
41812
|
+
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
41813
|
+
const relationships = [];
|
|
41814
|
+
if (exportType === "clean") {
|
|
41815
|
+
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
41816
|
+
return { documentXml, relationships };
|
|
41817
|
+
}
|
|
41818
|
+
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
41819
|
+
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
41820
|
+
relationships.push(generateRelationship("comments.xml"));
|
|
41821
|
+
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
41822
|
+
commentsWithParaIds,
|
|
41823
|
+
updatedXml["word/commentsExtended.xml"]
|
|
41824
|
+
);
|
|
41825
|
+
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
41826
|
+
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
41827
|
+
commentsWithParaIds,
|
|
41828
|
+
updatedXml["word/commentsIds.xml"],
|
|
41829
|
+
updatedXml["word/commentsExtensible.xml"]
|
|
41830
|
+
);
|
|
41831
|
+
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
41832
|
+
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
41833
|
+
relationships.push(generateRelationship("commentsIds.xml"));
|
|
41834
|
+
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
41835
|
+
return {
|
|
41836
|
+
relationships,
|
|
41837
|
+
documentXml: updatedXml
|
|
41838
|
+
};
|
|
41839
|
+
};
|
|
41495
41840
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
41496
41841
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
41497
41842
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
@@ -41567,6 +41912,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41567
41912
|
this.documentInternalId = null;
|
|
41568
41913
|
this.fileSource = params2?.fileSource || null;
|
|
41569
41914
|
this.documentId = params2?.documentId || null;
|
|
41915
|
+
this.documentGuid = null;
|
|
41916
|
+
this.documentHash = null;
|
|
41917
|
+
this.documentModified = false;
|
|
41570
41918
|
if (this.docx.length || this.xml) this.parseFromXml();
|
|
41571
41919
|
}
|
|
41572
41920
|
static getFontTableEntry(docx, fontName) {
|
|
@@ -41614,50 +41962,177 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41614
41962
|
this.initialJSON = this.convertedXml["word/document.xml"];
|
|
41615
41963
|
if (!this.initialJSON) this.initialJSON = this.parseXmlToJson(this.xml);
|
|
41616
41964
|
this.declaration = this.initialJSON?.declaration;
|
|
41965
|
+
this.resolveDocumentGuid();
|
|
41617
41966
|
}
|
|
41618
41967
|
parseXmlToJson(xml) {
|
|
41619
41968
|
const newXml = xml.replace(/(<w:t xml:space="preserve">)(\s+)(<\/w:t>)/g, "$1[[sdspace]]$2[[sdspace]]$3");
|
|
41620
41969
|
return JSON.parse(xmljs.xml2json(newXml, null, 2));
|
|
41621
41970
|
}
|
|
41622
|
-
|
|
41971
|
+
/**
|
|
41972
|
+
* Generic method to get a stored custom property from docx
|
|
41973
|
+
* @static
|
|
41974
|
+
* @param {Array} docx - Array of docx file objects
|
|
41975
|
+
* @param {string} propertyName - Name of the property to retrieve
|
|
41976
|
+
* @returns {string|null} The property value or null if not found
|
|
41977
|
+
*/
|
|
41978
|
+
static getStoredCustomProperty(docx, propertyName) {
|
|
41623
41979
|
try {
|
|
41624
41980
|
const customXml = docx.find((doc2) => doc2.name === "docProps/custom.xml");
|
|
41625
|
-
if (!customXml) return;
|
|
41981
|
+
if (!customXml) return null;
|
|
41626
41982
|
const converter = new _SuperConverter2();
|
|
41627
41983
|
const content = customXml.content;
|
|
41628
41984
|
const contentJson = converter.parseXmlToJson(content);
|
|
41629
41985
|
const properties = contentJson.elements.find((el) => el.name === "Properties");
|
|
41630
|
-
if (!properties.elements) return;
|
|
41631
|
-
const
|
|
41632
|
-
|
|
41633
|
-
|
|
41634
|
-
if (!superdocVersion) return;
|
|
41635
|
-
const version2 = superdocVersion.elements[0].elements[0].text;
|
|
41636
|
-
return version2;
|
|
41986
|
+
if (!properties.elements) return null;
|
|
41987
|
+
const property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
41988
|
+
if (!property2) return null;
|
|
41989
|
+
return property2.elements[0].elements[0].text;
|
|
41637
41990
|
} catch (e) {
|
|
41638
|
-
console.warn(
|
|
41639
|
-
return;
|
|
41991
|
+
console.warn(`Error getting custom property ${propertyName}:`, e);
|
|
41992
|
+
return null;
|
|
41640
41993
|
}
|
|
41641
41994
|
}
|
|
41642
|
-
|
|
41995
|
+
/**
|
|
41996
|
+
* Generic method to set a stored custom property in docx
|
|
41997
|
+
* @static
|
|
41998
|
+
* @param {Object} docx - The docx object to store the property in
|
|
41999
|
+
* @param {string} propertyName - Name of the property
|
|
42000
|
+
* @param {string|Function} value - Value or function that returns the value
|
|
42001
|
+
* @param {boolean} preserveExisting - If true, won't overwrite existing values
|
|
42002
|
+
* @returns {string} The stored value
|
|
42003
|
+
*/
|
|
42004
|
+
static setStoredCustomProperty(docx, propertyName, value, preserveExisting = false) {
|
|
41643
42005
|
const customLocation = "docProps/custom.xml";
|
|
41644
|
-
if (!docx[customLocation])
|
|
41645
|
-
|
|
41646
|
-
|
|
41647
|
-
|
|
41648
|
-
if (!customXml) return;
|
|
41649
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
42006
|
+
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
42007
|
+
const customXml = docx[customLocation];
|
|
42008
|
+
const properties = customXml.elements?.find((el) => el.name === "Properties");
|
|
42009
|
+
if (!properties) return null;
|
|
41650
42010
|
if (!properties.elements) properties.elements = [];
|
|
41651
|
-
|
|
41652
|
-
|
|
41653
|
-
|
|
41654
|
-
|
|
41655
|
-
|
|
41656
|
-
|
|
42011
|
+
let property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
42012
|
+
if (property2 && preserveExisting) {
|
|
42013
|
+
return property2.elements[0].elements[0].text;
|
|
42014
|
+
}
|
|
42015
|
+
const finalValue = typeof value === "function" ? value() : value;
|
|
42016
|
+
if (!property2) {
|
|
42017
|
+
const existingPids = properties.elements.filter((el) => el.attributes?.pid).map((el) => parseInt(el.attributes.pid, 10)).filter(Number.isInteger);
|
|
42018
|
+
const pid = existingPids.length > 0 ? Math.max(...existingPids) + 1 : 2;
|
|
42019
|
+
property2 = {
|
|
42020
|
+
type: "element",
|
|
42021
|
+
name: "property",
|
|
42022
|
+
attributes: {
|
|
42023
|
+
name: propertyName,
|
|
42024
|
+
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
42025
|
+
pid
|
|
42026
|
+
},
|
|
42027
|
+
elements: [
|
|
42028
|
+
{
|
|
42029
|
+
type: "element",
|
|
42030
|
+
name: "vt:lpwstr",
|
|
42031
|
+
elements: [
|
|
42032
|
+
{
|
|
42033
|
+
type: "text",
|
|
42034
|
+
text: finalValue
|
|
42035
|
+
}
|
|
42036
|
+
]
|
|
42037
|
+
}
|
|
42038
|
+
]
|
|
42039
|
+
};
|
|
42040
|
+
properties.elements.push(property2);
|
|
41657
42041
|
} else {
|
|
41658
|
-
|
|
42042
|
+
property2.elements[0].elements[0].text = finalValue;
|
|
41659
42043
|
}
|
|
41660
|
-
return
|
|
42044
|
+
return finalValue;
|
|
42045
|
+
}
|
|
42046
|
+
static getStoredSuperdocVersion(docx) {
|
|
42047
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
42048
|
+
}
|
|
42049
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.22.0") {
|
|
42050
|
+
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
42051
|
+
}
|
|
42052
|
+
/**
|
|
42053
|
+
* Get document GUID from docx files (static method)
|
|
42054
|
+
* @static
|
|
42055
|
+
* @param {Array} docx - Array of docx file objects
|
|
42056
|
+
* @returns {string|null} The document GUID
|
|
42057
|
+
*/
|
|
42058
|
+
static extractDocumentGuid(docx) {
|
|
42059
|
+
try {
|
|
42060
|
+
const settingsXml = docx.find((doc2) => doc2.name === "word/settings.xml");
|
|
42061
|
+
if (!settingsXml) return null;
|
|
42062
|
+
const converter = new _SuperConverter2();
|
|
42063
|
+
const settingsJson = converter.parseXmlToJson(settingsXml.content);
|
|
42064
|
+
const settings = settingsJson.elements?.[0];
|
|
42065
|
+
if (!settings) return null;
|
|
42066
|
+
const docIdElement = settings.elements?.find((el) => el.name === "w15:docId");
|
|
42067
|
+
if (docIdElement?.attributes?.["w15:val"]) {
|
|
42068
|
+
return docIdElement.attributes["w15:val"].replace(/[{}]/g, "");
|
|
42069
|
+
}
|
|
42070
|
+
} catch {
|
|
42071
|
+
}
|
|
42072
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "DocumentGuid");
|
|
42073
|
+
}
|
|
42074
|
+
/**
|
|
42075
|
+
* Get the permanent document GUID
|
|
42076
|
+
* @returns {string|null} The document GUID (only for modified documents)
|
|
42077
|
+
*/
|
|
42078
|
+
getDocumentGuid() {
|
|
42079
|
+
return this.documentGuid;
|
|
42080
|
+
}
|
|
42081
|
+
/**
|
|
42082
|
+
* Get the SuperDoc version for this converter instance
|
|
42083
|
+
* @returns {string|null} The SuperDoc version or null if not available
|
|
42084
|
+
*/
|
|
42085
|
+
getSuperdocVersion() {
|
|
42086
|
+
if (this.docx) {
|
|
42087
|
+
return _SuperConverter2.getStoredSuperdocVersion(this.docx);
|
|
42088
|
+
}
|
|
42089
|
+
return null;
|
|
42090
|
+
}
|
|
42091
|
+
/**
|
|
42092
|
+
* Resolve existing document GUID (synchronous)
|
|
42093
|
+
*/
|
|
42094
|
+
resolveDocumentGuid() {
|
|
42095
|
+
const microsoftGuid = this.getMicrosoftDocId();
|
|
42096
|
+
if (microsoftGuid) {
|
|
42097
|
+
this.documentGuid = microsoftGuid;
|
|
42098
|
+
return;
|
|
42099
|
+
}
|
|
42100
|
+
const customGuid = _SuperConverter2.getStoredCustomProperty(this.docx, "DocumentGuid");
|
|
42101
|
+
if (customGuid) {
|
|
42102
|
+
this.documentGuid = customGuid;
|
|
42103
|
+
}
|
|
42104
|
+
}
|
|
42105
|
+
/**
|
|
42106
|
+
* Get Microsoft's docId from settings.xml (READ ONLY)
|
|
42107
|
+
*/
|
|
42108
|
+
getMicrosoftDocId() {
|
|
42109
|
+
this.getDocumentInternalId();
|
|
42110
|
+
if (this.documentInternalId) {
|
|
42111
|
+
return this.documentInternalId.replace(/[{}]/g, "");
|
|
42112
|
+
}
|
|
42113
|
+
return null;
|
|
42114
|
+
}
|
|
42115
|
+
/**
|
|
42116
|
+
* Get document identifier (GUID or hash) - async for lazy hash generation
|
|
42117
|
+
*/
|
|
42118
|
+
async getDocumentIdentifier() {
|
|
42119
|
+
if (this.documentGuid) {
|
|
42120
|
+
return this.documentGuid;
|
|
42121
|
+
}
|
|
42122
|
+
if (!this.documentHash && this.fileSource) {
|
|
42123
|
+
this.documentHash = await __privateMethod$2(this, _SuperConverter_instances, generateDocumentHash_fn).call(this);
|
|
42124
|
+
}
|
|
42125
|
+
return this.documentHash;
|
|
42126
|
+
}
|
|
42127
|
+
/**
|
|
42128
|
+
* Promote from hash to GUID on first edit
|
|
42129
|
+
*/
|
|
42130
|
+
promoteToGuid() {
|
|
42131
|
+
if (this.documentGuid) return this.documentGuid;
|
|
42132
|
+
this.documentGuid = this.getMicrosoftDocId() || v4$1();
|
|
42133
|
+
this.documentModified = true;
|
|
42134
|
+
this.documentHash = null;
|
|
42135
|
+
return this.documentGuid;
|
|
41661
42136
|
}
|
|
41662
42137
|
getDocumentDefaultStyles() {
|
|
41663
42138
|
const styles = this.convertedXml["word/styles.xml"];
|
|
@@ -41746,20 +42221,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41746
42221
|
getDocumentInternalId() {
|
|
41747
42222
|
const settingsLocation = "word/settings.xml";
|
|
41748
42223
|
if (!this.convertedXml[settingsLocation]) {
|
|
41749
|
-
|
|
42224
|
+
return;
|
|
41750
42225
|
}
|
|
41751
|
-
const settings =
|
|
41752
|
-
if (!settings.elements[0]?.elements?.length) {
|
|
41753
|
-
const idElement = this.createDocumentIdElement(settings);
|
|
41754
|
-
settings.elements[0].elements = [idElement];
|
|
41755
|
-
if (!settings.elements[0].attributes["xmlns:w15"]) {
|
|
41756
|
-
settings.elements[0].attributes["xmlns:w15"] = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
41757
|
-
}
|
|
41758
|
-
this.convertedXml[settingsLocation] = settings;
|
|
42226
|
+
const settings = this.convertedXml[settingsLocation];
|
|
42227
|
+
if (!settings.elements?.[0]?.elements?.length) {
|
|
41759
42228
|
return;
|
|
41760
42229
|
}
|
|
41761
42230
|
const w15DocId = settings.elements[0].elements.find((el) => el.name === "w15:docId");
|
|
41762
|
-
this.documentInternalId = w15DocId?.attributes["w15:val"];
|
|
42231
|
+
this.documentInternalId = w15DocId?.attributes?.["w15:val"];
|
|
41763
42232
|
}
|
|
41764
42233
|
createDocumentIdElement() {
|
|
41765
42234
|
const docId = v4$1().toUpperCase();
|
|
@@ -41848,7 +42317,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41848
42317
|
this.convertedXml = { ...this.convertedXml, ...updatedXml };
|
|
41849
42318
|
const headFootRels = __privateMethod$2(this, _SuperConverter_instances, exportProcessHeadersFooters_fn).call(this, { isFinalDoc });
|
|
41850
42319
|
__privateMethod$2(this, _SuperConverter_instances, exportProcessNewRelationships_fn).call(this, [...params2.relationships, ...commentsRels, ...headFootRels]);
|
|
41851
|
-
|
|
42320
|
+
_SuperConverter2.setStoredSuperdocVersion(this.convertedXml);
|
|
42321
|
+
if (this.documentModified || this.documentGuid) {
|
|
42322
|
+
if (!this.documentGuid) {
|
|
42323
|
+
this.documentGuid = this.getMicrosoftDocId() || v4$1();
|
|
42324
|
+
}
|
|
42325
|
+
_SuperConverter2.setStoredCustomProperty(this.convertedXml, "DocumentGuid", this.documentGuid, true);
|
|
42326
|
+
}
|
|
41852
42327
|
__privateMethod$2(this, _SuperConverter_instances, exportNumberingFile_fn).call(this, params2);
|
|
41853
42328
|
return xml;
|
|
41854
42329
|
}
|
|
@@ -41883,8 +42358,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41883
42358
|
});
|
|
41884
42359
|
return { result, params: params2 };
|
|
41885
42360
|
}
|
|
42361
|
+
// Deprecated methods for backward compatibility
|
|
42362
|
+
static getStoredSuperdocId(docx) {
|
|
42363
|
+
console.warn("getStoredSuperdocId is deprecated, use getDocumentGuid instead");
|
|
42364
|
+
return _SuperConverter2.extractDocumentGuid(docx);
|
|
42365
|
+
}
|
|
42366
|
+
static updateDocumentVersion(docx, version2) {
|
|
42367
|
+
console.warn("updateDocumentVersion is deprecated, use setStoredSuperdocVersion instead");
|
|
42368
|
+
return _SuperConverter2.setStoredSuperdocVersion(docx, version2);
|
|
42369
|
+
}
|
|
41886
42370
|
};
|
|
41887
42371
|
_SuperConverter_instances = /* @__PURE__ */ new WeakSet();
|
|
42372
|
+
generateDocumentHash_fn = async function() {
|
|
42373
|
+
if (!this.fileSource) return `HASH-${Date.now()}`;
|
|
42374
|
+
try {
|
|
42375
|
+
let buffer2;
|
|
42376
|
+
if (Buffer2.isBuffer(this.fileSource)) {
|
|
42377
|
+
buffer2 = this.fileSource;
|
|
42378
|
+
} else if (this.fileSource instanceof ArrayBuffer) {
|
|
42379
|
+
buffer2 = Buffer2.from(this.fileSource);
|
|
42380
|
+
} else if (this.fileSource instanceof Blob || this.fileSource instanceof File) {
|
|
42381
|
+
const arrayBuffer = await this.fileSource.arrayBuffer();
|
|
42382
|
+
buffer2 = Buffer2.from(arrayBuffer);
|
|
42383
|
+
} else {
|
|
42384
|
+
return `HASH-${Date.now()}`;
|
|
42385
|
+
}
|
|
42386
|
+
const hash2 = index$2(buffer2);
|
|
42387
|
+
return `HASH-${hash2.toString("hex").toUpperCase()}`;
|
|
42388
|
+
} catch (e) {
|
|
42389
|
+
console.warn("Could not generate document hash:", e);
|
|
42390
|
+
return `HASH-${Date.now()}`;
|
|
42391
|
+
}
|
|
42392
|
+
};
|
|
41888
42393
|
exportNumberingFile_fn = function() {
|
|
41889
42394
|
const numberingPath = "word/numbering.xml";
|
|
41890
42395
|
let numberingXml = this.convertedXml[numberingPath];
|
|
@@ -42105,52 +42610,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42105
42610
|
}));
|
|
42106
42611
|
__publicField$2(_SuperConverter, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
42107
42612
|
let SuperConverter = _SuperConverter;
|
|
42108
|
-
function storeSuperdocVersion(docx) {
|
|
42109
|
-
const customLocation = "docProps/custom.xml";
|
|
42110
|
-
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
42111
|
-
const customXml = docx[customLocation];
|
|
42112
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
42113
|
-
if (!properties.elements) properties.elements = [];
|
|
42114
|
-
const elements = properties.elements;
|
|
42115
|
-
const cleanProperties = elements.filter((prop) => typeof prop === "object" && prop !== null).filter((prop) => {
|
|
42116
|
-
const { attributes } = prop;
|
|
42117
|
-
return attributes.name !== "SuperdocVersion";
|
|
42118
|
-
});
|
|
42119
|
-
let pid = 2;
|
|
42120
|
-
try {
|
|
42121
|
-
pid = cleanProperties.length ? Math.max(...elements.map((el) => el.attributes.pid)) + 1 : 2;
|
|
42122
|
-
} catch {
|
|
42123
|
-
}
|
|
42124
|
-
cleanProperties.push(generateSuperdocVersion(pid));
|
|
42125
|
-
properties.elements = cleanProperties;
|
|
42126
|
-
return docx;
|
|
42127
|
-
}
|
|
42128
42613
|
function generateCustomXml() {
|
|
42129
42614
|
return DEFAULT_CUSTOM_XML;
|
|
42130
42615
|
}
|
|
42131
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.22.0") {
|
|
42132
|
-
return {
|
|
42133
|
-
type: "element",
|
|
42134
|
-
name: "property",
|
|
42135
|
-
attributes: {
|
|
42136
|
-
name: "SuperdocVersion",
|
|
42137
|
-
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
42138
|
-
pid
|
|
42139
|
-
},
|
|
42140
|
-
elements: [
|
|
42141
|
-
{
|
|
42142
|
-
type: "element",
|
|
42143
|
-
name: "vt:lpwstr",
|
|
42144
|
-
elements: [
|
|
42145
|
-
{
|
|
42146
|
-
type: "text",
|
|
42147
|
-
text: version2
|
|
42148
|
-
}
|
|
42149
|
-
]
|
|
42150
|
-
}
|
|
42151
|
-
]
|
|
42152
|
-
};
|
|
42153
|
-
}
|
|
42154
42616
|
function commonjsRequire(path) {
|
|
42155
42617
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
42156
42618
|
}
|
|
@@ -44466,7 +44928,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
44466
44928
|
return jszip_min.exports;
|
|
44467
44929
|
}
|
|
44468
44930
|
var jszip_minExports = requireJszip_min();
|
|
44469
|
-
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
44931
|
+
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$2(jszip_minExports);
|
|
44470
44932
|
const isXmlLike = (name) => /\.xml$|\.rels$/i.test(name);
|
|
44471
44933
|
function sniffEncoding(u8) {
|
|
44472
44934
|
if (u8.length >= 2) {
|
|
@@ -49790,8 +50252,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
49790
50252
|
let $to = parse.doc.resolveNoCache(change.endB - parse.from);
|
|
49791
50253
|
let $fromA = doc2.resolve(change.start);
|
|
49792
50254
|
let inlineChange = $from.sameParent($to) && $from.parent.inlineContent && $fromA.end() >= change.endA;
|
|
49793
|
-
|
|
49794
|
-
if ((ios && view.input.lastIOSEnter > Date.now() - 225 && (!inlineChange || addedNodes.some((n) => n.nodeName == "DIV" || n.nodeName == "P")) || !inlineChange && $from.pos < parse.doc.content.size && (!$from.sameParent($to) || !$from.parent.inlineContent) && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", "")) && (nextSel = Selection.findFrom(parse.doc.resolve($from.pos + 1), 1, true)) && nextSel.head > $from.pos) && view.someProp("handleKeyDown", (f) => f(view, keyEvent(13, "Enter")))) {
|
|
50255
|
+
if ((ios && view.input.lastIOSEnter > Date.now() - 225 && (!inlineChange || addedNodes.some((n) => n.nodeName == "DIV" || n.nodeName == "P")) || !inlineChange && $from.pos < parse.doc.content.size && (!$from.sameParent($to) || !$from.parent.inlineContent) && $from.pos < $to.pos && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", ""))) && view.someProp("handleKeyDown", (f) => f(view, keyEvent(13, "Enter")))) {
|
|
49795
50256
|
view.input.lastIOSEnter = 0;
|
|
49796
50257
|
return;
|
|
49797
50258
|
}
|
|
@@ -54422,15 +54883,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
54422
54883
|
if (near) {
|
|
54423
54884
|
const isSameAsTarget = nearKind === targetKind;
|
|
54424
54885
|
if (isSameAsTarget) {
|
|
54425
|
-
const {
|
|
54426
|
-
|
|
54427
|
-
|
|
54428
|
-
|
|
54429
|
-
|
|
54430
|
-
|
|
54431
|
-
|
|
54432
|
-
|
|
54433
|
-
|
|
54886
|
+
const candidateLists = collectIntersectingTopLists({ doc: doc2, selection, OrderedType, BulletType });
|
|
54887
|
+
let listsToUnwrap = candidateLists.filter(({ node }) => getEffectiveListKind(node) === targetKind);
|
|
54888
|
+
if (listsToUnwrap.length === 0 && getEffectiveListKind(near.node) === targetKind) {
|
|
54889
|
+
listsToUnwrap = [{ node: near.node, pos: near.pos, depth: near.depth ?? null }];
|
|
54890
|
+
}
|
|
54891
|
+
if (listsToUnwrap.length === 0) return false;
|
|
54892
|
+
let spanFromBefore2 = listsToUnwrap[0].pos;
|
|
54893
|
+
let spanToBefore2 = listsToUnwrap[0].pos + listsToUnwrap[0].node.nodeSize;
|
|
54894
|
+
for (let i2 = 1; i2 < listsToUnwrap.length; i2++) {
|
|
54895
|
+
const { node, pos: pos2 } = listsToUnwrap[i2];
|
|
54896
|
+
spanFromBefore2 = Math.min(spanFromBefore2, pos2);
|
|
54897
|
+
spanToBefore2 = Math.max(spanToBefore2, pos2 + node.nodeSize);
|
|
54898
|
+
}
|
|
54899
|
+
const ParagraphType = editor.schema.nodes.paragraph;
|
|
54900
|
+
listsToUnwrap.sort((a, b2) => b2.pos - a.pos);
|
|
54901
|
+
for (const { node, pos: pos2 } of listsToUnwrap) {
|
|
54902
|
+
const mappedFrom = tr.mapping.map(pos2, -1);
|
|
54903
|
+
const mappedTo = tr.mapping.map(pos2 + node.nodeSize, 1);
|
|
54904
|
+
const currentListNode = tr.doc.nodeAt(mappedFrom);
|
|
54905
|
+
const sourceListNode = currentListNode && (currentListNode.type === OrderedType || currentListNode.type === BulletType) ? currentListNode : node;
|
|
54906
|
+
const paragraphs = [];
|
|
54907
|
+
for (let i2 = 0; i2 < sourceListNode.childCount; i2++) {
|
|
54908
|
+
const li = sourceListNode.child(i2);
|
|
54909
|
+
if (li.type !== editor.schema.nodes.listItem) continue;
|
|
54910
|
+
const firstChild = li.firstChild;
|
|
54911
|
+
paragraphs.push(firstChild || ParagraphType.create());
|
|
54912
|
+
}
|
|
54913
|
+
if (paragraphs.length === 0) {
|
|
54914
|
+
paragraphs.push(ParagraphType.create());
|
|
54915
|
+
}
|
|
54916
|
+
const replacement = paragraphs.length === 1 ? paragraphs[0] : Fragment.from(paragraphs);
|
|
54917
|
+
tr.replaceWith(mappedFrom, mappedTo, replacement);
|
|
54918
|
+
}
|
|
54434
54919
|
setMappedSelectionSpan(tr, spanFromBefore2, spanToBefore2);
|
|
54435
54920
|
if (dispatch) dispatch(tr);
|
|
54436
54921
|
return true;
|
|
@@ -56445,26 +56930,100 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
56445
56930
|
const setEditorToolbar = ({ editor }, mainEditor) => {
|
|
56446
56931
|
editor.setToolbar(mainEditor.toolbar);
|
|
56447
56932
|
};
|
|
56933
|
+
const normalizeCommentEventPayload = ({ conversation, editorOptions, fallbackCommentId, fallbackInternal }) => {
|
|
56934
|
+
const { user, documentId } = editorOptions || {};
|
|
56935
|
+
const normalized = {
|
|
56936
|
+
...conversation,
|
|
56937
|
+
commentId: conversation?.commentId ?? fallbackCommentId,
|
|
56938
|
+
isInternal: conversation?.isInternal ?? fallbackInternal
|
|
56939
|
+
};
|
|
56940
|
+
if (!normalized.commentText && normalized.text) {
|
|
56941
|
+
normalized.commentText = normalized.text;
|
|
56942
|
+
delete normalized.text;
|
|
56943
|
+
}
|
|
56944
|
+
if ("skipEmit" in normalized) delete normalized.skipEmit;
|
|
56945
|
+
if (!normalized.creatorName && user?.name) {
|
|
56946
|
+
normalized.creatorName = user.name;
|
|
56947
|
+
}
|
|
56948
|
+
if (!normalized.creatorEmail && user?.email) {
|
|
56949
|
+
normalized.creatorEmail = user.email;
|
|
56950
|
+
}
|
|
56951
|
+
if (!normalized.createdTime) {
|
|
56952
|
+
normalized.createdTime = Date.now();
|
|
56953
|
+
}
|
|
56954
|
+
if (!normalized.fileId && documentId) {
|
|
56955
|
+
normalized.fileId = documentId;
|
|
56956
|
+
}
|
|
56957
|
+
if (!normalized.documentId && documentId) {
|
|
56958
|
+
normalized.documentId = documentId;
|
|
56959
|
+
}
|
|
56960
|
+
return normalized;
|
|
56961
|
+
};
|
|
56962
|
+
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
56963
|
+
let bounds = {};
|
|
56964
|
+
if (currentBounds instanceof DOMRect) {
|
|
56965
|
+
bounds = {
|
|
56966
|
+
top: currentBounds.top,
|
|
56967
|
+
bottom: currentBounds.bottom,
|
|
56968
|
+
left: currentBounds.left,
|
|
56969
|
+
right: currentBounds.right
|
|
56970
|
+
};
|
|
56971
|
+
} else {
|
|
56972
|
+
bounds = { ...currentBounds };
|
|
56973
|
+
}
|
|
56974
|
+
if (!allCommentPositions[threadId]) {
|
|
56975
|
+
allCommentPositions[threadId] = {
|
|
56976
|
+
threadId,
|
|
56977
|
+
start: pos,
|
|
56978
|
+
end: pos + node.nodeSize,
|
|
56979
|
+
bounds
|
|
56980
|
+
};
|
|
56981
|
+
} else {
|
|
56982
|
+
const existing = allCommentPositions[threadId];
|
|
56983
|
+
existing.start = Math.min(existing.start, pos);
|
|
56984
|
+
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
56985
|
+
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
56986
|
+
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
56987
|
+
}
|
|
56988
|
+
};
|
|
56448
56989
|
const TRACK_CHANGE_MARKS = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
|
|
56449
56990
|
const CommentsPluginKey = new PluginKey("comments");
|
|
56450
56991
|
const CommentsPlugin = Extension.create({
|
|
56451
56992
|
name: "comments",
|
|
56452
56993
|
addCommands() {
|
|
56453
56994
|
return {
|
|
56454
|
-
insertComment: (conversation) => ({ tr, dispatch }) => {
|
|
56995
|
+
insertComment: (conversation = {}) => ({ tr, dispatch }) => {
|
|
56455
56996
|
const { selection } = tr;
|
|
56456
56997
|
const { $from, $to } = selection;
|
|
56457
|
-
const
|
|
56998
|
+
const skipEmit = conversation?.skipEmit;
|
|
56999
|
+
const resolvedCommentId = conversation?.commentId ?? v4$1();
|
|
57000
|
+
const resolvedInternal = conversation?.isInternal ?? false;
|
|
56458
57001
|
tr.setMeta(CommentsPluginKey, { event: "add" });
|
|
56459
57002
|
tr.addMark(
|
|
56460
57003
|
$from.pos,
|
|
56461
57004
|
$to.pos,
|
|
56462
57005
|
this.editor.schema.marks[CommentMarkName].create({
|
|
56463
|
-
commentId,
|
|
56464
|
-
internal:
|
|
57006
|
+
commentId: resolvedCommentId,
|
|
57007
|
+
internal: resolvedInternal
|
|
56465
57008
|
})
|
|
56466
57009
|
);
|
|
56467
|
-
dispatch(tr);
|
|
57010
|
+
if (dispatch) dispatch(tr);
|
|
57011
|
+
const shouldEmit = !skipEmit && resolvedCommentId !== "pending";
|
|
57012
|
+
if (shouldEmit) {
|
|
57013
|
+
const commentPayload = normalizeCommentEventPayload({
|
|
57014
|
+
conversation,
|
|
57015
|
+
editorOptions: this.editor.options,
|
|
57016
|
+
fallbackCommentId: resolvedCommentId,
|
|
57017
|
+
fallbackInternal: resolvedInternal
|
|
57018
|
+
});
|
|
57019
|
+
const activeCommentId = commentPayload.commentId || commentPayload.importedId || null;
|
|
57020
|
+
const event = {
|
|
57021
|
+
type: comments_module_events$1.ADD,
|
|
57022
|
+
comment: commentPayload,
|
|
57023
|
+
...activeCommentId && { activeCommentId }
|
|
57024
|
+
};
|
|
57025
|
+
this.editor.emit("commentsUpdate", event);
|
|
57026
|
+
}
|
|
56468
57027
|
return true;
|
|
56469
57028
|
},
|
|
56470
57029
|
removeComment: ({ commentId, importedId }) => ({ tr, dispatch, state: state2 }) => {
|
|
@@ -56700,33 +57259,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
56700
57259
|
return [commentsPlugin];
|
|
56701
57260
|
}
|
|
56702
57261
|
});
|
|
56703
|
-
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
56704
|
-
let bounds = {};
|
|
56705
|
-
if (currentBounds instanceof DOMRect) {
|
|
56706
|
-
bounds = {
|
|
56707
|
-
top: currentBounds.top,
|
|
56708
|
-
bottom: currentBounds.bottom,
|
|
56709
|
-
left: currentBounds.left,
|
|
56710
|
-
right: currentBounds.right
|
|
56711
|
-
};
|
|
56712
|
-
} else {
|
|
56713
|
-
bounds = { ...currentBounds };
|
|
56714
|
-
}
|
|
56715
|
-
if (!allCommentPositions[threadId]) {
|
|
56716
|
-
allCommentPositions[threadId] = {
|
|
56717
|
-
threadId,
|
|
56718
|
-
start: pos,
|
|
56719
|
-
end: pos + node.nodeSize,
|
|
56720
|
-
bounds
|
|
56721
|
-
};
|
|
56722
|
-
} else {
|
|
56723
|
-
const existing = allCommentPositions[threadId];
|
|
56724
|
-
existing.start = Math.min(existing.start, pos);
|
|
56725
|
-
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
56726
|
-
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
56727
|
-
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
56728
|
-
}
|
|
56729
|
-
};
|
|
56730
57262
|
const getActiveCommentId = (doc2, selection) => {
|
|
56731
57263
|
if (!selection) return;
|
|
56732
57264
|
const { $from, $to } = selection;
|
|
@@ -59180,19 +59712,34 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59180
59712
|
* @returns {string} Document version
|
|
59181
59713
|
*/
|
|
59182
59714
|
static getDocumentVersion(doc2) {
|
|
59183
|
-
|
|
59184
|
-
return version2;
|
|
59715
|
+
return SuperConverter.getStoredSuperdocVersion(doc2);
|
|
59185
59716
|
}
|
|
59186
59717
|
/**
|
|
59187
|
-
*
|
|
59718
|
+
* Set the document version
|
|
59188
59719
|
* @static
|
|
59189
59720
|
* @param {Object} doc - Document object
|
|
59190
59721
|
* @param {string} version - New version
|
|
59191
|
-
* @returns {
|
|
59722
|
+
* @returns {string} The set version
|
|
59723
|
+
*/
|
|
59724
|
+
static setDocumentVersion(doc2, version2) {
|
|
59725
|
+
return SuperConverter.setStoredSuperdocVersion(doc2, version2);
|
|
59726
|
+
}
|
|
59727
|
+
/**
|
|
59728
|
+
* Get the document GUID
|
|
59729
|
+
* @static
|
|
59730
|
+
* @param {Object} doc - Document object
|
|
59731
|
+
* @returns {string|null} Document GUID
|
|
59732
|
+
*/
|
|
59733
|
+
static getDocumentGuid(doc2) {
|
|
59734
|
+
return SuperConverter.extractDocumentGuid(doc2);
|
|
59735
|
+
}
|
|
59736
|
+
// Deprecated
|
|
59737
|
+
/**
|
|
59738
|
+
* @deprecated use setDocumentVersion instead
|
|
59192
59739
|
*/
|
|
59193
59740
|
static updateDocumentVersion(doc2, version2) {
|
|
59194
|
-
|
|
59195
|
-
return
|
|
59741
|
+
console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
|
|
59742
|
+
return _Editor2.setDocumentVersion(doc2, version2);
|
|
59196
59743
|
}
|
|
59197
59744
|
/**
|
|
59198
59745
|
* Creates all node views.
|
|
@@ -59328,6 +59875,43 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59328
59875
|
}
|
|
59329
59876
|
window.addEventListener("resize", () => handleResize);
|
|
59330
59877
|
}
|
|
59878
|
+
/**
|
|
59879
|
+
* Get document identifier for telemetry (async - may generate hash)
|
|
59880
|
+
* @returns {Promise<string>} GUID for modified docs, hash for unmodified
|
|
59881
|
+
*/
|
|
59882
|
+
async getDocumentIdentifier() {
|
|
59883
|
+
return await this.converter?.getDocumentIdentifier() || null;
|
|
59884
|
+
}
|
|
59885
|
+
/**
|
|
59886
|
+
* Get permanent document GUID (sync - only for modified documents)
|
|
59887
|
+
* @returns {string|null} GUID or null if document hasn't been modified
|
|
59888
|
+
*/
|
|
59889
|
+
getDocumentGuid() {
|
|
59890
|
+
return this.converter?.documentGuid || null;
|
|
59891
|
+
}
|
|
59892
|
+
/**
|
|
59893
|
+
* Check if document has been modified
|
|
59894
|
+
* @returns {boolean}
|
|
59895
|
+
*/
|
|
59896
|
+
isDocumentModified() {
|
|
59897
|
+
return this.converter?.documentModified || false;
|
|
59898
|
+
}
|
|
59899
|
+
/**
|
|
59900
|
+
* Get telemetry data (async because of lazy hash generation)
|
|
59901
|
+
*/
|
|
59902
|
+
async getTelemetryData() {
|
|
59903
|
+
return {
|
|
59904
|
+
documentId: await this.getDocumentIdentifier(),
|
|
59905
|
+
isModified: this.isDocumentModified(),
|
|
59906
|
+
isPermanentId: !!this.converter?.documentGuid,
|
|
59907
|
+
version: this.converter?.getSuperdocVersion()
|
|
59908
|
+
};
|
|
59909
|
+
}
|
|
59910
|
+
// Deprecated for backward compatibility
|
|
59911
|
+
getDocumentId() {
|
|
59912
|
+
console.warn("getDocumentId is deprecated, use getDocumentGuid instead");
|
|
59913
|
+
return this.getDocumentGuid();
|
|
59914
|
+
}
|
|
59331
59915
|
/**
|
|
59332
59916
|
* Get attrs of the currently selected node or mark.
|
|
59333
59917
|
* @param {String} nameOrType
|
|
@@ -59359,6 +59943,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59359
59943
|
getJSON() {
|
|
59360
59944
|
return this.state.doc.toJSON();
|
|
59361
59945
|
}
|
|
59946
|
+
/**
|
|
59947
|
+
* Get document metadata including GUID, modification status, and version
|
|
59948
|
+
* @returns {{
|
|
59949
|
+
* documentGuid: string | null,
|
|
59950
|
+
* isModified: boolean,
|
|
59951
|
+
* version: string | null
|
|
59952
|
+
* }} Document metadata
|
|
59953
|
+
*/
|
|
59954
|
+
getMetadata() {
|
|
59955
|
+
return {
|
|
59956
|
+
documentGuid: this.converter?.documentGuid || null,
|
|
59957
|
+
isModified: this.isDocumentModified(),
|
|
59958
|
+
version: this.converter?.getSuperdocVersion() || null
|
|
59959
|
+
};
|
|
59960
|
+
}
|
|
59362
59961
|
/**
|
|
59363
59962
|
* Get the editor content as HTML
|
|
59364
59963
|
* @param {Object} options - Options for the HTML serializer
|
|
@@ -59376,6 +59975,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59376
59975
|
}
|
|
59377
59976
|
return html;
|
|
59378
59977
|
}
|
|
59978
|
+
/**
|
|
59979
|
+
* Get the document version from the converter
|
|
59980
|
+
* @returns {string|null} The SuperDoc version stored in the document
|
|
59981
|
+
*/
|
|
59982
|
+
getDocumentVersion() {
|
|
59983
|
+
return this.converter?.getSuperdocVersion() || null;
|
|
59984
|
+
}
|
|
59379
59985
|
/**
|
|
59380
59986
|
* Create a child editor linked to this editor.
|
|
59381
59987
|
* This is useful for creating header/footer editors that are linked to the main editor.
|
|
@@ -59458,7 +60064,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59458
60064
|
if (exportXmlOnly || exportJsonOnly) return documentXml;
|
|
59459
60065
|
const customXml = this.converter.schemaToXml(this.converter.convertedXml["docProps/custom.xml"].elements[0]);
|
|
59460
60066
|
const styles = this.converter.schemaToXml(this.converter.convertedXml["word/styles.xml"].elements[0]);
|
|
59461
|
-
const
|
|
60067
|
+
const hasCustomSettings = !!this.converter.convertedXml["word/settings.xml"]?.elements?.length;
|
|
60068
|
+
const customSettings = hasCustomSettings ? this.converter.schemaToXml(this.converter.convertedXml["word/settings.xml"]?.elements?.[0]) : null;
|
|
59462
60069
|
const rels = this.converter.schemaToXml(this.converter.convertedXml["word/_rels/document.xml.rels"].elements[0]);
|
|
59463
60070
|
const media = this.converter.addedMedia;
|
|
59464
60071
|
const updatedHeadersFooters = {};
|
|
@@ -59474,13 +60081,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59474
60081
|
...this.options.customUpdatedFiles,
|
|
59475
60082
|
"word/document.xml": String(documentXml),
|
|
59476
60083
|
"docProps/custom.xml": String(customXml),
|
|
59477
|
-
"word/settings.xml": String(customSettings),
|
|
59478
60084
|
"word/_rels/document.xml.rels": String(rels),
|
|
59479
60085
|
"word/numbering.xml": String(numbering),
|
|
59480
60086
|
// Replace & with & in styles.xml as DOCX viewers can't handle it
|
|
59481
60087
|
"word/styles.xml": String(styles).replace(/&/gi, "&"),
|
|
59482
60088
|
...updatedHeadersFooters
|
|
59483
60089
|
};
|
|
60090
|
+
if (hasCustomSettings) {
|
|
60091
|
+
updatedDocs["word/settings.xml"] = String(customSettings);
|
|
60092
|
+
}
|
|
59484
60093
|
if (comments.length) {
|
|
59485
60094
|
const commentsXml = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]);
|
|
59486
60095
|
const commentsExtendedXml = this.converter.schemaToXml(
|
|
@@ -60100,6 +60709,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
60100
60709
|
if (!transaction.docChanged) {
|
|
60101
60710
|
return;
|
|
60102
60711
|
}
|
|
60712
|
+
if (transaction.docChanged && this.converter) {
|
|
60713
|
+
if (!this.converter.documentGuid) {
|
|
60714
|
+
this.converter.promoteToGuid();
|
|
60715
|
+
console.debug("Document modified - assigned GUID:", this.converter.documentGuid);
|
|
60716
|
+
}
|
|
60717
|
+
this.converter.documentModified = true;
|
|
60718
|
+
}
|
|
60103
60719
|
this.emit("update", {
|
|
60104
60720
|
editor: this,
|
|
60105
60721
|
transaction
|
|
@@ -62042,10 +62658,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62042
62658
|
return true;
|
|
62043
62659
|
},
|
|
62044
62660
|
/**
|
|
62045
|
-
* Updates a structured content
|
|
62661
|
+
* Updates a single structured content field by its unique ID.
|
|
62662
|
+
* IDs are unique identifiers, so this will update at most one field.
|
|
62046
62663
|
* If the updated node does not match the schema, it will not be updated.
|
|
62047
62664
|
* @category Command
|
|
62048
|
-
* @param {string} id
|
|
62665
|
+
* @param {string} id - Unique identifier of the field
|
|
62049
62666
|
* @param {StructuredContentUpdate} options
|
|
62050
62667
|
*/
|
|
62051
62668
|
updateStructuredContentById: (id, options = {}) => ({ editor, dispatch, state: state2, tr }) => {
|
|
@@ -70226,6 +70843,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70226
70843
|
}
|
|
70227
70844
|
return formatAttrs;
|
|
70228
70845
|
}
|
|
70846
|
+
const DEFAULT_MIME_TYPE = "application/octet-stream";
|
|
70229
70847
|
const simpleHash = (str) => {
|
|
70230
70848
|
let hash2 = 0;
|
|
70231
70849
|
for (let i2 = 0; i2 < str.length; i2++) {
|
|
@@ -70235,21 +70853,40 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70235
70853
|
}
|
|
70236
70854
|
return Math.abs(hash2).toString();
|
|
70237
70855
|
};
|
|
70238
|
-
const
|
|
70239
|
-
|
|
70240
|
-
|
|
70241
|
-
|
|
70242
|
-
|
|
70243
|
-
|
|
70856
|
+
const decodeBase64ToBinaryString = (data) => {
|
|
70857
|
+
if (!data) return "";
|
|
70858
|
+
if (typeof atob === "function") {
|
|
70859
|
+
return atob(data);
|
|
70860
|
+
}
|
|
70861
|
+
if (typeof Buffer2 !== "undefined" && typeof Buffer2.from === "function") {
|
|
70862
|
+
return Buffer2.from(data, "base64").toString("binary");
|
|
70863
|
+
}
|
|
70864
|
+
throw new Error("Unable to decode base64 payload in the current environment.");
|
|
70865
|
+
};
|
|
70866
|
+
const extractBase64Meta = (base64String) => {
|
|
70867
|
+
const [meta = "", payload = ""] = base64String.split(",");
|
|
70868
|
+
const mimeMatch = meta.match(/:(.*?);/);
|
|
70869
|
+
const rawMimeType = mimeMatch ? mimeMatch[1] : "";
|
|
70870
|
+
const mimeType = rawMimeType || DEFAULT_MIME_TYPE;
|
|
70871
|
+
const binaryString = decodeBase64ToBinaryString(payload);
|
|
70244
70872
|
const hash2 = simpleHash(binaryString);
|
|
70245
70873
|
const extension = mimeType.split("/")[1] || "bin";
|
|
70246
70874
|
const filename = `image-${hash2}.${extension}`;
|
|
70875
|
+
return { mimeType, binaryString, filename };
|
|
70876
|
+
};
|
|
70877
|
+
const getBase64FileMeta = (base64String) => {
|
|
70878
|
+
const { mimeType, filename } = extractBase64Meta(base64String);
|
|
70879
|
+
return { mimeType, filename };
|
|
70880
|
+
};
|
|
70881
|
+
const base64ToFile = (base64String) => {
|
|
70882
|
+
const { mimeType, binaryString, filename } = extractBase64Meta(base64String);
|
|
70883
|
+
const fileType = mimeType || DEFAULT_MIME_TYPE;
|
|
70247
70884
|
const bytes = new Uint8Array(binaryString.length);
|
|
70248
70885
|
for (let i2 = 0; i2 < binaryString.length; i2++) {
|
|
70249
70886
|
bytes[i2] = binaryString.charCodeAt(i2);
|
|
70250
70887
|
}
|
|
70251
|
-
const blob = new Blob([bytes], { type:
|
|
70252
|
-
return new File([blob], filename, { type:
|
|
70888
|
+
const blob = new Blob([bytes], { type: fileType });
|
|
70889
|
+
return new File([blob], filename, { type: fileType });
|
|
70253
70890
|
};
|
|
70254
70891
|
const urlToFile = async (url, filename, mimeType) => {
|
|
70255
70892
|
try {
|
|
@@ -70625,6 +71262,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70625
71262
|
}
|
|
70626
71263
|
}
|
|
70627
71264
|
const key = new PluginKey("ImageRegistration");
|
|
71265
|
+
const WORD_MEDIA_PREFIX = "word/";
|
|
70628
71266
|
const ImageRegistrationPlugin = ({ editor }) => {
|
|
70629
71267
|
const { view } = editor;
|
|
70630
71268
|
return new Plugin({
|
|
@@ -70645,16 +71283,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70645
71283
|
},
|
|
70646
71284
|
appendTransaction: (trs, _oldState, state2) => {
|
|
70647
71285
|
let foundImages = [];
|
|
70648
|
-
trs.forEach((
|
|
70649
|
-
if (
|
|
70650
|
-
|
|
71286
|
+
trs.forEach((tr) => {
|
|
71287
|
+
if (tr.docChanged) {
|
|
71288
|
+
tr.steps.forEach((step, index2) => {
|
|
70651
71289
|
const stepMap = step.getMap();
|
|
70652
71290
|
foundImages = foundImages.map(({ node, pos, id }) => {
|
|
70653
71291
|
const mappedPos = stepMap.map(pos, -1);
|
|
70654
71292
|
return { node, pos: mappedPos, id };
|
|
70655
71293
|
});
|
|
70656
71294
|
if (step instanceof ReplaceStep || step instanceof ReplaceAroundStep$1) {
|
|
70657
|
-
(
|
|
71295
|
+
(tr.docs[index2 + 1] || tr.doc).nodesBetween(
|
|
70658
71296
|
stepMap.map(step.from, -1),
|
|
70659
71297
|
stepMap.map(step.to, 1),
|
|
70660
71298
|
(node, pos) => {
|
|
@@ -70673,22 +71311,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70673
71311
|
if (!foundImages || foundImages.length === 0) {
|
|
70674
71312
|
return null;
|
|
70675
71313
|
}
|
|
70676
|
-
|
|
70677
|
-
|
|
70678
|
-
|
|
70679
|
-
foundImages
|
|
70680
|
-
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
70681
|
-
side: -1,
|
|
70682
|
-
id
|
|
70683
|
-
});
|
|
70684
|
-
set = set.add(tr.doc, [deco]);
|
|
70685
|
-
});
|
|
70686
|
-
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
70687
|
-
tr.delete(pos, pos + node.nodeSize);
|
|
70688
|
-
});
|
|
70689
|
-
set = set.map(tr.mapping, tr.doc);
|
|
70690
|
-
tr.setMeta(key, { set });
|
|
70691
|
-
return tr;
|
|
71314
|
+
if (editor.options.isHeadless) {
|
|
71315
|
+
return handleNodePath(foundImages, editor, state2);
|
|
71316
|
+
}
|
|
71317
|
+
return handleBrowserPath(foundImages, editor, view, state2);
|
|
70692
71318
|
},
|
|
70693
71319
|
props: {
|
|
70694
71320
|
decorations(state2) {
|
|
@@ -70698,6 +71324,59 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70698
71324
|
}
|
|
70699
71325
|
});
|
|
70700
71326
|
};
|
|
71327
|
+
const derivePreferredFileName = (src) => {
|
|
71328
|
+
if (typeof src !== "string" || src.length === 0) {
|
|
71329
|
+
return "image.bin";
|
|
71330
|
+
}
|
|
71331
|
+
if (src.startsWith("data:")) {
|
|
71332
|
+
return getBase64FileMeta(src).filename;
|
|
71333
|
+
}
|
|
71334
|
+
const lastSegment = src.split("/").pop() ?? "";
|
|
71335
|
+
const trimmed = lastSegment.split(/[?#]/)[0];
|
|
71336
|
+
return trimmed || "image.bin";
|
|
71337
|
+
};
|
|
71338
|
+
const handleNodePath = (foundImages, editor, state2) => {
|
|
71339
|
+
const { tr } = state2;
|
|
71340
|
+
const mediaStore = editor.storage.image.media ?? {};
|
|
71341
|
+
if (!editor.storage.image.media) {
|
|
71342
|
+
editor.storage.image.media = mediaStore;
|
|
71343
|
+
}
|
|
71344
|
+
const existingFileNames = new Set(Object.keys(mediaStore).map((key2) => key2.split("/").pop()));
|
|
71345
|
+
foundImages.forEach(({ node, pos }) => {
|
|
71346
|
+
const { src } = node.attrs;
|
|
71347
|
+
const preferredFileName = derivePreferredFileName(src);
|
|
71348
|
+
const uniqueFileName = ensureUniqueFileName(preferredFileName, existingFileNames);
|
|
71349
|
+
existingFileNames.add(uniqueFileName);
|
|
71350
|
+
const mediaPath = buildMediaPath(uniqueFileName);
|
|
71351
|
+
mediaStore[mediaPath] = src;
|
|
71352
|
+
const path = mediaPath.startsWith(WORD_MEDIA_PREFIX) ? mediaPath.slice(WORD_MEDIA_PREFIX.length) : mediaPath;
|
|
71353
|
+
const rId = addImageRelationship({ editor, path });
|
|
71354
|
+
tr.setNodeMarkup(pos, void 0, {
|
|
71355
|
+
...node.attrs,
|
|
71356
|
+
src: mediaPath,
|
|
71357
|
+
rId
|
|
71358
|
+
});
|
|
71359
|
+
});
|
|
71360
|
+
return tr;
|
|
71361
|
+
};
|
|
71362
|
+
const handleBrowserPath = (foundImages, editor, view, state2) => {
|
|
71363
|
+
registerImages(foundImages, editor, view);
|
|
71364
|
+
const tr = state2.tr;
|
|
71365
|
+
let { set } = key.getState(state2);
|
|
71366
|
+
foundImages.slice().sort((a, b2) => a.pos - b2.pos).forEach(({ pos, id }) => {
|
|
71367
|
+
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
71368
|
+
side: -1,
|
|
71369
|
+
id
|
|
71370
|
+
});
|
|
71371
|
+
set = set.add(tr.doc, [deco]);
|
|
71372
|
+
});
|
|
71373
|
+
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
71374
|
+
tr.delete(pos, pos + node.nodeSize);
|
|
71375
|
+
});
|
|
71376
|
+
set = set.map(tr.mapping, tr.doc);
|
|
71377
|
+
tr.setMeta(key, { set });
|
|
71378
|
+
return tr;
|
|
71379
|
+
};
|
|
70701
71380
|
const findPlaceholder = (state2, id) => {
|
|
70702
71381
|
let { set } = key.getState(state2);
|
|
70703
71382
|
let found2 = set?.find(null, null, (spec) => spec.id === id);
|
|
@@ -72900,7 +73579,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72900
73579
|
}
|
|
72901
73580
|
return formatList.filter((format) => Object.hasOwn(format, "type") && Object.hasOwn(format, "attrs"));
|
|
72902
73581
|
};
|
|
72903
|
-
const index
|
|
73582
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72904
73583
|
__proto__: null,
|
|
72905
73584
|
addMarkStep,
|
|
72906
73585
|
documentHelpers,
|
|
@@ -73225,15 +73904,50 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
73225
73904
|
const changeIndex = trackedChanges.findIndex(({ mark }) => mark.attrs.id === id);
|
|
73226
73905
|
if (changeIndex === -1) return;
|
|
73227
73906
|
const matchingChange = trackedChanges[changeIndex];
|
|
73228
|
-
const
|
|
73229
|
-
const
|
|
73230
|
-
|
|
73231
|
-
|
|
73232
|
-
|
|
73233
|
-
|
|
73234
|
-
|
|
73235
|
-
|
|
73236
|
-
|
|
73907
|
+
const matchingId = matchingChange.mark.attrs.id;
|
|
73908
|
+
const getSegmentSize = ({ from: from2, to }) => to - from2;
|
|
73909
|
+
const areDirectlyConnected = (left2, right2) => {
|
|
73910
|
+
if (!left2 || !right2) {
|
|
73911
|
+
return false;
|
|
73912
|
+
}
|
|
73913
|
+
if (left2.to !== right2.from) {
|
|
73914
|
+
return false;
|
|
73915
|
+
}
|
|
73916
|
+
const hasContentBetween = state2.doc.textBetween(left2.from, right2.to, "\n").length > getSegmentSize(left2) + getSegmentSize(right2);
|
|
73917
|
+
return !hasContentBetween;
|
|
73918
|
+
};
|
|
73919
|
+
const isComplementaryPair = (firstType, secondType) => firstType === TrackDeleteMarkName && secondType === TrackInsertMarkName || firstType === TrackInsertMarkName && secondType === TrackDeleteMarkName;
|
|
73920
|
+
const linkedBefore = [];
|
|
73921
|
+
const linkedAfter = [];
|
|
73922
|
+
const collectDirection = (direction, collection) => {
|
|
73923
|
+
let currentIndex = changeIndex;
|
|
73924
|
+
let currentChange = matchingChange;
|
|
73925
|
+
while (true) {
|
|
73926
|
+
const neighborIndex = currentIndex + direction;
|
|
73927
|
+
const neighbor = trackedChanges[neighborIndex];
|
|
73928
|
+
if (!neighbor) {
|
|
73929
|
+
break;
|
|
73930
|
+
}
|
|
73931
|
+
const [left2, right2] = direction < 0 ? [neighbor, currentChange] : [currentChange, neighbor];
|
|
73932
|
+
if (!areDirectlyConnected(left2, right2)) {
|
|
73933
|
+
break;
|
|
73934
|
+
}
|
|
73935
|
+
const sharesId = neighbor.mark.attrs.id === matchingId;
|
|
73936
|
+
const complementary = isComplementaryPair(currentChange.mark.type.name, neighbor.mark.type.name);
|
|
73937
|
+
if (!sharesId && !complementary) {
|
|
73938
|
+
break;
|
|
73939
|
+
}
|
|
73940
|
+
collection.push(neighbor);
|
|
73941
|
+
currentIndex = neighborIndex;
|
|
73942
|
+
currentChange = neighbor;
|
|
73943
|
+
if (!sharesId) {
|
|
73944
|
+
break;
|
|
73945
|
+
}
|
|
73946
|
+
}
|
|
73947
|
+
};
|
|
73948
|
+
collectDirection(-1, linkedBefore);
|
|
73949
|
+
collectDirection(1, linkedAfter);
|
|
73950
|
+
return [matchingChange, ...linkedAfter, ...linkedBefore];
|
|
73237
73951
|
};
|
|
73238
73952
|
const TextTransform = Extension.create({
|
|
73239
73953
|
name: "textTransform",
|
|
@@ -77815,6 +78529,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
77815
78529
|
return actualBreak;
|
|
77816
78530
|
}
|
|
77817
78531
|
const onImageLoad = (editor) => {
|
|
78532
|
+
if (typeof requestAnimationFrame !== "function") return;
|
|
77818
78533
|
requestAnimationFrame(() => {
|
|
77819
78534
|
const newTr = editor.view.state.tr;
|
|
77820
78535
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -79026,7 +79741,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
79026
79741
|
};
|
|
79027
79742
|
const handleInputSubmit = () => {
|
|
79028
79743
|
const value = inlineTextInput.value;
|
|
79029
|
-
const cleanValue = value.
|
|
79744
|
+
const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
|
|
79030
79745
|
emit2("textSubmit", cleanValue);
|
|
79031
79746
|
inlineTextInput.value = cleanValue;
|
|
79032
79747
|
};
|
|
@@ -79108,7 +79823,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
79108
79823
|
};
|
|
79109
79824
|
}
|
|
79110
79825
|
};
|
|
79111
|
-
const ToolbarButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$4$2, [["__scopeId", "data-v-
|
|
79826
|
+
const ToolbarButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$4$2, [["__scopeId", "data-v-cea02a58"]]);
|
|
79112
79827
|
const _hoisted_1$2$2 = {
|
|
79113
79828
|
class: "toolbar-separator",
|
|
79114
79829
|
role: "separator",
|
|
@@ -89605,7 +90320,7 @@ ${style2}
|
|
|
89605
90320
|
return eventemitter3$1.exports;
|
|
89606
90321
|
}
|
|
89607
90322
|
var eventemitter3Exports$1 = requireEventemitter3$1();
|
|
89608
|
-
const EventEmitter$1 = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
90323
|
+
const EventEmitter$1 = /* @__PURE__ */ getDefaultExportFromCjs$2(eventemitter3Exports$1);
|
|
89609
90324
|
const useToolbarItem = (options) => {
|
|
89610
90325
|
const types2 = ["button", "options", "separator", "dropdown", "overflow"];
|
|
89611
90326
|
if (!types2.includes(options.type)) {
|
|
@@ -90880,16 +91595,21 @@ ${style2}
|
|
|
90880
91595
|
onActivate: ({ fontFamily: fontFamily2 }) => {
|
|
90881
91596
|
if (!fontFamily2) return;
|
|
90882
91597
|
fontButton.label.value = fontFamily2;
|
|
91598
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
90883
91599
|
const foundFont = fontOptions.find((i2) => i2.label === fontFamily2);
|
|
90884
91600
|
if (foundFont) {
|
|
90885
91601
|
fontButton.selectedValue.value = foundFont.key;
|
|
91602
|
+
} else if (defaultFont) {
|
|
91603
|
+
fontButton.selectedValue.value = defaultFont.key;
|
|
90886
91604
|
} else {
|
|
90887
91605
|
fontButton.selectedValue.value = "";
|
|
90888
91606
|
}
|
|
90889
91607
|
},
|
|
90890
91608
|
onDeactivate: () => {
|
|
90891
91609
|
fontButton.label.value = fontButton.defaultLabel.value;
|
|
90892
|
-
fontButton.
|
|
91610
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
91611
|
+
if (defaultFont) fontButton.selectedValue.value = defaultFont.key;
|
|
91612
|
+
else fontButton.selectedValue.value = "";
|
|
90893
91613
|
}
|
|
90894
91614
|
});
|
|
90895
91615
|
const aiButton = useToolbarItem({
|
|
@@ -90957,9 +91677,11 @@ ${style2}
|
|
|
90957
91677
|
},
|
|
90958
91678
|
options: fontSizeOptions,
|
|
90959
91679
|
onActivate: ({ fontSize: size2 }) => {
|
|
91680
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
90960
91681
|
if (!size2) {
|
|
90961
91682
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
90962
|
-
fontSize2.selectedValue.value =
|
|
91683
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
91684
|
+
else fontSize2.selectedValue.value = "";
|
|
90963
91685
|
return;
|
|
90964
91686
|
}
|
|
90965
91687
|
let sanitizedValue = sanitizeNumber(size2, 12);
|
|
@@ -90971,6 +91693,8 @@ ${style2}
|
|
|
90971
91693
|
});
|
|
90972
91694
|
if (foundSize) {
|
|
90973
91695
|
fontSize2.selectedValue.value = foundSize.key;
|
|
91696
|
+
} else if (defaultSize) {
|
|
91697
|
+
fontSize2.selectedValue.value = defaultSize.key;
|
|
90974
91698
|
} else {
|
|
90975
91699
|
fontSize2.selectedValue.value = "";
|
|
90976
91700
|
}
|
|
@@ -90978,7 +91702,9 @@ ${style2}
|
|
|
90978
91702
|
},
|
|
90979
91703
|
onDeactivate: () => {
|
|
90980
91704
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
90981
|
-
fontSize2.
|
|
91705
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
91706
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
91707
|
+
else fontSize2.selectedValue.value = "";
|
|
90982
91708
|
}
|
|
90983
91709
|
});
|
|
90984
91710
|
const separator = useToolbarItem({
|
|
@@ -91191,6 +91917,7 @@ ${style2}
|
|
|
91191
91917
|
type: "dropdown",
|
|
91192
91918
|
name: "tableActions",
|
|
91193
91919
|
command: "executeTableCommand",
|
|
91920
|
+
tooltip: toolbarTexts2.tableActions,
|
|
91194
91921
|
icon: toolbarIcons2.tableActions,
|
|
91195
91922
|
hideLabel: true,
|
|
91196
91923
|
disabled: true,
|
|
@@ -91889,6 +92616,7 @@ ${style2}
|
|
|
91889
92616
|
link: "Link",
|
|
91890
92617
|
image: "Image",
|
|
91891
92618
|
table: "Insert table",
|
|
92619
|
+
tableActions: "Table options",
|
|
91892
92620
|
addRowBefore: "Insert row above",
|
|
91893
92621
|
addRowAfter: "Insert row below",
|
|
91894
92622
|
addColumnBefore: "Insert column left",
|
|
@@ -94346,7 +95074,9 @@ ${style2}
|
|
|
94346
95074
|
"w:wAfter": translator$K,
|
|
94347
95075
|
"w:wBefore": translator$J,
|
|
94348
95076
|
"wp:anchor": translator$8,
|
|
94349
|
-
"wp:inline": translator$7
|
|
95077
|
+
"wp:inline": translator$7,
|
|
95078
|
+
"w:commentRangeStart": commentRangeStartTranslator,
|
|
95079
|
+
"w:commentRangeEnd": commentRangeEndTranslator
|
|
94350
95080
|
});
|
|
94351
95081
|
const baseHandlers = {
|
|
94352
95082
|
...runPropertyTranslators,
|
|
@@ -94413,306 +95143,6 @@ ${style2}
|
|
|
94413
95143
|
delete el.__clickOutsideHandler;
|
|
94414
95144
|
}
|
|
94415
95145
|
};
|
|
94416
|
-
function getDefaultExportFromCjs$1(x) {
|
|
94417
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
94418
|
-
}
|
|
94419
|
-
const CRC_TABLE = new Int32Array([
|
|
94420
|
-
0,
|
|
94421
|
-
1996959894,
|
|
94422
|
-
3993919788,
|
|
94423
|
-
2567524794,
|
|
94424
|
-
124634137,
|
|
94425
|
-
1886057615,
|
|
94426
|
-
3915621685,
|
|
94427
|
-
2657392035,
|
|
94428
|
-
249268274,
|
|
94429
|
-
2044508324,
|
|
94430
|
-
3772115230,
|
|
94431
|
-
2547177864,
|
|
94432
|
-
162941995,
|
|
94433
|
-
2125561021,
|
|
94434
|
-
3887607047,
|
|
94435
|
-
2428444049,
|
|
94436
|
-
498536548,
|
|
94437
|
-
1789927666,
|
|
94438
|
-
4089016648,
|
|
94439
|
-
2227061214,
|
|
94440
|
-
450548861,
|
|
94441
|
-
1843258603,
|
|
94442
|
-
4107580753,
|
|
94443
|
-
2211677639,
|
|
94444
|
-
325883990,
|
|
94445
|
-
1684777152,
|
|
94446
|
-
4251122042,
|
|
94447
|
-
2321926636,
|
|
94448
|
-
335633487,
|
|
94449
|
-
1661365465,
|
|
94450
|
-
4195302755,
|
|
94451
|
-
2366115317,
|
|
94452
|
-
997073096,
|
|
94453
|
-
1281953886,
|
|
94454
|
-
3579855332,
|
|
94455
|
-
2724688242,
|
|
94456
|
-
1006888145,
|
|
94457
|
-
1258607687,
|
|
94458
|
-
3524101629,
|
|
94459
|
-
2768942443,
|
|
94460
|
-
901097722,
|
|
94461
|
-
1119000684,
|
|
94462
|
-
3686517206,
|
|
94463
|
-
2898065728,
|
|
94464
|
-
853044451,
|
|
94465
|
-
1172266101,
|
|
94466
|
-
3705015759,
|
|
94467
|
-
2882616665,
|
|
94468
|
-
651767980,
|
|
94469
|
-
1373503546,
|
|
94470
|
-
3369554304,
|
|
94471
|
-
3218104598,
|
|
94472
|
-
565507253,
|
|
94473
|
-
1454621731,
|
|
94474
|
-
3485111705,
|
|
94475
|
-
3099436303,
|
|
94476
|
-
671266974,
|
|
94477
|
-
1594198024,
|
|
94478
|
-
3322730930,
|
|
94479
|
-
2970347812,
|
|
94480
|
-
795835527,
|
|
94481
|
-
1483230225,
|
|
94482
|
-
3244367275,
|
|
94483
|
-
3060149565,
|
|
94484
|
-
1994146192,
|
|
94485
|
-
31158534,
|
|
94486
|
-
2563907772,
|
|
94487
|
-
4023717930,
|
|
94488
|
-
1907459465,
|
|
94489
|
-
112637215,
|
|
94490
|
-
2680153253,
|
|
94491
|
-
3904427059,
|
|
94492
|
-
2013776290,
|
|
94493
|
-
251722036,
|
|
94494
|
-
2517215374,
|
|
94495
|
-
3775830040,
|
|
94496
|
-
2137656763,
|
|
94497
|
-
141376813,
|
|
94498
|
-
2439277719,
|
|
94499
|
-
3865271297,
|
|
94500
|
-
1802195444,
|
|
94501
|
-
476864866,
|
|
94502
|
-
2238001368,
|
|
94503
|
-
4066508878,
|
|
94504
|
-
1812370925,
|
|
94505
|
-
453092731,
|
|
94506
|
-
2181625025,
|
|
94507
|
-
4111451223,
|
|
94508
|
-
1706088902,
|
|
94509
|
-
314042704,
|
|
94510
|
-
2344532202,
|
|
94511
|
-
4240017532,
|
|
94512
|
-
1658658271,
|
|
94513
|
-
366619977,
|
|
94514
|
-
2362670323,
|
|
94515
|
-
4224994405,
|
|
94516
|
-
1303535960,
|
|
94517
|
-
984961486,
|
|
94518
|
-
2747007092,
|
|
94519
|
-
3569037538,
|
|
94520
|
-
1256170817,
|
|
94521
|
-
1037604311,
|
|
94522
|
-
2765210733,
|
|
94523
|
-
3554079995,
|
|
94524
|
-
1131014506,
|
|
94525
|
-
879679996,
|
|
94526
|
-
2909243462,
|
|
94527
|
-
3663771856,
|
|
94528
|
-
1141124467,
|
|
94529
|
-
855842277,
|
|
94530
|
-
2852801631,
|
|
94531
|
-
3708648649,
|
|
94532
|
-
1342533948,
|
|
94533
|
-
654459306,
|
|
94534
|
-
3188396048,
|
|
94535
|
-
3373015174,
|
|
94536
|
-
1466479909,
|
|
94537
|
-
544179635,
|
|
94538
|
-
3110523913,
|
|
94539
|
-
3462522015,
|
|
94540
|
-
1591671054,
|
|
94541
|
-
702138776,
|
|
94542
|
-
2966460450,
|
|
94543
|
-
3352799412,
|
|
94544
|
-
1504918807,
|
|
94545
|
-
783551873,
|
|
94546
|
-
3082640443,
|
|
94547
|
-
3233442989,
|
|
94548
|
-
3988292384,
|
|
94549
|
-
2596254646,
|
|
94550
|
-
62317068,
|
|
94551
|
-
1957810842,
|
|
94552
|
-
3939845945,
|
|
94553
|
-
2647816111,
|
|
94554
|
-
81470997,
|
|
94555
|
-
1943803523,
|
|
94556
|
-
3814918930,
|
|
94557
|
-
2489596804,
|
|
94558
|
-
225274430,
|
|
94559
|
-
2053790376,
|
|
94560
|
-
3826175755,
|
|
94561
|
-
2466906013,
|
|
94562
|
-
167816743,
|
|
94563
|
-
2097651377,
|
|
94564
|
-
4027552580,
|
|
94565
|
-
2265490386,
|
|
94566
|
-
503444072,
|
|
94567
|
-
1762050814,
|
|
94568
|
-
4150417245,
|
|
94569
|
-
2154129355,
|
|
94570
|
-
426522225,
|
|
94571
|
-
1852507879,
|
|
94572
|
-
4275313526,
|
|
94573
|
-
2312317920,
|
|
94574
|
-
282753626,
|
|
94575
|
-
1742555852,
|
|
94576
|
-
4189708143,
|
|
94577
|
-
2394877945,
|
|
94578
|
-
397917763,
|
|
94579
|
-
1622183637,
|
|
94580
|
-
3604390888,
|
|
94581
|
-
2714866558,
|
|
94582
|
-
953729732,
|
|
94583
|
-
1340076626,
|
|
94584
|
-
3518719985,
|
|
94585
|
-
2797360999,
|
|
94586
|
-
1068828381,
|
|
94587
|
-
1219638859,
|
|
94588
|
-
3624741850,
|
|
94589
|
-
2936675148,
|
|
94590
|
-
906185462,
|
|
94591
|
-
1090812512,
|
|
94592
|
-
3747672003,
|
|
94593
|
-
2825379669,
|
|
94594
|
-
829329135,
|
|
94595
|
-
1181335161,
|
|
94596
|
-
3412177804,
|
|
94597
|
-
3160834842,
|
|
94598
|
-
628085408,
|
|
94599
|
-
1382605366,
|
|
94600
|
-
3423369109,
|
|
94601
|
-
3138078467,
|
|
94602
|
-
570562233,
|
|
94603
|
-
1426400815,
|
|
94604
|
-
3317316542,
|
|
94605
|
-
2998733608,
|
|
94606
|
-
733239954,
|
|
94607
|
-
1555261956,
|
|
94608
|
-
3268935591,
|
|
94609
|
-
3050360625,
|
|
94610
|
-
752459403,
|
|
94611
|
-
1541320221,
|
|
94612
|
-
2607071920,
|
|
94613
|
-
3965973030,
|
|
94614
|
-
1969922972,
|
|
94615
|
-
40735498,
|
|
94616
|
-
2617837225,
|
|
94617
|
-
3943577151,
|
|
94618
|
-
1913087877,
|
|
94619
|
-
83908371,
|
|
94620
|
-
2512341634,
|
|
94621
|
-
3803740692,
|
|
94622
|
-
2075208622,
|
|
94623
|
-
213261112,
|
|
94624
|
-
2463272603,
|
|
94625
|
-
3855990285,
|
|
94626
|
-
2094854071,
|
|
94627
|
-
198958881,
|
|
94628
|
-
2262029012,
|
|
94629
|
-
4057260610,
|
|
94630
|
-
1759359992,
|
|
94631
|
-
534414190,
|
|
94632
|
-
2176718541,
|
|
94633
|
-
4139329115,
|
|
94634
|
-
1873836001,
|
|
94635
|
-
414664567,
|
|
94636
|
-
2282248934,
|
|
94637
|
-
4279200368,
|
|
94638
|
-
1711684554,
|
|
94639
|
-
285281116,
|
|
94640
|
-
2405801727,
|
|
94641
|
-
4167216745,
|
|
94642
|
-
1634467795,
|
|
94643
|
-
376229701,
|
|
94644
|
-
2685067896,
|
|
94645
|
-
3608007406,
|
|
94646
|
-
1308918612,
|
|
94647
|
-
956543938,
|
|
94648
|
-
2808555105,
|
|
94649
|
-
3495958263,
|
|
94650
|
-
1231636301,
|
|
94651
|
-
1047427035,
|
|
94652
|
-
2932959818,
|
|
94653
|
-
3654703836,
|
|
94654
|
-
1088359270,
|
|
94655
|
-
936918e3,
|
|
94656
|
-
2847714899,
|
|
94657
|
-
3736837829,
|
|
94658
|
-
1202900863,
|
|
94659
|
-
817233897,
|
|
94660
|
-
3183342108,
|
|
94661
|
-
3401237130,
|
|
94662
|
-
1404277552,
|
|
94663
|
-
615818150,
|
|
94664
|
-
3134207493,
|
|
94665
|
-
3453421203,
|
|
94666
|
-
1423857449,
|
|
94667
|
-
601450431,
|
|
94668
|
-
3009837614,
|
|
94669
|
-
3294710456,
|
|
94670
|
-
1567103746,
|
|
94671
|
-
711928724,
|
|
94672
|
-
3020668471,
|
|
94673
|
-
3272380065,
|
|
94674
|
-
1510334235,
|
|
94675
|
-
755167117
|
|
94676
|
-
]);
|
|
94677
|
-
function ensureBuffer(input) {
|
|
94678
|
-
if (Buffer.isBuffer(input)) {
|
|
94679
|
-
return input;
|
|
94680
|
-
}
|
|
94681
|
-
if (typeof input === "number") {
|
|
94682
|
-
return Buffer.alloc(input);
|
|
94683
|
-
} else if (typeof input === "string") {
|
|
94684
|
-
return Buffer.from(input);
|
|
94685
|
-
} else {
|
|
94686
|
-
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
94687
|
-
}
|
|
94688
|
-
}
|
|
94689
|
-
function bufferizeInt(num) {
|
|
94690
|
-
const tmp = ensureBuffer(4);
|
|
94691
|
-
tmp.writeInt32BE(num, 0);
|
|
94692
|
-
return tmp;
|
|
94693
|
-
}
|
|
94694
|
-
function _crc32(buf, previous) {
|
|
94695
|
-
buf = ensureBuffer(buf);
|
|
94696
|
-
if (Buffer.isBuffer(previous)) {
|
|
94697
|
-
previous = previous.readUInt32BE(0);
|
|
94698
|
-
}
|
|
94699
|
-
let crc = ~~previous ^ -1;
|
|
94700
|
-
for (var n = 0; n < buf.length; n++) {
|
|
94701
|
-
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
94702
|
-
}
|
|
94703
|
-
return crc ^ -1;
|
|
94704
|
-
}
|
|
94705
|
-
function crc32() {
|
|
94706
|
-
return bufferizeInt(_crc32.apply(null, arguments));
|
|
94707
|
-
}
|
|
94708
|
-
crc32.signed = function() {
|
|
94709
|
-
return _crc32.apply(null, arguments);
|
|
94710
|
-
};
|
|
94711
|
-
crc32.unsigned = function() {
|
|
94712
|
-
return _crc32.apply(null, arguments) >>> 0;
|
|
94713
|
-
};
|
|
94714
|
-
var bufferCrc32 = crc32;
|
|
94715
|
-
const index = /* @__PURE__ */ getDefaultExportFromCjs$1(bufferCrc32);
|
|
94716
95146
|
function randomBytes(length2) {
|
|
94717
95147
|
const array = new Uint8Array(length2);
|
|
94718
95148
|
for (let i2 = 0; i2 < length2; i2++) {
|
|
@@ -94724,7 +95154,9 @@ ${style2}
|
|
|
94724
95154
|
/** @type {boolean} */
|
|
94725
95155
|
enabled;
|
|
94726
95156
|
/** @type {string} */
|
|
94727
|
-
|
|
95157
|
+
documentGuid;
|
|
95158
|
+
/** @type {string} */
|
|
95159
|
+
documentIdentifier;
|
|
94728
95160
|
/** @type {string} */
|
|
94729
95161
|
superdocVersion;
|
|
94730
95162
|
/** @type {string} */
|
|
@@ -94765,7 +95197,8 @@ ${style2}
|
|
|
94765
95197
|
this.enabled = config2.enabled ?? true;
|
|
94766
95198
|
this.licenseKey = config2.licenseKey ?? Telemetry.COMMUNITY_LICENSE_KEY;
|
|
94767
95199
|
this.endpoint = config2.endpoint ?? Telemetry.DEFAULT_ENDPOINT;
|
|
94768
|
-
this.
|
|
95200
|
+
this.documentGuid = config2.documentGuid;
|
|
95201
|
+
this.documentIdentifier = config2.documentIdentifier;
|
|
94769
95202
|
this.superdocVersion = config2.superdocVersion;
|
|
94770
95203
|
this.sessionId = this.generateId();
|
|
94771
95204
|
}
|
|
@@ -94797,7 +95230,10 @@ ${style2}
|
|
|
94797
95230
|
type: "usage",
|
|
94798
95231
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
94799
95232
|
sessionId: this.sessionId,
|
|
94800
|
-
|
|
95233
|
+
documentGuid: this.documentGuid,
|
|
95234
|
+
// Updated field name
|
|
95235
|
+
documentIdentifier: this.documentIdentifier,
|
|
95236
|
+
// Include both
|
|
94801
95237
|
superdocVersion: this.superdocVersion,
|
|
94802
95238
|
file: this.documentInfo,
|
|
94803
95239
|
browser: this.getBrowserInfo(),
|
|
@@ -94864,13 +95300,17 @@ ${style2}
|
|
|
94864
95300
|
* Track file structure
|
|
94865
95301
|
* @param {Object} structure - File structure information
|
|
94866
95302
|
* @param {File} fileSource - original file
|
|
94867
|
-
* @param {String} documentId - document
|
|
94868
|
-
* @param {string}
|
|
95303
|
+
* @param {String} documentId - document GUID
|
|
95304
|
+
* @param {string} documentIdentifier - document identifier (GUID or hash)
|
|
95305
|
+
* @param {string} internalId - document ID from settings.xml
|
|
94869
95306
|
*/
|
|
94870
|
-
async trackFileStructure(structure, fileSource, documentId, internalId) {
|
|
95307
|
+
async trackFileStructure(structure, fileSource, documentId, documentIdentifier, internalId) {
|
|
94871
95308
|
this.fileStructure = structure;
|
|
94872
95309
|
this.documentInfo = await this.processDocument(fileSource, {
|
|
94873
|
-
|
|
95310
|
+
guid: documentId,
|
|
95311
|
+
// Updated parameter name
|
|
95312
|
+
identifier: documentIdentifier,
|
|
95313
|
+
// New parameter
|
|
94874
95314
|
internalId
|
|
94875
95315
|
});
|
|
94876
95316
|
}
|
|
@@ -94885,34 +95325,19 @@ ${style2}
|
|
|
94885
95325
|
console.warn("Telemetry: missing file source");
|
|
94886
95326
|
return {};
|
|
94887
95327
|
}
|
|
94888
|
-
let hash2 = "";
|
|
94889
|
-
try {
|
|
94890
|
-
hash2 = await this.generateCrc32Hash(file);
|
|
94891
|
-
} catch (error) {
|
|
94892
|
-
console.error("Failed to generate file hash:", error);
|
|
94893
|
-
}
|
|
94894
95328
|
return {
|
|
94895
|
-
|
|
95329
|
+
guid: options.guid,
|
|
95330
|
+
// Updated from 'id'
|
|
95331
|
+
identifier: options.identifier,
|
|
95332
|
+
// New field
|
|
94896
95333
|
name: file.name,
|
|
94897
95334
|
size: file.size,
|
|
94898
|
-
crc32: hash2,
|
|
94899
95335
|
lastModified: file.lastModified ? new Date(file.lastModified).toISOString() : null,
|
|
94900
95336
|
type: file.type || "docx",
|
|
94901
95337
|
internalId: options.internalId
|
|
95338
|
+
// Microsoft's GUID if present
|
|
94902
95339
|
};
|
|
94903
95340
|
}
|
|
94904
|
-
/**
|
|
94905
|
-
* Generate CRC32 hash for a file
|
|
94906
|
-
* @param {File} file - File to hash
|
|
94907
|
-
* @returns {Promise<string>} CRC32 hash
|
|
94908
|
-
* @private
|
|
94909
|
-
*/
|
|
94910
|
-
async generateCrc32Hash(file) {
|
|
94911
|
-
const arrayBuffer = await file.arrayBuffer();
|
|
94912
|
-
const buffer2 = Buffer.from(arrayBuffer);
|
|
94913
|
-
const hashBuffer = index(buffer2);
|
|
94914
|
-
return hashBuffer.toString("hex");
|
|
94915
|
-
}
|
|
94916
95341
|
isTelemetryDataChanged() {
|
|
94917
95342
|
const initialStatistics = {};
|
|
94918
95343
|
const initialFileStructure = {};
|
|
@@ -97457,6 +97882,9 @@ ${reason}`);
|
|
|
97457
97882
|
documentUsers.value = configUsers || [];
|
|
97458
97883
|
Object.assign(user, configUser);
|
|
97459
97884
|
Object.assign(modules, configModules);
|
|
97885
|
+
if (!Object.prototype.hasOwnProperty.call(modules, "comments")) {
|
|
97886
|
+
modules.comments = {};
|
|
97887
|
+
}
|
|
97460
97888
|
if (!configDocs?.length && !config2.modules.collaboration) {
|
|
97461
97889
|
const newDoc = await getFileObject(BlankDOCX, "blank.docx", DOCX);
|
|
97462
97890
|
const newDocConfig = {
|
|
@@ -97758,7 +98186,11 @@ ${reason}`);
|
|
|
97758
98186
|
pendingComment.value = getPendingComment({ selection, documentId: selection.documentId, parentCommentId: null });
|
|
97759
98187
|
if (!superdoc2.config.isInternal) pendingComment.value.isInternal = false;
|
|
97760
98188
|
if (superdoc2.activeEditor?.commands) {
|
|
97761
|
-
superdoc2.activeEditor.commands.insertComment({
|
|
98189
|
+
superdoc2.activeEditor.commands.insertComment({
|
|
98190
|
+
...pendingComment.value.getValues(),
|
|
98191
|
+
commentId: "pending",
|
|
98192
|
+
skipEmit: true
|
|
98193
|
+
});
|
|
97762
98194
|
}
|
|
97763
98195
|
if (pendingComment.value.selection.source === "super-editor" && superdocStore.selectionPosition) {
|
|
97764
98196
|
superdocStore.selectionPosition.source = "super-editor";
|
|
@@ -97792,7 +98224,7 @@ ${reason}`);
|
|
|
97792
98224
|
const documentsWithConverations = computed(() => {
|
|
97793
98225
|
return superdocStore.documents;
|
|
97794
98226
|
});
|
|
97795
|
-
const
|
|
98227
|
+
const getConfig2 = computed(() => {
|
|
97796
98228
|
return commentsConfig;
|
|
97797
98229
|
});
|
|
97798
98230
|
const getCommentLocation = (selection, parent) => {
|
|
@@ -97830,7 +98262,7 @@ ${reason}`);
|
|
|
97830
98262
|
superdocStore.selectionPosition = null;
|
|
97831
98263
|
superdoc2.activeEditor?.commands.removeComment({ commentId: "pending" });
|
|
97832
98264
|
};
|
|
97833
|
-
const addComment = ({ superdoc: superdoc2, comment }) => {
|
|
98265
|
+
const addComment = ({ superdoc: superdoc2, comment, skipEditorUpdate = false }) => {
|
|
97834
98266
|
let parentComment = commentsList.value.find((c2) => c2.commentId === activeComment.value);
|
|
97835
98267
|
if (!parentComment) parentComment = comment;
|
|
97836
98268
|
const newComment = useComment(comment.getValues());
|
|
@@ -97844,8 +98276,8 @@ ${reason}`);
|
|
|
97844
98276
|
if (!superdoc2.config.isInternal) newComment.isInternal = false;
|
|
97845
98277
|
commentsList.value.push(newComment);
|
|
97846
98278
|
removePendingComment(superdoc2);
|
|
97847
|
-
if (!comment.trackedChange && superdoc2.activeEditor?.commands && !comment.parentCommentId) {
|
|
97848
|
-
superdoc2.activeEditor.commands.insertComment(newComment.getValues());
|
|
98279
|
+
if (!skipEditorUpdate && !comment.trackedChange && superdoc2.activeEditor?.commands && !comment.parentCommentId) {
|
|
98280
|
+
superdoc2.activeEditor.commands.insertComment({ ...newComment.getValues(), skipEmit: true });
|
|
97849
98281
|
}
|
|
97850
98282
|
const event = { type: COMMENT_EVENTS.ADD, comment: newComment.getValues() };
|
|
97851
98283
|
syncCommentsToClients(superdoc2, event);
|
|
@@ -97908,7 +98340,7 @@ ${reason}`);
|
|
|
97908
98340
|
}, 0);
|
|
97909
98341
|
};
|
|
97910
98342
|
const createCommentForTrackChanges = (editor) => {
|
|
97911
|
-
let trackedChanges = index
|
|
98343
|
+
let trackedChanges = index.getTrackChanges(editor.state);
|
|
97912
98344
|
const groupedChanges = groupChanges(trackedChanges);
|
|
97913
98345
|
const { tr } = editor.view.state;
|
|
97914
98346
|
const { dispatch } = editor.view;
|
|
@@ -98047,7 +98479,7 @@ ${reason}`);
|
|
|
98047
98479
|
skipSelectionUpdate,
|
|
98048
98480
|
isFloatingCommentsReady,
|
|
98049
98481
|
// Getters
|
|
98050
|
-
getConfig,
|
|
98482
|
+
getConfig: getConfig2,
|
|
98051
98483
|
documentsWithConverations,
|
|
98052
98484
|
getGroupedComments,
|
|
98053
98485
|
getFloatingComments,
|
|
@@ -109727,7 +110159,7 @@ ${style2}
|
|
|
109727
110159
|
const { addComment, cancelComment, deleteComment, removePendingComment } = commentsStore;
|
|
109728
110160
|
const {
|
|
109729
110161
|
suppressInternalExternal,
|
|
109730
|
-
getConfig,
|
|
110162
|
+
getConfig: getConfig2,
|
|
109731
110163
|
activeComment,
|
|
109732
110164
|
floatingCommentsOffset,
|
|
109733
110165
|
pendingComment,
|
|
@@ -109744,14 +110176,14 @@ ${style2}
|
|
|
109744
110176
|
const commentDialogElement = ref$1(null);
|
|
109745
110177
|
const isActiveComment = computed(() => activeComment.value === props.comment.commentId);
|
|
109746
110178
|
const showButtons = computed(() => {
|
|
109747
|
-
return !
|
|
110179
|
+
return !getConfig2.readOnly && isActiveComment.value && !props.comment.resolvedTime && editingCommentId.value !== props.comment.commentId;
|
|
109748
110180
|
});
|
|
109749
110181
|
const showSeparator = computed(() => (index2) => {
|
|
109750
110182
|
if (showInputSection.value && index2 === comments.value.length - 1) return true;
|
|
109751
110183
|
return comments.value.length > 1 && index2 !== comments.value.length - 1;
|
|
109752
110184
|
});
|
|
109753
110185
|
const showInputSection = computed(() => {
|
|
109754
|
-
return !
|
|
110186
|
+
return !getConfig2.readOnly && isActiveComment.value && !props.comment.resolvedTime && editingCommentId.value !== props.comment.commentId;
|
|
109755
110187
|
});
|
|
109756
110188
|
const comments = computed(() => {
|
|
109757
110189
|
const parentComment = props.comment;
|
|
@@ -109763,7 +110195,7 @@ ${style2}
|
|
|
109763
110195
|
});
|
|
109764
110196
|
const isInternalDropdownDisabled = computed(() => {
|
|
109765
110197
|
if (props.comment.resolvedTime) return true;
|
|
109766
|
-
return
|
|
110198
|
+
return getConfig2.value.readOnly;
|
|
109767
110199
|
});
|
|
109768
110200
|
const isEditingThisComment = computed(() => (comment) => {
|
|
109769
110201
|
return editingCommentId.value === comment.commentId;
|
|
@@ -109939,7 +110371,7 @@ ${style2}
|
|
|
109939
110371
|
class: "conversation-item"
|
|
109940
110372
|
}, [
|
|
109941
110373
|
createVNode(CommentHeader, {
|
|
109942
|
-
config: unref(
|
|
110374
|
+
config: unref(getConfig2),
|
|
109943
110375
|
timestamp: getProcessedDate(comment.createdTime),
|
|
109944
110376
|
comment,
|
|
109945
110377
|
onResolve: handleResolve,
|
|
@@ -109972,7 +110404,7 @@ ${style2}
|
|
|
109972
110404
|
}, null, 8, _hoisted_12)) : unref(isDebugging2) && !isEditingThisComment.value(comment) ? (openBlock(), createElementBlock("div", _hoisted_13, toDisplayString(unref(editorCommentPositions)[comment.importedId !== void 0 ? comment.importedId : comment.commentId]?.bounds), 1)) : (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
109973
110405
|
createVNode(CommentInput, {
|
|
109974
110406
|
users: usersFiltered.value,
|
|
109975
|
-
config: unref(
|
|
110407
|
+
config: unref(getConfig2),
|
|
109976
110408
|
"include-header": false,
|
|
109977
110409
|
comment
|
|
109978
110410
|
}, null, 8, ["users", "config", "comment"]),
|
|
@@ -109991,15 +110423,15 @@ ${style2}
|
|
|
109991
110423
|
showSeparator.value(index2) ? (openBlock(), createElementBlock("div", _hoisted_18)) : createCommentVNode("", true)
|
|
109992
110424
|
]);
|
|
109993
110425
|
}), 128)),
|
|
109994
|
-
showInputSection.value && !unref(
|
|
110426
|
+
showInputSection.value && !unref(getConfig2).readOnly ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
109995
110427
|
createVNode(CommentInput, {
|
|
109996
110428
|
ref_key: "commentInput",
|
|
109997
110429
|
ref: commentInput,
|
|
109998
110430
|
users: usersFiltered.value,
|
|
109999
|
-
config: unref(
|
|
110431
|
+
config: unref(getConfig2),
|
|
110000
110432
|
comment: props.comment
|
|
110001
110433
|
}, null, 8, ["users", "config", "comment"]),
|
|
110002
|
-
showButtons.value && !unref(
|
|
110434
|
+
showButtons.value && !unref(getConfig2).readOnly ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
110003
110435
|
createBaseVNode("button", {
|
|
110004
110436
|
class: "sd-button",
|
|
110005
110437
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => unref(cancelComment) && unref(cancelComment)(...args), ["stop", "prevent"]))
|
|
@@ -111027,7 +111459,7 @@ ${style2}
|
|
|
111027
111459
|
} = storeToRefs(superdocStore);
|
|
111028
111460
|
const { handlePageReady, modules, user, getDocument } = superdocStore;
|
|
111029
111461
|
const {
|
|
111030
|
-
getConfig,
|
|
111462
|
+
getConfig: getConfig2,
|
|
111031
111463
|
documentsWithConverations,
|
|
111032
111464
|
commentsList,
|
|
111033
111465
|
pendingComment,
|
|
@@ -111043,10 +111475,22 @@ ${style2}
|
|
|
111043
111475
|
hasInitializedLocations,
|
|
111044
111476
|
isCommentHighlighted
|
|
111045
111477
|
} = storeToRefs(commentsStore);
|
|
111046
|
-
const {
|
|
111478
|
+
const {
|
|
111479
|
+
showAddComment,
|
|
111480
|
+
handleEditorLocationsUpdate,
|
|
111481
|
+
handleTrackedChangeUpdate,
|
|
111482
|
+
addComment,
|
|
111483
|
+
getComment,
|
|
111484
|
+
COMMENT_EVENTS
|
|
111485
|
+
} = commentsStore;
|
|
111047
111486
|
const { proxy } = getCurrentInstance();
|
|
111048
111487
|
commentsStore.proxy = proxy;
|
|
111049
111488
|
const { isHighContrastMode: isHighContrastMode2 } = useHighContrastMode();
|
|
111489
|
+
const commentsModuleConfig = computed(() => {
|
|
111490
|
+
const config2 = modules.comments;
|
|
111491
|
+
if (config2 === false || config2 == null) return null;
|
|
111492
|
+
return config2;
|
|
111493
|
+
});
|
|
111050
111494
|
const layers = ref$1(null);
|
|
111051
111495
|
const commentsLayer = ref$1(null);
|
|
111052
111496
|
const toolsMenuPosition = reactive({ top: null, right: "-25px", zIndex: 101 });
|
|
@@ -111194,7 +111638,7 @@ ${style2}
|
|
|
111194
111638
|
rulers: doc2.rulers,
|
|
111195
111639
|
isInternal: proxy.$superdoc.config.isInternal,
|
|
111196
111640
|
annotations: proxy.$superdoc.config.annotations,
|
|
111197
|
-
isCommentsEnabled:
|
|
111641
|
+
isCommentsEnabled: Boolean(commentsModuleConfig.value),
|
|
111198
111642
|
isAiEnabled: proxy.$superdoc.config.modules?.ai,
|
|
111199
111643
|
slashMenuConfig: proxy.$superdoc.config.modules?.slashMenu,
|
|
111200
111644
|
onBeforeCreate: onEditorBeforeCreate,
|
|
@@ -111225,11 +111669,38 @@ ${style2}
|
|
|
111225
111669
|
return options;
|
|
111226
111670
|
};
|
|
111227
111671
|
const onEditorCommentLocationsUpdate = ({ allCommentIds: activeThreadId, allCommentPositions }) => {
|
|
111228
|
-
|
|
111672
|
+
const commentsConfig = proxy.$superdoc.config.modules?.comments;
|
|
111673
|
+
if (!commentsConfig || commentsConfig === false) return;
|
|
111229
111674
|
handleEditorLocationsUpdate(allCommentPositions, activeThreadId);
|
|
111230
111675
|
};
|
|
111231
111676
|
const onEditorCommentsUpdate = (params2 = {}) => {
|
|
111232
|
-
|
|
111677
|
+
let { activeCommentId, type: type2, comment: commentPayload } = params2;
|
|
111678
|
+
if (COMMENT_EVENTS?.ADD && type2 === COMMENT_EVENTS.ADD && commentPayload) {
|
|
111679
|
+
if (!commentPayload.commentText && commentPayload.text) {
|
|
111680
|
+
commentPayload.commentText = commentPayload.text;
|
|
111681
|
+
}
|
|
111682
|
+
const currentUser = proxy.$superdoc?.user;
|
|
111683
|
+
if (currentUser) {
|
|
111684
|
+
if (!commentPayload.creatorName) commentPayload.creatorName = currentUser.name;
|
|
111685
|
+
if (!commentPayload.creatorEmail) commentPayload.creatorEmail = currentUser.email;
|
|
111686
|
+
}
|
|
111687
|
+
if (!commentPayload.createdTime) commentPayload.createdTime = Date.now();
|
|
111688
|
+
const primaryDocumentId = commentPayload.documentId || documents.value?.[0]?.id;
|
|
111689
|
+
if (!commentPayload.documentId && primaryDocumentId) {
|
|
111690
|
+
commentPayload.documentId = primaryDocumentId;
|
|
111691
|
+
}
|
|
111692
|
+
if (!commentPayload.fileId && primaryDocumentId) {
|
|
111693
|
+
commentPayload.fileId = primaryDocumentId;
|
|
111694
|
+
}
|
|
111695
|
+
const id = commentPayload.commentId || commentPayload.importedId;
|
|
111696
|
+
if (id && !getComment(id)) {
|
|
111697
|
+
const commentModel = useComment(commentPayload);
|
|
111698
|
+
addComment({ superdoc: proxy.$superdoc, comment: commentModel, skipEditorUpdate: true });
|
|
111699
|
+
}
|
|
111700
|
+
if (!activeCommentId && id) {
|
|
111701
|
+
activeCommentId = id;
|
|
111702
|
+
}
|
|
111703
|
+
}
|
|
111233
111704
|
if (type2 === "trackedChange") {
|
|
111234
111705
|
handleTrackedChangeUpdate({ superdoc: proxy.$superdoc, params: params2 });
|
|
111235
111706
|
}
|
|
@@ -111247,23 +111718,24 @@ ${style2}
|
|
|
111247
111718
|
proxy.$superdoc.config.onTransaction({ editor, transaction, duration: duration2 });
|
|
111248
111719
|
}
|
|
111249
111720
|
};
|
|
111250
|
-
const isCommentsEnabled = computed(() =>
|
|
111721
|
+
const isCommentsEnabled = computed(() => Boolean(commentsModuleConfig.value));
|
|
111251
111722
|
const showCommentsSidebar = computed(() => {
|
|
111252
111723
|
return pendingComment.value || getFloatingComments.value?.length > 0 && isReady.value && layers.value && isCommentsEnabled.value && !isCommentsListVisible.value;
|
|
111253
111724
|
});
|
|
111254
111725
|
const showToolsFloatingMenu = computed(() => {
|
|
111255
111726
|
if (!isCommentsEnabled.value) return false;
|
|
111256
|
-
return toolsMenuPosition.top && !
|
|
111727
|
+
return toolsMenuPosition.top && !getConfig2.value?.readOnly;
|
|
111257
111728
|
});
|
|
111258
111729
|
computed(() => {
|
|
111259
111730
|
if (!isCommentsEnabled.value) return false;
|
|
111260
|
-
!
|
|
111731
|
+
return !getConfig2.value?.readOnly && selectionPosition.value;
|
|
111261
111732
|
});
|
|
111262
111733
|
watch(showCommentsSidebar, (value) => {
|
|
111263
111734
|
proxy.$superdoc.broadcastSidebarToggle(value);
|
|
111264
111735
|
});
|
|
111265
111736
|
const scrollToComment = (commentId) => {
|
|
111266
|
-
|
|
111737
|
+
const commentsConfig = proxy.$superdoc.config?.modules?.comments;
|
|
111738
|
+
if (!commentsConfig || commentsConfig === false) return;
|
|
111267
111739
|
const element = document.querySelector(`[data-thread-id=${commentId}]`);
|
|
111268
111740
|
if (element) {
|
|
111269
111741
|
element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -111271,7 +111743,8 @@ ${style2}
|
|
|
111271
111743
|
}
|
|
111272
111744
|
};
|
|
111273
111745
|
onMounted(() => {
|
|
111274
|
-
|
|
111746
|
+
const config2 = commentsModuleConfig.value;
|
|
111747
|
+
if (config2 && !config2.readOnly) {
|
|
111275
111748
|
document.addEventListener("mousedown", handleDocumentMouseDown);
|
|
111276
111749
|
}
|
|
111277
111750
|
});
|
|
@@ -111393,6 +111866,7 @@ ${style2}
|
|
|
111393
111866
|
};
|
|
111394
111867
|
const shouldShowSelection = computed(() => {
|
|
111395
111868
|
const config2 = proxy.$superdoc.config.modules?.comments;
|
|
111869
|
+
if (!config2 || config2 === false) return false;
|
|
111396
111870
|
return !config2.readOnly;
|
|
111397
111871
|
});
|
|
111398
111872
|
const handleSuperEditorPageMarginsChange = (doc2, params2) => {
|
|
@@ -111559,7 +112033,7 @@ ${style2}
|
|
|
111559
112033
|
};
|
|
111560
112034
|
}
|
|
111561
112035
|
};
|
|
111562
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
112036
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-96983cf9"]]);
|
|
111563
112037
|
const createSuperdocVueApp = () => {
|
|
111564
112038
|
const app = createApp(App);
|
|
111565
112039
|
const pinia = createPinia();
|
|
@@ -111658,6 +112132,10 @@ ${style2}
|
|
|
111658
112132
|
...this.config,
|
|
111659
112133
|
...config2
|
|
111660
112134
|
};
|
|
112135
|
+
this.config.modules = this.config.modules || {};
|
|
112136
|
+
if (!Object.prototype.hasOwnProperty.call(this.config.modules, "comments")) {
|
|
112137
|
+
this.config.modules.comments = {};
|
|
112138
|
+
}
|
|
111661
112139
|
this.config.colors = shuffleArray(this.config.colors);
|
|
111662
112140
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
111663
112141
|
this.colorIndex = 0;
|
|
@@ -111792,7 +112270,8 @@ ${style2}
|
|
|
111792
112270
|
this.superdocStore.setExceptionHandler((payload) => this.emit("exception", payload));
|
|
111793
112271
|
}
|
|
111794
112272
|
this.superdocStore.init(this.config);
|
|
111795
|
-
this.
|
|
112273
|
+
const commentsModuleConfig = this.config.modules.comments;
|
|
112274
|
+
this.commentsStore.init(commentsModuleConfig && commentsModuleConfig !== false ? commentsModuleConfig : {});
|
|
111796
112275
|
}
|
|
111797
112276
|
#initListeners() {
|
|
111798
112277
|
this.on("editorBeforeCreate", this.config.onEditorBeforeCreate);
|
|
@@ -112142,15 +112621,8 @@ ${style2}
|
|
|
112142
112621
|
}
|
|
112143
112622
|
/**
|
|
112144
112623
|
* Export the superdoc to a file
|
|
112145
|
-
* @param {
|
|
112146
|
-
* @
|
|
112147
|
-
* @param {string} [params.commentsType]
|
|
112148
|
-
* @param {string} [params.exportedName]
|
|
112149
|
-
* @param {Array} [params.additionalFiles]
|
|
112150
|
-
* @param {Array} [params.additionalFileNames]
|
|
112151
|
-
* @param {boolean} [params.isFinalDoc]
|
|
112152
|
-
* @param {boolean} [params.triggerDownload] Whether to trigger the download of the exported file
|
|
112153
|
-
* @returns {Promise<void | Blob>} Returns void if triggerDownload is false, otherwise returns the exported file
|
|
112624
|
+
* @param {ExportParams} params - Export configuration
|
|
112625
|
+
* @returns {Promise<void | Blob>}
|
|
112154
112626
|
*/
|
|
112155
112627
|
async export({
|
|
112156
112628
|
exportType = ["docx"],
|
|
@@ -112601,7 +113073,7 @@ ${style2}
|
|
|
112601
113073
|
exports2.getRichTextExtensions = getRichTextExtensions;
|
|
112602
113074
|
exports2.registeredHandlers = registeredHandlers;
|
|
112603
113075
|
exports2.superEditorHelpers = helpers;
|
|
112604
|
-
exports2.trackChangesHelpers = index
|
|
113076
|
+
exports2.trackChangesHelpers = index;
|
|
112605
113077
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
112606
113078
|
}));
|
|
112607
113079
|
//# sourceMappingURL=superdoc.umd.js.map
|