@harbour-enterprises/superdoc 0.23.0-next.2 → 0.23.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-BItyloFT.cjs → PdfViewer-C1OeVT5x.cjs} +2 -2
- package/dist/chunks/{PdfViewer-MPmm-SUD.es.js → PdfViewer-DN7WcPFE.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-BWEnUdTY.es.js} +1 -1
- package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DkXkH2rT.cjs} +1 -1
- package/dist/chunks/{index-OVF3JhUR.es.js → index-C4jqec_K.es.js} +98 -356
- package/dist/chunks/{index-CdJOxoqt.cjs → index-CzDXj8Kn.cjs} +231 -489
- package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-BDk3JBqp.es.js} +4 -4
- package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-u4dvXAKa.cjs} +4 -4
- package/dist/chunks/{super-editor.es-C7stybby.cjs → super-editor.es-BAutf_un.cjs} +1465 -735
- package/dist/chunks/{super-editor.es-DQnqUJZs.es.js → super-editor.es-C_TNO7vs.es.js} +1465 -735
- package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
- package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
- package/dist/chunks/xml-js-D_ZIzxu0.cjs +3 -0
- package/dist/chunks/xml-js-Dx4FIjnp.es.js +2 -0
- package/dist/components/CommentsLayer/types.d.ts +158 -0
- package/dist/components/CommentsLayer/types.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +5 -18
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +48 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/stores/superdoc-store.d.ts.map +1 -1
- package/dist/style.css +73 -54
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BVirrB35.js → converter-DRfV_TdS.js} +1311 -847
- package/dist/super-editor/chunks/{docx-zipper-Cpb9d2an.js → docx-zipper-BGbNO5Td.js} +1 -1
- package/dist/super-editor/chunks/{editor-DIINh50j.js → editor-CkWePiIz.js} +345 -92
- package/dist/super-editor/chunks/{toolbar-CmDmkPHL.js → toolbar-Ba-s6umZ.js} +4 -4
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +46 -27
- package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarTexts.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/Attribute.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/Editor.d.ts +57 -3
- package/dist/super-editor/{src → super-editor/src}/core/Schema.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/helpers/htmlSanitizer.d.ts +1 -1
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/SuperConverter.d.ts +58 -2
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter-docx-defs.d.ts +28 -39
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/commentsExporter.d.ts +0 -7
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/w-id.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/comment-range-translator.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/index.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/node-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +64 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
- package/dist/super-editor/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +5 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
- package/dist/super-editor/super-editor.es.js +26 -11
- package/dist/super-editor/superdoc/src/components/CommentsLayer/types.d.ts +157 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +3 -4
- package/dist/superdoc.es.js +3 -4
- package/dist/superdoc.umd.js +1606 -1134
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
- package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +0 -4
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
- /package/dist/super-editor/{postcss.config.d.cts → super-editor/postcss.config.d.cts} +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/cursor-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/menuItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/tests/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/ai-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/color-dropdown-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/defaultItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/format-negation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/scroll-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/super-toolbar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarIcons.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/use-toolbar-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/composables/use-high-contrast-mode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/CommandService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/DocxZipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/EventEmitter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Extension.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/ExtensionService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/InputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Mark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/OxmlNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/child-editor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/schemaWithLists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testSchema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/backspaceNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/clearNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/command.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/createParagraphNear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/decreaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/exitCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/increaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContentAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinDown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinUp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftEmptyBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/find-node-position.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/is-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/test-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/newlineInCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/resetAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/restoreSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectAll.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockStart.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMeta.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/sinkListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/commandTestUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/test-schema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMarkCascade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/undoInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetAllMarks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/updateAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/wrapInList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/encoding-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editorFocus.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/keymap.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/ErrorWithDetails.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/annotator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/baseListDefinitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/chainableEditorState.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/cleanSchemaItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/contentProcessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createDocument.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createNodeFromContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/defaultBlockAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findChildren.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNodeClosestToPos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findWordBounds.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxListAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxRandomId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getActiveFormatting.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getExtensionConfigField.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getHTMLFromFragment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkRange.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksFromSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getNodeType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeNameByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getTextContentFromNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importHtml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importMarkdown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isExtentionRulesEnabled.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isInTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isMarkActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isNodeActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isTextSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/list-numbering-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/orderedListUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/pasteListHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/posToDOMRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/selectionToInsertionEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setImageNodeSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setWordSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/updateDOMAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/docx-paste/docx-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/google-docs-paste/google-docs-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/html-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/transform-copied-lists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/wrappingInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/0.14-listsv2/listsv2migration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/migration_after_0_4_14.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/document-rels.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/get-default-style-definition.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/hyperlink-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/num-pages-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-ref-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/toc-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/preProcessNodesForFldChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/mediaHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/tableFallbackHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/docxHelper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/alternateChoiceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/autoPageNumberImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/documentCommentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/docxImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/hyperlinkImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/ignoredNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/imageImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/importerHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/lineBreakImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/listImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/markImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/mergeTextNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pageReferenceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pictNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/runNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/standardNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tabImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableOfContentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/textNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/trackChangesImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/pageReference-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/tableOfContents-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/b-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-clear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-line-break-type.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/br-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/cantSplit-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/cnfStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/color-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/divId-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/gridAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/gridBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/hidden-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/hyperlink-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/i-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/jc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-p.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-default.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-para-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-text-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/p-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/r-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-leader.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/tblCellSpacing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/tblHeader-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/tc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/trHeight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/trPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/u-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/wAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/wBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/zipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/logger.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/super-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/image-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/image-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/link-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/link-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/numbering/numbering-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/relationships/relationships-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/callOrGet.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/carbonCopy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/clipboardUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/createStyleTag.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/deleteProps.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/imageBlobs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isEmptyObject.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isIOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isMacOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isRegExp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/minMax.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/objectIncludes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/parseSizeUnit.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-nodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/block-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/bold.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-end.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-start.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/bullet-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/collaboration-cursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment-import-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/custom-selection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/document.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/dropcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpParagraphWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFirstFieldAnnotationByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findHeaderFooterAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findRemovedFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotationsWithRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/font-family.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/font-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/format-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/gapcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/heading.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/highlight.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/history.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/image.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/getFileOpener.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleImageUpload.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleUrl.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imagePositionPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/processUploadedImage.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/rotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/italic.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/line-break.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/line-height.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/link.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/linked-styles.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/underline-css.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/ListItemNodeView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/listItemTypography.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/list-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/mention.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/noderesizer.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/ordered-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/page-number.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/page-reference.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/helpers/getDefaultSpacing.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/paragraph.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/placeholder.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/popover-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/split-run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/prosemirror-search-patched.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/search.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/shape-container.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/shape-textbox.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shared/cascade-toggle.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/slash-menu.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/strike.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentBlockView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentInlineView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentViewBase.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-part-object.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/DocumentSectionView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/helpers/tabDecorations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/tab.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/TableView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/table.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellAround.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createCell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createColGroup.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTableBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/isCellSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/helpers/createCellBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/table-header.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/table-of-contents.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/table-row.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/text.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/text-align.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/text-indent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/text-style.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/text-transform.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-changes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-delete.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-format.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-insert.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/underline.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/main.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/data/annotations_doc_content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/editor/data/imageBase64.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/data/comments/basic-resolved-comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/list-export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/editor-test-utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/getParagraphText.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/import/testUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/utils/contextmenu-helpers.d.ts +0 -0
- /package/dist/super-editor/{vite.config.d.ts → super-editor/vite.config.d.ts} +0 -0
|
@@ -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);
|
|
@@ -29355,7 +29451,10 @@ function flattenFoundList$1(listElem, editor, NodeInterface) {
|
|
|
29355
29451
|
editor
|
|
29356
29452
|
});
|
|
29357
29453
|
}
|
|
29358
|
-
let level =
|
|
29454
|
+
let level = Number(listElem.getAttribute("data-level"));
|
|
29455
|
+
if (Number.isNaN(level)) {
|
|
29456
|
+
level = 0;
|
|
29457
|
+
}
|
|
29359
29458
|
let ancestor = listElem.parentElement;
|
|
29360
29459
|
while (ancestor && ancestor !== localDoc.body) {
|
|
29361
29460
|
if (ancestor.tagName && ancestor.tagName.toLowerCase() === "li") {
|
|
@@ -29375,6 +29474,7 @@ function flattenFoundList$1(listElem, editor, NodeInterface) {
|
|
|
29375
29474
|
const newList = createSingleItemList({ li, tag, rootNumId, level, editor, NodeInterface });
|
|
29376
29475
|
newLists.push(newList);
|
|
29377
29476
|
nestedListsData.forEach((data) => {
|
|
29477
|
+
data.element.setAttribute("data-level", level + 1);
|
|
29378
29478
|
newLists.push(data.element);
|
|
29379
29479
|
});
|
|
29380
29480
|
});
|
|
@@ -29809,7 +29909,7 @@ function handleHtmlPaste(html, editor, source) {
|
|
|
29809
29909
|
const paragraphContent = doc2.firstChild.content;
|
|
29810
29910
|
const tr = state2.tr.replaceSelectionWith(paragraphContent, false);
|
|
29811
29911
|
dispatch(tr);
|
|
29812
|
-
} else if (isInParagraph) {
|
|
29912
|
+
} else if (isInParagraph && state2.doc.textContent) {
|
|
29813
29913
|
const allContent = [];
|
|
29814
29914
|
doc2.content.forEach((node, index2) => {
|
|
29815
29915
|
if (node.type.name === "paragraph") {
|
|
@@ -30143,7 +30243,7 @@ function requireHe() {
|
|
|
30143
30243
|
return he$2.exports;
|
|
30144
30244
|
}
|
|
30145
30245
|
var heExports = requireHe();
|
|
30146
|
-
const he = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
30246
|
+
const he = /* @__PURE__ */ getDefaultExportFromCjs$2(heExports);
|
|
30147
30247
|
function translateFieldAnnotation(params2) {
|
|
30148
30248
|
const { node, isFinalDoc, fieldsHighlightColor } = params2;
|
|
30149
30249
|
const { attrs = {} } = node;
|
|
@@ -30545,8 +30645,8 @@ function generateSdtPrTagForStructuredContent({ node }) {
|
|
|
30545
30645
|
};
|
|
30546
30646
|
return result;
|
|
30547
30647
|
}
|
|
30548
|
-
const XML_NODE_NAME$
|
|
30549
|
-
const SD_NODE_NAME$
|
|
30648
|
+
const XML_NODE_NAME$6 = "w:sdt";
|
|
30649
|
+
const SD_NODE_NAME$6 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
|
|
30550
30650
|
const validXmlAttributes$3 = [];
|
|
30551
30651
|
function encode$c(params2) {
|
|
30552
30652
|
const nodes = params2.nodes;
|
|
@@ -30558,7 +30658,7 @@ function encode$c(params2) {
|
|
|
30558
30658
|
const result = handler2(params2);
|
|
30559
30659
|
return result;
|
|
30560
30660
|
}
|
|
30561
|
-
function decode$
|
|
30661
|
+
function decode$e(params2) {
|
|
30562
30662
|
const { node } = params2;
|
|
30563
30663
|
if (!node || !node.type) {
|
|
30564
30664
|
return null;
|
|
@@ -30577,84 +30677,84 @@ function decode$c(params2) {
|
|
|
30577
30677
|
return result;
|
|
30578
30678
|
}
|
|
30579
30679
|
const config$5 = {
|
|
30580
|
-
xmlName: XML_NODE_NAME$
|
|
30581
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30680
|
+
xmlName: XML_NODE_NAME$6,
|
|
30681
|
+
sdNodeOrKeyName: SD_NODE_NAME$6,
|
|
30582
30682
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30583
30683
|
encode: encode$c,
|
|
30584
|
-
decode: decode$
|
|
30684
|
+
decode: decode$e,
|
|
30585
30685
|
attributes: validXmlAttributes$3
|
|
30586
30686
|
};
|
|
30587
30687
|
const translator$5 = NodeTranslator.from(config$5);
|
|
30588
30688
|
const encode$b = (attributes) => {
|
|
30589
30689
|
return attributes["w:id"];
|
|
30590
30690
|
};
|
|
30591
|
-
const decode$
|
|
30691
|
+
const decode$d = (attrs) => {
|
|
30592
30692
|
return attrs.id;
|
|
30593
30693
|
};
|
|
30594
|
-
const attrConfig$
|
|
30694
|
+
const attrConfig$7 = Object.freeze({
|
|
30595
30695
|
xmlName: "w:id",
|
|
30596
30696
|
sdName: "id",
|
|
30597
30697
|
encode: encode$b,
|
|
30598
|
-
decode: decode$
|
|
30698
|
+
decode: decode$d
|
|
30599
30699
|
});
|
|
30600
30700
|
const encode$a = (attributes) => {
|
|
30601
30701
|
return attributes["w:name"];
|
|
30602
30702
|
};
|
|
30603
|
-
const decode$
|
|
30703
|
+
const decode$c = (attrs) => {
|
|
30604
30704
|
return attrs.name;
|
|
30605
30705
|
};
|
|
30606
|
-
const attrConfig$
|
|
30706
|
+
const attrConfig$6 = Object.freeze({
|
|
30607
30707
|
xmlName: "w:name",
|
|
30608
30708
|
sdName: "name",
|
|
30609
30709
|
encode: encode$a,
|
|
30610
|
-
decode: decode$
|
|
30710
|
+
decode: decode$c
|
|
30611
30711
|
});
|
|
30612
30712
|
const encode$9 = (attributes) => {
|
|
30613
30713
|
return attributes["w:colFirst"];
|
|
30614
30714
|
};
|
|
30615
|
-
const decode$
|
|
30715
|
+
const decode$b = (attrs) => {
|
|
30616
30716
|
return attrs.colFirst;
|
|
30617
30717
|
};
|
|
30618
|
-
const attrConfig$
|
|
30718
|
+
const attrConfig$5 = Object.freeze({
|
|
30619
30719
|
xmlName: "w:colFirst",
|
|
30620
30720
|
sdName: "colFirst",
|
|
30621
30721
|
encode: encode$9,
|
|
30622
|
-
decode: decode$
|
|
30722
|
+
decode: decode$b
|
|
30623
30723
|
});
|
|
30624
30724
|
const encode$8 = (attributes) => {
|
|
30625
30725
|
return attributes["w:colLast"];
|
|
30626
30726
|
};
|
|
30627
|
-
const decode$
|
|
30727
|
+
const decode$a = (attrs) => {
|
|
30628
30728
|
return attrs.colLast;
|
|
30629
30729
|
};
|
|
30630
|
-
const attrConfig$
|
|
30730
|
+
const attrConfig$4 = Object.freeze({
|
|
30631
30731
|
xmlName: "w:colLast",
|
|
30632
30732
|
sdName: "colLast",
|
|
30633
30733
|
encode: encode$8,
|
|
30634
|
-
decode: decode$
|
|
30734
|
+
decode: decode$a
|
|
30635
30735
|
});
|
|
30636
30736
|
const encode$7 = (attributes) => {
|
|
30637
30737
|
return attributes["w:displacedByCustomXml"];
|
|
30638
30738
|
};
|
|
30639
|
-
const decode$
|
|
30739
|
+
const decode$9 = (attrs) => {
|
|
30640
30740
|
return attrs.displacedByCustomXml;
|
|
30641
30741
|
};
|
|
30642
|
-
const attrConfig$
|
|
30742
|
+
const attrConfig$3 = Object.freeze({
|
|
30643
30743
|
xmlName: "w:displacedByCustomXml",
|
|
30644
30744
|
sdName: "displacedByCustomXml",
|
|
30645
30745
|
encode: encode$7,
|
|
30646
|
-
decode: decode$
|
|
30746
|
+
decode: decode$9
|
|
30647
30747
|
});
|
|
30648
|
-
const validXmlAttributes$2 = [attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3
|
|
30649
|
-
const XML_NODE_NAME$
|
|
30650
|
-
const SD_NODE_NAME$
|
|
30748
|
+
const validXmlAttributes$2 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
|
|
30749
|
+
const XML_NODE_NAME$5 = "w:bookmarkStart";
|
|
30750
|
+
const SD_NODE_NAME$5 = "bookmarkStart";
|
|
30651
30751
|
const encode$6 = (params2, encodedAttrs = {}) => {
|
|
30652
30752
|
return {
|
|
30653
30753
|
type: "bookmarkStart",
|
|
30654
30754
|
attrs: encodedAttrs
|
|
30655
30755
|
};
|
|
30656
30756
|
};
|
|
30657
|
-
const decode$
|
|
30757
|
+
const decode$8 = (params2, decodedAttrs = {}) => {
|
|
30658
30758
|
const result = {
|
|
30659
30759
|
name: "w:bookmarkStart",
|
|
30660
30760
|
elements: []
|
|
@@ -30665,48 +30765,48 @@ const decode$6 = (params2, decodedAttrs = {}) => {
|
|
|
30665
30765
|
return result;
|
|
30666
30766
|
};
|
|
30667
30767
|
const config$4 = {
|
|
30668
|
-
xmlName: XML_NODE_NAME$
|
|
30669
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30768
|
+
xmlName: XML_NODE_NAME$5,
|
|
30769
|
+
sdNodeOrKeyName: SD_NODE_NAME$5,
|
|
30670
30770
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30671
30771
|
encode: encode$6,
|
|
30672
|
-
decode: decode$
|
|
30772
|
+
decode: decode$8,
|
|
30673
30773
|
attributes: validXmlAttributes$2
|
|
30674
30774
|
};
|
|
30675
30775
|
const translator$4 = NodeTranslator.from(config$4);
|
|
30676
30776
|
const encode$5 = (attributes) => {
|
|
30677
30777
|
return attributes["w:id"];
|
|
30678
30778
|
};
|
|
30679
|
-
const decode$
|
|
30779
|
+
const decode$7 = (attrs) => {
|
|
30680
30780
|
return attrs.id;
|
|
30681
30781
|
};
|
|
30682
|
-
const attrConfig$
|
|
30782
|
+
const attrConfig$2 = Object.freeze({
|
|
30683
30783
|
xmlName: "w:id",
|
|
30684
30784
|
sdName: "id",
|
|
30685
30785
|
encode: encode$5,
|
|
30686
|
-
decode: decode$
|
|
30786
|
+
decode: decode$7
|
|
30687
30787
|
});
|
|
30688
30788
|
const encode$4 = (attributes) => {
|
|
30689
30789
|
return attributes["w:displacedByCustomXml"];
|
|
30690
30790
|
};
|
|
30691
|
-
const decode$
|
|
30791
|
+
const decode$6 = (attrs) => {
|
|
30692
30792
|
return attrs.displacedByCustomXml;
|
|
30693
30793
|
};
|
|
30694
|
-
const attrConfig = Object.freeze({
|
|
30794
|
+
const attrConfig$1 = Object.freeze({
|
|
30695
30795
|
xmlName: "w:displacedByCustomXml",
|
|
30696
30796
|
sdName: "displacedByCustomXml",
|
|
30697
30797
|
encode: encode$4,
|
|
30698
|
-
decode: decode$
|
|
30798
|
+
decode: decode$6
|
|
30699
30799
|
});
|
|
30700
|
-
const validXmlAttributes$1 = [attrConfig$
|
|
30701
|
-
const XML_NODE_NAME$
|
|
30702
|
-
const SD_NODE_NAME$
|
|
30800
|
+
const validXmlAttributes$1 = [attrConfig$2, attrConfig$1];
|
|
30801
|
+
const XML_NODE_NAME$4 = "w:bookmarkEnd";
|
|
30802
|
+
const SD_NODE_NAME$4 = "bookmarkEnd";
|
|
30703
30803
|
const encode$3 = (params2, encodedAttrs = {}) => {
|
|
30704
30804
|
return {
|
|
30705
30805
|
type: "bookmarkEnd",
|
|
30706
30806
|
attrs: encodedAttrs
|
|
30707
30807
|
};
|
|
30708
30808
|
};
|
|
30709
|
-
const decode$
|
|
30809
|
+
const decode$5 = (params2, decodedAttrs = {}) => {
|
|
30710
30810
|
const result = {
|
|
30711
30811
|
name: "w:bookmarkEnd",
|
|
30712
30812
|
elements: []
|
|
@@ -30717,16 +30817,16 @@ const decode$3 = (params2, decodedAttrs = {}) => {
|
|
|
30717
30817
|
return result;
|
|
30718
30818
|
};
|
|
30719
30819
|
const config$3 = {
|
|
30720
|
-
xmlName: XML_NODE_NAME$
|
|
30721
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30820
|
+
xmlName: XML_NODE_NAME$4,
|
|
30821
|
+
sdNodeOrKeyName: SD_NODE_NAME$4,
|
|
30722
30822
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30723
30823
|
encode: encode$3,
|
|
30724
|
-
decode: decode$
|
|
30824
|
+
decode: decode$5,
|
|
30725
30825
|
attributes: validXmlAttributes$1
|
|
30726
30826
|
};
|
|
30727
30827
|
const translator$3 = NodeTranslator.from(config$3);
|
|
30728
|
-
const XML_NODE_NAME$
|
|
30729
|
-
const SD_NODE_NAME$
|
|
30828
|
+
const XML_NODE_NAME$3 = "mc:AlternateContent";
|
|
30829
|
+
const SD_NODE_NAME$3 = [];
|
|
30730
30830
|
const validXmlAttributes = [];
|
|
30731
30831
|
function encode$2(params2) {
|
|
30732
30832
|
const { nodeListHandler } = params2;
|
|
@@ -30748,7 +30848,7 @@ function encode$2(params2) {
|
|
|
30748
30848
|
path: [...params2.path || [], wpsNode]
|
|
30749
30849
|
});
|
|
30750
30850
|
}
|
|
30751
|
-
function decode$
|
|
30851
|
+
function decode$4(params2) {
|
|
30752
30852
|
const { node } = params2;
|
|
30753
30853
|
const { drawingContent } = node.attrs;
|
|
30754
30854
|
const drawing = {
|
|
@@ -30766,14 +30866,78 @@ function decode$2(params2) {
|
|
|
30766
30866
|
};
|
|
30767
30867
|
}
|
|
30768
30868
|
const config$2 = {
|
|
30769
|
-
xmlName: XML_NODE_NAME$
|
|
30770
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30869
|
+
xmlName: XML_NODE_NAME$3,
|
|
30870
|
+
sdNodeOrKeyName: SD_NODE_NAME$3,
|
|
30771
30871
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30772
30872
|
encode: encode$2,
|
|
30773
|
-
decode: decode$
|
|
30873
|
+
decode: decode$4,
|
|
30774
30874
|
attributes: validXmlAttributes
|
|
30775
30875
|
};
|
|
30776
30876
|
const translator$2 = NodeTranslator.from(config$2);
|
|
30877
|
+
const decode$3 = (attrs) => attrs?.["w:id"];
|
|
30878
|
+
const attrConfig = Object.freeze({
|
|
30879
|
+
xmlName: "w:id",
|
|
30880
|
+
sdName: "w:id",
|
|
30881
|
+
// We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
|
|
30882
|
+
encode: () => {
|
|
30883
|
+
},
|
|
30884
|
+
decode: decode$3
|
|
30885
|
+
});
|
|
30886
|
+
const XML_NODE_NAME$2 = "w:commentRange";
|
|
30887
|
+
const SD_NODE_NAME$2 = "commentRange";
|
|
30888
|
+
const decode$2 = (params2, decodedAttrs) => {
|
|
30889
|
+
const { node, comments, commentsExportType, exportedCommentDefs } = params2;
|
|
30890
|
+
if (!node) return;
|
|
30891
|
+
if (!comments) return;
|
|
30892
|
+
if (exportedCommentDefs?.length === 0) return;
|
|
30893
|
+
if (commentsExportType === "clean") return;
|
|
30894
|
+
const commentNodeId = node.attrs["w:id"];
|
|
30895
|
+
const originalComment = comments.find((comment) => {
|
|
30896
|
+
return comment.commentId == commentNodeId;
|
|
30897
|
+
});
|
|
30898
|
+
if (!originalComment) return;
|
|
30899
|
+
const parentCommentId = originalComment.parentCommentId;
|
|
30900
|
+
const parentComment = comments.find(
|
|
30901
|
+
({ commentId, importedId }) => commentId === parentCommentId || importedId === parentCommentId
|
|
30902
|
+
);
|
|
30903
|
+
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
30904
|
+
if (commentsExportType === "external" && isInternal) return;
|
|
30905
|
+
const isResolved = !!originalComment.resolvedTime;
|
|
30906
|
+
if (isResolved) return;
|
|
30907
|
+
if (node.type !== "commentRangeStart" && node.type !== "commentRangeEnd") {
|
|
30908
|
+
return;
|
|
30909
|
+
}
|
|
30910
|
+
const { type: type2 } = node;
|
|
30911
|
+
const commentIndex = comments.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
30912
|
+
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
30913
|
+
if (type2 === "commentRangeEnd") {
|
|
30914
|
+
const commentReference = {
|
|
30915
|
+
name: "w:r",
|
|
30916
|
+
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
30917
|
+
};
|
|
30918
|
+
commentSchema = [commentSchema, commentReference];
|
|
30919
|
+
}
|
|
30920
|
+
return commentSchema;
|
|
30921
|
+
};
|
|
30922
|
+
const getCommentSchema = (type2, commentIndex) => {
|
|
30923
|
+
return {
|
|
30924
|
+
name: `w:${type2}`,
|
|
30925
|
+
attributes: {
|
|
30926
|
+
"w:id": String(commentIndex)
|
|
30927
|
+
}
|
|
30928
|
+
};
|
|
30929
|
+
};
|
|
30930
|
+
const getConfig = (type2) => ({
|
|
30931
|
+
xmlName: `${XML_NODE_NAME$2}${type2}`,
|
|
30932
|
+
sdNodeOrKeyName: `${SD_NODE_NAME$2}${type2}`,
|
|
30933
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
30934
|
+
encode: () => {
|
|
30935
|
+
},
|
|
30936
|
+
decode: decode$2,
|
|
30937
|
+
attributes: [attrConfig]
|
|
30938
|
+
});
|
|
30939
|
+
const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
|
|
30940
|
+
const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
|
|
30777
30941
|
const XML_NODE_NAME$1 = "sd:pageReference";
|
|
30778
30942
|
const SD_NODE_NAME$1 = "pageReference";
|
|
30779
30943
|
const encode$1 = (params2, _2) => {
|
|
@@ -31033,8 +31197,8 @@ function exportSchemaToJson(params2) {
|
|
|
31033
31197
|
tab: translator$17,
|
|
31034
31198
|
image: translator$6,
|
|
31035
31199
|
hardBreak: translator$19,
|
|
31036
|
-
commentRangeStart:
|
|
31037
|
-
commentRangeEnd:
|
|
31200
|
+
commentRangeStart: commentRangeStartTranslator,
|
|
31201
|
+
commentRangeEnd: commentRangeEndTranslator,
|
|
31038
31202
|
commentReference: () => null,
|
|
31039
31203
|
shapeContainer: translateShapeContainer,
|
|
31040
31204
|
shapeTextbox: translateShapeTextbox,
|
|
@@ -33308,7 +33472,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33308
33472
|
fileType: filePath.split(".").pop()
|
|
33309
33473
|
};
|
|
33310
33474
|
});
|
|
33311
|
-
converter.telemetry.trackFileStructure(
|
|
33475
|
+
const trackStructure = (documentIdentifier = null) => converter.telemetry.trackFileStructure(
|
|
33312
33476
|
{
|
|
33313
33477
|
totalFiles: files.length,
|
|
33314
33478
|
maxDepth: Math.max(...files.map((f) => f.fileDepth)),
|
|
@@ -33316,9 +33480,20 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33316
33480
|
files
|
|
33317
33481
|
},
|
|
33318
33482
|
converter.fileSource,
|
|
33319
|
-
converter.documentId,
|
|
33483
|
+
converter.documentGuid ?? converter.documentId ?? null,
|
|
33484
|
+
documentIdentifier ?? converter.documentId ?? null,
|
|
33320
33485
|
converter.documentInternalId
|
|
33321
33486
|
);
|
|
33487
|
+
try {
|
|
33488
|
+
const identifierResult = converter.getDocumentIdentifier?.();
|
|
33489
|
+
if (identifierResult && typeof identifierResult.then === "function") {
|
|
33490
|
+
identifierResult.then(trackStructure).catch(() => trackStructure());
|
|
33491
|
+
} else {
|
|
33492
|
+
trackStructure(identifierResult);
|
|
33493
|
+
}
|
|
33494
|
+
} catch (error) {
|
|
33495
|
+
trackStructure();
|
|
33496
|
+
}
|
|
33322
33497
|
}
|
|
33323
33498
|
const nodeListHandler = defaultNodeListHandler();
|
|
33324
33499
|
const bodyNode = json.elements[0].elements.find((el) => el.name === "w:body");
|
|
@@ -33794,6 +33969,176 @@ const isAlternatingHeadersOddEven = (docx) => {
|
|
|
33794
33969
|
const evenOdd = elements.find((el) => el.name === "w:evenAndOddHeaders");
|
|
33795
33970
|
return !!evenOdd;
|
|
33796
33971
|
};
|
|
33972
|
+
const prepareCommentParaIds = (comment) => {
|
|
33973
|
+
const newComment = {
|
|
33974
|
+
...comment,
|
|
33975
|
+
commentParaId: generateRandom32BitHex()
|
|
33976
|
+
};
|
|
33977
|
+
return newComment;
|
|
33978
|
+
};
|
|
33979
|
+
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
33980
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
33981
|
+
const attributes = {
|
|
33982
|
+
"w:id": String(commentId),
|
|
33983
|
+
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
33984
|
+
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
33985
|
+
"w:date": toIsoNoFractional(comment.createdTime),
|
|
33986
|
+
"w:initials": getInitials(comment.creatorName),
|
|
33987
|
+
"w:done": comment.resolvedTime ? "1" : "0",
|
|
33988
|
+
"w15:paraId": comment.commentParaId,
|
|
33989
|
+
"custom:internalId": comment.commentId || comment.internalId,
|
|
33990
|
+
"custom:trackedChange": comment.trackedChange,
|
|
33991
|
+
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
33992
|
+
"custom:trackedChangeType": comment.trackedChangeType,
|
|
33993
|
+
"custom:trackedDeletedText": comment.deletedText || null
|
|
33994
|
+
};
|
|
33995
|
+
if (comment?.parentCommentId) {
|
|
33996
|
+
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
33997
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
33998
|
+
}
|
|
33999
|
+
return {
|
|
34000
|
+
type: "element",
|
|
34001
|
+
name: "w:comment",
|
|
34002
|
+
attributes,
|
|
34003
|
+
elements: [translatedText]
|
|
34004
|
+
};
|
|
34005
|
+
};
|
|
34006
|
+
const getInitials = (name) => {
|
|
34007
|
+
if (!name) return null;
|
|
34008
|
+
const preparedText = name.replace("(imported)", "").trim();
|
|
34009
|
+
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
34010
|
+
return initials;
|
|
34011
|
+
};
|
|
34012
|
+
const toIsoNoFractional = (unixMillis) => {
|
|
34013
|
+
const date = new Date(unixMillis || Date.now());
|
|
34014
|
+
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
34015
|
+
};
|
|
34016
|
+
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
34017
|
+
const newCommentsXml = carbonCopy(commentsXml);
|
|
34018
|
+
commentDefs.forEach((commentDef) => {
|
|
34019
|
+
const elements = commentDef.elements[0].elements;
|
|
34020
|
+
elements.unshift(COMMENT_REF);
|
|
34021
|
+
const paraId = commentDef.attributes["w15:paraId"];
|
|
34022
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
34023
|
+
commentDef.attributes = {
|
|
34024
|
+
"w:id": commentDef.attributes["w:id"],
|
|
34025
|
+
"w:author": commentDef.attributes["w:author"],
|
|
34026
|
+
"w:email": commentDef.attributes["w:email"],
|
|
34027
|
+
"w:date": commentDef.attributes["w:date"],
|
|
34028
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
34029
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
34030
|
+
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
34031
|
+
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
34032
|
+
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
34033
|
+
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
34034
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
34035
|
+
};
|
|
34036
|
+
});
|
|
34037
|
+
newCommentsXml.elements[0].elements = commentDefs;
|
|
34038
|
+
return newCommentsXml;
|
|
34039
|
+
};
|
|
34040
|
+
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
34041
|
+
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
34042
|
+
const commentsEx = comments.map((comment) => {
|
|
34043
|
+
const attributes = {
|
|
34044
|
+
"w15:paraId": comment.commentParaId,
|
|
34045
|
+
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
34046
|
+
};
|
|
34047
|
+
const parentId = comment.parentCommentId;
|
|
34048
|
+
if (parentId) {
|
|
34049
|
+
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
34050
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
34051
|
+
}
|
|
34052
|
+
return {
|
|
34053
|
+
type: "element",
|
|
34054
|
+
name: "w15:commentEx",
|
|
34055
|
+
attributes
|
|
34056
|
+
};
|
|
34057
|
+
});
|
|
34058
|
+
xmlCopy.elements[0].elements = commentsEx;
|
|
34059
|
+
return xmlCopy;
|
|
34060
|
+
};
|
|
34061
|
+
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
34062
|
+
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
34063
|
+
const extensibleUpdated = carbonCopy(extensible);
|
|
34064
|
+
documentIdsUpdated.elements[0].elements = [];
|
|
34065
|
+
extensibleUpdated.elements[0].elements = [];
|
|
34066
|
+
comments.forEach((comment) => {
|
|
34067
|
+
const newDurableId = generateRandom32BitHex();
|
|
34068
|
+
const newCommentIdDef = {
|
|
34069
|
+
type: "element",
|
|
34070
|
+
name: "w16cid:commentId",
|
|
34071
|
+
attributes: {
|
|
34072
|
+
"w16cid:paraId": comment.commentParaId,
|
|
34073
|
+
"w16cid:durableId": newDurableId
|
|
34074
|
+
}
|
|
34075
|
+
};
|
|
34076
|
+
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
34077
|
+
const newExtensible = {
|
|
34078
|
+
type: "element",
|
|
34079
|
+
name: "w16cex:commentExtensible",
|
|
34080
|
+
attributes: {
|
|
34081
|
+
"w16cex:durableId": newDurableId,
|
|
34082
|
+
"w16cex:dateUtc": toIsoNoFractional()
|
|
34083
|
+
}
|
|
34084
|
+
};
|
|
34085
|
+
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
34086
|
+
});
|
|
34087
|
+
return {
|
|
34088
|
+
documentIdsUpdated,
|
|
34089
|
+
extensibleUpdated
|
|
34090
|
+
};
|
|
34091
|
+
};
|
|
34092
|
+
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
34093
|
+
const newXml = carbonCopy(convertedXml);
|
|
34094
|
+
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
34095
|
+
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
34096
|
+
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
34097
|
+
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
34098
|
+
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
34099
|
+
return newXml;
|
|
34100
|
+
};
|
|
34101
|
+
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
34102
|
+
const updatedXml = carbonCopy(convertedXml);
|
|
34103
|
+
delete updatedXml["word/comments.xml"];
|
|
34104
|
+
delete updatedXml["word/commentsExtended.xml"];
|
|
34105
|
+
delete updatedXml["word/commentsExtensible.xml"];
|
|
34106
|
+
delete updatedXml["word/commentsIds.xml"];
|
|
34107
|
+
return updatedXml;
|
|
34108
|
+
};
|
|
34109
|
+
const generateRelationship = (target) => {
|
|
34110
|
+
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
34111
|
+
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
34112
|
+
return { ...rel };
|
|
34113
|
+
};
|
|
34114
|
+
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
34115
|
+
const relationships = [];
|
|
34116
|
+
if (exportType === "clean") {
|
|
34117
|
+
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
34118
|
+
return { documentXml, relationships };
|
|
34119
|
+
}
|
|
34120
|
+
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
34121
|
+
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
34122
|
+
relationships.push(generateRelationship("comments.xml"));
|
|
34123
|
+
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
34124
|
+
commentsWithParaIds,
|
|
34125
|
+
updatedXml["word/commentsExtended.xml"]
|
|
34126
|
+
);
|
|
34127
|
+
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
34128
|
+
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
34129
|
+
commentsWithParaIds,
|
|
34130
|
+
updatedXml["word/commentsIds.xml"],
|
|
34131
|
+
updatedXml["word/commentsExtensible.xml"]
|
|
34132
|
+
);
|
|
34133
|
+
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
34134
|
+
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
34135
|
+
relationships.push(generateRelationship("commentsIds.xml"));
|
|
34136
|
+
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
34137
|
+
return {
|
|
34138
|
+
relationships,
|
|
34139
|
+
documentXml: updatedXml
|
|
34140
|
+
};
|
|
34141
|
+
};
|
|
33797
34142
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
33798
34143
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
33799
34144
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
@@ -33869,6 +34214,9 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33869
34214
|
this.documentInternalId = null;
|
|
33870
34215
|
this.fileSource = params2?.fileSource || null;
|
|
33871
34216
|
this.documentId = params2?.documentId || null;
|
|
34217
|
+
this.documentGuid = null;
|
|
34218
|
+
this.documentHash = null;
|
|
34219
|
+
this.documentModified = false;
|
|
33872
34220
|
if (this.docx.length || this.xml) this.parseFromXml();
|
|
33873
34221
|
}
|
|
33874
34222
|
static getFontTableEntry(docx, fontName) {
|
|
@@ -33916,50 +34264,177 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33916
34264
|
this.initialJSON = this.convertedXml["word/document.xml"];
|
|
33917
34265
|
if (!this.initialJSON) this.initialJSON = this.parseXmlToJson(this.xml);
|
|
33918
34266
|
this.declaration = this.initialJSON?.declaration;
|
|
34267
|
+
this.resolveDocumentGuid();
|
|
33919
34268
|
}
|
|
33920
34269
|
parseXmlToJson(xml) {
|
|
33921
34270
|
const newXml = xml.replace(/(<w:t xml:space="preserve">)(\s+)(<\/w:t>)/g, "$1[[sdspace]]$2[[sdspace]]$3");
|
|
33922
34271
|
return JSON.parse(xmljs.xml2json(newXml, null, 2));
|
|
33923
34272
|
}
|
|
33924
|
-
|
|
34273
|
+
/**
|
|
34274
|
+
* Generic method to get a stored custom property from docx
|
|
34275
|
+
* @static
|
|
34276
|
+
* @param {Array} docx - Array of docx file objects
|
|
34277
|
+
* @param {string} propertyName - Name of the property to retrieve
|
|
34278
|
+
* @returns {string|null} The property value or null if not found
|
|
34279
|
+
*/
|
|
34280
|
+
static getStoredCustomProperty(docx, propertyName) {
|
|
33925
34281
|
try {
|
|
33926
34282
|
const customXml = docx.find((doc2) => doc2.name === "docProps/custom.xml");
|
|
33927
|
-
if (!customXml) return;
|
|
34283
|
+
if (!customXml) return null;
|
|
33928
34284
|
const converter = new _SuperConverter2();
|
|
33929
34285
|
const content = customXml.content;
|
|
33930
34286
|
const contentJson = converter.parseXmlToJson(content);
|
|
33931
34287
|
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;
|
|
34288
|
+
if (!properties.elements) return null;
|
|
34289
|
+
const property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34290
|
+
if (!property2) return null;
|
|
34291
|
+
return property2.elements[0].elements[0].text;
|
|
33939
34292
|
} catch (e) {
|
|
33940
|
-
console.warn(
|
|
33941
|
-
return;
|
|
34293
|
+
console.warn(`Error getting custom property ${propertyName}:`, e);
|
|
34294
|
+
return null;
|
|
33942
34295
|
}
|
|
33943
34296
|
}
|
|
33944
|
-
|
|
34297
|
+
/**
|
|
34298
|
+
* Generic method to set a stored custom property in docx
|
|
34299
|
+
* @static
|
|
34300
|
+
* @param {Object} docx - The docx object to store the property in
|
|
34301
|
+
* @param {string} propertyName - Name of the property
|
|
34302
|
+
* @param {string|Function} value - Value or function that returns the value
|
|
34303
|
+
* @param {boolean} preserveExisting - If true, won't overwrite existing values
|
|
34304
|
+
* @returns {string} The stored value
|
|
34305
|
+
*/
|
|
34306
|
+
static setStoredCustomProperty(docx, propertyName, value, preserveExisting = false) {
|
|
33945
34307
|
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");
|
|
34308
|
+
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34309
|
+
const customXml = docx[customLocation];
|
|
34310
|
+
const properties = customXml.elements?.find((el) => el.name === "Properties");
|
|
34311
|
+
if (!properties) return null;
|
|
33952
34312
|
if (!properties.elements) properties.elements = [];
|
|
33953
|
-
|
|
33954
|
-
|
|
33955
|
-
|
|
33956
|
-
|
|
33957
|
-
|
|
33958
|
-
|
|
34313
|
+
let property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34314
|
+
if (property2 && preserveExisting) {
|
|
34315
|
+
return property2.elements[0].elements[0].text;
|
|
34316
|
+
}
|
|
34317
|
+
const finalValue = typeof value === "function" ? value() : value;
|
|
34318
|
+
if (!property2) {
|
|
34319
|
+
const existingPids = properties.elements.filter((el) => el.attributes?.pid).map((el) => parseInt(el.attributes.pid, 10)).filter(Number.isInteger);
|
|
34320
|
+
const pid = existingPids.length > 0 ? Math.max(...existingPids) + 1 : 2;
|
|
34321
|
+
property2 = {
|
|
34322
|
+
type: "element",
|
|
34323
|
+
name: "property",
|
|
34324
|
+
attributes: {
|
|
34325
|
+
name: propertyName,
|
|
34326
|
+
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34327
|
+
pid
|
|
34328
|
+
},
|
|
34329
|
+
elements: [
|
|
34330
|
+
{
|
|
34331
|
+
type: "element",
|
|
34332
|
+
name: "vt:lpwstr",
|
|
34333
|
+
elements: [
|
|
34334
|
+
{
|
|
34335
|
+
type: "text",
|
|
34336
|
+
text: finalValue
|
|
34337
|
+
}
|
|
34338
|
+
]
|
|
34339
|
+
}
|
|
34340
|
+
]
|
|
34341
|
+
};
|
|
34342
|
+
properties.elements.push(property2);
|
|
33959
34343
|
} else {
|
|
33960
|
-
|
|
34344
|
+
property2.elements[0].elements[0].text = finalValue;
|
|
33961
34345
|
}
|
|
33962
|
-
return
|
|
34346
|
+
return finalValue;
|
|
34347
|
+
}
|
|
34348
|
+
static getStoredSuperdocVersion(docx) {
|
|
34349
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
34350
|
+
}
|
|
34351
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.22.0") {
|
|
34352
|
+
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
34353
|
+
}
|
|
34354
|
+
/**
|
|
34355
|
+
* Get document GUID from docx files (static method)
|
|
34356
|
+
* @static
|
|
34357
|
+
* @param {Array} docx - Array of docx file objects
|
|
34358
|
+
* @returns {string|null} The document GUID
|
|
34359
|
+
*/
|
|
34360
|
+
static extractDocumentGuid(docx) {
|
|
34361
|
+
try {
|
|
34362
|
+
const settingsXml = docx.find((doc2) => doc2.name === "word/settings.xml");
|
|
34363
|
+
if (!settingsXml) return null;
|
|
34364
|
+
const converter = new _SuperConverter2();
|
|
34365
|
+
const settingsJson = converter.parseXmlToJson(settingsXml.content);
|
|
34366
|
+
const settings = settingsJson.elements?.[0];
|
|
34367
|
+
if (!settings) return null;
|
|
34368
|
+
const docIdElement = settings.elements?.find((el) => el.name === "w15:docId");
|
|
34369
|
+
if (docIdElement?.attributes?.["w15:val"]) {
|
|
34370
|
+
return docIdElement.attributes["w15:val"].replace(/[{}]/g, "");
|
|
34371
|
+
}
|
|
34372
|
+
} catch {
|
|
34373
|
+
}
|
|
34374
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "DocumentGuid");
|
|
34375
|
+
}
|
|
34376
|
+
/**
|
|
34377
|
+
* Get the permanent document GUID
|
|
34378
|
+
* @returns {string|null} The document GUID (only for modified documents)
|
|
34379
|
+
*/
|
|
34380
|
+
getDocumentGuid() {
|
|
34381
|
+
return this.documentGuid;
|
|
34382
|
+
}
|
|
34383
|
+
/**
|
|
34384
|
+
* Get the SuperDoc version for this converter instance
|
|
34385
|
+
* @returns {string|null} The SuperDoc version or null if not available
|
|
34386
|
+
*/
|
|
34387
|
+
getSuperdocVersion() {
|
|
34388
|
+
if (this.docx) {
|
|
34389
|
+
return _SuperConverter2.getStoredSuperdocVersion(this.docx);
|
|
34390
|
+
}
|
|
34391
|
+
return null;
|
|
34392
|
+
}
|
|
34393
|
+
/**
|
|
34394
|
+
* Resolve existing document GUID (synchronous)
|
|
34395
|
+
*/
|
|
34396
|
+
resolveDocumentGuid() {
|
|
34397
|
+
const microsoftGuid = this.getMicrosoftDocId();
|
|
34398
|
+
if (microsoftGuid) {
|
|
34399
|
+
this.documentGuid = microsoftGuid;
|
|
34400
|
+
return;
|
|
34401
|
+
}
|
|
34402
|
+
const customGuid = _SuperConverter2.getStoredCustomProperty(this.docx, "DocumentGuid");
|
|
34403
|
+
if (customGuid) {
|
|
34404
|
+
this.documentGuid = customGuid;
|
|
34405
|
+
}
|
|
34406
|
+
}
|
|
34407
|
+
/**
|
|
34408
|
+
* Get Microsoft's docId from settings.xml (READ ONLY)
|
|
34409
|
+
*/
|
|
34410
|
+
getMicrosoftDocId() {
|
|
34411
|
+
this.getDocumentInternalId();
|
|
34412
|
+
if (this.documentInternalId) {
|
|
34413
|
+
return this.documentInternalId.replace(/[{}]/g, "");
|
|
34414
|
+
}
|
|
34415
|
+
return null;
|
|
34416
|
+
}
|
|
34417
|
+
/**
|
|
34418
|
+
* Get document identifier (GUID or hash) - async for lazy hash generation
|
|
34419
|
+
*/
|
|
34420
|
+
async getDocumentIdentifier() {
|
|
34421
|
+
if (this.documentGuid) {
|
|
34422
|
+
return this.documentGuid;
|
|
34423
|
+
}
|
|
34424
|
+
if (!this.documentHash && this.fileSource) {
|
|
34425
|
+
this.documentHash = await __privateMethod$2(this, _SuperConverter_instances, generateDocumentHash_fn).call(this);
|
|
34426
|
+
}
|
|
34427
|
+
return this.documentHash;
|
|
34428
|
+
}
|
|
34429
|
+
/**
|
|
34430
|
+
* Promote from hash to GUID on first edit
|
|
34431
|
+
*/
|
|
34432
|
+
promoteToGuid() {
|
|
34433
|
+
if (this.documentGuid) return this.documentGuid;
|
|
34434
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34435
|
+
this.documentModified = true;
|
|
34436
|
+
this.documentHash = null;
|
|
34437
|
+
return this.documentGuid;
|
|
33963
34438
|
}
|
|
33964
34439
|
getDocumentDefaultStyles() {
|
|
33965
34440
|
const styles = this.convertedXml["word/styles.xml"];
|
|
@@ -34048,20 +34523,14 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34048
34523
|
getDocumentInternalId() {
|
|
34049
34524
|
const settingsLocation = "word/settings.xml";
|
|
34050
34525
|
if (!this.convertedXml[settingsLocation]) {
|
|
34051
|
-
|
|
34526
|
+
return;
|
|
34052
34527
|
}
|
|
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;
|
|
34528
|
+
const settings = this.convertedXml[settingsLocation];
|
|
34529
|
+
if (!settings.elements?.[0]?.elements?.length) {
|
|
34061
34530
|
return;
|
|
34062
34531
|
}
|
|
34063
34532
|
const w15DocId = settings.elements[0].elements.find((el) => el.name === "w15:docId");
|
|
34064
|
-
this.documentInternalId = w15DocId?.attributes["w15:val"];
|
|
34533
|
+
this.documentInternalId = w15DocId?.attributes?.["w15:val"];
|
|
34065
34534
|
}
|
|
34066
34535
|
createDocumentIdElement() {
|
|
34067
34536
|
const docId = v4().toUpperCase();
|
|
@@ -34150,7 +34619,13 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34150
34619
|
this.convertedXml = { ...this.convertedXml, ...updatedXml };
|
|
34151
34620
|
const headFootRels = __privateMethod$2(this, _SuperConverter_instances, exportProcessHeadersFooters_fn).call(this, { isFinalDoc });
|
|
34152
34621
|
__privateMethod$2(this, _SuperConverter_instances, exportProcessNewRelationships_fn).call(this, [...params2.relationships, ...commentsRels, ...headFootRels]);
|
|
34153
|
-
|
|
34622
|
+
_SuperConverter2.setStoredSuperdocVersion(this.convertedXml);
|
|
34623
|
+
if (this.documentModified || this.documentGuid) {
|
|
34624
|
+
if (!this.documentGuid) {
|
|
34625
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34626
|
+
}
|
|
34627
|
+
_SuperConverter2.setStoredCustomProperty(this.convertedXml, "DocumentGuid", this.documentGuid, true);
|
|
34628
|
+
}
|
|
34154
34629
|
__privateMethod$2(this, _SuperConverter_instances, exportNumberingFile_fn).call(this, params2);
|
|
34155
34630
|
return xml;
|
|
34156
34631
|
}
|
|
@@ -34185,8 +34660,38 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34185
34660
|
});
|
|
34186
34661
|
return { result, params: params2 };
|
|
34187
34662
|
}
|
|
34663
|
+
// Deprecated methods for backward compatibility
|
|
34664
|
+
static getStoredSuperdocId(docx) {
|
|
34665
|
+
console.warn("getStoredSuperdocId is deprecated, use getDocumentGuid instead");
|
|
34666
|
+
return _SuperConverter2.extractDocumentGuid(docx);
|
|
34667
|
+
}
|
|
34668
|
+
static updateDocumentVersion(docx, version2) {
|
|
34669
|
+
console.warn("updateDocumentVersion is deprecated, use setStoredSuperdocVersion instead");
|
|
34670
|
+
return _SuperConverter2.setStoredSuperdocVersion(docx, version2);
|
|
34671
|
+
}
|
|
34188
34672
|
};
|
|
34189
34673
|
_SuperConverter_instances = /* @__PURE__ */ new WeakSet();
|
|
34674
|
+
generateDocumentHash_fn = async function() {
|
|
34675
|
+
if (!this.fileSource) return `HASH-${Date.now()}`;
|
|
34676
|
+
try {
|
|
34677
|
+
let buffer2;
|
|
34678
|
+
if (Buffer2.isBuffer(this.fileSource)) {
|
|
34679
|
+
buffer2 = this.fileSource;
|
|
34680
|
+
} else if (this.fileSource instanceof ArrayBuffer) {
|
|
34681
|
+
buffer2 = Buffer2.from(this.fileSource);
|
|
34682
|
+
} else if (this.fileSource instanceof Blob || this.fileSource instanceof File) {
|
|
34683
|
+
const arrayBuffer = await this.fileSource.arrayBuffer();
|
|
34684
|
+
buffer2 = Buffer2.from(arrayBuffer);
|
|
34685
|
+
} else {
|
|
34686
|
+
return `HASH-${Date.now()}`;
|
|
34687
|
+
}
|
|
34688
|
+
const hash2 = index$2(buffer2);
|
|
34689
|
+
return `HASH-${hash2.toString("hex").toUpperCase()}`;
|
|
34690
|
+
} catch (e) {
|
|
34691
|
+
console.warn("Could not generate document hash:", e);
|
|
34692
|
+
return `HASH-${Date.now()}`;
|
|
34693
|
+
}
|
|
34694
|
+
};
|
|
34190
34695
|
exportNumberingFile_fn = function() {
|
|
34191
34696
|
const numberingPath = "word/numbering.xml";
|
|
34192
34697
|
let numberingXml = this.convertedXml[numberingPath];
|
|
@@ -34407,52 +34912,9 @@ __publicField$2(_SuperConverter, "propertyTypes", Object.freeze({
|
|
|
34407
34912
|
}));
|
|
34408
34913
|
__publicField$2(_SuperConverter, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
34409
34914
|
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
34915
|
function generateCustomXml() {
|
|
34431
34916
|
return DEFAULT_CUSTOM_XML;
|
|
34432
34917
|
}
|
|
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
34918
|
function commonjsRequire(path) {
|
|
34457
34919
|
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
34920
|
}
|
|
@@ -36768,7 +37230,7 @@ function requireJszip_min() {
|
|
|
36768
37230
|
return jszip_min.exports;
|
|
36769
37231
|
}
|
|
36770
37232
|
var jszip_minExports = requireJszip_min();
|
|
36771
|
-
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
37233
|
+
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$2(jszip_minExports);
|
|
36772
37234
|
const isXmlLike = (name) => /\.xml$|\.rels$/i.test(name);
|
|
36773
37235
|
function sniffEncoding(u8) {
|
|
36774
37236
|
if (u8.length >= 2) {
|
|
@@ -42092,8 +42554,7 @@ function readDOMChange(view, from2, to, typeOver, addedNodes) {
|
|
|
42092
42554
|
let $to = parse.doc.resolveNoCache(change.endB - parse.from);
|
|
42093
42555
|
let $fromA = doc2.resolve(change.start);
|
|
42094
42556
|
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")))) {
|
|
42557
|
+
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
42558
|
view.input.lastIOSEnter = 0;
|
|
42098
42559
|
return;
|
|
42099
42560
|
}
|
|
@@ -46724,15 +47185,39 @@ const toggleList = (listType) => ({ editor, state: state2, tr, dispatch }) => {
|
|
|
46724
47185
|
if (near) {
|
|
46725
47186
|
const isSameAsTarget = nearKind === targetKind;
|
|
46726
47187
|
if (isSameAsTarget) {
|
|
46727
|
-
const {
|
|
46728
|
-
|
|
46729
|
-
|
|
46730
|
-
|
|
46731
|
-
|
|
46732
|
-
|
|
46733
|
-
|
|
46734
|
-
|
|
46735
|
-
|
|
47188
|
+
const candidateLists = collectIntersectingTopLists({ doc: doc2, selection, OrderedType, BulletType });
|
|
47189
|
+
let listsToUnwrap = candidateLists.filter(({ node }) => getEffectiveListKind(node) === targetKind);
|
|
47190
|
+
if (listsToUnwrap.length === 0 && getEffectiveListKind(near.node) === targetKind) {
|
|
47191
|
+
listsToUnwrap = [{ node: near.node, pos: near.pos, depth: near.depth ?? null }];
|
|
47192
|
+
}
|
|
47193
|
+
if (listsToUnwrap.length === 0) return false;
|
|
47194
|
+
let spanFromBefore2 = listsToUnwrap[0].pos;
|
|
47195
|
+
let spanToBefore2 = listsToUnwrap[0].pos + listsToUnwrap[0].node.nodeSize;
|
|
47196
|
+
for (let i = 1; i < listsToUnwrap.length; i++) {
|
|
47197
|
+
const { node, pos: pos2 } = listsToUnwrap[i];
|
|
47198
|
+
spanFromBefore2 = Math.min(spanFromBefore2, pos2);
|
|
47199
|
+
spanToBefore2 = Math.max(spanToBefore2, pos2 + node.nodeSize);
|
|
47200
|
+
}
|
|
47201
|
+
const ParagraphType = editor.schema.nodes.paragraph;
|
|
47202
|
+
listsToUnwrap.sort((a, b2) => b2.pos - a.pos);
|
|
47203
|
+
for (const { node, pos: pos2 } of listsToUnwrap) {
|
|
47204
|
+
const mappedFrom = tr.mapping.map(pos2, -1);
|
|
47205
|
+
const mappedTo = tr.mapping.map(pos2 + node.nodeSize, 1);
|
|
47206
|
+
const currentListNode = tr.doc.nodeAt(mappedFrom);
|
|
47207
|
+
const sourceListNode = currentListNode && (currentListNode.type === OrderedType || currentListNode.type === BulletType) ? currentListNode : node;
|
|
47208
|
+
const paragraphs = [];
|
|
47209
|
+
for (let i = 0; i < sourceListNode.childCount; i++) {
|
|
47210
|
+
const li = sourceListNode.child(i);
|
|
47211
|
+
if (li.type !== editor.schema.nodes.listItem) continue;
|
|
47212
|
+
const firstChild = li.firstChild;
|
|
47213
|
+
paragraphs.push(firstChild || ParagraphType.create());
|
|
47214
|
+
}
|
|
47215
|
+
if (paragraphs.length === 0) {
|
|
47216
|
+
paragraphs.push(ParagraphType.create());
|
|
47217
|
+
}
|
|
47218
|
+
const replacement = paragraphs.length === 1 ? paragraphs[0] : Fragment.from(paragraphs);
|
|
47219
|
+
tr.replaceWith(mappedFrom, mappedTo, replacement);
|
|
47220
|
+
}
|
|
46736
47221
|
setMappedSelectionSpan(tr, spanFromBefore2, spanToBefore2);
|
|
46737
47222
|
if (dispatch) dispatch(tr);
|
|
46738
47223
|
return true;
|
|
@@ -48747,26 +49232,100 @@ const onHeaderFooterDataUpdate = async ({ editor, transaction }, mainEditor, sec
|
|
|
48747
49232
|
const setEditorToolbar = ({ editor }, mainEditor) => {
|
|
48748
49233
|
editor.setToolbar(mainEditor.toolbar);
|
|
48749
49234
|
};
|
|
49235
|
+
const normalizeCommentEventPayload = ({ conversation, editorOptions, fallbackCommentId, fallbackInternal }) => {
|
|
49236
|
+
const { user, documentId } = editorOptions || {};
|
|
49237
|
+
const normalized = {
|
|
49238
|
+
...conversation,
|
|
49239
|
+
commentId: conversation?.commentId ?? fallbackCommentId,
|
|
49240
|
+
isInternal: conversation?.isInternal ?? fallbackInternal
|
|
49241
|
+
};
|
|
49242
|
+
if (!normalized.commentText && normalized.text) {
|
|
49243
|
+
normalized.commentText = normalized.text;
|
|
49244
|
+
delete normalized.text;
|
|
49245
|
+
}
|
|
49246
|
+
if ("skipEmit" in normalized) delete normalized.skipEmit;
|
|
49247
|
+
if (!normalized.creatorName && user?.name) {
|
|
49248
|
+
normalized.creatorName = user.name;
|
|
49249
|
+
}
|
|
49250
|
+
if (!normalized.creatorEmail && user?.email) {
|
|
49251
|
+
normalized.creatorEmail = user.email;
|
|
49252
|
+
}
|
|
49253
|
+
if (!normalized.createdTime) {
|
|
49254
|
+
normalized.createdTime = Date.now();
|
|
49255
|
+
}
|
|
49256
|
+
if (!normalized.fileId && documentId) {
|
|
49257
|
+
normalized.fileId = documentId;
|
|
49258
|
+
}
|
|
49259
|
+
if (!normalized.documentId && documentId) {
|
|
49260
|
+
normalized.documentId = documentId;
|
|
49261
|
+
}
|
|
49262
|
+
return normalized;
|
|
49263
|
+
};
|
|
49264
|
+
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
49265
|
+
let bounds = {};
|
|
49266
|
+
if (currentBounds instanceof DOMRect) {
|
|
49267
|
+
bounds = {
|
|
49268
|
+
top: currentBounds.top,
|
|
49269
|
+
bottom: currentBounds.bottom,
|
|
49270
|
+
left: currentBounds.left,
|
|
49271
|
+
right: currentBounds.right
|
|
49272
|
+
};
|
|
49273
|
+
} else {
|
|
49274
|
+
bounds = { ...currentBounds };
|
|
49275
|
+
}
|
|
49276
|
+
if (!allCommentPositions[threadId]) {
|
|
49277
|
+
allCommentPositions[threadId] = {
|
|
49278
|
+
threadId,
|
|
49279
|
+
start: pos,
|
|
49280
|
+
end: pos + node.nodeSize,
|
|
49281
|
+
bounds
|
|
49282
|
+
};
|
|
49283
|
+
} else {
|
|
49284
|
+
const existing = allCommentPositions[threadId];
|
|
49285
|
+
existing.start = Math.min(existing.start, pos);
|
|
49286
|
+
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
49287
|
+
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
49288
|
+
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
49289
|
+
}
|
|
49290
|
+
};
|
|
48750
49291
|
const TRACK_CHANGE_MARKS = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
|
|
48751
49292
|
const CommentsPluginKey = new PluginKey("comments");
|
|
48752
49293
|
const CommentsPlugin = Extension.create({
|
|
48753
49294
|
name: "comments",
|
|
48754
49295
|
addCommands() {
|
|
48755
49296
|
return {
|
|
48756
|
-
insertComment: (conversation) => ({ tr, dispatch }) => {
|
|
49297
|
+
insertComment: (conversation = {}) => ({ tr, dispatch }) => {
|
|
48757
49298
|
const { selection } = tr;
|
|
48758
49299
|
const { $from, $to } = selection;
|
|
48759
|
-
const
|
|
49300
|
+
const skipEmit = conversation?.skipEmit;
|
|
49301
|
+
const resolvedCommentId = conversation?.commentId ?? v4();
|
|
49302
|
+
const resolvedInternal = conversation?.isInternal ?? false;
|
|
48760
49303
|
tr.setMeta(CommentsPluginKey, { event: "add" });
|
|
48761
49304
|
tr.addMark(
|
|
48762
49305
|
$from.pos,
|
|
48763
49306
|
$to.pos,
|
|
48764
49307
|
this.editor.schema.marks[CommentMarkName].create({
|
|
48765
|
-
commentId,
|
|
48766
|
-
internal:
|
|
49308
|
+
commentId: resolvedCommentId,
|
|
49309
|
+
internal: resolvedInternal
|
|
48767
49310
|
})
|
|
48768
49311
|
);
|
|
48769
|
-
dispatch(tr);
|
|
49312
|
+
if (dispatch) dispatch(tr);
|
|
49313
|
+
const shouldEmit = !skipEmit && resolvedCommentId !== "pending";
|
|
49314
|
+
if (shouldEmit) {
|
|
49315
|
+
const commentPayload = normalizeCommentEventPayload({
|
|
49316
|
+
conversation,
|
|
49317
|
+
editorOptions: this.editor.options,
|
|
49318
|
+
fallbackCommentId: resolvedCommentId,
|
|
49319
|
+
fallbackInternal: resolvedInternal
|
|
49320
|
+
});
|
|
49321
|
+
const activeCommentId = commentPayload.commentId || commentPayload.importedId || null;
|
|
49322
|
+
const event = {
|
|
49323
|
+
type: comments_module_events.ADD,
|
|
49324
|
+
comment: commentPayload,
|
|
49325
|
+
...activeCommentId && { activeCommentId }
|
|
49326
|
+
};
|
|
49327
|
+
this.editor.emit("commentsUpdate", event);
|
|
49328
|
+
}
|
|
48770
49329
|
return true;
|
|
48771
49330
|
},
|
|
48772
49331
|
removeComment: ({ commentId, importedId }) => ({ tr, dispatch, state: state2 }) => {
|
|
@@ -49002,33 +49561,6 @@ const CommentsPlugin = Extension.create({
|
|
|
49002
49561
|
return [commentsPlugin];
|
|
49003
49562
|
}
|
|
49004
49563
|
});
|
|
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
49564
|
const getActiveCommentId = (doc2, selection) => {
|
|
49033
49565
|
if (!selection) return;
|
|
49034
49566
|
const { $from, $to } = selection;
|
|
@@ -51482,19 +52014,34 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51482
52014
|
* @returns {string} Document version
|
|
51483
52015
|
*/
|
|
51484
52016
|
static getDocumentVersion(doc2) {
|
|
51485
|
-
|
|
51486
|
-
return version2;
|
|
52017
|
+
return SuperConverter.getStoredSuperdocVersion(doc2);
|
|
51487
52018
|
}
|
|
51488
52019
|
/**
|
|
51489
|
-
*
|
|
52020
|
+
* Set the document version
|
|
51490
52021
|
* @static
|
|
51491
52022
|
* @param {Object} doc - Document object
|
|
51492
52023
|
* @param {string} version - New version
|
|
51493
|
-
* @returns {
|
|
52024
|
+
* @returns {string} The set version
|
|
52025
|
+
*/
|
|
52026
|
+
static setDocumentVersion(doc2, version2) {
|
|
52027
|
+
return SuperConverter.setStoredSuperdocVersion(doc2, version2);
|
|
52028
|
+
}
|
|
52029
|
+
/**
|
|
52030
|
+
* Get the document GUID
|
|
52031
|
+
* @static
|
|
52032
|
+
* @param {Object} doc - Document object
|
|
52033
|
+
* @returns {string|null} Document GUID
|
|
52034
|
+
*/
|
|
52035
|
+
static getDocumentGuid(doc2) {
|
|
52036
|
+
return SuperConverter.extractDocumentGuid(doc2);
|
|
52037
|
+
}
|
|
52038
|
+
// Deprecated
|
|
52039
|
+
/**
|
|
52040
|
+
* @deprecated use setDocumentVersion instead
|
|
51494
52041
|
*/
|
|
51495
52042
|
static updateDocumentVersion(doc2, version2) {
|
|
51496
|
-
|
|
51497
|
-
return
|
|
52043
|
+
console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
|
|
52044
|
+
return _Editor2.setDocumentVersion(doc2, version2);
|
|
51498
52045
|
}
|
|
51499
52046
|
/**
|
|
51500
52047
|
* Creates all node views.
|
|
@@ -51630,6 +52177,43 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51630
52177
|
}
|
|
51631
52178
|
window.addEventListener("resize", () => handleResize);
|
|
51632
52179
|
}
|
|
52180
|
+
/**
|
|
52181
|
+
* Get document identifier for telemetry (async - may generate hash)
|
|
52182
|
+
* @returns {Promise<string>} GUID for modified docs, hash for unmodified
|
|
52183
|
+
*/
|
|
52184
|
+
async getDocumentIdentifier() {
|
|
52185
|
+
return await this.converter?.getDocumentIdentifier() || null;
|
|
52186
|
+
}
|
|
52187
|
+
/**
|
|
52188
|
+
* Get permanent document GUID (sync - only for modified documents)
|
|
52189
|
+
* @returns {string|null} GUID or null if document hasn't been modified
|
|
52190
|
+
*/
|
|
52191
|
+
getDocumentGuid() {
|
|
52192
|
+
return this.converter?.documentGuid || null;
|
|
52193
|
+
}
|
|
52194
|
+
/**
|
|
52195
|
+
* Check if document has been modified
|
|
52196
|
+
* @returns {boolean}
|
|
52197
|
+
*/
|
|
52198
|
+
isDocumentModified() {
|
|
52199
|
+
return this.converter?.documentModified || false;
|
|
52200
|
+
}
|
|
52201
|
+
/**
|
|
52202
|
+
* Get telemetry data (async because of lazy hash generation)
|
|
52203
|
+
*/
|
|
52204
|
+
async getTelemetryData() {
|
|
52205
|
+
return {
|
|
52206
|
+
documentId: await this.getDocumentIdentifier(),
|
|
52207
|
+
isModified: this.isDocumentModified(),
|
|
52208
|
+
isPermanentId: !!this.converter?.documentGuid,
|
|
52209
|
+
version: this.converter?.getSuperdocVersion()
|
|
52210
|
+
};
|
|
52211
|
+
}
|
|
52212
|
+
// Deprecated for backward compatibility
|
|
52213
|
+
getDocumentId() {
|
|
52214
|
+
console.warn("getDocumentId is deprecated, use getDocumentGuid instead");
|
|
52215
|
+
return this.getDocumentGuid();
|
|
52216
|
+
}
|
|
51633
52217
|
/**
|
|
51634
52218
|
* Get attrs of the currently selected node or mark.
|
|
51635
52219
|
* @param {String} nameOrType
|
|
@@ -51661,6 +52245,21 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51661
52245
|
getJSON() {
|
|
51662
52246
|
return this.state.doc.toJSON();
|
|
51663
52247
|
}
|
|
52248
|
+
/**
|
|
52249
|
+
* Get document metadata including GUID, modification status, and version
|
|
52250
|
+
* @returns {{
|
|
52251
|
+
* documentGuid: string | null,
|
|
52252
|
+
* isModified: boolean,
|
|
52253
|
+
* version: string | null
|
|
52254
|
+
* }} Document metadata
|
|
52255
|
+
*/
|
|
52256
|
+
getMetadata() {
|
|
52257
|
+
return {
|
|
52258
|
+
documentGuid: this.converter?.documentGuid || null,
|
|
52259
|
+
isModified: this.isDocumentModified(),
|
|
52260
|
+
version: this.converter?.getSuperdocVersion() || null
|
|
52261
|
+
};
|
|
52262
|
+
}
|
|
51664
52263
|
/**
|
|
51665
52264
|
* Get the editor content as HTML
|
|
51666
52265
|
* @param {Object} options - Options for the HTML serializer
|
|
@@ -51678,6 +52277,13 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51678
52277
|
}
|
|
51679
52278
|
return html;
|
|
51680
52279
|
}
|
|
52280
|
+
/**
|
|
52281
|
+
* Get the document version from the converter
|
|
52282
|
+
* @returns {string|null} The SuperDoc version stored in the document
|
|
52283
|
+
*/
|
|
52284
|
+
getDocumentVersion() {
|
|
52285
|
+
return this.converter?.getSuperdocVersion() || null;
|
|
52286
|
+
}
|
|
51681
52287
|
/**
|
|
51682
52288
|
* Create a child editor linked to this editor.
|
|
51683
52289
|
* This is useful for creating header/footer editors that are linked to the main editor.
|
|
@@ -51760,7 +52366,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51760
52366
|
if (exportXmlOnly || exportJsonOnly) return documentXml;
|
|
51761
52367
|
const customXml = this.converter.schemaToXml(this.converter.convertedXml["docProps/custom.xml"].elements[0]);
|
|
51762
52368
|
const styles = this.converter.schemaToXml(this.converter.convertedXml["word/styles.xml"].elements[0]);
|
|
51763
|
-
const
|
|
52369
|
+
const hasCustomSettings = !!this.converter.convertedXml["word/settings.xml"]?.elements?.length;
|
|
52370
|
+
const customSettings = hasCustomSettings ? this.converter.schemaToXml(this.converter.convertedXml["word/settings.xml"]?.elements?.[0]) : null;
|
|
51764
52371
|
const rels = this.converter.schemaToXml(this.converter.convertedXml["word/_rels/document.xml.rels"].elements[0]);
|
|
51765
52372
|
const media = this.converter.addedMedia;
|
|
51766
52373
|
const updatedHeadersFooters = {};
|
|
@@ -51776,13 +52383,15 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51776
52383
|
...this.options.customUpdatedFiles,
|
|
51777
52384
|
"word/document.xml": String(documentXml),
|
|
51778
52385
|
"docProps/custom.xml": String(customXml),
|
|
51779
|
-
"word/settings.xml": String(customSettings),
|
|
51780
52386
|
"word/_rels/document.xml.rels": String(rels),
|
|
51781
52387
|
"word/numbering.xml": String(numbering),
|
|
51782
52388
|
// Replace & with & in styles.xml as DOCX viewers can't handle it
|
|
51783
52389
|
"word/styles.xml": String(styles).replace(/&/gi, "&"),
|
|
51784
52390
|
...updatedHeadersFooters
|
|
51785
52391
|
};
|
|
52392
|
+
if (hasCustomSettings) {
|
|
52393
|
+
updatedDocs["word/settings.xml"] = String(customSettings);
|
|
52394
|
+
}
|
|
51786
52395
|
if (comments.length) {
|
|
51787
52396
|
const commentsXml = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]);
|
|
51788
52397
|
const commentsExtendedXml = this.converter.schemaToXml(
|
|
@@ -52402,6 +53011,13 @@ dispatchTransaction_fn = function(transaction) {
|
|
|
52402
53011
|
if (!transaction.docChanged) {
|
|
52403
53012
|
return;
|
|
52404
53013
|
}
|
|
53014
|
+
if (transaction.docChanged && this.converter) {
|
|
53015
|
+
if (!this.converter.documentGuid) {
|
|
53016
|
+
this.converter.promoteToGuid();
|
|
53017
|
+
console.debug("Document modified - assigned GUID:", this.converter.documentGuid);
|
|
53018
|
+
}
|
|
53019
|
+
this.converter.documentModified = true;
|
|
53020
|
+
}
|
|
52405
53021
|
this.emit("update", {
|
|
52406
53022
|
editor: this,
|
|
52407
53023
|
transaction
|
|
@@ -54344,10 +54960,11 @@ const StructuredContentCommands = Extension.create({
|
|
|
54344
54960
|
return true;
|
|
54345
54961
|
},
|
|
54346
54962
|
/**
|
|
54347
|
-
* Updates a structured content
|
|
54963
|
+
* Updates a single structured content field by its unique ID.
|
|
54964
|
+
* IDs are unique identifiers, so this will update at most one field.
|
|
54348
54965
|
* If the updated node does not match the schema, it will not be updated.
|
|
54349
54966
|
* @category Command
|
|
54350
|
-
* @param {string} id
|
|
54967
|
+
* @param {string} id - Unique identifier of the field
|
|
54351
54968
|
* @param {StructuredContentUpdate} options
|
|
54352
54969
|
*/
|
|
54353
54970
|
updateStructuredContentById: (id, options = {}) => ({ editor, dispatch, state: state2, tr }) => {
|
|
@@ -62528,6 +63145,7 @@ function getFormatAttrsFromMarks(marks) {
|
|
|
62528
63145
|
}
|
|
62529
63146
|
return formatAttrs;
|
|
62530
63147
|
}
|
|
63148
|
+
const DEFAULT_MIME_TYPE = "application/octet-stream";
|
|
62531
63149
|
const simpleHash = (str) => {
|
|
62532
63150
|
let hash2 = 0;
|
|
62533
63151
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -62537,21 +63155,40 @@ const simpleHash = (str) => {
|
|
|
62537
63155
|
}
|
|
62538
63156
|
return Math.abs(hash2).toString();
|
|
62539
63157
|
};
|
|
62540
|
-
const
|
|
62541
|
-
|
|
62542
|
-
|
|
62543
|
-
|
|
62544
|
-
|
|
62545
|
-
|
|
63158
|
+
const decodeBase64ToBinaryString = (data) => {
|
|
63159
|
+
if (!data) return "";
|
|
63160
|
+
if (typeof atob === "function") {
|
|
63161
|
+
return atob(data);
|
|
63162
|
+
}
|
|
63163
|
+
if (typeof Buffer2 !== "undefined" && typeof Buffer2.from === "function") {
|
|
63164
|
+
return Buffer2.from(data, "base64").toString("binary");
|
|
63165
|
+
}
|
|
63166
|
+
throw new Error("Unable to decode base64 payload in the current environment.");
|
|
63167
|
+
};
|
|
63168
|
+
const extractBase64Meta = (base64String) => {
|
|
63169
|
+
const [meta = "", payload = ""] = base64String.split(",");
|
|
63170
|
+
const mimeMatch = meta.match(/:(.*?);/);
|
|
63171
|
+
const rawMimeType = mimeMatch ? mimeMatch[1] : "";
|
|
63172
|
+
const mimeType = rawMimeType || DEFAULT_MIME_TYPE;
|
|
63173
|
+
const binaryString = decodeBase64ToBinaryString(payload);
|
|
62546
63174
|
const hash2 = simpleHash(binaryString);
|
|
62547
63175
|
const extension = mimeType.split("/")[1] || "bin";
|
|
62548
63176
|
const filename = `image-${hash2}.${extension}`;
|
|
63177
|
+
return { mimeType, binaryString, filename };
|
|
63178
|
+
};
|
|
63179
|
+
const getBase64FileMeta = (base64String) => {
|
|
63180
|
+
const { mimeType, filename } = extractBase64Meta(base64String);
|
|
63181
|
+
return { mimeType, filename };
|
|
63182
|
+
};
|
|
63183
|
+
const base64ToFile = (base64String) => {
|
|
63184
|
+
const { mimeType, binaryString, filename } = extractBase64Meta(base64String);
|
|
63185
|
+
const fileType = mimeType || DEFAULT_MIME_TYPE;
|
|
62549
63186
|
const bytes = new Uint8Array(binaryString.length);
|
|
62550
63187
|
for (let i = 0; i < binaryString.length; i++) {
|
|
62551
63188
|
bytes[i] = binaryString.charCodeAt(i);
|
|
62552
63189
|
}
|
|
62553
|
-
const blob = new Blob([bytes], { type:
|
|
62554
|
-
return new File([blob], filename, { type:
|
|
63190
|
+
const blob = new Blob([bytes], { type: fileType });
|
|
63191
|
+
return new File([blob], filename, { type: fileType });
|
|
62555
63192
|
};
|
|
62556
63193
|
const urlToFile = async (url, filename, mimeType) => {
|
|
62557
63194
|
try {
|
|
@@ -62927,6 +63564,7 @@ function addImageRelationship({ editor, path }) {
|
|
|
62927
63564
|
}
|
|
62928
63565
|
}
|
|
62929
63566
|
const key = new PluginKey("ImageRegistration");
|
|
63567
|
+
const WORD_MEDIA_PREFIX = "word/";
|
|
62930
63568
|
const ImageRegistrationPlugin = ({ editor }) => {
|
|
62931
63569
|
const { view } = editor;
|
|
62932
63570
|
return new Plugin({
|
|
@@ -62947,16 +63585,16 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62947
63585
|
},
|
|
62948
63586
|
appendTransaction: (trs, _oldState, state2) => {
|
|
62949
63587
|
let foundImages = [];
|
|
62950
|
-
trs.forEach((
|
|
62951
|
-
if (
|
|
62952
|
-
|
|
63588
|
+
trs.forEach((tr) => {
|
|
63589
|
+
if (tr.docChanged) {
|
|
63590
|
+
tr.steps.forEach((step, index2) => {
|
|
62953
63591
|
const stepMap = step.getMap();
|
|
62954
63592
|
foundImages = foundImages.map(({ node, pos, id }) => {
|
|
62955
63593
|
const mappedPos = stepMap.map(pos, -1);
|
|
62956
63594
|
return { node, pos: mappedPos, id };
|
|
62957
63595
|
});
|
|
62958
63596
|
if (step instanceof ReplaceStep || step instanceof ReplaceAroundStep$1) {
|
|
62959
|
-
(
|
|
63597
|
+
(tr.docs[index2 + 1] || tr.doc).nodesBetween(
|
|
62960
63598
|
stepMap.map(step.from, -1),
|
|
62961
63599
|
stepMap.map(step.to, 1),
|
|
62962
63600
|
(node, pos) => {
|
|
@@ -62975,22 +63613,10 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62975
63613
|
if (!foundImages || foundImages.length === 0) {
|
|
62976
63614
|
return null;
|
|
62977
63615
|
}
|
|
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;
|
|
63616
|
+
if (editor.options.isHeadless) {
|
|
63617
|
+
return handleNodePath(foundImages, editor, state2);
|
|
63618
|
+
}
|
|
63619
|
+
return handleBrowserPath(foundImages, editor, view, state2);
|
|
62994
63620
|
},
|
|
62995
63621
|
props: {
|
|
62996
63622
|
decorations(state2) {
|
|
@@ -63000,6 +63626,59 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
63000
63626
|
}
|
|
63001
63627
|
});
|
|
63002
63628
|
};
|
|
63629
|
+
const derivePreferredFileName = (src) => {
|
|
63630
|
+
if (typeof src !== "string" || src.length === 0) {
|
|
63631
|
+
return "image.bin";
|
|
63632
|
+
}
|
|
63633
|
+
if (src.startsWith("data:")) {
|
|
63634
|
+
return getBase64FileMeta(src).filename;
|
|
63635
|
+
}
|
|
63636
|
+
const lastSegment = src.split("/").pop() ?? "";
|
|
63637
|
+
const trimmed = lastSegment.split(/[?#]/)[0];
|
|
63638
|
+
return trimmed || "image.bin";
|
|
63639
|
+
};
|
|
63640
|
+
const handleNodePath = (foundImages, editor, state2) => {
|
|
63641
|
+
const { tr } = state2;
|
|
63642
|
+
const mediaStore = editor.storage.image.media ?? {};
|
|
63643
|
+
if (!editor.storage.image.media) {
|
|
63644
|
+
editor.storage.image.media = mediaStore;
|
|
63645
|
+
}
|
|
63646
|
+
const existingFileNames = new Set(Object.keys(mediaStore).map((key2) => key2.split("/").pop()));
|
|
63647
|
+
foundImages.forEach(({ node, pos }) => {
|
|
63648
|
+
const { src } = node.attrs;
|
|
63649
|
+
const preferredFileName = derivePreferredFileName(src);
|
|
63650
|
+
const uniqueFileName = ensureUniqueFileName(preferredFileName, existingFileNames);
|
|
63651
|
+
existingFileNames.add(uniqueFileName);
|
|
63652
|
+
const mediaPath = buildMediaPath(uniqueFileName);
|
|
63653
|
+
mediaStore[mediaPath] = src;
|
|
63654
|
+
const path = mediaPath.startsWith(WORD_MEDIA_PREFIX) ? mediaPath.slice(WORD_MEDIA_PREFIX.length) : mediaPath;
|
|
63655
|
+
const rId = addImageRelationship({ editor, path });
|
|
63656
|
+
tr.setNodeMarkup(pos, void 0, {
|
|
63657
|
+
...node.attrs,
|
|
63658
|
+
src: mediaPath,
|
|
63659
|
+
rId
|
|
63660
|
+
});
|
|
63661
|
+
});
|
|
63662
|
+
return tr;
|
|
63663
|
+
};
|
|
63664
|
+
const handleBrowserPath = (foundImages, editor, view, state2) => {
|
|
63665
|
+
registerImages(foundImages, editor, view);
|
|
63666
|
+
const tr = state2.tr;
|
|
63667
|
+
let { set } = key.getState(state2);
|
|
63668
|
+
foundImages.slice().sort((a, b2) => a.pos - b2.pos).forEach(({ pos, id }) => {
|
|
63669
|
+
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
63670
|
+
side: -1,
|
|
63671
|
+
id
|
|
63672
|
+
});
|
|
63673
|
+
set = set.add(tr.doc, [deco]);
|
|
63674
|
+
});
|
|
63675
|
+
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
63676
|
+
tr.delete(pos, pos + node.nodeSize);
|
|
63677
|
+
});
|
|
63678
|
+
set = set.map(tr.mapping, tr.doc);
|
|
63679
|
+
tr.setMeta(key, { set });
|
|
63680
|
+
return tr;
|
|
63681
|
+
};
|
|
63003
63682
|
const findPlaceholder = (state2, id) => {
|
|
63004
63683
|
let { set } = key.getState(state2);
|
|
63005
63684
|
let found2 = set?.find(null, null, (spec) => spec.id === id);
|
|
@@ -65527,15 +66206,50 @@ const getChangesByIdToResolve = (state2, id) => {
|
|
|
65527
66206
|
const changeIndex = trackedChanges.findIndex(({ mark }) => mark.attrs.id === id);
|
|
65528
66207
|
if (changeIndex === -1) return;
|
|
65529
66208
|
const matchingChange = trackedChanges[changeIndex];
|
|
65530
|
-
const
|
|
65531
|
-
const
|
|
65532
|
-
|
|
65533
|
-
|
|
65534
|
-
|
|
65535
|
-
|
|
65536
|
-
|
|
65537
|
-
|
|
65538
|
-
|
|
66209
|
+
const matchingId = matchingChange.mark.attrs.id;
|
|
66210
|
+
const getSegmentSize = ({ from: from2, to }) => to - from2;
|
|
66211
|
+
const areDirectlyConnected = (left2, right2) => {
|
|
66212
|
+
if (!left2 || !right2) {
|
|
66213
|
+
return false;
|
|
66214
|
+
}
|
|
66215
|
+
if (left2.to !== right2.from) {
|
|
66216
|
+
return false;
|
|
66217
|
+
}
|
|
66218
|
+
const hasContentBetween = state2.doc.textBetween(left2.from, right2.to, "\n").length > getSegmentSize(left2) + getSegmentSize(right2);
|
|
66219
|
+
return !hasContentBetween;
|
|
66220
|
+
};
|
|
66221
|
+
const isComplementaryPair = (firstType, secondType) => firstType === TrackDeleteMarkName && secondType === TrackInsertMarkName || firstType === TrackInsertMarkName && secondType === TrackDeleteMarkName;
|
|
66222
|
+
const linkedBefore = [];
|
|
66223
|
+
const linkedAfter = [];
|
|
66224
|
+
const collectDirection = (direction, collection) => {
|
|
66225
|
+
let currentIndex = changeIndex;
|
|
66226
|
+
let currentChange = matchingChange;
|
|
66227
|
+
while (true) {
|
|
66228
|
+
const neighborIndex = currentIndex + direction;
|
|
66229
|
+
const neighbor = trackedChanges[neighborIndex];
|
|
66230
|
+
if (!neighbor) {
|
|
66231
|
+
break;
|
|
66232
|
+
}
|
|
66233
|
+
const [left2, right2] = direction < 0 ? [neighbor, currentChange] : [currentChange, neighbor];
|
|
66234
|
+
if (!areDirectlyConnected(left2, right2)) {
|
|
66235
|
+
break;
|
|
66236
|
+
}
|
|
66237
|
+
const sharesId = neighbor.mark.attrs.id === matchingId;
|
|
66238
|
+
const complementary = isComplementaryPair(currentChange.mark.type.name, neighbor.mark.type.name);
|
|
66239
|
+
if (!sharesId && !complementary) {
|
|
66240
|
+
break;
|
|
66241
|
+
}
|
|
66242
|
+
collection.push(neighbor);
|
|
66243
|
+
currentIndex = neighborIndex;
|
|
66244
|
+
currentChange = neighbor;
|
|
66245
|
+
if (!sharesId) {
|
|
66246
|
+
break;
|
|
66247
|
+
}
|
|
66248
|
+
}
|
|
66249
|
+
};
|
|
66250
|
+
collectDirection(-1, linkedBefore);
|
|
66251
|
+
collectDirection(1, linkedAfter);
|
|
66252
|
+
return [matchingChange, ...linkedAfter, ...linkedBefore];
|
|
65539
66253
|
};
|
|
65540
66254
|
const TextTransform = Extension.create({
|
|
65541
66255
|
name: "textTransform",
|
|
@@ -70117,6 +70831,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
|
|
|
70117
70831
|
return actualBreak;
|
|
70118
70832
|
}
|
|
70119
70833
|
const onImageLoad = (editor) => {
|
|
70834
|
+
if (typeof requestAnimationFrame !== "function") return;
|
|
70120
70835
|
requestAnimationFrame(() => {
|
|
70121
70836
|
const newTr = editor.view.state.tr;
|
|
70122
70837
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -71328,7 +72043,7 @@ const _sfc_main$4$1 = {
|
|
|
71328
72043
|
};
|
|
71329
72044
|
const handleInputSubmit = () => {
|
|
71330
72045
|
const value = inlineTextInput.value;
|
|
71331
|
-
const cleanValue = value.
|
|
72046
|
+
const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
|
|
71332
72047
|
emit("textSubmit", cleanValue);
|
|
71333
72048
|
inlineTextInput.value = cleanValue;
|
|
71334
72049
|
};
|
|
@@ -71410,7 +72125,7 @@ const _sfc_main$4$1 = {
|
|
|
71410
72125
|
};
|
|
71411
72126
|
}
|
|
71412
72127
|
};
|
|
71413
|
-
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-
|
|
72128
|
+
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
|
|
71414
72129
|
const _hoisted_1$2$1 = {
|
|
71415
72130
|
class: "toolbar-separator",
|
|
71416
72131
|
role: "separator",
|
|
@@ -81907,7 +82622,7 @@ function requireEventemitter3() {
|
|
|
81907
82622
|
return eventemitter3.exports;
|
|
81908
82623
|
}
|
|
81909
82624
|
var eventemitter3Exports = requireEventemitter3();
|
|
81910
|
-
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
82625
|
+
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$2(eventemitter3Exports);
|
|
81911
82626
|
const useToolbarItem = (options) => {
|
|
81912
82627
|
const types2 = ["button", "options", "separator", "dropdown", "overflow"];
|
|
81913
82628
|
if (!types2.includes(options.type)) {
|
|
@@ -83182,16 +83897,21 @@ const makeDefaultItems = ({
|
|
|
83182
83897
|
onActivate: ({ fontFamily: fontFamily2 }) => {
|
|
83183
83898
|
if (!fontFamily2) return;
|
|
83184
83899
|
fontButton.label.value = fontFamily2;
|
|
83900
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83185
83901
|
const foundFont = fontOptions.find((i2) => i2.label === fontFamily2);
|
|
83186
83902
|
if (foundFont) {
|
|
83187
83903
|
fontButton.selectedValue.value = foundFont.key;
|
|
83904
|
+
} else if (defaultFont) {
|
|
83905
|
+
fontButton.selectedValue.value = defaultFont.key;
|
|
83188
83906
|
} else {
|
|
83189
83907
|
fontButton.selectedValue.value = "";
|
|
83190
83908
|
}
|
|
83191
83909
|
},
|
|
83192
83910
|
onDeactivate: () => {
|
|
83193
83911
|
fontButton.label.value = fontButton.defaultLabel.value;
|
|
83194
|
-
fontButton.
|
|
83912
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83913
|
+
if (defaultFont) fontButton.selectedValue.value = defaultFont.key;
|
|
83914
|
+
else fontButton.selectedValue.value = "";
|
|
83195
83915
|
}
|
|
83196
83916
|
});
|
|
83197
83917
|
const aiButton = useToolbarItem({
|
|
@@ -83259,9 +83979,11 @@ const makeDefaultItems = ({
|
|
|
83259
83979
|
},
|
|
83260
83980
|
options: fontSizeOptions,
|
|
83261
83981
|
onActivate: ({ fontSize: size2 }) => {
|
|
83982
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
83262
83983
|
if (!size2) {
|
|
83263
83984
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83264
|
-
fontSize2.selectedValue.value =
|
|
83985
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
83986
|
+
else fontSize2.selectedValue.value = "";
|
|
83265
83987
|
return;
|
|
83266
83988
|
}
|
|
83267
83989
|
let sanitizedValue = sanitizeNumber(size2, 12);
|
|
@@ -83273,6 +83995,8 @@ const makeDefaultItems = ({
|
|
|
83273
83995
|
});
|
|
83274
83996
|
if (foundSize) {
|
|
83275
83997
|
fontSize2.selectedValue.value = foundSize.key;
|
|
83998
|
+
} else if (defaultSize) {
|
|
83999
|
+
fontSize2.selectedValue.value = defaultSize.key;
|
|
83276
84000
|
} else {
|
|
83277
84001
|
fontSize2.selectedValue.value = "";
|
|
83278
84002
|
}
|
|
@@ -83280,7 +84004,9 @@ const makeDefaultItems = ({
|
|
|
83280
84004
|
},
|
|
83281
84005
|
onDeactivate: () => {
|
|
83282
84006
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83283
|
-
fontSize2.
|
|
84007
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
84008
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
84009
|
+
else fontSize2.selectedValue.value = "";
|
|
83284
84010
|
}
|
|
83285
84011
|
});
|
|
83286
84012
|
const separator = useToolbarItem({
|
|
@@ -83493,6 +84219,7 @@ const makeDefaultItems = ({
|
|
|
83493
84219
|
type: "dropdown",
|
|
83494
84220
|
name: "tableActions",
|
|
83495
84221
|
command: "executeTableCommand",
|
|
84222
|
+
tooltip: toolbarTexts2.tableActions,
|
|
83496
84223
|
icon: toolbarIcons2.tableActions,
|
|
83497
84224
|
hideLabel: true,
|
|
83498
84225
|
disabled: true,
|
|
@@ -84191,6 +84918,7 @@ const toolbarTexts = {
|
|
|
84191
84918
|
link: "Link",
|
|
84192
84919
|
image: "Image",
|
|
84193
84920
|
table: "Insert table",
|
|
84921
|
+
tableActions: "Table options",
|
|
84194
84922
|
addRowBefore: "Insert row above",
|
|
84195
84923
|
addRowAfter: "Insert row below",
|
|
84196
84924
|
addColumnBefore: "Insert column left",
|
|
@@ -86648,7 +87376,9 @@ const additionalHandlers = Object.freeze({
|
|
|
86648
87376
|
"w:wAfter": translator$K,
|
|
86649
87377
|
"w:wBefore": translator$J,
|
|
86650
87378
|
"wp:anchor": translator$8,
|
|
86651
|
-
"wp:inline": translator$7
|
|
87379
|
+
"wp:inline": translator$7,
|
|
87380
|
+
"w:commentRangeStart": commentRangeStartTranslator,
|
|
87381
|
+
"w:commentRangeEnd": commentRangeEndTranslator
|
|
86652
87382
|
});
|
|
86653
87383
|
const baseHandlers = {
|
|
86654
87384
|
...runPropertyTranslators,
|