pptx-react-viewer 4.16.1 → 4.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 +40 -0
- package/dist/{AiChatPanel-DFZSMXJB.js → AiChatPanel-4VMAZWMA.js} +28 -28
- package/dist/AiChatPanel-4VMAZWMA.js.br +0 -0
- package/dist/AiChatPanel-4VMAZWMA.js.gz +0 -0
- package/dist/{AiChatPanel-K3PL6O3M.mjs → AiChatPanel-Z455OA7S.mjs} +4 -4
- package/dist/AiChatPanel-Z455OA7S.mjs.br +0 -0
- package/dist/AiChatPanel-Z455OA7S.mjs.gz +0 -0
- package/dist/{Model3DScene-EOKTWVG7.mjs → Model3DScene-DTWVQCBT.mjs} +1 -1
- package/dist/Model3DScene-DTWVQCBT.mjs.br +0 -0
- package/dist/Model3DScene-DTWVQCBT.mjs.gz +0 -0
- package/dist/{Model3DScene-ZYC5U7NY.js → Model3DScene-MFLMJAQX.js} +2 -2
- package/dist/Model3DScene-MFLMJAQX.js.br +0 -0
- package/dist/Model3DScene-MFLMJAQX.js.gz +0 -0
- package/dist/{chunk-XVJSAY7C.js → chunk-24CSDBXI.js} +875 -826
- package/dist/chunk-24CSDBXI.js.br +0 -0
- package/dist/chunk-24CSDBXI.js.gz +0 -0
- package/dist/{chunk-4VV5HJXQ.js → chunk-24UNI4EL.js} +6363 -3381
- package/dist/chunk-24UNI4EL.js.br +0 -0
- package/dist/chunk-24UNI4EL.js.gz +0 -0
- package/dist/{chunk-VUNRFZRR.mjs → chunk-26EMM7IE.mjs} +6343 -3365
- package/dist/chunk-26EMM7IE.mjs.br +0 -0
- package/dist/chunk-26EMM7IE.mjs.gz +0 -0
- package/dist/{chunk-33XJSD62.mjs → chunk-GLLEZR4U.mjs} +8 -0
- package/dist/chunk-GLLEZR4U.mjs.br +0 -0
- package/dist/{chunk-33XJSD62.mjs.gz → chunk-GLLEZR4U.mjs.gz} +0 -0
- package/dist/{chunk-KK2CFTKC.mjs → chunk-HUNX22TC.mjs} +2 -2
- package/dist/chunk-HUNX22TC.mjs.br +0 -0
- package/dist/chunk-HUNX22TC.mjs.gz +0 -0
- package/dist/{chunk-CWVPHCMJ.js → chunk-I23JEAUE.js} +5 -5
- package/dist/chunk-I23JEAUE.js.br +0 -0
- package/dist/chunk-I23JEAUE.js.gz +0 -0
- package/dist/{chunk-RE6NDQH7.js → chunk-I6VNRB6R.js} +197 -197
- package/dist/chunk-I6VNRB6R.js.br +0 -0
- package/dist/chunk-I6VNRB6R.js.gz +0 -0
- package/dist/{chunk-6PWT46Y4.mjs → chunk-JSMKHCKC.mjs} +604 -1804
- package/dist/chunk-JSMKHCKC.mjs.br +0 -0
- package/dist/chunk-JSMKHCKC.mjs.gz +0 -0
- package/dist/{chunk-VVGYZBF5.js → chunk-QDVMTPYQ.js} +2568 -3768
- package/dist/chunk-QDVMTPYQ.js.br +0 -0
- package/dist/chunk-QDVMTPYQ.js.gz +0 -0
- package/dist/{chunk-LJEI7O6S.js → chunk-QWQADOJZ.js} +8 -0
- package/dist/chunk-QWQADOJZ.js.br +0 -0
- package/dist/{chunk-LJEI7O6S.js.gz → chunk-QWQADOJZ.js.gz} +0 -0
- package/dist/{chunk-VUI3VE7K.mjs → chunk-UKR42GJS.mjs} +59 -10
- package/dist/chunk-UKR42GJS.mjs.br +0 -0
- package/dist/chunk-UKR42GJS.mjs.gz +0 -0
- package/dist/{chunk-QZSA3E4L.mjs → chunk-YMVJOQIS.mjs} +1 -1
- package/dist/chunk-YMVJOQIS.mjs.br +0 -0
- package/dist/chunk-YMVJOQIS.mjs.gz +0 -0
- package/dist/i18n/de.cjs +9 -1
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +9 -1
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +9 -1
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +9 -1
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +9 -1
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +9 -1
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +9 -1
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +9 -1
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.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 +158 -12185
- package/dist/index.js +63 -63
- 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 +162 -12196
- package/dist/internals.js +105 -105
- 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/viewer/index.d.ts +156 -12183
- 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 +2 -2
- package/dist/AiChatPanel-DFZSMXJB.js.br +0 -0
- package/dist/AiChatPanel-DFZSMXJB.js.gz +0 -0
- package/dist/AiChatPanel-K3PL6O3M.mjs.br +0 -0
- package/dist/AiChatPanel-K3PL6O3M.mjs.gz +0 -0
- package/dist/Model3DScene-EOKTWVG7.mjs.br +0 -0
- package/dist/Model3DScene-EOKTWVG7.mjs.gz +0 -0
- package/dist/Model3DScene-ZYC5U7NY.js.br +0 -0
- package/dist/Model3DScene-ZYC5U7NY.js.gz +0 -0
- package/dist/chunk-33XJSD62.mjs.br +0 -0
- package/dist/chunk-4VV5HJXQ.js.br +0 -0
- package/dist/chunk-4VV5HJXQ.js.gz +0 -0
- package/dist/chunk-6PWT46Y4.mjs.br +0 -0
- package/dist/chunk-6PWT46Y4.mjs.gz +0 -0
- package/dist/chunk-CWVPHCMJ.js.br +0 -0
- package/dist/chunk-CWVPHCMJ.js.gz +0 -0
- package/dist/chunk-KK2CFTKC.mjs.br +0 -0
- package/dist/chunk-KK2CFTKC.mjs.gz +0 -0
- package/dist/chunk-LJEI7O6S.js.br +0 -0
- package/dist/chunk-QZSA3E4L.mjs.br +0 -0
- package/dist/chunk-QZSA3E4L.mjs.gz +0 -0
- package/dist/chunk-RE6NDQH7.js.br +0 -0
- package/dist/chunk-RE6NDQH7.js.gz +0 -0
- package/dist/chunk-VUI3VE7K.mjs.br +0 -0
- package/dist/chunk-VUI3VE7K.mjs.gz +0 -0
- package/dist/chunk-VUNRFZRR.mjs.br +0 -0
- package/dist/chunk-VUNRFZRR.mjs.gz +0 -0
- package/dist/chunk-VVGYZBF5.js.br +0 -0
- package/dist/chunk-VVGYZBF5.js.gz +0 -0
- package/dist/chunk-XVJSAY7C.js.br +0 -0
- package/dist/chunk-XVJSAY7C.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -2479,6 +2479,7 @@ var translationsEn = {
|
|
|
2479
2479
|
"pptx.ribbon.formatBackground": "Format Background",
|
|
2480
2480
|
"pptx.ribbon.formatBackgroundTitle": "Format slide background - opens the Inspector",
|
|
2481
2481
|
"pptx.ribbon.preview": "Preview",
|
|
2482
|
+
"pptx.ribbon.transitionToThisSlide": "Transition to This Slide",
|
|
2482
2483
|
"pptx.ribbon.previewTransition": "Preview transition",
|
|
2483
2484
|
"pptx.ribbon.duration": "Duration:",
|
|
2484
2485
|
"pptx.ribbon.transitionDurationTitle": "Transition duration in seconds",
|
|
@@ -2875,6 +2876,13 @@ var translationsEn = {
|
|
|
2875
2876
|
"pptx.hyperlink.urlPlaceholder": "https://example.com",
|
|
2876
2877
|
"pptx.insert.addShape": "Add shape",
|
|
2877
2878
|
"pptx.insert.addTextBox": "Add text box",
|
|
2879
|
+
"pptx.insert.groupTables": "Tables",
|
|
2880
|
+
"pptx.insert.groupImages": "Images",
|
|
2881
|
+
"pptx.insert.groupIllustrations": "Illustrations",
|
|
2882
|
+
"pptx.insert.groupLinks": "Links",
|
|
2883
|
+
"pptx.insert.groupText": "Text",
|
|
2884
|
+
"pptx.insert.groupSymbols": "Symbols",
|
|
2885
|
+
"pptx.insert.groupMedia": "Media",
|
|
2878
2886
|
"pptx.insert.insertEquation": "Insert Equation",
|
|
2879
2887
|
"pptx.insert.insertSmartArt": "Insert SmartArt",
|
|
2880
2888
|
"pptx.insert.insertTable": "Insert table",
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getImageFillCounterTransform, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_SANDBOX, ONLINE_VIDEO_IFRAME_ALLOW, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, followingText, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, getConnectorPathGeometry, 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, measurePreviewGeometry, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, shouldShowMediaFullscreenStopButton, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, scaleFontSizeForAutoFit, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, authoredLetterSpacingPx, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, splitsUnderlineIntoWords, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, 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, splitEastAsianBreaks, splitRunByScriptFont } from './chunk-
|
|
2
|
-
import { translationsEn } from './chunk-
|
|
1
|
+
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getImageFillCounterTransform, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_SANDBOX, ONLINE_VIDEO_IFRAME_ALLOW, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, followingText, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, getConnectorPathGeometry, 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, measurePreviewGeometry, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, shouldShowMediaFullscreenStopButton, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, scaleFontSizeForAutoFit, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, authoredLetterSpacingPx, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, splitsUnderlineIntoWords, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, 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, splitEastAsianBreaks, splitRunByScriptFont } from './chunk-26EMM7IE.mjs';
|
|
2
|
+
import { translationsEn } from './chunk-GLLEZR4U.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import React8, { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk24UNI4EL_js = require('./chunk-24UNI4EL.js');
|
|
4
4
|
var chunk4VNS5WPM_js = require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var mcp = require('pptx-viewer-mcp');
|
|
6
6
|
var mcpSchemas = require('pptx-viewer-mcp/schemas');
|
|
@@ -19079,7 +19079,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
|
|
|
19079
19079
|
};
|
|
19080
19080
|
let markdown;
|
|
19081
19081
|
try {
|
|
19082
|
-
const converter = new
|
|
19082
|
+
const converter = new chunk24UNI4EL_js.PptxMarkdownConverter(
|
|
19083
19083
|
"",
|
|
19084
19084
|
{
|
|
19085
19085
|
sourceName: meta3.title ?? "deck.pptx",
|
|
@@ -19671,7 +19671,7 @@ var getTheme = (ctx) => {
|
|
|
19671
19671
|
name: theme?.name,
|
|
19672
19672
|
colorScheme: theme?.colorScheme,
|
|
19673
19673
|
fontScheme: theme?.fontScheme,
|
|
19674
|
-
availablePresets: Object.keys(
|
|
19674
|
+
availablePresets: Object.keys(chunk24UNI4EL_js.ThemePresets)
|
|
19675
19675
|
};
|
|
19676
19676
|
};
|
|
19677
19677
|
var readExecutors = {
|
|
@@ -20801,7 +20801,7 @@ function applyElementUpdate(el, u) {
|
|
|
20801
20801
|
applyShapeStyleUpdate(el, u);
|
|
20802
20802
|
}
|
|
20803
20803
|
function applyTextUpdate(el, u) {
|
|
20804
|
-
if (!
|
|
20804
|
+
if (!chunk24UNI4EL_js.hasTextProperties(el)) {
|
|
20805
20805
|
return;
|
|
20806
20806
|
}
|
|
20807
20807
|
const textEl = el;
|
|
@@ -20847,7 +20847,7 @@ function applyShapeStyleUpdate(el, u) {
|
|
|
20847
20847
|
if (u.fillColor === void 0 && u.strokeColor === void 0 && u.strokeWidth === void 0) {
|
|
20848
20848
|
return;
|
|
20849
20849
|
}
|
|
20850
|
-
if (!
|
|
20850
|
+
if (!chunk24UNI4EL_js.hasShapeProperties(el)) {
|
|
20851
20851
|
return;
|
|
20852
20852
|
}
|
|
20853
20853
|
const holder = el;
|
|
Binary file
|
|
Binary file
|