pptx-react-viewer 4.32.0 → 4.33.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +3 -2
  3. package/dist/{AiChatPanel-H6ULCALE.mjs → AiChatPanel-CYD46SEM.mjs} +1 -1
  4. package/dist/AiChatPanel-CYD46SEM.mjs.br +0 -0
  5. package/dist/AiChatPanel-CYD46SEM.mjs.gz +0 -0
  6. package/dist/{AiChatPanel-4JU6JFZT.js → AiChatPanel-ONHWZEPV.js} +9 -9
  7. package/dist/AiChatPanel-ONHWZEPV.js.br +0 -0
  8. package/dist/AiChatPanel-ONHWZEPV.js.gz +0 -0
  9. package/dist/{chunk-5O6SSO3K.mjs → chunk-2OIJUZD5.mjs} +8 -3
  10. package/dist/chunk-2OIJUZD5.mjs.br +0 -0
  11. package/dist/chunk-2OIJUZD5.mjs.gz +0 -0
  12. package/dist/{chunk-ZM4QAOFK.js → chunk-7DGKSEIU.js} +4 -9
  13. package/dist/chunk-7DGKSEIU.js.br +0 -0
  14. package/dist/chunk-7DGKSEIU.js.gz +0 -0
  15. package/dist/{chunk-OE5UAZ2Y.mjs → chunk-GSMY5BTO.mjs} +99 -38
  16. package/dist/chunk-GSMY5BTO.mjs.br +0 -0
  17. package/dist/chunk-GSMY5BTO.mjs.gz +0 -0
  18. package/dist/{chunk-NF6QQBYI.js → chunk-JHYNVFFS.js} +1355 -1294
  19. package/dist/chunk-JHYNVFFS.js.br +0 -0
  20. package/dist/chunk-JHYNVFFS.js.gz +0 -0
  21. package/dist/{chunk-BLTSLCCE.mjs → chunk-K4UXDQZ6.mjs} +4 -9
  22. package/dist/chunk-K4UXDQZ6.mjs.br +0 -0
  23. package/dist/chunk-K4UXDQZ6.mjs.gz +0 -0
  24. package/dist/{chunk-OAB7K6VH.js → chunk-TVSTM5J5.js} +252 -247
  25. package/dist/chunk-TVSTM5J5.js.br +0 -0
  26. package/dist/chunk-TVSTM5J5.js.gz +0 -0
  27. package/dist/index.d.ts +19 -1
  28. package/dist/index.js +24 -24
  29. package/dist/index.js.br +0 -0
  30. package/dist/index.js.gz +0 -0
  31. package/dist/index.mjs +3 -3
  32. package/dist/index.mjs.br +0 -0
  33. package/dist/index.mjs.gz +0 -0
  34. package/dist/internals.js +81 -81
  35. package/dist/internals.js.br +0 -0
  36. package/dist/internals.js.gz +0 -0
  37. package/dist/internals.mjs +2 -2
  38. package/dist/internals.mjs.br +0 -0
  39. package/dist/internals.mjs.gz +0 -0
  40. package/dist/viewer/index.d.ts +19 -1
  41. package/dist/viewer/index.js +19 -19
  42. package/dist/viewer/index.js.br +0 -0
  43. package/dist/viewer/index.js.gz +0 -0
  44. package/dist/viewer/index.mjs +3 -3
  45. package/dist/viewer/index.mjs.br +0 -0
  46. package/dist/viewer/index.mjs.gz +0 -0
  47. package/package.json +4 -4
  48. package/dist/AiChatPanel-4JU6JFZT.js.br +0 -0
  49. package/dist/AiChatPanel-4JU6JFZT.js.gz +0 -0
  50. package/dist/AiChatPanel-H6ULCALE.mjs.br +0 -0
  51. package/dist/AiChatPanel-H6ULCALE.mjs.gz +0 -0
  52. package/dist/chunk-5O6SSO3K.mjs.br +0 -0
  53. package/dist/chunk-5O6SSO3K.mjs.gz +0 -0
  54. package/dist/chunk-BLTSLCCE.mjs.br +0 -0
  55. package/dist/chunk-BLTSLCCE.mjs.gz +0 -0
  56. package/dist/chunk-NF6QQBYI.js.br +0 -0
  57. package/dist/chunk-NF6QQBYI.js.gz +0 -0
  58. package/dist/chunk-OAB7K6VH.js.br +0 -0
  59. package/dist/chunk-OAB7K6VH.js.gz +0 -0
  60. package/dist/chunk-OE5UAZ2Y.mjs.br +0 -0
  61. package/dist/chunk-OE5UAZ2Y.mjs.gz +0 -0
  62. package/dist/chunk-ZM4QAOFK.js.br +0 -0
  63. package/dist/chunk-ZM4QAOFK.js.gz +0 -0
