docx 8.5.0 → 9.0.0
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/build/index.cjs +283 -153
- package/build/index.d.ts +2997 -5
- package/build/index.iife.js +283 -153
- package/build/index.mjs +283 -153
- package/build/index.umd.js +283 -153
- package/package.json +4 -4
- package/build/export/formatter.d.ts +0 -4
- package/build/export/formatter.spec.d.ts +0 -1
- package/build/export/index.d.ts +0 -1
- package/build/export/packer/image-replacer.d.ts +0 -5
- package/build/export/packer/image-replacer.spec.d.ts +0 -1
- package/build/export/packer/next-compiler.d.ts +0 -11
- package/build/export/packer/next-compiler.spec.d.ts +0 -1
- package/build/export/packer/numbering-replacer.d.ts +0 -4
- package/build/export/packer/packer.d.ts +0 -18
- package/build/export/packer/packer.spec.d.ts +0 -1
- package/build/file/app-properties/app-properties-attributes.d.ts +0 -10
- package/build/file/app-properties/app-properties.d.ts +0 -4
- package/build/file/border/border.d.ts +0 -39
- package/build/file/border/border.spec.d.ts +0 -1
- package/build/file/border/index.d.ts +0 -1
- package/build/file/checkbox/checkbox-symbol.d.ts +0 -4
- package/build/file/checkbox/checkbox-util.d.ts +0 -17
- package/build/file/checkbox/checkbox-util.spec.d.ts +0 -1
- package/build/file/checkbox/checkbox.d.ts +0 -8
- package/build/file/checkbox/checkbox.spec.d.ts +0 -1
- package/build/file/checkbox/index.d.ts +0 -3
- package/build/file/content-types/content-types-attributes.d.ts +0 -8
- package/build/file/content-types/content-types.d.ts +0 -6
- package/build/file/content-types/content-types.spec.d.ts +0 -1
- package/build/file/content-types/default/default-attributes.d.ts +0 -10
- package/build/file/content-types/default/default.d.ts +0 -4
- package/build/file/content-types/override/override-attributes.d.ts +0 -10
- package/build/file/content-types/override/override.d.ts +0 -4
- package/build/file/core-properties/index.d.ts +0 -1
- package/build/file/core-properties/properties.d.ts +0 -43
- package/build/file/core-properties/properties.spec.d.ts +0 -1
- package/build/file/custom-properties/custom-properties-attributes.d.ts +0 -10
- package/build/file/custom-properties/custom-properties.d.ts +0 -9
- package/build/file/custom-properties/custom-properties.spec.d.ts +0 -1
- package/build/file/custom-properties/custom-property-attributes.d.ts +0 -12
- package/build/file/custom-properties/custom-property.d.ts +0 -11
- package/build/file/custom-properties/index.d.ts +0 -2
- package/build/file/document/body/body.d.ts +0 -10
- package/build/file/document/body/body.spec.d.ts +0 -1
- package/build/file/document/body/index.d.ts +0 -2
- package/build/file/document/body/section-properties/index.d.ts +0 -2
- package/build/file/document/body/section-properties/properties/column.d.ts +0 -10
- package/build/file/document/body/section-properties/properties/columns.d.ts +0 -13
- package/build/file/document/body/section-properties/properties/columns.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/doc-grid.d.ts +0 -22
- package/build/file/document/body/section-properties/properties/doc-grid.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/header-footer-reference.d.ts +0 -17
- package/build/file/document/body/section-properties/properties/header-footer-reference.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/index.d.ts +0 -12
- package/build/file/document/body/section-properties/properties/line-number.d.ts +0 -14
- package/build/file/document/body/section-properties/properties/page-borders.d.ts +0 -30
- package/build/file/document/body/section-properties/properties/page-borders.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/page-margin.d.ts +0 -14
- package/build/file/document/body/section-properties/properties/page-number.d.ts +0 -24
- package/build/file/document/body/section-properties/properties/page-size.d.ts +0 -14
- package/build/file/document/body/section-properties/properties/page-size.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/page-text-direction.d.ts +0 -8
- package/build/file/document/body/section-properties/properties/page-text-direction.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/properties/section-type.d.ts +0 -18
- package/build/file/document/body/section-properties/properties/section-type.spec.d.ts +0 -1
- package/build/file/document/body/section-properties/section-properties.d.ts +0 -53
- package/build/file/document/body/section-properties/section-properties.spec.d.ts +0 -1
- package/build/file/document/document-attributes.d.ts +0 -85
- package/build/file/document/document-background/document-background.d.ts +0 -23
- package/build/file/document/document-background/document-background.spec.d.ts +0 -1
- package/build/file/document/document-background/index.d.ts +0 -1
- package/build/file/document/document.d.ts +0 -15
- package/build/file/document/document.spec.d.ts +0 -1
- package/build/file/document/index.d.ts +0 -4
- package/build/file/document-wrapper.d.ts +0 -17
- package/build/file/document-wrapper.spec.d.ts +0 -1
- package/build/file/drawing/anchor/anchor-attributes.d.ts +0 -24
- package/build/file/drawing/anchor/anchor.d.ts +0 -10
- package/build/file/drawing/anchor/anchor.spec.d.ts +0 -1
- package/build/file/drawing/anchor/index.d.ts +0 -2
- package/build/file/drawing/doc-properties/doc-properties-children.d.ts +0 -3
- package/build/file/drawing/doc-properties/doc-properties-children.spec.d.ts +0 -1
- package/build/file/drawing/doc-properties/doc-properties.d.ts +0 -11
- package/build/file/drawing/drawing.d.ts +0 -19
- package/build/file/drawing/drawing.spec.d.ts +0 -1
- package/build/file/drawing/effect-extent/effect-extent.d.ts +0 -8
- package/build/file/drawing/extent/extent-attributes.d.ts +0 -10
- package/build/file/drawing/extent/extent.d.ts +0 -5
- package/build/file/drawing/floating/align.d.ts +0 -5
- package/build/file/drawing/floating/align.spec.d.ts +0 -1
- package/build/file/drawing/floating/floating-position.d.ts +0 -49
- package/build/file/drawing/floating/horizontal-position.d.ts +0 -5
- package/build/file/drawing/floating/horizontal-position.spec.d.ts +0 -1
- package/build/file/drawing/floating/index.d.ts +0 -4
- package/build/file/drawing/floating/position-offset.d.ts +0 -4
- package/build/file/drawing/floating/position-offset.spec.d.ts +0 -1
- package/build/file/drawing/floating/simple-pos.d.ts +0 -4
- package/build/file/drawing/floating/simple-pos.spec.d.ts +0 -1
- package/build/file/drawing/floating/vertical-position.d.ts +0 -5
- package/build/file/drawing/floating/vertical-position.spec.d.ts +0 -1
- package/build/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-lock-attributes.d.ts +0 -10
- package/build/file/drawing/graphic-frame/graphic-frame-locks/graphic-frame-locks.d.ts +0 -4
- package/build/file/drawing/graphic-frame/graphic-frame-properties.d.ts +0 -4
- package/build/file/drawing/index.d.ts +0 -3
- package/build/file/drawing/inline/graphic/graphic-data/graphic-data-attribute.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/graphic-data.d.ts +0 -11
- package/build/file/drawing/inline/graphic/graphic-data/index.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/blip-fill.d.ts +0 -5
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/blip.d.ts +0 -5
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/blip/stretch.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/index.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/child-non-visual-pic-properties.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/pic-locks/pic-locks-attributes.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/child-non-visual-pic-properties/pic-locks/pic-locks.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-pic-properties.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties-attributes.d.ts +0 -12
- package/build/file/drawing/inline/graphic/graphic-data/pic/non-visual-pic-properties/non-visual-properties/non-visual-properties.d.ts +0 -5
- package/build/file/drawing/inline/graphic/graphic-data/pic/pic-attributes.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/pic/pic.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents-attributes.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/extents/extents.d.ts +0 -5
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/form.d.ts +0 -17
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/index.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off-attributes.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form/offset/off.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.d.ts +0 -2
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts +0 -42
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts +0 -6
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts +0 -25
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts +0 -12
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.spec.d.ts +0 -1
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/adjustment-values/adjustment-values.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry-attributes.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/preset-geometry.d.ts +0 -4
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties-attributes.d.ts +0 -8
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/shape-properties.d.ts +0 -10
- package/build/file/drawing/inline/graphic/graphic.d.ts +0 -11
- package/build/file/drawing/inline/graphic/index.d.ts +0 -1
- package/build/file/drawing/inline/index.d.ts +0 -1
- package/build/file/drawing/inline/inline.d.ts +0 -12
- package/build/file/drawing/inline/inline.spec.d.ts +0 -1
- package/build/file/drawing/text-wrap/index.d.ts +0 -5
- package/build/file/drawing/text-wrap/text-wrapping.d.ts +0 -18
- package/build/file/drawing/text-wrap/wrap-none.d.ts +0 -4
- package/build/file/drawing/text-wrap/wrap-square.d.ts +0 -6
- package/build/file/drawing/text-wrap/wrap-tight.d.ts +0 -5
- package/build/file/drawing/text-wrap/wrap-top-and-bottom.d.ts +0 -5
- package/build/file/file-child.d.ts +0 -4
- package/build/file/file.d.ts +0 -72
- package/build/file/file.spec.d.ts +0 -1
- package/build/file/fonts/create-regular-font.d.ts +0 -8
- package/build/file/fonts/font-table.d.ts +0 -10
- package/build/file/fonts/font-wrapper.d.ts +0 -16
- package/build/file/fonts/font.d.ts +0 -49
- package/build/file/fonts/font.spec.d.ts +0 -1
- package/build/file/fonts/index.d.ts +0 -1
- package/build/file/fonts/obfuscate-ttf-to-odttf.d.ts +0 -2
- package/build/file/fonts/obsfuscate-ttf-to-odtts.spec.d.ts +0 -1
- package/build/file/footer/footer-attributes.d.ts +0 -50
- package/build/file/footer/footer.d.ts +0 -9
- package/build/file/footer/footer.spec.d.ts +0 -1
- package/build/file/footer/index.d.ts +0 -1
- package/build/file/footer-wrapper.d.ts +0 -23
- package/build/file/footer-wrapper.spec.d.ts +0 -1
- package/build/file/footnotes/footnote/footnote-attributes.d.ts +0 -10
- package/build/file/footnotes/footnote/footnote.d.ts +0 -14
- package/build/file/footnotes/footnote/footnote.spec.d.ts +0 -1
- package/build/file/footnotes/footnote/index.d.ts +0 -1
- package/build/file/footnotes/footnote/run/continuation-seperator-run.d.ts +0 -4
- package/build/file/footnotes/footnote/run/continuation-seperator.d.ts +0 -4
- package/build/file/footnotes/footnote/run/footnote-ref-run.d.ts +0 -4
- package/build/file/footnotes/footnote/run/footnote-ref.d.ts +0 -4
- package/build/file/footnotes/footnote/run/index.d.ts +0 -1
- package/build/file/footnotes/footnote/run/reference-run.d.ts +0 -15
- package/build/file/footnotes/footnote/run/seperator-run.d.ts +0 -4
- package/build/file/footnotes/footnote/run/seperator.d.ts +0 -4
- package/build/file/footnotes/footnotes-attributes.d.ts +0 -40
- package/build/file/footnotes/footnotes.d.ts +0 -6
- package/build/file/footnotes/index.d.ts +0 -2
- package/build/file/footnotes-wrapper.d.ts +0 -10
- package/build/file/footnotes-wrapper.spec.d.ts +0 -1
- package/build/file/header/header-attributes.d.ts +0 -72
- package/build/file/header/header.d.ts +0 -9
- package/build/file/header/header.spec.d.ts +0 -1
- package/build/file/header/index.d.ts +0 -1
- package/build/file/header-wrapper.d.ts +0 -23
- package/build/file/header-wrapper.spec.d.ts +0 -1
- package/build/file/header.d.ts +0 -13
- package/build/file/index.d.ts +0 -21
- package/build/file/media/data.d.ts +0 -22
- package/build/file/media/index.d.ts +0 -2
- package/build/file/media/media.d.ts +0 -16
- package/build/file/media/media.spec.d.ts +0 -1
- package/build/file/numbering/abstract-numbering.d.ts +0 -6
- package/build/file/numbering/abstract-numbering.spec.d.ts +0 -1
- package/build/file/numbering/concrete-numbering.spec.d.ts +0 -1
- package/build/file/numbering/index.d.ts +0 -4
- package/build/file/numbering/level.d.ts +0 -96
- package/build/file/numbering/level.spec.d.ts +0 -1
- package/build/file/numbering/multi-level-type.d.ts +0 -4
- package/build/file/numbering/num.d.ts +0 -22
- package/build/file/numbering/numbering.d.ts +0 -21
- package/build/file/numbering/numbering.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/alignment.d.ts +0 -26
- package/build/file/paragraph/formatting/alignment.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/border.d.ts +0 -14
- package/build/file/paragraph/formatting/border.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/break.d.ts +0 -11
- package/build/file/paragraph/formatting/break.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/indent.d.ts +0 -13
- package/build/file/paragraph/formatting/indent.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/index.d.ts +0 -8
- package/build/file/paragraph/formatting/spacing.d.ts +0 -18
- package/build/file/paragraph/formatting/spacing.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/style.d.ts +0 -13
- package/build/file/paragraph/formatting/style.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/tab-stop.d.ts +0 -44
- package/build/file/paragraph/formatting/tab-stop.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/unordered-list.d.ts +0 -4
- package/build/file/paragraph/formatting/unordered-list.spec.d.ts +0 -1
- package/build/file/paragraph/formatting/word-wrap.d.ts +0 -11
- package/build/file/paragraph/formatting/word-wrap.spec.d.ts +0 -1
- package/build/file/paragraph/frame/frame-properties.d.ts +0 -55
- package/build/file/paragraph/frame/frame-properties.spec.d.ts +0 -1
- package/build/file/paragraph/frame/index.d.ts +0 -1
- package/build/file/paragraph/index.d.ts +0 -7
- package/build/file/paragraph/links/bookmark-attributes.d.ts +0 -17
- package/build/file/paragraph/links/bookmark.d.ts +0 -18
- package/build/file/paragraph/links/bookmark.spec.d.ts +0 -1
- package/build/file/paragraph/links/hyperlink-attributes.d.ts +0 -13
- package/build/file/paragraph/links/hyperlink.d.ts +0 -26
- package/build/file/paragraph/links/hyperlink.spec.d.ts +0 -1
- package/build/file/paragraph/links/index.d.ts +0 -4
- package/build/file/paragraph/links/outline-level.d.ts +0 -5
- package/build/file/paragraph/links/outline-level.spec.d.ts +0 -1
- package/build/file/paragraph/links/pageref-field-instruction.d.ts +0 -5
- package/build/file/paragraph/links/pageref-field-instruction.spec.d.ts +0 -1
- package/build/file/paragraph/links/pageref.d.ts +0 -8
- package/build/file/paragraph/links/pageref.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/index.d.ts +0 -4
- package/build/file/paragraph/math/brackets/math-angled-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-angled-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-beginning-character.d.ts +0 -4
- package/build/file/paragraph/math/brackets/math-beginning-character.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-bracket-properties.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-bracket-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-curly-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-curly-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-ending-char.d.ts +0 -4
- package/build/file/paragraph/math/brackets/math-ending-character.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-round-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-round-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/brackets/math-square-brackets.d.ts +0 -7
- package/build/file/paragraph/math/brackets/math-square-brackets.spec.d.ts +0 -1
- package/build/file/paragraph/math/fraction/index.d.ts +0 -3
- package/build/file/paragraph/math/fraction/math-denominator.d.ts +0 -5
- package/build/file/paragraph/math/fraction/math-denominator.spec.d.ts +0 -1
- package/build/file/paragraph/math/fraction/math-fraction.d.ts +0 -9
- package/build/file/paragraph/math/fraction/math-fraction.spec.d.ts +0 -1
- package/build/file/paragraph/math/fraction/math-numerator.d.ts +0 -5
- package/build/file/paragraph/math/fraction/math-numerator.spec.d.ts +0 -1
- package/build/file/paragraph/math/function/index.d.ts +0 -3
- package/build/file/paragraph/math/function/math-function-name.d.ts +0 -5
- package/build/file/paragraph/math/function/math-function-name.spec.d.ts +0 -1
- package/build/file/paragraph/math/function/math-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/function/math-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/function/math-function.d.ts +0 -9
- package/build/file/paragraph/math/function/math-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/index.d.ts +0 -9
- package/build/file/paragraph/math/math-component.d.ts +0 -9
- package/build/file/paragraph/math/math-run.d.ts +0 -4
- package/build/file/paragraph/math/math-run.spec.d.ts +0 -1
- package/build/file/paragraph/math/math-text.d.ts +0 -4
- package/build/file/paragraph/math/math-text.spec.d.ts +0 -1
- package/build/file/paragraph/math/math.d.ts +0 -8
- package/build/file/paragraph/math/math.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/index.d.ts +0 -8
- package/build/file/paragraph/math/n-ary/math-accent-character.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-accent-character.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-base.d.ts +0 -5
- package/build/file/paragraph/math/n-ary/math-base.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-integral.d.ts +0 -10
- package/build/file/paragraph/math/n-ary/math-integral.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-limit-location.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-limit-location.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-n-ary-properties.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-n-ary-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-sub-script-hide.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-sub-script-hide.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-sub-script.d.ts +0 -5
- package/build/file/paragraph/math/n-ary/math-sub-script.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-sum.d.ts +0 -10
- package/build/file/paragraph/math/n-ary/math-sum.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-super-script-hide.d.ts +0 -4
- package/build/file/paragraph/math/n-ary/math-super-script-hide.spec.d.ts +0 -1
- package/build/file/paragraph/math/n-ary/math-super-script.d.ts +0 -5
- package/build/file/paragraph/math/n-ary/math-super-script.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/index.d.ts +0 -3
- package/build/file/paragraph/math/radical/math-degree-hide.d.ts +0 -4
- package/build/file/paragraph/math/radical/math-degree-hide.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/math-degree.d.ts +0 -5
- package/build/file/paragraph/math/radical/math-degree.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/math-radical-properties.d.ts +0 -4
- package/build/file/paragraph/math/radical/math-radical-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/radical/math-radical.d.ts +0 -9
- package/build/file/paragraph/math/radical/math-radical.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/index.d.ts +0 -4
- package/build/file/paragraph/math/script/pre-sub-super-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.d.ts +0 -10
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function.d.ts +0 -9
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-super-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.d.ts +0 -10
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/super-script/index.d.ts +0 -2
- package/build/file/paragraph/math/script/super-script/math-super-script-function-properties.d.ts +0 -4
- package/build/file/paragraph/math/script/super-script/math-super-script-function-properties.spec.d.ts +0 -1
- package/build/file/paragraph/math/script/super-script/math-super-script-function.d.ts +0 -9
- package/build/file/paragraph/math/script/super-script/math-super-script-function.spec.d.ts +0 -1
- package/build/file/paragraph/paragraph.d.ts +0 -22
- package/build/file/paragraph/paragraph.spec.d.ts +0 -1
- package/build/file/paragraph/properties.d.ts +0 -56
- package/build/file/paragraph/properties.spec.d.ts +0 -1
- package/build/file/paragraph/run/break.d.ts +0 -4
- package/build/file/paragraph/run/break.spec.d.ts +0 -1
- package/build/file/paragraph/run/comment-run.d.ts +0 -27
- package/build/file/paragraph/run/comment-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/emphasis-mark.d.ts +0 -13
- package/build/file/paragraph/run/emphasis-mark.spec.d.ts +0 -1
- package/build/file/paragraph/run/empty-children.d.ts +0 -52
- package/build/file/paragraph/run/empty-children.spec.d.ts +0 -1
- package/build/file/paragraph/run/field.d.ts +0 -10
- package/build/file/paragraph/run/formatting.d.ts +0 -14
- package/build/file/paragraph/run/formatting.spec.d.ts +0 -1
- package/build/file/paragraph/run/image-run.d.ts +0 -21
- package/build/file/paragraph/run/image-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/index.d.ts +0 -13
- package/build/file/paragraph/run/language.d.ts +0 -7
- package/build/file/paragraph/run/language.spec.d.ts +0 -1
- package/build/file/paragraph/run/page-number.d.ts +0 -13
- package/build/file/paragraph/run/page-number.spec.d.ts +0 -1
- package/build/file/paragraph/run/positional-tab.d.ts +0 -25
- package/build/file/paragraph/run/positional-tab.spec.d.ts +0 -1
- package/build/file/paragraph/run/properties.d.ts +0 -77
- package/build/file/paragraph/run/run-components/symbol.d.ts +0 -4
- package/build/file/paragraph/run/run-components/symbol.spec.d.ts +0 -1
- package/build/file/paragraph/run/run-components/text.d.ts +0 -10
- package/build/file/paragraph/run/run-components/text.spec.d.ts +0 -1
- package/build/file/paragraph/run/run-fonts.d.ts +0 -12
- package/build/file/paragraph/run/run-fonts.spec.d.ts +0 -1
- package/build/file/paragraph/run/run.d.ts +0 -23
- package/build/file/paragraph/run/run.spec.d.ts +0 -1
- package/build/file/paragraph/run/script.d.ts +0 -10
- package/build/file/paragraph/run/script.spec.d.ts +0 -1
- package/build/file/paragraph/run/sequential-identifier-instruction.d.ts +0 -4
- package/build/file/paragraph/run/sequential-identifier.d.ts +0 -4
- package/build/file/paragraph/run/sequential-identifier.spec.d.ts +0 -1
- package/build/file/paragraph/run/simple-field.d.ts +0 -7
- package/build/file/paragraph/run/simple-field.spec.d.ts +0 -1
- package/build/file/paragraph/run/symbol-run.d.ts +0 -8
- package/build/file/paragraph/run/symbol-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/text-attributes.d.ts +0 -9
- package/build/file/paragraph/run/text-run.d.ts +0 -4
- package/build/file/paragraph/run/text-run.spec.d.ts +0 -1
- package/build/file/paragraph/run/underline.d.ts +0 -24
- package/build/file/paragraph/run/underline.spec.d.ts +0 -1
- package/build/file/relationships/attributes.d.ts +0 -8
- package/build/file/relationships/index.d.ts +0 -1
- package/build/file/relationships/relationship/relationship-attributes.d.ts +0 -14
- package/build/file/relationships/relationship/relationship.d.ts +0 -8
- package/build/file/relationships/relationships.d.ts +0 -7
- package/build/file/relationships/relationships.spec.d.ts +0 -1
- package/build/file/settings/compatibility-setting/compatibility-setting.d.ts +0 -15
- package/build/file/settings/compatibility-setting/compatibility-setting.spec.d.ts +0 -1
- package/build/file/settings/compatibility.d.ts +0 -72
- package/build/file/settings/compatibility.spec.d.ts +0 -1
- package/build/file/settings/index.d.ts +0 -1
- package/build/file/settings/settings.d.ts +0 -52
- package/build/file/settings/settings.spec.d.ts +0 -1
- package/build/file/shading/index.d.ts +0 -1
- package/build/file/shading/shading.d.ts +0 -48
- package/build/file/shading/shading.spec.d.ts +0 -1
- package/build/file/shared/alignment.d.ts +0 -14
- package/build/file/shared/index.d.ts +0 -3
- package/build/file/shared/number-format.d.ts +0 -64
- package/build/file/shared/space-type.d.ts +0 -4
- package/build/file/styles/defaults/document-defaults.d.ts +0 -12
- package/build/file/styles/defaults/document-defaults.spec.d.ts +0 -1
- package/build/file/styles/defaults/index.d.ts +0 -3
- package/build/file/styles/defaults/paragraph-properties.d.ts +0 -5
- package/build/file/styles/defaults/run-properties.d.ts +0 -5
- package/build/file/styles/external-styles-factory.d.ts +0 -4
- package/build/file/styles/external-styles-factory.spec.d.ts +0 -1
- package/build/file/styles/factory.d.ts +0 -22
- package/build/file/styles/index.d.ts +0 -4
- package/build/file/styles/latent-styles/exceptions.d.ts +0 -20
- package/build/file/styles/latent-styles/exceptions.spec.d.ts +0 -1
- package/build/file/styles/latent-styles/index.d.ts +0 -1
- package/build/file/styles/latent-styles/latent-styles.d.ts +0 -5
- package/build/file/styles/latent-styles/latent-styles.spec.d.ts +0 -1
- package/build/file/styles/sample/default-style.d.ts +0 -1
- package/build/file/styles/sample/default-style.spec.d.ts +0 -1
- package/build/file/styles/sample/index.d.ts +0 -1
- package/build/file/styles/style/character-style.d.ts +0 -12
- package/build/file/styles/style/character-style.spec.d.ts +0 -1
- package/build/file/styles/style/components.d.ts +0 -11
- package/build/file/styles/style/components.spec.d.ts +0 -1
- package/build/file/styles/style/default-styles.d.ts +0 -44
- package/build/file/styles/style/default-styles.spec.d.ts +0 -1
- package/build/file/styles/style/index.d.ts +0 -4
- package/build/file/styles/style/paragraph-style.d.ts +0 -14
- package/build/file/styles/style/paragraph-style.spec.d.ts +0 -1
- package/build/file/styles/style/style.d.ts +0 -20
- package/build/file/styles/style/style.spec.d.ts +0 -1
- package/build/file/styles/styles.d.ts +0 -15
- package/build/file/styles/styles.spec.d.ts +0 -1
- package/build/file/table/grid.d.ts +0 -8
- package/build/file/table/grid.spec.d.ts +0 -1
- package/build/file/table/index.d.ts +0 -5
- package/build/file/table/table-cell/index.d.ts +0 -2
- package/build/file/table/table-cell/table-cell-components.d.ts +0 -31
- package/build/file/table/table-cell/table-cell-properties.d.ts +0 -20
- package/build/file/table/table-cell/table-cell-properties.spec.d.ts +0 -1
- package/build/file/table/table-cell/table-cell.d.ts +0 -12
- package/build/file/table/table-cell/table-cell.spec.d.ts +0 -1
- package/build/file/table/table-properties/index.d.ts +0 -4
- package/build/file/table/table-properties/table-borders.d.ts +0 -45
- package/build/file/table/table-properties/table-borders.spec.d.ts +0 -1
- package/build/file/table/table-properties/table-cell-margin.d.ts +0 -16
- package/build/file/table/table-properties/table-cell-margin.spec.d.ts +0 -1
- package/build/file/table/table-properties/table-float-properties.d.ts +0 -42
- package/build/file/table/table-properties/table-float-properties.spec.d.ts +0 -1
- package/build/file/table/table-properties/table-layout.d.ts +0 -8
- package/build/file/table/table-properties/table-properties.d.ts +0 -23
- package/build/file/table/table-properties/table-properties.spec.d.ts +0 -1
- package/build/file/table/table-row/index.d.ts +0 -3
- package/build/file/table/table-row/table-row-height.d.ts +0 -19
- package/build/file/table/table-row/table-row-properties.d.ts +0 -14
- package/build/file/table/table-row/table-row-properties.spec.d.ts +0 -1
- package/build/file/table/table-row/table-row.d.ts +0 -16
- package/build/file/table/table-row/table-row.spec.d.ts +0 -1
- package/build/file/table/table-width.d.ts +0 -15
- package/build/file/table/table.d.ts +0 -23
- package/build/file/table/table.spec.d.ts +0 -1
- package/build/file/table-of-contents/field-instruction.d.ts +0 -6
- package/build/file/table-of-contents/index.d.ts +0 -2
- package/build/file/table-of-contents/sdt-content.d.ts +0 -4
- package/build/file/table-of-contents/sdt-properties.d.ts +0 -4
- package/build/file/table-of-contents/table-of-contents-properties.d.ts +0 -23
- package/build/file/table-of-contents/table-of-contents.d.ts +0 -5
- package/build/file/table-of-contents/table-of-contents.spec.d.ts +0 -1
- package/build/file/track-revision/index.d.ts +0 -2
- package/build/file/track-revision/track-revision-components/deleted-page-number.d.ts +0 -10
- package/build/file/track-revision/track-revision-components/deleted-page-number.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision-components/deleted-text-run.d.ts +0 -13
- package/build/file/track-revision/track-revision-components/deleted-text-run.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision-components/deleted-text.d.ts +0 -4
- package/build/file/track-revision/track-revision-components/deleted-text.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision-components/inserted-text-run.d.ts +0 -9
- package/build/file/track-revision/track-revision-components/inserted-text-run.spec.d.ts +0 -1
- package/build/file/track-revision/track-revision.d.ts +0 -13
- package/build/file/vertical-align/index.d.ts +0 -1
- package/build/file/vertical-align/vertical-align.d.ts +0 -16
- package/build/file/xml-components/attribute.spec.d.ts +0 -1
- package/build/file/xml-components/attributes.d.ts +0 -46
- package/build/file/xml-components/base.d.ts +0 -13
- package/build/file/xml-components/default-attributes.d.ts +0 -25
- package/build/file/xml-components/imported-xml-component.d.ts +0 -14
- package/build/file/xml-components/imported-xml-component.spec.d.ts +0 -1
- package/build/file/xml-components/index.d.ts +0 -8
- package/build/file/xml-components/initializable-xml-component.d.ts +0 -4
- package/build/file/xml-components/simple-elements.d.ts +0 -30
- package/build/file/xml-components/simple-elements.spec.d.ts +0 -1
- package/build/file/xml-components/xml-component.d.ts +0 -12
- package/build/file/xml-components/xml-component.spec.d.ts +0 -1
- package/build/file/xml-components/xmlable-object.d.ts +0 -7
- package/build/index.spec.d.ts +0 -1
- package/build/patcher/content-types-manager.d.ts +0 -2
- package/build/patcher/content-types-manager.spec.d.ts +0 -1
- package/build/patcher/from-docx.d.ts +0 -26
- package/build/patcher/from-docx.spec.d.ts +0 -1
- package/build/patcher/index.d.ts +0 -1
- package/build/patcher/paragraph-split-inject.d.ts +0 -6
- package/build/patcher/paragraph-split-inject.spec.d.ts +0 -1
- package/build/patcher/paragraph-token-replacer.d.ts +0 -8
- package/build/patcher/paragraph-token-replacer.spec.d.ts +0 -1
- package/build/patcher/relationship-manager.d.ts +0 -4
- package/build/patcher/relationship-manager.spec.d.ts +0 -1
- package/build/patcher/replacer.d.ts +0 -5
- package/build/patcher/replacer.spec.d.ts +0 -1
- package/build/patcher/run-renderer.d.ts +0 -22
- package/build/patcher/run-renderer.spec.d.ts +0 -1
- package/build/patcher/traverser.d.ts +0 -8
- package/build/patcher/traverser.spec.d.ts +0 -1
- package/build/patcher/util.d.ts +0 -5
- package/build/patcher/util.spec.d.ts +0 -1
- package/build/tests/utility.d.ts +0 -3
- package/build/util/convenience-functions.d.ts +0 -10
- package/build/util/convenience-functions.spec.d.ts +0 -1
- package/build/util/index.d.ts +0 -2
- package/build/util/values.d.ts +0 -20
- package/build/util/values.spec.d.ts +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IViewWrapper } from "../document-wrapper";
|
|
2
|
-
import { File } from "../file";
|
|
3
|
-
import { IXmlableObject } from "./xmlable-object";
|
|
4
|
-
export interface IContext {
|
|
5
|
-
readonly file: File;
|
|
6
|
-
readonly viewWrapper: IViewWrapper;
|
|
7
|
-
readonly stack: IXmlableObject[];
|
|
8
|
-
}
|
|
9
|
-
export declare abstract class BaseXmlComponent {
|
|
10
|
-
protected readonly rootKey: string;
|
|
11
|
-
constructor(rootKey: string);
|
|
12
|
-
abstract prepForXml(context: IContext): IXmlableObject | undefined;
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseXmlComponent, IContext } from "./base";
|
|
2
|
-
import { IXmlableObject } from "./xmlable-object";
|
|
3
|
-
export type AttributeMap<T> = {
|
|
4
|
-
readonly [P in keyof T]: string;
|
|
5
|
-
};
|
|
6
|
-
export type AttributeData = {
|
|
7
|
-
readonly [key: string]: boolean | number | string;
|
|
8
|
-
};
|
|
9
|
-
export type AttributePayload<T> = {
|
|
10
|
-
readonly [P in keyof T]: {
|
|
11
|
-
readonly key: string;
|
|
12
|
-
readonly value: T[P];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare abstract class XmlAttributeComponent<T extends object> extends BaseXmlComponent {
|
|
16
|
-
private readonly root;
|
|
17
|
-
protected readonly xmlKeys?: AttributeMap<T>;
|
|
18
|
-
constructor(root: T);
|
|
19
|
-
prepForXml(_: IContext): IXmlableObject;
|
|
20
|
-
}
|
|
21
|
-
export declare class NextAttributeComponent<T extends AttributeData> extends BaseXmlComponent {
|
|
22
|
-
private readonly root;
|
|
23
|
-
constructor(root: AttributePayload<T>);
|
|
24
|
-
prepForXml(_: IContext): IXmlableObject;
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Element as XmlElement } from "xml-js";
|
|
2
|
-
import { IXmlableObject, XmlComponent } from '.';
|
|
3
|
-
import { IContext } from "./base";
|
|
4
|
-
export declare const convertToXmlComponent: (element: XmlElement) => ImportedXmlComponent | string | undefined;
|
|
5
|
-
export declare class ImportedXmlComponent extends XmlComponent {
|
|
6
|
-
static fromXmlString(importedContent: string): ImportedXmlComponent;
|
|
7
|
-
constructor(rootKey: string, _attr?: any);
|
|
8
|
-
push(xmlComponent: XmlComponent | string): void;
|
|
9
|
-
}
|
|
10
|
-
export declare class ImportedRootElementAttributes extends XmlComponent {
|
|
11
|
-
private readonly _attr;
|
|
12
|
-
constructor(_attr: any);
|
|
13
|
-
prepForXml(_: IContext): IXmlableObject;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./xml-component";
|
|
2
|
-
export * from "./attributes";
|
|
3
|
-
export * from "./default-attributes";
|
|
4
|
-
export * from "./imported-xml-component";
|
|
5
|
-
export * from "./xmlable-object";
|
|
6
|
-
export * from "./initializable-xml-component";
|
|
7
|
-
export * from "./simple-elements";
|
|
8
|
-
export * from "./base";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AttributeData, AttributePayload, XmlComponent } from '.';
|
|
2
|
-
import { PositiveUniversalMeasure } from '../../util/values';
|
|
3
|
-
export declare class OnOffElement extends XmlComponent {
|
|
4
|
-
constructor(name: string, val?: boolean | undefined);
|
|
5
|
-
}
|
|
6
|
-
export declare class HpsMeasureElement extends XmlComponent {
|
|
7
|
-
constructor(name: string, val: number | PositiveUniversalMeasure);
|
|
8
|
-
}
|
|
9
|
-
export declare class EmptyElement extends XmlComponent {
|
|
10
|
-
}
|
|
11
|
-
export declare class StringValueElement extends XmlComponent {
|
|
12
|
-
constructor(name: string, val: string);
|
|
13
|
-
}
|
|
14
|
-
export declare const createStringElement: (name: string, value: string) => XmlComponent;
|
|
15
|
-
export declare class NumberValueElement extends XmlComponent {
|
|
16
|
-
constructor(name: string, val: number);
|
|
17
|
-
}
|
|
18
|
-
export declare class StringEnumValueElement<T extends string> extends XmlComponent {
|
|
19
|
-
constructor(name: string, val: T);
|
|
20
|
-
}
|
|
21
|
-
export declare class StringContainer extends XmlComponent {
|
|
22
|
-
constructor(name: string, val: string);
|
|
23
|
-
}
|
|
24
|
-
export declare class BuilderElement<T extends AttributeData> extends XmlComponent {
|
|
25
|
-
constructor({ name, attributes, children, }: {
|
|
26
|
-
readonly name: string;
|
|
27
|
-
readonly attributes?: AttributePayload<T>;
|
|
28
|
-
readonly children?: readonly XmlComponent[];
|
|
29
|
-
});
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseXmlComponent, IContext } from "./base";
|
|
2
|
-
import { IXmlableObject } from "./xmlable-object";
|
|
3
|
-
export declare const EMPTY_OBJECT: {};
|
|
4
|
-
export declare abstract class XmlComponent extends BaseXmlComponent {
|
|
5
|
-
protected root: (BaseXmlComponent | string | any)[];
|
|
6
|
-
constructor(rootKey: string);
|
|
7
|
-
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
8
|
-
addChildElement(child: XmlComponent | string): XmlComponent;
|
|
9
|
-
}
|
|
10
|
-
export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
11
|
-
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/index.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { ParagraphChild } from '../file/paragraph';
|
|
4
|
-
import { FileChild } from '../file/file-child';
|
|
5
|
-
type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream;
|
|
6
|
-
export declare const PatchType: {
|
|
7
|
-
readonly DOCUMENT: "file";
|
|
8
|
-
readonly PARAGRAPH: "paragraph";
|
|
9
|
-
};
|
|
10
|
-
type ParagraphPatch = {
|
|
11
|
-
readonly type: typeof PatchType.PARAGRAPH;
|
|
12
|
-
readonly children: readonly ParagraphChild[];
|
|
13
|
-
};
|
|
14
|
-
type FilePatch = {
|
|
15
|
-
readonly type: typeof PatchType.DOCUMENT;
|
|
16
|
-
readonly children: readonly FileChild[];
|
|
17
|
-
};
|
|
18
|
-
export type IPatch = ParagraphPatch | FilePatch;
|
|
19
|
-
export interface PatchDocumentOptions {
|
|
20
|
-
readonly patches: {
|
|
21
|
-
readonly [key: string]: IPatch;
|
|
22
|
-
};
|
|
23
|
-
readonly keepOriginalStyles?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare const patchDocument: (data: InputDataType, options: PatchDocumentOptions) => Promise<Uint8Array>;
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/patcher/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./from-docx";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Element } from "xml-js";
|
|
2
|
-
export declare const findRunElementIndexWithToken: (paragraphElement: Element, token: string) => number;
|
|
3
|
-
export declare const splitRunElement: (runElement: Element, token: string) => {
|
|
4
|
-
readonly left: Element;
|
|
5
|
-
readonly right: Element;
|
|
6
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Element } from "xml-js";
|
|
2
|
-
import { IRenderedParagraphNode } from "./run-renderer";
|
|
3
|
-
export declare const replaceTokenInParagraphElement: ({ paragraphElement, renderedParagraph, originalText, replacementText, }: {
|
|
4
|
-
readonly paragraphElement: Element;
|
|
5
|
-
readonly renderedParagraph: IRenderedParagraphNode;
|
|
6
|
-
readonly originalText: string;
|
|
7
|
-
readonly replacementText: string;
|
|
8
|
-
}) => Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Element } from "xml-js";
|
|
2
|
-
import { RelationshipType, TargetModeType } from '../file/relationships/relationship/relationship';
|
|
3
|
-
export declare const getNextRelationshipIndex: (relationships: Element) => number;
|
|
4
|
-
export declare const appendRelationship: (relationships: Element, id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]) => readonly Element[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Element } from "xml-js";
|
|
2
|
-
import { IContext } from '../file/xml-components';
|
|
3
|
-
import { IPatch } from "./from-docx";
|
|
4
|
-
import { IRenderedParagraphNode } from "./run-renderer";
|
|
5
|
-
export declare const replacer: (json: Element, patch: IPatch, patchText: string, renderedParagraphs: readonly IRenderedParagraphNode[], context: IContext, keepOriginalStyles?: boolean) => Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ElementWrapper } from "./traverser";
|
|
2
|
-
export interface IRenderedParagraphNode {
|
|
3
|
-
readonly text: string;
|
|
4
|
-
readonly runs: readonly IRenderedRunNode[];
|
|
5
|
-
readonly index: number;
|
|
6
|
-
readonly path: readonly number[];
|
|
7
|
-
}
|
|
8
|
-
interface StartAndEnd {
|
|
9
|
-
readonly start: number;
|
|
10
|
-
readonly end: number;
|
|
11
|
-
}
|
|
12
|
-
type IParts = {
|
|
13
|
-
readonly text: string;
|
|
14
|
-
readonly index: number;
|
|
15
|
-
} & StartAndEnd;
|
|
16
|
-
export type IRenderedRunNode = {
|
|
17
|
-
readonly text: string;
|
|
18
|
-
readonly parts: readonly IParts[];
|
|
19
|
-
readonly index: number;
|
|
20
|
-
} & StartAndEnd;
|
|
21
|
-
export declare const renderParagraphNode: (node: ElementWrapper) => IRenderedParagraphNode;
|
|
22
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Element } from "xml-js";
|
|
2
|
-
import { IRenderedParagraphNode } from "./run-renderer";
|
|
3
|
-
export interface ElementWrapper {
|
|
4
|
-
readonly element: Element;
|
|
5
|
-
readonly index: number;
|
|
6
|
-
readonly parent: ElementWrapper | undefined;
|
|
7
|
-
}
|
|
8
|
-
export declare const findLocationOfText: (node: Element, text: string) => readonly IRenderedParagraphNode[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/patcher/util.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Element } from "xml-js";
|
|
2
|
-
export declare const toJson: (xmlData: string) => Element;
|
|
3
|
-
export declare const createTextElementContents: (text: string) => Element[];
|
|
4
|
-
export declare const patchSpaceAttribute: (element: Element) => Element;
|
|
5
|
-
export declare const getFirstLevelElements: (relationships: Element, id: string) => Element[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/tests/utility.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const convertMillimetersToTwip: (millimeters: number) => number;
|
|
2
|
-
export declare const convertInchesToTwip: (inches: number) => number;
|
|
3
|
-
export type UniqueNumericIdCreator = () => number;
|
|
4
|
-
export declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
|
|
5
|
-
export declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
6
|
-
export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
7
|
-
export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
8
|
-
export declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
9
|
-
export declare const uniqueId: () => string;
|
|
10
|
-
export declare const uniqueUuid: () => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/util/index.d.ts
DELETED
package/build/util/values.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
|
|
2
|
-
export type PositiveUniversalMeasure = `${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
|
|
3
|
-
export type Percentage = `${"-" | ""}${number}%`;
|
|
4
|
-
export declare const decimalNumber: (val: number) => number;
|
|
5
|
-
export declare const unsignedDecimalNumber: (val: number) => number;
|
|
6
|
-
export declare const longHexNumber: (val: string) => string;
|
|
7
|
-
export declare const shortHexNumber: (val: string) => string;
|
|
8
|
-
export declare const uCharHexNumber: (val: string) => string;
|
|
9
|
-
export declare const universalMeasureValue: (val: UniversalMeasure) => UniversalMeasure;
|
|
10
|
-
export declare const positiveUniversalMeasureValue: (val: PositiveUniversalMeasure) => PositiveUniversalMeasure;
|
|
11
|
-
export declare const hexColorValue: (val: string) => string;
|
|
12
|
-
export declare const signedTwipsMeasureValue: (val: UniversalMeasure | number) => UniversalMeasure | number;
|
|
13
|
-
export declare const hpsMeasureValue: (val: PositiveUniversalMeasure | number) => string | number;
|
|
14
|
-
export declare const signedHpsMeasureValue: (val: UniversalMeasure | number) => string | number;
|
|
15
|
-
export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
|
|
16
|
-
export declare const percentageValue: (val: Percentage) => Percentage;
|
|
17
|
-
export declare const measurementOrPercentValue: (val: number | Percentage | UniversalMeasure) => number | UniversalMeasure | Percentage;
|
|
18
|
-
export declare const eighthPointMeasureValue: (val: number) => number;
|
|
19
|
-
export declare const pointMeasureValue: (val: number) => number;
|
|
20
|
-
export declare const dateTimeValue: (val: Date) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|