pptx-react-viewer 3.20.0 → 3.20.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 +25 -0
- package/dist/{AiChatPanel-OXCJVBUS.mjs → AiChatPanel-7AU4A3A7.mjs} +4 -4
- package/dist/AiChatPanel-7AU4A3A7.mjs.br +0 -0
- package/dist/AiChatPanel-7AU4A3A7.mjs.gz +0 -0
- package/dist/{AiChatPanel-NBKG2CWE.js → AiChatPanel-FIUTFT55.js} +25 -25
- package/dist/AiChatPanel-FIUTFT55.js.br +0 -0
- package/dist/AiChatPanel-FIUTFT55.js.gz +0 -0
- package/dist/{Area3DChartScene-5M3LEY6M.mjs → Area3DChartScene-SPRHDMNQ.mjs} +1 -1
- package/dist/Area3DChartScene-SPRHDMNQ.mjs.br +0 -0
- package/dist/Area3DChartScene-SPRHDMNQ.mjs.gz +0 -0
- package/dist/{Area3DChartScene-7QPDPVR6.js → Area3DChartScene-ZGVLTYDW.js} +2 -2
- package/dist/{Area3DChartScene-7QPDPVR6.js.br → Area3DChartScene-ZGVLTYDW.js.br} +0 -0
- package/dist/Area3DChartScene-ZGVLTYDW.js.gz +0 -0
- package/dist/{Bar3DChartScene-NNSTLO4V.mjs → Bar3DChartScene-FJCRJCZV.mjs} +1 -1
- package/dist/Bar3DChartScene-FJCRJCZV.mjs.br +0 -0
- package/dist/Bar3DChartScene-FJCRJCZV.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-TAMPS6ZS.js → Bar3DChartScene-GVIX7ENI.js} +2 -2
- package/dist/{Bar3DChartScene-TAMPS6ZS.js.br → Bar3DChartScene-GVIX7ENI.js.br} +0 -0
- package/dist/Bar3DChartScene-GVIX7ENI.js.gz +0 -0
- package/dist/{Line3DChartScene-T4SH37NU.js → Line3DChartScene-6C3WDA42.js} +2 -2
- package/dist/{Line3DChartScene-T4SH37NU.js.br → Line3DChartScene-6C3WDA42.js.br} +0 -0
- package/dist/Line3DChartScene-6C3WDA42.js.gz +0 -0
- package/dist/{Line3DChartScene-7S2DD45T.mjs → Line3DChartScene-KP4RMVAQ.mjs} +1 -1
- package/dist/Line3DChartScene-KP4RMVAQ.mjs.br +0 -0
- package/dist/Line3DChartScene-KP4RMVAQ.mjs.gz +0 -0
- package/dist/{Model3DScene-CXRM7D3J.mjs → Model3DScene-SH6ZLOXE.mjs} +1 -1
- package/dist/Model3DScene-SH6ZLOXE.mjs.br +0 -0
- package/dist/Model3DScene-SH6ZLOXE.mjs.gz +0 -0
- package/dist/{Model3DScene-IDRM7EZD.js → Model3DScene-SXZYGMN6.js} +2 -2
- package/dist/{Model3DScene-IDRM7EZD.js.br → Model3DScene-SXZYGMN6.js.br} +0 -0
- package/dist/Model3DScene-SXZYGMN6.js.gz +0 -0
- package/dist/{PieChart3DScene-VSCSEY2G.mjs → PieChart3DScene-F4IE7565.mjs} +1 -1
- package/dist/PieChart3DScene-F4IE7565.mjs.br +0 -0
- package/dist/PieChart3DScene-F4IE7565.mjs.gz +0 -0
- package/dist/{PieChart3DScene-66Y5UP64.js → PieChart3DScene-V2Q73UEQ.js} +2 -2
- package/dist/{PieChart3DScene-66Y5UP64.js.br → PieChart3DScene-V2Q73UEQ.js.br} +0 -0
- package/dist/PieChart3DScene-V2Q73UEQ.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-NSHDK657.mjs → SurfaceChart3DScene-AXLDY5BB.mjs} +1 -1
- package/dist/SurfaceChart3DScene-AXLDY5BB.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-AXLDY5BB.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-6J4A6XUH.js → SurfaceChart3DScene-XUGVYHD2.js} +2 -2
- package/dist/{SurfaceChart3DScene-6J4A6XUH.js.br → SurfaceChart3DScene-XUGVYHD2.js.br} +0 -0
- package/dist/SurfaceChart3DScene-XUGVYHD2.js.gz +0 -0
- package/dist/{chunk-7SFA4A2E.js → chunk-2BQKGTIF.js} +1111 -1087
- package/dist/chunk-2BQKGTIF.js.br +0 -0
- package/dist/chunk-2BQKGTIF.js.gz +0 -0
- package/dist/{chunk-FE4L26FT.mjs → chunk-F65J67TW.mjs} +7 -3
- package/dist/chunk-F65J67TW.mjs.br +0 -0
- package/dist/chunk-F65J67TW.mjs.gz +0 -0
- package/dist/{chunk-2IBDKMY2.mjs → chunk-GV6LVDBE.mjs} +63 -39
- package/dist/chunk-GV6LVDBE.mjs.br +0 -0
- package/dist/chunk-GV6LVDBE.mjs.gz +0 -0
- package/dist/{chunk-NGWA6L3N.js → chunk-HN5QJSVB.js} +44 -14
- package/dist/chunk-HN5QJSVB.js.br +0 -0
- package/dist/{chunk-NGWA6L3N.js.gz → chunk-HN5QJSVB.js.gz} +0 -0
- package/dist/{chunk-5PDGHTRJ.mjs → chunk-JIP6BCRV.mjs} +9 -9
- package/dist/chunk-JIP6BCRV.mjs.br +0 -0
- package/dist/chunk-JIP6BCRV.mjs.gz +0 -0
- package/dist/{chunk-WRXXPCZ7.js → chunk-K7TAGREH.js} +5 -5
- package/dist/chunk-K7TAGREH.js.br +0 -0
- package/dist/chunk-K7TAGREH.js.gz +0 -0
- package/dist/{chunk-I5LPYESF.js → chunk-M24DEOP6.js} +4 -0
- package/dist/chunk-M24DEOP6.js.br +0 -0
- package/dist/chunk-M24DEOP6.js.gz +0 -0
- package/dist/{chunk-W3RBIIZW.js → chunk-ML4MTTPV.js} +796 -796
- package/dist/chunk-ML4MTTPV.js.br +0 -0
- package/dist/chunk-ML4MTTPV.js.gz +0 -0
- package/dist/{chunk-N4FLKADC.mjs → chunk-MWNB4BX5.mjs} +44 -14
- package/dist/chunk-MWNB4BX5.mjs.br +0 -0
- package/dist/{chunk-N4FLKADC.mjs.gz → chunk-MWNB4BX5.mjs.gz} +0 -0
- package/dist/{chunk-AYH6XSE7.mjs → chunk-OKIHMWGI.mjs} +1 -1
- package/dist/chunk-OKIHMWGI.mjs.br +0 -0
- package/dist/chunk-OKIHMWGI.mjs.gz +0 -0
- package/dist/{chunk-AVTH627G.mjs → chunk-R664EPDC.mjs} +4 -0
- package/dist/chunk-R664EPDC.mjs.br +0 -0
- package/dist/chunk-R664EPDC.mjs.gz +0 -0
- package/dist/{chunk-DW66NEST.js → chunk-U46O2NL5.js} +187 -183
- package/dist/chunk-U46O2NL5.js.br +0 -0
- package/dist/chunk-U46O2NL5.js.gz +0 -0
- package/dist/i18n/de.cjs +4 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +4 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +4 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +4 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +4 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +4 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +4 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +4 -0
- 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.js +48 -48
- 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.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/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-NBKG2CWE.js.br +0 -0
- package/dist/AiChatPanel-NBKG2CWE.js.gz +0 -0
- package/dist/AiChatPanel-OXCJVBUS.mjs.br +0 -0
- package/dist/AiChatPanel-OXCJVBUS.mjs.gz +0 -0
- package/dist/Area3DChartScene-5M3LEY6M.mjs.br +0 -0
- package/dist/Area3DChartScene-5M3LEY6M.mjs.gz +0 -0
- package/dist/Area3DChartScene-7QPDPVR6.js.gz +0 -0
- package/dist/Bar3DChartScene-NNSTLO4V.mjs.br +0 -0
- package/dist/Bar3DChartScene-NNSTLO4V.mjs.gz +0 -0
- package/dist/Bar3DChartScene-TAMPS6ZS.js.gz +0 -0
- package/dist/Line3DChartScene-7S2DD45T.mjs.br +0 -0
- package/dist/Line3DChartScene-7S2DD45T.mjs.gz +0 -0
- package/dist/Line3DChartScene-T4SH37NU.js.gz +0 -0
- package/dist/Model3DScene-CXRM7D3J.mjs.br +0 -0
- package/dist/Model3DScene-CXRM7D3J.mjs.gz +0 -0
- package/dist/Model3DScene-IDRM7EZD.js.gz +0 -0
- package/dist/PieChart3DScene-66Y5UP64.js.gz +0 -0
- package/dist/PieChart3DScene-VSCSEY2G.mjs.br +0 -0
- package/dist/PieChart3DScene-VSCSEY2G.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-6J4A6XUH.js.gz +0 -0
- package/dist/SurfaceChart3DScene-NSHDK657.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-NSHDK657.mjs.gz +0 -0
- package/dist/chunk-2IBDKMY2.mjs.br +0 -0
- package/dist/chunk-2IBDKMY2.mjs.gz +0 -0
- package/dist/chunk-5PDGHTRJ.mjs.br +0 -0
- package/dist/chunk-5PDGHTRJ.mjs.gz +0 -0
- package/dist/chunk-7SFA4A2E.js.br +0 -0
- package/dist/chunk-7SFA4A2E.js.gz +0 -0
- package/dist/chunk-AVTH627G.mjs.br +0 -0
- package/dist/chunk-AVTH627G.mjs.gz +0 -0
- package/dist/chunk-AYH6XSE7.mjs.br +0 -0
- package/dist/chunk-AYH6XSE7.mjs.gz +0 -0
- package/dist/chunk-DW66NEST.js.br +0 -0
- package/dist/chunk-DW66NEST.js.gz +0 -0
- package/dist/chunk-FE4L26FT.mjs.br +0 -0
- package/dist/chunk-FE4L26FT.mjs.gz +0 -0
- package/dist/chunk-I5LPYESF.js.br +0 -0
- package/dist/chunk-I5LPYESF.js.gz +0 -0
- package/dist/chunk-N4FLKADC.mjs.br +0 -0
- package/dist/chunk-NGWA6L3N.js.br +0 -0
- package/dist/chunk-W3RBIIZW.js.br +0 -0
- package/dist/chunk-W3RBIIZW.js.gz +0 -0
- package/dist/chunk-WRXXPCZ7.js.br +0 -0
- package/dist/chunk-WRXXPCZ7.js.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, getImageFillCounterTransform, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, 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, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, 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, 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, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, 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, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, 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, splitRunByScriptFont } from './chunk-MWNB4BX5.mjs';
|
|
2
|
+
import { translationsEn } from './chunk-R664EPDC.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';
|
|
@@ -1299,13 +1299,17 @@ function renderHyperlink(run, spanNode, key, ctx) {
|
|
|
1299
1299
|
spanNode,
|
|
1300
1300
|
requireCtrlClick && /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-0 top-full z-[9999] mt-1 max-w-64 opacity-0 transition-opacity duration-150 group-hover/link:opacity-100", children: /* @__PURE__ */ jsxs("span", { className: "flex flex-col rounded border border-border bg-popover px-2.5 py-1.5 shadow-lg", children: [
|
|
1301
1301
|
/* @__PURE__ */ jsx("span", { className: "truncate text-xs text-foreground", children: displayUrl }),
|
|
1302
|
-
/* @__PURE__ */ jsx("span", { className: "mt-0.5 text-[10px] text-muted-foreground", children:
|
|
1302
|
+
/* @__PURE__ */ jsx("span", { className: "mt-0.5 text-[10px] text-muted-foreground", children: /* @__PURE__ */ jsx(FollowLinkHint, {}) })
|
|
1303
1303
|
] }) })
|
|
1304
1304
|
]
|
|
1305
1305
|
},
|
|
1306
1306
|
`${key}-link`
|
|
1307
1307
|
);
|
|
1308
1308
|
}
|
|
1309
|
+
function FollowLinkHint() {
|
|
1310
|
+
const { t } = useTranslation();
|
|
1311
|
+
return /* @__PURE__ */ jsx(Fragment, { children: t("pptx.linkTooltip.followLink") });
|
|
1312
|
+
}
|
|
1309
1313
|
function wrapWithTextReflection(run, key, spanNode, spanStyle, baseContent) {
|
|
1310
1314
|
if (!run.reflection) {
|
|
1311
1315
|
return spanNode;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { computeFocusTargets, deckDataFieldChanged, aiChangeAnimationCss, changeGhostStyle, createChatHistoryStore, collectStoredChats, exportAiChatLogs, applyElementUpdate } from './chunk-
|
|
2
|
-
import { useViewerOptions, useReadOnlyRecommendationState, useCompatibilityToastsState, useReducedMotion, useViewerState, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useViewPreferencesSync, useLayoutSwitching, LoadingState, ViewerOptionsContext, SmartArt3DContext, SurfaceChart3DContext, BarChart3DContext, LineChart3DContext, AreaChart3DContext, PieChart3DContext, useYjsDocumentSync, useCollaborationLivePatch, useFollowMode, useBroadcastFollower, SlideBackgroundImageLayer, StaticElementRenderer, safePrompt, scopeLayoutOptionsToActiveSlide, ChartPartSelectionProvider, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, useViewerOptionsContext, useVirtualizedSlides, useSwipeNavigation, PresentationTransitionOverlay, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, ElementRenderer, SmartArtRenderer, playAnimationSound, ResizeHandles, renderStrokeView, useChartPartSelection, resolveSmartArtDataPalette } from './chunk-
|
|
3
|
-
import { SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, cn, SLIDE_NAV_THUMBNAIL_WIDTH, TOOLBAR_SECTIONS, DEFAULT_SECTION_GROUP_ID, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, isConnectorOrLineElement, GRID_SIZE, MIN_ELEMENT_SIZE, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, DEFAULT_FILL_COLOR, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, DEFAULT_STROKE_COLOR, STROKE_DASH_OPTIONS } from './chunk-
|
|
4
|
-
import { SWITCHABLE_LAYOUT_TYPES, compileEquationTemplateMathMl, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, resolveAutosaveActivation, buildThemeColorMap, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, resolveExpiredAutosaveSnapshots, resolveHistoryDepth, applyAutoCorrect, resolveImageResolutionScale, resolveAutosaveIntervalMs, resolveAutosaveIntervalSeconds, shouldShowAutosaveRecoveryPrompt, resolveOptionRootClasses, resolve3DRenderingFlags, resolveSlideSizeSelection, buildDeckSaveOptions, RULER_THICKNESS, RULER_FONT_SIZE, buildPreviewElements, deriveSlideFieldContext, SLIDE_TRANSITION_OPTIONS, hiddenSlideCue, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, visibleTemplateElements, normalizeHexColor, themeToCssVars, shouldClearAutosaveCacheOnClose, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, hasCopyableFormat, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, compatToastStackStyle, printPropertiesFrameSlides, printPropertiesSlidesPerPage, getDensePanelTouchTargetPx, shouldStickyActionRow, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, resolveScreenTip, masterViewBackgroundColor, buildFieldSubstitutionContext, shouldConfirmExternalHyperlink, safeOpenUrl, resolvePresentationAction, isPpactionUrl, parsePpactionUrl, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, buildContextMenuEntries, themeColorSchemesEqual, EXPANDED_MAX_HEIGHT, STATUS_BAR_CLASSES, buildBarActions, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent2, resolveDefaultPrintSettings, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, CUSTOM_FONT_ACCEPT, activateModalFocus, buildCollaborationShareUrl, buildActiveSessionUsers, SORTER_MIN_ZOOM, SORTER_ZOOM_STEP, SORTER_MAX_ZOOM, canGoPrevious, formatSlideCounter, READING_VIEW_COUNTER_ATTR, canGoNext, READING_VIEW_ATTR, OUTLINE_LEVEL_ATTR, OUTLINE_SLIDE_ATTR, OUTLINE_ROW_ATTR, OUTLINE_VIEW_ATTR, mobileElapsedSince, nextPresentedSlide, presenterPrevDisabled, presenterNextDisabled, formatMobileElapsed, mobileSlideCounter, presenterPaneAdvancesOnClick, presenterTimerProgress, PRESENTER_CONSOLE_CLASSES, formatElapsed, extraQuickAccessCommands, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, hasTextProperties, COMMON_FONT_SIZES, textFontSizePtToPx, INSERT_CHART_TYPES, ACTION_BUTTON_PRESETS, CHARACTER_SPACING_OPTIONS, OFFICE_COLOR_SWATCHES, hasShapeProperties, shapeFillChange, shapeOutlineChange, readRibbonTransitionDraft, ribbonTransitionUpdates, playSlideTransitionPreview, RIBBON_TRANSITION_PRESETS, transitionSoundOptions, transitionSoundSelectedValue, DEFAULT_MOTION_PATH_PRESET_ID, SLIDE_SHOW_OPTIONS, slideShowOptionChange, readSlideShowOption, SLIDE_VIRTUALIZATION_THRESHOLD, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, buildStrokePathD, cursorForTool, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, motionPathFor, setMotionPath, getShapeAdjustmentHandleDescriptors, shouldShowElementHandles, PRESENTER_NAVIGATOR_LABEL_KEYS, PEN_COLORS, HIGHLIGHTER_COLORS, isBlackboardActive, scaleSlidesForSizeChange, slideSizeToCanvasPx, resolveSelectionPaneRename, PRESET_THEMES, resolveNotesSegments, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX, isUrlSafe, buildNotesPrintHtml, MIN_TOUCH_TARGET_PX, toggleSheet, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, downloadBlob, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, PRESENTER_CONSOLE_CONTROLS, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, resolveDefaultFontFamily, textFontSizePxToPt, buildFontCatalog, getSelectionTextStyleFlags, getInlineEditorSelectionResult, selectedParagraphBulletKind, elementBulletKind, selectionBulletKind, TEXT_DECORATION_FLAGS, nextToggleValue, buildThemeColorSwatchGrid, themeColorSwatchRows, findSelectedThemeSwatch, themeSwatchCommit, RIBBON_SHAPE_SWATCHES, canGroupSelection, canUngroupSelection, canSetStrokeWidth, strokeWidthOf, readSoundFileAsDataUrl, applyTransitionSoundFile, TRANSITION_SOUND_OTHER_VALUE, TRANSITION_SOUND_NONE_VALUE, clearTransitionSound, applyTransitionStockSound, transitionStockSoundId, getEffectSoundAsset, ENTRANCE_PRESET_VALUES, EMPHASIS_PRESET_VALUES, EXIT_PRESET_VALUES, MOTION_PATH_FAMILIES, motionPathFamilyLabelKey, motionPathPresetsByFamily, motionPathPresetLabelKey, masterViewPseudoSlide, attachEditorImagePaste, authorConnectorBetweenSites, findEraserHitElementId, generateTicks, rulerDragToGuidePosition, resolveElementInteractivity, getElementTransformWithoutRotation, getElementTransform, buildChartQuickActionsDescriptor, applyChartElementToggle, CHART_QUICK_ACTION_BUTTON_SIZE, applyChartStylePreset, hideChartSeries, restoreFilteredSeries, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, hasMultipleSelectedTableCells, applyTableStyleDelete, applyTableStyleMapChange, themeColorLabel, buildThemeColorGrid, THEME_COLOR_SCHEME_KEYS, COMMON_FONTS, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, isCurrentLayout, SLIDE_TEMPLATES, computeAnchoredPopupPosition, buildFreeformShapeElement, buildLiveInkStrokeView, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, isElementLocked, isImageLikeElement, mergeSlideTransition, getElementLabel, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildLayoutPreviewGeometry, buildSlideTemplateContent, hasTiltData, elementLockTogglePatch, buildTableDataGrid, getDenseGridLayoutPlan, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, TABLE_STYLE_PRESETS, applyTableStylePreset, tableStyleAssignmentUpdate, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, collapseChartTitleRunsForEdit, chartGridlinesState, chartGridlinesPatch, seriesSecondaryAxisPatch, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setDataLabelsRangeCache, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, canInteractWithElement, buildOleObjectNamePatch, getOleObjectTypeLabel, sanitizeGradientStops, shouldShowAccessibilitySection, pptxActionToElementAction, withFrameSlides, withSlidesPerPage, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, SLIDE_SIZE_PRESETS, TRANSITION_VALID_DIRECTIONS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, TRANSITION_SPEED_OPTIONS, TRANSITION_MORPH_OPTIONS, flattenTagCollections, resolveTemplateBackgroundRows, formatCommentTimestamp, commentMentionQuery, matchCommentMentionAuthors, buildAnimationTimelineRows, clearMotionPath, getEffectSoundState, setEffectSound, setEffectStockSound, setAfterAnimation, setAfterAnimationColor, DIRECTIONAL_PRESETS, buildAnimationTimelineBars, motionPathPresetIdForPath, EFFECT_SOUND_CATALOGUE, normalizeTableStyleGuid, describeTableStyleEditor, TABLE_STYLE_EDITOR_PARTS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, updateMergeAttrsInRawXml, resolveDisplayedChartType, CHART_TYPE_OPTIONS, BAR3D_SHAPE_OPTIONS, bar3DShapePatch, RADAR_STYLE_OPTIONS, radarStylePatch, SURFACE_WIREFRAME_OPTIONS, surfaceWireframePatch, isSeriesUsingSecondaryAxis, listChartUserShapeRows, withChartUserShapeAdded, createDefaultChartUserShape, withChartUserShapeRowRemoved, withChartUserShapeRowTextUpdated, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSmartArtNodeAsChild, setSmartArtNodeStyle, removeSmartArtNode, addSiblingAfter, removeEmptyNode, demote, promote, updateSmartArtNodeText, reorder, clampCropValue, DUOTONE_PRESETS, ARTISTIC_EFFECTS, mediaTrimEndSeconds, trimmedMediaDurationMs, mediaTrimEndAbsoluteMs, mediaTrimEndMsFromAbsoluteMs, buildOleEditDialogDescriptor, buildOleContentUpdatePatch, applyOleSheetCellEdit, getOleSheetGrid, applyOleDocumentParagraphEdit, getOleDocumentParagraphs, applyOleNestedDeckElementTextEdit, getOleNestedDeckDetail, replaceOleFile, getNonVisualDescriptionFields, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, elementActionToPptxAction, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, insertCommentMention, reorderAnimationTimelineRows, applyAnimationTimelineOrder, animationEffectLabel, TABLE_STYLE_BORDER_SIDES, applyTableStyleFieldEdit, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, getChartUserShapeGroupTransform, withChartUserShapeGroupChildAdded, createDefaultChartUserShapeGroupChild, withChartUserShapeRowUpdated, getChartUserShapeRowChartBox, withChartUserShapeRowFlipUpdated, withChartUserShapeRowRotationUpdated, withChartUserShapeRowChartBoxUpdated, switchSmartArtLayout, rebuildDrawingShapesIfCleared, mediaTrimEndMsFromSeconds, validateMediaTrimRange, SHAPE_QUICK_STYLES, quickStyleSwatchCss, PATTERN_PRESET_OPTIONS, getPatternSvg, COMPOUND_LINE_OPTIONS, LINE_JOIN_OPTIONS, LINE_CAP_OPTIONS, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, toSlideIndex, TABLE_STYLE_BORDER_SIDE_LABEL_KEYS, TABLE_STYLE_DASH_PRESETS, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, openNativeEyeDropper, toggleText3dExtrusion, BEVEL_PRESETS } from './chunk-N4FLKADC.mjs';
|
|
5
|
-
import { LOCALE_CATALOG, ALIGNMENT_LABEL_KEYS } from './chunk-
|
|
1
|
+
import { computeFocusTargets, deckDataFieldChanged, aiChangeAnimationCss, changeGhostStyle, createChatHistoryStore, collectStoredChats, exportAiChatLogs, applyElementUpdate } from './chunk-OKIHMWGI.mjs';
|
|
2
|
+
import { useViewerOptions, useReadOnlyRecommendationState, useCompatibilityToastsState, useReducedMotion, useViewerState, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useViewPreferencesSync, useLayoutSwitching, LoadingState, ViewerOptionsContext, SmartArt3DContext, SurfaceChart3DContext, BarChart3DContext, LineChart3DContext, AreaChart3DContext, PieChart3DContext, useYjsDocumentSync, useCollaborationLivePatch, useFollowMode, useBroadcastFollower, SlideBackgroundImageLayer, StaticElementRenderer, safePrompt, scopeLayoutOptionsToActiveSlide, ChartPartSelectionProvider, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, useViewerOptionsContext, useVirtualizedSlides, useSwipeNavigation, PresentationTransitionOverlay, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, ElementRenderer, SmartArtRenderer, playAnimationSound, ResizeHandles, renderStrokeView, useChartPartSelection, resolveSmartArtDataPalette } from './chunk-JIP6BCRV.mjs';
|
|
3
|
+
import { SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, cn, SLIDE_NAV_THUMBNAIL_WIDTH, TOOLBAR_SECTIONS, DEFAULT_SECTION_GROUP_ID, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, isConnectorOrLineElement, GRID_SIZE, MIN_ELEMENT_SIZE, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, DEFAULT_FILL_COLOR, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, DEFAULT_STROKE_COLOR, STROKE_DASH_OPTIONS } from './chunk-F65J67TW.mjs';
|
|
4
|
+
import { SWITCHABLE_LAYOUT_TYPES, compileEquationTemplateMathMl, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, resolveAutosaveActivation, buildThemeColorMap, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, resolveExpiredAutosaveSnapshots, resolveHistoryDepth, applyAutoCorrect, resolveImageResolutionScale, resolveAutosaveIntervalMs, resolveAutosaveIntervalSeconds, shouldShowAutosaveRecoveryPrompt, resolveOptionRootClasses, resolve3DRenderingFlags, resolveSlideSizeSelection, buildDeckSaveOptions, RULER_THICKNESS, RULER_FONT_SIZE, buildPreviewElements, deriveSlideFieldContext, SLIDE_TRANSITION_OPTIONS, hiddenSlideCue, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, visibleTemplateElements, normalizeHexColor, themeToCssVars, shouldClearAutosaveCacheOnClose, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, hasCopyableFormat, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, compatToastStackStyle, printPropertiesFrameSlides, printPropertiesSlidesPerPage, getDensePanelTouchTargetPx, shouldStickyActionRow, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, resolveScreenTip, masterViewBackgroundColor, buildFieldSubstitutionContext, shouldConfirmExternalHyperlink, safeOpenUrl, resolvePresentationAction, isPpactionUrl, parsePpactionUrl, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, buildContextMenuEntries, themeColorSchemesEqual, EXPANDED_MAX_HEIGHT, STATUS_BAR_CLASSES, buildBarActions, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent2, resolveDefaultPrintSettings, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, CUSTOM_FONT_ACCEPT, activateModalFocus, buildCollaborationShareUrl, buildActiveSessionUsers, SORTER_MIN_ZOOM, SORTER_ZOOM_STEP, SORTER_MAX_ZOOM, canGoPrevious, formatSlideCounter, READING_VIEW_COUNTER_ATTR, canGoNext, READING_VIEW_ATTR, OUTLINE_LEVEL_ATTR, OUTLINE_SLIDE_ATTR, OUTLINE_ROW_ATTR, OUTLINE_VIEW_ATTR, mobileElapsedSince, nextPresentedSlide, presenterPrevDisabled, presenterNextDisabled, formatMobileElapsed, mobileSlideCounter, presenterPaneAdvancesOnClick, presenterTimerProgress, PRESENTER_CONSOLE_CLASSES, formatElapsed, extraQuickAccessCommands, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, hasTextProperties, COMMON_FONT_SIZES, textFontSizePtToPx, INSERT_CHART_TYPES, ACTION_BUTTON_PRESETS, CHARACTER_SPACING_OPTIONS, OFFICE_COLOR_SWATCHES, hasShapeProperties, shapeFillChange, shapeOutlineChange, readRibbonTransitionDraft, ribbonTransitionUpdates, playSlideTransitionPreview, RIBBON_TRANSITION_PRESETS, transitionSoundOptions, transitionSoundSelectedValue, DEFAULT_MOTION_PATH_PRESET_ID, SLIDE_SHOW_OPTIONS, slideShowOptionChange, readSlideShowOption, SLIDE_VIRTUALIZATION_THRESHOLD, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, buildStrokePathD, cursorForTool, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, motionPathFor, setMotionPath, getShapeAdjustmentHandleDescriptors, shouldShowElementHandles, PRESENTER_NAVIGATOR_LABEL_KEYS, PEN_COLORS, HIGHLIGHTER_COLORS, isBlackboardActive, scaleSlidesForSizeChange, slideSizeToCanvasPx, resolveSelectionPaneRename, PRESET_THEMES, resolveNotesSegments, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX, isUrlSafe, buildNotesPrintHtml, MIN_TOUCH_TARGET_PX, toggleSheet, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, downloadBlob, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, PRESENTER_CONSOLE_CONTROLS, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, resolveDefaultFontFamily, textFontSizePxToPt, buildFontCatalog, getSelectionTextStyleFlags, getInlineEditorSelectionResult, selectedParagraphBulletKind, elementBulletKind, selectionBulletKind, TEXT_DECORATION_FLAGS, nextToggleValue, buildThemeColorSwatchGrid, themeColorSwatchRows, findSelectedThemeSwatch, themeSwatchCommit, RIBBON_SHAPE_SWATCHES, canGroupSelection, canUngroupSelection, canSetStrokeWidth, strokeWidthOf, readSoundFileAsDataUrl, applyTransitionSoundFile, TRANSITION_SOUND_OTHER_VALUE, TRANSITION_SOUND_NONE_VALUE, clearTransitionSound, applyTransitionStockSound, transitionStockSoundId, getEffectSoundAsset, ENTRANCE_PRESET_VALUES, EMPHASIS_PRESET_VALUES, EXIT_PRESET_VALUES, MOTION_PATH_FAMILIES, motionPathFamilyLabelKey, motionPathPresetsByFamily, motionPathPresetLabelKey, masterViewPseudoSlide, attachEditorImagePaste, authorConnectorBetweenSites, findEraserHitElementId, generateTicks, rulerDragToGuidePosition, resolveElementInteractivity, getElementTransformWithoutRotation, getElementTransform, buildChartQuickActionsDescriptor, applyChartElementToggle, CHART_QUICK_ACTION_BUTTON_SIZE, applyChartStylePreset, hideChartSeries, restoreFilteredSeries, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, hasMultipleSelectedTableCells, applyTableStyleDelete, applyTableStyleMapChange, themeColorLabel, buildThemeColorGrid, THEME_COLOR_SCHEME_KEYS, COMMON_FONTS, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, isCurrentLayout, SLIDE_TEMPLATES, computeAnchoredPopupPosition, buildFreeformShapeElement, buildLiveInkStrokeView, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, isElementLocked, isImageLikeElement, mergeSlideTransition, getElementLabel, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildLayoutPreviewGeometry, buildSlideTemplateContent, hasTiltData, elementLockTogglePatch, buildTableDataGrid, getDenseGridLayoutPlan, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, TABLE_STYLE_PRESETS, applyTableStylePreset, tableStyleAssignmentUpdate, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, collapseChartTitleRunsForEdit, chartGridlinesState, chartGridlinesPatch, seriesSecondaryAxisPatch, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setDataLabelsRangeCache, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, canInteractWithElement, buildOleObjectNamePatch, getOleObjectTypeLabel, sanitizeGradientStops, shouldShowAccessibilitySection, pptxActionToElementAction, withFrameSlides, withSlidesPerPage, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, SLIDE_SIZE_PRESETS, TRANSITION_VALID_DIRECTIONS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, TRANSITION_SPEED_OPTIONS, TRANSITION_MORPH_OPTIONS, flattenTagCollections, resolveTemplateBackgroundRows, formatCommentTimestamp, commentMentionQuery, matchCommentMentionAuthors, buildAnimationTimelineRows, clearMotionPath, getEffectSoundState, setEffectSound, setEffectStockSound, setAfterAnimation, setAfterAnimationColor, DIRECTIONAL_PRESETS, buildAnimationTimelineBars, motionPathPresetIdForPath, EFFECT_SOUND_CATALOGUE, normalizeTableStyleGuid, describeTableStyleEditor, TABLE_STYLE_EDITOR_PARTS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, updateMergeAttrsInRawXml, resolveDisplayedChartType, CHART_TYPE_OPTIONS, BAR3D_SHAPE_OPTIONS, bar3DShapePatch, RADAR_STYLE_OPTIONS, radarStylePatch, SURFACE_WIREFRAME_OPTIONS, surfaceWireframePatch, isSeriesUsingSecondaryAxis, listChartUserShapeRows, withChartUserShapeAdded, createDefaultChartUserShape, withChartUserShapeRowRemoved, withChartUserShapeRowTextUpdated, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSmartArtNodeAsChild, setSmartArtNodeStyle, removeSmartArtNode, addSiblingAfter, removeEmptyNode, demote, promote, updateSmartArtNodeText, reorder, clampCropValue, DUOTONE_PRESETS, ARTISTIC_EFFECTS, mediaTrimEndSeconds, trimmedMediaDurationMs, mediaTrimEndAbsoluteMs, mediaTrimEndMsFromAbsoluteMs, buildOleEditDialogDescriptor, buildOleContentUpdatePatch, applyOleSheetCellEdit, getOleSheetGrid, applyOleDocumentParagraphEdit, getOleDocumentParagraphs, applyOleNestedDeckElementTextEdit, getOleNestedDeckDetail, replaceOleFile, getNonVisualDescriptionFields, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, elementActionToPptxAction, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, insertCommentMention, reorderAnimationTimelineRows, applyAnimationTimelineOrder, animationEffectLabel, TABLE_STYLE_BORDER_SIDES, applyTableStyleFieldEdit, createTableStyleEntry, addTableStyleToMap, deleteTableStyleFromMap, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, getChartUserShapeGroupTransform, withChartUserShapeGroupChildAdded, createDefaultChartUserShapeGroupChild, withChartUserShapeRowUpdated, getChartUserShapeRowChartBox, withChartUserShapeRowFlipUpdated, withChartUserShapeRowRotationUpdated, withChartUserShapeRowChartBoxUpdated, switchSmartArtLayout, rebuildDrawingShapesIfCleared, mediaTrimEndMsFromSeconds, validateMediaTrimRange, SHAPE_QUICK_STYLES, quickStyleSwatchCss, PATTERN_PRESET_OPTIONS, getPatternSvg, COMPOUND_LINE_OPTIONS, LINE_JOIN_OPTIONS, LINE_CAP_OPTIONS, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, toSlideIndex, TABLE_STYLE_BORDER_SIDE_LABEL_KEYS, TABLE_STYLE_DASH_PRESETS, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, openNativeEyeDropper, toggleText3dExtrusion, BEVEL_PRESETS } from './chunk-MWNB4BX5.mjs';
|
|
5
|
+
import { LOCALE_CATALOG, ALIGNMENT_LABEL_KEYS } from './chunk-R664EPDC.mjs';
|
|
6
6
|
import React6, { createContext, lazy, forwardRef, useEffect, useState, useCallback, useMemo, useRef, useId, useContext, Fragment as Fragment$1, useDeferredValue, Suspense, useSyncExternalStore, useLayoutEffect } from 'react';
|
|
7
7
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1811,7 +1811,7 @@ function AccountPage() {
|
|
|
1811
1811
|
return void 0;
|
|
1812
1812
|
});
|
|
1813
1813
|
};
|
|
1814
|
-
const version = "3.
|
|
1814
|
+
const version = "3.20.0" ;
|
|
1815
1815
|
return /* @__PURE__ */ jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
|
|
1816
1816
|
/* @__PURE__ */ jsxs("section", { className: cardClass, children: [
|
|
1817
1817
|
/* @__PURE__ */ jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
@@ -3444,7 +3444,7 @@ function CustomShowsControls({
|
|
|
3444
3444
|
onClick: onCreateCustomShow,
|
|
3445
3445
|
className: "px-2 py-1 rounded bg-muted hover:bg-accent text-[11px] transition-colors",
|
|
3446
3446
|
title: t("pptx.customShows.createTooltip"),
|
|
3447
|
-
children: "
|
|
3447
|
+
children: t("pptx.customShows.addShow")
|
|
3448
3448
|
}
|
|
3449
3449
|
),
|
|
3450
3450
|
activeCustomShowId && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -3495,7 +3495,7 @@ function CustomShowsControls({
|
|
|
3495
3495
|
onClick: onCreateCustomShow,
|
|
3496
3496
|
className: "px-2 py-1 rounded bg-muted hover:bg-accent text-[11px] transition-colors",
|
|
3497
3497
|
title: t("pptx.customShows.createTooltip"),
|
|
3498
|
-
children: "
|
|
3498
|
+
children: t("pptx.customShows.addShow")
|
|
3499
3499
|
}
|
|
3500
3500
|
)
|
|
3501
3501
|
] });
|
|
@@ -4460,7 +4460,7 @@ function TextSection(p) {
|
|
|
4460
4460
|
] }) })
|
|
4461
4461
|
] })
|
|
4462
4462
|
] }),
|
|
4463
|
-
/* @__PURE__ */ jsx("span", { className: "text-[9px] text-muted-foreground leading-none", children: "
|
|
4463
|
+
/* @__PURE__ */ jsx("span", { className: "text-[9px] text-muted-foreground leading-none", children: t("pptx.ribbon.font") })
|
|
4464
4464
|
] }),
|
|
4465
4465
|
sep,
|
|
4466
4466
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5", children: [
|
|
@@ -4582,7 +4582,7 @@ function TextSection(p) {
|
|
|
4582
4582
|
}
|
|
4583
4583
|
)
|
|
4584
4584
|
] }),
|
|
4585
|
-
/* @__PURE__ */ jsx("span", { className: "text-[9px] text-muted-foreground leading-none", children: "
|
|
4585
|
+
/* @__PURE__ */ jsx("span", { className: "text-[9px] text-muted-foreground leading-none", children: t("pptx.ribbon.paragraph") })
|
|
4586
4586
|
] })
|
|
4587
4587
|
] });
|
|
4588
4588
|
}
|
|
@@ -4682,7 +4682,14 @@ function ViewSection(p) {
|
|
|
4682
4682
|
title: t("pptx.ribbon.toggleGuides")
|
|
4683
4683
|
}
|
|
4684
4684
|
),
|
|
4685
|
-
/* @__PURE__ */ jsx(
|
|
4685
|
+
/* @__PURE__ */ jsx(
|
|
4686
|
+
RibbonToggle,
|
|
4687
|
+
{
|
|
4688
|
+
label: t("pptx.settings.snapToGrid"),
|
|
4689
|
+
checked: p.snapToGrid,
|
|
4690
|
+
onChange: p.onSetSnapToGrid
|
|
4691
|
+
}
|
|
4692
|
+
)
|
|
4686
4693
|
] }),
|
|
4687
4694
|
/* @__PURE__ */ jsxs(RibbonCommandStack, { children: [
|
|
4688
4695
|
/* @__PURE__ */ jsx(
|
|
@@ -4722,7 +4729,7 @@ function ViewSection(p) {
|
|
|
4722
4729
|
RibbonCommand,
|
|
4723
4730
|
{
|
|
4724
4731
|
compact: true,
|
|
4725
|
-
label: "
|
|
4732
|
+
label: t("pptx.view.hGuide"),
|
|
4726
4733
|
icon: /* @__PURE__ */ jsx(LuRuler, {}),
|
|
4727
4734
|
onClick: () => p.onAddGuide("h"),
|
|
4728
4735
|
title: t("pptx.view.addHorizontalGuide")
|
|
@@ -4732,7 +4739,7 @@ function ViewSection(p) {
|
|
|
4732
4739
|
RibbonCommand,
|
|
4733
4740
|
{
|
|
4734
4741
|
compact: true,
|
|
4735
|
-
label: "
|
|
4742
|
+
label: t("pptx.view.vGuide"),
|
|
4736
4743
|
icon: /* @__PURE__ */ jsx(LuRuler, {}),
|
|
4737
4744
|
onClick: () => p.onAddGuide("v"),
|
|
4738
4745
|
title: t("pptx.view.addVerticalGuide")
|
|
@@ -4788,6 +4795,7 @@ function MobileSheet({
|
|
|
4788
4795
|
headerRight
|
|
4789
4796
|
}) {
|
|
4790
4797
|
const sheetRef = useRef(null);
|
|
4798
|
+
const { t } = useTranslation();
|
|
4791
4799
|
const { dragY, dragging, handlers } = useSheetDismissDrag(onClose);
|
|
4792
4800
|
useModalFocus(open, sheetRef, onClose);
|
|
4793
4801
|
if (!open) {
|
|
@@ -4799,7 +4807,7 @@ function MobileSheet({
|
|
|
4799
4807
|
"button",
|
|
4800
4808
|
{
|
|
4801
4809
|
type: "button",
|
|
4802
|
-
"aria-label": "
|
|
4810
|
+
"aria-label": t("pptx.mobileSheet.close"),
|
|
4803
4811
|
className: "absolute inset-0 bg-black/40 backdrop-blur-[2px] animate-in fade-in duration-150",
|
|
4804
4812
|
onClick: onClose
|
|
4805
4813
|
}
|
|
@@ -4810,7 +4818,7 @@ function MobileSheet({
|
|
|
4810
4818
|
ref: sheetRef,
|
|
4811
4819
|
role: "dialog",
|
|
4812
4820
|
"aria-modal": "true",
|
|
4813
|
-
"aria-label": typeof title === "string" ? title : "
|
|
4821
|
+
"aria-label": typeof title === "string" ? title : t("pptx.mobileSheet.ariaLabel"),
|
|
4814
4822
|
tabIndex: -1,
|
|
4815
4823
|
className: cn(
|
|
4816
4824
|
"relative bg-background border-t border-border rounded-t-2xl shadow-2xl flex flex-col overflow-hidden",
|
|
@@ -4840,7 +4848,7 @@ function MobileSheet({
|
|
|
4840
4848
|
"button",
|
|
4841
4849
|
{
|
|
4842
4850
|
type: "button",
|
|
4843
|
-
"aria-label": "
|
|
4851
|
+
"aria-label": t("pptx.mobileSheet.close"),
|
|
4844
4852
|
onPointerDown: (event) => event.stopPropagation(),
|
|
4845
4853
|
onClick: onClose,
|
|
4846
4854
|
style: { minWidth: MIN_TOUCH_TARGET_PX, minHeight: MIN_TOUCH_TARGET_PX },
|
|
@@ -5636,17 +5644,32 @@ function RecordSection({
|
|
|
5636
5644
|
onRecordFromBeginning,
|
|
5637
5645
|
onRecordFromCurrent
|
|
5638
5646
|
}) {
|
|
5647
|
+
const { t } = useTranslation();
|
|
5639
5648
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5640
|
-
/* @__PURE__ */ jsx(RibbonGroup, { label: "
|
|
5641
|
-
/* @__PURE__ */ jsxs(RibbonGroup, { label: "
|
|
5642
|
-
/* @__PURE__ */ jsx(
|
|
5643
|
-
|
|
5649
|
+
/* @__PURE__ */ jsx(RibbonGroup, { label: t("pptx.record.camera"), children: /* @__PURE__ */ jsx(RibbonCommand, { icon: /* @__PURE__ */ jsx(LuCamera, {}), label: t("pptx.record.cameo"), disabled: true }) }),
|
|
5650
|
+
/* @__PURE__ */ jsxs(RibbonGroup, { label: t("pptx.ribbon.tab.record"), children: [
|
|
5651
|
+
/* @__PURE__ */ jsx(
|
|
5652
|
+
RibbonCommand,
|
|
5653
|
+
{
|
|
5654
|
+
icon: /* @__PURE__ */ jsx(LuVideo, {}),
|
|
5655
|
+
label: t("pptx.slideShow.fromBeginning"),
|
|
5656
|
+
onClick: onRecordFromBeginning
|
|
5657
|
+
}
|
|
5658
|
+
),
|
|
5659
|
+
/* @__PURE__ */ jsx(
|
|
5660
|
+
RibbonCommand,
|
|
5661
|
+
{
|
|
5662
|
+
icon: /* @__PURE__ */ jsx(LuPlay, {}),
|
|
5663
|
+
label: t("pptx.slideShow.fromCurrent"),
|
|
5664
|
+
onClick: onRecordFromCurrent
|
|
5665
|
+
}
|
|
5666
|
+
)
|
|
5644
5667
|
] }),
|
|
5645
|
-
/* @__PURE__ */ jsxs(RibbonGroup, { label: "
|
|
5646
|
-
/* @__PURE__ */ jsx(RibbonCommand, { icon: /* @__PURE__ */ jsx(LuEraser, {}), label: "
|
|
5647
|
-
/* @__PURE__ */ jsx(RibbonCommand, { icon: /* @__PURE__ */ jsx(LuRotateCcw, {}), label: "
|
|
5668
|
+
/* @__PURE__ */ jsxs(RibbonGroup, { label: t("pptx.record.manage"), children: [
|
|
5669
|
+
/* @__PURE__ */ jsx(RibbonCommand, { icon: /* @__PURE__ */ jsx(LuEraser, {}), label: t("pptx.record.clear"), disabled: true }),
|
|
5670
|
+
/* @__PURE__ */ jsx(RibbonCommand, { icon: /* @__PURE__ */ jsx(LuRotateCcw, {}), label: t("pptx.record.resetToCameo"), disabled: true })
|
|
5648
5671
|
] }),
|
|
5649
|
-
/* @__PURE__ */ jsx(RibbonGroup, { label: "
|
|
5672
|
+
/* @__PURE__ */ jsx(RibbonGroup, { label: t("pptx.ribbon.tab.help"), children: /* @__PURE__ */ jsx(RibbonCommand, { icon: /* @__PURE__ */ jsx(LuCircleHelp, {}), label: t("pptx.record.learnMore"), disabled: true }) })
|
|
5650
5673
|
] });
|
|
5651
5674
|
}
|
|
5652
5675
|
function TabRowActions(p) {
|
|
@@ -9950,7 +9973,7 @@ function SlideItemInner({
|
|
|
9950
9973
|
{
|
|
9951
9974
|
type: "button",
|
|
9952
9975
|
ref: slideRef,
|
|
9953
|
-
"aria-label":
|
|
9976
|
+
"aria-label": t("pptx.slidesPanel.goToSlide", { n: slideIndex + 1 }),
|
|
9954
9977
|
"aria-current": isActive ? "true" : void 0,
|
|
9955
9978
|
"aria-describedby": cue.labelId,
|
|
9956
9979
|
"data-pptx-slide-hidden": cue.marker,
|
|
@@ -12983,8 +13006,8 @@ function SlideNotesPanel({
|
|
|
12983
13006
|
"aria-expanded": isExpanded,
|
|
12984
13007
|
"aria-controls": "slide-notes-content",
|
|
12985
13008
|
children: [
|
|
12986
|
-
"
|
|
12987
|
-
!isExpanded && hasNotes && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/50 text-[10px]", children: "
|
|
13009
|
+
t("pptx.notes.title"),
|
|
13010
|
+
!isExpanded && hasNotes && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/50 text-[10px]", children: t("pptx.notes.hasNotes") })
|
|
12988
13011
|
]
|
|
12989
13012
|
}
|
|
12990
13013
|
),
|
|
@@ -23058,7 +23081,7 @@ function AdvancedTextFormatting({
|
|
|
23058
23081
|
label
|
|
23059
23082
|
] }, label)) }),
|
|
23060
23083
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23061
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23084
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.text.highlightColor") }),
|
|
23062
23085
|
/* @__PURE__ */ jsx(
|
|
23063
23086
|
"input",
|
|
23064
23087
|
{
|
|
@@ -23205,7 +23228,7 @@ function AdvancedTextFormatting({
|
|
|
23205
23228
|
onChange: (e) => onUpdateTextStyle({ autoFit: e.target.checked })
|
|
23206
23229
|
}
|
|
23207
23230
|
),
|
|
23208
|
-
"
|
|
23231
|
+
t("pptx.textProperties.autoFitToShape")
|
|
23209
23232
|
] })
|
|
23210
23233
|
] });
|
|
23211
23234
|
}
|
|
@@ -23248,7 +23271,7 @@ function TextReflectionSection({
|
|
|
23248
23271
|
] }),
|
|
23249
23272
|
hasReflection && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2 pl-4", children: [
|
|
23250
23273
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23251
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23274
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.blur") }),
|
|
23252
23275
|
/* @__PURE__ */ jsx(
|
|
23253
23276
|
"input",
|
|
23254
23277
|
{
|
|
@@ -23265,7 +23288,7 @@ function TextReflectionSection({
|
|
|
23265
23288
|
)
|
|
23266
23289
|
] }),
|
|
23267
23290
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23268
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23291
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.offset") }),
|
|
23269
23292
|
/* @__PURE__ */ jsx(
|
|
23270
23293
|
"input",
|
|
23271
23294
|
{
|
|
@@ -23365,7 +23388,7 @@ function TextEffectsPanel({
|
|
|
23365
23388
|
] }),
|
|
23366
23389
|
hasShadow && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2 pl-4", children: [
|
|
23367
23390
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23368
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23391
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.color") }),
|
|
23369
23392
|
/* @__PURE__ */ jsx(
|
|
23370
23393
|
"input",
|
|
23371
23394
|
{
|
|
@@ -23380,7 +23403,7 @@ function TextEffectsPanel({
|
|
|
23380
23403
|
)
|
|
23381
23404
|
] }),
|
|
23382
23405
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23383
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23406
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.opacity") }),
|
|
23384
23407
|
/* @__PURE__ */ jsx(
|
|
23385
23408
|
"input",
|
|
23386
23409
|
{
|
|
@@ -23397,7 +23420,7 @@ function TextEffectsPanel({
|
|
|
23397
23420
|
)
|
|
23398
23421
|
] }),
|
|
23399
23422
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23400
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23423
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.blur") }),
|
|
23401
23424
|
/* @__PURE__ */ jsx(
|
|
23402
23425
|
"input",
|
|
23403
23426
|
{
|
|
@@ -23473,7 +23496,7 @@ function TextEffectsPanel({
|
|
|
23473
23496
|
] }),
|
|
23474
23497
|
hasGlow && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2 pl-4", children: [
|
|
23475
23498
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23476
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23499
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.color") }),
|
|
23477
23500
|
/* @__PURE__ */ jsx(
|
|
23478
23501
|
"input",
|
|
23479
23502
|
{
|
|
@@ -23488,7 +23511,7 @@ function TextEffectsPanel({
|
|
|
23488
23511
|
)
|
|
23489
23512
|
] }),
|
|
23490
23513
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23491
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23514
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.opacity") }),
|
|
23492
23515
|
/* @__PURE__ */ jsx(
|
|
23493
23516
|
"input",
|
|
23494
23517
|
{
|
|
@@ -23505,7 +23528,7 @@ function TextEffectsPanel({
|
|
|
23505
23528
|
)
|
|
23506
23529
|
] }),
|
|
23507
23530
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
23508
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "
|
|
23531
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.textEffects.size") }),
|
|
23509
23532
|
/* @__PURE__ */ jsx(
|
|
23510
23533
|
"input",
|
|
23511
23534
|
{
|
|
@@ -32976,7 +32999,7 @@ function useTableStyleMapHandlers(input) {
|
|
|
32976
32999
|
var AiChatPanel = lazy(async () => {
|
|
32977
33000
|
const [{ useChat }, { default: Panel }] = await Promise.all([
|
|
32978
33001
|
import('@ai-sdk/react'),
|
|
32979
|
-
import('./AiChatPanel-
|
|
33002
|
+
import('./AiChatPanel-7AU4A3A7.mjs')
|
|
32980
33003
|
]);
|
|
32981
33004
|
function BoundAiChatPanel(props) {
|
|
32982
33005
|
return /* @__PURE__ */ jsx(Panel, { ...props, useChat });
|
|
@@ -33446,13 +33469,14 @@ function MobileDismissSheet({
|
|
|
33446
33469
|
className,
|
|
33447
33470
|
children
|
|
33448
33471
|
}) {
|
|
33472
|
+
const { t } = useTranslation();
|
|
33449
33473
|
const { dragY, handlers } = useSheetDismissDrag(onClose);
|
|
33450
33474
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33451
33475
|
/* @__PURE__ */ jsx(
|
|
33452
33476
|
"button",
|
|
33453
33477
|
{
|
|
33454
33478
|
type: "button",
|
|
33455
|
-
"aria-label": "
|
|
33479
|
+
"aria-label": t("pptx.mobileSheet.close"),
|
|
33456
33480
|
onClick: onClose,
|
|
33457
33481
|
className: "md:hidden fixed inset-0 z-20 bg-black/40 backdrop-blur-[2px] animate-in fade-in duration-150"
|
|
33458
33482
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -138592,6 +138592,7 @@ var GroupElementProcessor = class {
|
|
|
138592
138592
|
return children13.join("\n\n");
|
|
138593
138593
|
}
|
|
138594
138594
|
};
|
|
138595
|
+
init_blob_url_to_data_url();
|
|
138595
138596
|
init_type_guards();
|
|
138596
138597
|
var ImageElementProcessor = class {
|
|
138597
138598
|
supportedTypes = ["image", "picture"];
|
|
@@ -138632,14 +138633,37 @@ var ImageElementProcessor = class {
|
|
|
138632
138633
|
return { w: maxW, h: Math.round(origH * scale2) };
|
|
138633
138634
|
}
|
|
138634
138635
|
async extractImage(imageElement, ctx) {
|
|
138635
|
-
|
|
138636
|
-
|
|
138636
|
+
const imageData = await this.resolveToDataUrl(imageElement.imageData, "image/png");
|
|
138637
|
+
if (imageData) {
|
|
138638
|
+
return await ctx.mediaContext.saveImage(imageData, `slide${ctx.slideNumber}`);
|
|
138637
138639
|
}
|
|
138638
|
-
|
|
138639
|
-
|
|
138640
|
+
const svgData = await this.resolveToDataUrl(imageElement.svgData, "image/svg+xml");
|
|
138641
|
+
if (svgData) {
|
|
138642
|
+
return await ctx.mediaContext.saveImage(svgData, `slide${ctx.slideNumber}`);
|
|
138640
138643
|
}
|
|
138641
138644
|
return null;
|
|
138642
138645
|
}
|
|
138646
|
+
/**
|
|
138647
|
+
* Accepts an already-decoded `data:` URI as-is. A `blob:` URL (e.g. a
|
|
138648
|
+
* Node `blob:nodedata:...` Object URL minted by `eagerDecodeImages` in a
|
|
138649
|
+
* non-browser runtime) is re-fetched and re-encoded, since only its own
|
|
138650
|
+
* process can resolve it and it would otherwise never satisfy the
|
|
138651
|
+
* `data:` check below. Anything else (undefined, an unresolved relative
|
|
138652
|
+
* path) is not extractable.
|
|
138653
|
+
*/
|
|
138654
|
+
async resolveToDataUrl(value, fallbackMimeType) {
|
|
138655
|
+
if (!value) {
|
|
138656
|
+
return void 0;
|
|
138657
|
+
}
|
|
138658
|
+
if (value.startsWith("data:")) {
|
|
138659
|
+
return value;
|
|
138660
|
+
}
|
|
138661
|
+
if (value.startsWith("blob:")) {
|
|
138662
|
+
const resolved = await blobUrlToDataUrl(value, fallbackMimeType);
|
|
138663
|
+
return resolved.startsWith("data:") ? resolved : void 0;
|
|
138664
|
+
}
|
|
138665
|
+
return void 0;
|
|
138666
|
+
}
|
|
138643
138667
|
/** Clean and truncate image alt text for readable markdown output. */
|
|
138644
138668
|
sanitiseAltText(raw) {
|
|
138645
138669
|
if (!raw) {
|
|
@@ -155049,17 +155073,17 @@ function buildCartesianViewModel(element, chartData, categoryLabels, kind) {
|
|
|
155049
155073
|
(axis) => axis.axisType === "valAx" && axis.axPos !== "r"
|
|
155050
155074
|
);
|
|
155051
155075
|
const primaryRange = isStacked ? {
|
|
155052
|
-
...stackedRange(chartData, catCount, isPercent, layout.
|
|
155076
|
+
...stackedRange(chartData, catCount, isPercent, layout.autoPlotHeight),
|
|
155053
155077
|
...primaryAxis?.orientation === "maxMin" ? { reverseOrder: true } : {}
|
|
155054
155078
|
} : computeValueRangeForChart(
|
|
155055
155079
|
primaryPlotSeries.length > 0 ? primaryPlotSeries : chartData.series,
|
|
155056
155080
|
chartData.axes,
|
|
155057
|
-
layout.
|
|
155081
|
+
layout.autoPlotHeight
|
|
155058
155082
|
);
|
|
155059
155083
|
const secondaryRange = useSecondary && secondaryPlotSeries.length > 0 ? computeValueRangeForAxis(
|
|
155060
155084
|
secondaryPlotSeries,
|
|
155061
155085
|
chartData.axes?.find((axis) => axis.axisType === "valAx" && axis.axPos === "r"),
|
|
155062
|
-
layout.
|
|
155086
|
+
layout.autoPlotHeight
|
|
155063
155087
|
) : void 0;
|
|
155064
155088
|
const axisRes = buildCartesianAxes(chartData, layout, primaryRange, secondaryRange, catCount);
|
|
155065
155089
|
const zeroLine = primaryRange.logScale ? void 0 : buildZeroLine(primaryRange, layout);
|
|
@@ -155325,11 +155349,11 @@ function buildComboViewModel(element, chartData, categoryLabels) {
|
|
|
155325
155349
|
const primaryAxisId = getPrimaryValueAxisId(chartData.axes);
|
|
155326
155350
|
const primaryAxis = chartData.axes?.find((axis) => axis.axisId === primaryAxisId);
|
|
155327
155351
|
const secondaryAxisFormatting = getSecondaryValueAxis(chartData.axes);
|
|
155328
|
-
const primaryRange = computeValueRangeForAxis(primarySeries, primaryAxis, layout.
|
|
155352
|
+
const primaryRange = computeValueRangeForAxis(primarySeries, primaryAxis, layout.autoPlotHeight);
|
|
155329
155353
|
const secondaryRange = secondary.length > 0 ? computeValueRangeForAxis(
|
|
155330
155354
|
secondary.map((entry2) => entry2.series),
|
|
155331
155355
|
secondaryAxisFormatting,
|
|
155332
|
-
layout.
|
|
155356
|
+
layout.autoPlotHeight
|
|
155333
155357
|
) : void 0;
|
|
155334
155358
|
const primaryCategoryAxis2 = chartData.axes?.find(
|
|
155335
155359
|
(axis) => (axis.axisType === "catAx" || axis.axisType === "dateAx") && axis.axisId === primaryAxis?.crossAxisId
|
|
@@ -156657,7 +156681,7 @@ function buildSurfaceWallPanels(cols, rows, cellSize, zScale, offsetX, offsetY,
|
|
|
156657
156681
|
}
|
|
156658
156682
|
function buildIsometricSurfaceViewModel(element, chartData, categoryLabels) {
|
|
156659
156683
|
const layout = computePlotLayout(element.width, element.height, chartData, false);
|
|
156660
|
-
const range = computeValueRange2(chartData.series, layout.
|
|
156684
|
+
const range = computeValueRange2(chartData.series, layout.autoPlotHeight);
|
|
156661
156685
|
const catCount = Math.max(categoryLabels.length, 1);
|
|
156662
156686
|
const seriesCount = chartData.series.length;
|
|
156663
156687
|
const cols = Math.max(catCount - 1, 1);
|
|
@@ -156776,7 +156800,7 @@ function buildIsometricSurfaceViewModel(element, chartData, categoryLabels) {
|
|
|
156776
156800
|
}
|
|
156777
156801
|
function buildFlatSurfaceViewModel(element, chartData, categoryLabels) {
|
|
156778
156802
|
const layout = computePlotLayout(element.width, element.height, chartData, false);
|
|
156779
|
-
const range = computeValueRange2(chartData.series, layout.
|
|
156803
|
+
const range = computeValueRange2(chartData.series, layout.autoPlotHeight);
|
|
156780
156804
|
const catCount = Math.max(categoryLabels.length, 1);
|
|
156781
156805
|
const seriesCount = chartData.series.length;
|
|
156782
156806
|
const cellW = layout.plotWidth / Math.max(catCount - 1, 1);
|
|
@@ -157664,6 +157688,7 @@ function computePlotLayout(elementWidth, elementHeight, chartData, hasAxes, opti
|
|
|
157664
157688
|
const rowCount = options.dataTableRowCount ?? 1;
|
|
157665
157689
|
plotBottom -= 14 + rowCount * 14;
|
|
157666
157690
|
}
|
|
157691
|
+
const autoPlotHeight = Math.max(plotBottom - plotTop, 1);
|
|
157667
157692
|
const plotLayout = manualLayoutOf(chartData, "plotArea"), manual = resolveManualLayoutRect(
|
|
157668
157693
|
plotLayout,
|
|
157669
157694
|
{ width: svgWidth, height: svgHeight },
|
|
@@ -157688,7 +157713,8 @@ function computePlotLayout(elementWidth, elementHeight, chartData, hasAxes, opti
|
|
|
157688
157713
|
plotRight: plotLeft + plotWidth,
|
|
157689
157714
|
plotBottom: plotTop + plotHeight,
|
|
157690
157715
|
plotWidth,
|
|
157691
|
-
plotHeight
|
|
157716
|
+
plotHeight,
|
|
157717
|
+
autoPlotHeight
|
|
157692
157718
|
};
|
|
157693
157719
|
}
|
|
157694
157720
|
var RADAR_RINGS = 4;
|
|
@@ -158554,7 +158580,7 @@ function buildWaterfallViewModel(element, chartData, categoryLabels) {
|
|
|
158554
158580
|
const series = chartData.series[0];
|
|
158555
158581
|
const values = series?.values ?? [];
|
|
158556
158582
|
const steps = buildWaterfallSteps(values, series?.waterfallOptions);
|
|
158557
|
-
const range = computeWaterfallRange(steps, layout.
|
|
158583
|
+
const range = computeWaterfallRange(steps, layout.autoPlotHeight);
|
|
158558
158584
|
const catCount = Math.max(categoryLabels.length, values.length, 1);
|
|
158559
158585
|
const barWidth = layout.plotWidth / catCount * 0.6;
|
|
158560
158586
|
const gap = layout.plotWidth / catCount * 0.2;
|
|
@@ -159823,7 +159849,7 @@ function buildStackedDragGeometry(element, chartData, seriesIndex, pointIndex) {
|
|
|
159823
159849
|
), plots = computeStackedSeriesPlots(seriesValues, catCount, percent3), baseValue = plots[seriesIndex]?.base[pointIndex] ?? 0, otherAbsSum = seriesValues.reduce(
|
|
159824
159850
|
(sum, values, si) => si === seriesIndex ? sum : sum + Math.abs(values[pointIndex] ?? 0),
|
|
159825
159851
|
0
|
|
159826
|
-
), layoutOpts = computeLayoutOptions(chartData.axes, chartData.dataTable, chartData.series.length), layout = computePlotLayout(element.width, element.height, chartData, true, layoutOpts), range = percent3 ? { min: 0, max: 100, span: 100 } : computeStackedValueRange(chartData.series, catCount, layout.
|
|
159852
|
+
), layoutOpts = computeLayoutOptions(chartData.axes, chartData.dataTable, chartData.series.length), layout = computePlotLayout(element.width, element.height, chartData, true, layoutOpts), range = percent3 ? { min: 0, max: 100, span: 100 } : computeStackedValueRange(chartData.series, catCount, layout.autoPlotHeight);
|
|
159827
159853
|
return {
|
|
159828
159854
|
range,
|
|
159829
159855
|
plotTop: layout.plotTop,
|
|
@@ -173124,6 +173150,7 @@ var translationsEn = {
|
|
|
173124
173150
|
"pptx.sections.addAfter": "Add Section After",
|
|
173125
173151
|
// Notes
|
|
173126
173152
|
"pptx.notes.title": "Notes",
|
|
173153
|
+
"pptx.notes.hasNotes": "(has notes)",
|
|
173127
173154
|
"pptx.notes.slideN": "Slide {{n}}",
|
|
173128
173155
|
"pptx.notes.noSlide": "No slide selected",
|
|
173129
173156
|
"pptx.notes.clickToAddNotes": "Click to add notes",
|
|
@@ -173479,6 +173506,8 @@ var translationsEn = {
|
|
|
173479
173506
|
"pptx.slideShow.subtitles": "Subtitles",
|
|
173480
173507
|
// Record tab (camera overlay placeholders)
|
|
173481
173508
|
"pptx.record.cameo": "Cameo",
|
|
173509
|
+
"pptx.record.manage": "Manage",
|
|
173510
|
+
"pptx.record.camera": "Camera",
|
|
173482
173511
|
"pptx.record.clear": "Clear",
|
|
173483
173512
|
"pptx.record.learnMore": "Learn More",
|
|
173484
173513
|
"pptx.record.resetToCameo": "Reset to Cameo",
|
|
@@ -175588,6 +175617,7 @@ var translationsEn = {
|
|
|
175588
175617
|
"pptx.textFormatting.paragraphBefore": "Paragraph Before",
|
|
175589
175618
|
"pptx.textFormatting.textFlow": "Text Flow",
|
|
175590
175619
|
"pptx.textProperties.advancedTextHeading": "Advanced Text",
|
|
175620
|
+
"pptx.textProperties.autoFitToShape": "Auto-fit text to shape",
|
|
175591
175621
|
"pptx.textProperties.defaultFontOption": "Default ({{font}})",
|
|
175592
175622
|
"pptx.textProperties.firstIndent": "First Indent",
|
|
175593
175623
|
"pptx.textProperties.leftMargin": "Left Margin",
|
|
Binary file
|
|
Binary file
|