ooxml-core 1.50.2 → 1.51.1
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/README.md +11 -0
- package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
- package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
- package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
- package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
- package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
- package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
- package/dist/automation/index.cjs +5806 -4494
- package/dist/automation/index.mjs +5806 -4494
- package/dist/chunk-25IJEN7R.cjs +36 -0
- package/dist/chunk-25JN3ZQM.mjs +58 -0
- package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
- package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
- package/dist/chunk-554UZLPS.mjs +237 -0
- package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
- package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
- package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
- package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
- package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
- package/dist/chunk-GI4Y6BBX.mjs +21 -0
- package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
- package/dist/chunk-HWL2AGLD.cjs +98 -0
- package/dist/chunk-HZAB3YDO.cjs +234 -0
- package/dist/chunk-IDATIFCG.mjs +226 -0
- package/dist/chunk-LO55N7VL.cjs +247 -0
- package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
- package/dist/chunk-MUNEIE2J.cjs +62 -0
- package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
- package/dist/chunk-TOBK5FC4.mjs +88 -0
- package/dist/chunk-UV4LMGVZ.mjs +31 -0
- package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
- package/dist/chunk-W7LVJC32.cjs +25 -0
- package/dist/chunk-WAZ7T2BL.cjs +169 -0
- package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
- package/dist/docx/auto-number-fields.d.ts +22 -0
- package/dist/docx/auto-number-fields.d.ts.map +1 -0
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/character-styles.d.ts.map +1 -1
- package/dist/docx/clipboard/css.d.ts +21 -0
- package/dist/docx/clipboard/css.d.ts.map +1 -0
- package/dist/docx/clipboard/html-tokens.d.ts +38 -0
- package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
- package/dist/docx/clipboard/index.d.ts +6 -0
- package/dist/docx/clipboard/index.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fields.d.ts +13 -0
- package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fragment.d.ts +14 -0
- package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
- package/dist/docx/clipboard/word-html.d.ts +22 -0
- package/dist/docx/clipboard/word-html.d.ts.map +1 -0
- package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
- package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
- package/dist/docx/clipboard/word-lists.d.ts +13 -0
- package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
- package/dist/docx/clipboard/word-runs.d.ts +18 -0
- package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
- package/dist/docx/clipboard/word-styles.d.ts +35 -0
- package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
- package/dist/docx/compare/build.d.ts +48 -0
- package/dist/docx/compare/build.d.ts.map +1 -0
- package/dist/docx/compare/compare.d.ts +18 -0
- package/dist/docx/compare/compare.d.ts.map +1 -0
- package/dist/docx/compare/context.d.ts +42 -0
- package/dist/docx/compare/context.d.ts.map +1 -0
- package/dist/docx/compare/diff.d.ts +20 -0
- package/dist/docx/compare/diff.d.ts.map +1 -0
- package/dist/docx/compare/index.d.ts +4 -0
- package/dist/docx/compare/index.d.ts.map +1 -0
- package/dist/docx/compare/slide.d.ts +9 -0
- package/dist/docx/compare/slide.d.ts.map +1 -0
- package/dist/docx/compare/spans.d.ts +13 -0
- package/dist/docx/compare/spans.d.ts.map +1 -0
- package/dist/docx/compare/story.d.ts +7 -0
- package/dist/docx/compare/story.d.ts.map +1 -0
- package/dist/docx/compare/table.d.ts +23 -0
- package/dist/docx/compare/table.d.ts.map +1 -0
- package/dist/docx/compare/tokens.d.ts +50 -0
- package/dist/docx/compare/tokens.d.ts.map +1 -0
- package/dist/docx/compare/types.d.ts +51 -0
- package/dist/docx/compare/types.d.ts.map +1 -0
- package/dist/docx/compatibility.d.ts +46 -0
- package/dist/docx/compatibility.d.ts.map +1 -0
- package/dist/docx/computed-fields.d.ts +39 -0
- package/dist/docx/computed-fields.d.ts.map +1 -0
- package/dist/docx/doc-property-field.d.ts +17 -0
- package/dist/docx/doc-property-field.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +2 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing-wrap.d.ts +21 -0
- package/dist/docx/drawing-wrap.d.ts.map +1 -0
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +3965 -2313
- package/dist/docx/embedded.mjs +3965 -2313
- package/dist/docx/field-format.d.ts +45 -0
- package/dist/docx/field-format.d.ts.map +1 -0
- package/dist/docx/field-result-spans.d.ts +62 -0
- package/dist/docx/field-result-spans.d.ts.map +1 -0
- package/dist/docx/field-runs.d.ts.map +1 -1
- package/dist/docx/field-stories.d.ts +9 -0
- package/dist/docx/field-stories.d.ts.map +1 -0
- package/dist/docx/find-stories.d.ts +27 -0
- package/dist/docx/find-stories.d.ts.map +1 -0
- package/dist/docx/highlight.d.ts +19 -0
- package/dist/docx/highlight.d.ts.map +1 -1
- package/dist/docx/hyperlink.d.ts +7 -0
- package/dist/docx/hyperlink.d.ts.map +1 -1
- package/dist/docx/index.cjs +7359 -3476
- package/dist/docx/index.d.ts +13 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +7327 -3476
- package/dist/docx/inline-model.d.ts +21 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/inline-slots.d.ts.map +1 -1
- package/dist/docx/inspect-document.d.ts +21 -0
- package/dist/docx/inspect-document.d.ts.map +1 -0
- package/dist/docx/kinsoku-settings.d.ts +9 -0
- package/dist/docx/kinsoku-settings.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
- package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/computed-field-runs.d.ts +8 -0
- package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
- package/dist/docx/layout/floats.d.ts +3 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-floating-table.d.ts +13 -0
- package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
- package/dist/docx/layout/flow-table.d.ts +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2280 -941
- package/dist/docx/layout/index.mjs +2276 -942
- package/dist/docx/layout/input.d.ts +50 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/layout.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/page-flow.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
- package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +12 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
- package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
- package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit.d.ts +10 -0
- package/dist/docx/layout/table-autofit.d.ts.map +1 -0
- package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
- package/dist/docx/layout/text-breaks.d.ts +38 -13
- package/dist/docx/layout/text-breaks.d.ts.map +1 -1
- package/dist/docx/layout/wrap.d.ts +1 -1
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/list-number-fields.d.ts +25 -0
- package/dist/docx/list-number-fields.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +4355 -2703
- package/dist/docx/load/index.mjs +4355 -2703
- package/dist/docx/model-paragraph.d.ts +12 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +26 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/note-convert.d.ts +45 -0
- package/dist/docx/note-convert.d.ts.map +1 -0
- package/dist/docx/numbering-counters.d.ts +17 -0
- package/dist/docx/numbering-counters.d.ts.map +1 -0
- package/dist/docx/numbering-format.d.ts +11 -2
- package/dist/docx/numbering-format.d.ts.map +1 -1
- package/dist/docx/outline-numbering.d.ts +6 -0
- package/dist/docx/outline-numbering.d.ts.map +1 -0
- package/dist/docx/package-information-save.d.ts +9 -0
- package/dist/docx/package-information-save.d.ts.map +1 -0
- package/dist/docx/package-information.d.ts +43 -0
- package/dist/docx/package-information.d.ts.map +1 -0
- package/dist/docx/package-properties.d.ts +5 -0
- package/dist/docx/package-properties.d.ts.map +1 -0
- package/dist/docx/paragraph-styles.d.ts +2 -0
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-revisions.d.ts +2 -0
- package/dist/docx/parse-revisions.d.ts.map +1 -1
- package/dist/docx/parse-table-floating.d.ts +5 -0
- package/dist/docx/parse-table-floating.d.ts.map +1 -0
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/part-relationships.d.ts.map +1 -1
- package/dist/docx/personal-information.d.ts +18 -0
- package/dist/docx/personal-information.d.ts.map +1 -0
- package/dist/docx/picture-crop-edit.d.ts +18 -0
- package/dist/docx/picture-crop-edit.d.ts.map +1 -0
- package/dist/docx/picture-watermark.d.ts +29 -0
- package/dist/docx/picture-watermark.d.ts.map +1 -0
- package/dist/docx/relationship-allocator.d.ts.map +1 -1
- package/dist/docx/remove-document-information.d.ts +8 -0
- package/dist/docx/remove-document-information.d.ts.map +1 -0
- package/dist/docx/revision-commands.d.ts +6 -1
- package/dist/docx/revision-commands.d.ts.map +1 -1
- package/dist/docx/revision-ids.d.ts.map +1 -1
- package/dist/docx/run-language.d.ts +9 -0
- package/dist/docx/run-language.d.ts.map +1 -0
- package/dist/docx/run-properties-snapshot.d.ts +9 -0
- package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
- package/dist/docx/run-style-model.d.ts +4 -0
- package/dist/docx/run-style-model.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +2 -1
- package/dist/docx/save-modified.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-ref-fields.d.ts +1 -8
- package/dist/docx/style-ref-fields.d.ts.map +1 -1
- package/dist/docx/symbol-field.d.ts +21 -0
- package/dist/docx/symbol-field.d.ts.map +1 -0
- package/dist/docx/table-cell-write.d.ts.map +1 -1
- package/dist/docx/table-defaults.d.ts +2 -0
- package/dist/docx/table-defaults.d.ts.map +1 -1
- package/dist/docx/table-margins.d.ts +18 -0
- package/dist/docx/table-margins.d.ts.map +1 -0
- package/dist/docx/table-model.d.ts +23 -0
- package/dist/docx/table-model.d.ts.map +1 -1
- package/dist/docx/table-structure-check.d.ts.map +1 -1
- package/dist/docx/table-styles.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +787 -435
- package/dist/docx/ui/index.d.ts +1 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +784 -436
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
- package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
- package/dist/docx/ui/run-adapter.d.ts.map +1 -1
- package/dist/docx/ui/schema-marks.d.ts +2 -19
- package/dist/docx/ui/schema-marks.d.ts.map +1 -1
- package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
- package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
- package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
- package/dist/docx/write-drawing-wrap.d.ts +22 -0
- package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-revisions.d.ts +3 -1
- package/dist/docx/write-revisions.d.ts.map +1 -1
- package/dist/docx/write-shape.d.ts.map +1 -1
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write.d.ts.map +1 -1
- package/dist/drawingml/html-text-paste.d.ts +28 -0
- package/dist/drawingml/html-text-paste.d.ts.map +1 -0
- package/dist/drawingml/html-text-style.d.ts +18 -0
- package/dist/drawingml/html-text-style.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +762 -0
- package/dist/drawingml/index.d.ts +1 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +760 -1
- package/dist/index.cjs +1237 -285
- package/dist/index.mjs +1237 -285
- package/dist/pptx/automation/index.cjs +561 -180
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
- package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +504 -124
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +16 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +3 -2
- package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
- package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
- package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
- package/dist/pptx/editor/render/slide-operations.cjs +12 -9
- package/dist/pptx/editor/render/slide-operations.mjs +6 -3
- package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
- package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
- package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
- package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
- package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +2 -2
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/table-merge.cjs +5 -5
- package/dist/pptx/editor/render/table-merge.mjs +1 -1
- package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
- package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
- package/dist/pptx/index.cjs +519 -201
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +2 -2
- package/dist/teams/index.cjs +35 -25
- package/dist/teams/index.mjs +35 -25
- package/dist/text/complex-breaks.d.ts +24 -0
- package/dist/text/complex-breaks.d.ts.map +1 -0
- package/dist/text/east-asian.d.ts +32 -0
- package/dist/text/east-asian.d.ts.map +1 -0
- package/dist/text/html-tokens.d.ts +45 -0
- package/dist/text/html-tokens.d.ts.map +1 -0
- package/dist/text/index.cjs +567 -96
- package/dist/text/index.d.ts +6 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +544 -97
- package/dist/text/kinsoku.d.ts +55 -0
- package/dist/text/kinsoku.d.ts.map +1 -0
- package/dist/text/truetype/embedding.d.ts +42 -0
- package/dist/text/truetype/embedding.d.ts.map +1 -0
- package/dist/text/truetype/glyphless.d.ts +5 -0
- package/dist/text/truetype/glyphless.d.ts.map +1 -0
- package/dist/text/truetype/sfnt-write.d.ts +10 -0
- package/dist/text/truetype/sfnt-write.d.ts.map +1 -0
- package/dist/text/truetype/subset.d.ts.map +1 -1
- package/dist/text/windows-1252.d.ts +10 -0
- package/dist/text/windows-1252.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +10 -6
- package/dist/xlsx/collab/index.mjs +10 -6
- package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
- package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
- package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +96 -51
- package/dist/xlsx/index.mjs +96 -51
- package/dist/xlsx/load/index.cjs +10 -6
- package/dist/xlsx/load/index.mjs +10 -6
- package/dist/xlsx/ui/index.cjs +97 -52
- package/dist/xlsx/ui/index.mjs +97 -52
- package/package.json +1 -1
- package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
- package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
- package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
- package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
- package/dist/chunk-X4RL5AZ7.cjs +0 -120
- package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
- package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
|
@@ -65,6 +65,17 @@ export interface Paragraph {
|
|
|
65
65
|
contextualSpacing?: boolean;
|
|
66
66
|
/** `w:suppressLineNumbers`: omit this paragraph from line numbering; false overrides a style. */
|
|
67
67
|
suppressLineNumbers?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* `w:kinsoku`: East Asian line-start and line-end prohibition (on when absent). Read-only like
|
|
70
|
+
* `borders`: the source XML keeps it and it is not written for new paragraphs.
|
|
71
|
+
*/
|
|
72
|
+
kinsoku?: boolean;
|
|
73
|
+
/** `w:autoSpaceDE`: space between East Asian and Western letters (on when absent); read-only. */
|
|
74
|
+
autoSpaceDE?: boolean;
|
|
75
|
+
/** `w:autoSpaceDN`: space between East Asian letters and digits (on when absent); read-only. */
|
|
76
|
+
autoSpaceDN?: boolean;
|
|
77
|
+
/** `w:overflowPunct`: line-end punctuation may hang past the margin (on when absent); read-only. */
|
|
78
|
+
overflowPunct?: boolean;
|
|
68
79
|
/**
|
|
69
80
|
* `w:outlineLvl` as a 1-9 level, or 0 for body text (`w:val="9"`, which cancels a style's
|
|
70
81
|
* level). Read-only like `borders`: the source XML keeps it and it is not written for new paragraphs.
|
|
@@ -98,7 +109,7 @@ export interface Paragraph {
|
|
|
98
109
|
contentControl?: ContentControl;
|
|
99
110
|
}
|
|
100
111
|
/** Direct paragraph properties supported by the editor, in native Word units. */
|
|
101
|
-
export type ParagraphFormatting = Pick<Paragraph, 'align' | 'justification' | 'direction' | 'spacingBeforeTwips' | 'spacingAfterTwips' | 'spacingBeforeAuto' | 'spacingAfterAuto' | 'lineSpacingTwips' | 'lineSpacingRule' | 'indentLeftTwips' | 'indentRightTwips' | 'indentStartTwips' | 'indentEndTwips' | 'firstLineTwips' | 'hangingTwips' | 'pageBreakBefore' | 'keepNext' | 'keepLines' | 'widowControl' | 'contextualSpacing' | 'suppressLineNumbers' | 'outlineLevel' | 'borders' | 'shadingFill'>;
|
|
112
|
+
export type ParagraphFormatting = Pick<Paragraph, 'align' | 'justification' | 'direction' | 'spacingBeforeTwips' | 'spacingAfterTwips' | 'spacingBeforeAuto' | 'spacingAfterAuto' | 'lineSpacingTwips' | 'lineSpacingRule' | 'indentLeftTwips' | 'indentRightTwips' | 'indentStartTwips' | 'indentEndTwips' | 'firstLineTwips' | 'hangingTwips' | 'pageBreakBefore' | 'keepNext' | 'keepLines' | 'widowControl' | 'contextualSpacing' | 'suppressLineNumbers' | 'kinsoku' | 'autoSpaceDE' | 'autoSpaceDN' | 'overflowPunct' | 'outlineLevel' | 'borders' | 'shadingFill'>;
|
|
102
113
|
export interface ParagraphStyleDefinition {
|
|
103
114
|
id: string;
|
|
104
115
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-paragraph.d.ts","sourceRoot":"","sources":["../../docx/model-paragraph.ts"],"names":[],"mappings":"AACA,OAAO,KA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;IAC7F,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AACD,iFAAiF;AACjF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,SAAS,EACP,OAAO,GACP,eAAe,GACf,WAAW,GACX,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,qBAAqB,GACrB,cAAc,GACd,SAAS,GACT,aAAa,CACf,CAAC;AACF,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,mBAAmB,CAAC;IAChC,kGAAkG;IAClG,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C;AACD,4FAA4F;AAC5F,MAAM,WAAW,qBAAqB;IACrC,WAAW,EAAE,mBAAmB,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"model-paragraph.d.ts","sourceRoot":"","sources":["../../docx/model-paragraph.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAA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cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AACD,iFAAiF;AACjF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,SAAS,EACP,OAAO,GACP,eAAe,GACf,WAAW,GACX,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,qBAAqB,GACrB,SAAS,GACT,aAAa,GACb,aAAa,GACb,eAAe,GACf,cAAc,GACd,SAAS,GACT,aAAa,CACf,CAAC;AACF,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,mBAAmB,CAAC;IAChC,kGAAkG;IAClG,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C;AACD,4FAA4F;AAC5F,MAAM,WAAW,qBAAqB;IACrC,WAAW,EAAE,mBAAmB,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
package/dist/docx/model.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocumentProperties } from './core-properties.js';
|
|
2
|
+
import type { DocumentPropertySet } from '../opc/properties/types.js';
|
|
2
3
|
import type { StJcTable, StNumberFormat } from './generated/wml-simple-types.js';
|
|
3
4
|
import type { ParagraphStyleCatalog } from './model-paragraph.js';
|
|
4
5
|
import type { NumberingCatalog } from './numbering-model.js';
|
|
@@ -8,7 +9,7 @@ export type { Paragraph, ParagraphFormatting, ParagraphStyleCatalog, ParagraphSt
|
|
|
8
9
|
import type { Paragraph } from './model-paragraph.js';
|
|
9
10
|
export type * from './content-control-model.js';
|
|
10
11
|
export type * from './form-field-model.js';
|
|
11
|
-
export type { HyperlinkInfo, InlineImage, PicturePlacement, WatermarkSpec } from './inline-model.js';
|
|
12
|
+
export type { HyperlinkInfo, InlineImage, PicturePlacement, PictureWatermarkSpec, WatermarkSpec, } from './inline-model.js';
|
|
12
13
|
import type { Note, SectionProperties } from './section-model.js';
|
|
13
14
|
export type { HeaderFooterContent, HeaderFooterSlots, LineNumberSettings, Note, PageBorders, PageBorderSide, SectionColumn, SectionColumns, SectionPageNumbering, SectionProperties, } from './section-model.js';
|
|
14
15
|
/** A comment thread entry parsed from comments.xml / commentsExtended.xml. */
|
|
@@ -45,6 +46,15 @@ export interface Table {
|
|
|
45
46
|
/** `w:tblGrid/w:gridCol` widths in twips, one per grid column. */
|
|
46
47
|
grid?: Twips[];
|
|
47
48
|
widthTwips?: Twips;
|
|
49
|
+
/** A percentage `w:tblW` (`type="pct"`) as a fraction of the text column; read-only layout input. */
|
|
50
|
+
widthPercent?: number;
|
|
51
|
+
/**
|
|
52
|
+
* `w:tblLayout`: `fixed` keeps the grid, `autofit` (the default when the element is absent)
|
|
53
|
+
* sizes the columns from their content. Set by the parser; tables the editor creates have none.
|
|
54
|
+
*/
|
|
55
|
+
layout?: 'fixed' | 'autofit';
|
|
56
|
+
/** `w:tblpPr`: the table floats at this position and text wraps around it (read-only). */
|
|
57
|
+
floating?: import('./table-model.js').TableFloatingPosition;
|
|
48
58
|
alignment?: 'left' | 'center' | 'right';
|
|
49
59
|
/** The exact `w:tblPr/w:jc` value (`ST_JcTable`, including `start`/`end`); `alignment` is derived from it. */
|
|
50
60
|
justification?: StJcTable;
|
|
@@ -82,6 +92,16 @@ export interface DocumentModel {
|
|
|
82
92
|
sections?: SectionProperties[];
|
|
83
93
|
/** Package properties from `docProps/core.xml` (title, author, tags...). */
|
|
84
94
|
properties?: DocumentProperties;
|
|
95
|
+
/**
|
|
96
|
+
* Every core, extended and custom property the package was loaded with, read-only: what
|
|
97
|
+
* DOCPROPERTY fields show (the editable core fields in `properties` take their place).
|
|
98
|
+
*/
|
|
99
|
+
packageProperties?: DocumentPropertySet;
|
|
100
|
+
/**
|
|
101
|
+
* Package metadata Inspect Document reports and removes: extended and custom properties,
|
|
102
|
+
* custom XML data, the attached template, the reviewer list and the privacy settings.
|
|
103
|
+
*/
|
|
104
|
+
packageInformation?: import('./package-information.js').PackageInformation;
|
|
85
105
|
/** Whether `settings.xml` requests separate even-page headers/footers (`w:evenAndOddHeaders`). */
|
|
86
106
|
evenAndOddHeaders?: boolean;
|
|
87
107
|
/** `w:autoHyphenation` in settings.xml: Word hyphenates words at line ends. */
|
|
@@ -97,6 +117,11 @@ export interface DocumentModel {
|
|
|
97
117
|
* them and reads the twips. Measured the same in compatibility modes 12, 14 and 15 except pageBreakBefore.
|
|
98
118
|
*/
|
|
99
119
|
doNotUseHtmlParagraphAutoSpacing?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Document-wide kinsoku settings from settings.xml (`w:strictFirstAndLastChars`,
|
|
122
|
+
* `w:noLineBreaksBefore`, `w:noLineBreaksAfter`); read only, settings.xml is saved as loaded.
|
|
123
|
+
*/
|
|
124
|
+
kinsoku?: import('../text/kinsoku.js').KinsokuSettings;
|
|
100
125
|
/** Custom separator stories, including explicitly empty separators. */
|
|
101
126
|
footnoteSeparators?: {
|
|
102
127
|
separator?: Note;
|
package/dist/docx/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../docx/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../docx/model.ts"],"names":[],"mappings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AW;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,IAAI,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C;AACD,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,aAAa,CAAC;IACrB;sGACkG;IAClG,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC;6HACyH;IACzH,IAAI,CACH,KAAK,CAAC,EAAE,aAAa,EACrB,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACpD,OAAO,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,UAAU,CAAC,CAAC;IACvB;wGACoG;IACpG,QAAQ,CAAC,CACR,KAAK,CAAC,EAAE,aAAa,EACrB,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACpD,OAAO,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,UAAU,CAAC,CAAC;CACvB;AACD,wBAAgB,cAAc,IAAI,aAAa,CAc9C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { DocumentModel, Note, TextRun } from './model.js';
|
|
2
|
+
export type NoteKind = 'footnote' | 'endnote';
|
|
3
|
+
/** The three choices of Word's Convert Notes dialog. */
|
|
4
|
+
export type NoteConversion = 'footnotesToEndnotes' | 'endnotesToFootnotes' | 'swap';
|
|
5
|
+
/** Which notes to move: every note of a kind, or one note. */
|
|
6
|
+
export type NoteSelection = NoteConversion | {
|
|
7
|
+
kind: NoteKind;
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
type NoteParts = Pick<DocumentModel, 'footnotes' | 'endnotes'>;
|
|
11
|
+
type StyleCatalogs = Pick<DocumentModel, 'paragraphStyles' | 'characterStyles'>;
|
|
12
|
+
export interface NoteConversionPlan {
|
|
13
|
+
footnotes: Note[];
|
|
14
|
+
endnotes: Note[];
|
|
15
|
+
/** `kind:id` of each moved note to its new kind and id. */
|
|
16
|
+
moved: Map<string, {
|
|
17
|
+
kind: NoteKind;
|
|
18
|
+
id: string;
|
|
19
|
+
}>;
|
|
20
|
+
/** Notes left where they were because they hold content that cannot be moved yet. */
|
|
21
|
+
skipped: {
|
|
22
|
+
kind: NoteKind;
|
|
23
|
+
id: string;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
|
26
|
+
/** A reference run or note number mark moved to the other kind; other formatting is kept. */
|
|
27
|
+
export declare function convertNoteRun(run: TextRun, from: NoteKind, styles: StyleCatalogs): TextRun;
|
|
28
|
+
/**
|
|
29
|
+
* Plans moving the selected notes to the other part. `reservedIds` holds ids each part already
|
|
30
|
+
* uses on disk (such as notes deleted this session), so a moved note never takes one over.
|
|
31
|
+
*/
|
|
32
|
+
export declare function planNoteConversion(parts: NoteParts, selection: NoteSelection, styles?: StyleCatalogs, reservedIds?: Partial<Record<NoteKind, Iterable<string>>>): NoteConversionPlan;
|
|
33
|
+
/** The reference run retargeted by a plan, or the same run when its note did not move. */
|
|
34
|
+
export declare function retargetNoteReference(run: TextRun, plan: NoteConversionPlan, styles: StyleCatalogs): TextRun;
|
|
35
|
+
/**
|
|
36
|
+
* Word's Convert Notes on a whole model: moves the selected notes to the other part and
|
|
37
|
+
* retargets their references in the body. Emptied lists stay as `[]` so saving removes the
|
|
38
|
+
* notes from their old part. Notes the plan skipped are reported in `skipped`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function convertNotes(model: DocumentModel, selection: NoteSelection, reservedIds?: Partial<Record<NoteKind, Iterable<string>>>): {
|
|
41
|
+
model: DocumentModel;
|
|
42
|
+
plan: NoteConversionPlan;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=note-convert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note-convert.d.ts","sourceRoot":"","sources":["../../docx/note-convert.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EA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,wBAAgB,qBAAqB,CACpC,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,aAAa,GACnB,OAAO,CAKT;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC3B,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,aAAa,EACxB,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,GACvD;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAYpD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { NumberingCatalog, NumberingLevelDefinition } from './numbering-model.js';
|
|
2
|
+
/** Per `numId`, the current value of each level. */
|
|
3
|
+
export declare class NumberingCounters {
|
|
4
|
+
private counts;
|
|
5
|
+
private started;
|
|
6
|
+
private forNum;
|
|
7
|
+
private startedLevels;
|
|
8
|
+
/** Advances one level and resets deeper counters according to their resolved restart rules. */
|
|
9
|
+
advance(numId: string, level: number, def: NumberingLevelDefinition, catalog: NumberingCatalog): number;
|
|
10
|
+
/** Sets a level's value, as a LISTNUM `\s` start does, restarting the deeper levels. */
|
|
11
|
+
set(numId: string, level: number, value: number): void;
|
|
12
|
+
/** Current value for an ancestor placeholder, defaulting to its own start when never instantiated. */
|
|
13
|
+
current(numId: string, level: number, start: number): number;
|
|
14
|
+
}
|
|
15
|
+
/** A level's `w:lvlText` with each `%n` replaced by that level's current value. */
|
|
16
|
+
export declare function substituteLvlText(lvlText: string, numId: string, level: number, catalog: NumberingCatalog, counters: NumberingCounters, forceDecimal: boolean): string;
|
|
17
|
+
//# sourceMappingURL=numbering-counters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numbering-counters.d.ts","sourceRoot":"","sources":["../../docx/numbering-counters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAIpF,oDAAoD;AACpD,qBAAa,iBAAiB;IAC7B,OAAO,CAAC,MAAM,CAA0C;IACxD,OAAO,CAAC,OAAO,CAAkC;IAEjD,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,aAAa;IASrB,+FAA+F;IAC/F,OAAO,CACN,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,wBAAwB,EAC7B,OAAO,EAAE,gBAAgB,GACvB,MAAM,CA8BR;IAED,wFAAwF;IACxF,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAUrD;IAED,sGAAsG;IACtG,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3D;CACD;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAChC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,iBAAiB,EAC3B,YAAY,EAAE,OAAO,GACnB,MAAM,CAUR"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DocumentModel, Paragraph, ParagraphStyleCatalog } from './model.js';
|
|
2
2
|
import type { NumberingCatalog, ParagraphListLabel } from './numbering-model.js';
|
|
3
|
+
import { ListNumberFields } from './list-number-fields.js';
|
|
3
4
|
/** Formats one placeholder value using a level's numbering format. */
|
|
4
5
|
export declare function formatListNumber(numFmt: string, value: number): string;
|
|
5
6
|
/** Resolves the paragraph's effective `{ numId, level }`, direct or inherited through its style. */
|
|
@@ -7,11 +8,19 @@ export declare function resolveParagraphNumbering(paragraph: Paragraph, styleCat
|
|
|
7
8
|
numId: number;
|
|
8
9
|
level: number;
|
|
9
10
|
} | undefined;
|
|
11
|
+
/** List markers by paragraph id, and the LISTNUM fields counted with the same lists. */
|
|
12
|
+
export interface ListNumbering {
|
|
13
|
+
labels: Map<string, ParagraphListLabel>;
|
|
14
|
+
listNumbers: ListNumberFields;
|
|
15
|
+
}
|
|
10
16
|
/**
|
|
11
17
|
* Computes list markers for every numbered/bulleted paragraph in document order, tracking
|
|
12
|
-
* counter state across the document per `numId`/level
|
|
13
|
-
*
|
|
18
|
+
* counter state across the document per `numId`/level, and the LISTNUM fields that count with
|
|
19
|
+
* those lists (a LISTNUM moves its list on, so later markers count it). Purely derived from the
|
|
20
|
+
* model; never mutates it and is never itself part of the saved document.
|
|
14
21
|
*/
|
|
22
|
+
export declare function computeListNumbering(model: DocumentModel): ListNumbering;
|
|
23
|
+
/** List markers by paragraph id (see `computeListNumbering`). */
|
|
15
24
|
export declare function computeListLabels(model: DocumentModel): Map<string, ParagraphListLabel>;
|
|
16
25
|
export declare function displayListLabel(text: string): string;
|
|
17
26
|
//# sourceMappingURL=numbering-format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbering-format.d.ts","sourceRoot":"","sources":["../../docx/numbering-format.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE/E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"numbering-format.d.ts","sourceRoot":"","sources":["../../docx/numbering-format.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAI9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAUxD,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAiCtE;AAED,oGAAoG;AACpG,wBAAgB,yBAAyB,CACxC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,qBAAqB,GAAG,SAAS,EAC/C,gBAAgB,CAAC,EAAE,gBAAgB,GACjC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAgB9C;AAED,wFAAwF;AACxF,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACxC,WAAW,EAAE,gBAAgB,CAAC;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAcxE;AAED,iEAAiE;AACjE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAEvF;AAsDD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Word's outline numbering for levels 1 to 9, as prefix, `w:numFmt` and suffix: I. A. 1. a) (1)
|
|
3
|
+
* (a) (i) (a) (i). AUTONUMOUT numbers headings with it and LISTNUM's OutlineDefault list draws it.
|
|
4
|
+
*/
|
|
5
|
+
export declare const OUTLINE_NUMBERING: readonly [string, string, string][];
|
|
6
|
+
//# sourceMappingURL=outline-numbering.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outline-numbering.d.ts","sourceRoot":"","sources":["../../docx/outline-numbering.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAUhE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type JSZip from 'jszip';
|
|
2
|
+
import { type PackageInformation } from './package-information.js';
|
|
3
|
+
/** Removes the `<Relationship/>` tags `drop` selects from a `.rels` part, keeping the rest as written. */
|
|
4
|
+
export declare function removeRelationships(zip: JSZip, relsPath: string, drop: (type: string, target: string) => boolean): Promise<void>;
|
|
5
|
+
/** Deletes a part with its relationships part and content-type override. */
|
|
6
|
+
export declare function removePart(zip: JSZip, part: string): Promise<void>;
|
|
7
|
+
/** Applies the differences between the loaded package metadata and the model's. */
|
|
8
|
+
export declare function applyPackageInformation(zip: JSZip, next: PackageInformation | undefined, prior: PackageInformation | undefined): Promise<void>;
|
|
9
|
+
//# sourceMappingURL=package-information-save.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-information-save.d.ts","sourceRoot":"","sources":["../../docx/package-information-save.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAON,KAAK,kBAAkB,EACvB,MAAM,uBAAuB,CAAC;AAO/B,0GAA0G;AAC1G,wBAAsB,mBAAmB,CACxC,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,GAC7C,OAAO,CAAC,IAAI,CAAC,CAaf;AAED,4EAA4E;AAC5E,wBAAsB,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIxE;AAiFD,mFAAmF;AACnF,wBAAsB,uBAAuB,CAC5C,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,kBAAkB,GAAG,SAAS,EACpC,KAAK,EAAE,kBAAkB,GAAG,SAAS,GACnC,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type JSZip from 'jszip';
|
|
2
|
+
import { type XmlElement } from './xml.js';
|
|
3
|
+
/** Absent fields are unset; read once on load and compared with the loaded value on save. */
|
|
4
|
+
export interface PackageInformation {
|
|
5
|
+
/** `cp:category` (`docProps/core.xml`). */
|
|
6
|
+
category?: string;
|
|
7
|
+
/** `cp:contentStatus` (`docProps/core.xml`). */
|
|
8
|
+
contentStatus?: string;
|
|
9
|
+
/** `Company` (`docProps/app.xml`). */
|
|
10
|
+
company?: string;
|
|
11
|
+
/** `Manager` (`docProps/app.xml`). */
|
|
12
|
+
manager?: string;
|
|
13
|
+
/** `HyperlinkBase` (`docProps/app.xml`). */
|
|
14
|
+
hyperlinkBase?: string;
|
|
15
|
+
/** `Template` (`docProps/app.xml`): the attached template's file name. */
|
|
16
|
+
template?: string;
|
|
17
|
+
/** The target of `w:attachedTemplate` in settings.xml: the template's path or URL. */
|
|
18
|
+
attachedTemplate?: string;
|
|
19
|
+
/** Names of the custom properties in `docProps/custom.xml`, in order. */
|
|
20
|
+
customProperties?: string[];
|
|
21
|
+
/** Custom XML data parts (`customXml/item1.xml`...) related to the main document. */
|
|
22
|
+
customXmlParts?: string[];
|
|
23
|
+
/** `word/people.xml` exists: the identities of the people who reviewed the document. */
|
|
24
|
+
people?: boolean;
|
|
25
|
+
/** settings.xml has `w15:docId`, the document's persistent identifier. */
|
|
26
|
+
documentId?: boolean;
|
|
27
|
+
/** `w:removePersonalInformation` (17.15.1.69): Word strips personal information on save. */
|
|
28
|
+
removePersonalInformation?: boolean;
|
|
29
|
+
/** `w:removeDateAndTime` (17.15.1.70): Word strips revision and comment dates on save. */
|
|
30
|
+
removeDateAndTime?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare const DOCUMENT_PART = "word/document.xml";
|
|
33
|
+
export declare const DOCUMENT_RELS = "word/_rels/document.xml.rels";
|
|
34
|
+
export declare const SETTINGS_PART = "word/settings.xml";
|
|
35
|
+
export declare const SETTINGS_RELS = "word/_rels/settings.xml.rels";
|
|
36
|
+
export declare const CUSTOM_XML_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml";
|
|
37
|
+
export declare const PEOPLE_TYPE = "http://schemas.microsoft.com/office/2011/relationships/people";
|
|
38
|
+
export declare const ATTACHED_TEMPLATE_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate";
|
|
39
|
+
/** The settings element of `local` (in `ns`, WordprocessingML by default), if there is one. */
|
|
40
|
+
export declare const settingsChild: (root: XmlElement, local: string, ns?: string) => XmlElement | undefined;
|
|
41
|
+
/** Reads the package metadata, or undefined when the package has none of it. */
|
|
42
|
+
export declare function readPackageInformation(zip: JSZip): Promise<PackageInformation | undefined>;
|
|
43
|
+
//# sourceMappingURL=package-information.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-information.d.ts","sourceRoot":"","sources":["../../docx/package-information.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAG3D,6FAA6F;AAC7F,MAAM,WAAW,kBAAkB;IAClC,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4FAA4F;IAC5F,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,sBAAsB,CAAC;AACjD,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAC5D,eAAO,MAAM,aAAa,sBAAsB,CAAC;AACjD,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAC5D,eAAO,MAAM,eAAe,kFACoD,CAAC;AACjF,eAAO,MAAM,WAAW,kEAAkE,CAAC;AAC3F,eAAO,MAAM,sBAAsB,yFACoD,CAAC;AAIxF,+FAA+F;AAC/F,eAAO,MAAM,aAAa,SACnB,UAAU,SACT,MAAM,OACT,MAAM,KACR,UAAU,GAAG,SAA2C,CAAC;AAe5D,gFAAgF;AAChF,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAqBhG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type JSZip from 'jszip';
|
|
2
|
+
import { type DocumentPropertySet } from '../opc/properties/index.js';
|
|
3
|
+
/** The core, extended and custom properties of a package; undefined when it has none. */
|
|
4
|
+
export declare function readPackageProperties(zip: JSZip): Promise<DocumentPropertySet | undefined>;
|
|
5
|
+
//# sourceMappingURL=package-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-properties.d.ts","sourceRoot":"","sources":["../../docx/package-properties.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKN,KAAK,mBAAmB,EACxB,MAAM,yBAAyB,CAAC;AAiBjC,yFAAyF;AACzF,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAQhG"}
|
|
@@ -2,6 +2,8 @@ import type { Paragraph, ParagraphFormatting, ParagraphStyleCatalog } from './mo
|
|
|
2
2
|
import { type XmlElement } from './xml.js';
|
|
3
3
|
/** Pagination toggles whose element names match their model keys. */
|
|
4
4
|
export declare const PAGINATION_KEYS: readonly ['keepNext', 'keepLines', 'widowControl', 'contextualSpacing', 'suppressLineNumbers'];
|
|
5
|
+
/** East Asian typography toggles (`w:kinsoku`...); read-only, kept in the source XML on save. */
|
|
6
|
+
export declare const EAST_ASIAN_TYPOGRAPHY_KEYS: readonly ['kinsoku', 'autoSpaceDE', 'autoSpaceDN', 'overflowPunct'];
|
|
5
7
|
/** `w:outlineLvl` as a 1-9 level (0 for body text, `w:val="9"`); undefined when absent or invalid. */
|
|
6
8
|
export declare function parseOutlineLevel(element: XmlElement | undefined): number | undefined;
|
|
7
9
|
/** Parses `w:pPr` formatting (shared by styles, docDefaults and direct paragraph properties). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph-styles.d.ts","sourceRoot":"","sources":["../../docx/paragraph-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EAErB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAexF,qEAAqE;AACrE,eAAO,MAAM,eAAe,YAC3B,UAAU,EACV,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,qBAAqB,CACZ,CAAC;AAEX,sGAAsG;AACtG,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAMrF;AAED,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,mBAAmB,CAmDhF;AAmBD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAqC7E;AAoBD,0FAA0F;AAC1F,wBAAgB,0BAA0B,CACzC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,qBAAqB,GAC5B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"paragraph-styles.d.ts","sourceRoot":"","sources":["../../docx/paragraph-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EAErB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAexF,qEAAqE;AACrE,eAAO,MAAM,eAAe,YAC3B,UAAU,EACV,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,qBAAqB,CACZ,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM,0BAA0B,YACtC,SAAS,EACT,aAAa,EACb,aAAa,EACb,eAAe,CACN,CAAC;AAEX,sGAAsG;AACtG,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAMrF;AAED,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,mBAAmB,CAmDhF;AAmBD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAqC7E;AAoBD,0FAA0F;AAC1F,wBAAgB,0BAA0B,CACzC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,qBAAqB,GAC5B,mBAAmB,CAkDrB;AAED,8FAA8F;AAC9F,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,qBAAqB,GAC5B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAY9C"}
|
|
@@ -18,6 +18,8 @@ export interface OpenMoves {
|
|
|
18
18
|
export declare function isCommentReferenceRun(run: XmlElement): boolean;
|
|
19
19
|
/** Paragraph mark insertion/deletion, recorded as `w:pPr/w:rPr/w:ins|w:del`. */
|
|
20
20
|
export declare function paragraphMarkRevision(pPr: XmlElement | undefined): Revision | undefined;
|
|
21
|
+
/** Whole-row insertion/deletion, recorded as `w:trPr/w:ins|w:del`. */
|
|
22
|
+
export declare function rowRevision(trPr: XmlElement | undefined): Revision | undefined;
|
|
21
23
|
/** Preserve prior paragraph properties alongside their revision identity. */
|
|
22
24
|
export declare function paragraphFormatRevision(pPr: XmlElement | undefined): Revision | undefined;
|
|
23
25
|
/** Preserve the prior run-properties subtree alongside its revision identity. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-revisions.d.ts","sourceRoot":"","sources":["../../docx/parse-revisions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAMN,KAAK,UAAU,EAGf,MAAM,OAAO,CAAC;AASf,sGAAsG;AACtG,eAAO,MAAM,sBAAsB,UAAiC,CAAC;AACrE,eAAO,MAAM,oBAAoB,UAA+D,CAAC;AAEjG,iGAAiG;AACjG,MAAM,WAAW,SAAS;IACzB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACzC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACvC;AAsBD,iGAAiG;AACjG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAK9D;AAeD,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAOvF;AAED,6EAA6E;AAC7E,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAOzF;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAOnF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,UAAU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6E;AAC7E,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAOzF;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAOnF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,KAAK,OAAO,EAC3D,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,EAAE,GAAG,SAAS,EACxD,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,OAAO,CAAC,MAAM,CAAC,EACxD,MAAM,GAAE,MAAM,EAAO,EACrB,KAAK,GAAE,SAAwC,GAC7C;IAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAoDvC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TableFloatingPosition } from './table-model.js';
|
|
2
|
+
import { type XmlElement } from './xml.js';
|
|
3
|
+
/** The floating position of a table, or undefined when it has no `w:tblpPr`. */
|
|
4
|
+
export declare function parseTableFloating(element: XmlElement | undefined): TableFloatingPosition | undefined;
|
|
5
|
+
//# sourceMappingURL=parse-table-floating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-table-floating.d.ts","sourceRoot":"","sources":["../../docx/parse-table-floating.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAW9C,gFAAgF;AAChF,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,UAAU,GAAG,SAAS,GAC7B,qBAAqB,GAAG,SAAS,CAyBnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-table.d.ts","sourceRoot":"","sources":["../../docx/parse-table.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-table.d.ts","sourceRoot":"","sources":["../../docx/parse-table.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAyB,KAAK,UAAU,EAAW,MAAM,OAAO,CAAC;AAyJxE,8FAA8F;AAC9F,wBAAgB,UAAU,CACzB,IAAI,EAAE,UAAU,EAChB,EAAE,EAAE,MAAM,EACV,cAAc,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,KAAK,SAAS,GACtD,KAAK,CA2DP"}
|
package/dist/docx/parse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../docx/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../docx/parse.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAS,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2BpE,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,UAAU,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;CACpB;AAeD,wBAAsB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IAC3E,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACvC,CAAC,CAqMD;AAED,wBAAsB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAUvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"part-relationships.d.ts","sourceRoot":"","sources":["../../docx/part-relationships.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD,OAAO,EACN,qBAAqB,EAErB,KAAK,eAAe,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAMzC,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAQD,iGAAiG;AACjG,wBAAsB,gBAAgB,CACrC,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,WAAW,EAChB,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,qBAAqB,CAAC,CAUhC;AAED,4FAA4F;AAC5F,wBAAsB,qBAAqB,CAC1C,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,SAAS,eAAe,EAAE,EACnC,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAClD,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"part-relationships.d.ts","sourceRoot":"","sources":["../../docx/part-relationships.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD,OAAO,EACN,qBAAqB,EAErB,KAAK,eAAe,EACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAMzC,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAQD,iGAAiG;AACjG,wBAAsB,gBAAgB,CACrC,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,WAAW,EAChB,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,qBAAqB,CAAC,CAUhC;AAED,4FAA4F;AAC5F,wBAAsB,qBAAqB,CAC1C,GAAG,EAAE,KAAK,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,SAAS,eAAe,EAAE,EACnC,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAClD,OAAO,CAAC,IAAI,CAAC,CAiDf"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type JSZip from 'jszip';
|
|
2
|
+
import type { DocumentModel } from './model.js';
|
|
3
|
+
export declare const ANONYMOUS_AUTHOR = "Author";
|
|
4
|
+
export declare const ANONYMOUS_INITIALS = "A";
|
|
5
|
+
/** Authors and (with `dates`) revision and comment dates in WordprocessingML text, replaced. */
|
|
6
|
+
export declare function scrubPersonalXml(xml: string, dates: boolean): string;
|
|
7
|
+
/**
|
|
8
|
+
* The model with the personal information of its revisions and comments removed: authors become
|
|
9
|
+
* "Author", initials "A", and, with `dates`, their dates are dropped.
|
|
10
|
+
*/
|
|
11
|
+
export declare function anonymizeReviewers(model: DocumentModel, dates: boolean): DocumentModel;
|
|
12
|
+
/**
|
|
13
|
+
* What Word does to the package on a save with `w:removePersonalInformation` set: reviewer names
|
|
14
|
+
* and initials (and, with `dates`, dates) are removed from every story, and the parts that only
|
|
15
|
+
* identify reviewers (`people.xml`, the comment dates of `commentsExtensible.xml`) are deleted.
|
|
16
|
+
*/
|
|
17
|
+
export declare function scrubPersonalParts(zip: JSZip, dates: boolean): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=personal-information.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"personal-information.d.ts","sourceRoot":"","sources":["../../docx/personal-information.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,gGAAgG;AAChG,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAMpE;AA6BD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,aAAa,CAgBtF;AAKD;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBlF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type CropInsets } from '../geometry/picture-crop.js';
|
|
2
|
+
import type { InlineImage } from './inline-model.js';
|
|
3
|
+
/** A picture's four crop insets as fractions of the whole image (0 when not cropped). */
|
|
4
|
+
export declare function pictureCropOf(image: InlineImage): CropInsets;
|
|
5
|
+
/** The picture's whole (uncropped) size in CSS pixels at its current scale. */
|
|
6
|
+
export declare function uncroppedPictureSize(image: InlineImage): {
|
|
7
|
+
widthPx: number;
|
|
8
|
+
heightPx: number;
|
|
9
|
+
};
|
|
10
|
+
/** Whether insets leave some of the picture showing on both axes. */
|
|
11
|
+
export declare function isValidPictureCrop(crop: CropInsets): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* A copy of `image` cropped to `crop` (fractions of the whole image; negative values pad). The
|
|
14
|
+
* shown size is rescaled so the picture keeps its scale; a zero inset is dropped, and no inset at
|
|
15
|
+
* all leaves `crop` empty so the writer clears `a:srcRect`. Throws when nothing would show.
|
|
16
|
+
*/
|
|
17
|
+
export declare function setPictureCrop(image: InlineImage, crop: CropInsets): InlineImage;
|
|
18
|
+
//# sourceMappingURL=picture-crop-edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-crop-edit.d.ts","sourceRoot":"","sources":["../../docx/picture-crop-edit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,yFAAyF;AACzF,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,CAQ5D;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAM9F;AAED,qEAAqE;AACrE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAM5D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,GAAG,WAAW,CAkBhF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { InlineImage, PictureWatermarkSpec } from './inline-model.js';
|
|
2
|
+
import { type XmlDocument, type XmlElement } from './xml.js';
|
|
3
|
+
export declare const PICTURE_WATERMARK_PREFIX = "WordPictureWatermark";
|
|
4
|
+
export declare const WASHOUT_GAIN = "19661f";
|
|
5
|
+
export declare const WASHOUT_BLACKLEVEL = "22938f";
|
|
6
|
+
/** Word's Scale choices in the Printed Watermark dialog, as percentages. */
|
|
7
|
+
export declare const PICTURE_WATERMARK_SCALES: readonly [500, 200, 150, 100, 50];
|
|
8
|
+
/**
|
|
9
|
+
* The picture watermark a `v:shape` describes, or undefined when it is not one. `resolve` maps the
|
|
10
|
+
* `v:imagedata` relationship to the header part's picture.
|
|
11
|
+
*/
|
|
12
|
+
export declare function parsePictureWatermarkShape(shape: XmlElement | undefined, resolve: (relId: string) => Pick<InlineImage, 'relId' | 'partName' | 'contentType'> | undefined): InlineImage | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The drawn size for a picture of `natural` points: a percentage of it, or for `auto` the largest
|
|
15
|
+
* size that fits the text area `box` with the picture's proportions.
|
|
16
|
+
*/
|
|
17
|
+
export declare function pictureWatermarkSizePt(natural: {
|
|
18
|
+
widthPt: number;
|
|
19
|
+
heightPt: number;
|
|
20
|
+
}, scale: 'auto' | number, box: {
|
|
21
|
+
widthPt: number;
|
|
22
|
+
heightPt: number;
|
|
23
|
+
}): {
|
|
24
|
+
widthPt: number;
|
|
25
|
+
heightPt: number;
|
|
26
|
+
};
|
|
27
|
+
/** A `w:r` holding Word's picture-watermark VML for `spec`, pointing at relationship `relId`. */
|
|
28
|
+
export declare function buildPictureWatermarkRun(doc: XmlDocument, spec: PictureWatermarkSpec, relId: string, uniqueId: string): XmlElement;
|
|
29
|
+
//# sourceMappingURL=picture-watermark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picture-watermark.d.ts","sourceRoot":"","sources":["../../docx/picture-watermark.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAA+B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAMvF,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAC/D,eAAO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB,YAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAU,CAAC;AA0B1E;;;GAGG;AACH,wBAAgB,0BAA0B,CACzC,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG,SAAS,GAC7F,WAAW,GAAG,SAAS,CA8BzB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC9C,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,GAAG,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAMvC;AAED,iGAAiG;AACjG,wBAAgB,wBAAwB,CACvC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,oBAAoB,EAC1B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACd,UAAU,CAwDZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationship-allocator.d.ts","sourceRoot":"","sources":["../../docx/relationship-allocator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,mBAAmB,EAAsB,MAAM,cAAc,CAAC;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"relationship-allocator.d.ts","sourceRoot":"","sources":["../../docx/relationship-allocator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,mBAAmB,EAAsB,MAAM,cAAc,CAAC;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAqB,KAAK,WAAW,EAAmB,MAAM,OAAO,CAAC;AAE7E,eAAO,MAAM,2BAA2B,iFAA+B,C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AG,MAAM,CAajC;IAED,oFAAoF;IACpF,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAY3C;IAED,wGAAwG;IACxG,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAUlC;IAED,IAAI,gBAAgB,IAAI,SAAS,eAAe,EAAE,CAEjD;CACD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DocumentModel } from './model.js';
|
|
2
|
+
import { type InspectionCategory } from './inspect-document.js';
|
|
3
|
+
/**
|
|
4
|
+
* The model with everything Inspect Document reports for `categories` removed. Saving it writes
|
|
5
|
+
* what Word writes after Remove All; package parts that only held the information are deleted.
|
|
6
|
+
*/
|
|
7
|
+
export declare function removeDocumentInformation(model: DocumentModel, categories: readonly InspectionCategory[]): DocumentModel;
|
|
8
|
+
//# sourceMappingURL=remove-document-information.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-document-information.d.ts","sourceRoot":"","sources":["../../docx/remove-document-information.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAEX,aAAa,EAIb,MAAM,SAAS,CAAC;AAIjB,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AA6H1E;;;GAGG;AACH,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,SAAS,kBAAkB,EAAE,GACvC,aAAa,CAIf"}
|
|
@@ -12,8 +12,13 @@ export interface RevisionEntry {
|
|
|
12
12
|
name: string;
|
|
13
13
|
rangeId?: string;
|
|
14
14
|
};
|
|
15
|
+
/** A whole-row insertion or deletion (`w:trPr/w:ins|w:del`): the table and its row. */
|
|
16
|
+
row?: {
|
|
17
|
+
tableId: string;
|
|
18
|
+
index: number;
|
|
19
|
+
};
|
|
15
20
|
}
|
|
16
|
-
/** Lists every run/paragraph revision in document order, for navigation and enumeration. */
|
|
21
|
+
/** Lists every row/run/paragraph revision in document order, for navigation and enumeration. */
|
|
17
22
|
export declare function listRevisions(model: DocumentModel): RevisionEntry[];
|
|
18
23
|
export declare function findRevision(model: DocumentModel, id: string): RevisionEntry | undefined;
|
|
19
24
|
/** Resolve a paragraph boundary using the following paragraph's formatting when merging. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revision-commands.d.ts","sourceRoot":"","sources":["../../docx/revision-commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAS,aAAa,EAAa,MAAM,SAAS,CAAC;AAK/D,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,iBAAiB,CAAC;IACvF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"revision-commands.d.ts","sourceRoot":"","sources":["../../docx/revision-commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAS,aAAa,EAAa,MAAM,SAAS,CAAC;AAK/D,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,iBAAiB,CAAC;IACvF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,uFAAuF;IACvF,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC;AAgCD,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,EAAE,CAiBnE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAExF;AAsDD,4FAA4F;AAC5F,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,aAAa,EACpB,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,OAAO,GAChB,aAAa,CA8Bf;AAED,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAW5E;AAcD,6GAA6G;AAC7G,eAAO,MAAM,cAAc,UAAW,aAAa,MAAM,MAAM,KAAG,aAC9B,CAAC;AACrC,yFAAyF;AACzF,eAAO,MAAM,cAAc,UAAW,aAAa,MAAM,MAAM,KAAG,aAC9B,CAAC;AA2FrC,eAAO,MAAM,kBAAkB,UAAW,aAAa,KAAG,aAC1B,CAAC;AACjC,eAAO,MAAM,kBAAkB,UAAW,aAAa,KAAG,aAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revision-ids.d.ts","sourceRoot":"","sources":["../../docx/revision-ids.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"revision-ids.d.ts","sourceRoot":"","sources":["../../docx/revision-ids.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAA8B,MAAM,SAAS,CAAC;AASzE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,SAAK,GAAG,aAAa,CA8CvF;AASD,kGAAkG;AAClG,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKzD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TextRun } from './model.js';
|
|
2
|
+
import type { RunFormattingContext } from './run-formatting.js';
|
|
3
|
+
/**
|
|
4
|
+
* The East Asian language of a run (`w:lang/@w:eastAsia`) through the style hierarchy: direct,
|
|
5
|
+
* then the character style chain, the paragraph style chain and the document defaults. Like the
|
|
6
|
+
* rest of run formatting this is a display projection; nothing is flattened into the run.
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveEastAsiaLanguage(run: TextRun, context?: RunFormattingContext): string | undefined;
|
|
9
|
+
//# sourceMappingURL=run-language.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-language.d.ts","sourceRoot":"","sources":["../../docx/run-language.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,oBAAyB,GAChC,MAAM,GAAG,SAAS,CAuBpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TextRun } from './model.js';
|
|
2
|
+
import { type XmlElement } from './xml.js';
|
|
3
|
+
/**
|
|
4
|
+
* The `w:rPr` the ordinary writer produces for a run's formatting, as a detached element: the
|
|
5
|
+
* prior-properties snapshot a formatting revision (`w:rPrChange`) records. Script fonts and opaque
|
|
6
|
+
* source properties are kept; text, pictures, equations and revisions are not part of it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function runPropertiesElement(source: TextRun): XmlElement;
|
|
9
|
+
//# sourceMappingURL=run-properties-snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-properties-snapshot.d.ts","sourceRoot":"","sources":["../../docx/run-properties-snapshot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAShE"}
|
|
@@ -11,10 +11,14 @@ export interface CharacterStyleDefinition {
|
|
|
11
11
|
linkedStyle?: string;
|
|
12
12
|
isDefault?: boolean;
|
|
13
13
|
formatting: RunFormatting;
|
|
14
|
+
/** `w:rPr/w:lang/@w:eastAsia`, which selects the kinsoku set of the style's text. */
|
|
15
|
+
eastAsiaLanguage?: string;
|
|
14
16
|
}
|
|
15
17
|
/** Parsed run-level style data (docDefaults `rPrDefault` plus character/paragraph style `rPr`). Read-only catalog. */
|
|
16
18
|
export interface RunStyleCatalog {
|
|
17
19
|
docDefaults: RunFormatting;
|
|
20
|
+
/** `w:rPrDefault`'s `w:lang/@w:eastAsia`. */
|
|
21
|
+
docDefaultsEastAsiaLanguage?: string;
|
|
18
22
|
styles: Record<string, CharacterStyleDefinition>;
|
|
19
23
|
warnings: string[];
|
|
20
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-style-model.d.ts","sourceRoot":"","sources":["../../docx/run-style-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,wGAAwG;AACxG,MAAM,MAAM,aAAa,GAAG,IAAI,CAC/B,OAAO,EACL,MAAM,GACN,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,QAAQ,GACR,cAAc,GACd,MAAM,GACN,WAAW,GACX,QAAQ,GACR,WAAW,GACX,eAAe,GACf,UAAU,GACV,YAAY,GACZ,oBAAoB,GACpB,yBAAyB,GACzB,uBAAuB,GACvB,mBAAmB,GACnB,qBAAqB,GACrB,WAAW,GACX,OAAO,GACP,YAAY,GACZ,uBAAuB,GACvB,kBAAkB,GAClB,WAAW,GACX,mBAAmB,GACnB,oBAAoB,GACpB,aAAa,GACb,kBAAkB,CACpB,CAAC;AACF,uGAAuG;AACvG,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,GAAG,WAAW,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,aAAa,CAAC;CAC1B;AACD,sHAAsH;AACtH,MAAM,WAAW,eAAe;IAC/B,WAAW,EAAE,aAAa,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"run-style-model.d.ts","sourceRoot":"","sources":["../../docx/run-style-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,wGAAwG;AACxG,MAAM,MAAM,aAAa,GAAG,IAAI,CAC/B,OAAO,EACL,MAAM,GACN,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,QAAQ,GACR,cAAc,GACd,MAAM,GACN,WAAW,GACX,QAAQ,GACR,WAAW,GACX,eAAe,GACf,UAAU,GACV,YAAY,GACZ,oBAAoB,GACpB,yBAAyB,GACzB,uBAAuB,GACvB,mBAAmB,GACnB,qBAAqB,GACrB,WAAW,GACX,OAAO,GACP,YAAY,GACZ,uBAAuB,GACvB,kBAAkB,GAClB,WAAW,GACX,mBAAmB,GACnB,oBAAoB,GACpB,aAAa,GACb,kBAAkB,CACpB,CAAC;AACF,uGAAuG;AACvG,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,GAAG,WAAW,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,aAAa,CAAC;IAC1B,qFAAqF;IACrF,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,sHAAsH;AACtH,MAAM,WAAW,eAAe;IAC/B,WAAW,EAAE,aAAa,CAAC;IAC3B,6CAA6C;IAC7C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB"}
|