pptx-react-viewer 3.16.7 → 3.17.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/CHANGELOG.md +53 -0
- package/README.md +25 -3
- package/dist/{AiChatPanel-N25STHYW.js → AiChatPanel-GYH43XWW.js} +25 -25
- package/dist/AiChatPanel-GYH43XWW.js.br +0 -0
- package/dist/AiChatPanel-GYH43XWW.js.gz +0 -0
- package/dist/{AiChatPanel-GLDW5OK4.mjs → AiChatPanel-SINEEZBW.mjs} +4 -4
- package/dist/AiChatPanel-SINEEZBW.mjs.br +0 -0
- package/dist/AiChatPanel-SINEEZBW.mjs.gz +0 -0
- package/dist/{Area3DChartScene-5POI5LF7.js → Area3DChartScene-D7GSJGPQ.js} +2 -2
- package/dist/Area3DChartScene-D7GSJGPQ.js.br +0 -0
- package/dist/Area3DChartScene-D7GSJGPQ.js.gz +0 -0
- package/dist/{Area3DChartScene-FCHO4SK6.mjs → Area3DChartScene-X5SM67PZ.mjs} +1 -1
- package/dist/Area3DChartScene-X5SM67PZ.mjs.br +0 -0
- package/dist/Area3DChartScene-X5SM67PZ.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-M3LLHXAL.mjs → Bar3DChartScene-HWIFFGI3.mjs} +1 -1
- package/dist/Bar3DChartScene-HWIFFGI3.mjs.br +0 -0
- package/dist/Bar3DChartScene-HWIFFGI3.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-5CY5GRV5.js → Bar3DChartScene-M72WQW5Y.js} +2 -2
- package/dist/Bar3DChartScene-M72WQW5Y.js.br +0 -0
- package/dist/Bar3DChartScene-M72WQW5Y.js.gz +0 -0
- package/dist/{Line3DChartScene-77TZRLJY.mjs → Line3DChartScene-7MPZWVF3.mjs} +1 -1
- package/dist/Line3DChartScene-7MPZWVF3.mjs.br +0 -0
- package/dist/Line3DChartScene-7MPZWVF3.mjs.gz +0 -0
- package/dist/{Line3DChartScene-3TP7OUIP.js → Line3DChartScene-YOZEEQZ3.js} +2 -2
- package/dist/Line3DChartScene-YOZEEQZ3.js.br +0 -0
- package/dist/Line3DChartScene-YOZEEQZ3.js.gz +0 -0
- package/dist/{Model3DScene-QINKUHM2.mjs → Model3DScene-57LVY5QW.mjs} +1 -1
- package/dist/Model3DScene-57LVY5QW.mjs.br +0 -0
- package/dist/Model3DScene-57LVY5QW.mjs.gz +0 -0
- package/dist/{Model3DScene-CBETCFMI.js → Model3DScene-5IJSNGDZ.js} +2 -2
- package/dist/Model3DScene-5IJSNGDZ.js.br +0 -0
- package/dist/Model3DScene-5IJSNGDZ.js.gz +0 -0
- package/dist/{PieChart3DScene-NFXFVG7R.js → PieChart3DScene-UBI6X66Q.js} +2 -2
- package/dist/PieChart3DScene-UBI6X66Q.js.br +0 -0
- package/dist/PieChart3DScene-UBI6X66Q.js.gz +0 -0
- package/dist/{PieChart3DScene-H2DJSHW7.mjs → PieChart3DScene-WD5B6NP3.mjs} +1 -1
- package/dist/PieChart3DScene-WD5B6NP3.mjs.br +0 -0
- package/dist/PieChart3DScene-WD5B6NP3.mjs.gz +0 -0
- package/dist/{PowerPointViewer-Cl6jBPNw.d.ts → PowerPointViewer-Cde_wzd0.d.ts} +2 -2
- package/dist/{PowerPointViewer-Cl6jBPNw.d.ts.map → PowerPointViewer-Cde_wzd0.d.ts.map} +1 -1
- package/dist/{SurfaceChart3DScene-2IN5YKKE.js → SurfaceChart3DScene-JGNPYQ32.js} +2 -2
- package/dist/SurfaceChart3DScene-JGNPYQ32.js.br +0 -0
- package/dist/SurfaceChart3DScene-JGNPYQ32.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-4AGI4O3L.mjs → SurfaceChart3DScene-JZGU6BBD.mjs} +1 -1
- package/dist/SurfaceChart3DScene-JZGU6BBD.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-JZGU6BBD.mjs.gz +0 -0
- package/dist/{audience-content-store-CB2WVM1K.d.ts → audience-content-store-A8Km8rBo.d.ts} +2 -2
- package/dist/{audience-content-store-CB2WVM1K.d.ts.map → audience-content-store-A8Km8rBo.d.ts.map} +1 -1
- package/dist/{chunk-3FVOKV4E.js → chunk-4SPZ5IZN.js} +1110 -470
- package/dist/chunk-4SPZ5IZN.js.br +0 -0
- package/dist/chunk-4SPZ5IZN.js.gz +0 -0
- package/dist/{chunk-3AJ54EAB.js → chunk-64FUV37N.js} +9 -0
- package/dist/chunk-64FUV37N.js.br +0 -0
- package/dist/{chunk-3AJ54EAB.js.gz → chunk-64FUV37N.js.gz} +0 -0
- package/dist/{chunk-4NSDMKFE.js → chunk-7FBKS7OS.js} +178 -178
- package/dist/chunk-7FBKS7OS.js.br +0 -0
- package/dist/chunk-7FBKS7OS.js.gz +0 -0
- package/dist/{chunk-7ELFYC6K.mjs → chunk-7YJBRPCT.mjs} +9 -5
- package/dist/chunk-7YJBRPCT.mjs.br +0 -0
- package/dist/chunk-7YJBRPCT.mjs.gz +0 -0
- package/dist/{chunk-4Q6VIX6M.js → chunk-E55VEC37.js} +557 -504
- package/dist/chunk-E55VEC37.js.br +0 -0
- package/dist/chunk-E55VEC37.js.gz +0 -0
- package/dist/{chunk-SQNEE6AM.js → chunk-IRG7SIUX.js} +1347 -1337
- package/dist/chunk-IRG7SIUX.js.br +0 -0
- package/dist/chunk-IRG7SIUX.js.gz +0 -0
- package/dist/{chunk-I5YSAIL5.mjs → chunk-IXKAIIA2.mjs} +63 -53
- package/dist/chunk-IXKAIIA2.mjs.br +0 -0
- package/dist/chunk-IXKAIIA2.mjs.gz +0 -0
- package/dist/{chunk-TYVSLRC7.js → chunk-KVXB22D3.js} +13 -9
- package/dist/chunk-KVXB22D3.js.br +0 -0
- package/dist/{chunk-TYVSLRC7.js.gz → chunk-KVXB22D3.js.gz} +0 -0
- package/dist/{chunk-HMX3MQR7.mjs → chunk-LAU34UMB.mjs} +9 -1
- package/dist/chunk-LAU34UMB.mjs.br +0 -0
- package/dist/{chunk-HMX3MQR7.mjs.gz → chunk-LAU34UMB.mjs.gz} +0 -0
- package/dist/{chunk-3PUFHKXW.mjs → chunk-OAKDJYYT.mjs} +103 -50
- package/dist/chunk-OAKDJYYT.mjs.br +0 -0
- package/dist/chunk-OAKDJYYT.mjs.gz +0 -0
- package/dist/{chunk-XMD6ZWUO.mjs → chunk-QTGCOL5H.mjs} +1104 -471
- package/dist/chunk-QTGCOL5H.mjs.br +0 -0
- package/dist/chunk-QTGCOL5H.mjs.gz +0 -0
- package/dist/{chunk-B3YVURJB.mjs → chunk-VYSMTC5C.mjs} +2 -2
- package/dist/chunk-VYSMTC5C.mjs.br +0 -0
- package/dist/chunk-VYSMTC5C.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +33 -3
- package/dist/index.js +47 -47
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +38 -3
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{types-Bzdkiakq.d.ts → types-BqB2ZCwS.d.ts} +3 -3
- package/dist/{types-Bzdkiakq.d.ts.map → types-BqB2ZCwS.d.ts.map} +1 -1
- package/dist/{useViewerBuildingBlocks-FbK-4ORi.d.ts → useViewerBuildingBlocks-DkUGmlkP.d.ts} +4 -4
- package/dist/{useViewerBuildingBlocks-FbK-4ORi.d.ts.map → useViewerBuildingBlocks-DkUGmlkP.d.ts.map} +1 -1
- package/dist/viewer/index.d.ts +31 -1
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-GLDW5OK4.mjs.br +0 -0
- package/dist/AiChatPanel-GLDW5OK4.mjs.gz +0 -0
- package/dist/AiChatPanel-N25STHYW.js.br +0 -0
- package/dist/AiChatPanel-N25STHYW.js.gz +0 -0
- package/dist/Area3DChartScene-5POI5LF7.js.br +0 -0
- package/dist/Area3DChartScene-5POI5LF7.js.gz +0 -0
- package/dist/Area3DChartScene-FCHO4SK6.mjs.br +0 -0
- package/dist/Area3DChartScene-FCHO4SK6.mjs.gz +0 -0
- package/dist/Bar3DChartScene-5CY5GRV5.js.br +0 -0
- package/dist/Bar3DChartScene-5CY5GRV5.js.gz +0 -0
- package/dist/Bar3DChartScene-M3LLHXAL.mjs.br +0 -0
- package/dist/Bar3DChartScene-M3LLHXAL.mjs.gz +0 -0
- package/dist/Line3DChartScene-3TP7OUIP.js.br +0 -0
- package/dist/Line3DChartScene-3TP7OUIP.js.gz +0 -0
- package/dist/Line3DChartScene-77TZRLJY.mjs.br +0 -0
- package/dist/Line3DChartScene-77TZRLJY.mjs.gz +0 -0
- package/dist/Model3DScene-CBETCFMI.js.br +0 -0
- package/dist/Model3DScene-CBETCFMI.js.gz +0 -0
- package/dist/Model3DScene-QINKUHM2.mjs.br +0 -0
- package/dist/Model3DScene-QINKUHM2.mjs.gz +0 -0
- package/dist/PieChart3DScene-H2DJSHW7.mjs.br +0 -0
- package/dist/PieChart3DScene-H2DJSHW7.mjs.gz +0 -0
- package/dist/PieChart3DScene-NFXFVG7R.js.br +0 -0
- package/dist/PieChart3DScene-NFXFVG7R.js.gz +0 -0
- package/dist/SurfaceChart3DScene-2IN5YKKE.js.br +0 -0
- package/dist/SurfaceChart3DScene-2IN5YKKE.js.gz +0 -0
- package/dist/SurfaceChart3DScene-4AGI4O3L.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-4AGI4O3L.mjs.gz +0 -0
- package/dist/chunk-3AJ54EAB.js.br +0 -0
- package/dist/chunk-3FVOKV4E.js.br +0 -0
- package/dist/chunk-3FVOKV4E.js.gz +0 -0
- package/dist/chunk-3PUFHKXW.mjs.br +0 -0
- package/dist/chunk-3PUFHKXW.mjs.gz +0 -0
- package/dist/chunk-4NSDMKFE.js.br +0 -0
- package/dist/chunk-4NSDMKFE.js.gz +0 -0
- package/dist/chunk-4Q6VIX6M.js.br +0 -0
- package/dist/chunk-4Q6VIX6M.js.gz +0 -0
- package/dist/chunk-7ELFYC6K.mjs.br +0 -0
- package/dist/chunk-7ELFYC6K.mjs.gz +0 -0
- package/dist/chunk-B3YVURJB.mjs.br +0 -0
- package/dist/chunk-B3YVURJB.mjs.gz +0 -0
- package/dist/chunk-HMX3MQR7.mjs.br +0 -0
- package/dist/chunk-I5YSAIL5.mjs.br +0 -0
- package/dist/chunk-I5YSAIL5.mjs.gz +0 -0
- package/dist/chunk-SQNEE6AM.js.br +0 -0
- package/dist/chunk-SQNEE6AM.js.gz +0 -0
- package/dist/chunk-TYVSLRC7.js.br +0 -0
- package/dist/chunk-XMD6ZWUO.mjs.br +0 -0
- package/dist/chunk-XMD6ZWUO.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, xmlText, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitWordsForUnderline, splitRunForMetrics, splitRunByScriptFont } from './chunk-
|
|
2
|
-
import { translationsEn } from './chunk-
|
|
1
|
+
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, clampUnitInterval, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, xmlText, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitWordsForUnderline, splitRunForMetrics, splitRunByScriptFont } from './chunk-QTGCOL5H.mjs';
|
|
2
|
+
import { translationsEn } from './chunk-LAU34UMB.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import React7, { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
|
|
Binary file
|
|
Binary file
|
package/dist/i18n.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk64FUV37N_js = require('./chunk-64FUV37N.js');
|
|
4
4
|
require('./chunk-4VNS5WPM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk64FUV37N_js.LOCALE_CATALOG; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "keyToLabel", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk64FUV37N_js.keyToLabel; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "translationsEn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk64FUV37N_js.translationsEn; }
|
|
19
19
|
});
|
package/dist/i18n.js.br
CHANGED
|
Binary file
|
package/dist/i18n.js.gz
CHANGED
|
Binary file
|
package/dist/i18n.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-
|
|
1
|
+
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-LAU34UMB.mjs';
|
|
2
2
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/i18n.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n.mjs.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -2067,6 +2067,12 @@ interface TextSegment {
|
|
|
2067
2067
|
* on the first segment of a paragraph.
|
|
2068
2068
|
*/
|
|
2069
2069
|
endParaRunProperties?: Record<string, unknown>;
|
|
2070
|
+
/**
|
|
2071
|
+
* Resolved body defaults and optional `a:endParaRPr` of a runless paragraph.
|
|
2072
|
+
* Carried on its first segment (or terminator), separately from marker
|
|
2073
|
+
* styling. Absent when the source contains an authored run or field.
|
|
2074
|
+
*/
|
|
2075
|
+
paragraphInsertionStyle?: TextStyle;
|
|
2070
2076
|
/**
|
|
2071
2077
|
* Per-paragraph properties (alignment, spacing, margins, indent, tab stops,
|
|
2072
2078
|
* rtl) authored on this paragraph's own `a:pPr` (#69). Only meaningful on
|
|
@@ -2188,6 +2194,8 @@ interface PptxElementBase {
|
|
|
2188
2194
|
widthEmu?: number;
|
|
2189
2195
|
/** The exact EMU integer `height` was parsed from (`a:ext/@_cy`). See {@link xEmu}. */
|
|
2190
2196
|
heightEmu?: number;
|
|
2197
|
+
/** Resolved load-time transform for a shape with no own a:xfrm. Used only to detect edits. */
|
|
2198
|
+
inheritedTransform?: Pick<PptxElementBase, 'x' | 'y' | 'width' | 'height' | 'rotation' | 'skewX' | 'skewY' | 'flipHorizontal' | 'flipVertical'>;
|
|
2191
2199
|
rotation?: number;
|
|
2192
2200
|
/** Skew along the X axis in degrees (parsed from `@_skewX` in 1/60000ths of a degree). */
|
|
2193
2201
|
skewX?: number;
|
|
@@ -11639,6 +11647,14 @@ interface PowerPointViewerAPI {
|
|
|
11639
11647
|
getElements: (slideIndex?: number) => readonly PptxElement[];
|
|
11640
11648
|
/** Get a single element by ID from the active slide (or a specified slide). */
|
|
11641
11649
|
getElementById: (elementId: string, slideIndex?: number) => PptxElement | undefined;
|
|
11650
|
+
/**
|
|
11651
|
+
* Append and select a deep copy on the active ordinary editable slide.
|
|
11652
|
+
* Assigns fresh element IDs without offsetting the supplied geometry.
|
|
11653
|
+
* Returns the new root ID, or undefined when insertion is unavailable.
|
|
11654
|
+
* Uses normal Undo/Redo grouping. Models must be self-contained or refer to
|
|
11655
|
+
* assets in this document; this does not import foreign PPTX relationships.
|
|
11656
|
+
*/
|
|
11657
|
+
addElement: (element: PptxElement) => string | undefined;
|
|
11642
11658
|
/**
|
|
11643
11659
|
* Update one or more properties of an element by ID on the active slide.
|
|
11644
11660
|
* Accepts a `Partial<PptxElement>` patch (e.g. `{ x: 100, width: 300 }`).
|
|
@@ -12429,6 +12445,20 @@ declare function readStoredViewerPrefs(): StoredViewerPrefs;
|
|
|
12429
12445
|
declare function writeStoredViewerPrefs(patch: Partial<StoredViewerPrefs>): void;
|
|
12430
12446
|
/** Remove all persisted viewer preferences. Silently no-ops when storage is unavailable. */
|
|
12431
12447
|
declare function clearStoredViewerPrefs(): void;
|
|
12448
|
+
//#endregion
|
|
12449
|
+
//#region src/render/viewport-fit.d.ts
|
|
12450
|
+
/** Unscaled CSS pixels reserved on each side of the ordinary viewer viewport. */
|
|
12451
|
+
type ViewportFitPadding = number | {
|
|
12452
|
+
horizontal: number;
|
|
12453
|
+
vertical: number;
|
|
12454
|
+
};
|
|
12455
|
+
/** Host layout policy, independent of authored slide dimensions and user zoom. */
|
|
12456
|
+
interface ViewportFitOptions {
|
|
12457
|
+
/** Per-side padding. Omission keeps the binding's existing decorative allowance. */
|
|
12458
|
+
fitPadding?: ViewportFitPadding;
|
|
12459
|
+
/** Positive fit-factor ceiling; null allows enlargement without a ceiling. */
|
|
12460
|
+
maxFitScale?: number | null;
|
|
12461
|
+
}
|
|
12432
12462
|
|
|
12433
12463
|
//#region src/viewer/types-core.d.ts
|
|
12434
12464
|
/**
|
|
@@ -12727,7 +12757,7 @@ interface TableCellEditorState {
|
|
|
12727
12757
|
type ToolbarSection = 'file' | 'home' | 'insert' | 'text' | 'arrange' | 'draw' | 'design' | 'transitions' | 'animations' | 'slideShow' | 'record' | 'review' | 'view' | 'help';
|
|
12728
12758
|
/** The active drawing/inking tool selected in the Draw toolbar tab. */
|
|
12729
12759
|
type DrawingTool = 'select' | 'pen' | 'highlighter' | 'eraser' | 'freeform';
|
|
12730
|
-
interface PowerPointViewerProps {
|
|
12760
|
+
interface PowerPointViewerProps extends ViewportFitOptions {
|
|
12731
12761
|
/** PowerPoint content as Uint8Array */
|
|
12732
12762
|
content: Uint8Array;
|
|
12733
12763
|
/** Licensed fonts supplied by the host application. No fonts are bundled. */
|
|
@@ -13447,7 +13477,7 @@ type AutosaveStatus = {
|
|
|
13447
13477
|
};
|
|
13448
13478
|
//#endregion
|
|
13449
13479
|
//#region src/viewer/hooks/useViewerBuildingBlocks.d.ts
|
|
13450
|
-
interface UseViewerBuildingBlocksInput {
|
|
13480
|
+
interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
|
|
13451
13481
|
/** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
|
|
13452
13482
|
content: ArrayBuffer | Uint8Array | null | undefined;
|
|
13453
13483
|
/** Whether editing actions are enabled. Defaults to false (view-only). */
|
|
@@ -13538,4 +13568,4 @@ declare function SlideTemplatePreview({ templateId, scheme }: SlideTemplatePrevi
|
|
|
13538
13568
|
declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
|
|
13539
13569
|
|
|
13540
13570
|
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, LOCALE_CATALOG, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PowerPointViewer, SLIDE_TEMPLATES, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, THEME_CATALOG, Toolbar, VIEWER_PREFS_STORAGE_KEY, ViewerThemeProvider, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getAnimationInitialStyle, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, renderToCanvas, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, useViewerBuildingBlocks, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs };
|
|
13541
|
-
export type { AccountAuthConfig, LocalStorageUsageSummary, LocaleCatalogEntry, PowerPointViewerAPI, PowerPointViewerHandle, PowerPointViewerProps, PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy, SavedPresentationFormat, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplateId, SlideTemplatePreviewProps, SlideTemplateSpec, StoredViewerPrefs, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarProps, ToolbarTabId, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerMode, ViewerProfile, ViewerTheme, ViewerThemeColors };
|
|
13571
|
+
export type { AccountAuthConfig, LocalStorageUsageSummary, LocaleCatalogEntry, PowerPointViewerAPI, PowerPointViewerHandle, PowerPointViewerProps, PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy, SavedPresentationFormat, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplateId, SlideTemplatePreviewProps, SlideTemplateSpec, StoredViewerPrefs, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarProps, ToolbarTabId, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerMode, ViewerProfile, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding };
|
package/dist/index.js
CHANGED
|
@@ -1,176 +1,176 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
3
|
+
var chunkIRG7SIUX_js = require('./chunk-IRG7SIUX.js');
|
|
4
|
+
require('./chunk-KVXB22D3.js');
|
|
5
|
+
var chunkE55VEC37_js = require('./chunk-E55VEC37.js');
|
|
6
|
+
var chunk7FBKS7OS_js = require('./chunk-7FBKS7OS.js');
|
|
7
|
+
var chunk4SPZ5IZN_js = require('./chunk-4SPZ5IZN.js');
|
|
8
|
+
var chunk64FUV37N_js = require('./chunk-64FUV37N.js');
|
|
9
9
|
require('./chunk-4VNS5WPM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkIRG7SIUX_js.PowerPointViewer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkIRG7SIUX_js.SlideCanvas; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkIRG7SIUX_js.SlideTemplateGalleryDialog; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkIRG7SIUX_js.SlideTemplatePreview; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "Toolbar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkIRG7SIUX_js.Toolbar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkIRG7SIUX_js.ViewerThemeProvider; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkIRG7SIUX_js.useViewerTheme; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkE55VEC37_js.renderToCanvas; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkE55VEC37_js.useViewerBuildingBlocks; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk7FBKS7OS_js.getAnimationInitialStyle; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk4SPZ5IZN_js.AVATAR_COLOR_SWATCHES; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk4SPZ5IZN_js.DEFAULT_VIEWER_PROFILE; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk4SPZ5IZN_js.PPTX_OPEN_ACCEPT; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk4SPZ5IZN_js.PRESENTATION_OPEN_EXTENSIONS; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "SLIDE_TEMPLATES", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk4SPZ5IZN_js.SLIDE_TEMPLATES; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk4SPZ5IZN_js.THEME_CATALOG; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk4SPZ5IZN_js.VIEWER_PREFS_STORAGE_KEY; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "buildSlideTemplateContent", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk4SPZ5IZN_js.buildSlideTemplateContent; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "buildSlideTemplateSlide", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk4SPZ5IZN_js.buildSlideTemplateSlide; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "clearAllLocalViewerData", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk4SPZ5IZN_js.clearAllLocalViewerData; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "clearStoredViewerPrefs", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk4SPZ5IZN_js.clearStoredViewerPrefs; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunk4SPZ5IZN_js.defaultCssVars; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "defaultRadius", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunk4SPZ5IZN_js.defaultRadius; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk4SPZ5IZN_js.defaultThemeColors; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "getLocalStorageUsageSummary", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunk4SPZ5IZN_js.getLocalStorageUsageSummary; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "isLegacyBinaryPresentation", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunk4SPZ5IZN_js.isLegacyBinaryPresentation; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "isSupportedPresentationFile", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunk4SPZ5IZN_js.isSupportedPresentationFile; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "presentationBaseName", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk4SPZ5IZN_js.presentationBaseName; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "readStoredViewerPrefs", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk4SPZ5IZN_js.readStoredViewerPrefs; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "resolveProfileInitial", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk4SPZ5IZN_js.resolveProfileInitial; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk4SPZ5IZN_js.resolveThemeCatalogEntry; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "saveViewerProfile", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk4SPZ5IZN_js.saveViewerProfile; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "savedPresentationFileName", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunk4SPZ5IZN_js.savedPresentationFileName; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunk4SPZ5IZN_js.themeToCssVars; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunk4SPZ5IZN_js.vermilionDarkColors; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunk4SPZ5IZN_js.vermilionDarkTheme; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunk4SPZ5IZN_js.vermilionLightColors; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunk4SPZ5IZN_js.vermilionLightTheme; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk4SPZ5IZN_js.vermilionRadius; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk4SPZ5IZN_js.writeStoredViewerPrefs; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk64FUV37N_js.LOCALE_CATALOG; }
|
|
176
176
|
});
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
4
|
-
export { getAnimationInitialStyle } from './chunk-
|
|
5
|
-
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-
|
|
6
|
-
export { LOCALE_CATALOG } from './chunk-
|
|
1
|
+
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-IXKAIIA2.mjs';
|
|
2
|
+
import './chunk-7YJBRPCT.mjs';
|
|
3
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-OAKDJYYT.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from './chunk-VYSMTC5C.mjs';
|
|
5
|
+
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-QTGCOL5H.mjs';
|
|
6
|
+
export { LOCALE_CATALOG } from './chunk-LAU34UMB.mjs';
|
|
7
7
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -2047,6 +2047,12 @@ interface TextSegment {
|
|
|
2047
2047
|
* on the first segment of a paragraph.
|
|
2048
2048
|
*/
|
|
2049
2049
|
endParaRunProperties?: Record<string, unknown>;
|
|
2050
|
+
/**
|
|
2051
|
+
* Resolved body defaults and optional `a:endParaRPr` of a runless paragraph.
|
|
2052
|
+
* Carried on its first segment (or terminator), separately from marker
|
|
2053
|
+
* styling. Absent when the source contains an authored run or field.
|
|
2054
|
+
*/
|
|
2055
|
+
paragraphInsertionStyle?: TextStyle;
|
|
2050
2056
|
/**
|
|
2051
2057
|
* Per-paragraph properties (alignment, spacing, margins, indent, tab stops,
|
|
2052
2058
|
* rtl) authored on this paragraph's own `a:pPr` (#69). Only meaningful on
|
|
@@ -2168,6 +2174,8 @@ interface PptxElementBase {
|
|
|
2168
2174
|
widthEmu?: number;
|
|
2169
2175
|
/** The exact EMU integer `height` was parsed from (`a:ext/@_cy`). See {@link xEmu}. */
|
|
2170
2176
|
heightEmu?: number;
|
|
2177
|
+
/** Resolved load-time transform for a shape with no own a:xfrm. Used only to detect edits. */
|
|
2178
|
+
inheritedTransform?: Pick<PptxElementBase, 'x' | 'y' | 'width' | 'height' | 'rotation' | 'skewX' | 'skewY' | 'flipHorizontal' | 'flipVertical'>;
|
|
2171
2179
|
rotation?: number;
|
|
2172
2180
|
/** Skew along the X axis in degrees (parsed from `@_skewX` in 1/60000ths of a degree). */
|
|
2173
2181
|
skewX?: number;
|
|
@@ -11483,6 +11491,14 @@ interface PowerPointViewerAPI {
|
|
|
11483
11491
|
getElements: (slideIndex?: number) => readonly PptxElement[];
|
|
11484
11492
|
/** Get a single element by ID from the active slide (or a specified slide). */
|
|
11485
11493
|
getElementById: (elementId: string, slideIndex?: number) => PptxElement | undefined;
|
|
11494
|
+
/**
|
|
11495
|
+
* Append and select a deep copy on the active ordinary editable slide.
|
|
11496
|
+
* Assigns fresh element IDs without offsetting the supplied geometry.
|
|
11497
|
+
* Returns the new root ID, or undefined when insertion is unavailable.
|
|
11498
|
+
* Uses normal Undo/Redo grouping. Models must be self-contained or refer to
|
|
11499
|
+
* assets in this document; this does not import foreign PPTX relationships.
|
|
11500
|
+
*/
|
|
11501
|
+
addElement: (element: PptxElement) => string | undefined;
|
|
11486
11502
|
/**
|
|
11487
11503
|
* Update one or more properties of an element by ID on the active slide.
|
|
11488
11504
|
* Accepts a `Partial<PptxElement>` patch (e.g. `{ x: 100, width: 300 }`).
|
|
@@ -12715,6 +12731,20 @@ interface RunProgramNotice {
|
|
|
12715
12731
|
/** i18n key for the Copy button label. */
|
|
12716
12732
|
readonly copyLabelKey: string;
|
|
12717
12733
|
}
|
|
12734
|
+
//#endregion
|
|
12735
|
+
//#region src/render/viewport-fit.d.ts
|
|
12736
|
+
/** Unscaled CSS pixels reserved on each side of the ordinary viewer viewport. */
|
|
12737
|
+
type ViewportFitPadding = number | {
|
|
12738
|
+
horizontal: number;
|
|
12739
|
+
vertical: number;
|
|
12740
|
+
};
|
|
12741
|
+
/** Host layout policy, independent of authored slide dimensions and user zoom. */
|
|
12742
|
+
interface ViewportFitOptions {
|
|
12743
|
+
/** Per-side padding. Omission keeps the binding's existing decorative allowance. */
|
|
12744
|
+
fitPadding?: ViewportFitPadding;
|
|
12745
|
+
/** Positive fit-factor ceiling; null allows enlargement without a ceiling. */
|
|
12746
|
+
maxFitScale?: number | null;
|
|
12747
|
+
}
|
|
12718
12748
|
|
|
12719
12749
|
//#region src/viewer/types-core.d.ts
|
|
12720
12750
|
/**
|
|
@@ -13402,7 +13432,7 @@ interface UseAutosaveResult {
|
|
|
13402
13432
|
declare function useAutosave(input: UseAutosaveInput): UseAutosaveResult;
|
|
13403
13433
|
//#endregion
|
|
13404
13434
|
//#region src/viewer/hooks/useViewerBuildingBlocks.d.ts
|
|
13405
|
-
interface UseViewerBuildingBlocksInput {
|
|
13435
|
+
interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
|
|
13406
13436
|
/** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
|
|
13407
13437
|
content: ArrayBuffer | Uint8Array | null | undefined;
|
|
13408
13438
|
/** Whether editing actions are enabled. Defaults to false (view-only). */
|
|
@@ -13895,7 +13925,7 @@ interface SelectionBounds {
|
|
|
13895
13925
|
maxX: number;
|
|
13896
13926
|
maxY: number;
|
|
13897
13927
|
}
|
|
13898
|
-
interface UseZoomViewportInput {
|
|
13928
|
+
interface UseZoomViewportInput extends ViewportFitOptions {
|
|
13899
13929
|
canvasSize: CanvasSize;
|
|
13900
13930
|
selectedElements: PptxElement[];
|
|
13901
13931
|
}
|
|
@@ -13922,7 +13952,7 @@ interface UseZoomViewportResult {
|
|
|
13922
13952
|
y: number;
|
|
13923
13953
|
} | null;
|
|
13924
13954
|
}
|
|
13925
|
-
declare function useZoomViewport({ canvasSize, selectedElements }: UseZoomViewportInput): UseZoomViewportResult;
|
|
13955
|
+
declare function useZoomViewport({ canvasSize, selectedElements, fitPadding, maxFitScale }: UseZoomViewportInput): UseZoomViewportResult;
|
|
13926
13956
|
//#endregion
|
|
13927
13957
|
//#region src/viewer/hooks/presentation-mode/useCustomShowRunner.d.ts
|
|
13928
13958
|
/**
|
|
@@ -15089,6 +15119,7 @@ interface UseInsertElementsInput {
|
|
|
15089
15119
|
history: EditorHistoryResult;
|
|
15090
15120
|
}
|
|
15091
15121
|
interface InsertElementHandlers {
|
|
15122
|
+
addElement: (element: PptxElement) => void;
|
|
15092
15123
|
handleAddTextBox: () => void;
|
|
15093
15124
|
handleAddShape: () => void;
|
|
15094
15125
|
handleAddTable: () => void;
|
|
@@ -16097,6 +16128,8 @@ interface UseViewerIntegrationInput {
|
|
|
16097
16128
|
/** Forwarded to `useContentLifecycle` -> `useLoadContent`: see `useCompatibilityToastsState`. */
|
|
16098
16129
|
setCompatToasts: Dispatch<SetStateAction<CompatibilityWarningToast[]>>;
|
|
16099
16130
|
canEdit: boolean;
|
|
16131
|
+
/** Additional insertion gate for a headless host's loaded read-only recommendation. */
|
|
16132
|
+
canInsertElement?: boolean;
|
|
16100
16133
|
/**
|
|
16101
16134
|
* Options > Advanced > "Prompt to keep ink annotations when exiting"
|
|
16102
16135
|
* (default true). When false, exiting a slide show with annotations
|
|
@@ -16513,6 +16546,8 @@ interface UseKeyboardShortcutsInput {
|
|
|
16513
16546
|
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
16514
16547
|
mode: ViewerMode;
|
|
16515
16548
|
canEdit: boolean;
|
|
16549
|
+
/** Omitted preserves custom callers; false leaves native paste unclaimed. */
|
|
16550
|
+
canPaste?: boolean;
|
|
16516
16551
|
/** Whether any element is currently being inline-edited (text box). */
|
|
16517
16552
|
inlineEditingElementId: string | null;
|
|
16518
16553
|
/** Whether a table cell is being edited. */
|