ooxml-ui 1.22.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/{chunk-REJECZGV.js → chunk-6RCASLEC.js} +1 -1
  2. package/dist/{chunk-DRBAJ5UO.js → chunk-FX6CF43K.js} +2 -1
  3. package/dist/chunk-HTIJ2EAA.js +364 -0
  4. package/dist/docx/backstage-pages.d.ts +5 -0
  5. package/dist/docx/backstage.d.ts +7 -0
  6. package/dist/docx/component.d.ts +1 -0
  7. package/dist/docx/context-menu.d.ts +6 -0
  8. package/dist/docx/customization-apply.d.ts +12 -0
  9. package/dist/docx/customization.d.ts +52 -0
  10. package/dist/docx/editor-chrome.d.ts +19 -0
  11. package/dist/docx/editor-core.d.ts +23 -1
  12. package/dist/docx/element-api.d.ts +18 -0
  13. package/dist/docx/events.d.ts +13 -2
  14. package/dist/docx/file-commands.d.ts +12 -6
  15. package/dist/docx/index.d.ts +3 -0
  16. package/dist/docx/keyboard.d.ts +2 -0
  17. package/dist/docx/shortcut-help.d.ts +2 -1
  18. package/dist/docx/title-bar.d.ts +2 -0
  19. package/dist/docx/view-options.d.ts +5 -0
  20. package/dist/docx.js +355 -108
  21. package/dist/embedding/host-backstage.d.ts +33 -0
  22. package/dist/embedding/host-menu.d.ts +33 -0
  23. package/dist/embedding/index.d.ts +3 -0
  24. package/dist/embedding/region-host.d.ts +38 -0
  25. package/dist/embedding/region-host.d.ts.map +1 -0
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.js +3 -3
  28. package/dist/parse-worker.js +3 -1
  29. package/dist/pptx/ai/index.cjs +4 -5
  30. package/dist/pptx/ai/index.mjs +2 -3
  31. package/dist/pptx/{chart-3d-view-scene-6LQRJAM3.mjs → chart-3d-view-scene-CDIMM5T3.mjs} +0 -1
  32. package/dist/pptx/{chart-3d-view-scene-FAKI4QKT.cjs → chart-3d-view-scene-RYL7F65H.cjs} +0 -1
  33. package/dist/pptx/{chat-history-idb-FJWHIDOK.cjs → chat-history-idb-PGLJPVOI.cjs} +2 -3
  34. package/dist/pptx/{chat-history-idb-XWRFLX2R.mjs → chat-history-idb-XXPB3Q4U.mjs} +1 -2
  35. package/dist/pptx/{chunk-C22MU5CA.cjs → chunk-43NFRLCD.cjs} +2 -2
  36. package/dist/pptx/{chunk-3IN66FIL.mjs → chunk-72P6AWRA.mjs} +1 -1
  37. package/dist/pptx/{chunk-ANKJE2PT.mjs → chunk-7DIZOCO4.mjs} +5 -9
  38. package/dist/pptx/{chunk-G2LGZNTI.cjs → chunk-A5MANNJR.cjs} +1 -1
  39. package/dist/pptx/{chunk-T34B6TZT.cjs → chunk-B4GBGPNL.cjs} +35 -29
  40. package/dist/pptx/{chunk-75S3RTSS.mjs → chunk-B5FR65LB.mjs} +2 -2
  41. package/dist/pptx/{chunk-LLENQTWZ.mjs → chunk-LVDF75JU.mjs} +1 -1
  42. package/dist/pptx/{chunk-VGOIAVPA.mjs → chunk-TK5LA3Z6.mjs} +441 -7154
  43. package/dist/pptx/{chunk-72NIN6QF.cjs → chunk-WX77UUR5.cjs} +418 -7099
  44. package/dist/pptx/{chunk-W7CBPO77.cjs → chunk-ZO43VVWQ.cjs} +2 -2
  45. package/dist/pptx/dom/index.cjs +220 -221
  46. package/dist/pptx/dom/index.mjs +5 -6
  47. package/dist/pptx/export/canvas-color-fix.cjs +0 -1
  48. package/dist/pptx/export/canvas-color-fix.mjs +0 -1
  49. package/dist/pptx/export/handout-layout.cjs +0 -1
  50. package/dist/pptx/export/handout-layout.mjs +0 -1
  51. package/dist/pptx/export/handout-master-chrome.cjs +0 -1
  52. package/dist/pptx/export/handout-master-chrome.mjs +0 -1
  53. package/dist/pptx/export/html-escape.cjs +0 -1
  54. package/dist/pptx/export/html-escape.mjs +0 -1
  55. package/dist/pptx/export/html2canvas-clone.cjs +2 -3
  56. package/dist/pptx/export/html2canvas-clone.mjs +1 -2
  57. package/dist/pptx/export/index.d.ts +1 -0
  58. package/dist/pptx/export/index.d.ts.map +1 -1
  59. package/dist/pptx/export/pdf-page-size.cjs +0 -1
  60. package/dist/pptx/export/pdf-page-size.mjs +0 -1
  61. package/dist/pptx/export/presentation-save.d.ts +40 -0
  62. package/dist/pptx/export/presentation-save.d.ts.map +1 -0
  63. package/dist/pptx/export/print-document.cjs +0 -1
  64. package/dist/pptx/export/print-document.mjs +0 -1
  65. package/dist/pptx/export/video-plan.cjs +0 -1
  66. package/dist/pptx/export/video-plan.mjs +0 -1
  67. package/dist/pptx/i18n/index.cjs +0 -1
  68. package/dist/pptx/i18n/index.mjs +0 -1
  69. package/dist/pptx/index.cjs +3027 -2952
  70. package/dist/pptx/index.mjs +4 -5
  71. package/dist/pptx/loader/index.cjs +0 -1
  72. package/dist/pptx/loader/index.mjs +0 -1
  73. package/dist/pptx/render/account.d.ts +8 -3
  74. package/dist/pptx/render/account.d.ts.map +1 -1
  75. package/dist/pptx/render/animation-authoring.cjs +0 -1
  76. package/dist/pptx/render/animation-authoring.mjs +0 -1
  77. package/dist/pptx/render/animation-preset-labels.cjs +0 -1
  78. package/dist/pptx/render/animation-preset-labels.mjs +0 -1
  79. package/dist/pptx/render/autosave-host-store.d.ts +28 -0
  80. package/dist/pptx/render/autosave-host-store.d.ts.map +1 -0
  81. package/dist/pptx/render/autosave-maintenance.d.ts +18 -0
  82. package/dist/pptx/render/autosave-maintenance.d.ts.map +1 -0
  83. package/dist/pptx/render/autosave-recovery.d.ts +5 -3
  84. package/dist/pptx/render/autosave-recovery.d.ts.map +1 -1
  85. package/dist/pptx/render/autosave-store.d.ts +9 -11
  86. package/dist/pptx/render/autosave-store.d.ts.map +1 -1
  87. package/dist/pptx/render/backstage.d.ts +3 -2
  88. package/dist/pptx/render/backstage.d.ts.map +1 -1
  89. package/dist/pptx/render/chart-combo-stock.cjs +0 -1
  90. package/dist/pptx/render/chart-combo-stock.mjs +0 -1
  91. package/dist/pptx/render/chart-overlays.cjs +0 -1
  92. package/dist/pptx/render/chart-overlays.mjs +0 -1
  93. package/dist/pptx/render/chart-surface-treemap.cjs +0 -1
  94. package/dist/pptx/render/chart-surface-treemap.mjs +0 -1
  95. package/dist/pptx/render/chart-view-model.cjs +0 -1
  96. package/dist/pptx/render/chart-view-model.mjs +0 -1
  97. package/dist/pptx/render/chart-waterfall-map.cjs +0 -1
  98. package/dist/pptx/render/chart-waterfall-map.mjs +0 -1
  99. package/dist/pptx/render/content-part-strokes.cjs +0 -1
  100. package/dist/pptx/render/content-part-strokes.mjs +0 -1
  101. package/dist/pptx/render/context-menu-target.cjs +0 -1
  102. package/dist/pptx/render/context-menu-target.mjs +0 -1
  103. package/dist/pptx/render/custom-fonts.cjs +0 -1
  104. package/dist/pptx/render/custom-fonts.mjs +0 -1
  105. package/dist/pptx/render/customization/customization-regions.d.ts +15 -32
  106. package/dist/pptx/render/customization/customization-regions.d.ts.map +1 -1
  107. package/dist/pptx/render/customization/customization-surfaces.d.ts.map +1 -1
  108. package/dist/pptx/render/customization/customization-types.d.ts +3 -2
  109. package/dist/pptx/render/customization/customization-types.d.ts.map +1 -1
  110. package/dist/pptx/render/customization/host-menu-commands.d.ts +6 -25
  111. package/dist/pptx/render/customization/host-menu-commands.d.ts.map +1 -1
  112. package/dist/pptx/render/element-hit-test.cjs +0 -1
  113. package/dist/pptx/render/element-hit-test.mjs +0 -1
  114. package/dist/pptx/render/font-catalog.cjs +0 -1
  115. package/dist/pptx/render/font-catalog.mjs +0 -1
  116. package/dist/pptx/render/format-painter.cjs +5 -6
  117. package/dist/pptx/render/format-painter.mjs +2 -3
  118. package/dist/pptx/render/hyperlink-security.cjs +0 -1
  119. package/dist/pptx/render/hyperlink-security.mjs +0 -1
  120. package/dist/pptx/render/image-file-insertion.cjs +0 -1
  121. package/dist/pptx/render/image-file-insertion.mjs +0 -1
  122. package/dist/pptx/render/index.d.ts +2 -0
  123. package/dist/pptx/render/index.d.ts.map +1 -1
  124. package/dist/pptx/render/ink-rendering.cjs +0 -1
  125. package/dist/pptx/render/ink-rendering.mjs +0 -1
  126. package/dist/pptx/render/inspector-helpers.cjs +13 -14
  127. package/dist/pptx/render/inspector-helpers.mjs +1 -2
  128. package/dist/pptx/render/layout-gallery.cjs +0 -1
  129. package/dist/pptx/render/layout-gallery.mjs +0 -1
  130. package/dist/pptx/render/layout-preview.cjs +0 -1
  131. package/dist/pptx/render/layout-preview.mjs +0 -1
  132. package/dist/pptx/render/model3d-scene.cjs +0 -1
  133. package/dist/pptx/render/model3d-scene.mjs +0 -1
  134. package/dist/pptx/render/paragraph-geometry-overrides.d.ts +2 -1
  135. package/dist/pptx/render/paragraph-geometry-overrides.d.ts.map +1 -1
  136. package/dist/pptx/render/presentation-print-settings.cjs +0 -1
  137. package/dist/pptx/render/presentation-print-settings.mjs +0 -1
  138. package/dist/pptx/render/remap-text.cjs +0 -1
  139. package/dist/pptx/render/remap-text.mjs +0 -1
  140. package/dist/pptx/render/ribbon-animations-state.cjs +0 -1
  141. package/dist/pptx/render/ribbon-animations-state.mjs +0 -1
  142. package/dist/pptx/render/session-restore.d.ts +4 -2
  143. package/dist/pptx/render/session-restore.d.ts.map +1 -1
  144. package/dist/pptx/render/text-case-transform.cjs +0 -1
  145. package/dist/pptx/render/text-case-transform.mjs +0 -1
  146. package/dist/pptx/render/text-style-scope.d.ts +2 -1
  147. package/dist/pptx/render/text-style-scope.d.ts.map +1 -1
  148. package/dist/pptx/render/viewer-event-payloads.d.ts +21 -0
  149. package/dist/pptx/render/viewer-event-payloads.d.ts.map +1 -0
  150. package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
  151. package/dist/pptx/theme/index.cjs +0 -1
  152. package/dist/pptx/theme/index.mjs +0 -1
  153. package/dist/pptx/{view-scene-CKYHS2OP.cjs → view-scene-4ZFUCP6S.cjs} +0 -1
  154. package/dist/pptx/{view-scene-BSTOVMHA.mjs → view-scene-GHBN7QMR.mjs} +0 -1
  155. package/dist/teams.js +1 -1
  156. package/dist/visio/controller.d.ts +11 -0
  157. package/dist/visio/index.d.ts +2 -0
  158. package/dist/visio/viewer-autorecover.d.ts +10 -2
  159. package/dist/visio/viewer-backstage.d.ts +23 -0
  160. package/dist/visio/viewer-commands.d.ts +2 -0
  161. package/dist/visio/viewer-context-menu.d.ts +3 -1
  162. package/dist/visio/viewer-customization.d.ts +42 -0
  163. package/dist/visio/viewer-element.d.ts +25 -0
  164. package/dist/visio/viewer-file-commands.d.ts +12 -0
  165. package/dist/visio/worker-parser.d.ts +9 -1
  166. package/dist/visio.js +351 -37
  167. package/dist/xlsx/backstage/index.d.ts +4 -0
  168. package/dist/xlsx/backstage/parts.d.ts +6 -0
  169. package/dist/xlsx/collaboration.d.ts +2 -1
  170. package/dist/xlsx/component.d.ts +9 -1
  171. package/dist/xlsx/context-menu/hidden.d.ts +9 -0
  172. package/dist/xlsx/context-menu/menu.d.ts +7 -1
  173. package/dist/xlsx/customization.d.ts +27 -0
  174. package/dist/xlsx/editor-core.d.ts +22 -0
  175. package/dist/xlsx/editor-files.d.ts +2 -4
  176. package/dist/xlsx/element-api.d.ts +10 -0
  177. package/dist/xlsx/events.d.ts +13 -7
  178. package/dist/xlsx/file-commands.d.ts +0 -5
  179. package/dist/xlsx/index.d.ts +2 -0
  180. package/dist/xlsx.js +245 -48
  181. package/package.json +3 -2
  182. package/dist/chunk-C7B7TJ2J.js +0 -112
  183. package/dist/pptx/chunk-MF3JURQN.cjs +0 -22
  184. package/dist/pptx/chunk-U5DDQYSF.mjs +0 -19
