pptx-react-viewer 4.43.0 → 4.45.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 +52 -0
- package/dist/{AiChatPanel-VI2IQ7XU.js → AiChatPanel-TGZQBH3L.js} +9 -9
- package/dist/AiChatPanel-TGZQBH3L.js.br +0 -0
- package/dist/AiChatPanel-TGZQBH3L.js.gz +0 -0
- package/dist/{AiChatPanel-R5UTSMXU.mjs → AiChatPanel-Z5VHI4WA.mjs} +1 -1
- package/dist/AiChatPanel-Z5VHI4WA.mjs.br +0 -0
- package/dist/AiChatPanel-Z5VHI4WA.mjs.gz +0 -0
- package/dist/{chunk-GLWV52C6.js → chunk-2YCROYR6.js} +333 -263
- package/dist/chunk-2YCROYR6.js.br +0 -0
- package/dist/chunk-2YCROYR6.js.gz +0 -0
- package/dist/{chunk-UACDKMXF.mjs → chunk-66APV3YZ.mjs} +91 -21
- package/dist/chunk-66APV3YZ.mjs.br +0 -0
- package/dist/chunk-66APV3YZ.mjs.gz +0 -0
- package/dist/{chunk-3LIHPZKS.mjs → chunk-FBN7UFW2.mjs} +15 -9
- package/dist/chunk-FBN7UFW2.mjs.br +0 -0
- package/dist/chunk-FBN7UFW2.mjs.gz +0 -0
- package/dist/{chunk-CHPELGQD.js → chunk-KUQRWMIK.js} +1455 -1434
- package/dist/chunk-KUQRWMIK.js.br +0 -0
- package/dist/chunk-KUQRWMIK.js.gz +0 -0
- package/dist/{chunk-FKY33ZKL.js → chunk-VJZJESNT.js} +14 -8
- package/dist/chunk-VJZJESNT.js.br +0 -0
- package/dist/chunk-VJZJESNT.js.gz +0 -0
- package/dist/{chunk-ITV63NJ5.mjs → chunk-VUE3EPTJ.mjs} +148 -127
- package/dist/chunk-VUE3EPTJ.mjs.br +0 -0
- package/dist/chunk-VUE3EPTJ.mjs.gz +0 -0
- package/dist/index.d.ts +21 -3
- 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 +12 -3
- 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 +14 -3
- 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 +3 -3
- package/dist/AiChatPanel-R5UTSMXU.mjs.br +0 -0
- package/dist/AiChatPanel-R5UTSMXU.mjs.gz +0 -0
- package/dist/AiChatPanel-VI2IQ7XU.js.br +0 -0
- package/dist/AiChatPanel-VI2IQ7XU.js.gz +0 -0
- package/dist/chunk-3LIHPZKS.mjs.br +0 -0
- package/dist/chunk-3LIHPZKS.mjs.gz +0 -0
- package/dist/chunk-CHPELGQD.js.br +0 -0
- package/dist/chunk-CHPELGQD.js.gz +0 -0
- package/dist/chunk-FKY33ZKL.js.br +0 -0
- package/dist/chunk-FKY33ZKL.js.gz +0 -0
- package/dist/chunk-GLWV52C6.js.br +0 -0
- package/dist/chunk-GLWV52C6.js.gz +0 -0
- package/dist/chunk-ITV63NJ5.mjs.br +0 -0
- package/dist/chunk-ITV63NJ5.mjs.gz +0 -0
- package/dist/chunk-UACDKMXF.mjs.br +0 -0
- package/dist/chunk-UACDKMXF.mjs.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, ChartFormatContext, useCollaboration, useCollaborationDocumentSync, useFollowMode, useBroadcastFollower, SlideBackgroundImageLayer, StaticElementRenderer, safePrompt, scopeLayoutOptionsToActiveSlide, createReviewCommentsHost, ChartPartSelectionProvider, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, ViewerOptionsStoreContext, ViewerOptionsContext, useViewerOptionsContext, useVirtualizedSlides, useSwipeNavigation, PresentationTransitionOverlay, RemoteSelectionOverlay, CollaborationCursorOverlay, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, ElementRenderer, InlineCollaborationContext, useChartFormatContext, 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, 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, isEditingAllowed, 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, createDeckStyleHost, galleryDeckView, tableLayoutCells, resetChartFormatTarget, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, EDITOR_CHROME_CSS, ribbonCustomizationCss, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, buildFieldSubstitutionContext, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, observeElementHeight, printPropertiesFrameSlides, printPropertiesSlidesPerPage, PASTE_SPECIAL_OPTIONS, findCanvasElementNode, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, getDensePanelTouchTargetPx, shouldStickyActionRow, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, shouldClearAutosaveCacheOnClose, canCropElement, cropSessionChanged, cancelCropUpdate, startCropSession, homeLaunchers, attachRibbonOverflow, getRegionRenderer, ViewerRegionHost, editorThumbnailWidth, masterViewBackgroundColor, resolvePresentationAction, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, resolveEditPointsAvailability, isCurrentLayout, EXPANDED_MAX_HEIGHT, resolveStatusBarSave, statusBarViewMode, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, resolveDefaultPrintSettings, HANDOUT_OPTIONS, bindPptxOptionsDialog, optionsBlockSlot, optionsPaneSlot, DEFAULT_QUICK_ACCESS_COMMAND_IDS, AI_OPTIONS_CATEGORY, activateModalFocus, buildCollaborationShareUrl, buildActiveSessionUsers, slideClipboardLabels, sorterPasteInsertAt, SORTER_MIN_ZOOM, SORTER_ZOOM_STEP, SORTER_MAX_ZOOM, canGoPrevious, formatSlideCounter, READING_VIEW_COUNTER_ATTR, canGoNext, READING_VIEW_ATTR, listenForOutlineViewDismiss, 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, backstageNavEntries, 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, FIXED_TAB_GALLERIES, DESIGN_RIBBON_COMMANDS, designCommandState, 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, describeElementChange, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeAllNotesPages, getNotesPrintableArea, CUSTOM_FONT_ACCEPT, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, resolveViewerAddinRows, 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, resolveInsertSlideLayout, SLIDE_TEMPLATES, 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, trackActiveComment, commentCounts, findCommentLocation, buildReviewRibbon, HELP_RIBBON_COMMANDS, galleryTextLabel, pictureSizeHomeControls, chartSelectionHomeControls, dispatchChartSelectionRequest, sectionAddAfterSlideIndex, masterViewPseudoSlide, PRESENTATION_ANIM_TRIGGER_ATTRIBUTE, parentSelection, slideSpaceElement, isGroupMember, motionPathFor, setMotionPath, shouldShowElementHandles, computeAnchoredPopupPosition, applyTableStyleDelete, applyTableStyleMapChange, registerCustomFont, QUICK_ACCESS_COMMAND_CATALOG, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, buildSlideTemplateContent, getSelectionTextStyleFlags, TEXT_DECORATION_FLAGS, dispatchCropRequest, applyRibbonGalleryItem, ribbonTransitionsDraftPatch, ribbonTransitionUpdates, ribbonTransitionsSoundChange, ribbonTransitionStockSoundUrl, playSlideTransitionPreview, playAnimationRibbonPreview, SLIDE_SHOW_OPTIONS, createViewerOptionsStore, subtitleSettingsLabels, isReviewCommentCommand, runReviewCommentCommand, 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, 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, shapeQuickStyleLabel, OFFICE_COLOR_SWATCHES, officeColorSwatchLabel, 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, ChartFormatContext, useCollaboration, useCollaborationDocumentSync, useFollowMode, useBroadcastFollower, SlideBackgroundImageLayer, StaticElementRenderer, safePrompt, scopeLayoutOptionsToActiveSlide, createReviewCommentsHost, ChartPartSelectionProvider, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, ViewerOptionsStoreContext, ViewerOptionsContext, useViewerOptionsContext, useVirtualizedSlides, useSwipeNavigation, PresentationTransitionOverlay, RemoteSelectionOverlay, CollaborationCursorOverlay, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, ElementRenderer, InlineCollaborationContext, useChartFormatContext, SmartArtRenderer, downloadBlob, playAnimationSound, ResizeHandles, imgSrc, renderStrokeView, useChartPartSelection, DUOTONE_PRESETS, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, resolveSmartArtDataPalette } from './chunk-66APV3YZ.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, 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-FBN7UFW2.mjs';
|
|
3
|
+
import { EMPTY_RESOLVED_CUSTOMIZATION, ANIMATION_DIRECTION_LABEL_KEYS, compileEquationTemplateMathMl, resolveCollaborationConfig, resolveViewerRootOptions, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, isFeatureEnabled, isDialogAvailable, isEditingAllowed, 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, createDeckStyleHost, galleryDeckView, tableLayoutCells, resetChartFormatTarget, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, EDITOR_CHROME_CSS, ribbonCustomizationCss, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, buildFieldSubstitutionContext, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, observeElementHeight, printPropertiesFrameSlides, printPropertiesSlidesPerPage, PASTE_SPECIAL_OPTIONS, findCanvasElementNode, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, getDensePanelTouchTargetPx, shouldStickyActionRow, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, createCollaborationStateReporter, buildCollaborationState, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, shouldClearAutosaveCacheOnClose, canCropElement, cropSessionChanged, cancelCropUpdate, startCropSession, homeLaunchers, attachRibbonOverflow, getRegionRenderer, ViewerRegionHost, editorThumbnailWidth, masterViewBackgroundColor, resolvePresentationAction, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, resolveEditPointsAvailability, isCurrentLayout, EXPANDED_MAX_HEIGHT, resolveStatusBarSave, statusBarViewMode, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, resolveDefaultPrintSettings, HANDOUT_OPTIONS, bindPptxOptionsDialog, optionsBlockSlot, optionsPaneSlot, DEFAULT_QUICK_ACCESS_COMMAND_IDS, AI_OPTIONS_CATEGORY, activateModalFocus, buildCollaborationShareUrl, buildActiveSessionUsers, slideClipboardLabels, sorterPasteInsertAt, SORTER_MIN_ZOOM, SORTER_ZOOM_STEP, SORTER_MAX_ZOOM, canGoPrevious, formatSlideCounter, READING_VIEW_COUNTER_ATTR, canGoNext, READING_VIEW_ATTR, listenForOutlineViewDismiss, 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, backstageNavEntries, 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, FIXED_TAB_GALLERIES, DESIGN_RIBBON_COMMANDS, designCommandState, 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, describeElementChange, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeAllNotesPages, getNotesPrintableArea, CUSTOM_FONT_ACCEPT, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, resolveViewerAddinRows, 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, resolveInsertSlideLayout, SLIDE_TEMPLATES, 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, buildRecordRibbon, trackActiveComment, commentCounts, findCommentLocation, buildReviewRibbon, buildHelpRibbon, galleryTextLabel, pictureSizeHomeControls, chartSelectionHomeControls, dispatchChartSelectionRequest, sectionAddAfterSlideIndex, masterViewPseudoSlide, PRESENTATION_ANIM_TRIGGER_ATTRIBUTE, parentSelection, slideSpaceElement, isGroupMember, motionPathFor, setMotionPath, shouldShowElementHandles, computeAnchoredPopupPosition, applyTableStyleDelete, applyTableStyleMapChange, registerCustomFont, QUICK_ACCESS_COMMAND_CATALOG, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, buildSlideTemplateContent, getSelectionTextStyleFlags, TEXT_DECORATION_FLAGS, dispatchCropRequest, applyRibbonGalleryItem, ribbonTransitionsDraftPatch, ribbonTransitionUpdates, ribbonTransitionsSoundChange, ribbonTransitionStockSoundUrl, playSlideTransitionPreview, playAnimationRibbonPreview, SLIDE_SHOW_OPTIONS, createViewerOptionsStore, subtitleSettingsLabels, isReviewCommentCommand, runReviewCommentCommand, 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, 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, themeColorGridView, 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, shapeQuickStyleLabel, OFFICE_COLOR_SWATCHES, officeColorSwatchLabel, 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, themeColorGridCommit, buildTextWarpGallery, TEXT_WARP_PRESETS, 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, textWarpStyle, 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 React106, { createContext, lazy, forwardRef, useEffect, useState, useCallback, useMemo, useRef, useLayoutEffect, useSyncExternalStore, useId, useContext, useDeferredValue, Fragment as Fragment$1, Suspense, useReducer } 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, LuX, LuCalendarDays, LuClock, LuHash, LuFileText, LuText, LuCast, LuShieldCheck, LuPlus, LuPanelLeftClose, LuDownload, LuTrash2, LuCheck, LuLock, LuEye, LuType, LuLoader, LuShieldAlert, LuSignature, LuInfo, LuTriangleAlert, LuPrinter, LuPenTool, LuWifi, LuWifiOff, LuUsers, LuCopy, LuMinus, LuChevronLeft, LuChevronRight, LuPlay, LuPause, LuPanelLeft, LuPanelRight, LuSparkles, LuSettings, LuFolderOpen, LuPalette, LuSearch, LuCaseSensitive, LuChevronUp, LuChevronDown, LuReplace, LuGripVertical, LuLoaderCircle, LuUpload, LuGrid2X2, LuStickyNote, LuList, LuBug, 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';
|
|
@@ -1126,7 +1126,7 @@ function WebHomeControls({
|
|
|
1126
1126
|
host.addEventListener("home-popup", listener);
|
|
1127
1127
|
return () => host.removeEventListener("home-popup", listener);
|
|
1128
1128
|
}, [onPopup]);
|
|
1129
|
-
return
|
|
1129
|
+
return React106.createElement(`pptx-ui-ribbon-home-${family}`, { ref });
|
|
1130
1130
|
}
|
|
1131
1131
|
function ShapeArrangeExtras(p) {
|
|
1132
1132
|
const commands = useShapeFormatContext();
|
|
@@ -1662,7 +1662,7 @@ function AccountPage() {
|
|
|
1662
1662
|
return void 0;
|
|
1663
1663
|
});
|
|
1664
1664
|
};
|
|
1665
|
-
const version = "4.
|
|
1665
|
+
const version = "4.45.0" ;
|
|
1666
1666
|
return /* @__PURE__ */ jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
|
|
1667
1667
|
/* @__PURE__ */ jsxs("section", { className: cardClass, children: [
|
|
1668
1668
|
/* @__PURE__ */ jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
@@ -4445,43 +4445,34 @@ function useContextualRibbonTab(selectedElement, customization, onFallback) {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
function HelpSection(p) {
|
|
4447
4447
|
const { t } = useTranslation();
|
|
4448
|
-
const
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4448
|
+
const groups = buildHelpRibbon(t, {
|
|
4449
|
+
options: isDialogAvailable(useViewerCustomizationContext(), "options")
|
|
4450
|
+
});
|
|
4451
|
+
const request = (id) => {
|
|
4452
|
+
switch (id) {
|
|
4453
|
+
case "help.help.options":
|
|
4454
|
+
(p.onOpenSettings ?? p.onToggleShortcuts)();
|
|
4455
|
+
break;
|
|
4456
|
+
case "help.help.keyboardShortcuts":
|
|
4457
|
+
p.onToggleShortcuts();
|
|
4458
|
+
break;
|
|
4459
|
+
case "help.help.accessibility":
|
|
4460
|
+
p.onRunAccessibilityCheck();
|
|
4461
|
+
break;
|
|
4462
|
+
}
|
|
4453
4463
|
};
|
|
4454
|
-
return /* @__PURE__ */ jsx(
|
|
4455
|
-
(command) => command.id !== "help.help.options" || showSettings
|
|
4456
|
-
).map((command) => /* @__PURE__ */ jsx(
|
|
4457
|
-
WebRibbonCommand,
|
|
4458
|
-
{
|
|
4459
|
-
controlId: command.id,
|
|
4460
|
-
label: t(command.labelKey),
|
|
4461
|
-
icon: command.icon,
|
|
4462
|
-
compact: true,
|
|
4463
|
-
onCommand: () => actions[command.id]()
|
|
4464
|
-
},
|
|
4465
|
-
command.id
|
|
4466
|
-
)) });
|
|
4464
|
+
return /* @__PURE__ */ jsx(WebRibbonSection, { groups, onCommand: request });
|
|
4467
4465
|
}
|
|
4468
4466
|
function RecordSection(props) {
|
|
4469
4467
|
const { t } = useTranslation();
|
|
4470
|
-
const
|
|
4471
|
-
"record.record.fromBeginning"
|
|
4472
|
-
|
|
4468
|
+
const request = (id) => {
|
|
4469
|
+
if (id === "record.record.fromBeginning") {
|
|
4470
|
+
props.onRecordFromBeginning();
|
|
4471
|
+
} else if (id === "record.record.fromCurrent") {
|
|
4472
|
+
props.onRecordFromCurrent();
|
|
4473
|
+
}
|
|
4473
4474
|
};
|
|
4474
|
-
return /* @__PURE__ */ jsx(
|
|
4475
|
-
WebRibbonCommand,
|
|
4476
|
-
{
|
|
4477
|
-
controlId: command.id,
|
|
4478
|
-
label: t(command.labelKey),
|
|
4479
|
-
icon: command.icon,
|
|
4480
|
-
disabled: command.unsupported,
|
|
4481
|
-
onCommand: actions[command.id]
|
|
4482
|
-
},
|
|
4483
|
-
command.id
|
|
4484
|
-
)) }, group.id)) });
|
|
4475
|
+
return /* @__PURE__ */ jsx(WebRibbonSection, { groups: buildRecordRibbon(t), onCommand: request });
|
|
4485
4476
|
}
|
|
4486
4477
|
function ToolbarLateTabs({
|
|
4487
4478
|
p,
|
|
@@ -5180,7 +5171,7 @@ function ChartQuickActionsOverlay({
|
|
|
5180
5171
|
"data-export-ignore": "true",
|
|
5181
5172
|
style: { position: "absolute", left: 0, top: 0, zIndex: 59 },
|
|
5182
5173
|
onMouseDown: (e) => e.stopPropagation(),
|
|
5183
|
-
children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(
|
|
5174
|
+
children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(React106.Fragment, { children: [
|
|
5184
5175
|
/* @__PURE__ */ jsx(
|
|
5185
5176
|
"button",
|
|
5186
5177
|
{
|
|
@@ -5200,7 +5191,7 @@ function ChartQuickActionsOverlay({
|
|
|
5200
5191
|
transformOrigin: "top left"
|
|
5201
5192
|
},
|
|
5202
5193
|
className: "flex items-center justify-center rounded bg-white border border-gray-300 shadow-sm hover:bg-gray-100 text-gray-700",
|
|
5203
|
-
children:
|
|
5194
|
+
children: React106.createElement(ICONS3[button.id], { className: "size-3.5" })
|
|
5204
5195
|
}
|
|
5205
5196
|
),
|
|
5206
5197
|
open === button.id && button.id === "elements" && /* @__PURE__ */ jsxs(
|
|
@@ -6346,7 +6337,7 @@ function HorizontalRulerView({ ticks, widthPx, highlight }) {
|
|
|
6346
6337
|
}
|
|
6347
6338
|
);
|
|
6348
6339
|
}
|
|
6349
|
-
var HorizontalRuler =
|
|
6340
|
+
var HorizontalRuler = React106.memo(HorizontalRulerView);
|
|
6350
6341
|
HorizontalRuler.displayName = "HorizontalRuler";
|
|
6351
6342
|
function VerticalRulerView({ ticks, heightPx, highlight }) {
|
|
6352
6343
|
return /* @__PURE__ */ jsxs(
|
|
@@ -6418,7 +6409,7 @@ function VerticalRulerView({ ticks, heightPx, highlight }) {
|
|
|
6418
6409
|
}
|
|
6419
6410
|
);
|
|
6420
6411
|
}
|
|
6421
|
-
var VerticalRuler =
|
|
6412
|
+
var VerticalRuler = React106.memo(VerticalRulerView);
|
|
6422
6413
|
VerticalRuler.displayName = "VerticalRuler";
|
|
6423
6414
|
function Ruler({
|
|
6424
6415
|
canvasSize,
|
|
@@ -8300,7 +8291,7 @@ function slideThumbnailPropsEqual(prev, next) {
|
|
|
8300
8291
|
}
|
|
8301
8292
|
return true;
|
|
8302
8293
|
}
|
|
8303
|
-
var SlideThumbnail =
|
|
8294
|
+
var SlideThumbnail = React106.memo(SlideThumbnailImpl, slideThumbnailPropsEqual);
|
|
8304
8295
|
function tableCell(props) {
|
|
8305
8296
|
const { selectedElement, tableEditorState } = props;
|
|
8306
8297
|
if (selectedElement?.type !== "table" || tableEditorState === null) {
|
|
@@ -8804,7 +8795,7 @@ function SectionContextMenu({
|
|
|
8804
8795
|
className: "fixed z-50 min-w-[160px] rounded-md border border-border bg-popover py-1 text-xs text-foreground shadow-xl",
|
|
8805
8796
|
style: { left: state.x, top: state.y },
|
|
8806
8797
|
onClick: (e) => e.stopPropagation(),
|
|
8807
|
-
children: entries.map((entry) => /* @__PURE__ */ jsxs(
|
|
8798
|
+
children: entries.map((entry) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
8808
8799
|
entry.separatorBefore && /* @__PURE__ */ jsx(ContextMenuSeparator, {}),
|
|
8809
8800
|
/* @__PURE__ */ jsx(ContextMenuItem, { disabled: entry.disabled, onSelect: () => run(entry.id), children: t(entry.labelKey) })
|
|
8810
8801
|
] }, entry.id))
|
|
@@ -8997,7 +8988,7 @@ function LazyThumbnailInner({
|
|
|
8997
8988
|
}
|
|
8998
8989
|
) });
|
|
8999
8990
|
}
|
|
9000
|
-
var LazyThumbnail =
|
|
8991
|
+
var LazyThumbnail = React106.memo(LazyThumbnailInner);
|
|
9001
8992
|
function declaredSectionFacts(groups, sectionId) {
|
|
9002
8993
|
const declared = groups.filter((group) => group.id !== DEFAULT_SECTION_GROUP_ID && group.id !== UNGROUPED_SECTION_ID).map((group) => group.id);
|
|
9003
8994
|
return {
|
|
@@ -9165,7 +9156,7 @@ function SlideItemInner({
|
|
|
9165
9156
|
}
|
|
9166
9157
|
);
|
|
9167
9158
|
}
|
|
9168
|
-
var SlideItem =
|
|
9159
|
+
var SlideItem = React106.memo(SlideItemInner);
|
|
9169
9160
|
function useSlidePaneCallbacks(onMoveSlide, onRenameSection, onToggleSectionCollapse) {
|
|
9170
9161
|
const [collapsedSections, setCollapsedSections] = useState({});
|
|
9171
9162
|
const [renamingSectionId, setRenamingSectionId] = useState(null);
|
|
@@ -10578,7 +10569,7 @@ function arePropsEqual(prev, next) {
|
|
|
10578
10569
|
}
|
|
10579
10570
|
return true;
|
|
10580
10571
|
}
|
|
10581
|
-
var SlideCard =
|
|
10572
|
+
var SlideCard = React106.memo(SlideCardImpl, arePropsEqual);
|
|
10582
10573
|
var ICON_CLASS = "h-3.5 w-3.5 text-muted-foreground";
|
|
10583
10574
|
function SorterContextMenu({
|
|
10584
10575
|
x,
|
|
@@ -10641,7 +10632,7 @@ function SorterContextMenu({
|
|
|
10641
10632
|
"aria-label": t("pptx.slideSorter.title"),
|
|
10642
10633
|
className: "fixed z-[120] min-w-[200px] rounded border border-border bg-popover shadow-2xl py-1.5 text-xs text-foreground",
|
|
10643
10634
|
style: { left: menuX, top: menuY },
|
|
10644
|
-
children: entries.map((entry) => /* @__PURE__ */ jsxs(
|
|
10635
|
+
children: entries.map((entry) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
10645
10636
|
entry.separatorBefore && /* @__PURE__ */ jsx(ContextMenuSeparator, {}),
|
|
10646
10637
|
/* @__PURE__ */ jsxs(
|
|
10647
10638
|
"button",
|
|
@@ -11003,7 +10994,7 @@ function SlideSorterOverlay({
|
|
|
11003
10994
|
count: state.selectedSlideIds.length
|
|
11004
10995
|
}) })
|
|
11005
10996
|
] }),
|
|
11006
|
-
|
|
10997
|
+
React106.createElement("pptx-ui-slide-clipboard", {
|
|
11007
10998
|
ref: (node) => {
|
|
11008
10999
|
if (!node) {
|
|
11009
11000
|
return;
|
|
@@ -11919,8 +11910,8 @@ function SlideNotesPanel({
|
|
|
11919
11910
|
onHeightChange
|
|
11920
11911
|
}) {
|
|
11921
11912
|
const { t } = useTranslation();
|
|
11922
|
-
const rootRef =
|
|
11923
|
-
|
|
11913
|
+
const rootRef = React106.useRef(null);
|
|
11914
|
+
React106.useEffect(() => {
|
|
11924
11915
|
const el = rootRef.current;
|
|
11925
11916
|
if (!el || !onHeightChange) {
|
|
11926
11917
|
return void 0;
|
|
@@ -13763,9 +13754,9 @@ function PresentationSubtitleBar({
|
|
|
13763
13754
|
function renderNotesSegments(segments) {
|
|
13764
13755
|
return notesSegmentsToSpans(segments).map((span) => {
|
|
13765
13756
|
if (span.kind === "break") {
|
|
13766
|
-
return
|
|
13757
|
+
return React106.createElement("br", { key: span.key });
|
|
13767
13758
|
}
|
|
13768
|
-
return
|
|
13759
|
+
return React106.createElement(
|
|
13769
13760
|
"span",
|
|
13770
13761
|
{ key: span.key, style: span.style },
|
|
13771
13762
|
span.text
|
|
@@ -13941,7 +13932,7 @@ function scaledSlidePreviewPropsEqual(prev, next) {
|
|
|
13941
13932
|
}
|
|
13942
13933
|
return true;
|
|
13943
13934
|
}
|
|
13944
|
-
var ScaledSlidePreview =
|
|
13935
|
+
var ScaledSlidePreview = React106.memo(ScaledSlidePreviewImpl, scaledSlidePreviewPropsEqual);
|
|
13945
13936
|
function PresenterNotesRail({
|
|
13946
13937
|
slides,
|
|
13947
13938
|
current,
|
|
@@ -15170,7 +15161,7 @@ function EffectSoundRow({
|
|
|
15170
15161
|
onPickStock
|
|
15171
15162
|
}) {
|
|
15172
15163
|
const { t } = useTranslation();
|
|
15173
|
-
const fileInputRef =
|
|
15164
|
+
const fileInputRef = React106.useRef(null);
|
|
15174
15165
|
const selectedValue = soundState.catalogueId ?? (soundState.hasSound ? CURRENT_VALUE : NONE_VALUE);
|
|
15175
15166
|
const handleSelectChange = (event) => {
|
|
15176
15167
|
const value = event.target.value;
|
|
@@ -18741,7 +18732,7 @@ function ConnectorArrowsSection({
|
|
|
18741
18732
|
["Start", "End"].map((end) => {
|
|
18742
18733
|
const widthKey = end === "Start" ? "connectorStartArrowWidth" : "connectorEndArrowWidth";
|
|
18743
18734
|
const lengthKey = end === "Start" ? "connectorStartArrowLength" : "connectorEndArrowLength";
|
|
18744
|
-
return /* @__PURE__ */ jsxs(
|
|
18735
|
+
return /* @__PURE__ */ jsxs(React106.Fragment, { children: [
|
|
18745
18736
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
18746
18737
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t(END_LABEL_KEYS[end].width) }),
|
|
18747
18738
|
/* @__PURE__ */ jsx(
|
|
@@ -21029,7 +21020,6 @@ function RecentColorsRow({
|
|
|
21029
21020
|
);
|
|
21030
21021
|
}
|
|
21031
21022
|
function ThemeColorSwatchGrid({
|
|
21032
|
-
prefix,
|
|
21033
21023
|
disabled,
|
|
21034
21024
|
selectedRef,
|
|
21035
21025
|
selectedHex,
|
|
@@ -21041,36 +21031,39 @@ function ThemeColorSwatchGrid({
|
|
|
21041
21031
|
() => buildThemeColorSwatchGrid(themeColorMap, (key, params) => t(key, params)),
|
|
21042
21032
|
[themeColorMap, t]
|
|
21043
21033
|
);
|
|
21044
|
-
const
|
|
21045
|
-
|
|
21046
|
-
|
|
21047
|
-
|
|
21048
|
-
|
|
21034
|
+
const ref = useRef(null);
|
|
21035
|
+
useLayoutEffect(() => {
|
|
21036
|
+
const grid = ref.current;
|
|
21037
|
+
if (!grid) {
|
|
21038
|
+
return;
|
|
21039
|
+
}
|
|
21040
|
+
const view = themeColorGridView(columns, selectedRef, selectedHex);
|
|
21041
|
+
const heading = t("pptx.colorPicker.themeColors");
|
|
21042
|
+
grid.palette = view.palette;
|
|
21043
|
+
grid.selectedTheme = view.selectedTheme;
|
|
21044
|
+
grid.standardColors = [];
|
|
21045
|
+
grid.themeHeading = heading;
|
|
21046
|
+
grid.label = heading;
|
|
21047
|
+
grid.disabled = Boolean(disabled);
|
|
21048
|
+
}, [columns, selectedRef, selectedHex, disabled, t]);
|
|
21049
|
+
useEffect(() => {
|
|
21050
|
+
const grid = ref.current;
|
|
21051
|
+
if (!grid) {
|
|
21052
|
+
return;
|
|
21053
|
+
}
|
|
21054
|
+
const pick = (event) => {
|
|
21055
|
+
const commit = themeColorGridCommit(columns, event.detail);
|
|
21056
|
+
if (commit) {
|
|
21057
|
+
onPick(commit);
|
|
21058
|
+
}
|
|
21059
|
+
};
|
|
21060
|
+
grid.addEventListener("office-color-pick", pick);
|
|
21061
|
+
return () => grid.removeEventListener("office-color-pick", pick);
|
|
21062
|
+
}, [columns, onPick]);
|
|
21049
21063
|
if (columns.length === 0) {
|
|
21050
21064
|
return null;
|
|
21051
21065
|
}
|
|
21052
|
-
return /* @__PURE__ */
|
|
21053
|
-
/* @__PURE__ */ jsx("div", { className: "text-[10px] text-muted-foreground mb-1", children: t("pptx.colorPicker.themeColors") }),
|
|
21054
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0.5", children: rows.map((row, rowIndex) => (
|
|
21055
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
21056
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-0.5", children: row.map(
|
|
21057
|
-
(swatch, colIndex) => swatch ? /* @__PURE__ */ jsx(
|
|
21058
|
-
"button",
|
|
21059
|
-
{
|
|
21060
|
-
type: "button",
|
|
21061
|
-
disabled,
|
|
21062
|
-
"data-pptx-compact": true,
|
|
21063
|
-
title: swatch.label,
|
|
21064
|
-
"aria-label": swatch.label,
|
|
21065
|
-
className: `h-4 w-4 rounded-sm border transition-transform hover:scale-110 disabled:opacity-40 disabled:cursor-not-allowed ${selected === swatch ? "border-primary ring-1 ring-primary" : "border-border"}`,
|
|
21066
|
-
style: { backgroundColor: swatch.hex },
|
|
21067
|
-
onClick: () => onPick(themeSwatchCommit(swatch))
|
|
21068
|
-
},
|
|
21069
|
-
`${prefix}-theme-${swatch.ref.scheme}-${rowIndex}`
|
|
21070
|
-
) : /* @__PURE__ */ jsx("div", { className: "h-4 w-4" }, `${prefix}-theme-empty-${rowIndex}-${colIndex}`)
|
|
21071
|
-
) }, `${prefix}-theme-row-${rowIndex}`)
|
|
21072
|
-
)) })
|
|
21073
|
-
] });
|
|
21066
|
+
return /* @__PURE__ */ jsx("pptx-ui-color-grid", { ref, className: "mt-1" });
|
|
21074
21067
|
}
|
|
21075
21068
|
function EffectField({
|
|
21076
21069
|
field,
|
|
@@ -21247,7 +21240,6 @@ function ColorPickerRow({
|
|
|
21247
21240
|
/* @__PURE__ */ jsx(
|
|
21248
21241
|
ThemeColorSwatchGrid,
|
|
21249
21242
|
{
|
|
21250
|
-
prefix,
|
|
21251
21243
|
disabled,
|
|
21252
21244
|
selectedRef,
|
|
21253
21245
|
selectedHex: value,
|
|
@@ -21327,7 +21319,6 @@ function GradientStopRow({
|
|
|
21327
21319
|
/* @__PURE__ */ jsx(
|
|
21328
21320
|
ThemeColorSwatchGrid,
|
|
21329
21321
|
{
|
|
21330
|
-
prefix: `gradient-stop-${index}`,
|
|
21331
21322
|
selectedRef: stop2.colorRef,
|
|
21332
21323
|
selectedHex: stop2.color,
|
|
21333
21324
|
onPick: (c) => {
|
|
@@ -21669,7 +21660,7 @@ function StrokeEffectsSection({
|
|
|
21669
21660
|
] }),
|
|
21670
21661
|
EFFECT_CONFIGS.map((cfg) => {
|
|
21671
21662
|
const on = cfg.isOn(style);
|
|
21672
|
-
return /* @__PURE__ */ jsxs(
|
|
21663
|
+
return /* @__PURE__ */ jsxs(React106.Fragment, { children: [
|
|
21673
21664
|
/* @__PURE__ */ jsxs("label", { className: `inline-flex items-center gap-2 text-foreground ${COL2}`, children: [
|
|
21674
21665
|
/* @__PURE__ */ jsx(
|
|
21675
21666
|
WebCheckbox,
|
|
@@ -22524,8 +22515,31 @@ function TextWarpGallery({
|
|
|
22524
22515
|
onUpdateTextStyle
|
|
22525
22516
|
}) {
|
|
22526
22517
|
const { t } = useTranslation();
|
|
22527
|
-
const [expanded, setExpanded] =
|
|
22518
|
+
const [expanded, setExpanded] = React106.useState(false);
|
|
22528
22519
|
const currentPreset = ts?.textWarpPreset || "textNoShape";
|
|
22520
|
+
const descriptor = useMemo(() => buildTextWarpGallery(ts?.textWarpPreset), [ts?.textWarpPreset]);
|
|
22521
|
+
const ref = useRef(null);
|
|
22522
|
+
useLayoutEffect(() => {
|
|
22523
|
+
const gallery = ref.current;
|
|
22524
|
+
if (gallery) {
|
|
22525
|
+
gallery.descriptor = descriptor;
|
|
22526
|
+
gallery.translateLabel = t;
|
|
22527
|
+
}
|
|
22528
|
+
}, [descriptor, t]);
|
|
22529
|
+
useEffect(() => {
|
|
22530
|
+
const gallery = ref.current;
|
|
22531
|
+
if (!gallery) {
|
|
22532
|
+
return;
|
|
22533
|
+
}
|
|
22534
|
+
const pick = (event) => {
|
|
22535
|
+
const style = textWarpStyle(event.detail.itemId);
|
|
22536
|
+
if (style) {
|
|
22537
|
+
onUpdateTextStyle(style);
|
|
22538
|
+
}
|
|
22539
|
+
};
|
|
22540
|
+
gallery.addEventListener("gallery-pick", pick);
|
|
22541
|
+
return () => gallery.removeEventListener("gallery-pick", pick);
|
|
22542
|
+
}, [onUpdateTextStyle]);
|
|
22529
22543
|
return /* @__PURE__ */ jsxs("div", { className: "mt-2 rounded border border-border bg-card p-2 space-y-2", children: [
|
|
22530
22544
|
/* @__PURE__ */ jsxs(
|
|
22531
22545
|
"button",
|
|
@@ -22543,29 +22557,7 @@ function TextWarpGallery({
|
|
|
22543
22557
|
const current = TEXT_WARP_PRESETS.find((p) => p.value === currentPreset);
|
|
22544
22558
|
return current ? t(current.labelKey) : currentPreset;
|
|
22545
22559
|
})() }),
|
|
22546
|
-
|
|
22547
|
-
"button",
|
|
22548
|
-
{
|
|
22549
|
-
type: "button",
|
|
22550
|
-
title: t(labelKey),
|
|
22551
|
-
"aria-label": t(labelKey),
|
|
22552
|
-
className: `flex items-center justify-center rounded p-1 ${currentPreset === value ? "bg-primary ring-1 ring-primary" : "bg-muted hover:bg-accent"}`,
|
|
22553
|
-
onClick: () => onUpdateTextStyle({
|
|
22554
|
-
textWarpPreset: value === "textNoShape" ? void 0 : value
|
|
22555
|
-
}),
|
|
22556
|
-
children: /* @__PURE__ */ jsx("svg", { width: 40, height: 20, viewBox: "0 0 40 20", children: /* @__PURE__ */ jsx(
|
|
22557
|
-
"path",
|
|
22558
|
-
{
|
|
22559
|
-
d: warpPreviewPath(value),
|
|
22560
|
-
stroke: "currentColor",
|
|
22561
|
-
strokeWidth: 1.5,
|
|
22562
|
-
fill: "none",
|
|
22563
|
-
className: currentPreset === value ? "text-white" : "text-muted-foreground"
|
|
22564
|
-
}
|
|
22565
|
-
) })
|
|
22566
|
-
},
|
|
22567
|
-
value
|
|
22568
|
-
)) })
|
|
22560
|
+
/* @__PURE__ */ jsx("div", { hidden: !expanded, children: /* @__PURE__ */ jsx("pptx-ui-ribbon-gallery", { ref, mode: "panel", compact: true }) })
|
|
22569
22561
|
] });
|
|
22570
22562
|
}
|
|
22571
22563
|
function TextAdvancedSections({
|
|
@@ -22670,7 +22662,6 @@ function ShapeTextPanels({
|
|
|
22670
22662
|
/* @__PURE__ */ jsx("div", { className: "col-span-2", children: /* @__PURE__ */ jsx(
|
|
22671
22663
|
ThemeColorSwatchGrid,
|
|
22672
22664
|
{
|
|
22673
|
-
prefix: "text-color",
|
|
22674
22665
|
disabled: !canEdit,
|
|
22675
22666
|
selectedRef: selectedElement.textStyle?.colorRef,
|
|
22676
22667
|
selectedHex: selectedElement.textStyle?.color,
|
|
@@ -23170,7 +23161,7 @@ function SmartArtStyleControls({
|
|
|
23170
23161
|
onChangeStyle
|
|
23171
23162
|
}) {
|
|
23172
23163
|
const { t } = useTranslation();
|
|
23173
|
-
const translate =
|
|
23164
|
+
const translate = React106.useCallback((key) => t(key), [t]);
|
|
23174
23165
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
23175
23166
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1 text-[11px]", children: [
|
|
23176
23167
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.smartart.colorScheme") }),
|
|
@@ -23225,9 +23216,9 @@ function SmartArtPropertiesPanel({
|
|
|
23225
23216
|
const nodes = smartArtData.nodes ?? [];
|
|
23226
23217
|
const layout = smartArtData.resolvedLayoutType;
|
|
23227
23218
|
const topLevelCount = nodes.filter((n) => !n.parentId).length;
|
|
23228
|
-
const inputRefs =
|
|
23229
|
-
const pendingFocusId =
|
|
23230
|
-
|
|
23219
|
+
const inputRefs = React106.useRef(/* @__PURE__ */ new Map());
|
|
23220
|
+
const pendingFocusId = React106.useRef(null);
|
|
23221
|
+
React106.useEffect(() => {
|
|
23231
23222
|
const id = pendingFocusId.current;
|
|
23232
23223
|
if (id) {
|
|
23233
23224
|
inputRefs.current.get(id)?.focus();
|
|
@@ -23835,7 +23826,6 @@ function GradientControls({
|
|
|
23835
23826
|
}
|
|
23836
23827
|
function TableCellColorField({
|
|
23837
23828
|
label,
|
|
23838
|
-
prefix,
|
|
23839
23829
|
value,
|
|
23840
23830
|
fallback,
|
|
23841
23831
|
selectedRef,
|
|
@@ -23857,7 +23847,6 @@ function TableCellColorField({
|
|
|
23857
23847
|
/* @__PURE__ */ jsx(
|
|
23858
23848
|
ThemeColorSwatchGrid,
|
|
23859
23849
|
{
|
|
23860
|
-
prefix,
|
|
23861
23850
|
disabled,
|
|
23862
23851
|
selectedRef,
|
|
23863
23852
|
selectedHex: hex,
|
|
@@ -23915,7 +23904,6 @@ function TableCellFormattingPanel({
|
|
|
23915
23904
|
TableCellColorField,
|
|
23916
23905
|
{
|
|
23917
23906
|
label: t("pptx.table.color"),
|
|
23918
|
-
prefix: "table-cell-text",
|
|
23919
23907
|
value: cs.color,
|
|
23920
23908
|
fallback: "#000000",
|
|
23921
23909
|
selectedRef: cs.colorRef,
|
|
@@ -23927,7 +23915,6 @@ function TableCellFormattingPanel({
|
|
|
23927
23915
|
TableCellColorField,
|
|
23928
23916
|
{
|
|
23929
23917
|
label: t("pptx.table.background"),
|
|
23930
|
-
prefix: "table-cell-bg",
|
|
23931
23918
|
value: cs.backgroundColor,
|
|
23932
23919
|
fallback: "#ffffff",
|
|
23933
23920
|
selectedRef: cs.backgroundColorRef,
|
|
@@ -24118,7 +24105,6 @@ function TableStyleEditorFields({
|
|
|
24118
24105
|
/* @__PURE__ */ jsx(
|
|
24119
24106
|
ThemeColorSwatchGrid,
|
|
24120
24107
|
{
|
|
24121
|
-
prefix: "table-style-fill",
|
|
24122
24108
|
disabled: !canEdit,
|
|
24123
24109
|
selectedRef: descriptor.fill.color.ref,
|
|
24124
24110
|
selectedHex: descriptor.fill.color.hex,
|
|
@@ -24156,7 +24142,6 @@ function TableStyleEditorFields({
|
|
|
24156
24142
|
/* @__PURE__ */ jsx(
|
|
24157
24143
|
ThemeColorSwatchGrid,
|
|
24158
24144
|
{
|
|
24159
|
-
prefix: "table-style-text",
|
|
24160
24145
|
disabled: !canEdit,
|
|
24161
24146
|
selectedRef: descriptor.text.color.ref,
|
|
24162
24147
|
selectedHex: descriptor.text.color.hex,
|
|
@@ -24833,7 +24818,7 @@ function CommentBody({ text, mentions, className }) {
|
|
|
24833
24818
|
index
|
|
24834
24819
|
) : (
|
|
24835
24820
|
// eslint-disable-next-line react/no-array-index-key -- segments are positional
|
|
24836
|
-
/* @__PURE__ */ jsx(
|
|
24821
|
+
/* @__PURE__ */ jsx(React106.Fragment, { children: segment.text }, index)
|
|
24837
24822
|
)
|
|
24838
24823
|
) });
|
|
24839
24824
|
}
|
|
@@ -26350,7 +26335,7 @@ function PresentationPropertiesPanel({
|
|
|
26350
26335
|
onUpdateTagCollections
|
|
26351
26336
|
}) {
|
|
26352
26337
|
const { t } = useTranslation();
|
|
26353
|
-
const handleTransitionChange =
|
|
26338
|
+
const handleTransitionChange = React106.useCallback(
|
|
26354
26339
|
(updates) => {
|
|
26355
26340
|
onUpdateSlide({
|
|
26356
26341
|
transition: mergeSlideTransition(activeSlide?.transition, updates)
|
|
@@ -29831,7 +29816,7 @@ function ViewerToolbarSection(props) {
|
|
|
29831
29816
|
},
|
|
29832
29817
|
[activeSlide, propertyHandlers]
|
|
29833
29818
|
);
|
|
29834
|
-
const scopedLayoutOptions =
|
|
29819
|
+
const scopedLayoutOptions = React106.useMemo(
|
|
29835
29820
|
() => scopeLayoutOptionsToActiveSlide(s.layoutOptions, activeSlide),
|
|
29836
29821
|
[s.layoutOptions, activeSlide]
|
|
29837
29822
|
);
|
|
@@ -31778,7 +31763,7 @@ function useTableStyleMapHandlers(input) {
|
|
|
31778
31763
|
var AiChatPanel = lazy(async () => {
|
|
31779
31764
|
const [{ useChat }, { default: Panel }] = await Promise.all([
|
|
31780
31765
|
import('@ai-sdk/react'),
|
|
31781
|
-
import('./AiChatPanel-
|
|
31766
|
+
import('./AiChatPanel-Z5VHI4WA.mjs')
|
|
31782
31767
|
]);
|
|
31783
31768
|
function BoundAiChatPanel(props) {
|
|
31784
31769
|
return /* @__PURE__ */ jsx(Panel, { ...props, useChat });
|
|
@@ -34302,6 +34287,33 @@ function useAiPanelController(input) {
|
|
|
34302
34287
|
showChangeBatch
|
|
34303
34288
|
};
|
|
34304
34289
|
}
|
|
34290
|
+
function useCollaborationStateReport(collab, onChange) {
|
|
34291
|
+
const callback = useRef(onChange);
|
|
34292
|
+
callback.current = onChange;
|
|
34293
|
+
const reporter = useMemo(
|
|
34294
|
+
() => createCollaborationStateReporter((state) => callback.current?.(state)),
|
|
34295
|
+
[]
|
|
34296
|
+
);
|
|
34297
|
+
const status = collab?.status;
|
|
34298
|
+
const synced = collab?.synced;
|
|
34299
|
+
const clientId = collab?.clientId;
|
|
34300
|
+
const remoteUsers = collab?.remoteUsers;
|
|
34301
|
+
const config = collab?.config;
|
|
34302
|
+
useEffect(() => {
|
|
34303
|
+
reporter.update(
|
|
34304
|
+
buildCollaborationState({
|
|
34305
|
+
active: Boolean(config),
|
|
34306
|
+
roomId: config?.roomId,
|
|
34307
|
+
status: status ?? "disconnected",
|
|
34308
|
+
synced: synced ?? false,
|
|
34309
|
+
clientId,
|
|
34310
|
+
userName: config?.userName,
|
|
34311
|
+
userColor: config?.userColor,
|
|
34312
|
+
remoteUsers: remoteUsers ?? []
|
|
34313
|
+
})
|
|
34314
|
+
);
|
|
34315
|
+
}, [reporter, status, synced, clientId, remoteUsers, config]);
|
|
34316
|
+
}
|
|
34305
34317
|
function handleClearOptionsCache() {
|
|
34306
34318
|
void (async () => {
|
|
34307
34319
|
try {
|
|
@@ -34877,9 +34889,10 @@ var PowerPointViewer = forwardRef(
|
|
|
34877
34889
|
onLocaleChange,
|
|
34878
34890
|
accountAuth,
|
|
34879
34891
|
authorName,
|
|
34880
|
-
collaboration,
|
|
34892
|
+
collaboration: collaborationInput,
|
|
34881
34893
|
onStartCollaboration,
|
|
34882
34894
|
onStopCollaboration,
|
|
34895
|
+
onCollaborationChange,
|
|
34883
34896
|
shareDefaults,
|
|
34884
34897
|
smartArt3D = false,
|
|
34885
34898
|
surfaceChart3D = false,
|
|
@@ -34893,6 +34906,7 @@ var PowerPointViewer = forwardRef(
|
|
|
34893
34906
|
customization,
|
|
34894
34907
|
initialSlide
|
|
34895
34908
|
} = props;
|
|
34909
|
+
const collaboration = resolveCollaborationConfig(collaborationInput);
|
|
34896
34910
|
const rootOptions = resolveViewerRootOptions(props);
|
|
34897
34911
|
useEffect(() => {
|
|
34898
34912
|
const css = buildUserFontFaceStyles(fonts);
|
|
@@ -36082,6 +36096,7 @@ ${url}`)
|
|
|
36082
36096
|
canvasWidth: canvasSize.width,
|
|
36083
36097
|
canvasHeight: canvasSize.height,
|
|
36084
36098
|
children: [
|
|
36099
|
+
/* @__PURE__ */ jsx(CollaborationStateReporter, { onChange: onCollaborationChange }),
|
|
36085
36100
|
/* @__PURE__ */ jsx(
|
|
36086
36101
|
CollaborationDocumentSync,
|
|
36087
36102
|
{
|
|
@@ -36147,6 +36162,12 @@ function CollaborationStatusStrip() {
|
|
|
36147
36162
|
}
|
|
36148
36163
|
);
|
|
36149
36164
|
}
|
|
36165
|
+
function CollaborationStateReporter({
|
|
36166
|
+
onChange
|
|
36167
|
+
}) {
|
|
36168
|
+
useCollaborationStateReport(useCollaboration(), onChange);
|
|
36169
|
+
return null;
|
|
36170
|
+
}
|
|
36150
36171
|
function CollaborationDocumentSync({
|
|
36151
36172
|
slides,
|
|
36152
36173
|
templateElementsBySlideId,
|
|
Binary file
|
|
Binary file
|