@harbour-enterprises/superdoc 0.23.0-next.16 → 0.23.0-next.18
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-CJrsZCLf.cjs → PdfViewer-CDdQi-IL.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DfGIeWvO.es.js → PdfViewer-DxaT6YJk.es.js} +1 -1
- package/dist/chunks/{index-CwhKMy0h.es.js → index-CASMW4Gt.es.js} +2 -2
- package/dist/chunks/{index-DGSQ4Gfx.cjs → index-Ua6WmvV9.cjs} +2 -2
- package/dist/chunks/{super-editor.es-b9ACFl9D.cjs → super-editor.es-BHP7saSr.cjs} +560 -578
- package/dist/chunks/{super-editor.es-bIibjiHo.es.js → super-editor.es-JTB_jHfC.es.js} +560 -578
- package/dist/components/CommentsLayer/types.d.ts +158 -0
- package/dist/components/CommentsLayer/types.d.ts.map +1 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-vEmAnrOg.js → converter-wrgxIFCy.js} +607 -577
- package/dist/super-editor/chunks/{docx-zipper-DA00N7eN.js → docx-zipper-DIilDv93.js} +1 -1
- package/dist/super-editor/chunks/{editor-CVzagv2Y.js → editor-D8ueJVyp.js} +20 -70
- package/dist/super-editor/chunks/{toolbar-BCJtFyig.js → toolbar-CXzGZEvz.js} +2 -2
- 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/{src → super-editor/src}/components/toolbar/toolbarTexts.d.ts +1 -0
- 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/{src → super-editor/src}/extensions/structured-content/structuredContentHelpers/index.d.ts +0 -1
- package/dist/super-editor/super-editor.es.js +12 -8
- 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 +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +574 -592
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsByAlias.d.ts +0 -8
- /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/Attribute.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/Editor.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/Schema.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/htmlSanitizer.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/SuperConverter.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-docx-defs.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/comments-plugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/helpers/normalize-comment-event-payload.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/comment/helpers/update-position.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/handleBase64.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/imageRegistrationPlugin.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/imageHelpers/startImageUpload.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/tab/helpers/tabDecorations.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/tab/tab.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/TableView.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/table.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellAround.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/cellWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createCell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createColGroup.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTable.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/createTableBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/deleteTableWhenSelected.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/getColStyleDeclaration.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table/tableHelpers/isCellSelection.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/helpers/createCellBorders.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-cell/table-cell.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-header/table-header.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-of-contents/table-of-contents.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/table-row/table-row.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text/text.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-align/text-align.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-indent/text-indent.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-style/text-style.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/text-transform/text-transform.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/constants.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/plugins/trackChangesBasePlugin.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-changes.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-delete.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-format.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/track-insert.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/addMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/documentHelpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/findTrackedMarkBetween.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/getTrackChanges.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markDeletion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markInsertion.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/markWrapping.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/parseFormatList.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/removeMarkStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceAroundStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/replaceStep.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/track-changes/trackChangesHelpers/trackedTransaction.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/extensions/underline/underline.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/main.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/data/annotations_doc_content.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/editor/data/imageBase64.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/data/comments/basic-resolved-comment.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/index.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/export/export-helpers/list-export-helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/editor-test-utils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/getParagraphText.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/helpers/helpers.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/tests/import/testUtils.d.ts +0 -0
- /package/dist/super-editor/{src → super-editor/src}/utils/contextmenu-helpers.d.ts +0 -0
- /package/dist/super-editor/{vite.config.d.ts → super-editor/vite.config.d.ts} +0 -0
package/dist/superdoc.umd.js
CHANGED
|
@@ -24253,212 +24253,6 @@
|
|
|
24253
24253
|
return void 0;
|
|
24254
24254
|
}
|
|
24255
24255
|
};
|
|
24256
|
-
function translateCommentNode(params2, type2) {
|
|
24257
|
-
const { node, commentsExportType, exportedCommentDefs = [] } = params2;
|
|
24258
|
-
if (!exportedCommentDefs.length || commentsExportType === "clean") return;
|
|
24259
|
-
const nodeId = node.attrs["w:id"];
|
|
24260
|
-
const originalComment = params2.comments.find((comment) => {
|
|
24261
|
-
return comment.commentId == nodeId;
|
|
24262
|
-
});
|
|
24263
|
-
if (!originalComment) return;
|
|
24264
|
-
const commentIndex = params2.comments?.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
24265
|
-
const parentId = originalComment.parentCommentId;
|
|
24266
|
-
let parentComment;
|
|
24267
|
-
if (parentId) {
|
|
24268
|
-
parentComment = params2.comments.find((c2) => c2.commentId === parentId || c2.importedId === parentId);
|
|
24269
|
-
}
|
|
24270
|
-
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
24271
|
-
if (commentsExportType === "external" && isInternal) return;
|
|
24272
|
-
const isResolved = !!originalComment.resolvedTime;
|
|
24273
|
-
if (isResolved) return;
|
|
24274
|
-
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
24275
|
-
if (type2 === "End") {
|
|
24276
|
-
const commentReference = {
|
|
24277
|
-
name: "w:r",
|
|
24278
|
-
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
24279
|
-
};
|
|
24280
|
-
commentSchema = [commentSchema, commentReference];
|
|
24281
|
-
}
|
|
24282
|
-
return commentSchema;
|
|
24283
|
-
}
|
|
24284
|
-
const getCommentSchema = (type2, commentId) => {
|
|
24285
|
-
return {
|
|
24286
|
-
name: `w:commentRange${type2}`,
|
|
24287
|
-
attributes: {
|
|
24288
|
-
"w:id": String(commentId)
|
|
24289
|
-
}
|
|
24290
|
-
};
|
|
24291
|
-
};
|
|
24292
|
-
const prepareCommentParaIds = (comment) => {
|
|
24293
|
-
const newComment = {
|
|
24294
|
-
...comment,
|
|
24295
|
-
commentParaId: generateRandom32BitHex()
|
|
24296
|
-
};
|
|
24297
|
-
return newComment;
|
|
24298
|
-
};
|
|
24299
|
-
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
24300
|
-
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
24301
|
-
const attributes = {
|
|
24302
|
-
"w:id": String(commentId),
|
|
24303
|
-
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
24304
|
-
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
24305
|
-
"w:date": toIsoNoFractional(comment.createdTime),
|
|
24306
|
-
"w:initials": getInitials(comment.creatorName),
|
|
24307
|
-
"w:done": comment.resolvedTime ? "1" : "0",
|
|
24308
|
-
"w15:paraId": comment.commentParaId,
|
|
24309
|
-
"custom:internalId": comment.commentId || comment.internalId,
|
|
24310
|
-
"custom:trackedChange": comment.trackedChange,
|
|
24311
|
-
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
24312
|
-
"custom:trackedChangeType": comment.trackedChangeType,
|
|
24313
|
-
"custom:trackedDeletedText": comment.deletedText || null
|
|
24314
|
-
};
|
|
24315
|
-
if (comment?.parentCommentId) {
|
|
24316
|
-
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
24317
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
24318
|
-
}
|
|
24319
|
-
return {
|
|
24320
|
-
type: "element",
|
|
24321
|
-
name: "w:comment",
|
|
24322
|
-
attributes,
|
|
24323
|
-
elements: [translatedText]
|
|
24324
|
-
};
|
|
24325
|
-
};
|
|
24326
|
-
const getInitials = (name) => {
|
|
24327
|
-
if (!name) return null;
|
|
24328
|
-
const preparedText = name.replace("(imported)", "").trim();
|
|
24329
|
-
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
24330
|
-
return initials;
|
|
24331
|
-
};
|
|
24332
|
-
const toIsoNoFractional = (unixMillis) => {
|
|
24333
|
-
const date = new Date(unixMillis || Date.now());
|
|
24334
|
-
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
24335
|
-
};
|
|
24336
|
-
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
24337
|
-
const newCommentsXml = carbonCopy(commentsXml);
|
|
24338
|
-
commentDefs.forEach((commentDef) => {
|
|
24339
|
-
const elements = commentDef.elements[0].elements;
|
|
24340
|
-
elements.unshift(COMMENT_REF);
|
|
24341
|
-
const paraId = commentDef.attributes["w15:paraId"];
|
|
24342
|
-
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
24343
|
-
commentDef.attributes = {
|
|
24344
|
-
"w:id": commentDef.attributes["w:id"],
|
|
24345
|
-
"w:author": commentDef.attributes["w:author"],
|
|
24346
|
-
"w:email": commentDef.attributes["w:email"],
|
|
24347
|
-
"w:date": commentDef.attributes["w:date"],
|
|
24348
|
-
"w:initials": commentDef.attributes["w:initials"],
|
|
24349
|
-
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
24350
|
-
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
24351
|
-
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
24352
|
-
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
24353
|
-
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
24354
|
-
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
24355
|
-
};
|
|
24356
|
-
});
|
|
24357
|
-
newCommentsXml.elements[0].elements = commentDefs;
|
|
24358
|
-
return newCommentsXml;
|
|
24359
|
-
};
|
|
24360
|
-
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
24361
|
-
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
24362
|
-
const commentsEx = comments.map((comment) => {
|
|
24363
|
-
const attributes = {
|
|
24364
|
-
"w15:paraId": comment.commentParaId,
|
|
24365
|
-
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
24366
|
-
};
|
|
24367
|
-
const parentId = comment.parentCommentId;
|
|
24368
|
-
if (parentId) {
|
|
24369
|
-
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
24370
|
-
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
24371
|
-
}
|
|
24372
|
-
return {
|
|
24373
|
-
type: "element",
|
|
24374
|
-
name: "w15:commentEx",
|
|
24375
|
-
attributes
|
|
24376
|
-
};
|
|
24377
|
-
});
|
|
24378
|
-
xmlCopy.elements[0].elements = commentsEx;
|
|
24379
|
-
return xmlCopy;
|
|
24380
|
-
};
|
|
24381
|
-
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
24382
|
-
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
24383
|
-
const extensibleUpdated = carbonCopy(extensible);
|
|
24384
|
-
documentIdsUpdated.elements[0].elements = [];
|
|
24385
|
-
extensibleUpdated.elements[0].elements = [];
|
|
24386
|
-
comments.forEach((comment) => {
|
|
24387
|
-
const newDurableId = generateRandom32BitHex();
|
|
24388
|
-
const newCommentIdDef = {
|
|
24389
|
-
type: "element",
|
|
24390
|
-
name: "w16cid:commentId",
|
|
24391
|
-
attributes: {
|
|
24392
|
-
"w16cid:paraId": comment.commentParaId,
|
|
24393
|
-
"w16cid:durableId": newDurableId
|
|
24394
|
-
}
|
|
24395
|
-
};
|
|
24396
|
-
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
24397
|
-
const newExtensible = {
|
|
24398
|
-
type: "element",
|
|
24399
|
-
name: "w16cex:commentExtensible",
|
|
24400
|
-
attributes: {
|
|
24401
|
-
"w16cex:durableId": newDurableId,
|
|
24402
|
-
"w16cex:dateUtc": toIsoNoFractional()
|
|
24403
|
-
}
|
|
24404
|
-
};
|
|
24405
|
-
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
24406
|
-
});
|
|
24407
|
-
return {
|
|
24408
|
-
documentIdsUpdated,
|
|
24409
|
-
extensibleUpdated
|
|
24410
|
-
};
|
|
24411
|
-
};
|
|
24412
|
-
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
24413
|
-
const newXml = carbonCopy(convertedXml);
|
|
24414
|
-
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
24415
|
-
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
24416
|
-
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
24417
|
-
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
24418
|
-
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
24419
|
-
return newXml;
|
|
24420
|
-
};
|
|
24421
|
-
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
24422
|
-
const updatedXml = carbonCopy(convertedXml);
|
|
24423
|
-
delete updatedXml["word/comments.xml"];
|
|
24424
|
-
delete updatedXml["word/commentsExtended.xml"];
|
|
24425
|
-
delete updatedXml["word/commentsExtensible.xml"];
|
|
24426
|
-
delete updatedXml["word/commentsIds.xml"];
|
|
24427
|
-
return updatedXml;
|
|
24428
|
-
};
|
|
24429
|
-
const generateRelationship = (target) => {
|
|
24430
|
-
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
24431
|
-
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
24432
|
-
return { ...rel };
|
|
24433
|
-
};
|
|
24434
|
-
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
24435
|
-
const relationships = [];
|
|
24436
|
-
if (exportType === "clean") {
|
|
24437
|
-
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
24438
|
-
return { documentXml, relationships };
|
|
24439
|
-
}
|
|
24440
|
-
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
24441
|
-
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
24442
|
-
relationships.push(generateRelationship("comments.xml"));
|
|
24443
|
-
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
24444
|
-
commentsWithParaIds,
|
|
24445
|
-
updatedXml["word/commentsExtended.xml"]
|
|
24446
|
-
);
|
|
24447
|
-
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
24448
|
-
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
24449
|
-
commentsWithParaIds,
|
|
24450
|
-
updatedXml["word/commentsIds.xml"],
|
|
24451
|
-
updatedXml["word/commentsExtensible.xml"]
|
|
24452
|
-
);
|
|
24453
|
-
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
24454
|
-
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
24455
|
-
relationships.push(generateRelationship("commentsIds.xml"));
|
|
24456
|
-
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
24457
|
-
return {
|
|
24458
|
-
relationships,
|
|
24459
|
-
documentXml: updatedXml
|
|
24460
|
-
};
|
|
24461
|
-
};
|
|
24462
24256
|
const lower16 = 65535;
|
|
24463
24257
|
const factor16 = Math.pow(2, 16);
|
|
24464
24258
|
function makeRecover(index2, offset2) {
|
|
@@ -32411,33 +32205,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32411
32205
|
const encode$1b = (attributes) => {
|
|
32412
32206
|
return attributes["w:type"];
|
|
32413
32207
|
};
|
|
32414
|
-
const decode$
|
|
32208
|
+
const decode$13 = (attrs) => {
|
|
32415
32209
|
const { lineBreakType } = attrs;
|
|
32416
32210
|
return lineBreakType;
|
|
32417
32211
|
};
|
|
32418
|
-
const attrConfig$
|
|
32212
|
+
const attrConfig$G = Object.freeze({
|
|
32419
32213
|
xmlName: "w:type",
|
|
32420
32214
|
sdName: "lineBreakType",
|
|
32421
32215
|
encode: encode$1b,
|
|
32422
|
-
decode: decode$
|
|
32216
|
+
decode: decode$13
|
|
32423
32217
|
});
|
|
32424
32218
|
const encode$1a = (attributes) => {
|
|
32425
32219
|
const xmlAttrValue = attributes["w:clear"];
|
|
32426
32220
|
return xmlAttrValue;
|
|
32427
32221
|
};
|
|
32428
|
-
const decode$
|
|
32222
|
+
const decode$12 = (attrs) => {
|
|
32429
32223
|
const { clear } = attrs;
|
|
32430
32224
|
return clear;
|
|
32431
32225
|
};
|
|
32432
|
-
const attrConfig$
|
|
32226
|
+
const attrConfig$F = Object.freeze({
|
|
32433
32227
|
xmlName: "w:clear",
|
|
32434
32228
|
sdName: "clear",
|
|
32435
32229
|
encode: encode$1a,
|
|
32436
|
-
decode: decode$
|
|
32230
|
+
decode: decode$12
|
|
32437
32231
|
});
|
|
32438
|
-
const validXmlAttributes$m = [attrConfig$
|
|
32439
|
-
const XML_NODE_NAME$
|
|
32440
|
-
const SD_NODE_NAME$
|
|
32232
|
+
const validXmlAttributes$m = [attrConfig$G, attrConfig$F];
|
|
32233
|
+
const XML_NODE_NAME$y = "w:br";
|
|
32234
|
+
const SD_NODE_NAME$g = "lineBreak";
|
|
32441
32235
|
const encode$19 = (_2, encodedAttrs) => {
|
|
32442
32236
|
const isPageBreak = encodedAttrs?.lineBreakType === "page";
|
|
32443
32237
|
const translated = {
|
|
@@ -32448,7 +32242,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32448
32242
|
}
|
|
32449
32243
|
return translated;
|
|
32450
32244
|
};
|
|
32451
|
-
const decode
|
|
32245
|
+
const decode$11 = (params2, decodedAttrs) => {
|
|
32452
32246
|
const { node } = params2;
|
|
32453
32247
|
if (!node) return;
|
|
32454
32248
|
const wBreak = { name: "w:br" };
|
|
@@ -32466,24 +32260,24 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32466
32260
|
return translated;
|
|
32467
32261
|
};
|
|
32468
32262
|
const config$v = {
|
|
32469
|
-
xmlName: XML_NODE_NAME$
|
|
32470
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
32263
|
+
xmlName: XML_NODE_NAME$y,
|
|
32264
|
+
sdNodeOrKeyName: SD_NODE_NAME$g,
|
|
32471
32265
|
type: NodeTranslator.translatorTypes.NODE,
|
|
32472
32266
|
encode: encode$19,
|
|
32473
|
-
decode: decode
|
|
32267
|
+
decode: decode$11,
|
|
32474
32268
|
attributes: validXmlAttributes$m
|
|
32475
32269
|
};
|
|
32476
32270
|
const translator$19 = NodeTranslator.from(config$v);
|
|
32477
32271
|
const encode$18 = (attributes) => attributes?.["w:val"];
|
|
32478
|
-
const decode$
|
|
32479
|
-
const attrConfig$
|
|
32272
|
+
const decode$10 = (attrs) => attrs?.highlight;
|
|
32273
|
+
const attrConfig$E = Object.freeze({
|
|
32480
32274
|
xmlName: "w:val",
|
|
32481
32275
|
sdName: "highlight",
|
|
32482
32276
|
encode: encode$18,
|
|
32483
|
-
decode: decode$
|
|
32277
|
+
decode: decode$10
|
|
32484
32278
|
});
|
|
32485
|
-
const validXmlAttributes$l = [attrConfig$
|
|
32486
|
-
const XML_NODE_NAME$
|
|
32279
|
+
const validXmlAttributes$l = [attrConfig$E];
|
|
32280
|
+
const XML_NODE_NAME$x = "w:highlight";
|
|
32487
32281
|
const SD_ATTR_KEY$g = "highlight";
|
|
32488
32282
|
const DISABLED_TOKENS = /* @__PURE__ */ new Set(["transparent", "none", "inherit"]);
|
|
32489
32283
|
const encode$17 = (params2, encodedAttrs = {}) => {
|
|
@@ -32492,12 +32286,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32492
32286
|
const value = encodedAttrs.highlight ?? node?.attributes?.["w:val"];
|
|
32493
32287
|
return {
|
|
32494
32288
|
type: "attr",
|
|
32495
|
-
xmlName: XML_NODE_NAME$
|
|
32289
|
+
xmlName: XML_NODE_NAME$x,
|
|
32496
32290
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
32497
32291
|
attributes: { "w:val": value ?? null }
|
|
32498
32292
|
};
|
|
32499
32293
|
};
|
|
32500
|
-
const decode
|
|
32294
|
+
const decode$$ = (params2) => {
|
|
32501
32295
|
const attrs = params2?.node?.attrs || {};
|
|
32502
32296
|
const highlightValue = attrs.highlight ?? attrs.color ?? null;
|
|
32503
32297
|
if (!highlightValue) return void 0;
|
|
@@ -32505,14 +32299,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32505
32299
|
if (!normalizedValue) return void 0;
|
|
32506
32300
|
if (DISABLED_TOKENS.has(normalizedValue)) {
|
|
32507
32301
|
return {
|
|
32508
|
-
name: XML_NODE_NAME$
|
|
32302
|
+
name: XML_NODE_NAME$x,
|
|
32509
32303
|
attributes: { "w:val": "none" }
|
|
32510
32304
|
};
|
|
32511
32305
|
}
|
|
32512
32306
|
const keyword = getDocxHighlightKeywordFromHex(highlightValue);
|
|
32513
32307
|
if (keyword) {
|
|
32514
32308
|
return {
|
|
32515
|
-
name: XML_NODE_NAME$
|
|
32309
|
+
name: XML_NODE_NAME$x,
|
|
32516
32310
|
attributes: { "w:val": keyword }
|
|
32517
32311
|
};
|
|
32518
32312
|
}
|
|
@@ -32528,62 +32322,62 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32528
32322
|
};
|
|
32529
32323
|
};
|
|
32530
32324
|
const config$u = {
|
|
32531
|
-
xmlName: XML_NODE_NAME$
|
|
32325
|
+
xmlName: XML_NODE_NAME$x,
|
|
32532
32326
|
sdNodeOrKeyName: SD_ATTR_KEY$g,
|
|
32533
32327
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
32534
32328
|
encode: encode$17,
|
|
32535
|
-
decode: decode
|
|
32329
|
+
decode: decode$$,
|
|
32536
32330
|
attributes: validXmlAttributes$l
|
|
32537
32331
|
};
|
|
32538
32332
|
const translator$18 = NodeTranslator.from(config$u);
|
|
32539
32333
|
const encode$16 = (attributes) => {
|
|
32540
32334
|
return attributes["w:val"];
|
|
32541
32335
|
};
|
|
32542
|
-
const decode$
|
|
32336
|
+
const decode$_ = (attrs) => {
|
|
32543
32337
|
const { tabSize } = attrs || {};
|
|
32544
32338
|
return tabSize;
|
|
32545
32339
|
};
|
|
32546
|
-
const attrConfig$
|
|
32340
|
+
const attrConfig$D = Object.freeze({
|
|
32547
32341
|
xmlName: "w:val",
|
|
32548
32342
|
sdName: "tabSize",
|
|
32549
32343
|
encode: encode$16,
|
|
32550
|
-
decode: decode$
|
|
32344
|
+
decode: decode$_
|
|
32551
32345
|
});
|
|
32552
32346
|
const encode$15 = (attributes) => {
|
|
32553
32347
|
return attributes["w:leader"];
|
|
32554
32348
|
};
|
|
32555
|
-
const decode$
|
|
32349
|
+
const decode$Z = (attrs) => {
|
|
32556
32350
|
const { leader } = attrs || {};
|
|
32557
32351
|
return leader;
|
|
32558
32352
|
};
|
|
32559
|
-
const attrConfig$
|
|
32353
|
+
const attrConfig$C = Object.freeze({
|
|
32560
32354
|
xmlName: "w:leader",
|
|
32561
32355
|
sdName: "leader",
|
|
32562
32356
|
encode: encode$15,
|
|
32563
|
-
decode: decode$
|
|
32357
|
+
decode: decode$Z
|
|
32564
32358
|
});
|
|
32565
32359
|
const encode$14 = (attributes) => {
|
|
32566
32360
|
return attributes["w:pos"];
|
|
32567
32361
|
};
|
|
32568
|
-
const decode$
|
|
32362
|
+
const decode$Y = (attrs) => {
|
|
32569
32363
|
const { pos } = attrs || {};
|
|
32570
32364
|
return pos;
|
|
32571
32365
|
};
|
|
32572
|
-
const attrConfig$
|
|
32366
|
+
const attrConfig$B = Object.freeze({
|
|
32573
32367
|
xmlName: "w:pos",
|
|
32574
32368
|
sdName: "pos",
|
|
32575
32369
|
encode: encode$14,
|
|
32576
|
-
decode: decode$
|
|
32370
|
+
decode: decode$Y
|
|
32577
32371
|
});
|
|
32578
|
-
const validXmlAttributes$k = [attrConfig$
|
|
32579
|
-
const XML_NODE_NAME$
|
|
32580
|
-
const SD_NODE_NAME$
|
|
32372
|
+
const validXmlAttributes$k = [attrConfig$D, attrConfig$B, attrConfig$C];
|
|
32373
|
+
const XML_NODE_NAME$w = "w:tab";
|
|
32374
|
+
const SD_NODE_NAME$f = "tab";
|
|
32581
32375
|
const encode$13 = (_2, encodedAttrs = {}) => {
|
|
32582
32376
|
const translated = { type: "tab" };
|
|
32583
32377
|
if (encodedAttrs) translated.attrs = { ...encodedAttrs };
|
|
32584
32378
|
return translated;
|
|
32585
32379
|
};
|
|
32586
|
-
const decode$
|
|
32380
|
+
const decode$X = (params2, decodedAttrs = {}) => {
|
|
32587
32381
|
const { node } = params2 || {};
|
|
32588
32382
|
if (!node) return;
|
|
32589
32383
|
const wTab = { name: "w:tab" };
|
|
@@ -32600,11 +32394,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32600
32394
|
return translated;
|
|
32601
32395
|
};
|
|
32602
32396
|
const config$t = {
|
|
32603
|
-
xmlName: XML_NODE_NAME$
|
|
32604
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
32397
|
+
xmlName: XML_NODE_NAME$w,
|
|
32398
|
+
sdNodeOrKeyName: SD_NODE_NAME$f,
|
|
32605
32399
|
type: NodeTranslator.translatorTypes.NODE,
|
|
32606
32400
|
encode: encode$13,
|
|
32607
|
-
decode: decode$
|
|
32401
|
+
decode: decode$X,
|
|
32608
32402
|
attributes: validXmlAttributes$k
|
|
32609
32403
|
};
|
|
32610
32404
|
const translator$17 = NodeTranslator.from(config$t);
|
|
@@ -33128,98 +32922,98 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33128
32922
|
const encode$12 = (attributes) => {
|
|
33129
32923
|
return attributes["w:rsidDel"];
|
|
33130
32924
|
};
|
|
33131
|
-
const decode$
|
|
32925
|
+
const decode$W = (attrs) => {
|
|
33132
32926
|
return attrs.rsidDel;
|
|
33133
32927
|
};
|
|
33134
|
-
const attrConfig$
|
|
32928
|
+
const attrConfig$A = Object.freeze({
|
|
33135
32929
|
xmlName: "w:rsidDel",
|
|
33136
32930
|
sdName: "rsidDel",
|
|
33137
32931
|
encode: encode$12,
|
|
33138
|
-
decode: decode$
|
|
32932
|
+
decode: decode$W
|
|
33139
32933
|
});
|
|
33140
32934
|
const encode$11 = (attributes) => {
|
|
33141
32935
|
return attributes["w:rsidP"];
|
|
33142
32936
|
};
|
|
33143
|
-
const decode$
|
|
32937
|
+
const decode$V = (attrs) => {
|
|
33144
32938
|
return attrs.rsidP;
|
|
33145
32939
|
};
|
|
33146
|
-
const attrConfig$
|
|
32940
|
+
const attrConfig$z = Object.freeze({
|
|
33147
32941
|
xmlName: "w:rsidP",
|
|
33148
32942
|
sdName: "rsidP",
|
|
33149
32943
|
encode: encode$11,
|
|
33150
|
-
decode: decode$
|
|
32944
|
+
decode: decode$V
|
|
33151
32945
|
});
|
|
33152
32946
|
const encode$10 = (attributes) => {
|
|
33153
32947
|
return attributes["w:rsidR"];
|
|
33154
32948
|
};
|
|
33155
|
-
const decode$
|
|
32949
|
+
const decode$U = (attrs) => {
|
|
33156
32950
|
return attrs.rsidR;
|
|
33157
32951
|
};
|
|
33158
|
-
const attrConfig$
|
|
32952
|
+
const attrConfig$y = Object.freeze({
|
|
33159
32953
|
xmlName: "w:rsidR",
|
|
33160
32954
|
sdName: "rsidR",
|
|
33161
32955
|
encode: encode$10,
|
|
33162
|
-
decode: decode$
|
|
32956
|
+
decode: decode$U
|
|
33163
32957
|
});
|
|
33164
32958
|
const encode$$ = (attributes) => {
|
|
33165
32959
|
return attributes["w:rsidRPr"];
|
|
33166
32960
|
};
|
|
33167
|
-
const decode$
|
|
32961
|
+
const decode$T = (attrs) => {
|
|
33168
32962
|
return attrs.rsidRPr;
|
|
33169
32963
|
};
|
|
33170
|
-
const attrConfig$
|
|
32964
|
+
const attrConfig$x = Object.freeze({
|
|
33171
32965
|
xmlName: "w:rsidRPr",
|
|
33172
32966
|
sdName: "rsidRPr",
|
|
33173
32967
|
encode: encode$$,
|
|
33174
|
-
decode: decode$
|
|
32968
|
+
decode: decode$T
|
|
33175
32969
|
});
|
|
33176
32970
|
const encode$_ = (attributes) => {
|
|
33177
32971
|
return attributes["w:rsidRDefault"];
|
|
33178
32972
|
};
|
|
33179
|
-
const decode$
|
|
32973
|
+
const decode$S = (attrs) => {
|
|
33180
32974
|
return attrs.rsidRDefault;
|
|
33181
32975
|
};
|
|
33182
|
-
const attrConfig$
|
|
32976
|
+
const attrConfig$w = Object.freeze({
|
|
33183
32977
|
xmlName: "w:rsidRDefault",
|
|
33184
32978
|
sdName: "rsidRDefault",
|
|
33185
32979
|
encode: encode$_,
|
|
33186
|
-
decode: decode$
|
|
32980
|
+
decode: decode$S
|
|
33187
32981
|
});
|
|
33188
32982
|
const encode$Z = (attributes) => {
|
|
33189
32983
|
return attributes["w14:paraId"];
|
|
33190
32984
|
};
|
|
33191
|
-
const decode$
|
|
32985
|
+
const decode$R = (attrs) => {
|
|
33192
32986
|
return attrs.paraId;
|
|
33193
32987
|
};
|
|
33194
|
-
const attrConfig$
|
|
32988
|
+
const attrConfig$v = Object.freeze({
|
|
33195
32989
|
xmlName: "w14:paraId",
|
|
33196
32990
|
sdName: "paraId",
|
|
33197
32991
|
encode: encode$Z,
|
|
33198
|
-
decode: decode$
|
|
32992
|
+
decode: decode$R
|
|
33199
32993
|
});
|
|
33200
32994
|
const encode$Y = (attributes) => {
|
|
33201
32995
|
return attributes["w14:textId"];
|
|
33202
32996
|
};
|
|
33203
|
-
const decode$
|
|
32997
|
+
const decode$Q = (attrs) => {
|
|
33204
32998
|
return attrs.textId;
|
|
33205
32999
|
};
|
|
33206
|
-
const attrConfig$
|
|
33000
|
+
const attrConfig$u = Object.freeze({
|
|
33207
33001
|
xmlName: "w14:textId",
|
|
33208
33002
|
sdName: "textId",
|
|
33209
33003
|
encode: encode$Y,
|
|
33210
|
-
decode: decode$
|
|
33004
|
+
decode: decode$Q
|
|
33211
33005
|
});
|
|
33212
33006
|
const validXmlAttributes$j = [
|
|
33213
|
-
attrConfig$u,
|
|
33214
|
-
attrConfig$t,
|
|
33215
|
-
attrConfig$x,
|
|
33216
33007
|
attrConfig$v,
|
|
33008
|
+
attrConfig$u,
|
|
33217
33009
|
attrConfig$y,
|
|
33218
33010
|
attrConfig$w,
|
|
33219
|
-
attrConfig$z
|
|
33011
|
+
attrConfig$z,
|
|
33012
|
+
attrConfig$x,
|
|
33013
|
+
attrConfig$A
|
|
33220
33014
|
];
|
|
33221
|
-
const XML_NODE_NAME$
|
|
33222
|
-
const SD_NODE_NAME$
|
|
33015
|
+
const XML_NODE_NAME$v = "w:p";
|
|
33016
|
+
const SD_NODE_NAME$e = "paragraph";
|
|
33223
33017
|
const encode$X = (params2, encodedAttrs = {}) => {
|
|
33224
33018
|
const node = handleParagraphNode$1(params2);
|
|
33225
33019
|
if (!node) return void 0;
|
|
@@ -33228,7 +33022,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33228
33022
|
}
|
|
33229
33023
|
return node;
|
|
33230
33024
|
};
|
|
33231
|
-
const decode$
|
|
33025
|
+
const decode$P = (params2, decodedAttrs = {}) => {
|
|
33232
33026
|
const translated = translateParagraphNode(params2);
|
|
33233
33027
|
if (!translated) return void 0;
|
|
33234
33028
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
@@ -33237,11 +33031,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33237
33031
|
return translated;
|
|
33238
33032
|
};
|
|
33239
33033
|
const config$s = {
|
|
33240
|
-
xmlName: XML_NODE_NAME$
|
|
33241
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
33034
|
+
xmlName: XML_NODE_NAME$v,
|
|
33035
|
+
sdNodeOrKeyName: SD_NODE_NAME$e,
|
|
33242
33036
|
type: NodeTranslator.translatorTypes.NODE,
|
|
33243
33037
|
encode: encode$X,
|
|
33244
|
-
decode: decode$
|
|
33038
|
+
decode: decode$P,
|
|
33245
33039
|
attributes: validXmlAttributes$j
|
|
33246
33040
|
};
|
|
33247
33041
|
const translator$16 = NodeTranslator.from(config$s);
|
|
@@ -33255,18 +33049,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33255
33049
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
33256
33050
|
return void 0;
|
|
33257
33051
|
};
|
|
33258
|
-
const decode$
|
|
33052
|
+
const decode$O = (runProps) => {
|
|
33259
33053
|
if (runProps?.bold === false) return "0";
|
|
33260
33054
|
return void 0;
|
|
33261
33055
|
};
|
|
33262
|
-
const attrConfig$
|
|
33056
|
+
const attrConfig$t = Object.freeze({
|
|
33263
33057
|
xmlName: "w:val",
|
|
33264
33058
|
sdName: "bold",
|
|
33265
33059
|
encode: encode$W,
|
|
33266
|
-
decode: decode$
|
|
33060
|
+
decode: decode$O
|
|
33267
33061
|
});
|
|
33268
|
-
const validXmlAttributes$i = [attrConfig$
|
|
33269
|
-
const XML_NODE_NAME$
|
|
33062
|
+
const validXmlAttributes$i = [attrConfig$t];
|
|
33063
|
+
const XML_NODE_NAME$u = "w:b";
|
|
33270
33064
|
const SD_ATTR_KEY$f = "bold";
|
|
33271
33065
|
const encode$V = (params2, encodedAttrs = {}) => {
|
|
33272
33066
|
const { nodes } = params2;
|
|
@@ -33280,20 +33074,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33280
33074
|
else attributes = node.attributes || {};
|
|
33281
33075
|
return {
|
|
33282
33076
|
type: "attr",
|
|
33283
|
-
xmlName: XML_NODE_NAME$
|
|
33077
|
+
xmlName: XML_NODE_NAME$u,
|
|
33284
33078
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
33285
33079
|
attributes
|
|
33286
33080
|
};
|
|
33287
33081
|
};
|
|
33288
33082
|
const config$r = {
|
|
33289
|
-
xmlName: XML_NODE_NAME$
|
|
33083
|
+
xmlName: XML_NODE_NAME$u,
|
|
33290
33084
|
sdNodeOrKeyName: SD_ATTR_KEY$f,
|
|
33291
33085
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33292
33086
|
encode: encode$V,
|
|
33293
33087
|
attributes: validXmlAttributes$i
|
|
33294
33088
|
};
|
|
33295
33089
|
const translator$15 = NodeTranslator.from(config$r);
|
|
33296
|
-
const XML_NODE_NAME$
|
|
33090
|
+
const XML_NODE_NAME$t = "w:i";
|
|
33297
33091
|
const SD_ATTR_KEY$e = "italic";
|
|
33298
33092
|
const encode$U = (params2) => {
|
|
33299
33093
|
const { nodes } = params2;
|
|
@@ -33301,7 +33095,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33301
33095
|
if (!node) return void 0;
|
|
33302
33096
|
return {
|
|
33303
33097
|
type: "attr",
|
|
33304
|
-
xmlName: XML_NODE_NAME$
|
|
33098
|
+
xmlName: XML_NODE_NAME$t,
|
|
33305
33099
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
33306
33100
|
attributes: {
|
|
33307
33101
|
"w:val": node.attributes?.["w:val"] ?? null
|
|
@@ -33309,54 +33103,54 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33309
33103
|
};
|
|
33310
33104
|
};
|
|
33311
33105
|
const config$q = {
|
|
33312
|
-
xmlName: XML_NODE_NAME$
|
|
33106
|
+
xmlName: XML_NODE_NAME$t,
|
|
33313
33107
|
sdNodeOrKeyName: SD_ATTR_KEY$e,
|
|
33314
33108
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33315
33109
|
encode: encode$U
|
|
33316
33110
|
};
|
|
33317
33111
|
const translator$14 = NodeTranslator.from(config$q);
|
|
33318
33112
|
const encode$T = (attributes) => attributes?.["w:val"];
|
|
33319
|
-
const decode$
|
|
33320
|
-
const attrConfig$
|
|
33113
|
+
const decode$N = (attrs) => attrs?.underline;
|
|
33114
|
+
const attrConfig$s = Object.freeze({
|
|
33321
33115
|
xmlName: "w:val",
|
|
33322
33116
|
sdName: "underline",
|
|
33323
33117
|
encode: encode$T,
|
|
33324
|
-
decode: decode$
|
|
33118
|
+
decode: decode$N
|
|
33325
33119
|
});
|
|
33326
33120
|
const encode$S = (attributes) => attributes?.["w:color"];
|
|
33327
|
-
const decode$
|
|
33328
|
-
const attrConfig$
|
|
33121
|
+
const decode$M = (attrs) => attrs?.color;
|
|
33122
|
+
const attrConfig$r = Object.freeze({
|
|
33329
33123
|
xmlName: "w:color",
|
|
33330
33124
|
sdName: "color",
|
|
33331
33125
|
encode: encode$S,
|
|
33332
|
-
decode: decode$
|
|
33126
|
+
decode: decode$M
|
|
33333
33127
|
});
|
|
33334
33128
|
const encode$R = (attributes) => attributes?.["w:themeColor"];
|
|
33335
|
-
const decode$
|
|
33336
|
-
const attrConfig$
|
|
33129
|
+
const decode$L = (attrs) => attrs?.themeColor;
|
|
33130
|
+
const attrConfig$q = Object.freeze({
|
|
33337
33131
|
xmlName: "w:themeColor",
|
|
33338
33132
|
sdName: "themeColor",
|
|
33339
33133
|
encode: encode$R,
|
|
33340
|
-
decode: decode$
|
|
33134
|
+
decode: decode$L
|
|
33341
33135
|
});
|
|
33342
33136
|
const encode$Q = (attributes) => attributes?.["w:themeTint"];
|
|
33343
|
-
const decode$
|
|
33344
|
-
const attrConfig$
|
|
33137
|
+
const decode$K = (attrs) => attrs?.themeTint;
|
|
33138
|
+
const attrConfig$p = Object.freeze({
|
|
33345
33139
|
xmlName: "w:themeTint",
|
|
33346
33140
|
sdName: "themeTint",
|
|
33347
33141
|
encode: encode$Q,
|
|
33348
|
-
decode: decode$
|
|
33142
|
+
decode: decode$K
|
|
33349
33143
|
});
|
|
33350
33144
|
const encode$P = (attributes) => attributes?.["w:themeShade"];
|
|
33351
|
-
const decode$
|
|
33352
|
-
const attrConfig$
|
|
33145
|
+
const decode$J = (attrs) => attrs?.themeShade;
|
|
33146
|
+
const attrConfig$o = Object.freeze({
|
|
33353
33147
|
xmlName: "w:themeShade",
|
|
33354
33148
|
sdName: "themeShade",
|
|
33355
33149
|
encode: encode$P,
|
|
33356
|
-
decode: decode$
|
|
33150
|
+
decode: decode$J
|
|
33357
33151
|
});
|
|
33358
|
-
const validXmlAttributes$h = [attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o
|
|
33359
|
-
const XML_NODE_NAME$
|
|
33152
|
+
const validXmlAttributes$h = [attrConfig$s, attrConfig$r, attrConfig$q, attrConfig$p, attrConfig$o];
|
|
33153
|
+
const XML_NODE_NAME$s = "w:u";
|
|
33360
33154
|
const SD_ATTR_KEY$d = "underline";
|
|
33361
33155
|
const encode$O = (params2, encodedAttrs = {}) => {
|
|
33362
33156
|
const { nodes } = params2;
|
|
@@ -33374,12 +33168,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33374
33168
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
33375
33169
|
return {
|
|
33376
33170
|
type: "attr",
|
|
33377
|
-
xmlName: XML_NODE_NAME$
|
|
33171
|
+
xmlName: XML_NODE_NAME$s,
|
|
33378
33172
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
33379
33173
|
attributes
|
|
33380
33174
|
};
|
|
33381
33175
|
};
|
|
33382
|
-
const decode$
|
|
33176
|
+
const decode$I = (params2) => {
|
|
33383
33177
|
const attrs = params2?.node?.attrs || {};
|
|
33384
33178
|
const underlineType = attrs.underlineType ?? attrs.underline ?? null;
|
|
33385
33179
|
const color = attrs.underlineColor ?? attrs.color ?? null;
|
|
@@ -33397,16 +33191,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33397
33191
|
if (themeTint) attributes["w:themeTint"] = themeTint;
|
|
33398
33192
|
if (themeShade) attributes["w:themeShade"] = themeShade;
|
|
33399
33193
|
return {
|
|
33400
|
-
name: XML_NODE_NAME$
|
|
33194
|
+
name: XML_NODE_NAME$s,
|
|
33401
33195
|
attributes
|
|
33402
33196
|
};
|
|
33403
33197
|
};
|
|
33404
33198
|
const config$p = {
|
|
33405
|
-
xmlName: XML_NODE_NAME$
|
|
33199
|
+
xmlName: XML_NODE_NAME$s,
|
|
33406
33200
|
sdNodeOrKeyName: SD_ATTR_KEY$d,
|
|
33407
33201
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33408
33202
|
encode: encode$O,
|
|
33409
|
-
decode: decode$
|
|
33203
|
+
decode: decode$I,
|
|
33410
33204
|
attributes: validXmlAttributes$h
|
|
33411
33205
|
};
|
|
33412
33206
|
const translator$13 = NodeTranslator.from(config$p);
|
|
@@ -33420,18 +33214,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33420
33214
|
if (val === "1" || val === "true" || val === "on") return true;
|
|
33421
33215
|
return void 0;
|
|
33422
33216
|
};
|
|
33423
|
-
const decode$
|
|
33217
|
+
const decode$H = (attrs) => {
|
|
33424
33218
|
if (attrs?.strike === false) return "0";
|
|
33425
33219
|
return void 0;
|
|
33426
33220
|
};
|
|
33427
|
-
const attrConfig$
|
|
33221
|
+
const attrConfig$n = Object.freeze({
|
|
33428
33222
|
xmlName: "w:val",
|
|
33429
33223
|
sdName: "strike",
|
|
33430
33224
|
encode: encode$N,
|
|
33431
|
-
decode: decode$
|
|
33225
|
+
decode: decode$H
|
|
33432
33226
|
});
|
|
33433
|
-
const validXmlAttributes$g = [attrConfig$
|
|
33434
|
-
const XML_NODE_NAME$
|
|
33227
|
+
const validXmlAttributes$g = [attrConfig$n];
|
|
33228
|
+
const XML_NODE_NAME$r = "w:strike";
|
|
33435
33229
|
const SD_ATTR_KEY$c = "strike";
|
|
33436
33230
|
const encode$M = (params2, encodedAttrs = {}) => {
|
|
33437
33231
|
const { nodes } = params2;
|
|
@@ -33446,13 +33240,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33446
33240
|
else if (val === true && attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
33447
33241
|
return {
|
|
33448
33242
|
type: "attr",
|
|
33449
|
-
xmlName: XML_NODE_NAME$
|
|
33243
|
+
xmlName: XML_NODE_NAME$r,
|
|
33450
33244
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
33451
33245
|
attributes
|
|
33452
33246
|
};
|
|
33453
33247
|
};
|
|
33454
33248
|
const config$o = {
|
|
33455
|
-
xmlName: XML_NODE_NAME$
|
|
33249
|
+
xmlName: XML_NODE_NAME$r,
|
|
33456
33250
|
sdNodeOrKeyName: SD_ATTR_KEY$c,
|
|
33457
33251
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33458
33252
|
encode: encode$M,
|
|
@@ -33460,39 +33254,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33460
33254
|
};
|
|
33461
33255
|
const translator$12 = NodeTranslator.from(config$o);
|
|
33462
33256
|
const encode$L = (attributes) => attributes?.["w:val"];
|
|
33463
|
-
const decode$
|
|
33464
|
-
const attrConfig$
|
|
33257
|
+
const decode$G = (attrs) => attrs?.color;
|
|
33258
|
+
const attrConfig$m = Object.freeze({
|
|
33465
33259
|
xmlName: "w:val",
|
|
33466
33260
|
sdName: "color",
|
|
33467
33261
|
encode: encode$L,
|
|
33468
|
-
decode: decode$
|
|
33262
|
+
decode: decode$G
|
|
33469
33263
|
});
|
|
33470
33264
|
const encode$K = (attributes) => attributes?.["w:themeColor"];
|
|
33471
|
-
const decode$
|
|
33472
|
-
const attrConfig$
|
|
33265
|
+
const decode$F = (attrs) => attrs?.themeColor;
|
|
33266
|
+
const attrConfig$l = Object.freeze({
|
|
33473
33267
|
xmlName: "w:themeColor",
|
|
33474
33268
|
sdName: "themeColor",
|
|
33475
33269
|
encode: encode$K,
|
|
33476
|
-
decode: decode$
|
|
33270
|
+
decode: decode$F
|
|
33477
33271
|
});
|
|
33478
33272
|
const encode$J = (attributes) => attributes?.["w:themeTint"];
|
|
33479
|
-
const decode$
|
|
33480
|
-
const attrConfig$
|
|
33273
|
+
const decode$E = (attrs) => attrs?.themeTint;
|
|
33274
|
+
const attrConfig$k = Object.freeze({
|
|
33481
33275
|
xmlName: "w:themeTint",
|
|
33482
33276
|
sdName: "themeTint",
|
|
33483
33277
|
encode: encode$J,
|
|
33484
|
-
decode: decode$
|
|
33278
|
+
decode: decode$E
|
|
33485
33279
|
});
|
|
33486
33280
|
const encode$I = (attributes) => attributes?.["w:themeShade"];
|
|
33487
|
-
const decode$
|
|
33488
|
-
const attrConfig$
|
|
33281
|
+
const decode$D = (attrs) => attrs?.themeShade;
|
|
33282
|
+
const attrConfig$j = Object.freeze({
|
|
33489
33283
|
xmlName: "w:themeShade",
|
|
33490
33284
|
sdName: "themeShade",
|
|
33491
33285
|
encode: encode$I,
|
|
33492
|
-
decode: decode$
|
|
33286
|
+
decode: decode$D
|
|
33493
33287
|
});
|
|
33494
|
-
const validXmlAttributes$f = [attrConfig$
|
|
33495
|
-
const XML_NODE_NAME$
|
|
33288
|
+
const validXmlAttributes$f = [attrConfig$m, attrConfig$l, attrConfig$k, attrConfig$j];
|
|
33289
|
+
const XML_NODE_NAME$q = "w:color";
|
|
33496
33290
|
const SD_ATTR_KEY$b = "color";
|
|
33497
33291
|
const encode$H = (params2, encodedAttrs = {}) => {
|
|
33498
33292
|
const { nodes } = params2;
|
|
@@ -33509,13 +33303,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33509
33303
|
if (themeShade !== void 0 && themeShade !== null) attributes["w:themeShade"] = themeShade;
|
|
33510
33304
|
return {
|
|
33511
33305
|
type: "attr",
|
|
33512
|
-
xmlName: XML_NODE_NAME$
|
|
33306
|
+
xmlName: XML_NODE_NAME$q,
|
|
33513
33307
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
33514
33308
|
attributes
|
|
33515
33309
|
};
|
|
33516
33310
|
};
|
|
33517
33311
|
const config$n = {
|
|
33518
|
-
xmlName: XML_NODE_NAME$
|
|
33312
|
+
xmlName: XML_NODE_NAME$q,
|
|
33519
33313
|
sdNodeOrKeyName: SD_ATTR_KEY$b,
|
|
33520
33314
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33521
33315
|
encode: encode$H,
|
|
@@ -33523,47 +33317,47 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33523
33317
|
};
|
|
33524
33318
|
const translator$11 = NodeTranslator.from(config$n);
|
|
33525
33319
|
const encode$G = (attributes) => attributes?.["w:eastAsia"];
|
|
33526
|
-
const decode$
|
|
33527
|
-
const attrConfig$
|
|
33320
|
+
const decode$C = (attrs) => attrs?.eastAsia;
|
|
33321
|
+
const attrConfig$i = Object.freeze({
|
|
33528
33322
|
xmlName: "w:eastAsia",
|
|
33529
33323
|
sdName: "eastAsia",
|
|
33530
33324
|
encode: encode$G,
|
|
33531
|
-
decode: decode$
|
|
33325
|
+
decode: decode$C
|
|
33532
33326
|
});
|
|
33533
33327
|
const encode$F = (attributes) => attributes?.["w:ascii"];
|
|
33534
|
-
const decode$
|
|
33535
|
-
const attrConfig$
|
|
33328
|
+
const decode$B = (attrs) => attrs?.ascii;
|
|
33329
|
+
const attrConfig$h = Object.freeze({
|
|
33536
33330
|
xmlName: "w:ascii",
|
|
33537
33331
|
sdName: "ascii",
|
|
33538
33332
|
encode: encode$F,
|
|
33539
|
-
decode: decode$
|
|
33333
|
+
decode: decode$B
|
|
33540
33334
|
});
|
|
33541
33335
|
const encode$E = (attributes) => attributes?.["w:hAnsi"];
|
|
33542
|
-
const decode$
|
|
33543
|
-
const attrConfig$
|
|
33336
|
+
const decode$A = (attrs) => attrs?.hAnsi;
|
|
33337
|
+
const attrConfig$g = Object.freeze({
|
|
33544
33338
|
xmlName: "w:hAnsi",
|
|
33545
33339
|
sdName: "hAnsi",
|
|
33546
33340
|
encode: encode$E,
|
|
33547
|
-
decode: decode$
|
|
33341
|
+
decode: decode$A
|
|
33548
33342
|
});
|
|
33549
33343
|
const encode$D = (attributes) => attributes?.["w:cs"];
|
|
33550
|
-
const decode$
|
|
33551
|
-
const attrConfig$
|
|
33344
|
+
const decode$z = (attrs) => attrs?.cs;
|
|
33345
|
+
const attrConfig$f = Object.freeze({
|
|
33552
33346
|
xmlName: "w:cs",
|
|
33553
33347
|
sdName: "cs",
|
|
33554
33348
|
encode: encode$D,
|
|
33555
|
-
decode: decode$
|
|
33349
|
+
decode: decode$z
|
|
33556
33350
|
});
|
|
33557
33351
|
const encode$C = (attributes) => attributes?.["w:val"];
|
|
33558
|
-
const decode$
|
|
33559
|
-
const attrConfig$
|
|
33352
|
+
const decode$y = (attrs) => attrs?.value;
|
|
33353
|
+
const attrConfig$e = Object.freeze({
|
|
33560
33354
|
xmlName: "w:val",
|
|
33561
33355
|
sdName: "value",
|
|
33562
33356
|
encode: encode$C,
|
|
33563
|
-
decode: decode$
|
|
33357
|
+
decode: decode$y
|
|
33564
33358
|
});
|
|
33565
|
-
const validXmlAttributes$e = [attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e
|
|
33566
|
-
const XML_NODE_NAME$
|
|
33359
|
+
const validXmlAttributes$e = [attrConfig$i, attrConfig$h, attrConfig$g, attrConfig$f, attrConfig$e];
|
|
33360
|
+
const XML_NODE_NAME$p = "w:rFonts";
|
|
33567
33361
|
const SD_ATTR_KEY$a = "fontFamily";
|
|
33568
33362
|
const encode$B = (params2, encodedAttrs = {}) => {
|
|
33569
33363
|
const { nodes } = params2;
|
|
@@ -33591,13 +33385,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33591
33385
|
if (attributes["w:val"] === void 0) delete attributes["w:val"];
|
|
33592
33386
|
return {
|
|
33593
33387
|
type: "attr",
|
|
33594
|
-
xmlName: XML_NODE_NAME$
|
|
33388
|
+
xmlName: XML_NODE_NAME$p,
|
|
33595
33389
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
33596
33390
|
attributes
|
|
33597
33391
|
};
|
|
33598
33392
|
};
|
|
33599
33393
|
const config$m = {
|
|
33600
|
-
xmlName: XML_NODE_NAME$
|
|
33394
|
+
xmlName: XML_NODE_NAME$p,
|
|
33601
33395
|
sdNodeOrKeyName: SD_ATTR_KEY$a,
|
|
33602
33396
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33603
33397
|
encode: encode$B,
|
|
@@ -33605,15 +33399,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33605
33399
|
};
|
|
33606
33400
|
const translator$10 = NodeTranslator.from(config$m);
|
|
33607
33401
|
const encode$A = (attributes) => attributes?.["w:val"];
|
|
33608
|
-
const decode$
|
|
33609
|
-
const attrConfig$
|
|
33402
|
+
const decode$x = (attrs) => attrs?.styleId;
|
|
33403
|
+
const attrConfig$d = Object.freeze({
|
|
33610
33404
|
xmlName: "w:val",
|
|
33611
33405
|
sdName: "styleId",
|
|
33612
33406
|
encode: encode$A,
|
|
33613
|
-
decode: decode$
|
|
33407
|
+
decode: decode$x
|
|
33614
33408
|
});
|
|
33615
|
-
const validXmlAttributes$d = [attrConfig$
|
|
33616
|
-
const XML_NODE_NAME$
|
|
33409
|
+
const validXmlAttributes$d = [attrConfig$d];
|
|
33410
|
+
const XML_NODE_NAME$o = "w:rStyle";
|
|
33617
33411
|
const SD_ATTR_KEY$9 = "styleId";
|
|
33618
33412
|
const encode$z = (params2, encodedAttrs = {}) => {
|
|
33619
33413
|
const { nodes } = params2;
|
|
@@ -33621,13 +33415,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33621
33415
|
const value = encodedAttrs.styleId ?? node?.attributes?.["w:val"];
|
|
33622
33416
|
return {
|
|
33623
33417
|
type: "attr",
|
|
33624
|
-
xmlName: XML_NODE_NAME$
|
|
33418
|
+
xmlName: XML_NODE_NAME$o,
|
|
33625
33419
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
33626
33420
|
attributes: { "w:val": value ?? null }
|
|
33627
33421
|
};
|
|
33628
33422
|
};
|
|
33629
33423
|
const config$l = {
|
|
33630
|
-
xmlName: XML_NODE_NAME$
|
|
33424
|
+
xmlName: XML_NODE_NAME$o,
|
|
33631
33425
|
sdNodeOrKeyName: SD_ATTR_KEY$9,
|
|
33632
33426
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33633
33427
|
encode: encode$z,
|
|
@@ -33635,15 +33429,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33635
33429
|
};
|
|
33636
33430
|
const translator$$ = NodeTranslator.from(config$l);
|
|
33637
33431
|
const encode$y = (attributes) => attributes?.["w:val"];
|
|
33638
|
-
const decode$
|
|
33639
|
-
const attrConfig$
|
|
33432
|
+
const decode$w = (attrs) => attrs?.fontSize;
|
|
33433
|
+
const attrConfig$c = Object.freeze({
|
|
33640
33434
|
xmlName: "w:val",
|
|
33641
33435
|
sdName: "fontSize",
|
|
33642
33436
|
encode: encode$y,
|
|
33643
|
-
decode: decode$
|
|
33437
|
+
decode: decode$w
|
|
33644
33438
|
});
|
|
33645
|
-
const validXmlAttributes$c = [attrConfig$
|
|
33646
|
-
const XML_NODE_NAME$
|
|
33439
|
+
const validXmlAttributes$c = [attrConfig$c];
|
|
33440
|
+
const XML_NODE_NAME$n = "w:sz";
|
|
33647
33441
|
const SD_ATTR_KEY$8 = "fontSize";
|
|
33648
33442
|
const encode$x = (params2, encodedAttrs = {}) => {
|
|
33649
33443
|
const { nodes } = params2;
|
|
@@ -33651,13 +33445,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33651
33445
|
const value = encodedAttrs.fontSize ?? node?.attributes?.["w:val"];
|
|
33652
33446
|
return {
|
|
33653
33447
|
type: "attr",
|
|
33654
|
-
xmlName: XML_NODE_NAME$
|
|
33448
|
+
xmlName: XML_NODE_NAME$n,
|
|
33655
33449
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
33656
33450
|
attributes: { "w:val": value ?? null }
|
|
33657
33451
|
};
|
|
33658
33452
|
};
|
|
33659
33453
|
const config$k = {
|
|
33660
|
-
xmlName: XML_NODE_NAME$
|
|
33454
|
+
xmlName: XML_NODE_NAME$n,
|
|
33661
33455
|
sdNodeOrKeyName: SD_ATTR_KEY$8,
|
|
33662
33456
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33663
33457
|
encode: encode$x,
|
|
@@ -33665,15 +33459,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33665
33459
|
};
|
|
33666
33460
|
const translator$_ = NodeTranslator.from(config$k);
|
|
33667
33461
|
const encode$w = (attributes) => attributes?.["w:val"];
|
|
33668
|
-
const decode$
|
|
33669
|
-
const attrConfig$
|
|
33462
|
+
const decode$v = (attrs) => attrs?.fontSizeCs;
|
|
33463
|
+
const attrConfig$b = Object.freeze({
|
|
33670
33464
|
xmlName: "w:val",
|
|
33671
33465
|
sdName: "fontSizeCs",
|
|
33672
33466
|
encode: encode$w,
|
|
33673
|
-
decode: decode$
|
|
33467
|
+
decode: decode$v
|
|
33674
33468
|
});
|
|
33675
|
-
const validXmlAttributes$b = [attrConfig$
|
|
33676
|
-
const XML_NODE_NAME$
|
|
33469
|
+
const validXmlAttributes$b = [attrConfig$b];
|
|
33470
|
+
const XML_NODE_NAME$m = "w:szCs";
|
|
33677
33471
|
const SD_ATTR_KEY$7 = "fontSizeCs";
|
|
33678
33472
|
const encode$v = (params2, encodedAttrs = {}) => {
|
|
33679
33473
|
const { nodes } = params2;
|
|
@@ -33681,13 +33475,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33681
33475
|
const value = encodedAttrs.fontSizeCs ?? node?.attributes?.["w:val"];
|
|
33682
33476
|
return {
|
|
33683
33477
|
type: "attr",
|
|
33684
|
-
xmlName: XML_NODE_NAME$
|
|
33478
|
+
xmlName: XML_NODE_NAME$m,
|
|
33685
33479
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
33686
33480
|
attributes: { "w:val": value ?? null }
|
|
33687
33481
|
};
|
|
33688
33482
|
};
|
|
33689
33483
|
const config$j = {
|
|
33690
|
-
xmlName: XML_NODE_NAME$
|
|
33484
|
+
xmlName: XML_NODE_NAME$m,
|
|
33691
33485
|
sdNodeOrKeyName: SD_ATTR_KEY$7,
|
|
33692
33486
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33693
33487
|
encode: encode$v,
|
|
@@ -33827,7 +33621,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33827
33621
|
const intValue = parseInteger(value);
|
|
33828
33622
|
return intValue != void 0 ? String(intValue) : void 0;
|
|
33829
33623
|
};
|
|
33830
|
-
const XML_NODE_NAME$
|
|
33624
|
+
const XML_NODE_NAME$l = "w:caps";
|
|
33831
33625
|
const SD_ATTR_KEY$6 = "textTransform";
|
|
33832
33626
|
const encode$u = (params2, encodedAttrs = {}) => {
|
|
33833
33627
|
const { nodes } = params2;
|
|
@@ -33841,13 +33635,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33841
33635
|
}
|
|
33842
33636
|
return {
|
|
33843
33637
|
type: "attr",
|
|
33844
|
-
xmlName: XML_NODE_NAME$
|
|
33638
|
+
xmlName: XML_NODE_NAME$l,
|
|
33845
33639
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
33846
33640
|
attributes: { [SD_ATTR_KEY$6]: result }
|
|
33847
33641
|
};
|
|
33848
33642
|
};
|
|
33849
33643
|
const config$i = {
|
|
33850
|
-
xmlName: XML_NODE_NAME$
|
|
33644
|
+
xmlName: XML_NODE_NAME$l,
|
|
33851
33645
|
sdNodeOrKeyName: SD_ATTR_KEY$6,
|
|
33852
33646
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33853
33647
|
encode: encode$u,
|
|
@@ -33879,7 +33673,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33879
33673
|
attributes: { ...candidate.attributes || {} }
|
|
33880
33674
|
};
|
|
33881
33675
|
};
|
|
33882
|
-
const XML_NODE_NAME$
|
|
33676
|
+
const XML_NODE_NAME$k = "w:rPr";
|
|
33883
33677
|
const SD_ATTR_KEY$5 = "runProperties";
|
|
33884
33678
|
const encode$t = (params2) => {
|
|
33885
33679
|
const { nodes } = params2;
|
|
@@ -33916,7 +33710,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
33916
33710
|
};
|
|
33917
33711
|
};
|
|
33918
33712
|
const config$h = {
|
|
33919
|
-
xmlName: XML_NODE_NAME$
|
|
33713
|
+
xmlName: XML_NODE_NAME$k,
|
|
33920
33714
|
sdNodeOrKeyName: SD_ATTR_KEY$5,
|
|
33921
33715
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
33922
33716
|
encode: encode$t
|
|
@@ -34397,8 +34191,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34397
34191
|
}
|
|
34398
34192
|
return runs;
|
|
34399
34193
|
};
|
|
34400
|
-
const XML_NODE_NAME$
|
|
34401
|
-
const SD_NODE_NAME$
|
|
34194
|
+
const XML_NODE_NAME$j = "w:hyperlink";
|
|
34195
|
+
const SD_NODE_NAME$d = "link";
|
|
34402
34196
|
const _createAttributeHandler = (xmlName, sdName) => ({
|
|
34403
34197
|
xmlName,
|
|
34404
34198
|
sdName,
|
|
@@ -34452,7 +34246,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34452
34246
|
}
|
|
34453
34247
|
return href;
|
|
34454
34248
|
};
|
|
34455
|
-
function decode$
|
|
34249
|
+
function decode$u(params2) {
|
|
34456
34250
|
const { hyperlinkGroup = [params2.node] } = params2.extraParams || {};
|
|
34457
34251
|
const node = hyperlinkGroup[0];
|
|
34458
34252
|
const linkMark = node.marks.find((m2) => m2.type === "link");
|
|
@@ -34509,52 +34303,52 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34509
34303
|
return rId;
|
|
34510
34304
|
}
|
|
34511
34305
|
const config$g = {
|
|
34512
|
-
xmlName: XML_NODE_NAME$
|
|
34513
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
34306
|
+
xmlName: XML_NODE_NAME$j,
|
|
34307
|
+
sdNodeOrKeyName: SD_NODE_NAME$d,
|
|
34514
34308
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34515
34309
|
encode: encode$s,
|
|
34516
|
-
decode: decode$
|
|
34310
|
+
decode: decode$u,
|
|
34517
34311
|
attributes: validXmlAttributes$a
|
|
34518
34312
|
};
|
|
34519
34313
|
const translator$W = NodeTranslator.from(config$g);
|
|
34520
34314
|
const encode$r = (attributes) => {
|
|
34521
34315
|
return attributes["w:rsidR"];
|
|
34522
34316
|
};
|
|
34523
|
-
const decode$
|
|
34317
|
+
const decode$t = (attrs) => {
|
|
34524
34318
|
return attrs.rsidR;
|
|
34525
34319
|
};
|
|
34526
|
-
const attrConfig$
|
|
34320
|
+
const attrConfig$a = Object.freeze({
|
|
34527
34321
|
xmlName: "w:rsidR",
|
|
34528
34322
|
sdName: "rsidR",
|
|
34529
34323
|
encode: encode$r,
|
|
34530
|
-
decode: decode$
|
|
34324
|
+
decode: decode$t
|
|
34531
34325
|
});
|
|
34532
34326
|
const encode$q = (attributes) => {
|
|
34533
34327
|
return attributes["w:rsidRPr"];
|
|
34534
34328
|
};
|
|
34535
|
-
const decode$
|
|
34329
|
+
const decode$s = (attrs) => {
|
|
34536
34330
|
return attrs.rsidRPr;
|
|
34537
34331
|
};
|
|
34538
|
-
const attrConfig$
|
|
34332
|
+
const attrConfig$9 = Object.freeze({
|
|
34539
34333
|
xmlName: "w:rsidRPr",
|
|
34540
34334
|
sdName: "rsidRPr",
|
|
34541
34335
|
encode: encode$q,
|
|
34542
|
-
decode: decode$
|
|
34336
|
+
decode: decode$s
|
|
34543
34337
|
});
|
|
34544
34338
|
const encode$p = (attributes) => {
|
|
34545
34339
|
return attributes["w:rsidDel"];
|
|
34546
34340
|
};
|
|
34547
|
-
const decode$
|
|
34341
|
+
const decode$r = (attrs) => {
|
|
34548
34342
|
return attrs.rsidDel;
|
|
34549
34343
|
};
|
|
34550
|
-
const attrConfig$
|
|
34344
|
+
const attrConfig$8 = Object.freeze({
|
|
34551
34345
|
xmlName: "w:rsidDel",
|
|
34552
34346
|
sdName: "rsidDel",
|
|
34553
34347
|
encode: encode$p,
|
|
34554
|
-
decode: decode$
|
|
34348
|
+
decode: decode$r
|
|
34555
34349
|
});
|
|
34556
|
-
const validXmlAttributes$9 = [attrConfig$
|
|
34557
|
-
const XML_NODE_NAME$
|
|
34350
|
+
const validXmlAttributes$9 = [attrConfig$a, attrConfig$9, attrConfig$8];
|
|
34351
|
+
const XML_NODE_NAME$i = "w:r";
|
|
34558
34352
|
const SD_KEY_NAME = "run";
|
|
34559
34353
|
const encode$o = (params2, encodedAttrs = {}) => {
|
|
34560
34354
|
const { nodes = [], nodeListHandler } = params2 || {};
|
|
@@ -34604,7 +34398,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34604
34398
|
}
|
|
34605
34399
|
return runNodeResult;
|
|
34606
34400
|
};
|
|
34607
|
-
const decode$
|
|
34401
|
+
const decode$q = (params2, decodedAttrs = {}) => {
|
|
34608
34402
|
const { node } = params2 || {};
|
|
34609
34403
|
if (!node) return void 0;
|
|
34610
34404
|
const isLinkNode = node.marks?.some((m2) => m2.type === "link");
|
|
@@ -34663,7 +34457,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34663
34457
|
runs.push(trackedClone);
|
|
34664
34458
|
return;
|
|
34665
34459
|
}
|
|
34666
|
-
const runWrapper = { name: XML_NODE_NAME$
|
|
34460
|
+
const runWrapper = { name: XML_NODE_NAME$i, elements: [] };
|
|
34667
34461
|
applyBaseRunProps(runWrapper);
|
|
34668
34462
|
if (!Array.isArray(runWrapper.elements)) runWrapper.elements = [];
|
|
34669
34463
|
runWrapper.elements.push(cloneXmlNode(child));
|
|
@@ -34671,7 +34465,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34671
34465
|
});
|
|
34672
34466
|
const trackedRuns = ensureTrackedWrapper(runs, trackingMarksByType);
|
|
34673
34467
|
if (!trackedRuns.length) {
|
|
34674
|
-
const emptyRun = { name: XML_NODE_NAME$
|
|
34468
|
+
const emptyRun = { name: XML_NODE_NAME$i, elements: [] };
|
|
34675
34469
|
applyBaseRunProps(emptyRun);
|
|
34676
34470
|
trackedRuns.push(emptyRun);
|
|
34677
34471
|
}
|
|
@@ -34686,11 +34480,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34686
34480
|
return trackedRuns;
|
|
34687
34481
|
};
|
|
34688
34482
|
const config$f = {
|
|
34689
|
-
xmlName: XML_NODE_NAME$
|
|
34483
|
+
xmlName: XML_NODE_NAME$i,
|
|
34690
34484
|
sdNodeOrKeyName: SD_KEY_NAME,
|
|
34691
34485
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34692
34486
|
encode: encode$o,
|
|
34693
|
-
decode: decode$
|
|
34487
|
+
decode: decode$q,
|
|
34694
34488
|
attributes: validXmlAttributes$9
|
|
34695
34489
|
};
|
|
34696
34490
|
const translator$V = NodeTranslator.from(config$f);
|
|
@@ -34828,7 +34622,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34828
34622
|
});
|
|
34829
34623
|
const translator$K = NodeTranslator.from(createMeasurementPropertyHandler("w:wAfter"));
|
|
34830
34624
|
const translator$J = NodeTranslator.from(createMeasurementPropertyHandler("w:wBefore"));
|
|
34831
|
-
const XML_NODE_NAME$
|
|
34625
|
+
const XML_NODE_NAME$h = "w:trPr";
|
|
34832
34626
|
const SD_ATTR_KEY$4 = "tableRowProperties";
|
|
34833
34627
|
const encode$n = (params2) => {
|
|
34834
34628
|
const { nodes } = params2;
|
|
@@ -34844,12 +34638,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34844
34638
|
};
|
|
34845
34639
|
return {
|
|
34846
34640
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
34847
|
-
xmlName: XML_NODE_NAME$
|
|
34641
|
+
xmlName: XML_NODE_NAME$h,
|
|
34848
34642
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
34849
34643
|
attributes
|
|
34850
34644
|
};
|
|
34851
34645
|
};
|
|
34852
|
-
const decode$
|
|
34646
|
+
const decode$p = (params2) => {
|
|
34853
34647
|
const { tableRowProperties = {} } = params2.node.attrs || {};
|
|
34854
34648
|
const elements = decodeProperties(propertyTranslatorsBySdName$2, tableRowProperties);
|
|
34855
34649
|
const newNode = {
|
|
@@ -34883,15 +34677,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34883
34677
|
propertyTranslatorsBySdName$2[translator2.sdNodeOrKeyName] = translator2;
|
|
34884
34678
|
});
|
|
34885
34679
|
const config$e = {
|
|
34886
|
-
xmlName: XML_NODE_NAME$
|
|
34680
|
+
xmlName: XML_NODE_NAME$h,
|
|
34887
34681
|
sdNodeOrKeyName: SD_ATTR_KEY$4,
|
|
34888
34682
|
type: NodeTranslator.translatorTypes.ATTRIBUTE,
|
|
34889
34683
|
encode: encode$n,
|
|
34890
|
-
decode: decode$
|
|
34684
|
+
decode: decode$p
|
|
34891
34685
|
};
|
|
34892
34686
|
const translator$I = NodeTranslator.from(config$e);
|
|
34893
|
-
const XML_NODE_NAME$
|
|
34894
|
-
const SD_NODE_NAME$
|
|
34687
|
+
const XML_NODE_NAME$g = "w:tr";
|
|
34688
|
+
const SD_NODE_NAME$c = "tableRow";
|
|
34895
34689
|
const validXmlAttributes$8 = ["w:rsidDel", "w:rsidR", "w:rsidRPr", "w:rsidTr", "w14:paraId", "w14:textId"].map(
|
|
34896
34690
|
(xmlName) => createAttributeHandler(xmlName)
|
|
34897
34691
|
);
|
|
@@ -34935,7 +34729,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34935
34729
|
};
|
|
34936
34730
|
return newNode;
|
|
34937
34731
|
};
|
|
34938
|
-
const decode$
|
|
34732
|
+
const decode$o = (params2, decodedAttrs) => {
|
|
34939
34733
|
const { node } = params2;
|
|
34940
34734
|
const elements = translateChildNodes(params2);
|
|
34941
34735
|
if (node.attrs?.tableRowProperties) {
|
|
@@ -34960,11 +34754,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34960
34754
|
};
|
|
34961
34755
|
};
|
|
34962
34756
|
const config$d = {
|
|
34963
|
-
xmlName: XML_NODE_NAME$
|
|
34964
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
34757
|
+
xmlName: XML_NODE_NAME$g,
|
|
34758
|
+
sdNodeOrKeyName: SD_NODE_NAME$c,
|
|
34965
34759
|
type: NodeTranslator.translatorTypes.NODE,
|
|
34966
34760
|
encode: encode$m,
|
|
34967
|
-
decode: decode$
|
|
34761
|
+
decode: decode$o,
|
|
34968
34762
|
attributes: validXmlAttributes$8
|
|
34969
34763
|
};
|
|
34970
34764
|
const translator$H = NodeTranslator.from(config$d);
|
|
@@ -35047,7 +34841,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35047
34841
|
const translator$i = NodeTranslator.from(createMeasurementPropertyHandler("w:start", "marginStart"));
|
|
35048
34842
|
const translator$h = NodeTranslator.from(createBorderPropertyHandler("w:top"));
|
|
35049
34843
|
const translator$g = NodeTranslator.from(createMeasurementPropertyHandler("w:top", "marginTop"));
|
|
35050
|
-
const XML_NODE_NAME$
|
|
34844
|
+
const XML_NODE_NAME$f = "w:tblBorders";
|
|
35051
34845
|
const SD_ATTR_KEY$3 = "borders";
|
|
35052
34846
|
const encode$l = (params2) => {
|
|
35053
34847
|
const { nodes } = params2;
|
|
@@ -35055,7 +34849,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35055
34849
|
const attributes = encodeProperties(node, tblBordersTranslatorsByXmlName);
|
|
35056
34850
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
35057
34851
|
};
|
|
35058
|
-
const decode$
|
|
34852
|
+
const decode$n = (params2) => {
|
|
35059
34853
|
const { borders = {} } = params2.node.attrs || {};
|
|
35060
34854
|
const elements = decodeProperties(tblBordersTranslatorsBySdName, borders);
|
|
35061
34855
|
const newNode = {
|
|
@@ -35083,14 +34877,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35083
34877
|
tblBordersTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
35084
34878
|
});
|
|
35085
34879
|
const translator$f = NodeTranslator.from({
|
|
35086
|
-
xmlName: XML_NODE_NAME$
|
|
34880
|
+
xmlName: XML_NODE_NAME$f,
|
|
35087
34881
|
sdNodeOrKeyName: SD_ATTR_KEY$3,
|
|
35088
34882
|
type: NodeTranslator.translatorTypes.NODE,
|
|
35089
34883
|
attributes: [],
|
|
35090
34884
|
encode: encode$l,
|
|
35091
|
-
decode: decode$
|
|
34885
|
+
decode: decode$n
|
|
35092
34886
|
});
|
|
35093
|
-
const XML_NODE_NAME$
|
|
34887
|
+
const XML_NODE_NAME$e = "w:tblCellMar";
|
|
35094
34888
|
const SD_ATTR_KEY$2 = "cellMargins";
|
|
35095
34889
|
const encode$k = (params2) => {
|
|
35096
34890
|
const { nodes } = params2;
|
|
@@ -35098,11 +34892,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35098
34892
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName$1);
|
|
35099
34893
|
return Object.keys(attributes).length > 0 ? attributes : void 0;
|
|
35100
34894
|
};
|
|
35101
|
-
const decode$
|
|
34895
|
+
const decode$m = (params2) => {
|
|
35102
34896
|
const { cellMargins = {} } = params2.node.attrs || {};
|
|
35103
34897
|
const elements = decodeProperties(propertyTranslatorsBySdName$1, cellMargins);
|
|
35104
34898
|
const newNode = {
|
|
35105
|
-
name: XML_NODE_NAME$
|
|
34899
|
+
name: XML_NODE_NAME$e,
|
|
35106
34900
|
type: "element",
|
|
35107
34901
|
attributes: {},
|
|
35108
34902
|
elements
|
|
@@ -35124,26 +34918,26 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35124
34918
|
propertyTranslatorsBySdName$1[translator2.sdNodeOrKeyName] = translator2;
|
|
35125
34919
|
});
|
|
35126
34920
|
const translator$e = NodeTranslator.from({
|
|
35127
|
-
xmlName: XML_NODE_NAME$
|
|
34921
|
+
xmlName: XML_NODE_NAME$e,
|
|
35128
34922
|
sdNodeOrKeyName: SD_ATTR_KEY$2,
|
|
35129
34923
|
type: NodeTranslator.translatorTypes.NODE,
|
|
35130
34924
|
attributes: [],
|
|
35131
34925
|
encode: encode$k,
|
|
35132
|
-
decode: decode$
|
|
34926
|
+
decode: decode$m
|
|
35133
34927
|
});
|
|
35134
|
-
const XML_NODE_NAME$
|
|
34928
|
+
const XML_NODE_NAME$d = "w:tblPr";
|
|
35135
34929
|
const SD_ATTR_KEY$1 = "tableProperties";
|
|
35136
34930
|
const encode$j = (params2) => {
|
|
35137
34931
|
const { nodes } = params2;
|
|
35138
34932
|
const node = nodes[0];
|
|
35139
34933
|
const attributes = encodeProperties(node, propertyTranslatorsByXmlName);
|
|
35140
34934
|
return {
|
|
35141
|
-
xmlName: XML_NODE_NAME$
|
|
34935
|
+
xmlName: XML_NODE_NAME$d,
|
|
35142
34936
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
35143
34937
|
attributes
|
|
35144
34938
|
};
|
|
35145
34939
|
};
|
|
35146
|
-
const decode$
|
|
34940
|
+
const decode$l = (params2) => {
|
|
35147
34941
|
const { tableProperties = {} } = params2.node.attrs || {};
|
|
35148
34942
|
const elements = decodeProperties(propertyTranslatorsBySdName, tableProperties);
|
|
35149
34943
|
const newNode = {
|
|
@@ -35180,10 +34974,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35180
34974
|
propertyTranslatorsBySdName[translator2.sdNodeOrKeyName] = translator2;
|
|
35181
34975
|
});
|
|
35182
34976
|
const config$c = {
|
|
35183
|
-
xmlName: XML_NODE_NAME$
|
|
34977
|
+
xmlName: XML_NODE_NAME$d,
|
|
35184
34978
|
sdNodeOrKeyName: SD_ATTR_KEY$1,
|
|
35185
34979
|
encode: encode$j,
|
|
35186
|
-
decode: decode$
|
|
34980
|
+
decode: decode$l
|
|
35187
34981
|
};
|
|
35188
34982
|
const translator$d = NodeTranslator.from(config$c);
|
|
35189
34983
|
const translator$c = NodeTranslator.from(
|
|
@@ -35236,7 +35030,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35236
35030
|
}
|
|
35237
35031
|
return Math.max(fallbackWidthTwips, cellMinWidthTwips);
|
|
35238
35032
|
};
|
|
35239
|
-
const XML_NODE_NAME$
|
|
35033
|
+
const XML_NODE_NAME$c = "w:tblGrid";
|
|
35240
35034
|
const SD_ATTR_KEY = "grid";
|
|
35241
35035
|
const cellMinWidth = pixelsToTwips(10);
|
|
35242
35036
|
const encode$i = (params2) => {
|
|
@@ -35244,12 +35038,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35244
35038
|
const node = nodes[0];
|
|
35245
35039
|
const attributes = encodeProperties(node, { [translator$c.xmlName]: translator$c }, true);
|
|
35246
35040
|
return {
|
|
35247
|
-
xmlName: XML_NODE_NAME$
|
|
35041
|
+
xmlName: XML_NODE_NAME$c,
|
|
35248
35042
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
35249
35043
|
attributes
|
|
35250
35044
|
};
|
|
35251
35045
|
};
|
|
35252
|
-
const decode$
|
|
35046
|
+
const decode$k = (params2) => {
|
|
35253
35047
|
const { grid: rawGrid } = params2.node.attrs || {};
|
|
35254
35048
|
const grid = Array.isArray(rawGrid) ? rawGrid : [];
|
|
35255
35049
|
const { firstRow = {} } = params2.extraParams || {};
|
|
@@ -35306,17 +35100,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35306
35100
|
columnIndex++;
|
|
35307
35101
|
}
|
|
35308
35102
|
const newNode = {
|
|
35309
|
-
name: XML_NODE_NAME$
|
|
35103
|
+
name: XML_NODE_NAME$c,
|
|
35310
35104
|
attributes: {},
|
|
35311
35105
|
elements
|
|
35312
35106
|
};
|
|
35313
35107
|
return newNode;
|
|
35314
35108
|
};
|
|
35315
35109
|
const config$b = {
|
|
35316
|
-
xmlName: XML_NODE_NAME$
|
|
35110
|
+
xmlName: XML_NODE_NAME$c,
|
|
35317
35111
|
sdNodeOrKeyName: SD_ATTR_KEY,
|
|
35318
35112
|
encode: encode$i,
|
|
35319
|
-
decode: decode$
|
|
35113
|
+
decode: decode$k
|
|
35320
35114
|
};
|
|
35321
35115
|
const translator$b = NodeTranslator.from(config$b);
|
|
35322
35116
|
const DEFAULT_PAGE_WIDTH_TWIPS = 12240;
|
|
@@ -35381,8 +35175,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35381
35175
|
columnWidths: Array(columnCount).fill(fallbackColumnWidthPx)
|
|
35382
35176
|
};
|
|
35383
35177
|
};
|
|
35384
|
-
const XML_NODE_NAME$
|
|
35385
|
-
const SD_NODE_NAME$
|
|
35178
|
+
const XML_NODE_NAME$b = "w:tbl";
|
|
35179
|
+
const SD_NODE_NAME$b = "table";
|
|
35386
35180
|
const encode$h = (params2, encodedAttrs) => {
|
|
35387
35181
|
const { nodes } = params2;
|
|
35388
35182
|
const node = nodes[0];
|
|
@@ -35479,7 +35273,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35479
35273
|
attrs: encodedAttrs
|
|
35480
35274
|
};
|
|
35481
35275
|
};
|
|
35482
|
-
const decode$
|
|
35276
|
+
const decode$j = (params2, decodedAttrs) => {
|
|
35483
35277
|
params2.node = preProcessVerticalMergeCells(params2.node, params2);
|
|
35484
35278
|
const { node } = params2;
|
|
35485
35279
|
const elements = translateChildNodes(params2);
|
|
@@ -35579,11 +35373,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35579
35373
|
return stylesToReturn;
|
|
35580
35374
|
}
|
|
35581
35375
|
const config$a = {
|
|
35582
|
-
xmlName: XML_NODE_NAME$
|
|
35583
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
35376
|
+
xmlName: XML_NODE_NAME$b,
|
|
35377
|
+
sdNodeOrKeyName: SD_NODE_NAME$b,
|
|
35584
35378
|
type: NodeTranslator.translatorTypes.NODE,
|
|
35585
35379
|
encode: encode$h,
|
|
35586
|
-
decode: decode$
|
|
35380
|
+
decode: decode$j,
|
|
35587
35381
|
attributes: []
|
|
35588
35382
|
};
|
|
35589
35383
|
const translator$a = NodeTranslator.from(config$a);
|
|
@@ -35949,8 +35743,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35949
35743
|
if (left2 != null) elements.push({ name: "w:left", attributes: { "w:w": pixelsToTwips(left2) } });
|
|
35950
35744
|
return elements;
|
|
35951
35745
|
}
|
|
35952
|
-
const XML_NODE_NAME$
|
|
35953
|
-
const SD_NODE_NAME$
|
|
35746
|
+
const XML_NODE_NAME$a = "w:tc";
|
|
35747
|
+
const SD_NODE_NAME$a = "tableCell";
|
|
35954
35748
|
const validXmlAttributes$7 = [];
|
|
35955
35749
|
function encode$g(params2, encodedAttrs) {
|
|
35956
35750
|
const {
|
|
@@ -35979,7 +35773,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35979
35773
|
}
|
|
35980
35774
|
return schemaNode;
|
|
35981
35775
|
}
|
|
35982
|
-
function decode$
|
|
35776
|
+
function decode$i(params2, decodedAttrs) {
|
|
35983
35777
|
const translated = translateTableCell(params2);
|
|
35984
35778
|
if (decodedAttrs && Object.keys(decodedAttrs).length) {
|
|
35985
35779
|
translated.attributes = { ...translated.attributes || {}, ...decodedAttrs };
|
|
@@ -35987,11 +35781,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35987
35781
|
return translated;
|
|
35988
35782
|
}
|
|
35989
35783
|
const config$9 = {
|
|
35990
|
-
xmlName: XML_NODE_NAME$
|
|
35991
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
35784
|
+
xmlName: XML_NODE_NAME$a,
|
|
35785
|
+
sdNodeOrKeyName: SD_NODE_NAME$a,
|
|
35992
35786
|
type: NodeTranslator.translatorTypes.NODE,
|
|
35993
35787
|
encode: encode$g,
|
|
35994
|
-
decode: decode$
|
|
35788
|
+
decode: decode$i,
|
|
35995
35789
|
attributes: validXmlAttributes$7
|
|
35996
35790
|
};
|
|
35997
35791
|
const translator$9 = NodeTranslator.from(config$9);
|
|
@@ -36813,8 +36607,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36813
36607
|
elements: [...anchorElements, ...elementsWithWrap]
|
|
36814
36608
|
};
|
|
36815
36609
|
}
|
|
36816
|
-
const XML_NODE_NAME$
|
|
36817
|
-
const SD_NODE_NAME$
|
|
36610
|
+
const XML_NODE_NAME$9 = "wp:anchor";
|
|
36611
|
+
const SD_NODE_NAME$9 = ["image"];
|
|
36818
36612
|
const validXmlAttributes$6 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
36819
36613
|
function encode$f(params2) {
|
|
36820
36614
|
const { node } = params2.extraParams;
|
|
@@ -36823,7 +36617,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36823
36617
|
}
|
|
36824
36618
|
return handleAnchorNode(params2);
|
|
36825
36619
|
}
|
|
36826
|
-
function decode$
|
|
36620
|
+
function decode$h(params2) {
|
|
36827
36621
|
const { node } = params2;
|
|
36828
36622
|
if (!node || !node.type) {
|
|
36829
36623
|
return null;
|
|
@@ -36831,11 +36625,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36831
36625
|
return translateAnchorNode(params2);
|
|
36832
36626
|
}
|
|
36833
36627
|
const config$8 = {
|
|
36834
|
-
xmlName: XML_NODE_NAME$
|
|
36835
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
36628
|
+
xmlName: XML_NODE_NAME$9,
|
|
36629
|
+
sdNodeOrKeyName: SD_NODE_NAME$9,
|
|
36836
36630
|
type: NodeTranslator.translatorTypes.NODE,
|
|
36837
36631
|
encode: encode$f,
|
|
36838
|
-
decode: decode$
|
|
36632
|
+
decode: decode$h,
|
|
36839
36633
|
attributes: validXmlAttributes$6
|
|
36840
36634
|
};
|
|
36841
36635
|
const translator$8 = NodeTranslator.from(config$8);
|
|
@@ -36854,8 +36648,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36854
36648
|
elements: nodeElements.elements
|
|
36855
36649
|
};
|
|
36856
36650
|
}
|
|
36857
|
-
const XML_NODE_NAME$
|
|
36858
|
-
const SD_NODE_NAME$
|
|
36651
|
+
const XML_NODE_NAME$8 = "wp:inline";
|
|
36652
|
+
const SD_NODE_NAME$8 = ["image"];
|
|
36859
36653
|
const validXmlAttributes$5 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
36860
36654
|
function encode$e(params2) {
|
|
36861
36655
|
const { node } = params2.extraParams;
|
|
@@ -36864,7 +36658,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36864
36658
|
}
|
|
36865
36659
|
return handleInlineNode(params2);
|
|
36866
36660
|
}
|
|
36867
|
-
function decode$
|
|
36661
|
+
function decode$g(params2) {
|
|
36868
36662
|
const { node } = params2;
|
|
36869
36663
|
if (!node || !node.type) {
|
|
36870
36664
|
return null;
|
|
@@ -36872,16 +36666,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36872
36666
|
return translateInlineNode(params2);
|
|
36873
36667
|
}
|
|
36874
36668
|
const config$7 = {
|
|
36875
|
-
xmlName: XML_NODE_NAME$
|
|
36876
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
36669
|
+
xmlName: XML_NODE_NAME$8,
|
|
36670
|
+
sdNodeOrKeyName: SD_NODE_NAME$8,
|
|
36877
36671
|
type: NodeTranslator.translatorTypes.NODE,
|
|
36878
36672
|
encode: encode$e,
|
|
36879
|
-
decode: decode$
|
|
36673
|
+
decode: decode$g,
|
|
36880
36674
|
attributes: validXmlAttributes$5
|
|
36881
36675
|
};
|
|
36882
36676
|
const translator$7 = NodeTranslator.from(config$7);
|
|
36883
|
-
const XML_NODE_NAME$
|
|
36884
|
-
const SD_NODE_NAME$
|
|
36677
|
+
const XML_NODE_NAME$7 = "w:drawing";
|
|
36678
|
+
const SD_NODE_NAME$7 = [];
|
|
36885
36679
|
const validXmlAttributes$4 = [];
|
|
36886
36680
|
function encode$d(params2) {
|
|
36887
36681
|
const nodes = params2.nodes;
|
|
@@ -36897,7 +36691,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36897
36691
|
return translator2.encode({ ...params2, extraParams: { node: child } }) || acc;
|
|
36898
36692
|
}, null);
|
|
36899
36693
|
}
|
|
36900
|
-
function decode$
|
|
36694
|
+
function decode$f(params2) {
|
|
36901
36695
|
const { node } = params2;
|
|
36902
36696
|
if (!node || !node.type) {
|
|
36903
36697
|
return null;
|
|
@@ -36913,11 +36707,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36913
36707
|
);
|
|
36914
36708
|
}
|
|
36915
36709
|
const config$6 = {
|
|
36916
|
-
xmlName: XML_NODE_NAME$
|
|
36917
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
36710
|
+
xmlName: XML_NODE_NAME$7,
|
|
36711
|
+
sdNodeOrKeyName: SD_NODE_NAME$7,
|
|
36918
36712
|
type: NodeTranslator.translatorTypes.NODE,
|
|
36919
36713
|
encode: encode$d,
|
|
36920
|
-
decode: decode$
|
|
36714
|
+
decode: decode$f,
|
|
36921
36715
|
attributes: validXmlAttributes$4
|
|
36922
36716
|
};
|
|
36923
36717
|
const translator$6 = NodeTranslator.from(config$6);
|
|
@@ -38572,8 +38366,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38572
38366
|
};
|
|
38573
38367
|
return result;
|
|
38574
38368
|
}
|
|
38575
|
-
const XML_NODE_NAME$
|
|
38576
|
-
const SD_NODE_NAME$
|
|
38369
|
+
const XML_NODE_NAME$6 = "w:sdt";
|
|
38370
|
+
const SD_NODE_NAME$6 = ["fieldAnnotation", "structuredContent", "structuredContentBlock", "documentSection"];
|
|
38577
38371
|
const validXmlAttributes$3 = [];
|
|
38578
38372
|
function encode$c(params2) {
|
|
38579
38373
|
const nodes = params2.nodes;
|
|
@@ -38585,7 +38379,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38585
38379
|
const result = handler2(params2);
|
|
38586
38380
|
return result;
|
|
38587
38381
|
}
|
|
38588
|
-
function decode$
|
|
38382
|
+
function decode$e(params2) {
|
|
38589
38383
|
const { node } = params2;
|
|
38590
38384
|
if (!node || !node.type) {
|
|
38591
38385
|
return null;
|
|
@@ -38604,84 +38398,84 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38604
38398
|
return result;
|
|
38605
38399
|
}
|
|
38606
38400
|
const config$5 = {
|
|
38607
|
-
xmlName: XML_NODE_NAME$
|
|
38608
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38401
|
+
xmlName: XML_NODE_NAME$6,
|
|
38402
|
+
sdNodeOrKeyName: SD_NODE_NAME$6,
|
|
38609
38403
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38610
38404
|
encode: encode$c,
|
|
38611
|
-
decode: decode$
|
|
38405
|
+
decode: decode$e,
|
|
38612
38406
|
attributes: validXmlAttributes$3
|
|
38613
38407
|
};
|
|
38614
38408
|
const translator$5 = NodeTranslator.from(config$5);
|
|
38615
38409
|
const encode$b = (attributes) => {
|
|
38616
38410
|
return attributes["w:id"];
|
|
38617
38411
|
};
|
|
38618
|
-
const decode$
|
|
38412
|
+
const decode$d = (attrs) => {
|
|
38619
38413
|
return attrs.id;
|
|
38620
38414
|
};
|
|
38621
|
-
const attrConfig$
|
|
38415
|
+
const attrConfig$7 = Object.freeze({
|
|
38622
38416
|
xmlName: "w:id",
|
|
38623
38417
|
sdName: "id",
|
|
38624
38418
|
encode: encode$b,
|
|
38625
|
-
decode: decode$
|
|
38419
|
+
decode: decode$d
|
|
38626
38420
|
});
|
|
38627
38421
|
const encode$a = (attributes) => {
|
|
38628
38422
|
return attributes["w:name"];
|
|
38629
38423
|
};
|
|
38630
|
-
const decode$
|
|
38424
|
+
const decode$c = (attrs) => {
|
|
38631
38425
|
return attrs.name;
|
|
38632
38426
|
};
|
|
38633
|
-
const attrConfig$
|
|
38427
|
+
const attrConfig$6 = Object.freeze({
|
|
38634
38428
|
xmlName: "w:name",
|
|
38635
38429
|
sdName: "name",
|
|
38636
38430
|
encode: encode$a,
|
|
38637
|
-
decode: decode$
|
|
38431
|
+
decode: decode$c
|
|
38638
38432
|
});
|
|
38639
38433
|
const encode$9 = (attributes) => {
|
|
38640
38434
|
return attributes["w:colFirst"];
|
|
38641
38435
|
};
|
|
38642
|
-
const decode$
|
|
38436
|
+
const decode$b = (attrs) => {
|
|
38643
38437
|
return attrs.colFirst;
|
|
38644
38438
|
};
|
|
38645
|
-
const attrConfig$
|
|
38439
|
+
const attrConfig$5 = Object.freeze({
|
|
38646
38440
|
xmlName: "w:colFirst",
|
|
38647
38441
|
sdName: "colFirst",
|
|
38648
38442
|
encode: encode$9,
|
|
38649
|
-
decode: decode$
|
|
38443
|
+
decode: decode$b
|
|
38650
38444
|
});
|
|
38651
38445
|
const encode$8 = (attributes) => {
|
|
38652
38446
|
return attributes["w:colLast"];
|
|
38653
38447
|
};
|
|
38654
|
-
const decode$
|
|
38448
|
+
const decode$a = (attrs) => {
|
|
38655
38449
|
return attrs.colLast;
|
|
38656
38450
|
};
|
|
38657
|
-
const attrConfig$
|
|
38451
|
+
const attrConfig$4 = Object.freeze({
|
|
38658
38452
|
xmlName: "w:colLast",
|
|
38659
38453
|
sdName: "colLast",
|
|
38660
38454
|
encode: encode$8,
|
|
38661
|
-
decode: decode$
|
|
38455
|
+
decode: decode$a
|
|
38662
38456
|
});
|
|
38663
38457
|
const encode$7 = (attributes) => {
|
|
38664
38458
|
return attributes["w:displacedByCustomXml"];
|
|
38665
38459
|
};
|
|
38666
|
-
const decode$
|
|
38460
|
+
const decode$9 = (attrs) => {
|
|
38667
38461
|
return attrs.displacedByCustomXml;
|
|
38668
38462
|
};
|
|
38669
|
-
const attrConfig$
|
|
38463
|
+
const attrConfig$3 = Object.freeze({
|
|
38670
38464
|
xmlName: "w:displacedByCustomXml",
|
|
38671
38465
|
sdName: "displacedByCustomXml",
|
|
38672
38466
|
encode: encode$7,
|
|
38673
|
-
decode: decode$
|
|
38467
|
+
decode: decode$9
|
|
38674
38468
|
});
|
|
38675
|
-
const validXmlAttributes$2 = [attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3
|
|
38676
|
-
const XML_NODE_NAME$
|
|
38677
|
-
const SD_NODE_NAME$
|
|
38469
|
+
const validXmlAttributes$2 = [attrConfig$7, attrConfig$6, attrConfig$5, attrConfig$4, attrConfig$3];
|
|
38470
|
+
const XML_NODE_NAME$5 = "w:bookmarkStart";
|
|
38471
|
+
const SD_NODE_NAME$5 = "bookmarkStart";
|
|
38678
38472
|
const encode$6 = (params2, encodedAttrs = {}) => {
|
|
38679
38473
|
return {
|
|
38680
38474
|
type: "bookmarkStart",
|
|
38681
38475
|
attrs: encodedAttrs
|
|
38682
38476
|
};
|
|
38683
38477
|
};
|
|
38684
|
-
const decode$
|
|
38478
|
+
const decode$8 = (params2, decodedAttrs = {}) => {
|
|
38685
38479
|
const result = {
|
|
38686
38480
|
name: "w:bookmarkStart",
|
|
38687
38481
|
elements: []
|
|
@@ -38692,48 +38486,48 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38692
38486
|
return result;
|
|
38693
38487
|
};
|
|
38694
38488
|
const config$4 = {
|
|
38695
|
-
xmlName: XML_NODE_NAME$
|
|
38696
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38489
|
+
xmlName: XML_NODE_NAME$5,
|
|
38490
|
+
sdNodeOrKeyName: SD_NODE_NAME$5,
|
|
38697
38491
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38698
38492
|
encode: encode$6,
|
|
38699
|
-
decode: decode$
|
|
38493
|
+
decode: decode$8,
|
|
38700
38494
|
attributes: validXmlAttributes$2
|
|
38701
38495
|
};
|
|
38702
38496
|
const translator$4 = NodeTranslator.from(config$4);
|
|
38703
38497
|
const encode$5 = (attributes) => {
|
|
38704
38498
|
return attributes["w:id"];
|
|
38705
38499
|
};
|
|
38706
|
-
const decode$
|
|
38500
|
+
const decode$7 = (attrs) => {
|
|
38707
38501
|
return attrs.id;
|
|
38708
38502
|
};
|
|
38709
|
-
const attrConfig$
|
|
38503
|
+
const attrConfig$2 = Object.freeze({
|
|
38710
38504
|
xmlName: "w:id",
|
|
38711
38505
|
sdName: "id",
|
|
38712
38506
|
encode: encode$5,
|
|
38713
|
-
decode: decode$
|
|
38507
|
+
decode: decode$7
|
|
38714
38508
|
});
|
|
38715
38509
|
const encode$4 = (attributes) => {
|
|
38716
38510
|
return attributes["w:displacedByCustomXml"];
|
|
38717
38511
|
};
|
|
38718
|
-
const decode$
|
|
38512
|
+
const decode$6 = (attrs) => {
|
|
38719
38513
|
return attrs.displacedByCustomXml;
|
|
38720
38514
|
};
|
|
38721
|
-
const attrConfig = Object.freeze({
|
|
38515
|
+
const attrConfig$1 = Object.freeze({
|
|
38722
38516
|
xmlName: "w:displacedByCustomXml",
|
|
38723
38517
|
sdName: "displacedByCustomXml",
|
|
38724
38518
|
encode: encode$4,
|
|
38725
|
-
decode: decode$
|
|
38519
|
+
decode: decode$6
|
|
38726
38520
|
});
|
|
38727
|
-
const validXmlAttributes$1 = [attrConfig$
|
|
38728
|
-
const XML_NODE_NAME$
|
|
38729
|
-
const SD_NODE_NAME$
|
|
38521
|
+
const validXmlAttributes$1 = [attrConfig$2, attrConfig$1];
|
|
38522
|
+
const XML_NODE_NAME$4 = "w:bookmarkEnd";
|
|
38523
|
+
const SD_NODE_NAME$4 = "bookmarkEnd";
|
|
38730
38524
|
const encode$3 = (params2, encodedAttrs = {}) => {
|
|
38731
38525
|
return {
|
|
38732
38526
|
type: "bookmarkEnd",
|
|
38733
38527
|
attrs: encodedAttrs
|
|
38734
38528
|
};
|
|
38735
38529
|
};
|
|
38736
|
-
const decode$
|
|
38530
|
+
const decode$5 = (params2, decodedAttrs = {}) => {
|
|
38737
38531
|
const result = {
|
|
38738
38532
|
name: "w:bookmarkEnd",
|
|
38739
38533
|
elements: []
|
|
@@ -38744,16 +38538,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38744
38538
|
return result;
|
|
38745
38539
|
};
|
|
38746
38540
|
const config$3 = {
|
|
38747
|
-
xmlName: XML_NODE_NAME$
|
|
38748
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38541
|
+
xmlName: XML_NODE_NAME$4,
|
|
38542
|
+
sdNodeOrKeyName: SD_NODE_NAME$4,
|
|
38749
38543
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38750
38544
|
encode: encode$3,
|
|
38751
|
-
decode: decode$
|
|
38545
|
+
decode: decode$5,
|
|
38752
38546
|
attributes: validXmlAttributes$1
|
|
38753
38547
|
};
|
|
38754
38548
|
const translator$3 = NodeTranslator.from(config$3);
|
|
38755
|
-
const XML_NODE_NAME$
|
|
38756
|
-
const SD_NODE_NAME$
|
|
38549
|
+
const XML_NODE_NAME$3 = "mc:AlternateContent";
|
|
38550
|
+
const SD_NODE_NAME$3 = [];
|
|
38757
38551
|
const validXmlAttributes = [];
|
|
38758
38552
|
function encode$2(params2) {
|
|
38759
38553
|
const { nodeListHandler } = params2;
|
|
@@ -38775,7 +38569,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38775
38569
|
path: [...params2.path || [], wpsNode]
|
|
38776
38570
|
});
|
|
38777
38571
|
}
|
|
38778
|
-
function decode$
|
|
38572
|
+
function decode$4(params2) {
|
|
38779
38573
|
const { node } = params2;
|
|
38780
38574
|
const { drawingContent } = node.attrs;
|
|
38781
38575
|
const drawing = {
|
|
@@ -38793,14 +38587,78 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38793
38587
|
};
|
|
38794
38588
|
}
|
|
38795
38589
|
const config$2 = {
|
|
38796
|
-
xmlName: XML_NODE_NAME$
|
|
38797
|
-
sdNodeOrKeyName: SD_NODE_NAME$
|
|
38590
|
+
xmlName: XML_NODE_NAME$3,
|
|
38591
|
+
sdNodeOrKeyName: SD_NODE_NAME$3,
|
|
38798
38592
|
type: NodeTranslator.translatorTypes.NODE,
|
|
38799
38593
|
encode: encode$2,
|
|
38800
|
-
decode: decode$
|
|
38594
|
+
decode: decode$4,
|
|
38801
38595
|
attributes: validXmlAttributes
|
|
38802
38596
|
};
|
|
38803
38597
|
const translator$2 = NodeTranslator.from(config$2);
|
|
38598
|
+
const decode$3 = (attrs) => attrs?.["w:id"];
|
|
38599
|
+
const attrConfig = Object.freeze({
|
|
38600
|
+
xmlName: "w:id",
|
|
38601
|
+
sdName: "w:id",
|
|
38602
|
+
// We do not translate it from 'w:id' to 'id' when encoding, so the name is the same
|
|
38603
|
+
encode: () => {
|
|
38604
|
+
},
|
|
38605
|
+
decode: decode$3
|
|
38606
|
+
});
|
|
38607
|
+
const XML_NODE_NAME$2 = "w:commentRange";
|
|
38608
|
+
const SD_NODE_NAME$2 = "commentRange";
|
|
38609
|
+
const decode$2 = (params2, decodedAttrs) => {
|
|
38610
|
+
const { node, comments, commentsExportType, exportedCommentDefs } = params2;
|
|
38611
|
+
if (!node) return;
|
|
38612
|
+
if (!comments) return;
|
|
38613
|
+
if (exportedCommentDefs?.length === 0) return;
|
|
38614
|
+
if (commentsExportType === "clean") return;
|
|
38615
|
+
const commentNodeId = node.attrs["w:id"];
|
|
38616
|
+
const originalComment = comments.find((comment) => {
|
|
38617
|
+
return comment.commentId == commentNodeId;
|
|
38618
|
+
});
|
|
38619
|
+
if (!originalComment) return;
|
|
38620
|
+
const parentCommentId = originalComment.parentCommentId;
|
|
38621
|
+
const parentComment = comments.find(
|
|
38622
|
+
({ commentId, importedId }) => commentId === parentCommentId || importedId === parentCommentId
|
|
38623
|
+
);
|
|
38624
|
+
const isInternal = parentComment?.isInternal || originalComment.isInternal;
|
|
38625
|
+
if (commentsExportType === "external" && isInternal) return;
|
|
38626
|
+
const isResolved = !!originalComment.resolvedTime;
|
|
38627
|
+
if (isResolved) return;
|
|
38628
|
+
if (node.type !== "commentRangeStart" && node.type !== "commentRangeEnd") {
|
|
38629
|
+
return;
|
|
38630
|
+
}
|
|
38631
|
+
const { type: type2 } = node;
|
|
38632
|
+
const commentIndex = comments.findIndex((comment) => comment.commentId === originalComment.commentId);
|
|
38633
|
+
let commentSchema = getCommentSchema(type2, commentIndex);
|
|
38634
|
+
if (type2 === "commentRangeEnd") {
|
|
38635
|
+
const commentReference = {
|
|
38636
|
+
name: "w:r",
|
|
38637
|
+
elements: [{ name: "w:commentReference", attributes: { "w:id": String(commentIndex) } }]
|
|
38638
|
+
};
|
|
38639
|
+
commentSchema = [commentSchema, commentReference];
|
|
38640
|
+
}
|
|
38641
|
+
return commentSchema;
|
|
38642
|
+
};
|
|
38643
|
+
const getCommentSchema = (type2, commentIndex) => {
|
|
38644
|
+
return {
|
|
38645
|
+
name: `w:${type2}`,
|
|
38646
|
+
attributes: {
|
|
38647
|
+
"w:id": String(commentIndex)
|
|
38648
|
+
}
|
|
38649
|
+
};
|
|
38650
|
+
};
|
|
38651
|
+
const getConfig = (type2) => ({
|
|
38652
|
+
xmlName: `${XML_NODE_NAME$2}${type2}`,
|
|
38653
|
+
sdNodeOrKeyName: `${SD_NODE_NAME$2}${type2}`,
|
|
38654
|
+
type: NodeTranslator.translatorTypes.NODE,
|
|
38655
|
+
encode: () => {
|
|
38656
|
+
},
|
|
38657
|
+
decode: decode$2,
|
|
38658
|
+
attributes: [attrConfig]
|
|
38659
|
+
});
|
|
38660
|
+
const commentRangeStartTranslator = NodeTranslator.from(getConfig("Start"));
|
|
38661
|
+
const commentRangeEndTranslator = NodeTranslator.from(getConfig("End"));
|
|
38804
38662
|
const XML_NODE_NAME$1 = "sd:pageReference";
|
|
38805
38663
|
const SD_NODE_NAME$1 = "pageReference";
|
|
38806
38664
|
const encode$1 = (params2, _2) => {
|
|
@@ -39060,8 +38918,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39060
38918
|
tab: translator$17,
|
|
39061
38919
|
image: translator$6,
|
|
39062
38920
|
hardBreak: translator$19,
|
|
39063
|
-
commentRangeStart:
|
|
39064
|
-
commentRangeEnd:
|
|
38921
|
+
commentRangeStart: commentRangeStartTranslator,
|
|
38922
|
+
commentRangeEnd: commentRangeEndTranslator,
|
|
39065
38923
|
commentReference: () => null,
|
|
39066
38924
|
shapeContainer: translateShapeContainer,
|
|
39067
38925
|
shapeTextbox: translateShapeTextbox,
|
|
@@ -41805,6 +41663,176 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41805
41663
|
const evenOdd = elements.find((el) => el.name === "w:evenAndOddHeaders");
|
|
41806
41664
|
return !!evenOdd;
|
|
41807
41665
|
};
|
|
41666
|
+
const prepareCommentParaIds = (comment) => {
|
|
41667
|
+
const newComment = {
|
|
41668
|
+
...comment,
|
|
41669
|
+
commentParaId: generateRandom32BitHex()
|
|
41670
|
+
};
|
|
41671
|
+
return newComment;
|
|
41672
|
+
};
|
|
41673
|
+
const getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
41674
|
+
const translatedText = translateParagraphNode({ editor, node: comment.commentJSON });
|
|
41675
|
+
const attributes = {
|
|
41676
|
+
"w:id": String(commentId),
|
|
41677
|
+
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
41678
|
+
"w:email": comment.creatorEmail || comment.importedAuthor?.email,
|
|
41679
|
+
"w:date": toIsoNoFractional(comment.createdTime),
|
|
41680
|
+
"w:initials": getInitials(comment.creatorName),
|
|
41681
|
+
"w:done": comment.resolvedTime ? "1" : "0",
|
|
41682
|
+
"w15:paraId": comment.commentParaId,
|
|
41683
|
+
"custom:internalId": comment.commentId || comment.internalId,
|
|
41684
|
+
"custom:trackedChange": comment.trackedChange,
|
|
41685
|
+
"custom:trackedChangeText": comment.trackedChangeText || null,
|
|
41686
|
+
"custom:trackedChangeType": comment.trackedChangeType,
|
|
41687
|
+
"custom:trackedDeletedText": comment.deletedText || null
|
|
41688
|
+
};
|
|
41689
|
+
if (comment?.parentCommentId) {
|
|
41690
|
+
const parentComment = allComments.find((c2) => c2.commentId === comment.parentCommentId);
|
|
41691
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
41692
|
+
}
|
|
41693
|
+
return {
|
|
41694
|
+
type: "element",
|
|
41695
|
+
name: "w:comment",
|
|
41696
|
+
attributes,
|
|
41697
|
+
elements: [translatedText]
|
|
41698
|
+
};
|
|
41699
|
+
};
|
|
41700
|
+
const getInitials = (name) => {
|
|
41701
|
+
if (!name) return null;
|
|
41702
|
+
const preparedText = name.replace("(imported)", "").trim();
|
|
41703
|
+
const initials = preparedText.split(" ").map((word) => word[0]).join("");
|
|
41704
|
+
return initials;
|
|
41705
|
+
};
|
|
41706
|
+
const toIsoNoFractional = (unixMillis) => {
|
|
41707
|
+
const date = new Date(unixMillis || Date.now());
|
|
41708
|
+
return date.toISOString().replace(/\.\d{3}Z$/, "Z");
|
|
41709
|
+
};
|
|
41710
|
+
const updateCommentsXml = (commentDefs = [], commentsXml) => {
|
|
41711
|
+
const newCommentsXml = carbonCopy(commentsXml);
|
|
41712
|
+
commentDefs.forEach((commentDef) => {
|
|
41713
|
+
const elements = commentDef.elements[0].elements;
|
|
41714
|
+
elements.unshift(COMMENT_REF);
|
|
41715
|
+
const paraId = commentDef.attributes["w15:paraId"];
|
|
41716
|
+
commentDef.elements[0].attributes["w14:paraId"] = paraId;
|
|
41717
|
+
commentDef.attributes = {
|
|
41718
|
+
"w:id": commentDef.attributes["w:id"],
|
|
41719
|
+
"w:author": commentDef.attributes["w:author"],
|
|
41720
|
+
"w:email": commentDef.attributes["w:email"],
|
|
41721
|
+
"w:date": commentDef.attributes["w:date"],
|
|
41722
|
+
"w:initials": commentDef.attributes["w:initials"],
|
|
41723
|
+
"custom:internalId": commentDef.attributes["custom:internalId"],
|
|
41724
|
+
"custom:trackedChange": commentDef.attributes["custom:trackedChange"],
|
|
41725
|
+
"custom:trackedChangeText": commentDef.attributes["custom:trackedChangeText"],
|
|
41726
|
+
"custom:trackedChangeType": commentDef.attributes["custom:trackedChangeType"],
|
|
41727
|
+
"custom:trackedDeletedText": commentDef.attributes["custom:trackedDeletedText"],
|
|
41728
|
+
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
41729
|
+
};
|
|
41730
|
+
});
|
|
41731
|
+
newCommentsXml.elements[0].elements = commentDefs;
|
|
41732
|
+
return newCommentsXml;
|
|
41733
|
+
};
|
|
41734
|
+
const updateCommentsExtendedXml = (comments = [], commentsExtendedXml) => {
|
|
41735
|
+
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
41736
|
+
const commentsEx = comments.map((comment) => {
|
|
41737
|
+
const attributes = {
|
|
41738
|
+
"w15:paraId": comment.commentParaId,
|
|
41739
|
+
"w15:done": comment.resolvedTime ? "1" : "0"
|
|
41740
|
+
};
|
|
41741
|
+
const parentId = comment.parentCommentId;
|
|
41742
|
+
if (parentId) {
|
|
41743
|
+
const parentComment = comments.find((c2) => c2.commentId === parentId);
|
|
41744
|
+
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
41745
|
+
}
|
|
41746
|
+
return {
|
|
41747
|
+
type: "element",
|
|
41748
|
+
name: "w15:commentEx",
|
|
41749
|
+
attributes
|
|
41750
|
+
};
|
|
41751
|
+
});
|
|
41752
|
+
xmlCopy.elements[0].elements = commentsEx;
|
|
41753
|
+
return xmlCopy;
|
|
41754
|
+
};
|
|
41755
|
+
const updateCommentsIdsAndExtensible = (comments = [], commentsIds, extensible) => {
|
|
41756
|
+
const documentIdsUpdated = carbonCopy(commentsIds);
|
|
41757
|
+
const extensibleUpdated = carbonCopy(extensible);
|
|
41758
|
+
documentIdsUpdated.elements[0].elements = [];
|
|
41759
|
+
extensibleUpdated.elements[0].elements = [];
|
|
41760
|
+
comments.forEach((comment) => {
|
|
41761
|
+
const newDurableId = generateRandom32BitHex();
|
|
41762
|
+
const newCommentIdDef = {
|
|
41763
|
+
type: "element",
|
|
41764
|
+
name: "w16cid:commentId",
|
|
41765
|
+
attributes: {
|
|
41766
|
+
"w16cid:paraId": comment.commentParaId,
|
|
41767
|
+
"w16cid:durableId": newDurableId
|
|
41768
|
+
}
|
|
41769
|
+
};
|
|
41770
|
+
documentIdsUpdated.elements[0].elements.push(newCommentIdDef);
|
|
41771
|
+
const newExtensible = {
|
|
41772
|
+
type: "element",
|
|
41773
|
+
name: "w16cex:commentExtensible",
|
|
41774
|
+
attributes: {
|
|
41775
|
+
"w16cex:durableId": newDurableId,
|
|
41776
|
+
"w16cex:dateUtc": toIsoNoFractional()
|
|
41777
|
+
}
|
|
41778
|
+
};
|
|
41779
|
+
extensibleUpdated.elements[0].elements.push(newExtensible);
|
|
41780
|
+
});
|
|
41781
|
+
return {
|
|
41782
|
+
documentIdsUpdated,
|
|
41783
|
+
extensibleUpdated
|
|
41784
|
+
};
|
|
41785
|
+
};
|
|
41786
|
+
const generateConvertedXmlWithCommentFiles = (convertedXml) => {
|
|
41787
|
+
const newXml = carbonCopy(convertedXml);
|
|
41788
|
+
newXml["word/comments.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_XML_DEF;
|
|
41789
|
+
newXml["word/commentsExtended.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENDED_XML_DEF;
|
|
41790
|
+
newXml["word/commentsExtensible.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_EXTENSIBLE_XML_DEF;
|
|
41791
|
+
newXml["word/commentsIds.xml"] = COMMENTS_XML_DEFINITIONS.COMMENTS_IDS_XML_DEF;
|
|
41792
|
+
newXml["[Content_Types].xml"] = COMMENTS_XML_DEFINITIONS.CONTENT_TYPES;
|
|
41793
|
+
return newXml;
|
|
41794
|
+
};
|
|
41795
|
+
const removeCommentsFilesFromConvertedXml = (convertedXml) => {
|
|
41796
|
+
const updatedXml = carbonCopy(convertedXml);
|
|
41797
|
+
delete updatedXml["word/comments.xml"];
|
|
41798
|
+
delete updatedXml["word/commentsExtended.xml"];
|
|
41799
|
+
delete updatedXml["word/commentsExtensible.xml"];
|
|
41800
|
+
delete updatedXml["word/commentsIds.xml"];
|
|
41801
|
+
return updatedXml;
|
|
41802
|
+
};
|
|
41803
|
+
const generateRelationship = (target) => {
|
|
41804
|
+
const relsDefault = COMMENTS_XML_DEFINITIONS.DOCUMENT_RELS_XML_DEF.elements[0].elements;
|
|
41805
|
+
const rel = relsDefault.find((rel2) => rel2.attributes.Target === target);
|
|
41806
|
+
return { ...rel };
|
|
41807
|
+
};
|
|
41808
|
+
const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithParaIds, exportType }) => {
|
|
41809
|
+
const relationships = [];
|
|
41810
|
+
if (exportType === "clean") {
|
|
41811
|
+
const documentXml = removeCommentsFilesFromConvertedXml(convertedXml);
|
|
41812
|
+
return { documentXml, relationships };
|
|
41813
|
+
}
|
|
41814
|
+
const updatedXml = generateConvertedXmlWithCommentFiles(convertedXml);
|
|
41815
|
+
updatedXml["word/comments.xml"] = updateCommentsXml(defs, updatedXml["word/comments.xml"]);
|
|
41816
|
+
relationships.push(generateRelationship("comments.xml"));
|
|
41817
|
+
updatedXml["word/commentsExtended.xml"] = updateCommentsExtendedXml(
|
|
41818
|
+
commentsWithParaIds,
|
|
41819
|
+
updatedXml["word/commentsExtended.xml"]
|
|
41820
|
+
);
|
|
41821
|
+
relationships.push(generateRelationship("commentsExtended.xml"));
|
|
41822
|
+
const { documentIdsUpdated, extensibleUpdated } = updateCommentsIdsAndExtensible(
|
|
41823
|
+
commentsWithParaIds,
|
|
41824
|
+
updatedXml["word/commentsIds.xml"],
|
|
41825
|
+
updatedXml["word/commentsExtensible.xml"]
|
|
41826
|
+
);
|
|
41827
|
+
updatedXml["word/commentsIds.xml"] = documentIdsUpdated;
|
|
41828
|
+
updatedXml["word/commentsExtensible.xml"] = extensibleUpdated;
|
|
41829
|
+
relationships.push(generateRelationship("commentsIds.xml"));
|
|
41830
|
+
relationships.push(generateRelationship("commentsExtensible.xml"));
|
|
41831
|
+
return {
|
|
41832
|
+
relationships,
|
|
41833
|
+
documentXml: updatedXml
|
|
41834
|
+
};
|
|
41835
|
+
};
|
|
41808
41836
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
41809
41837
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
41810
41838
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
@@ -62519,17 +62547,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62519
62547
|
});
|
|
62520
62548
|
return result;
|
|
62521
62549
|
}
|
|
62522
|
-
function getStructuredContentTagsByAlias(aliasOrAliases, state2) {
|
|
62523
|
-
const result = findChildren$5(state2.doc, (node) => {
|
|
62524
|
-
const isStructuredContent = ["structuredContent", "structuredContentBlock"].includes(node.type.name);
|
|
62525
|
-
if (Array.isArray(aliasOrAliases)) {
|
|
62526
|
-
return isStructuredContent && aliasOrAliases.includes(node.attrs.alias);
|
|
62527
|
-
} else {
|
|
62528
|
-
return isStructuredContent && node.attrs.alias === aliasOrAliases;
|
|
62529
|
-
}
|
|
62530
|
-
});
|
|
62531
|
-
return result;
|
|
62532
|
-
}
|
|
62533
62550
|
function getStructuredContentTags(state2) {
|
|
62534
62551
|
const result = findChildren$5(state2.doc, (node) => {
|
|
62535
62552
|
return node.type.name === "structuredContent" || node.type.name === "structuredContentBlock";
|
|
@@ -62549,7 +62566,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62549
62566
|
getStructuredContentBlockTags,
|
|
62550
62567
|
getStructuredContentInlineTags,
|
|
62551
62568
|
getStructuredContentTags,
|
|
62552
|
-
getStructuredContentTagsByAlias,
|
|
62553
62569
|
getStructuredContentTagsById
|
|
62554
62570
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
62555
62571
|
const STRUCTURED_CONTENT_NAMES = ["structuredContent", "structuredContentBlock"];
|
|
@@ -62682,58 +62698,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62682
62698
|
}
|
|
62683
62699
|
return true;
|
|
62684
62700
|
},
|
|
62685
|
-
/**
|
|
62686
|
-
* Updates all structured content fields with the same alias.
|
|
62687
|
-
* Unlike IDs (which are unique), aliases can be shared across multiple fields.
|
|
62688
|
-
* This will update every field that matches the given alias.
|
|
62689
|
-
* If any updated node does not match the schema, no updates will be applied.
|
|
62690
|
-
* @category Command
|
|
62691
|
-
* @param {string | string[]} alias - Shared identifier for fields (e.g., "customer_name")
|
|
62692
|
-
* @param {StructuredContentUpdate} options
|
|
62693
|
-
*/
|
|
62694
|
-
updateStructuredContentByAlias: (alias, options = {}) => ({ editor, dispatch, state: state2, tr }) => {
|
|
62695
|
-
const structuredContentTags = getStructuredContentTagsByAlias(alias, state2);
|
|
62696
|
-
if (!structuredContentTags.length) {
|
|
62697
|
-
return true;
|
|
62698
|
-
}
|
|
62699
|
-
const { schema } = editor;
|
|
62700
|
-
const createContent = (node) => {
|
|
62701
|
-
if (options.text) {
|
|
62702
|
-
return schema.text(options.text);
|
|
62703
|
-
}
|
|
62704
|
-
if (options.html) {
|
|
62705
|
-
const html = htmlHandler(options.html, editor);
|
|
62706
|
-
const doc2 = DOMParser$1.fromSchema(schema).parse(html);
|
|
62707
|
-
return doc2.content;
|
|
62708
|
-
}
|
|
62709
|
-
if (options.json) {
|
|
62710
|
-
return schema.nodeFromJSON(options.json);
|
|
62711
|
-
}
|
|
62712
|
-
return node.content;
|
|
62713
|
-
};
|
|
62714
|
-
for (const { node } of structuredContentTags) {
|
|
62715
|
-
const content = createContent(node);
|
|
62716
|
-
const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
|
|
62717
|
-
try {
|
|
62718
|
-
updatedNode.check();
|
|
62719
|
-
} catch {
|
|
62720
|
-
console.error("Updated node does not conform to the schema");
|
|
62721
|
-
return false;
|
|
62722
|
-
}
|
|
62723
|
-
}
|
|
62724
|
-
if (dispatch) {
|
|
62725
|
-
structuredContentTags.forEach(({ pos, node }) => {
|
|
62726
|
-
const mappedPos = tr.mapping.map(pos);
|
|
62727
|
-
const currentNode = tr.doc.nodeAt(mappedPos);
|
|
62728
|
-
if (currentNode && node.eq(currentNode)) {
|
|
62729
|
-
const content = createContent(node);
|
|
62730
|
-
const updatedNode = node.type.create({ ...node.attrs, ...options.attrs }, content, node.marks);
|
|
62731
|
-
tr.replaceWith(mappedPos, mappedPos + node.nodeSize, updatedNode);
|
|
62732
|
-
}
|
|
62733
|
-
});
|
|
62734
|
-
}
|
|
62735
|
-
return true;
|
|
62736
|
-
},
|
|
62737
62701
|
/**
|
|
62738
62702
|
* Removes a structured content.
|
|
62739
62703
|
* @category Command
|
|
@@ -73938,11 +73902,25 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
73938
73902
|
const matchingChange = trackedChanges[changeIndex];
|
|
73939
73903
|
const prev = trackedChanges[changeIndex - 1];
|
|
73940
73904
|
const next = trackedChanges[changeIndex + 1];
|
|
73905
|
+
const matchingMarkType = matchingChange.mark.type.name;
|
|
73941
73906
|
let linkedChange;
|
|
73942
|
-
if (prev && matchingChange.
|
|
73943
|
-
|
|
73944
|
-
|
|
73945
|
-
|
|
73907
|
+
if (prev && matchingChange.from === prev.to) {
|
|
73908
|
+
const prevMarkType = prev.mark.type.name;
|
|
73909
|
+
if (matchingMarkType === TrackDeleteMarkName && prevMarkType === TrackInsertMarkName || matchingMarkType === TrackInsertMarkName && prevMarkType === TrackDeleteMarkName) {
|
|
73910
|
+
const hasContentBetween = state2.doc.textBetween(prev.from, matchingChange.to, "\n").length > prev.to - prev.from + (matchingChange.to - matchingChange.from);
|
|
73911
|
+
if (!hasContentBetween) {
|
|
73912
|
+
linkedChange = prev;
|
|
73913
|
+
}
|
|
73914
|
+
}
|
|
73915
|
+
}
|
|
73916
|
+
if (!linkedChange && next && matchingChange.to === next.from) {
|
|
73917
|
+
const nextMarkType = next.mark.type.name;
|
|
73918
|
+
if (matchingMarkType === TrackDeleteMarkName && nextMarkType === TrackInsertMarkName || matchingMarkType === TrackInsertMarkName && nextMarkType === TrackDeleteMarkName) {
|
|
73919
|
+
const hasContentBetween = state2.doc.textBetween(matchingChange.from, next.to, "\n").length > matchingChange.to - matchingChange.from + (next.to - next.from);
|
|
73920
|
+
if (!hasContentBetween) {
|
|
73921
|
+
linkedChange = next;
|
|
73922
|
+
}
|
|
73923
|
+
}
|
|
73946
73924
|
}
|
|
73947
73925
|
return [matchingChange, linkedChange].filter(Boolean);
|
|
73948
73926
|
};
|
|
@@ -91903,6 +91881,7 @@ ${style2}
|
|
|
91903
91881
|
type: "dropdown",
|
|
91904
91882
|
name: "tableActions",
|
|
91905
91883
|
command: "executeTableCommand",
|
|
91884
|
+
tooltip: toolbarTexts2.tableActions,
|
|
91906
91885
|
icon: toolbarIcons2.tableActions,
|
|
91907
91886
|
hideLabel: true,
|
|
91908
91887
|
disabled: true,
|
|
@@ -92601,6 +92580,7 @@ ${style2}
|
|
|
92601
92580
|
link: "Link",
|
|
92602
92581
|
image: "Image",
|
|
92603
92582
|
table: "Insert table",
|
|
92583
|
+
tableActions: "Table options",
|
|
92604
92584
|
addRowBefore: "Insert row above",
|
|
92605
92585
|
addRowAfter: "Insert row below",
|
|
92606
92586
|
addColumnBefore: "Insert column left",
|
|
@@ -95058,7 +95038,9 @@ ${style2}
|
|
|
95058
95038
|
"w:wAfter": translator$K,
|
|
95059
95039
|
"w:wBefore": translator$J,
|
|
95060
95040
|
"wp:anchor": translator$8,
|
|
95061
|
-
"wp:inline": translator$7
|
|
95041
|
+
"wp:inline": translator$7,
|
|
95042
|
+
"w:commentRangeStart": commentRangeStartTranslator,
|
|
95043
|
+
"w:commentRangeEnd": commentRangeEndTranslator
|
|
95062
95044
|
});
|
|
95063
95045
|
const baseHandlers = {
|
|
95064
95046
|
...runPropertyTranslators,
|
|
@@ -98206,7 +98188,7 @@ ${reason}`);
|
|
|
98206
98188
|
const documentsWithConverations = computed(() => {
|
|
98207
98189
|
return superdocStore.documents;
|
|
98208
98190
|
});
|
|
98209
|
-
const
|
|
98191
|
+
const getConfig2 = computed(() => {
|
|
98210
98192
|
return commentsConfig;
|
|
98211
98193
|
});
|
|
98212
98194
|
const getCommentLocation = (selection, parent) => {
|
|
@@ -98461,7 +98443,7 @@ ${reason}`);
|
|
|
98461
98443
|
skipSelectionUpdate,
|
|
98462
98444
|
isFloatingCommentsReady,
|
|
98463
98445
|
// Getters
|
|
98464
|
-
getConfig,
|
|
98446
|
+
getConfig: getConfig2,
|
|
98465
98447
|
documentsWithConverations,
|
|
98466
98448
|
getGroupedComments,
|
|
98467
98449
|
getFloatingComments,
|
|
@@ -110141,7 +110123,7 @@ ${style2}
|
|
|
110141
110123
|
const { addComment, cancelComment, deleteComment, removePendingComment } = commentsStore;
|
|
110142
110124
|
const {
|
|
110143
110125
|
suppressInternalExternal,
|
|
110144
|
-
getConfig,
|
|
110126
|
+
getConfig: getConfig2,
|
|
110145
110127
|
activeComment,
|
|
110146
110128
|
floatingCommentsOffset,
|
|
110147
110129
|
pendingComment,
|
|
@@ -110158,14 +110140,14 @@ ${style2}
|
|
|
110158
110140
|
const commentDialogElement = ref$1(null);
|
|
110159
110141
|
const isActiveComment = computed(() => activeComment.value === props.comment.commentId);
|
|
110160
110142
|
const showButtons = computed(() => {
|
|
110161
|
-
return !
|
|
110143
|
+
return !getConfig2.readOnly && isActiveComment.value && !props.comment.resolvedTime && editingCommentId.value !== props.comment.commentId;
|
|
110162
110144
|
});
|
|
110163
110145
|
const showSeparator = computed(() => (index2) => {
|
|
110164
110146
|
if (showInputSection.value && index2 === comments.value.length - 1) return true;
|
|
110165
110147
|
return comments.value.length > 1 && index2 !== comments.value.length - 1;
|
|
110166
110148
|
});
|
|
110167
110149
|
const showInputSection = computed(() => {
|
|
110168
|
-
return !
|
|
110150
|
+
return !getConfig2.readOnly && isActiveComment.value && !props.comment.resolvedTime && editingCommentId.value !== props.comment.commentId;
|
|
110169
110151
|
});
|
|
110170
110152
|
const comments = computed(() => {
|
|
110171
110153
|
const parentComment = props.comment;
|
|
@@ -110177,7 +110159,7 @@ ${style2}
|
|
|
110177
110159
|
});
|
|
110178
110160
|
const isInternalDropdownDisabled = computed(() => {
|
|
110179
110161
|
if (props.comment.resolvedTime) return true;
|
|
110180
|
-
return
|
|
110162
|
+
return getConfig2.value.readOnly;
|
|
110181
110163
|
});
|
|
110182
110164
|
const isEditingThisComment = computed(() => (comment) => {
|
|
110183
110165
|
return editingCommentId.value === comment.commentId;
|
|
@@ -110353,7 +110335,7 @@ ${style2}
|
|
|
110353
110335
|
class: "conversation-item"
|
|
110354
110336
|
}, [
|
|
110355
110337
|
createVNode(CommentHeader, {
|
|
110356
|
-
config: unref(
|
|
110338
|
+
config: unref(getConfig2),
|
|
110357
110339
|
timestamp: getProcessedDate(comment.createdTime),
|
|
110358
110340
|
comment,
|
|
110359
110341
|
onResolve: handleResolve,
|
|
@@ -110386,7 +110368,7 @@ ${style2}
|
|
|
110386
110368
|
}, null, 8, _hoisted_12)) : unref(isDebugging2) && !isEditingThisComment.value(comment) ? (openBlock(), createElementBlock("div", _hoisted_13, toDisplayString(unref(editorCommentPositions)[comment.importedId !== void 0 ? comment.importedId : comment.commentId]?.bounds), 1)) : (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
110387
110369
|
createVNode(CommentInput, {
|
|
110388
110370
|
users: usersFiltered.value,
|
|
110389
|
-
config: unref(
|
|
110371
|
+
config: unref(getConfig2),
|
|
110390
110372
|
"include-header": false,
|
|
110391
110373
|
comment
|
|
110392
110374
|
}, null, 8, ["users", "config", "comment"]),
|
|
@@ -110405,15 +110387,15 @@ ${style2}
|
|
|
110405
110387
|
showSeparator.value(index2) ? (openBlock(), createElementBlock("div", _hoisted_18)) : createCommentVNode("", true)
|
|
110406
110388
|
]);
|
|
110407
110389
|
}), 128)),
|
|
110408
|
-
showInputSection.value && !unref(
|
|
110390
|
+
showInputSection.value && !unref(getConfig2).readOnly ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
110409
110391
|
createVNode(CommentInput, {
|
|
110410
110392
|
ref_key: "commentInput",
|
|
110411
110393
|
ref: commentInput,
|
|
110412
110394
|
users: usersFiltered.value,
|
|
110413
|
-
config: unref(
|
|
110395
|
+
config: unref(getConfig2),
|
|
110414
110396
|
comment: props.comment
|
|
110415
110397
|
}, null, 8, ["users", "config", "comment"]),
|
|
110416
|
-
showButtons.value && !unref(
|
|
110398
|
+
showButtons.value && !unref(getConfig2).readOnly ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
110417
110399
|
createBaseVNode("button", {
|
|
110418
110400
|
class: "sd-button",
|
|
110419
110401
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => unref(cancelComment) && unref(cancelComment)(...args), ["stop", "prevent"]))
|
|
@@ -111441,7 +111423,7 @@ ${style2}
|
|
|
111441
111423
|
} = storeToRefs(superdocStore);
|
|
111442
111424
|
const { handlePageReady, modules, user, getDocument } = superdocStore;
|
|
111443
111425
|
const {
|
|
111444
|
-
getConfig,
|
|
111426
|
+
getConfig: getConfig2,
|
|
111445
111427
|
documentsWithConverations,
|
|
111446
111428
|
commentsList,
|
|
111447
111429
|
pendingComment,
|
|
@@ -111706,11 +111688,11 @@ ${style2}
|
|
|
111706
111688
|
});
|
|
111707
111689
|
const showToolsFloatingMenu = computed(() => {
|
|
111708
111690
|
if (!isCommentsEnabled.value) return false;
|
|
111709
|
-
return toolsMenuPosition.top && !
|
|
111691
|
+
return toolsMenuPosition.top && !getConfig2.value?.readOnly;
|
|
111710
111692
|
});
|
|
111711
111693
|
computed(() => {
|
|
111712
111694
|
if (!isCommentsEnabled.value) return false;
|
|
111713
|
-
return !
|
|
111695
|
+
return !getConfig2.value?.readOnly && selectionPosition.value;
|
|
111714
111696
|
});
|
|
111715
111697
|
watch(showCommentsSidebar, (value) => {
|
|
111716
111698
|
proxy.$superdoc.broadcastSidebarToggle(value);
|