pptx-react-viewer 3.0.1 → 3.0.2
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 +7 -0
- package/dist/{AiChatPanel-NLIUZ5RI.js → AiChatPanel-235ZZA3Y.js} +23 -23
- package/dist/AiChatPanel-235ZZA3Y.js.br +0 -0
- package/dist/AiChatPanel-235ZZA3Y.js.gz +0 -0
- package/dist/{AiChatPanel-DMBQPAGB.mjs → AiChatPanel-DYOBY6OG.mjs} +3 -3
- package/dist/AiChatPanel-DYOBY6OG.mjs.br +0 -0
- package/dist/AiChatPanel-DYOBY6OG.mjs.gz +0 -0
- package/dist/{Model3DScene-JNZN42TU.js → Model3DScene-5QDYQF55.js} +2 -2
- package/dist/Model3DScene-5QDYQF55.js.br +0 -0
- package/dist/Model3DScene-5QDYQF55.js.gz +0 -0
- package/dist/{Model3DScene-ZO6U7YVU.mjs → Model3DScene-A3652H7T.mjs} +1 -1
- package/dist/Model3DScene-A3652H7T.mjs.br +0 -0
- package/dist/Model3DScene-A3652H7T.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-P6CVRWDQ.mjs → SurfaceChart3DScene-N66TY4SW.mjs} +1 -1
- package/dist/SurfaceChart3DScene-N66TY4SW.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-N66TY4SW.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-PGD4ZCLI.js → SurfaceChart3DScene-QHENN3AF.js} +2 -2
- package/dist/SurfaceChart3DScene-QHENN3AF.js.br +0 -0
- package/dist/SurfaceChart3DScene-QHENN3AF.js.gz +0 -0
- package/dist/{chunk-SDOQKSKI.js → chunk-35YJ5RLU.js} +10 -10
- package/dist/chunk-35YJ5RLU.js.br +0 -0
- package/dist/{chunk-SDOQKSKI.js.gz → chunk-35YJ5RLU.js.gz} +0 -0
- package/dist/{chunk-VGHEHM66.mjs → chunk-4LHG6ZL7.mjs} +185 -163
- package/dist/chunk-4LHG6ZL7.mjs.br +0 -0
- package/dist/chunk-4LHG6ZL7.mjs.gz +0 -0
- package/dist/{chunk-3MW6F3K7.js → chunk-7HUYHWQS.js} +389 -389
- package/dist/chunk-7HUYHWQS.js.br +0 -0
- package/dist/chunk-7HUYHWQS.js.gz +0 -0
- package/dist/{chunk-OB4PKKIN.mjs → chunk-EVXT7HLY.mjs} +1 -1
- package/dist/chunk-EVXT7HLY.mjs.br +0 -0
- package/dist/chunk-EVXT7HLY.mjs.gz +0 -0
- package/dist/{chunk-WFMSDYVQ.js → chunk-GJ7E44BG.js} +3 -3
- package/dist/chunk-GJ7E44BG.js.br +0 -0
- package/dist/chunk-GJ7E44BG.js.gz +0 -0
- package/dist/{chunk-OXPD2UYI.mjs → chunk-M2TISD4A.mjs} +10 -10
- package/dist/chunk-M2TISD4A.mjs.br +0 -0
- package/dist/{chunk-OXPD2UYI.mjs.gz → chunk-M2TISD4A.mjs.gz} +0 -0
- package/dist/{chunk-S6PFSR7I.mjs → chunk-QG7TXWXP.mjs} +1 -1
- package/dist/chunk-QG7TXWXP.mjs.br +0 -0
- package/dist/chunk-QG7TXWXP.mjs.gz +0 -0
- package/dist/{chunk-54SDLPJY.js → chunk-RYLLTHFD.js} +1218 -1196
- package/dist/chunk-RYLLTHFD.js.br +0 -0
- package/dist/chunk-RYLLTHFD.js.gz +0 -0
- package/dist/{chunk-XMLPTDPM.js → chunk-UU6NFFRR.js} +147 -147
- package/dist/chunk-UU6NFFRR.js.br +0 -0
- package/dist/chunk-UU6NFFRR.js.gz +0 -0
- package/dist/{chunk-BGAJLL4N.mjs → chunk-YISXETNN.mjs} +2 -2
- package/dist/chunk-YISXETNN.mjs.br +0 -0
- package/dist/chunk-YISXETNN.mjs.gz +0 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -45
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.js +78 -78
- 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/viewer/index.js +26 -26
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +2 -2
- package/dist/AiChatPanel-DMBQPAGB.mjs.br +0 -0
- package/dist/AiChatPanel-DMBQPAGB.mjs.gz +0 -0
- package/dist/AiChatPanel-NLIUZ5RI.js.br +0 -0
- package/dist/AiChatPanel-NLIUZ5RI.js.gz +0 -0
- package/dist/Model3DScene-JNZN42TU.js.br +0 -0
- package/dist/Model3DScene-JNZN42TU.js.gz +0 -0
- package/dist/Model3DScene-ZO6U7YVU.mjs.br +0 -0
- package/dist/Model3DScene-ZO6U7YVU.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-P6CVRWDQ.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-P6CVRWDQ.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-PGD4ZCLI.js.br +0 -0
- package/dist/SurfaceChart3DScene-PGD4ZCLI.js.gz +0 -0
- package/dist/chunk-3MW6F3K7.js.br +0 -0
- package/dist/chunk-3MW6F3K7.js.gz +0 -0
- package/dist/chunk-54SDLPJY.js.br +0 -0
- package/dist/chunk-54SDLPJY.js.gz +0 -0
- package/dist/chunk-BGAJLL4N.mjs.br +0 -0
- package/dist/chunk-BGAJLL4N.mjs.gz +0 -0
- package/dist/chunk-OB4PKKIN.mjs.br +0 -0
- package/dist/chunk-OB4PKKIN.mjs.gz +0 -0
- package/dist/chunk-OXPD2UYI.mjs.br +0 -0
- package/dist/chunk-S6PFSR7I.mjs.br +0 -0
- package/dist/chunk-S6PFSR7I.mjs.gz +0 -0
- package/dist/chunk-SDOQKSKI.js.br +0 -0
- package/dist/chunk-VGHEHM66.mjs.br +0 -0
- package/dist/chunk-VGHEHM66.mjs.gz +0 -0
- package/dist/chunk-WFMSDYVQ.js.br +0 -0
- package/dist/chunk-WFMSDYVQ.js.gz +0 -0
- package/dist/chunk-XMLPTDPM.js.br +0 -0
- package/dist/chunk-XMLPTDPM.js.gz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { computeFocusTargets, aiChangeAnimationCss, changeGhostStyle, createChatHistoryStore, toRenderableParts } from './chunk-
|
|
2
|
-
import { useReducedMotion, useViewerState, useViewerOptions, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useLayoutSwitching, useYjsDocumentSync, useCollaborationLivePatch, useFollowMode, useBroadcastFollower, scopeLayoutOptionsToActiveSlide, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, useVirtualizedSlides, useSwipeNavigation, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP } from './chunk-
|
|
3
|
-
import { MIN_ELEMENT_SIZE, DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, DEFAULT_FILL_COLOR, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getCropShapeClipPath, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, buildTextBody3DSceneStyle, SLIDE_NAV_THUMBNAIL_WIDTH, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, TOOLBAR_SECTIONS, DEFAULT_SECTION_GROUP_ID, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, HYPERLINK_COLOR, GRID_SIZE, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, THEME_COLOR_SWATCHES, STROKE_DASH_OPTIONS } from './chunk-
|
|
1
|
+
import { computeFocusTargets, aiChangeAnimationCss, changeGhostStyle, createChatHistoryStore, toRenderableParts } from './chunk-EVXT7HLY.mjs';
|
|
2
|
+
import { useReducedMotion, useViewerState, useViewerOptions, useIsMobile, useResizablePanels, useDerivedSlideState, useZoomViewport, useEditorHistory, usePresentationSetup, useTouchGestures, useViewerDialogs, useEditorOperations, useViewerIntegration, useLayoutSwitching, useYjsDocumentSync, useCollaborationLivePatch, useFollowMode, useBroadcastFollower, scopeLayoutOptionsToActiveSlide, useToolbarVisibility, useKeyboardInsets, useModalDismissDrag, useCollaborativeState, useVirtualizedSlides, useSwipeNavigation, useSheetDismissDrag, detectTargetType, parseEmailUrl, parseSlideFromUrl, ACTION_VERB_MAP } from './chunk-YISXETNN.mjs';
|
|
3
|
+
import { MIN_ELEMENT_SIZE, DEFAULT_STROKE_COLOR, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageRenderStyle, cn, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, SHAPE_PRESETS, ANIMATION_PRESET_OPTIONS, DEFAULT_FILL_COLOR, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getCropShapeClipPath, getImageTilingStyle, getDuotoneColors, getTextWarpStyle, renderTextSegments, buildReactChartViewModel, renderChartElement, buildTextBody3DSceneStyle, SLIDE_NAV_THUMBNAIL_WIDTH, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, TOOLBAR_SECTIONS, DEFAULT_SECTION_GROUP_ID, SHORTCUT_REFERENCE_ITEMS as SHORTCUT_REFERENCE_ITEMS$1, HYPERLINK_COLOR, GRID_SIZE, CONNECTOR_ARROW_OPTIONS, ARROW_SIZE_OPTIONS, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation, THEME_COLOR_SWATCHES, STROKE_DASH_OPTIONS } from './chunk-QG7TXWXP.mjs';
|
|
4
4
|
import { LOCALE_CATALOG, translationsEn } from './chunk-L5MNLIQF.mjs';
|
|
5
|
-
import { hasShapeProperties, normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, hasTextProperties, getElementTransform, getAriaRoleDescription, getAriaLabel, getAriaRole, resolveElementInteractivity, isEditableTextElement, isElementRendered, isElementActionable, getImageEffectsOpacity, getImageEffectsFilter, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, getElementTransformWithoutRotation, ACTION_BUTTON_PRESETS, mediaTransportVisible, isInkElement, getGroupChildParentFill, getElementLabel, SWITCHABLE_LAYOUT_TYPES, DEFAULT_VIEWER_OPTIONS, compileEquationTemplateMathMl, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, resolveAutosaveActivation, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, resolveAutosaveIntervalMs, resolveAutosaveIntervalSeconds, shouldShowAutosaveRecoveryPrompt, paintedStrokeWidth, buildCssGradientFromShapeStyle, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, getComputedEffectStyle, getSoftEdgeSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, isImageLikeElement, getComputedFillStyle, strokeOutlineViewBox, revealedSmartArtNodeCount, buildSmartArtA11y, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, isImageTiled, getImageColorWashStyle, placeCaretAtEnd, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, resolveChartKind, ensureChartInteractionStyles, applyChartPartHighlight, applyChartBuildReveal, formatAxisValue, hasPressureVariation, getInkReplayStyles, INK_REPLAY_KEYFRAMES, resolveInkColor, resolveInkWidth, resolveInkOpacity, pressuresToWidths, getContentPartReplayStyles, resolveOleType, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, RULER_THICKNESS, RULER_FONT_SIZE, buildPreviewElements, deriveSlideFieldContext, SLIDE_TRANSITION_OPTIONS, hiddenSlideCue, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, themeToCssVars, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, hasCopyableFormat, templateSchemeFromTheme, createBackstagePresentation, setMasterViewBackgroundColor, printPropertiesFrameSlides, printPropertiesSlidesPerPage, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, DEFAULT_PALETTE2, resolvePalette, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveDrawingShapeNodeId, buildChromeStyle, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, findChartPartTarget, advanceChartValueDrag, beginChartValueDrag, buildSurfaceChart3DDataForElement, withChartTitle, buildSmartArt3DModel, extractPathPoints, generatePressureCircles, isBrowserOpenableMime, formatBytes, getOleBadgeLabel, openUrlInNewTab, getSubstituteFontFamily, getWarpPath, getSlideBackgroundStyle, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, masterViewBackgroundColor, buildFieldSubstitutionContext, shouldConfirmExternalHyperlink, safeOpenUrl, isPpactionUrl, parsePpactionUrl, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, buildContextMenuEntries, themeColorSchemesEqual, EXPANDED_MAX_HEIGHT, STATUS_BAR_CLASSES, buildBarActions, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, 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, centeredSvgTextLines, computeInlineEditorRect, findSmartArtNodeText, setSmartArtNodeStyle, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, updateSmartArtNodeText, groupIntoParagraphs, substituteFieldText, extraQuickAccessCommands, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, INSERT_CHART_TYPES, CHARACTER_SPACING_OPTIONS, RIBBON_SHAPE_SWATCHES, shapeFillChange, shapeOutlineChange, readRibbonTransitionDraft, ribbonTransitionUpdates, playSlideTransitionPreview, RIBBON_TRANSITION_PRESETS, DEFAULT_MOTION_PATH_PRESET_ID, SLIDE_SHOW_OPTIONS, slideShowOptionChange, readSlideShowOption, SLIDE_VIRTUALIZATION_THRESHOLD, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, getSlideTransitionAnimations, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, SLIDE_TRANSITION_KEYFRAMES, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, motionPathFor, setMotionPath, getShapeAdjustmentHandleDescriptors, PRESENTER_NAVIGATOR_LABEL_KEYS, PEN_COLORS, HIGHLIGHTER_COLORS, isBlackboardActive, slideSizeToCanvasPx, resolveSelectionPaneRename, PRESET_THEMES, resolveNotesSegments, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX, isUrlSafe, buildNotesPrintHtml, toggleSheet, sanitizeMathMl, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, downloadBlob, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, PRESENTER_CONSOLE_CONTROLS, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, resolveDefaultFontFamily, buildFontCatalog, ENTRANCE_PRESET_VALUES, EMPHASIS_PRESET_VALUES, EXIT_PRESET_VALUES, MOTION_PATH_FAMILIES, motionPathFamilyLabelKey, motionPathPresetsByFamily, motionPathPresetLabelKey, masterViewPseudoSlide, authorConnectorBetweenSites, generateTicks, rulerDragToGuidePosition, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, themeColorLabel, buildThemeColorGrid, THEME_COLOR_SCHEME_KEYS, COMMON_FONTS, buildSmartArtPresetData, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, isCurrentLayout, SLIDE_TEMPLATES, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, isElementLocked, mergeSlideTransition, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildLayoutPreviewGeometry, buildSlideTemplateContent, elementLockTogglePatch, buildTableDataGrid, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, TABLE_STYLE_PRESETS, applyTableStylePreset, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, getOleObjectTypeLabel, sanitizeGradientStops, pptxActionToElementAction, withFrameSlides, withSlidesPerPage, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, resolveSlideSizeSelection, SLIDE_SIZE_PRESETS, TRANSITION_VALID_DIRECTIONS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, flattenTagCollections, resolveTemplateBackgroundRows, formatCommentTimestamp, clearMotionPath, DIRECTIONAL_PRESETS, buildAnimationTimelineBars, motionPathPresetIdForPath, computeMergeCellRight, computeMergeCellDown, computeSplitCell, CHART_TYPE_OPTIONS, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSmartArtNodeAsChild, removeSmartArtNode, addSiblingAfter, removeEmptyNode, demote, promote, reorder, clampCropValue, DUOTONE_PRESETS, ARTISTIC_EFFECTS, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, toSlideIndex, elementActionToPptxAction, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, reorderAnimationTo, animationEffectLabel, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, switchSmartArtLayout, SHAPE_QUICK_STYLES, quickStyleSwatchCss, getPatternSvg, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, openNativeEyeDropper, toggleText3dExtrusion, BEVEL_PRESETS } from './chunk-OXPD2UYI.mjs';
|
|
5
|
+
import { hasShapeProperties, normalizeHexColor, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, svgLineCap, hasTextProperties, getElementTransform, getAriaRoleDescription, getAriaLabel, getAriaRole, resolveElementInteractivity, isEditableTextElement, isElementRendered, isElementActionable, getImageEffectsOpacity, getImageEffectsFilter, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, ACTION_BUTTON_PRESETS, mediaTransportVisible, isInkElement, getGroupChildParentFill, getElementLabel, SWITCHABLE_LAYOUT_TYPES, DEFAULT_VIEWER_OPTIONS, compileEquationTemplateMathMl, buildUserFontFaceStyles, readStoredViewerPrefs, resolveThemeCatalogEntry, THEME_CATALOG, writeStoredViewerPrefs, openPptxFile, readBackstageRecentFile, resolveAutosaveActivation, viewerOptionsToPreferences, applyPreferenceToOptions, listAutosaveSnapshots, deleteAutosaveSnapshot, resolveAutosaveIntervalMs, resolveAutosaveIntervalSeconds, shouldShowAutosaveRecoveryPrompt, paintedStrokeWidth, buildCssGradientFromShapeStyle, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, getComputedEffectStyle, getSoftEdgeSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, isImageLikeElement, getComputedFillStyle, strokeOutlineViewBox, revealedSmartArtNodeCount, buildSmartArtA11y, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, isImageTiled, getImageColorWashStyle, placeCaretAtEnd, getPendingSelectionRestore, restoreSegmentSelection, getTextCompensationTransform, resolveChartKind, ensureChartInteractionStyles, applyChartPartHighlight, applyChartBuildReveal, formatAxisValue, hasPressureVariation, getInkReplayStyles, INK_REPLAY_KEYFRAMES, resolveInkColor, resolveInkWidth, resolveInkOpacity, pressuresToWidths, getContentPartReplayStyles, resolveOleType, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, RULER_THICKNESS, RULER_FONT_SIZE, buildPreviewElements, deriveSlideFieldContext, SLIDE_TRANSITION_OPTIONS, hiddenSlideCue, HIDDEN_SLIDE_SLASH_GRADIENT, HIDDEN_SLIDE_LABEL_KEY, themeToCssVars, applyMotionPathPreset, resetSlideLayoutPath, DEFAULT_INSERT_CHART_KIND, hasCopyableFormat, templateSchemeFromTheme, createBackstagePresentation, setMasterViewBackgroundColor, printPropertiesFrameSlides, printPropertiesSlidesPerPage, VIEWER_OPTIONS_TABS, DEFAULT_QUICK_ACCESS_COMMAND_IDS, buildJoinCollaborationConfig, buildCreateCollaborationConfig, generateBroadcastRoomId, DEFAULT_BROADCAST_SERVER_URL, buildBroadcastViewerUrl, resolveTransportForServerUrl, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, DEFAULT_PALETTE2, resolvePalette, computeDrawingViewBox, projectDrawingShapes, styleShadowFilter, resolveDrawingShapeNodeId, buildChromeStyle, getImageSvgFilters, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, findChartPartTarget, advanceChartValueDrag, beginChartValueDrag, buildSurfaceChart3DDataForElement, withChartTitle, buildSmartArt3DModel, extractPathPoints, generatePressureCircles, isBrowserOpenableMime, formatBytes, getOleBadgeLabel, openUrlInNewTab, getSubstituteFontFamily, getWarpPath, getSlideBackgroundStyle, filterCommands, resolveTitleBarStatusKey, TITLE_BAR_CLASSES, TITLE_BAR_DEFAULT_FILE_KEY, masterViewBackgroundColor, buildFieldSubstitutionContext, shouldConfirmExternalHyperlink, safeOpenUrl, isPpactionUrl, parsePpactionUrl, isPresentationAdvanceClick, toggleBlackboard, PRESENT_TOOLBAR_CLASSES, buildContextMenuEntries, themeColorSchemesEqual, EXPANDED_MAX_HEIGHT, STATUS_BAR_CLASSES, buildBarActions, formatVersionTimestamp, formatRelativeTime, scanAvailableFontFamilies, PRESETS, CATEGORIES, convertOmmlToLatex, compileLatexEquation, convertLatexToOmml, EQUATION_TEMPLATES, clampPercent, 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, centeredSvgTextLines, computeInlineEditorRect, findSmartArtNodeText, setSmartArtNodeStyle, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, updateSmartArtNodeText, groupIntoParagraphs, substituteFieldText, extraQuickAccessCommands, TAB_ROW_ACTION_CLASSES, listBackstageRecentFiles, BACKSTAGE_NAV, INSERT_CHART_TYPES, CHARACTER_SPACING_OPTIONS, RIBBON_SHAPE_SWATCHES, shapeFillChange, shapeOutlineChange, readRibbonTransitionDraft, ribbonTransitionUpdates, playSlideTransitionPreview, RIBBON_TRANSITION_PRESETS, DEFAULT_MOTION_PATH_PRESET_ID, SLIDE_SHOW_OPTIONS, slideShowOptionChange, readSlideShowOption, SLIDE_VIRTUALIZATION_THRESHOLD, PRESENTATION_HIT_TEST_CSS, PRESENTATION_STAGE_ATTRIBUTE, getSlideTransitionAnimations, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, SLIDE_TRANSITION_KEYFRAMES, annotationOverlayZIndex, presentationInkPath, resolveNotesSchematicBodyFontSizePx, motionPathFor, setMotionPath, getShapeAdjustmentHandleDescriptors, PRESENTER_NAVIGATOR_LABEL_KEYS, PEN_COLORS, HIGHLIGHTER_COLORS, isBlackboardActive, slideSizeToCanvasPx, resolveSelectionPaneRename, PRESET_THEMES, resolveNotesSegments, segmentsToEditorHtml, DEBOUNCE_MS, createPlainNotesSegments, parseSegmentsFromRichEditor, segmentsToPlainText, getCurrentParagraphIndex, segmentsToParagraphs, paragraphsToSegments, MAX_INDENT_LEVEL, INDENT_PX, isUrlSafe, buildNotesPrintHtml, toggleSheet, sanitizeMathMl, computeHandoutLayout, getPrintableArea, generateNoteLineCount, computeAllNotesPages, getNotesPrintableArea, downloadBlob, clampOptionNumber, QUICK_ACCESS_COMMAND_CATALOG, registerCustomFont, openReadingView, applyReadingViewCommand, createPresentationKeyBuffer, readingViewFitScale, READING_VIEW_STAGE_ATTR, buildOutline, applyOutlineEdit, mapOutlineKey, notesSegmentsToSpans, erasePresentationInkAt, movePresenterPointer, appendPresentationInkPoint, PRESENTER_CONSOLE_CONTROLS, NOTES_FONT_SIZE_DEFAULT, formatTime, NOTES_FONT_SIZE_MIN, clampNotesFontSize, NOTES_FONT_SIZE_STEP, NOTES_FONT_SIZE_MAX, BACKSTAGE_TEMPLATES, formatBackstageDate, formatBackstageSize, backstageCardsFor, DEFAULT_VIEWER_PROFILE, resolveProfileInitial, AVATAR_COLOR_SWATCHES, resolveDefaultFontFamily, buildFontCatalog, ENTRANCE_PRESET_VALUES, EMPHASIS_PRESET_VALUES, EXIT_PRESET_VALUES, MOTION_PATH_FAMILIES, motionPathFamilyLabelKey, motionPathPresetsByFamily, motionPathPresetLabelKey, masterViewPseudoSlide, authorConnectorBetweenSites, generateTicks, rulerDragToGuidePosition, getElementTransformWithoutRotation, buildCommentMarkers, COMMENT_MARKER_SIZE, collectConnectorSiteCandidates, getConnectorEndpointHandles, findConnectorSiteNear, motionPathToSvgD, motionPathEndPixel, isEditableMotionPath, setMotionPathEnd, themeColorLabel, buildThemeColorGrid, THEME_COLOR_SCHEME_KEYS, COMMON_FONTS, buildSmartArtPresetData, handleReadingViewKey, getLocalStorageUsageSummary, saveViewerProfile, clearAllLocalViewerData, isCurrentLayout, SLIDE_TEMPLATES, CONNECTOR_SITE_SNAP_PX, resolveConnectorEndpointUpdate, withConnectorEndpointUpdate, getShapeConnectionSites, isElementLocked, mergeSlideTransition, mapSlideSorterKey, isEditorTextInputTarget, clampSorterZoom, buildLayoutPreviewGeometry, buildSlideTemplateContent, elementLockTogglePatch, buildTableDataGrid, appendTableElementRow, removeLastTableElementRow, appendTableElementColumn, removeLastTableElementColumn, removeTableElementColumn, removeTableElementRow, setTableElementCellText, TABLE_STYLE_PRESETS, applyTableStylePreset, evenColumnWidths, redistributeColumnWidth, evenRowHeights, patchChartData, setChartCategoryLabel, setChartCellValue, addChartCategory, removeChartCategory, addChartSeries, removeChartSeries, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointExplosion, setChartDataPointMarker, setChartDataPointLabel, describeSmartArtBounds, canAddTopLevelNode, classifyExtraConnections, siblingIndex, siblingCount, canRemoveTopLevelNode, getOleObjectTypeLabel, sanitizeGradientStops, pptxActionToElementAction, withFrameSlides, withSlidesPerPage, applyThemeOverrideToSlide, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, schemaLabel, THEME_COLOR_SLOT_LABEL_KEYS, resolveSlideSizeSelection, SLIDE_SIZE_PRESETS, TRANSITION_VALID_DIRECTIONS, TRANSITION_ORIENTATION_TYPES, clampTransitionNumber, flattenTagCollections, resolveTemplateBackgroundRows, formatCommentTimestamp, clearMotionPath, DIRECTIONAL_PRESETS, buildAnimationTimelineBars, motionPathPresetIdForPath, computeMergeCellRight, computeMergeCellDown, computeSplitCell, CHART_TYPE_OPTIONS, SMARTART_COLOR_SCHEME_LABEL_KEYS, SMARTART_STYLE_LABEL_KEYS, addSmartArtNodeAsChild, removeSmartArtNode, addSiblingAfter, removeEmptyNode, demote, promote, reorder, clampCropValue, DUOTONE_PRESETS, ARTISTIC_EFFECTS, resolveActionType, ELEMENT_ACTION_TYPE_OPTIONS, toSlideIndex, elementActionToPptxAction, canCommitActionType, slideSizeFromPreset, withSlideSizeOrientation, TRANSITION_DIR_ARROWS, buildDirectionGrid, updateTagInCollections, deleteTagFromCollections, addTagToCollections, commentTextSegments, COMMENT_MENTION_CLASS, COMMENT_MENTION_ATTRIBUTE, reorderAnimationTo, animationEffectLabel, LBL, SEL, FILL_MODE_OPTIONS, SECTION_HEADING, NUM, switchSmartArtLayout, SHAPE_QUICK_STYLES, quickStyleSwatchCss, getPatternSvg, TEXT_WARP_PRESETS, warpPreviewPath, text3dPtToEmu, text3dEmuToPt, MATERIAL_PRESETS, GRADIENT_TYPE_OPTIONS, PATTERN_OPTIONS, FILL_PATTERN_LABEL_KEYS, openNativeEyeDropper, toggleText3dExtrusion, BEVEL_PRESETS } from './chunk-M2TISD4A.mjs';
|
|
6
6
|
import React15, { createContext, useMemo, useState, useCallback, lazy, forwardRef, useEffect, useRef, Suspense, useLayoutEffect, useContext, Fragment as Fragment$1, useDeferredValue } from 'react';
|
|
7
7
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
@@ -485,7 +485,7 @@ function FailedToLoad() {
|
|
|
485
485
|
var LazySurfaceChart3DScene = React15.lazy(
|
|
486
486
|
async () => {
|
|
487
487
|
try {
|
|
488
|
-
return await import('./SurfaceChart3DScene-
|
|
488
|
+
return await import('./SurfaceChart3DScene-N66TY4SW.mjs');
|
|
489
489
|
} catch {
|
|
490
490
|
return { default: FailedToLoad };
|
|
491
491
|
}
|
|
@@ -1585,23 +1585,6 @@ function getContainerStyle({
|
|
|
1585
1585
|
...templateEditing ? { outline: "2px dashed rgb(217, 119, 6)", outlineOffset: "1px", opacity: opacity ?? 0.95 } : {}
|
|
1586
1586
|
};
|
|
1587
1587
|
}
|
|
1588
|
-
function getHandleHostStyle({
|
|
1589
|
-
el,
|
|
1590
|
-
isFullscreenMedia,
|
|
1591
|
-
zIndex
|
|
1592
|
-
}) {
|
|
1593
|
-
return {
|
|
1594
|
-
position: "absolute",
|
|
1595
|
-
left: isFullscreenMedia ? 0 : el.x,
|
|
1596
|
-
top: isFullscreenMedia ? 0 : el.y,
|
|
1597
|
-
width: isFullscreenMedia ? "100%" : Math.max(el.width, MIN_ELEMENT_SIZE),
|
|
1598
|
-
height: isFullscreenMedia ? "100%" : Math.max(el.height, MIN_ELEMENT_SIZE),
|
|
1599
|
-
transform: isFullscreenMedia ? "none" : getElementTransform(el),
|
|
1600
|
-
transformOrigin: "center",
|
|
1601
|
-
zIndex: isFullscreenMedia ? 21 : zIndex,
|
|
1602
|
-
pointerEvents: "none"
|
|
1603
|
-
};
|
|
1604
|
-
}
|
|
1605
1588
|
|
|
1606
1589
|
// src/viewer/components/elements/element-shape-params.ts
|
|
1607
1590
|
function shapeParams(element) {
|
|
@@ -1856,7 +1839,6 @@ var ElementRenderer = React15.memo(
|
|
|
1856
1839
|
adjustmentHandles: adjH,
|
|
1857
1840
|
onResizePointerDown,
|
|
1858
1841
|
onAdjustmentPointerDown,
|
|
1859
|
-
onRotate,
|
|
1860
1842
|
onInlineEditChange,
|
|
1861
1843
|
onInlineEditCommit,
|
|
1862
1844
|
onInlineEditCancel,
|
|
@@ -1950,7 +1932,6 @@ var ElementRenderer = React15.memo(
|
|
|
1950
1932
|
);
|
|
1951
1933
|
}
|
|
1952
1934
|
const effectiveCanInteract = canInteract && allow.selectable;
|
|
1953
|
-
const effectiveShowResizeHandles = showResizeHandles && allow.resizable;
|
|
1954
1935
|
const effectiveIsInlineEditing = isInlineEditing && allow.textEditable;
|
|
1955
1936
|
const canEditSmartArt = effectiveCanInteract && allow.textEditable;
|
|
1956
1937
|
const canEditChart = effectiveCanInteract;
|
|
@@ -1979,144 +1960,123 @@ var ElementRenderer = React15.memo(
|
|
|
1979
1960
|
onInlineEditCancel,
|
|
1980
1961
|
onActionClick
|
|
1981
1962
|
});
|
|
1982
|
-
return /* @__PURE__ */ jsxs(
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
1963
|
+
return /* @__PURE__ */ jsxs(
|
|
1964
|
+
"div",
|
|
1965
|
+
{
|
|
1966
|
+
"data-pptx-element": "true",
|
|
1967
|
+
"data-element-id": el.id,
|
|
1968
|
+
"data-pptx-action": isActionable ? "click" : void 0,
|
|
1969
|
+
role: ariaRole,
|
|
1970
|
+
"aria-label": ariaLabel,
|
|
1971
|
+
"aria-roledescription": ariaRoleDescription,
|
|
1972
|
+
"aria-selected": isSelected ? true : void 0,
|
|
1973
|
+
tabIndex: isFocusable ? 0 : -1,
|
|
1974
|
+
className: cn(
|
|
1975
|
+
"absolute",
|
|
1976
|
+
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500",
|
|
1977
|
+
cur,
|
|
1978
|
+
// During a show this must stay EMPTY: `PRESENTATION_HIT_TEST_CSS`
|
|
1979
|
+
// (injected by `PresentationStage`) owns hit-testing there, because
|
|
1980
|
+
// it is the only form that can re-enable an action shape nested
|
|
1981
|
+
// inside inert scenery - an inline `pointer-events: none` on the
|
|
1982
|
+
// group could never do that, and React was the one binding that
|
|
1983
|
+
// wrote it. Off the show stage the inline rule still applies.
|
|
1984
|
+
inlineElementPointerEvents({
|
|
1985
|
+
interactive: effectiveCanInteract || isActionable,
|
|
1986
|
+
presenting: presenting === true
|
|
1987
|
+
}) === "none" ? "pointer-events-none" : "",
|
|
1988
|
+
// An unfilled, textless shape is a FRAME: PowerPoint hit-tests it on its
|
|
1989
|
+
// outline only, so its interior must not swallow clicks meant for what it
|
|
1990
|
+
// is drawn over. ShapeEffectOverlay paints a transparent
|
|
1991
|
+
// pointer-events:stroke band that opts the outline back in.
|
|
1992
|
+
isHollowShapeElement(el) ? "pointer-events-none" : "",
|
|
1993
|
+
isFullscreenMedia ? "pointer-events-auto" : "",
|
|
1994
|
+
selB,
|
|
1995
|
+
// Shared class the tooltip's `:hover` rule keys off (see
|
|
1996
|
+
// `ACTION_AFFORDANCE_CSS`), replacing React's Tailwind `group/link`
|
|
1997
|
+
// so the four non-Tailwind bindings reveal it the same way.
|
|
1998
|
+
actionAffordance.showLinkTooltip && LINK_TOOLTIP_HOST_CLASS
|
|
1999
|
+
),
|
|
2000
|
+
style: getContainerStyle({
|
|
2001
|
+
el,
|
|
2002
|
+
isFullscreenMedia,
|
|
2003
|
+
isImg: isImg || isModel3D,
|
|
2004
|
+
zIndex,
|
|
2005
|
+
opacity,
|
|
2006
|
+
animationState,
|
|
2007
|
+
shapeVisualStyle: ss,
|
|
2008
|
+
has3DExtrusion: extrusionData.hasExtrusion,
|
|
2009
|
+
templateEditing
|
|
2010
|
+
}),
|
|
2011
|
+
...interactionProps,
|
|
2012
|
+
children: [
|
|
2013
|
+
renderDagDuotoneFilterForElement(el),
|
|
2014
|
+
/* @__PURE__ */ jsx(ShapeEffectOverlay, { element: el }),
|
|
2015
|
+
extrusionData.hasExtrusion && /* @__PURE__ */ jsx(Extrusion3DOverlay, { data: extrusionData }),
|
|
2016
|
+
renderBody({
|
|
2021
2017
|
el,
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2018
|
+
isImg,
|
|
2019
|
+
isEditing: effectiveIsInlineEditing,
|
|
2020
|
+
editText: inlineEditingText,
|
|
2021
|
+
spellCheck: spellCheckEnabled,
|
|
2022
|
+
txtSE,
|
|
2023
|
+
txtS: ts,
|
|
2024
|
+
vecShape: vs,
|
|
2025
|
+
imgStyle: getImageRenderStyle(el),
|
|
2026
|
+
imgFilter: getImageEffectsFilter(el),
|
|
2027
|
+
imgOpacity: getImageEffectsOpacity(el),
|
|
2028
|
+
imgAlt: imageAltText,
|
|
2029
|
+
isTxtEl: isTxt,
|
|
2030
|
+
media: mediaDataUrls,
|
|
2031
|
+
tableSt: tableEditorState,
|
|
2032
|
+
isSel: isSelected,
|
|
2033
|
+
doInk,
|
|
2034
|
+
doGrp,
|
|
2035
|
+
renderGroupChild: (child, index) => /* @__PURE__ */ jsx(
|
|
2036
|
+
StaticElementRenderer,
|
|
2037
|
+
{
|
|
2038
|
+
element: child,
|
|
2039
|
+
activeSlide,
|
|
2040
|
+
allSlides,
|
|
2041
|
+
mediaDataUrls,
|
|
2042
|
+
sourceSlideIndex,
|
|
2043
|
+
zIndex: index,
|
|
2044
|
+
animation: presentationElementStates?.get(child.id)?.cssAnimation,
|
|
2045
|
+
exposeElementId: true,
|
|
2046
|
+
parentGroupFill: getGroupChildParentFill(el),
|
|
2047
|
+
onActionClick: el.actionClick ? void 0 : onActionClick,
|
|
2048
|
+
actionRequiresModifier: effectiveCanInteract
|
|
2049
|
+
},
|
|
2050
|
+
child.id
|
|
2051
|
+
),
|
|
2052
|
+
onEditChange: onInlineEditChange,
|
|
2053
|
+
onCommit: onInlineEditCommit,
|
|
2054
|
+
onCancel: onInlineEditCancel,
|
|
2055
|
+
onCellSel: cellSelectHandler,
|
|
2056
|
+
onCellCommit: cellCommitHandler,
|
|
2057
|
+
onColResize: colResizeHandler,
|
|
2058
|
+
onRowResize: rowResizeHandler,
|
|
2059
|
+
findHl: findHighlights,
|
|
2060
|
+
onHyperlinkClick,
|
|
2061
|
+
isPresentationPassive,
|
|
2062
|
+
handleMediaPlayStateChange,
|
|
2063
|
+
presentationElementStates,
|
|
2064
|
+
slideElements: activeSlide?.elements,
|
|
2065
|
+
allSlides,
|
|
2066
|
+
onZoomClick,
|
|
2067
|
+
sourceSlideIndex,
|
|
2068
|
+
fieldContext,
|
|
2069
|
+
tableStyleContext,
|
|
2070
|
+
canEditSmartArt,
|
|
2071
|
+
onUpdateSmartArtElement: smartArtUpdateHandler,
|
|
2072
|
+
canEditChart,
|
|
2073
|
+
onUpdateChartElement: chartUpdateHandler,
|
|
2074
|
+
onFormatText
|
|
2030
2075
|
}),
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
extrusionData.hasExtrusion && /* @__PURE__ */ jsx(Extrusion3DOverlay, { data: extrusionData }),
|
|
2036
|
-
renderBody({
|
|
2037
|
-
el,
|
|
2038
|
-
isImg,
|
|
2039
|
-
isEditing: effectiveIsInlineEditing,
|
|
2040
|
-
editText: inlineEditingText,
|
|
2041
|
-
spellCheck: spellCheckEnabled,
|
|
2042
|
-
txtSE,
|
|
2043
|
-
txtS: ts,
|
|
2044
|
-
vecShape: vs,
|
|
2045
|
-
imgStyle: getImageRenderStyle(el),
|
|
2046
|
-
imgFilter: getImageEffectsFilter(el),
|
|
2047
|
-
imgOpacity: getImageEffectsOpacity(el),
|
|
2048
|
-
imgAlt: imageAltText,
|
|
2049
|
-
isTxtEl: isTxt,
|
|
2050
|
-
media: mediaDataUrls,
|
|
2051
|
-
tableSt: tableEditorState,
|
|
2052
|
-
isSel: isSelected,
|
|
2053
|
-
doInk,
|
|
2054
|
-
doGrp,
|
|
2055
|
-
renderGroupChild: (child, index) => /* @__PURE__ */ jsx(
|
|
2056
|
-
StaticElementRenderer,
|
|
2057
|
-
{
|
|
2058
|
-
element: child,
|
|
2059
|
-
activeSlide,
|
|
2060
|
-
allSlides,
|
|
2061
|
-
mediaDataUrls,
|
|
2062
|
-
sourceSlideIndex,
|
|
2063
|
-
zIndex: index,
|
|
2064
|
-
animation: presentationElementStates?.get(child.id)?.cssAnimation,
|
|
2065
|
-
exposeElementId: true,
|
|
2066
|
-
parentGroupFill: getGroupChildParentFill(el),
|
|
2067
|
-
onActionClick: el.actionClick ? void 0 : onActionClick,
|
|
2068
|
-
actionRequiresModifier: effectiveCanInteract
|
|
2069
|
-
},
|
|
2070
|
-
child.id
|
|
2071
|
-
),
|
|
2072
|
-
onEditChange: onInlineEditChange,
|
|
2073
|
-
onCommit: onInlineEditCommit,
|
|
2074
|
-
onCancel: onInlineEditCancel,
|
|
2075
|
-
onCellSel: cellSelectHandler,
|
|
2076
|
-
onCellCommit: cellCommitHandler,
|
|
2077
|
-
onColResize: colResizeHandler,
|
|
2078
|
-
onRowResize: rowResizeHandler,
|
|
2079
|
-
findHl: findHighlights,
|
|
2080
|
-
onHyperlinkClick,
|
|
2081
|
-
isPresentationPassive,
|
|
2082
|
-
handleMediaPlayStateChange,
|
|
2083
|
-
presentationElementStates,
|
|
2084
|
-
slideElements: activeSlide?.elements,
|
|
2085
|
-
allSlides,
|
|
2086
|
-
onZoomClick,
|
|
2087
|
-
sourceSlideIndex,
|
|
2088
|
-
fieldContext,
|
|
2089
|
-
tableStyleContext,
|
|
2090
|
-
canEditSmartArt,
|
|
2091
|
-
onUpdateSmartArtElement: smartArtUpdateHandler,
|
|
2092
|
-
canEditChart,
|
|
2093
|
-
onUpdateChartElement: chartUpdateHandler,
|
|
2094
|
-
onFormatText
|
|
2095
|
-
}),
|
|
2096
|
-
/* @__PURE__ */ jsx(ActionAffordances, { affordance: actionAffordance })
|
|
2097
|
-
]
|
|
2098
|
-
}
|
|
2099
|
-
),
|
|
2100
|
-
effectiveShowResizeHandles && !effectiveIsInlineEditing && // A SIBLING of the shape's own (possibly clip-path'd) container, not a
|
|
2101
|
-
// child: `clip-path` excludes every descendant from hit-testing, not
|
|
2102
|
-
// just paint, so a handle measured onto a preset vertex outside the
|
|
2103
|
-
// shape's silhouette (see `getHandleHostStyle`) would be unclickable
|
|
2104
|
-
// if nested inside it. `pointerEvents: 'none'` on the host keeps every
|
|
2105
|
-
// non-handle pixel click-through to whatever is actually under it.
|
|
2106
|
-
/* @__PURE__ */ jsx("div", { style: getHandleHostStyle({ el, isFullscreenMedia, zIndex }), children: /* @__PURE__ */ jsx(
|
|
2107
|
-
ResizeHandles,
|
|
2108
|
-
{
|
|
2109
|
-
elementId: el.id,
|
|
2110
|
-
adjustmentHandles: adjH,
|
|
2111
|
-
onResizePointerDown,
|
|
2112
|
-
onAdjustmentPointerDown,
|
|
2113
|
-
rotation: el.rotation,
|
|
2114
|
-
nonRotationTransform: getElementTransformWithoutRotation(el),
|
|
2115
|
-
onRotate: allow.rotatable ? onRotate : void 0,
|
|
2116
|
-
forcePointerEvents: true
|
|
2117
|
-
}
|
|
2118
|
-
) })
|
|
2119
|
-
] });
|
|
2076
|
+
/* @__PURE__ */ jsx(ActionAffordances, { affordance: actionAffordance })
|
|
2077
|
+
]
|
|
2078
|
+
}
|
|
2079
|
+
);
|
|
2120
2080
|
}
|
|
2121
2081
|
);
|
|
2122
2082
|
function renderPressureStroke(pathD, widths, baseWidth, color, opacity, keyPrefix) {
|
|
@@ -2678,7 +2638,7 @@ function FailedToLoad2() {
|
|
|
2678
2638
|
var LazyModel3DScene = React15.lazy(
|
|
2679
2639
|
async () => {
|
|
2680
2640
|
try {
|
|
2681
|
-
return await import('./Model3DScene-
|
|
2641
|
+
return await import('./Model3DScene-A3652H7T.mjs');
|
|
2682
2642
|
} catch {
|
|
2683
2643
|
return { default: FailedToLoad2 };
|
|
2684
2644
|
}
|
|
@@ -5872,7 +5832,7 @@ function AccountPage() {
|
|
|
5872
5832
|
return void 0;
|
|
5873
5833
|
});
|
|
5874
5834
|
};
|
|
5875
|
-
const version = "3.0.
|
|
5835
|
+
const version = "3.0.1" ;
|
|
5876
5836
|
return /* @__PURE__ */ jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
|
|
5877
5837
|
/* @__PURE__ */ jsxs("section", { className: cardClass, children: [
|
|
5878
5838
|
/* @__PURE__ */ jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
|
|
@@ -11085,6 +11045,55 @@ function Ruler({
|
|
|
11085
11045
|
)
|
|
11086
11046
|
] });
|
|
11087
11047
|
}
|
|
11048
|
+
function SelectionHandleOverlay({
|
|
11049
|
+
element,
|
|
11050
|
+
adjustmentHandles,
|
|
11051
|
+
onResizePointerDown,
|
|
11052
|
+
onAdjustmentPointerDown,
|
|
11053
|
+
onRotate,
|
|
11054
|
+
onClick,
|
|
11055
|
+
onDoubleClick,
|
|
11056
|
+
onContextMenu
|
|
11057
|
+
}) {
|
|
11058
|
+
const allow = resolveElementInteractivity(element);
|
|
11059
|
+
return /* @__PURE__ */ jsx(
|
|
11060
|
+
"div",
|
|
11061
|
+
{
|
|
11062
|
+
"data-element-id": element.id,
|
|
11063
|
+
"data-pptx-selection-handle-host": "true",
|
|
11064
|
+
style: {
|
|
11065
|
+
position: "absolute",
|
|
11066
|
+
left: element.x,
|
|
11067
|
+
top: element.y,
|
|
11068
|
+
width: Math.max(element.width, MIN_ELEMENT_SIZE),
|
|
11069
|
+
height: Math.max(element.height, MIN_ELEMENT_SIZE),
|
|
11070
|
+
transform: getElementTransform(element),
|
|
11071
|
+
transformOrigin: "center",
|
|
11072
|
+
// Transparent everywhere a handle button is not, so a click that
|
|
11073
|
+
// misses every handle still reaches the shape (or whatever is
|
|
11074
|
+
// behind it) exactly as if this host did not exist. `ResizeHandles`
|
|
11075
|
+
// renders with `forcePointerEvents` so its own buttons opt back in.
|
|
11076
|
+
pointerEvents: "none"
|
|
11077
|
+
},
|
|
11078
|
+
onClick: (e) => onClick(element.id, e),
|
|
11079
|
+
onDoubleClick: (e) => onDoubleClick(element.id, e),
|
|
11080
|
+
onContextMenu: (e) => onContextMenu(element.id, e),
|
|
11081
|
+
children: /* @__PURE__ */ jsx(
|
|
11082
|
+
ResizeHandles,
|
|
11083
|
+
{
|
|
11084
|
+
elementId: element.id,
|
|
11085
|
+
adjustmentHandles,
|
|
11086
|
+
onResizePointerDown,
|
|
11087
|
+
onAdjustmentPointerDown,
|
|
11088
|
+
rotation: element.rotation,
|
|
11089
|
+
nonRotationTransform: getElementTransformWithoutRotation(element),
|
|
11090
|
+
onRotate: allow.rotatable ? onRotate : void 0,
|
|
11091
|
+
forcePointerEvents: true
|
|
11092
|
+
}
|
|
11093
|
+
)
|
|
11094
|
+
}
|
|
11095
|
+
);
|
|
11096
|
+
}
|
|
11088
11097
|
|
|
11089
11098
|
// src/viewer/components/canvas/canvas-types.ts
|
|
11090
11099
|
function getElementIdFromEvent(e) {
|
|
@@ -12022,6 +12031,19 @@ function SlideCanvas({
|
|
|
12022
12031
|
},
|
|
12023
12032
|
element.id
|
|
12024
12033
|
)),
|
|
12034
|
+
isEditableCanvas && selectedElement && selectedElementIdSet.size <= 1 && !inlineEditingElementId && !isConnectorOrLineElement(selectedElement) && /* @__PURE__ */ jsx(
|
|
12035
|
+
SelectionHandleOverlay,
|
|
12036
|
+
{
|
|
12037
|
+
element: selectedElement,
|
|
12038
|
+
adjustmentHandles: getShapeAdjustmentHandleDescriptors(selectedElement),
|
|
12039
|
+
onResizePointerDown: stableResizePointerDown,
|
|
12040
|
+
onAdjustmentPointerDown: stableAdjustmentPointerDown,
|
|
12041
|
+
onRotate: stableRotate,
|
|
12042
|
+
onClick,
|
|
12043
|
+
onDoubleClick,
|
|
12044
|
+
onContextMenu
|
|
12045
|
+
}
|
|
12046
|
+
),
|
|
12025
12047
|
/* @__PURE__ */ jsx(MarqueeOverlay, { marqueeSelectionState }),
|
|
12026
12048
|
activeSlide?.activeXControls && activeSlide.activeXControls.length > 0 && /* @__PURE__ */ jsx(ActiveXControlOverlay, { controls: activeSlide.activeXControls, canvasSize }),
|
|
12027
12049
|
showCommentMarkers && comments && comments.length > 0 && /* @__PURE__ */ jsx(
|
|
@@ -34572,7 +34594,7 @@ ${url}`)) {
|
|
|
34572
34594
|
var AiChatPanel = lazy(async () => {
|
|
34573
34595
|
const [{ useChat }, { default: Panel }] = await Promise.all([
|
|
34574
34596
|
import('@ai-sdk/react'),
|
|
34575
|
-
import('./AiChatPanel-
|
|
34597
|
+
import('./AiChatPanel-DYOBY6OG.mjs')
|
|
34576
34598
|
]);
|
|
34577
34599
|
function BoundAiChatPanel(props) {
|
|
34578
34600
|
return /* @__PURE__ */ jsx(Panel, { ...props, useChat });
|
|
Binary file
|
|
Binary file
|