@@ -1,5 +1,5 @@
1
- import { GlyphOutlineFontCache, createGlyphOutlineLookup, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, getFrameEffectStyle, getComputedStrokeStyle, getComputedEffectStyle, getComputed3dStyle, isHollowShapeElement, resolveShapeGeometry, buildTextBlockStyle, buildTextBody3DSceneStyle, getSlideBackgroundStyle, applyRenderedElementAccessibility, applyElementActionAffordances, isTemplateElementId, actionAffordanceLabels, canDrillDown, beginChartMarkDrag, THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveChartThreeViewSpec, getContainerStyle, resolveRevealedChartData, chartPlaceholderLabel, buildTextBuildSpec, textBuildSpanStyle, getLineGlowFilterCss, getLineShadowParams, normalizeArrow, getCompoundLineOffsets, getCompoundLineWidths, connectorNeedsPath, connectorHitStrokeWidth, buildParagraphs, markerPath, isEquationOnlyText, convertOmmlToMathMl, sanitizeMathMl, build3DExtrusionData, getGroupChildParentFill, resolveGroupChildFill, getImageSrc, getImageFitStyle, getEffectStyleSource, getDuotoneSvgFilter, getSoftEdgeSvgFilter, getBevelLightingSvgFilter, buildHollowHitOutline, strokeOutlineViewBox, buildStrokeOutline, isPatternPaint, svgGradientMarkup, getCropShapeClipPath, getPictureFrameLayers, getImageOverflow, getComputedImageStyle, getImageTilingStyle, getCachedNativeImageSize, probeNativeImageSize, getImageFillCounterTransform, resolveColorChangedImageSource, getImageColorWashStyle, buildInkGroupStrokes, applyMediaPlaybackAttributes, startMediaAutoplay, scheduleMediaTrimAndFade, mediaPlaybackAttributes, mediaSurfaceOf, mediaTransportVisible, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_ALLOW, ONLINE_VIDEO_IFRAME_SANDBOX, registerCrossSlideAudio, mediaFallbackVisual, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, getOleIconShapes, resolveOleType, getOleTypeColor, getOleTypeLabel, getOleAriaLabel, getOleBadgeLabel, oleActionsVisible, formatBytes, getPlaceholderStyle, getOleDisplayName, isBrowserOpenableMime, openUrlInNewTab, buildSummaryZoomView, resolveSmartArtThreeViewSpec, elementInLocalFrame, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, getTableResizeScale, computeTableMergeCrossings, computeColumnBoundaries, isColumnBoundaryMergedAt, isRowBoundaryMergedAt, DEFAULT_ROW_HEIGHT, tableContainerCss, tableCellCss, cellPatternFillCss, getCellDiagonalBorders, cellParagraphBlocks, cellRunStyle, groupIntoParagraphs, shouldUseSvgWarp, getWarpCssTransform, fontWeightAttribute, hasGlyphEnvelope, buildGlyphEnvelopeBlock, resolveFontItalic, buildWarpPath, getBackgroundAnimationState, getBackgroundAnimationLayers, elementHitTargetStyle, getOverflowSegments, placeholderPromptDescriptor, advanceChartMarkDrag, chartFormatTargetFromEvent, columnHandleSegments, rowHandleSegments, computeResizedColumnWidths, computeResizedRowHeight, isElementRendered, shouldRenderHitTarget, resolveZoomNavigationTarget, isMediaFullscreenActive, MEDIA_FULLSCREEN_OVERLAY_STYLE, shouldShowMediaFullscreenStopButton, runEquationMathMl, isRunHyperlinkClickable } from '../chunk-VGOIAVPA.mjs';
2
- export { buildEmbeddedFontStyles, buildFieldSubstitutionContext, releasePptxRenderCaches } from '../chunk-VGOIAVPA.mjs';
1
+ import { GlyphOutlineFontCache, createGlyphOutlineLookup, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, getFrameEffectStyle, getComputedStrokeStyle, getComputedEffectStyle, getComputed3dStyle, isHollowShapeElement, resolveShapeGeometry, buildTextBlockStyle, buildTextBody3DSceneStyle, getSlideBackgroundStyle, applyRenderedElementAccessibility, applyElementActionAffordances, isTemplateElementId, actionAffordanceLabels, canDrillDown, beginChartMarkDrag, THREE_VIEW_EVENTS, applyChart3DSelect, applyChart3DDrag, resolveChartThreeViewSpec, getContainerStyle, resolveRevealedChartData, chartPlaceholderLabel, buildTextBuildSpec, textBuildSpanStyle, getLineGlowFilterCss, getLineShadowParams, normalizeArrow, getCompoundLineOffsets, getCompoundLineWidths, connectorNeedsPath, connectorHitStrokeWidth, buildParagraphs, markerPath, isEquationOnlyText, convertOmmlToMathMl, sanitizeMathMl, build3DExtrusionData, getGroupChildParentFill, resolveGroupChildFill, getImageSrc, getImageFitStyle, getEffectStyleSource, getDuotoneSvgFilter, getSoftEdgeSvgFilter, getBevelLightingSvgFilter, buildHollowHitOutline, strokeOutlineViewBox, buildStrokeOutline, isPatternPaint, svgGradientMarkup, getCropShapeClipPath, getPictureFrameLayers, getImageOverflow, getComputedImageStyle, getImageTilingStyle, getCachedNativeImageSize, probeNativeImageSize, getImageFillCounterTransform, resolveColorChangedImageSource, getImageColorWashStyle, buildInkGroupStrokes, applyMediaPlaybackAttributes, startMediaAutoplay, scheduleMediaTrimAndFade, mediaPlaybackAttributes, mediaSurfaceOf, mediaTransportVisible, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_ALLOW, ONLINE_VIDEO_IFRAME_SANDBOX, registerCrossSlideAudio, mediaFallbackVisual, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, getOleIconShapes, resolveOleType, getOleTypeColor, getOleTypeLabel, getOleAriaLabel, getOleBadgeLabel, oleActionsVisible, formatBytes, getPlaceholderStyle, getOleDisplayName, isBrowserOpenableMime, openUrlInNewTab, buildSummaryZoomView, resolveSmartArtThreeViewSpec, elementInLocalFrame, stripEditLayerMarkers, routeEditLayerPointerToNodes, measureSvgViewportRect, findSmartArtNodeText, resolvePalette, smartArtConnectorPaint, smartArtNodeLabel, buildChromeStyle, buildSmartArtA11y, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, computeSmartArtElementLayout, flattenNodes, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveRevealedDrawingShapeNodeIds, getTableResizeScale, computeTableMergeCrossings, computeColumnBoundaries, isColumnBoundaryMergedAt, isRowBoundaryMergedAt, DEFAULT_ROW_HEIGHT, tableContainerCss, tableCellCss, cellPatternFillCss, getCellDiagonalBorders, cellParagraphBlocks, cellRunStyle, groupIntoParagraphs, shouldUseSvgWarp, getWarpCssTransform, fontWeightAttribute, hasGlyphEnvelope, buildGlyphEnvelopeBlock, resolveFontItalic, buildWarpPath, getBackgroundAnimationState, getBackgroundAnimationLayers, elementHitTargetStyle, getOverflowSegments, placeholderPromptDescriptor, advanceChartMarkDrag, chartFormatTargetFromEvent, columnHandleSegments, rowHandleSegments, computeResizedColumnWidths, computeResizedRowHeight, isElementRendered, shouldRenderHitTarget, resolveZoomNavigationTarget, isMediaFullscreenActive, MEDIA_FULLSCREEN_OVERLAY_STYLE, shouldShowMediaFullscreenStopButton, runEquationMathMl, isRunHyperlinkClickable } from '../chunk-TK5LA3Z6.mjs';
2
+ export { buildEmbeddedFontStyles, buildFieldSubstitutionContext, releasePptxRenderCaches } from '../chunk-TK5LA3Z6.mjs';
3
3
  import '../chunk-A63ASSCH.mjs';
