@harbour-enterprises/superdoc 0.23.0-next.2 → 0.23.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-BItyloFT.cjs → PdfViewer-C1OeVT5x.cjs} +2 -2
- package/dist/chunks/{PdfViewer-MPmm-SUD.es.js → PdfViewer-DN7WcPFE.es.js} +2 -2
- package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-BWEnUdTY.es.js} +1 -1
- package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DkXkH2rT.cjs} +1 -1
- package/dist/chunks/{index-OVF3JhUR.es.js → index-C4jqec_K.es.js} +98 -356
- package/dist/chunks/{index-CdJOxoqt.cjs → index-CzDXj8Kn.cjs} +231 -489
- package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-BDk3JBqp.es.js} +4 -4
- package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-u4dvXAKa.cjs} +4 -4
- package/dist/chunks/{super-editor.es-C7stybby.cjs → super-editor.es-BAutf_un.cjs} +1465 -735
- package/dist/chunks/{super-editor.es-DQnqUJZs.es.js → super-editor.es-C_TNO7vs.es.js} +1465 -735
- package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
- package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
- package/dist/chunks/xml-js-D_ZIzxu0.cjs +3 -0
- package/dist/chunks/xml-js-Dx4FIjnp.es.js +2 -0
- package/dist/components/CommentsLayer/types.d.ts +158 -0
- package/dist/components/CommentsLayer/types.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts +5 -18
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +48 -2
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts +3 -3
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/stores/superdoc-store.d.ts.map +1 -1
- package/dist/style.css +73 -54
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BVirrB35.js → converter-DRfV_TdS.js} +1311 -847
- package/dist/super-editor/chunks/{docx-zipper-Cpb9d2an.js → docx-zipper-BGbNO5Td.js} +1 -1
- package/dist/super-editor/chunks/{editor-DIINh50j.js → editor-CkWePiIz.js} +345 -92
- package/dist/super-editor/chunks/{toolbar-CmDmkPHL.js → toolbar-Ba-s6umZ.js} +4 -4
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +46 -27
- package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarTexts.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/Attribute.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/Editor.d.ts +57 -3
- package/dist/super-editor/{src → super-editor/src}/core/Schema.d.ts +2 -2
- package/dist/super-editor/{src → super-editor/src}/core/helpers/htmlSanitizer.d.ts +1 -1
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/SuperConverter.d.ts +58 -2
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter-docx-defs.d.ts +28 -39
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/commentsExporter.d.ts +0 -7
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/attributes/w-id.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/comment-range-translator.d.ts +3 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/commentRange/index.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/node-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/extensions/comment/comments-plugin.d.ts +64 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/index.d.ts +2 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/normalize-comment-event-payload.d.ts +1 -0
- package/dist/super-editor/super-editor/src/extensions/comment/helpers/update-position.d.ts +7 -0
- package/dist/super-editor/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +5 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
- package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
- package/dist/super-editor/super-editor.es.js +26 -11
- package/dist/super-editor/superdoc/src/components/CommentsLayer/types.d.ts +157 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +3 -4
- package/dist/superdoc.es.js +3 -4
- package/dist/superdoc.umd.js +1606 -1134
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
- package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
- package/dist/super-editor/src/extensions/comment/comments-plugin.d.ts +0 -4
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +0 -1
- /package/dist/super-editor/{postcss.config.d.cts → super-editor/postcss.config.d.cts} +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/cursor-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/menuItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/tests/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/slash-menu/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/ai-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/color-dropdown-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/defaultItems.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/format-negation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/scroll-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/super-toolbar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/toolbarIcons.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/components/toolbar/use-toolbar-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/composables/use-high-contrast-mode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/CommandService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/DocxZipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/EventEmitter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Extension.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/ExtensionService.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/InputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Mark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/Node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/OxmlNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/child-editor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/child-editor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/schemaWithLists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/__tests__/testSchema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/backspaceNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/clearNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/command.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/createParagraphNear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/decreaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteNextToList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/deleteSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/exitCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/increaseListIndent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertContentAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/insertTabNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinDown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/joinUp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftEmptyBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/liftListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/find-node-position.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/is-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/list-helpers/test-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/newlineInCode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/resetAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/restoreSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectAll.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeBackward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectNodeForward.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/selectTextblockStart.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setMeta.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/setNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/sinkListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitBlock.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/splitListItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/commandTestUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/tests/test-schema.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleMarkCascade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/toggleNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/undoInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetAllMarks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/unsetMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/updateAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/commands/wrapInList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/encoding-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/editorFocus.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/extensions/keymap.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/ErrorWithDetails.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/annotator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/baseListDefinitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/chainableEditorState.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/cleanSchemaItem.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/contentProcessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createDocument.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/createNodeFromContent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/defaultBlockAt.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findChildren.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findMark.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNode.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findParentNodeClosestToPos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/findWordBounds.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxListAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/generateDocxRandomId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getActiveFormatting.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getExtensionConfigField.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getHTMLFromFragment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkRange.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarkType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getMarksFromSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getNodeType.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getSchemaTypeNameByName.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/getTextContentFromNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importHtml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/importMarkdown.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isExtentionRulesEnabled.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isInTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isMarkActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isNodeActive.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/isTextSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/list-numbering-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/orderedListUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/pasteListHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/posToDOMRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/selectionToInsertionEnd.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setImageNodeSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/setWordSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/helpers/updateDOMAttributes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/docx-paste/docx-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/google-docs-paste/google-docs-paste.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/html-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/html/transform-copied-lists.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/inputRules/wrappingInputRule.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/0.14-listsv2/listsv2migration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/migrations/migration_after_0_4_14.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/document-rels.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/docx-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/get-default-style-definition.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/docx-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/export-helpers/pre-process-vertical-merge-cells.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/exporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/hyperlink-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/num-pages-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/page-ref-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/fld-preprocessors/toc-preprocessor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/field-references/preProcessNodesForFldChar.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/mediaHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers/tableFallbackHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/docxHelper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/base-list.definitions.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/exporter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/alternateChoiceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/autoPageNumberImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkEndImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/bookmarkStartImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/documentCommentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/docxImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/hyperlinkImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/ignoredNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/imageImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/importerHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/lineBreakImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/listImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/markImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/mergeTextNodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pageReferenceImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/pictNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/runNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/standardNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tabImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/tableOfContentsImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/textNodeImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/trackChangesImporter.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/importer/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v2/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/constants/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/mc/altermateContent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/pageReference/pageReference-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/sd/tableOfContents/tableOfContents-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/b-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/b/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/bookmark-end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-first.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-col-last.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-displaced-by-custom-xml.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/attributes/w-name.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/bookmark-start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bookmark-start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-clear.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/attributes/w-line-break-type.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/br-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/br/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/cantSplit-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cantSplit/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/cnfStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/cnfStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/color/color-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/divId-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/divId/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/drawing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/drawing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/end-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/gridAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/gridBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/gridCol/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/hidden-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hidden/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/hyperlink-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/hyperlink/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/i/i-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/jc/jc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/left-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-p.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-default.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-para-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/attributes/w14-text-id.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/legacy-handle-paragraph-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/p/p-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/r/r-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/right/right-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-part-obj.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/start/start-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-leader.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-pos.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/attributes/w-tab-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tab/tab-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblCellSpacing/tblCellSpacing-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblHeader/tblHeader-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tc/tc-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/top/top-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/tr/tr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trHeight/trHeight-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/trPr/trPr-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/u/u-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wAfter/wAfter-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/w/wBefore/wBefore-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/anchor-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/handle-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/helpers/translate-anchor-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/anchor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/handle-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/helpers/translate-inline-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/handlers/wp/inline/inline-translator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/v3/node-translator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-converter/zipper.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/logger/logger.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/super-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/types.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/image-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/image-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/image/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/link-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/state/nodes/link/rules/link-rid.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/numbering/numbering-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/super-validator/validators/xml/relationships/relationships-validator.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/types/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/callOrGet.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/carbonCopy.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/clipboardUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/createStyleTag.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/deleteProps.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/imageBlobs.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isEmptyObject.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isIOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isMacOS.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/isRegExp.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/minMax.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/objectIncludes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/core/utilities/parseSizeUnit.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-nodes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/ai-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ai/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/block-node.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/block-node/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/bold.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bold/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-end.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/bookmark-start.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bookmarks/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/bullet-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/bullet-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/collaboration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/collaboration-cursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/collaboration-cursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/color.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/color/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment-import-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/comments-marks.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/content-block/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/custom-selection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/custom-selection/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/document.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/document/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/dropcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/dropcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/FieldAnnotationView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpListsWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/cleanUpParagraphWithAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/cleanup-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/field-annotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFieldAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findFirstFieldAnnotationByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findHeaderFooterAnnotationsByFieldId.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/findRemovedFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getAllFieldAnnotationsWithRect.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/getHeaderFooterAnnotations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/field-annotation/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/font-family.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-family/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/font-size.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/font-size/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/format-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/format-commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/gapcursor.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/gapcursor/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/heading.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/heading/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/highlight.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/highlight/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/history.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/history/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/image.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/fileNameUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/getFileOpener.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleImageUpload.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/handleUrl.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/imagePositionPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/processUploadedImage.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/imageHelpers/rotation.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/image/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/italic/italic.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-break/line-break.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/line-height/line-height.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/link/link.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/linked-styles.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/linked-styles/underline-css.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/ListItemNodeView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/listItemTypography.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/helpers/styledListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/list-item/list-item.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/mention/mention.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/noderesizer/noderesizer.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListMarkerPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/ordered-list/ordered-list.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-number/page-number.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/page-reference/page-reference.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/pagination/pagination.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/helpers/getDefaultSpacing.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/paragraph/paragraph.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/placeholder/placeholder.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/popover-plugin/popover-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/commands/split-run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/run/run.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/prosemirror-search-patched.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/search/search.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-container/shape-container.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shape-textbox/shape-textbox.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/shared/cascade-toggle.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/slash-menu/slash-menu.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/strike/strike.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentBlockView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentInlineView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/StructuredContentViewBase.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-part-object.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/DocumentSectionView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/document-section.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-block.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content-commands.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structured-content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/helpers/tabDecorations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/tab.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/TableView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/table.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellAround.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createCell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createColGroup.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTableBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/isCellSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/helpers/createCellBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/table-header.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/table-of-contents.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/table-row.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/text.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/text-align.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/text-indent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/text-style.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/text-transform.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-changes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-delete.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-format.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-insert.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/underline.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/main.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/data/annotations_doc_content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/editor/data/imageBase64.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/data/comments/basic-resolved-comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/list-export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/editor-test-utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/getParagraphText.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/import/testUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/utils/contextmenu-helpers.d.ts +0 -0
- /package/dist/super-editor/{vite.config.d.ts → super-editor/vite.config.d.ts} +0 -0
|
@@ -1,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);
|
|
@@ -29338,7 +29434,10 @@ function flattenFoundList$1(listElem, editor, NodeInterface) {
|
|
|
29338
29434
|
editor
|
|
29339
29435
|
});
|
|
29340
29436
|
}
|
|
29341
|
-
let level =
|
|
29437
|
+
let level = Number(listElem.getAttribute("data-level"));
|
|
29438
|
+
if (Number.isNaN(level)) {
|
|
29439
|
+
level = 0;
|
|
29440
|
+
}
|
|
29342
29441
|
let ancestor = listElem.parentElement;
|
|
29343
29442
|
while (ancestor && ancestor !== localDoc.body) {
|
|
29344
29443
|
if (ancestor.tagName && ancestor.tagName.toLowerCase() === "li") {
|
|
@@ -29358,6 +29457,7 @@ function flattenFoundList$1(listElem, editor, NodeInterface) {
|
|
|
29358
29457
|
const newList = createSingleItemList({ li, tag, rootNumId, level, editor, NodeInterface });
|
|
29359
29458
|
newLists.push(newList);
|
|
29360
29459
|
nestedListsData.forEach((data) => {
|
|
29460
|
+
data.element.setAttribute("data-level", level + 1);
|
|
29361
29461
|
newLists.push(data.element);
|
|
29362
29462
|
});
|
|
29363
29463
|
});
|
|
@@ -29792,7 +29892,7 @@ function handleHtmlPaste(html, editor, source) {
|
|
|
29792
29892
|
const paragraphContent = doc2.firstChild.content;
|
|
29793
29893
|
const tr = state2.tr.replaceSelectionWith(paragraphContent, false);
|
|
29794
29894
|
dispatch(tr);
|
|
29795
|
-
} else if (isInParagraph) {
|
|
29895
|
+
} else if (isInParagraph && state2.doc.textContent) {
|
|
29796
29896
|
const allContent = [];
|
|
29797
29897
|
doc2.content.forEach((node, index2) => {
|
|
29798
29898
|
if (node.type.name === "paragraph") {
|
|
@@ -30126,7 +30226,7 @@ function requireHe() {
|
|
|
30126
30226
|
return he$2.exports;
|
|
30127
30227
|
}
|
|
30128
30228
|
var heExports = requireHe();
|
|
30129
|
-
const he = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
30229
|
+
const he = /* @__PURE__ */ getDefaultExportFromCjs$2(heExports);
|
|
30130
30230
|
function translateFieldAnnotation(params2) {
|
|
30131
30231
|
const { node, isFinalDoc, fieldsHighlightColor } = params2;
|
|
30132
30232
|
const { attrs = {} } = node;
|
|
@@ -30528,8 +30628,8 @@ function generateSdtPrTagForStructuredContent({ node }) {
|
|
|
30528
30628
|
};
|
|
30529
30629
|
return result;
|
|
30530
30630
|
}
|
|
30531
|
-
const XML_NODE_NAME$
|
|
30532
|
-
const SD_NODE_NAME$
|
|
30631
|
+
const XML_NODE_NAME$6 = "w:sdt";
|
|
30632
|
+
const SD_NODE_NAME$6 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
|
|
30533
30633
|
const validXmlAttributes$3 = [];
|
|
30534
30634
|
function encode$c(params2) {
|
|
30535
30635
|
const nodes = params2.nodes;
|
|
@@ -30541,7 +30641,7 @@ function encode$c(params2) {
|
|
|
30541
30641
|
const result = handler2(params2);
|
|
30542
30642
|
return result;
|
|
30543
30643
|
}
|
|
30544
|
-
function decode$
|
|
30644
|
+
function decode$e(params2) {
|
|
30545
30645
|
const { node } = params2;
|
|
30546
30646
|
if (!node || !node.type) {
|
|
30547
30647
|
return null;
|
|
@@ -30560,84 +30660,84 @@ function decode$c(params2) {
|
|
|
30560
30660
|
return result;
|
|
30561
30661
|
}
|
|
30562
30662
|
const config$5 = {
|
|
30563
|
-
xmlName: XML_NODE_NAME$
|
|
30564
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30663
|
+
xmlName: XML_NODE_NAME$6,
|
|
30664
|
+
sdNodeOrKeyName: SD_NODE_NAME$6,
|
|
30565
30665
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30566
30666
|
encode: encode$c,
|
|
30567
|
-
decode: decode$
|
|
30667
|
+
decode: decode$e,
|
|
30568
30668
|
attributes: validXmlAttributes$3
|
|
30569
30669
|
};
|
|
30570
30670
|
const translator$5 = NodeTranslator.from(config$5);
|
|
30571
30671
|
const encode$b = (attributes) => {
|
|
30572
30672
|
return attributes["w:id"];
|
|
30573
30673
|
};
|
|
30574
|
-
const decode$
|
|
30674
|
+
const decode$d = (attrs) => {
|
|
30575
30675
|
return attrs.id;
|
|
30576
30676
|
};
|
|
30577
|
-
const attrConfig$
|
|
30677
|
+
const attrConfig$7 = Object.freeze({
|
|
30578
30678
|
xmlName: "w:id",
|
|
30579
30679
|
sdName: "id",
|
|
30580
30680
|
encode: encode$b,
|
|
30581
|
-
decode: decode$
|
|
30681
|
+
decode: decode$d
|
|
30582
30682
|
});
|
|
30583
30683
|
const encode$a = (attributes) => {
|
|
30584
30684
|
return attributes["w:name"];
|
|
30585
30685
|
};
|
|
30586
|
-
const decode$
|
|
30686
|
+
const decode$c = (attrs) => {
|
|
30587
30687
|
return attrs.name;
|
|
30588
30688
|
};
|
|
30589
|
-
const attrConfig$
|
|
30689
|
+
const attrConfig$6 = Object.freeze({
|
|
30590
30690
|
xmlName: "w:name",
|
|
30591
30691
|
sdName: "name",
|
|
30592
30692
|
encode: encode$a,
|
|
30593
|
-
decode: decode$
|
|
30693
|
+
decode: decode$c
|
|
30594
30694
|
});
|
|
30595
30695
|
const encode$9 = (attributes) => {
|
|
30596
30696
|
return attributes["w:colFirst"];
|
|
30597
30697
|
};
|
|
30598
|
-
const decode$
|
|
30698
|
+
const decode$b = (attrs) => {
|
|
30599
30699
|
return attrs.colFirst;
|
|
30600
30700
|
};
|
|
30601
|
-
const attrConfig$
|
|
30701
|
+
const attrConfig$5 = Object.freeze({
|
|
30602
30702
|
xmlName: "w:colFirst",
|
|
30603
30703
|
sdName: "colFirst",
|
|
30604
30704
|
encode: encode$9,
|
|
30605
|
-
decode: decode$
|
|
30705
|
+
decode: decode$b
|
|
30606
30706
|
});
|
|
30607
30707
|
const encode$8 = (attributes) => {
|
|
30608
30708
|
return attributes["w:colLast"];
|
|
30609
30709
|
};
|
|
30610
|
-
const decode$
|
|
30710
|
+
const decode$a = (attrs) => {
|
|
30611
30711
|
return attrs.colLast;
|
|
30612
30712
|
};
|
|
30613
|
-
const attrConfig$
|
|
30713
|
+
const attrConfig$4 = Object.freeze({
|
|
30614
30714
|
xmlName: "w:colLast",
|
|
30615
30715
|
sdName: "colLast",
|
|
30616
30716
|
encode: encode$8,
|
|
30617
|
-
decode: decode$
|
|
30717
|
+
decode: decode$a
|
|
30618
30718
|
});
|
|
30619
30719
|
const encode$7 = (attributes) => {
|
|
30620
30720
|
return attributes["w:displacedByCustomXml"];
|
|
30621
30721
|
};
|
|
30622
|
-
const decode$
|
|
30722
|
+
const decode$9 = (attrs) => {
|
|
30623
30723
|
return attrs.displacedByCustomXml;
|
|
30624
30724
|
};
|
|
30625
|
-
const attrConfig$
|
|
30725
|
+
const attrConfig$3 = Object.freeze({
|
|
30626
30726
|
xmlName: "w:displacedByCustomXml",
|
|
30627
30727
|
sdName: "displacedByCustomXml",
|
|
30628
30728
|
encode: encode$7,
|
|
30629
|
-
decode: decode$
|
|
30729
|
+
decode: decode$9
|
|
30630
30730
|
});
|
|
30631
|
-
const validXmlAttributes$2 = [attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3
|
|
30632
|
-
const XML_NODE_NAME$
|
|
30633
|
-
const SD_NODE_NAME$
|
|
30731
|
+
const validXmlAttributes$2 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
|
|
30732
|
+
const XML_NODE_NAME$5 = "w:bookmarkStart";
|
|
30733
|
+
const SD_NODE_NAME$5 = "bookmarkStart";
|
|
30634
30734
|
const encode$6 = (params2, encodedAttrs = {}) => {
|
|
30635
30735
|
return {
|
|
30636
30736
|
type: "bookmarkStart",
|
|
30637
30737
|
attrs: encodedAttrs
|
|
30638
30738
|
};
|
|
30639
30739
|
};
|
|
30640
|
-
const decode$
|
|
30740
|
+
const decode$8 = (params2, decodedAttrs = {}) => {
|
|
30641
30741
|
const result = {
|
|
30642
30742
|
name: "w:bookmarkStart",
|
|
30643
30743
|
elements: []
|
|
@@ -30648,48 +30748,48 @@ const decode$6 = (params2, decodedAttrs = {}) => {
|
|
|
30648
30748
|
return result;
|
|
30649
30749
|
};
|
|
30650
30750
|
const config$4 = {
|
|
30651
|
-
xmlName: XML_NODE_NAME$
|
|
30652
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30751
|
+
xmlName: XML_NODE_NAME$5,
|
|
30752
|
+
sdNodeOrKeyName: SD_NODE_NAME$5,
|
|
30653
30753
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30654
30754
|
encode: encode$6,
|
|
30655
|
-
decode: decode$
|
|
30755
|
+
decode: decode$8,
|
|
30656
30756
|
attributes: validXmlAttributes$2
|
|
30657
30757
|
};
|
|
30658
30758
|
const translator$4 = NodeTranslator.from(config$4);
|
|
30659
30759
|
const encode$5 = (attributes) => {
|
|
30660
30760
|
return attributes["w:id"];
|
|
30661
30761
|
};
|
|
30662
|
-
const decode$
|
|
30762
|
+
const decode$7 = (attrs) => {
|
|
30663
30763
|
return attrs.id;
|
|
30664
30764
|
};
|
|
30665
|
-
const attrConfig$
|
|
30765
|
+
const attrConfig$2 = Object.freeze({
|
|
30666
30766
|
xmlName: "w:id",
|
|
30667
30767
|
sdName: "id",
|
|
30668
30768
|
encode: encode$5,
|
|
30669
|
-
decode: decode$
|
|
30769
|
+
decode: decode$7
|
|
30670
30770
|
});
|
|
30671
30771
|
const encode$4 = (attributes) => {
|
|
30672
30772
|
return attributes["w:displacedByCustomXml"];
|
|
30673
30773
|
};
|
|
30674
|
-
const decode$
|
|
30774
|
+
const decode$6 = (attrs) => {
|
|
30675
30775
|
return attrs.displacedByCustomXml;
|
|
30676
30776
|
};
|
|
30677
|
-
const attrConfig = Object.freeze({
|
|
30777
|
+
const attrConfig$1 = Object.freeze({
|
|
30678
30778
|
xmlName: "w:displacedByCustomXml",
|
|
30679
30779
|
sdName: "displacedByCustomXml",
|
|
30680
30780
|
encode: encode$4,
|
|
30681
|
-
decode: decode$
|
|
30781
|
+
decode: decode$6
|
|
30682
30782
|
});
|
|
30683
|
-
const validXmlAttributes$1 = [attrConfig$
|
|
30684
|
-
const XML_NODE_NAME$
|
|
30685
|
-
const SD_NODE_NAME$
|
|
30783
|
+
const validXmlAttributes$1 = [attrConfig$2, attrConfig$1];
|
|
30784
|
+
const XML_NODE_NAME$4 = "w:bookmarkEnd";
|
|
30785
|
+
const SD_NODE_NAME$4 = "bookmarkEnd";
|
|
30686
30786
|
const encode$3 = (params2, encodedAttrs = {}) => {
|
|
30687
30787
|
return {
|
|
30688
30788
|
type: "bookmarkEnd",
|
|
30689
30789
|
attrs: encodedAttrs
|
|
30690
30790
|
};
|
|
30691
30791
|
};
|
|
30692
|
-
const decode$
|
|
30792
|
+
const decode$5 = (params2, decodedAttrs = {}) => {
|
|
30693
30793
|
const result = {
|
|
30694
30794
|
name: "w:bookmarkEnd",
|
|
30695
30795
|
elements: []
|
|
@@ -30700,16 +30800,16 @@ const decode$3 = (params2, decodedAttrs = {}) => {
|
|
|
30700
30800
|
return result;
|
|
30701
30801
|
};
|
|
30702
30802
|
const config$3 = {
|
|
30703
|
-
xmlName: XML_NODE_NAME$
|
|
30704
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30803
|
+
xmlName: XML_NODE_NAME$4,
|
|
30804
|
+
sdNodeOrKeyName: SD_NODE_NAME$4,
|
|
30705
30805
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30706
30806
|
encode: encode$3,
|
|
30707
|
-
decode: decode$
|
|
30807
|
+
decode: decode$5,
|
|
30708
30808
|
attributes: validXmlAttributes$1
|
|
30709
30809
|
};
|
|
30710
30810
|
const translator$3 = NodeTranslator.from(config$3);
|
|
30711
|
-
const XML_NODE_NAME$
|
|
30712
|
-
const SD_NODE_NAME$
|
|
30811
|
+
const XML_NODE_NAME$3 = "mc:AlternateContent";
|
|
30812
|
+
const SD_NODE_NAME$3 = [];
|
|
30713
30813
|
const validXmlAttributes = [];
|
|
30714
30814
|
function encode$2(params2) {
|
|
30715
30815
|
const { nodeListHandler } = params2;
|
|
@@ -30731,7 +30831,7 @@ function encode$2(params2) {
|
|
|
30731
30831
|
path: [...params2.path || [], wpsNode]
|
|
30732
30832
|
});
|
|
30733
30833
|
}
|
|
30734
|
-
function decode$
|
|
30834
|
+
function decode$4(params2) {
|
|
30735
30835
|
const { node } = params2;
|
|
30736
30836
|
const { drawingContent } = node.attrs;
|
|
30737
30837
|
const drawing = {
|
|
@@ -30749,14 +30849,78 @@ function decode$2(params2) {
|
|
|
30749
30849
|
};
|
|
30750
30850
|
}
|
|
30751
30851
|
const config$2 = {
|
|
30752
|
-
xmlName: XML_NODE_NAME$
|
|
30753
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
30852
|
+
xmlName: XML_NODE_NAME$3,
|
|
30853
|
+
sdNodeOrKeyName: SD_NODE_NAME$3,
|
|
30754
30854
|
type: NodeTranslator.translatorTypes.NODE,
|
|
30755
30855
|
encode: encode$2,
|
|
30756
|
-
decode: decode$
|
|
30856
|
+
decode: decode$4,
|
|
30757
30857
|
attributes: validXmlAttributes
|
|
30758
30858
|
};
|
|
30759
30859
|
const translator$2 = NodeTranslator.from(config$2);
|
|
30860
|
+
const decode$3 = (attrs) => attrs?.["w:id"];
|
|
30861
|
+
const attrConfig = Object.freeze({
|
|
30862
|
+
xmlName: "w:id",
|
|
30863
|
+
sdName: "w:id",
|
|
30864
|
+
// We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
|
|
30865
|
+
encode: () => {
|
|
30866
|
+
},
|
|
30867
|
+
decode: decode$3
|
|
30868
|
+
});
|
|
30869
|
+
const XML_NODE_NAME$2 = "w:commentRange";
|
|
30870
|
+
const SD_NODE_NAME$2 = "commentRange";
|
|
30871
|
+
const decode$2 = (params2, decodedAttrs) => {
|
|
30872
|
+
const { node, comments, commentsExportType, exportedCommentDefs } = params2;
|
|
30873
|
+
if (!node) return;
|
|
30874
|
+
if (!comments) return;
|
|
30875
|
+
if (exportedCommentDefs?.length === 0) return;
|
|
30876
|
+
if (commentsExportType === "clean") return;
|
|
30877
|
+
const commentNodeId = node.attrs["w:id"];
|
|
30878
|
+
const originalComment = comments.find((comment) => {
|
|
30879
|
+
return comment.commentId == commentNodeId;
|
|
30880
|
+
});
|
|
30881
|
+
if (!originalComment) return;
|
|
30882
|
+
const parentCommentId = originalComment.parentCommentId;
|
|
30883
|
+
const parentComment = comments.find(
|
|
30884
|
+
({ commentId, importedId }) => commentId === parentCommentId || importedId === parentCommentId
|
|
30885
|
+
);
|
|
30886
|
+
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
30887
|
+
if (commentsExportType === "external" && isInternal) return;
|
|
30888
|
+
const isResolved = !!originalComment.resolvedTime;
|
|
30889
|
+
if (isResolved) return;
|
|
30890
|
+
if (node.type !== "commentRangeStart" && node.type !== "commentRangeEnd") {
|
|
30891
|
+
return;
|
|
30892
|
+
}
|
|
30893
|
+
const { type: type2 } = node;
|
|
30894
|
+
const commentIndex = comments.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
30895
|
+
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
30896
|
+
if (type2 === "commentRangeEnd") {
|
|
30897
|
+
const commentReference = {
|
|
30898
|
+
name: "w:r",
|
|
30899
|
+
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
30900
|
+
};
|
|
30901
|
+
commentSchema = [commentSchema, commentReference];
|
|
30902
|
+
}
|
|
30903
|
+
return commentSchema;
|
|
30904
|
+
};
|
|
30905
|
+
const getCommentSchema = (type2, commentIndex) => {
|
|
30906
|
+
return {
|
|
30907
|
+
name: `w:${type2}`,
|
|
30908
|
+
attributes: {
|
|
30909
|
+
"w:id": String(commentIndex)
|
|
30910
|
+
}
|
|
30911
|
+
};
|
|
30912
|
+
};
|
|
30913
|
+
const getConfig = (type2) => ({
|
|
30914
|
+
xmlName: `${XML_NODE_NAME$2}${type2}`,
|
|
30915
|
+
sdNodeOrKeyName: `${SD_NODE_NAME$2}${type2}`,
|
|
30916
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
30917
|
+
encode: () => {
|
|
30918
|
+
},
|
|
30919
|
+
decode: decode$2,
|
|
30920
|
+
attributes: [attrConfig]
|
|
30921
|
+
});
|
|
30922
|
+
const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
|
|
30923
|
+
const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
|
|
30760
30924
|
const XML_NODE_NAME$1 = "sd:pageReference";
|
|
30761
30925
|
const SD_NODE_NAME$1 = "pageReference";
|
|
30762
30926
|
const encode$1 = (params2, _2) => {
|
|
@@ -31016,8 +31180,8 @@ function exportSchemaToJson(params2) {
|
|
|
31016
31180
|
tab: translator$17,
|
|
31017
31181
|
image: translator$6,
|
|
31018
31182
|
hardBreak: translator$19,
|
|
31019
|
-
commentRangeStart:
|
|
31020
|
-
commentRangeEnd:
|
|
31183
|
+
commentRangeStart: commentRangeStartTranslator,
|
|
31184
|
+
commentRangeEnd: commentRangeEndTranslator,
|
|
31021
31185
|
commentReference: () => null,
|
|
31022
31186
|
shapeContainer: translateShapeContainer,
|
|
31023
31187
|
shapeTextbox: translateShapeTextbox,
|
|
@@ -33291,7 +33455,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33291
33455
|
fileType: filePath.split(".").pop()
|
|
33292
33456
|
};
|
|
33293
33457
|
});
|
|
33294
|
-
converter.telemetry.trackFileStructure(
|
|
33458
|
+
const trackStructure = (documentIdentifier = null) => converter.telemetry.trackFileStructure(
|
|
33295
33459
|
{
|
|
33296
33460
|
totalFiles: files.length,
|
|
33297
33461
|
maxDepth: Math.max(...files.map((f) => f.fileDepth)),
|
|
@@ -33299,9 +33463,20 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33299
33463
|
files
|
|
33300
33464
|
},
|
|
33301
33465
|
converter.fileSource,
|
|
33302
|
-
converter.documentId,
|
|
33466
|
+
converter.documentGuid ?? converter.documentId ?? null,
|
|
33467
|
+
documentIdentifier ?? converter.documentId ?? null,
|
|
33303
33468
|
converter.documentInternalId
|
|
33304
33469
|
);
|
|
33470
|
+
try {
|
|
33471
|
+
const identifierResult = converter.getDocumentIdentifier?.();
|
|
33472
|
+
if (identifierResult && typeof identifierResult.then === "function") {
|
|
33473
|
+
identifierResult.then(trackStructure).catch(() => trackStructure());
|
|
33474
|
+
} else {
|
|
33475
|
+
trackStructure(identifierResult);
|
|
33476
|
+
}
|
|
33477
|
+
} catch (error) {
|
|
33478
|
+
trackStructure();
|
|
33479
|
+
}
|
|
33305
33480
|
}
|
|
33306
33481
|
const nodeListHandler = defaultNodeListHandler();
|
|
33307
33482
|
const bodyNode = json.elements[0].elements.find((el) => el.name === "w:body");
|
|
@@ -33777,6 +33952,176 @@ const isAlternatingHeadersOddEven = (docx) => {
|
|
|
33777
33952
|
const evenOdd = elements.find((el) => el.name === "w:evenAndOddHeaders");
|
|
33778
33953
|
return !!evenOdd;
|
|
33779
33954
|
};
|
|
33955
|
+
const prepareCommentParaIds = (comment) => {
|
|
33956
|
+
const newComment = {
|
|
33957
|
+
...comment,
|
|
33958
|
+
commentParaId: generateRandom32BitHex()
|
|
33959
|
+
};
|
|
33960
|
+
return newComment;
|
|
33961
|
+
};
|
|
33962
|
+
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
33963
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
33964
|
+
const attributes = {
|
|
33965
|
+
"w:id": String(commentId),
|
|
33966
|
+
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
33967
|
+
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
33968
|
+
"w:date": toIsoNoFractional(comment.createdTime),
|
|
33969
|
+
"w:initials": getInitials(comment.creatorName),
|
|
33970
|
+
"w:done": comment.resolvedTime ? "1" : "0",
|
|
33971
|
+
"w15:paraId": comment.commentParaId,
|
|
33972
|
+
"custom:internalId": comment.commentId || comment.internalId,
|
|
33973
|
+
"custom:trackedChange": comment.trackedChange,
|
|
33974
|
+
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
33975
|
+
"custom:trackedChangeType": comment.trackedChangeType,
|
|
33976
|
+
"custom:trackedDeletedText": comment.deletedText || null
|
|
33977
|
+
};
|
|
33978
|
+
if (comment?.parentCommentId) {
|
|
33979
|
+
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
33980
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
33981
|
+
}
|
|
33982
|
+
return {
|
|
33983
|
+
type: "element",
|
|
33984
|
+
name: "w:comment",
|
|
33985
|
+
attributes,
|
|
33986
|
+
elements: [translatedText]
|
|
33987
|
+
};
|
|
33988
|
+
};
|
|
33989
|
+
const getInitials = (name) => {
|
|
33990
|
+
if (!name) return null;
|
|
33991
|
+
const preparedText = name.replace("(imported)", "").trim();
|
|
33992
|
+
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
33993
|
+
return initials;
|
|
33994
|
+
};
|
|
33995
|
+
const toIsoNoFractional = (unixMillis) => {
|
|
33996
|
+
const date = new Date(unixMillis || Date.now());
|
|
33997
|
+
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
33998
|
+
};
|
|
33999
|
+
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
34000
|
+
const newCommentsXml = carbonCopy(commentsXml);
|
|
34001
|
+
commentDefs.forEach((commentDef) => {
|
|
34002
|
+
const elements = commentDef.elements[0].elements;
|
|
34003
|
+
elements.unshift(COMMENT_REF);
|
|
34004
|
+
const paraId = commentDef.attributes["w15:paraId"];
|
|
34005
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
34006
|
+
commentDef.attributes = {
|
|
34007
|
+
"w:id": commentDef.attributes["w:id"],
|
|
34008
|
+
"w:author": commentDef.attributes["w:author"],
|
|
34009
|
+
"w:email": commentDef.attributes["w:email"],
|
|
34010
|
+
"w:date": commentDef.attributes["w:date"],
|
|
34011
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
34012
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
34013
|
+
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
34014
|
+
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
34015
|
+
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
34016
|
+
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
34017
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
34018
|
+
};
|
|
34019
|
+
});
|
|
34020
|
+
newCommentsXml.elements[0].elements = commentDefs;
|
|
34021
|
+
return newCommentsXml;
|
|
34022
|
+
};
|
|
34023
|
+
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
34024
|
+
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
34025
|
+
const commentsEx = comments.map((comment) => {
|
|
34026
|
+
const attributes = {
|
|
34027
|
+
"w15:paraId": comment.commentParaId,
|
|
34028
|
+
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
34029
|
+
};
|
|
34030
|
+
const parentId = comment.parentCommentId;
|
|
34031
|
+
if (parentId) {
|
|
34032
|
+
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
34033
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
34034
|
+
}
|
|
34035
|
+
return {
|
|
34036
|
+
type: "element",
|
|
34037
|
+
name: "w15:commentEx",
|
|
34038
|
+
attributes
|
|
34039
|
+
};
|
|
34040
|
+
});
|
|
34041
|
+
xmlCopy.elements[0].elements = commentsEx;
|
|
34042
|
+
return xmlCopy;
|
|
34043
|
+
};
|
|
34044
|
+
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
34045
|
+
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
34046
|
+
const extensibleUpdated = carbonCopy(extensible);
|
|
34047
|
+
documentIdsUpdated.elements[0].elements = [];
|
|
34048
|
+
extensibleUpdated.elements[0].elements = [];
|
|
34049
|
+
comments.forEach((comment) => {
|
|
34050
|
+
const newDurableId = generateRandom32BitHex();
|
|
34051
|
+
const newCommentIdDef = {
|
|
34052
|
+
type: "element",
|
|
34053
|
+
name: "w16cid:commentId",
|
|
34054
|
+
attributes: {
|
|
34055
|
+
"w16cid:paraId": comment.commentParaId,
|
|
34056
|
+
"w16cid:durableId": newDurableId
|
|
34057
|
+
}
|
|
34058
|
+
};
|
|
34059
|
+
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
34060
|
+
const newExtensible = {
|
|
34061
|
+
type: "element",
|
|
34062
|
+
name: "w16cex:commentExtensible",
|
|
34063
|
+
attributes: {
|
|
34064
|
+
"w16cex:durableId": newDurableId,
|
|
34065
|
+
"w16cex:dateUtc": toIsoNoFractional()
|
|
34066
|
+
}
|
|
34067
|
+
};
|
|
34068
|
+
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
34069
|
+
});
|
|
34070
|
+
return {
|
|
34071
|
+
documentIdsUpdated,
|
|
34072
|
+
extensibleUpdated
|
|
34073
|
+
};
|
|
34074
|
+
};
|
|
34075
|
+
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
34076
|
+
const newXml = carbonCopy(convertedXml);
|
|
34077
|
+
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
34078
|
+
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
34079
|
+
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
34080
|
+
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
34081
|
+
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
34082
|
+
return newXml;
|
|
34083
|
+
};
|
|
34084
|
+
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
34085
|
+
const updatedXml = carbonCopy(convertedXml);
|
|
34086
|
+
delete updatedXml["word/comments.xml"];
|
|
34087
|
+
delete updatedXml["word/commentsExtended.xml"];
|
|
34088
|
+
delete updatedXml["word/commentsExtensible.xml"];
|
|
34089
|
+
delete updatedXml["word/commentsIds.xml"];
|
|
34090
|
+
return updatedXml;
|
|
34091
|
+
};
|
|
34092
|
+
const generateRelationship = (target) => {
|
|
34093
|
+
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
34094
|
+
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
34095
|
+
return { ...rel };
|
|
34096
|
+
};
|
|
34097
|
+
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
34098
|
+
const relationships = [];
|
|
34099
|
+
if (exportType === "clean") {
|
|
34100
|
+
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
34101
|
+
return { documentXml, relationships };
|
|
34102
|
+
}
|
|
34103
|
+
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
34104
|
+
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
34105
|
+
relationships.push(generateRelationship("comments.xml"));
|
|
34106
|
+
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
34107
|
+
commentsWithParaIds,
|
|
34108
|
+
updatedXml["word/commentsExtended.xml"]
|
|
34109
|
+
);
|
|
34110
|
+
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
34111
|
+
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
34112
|
+
commentsWithParaIds,
|
|
34113
|
+
updatedXml["word/commentsIds.xml"],
|
|
34114
|
+
updatedXml["word/commentsExtensible.xml"]
|
|
34115
|
+
);
|
|
34116
|
+
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
34117
|
+
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
34118
|
+
relationships.push(generateRelationship("commentsIds.xml"));
|
|
34119
|
+
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
34120
|
+
return {
|
|
34121
|
+
relationships,
|
|
34122
|
+
documentXml: updatedXml
|
|
34123
|
+
};
|
|
34124
|
+
};
|
|
33780
34125
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
33781
34126
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
33782
34127
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
@@ -33852,6 +34197,9 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33852
34197
|
this.documentInternalId = null;
|
|
33853
34198
|
this.fileSource = params2?.fileSource || null;
|
|
33854
34199
|
this.documentId = params2?.documentId || null;
|
|
34200
|
+
this.documentGuid = null;
|
|
34201
|
+
this.documentHash = null;
|
|
34202
|
+
this.documentModified = false;
|
|
33855
34203
|
if (this.docx.length || this.xml) this.parseFromXml();
|
|
33856
34204
|
}
|
|
33857
34205
|
static getFontTableEntry(docx, fontName) {
|
|
@@ -33899,50 +34247,177 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
33899
34247
|
this.initialJSON = this.convertedXml["word/document.xml"];
|
|
33900
34248
|
if (!this.initialJSON) this.initialJSON = this.parseXmlToJson(this.xml);
|
|
33901
34249
|
this.declaration = this.initialJSON?.declaration;
|
|
34250
|
+
this.resolveDocumentGuid();
|
|
33902
34251
|
}
|
|
33903
34252
|
parseXmlToJson(xml) {
|
|
33904
34253
|
const newXml = xml.replace(/(<w:t xml:space="preserve">)(\s+)(<\/w:t>)/g, "$1[[sdspace]]$2[[sdspace]]$3");
|
|
33905
34254
|
return JSON.parse(xmljs.xml2json(newXml, null, 2));
|
|
33906
34255
|
}
|
|
33907
|
-
|
|
34256
|
+
/**
|
|
34257
|
+
* Generic method to get a stored custom property from docx
|
|
34258
|
+
* @static
|
|
34259
|
+
* @param {Array} docx - Array of docx file objects
|
|
34260
|
+
* @param {string} propertyName - Name of the property to retrieve
|
|
34261
|
+
* @returns {string|null} The property value or null if not found
|
|
34262
|
+
*/
|
|
34263
|
+
static getStoredCustomProperty(docx, propertyName) {
|
|
33908
34264
|
try {
|
|
33909
34265
|
const customXml = docx.find((doc2) => doc2.name === "docProps/custom.xml");
|
|
33910
|
-
if (!customXml) return;
|
|
34266
|
+
if (!customXml) return null;
|
|
33911
34267
|
const converter = new _SuperConverter2();
|
|
33912
34268
|
const content = customXml.content;
|
|
33913
34269
|
const contentJson = converter.parseXmlToJson(content);
|
|
33914
34270
|
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;
|
|
34271
|
+
if (!properties.elements) return null;
|
|
34272
|
+
const property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34273
|
+
if (!property2) return null;
|
|
34274
|
+
return property2.elements[0].elements[0].text;
|
|
33922
34275
|
} catch (e) {
|
|
33923
|
-
console.warn(
|
|
33924
|
-
return;
|
|
34276
|
+
console.warn(`Error getting custom property ${propertyName}:`, e);
|
|
34277
|
+
return null;
|
|
33925
34278
|
}
|
|
33926
34279
|
}
|
|
33927
|
-
|
|
34280
|
+
/**
|
|
34281
|
+
* Generic method to set a stored custom property in docx
|
|
34282
|
+
* @static
|
|
34283
|
+
* @param {Object} docx - The docx object to store the property in
|
|
34284
|
+
* @param {string} propertyName - Name of the property
|
|
34285
|
+
* @param {string|Function} value - Value or function that returns the value
|
|
34286
|
+
* @param {boolean} preserveExisting - If true, won't overwrite existing values
|
|
34287
|
+
* @returns {string} The stored value
|
|
34288
|
+
*/
|
|
34289
|
+
static setStoredCustomProperty(docx, propertyName, value, preserveExisting = false) {
|
|
33928
34290
|
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");
|
|
34291
|
+
if (!docx[customLocation]) docx[customLocation] = generateCustomXml();
|
|
34292
|
+
const customXml = docx[customLocation];
|
|
34293
|
+
const properties = customXml.elements?.find((el) => el.name === "Properties");
|
|
34294
|
+
if (!properties) return null;
|
|
33935
34295
|
if (!properties.elements) properties.elements = [];
|
|
33936
|
-
|
|
33937
|
-
|
|
33938
|
-
|
|
33939
|
-
|
|
33940
|
-
|
|
33941
|
-
|
|
34296
|
+
let property2 = properties.elements.find((el) => el.name === "property" && el.attributes.name === propertyName);
|
|
34297
|
+
if (property2 && preserveExisting) {
|
|
34298
|
+
return property2.elements[0].elements[0].text;
|
|
34299
|
+
}
|
|
34300
|
+
const finalValue = typeof value === "function" ? value() : value;
|
|
34301
|
+
if (!property2) {
|
|
34302
|
+
const existingPids = properties.elements.filter((el) => el.attributes?.pid).map((el) => parseInt(el.attributes.pid, 10)).filter(Number.isInteger);
|
|
34303
|
+
const pid = existingPids.length > 0 ? Math.max(...existingPids) + 1 : 2;
|
|
34304
|
+
property2 = {
|
|
34305
|
+
type: "element",
|
|
34306
|
+
name: "property",
|
|
34307
|
+
attributes: {
|
|
34308
|
+
name: propertyName,
|
|
34309
|
+
fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",
|
|
34310
|
+
pid
|
|
34311
|
+
},
|
|
34312
|
+
elements: [
|
|
34313
|
+
{
|
|
34314
|
+
type: "element",
|
|
34315
|
+
name: "vt:lpwstr",
|
|
34316
|
+
elements: [
|
|
34317
|
+
{
|
|
34318
|
+
type: "text",
|
|
34319
|
+
text: finalValue
|
|
34320
|
+
}
|
|
34321
|
+
]
|
|
34322
|
+
}
|
|
34323
|
+
]
|
|
34324
|
+
};
|
|
34325
|
+
properties.elements.push(property2);
|
|
33942
34326
|
} else {
|
|
33943
|
-
|
|
34327
|
+
property2.elements[0].elements[0].text = finalValue;
|
|
33944
34328
|
}
|
|
33945
|
-
return
|
|
34329
|
+
return finalValue;
|
|
34330
|
+
}
|
|
34331
|
+
static getStoredSuperdocVersion(docx) {
|
|
34332
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
34333
|
+
}
|
|
34334
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.22.0") {
|
|
34335
|
+
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
34336
|
+
}
|
|
34337
|
+
/**
|
|
34338
|
+
* Get document GUID from docx files (static method)
|
|
34339
|
+
* @static
|
|
34340
|
+
* @param {Array} docx - Array of docx file objects
|
|
34341
|
+
* @returns {string|null} The document GUID
|
|
34342
|
+
*/
|
|
34343
|
+
static extractDocumentGuid(docx) {
|
|
34344
|
+
try {
|
|
34345
|
+
const settingsXml = docx.find((doc2) => doc2.name === "word/settings.xml");
|
|
34346
|
+
if (!settingsXml) return null;
|
|
34347
|
+
const converter = new _SuperConverter2();
|
|
34348
|
+
const settingsJson = converter.parseXmlToJson(settingsXml.content);
|
|
34349
|
+
const settings = settingsJson.elements?.[0];
|
|
34350
|
+
if (!settings) return null;
|
|
34351
|
+
const docIdElement = settings.elements?.find((el) => el.name === "w15:docId");
|
|
34352
|
+
if (docIdElement?.attributes?.["w15:val"]) {
|
|
34353
|
+
return docIdElement.attributes["w15:val"].replace(/[{}]/g, "");
|
|
34354
|
+
}
|
|
34355
|
+
} catch {
|
|
34356
|
+
}
|
|
34357
|
+
return _SuperConverter2.getStoredCustomProperty(docx, "DocumentGuid");
|
|
34358
|
+
}
|
|
34359
|
+
/**
|
|
34360
|
+
* Get the permanent document GUID
|
|
34361
|
+
* @returns {string|null} The document GUID (only for modified documents)
|
|
34362
|
+
*/
|
|
34363
|
+
getDocumentGuid() {
|
|
34364
|
+
return this.documentGuid;
|
|
34365
|
+
}
|
|
34366
|
+
/**
|
|
34367
|
+
* Get the SuperDoc version for this converter instance
|
|
34368
|
+
* @returns {string|null} The SuperDoc version or null if not available
|
|
34369
|
+
*/
|
|
34370
|
+
getSuperdocVersion() {
|
|
34371
|
+
if (this.docx) {
|
|
34372
|
+
return _SuperConverter2.getStoredSuperdocVersion(this.docx);
|
|
34373
|
+
}
|
|
34374
|
+
return null;
|
|
34375
|
+
}
|
|
34376
|
+
/**
|
|
34377
|
+
* Resolve existing document GUID (synchronous)
|
|
34378
|
+
*/
|
|
34379
|
+
resolveDocumentGuid() {
|
|
34380
|
+
const microsoftGuid = this.getMicrosoftDocId();
|
|
34381
|
+
if (microsoftGuid) {
|
|
34382
|
+
this.documentGuid = microsoftGuid;
|
|
34383
|
+
return;
|
|
34384
|
+
}
|
|
34385
|
+
const customGuid = _SuperConverter2.getStoredCustomProperty(this.docx, "DocumentGuid");
|
|
34386
|
+
if (customGuid) {
|
|
34387
|
+
this.documentGuid = customGuid;
|
|
34388
|
+
}
|
|
34389
|
+
}
|
|
34390
|
+
/**
|
|
34391
|
+
* Get Microsoft's docId from settings.xml (READ ONLY)
|
|
34392
|
+
*/
|
|
34393
|
+
getMicrosoftDocId() {
|
|
34394
|
+
this.getDocumentInternalId();
|
|
34395
|
+
if (this.documentInternalId) {
|
|
34396
|
+
return this.documentInternalId.replace(/[{}]/g, "");
|
|
34397
|
+
}
|
|
34398
|
+
return null;
|
|
34399
|
+
}
|
|
34400
|
+
/**
|
|
34401
|
+
* Get document identifier (GUID or hash) - async for lazy hash generation
|
|
34402
|
+
*/
|
|
34403
|
+
async getDocumentIdentifier() {
|
|
34404
|
+
if (this.documentGuid) {
|
|
34405
|
+
return this.documentGuid;
|
|
34406
|
+
}
|
|
34407
|
+
if (!this.documentHash && this.fileSource) {
|
|
34408
|
+
this.documentHash = await __privateMethod$2(this, _SuperConverter_instances, generateDocumentHash_fn).call(this);
|
|
34409
|
+
}
|
|
34410
|
+
return this.documentHash;
|
|
34411
|
+
}
|
|
34412
|
+
/**
|
|
34413
|
+
* Promote from hash to GUID on first edit
|
|
34414
|
+
*/
|
|
34415
|
+
promoteToGuid() {
|
|
34416
|
+
if (this.documentGuid) return this.documentGuid;
|
|
34417
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34418
|
+
this.documentModified = true;
|
|
34419
|
+
this.documentHash = null;
|
|
34420
|
+
return this.documentGuid;
|
|
33946
34421
|
}
|
|
33947
34422
|
getDocumentDefaultStyles() {
|
|
33948
34423
|
const styles = this.convertedXml["word/styles.xml"];
|
|
@@ -34031,20 +34506,14 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34031
34506
|
getDocumentInternalId() {
|
|
34032
34507
|
const settingsLocation = "word/settings.xml";
|
|
34033
34508
|
if (!this.convertedXml[settingsLocation]) {
|
|
34034
|
-
|
|
34509
|
+
return;
|
|
34035
34510
|
}
|
|
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;
|
|
34511
|
+
const settings = this.convertedXml[settingsLocation];
|
|
34512
|
+
if (!settings.elements?.[0]?.elements?.length) {
|
|
34044
34513
|
return;
|
|
34045
34514
|
}
|
|
34046
34515
|
const w15DocId = settings.elements[0].elements.find((el) => el.name === "w15:docId");
|
|
34047
|
-
this.documentInternalId = w15DocId?.attributes["w15:val"];
|
|
34516
|
+
this.documentInternalId = w15DocId?.attributes?.["w15:val"];
|
|
34048
34517
|
}
|
|
34049
34518
|
createDocumentIdElement() {
|
|
34050
34519
|
const docId = v4().toUpperCase();
|
|
@@ -34133,7 +34602,13 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34133
34602
|
this.convertedXml = { ...this.convertedXml, ...updatedXml };
|
|
34134
34603
|
const headFootRels = __privateMethod$2(this, _SuperConverter_instances, exportProcessHeadersFooters_fn).call(this, { isFinalDoc });
|
|
34135
34604
|
__privateMethod$2(this, _SuperConverter_instances, exportProcessNewRelationships_fn).call(this, [...params2.relationships, ...commentsRels, ...headFootRels]);
|
|
34136
|
-
|
|
34605
|
+
_SuperConverter2.setStoredSuperdocVersion(this.convertedXml);
|
|
34606
|
+
if (this.documentModified || this.documentGuid) {
|
|
34607
|
+
if (!this.documentGuid) {
|
|
34608
|
+
this.documentGuid = this.getMicrosoftDocId() || v4();
|
|
34609
|
+
}
|
|
34610
|
+
_SuperConverter2.setStoredCustomProperty(this.convertedXml, "DocumentGuid", this.documentGuid, true);
|
|
34611
|
+
}
|
|
34137
34612
|
__privateMethod$2(this, _SuperConverter_instances, exportNumberingFile_fn).call(this, params2);
|
|
34138
34613
|
return xml;
|
|
34139
34614
|
}
|
|
@@ -34168,8 +34643,38 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
34168
34643
|
});
|
|
34169
34644
|
return { result, params: params2 };
|
|
34170
34645
|
}
|
|
34646
|
+
// Deprecated methods for backward compatibility
|
|
34647
|
+
static getStoredSuperdocId(docx) {
|
|
34648
|
+
console.warn("getStoredSuperdocId is deprecated, use getDocumentGuid instead");
|
|
34649
|
+
return _SuperConverter2.extractDocumentGuid(docx);
|
|
34650
|
+
}
|
|
34651
|
+
static updateDocumentVersion(docx, version2) {
|
|
34652
|
+
console.warn("updateDocumentVersion is deprecated, use setStoredSuperdocVersion instead");
|
|
34653
|
+
return _SuperConverter2.setStoredSuperdocVersion(docx, version2);
|
|
34654
|
+
}
|
|
34171
34655
|
};
|
|
34172
34656
|
_SuperConverter_instances = /* @__PURE__ */ new WeakSet();
|
|
34657
|
+
generateDocumentHash_fn = async function() {
|
|
34658
|
+
if (!this.fileSource) return `HASH-${Date.now()}`;
|
|
34659
|
+
try {
|
|
34660
|
+
let buffer2;
|
|
34661
|
+
if (Buffer2.isBuffer(this.fileSource)) {
|
|
34662
|
+
buffer2 = this.fileSource;
|
|
34663
|
+
} else if (this.fileSource instanceof ArrayBuffer) {
|
|
34664
|
+
buffer2 = Buffer2.from(this.fileSource);
|
|
34665
|
+
} else if (this.fileSource instanceof Blob || this.fileSource instanceof File) {
|
|
34666
|
+
const arrayBuffer = await this.fileSource.arrayBuffer();
|
|
34667
|
+
buffer2 = Buffer2.from(arrayBuffer);
|
|
34668
|
+
} else {
|
|
34669
|
+
return `HASH-${Date.now()}`;
|
|
34670
|
+
}
|
|
34671
|
+
const hash2 = index$2(buffer2);
|
|
34672
|
+
return `HASH-${hash2.toString("hex").toUpperCase()}`;
|
|
34673
|
+
} catch (e) {
|
|
34674
|
+
console.warn("Could not generate document hash:", e);
|
|
34675
|
+
return `HASH-${Date.now()}`;
|
|
34676
|
+
}
|
|
34677
|
+
};
|
|
34173
34678
|
exportNumberingFile_fn = function() {
|
|
34174
34679
|
const numberingPath = "word/numbering.xml";
|
|
34175
34680
|
let numberingXml = this.convertedXml[numberingPath];
|
|
@@ -34390,52 +34895,9 @@ __publicField$2(_SuperConverter, "propertyTypes", Object.freeze({
|
|
|
34390
34895
|
}));
|
|
34391
34896
|
__publicField$2(_SuperConverter, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
34392
34897
|
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
34898
|
function generateCustomXml() {
|
|
34414
34899
|
return DEFAULT_CUSTOM_XML;
|
|
34415
34900
|
}
|
|
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
34901
|
function commonjsRequire(path) {
|
|
34440
34902
|
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
34903
|
}
|
|
@@ -36751,7 +37213,7 @@ function requireJszip_min() {
|
|
|
36751
37213
|
return jszip_min.exports;
|
|
36752
37214
|
}
|
|
36753
37215
|
var jszip_minExports = requireJszip_min();
|
|
36754
|
-
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
37216
|
+
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs$2(jszip_minExports);
|
|
36755
37217
|
const isXmlLike = (name) => /\.xml$|\.rels$/i.test(name);
|
|
36756
37218
|
function sniffEncoding(u8) {
|
|
36757
37219
|
if (u8.length >= 2) {
|
|
@@ -42075,8 +42537,7 @@ function readDOMChange(view, from2, to, typeOver, addedNodes) {
|
|
|
42075
42537
|
let $to = parse.doc.resolveNoCache(change.endB - parse.from);
|
|
42076
42538
|
let $fromA = doc2.resolve(change.start);
|
|
42077
42539
|
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")))) {
|
|
42540
|
+
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
42541
|
view.input.lastIOSEnter = 0;
|
|
42081
42542
|
return;
|
|
42082
42543
|
}
|
|
@@ -46707,15 +47168,39 @@ const toggleList = (listType) => ({ editor, state: state2, tr, dispatch }) => {
|
|
|
46707
47168
|
if (near) {
|
|
46708
47169
|
const isSameAsTarget = nearKind === targetKind;
|
|
46709
47170
|
if (isSameAsTarget) {
|
|
46710
|
-
const {
|
|
46711
|
-
|
|
46712
|
-
|
|
46713
|
-
|
|
46714
|
-
|
|
46715
|
-
|
|
46716
|
-
|
|
46717
|
-
|
|
46718
|
-
|
|
47171
|
+
const candidateLists = collectIntersectingTopLists({ doc: doc2, selection, OrderedType, BulletType });
|
|
47172
|
+
let listsToUnwrap = candidateLists.filter(({ node }) => getEffectiveListKind(node) === targetKind);
|
|
47173
|
+
if (listsToUnwrap.length === 0 && getEffectiveListKind(near.node) === targetKind) {
|
|
47174
|
+
listsToUnwrap = [{ node: near.node, pos: near.pos, depth: near.depth ?? null }];
|
|
47175
|
+
}
|
|
47176
|
+
if (listsToUnwrap.length === 0) return false;
|
|
47177
|
+
let spanFromBefore2 = listsToUnwrap[0].pos;
|
|
47178
|
+
let spanToBefore2 = listsToUnwrap[0].pos + listsToUnwrap[0].node.nodeSize;
|
|
47179
|
+
for (let i = 1; i < listsToUnwrap.length; i++) {
|
|
47180
|
+
const { node, pos: pos2 } = listsToUnwrap[i];
|
|
47181
|
+
spanFromBefore2 = Math.min(spanFromBefore2, pos2);
|
|
47182
|
+
spanToBefore2 = Math.max(spanToBefore2, pos2 + node.nodeSize);
|
|
47183
|
+
}
|
|
47184
|
+
const ParagraphType = editor.schema.nodes.paragraph;
|
|
47185
|
+
listsToUnwrap.sort((a, b2) => b2.pos - a.pos);
|
|
47186
|
+
for (const { node, pos: pos2 } of listsToUnwrap) {
|
|
47187
|
+
const mappedFrom = tr.mapping.map(pos2, -1);
|
|
47188
|
+
const mappedTo = tr.mapping.map(pos2 + node.nodeSize, 1);
|
|
47189
|
+
const currentListNode = tr.doc.nodeAt(mappedFrom);
|
|
47190
|
+
const sourceListNode = currentListNode && (currentListNode.type === OrderedType || currentListNode.type === BulletType) ? currentListNode : node;
|
|
47191
|
+
const paragraphs = [];
|
|
47192
|
+
for (let i = 0; i < sourceListNode.childCount; i++) {
|
|
47193
|
+
const li = sourceListNode.child(i);
|
|
47194
|
+
if (li.type !== editor.schema.nodes.listItem) continue;
|
|
47195
|
+
const firstChild = li.firstChild;
|
|
47196
|
+
paragraphs.push(firstChild || ParagraphType.create());
|
|
47197
|
+
}
|
|
47198
|
+
if (paragraphs.length === 0) {
|
|
47199
|
+
paragraphs.push(ParagraphType.create());
|
|
47200
|
+
}
|
|
47201
|
+
const replacement = paragraphs.length === 1 ? paragraphs[0] : Fragment.from(paragraphs);
|
|
47202
|
+
tr.replaceWith(mappedFrom, mappedTo, replacement);
|
|
47203
|
+
}
|
|
46719
47204
|
setMappedSelectionSpan(tr, spanFromBefore2, spanToBefore2);
|
|
46720
47205
|
if (dispatch) dispatch(tr);
|
|
46721
47206
|
return true;
|
|
@@ -48730,26 +49215,100 @@ const onHeaderFooterDataUpdate = async ({ editor, transaction }, mainEditor, sec
|
|
|
48730
49215
|
const setEditorToolbar = ({ editor }, mainEditor) => {
|
|
48731
49216
|
editor.setToolbar(mainEditor.toolbar);
|
|
48732
49217
|
};
|
|
49218
|
+
const normalizeCommentEventPayload = ({ conversation, editorOptions, fallbackCommentId, fallbackInternal }) => {
|
|
49219
|
+
const { user, documentId } = editorOptions || {};
|
|
49220
|
+
const normalized = {
|
|
49221
|
+
...conversation,
|
|
49222
|
+
commentId: conversation?.commentId ?? fallbackCommentId,
|
|
49223
|
+
isInternal: conversation?.isInternal ?? fallbackInternal
|
|
49224
|
+
};
|
|
49225
|
+
if (!normalized.commentText && normalized.text) {
|
|
49226
|
+
normalized.commentText = normalized.text;
|
|
49227
|
+
delete normalized.text;
|
|
49228
|
+
}
|
|
49229
|
+
if ("skipEmit" in normalized) delete normalized.skipEmit;
|
|
49230
|
+
if (!normalized.creatorName && user?.name) {
|
|
49231
|
+
normalized.creatorName = user.name;
|
|
49232
|
+
}
|
|
49233
|
+
if (!normalized.creatorEmail && user?.email) {
|
|
49234
|
+
normalized.creatorEmail = user.email;
|
|
49235
|
+
}
|
|
49236
|
+
if (!normalized.createdTime) {
|
|
49237
|
+
normalized.createdTime = Date.now();
|
|
49238
|
+
}
|
|
49239
|
+
if (!normalized.fileId && documentId) {
|
|
49240
|
+
normalized.fileId = documentId;
|
|
49241
|
+
}
|
|
49242
|
+
if (!normalized.documentId && documentId) {
|
|
49243
|
+
normalized.documentId = documentId;
|
|
49244
|
+
}
|
|
49245
|
+
return normalized;
|
|
49246
|
+
};
|
|
49247
|
+
const updatePosition = ({ allCommentPositions, threadId, pos, currentBounds, node }) => {
|
|
49248
|
+
let bounds = {};
|
|
49249
|
+
if (currentBounds instanceof DOMRect) {
|
|
49250
|
+
bounds = {
|
|
49251
|
+
top: currentBounds.top,
|
|
49252
|
+
bottom: currentBounds.bottom,
|
|
49253
|
+
left: currentBounds.left,
|
|
49254
|
+
right: currentBounds.right
|
|
49255
|
+
};
|
|
49256
|
+
} else {
|
|
49257
|
+
bounds = { ...currentBounds };
|
|
49258
|
+
}
|
|
49259
|
+
if (!allCommentPositions[threadId]) {
|
|
49260
|
+
allCommentPositions[threadId] = {
|
|
49261
|
+
threadId,
|
|
49262
|
+
start: pos,
|
|
49263
|
+
end: pos + node.nodeSize,
|
|
49264
|
+
bounds
|
|
49265
|
+
};
|
|
49266
|
+
} else {
|
|
49267
|
+
const existing = allCommentPositions[threadId];
|
|
49268
|
+
existing.start = Math.min(existing.start, pos);
|
|
49269
|
+
existing.end = Math.max(existing.end, pos + node.nodeSize);
|
|
49270
|
+
existing.bounds.top = Math.min(existing.bounds.top, currentBounds.top);
|
|
49271
|
+
existing.bounds.bottom = Math.max(existing.bounds.bottom, currentBounds.bottom);
|
|
49272
|
+
}
|
|
49273
|
+
};
|
|
48733
49274
|
const TRACK_CHANGE_MARKS = [TrackInsertMarkName, TrackDeleteMarkName, TrackFormatMarkName];
|
|
48734
49275
|
const CommentsPluginKey = new PluginKey("comments");
|
|
48735
49276
|
const CommentsPlugin = Extension.create({
|
|
48736
49277
|
name: "comments",
|
|
48737
49278
|
addCommands() {
|
|
48738
49279
|
return {
|
|
48739
|
-
insertComment: (conversation) => ({ tr, dispatch }) => {
|
|
49280
|
+
insertComment: (conversation = {}) => ({ tr, dispatch }) => {
|
|
48740
49281
|
const { selection } = tr;
|
|
48741
49282
|
const { $from, $to } = selection;
|
|
48742
|
-
const
|
|
49283
|
+
const skipEmit = conversation?.skipEmit;
|
|
49284
|
+
const resolvedCommentId = conversation?.commentId ?? v4();
|
|
49285
|
+
const resolvedInternal = conversation?.isInternal ?? false;
|
|
48743
49286
|
tr.setMeta(CommentsPluginKey, { event: "add" });
|
|
48744
49287
|
tr.addMark(
|
|
48745
49288
|
$from.pos,
|
|
48746
49289
|
$to.pos,
|
|
48747
49290
|
this.editor.schema.marks[CommentMarkName].create({
|
|
48748
|
-
commentId,
|
|
48749
|
-
internal:
|
|
49291
|
+
commentId: resolvedCommentId,
|
|
49292
|
+
internal: resolvedInternal
|
|
48750
49293
|
})
|
|
48751
49294
|
);
|
|
48752
|
-
dispatch(tr);
|
|
49295
|
+
if (dispatch) dispatch(tr);
|
|
49296
|
+
const shouldEmit = !skipEmit && resolvedCommentId !== "pending";
|
|
49297
|
+
if (shouldEmit) {
|
|
49298
|
+
const commentPayload = normalizeCommentEventPayload({
|
|
49299
|
+
conversation,
|
|
49300
|
+
editorOptions: this.editor.options,
|
|
49301
|
+
fallbackCommentId: resolvedCommentId,
|
|
49302
|
+
fallbackInternal: resolvedInternal
|
|
49303
|
+
});
|
|
49304
|
+
const activeCommentId = commentPayload.commentId || commentPayload.importedId || null;
|
|
49305
|
+
const event = {
|
|
49306
|
+
type: comments_module_events.ADD,
|
|
49307
|
+
comment: commentPayload,
|
|
49308
|
+
...activeCommentId && { activeCommentId }
|
|
49309
|
+
};
|
|
49310
|
+
this.editor.emit("commentsUpdate", event);
|
|
49311
|
+
}
|
|
48753
49312
|
return true;
|
|
48754
49313
|
},
|
|
48755
49314
|
removeComment: ({ commentId, importedId }) => ({ tr, dispatch, state: state2 }) => {
|
|
@@ -48985,33 +49544,6 @@ const CommentsPlugin = Extension.create({
|
|
|
48985
49544
|
return [commentsPlugin];
|
|
48986
49545
|
}
|
|
48987
49546
|
});
|
|
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
49547
|
const getActiveCommentId = (doc2, selection) => {
|
|
49016
49548
|
if (!selection) return;
|
|
49017
49549
|
const { $from, $to } = selection;
|
|
@@ -51465,19 +51997,34 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51465
51997
|
* @returns {string} Document version
|
|
51466
51998
|
*/
|
|
51467
51999
|
static getDocumentVersion(doc2) {
|
|
51468
|
-
|
|
51469
|
-
return version2;
|
|
52000
|
+
return SuperConverter.getStoredSuperdocVersion(doc2);
|
|
51470
52001
|
}
|
|
51471
52002
|
/**
|
|
51472
|
-
*
|
|
52003
|
+
* Set the document version
|
|
51473
52004
|
* @static
|
|
51474
52005
|
* @param {Object} doc - Document object
|
|
51475
52006
|
* @param {string} version - New version
|
|
51476
|
-
* @returns {
|
|
52007
|
+
* @returns {string} The set version
|
|
52008
|
+
*/
|
|
52009
|
+
static setDocumentVersion(doc2, version2) {
|
|
52010
|
+
return SuperConverter.setStoredSuperdocVersion(doc2, version2);
|
|
52011
|
+
}
|
|
52012
|
+
/**
|
|
52013
|
+
* Get the document GUID
|
|
52014
|
+
* @static
|
|
52015
|
+
* @param {Object} doc - Document object
|
|
52016
|
+
* @returns {string|null} Document GUID
|
|
52017
|
+
*/
|
|
52018
|
+
static getDocumentGuid(doc2) {
|
|
52019
|
+
return SuperConverter.extractDocumentGuid(doc2);
|
|
52020
|
+
}
|
|
52021
|
+
// Deprecated
|
|
52022
|
+
/**
|
|
52023
|
+
* @deprecated use setDocumentVersion instead
|
|
51477
52024
|
*/
|
|
51478
52025
|
static updateDocumentVersion(doc2, version2) {
|
|
51479
|
-
|
|
51480
|
-
return
|
|
52026
|
+
console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
|
|
52027
|
+
return _Editor2.setDocumentVersion(doc2, version2);
|
|
51481
52028
|
}
|
|
51482
52029
|
/**
|
|
51483
52030
|
* Creates all node views.
|
|
@@ -51613,6 +52160,43 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51613
52160
|
}
|
|
51614
52161
|
window.addEventListener("resize", () => handleResize);
|
|
51615
52162
|
}
|
|
52163
|
+
/**
|
|
52164
|
+
* Get document identifier for telemetry (async - may generate hash)
|
|
52165
|
+
* @returns {Promise<string>} GUID for modified docs, hash for unmodified
|
|
52166
|
+
*/
|
|
52167
|
+
async getDocumentIdentifier() {
|
|
52168
|
+
return await this.converter?.getDocumentIdentifier() || null;
|
|
52169
|
+
}
|
|
52170
|
+
/**
|
|
52171
|
+
* Get permanent document GUID (sync - only for modified documents)
|
|
52172
|
+
* @returns {string|null} GUID or null if document hasn't been modified
|
|
52173
|
+
*/
|
|
52174
|
+
getDocumentGuid() {
|
|
52175
|
+
return this.converter?.documentGuid || null;
|
|
52176
|
+
}
|
|
52177
|
+
/**
|
|
52178
|
+
* Check if document has been modified
|
|
52179
|
+
* @returns {boolean}
|
|
52180
|
+
*/
|
|
52181
|
+
isDocumentModified() {
|
|
52182
|
+
return this.converter?.documentModified || false;
|
|
52183
|
+
}
|
|
52184
|
+
/**
|
|
52185
|
+
* Get telemetry data (async because of lazy hash generation)
|
|
52186
|
+
*/
|
|
52187
|
+
async getTelemetryData() {
|
|
52188
|
+
return {
|
|
52189
|
+
documentId: await this.getDocumentIdentifier(),
|
|
52190
|
+
isModified: this.isDocumentModified(),
|
|
52191
|
+
isPermanentId: !!this.converter?.documentGuid,
|
|
52192
|
+
version: this.converter?.getSuperdocVersion()
|
|
52193
|
+
};
|
|
52194
|
+
}
|
|
52195
|
+
// Deprecated for backward compatibility
|
|
52196
|
+
getDocumentId() {
|
|
52197
|
+
console.warn("getDocumentId is deprecated, use getDocumentGuid instead");
|
|
52198
|
+
return this.getDocumentGuid();
|
|
52199
|
+
}
|
|
51616
52200
|
/**
|
|
51617
52201
|
* Get attrs of the currently selected node or mark.
|
|
51618
52202
|
* @param {String} nameOrType
|
|
@@ -51644,6 +52228,21 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51644
52228
|
getJSON() {
|
|
51645
52229
|
return this.state.doc.toJSON();
|
|
51646
52230
|
}
|
|
52231
|
+
/**
|
|
52232
|
+
* Get document metadata including GUID, modification status, and version
|
|
52233
|
+
* @returns {{
|
|
52234
|
+
* documentGuid: string | null,
|
|
52235
|
+
* isModified: boolean,
|
|
52236
|
+
* version: string | null
|
|
52237
|
+
* }} Document metadata
|
|
52238
|
+
*/
|
|
52239
|
+
getMetadata() {
|
|
52240
|
+
return {
|
|
52241
|
+
documentGuid: this.converter?.documentGuid || null,
|
|
52242
|
+
isModified: this.isDocumentModified(),
|
|
52243
|
+
version: this.converter?.getSuperdocVersion() || null
|
|
52244
|
+
};
|
|
52245
|
+
}
|
|
51647
52246
|
/**
|
|
51648
52247
|
* Get the editor content as HTML
|
|
51649
52248
|
* @param {Object} options - Options for the HTML serializer
|
|
@@ -51661,6 +52260,13 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51661
52260
|
}
|
|
51662
52261
|
return html;
|
|
51663
52262
|
}
|
|
52263
|
+
/**
|
|
52264
|
+
* Get the document version from the converter
|
|
52265
|
+
* @returns {string|null} The SuperDoc version stored in the document
|
|
52266
|
+
*/
|
|
52267
|
+
getDocumentVersion() {
|
|
52268
|
+
return this.converter?.getSuperdocVersion() || null;
|
|
52269
|
+
}
|
|
51664
52270
|
/**
|
|
51665
52271
|
* Create a child editor linked to this editor.
|
|
51666
52272
|
* This is useful for creating header/footer editors that are linked to the main editor.
|
|
@@ -51743,7 +52349,8 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51743
52349
|
if (exportXmlOnly || exportJsonOnly) return documentXml;
|
|
51744
52350
|
const customXml = this.converter.schemaToXml(this.converter.convertedXml["docProps/custom.xml"].elements[0]);
|
|
51745
52351
|
const styles = this.converter.schemaToXml(this.converter.convertedXml["word/styles.xml"].elements[0]);
|
|
51746
|
-
const
|
|
52352
|
+
const hasCustomSettings = !!this.converter.convertedXml["word/settings.xml"]?.elements?.length;
|
|
52353
|
+
const customSettings = hasCustomSettings ? this.converter.schemaToXml(this.converter.convertedXml["word/settings.xml"]?.elements?.[0]) : null;
|
|
51747
52354
|
const rels = this.converter.schemaToXml(this.converter.convertedXml["word/_rels/document.xml.rels"].elements[0]);
|
|
51748
52355
|
const media = this.converter.addedMedia;
|
|
51749
52356
|
const updatedHeadersFooters = {};
|
|
@@ -51759,13 +52366,15 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
51759
52366
|
...this.options.customUpdatedFiles,
|
|
51760
52367
|
"word/document.xml": String(documentXml),
|
|
51761
52368
|
"docProps/custom.xml": String(customXml),
|
|
51762
|
-
"word/settings.xml": String(customSettings),
|
|
51763
52369
|
"word/_rels/document.xml.rels": String(rels),
|
|
51764
52370
|
"word/numbering.xml": String(numbering),
|
|
51765
52371
|
// Replace & with & in styles.xml as DOCX viewers can't handle it
|
|
51766
52372
|
"word/styles.xml": String(styles).replace(/&/gi, "&"),
|
|
51767
52373
|
...updatedHeadersFooters
|
|
51768
52374
|
};
|
|
52375
|
+
if (hasCustomSettings) {
|
|
52376
|
+
updatedDocs["word/settings.xml"] = String(customSettings);
|
|
52377
|
+
}
|
|
51769
52378
|
if (comments.length) {
|
|
51770
52379
|
const commentsXml = this.converter.schemaToXml(this.converter.convertedXml["word/comments.xml"].elements[0]);
|
|
51771
52380
|
const commentsExtendedXml = this.converter.schemaToXml(
|
|
@@ -52385,6 +52994,13 @@ dispatchTransaction_fn = function(transaction) {
|
|
|
52385
52994
|
if (!transaction.docChanged) {
|
|
52386
52995
|
return;
|
|
52387
52996
|
}
|
|
52997
|
+
if (transaction.docChanged && this.converter) {
|
|
52998
|
+
if (!this.converter.documentGuid) {
|
|
52999
|
+
this.converter.promoteToGuid();
|
|
53000
|
+
console.debug("Document modified - assigned GUID:", this.converter.documentGuid);
|
|
53001
|
+
}
|
|
53002
|
+
this.converter.documentModified = true;
|
|
53003
|
+
}
|
|
52388
53004
|
this.emit("update", {
|
|
52389
53005
|
editor: this,
|
|
52390
53006
|
transaction
|
|
@@ -54327,10 +54943,11 @@ const StructuredContentCommands = Extension.create({
|
|
|
54327
54943
|
return true;
|
|
54328
54944
|
},
|
|
54329
54945
|
/**
|
|
54330
|
-
* Updates a structured content
|
|
54946
|
+
* Updates a single structured content field by its unique ID.
|
|
54947
|
+
* IDs are unique identifiers, so this will update at most one field.
|
|
54331
54948
|
* If the updated node does not match the schema, it will not be updated.
|
|
54332
54949
|
* @category Command
|
|
54333
|
-
* @param {string} id
|
|
54950
|
+
* @param {string} id - Unique identifier of the field
|
|
54334
54951
|
* @param {StructuredContentUpdate} options
|
|
54335
54952
|
*/
|
|
54336
54953
|
updateStructuredContentById: (id, options = {}) => ({ editor, dispatch, state: state2, tr }) => {
|
|
@@ -62511,6 +63128,7 @@ function getFormatAttrsFromMarks(marks) {
|
|
|
62511
63128
|
}
|
|
62512
63129
|
return formatAttrs;
|
|
62513
63130
|
}
|
|
63131
|
+
const DEFAULT_MIME_TYPE = "application/octet-stream";
|
|
62514
63132
|
const simpleHash = (str) => {
|
|
62515
63133
|
let hash2 = 0;
|
|
62516
63134
|
for (let i = 0; i < str.length; i++) {
|
|
@@ -62520,21 +63138,40 @@ const simpleHash = (str) => {
|
|
|
62520
63138
|
}
|
|
62521
63139
|
return Math.abs(hash2).toString();
|
|
62522
63140
|
};
|
|
62523
|
-
const
|
|
62524
|
-
|
|
62525
|
-
|
|
62526
|
-
|
|
62527
|
-
|
|
62528
|
-
|
|
63141
|
+
const decodeBase64ToBinaryString = (data) => {
|
|
63142
|
+
if (!data) return "";
|
|
63143
|
+
if (typeof atob === "function") {
|
|
63144
|
+
return atob(data);
|
|
63145
|
+
}
|
|
63146
|
+
if (typeof Buffer2 !== "undefined" && typeof Buffer2.from === "function") {
|
|
63147
|
+
return Buffer2.from(data, "base64").toString("binary");
|
|
63148
|
+
}
|
|
63149
|
+
throw new Error("Unable to decode base64 payload in the current environment.");
|
|
63150
|
+
};
|
|
63151
|
+
const extractBase64Meta = (base64String) => {
|
|
63152
|
+
const [meta = "", payload = ""] = base64String.split(",");
|
|
63153
|
+
const mimeMatch = meta.match(/:(.*?);/);
|
|
63154
|
+
const rawMimeType = mimeMatch ? mimeMatch[1] : "";
|
|
63155
|
+
const mimeType = rawMimeType || DEFAULT_MIME_TYPE;
|
|
63156
|
+
const binaryString = decodeBase64ToBinaryString(payload);
|
|
62529
63157
|
const hash2 = simpleHash(binaryString);
|
|
62530
63158
|
const extension = mimeType.split("/")[1] || "bin";
|
|
62531
63159
|
const filename = `image-${hash2}.${extension}`;
|
|
63160
|
+
return { mimeType, binaryString, filename };
|
|
63161
|
+
};
|
|
63162
|
+
const getBase64FileMeta = (base64String) => {
|
|
63163
|
+
const { mimeType, filename } = extractBase64Meta(base64String);
|
|
63164
|
+
return { mimeType, filename };
|
|
63165
|
+
};
|
|
63166
|
+
const base64ToFile = (base64String) => {
|
|
63167
|
+
const { mimeType, binaryString, filename } = extractBase64Meta(base64String);
|
|
63168
|
+
const fileType = mimeType || DEFAULT_MIME_TYPE;
|
|
62532
63169
|
const bytes = new Uint8Array(binaryString.length);
|
|
62533
63170
|
for (let i = 0; i < binaryString.length; i++) {
|
|
62534
63171
|
bytes[i] = binaryString.charCodeAt(i);
|
|
62535
63172
|
}
|
|
62536
|
-
const blob = new Blob([bytes], { type:
|
|
62537
|
-
return new File([blob], filename, { type:
|
|
63173
|
+
const blob = new Blob([bytes], { type: fileType });
|
|
63174
|
+
return new File([blob], filename, { type: fileType });
|
|
62538
63175
|
};
|
|
62539
63176
|
const urlToFile = async (url, filename, mimeType) => {
|
|
62540
63177
|
try {
|
|
@@ -62910,6 +63547,7 @@ function addImageRelationship({ editor, path }) {
|
|
|
62910
63547
|
}
|
|
62911
63548
|
}
|
|
62912
63549
|
const key = new PluginKey("ImageRegistration");
|
|
63550
|
+
const WORD_MEDIA_PREFIX = "word/";
|
|
62913
63551
|
const ImageRegistrationPlugin = ({ editor }) => {
|
|
62914
63552
|
const { view } = editor;
|
|
62915
63553
|
return new Plugin({
|
|
@@ -62930,16 +63568,16 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62930
63568
|
},
|
|
62931
63569
|
appendTransaction: (trs, _oldState, state2) => {
|
|
62932
63570
|
let foundImages = [];
|
|
62933
|
-
trs.forEach((
|
|
62934
|
-
if (
|
|
62935
|
-
|
|
63571
|
+
trs.forEach((tr) => {
|
|
63572
|
+
if (tr.docChanged) {
|
|
63573
|
+
tr.steps.forEach((step, index2) => {
|
|
62936
63574
|
const stepMap = step.getMap();
|
|
62937
63575
|
foundImages = foundImages.map(({ node, pos, id }) => {
|
|
62938
63576
|
const mappedPos = stepMap.map(pos, -1);
|
|
62939
63577
|
return { node, pos: mappedPos, id };
|
|
62940
63578
|
});
|
|
62941
63579
|
if (step instanceof ReplaceStep || step instanceof ReplaceAroundStep$1) {
|
|
62942
|
-
(
|
|
63580
|
+
(tr.docs[index2 + 1] || tr.doc).nodesBetween(
|
|
62943
63581
|
stepMap.map(step.from, -1),
|
|
62944
63582
|
stepMap.map(step.to, 1),
|
|
62945
63583
|
(node, pos) => {
|
|
@@ -62958,22 +63596,10 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62958
63596
|
if (!foundImages || foundImages.length === 0) {
|
|
62959
63597
|
return null;
|
|
62960
63598
|
}
|
|
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;
|
|
63599
|
+
if (editor.options.isHeadless) {
|
|
63600
|
+
return handleNodePath(foundImages, editor, state2);
|
|
63601
|
+
}
|
|
63602
|
+
return handleBrowserPath(foundImages, editor, view, state2);
|
|
62977
63603
|
},
|
|
62978
63604
|
props: {
|
|
62979
63605
|
decorations(state2) {
|
|
@@ -62983,6 +63609,59 @@ const ImageRegistrationPlugin = ({ editor }) => {
|
|
|
62983
63609
|
}
|
|
62984
63610
|
});
|
|
62985
63611
|
};
|
|
63612
|
+
const derivePreferredFileName = (src) => {
|
|
63613
|
+
if (typeof src !== "string" || src.length === 0) {
|
|
63614
|
+
return "image.bin";
|
|
63615
|
+
}
|
|
63616
|
+
if (src.startsWith("data:")) {
|
|
63617
|
+
return getBase64FileMeta(src).filename;
|
|
63618
|
+
}
|
|
63619
|
+
const lastSegment = src.split("/").pop() ?? "";
|
|
63620
|
+
const trimmed = lastSegment.split(/[?#]/)[0];
|
|
63621
|
+
return trimmed || "image.bin";
|
|
63622
|
+
};
|
|
63623
|
+
const handleNodePath = (foundImages, editor, state2) => {
|
|
63624
|
+
const { tr } = state2;
|
|
63625
|
+
const mediaStore = editor.storage.image.media ?? {};
|
|
63626
|
+
if (!editor.storage.image.media) {
|
|
63627
|
+
editor.storage.image.media = mediaStore;
|
|
63628
|
+
}
|
|
63629
|
+
const existingFileNames = new Set(Object.keys(mediaStore).map((key2) => key2.split("/").pop()));
|
|
63630
|
+
foundImages.forEach(({ node, pos }) => {
|
|
63631
|
+
const { src } = node.attrs;
|
|
63632
|
+
const preferredFileName = derivePreferredFileName(src);
|
|
63633
|
+
const uniqueFileName = ensureUniqueFileName(preferredFileName, existingFileNames);
|
|
63634
|
+
existingFileNames.add(uniqueFileName);
|
|
63635
|
+
const mediaPath = buildMediaPath(uniqueFileName);
|
|
63636
|
+
mediaStore[mediaPath] = src;
|
|
63637
|
+
const path = mediaPath.startsWith(WORD_MEDIA_PREFIX) ? mediaPath.slice(WORD_MEDIA_PREFIX.length) : mediaPath;
|
|
63638
|
+
const rId = addImageRelationship({ editor, path });
|
|
63639
|
+
tr.setNodeMarkup(pos, void 0, {
|
|
63640
|
+
...node.attrs,
|
|
63641
|
+
src: mediaPath,
|
|
63642
|
+
rId
|
|
63643
|
+
});
|
|
63644
|
+
});
|
|
63645
|
+
return tr;
|
|
63646
|
+
};
|
|
63647
|
+
const handleBrowserPath = (foundImages, editor, view, state2) => {
|
|
63648
|
+
registerImages(foundImages, editor, view);
|
|
63649
|
+
const tr = state2.tr;
|
|
63650
|
+
let { set } = key.getState(state2);
|
|
63651
|
+
foundImages.slice().sort((a, b2) => a.pos - b2.pos).forEach(({ pos, id }) => {
|
|
63652
|
+
let deco = Decoration.widget(pos, () => document.createElement("placeholder"), {
|
|
63653
|
+
side: -1,
|
|
63654
|
+
id
|
|
63655
|
+
});
|
|
63656
|
+
set = set.add(tr.doc, [deco]);
|
|
63657
|
+
});
|
|
63658
|
+
foundImages.slice().sort((a, b2) => b2.pos - a.pos).forEach(({ node, pos }) => {
|
|
63659
|
+
tr.delete(pos, pos + node.nodeSize);
|
|
63660
|
+
});
|
|
63661
|
+
set = set.map(tr.mapping, tr.doc);
|
|
63662
|
+
tr.setMeta(key, { set });
|
|
63663
|
+
return tr;
|
|
63664
|
+
};
|
|
62986
63665
|
const findPlaceholder = (state2, id) => {
|
|
62987
63666
|
let { set } = key.getState(state2);
|
|
62988
63667
|
let found2 = set?.find(null, null, (spec) => spec.id === id);
|
|
@@ -65510,15 +66189,50 @@ const getChangesByIdToResolve = (state2, id) => {
|
|
|
65510
66189
|
const changeIndex = trackedChanges.findIndex(({ mark }) => mark.attrs.id === id);
|
|
65511
66190
|
if (changeIndex === -1) return;
|
|
65512
66191
|
const matchingChange = trackedChanges[changeIndex];
|
|
65513
|
-
const
|
|
65514
|
-
const
|
|
65515
|
-
|
|
65516
|
-
|
|
65517
|
-
|
|
65518
|
-
|
|
65519
|
-
|
|
65520
|
-
|
|
65521
|
-
|
|
66192
|
+
const matchingId = matchingChange.mark.attrs.id;
|
|
66193
|
+
const getSegmentSize = ({ from: from2, to }) => to - from2;
|
|
66194
|
+
const areDirectlyConnected = (left2, right2) => {
|
|
66195
|
+
if (!left2 || !right2) {
|
|
66196
|
+
return false;
|
|
66197
|
+
}
|
|
66198
|
+
if (left2.to !== right2.from) {
|
|
66199
|
+
return false;
|
|
66200
|
+
}
|
|
66201
|
+
const hasContentBetween = state2.doc.textBetween(left2.from, right2.to, "\n").length > getSegmentSize(left2) + getSegmentSize(right2);
|
|
66202
|
+
return !hasContentBetween;
|
|
66203
|
+
};
|
|
66204
|
+
const isComplementaryPair = (firstType, secondType) => firstType === TrackDeleteMarkName && secondType === TrackInsertMarkName || firstType === TrackInsertMarkName && secondType === TrackDeleteMarkName;
|
|
66205
|
+
const linkedBefore = [];
|
|
66206
|
+
const linkedAfter = [];
|
|
66207
|
+
const collectDirection = (direction, collection) => {
|
|
66208
|
+
let currentIndex = changeIndex;
|
|
66209
|
+
let currentChange = matchingChange;
|
|
66210
|
+
while (true) {
|
|
66211
|
+
const neighborIndex = currentIndex + direction;
|
|
66212
|
+
const neighbor = trackedChanges[neighborIndex];
|
|
66213
|
+
if (!neighbor) {
|
|
66214
|
+
break;
|
|
66215
|
+
}
|
|
66216
|
+
const [left2, right2] = direction < 0 ? [neighbor, currentChange] : [currentChange, neighbor];
|
|
66217
|
+
if (!areDirectlyConnected(left2, right2)) {
|
|
66218
|
+
break;
|
|
66219
|
+
}
|
|
66220
|
+
const sharesId = neighbor.mark.attrs.id === matchingId;
|
|
66221
|
+
const complementary = isComplementaryPair(currentChange.mark.type.name, neighbor.mark.type.name);
|
|
66222
|
+
if (!sharesId && !complementary) {
|
|
66223
|
+
break;
|
|
66224
|
+
}
|
|
66225
|
+
collection.push(neighbor);
|
|
66226
|
+
currentIndex = neighborIndex;
|
|
66227
|
+
currentChange = neighbor;
|
|
66228
|
+
if (!sharesId) {
|
|
66229
|
+
break;
|
|
66230
|
+
}
|
|
66231
|
+
}
|
|
66232
|
+
};
|
|
66233
|
+
collectDirection(-1, linkedBefore);
|
|
66234
|
+
collectDirection(1, linkedAfter);
|
|
66235
|
+
return [matchingChange, ...linkedAfter, ...linkedBefore];
|
|
65522
66236
|
};
|
|
65523
66237
|
const TextTransform = Extension.create({
|
|
65524
66238
|
name: "textTransform",
|
|
@@ -70100,6 +70814,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
|
|
|
70100
70814
|
return actualBreak;
|
|
70101
70815
|
}
|
|
70102
70816
|
const onImageLoad = (editor) => {
|
|
70817
|
+
if (typeof requestAnimationFrame !== "function") return;
|
|
70103
70818
|
requestAnimationFrame(() => {
|
|
70104
70819
|
const newTr = editor.view.state.tr;
|
|
70105
70820
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -71311,7 +72026,7 @@ const _sfc_main$4$1 = {
|
|
|
71311
72026
|
};
|
|
71312
72027
|
const handleInputSubmit = () => {
|
|
71313
72028
|
const value = inlineTextInput.value;
|
|
71314
|
-
const cleanValue = value.
|
|
72029
|
+
const cleanValue = value.match(/^\d+(\.5)?$/) ? value : Math.floor(parseFloat(value)).toString();
|
|
71315
72030
|
emit("textSubmit", cleanValue);
|
|
71316
72031
|
inlineTextInput.value = cleanValue;
|
|
71317
72032
|
};
|
|
@@ -71393,7 +72108,7 @@ const _sfc_main$4$1 = {
|
|
|
71393
72108
|
};
|
|
71394
72109
|
}
|
|
71395
72110
|
};
|
|
71396
|
-
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-
|
|
72111
|
+
const ToolbarButton = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["__scopeId", "data-v-cea02a58"]]);
|
|
71397
72112
|
const _hoisted_1$2$1 = {
|
|
71398
72113
|
class: "toolbar-separator",
|
|
71399
72114
|
role: "separator",
|
|
@@ -81890,7 +82605,7 @@ function requireEventemitter3() {
|
|
|
81890
82605
|
return eventemitter3.exports;
|
|
81891
82606
|
}
|
|
81892
82607
|
var eventemitter3Exports = requireEventemitter3();
|
|
81893
|
-
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$
|
|
82608
|
+
const EventEmitter2 = /* @__PURE__ */ getDefaultExportFromCjs$2(eventemitter3Exports);
|
|
81894
82609
|
const useToolbarItem = (options) => {
|
|
81895
82610
|
const types2 = ["button", "options", "separator", "dropdown", "overflow"];
|
|
81896
82611
|
if (!types2.includes(options.type)) {
|
|
@@ -83165,16 +83880,21 @@ const makeDefaultItems = ({
|
|
|
83165
83880
|
onActivate: ({ fontFamily: fontFamily2 }) => {
|
|
83166
83881
|
if (!fontFamily2) return;
|
|
83167
83882
|
fontButton.label.value = fontFamily2;
|
|
83883
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83168
83884
|
const foundFont = fontOptions.find((i2) => i2.label === fontFamily2);
|
|
83169
83885
|
if (foundFont) {
|
|
83170
83886
|
fontButton.selectedValue.value = foundFont.key;
|
|
83887
|
+
} else if (defaultFont) {
|
|
83888
|
+
fontButton.selectedValue.value = defaultFont.key;
|
|
83171
83889
|
} else {
|
|
83172
83890
|
fontButton.selectedValue.value = "";
|
|
83173
83891
|
}
|
|
83174
83892
|
},
|
|
83175
83893
|
onDeactivate: () => {
|
|
83176
83894
|
fontButton.label.value = fontButton.defaultLabel.value;
|
|
83177
|
-
fontButton.
|
|
83895
|
+
const defaultFont = fontOptions.find((i2) => i2.label === fontButton.defaultLabel.value);
|
|
83896
|
+
if (defaultFont) fontButton.selectedValue.value = defaultFont.key;
|
|
83897
|
+
else fontButton.selectedValue.value = "";
|
|
83178
83898
|
}
|
|
83179
83899
|
});
|
|
83180
83900
|
const aiButton = useToolbarItem({
|
|
@@ -83242,9 +83962,11 @@ const makeDefaultItems = ({
|
|
|
83242
83962
|
},
|
|
83243
83963
|
options: fontSizeOptions,
|
|
83244
83964
|
onActivate: ({ fontSize: size2 }) => {
|
|
83965
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
83245
83966
|
if (!size2) {
|
|
83246
83967
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83247
|
-
fontSize2.selectedValue.value =
|
|
83968
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
83969
|
+
else fontSize2.selectedValue.value = "";
|
|
83248
83970
|
return;
|
|
83249
83971
|
}
|
|
83250
83972
|
let sanitizedValue = sanitizeNumber(size2, 12);
|
|
@@ -83256,6 +83978,8 @@ const makeDefaultItems = ({
|
|
|
83256
83978
|
});
|
|
83257
83979
|
if (foundSize) {
|
|
83258
83980
|
fontSize2.selectedValue.value = foundSize.key;
|
|
83981
|
+
} else if (defaultSize) {
|
|
83982
|
+
fontSize2.selectedValue.value = defaultSize.key;
|
|
83259
83983
|
} else {
|
|
83260
83984
|
fontSize2.selectedValue.value = "";
|
|
83261
83985
|
}
|
|
@@ -83263,7 +83987,9 @@ const makeDefaultItems = ({
|
|
|
83263
83987
|
},
|
|
83264
83988
|
onDeactivate: () => {
|
|
83265
83989
|
fontSize2.label.value = fontSize2.defaultLabel.value;
|
|
83266
|
-
fontSize2.
|
|
83990
|
+
const defaultSize = fontSizeOptions.find((i2) => i2.label === String(fontSize2.defaultLabel.value));
|
|
83991
|
+
if (defaultSize) fontSize2.selectedValue.value = defaultSize.key;
|
|
83992
|
+
else fontSize2.selectedValue.value = "";
|
|
83267
83993
|
}
|
|
83268
83994
|
});
|
|
83269
83995
|
const separator = useToolbarItem({
|
|
@@ -83476,6 +84202,7 @@ const makeDefaultItems = ({
|
|
|
83476
84202
|
type: "dropdown",
|
|
83477
84203
|
name: "tableActions",
|
|
83478
84204
|
command: "executeTableCommand",
|
|
84205
|
+
tooltip: toolbarTexts2.tableActions,
|
|
83479
84206
|
icon: toolbarIcons2.tableActions,
|
|
83480
84207
|
hideLabel: true,
|
|
83481
84208
|
disabled: true,
|
|
@@ -84174,6 +84901,7 @@ const toolbarTexts = {
|
|
|
84174
84901
|
link: "Link",
|
|
84175
84902
|
image: "Image",
|
|
84176
84903
|
table: "Insert table",
|
|
84904
|
+
tableActions: "Table options",
|
|
84177
84905
|
addRowBefore: "Insert row above",
|
|
84178
84906
|
addRowAfter: "Insert row below",
|
|
84179
84907
|
addColumnBefore: "Insert column left",
|
|
@@ -86631,7 +87359,9 @@ const additionalHandlers = Object.freeze({
|
|
|
86631
87359
|
"w:wAfter": translator$K,
|
|
86632
87360
|
"w:wBefore": translator$J,
|
|
86633
87361
|
"wp:anchor": translator$8,
|
|
86634
|
-
"wp:inline": translator$7
|
|
87362
|
+
"wp:inline": translator$7,
|
|
87363
|
+
"w:commentRangeStart": commentRangeStartTranslator,
|
|
87364
|
+
"w:commentRangeEnd": commentRangeEndTranslator
|
|
86635
87365
|
});
|
|
86636
87366
|
const baseHandlers = {
|
|
86637
87367
|
...runPropertyTranslators,
|