pptx-react-viewer 4.43.0 → 4.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/dist/{AiChatPanel-VI2IQ7XU.js → AiChatPanel-TGZQBH3L.js} +9 -9
- package/dist/AiChatPanel-TGZQBH3L.js.br +0 -0
- package/dist/AiChatPanel-TGZQBH3L.js.gz +0 -0
- package/dist/{AiChatPanel-R5UTSMXU.mjs → AiChatPanel-Z5VHI4WA.mjs} +1 -1
- package/dist/AiChatPanel-Z5VHI4WA.mjs.br +0 -0
- package/dist/AiChatPanel-Z5VHI4WA.mjs.gz +0 -0
- package/dist/{chunk-GLWV52C6.js → chunk-2YCROYR6.js} +333 -263
- package/dist/chunk-2YCROYR6.js.br +0 -0
- package/dist/chunk-2YCROYR6.js.gz +0 -0
- package/dist/{chunk-UACDKMXF.mjs → chunk-66APV3YZ.mjs} +91 -21
- package/dist/chunk-66APV3YZ.mjs.br +0 -0
- package/dist/chunk-66APV3YZ.mjs.gz +0 -0
- package/dist/{chunk-3LIHPZKS.mjs → chunk-FBN7UFW2.mjs} +15 -9
- package/dist/chunk-FBN7UFW2.mjs.br +0 -0
- package/dist/chunk-FBN7UFW2.mjs.gz +0 -0
- package/dist/{chunk-CHPELGQD.js → chunk-KUQRWMIK.js} +1455 -1434
- package/dist/chunk-KUQRWMIK.js.br +0 -0
- package/dist/chunk-KUQRWMIK.js.gz +0 -0
- package/dist/{chunk-FKY33ZKL.js → chunk-VJZJESNT.js} +14 -8
- package/dist/chunk-VJZJESNT.js.br +0 -0
- package/dist/chunk-VJZJESNT.js.gz +0 -0
- package/dist/{chunk-ITV63NJ5.mjs → chunk-VUE3EPTJ.mjs} +148 -127
- package/dist/chunk-VUE3EPTJ.mjs.br +0 -0
- package/dist/chunk-VUE3EPTJ.mjs.gz +0 -0
- package/dist/index.d.ts +21 -3
- package/dist/index.js +24 -24
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +12 -3
- package/dist/internals.js +81 -81
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +2 -2
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.d.ts +14 -3
- package/dist/viewer/index.js +19 -19
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +3 -3
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-R5UTSMXU.mjs.br +0 -0
- package/dist/AiChatPanel-R5UTSMXU.mjs.gz +0 -0
- package/dist/AiChatPanel-VI2IQ7XU.js.br +0 -0
- package/dist/AiChatPanel-VI2IQ7XU.js.gz +0 -0
- package/dist/chunk-3LIHPZKS.mjs.br +0 -0
- package/dist/chunk-3LIHPZKS.mjs.gz +0 -0
- package/dist/chunk-CHPELGQD.js.br +0 -0
- package/dist/chunk-CHPELGQD.js.gz +0 -0
- package/dist/chunk-FKY33ZKL.js.br +0 -0
- package/dist/chunk-FKY33ZKL.js.gz +0 -0
- package/dist/chunk-GLWV52C6.js.br +0 -0
- package/dist/chunk-GLWV52C6.js.gz +0 -0
- package/dist/chunk-ITV63NJ5.mjs.br +0 -0
- package/dist/chunk-ITV63NJ5.mjs.gz +0 -0
- package/dist/chunk-UACDKMXF.mjs.br +0 -0
- package/dist/chunk-UACDKMXF.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dist_exports, normalizeHexColor, DEFAULT_STROKE_COLOR, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getAriaRoleDescription, getAriaLabel, getAriaRole, isEditableTextElement, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageEffectsOpacity, getImageEffectsFilter, getImageRenderStyle, cn, ACTION_BUTTON_PRESETS, getImageSurfaceStyle, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, getElementLabel, DEFAULT_FILL_COLOR, buildCssGradientFromShapeStyle, getCropShapeClipPath, getElementTransform, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getImageSurfaceMaskStyle, isImageTiled, getDuotoneColors, getTextWarpStyle, getTextCompensationTransform, renderTextSegments, buildReactChartViewModel, renderChartElement, buildInkGroupStrokes, getInkReplayStyles, INK_REPLAY_KEYFRAMES, buildContentPartStrokes, getContentPartReplayStyles, MIN_ELEMENT_SIZE, buildTextBody3DSceneStyle, getImageTilingStyle, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, substituteFieldText, HYPERLINK_COLOR, cloneTemplateElementsBySlideId, cloneSlide, cloneHistorySnapshot, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, partitionTemplateElements, isTemplateElementId, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, comparePresentation, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, stopAllPersistentAudio, buildSaveSlides, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, makeCloneId, buildPdfFromTiledImageData, GRID_SIZE, copyFormatFromElement, hasCopyableFormat, rerouteConnectorsForMovedElements, applyReroutedConnectors, splitCell, mergeCells, buildNotesPdf, canvasToJpegData, applyFormatToElement, isPpactionUrl, parsePpactionUrl, isUrlSafe, computeSnapToShape, safeOpenUrl as safeOpenUrl$1 } from './chunk-
|
|
2
|
-
import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, defineThreeViewElement, getSelectionControlArtworkStyle, svgLineCap, getSelectionOutlineColor, screenStrokeWidth, connectorWrapperTransform, resolveElementInteractivity, getBackgroundAnimationState, getShapeEffectLayerPlacement, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, getShapeEffectAnimationLayerStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, getResizeHandleHitAreaStyle, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, getAnimationOpacity, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, getImageColorWashStyle, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, mapInlineEditorChord, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, chartFormatTargetFromEvent, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, getAriaRoleDescription as getAriaRoleDescription$1, getAriaLabel as getAriaLabel$1, attachRotateHandlePlacement, elementIdSelector, createRotationDrag, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, SMARTART_DEFAULT_PALETTE, resolvePalette as resolvePalette$1, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, measureSvgViewportRect, modelDataToBlobUrl, resolveZoomNavigationTarget, getImageSvgFilters, getCachedNativeImageSize, probeNativeImageSize, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, getInlineEditorSelectionResult, isBulletMarkerSegment, resolveChartThreeViewSpec, applyChart3DDrag, applyChart3DSelect, findChartPartTarget, withChartTitle, resolveSmartArtThreeViewSpec, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, openUrlInNewTab, hasGlyphEnvelope, buildGlyphEnvelopeBlock, getWarpPath, isWedgeCalloutPresetShape, getAriaRole as getAriaRole$1, isElementActionable, centeredSvgTextLines, findSmartArtNodeText, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, advanceChartMarkDrag, advanceChartValueDrag, resolveChartKind, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, commitSmartArtNodeFill, commitSmartArtNodeText, groupIntoParagraphs as groupIntoParagraphs$1, computeInlineEditorRect, smartArtNodeAtPoint, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, resolveMediaBookmarkTimesMs, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, resolveForwardSlideWithZoomReturn, buildZoomTransitionOverride, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, beginZoomExcursion, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, visibleTemplateElements, createCollaborationLivePatcher, publishLiveInlineText, initialInspectorOpen, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, resolveInitialSlideIndex, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canMergeShapes, canInteractWithElement, prepareHtml2CanvasClone, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, resolveImageResolutionScale, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, acknowledgeAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, rasterResultToPngBlob, downloadBlob, elementPictureFilename, canEditElementPoints, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, isFeatureEnabled, mapSlideShowStartKey, mapCustomizedEditorKey, isEditorControlTarget, isEditorTextInputTarget, parentSelection, textFontSizePtToPx, stepFontSizePt, textFontSizePxToPt, cycleSelectableElement, createCustomizationController, prepareElementForInsertion, slideSpaceElement, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, deviceStrokeStageStyle, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, setPendingCaretPoint, drillSelectionForDoubleClick, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, contextMenuInspectorAnchor, savedPresentationFileName, exportDeckJson, groupElements, generateElementId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, planMergeShapes, applyMergeShapesPlan, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, openPendingPrintWindow, computeColorFilter, filterHiddenSlideIndices, computeSlideIndices, buildPrintDocument, finishPrintWindow, buildPrintHtmlDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, insertSlidePaste, applySlidePasteTemplates, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, resolveViewportFitOptions, editorViewportFitFor, calculateViewportFit, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, slideSpaceMembers, remapTextToSegments, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx as computeGridSpacingPx$1, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, rasterizeElement, cloneElementForPaste, applyPasteSpecialFormat, buildRasterPictureElement, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, observeExternalCollaborationReadiness, resolveHistoryDepth, createBackstagePresentation, buildFieldSubstitutionContext, isEnterableGroup, memberChainAtPoint, findElementPath, drillSelectionForClick, scrollInspectorSectionIntoView, computeScrollDelta, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, withCellStyle, setCellText, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, createSnapshotTextPositions, resolvePresentationAction, buildSmartArtPresetData, classifyMediaType, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, rasterizeElementTiledToCanvas, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, clampGifDimensions, rasterResultToPngDataUrl, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset, bringForward, sendBackward, bringToFront, sendToBack } from 'ooxml-ui/pptx';
|
|
1
|
+
import { dist_exports, normalizeHexColor, DEFAULT_STROKE_COLOR, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getAriaRoleDescription, getAriaLabel, getAriaRole, isEditableTextElement, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageEffectsOpacity, getImageEffectsFilter, getImageRenderStyle, cn, ACTION_BUTTON_PRESETS, getImageSurfaceStyle, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, getElementLabel, DEFAULT_FILL_COLOR, buildCssGradientFromShapeStyle, getCropShapeClipPath, getElementTransform, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getImageSurfaceMaskStyle, isImageTiled, getDuotoneColors, getTextWarpStyle, getTextCompensationTransform, renderTextSegments, buildReactChartViewModel, renderChartElement, buildInkGroupStrokes, getInkReplayStyles, INK_REPLAY_KEYFRAMES, buildContentPartStrokes, getContentPartReplayStyles, MIN_ELEMENT_SIZE, buildTextBody3DSceneStyle, getImageTilingStyle, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, substituteFieldText, HYPERLINK_COLOR, cloneTemplateElementsBySlideId, cloneSlide, cloneHistorySnapshot, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, partitionTemplateElements, isTemplateElementId, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, comparePresentation, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, stopAllPersistentAudio, buildSaveSlides, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, makeCloneId, buildPdfFromTiledImageData, GRID_SIZE, copyFormatFromElement, hasCopyableFormat, rerouteConnectorsForMovedElements, applyReroutedConnectors, splitCell, mergeCells, buildNotesPdf, canvasToJpegData, applyFormatToElement, isPpactionUrl, parsePpactionUrl, isUrlSafe, computeSnapToShape, safeOpenUrl as safeOpenUrl$1 } from './chunk-FBN7UFW2.mjs';
|
|
2
|
+
import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, defineThreeViewElement, getSelectionControlArtworkStyle, svgLineCap, getSelectionOutlineColor, screenStrokeWidth, connectorWrapperTransform, resolveElementInteractivity, getBackgroundAnimationState, getShapeEffectLayerPlacement, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, getShapeEffectAnimationLayerStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, getResizeHandleHitAreaStyle, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, getAnimationOpacity, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, getImageColorWashStyle, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, mapInlineEditorChord, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, chartFormatTargetFromEvent, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, getAriaRoleDescription as getAriaRoleDescription$1, getAriaLabel as getAriaLabel$1, attachRotateHandlePlacement, elementIdSelector, createRotationDrag, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, SMARTART_DEFAULT_PALETTE, resolvePalette as resolvePalette$1, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, measureSvgViewportRect, modelDataToBlobUrl, resolveZoomNavigationTarget, getImageSvgFilters, getCachedNativeImageSize, probeNativeImageSize, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, getInlineEditorSelectionResult, isBulletMarkerSegment, resolveChartThreeViewSpec, applyChart3DDrag, applyChart3DSelect, findChartPartTarget, withChartTitle, resolveSmartArtThreeViewSpec, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, openUrlInNewTab, hasGlyphEnvelope, buildGlyphEnvelopeBlock, getWarpPath, resolveFontItalic, resolveFontWeight, isWedgeCalloutPresetShape, getAriaRole as getAriaRole$1, isElementActionable, centeredSvgTextLines, findSmartArtNodeText, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, advanceChartMarkDrag, advanceChartValueDrag, resolveChartKind, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, commitSmartArtNodeFill, commitSmartArtNodeText, groupIntoParagraphs as groupIntoParagraphs$1, computeInlineEditorRect, smartArtNodeAtPoint, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, resolveMediaBookmarkTimesMs, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, resolveForwardSlideWithZoomReturn, buildZoomTransitionOverride, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, beginZoomExcursion, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, visibleTemplateElements, createCollaborationLivePatcher, publishLiveInlineText, initialInspectorOpen, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, resolveInitialSlideIndex, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canMergeShapes, canInteractWithElement, prepareHtml2CanvasClone, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, resolveImageResolutionScale, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, acknowledgeAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, rasterResultToPngBlob, downloadBlob, elementPictureFilename, canEditElementPoints, selectTrustedEmbeddedFonts, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, isFeatureEnabled, mapSlideShowStartKey, mapCustomizedEditorKey, isEditorControlTarget, isEditorTextInputTarget, parentSelection, textFontSizePtToPx, stepFontSizePt, textFontSizePxToPt, cycleSelectableElement, createCustomizationController, prepareElementForInsertion, slideSpaceElement, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, resolveCollaborationConfig, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, deviceStrokeStageStyle, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, setPendingCaretPoint, drillSelectionForDoubleClick, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, contextMenuInspectorAnchor, savedPresentationFileName, exportDeckJson, groupElements, generateElementId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, planMergeShapes, applyMergeShapesPlan, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, openPendingPrintWindow, computeColorFilter, filterHiddenSlideIndices, computeSlideIndices, buildPrintDocument, finishPrintWindow, buildPrintHtmlDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, insertSlidePaste, applySlidePasteTemplates, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, needsOwnedSession, openOwnedCollaboration, resolveViewportFitOptions, editorViewportFitFor, calculateViewportFit, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, slideSpaceMembers, remapTextToSegments, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx as computeGridSpacingPx$1, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, rasterizeElement, cloneElementForPaste, applyPasteSpecialFormat, buildRasterPictureElement, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, observeExternalCollaborationReadiness, resolveHistoryDepth, createBackstagePresentation, buildFieldSubstitutionContext, isEnterableGroup, memberChainAtPoint, findElementPath, drillSelectionForClick, scrollInspectorSectionIntoView, computeScrollDelta, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, withCellStyle, setCellText, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, createSnapshotTextPositions, resolvePresentationAction, buildSmartArtPresetData, classifyMediaType, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, rasterizeElementTiledToCanvas, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, clampGifDimensions, rasterResultToPngDataUrl, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset, bringForward, sendBackward, bringToFront, sendToBack } from 'ooxml-ui/pptx';
|
|
3
3
|
export { DUOTONE_PRESETS, MOBILE_BREAKPOINT, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, clearAudienceContent, computeVirtualRange, downloadBlob, getSlideTransitionAnimations, loadAudienceContent, storeAudienceContent } from 'ooxml-ui/pptx';
|
|
4
4
|
import React17, { createContext, useMemo, useState, useCallback, useEffect, Suspense, useRef, useLayoutEffect, useContext, useSyncExternalStore, useImperativeHandle } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -492,15 +492,70 @@ function useCollaborationSession({ config }) {
|
|
|
492
492
|
const external = useExternalYjsSession(config?.externalSession);
|
|
493
493
|
return config?.externalSession ? external : owned;
|
|
494
494
|
}
|
|
495
|
+
function useOwnedCollaboration(config) {
|
|
496
|
+
const needs = Boolean(config && needsOwnedSession(config));
|
|
497
|
+
const [opened, setOpened] = useState(null);
|
|
498
|
+
useEffect(() => {
|
|
499
|
+
if (!config || !needsOwnedSession(config)) {
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
const owned = openOwnedCollaboration(config);
|
|
503
|
+
let live = true;
|
|
504
|
+
owned.ready.then(
|
|
505
|
+
(prepared) => {
|
|
506
|
+
if (live && prepared) {
|
|
507
|
+
setOpened({ source: config, prepared });
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
() => {
|
|
511
|
+
if (live) {
|
|
512
|
+
setOpened({ failed: true });
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
);
|
|
516
|
+
return () => {
|
|
517
|
+
live = false;
|
|
518
|
+
owned.release();
|
|
519
|
+
setOpened(null);
|
|
520
|
+
};
|
|
521
|
+
}, [
|
|
522
|
+
needs,
|
|
523
|
+
config?.roomId,
|
|
524
|
+
config?.provider,
|
|
525
|
+
config?.serverUrl,
|
|
526
|
+
config?.transport,
|
|
527
|
+
config?.role,
|
|
528
|
+
config?.userName,
|
|
529
|
+
config?.userColor,
|
|
530
|
+
config?.userAvatar
|
|
531
|
+
]);
|
|
532
|
+
return useMemo(() => {
|
|
533
|
+
if (!needs) {
|
|
534
|
+
return { config, holding: false, status: void 0 };
|
|
535
|
+
}
|
|
536
|
+
if (opened && "prepared" in opened) {
|
|
537
|
+
return {
|
|
538
|
+
config: { ...config, externalSession: opened.prepared.externalSession },
|
|
539
|
+
holding: false,
|
|
540
|
+
status: void 0
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
return { config, holding: true, status: opened ? "error" : "connecting" };
|
|
544
|
+
}, [needs, config, opened]);
|
|
545
|
+
}
|
|
495
546
|
|
|
496
547
|
// src/viewer/hooks/collaboration/useCollaborativeState.ts
|
|
497
548
|
function useCollaborativeState({
|
|
498
|
-
config,
|
|
549
|
+
config: requested,
|
|
499
550
|
canvasWidth,
|
|
500
551
|
canvasHeight
|
|
501
552
|
}) {
|
|
553
|
+
const ownedSession = useOwnedCollaboration(requested);
|
|
554
|
+
const config = ownedSession.config;
|
|
502
555
|
const userColor = sanitizeColor(config?.userColor, "#6366f1");
|
|
503
|
-
const
|
|
556
|
+
const session = useCollaborationSession({ config: ownedSession.holding ? void 0 : config });
|
|
557
|
+
const { awareness, doc, clientId, synced, retry } = session;
|
|
558
|
+
const status = ownedSession.status ?? session.status;
|
|
504
559
|
const { remoteUsers, broadcastPresence } = usePresenceTracking({
|
|
505
560
|
awareness,
|
|
506
561
|
localClientId: clientId,
|
|
@@ -513,8 +568,18 @@ function useCollaborativeState({
|
|
|
513
568
|
});
|
|
514
569
|
const connectedCount = status === "connected" ? remoteUsers.length + 1 : remoteUsers.length;
|
|
515
570
|
return useMemo(
|
|
516
|
-
() => config ? {
|
|
517
|
-
|
|
571
|
+
() => config ? {
|
|
572
|
+
status,
|
|
573
|
+
remoteUsers,
|
|
574
|
+
broadcastPresence,
|
|
575
|
+
connectedCount,
|
|
576
|
+
config,
|
|
577
|
+
doc,
|
|
578
|
+
synced,
|
|
579
|
+
retry,
|
|
580
|
+
clientId
|
|
581
|
+
} : null,
|
|
582
|
+
[status, remoteUsers, broadcastPresence, connectedCount, config, doc, synced, retry, clientId]
|
|
518
583
|
);
|
|
519
584
|
}
|
|
520
585
|
var CollaborationContext = createContext(null);
|
|
@@ -10399,7 +10464,7 @@ function useFontInjection({ embeddedFonts, slides }) {
|
|
|
10399
10464
|
}
|
|
10400
10465
|
const styleEl = document.createElement("style");
|
|
10401
10466
|
styleEl.id = EMBEDDED_FONTS_STYLE_ID;
|
|
10402
|
-
const cssRules = embeddedFonts.flatMap((font) => {
|
|
10467
|
+
const cssRules = selectTrustedEmbeddedFonts(embeddedFonts).flatMap((font) => {
|
|
10403
10468
|
if (typeof font.name !== "string" || font.name.length === 0 || FONT_NAME_UNSAFE_CHARS.test(font.name)) {
|
|
10404
10469
|
return [];
|
|
10405
10470
|
}
|
|
@@ -10410,8 +10475,8 @@ function useFontInjection({ embeddedFonts, slides }) {
|
|
|
10410
10475
|
if (!FONT_FORMAT_ALLOWED.has(fontFormat)) {
|
|
10411
10476
|
return [];
|
|
10412
10477
|
}
|
|
10413
|
-
const fontWeight = font.bold
|
|
10414
|
-
const fontStyleCss = font.italic ? "italic" : "normal";
|
|
10478
|
+
const fontWeight = String(resolveFontWeight(font.name, font.bold));
|
|
10479
|
+
const fontStyleCss = resolveFontItalic(font.name, font.italic) ? "italic" : "normal";
|
|
10415
10480
|
return [
|
|
10416
10481
|
`@font-face {
|
|
10417
10482
|
font-family: "${font.name}";
|
|
@@ -10452,7 +10517,7 @@ function useFontInjection({ embeddedFonts, slides }) {
|
|
|
10452
10517
|
const referenced = collectReferencedFontFamilies(slides);
|
|
10453
10518
|
const candidates = selectGoogleWebfontFamilies(
|
|
10454
10519
|
referenced,
|
|
10455
|
-
embeddedFonts.map((font) => font.name)
|
|
10520
|
+
selectTrustedEmbeddedFonts(embeddedFonts).map((font) => font.name)
|
|
10456
10521
|
);
|
|
10457
10522
|
if (candidates.length === 0) {
|
|
10458
10523
|
return;
|
|
@@ -13146,6 +13211,7 @@ function useViewPreferencesSync(input) {
|
|
|
13146
13211
|
// src/viewer/hooks/useViewerBuildingBlocksState.ts
|
|
13147
13212
|
function useViewerBuildingBlocksState(input) {
|
|
13148
13213
|
const { core, content, canEdit, filePath, autosaveEnabled, userName, handle, setContent } = input;
|
|
13214
|
+
const { initialSlide } = input;
|
|
13149
13215
|
const {
|
|
13150
13216
|
onContentChange,
|
|
13151
13217
|
onDirtyChange,
|
|
@@ -13248,6 +13314,7 @@ function useViewerBuildingBlocksState(input) {
|
|
|
13248
13314
|
content,
|
|
13249
13315
|
filePath,
|
|
13250
13316
|
autosaveEnabled,
|
|
13317
|
+
initialSlide,
|
|
13251
13318
|
// Trust Center > "Allow external content": same gate `PowerPointViewer`
|
|
13252
13319
|
// applies, so the headless building-blocks API loads http(s) images
|
|
13253
13320
|
// under the same default-off, core-side SSRF/privacy guard.
|
|
@@ -13311,6 +13378,7 @@ function useViewerBuildingBlocks(input) {
|
|
|
13311
13378
|
canEdit: requestedCanEdit = false,
|
|
13312
13379
|
filePath,
|
|
13313
13380
|
fileName,
|
|
13381
|
+
initialSlide,
|
|
13314
13382
|
autosaveEnabled = true,
|
|
13315
13383
|
userName,
|
|
13316
13384
|
hiddenActions,
|
|
@@ -13326,7 +13394,8 @@ function useViewerBuildingBlocks(input) {
|
|
|
13326
13394
|
onOpenHeaderFooter,
|
|
13327
13395
|
onOpenShareDialog
|
|
13328
13396
|
} = input;
|
|
13329
|
-
const
|
|
13397
|
+
const collaborationConfig = resolveCollaborationConfig(input.collaboration);
|
|
13398
|
+
const [collaborationReadOnly, setCollaborationReadOnly] = useState(Boolean(collaborationConfig));
|
|
13330
13399
|
const { t } = useTranslation();
|
|
13331
13400
|
const [content, setContent] = useState(incomingContent ?? null);
|
|
13332
13401
|
const [loadOrigin, setLoadOrigin] = useState("bootstrap");
|
|
@@ -13375,7 +13444,7 @@ function useViewerBuildingBlocks(input) {
|
|
|
13375
13444
|
} = core;
|
|
13376
13445
|
const canEdit = resolveCollaborationShellEditability({
|
|
13377
13446
|
authorizedCanEdit: requestedCanEdit,
|
|
13378
|
-
configured: Boolean(
|
|
13447
|
+
configured: Boolean(collaborationConfig),
|
|
13379
13448
|
readOnly: collaborationReadOnly,
|
|
13380
13449
|
sourcePending: Boolean(content) && loading,
|
|
13381
13450
|
sourceError: Boolean(error)
|
|
@@ -13397,6 +13466,7 @@ function useViewerBuildingBlocks(input) {
|
|
|
13397
13466
|
content,
|
|
13398
13467
|
canEdit,
|
|
13399
13468
|
filePath,
|
|
13469
|
+
initialSlide,
|
|
13400
13470
|
autosaveEnabled,
|
|
13401
13471
|
userName,
|
|
13402
13472
|
handle,
|
|
@@ -13411,7 +13481,7 @@ function useViewerBuildingBlocks(input) {
|
|
|
13411
13481
|
});
|
|
13412
13482
|
const { collaboration, overlay } = useViewerBuildingBlocksCollaboration({
|
|
13413
13483
|
core,
|
|
13414
|
-
config:
|
|
13484
|
+
config: collaborationConfig,
|
|
13415
13485
|
content,
|
|
13416
13486
|
loadOrigin,
|
|
13417
13487
|
loadVersion,
|
|
@@ -13476,7 +13546,7 @@ ${url}`
|
|
|
13476
13546
|
const shellState = useMemo(
|
|
13477
13547
|
() => resolveCollaborationShellState({
|
|
13478
13548
|
authorizedCanEdit: requestedCanEdit,
|
|
13479
|
-
configured: Boolean(
|
|
13549
|
+
configured: Boolean(collaborationConfig),
|
|
13480
13550
|
readOnly: collaborationReadOnly,
|
|
13481
13551
|
sourcePending: Boolean(content) && loading,
|
|
13482
13552
|
sourceError: Boolean(error),
|
|
@@ -13485,7 +13555,7 @@ ${url}`
|
|
|
13485
13555
|
}),
|
|
13486
13556
|
[
|
|
13487
13557
|
requestedCanEdit,
|
|
13488
|
-
|
|
13558
|
+
collaborationConfig,
|
|
13489
13559
|
collaborationReadOnly,
|
|
13490
13560
|
content,
|
|
13491
13561
|
loading,
|
|
@@ -17502,8 +17572,8 @@ function getSegmentTspanProps(segment, element, fallbackColor) {
|
|
|
17502
17572
|
return {
|
|
17503
17573
|
fill,
|
|
17504
17574
|
fontSize: s.fontSize ?? element.textStyle?.fontSize ?? DEFAULT_TEXT_FONT_SIZE,
|
|
17505
|
-
fontWeight: s.
|
|
17506
|
-
fontStyle: s.italic ? "italic" : void 0,
|
|
17575
|
+
fontWeight: resolveFontWeight(s.fontFamily || element.textStyle?.fontFamily, s.bold),
|
|
17576
|
+
fontStyle: resolveFontItalic(s.fontFamily || element.textStyle?.fontFamily, s.italic) ? "italic" : void 0,
|
|
17507
17577
|
fontFamily: s.fontFamily || element.textStyle?.fontFamily ? (0, dist_exports.getSubstituteFontFamily)(s.fontFamily || element.textStyle?.fontFamily || "") : DEFAULT_FONT_FAMILY,
|
|
17508
17578
|
textDecoration: decos.length > 0 ? decos.join(" ") : void 0
|
|
17509
17579
|
};
|
|
@@ -17673,8 +17743,8 @@ function WarpedText({
|
|
|
17673
17743
|
fontSize: baseFontSize,
|
|
17674
17744
|
fontFamily: baseFontFamily,
|
|
17675
17745
|
fill: baseFill,
|
|
17676
|
-
fontWeight: textEl.textStyle?.bold
|
|
17677
|
-
fontStyle: textEl.textStyle?.italic ? "italic" : "normal",
|
|
17746
|
+
fontWeight: resolveFontWeight(textEl.textStyle?.fontFamily, textEl.textStyle?.bold),
|
|
17747
|
+
fontStyle: resolveFontItalic(textEl.textStyle?.fontFamily, textEl.textStyle?.italic) ? "italic" : "normal",
|
|
17678
17748
|
children: /* @__PURE__ */ jsx(
|
|
17679
17749
|
"textPath",
|
|
17680
17750
|
{
|
|
@@ -18324,7 +18394,7 @@ function getStaticElementInteractionState(element, hasActionHandler, exposeEleme
|
|
|
18324
18394
|
return { action, isActionable, contractRole };
|
|
18325
18395
|
}
|
|
18326
18396
|
function getStaticElementWrapperClassName(element, visual, positioned, isActionable) {
|
|
18327
|
-
const overflowClass = visual.isImage || element.type === "group" || isConnectorOrLineElement(element) || visual.isCallout || visual.letsTextOverflow ? "" : "overflow-hidden";
|
|
18397
|
+
const overflowClass = visual.isImage || visual.strokeWidth > 0 || element.type === "group" || isConnectorOrLineElement(element) || visual.isCallout || visual.letsTextOverflow ? "" : "overflow-hidden";
|
|
18328
18398
|
const pointerClass = isActionable ? "pointer-events-auto cursor-pointer" : "pointer-events-none";
|
|
18329
18399
|
return `${positioned ? "absolute" : "relative"} ${overflowClass} ${pointerClass}`;
|
|
18330
18400
|
}
|
|
@@ -18377,7 +18447,7 @@ function StaticElementRendererImpl({
|
|
|
18377
18447
|
"data-pptx-action": isActionable ? "click" : void 0,
|
|
18378
18448
|
className: getStaticElementWrapperClassName(
|
|
18379
18449
|
element,
|
|
18380
|
-
{ isImage, letsTextOverflow, isCallout },
|
|
18450
|
+
{ isImage, letsTextOverflow, isCallout, strokeWidth },
|
|
18381
18451
|
positioned,
|
|
18382
18452
|
isActionable
|
|
18383
18453
|
),
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __reExport } from './chunk-Q3DHYOLK.mjs';
|
|
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, getFrameEffectStyle, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, screenStrokeWidth, markerPath, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, isArrowedCustomPath, 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';
|
|
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, getFrameEffectStyle, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, screenStrokeWidth, markerPath, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, isArrowedCustomPath, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY as DEFAULT_FONT_FAMILY$1, cellStyleToCss, TABLE_CELL_TEXT_DEFAULTS, applyTableCellFontWeight, 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';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
@@ -199,7 +199,7 @@ function getShapeType(shapeType) {
|
|
|
199
199
|
if (normalized === "downarrow") {
|
|
200
200
|
return "downArrow";
|
|
201
201
|
}
|
|
202
|
-
if (normalized.includes("connector")) {
|
|
202
|
+
if (normalized.includes("connector") && !normalized.startsWith("flowchart")) {
|
|
203
203
|
return "connector";
|
|
204
204
|
}
|
|
205
205
|
if (normalized === "connector") {
|
|
@@ -2817,27 +2817,27 @@ function parseTableElementData(element, fallbackTextStyle) {
|
|
|
2817
2817
|
cells
|
|
2818
2818
|
};
|
|
2819
2819
|
}
|
|
2820
|
-
function renderTableCellContent(cell, fallbackText) {
|
|
2820
|
+
function renderTableCellContent(cell, fallbackText, cellCss) {
|
|
2821
2821
|
const blocks = cell ? cellParagraphBlocks(cell) : void 0;
|
|
2822
2822
|
if (blocks) {
|
|
2823
|
-
return blocks.map((block, index) => /* @__PURE__ */ jsx("div", { style: { display: "block", ...block.css }, children: block.runs.map(renderRun) }, `p-${index}`));
|
|
2823
|
+
return blocks.map((block, index) => /* @__PURE__ */ jsx("div", { style: { display: "block", ...block.css }, children: block.runs.map((run, runIndex) => renderRun(run, runIndex, cellCss)) }, `p-${index}`));
|
|
2824
2824
|
}
|
|
2825
2825
|
const runs = cell?.textRuns;
|
|
2826
2826
|
if (!runs || runs.length === 0) {
|
|
2827
2827
|
return fallbackText || " ";
|
|
2828
2828
|
}
|
|
2829
2829
|
return runs.map(
|
|
2830
|
-
(run, index) => run.isParagraphBreak ? /* @__PURE__ */ jsx("div", { style: { display: "block", height: 0 } }, `p-${index}`) : renderRun(run, index)
|
|
2830
|
+
(run, index) => run.isParagraphBreak ? /* @__PURE__ */ jsx("div", { style: { display: "block", height: 0 } }, `p-${index}`) : renderRun(run, index, cellCss)
|
|
2831
2831
|
);
|
|
2832
2832
|
}
|
|
2833
|
-
function renderRun(run, index) {
|
|
2833
|
+
function renderRun(run, index, cellCss) {
|
|
2834
2834
|
if (run.isLineBreak) {
|
|
2835
2835
|
return /* @__PURE__ */ jsx("br", {}, `br-${index}`);
|
|
2836
2836
|
}
|
|
2837
2837
|
return /* @__PURE__ */ jsx(
|
|
2838
2838
|
"span",
|
|
2839
2839
|
{
|
|
2840
|
-
style: { position: "relative", ...cellRunStyle(run) },
|
|
2840
|
+
style: { position: "relative", ...cellRunStyle(run, cellCss) },
|
|
2841
2841
|
children: run.text
|
|
2842
2842
|
},
|
|
2843
2843
|
`r-${index}`
|
|
@@ -3276,7 +3276,11 @@ function renderTableFromTableData(element, textStyle, options) {
|
|
|
3276
3276
|
});
|
|
3277
3277
|
}
|
|
3278
3278
|
}
|
|
3279
|
-
) : renderTableCellContent(
|
|
3279
|
+
) : renderTableCellContent(
|
|
3280
|
+
cell,
|
|
3281
|
+
cell.text || "\xA0",
|
|
3282
|
+
cellCss(cell, rowIndex, cellIndex)
|
|
3283
|
+
)
|
|
3280
3284
|
]
|
|
3281
3285
|
},
|
|
3282
3286
|
`${element.id}-cell-${rowIndex}-${cellIndex}`
|
|
@@ -3403,6 +3407,7 @@ function renderTableElement(element, textStyle, options) {
|
|
|
3403
3407
|
...tdCellOverride ? cellStyleToCss(tdCellOverride) : void 0,
|
|
3404
3408
|
...diag ? { position: "relative" } : void 0
|
|
3405
3409
|
};
|
|
3410
|
+
applyTableCellFontWeight(mergedStyle);
|
|
3406
3411
|
return /* @__PURE__ */ jsxs(
|
|
3407
3412
|
"td",
|
|
3408
3413
|
{
|
|
@@ -3472,7 +3477,8 @@ function renderTableElement(element, textStyle, options) {
|
|
|
3472
3477
|
}
|
|
3473
3478
|
) : renderTableCellContent(
|
|
3474
3479
|
tableEl.tableData?.rows[rowIndex]?.cells[cellIndex],
|
|
3475
|
-
extractCellText(cell) || "\xA0"
|
|
3480
|
+
extractCellText(cell) || "\xA0",
|
|
3481
|
+
mergedStyle
|
|
3476
3482
|
)
|
|
3477
3483
|
]
|
|
3478
3484
|
},
|
|
Binary file
|
|
Binary file
|