4
4
  import { modelDataToBlobUrl, mountModel3D } from '../chunk-DMWNOP4E.mjs';
5
5
  import '../chunk-WSR2S2MY.mjs';
@@ -11,10 +11,10 @@ export { renderChartViewModelSvg } from '../chunk-73OUATE4.mjs';
11
11
  import '../chunk-RQJOOXRG.mjs';
12
12
  import '../chunk-PI47Z46K.mjs';
13
13
  import '../chunk-QX6XPYVA.mjs';
14
- import '../chunk-3IN66FIL.mjs';
14
+ import '../chunk-72P6AWRA.mjs';
15
15
  import '../chunk-KY75GY5O.mjs';
16
16
  import '../chunk-L55MIOBC.mjs';
17
- import '../chunk-ANKJE2PT.mjs';
17
+ import '../chunk-7DIZOCO4.mjs';
18
18
  import '../chunk-SMSCEGAE.mjs';
19
19
  import '../chunk-7BHPBO2O.mjs';
20
20
  import { getComputedFillStyle, getCssBorderDashStyle, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, buildChartViewModel, resolveChartKind, resolveChartPalette, buildDashArray, buildSubpathFillOverlay, DEFAULT_FONT_FAMILY, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, formatAxisValue, subscribeBarFacePicturePixelSamples } from '../chunk-PIIYTRLE.mjs';