@@ -1,8 +1,8 @@
1
- import { useViewerOptions, useReadOnlyRecommendationState, useCompatibilityToastsState, useReducedMotion, useViewerState, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useViewPreferencesSync, useLayoutSwitching, Rendering3DFlagsContext, CollaborationProvider, useCollaboration, useCollaborationDocumentSync, useFollowMode, useBroadcastFollower, SlideBackgroundImageLayer, StaticElementRenderer, safePrompt, scopeLayoutOptionsToActiveSlide, ChartPartSelectionProvider, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, ViewerOptionsStoreContext, ViewerOptionsContext, useViewerOptionsContext, useVirtualizedSlides, useSwipeNavigation, PresentationTransitionOverlay, RemoteSelectionOverlay, CollaborationCursorOverlay, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, ElementRenderer, InlineCollaborationContext, SmartArtRenderer, downloadBlob, playAnimationSound, ResizeHandles, imgSrc, renderStrokeView, useChartPartSelection, DUOTONE_PRESETS, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, resolveSmartArtDataPalette } from './chunk-5O6SSO3K.mjs';
2
- import { ANIMATION_PRESET_OPTIONS, dist_exports, cn, SLIDE_NAV_THUMBNAIL_WIDTH, SLIDE_TRANSITION_OPTIONS, normalizeHexColor, hasCopyableFormat, DEFAULT_SECTION_GROUP_ID, safeOpenUrl, isPpactionUrl, parsePpactionUrl, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, TOOLBAR_SECTIONS, isUrlSafe, computeHandoutLayout, getPrintableArea, generateNoteLineCount, UNGROUPED_SECTION_ID, getShapeAdjustmentHandleDescriptors, isConnectorOrLineElement, GRID_SIZE, getElementTransformWithoutRotation, getElementTransform, MIN_ELEMENT_SIZE, getElementLabel, TABLE_STYLE_PRESETS, SHAPE_PRESETS, sanitizeGradientStops, formatCommentTimestamp, clampCropValue, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, DEFAULT_FILL_COLOR, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, SHAPE_QUICK_STYLES, getPatternSvg, DEFAULT_STROKE_COLOR, STROKE_DASH_OPTIONS, openNativeEyeDropper } from './chunk-BLTSLCCE.mjs';
3
- import { EMPTY_RESOLVED_CUSTOMIZATION, ANIMATION_DIRECTION_LABEL_KEYS, compileEquationTemplateMathMl, resolveViewerRootOptions, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, isFeatureEnabled, isDialogAvailable, resolveAutosaveActivation, viewerOptionsToPreferences, applyPreferenceToOptions, resolveHistoryDepth, attachViewerHyperlinks, shouldConfirmExternalHyperlink, applyAutoCorrect, resolveImageResolutionScale, resolveAutosaveIntervalMs, resolveAutosaveIntervalSeconds, isPanelVisible, shouldShowAutosaveRecoveryPrompt, resolveOptionRootClasses, RIBBON_SCOPE_ATTR, resolve3DRenderingFlags, resolveSlideSizeSelection, RULER_THICKNESS, RULER_FONT_SIZE, editorThumbnailHeight, buildPreviewElements, deriveSlideFieldContext, deviceStrokeStageStyle, hiddenSlideCue, EDITOR_THUMBNAIL_WIDTH, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, visibleTemplateElements, themeToCssVars, createCustomizationController, resolveEffectiveHiddenActions, listAutosaveSnapshots, resolveExpiredAutosaveSnapshots, deleteAutosaveSnapshot, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, EDITOR_CHROME_CSS, ribbonCustomizationCss, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, printPropertiesFrameSlides, printPropertiesSlidesPerPage, PASTE_SPECIAL_OPTIONS, findCanvasElementNode, getDensePanelTouchTargetPx, shouldStickyActionRow, customizeOptionsTabs, VIEWER_OPTIONS_TABS, isOptionsPageVisible, DEFAULT_QUICK_ACCESS_COMMAND_IDS, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, shouldClearAutosaveCacheOnClose, canCropElement, cropSessionChanged, cancelCropUpdate, startCropSession, homeLaunchers, attachRibbonOverflow, editorThumbnailWidth, masterViewBackgroundColor, buildFieldSubstitutionContext, resolvePresentationAction, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, resolveEditPointsAvailability, isCurrentLayout, observeElementHeight, EXPANDED_MAX_HEIGHT, resolveStatusBarSave, statusBarViewMode, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, 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, cropModeKeyAction, buildTitleBarState, resolveScreenTip, visibleContextualTabs, resolveActiveRibbonTab, contextualTabLabelKey, RIBBON_CONTEXTUAL_TAB_ATTR, buildTabRowActionsState, TAB_ROW_ACTION_CLASSES, tabRowActionsAttributes, customizeBackstageNav, BACKSTAGE_NAV, listBackstageRecentFiles, BACKSTAGE_BACK_CLASSES, BACKSTAGE_NAV_CLASSES, FREEFORM_TOOL_IDS, isDrawingToolVisible, textFontSizePtToPx, withHomeGalleries, drawingHomeControls, homeGalleryControls, homeGalleryApply, shapeOutlineChange, shapeFillChange, editingHomeControls, arrangeHomeControls, arrangePainterHomeControls, arrangeAlignAction, DESIGN_RIBBON_GROUPS, DESIGN_RIBBON_COMMANDS, designCommandState, FIXED_TAB_GALLERIES, CONTEXTUAL_TAB_GROUPS, editorThumbnailStep, resolveSlidePaneClick, SLIDE_VIRTUALIZATION_THRESHOLD, buildSectionContextMenuEntries, buildSlidePaneContextMenuEntries, slidePaneViewItems, isEditPointsEnabled, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, buildStrokePathD, cursorForTool, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, PRESENTER_NAVIGATOR_LABEL_KEYS, getPresentationContextMenuSections, CONTEXT_MENU_PRESENTATION_LAYER, presentationViewItems, subtitleRecognitionLanguage, subtitleSettingsFromOptions, getSpeechRecognitionCtor, mergeCaptionResults, customizeContextMenuEntries, buildContextMenuEntries, contextMenuViewItems, customizeCanvasContextMenuEntries, buildCanvasContextMenuEntries, buildLayoutPreviewGeometry, scaleSlidesForSizeChange, slideSizeToCanvasPx, resolveSelectionPaneRename, themeEditorLabels, resolveNotesSegments, defaultRichEnabled, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX as INDENT_PX$1, buildNotesPrintHtml, MIN_TOUCH_TARGET_PX, toggleSheet, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeAllNotesPages, getNotesPrintableArea, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, createSlideSorterState, sorterSelectionIndexes, selectSorterSlide, applySorterAction, slideSorterPasteIndexes, sorterGridColumns, sorterMenuContext, buildSlideSorterContextMenuEntries, slideSorterContextMenuLabel, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, presenterConsoleAction, presenterConsoleViewState, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, customizeBackstageCards, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, clipboardHomeControls, slidesHomeControls, resolveDefaultFontFamily, textFontSizePxToPt, getInlineEditorSelectionResult, selectedParagraphBulletKind, elementBulletKind, selectionBulletKind, fontPickerHomeControls, fontHomeControls, nextToggleValue, RIBBON_GROUP_ATTR, paragraphHomeAlign, paragraphHomeControls, paragraphHomeAction, arrangeShapeHomeControls, strokeWidthOf, canSetStrokeWidth, canUngroupSelection, canGroupSelection, parseCropValue, buildRibbonGallery, readRibbonTransitionDraft, SLIDE_SHOW_COMMAND_GROUPS, RECORD_COMMAND_GROUPS, buildReviewRibbon, HELP_RIBBON_COMMANDS, galleryTextLabel, sectionAddAfterSlideIndex, masterViewPseudoSlide, PRESENTATION_ANIM_TRIGGER_ATTRIBUTE, parentSelection, slideSpaceElement, isGroupMember, motionPathFor, setMotionPath, shouldShowElementHandles, computeAnchoredPopupPosition, applyTableStyleDelete, applyTableStyleMapChange, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, SLIDE_TEMPLATES, getSelectionTextStyleFlags, TEXT_DECORATION_FLAGS, applyRibbonGalleryItem, ribbonTransitionsDraftPatch, ribbonTransitionUpdates, ribbonTransitionsSoundChange, ribbonTransitionStockSoundUrl, playSlideTransitionPreview, playAnimationRibbonPreview, SLIDE_SHOW_OPTIONS, createViewerOptionsStore, subtitleSettingsLabels, attachEditorImagePaste, authorConnectorBetweenSites, findEraserHitElementId, generateTicks, rulerDragToGuidePosition, resolveElementInteractivity, buildChartQuickActionsDescriptor, applyChartElementToggle, CHART_QUICK_ACTION_BUTTON_SIZE, applyChartStylePreset, hideChartSeries, restoreFilteredSeries, buildCropOverlay, CROP_HANDLE_ARIA_KEY, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, canEditElementPoints, MERGE_SHAPES_MENU_ITEMS, hasMultipleSelectedTableCells, isElementLocked, mergeSlideTransition, slideBackgroundClearState, slideBackgroundClearPatch, effectiveDirection, TRIGGER_OPTIONS, effectiveTimingCurve, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildSlideTemplateContent, updateSubtitleSettings, buildFreeformShapeElement, buildLiveInkStrokeView, beginCropDrag, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, FreeformToolSession, attachOverlayKeyboard, EditPointsSession, EDIT_POINTS_STYLE, elementLockTogglePatch, buildTableDataGrid, getDenseGridLayoutPlan, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, applyTableStylePreset, tableStyleAssignmentUpdate, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, collapseChartTitleRunsForEdit, chartGridlinesState, chartGridlinesPatch, seriesSecondaryAxisPatch, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setDataLabelsRangeCache, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, imageResetPatch, imageResetState, canInteractWithElement, buildOleObjectNamePatch, shouldShowAccessibilitySection, withFrameSlides, withSlidesPerPage, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, SLIDE_SIZE_PRESETS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, TRANSITION_SPEED_OPTIONS, TRANSITION_MORPH_OPTIONS, flattenTagCollections, resolveTemplateBackgroundRows, commentMentionQuery, matchCommentMentionAuthors, buildAnimationTimelineRows, clearMotionPath, setTrigger, setTriggerBookmark, getEffectSoundState, setEffectSound, setEffectStockSound, setAfterAnimation, setAfterAnimationColor, directionValuesFor, buildAnimationTimelineBars, motionPathPresetIdForPath, MOTION_PATH_FAMILIES, motionPathPresetsByFamily, motionPathPresetLabelKey, motionPathFamilyLabelKey, EFFECT_SOUND_CATALOGUE, listMediaBookmarkOptions, selectedBookmarkOptionValue, hasTiltData, toElementAxes, dragCropHandle, panCropImage, clientToSlidePoint, EDIT_POINTS_TARGET_ATTR, describeTableStyleEditor, TABLE_STYLE_EDITOR_PARTS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, resolveDisplayedChartType, CHART_TYPE_OPTIONS, chartDataLabelsTogglePatch, BAR3D_SHAPE_OPTIONS, bar3DShapePatch, RADAR_STYLE_OPTIONS, radarStylePatch, SURFACE_WIREFRAME_OPTIONS, surfaceWireframePatch, isSeriesUsingSecondaryAxis, seriesColorClearState, listChartUserShapeRows, withChartUserShapeAdded, createDefaultChartUserShape, withChartUserShapeRowRemoved, withChartUserShapeRowTextUpdated, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSiblingAfter, removeEmptyNode, demote, promote, reorder, cropResetState, cropResetPatch, ARTISTIC_EFFECTS, mediaTrimEndSeconds, trimmedMediaDurationMs, mediaTrimEndAbsoluteMs, mediaTrimResetState, mediaTrimEndMsFromAbsoluteMs, mediaTrimResetPatch, buildOleEditDialogDescriptor, buildOleContentUpdatePatch, buildThemeColorSwatchGrid, themeColorSwatchRows, findSelectedThemeSwatch, themeSwatchCommit, getNonVisualDescriptionFields, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, insertCommentMention, reorderAnimationTimelineRows, applyAnimationTimelineOrder, getEffectSoundAsset, animationEffectLabel, overlayPointerInput, TABLE_STYLE_BORDER_SIDES, applyTableStyleFieldEdit, withCellStyle, LBL as LBL$1, SEL as SEL$1, FILL_MODE_OPTIONS as FILL_MODE_OPTIONS$1, SECTION_HEADING, NUM as NUM$1, getChartUserShapeGroupTransform, withChartUserShapeGroupChildAdded, createDefaultChartUserShapeGroupChild, withChartUserShapeRowUpdated, getChartUserShapeRowChartBox, withChartUserShapeRowFlipUpdated, withChartUserShapeRowRotationUpdated, withChartUserShapeRowChartBoxUpdated, smartArtLayoutSwitchPatch, rebuildDrawingShapesIfCleared, mediaTrimEndMsFromSeconds, validateMediaTrimRange, quickStyleSwatchCss, OFFICE_COLOR_SWATCHES, PATTERN_PRESET_OPTIONS as PATTERN_PRESET_OPTIONS$1, COMPOUND_LINE_OPTIONS as COMPOUND_LINE_OPTIONS$1, LINE_JOIN_OPTIONS as LINE_JOIN_OPTIONS$1, LINE_CAP_OPTIONS as LINE_CAP_OPTIONS$1, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, toSlideIndex, TABLE_STYLE_BORDER_SIDE_LABEL_KEYS, TABLE_STYLE_DASH_PRESETS, GRADIENT_TYPE_OPTIONS as GRADIENT_TYPE_OPTIONS$1, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, toggleText3dExtrusion, BEVEL_PRESETS, cropFit, cropFill, cropToAspectRatio } from 'ooxml-ui/pptx';
1
+ import { useViewerOptions, useReadOnlyRecommendationState, useCompatibilityToastsState, useReducedMotion, useViewerState, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useViewPreferencesSync, useLayoutSwitching, Rendering3DFlagsContext, CollaborationProvider, useCollaboration, useCollaborationDocumentSync, useFollowMode, useBroadcastFollower, SlideBackgroundImageLayer, StaticElementRenderer, safePrompt, scopeLayoutOptionsToActiveSlide, ChartPartSelectionProvider, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, ViewerOptionsStoreContext, ViewerOptionsContext, useViewerOptionsContext, useVirtualizedSlides, useSwipeNavigation, PresentationTransitionOverlay, RemoteSelectionOverlay, CollaborationCursorOverlay, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, ElementRenderer, InlineCollaborationContext, SmartArtRenderer, downloadBlob, playAnimationSound, ResizeHandles, imgSrc, renderStrokeView, useChartPartSelection, DUOTONE_PRESETS, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, resolveSmartArtDataPalette } from './chunk-2OIJUZD5.mjs';
2
+ import { ANIMATION_PRESET_OPTIONS, dist_exports, cn, SLIDE_NAV_THUMBNAIL_WIDTH, SLIDE_TRANSITION_OPTIONS, normalizeHexColor, hasCopyableFormat, DEFAULT_SECTION_GROUP_ID, safeOpenUrl, isPpactionUrl, parsePpactionUrl, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, TOOLBAR_SECTIONS, isUrlSafe, computeHandoutLayout, getPrintableArea, generateNoteLineCount, UNGROUPED_SECTION_ID, getShapeAdjustmentHandleDescriptors, isConnectorOrLineElement, GRID_SIZE, getElementTransformWithoutRotation, getElementTransform, MIN_ELEMENT_SIZE, getElementLabel, TABLE_STYLE_PRESETS, SHAPE_PRESETS, sanitizeGradientStops, formatCommentTimestamp, clampCropValue, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, DEFAULT_FILL_COLOR, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, SHAPE_QUICK_STYLES, getPatternSvg, DEFAULT_STROKE_COLOR, STROKE_DASH_OPTIONS, openNativeEyeDropper } from './chunk-K4UXDQZ6.mjs';
3
+ import { EMPTY_RESOLVED_CUSTOMIZATION, ANIMATION_DIRECTION_LABEL_KEYS, compileEquationTemplateMathMl, resolveViewerRootOptions, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, isFeatureEnabled, isDialogAvailable, resolveAutosaveActivation, viewerOptionsToPreferences, applyPreferenceToOptions, resolveHistoryDepth, attachViewerHyperlinks, shouldConfirmExternalHyperlink, applyAutoCorrect, resolveImageResolutionScale, resolveAutosaveIntervalMs, resolveAutosaveIntervalSeconds, isPanelVisible, shouldShowAutosaveRecoveryPrompt, resolveOptionRootClasses, RIBBON_SCOPE_ATTR, resolve3DRenderingFlags, resolveSlideSizeSelection, RULER_THICKNESS, RULER_FONT_SIZE, editorThumbnailHeight, buildPreviewElements, deriveSlideFieldContext, deviceStrokeStageStyle, hiddenSlideCue, EDITOR_THUMBNAIL_WIDTH, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, visibleTemplateElements, themeToCssVars, createCustomizationController, resolveEffectiveHiddenActions, listAutosaveSnapshots, resolveExpiredAutosaveSnapshots, deleteAutosaveSnapshot, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, EDITOR_CHROME_CSS, ribbonCustomizationCss, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, printPropertiesFrameSlides, printPropertiesSlidesPerPage, PASTE_SPECIAL_OPTIONS, findCanvasElementNode, getDensePanelTouchTargetPx, shouldStickyActionRow, customizeOptionsTabs, VIEWER_OPTIONS_TABS, isOptionsPageVisible, DEFAULT_QUICK_ACCESS_COMMAND_IDS, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, shouldClearAutosaveCacheOnClose, canCropElement, cropSessionChanged, cancelCropUpdate, startCropSession, homeLaunchers, attachRibbonOverflow, editorThumbnailWidth, masterViewBackgroundColor, buildFieldSubstitutionContext, resolvePresentationAction, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, resolveEditPointsAvailability, isCurrentLayout, observeElementHeight, EXPANDED_MAX_HEIGHT, resolveStatusBarSave, statusBarViewMode, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, 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, cropModeKeyAction, buildTitleBarState, resolveScreenTip, visibleContextualTabs, resolveActiveRibbonTab, visibleRibbonAddIns, RIBBON_ADD_IN_TAB_ATTR, contextualTabLabelKey, RIBBON_CONTEXTUAL_TAB_ATTR, buildTabRowActionsState, TAB_ROW_ACTION_CLASSES, tabRowActionsAttributes, customizeBackstageNav, BACKSTAGE_NAV, listBackstageRecentFiles, BACKSTAGE_BACK_CLASSES, BACKSTAGE_NAV_CLASSES, FREEFORM_TOOL_IDS, isDrawingToolVisible, textFontSizePtToPx, withHomeGalleries, drawingHomeControls, homeGalleryControls, homeGalleryApply, shapeOutlineChange, shapeFillChange, editingHomeControls, arrangeHomeControls, arrangePainterHomeControls, arrangeAlignAction, DESIGN_RIBBON_GROUPS, DESIGN_RIBBON_COMMANDS, designCommandState, FIXED_TAB_GALLERIES, CONTEXTUAL_TAB_GROUPS, editorThumbnailStep, resolveSlidePaneClick, SLIDE_VIRTUALIZATION_THRESHOLD, buildSectionContextMenuEntries, buildSlidePaneContextMenuEntries, slidePaneViewItems, isEditPointsEnabled, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, buildStrokePathD, cursorForTool, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, PRESENTER_NAVIGATOR_LABEL_KEYS, getPresentationContextMenuSections, CONTEXT_MENU_PRESENTATION_LAYER, presentationViewItems, subtitleRecognitionLanguage, subtitleSettingsFromOptions, getSpeechRecognitionCtor, mergeCaptionResults, customizeContextMenuEntries, buildContextMenuEntries, contextMenuViewItems, customizeCanvasContextMenuEntries, buildCanvasContextMenuEntries, buildLayoutPreviewGeometry, scaleSlidesForSizeChange, slideSizeToCanvasPx, resolveSelectionPaneRename, themeEditorLabels, resolveNotesSegments, defaultRichEnabled, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX as INDENT_PX$1, buildNotesPrintHtml, MIN_TOUCH_TARGET_PX, toggleSheet, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeAllNotesPages, getNotesPrintableArea, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, createSlideSorterState, sorterSelectionIndexes, selectSorterSlide, applySorterAction, slideSorterPasteIndexes, sorterGridColumns, sorterMenuContext, buildSlideSorterContextMenuEntries, slideSorterContextMenuLabel, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, presenterConsoleAction, presenterConsoleViewState, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, customizeBackstageCards, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, clipboardHomeControls, slidesHomeControls, resolveDefaultFontFamily, textFontSizePxToPt, getInlineEditorSelectionResult, selectedParagraphBulletKind, elementBulletKind, selectionBulletKind, fontPickerHomeControls, fontHomeControls, nextToggleValue, RIBBON_GROUP_ATTR, paragraphHomeAlign, paragraphHomeControls, paragraphHomeAction, arrangeShapeHomeControls, strokeWidthOf, canSetStrokeWidth, canUngroupSelection, canGroupSelection, parseCropValue, buildRibbonGallery, readRibbonTransitionDraft, SLIDE_SHOW_COMMAND_GROUPS, RECORD_COMMAND_GROUPS, buildReviewRibbon, HELP_RIBBON_COMMANDS, galleryTextLabel, sectionAddAfterSlideIndex, masterViewPseudoSlide, PRESENTATION_ANIM_TRIGGER_ATTRIBUTE, parentSelection, slideSpaceElement, isGroupMember, motionPathFor, setMotionPath, shouldShowElementHandles, computeAnchoredPopupPosition, applyTableStyleDelete, applyTableStyleMapChange, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, SLIDE_TEMPLATES, getSelectionTextStyleFlags, TEXT_DECORATION_FLAGS, applyRibbonGalleryItem, ribbonTransitionsDraftPatch, ribbonTransitionUpdates, ribbonTransitionsSoundChange, ribbonTransitionStockSoundUrl, playSlideTransitionPreview, playAnimationRibbonPreview, SLIDE_SHOW_OPTIONS, createViewerOptionsStore, subtitleSettingsLabels, attachEditorImagePaste, authorConnectorBetweenSites, findEraserHitElementId, generateTicks, rulerDragToGuidePosition, resolveElementInteractivity, buildChartQuickActionsDescriptor, applyChartElementToggle, CHART_QUICK_ACTION_BUTTON_SIZE, applyChartStylePreset, hideChartSeries, restoreFilteredSeries, buildCropOverlay, CROP_HANDLE_ARIA_KEY, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, canEditElementPoints, MERGE_SHAPES_MENU_ITEMS, hasMultipleSelectedTableCells, isElementLocked, mergeSlideTransition, slideBackgroundClearState, slideBackgroundClearPatch, effectiveDirection, TRIGGER_OPTIONS, effectiveTimingCurve, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildSlideTemplateContent, updateSubtitleSettings, buildFreeformShapeElement, buildLiveInkStrokeView, beginCropDrag, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, FreeformToolSession, attachOverlayKeyboard, EditPointsSession, EDIT_POINTS_STYLE, elementLockTogglePatch, buildTableDataGrid, getDenseGridLayoutPlan, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, applyTableStylePreset, tableStyleAssignmentUpdate, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, collapseChartTitleRunsForEdit, chartGridlinesState, chartGridlinesPatch, seriesSecondaryAxisPatch, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setDataLabelsRangeCache, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, imageResetPatch, imageResetState, canInteractWithElement, buildOleObjectNamePatch, shouldShowAccessibilitySection, withFrameSlides, withSlidesPerPage, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, SLIDE_SIZE_PRESETS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, TRANSITION_SPEED_OPTIONS, TRANSITION_MORPH_OPTIONS, flattenTagCollections, resolveTemplateBackgroundRows, commentMentionQuery, matchCommentMentionAuthors, buildAnimationTimelineRows, clearMotionPath, setTrigger, setTriggerBookmark, getEffectSoundState, setEffectSound, setEffectStockSound, setAfterAnimation, setAfterAnimationColor, directionValuesFor, buildAnimationTimelineBars, motionPathPresetIdForPath, MOTION_PATH_FAMILIES, motionPathPresetsByFamily, motionPathPresetLabelKey, motionPathFamilyLabelKey, EFFECT_SOUND_CATALOGUE, listMediaBookmarkOptions, selectedBookmarkOptionValue, hasTiltData, toElementAxes, dragCropHandle, panCropImage, clientToSlidePoint, EDIT_POINTS_TARGET_ATTR, describeTableStyleEditor, TABLE_STYLE_EDITOR_PARTS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, resolveDisplayedChartType, CHART_TYPE_OPTIONS, chartDataLabelsTogglePatch, BAR3D_SHAPE_OPTIONS, bar3DShapePatch, RADAR_STYLE_OPTIONS, radarStylePatch, SURFACE_WIREFRAME_OPTIONS, surfaceWireframePatch, isSeriesUsingSecondaryAxis, seriesColorClearState, listChartUserShapeRows, withChartUserShapeAdded, createDefaultChartUserShape, withChartUserShapeRowRemoved, withChartUserShapeRowTextUpdated, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSiblingAfter, removeEmptyNode, demote, promote, reorder, cropResetState, cropResetPatch, ARTISTIC_EFFECTS, mediaTrimEndSeconds, trimmedMediaDurationMs, mediaTrimEndAbsoluteMs, mediaTrimResetState, mediaTrimEndMsFromAbsoluteMs, mediaTrimResetPatch, buildOleEditDialogDescriptor, buildOleContentUpdatePatch, buildThemeColorSwatchGrid, themeColorSwatchRows, findSelectedThemeSwatch, themeSwatchCommit, getNonVisualDescriptionFields, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, insertCommentMention, reorderAnimationTimelineRows, applyAnimationTimelineOrder, getEffectSoundAsset, animationEffectLabel, overlayPointerInput, TABLE_STYLE_BORDER_SIDES, applyTableStyleFieldEdit, withCellStyle, LBL as LBL$1, SEL as SEL$1, FILL_MODE_OPTIONS as FILL_MODE_OPTIONS$1, SECTION_HEADING, NUM as NUM$1, getChartUserShapeGroupTransform, withChartUserShapeGroupChildAdded, createDefaultChartUserShapeGroupChild, withChartUserShapeRowUpdated, getChartUserShapeRowChartBox, withChartUserShapeRowFlipUpdated, withChartUserShapeRowRotationUpdated, withChartUserShapeRowChartBoxUpdated, smartArtLayoutSwitchPatch, rebuildDrawingShapesIfCleared, mediaTrimEndMsFromSeconds, validateMediaTrimRange, quickStyleSwatchCss, OFFICE_COLOR_SWATCHES, PATTERN_PRESET_OPTIONS as PATTERN_PRESET_OPTIONS$1, COMPOUND_LINE_OPTIONS as COMPOUND_LINE_OPTIONS$1, LINE_JOIN_OPTIONS as LINE_JOIN_OPTIONS$1, LINE_CAP_OPTIONS as LINE_CAP_OPTIONS$1, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, toSlideIndex, TABLE_STYLE_BORDER_SIDE_LABEL_KEYS, TABLE_STYLE_DASH_PRESETS, GRADIENT_TYPE_OPTIONS as GRADIENT_TYPE_OPTIONS$1, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, toggleText3dExtrusion, BEVEL_PRESETS, cropFit, cropFill, cropToAspectRatio } from 'ooxml-ui/pptx';
4
4
  export { THEME_CATALOG, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from 'ooxml-ui/pptx';
5
- import React98, { createContext, lazy, forwardRef, useEffect, useState, useCallback, useMemo, useRef, useLayoutEffect, useSyncExternalStore, useId, useContext, useDeferredValue, Suspense, useReducer, Fragment as Fragment$1 } from 'react';
5
+ import React99, { createContext, lazy, forwardRef, useEffect, useState, useCallback, useMemo, useRef, useLayoutEffect, useSyncExternalStore, useId, useContext, useDeferredValue, Suspense, useReducer, Fragment as Fragment$1 } from 'react';
6
6
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
7
7
  import { useTranslation } from 'react-i18next';
8
8
  import { LuArrowDown, LuArrowUp, LuArrowRight, LuArrowLeft, LuArrowDownRight, LuArrowDownLeft, LuArrowUpRight, LuArrowUpLeft, LuMessageSquare, LuEyeOff, LuHistory, LuSettings, LuX, LuCalendarDays, LuClock, LuHash, LuFileText, LuText, LuCast, LuShieldCheck, LuPlus, LuPanelLeftClose, LuDownload, LuTrash2, LuCheck, LuLock, LuEye, LuType, LuLoader, LuShieldAlert, LuSignature, LuInfo, LuTriangleAlert, LuPrinter, LuPenTool, LuBug, LuChevronUp, LuChevronDown, LuUpload, LuWifi, LuWifiOff, LuUsers, LuCopy, LuMinus, LuChevronLeft, LuChevronRight, LuPlay, LuPause, LuPanelLeft, LuPanelRight, LuSparkles, LuFolderOpen, LuPalette, LuSearch, LuCaseSensitive, LuReplace, LuGripVertical, LuLoaderCircle, LuGrid2X2, LuStickyNote, LuList, LuClipboardCopy, LuPaintbrush, LuShapes, LuLayoutGrid, LuWand, LuPresentation, LuTextCursorInput, LuFile, LuEllipsis, LuUserRound, LuShare2, LuSave, LuFilePlus2, LuHouse, LuFileJson, LuBox, LuVideo, LuFileImage, LuDatabase, LuClock3, LuUser, LuHardDrive, LuLogIn, LuMove, LuCopyPlus, LuClipboardPaste, LuMonitor, LuRadio, LuCaptions, LuImage, LuFilter, LuLayers, LuSettings2, LuLockOpen, LuPencil, LuReply, LuMoveRight, LuRotateCw, LuScissors, LuBookmark, LuPipette } from 'react-icons/lu';
@@ -713,7 +713,7 @@ function WebHomeControls({
713
713
  host.addEventListener("home-popup", listener);
714
714
  return () => host.removeEventListener("home-popup", listener);
715
715
  }, [onPopup]);
716
- return React98.createElement(`pptx-ui-ribbon-home-${family}`, { ref });
716
+ return React99.createElement(`pptx-ui-ribbon-home-${family}`, { ref });
717
717
  }
