pptx-react-viewer 2.16.4 → 2.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{AiChatPanel-7DDN4QUA.mjs → AiChatPanel-NQFSMKIJ.mjs} +3 -3
  3. package/dist/AiChatPanel-NQFSMKIJ.mjs.br +0 -0
  4. package/dist/AiChatPanel-NQFSMKIJ.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-KEORKCTT.js → AiChatPanel-T6UN6LME.js} +22 -22
  6. package/dist/AiChatPanel-T6UN6LME.js.br +0 -0
  7. package/dist/AiChatPanel-T6UN6LME.js.gz +0 -0
  8. package/dist/{Model3DScene-DEAQMMUS.mjs → Model3DScene-4D4GSRIB.mjs} +1 -1
  9. package/dist/Model3DScene-4D4GSRIB.mjs.br +0 -0
  10. package/dist/Model3DScene-4D4GSRIB.mjs.gz +0 -0
  11. package/dist/{Model3DScene-SBUYEWHL.js → Model3DScene-SIST7CIH.js} +2 -2
  12. package/dist/Model3DScene-SIST7CIH.js.br +0 -0
  13. package/dist/Model3DScene-SIST7CIH.js.gz +0 -0
  14. package/dist/PowerPointViewer-Du7u4INi.d.ts.map +1 -1
  15. package/dist/{SurfaceChart3DScene-I5D54YQ3.js → SurfaceChart3DScene-GRM24VBC.js} +2 -2
  16. package/dist/SurfaceChart3DScene-GRM24VBC.js.br +0 -0
  17. package/dist/SurfaceChart3DScene-GRM24VBC.js.gz +0 -0
  18. package/dist/{SurfaceChart3DScene-TXGS2PBK.mjs → SurfaceChart3DScene-ZT7L27U4.mjs} +1 -1
  19. package/dist/{SurfaceChart3DScene-TXGS2PBK.mjs.br → SurfaceChart3DScene-ZT7L27U4.mjs.br} +0 -0
  20. package/dist/SurfaceChart3DScene-ZT7L27U4.mjs.gz +0 -0
  21. package/dist/{chunk-PLBS7OL2.mjs → chunk-6F76GHPE.mjs} +14 -7
  22. package/dist/chunk-6F76GHPE.mjs.br +0 -0
  23. package/dist/chunk-6F76GHPE.mjs.gz +0 -0
  24. package/dist/{chunk-FQ3FTNKV.js → chunk-DYGKE2LY.js} +1086 -1056
  25. package/dist/chunk-DYGKE2LY.js.br +0 -0
  26. package/dist/chunk-DYGKE2LY.js.gz +0 -0
  27. package/dist/{chunk-RBQUSVYR.js → chunk-GUDJDY4J.js} +348 -342
  28. package/dist/chunk-GUDJDY4J.js.br +0 -0
  29. package/dist/chunk-GUDJDY4J.js.gz +0 -0
  30. package/dist/{chunk-HAQDKQ52.js → chunk-H36QL5T5.js} +267 -260
  31. package/dist/chunk-H36QL5T5.js.br +0 -0
  32. package/dist/chunk-H36QL5T5.js.gz +0 -0
  33. package/dist/{chunk-LLTUDPRE.mjs → chunk-NI5GSVZU.mjs} +10 -4
  34. package/dist/chunk-NI5GSVZU.mjs.br +0 -0
  35. package/dist/chunk-NI5GSVZU.mjs.gz +0 -0
  36. package/dist/{chunk-23WSCMWN.mjs → chunk-PUBYHZYJ.mjs} +322 -151
  37. package/dist/chunk-PUBYHZYJ.mjs.br +0 -0
  38. package/dist/chunk-PUBYHZYJ.mjs.gz +0 -0
  39. package/dist/{chunk-MZ47MV52.js → chunk-RZYOOWZN.js} +323 -150
  40. package/dist/chunk-RZYOOWZN.js.br +0 -0
  41. package/dist/chunk-RZYOOWZN.js.gz +0 -0
  42. package/dist/{chunk-J4QZVO3S.mjs → chunk-VDQD3ZOU.mjs} +1 -1
  43. package/dist/chunk-VDQD3ZOU.mjs.br +0 -0
  44. package/dist/{chunk-J4QZVO3S.mjs.gz → chunk-VDQD3ZOU.mjs.gz} +0 -0
  45. package/dist/{chunk-GZ2V3PWN.js → chunk-YDYAOW6D.js} +3 -3
  46. package/dist/chunk-YDYAOW6D.js.br +0 -0
  47. package/dist/{chunk-GZ2V3PWN.js.gz → chunk-YDYAOW6D.js.gz} +0 -0
  48. package/dist/{chunk-GSAOP4Z4.mjs → chunk-YZHBUMVU.mjs} +41 -11
  49. package/dist/chunk-YZHBUMVU.mjs.br +0 -0
  50. package/dist/chunk-YZHBUMVU.mjs.gz +0 -0
  51. package/dist/index.d.ts +19 -0
  52. package/dist/index.js +39 -39
  53. package/dist/index.js.br +0 -0
  54. package/dist/index.js.gz +0 -0
  55. package/dist/index.mjs +5 -5
  56. package/dist/index.mjs.br +0 -0
  57. package/dist/index.mjs.gz +0 -0
  58. package/dist/internals.d.ts +37 -4
  59. package/dist/internals.d.ts.map +1 -1
  60. package/dist/internals.js +78 -78
  61. package/dist/internals.js.br +0 -0
  62. package/dist/internals.js.gz +0 -0
  63. package/dist/internals.mjs +3 -3
  64. package/dist/internals.mjs.br +0 -0
  65. package/dist/internals.mjs.gz +0 -0
  66. package/dist/{useViewerBuildingBlocks-CBZrHhxl.d.ts → useViewerBuildingBlocks-DpzU8NZ_.d.ts} +3 -1
  67. package/dist/useViewerBuildingBlocks-DpzU8NZ_.d.ts.map +1 -0
  68. package/dist/viewer/index.d.ts +17 -0
  69. package/dist/viewer/index.js +26 -26
  70. package/dist/viewer/index.js.br +0 -0
  71. package/dist/viewer/index.js.gz +0 -0
  72. package/dist/viewer/index.mjs +5 -5
  73. package/dist/viewer/index.mjs.br +0 -0
  74. package/dist/viewer/index.mjs.gz +0 -0
  75. package/package.json +1 -1
  76. package/dist/AiChatPanel-7DDN4QUA.mjs.br +0 -0
  77. package/dist/AiChatPanel-7DDN4QUA.mjs.gz +0 -0
  78. package/dist/AiChatPanel-KEORKCTT.js.br +0 -0
  79. package/dist/AiChatPanel-KEORKCTT.js.gz +0 -0
  80. package/dist/Model3DScene-DEAQMMUS.mjs.br +0 -0
  81. package/dist/Model3DScene-DEAQMMUS.mjs.gz +0 -0
  82. package/dist/Model3DScene-SBUYEWHL.js.br +0 -0
  83. package/dist/Model3DScene-SBUYEWHL.js.gz +0 -0
  84. package/dist/SurfaceChart3DScene-I5D54YQ3.js.br +0 -0
  85. package/dist/SurfaceChart3DScene-I5D54YQ3.js.gz +0 -0
  86. package/dist/SurfaceChart3DScene-TXGS2PBK.mjs.gz +0 -0
  87. package/dist/chunk-23WSCMWN.mjs.br +0 -0
  88. package/dist/chunk-23WSCMWN.mjs.gz +0 -0
  89. package/dist/chunk-FQ3FTNKV.js.br +0 -0
  90. package/dist/chunk-FQ3FTNKV.js.gz +0 -0
  91. package/dist/chunk-GSAOP4Z4.mjs.br +0 -0
  92. package/dist/chunk-GSAOP4Z4.mjs.gz +0 -0
  93. package/dist/chunk-GZ2V3PWN.js.br +0 -0
  94. package/dist/chunk-HAQDKQ52.js.br +0 -0
  95. package/dist/chunk-HAQDKQ52.js.gz +0 -0
  96. package/dist/chunk-J4QZVO3S.mjs.br +0 -0
  97. package/dist/chunk-LLTUDPRE.mjs.br +0 -0
  98. package/dist/chunk-LLTUDPRE.mjs.gz +0 -0
  99. package/dist/chunk-MZ47MV52.js.br +0 -0
  100. package/dist/chunk-MZ47MV52.js.gz +0 -0
  101. package/dist/chunk-PLBS7OL2.mjs.br +0 -0
  102. package/dist/chunk-PLBS7OL2.mjs.gz +0 -0
  103. package/dist/chunk-RBQUSVYR.js.br +0 -0
  104. package/dist/chunk-RBQUSVYR.js.gz +0 -0
  105. package/dist/useViewerBuildingBlocks-CBZrHhxl.d.ts.map +0 -1
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { ThemePresets, PptxMarkdownConverter } from './chunk-23WSCMWN.mjs';
1
+ import { ThemePresets, PptxMarkdownConverter } from './chunk-PUBYHZYJ.mjs';
2
2
  import { __export } from './chunk-XGB3TDIC.mjs';