@@ -22,7 +22,7 @@ import { buildContentPartStrokes } from '../chunk-IB6ZM2E2.mjs';
22
22
  import { getContentPartReplayStyles, INK_REPLAY_KEYFRAMES, getInkReplayStyles } from '../chunk-JA7WYSRE.mjs';
23
23
  import '../chunk-V4YMLIGL.mjs';
24
24
  import '../chunk-MNSWEXYO.mjs';
25
- import { screenBorder, deviceStrokeStageStyle, THREE_VIEW_TAG, defineThreeViewElement, screenStrokeWidth } from '../chunk-75S3RTSS.mjs';
25
+ import { screenBorder, deviceStrokeStageStyle, THREE_VIEW_TAG, defineThreeViewElement, screenStrokeWidth } from '../chunk-B5FR65LB.mjs';
26
26
  import '../chunk-2V5ATMMB.mjs';
27
27
  import '../chunk-A62C6PSL.mjs';
28
28
  import '../chunk-3ZI57W7O.mjs';
@@ -38,7 +38,6 @@ export { createTranslator } from '../chunk-ZNXKAINY.mjs';
38
38
  import '../chunk-PEDGPFLR.mjs';
39
39
  import '../chunk-7JBQPQ6G.mjs';
40
40
  import '../chunk-WHUMPYEM.mjs';
