@harbour-enterprises/superdoc 0.23.0-next.2 → 0.23.0-next.20
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-BIyyMlj5.cjs} +2 -2
- package/dist/chunks/{PdfViewer-MPmm-SUD.es.js → PdfViewer-BgDqtrWg.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-CJj1CDwm.es.js} +98 -356
- package/dist/chunks/{index-CdJOxoqt.cjs → index-DPjesQ6E.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-DgYHEl7L.cjs} +1459 -733
- package/dist/chunks/{super-editor.es-DQnqUJZs.es.js → super-editor.es-f9MFI0Ev.es.js} +1459 -733
- 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-wrgxIFCy.js} +1305 -845
- package/dist/super-editor/chunks/{docx-zipper-Cpb9d2an.js → docx-zipper-DIilDv93.js} +1 -1
- package/dist/super-editor/chunks/{editor-DIINh50j.js → editor-C_9lsXSt.js} +345 -92
- package/dist/super-editor/chunks/{toolbar-CmDmkPHL.js → toolbar-BS-RUJ1x.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 +1600 -1132
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const vue = require("./vue-
|
|
2
|
+
const vue = require("./vue-DKMj1I9B.cjs");
|
|
3
3
|
const Y = require("yjs");
|
|
4
4
|
function _interopNamespaceDefault(e) {
|
|
5
5
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -27,11 +27,7 @@ var __publicField$2 = (obj, key2, value) => __defNormalProp$2(obj, typeof key2 !
|
|
|
27
27
|
var __accessCheck$2 = (obj, member, msg2) => member.has(obj) || __typeError$2("Cannot " + msg2);
|
|
28
28
|
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);
|
|
29
29
|
var __privateMethod$2 = (obj, member, method) => (__accessCheck$2(obj, member, "access private method"), method);
|
|
30
|
-
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;
|
|
31
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof vue.global !== "undefined" ? vue.global : typeof self !== "undefined" ? self : {};
|
|
32
|
-
function getDefaultExportFromCjs$1(x) {
|
|
33
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
34
|
-
}
|
|
30
|
+
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;
|
|
35
31
|
var buffer = {};
|
|
36
32
|
var base64Js = {};
|
|
37
33
|
base64Js.byteLength = byteLength;
|
|
@@ -1798,6 +1794,10 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
1798
1794
|
}
|
|
1799
1795
|
})(buffer);
|
|
1800
1796
|
const Buffer2 = buffer.Buffer;
|
|
1797
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof vue.global !== "undefined" ? vue.global : typeof self !== "undefined" ? self : {};
|
|
1798
|
+
function getDefaultExportFromCjs$2(x) {
|
|
1799
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1800
|
+
}
|
|
1801
1801
|
var sax = {};
|
|
1802
1802
|
var events$1 = { exports: {} };
|
|
1803
1803
|
var hasRequiredEvents;
|
|
@@ -2200,7 +2200,7 @@ function requireInherits_browser() {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
return inherits_browser.exports;
|
|
2202
2202
|
}
|
|
2203
|
-
function getDefaultExportFromCjs(x) {
|
|
2203
|
+
function getDefaultExportFromCjs$1(x) {
|
|
2204
2204
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2205
2205
|
}
|
|
2206
2206
|
var browser$1 = { exports: {} };
|
|
@@ -2361,7 +2361,7 @@ process$1.umask = function() {
|
|
|
2361
2361
|
return 0;
|
|
2362
2362
|
};
|
|
2363
2363
|
var browserExports = browser$1.exports;
|
|
2364
|
-
const process$1$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
2364
|
+
const process$1$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(browserExports);
|
|
2365
2365
|
var streamBrowser;
|
|
2366
2366
|
var hasRequiredStreamBrowser;
|
|
2367
2367
|
function requireStreamBrowser() {
|
|
@@ -5111,6 +5111,19 @@ function requireSafeRegexTest() {
|
|
|
5111
5111
|
};
|
|
5112
5112
|
return safeRegexTest;
|
|
5113
5113
|
}
|
|
5114
|
+
var generatorFunction;
|
|
5115
|
+
var hasRequiredGeneratorFunction;
|
|
5116
|
+
function requireGeneratorFunction() {
|
|
5117
|
+
if (hasRequiredGeneratorFunction) return generatorFunction;
|
|
5118
|
+
hasRequiredGeneratorFunction = 1;
|
|
5119
|
+
const cached = (
|
|
5120
|
+
/** @type {GeneratorFunctionConstructor} */
|
|
5121
|
+
function* () {
|
|
5122
|
+
}.constructor
|
|
5123
|
+
);
|
|
5124
|
+
generatorFunction = () => cached;
|
|
5125
|
+
return generatorFunction;
|
|
5126
|
+
}
|
|
5114
5127
|
var isGeneratorFunction;
|
|
5115
5128
|
var hasRequiredIsGeneratorFunction;
|
|
5116
5129
|
function requireIsGeneratorFunction() {
|
|
@@ -5123,16 +5136,7 @@ function requireIsGeneratorFunction() {
|
|
|
5123
5136
|
var getProto2 = requireGetProto();
|
|
5124
5137
|
var toStr = callBound2("Object.prototype.toString");
|
|
5125
5138
|
var fnToStr = callBound2("Function.prototype.toString");
|
|
5126
|
-
var
|
|
5127
|
-
if (!hasToStringTag) {
|
|
5128
|
-
return false;
|
|
5129
|
-
}
|
|
5130
|
-
try {
|
|
5131
|
-
return Function("return function*() {}")();
|
|
5132
|
-
} catch (e) {
|
|
5133
|
-
}
|
|
5134
|
-
};
|
|
5135
|
-
var GeneratorFunction;
|
|
5139
|
+
var getGeneratorFunction = /* @__PURE__ */ requireGeneratorFunction();
|
|
5136
5140
|
isGeneratorFunction = function isGeneratorFunction2(fn2) {
|
|
5137
5141
|
if (typeof fn2 !== "function") {
|
|
5138
5142
|
return false;
|
|
@@ -5147,14 +5151,8 @@ function requireIsGeneratorFunction() {
|
|
|
5147
5151
|
if (!getProto2) {
|
|
5148
5152
|
return false;
|
|
5149
5153
|
}
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
GeneratorFunction = generatorFunc ? (
|
|
5153
|
-
/** @type {GeneratorFunctionConstructor} */
|
|
5154
|
-
getProto2(generatorFunc)
|
|
5155
|
-
) : false;
|
|
5156
|
-
}
|
|
5157
|
-
return getProto2(fn2) === GeneratorFunction;
|
|
5154
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
5155
|
+
return GeneratorFunction && getProto2(fn2) === GeneratorFunction.prototype;
|
|
5158
5156
|
};
|
|
5159
5157
|
return isGeneratorFunction;
|
|
5160
5158
|
}
|
|
@@ -11348,7 +11346,7 @@ function requireLib() {
|
|
|
11348
11346
|
return lib;
|
|
11349
11347
|
}
|
|
11350
11348
|
var libExports = requireLib();
|
|
11351
|
-
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
11349
|
+
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$2(libExports);
|
|
11352
11350
|
var getRandomValues;
|
|
11353
11351
|
var rnds8 = new Uint8Array(16);
|
|
11354
11352
|
function rng() {
|
|
@@ -11383,6 +11381,306 @@ function v4(options, buf, offset2) {
|
|
|
11383
11381
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11384
11382
|
return stringify(rnds);
|
|
11385
11383
|
}
|
|
11384
|
+
function getDefaultExportFromCjs(x) {
|
|
11385
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11386
|
+
}
|
|
11387
|
+
const CRC_TABLE = new Int32Array([
|
|
11388
|
+
0,
|
|
11389
|
+
1996959894,
|
|
11390
|
+
3993919788,
|
|
11391
|
+
2567524794,
|
|
11392
|
+
124634137,
|
|
11393
|
+
1886057615,
|
|
11394
|
+
3915621685,
|
|
11395
|
+
2657392035,
|
|
11396
|
+
249268274,
|
|
11397
|
+
2044508324,
|
|
11398
|
+
3772115230,
|
|
11399
|
+
2547177864,
|
|
11400
|
+
162941995,
|
|
11401
|
+
2125561021,
|
|
11402
|
+
3887607047,
|
|
11403
|
+
2428444049,
|
|
11404
|
+
498536548,
|
|
11405
|
+
1789927666,
|
|
11406
|
+
4089016648,
|
|
11407
|
+
2227061214,
|
|
11408
|
+
450548861,
|
|
11409
|
+
1843258603,
|
|
11410
|
+
4107580753,
|
|
11411
|
+
2211677639,
|
|
11412
|
+
325883990,
|
|
11413
|
+
1684777152,
|
|
11414
|
+
4251122042,
|
|
11415
|
+
2321926636,
|
|
11416
|
+
335633487,
|
|
11417
|
+
1661365465,
|
|
11418
|
+
4195302755,
|
|
11419
|
+
2366115317,
|
|
11420
|
+
997073096,
|
|
11421
|
+
1281953886,
|
|
11422
|
+
3579855332,
|
|
11423
|
+
2724688242,
|
|
11424
|
+
1006888145,
|
|
11425
|
+
1258607687,
|
|
11426
|
+
3524101629,
|
|
11427
|
+
2768942443,
|
|
11428
|
+
901097722,
|
|
11429
|
+
1119000684,
|
|
11430
|
+
3686517206,
|
|
11431
|
+
2898065728,
|
|
11432
|
+
853044451,
|
|
11433
|
+
1172266101,
|
|
11434
|
+
3705015759,
|
|
11435
|
+
2882616665,
|
|
11436
|
+
651767980,
|
|
11437
|
+
1373503546,
|
|
11438
|
+
3369554304,
|
|
11439
|
+
3218104598,
|
|
11440
|
+
565507253,
|
|
11441
|
+
1454621731,
|
|
11442
|
+
3485111705,
|
|
11443
|
+
3099436303,
|
|
11444
|
+
671266974,
|
|
11445
|
+
1594198024,
|
|
11446
|
+
3322730930,
|
|
11447
|
+
2970347812,
|
|
11448
|
+
795835527,
|
|
11449
|
+
1483230225,
|
|
11450
|
+
3244367275,
|
|
11451
|
+
3060149565,
|
|
11452
|
+
1994146192,
|
|
11453
|
+
31158534,
|
|
11454
|
+
2563907772,
|
|
11455
|
+
4023717930,
|
|
11456
|
+
1907459465,
|
|
11457
|
+
112637215,
|
|
11458
|
+
2680153253,
|
|
11459
|
+
3904427059,
|
|
11460
|
+
2013776290,
|
|
11461
|
+
251722036,
|
|
11462
|
+
2517215374,
|
|
11463
|
+
3775830040,
|
|
11464
|
+
2137656763,
|
|
11465
|
+
141376813,
|
|
11466
|
+
2439277719,
|
|
11467
|
+
3865271297,
|
|
11468
|
+
1802195444,
|
|
11469
|
+
476864866,
|
|
11470
|
+
2238001368,
|
|
11471
|
+
4066508878,
|
|
11472
|
+
1812370925,
|
|
11473
|
+
453092731,
|
|
11474
|
+
2181625025,
|
|
11475
|
+
4111451223,
|
|
11476
|
+
1706088902,
|
|
11477
|
+
314042704,
|
|
11478
|
+
2344532202,
|
|
11479
|
+
4240017532,
|
|
11480
|
+
1658658271,
|
|
11481
|
+
366619977,
|
|
11482
|
+
2362670323,
|
|
11483
|
+
4224994405,
|
|
11484
|
+
1303535960,
|
|
11485
|
+
984961486,
|
|
11486
|
+
2747007092,
|
|
11487
|
+
3569037538,
|
|
11488
|
+
1256170817,
|
|
11489
|
+
1037604311,
|
|
11490
|
+
2765210733,
|
|
11491
|
+
3554079995,
|
|
11492
|
+
1131014506,
|
|
11493
|
+
879679996,
|
|
11494
|
+
2909243462,
|
|
11495
|
+
3663771856,
|
|
11496
|
+
1141124467,
|
|
11497
|
+
855842277,
|
|
11498
|
+
2852801631,
|
|
11499
|
+
3708648649,
|
|
11500
|
+
1342533948,
|
|
11501
|
+
654459306,
|
|
11502
|
+
3188396048,
|
|
11503
|
+
3373015174,
|
|
11504
|
+
1466479909,
|
|
11505
|
+
544179635,
|
|
11506
|
+
3110523913,
|
|
11507
|
+
3462522015,
|
|
11508
|
+
1591671054,
|
|
11509
|
+
702138776,
|
|
11510
|
+
2966460450,
|
|
11511
|
+
3352799412,
|
|
11512
|
+
1504918807,
|
|
11513
|
+
783551873,
|
|
11514
|
+
3082640443,
|
|
11515
|
+
3233442989,
|
|
11516
|
+
3988292384,
|
|
11517
|
+
2596254646,
|
|
11518
|
+
62317068,
|
|
11519
|
+
1957810842,
|
|
11520
|
+
3939845945,
|
|
11521
|
+
2647816111,
|
|
11522
|
+
81470997,
|
|
11523
|
+
1943803523,
|
|
11524
|
+
3814918930,
|
|
11525
|
+
2489596804,
|
|
11526
|
+
225274430,
|
|
11527
|
+
2053790376,
|
|
11528
|
+
3826175755,
|
|
11529
|
+
2466906013,
|
|
11530
|
+
167816743,
|
|
11531
|
+
2097651377,
|
|
11532
|
+
4027552580,
|
|
11533
|
+
2265490386,
|
|
11534
|
+
503444072,
|
|
11535
|
+
1762050814,
|
|
11536
|
+
4150417245,
|
|
11537
|
+
2154129355,
|
|
11538
|
+
426522225,
|
|
11539
|
+
1852507879,
|
|
11540
|
+
4275313526,
|
|
11541
|
+
2312317920,
|
|
11542
|
+
282753626,
|
|
11543
|
+
1742555852,
|
|
11544
|
+
4189708143,
|
|
11545
|
+
2394877945,
|
|
11546
|
+
397917763,
|
|
11547
|
+
1622183637,
|
|
11548
|
+
3604390888,
|
|
11549
|
+
2714866558,
|
|
11550
|
+
953729732,
|
|
11551
|
+
1340076626,
|
|
11552
|
+
3518719985,
|
|
11553
|
+
2797360999,
|
|
11554
|
+
1068828381,
|
|
11555
|
+
1219638859,
|
|
11556
|
+
3624741850,
|
|
11557
|
+
2936675148,
|
|
11558
|
+
906185462,
|
|
11559
|
+
1090812512,
|
|
11560
|
+
3747672003,
|
|
11561
|
+
2825379669,
|
|
11562
|
+
829329135,
|
|
11563
|
+
1181335161,
|
|
11564
|
+
3412177804,
|
|
11565
|
+
3160834842,
|
|
11566
|
+
628085408,
|
|
11567
|
+
1382605366,
|
|
11568
|
+
3423369109,
|
|
11569
|
+
3138078467,
|
|
11570
|
+
570562233,
|
|
11571
|
+
1426400815,
|
|
11572
|
+
3317316542,
|
|
11573
|
+
2998733608,
|
|
11574
|
+
733239954,
|
|
11575
|
+
1555261956,
|
|
11576
|
+
3268935591,
|
|
11577
|
+
3050360625,
|
|
11578
|
+
752459403,
|
|
11579
|
+
1541320221,
|
|
11580
|
+
2607071920,
|
|
11581
|
+
3965973030,
|
|
11582
|
+
1969922972,
|
|
11583
|
+
40735498,
|
|
11584
|
+
2617837225,
|
|
11585
|
+
3943577151,
|
|
11586
|
+
1913087877,
|
|
11587
|
+
83908371,
|
|
11588
|
+
2512341634,
|
|
11589
|
+
3803740692,
|
|
11590
|
+
2075208622,
|
|
11591
|
+
213261112,
|
|
11592
|
+
2463272603,
|
|
11593
|
+
3855990285,
|
|
11594
|
+
2094854071,
|
|
11595
|
+
198958881,
|
|
11596
|
+
2262029012,
|
|
11597
|
+
4057260610,
|
|
11598
|
+
1759359992,
|
|
11599
|
+
534414190,
|
|
11600
|
+
2176718541,
|
|
11601
|
+
4139329115,
|
|
11602
|
+
1873836001,
|
|
11603
|
+
414664567,
|
|
11604
|
+
2282248934,
|
|
11605
|
+
4279200368,
|
|
11606
|
+
1711684554,
|
|
11607
|
+
285281116,
|
|
11608
|
+
2405801727,
|
|
11609
|
+
4167216745,
|
|
11610
|
+
1634467795,
|
|
11611
|
+
376229701,
|
|
11612
|
+
2685067896,
|
|
11613
|
+
3608007406,
|
|
11614
|
+
1308918612,
|
|
11615
|
+
956543938,
|
|
11616
|
+
2808555105,
|
|
11617
|
+
3495958263,
|
|
11618
|
+
1231636301,
|
|
11619
|
+
1047427035,
|
|
11620
|
+
2932959818,
|
|
11621
|
+
3654703836,
|
|
11622
|
+
1088359270,
|
|
11623
|
+
936918e3,
|
|
11624
|
+
2847714899,
|
|
11625
|
+
3736837829,
|
|
11626
|
+
1202900863,
|
|
11627
|
+
817233897,
|
|
11628
|
+
3183342108,
|
|
11629
|
+
3401237130,
|
|
11630
|
+
1404277552,
|
|
11631
|
+
615818150,
|
|
11632
|
+
3134207493,
|
|
11633
|
+
3453421203,
|
|
11634
|
+
1423857449,
|
|
11635
|
+
601450431,
|
|
11636
|
+
3009837614,
|
|
11637
|
+
3294710456,
|
|
11638
|
+
1567103746,
|
|
11639
|
+
711928724,
|
|
11640
|
+
3020668471,
|
|
11641
|
+
3272380065,
|
|
11642
|
+
1510334235,
|
|
11643
|
+
755167117
|
|
11644
|
+
]);
|
|
11645
|
+
function ensureBuffer(input) {
|
|
11646
|
+
if (Buffer2.isBuffer(input)) {
|
|
11647
|
+
return input;
|
|
11648
|
+
}
|
|
11649
|
+
if (typeof input === "number") {
|
|
11650
|
+
return Buffer2.alloc(input);
|
|
11651
|
+
} else if (typeof input === "string") {
|
|
11652
|
+
return Buffer2.from(input);
|
|
11653
|
+
} else {
|
|
11654
|
+
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
11655
|
+
}
|
|
11656
|
+
}
|
|
11657
|
+
function bufferizeInt(num) {
|
|
11658
|
+
const tmp = ensureBuffer(4);
|
|
11659
|
+
tmp.writeInt32BE(num, 0);
|
|
11660
|
+
return tmp;
|
|
11661
|
+
}
|
|
11662
|
+
function _crc32(buf, previous) {
|
|
11663
|
+
buf = ensureBuffer(buf);
|
|
11664
|
+
if (Buffer2.isBuffer(previous)) {
|
|
11665
|
+
previous = previous.readUInt32BE(0);
|
|
11666
|
+
}
|
|
11667
|
+
let crc = ~~previous ^ -1;
|
|
11668
|
+
for (var n = 0; n < buf.length; n++) {
|
|
11669
|
+
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
11670
|
+
}
|
|
11671
|
+
return crc ^ -1;
|
|
11672
|
+
}
|
|
11673
|
+
function crc32() {
|
|
11674
|
+
return bufferizeInt(_crc32.apply(null, arguments));
|
|
11675
|
+
}
|
|
11676
|
+
crc32.signed = function() {
|
|
11677
|
+
return _crc32.apply(null, arguments);
|
|
11678
|
+
};
|
|
11679
|
+
crc32.unsigned = function() {
|
|
11680
|
+
return _crc32.apply(null, arguments) >>> 0;
|
|
11681
|
+
};
|
|
11682
|
+
var bufferCrc32 = crc32;
|
|
11683
|
+
const index$2 = /* @__PURE__ */ getDefaultExportFromCjs(bufferCrc32);
|
|
11386
11684
|
function callOrGet(value, context = null, ...props) {
|
|
11387
11685
|
if (typeof value === "function") {
|
|
11388
11686
|
if (context) return value.bind(context)(...props);
|
|
@@ -15064,18 +15362,6 @@ const DEFAULT_CUSTOM_XML = {
|
|
|
15064
15362
|
}
|
|
15065
15363
|
]
|
|
15066
15364
|
};
|
|
15067
|
-
const SETTINGS_CUSTOM_XML = {
|
|
15068
|
-
elements: [
|
|
15069
|
-
{
|
|
15070
|
-
type: "element",
|
|
15071
|
-
name: "w:settings",
|
|
15072
|
-
attributes: {
|
|
15073
|
-
"xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
15074
|
-
},
|
|
15075
|
-
elements: []
|
|
15076
|
-
}
|
|
15077
|
-
]
|
|
15078
|
-
};
|
|
15079
15365
|
const COMMENT_REF = {
|
|
15080
15366
|
type: "element",
|
|
15081
15367
|
name: "w:r",
|
|
@@ -16242,212 +16528,6 @@ const carbonCopy = (obj) => {
|
|
|
16242
16528
|
return void 0;
|
|
16243
16529
|
}
|
|
16244
16530
|
};
|
|
16245
|
-
function translateCommentNode(params2, type2) {
|
|
16246
|
-
const { node, commentsExportType, exportedCommentDefs = [] } = params2;
|
|
16247
|
-
if (!exportedCommentDefs.length || commentsExportType === "clean") return;
|
|
16248
|
-
const nodeId = node.attrs["w:id"];
|
|
16249
|
-
const originalComment = params2.comments.find((comment) => {
|
|
16250
|
-
return comment.commentId == nodeId;
|
|
16251
|
-
});
|
|
16252
|
-
if (!originalComment) return;
|
|
16253
|
-
const commentIndex = params2.comments?.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
16254
|
-
const parentId = originalComment.parentCommentId;
|
|
16255
|
-
let parentComment;
|
|
16256
|
-
if (parentId) {
|
|
16257
|
-
parentComment = params2.comments.find((c2) => c2.commentId === parentId || c2.importedId === parentId);
|
|
16258
|
-
}
|
|
16259
|
-
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
16260
|
-
if (commentsExportType === "external" && isInternal) return;
|
|
16261
|
-
const isResolved = !!originalComment.resolvedTime;
|
|
16262
|
-
if (isResolved) return;
|
|
16263
|
-
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
16264
|
-
if (type2 === "End") {
|
|
16265
|
-
const commentReference = {
|
|
16266
|
-
name: "w:r",
|
|
16267
|
-
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
16268
|
-
};
|
|
16269
|
-
commentSchema = [commentSchema, commentReference];
|
|
16270
|
-
}
|
|
16271
|
-
return commentSchema;
|
|
16272
|
-
}
|
|
16273
|
-
const getCommentSchema = (type2, commentId) => {
|
|
16274
|
-
return {
|
|
16275
|
-
name: `w:commentRange${type2}`,
|
|
16276
|
-
attributes: {
|
|
16277
|
-
"w:id": String(commentId)
|
|
16278
|
-
}
|
|
16279
|
-
};
|
|
16280
|
-
};
|
|
16281
|
-
const prepareCommentParaIds = (comment) => {
|
|
16282
|
-
const newComment = {
|
|
16283
|
-
...comment,
|
|
16284
|
-
commentParaId: generateRandom32BitHex()
|
|
16285
|
-
};
|
|
16286
|
-
return newComment;
|
|
16287
|
-
};
|
|
16288
|
-
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
16289
|
-
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
16290
|
-
const attributes = {
|
|
16291
|
-
"w:id": String(commentId),
|
|
16292
|
-
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
16293
|
-
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
16294
|
-
"w:date": toIsoNoFractional(comment.createdTime),
|
|
16295
|
-
"w:initials": getInitials(comment.creatorName),
|
|
16296
|
-
"w:done": comment.resolvedTime ? "1" : "0",
|
|
16297
|
-
"w15:paraId": comment.commentParaId,
|
|
16298
|
-
"custom:internalId": comment.commentId || comment.internalId,
|
|
16299
|
-
"custom:trackedChange": comment.trackedChange,
|
|
16300
|
-
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
16301
|
-
"custom:trackedChangeType": comment.trackedChangeType,
|
|
16302
|
-
"custom:trackedDeletedText": comment.deletedText || null
|
|
16303
|
-
};
|
|
16304
|
-
if (comment?.parentCommentId) {
|
|
16305
|
-
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
16306
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
16307
|
-
}
|
|
16308
|
-
return {
|
|
16309
|
-
type: "element",
|
|
16310
|
-
name: "w:comment",
|
|
16311
|
-
attributes,
|
|
16312
|
-
elements: [translatedText]
|
|
16313
|
-
};
|
|
16314
|
-
};
|
|
16315
|
-
const getInitials = (name) => {
|
|
16316
|
-
if (!name) return null;
|
|
16317
|
-
const preparedText = name.replace("(imported)", "").trim();
|
|
16318
|
-
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
16319
|
-
return initials;
|
|
16320
|
-
};
|
|
16321
|
-
const toIsoNoFractional = (unixMillis) => {
|
|
16322
|
-
const date = new Date(unixMillis || Date.now());
|
|
16323
|
-
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
16324
|
-
};
|
|
16325
|
-
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
16326
|
-
const newCommentsXml = carbonCopy(commentsXml);
|
|
16327
|
-
commentDefs.forEach((commentDef) => {
|
|
16328
|
-
const elements = commentDef.elements[0].elements;
|
|
16329
|
-
elements.unshift(COMMENT_REF);
|
|
16330
|
-
const paraId = commentDef.attributes["w15:paraId"];
|
|
16331
|
-
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
16332
|
-
commentDef.attributes = {
|
|
16333
|
-
"w:id": commentDef.attributes["w:id"],
|
|
16334
|
-
"w:author": commentDef.attributes["w:author"],
|
|
16335
|
-
"w:email": commentDef.attributes["w:email"],
|
|
16336
|
-
"w:date": commentDef.attributes["w:date"],
|
|
16337
|
-
"w:initials": commentDef.attributes["w:initials"],
|
|
16338
|
-
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
16339
|
-
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
16340
|
-
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
16341
|
-
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
16342
|
-
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
16343
|
-
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
16344
|
-
};
|
|
16345
|
-
});
|
|
16346
|
-
newCommentsXml.elements[0].elements = commentDefs;
|
|
16347
|
-
return newCommentsXml;
|
|
16348
|
-
};
|
|
16349
|
-
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
16350
|
-
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
16351
|
-
const commentsEx = comments.map((comment) => {
|
|
16352
|
-
const attributes = {
|
|
16353
|
-
"w15:paraId": comment.commentParaId,
|
|
16354
|
-
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
16355
|
-
};
|
|
16356
|
-
const parentId = comment.parentCommentId;
|
|
16357
|
-
if (parentId) {
|
|
16358
|
-
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
16359
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
16360
|
-
}
|
|
16361
|
-
return {
|
|
16362
|
-
type: "element",
|
|
16363
|
-
name: "w15:commentEx",
|
|
16364
|
-
attributes
|
|
16365
|
-
};
|
|
16366
|
-
});
|
|
16367
|
-
xmlCopy.elements[0].elements = commentsEx;
|
|
16368
|
-
return xmlCopy;
|
|
16369
|
-
};
|
|
16370
|
-
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
16371
|
-
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
16372
|
-
const extensibleUpdated = carbonCopy(extensible);
|
|
16373
|
-
documentIdsUpdated.elements[0].elements = [];
|
|
16374
|
-
extensibleUpdated.elements[0].elements = [];
|
|
16375
|
-
comments.forEach((comment) => {
|
|
16376
|
-
const newDurableId = generateRandom32BitHex();
|
|
16377
|
-
const newCommentIdDef = {
|
|
16378
|
-
type: "element",
|
|
16379
|
-
name: "w16cid:commentId",
|
|
16380
|
-
attributes: {
|
|
16381
|
-
"w16cid:paraId": comment.commentParaId,
|
|
16382
|
-
"w16cid:durableId": newDurableId
|
|
16383
|
-
}
|
|
16384
|
-
};
|
|
16385
|
-
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
16386
|
-
const newExtensible = {
|
|
16387
|
-
type: "element",
|
|
16388
|
-
name: "w16cex:commentExtensible",
|
|
16389
|
-
attributes: {
|
|
16390
|
-
"w16cex:durableId": newDurableId,
|
|
16391
|
-
"w16cex:dateUtc": toIsoNoFractional()
|
|
16392
|
-
}
|
|
16393
|
-
};
|
|
16394
|
-
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
16395
|
-
});
|
|
16396
|
-
return {
|
|
16397
|
-
documentIdsUpdated,
|
|
16398
|
-
extensibleUpdated
|
|
16399
|
-
};
|
|
16400
|
-
};
|
|
16401
|
-
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
16402
|
-
const newXml = carbonCopy(convertedXml);
|
|
16403
|
-
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
16404
|
-
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
16405
|
-
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
16406
|
-
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
16407
|
-
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
16408
|
-
return newXml;
|
|
16409
|
-
};
|
|
16410
|
-
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
16411
|
-
const updatedXml = carbonCopy(convertedXml);
|
|
16412
|
-
delete updatedXml["word/comments.xml"];
|
|
16413
|
-
delete updatedXml["word/commentsExtended.xml"];
|
|
16414
|
-
delete updatedXml["word/commentsExtensible.xml"];
|
|
16415
|
-
delete updatedXml["word/commentsIds.xml"];
|
|
16416
|
-
return updatedXml;
|
|
16417
|
-
};
|
|
16418
|
-
const generateRelationship = (target) => {
|
|
16419
|
-
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
16420
|
-
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
16421
|
-
return { ...rel };
|
|
16422
|
-
};
|
|
16423
|
-
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
16424
|
-
const relationships = [];
|
|
16425
|
-
if (exportType === "clean") {
|
|
16426
|
-
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
16427
|
-
return { documentXml, relationships };
|
|
16428
|
-
}
|
|
16429
|
-
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
16430
|
-
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
16431
|
-
relationships.push(generateRelationship("comments.xml"));
|
|
16432
|
-
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
16433
|
-
commentsWithParaIds,
|
|
16434
|
-
updatedXml["word/commentsExtended.xml"]
|
|
16435
|
-
);
|
|
16436
|
-
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
16437
|
-
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
16438
|
-
commentsWithParaIds,
|
|
16439
|
-
updatedXml["word/commentsIds.xml"],
|
|
16440
|
-
updatedXml["word/commentsExtensible.xml"]
|
|
16441
|
-
);
|
|
16442
|
-
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
16443
|
-
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
16444
|
-
relationships.push(generateRelationship("commentsIds.xml"));
|
|
16445
|
-
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
16446
|
-
return {
|
|
16447
|
-
relationships,
|
|
16448
|
-
documentXml: updatedXml
|
|
16449
|
-
};
|
|
16450
|
-
};
|
|
16451
16531
|
const lower16 = 65535;
|
|
16452
16532
|
const factor16 = Math.pow(2, 16);
|
|
16453
16533
|
function makeRecover(index2, offset2) {
|
|
@@ -17412,15 +17492,15 @@ function canSplit(doc2, pos, depth = 1, typesAfter) {
|
|
|
17412
17492
|
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)))
|
|
17413
17493
|
return false;
|
|
17414
17494
|
for (let d2 = $pos.depth - 1, i = depth - 2; d2 > base2; d2--, i--) {
|
|
17415
|
-
let node = $pos.node(d2),
|
|
17495
|
+
let node = $pos.node(d2), index3 = $pos.index(d2);
|
|
17416
17496
|
if (node.type.spec.isolating)
|
|
17417
17497
|
return false;
|
|
17418
|
-
let rest = node.content.cutByIndex(
|
|
17498
|
+
let rest = node.content.cutByIndex(index3, node.childCount);
|
|
17419
17499
|
let overrideChild = typesAfter && typesAfter[i + 1];
|
|
17420
17500
|
if (overrideChild)
|
|
17421
17501
|
rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs));
|
|
17422
17502
|
let after = typesAfter && typesAfter[i] || node;
|
|
17423
|
-
if (!node.canReplace(
|
|
17503
|
+
if (!node.canReplace(index3 + 1, node.childCount) || !after.type.validContent(rest))
|
|
17424
17504
|
return false;
|
|
17425
17505
|
}
|
|
17426
17506
|
let index2 = $pos.indexAfter(base2);
|
|
@@ -21414,6 +21494,16 @@ function stripHtmlStyles(html) {
|
|
|
21414
21494
|
if (node.nodeType !== window.Node.ELEMENT_NODE) return;
|
|
21415
21495
|
[...node.attributes].forEach((attr) => {
|
|
21416
21496
|
const name = attr.name.toLowerCase();
|
|
21497
|
+
if (node.nodeName.toLowerCase() === "span") {
|
|
21498
|
+
node.innerHTML = node.innerHTML.replace(/(\S) (<\/span>)/g, "$1 $2");
|
|
21499
|
+
}
|
|
21500
|
+
if (name === "style") {
|
|
21501
|
+
const cleanedStyle = cleanStyle(attr.value);
|
|
21502
|
+
if (!cleanedStyle) {
|
|
21503
|
+
node.removeAttribute(attr.name);
|
|
21504
|
+
} else node.setAttribute(attr.name, cleanedStyle);
|
|
21505
|
+
return;
|
|
21506
|
+
}
|
|
21417
21507
|
const shouldKeep = SUPPORTED_ATTRS.includes(name) || name.startsWith("data-");
|
|
21418
21508
|
if (!shouldKeep) {
|
|
21419
21509
|
node.removeAttribute(attr.name);
|
|
@@ -21424,6 +21514,12 @@ function stripHtmlStyles(html) {
|
|
|
21424
21514
|
cleanNode(doc2.body);
|
|
21425
21515
|
return doc2.body.innerHTML;
|
|
21426
21516
|
}
|
|
21517
|
+
function cleanStyle(style2) {
|
|
21518
|
+
if (!style2) return "";
|
|
21519
|
+
const declarations = style2.split(";").map((s) => s.trim()).filter(Boolean);
|
|
21520
|
+
const textAlign = declarations.find((d2) => d2.startsWith("text-align"));
|
|
21521
|
+
return textAlign ? `${textAlign};` : "";
|
|
21522
|
+
}
|
|
21427
21523
|
function createDocFromHTML(content, schema, options = {}) {
|
|
21428
21524
|
const { isImport = false } = options;
|
|
21429
21525
|
let parsedContent;
|
|
@@ -24384,33 +24480,33 @@ let NodeTranslator = _NodeTranslator;
|
|
|
24384
24480
|
const encode$1b = (attributes) => {
|
|
24385
24481
|
return attributes["w:type"];
|
|
24386
24482
|
};
|
|
24387
|
-
const decode$
|
|
24483
|
+
const decode$13 = (attrs) => {
|
|
24388
24484
|
const { lineBreakType } = attrs;
|
|
24389
24485
|
return lineBreakType;
|
|
24390
24486
|
};
|
|
24391
|
-
const attrConfig$
|
|
24487
|
+
const attrConfig$G = Object.freeze({
|
|
24392
24488
|
xmlName: "w:type",
|
|
24393
24489
|
sdName: "lineBreakType",
|
|
24394
24490
|
encode: encode$1b,
|
|
24395
|
-
decode: decode$
|
|
24491
|
+
decode: decode$13
|
|
24396
24492
|
});
|
|
24397
24493
|
const encode$1a = (attributes) => {
|
|
24398
24494
|
const xmlAttrValue = attributes["w:clear"];
|
|
24399
24495
|
return xmlAttrValue;
|
|
24400
24496
|
};
|
|
24401
|
-
const decode$
|
|
24497
|
+
const decode$12 = (attrs) => {
|
|
24402
24498
|
const { clear } = attrs;
|
|
24403
24499
|
return clear;
|
|
24404
24500
|
};
|
|
24405
|
-
const attrConfig$
|
|
24501
|
+
const attrConfig$F = Object.freeze({
|
|
24406
24502
|
xmlName: "w:clear",
|
|
24407
24503
|
sdName: "clear",
|
|
24408
24504
|
encode: encode$1a,
|
|
24409
|
-
decode: decode$
|
|
24505
|
+
decode: decode$12
|
|
24410
24506
|
});
|
|
24411
|
-
const validXmlAttributes$m = [attrConfig$
|
|
24412
|
-
const XML_NODE_NAME$
|
|
24413
|
-
const SD_NODE_NAME$
|
|
24507
|
+
const validXmlAttributes$m = [attrConfig$G, attrConfig$F];
|
|
24508
|
+
const XML_NODE_NAME$y = "w:br";
|
|
24509
|
+
const SD_NODE_NAME$g = "lineBreak";
|
|
24414
24510
|
const encode$19 = (_2, encodedAttrs) => {
|
|
24415
24511
|
const isPageBreak = encodedAttrs?.lineBreakType === "page";
|
|
24416
24512
|
const translated = {
|
|
@@ -24421,7 +24517,7 @@ const encode$19 = (_2, encodedAttrs) => {
|
|
|
24421
24517
|
}
|
|
24422
24518
|
return translated;
|
|
24423
24519
|
};
|
|
24424
|
-
const decode
|
|
24520
|
+
const decode$11 = (params2, decodedAttrs) => {
|
|
24425
24521
|
const { node } = params2;
|
|
24426
24522
|
if (!node) return;
|
|
24427
24523
|
const wBreak = { name: "w:br" };
|
|
@@ -24439,24 +24535,24 @@ const decode$$ = (params2, decodedAttrs) => {
|
|
|
24439
24535
|
return translated;
|
|
24440
24536
|
};
|
|
24441
24537
|
const config$v = {
|
|
24442
|
-
xmlName: XML_NODE_NAME$
|
|
24443
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
24538
|
+
xmlName: XML_NODE_NAME$y,
|
|
24539
|
+
sdNodeOrKeyName: SD_NODE_NAME$g,
|
|
24444
24540
|
type: NodeTranslator.translatorTypes.NODE,
|
|
24445
24541
|
encode: encode$19,
|
|
24446
|
-
decode: decode
|
|
24542
|
+
decode: decode$11,
|
|
24447
24543
|
attributes: validXmlAttributes$m
|
|
24448
24544
|
};
|
|
24449
24545
|
const translator$19 = NodeTranslator.from(config$v);
|
|
24450
24546
|
const encode$18 = (attributes) => attributes?.["w:val"];
|
|
24451
|
-
const decode$
|
|
24452
|
-
const attrConfig$
|
|
24547
|
+
const decode$10 = (attrs) => attrs?.highlight;
|
|
24548
|
+
const attrConfig$E = Object.freeze({
|
|
24453
24549
|
xmlName: "w:val",
|
|
24454
24550
|
sdName: "highlight",
|
|
24455
24551
|
encode: encode$18,
|
|
24456
|
-
decode: decode$
|
|
24552
|
+
decode: decode$10
|
|
24457
24553
|
});
|
|
24458
|
-
const validXmlAttributes$l = [attrConfig$
|
|
24459
|
-
const XML_NODE_NAME$
|
|
24554
|
+
const validXmlAttributes$l = [attrConfig$E];
|
|
24555
|
+
const XML_NODE_NAME$x = "w:highlight";
|
|
24460
24556
|
const SD_ATTR_KEY$g = "highlight";
|
|
24461
24557
|
const DISABLED_TOKENS = /* @__PURE__ */ new Set(["transparent", "none", "inherit"]);
|
|
24462
24558
|
const encode$17 = (params2, encodedAttrs = {}) => {
|
|
@@ -24465,12 +24561,12 @@ const encode$17 = (params2, encodedAttrs = {}) => {
|
|
|
24465
24561
|
const value = encodedAttrs.highlight ?? node?.attributes?.["w:val"];
|
|
24466
24562
|
return {
|
|
24467
24563
|
type: "attr",
|
|
24468
|
-
xmlName: XML_NODE_NAME$
|
|
24564
|
+
xmlName: XML_NODE_NAME$x,
|
|
24469
24565
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
24470
24566
|
attributes: { "w:val": value ?? null }
|
|
24471
24567
|
};
|
|
24472
24568
|
};
|
|
24473
|
-
const decode
|
|
24569
|
+
const decode$$ = (params2) => {
|
|
24474
24570
|
const attrs = params2?.node?.attrs || {};
|
|
24475
24571
|
const highlightValue = attrs.highlight ?? attrs.color ?? null;
|
|
24476
24572
|
if (!highlightValue) return void 0;
|
|
@@ -24478,14 +24574,14 @@ const decode$Z = (params2) => {
|
|
|
24478
24574
|
if (!normalizedValue) return void 0;
|
|
24479
24575
|
if (DISABLED_TOKENS.has(normalizedValue)) {
|
|
24480
24576
|
return {
|
|
24481
|
-
name: XML_NODE_NAME$
|
|
24577
|
+
name: XML_NODE_NAME$x,
|
|
24482
24578
|
attributes: { "w:val": "none" }
|
|
24483
24579
|
};
|
|
24484
24580
|
}
|
|
24485
24581
|
const keyword = getDocxHighlightKeywordFromHex(highlightValue);
|
|
24486
24582
|
if (keyword) {
|
|
24487
24583
|
return {
|
|
24488
|
-
name: XML_NODE_NAME$
|
|
24584
|
+
name: XML_NODE_NAME$x,
|
|
24489
24585
|
attributes: { "w:val": keyword }
|
|
24490
24586
|
};
|
|
24491
24587
|
}
|
|
@@ -24501,62 +24597,62 @@ const decode$Z = (params2) => {
|
|
|
24501
24597
|
};
|
|
24502
24598
|
};
|
|
24503
24599
|
const config$u = {
|
|
24504
|
-
xmlName: XML_NODE_NAME$
|
|
24600
|
+
xmlName: XML_NODE_NAME$x,
|
|
24505
24601
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
24506
24602
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
24507
24603
|
encode: encode$17,
|
|
24508
|
-
decode: decode
|
|
24604
|
+
decode: decode$$,
|
|
24509
24605
|
attributes: validXmlAttributes$l
|
|
24510
24606
|
};
|
|
24511
24607
|
const translator$18 = NodeTranslator.from(config$u);
|
|
24512
24608
|
const encode$16 = (attributes) => {
|
|
24513
24609
|
return attributes["w:val"];
|
|
24514
24610
|
};
|
|
24515
|
-
const decode$
|
|
24611
|
+
const decode$_ = (attrs) => {
|
|
24516
24612
|
const { tabSize } = attrs || {};
|
|
24517
24613
|
return tabSize;
|
|
24518
24614
|
};
|
|
24519
|
-
const attrConfig$
|
|
24615
|
+
const attrConfig$D = Object.freeze({
|
|
24520
24616
|
xmlName: "w:val",
|
|
24521
24617
|
sdName: "tabSize",
|
|
24522
24618
|
encode: encode$16,
|
|
24523
|
-
decode: decode$
|
|
24619
|
+
decode: decode$_
|
|
24524
24620
|
});
|
|
24525
24621
|
const encode$15 = (attributes) => {
|
|
24526
24622
|
return attributes["w:leader"];
|
|
24527
24623
|
};
|
|
24528
|
-
const decode$
|
|
24624
|
+
const decode$Z = (attrs) => {
|
|
24529
24625
|
const { leader } = attrs || {};
|
|
24530
24626
|
return leader;
|
|
24531
24627
|
};
|
|
24532
|
-
const attrConfig$
|
|
24628
|
+
const attrConfig$C = Object.freeze({
|
|
24533
24629
|
xmlName: "w:leader",
|
|
24534
24630
|
sdName: "leader",
|
|
24535
24631
|
encode: encode$15,
|
|
24536
|
-
decode: decode$
|
|
24632
|
+
decode: decode$Z
|
|
24537
24633
|
});
|
|
24538
24634
|
const encode$14 = (attributes) => {
|
|
24539
24635
|
return attributes["w:pos"];
|
|
24540
24636
|
};
|
|
24541
|
-
const decode$
|
|
24637
|
+
const decode$Y = (attrs) => {
|
|
24542
24638
|
const { pos } = attrs || {};
|
|
24543
24639
|
return pos;
|
|
24544
24640
|
};
|
|
24545
|
-
const attrConfig$
|
|
24641
|
+
const attrConfig$B = Object.freeze({
|
|
24546
24642
|
xmlName: "w:pos",
|
|
24547
24643
|
sdName: "pos",
|
|
24548
24644
|
encode: encode$14,
|
|
24549
|
-
decode: decode$
|
|
24645
|
+
decode: decode$Y
|
|
24550
24646
|
});
|
|
24551
|
-
const validXmlAttributes$k = [attrConfig$
|
|
24552
|
-
const XML_NODE_NAME$
|
|
24553
|
-
const SD_NODE_NAME$
|
|
24647
|
+
const validXmlAttributes$k = [attrConfig$D, attrConfig$B, attrConfig$C];
|
|
24648
|
+
const XML_NODE_NAME$w = "w:tab";
|
|
24649
|
+
const SD_NODE_NAME$f = "tab";
|
|
24554
24650
|
const encode$13 = (_2, encodedAttrs = {}) => {
|
|
24555
24651
|
const translated = { type: "tab" };
|
|
24556
24652
|
if (encodedAttrs) translated.attrs = { ...encodedAttrs };
|
|
24557
24653
|
return translated;
|
|
24558
24654
|
};
|
|
24559
|
-
const decode$
|
|
24655
|
+
const decode$X = (params2, decodedAttrs = {}) => {
|
|
24560
24656
|
const { node } = params2 || {};
|
|
24561
24657
|
if (!node) return;
|
|
24562
24658
|
const wTab = { name: "w:tab" };
|
|
@@ -24573,11 +24669,11 @@ const decode$V = (params2, decodedAttrs = {}) => {
|
|
|
24573
24669
|
return translated;
|
|
24574
24670
|
};
|
|
24575
24671
|
const config$t = {
|
|
24576
|
-
xmlName: XML_NODE_NAME$
|
|
24577
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
24672
|
+
xmlName: XML_NODE_NAME$w,
|
|
24673
|
+
sdNodeOrKeyName: SD_NODE_NAME$f,
|
|
24578
24674
|
type: NodeTranslator.translatorTypes.NODE,
|
|
24579
24675
|
encode: encode$13,
|
|
24580
|
-
decode: decode$
|
|
24676
|
+
decode: decode$X,
|
|
24581
24677
|
attributes: validXmlAttributes$k
|
|
24582
24678
|
};
|
|
24583
24679
|
const translator$17 = NodeTranslator.from(config$t);
|
|
@@ -25101,98 +25197,98 @@ const handleParagraphNode$1 = (params2) => {
|
|
|
25101
25197
|
const encode$12 = (attributes) => {
|
|
25102
25198
|
return attributes["w:rsidDel"];
|
|
25103
25199
|
};
|
|
25104
|
-
const decode$
|
|
25200
|
+
const decode$W = (attrs) => {
|
|
25105
25201
|
return attrs.rsidDel;
|
|
25106
25202
|
};
|
|
25107
|
-
const attrConfig$
|
|
25203
|
+
const attrConfig$A = Object.freeze({
|
|
25108
25204
|
xmlName: "w:rsidDel",
|
|
25109
25205
|
sdName: "rsidDel",
|
|
25110
25206
|
encode: encode$12,
|
|
25111
|
-
decode: decode$
|
|
25207
|
+
decode: decode$W
|
|
25112
25208
|
});
|
|
25113
25209
|
const encode$11 = (attributes) => {
|
|
25114
25210
|
return attributes["w:rsidP"];
|
|
25115
25211
|
};
|
|
25116
|
-
const decode$
|
|
25212
|
+
const decode$V = (attrs) => {
|
|
25117
25213
|
return attrs.rsidP;
|
|
25118
25214
|
};
|
|
25119
|
-
const attrConfig$
|
|
25215
|
+
const attrConfig$z = Object.freeze({
|
|
25120
25216
|
xmlName: "w:rsidP",
|
|
25121
25217
|
sdName: "rsidP",
|
|
25122
25218
|
encode: encode$11,
|
|
25123
|
-
decode: decode$
|
|
25219
|
+
decode: decode$V
|
|
25124
25220
|
});
|
|
25125
25221
|
const encode$10 = (attributes) => {
|
|
25126
25222
|
return attributes["w:rsidR"];
|
|
25127
25223
|
};
|
|
25128
|
-
const decode$
|
|
25224
|
+
const decode$U = (attrs) => {
|
|
25129
25225
|
return attrs.rsidR;
|
|
25130
25226
|
};
|
|
25131
|
-
const attrConfig$
|
|
25227
|
+
const attrConfig$y = Object.freeze({
|
|
25132
25228
|
xmlName: "w:rsidR",
|
|
25133
25229
|
sdName: "rsidR",
|
|
25134
25230
|
encode: encode$10,
|
|
25135
|
-
decode: decode$
|
|
25231
|
+
decode: decode$U
|
|
25136
25232
|
});
|
|
25137
25233
|
const encode$$ = (attributes) => {
|
|
25138
25234
|
return attributes["w:rsidRPr"];
|
|
25139
25235
|
};
|
|
25140
|
-
const decode$
|
|
25236
|
+
const decode$T = (attrs) => {
|
|
25141
25237
|
return attrs.rsidRPr;
|
|
25142
25238
|
};
|
|
25143
|
-
const attrConfig$
|
|
25239
|
+
const attrConfig$x = Object.freeze({
|
|
25144
25240
|
xmlName: "w:rsidRPr",
|
|
25145
25241
|
sdName: "rsidRPr",
|
|
25146
25242
|
encode: encode$$,
|
|
25147
|
-
decode: decode$
|
|
25243
|
+
decode: decode$T
|
|
25148
25244
|
});
|
|
25149
25245
|
const encode$_ = (attributes) => {
|
|
25150
25246
|
return attributes["w:rsidRDefault"];
|
|
25151
25247
|
};
|
|
25152
|
-
const decode$
|
|
25248
|
+
const decode$S = (attrs) => {
|
|
25153
25249
|
return attrs.rsidRDefault;
|
|
25154
25250
|
};
|
|
25155
|
-
const attrConfig$
|
|
25251
|
+
const attrConfig$w = Object.freeze({
|
|
25156
25252
|
xmlName: "w:rsidRDefault",
|
|
25157
25253
|
sdName: "rsidRDefault",
|
|
25158
25254
|
encode: encode$_,
|
|
25159
|
-
decode: decode$
|
|
25255
|
+
decode: decode$S
|
|
25160
25256
|
});
|
|
25161
25257
|
const encode$Z = (attributes) => {
|
|
25162
25258
|
return attributes["w14:paraId"];
|
|
25163
25259
|
};
|
|
25164
|
-
const decode$
|
|
25260
|
+
const decode$R = (attrs) => {
|
|
25165
25261
|
return attrs.paraId;
|
|
25166
25262
|
};
|
|
25167
|
-
const attrConfig$
|
|
25263
|
+
const attrConfig$v = Object.freeze({
|
|
25168
25264
|
xmlName: "w14:paraId",
|
|
25169
25265
|
sdName: "paraId",
|
|
25170
25266
|
encode: encode$Z,
|
|
25171
|
-
decode: decode$
|
|
25267
|
+
decode: decode$R
|
|
25172
25268
|
});
|
|
25173
25269
|
const encode$Y = (attributes) => {
|
|
25174
25270
|
return attributes["w14:textId"];
|
|
25175
25271
|
};
|
|
25176
|
-
const decode$
|
|
25272
|
+
const decode$Q = (attrs) => {
|
|
25177
25273
|
return attrs.textId;
|
|
25178
25274
|
};
|
|
25179
|
-
const attrConfig$
|
|
25275
|
+
const attrConfig$u = Object.freeze({
|
|
25180
25276
|
xmlName: "w14:textId",
|
|
25181
25277
|
sdName: "textId",
|
|
25182
25278
|
encode: encode$Y,
|
|
25183
|
-
decode: decode$
|
|
25279
|
+
decode: decode$Q
|
|
25184
25280
|
});
|
|
25185
25281
|
const validXmlAttributes$j = [
|
|
25186
|
-
attrConfig$u,
|
|
25187
|
-
attrConfig$t,
|
|
25188
|
-
attrConfig$x,
|
|
25189
25282
|
attrConfig$v,
|
|
25283
|
+
attrConfig$u,
|
|
25190
25284
|
attrConfig$y,
|
|
25191
25285
|
attrConfig$w,
|
|
25192
|
-
attrConfig$z
|
|
25286
|
+
attrConfig$z,
|
|
25287
|
+
attrConfig$x,
|
|
25288
|
+
attrConfig$A
|
|
25193
25289
|
];
|
|
25194
|
-
const XML_NODE_NAME$
|
|
25195
|
-
const SD_NODE_NAME$
|
|
25290
|
+
const XML_NODE_NAME$v = "w:p";
|
|
25291
|
+
const SD_NODE_NAME$e = "paragraph";
|
|
25196
25292
|
const encode$X = (params2, encodedAttrs = {}) => {
|
|
25197
25293
|
const node = handleParagraphNode$1(params2);
|
|
25198
25294
|
if (!node) return void 0;
|
|
@@ -25201,7 +25297,7 @@ const encode$X = (params2, encodedAttrs = {}) => {
|
|
|
25201
25297
|
}
|
|
25202
25298
|
return node;
|
|
25203
25299
|
};
|
|
25204
|
-
const decode$
|
|
25300
|
+
const decode$P = (params2, decodedAttrs = {}) => {
|
|
25205
25301
|
const translated = translateParagraphNode(params2);
|
|
25206
25302
|
if (!translated) return void 0;
|
|
25207
25303
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
@@ -25210,11 +25306,11 @@ const decode$N = (params2, decodedAttrs = {}) => {
|
|
|
25210
25306
|
return translated;
|
|
25211
25307
|
};
|
|
25212
25308
|
const config$s = {
|
|
25213
|
-
xmlName: XML_NODE_NAME$
|
|
25214
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
25309
|
+
xmlName: XML_NODE_NAME$v,
|
|
25310
|
+
sdNodeOrKeyName: SD_NODE_NAME$e,
|
|
25215
25311
|
type: NodeTranslator.translatorTypes.NODE,
|
|
25216
25312
|
encode: encode$X,
|
|
25217
|
-
decode: decode$
|
|
25313
|
+
decode: decode$P,
|
|
25218
25314
|
attributes: validXmlAttributes$j
|
|
25219
25315
|
};
|
|
25220
25316
|
const translator$16 = NodeTranslator.from(config$s);
|
|
@@ -25228,18 +25324,18 @@ const encode$W = (attributes) => {
|
|
|
25228
25324
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
25229
25325
|
return void 0;
|
|
25230
25326
|
};
|
|
25231
|
-
const decode$
|
|
25327
|
+
const decode$O = (runProps) => {
|
|
25232
25328
|
if (runProps?.bold === false) return "0";
|
|
25233
25329
|
return void 0;
|
|
25234
25330
|
};
|
|
25235
|
-
const attrConfig$
|
|
25331
|
+
const attrConfig$t = Object.freeze({
|
|
25236
25332
|
xmlName: "w:val",
|
|
25237
25333
|
sdName: "bold",
|
|
25238
25334
|
encode: encode$W,
|
|
25239
|
-
decode: decode$
|
|
25335
|
+
decode: decode$O
|
|
25240
25336
|
});
|
|
25241
|
-
const validXmlAttributes$i = [attrConfig$
|
|
25242
|
-
const XML_NODE_NAME$
|
|
25337
|
+
const validXmlAttributes$i = [attrConfig$t];
|
|
25338
|
+
const XML_NODE_NAME$u = "w:b";
|
|
25243
25339
|
const SD_ATTR_KEY$f = "bold";
|
|
25244
25340
|
const encode$V = (params2, encodedAttrs = {}) => {
|
|
25245
25341
|
const { nodes } = params2;
|
|
@@ -25253,20 +25349,20 @@ const encode$V = (params2, encodedAttrs = {}) => {
|
|
|
25253
25349
|
else attributes = node.attributes || {};
|
|
25254
25350
|
return {
|
|
25255
25351
|
type: "attr",
|
|
25256
|
-
xmlName: XML_NODE_NAME$
|
|
25352
|
+
xmlName: XML_NODE_NAME$u,
|
|
25257
25353
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
25258
25354
|
attributes
|
|
25259
25355
|
};
|
|
25260
25356
|
};
|
|
25261
25357
|
const config$r = {
|
|
25262
|
-
xmlName: XML_NODE_NAME$
|
|
25358
|
+
xmlName: XML_NODE_NAME$u,
|
|
25263
25359
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
25264
25360
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25265
25361
|
encode: encode$V,
|
|
25266
25362
|
attributes: validXmlAttributes$i
|
|
25267
25363
|
};
|
|
25268
25364
|
const translator$15 = NodeTranslator.from(config$r);
|
|
25269
|
-
const XML_NODE_NAME$
|
|
25365
|
+
const XML_NODE_NAME$t = "w:i";
|
|
25270
25366
|
const SD_ATTR_KEY$e = "italic";
|
|
25271
25367
|
const encode$U = (params2) => {
|
|
25272
25368
|
const { nodes } = params2;
|
|
@@ -25274,7 +25370,7 @@ const encode$U = (params2) => {
|
|
|
25274
25370
|
if (!node) return void 0;
|
|
25275
25371
|
return {
|
|
25276
25372
|
type: "attr",
|
|
25277
|
-
xmlName: XML_NODE_NAME$
|
|
25373
|
+
xmlName: XML_NODE_NAME$t,
|
|
25278
25374
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
25279
25375
|
attributes: {
|
|
25280
25376
|
"w:val": node.attributes?.["w:val"] ?? null
|
|
@@ -25282,54 +25378,54 @@ const encode$U = (params2) => {
|
|
|
25282
25378
|
};
|
|
25283
25379
|
};
|
|
25284
25380
|
const config$q = {
|
|
25285
|
-
xmlName: XML_NODE_NAME$
|
|
25381
|
+
xmlName: XML_NODE_NAME$t,
|
|
25286
25382
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
25287
25383
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25288
25384
|
encode: encode$U
|
|
25289
25385
|
};
|
|
25290
25386
|
const translator$14 = NodeTranslator.from(config$q);
|
|
25291
25387
|
const encode$T = (attributes) => attributes?.["w:val"];
|
|
25292
|
-
const decode$
|
|
25293
|
-
const attrConfig$
|
|
25388
|
+
const decode$N = (attrs) => attrs?.underline;
|
|
25389
|
+
const attrConfig$s = Object.freeze({
|
|
25294
25390
|
xmlName: "w:val",
|
|
25295
25391
|
sdName: "underline",
|
|
25296
25392
|
encode: encode$T,
|
|
25297
|
-
decode: decode$
|
|
25393
|
+
decode: decode$N
|
|
25298
25394
|
});
|
|
25299
25395
|
const encode$S = (attributes) => attributes?.["w:color"];
|
|
25300
|
-
const decode$
|
|
25301
|
-
const attrConfig$
|
|
25396
|
+
const decode$M = (attrs) => attrs?.color;
|
|
25397
|
+
const attrConfig$r = Object.freeze({
|
|
25302
25398
|
xmlName: "w:color",
|
|
25303
25399
|
sdName: "color",
|
|
25304
25400
|
encode: encode$S,
|
|
25305
|
-
decode: decode$
|
|
25401
|
+
decode: decode$M
|
|
25306
25402
|
});
|
|
25307
25403
|
const encode$R = (attributes) => attributes?.["w:themeColor"];
|
|
25308
|
-
const decode$
|
|
25309
|
-
const attrConfig$
|
|
25404
|
+
const decode$L = (attrs) => attrs?.themeColor;
|
|
25405
|
+
const attrConfig$q = Object.freeze({
|
|
25310
25406
|
xmlName: "w:themeColor",
|
|
25311
25407
|
sdName: "themeColor",
|
|
25312
25408
|
encode: encode$R,
|
|
25313
|
-
decode: decode$
|
|
25409
|
+
decode: decode$L
|
|
25314
25410
|
});
|
|
25315
25411
|
const encode$Q = (attributes) => attributes?.["w:themeTint"];
|
|
25316
|
-
const decode$
|
|
25317
|
-
const attrConfig$
|
|
25412
|
+
const decode$K = (attrs) => attrs?.themeTint;
|
|
25413
|
+
const attrConfig$p = Object.freeze({
|
|
25318
25414
|
xmlName: "w:themeTint",
|
|
25319
25415
|
sdName: "themeTint",
|
|
25320
25416
|
encode: encode$Q,
|
|
25321
|
-
decode: decode$
|
|
25417
|
+
decode: decode$K
|
|
25322
25418
|
});
|
|
25323
25419
|
const encode$P = (attributes) => attributes?.["w:themeShade"];
|
|
25324
|
-
const decode$
|
|
25325
|
-
const attrConfig$
|
|
25420
|
+
const decode$J = (attrs) => attrs?.themeShade;
|
|
25421
|
+
const attrConfig$o = Object.freeze({
|
|
25326
25422
|
xmlName: "w:themeShade",
|
|
25327
25423
|
sdName: "themeShade",
|
|
25328
25424
|
encode: encode$P,
|
|
25329
|
-
decode: decode$
|
|
25425
|
+
decode: decode$J
|
|
25330
25426
|
});
|
|
25331
|
-
const validXmlAttributes$h = [attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o
|
|
25332
|
-
const XML_NODE_NAME$
|
|
25427
|
+
const validXmlAttributes$h = [attrConfig$s, attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o];
|
|
25428
|
+
const XML_NODE_NAME$s = "w:u";
|
|
25333
25429
|
const SD_ATTR_KEY$d = "underline";
|
|
25334
25430
|
const encode$O = (params2, encodedAttrs = {}) => {
|
|
25335
25431
|
const { nodes } = params2;
|
|
@@ -25347,12 +25443,12 @@ const encode$O = (params2, encodedAttrs = {}) => {
|
|
|
25347
25443
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
25348
25444
|
return {
|
|
25349
25445
|
type: "attr",
|
|
25350
|
-
xmlName: XML_NODE_NAME$
|
|
25446
|
+
xmlName: XML_NODE_NAME$s,
|
|
25351
25447
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
25352
25448
|
attributes
|
|
25353
25449
|
};
|
|
25354
25450
|
};
|
|
25355
|
-
const decode$
|
|
25451
|
+
const decode$I = (params2) => {
|
|
25356
25452
|
const attrs = params2?.node?.attrs || {};
|
|
25357
25453
|
const underlineType = attrs.underlineType ?? attrs.underline ?? null;
|
|
25358
25454
|
const color = attrs.underlineColor ?? attrs.color ?? null;
|
|
@@ -25370,16 +25466,16 @@ const decode$G = (params2) => {
|
|
|
25370
25466
|
if (themeTint) attributes["w:themeTint"] = themeTint;
|
|
25371
25467
|
if (themeShade) attributes["w:themeShade"] = themeShade;
|
|
25372
25468
|
return {
|
|
25373
|
-
name: XML_NODE_NAME$
|
|
25469
|
+
name: XML_NODE_NAME$s,
|
|
25374
25470
|
attributes
|
|
25375
25471
|
};
|
|
25376
25472
|
};
|
|
25377
25473
|
const config$p = {
|
|
25378
|
-
xmlName: XML_NODE_NAME$
|
|
25474
|
+
xmlName: XML_NODE_NAME$s,
|
|
25379
25475
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
25380
25476
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25381
25477
|
encode: encode$O,
|
|
25382
|
-
decode: decode$
|
|
25478
|
+
decode: decode$I,
|
|
25383
25479
|
attributes: validXmlAttributes$h
|
|
25384
25480
|
};
|
|
25385
25481
|
const translator$13 = NodeTranslator.from(config$p);
|
|
@@ -25393,18 +25489,18 @@ const encode$N = (attributes) => {
|
|
|
25393
25489
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
25394
25490
|
return void 0;
|
|
25395
25491
|
};
|
|
25396
|
-
const decode$
|
|
25492
|
+
const decode$H = (attrs) => {
|
|
25397
25493
|
if (attrs?.strike === false) return "0";
|
|
25398
25494
|
return void 0;
|
|
25399
25495
|
};
|
|
25400
|
-
const attrConfig$
|
|
25496
|
+
const attrConfig$n = Object.freeze({
|
|
25401
25497
|
xmlName: "w:val",
|
|
25402
25498
|
sdName: "strike",
|
|
25403
25499
|
encode: encode$N,
|
|
25404
|
-
decode: decode$
|
|
25500
|
+
decode: decode$H
|
|
25405
25501
|
});
|
|
25406
|
-
const validXmlAttributes$g = [attrConfig$
|
|
25407
|
-
const XML_NODE_NAME$
|
|
25502
|
+
const validXmlAttributes$g = [attrConfig$n];
|
|
25503
|
+
const XML_NODE_NAME$r = "w:strike";
|
|
25408
25504
|
const SD_ATTR_KEY$c = "strike";
|
|
25409
25505
|
const encode$M = (params2, encodedAttrs = {}) => {
|
|
25410
25506
|
const { nodes } = params2;
|
|
@@ -25419,13 +25515,13 @@ const encode$M = (params2, encodedAttrs = {}) => {
|
|
|
25419
25515
|
else if (val === true && attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
25420
25516
|
return {
|
|
25421
25517
|
type: "attr",
|
|
25422
|
-
xmlName: XML_NODE_NAME$
|
|
25518
|
+
xmlName: XML_NODE_NAME$r,
|
|
25423
25519
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
25424
25520
|
attributes
|
|
25425
25521
|
};
|
|
25426
25522
|
};
|
|
25427
25523
|
const config$o = {
|
|
25428
|
-
xmlName: XML_NODE_NAME$
|
|
25524
|
+
xmlName: XML_NODE_NAME$r,
|
|
25429
25525
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
25430
25526
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25431
25527
|
encode: encode$M,
|
|
@@ -25433,39 +25529,39 @@ const config$o = {
|
|
|
25433
25529
|
};
|
|
25434
25530
|
const translator$12 = NodeTranslator.from(config$o);
|
|
25435
25531
|
const encode$L = (attributes) => attributes?.["w:val"];
|
|
25436
|
-
const decode$
|
|
25437
|
-
const attrConfig$
|
|
25532
|
+
const decode$G = (attrs) => attrs?.color;
|
|
25533
|
+
const attrConfig$m = Object.freeze({
|
|
25438
25534
|
xmlName: "w:val",
|
|
25439
25535
|
sdName: "color",
|
|
25440
25536
|
encode: encode$L,
|
|
25441
|
-
decode: decode$
|
|
25537
|
+
decode: decode$G
|
|
25442
25538
|
});
|
|
25443
25539
|
const encode$K = (attributes) => attributes?.["w:themeColor"];
|
|
25444
|
-
const decode$
|
|
25445
|
-
const attrConfig$
|
|
25540
|
+
const decode$F = (attrs) => attrs?.themeColor;
|
|
25541
|
+
const attrConfig$l = Object.freeze({
|
|
25446
25542
|
xmlName: "w:themeColor",
|
|
25447
25543
|
sdName: "themeColor",
|
|
25448
25544
|
encode: encode$K,
|
|
25449
|
-
decode: decode$
|
|
25545
|
+
decode: decode$F
|
|
25450
25546
|
});
|
|
25451
25547
|
const encode$J = (attributes) => attributes?.["w:themeTint"];
|
|
25452
|
-
const decode$
|
|
25453
|
-
const attrConfig$
|
|
25548
|
+
const decode$E = (attrs) => attrs?.themeTint;
|
|
25549
|
+
const attrConfig$k = Object.freeze({
|
|
25454
25550
|
xmlName: "w:themeTint",
|
|
25455
25551
|
sdName: "themeTint",
|
|
25456
25552
|
encode: encode$J,
|
|
25457
|
-
decode: decode$
|
|
25553
|
+
decode: decode$E
|
|
25458
25554
|
});
|
|
25459
25555
|
const encode$I = (attributes) => attributes?.["w:themeShade"];
|
|
25460
|
-
const decode$
|
|
25461
|
-
const attrConfig$
|
|
25556
|
+
const decode$D = (attrs) => attrs?.themeShade;
|
|
25557
|
+
const attrConfig$j = Object.freeze({
|
|
25462
25558
|
xmlName: "w:themeShade",
|
|
25463
25559
|
sdName: "themeShade",
|
|
25464
25560
|
encode: encode$I,
|
|
25465
|
-
decode: decode$
|
|
25561
|
+
decode: decode$D
|
|
25466
25562
|
});
|
|
25467
|
-
const validXmlAttributes$f = [attrConfig$
|
|
25468
|
-
const XML_NODE_NAME$
|
|
25563
|
+
const validXmlAttributes$f = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j];
|
|
25564
|
+
const XML_NODE_NAME$q = "w:color";
|
|
25469
25565
|
const SD_ATTR_KEY$b = "color";
|
|
25470
25566
|
const encode$H = (params2, encodedAttrs = {}) => {
|
|
25471
25567
|
const { nodes } = params2;
|
|
@@ -25482,13 +25578,13 @@ const encode$H = (params2, encodedAttrs = {}) => {
|
|
|
25482
25578
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
25483
25579
|
return {
|
|
25484
25580
|
type: "attr",
|
|
25485
|
-
xmlName: XML_NODE_NAME$
|
|
25581
|
+
xmlName: XML_NODE_NAME$q,
|
|
25486
25582
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
25487
25583
|
attributes
|
|
25488
25584
|
};
|
|
25489
25585
|
};
|
|
25490
25586
|
const config$n = {
|
|
25491
|
-
xmlName: XML_NODE_NAME$
|
|
25587
|
+
xmlName: XML_NODE_NAME$q,
|
|
25492
25588
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
25493
25589
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25494
25590
|
encode: encode$H,
|
|
@@ -25496,47 +25592,47 @@ const config$n = {
|
|
|
25496
25592
|
};
|
|
25497
25593
|
const translator$11 = NodeTranslator.from(config$n);
|
|
25498
25594
|
const encode$G = (attributes) => attributes?.["w:eastAsia"];
|
|
25499
|
-
const decode$
|
|
25500
|
-
const attrConfig$
|
|
25595
|
+
const decode$C = (attrs) => attrs?.eastAsia;
|
|
25596
|
+
const attrConfig$i = Object.freeze({
|
|
25501
25597
|
xmlName: "w:eastAsia",
|
|
25502
25598
|
sdName: "eastAsia",
|
|
25503
25599
|
encode: encode$G,
|
|
25504
|
-
decode: decode$
|
|
25600
|
+
decode: decode$C
|
|
25505
25601
|
});
|
|
25506
25602
|
const encode$F = (attributes) => attributes?.["w:ascii"];
|
|
25507
|
-
const decode$
|
|
25508
|
-
const attrConfig$
|
|
25603
|
+
const decode$B = (attrs) => attrs?.ascii;
|
|
25604
|
+
const attrConfig$h = Object.freeze({
|
|
25509
25605
|
xmlName: "w:ascii",
|
|
25510
25606
|
sdName: "ascii",
|
|
25511
25607
|
encode: encode$F,
|
|
25512
|
-
decode: decode$
|
|
25608
|
+
decode: decode$B
|
|
25513
25609
|
});
|
|
25514
25610
|
const encode$E = (attributes) => attributes?.["w:hAnsi"];
|
|
25515
|
-
const decode$
|
|
25516
|
-
const attrConfig$
|
|
25611
|
+
const decode$A = (attrs) => attrs?.hAnsi;
|
|
25612
|
+
const attrConfig$g = Object.freeze({
|
|
25517
25613
|
xmlName: "w:hAnsi",
|
|
25518
25614
|
sdName: "hAnsi",
|
|
25519
25615
|
encode: encode$E,
|
|
25520
|
-
decode: decode$
|
|
25616
|
+
decode: decode$A
|
|
25521
25617
|
});
|
|
25522
25618
|
const encode$D = (attributes) => attributes?.["w:cs"];
|
|
25523
|
-
const decode$
|
|
25524
|
-
const attrConfig$
|
|
25619
|
+
const decode$z = (attrs) => attrs?.cs;
|
|
25620
|
+
const attrConfig$f = Object.freeze({
|
|
25525
25621
|
xmlName: "w:cs",
|
|
25526
25622
|
sdName: "cs",
|
|
25527
25623
|
encode: encode$D,
|
|
25528
|
-
decode: decode$
|
|
25624
|
+
decode: decode$z
|
|
25529
25625
|
});
|
|
25530
25626
|
const encode$C = (attributes) => attributes?.["w:val"];
|
|
25531
|
-
const decode$
|
|
25532
|
-
const attrConfig$
|
|
25627
|
+
const decode$y = (attrs) => attrs?.value;
|
|
25628
|
+
const attrConfig$e = Object.freeze({
|
|
25533
25629
|
xmlName: "w:val",
|
|
25534
25630
|
sdName: "value",
|
|
25535
25631
|
encode: encode$C,
|
|
25536
|
-
decode: decode$
|
|
25632
|
+
decode: decode$y
|
|
25537
25633
|
});
|
|
25538
|
-
const validXmlAttributes$e = [attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e
|
|
25539
|
-
const XML_NODE_NAME$
|
|
25634
|
+
const validXmlAttributes$e = [attrConfig$i, attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e];
|
|
25635
|
+
const XML_NODE_NAME$p = "w:rFonts";
|
|
25540
25636
|
const SD_ATTR_KEY$a = "fontFamily";
|
|
25541
25637
|
const encode$B = (params2, encodedAttrs = {}) => {
|
|
25542
25638
|
const { nodes } = params2;
|
|
@@ -25564,13 +25660,13 @@ const encode$B = (params2, encodedAttrs = {}) => {
|
|
|
25564
25660
|
if (attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
25565
25661
|
return {
|
|
25566
25662
|
type: "attr",
|
|
25567
|
-
xmlName: XML_NODE_NAME$
|
|
25663
|
+
xmlName: XML_NODE_NAME$p,
|
|
25568
25664
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
25569
25665
|
attributes
|
|
25570
25666
|
};
|
|
25571
25667
|
};
|
|
25572
25668
|
const config$m = {
|
|
25573
|
-
xmlName: XML_NODE_NAME$
|
|
25669
|
+
xmlName: XML_NODE_NAME$p,
|
|
25574
25670
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
25575
25671
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25576
25672
|
encode: encode$B,
|
|
@@ -25578,15 +25674,15 @@ const config$m = {
|
|
|
25578
25674
|
};
|
|
25579
25675
|
const translator$10 = NodeTranslator.from(config$m);
|
|
25580
25676
|
const encode$A = (attributes) => attributes?.["w:val"];
|
|
25581
|
-
const decode$
|
|
25582
|
-
const attrConfig$
|
|
25677
|
+
const decode$x = (attrs) => attrs?.styleId;
|
|
25678
|
+
const attrConfig$d = Object.freeze({
|
|
25583
25679
|
xmlName: "w:val",
|
|
25584
25680
|
sdName: "styleId",
|
|
25585
25681
|
encode: encode$A,
|
|
25586
|
-
decode: decode$
|
|
25682
|
+
decode: decode$x
|
|
25587
25683
|
});
|
|
25588
|
-
const validXmlAttributes$d = [attrConfig$
|
|
25589
|
-
const XML_NODE_NAME$
|
|
25684
|
+
const validXmlAttributes$d = [attrConfig$d];
|
|
25685
|
+
const XML_NODE_NAME$o = "w:rStyle";
|
|
25590
25686
|
const SD_ATTR_KEY$9 = "styleId";
|
|
25591
25687
|
const encode$z = (params2, encodedAttrs = {}) => {
|
|
25592
25688
|
const { nodes } = params2;
|
|
@@ -25594,13 +25690,13 @@ const encode$z = (params2, encodedAttrs = {}) => {
|
|
|
25594
25690
|
const value = encodedAttrs.styleId ?? node?.attributes?.["w:val"];
|
|
25595
25691
|
return {
|
|
25596
25692
|
type: "attr",
|
|
25597
|
-
xmlName: XML_NODE_NAME$
|
|
25693
|
+
xmlName: XML_NODE_NAME$o,
|
|
25598
25694
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
25599
25695
|
attributes: { "w:val": value ?? null }
|
|
25600
25696
|
};
|
|
25601
25697
|
};
|
|
25602
25698
|
const config$l = {
|
|
25603
|
-
xmlName: XML_NODE_NAME$
|
|
25699
|
+
xmlName: XML_NODE_NAME$o,
|
|
25604
25700
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
25605
25701
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25606
25702
|
encode: encode$z,
|
|
@@ -25608,15 +25704,15 @@ const config$l = {
|
|
|
25608
25704
|
};
|
|
25609
25705
|
const translator$$ = NodeTranslator.from(config$l);
|
|
25610
25706
|
const encode$y = (attributes) => attributes?.["w:val"];
|
|
25611
|
-
const decode$
|
|
25612
|
-
const attrConfig$
|
|
25707
|
+
const decode$w = (attrs) => attrs?.fontSize;
|
|
25708
|
+
const attrConfig$c = Object.freeze({
|
|
25613
25709
|
xmlName: "w:val",
|
|
25614
25710
|
sdName: "fontSize",
|
|
25615
25711
|
encode: encode$y,
|
|
25616
|
-
decode: decode$
|
|
25712
|
+
decode: decode$w
|
|
25617
25713
|
});
|
|
25618
|
-
const validXmlAttributes$c = [attrConfig$
|
|
25619
|
-
const XML_NODE_NAME$
|
|
25714
|
+
const validXmlAttributes$c = [attrConfig$c];
|
|
25715
|
+
const XML_NODE_NAME$n = "w:sz";
|
|
25620
25716
|
const SD_ATTR_KEY$8 = "fontSize";
|
|
25621
25717
|
const encode$x = (params2, encodedAttrs = {}) => {
|
|
25622
25718
|
const { nodes } = params2;
|
|
@@ -25624,13 +25720,13 @@ const encode$x = (params2, encodedAttrs = {}) => {
|
|
|
25624
25720
|
const value = encodedAttrs.fontSize ?? node?.attributes?.["w:val"];
|
|
25625
25721
|
return {
|
|
25626
25722
|
type: "attr",
|
|
25627
|
-
xmlName: XML_NODE_NAME$
|
|
25723
|
+
xmlName: XML_NODE_NAME$n,
|
|
25628
25724
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
25629
25725
|
attributes: { "w:val": value ?? null }
|
|
25630
25726
|
};
|
|
25631
25727
|
};
|
|
25632
25728
|
const config$k = {
|
|
25633
|
-
xmlName: XML_NODE_NAME$
|
|
25729
|
+
xmlName: XML_NODE_NAME$n,
|
|
25634
25730
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
25635
25731
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25636
25732
|
encode: encode$x,
|
|
@@ -25638,15 +25734,15 @@ const config$k = {
|
|
|
25638
25734
|
};
|
|
25639
25735
|
const translator$_ = NodeTranslator.from(config$k);
|
|
25640
25736
|
const encode$w = (attributes) => attributes?.["w:val"];
|
|
25641
|
-
const decode$
|
|
25642
|
-
const attrConfig$
|
|
25737
|
+
const decode$v = (attrs) => attrs?.fontSizeCs;
|
|
25738
|
+
const attrConfig$b = Object.freeze({
|
|
25643
25739
|
xmlName: "w:val",
|
|
25644
25740
|
sdName: "fontSizeCs",
|
|
25645
25741
|
encode: encode$w,
|
|
25646
|
-
decode: decode$
|
|
25742
|
+
decode: decode$v
|
|
25647
25743
|
});
|
|
25648
|
-
const validXmlAttributes$b = [attrConfig$
|
|
25649
|
-
const XML_NODE_NAME$
|
|
25744
|
+
const validXmlAttributes$b = [attrConfig$b];
|
|
25745
|
+
const XML_NODE_NAME$m = "w:szCs";
|
|
25650
25746
|
const SD_ATTR_KEY$7 = "fontSizeCs";
|
|
25651
25747
|
const encode$v = (params2, encodedAttrs = {}) => {
|
|
25652
25748
|
const { nodes } = params2;
|
|
@@ -25654,13 +25750,13 @@ const encode$v = (params2, encodedAttrs = {}) => {
|
|
|
25654
25750
|
const value = encodedAttrs.fontSizeCs ?? node?.attributes?.["w:val"];
|
|
25655
25751
|
return {
|
|
25656
25752
|
type: "attr",
|
|
25657
|
-
xmlName: XML_NODE_NAME$
|
|
25753
|
+
xmlName: XML_NODE_NAME$m,
|
|
25658
25754
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
25659
25755
|
attributes: { "w:val": value ?? null }
|
|
25660
25756
|
};
|
|
25661
25757
|
};
|
|
25662
25758
|
const config$j = {
|
|
25663
|
-
xmlName: XML_NODE_NAME$
|
|
25759
|
+
xmlName: XML_NODE_NAME$m,
|
|
25664
25760
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
25665
25761
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25666
25762
|
encode: encode$v,
|
|
@@ -25800,7 +25896,7 @@ const integerToString = (value) => {
|
|
|
25800
25896
|
const intValue = parseInteger(value);
|
|
25801
25897
|
return intValue != void 0 ? String(intValue) : void 0;
|
|
25802
25898
|
};
|
|
25803
|
-
const XML_NODE_NAME$
|
|
25899
|
+
const XML_NODE_NAME$l = "w:caps";
|
|
25804
25900
|
const SD_ATTR_KEY$6 = "textTransform";
|
|
25805
25901
|
const encode$u = (params2, encodedAttrs = {}) => {
|
|
25806
25902
|
const { nodes } = params2;
|
|
@@ -25814,13 +25910,13 @@ const encode$u = (params2, encodedAttrs = {}) => {
|
|
|
25814
25910
|
}
|
|
25815
25911
|
return {
|
|
25816
25912
|
type: "attr",
|
|
25817
|
-
xmlName: XML_NODE_NAME$
|
|
25913
|
+
xmlName: XML_NODE_NAME$l,
|
|
25818
25914
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
25819
25915
|
attributes: { [SD_ATTR_KEY$6]: result }
|
|
25820
25916
|
};
|
|
25821
25917
|
};
|
|
25822
25918
|
const config$i = {
|
|
25823
|
-
xmlName: XML_NODE_NAME$
|
|
25919
|
+
xmlName: XML_NODE_NAME$l,
|
|
25824
25920
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
25825
25921
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25826
25922
|
encode: encode$u,
|
|
@@ -25852,7 +25948,7 @@ const toRunPropertyEntry = (candidate) => {
|
|
|
25852
25948
|
attributes: { ...candidate.attributes || {} }
|
|
25853
25949
|
};
|
|
25854
25950
|
};
|
|
25855
|
-
const XML_NODE_NAME$
|
|
25951
|
+
const XML_NODE_NAME$k = "w:rPr";
|
|
25856
25952
|
const SD_ATTR_KEY$5 = "runProperties";
|
|
25857
25953
|
const encode$t = (params2) => {
|
|
25858
25954
|
const { nodes } = params2;
|
|
@@ -25889,7 +25985,7 @@ const encode$t = (params2) => {
|
|
|
25889
25985
|
};
|
|
25890
25986
|
};
|
|
25891
25987
|
const config$h = {
|
|
25892
|
-
xmlName: XML_NODE_NAME$
|
|
25988
|
+
xmlName: XML_NODE_NAME$k,
|
|
25893
25989
|
sdNodeOrKeyName: SD_ATTR_KEY$5,
|
|
25894
25990
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25895
25991
|
encode: encode$t
|
|
@@ -26370,8 +26466,8 @@ const ensureTrackedWrapper = (runs, trackingMarksByType = /* @__PURE__ */ new Ma
|
|
|
26370
26466
|
}
|
|
26371
26467
|
return runs;
|
|
26372
26468
|
};
|
|
26373
|
-
const XML_NODE_NAME$
|
|
26374
|
-
const SD_NODE_NAME$
|
|
26469
|
+
const XML_NODE_NAME$j = "w:hyperlink";
|
|
26470
|
+
const SD_NODE_NAME$d = "link";
|
|
26375
26471
|
const _createAttributeHandler = (xmlName, sdName) => ({
|
|
26376
26472
|
xmlName,
|
|
26377
26473
|
sdName,
|
|
@@ -26425,7 +26521,7 @@ const _resolveHref = (docx, encodedAttrs) => {
|
|
|
26425
26521
|
}
|
|
26426
26522
|
return href;
|
|
26427
26523
|
};
|
|
26428
|
-
function decode$
|
|
26524
|
+
function decode$u(params2) {
|
|
26429
26525
|
const { hyperlinkGroup = [params2.node] } = params2.extraParams || {};
|
|
26430
26526
|
const node = hyperlinkGroup[0];
|
|
26431
26527
|
const linkMark = node.marks.find((m2) => m2.type === "link");
|
|
@@ -26482,52 +26578,52 @@ function _addNewLinkRelationship(params2, link, rId) {
|
|
|
26482
26578
|
return rId;
|
|
26483
26579
|
}
|
|
26484
26580
|
const config$g = {
|
|
26485
|
-
xmlName: XML_NODE_NAME$
|
|
26486
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
26581
|
+
xmlName: XML_NODE_NAME$j,
|
|
26582
|
+
sdNodeOrKeyName: SD_NODE_NAME$d,
|
|
26487
26583
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26488
26584
|
encode: encode$s,
|
|
26489
|
-
decode: decode$
|
|
26585
|
+
decode: decode$u,
|
|
26490
26586
|
attributes: validXmlAttributes$a
|
|
26491
26587
|
};
|
|
26492
26588
|
const translator$W = NodeTranslator.from(config$g);
|
|
26493
26589
|
const encode$r = (attributes) => {
|
|
26494
26590
|
return attributes["w:rsidR"];
|
|
26495
26591
|
};
|
|
26496
|
-
const decode$
|
|
26592
|
+
const decode$t = (attrs) => {
|
|
26497
26593
|
return attrs.rsidR;
|
|
26498
26594
|
};
|
|
26499
|
-
const attrConfig$
|
|
26595
|
+
const attrConfig$a = Object.freeze({
|
|
26500
26596
|
xmlName: "w:rsidR",
|
|
26501
26597
|
sdName: "rsidR",
|
|
26502
26598
|
encode: encode$r,
|
|
26503
|
-
decode: decode$
|
|
26599
|
+
decode: decode$t
|
|
26504
26600
|
});
|
|
26505
26601
|
const encode$q = (attributes) => {
|
|
26506
26602
|
return attributes["w:rsidRPr"];
|
|
26507
26603
|
};
|
|
26508
|
-
const decode$
|
|
26604
|
+
const decode$s = (attrs) => {
|
|
26509
26605
|
return attrs.rsidRPr;
|
|
26510
26606
|
};
|
|
26511
|
-
const attrConfig$
|
|
26607
|
+
const attrConfig$9 = Object.freeze({
|
|
26512
26608
|
xmlName: "w:rsidRPr",
|
|
26513
26609
|
sdName: "rsidRPr",
|
|
26514
26610
|
encode: encode$q,
|
|
26515
|
-
decode: decode$
|
|
26611
|
+
decode: decode$s
|
|
26516
26612
|
});
|
|
26517
26613
|
const encode$p = (attributes) => {
|
|
26518
26614
|
return attributes["w:rsidDel"];
|
|
26519
26615
|
};
|
|
26520
|
-
const decode$
|
|
26616
|
+
const decode$r = (attrs) => {
|
|
26521
26617
|
return attrs.rsidDel;
|
|
26522
26618
|
};
|
|
26523
|
-
const attrConfig$
|
|
26619
|
+
const attrConfig$8 = Object.freeze({
|
|
26524
26620
|
xmlName: "w:rsidDel",
|
|
26525
26621
|
sdName: "rsidDel",
|
|
26526
26622
|
encode: encode$p,
|
|
26527
|
-
decode: decode$
|
|
26623
|
+
decode: decode$r
|
|
26528
26624
|
});
|
|
26529
|
-
const validXmlAttributes$9 = [attrConfig$
|
|
26530
|
-
const XML_NODE_NAME$
|
|
26625
|
+
const validXmlAttributes$9 = [attrConfig$a, attrConfig$9, attrConfig$8];
|
|
26626
|
+
const XML_NODE_NAME$i = "w:r";
|
|
26531
26627
|
const SD_KEY_NAME = "run";
|
|
26532
26628
|
const encode$o = (params2, encodedAttrs = {}) => {
|
|
26533
26629
|
const { nodes = [], nodeListHandler } = params2 || {};
|
|
@@ -26577,7 +26673,7 @@ const encode$o = (params2, encodedAttrs = {}) => {
|
|
|
26577
26673
|
}
|
|
26578
26674
|
return runNodeResult;
|
|
26579
26675
|
};
|
|
26580
|
-
const decode$
|
|
26676
|
+
const decode$q = (params2, decodedAttrs = {}) => {
|
|
26581
26677
|
const { node } = params2 || {};
|
|
26582
26678
|
if (!node) return void 0;
|
|
26583
26679
|
const isLinkNode = node.marks?.some((m2) => m2.type === "link");
|
|
@@ -26636,7 +26732,7 @@ const decode$o = (params2, decodedAttrs = {}) => {
|
|
|
26636
26732
|
runs.push(trackedClone);
|
|
26637
26733
|
return;
|
|
26638
26734
|
}
|
|
26639
|
-
const runWrapper = { name: XML_NODE_NAME$
|
|
26735
|
+
const runWrapper = { name: XML_NODE_NAME$i, elements: [] };
|
|
26640
26736
|
applyBaseRunProps(runWrapper);
|
|
26641
26737
|
if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
|
|
26642
26738
|
runWrapper.elements.push(cloneXmlNode(child));
|
|
@@ -26644,7 +26740,7 @@ const decode$o = (params2, decodedAttrs = {}) => {
|
|
|
26644
26740
|
});
|
|
26645
26741
|
const trackedRuns = ensureTrackedWrapper(runs, trackingMarksByType);
|
|
26646
26742
|
if (!trackedRuns.length) {
|
|
26647
|
-
const emptyRun = { name: XML_NODE_NAME$
|
|
26743
|
+
const emptyRun = { name: XML_NODE_NAME$i, elements: [] };
|
|
26648
26744
|
applyBaseRunProps(emptyRun);
|
|
26649
26745
|
trackedRuns.push(emptyRun);
|
|
26650
26746
|
}
|
|
@@ -26659,11 +26755,11 @@ const decode$o = (params2, decodedAttrs = {}) => {
|
|
|
26659
26755
|
return trackedRuns;
|
|
26660
26756
|
};
|
|
26661
26757
|
const config$f = {
|
|
26662
|
-
xmlName: XML_NODE_NAME$
|
|
26758
|
+
xmlName: XML_NODE_NAME$i,
|
|
26663
26759
|
sdNodeOrKeyName: SD_KEY_NAME,
|
|
26664
26760
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26665
26761
|
encode: encode$o,
|
|
26666
|
-
decode: decode$
|
|
26762
|
+
decode: decode$q,
|
|
26667
26763
|
attributes: validXmlAttributes$9
|
|
26668
26764
|
};
|
|
26669
26765
|
const translator$V = NodeTranslator.from(config$f);
|
|
@@ -26801,7 +26897,7 @@ const translator$L = NodeTranslator.from({
|
|
|
26801
26897
|
});
|
|
26802
26898
|
const translator$K = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
|
|
26803
26899
|
const translator$J = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
|
|
26804
|
-
const XML_NODE_NAME$
|
|
26900
|
+
const XML_NODE_NAME$h = "w:trPr";
|
|
26805
26901
|
const SD_ATTR_KEY$4 = "tableRowProperties";
|
|
26806
26902
|
const encode$n = (params2) => {
|
|
26807
26903
|
const { nodes } = params2;
|
|
@@ -26817,12 +26913,12 @@ const encode$n = (params2) => {
|
|
|
26817
26913
|
};
|
|
26818
26914
|
return {
|
|
26819
26915
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
26820
|
-
xmlName: XML_NODE_NAME$
|
|
26916
|
+
xmlName: XML_NODE_NAME$h,
|
|
26821
26917
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
26822
26918
|
attributes
|
|
26823
26919
|
};
|
|
26824
26920
|
};
|
|
26825
|
-
const decode$
|
|
26921
|
+
const decode$p = (params2) => {
|
|
26826
26922
|
const { tableRowProperties = {} } = params2.node.attrs || {};
|
|
26827
26923
|
const elements = decodeProperties(propertyTranslatorsBySdName$2, tableRowProperties);
|
|
26828
26924
|
const newNode = {
|
|
@@ -26856,15 +26952,15 @@ propertyTranslators$3.forEach((translator2) => {
|
|
|
26856
26952
|
propertyTranslatorsBySdName$2[translator2.sdNodeOrKeyName] = translator2;
|
|
26857
26953
|
});
|
|
26858
26954
|
const config$e = {
|
|
26859
|
-
xmlName: XML_NODE_NAME$
|
|
26955
|
+
xmlName: XML_NODE_NAME$h,
|
|
26860
26956
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
26861
26957
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
26862
26958
|
encode: encode$n,
|
|
26863
|
-
decode: decode$
|
|
26959
|
+
decode: decode$p
|
|
26864
26960
|
};
|
|
26865
26961
|
const translator$I = NodeTranslator.from(config$e);
|
|
26866
|
-
const XML_NODE_NAME$
|
|
26867
|
-
const SD_NODE_NAME$
|
|
26962
|
+
const XML_NODE_NAME$g = "w:tr";
|
|
26963
|
+
const SD_NODE_NAME$c = "tableRow";
|
|
26868
26964
|
const validXmlAttributes$8 = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
|
|
26869
26965
|
(xmlName) => createAttributeHandler(xmlName)
|
|
26870
26966
|
);
|
|
@@ -26908,7 +27004,7 @@ const encode$m = (params2, encodedAttrs) => {
|
|
|
26908
27004
|
};
|
|
26909
27005
|
return newNode;
|
|
26910
27006
|
};
|
|
26911
|
-
const decode$
|
|
27007
|
+
const decode$o = (params2, decodedAttrs) => {
|
|
26912
27008
|
const { node } = params2;
|
|
26913
27009
|
const elements = translateChildNodes(params2);
|
|
26914
27010
|
if (node.attrs?.tableRowProperties) {
|
|
@@ -26933,11 +27029,11 @@ const decode$m = (params2, decodedAttrs) => {
|
|
|
26933
27029
|
};
|
|
26934
27030
|
};
|
|
26935
27031
|
const config$d = {
|
|
26936
|
-
xmlName: XML_NODE_NAME$
|
|
26937
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
27032
|
+
xmlName: XML_NODE_NAME$g,
|
|
27033
|
+
sdNodeOrKeyName: SD_NODE_NAME$c,
|
|
26938
27034
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26939
27035
|
encode: encode$m,
|
|
26940
|
-
decode: decode$
|
|
27036
|
+
decode: decode$o,
|
|
26941
27037
|
attributes: validXmlAttributes$8
|
|
26942
27038
|
};
|
|
26943
27039
|
const translator$H = NodeTranslator.from(config$d);
|
|
@@ -27020,7 +27116,7 @@ const translator$j = NodeTranslator.from(createBorderPropertyHandler("w:start"))
|
|
|
27020
27116
|
const translator$i = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
|
|
27021
27117
|
const translator$h = NodeTranslator.from(createBorderPropertyHandler("w:top"));
|
|
27022
27118
|
const translator$g = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
|
|
27023
|
-
const XML_NODE_NAME$
|
|
27119
|
+
const XML_NODE_NAME$f = "w:tblBorders";
|
|
27024
27120
|
const SD_ATTR_KEY$3 = "borders";
|
|
27025
27121
|
const encode$l = (params2) => {
|
|
27026
27122
|
const { nodes } = params2;
|
|
@@ -27028,7 +27124,7 @@ const encode$l = (params2) => {
|
|
|
27028
27124
|
const attributes = encodeProperties(node, tblBordersTranslatorsByXmlName);
|
|
27029
27125
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
27030
27126
|
};
|
|
27031
|
-
const decode$
|
|
27127
|
+
const decode$n = (params2) => {
|
|
27032
27128
|
const { borders = {} } = params2.node.attrs || {};
|
|
27033
27129
|
const elements = decodeProperties(tblBordersTranslatorsBySdName, borders);
|
|
27034
27130
|
const newNode = {
|
|
@@ -27056,14 +27152,14 @@ propertyTranslators$2.forEach((translator2) => {
|
|
|
27056
27152
|
tblBordersTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
27057
27153
|
});
|
|
27058
27154
|
const translator$f = NodeTranslator.from({
|
|
27059
|
-
xmlName: XML_NODE_NAME$
|
|
27155
|
+
xmlName: XML_NODE_NAME$f,
|
|
27060
27156
|
sdNodeOrKeyName: SD_ATTR_KEY$3,
|
|
27061
27157
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27062
27158
|
attributes: [],
|
|
27063
27159
|
encode: encode$l,
|
|
27064
|
-
decode: decode$
|
|
27160
|
+
decode: decode$n
|
|
27065
27161
|
});
|
|
27066
|
-
const XML_NODE_NAME$
|
|
27162
|
+
const XML_NODE_NAME$e = "w:tblCellMar";
|
|
27067
27163
|
const SD_ATTR_KEY$2 = "cellMargins";
|
|
27068
27164
|
const encode$k = (params2) => {
|
|
27069
27165
|
const { nodes } = params2;
|
|
@@ -27071,11 +27167,11 @@ const encode$k = (params2) => {
|
|
|
27071
27167
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName$1);
|
|
27072
27168
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
27073
27169
|
};
|
|
27074
|
-
const decode$
|
|
27170
|
+
const decode$m = (params2) => {
|
|
27075
27171
|
const { cellMargins = {} } = params2.node.attrs || {};
|
|
27076
27172
|
const elements = decodeProperties(propertyTranslatorsBySdName$1, cellMargins);
|
|
27077
27173
|
const newNode = {
|
|
27078
|
-
name: XML_NODE_NAME$
|
|
27174
|
+
name: XML_NODE_NAME$e,
|
|
27079
27175
|
type: "element",
|
|
27080
27176
|
attributes: {},
|
|
27081
27177
|
elements
|
|
@@ -27097,26 +27193,26 @@ propertyTranslators$1.forEach((translator2) => {
|
|
|
27097
27193
|
propertyTranslatorsBySdName$1[translator2.sdNodeOrKeyName] = translator2;
|
|
27098
27194
|
});
|
|
27099
27195
|
const translator$e = NodeTranslator.from({
|
|
27100
|
-
xmlName: XML_NODE_NAME$
|
|
27196
|
+
xmlName: XML_NODE_NAME$e,
|
|
27101
27197
|
sdNodeOrKeyName: SD_ATTR_KEY$2,
|
|
27102
27198
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27103
27199
|
attributes: [],
|
|
27104
27200
|
encode: encode$k,
|
|
27105
|
-
decode: decode$
|
|
27201
|
+
decode: decode$m
|
|
27106
27202
|
});
|
|
27107
|
-
const XML_NODE_NAME$
|
|
27203
|
+
const XML_NODE_NAME$d = "w:tblPr";
|
|
27108
27204
|
const SD_ATTR_KEY$1 = "tableProperties";
|
|
27109
27205
|
const encode$j = (params2) => {
|
|
27110
27206
|
const { nodes } = params2;
|
|
27111
27207
|
const node = nodes[0];
|
|
27112
27208
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName);
|
|
27113
27209
|
return {
|
|
27114
|
-
xmlName: XML_NODE_NAME$
|
|
27210
|
+
xmlName: XML_NODE_NAME$d,
|
|
27115
27211
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
27116
27212
|
attributes
|
|
27117
27213
|
};
|
|
27118
27214
|
};
|
|
27119
|
-
const decode$
|
|
27215
|
+
const decode$l = (params2) => {
|
|
27120
27216
|
const { tableProperties = {} } = params2.node.attrs || {};
|
|
27121
27217
|
const elements = decodeProperties(propertyTranslatorsBySdName, tableProperties);
|
|
27122
27218
|
const newNode = {
|
|
@@ -27153,10 +27249,10 @@ propertyTranslators.forEach((translator2) => {
|
|
|
27153
27249
|
propertyTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
27154
27250
|
});
|
|
27155
27251
|
const config$c = {
|
|
27156
|
-
xmlName: XML_NODE_NAME$
|
|
27252
|
+
xmlName: XML_NODE_NAME$d,
|
|
27157
27253
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
27158
27254
|
encode: encode$j,
|
|
27159
|
-
decode: decode$
|
|
27255
|
+
decode: decode$l
|
|
27160
27256
|
};
|
|
27161
27257
|
const translator$d = NodeTranslator.from(config$c);
|
|
27162
27258
|
const translator$c = NodeTranslator.from(
|
|
@@ -27209,7 +27305,7 @@ const resolveFallbackColumnWidthTwips = (params2, totalColumns, cellMinWidthTwip
|
|
|
27209
27305
|
}
|
|
27210
27306
|
return Math.max(fallbackWidthTwips, cellMinWidthTwips);
|
|
27211
27307
|
};
|
|
27212
|
-
const XML_NODE_NAME$
|
|
27308
|
+
const XML_NODE_NAME$c = "w:tblGrid";
|
|
27213
27309
|
const SD_ATTR_KEY = "grid";
|
|
27214
27310
|
const cellMinWidth = pixelsToTwips(10);
|
|
27215
27311
|
const encode$i = (params2) => {
|
|
@@ -27217,12 +27313,12 @@ const encode$i = (params2) => {
|
|
|
27217
27313
|
const node = nodes[0];
|
|
27218
27314
|
const attributes = encodeProperties(node, { [translator$c.xmlName]: translator$c }, true);
|
|
27219
27315
|
return {
|
|
27220
|
-
xmlName: XML_NODE_NAME$
|
|
27316
|
+
xmlName: XML_NODE_NAME$c,
|
|
27221
27317
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
27222
27318
|
attributes
|
|
27223
27319
|
};
|
|
27224
27320
|
};
|
|
27225
|
-
const decode$
|
|
27321
|
+
const decode$k = (params2) => {
|
|
27226
27322
|
const { grid: rawGrid } = params2.node.attrs || {};
|
|
27227
27323
|
const grid = Array.isArray(rawGrid) ? rawGrid : [];
|
|
27228
27324
|
const { firstRow = {} } = params2.extraParams || {};
|
|
@@ -27279,17 +27375,17 @@ const decode$i = (params2) => {
|
|
|
27279
27375
|
columnIndex++;
|
|
27280
27376
|
}
|
|
27281
27377
|
const newNode = {
|
|
27282
|
-
name: XML_NODE_NAME$
|
|
27378
|
+
name: XML_NODE_NAME$c,
|
|
27283
27379
|
attributes: {},
|
|
27284
27380
|
elements
|
|
27285
27381
|
};
|
|
27286
27382
|
return newNode;
|
|
27287
27383
|
};
|
|
27288
27384
|
const config$b = {
|
|
27289
|
-
xmlName: XML_NODE_NAME$
|
|
27385
|
+
xmlName: XML_NODE_NAME$c,
|
|
27290
27386
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
27291
27387
|
encode: encode$i,
|
|
27292
|
-
decode: decode$
|
|
27388
|
+
decode: decode$k
|
|
27293
27389
|
};
|
|
27294
27390
|
const translator$b = NodeTranslator.from(config$b);
|
|
27295
27391
|
const DEFAULT_PAGE_WIDTH_TWIPS = 12240;
|
|
@@ -27354,8 +27450,8 @@ const buildFallbackGridForTable = ({ params: params2, rows, tableWidth, tableWid
|
|
|
27354
27450
|
columnWidths: Array(columnCount).fill(fallbackColumnWidthPx)
|
|
27355
27451
|
};
|
|
27356
27452
|
};
|
|
27357
|
-
const XML_NODE_NAME$
|
|
27358
|
-
const SD_NODE_NAME$
|
|
27453
|
+
const XML_NODE_NAME$b = "w:tbl";
|
|
27454
|
+
const SD_NODE_NAME$b = "table";
|
|
27359
27455
|
const encode$h = (params2, encodedAttrs) => {
|
|
27360
27456
|
const { nodes } = params2;
|
|
27361
27457
|
const node = nodes[0];
|
|
@@ -27444,7 +27540,7 @@ const encode$h = (params2, encodedAttrs) => {
|
|
|
27444
27540
|
columnWidths
|
|
27445
27541
|
}
|
|
27446
27542
|
});
|
|
27447
|
-
if (result
|
|
27543
|
+
if (result) content.push(result);
|
|
27448
27544
|
});
|
|
27449
27545
|
return {
|
|
27450
27546
|
type: "table",
|
|
@@ -27452,7 +27548,7 @@ const encode$h = (params2, encodedAttrs) => {
|
|
|
27452
27548
|
attrs: encodedAttrs
|
|
27453
27549
|
};
|
|
27454
27550
|
};
|
|
27455
|
-
const decode$
|
|
27551
|
+
const decode$j = (params2, decodedAttrs) => {
|
|
27456
27552
|
params2.node = preProcessVerticalMergeCells(params2.node, params2);
|
|
27457
27553
|
const { node } = params2;
|
|
27458
27554
|
const elements = translateChildNodes(params2);
|
|
@@ -27552,11 +27648,11 @@ function _getReferencedTableStyles(tableStyleReference, params2) {
|
|
|
27552
27648
|
return stylesToReturn;
|
|
27553
27649
|
}
|
|
27554
27650
|
const config$a = {
|
|
27555
|
-
xmlName: XML_NODE_NAME$
|
|
27556
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
27651
|
+
xmlName: XML_NODE_NAME$b,
|
|
27652
|
+
sdNodeOrKeyName: SD_NODE_NAME$b,
|
|
27557
27653
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27558
27654
|
encode: encode$h,
|
|
27559
|
-
decode: decode$
|
|
27655
|
+
decode: decode$j,
|
|
27560
27656
|
attributes: []
|
|
27561
27657
|
};
|
|
27562
27658
|
const translator$a = NodeTranslator.from(config$a);
|
|
@@ -27922,8 +28018,8 @@ function generateCellMargins(cellMargins) {
|
|
|
27922
28018
|
if (left2 != null) elements.push({ name: "w:left", attributes: { "w:w": pixelsToTwips(left2) } });
|
|
27923
28019
|
return elements;
|
|
27924
28020
|
}
|
|
27925
|
-
const XML_NODE_NAME$
|
|
27926
|
-
const SD_NODE_NAME$
|
|
28021
|
+
const XML_NODE_NAME$a = "w:tc";
|
|
28022
|
+
const SD_NODE_NAME$a = "tableCell";
|
|
27927
28023
|
const validXmlAttributes$7 = [];
|
|
27928
28024
|
function encode$g(params2, encodedAttrs) {
|
|
27929
28025
|
const {
|
|
@@ -27952,7 +28048,7 @@ function encode$g(params2, encodedAttrs) {
|
|
|
27952
28048
|
}
|
|
27953
28049
|
return schemaNode;
|
|
27954
28050
|
}
|
|
27955
|
-
function decode$
|
|
28051
|
+
function decode$i(params2, decodedAttrs) {
|
|
27956
28052
|
const translated = translateTableCell(params2);
|
|
27957
28053
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
27958
28054
|
translated.attributes = { ...translated.attributes || {}, ...decodedAttrs };
|
|
@@ -27960,11 +28056,11 @@ function decode$g(params2, decodedAttrs) {
|
|
|
27960
28056
|
return translated;
|
|
27961
28057
|
}
|
|
27962
28058
|
const config$9 = {
|
|
27963
|
-
xmlName: XML_NODE_NAME$
|
|
27964
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28059
|
+
xmlName: XML_NODE_NAME$a,
|
|
28060
|
+
sdNodeOrKeyName: SD_NODE_NAME$a,
|
|
27965
28061
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27966
28062
|
encode: encode$g,
|
|
27967
|
-
decode: decode$
|
|
28063
|
+
decode: decode$i,
|
|
27968
28064
|
attributes: validXmlAttributes$7
|
|
27969
28065
|
};
|
|
27970
28066
|
const translator$9 = NodeTranslator.from(config$9);
|
|
@@ -28786,8 +28882,8 @@ function translateAnchorNode(params2) {
|
|
|
28786
28882
|
elements: [...anchorElements, ...elementsWithWrap]
|
|
28787
28883
|
};
|
|
28788
28884
|
}
|
|
28789
|
-
const XML_NODE_NAME$
|
|
28790
|
-
const SD_NODE_NAME$
|
|
28885
|
+
const XML_NODE_NAME$9 = "wp:anchor";
|
|
28886
|
+
const SD_NODE_NAME$9 = ["image"];
|
|
28791
28887
|
const validXmlAttributes$6 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
28792
28888
|
function encode$f(params2) {
|
|
28793
28889
|
const { node } = params2.extraParams;
|
|
@@ -28796,7 +28892,7 @@ function encode$f(params2) {
|
|
|
28796
28892
|
}
|
|
28797
28893
|
return handleAnchorNode(params2);
|
|
28798
28894
|
}
|
|
28799
|
-
function decode$
|
|
28895
|
+
function decode$h(params2) {
|
|
28800
28896
|
const { node } = params2;
|
|
28801
28897
|
if (!node || !node.type) {
|
|
28802
28898
|
return null;
|
|
@@ -28804,11 +28900,11 @@ function decode$f(params2) {
|
|
|
28804
28900
|
return translateAnchorNode(params2);
|
|
28805
28901
|
}
|
|
28806
28902
|
const config$8 = {
|
|
28807
|
-
xmlName: XML_NODE_NAME$
|
|
28808
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28903
|
+
xmlName: XML_NODE_NAME$9,
|
|
28904
|
+
sdNodeOrKeyName: SD_NODE_NAME$9,
|
|
28809
28905
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28810
28906
|
encode: encode$f,
|
|
28811
|
-
decode: decode$
|
|
28907
|
+
decode: decode$h,
|
|
28812
28908
|
attributes: validXmlAttributes$6
|
|
28813
28909
|
};
|
|
28814
28910
|
const translator$8 = NodeTranslator.from(config$8);
|
|
@@ -28827,8 +28923,8 @@ function translateInlineNode(params2) {
|
|
|
28827
28923
|
elements: nodeElements.elements
|
|
28828
28924
|
};
|
|
28829
28925
|
}
|
|
28830
|
-
const XML_NODE_NAME$
|
|
28831
|
-
const SD_NODE_NAME$
|
|
28926
|
+
const XML_NODE_NAME$8 = "wp:inline";
|
|
28927
|
+
const SD_NODE_NAME$8 = ["image"];
|
|
28832
28928
|
const validXmlAttributes$5 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
28833
28929
|
function encode$e(params2) {
|
|
28834
28930
|
const { node } = params2.extraParams;
|
|
@@ -28837,7 +28933,7 @@ function encode$e(params2) {
|
|
|
28837
28933
|
}
|
|
28838
28934
|
return handleInlineNode(params2);
|
|
28839
28935
|
}
|
|
28840
|
-
function decode$
|
|
28936
|
+
function decode$g(params2) {
|
|
28841
28937
|
const { node } = params2;
|
|
28842
28938
|
if (!node || !node.type) {
|
|
28843
28939
|
return null;
|
|
@@ -28845,16 +28941,16 @@ function decode$e(params2) {
|
|
|
28845
28941
|
return translateInlineNode(params2);
|
|
28846
28942
|
}
|
|
28847
28943
|
const config$7 = {
|
|
28848
|
-
xmlName: XML_NODE_NAME$
|
|
28849
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28944
|
+
xmlName: XML_NODE_NAME$8,
|
|
28945
|
+
sdNodeOrKeyName: SD_NODE_NAME$8,
|
|
28850
28946
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28851
28947
|
encode: encode$e,
|
|
28852
|
-
decode: decode$
|
|
28948
|
+
decode: decode$g,
|
|
28853
28949
|
attributes: validXmlAttributes$5
|
|
28854
28950
|
};
|
|
28855
28951
|
const translator$7 = NodeTranslator.from(config$7);
|
|
28856
|
-
const XML_NODE_NAME$
|
|
28857
|
-
const SD_NODE_NAME$
|
|
28952
|
+
const XML_NODE_NAME$7 = "w:drawing";
|
|
28953
|
+
const SD_NODE_NAME$7 = [];
|
|
28858
28954
|
const validXmlAttributes$4 = [];
|
|
28859
28955
|
function encode$d(params2) {
|
|
28860
28956
|
const nodes = params2.nodes;
|
|
@@ -28870,7 +28966,7 @@ function encode$d(params2) {
|
|
|
28870
28966
|
return translator2.encode({ ...params2, extraParams: { node: child } }) || acc;
|
|
28871
28967
|
}, null);
|
|
28872
28968
|
}
|
|
28873
|
-
function decode$
|
|
28969
|
+
function decode$f(params2) {
|
|
28874
28970
|
const { node } = params2;
|
|
28875
28971
|
if (!node || !node.type) {
|
|
28876
28972
|
return null;
|
|
@@ -28886,11 +28982,11 @@ function decode$d(params2) {
|
|
|
28886
28982
|
);
|
|
28887
28983
|
}
|
|
28888
28984
|
const config$6 = {
|
|
28889
|
-
xmlName: XML_NODE_NAME$
|
|
28890
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28985
|
+
xmlName: XML_NODE_NAME$7,
|
|
28986
|
+
sdNodeOrKeyName: SD_NODE_NAME$7,
|
|
28891
28987
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28892
28988
|
encode: encode$d,
|
|
28893
|
-
decode: decode$
|
|
28989
|
+
decode: decode$f,
|
|
28894
28990
|
attributes: validXmlAttributes$4
|
|
28895
28991
|
};
|
|
28896
28992
|
const translator$6 = NodeTranslator.from(config$6);
|
|
@@ -30143,7 +30239,7 @@ function requireHe() {
|
|
|
30143
30239
|
return he$2.exports;
|
|
30144
30240
|
}
|
|
30145
30241
|
var heExports = requireHe();
|
|
30146
|
-
const he = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
30242
|
+
const he = /* @__PURE__ */ getDefaultExportFromCjs$2(heExports);
|
|
30147
30243
|
function translateFieldAnnotation(params2) {
|
|
30148
30244
|
const { node, isFinalDoc, fieldsHighlightColor } = params2;
|
|
30149
30245
|
const { attrs = {} } = node;
|
|
@@ -30545,8 +30641,8 @@ function generateSdtPrTagForStructuredContent({ node }) {
|
|
|
30545
30641
|
};
|
|
30546
30642
|
return result;
|
|
30547
30643
|
}
|
|
30548
|
-
const XML_NODE_NAME$
|
|
30549
|
-
const SD_NODE_NAME$
|
|
30644
|
+
const XML_NODE_NAME$6 = "w:sdt";
|
|
30645
|
+
const SD_NODE_NAME$6 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
|
|
30550
30646
|
const validXmlAttributes$3 = [];
|
|
30551
30647
|
function encode$c(params2) {
|
|
30552
30648
|
const nodes = params2.nodes;
|
|
@@ -30558,7 +30654,7 @@ function encode$c(params2) {
|
|
|
30558
30654
|
const result = handler2(params2);
|
|
30559
30655
|
return result;
|
|
30560
30656
|
}
|
|
30561
|
-
function decode$
|
|
30657
|
+
function decode$e(params2) {
|
|
30562
30658
|
const { node } = params2;
|
|
30563
30659
|
if (!node || !node.type) {
|
|
30564
30660
|
return null;
|
|
@@ -30577,84 +30673,84 @@ function decode$c(params2) {
|
|
|
30577
30673
|
return result;
|
|
30578
30674
|
}
|
|
30579
30675
|
const config$5 = {
|
|
30580
|
-
xmlName: XML_NODE_NAME$
|
|
30581
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30676
|
+
xmlName: XML_NODE_NAME$6,
|
|
30677
|
+
sdNodeOrKeyName: SD_NODE_NAME$6,
|
|
30582
30678
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30583
30679
|
encode: encode$c,
|
|
30584
|
-
decode: decode$
|
|
30680
|
+
decode: decode$e,
|
|
30585
30681
|
attributes: validXmlAttributes$3
|
|
30586
30682
|
};
|
|
30587
30683
|
const translator$5 = NodeTranslator.from(config$5);
|
|
30588
30684
|
const encode$b = (attributes) => {
|
|
30589
30685
|
return attributes["w:id"];
|
|
30590
30686
|
};
|
|
30591
|
-
const decode$
|
|
30687
|
+
const decode$d = (attrs) => {
|
|
30592
30688
|
return attrs.id;
|
|
30593
30689
|
};
|
|
30594
|
-
const attrConfig$
|
|
30690
|
+
const attrConfig$7 = Object.freeze({
|
|
30595
30691
|
xmlName: "w:id",
|
|
30596
30692
|
sdName: "id",
|
|
30597
30693
|
encode: encode$b,
|
|
30598
|
-
decode: decode$
|
|
30694
|
+
decode: decode$d
|
|
30599
30695
|
});
|
|
30600
30696
|
const encode$a = (attributes) => {
|
|
30601
30697
|
return attributes["w:name"];
|
|
30602
30698
|
};
|
|
30603
|
-
const decode$
|
|
30699
|
+
const decode$c = (attrs) => {
|
|
30604
30700
|
return attrs.name;
|
|
30605
30701
|
};
|
|
30606
|
-
const attrConfig$
|
|
30702
|
+
const attrConfig$6 = Object.freeze({
|
|
30607
30703
|
xmlName: "w:name",
|
|
30608
30704
|
sdName: "name",
|
|
30609
30705
|
encode: encode$a,
|
|
30610
|
-
decode: decode$
|
|
30706
|
+
decode: decode$c
|
|
30611
30707
|
});
|
|
30612
30708
|
const encode$9 = (attributes) => {
|
|
30613
30709
|
return attributes["w:colFirst"];
|
|
30614
30710
|
};
|
|
30615
|
-
const decode$
|
|
30711
|
+
const decode$b = (attrs) => {
|
|
30616
30712
|
return attrs.colFirst;
|
|
30617
30713
|
};
|
|
30618
|
-
const attrConfig$
|
|
30714
|
+
const attrConfig$5 = Object.freeze({
|
|
30619
30715
|
xmlName: "w:colFirst",
|
|
30620
30716
|
sdName: "colFirst",
|
|
30621
30717
|
encode: encode$9,
|
|
30622
|
-
decode: decode$
|
|
30718
|
+
decode: decode$b
|
|
30623
30719
|
});
|
|
30624
30720
|
const encode$8 = (attributes) => {
|
|
30625
30721
|
return attributes["w:colLast"];
|
|
30626
30722
|
};
|
|
30627
|
-
const decode$
|
|
30723
|
+
const decode$a = (attrs) => {
|
|
30628
30724
|
return attrs.colLast;
|
|
30629
30725
|
};
|
|
30630
|
-
const attrConfig$
|
|
30726
|
+
const attrConfig$4 = Object.freeze({
|
|
30631
30727
|
xmlName: "w:colLast",
|
|
30632
30728
|
sdName: "colLast",
|
|
30633
30729
|
encode: encode$8,
|
|
30634
|
-
decode: decode$
|
|
30730
|
+
decode: decode$a
|
|
30635
30731
|
});
|
|
30636
30732
|
const encode$7 = (attributes) => {
|
|
30637
30733
|
return attributes["w:displacedByCustomXml"];
|
|
30638
30734
|
};
|
|
30639
|
-
const decode$
|
|
30735
|
+
const decode$9 = (attrs) => {
|
|
30640
30736
|
return attrs.displacedByCustomXml;
|
|
30641
30737
|
};
|
|
30642
|
-
const attrConfig$
|
|
30738
|
+
const attrConfig$3 = Object.freeze({
|
|
30643
30739
|
xmlName: "w:displacedByCustomXml",
|
|
30644
30740
|
sdName: "displacedByCustomXml",
|
|
30645
30741
|
encode: encode$7,
|
|
30646
|
-
decode: decode$
|
|
30742
|
+
decode: decode$9
|
|
30647
30743
|
});
|
|
30648
|
-
const validXmlAttributes$2 = [attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3
|
|
30649
|
-
const XML_NODE_NAME$
|
|
30650
|
-
const SD_NODE_NAME$
|
|
30744
|
+
const validXmlAttributes$2 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
|
|
30745
|
+
const XML_NODE_NAME$5 = "w:bookmarkStart";
|
|
30746
|
+
const SD_NODE_NAME$5 = "bookmarkStart";
|
|
30651
30747
|
const encode$6 = (params2, encodedAttrs = {}) => {
|
|
30652
30748
|
return {
|
|
30653
30749
|
type: "bookmarkStart",
|
|
30654
30750
|
attrs: encodedAttrs
|
|
30655
30751
|
};
|
|
30656
30752
|
};
|
|
30657
|
-
const decode$
|
|
30753
|
+
const decode$8 = (params2, decodedAttrs = {}) => {
|
|
30658
30754
|
const result = {
|
|
30659
30755
|
name: "w:bookmarkStart",
|
|
30660
30756
|
elements: []
|
|
@@ -30665,48 +30761,48 @@ const decode$6 = (params2, decodedAttrs = {}) => {
|
|
|
30665
30761
|
return result;
|
|
30666
30762
|
};
|
|
30667
30763
|
const config$4 = {
|
|
30668
|
-
xmlName: XML_NODE_NAME$
|
|
30669
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30764
|
+
xmlName: XML_NODE_NAME$5,
|
|
30765
|
+
sdNodeOrKeyName: SD_NODE_NAME$5,
|
|
30670
30766
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30671
30767
|
encode: encode$6,
|
|
30672
|
-
decode: decode$
|
|
30768
|
+
decode: decode$8,
|
|
30673
30769
|
attributes: validXmlAttributes$2
|
|
30674
30770
|
};
|
|
30675
30771
|
const translator$4 = NodeTranslator.from(config$4);
|
|
30676
30772
|
const encode$5 = (attributes) => {
|
|
30677
30773
|
return attributes["w:id"];
|
|
30678
30774
|
};
|
|
30679
|
-
const decode$
|
|
30775
|
+
const decode$7 = (attrs) => {
|
|
30680
30776
|
return attrs.id;
|
|
30681
30777
|
};
|
|
30682
|
-
const attrConfig$
|
|
30778
|
+
const attrConfig$2 = Object.freeze({
|
|
30683
30779
|
xmlName: "w:id",
|
|
30684
30780
|
sdName: "id",
|
|
30685
30781
|
encode: encode$5,
|
|
30686
|
-
decode: decode$
|
|
30782
|
+
decode: decode$7
|
|
30687
30783
|
});
|
|
30688
30784
|
const encode$4 = (attributes) => {
|
|
30689
30785
|
return attributes["w:displacedByCustomXml"];
|
|
30690
30786
|
};
|
|
30691
|
-
const decode$
|
|
30787
|
+
const decode$6 = (attrs) => {
|
|
30692
30788
|
return attrs.displacedByCustomXml;
|
|
30693
30789
|
};
|
|
30694
|
-
const attrConfig = Object.freeze({
|
|
30790
|
+
const attrConfig$1 = Object.freeze({
|
|
30695
30791
|
xmlName: "w:displacedByCustomXml",
|
|
30696
30792
|
sdName: "displacedByCustomXml",
|
|
30697
30793
|
encode: encode$4,
|
|
30698
|
-
decode: decode$
|
|
30794
|
+
decode: decode$6
|
|
30699
30795
|
});
|
|
30700
|
-
const validXmlAttributes$1 = [attrConfig$
|
|
30701
|
-
const XML_NODE_NAME$
|
|
30702
|
-
const SD_NODE_NAME$
|
|
30796
|
+
const validXmlAttributes$1 = [attrConfig$2, attrConfig$1];
|
|
30797
|
+
const XML_NODE_NAME$4 = "w:bookmarkEnd";
|
|
30798
|
+
const SD_NODE_NAME$4 = "bookmarkEnd";
|
|
30703
30799
|
const encode$3 = (params2, encodedAttrs = {}) => {
|
|
30704
30800
|
return {
|
|
30705
30801
|
type: "bookmarkEnd",
|
|
30706
30802
|
attrs: encodedAttrs
|
|
30707
30803
|
};
|
|
30708
30804
|
};
|
|
30709
|
-
const decode$
|
|
30805
|
+
const decode$5 = (params2, decodedAttrs = {}) => {
|
|
30710
30806
|
const result = {
|
|
30711
30807
|
name: "w:bookmarkEnd",
|
|
30712
30808
|
elements: []
|
|
@@ -30717,16 +30813,16 @@ const decode$3 = (params2, decodedAttrs = {}) => {
|
|
|
30717
30813
|
return result;
|
|
30718
30814
|
};
|
|
30719
30815
|
const config$3 = {
|
|
30720
|
-
xmlName: XML_NODE_NAME$
|
|
30721
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30816
|
+
xmlName: XML_NODE_NAME$4,
|
|
30817
|
+
sdNodeOrKeyName: SD_NODE_NAME$4,
|
|
30722
30818
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30723
30819
|
encode: encode$3,
|
|
30724
|
-
decode: decode$
|
|
30820
|
+
decode: decode$5,
|
|
30725
30821
|
attributes: validXmlAttributes$1
|
|
30726
30822
|
};
|
|
30727
30823
|
const translator$3 = NodeTranslator.from(config$3);
|
|
30728
|
-
const XML_NODE_NAME$
|
|
30729
|
-
const SD_NODE_NAME$
|
|
30824
|
+
const XML_NODE_NAME$3 = "mc:AlternateContent";
|
|
30825
|
+
const SD_NODE_NAME$3 = [];
|
|
30730
30826
|
const validXmlAttributes = [];
|
|
30731
30827
|
function encode$2(params2) {
|
|
30732
30828
|
const { nodeListHandler } = params2;
|
|
@@ -30748,7 +30844,7 @@ function encode$2(params2) {
|
|
|
30748
30844
|
path: [...params2.path || [], wpsNode]
|
|
30749
30845
|
});
|
|
30750
30846
|
}
|
|
30751
|
-
function decode$
|
|
30847
|
+
function decode$4(params2) {
|
|
30752
30848
|
const { node } = params2;
|
|
30753
30849
|
const { drawingContent } = node.attrs;
|
|
30754
30850
|
const drawing = {
|
|
@@ -30766,14 +30862,78 @@ function decode$2(params2) {
|
|
|
30766
30862
|
};
|
|
30767
30863
|
}
|
|
30768
30864
|
const config$2 = {
|
|
30769
|
-
xmlName: XML_NODE_NAME$
|
|
30770
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30865
|
+
xmlName: XML_NODE_NAME$3,
|
|
30866
|
+
sdNodeOrKeyName: SD_NODE_NAME$3,
|
|
30771
30867
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30772
30868
|
encode: encode$2,
|
|
30773
|
-
decode: decode$
|
|
30869
|
+
decode: decode$4,
|
|
30774
30870
|
attributes: validXmlAttributes
|
|
30775
30871
|
};
|
|
30776
30872
|
const translator$2 = NodeTranslator.from(config$2);
|
|
30873
|
+
const decode$3 = (attrs) => attrs?.["w:id"];
|
|
30874
|
+
const attrConfig = Object.freeze({
|
|
30875
|
+
xmlName: "w:id",
|
|
30876
|
+
sdName: "w:id",
|
|
30877
|
+
// We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
|
|
30878
|
+
encode: () => {
|
|
30879
|
+
},
|
|
30880
|
+
decode: decode$3
|
|
30881
|
+
});
|
|
30882
|
+
const XML_NODE_NAME$2 = "w:commentRange";
|
|
30883
|
+
const SD_NODE_NAME$2 = "commentRange";
|
|
30884
|
+
const decode$2 = (params2, decodedAttrs) => {
|
|
30885
|
+
const { node, comments, commentsExportType, exportedCommentDefs } = params2;
|
|
30886
|
+
if (!node) return;
|
|
30887
|
+
if (!comments) return;
|
|
30888
|
+
if (exportedCommentDefs?.length === 0) return;
|
|
30889
|
+
if (commentsExportType === "clean") return;
|
|
30890
|
+
const commentNodeId = node.attrs["w:id"];
|
|
30891
|
+
const originalComment = comments.find((comment) => {
|
|
30892
|
+
return comment.commentId == commentNodeId;
|
|
30893
|
+
});
|
|
30894
|
+
if (!originalComment) return;
|
|
30895
|
+
const parentCommentId = originalComment.parentCommentId;
|
|
30896
|
+
const parentComment = comments.find(
|
|
30897
|
+
({ commentId, importedId }) => commentId === parentCommentId || importedId === parentCommentId
|
|
30898
|
+
);
|
|
30899
|
+
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
30900
|
+
if (commentsExportType === "external" && isInternal) return;
|
|
30901
|
+
const isResolved = !!originalComment.resolvedTime;
|
|
30902
|
+
if (isResolved) return;
|
|
30903
|
+
if (node.type !== "commentRangeStart" && node.type !== "commentRangeEnd") {
|
|
30904
|
+
return;
|
|
30905
|
+
}
|
|
30906
|
+
const { type: type2 } = node;
|
|
30907
|
+
const commentIndex = comments.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
30908
|
+
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
30909
|
+
if (type2 === "commentRangeEnd") {
|
|
30910
|
+
const commentReference = {
|
|
30911
|
+
name: "w:r",
|
|
30912
|
+
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
30913
|
+
};
|
|
30914
|
+
commentSchema = [commentSchema, commentReference];
|
|
30915
|
+
}
|
|
30916
|
+
return commentSchema;
|
|
30917
|
+
};
|
|
30918
|
+
const getCommentSchema = (type2, commentIndex) => {
|
|
30919
|
+
return {
|
|
30920
|
+
name: `w:${type2}`,
|
|
30921
|
+
attributes: {
|
|
30922
|
+
"w:id": String(commentIndex)
|
|
30923
|
+
}
|
|
30924
|
+
};
|
|
30925
|
+
};
|
|
30926
|
+
const getConfig = (type2) => ({
|
|
30927
|
+
xmlName: `${XML_NODE_NAME$2}${type2}`,
|
|
30928
|
+
sdNodeOrKeyName: `${SD_NODE_NAME$2}${type2}`,
|
|
30929
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
30930
|
+
encode: () => {
|
|
30931
|
+
},
|
|
30932
|
+
decode: decode$2,
|
|
30933
|
+
attributes: [attrConfig]
|
|
30934
|
+
});
|
|
30935
|
+
const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
|
|
30936
|
+
const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
|
|
30777
30937
|
const XML_NODE_NAME$1 = "sd:pageReference";
|
|
30778
30938
|
const SD_NODE_NAME$1 = "pageReference";
|
|
30779
30939
|
const encode$1 = (params2, _2) => {
|
|
@@ -31033,8 +31193,8 @@ function exportSchemaToJson(params2) {
|
|
|
31033
31193
|
tab: translator$17,
|
|
31034
31194
|
image: translator$6,
|
|
31035
31195
|
hardBreak: translator$19,
|
|
31036
|
-
commentRangeStart:
|
|
31037
|
-
commentRangeEnd:
|
|
31196
|
+
commentRangeStart: commentRangeStartTranslator,
|
|
31197
|
+
commentRangeEnd: commentRangeEndTranslator,
|
|
31038
31198
|
commentReference: () => null,
|
|
31039
31199
|
shapeContainer: translateShapeContainer,
|
|
31040
31200
|
shapeTextbox: translateShapeTextbox,
|
|
@@ -33308,7 +33468,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33308
33468
|
fileType: filePath.split(".").pop()
|
|
33309
33469
|
};
|
|
33310
33470
|
});
|
|
33311
|
-
converter.telemetry.trackFileStructure(
|
|
33471
|
+
const trackStructure = (documentIdentifier = null) => converter.telemetry.trackFileStructure(
|
|
33312
33472
|
{
|
|
33313
33473
|
totalFiles: files.length,
|
|
33314
33474
|
maxDepth: Math.max(...files.map((f) => f.fileDepth)),
|
|
@@ -33316,9 +33476,20 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33316
33476
|
files
|
|
33317
33477
|
},
|
|
33318
33478
|
converter.fileSource,
|
|
33319
|
-
converter.documentId,
|
|
33479
|
+
converter.documentGuid ?? converter.documentId ?? null,
|
|
33480
|
+
documentIdentifier ?? converter.documentId ?? null,
|
|
33320
33481
|
converter.documentInternalId
|
|
33321
33482
|
);
|
|
33483
|
+
try {
|
|
33484
|
+
const identifierResult = converter.getDocumentIdentifier?.();
|
|
33485
|
+
if (identifierResult && typeof identifierResult.then === "function") {
|
|
33486
|
+
identifierResult.then(trackStructure).catch(() => trackStructure());
|
|
33487
|
+
} else {
|
|
33488
|
+
trackStructure(identifierResult);
|
|
33489
|
+
}
|
|
33490
|
+
} catch (error) {
|
|
33491
|
+
trackStructure();
|
|
33492
|
+
}
|
|
33322
33493
|
}
|
|
33323
33494
|
const nodeListHandler = defaultNodeListHandler();
|
|
33324
33495
|
const bodyNode = json.elements[0].elements.find((el) => el.name === "w:body");
|
|
@@ -33794,6 +33965,176 @@ const isAlternatingHeadersOddEven = (docx) => {
|
|
|
33794
33965
|
const evenOdd = elements.find((el) => el.name === "w:evenAndOddHeaders");
|
|
33795
33966
|
return !!evenOdd;
|
|
33796
33967
|
};
|
|
33968
|
+
const prepareCommentParaIds = (comment) => {
|
|
33969
|
+
const newComment = {
|
|
33970
|
+
...comment,
|
|
33971
|
+
commentParaId: generateRandom32BitHex()
|
|
33972
|
+
};
|
|
33973
|
+
return newComment;
|
|
33974
|
+
};
|
|
33975
|
+
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
33976
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
33977
|
+
const attributes = {
|
|
33978
|
+
"w:id": String(commentId),
|
|
33979
|
+
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
33980
|
+
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
33981
|
+
"w:date": toIsoNoFractional(comment.createdTime),
|
|
33982
|
+
"w:initials": getInitials(comment.creatorName),
|
|
33983
|
+
"w:done": comment.resolvedTime ? "1" : "0",
|
|
33984
|
+
"w15:paraId": comment.commentParaId,
|
|
33985
|
+
"custom:internalId": comment.commentId || comment.internalId,
|
|
33986
|
+
"custom:trackedChange": comment.trackedChange,
|
|
33987
|
+
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
33988
|
+
"custom:trackedChangeType": comment.trackedChangeType,
|
|
33989
|
+
"custom:trackedDeletedText": comment.deletedText || null
|
|
33990
|
+
};
|
|
33991
|
+
if (comment?.parentCommentId) {
|
|
33992
|
+
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
33993
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
33994
|
+
}
|
|
33995
|
+
return {
|
|
33996
|
+
type: "element",
|
|
33997
|
+
name: "w:comment",
|
|
33998
|
+
attributes,
|
|
33999
|
+
elements: [translatedText]
|
|
34000
|
+
};
|
|
34001
|
+
};
|
|
34002
|
+
const getInitials = (name) => {
|
|
34003
|
+
if (!name) return null;
|
|
34004
|
+
const preparedText = name.replace("(imported)", "").trim();
|
|
34005
|
+
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
34006
|
+
return initials;
|
|
34007
|
+
};
|
|
34008
|
+
const toIsoNoFractional = (unixMillis) => {
|
|
34009
|
+
const date = new Date(unixMillis || Date.now());
|
|
34010
|
+
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
34011
|
+
};
|
|
34012
|
+
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
34013
|
+
const newCommentsXml = carbonCopy(commentsXml);
|
|
34014
|
+
commentDefs.forEach((commentDef) => {
|
|
34015
|
+
const elements = commentDef.elements[0].elements;
|
|
34016
|
+
elements.unshift(COMMENT_REF);
|
|
34017
|
+
const paraId = commentDef.attributes["w15:paraId"];
|
|
34018
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
34019
|
+
commentDef.attributes = {
|
|
34020
|
+
"w:id": commentDef.attributes["w:id"],
|
|
34021
|
+
"w:author": commentDef.attributes["w:author"],
|
|
34022
|
+
"w:email": commentDef.attributes["w:email"],
|
|
34023
|
+
"w:date": commentDef.attributes["w:date"],
|
|
34024
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
34025
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
34026
|
+
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
34027
|
+
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
34028
|
+
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
34029
|
+
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
34030
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
34031
|
+
};
|
|
34032
|
+
});
|
|
34033
|
+
newCommentsXml.elements[0].elements = commentDefs;
|
|
34034
|
+
return newCommentsXml;
|
|
34035
|
+
};
|
|
34036
|
+
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
34037
|
+
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
34038
|
+
const commentsEx = comments.map((comment) => {
|
|
34039
|
+
const attributes = {
|
|
34040
|
+
"w15:paraId": comment.commentParaId,
|
|
34041
|
+
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
34042
|
+
};
|
|
34043
|
+
const parentId = comment.parentCommentId;
|
|
34044
|
+
if (parentId) {
|
|
34045
|
+
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
34046
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
34047
|
+
}
|
|
34048
|
+
return {
|
|
34049
|
+
type: "element",
|
|
34050
|
+
name: "w15:commentEx",
|
|
34051
|
+
attributes
|
|
34052
|
+
};
|
|
34053
|
+
});
|
|
34054
|
+
xmlCopy.elements[0].elements = commentsEx;
|
|
34055
|
+
return xmlCopy;
|
|
34056
|
+
};
|
|
34057
|
+
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
34058
|
+
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
34059
|
+
const extensibleUpdated = carbonCopy(extensible);
|
|
34060
|
+
documentIdsUpdated.elements[0].elements = [];
|
|
34061
|
+
extensibleUpdated.elements[0].elements = [];
|
|
34062
|
+
comments.forEach((comment) => {
|
|
34063
|
+
const newDurableId = generateRandom32BitHex();
|
|
34064
|
+
const newCommentIdDef = {
|
|
34065
|
+
type: "element",
|
|
34066
|
+
name: "w16cid:commentId",
|
|
34067
|
+
attributes: {
|
|
34068
|
+
"w16cid:paraId": comment.commentParaId,
|
|
34069
|
+
"w16cid:durableId": newDurableId
|
|
34070
|
+
}
|
|
34071
|
+
};
|
|
34072
|
+
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
34073
|
+
const newExtensible = {
|
|
34074
|
+
type: "element",
|
|
34075
|
+
name: "w16cex:commentExtensible",
|
|
34076
|
+
attributes: {
|
|
34077
|
+
"w16cex:durableId": newDurableId,
|
|
34078
|
+
"w16cex:dateUtc": toIsoNoFractional()
|
|
34079
|
+
}
|
|
34080
|
+
};
|
|
34081
|
+
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
34082
|
+
});
|
|
34083
|
+
return {
|
|
34084
|
+
documentIdsUpdated,
|
|
34085
|
+
extensibleUpdated
|
|
34086
|
+
};
|
|
34087
|
+
};
|
|
34088
|
+
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
34089
|
+
const newXml = carbonCopy(convertedXml);
|
|
34090
|
+
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
34091
|
+
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
34092
|
+
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
34093
|
+
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
34094
|
+
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
34095
|
+
return newXml;
|
|
34096
|
+
};
|
|
34097
|
+
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
34098
|
+
const updatedXml = carbonCopy(convertedXml);
|
|
34099
|
+
delete updatedXml["word/comments.xml"];
|
|
34100
|
+
delete updatedXml["word/commentsExtended.xml"];
|
|
34101
|
+
delete updatedXml["word/commentsExtensible.xml"];
|
|
34102
|
+
delete updatedXml["word/commentsIds.xml"];
|
|
34103
|
+
return updatedXml;
|
|
34104
|
+
};
|
|
34105
|
+
const generateRelationship = (target) => {
|
|
34106
|
+
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
34107
|
+
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
34108
|
+
return { ...rel };
|
|
34109
|
+
};
|
|
34110
|
+
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
34111
|
+
const relationships = [];
|
|
34112
|
+
if (exportType === "clean") {
|
|
34113
|
+
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
34114
|
+
return { documentXml, relationships };
|
|
34115
|
+
}
|
|
34116
|
+
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
34117
|
+
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
34118
|
+
relationships.push(generateRelationship("comments.xml"));
|
|
34119
|
+
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
34120
|
+
commentsWithParaIds,
|
|
34121
|
+
updatedXml["word/commentsExtended.xml"]
|
|
34122
|
+
);
|
|
34123
|
+
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
34124
|
+
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
34125
|
+
commentsWithParaIds,
|
|
34126
|
+
updatedXml["word/commentsIds.xml"],
|
|
34127
|
+
updatedXml["word/commentsExtensible.xml"]
|
|
34128
|
+
);
|
|
34129
|
+
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
34130
|
+
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
34131
|
+
relationships.push(generateRelationship("commentsIds.xml"));
|
|
34132
|
+
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
34133
|
+
return {
|
|
34134
|
+
relationships,
|
|
34135
|
+
documentXml: updatedXml
|
|
34136
|
+
};
|
|
34137
|
+
};
|
|
33797
34138
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
33798
34139
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
33799
34140
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
@@ -33869,6 +34210,9 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33869
34210
|
this.documentInternalId = null;
|
|
33870
34211
|
this.fileSource = params2?.fileSource || null;
|
|
33871
34212
|
this.documentId = params2?.documentId || null;
|
|
34213
|
+
this.documentGuid = null;
|
|
34214
|
+
this.documentHash = null;
|
|
34215
|
+
this.documentModified = false;
|
|
33872
34216
|
if (this.docx.length || this.xml) this.parseFromXml();
|
|
33873
34217
|
}
|
|
33874
34218
|
static getFontTableEntry(docx, fontName) {
|
|
@@ -33916,50 +34260,177 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33916
34260
|
this.initialJSON = this.convertedXml["word/document.xml"];
|
|
33917
34261
|
if (!this.initialJSON) this.initialJSON = this.parseXmlToJson(this.xml);
|
|
33918
34262
|
this.declaration = this.initialJSON?.declaration;
|
|
34263
|
+
this.resolveDocumentGuid();
|
|
33919
34264
|
}
|
|
33920
34265
|
parseXmlToJson(xml) {
|
|
33921
34266
|
const newXml = xml.replace(/(<w:t xml:space="preserve">)(\s+)(<\/w:t>)/g, "$1[[sdspace]]$2[[sdspace]]$3");
|
|
33922
34267
|
return JSON.parse(xmljs.xml2json(newXml, null, 2));
|
|
33923
34268
|
}
|
|
33924
|
-
|
|
34269
|
+
/**
|
|
34270
|
+
* Generic method to get a stored custom property from docx
|
|
34271
|
+
* @static
|
|
34272
|
+
* @param {Array} docx - Array of docx file objects
|
|
34273
|
+
* @param {string} propertyName - Name of the property to retrieve
|
|
34274
|
+
* @returns {string|null} The property value or null if not found
|
|
34275
|
+
*/
|
|
34276
|
+
static getStoredCustomProperty(docx, propertyName) {
|
|
33925
34277
|
try {
|
|
33926
34278
|
const customXml = docx.find((doc2) => doc2.name === "docProps/custom.xml");
|
|
33927
|
-
if (!customXml) return;
|
|
34279
|
+
if (!customXml) return null;
|
|
33928
34280
|
const converter = new _SuperConverter2();
|
|
33929
34281
|
const content = customXml.content;
|
|
33930
34282
|
const contentJson = converter.parseXmlToJson(content);
|
|
33931
34283
|
const properties = contentJson.elements.find((el) => el.name === "Properties");
|
|
33932
|
-
if (!properties.elements) return;
|
|
33933
|
-
const
|
|
33934
|
-
|
|
33935
|
-
|
|
33936
|
-
if (!superdocVersion) return;
|
|
33937
|
-
const version2 = superdocVersion.elements[0].elements[0].text;
|
|
33938
|
-
return version2;
|
|
34284
|
+
if (!properties.elements) return null;
|
|
34285
|
+
const property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34286
|
+
if (!property2) return null;
|
|
34287
|
+
return property2.elements[0].elements[0].text;
|
|
33939
34288
|
} catch (e) {
|
|
33940
|
-
console.warn(
|
|
33941
|
-
return;
|
|
34289
|
+
console.warn(`Error getting custom property ${propertyName}:`, e);
|
|
34290
|
+
return null;
|
|
33942
34291
|
}
|
|
33943
34292
|
}
|
|
33944
|
-
|
|
34293
|
+
/**
|
|
34294
|
+
* Generic method to set a stored custom property in docx
|
|
34295
|
+
* @static
|
|
34296
|
+
* @param {Object} docx - The docx object to store the property in
|
|
34297
|
+
* @param {string} propertyName - Name of the property
|
|
34298
|
+
* @param {string|Function} value - Value or function that returns the value
|
|
34299
|
+
* @param {boolean} preserveExisting - If true, won't overwrite existing values
|
|
34300
|
+
* @returns {string} The stored value
|
|
34301
|
+
*/
|
|
34302
|
+
static setStoredCustomProperty(docx, propertyName, value, preserveExisting = false) {
|
|
33945
34303
|
const customLocation = "docProps/custom.xml";
|
|
33946
|
-
if (!docx[customLocation])
|
|
33947
|
-
|
|
33948
|
-
|
|
33949
|
-
|
|
33950
|
-
if (!customXml) return;
|
|
33951
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
34304
|
+
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34305
|
+
const customXml = docx[customLocation];
|
|
34306
|
+
const properties = customXml.elements?.find((el) => el.name === "Properties");
|
|
34307
|
+
if (!properties) return null;
|
|
33952
34308
|
if (!properties.elements) properties.elements = [];
|
|
33953
|
-
|
|
33954
|
-
|
|
33955
|
-
|
|
33956
|
-
|
|
33957
|
-
|
|
33958
|
-
|
|
34309
|
+
let property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34310
|
+
if (property2 && preserveExisting) {
|
|
34311
|
+
return property2.elements[0].elements[0].text;
|
|
34312
|
+
}
|
|
34313
|
+
const finalValue = typeof value === "function" ? value() : value;
|
|
34314
|
+
if (!property2) {
|
|
34315
|
+
const existingPids = properties.elements.filter((el) => el.attributes?.pid).map((el) => parseInt(el.attributes.pid, 10)).filter(Number.isInteger);
|
|
34316
|
+
const pid = existingPids.length > 0 ? Math.max(...existingPids) + 1 : 2;
|
|
34317
|
+
property2 = {
|
|
34318
|
+
type: "element",
|
|
34319
|
+
name: "property",
|
|
34320
|
+
attributes: {
|
|
34321
|
+
name: propertyName,
|
|
34322
|
+
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34323
|
+
pid
|
|
34324
|
+
},
|
|
34325
|
+
elements: [
|
|
34326
|
+
{
|
|
34327
|
+
type: "element",
|
|
34328
|
+
name: "vt:lpwstr",
|
|
34329
|
+
elements: [
|
|
34330
|
+
{
|
|
34331
|
+
type: "text",
|
|
34332
|
+
text: finalValue
|
|
34333
|
+
}
|
|
34334
|
+
]
|
|
34335
|
+
}
|
|
34336
|
+
]
|
|
34337
|
+
};
|
|
34338
|
+
properties.elements.push(property2);
|
|
33959
34339
|
} else {
|
|
33960
|
-
|
|
34340
|
+
property2.elements[0].elements[0].text = finalValue;
|
|
33961
34341
|
}
|
|
33962
|
-
return
|
|
34342
|
+
return finalValue;
|
|
34343
|
+
}
|
|
34344
|
+
static getStoredSuperdocVersion(docx) {
|
|
34345
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
34346
|
+
}
|
|
34347
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.22.0") {
|
|
34348
|
+
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
34349
|
+
}
|
|
34350
|
+
/**
|
|
34351
|
+
* Get document GUID from docx files (static method)
|
|
34352
|
+
* @static
|
|
34353
|
+
* @param {Array} docx - Array of docx file objects
|
|
34354
|
+
* @returns {string|null} The document GUID
|
|
34355
|
+
*/
|
|
34356
|
+
static extractDocumentGuid(docx) {
|
|
34357
|
+
try {
|
|
34358
|
+
const settingsXml = docx.find((doc2) => doc2.name === "word/settings.xml");
|
|
34359
|
+
if (!settingsXml) return null;
|
|
34360
|
+
const converter = new _SuperConverter2();
|
|
34361
|
+
const settingsJson = converter.parseXmlToJson(settingsXml.content);
|
|
34362
|
+
const settings = settingsJson.elements?.[0];
|
|
34363
|
+
if (!settings) return null;
|
|
34364
|
+
const docIdElement = settings.elements?.find((el) => el.name === "w15:docId");
|
|
34365
|
+
if (docIdElement?.attributes?.["w15:val"]) {
|
|
34366
|
+
return docIdElement.attributes["w15:val"].replace(/[{}]/g, "");
|
|
34367
|
+
}
|
|
34368
|
+
} catch {
|
|
34369
|
+
}
|
|
34370
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "DocumentGuid");
|
|
34371
|
+
}
|
|
34372
|
+
/**
|
|
34373
|
+
* Get the permanent document GUID
|
|
34374
|
+
* @returns {string|null} The document GUID (only for modified documents)
|
|
34375
|
+
*/
|
|
34376
|
+
getDocumentGuid() {
|
|
34377
|
+
return this.documentGuid;
|
|
34378
|
+
}
|
|
34379
|
+
/**
|
|
34380
|
+
* Get the SuperDoc version for this converter instance
|
|
34381
|
+
* @returns {string|null} The SuperDoc version or null if not available
|
|
34382
|
+
*/
|
|
34383
|
+
getSuperdocVersion() {
|
|
34384
|
+
if (this.docx) {
|
|
34385
|
+
return _SuperConverter2.getStoredSuperdocVersion(this.docx);
|
|
34386
|
+
}
|
|
34387
|
+
return null;
|
|
34388
|
+
}
|
|
34389
|
+
/**
|
|
34390
|
+
* Resolve existing document GUID (synchronous)
|
|
34391
|
+
*/
|
|
34392
|
+
resolveDocumentGuid() {
|
|
34393
|
+
const microsoftGuid = this.getMicrosoftDocId();
|
|
34394
|
+
if (microsoftGuid) {
|
|
34395
|
+
this.documentGuid = microsoftGuid;
|
|
34396
|
+
return;
|
|
34397
|
+
}
|
|
34398
|
+
const customGuid = _SuperConverter2.getStoredCustomProperty(this.docx, "DocumentGuid");
|
|
34399
|
+
if (customGuid) {
|
|
34400
|
+
this.documentGuid = customGuid;
|
|
34401
|
+
}
|
|
34402
|
+
}
|
|
34403
|
+
/**
|
|
34404
|
+
* Get Microsoft's docId from settings.xml (READ ONLY)
|
|
34405
|
+
*/
|
|
34406
|
+
getMicrosoftDocId() {
|
|
34407
|
+
this.getDocumentInternalId();
|
|
34408
|
+
if (this.documentInternalId) {
|
|
34409
|
+
return this.documentInternalId.replace(/[{}]/g, "");
|
|
34410
|
+
}
|
|
34411
|
+
return null;
|
|
34412
|
+
}
|
|
34413
|
+
/**
|
|
34414
|
+
* Get document identifier (GUID or hash) - async for lazy hash generation
|
|
34415
|
+
*/
|
|
34416
|
+
async getDocumentIdentifier() {
|
|
34417
|
+
if (this.documentGuid) {
|
|
34418
|
+
return this.documentGuid;
|
|
34419
|
+
}
|
|
34420
|
+
if (!this.documentHash && this.fileSource) {
|
|
34421
|
+
this.documentHash = await __privateMethod$2(this, _SuperConverter_instances, generateDocumentHash_fn).call(this);
|
|
34422
|
+
}
|
|
34423
|
+
return this.documentHash;
|
|
34424
|
+
}
|
|
34425
|
+
/**
|
|
34426
|
+
* Promote from hash to GUID on first edit
|
|
34427
|
+
*/
|
|
34428
|
+
promoteToGuid() {
|
|
34429
|
+
if (this.documentGuid) return this.documentGuid;
|
|
34430
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34431
|
+
this.documentModified = true;
|
|
34432
|
+
this.documentHash = null;
|
|
34433
|
+
return this.documentGuid;
|
|
33963
34434
|
}
|
|
33964
34435
|
getDocumentDefaultStyles() {
|
|
33965
34436
|
const styles = this.convertedXml["word/styles.xml"];
|
|
@@ -34048,20 +34519,14 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34048
34519
|
getDocumentInternalId() {
|
|
34049
34520
|
const settingsLocation = "word/settings.xml";
|
|
34050
34521
|
if (!this.convertedXml[settingsLocation]) {
|
|
34051
|
-
|
|
34522
|
+
return;
|
|
34052
34523
|
}
|
|
34053
|
-
const settings =
|
|
34054
|
-
if (!settings.elements[0]?.elements?.length) {
|
|
34055
|
-
const idElement = this.createDocumentIdElement(settings);
|
|
34056
|
-
settings.elements[0].elements = [idElement];
|
|
34057
|
-
if (!settings.elements[0].attributes["xmlns:w15"]) {
|
|
34058
|
-
settings.elements[0].attributes["xmlns:w15"] = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
34059
|
-
}
|
|
34060
|
-
this.convertedXml[settingsLocation] = settings;
|
|
34524
|
+
const settings = this.convertedXml[settingsLocation];
|
|
34525
|
+
if (!settings.elements?.[0]?.elements?.length) {
|
|
34061
34526
|
return;
|
|
34062
34527
|
}
|
|
34063
34528
|
const w15DocId = settings.elements[0].elements.find((el) => el.name === "w15:docId");
|
|
34064
|
-
this.documentInternalId = w15DocId?.attributes["w15:val"];
|
|
34529
|
+
this.documentInternalId = w15DocId?.attributes?.["w15:val"];
|
|
34065
34530
|
}
|
|
34066
34531
|
createDocumentIdElement() {
|
|
34067
34532
|
const docId = v4().toUpperCase();
|
|
@@ -34150,7 +34615,13 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34150
34615
|
this.convertedXml = { ...this.convertedXml, ...updatedXml };
|
|
34151
34616
|
const headFootRels = __privateMethod$2(this, _SuperConverter_instances, exportProcessHeadersFooters_fn).call(this, { isFinalDoc });
|
|
34152
34617
|
__privateMethod$2(this, _SuperConverter_instances, exportProcessNewRelationships_fn).call(this, [...params2.relationships, ...commentsRels, ...headFootRels]);
|
|
34153
|
-
|
|
34618
|
+
_SuperConverter2.setStoredSuperdocVersion(this.convertedXml);
|
|
34619
|
+
if (this.documentModified || this.documentGuid) {
|
|
34620
|
+
if (!this.documentGuid) {
|
|
34621
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34622
|
+
}
|
|
34623
|
+
_SuperConverter2.setStoredCustomProperty(this.convertedXml, "DocumentGuid", this.documentGuid, true);
|
|
34624
|
+
}
|
|
34154
34625
|
__privateMethod$2(this, _SuperConverter_instances, exportNumberingFile_fn).call(this, params2);
|
|
34155
34626
|
return xml;
|
|
34156
34627
|
}
|
|
@@ -34185,8 +34656,38 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34185
34656
|
});
|
|
34186
34657
|
return { result, params: params2 };
|
|
34187
34658
|
}
|
|
34659
|
+
// Deprecated methods for backward compatibility
|
|
34660
|
+
static getStoredSuperdocId(docx) {
|
|
34661
|
+
console.warn("getStoredSuperdocId is deprecated, use getDocumentGuid instead");
|
|
34662
|
+
return _SuperConverter2.extractDocumentGuid(docx);
|
|
34663
|
+
}
|
|
34664
|
+
static updateDocumentVersion(docx, version2) {
|
|
34665
|
+
console.warn("updateDocumentVersion is deprecated, use setStoredSuperdocVersion instead");
|
|
34666
|
+
return _SuperConverter2.setStoredSuperdocVersion(docx, version2);
|
|
34667
|
+
}
|
|
34188
34668
|
};
|
|
34189
34669
|
_SuperConverter_instances = /* @__PURE__ */ new WeakSet();
|
|
34670
|
+
generateDocumentHash_fn = async function() {
|
|
34671
|
+
if (!this.fileSource) return `HASH-${Date.now()}`;
|
|
34672
|
+
try {
|
|
34673
|
+
let buffer2;
|
|
34674
|
+
if (Buffer2.isBuffer(this.fileSource)) {
|
|
34675
|
+
buffer2 = this.fileSource;
|
|
34676
|
+
} else if (this.fileSource instanceof ArrayBuffer) {
|
|
34677
|
+
buffer2 = Buffer2.from(this.fileSource);
|
|
34678
|
+
} else if (this.fileSource instanceof Blob || this.fileSource instanceof File) {
|
|
34679
|
+
const arrayBuffer = await this.fileSource.arrayBuffer();
|
|
34680
|
+
buffer2 = Buffer2.from(arrayBuffer);
|
|
34681
|
+
} else {
|
|
34682
|
+
return `HASH-${Date.now()}`;
|
|
34683
|
+
}
|
|
34684
|
+
const hash2 = index$2(buffer2);
|
|
34685
|
+
return `HASH-${hash2.toString("hex").toUpperCase()}`;
|
|
34686
|
+
} catch (e) {
|
|
34687
|
+
console.warn("Could not generate document hash:", e);
|
|
34688
|
+
return `HASH-${Date.now()}`;
|
|
34689
|
+
}
|
|
34690
|
+
};
|
|
34190
34691
|
exportNumberingFile_fn = function() {
|
|
34191
34692
|
const numberingPath = "word/numbering.xml";
|
|
34192
34693
|
let numberingXml = this.convertedXml[numberingPath];
|
|
@@ -34407,52 +34908,9 @@ __publicField$2(_SuperConverter, "propertyTypes", Object.freeze({
|
|
|
34407
34908
|
}));
|
|
34408
34909
|
__publicField$2(_SuperConverter, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
34409
34910
|
let SuperConverter = _SuperConverter;
|
|
34410
|
-
function storeSuperdocVersion(docx) {
|
|
34411
|
-
const customLocation = "docProps/custom.xml";
|
|
34412
|
-
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34413
|
-
const customXml = docx[customLocation];
|
|
34414
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
34415
|
-
if (!properties.elements) properties.elements = [];
|
|
34416
|
-
const elements = properties.elements;
|
|
34417
|
-
const cleanProperties = elements.filter((prop) => typeof prop === "object" && prop !== null).filter((prop) => {
|
|
34418
|
-
const { attributes } = prop;
|
|
34419
|
-
return attributes.name !== "SuperdocVersion";
|
|
34420
|
-
});
|
|
34421
|
-
let pid = 2;
|
|
34422
|
-
try {
|
|
34423
|
-
pid = cleanProperties.length ? Math.max(...elements.map((el) => el.attributes.pid)) + 1 : 2;
|
|
34424
|
-
} catch {
|
|
34425
|
-
}
|
|
34426
|
-
cleanProperties.push(generateSuperdocVersion(pid));
|
|
34427
|
-
properties.elements = cleanProperties;
|
|
34428
|
-
return docx;
|
|
34429
|
-
}
|
|
34430
34911
|
function generateCustomXml() {
|
|
34431
34912
|
return DEFAULT_CUSTOM_XML;
|
|
34432
34913
|
}
|
|
34433
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.22.0") {
|
|
34434
|
-
return {
|
|
34435
|
-
type: "element",
|
|
34436
|
-
name: "property",
|
|
34437
|
-
attributes: {
|
|
34438
|
-
name: "SuperdocVersion",
|
|
34439
|
-
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34440
|
-
pid
|
|
34441
|
-
},
|
|
34442
|
-
elements: [
|
|
34443
|
-
{
|
|
34444
|
-
type: "element",
|
|
34445
|
-
name: "vt:lpwstr",
|
|
34446
|
-
elements: [
|
|
34447
|
-
{
|
|
34448
|
-
type: "text",
|
|
34449
|
-
text: version2
|
|
34450
|
-
}
|
|
34451
|
-
]
|
|
34452
|
-
}
|
|
34453
|
-
]
|
|
34454
|
-
};
|
|
34455
|
-
}
|
|
34456
34914
|
function commonjsRequire(path) {
|
|
34457
34915
|
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.');
|
|
34458
34916
|
}
|
|
@@ -36768,7 +37226,7 @@ function requireJszip_min() {
|
|
|
36768
37226
|
return jszip_min.exports;
|
|
36769
37227
|
}
|
|
36770
37228
|
var jszip_minExports = requireJszip_min();
|
|
36771
|
-
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
37229
|
+
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$2(jszip_minExports);
|
|
36772
37230
|
const isXmlLike = (name) => /\.xml$|\.rels$/i.test(name);
|
|
36773
37231
|
function sniffEncoding(u8) {
|
|
36774
37232
|
if (u8.length >= 2) {
|
|
@@ -42092,8 +42550,7 @@ function readDOMChange(view, from2, to, typeOver, addedNodes) {
|
|
|
42092
42550
|
let $to = parse.doc.resolveNoCache(change.endB - parse.from);
|
|
42093
42551
|
let $fromA = doc2.resolve(change.start);
|
|
42094
42552
|
let inlineChange = $from.sameParent($to) && $from.parent.inlineContent && $fromA.end() >= change.endA;
|
|
42095
|
-
|
|
42096
|
-
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")))) {
|
|
42553
|
+
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")))) {
|
|
42097
42554
|
view.input.lastIOSEnter = 0;
|
|
42098
42555
|
return;
|
|
42099
42556
|
}
|
|
@@ -46724,15 +47181,39 @@ const toggleList = (listType) => ({ editor, state: state2, tr, dispatch }) => {
|
|
|
46724
47181
|
if (near) {
|
|
46725
47182
|
const isSameAsTarget = nearKind === targetKind;
|
|
46726
47183
|
if (isSameAsTarget) {
|
|
46727
|
-
const {
|
|
46728
|
-
|
|
46729
|
-
|
|
46730
|
-
|
|
46731
|
-
|
|
46732
|
-
|
|
46733
|
-
|
|
46734
|
-
|
|
46735
|
-
|
|
47184
|
+
const candidateLists = collectIntersectingTopLists({ doc: doc2, selection, OrderedType, BulletType });
|
|
47185
|
+
let listsToUnwrap = candidateLists.filter(({ node }) => getEffectiveListKind(node) === targetKind);
|
|
47186
|
+
if (listsToUnwrap.length === 0 && getEffectiveListKind(near.node) === targetKind) {
|
|
47187
|
+
listsToUnwrap = [{ node: near.node, pos: near.pos, depth: near.depth ?? null }];
|
|
47188
|
+
}
|
|
47189
|
+
if (listsToUnwrap.length === 0) return false;
|
|
47190
|
+
let spanFromBefore2 = listsToUnwrap[0].pos;
|
|
47191
|
+
let spanToBefore2 = listsToUnwrap[0].pos + listsToUnwrap[0].node.nodeSize;
|
|
47192
|
+
for (let i = 1; i < listsToUnwrap.length; i++) {
|
|
47193
|
+
const { node, pos: pos2 } = listsToUnwrap[i];
|
|
47194
|
+
spanFromBefore2 = Math.min(spanFromBefore2, pos2);
|
|
47195
|
+
spanToBefore2 = Math.max(spanToBefore2, pos2 + node.nodeSize);
|
|
47196
|
+
}
|
|
47197
|
+
const ParagraphType = editor.schema.nodes.paragraph;
|
|
47198
|
+
listsToUnwrap.sort((a, b2) => b2.pos - a.pos);
|
|
47199
|
+
for (const { node, pos: pos2 } of listsToUnwrap) {
|
|
47200
|
+
const mappedFrom = tr.mapping.map(pos2, -1);
|
|
47201
|
+
const mappedTo = tr.mapping.map(pos2 + node.nodeSize, 1);
|
|
47202
|
+
const currentListNode = tr.doc.nodeAt(mappedFrom);
|
|
47203
|
+
const sourceListNode = currentListNode && (currentListNode.type === OrderedType || currentListNode.type === BulletType) ? currentListNode : node;
|
|
47204
|
+
const paragraphs = [];
|
|
47205
|
+
for (let i = 0; i < sourceListNode.childCount; i++) {
|
|
47206
|
+
const li = sourceListNode.child(i);
|
|
47207
|
+
if (li.type !== editor.schema.nodes.listItem) continue;
|
|
47208
|
+
const firstChild = li.firstChild;
|
|
47209
|
+
paragraphs.push(firstChild || ParagraphType.create());
|
|
47210
|
+
}
|
|
47211
|
+
if (paragraphs.length === 0) {
|
|
47212
|
+
paragraphs.push(ParagraphType.create());
|
|
47213
|
+
}
|
|
47214
|
+
const replacement = paragraphs.length === 1 ? paragraphs[0] : Fragment.from(paragraphs);
|
|
47215
|
+
tr.replaceWith(mappedFrom, mappedTo, replacement);
|
|
47216
|
+
}
|
|
46736
47217
|
setMappedSelectionSpan(tr, spanFromBefore2, spanToBefore2);
|
|
46737
47218
|
if (dispatch) dispatch(tr);
|
|
46738
47219
|
return true;
|
|
@@ -48747,26 +49228,100 @@ const onHeaderFooterDataUpdate = async ({ editor, transaction }, mainEditor, sec
|
|
|
48747
49228
|
const setEditorToolbar = ({ editor }, mainEditor) => {
|
|
48748
49229
|
editor.setToolbar(mainEditor.toolbar);
|
|
48749
49230
|
};
|
|
49231
|
+
const normalizeCommentEventPayload = ({ conversation, editorOptions, fallbackCommentId, fallbackInternal }) => {
|
|
49232
|
+
const { user, documentId } = editorOptions || {};
|
|
49233
|
+
const normalized = {
|
|
49234
|
+
...conversation,
|
|
49235
|
+
commentId: conversation?.commentId ?? fallbackCommentId,
|
|
49236
|
+
isInternal: conversation?.isInternal ?? fallbackInternal
|
|
49237
|
+
};
|
|
49238
|
+
if (!normalized.commentText && normalized.text) {
|
|
49239
|
+
normalized.commentText = normalized.text;
|
|
49240
|
+
delete normalized.text;
|
|
49241
|
+
}
|
|
49242
|
+
if ("skipEmit" in normalized) delete normalized.skipEmit;
|
|
49243
|
+
if (!normalized.creatorName && user?.name) {
|
|
49244
|
+
normalized.creatorName = user.name;
|
|
49245
|
+
}
|
|
49246
|
+
if (!normalized.creatorEmail && user?.email) {
|
|
49247
|
+
normalized.creatorEmail = user.email;
|
|
49248
|
+
}
|
|
49249
|
+
if (!normalized.createdTime) {
|
|
49250
|
+
normalized.createdTime = Date.now();
|
|
49251
|
+
}
|
|
49252
|
+
if (!normalized.fileId && documentId) {
|
|
49253
|
+
normalized.fileId = documentId;
|
|
49254
|
+
}
|
|
49255
|
+
if (!normalized.documentId && documentId) {
|
|
49256
|
+
normalized.documentId = documentId;
|
|
49257
|
+
}
|
|
49258
|
+
return normalized;
|
|
49259
|
+
};
|
|
49260
|
+
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
49261
|
+
let bounds = {};
|
|
49262
|
+
if (currentBounds instanceof DOMRect) {
|
|
49263
|
+
bounds = {
|
|
49264
|
+
top: currentBounds.top,
|
|
49265
|
+
bottom: currentBounds.bottom,
|
|
49266
|
+
left: currentBounds.left,
|
|
49267
|
+
right: currentBounds.right
|
|
49268
|
+
};
|
|
49269
|
+
} else {
|
|
49270
|
+
bounds = { ...currentBounds };
|
|
49271
|
+
}
|
|
49272
|
+
if (!allCommentPositions[threadId]) {
|
|
49273
|
+
allCommentPositions[threadId] = {
|
|
49274
|
+
threadId,
|
|
49275
|
+
start: pos,
|
|
49276
|
+
end: pos + node.nodeSize,
|
|
49277
|
+
bounds
|
|
49278
|
+
};
|
|
49279
|
+
} else {
|
|
49280
|
+
const existing = allCommentPositions[threadId];
|
|
49281
|
+
existing.start = Math.min(existing.start, pos);
|
|
49282
|
+
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
49283
|
+
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
49284
|
+
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
49285
|
+
}
|
|
49286
|
+
};
|
|
48750
49287
|
const TRACK_CHANGE_MARKS = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
|
|
48751
49288
|
const CommentsPluginKey = new PluginKey("comments");
|
|
48752
49289
|
const CommentsPlugin = Extension.create({
|
|
48753
49290
|
name: "comments",
|
|
48754
49291
|
addCommands() {
|
|
48755
49292
|
return {
|
|
48756
|
-
insertComment: (conversation) => ({ tr, dispatch }) => {
|
|
49293
|
+
insertComment: (conversation = {}) => ({ tr, dispatch }) => {
|
|
48757
49294
|
const { selection } = tr;
|
|
48758
49295
|
const { $from, $to } = selection;
|
|
48759
|
-
const
|
|
49296
|
+
const skipEmit = conversation?.skipEmit;
|
|
49297
|
+
const resolvedCommentId = conversation?.commentId ?? v4();
|
|
49298
|
+
const resolvedInternal = conversation?.isInternal ?? false;
|
|
48760
49299
|
tr.setMeta(CommentsPluginKey, { event: "add" });
|
|
48761
49300
|
tr.addMark(
|
|
48762
49301
|
$from.pos,
|
|
48763
49302
|
$to.pos,
|
|
48764
49303
|
this.editor.schema.marks[CommentMarkName].create({
|
|
48765
|
-
commentId,
|
|
48766
|
-
internal:
|
|
49304
|
+
commentId: resolvedCommentId,
|
|
49305
|
+
internal: resolvedInternal
|
|
48767
49306
|
})
|
|
48768
49307
|
);
|
|
48769
|
-
dispatch(tr);
|
|
49308
|
+
if (dispatch) dispatch(tr);
|
|
49309
|
+
const shouldEmit = !skipEmit && resolvedCommentId !== "pending";
|
|
49310
|
+
if (shouldEmit) {
|
|
49311
|
+
const commentPayload = normalizeCommentEventPayload({
|
|
49312
|
+
conversation,
|
|
49313
|
+
editorOptions: this.editor.options,
|
|
49314
|
+
fallbackCommentId: resolvedCommentId,
|
|
49315
|
+
fallbackInternal: resolvedInternal
|
|
49316
|
+
});
|
|
49317
|
+
const activeCommentId = commentPayload.commentId || commentPayload.importedId || null;
|
|
49318
|
+
const event = {
|
|
49319
|
+
type: comments_module_events.ADD,
|
|
49320
|
+
comment: commentPayload,
|
|
49321
|
+
...activeCommentId && { activeCommentId }
|
|
49322
|
+
};
|
|
49323
|
+
this.editor.emit("commentsUpdate", event);
|
|
49324
|
+
}
|
|
48770
49325
|
return true;
|
|
48771
49326
|
},
|
|
48772
49327
|
removeComment: ({ commentId, importedId }) => ({ tr, dispatch, state: state2 }) => {
|
|
@@ -49002,33 +49557,6 @@ const CommentsPlugin = Extension.create({
|
|
|
49002
49557
|
return [commentsPlugin];
|
|
49003
49558
|
}
|
|
49004
49559
|
});
|
|
49005
|
-
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
49006
|
-
let bounds = {};
|
|
49007
|
-
if (currentBounds instanceof DOMRect) {
|
|
49008
|
-
bounds = {
|
|
49009
|
-
top: currentBounds.top,
|
|
49010
|
-
bottom: currentBounds.bottom,
|
|
49011
|
-
left: currentBounds.left,
|
|
49012
|
-
right: currentBounds.right
|
|
49013
|
-
};
|
|
49014
|
-
} else {
|
|
49015
|
-
bounds = { ...currentBounds };
|
|
49016
|
-
}
|
|
49017
|
-
if (!allCommentPositions[threadId]) {
|
|
49018
|
-
allCommentPositions[threadId] = {
|
|
49019
|
-
threadId,
|
|
49020
|
-
start: pos,
|
|
49021
|
-
end: pos + node.nodeSize,
|
|
49022
|
-
bounds
|
|
49023
|
-
};
|
|
49024
|
-
} else {
|
|
49025
|
-
const existing = allCommentPositions[threadId];
|
|
49026
|
-
existing.start = Math.min(existing.start, pos);
|
|
49027
|
-
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
49028
|
-
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
49029
|
-
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
49030
|
-
}
|
|
49031
|
-
};
|
|
49032
49560
|
const getActiveCommentId = (doc2, selection) => {
|
|
49033
49561
|
if (!selection) return;
|
|
49034
49562
|
const { $from, $to } = selection;
|
|
@@ -51482,19 +52010,34 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51482
52010
|
* @returns {string} Document version
|
|
51483
52011
|
*/
|
|
51484
52012
|
static getDocumentVersion(doc2) {
|
|
51485
|
-
|
|
51486
|
-
return version2;
|
|
52013
|
+
return SuperConverter.getStoredSuperdocVersion(doc2);
|
|
51487
52014
|
}
|
|
51488
52015
|
/**
|
|
51489
|
-
*
|
|
52016
|
+
* Set the document version
|
|
51490
52017
|
* @static
|
|
51491
52018
|
* @param {Object} doc - Document object
|
|
51492
52019
|
* @param {string} version - New version
|
|
51493
|
-
* @returns {
|
|
52020
|
+
* @returns {string} The set version
|
|
52021
|
+
*/
|
|
52022
|
+
static setDocumentVersion(doc2, version2) {
|
|
52023
|
+
return SuperConverter.setStoredSuperdocVersion(doc2, version2);
|
|
52024
|
+
}
|
|
52025
|
+
/**
|
|
52026
|
+
* Get the document GUID
|
|
52027
|
+
* @static
|
|
52028
|
+
* @param {Object} doc - Document object
|
|
52029
|
+
* @returns {string|null} Document GUID
|
|
52030
|
+
*/
|
|
52031
|
+
static getDocumentGuid(doc2) {
|
|
52032
|
+
return SuperConverter.extractDocumentGuid(doc2);
|
|
52033
|
+
}
|
|
52034
|
+
// Deprecated
|
|
52035
|
+
/**
|
|
52036
|
+
* @deprecated use setDocumentVersion instead
|
|
51494
52037
|
*/
|
|
51495
52038
|
static updateDocumentVersion(doc2, version2) {
|
|
51496
|
-
|
|
51497
|
-
return
|
|
52039
|
+
console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
|
|
52040
|
+
return _Editor2.setDocumentVersion(doc2, version2);
|
|
51498
52041
|
}
|
|
51499
52042
|
/**
|
|
51500
52043
|
* Creates all node views.
|
|
@@ -51630,6 +52173,43 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51630
52173
|
}
|
|
51631
52174
|
window.addEventListener("resize", () => handleResize);
|
|
51632
52175
|
}
|
|
52176
|
+
/**
|
|
52177
|
+
* Get document identifier for telemetry (async - may generate hash)
|
|
52178
|
+
* @returns {Promise<string>} GUID for modified docs, hash for unmodified
|
|
52179
|
+
*/
|
|
52180
|
+
async getDocumentIdentifier() {
|
|
52181
|
+
return await this.converter?.getDocumentIdentifier() || null;
|
|
52182
|
+
}
|
|
52183
|
+
/**
|
|
52184
|
+
* Get permanent document GUID (sync - only for modified documents)
|
|
52185
|
+
* @returns {string|null} GUID or null if document hasn't been modified
|
|
52186
|
+
*/
|
|
52187
|
+
getDocumentGuid() {
|
|
52188
|
+
return this.converter?.documentGuid || null;
|
|
52189
|
+
}
|
|
52190
|
+
/**
|
|
52191
|
+
* Check if document has been modified
|
|
52192
|
+
* @returns {boolean}
|
|
52193
|
+
*/
|
|
52194
|
+
isDocumentModified() {
|
|
52195
|
+
return this.converter?.documentModified || false;
|
|
52196
|
+
}
|
|
52197
|
+
/**
|
|
52198
|
+
* Get telemetry data (async because of lazy hash generation)
|
|
52199
|
+
*/
|
|
52200
|
+
async getTelemetryData() {
|
|
52201
|
+
return {
|
|
52202
|
+
documentId: await this.getDocumentIdentifier(),
|
|
52203
|
+
isModified: this.isDocumentModified(),
|
|
52204
|
+
isPermanentId: !!this.converter?.documentGuid,
|
|
52205
|
+
version: this.converter?.getSuperdocVersion()
|
|
52206
|
+
};
|
|
52207
|
+
}
|
|
52208
|
+
// Deprecated for backward compatibility
|
|
52209
|
+
getDocumentId() {
|
|
52210
|
+
console.warn("getDocumentId is deprecated, use getDocumentGuid instead");
|
|
52211
|
+
return this.getDocumentGuid();
|
|
52212
|
+
}
|
|
51633
52213
|
/**
|
|
51634
52214
|
* Get attrs of the currently selected node or mark.
|
|
51635
52215
|
* @param {String} nameOrType
|
|
@@ -51661,6 +52241,21 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51661
52241
|
getJSON() {
|
|
51662
52242
|
return this.state.doc.toJSON();
|
|
51663
52243
|
}
|
|
52244
|
+
/**
|
|
52245
|
+
* Get document metadata including GUID, modification status, and version
|
|
52246
|
+
* @returns {{
|
|
52247
|
+
* documentGuid: string | null,
|
|
52248
|
+
* isModified: boolean,
|
|
52249
|
+
* version: string | null
|
|
52250
|
+
* }} Document metadata
|
|
52251
|
+
*/
|
|
52252
|
+
getMetadata() {
|
|
52253
|
+
return {
|
|
52254
|
+
documentGuid: this.converter?.documentGuid || null,
|
|
52255
|
+
isModified: this.isDocumentModified(),
|
|
52256
|
+
version: this.converter?.getSuperdocVersion() || null
|
|
52257
|
+
};
|
|
52258
|
+
}
|
|
51664
52259
|
/**
|
|
51665
52260
|
* Get the editor content as HTML
|
|
51666
52261
|
* @param {Object} options - Options for the HTML serializer
|
|
@@ -51678,6 +52273,13 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51678
52273
|
}
|
|
51679
52274
|
return html;
|
|
51680
52275
|
}
|
|
52276
|
+
/**
|
|
52277
|
+
* Get the document version from the converter
|
|
52278
|
+
* @returns {string|null} The SuperDoc version stored in the document
|
|
52279
|
+
*/
|
|
52280
|
+
getDocumentVersion() {
|
|
52281
|
+
return this.converter?.getSuperdocVersion() || null;
|
|
52282
|
+
}
|
|
51681
52283
|
/**
|
|
51682
52284
|
* Create a child editor linked to this editor.
|
|
51683
52285
|
* This is useful for creating header/footer editors that are linked to the main editor.
|
|
@@ -51760,7 +52362,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51760
52362
|
if (exportXmlOnly || exportJsonOnly) return documentXml;
|
|
51761
52363
|
const customXml = this.converter.schemaToXml(this.converter.convertedXml["docProps/custom.xml"].elements[0]);
|
|
51762
52364
|
const styles = this.converter.schemaToXml(this.converter.convertedXml["word/styles.xml"].elements[0]);
|
|
51763
|
-
const
|
|
52365
|
+
const hasCustomSettings = !!this.converter.convertedXml["word/settings.xml"]?.elements?.length;
|
|
52366
|
+
const customSettings = hasCustomSettings ? this.converter.schemaToXml(this.converter.convertedXml["word/settings.xml"]?.elements?.[0]) : null;
|
|
51764
52367
|
const rels = this.converter.schemaToXml(this.converter.convertedXml["word/_rels/document.xml.rels"].elements[0]);
|
|
51765
52368
|
const media = this.converter.addedMedia;
|
|
51766
52369
|
const updatedHeadersFooters = {};
|
|
@@ -51776,13 +52379,15 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51776
52379
|
...this.options.customUpdatedFiles,
|
|
51777
52380
|
"word/document.xml": String(documentXml),
|
|
51778
52381
|
"docProps/custom.xml": String(customXml),
|
|
51779
|
-
"word/settings.xml": String(customSettings),
|
|
51780
52382
|
"word/_rels/document.xml.rels": String(rels),
|
|
51781
52383
|
"word/numbering.xml": String(numbering),
|
|
51782
52384
|
// Replace & with & in styles.xml as DOCX viewers can't handle it
|
|
51783
52385
|
"word/styles.xml": String(styles).replace(/&/gi, "&"),
|
|
51784
52386
|
...updatedHeadersFooters
|
|
51785
52387
|
};
|
|
52388
|
+
if (hasCustomSettings) {
|
|
52389
|
+
updatedDocs["word/settings.xml"] = String(customSettings);
|
|
52390
|
+
}
|
|
51786
52391
|
if (comments.length) {
|
|
51787
52392
|
const commentsXml = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]);
|
|
51788
52393
|
const commentsExtendedXml = this.converter.schemaToXml(
|
|
@@ -52402,6 +53007,13 @@ dispatchTransaction_fn = function(transaction) {
|
|
|
52402
53007
|
if (!transaction.docChanged) {
|
|
52403
53008
|
return;
|
|
52404
53009
|
}
|
|
53010
|
+
if (transaction.docChanged && this.converter) {
|
|
53011
|
+
if (!this.converter.documentGuid) {
|
|
53012
|
+
this.converter.promoteToGuid();
|
|
53013
|
+
console.debug("Document modified - assigned GUID:", this.converter.documentGuid);
|
|
53014
|
+
}
|
|
53015
|
+
this.converter.documentModified = true;
|
|
53016
|
+
}
|
|
52405
53017
|
this.emit("update", {
|
|
52406
53018
|
editor: this,
|
|
52407
53019
|
transaction
|
|
@@ -54344,10 +54956,11 @@ const StructuredContentCommands = Extension.create({
|
|
|
54344
54956
|
return true;
|
|
54345
54957
|
},
|
|
54346
54958
|
/**
|
|
54347
|
-
* Updates a structured content
|
|
54959
|
+
* Updates a single structured content field by its unique ID.
|
|
54960
|
+
* IDs are unique identifiers, so this will update at most one field.
|
|
54348
54961
|
* If the updated node does not match the schema, it will not be updated.
|
|
54349
54962
|
* @category Command
|
|
54350
|
-
* @param {string} id
|
|
54963
|
+
* @param {string} id - Unique identifier of the field
|
|
54351
54964
|
* @param {StructuredContentUpdate} options
|
|
54352
54965
|
*/
|
|
54353
54966
|
updateStructuredContentById: (id, options = {}) => ({ editor, dispatch, state: state2, tr }) => {
|
|
@@ -62528,6 +63141,7 @@ function getFormatAttrsFromMarks(marks) {
|
|
|
62528
63141
|
}
|
|
62529
63142
|
return formatAttrs;
|
|
62530
63143
|
}
|
|
63144
|
+
const DEFAULT_MIME_TYPE = "application/octet-stream";
|
|
62531
63145
|
const simpleHash = (str) => {
|
|
62532
63146
|
let hash2 = 0;
|
|
62533
63147
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -62537,21 +63151,40 @@ const simpleHash = (str) => {
|
|
|
62537
63151
|
}
|
|
62538
63152
|
return Math.abs(hash2).toString();
|
|
62539
63153
|
};
|
|
62540
|
-
const
|
|
62541
|
-
|
|
62542
|
-
|
|
62543
|
-
|
|
62544
|
-
|
|
62545
|
-
|
|
63154
|
+
const decodeBase64ToBinaryString = (data) => {
|
|
63155
|
+
if (!data) return "";
|
|
63156
|
+
if (typeof atob === "function") {
|
|
63157
|
+
return atob(data);
|
|
63158
|
+
}
|
|
63159
|
+
if (typeof Buffer2 !== "undefined" && typeof Buffer2.from === "function") {
|
|
63160
|
+
return Buffer2.from(data, "base64").toString("binary");
|
|
63161
|
+
}
|
|
63162
|
+
throw new Error("Unable to decode base64 payload in the current environment.");
|
|
63163
|
+
};
|
|
63164
|
+
const extractBase64Meta = (base64String) => {
|
|
63165
|
+
const [meta = "", payload = ""] = base64String.split(",");
|
|
63166
|
+
const mimeMatch = meta.match(/:(.*?);/);
|
|
63167
|
+
const rawMimeType = mimeMatch ? mimeMatch[1] : "";
|
|
63168
|
+
const mimeType = rawMimeType || DEFAULT_MIME_TYPE;
|
|
63169
|
+
const binaryString = decodeBase64ToBinaryString(payload);
|
|
62546
63170
|
const hash2 = simpleHash(binaryString);
|
|
62547
63171
|
const extension = mimeType.split("/")[1] || "bin";
|
|
62548
63172
|
const filename = `image-${hash2}.${extension}`;
|
|
63173
|
+
return { mimeType, binaryString, filename };
|
|
63174
|
+
};
|
|
63175
|
+
const getBase64FileMeta = (base64String) => {
|
|
63176
|
+
const { mimeType, filename } = extractBase64Meta(base64String);
|
|
63177
|
+
return { mimeType, filename };
|
|
63178
|
+
};
|
|
63179
|
+
const base64ToFile = (base64String) => {
|
|
63180
|
+
const { mimeType, binaryString, filename } = extractBase64Meta(base64String);
|
|
63181
|
+
const fileType = mimeType || DEFAULT_MIME_TYPE;
|
|
62549
63182
|
const bytes = new Uint8Array(binaryString.length);
|
|
62550
63183
|
for (let i = 0; i < binaryString.length; i++) {
|
|
62551
63184
|
bytes[i] = binaryString.charCodeAt(i);
|
|
62552
63185
|
}
|
|
62553
|
-
const blob = new Blob([bytes], { type:
|
|
62554
|
-
return new File([blob], filename, { type:
|
|
63186
|
+
const blob = new Blob([bytes], { type: fileType });
|
|
63187
|
+
return new File([blob], filename, { type: fileType });
|
|
62555
63188
|
};
|
|
62556
63189
|
const urlToFile = async (url, filename, mimeType) => {
|
|
62557
63190
|
try {
|
|
@@ -62927,6 +63560,7 @@ function addImageRelationship({ editor, path }) {
|
|
|
62927
63560
|
}
|
|
62928
63561
|
}
|
|
62929
63562
|
const key = new PluginKey("ImageRegistration");
|
|
63563
|
+
const WORD_MEDIA_PREFIX = "word/";
|
|
62930
63564
|
const ImageRegistrationPlugin = ({ editor }) => {
|
|
62931
63565
|
const { view } = editor;
|
|
62932
63566
|
return new Plugin({
|
|
@@ -62947,16 +63581,16 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62947
63581
|
},
|
|
62948
63582
|
appendTransaction: (trs, _oldState, state2) => {
|
|
62949
63583
|
let foundImages = [];
|
|
62950
|
-
trs.forEach((
|
|
62951
|
-
if (
|
|
62952
|
-
|
|
63584
|
+
trs.forEach((tr) => {
|
|
63585
|
+
if (tr.docChanged) {
|
|
63586
|
+
tr.steps.forEach((step, index2) => {
|
|
62953
63587
|
const stepMap = step.getMap();
|
|
62954
63588
|
foundImages = foundImages.map(({ node, pos, id }) => {
|
|
62955
63589
|
const mappedPos = stepMap.map(pos, -1);
|
|
62956
63590
|
return { node, pos: mappedPos, id };
|
|
62957
63591
|
});
|
|
62958
63592
|
if (step instanceof ReplaceStep || step instanceof ReplaceAroundStep$1) {
|
|
62959
|
-
(
|
|
63593
|
+
(tr.docs[index2 + 1] || tr.doc).nodesBetween(
|
|
62960
63594
|
stepMap.map(step.from, -1),
|
|
62961
63595
|
stepMap.map(step.to, 1),
|
|
62962
63596
|
(node, pos) => {
|
|
@@ -62975,22 +63609,10 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62975
63609
|
if (!foundImages || foundImages.length === 0) {
|
|
62976
63610
|
return null;
|
|
62977
63611
|
}
|
|
62978
|
-
|
|
62979
|
-
|
|
62980
|
-
|
|
62981
|
-
foundImages
|
|
62982
|
-
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
62983
|
-
side: -1,
|
|
62984
|
-
id
|
|
62985
|
-
});
|
|
62986
|
-
set = set.add(tr.doc, [deco]);
|
|
62987
|
-
});
|
|
62988
|
-
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
62989
|
-
tr.delete(pos, pos + node.nodeSize);
|
|
62990
|
-
});
|
|
62991
|
-
set = set.map(tr.mapping, tr.doc);
|
|
62992
|
-
tr.setMeta(key, { set });
|
|
62993
|
-
return tr;
|
|
63612
|
+
if (editor.options.isHeadless) {
|
|
63613
|
+
return handleNodePath(foundImages, editor, state2);
|
|
63614
|
+
}
|
|
63615
|
+
return handleBrowserPath(foundImages, editor, view, state2);
|
|
62994
63616
|
},
|
|
62995
63617
|
props: {
|
|
62996
63618
|
decorations(state2) {
|
|
@@ -63000,6 +63622,59 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
63000
63622
|
}
|
|
63001
63623
|
});
|
|
63002
63624
|
};
|
|
63625
|
+
const derivePreferredFileName = (src) => {
|
|
63626
|
+
if (typeof src !== "string" || src.length === 0) {
|
|
63627
|
+
return "image.bin";
|
|
63628
|
+
}
|
|
63629
|
+
if (src.startsWith("data:")) {
|
|
63630
|
+
return getBase64FileMeta(src).filename;
|
|
63631
|
+
}
|
|
63632
|
+
const lastSegment = src.split("/").pop() ?? "";
|
|
63633
|
+
const trimmed = lastSegment.split(/[?#]/)[0];
|
|
63634
|
+
return trimmed || "image.bin";
|
|
63635
|
+
};
|
|
63636
|
+
const handleNodePath = (foundImages, editor, state2) => {
|
|
63637
|
+
const { tr } = state2;
|
|
63638
|
+
const mediaStore = editor.storage.image.media ?? {};
|
|
63639
|
+
if (!editor.storage.image.media) {
|
|
63640
|
+
editor.storage.image.media = mediaStore;
|
|
63641
|
+
}
|
|
63642
|
+
const existingFileNames = new Set(Object.keys(mediaStore).map((key2) => key2.split("/").pop()));
|
|
63643
|
+
foundImages.forEach(({ node, pos }) => {
|
|
63644
|
+
const { src } = node.attrs;
|
|
63645
|
+
const preferredFileName = derivePreferredFileName(src);
|
|
63646
|
+
const uniqueFileName = ensureUniqueFileName(preferredFileName, existingFileNames);
|
|
63647
|
+
existingFileNames.add(uniqueFileName);
|
|
63648
|
+
const mediaPath = buildMediaPath(uniqueFileName);
|
|
63649
|
+
mediaStore[mediaPath] = src;
|
|
63650
|
+
const path = mediaPath.startsWith(WORD_MEDIA_PREFIX) ? mediaPath.slice(WORD_MEDIA_PREFIX.length) : mediaPath;
|
|
63651
|
+
const rId = addImageRelationship({ editor, path });
|
|
63652
|
+
tr.setNodeMarkup(pos, void 0, {
|
|
63653
|
+
...node.attrs,
|
|
63654
|
+
src: mediaPath,
|
|
63655
|
+
rId
|
|
63656
|
+
});
|
|
63657
|
+
});
|
|
63658
|
+
return tr;
|
|
63659
|
+
};
|
|
63660
|
+
const handleBrowserPath = (foundImages, editor, view, state2) => {
|
|
63661
|
+
registerImages(foundImages, editor, view);
|
|
63662
|
+
const tr = state2.tr;
|
|
63663
|
+
let { set } = key.getState(state2);
|
|
63664
|
+
foundImages.slice().sort((a, b2) => a.pos - b2.pos).forEach(({ pos, id }) => {
|
|
63665
|
+
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
63666
|
+
side: -1,
|
|
63667
|
+
id
|
|
63668
|
+
});
|
|
63669
|
+
set = set.add(tr.doc, [deco]);
|
|
63670
|
+
});
|
|
63671
|
+
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
63672
|
+
tr.delete(pos, pos + node.nodeSize);
|
|
63673
|
+
});
|
|
63674
|
+
set = set.map(tr.mapping, tr.doc);
|
|
63675
|
+
tr.setMeta(key, { set });
|
|
63676
|
+
return tr;
|
|
63677
|
+
};
|
|
63003
63678
|
const findPlaceholder = (state2, id) => {
|
|
63004
63679
|
let { set } = key.getState(state2);
|
|
63005
63680
|
let found2 = set?.find(null, null, (spec) => spec.id === id);
|
|
@@ -65527,15 +66202,50 @@ const getChangesByIdToResolve = (state2, id) => {
|
|
|
65527
66202
|
const changeIndex = trackedChanges.findIndex(({ mark }) => mark.attrs.id === id);
|
|
65528
66203
|
if (changeIndex === -1) return;
|
|
65529
66204
|
const matchingChange = trackedChanges[changeIndex];
|
|
65530
|
-
const
|
|
65531
|
-
const
|
|
65532
|
-
|
|
65533
|
-
|
|
65534
|
-
|
|
65535
|
-
|
|
65536
|
-
|
|
65537
|
-
|
|
65538
|
-
|
|
66205
|
+
const matchingId = matchingChange.mark.attrs.id;
|
|
66206
|
+
const getSegmentSize = ({ from: from2, to }) => to - from2;
|
|
66207
|
+
const areDirectlyConnected = (left2, right2) => {
|
|
66208
|
+
if (!left2 || !right2) {
|
|
66209
|
+
return false;
|
|
66210
|
+
}
|
|
66211
|
+
if (left2.to !== right2.from) {
|
|
66212
|
+
return false;
|
|
66213
|
+
}
|
|
66214
|
+
const hasContentBetween = state2.doc.textBetween(left2.from, right2.to, "\n").length > getSegmentSize(left2) + getSegmentSize(right2);
|
|
66215
|
+
return !hasContentBetween;
|
|
66216
|
+
};
|
|
66217
|
+
const isComplementaryPair = (firstType, secondType) => firstType === TrackDeleteMarkName && secondType === TrackInsertMarkName || firstType === TrackInsertMarkName && secondType === TrackDeleteMarkName;
|
|
66218
|
+
const linkedBefore = [];
|
|
66219
|
+
const linkedAfter = [];
|
|
66220
|
+
const collectDirection = (direction, collection) => {
|
|
66221
|
+
let currentIndex = changeIndex;
|
|
66222
|
+
let currentChange = matchingChange;
|
|
66223
|
+
while (true) {
|
|
66224
|
+
const neighborIndex = currentIndex + direction;
|
|
66225
|
+
const neighbor = trackedChanges[neighborIndex];
|
|
66226
|
+
if (!neighbor) {
|
|
66227
|
+
break;
|
|
66228
|
+
}
|
|
66229
|
+
const [left2, right2] = direction < 0 ? [neighbor, currentChange] : [currentChange, neighbor];
|
|
66230
|
+
if (!areDirectlyConnected(left2, right2)) {
|
|
66231
|
+
break;
|
|
66232
|
+
}
|
|
66233
|
+
const sharesId = neighbor.mark.attrs.id === matchingId;
|
|
66234
|
+
const complementary = isComplementaryPair(currentChange.mark.type.name, neighbor.mark.type.name);
|
|
66235
|
+
if (!sharesId && !complementary) {
|
|
66236
|
+
break;
|
|
66237
|
+
}
|
|
66238
|
+
collection.push(neighbor);
|
|
66239
|
+
currentIndex = neighborIndex;
|
|
66240
|
+
currentChange = neighbor;
|
|
66241
|
+
if (!sharesId) {
|
|
66242
|
+
break;
|
|
66243
|
+
}
|
|
66244
|
+
}
|
|
66245
|
+
};
|
|
66246
|
+
collectDirection(-1, linkedBefore);
|
|
66247
|
+
collectDirection(1, linkedAfter);
|
|
66248
|
+
return [matchingChange, ...linkedAfter, ...linkedBefore];
|
|
65539
66249
|
};
|
|
65540
66250
|
const TextTransform = Extension.create({
|
|
65541
66251
|
name: "textTransform",
|
|
@@ -70117,6 +70827,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
|
|
|
70117
70827
|
return actualBreak;
|
|
70118
70828
|
}
|
|
70119
70829
|
const onImageLoad = (editor) => {
|
|
70830
|
+
if (typeof requestAnimationFrame !== "function") return;
|
|
70120
70831
|
requestAnimationFrame(() => {
|
|
70121
70832
|
const newTr = editor.view.state.tr;
|
|
70122
70833
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -71328,7 +72039,7 @@ const _sfc_main$4$1 = {
|
|
|
71328
72039
|
};
|
|
71329
72040
|
const handleInputSubmit = () => {
|
|
71330
72041
|
const value = inlineTextInput.value;
|
|
71331
|
-
const cleanValue = value.
|
|
72042
|
+
const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
|
|
71332
72043
|
emit("textSubmit", cleanValue);
|
|
71333
72044
|
inlineTextInput.value = cleanValue;
|
|
71334
72045
|
};
|
|
@@ -71410,7 +72121,7 @@ const _sfc_main$4$1 = {
|
|
|
71410
72121
|
};
|
|
71411
72122
|
}
|
|
71412
72123
|
};
|
|
71413
|
-
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-
|
|
72124
|
+
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
|
|
71414
72125
|
const _hoisted_1$2$1 = {
|
|
71415
72126
|
class: "toolbar-separator",
|
|
71416
72127
|
role: "separator",
|
|
@@ -81907,7 +82618,7 @@ function requireEventemitter3() {
|
|
|
81907
82618
|
return eventemitter3.exports;
|
|
81908
82619
|
}
|
|
81909
82620
|
var eventemitter3Exports = requireEventemitter3();
|
|
81910
|
-
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
82621
|
+
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$2(eventemitter3Exports);
|
|
81911
82622
|
const useToolbarItem = (options) => {
|
|
81912
82623
|
const types2 = ["button", "options", "separator", "dropdown", "overflow"];
|
|
81913
82624
|
if (!types2.includes(options.type)) {
|
|
@@ -83182,16 +83893,21 @@ const makeDefaultItems = ({
|
|
|
83182
83893
|
onActivate: ({ fontFamily: fontFamily2 }) => {
|
|
83183
83894
|
if (!fontFamily2) return;
|
|
83184
83895
|
fontButton.label.value = fontFamily2;
|
|
83896
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83185
83897
|
const foundFont = fontOptions.find((i2) => i2.label === fontFamily2);
|
|
83186
83898
|
if (foundFont) {
|
|
83187
83899
|
fontButton.selectedValue.value = foundFont.key;
|
|
83900
|
+
} else if (defaultFont) {
|
|
83901
|
+
fontButton.selectedValue.value = defaultFont.key;
|
|
83188
83902
|
} else {
|
|
83189
83903
|
fontButton.selectedValue.value = "";
|
|
83190
83904
|
}
|
|
83191
83905
|
},
|
|
83192
83906
|
onDeactivate: () => {
|
|
83193
83907
|
fontButton.label.value = fontButton.defaultLabel.value;
|
|
83194
|
-
fontButton.
|
|
83908
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83909
|
+
if (defaultFont) fontButton.selectedValue.value = defaultFont.key;
|
|
83910
|
+
else fontButton.selectedValue.value = "";
|
|
83195
83911
|
}
|
|
83196
83912
|
});
|
|
83197
83913
|
const aiButton = useToolbarItem({
|
|
@@ -83259,9 +83975,11 @@ const makeDefaultItems = ({
|
|
|
83259
83975
|
},
|
|
83260
83976
|
options: fontSizeOptions,
|
|
83261
83977
|
onActivate: ({ fontSize: size2 }) => {
|
|
83978
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
83262
83979
|
if (!size2) {
|
|
83263
83980
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83264
|
-
fontSize2.selectedValue.value =
|
|
83981
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
83982
|
+
else fontSize2.selectedValue.value = "";
|
|
83265
83983
|
return;
|
|
83266
83984
|
}
|
|
83267
83985
|
let sanitizedValue = sanitizeNumber(size2, 12);
|
|
@@ -83273,6 +83991,8 @@ const makeDefaultItems = ({
|
|
|
83273
83991
|
});
|
|
83274
83992
|
if (foundSize) {
|
|
83275
83993
|
fontSize2.selectedValue.value = foundSize.key;
|
|
83994
|
+
} else if (defaultSize) {
|
|
83995
|
+
fontSize2.selectedValue.value = defaultSize.key;
|
|
83276
83996
|
} else {
|
|
83277
83997
|
fontSize2.selectedValue.value = "";
|
|
83278
83998
|
}
|
|
@@ -83280,7 +84000,9 @@ const makeDefaultItems = ({
|
|
|
83280
84000
|
},
|
|
83281
84001
|
onDeactivate: () => {
|
|
83282
84002
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83283
|
-
fontSize2.
|
|
84003
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
84004
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
84005
|
+
else fontSize2.selectedValue.value = "";
|
|
83284
84006
|
}
|
|
83285
84007
|
});
|
|
83286
84008
|
const separator = useToolbarItem({
|
|
@@ -83493,6 +84215,7 @@ const makeDefaultItems = ({
|
|
|
83493
84215
|
type: "dropdown",
|
|
83494
84216
|
name: "tableActions",
|
|
83495
84217
|
command: "executeTableCommand",
|
|
84218
|
+
tooltip: toolbarTexts2.tableActions,
|
|
83496
84219
|
icon: toolbarIcons2.tableActions,
|
|
83497
84220
|
hideLabel: true,
|
|
83498
84221
|
disabled: true,
|
|
@@ -84191,6 +84914,7 @@ const toolbarTexts = {
|
|
|
84191
84914
|
link: "Link",
|
|
84192
84915
|
image: "Image",
|
|
84193
84916
|
table: "Insert table",
|
|
84917
|
+
tableActions: "Table options",
|
|
84194
84918
|
addRowBefore: "Insert row above",
|
|
84195
84919
|
addRowAfter: "Insert row below",
|
|
84196
84920
|
addColumnBefore: "Insert column left",
|
|
@@ -86648,7 +87372,9 @@ const additionalHandlers = Object.freeze({
|
|
|
86648
87372
|
"w:wAfter": translator$K,
|
|
86649
87373
|
"w:wBefore": translator$J,
|
|
86650
87374
|
"wp:anchor": translator$8,
|
|
86651
|
-
"wp:inline": translator$7
|
|
87375
|
+
"wp:inline": translator$7,
|
|
87376
|
+
"w:commentRangeStart": commentRangeStartTranslator,
|
|
87377
|
+
"w:commentRangeEnd": commentRangeEndTranslator
|
|
86652
87378
|
});
|
|
86653
87379
|
const baseHandlers = {
|
|
86654
87380
|
...runPropertyTranslators,
|