pptx-react-viewer 4.31.1 → 4.33.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 +41 -0
- package/README.md +3 -2
- package/dist/{AiChatPanel-I3D2C4YR.mjs → AiChatPanel-47A5ONVT.mjs} +2 -2
- package/dist/AiChatPanel-47A5ONVT.mjs.br +0 -0
- package/dist/AiChatPanel-47A5ONVT.mjs.gz +0 -0
- package/dist/{AiChatPanel-JKF3V3IM.js → AiChatPanel-FV5ECOV5.js} +10 -10
- package/dist/AiChatPanel-FV5ECOV5.js.br +0 -0
- package/dist/AiChatPanel-FV5ECOV5.js.gz +0 -0
- package/dist/{Model3DScene-KYIYYLMY.js → Model3DScene-5HLXSIIK.js} +1 -1
- package/dist/Model3DScene-5HLXSIIK.js.br +0 -0
- package/dist/Model3DScene-5HLXSIIK.js.gz +0 -0
- package/dist/{Model3DScene-EZDCI7TT.mjs → Model3DScene-MSC4LEKG.mjs} +1 -1
- package/dist/Model3DScene-MSC4LEKG.mjs.br +0 -0
- package/dist/Model3DScene-MSC4LEKG.mjs.gz +0 -0
- package/dist/{chunk-TUYNK3GE.js → chunk-552NAFTD.js} +250 -249
- package/dist/chunk-552NAFTD.js.br +0 -0
- package/dist/chunk-552NAFTD.js.gz +0 -0
- package/dist/{chunk-7EFQBIJG.mjs → chunk-DD3ARHEW.mjs} +6 -5
- package/dist/chunk-DD3ARHEW.mjs.br +0 -0
- package/dist/{chunk-7EFQBIJG.mjs.gz → chunk-DD3ARHEW.mjs.gz} +0 -0
- package/dist/{chunk-VLZXLGG5.js → chunk-JL7A7NDD.js} +1355 -1294
- package/dist/chunk-JL7A7NDD.js.br +0 -0
- package/dist/chunk-JL7A7NDD.js.gz +0 -0
- package/dist/{chunk-CBR27PI3.mjs → chunk-LOBNIIFQ.mjs} +99 -38
- package/dist/chunk-LOBNIIFQ.mjs.br +0 -0
- package/dist/chunk-LOBNIIFQ.mjs.gz +0 -0
- package/dist/{chunk-GDQSMJQZ.mjs → chunk-Q3DHYOLK.mjs} +5 -1
- package/dist/chunk-Q3DHYOLK.mjs.br +0 -0
- package/dist/chunk-Q3DHYOLK.mjs.gz +0 -0
- package/dist/{chunk-POPGQIVR.js → chunk-SQUVXHAE.js} +5 -3
- package/dist/chunk-SQUVXHAE.js.br +0 -0
- package/dist/chunk-SQUVXHAE.js.gz +0 -0
- package/dist/{chunk-DFFCFNK2.js → chunk-W2IMY5SY.js} +5 -1
- package/dist/chunk-W2IMY5SY.js.br +0 -0
- package/dist/chunk-W2IMY5SY.js.gz +0 -0
- package/dist/{chunk-FBG42UO3.mjs → chunk-WEPZYAB6.mjs} +4 -2
- package/dist/chunk-WEPZYAB6.mjs.br +0 -0
- package/dist/chunk-WEPZYAB6.mjs.gz +0 -0
- package/dist/i18n.js +1 -1
- package/dist/i18n.js.br +2 -2
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +1 -1
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.js +25 -25
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.js +82 -82
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/{three.module-2R4ADL7W.mjs → three.module-JPZUM7AI.mjs} +1 -1
- package/dist/three.module-JPZUM7AI.mjs.br +0 -0
- package/dist/three.module-JPZUM7AI.mjs.gz +0 -0
- package/dist/{three.module-LS32MK23.js → three.module-RIUI7P3J.js} +1 -1
- package/dist/three.module-RIUI7P3J.js.br +0 -0
- package/dist/three.module-RIUI7P3J.js.gz +0 -0
- package/dist/viewer/index.d.ts +19 -1
- package/dist/viewer/index.js +20 -20
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +4 -4
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/dist/{y-webrtc-6DZI5KUK.mjs → y-webrtc-CCA4HVZZ.mjs} +1 -1
- package/dist/y-webrtc-CCA4HVZZ.mjs.br +0 -0
- package/dist/y-webrtc-CCA4HVZZ.mjs.gz +0 -0
- package/dist/{y-webrtc-OTRGEYOH.js → y-webrtc-MB5ZXFBA.js} +5 -5
- package/dist/y-webrtc-MB5ZXFBA.js.br +0 -0
- package/dist/y-webrtc-MB5ZXFBA.js.gz +0 -0
- package/dist/{y-websocket-AWBYMAHL.js → y-websocket-JQQZVAMX.js} +1 -1
- package/dist/y-websocket-JQQZVAMX.js.br +0 -0
- package/dist/y-websocket-JQQZVAMX.js.gz +0 -0
- package/dist/{y-websocket-VAKUVRQT.mjs → y-websocket-SCLLNICY.mjs} +1 -1
- package/dist/y-websocket-SCLLNICY.mjs.br +0 -0
- package/dist/y-websocket-SCLLNICY.mjs.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-I3D2C4YR.mjs.br +0 -0
- package/dist/AiChatPanel-I3D2C4YR.mjs.gz +0 -0
- package/dist/AiChatPanel-JKF3V3IM.js.br +0 -0
- package/dist/AiChatPanel-JKF3V3IM.js.gz +0 -0
- package/dist/Model3DScene-EZDCI7TT.mjs.br +0 -0
- package/dist/Model3DScene-EZDCI7TT.mjs.gz +0 -0
- package/dist/Model3DScene-KYIYYLMY.js.br +0 -0
- package/dist/Model3DScene-KYIYYLMY.js.gz +0 -0
- package/dist/chunk-7EFQBIJG.mjs.br +0 -0
- package/dist/chunk-CBR27PI3.mjs.br +0 -0
- package/dist/chunk-CBR27PI3.mjs.gz +0 -0
- package/dist/chunk-DFFCFNK2.js.br +0 -0
- package/dist/chunk-DFFCFNK2.js.gz +0 -0
- package/dist/chunk-FBG42UO3.mjs.br +0 -0
- package/dist/chunk-FBG42UO3.mjs.gz +0 -0
- package/dist/chunk-GDQSMJQZ.mjs.br +0 -0
- package/dist/chunk-GDQSMJQZ.mjs.gz +0 -0
- package/dist/chunk-POPGQIVR.js.br +0 -0
- package/dist/chunk-POPGQIVR.js.gz +0 -0
- package/dist/chunk-TUYNK3GE.js.br +0 -0
- package/dist/chunk-TUYNK3GE.js.gz +0 -0
- package/dist/chunk-VLZXLGG5.js.br +0 -0
- package/dist/chunk-VLZXLGG5.js.gz +0 -0
- package/dist/three.module-2R4ADL7W.mjs.br +0 -0
- package/dist/three.module-2R4ADL7W.mjs.gz +0 -0
- package/dist/three.module-LS32MK23.js.br +0 -0
- package/dist/three.module-LS32MK23.js.gz +0 -0
- package/dist/y-webrtc-6DZI5KUK.mjs.br +0 -0
- package/dist/y-webrtc-6DZI5KUK.mjs.gz +0 -0
- package/dist/y-webrtc-OTRGEYOH.js.br +0 -0
- package/dist/y-webrtc-OTRGEYOH.js.gz +0 -0
- package/dist/y-websocket-AWBYMAHL.js.br +0 -0
- package/dist/y-websocket-AWBYMAHL.js.gz +0 -0
- package/dist/y-websocket-VAKUVRQT.mjs.br +0 -0
- package/dist/y-websocket-VAKUVRQT.mjs.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, isPanelVisible, shouldShowAutosaveRecoveryPrompt, resolveOptionRootClasses, RIBBON_SCOPE_ATTR, resolve3DRenderingFlags, resolveSlideSizeSelection, RULER_THICKNESS, RULER_FONT_SIZE, editorThumbnailHeight, buildPreviewElements, deriveSlideFieldContext, deviceStrokeStageStyle, hiddenSlideCue, EDITOR_THUMBNAIL_WIDTH, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, visibleTemplateElements, themeToCssVars, createCustomizationController, resolveEffectiveHiddenActions, listAutosaveSnapshots, resolveExpiredAutosaveSnapshots, deleteAutosaveSnapshot, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, EDITOR_CHROME_CSS, ribbonCustomizationCss, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, printPropertiesFrameSlides, printPropertiesSlidesPerPage, PASTE_SPECIAL_OPTIONS, findCanvasElementNode, getDensePanelTouchTargetPx, shouldStickyActionRow, customizeOptionsTabs, VIEWER_OPTIONS_TABS, isOptionsPageVisible, DEFAULT_QUICK_ACCESS_COMMAND_IDS, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, shouldClearAutosaveCacheOnClose, canCropElement, cropSessionChanged, cancelCropUpdate, startCropSession, homeLaunchers, attachRibbonOverflow, editorThumbnailWidth, masterViewBackgroundColor, buildFieldSubstitutionContext, resolvePresentationAction, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, resolveEditPointsAvailability, isCurrentLayout, observeElementHeight, EXPANDED_MAX_HEIGHT, resolveStatusBarSave, statusBarViewMode, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, resolveDefaultPrintSettings, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, CUSTOM_FONT_ACCEPT, activateModalFocus, buildCollaborationShareUrl, buildActiveSessionUsers, SORTER_MIN_ZOOM, SORTER_ZOOM_STEP, SORTER_MAX_ZOOM, canGoPrevious, formatSlideCounter, READING_VIEW_COUNTER_ATTR, canGoNext, READING_VIEW_ATTR, OUTLINE_LEVEL_ATTR, OUTLINE_SLIDE_ATTR, OUTLINE_ROW_ATTR, OUTLINE_VIEW_ATTR, mobileElapsedSince, nextPresentedSlide, presenterPrevDisabled, presenterNextDisabled, formatMobileElapsed, mobileSlideCounter, presenterPaneAdvancesOnClick, presenterTimerProgress, PRESENTER_CONSOLE_CLASSES, formatElapsed, cropModeKeyAction, buildTitleBarState, resolveScreenTip, visibleContextualTabs, resolveActiveRibbonTab, contextualTabLabelKey, RIBBON_CONTEXTUAL_TAB_ATTR, buildTabRowActionsState, TAB_ROW_ACTION_CLASSES, tabRowActionsAttributes, customizeBackstageNav, BACKSTAGE_NAV, listBackstageRecentFiles, BACKSTAGE_BACK_CLASSES, BACKSTAGE_NAV_CLASSES, FREEFORM_TOOL_IDS, isDrawingToolVisible, textFontSizePtToPx, withHomeGalleries, drawingHomeControls, homeGalleryControls, homeGalleryApply, shapeOutlineChange, shapeFillChange, editingHomeControls, arrangeHomeControls, arrangePainterHomeControls, arrangeAlignAction, DESIGN_RIBBON_GROUPS, DESIGN_RIBBON_COMMANDS, designCommandState, FIXED_TAB_GALLERIES, CONTEXTUAL_TAB_GROUPS, editorThumbnailStep, resolveSlidePaneClick, SLIDE_VIRTUALIZATION_THRESHOLD, buildSectionContextMenuEntries, buildSlidePaneContextMenuEntries, slidePaneViewItems, isEditPointsEnabled, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, buildStrokePathD, cursorForTool, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, PRESENTER_NAVIGATOR_LABEL_KEYS, getPresentationContextMenuSections, CONTEXT_MENU_PRESENTATION_LAYER, presentationViewItems, subtitleRecognitionLanguage, subtitleSettingsFromOptions, getSpeechRecognitionCtor, mergeCaptionResults, customizeContextMenuEntries, buildContextMenuEntries, contextMenuViewItems, customizeCanvasContextMenuEntries, buildCanvasContextMenuEntries, buildLayoutPreviewGeometry, scaleSlidesForSizeChange, slideSizeToCanvasPx, resolveSelectionPaneRename, themeEditorLabels, resolveNotesSegments, defaultRichEnabled, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX as INDENT_PX$1, buildNotesPrintHtml, MIN_TOUCH_TARGET_PX, toggleSheet, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeAllNotesPages, getNotesPrintableArea, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, createSlideSorterState, sorterSelectionIndexes, selectSorterSlide, applySorterAction, slideSorterPasteIndexes, sorterGridColumns, sorterMenuContext, buildSlideSorterContextMenuEntries, slideSorterContextMenuLabel, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, presenterConsoleAction, presenterConsoleViewState, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, customizeBackstageCards, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, clipboardHomeControls, slidesHomeControls, resolveDefaultFontFamily, textFontSizePxToPt, getInlineEditorSelectionResult, selectedParagraphBulletKind, elementBulletKind, selectionBulletKind, fontPickerHomeControls, fontHomeControls, nextToggleValue, RIBBON_GROUP_ATTR, paragraphHomeAlign, paragraphHomeControls, paragraphHomeAction, arrangeShapeHomeControls, strokeWidthOf, canSetStrokeWidth, canUngroupSelection, canGroupSelection, parseCropValue, buildRibbonGallery, readRibbonTransitionDraft, SLIDE_SHOW_COMMAND_GROUPS, RECORD_COMMAND_GROUPS, buildReviewRibbon, HELP_RIBBON_COMMANDS, galleryTextLabel, sectionAddAfterSlideIndex, masterViewPseudoSlide, PRESENTATION_ANIM_TRIGGER_ATTRIBUTE, parentSelection, slideSpaceElement, isGroupMember, motionPathFor, setMotionPath, shouldShowElementHandles, computeAnchoredPopupPosition, applyTableStyleDelete, applyTableStyleMapChange, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, SLIDE_TEMPLATES, getSelectionTextStyleFlags, TEXT_DECORATION_FLAGS, applyRibbonGalleryItem, ribbonTransitionsDraftPatch, ribbonTransitionUpdates, ribbonTransitionsSoundChange, ribbonTransitionStockSoundUrl, playSlideTransitionPreview, playAnimationRibbonPreview, SLIDE_SHOW_OPTIONS, createViewerOptionsStore, subtitleSettingsLabels, attachEditorImagePaste, authorConnectorBetweenSites, findEraserHitElementId, generateTicks, rulerDragToGuidePosition, resolveElementInteractivity, buildChartQuickActionsDescriptor, applyChartElementToggle, CHART_QUICK_ACTION_BUTTON_SIZE, applyChartStylePreset, hideChartSeries, restoreFilteredSeries, buildCropOverlay, CROP_HANDLE_ARIA_KEY, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, canEditElementPoints, MERGE_SHAPES_MENU_ITEMS, hasMultipleSelectedTableCells, isElementLocked, mergeSlideTransition, slideBackgroundClearState, slideBackgroundClearPatch, effectiveDirection, TRIGGER_OPTIONS, effectiveTimingCurve, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildSlideTemplateContent, updateSubtitleSettings, buildFreeformShapeElement, buildLiveInkStrokeView, beginCropDrag, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, FreeformToolSession, attachOverlayKeyboard, EditPointsSession, EDIT_POINTS_STYLE, elementLockTogglePatch, buildTableDataGrid, getDenseGridLayoutPlan, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, applyTableStylePreset, tableStyleAssignmentUpdate, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, collapseChartTitleRunsForEdit, chartGridlinesState, chartGridlinesPatch, seriesSecondaryAxisPatch, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setDataLabelsRangeCache, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, imageResetPatch, imageResetState, canInteractWithElement, buildOleObjectNamePatch, shouldShowAccessibilitySection, withFrameSlides, withSlidesPerPage, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, SLIDE_SIZE_PRESETS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, TRANSITION_SPEED_OPTIONS, TRANSITION_MORPH_OPTIONS, flattenTagCollections, resolveTemplateBackgroundRows, commentMentionQuery, matchCommentMentionAuthors, buildAnimationTimelineRows, clearMotionPath, setTrigger, setTriggerBookmark, getEffectSoundState, setEffectSound, setEffectStockSound, setAfterAnimation, setAfterAnimationColor, directionValuesFor, buildAnimationTimelineBars, motionPathPresetIdForPath, MOTION_PATH_FAMILIES, motionPathPresetsByFamily, motionPathPresetLabelKey, motionPathFamilyLabelKey, EFFECT_SOUND_CATALOGUE, listMediaBookmarkOptions, selectedBookmarkOptionValue, hasTiltData, toElementAxes, dragCropHandle, panCropImage, clientToSlidePoint, EDIT_POINTS_TARGET_ATTR, describeTableStyleEditor, TABLE_STYLE_EDITOR_PARTS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, resolveDisplayedChartType, CHART_TYPE_OPTIONS, chartDataLabelsTogglePatch, BAR3D_SHAPE_OPTIONS, bar3DShapePatch, RADAR_STYLE_OPTIONS, radarStylePatch, SURFACE_WIREFRAME_OPTIONS, surfaceWireframePatch, isSeriesUsingSecondaryAxis, seriesColorClearState, listChartUserShapeRows, withChartUserShapeAdded, createDefaultChartUserShape, withChartUserShapeRowRemoved, withChartUserShapeRowTextUpdated, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSiblingAfter, removeEmptyNode, demote, promote, reorder, cropResetState, cropResetPatch, ARTISTIC_EFFECTS, mediaTrimEndSeconds, trimmedMediaDurationMs, mediaTrimEndAbsoluteMs, mediaTrimResetState, mediaTrimEndMsFromAbsoluteMs, mediaTrimResetPatch, buildOleEditDialogDescriptor, buildOleContentUpdatePatch, buildThemeColorSwatchGrid, themeColorSwatchRows, findSelectedThemeSwatch, themeSwatchCommit, getNonVisualDescriptionFields, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, insertCommentMention, reorderAnimationTimelineRows, applyAnimationTimelineOrder, getEffectSoundAsset, animationEffectLabel, overlayPointerInput, TABLE_STYLE_BORDER_SIDES, applyTableStyleFieldEdit, withCellStyle, LBL as LBL$1, SEL as SEL$1, FILL_MODE_OPTIONS as FILL_MODE_OPTIONS$1, SECTION_HEADING, NUM as NUM$1, getChartUserShapeGroupTransform, withChartUserShapeGroupChildAdded, createDefaultChartUserShapeGroupChild, withChartUserShapeRowUpdated, getChartUserShapeRowChartBox, withChartUserShapeRowFlipUpdated, withChartUserShapeRowRotationUpdated, withChartUserShapeRowChartBoxUpdated, smartArtLayoutSwitchPatch, rebuildDrawingShapesIfCleared, mediaTrimEndMsFromSeconds, validateMediaTrimRange, quickStyleSwatchCss, OFFICE_COLOR_SWATCHES, PATTERN_PRESET_OPTIONS as PATTERN_PRESET_OPTIONS$1, COMPOUND_LINE_OPTIONS as COMPOUND_LINE_OPTIONS$1, LINE_JOIN_OPTIONS as LINE_JOIN_OPTIONS$1, LINE_CAP_OPTIONS as LINE_CAP_OPTIONS$1, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, toSlideIndex, TABLE_STYLE_BORDER_SIDE_LABEL_KEYS, TABLE_STYLE_DASH_PRESETS, GRADIENT_TYPE_OPTIONS as GRADIENT_TYPE_OPTIONS$1, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, toggleText3dExtrusion, BEVEL_PRESETS, cropFit, cropFill, cropToAspectRatio } from 'ooxml-ui/pptx';
|
|
1
|
+
import { useViewerOptions, useReadOnlyRecommendationState, useCompatibilityToastsState, useReducedMotion, useViewerState, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useViewPreferencesSync, useLayoutSwitching, Rendering3DFlagsContext, CollaborationProvider, useCollaboration, useCollaborationDocumentSync, useFollowMode, useBroadcastFollower, SlideBackgroundImageLayer, StaticElementRenderer, safePrompt, scopeLayoutOptionsToActiveSlide, ChartPartSelectionProvider, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, ViewerOptionsStoreContext, ViewerOptionsContext, useViewerOptionsContext, useVirtualizedSlides, useSwipeNavigation, PresentationTransitionOverlay, RemoteSelectionOverlay, CollaborationCursorOverlay, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP, ElementRenderer, InlineCollaborationContext, SmartArtRenderer, downloadBlob, playAnimationSound, ResizeHandles, imgSrc, renderStrokeView, useChartPartSelection, DUOTONE_PRESETS, getSlideTransitionAnimations, SLIDE_TRANSITION_KEYFRAMES, resolveSmartArtDataPalette } from './chunk-DD3ARHEW.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-WEPZYAB6.mjs';
|
|
3
|
+
import { EMPTY_RESOLVED_CUSTOMIZATION, ANIMATION_DIRECTION_LABEL_KEYS, compileEquationTemplateMathMl, resolveViewerRootOptions, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, isFeatureEnabled, isDialogAvailable, resolveAutosaveActivation, viewerOptionsToPreferences, applyPreferenceToOptions, resolveHistoryDepth, attachViewerHyperlinks, shouldConfirmExternalHyperlink, applyAutoCorrect, resolveImageResolutionScale, resolveAutosaveIntervalMs, resolveAutosaveIntervalSeconds, isPanelVisible, shouldShowAutosaveRecoveryPrompt, resolveOptionRootClasses, RIBBON_SCOPE_ATTR, resolve3DRenderingFlags, resolveSlideSizeSelection, RULER_THICKNESS, RULER_FONT_SIZE, editorThumbnailHeight, buildPreviewElements, deriveSlideFieldContext, deviceStrokeStageStyle, hiddenSlideCue, EDITOR_THUMBNAIL_WIDTH, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, visibleTemplateElements, themeToCssVars, createCustomizationController, resolveEffectiveHiddenActions, listAutosaveSnapshots, resolveExpiredAutosaveSnapshots, deleteAutosaveSnapshot, masterViewCrudActions, applyMasterViewCrudAction, masterViewCrudFailureKey, EDITOR_CHROME_CSS, ribbonCustomizationCss, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, templateSchemeFromTheme, createBackstagePresentation, playFeedbackSound, shouldDiscardAutosaveOnSuccessfulSave, setMasterViewBackgroundColor, canUseClipboard, runProgramNoticeStackStyle, printPropertiesFrameSlides, printPropertiesSlidesPerPage, PASTE_SPECIAL_OPTIONS, findCanvasElementNode, getDensePanelTouchTargetPx, shouldStickyActionRow, customizeOptionsTabs, VIEWER_OPTIONS_TABS, isOptionsPageVisible, DEFAULT_QUICK_ACCESS_COMMAND_IDS, isHeaderFooterDateTextVisible, isHeaderFooterHeaderTextVisible, isHeaderFooterFooterTextVisible, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, getSlideBackgroundStyle, pushRecentColor, mruColorsPatch, shouldClearAutosaveCacheOnClose, canCropElement, cropSessionChanged, cancelCropUpdate, startCropSession, homeLaunchers, attachRibbonOverflow, editorThumbnailWidth, masterViewBackgroundColor, buildFieldSubstitutionContext, resolvePresentationAction, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, resolveEditPointsAvailability, isCurrentLayout, observeElementHeight, EXPANDED_MAX_HEIGHT, resolveStatusBarSave, statusBarViewMode, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, resolveDefaultPrintSettings, HANDOUT_OPTIONS, TOOLBAR_TABS, SHORTCUT_REFERENCE_ITEMS, resolveViewerAddinRows, availableQuickAccessCommands, addQuickAccessCommand, removeQuickAccessCommand, moveQuickAccessCommand, CUSTOM_FONT_ACCEPT, activateModalFocus, buildCollaborationShareUrl, buildActiveSessionUsers, SORTER_MIN_ZOOM, SORTER_ZOOM_STEP, SORTER_MAX_ZOOM, canGoPrevious, formatSlideCounter, READING_VIEW_COUNTER_ATTR, canGoNext, READING_VIEW_ATTR, OUTLINE_LEVEL_ATTR, OUTLINE_SLIDE_ATTR, OUTLINE_ROW_ATTR, OUTLINE_VIEW_ATTR, mobileElapsedSince, nextPresentedSlide, presenterPrevDisabled, presenterNextDisabled, formatMobileElapsed, mobileSlideCounter, presenterPaneAdvancesOnClick, presenterTimerProgress, PRESENTER_CONSOLE_CLASSES, formatElapsed, cropModeKeyAction, buildTitleBarState, resolveScreenTip, visibleContextualTabs, resolveActiveRibbonTab, visibleRibbonAddIns, RIBBON_ADD_IN_TAB_ATTR, contextualTabLabelKey, RIBBON_CONTEXTUAL_TAB_ATTR, buildTabRowActionsState, TAB_ROW_ACTION_CLASSES, tabRowActionsAttributes, customizeBackstageNav, BACKSTAGE_NAV, listBackstageRecentFiles, BACKSTAGE_BACK_CLASSES, BACKSTAGE_NAV_CLASSES, FREEFORM_TOOL_IDS, isDrawingToolVisible, textFontSizePtToPx, withHomeGalleries, drawingHomeControls, homeGalleryControls, homeGalleryApply, shapeOutlineChange, shapeFillChange, editingHomeControls, arrangeHomeControls, arrangePainterHomeControls, arrangeAlignAction, DESIGN_RIBBON_GROUPS, DESIGN_RIBBON_COMMANDS, designCommandState, FIXED_TAB_GALLERIES, CONTEXTUAL_TAB_GROUPS, editorThumbnailStep, resolveSlidePaneClick, SLIDE_VIRTUALIZATION_THRESHOLD, buildSectionContextMenuEntries, buildSlidePaneContextMenuEntries, slidePaneViewItems, isEditPointsEnabled, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, buildStrokePathD, cursorForTool, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, PRESENTER_NAVIGATOR_LABEL_KEYS, getPresentationContextMenuSections, CONTEXT_MENU_PRESENTATION_LAYER, presentationViewItems, subtitleRecognitionLanguage, subtitleSettingsFromOptions, getSpeechRecognitionCtor, mergeCaptionResults, customizeContextMenuEntries, buildContextMenuEntries, contextMenuViewItems, customizeCanvasContextMenuEntries, buildCanvasContextMenuEntries, buildLayoutPreviewGeometry, scaleSlidesForSizeChange, slideSizeToCanvasPx, resolveSelectionPaneRename, themeEditorLabels, resolveNotesSegments, defaultRichEnabled, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX as INDENT_PX$1, buildNotesPrintHtml, MIN_TOUCH_TARGET_PX, toggleSheet, SMARTART_PREVIEW_ELEMENT_HEIGHT, SMARTART_PREVIEW_ELEMENT_WIDTH, buildSmartArtPreviewElement, sanitizeMathMl, computeAllNotesPages, getNotesPrintableArea, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, createSlideSorterState, sorterSelectionIndexes, selectSorterSlide, applySorterAction, slideSorterPasteIndexes, sorterGridColumns, sorterMenuContext, buildSlideSorterContextMenuEntries, slideSorterContextMenuLabel, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, presenterConsoleAction, presenterConsoleViewState, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, customizeBackstageCards, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, clipboardHomeControls, slidesHomeControls, resolveDefaultFontFamily, textFontSizePxToPt, getInlineEditorSelectionResult, selectedParagraphBulletKind, elementBulletKind, selectionBulletKind, fontPickerHomeControls, fontHomeControls, nextToggleValue, RIBBON_GROUP_ATTR, paragraphHomeAlign, paragraphHomeControls, paragraphHomeAction, arrangeShapeHomeControls, strokeWidthOf, canSetStrokeWidth, canUngroupSelection, canGroupSelection, parseCropValue, buildRibbonGallery, readRibbonTransitionDraft, SLIDE_SHOW_COMMAND_GROUPS, RECORD_COMMAND_GROUPS, buildReviewRibbon, HELP_RIBBON_COMMANDS, galleryTextLabel, sectionAddAfterSlideIndex, masterViewPseudoSlide, PRESENTATION_ANIM_TRIGGER_ATTRIBUTE, parentSelection, slideSpaceElement, isGroupMember, motionPathFor, setMotionPath, shouldShowElementHandles, computeAnchoredPopupPosition, applyTableStyleDelete, applyTableStyleMapChange, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, SLIDE_TEMPLATES, getSelectionTextStyleFlags, TEXT_DECORATION_FLAGS, applyRibbonGalleryItem, ribbonTransitionsDraftPatch, ribbonTransitionUpdates, ribbonTransitionsSoundChange, ribbonTransitionStockSoundUrl, playSlideTransitionPreview, playAnimationRibbonPreview, SLIDE_SHOW_OPTIONS, createViewerOptionsStore, subtitleSettingsLabels, attachEditorImagePaste, authorConnectorBetweenSites, findEraserHitElementId, generateTicks, rulerDragToGuidePosition, resolveElementInteractivity, buildChartQuickActionsDescriptor, applyChartElementToggle, CHART_QUICK_ACTION_BUTTON_SIZE, applyChartStylePreset, hideChartSeries, restoreFilteredSeries, buildCropOverlay, CROP_HANDLE_ARIA_KEY, getActiveXControlOverlayView, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, canEditElementPoints, MERGE_SHAPES_MENU_ITEMS, hasMultipleSelectedTableCells, isElementLocked, mergeSlideTransition, slideBackgroundClearState, slideBackgroundClearPatch, effectiveDirection, TRIGGER_OPTIONS, effectiveTimingCurve, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildSlideTemplateContent, updateSubtitleSettings, buildFreeformShapeElement, buildLiveInkStrokeView, beginCropDrag, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, FreeformToolSession, attachOverlayKeyboard, EditPointsSession, EDIT_POINTS_STYLE, elementLockTogglePatch, buildTableDataGrid, getDenseGridLayoutPlan, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, applyTableStylePreset, tableStyleAssignmentUpdate, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, collapseChartTitleRunsForEdit, chartGridlinesState, chartGridlinesPatch, seriesSecondaryAxisPatch, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setDataLabelsRangeCache, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, imageResetPatch, imageResetState, canInteractWithElement, buildOleObjectNamePatch, shouldShowAccessibilitySection, withFrameSlides, withSlidesPerPage, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, SLIDE_SIZE_PRESETS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, TRANSITION_SPEED_OPTIONS, TRANSITION_MORPH_OPTIONS, flattenTagCollections, resolveTemplateBackgroundRows, commentMentionQuery, matchCommentMentionAuthors, buildAnimationTimelineRows, clearMotionPath, setTrigger, setTriggerBookmark, getEffectSoundState, setEffectSound, setEffectStockSound, setAfterAnimation, setAfterAnimationColor, directionValuesFor, buildAnimationTimelineBars, motionPathPresetIdForPath, MOTION_PATH_FAMILIES, motionPathPresetsByFamily, motionPathPresetLabelKey, motionPathFamilyLabelKey, EFFECT_SOUND_CATALOGUE, listMediaBookmarkOptions, selectedBookmarkOptionValue, hasTiltData, toElementAxes, dragCropHandle, panCropImage, clientToSlidePoint, EDIT_POINTS_TARGET_ATTR, describeTableStyleEditor, TABLE_STYLE_EDITOR_PARTS, computeMergeCellRight, computeMergeCellDown, computeSplitCell, resolveDisplayedChartType, CHART_TYPE_OPTIONS, chartDataLabelsTogglePatch, BAR3D_SHAPE_OPTIONS, bar3DShapePatch, RADAR_STYLE_OPTIONS, radarStylePatch, SURFACE_WIREFRAME_OPTIONS, surfaceWireframePatch, isSeriesUsingSecondaryAxis, seriesColorClearState, listChartUserShapeRows, withChartUserShapeAdded, createDefaultChartUserShape, withChartUserShapeRowRemoved, withChartUserShapeRowTextUpdated, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSiblingAfter, removeEmptyNode, demote, promote, reorder, cropResetState, cropResetPatch, ARTISTIC_EFFECTS, mediaTrimEndSeconds, trimmedMediaDurationMs, mediaTrimEndAbsoluteMs, mediaTrimResetState, mediaTrimEndMsFromAbsoluteMs, mediaTrimResetPatch, buildOleEditDialogDescriptor, buildOleContentUpdatePatch, buildThemeColorSwatchGrid, themeColorSwatchRows, findSelectedThemeSwatch, themeSwatchCommit, getNonVisualDescriptionFields, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, insertCommentMention, reorderAnimationTimelineRows, applyAnimationTimelineOrder, getEffectSoundAsset, animationEffectLabel, overlayPointerInput, TABLE_STYLE_BORDER_SIDES, applyTableStyleFieldEdit, withCellStyle, LBL as LBL$1, SEL as SEL$1, FILL_MODE_OPTIONS as FILL_MODE_OPTIONS$1, SECTION_HEADING, NUM as NUM$1, getChartUserShapeGroupTransform, withChartUserShapeGroupChildAdded, createDefaultChartUserShapeGroupChild, withChartUserShapeRowUpdated, getChartUserShapeRowChartBox, withChartUserShapeRowFlipUpdated, withChartUserShapeRowRotationUpdated, withChartUserShapeRowChartBoxUpdated, smartArtLayoutSwitchPatch, rebuildDrawingShapesIfCleared, mediaTrimEndMsFromSeconds, validateMediaTrimRange, quickStyleSwatchCss, OFFICE_COLOR_SWATCHES, PATTERN_PRESET_OPTIONS as PATTERN_PRESET_OPTIONS$1, COMPOUND_LINE_OPTIONS as COMPOUND_LINE_OPTIONS$1, LINE_JOIN_OPTIONS as LINE_JOIN_OPTIONS$1, LINE_CAP_OPTIONS as LINE_CAP_OPTIONS$1, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, toSlideIndex, TABLE_STYLE_BORDER_SIDE_LABEL_KEYS, TABLE_STYLE_DASH_PRESETS, GRADIENT_TYPE_OPTIONS as GRADIENT_TYPE_OPTIONS$1, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, toggleText3dExtrusion, BEVEL_PRESETS, cropFit, cropFill, cropToAspectRatio } from 'ooxml-ui/pptx';
|
|
4
4
|
export { THEME_CATALOG, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from 'ooxml-ui/pptx';
|
|
5
|
-
import
|
|
5
|
+
import React99, { createContext, lazy, forwardRef, useEffect, useState, useCallback, useMemo, useRef, useLayoutEffect, useSyncExternalStore, useId, useContext, useDeferredValue, Suspense, useReducer, Fragment as Fragment$1 } from 'react';
|
|
6
6
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { LuArrowDown, LuArrowUp, LuArrowRight, LuArrowLeft, LuArrowDownRight, LuArrowDownLeft, LuArrowUpRight, LuArrowUpLeft, LuMessageSquare, LuEyeOff, LuHistory, LuSettings, LuX, LuCalendarDays, LuClock, LuHash, LuFileText, LuText, LuCast, LuShieldCheck, LuPlus, LuPanelLeftClose, LuDownload, LuTrash2, LuCheck, LuLock, LuEye, LuType, LuLoader, LuShieldAlert, LuSignature, LuInfo, LuTriangleAlert, LuPrinter, LuPenTool, LuBug, LuChevronUp, LuChevronDown, LuUpload, LuWifi, LuWifiOff, LuUsers, LuCopy, LuMinus, LuChevronLeft, LuChevronRight, LuPlay, LuPause, LuPanelLeft, LuPanelRight, LuSparkles, LuFolderOpen, LuPalette, LuSearch, LuCaseSensitive, LuReplace, LuGripVertical, LuLoaderCircle, LuGrid2X2, LuStickyNote, LuList, LuClipboardCopy, LuPaintbrush, LuShapes, LuLayoutGrid, LuWand, LuPresentation, LuTextCursorInput, LuFile, LuEllipsis, LuUserRound, LuShare2, LuSave, LuFilePlus2, LuHouse, LuFileJson, LuBox, LuVideo, LuFileImage, LuDatabase, LuClock3, LuUser, LuHardDrive, LuLogIn, LuMove, LuCopyPlus, LuClipboardPaste, LuMonitor, LuRadio, LuCaptions, LuImage, LuFilter, LuLayers, LuSettings2, LuLockOpen, LuPencil, LuReply, LuMoveRight, LuRotateCw, LuScissors, LuBookmark, LuPipette } from 'react-icons/lu';
|
|
@@ -713,7 +713,7 @@ function WebHomeControls({
|
|
|
713
713
|
host.addEventListener("home-popup", listener);
|
|
714
714
|
return () => host.removeEventListener("home-popup", listener);
|
|
715
715
|
}, [onPopup]);
|
|
716
|
-
return
|
|
716
|
+
return React99.createElement(`pptx-ui-ribbon-home-${family}`, { ref });
|
|
717
717
|
}
|
|
718
718
|
function ShapeArrangeExtras(p) {
|
|
719
719
|
const commands = useShapeFormatContext();
|
|
@@ -1210,7 +1210,7 @@ function AccountPage() {
|
|
|
1210
1210
|
return void 0;
|
|
1211
1211
|
});
|
|
1212
1212
|
};
|
|
1213
|
-
const version = "4.
|
|
1213
|
+
const version = "4.33.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: [
|
|
@@ -3521,6 +3521,31 @@ function EditingSection(p) {
|
|
|
3521
3521
|
] })
|
|
3522
3522
|
] });
|
|
3523
3523
|
}
|
|
3524
|
+
var NO_ADD_INS = [];
|
|
3525
|
+
var RibbonAddInsContext = createContext(NO_ADD_INS);
|
|
3526
|
+
function useRibbonAddInTabs(onFallback) {
|
|
3527
|
+
const tabs = useContext(RibbonAddInsContext);
|
|
3528
|
+
const visible = useMemo(() => visibleRibbonAddIns(tabs), [tabs]);
|
|
3529
|
+
const [chosen, setChosen] = useState(null);
|
|
3530
|
+
const active = chosen ? visible.find((tab) => tab.id === chosen) ?? null : null;
|
|
3531
|
+
const fellBack = chosen !== null && active === null;
|
|
3532
|
+
useEffect(() => {
|
|
3533
|
+
if (fellBack) {
|
|
3534
|
+
setChosen(null);
|
|
3535
|
+
onFallback();
|
|
3536
|
+
}
|
|
3537
|
+
}, [fellBack, onFallback]);
|
|
3538
|
+
return { visible, active, fellBack, select: setChosen };
|
|
3539
|
+
}
|
|
3540
|
+
function RibbonAddInSection({ tab }) {
|
|
3541
|
+
const ref = useRef(null);
|
|
3542
|
+
useEffect(() => {
|
|
3543
|
+
if (ref.current) {
|
|
3544
|
+
ref.current.tab = tab;
|
|
3545
|
+
}
|
|
3546
|
+
}, [tab]);
|
|
3547
|
+
return /* @__PURE__ */ jsx("pptx-ui-ribbon-add-in", { ref });
|
|
3548
|
+
}
|
|
3524
3549
|
var TAB_BASE = "relative px-3.5 py-2 text-[12px] font-medium whitespace-nowrap transition-colors max-md:min-h-[36px] max-md:px-3";
|
|
3525
3550
|
var TAB_UNDERLINE = "after:absolute after:-bottom-px after:left-0 after:right-0 after:h-[2.5px] after:bg-primary";
|
|
3526
3551
|
function RibbonTabBar(p) {
|
|
@@ -3552,6 +3577,26 @@ function RibbonTabBar(p) {
|
|
|
3552
3577
|
s.id
|
|
3553
3578
|
);
|
|
3554
3579
|
}),
|
|
3580
|
+
(p.addInTabs ?? []).map((tab) => {
|
|
3581
|
+
const selected = p.activeAddIn === tab.id;
|
|
3582
|
+
return /* @__PURE__ */ jsx(
|
|
3583
|
+
"button",
|
|
3584
|
+
{
|
|
3585
|
+
type: "button",
|
|
3586
|
+
role: "tab",
|
|
3587
|
+
"aria-selected": selected,
|
|
3588
|
+
...{ [RIBBON_ADD_IN_TAB_ATTR]: tab.id },
|
|
3589
|
+
title: resolveScreenTip(viewerOptions, tab.label),
|
|
3590
|
+
onClick: () => p.onSelectAddIn?.(tab.id),
|
|
3591
|
+
className: cn(
|
|
3592
|
+
TAB_BASE,
|
|
3593
|
+
selected ? `text-foreground ${TAB_UNDERLINE}` : "text-muted-foreground hover:text-foreground hover:bg-accent/30"
|
|
3594
|
+
),
|
|
3595
|
+
children: tab.label
|
|
3596
|
+
},
|
|
3597
|
+
tab.id
|
|
3598
|
+
);
|
|
3599
|
+
}),
|
|
3555
3600
|
p.contextualTabs.map((id) => {
|
|
3556
3601
|
const selected = p.activeContextual === id;
|
|
3557
3602
|
const label = t(contextualTabLabelKey(id));
|
|
@@ -4288,6 +4333,7 @@ function Toolbar(p) {
|
|
|
4288
4333
|
);
|
|
4289
4334
|
const fallBackHome = useCallback(() => onSetToolbarSection("home"), [onSetToolbarSection]);
|
|
4290
4335
|
const contextual = useContextualRibbonTab(p.selectedElement, customization, fallBackHome);
|
|
4336
|
+
const addIns = useRibbonAddInTabs(fallBackHome);
|
|
4291
4337
|
const detachOverflow = useRef(null);
|
|
4292
4338
|
const inspector = useRef({ open: p.isInspectorPaneOpen, toggle: p.onToggleInspector });
|
|
4293
4339
|
inspector.current = { open: p.isInspectorPaneOpen, toggle: p.onToggleInspector };
|
|
@@ -4312,7 +4358,8 @@ function Toolbar(p) {
|
|
|
4312
4358
|
if (isNarrowViewport && mode !== "present") {
|
|
4313
4359
|
return /* @__PURE__ */ jsx(MobileToolbar, { ...p });
|
|
4314
4360
|
}
|
|
4315
|
-
const
|
|
4361
|
+
const extraTab = contextual.active !== null || addIns.active !== null;
|
|
4362
|
+
const section = extraTab ? null : contextual.fellBack || addIns.fellBack ? "home" : toolbarSection;
|
|
4316
4363
|
const sFil = section === "file";
|
|
4317
4364
|
const sHome = section === "home";
|
|
4318
4365
|
const sIns = section === "insert";
|
|
@@ -4334,14 +4381,24 @@ function Toolbar(p) {
|
|
|
4334
4381
|
RibbonTabBar,
|
|
4335
4382
|
{
|
|
4336
4383
|
isTabVisible,
|
|
4337
|
-
activeSection:
|
|
4384
|
+
activeSection: extraTab ? null : section,
|
|
4338
4385
|
contextualTabs: contextual.visible,
|
|
4339
|
-
activeContextual: contextual.active,
|
|
4386
|
+
activeContextual: addIns.active ? null : contextual.active,
|
|
4340
4387
|
onSelectSection: (id) => {
|
|
4341
4388
|
contextual.select(null);
|
|
4389
|
+
addIns.select(null);
|
|
4342
4390
|
onSetToolbarSection(id);
|
|
4343
4391
|
},
|
|
4344
|
-
onSelectContextual:
|
|
4392
|
+
onSelectContextual: (id) => {
|
|
4393
|
+
addIns.select(null);
|
|
4394
|
+
contextual.select(id);
|
|
4395
|
+
},
|
|
4396
|
+
addInTabs: addIns.visible,
|
|
4397
|
+
activeAddIn: addIns.active?.id ?? null,
|
|
4398
|
+
onSelectAddIn: (id) => {
|
|
4399
|
+
contextual.select(null);
|
|
4400
|
+
addIns.select(id);
|
|
4401
|
+
},
|
|
4345
4402
|
children: [
|
|
4346
4403
|
/* @__PURE__ */ jsx(
|
|
4347
4404
|
TabRowActions,
|
|
@@ -4556,7 +4613,8 @@ function Toolbar(p) {
|
|
|
4556
4613
|
}
|
|
4557
4614
|
),
|
|
4558
4615
|
/* @__PURE__ */ jsx(ToolbarLateTabs, { p, section }),
|
|
4559
|
-
contextual.active && /* @__PURE__ */ jsx(ContextualTabSection, { tab: contextual.active })
|
|
4616
|
+
contextual.active && !addIns.active && /* @__PURE__ */ jsx(ContextualTabSection, { tab: contextual.active }),
|
|
4617
|
+
addIns.active && /* @__PURE__ */ jsx(RibbonAddInSection, { tab: addIns.active })
|
|
4560
4618
|
]
|
|
4561
4619
|
}
|
|
4562
4620
|
)
|
|
@@ -4827,7 +4885,7 @@ function ChartQuickActionsOverlay({
|
|
|
4827
4885
|
"data-export-ignore": "true",
|
|
4828
4886
|
style: { position: "absolute", left: 0, top: 0, zIndex: 59 },
|
|
4829
4887
|
onMouseDown: (e) => e.stopPropagation(),
|
|
4830
|
-
children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(
|
|
4888
|
+
children: descriptor.buttons.map((button) => /* @__PURE__ */ jsxs(React99.Fragment, { children: [
|
|
4831
4889
|
/* @__PURE__ */ jsx(
|
|
4832
4890
|
"button",
|
|
4833
4891
|
{
|
|
@@ -4847,7 +4905,7 @@ function ChartQuickActionsOverlay({
|
|
|
4847
4905
|
transformOrigin: "top left"
|
|
4848
4906
|
},
|
|
4849
4907
|
className: "flex items-center justify-center rounded bg-white border border-gray-300 shadow-sm hover:bg-gray-100 text-gray-700",
|
|
4850
|
-
children:
|
|
4908
|
+
children: React99.createElement(ICONS3[button.id], { className: "size-3.5" })
|
|
4851
4909
|
}
|
|
4852
4910
|
),
|
|
4853
4911
|
open === button.id && button.id === "elements" && /* @__PURE__ */ jsxs(
|
|
@@ -5993,7 +6051,7 @@ function HorizontalRulerView({ ticks, widthPx, highlight }) {
|
|
|
5993
6051
|
}
|
|
5994
6052
|
);
|
|
5995
6053
|
}
|
|
5996
|
-
var HorizontalRuler =
|
|
6054
|
+
var HorizontalRuler = React99.memo(HorizontalRulerView);
|
|
5997
6055
|
HorizontalRuler.displayName = "HorizontalRuler";
|
|
5998
6056
|
function VerticalRulerView({ ticks, heightPx, highlight }) {
|
|
5999
6057
|
return /* @__PURE__ */ jsxs(
|
|
@@ -6065,7 +6123,7 @@ function VerticalRulerView({ ticks, heightPx, highlight }) {
|
|
|
6065
6123
|
}
|
|
6066
6124
|
);
|
|
6067
6125
|
}
|
|
6068
|
-
var VerticalRuler =
|
|
6126
|
+
var VerticalRuler = React99.memo(VerticalRulerView);
|
|
6069
6127
|
VerticalRuler.displayName = "VerticalRuler";
|
|
6070
6128
|
function Ruler({
|
|
6071
6129
|
canvasSize,
|
|
@@ -6902,6 +6960,7 @@ function ActiveXControlOverlay({
|
|
|
6902
6960
|
alt: view.label,
|
|
6903
6961
|
title: `ActiveX control: ${view.label}`,
|
|
6904
6962
|
className: "absolute",
|
|
6963
|
+
draggable: false,
|
|
6905
6964
|
style: { left: view.left, top: view.top, width: view.width, height: view.height }
|
|
6906
6965
|
},
|
|
6907
6966
|
`${control.relId}-${idx}`
|
|
@@ -7946,7 +8005,7 @@ function slideThumbnailPropsEqual(prev, next) {
|
|
|
7946
8005
|
}
|
|
7947
8006
|
return true;
|
|
7948
8007
|
}
|
|
7949
|
-
var SlideThumbnail =
|
|
8008
|
+
var SlideThumbnail = React99.memo(SlideThumbnailImpl, slideThumbnailPropsEqual);
|
|
7950
8009
|
function tableCell(props) {
|
|
7951
8010
|
const { selectedElement, tableEditorState } = props;
|
|
7952
8011
|
if (selectedElement?.type !== "table" || tableEditorState === null) {
|
|
@@ -8589,7 +8648,7 @@ function LazyThumbnailInner({
|
|
|
8589
8648
|
}
|
|
8590
8649
|
) });
|
|
8591
8650
|
}
|
|
8592
|
-
var LazyThumbnail =
|
|
8651
|
+
var LazyThumbnail = React99.memo(LazyThumbnailInner);
|
|
8593
8652
|
function declaredSectionFacts(groups, sectionId) {
|
|
8594
8653
|
const declared = groups.filter((group) => group.id !== DEFAULT_SECTION_GROUP_ID && group.id !== UNGROUPED_SECTION_ID).map((group) => group.id);
|
|
8595
8654
|
return {
|
|
@@ -8757,7 +8816,7 @@ function SlideItemInner({
|
|
|
8757
8816
|
}
|
|
8758
8817
|
);
|
|
8759
8818
|
}
|
|
8760
|
-
var SlideItem =
|
|
8819
|
+
var SlideItem = React99.memo(SlideItemInner);
|
|
8761
8820
|
function useSlidePaneCallbacks(onMoveSlide, onRenameSection, onToggleSectionCollapse) {
|
|
8762
8821
|
const [collapsedSections, setCollapsedSections] = useState({});
|
|
8763
8822
|
const [renamingSectionId, setRenamingSectionId] = useState(null);
|
|
@@ -10170,7 +10229,7 @@ function arePropsEqual(prev, next) {
|
|
|
10170
10229
|
}
|
|
10171
10230
|
return true;
|
|
10172
10231
|
}
|
|
10173
|
-
var SlideCard =
|
|
10232
|
+
var SlideCard = React99.memo(SlideCardImpl, arePropsEqual);
|
|
10174
10233
|
var ICON_CLASS = "h-3.5 w-3.5 text-muted-foreground";
|
|
10175
10234
|
function SorterContextMenu({
|
|
10176
10235
|
x,
|
|
@@ -11483,8 +11542,8 @@ function SlideNotesPanel({
|
|
|
11483
11542
|
onHeightChange
|
|
11484
11543
|
}) {
|
|
11485
11544
|
const { t } = useTranslation();
|
|
11486
|
-
const rootRef =
|
|
11487
|
-
|
|
11545
|
+
const rootRef = React99.useRef(null);
|
|
11546
|
+
React99.useEffect(() => {
|
|
11488
11547
|
const el = rootRef.current;
|
|
11489
11548
|
if (!el || !onHeightChange) {
|
|
11490
11549
|
return void 0;
|
|
@@ -13327,9 +13386,9 @@ function PresentationSubtitleBar({
|
|
|
13327
13386
|
function renderNotesSegments(segments) {
|
|
13328
13387
|
return notesSegmentsToSpans(segments).map((span) => {
|
|
13329
13388
|
if (span.kind === "break") {
|
|
13330
|
-
return
|
|
13389
|
+
return React99.createElement("br", { key: span.key });
|
|
13331
13390
|
}
|
|
13332
|
-
return
|
|
13391
|
+
return React99.createElement(
|
|
13333
13392
|
"span",
|
|
13334
13393
|
{ key: span.key, style: span.style },
|
|
13335
13394
|
span.text
|
|
@@ -13505,7 +13564,7 @@ function scaledSlidePreviewPropsEqual(prev, next) {
|
|
|
13505
13564
|
}
|
|
13506
13565
|
return true;
|
|
13507
13566
|
}
|
|
13508
|
-
var ScaledSlidePreview =
|
|
13567
|
+
var ScaledSlidePreview = React99.memo(ScaledSlidePreviewImpl, scaledSlidePreviewPropsEqual);
|
|
13509
13568
|
function PresenterNotesRail({
|
|
13510
13569
|
slides,
|
|
13511
13570
|
current,
|
|
@@ -14733,7 +14792,7 @@ function EffectSoundRow({
|
|
|
14733
14792
|
onPickStock
|
|
14734
14793
|
}) {
|
|
14735
14794
|
const { t } = useTranslation();
|
|
14736
|
-
const fileInputRef =
|
|
14795
|
+
const fileInputRef = React99.useRef(null);
|
|
14737
14796
|
const selectedValue = soundState.catalogueId ?? (soundState.hasSound ? CURRENT_VALUE : NONE_VALUE);
|
|
14738
14797
|
const handleSelectChange = (event) => {
|
|
14739
14798
|
const value = event.target.value;
|
|
@@ -18305,7 +18364,7 @@ function ConnectorArrowsSection({
|
|
|
18305
18364
|
["Start", "End"].map((end) => {
|
|
18306
18365
|
const widthKey = end === "Start" ? "connectorStartArrowWidth" : "connectorEndArrowWidth";
|
|
18307
18366
|
const lengthKey = end === "Start" ? "connectorStartArrowLength" : "connectorEndArrowLength";
|
|
18308
|
-
return /* @__PURE__ */ jsxs(
|
|
18367
|
+
return /* @__PURE__ */ jsxs(React99.Fragment, { children: [
|
|
18309
18368
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1", children: [
|
|
18310
18369
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t(END_LABEL_KEYS[end].width) }),
|
|
18311
18370
|
/* @__PURE__ */ jsx(
|
|
@@ -21230,7 +21289,7 @@ function StrokeEffectsSection({
|
|
|
21230
21289
|
] }),
|
|
21231
21290
|
EFFECT_CONFIGS.map((cfg) => {
|
|
21232
21291
|
const on = cfg.isOn(style);
|
|
21233
|
-
return /* @__PURE__ */ jsxs(
|
|
21292
|
+
return /* @__PURE__ */ jsxs(React99.Fragment, { children: [
|
|
21234
21293
|
/* @__PURE__ */ jsxs("label", { className: `inline-flex items-center gap-2 text-foreground ${COL2}`, children: [
|
|
21235
21294
|
/* @__PURE__ */ jsx(
|
|
21236
21295
|
WebCheckbox,
|
|
@@ -22085,7 +22144,7 @@ function TextWarpGallery({
|
|
|
22085
22144
|
onUpdateTextStyle
|
|
22086
22145
|
}) {
|
|
22087
22146
|
const { t } = useTranslation();
|
|
22088
|
-
const [expanded, setExpanded] =
|
|
22147
|
+
const [expanded, setExpanded] = React99.useState(false);
|
|
22089
22148
|
const currentPreset = ts?.textWarpPreset || "textNoShape";
|
|
22090
22149
|
return /* @__PURE__ */ jsxs("div", { className: "mt-2 rounded border border-border bg-card p-2 space-y-2", children: [
|
|
22091
22150
|
/* @__PURE__ */ jsxs(
|
|
@@ -22728,7 +22787,7 @@ function SmartArtStyleControls({
|
|
|
22728
22787
|
onChangeStyle
|
|
22729
22788
|
}) {
|
|
22730
22789
|
const { t } = useTranslation();
|
|
22731
|
-
const translate =
|
|
22790
|
+
const translate = React99.useCallback((key) => t(key), [t]);
|
|
22732
22791
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22733
22792
|
/* @__PURE__ */ jsxs("label", { className: "flex flex-col gap-1 text-[11px]", children: [
|
|
22734
22793
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t("pptx.smartart.colorScheme") }),
|
|
@@ -22783,9 +22842,9 @@ function SmartArtPropertiesPanel({
|
|
|
22783
22842
|
const nodes = smartArtData.nodes ?? [];
|
|
22784
22843
|
const layout = smartArtData.resolvedLayoutType;
|
|
22785
22844
|
const topLevelCount = nodes.filter((n) => !n.parentId).length;
|
|
22786
|
-
const inputRefs =
|
|
22787
|
-
const pendingFocusId =
|
|
22788
|
-
|
|
22845
|
+
const inputRefs = React99.useRef(/* @__PURE__ */ new Map());
|
|
22846
|
+
const pendingFocusId = React99.useRef(null);
|
|
22847
|
+
React99.useEffect(() => {
|
|
22789
22848
|
const id = pendingFocusId.current;
|
|
22790
22849
|
if (id) {
|
|
22791
22850
|
inputRefs.current.get(id)?.focus();
|
|
@@ -24391,7 +24450,7 @@ function CommentBody({ text, mentions, className }) {
|
|
|
24391
24450
|
index
|
|
24392
24451
|
) : (
|
|
24393
24452
|
// eslint-disable-next-line react/no-array-index-key -- segments are positional
|
|
24394
|
-
/* @__PURE__ */ jsx(
|
|
24453
|
+
/* @__PURE__ */ jsx(React99.Fragment, { children: segment.text }, index)
|
|
24395
24454
|
)
|
|
24396
24455
|
) });
|
|
24397
24456
|
}
|
|
@@ -25907,7 +25966,7 @@ function PresentationPropertiesPanel({
|
|
|
25907
25966
|
onUpdateTagCollections
|
|
25908
25967
|
}) {
|
|
25909
25968
|
const { t } = useTranslation();
|
|
25910
|
-
const handleTransitionChange =
|
|
25969
|
+
const handleTransitionChange = React99.useCallback(
|
|
25911
25970
|
(updates) => {
|
|
25912
25971
|
onUpdateSlide({
|
|
25913
25972
|
transition: mergeSlideTransition(activeSlide?.transition, updates)
|
|
@@ -29290,7 +29349,7 @@ function ViewerToolbarSection(props) {
|
|
|
29290
29349
|
},
|
|
29291
29350
|
[activeSlide, propertyHandlers]
|
|
29292
29351
|
);
|
|
29293
|
-
const scopedLayoutOptions =
|
|
29352
|
+
const scopedLayoutOptions = React99.useMemo(
|
|
29294
29353
|
() => scopeLayoutOptionsToActiveSlide(s.layoutOptions, activeSlide),
|
|
29295
29354
|
[s.layoutOptions, activeSlide]
|
|
29296
29355
|
);
|
|
@@ -31220,7 +31279,7 @@ function useTableStyleMapHandlers(input) {
|
|
|
31220
31279
|
var AiChatPanel = lazy(async () => {
|
|
31221
31280
|
const [{ useChat }, { default: Panel }] = await Promise.all([
|
|
31222
31281
|
import('@ai-sdk/react'),
|
|
31223
|
-
import('./AiChatPanel-
|
|
31282
|
+
import('./AiChatPanel-47A5ONVT.mjs')
|
|
31224
31283
|
]);
|
|
31225
31284
|
function BoundAiChatPanel(props) {
|
|
31226
31285
|
return /* @__PURE__ */ jsx(Panel, { ...props, useChat });
|
|
@@ -34402,6 +34461,7 @@ function useViewerCustomization(customization, legacyHiddenActions, optionsStore
|
|
|
34402
34461
|
);
|
|
34403
34462
|
return { resolved, api: controller.api, hiddenActions };
|
|
34404
34463
|
}
|
|
34464
|
+
var NO_RIBBON_ADD_INS = [];
|
|
34405
34465
|
var PowerPointViewer = forwardRef(
|
|
34406
34466
|
// oxlint-disable-next-line prefer-arrow-callback -- named fn gives the forwardRef component its displayName
|
|
34407
34467
|
function PowerPointViewer2(props, ref) {
|
|
@@ -34441,6 +34501,7 @@ var PowerPointViewer = forwardRef(
|
|
|
34441
34501
|
areaChart3D = false,
|
|
34442
34502
|
pieChart3D = false,
|
|
34443
34503
|
hiddenActions: legacyHiddenActions,
|
|
34504
|
+
ribbonAddIns,
|
|
34444
34505
|
ai,
|
|
34445
34506
|
customization,
|
|
34446
34507
|
initialSlide
|
|
@@ -35542,7 +35603,7 @@ ${url}`)
|
|
|
35542
35603
|
// Nothing previously provided it, so every one of those consumers was
|
|
35543
35604
|
// silently reading `DEFAULT_VIEWER_OPTIONS` forever, no matter what
|
|
35544
35605
|
// the user changed in the Options dialog.
|
|
35545
|
-
/* @__PURE__ */ jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsx(Rendering3DFlagsContext.Provider, { value: effective3D, children: /* @__PURE__ */ jsx(ViewerThemeProvider, { theme: effectiveTheme, children: /* @__PURE__ */ jsxs(
|
|
35606
|
+
/* @__PURE__ */ jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsx(RibbonAddInsContext.Provider, { value: ribbonAddIns ?? NO_RIBBON_ADD_INS, children: /* @__PURE__ */ jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsx(Rendering3DFlagsContext.Provider, { value: effective3D, children: /* @__PURE__ */ jsx(ViewerThemeProvider, { theme: effectiveTheme, children: /* @__PURE__ */ jsxs(
|
|
35546
35607
|
CollaborationProvider,
|
|
35547
35608
|
{
|
|
35548
35609
|
config: collaboration,
|
|
@@ -35595,7 +35656,7 @@ ${url}`)
|
|
|
35595
35656
|
/* @__PURE__ */ jsx(ShapeFormatContext.Provider, { value: shapeFormat, children: /* @__PURE__ */ jsx(RibbonGalleryCommandsContext.Provider, { value: ribbonGalleries, children: viewerContent }) })
|
|
35596
35657
|
]
|
|
35597
35658
|
}
|
|
35598
|
-
) }) }) }) }) })
|
|
35659
|
+
) }) }) }) }) }) })
|
|
35599
35660
|
);
|
|
35600
35661
|
}
|
|
35601
35662
|
);
|
|
Binary file
|
|
Binary file
|
|
@@ -11,7 +11,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
-
|
|
14
|
+
try {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw mod = 0, e;
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkW2IMY5SY_js = require('./chunk-W2IMY5SY.js');
|
|
4
4
|
var pptx = require('ooxml-ui/pptx');
|
|
5
5
|
var pptx_star = require('ooxml-core/pptx');
|
|
6
6
|
var clsx = require('clsx');
|
|
@@ -40,7 +40,7 @@ function getAnimationInitialStyle(preset, nativeAnimation) {
|
|
|
40
40
|
|
|
41
41
|
// ../core/dist/index.mjs
|
|
42
42
|
var dist_exports = {};
|
|
43
|
-
|
|
43
|
+
chunkW2IMY5SY_js.__reExport(dist_exports, pptx_star__namespace);
|
|
44
44
|
function cn(...inputs) {
|
|
45
45
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
46
46
|
}
|
|
@@ -691,7 +691,8 @@ function renderMediaFallback({
|
|
|
691
691
|
src: posterUrl,
|
|
692
692
|
alt: visual.dimPoster ? i18n.translationsEn["pptx.media.posterAlt"] : i18n.translationsEn["pptx.media.videoPosterAlt"],
|
|
693
693
|
className: `w-full h-full${visual.dimPoster ? " opacity-50" : ""}`,
|
|
694
|
-
style: pptx.getImageFitStyle(element)
|
|
694
|
+
style: pptx.getImageFitStyle(element),
|
|
695
|
+
draggable: false
|
|
695
696
|
}
|
|
696
697
|
),
|
|
697
698
|
/* @__PURE__ */ jsxRuntime.jsx(Badge, { visual, element })
|
|
@@ -1659,6 +1660,7 @@ function renderBulletMarker(para, paraIndex, elementId) {
|
|
|
1659
1660
|
contentEditable: false,
|
|
1660
1661
|
src: picture.src,
|
|
1661
1662
|
alt: picture.accessibleLabel,
|
|
1663
|
+
draggable: false,
|
|
1662
1664
|
style: {
|
|
1663
1665
|
width: picture.sizePx,
|
|
1664
1666
|
height: picture.sizePx,
|
|
Binary file
|
|
Binary file
|
|
@@ -13,7 +13,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
14
|
});
|
|
15
15
|
var __commonJS = (cb, mod) => function __require2() {
|
|
16
|
-
|
|
16
|
+
try {
|
|
17
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw mod = 0, e;
|
|
20
|
+
}
|
|
17
21
|
};
|
|
18
22
|
var __copyProps = (to, from, except, desc) => {
|
|
19
23
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __reExport } from './chunk-
|
|
1
|
+
import { __reExport } from './chunk-Q3DHYOLK.mjs';
|
|
2
2
|
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS as STROKE_DASH_OPTIONS$1, getAnimationInitialStyle as getAnimationInitialStyle$1, cloneHistorySnapshot as cloneHistorySnapshot$1, getImageFitStyle, getImageFillCounterTransform, getComputedFillStyle, getCropShapeClipPath as getCropShapeClipPath$1, getImageTilingStyle as getImageTilingStyle$1, mediaPlaybackAttributes, getOnlineVideoEmbed, ONLINE_VIDEO_IFRAME_SANDBOX, ONLINE_VIDEO_IFRAME_ALLOW, buildTextBlockStyle, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle as buildTextBody3DSceneStyle$1, buildParagraphs, followingText, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData as build3DExtrusionData$1, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, screenStrokeWidth, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY$1, cellStyleToCss, TABLE_CELL_TEXT_DEFAULTS, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, measurePreviewGeometry, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, shouldShowMediaFullscreenStopButton, withInlineListDecorationDefaults, segmentStyleToCss, resolveAutoFitFontScale, applyUnderlineVariant, nestedTextDecorationStyle, scaleFontSizeForAutoFit, resolveFontKerning, resolveScriptFontSet, hasDistinctScriptFonts, authoredLetterSpacingPx, eastAsianBreaksForRun, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, splitsUnderlineIntoWords, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects as apply3dEffects$1, buildSubpathPaints, computeColumnBoundaries, computeTableMergeCrossings, columnHandleSegments, rowHandleSegments, getTableCellBandStyle as getTableCellBandStyle$1, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders as getCellDiagonalBorders$1, cellParagraphBlocks, resolveChartPalette, computeChartLegendLayout, resolveChartSvgDef, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, buildRectPathGradient, screenBorder, cellRunStyle, buildRunTabLines, chartPartToAttrs, splitWordsForUnderline, splitRunForMetrics, splitEastAsianBreaks, splitRunByScriptFont } from 'ooxml-ui/pptx';
|
|
3
3
|
export { ACTION_BUTTON_PRESETS, DEFAULT_COLOR_CHANGE_TOLERANCE, INK_REPLAY_KEYFRAMES, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, SHAPE_QUICK_STYLES, SLIDE_TRANSITION_OPTIONS, TABLE_STYLE_PRESETS, applyColorChange, applyFormatToElement, applyReroutedConnectors, buildCacheKey, buildContentPartStrokes, buildCssGradientFromShapeStyle, buildInkGroupStrokes, buildSaveSlides, canvasToJpegData, clampCropValue, cloneSlide, cloneTemplateElementsBySlideId, colorWithOpacity, comparePresentation, computeHandoutLayout, computeSnapToShape, copyFormatFromElement, formatCommentTimestamp, generateNoteLineCount, getAriaLabel, getAriaRole, getAriaRoleDescription, getCachedResult, getCompoundLineOffsets, getCompoundLineWidths, getContentPartReplayStyles, getElementLabel, getElementTransform, getElementTransformWithoutRotation, getImageEffectsFilter, getImageEffectsOpacity, getInkReplayStyles, getPatternSvg, getPrintableArea, getShapeAdjustmentHandleDescriptors, getSvgStrokeDasharray, getTextCompensationTransform, hasCopyableFormat, isEditableTextElement, isImageTiled, isPpactionUrl, isTemplateElementId, isUrlSafe, makeCloneId, mergeCells, normalizeHexColor, normalizeStrokeDashType, openNativeEyeDropper, parsePpactionUrl, partitionTemplateElements, rerouteConnectorsForMovedElements, safeOpenUrl, sanitizeGradientStops, setCachedResult, splitCell, stopAllPersistentAudio, substituteFieldText } from 'ooxml-ui/pptx';
|
|
4
4
|
import * as pptx_star from 'ooxml-core/pptx';
|
|
@@ -667,7 +667,8 @@ function renderMediaFallback({
|
|
|
667
667
|
src: posterUrl,
|
|
668
668
|
alt: visual.dimPoster ? translationsEn["pptx.media.posterAlt"] : translationsEn["pptx.media.videoPosterAlt"],
|
|
669
669
|
className: `w-full h-full${visual.dimPoster ? " opacity-50" : ""}`,
|
|
670
|
-
style: getImageFitStyle(element)
|
|
670
|
+
style: getImageFitStyle(element),
|
|
671
|
+
draggable: false
|
|
671
672
|
}
|
|
672
673
|
),
|
|
673
674
|
/* @__PURE__ */ jsx(Badge, { visual, element })
|
|
@@ -1635,6 +1636,7 @@ function renderBulletMarker(para, paraIndex, elementId) {
|
|
|
1635
1636
|
contentEditable: false,
|
|
1636
1637
|
src: picture.src,
|
|
1637
1638
|
alt: picture.accessibleLabel,
|
|
1639
|
+
draggable: false,
|
|
1638
1640
|
style: {
|
|
1639
1641
|
width: picture.sizePx,
|
|
1640
1642
|
height: picture.sizePx,
|
|
Binary file
|
|
Binary file
|
package/dist/i18n.js
CHANGED
package/dist/i18n.js.br
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
����ƞ-qK��wl`��b��]�@��k�����/4#$���P��T�B� �^ޅ�t]����~�R�m&�A��'c��_��>��q��:�
|
|
2
|
+
p����R��M3,|#*
|
package/dist/i18n.js.gz
CHANGED
|
Binary file
|
package/dist/i18n.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-Q3DHYOLK.mjs';
|
|
2
2
|
export { LOCALE_CATALOG, keyToLabel, translationsEn } from 'ooxml-ui/pptx/i18n';
|
package/dist/i18n.mjs.br
CHANGED
package/dist/i18n.mjs.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React$1__default from 'react';
|
|
3
3
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
4
|
-
import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, CollaborationShellState } from 'ooxml-ui/pptx';
|
|
4
|
+
import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, CollaborationShellState } from 'ooxml-ui/pptx';
|
|
5
5
|
export { AVATAR_COLOR_SWATCHES, AccountAuthConfig, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, CANVAS_CONTEXT_MENU_COMMAND_IDS, CollaborationConfig, CollaborationShellState, ContextMenuCustomization, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, KeyboardCustomization, LocalStorageUsageSummary, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PowerPointViewerAPI, RIBBON_TAB_IDS, ResolvedCustomization, RibbonCustomization, SLIDE_TEMPLATES, SavedPresentationFormat, ShortcutChord, SlideTemplateId, SlideTemplateSpec, StoredViewerPrefs, THEME_CATALOG, TOOLBAR_BUTTON_IDS, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerMode, ViewerPanelId, ViewerProfile, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from 'ooxml-ui/pptx';
|
|
6
6
|
import { LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
|
|
7
7
|
export { LOCALE_CATALOG, LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
|
|
@@ -419,6 +419,24 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
419
419
|
* ```
|
|
420
420
|
*/
|
|
421
421
|
hiddenActions?: ToolbarActionId[];
|
|
422
|
+
/**
|
|
423
|
+
* Ribbon tabs the host adds after Help, as an Office add-in does. Each
|
|
424
|
+
* command runs its `run` callback and dispatches a bubbling
|
|
425
|
+
* `office-ribbon-add-in` DOM event (`{ tab, command }`) from the viewer. A
|
|
426
|
+
* tab cannot take the id of a built-in tab, and a drop-down (`items`) is
|
|
427
|
+
* drawn as its items. The desktop ribbon shows them; the phone toolbar does not.
|
|
428
|
+
*
|
|
429
|
+
* @example
|
|
430
|
+
* ```tsx
|
|
431
|
+
* <PowerPointViewer
|
|
432
|
+
* content={bytes}
|
|
433
|
+
* ribbonAddIns={[{ id: 'reports', label: 'Reports', groups: [
|
|
434
|
+
* { label: 'Export', commands: [{ id: 'export', label: 'Export', run: exportReport }] },
|
|
435
|
+
* ] }]}
|
|
436
|
+
* />
|
|
437
|
+
* ```
|
|
438
|
+
*/
|
|
439
|
+
ribbonAddIns?: readonly RibbonAddInTab[];
|
|
422
440
|
/**
|
|
423
441
|
* Opt in to the built-in AI assistant. When provided, a Sparkles toggle
|
|
424
442
|
* appears in the toolbar and opens a chat panel wired to this config; when
|