41
- import '../chunk-U5DDQYSF.mjs';
42
41
  import { hasShapeProperties, hasTextProperties, getConnectorPathGeometry, isImageLikeElement, getSubstituteFontFamily, PptxHandler } from 'ooxml-core/pptx';
43
42
 
44
43
  // src/pptx/dom/dom.ts
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkHJ3JZXOL_cjs = require('../chunk-HJ3JZXOL.cjs');
4
- require('../chunk-MF3JURQN.cjs');
5
4
 
6
5
 
7
6
 
@@ -1,2 +1 @@
1
1
  export { _testing, convertBlobUrlsToDataUrls, normalizeColorsForCapture } from '../chunk-7JBQPQ6G.mjs';
2
- import '../chunk-U5DDQYSF.mjs';
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkEW5DW5KR_cjs = require('../chunk-EW5DW5KR.cjs');
4
- require('../chunk-MF3JURQN.cjs');
5
4
 
6
5
 
7
6
 
@@ -1,2 +1 @@
1
1
  export { A4_LANDSCAPE, A4_PORTRAIT, HANDOUT_OPTIONS, computeHandoutLayout, computePageCells, computePageCount, generateNoteLineCount, getHandoutGrid, getPrintableArea, isHandoutSlidesPerPage } from '../chunk-WHUMPYEM.mjs';
