@harbour-enterprises/superdoc 0.23.0-next.2 → 0.23.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-BItyloFT.cjs → PdfViewer-BIyyMlj5.cjs} +2 -2
- package/dist/chunks/{PdfViewer-MPmm-SUD.es.js → PdfViewer-BgDqtrWg.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-BWEnUdTY.es.js} +1 -1
- package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DkXkH2rT.cjs} +1 -1
- package/dist/chunks/{index-OVF3JhUR.es.js → index-CJj1CDwm.es.js} +98 -356
- package/dist/chunks/{index-CdJOxoqt.cjs → index-DPjesQ6E.cjs} +231 -489
- package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-BDk3JBqp.es.js} +4 -4
- package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-u4dvXAKa.cjs} +4 -4
- package/dist/chunks/{super-editor.es-C7stybby.cjs → super-editor.es-DgYHEl7L.cjs} +1459 -733
- package/dist/chunks/{super-editor.es-DQnqUJZs.es.js → super-editor.es-f9MFI0Ev.es.js} +1459 -733
- package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
- package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
- package/dist/chunks/xml-js-D_ZIzxu0.cjs +3 -0
- package/dist/chunks/xml-js-Dx4FIjnp.es.js +2 -0
- package/dist/components/CommentsLayer/types.d.ts +158 -0
- package/dist/components/CommentsLayer/types.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +5 -18
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +48 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/stores/superdoc-store.d.ts.map +1 -1
- package/dist/style.css +73 -54
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BVirrB35.js → converter-wrgxIFCy.js} +1305 -845
- package/dist/super-editor/chunks/{docx-zipper-Cpb9d2an.js → docx-zipper-DIilDv93.js} +1 -1
- package/dist/super-editor/chunks/{editor-DIINh50j.js → editor-C_9lsXSt.js} +345 -92
- package/dist/super-editor/chunks/{toolbar-CmDmkPHL.js → toolbar-BS-RUJ1x.js} +4 -4
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +46 -27
- package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarTexts.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/Attribute.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/Editor.d.ts +57 -3
- package/dist/super-editor/{src → super-editor/src}/core/Schema.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/helpers/htmlSanitizer.d.ts +1 -1
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/SuperConverter.d.ts +58 -2
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter-docx-defs.d.ts +28 -39
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/commentsExporter.d.ts +0 -7
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/w-id.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/comment-range-translator.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/index.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/node-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +64 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
- package/dist/super-editor/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +5 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
- package/dist/super-editor/super-editor.es.js +26 -11
- package/dist/super-editor/superdoc/src/components/CommentsLayer/types.d.ts +157 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +3 -4
- package/dist/superdoc.es.js +3 -4
- package/dist/superdoc.umd.js +1600 -1132
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
- package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +0 -4
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
- /package/dist/super-editor/{postcss.config.d.cts → super-editor/postcss.config.d.cts} +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/cursor-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/menuItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/tests/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/ai-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/color-dropdown-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/defaultItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/format-negation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/scroll-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/super-toolbar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarIcons.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/use-toolbar-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/composables/use-high-contrast-mode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/CommandService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/DocxZipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/EventEmitter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Extension.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/ExtensionService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/InputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Mark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/OxmlNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/child-editor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/schemaWithLists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testSchema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/backspaceNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/clearNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/command.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/createParagraphNear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/decreaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/exitCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/increaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContentAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinDown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinUp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftEmptyBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/find-node-position.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/is-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/test-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/newlineInCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/resetAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/restoreSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectAll.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockStart.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMeta.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/sinkListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/commandTestUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/test-schema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMarkCascade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/undoInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetAllMarks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/updateAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/wrapInList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/encoding-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editorFocus.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/keymap.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/ErrorWithDetails.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/annotator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/baseListDefinitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/chainableEditorState.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/cleanSchemaItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/contentProcessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createDocument.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createNodeFromContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/defaultBlockAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findChildren.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNodeClosestToPos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findWordBounds.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxListAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxRandomId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getActiveFormatting.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getExtensionConfigField.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getHTMLFromFragment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkRange.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksFromSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getNodeType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeNameByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getTextContentFromNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importHtml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importMarkdown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isExtentionRulesEnabled.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isInTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isMarkActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isNodeActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isTextSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/list-numbering-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/orderedListUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/pasteListHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/posToDOMRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/selectionToInsertionEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setImageNodeSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setWordSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/updateDOMAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/docx-paste/docx-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/google-docs-paste/google-docs-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/html-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/transform-copied-lists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/wrappingInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/0.14-listsv2/listsv2migration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/migration_after_0_4_14.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/document-rels.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/get-default-style-definition.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/hyperlink-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/num-pages-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-ref-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/toc-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/preProcessNodesForFldChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/mediaHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/tableFallbackHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/docxHelper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/alternateChoiceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/autoPageNumberImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/documentCommentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/docxImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/hyperlinkImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/ignoredNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/imageImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/importerHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/lineBreakImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/listImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/markImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/mergeTextNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pageReferenceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pictNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/runNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/standardNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tabImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableOfContentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/textNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/trackChangesImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/pageReference-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/tableOfContents-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/b-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-clear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-line-break-type.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/br-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/cantSplit-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/cnfStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/color-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/divId-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/gridAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/gridBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/hidden-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/hyperlink-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/i-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/jc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-p.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-default.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-para-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-text-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/p-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/r-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-leader.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/tblCellSpacing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/tblHeader-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/tc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/trHeight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/trPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/u-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/wAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/wBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/zipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/logger.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/super-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/image-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/image-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/link-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/link-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/numbering/numbering-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/relationships/relationships-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/callOrGet.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/carbonCopy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/clipboardUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/createStyleTag.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/deleteProps.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/imageBlobs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isEmptyObject.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isIOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isMacOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isRegExp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/minMax.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/objectIncludes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/parseSizeUnit.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-nodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/block-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/bold.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-end.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-start.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/bullet-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/collaboration-cursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment-import-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/custom-selection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/document.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/dropcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpParagraphWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFirstFieldAnnotationByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findHeaderFooterAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findRemovedFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotationsWithRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/font-family.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/font-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/format-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/gapcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/heading.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/highlight.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/history.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/image.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/getFileOpener.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleImageUpload.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleUrl.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imagePositionPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/processUploadedImage.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/rotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/italic.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/line-break.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/line-height.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/link.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/linked-styles.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/underline-css.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/ListItemNodeView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/listItemTypography.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/list-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/mention.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/noderesizer.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/ordered-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/page-number.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/page-reference.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/helpers/getDefaultSpacing.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/paragraph.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/placeholder.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/popover-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/split-run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/prosemirror-search-patched.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/search.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/shape-container.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/shape-textbox.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shared/cascade-toggle.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/slash-menu.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/strike.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentBlockView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentInlineView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentViewBase.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-part-object.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/DocumentSectionView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/helpers/tabDecorations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/tab.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/TableView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/table.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellAround.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createCell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createColGroup.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTableBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/isCellSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/helpers/createCellBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/table-header.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/table-of-contents.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/table-row.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/text.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/text-align.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/text-indent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/text-style.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/text-transform.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-changes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-delete.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-format.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-insert.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/underline.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/main.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/data/annotations_doc_content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/editor/data/imageBase64.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/data/comments/basic-resolved-comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/list-export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/editor-test-utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/getParagraphText.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/import/testUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/utils/contextmenu-helpers.d.ts +0 -0
- /package/dist/super-editor/{vite.config.d.ts → super-editor/vite.config.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as global$2, c as createElementBlock, o as openBlock, a as createBaseVNode, r as ref$1, b as createApp, d as computed, F as Fragment$1, e as renderList, n as normalizeClass, w as withModifiers, f as createCommentVNode, t as toDisplayString, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as withCtx, z as createTextVNode, A as normalizeStyle, B as h$1, C as toRef, D as provide, E as mergeProps, G as cloneVNode, T as Text$2, H as withDirectives, I as watchEffect, J as shallowRef, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-
|
|
1
|
+
import { g as global$2, c as createElementBlock, o as openBlock, a as createBaseVNode, r as ref$1, b as createApp, d as computed, F as Fragment$1, e as renderList, n as normalizeClass, w as withModifiers, f as createCommentVNode, t as toDisplayString, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as withCtx, z as createTextVNode, A as normalizeStyle, B as h$1, C as toRef, D as provide, E as mergeProps, G as cloneVNode, T as Text$2, H as withDirectives, I as watchEffect, J as shallowRef, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-ZWZLQtoU.es.js";
|
|
2
2
|
import * as Y from "yjs";
|
|
3
3
|
import { UndoManager, Item as Item$2, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
4
4
|
var __defProp$2 = Object.defineProperty;
|
|
@@ -10,11 +10,7 @@ var __publicField$2 = (obj, key2, value) => __defNormalProp$2(obj, typeof key2 !
|
|
|
10
10
|
var __accessCheck$2 = (obj, member, msg2) => member.has(obj) || __typeError$2("Cannot " + msg2);
|
|
11
11
|
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);
|
|
12
12
|
var __privateMethod$2 = (obj, member, method) => (__accessCheck$2(obj, member, "access private method"), method);
|
|
13
|
-
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;
|
|
14
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
|
|
15
|
-
function getDefaultExportFromCjs$1(x) {
|
|
16
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
17
|
-
}
|
|
13
|
+
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;
|
|
18
14
|
var buffer = {};
|
|
19
15
|
var base64Js = {};
|
|
20
16
|
base64Js.byteLength = byteLength;
|
|
@@ -1781,6 +1777,10 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
1781
1777
|
}
|
|
1782
1778
|
})(buffer);
|
|
1783
1779
|
const Buffer2 = buffer.Buffer;
|
|
1780
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
|
|
1781
|
+
function getDefaultExportFromCjs$2(x) {
|
|
1782
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1783
|
+
}
|
|
1784
1784
|
var sax = {};
|
|
1785
1785
|
var events$1 = { exports: {} };
|
|
1786
1786
|
var hasRequiredEvents;
|
|
@@ -2183,7 +2183,7 @@ function requireInherits_browser() {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
return inherits_browser.exports;
|
|
2185
2185
|
}
|
|
2186
|
-
function getDefaultExportFromCjs(x) {
|
|
2186
|
+
function getDefaultExportFromCjs$1(x) {
|
|
2187
2187
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2188
2188
|
}
|
|
2189
2189
|
var browser$1 = { exports: {} };
|
|
@@ -2344,7 +2344,7 @@ process$1.umask = function() {
|
|
|
2344
2344
|
return 0;
|
|
2345
2345
|
};
|
|
2346
2346
|
var browserExports = browser$1.exports;
|
|
2347
|
-
const process$1$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
2347
|
+
const process$1$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(browserExports);
|
|
2348
2348
|
var streamBrowser;
|
|
2349
2349
|
var hasRequiredStreamBrowser;
|
|
2350
2350
|
function requireStreamBrowser() {
|
|
@@ -5094,6 +5094,19 @@ function requireSafeRegexTest() {
|
|
|
5094
5094
|
};
|
|
5095
5095
|
return safeRegexTest;
|
|
5096
5096
|
}
|
|
5097
|
+
var generatorFunction;
|
|
5098
|
+
var hasRequiredGeneratorFunction;
|
|
5099
|
+
function requireGeneratorFunction() {
|
|
5100
|
+
if (hasRequiredGeneratorFunction) return generatorFunction;
|
|
5101
|
+
hasRequiredGeneratorFunction = 1;
|
|
5102
|
+
const cached = (
|
|
5103
|
+
/** @type {GeneratorFunctionConstructor} */
|
|
5104
|
+
function* () {
|
|
5105
|
+
}.constructor
|
|
5106
|
+
);
|
|
5107
|
+
generatorFunction = () => cached;
|
|
5108
|
+
return generatorFunction;
|
|
5109
|
+
}
|
|
5097
5110
|
var isGeneratorFunction;
|
|
5098
5111
|
var hasRequiredIsGeneratorFunction;
|
|
5099
5112
|
function requireIsGeneratorFunction() {
|
|
@@ -5106,16 +5119,7 @@ function requireIsGeneratorFunction() {
|
|
|
5106
5119
|
var getProto2 = requireGetProto();
|
|
5107
5120
|
var toStr = callBound2("Object.prototype.toString");
|
|
5108
5121
|
var fnToStr = callBound2("Function.prototype.toString");
|
|
5109
|
-
var
|
|
5110
|
-
if (!hasToStringTag) {
|
|
5111
|
-
return false;
|
|
5112
|
-
}
|
|
5113
|
-
try {
|
|
5114
|
-
return Function("return function*() {}")();
|
|
5115
|
-
} catch (e) {
|
|
5116
|
-
}
|
|
5117
|
-
};
|
|
5118
|
-
var GeneratorFunction;
|
|
5122
|
+
var getGeneratorFunction = /* @__PURE__ */ requireGeneratorFunction();
|
|
5119
5123
|
isGeneratorFunction = function isGeneratorFunction2(fn2) {
|
|
5120
5124
|
if (typeof fn2 !== "function") {
|
|
5121
5125
|
return false;
|
|
@@ -5130,14 +5134,8 @@ function requireIsGeneratorFunction() {
|
|
|
5130
5134
|
if (!getProto2) {
|
|
5131
5135
|
return false;
|
|
5132
5136
|
}
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
GeneratorFunction = generatorFunc ? (
|
|
5136
|
-
/** @type {GeneratorFunctionConstructor} */
|
|
5137
|
-
getProto2(generatorFunc)
|
|
5138
|
-
) : false;
|
|
5139
|
-
}
|
|
5140
|
-
return getProto2(fn2) === GeneratorFunction;
|
|
5137
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
5138
|
+
return GeneratorFunction && getProto2(fn2) === GeneratorFunction.prototype;
|
|
5141
5139
|
};
|
|
5142
5140
|
return isGeneratorFunction;
|
|
5143
5141
|
}
|
|
@@ -11331,7 +11329,7 @@ function requireLib() {
|
|
|
11331
11329
|
return lib;
|
|
11332
11330
|
}
|
|
11333
11331
|
var libExports = requireLib();
|
|
11334
|
-
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
11332
|
+
const xmljs = /* @__PURE__ */ getDefaultExportFromCjs$2(libExports);
|
|
11335
11333
|
var getRandomValues;
|
|
11336
11334
|
var rnds8 = new Uint8Array(16);
|
|
11337
11335
|
function rng() {
|
|
@@ -11366,6 +11364,306 @@ function v4(options, buf, offset2) {
|
|
|
11366
11364
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11367
11365
|
return stringify(rnds);
|
|
11368
11366
|
}
|
|
11367
|
+
function getDefaultExportFromCjs(x) {
|
|
11368
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11369
|
+
}
|
|
11370
|
+
const CRC_TABLE = new Int32Array([
|
|
11371
|
+
0,
|
|
11372
|
+
1996959894,
|
|
11373
|
+
3993919788,
|
|
11374
|
+
2567524794,
|
|
11375
|
+
124634137,
|
|
11376
|
+
1886057615,
|
|
11377
|
+
3915621685,
|
|
11378
|
+
2657392035,
|
|
11379
|
+
249268274,
|
|
11380
|
+
2044508324,
|
|
11381
|
+
3772115230,
|
|
11382
|
+
2547177864,
|
|
11383
|
+
162941995,
|
|
11384
|
+
2125561021,
|
|
11385
|
+
3887607047,
|
|
11386
|
+
2428444049,
|
|
11387
|
+
498536548,
|
|
11388
|
+
1789927666,
|
|
11389
|
+
4089016648,
|
|
11390
|
+
2227061214,
|
|
11391
|
+
450548861,
|
|
11392
|
+
1843258603,
|
|
11393
|
+
4107580753,
|
|
11394
|
+
2211677639,
|
|
11395
|
+
325883990,
|
|
11396
|
+
1684777152,
|
|
11397
|
+
4251122042,
|
|
11398
|
+
2321926636,
|
|
11399
|
+
335633487,
|
|
11400
|
+
1661365465,
|
|
11401
|
+
4195302755,
|
|
11402
|
+
2366115317,
|
|
11403
|
+
997073096,
|
|
11404
|
+
1281953886,
|
|
11405
|
+
3579855332,
|
|
11406
|
+
2724688242,
|
|
11407
|
+
1006888145,
|
|
11408
|
+
1258607687,
|
|
11409
|
+
3524101629,
|
|
11410
|
+
2768942443,
|
|
11411
|
+
901097722,
|
|
11412
|
+
1119000684,
|
|
11413
|
+
3686517206,
|
|
11414
|
+
2898065728,
|
|
11415
|
+
853044451,
|
|
11416
|
+
1172266101,
|
|
11417
|
+
3705015759,
|
|
11418
|
+
2882616665,
|
|
11419
|
+
651767980,
|
|
11420
|
+
1373503546,
|
|
11421
|
+
3369554304,
|
|
11422
|
+
3218104598,
|
|
11423
|
+
565507253,
|
|
11424
|
+
1454621731,
|
|
11425
|
+
3485111705,
|
|
11426
|
+
3099436303,
|
|
11427
|
+
671266974,
|
|
11428
|
+
1594198024,
|
|
11429
|
+
3322730930,
|
|
11430
|
+
2970347812,
|
|
11431
|
+
795835527,
|
|
11432
|
+
1483230225,
|
|
11433
|
+
3244367275,
|
|
11434
|
+
3060149565,
|
|
11435
|
+
1994146192,
|
|
11436
|
+
31158534,
|
|
11437
|
+
2563907772,
|
|
11438
|
+
4023717930,
|
|
11439
|
+
1907459465,
|
|
11440
|
+
112637215,
|
|
11441
|
+
2680153253,
|
|
11442
|
+
3904427059,
|
|
11443
|
+
2013776290,
|
|
11444
|
+
251722036,
|
|
11445
|
+
2517215374,
|
|
11446
|
+
3775830040,
|
|
11447
|
+
2137656763,
|
|
11448
|
+
141376813,
|
|
11449
|
+
2439277719,
|
|
11450
|
+
3865271297,
|
|
11451
|
+
1802195444,
|
|
11452
|
+
476864866,
|
|
11453
|
+
2238001368,
|
|
11454
|
+
4066508878,
|
|
11455
|
+
1812370925,
|
|
11456
|
+
453092731,
|
|
11457
|
+
2181625025,
|
|
11458
|
+
4111451223,
|
|
11459
|
+
1706088902,
|
|
11460
|
+
314042704,
|
|
11461
|
+
2344532202,
|
|
11462
|
+
4240017532,
|
|
11463
|
+
1658658271,
|
|
11464
|
+
366619977,
|
|
11465
|
+
2362670323,
|
|
11466
|
+
4224994405,
|
|
11467
|
+
1303535960,
|
|
11468
|
+
984961486,
|
|
11469
|
+
2747007092,
|
|
11470
|
+
3569037538,
|
|
11471
|
+
1256170817,
|
|
11472
|
+
1037604311,
|
|
11473
|
+
2765210733,
|
|
11474
|
+
3554079995,
|
|
11475
|
+
1131014506,
|
|
11476
|
+
879679996,
|
|
11477
|
+
2909243462,
|
|
11478
|
+
3663771856,
|
|
11479
|
+
1141124467,
|
|
11480
|
+
855842277,
|
|
11481
|
+
2852801631,
|
|
11482
|
+
3708648649,
|
|
11483
|
+
1342533948,
|
|
11484
|
+
654459306,
|
|
11485
|
+
3188396048,
|
|
11486
|
+
3373015174,
|
|
11487
|
+
1466479909,
|
|
11488
|
+
544179635,
|
|
11489
|
+
3110523913,
|
|
11490
|
+
3462522015,
|
|
11491
|
+
1591671054,
|
|
11492
|
+
702138776,
|
|
11493
|
+
2966460450,
|
|
11494
|
+
3352799412,
|
|
11495
|
+
1504918807,
|
|
11496
|
+
783551873,
|
|
11497
|
+
3082640443,
|
|
11498
|
+
3233442989,
|
|
11499
|
+
3988292384,
|
|
11500
|
+
2596254646,
|
|
11501
|
+
62317068,
|
|
11502
|
+
1957810842,
|
|
11503
|
+
3939845945,
|
|
11504
|
+
2647816111,
|
|
11505
|
+
81470997,
|
|
11506
|
+
1943803523,
|
|
11507
|
+
3814918930,
|
|
11508
|
+
2489596804,
|
|
11509
|
+
225274430,
|
|
11510
|
+
2053790376,
|
|
11511
|
+
3826175755,
|
|
11512
|
+
2466906013,
|
|
11513
|
+
167816743,
|
|
11514
|
+
2097651377,
|
|
11515
|
+
4027552580,
|
|
11516
|
+
2265490386,
|
|
11517
|
+
503444072,
|
|
11518
|
+
1762050814,
|
|
11519
|
+
4150417245,
|
|
11520
|
+
2154129355,
|
|
11521
|
+
426522225,
|
|
11522
|
+
1852507879,
|
|
11523
|
+
4275313526,
|
|
11524
|
+
2312317920,
|
|
11525
|
+
282753626,
|
|
11526
|
+
1742555852,
|
|
11527
|
+
4189708143,
|
|
11528
|
+
2394877945,
|
|
11529
|
+
397917763,
|
|
11530
|
+
1622183637,
|
|
11531
|
+
3604390888,
|
|
11532
|
+
2714866558,
|
|
11533
|
+
953729732,
|
|
11534
|
+
1340076626,
|
|
11535
|
+
3518719985,
|
|
11536
|
+
2797360999,
|
|
11537
|
+
1068828381,
|
|
11538
|
+
1219638859,
|
|
11539
|
+
3624741850,
|
|
11540
|
+
2936675148,
|
|
11541
|
+
906185462,
|
|
11542
|
+
1090812512,
|
|
11543
|
+
3747672003,
|
|
11544
|
+
2825379669,
|
|
11545
|
+
829329135,
|
|
11546
|
+
1181335161,
|
|
11547
|
+
3412177804,
|
|
11548
|
+
3160834842,
|
|
11549
|
+
628085408,
|
|
11550
|
+
1382605366,
|
|
11551
|
+
3423369109,
|
|
11552
|
+
3138078467,
|
|
11553
|
+
570562233,
|
|
11554
|
+
1426400815,
|
|
11555
|
+
3317316542,
|
|
11556
|
+
2998733608,
|
|
11557
|
+
733239954,
|
|
11558
|
+
1555261956,
|
|
11559
|
+
3268935591,
|
|
11560
|
+
3050360625,
|
|
11561
|
+
752459403,
|
|
11562
|
+
1541320221,
|
|
11563
|
+
2607071920,
|
|
11564
|
+
3965973030,
|
|
11565
|
+
1969922972,
|
|
11566
|
+
40735498,
|
|
11567
|
+
2617837225,
|
|
11568
|
+
3943577151,
|
|
11569
|
+
1913087877,
|
|
11570
|
+
83908371,
|
|
11571
|
+
2512341634,
|
|
11572
|
+
3803740692,
|
|
11573
|
+
2075208622,
|
|
11574
|
+
213261112,
|
|
11575
|
+
2463272603,
|
|
11576
|
+
3855990285,
|
|
11577
|
+
2094854071,
|
|
11578
|
+
198958881,
|
|
11579
|
+
2262029012,
|
|
11580
|
+
4057260610,
|
|
11581
|
+
1759359992,
|
|
11582
|
+
534414190,
|
|
11583
|
+
2176718541,
|
|
11584
|
+
4139329115,
|
|
11585
|
+
1873836001,
|
|
11586
|
+
414664567,
|
|
11587
|
+
2282248934,
|
|
11588
|
+
4279200368,
|
|
11589
|
+
1711684554,
|
|
11590
|
+
285281116,
|
|
11591
|
+
2405801727,
|
|
11592
|
+
4167216745,
|
|
11593
|
+
1634467795,
|
|
11594
|
+
376229701,
|
|
11595
|
+
2685067896,
|
|
11596
|
+
3608007406,
|
|
11597
|
+
1308918612,
|
|
11598
|
+
956543938,
|
|
11599
|
+
2808555105,
|
|
11600
|
+
3495958263,
|
|
11601
|
+
1231636301,
|
|
11602
|
+
1047427035,
|
|
11603
|
+
2932959818,
|
|
11604
|
+
3654703836,
|
|
11605
|
+
1088359270,
|
|
11606
|
+
936918e3,
|
|
11607
|
+
2847714899,
|
|
11608
|
+
3736837829,
|
|
11609
|
+
1202900863,
|
|
11610
|
+
817233897,
|
|
11611
|
+
3183342108,
|
|
11612
|
+
3401237130,
|
|
11613
|
+
1404277552,
|
|
11614
|
+
615818150,
|
|
11615
|
+
3134207493,
|
|
11616
|
+
3453421203,
|
|
11617
|
+
1423857449,
|
|
11618
|
+
601450431,
|
|
11619
|
+
3009837614,
|
|
11620
|
+
3294710456,
|
|
11621
|
+
1567103746,
|
|
11622
|
+
711928724,
|
|
11623
|
+
3020668471,
|
|
11624
|
+
3272380065,
|
|
11625
|
+
1510334235,
|
|
11626
|
+
755167117
|
|
11627
|
+
]);
|
|
11628
|
+
function ensureBuffer(input) {
|
|
11629
|
+
if (Buffer2.isBuffer(input)) {
|
|
11630
|
+
return input;
|
|
11631
|
+
}
|
|
11632
|
+
if (typeof input === "number") {
|
|
11633
|
+
return Buffer2.alloc(input);
|
|
11634
|
+
} else if (typeof input === "string") {
|
|
11635
|
+
return Buffer2.from(input);
|
|
11636
|
+
} else {
|
|
11637
|
+
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
11638
|
+
}
|
|
11639
|
+
}
|
|
11640
|
+
function bufferizeInt(num) {
|
|
11641
|
+
const tmp = ensureBuffer(4);
|
|
11642
|
+
tmp.writeInt32BE(num, 0);
|
|
11643
|
+
return tmp;
|
|
11644
|
+
}
|
|
11645
|
+
function _crc32(buf, previous) {
|
|
11646
|
+
buf = ensureBuffer(buf);
|
|
11647
|
+
if (Buffer2.isBuffer(previous)) {
|
|
11648
|
+
previous = previous.readUInt32BE(0);
|
|
11649
|
+
}
|
|
11650
|
+
let crc = ~~previous ^ -1;
|
|
11651
|
+
for (var n = 0; n < buf.length; n++) {
|
|
11652
|
+
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
11653
|
+
}
|
|
11654
|
+
return crc ^ -1;
|
|
11655
|
+
}
|
|
11656
|
+
function crc32() {
|
|
11657
|
+
return bufferizeInt(_crc32.apply(null, arguments));
|
|
11658
|
+
}
|
|
11659
|
+
crc32.signed = function() {
|
|
11660
|
+
return _crc32.apply(null, arguments);
|
|
11661
|
+
};
|
|
11662
|
+
crc32.unsigned = function() {
|
|
11663
|
+
return _crc32.apply(null, arguments) >>> 0;
|
|
11664
|
+
};
|
|
11665
|
+
var bufferCrc32 = crc32;
|
|
11666
|
+
const index$2 = /* @__PURE__ */ getDefaultExportFromCjs(bufferCrc32);
|
|
11369
11667
|
function callOrGet(value, context = null, ...props) {
|
|
11370
11668
|
if (typeof value === "function") {
|
|
11371
11669
|
if (context) return value.bind(context)(...props);
|
|
@@ -15047,18 +15345,6 @@ const DEFAULT_CUSTOM_XML = {
|
|
|
15047
15345
|
}
|
|
15048
15346
|
]
|
|
15049
15347
|
};
|
|
15050
|
-
const SETTINGS_CUSTOM_XML = {
|
|
15051
|
-
elements: [
|
|
15052
|
-
{
|
|
15053
|
-
type: "element",
|
|
15054
|
-
name: "w:settings",
|
|
15055
|
-
attributes: {
|
|
15056
|
-
"xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
15057
|
-
},
|
|
15058
|
-
elements: []
|
|
15059
|
-
}
|
|
15060
|
-
]
|
|
15061
|
-
};
|
|
15062
15348
|
const COMMENT_REF = {
|
|
15063
15349
|
type: "element",
|
|
15064
15350
|
name: "w:r",
|
|
@@ -16225,212 +16511,6 @@ const carbonCopy = (obj) => {
|
|
|
16225
16511
|
return void 0;
|
|
16226
16512
|
}
|
|
16227
16513
|
};
|
|
16228
|
-
function translateCommentNode(params2, type2) {
|
|
16229
|
-
const { node, commentsExportType, exportedCommentDefs = [] } = params2;
|
|
16230
|
-
if (!exportedCommentDefs.length || commentsExportType === "clean") return;
|
|
16231
|
-
const nodeId = node.attrs["w:id"];
|
|
16232
|
-
const originalComment = params2.comments.find((comment) => {
|
|
16233
|
-
return comment.commentId == nodeId;
|
|
16234
|
-
});
|
|
16235
|
-
if (!originalComment) return;
|
|
16236
|
-
const commentIndex = params2.comments?.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
16237
|
-
const parentId = originalComment.parentCommentId;
|
|
16238
|
-
let parentComment;
|
|
16239
|
-
if (parentId) {
|
|
16240
|
-
parentComment = params2.comments.find((c2) => c2.commentId === parentId || c2.importedId === parentId);
|
|
16241
|
-
}
|
|
16242
|
-
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
16243
|
-
if (commentsExportType === "external" && isInternal) return;
|
|
16244
|
-
const isResolved = !!originalComment.resolvedTime;
|
|
16245
|
-
if (isResolved) return;
|
|
16246
|
-
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
16247
|
-
if (type2 === "End") {
|
|
16248
|
-
const commentReference = {
|
|
16249
|
-
name: "w:r",
|
|
16250
|
-
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
16251
|
-
};
|
|
16252
|
-
commentSchema = [commentSchema, commentReference];
|
|
16253
|
-
}
|
|
16254
|
-
return commentSchema;
|
|
16255
|
-
}
|
|
16256
|
-
const getCommentSchema = (type2, commentId) => {
|
|
16257
|
-
return {
|
|
16258
|
-
name: `w:commentRange${type2}`,
|
|
16259
|
-
attributes: {
|
|
16260
|
-
"w:id": String(commentId)
|
|
16261
|
-
}
|
|
16262
|
-
};
|
|
16263
|
-
};
|
|
16264
|
-
const prepareCommentParaIds = (comment) => {
|
|
16265
|
-
const newComment = {
|
|
16266
|
-
...comment,
|
|
16267
|
-
commentParaId: generateRandom32BitHex()
|
|
16268
|
-
};
|
|
16269
|
-
return newComment;
|
|
16270
|
-
};
|
|
16271
|
-
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
16272
|
-
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
16273
|
-
const attributes = {
|
|
16274
|
-
"w:id": String(commentId),
|
|
16275
|
-
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
16276
|
-
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
16277
|
-
"w:date": toIsoNoFractional(comment.createdTime),
|
|
16278
|
-
"w:initials": getInitials(comment.creatorName),
|
|
16279
|
-
"w:done": comment.resolvedTime ? "1" : "0",
|
|
16280
|
-
"w15:paraId": comment.commentParaId,
|
|
16281
|
-
"custom:internalId": comment.commentId || comment.internalId,
|
|
16282
|
-
"custom:trackedChange": comment.trackedChange,
|
|
16283
|
-
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
16284
|
-
"custom:trackedChangeType": comment.trackedChangeType,
|
|
16285
|
-
"custom:trackedDeletedText": comment.deletedText || null
|
|
16286
|
-
};
|
|
16287
|
-
if (comment?.parentCommentId) {
|
|
16288
|
-
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
16289
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
16290
|
-
}
|
|
16291
|
-
return {
|
|
16292
|
-
type: "element",
|
|
16293
|
-
name: "w:comment",
|
|
16294
|
-
attributes,
|
|
16295
|
-
elements: [translatedText]
|
|
16296
|
-
};
|
|
16297
|
-
};
|
|
16298
|
-
const getInitials = (name) => {
|
|
16299
|
-
if (!name) return null;
|
|
16300
|
-
const preparedText = name.replace("(imported)", "").trim();
|
|
16301
|
-
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
16302
|
-
return initials;
|
|
16303
|
-
};
|
|
16304
|
-
const toIsoNoFractional = (unixMillis) => {
|
|
16305
|
-
const date = new Date(unixMillis || Date.now());
|
|
16306
|
-
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
16307
|
-
};
|
|
16308
|
-
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
16309
|
-
const newCommentsXml = carbonCopy(commentsXml);
|
|
16310
|
-
commentDefs.forEach((commentDef) => {
|
|
16311
|
-
const elements = commentDef.elements[0].elements;
|
|
16312
|
-
elements.unshift(COMMENT_REF);
|
|
16313
|
-
const paraId = commentDef.attributes["w15:paraId"];
|
|
16314
|
-
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
16315
|
-
commentDef.attributes = {
|
|
16316
|
-
"w:id": commentDef.attributes["w:id"],
|
|
16317
|
-
"w:author": commentDef.attributes["w:author"],
|
|
16318
|
-
"w:email": commentDef.attributes["w:email"],
|
|
16319
|
-
"w:date": commentDef.attributes["w:date"],
|
|
16320
|
-
"w:initials": commentDef.attributes["w:initials"],
|
|
16321
|
-
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
16322
|
-
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
16323
|
-
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
16324
|
-
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
16325
|
-
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
16326
|
-
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
16327
|
-
};
|
|
16328
|
-
});
|
|
16329
|
-
newCommentsXml.elements[0].elements = commentDefs;
|
|
16330
|
-
return newCommentsXml;
|
|
16331
|
-
};
|
|
16332
|
-
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
16333
|
-
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
16334
|
-
const commentsEx = comments.map((comment) => {
|
|
16335
|
-
const attributes = {
|
|
16336
|
-
"w15:paraId": comment.commentParaId,
|
|
16337
|
-
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
16338
|
-
};
|
|
16339
|
-
const parentId = comment.parentCommentId;
|
|
16340
|
-
if (parentId) {
|
|
16341
|
-
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
16342
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
16343
|
-
}
|
|
16344
|
-
return {
|
|
16345
|
-
type: "element",
|
|
16346
|
-
name: "w15:commentEx",
|
|
16347
|
-
attributes
|
|
16348
|
-
};
|
|
16349
|
-
});
|
|
16350
|
-
xmlCopy.elements[0].elements = commentsEx;
|
|
16351
|
-
return xmlCopy;
|
|
16352
|
-
};
|
|
16353
|
-
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
16354
|
-
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
16355
|
-
const extensibleUpdated = carbonCopy(extensible);
|
|
16356
|
-
documentIdsUpdated.elements[0].elements = [];
|
|
16357
|
-
extensibleUpdated.elements[0].elements = [];
|
|
16358
|
-
comments.forEach((comment) => {
|
|
16359
|
-
const newDurableId = generateRandom32BitHex();
|
|
16360
|
-
const newCommentIdDef = {
|
|
16361
|
-
type: "element",
|
|
16362
|
-
name: "w16cid:commentId",
|
|
16363
|
-
attributes: {
|
|
16364
|
-
"w16cid:paraId": comment.commentParaId,
|
|
16365
|
-
"w16cid:durableId": newDurableId
|
|
16366
|
-
}
|
|
16367
|
-
};
|
|
16368
|
-
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
16369
|
-
const newExtensible = {
|
|
16370
|
-
type: "element",
|
|
16371
|
-
name: "w16cex:commentExtensible",
|
|
16372
|
-
attributes: {
|
|
16373
|
-
"w16cex:durableId": newDurableId,
|
|
16374
|
-
"w16cex:dateUtc": toIsoNoFractional()
|
|
16375
|
-
}
|
|
16376
|
-
};
|
|
16377
|
-
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
16378
|
-
});
|
|
16379
|
-
return {
|
|
16380
|
-
documentIdsUpdated,
|
|
16381
|
-
extensibleUpdated
|
|
16382
|
-
};
|
|
16383
|
-
};
|
|
16384
|
-
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
16385
|
-
const newXml = carbonCopy(convertedXml);
|
|
16386
|
-
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
16387
|
-
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
16388
|
-
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
16389
|
-
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
16390
|
-
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
16391
|
-
return newXml;
|
|
16392
|
-
};
|
|
16393
|
-
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
16394
|
-
const updatedXml = carbonCopy(convertedXml);
|
|
16395
|
-
delete updatedXml["word/comments.xml"];
|
|
16396
|
-
delete updatedXml["word/commentsExtended.xml"];
|
|
16397
|
-
delete updatedXml["word/commentsExtensible.xml"];
|
|
16398
|
-
delete updatedXml["word/commentsIds.xml"];
|
|
16399
|
-
return updatedXml;
|
|
16400
|
-
};
|
|
16401
|
-
const generateRelationship = (target) => {
|
|
16402
|
-
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
16403
|
-
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
16404
|
-
return { ...rel };
|
|
16405
|
-
};
|
|
16406
|
-
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
16407
|
-
const relationships = [];
|
|
16408
|
-
if (exportType === "clean") {
|
|
16409
|
-
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
16410
|
-
return { documentXml, relationships };
|
|
16411
|
-
}
|
|
16412
|
-
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
16413
|
-
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
16414
|
-
relationships.push(generateRelationship("comments.xml"));
|
|
16415
|
-
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
16416
|
-
commentsWithParaIds,
|
|
16417
|
-
updatedXml["word/commentsExtended.xml"]
|
|
16418
|
-
);
|
|
16419
|
-
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
16420
|
-
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
16421
|
-
commentsWithParaIds,
|
|
16422
|
-
updatedXml["word/commentsIds.xml"],
|
|
16423
|
-
updatedXml["word/commentsExtensible.xml"]
|
|
16424
|
-
);
|
|
16425
|
-
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
16426
|
-
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
16427
|
-
relationships.push(generateRelationship("commentsIds.xml"));
|
|
16428
|
-
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
16429
|
-
return {
|
|
16430
|
-
relationships,
|
|
16431
|
-
documentXml: updatedXml
|
|
16432
|
-
};
|
|
16433
|
-
};
|
|
16434
16514
|
const lower16 = 65535;
|
|
16435
16515
|
const factor16 = Math.pow(2, 16);
|
|
16436
16516
|
function makeRecover(index2, offset2) {
|
|
@@ -17395,15 +17475,15 @@ function canSplit(doc2, pos, depth = 1, typesAfter) {
|
|
|
17395
17475
|
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)))
|
|
17396
17476
|
return false;
|
|
17397
17477
|
for (let d2 = $pos.depth - 1, i = depth - 2; d2 > base2; d2--, i--) {
|
|
17398
|
-
let node = $pos.node(d2),
|
|
17478
|
+
let node = $pos.node(d2), index3 = $pos.index(d2);
|
|
17399
17479
|
if (node.type.spec.isolating)
|
|
17400
17480
|
return false;
|
|
17401
|
-
let rest = node.content.cutByIndex(
|
|
17481
|
+
let rest = node.content.cutByIndex(index3, node.childCount);
|
|
17402
17482
|
let overrideChild = typesAfter && typesAfter[i + 1];
|
|
17403
17483
|
if (overrideChild)
|
|
17404
17484
|
rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs));
|
|
17405
17485
|
let after = typesAfter && typesAfter[i] || node;
|
|
17406
|
-
if (!node.canReplace(
|
|
17486
|
+
if (!node.canReplace(index3 + 1, node.childCount) || !after.type.validContent(rest))
|
|
17407
17487
|
return false;
|
|
17408
17488
|
}
|
|
17409
17489
|
let index2 = $pos.indexAfter(base2);
|
|
@@ -21397,6 +21477,16 @@ function stripHtmlStyles(html) {
|
|
|
21397
21477
|
if (node.nodeType !== window.Node.ELEMENT_NODE) return;
|
|
21398
21478
|
[...node.attributes].forEach((attr) => {
|
|
21399
21479
|
const name = attr.name.toLowerCase();
|
|
21480
|
+
if (node.nodeName.toLowerCase() === "span") {
|
|
21481
|
+
node.innerHTML = node.innerHTML.replace(/(\S) (<\/span>)/g, "$1 $2");
|
|
21482
|
+
}
|
|
21483
|
+
if (name === "style") {
|
|
21484
|
+
const cleanedStyle = cleanStyle(attr.value);
|
|
21485
|
+
if (!cleanedStyle) {
|
|
21486
|
+
node.removeAttribute(attr.name);
|
|
21487
|
+
} else node.setAttribute(attr.name, cleanedStyle);
|
|
21488
|
+
return;
|
|
21489
|
+
}
|
|
21400
21490
|
const shouldKeep = SUPPORTED_ATTRS.includes(name) || name.startsWith("data-");
|
|
21401
21491
|
if (!shouldKeep) {
|
|
21402
21492
|
node.removeAttribute(attr.name);
|
|
@@ -21407,6 +21497,12 @@ function stripHtmlStyles(html) {
|
|
|
21407
21497
|
cleanNode(doc2.body);
|
|
21408
21498
|
return doc2.body.innerHTML;
|
|
21409
21499
|
}
|
|
21500
|
+
function cleanStyle(style2) {
|
|
21501
|
+
if (!style2) return "";
|
|
21502
|
+
const declarations = style2.split(";").map((s) => s.trim()).filter(Boolean);
|
|
21503
|
+
const textAlign = declarations.find((d2) => d2.startsWith("text-align"));
|
|
21504
|
+
return textAlign ? `${textAlign};` : "";
|
|
21505
|
+
}
|
|
21410
21506
|
function createDocFromHTML(content, schema, options = {}) {
|
|
21411
21507
|
const { isImport = false } = options;
|
|
21412
21508
|
let parsedContent;
|
|
@@ -24367,33 +24463,33 @@ let NodeTranslator = _NodeTranslator;
|
|
|
24367
24463
|
const encode$1b = (attributes) => {
|
|
24368
24464
|
return attributes["w:type"];
|
|
24369
24465
|
};
|
|
24370
|
-
const decode$
|
|
24466
|
+
const decode$13 = (attrs) => {
|
|
24371
24467
|
const { lineBreakType } = attrs;
|
|
24372
24468
|
return lineBreakType;
|
|
24373
24469
|
};
|
|
24374
|
-
const attrConfig$
|
|
24470
|
+
const attrConfig$G = Object.freeze({
|
|
24375
24471
|
xmlName: "w:type",
|
|
24376
24472
|
sdName: "lineBreakType",
|
|
24377
24473
|
encode: encode$1b,
|
|
24378
|
-
decode: decode$
|
|
24474
|
+
decode: decode$13
|
|
24379
24475
|
});
|
|
24380
24476
|
const encode$1a = (attributes) => {
|
|
24381
24477
|
const xmlAttrValue = attributes["w:clear"];
|
|
24382
24478
|
return xmlAttrValue;
|
|
24383
24479
|
};
|
|
24384
|
-
const decode$
|
|
24480
|
+
const decode$12 = (attrs) => {
|
|
24385
24481
|
const { clear } = attrs;
|
|
24386
24482
|
return clear;
|
|
24387
24483
|
};
|
|
24388
|
-
const attrConfig$
|
|
24484
|
+
const attrConfig$F = Object.freeze({
|
|
24389
24485
|
xmlName: "w:clear",
|
|
24390
24486
|
sdName: "clear",
|
|
24391
24487
|
encode: encode$1a,
|
|
24392
|
-
decode: decode$
|
|
24488
|
+
decode: decode$12
|
|
24393
24489
|
});
|
|
24394
|
-
const validXmlAttributes$m = [attrConfig$
|
|
24395
|
-
const XML_NODE_NAME$
|
|
24396
|
-
const SD_NODE_NAME$
|
|
24490
|
+
const validXmlAttributes$m = [attrConfig$G, attrConfig$F];
|
|
24491
|
+
const XML_NODE_NAME$y = "w:br";
|
|
24492
|
+
const SD_NODE_NAME$g = "lineBreak";
|
|
24397
24493
|
const encode$19 = (_2, encodedAttrs) => {
|
|
24398
24494
|
const isPageBreak = encodedAttrs?.lineBreakType === "page";
|
|
24399
24495
|
const translated = {
|
|
@@ -24404,7 +24500,7 @@ const encode$19 = (_2, encodedAttrs) => {
|
|
|
24404
24500
|
}
|
|
24405
24501
|
return translated;
|
|
24406
24502
|
};
|
|
24407
|
-
const decode
|
|
24503
|
+
const decode$11 = (params2, decodedAttrs) => {
|
|
24408
24504
|
const { node } = params2;
|
|
24409
24505
|
if (!node) return;
|
|
24410
24506
|
const wBreak = { name: "w:br" };
|
|
@@ -24422,24 +24518,24 @@ const decode$$ = (params2, decodedAttrs) => {
|
|
|
24422
24518
|
return translated;
|
|
24423
24519
|
};
|
|
24424
24520
|
const config$v = {
|
|
24425
|
-
xmlName: XML_NODE_NAME$
|
|
24426
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
24521
|
+
xmlName: XML_NODE_NAME$y,
|
|
24522
|
+
sdNodeOrKeyName: SD_NODE_NAME$g,
|
|
24427
24523
|
type: NodeTranslator.translatorTypes.NODE,
|
|
24428
24524
|
encode: encode$19,
|
|
24429
|
-
decode: decode
|
|
24525
|
+
decode: decode$11,
|
|
24430
24526
|
attributes: validXmlAttributes$m
|
|
24431
24527
|
};
|
|
24432
24528
|
const translator$19 = NodeTranslator.from(config$v);
|
|
24433
24529
|
const encode$18 = (attributes) => attributes?.["w:val"];
|
|
24434
|
-
const decode$
|
|
24435
|
-
const attrConfig$
|
|
24530
|
+
const decode$10 = (attrs) => attrs?.highlight;
|
|
24531
|
+
const attrConfig$E = Object.freeze({
|
|
24436
24532
|
xmlName: "w:val",
|
|
24437
24533
|
sdName: "highlight",
|
|
24438
24534
|
encode: encode$18,
|
|
24439
|
-
decode: decode$
|
|
24535
|
+
decode: decode$10
|
|
24440
24536
|
});
|
|
24441
|
-
const validXmlAttributes$l = [attrConfig$
|
|
24442
|
-
const XML_NODE_NAME$
|
|
24537
|
+
const validXmlAttributes$l = [attrConfig$E];
|
|
24538
|
+
const XML_NODE_NAME$x = "w:highlight";
|
|
24443
24539
|
const SD_ATTR_KEY$g = "highlight";
|
|
24444
24540
|
const DISABLED_TOKENS = /* @__PURE__ */ new Set(["transparent", "none", "inherit"]);
|
|
24445
24541
|
const encode$17 = (params2, encodedAttrs = {}) => {
|
|
@@ -24448,12 +24544,12 @@ const encode$17 = (params2, encodedAttrs = {}) => {
|
|
|
24448
24544
|
const value = encodedAttrs.highlight ?? node?.attributes?.["w:val"];
|
|
24449
24545
|
return {
|
|
24450
24546
|
type: "attr",
|
|
24451
|
-
xmlName: XML_NODE_NAME$
|
|
24547
|
+
xmlName: XML_NODE_NAME$x,
|
|
24452
24548
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
24453
24549
|
attributes: { "w:val": value ?? null }
|
|
24454
24550
|
};
|
|
24455
24551
|
};
|
|
24456
|
-
const decode
|
|
24552
|
+
const decode$$ = (params2) => {
|
|
24457
24553
|
const attrs = params2?.node?.attrs || {};
|
|
24458
24554
|
const highlightValue = attrs.highlight ?? attrs.color ?? null;
|
|
24459
24555
|
if (!highlightValue) return void 0;
|
|
@@ -24461,14 +24557,14 @@ const decode$Z = (params2) => {
|
|
|
24461
24557
|
if (!normalizedValue) return void 0;
|
|
24462
24558
|
if (DISABLED_TOKENS.has(normalizedValue)) {
|
|
24463
24559
|
return {
|
|
24464
|
-
name: XML_NODE_NAME$
|
|
24560
|
+
name: XML_NODE_NAME$x,
|
|
24465
24561
|
attributes: { "w:val": "none" }
|
|
24466
24562
|
};
|
|
24467
24563
|
}
|
|
24468
24564
|
const keyword = getDocxHighlightKeywordFromHex(highlightValue);
|
|
24469
24565
|
if (keyword) {
|
|
24470
24566
|
return {
|
|
24471
|
-
name: XML_NODE_NAME$
|
|
24567
|
+
name: XML_NODE_NAME$x,
|
|
24472
24568
|
attributes: { "w:val": keyword }
|
|
24473
24569
|
};
|
|
24474
24570
|
}
|
|
@@ -24484,62 +24580,62 @@ const decode$Z = (params2) => {
|
|
|
24484
24580
|
};
|
|
24485
24581
|
};
|
|
24486
24582
|
const config$u = {
|
|
24487
|
-
xmlName: XML_NODE_NAME$
|
|
24583
|
+
xmlName: XML_NODE_NAME$x,
|
|
24488
24584
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
24489
24585
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
24490
24586
|
encode: encode$17,
|
|
24491
|
-
decode: decode
|
|
24587
|
+
decode: decode$$,
|
|
24492
24588
|
attributes: validXmlAttributes$l
|
|
24493
24589
|
};
|
|
24494
24590
|
const translator$18 = NodeTranslator.from(config$u);
|
|
24495
24591
|
const encode$16 = (attributes) => {
|
|
24496
24592
|
return attributes["w:val"];
|
|
24497
24593
|
};
|
|
24498
|
-
const decode$
|
|
24594
|
+
const decode$_ = (attrs) => {
|
|
24499
24595
|
const { tabSize } = attrs || {};
|
|
24500
24596
|
return tabSize;
|
|
24501
24597
|
};
|
|
24502
|
-
const attrConfig$
|
|
24598
|
+
const attrConfig$D = Object.freeze({
|
|
24503
24599
|
xmlName: "w:val",
|
|
24504
24600
|
sdName: "tabSize",
|
|
24505
24601
|
encode: encode$16,
|
|
24506
|
-
decode: decode$
|
|
24602
|
+
decode: decode$_
|
|
24507
24603
|
});
|
|
24508
24604
|
const encode$15 = (attributes) => {
|
|
24509
24605
|
return attributes["w:leader"];
|
|
24510
24606
|
};
|
|
24511
|
-
const decode$
|
|
24607
|
+
const decode$Z = (attrs) => {
|
|
24512
24608
|
const { leader } = attrs || {};
|
|
24513
24609
|
return leader;
|
|
24514
24610
|
};
|
|
24515
|
-
const attrConfig$
|
|
24611
|
+
const attrConfig$C = Object.freeze({
|
|
24516
24612
|
xmlName: "w:leader",
|
|
24517
24613
|
sdName: "leader",
|
|
24518
24614
|
encode: encode$15,
|
|
24519
|
-
decode: decode$
|
|
24615
|
+
decode: decode$Z
|
|
24520
24616
|
});
|
|
24521
24617
|
const encode$14 = (attributes) => {
|
|
24522
24618
|
return attributes["w:pos"];
|
|
24523
24619
|
};
|
|
24524
|
-
const decode$
|
|
24620
|
+
const decode$Y = (attrs) => {
|
|
24525
24621
|
const { pos } = attrs || {};
|
|
24526
24622
|
return pos;
|
|
24527
24623
|
};
|
|
24528
|
-
const attrConfig$
|
|
24624
|
+
const attrConfig$B = Object.freeze({
|
|
24529
24625
|
xmlName: "w:pos",
|
|
24530
24626
|
sdName: "pos",
|
|
24531
24627
|
encode: encode$14,
|
|
24532
|
-
decode: decode$
|
|
24628
|
+
decode: decode$Y
|
|
24533
24629
|
});
|
|
24534
|
-
const validXmlAttributes$k = [attrConfig$
|
|
24535
|
-
const XML_NODE_NAME$
|
|
24536
|
-
const SD_NODE_NAME$
|
|
24630
|
+
const validXmlAttributes$k = [attrConfig$D, attrConfig$B, attrConfig$C];
|
|
24631
|
+
const XML_NODE_NAME$w = "w:tab";
|
|
24632
|
+
const SD_NODE_NAME$f = "tab";
|
|
24537
24633
|
const encode$13 = (_2, encodedAttrs = {}) => {
|
|
24538
24634
|
const translated = { type: "tab" };
|
|
24539
24635
|
if (encodedAttrs) translated.attrs = { ...encodedAttrs };
|
|
24540
24636
|
return translated;
|
|
24541
24637
|
};
|
|
24542
|
-
const decode$
|
|
24638
|
+
const decode$X = (params2, decodedAttrs = {}) => {
|
|
24543
24639
|
const { node } = params2 || {};
|
|
24544
24640
|
if (!node) return;
|
|
24545
24641
|
const wTab = { name: "w:tab" };
|
|
@@ -24556,11 +24652,11 @@ const decode$V = (params2, decodedAttrs = {}) => {
|
|
|
24556
24652
|
return translated;
|
|
24557
24653
|
};
|
|
24558
24654
|
const config$t = {
|
|
24559
|
-
xmlName: XML_NODE_NAME$
|
|
24560
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
24655
|
+
xmlName: XML_NODE_NAME$w,
|
|
24656
|
+
sdNodeOrKeyName: SD_NODE_NAME$f,
|
|
24561
24657
|
type: NodeTranslator.translatorTypes.NODE,
|
|
24562
24658
|
encode: encode$13,
|
|
24563
|
-
decode: decode$
|
|
24659
|
+
decode: decode$X,
|
|
24564
24660
|
attributes: validXmlAttributes$k
|
|
24565
24661
|
};
|
|
24566
24662
|
const translator$17 = NodeTranslator.from(config$t);
|
|
@@ -25084,98 +25180,98 @@ const handleParagraphNode$1 = (params2) => {
|
|
|
25084
25180
|
const encode$12 = (attributes) => {
|
|
25085
25181
|
return attributes["w:rsidDel"];
|
|
25086
25182
|
};
|
|
25087
|
-
const decode$
|
|
25183
|
+
const decode$W = (attrs) => {
|
|
25088
25184
|
return attrs.rsidDel;
|
|
25089
25185
|
};
|
|
25090
|
-
const attrConfig$
|
|
25186
|
+
const attrConfig$A = Object.freeze({
|
|
25091
25187
|
xmlName: "w:rsidDel",
|
|
25092
25188
|
sdName: "rsidDel",
|
|
25093
25189
|
encode: encode$12,
|
|
25094
|
-
decode: decode$
|
|
25190
|
+
decode: decode$W
|
|
25095
25191
|
});
|
|
25096
25192
|
const encode$11 = (attributes) => {
|
|
25097
25193
|
return attributes["w:rsidP"];
|
|
25098
25194
|
};
|
|
25099
|
-
const decode$
|
|
25195
|
+
const decode$V = (attrs) => {
|
|
25100
25196
|
return attrs.rsidP;
|
|
25101
25197
|
};
|
|
25102
|
-
const attrConfig$
|
|
25198
|
+
const attrConfig$z = Object.freeze({
|
|
25103
25199
|
xmlName: "w:rsidP",
|
|
25104
25200
|
sdName: "rsidP",
|
|
25105
25201
|
encode: encode$11,
|
|
25106
|
-
decode: decode$
|
|
25202
|
+
decode: decode$V
|
|
25107
25203
|
});
|
|
25108
25204
|
const encode$10 = (attributes) => {
|
|
25109
25205
|
return attributes["w:rsidR"];
|
|
25110
25206
|
};
|
|
25111
|
-
const decode$
|
|
25207
|
+
const decode$U = (attrs) => {
|
|
25112
25208
|
return attrs.rsidR;
|
|
25113
25209
|
};
|
|
25114
|
-
const attrConfig$
|
|
25210
|
+
const attrConfig$y = Object.freeze({
|
|
25115
25211
|
xmlName: "w:rsidR",
|
|
25116
25212
|
sdName: "rsidR",
|
|
25117
25213
|
encode: encode$10,
|
|
25118
|
-
decode: decode$
|
|
25214
|
+
decode: decode$U
|
|
25119
25215
|
});
|
|
25120
25216
|
const encode$$ = (attributes) => {
|
|
25121
25217
|
return attributes["w:rsidRPr"];
|
|
25122
25218
|
};
|
|
25123
|
-
const decode$
|
|
25219
|
+
const decode$T = (attrs) => {
|
|
25124
25220
|
return attrs.rsidRPr;
|
|
25125
25221
|
};
|
|
25126
|
-
const attrConfig$
|
|
25222
|
+
const attrConfig$x = Object.freeze({
|
|
25127
25223
|
xmlName: "w:rsidRPr",
|
|
25128
25224
|
sdName: "rsidRPr",
|
|
25129
25225
|
encode: encode$$,
|
|
25130
|
-
decode: decode$
|
|
25226
|
+
decode: decode$T
|
|
25131
25227
|
});
|
|
25132
25228
|
const encode$_ = (attributes) => {
|
|
25133
25229
|
return attributes["w:rsidRDefault"];
|
|
25134
25230
|
};
|
|
25135
|
-
const decode$
|
|
25231
|
+
const decode$S = (attrs) => {
|
|
25136
25232
|
return attrs.rsidRDefault;
|
|
25137
25233
|
};
|
|
25138
|
-
const attrConfig$
|
|
25234
|
+
const attrConfig$w = Object.freeze({
|
|
25139
25235
|
xmlName: "w:rsidRDefault",
|
|
25140
25236
|
sdName: "rsidRDefault",
|
|
25141
25237
|
encode: encode$_,
|
|
25142
|
-
decode: decode$
|
|
25238
|
+
decode: decode$S
|
|
25143
25239
|
});
|
|
25144
25240
|
const encode$Z = (attributes) => {
|
|
25145
25241
|
return attributes["w14:paraId"];
|
|
25146
25242
|
};
|
|
25147
|
-
const decode$
|
|
25243
|
+
const decode$R = (attrs) => {
|
|
25148
25244
|
return attrs.paraId;
|
|
25149
25245
|
};
|
|
25150
|
-
const attrConfig$
|
|
25246
|
+
const attrConfig$v = Object.freeze({
|
|
25151
25247
|
xmlName: "w14:paraId",
|
|
25152
25248
|
sdName: "paraId",
|
|
25153
25249
|
encode: encode$Z,
|
|
25154
|
-
decode: decode$
|
|
25250
|
+
decode: decode$R
|
|
25155
25251
|
});
|
|
25156
25252
|
const encode$Y = (attributes) => {
|
|
25157
25253
|
return attributes["w14:textId"];
|
|
25158
25254
|
};
|
|
25159
|
-
const decode$
|
|
25255
|
+
const decode$Q = (attrs) => {
|
|
25160
25256
|
return attrs.textId;
|
|
25161
25257
|
};
|
|
25162
|
-
const attrConfig$
|
|
25258
|
+
const attrConfig$u = Object.freeze({
|
|
25163
25259
|
xmlName: "w14:textId",
|
|
25164
25260
|
sdName: "textId",
|
|
25165
25261
|
encode: encode$Y,
|
|
25166
|
-
decode: decode$
|
|
25262
|
+
decode: decode$Q
|
|
25167
25263
|
});
|
|
25168
25264
|
const validXmlAttributes$j = [
|
|
25169
|
-
attrConfig$u,
|
|
25170
|
-
attrConfig$t,
|
|
25171
|
-
attrConfig$x,
|
|
25172
25265
|
attrConfig$v,
|
|
25266
|
+
attrConfig$u,
|
|
25173
25267
|
attrConfig$y,
|
|
25174
25268
|
attrConfig$w,
|
|
25175
|
-
attrConfig$z
|
|
25269
|
+
attrConfig$z,
|
|
25270
|
+
attrConfig$x,
|
|
25271
|
+
attrConfig$A
|
|
25176
25272
|
];
|
|
25177
|
-
const XML_NODE_NAME$
|
|
25178
|
-
const SD_NODE_NAME$
|
|
25273
|
+
const XML_NODE_NAME$v = "w:p";
|
|
25274
|
+
const SD_NODE_NAME$e = "paragraph";
|
|
25179
25275
|
const encode$X = (params2, encodedAttrs = {}) => {
|
|
25180
25276
|
const node = handleParagraphNode$1(params2);
|
|
25181
25277
|
if (!node) return void 0;
|
|
@@ -25184,7 +25280,7 @@ const encode$X = (params2, encodedAttrs = {}) => {
|
|
|
25184
25280
|
}
|
|
25185
25281
|
return node;
|
|
25186
25282
|
};
|
|
25187
|
-
const decode$
|
|
25283
|
+
const decode$P = (params2, decodedAttrs = {}) => {
|
|
25188
25284
|
const translated = translateParagraphNode(params2);
|
|
25189
25285
|
if (!translated) return void 0;
|
|
25190
25286
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
@@ -25193,11 +25289,11 @@ const decode$N = (params2, decodedAttrs = {}) => {
|
|
|
25193
25289
|
return translated;
|
|
25194
25290
|
};
|
|
25195
25291
|
const config$s = {
|
|
25196
|
-
xmlName: XML_NODE_NAME$
|
|
25197
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
25292
|
+
xmlName: XML_NODE_NAME$v,
|
|
25293
|
+
sdNodeOrKeyName: SD_NODE_NAME$e,
|
|
25198
25294
|
type: NodeTranslator.translatorTypes.NODE,
|
|
25199
25295
|
encode: encode$X,
|
|
25200
|
-
decode: decode$
|
|
25296
|
+
decode: decode$P,
|
|
25201
25297
|
attributes: validXmlAttributes$j
|
|
25202
25298
|
};
|
|
25203
25299
|
const translator$16 = NodeTranslator.from(config$s);
|
|
@@ -25211,18 +25307,18 @@ const encode$W = (attributes) => {
|
|
|
25211
25307
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
25212
25308
|
return void 0;
|
|
25213
25309
|
};
|
|
25214
|
-
const decode$
|
|
25310
|
+
const decode$O = (runProps) => {
|
|
25215
25311
|
if (runProps?.bold === false) return "0";
|
|
25216
25312
|
return void 0;
|
|
25217
25313
|
};
|
|
25218
|
-
const attrConfig$
|
|
25314
|
+
const attrConfig$t = Object.freeze({
|
|
25219
25315
|
xmlName: "w:val",
|
|
25220
25316
|
sdName: "bold",
|
|
25221
25317
|
encode: encode$W,
|
|
25222
|
-
decode: decode$
|
|
25318
|
+
decode: decode$O
|
|
25223
25319
|
});
|
|
25224
|
-
const validXmlAttributes$i = [attrConfig$
|
|
25225
|
-
const XML_NODE_NAME$
|
|
25320
|
+
const validXmlAttributes$i = [attrConfig$t];
|
|
25321
|
+
const XML_NODE_NAME$u = "w:b";
|
|
25226
25322
|
const SD_ATTR_KEY$f = "bold";
|
|
25227
25323
|
const encode$V = (params2, encodedAttrs = {}) => {
|
|
25228
25324
|
const { nodes } = params2;
|
|
@@ -25236,20 +25332,20 @@ const encode$V = (params2, encodedAttrs = {}) => {
|
|
|
25236
25332
|
else attributes = node.attributes || {};
|
|
25237
25333
|
return {
|
|
25238
25334
|
type: "attr",
|
|
25239
|
-
xmlName: XML_NODE_NAME$
|
|
25335
|
+
xmlName: XML_NODE_NAME$u,
|
|
25240
25336
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
25241
25337
|
attributes
|
|
25242
25338
|
};
|
|
25243
25339
|
};
|
|
25244
25340
|
const config$r = {
|
|
25245
|
-
xmlName: XML_NODE_NAME$
|
|
25341
|
+
xmlName: XML_NODE_NAME$u,
|
|
25246
25342
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
25247
25343
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25248
25344
|
encode: encode$V,
|
|
25249
25345
|
attributes: validXmlAttributes$i
|
|
25250
25346
|
};
|
|
25251
25347
|
const translator$15 = NodeTranslator.from(config$r);
|
|
25252
|
-
const XML_NODE_NAME$
|
|
25348
|
+
const XML_NODE_NAME$t = "w:i";
|
|
25253
25349
|
const SD_ATTR_KEY$e = "italic";
|
|
25254
25350
|
const encode$U = (params2) => {
|
|
25255
25351
|
const { nodes } = params2;
|
|
@@ -25257,7 +25353,7 @@ const encode$U = (params2) => {
|
|
|
25257
25353
|
if (!node) return void 0;
|
|
25258
25354
|
return {
|
|
25259
25355
|
type: "attr",
|
|
25260
|
-
xmlName: XML_NODE_NAME$
|
|
25356
|
+
xmlName: XML_NODE_NAME$t,
|
|
25261
25357
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
25262
25358
|
attributes: {
|
|
25263
25359
|
"w:val": node.attributes?.["w:val"] ?? null
|
|
@@ -25265,54 +25361,54 @@ const encode$U = (params2) => {
|
|
|
25265
25361
|
};
|
|
25266
25362
|
};
|
|
25267
25363
|
const config$q = {
|
|
25268
|
-
xmlName: XML_NODE_NAME$
|
|
25364
|
+
xmlName: XML_NODE_NAME$t,
|
|
25269
25365
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
25270
25366
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25271
25367
|
encode: encode$U
|
|
25272
25368
|
};
|
|
25273
25369
|
const translator$14 = NodeTranslator.from(config$q);
|
|
25274
25370
|
const encode$T = (attributes) => attributes?.["w:val"];
|
|
25275
|
-
const decode$
|
|
25276
|
-
const attrConfig$
|
|
25371
|
+
const decode$N = (attrs) => attrs?.underline;
|
|
25372
|
+
const attrConfig$s = Object.freeze({
|
|
25277
25373
|
xmlName: "w:val",
|
|
25278
25374
|
sdName: "underline",
|
|
25279
25375
|
encode: encode$T,
|
|
25280
|
-
decode: decode$
|
|
25376
|
+
decode: decode$N
|
|
25281
25377
|
});
|
|
25282
25378
|
const encode$S = (attributes) => attributes?.["w:color"];
|
|
25283
|
-
const decode$
|
|
25284
|
-
const attrConfig$
|
|
25379
|
+
const decode$M = (attrs) => attrs?.color;
|
|
25380
|
+
const attrConfig$r = Object.freeze({
|
|
25285
25381
|
xmlName: "w:color",
|
|
25286
25382
|
sdName: "color",
|
|
25287
25383
|
encode: encode$S,
|
|
25288
|
-
decode: decode$
|
|
25384
|
+
decode: decode$M
|
|
25289
25385
|
});
|
|
25290
25386
|
const encode$R = (attributes) => attributes?.["w:themeColor"];
|
|
25291
|
-
const decode$
|
|
25292
|
-
const attrConfig$
|
|
25387
|
+
const decode$L = (attrs) => attrs?.themeColor;
|
|
25388
|
+
const attrConfig$q = Object.freeze({
|
|
25293
25389
|
xmlName: "w:themeColor",
|
|
25294
25390
|
sdName: "themeColor",
|
|
25295
25391
|
encode: encode$R,
|
|
25296
|
-
decode: decode$
|
|
25392
|
+
decode: decode$L
|
|
25297
25393
|
});
|
|
25298
25394
|
const encode$Q = (attributes) => attributes?.["w:themeTint"];
|
|
25299
|
-
const decode$
|
|
25300
|
-
const attrConfig$
|
|
25395
|
+
const decode$K = (attrs) => attrs?.themeTint;
|
|
25396
|
+
const attrConfig$p = Object.freeze({
|
|
25301
25397
|
xmlName: "w:themeTint",
|
|
25302
25398
|
sdName: "themeTint",
|
|
25303
25399
|
encode: encode$Q,
|
|
25304
|
-
decode: decode$
|
|
25400
|
+
decode: decode$K
|
|
25305
25401
|
});
|
|
25306
25402
|
const encode$P = (attributes) => attributes?.["w:themeShade"];
|
|
25307
|
-
const decode$
|
|
25308
|
-
const attrConfig$
|
|
25403
|
+
const decode$J = (attrs) => attrs?.themeShade;
|
|
25404
|
+
const attrConfig$o = Object.freeze({
|
|
25309
25405
|
xmlName: "w:themeShade",
|
|
25310
25406
|
sdName: "themeShade",
|
|
25311
25407
|
encode: encode$P,
|
|
25312
|
-
decode: decode$
|
|
25408
|
+
decode: decode$J
|
|
25313
25409
|
});
|
|
25314
|
-
const validXmlAttributes$h = [attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o
|
|
25315
|
-
const XML_NODE_NAME$
|
|
25410
|
+
const validXmlAttributes$h = [attrConfig$s, attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o];
|
|
25411
|
+
const XML_NODE_NAME$s = "w:u";
|
|
25316
25412
|
const SD_ATTR_KEY$d = "underline";
|
|
25317
25413
|
const encode$O = (params2, encodedAttrs = {}) => {
|
|
25318
25414
|
const { nodes } = params2;
|
|
@@ -25330,12 +25426,12 @@ const encode$O = (params2, encodedAttrs = {}) => {
|
|
|
25330
25426
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
25331
25427
|
return {
|
|
25332
25428
|
type: "attr",
|
|
25333
|
-
xmlName: XML_NODE_NAME$
|
|
25429
|
+
xmlName: XML_NODE_NAME$s,
|
|
25334
25430
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
25335
25431
|
attributes
|
|
25336
25432
|
};
|
|
25337
25433
|
};
|
|
25338
|
-
const decode$
|
|
25434
|
+
const decode$I = (params2) => {
|
|
25339
25435
|
const attrs = params2?.node?.attrs || {};
|
|
25340
25436
|
const underlineType = attrs.underlineType ?? attrs.underline ?? null;
|
|
25341
25437
|
const color = attrs.underlineColor ?? attrs.color ?? null;
|
|
@@ -25353,16 +25449,16 @@ const decode$G = (params2) => {
|
|
|
25353
25449
|
if (themeTint) attributes["w:themeTint"] = themeTint;
|
|
25354
25450
|
if (themeShade) attributes["w:themeShade"] = themeShade;
|
|
25355
25451
|
return {
|
|
25356
|
-
name: XML_NODE_NAME$
|
|
25452
|
+
name: XML_NODE_NAME$s,
|
|
25357
25453
|
attributes
|
|
25358
25454
|
};
|
|
25359
25455
|
};
|
|
25360
25456
|
const config$p = {
|
|
25361
|
-
xmlName: XML_NODE_NAME$
|
|
25457
|
+
xmlName: XML_NODE_NAME$s,
|
|
25362
25458
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
25363
25459
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25364
25460
|
encode: encode$O,
|
|
25365
|
-
decode: decode$
|
|
25461
|
+
decode: decode$I,
|
|
25366
25462
|
attributes: validXmlAttributes$h
|
|
25367
25463
|
};
|
|
25368
25464
|
const translator$13 = NodeTranslator.from(config$p);
|
|
@@ -25376,18 +25472,18 @@ const encode$N = (attributes) => {
|
|
|
25376
25472
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
25377
25473
|
return void 0;
|
|
25378
25474
|
};
|
|
25379
|
-
const decode$
|
|
25475
|
+
const decode$H = (attrs) => {
|
|
25380
25476
|
if (attrs?.strike === false) return "0";
|
|
25381
25477
|
return void 0;
|
|
25382
25478
|
};
|
|
25383
|
-
const attrConfig$
|
|
25479
|
+
const attrConfig$n = Object.freeze({
|
|
25384
25480
|
xmlName: "w:val",
|
|
25385
25481
|
sdName: "strike",
|
|
25386
25482
|
encode: encode$N,
|
|
25387
|
-
decode: decode$
|
|
25483
|
+
decode: decode$H
|
|
25388
25484
|
});
|
|
25389
|
-
const validXmlAttributes$g = [attrConfig$
|
|
25390
|
-
const XML_NODE_NAME$
|
|
25485
|
+
const validXmlAttributes$g = [attrConfig$n];
|
|
25486
|
+
const XML_NODE_NAME$r = "w:strike";
|
|
25391
25487
|
const SD_ATTR_KEY$c = "strike";
|
|
25392
25488
|
const encode$M = (params2, encodedAttrs = {}) => {
|
|
25393
25489
|
const { nodes } = params2;
|
|
@@ -25402,13 +25498,13 @@ const encode$M = (params2, encodedAttrs = {}) => {
|
|
|
25402
25498
|
else if (val === true && attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
25403
25499
|
return {
|
|
25404
25500
|
type: "attr",
|
|
25405
|
-
xmlName: XML_NODE_NAME$
|
|
25501
|
+
xmlName: XML_NODE_NAME$r,
|
|
25406
25502
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
25407
25503
|
attributes
|
|
25408
25504
|
};
|
|
25409
25505
|
};
|
|
25410
25506
|
const config$o = {
|
|
25411
|
-
xmlName: XML_NODE_NAME$
|
|
25507
|
+
xmlName: XML_NODE_NAME$r,
|
|
25412
25508
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
25413
25509
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25414
25510
|
encode: encode$M,
|
|
@@ -25416,39 +25512,39 @@ const config$o = {
|
|
|
25416
25512
|
};
|
|
25417
25513
|
const translator$12 = NodeTranslator.from(config$o);
|
|
25418
25514
|
const encode$L = (attributes) => attributes?.["w:val"];
|
|
25419
|
-
const decode$
|
|
25420
|
-
const attrConfig$
|
|
25515
|
+
const decode$G = (attrs) => attrs?.color;
|
|
25516
|
+
const attrConfig$m = Object.freeze({
|
|
25421
25517
|
xmlName: "w:val",
|
|
25422
25518
|
sdName: "color",
|
|
25423
25519
|
encode: encode$L,
|
|
25424
|
-
decode: decode$
|
|
25520
|
+
decode: decode$G
|
|
25425
25521
|
});
|
|
25426
25522
|
const encode$K = (attributes) => attributes?.["w:themeColor"];
|
|
25427
|
-
const decode$
|
|
25428
|
-
const attrConfig$
|
|
25523
|
+
const decode$F = (attrs) => attrs?.themeColor;
|
|
25524
|
+
const attrConfig$l = Object.freeze({
|
|
25429
25525
|
xmlName: "w:themeColor",
|
|
25430
25526
|
sdName: "themeColor",
|
|
25431
25527
|
encode: encode$K,
|
|
25432
|
-
decode: decode$
|
|
25528
|
+
decode: decode$F
|
|
25433
25529
|
});
|
|
25434
25530
|
const encode$J = (attributes) => attributes?.["w:themeTint"];
|
|
25435
|
-
const decode$
|
|
25436
|
-
const attrConfig$
|
|
25531
|
+
const decode$E = (attrs) => attrs?.themeTint;
|
|
25532
|
+
const attrConfig$k = Object.freeze({
|
|
25437
25533
|
xmlName: "w:themeTint",
|
|
25438
25534
|
sdName: "themeTint",
|
|
25439
25535
|
encode: encode$J,
|
|
25440
|
-
decode: decode$
|
|
25536
|
+
decode: decode$E
|
|
25441
25537
|
});
|
|
25442
25538
|
const encode$I = (attributes) => attributes?.["w:themeShade"];
|
|
25443
|
-
const decode$
|
|
25444
|
-
const attrConfig$
|
|
25539
|
+
const decode$D = (attrs) => attrs?.themeShade;
|
|
25540
|
+
const attrConfig$j = Object.freeze({
|
|
25445
25541
|
xmlName: "w:themeShade",
|
|
25446
25542
|
sdName: "themeShade",
|
|
25447
25543
|
encode: encode$I,
|
|
25448
|
-
decode: decode$
|
|
25544
|
+
decode: decode$D
|
|
25449
25545
|
});
|
|
25450
|
-
const validXmlAttributes$f = [attrConfig$
|
|
25451
|
-
const XML_NODE_NAME$
|
|
25546
|
+
const validXmlAttributes$f = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j];
|
|
25547
|
+
const XML_NODE_NAME$q = "w:color";
|
|
25452
25548
|
const SD_ATTR_KEY$b = "color";
|
|
25453
25549
|
const encode$H = (params2, encodedAttrs = {}) => {
|
|
25454
25550
|
const { nodes } = params2;
|
|
@@ -25465,13 +25561,13 @@ const encode$H = (params2, encodedAttrs = {}) => {
|
|
|
25465
25561
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
25466
25562
|
return {
|
|
25467
25563
|
type: "attr",
|
|
25468
|
-
xmlName: XML_NODE_NAME$
|
|
25564
|
+
xmlName: XML_NODE_NAME$q,
|
|
25469
25565
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
25470
25566
|
attributes
|
|
25471
25567
|
};
|
|
25472
25568
|
};
|
|
25473
25569
|
const config$n = {
|
|
25474
|
-
xmlName: XML_NODE_NAME$
|
|
25570
|
+
xmlName: XML_NODE_NAME$q,
|
|
25475
25571
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
25476
25572
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25477
25573
|
encode: encode$H,
|
|
@@ -25479,47 +25575,47 @@ const config$n = {
|
|
|
25479
25575
|
};
|
|
25480
25576
|
const translator$11 = NodeTranslator.from(config$n);
|
|
25481
25577
|
const encode$G = (attributes) => attributes?.["w:eastAsia"];
|
|
25482
|
-
const decode$
|
|
25483
|
-
const attrConfig$
|
|
25578
|
+
const decode$C = (attrs) => attrs?.eastAsia;
|
|
25579
|
+
const attrConfig$i = Object.freeze({
|
|
25484
25580
|
xmlName: "w:eastAsia",
|
|
25485
25581
|
sdName: "eastAsia",
|
|
25486
25582
|
encode: encode$G,
|
|
25487
|
-
decode: decode$
|
|
25583
|
+
decode: decode$C
|
|
25488
25584
|
});
|
|
25489
25585
|
const encode$F = (attributes) => attributes?.["w:ascii"];
|
|
25490
|
-
const decode$
|
|
25491
|
-
const attrConfig$
|
|
25586
|
+
const decode$B = (attrs) => attrs?.ascii;
|
|
25587
|
+
const attrConfig$h = Object.freeze({
|
|
25492
25588
|
xmlName: "w:ascii",
|
|
25493
25589
|
sdName: "ascii",
|
|
25494
25590
|
encode: encode$F,
|
|
25495
|
-
decode: decode$
|
|
25591
|
+
decode: decode$B
|
|
25496
25592
|
});
|
|
25497
25593
|
const encode$E = (attributes) => attributes?.["w:hAnsi"];
|
|
25498
|
-
const decode$
|
|
25499
|
-
const attrConfig$
|
|
25594
|
+
const decode$A = (attrs) => attrs?.hAnsi;
|
|
25595
|
+
const attrConfig$g = Object.freeze({
|
|
25500
25596
|
xmlName: "w:hAnsi",
|
|
25501
25597
|
sdName: "hAnsi",
|
|
25502
25598
|
encode: encode$E,
|
|
25503
|
-
decode: decode$
|
|
25599
|
+
decode: decode$A
|
|
25504
25600
|
});
|
|
25505
25601
|
const encode$D = (attributes) => attributes?.["w:cs"];
|
|
25506
|
-
const decode$
|
|
25507
|
-
const attrConfig$
|
|
25602
|
+
const decode$z = (attrs) => attrs?.cs;
|
|
25603
|
+
const attrConfig$f = Object.freeze({
|
|
25508
25604
|
xmlName: "w:cs",
|
|
25509
25605
|
sdName: "cs",
|
|
25510
25606
|
encode: encode$D,
|
|
25511
|
-
decode: decode$
|
|
25607
|
+
decode: decode$z
|
|
25512
25608
|
});
|
|
25513
25609
|
const encode$C = (attributes) => attributes?.["w:val"];
|
|
25514
|
-
const decode$
|
|
25515
|
-
const attrConfig$
|
|
25610
|
+
const decode$y = (attrs) => attrs?.value;
|
|
25611
|
+
const attrConfig$e = Object.freeze({
|
|
25516
25612
|
xmlName: "w:val",
|
|
25517
25613
|
sdName: "value",
|
|
25518
25614
|
encode: encode$C,
|
|
25519
|
-
decode: decode$
|
|
25615
|
+
decode: decode$y
|
|
25520
25616
|
});
|
|
25521
|
-
const validXmlAttributes$e = [attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e
|
|
25522
|
-
const XML_NODE_NAME$
|
|
25617
|
+
const validXmlAttributes$e = [attrConfig$i, attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e];
|
|
25618
|
+
const XML_NODE_NAME$p = "w:rFonts";
|
|
25523
25619
|
const SD_ATTR_KEY$a = "fontFamily";
|
|
25524
25620
|
const encode$B = (params2, encodedAttrs = {}) => {
|
|
25525
25621
|
const { nodes } = params2;
|
|
@@ -25547,13 +25643,13 @@ const encode$B = (params2, encodedAttrs = {}) => {
|
|
|
25547
25643
|
if (attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
25548
25644
|
return {
|
|
25549
25645
|
type: "attr",
|
|
25550
|
-
xmlName: XML_NODE_NAME$
|
|
25646
|
+
xmlName: XML_NODE_NAME$p,
|
|
25551
25647
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
25552
25648
|
attributes
|
|
25553
25649
|
};
|
|
25554
25650
|
};
|
|
25555
25651
|
const config$m = {
|
|
25556
|
-
xmlName: XML_NODE_NAME$
|
|
25652
|
+
xmlName: XML_NODE_NAME$p,
|
|
25557
25653
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
25558
25654
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25559
25655
|
encode: encode$B,
|
|
@@ -25561,15 +25657,15 @@ const config$m = {
|
|
|
25561
25657
|
};
|
|
25562
25658
|
const translator$10 = NodeTranslator.from(config$m);
|
|
25563
25659
|
const encode$A = (attributes) => attributes?.["w:val"];
|
|
25564
|
-
const decode$
|
|
25565
|
-
const attrConfig$
|
|
25660
|
+
const decode$x = (attrs) => attrs?.styleId;
|
|
25661
|
+
const attrConfig$d = Object.freeze({
|
|
25566
25662
|
xmlName: "w:val",
|
|
25567
25663
|
sdName: "styleId",
|
|
25568
25664
|
encode: encode$A,
|
|
25569
|
-
decode: decode$
|
|
25665
|
+
decode: decode$x
|
|
25570
25666
|
});
|
|
25571
|
-
const validXmlAttributes$d = [attrConfig$
|
|
25572
|
-
const XML_NODE_NAME$
|
|
25667
|
+
const validXmlAttributes$d = [attrConfig$d];
|
|
25668
|
+
const XML_NODE_NAME$o = "w:rStyle";
|
|
25573
25669
|
const SD_ATTR_KEY$9 = "styleId";
|
|
25574
25670
|
const encode$z = (params2, encodedAttrs = {}) => {
|
|
25575
25671
|
const { nodes } = params2;
|
|
@@ -25577,13 +25673,13 @@ const encode$z = (params2, encodedAttrs = {}) => {
|
|
|
25577
25673
|
const value = encodedAttrs.styleId ?? node?.attributes?.["w:val"];
|
|
25578
25674
|
return {
|
|
25579
25675
|
type: "attr",
|
|
25580
|
-
xmlName: XML_NODE_NAME$
|
|
25676
|
+
xmlName: XML_NODE_NAME$o,
|
|
25581
25677
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
25582
25678
|
attributes: { "w:val": value ?? null }
|
|
25583
25679
|
};
|
|
25584
25680
|
};
|
|
25585
25681
|
const config$l = {
|
|
25586
|
-
xmlName: XML_NODE_NAME$
|
|
25682
|
+
xmlName: XML_NODE_NAME$o,
|
|
25587
25683
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
25588
25684
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25589
25685
|
encode: encode$z,
|
|
@@ -25591,15 +25687,15 @@ const config$l = {
|
|
|
25591
25687
|
};
|
|
25592
25688
|
const translator$$ = NodeTranslator.from(config$l);
|
|
25593
25689
|
const encode$y = (attributes) => attributes?.["w:val"];
|
|
25594
|
-
const decode$
|
|
25595
|
-
const attrConfig$
|
|
25690
|
+
const decode$w = (attrs) => attrs?.fontSize;
|
|
25691
|
+
const attrConfig$c = Object.freeze({
|
|
25596
25692
|
xmlName: "w:val",
|
|
25597
25693
|
sdName: "fontSize",
|
|
25598
25694
|
encode: encode$y,
|
|
25599
|
-
decode: decode$
|
|
25695
|
+
decode: decode$w
|
|
25600
25696
|
});
|
|
25601
|
-
const validXmlAttributes$c = [attrConfig$
|
|
25602
|
-
const XML_NODE_NAME$
|
|
25697
|
+
const validXmlAttributes$c = [attrConfig$c];
|
|
25698
|
+
const XML_NODE_NAME$n = "w:sz";
|
|
25603
25699
|
const SD_ATTR_KEY$8 = "fontSize";
|
|
25604
25700
|
const encode$x = (params2, encodedAttrs = {}) => {
|
|
25605
25701
|
const { nodes } = params2;
|
|
@@ -25607,13 +25703,13 @@ const encode$x = (params2, encodedAttrs = {}) => {
|
|
|
25607
25703
|
const value = encodedAttrs.fontSize ?? node?.attributes?.["w:val"];
|
|
25608
25704
|
return {
|
|
25609
25705
|
type: "attr",
|
|
25610
|
-
xmlName: XML_NODE_NAME$
|
|
25706
|
+
xmlName: XML_NODE_NAME$n,
|
|
25611
25707
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
25612
25708
|
attributes: { "w:val": value ?? null }
|
|
25613
25709
|
};
|
|
25614
25710
|
};
|
|
25615
25711
|
const config$k = {
|
|
25616
|
-
xmlName: XML_NODE_NAME$
|
|
25712
|
+
xmlName: XML_NODE_NAME$n,
|
|
25617
25713
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
25618
25714
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25619
25715
|
encode: encode$x,
|
|
@@ -25621,15 +25717,15 @@ const config$k = {
|
|
|
25621
25717
|
};
|
|
25622
25718
|
const translator$_ = NodeTranslator.from(config$k);
|
|
25623
25719
|
const encode$w = (attributes) => attributes?.["w:val"];
|
|
25624
|
-
const decode$
|
|
25625
|
-
const attrConfig$
|
|
25720
|
+
const decode$v = (attrs) => attrs?.fontSizeCs;
|
|
25721
|
+
const attrConfig$b = Object.freeze({
|
|
25626
25722
|
xmlName: "w:val",
|
|
25627
25723
|
sdName: "fontSizeCs",
|
|
25628
25724
|
encode: encode$w,
|
|
25629
|
-
decode: decode$
|
|
25725
|
+
decode: decode$v
|
|
25630
25726
|
});
|
|
25631
|
-
const validXmlAttributes$b = [attrConfig$
|
|
25632
|
-
const XML_NODE_NAME$
|
|
25727
|
+
const validXmlAttributes$b = [attrConfig$b];
|
|
25728
|
+
const XML_NODE_NAME$m = "w:szCs";
|
|
25633
25729
|
const SD_ATTR_KEY$7 = "fontSizeCs";
|
|
25634
25730
|
const encode$v = (params2, encodedAttrs = {}) => {
|
|
25635
25731
|
const { nodes } = params2;
|
|
@@ -25637,13 +25733,13 @@ const encode$v = (params2, encodedAttrs = {}) => {
|
|
|
25637
25733
|
const value = encodedAttrs.fontSizeCs ?? node?.attributes?.["w:val"];
|
|
25638
25734
|
return {
|
|
25639
25735
|
type: "attr",
|
|
25640
|
-
xmlName: XML_NODE_NAME$
|
|
25736
|
+
xmlName: XML_NODE_NAME$m,
|
|
25641
25737
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
25642
25738
|
attributes: { "w:val": value ?? null }
|
|
25643
25739
|
};
|
|
25644
25740
|
};
|
|
25645
25741
|
const config$j = {
|
|
25646
|
-
xmlName: XML_NODE_NAME$
|
|
25742
|
+
xmlName: XML_NODE_NAME$m,
|
|
25647
25743
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
25648
25744
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25649
25745
|
encode: encode$v,
|
|
@@ -25783,7 +25879,7 @@ const integerToString = (value) => {
|
|
|
25783
25879
|
const intValue = parseInteger(value);
|
|
25784
25880
|
return intValue != void 0 ? String(intValue) : void 0;
|
|
25785
25881
|
};
|
|
25786
|
-
const XML_NODE_NAME$
|
|
25882
|
+
const XML_NODE_NAME$l = "w:caps";
|
|
25787
25883
|
const SD_ATTR_KEY$6 = "textTransform";
|
|
25788
25884
|
const encode$u = (params2, encodedAttrs = {}) => {
|
|
25789
25885
|
const { nodes } = params2;
|
|
@@ -25797,13 +25893,13 @@ const encode$u = (params2, encodedAttrs = {}) => {
|
|
|
25797
25893
|
}
|
|
25798
25894
|
return {
|
|
25799
25895
|
type: "attr",
|
|
25800
|
-
xmlName: XML_NODE_NAME$
|
|
25896
|
+
xmlName: XML_NODE_NAME$l,
|
|
25801
25897
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
25802
25898
|
attributes: { [SD_ATTR_KEY$6]: result }
|
|
25803
25899
|
};
|
|
25804
25900
|
};
|
|
25805
25901
|
const config$i = {
|
|
25806
|
-
xmlName: XML_NODE_NAME$
|
|
25902
|
+
xmlName: XML_NODE_NAME$l,
|
|
25807
25903
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
25808
25904
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25809
25905
|
encode: encode$u,
|
|
@@ -25835,7 +25931,7 @@ const toRunPropertyEntry = (candidate) => {
|
|
|
25835
25931
|
attributes: { ...candidate.attributes || {} }
|
|
25836
25932
|
};
|
|
25837
25933
|
};
|
|
25838
|
-
const XML_NODE_NAME$
|
|
25934
|
+
const XML_NODE_NAME$k = "w:rPr";
|
|
25839
25935
|
const SD_ATTR_KEY$5 = "runProperties";
|
|
25840
25936
|
const encode$t = (params2) => {
|
|
25841
25937
|
const { nodes } = params2;
|
|
@@ -25872,7 +25968,7 @@ const encode$t = (params2) => {
|
|
|
25872
25968
|
};
|
|
25873
25969
|
};
|
|
25874
25970
|
const config$h = {
|
|
25875
|
-
xmlName: XML_NODE_NAME$
|
|
25971
|
+
xmlName: XML_NODE_NAME$k,
|
|
25876
25972
|
sdNodeOrKeyName: SD_ATTR_KEY$5,
|
|
25877
25973
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
25878
25974
|
encode: encode$t
|
|
@@ -26353,8 +26449,8 @@ const ensureTrackedWrapper = (runs, trackingMarksByType = /* @__PURE__ */ new Ma
|
|
|
26353
26449
|
}
|
|
26354
26450
|
return runs;
|
|
26355
26451
|
};
|
|
26356
|
-
const XML_NODE_NAME$
|
|
26357
|
-
const SD_NODE_NAME$
|
|
26452
|
+
const XML_NODE_NAME$j = "w:hyperlink";
|
|
26453
|
+
const SD_NODE_NAME$d = "link";
|
|
26358
26454
|
const _createAttributeHandler = (xmlName, sdName) => ({
|
|
26359
26455
|
xmlName,
|
|
26360
26456
|
sdName,
|
|
@@ -26408,7 +26504,7 @@ const _resolveHref = (docx, encodedAttrs) => {
|
|
|
26408
26504
|
}
|
|
26409
26505
|
return href;
|
|
26410
26506
|
};
|
|
26411
|
-
function decode$
|
|
26507
|
+
function decode$u(params2) {
|
|
26412
26508
|
const { hyperlinkGroup = [params2.node] } = params2.extraParams || {};
|
|
26413
26509
|
const node = hyperlinkGroup[0];
|
|
26414
26510
|
const linkMark = node.marks.find((m2) => m2.type === "link");
|
|
@@ -26465,52 +26561,52 @@ function _addNewLinkRelationship(params2, link, rId) {
|
|
|
26465
26561
|
return rId;
|
|
26466
26562
|
}
|
|
26467
26563
|
const config$g = {
|
|
26468
|
-
xmlName: XML_NODE_NAME$
|
|
26469
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
26564
|
+
xmlName: XML_NODE_NAME$j,
|
|
26565
|
+
sdNodeOrKeyName: SD_NODE_NAME$d,
|
|
26470
26566
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26471
26567
|
encode: encode$s,
|
|
26472
|
-
decode: decode$
|
|
26568
|
+
decode: decode$u,
|
|
26473
26569
|
attributes: validXmlAttributes$a
|
|
26474
26570
|
};
|
|
26475
26571
|
const translator$W = NodeTranslator.from(config$g);
|
|
26476
26572
|
const encode$r = (attributes) => {
|
|
26477
26573
|
return attributes["w:rsidR"];
|
|
26478
26574
|
};
|
|
26479
|
-
const decode$
|
|
26575
|
+
const decode$t = (attrs) => {
|
|
26480
26576
|
return attrs.rsidR;
|
|
26481
26577
|
};
|
|
26482
|
-
const attrConfig$
|
|
26578
|
+
const attrConfig$a = Object.freeze({
|
|
26483
26579
|
xmlName: "w:rsidR",
|
|
26484
26580
|
sdName: "rsidR",
|
|
26485
26581
|
encode: encode$r,
|
|
26486
|
-
decode: decode$
|
|
26582
|
+
decode: decode$t
|
|
26487
26583
|
});
|
|
26488
26584
|
const encode$q = (attributes) => {
|
|
26489
26585
|
return attributes["w:rsidRPr"];
|
|
26490
26586
|
};
|
|
26491
|
-
const decode$
|
|
26587
|
+
const decode$s = (attrs) => {
|
|
26492
26588
|
return attrs.rsidRPr;
|
|
26493
26589
|
};
|
|
26494
|
-
const attrConfig$
|
|
26590
|
+
const attrConfig$9 = Object.freeze({
|
|
26495
26591
|
xmlName: "w:rsidRPr",
|
|
26496
26592
|
sdName: "rsidRPr",
|
|
26497
26593
|
encode: encode$q,
|
|
26498
|
-
decode: decode$
|
|
26594
|
+
decode: decode$s
|
|
26499
26595
|
});
|
|
26500
26596
|
const encode$p = (attributes) => {
|
|
26501
26597
|
return attributes["w:rsidDel"];
|
|
26502
26598
|
};
|
|
26503
|
-
const decode$
|
|
26599
|
+
const decode$r = (attrs) => {
|
|
26504
26600
|
return attrs.rsidDel;
|
|
26505
26601
|
};
|
|
26506
|
-
const attrConfig$
|
|
26602
|
+
const attrConfig$8 = Object.freeze({
|
|
26507
26603
|
xmlName: "w:rsidDel",
|
|
26508
26604
|
sdName: "rsidDel",
|
|
26509
26605
|
encode: encode$p,
|
|
26510
|
-
decode: decode$
|
|
26606
|
+
decode: decode$r
|
|
26511
26607
|
});
|
|
26512
|
-
const validXmlAttributes$9 = [attrConfig$
|
|
26513
|
-
const XML_NODE_NAME$
|
|
26608
|
+
const validXmlAttributes$9 = [attrConfig$a, attrConfig$9, attrConfig$8];
|
|
26609
|
+
const XML_NODE_NAME$i = "w:r";
|
|
26514
26610
|
const SD_KEY_NAME = "run";
|
|
26515
26611
|
const encode$o = (params2, encodedAttrs = {}) => {
|
|
26516
26612
|
const { nodes = [], nodeListHandler } = params2 || {};
|
|
@@ -26560,7 +26656,7 @@ const encode$o = (params2, encodedAttrs = {}) => {
|
|
|
26560
26656
|
}
|
|
26561
26657
|
return runNodeResult;
|
|
26562
26658
|
};
|
|
26563
|
-
const decode$
|
|
26659
|
+
const decode$q = (params2, decodedAttrs = {}) => {
|
|
26564
26660
|
const { node } = params2 || {};
|
|
26565
26661
|
if (!node) return void 0;
|
|
26566
26662
|
const isLinkNode = node.marks?.some((m2) => m2.type === "link");
|
|
@@ -26619,7 +26715,7 @@ const decode$o = (params2, decodedAttrs = {}) => {
|
|
|
26619
26715
|
runs.push(trackedClone);
|
|
26620
26716
|
return;
|
|
26621
26717
|
}
|
|
26622
|
-
const runWrapper = { name: XML_NODE_NAME$
|
|
26718
|
+
const runWrapper = { name: XML_NODE_NAME$i, elements: [] };
|
|
26623
26719
|
applyBaseRunProps(runWrapper);
|
|
26624
26720
|
if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
|
|
26625
26721
|
runWrapper.elements.push(cloneXmlNode(child));
|
|
@@ -26627,7 +26723,7 @@ const decode$o = (params2, decodedAttrs = {}) => {
|
|
|
26627
26723
|
});
|
|
26628
26724
|
const trackedRuns = ensureTrackedWrapper(runs, trackingMarksByType);
|
|
26629
26725
|
if (!trackedRuns.length) {
|
|
26630
|
-
const emptyRun = { name: XML_NODE_NAME$
|
|
26726
|
+
const emptyRun = { name: XML_NODE_NAME$i, elements: [] };
|
|
26631
26727
|
applyBaseRunProps(emptyRun);
|
|
26632
26728
|
trackedRuns.push(emptyRun);
|
|
26633
26729
|
}
|
|
@@ -26642,11 +26738,11 @@ const decode$o = (params2, decodedAttrs = {}) => {
|
|
|
26642
26738
|
return trackedRuns;
|
|
26643
26739
|
};
|
|
26644
26740
|
const config$f = {
|
|
26645
|
-
xmlName: XML_NODE_NAME$
|
|
26741
|
+
xmlName: XML_NODE_NAME$i,
|
|
26646
26742
|
sdNodeOrKeyName: SD_KEY_NAME,
|
|
26647
26743
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26648
26744
|
encode: encode$o,
|
|
26649
|
-
decode: decode$
|
|
26745
|
+
decode: decode$q,
|
|
26650
26746
|
attributes: validXmlAttributes$9
|
|
26651
26747
|
};
|
|
26652
26748
|
const translator$V = NodeTranslator.from(config$f);
|
|
@@ -26784,7 +26880,7 @@ const translator$L = NodeTranslator.from({
|
|
|
26784
26880
|
});
|
|
26785
26881
|
const translator$K = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
|
|
26786
26882
|
const translator$J = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
|
|
26787
|
-
const XML_NODE_NAME$
|
|
26883
|
+
const XML_NODE_NAME$h = "w:trPr";
|
|
26788
26884
|
const SD_ATTR_KEY$4 = "tableRowProperties";
|
|
26789
26885
|
const encode$n = (params2) => {
|
|
26790
26886
|
const { nodes } = params2;
|
|
@@ -26800,12 +26896,12 @@ const encode$n = (params2) => {
|
|
|
26800
26896
|
};
|
|
26801
26897
|
return {
|
|
26802
26898
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
26803
|
-
xmlName: XML_NODE_NAME$
|
|
26899
|
+
xmlName: XML_NODE_NAME$h,
|
|
26804
26900
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
26805
26901
|
attributes
|
|
26806
26902
|
};
|
|
26807
26903
|
};
|
|
26808
|
-
const decode$
|
|
26904
|
+
const decode$p = (params2) => {
|
|
26809
26905
|
const { tableRowProperties = {} } = params2.node.attrs || {};
|
|
26810
26906
|
const elements = decodeProperties(propertyTranslatorsBySdName$2, tableRowProperties);
|
|
26811
26907
|
const newNode = {
|
|
@@ -26839,15 +26935,15 @@ propertyTranslators$3.forEach((translator2) => {
|
|
|
26839
26935
|
propertyTranslatorsBySdName$2[translator2.sdNodeOrKeyName] = translator2;
|
|
26840
26936
|
});
|
|
26841
26937
|
const config$e = {
|
|
26842
|
-
xmlName: XML_NODE_NAME$
|
|
26938
|
+
xmlName: XML_NODE_NAME$h,
|
|
26843
26939
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
26844
26940
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
26845
26941
|
encode: encode$n,
|
|
26846
|
-
decode: decode$
|
|
26942
|
+
decode: decode$p
|
|
26847
26943
|
};
|
|
26848
26944
|
const translator$I = NodeTranslator.from(config$e);
|
|
26849
|
-
const XML_NODE_NAME$
|
|
26850
|
-
const SD_NODE_NAME$
|
|
26945
|
+
const XML_NODE_NAME$g = "w:tr";
|
|
26946
|
+
const SD_NODE_NAME$c = "tableRow";
|
|
26851
26947
|
const validXmlAttributes$8 = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
|
|
26852
26948
|
(xmlName) => createAttributeHandler(xmlName)
|
|
26853
26949
|
);
|
|
@@ -26891,7 +26987,7 @@ const encode$m = (params2, encodedAttrs) => {
|
|
|
26891
26987
|
};
|
|
26892
26988
|
return newNode;
|
|
26893
26989
|
};
|
|
26894
|
-
const decode$
|
|
26990
|
+
const decode$o = (params2, decodedAttrs) => {
|
|
26895
26991
|
const { node } = params2;
|
|
26896
26992
|
const elements = translateChildNodes(params2);
|
|
26897
26993
|
if (node.attrs?.tableRowProperties) {
|
|
@@ -26916,11 +27012,11 @@ const decode$m = (params2, decodedAttrs) => {
|
|
|
26916
27012
|
};
|
|
26917
27013
|
};
|
|
26918
27014
|
const config$d = {
|
|
26919
|
-
xmlName: XML_NODE_NAME$
|
|
26920
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
27015
|
+
xmlName: XML_NODE_NAME$g,
|
|
27016
|
+
sdNodeOrKeyName: SD_NODE_NAME$c,
|
|
26921
27017
|
type: NodeTranslator.translatorTypes.NODE,
|
|
26922
27018
|
encode: encode$m,
|
|
26923
|
-
decode: decode$
|
|
27019
|
+
decode: decode$o,
|
|
26924
27020
|
attributes: validXmlAttributes$8
|
|
26925
27021
|
};
|
|
26926
27022
|
const translator$H = NodeTranslator.from(config$d);
|
|
@@ -27003,7 +27099,7 @@ const translator$j = NodeTranslator.from(createBorderPropertyHandler("w:start"))
|
|
|
27003
27099
|
const translator$i = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
|
|
27004
27100
|
const translator$h = NodeTranslator.from(createBorderPropertyHandler("w:top"));
|
|
27005
27101
|
const translator$g = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
|
|
27006
|
-
const XML_NODE_NAME$
|
|
27102
|
+
const XML_NODE_NAME$f = "w:tblBorders";
|
|
27007
27103
|
const SD_ATTR_KEY$3 = "borders";
|
|
27008
27104
|
const encode$l = (params2) => {
|
|
27009
27105
|
const { nodes } = params2;
|
|
@@ -27011,7 +27107,7 @@ const encode$l = (params2) => {
|
|
|
27011
27107
|
const attributes = encodeProperties(node, tblBordersTranslatorsByXmlName);
|
|
27012
27108
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
27013
27109
|
};
|
|
27014
|
-
const decode$
|
|
27110
|
+
const decode$n = (params2) => {
|
|
27015
27111
|
const { borders = {} } = params2.node.attrs || {};
|
|
27016
27112
|
const elements = decodeProperties(tblBordersTranslatorsBySdName, borders);
|
|
27017
27113
|
const newNode = {
|
|
@@ -27039,14 +27135,14 @@ propertyTranslators$2.forEach((translator2) => {
|
|
|
27039
27135
|
tblBordersTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
27040
27136
|
});
|
|
27041
27137
|
const translator$f = NodeTranslator.from({
|
|
27042
|
-
xmlName: XML_NODE_NAME$
|
|
27138
|
+
xmlName: XML_NODE_NAME$f,
|
|
27043
27139
|
sdNodeOrKeyName: SD_ATTR_KEY$3,
|
|
27044
27140
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27045
27141
|
attributes: [],
|
|
27046
27142
|
encode: encode$l,
|
|
27047
|
-
decode: decode$
|
|
27143
|
+
decode: decode$n
|
|
27048
27144
|
});
|
|
27049
|
-
const XML_NODE_NAME$
|
|
27145
|
+
const XML_NODE_NAME$e = "w:tblCellMar";
|
|
27050
27146
|
const SD_ATTR_KEY$2 = "cellMargins";
|
|
27051
27147
|
const encode$k = (params2) => {
|
|
27052
27148
|
const { nodes } = params2;
|
|
@@ -27054,11 +27150,11 @@ const encode$k = (params2) => {
|
|
|
27054
27150
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName$1);
|
|
27055
27151
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
27056
27152
|
};
|
|
27057
|
-
const decode$
|
|
27153
|
+
const decode$m = (params2) => {
|
|
27058
27154
|
const { cellMargins = {} } = params2.node.attrs || {};
|
|
27059
27155
|
const elements = decodeProperties(propertyTranslatorsBySdName$1, cellMargins);
|
|
27060
27156
|
const newNode = {
|
|
27061
|
-
name: XML_NODE_NAME$
|
|
27157
|
+
name: XML_NODE_NAME$e,
|
|
27062
27158
|
type: "element",
|
|
27063
27159
|
attributes: {},
|
|
27064
27160
|
elements
|
|
@@ -27080,26 +27176,26 @@ propertyTranslators$1.forEach((translator2) => {
|
|
|
27080
27176
|
propertyTranslatorsBySdName$1[translator2.sdNodeOrKeyName] = translator2;
|
|
27081
27177
|
});
|
|
27082
27178
|
const translator$e = NodeTranslator.from({
|
|
27083
|
-
xmlName: XML_NODE_NAME$
|
|
27179
|
+
xmlName: XML_NODE_NAME$e,
|
|
27084
27180
|
sdNodeOrKeyName: SD_ATTR_KEY$2,
|
|
27085
27181
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27086
27182
|
attributes: [],
|
|
27087
27183
|
encode: encode$k,
|
|
27088
|
-
decode: decode$
|
|
27184
|
+
decode: decode$m
|
|
27089
27185
|
});
|
|
27090
|
-
const XML_NODE_NAME$
|
|
27186
|
+
const XML_NODE_NAME$d = "w:tblPr";
|
|
27091
27187
|
const SD_ATTR_KEY$1 = "tableProperties";
|
|
27092
27188
|
const encode$j = (params2) => {
|
|
27093
27189
|
const { nodes } = params2;
|
|
27094
27190
|
const node = nodes[0];
|
|
27095
27191
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName);
|
|
27096
27192
|
return {
|
|
27097
|
-
xmlName: XML_NODE_NAME$
|
|
27193
|
+
xmlName: XML_NODE_NAME$d,
|
|
27098
27194
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
27099
27195
|
attributes
|
|
27100
27196
|
};
|
|
27101
27197
|
};
|
|
27102
|
-
const decode$
|
|
27198
|
+
const decode$l = (params2) => {
|
|
27103
27199
|
const { tableProperties = {} } = params2.node.attrs || {};
|
|
27104
27200
|
const elements = decodeProperties(propertyTranslatorsBySdName, tableProperties);
|
|
27105
27201
|
const newNode = {
|
|
@@ -27136,10 +27232,10 @@ propertyTranslators.forEach((translator2) => {
|
|
|
27136
27232
|
propertyTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
27137
27233
|
});
|
|
27138
27234
|
const config$c = {
|
|
27139
|
-
xmlName: XML_NODE_NAME$
|
|
27235
|
+
xmlName: XML_NODE_NAME$d,
|
|
27140
27236
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
27141
27237
|
encode: encode$j,
|
|
27142
|
-
decode: decode$
|
|
27238
|
+
decode: decode$l
|
|
27143
27239
|
};
|
|
27144
27240
|
const translator$d = NodeTranslator.from(config$c);
|
|
27145
27241
|
const translator$c = NodeTranslator.from(
|
|
@@ -27192,7 +27288,7 @@ const resolveFallbackColumnWidthTwips = (params2, totalColumns, cellMinWidthTwip
|
|
|
27192
27288
|
}
|
|
27193
27289
|
return Math.max(fallbackWidthTwips, cellMinWidthTwips);
|
|
27194
27290
|
};
|
|
27195
|
-
const XML_NODE_NAME$
|
|
27291
|
+
const XML_NODE_NAME$c = "w:tblGrid";
|
|
27196
27292
|
const SD_ATTR_KEY = "grid";
|
|
27197
27293
|
const cellMinWidth = pixelsToTwips(10);
|
|
27198
27294
|
const encode$i = (params2) => {
|
|
@@ -27200,12 +27296,12 @@ const encode$i = (params2) => {
|
|
|
27200
27296
|
const node = nodes[0];
|
|
27201
27297
|
const attributes = encodeProperties(node, { [translator$c.xmlName]: translator$c }, true);
|
|
27202
27298
|
return {
|
|
27203
|
-
xmlName: XML_NODE_NAME$
|
|
27299
|
+
xmlName: XML_NODE_NAME$c,
|
|
27204
27300
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
27205
27301
|
attributes
|
|
27206
27302
|
};
|
|
27207
27303
|
};
|
|
27208
|
-
const decode$
|
|
27304
|
+
const decode$k = (params2) => {
|
|
27209
27305
|
const { grid: rawGrid } = params2.node.attrs || {};
|
|
27210
27306
|
const grid = Array.isArray(rawGrid) ? rawGrid : [];
|
|
27211
27307
|
const { firstRow = {} } = params2.extraParams || {};
|
|
@@ -27262,17 +27358,17 @@ const decode$i = (params2) => {
|
|
|
27262
27358
|
columnIndex++;
|
|
27263
27359
|
}
|
|
27264
27360
|
const newNode = {
|
|
27265
|
-
name: XML_NODE_NAME$
|
|
27361
|
+
name: XML_NODE_NAME$c,
|
|
27266
27362
|
attributes: {},
|
|
27267
27363
|
elements
|
|
27268
27364
|
};
|
|
27269
27365
|
return newNode;
|
|
27270
27366
|
};
|
|
27271
27367
|
const config$b = {
|
|
27272
|
-
xmlName: XML_NODE_NAME$
|
|
27368
|
+
xmlName: XML_NODE_NAME$c,
|
|
27273
27369
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
27274
27370
|
encode: encode$i,
|
|
27275
|
-
decode: decode$
|
|
27371
|
+
decode: decode$k
|
|
27276
27372
|
};
|
|
27277
27373
|
const translator$b = NodeTranslator.from(config$b);
|
|
27278
27374
|
const DEFAULT_PAGE_WIDTH_TWIPS = 12240;
|
|
@@ -27337,8 +27433,8 @@ const buildFallbackGridForTable = ({ params: params2, rows, tableWidth, tableWid
|
|
|
27337
27433
|
columnWidths: Array(columnCount).fill(fallbackColumnWidthPx)
|
|
27338
27434
|
};
|
|
27339
27435
|
};
|
|
27340
|
-
const XML_NODE_NAME$
|
|
27341
|
-
const SD_NODE_NAME$
|
|
27436
|
+
const XML_NODE_NAME$b = "w:tbl";
|
|
27437
|
+
const SD_NODE_NAME$b = "table";
|
|
27342
27438
|
const encode$h = (params2, encodedAttrs) => {
|
|
27343
27439
|
const { nodes } = params2;
|
|
27344
27440
|
const node = nodes[0];
|
|
@@ -27427,7 +27523,7 @@ const encode$h = (params2, encodedAttrs) => {
|
|
|
27427
27523
|
columnWidths
|
|
27428
27524
|
}
|
|
27429
27525
|
});
|
|
27430
|
-
if (result
|
|
27526
|
+
if (result) content.push(result);
|
|
27431
27527
|
});
|
|
27432
27528
|
return {
|
|
27433
27529
|
type: "table",
|
|
@@ -27435,7 +27531,7 @@ const encode$h = (params2, encodedAttrs) => {
|
|
|
27435
27531
|
attrs: encodedAttrs
|
|
27436
27532
|
};
|
|
27437
27533
|
};
|
|
27438
|
-
const decode$
|
|
27534
|
+
const decode$j = (params2, decodedAttrs) => {
|
|
27439
27535
|
params2.node = preProcessVerticalMergeCells(params2.node, params2);
|
|
27440
27536
|
const { node } = params2;
|
|
27441
27537
|
const elements = translateChildNodes(params2);
|
|
@@ -27535,11 +27631,11 @@ function _getReferencedTableStyles(tableStyleReference, params2) {
|
|
|
27535
27631
|
return stylesToReturn;
|
|
27536
27632
|
}
|
|
27537
27633
|
const config$a = {
|
|
27538
|
-
xmlName: XML_NODE_NAME$
|
|
27539
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
27634
|
+
xmlName: XML_NODE_NAME$b,
|
|
27635
|
+
sdNodeOrKeyName: SD_NODE_NAME$b,
|
|
27540
27636
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27541
27637
|
encode: encode$h,
|
|
27542
|
-
decode: decode$
|
|
27638
|
+
decode: decode$j,
|
|
27543
27639
|
attributes: []
|
|
27544
27640
|
};
|
|
27545
27641
|
const translator$a = NodeTranslator.from(config$a);
|
|
@@ -27905,8 +28001,8 @@ function generateCellMargins(cellMargins) {
|
|
|
27905
28001
|
if (left2 != null) elements.push({ name: "w:left", attributes: { "w:w": pixelsToTwips(left2) } });
|
|
27906
28002
|
return elements;
|
|
27907
28003
|
}
|
|
27908
|
-
const XML_NODE_NAME$
|
|
27909
|
-
const SD_NODE_NAME$
|
|
28004
|
+
const XML_NODE_NAME$a = "w:tc";
|
|
28005
|
+
const SD_NODE_NAME$a = "tableCell";
|
|
27910
28006
|
const validXmlAttributes$7 = [];
|
|
27911
28007
|
function encode$g(params2, encodedAttrs) {
|
|
27912
28008
|
const {
|
|
@@ -27935,7 +28031,7 @@ function encode$g(params2, encodedAttrs) {
|
|
|
27935
28031
|
}
|
|
27936
28032
|
return schemaNode;
|
|
27937
28033
|
}
|
|
27938
|
-
function decode$
|
|
28034
|
+
function decode$i(params2, decodedAttrs) {
|
|
27939
28035
|
const translated = translateTableCell(params2);
|
|
27940
28036
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
27941
28037
|
translated.attributes = { ...translated.attributes || {}, ...decodedAttrs };
|
|
@@ -27943,11 +28039,11 @@ function decode$g(params2, decodedAttrs) {
|
|
|
27943
28039
|
return translated;
|
|
27944
28040
|
}
|
|
27945
28041
|
const config$9 = {
|
|
27946
|
-
xmlName: XML_NODE_NAME$
|
|
27947
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28042
|
+
xmlName: XML_NODE_NAME$a,
|
|
28043
|
+
sdNodeOrKeyName: SD_NODE_NAME$a,
|
|
27948
28044
|
type: NodeTranslator.translatorTypes.NODE,
|
|
27949
28045
|
encode: encode$g,
|
|
27950
|
-
decode: decode$
|
|
28046
|
+
decode: decode$i,
|
|
27951
28047
|
attributes: validXmlAttributes$7
|
|
27952
28048
|
};
|
|
27953
28049
|
const translator$9 = NodeTranslator.from(config$9);
|
|
@@ -28769,8 +28865,8 @@ function translateAnchorNode(params2) {
|
|
|
28769
28865
|
elements: [...anchorElements, ...elementsWithWrap]
|
|
28770
28866
|
};
|
|
28771
28867
|
}
|
|
28772
|
-
const XML_NODE_NAME$
|
|
28773
|
-
const SD_NODE_NAME$
|
|
28868
|
+
const XML_NODE_NAME$9 = "wp:anchor";
|
|
28869
|
+
const SD_NODE_NAME$9 = ["image"];
|
|
28774
28870
|
const validXmlAttributes$6 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
28775
28871
|
function encode$f(params2) {
|
|
28776
28872
|
const { node } = params2.extraParams;
|
|
@@ -28779,7 +28875,7 @@ function encode$f(params2) {
|
|
|
28779
28875
|
}
|
|
28780
28876
|
return handleAnchorNode(params2);
|
|
28781
28877
|
}
|
|
28782
|
-
function decode$
|
|
28878
|
+
function decode$h(params2) {
|
|
28783
28879
|
const { node } = params2;
|
|
28784
28880
|
if (!node || !node.type) {
|
|
28785
28881
|
return null;
|
|
@@ -28787,11 +28883,11 @@ function decode$f(params2) {
|
|
|
28787
28883
|
return translateAnchorNode(params2);
|
|
28788
28884
|
}
|
|
28789
28885
|
const config$8 = {
|
|
28790
|
-
xmlName: XML_NODE_NAME$
|
|
28791
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28886
|
+
xmlName: XML_NODE_NAME$9,
|
|
28887
|
+
sdNodeOrKeyName: SD_NODE_NAME$9,
|
|
28792
28888
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28793
28889
|
encode: encode$f,
|
|
28794
|
-
decode: decode$
|
|
28890
|
+
decode: decode$h,
|
|
28795
28891
|
attributes: validXmlAttributes$6
|
|
28796
28892
|
};
|
|
28797
28893
|
const translator$8 = NodeTranslator.from(config$8);
|
|
@@ -28810,8 +28906,8 @@ function translateInlineNode(params2) {
|
|
|
28810
28906
|
elements: nodeElements.elements
|
|
28811
28907
|
};
|
|
28812
28908
|
}
|
|
28813
|
-
const XML_NODE_NAME$
|
|
28814
|
-
const SD_NODE_NAME$
|
|
28909
|
+
const XML_NODE_NAME$8 = "wp:inline";
|
|
28910
|
+
const SD_NODE_NAME$8 = ["image"];
|
|
28815
28911
|
const validXmlAttributes$5 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
28816
28912
|
function encode$e(params2) {
|
|
28817
28913
|
const { node } = params2.extraParams;
|
|
@@ -28820,7 +28916,7 @@ function encode$e(params2) {
|
|
|
28820
28916
|
}
|
|
28821
28917
|
return handleInlineNode(params2);
|
|
28822
28918
|
}
|
|
28823
|
-
function decode$
|
|
28919
|
+
function decode$g(params2) {
|
|
28824
28920
|
const { node } = params2;
|
|
28825
28921
|
if (!node || !node.type) {
|
|
28826
28922
|
return null;
|
|
@@ -28828,16 +28924,16 @@ function decode$e(params2) {
|
|
|
28828
28924
|
return translateInlineNode(params2);
|
|
28829
28925
|
}
|
|
28830
28926
|
const config$7 = {
|
|
28831
|
-
xmlName: XML_NODE_NAME$
|
|
28832
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28927
|
+
xmlName: XML_NODE_NAME$8,
|
|
28928
|
+
sdNodeOrKeyName: SD_NODE_NAME$8,
|
|
28833
28929
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28834
28930
|
encode: encode$e,
|
|
28835
|
-
decode: decode$
|
|
28931
|
+
decode: decode$g,
|
|
28836
28932
|
attributes: validXmlAttributes$5
|
|
28837
28933
|
};
|
|
28838
28934
|
const translator$7 = NodeTranslator.from(config$7);
|
|
28839
|
-
const XML_NODE_NAME$
|
|
28840
|
-
const SD_NODE_NAME$
|
|
28935
|
+
const XML_NODE_NAME$7 = "w:drawing";
|
|
28936
|
+
const SD_NODE_NAME$7 = [];
|
|
28841
28937
|
const validXmlAttributes$4 = [];
|
|
28842
28938
|
function encode$d(params2) {
|
|
28843
28939
|
const nodes = params2.nodes;
|
|
@@ -28853,7 +28949,7 @@ function encode$d(params2) {
|
|
|
28853
28949
|
return translator2.encode({ ...params2, extraParams: { node: child } }) || acc;
|
|
28854
28950
|
}, null);
|
|
28855
28951
|
}
|
|
28856
|
-
function decode$
|
|
28952
|
+
function decode$f(params2) {
|
|
28857
28953
|
const { node } = params2;
|
|
28858
28954
|
if (!node || !node.type) {
|
|
28859
28955
|
return null;
|
|
@@ -28869,11 +28965,11 @@ function decode$d(params2) {
|
|
|
28869
28965
|
);
|
|
28870
28966
|
}
|
|
28871
28967
|
const config$6 = {
|
|
28872
|
-
xmlName: XML_NODE_NAME$
|
|
28873
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
28968
|
+
xmlName: XML_NODE_NAME$7,
|
|
28969
|
+
sdNodeOrKeyName: SD_NODE_NAME$7,
|
|
28874
28970
|
type: NodeTranslator.translatorTypes.NODE,
|
|
28875
28971
|
encode: encode$d,
|
|
28876
|
-
decode: decode$
|
|
28972
|
+
decode: decode$f,
|
|
28877
28973
|
attributes: validXmlAttributes$4
|
|
28878
28974
|
};
|
|
28879
28975
|
const translator$6 = NodeTranslator.from(config$6);
|
|
@@ -30126,7 +30222,7 @@ function requireHe() {
|
|
|
30126
30222
|
return he$2.exports;
|
|
30127
30223
|
}
|
|
30128
30224
|
var heExports = requireHe();
|
|
30129
|
-
const he = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
30225
|
+
const he = /* @__PURE__ */ getDefaultExportFromCjs$2(heExports);
|
|
30130
30226
|
function translateFieldAnnotation(params2) {
|
|
30131
30227
|
const { node, isFinalDoc, fieldsHighlightColor } = params2;
|
|
30132
30228
|
const { attrs = {} } = node;
|
|
@@ -30528,8 +30624,8 @@ function generateSdtPrTagForStructuredContent({ node }) {
|
|
|
30528
30624
|
};
|
|
30529
30625
|
return result;
|
|
30530
30626
|
}
|
|
30531
|
-
const XML_NODE_NAME$
|
|
30532
|
-
const SD_NODE_NAME$
|
|
30627
|
+
const XML_NODE_NAME$6 = "w:sdt";
|
|
30628
|
+
const SD_NODE_NAME$6 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
|
|
30533
30629
|
const validXmlAttributes$3 = [];
|
|
30534
30630
|
function encode$c(params2) {
|
|
30535
30631
|
const nodes = params2.nodes;
|
|
@@ -30541,7 +30637,7 @@ function encode$c(params2) {
|
|
|
30541
30637
|
const result = handler2(params2);
|
|
30542
30638
|
return result;
|
|
30543
30639
|
}
|
|
30544
|
-
function decode$
|
|
30640
|
+
function decode$e(params2) {
|
|
30545
30641
|
const { node } = params2;
|
|
30546
30642
|
if (!node || !node.type) {
|
|
30547
30643
|
return null;
|
|
@@ -30560,84 +30656,84 @@ function decode$c(params2) {
|
|
|
30560
30656
|
return result;
|
|
30561
30657
|
}
|
|
30562
30658
|
const config$5 = {
|
|
30563
|
-
xmlName: XML_NODE_NAME$
|
|
30564
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30659
|
+
xmlName: XML_NODE_NAME$6,
|
|
30660
|
+
sdNodeOrKeyName: SD_NODE_NAME$6,
|
|
30565
30661
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30566
30662
|
encode: encode$c,
|
|
30567
|
-
decode: decode$
|
|
30663
|
+
decode: decode$e,
|
|
30568
30664
|
attributes: validXmlAttributes$3
|
|
30569
30665
|
};
|
|
30570
30666
|
const translator$5 = NodeTranslator.from(config$5);
|
|
30571
30667
|
const encode$b = (attributes) => {
|
|
30572
30668
|
return attributes["w:id"];
|
|
30573
30669
|
};
|
|
30574
|
-
const decode$
|
|
30670
|
+
const decode$d = (attrs) => {
|
|
30575
30671
|
return attrs.id;
|
|
30576
30672
|
};
|
|
30577
|
-
const attrConfig$
|
|
30673
|
+
const attrConfig$7 = Object.freeze({
|
|
30578
30674
|
xmlName: "w:id",
|
|
30579
30675
|
sdName: "id",
|
|
30580
30676
|
encode: encode$b,
|
|
30581
|
-
decode: decode$
|
|
30677
|
+
decode: decode$d
|
|
30582
30678
|
});
|
|
30583
30679
|
const encode$a = (attributes) => {
|
|
30584
30680
|
return attributes["w:name"];
|
|
30585
30681
|
};
|
|
30586
|
-
const decode$
|
|
30682
|
+
const decode$c = (attrs) => {
|
|
30587
30683
|
return attrs.name;
|
|
30588
30684
|
};
|
|
30589
|
-
const attrConfig$
|
|
30685
|
+
const attrConfig$6 = Object.freeze({
|
|
30590
30686
|
xmlName: "w:name",
|
|
30591
30687
|
sdName: "name",
|
|
30592
30688
|
encode: encode$a,
|
|
30593
|
-
decode: decode$
|
|
30689
|
+
decode: decode$c
|
|
30594
30690
|
});
|
|
30595
30691
|
const encode$9 = (attributes) => {
|
|
30596
30692
|
return attributes["w:colFirst"];
|
|
30597
30693
|
};
|
|
30598
|
-
const decode$
|
|
30694
|
+
const decode$b = (attrs) => {
|
|
30599
30695
|
return attrs.colFirst;
|
|
30600
30696
|
};
|
|
30601
|
-
const attrConfig$
|
|
30697
|
+
const attrConfig$5 = Object.freeze({
|
|
30602
30698
|
xmlName: "w:colFirst",
|
|
30603
30699
|
sdName: "colFirst",
|
|
30604
30700
|
encode: encode$9,
|
|
30605
|
-
decode: decode$
|
|
30701
|
+
decode: decode$b
|
|
30606
30702
|
});
|
|
30607
30703
|
const encode$8 = (attributes) => {
|
|
30608
30704
|
return attributes["w:colLast"];
|
|
30609
30705
|
};
|
|
30610
|
-
const decode$
|
|
30706
|
+
const decode$a = (attrs) => {
|
|
30611
30707
|
return attrs.colLast;
|
|
30612
30708
|
};
|
|
30613
|
-
const attrConfig$
|
|
30709
|
+
const attrConfig$4 = Object.freeze({
|
|
30614
30710
|
xmlName: "w:colLast",
|
|
30615
30711
|
sdName: "colLast",
|
|
30616
30712
|
encode: encode$8,
|
|
30617
|
-
decode: decode$
|
|
30713
|
+
decode: decode$a
|
|
30618
30714
|
});
|
|
30619
30715
|
const encode$7 = (attributes) => {
|
|
30620
30716
|
return attributes["w:displacedByCustomXml"];
|
|
30621
30717
|
};
|
|
30622
|
-
const decode$
|
|
30718
|
+
const decode$9 = (attrs) => {
|
|
30623
30719
|
return attrs.displacedByCustomXml;
|
|
30624
30720
|
};
|
|
30625
|
-
const attrConfig$
|
|
30721
|
+
const attrConfig$3 = Object.freeze({
|
|
30626
30722
|
xmlName: "w:displacedByCustomXml",
|
|
30627
30723
|
sdName: "displacedByCustomXml",
|
|
30628
30724
|
encode: encode$7,
|
|
30629
|
-
decode: decode$
|
|
30725
|
+
decode: decode$9
|
|
30630
30726
|
});
|
|
30631
|
-
const validXmlAttributes$2 = [attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3
|
|
30632
|
-
const XML_NODE_NAME$
|
|
30633
|
-
const SD_NODE_NAME$
|
|
30727
|
+
const validXmlAttributes$2 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
|
|
30728
|
+
const XML_NODE_NAME$5 = "w:bookmarkStart";
|
|
30729
|
+
const SD_NODE_NAME$5 = "bookmarkStart";
|
|
30634
30730
|
const encode$6 = (params2, encodedAttrs = {}) => {
|
|
30635
30731
|
return {
|
|
30636
30732
|
type: "bookmarkStart",
|
|
30637
30733
|
attrs: encodedAttrs
|
|
30638
30734
|
};
|
|
30639
30735
|
};
|
|
30640
|
-
const decode$
|
|
30736
|
+
const decode$8 = (params2, decodedAttrs = {}) => {
|
|
30641
30737
|
const result = {
|
|
30642
30738
|
name: "w:bookmarkStart",
|
|
30643
30739
|
elements: []
|
|
@@ -30648,48 +30744,48 @@ const decode$6 = (params2, decodedAttrs = {}) => {
|
|
|
30648
30744
|
return result;
|
|
30649
30745
|
};
|
|
30650
30746
|
const config$4 = {
|
|
30651
|
-
xmlName: XML_NODE_NAME$
|
|
30652
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30747
|
+
xmlName: XML_NODE_NAME$5,
|
|
30748
|
+
sdNodeOrKeyName: SD_NODE_NAME$5,
|
|
30653
30749
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30654
30750
|
encode: encode$6,
|
|
30655
|
-
decode: decode$
|
|
30751
|
+
decode: decode$8,
|
|
30656
30752
|
attributes: validXmlAttributes$2
|
|
30657
30753
|
};
|
|
30658
30754
|
const translator$4 = NodeTranslator.from(config$4);
|
|
30659
30755
|
const encode$5 = (attributes) => {
|
|
30660
30756
|
return attributes["w:id"];
|
|
30661
30757
|
};
|
|
30662
|
-
const decode$
|
|
30758
|
+
const decode$7 = (attrs) => {
|
|
30663
30759
|
return attrs.id;
|
|
30664
30760
|
};
|
|
30665
|
-
const attrConfig$
|
|
30761
|
+
const attrConfig$2 = Object.freeze({
|
|
30666
30762
|
xmlName: "w:id",
|
|
30667
30763
|
sdName: "id",
|
|
30668
30764
|
encode: encode$5,
|
|
30669
|
-
decode: decode$
|
|
30765
|
+
decode: decode$7
|
|
30670
30766
|
});
|
|
30671
30767
|
const encode$4 = (attributes) => {
|
|
30672
30768
|
return attributes["w:displacedByCustomXml"];
|
|
30673
30769
|
};
|
|
30674
|
-
const decode$
|
|
30770
|
+
const decode$6 = (attrs) => {
|
|
30675
30771
|
return attrs.displacedByCustomXml;
|
|
30676
30772
|
};
|
|
30677
|
-
const attrConfig = Object.freeze({
|
|
30773
|
+
const attrConfig$1 = Object.freeze({
|
|
30678
30774
|
xmlName: "w:displacedByCustomXml",
|
|
30679
30775
|
sdName: "displacedByCustomXml",
|
|
30680
30776
|
encode: encode$4,
|
|
30681
|
-
decode: decode$
|
|
30777
|
+
decode: decode$6
|
|
30682
30778
|
});
|
|
30683
|
-
const validXmlAttributes$1 = [attrConfig$
|
|
30684
|
-
const XML_NODE_NAME$
|
|
30685
|
-
const SD_NODE_NAME$
|
|
30779
|
+
const validXmlAttributes$1 = [attrConfig$2, attrConfig$1];
|
|
30780
|
+
const XML_NODE_NAME$4 = "w:bookmarkEnd";
|
|
30781
|
+
const SD_NODE_NAME$4 = "bookmarkEnd";
|
|
30686
30782
|
const encode$3 = (params2, encodedAttrs = {}) => {
|
|
30687
30783
|
return {
|
|
30688
30784
|
type: "bookmarkEnd",
|
|
30689
30785
|
attrs: encodedAttrs
|
|
30690
30786
|
};
|
|
30691
30787
|
};
|
|
30692
|
-
const decode$
|
|
30788
|
+
const decode$5 = (params2, decodedAttrs = {}) => {
|
|
30693
30789
|
const result = {
|
|
30694
30790
|
name: "w:bookmarkEnd",
|
|
30695
30791
|
elements: []
|
|
@@ -30700,16 +30796,16 @@ const decode$3 = (params2, decodedAttrs = {}) => {
|
|
|
30700
30796
|
return result;
|
|
30701
30797
|
};
|
|
30702
30798
|
const config$3 = {
|
|
30703
|
-
xmlName: XML_NODE_NAME$
|
|
30704
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30799
|
+
xmlName: XML_NODE_NAME$4,
|
|
30800
|
+
sdNodeOrKeyName: SD_NODE_NAME$4,
|
|
30705
30801
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30706
30802
|
encode: encode$3,
|
|
30707
|
-
decode: decode$
|
|
30803
|
+
decode: decode$5,
|
|
30708
30804
|
attributes: validXmlAttributes$1
|
|
30709
30805
|
};
|
|
30710
30806
|
const translator$3 = NodeTranslator.from(config$3);
|
|
30711
|
-
const XML_NODE_NAME$
|
|
30712
|
-
const SD_NODE_NAME$
|
|
30807
|
+
const XML_NODE_NAME$3 = "mc:AlternateContent";
|
|
30808
|
+
const SD_NODE_NAME$3 = [];
|
|
30713
30809
|
const validXmlAttributes = [];
|
|
30714
30810
|
function encode$2(params2) {
|
|
30715
30811
|
const { nodeListHandler } = params2;
|
|
@@ -30731,7 +30827,7 @@ function encode$2(params2) {
|
|
|
30731
30827
|
path: [...params2.path || [], wpsNode]
|
|
30732
30828
|
});
|
|
30733
30829
|
}
|
|
30734
|
-
function decode$
|
|
30830
|
+
function decode$4(params2) {
|
|
30735
30831
|
const { node } = params2;
|
|
30736
30832
|
const { drawingContent } = node.attrs;
|
|
30737
30833
|
const drawing = {
|
|
@@ -30749,14 +30845,78 @@ function decode$2(params2) {
|
|
|
30749
30845
|
};
|
|
30750
30846
|
}
|
|
30751
30847
|
const config$2 = {
|
|
30752
|
-
xmlName: XML_NODE_NAME$
|
|
30753
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30848
|
+
xmlName: XML_NODE_NAME$3,
|
|
30849
|
+
sdNodeOrKeyName: SD_NODE_NAME$3,
|
|
30754
30850
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30755
30851
|
encode: encode$2,
|
|
30756
|
-
decode: decode$
|
|
30852
|
+
decode: decode$4,
|
|
30757
30853
|
attributes: validXmlAttributes
|
|
30758
30854
|
};
|
|
30759
30855
|
const translator$2 = NodeTranslator.from(config$2);
|
|
30856
|
+
const decode$3 = (attrs) => attrs?.["w:id"];
|
|
30857
|
+
const attrConfig = Object.freeze({
|
|
30858
|
+
xmlName: "w:id",
|
|
30859
|
+
sdName: "w:id",
|
|
30860
|
+
// We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
|
|
30861
|
+
encode: () => {
|
|
30862
|
+
},
|
|
30863
|
+
decode: decode$3
|
|
30864
|
+
});
|
|
30865
|
+
const XML_NODE_NAME$2 = "w:commentRange";
|
|
30866
|
+
const SD_NODE_NAME$2 = "commentRange";
|
|
30867
|
+
const decode$2 = (params2, decodedAttrs) => {
|
|
30868
|
+
const { node, comments, commentsExportType, exportedCommentDefs } = params2;
|
|
30869
|
+
if (!node) return;
|
|
30870
|
+
if (!comments) return;
|
|
30871
|
+
if (exportedCommentDefs?.length === 0) return;
|
|
30872
|
+
if (commentsExportType === "clean") return;
|
|
30873
|
+
const commentNodeId = node.attrs["w:id"];
|
|
30874
|
+
const originalComment = comments.find((comment) => {
|
|
30875
|
+
return comment.commentId == commentNodeId;
|
|
30876
|
+
});
|
|
30877
|
+
if (!originalComment) return;
|
|
30878
|
+
const parentCommentId = originalComment.parentCommentId;
|
|
30879
|
+
const parentComment = comments.find(
|
|
30880
|
+
({ commentId, importedId }) => commentId === parentCommentId || importedId === parentCommentId
|
|
30881
|
+
);
|
|
30882
|
+
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
30883
|
+
if (commentsExportType === "external" && isInternal) return;
|
|
30884
|
+
const isResolved = !!originalComment.resolvedTime;
|
|
30885
|
+
if (isResolved) return;
|
|
30886
|
+
if (node.type !== "commentRangeStart" && node.type !== "commentRangeEnd") {
|
|
30887
|
+
return;
|
|
30888
|
+
}
|
|
30889
|
+
const { type: type2 } = node;
|
|
30890
|
+
const commentIndex = comments.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
30891
|
+
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
30892
|
+
if (type2 === "commentRangeEnd") {
|
|
30893
|
+
const commentReference = {
|
|
30894
|
+
name: "w:r",
|
|
30895
|
+
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
30896
|
+
};
|
|
30897
|
+
commentSchema = [commentSchema, commentReference];
|
|
30898
|
+
}
|
|
30899
|
+
return commentSchema;
|
|
30900
|
+
};
|
|
30901
|
+
const getCommentSchema = (type2, commentIndex) => {
|
|
30902
|
+
return {
|
|
30903
|
+
name: `w:${type2}`,
|
|
30904
|
+
attributes: {
|
|
30905
|
+
"w:id": String(commentIndex)
|
|
30906
|
+
}
|
|
30907
|
+
};
|
|
30908
|
+
};
|
|
30909
|
+
const getConfig = (type2) => ({
|
|
30910
|
+
xmlName: `${XML_NODE_NAME$2}${type2}`,
|
|
30911
|
+
sdNodeOrKeyName: `${SD_NODE_NAME$2}${type2}`,
|
|
30912
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
30913
|
+
encode: () => {
|
|
30914
|
+
},
|
|
30915
|
+
decode: decode$2,
|
|
30916
|
+
attributes: [attrConfig]
|
|
30917
|
+
});
|
|
30918
|
+
const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
|
|
30919
|
+
const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
|
|
30760
30920
|
const XML_NODE_NAME$1 = "sd:pageReference";
|
|
30761
30921
|
const SD_NODE_NAME$1 = "pageReference";
|
|
30762
30922
|
const encode$1 = (params2, _2) => {
|
|
@@ -31016,8 +31176,8 @@ function exportSchemaToJson(params2) {
|
|
|
31016
31176
|
tab: translator$17,
|
|
31017
31177
|
image: translator$6,
|
|
31018
31178
|
hardBreak: translator$19,
|
|
31019
|
-
commentRangeStart:
|
|
31020
|
-
commentRangeEnd:
|
|
31179
|
+
commentRangeStart: commentRangeStartTranslator,
|
|
31180
|
+
commentRangeEnd: commentRangeEndTranslator,
|
|
31021
31181
|
commentReference: () => null,
|
|
31022
31182
|
shapeContainer: translateShapeContainer,
|
|
31023
31183
|
shapeTextbox: translateShapeTextbox,
|
|
@@ -33291,7 +33451,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33291
33451
|
fileType: filePath.split(".").pop()
|
|
33292
33452
|
};
|
|
33293
33453
|
});
|
|
33294
|
-
converter.telemetry.trackFileStructure(
|
|
33454
|
+
const trackStructure = (documentIdentifier = null) => converter.telemetry.trackFileStructure(
|
|
33295
33455
|
{
|
|
33296
33456
|
totalFiles: files.length,
|
|
33297
33457
|
maxDepth: Math.max(...files.map((f) => f.fileDepth)),
|
|
@@ -33299,9 +33459,20 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33299
33459
|
files
|
|
33300
33460
|
},
|
|
33301
33461
|
converter.fileSource,
|
|
33302
|
-
converter.documentId,
|
|
33462
|
+
converter.documentGuid ?? converter.documentId ?? null,
|
|
33463
|
+
documentIdentifier ?? converter.documentId ?? null,
|
|
33303
33464
|
converter.documentInternalId
|
|
33304
33465
|
);
|
|
33466
|
+
try {
|
|
33467
|
+
const identifierResult = converter.getDocumentIdentifier?.();
|
|
33468
|
+
if (identifierResult && typeof identifierResult.then === "function") {
|
|
33469
|
+
identifierResult.then(trackStructure).catch(() => trackStructure());
|
|
33470
|
+
} else {
|
|
33471
|
+
trackStructure(identifierResult);
|
|
33472
|
+
}
|
|
33473
|
+
} catch (error) {
|
|
33474
|
+
trackStructure();
|
|
33475
|
+
}
|
|
33305
33476
|
}
|
|
33306
33477
|
const nodeListHandler = defaultNodeListHandler();
|
|
33307
33478
|
const bodyNode = json.elements[0].elements.find((el) => el.name === "w:body");
|
|
@@ -33777,6 +33948,176 @@ const isAlternatingHeadersOddEven = (docx) => {
|
|
|
33777
33948
|
const evenOdd = elements.find((el) => el.name === "w:evenAndOddHeaders");
|
|
33778
33949
|
return !!evenOdd;
|
|
33779
33950
|
};
|
|
33951
|
+
const prepareCommentParaIds = (comment) => {
|
|
33952
|
+
const newComment = {
|
|
33953
|
+
...comment,
|
|
33954
|
+
commentParaId: generateRandom32BitHex()
|
|
33955
|
+
};
|
|
33956
|
+
return newComment;
|
|
33957
|
+
};
|
|
33958
|
+
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
33959
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
33960
|
+
const attributes = {
|
|
33961
|
+
"w:id": String(commentId),
|
|
33962
|
+
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
33963
|
+
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
33964
|
+
"w:date": toIsoNoFractional(comment.createdTime),
|
|
33965
|
+
"w:initials": getInitials(comment.creatorName),
|
|
33966
|
+
"w:done": comment.resolvedTime ? "1" : "0",
|
|
33967
|
+
"w15:paraId": comment.commentParaId,
|
|
33968
|
+
"custom:internalId": comment.commentId || comment.internalId,
|
|
33969
|
+
"custom:trackedChange": comment.trackedChange,
|
|
33970
|
+
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
33971
|
+
"custom:trackedChangeType": comment.trackedChangeType,
|
|
33972
|
+
"custom:trackedDeletedText": comment.deletedText || null
|
|
33973
|
+
};
|
|
33974
|
+
if (comment?.parentCommentId) {
|
|
33975
|
+
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
33976
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
33977
|
+
}
|
|
33978
|
+
return {
|
|
33979
|
+
type: "element",
|
|
33980
|
+
name: "w:comment",
|
|
33981
|
+
attributes,
|
|
33982
|
+
elements: [translatedText]
|
|
33983
|
+
};
|
|
33984
|
+
};
|
|
33985
|
+
const getInitials = (name) => {
|
|
33986
|
+
if (!name) return null;
|
|
33987
|
+
const preparedText = name.replace("(imported)", "").trim();
|
|
33988
|
+
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
33989
|
+
return initials;
|
|
33990
|
+
};
|
|
33991
|
+
const toIsoNoFractional = (unixMillis) => {
|
|
33992
|
+
const date = new Date(unixMillis || Date.now());
|
|
33993
|
+
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
33994
|
+
};
|
|
33995
|
+
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
33996
|
+
const newCommentsXml = carbonCopy(commentsXml);
|
|
33997
|
+
commentDefs.forEach((commentDef) => {
|
|
33998
|
+
const elements = commentDef.elements[0].elements;
|
|
33999
|
+
elements.unshift(COMMENT_REF);
|
|
34000
|
+
const paraId = commentDef.attributes["w15:paraId"];
|
|
34001
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
34002
|
+
commentDef.attributes = {
|
|
34003
|
+
"w:id": commentDef.attributes["w:id"],
|
|
34004
|
+
"w:author": commentDef.attributes["w:author"],
|
|
34005
|
+
"w:email": commentDef.attributes["w:email"],
|
|
34006
|
+
"w:date": commentDef.attributes["w:date"],
|
|
34007
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
34008
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
34009
|
+
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
34010
|
+
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
34011
|
+
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
34012
|
+
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
34013
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
34014
|
+
};
|
|
34015
|
+
});
|
|
34016
|
+
newCommentsXml.elements[0].elements = commentDefs;
|
|
34017
|
+
return newCommentsXml;
|
|
34018
|
+
};
|
|
34019
|
+
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
34020
|
+
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
34021
|
+
const commentsEx = comments.map((comment) => {
|
|
34022
|
+
const attributes = {
|
|
34023
|
+
"w15:paraId": comment.commentParaId,
|
|
34024
|
+
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
34025
|
+
};
|
|
34026
|
+
const parentId = comment.parentCommentId;
|
|
34027
|
+
if (parentId) {
|
|
34028
|
+
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
34029
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
34030
|
+
}
|
|
34031
|
+
return {
|
|
34032
|
+
type: "element",
|
|
34033
|
+
name: "w15:commentEx",
|
|
34034
|
+
attributes
|
|
34035
|
+
};
|
|
34036
|
+
});
|
|
34037
|
+
xmlCopy.elements[0].elements = commentsEx;
|
|
34038
|
+
return xmlCopy;
|
|
34039
|
+
};
|
|
34040
|
+
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
34041
|
+
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
34042
|
+
const extensibleUpdated = carbonCopy(extensible);
|
|
34043
|
+
documentIdsUpdated.elements[0].elements = [];
|
|
34044
|
+
extensibleUpdated.elements[0].elements = [];
|
|
34045
|
+
comments.forEach((comment) => {
|
|
34046
|
+
const newDurableId = generateRandom32BitHex();
|
|
34047
|
+
const newCommentIdDef = {
|
|
34048
|
+
type: "element",
|
|
34049
|
+
name: "w16cid:commentId",
|
|
34050
|
+
attributes: {
|
|
34051
|
+
"w16cid:paraId": comment.commentParaId,
|
|
34052
|
+
"w16cid:durableId": newDurableId
|
|
34053
|
+
}
|
|
34054
|
+
};
|
|
34055
|
+
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
34056
|
+
const newExtensible = {
|
|
34057
|
+
type: "element",
|
|
34058
|
+
name: "w16cex:commentExtensible",
|
|
34059
|
+
attributes: {
|
|
34060
|
+
"w16cex:durableId": newDurableId,
|
|
34061
|
+
"w16cex:dateUtc": toIsoNoFractional()
|
|
34062
|
+
}
|
|
34063
|
+
};
|
|
34064
|
+
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
34065
|
+
});
|
|
34066
|
+
return {
|
|
34067
|
+
documentIdsUpdated,
|
|
34068
|
+
extensibleUpdated
|
|
34069
|
+
};
|
|
34070
|
+
};
|
|
34071
|
+
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
34072
|
+
const newXml = carbonCopy(convertedXml);
|
|
34073
|
+
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
34074
|
+
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
34075
|
+
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
34076
|
+
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
34077
|
+
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
34078
|
+
return newXml;
|
|
34079
|
+
};
|
|
34080
|
+
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
34081
|
+
const updatedXml = carbonCopy(convertedXml);
|
|
34082
|
+
delete updatedXml["word/comments.xml"];
|
|
34083
|
+
delete updatedXml["word/commentsExtended.xml"];
|
|
34084
|
+
delete updatedXml["word/commentsExtensible.xml"];
|
|
34085
|
+
delete updatedXml["word/commentsIds.xml"];
|
|
34086
|
+
return updatedXml;
|
|
34087
|
+
};
|
|
34088
|
+
const generateRelationship = (target) => {
|
|
34089
|
+
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
34090
|
+
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
34091
|
+
return { ...rel };
|
|
34092
|
+
};
|
|
34093
|
+
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
34094
|
+
const relationships = [];
|
|
34095
|
+
if (exportType === "clean") {
|
|
34096
|
+
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
34097
|
+
return { documentXml, relationships };
|
|
34098
|
+
}
|
|
34099
|
+
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
34100
|
+
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
34101
|
+
relationships.push(generateRelationship("comments.xml"));
|
|
34102
|
+
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
34103
|
+
commentsWithParaIds,
|
|
34104
|
+
updatedXml["word/commentsExtended.xml"]
|
|
34105
|
+
);
|
|
34106
|
+
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
34107
|
+
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
34108
|
+
commentsWithParaIds,
|
|
34109
|
+
updatedXml["word/commentsIds.xml"],
|
|
34110
|
+
updatedXml["word/commentsExtensible.xml"]
|
|
34111
|
+
);
|
|
34112
|
+
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
34113
|
+
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
34114
|
+
relationships.push(generateRelationship("commentsIds.xml"));
|
|
34115
|
+
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
34116
|
+
return {
|
|
34117
|
+
relationships,
|
|
34118
|
+
documentXml: updatedXml
|
|
34119
|
+
};
|
|
34120
|
+
};
|
|
33780
34121
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
33781
34122
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
33782
34123
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
@@ -33852,6 +34193,9 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33852
34193
|
this.documentInternalId = null;
|
|
33853
34194
|
this.fileSource = params2?.fileSource || null;
|
|
33854
34195
|
this.documentId = params2?.documentId || null;
|
|
34196
|
+
this.documentGuid = null;
|
|
34197
|
+
this.documentHash = null;
|
|
34198
|
+
this.documentModified = false;
|
|
33855
34199
|
if (this.docx.length || this.xml) this.parseFromXml();
|
|
33856
34200
|
}
|
|
33857
34201
|
static getFontTableEntry(docx, fontName) {
|
|
@@ -33899,50 +34243,177 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33899
34243
|
this.initialJSON = this.convertedXml["word/document.xml"];
|
|
33900
34244
|
if (!this.initialJSON) this.initialJSON = this.parseXmlToJson(this.xml);
|
|
33901
34245
|
this.declaration = this.initialJSON?.declaration;
|
|
34246
|
+
this.resolveDocumentGuid();
|
|
33902
34247
|
}
|
|
33903
34248
|
parseXmlToJson(xml) {
|
|
33904
34249
|
const newXml = xml.replace(/(<w:t xml:space="preserve">)(\s+)(<\/w:t>)/g, "$1[[sdspace]]$2[[sdspace]]$3");
|
|
33905
34250
|
return JSON.parse(xmljs.xml2json(newXml, null, 2));
|
|
33906
34251
|
}
|
|
33907
|
-
|
|
34252
|
+
/**
|
|
34253
|
+
* Generic method to get a stored custom property from docx
|
|
34254
|
+
* @static
|
|
34255
|
+
* @param {Array} docx - Array of docx file objects
|
|
34256
|
+
* @param {string} propertyName - Name of the property to retrieve
|
|
34257
|
+
* @returns {string|null} The property value or null if not found
|
|
34258
|
+
*/
|
|
34259
|
+
static getStoredCustomProperty(docx, propertyName) {
|
|
33908
34260
|
try {
|
|
33909
34261
|
const customXml = docx.find((doc2) => doc2.name === "docProps/custom.xml");
|
|
33910
|
-
if (!customXml) return;
|
|
34262
|
+
if (!customXml) return null;
|
|
33911
34263
|
const converter = new _SuperConverter2();
|
|
33912
34264
|
const content = customXml.content;
|
|
33913
34265
|
const contentJson = converter.parseXmlToJson(content);
|
|
33914
34266
|
const properties = contentJson.elements.find((el) => el.name === "Properties");
|
|
33915
|
-
if (!properties.elements) return;
|
|
33916
|
-
const
|
|
33917
|
-
|
|
33918
|
-
|
|
33919
|
-
if (!superdocVersion) return;
|
|
33920
|
-
const version2 = superdocVersion.elements[0].elements[0].text;
|
|
33921
|
-
return version2;
|
|
34267
|
+
if (!properties.elements) return null;
|
|
34268
|
+
const property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34269
|
+
if (!property2) return null;
|
|
34270
|
+
return property2.elements[0].elements[0].text;
|
|
33922
34271
|
} catch (e) {
|
|
33923
|
-
console.warn(
|
|
33924
|
-
return;
|
|
34272
|
+
console.warn(`Error getting custom property ${propertyName}:`, e);
|
|
34273
|
+
return null;
|
|
33925
34274
|
}
|
|
33926
34275
|
}
|
|
33927
|
-
|
|
34276
|
+
/**
|
|
34277
|
+
* Generic method to set a stored custom property in docx
|
|
34278
|
+
* @static
|
|
34279
|
+
* @param {Object} docx - The docx object to store the property in
|
|
34280
|
+
* @param {string} propertyName - Name of the property
|
|
34281
|
+
* @param {string|Function} value - Value or function that returns the value
|
|
34282
|
+
* @param {boolean} preserveExisting - If true, won't overwrite existing values
|
|
34283
|
+
* @returns {string} The stored value
|
|
34284
|
+
*/
|
|
34285
|
+
static setStoredCustomProperty(docx, propertyName, value, preserveExisting = false) {
|
|
33928
34286
|
const customLocation = "docProps/custom.xml";
|
|
33929
|
-
if (!docx[customLocation])
|
|
33930
|
-
|
|
33931
|
-
|
|
33932
|
-
|
|
33933
|
-
if (!customXml) return;
|
|
33934
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
34287
|
+
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34288
|
+
const customXml = docx[customLocation];
|
|
34289
|
+
const properties = customXml.elements?.find((el) => el.name === "Properties");
|
|
34290
|
+
if (!properties) return null;
|
|
33935
34291
|
if (!properties.elements) properties.elements = [];
|
|
33936
|
-
|
|
33937
|
-
|
|
33938
|
-
|
|
33939
|
-
|
|
33940
|
-
|
|
33941
|
-
|
|
34292
|
+
let property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34293
|
+
if (property2 && preserveExisting) {
|
|
34294
|
+
return property2.elements[0].elements[0].text;
|
|
34295
|
+
}
|
|
34296
|
+
const finalValue = typeof value === "function" ? value() : value;
|
|
34297
|
+
if (!property2) {
|
|
34298
|
+
const existingPids = properties.elements.filter((el) => el.attributes?.pid).map((el) => parseInt(el.attributes.pid, 10)).filter(Number.isInteger);
|
|
34299
|
+
const pid = existingPids.length > 0 ? Math.max(...existingPids) + 1 : 2;
|
|
34300
|
+
property2 = {
|
|
34301
|
+
type: "element",
|
|
34302
|
+
name: "property",
|
|
34303
|
+
attributes: {
|
|
34304
|
+
name: propertyName,
|
|
34305
|
+
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34306
|
+
pid
|
|
34307
|
+
},
|
|
34308
|
+
elements: [
|
|
34309
|
+
{
|
|
34310
|
+
type: "element",
|
|
34311
|
+
name: "vt:lpwstr",
|
|
34312
|
+
elements: [
|
|
34313
|
+
{
|
|
34314
|
+
type: "text",
|
|
34315
|
+
text: finalValue
|
|
34316
|
+
}
|
|
34317
|
+
]
|
|
34318
|
+
}
|
|
34319
|
+
]
|
|
34320
|
+
};
|
|
34321
|
+
properties.elements.push(property2);
|
|
33942
34322
|
} else {
|
|
33943
|
-
|
|
34323
|
+
property2.elements[0].elements[0].text = finalValue;
|
|
33944
34324
|
}
|
|
33945
|
-
return
|
|
34325
|
+
return finalValue;
|
|
34326
|
+
}
|
|
34327
|
+
static getStoredSuperdocVersion(docx) {
|
|
34328
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
34329
|
+
}
|
|
34330
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.22.0") {
|
|
34331
|
+
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
34332
|
+
}
|
|
34333
|
+
/**
|
|
34334
|
+
* Get document GUID from docx files (static method)
|
|
34335
|
+
* @static
|
|
34336
|
+
* @param {Array} docx - Array of docx file objects
|
|
34337
|
+
* @returns {string|null} The document GUID
|
|
34338
|
+
*/
|
|
34339
|
+
static extractDocumentGuid(docx) {
|
|
34340
|
+
try {
|
|
34341
|
+
const settingsXml = docx.find((doc2) => doc2.name === "word/settings.xml");
|
|
34342
|
+
if (!settingsXml) return null;
|
|
34343
|
+
const converter = new _SuperConverter2();
|
|
34344
|
+
const settingsJson = converter.parseXmlToJson(settingsXml.content);
|
|
34345
|
+
const settings = settingsJson.elements?.[0];
|
|
34346
|
+
if (!settings) return null;
|
|
34347
|
+
const docIdElement = settings.elements?.find((el) => el.name === "w15:docId");
|
|
34348
|
+
if (docIdElement?.attributes?.["w15:val"]) {
|
|
34349
|
+
return docIdElement.attributes["w15:val"].replace(/[{}]/g, "");
|
|
34350
|
+
}
|
|
34351
|
+
} catch {
|
|
34352
|
+
}
|
|
34353
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "DocumentGuid");
|
|
34354
|
+
}
|
|
34355
|
+
/**
|
|
34356
|
+
* Get the permanent document GUID
|
|
34357
|
+
* @returns {string|null} The document GUID (only for modified documents)
|
|
34358
|
+
*/
|
|
34359
|
+
getDocumentGuid() {
|
|
34360
|
+
return this.documentGuid;
|
|
34361
|
+
}
|
|
34362
|
+
/**
|
|
34363
|
+
* Get the SuperDoc version for this converter instance
|
|
34364
|
+
* @returns {string|null} The SuperDoc version or null if not available
|
|
34365
|
+
*/
|
|
34366
|
+
getSuperdocVersion() {
|
|
34367
|
+
if (this.docx) {
|
|
34368
|
+
return _SuperConverter2.getStoredSuperdocVersion(this.docx);
|
|
34369
|
+
}
|
|
34370
|
+
return null;
|
|
34371
|
+
}
|
|
34372
|
+
/**
|
|
34373
|
+
* Resolve existing document GUID (synchronous)
|
|
34374
|
+
*/
|
|
34375
|
+
resolveDocumentGuid() {
|
|
34376
|
+
const microsoftGuid = this.getMicrosoftDocId();
|
|
34377
|
+
if (microsoftGuid) {
|
|
34378
|
+
this.documentGuid = microsoftGuid;
|
|
34379
|
+
return;
|
|
34380
|
+
}
|
|
34381
|
+
const customGuid = _SuperConverter2.getStoredCustomProperty(this.docx, "DocumentGuid");
|
|
34382
|
+
if (customGuid) {
|
|
34383
|
+
this.documentGuid = customGuid;
|
|
34384
|
+
}
|
|
34385
|
+
}
|
|
34386
|
+
/**
|
|
34387
|
+
* Get Microsoft's docId from settings.xml (READ ONLY)
|
|
34388
|
+
*/
|
|
34389
|
+
getMicrosoftDocId() {
|
|
34390
|
+
this.getDocumentInternalId();
|
|
34391
|
+
if (this.documentInternalId) {
|
|
34392
|
+
return this.documentInternalId.replace(/[{}]/g, "");
|
|
34393
|
+
}
|
|
34394
|
+
return null;
|
|
34395
|
+
}
|
|
34396
|
+
/**
|
|
34397
|
+
* Get document identifier (GUID or hash) - async for lazy hash generation
|
|
34398
|
+
*/
|
|
34399
|
+
async getDocumentIdentifier() {
|
|
34400
|
+
if (this.documentGuid) {
|
|
34401
|
+
return this.documentGuid;
|
|
34402
|
+
}
|
|
34403
|
+
if (!this.documentHash && this.fileSource) {
|
|
34404
|
+
this.documentHash = await __privateMethod$2(this, _SuperConverter_instances, generateDocumentHash_fn).call(this);
|
|
34405
|
+
}
|
|
34406
|
+
return this.documentHash;
|
|
34407
|
+
}
|
|
34408
|
+
/**
|
|
34409
|
+
* Promote from hash to GUID on first edit
|
|
34410
|
+
*/
|
|
34411
|
+
promoteToGuid() {
|
|
34412
|
+
if (this.documentGuid) return this.documentGuid;
|
|
34413
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34414
|
+
this.documentModified = true;
|
|
34415
|
+
this.documentHash = null;
|
|
34416
|
+
return this.documentGuid;
|
|
33946
34417
|
}
|
|
33947
34418
|
getDocumentDefaultStyles() {
|
|
33948
34419
|
const styles = this.convertedXml["word/styles.xml"];
|
|
@@ -34031,20 +34502,14 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34031
34502
|
getDocumentInternalId() {
|
|
34032
34503
|
const settingsLocation = "word/settings.xml";
|
|
34033
34504
|
if (!this.convertedXml[settingsLocation]) {
|
|
34034
|
-
|
|
34505
|
+
return;
|
|
34035
34506
|
}
|
|
34036
|
-
const settings =
|
|
34037
|
-
if (!settings.elements[0]?.elements?.length) {
|
|
34038
|
-
const idElement = this.createDocumentIdElement(settings);
|
|
34039
|
-
settings.elements[0].elements = [idElement];
|
|
34040
|
-
if (!settings.elements[0].attributes["xmlns:w15"]) {
|
|
34041
|
-
settings.elements[0].attributes["xmlns:w15"] = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
34042
|
-
}
|
|
34043
|
-
this.convertedXml[settingsLocation] = settings;
|
|
34507
|
+
const settings = this.convertedXml[settingsLocation];
|
|
34508
|
+
if (!settings.elements?.[0]?.elements?.length) {
|
|
34044
34509
|
return;
|
|
34045
34510
|
}
|
|
34046
34511
|
const w15DocId = settings.elements[0].elements.find((el) => el.name === "w15:docId");
|
|
34047
|
-
this.documentInternalId = w15DocId?.attributes["w15:val"];
|
|
34512
|
+
this.documentInternalId = w15DocId?.attributes?.["w15:val"];
|
|
34048
34513
|
}
|
|
34049
34514
|
createDocumentIdElement() {
|
|
34050
34515
|
const docId = v4().toUpperCase();
|
|
@@ -34133,7 +34598,13 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34133
34598
|
this.convertedXml = { ...this.convertedXml, ...updatedXml };
|
|
34134
34599
|
const headFootRels = __privateMethod$2(this, _SuperConverter_instances, exportProcessHeadersFooters_fn).call(this, { isFinalDoc });
|
|
34135
34600
|
__privateMethod$2(this, _SuperConverter_instances, exportProcessNewRelationships_fn).call(this, [...params2.relationships, ...commentsRels, ...headFootRels]);
|
|
34136
|
-
|
|
34601
|
+
_SuperConverter2.setStoredSuperdocVersion(this.convertedXml);
|
|
34602
|
+
if (this.documentModified || this.documentGuid) {
|
|
34603
|
+
if (!this.documentGuid) {
|
|
34604
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34605
|
+
}
|
|
34606
|
+
_SuperConverter2.setStoredCustomProperty(this.convertedXml, "DocumentGuid", this.documentGuid, true);
|
|
34607
|
+
}
|
|
34137
34608
|
__privateMethod$2(this, _SuperConverter_instances, exportNumberingFile_fn).call(this, params2);
|
|
34138
34609
|
return xml;
|
|
34139
34610
|
}
|
|
@@ -34168,8 +34639,38 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34168
34639
|
});
|
|
34169
34640
|
return { result, params: params2 };
|
|
34170
34641
|
}
|
|
34642
|
+
// Deprecated methods for backward compatibility
|
|
34643
|
+
static getStoredSuperdocId(docx) {
|
|
34644
|
+
console.warn("getStoredSuperdocId is deprecated, use getDocumentGuid instead");
|
|
34645
|
+
return _SuperConverter2.extractDocumentGuid(docx);
|
|
34646
|
+
}
|
|
34647
|
+
static updateDocumentVersion(docx, version2) {
|
|
34648
|
+
console.warn("updateDocumentVersion is deprecated, use setStoredSuperdocVersion instead");
|
|
34649
|
+
return _SuperConverter2.setStoredSuperdocVersion(docx, version2);
|
|
34650
|
+
}
|
|
34171
34651
|
};
|
|
34172
34652
|
_SuperConverter_instances = /* @__PURE__ */ new WeakSet();
|
|
34653
|
+
generateDocumentHash_fn = async function() {
|
|
34654
|
+
if (!this.fileSource) return `HASH-${Date.now()}`;
|
|
34655
|
+
try {
|
|
34656
|
+
let buffer2;
|
|
34657
|
+
if (Buffer2.isBuffer(this.fileSource)) {
|
|
34658
|
+
buffer2 = this.fileSource;
|
|
34659
|
+
} else if (this.fileSource instanceof ArrayBuffer) {
|
|
34660
|
+
buffer2 = Buffer2.from(this.fileSource);
|
|
34661
|
+
} else if (this.fileSource instanceof Blob || this.fileSource instanceof File) {
|
|
34662
|
+
const arrayBuffer = await this.fileSource.arrayBuffer();
|
|
34663
|
+
buffer2 = Buffer2.from(arrayBuffer);
|
|
34664
|
+
} else {
|
|
34665
|
+
return `HASH-${Date.now()}`;
|
|
34666
|
+
}
|
|
34667
|
+
const hash2 = index$2(buffer2);
|
|
34668
|
+
return `HASH-${hash2.toString("hex").toUpperCase()}`;
|
|
34669
|
+
} catch (e) {
|
|
34670
|
+
console.warn("Could not generate document hash:", e);
|
|
34671
|
+
return `HASH-${Date.now()}`;
|
|
34672
|
+
}
|
|
34673
|
+
};
|
|
34173
34674
|
exportNumberingFile_fn = function() {
|
|
34174
34675
|
const numberingPath = "word/numbering.xml";
|
|
34175
34676
|
let numberingXml = this.convertedXml[numberingPath];
|
|
@@ -34390,52 +34891,9 @@ __publicField$2(_SuperConverter, "propertyTypes", Object.freeze({
|
|
|
34390
34891
|
}));
|
|
34391
34892
|
__publicField$2(_SuperConverter, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
34392
34893
|
let SuperConverter = _SuperConverter;
|
|
34393
|
-
function storeSuperdocVersion(docx) {
|
|
34394
|
-
const customLocation = "docProps/custom.xml";
|
|
34395
|
-
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34396
|
-
const customXml = docx[customLocation];
|
|
34397
|
-
const properties = customXml.elements.find((el) => el.name === "Properties");
|
|
34398
|
-
if (!properties.elements) properties.elements = [];
|
|
34399
|
-
const elements = properties.elements;
|
|
34400
|
-
const cleanProperties = elements.filter((prop) => typeof prop === "object" && prop !== null).filter((prop) => {
|
|
34401
|
-
const { attributes } = prop;
|
|
34402
|
-
return attributes.name !== "SuperdocVersion";
|
|
34403
|
-
});
|
|
34404
|
-
let pid = 2;
|
|
34405
|
-
try {
|
|
34406
|
-
pid = cleanProperties.length ? Math.max(...elements.map((el) => el.attributes.pid)) + 1 : 2;
|
|
34407
|
-
} catch {
|
|
34408
|
-
}
|
|
34409
|
-
cleanProperties.push(generateSuperdocVersion(pid));
|
|
34410
|
-
properties.elements = cleanProperties;
|
|
34411
|
-
return docx;
|
|
34412
|
-
}
|
|
34413
34894
|
function generateCustomXml() {
|
|
34414
34895
|
return DEFAULT_CUSTOM_XML;
|
|
34415
34896
|
}
|
|
34416
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.22.0") {
|
|
34417
|
-
return {
|
|
34418
|
-
type: "element",
|
|
34419
|
-
name: "property",
|
|
34420
|
-
attributes: {
|
|
34421
|
-
name: "SuperdocVersion",
|
|
34422
|
-
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34423
|
-
pid
|
|
34424
|
-
},
|
|
34425
|
-
elements: [
|
|
34426
|
-
{
|
|
34427
|
-
type: "element",
|
|
34428
|
-
name: "vt:lpwstr",
|
|
34429
|
-
elements: [
|
|
34430
|
-
{
|
|
34431
|
-
type: "text",
|
|
34432
|
-
text: version2
|
|
34433
|
-
}
|
|
34434
|
-
]
|
|
34435
|
-
}
|
|
34436
|
-
]
|
|
34437
|
-
};
|
|
34438
|
-
}
|
|
34439
34897
|
function commonjsRequire(path) {
|
|
34440
34898
|
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.');
|
|
34441
34899
|
}
|
|
@@ -36751,7 +37209,7 @@ function requireJszip_min() {
|
|
|
36751
37209
|
return jszip_min.exports;
|
|
36752
37210
|
}
|
|
36753
37211
|
var jszip_minExports = requireJszip_min();
|
|
36754
|
-
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
37212
|
+
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$2(jszip_minExports);
|
|
36755
37213
|
const isXmlLike = (name) => /\.xml$|\.rels$/i.test(name);
|
|
36756
37214
|
function sniffEncoding(u8) {
|
|
36757
37215
|
if (u8.length >= 2) {
|
|
@@ -42075,8 +42533,7 @@ function readDOMChange(view, from2, to, typeOver, addedNodes) {
|
|
|
42075
42533
|
let $to = parse.doc.resolveNoCache(change.endB - parse.from);
|
|
42076
42534
|
let $fromA = doc2.resolve(change.start);
|
|
42077
42535
|
let inlineChange = $from.sameParent($to) && $from.parent.inlineContent && $fromA.end() >= change.endA;
|
|
42078
|
-
|
|
42079
|
-
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")))) {
|
|
42536
|
+
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")))) {
|
|
42080
42537
|
view.input.lastIOSEnter = 0;
|
|
42081
42538
|
return;
|
|
42082
42539
|
}
|
|
@@ -46707,15 +47164,39 @@ const toggleList = (listType) => ({ editor, state: state2, tr, dispatch }) => {
|
|
|
46707
47164
|
if (near) {
|
|
46708
47165
|
const isSameAsTarget = nearKind === targetKind;
|
|
46709
47166
|
if (isSameAsTarget) {
|
|
46710
|
-
const {
|
|
46711
|
-
|
|
46712
|
-
|
|
46713
|
-
|
|
46714
|
-
|
|
46715
|
-
|
|
46716
|
-
|
|
46717
|
-
|
|
46718
|
-
|
|
47167
|
+
const candidateLists = collectIntersectingTopLists({ doc: doc2, selection, OrderedType, BulletType });
|
|
47168
|
+
let listsToUnwrap = candidateLists.filter(({ node }) => getEffectiveListKind(node) === targetKind);
|
|
47169
|
+
if (listsToUnwrap.length === 0 && getEffectiveListKind(near.node) === targetKind) {
|
|
47170
|
+
listsToUnwrap = [{ node: near.node, pos: near.pos, depth: near.depth ?? null }];
|
|
47171
|
+
}
|
|
47172
|
+
if (listsToUnwrap.length === 0) return false;
|
|
47173
|
+
let spanFromBefore2 = listsToUnwrap[0].pos;
|
|
47174
|
+
let spanToBefore2 = listsToUnwrap[0].pos + listsToUnwrap[0].node.nodeSize;
|
|
47175
|
+
for (let i = 1; i < listsToUnwrap.length; i++) {
|
|
47176
|
+
const { node, pos: pos2 } = listsToUnwrap[i];
|
|
47177
|
+
spanFromBefore2 = Math.min(spanFromBefore2, pos2);
|
|
47178
|
+
spanToBefore2 = Math.max(spanToBefore2, pos2 + node.nodeSize);
|
|
47179
|
+
}
|
|
47180
|
+
const ParagraphType = editor.schema.nodes.paragraph;
|
|
47181
|
+
listsToUnwrap.sort((a, b2) => b2.pos - a.pos);
|
|
47182
|
+
for (const { node, pos: pos2 } of listsToUnwrap) {
|
|
47183
|
+
const mappedFrom = tr.mapping.map(pos2, -1);
|
|
47184
|
+
const mappedTo = tr.mapping.map(pos2 + node.nodeSize, 1);
|
|
47185
|
+
const currentListNode = tr.doc.nodeAt(mappedFrom);
|
|
47186
|
+
const sourceListNode = currentListNode && (currentListNode.type === OrderedType || currentListNode.type === BulletType) ? currentListNode : node;
|
|
47187
|
+
const paragraphs = [];
|
|
47188
|
+
for (let i = 0; i < sourceListNode.childCount; i++) {
|
|
47189
|
+
const li = sourceListNode.child(i);
|
|
47190
|
+
if (li.type !== editor.schema.nodes.listItem) continue;
|
|
47191
|
+
const firstChild = li.firstChild;
|
|
47192
|
+
paragraphs.push(firstChild || ParagraphType.create());
|
|
47193
|
+
}
|
|
47194
|
+
if (paragraphs.length === 0) {
|
|
47195
|
+
paragraphs.push(ParagraphType.create());
|
|
47196
|
+
}
|
|
47197
|
+
const replacement = paragraphs.length === 1 ? paragraphs[0] : Fragment.from(paragraphs);
|
|
47198
|
+
tr.replaceWith(mappedFrom, mappedTo, replacement);
|
|
47199
|
+
}
|
|
46719
47200
|
setMappedSelectionSpan(tr, spanFromBefore2, spanToBefore2);
|
|
46720
47201
|
if (dispatch) dispatch(tr);
|
|
46721
47202
|
return true;
|
|
@@ -48730,26 +49211,100 @@ const onHeaderFooterDataUpdate = async ({ editor, transaction }, mainEditor, sec
|
|
|
48730
49211
|
const setEditorToolbar = ({ editor }, mainEditor) => {
|
|
48731
49212
|
editor.setToolbar(mainEditor.toolbar);
|
|
48732
49213
|
};
|
|
49214
|
+
const normalizeCommentEventPayload = ({ conversation, editorOptions, fallbackCommentId, fallbackInternal }) => {
|
|
49215
|
+
const { user, documentId } = editorOptions || {};
|
|
49216
|
+
const normalized = {
|
|
49217
|
+
...conversation,
|
|
49218
|
+
commentId: conversation?.commentId ?? fallbackCommentId,
|
|
49219
|
+
isInternal: conversation?.isInternal ?? fallbackInternal
|
|
49220
|
+
};
|
|
49221
|
+
if (!normalized.commentText && normalized.text) {
|
|
49222
|
+
normalized.commentText = normalized.text;
|
|
49223
|
+
delete normalized.text;
|
|
49224
|
+
}
|
|
49225
|
+
if ("skipEmit" in normalized) delete normalized.skipEmit;
|
|
49226
|
+
if (!normalized.creatorName && user?.name) {
|
|
49227
|
+
normalized.creatorName = user.name;
|
|
49228
|
+
}
|
|
49229
|
+
if (!normalized.creatorEmail && user?.email) {
|
|
49230
|
+
normalized.creatorEmail = user.email;
|
|
49231
|
+
}
|
|
49232
|
+
if (!normalized.createdTime) {
|
|
49233
|
+
normalized.createdTime = Date.now();
|
|
49234
|
+
}
|
|
49235
|
+
if (!normalized.fileId && documentId) {
|
|
49236
|
+
normalized.fileId = documentId;
|
|
49237
|
+
}
|
|
49238
|
+
if (!normalized.documentId && documentId) {
|
|
49239
|
+
normalized.documentId = documentId;
|
|
49240
|
+
}
|
|
49241
|
+
return normalized;
|
|
49242
|
+
};
|
|
49243
|
+
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
49244
|
+
let bounds = {};
|
|
49245
|
+
if (currentBounds instanceof DOMRect) {
|
|
49246
|
+
bounds = {
|
|
49247
|
+
top: currentBounds.top,
|
|
49248
|
+
bottom: currentBounds.bottom,
|
|
49249
|
+
left: currentBounds.left,
|
|
49250
|
+
right: currentBounds.right
|
|
49251
|
+
};
|
|
49252
|
+
} else {
|
|
49253
|
+
bounds = { ...currentBounds };
|
|
49254
|
+
}
|
|
49255
|
+
if (!allCommentPositions[threadId]) {
|
|
49256
|
+
allCommentPositions[threadId] = {
|
|
49257
|
+
threadId,
|
|
49258
|
+
start: pos,
|
|
49259
|
+
end: pos + node.nodeSize,
|
|
49260
|
+
bounds
|
|
49261
|
+
};
|
|
49262
|
+
} else {
|
|
49263
|
+
const existing = allCommentPositions[threadId];
|
|
49264
|
+
existing.start = Math.min(existing.start, pos);
|
|
49265
|
+
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
49266
|
+
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
49267
|
+
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
49268
|
+
}
|
|
49269
|
+
};
|
|
48733
49270
|
const TRACK_CHANGE_MARKS = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
|
|
48734
49271
|
const CommentsPluginKey = new PluginKey("comments");
|
|
48735
49272
|
const CommentsPlugin = Extension.create({
|
|
48736
49273
|
name: "comments",
|
|
48737
49274
|
addCommands() {
|
|
48738
49275
|
return {
|
|
48739
|
-
insertComment: (conversation) => ({ tr, dispatch }) => {
|
|
49276
|
+
insertComment: (conversation = {}) => ({ tr, dispatch }) => {
|
|
48740
49277
|
const { selection } = tr;
|
|
48741
49278
|
const { $from, $to } = selection;
|
|
48742
|
-
const
|
|
49279
|
+
const skipEmit = conversation?.skipEmit;
|
|
49280
|
+
const resolvedCommentId = conversation?.commentId ?? v4();
|
|
49281
|
+
const resolvedInternal = conversation?.isInternal ?? false;
|
|
48743
49282
|
tr.setMeta(CommentsPluginKey, { event: "add" });
|
|
48744
49283
|
tr.addMark(
|
|
48745
49284
|
$from.pos,
|
|
48746
49285
|
$to.pos,
|
|
48747
49286
|
this.editor.schema.marks[CommentMarkName].create({
|
|
48748
|
-
commentId,
|
|
48749
|
-
internal:
|
|
49287
|
+
commentId: resolvedCommentId,
|
|
49288
|
+
internal: resolvedInternal
|
|
48750
49289
|
})
|
|
48751
49290
|
);
|
|
48752
|
-
dispatch(tr);
|
|
49291
|
+
if (dispatch) dispatch(tr);
|
|
49292
|
+
const shouldEmit = !skipEmit && resolvedCommentId !== "pending";
|
|
49293
|
+
if (shouldEmit) {
|
|
49294
|
+
const commentPayload = normalizeCommentEventPayload({
|
|
49295
|
+
conversation,
|
|
49296
|
+
editorOptions: this.editor.options,
|
|
49297
|
+
fallbackCommentId: resolvedCommentId,
|
|
49298
|
+
fallbackInternal: resolvedInternal
|
|
49299
|
+
});
|
|
49300
|
+
const activeCommentId = commentPayload.commentId || commentPayload.importedId || null;
|
|
49301
|
+
const event = {
|
|
49302
|
+
type: comments_module_events.ADD,
|
|
49303
|
+
comment: commentPayload,
|
|
49304
|
+
...activeCommentId && { activeCommentId }
|
|
49305
|
+
};
|
|
49306
|
+
this.editor.emit("commentsUpdate", event);
|
|
49307
|
+
}
|
|
48753
49308
|
return true;
|
|
48754
49309
|
},
|
|
48755
49310
|
removeComment: ({ commentId, importedId }) => ({ tr, dispatch, state: state2 }) => {
|
|
@@ -48985,33 +49540,6 @@ const CommentsPlugin = Extension.create({
|
|
|
48985
49540
|
return [commentsPlugin];
|
|
48986
49541
|
}
|
|
48987
49542
|
});
|
|
48988
|
-
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
48989
|
-
let bounds = {};
|
|
48990
|
-
if (currentBounds instanceof DOMRect) {
|
|
48991
|
-
bounds = {
|
|
48992
|
-
top: currentBounds.top,
|
|
48993
|
-
bottom: currentBounds.bottom,
|
|
48994
|
-
left: currentBounds.left,
|
|
48995
|
-
right: currentBounds.right
|
|
48996
|
-
};
|
|
48997
|
-
} else {
|
|
48998
|
-
bounds = { ...currentBounds };
|
|
48999
|
-
}
|
|
49000
|
-
if (!allCommentPositions[threadId]) {
|
|
49001
|
-
allCommentPositions[threadId] = {
|
|
49002
|
-
threadId,
|
|
49003
|
-
start: pos,
|
|
49004
|
-
end: pos + node.nodeSize,
|
|
49005
|
-
bounds
|
|
49006
|
-
};
|
|
49007
|
-
} else {
|
|
49008
|
-
const existing = allCommentPositions[threadId];
|
|
49009
|
-
existing.start = Math.min(existing.start, pos);
|
|
49010
|
-
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
49011
|
-
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
49012
|
-
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
49013
|
-
}
|
|
49014
|
-
};
|
|
49015
49543
|
const getActiveCommentId = (doc2, selection) => {
|
|
49016
49544
|
if (!selection) return;
|
|
49017
49545
|
const { $from, $to } = selection;
|
|
@@ -51465,19 +51993,34 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51465
51993
|
* @returns {string} Document version
|
|
51466
51994
|
*/
|
|
51467
51995
|
static getDocumentVersion(doc2) {
|
|
51468
|
-
|
|
51469
|
-
return version2;
|
|
51996
|
+
return SuperConverter.getStoredSuperdocVersion(doc2);
|
|
51470
51997
|
}
|
|
51471
51998
|
/**
|
|
51472
|
-
*
|
|
51999
|
+
* Set the document version
|
|
51473
52000
|
* @static
|
|
51474
52001
|
* @param {Object} doc - Document object
|
|
51475
52002
|
* @param {string} version - New version
|
|
51476
|
-
* @returns {
|
|
52003
|
+
* @returns {string} The set version
|
|
52004
|
+
*/
|
|
52005
|
+
static setDocumentVersion(doc2, version2) {
|
|
52006
|
+
return SuperConverter.setStoredSuperdocVersion(doc2, version2);
|
|
52007
|
+
}
|
|
52008
|
+
/**
|
|
52009
|
+
* Get the document GUID
|
|
52010
|
+
* @static
|
|
52011
|
+
* @param {Object} doc - Document object
|
|
52012
|
+
* @returns {string|null} Document GUID
|
|
52013
|
+
*/
|
|
52014
|
+
static getDocumentGuid(doc2) {
|
|
52015
|
+
return SuperConverter.extractDocumentGuid(doc2);
|
|
52016
|
+
}
|
|
52017
|
+
// Deprecated
|
|
52018
|
+
/**
|
|
52019
|
+
* @deprecated use setDocumentVersion instead
|
|
51477
52020
|
*/
|
|
51478
52021
|
static updateDocumentVersion(doc2, version2) {
|
|
51479
|
-
|
|
51480
|
-
return
|
|
52022
|
+
console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
|
|
52023
|
+
return _Editor2.setDocumentVersion(doc2, version2);
|
|
51481
52024
|
}
|
|
51482
52025
|
/**
|
|
51483
52026
|
* Creates all node views.
|
|
@@ -51613,6 +52156,43 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51613
52156
|
}
|
|
51614
52157
|
window.addEventListener("resize", () => handleResize);
|
|
51615
52158
|
}
|
|
52159
|
+
/**
|
|
52160
|
+
* Get document identifier for telemetry (async - may generate hash)
|
|
52161
|
+
* @returns {Promise<string>} GUID for modified docs, hash for unmodified
|
|
52162
|
+
*/
|
|
52163
|
+
async getDocumentIdentifier() {
|
|
52164
|
+
return await this.converter?.getDocumentIdentifier() || null;
|
|
52165
|
+
}
|
|
52166
|
+
/**
|
|
52167
|
+
* Get permanent document GUID (sync - only for modified documents)
|
|
52168
|
+
* @returns {string|null} GUID or null if document hasn't been modified
|
|
52169
|
+
*/
|
|
52170
|
+
getDocumentGuid() {
|
|
52171
|
+
return this.converter?.documentGuid || null;
|
|
52172
|
+
}
|
|
52173
|
+
/**
|
|
52174
|
+
* Check if document has been modified
|
|
52175
|
+
* @returns {boolean}
|
|
52176
|
+
*/
|
|
52177
|
+
isDocumentModified() {
|
|
52178
|
+
return this.converter?.documentModified || false;
|
|
52179
|
+
}
|
|
52180
|
+
/**
|
|
52181
|
+
* Get telemetry data (async because of lazy hash generation)
|
|
52182
|
+
*/
|
|
52183
|
+
async getTelemetryData() {
|
|
52184
|
+
return {
|
|
52185
|
+
documentId: await this.getDocumentIdentifier(),
|
|
52186
|
+
isModified: this.isDocumentModified(),
|
|
52187
|
+
isPermanentId: !!this.converter?.documentGuid,
|
|
52188
|
+
version: this.converter?.getSuperdocVersion()
|
|
52189
|
+
};
|
|
52190
|
+
}
|
|
52191
|
+
// Deprecated for backward compatibility
|
|
52192
|
+
getDocumentId() {
|
|
52193
|
+
console.warn("getDocumentId is deprecated, use getDocumentGuid instead");
|
|
52194
|
+
return this.getDocumentGuid();
|
|
52195
|
+
}
|
|
51616
52196
|
/**
|
|
51617
52197
|
* Get attrs of the currently selected node or mark.
|
|
51618
52198
|
* @param {String} nameOrType
|
|
@@ -51644,6 +52224,21 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51644
52224
|
getJSON() {
|
|
51645
52225
|
return this.state.doc.toJSON();
|
|
51646
52226
|
}
|
|
52227
|
+
/**
|
|
52228
|
+
* Get document metadata including GUID, modification status, and version
|
|
52229
|
+
* @returns {{
|
|
52230
|
+
* documentGuid: string | null,
|
|
52231
|
+
* isModified: boolean,
|
|
52232
|
+
* version: string | null
|
|
52233
|
+
* }} Document metadata
|
|
52234
|
+
*/
|
|
52235
|
+
getMetadata() {
|
|
52236
|
+
return {
|
|
52237
|
+
documentGuid: this.converter?.documentGuid || null,
|
|
52238
|
+
isModified: this.isDocumentModified(),
|
|
52239
|
+
version: this.converter?.getSuperdocVersion() || null
|
|
52240
|
+
};
|
|
52241
|
+
}
|
|
51647
52242
|
/**
|
|
51648
52243
|
* Get the editor content as HTML
|
|
51649
52244
|
* @param {Object} options - Options for the HTML serializer
|
|
@@ -51661,6 +52256,13 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51661
52256
|
}
|
|
51662
52257
|
return html;
|
|
51663
52258
|
}
|
|
52259
|
+
/**
|
|
52260
|
+
* Get the document version from the converter
|
|
52261
|
+
* @returns {string|null} The SuperDoc version stored in the document
|
|
52262
|
+
*/
|
|
52263
|
+
getDocumentVersion() {
|
|
52264
|
+
return this.converter?.getSuperdocVersion() || null;
|
|
52265
|
+
}
|
|
51664
52266
|
/**
|
|
51665
52267
|
* Create a child editor linked to this editor.
|
|
51666
52268
|
* This is useful for creating header/footer editors that are linked to the main editor.
|
|
@@ -51743,7 +52345,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51743
52345
|
if (exportXmlOnly || exportJsonOnly) return documentXml;
|
|
51744
52346
|
const customXml = this.converter.schemaToXml(this.converter.convertedXml["docProps/custom.xml"].elements[0]);
|
|
51745
52347
|
const styles = this.converter.schemaToXml(this.converter.convertedXml["word/styles.xml"].elements[0]);
|
|
51746
|
-
const
|
|
52348
|
+
const hasCustomSettings = !!this.converter.convertedXml["word/settings.xml"]?.elements?.length;
|
|
52349
|
+
const customSettings = hasCustomSettings ? this.converter.schemaToXml(this.converter.convertedXml["word/settings.xml"]?.elements?.[0]) : null;
|
|
51747
52350
|
const rels = this.converter.schemaToXml(this.converter.convertedXml["word/_rels/document.xml.rels"].elements[0]);
|
|
51748
52351
|
const media = this.converter.addedMedia;
|
|
51749
52352
|
const updatedHeadersFooters = {};
|
|
@@ -51759,13 +52362,15 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51759
52362
|
...this.options.customUpdatedFiles,
|
|
51760
52363
|
"word/document.xml": String(documentXml),
|
|
51761
52364
|
"docProps/custom.xml": String(customXml),
|
|
51762
|
-
"word/settings.xml": String(customSettings),
|
|
51763
52365
|
"word/_rels/document.xml.rels": String(rels),
|
|
51764
52366
|
"word/numbering.xml": String(numbering),
|
|
51765
52367
|
// Replace & with & in styles.xml as DOCX viewers can't handle it
|
|
51766
52368
|
"word/styles.xml": String(styles).replace(/&/gi, "&"),
|
|
51767
52369
|
...updatedHeadersFooters
|
|
51768
52370
|
};
|
|
52371
|
+
if (hasCustomSettings) {
|
|
52372
|
+
updatedDocs["word/settings.xml"] = String(customSettings);
|
|
52373
|
+
}
|
|
51769
52374
|
if (comments.length) {
|
|
51770
52375
|
const commentsXml = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]);
|
|
51771
52376
|
const commentsExtendedXml = this.converter.schemaToXml(
|
|
@@ -52385,6 +52990,13 @@ dispatchTransaction_fn = function(transaction) {
|
|
|
52385
52990
|
if (!transaction.docChanged) {
|
|
52386
52991
|
return;
|
|
52387
52992
|
}
|
|
52993
|
+
if (transaction.docChanged && this.converter) {
|
|
52994
|
+
if (!this.converter.documentGuid) {
|
|
52995
|
+
this.converter.promoteToGuid();
|
|
52996
|
+
console.debug("Document modified - assigned GUID:", this.converter.documentGuid);
|
|
52997
|
+
}
|
|
52998
|
+
this.converter.documentModified = true;
|
|
52999
|
+
}
|
|
52388
53000
|
this.emit("update", {
|
|
52389
53001
|
editor: this,
|
|
52390
53002
|
transaction
|
|
@@ -54327,10 +54939,11 @@ const StructuredContentCommands = Extension.create({
|
|
|
54327
54939
|
return true;
|
|
54328
54940
|
},
|
|
54329
54941
|
/**
|
|
54330
|
-
* Updates a structured content
|
|
54942
|
+
* Updates a single structured content field by its unique ID.
|
|
54943
|
+
* IDs are unique identifiers, so this will update at most one field.
|
|
54331
54944
|
* If the updated node does not match the schema, it will not be updated.
|
|
54332
54945
|
* @category Command
|
|
54333
|
-
* @param {string} id
|
|
54946
|
+
* @param {string} id - Unique identifier of the field
|
|
54334
54947
|
* @param {StructuredContentUpdate} options
|
|
54335
54948
|
*/
|
|
54336
54949
|
updateStructuredContentById: (id, options = {}) => ({ editor, dispatch, state: state2, tr }) => {
|
|
@@ -62511,6 +63124,7 @@ function getFormatAttrsFromMarks(marks) {
|
|
|
62511
63124
|
}
|
|
62512
63125
|
return formatAttrs;
|
|
62513
63126
|
}
|
|
63127
|
+
const DEFAULT_MIME_TYPE = "application/octet-stream";
|
|
62514
63128
|
const simpleHash = (str) => {
|
|
62515
63129
|
let hash2 = 0;
|
|
62516
63130
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -62520,21 +63134,40 @@ const simpleHash = (str) => {
|
|
|
62520
63134
|
}
|
|
62521
63135
|
return Math.abs(hash2).toString();
|
|
62522
63136
|
};
|
|
62523
|
-
const
|
|
62524
|
-
|
|
62525
|
-
|
|
62526
|
-
|
|
62527
|
-
|
|
62528
|
-
|
|
63137
|
+
const decodeBase64ToBinaryString = (data) => {
|
|
63138
|
+
if (!data) return "";
|
|
63139
|
+
if (typeof atob === "function") {
|
|
63140
|
+
return atob(data);
|
|
63141
|
+
}
|
|
63142
|
+
if (typeof Buffer2 !== "undefined" && typeof Buffer2.from === "function") {
|
|
63143
|
+
return Buffer2.from(data, "base64").toString("binary");
|
|
63144
|
+
}
|
|
63145
|
+
throw new Error("Unable to decode base64 payload in the current environment.");
|
|
63146
|
+
};
|
|
63147
|
+
const extractBase64Meta = (base64String) => {
|
|
63148
|
+
const [meta = "", payload = ""] = base64String.split(",");
|
|
63149
|
+
const mimeMatch = meta.match(/:(.*?);/);
|
|
63150
|
+
const rawMimeType = mimeMatch ? mimeMatch[1] : "";
|
|
63151
|
+
const mimeType = rawMimeType || DEFAULT_MIME_TYPE;
|
|
63152
|
+
const binaryString = decodeBase64ToBinaryString(payload);
|
|
62529
63153
|
const hash2 = simpleHash(binaryString);
|
|
62530
63154
|
const extension = mimeType.split("/")[1] || "bin";
|
|
62531
63155
|
const filename = `image-${hash2}.${extension}`;
|
|
63156
|
+
return { mimeType, binaryString, filename };
|
|
63157
|
+
};
|
|
63158
|
+
const getBase64FileMeta = (base64String) => {
|
|
63159
|
+
const { mimeType, filename } = extractBase64Meta(base64String);
|
|
63160
|
+
return { mimeType, filename };
|
|
63161
|
+
};
|
|
63162
|
+
const base64ToFile = (base64String) => {
|
|
63163
|
+
const { mimeType, binaryString, filename } = extractBase64Meta(base64String);
|
|
63164
|
+
const fileType = mimeType || DEFAULT_MIME_TYPE;
|
|
62532
63165
|
const bytes = new Uint8Array(binaryString.length);
|
|
62533
63166
|
for (let i = 0; i < binaryString.length; i++) {
|
|
62534
63167
|
bytes[i] = binaryString.charCodeAt(i);
|
|
62535
63168
|
}
|
|
62536
|
-
const blob = new Blob([bytes], { type:
|
|
62537
|
-
return new File([blob], filename, { type:
|
|
63169
|
+
const blob = new Blob([bytes], { type: fileType });
|
|
63170
|
+
return new File([blob], filename, { type: fileType });
|
|
62538
63171
|
};
|
|
62539
63172
|
const urlToFile = async (url, filename, mimeType) => {
|
|
62540
63173
|
try {
|
|
@@ -62910,6 +63543,7 @@ function addImageRelationship({ editor, path }) {
|
|
|
62910
63543
|
}
|
|
62911
63544
|
}
|
|
62912
63545
|
const key = new PluginKey("ImageRegistration");
|
|
63546
|
+
const WORD_MEDIA_PREFIX = "word/";
|
|
62913
63547
|
const ImageRegistrationPlugin = ({ editor }) => {
|
|
62914
63548
|
const { view } = editor;
|
|
62915
63549
|
return new Plugin({
|
|
@@ -62930,16 +63564,16 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62930
63564
|
},
|
|
62931
63565
|
appendTransaction: (trs, _oldState, state2) => {
|
|
62932
63566
|
let foundImages = [];
|
|
62933
|
-
trs.forEach((
|
|
62934
|
-
if (
|
|
62935
|
-
|
|
63567
|
+
trs.forEach((tr) => {
|
|
63568
|
+
if (tr.docChanged) {
|
|
63569
|
+
tr.steps.forEach((step, index2) => {
|
|
62936
63570
|
const stepMap = step.getMap();
|
|
62937
63571
|
foundImages = foundImages.map(({ node, pos, id }) => {
|
|
62938
63572
|
const mappedPos = stepMap.map(pos, -1);
|
|
62939
63573
|
return { node, pos: mappedPos, id };
|
|
62940
63574
|
});
|
|
62941
63575
|
if (step instanceof ReplaceStep || step instanceof ReplaceAroundStep$1) {
|
|
62942
|
-
(
|
|
63576
|
+
(tr.docs[index2 + 1] || tr.doc).nodesBetween(
|
|
62943
63577
|
stepMap.map(step.from, -1),
|
|
62944
63578
|
stepMap.map(step.to, 1),
|
|
62945
63579
|
(node, pos) => {
|
|
@@ -62958,22 +63592,10 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62958
63592
|
if (!foundImages || foundImages.length === 0) {
|
|
62959
63593
|
return null;
|
|
62960
63594
|
}
|
|
62961
|
-
|
|
62962
|
-
|
|
62963
|
-
|
|
62964
|
-
foundImages
|
|
62965
|
-
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
62966
|
-
side: -1,
|
|
62967
|
-
id
|
|
62968
|
-
});
|
|
62969
|
-
set = set.add(tr.doc, [deco]);
|
|
62970
|
-
});
|
|
62971
|
-
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
62972
|
-
tr.delete(pos, pos + node.nodeSize);
|
|
62973
|
-
});
|
|
62974
|
-
set = set.map(tr.mapping, tr.doc);
|
|
62975
|
-
tr.setMeta(key, { set });
|
|
62976
|
-
return tr;
|
|
63595
|
+
if (editor.options.isHeadless) {
|
|
63596
|
+
return handleNodePath(foundImages, editor, state2);
|
|
63597
|
+
}
|
|
63598
|
+
return handleBrowserPath(foundImages, editor, view, state2);
|
|
62977
63599
|
},
|
|
62978
63600
|
props: {
|
|
62979
63601
|
decorations(state2) {
|
|
@@ -62983,6 +63605,59 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62983
63605
|
}
|
|
62984
63606
|
});
|
|
62985
63607
|
};
|
|
63608
|
+
const derivePreferredFileName = (src) => {
|
|
63609
|
+
if (typeof src !== "string" || src.length === 0) {
|
|
63610
|
+
return "image.bin";
|
|
63611
|
+
}
|
|
63612
|
+
if (src.startsWith("data:")) {
|
|
63613
|
+
return getBase64FileMeta(src).filename;
|
|
63614
|
+
}
|
|
63615
|
+
const lastSegment = src.split("/").pop() ?? "";
|
|
63616
|
+
const trimmed = lastSegment.split(/[?#]/)[0];
|
|
63617
|
+
return trimmed || "image.bin";
|
|
63618
|
+
};
|
|
63619
|
+
const handleNodePath = (foundImages, editor, state2) => {
|
|
63620
|
+
const { tr } = state2;
|
|
63621
|
+
const mediaStore = editor.storage.image.media ?? {};
|
|
63622
|
+
if (!editor.storage.image.media) {
|
|
63623
|
+
editor.storage.image.media = mediaStore;
|
|
63624
|
+
}
|
|
63625
|
+
const existingFileNames = new Set(Object.keys(mediaStore).map((key2) => key2.split("/").pop()));
|
|
63626
|
+
foundImages.forEach(({ node, pos }) => {
|
|
63627
|
+
const { src } = node.attrs;
|
|
63628
|
+
const preferredFileName = derivePreferredFileName(src);
|
|
63629
|
+
const uniqueFileName = ensureUniqueFileName(preferredFileName, existingFileNames);
|
|
63630
|
+
existingFileNames.add(uniqueFileName);
|
|
63631
|
+
const mediaPath = buildMediaPath(uniqueFileName);
|
|
63632
|
+
mediaStore[mediaPath] = src;
|
|
63633
|
+
const path = mediaPath.startsWith(WORD_MEDIA_PREFIX) ? mediaPath.slice(WORD_MEDIA_PREFIX.length) : mediaPath;
|
|
63634
|
+
const rId = addImageRelationship({ editor, path });
|
|
63635
|
+
tr.setNodeMarkup(pos, void 0, {
|
|
63636
|
+
...node.attrs,
|
|
63637
|
+
src: mediaPath,
|
|
63638
|
+
rId
|
|
63639
|
+
});
|
|
63640
|
+
});
|
|
63641
|
+
return tr;
|
|
63642
|
+
};
|
|
63643
|
+
const handleBrowserPath = (foundImages, editor, view, state2) => {
|
|
63644
|
+
registerImages(foundImages, editor, view);
|
|
63645
|
+
const tr = state2.tr;
|
|
63646
|
+
let { set } = key.getState(state2);
|
|
63647
|
+
foundImages.slice().sort((a, b2) => a.pos - b2.pos).forEach(({ pos, id }) => {
|
|
63648
|
+
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
63649
|
+
side: -1,
|
|
63650
|
+
id
|
|
63651
|
+
});
|
|
63652
|
+
set = set.add(tr.doc, [deco]);
|
|
63653
|
+
});
|
|
63654
|
+
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
63655
|
+
tr.delete(pos, pos + node.nodeSize);
|
|
63656
|
+
});
|
|
63657
|
+
set = set.map(tr.mapping, tr.doc);
|
|
63658
|
+
tr.setMeta(key, { set });
|
|
63659
|
+
return tr;
|
|
63660
|
+
};
|
|
62986
63661
|
const findPlaceholder = (state2, id) => {
|
|
62987
63662
|
let { set } = key.getState(state2);
|
|
62988
63663
|
let found2 = set?.find(null, null, (spec) => spec.id === id);
|
|
@@ -65510,15 +66185,50 @@ const getChangesByIdToResolve = (state2, id) => {
|
|
|
65510
66185
|
const changeIndex = trackedChanges.findIndex(({ mark }) => mark.attrs.id === id);
|
|
65511
66186
|
if (changeIndex === -1) return;
|
|
65512
66187
|
const matchingChange = trackedChanges[changeIndex];
|
|
65513
|
-
const
|
|
65514
|
-
const
|
|
65515
|
-
|
|
65516
|
-
|
|
65517
|
-
|
|
65518
|
-
|
|
65519
|
-
|
|
65520
|
-
|
|
65521
|
-
|
|
66188
|
+
const matchingId = matchingChange.mark.attrs.id;
|
|
66189
|
+
const getSegmentSize = ({ from: from2, to }) => to - from2;
|
|
66190
|
+
const areDirectlyConnected = (left2, right2) => {
|
|
66191
|
+
if (!left2 || !right2) {
|
|
66192
|
+
return false;
|
|
66193
|
+
}
|
|
66194
|
+
if (left2.to !== right2.from) {
|
|
66195
|
+
return false;
|
|
66196
|
+
}
|
|
66197
|
+
const hasContentBetween = state2.doc.textBetween(left2.from, right2.to, "\n").length > getSegmentSize(left2) + getSegmentSize(right2);
|
|
66198
|
+
return !hasContentBetween;
|
|
66199
|
+
};
|
|
66200
|
+
const isComplementaryPair = (firstType, secondType) => firstType === TrackDeleteMarkName && secondType === TrackInsertMarkName || firstType === TrackInsertMarkName && secondType === TrackDeleteMarkName;
|
|
66201
|
+
const linkedBefore = [];
|
|
66202
|
+
const linkedAfter = [];
|
|
66203
|
+
const collectDirection = (direction, collection) => {
|
|
66204
|
+
let currentIndex = changeIndex;
|
|
66205
|
+
let currentChange = matchingChange;
|
|
66206
|
+
while (true) {
|
|
66207
|
+
const neighborIndex = currentIndex + direction;
|
|
66208
|
+
const neighbor = trackedChanges[neighborIndex];
|
|
66209
|
+
if (!neighbor) {
|
|
66210
|
+
break;
|
|
66211
|
+
}
|
|
66212
|
+
const [left2, right2] = direction < 0 ? [neighbor, currentChange] : [currentChange, neighbor];
|
|
66213
|
+
if (!areDirectlyConnected(left2, right2)) {
|
|
66214
|
+
break;
|
|
66215
|
+
}
|
|
66216
|
+
const sharesId = neighbor.mark.attrs.id === matchingId;
|
|
66217
|
+
const complementary = isComplementaryPair(currentChange.mark.type.name, neighbor.mark.type.name);
|
|
66218
|
+
if (!sharesId && !complementary) {
|
|
66219
|
+
break;
|
|
66220
|
+
}
|
|
66221
|
+
collection.push(neighbor);
|
|
66222
|
+
currentIndex = neighborIndex;
|
|
66223
|
+
currentChange = neighbor;
|
|
66224
|
+
if (!sharesId) {
|
|
66225
|
+
break;
|
|
66226
|
+
}
|
|
66227
|
+
}
|
|
66228
|
+
};
|
|
66229
|
+
collectDirection(-1, linkedBefore);
|
|
66230
|
+
collectDirection(1, linkedAfter);
|
|
66231
|
+
return [matchingChange, ...linkedAfter, ...linkedBefore];
|
|
65522
66232
|
};
|
|
65523
66233
|
const TextTransform = Extension.create({
|
|
65524
66234
|
name: "textTransform",
|
|
@@ -70100,6 +70810,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
|
|
|
70100
70810
|
return actualBreak;
|
|
70101
70811
|
}
|
|
70102
70812
|
const onImageLoad = (editor) => {
|
|
70813
|
+
if (typeof requestAnimationFrame !== "function") return;
|
|
70103
70814
|
requestAnimationFrame(() => {
|
|
70104
70815
|
const newTr = editor.view.state.tr;
|
|
70105
70816
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -71311,7 +72022,7 @@ const _sfc_main$4$1 = {
|
|
|
71311
72022
|
};
|
|
71312
72023
|
const handleInputSubmit = () => {
|
|
71313
72024
|
const value = inlineTextInput.value;
|
|
71314
|
-
const cleanValue = value.
|
|
72025
|
+
const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
|
|
71315
72026
|
emit("textSubmit", cleanValue);
|
|
71316
72027
|
inlineTextInput.value = cleanValue;
|
|
71317
72028
|
};
|
|
@@ -71393,7 +72104,7 @@ const _sfc_main$4$1 = {
|
|
|
71393
72104
|
};
|
|
71394
72105
|
}
|
|
71395
72106
|
};
|
|
71396
|
-
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-
|
|
72107
|
+
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
|
|
71397
72108
|
const _hoisted_1$2$1 = {
|
|
71398
72109
|
class: "toolbar-separator",
|
|
71399
72110
|
role: "separator",
|
|
@@ -81890,7 +82601,7 @@ function requireEventemitter3() {
|
|
|
81890
82601
|
return eventemitter3.exports;
|
|
81891
82602
|
}
|
|
81892
82603
|
var eventemitter3Exports = requireEventemitter3();
|
|
81893
|
-
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
82604
|
+
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$2(eventemitter3Exports);
|
|
81894
82605
|
const useToolbarItem = (options) => {
|
|
81895
82606
|
const types2 = ["button", "options", "separator", "dropdown", "overflow"];
|
|
81896
82607
|
if (!types2.includes(options.type)) {
|
|
@@ -83165,16 +83876,21 @@ const makeDefaultItems = ({
|
|
|
83165
83876
|
onActivate: ({ fontFamily: fontFamily2 }) => {
|
|
83166
83877
|
if (!fontFamily2) return;
|
|
83167
83878
|
fontButton.label.value = fontFamily2;
|
|
83879
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83168
83880
|
const foundFont = fontOptions.find((i2) => i2.label === fontFamily2);
|
|
83169
83881
|
if (foundFont) {
|
|
83170
83882
|
fontButton.selectedValue.value = foundFont.key;
|
|
83883
|
+
} else if (defaultFont) {
|
|
83884
|
+
fontButton.selectedValue.value = defaultFont.key;
|
|
83171
83885
|
} else {
|
|
83172
83886
|
fontButton.selectedValue.value = "";
|
|
83173
83887
|
}
|
|
83174
83888
|
},
|
|
83175
83889
|
onDeactivate: () => {
|
|
83176
83890
|
fontButton.label.value = fontButton.defaultLabel.value;
|
|
83177
|
-
fontButton.
|
|
83891
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83892
|
+
if (defaultFont) fontButton.selectedValue.value = defaultFont.key;
|
|
83893
|
+
else fontButton.selectedValue.value = "";
|
|
83178
83894
|
}
|
|
83179
83895
|
});
|
|
83180
83896
|
const aiButton = useToolbarItem({
|
|
@@ -83242,9 +83958,11 @@ const makeDefaultItems = ({
|
|
|
83242
83958
|
},
|
|
83243
83959
|
options: fontSizeOptions,
|
|
83244
83960
|
onActivate: ({ fontSize: size2 }) => {
|
|
83961
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
83245
83962
|
if (!size2) {
|
|
83246
83963
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83247
|
-
fontSize2.selectedValue.value =
|
|
83964
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
83965
|
+
else fontSize2.selectedValue.value = "";
|
|
83248
83966
|
return;
|
|
83249
83967
|
}
|
|
83250
83968
|
let sanitizedValue = sanitizeNumber(size2, 12);
|
|
@@ -83256,6 +83974,8 @@ const makeDefaultItems = ({
|
|
|
83256
83974
|
});
|
|
83257
83975
|
if (foundSize) {
|
|
83258
83976
|
fontSize2.selectedValue.value = foundSize.key;
|
|
83977
|
+
} else if (defaultSize) {
|
|
83978
|
+
fontSize2.selectedValue.value = defaultSize.key;
|
|
83259
83979
|
} else {
|
|
83260
83980
|
fontSize2.selectedValue.value = "";
|
|
83261
83981
|
}
|
|
@@ -83263,7 +83983,9 @@ const makeDefaultItems = ({
|
|
|
83263
83983
|
},
|
|
83264
83984
|
onDeactivate: () => {
|
|
83265
83985
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83266
|
-
fontSize2.
|
|
83986
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
83987
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
83988
|
+
else fontSize2.selectedValue.value = "";
|
|
83267
83989
|
}
|
|
83268
83990
|
});
|
|
83269
83991
|
const separator = useToolbarItem({
|
|
@@ -83476,6 +84198,7 @@ const makeDefaultItems = ({
|
|
|
83476
84198
|
type: "dropdown",
|
|
83477
84199
|
name: "tableActions",
|
|
83478
84200
|
command: "executeTableCommand",
|
|
84201
|
+
tooltip: toolbarTexts2.tableActions,
|
|
83479
84202
|
icon: toolbarIcons2.tableActions,
|
|
83480
84203
|
hideLabel: true,
|
|
83481
84204
|
disabled: true,
|
|
@@ -84174,6 +84897,7 @@ const toolbarTexts = {
|
|
|
84174
84897
|
link: "Link",
|
|
84175
84898
|
image: "Image",
|
|
84176
84899
|
table: "Insert table",
|
|
84900
|
+
tableActions: "Table options",
|
|
84177
84901
|
addRowBefore: "Insert row above",
|
|
84178
84902
|
addRowAfter: "Insert row below",
|
|
84179
84903
|
addColumnBefore: "Insert column left",
|
|
@@ -86631,7 +87355,9 @@ const additionalHandlers = Object.freeze({
|
|
|
86631
87355
|
"w:wAfter": translator$K,
|
|
86632
87356
|
"w:wBefore": translator$J,
|
|
86633
87357
|
"wp:anchor": translator$8,
|
|
86634
|
-
"wp:inline": translator$7
|
|
87358
|
+
"wp:inline": translator$7,
|
|
87359
|
+
"w:commentRangeStart": commentRangeStartTranslator,
|
|
87360
|
+
"w:commentRangeEnd": commentRangeEndTranslator
|
|
86635
87361
|
});
|
|
86636
87362
|
const baseHandlers = {
|
|
86637
87363
|
...runPropertyTranslators,
|