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.
- package/dist/{chunk-REJECZGV.js → chunk-6RCASLEC.js} +1 -1
- package/dist/{chunk-DRBAJ5UO.js → chunk-FX6CF43K.js} +2 -1
- package/dist/chunk-HTIJ2EAA.js +364 -0
- package/dist/docx/backstage-pages.d.ts +5 -0
- package/dist/docx/backstage.d.ts +7 -0
- package/dist/docx/component.d.ts +1 -0
- package/dist/docx/context-menu.d.ts +6 -0
- package/dist/docx/customization-apply.d.ts +12 -0
- package/dist/docx/customization.d.ts +52 -0
- package/dist/docx/editor-chrome.d.ts +19 -0
- package/dist/docx/editor-core.d.ts +23 -1
- package/dist/docx/element-api.d.ts +18 -0
- package/dist/docx/events.d.ts +13 -2
- package/dist/docx/file-commands.d.ts +12 -6
- package/dist/docx/index.d.ts +3 -0
- package/dist/docx/keyboard.d.ts +2 -0
- package/dist/docx/shortcut-help.d.ts +2 -1
- package/dist/docx/title-bar.d.ts +2 -0
- package/dist/docx/view-options.d.ts +5 -0
- package/dist/docx.js +355 -108
- package/dist/embedding/host-backstage.d.ts +33 -0
- package/dist/embedding/host-menu.d.ts +33 -0
- package/dist/embedding/index.d.ts +3 -0
- package/dist/embedding/region-host.d.ts +38 -0
- package/dist/embedding/region-host.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/parse-worker.js +3 -1
- package/dist/pptx/ai/index.cjs +4 -5
- package/dist/pptx/ai/index.mjs +2 -3
- package/dist/pptx/{chart-3d-view-scene-6LQRJAM3.mjs → chart-3d-view-scene-CDIMM5T3.mjs} +0 -1
- package/dist/pptx/{chart-3d-view-scene-FAKI4QKT.cjs → chart-3d-view-scene-RYL7F65H.cjs} +0 -1
- package/dist/pptx/{chat-history-idb-FJWHIDOK.cjs → chat-history-idb-PGLJPVOI.cjs} +2 -3
- package/dist/pptx/{chat-history-idb-XWRFLX2R.mjs → chat-history-idb-XXPB3Q4U.mjs} +1 -2
- package/dist/pptx/{chunk-C22MU5CA.cjs → chunk-43NFRLCD.cjs} +2 -2
- package/dist/pptx/{chunk-3IN66FIL.mjs → chunk-72P6AWRA.mjs} +1 -1
- package/dist/pptx/{chunk-ANKJE2PT.mjs → chunk-7DIZOCO4.mjs} +5 -9
- package/dist/pptx/{chunk-G2LGZNTI.cjs → chunk-A5MANNJR.cjs} +1 -1
- package/dist/pptx/{chunk-T34B6TZT.cjs → chunk-B4GBGPNL.cjs} +35 -29
- package/dist/pptx/{chunk-75S3RTSS.mjs → chunk-B5FR65LB.mjs} +2 -2
- package/dist/pptx/{chunk-LLENQTWZ.mjs → chunk-LVDF75JU.mjs} +1 -1
- package/dist/pptx/{chunk-VGOIAVPA.mjs → chunk-TK5LA3Z6.mjs} +441 -7154
- package/dist/pptx/{chunk-72NIN6QF.cjs → chunk-WX77UUR5.cjs} +418 -7099
- package/dist/pptx/{chunk-W7CBPO77.cjs → chunk-ZO43VVWQ.cjs} +2 -2
- package/dist/pptx/dom/index.cjs +220 -221
- package/dist/pptx/dom/index.mjs +5 -6
- package/dist/pptx/export/canvas-color-fix.cjs +0 -1
- package/dist/pptx/export/canvas-color-fix.mjs +0 -1
- package/dist/pptx/export/handout-layout.cjs +0 -1
- package/dist/pptx/export/handout-layout.mjs +0 -1
- package/dist/pptx/export/handout-master-chrome.cjs +0 -1
- package/dist/pptx/export/handout-master-chrome.mjs +0 -1
- package/dist/pptx/export/html-escape.cjs +0 -1
- package/dist/pptx/export/html-escape.mjs +0 -1
- package/dist/pptx/export/html2canvas-clone.cjs +2 -3
- package/dist/pptx/export/html2canvas-clone.mjs +1 -2
- package/dist/pptx/export/index.d.ts +1 -0
- package/dist/pptx/export/index.d.ts.map +1 -1
- package/dist/pptx/export/pdf-page-size.cjs +0 -1
- package/dist/pptx/export/pdf-page-size.mjs +0 -1
- package/dist/pptx/export/presentation-save.d.ts +40 -0
- package/dist/pptx/export/presentation-save.d.ts.map +1 -0
- package/dist/pptx/export/print-document.cjs +0 -1
- package/dist/pptx/export/print-document.mjs +0 -1
- package/dist/pptx/export/video-plan.cjs +0 -1
- package/dist/pptx/export/video-plan.mjs +0 -1
- package/dist/pptx/i18n/index.cjs +0 -1
- package/dist/pptx/i18n/index.mjs +0 -1
- package/dist/pptx/index.cjs +3027 -2952
- package/dist/pptx/index.mjs +4 -5
- package/dist/pptx/loader/index.cjs +0 -1
- package/dist/pptx/loader/index.mjs +0 -1
- package/dist/pptx/render/account.d.ts +8 -3
- package/dist/pptx/render/account.d.ts.map +1 -1
- package/dist/pptx/render/animation-authoring.cjs +0 -1
- package/dist/pptx/render/animation-authoring.mjs +0 -1
- package/dist/pptx/render/animation-preset-labels.cjs +0 -1
- package/dist/pptx/render/animation-preset-labels.mjs +0 -1
- package/dist/pptx/render/autosave-host-store.d.ts +28 -0
- package/dist/pptx/render/autosave-host-store.d.ts.map +1 -0
- package/dist/pptx/render/autosave-maintenance.d.ts +18 -0
- package/dist/pptx/render/autosave-maintenance.d.ts.map +1 -0
- package/dist/pptx/render/autosave-recovery.d.ts +5 -3
- package/dist/pptx/render/autosave-recovery.d.ts.map +1 -1
- package/dist/pptx/render/autosave-store.d.ts +9 -11
- package/dist/pptx/render/autosave-store.d.ts.map +1 -1
- package/dist/pptx/render/backstage.d.ts +3 -2
- package/dist/pptx/render/backstage.d.ts.map +1 -1
- package/dist/pptx/render/chart-combo-stock.cjs +0 -1
- package/dist/pptx/render/chart-combo-stock.mjs +0 -1
- package/dist/pptx/render/chart-overlays.cjs +0 -1
- package/dist/pptx/render/chart-overlays.mjs +0 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +0 -1
- package/dist/pptx/render/chart-surface-treemap.mjs +0 -1
- package/dist/pptx/render/chart-view-model.cjs +0 -1
- package/dist/pptx/render/chart-view-model.mjs +0 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +0 -1
- package/dist/pptx/render/chart-waterfall-map.mjs +0 -1
- package/dist/pptx/render/content-part-strokes.cjs +0 -1
- package/dist/pptx/render/content-part-strokes.mjs +0 -1
- package/dist/pptx/render/context-menu-target.cjs +0 -1
- package/dist/pptx/render/context-menu-target.mjs +0 -1
- package/dist/pptx/render/custom-fonts.cjs +0 -1
- package/dist/pptx/render/custom-fonts.mjs +0 -1
- package/dist/pptx/render/customization/customization-regions.d.ts +15 -32
- package/dist/pptx/render/customization/customization-regions.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-surfaces.d.ts.map +1 -1
- package/dist/pptx/render/customization/customization-types.d.ts +3 -2
- package/dist/pptx/render/customization/customization-types.d.ts.map +1 -1
- package/dist/pptx/render/customization/host-menu-commands.d.ts +6 -25
- package/dist/pptx/render/customization/host-menu-commands.d.ts.map +1 -1
- package/dist/pptx/render/element-hit-test.cjs +0 -1
- package/dist/pptx/render/element-hit-test.mjs +0 -1
- package/dist/pptx/render/font-catalog.cjs +0 -1
- package/dist/pptx/render/font-catalog.mjs +0 -1
- package/dist/pptx/render/format-painter.cjs +5 -6
- package/dist/pptx/render/format-painter.mjs +2 -3
- package/dist/pptx/render/hyperlink-security.cjs +0 -1
- package/dist/pptx/render/hyperlink-security.mjs +0 -1
- package/dist/pptx/render/image-file-insertion.cjs +0 -1
- package/dist/pptx/render/image-file-insertion.mjs +0 -1
- package/dist/pptx/render/index.d.ts +2 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/ink-rendering.cjs +0 -1
- package/dist/pptx/render/ink-rendering.mjs +0 -1
- package/dist/pptx/render/inspector-helpers.cjs +13 -14
- package/dist/pptx/render/inspector-helpers.mjs +1 -2
- package/dist/pptx/render/layout-gallery.cjs +0 -1
- package/dist/pptx/render/layout-gallery.mjs +0 -1
- package/dist/pptx/render/layout-preview.cjs +0 -1
- package/dist/pptx/render/layout-preview.mjs +0 -1
- package/dist/pptx/render/model3d-scene.cjs +0 -1
- package/dist/pptx/render/model3d-scene.mjs +0 -1
- package/dist/pptx/render/paragraph-geometry-overrides.d.ts +2 -1
- package/dist/pptx/render/paragraph-geometry-overrides.d.ts.map +1 -1
- package/dist/pptx/render/presentation-print-settings.cjs +0 -1
- package/dist/pptx/render/presentation-print-settings.mjs +0 -1
- package/dist/pptx/render/remap-text.cjs +0 -1
- package/dist/pptx/render/remap-text.mjs +0 -1
- package/dist/pptx/render/ribbon-animations-state.cjs +0 -1
- package/dist/pptx/render/ribbon-animations-state.mjs +0 -1
- package/dist/pptx/render/session-restore.d.ts +4 -2
- package/dist/pptx/render/session-restore.d.ts.map +1 -1
- package/dist/pptx/render/text-case-transform.cjs +0 -1
- package/dist/pptx/render/text-case-transform.mjs +0 -1
- package/dist/pptx/render/text-style-scope.d.ts +2 -1
- package/dist/pptx/render/text-style-scope.d.ts.map +1 -1
- package/dist/pptx/render/viewer-event-payloads.d.ts +21 -0
- package/dist/pptx/render/viewer-event-payloads.d.ts.map +1 -0
- package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
- package/dist/pptx/theme/index.cjs +0 -1
- package/dist/pptx/theme/index.mjs +0 -1
- package/dist/pptx/{view-scene-CKYHS2OP.cjs → view-scene-4ZFUCP6S.cjs} +0 -1
- package/dist/pptx/{view-scene-BSTOVMHA.mjs → view-scene-GHBN7QMR.mjs} +0 -1
- package/dist/teams.js +1 -1
- package/dist/visio/controller.d.ts +11 -0
- package/dist/visio/index.d.ts +2 -0
- package/dist/visio/viewer-autorecover.d.ts +10 -2
- package/dist/visio/viewer-backstage.d.ts +23 -0
- package/dist/visio/viewer-commands.d.ts +2 -0
- package/dist/visio/viewer-context-menu.d.ts +3 -1
- package/dist/visio/viewer-customization.d.ts +42 -0
- package/dist/visio/viewer-element.d.ts +25 -0
- package/dist/visio/viewer-file-commands.d.ts +12 -0
- package/dist/visio/worker-parser.d.ts +9 -1
- package/dist/visio.js +351 -37
- package/dist/xlsx/backstage/index.d.ts +4 -0
- package/dist/xlsx/backstage/parts.d.ts +6 -0
- package/dist/xlsx/collaboration.d.ts +2 -1
- package/dist/xlsx/component.d.ts +9 -1
- package/dist/xlsx/context-menu/hidden.d.ts +9 -0
- package/dist/xlsx/context-menu/menu.d.ts +7 -1
- package/dist/xlsx/customization.d.ts +27 -0
- package/dist/xlsx/editor-core.d.ts +22 -0
- package/dist/xlsx/editor-files.d.ts +2 -4
- package/dist/xlsx/element-api.d.ts +10 -0
- package/dist/xlsx/events.d.ts +13 -7
- package/dist/xlsx/file-commands.d.ts +0 -5
- package/dist/xlsx/index.d.ts +2 -0
- package/dist/xlsx.js +245 -48
- package/package.json +3 -2
- package/dist/chunk-C7B7TJ2J.js +0 -112
- package/dist/pptx/chunk-MF3JURQN.cjs +0 -22
- package/dist/pptx/chunk-U5DDQYSF.mjs +0 -19
package/dist/pptx/dom/index.mjs
CHANGED
|
@@ -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-
|
|
2
|
-
export { buildEmbeddedFontStyles, buildFieldSubstitutionContext, releasePptxRenderCaches } from '../chunk-
|
|
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-
|
|
14
|
+
import '../chunk-72P6AWRA.mjs';
|
|
15
15
|
import '../chunk-KY75GY5O.mjs';
|
|
16
16
|
import '../chunk-L55MIOBC.mjs';
|
|
17
|
-
import '../chunk-
|
|
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-
|
|
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,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
11
|
+
get: function () { return chunkZO43VVWQ_cjs.prepareHtml2CanvasClone; }
|
|
13
12
|
});
|
|
@@ -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"}
|
|
@@ -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"}
|
package/dist/pptx/i18n/index.cjs
CHANGED
package/dist/pptx/i18n/index.mjs
CHANGED