2
- import '../chunk-U5DDQYSF.mjs';
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkFGKPZFLL_cjs = require('../chunk-FGKPZFLL.cjs');
4
- require('../chunk-MF3JURQN.cjs');
5
4
 
6
5
 
7
6
 
@@ -1,2 +1 @@
1
1
  export { handoutMasterChrome } from '../chunk-IXFG46KB.mjs';
2
- import '../chunk-U5DDQYSF.mjs';
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkUPN5FFKP_cjs = require('../chunk-UPN5FFKP.cjs');
4
- require('../chunk-MF3JURQN.cjs');
5
4
 
6
5
 
7
6
 
@@ -1,2 +1 @@
1
1
  export { escapeHtml, safeDataImageSrc } from '../chunk-IEAO7N4E.mjs';
2
- import '../chunk-U5DDQYSF.mjs';
@@ -1,13 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkW7CBPO77_cjs = require('../chunk-W7CBPO77.cjs');
3
+ var chunkZO43VVWQ_cjs = require('../chunk-ZO43VVWQ.cjs');
4
4
  require('../chunk-G4WRLFMJ.cjs');
5
5
  require('../chunk-HJ3JZXOL.cjs');
6
- require('../chunk-MF3JURQN.cjs');
7
6
 
8
7
 
9
8
 
