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
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkMMULWQOM_cjs = require('./chunk-MMULWQOM.cjs');
|
|
4
|
+
|
|
5
|
+
// pptx/core/core/runtime/xml-child-scan.ts
|
|
6
|
+
function isXmlObject(value) {
|
|
7
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
8
|
+
}
|
|
9
|
+
function ensureItems(value) {
|
|
10
|
+
if (value === void 0 || value === null) {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
return Array.isArray(value) ? value : [value];
|
|
14
|
+
}
|
|
15
|
+
function localName(name) {
|
|
16
|
+
const colon = name.indexOf(":");
|
|
17
|
+
return colon >= 0 ? name.slice(colon + 1) : name;
|
|
18
|
+
}
|
|
19
|
+
var TAG_NAME_RE = /<(\/)?([A-Za-z_][\w.:-]*)/uy;
|
|
20
|
+
function findTagClose(xml, start) {
|
|
21
|
+
let index = start;
|
|
22
|
+
while (index < xml.length) {
|
|
23
|
+
const char = xml[index];
|
|
24
|
+
if (char === '"' || char === "'") {
|
|
25
|
+
const closingQuote = xml.indexOf(char, index + 1);
|
|
26
|
+
index = closingQuote === -1 ? xml.length : closingQuote + 1;
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (char === ">") {
|
|
30
|
+
return index + 1;
|
|
31
|
+
}
|
|
32
|
+
index++;
|
|
33
|
+
}
|
|
34
|
+
return xml.length;
|
|
35
|
+
}
|
|
36
|
+
function nextTag(xml, from) {
|
|
37
|
+
let open = xml.indexOf("<", from);
|
|
38
|
+
while (open !== -1) {
|
|
39
|
+
TAG_NAME_RE.lastIndex = open;
|
|
40
|
+
const nameMatch = TAG_NAME_RE.exec(xml);
|
|
41
|
+
if (nameMatch) {
|
|
42
|
+
const end = findTagClose(xml, open);
|
|
43
|
+
const selfClosing = xml[end - 2] === "/";
|
|
44
|
+
return { closing: Boolean(nameMatch[1]), selfClosing, name: nameMatch[2], start: open, end };
|
|
45
|
+
}
|
|
46
|
+
open = xml.indexOf("<", open + 1);
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
function scanDirectChildren(inner) {
|
|
51
|
+
const children = [];
|
|
52
|
+
let depth = 0;
|
|
53
|
+
let open = null;
|
|
54
|
+
let cursor = 0;
|
|
55
|
+
let tag = nextTag(inner, cursor);
|
|
56
|
+
while (tag) {
|
|
57
|
+
if (tag.closing) {
|
|
58
|
+
depth = Math.max(0, depth - 1);
|
|
59
|
+
if (depth === 0 && open) {
|
|
60
|
+
children.push({ tag: open.tag, inner: inner.slice(open.innerStart, tag.start) });
|
|
61
|
+
open = null;
|
|
62
|
+
}
|
|
63
|
+
} else if (tag.selfClosing) {
|
|
64
|
+
if (depth === 0) {
|
|
65
|
+
children.push({ tag: tag.name, inner: "" });
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
if (depth === 0) {
|
|
69
|
+
open = { tag: tag.name, innerStart: tag.end };
|
|
70
|
+
}
|
|
71
|
+
depth++;
|
|
72
|
+
}
|
|
73
|
+
cursor = tag.end;
|
|
74
|
+
tag = nextTag(inner, cursor);
|
|
75
|
+
}
|
|
76
|
+
return children;
|
|
77
|
+
}
|
|
78
|
+
function extractElementInnerXml(xml, wanted) {
|
|
79
|
+
const fragments = [];
|
|
80
|
+
let cursor = 0;
|
|
81
|
+
let tag = nextTag(xml, cursor);
|
|
82
|
+
while (tag) {
|
|
83
|
+
if (tag.closing || localName(tag.name) !== wanted) {
|
|
84
|
+
cursor = tag.end;
|
|
85
|
+
tag = nextTag(xml, cursor);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (tag.selfClosing) {
|
|
89
|
+
fragments.push("");
|
|
90
|
+
cursor = tag.end;
|
|
91
|
+
tag = nextTag(xml, cursor);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
const innerStart = tag.end;
|
|
95
|
+
let depth = 1;
|
|
96
|
+
let inner = xml.slice(innerStart);
|
|
97
|
+
let nested = nextTag(xml, innerStart);
|
|
98
|
+
while (nested) {
|
|
99
|
+
if (localName(nested.name) === wanted) {
|
|
100
|
+
depth += nested.closing ? -1 : nested.selfClosing ? 0 : 1;
|
|
101
|
+
if (depth === 0) {
|
|
102
|
+
inner = xml.slice(innerStart, nested.start);
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
nested = nextTag(xml, nested.end);
|
|
107
|
+
}
|
|
108
|
+
fragments.push(inner);
|
|
109
|
+
cursor = nested ? nested.end : xml.length;
|
|
110
|
+
tag = nextTag(xml, cursor);
|
|
111
|
+
}
|
|
112
|
+
return fragments;
|
|
113
|
+
}
|
|
114
|
+
function isGroupedByTag(tags) {
|
|
115
|
+
const seen = /* @__PURE__ */ new Set();
|
|
116
|
+
let previous = "";
|
|
117
|
+
for (const tag of tags) {
|
|
118
|
+
if (tag !== previous && seen.has(tag)) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
seen.add(tag);
|
|
122
|
+
previous = tag;
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// pptx/core/core/runtime/paragraph-sibling-order.ts
|
|
128
|
+
var childOrder = /* @__PURE__ */ new WeakMap();
|
|
129
|
+
var groupedParagraphs = /* @__PURE__ */ new WeakSet();
|
|
130
|
+
function hasOwnFontDeclaration(node) {
|
|
131
|
+
return chunkMMULWQOM_cjs.xmlHasChild(node, "a:latin") || chunkMMULWQOM_cjs.xmlHasChild(node, "a:ea") || chunkMMULWQOM_cjs.xmlHasChild(node, "a:cs");
|
|
132
|
+
}
|
|
133
|
+
var MIXED_CONTENT_MARKERS = ["<a:fld", "<a:br", "m:oMath", "a14:m", "mc:AlternateContent"];
|
|
134
|
+
function tagSequenceSignature(tags) {
|
|
135
|
+
const counts = /* @__PURE__ */ new Map();
|
|
136
|
+
for (const tag of tags) {
|
|
137
|
+
counts.set(tag, (counts.get(tag) ?? 0) + 1);
|
|
138
|
+
}
|
|
139
|
+
return signatureOf(counts);
|
|
140
|
+
}
|
|
141
|
+
function parsedParagraphSignature(paragraph) {
|
|
142
|
+
const counts = /* @__PURE__ */ new Map();
|
|
143
|
+
for (const [key, value] of Object.entries(paragraph)) {
|
|
144
|
+
if (key.startsWith("@_") || key === "#text") {
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
counts.set(key, (counts.get(key) ?? 0) + ensureItems(value).length);
|
|
148
|
+
}
|
|
149
|
+
return signatureOf(counts);
|
|
150
|
+
}
|
|
151
|
+
function signatureOf(counts) {
|
|
152
|
+
return [...counts.entries()].sort((a, b) => a[0] < b[0] ? -1 : 1).map(([name, count]) => `${name}:${count}`).join(",");
|
|
153
|
+
}
|
|
154
|
+
function collectParsedParagraphs(root) {
|
|
155
|
+
const result = [];
|
|
156
|
+
const stack = [root];
|
|
157
|
+
while (stack.length > 0) {
|
|
158
|
+
const current = stack.pop();
|
|
159
|
+
if (!current || typeof current !== "object") {
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (Array.isArray(current)) {
|
|
163
|
+
for (let index = current.length - 1; index >= 0; index--) {
|
|
164
|
+
stack.push(current[index]);
|
|
165
|
+
}
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
for (const [key, value] of Object.entries(current).reverse()) {
|
|
169
|
+
if (key.startsWith("@_")) {
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
if (localName(key) === "p") {
|
|
173
|
+
for (const item of ensureItems(value)) {
|
|
174
|
+
if (isXmlObject(item)) {
|
|
175
|
+
result.push(item);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
} else {
|
|
179
|
+
stack.push(value);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return result;
|
|
184
|
+
}
|
|
185
|
+
function annotateParagraphSiblingOrder(xml, parsed) {
|
|
186
|
+
if (!MIXED_CONTENT_MARKERS.some((marker) => xml.includes(marker))) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
const orders = extractElementInnerXml(xml, "p").map((inner) => scanDirectChildren(inner).map((child) => child.tag)).filter((order) => order.length > 0);
|
|
190
|
+
if (orders.length === 0) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const bySignature = /* @__PURE__ */ new Map();
|
|
194
|
+
for (const order of orders) {
|
|
195
|
+
const signature = tagSequenceSignature(order);
|
|
196
|
+
const bucket = bySignature.get(signature);
|
|
197
|
+
if (bucket) {
|
|
198
|
+
bucket.push(order);
|
|
199
|
+
} else {
|
|
200
|
+
bySignature.set(signature, [order]);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
for (const paragraph of collectParsedParagraphs(parsed)) {
|
|
204
|
+
const order = bySignature.get(parsedParagraphSignature(paragraph))?.shift();
|
|
205
|
+
if (!order) {
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
if (isGroupedByTag(order)) {
|
|
209
|
+
groupedParagraphs.add(paragraph);
|
|
210
|
+
} else {
|
|
211
|
+
childOrder.set(paragraph, order);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
function paragraphContentEntries(paragraph, contentTags) {
|
|
216
|
+
const order = childOrder.get(paragraph);
|
|
217
|
+
if (!order) {
|
|
218
|
+
const entries2 = Object.keys(paragraph).flatMap(
|
|
219
|
+
(key) => contentTags.has(key) ? ensureItems(paragraph[key]).map((item) => [key, item]) : []
|
|
220
|
+
);
|
|
221
|
+
return { entries: entries2, authored: groupedParagraphs.has(paragraph) };
|
|
222
|
+
}
|
|
223
|
+
const consumed = /* @__PURE__ */ new Map();
|
|
224
|
+
const entries = [];
|
|
225
|
+
for (const tag of order) {
|
|
226
|
+
const index = consumed.get(tag) ?? 0;
|
|
227
|
+
consumed.set(tag, index + 1);
|
|
228
|
+
if (!contentTags.has(tag)) {
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
const item = ensureItems(paragraph[tag])[index];
|
|
232
|
+
if (item !== void 0) {
|
|
233
|
+
entries.push([tag, item]);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return { entries, authored: true };
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
exports.annotateParagraphSiblingOrder = annotateParagraphSiblingOrder;
|
|
240
|
+
exports.ensureItems = ensureItems;
|
|
241
|
+
exports.extractElementInnerXml = extractElementInnerXml;
|
|
242
|
+
exports.hasOwnFontDeclaration = hasOwnFontDeclaration;
|
|
243
|
+
exports.isGroupedByTag = isGroupedByTag;
|
|
244
|
+
exports.isXmlObject = isXmlObject;
|
|
245
|
+
exports.localName = localName;
|
|
246
|
+
exports.paragraphContentEntries = paragraphContentEntries;
|
|
247
|
+
exports.scanDirectChildren = scanDirectChildren;
|