pptx-react-viewer 4.34.0 → 4.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/dist/{AiChatPanel-CYD46SEM.mjs → AiChatPanel-CX74JT77.mjs} +1 -1
- package/dist/AiChatPanel-CX74JT77.mjs.br +0 -0
- package/dist/AiChatPanel-CX74JT77.mjs.gz +0 -0
- package/dist/{AiChatPanel-ONHWZEPV.js → AiChatPanel-PVRSPIAY.js} +9 -9
- package/dist/AiChatPanel-PVRSPIAY.js.br +0 -0
- package/dist/AiChatPanel-PVRSPIAY.js.gz +0 -0
- package/dist/{chunk-7DGKSEIU.js → chunk-4MGJUBY7.js} +2 -1
- package/dist/chunk-4MGJUBY7.js.br +0 -0
- package/dist/chunk-4MGJUBY7.js.gz +0 -0
- package/dist/{chunk-LNL6PAGZ.js → chunk-N67PQUQN.js} +1390 -1362
- package/dist/chunk-N67PQUQN.js.br +0 -0
- package/dist/chunk-N67PQUQN.js.gz +0 -0
- package/dist/{chunk-OWXES7IA.mjs → chunk-ON2ZUQWJ.mjs} +125 -97
- package/dist/chunk-ON2ZUQWJ.mjs.br +0 -0
- package/dist/chunk-ON2ZUQWJ.mjs.gz +0 -0
- package/dist/{chunk-LGZOY6W6.mjs → chunk-ORJPFBVE.mjs} +53 -44
- package/dist/chunk-ORJPFBVE.mjs.br +0 -0
- package/dist/chunk-ORJPFBVE.mjs.gz +0 -0
- package/dist/{chunk-K4UXDQZ6.mjs → chunk-SMPZ552M.mjs} +2 -1
- package/dist/chunk-SMPZ552M.mjs.br +0 -0
- package/dist/chunk-SMPZ552M.mjs.gz +0 -0
- package/dist/{chunk-XXGYLCRT.js → chunk-X5CTZHOP.js} +296 -287
- package/dist/chunk-X5CTZHOP.js.br +0 -0
- package/dist/chunk-X5CTZHOP.js.gz +0 -0
- package/dist/i18n/de.cjs +1 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +1 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +1 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +1 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +1 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +1 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +1 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +1 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +24 -24
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +6 -2
- package/dist/internals.js +81 -81
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +2 -2
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.d.ts +2 -0
- package/dist/viewer/index.js +19 -19
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +3 -3
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +6 -6
- package/dist/AiChatPanel-CYD46SEM.mjs.br +0 -0
- package/dist/AiChatPanel-CYD46SEM.mjs.gz +0 -0
- package/dist/AiChatPanel-ONHWZEPV.js.br +0 -0
- package/dist/AiChatPanel-ONHWZEPV.js.gz +0 -0
- package/dist/chunk-7DGKSEIU.js.br +0 -0
- package/dist/chunk-7DGKSEIU.js.gz +0 -0
- package/dist/chunk-K4UXDQZ6.mjs.br +0 -0
- package/dist/chunk-K4UXDQZ6.mjs.gz +0 -0
- package/dist/chunk-LGZOY6W6.mjs.br +0 -0
- package/dist/chunk-LGZOY6W6.mjs.gz +0 -0
- package/dist/chunk-LNL6PAGZ.js.br +0 -0
- package/dist/chunk-LNL6PAGZ.js.gz +0 -0
- package/dist/chunk-OWXES7IA.mjs.br +0 -0
- package/dist/chunk-OWXES7IA.mjs.gz +0 -0
- package/dist/chunk-XXGYLCRT.js.br +0 -0
- package/dist/chunk-XXGYLCRT.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -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-
|
|
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-
|
|
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, createSlidePackageClipboard, 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, slideClipboardLabels, sorterPasteInsertAt, 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, findReplacementAvailability, 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, 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, inspectorNumber, 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-ORJPFBVE.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-SMPZ552M.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, createSlidePackageClipboard, 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, buildFieldSubstitutionContext, 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, 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, slideClipboardLabels, sorterPasteInsertAt, 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, findReplacementAvailability, 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, 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, buildRibbonGallery, readRibbonTransitionDraft, SLIDE_SHOW_COMMAND_GROUPS, RECORD_COMMAND_GROUPS, buildReviewRibbon, HELP_RIBBON_COMMANDS, galleryTextLabel, pictureSizeHomeControls, 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, dispatchCropRequest, 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, getAfterAnimationState, 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, inspectorNumber, 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
|
|
5
|
+
import React101, { 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';
|
|
@@ -670,6 +670,16 @@ var ShapeFormatContext = createContext(null);
|
|
|
670
670
|
function useShapeFormatContext() {
|
|
671
671
|
return useContext(ShapeFormatContext);
|
|
672
672
|
}
|
|
673
|
+
function runCropRequest(crop, value) {
|
|
674
|
+
if (crop) {
|
|
675
|
+
dispatchCropRequest(value, {
|
|
676
|
+
toggle: crop.toggle,
|
|
677
|
+
aspect: crop.cropToAspect,
|
|
678
|
+
fill: crop.fill,
|
|
679
|
+
fit: crop.fit
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
}
|
|
673
683
|
function WebHomeControls({
|
|
674
684
|
family,
|
|
675
685
|
controls,
|
|
@@ -713,7 +723,7 @@ function WebHomeControls({
|
|
|
713
723
|
host.addEventListener("home-popup", listener);
|
|
714
724
|
return () => host.removeEventListener("home-popup", listener);
|
|
715
725
|
}, [onPopup]);
|
|
716
|
-
return
|
|
726
|
+
return React101.createElement(`pptx-ui-ribbon-home-${family}`, { ref });
|
|
717
727
|
}
|
|
718
728
|
function ShapeArrangeExtras(p) {
|
|
719
729
|
const commands = useShapeFormatContext();
|
|
@@ -760,18 +770,8 @@ function ShapeArrangeExtras(p) {
|
|
|
760
770
|
case "home.arrange.outlineWidth":
|
|
761
771
|
onUpdateElementStyle({ strokeWidth: Math.max(0, Number(value)) });
|
|
762
772
|
break;
|
|
763
|
-
case "home.arrange.crop":
|
|
764
|
-
|
|
765
|
-
if (!action) {
|
|
766
|
-
crop?.toggle();
|
|
767
|
-
} else if (action.kind === "aspect") {
|
|
768
|
-
crop?.cropToAspect(action.width, action.height);
|
|
769
|
-
} else if (action.kind === "fill") {
|
|
770
|
-
crop?.fill();
|
|
771
|
-
} else {
|
|
772
|
-
crop?.fit();
|
|
773
|
-
}
|
|
774
|
-
}
|
|
773
|
+
case "home.arrange.crop":
|
|
774
|
+
runCropRequest(crop, value);
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
777
|
[onGroupElements, onUngroupElement, onUpdateElementStyle, commands, crop]
|
|
@@ -1210,7 +1210,7 @@ function AccountPage() {
|
|
|
1210
1210
|
return void 0;
|
|
1211
1211
|
});
|
|
1212
1212
|
};
|
|
1213
|
-
const version = "4.
|
|
1213
|
+
const version = "4.36.0" ;
|
|
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: [
|
|
@@ -3401,18 +3401,44 @@ function MobileToolbar(props) {
|
|
|
3401
3401
|
/* @__PURE__ */ jsx(MobileMenuSheet, { open: menuOpen, onClose: () => setMenuOpen(false), ...props })
|
|
3402
3402
|
] });
|
|
3403
3403
|
}
|
|
3404
|
+
function PictureSizeStrip({
|
|
3405
|
+
hiddenActions
|
|
3406
|
+
}) {
|
|
3407
|
+
const crop = useShapeFormatContext()?.crop;
|
|
3408
|
+
const { isHidden } = useToolbarVisibility(hiddenActions);
|
|
3409
|
+
const controls = useMemo(
|
|
3410
|
+
() => pictureSizeHomeControls({
|
|
3411
|
+
editable: Boolean(crop),
|
|
3412
|
+
canCrop: Boolean(crop?.canCrop),
|
|
3413
|
+
cropActive: Boolean(crop?.element),
|
|
3414
|
+
hideCrop: isHidden("crop")
|
|
3415
|
+
}),
|
|
3416
|
+
[crop, isHidden]
|
|
3417
|
+
);
|
|
3418
|
+
const request = useCallback(
|
|
3419
|
+
(_id, _part, intent) => runCropRequest(crop, intent?.value),
|
|
3420
|
+
[crop]
|
|
3421
|
+
);
|
|
3422
|
+
return /* @__PURE__ */ jsx(WebHomeControls, { family: "picture-size", controls, onRequest: request });
|
|
3423
|
+
}
|
|
3404
3424
|
function useTranslateOr() {
|
|
3405
3425
|
const { t } = useTranslation();
|
|
3406
3426
|
return (key, fallback) => galleryTextLabel(t, key, fallback);
|
|
3407
3427
|
}
|
|
3408
|
-
function ContextualTabSection({
|
|
3428
|
+
function ContextualTabSection({
|
|
3429
|
+
tab,
|
|
3430
|
+
hiddenActions
|
|
3431
|
+
}) {
|
|
3409
3432
|
const translateOr = useTranslateOr();
|
|
3410
|
-
return /* @__PURE__ */ jsx(Fragment, { children: CONTEXTUAL_TAB_GROUPS[tab].map((group) => /* @__PURE__ */
|
|
3433
|
+
return /* @__PURE__ */ jsx(Fragment, { children: CONTEXTUAL_TAB_GROUPS[tab].map((group) => /* @__PURE__ */ jsxs(
|
|
3411
3434
|
WebRibbonGroup,
|
|
3412
3435
|
{
|
|
3413
3436
|
groupId: group.group,
|
|
3414
3437
|
label: translateOr(group.labelKey, group.label),
|
|
3415
|
-
children:
|
|
3438
|
+
children: [
|
|
3439
|
+
group.galleries.map((placement) => /* @__PURE__ */ jsx(RibbonGallery, { placement }, placement.control)),
|
|
3440
|
+
group.strip === "picture-size" && /* @__PURE__ */ jsx(PictureSizeStrip, { hiddenActions })
|
|
3441
|
+
]
|
|
3416
3442
|
},
|
|
3417
3443
|
group.group
|
|
3418
3444
|
)) });
|
|
@@ -4614,7 +4640,7 @@ function Toolbar(p) {
|
|
|
4614
4640
|
}
|
|
4615
4641
|
),
|
|
4616
4642
|
/* @__PURE__ */ jsx(ToolbarLateTabs, { p, section }),
|
|
4617
|
-
contextual.active && !addIns.active && /* @__PURE__ */ jsx(ContextualTabSection, { tab: contextual.active }),
|
|
4643
|
+
contextual.active && !addIns.active && /* @__PURE__ */ jsx(ContextualTabSection, { tab: contextual.active, hiddenActions: p.hiddenActions }),
|
|
4618
4644
|
addIns.active && /* @__PURE__ */ jsx(RibbonAddInSection, { tab: addIns.active })
|
|
4619
4645
|
]
|
|
4620
4646
|
}
|
|
@@ -4886,7 +4912,7 @@ function ChartQuickActionsOverlay({
|
|
|
4886
4912
|
"data-export-ignore": "true",
|
|
4887
4913
|
style: { position: "absolute", left: 0, top: 0, zIndex: 59 },
|
|
4888
4914
|
onMouseDown: (e) => e.stopPropagation(),
|
|
4889
|
-
children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(
|
|
4915
|
+
children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(React101.Fragment, { children: [
|
|
4890
4916
|
/* @__PURE__ */ jsx(
|
|
4891
4917
|
"button",
|
|
4892
4918
|
{
|
|
@@ -4906,7 +4932,7 @@ function ChartQuickActionsOverlay({
|
|
|
4906
4932
|
transformOrigin: "top left"
|
|
4907
4933
|
},
|
|
4908
4934
|
className: "flex items-center justify-center rounded bg-white border border-gray-300 shadow-sm hover:bg-gray-100 text-gray-700",
|
|
4909
|
-
children:
|
|
4935
|
+
children: React101.createElement(ICONS3[button.id], { className: "size-3.5" })
|
|
4910
4936
|
}
|
|
4911
4937
|
),
|
|
4912
4938
|
open === button.id && button.id === "elements" && /* @__PURE__ */ jsxs(
|
|
@@ -6052,7 +6078,7 @@ function HorizontalRulerView({ ticks, widthPx, highlight }) {
|
|
|
6052
6078
|
}
|
|
6053
6079
|
);
|
|
6054
6080
|
}
|
|
6055
|
-
var HorizontalRuler =
|
|
6081
|
+
var HorizontalRuler = React101.memo(HorizontalRulerView);
|
|
6056
6082
|
HorizontalRuler.displayName = "HorizontalRuler";
|
|
6057
6083
|
function VerticalRulerView({ ticks, heightPx, highlight }) {
|
|
6058
6084
|
return /* @__PURE__ */ jsxs(
|
|
@@ -6124,7 +6150,7 @@ function VerticalRulerView({ ticks, heightPx, highlight }) {
|
|
|
6124
6150
|
}
|
|
6125
6151
|
);
|
|
6126
6152
|
}
|
|
6127
|
-
var VerticalRuler =
|
|
6153
|
+
var VerticalRuler = React101.memo(VerticalRulerView);
|
|
6128
6154
|
VerticalRuler.displayName = "VerticalRuler";
|
|
6129
6155
|
function Ruler({
|
|
6130
6156
|
canvasSize,
|
|
@@ -8006,7 +8032,7 @@ function slideThumbnailPropsEqual(prev, next) {
|
|
|
8006
8032
|
}
|
|
8007
8033
|
return true;
|
|
8008
8034
|
}
|
|
8009
|
-
var SlideThumbnail =
|
|
8035
|
+
var SlideThumbnail = React101.memo(SlideThumbnailImpl, slideThumbnailPropsEqual);
|
|
8010
8036
|
function tableCell(props) {
|
|
8011
8037
|
const { selectedElement, tableEditorState } = props;
|
|
8012
8038
|
if (selectedElement?.type !== "table" || tableEditorState === null) {
|
|
@@ -8692,7 +8718,7 @@ function LazyThumbnailInner({
|
|
|
8692
8718
|
}
|
|
8693
8719
|
) });
|
|
8694
8720
|
}
|
|
8695
|
-
var LazyThumbnail =
|
|
8721
|
+
var LazyThumbnail = React101.memo(LazyThumbnailInner);
|
|
8696
8722
|
function declaredSectionFacts(groups, sectionId) {
|
|
8697
8723
|
const declared = groups.filter((group) => group.id !== DEFAULT_SECTION_GROUP_ID && group.id !== UNGROUPED_SECTION_ID).map((group) => group.id);
|
|
8698
8724
|
return {
|
|
@@ -8860,7 +8886,7 @@ function SlideItemInner({
|
|
|
8860
8886
|
}
|
|
8861
8887
|
);
|
|
8862
8888
|
}
|
|
8863
|
-
var SlideItem =
|
|
8889
|
+
var SlideItem = React101.memo(SlideItemInner);
|
|
8864
8890
|
function useSlidePaneCallbacks(onMoveSlide, onRenameSection, onToggleSectionCollapse) {
|
|
8865
8891
|
const [collapsedSections, setCollapsedSections] = useState({});
|
|
8866
8892
|
const [renamingSectionId, setRenamingSectionId] = useState(null);
|
|
@@ -10273,7 +10299,7 @@ function arePropsEqual(prev, next) {
|
|
|
10273
10299
|
}
|
|
10274
10300
|
return true;
|
|
10275
10301
|
}
|
|
10276
|
-
var SlideCard =
|
|
10302
|
+
var SlideCard = React101.memo(SlideCardImpl, arePropsEqual);
|
|
10277
10303
|
var ICON_CLASS = "h-3.5 w-3.5 text-muted-foreground";
|
|
10278
10304
|
function SorterContextMenu({
|
|
10279
10305
|
x,
|
|
@@ -10698,7 +10724,7 @@ function SlideSorterOverlay({
|
|
|
10698
10724
|
count: state.selectedSlideIds.length
|
|
10699
10725
|
}) })
|
|
10700
10726
|
] }),
|
|
10701
|
-
|
|
10727
|
+
React101.createElement("pptx-ui-slide-clipboard", {
|
|
10702
10728
|
ref: (node) => {
|
|
10703
10729
|
if (!node) {
|
|
10704
10730
|
return;
|
|
@@ -11613,8 +11639,8 @@ function SlideNotesPanel({
|
|
|
11613
11639
|
onHeightChange
|
|
11614
11640
|
}) {
|
|
11615
11641
|
const { t } = useTranslation();
|
|
11616
|
-
const rootRef =
|
|
11617
|
-
|
|
11642
|
+
const rootRef = React101.useRef(null);
|
|
11643
|
+
React101.useEffect(() => {
|
|
11618
11644
|
const el = rootRef.current;
|
|
11619
11645
|
if (!el || !onHeightChange) {
|
|
11620
11646
|
return void 0;
|
|
@@ -13457,9 +13483,9 @@ function PresentationSubtitleBar({
|
|
|
13457
13483
|
function renderNotesSegments(segments) {
|
|
13458
13484
|
return notesSegmentsToSpans(segments).map((span) => {
|
|
13459
13485
|
if (span.kind === "break") {
|
|
13460
|
-
return
|
|
13486
|
+
return React101.createElement("br", { key: span.key });
|
|
13461
13487
|
}
|
|
13462
|
-
return
|
|
13488
|
+
return React101.createElement(
|
|
13463
13489
|
"span",
|
|
13464
13490
|
{ key: span.key, style: span.style },
|
|
13465
13491
|
span.text
|
|
@@ -13635,7 +13661,7 @@ function scaledSlidePreviewPropsEqual(prev, next) {
|
|
|
13635
13661
|
}
|
|
13636
13662
|
return true;
|
|
13637
13663
|
}
|
|
13638
|
-
var ScaledSlidePreview =
|
|
13664
|
+
var ScaledSlidePreview = React101.memo(ScaledSlidePreviewImpl, scaledSlidePreviewPropsEqual);
|
|
13639
13665
|
function PresenterNotesRail({
|
|
13640
13666
|
slides,
|
|
13641
13667
|
current,
|
|
@@ -14613,6 +14639,7 @@ function AfterAnimationRow({
|
|
|
14613
14639
|
action,
|
|
14614
14640
|
color,
|
|
14615
14641
|
canEdit,
|
|
14642
|
+
showColor = true,
|
|
14616
14643
|
onActionChange,
|
|
14617
14644
|
onColorChange
|
|
14618
14645
|
}) {
|
|
@@ -14633,7 +14660,7 @@ function AfterAnimationRow({
|
|
|
14633
14660
|
}
|
|
14634
14661
|
)
|
|
14635
14662
|
] }),
|
|
14636
|
-
action === "dimToColor" && /* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2", children: [
|
|
14663
|
+
action === "dimToColor" && showColor && /* @__PURE__ */ jsxs("label", { className: "flex items-center gap-2", children: [
|
|
14637
14664
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-[11px]", children: t("pptx.animation.afterAnimation.color") }),
|
|
14638
14665
|
/* @__PURE__ */ jsx(
|
|
14639
14666
|
"input",
|
|
@@ -14863,7 +14890,7 @@ function EffectSoundRow({
|
|
|
14863
14890
|
onPickStock
|
|
14864
14891
|
}) {
|
|
14865
14892
|
const { t } = useTranslation();
|
|
14866
|
-
const fileInputRef =
|
|
14893
|
+
const fileInputRef = React101.useRef(null);
|
|
14867
14894
|
const selectedValue = soundState.catalogueId ?? (soundState.hasSound ? CURRENT_VALUE : NONE_VALUE);
|
|
14868
14895
|
const handleSelectChange = (event) => {
|
|
14869
14896
|
const value = event.target.value;
|
|
@@ -15568,27 +15595,15 @@ function AnimationPanel({
|
|
|
15568
15595
|
}
|
|
15569
15596
|
)
|
|
15570
15597
|
] }),
|
|
15571
|
-
/* @__PURE__ */
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
15580
|
-
),
|
|
15581
|
-
/* @__PURE__ */ jsx(
|
|
15582
|
-
AfterAnimationRow,
|
|
15583
|
-
{
|
|
15584
|
-
action: selectedElementAnimation?.afterAnimation ?? "none",
|
|
15585
|
-
color: selectedElementAnimation?.afterAnimationColor,
|
|
15586
|
-
canEdit,
|
|
15587
|
-
onActionChange: handleAfterAnimationChange,
|
|
15588
|
-
onColorChange: handleAfterAnimationColorChange
|
|
15589
|
-
}
|
|
15590
|
-
)
|
|
15591
|
-
] }),
|
|
15598
|
+
/* @__PURE__ */ jsx("div", { className: "pt-1 border-t border-border flex flex-col gap-2", children: /* @__PURE__ */ jsx(
|
|
15599
|
+
EffectSoundRow,
|
|
15600
|
+
{
|
|
15601
|
+
soundState: effectSoundState,
|
|
15602
|
+
canEdit,
|
|
15603
|
+
onPick: handleEffectSoundPick,
|
|
15604
|
+
onPickStock: handleEffectStockSoundPick
|
|
15605
|
+
}
|
|
15606
|
+
) }),
|
|
15592
15607
|
/* @__PURE__ */ jsx("div", { className: "text-[11px] uppercase tracking-wide text-muted-foreground pt-1 border-t border-border", children: t("pptx.animation.timing") }),
|
|
15593
15608
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
15594
15609
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-[11px]", children: t("pptx.animation.trigger") }),
|
|
@@ -15715,6 +15730,17 @@ function AnimationPanel({
|
|
|
15715
15730
|
)
|
|
15716
15731
|
] })
|
|
15717
15732
|
] }),
|
|
15733
|
+
(hasAnimation || selectedElementAnimation?.nativeAfterAnimation) && /* @__PURE__ */ jsx(
|
|
15734
|
+
AfterAnimationRow,
|
|
15735
|
+
{
|
|
15736
|
+
action: getAfterAnimationState(selectedElementAnimation).action,
|
|
15737
|
+
color: getAfterAnimationState(selectedElementAnimation).color,
|
|
15738
|
+
showColor: getAfterAnimationState(selectedElementAnimation).showColor,
|
|
15739
|
+
canEdit,
|
|
15740
|
+
onActionChange: handleAfterAnimationChange,
|
|
15741
|
+
onColorChange: handleAfterAnimationColorChange
|
|
15742
|
+
}
|
|
15743
|
+
),
|
|
15718
15744
|
/* @__PURE__ */ jsx(
|
|
15719
15745
|
AnimationTimelineSection,
|
|
15720
15746
|
{
|
|
@@ -18435,7 +18461,7 @@ function ConnectorArrowsSection({
|
|
|
18435
18461
|
["Start", "End"].map((end) => {
|
|
18436
18462
|
const widthKey = end === "Start" ? "connectorStartArrowWidth" : "connectorEndArrowWidth";
|
|
18437
18463
|
const lengthKey = end === "Start" ? "connectorStartArrowLength" : "connectorEndArrowLength";
|
|
18438
|
-
return /* @__PURE__ */ jsxs(
|
|
18464
|
+
return /* @__PURE__ */ jsxs(React101.Fragment, { children: [
|
|
18439
18465
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
18440
18466
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t(END_LABEL_KEYS[end].width) }),
|
|
18441
18467
|
/* @__PURE__ */ jsx(
|
|
@@ -21360,7 +21386,7 @@ function StrokeEffectsSection({
|
|
|
21360
21386
|
] }),
|
|
21361
21387
|
EFFECT_CONFIGS.map((cfg) => {
|
|
21362
21388
|
const on = cfg.isOn(style);
|
|
21363
|
-
return /* @__PURE__ */ jsxs(
|
|
21389
|
+
return /* @__PURE__ */ jsxs(React101.Fragment, { children: [
|
|
21364
21390
|
/* @__PURE__ */ jsxs("label", { className: `inline-flex items-center gap-2 text-foreground ${COL2}`, children: [
|
|
21365
21391
|
/* @__PURE__ */ jsx(
|
|
21366
21392
|
WebCheckbox,
|
|
@@ -22215,7 +22241,7 @@ function TextWarpGallery({
|
|
|
22215
22241
|
onUpdateTextStyle
|
|
22216
22242
|
}) {
|
|
22217
22243
|
const { t } = useTranslation();
|
|
22218
|
-
const [expanded, setExpanded] =
|
|
22244
|
+
const [expanded, setExpanded] = React101.useState(false);
|
|
22219
22245
|
const currentPreset = ts?.textWarpPreset || "textNoShape";
|
|
22220
22246
|
return /* @__PURE__ */ jsxs("div", { className: "mt-2 rounded border border-border bg-card p-2 space-y-2", children: [
|
|
22221
22247
|
/* @__PURE__ */ jsxs(
|
|
@@ -22858,7 +22884,7 @@ function SmartArtStyleControls({
|
|
|
22858
22884
|
onChangeStyle
|
|
22859
22885
|
}) {
|
|
22860
22886
|
const { t } = useTranslation();
|
|
22861
|
-
const translate =
|
|
22887
|
+
const translate = React101.useCallback((key) => t(key), [t]);
|
|
22862
22888
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22863
22889
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1 text-[11px]", children: [
|
|
22864
22890
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.smartart.colorScheme") }),
|
|
@@ -22913,9 +22939,9 @@ function SmartArtPropertiesPanel({
|
|
|
22913
22939
|
const nodes = smartArtData.nodes ?? [];
|
|
22914
22940
|
const layout = smartArtData.resolvedLayoutType;
|
|
22915
22941
|
const topLevelCount = nodes.filter((n) => !n.parentId).length;
|
|
22916
|
-
const inputRefs =
|
|
22917
|
-
const pendingFocusId =
|
|
22918
|
-
|
|
22942
|
+
const inputRefs = React101.useRef(/* @__PURE__ */ new Map());
|
|
22943
|
+
const pendingFocusId = React101.useRef(null);
|
|
22944
|
+
React101.useEffect(() => {
|
|
22919
22945
|
const id = pendingFocusId.current;
|
|
22920
22946
|
if (id) {
|
|
22921
22947
|
inputRefs.current.get(id)?.focus();
|
|
@@ -24521,7 +24547,7 @@ function CommentBody({ text, mentions, className }) {
|
|
|
24521
24547
|
index
|
|
24522
24548
|
) : (
|
|
24523
24549
|
// eslint-disable-next-line react/no-array-index-key -- segments are positional
|
|
24524
|
-
/* @__PURE__ */ jsx(
|
|
24550
|
+
/* @__PURE__ */ jsx(React101.Fragment, { children: segment.text }, index)
|
|
24525
24551
|
)
|
|
24526
24552
|
) });
|
|
24527
24553
|
}
|
|
@@ -26037,7 +26063,7 @@ function PresentationPropertiesPanel({
|
|
|
26037
26063
|
onUpdateTagCollections
|
|
26038
26064
|
}) {
|
|
26039
26065
|
const { t } = useTranslation();
|
|
26040
|
-
const handleTransitionChange =
|
|
26066
|
+
const handleTransitionChange = React101.useCallback(
|
|
26041
26067
|
(updates) => {
|
|
26042
26068
|
onUpdateSlide({
|
|
26043
26069
|
transition: mergeSlideTransition(activeSlide?.transition, updates)
|
|
@@ -26046,15 +26072,15 @@ function PresentationPropertiesPanel({
|
|
|
26046
26072
|
[activeSlide?.transition, onUpdateSlide]
|
|
26047
26073
|
);
|
|
26048
26074
|
return /* @__PURE__ */ jsxs("div", { "data-pptx-chrome": "deck-properties", className: "space-y-3", children: [
|
|
26049
|
-
/* @__PURE__ */ jsx(
|
|
26075
|
+
/* @__PURE__ */ jsx("div", { "data-pptx-inspector-card": "presentation", children: /* @__PURE__ */ jsx(
|
|
26050
26076
|
PresentationSettingsCard,
|
|
26051
26077
|
{
|
|
26052
26078
|
presentationProperties,
|
|
26053
26079
|
canEdit,
|
|
26054
26080
|
onUpdate: onUpdatePresentationProperties
|
|
26055
26081
|
}
|
|
26056
|
-
),
|
|
26057
|
-
/* @__PURE__ */ jsx(
|
|
26082
|
+
) }),
|
|
26083
|
+
/* @__PURE__ */ jsx("div", { "data-pptx-inspector-card": "theme", children: /* @__PURE__ */ jsx(
|
|
26058
26084
|
ThemeSelectorCard,
|
|
26059
26085
|
{
|
|
26060
26086
|
themeOptions,
|
|
@@ -26063,8 +26089,8 @@ function PresentationPropertiesPanel({
|
|
|
26063
26089
|
canEdit,
|
|
26064
26090
|
onApplyTheme
|
|
26065
26091
|
}
|
|
26066
|
-
),
|
|
26067
|
-
/* @__PURE__ */ jsxs("div", { className: CARD2, children: [
|
|
26092
|
+
) }),
|
|
26093
|
+
/* @__PURE__ */ jsxs("div", { "data-pptx-inspector-card": "themeOverride", className: CARD2, children: [
|
|
26068
26094
|
/* @__PURE__ */ jsx("div", { className: HEADING2, children: t("pptx.themeOverride.heading") }),
|
|
26069
26095
|
/* @__PURE__ */ jsx(
|
|
26070
26096
|
SlideThemeOverridePanel,
|
|
@@ -26076,7 +26102,7 @@ function PresentationPropertiesPanel({
|
|
|
26076
26102
|
}
|
|
26077
26103
|
)
|
|
26078
26104
|
] }),
|
|
26079
|
-
/* @__PURE__ */ jsx(
|
|
26105
|
+
/* @__PURE__ */ jsx("div", { "data-pptx-inspector-card": "slideSize", children: /* @__PURE__ */ jsx(
|
|
26080
26106
|
SlideSizeCard,
|
|
26081
26107
|
{
|
|
26082
26108
|
canvasSize,
|
|
@@ -26086,24 +26112,24 @@ function PresentationPropertiesPanel({
|
|
|
26086
26112
|
onUpdateSlideSize,
|
|
26087
26113
|
hasContent
|
|
26088
26114
|
}
|
|
26089
|
-
),
|
|
26090
|
-
/* @__PURE__ */ jsx(
|
|
26115
|
+
) }),
|
|
26116
|
+
/* @__PURE__ */ jsx("div", { "data-pptx-inspector-card": "slideTransition", children: /* @__PURE__ */ jsx(
|
|
26091
26117
|
SlideTransitionSection,
|
|
26092
26118
|
{
|
|
26093
26119
|
activeSlide: activeSlide ?? null,
|
|
26094
26120
|
canEdit,
|
|
26095
26121
|
onTransitionChange: handleTransitionChange
|
|
26096
26122
|
}
|
|
26097
|
-
),
|
|
26098
|
-
/* @__PURE__ */ jsx(
|
|
26123
|
+
) }),
|
|
26124
|
+
/* @__PURE__ */ jsx("div", { "data-pptx-inspector-card": "notesHandout", children: /* @__PURE__ */ jsx(
|
|
26099
26125
|
NotesHandoutCard,
|
|
26100
26126
|
{
|
|
26101
26127
|
notesCanvasSize,
|
|
26102
26128
|
notesMaster,
|
|
26103
26129
|
handoutMaster
|
|
26104
26130
|
}
|
|
26105
|
-
),
|
|
26106
|
-
/* @__PURE__ */ jsx(
|
|
26131
|
+
) }),
|
|
26132
|
+
/* @__PURE__ */ jsx("div", { "data-pptx-inspector-card": "document", children: /* @__PURE__ */ jsx(
|
|
26107
26133
|
DocumentPropertiesCard,
|
|
26108
26134
|
{
|
|
26109
26135
|
coreProperties,
|
|
@@ -26114,16 +26140,16 @@ function PresentationPropertiesPanel({
|
|
|
26114
26140
|
onUpdateAppProperties,
|
|
26115
26141
|
onUpdateCustomProperties
|
|
26116
26142
|
}
|
|
26117
|
-
),
|
|
26118
|
-
tagCollections && onUpdateTagCollections && /* @__PURE__ */ jsx(
|
|
26143
|
+
) }),
|
|
26144
|
+
tagCollections && onUpdateTagCollections && /* @__PURE__ */ jsx("div", { "data-pptx-inspector-card": "tags", children: /* @__PURE__ */ jsx(
|
|
26119
26145
|
TagsSection,
|
|
26120
26146
|
{
|
|
26121
26147
|
tagCollections,
|
|
26122
26148
|
onUpdateTagCollections,
|
|
26123
26149
|
canEdit
|
|
26124
26150
|
}
|
|
26125
|
-
),
|
|
26126
|
-
activeSlide && /* @__PURE__ */ jsxs("div", { className: cn(CARD2, "space-y-1"), children: [
|
|
26151
|
+
) }),
|
|
26152
|
+
activeSlide && /* @__PURE__ */ jsxs("div", { "data-pptx-inspector-card": "slide", className: cn(CARD2, "space-y-1"), children: [
|
|
26127
26153
|
/* @__PURE__ */ jsx("div", { className: HEADING2, children: "Slide" }),
|
|
26128
26154
|
/* @__PURE__ */ jsxs("div", { className: "text-[11px] text-muted-foreground", children: [
|
|
26129
26155
|
activeSlide.elements?.length ?? 0,
|
|
@@ -29428,7 +29454,7 @@ function ViewerToolbarSection(props) {
|
|
|
29428
29454
|
},
|
|
29429
29455
|
[activeSlide, propertyHandlers]
|
|
29430
29456
|
);
|
|
29431
|
-
const scopedLayoutOptions =
|
|
29457
|
+
const scopedLayoutOptions = React101.useMemo(
|
|
29432
29458
|
() => scopeLayoutOptionsToActiveSlide(s.layoutOptions, activeSlide),
|
|
29433
29459
|
[s.layoutOptions, activeSlide]
|
|
29434
29460
|
);
|
|
@@ -30901,9 +30927,10 @@ function ViewerCanvasArea(props) {
|
|
|
30901
30927
|
() => buildFieldSubstitutionContext({
|
|
30902
30928
|
headerFooter: s.headerFooter,
|
|
30903
30929
|
customProperties: s.customProperties,
|
|
30904
|
-
slide: activeSlide
|
|
30930
|
+
slide: activeSlide,
|
|
30931
|
+
firstSlideNumber: s.firstSlideNumber
|
|
30905
30932
|
}),
|
|
30906
|
-
[s.headerFooter, s.customProperties, activeSlide]
|
|
30933
|
+
[s.headerFooter, s.customProperties, activeSlide, s.firstSlideNumber]
|
|
30907
30934
|
);
|
|
30908
30935
|
const tableStyleContext = useMemo(() => {
|
|
30909
30936
|
if (!s.theme && !s.tableStyleMap) {
|
|
@@ -31364,7 +31391,7 @@ function useTableStyleMapHandlers(input) {
|
|
|
31364
31391
|
var AiChatPanel = lazy(async () => {
|
|
31365
31392
|
const [{ useChat }, { default: Panel }] = await Promise.all([
|
|
31366
31393
|
import('@ai-sdk/react'),
|
|
31367
|
-
import('./AiChatPanel-
|
|
31394
|
+
import('./AiChatPanel-CX74JT77.mjs')
|
|
31368
31395
|
]);
|
|
31369
31396
|
function BoundAiChatPanel(props) {
|
|
31370
31397
|
return /* @__PURE__ */ jsx(Panel, { ...props, useChat });
|
|
@@ -32246,16 +32273,13 @@ function ViewerMainContent(props) {
|
|
|
32246
32273
|
slideOps,
|
|
32247
32274
|
findReplace
|
|
32248
32275
|
} = editorOps;
|
|
32249
|
-
const hf = state.headerFooter;
|
|
32250
32276
|
const thumbnailFieldContext = useMemo(
|
|
32251
|
-
() => ({
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
headerText: hf.headerText,
|
|
32256
|
-
customProperties: state.customProperties.map((p) => ({ name: p.name, value: p.value }))
|
|
32277
|
+
() => buildFieldSubstitutionContext({
|
|
32278
|
+
headerFooter: state.headerFooter,
|
|
32279
|
+
customProperties: state.customProperties,
|
|
32280
|
+
firstSlideNumber: state.firstSlideNumber
|
|
32257
32281
|
}),
|
|
32258
|
-
[
|
|
32282
|
+
[state.headerFooter, state.customProperties, state.firstSlideNumber]
|
|
32259
32283
|
);
|
|
32260
32284
|
const thumbnailTableStyleContext = useMemo(
|
|
32261
32285
|
() => state.theme || state.tableStyleMap ? { theme: state.theme, tableStyleMap: state.tableStyleMap } : void 0,
|
|
@@ -34719,7 +34743,11 @@ var PowerPointViewer = forwardRef(
|
|
|
34719
34743
|
});
|
|
34720
34744
|
const [isShareDialogOpen, setIsShareDialogOpen] = useState(false);
|
|
34721
34745
|
const { reducedMotion, toggleReducedMotion } = useReducedMotion();
|
|
34722
|
-
const state = useViewerState({
|
|
34746
|
+
const state = useViewerState({
|
|
34747
|
+
content,
|
|
34748
|
+
canEdit,
|
|
34749
|
+
inspectorInitiallyOpen: props.inspectorInitiallyOpen
|
|
34750
|
+
});
|
|
34723
34751
|
const {
|
|
34724
34752
|
containerRef,
|
|
34725
34753
|
mode,
|
|
Binary file
|
|
Binary file
|