10
9
  Object.defineProperty(exports, "prepareHtml2CanvasClone", {
11
10
  enumerable: true,
12
- get: function () { return chunkW7CBPO77_cjs.prepareHtml2CanvasClone; }
11
+ get: function () { return chunkZO43VVWQ_cjs.prepareHtml2CanvasClone; }
13
12
  });
@@ -1,4 +1,3 @@
1
- export { prepareHtml2CanvasClone } from '../chunk-75S3RTSS.mjs';
1
+ export { prepareHtml2CanvasClone } from '../chunk-B5FR65LB.mjs';
2
2
  import '../chunk-2V5ATMMB.mjs';
3
3
  import '../chunk-7JBQPQ6G.mjs';
4
- import '../chunk-U5DDQYSF.mjs';
@@ -17,6 +17,7 @@
17
17
  * XML escaping + data-URL).
18
18
  */
19
19
  export * from './download-helpers.js';
20
+ export * from './presentation-save.js';
20
21
  export * from './deck-json.js';
21
22
  export * from './canvas-jpeg.js';
22
23
  export * from './gif-encoder.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pptx/export/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,cAAc,oBAAoB,CAAC;AAEnC,cAAc,aAAa,CAAC;AAE5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AAIjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAK5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,qBAAqB,CAAC;AAIpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAIhC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAI7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAKxC,cAAc,4BAA4B,CAAC;AAK3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAI7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AAGpC,cAAc,mBAAmB,CAAC;AAIlC,cAAc,sBAAsB,CAAC;AAKrC,cAAc,6BAA6B,CAAC;AAK5C,cAAc,kCAAkC,CAAC;AAIjD,cAAc,yBAAyB,CAAC;AAGxC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pptx/export/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,cAAc,oBAAoB,CAAC;AAEnC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,aAAa,CAAC;AAE5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AAIjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAK5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,qBAAqB,CAAC;AAIpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAIhC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAI7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAKxC,cAAc,4BAA4B,CAAC;AAK3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAI7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AAGpC,cAAc,mBAAmB,CAAC;AAIlC,cAAc,sBAAsB,CAAC;AAKrC,cAAc,6BAA6B,CAAC;AAK5C,cAAc,kCAAkC,CAAC;AAIjD,cAAc,yBAAyB,CAAC;AAGxC,cAAc,2BAA2B,CAAC"}
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk73IDQGYI_cjs = require('../chunk-73IDQGYI.cjs');
4
- require('../chunk-MF3JURQN.cjs');
5
4
 
6
5
 
7
6
 
@@ -1,2 +1 @@
1
1
  export { pdfOrientation, pdfPageSize, sanitizeFileName, slideFileName } from '../chunk-A62C6PSL.mjs';