718
718
  function ShapeArrangeExtras(p) {
719
719
  const commands = useShapeFormatContext();
@@ -1210,7 +1210,7 @@ function AccountPage() {
1210
1210
  return void 0;
1211
1211
  });
1212
1212
  };
1213
- const version = "4.32.0" ;
1213
+ const version = "4.33.1" ;
1214
1214
  return /* @__PURE__ */ jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
1215
1215
  /* @__PURE__ */ jsxs("section", { className: cardClass, children: [
1216
1216
  /* @__PURE__ */ jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
@@ -3521,6 +3521,31 @@ function EditingSection(p) {
3521
3521
  ] })
3522
3522
  ] });
3523
3523
  }
3524
+ var NO_ADD_INS = [];
3525
+ var RibbonAddInsContext = createContext(NO_ADD_INS);
3526
+ function useRibbonAddInTabs(onFallback) {
3527
+ const tabs = useContext(RibbonAddInsContext);
3528
+ const visible = useMemo(() => visibleRibbonAddIns(tabs), [tabs]);
3529
+ const [chosen, setChosen] = useState(null);
3530
+ const active = chosen ? visible.find((tab) => tab.id === chosen) ?? null : null;
3531
+ const fellBack = chosen !== null && active === null;
3532
+ useEffect(() => {
3533
+ if (fellBack) {
3534
+ setChosen(null);
3535
+ onFallback();
3536
+ }
3537
+ }, [fellBack, onFallback]);
3538
+ return { visible, active, fellBack, select: setChosen };
3539
+ }
3540
+ function RibbonAddInSection({ tab }) {
3541
+ const ref = useRef(null);
3542
+ useEffect(() => {
3543
+ if (ref.current) {
3544
+ ref.current.tab = tab;
3545
+ }
3546
+ }, [tab]);
3547
+ return /* @__PURE__ */ jsx("pptx-ui-ribbon-add-in", { ref });
3548
+ }
3524
3549
  var TAB_BASE = "relative px-3.5 py-2 text-[12px] font-medium whitespace-nowrap transition-colors max-md:min-h-[36px] max-md:px-3";