3
3
  import * as mcp from 'pptx-viewer-mcp';
4
4
  import * as mcpSchemas from 'pptx-viewer-mcp/schemas';
Binary file
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkMZ47MV52_js = require('./chunk-MZ47MV52.js');
3
+ var chunkRZYOOWZN_js = require('./chunk-RZYOOWZN.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');
@@ -14879,7 +14879,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
14879
14879
  };
14880
14880
  let markdown;
14881
14881
  try {
14882
- const converter = new chunkMZ47MV52_js.PptxMarkdownConverter(
14882
+ const converter = new chunkRZYOOWZN_js.PptxMarkdownConverter(
14883
14883
  "",
14884
14884
  {
14885
14885
  sourceName: meta3.title ?? "deck.pptx",
@@ -15471,7 +15471,7 @@ var getTheme = (ctx) => {
15471
15471
  name: theme?.name,
15472
15472
  colorScheme: theme?.colorScheme,
15473
15473
  fontScheme: theme?.fontScheme,
15474
- availablePresets: Object.keys(chunkMZ47MV52_js.ThemePresets)
15474
+ availablePresets: Object.keys(chunkRZYOOWZN_js.ThemePresets)
15475
15475
  };
15476
15476
  };
15477
15477
  var readExecutors = {
Binary file
@@ -1,8 +1,8 @@
1
- import { computeFocusTargets, aiChangeAnimationCss, changeGhostStyle, createChatHistoryStore, toRenderableParts } from './chunk-J4QZVO3S.mjs';
2
- import { useReducedMotion, useViewerState, useViewerOptions, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useYjsDocumentSync, useCollaborationLivePatch, useFollowMode, useBroadcastFollower, scopeLayoutOptionsToActiveSlide, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, useVirtualizedSlides, useSwipeNavigation, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, downloadBlob } from './chunk-LLTUDPRE.mjs';
3
- import { MIN_ELEMENT_SIZE, DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, DEFAULT_FILL_COLOR, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getCropShapeClipPath, resolvePalette, resolveStyle, layoutToCategory, wrapChrome, isImageTiled, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, buildTextBody3DSceneStyle, SLIDE_NAV_THUMBNAIL_WIDTH, styleShadow, styleStroke, colour, fitFontSize, smartArtNodeGroupProps, chevronPoints, SmartArtNodeText, truncate, renderStepDownProcess, renderAlternatingFlow, renderDescendingProcess, renderPictureAccentList, renderVerticalBlockList, renderGroupedList, renderPyramidList, renderHorizontalPictureList, renderAccentProcess, renderVerticalChevronList, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, TOOLBAR_SECTIONS, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, buildTree, treeWidth, treeDepth, nodeOpacity, gearPath, resolveSmartArtDataPalette, HYPERLINK_COLOR, GRID_SIZE, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, THEME_COLOR_SWATCHES, STROKE_DASH_OPTIONS } from './chunk-PLBS7OL2.mjs';
1
+ import { computeFocusTargets, aiChangeAnimationCss, changeGhostStyle, createChatHistoryStore, toRenderableParts } from './chunk-VDQD3ZOU.mjs';
2
+ import { useReducedMotion, useViewerState, useViewerOptions, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useLayoutSwitching, useYjsDocumentSync, useCollaborationLivePatch, useFollowMode, useBroadcastFollower, scopeLayoutOptionsToActiveSlide, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, useVirtualizedSlides, useSwipeNavigation, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, downloadBlob } from './chunk-NI5GSVZU.mjs';
3
+ import { MIN_ELEMENT_SIZE, DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, DEFAULT_FILL_COLOR, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getCropShapeClipPath, resolvePalette, resolveStyle, layoutToCategory, wrapChrome, isImageTiled, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, buildTextBody3DSceneStyle, SLIDE_NAV_THUMBNAIL_WIDTH, styleShadow, styleStroke, colour, fitFontSize, smartArtNodeGroupProps, chevronPoints, SmartArtNodeText, renderStepDownProcess, renderAlternatingFlow, renderDescendingProcess, renderPictureAccentList, renderVerticalBlockList, renderGroupedList, renderPyramidList, renderHorizontalPictureList, renderAccentProcess, renderVerticalChevronList, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, TOOLBAR_SECTIONS, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, buildTree, treeWidth, treeDepth, nodeOpacity, truncate, gearPath, resolveSmartArtDataPalette, HYPERLINK_COLOR, GRID_SIZE, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, THEME_COLOR_SWATCHES, STROKE_DASH_OPTIONS } from './chunk-6F76GHPE.mjs';
4
4
  import { LOCALE_CATALOG, translationsEn } from './chunk-5IUEPQTK.mjs';
5
- import { hasShapeProperties, normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, hasTextProperties, getElementTransform, isEditableTextElement, isElementRendered, isElementActionable, getAriaRole, getAriaLabel, getAriaRoleDescription, getImageEffectsOpacity, getImageEffectsFilter, getElementTransformWithoutRotation, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, ACTION_BUTTON_PRESETS, mediaTransportVisible, isInkElement, getElementLabel, SWITCHABLE_LAYOUT_TYPES, DEFAULT_VIEWER_OPTIONS, compileEquationTemplateMathMl, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, paintedStrokeWidth, buildCssGradientFromShapeStyle, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, getComputedEffectStyle, getSoftEdgeSvgFilter, buildStrokeOutline, buildHollowHitOutline, strokeOutlineViewBox, getGroupChildParentFill, revealedSmartArtNodeCount, buildSmartArtA11y, buildSummaryZoomView, getImageColorWashStyle, isImageLikeElement, placeCaretAtEnd, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, applyChartBuildReveal, formatAxisValue, hasPressureVariation, getInkReplayStyles, INK_REPLAY_KEYFRAMES, resolveInkColor, resolveInkWidth, resolveInkOpacity, pressuresToWidths, getContentPartReplayStyles, resolveOleType, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, RULER_THICKNESS, RULER_FONT_SIZE, buildPreviewElements, deriveSlideFieldContext, SLIDE_TRANSITION_OPTIONS, hiddenSlideCue, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, themeToCssVars, applyMotionPathPreset, DEFAULT_INSERT_CHART_KIND, hasCopyableFormat, templateSchemeFromTheme, createBackstagePresentation, printPropertiesFrameSlides, printPropertiesSlidesPerPage, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, resolveDrawingShapeNodeId, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, findChartPartTarget, dragValueForPart, withChartPointValue, dragAnchorViewY, withChartTitle, computeSmartArtLayout, buildSmartArt3DModel, extractPathPoints, generatePressureCircles, isBrowserOpenableMime, formatBytes, getOleBadgeLabel, openUrlInNewTab, getSubstituteFontFamily, getWarpPath, getSlideBackgroundStyle, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, buildFieldSubstitutionContext, shouldConfirmExternalHyperlink, safeOpenUrl, isPpactionUrl, parsePpactionUrl, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, buildContextMenuEntries, themeColorSchemesEqual, STATUS_BAR_CLASSES, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, activateModalFocus, buildCollaborationShareUrl, 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, computeInlineEditorRect, findSmartArtNodeText, setSmartArtNodeStyle, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, updateSmartArtNodeText, groupIntoParagraphs, substituteFieldText, extraQuickAccessCommands, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, INSERT_CHART_TYPES, CHARACTER_SPACING_OPTIONS, DEFAULT_MOTION_PATH_PRESET_ID, SLIDE_VIRTUALIZATION_THRESHOLD, PRESENTATION_STAGE_ATTRIBUTE, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, annotationOverlayZIndex, presentationInkPath, motionPathFor, setMotionPath, getShapeAdjustmentHandleDescriptor, PRESENTER_NAVIGATOR_LABEL_KEYS, PEN_COLORS, HIGHLIGHTER_COLORS, isBlackboardActive, PRESET_THEMES, isUrlSafe, sanitizeMathMl, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, QUICK_ACCESS_COMMAND_CATALOG, 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, ENTRANCE_PRESET_VALUES, EMPHASIS_PRESET_VALUES, EXIT_PRESET_VALUES, MOTION_PATH_FAMILIES, motionPathFamilyLabelKey, motionPathPresetsByFamily, motionPathPresetLabelKey, getConnectionSites, generateTicks, rulerDragToGuidePosition, getCommentMarkerPosition, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, themeColorLabel, buildThemeColorGrid, THEME_COLOR_SCHEME_KEYS, COMMON_FONTS, buildSmartArtPresetData, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, SLIDE_TEMPLATES, mergeSlideTransition, buildSlideTemplateContent, buildTableDataGrid, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, TABLE_STYLE_PRESETS, chartDataChangeType, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, getOleObjectTypeLabel, sanitizeGradientStops, pptxActionToElementAction, withFrameSlides, withSlidesPerPage, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, TRANSITION_VALID_DIRECTIONS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, flattenTagCollections, formatCommentTimestamp, clearMotionPath, DIRECTIONAL_PRESETS, motionPathPresetIdForPath, computeMergeCellRight, computeMergeCellDown, computeSplitCell, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSmartArtNodeAsChild, removeSmartArtNode, clampCropValue, DUOTONE_PRESETS, ARTISTIC_EFFECTS, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, toSlideIndex, elementActionToPptxAction, canCommitActionType, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, animationEffectLabel, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, switchSmartArtLayout, addSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, SHAPE_QUICK_STYLES, quickStyleSwatchCss, getPatternSvg, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, openNativeEyeDropper, toggleText3dExtrusion, BEVEL_PRESETS } from './chunk-23WSCMWN.mjs';
5
+ import { hasShapeProperties, normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, hasTextProperties, getElementTransform, isEditableTextElement, isElementRendered, isElementActionable, getAriaRole, getAriaLabel, getAriaRoleDescription, getImageEffectsOpacity, getImageEffectsFilter, getElementTransformWithoutRotation, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, ACTION_BUTTON_PRESETS, mediaTransportVisible, isInkElement, getElementLabel, SWITCHABLE_LAYOUT_TYPES, DEFAULT_VIEWER_OPTIONS, compileEquationTemplateMathMl, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, paintedStrokeWidth, buildCssGradientFromShapeStyle, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, getComputedEffectStyle, getSoftEdgeSvgFilter, buildStrokeOutline, buildHollowHitOutline, strokeOutlineViewBox, getGroupChildParentFill, revealedSmartArtNodeCount, buildSmartArtA11y, buildSummaryZoomView, getImageColorWashStyle, isImageLikeElement, placeCaretAtEnd, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, applyChartBuildReveal, formatAxisValue, hasPressureVariation, getInkReplayStyles, INK_REPLAY_KEYFRAMES, resolveInkColor, resolveInkWidth, resolveInkOpacity, pressuresToWidths, getContentPartReplayStyles, resolveOleType, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, RULER_THICKNESS, RULER_FONT_SIZE, buildPreviewElements, deriveSlideFieldContext, SLIDE_TRANSITION_OPTIONS, hiddenSlideCue, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, themeToCssVars, applyMotionPathPreset, DEFAULT_INSERT_CHART_KIND, hasCopyableFormat, templateSchemeFromTheme, createBackstagePresentation, printPropertiesFrameSlides, printPropertiesSlidesPerPage, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, resolveDrawingShapeNodeId, drawingShapeLabelColor, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, findChartPartTarget, dragValueForPart, withChartPointValue, dragAnchorViewY, withChartTitle, computeSmartArtLayout, buildSmartArt3DModel, extractPathPoints, generatePressureCircles, isBrowserOpenableMime, formatBytes, getOleBadgeLabel, openUrlInNewTab, getSubstituteFontFamily, getWarpPath, getSlideBackgroundStyle, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, buildFieldSubstitutionContext, shouldConfirmExternalHyperlink, safeOpenUrl, isPpactionUrl, parsePpactionUrl, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, buildContextMenuEntries, themeColorSchemesEqual, STATUS_BAR_CLASSES, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, activateModalFocus, buildCollaborationShareUrl, 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, computeInlineEditorRect, findSmartArtNodeText, setSmartArtNodeStyle, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, updateSmartArtNodeText, groupIntoParagraphs, substituteFieldText, extraQuickAccessCommands, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, INSERT_CHART_TYPES, CHARACTER_SPACING_OPTIONS, DEFAULT_MOTION_PATH_PRESET_ID, SLIDE_VIRTUALIZATION_THRESHOLD, PRESENTATION_STAGE_ATTRIBUTE, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, annotationOverlayZIndex, presentationInkPath, motionPathFor, setMotionPath, getShapeAdjustmentHandleDescriptor, PRESENTER_NAVIGATOR_LABEL_KEYS, PEN_COLORS, HIGHLIGHTER_COLORS, isBlackboardActive, PRESET_THEMES, isUrlSafe, sanitizeMathMl, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, QUICK_ACCESS_COMMAND_CATALOG, 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, ENTRANCE_PRESET_VALUES, EMPHASIS_PRESET_VALUES, EXIT_PRESET_VALUES, MOTION_PATH_FAMILIES, motionPathFamilyLabelKey, motionPathPresetsByFamily, motionPathPresetLabelKey, getConnectionSites, generateTicks, rulerDragToGuidePosition, getCommentMarkerPosition, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, themeColorLabel, buildThemeColorGrid, THEME_COLOR_SCHEME_KEYS, COMMON_FONTS, buildSmartArtPresetData, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, SLIDE_TEMPLATES, mergeSlideTransition, buildSlideTemplateContent, buildTableDataGrid, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, TABLE_STYLE_PRESETS, chartDataChangeType, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, getOleObjectTypeLabel, sanitizeGradientStops, pptxActionToElementAction, withFrameSlides, withSlidesPerPage, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, TRANSITION_VALID_DIRECTIONS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, flattenTagCollections, formatCommentTimestamp, clearMotionPath, DIRECTIONAL_PRESETS, motionPathPresetIdForPath, computeMergeCellRight, computeMergeCellDown, computeSplitCell, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSmartArtNodeAsChild, removeSmartArtNode, clampCropValue, DUOTONE_PRESETS, ARTISTIC_EFFECTS, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, toSlideIndex, elementActionToPptxAction, canCommitActionType, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, animationEffectLabel, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, switchSmartArtLayout, addSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, SHAPE_QUICK_STYLES, quickStyleSwatchCss, getPatternSvg, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, openNativeEyeDropper, toggleText3dExtrusion, BEVEL_PRESETS } from './chunk-PUBYHZYJ.mjs';
6
6
  import React14, { createContext, useMemo, useState, useCallback, lazy, forwardRef, useEffect, useRef, Suspense, useLayoutEffect, useContext, Fragment as Fragment$1, useDeferredValue } from 'react';
7
7
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
8
8
  import { useTranslation } from 'react-i18next';
@@ -2563,7 +2563,7 @@ function FailedToLoad() {
2563
2563
  var LazyModel3DScene = React14.lazy(
2564
2564
  async () => {
2565
2565
  try {
2566
- return await import('./Model3DScene-DEAQMMUS.mjs');
2566
+ return await import('./Model3DScene-4D4GSRIB.mjs');
2567
2567
  } catch {
2568
2568
  return { default: FailedToLoad };
2569
2569
  }
@@ -3174,7 +3174,7 @@ function DrawingShapeRenderer({
3174
3174
  "data-testid": "smartart-drawing-shapes",
3175
3175
  children: shapes.map((shape, i) => {
3176
3176
  const gradient = drawingShapeGradientDef(`${elementId}-dspgrad-${shape.id}-${i}`, shape);
3177
- const fill = gradient?.ref ?? shape.fillPatternForegroundColor ?? shape.fillColor ?? colour(i, palette);
3177
+ const fill = shape.fillNone ? "none" : gradient?.ref ?? shape.fillPatternForegroundColor ?? shape.fillColor ?? colour(i, palette);
3178
3178
  const relX = shape.x - minX;
3179
3179
  const relY = shape.y - minY;
3180
3180
  const rx = shape.shapeType === "roundRect" ? Math.min(shape.width, shape.height) * 0.1 : 0;
@@ -3190,7 +3190,18 @@ function DrawingShapeRenderer({
3190
3190
  return /* @__PURE__ */ jsxs("g", { ...groupProps, children: [
3191
3191
  nodeLabel ? /* @__PURE__ */ jsx("title", { children: nodeLabel }) : null,
3192
3192
  gradient ? /* @__PURE__ */ jsx("defs", { children: gradient.def }) : null,
3193
- isEllipse ? /* @__PURE__ */ jsx(
3193
+ shape.fillImageUrl ? /* @__PURE__ */ jsx(
3194
+ "image",
3195
+ {
3196
+ x: relX,
3197
+ y: relY,
3198
+ width: shape.width,
3199
+ height: shape.height,
3200
+ href: shape.fillImageUrl,
3201
+ preserveAspectRatio: "xMidYMid meet",
3202
+ transform: rotation
3203
+ }
3204
+ ) : isEllipse ? /* @__PURE__ */ jsx(
3194
3205
  "ellipse",
3195
3206
  {
3196
3207
  cx: relX + shape.width / 2,
@@ -3230,8 +3241,9 @@ function DrawingShapeRenderer({
3230
3241
  {
3231
3242
  x: relX + shape.width / 2,
3232
3243
  y: relY + shape.height / 2,
3233
- text: truncate(shape.text, 40),
3234
- fill: shape.fontColor ?? "white",
3244
+ text: shape.text,
3245
+ maxWidth: shape.width,
3246
+ fill: shape.fontColor ?? drawingShapeLabelColor(shape, shapes, i, fill),
3235
3247
  fontSize,
3236
3248
  className: "pointer-events-none"
3237
3249
  }
@@ -6667,7 +6679,7 @@ function AccountPage() {
6667
6679
  return void 0;
6668
6680
  });
6669
6681
  };
6670
- const version = "2.16.3" ;
6682
+ const version = "2.16.5" ;
6671
6683
  return /* @__PURE__ */ jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
6672
6684
  /* @__PURE__ */ jsxs("section", { className: cardClass, children: [
6673
6685
  /* @__PURE__ */ jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
@@ -10730,6 +10742,7 @@ function Toolbar(p) {
10730
10742
  onToggleFormatPainter: p.onToggleFormatPainter,
10731
10743
  layoutOptions: p.layoutOptions,
10732
10744
  onInsertSlideFromLayout: p.onInsertSlideFromLayout,
10745
+ onApplyLayout: p.onApplyLayout,
10733
10746
  onInsertSlideFromTemplate: p.onInsertSlideFromTemplate,
10734
10747
  templateScheme: p.templateScheme,
10735
10748
  selectedElement: p.selectedElement,
@@ -33552,6 +33565,7 @@ function ViewerToolbarSection(props) {
33552
33565
  propertyHandlers,
33553
33566
  dialogs,
33554
33567
  slideOps,
33568
+ onApplyLayout,
33555
33569
  ops,
33556
33570
  onSetMode,
33557
33571
  onEnterPresenterView,
@@ -33928,6 +33942,7 @@ function ViewerToolbarSection(props) {
33928
33942
  onSetOverflowMenuOpen: s.setIsOverflowMenuOpen,
33929
33943
  layoutOptions: scopedLayoutOptions,
33930
33944
  onInsertSlideFromLayout: slideOps.handleInsertSlideFromLayout,
33945
+ onApplyLayout,
33931
33946
  onInsertSlideFromTemplate: slideOps.handleInsertSlideFromTemplate,
33932
33947
  templateScheme: templateSchemeFromTheme(s.theme?.colorScheme),
33933
33948
  customShows: s.customShows,
@@ -35396,7 +35411,7 @@ ${url}`)) {
35396
35411
  var AiChatPanel = lazy(async () => {
35397
35412
  const [{ useChat }, { default: Panel }] = await Promise.all([
35398
35413
  import('@ai-sdk/react'),
35399
- import('./AiChatPanel-7DDN4QUA.mjs')
35414
+ import('./AiChatPanel-NQFSMKIJ.mjs')
35400
35415
  ]);
35401
35416
  function BoundAiChatPanel(props) {
35402
35417
  return /* @__PURE__ */ jsx(Panel, { ...props, useChat });
@@ -38691,6 +38706,20 @@ var PowerPointViewer = forwardRef(
38691
38706
  onSelectionChange,
38692
38707
  onSlideCountChange
38693
38708
  });
38709
+ const handleTemplateElementsChanged = useCallback(
38710
+ (slideId, elements) => {
38711
+ state.setTemplateElementsBySlideId((prev) => ({ ...prev, [slideId]: elements }));
38712
+ },
38713
+ [state]
38714
+ );
38715
+ const layoutSwitching = useLayoutSwitching({
38716
+ handler: handlerRef.current,
38717
+ slides,
38718
+ activeSlideIndex,
38719
+ ops: editorOps.ops,
38720
+ history,
38721
+ onTemplateElementsChanged: handleTemplateElementsChanged
38722
+ });
38694
38723
  const applyAiTheme = useCallback(
38695
38724
  (updates) => {
38696
38725
  if (updates.colorScheme) {
@@ -38776,6 +38805,7 @@ var PowerPointViewer = forwardRef(
38776
38805
  propertyHandlers,
38777
38806
  dialogs,
38778
38807
  slideOps: editorOps.slideOps,
38808
+ onApplyLayout: (path) => void layoutSwitching.applyLayout(path),
38779
38809
  ops: editorOps.ops,
38780
38810
  onSetMode: handleSetMode,
38781
38811
  onEnterPresenterView: handleEnterPresenterView,
Binary file
Binary file
package/dist/index.d.ts CHANGED
@@ -1958,6 +1958,17 @@ interface PlaceholderTextLevelStyle {
1958
1958
  bold?: boolean;
1959
1959
  italic?: boolean;
1960
1960
  color?: string;
1961
+ /**
1962
+ * The `a:defRPr/a:solidFill` node this level's {@link color} came from.
1963
+ *
1964
+ * Master and layout text styles are parsed and cached before any slide is,
1965
+ * so a scheme alias such as `tx1` was resolved through the map that was
1966
+ * active then. A slide carrying `p:clrMapOvr` routes the same alias
1967
+ * somewhere else, so the alias has to be resolved again against the slide
1968
+ * that is inheriting it; {@link color} is only the reading taken at parse
1969
+ * time. Absent when the level declares no colour, or declares a literal one.
1970
+ */
1971
+ colorChoiceXml?: XmlObject;
1961
1972
  bulletChar?: string;
1962
1973
  bulletAutoNumType?: string;
1963
1974
  bulletFontFamily?: string;
@@ -3735,6 +3746,12 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
3735
3746
  skewX?: number;
3736
3747
  /** Skew along the Y axis in degrees. */
3737
3748
  skewY?: number;
3749
+ /**
3750
+ * The cached shape declares `a:noFill`. Renderers must leave it unpainted
3751
+ * rather than substituting a palette colour, because these shapes usually sit
3752
+ * on top of a painted shape whose fill has to stay visible.
3753
+ */
3754
+ fillNone?: boolean;
3738
3755
  /** Solid fill colour (hex). */
3739
3756
  fillColor?: string;
3740
3757
  /**
@@ -9696,6 +9713,8 @@ interface ToolbarProps {
9696
9713
  name: string;
9697
9714
  }>;
9698
9715
  onInsertSlideFromLayout: (path: string, name?: string) => void;
9716
+ /** Re-map the active slide onto another of its master's layouts. */
9717
+ onApplyLayout?: (path: string) => void;
9699
9718
  /** Insert a pre-designed starter slide from the template gallery. */
9700
9719
  onInsertSlideFromTemplate?: (templateId: SlideTemplateId) => void;
9701
9720
  /** Deck scheme map so template gallery previews show the deck theme. */
package/dist/index.js CHANGED
@@ -1,54 +1,54 @@
1
1
  'use strict';
2
2
 
3
- var chunkFQ3FTNKV_js = require('./chunk-FQ3FTNKV.js');
4
- require('./chunk-GZ2V3PWN.js');
5
- var chunkRBQUSVYR_js = require('./chunk-RBQUSVYR.js');
6
- var chunkHAQDKQ52_js = require('./chunk-HAQDKQ52.js');
3
+ var chunkDYGKE2LY_js = require('./chunk-DYGKE2LY.js');
4
+ require('./chunk-YDYAOW6D.js');
5
+ var chunkGUDJDY4J_js = require('./chunk-GUDJDY4J.js');
6
+ var chunkH36QL5T5_js = require('./chunk-H36QL5T5.js');
7
7
  var chunkDVZF4ARG_js = require('./chunk-DVZF4ARG.js');
8
- var chunkMZ47MV52_js = require('./chunk-MZ47MV52.js');
8
+ var chunkRZYOOWZN_js = require('./chunk-RZYOOWZN.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 chunkFQ3FTNKV_js.PowerPointViewer; }
15
+ get: function () { return chunkDYGKE2LY_js.PowerPointViewer; }
16
16
  });
17
17
  Object.defineProperty(exports, "SlideCanvas", {
18
18
  enumerable: true,
19
- get: function () { return chunkFQ3FTNKV_js.SlideCanvas; }
19
+ get: function () { return chunkDYGKE2LY_js.SlideCanvas; }
20
20
  });
21
21
  Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
22
22
  enumerable: true,
23
- get: function () { return chunkFQ3FTNKV_js.SlideTemplateGalleryDialog; }
23
+ get: function () { return chunkDYGKE2LY_js.SlideTemplateGalleryDialog; }
24
24
  });
25
25
  Object.defineProperty(exports, "SlideTemplatePreview", {
26
26
  enumerable: true,
27
- get: function () { return chunkFQ3FTNKV_js.SlideTemplatePreview; }
27
+ get: function () { return chunkDYGKE2LY_js.SlideTemplatePreview; }
28
28
  });
29
29
  Object.defineProperty(exports, "Toolbar", {
30
30
  enumerable: true,
31
- get: function () { return chunkFQ3FTNKV_js.Toolbar; }
31
+ get: function () { return chunkDYGKE2LY_js.Toolbar; }
32
32
  });
33
33
  Object.defineProperty(exports, "ViewerThemeProvider", {
34
34
  enumerable: true,
35
- get: function () { return chunkFQ3FTNKV_js.ViewerThemeProvider; }
35
+ get: function () { return chunkDYGKE2LY_js.ViewerThemeProvider; }
36
36
  });
37
37
  Object.defineProperty(exports, "useViewerTheme", {
38
38
  enumerable: true,
39
- get: function () { return chunkFQ3FTNKV_js.useViewerTheme; }
39
+ get: function () { return chunkDYGKE2LY_js.useViewerTheme; }
40
40
  });
41
41
  Object.defineProperty(exports, "renderToCanvas", {
42
42
  enumerable: true,
43
- get: function () { return chunkRBQUSVYR_js.renderToCanvas; }
43
+ get: function () { return chunkGUDJDY4J_js.renderToCanvas; }
44
44
  });
45
45
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
46
46
  enumerable: true,
47
- get: function () { return chunkRBQUSVYR_js.useViewerBuildingBlocks; }
47
+ get: function () { return chunkGUDJDY4J_js.useViewerBuildingBlocks; }
48
48
  });
49
49
  Object.defineProperty(exports, "getAnimationInitialStyle", {
50
50
  enumerable: true,
51
- get: function () { return chunkHAQDKQ52_js.getAnimationInitialStyle; }
51
+ get: function () { return chunkH36QL5T5_js.getAnimationInitialStyle; }
52
52
  });
53
53
  Object.defineProperty(exports, "LOCALE_CATALOG", {
54
54
  enumerable: true,
@@ -56,97 +56,97 @@ Object.defineProperty(exports, "LOCALE_CATALOG", {
56
56
  });
57
57
  Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
58
58
  enumerable: true,
59
- get: function () { return chunkMZ47MV52_js.AVATAR_COLOR_SWATCHES; }
59
+ get: function () { return chunkRZYOOWZN_js.AVATAR_COLOR_SWATCHES; }
60
60
  });
61
61
  Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
62
62
  enumerable: true,
63
- get: function () { return chunkMZ47MV52_js.DEFAULT_VIEWER_PROFILE; }
63
+ get: function () { return chunkRZYOOWZN_js.DEFAULT_VIEWER_PROFILE; }
64
64
  });
65
65
  Object.defineProperty(exports, "SLIDE_TEMPLATES", {
66
66
  enumerable: true,
67
- get: function () { return chunkMZ47MV52_js.SLIDE_TEMPLATES; }
67
+ get: function () { return chunkRZYOOWZN_js.SLIDE_TEMPLATES; }
68
68
  });
69
69
  Object.defineProperty(exports, "THEME_CATALOG", {
70
70
  enumerable: true,
71
- get: function () { return chunkMZ47MV52_js.THEME_CATALOG; }
71
+ get: function () { return chunkRZYOOWZN_js.THEME_CATALOG; }
72
72
  });
73
73
  Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
74
74
  enumerable: true,
75
- get: function () { return chunkMZ47MV52_js.VIEWER_PREFS_STORAGE_KEY; }
75
+ get: function () { return chunkRZYOOWZN_js.VIEWER_PREFS_STORAGE_KEY; }
76
76
  });
77
77
  Object.defineProperty(exports, "buildSlideTemplateContent", {
78
78
  enumerable: true,
79
- get: function () { return chunkMZ47MV52_js.buildSlideTemplateContent; }
79
+ get: function () { return chunkRZYOOWZN_js.buildSlideTemplateContent; }
80
80
  });
81
81
  Object.defineProperty(exports, "buildSlideTemplateSlide", {
82
82
  enumerable: true,
83
- get: function () { return chunkMZ47MV52_js.buildSlideTemplateSlide; }
83
+ get: function () { return chunkRZYOOWZN_js.buildSlideTemplateSlide; }
84
84
  });
85
85
  Object.defineProperty(exports, "clearAllLocalViewerData", {
86
86
  enumerable: true,
87
- get: function () { return chunkMZ47MV52_js.clearAllLocalViewerData; }
87
+ get: function () { return chunkRZYOOWZN_js.clearAllLocalViewerData; }
88
88
  });
89
89
  Object.defineProperty(exports, "clearStoredViewerPrefs", {
90
90
  enumerable: true,
91
- get: function () { return chunkMZ47MV52_js.clearStoredViewerPrefs; }
91
+ get: function () { return chunkRZYOOWZN_js.clearStoredViewerPrefs; }
92
92
  });
93
93
  Object.defineProperty(exports, "defaultCssVars", {
94
94
  enumerable: true,
95
- get: function () { return chunkMZ47MV52_js.defaultCssVars; }
95
+ get: function () { return chunkRZYOOWZN_js.defaultCssVars; }
96
96
  });
97
97
  Object.defineProperty(exports, "defaultRadius", {
98
98
  enumerable: true,
99
- get: function () { return chunkMZ47MV52_js.defaultRadius; }
99
+ get: function () { return chunkRZYOOWZN_js.defaultRadius; }
100
100
  });
101
101
  Object.defineProperty(exports, "defaultThemeColors", {
102
102
  enumerable: true,
103
- get: function () { return chunkMZ47MV52_js.defaultThemeColors; }
103
+ get: function () { return chunkRZYOOWZN_js.defaultThemeColors; }
104
104
  });
105
105
  Object.defineProperty(exports, "getLocalStorageUsageSummary", {
106
106
  enumerable: true,
107
- get: function () { return chunkMZ47MV52_js.getLocalStorageUsageSummary; }
107
+ get: function () { return chunkRZYOOWZN_js.getLocalStorageUsageSummary; }
108
108
  });
109
109
  Object.defineProperty(exports, "readStoredViewerPrefs", {
110
110
  enumerable: true,
111
- get: function () { return chunkMZ47MV52_js.readStoredViewerPrefs; }
111
+ get: function () { return chunkRZYOOWZN_js.readStoredViewerPrefs; }
112
112
  });
113
113
  Object.defineProperty(exports, "resolveProfileInitial", {
114
114
  enumerable: true,
115
- get: function () { return chunkMZ47MV52_js.resolveProfileInitial; }
115
+ get: function () { return chunkRZYOOWZN_js.resolveProfileInitial; }
116
116
  });
117
117
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
118
118
  enumerable: true,
119
- get: function () { return chunkMZ47MV52_js.resolveThemeCatalogEntry; }
119
+ get: function () { return chunkRZYOOWZN_js.resolveThemeCatalogEntry; }
120
120
  });
121
121
  Object.defineProperty(exports, "saveViewerProfile", {
122
122
  enumerable: true,
123
- get: function () { return chunkMZ47MV52_js.saveViewerProfile; }
123
+ get: function () { return chunkRZYOOWZN_js.saveViewerProfile; }
124
124
  });
125
125
  Object.defineProperty(exports, "themeToCssVars", {
126
126
  enumerable: true,
127
- get: function () { return chunkMZ47MV52_js.themeToCssVars; }
127
+ get: function () { return chunkRZYOOWZN_js.themeToCssVars; }
128
128
  });
129
129
  Object.defineProperty(exports, "vermilionDarkColors", {
130
130
  enumerable: true,
131
- get: function () { return chunkMZ47MV52_js.vermilionDarkColors; }
131
+ get: function () { return chunkRZYOOWZN_js.vermilionDarkColors; }
132
132
  });
133
133
  Object.defineProperty(exports, "vermilionDarkTheme", {
134
134
  enumerable: true,
135
- get: function () { return chunkMZ47MV52_js.vermilionDarkTheme; }
135
+ get: function () { return chunkRZYOOWZN_js.vermilionDarkTheme; }
136
136
  });
137
137
  Object.defineProperty(exports, "vermilionLightColors", {
138
138
  enumerable: true,
139
- get: function () { return chunkMZ47MV52_js.vermilionLightColors; }
139
+ get: function () { return chunkRZYOOWZN_js.vermilionLightColors; }
140
140
  });
141
141
  Object.defineProperty(exports, "vermilionLightTheme", {
142
142
  enumerable: true,
143
- get: function () { return chunkMZ47MV52_js.vermilionLightTheme; }
143
+ get: function () { return chunkRZYOOWZN_js.vermilionLightTheme; }
144
144
  });
145
145
  Object.defineProperty(exports, "vermilionRadius", {
146
146
  enumerable: true,
147
- get: function () { return chunkMZ47MV52_js.vermilionRadius; }
147
+ get: function () { return chunkRZYOOWZN_js.vermilionRadius; }
148
148
  });
149
149
  Object.defineProperty(exports, "writeStoredViewerPrefs", {
150
150
  enumerable: true,
151
- get: function () { return chunkMZ47MV52_js.writeStoredViewerPrefs; }
151
+ get: function () { return chunkRZYOOWZN_js.writeStoredViewerPrefs; }
152
152
  });
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-GSAOP4Z4.mjs';
2
- import './chunk-J4QZVO3S.mjs';
3
- export { renderToCanvas, useViewerBuildingBlocks } from './chunk-LLTUDPRE.mjs';
4
- export { getAnimationInitialStyle } from './chunk-PLBS7OL2.mjs';
1
+ export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-YZHBUMVU.mjs';
2
+ import './chunk-VDQD3ZOU.mjs';
3
+ export { renderToCanvas, useViewerBuildingBlocks } from './chunk-NI5GSVZU.mjs';
4
+ export { getAnimationInitialStyle } from './chunk-6F76GHPE.mjs';
5
5
  export { LOCALE_CATALOG } from './chunk-5IUEPQTK.mjs';
6
- export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-23WSCMWN.mjs';
6
+ export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-PUBYHZYJ.mjs';
7
7
  import './chunk-XGB3TDIC.mjs';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -1938,6 +1938,17 @@ interface PlaceholderTextLevelStyle {
1938
1938
  bold?: boolean;
1939
1939
  italic?: boolean;
1940
1940
  color?: string;
1941
+ /**
1942
+ * The `a:defRPr/a:solidFill` node this level's {@link color} came from.
1943
+ *
1944
+ * Master and layout text styles are parsed and cached before any slide is,
1945
+ * so a scheme alias such as `tx1` was resolved through the map that was
1946
+ * active then. A slide carrying `p:clrMapOvr` routes the same alias
1947
+ * somewhere else, so the alias has to be resolved again against the slide
1948
+ * that is inheriting it; {@link color} is only the reading taken at parse
1949
+ * time. Absent when the level declares no colour, or declares a literal one.
1950
+ */
1951
+ colorChoiceXml?: XmlObject;
1941
1952
  bulletChar?: string;
1942
1953
  bulletAutoNumType?: string;
1943
1954
  bulletFontFamily?: string;
@@ -3715,6 +3726,12 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
3715
3726
  skewX?: number;
3716
3727
  /** Skew along the Y axis in degrees. */
3717
3728
  skewY?: number;
3729
+ /**
3730
+ * The cached shape declares `a:noFill`. Renderers must leave it unpainted
3731
+ * rather than substituting a palette colour, because these shapes usually sit
3732
+ * on top of a painted shape whose fill has to stay visible.
3733
+ */
3734
+ fillNone?: boolean;
3718
3735
  /** Solid fill colour (hex). */
3719
3736
  fillColor?: string;
3720
3737
  /**
@@ -8640,10 +8657,16 @@ interface MorphTransitionPlan {
8640
8657
  overlayIncomingElements: PptxElement[];
8641
8658
  /**
8642
8659
  * The outgoing slide's elements, in document order, for the binding to
8643
- * render in its transition overlay for the duration of the morph. Each one
8644
- * carries an entry in {@link MorphTransitionPlan.outgoingAnimations}: it
8645
- * either fades out in place (no counterpart) or glides onto its counterpart,
8646
- * dissolving into it when the appearance changed.
8660
+ * render in its transition overlay for the duration of the morph. Most carry
8661
+ * an entry in {@link MorphTransitionPlan.outgoingAnimations}: they either
8662
+ * fade out in place (no counterpart) or glide onto a counterpart, dissolving
8663
+ * into it when the appearance changed.
8664
+ *
8665
+ * A ghost standing in for an INERT pair deliberately has no entry there and
8666
+ * is painted statically. Its keyframes would run from itself to itself, and
8667
+ * a running animation would put it on its own compositing layer, whose
8668
+ * raster the browser snaps to whole device pixels - visibly shifting a shape
8669
+ * that is not supposed to move at all (issue #161).
8647
8670
  *
8648
8671
  * This is a SUBSET of the outgoing slide: a shape the live stage already
8649
8672
  * draws identically is left out, because the overlay is opaque above it and
@@ -9464,6 +9487,8 @@ interface ToolbarProps {
9464
9487
  name: string;
9465
9488
  }>;
9466
9489
  onInsertSlideFromLayout: (path: string, name?: string) => void;
9490
+ /** Re-map the active slide onto another of its master's layouts. */
9491
+ onApplyLayout?: (path: string) => void;
9467
9492
  /** Insert a pre-designed starter slide from the template gallery. */
9468
9493
  onInsertSlideFromTemplate?: (templateId: SlideTemplateId) => void;
9469
9494
  /** Deck scheme map so template gallery previews show the deck theme. */
@@ -12035,6 +12060,14 @@ interface UseLayoutSwitchingInput {
12035
12060
  ops: ElementOperations;
12036
12061
  /** Editor history for marking dirty state. */
12037
12062
  history: EditorHistoryResult;
12063
+ /**
12064
+ * Called with the slide's refreshed layout / master artwork after a switch.
12065
+ *
12066
+ * The viewer keeps that artwork outside `slide.elements`, so nothing else
12067
+ * would notice the relationship change and the canvas would keep painting the
12068
+ * previous layout until the file was reopened.
12069
+ */
12070
+ onTemplateElementsChanged?: (slideId: string, elements: PptxElement[]) => void;
12038
12071
  }
12039
12072
  /**
12040
12073
  * Result returned by {@link useLayoutSwitching}.