2
- import '../chunk-U5DDQYSF.mjs';
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Where a saved presentation goes: the host's storage when the viewer has one (`storage` prop,
3
+ * see `ooxml-core/embedding`), else a browser download. Every binding's Save / Save As path calls
4
+ * this once, so routing a save to the host is decided in one place.
5
+ */
6
+ import { type DocumentSaveReason, type DocumentStorage } from 'ooxml-core/embedding';
7
+ import type { CompatibilityWarningToast } from '../render/compatibility-warning-toasts.js';
8
+ export type { DocumentSaveMeta, DocumentSaveReason, DocumentStorage } from 'ooxml-core/embedding';
9
+ /** The formats a viewer saves (`SavedPresentationFormat` of the render layer). */
10
+ export type PresentationSaveFormat = 'pptx' | 'ppsx' | 'pptm' | 'ppt';
11
+ /**
12
+ * The MIME type a saved presentation is offered under, by format: legacy `.ppt` is an OLE2
13
+ * compound file with its own type, and `.ppsx` / `.pptm` have theirs (`documentMimeType`).
14
+ */
15
+ export declare function presentationSaveMimeType(format: PresentationSaveFormat): string;
16
+ export interface DeliverSavedPresentationInput {
17
+ /** The host's storage; undefined (or null) downloads the file. */
18
+ storage?: DocumentStorage | null | undefined;
19
+ bytes: Uint8Array;
20
+ format: PresentationSaveFormat;
21
+ /** The name to save under, normally `savedPresentationFileName(source, format)`. */
22
+ fileName: string;
23
+ /** The command that saved: File > Save (`save`) or a Save As entry (`saveAs`), whatever the format. */
24
+ reason: DocumentSaveReason;
25
+ }
26
+ /**
27
+ * Hands the saved bytes to `storage.save()` when the viewer has a storage, else starts a browser
28
+ * download. Resolves with the name the document was saved under (the one the host reported, if
29
+ * any). Rejects when the storage does; a download never rejects.
30
+ */
31
+ export declare function deliverSavedPresentation(input: DeliverSavedPresentationInput): Promise<string>;
32
+ /** Toast code of a failed Save / Save As (the host's storage rejected, or serialising failed). */
33
+ export declare const SAVE_FAILED_TOAST_CODE = "SAVE_FAILED";
34
+ /** The notice every binding shows when a Save / Save As fails, in its compatibility toast stack. */
35
+ export declare const SAVE_FAILED_TOAST: CompatibilityWarningToast;
36
+ /** The message a binding reports to the host's `error` event for a failed save. */
37
+ export declare function saveFailureMessage(error: unknown): string;
38
+ /** `toasts` with the save-failure notice first (once), for a binding's toast stack. */
39
+ export declare function withSaveFailureToast(toasts: readonly CompatibilityWarningToast[]): CompatibilityWarningToast[];
40
+ //# sourceMappingURL=presentation-save.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation-save.d.ts","sourceRoot":"","sources":["../../../src/pptx/export/presentation-save.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAIN,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAGxF,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAElG,kFAAkF;AAClF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAEtE;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CAE/E;AAED,MAAM,WAAW,6BAA6B;IAC7C,kEAAkE;IAClE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,uGAAuG;IACvG,MAAM,EAAE,kBAAkB,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAC7C,KAAK,EAAE,6BAA6B,GAClC,OAAO,CAAC,MAAM,CAAC,CAQjB;AAED,kGAAkG;AAClG,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,EAAE,yBAK/B,CAAC;AAEF,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAGzD;AAED,uFAAuF;AACvF,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,SAAS,yBAAyB,EAAE,GAC1C,yBAAyB,EAAE,CAE7B"}
@@ -4,7 +4,6 @@ var chunkX4FNVH7J_cjs = require('../chunk-X4FNVH7J.cjs');
4
4
  require('../chunk-FGKPZFLL.cjs');
5
5
  require('../chunk-UPN5FFKP.cjs');
6
6
  require('../chunk-EW5DW5KR.cjs');
7
- require('../chunk-MF3JURQN.cjs');
8
7
 
9
8
 
10
9
 
@@ -2,4 +2,3 @@ export { DEFAULT_PRINT_SETTINGS, buildHandoutsHtml, buildNotesHtml, buildOutline
2
2
  import '../chunk-IXFG46KB.mjs';
3
3
  import '../chunk-IEAO7N4E.mjs';
4
4
  import '../chunk-WHUMPYEM.mjs';
5
- import '../chunk-U5DDQYSF.mjs';
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkFQUX6AUU_cjs = require('../chunk-FQUX6AUU.cjs');
4
- require('../chunk-MF3JURQN.cjs');
5
4
 
6
5
 
7
6
 
@@ -1,2 +1 @@
1
1
  export { WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, pickSupportedMimeType, planVideoSegments, segmentFrameCount, stopCaptureStream } from '../chunk-XAOEDYA5.mjs';
2
- import '../chunk-U5DDQYSF.mjs';
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkA2X5BP7J_cjs = require('../chunk-A2X5BP7J.cjs');
4
- require('../chunk-MF3JURQN.cjs');
5
4
 
6
5
 
7
6
 
@@ -1,2 +1 @@
1
1
  export { ALIGNMENT_LABEL_KEYS, LOCALE_CATALOG, createTranslator, keyToLabel, translationsEn } from '../chunk-ZNXKAINY.mjs';
2
- import '../chunk-U5DDQYSF.mjs';