3525
3550
  var TAB_UNDERLINE = "after:absolute after:-bottom-px after:left-0 after:right-0 after:h-[2.5px] after:bg-primary";
3526
3551
  function RibbonTabBar(p) {
@@ -3552,6 +3577,26 @@ function RibbonTabBar(p) {
3552
3577
  s.id
3553
3578
  );
3554
3579
  }),
3580
+ (p.addInTabs ?? []).map((tab) => {
3581
+ const selected = p.activeAddIn === tab.id;
3582
+ return /* @__PURE__ */ jsx(
3583
+ "button",
3584
+ {
3585
+ type: "button",
3586
+ role: "tab",
3587
+ "aria-selected": selected,
3588
+ ...{ [RIBBON_ADD_IN_TAB_ATTR]: tab.id },
3589
+ title: resolveScreenTip(viewerOptions, tab.label),
3590
+ onClick: () => p.onSelectAddIn?.(tab.id),
3591
+ className: cn(
3592
+ TAB_BASE,
3593
+ selected ? `text-foreground ${TAB_UNDERLINE}` : "text-muted-foreground hover:text-foreground hover:bg-accent/30"
3594
+ ),
3595
+ children: tab.label
3596
+ },
3597
+ tab.id
3598
+ );
3599
+ }),
3555
3600
  p.contextualTabs.map((id) => {
3556
3601
  const selected = p.activeContextual === id;
3557
3602
  const label = t(contextualTabLabelKey(id));
@@ -4288,6 +4333,7 @@ function Toolbar(p) {
4288
4333
  );
4289
4334
  const fallBackHome = useCallback(() => onSetToolbarSection("home"), [onSetToolbarSection]);
4290
4335
  const contextual = useContextualRibbonTab(p.selectedElement, customization, fallBackHome);
4336
+ const addIns = useRibbonAddInTabs(fallBackHome);
4291
4337
  const detachOverflow = useRef(null);
4292
4338
  const inspector = useRef({ open: p.isInspectorPaneOpen, toggle: p.onToggleInspector });
4293
4339
  inspector.current = { open: p.isInspectorPaneOpen, toggle: p.onToggleInspector };
@@ -4312,7 +4358,8 @@ function Toolbar(p) {
4312
4358
  if (isNarrowViewport && mode !== "present") {
4313
4359
  return /* @__PURE__ */ jsx(MobileToolbar, { ...p });
4314
4360
  }
4315
- const section = contextual.active ? null : contextual.fellBack ? "home" : toolbarSection;
4361
+ const extraTab = contextual.active !== null || addIns.active !== null;
4362
+ const section = extraTab ? null : contextual.fellBack || addIns.fellBack ? "home" : toolbarSection;
4316
4363
  const sFil = section === "file";
4317
4364
  const sHome = section === "home";
4318
4365
  const sIns = section === "insert";
@@ -4334,14 +4381,24 @@ function Toolbar(p) {
4334
4381
  RibbonTabBar,
4335
4382
  {
4336
4383
  isTabVisible,
4337
- activeSection: contextual.active ? null : section,
4384
+ activeSection: extraTab ? null : section,
4338
4385
  contextualTabs: contextual.visible,
4339
- activeContextual: contextual.active,
4386
+ activeContextual: addIns.active ? null : contextual.active,
4340
4387
  onSelectSection: (id) => {
4341
4388
  contextual.select(null);
4389
+ addIns.select(null);
4342
4390
  onSetToolbarSection(id);
4343
4391
  },
4344
- onSelectContextual: contextual.select,
4392
+ onSelectContextual: (id) => {
4393
+ addIns.select(null);
4394
+ contextual.select(id);
4395
+ },
4396
+ addInTabs: addIns.visible,
4397
+ activeAddIn: addIns.active?.id ?? null,
4398
+ onSelectAddIn: (id) => {
4399
+ contextual.select(null);
4400
+ addIns.select(id);
4401
+ },
4345
4402
  children: [
4346
4403
  /* @__PURE__ */ jsx(
4347
4404
  TabRowActions,
@@ -4556,7 +4613,8 @@ function Toolbar(p) {
4556
4613
  }
4557
4614
  ),
4558
4615
  /* @__PURE__ */ jsx(ToolbarLateTabs, { p, section }),
4559
- contextual.active && /* @__PURE__ */ jsx(ContextualTabSection, { tab: contextual.active })
4616
+ contextual.active && !addIns.active && /* @__PURE__ */ jsx(ContextualTabSection, { tab: contextual.active }),
4617
+ addIns.active && /* @__PURE__ */ jsx(RibbonAddInSection, { tab: addIns.active })
4560
4618
  ]
4561
4619
  }
4562
4620
  )
@@ -4827,7 +4885,7 @@ function ChartQuickActionsOverlay({
4827
4885
  "data-export-ignore": "true",
4828
4886
  style: { position: "absolute", left: 0, top: 0, zIndex: 59 },
4829
4887
  onMouseDown: (e) => e.stopPropagation(),
4830
- children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(React98.Fragment, { children: [
4888
+ children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(React99.Fragment, { children: [
4831
4889
  /* @__PURE__ */ jsx(
4832
4890
  "button",
4833
4891
  {
@@ -4847,7 +4905,7 @@ function ChartQuickActionsOverlay({
4847
4905
  transformOrigin: "top left"
4848
4906
  },
4849
4907
  className: "flex items-center justify-center rounded bg-white border border-gray-300 shadow-sm hover:bg-gray-100 text-gray-700",
4850
- children: React98.createElement(ICONS3[button.id], { className: "size-3.5" })
4908
+ children: React99.createElement(ICONS3[button.id], { className: "size-3.5" })
4851
4909
  }
4852
4910
  ),
4853
4911
  open === button.id && button.id === "elements" && /* @__PURE__ */ jsxs(
@@ -5993,7 +6051,7 @@ function HorizontalRulerView({ ticks, widthPx, highlight }) {
5993
6051
  }
5994
6052
  );
5995
6053
  }
5996
- var HorizontalRuler = React98.memo(HorizontalRulerView);
6054
+ var HorizontalRuler = React99.memo(HorizontalRulerView);
5997
6055
  HorizontalRuler.displayName = "HorizontalRuler";
5998
6056
  function VerticalRulerView({ ticks, heightPx, highlight }) {
5999
6057
  return /* @__PURE__ */ jsxs(
@@ -6065,7 +6123,7 @@ function VerticalRulerView({ ticks, heightPx, highlight }) {
6065
6123
  }
6066
6124
  );
6067
6125
  }
6068
- var VerticalRuler = React98.memo(VerticalRulerView);
6126
+ var VerticalRuler = React99.memo(VerticalRulerView);
6069
6127
  VerticalRuler.displayName = "VerticalRuler";
6070
6128
  function Ruler({
6071
6129
  canvasSize,
@@ -6902,6 +6960,7 @@ function ActiveXControlOverlay({
6902
6960
  alt: view.label,
6903
6961
  title: `ActiveX control: ${view.label}`,
6904
6962
  className: "absolute",
6963
+ draggable: false,
6905
6964
  style: { left: view.left, top: view.top, width: view.width, height: view.height }
6906
6965
  },
6907
6966
  `${control.relId}-${idx}`
@@ -7946,7 +8005,7 @@ function slideThumbnailPropsEqual(prev, next) {
7946
8005
  }
7947
8006
  return true;
7948
8007
  }
7949
- var SlideThumbnail = React98.memo(SlideThumbnailImpl, slideThumbnailPropsEqual);
8008
+ var SlideThumbnail = React99.memo(SlideThumbnailImpl, slideThumbnailPropsEqual);
7950
8009
  function tableCell(props) {
7951
8010
  const { selectedElement, tableEditorState } = props;
7952
8011
  if (selectedElement?.type !== "table" || tableEditorState === null) {
@@ -8589,7 +8648,7 @@ function LazyThumbnailInner({
8589
8648
  }
8590
8649
  ) });
8591
8650
  }
8592
- var LazyThumbnail = React98.memo(LazyThumbnailInner);
8651
+ var LazyThumbnail = React99.memo(LazyThumbnailInner);
8593
8652
  function declaredSectionFacts(groups, sectionId) {
8594
8653
  const declared = groups.filter((group) => group.id !== DEFAULT_SECTION_GROUP_ID && group.id !== UNGROUPED_SECTION_ID).map((group) => group.id);
8595
8654
  return {
@@ -8757,7 +8816,7 @@ function SlideItemInner({
8757
8816
  }
8758
8817
  );
8759
8818
  }
8760
- var SlideItem = React98.memo(SlideItemInner);
8819
+ var SlideItem = React99.memo(SlideItemInner);
8761
8820
  function useSlidePaneCallbacks(onMoveSlide, onRenameSection, onToggleSectionCollapse) {
8762
8821
  const [collapsedSections, setCollapsedSections] = useState({});
8763
8822
  const [renamingSectionId, setRenamingSectionId] = useState(null);
@@ -10170,7 +10229,7 @@ function arePropsEqual(prev, next) {
10170
10229
  }
10171
10230
  return true;
10172
10231
  }
10173
- var SlideCard = React98.memo(SlideCardImpl, arePropsEqual);
10232
+ var SlideCard = React99.memo(SlideCardImpl, arePropsEqual);
10174
10233
  var ICON_CLASS = "h-3.5 w-3.5 text-muted-foreground";
10175
10234
  function SorterContextMenu({
10176
10235
  x,
@@ -11483,8 +11542,8 @@ function SlideNotesPanel({
11483
11542
  onHeightChange
11484
11543
  }) {
11485
11544
  const { t } = useTranslation();
11486
- const rootRef = React98.useRef(null);
11487
- React98.useEffect(() => {
11545
+ const rootRef = React99.useRef(null);
11546
+ React99.useEffect(() => {
11488
11547
  const el = rootRef.current;
11489
11548
  if (!el || !onHeightChange) {
11490
11549
  return void 0;
@@ -13327,9 +13386,9 @@ function PresentationSubtitleBar({
13327
13386
  function renderNotesSegments(segments) {
13328
13387
  return notesSegmentsToSpans(segments).map((span) => {
13329
13388
  if (span.kind === "break") {
13330
- return React98.createElement("br", { key: span.key });
13389
+ return React99.createElement("br", { key: span.key });
13331
13390
  }
13332
- return React98.createElement(
13391
+ return React99.createElement(
13333
13392
  "span",
13334
13393
  { key: span.key, style: span.style },
13335
13394
  span.text
@@ -13505,7 +13564,7 @@ function scaledSlidePreviewPropsEqual(prev, next) {
13505
13564
  }
13506
13565
  return true;
13507
13566
  }
13508
- var ScaledSlidePreview = React98.memo(ScaledSlidePreviewImpl, scaledSlidePreviewPropsEqual);
13567
+ var ScaledSlidePreview = React99.memo(ScaledSlidePreviewImpl, scaledSlidePreviewPropsEqual);
13509
13568
  function PresenterNotesRail({
13510
13569
  slides,
13511
13570
  current,
@@ -14733,7 +14792,7 @@ function EffectSoundRow({
14733
14792
  onPickStock
14734
14793
  }) {
14735
14794
  const { t } = useTranslation();
14736
- const fileInputRef = React98.useRef(null);
14795
+ const fileInputRef = React99.useRef(null);
14737
14796
  const selectedValue = soundState.catalogueId ?? (soundState.hasSound ? CURRENT_VALUE : NONE_VALUE);
14738
14797
  const handleSelectChange = (event) => {
14739
14798
  const value = event.target.value;
@@ -18305,7 +18364,7 @@ function ConnectorArrowsSection({
18305
18364
  ["Start", "End"].map((end) => {
18306
18365
  const widthKey = end === "Start" ? "connectorStartArrowWidth" : "connectorEndArrowWidth";
18307
18366
  const lengthKey = end === "Start" ? "connectorStartArrowLength" : "connectorEndArrowLength";
18308
- return /* @__PURE__ */ jsxs(React98.Fragment, { children: [
18367
+ return /* @__PURE__ */ jsxs(React99.Fragment, { children: [
18309
18368
  /* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
18310
18369
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t(END_LABEL_KEYS[end].width) }),
18311
18370
  /* @__PURE__ */ jsx(
@@ -21230,7 +21289,7 @@ function StrokeEffectsSection({
21230
21289
  ] }),
21231
21290
  EFFECT_CONFIGS.map((cfg) => {
21232
21291
  const on = cfg.isOn(style);
21233
- return /* @__PURE__ */ jsxs(React98.Fragment, { children: [
21292
+ return /* @__PURE__ */ jsxs(React99.Fragment, { children: [
21234
21293
  /* @__PURE__ */ jsxs("label", { className: `inline-flex items-center gap-2 text-foreground ${COL2}`, children: [
21235
21294
  /* @__PURE__ */ jsx(
21236
21295
  WebCheckbox,
@@ -22085,7 +22144,7 @@ function TextWarpGallery({
22085
22144
  onUpdateTextStyle
22086
22145
  }) {
22087
22146
  const { t } = useTranslation();
22088
- const [expanded, setExpanded] = React98.useState(false);
22147
+ const [expanded, setExpanded] = React99.useState(false);
22089
22148
  const currentPreset = ts?.textWarpPreset || "textNoShape";
22090
22149
  return /* @__PURE__ */ jsxs("div", { className: "mt-2 rounded border border-border bg-card p-2 space-y-2", children: [
22091
22150
  /* @__PURE__ */ jsxs(
@@ -22728,7 +22787,7 @@ function SmartArtStyleControls({
22728
22787
  onChangeStyle
22729
22788
  }) {
22730
22789
  const { t } = useTranslation();
22731
- const translate = React98.useCallback((key) => t(key), [t]);
22790
+ const translate = React99.useCallback((key) => t(key), [t]);
22732
22791
  return /* @__PURE__ */ jsxs(Fragment, { children: [
22733
22792
  /* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1 text-[11px]", children: [
22734
22793
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.smartart.colorScheme") }),
@@ -22783,9 +22842,9 @@ function SmartArtPropertiesPanel({
22783
22842
  const nodes = smartArtData.nodes ?? [];
22784
22843
  const layout = smartArtData.resolvedLayoutType;
22785
22844
  const topLevelCount = nodes.filter((n) => !n.parentId).length;
22786
- const inputRefs = React98.useRef(/* @__PURE__ */ new Map());
22787
- const pendingFocusId = React98.useRef(null);
22788
- React98.useEffect(() => {
22845
+ const inputRefs = React99.useRef(/* @__PURE__ */ new Map());
22846
+ const pendingFocusId = React99.useRef(null);
22847
+ React99.useEffect(() => {
22789
22848
  const id = pendingFocusId.current;
22790
22849
  if (id) {
22791
22850
  inputRefs.current.get(id)?.focus();
@@ -24391,7 +24450,7 @@ function CommentBody({ text, mentions, className }) {
24391
24450
  index
24392
24451
  ) : (
24393
24452
  // eslint-disable-next-line react/no-array-index-key -- segments are positional
24394
- /* @__PURE__ */ jsx(React98.Fragment, { children: segment.text }, index)
24453
+ /* @__PURE__ */ jsx(React99.Fragment, { children: segment.text }, index)
24395
24454
  )
24396
24455
  ) });
24397
24456
  }
@@ -25907,7 +25966,7 @@ function PresentationPropertiesPanel({
25907
25966
  onUpdateTagCollections
25908
25967
  }) {
25909
25968
  const { t } = useTranslation();
25910
- const handleTransitionChange = React98.useCallback(
25969
+ const handleTransitionChange = React99.useCallback(
25911
25970
  (updates) => {
25912
25971
  onUpdateSlide({
25913
25972
  transition: mergeSlideTransition(activeSlide?.transition, updates)
@@ -29290,7 +29349,7 @@ function ViewerToolbarSection(props) {
29290
29349
  },
29291
29350
  [activeSlide, propertyHandlers]
29292
29351
  );
29293
- const scopedLayoutOptions = React98.useMemo(
29352
+ const scopedLayoutOptions = React99.useMemo(
29294
29353
  () => scopeLayoutOptionsToActiveSlide(s.layoutOptions, activeSlide),
29295
29354
  [s.layoutOptions, activeSlide]
29296
29355
  );
@@ -31220,7 +31279,7 @@ function useTableStyleMapHandlers(input) {
31220
31279
  var AiChatPanel = lazy(async () => {
31221
31280
  const [{ useChat }, { default: Panel }] = await Promise.all([
31222
31281
  import('@ai-sdk/react'),
31223
- import('./AiChatPanel-H6ULCALE.mjs')
31282
+ import('./AiChatPanel-CYD46SEM.mjs')
31224
31283
  ]);
31225
31284
  function BoundAiChatPanel(props) {
31226
31285
  return /* @__PURE__ */ jsx(Panel, { ...props, useChat });
@@ -34402,6 +34461,7 @@ function useViewerCustomization(customization, legacyHiddenActions, optionsStore
34402
34461
  );
34403
34462
  return { resolved, api: controller.api, hiddenActions };
34404
34463
  }
34464
+ var NO_RIBBON_ADD_INS = [];
34405
34465
  var PowerPointViewer = forwardRef(
34406
34466
  // oxlint-disable-next-line prefer-arrow-callback -- named fn gives the forwardRef component its displayName
34407
34467
  function PowerPointViewer2(props, ref) {
@@ -34441,6 +34501,7 @@ var PowerPointViewer = forwardRef(
34441
34501
  areaChart3D = false,
34442
34502
  pieChart3D = false,
34443
34503
  hiddenActions: legacyHiddenActions,
34504
+ ribbonAddIns,
34444
34505
  ai,
34445
34506
  customization,
34446
34507
  initialSlide
@@ -35542,7 +35603,7 @@ ${url}`)
35542
35603
  // Nothing previously provided it, so every one of those consumers was
35543
35604
  // silently reading `DEFAULT_VIEWER_OPTIONS` forever, no matter what
35544
35605
  // the user changed in the Options dialog.
35545
- /* @__PURE__ */ jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsx(Rendering3DFlagsContext.Provider, { value: effective3D, children: /* @__PURE__ */ jsx(ViewerThemeProvider, { theme: effectiveTheme, children: /* @__PURE__ */ jsxs(
35606
+ /* @__PURE__ */ jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsx(RibbonAddInsContext.Provider, { value: ribbonAddIns ?? NO_RIBBON_ADD_INS, children: /* @__PURE__ */ jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsx(Rendering3DFlagsContext.Provider, { value: effective3D, children: /* @__PURE__ */ jsx(ViewerThemeProvider, { theme: effectiveTheme, children: /* @__PURE__ */ jsxs(
35546
35607
  CollaborationProvider,
35547
35608
  {
35548
35609
  config: collaboration,
@@ -35595,7 +35656,7 @@ ${url}`)
35595
35656
  /* @__PURE__ */ jsx(ShapeFormatContext.Provider, { value: shapeFormat, children: /* @__PURE__ */ jsx(RibbonGalleryCommandsContext.Provider, { value: ribbonGalleries, children: viewerContent }) })
35596
35657
  ]
35597
35658
  }
35598
- ) }) }) }) }) })
35659
+ ) }) }) }) }) }) })
35599
35660
  );
35600
35661
  }
35601
35662
  );
Binary file
Binary file