pptx-react-viewer 4.27.0 → 4.30.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 +106 -0
- package/README.md +37 -33
- package/dist/{AiChatPanel-3J6XGIJ4.mjs → AiChatPanel-42FL4CPM.mjs} +2 -2
- package/dist/AiChatPanel-42FL4CPM.mjs.br +0 -0
- package/dist/AiChatPanel-42FL4CPM.mjs.gz +0 -0
- package/dist/{AiChatPanel-EGTSK4T5.js → AiChatPanel-6VWCT6NE.js} +10 -10
- package/dist/AiChatPanel-6VWCT6NE.js.br +0 -0
- package/dist/AiChatPanel-6VWCT6NE.js.gz +0 -0
- package/dist/{Model3DScene-2V2GQ6FY.mjs → Model3DScene-EZDCI7TT.mjs} +1 -1
- package/dist/Model3DScene-EZDCI7TT.mjs.br +0 -0
- package/dist/Model3DScene-EZDCI7TT.mjs.gz +0 -0
- package/dist/{Model3DScene-Q3XEZSWV.js → Model3DScene-KYIYYLMY.js} +1 -1
- package/dist/Model3DScene-KYIYYLMY.js.br +0 -0
- package/dist/Model3DScene-KYIYYLMY.js.gz +0 -0
- package/dist/{chunk-QGM4M3NI.js → chunk-DFFCFNK2.js} +2 -0
- package/dist/chunk-DFFCFNK2.js.br +0 -0
- package/dist/chunk-DFFCFNK2.js.gz +0 -0
- package/dist/{chunk-6DZX6EAA.mjs → chunk-GDQSMJQZ.mjs} +2 -1
- package/dist/chunk-GDQSMJQZ.mjs.br +0 -0
- package/dist/chunk-GDQSMJQZ.mjs.gz +0 -0
- package/dist/{chunk-ZK7UEEXE.mjs → chunk-GXMGJ5A3.mjs} +85 -87
- package/dist/chunk-GXMGJ5A3.mjs.br +0 -0
- package/dist/chunk-GXMGJ5A3.mjs.gz +0 -0
- package/dist/{chunk-34AXBLYH.mjs → chunk-KRXS36RB.mjs} +83 -87
- package/dist/chunk-KRXS36RB.mjs.br +0 -0
- package/dist/chunk-KRXS36RB.mjs.gz +0 -0
- package/dist/{chunk-MQCBMO6A.js → chunk-MFGD7XVJ.js} +264 -268
- package/dist/chunk-MFGD7XVJ.js.br +0 -0
- package/dist/chunk-MFGD7XVJ.js.gz +0 -0
- package/dist/chunk-RHNJ4IU2.js +4229 -0
- package/dist/chunk-RHNJ4IU2.js.br +0 -0
- package/dist/chunk-RHNJ4IU2.js.gz +0 -0
- package/dist/{chunk-5RQTZ376.js → chunk-XKV2QDAO.js} +396 -398
- package/dist/chunk-XKV2QDAO.js.br +0 -0
- package/dist/chunk-XKV2QDAO.js.gz +0 -0
- package/dist/chunk-ZIBAN7RL.mjs +3888 -0
- package/dist/chunk-ZIBAN7RL.mjs.br +0 -0
- package/dist/chunk-ZIBAN7RL.mjs.gz +0 -0
- package/dist/i18n.js +1 -1
- package/dist/i18n.js.br +2 -2
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +25 -25
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +11 -1
- package/dist/internals.js +82 -82
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/{three.module-A6ACXOES.mjs → three.module-2R4ADL7W.mjs} +1 -1
- package/dist/three.module-2R4ADL7W.mjs.br +0 -0
- package/dist/three.module-2R4ADL7W.mjs.gz +0 -0
- package/dist/{three.module-IORLGCSX.js → three.module-LS32MK23.js} +1 -1
- package/dist/three.module-LS32MK23.js.br +0 -0
- package/dist/three.module-LS32MK23.js.gz +0 -0
- package/dist/viewer/index.d.ts +22 -0
- package/dist/viewer/index.js +20 -20
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +4 -4
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/dist/{y-webrtc-F5IA7T5S.mjs → y-webrtc-6DZI5KUK.mjs} +1 -1
- package/dist/y-webrtc-6DZI5KUK.mjs.br +0 -0
- package/dist/y-webrtc-6DZI5KUK.mjs.gz +0 -0
- package/dist/{y-webrtc-6LID3XZO.js → y-webrtc-OTRGEYOH.js} +5 -5
- package/dist/y-webrtc-OTRGEYOH.js.br +0 -0
- package/dist/y-webrtc-OTRGEYOH.js.gz +0 -0
- package/dist/{y-websocket-HOY2HFMH.js → y-websocket-AWBYMAHL.js} +1 -1
- package/dist/y-websocket-AWBYMAHL.js.br +0 -0
- package/dist/y-websocket-AWBYMAHL.js.gz +0 -0
- package/dist/{y-websocket-VGLBV2HJ.mjs → y-websocket-VAKUVRQT.mjs} +1 -1
- package/dist/y-websocket-VAKUVRQT.mjs.br +0 -0
- package/dist/y-websocket-VAKUVRQT.mjs.gz +0 -0
- package/package.json +4 -3
- package/dist/AiChatPanel-3J6XGIJ4.mjs.br +0 -0
- package/dist/AiChatPanel-3J6XGIJ4.mjs.gz +0 -0
- package/dist/AiChatPanel-EGTSK4T5.js.br +0 -0
- package/dist/AiChatPanel-EGTSK4T5.js.gz +0 -0
- package/dist/Model3DScene-2V2GQ6FY.mjs.br +0 -0
- package/dist/Model3DScene-2V2GQ6FY.mjs.gz +0 -0
- package/dist/Model3DScene-Q3XEZSWV.js.br +0 -2
- package/dist/Model3DScene-Q3XEZSWV.js.gz +0 -0
- package/dist/UTIF-RPFRSSC5.mjs +0 -6400
- package/dist/UTIF-RPFRSSC5.mjs.br +0 -0
- package/dist/UTIF-RPFRSSC5.mjs.gz +0 -0
- package/dist/UTIF-XWCKRN6V.js +0 -6402
- package/dist/UTIF-XWCKRN6V.js.br +0 -0
- package/dist/UTIF-XWCKRN6V.js.gz +0 -0
- package/dist/chunk-34AXBLYH.mjs.br +0 -0
- package/dist/chunk-34AXBLYH.mjs.gz +0 -0
- package/dist/chunk-5RQTZ376.js.br +0 -0
- package/dist/chunk-5RQTZ376.js.gz +0 -0
- package/dist/chunk-6DZX6EAA.mjs.br +0 -0
- package/dist/chunk-6DZX6EAA.mjs.gz +0 -0
- package/dist/chunk-MQCBMO6A.js.br +0 -0
- package/dist/chunk-MQCBMO6A.js.gz +0 -0
- package/dist/chunk-QGM4M3NI.js.br +0 -0
- package/dist/chunk-QGM4M3NI.js.gz +0 -0
- package/dist/chunk-TYJZJJZ6.mjs +0 -208183
- package/dist/chunk-TYJZJJZ6.mjs.br +0 -0
- package/dist/chunk-TYJZJJZ6.mjs.gz +0 -0
- package/dist/chunk-WK6JBJCT.js +0 -208548
- package/dist/chunk-WK6JBJCT.js.br +0 -0
- package/dist/chunk-WK6JBJCT.js.gz +0 -0
- package/dist/chunk-ZK7UEEXE.mjs.br +0 -0
- package/dist/chunk-ZK7UEEXE.mjs.gz +0 -0
- package/dist/three.module-A6ACXOES.mjs.br +0 -0
- package/dist/three.module-A6ACXOES.mjs.gz +0 -0
- package/dist/three.module-IORLGCSX.js.br +0 -0
- package/dist/three.module-IORLGCSX.js.gz +0 -0
- package/dist/y-webrtc-6LID3XZO.js.br +0 -0
- package/dist/y-webrtc-6LID3XZO.js.gz +0 -0
- package/dist/y-webrtc-F5IA7T5S.mjs.br +0 -0
- package/dist/y-webrtc-F5IA7T5S.mjs.gz +0 -0
- package/dist/y-websocket-HOY2HFMH.js.br +0 -0
- package/dist/y-websocket-HOY2HFMH.js.gz +0 -0
- package/dist/y-websocket-VGLBV2HJ.mjs.br +0 -0
- package/dist/y-websocket-VGLBV2HJ.mjs.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, defineThreeViewElement, getSelectionControlArtworkStyle, svgLineCap, getSelectionOutlineColor, connectorWrapperTransform, resolveElementInteractivity, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, getResizeHandleHitAreaStyle, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, getImageColorWashStyle, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, 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, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, 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, 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, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, resolveViewportFitOptions, EDITOR_VIEWPORT_FIT, 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, 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, comparePresentation, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, stopAllPersistentAudio, buildSaveSlides, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, makeCloneId, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, buildPdfFromTiledImageData, GRID_SIZE, copyFormatFromElement, hasCopyableFormat, rerouteConnectorsForMovedElements, applyReroutedConnectors, splitCell, mergeCells, buildNotesPdf, canvasToJpegData, applyFormatToElement, isPpactionUrl, parsePpactionUrl, isUrlSafe, computeSnapToShape, safeOpenUrl as safeOpenUrl$1 } from './chunk-ZIBAN7RL.mjs';
|
|
2
|
+
import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, defineThreeViewElement, getSelectionControlArtworkStyle, svgLineCap, getSelectionOutlineColor, connectorWrapperTransform, resolveElementInteractivity, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, getResizeHandleHitAreaStyle, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, getImageColorWashStyle, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, 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, 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, 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, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, resolveViewportFitOptions, EDITOR_VIEWPORT_FIT, 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';
|
|
@@ -125,7 +125,7 @@ function useYjsProvider({ config: inputConfig }) {
|
|
|
125
125
|
}
|
|
126
126
|
setStatus("connecting");
|
|
127
127
|
try {
|
|
128
|
-
const [Y, { WebrtcProvider }] = await Promise.all([import('yjs'), import('./y-webrtc-
|
|
128
|
+
const [Y, { WebrtcProvider }] = await Promise.all([import('yjs'), import('./y-webrtc-6DZI5KUK.mjs')]);
|
|
129
129
|
if (generation !== generationRef.current) {
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
@@ -200,7 +200,7 @@ function useYjsProvider({ config: inputConfig }) {
|
|
|
200
200
|
}
|
|
201
201
|
setStatus("connecting");
|
|
202
202
|
try {
|
|
203
|
-
const [Y, { WebsocketProvider }] = await Promise.all([import('yjs'), import('./y-websocket-
|
|
203
|
+
const [Y, { WebsocketProvider }] = await Promise.all([import('yjs'), import('./y-websocket-VAKUVRQT.mjs')]);
|
|
204
204
|
if (generation !== generationRef.current) {
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
@@ -4455,9 +4455,12 @@ function useLoadContent({
|
|
|
4455
4455
|
setIsDirty,
|
|
4456
4456
|
setIsEncrypted,
|
|
4457
4457
|
onContentApplied,
|
|
4458
|
-
allowExternalImages
|
|
4458
|
+
allowExternalImages,
|
|
4459
|
+
initialSlide
|
|
4459
4460
|
}) {
|
|
4460
4461
|
const handlerRef = useRef(null);
|
|
4462
|
+
const initialSlideRef = useRef(initialSlide);
|
|
4463
|
+
initialSlideRef.current = initialSlide;
|
|
4461
4464
|
const originalBufferRef = useRef(null);
|
|
4462
4465
|
const renderTokenRef = useRef(0);
|
|
4463
4466
|
useEffect(() => {
|
|
@@ -4466,7 +4469,7 @@ function useLoadContent({
|
|
|
4466
4469
|
}
|
|
4467
4470
|
let cancelled = false;
|
|
4468
4471
|
const token = ++renderTokenRef.current;
|
|
4469
|
-
const handler = new PptxHandler();
|
|
4472
|
+
const handler = new dist_exports.PptxHandler();
|
|
4470
4473
|
const resources = createPresentationLoadResources(handler);
|
|
4471
4474
|
const loadBlobUrls = resources.blobUrls;
|
|
4472
4475
|
(async () => {
|
|
@@ -4610,14 +4613,16 @@ function useLoadContent({
|
|
|
4610
4613
|
...parsed.slides.flatMap((slide) => slide.warnings ?? [])
|
|
4611
4614
|
])
|
|
4612
4615
|
);
|
|
4613
|
-
setActiveSlideIndex(
|
|
4616
|
+
setActiveSlideIndex(
|
|
4617
|
+
resolveInitialSlideIndex(initialSlideRef.current, parsed.slides.length)
|
|
4618
|
+
);
|
|
4614
4619
|
clearSelection();
|
|
4615
4620
|
setIsDirty(false);
|
|
4616
4621
|
history.resetHistory();
|
|
4617
4622
|
onContentApplied?.();
|
|
4618
4623
|
} catch (err) {
|
|
4619
4624
|
if (!cancelled && token === renderTokenRef.current) {
|
|
4620
|
-
if (err instanceof EncryptedFileError) {
|
|
4625
|
+
if (err instanceof dist_exports.EncryptedFileError) {
|
|
4621
4626
|
setIsEncrypted(true);
|
|
4622
4627
|
} else {
|
|
4623
4628
|
console.error("[pptx] Failed to load presentation content:", err);
|
|
@@ -4742,7 +4747,7 @@ function useTextElementOperations(input) {
|
|
|
4742
4747
|
updateSelectedElement
|
|
4743
4748
|
} = input;
|
|
4744
4749
|
const liveTextSegments = useCallback(() => {
|
|
4745
|
-
if (!selectedElement || !hasTextProperties(selectedElement)) {
|
|
4750
|
+
if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
|
|
4746
4751
|
return void 0;
|
|
4747
4752
|
}
|
|
4748
4753
|
if (selectedElement.id !== inlineEditingElementId) {
|
|
@@ -4760,7 +4765,7 @@ function useTextElementOperations(input) {
|
|
|
4760
4765
|
}, [selectedElement, inlineEditingElementId, inlineEditingText, inlineEditingSnapshotRef]);
|
|
4761
4766
|
const updateSelectedTextStyle = useCallback(
|
|
4762
4767
|
(updates) => {
|
|
4763
|
-
if (!selectedElement || !hasTextProperties(selectedElement)) {
|
|
4768
|
+
if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
|
|
4764
4769
|
return;
|
|
4765
4770
|
}
|
|
4766
4771
|
const isLiveEditing = selectedElement.id === inlineEditingElementId;
|
|
@@ -4838,7 +4843,7 @@ function useTextElementOperations(input) {
|
|
|
4838
4843
|
);
|
|
4839
4844
|
const toggleSelectedBullets = useCallback(
|
|
4840
4845
|
(kind) => {
|
|
4841
|
-
if (!selectedElement || !hasTextProperties(selectedElement)) {
|
|
4846
|
+
if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
|
|
4842
4847
|
return;
|
|
4843
4848
|
}
|
|
4844
4849
|
const currentSegments = liveTextSegments();
|
|
@@ -4889,7 +4894,7 @@ function useTextElementOperations(input) {
|
|
|
4889
4894
|
);
|
|
4890
4895
|
const updateSelectedTextCase = useCallback(
|
|
4891
4896
|
(mode) => {
|
|
4892
|
-
if (!selectedElement || !hasTextProperties(selectedElement)) {
|
|
4897
|
+
if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
|
|
4893
4898
|
return;
|
|
4894
4899
|
}
|
|
4895
4900
|
const isLiveEditing = selectedElement.id === inlineEditingElementId;
|
|
@@ -5041,7 +5046,7 @@ function useElementOperations(input) {
|
|
|
5041
5046
|
);
|
|
5042
5047
|
const updateSelectedShapeStyle = useCallback(
|
|
5043
5048
|
(updates) => {
|
|
5044
|
-
if (!selectedElement || !hasShapeProperties(selectedElement)) {
|
|
5049
|
+
if (!selectedElement || !(0, dist_exports.hasShapeProperties)(selectedElement)) {
|
|
5045
5050
|
return;
|
|
5046
5051
|
}
|
|
5047
5052
|
updateSelectedElement({
|
|
@@ -5781,7 +5786,7 @@ function useCanvasInteractions(input) {
|
|
|
5781
5786
|
return;
|
|
5782
5787
|
}
|
|
5783
5788
|
const el = elementLookup.get(editId);
|
|
5784
|
-
if (el && hasTextProperties(el)) {
|
|
5789
|
+
if (el && (0, dist_exports.hasTextProperties)(el)) {
|
|
5785
5790
|
const reader = inlineEditingReaderRef?.current;
|
|
5786
5791
|
const read = reader?.elementId === editId ? reader.read() : void 0;
|
|
5787
5792
|
if (read?.kind === "unsupported") {
|
|
@@ -5828,7 +5833,7 @@ function useCanvasInteractions(input) {
|
|
|
5828
5833
|
wasEditable.current = canEdit;
|
|
5829
5834
|
}, [canEdit]);
|
|
5830
5835
|
const openEquationEditorForElement = (el) => {
|
|
5831
|
-
if (!hasTextProperties(el)) {
|
|
5836
|
+
if (!(0, dist_exports.hasTextProperties)(el)) {
|
|
5832
5837
|
return false;
|
|
5833
5838
|
}
|
|
5834
5839
|
const eqSeg = el.textSegments?.find((seg) => seg.equationXml);
|
|
@@ -5861,7 +5866,7 @@ function useCanvasInteractions(input) {
|
|
|
5861
5866
|
justInteractedRef.current = false;
|
|
5862
5867
|
} else {
|
|
5863
5868
|
const el = elementLookup.get(elementId);
|
|
5864
|
-
if (el && hasTextProperties(el) && canInteractWithElement(el, "textEdit")) {
|
|
5869
|
+
if (el && (0, dist_exports.hasTextProperties)(el) && canInteractWithElement(el, "textEdit")) {
|
|
5865
5870
|
if (!openEquationEditorForElement(el)) {
|
|
5866
5871
|
setPendingCaretPoint(e);
|
|
5867
5872
|
setInlineEditingElementId(elementId);
|
|
@@ -5887,7 +5892,7 @@ function useCanvasInteractions(input) {
|
|
|
5887
5892
|
if (openEquationEditorForElement(el)) {
|
|
5888
5893
|
return;
|
|
5889
5894
|
}
|
|
5890
|
-
if (hasTextProperties(el) && canInteractWithElement(el, "textEdit")) {
|
|
5895
|
+
if ((0, dist_exports.hasTextProperties)(el) && canInteractWithElement(el, "textEdit")) {
|
|
5891
5896
|
setInlineEditingElementId(elementId);
|
|
5892
5897
|
setInlineEditingText(el.text ?? "");
|
|
5893
5898
|
}
|
|
@@ -6402,7 +6407,7 @@ function createStructuredElementHandlers(deps) {
|
|
|
6402
6407
|
if (!preset) {
|
|
6403
6408
|
return;
|
|
6404
6409
|
}
|
|
6405
|
-
const defaultPptxAction = elementActionToPptxAction({
|
|
6410
|
+
const defaultPptxAction = (0, dist_exports.elementActionToPptxAction)({
|
|
6406
6411
|
trigger: "click",
|
|
6407
6412
|
type: preset.defaultAction
|
|
6408
6413
|
});
|
|
@@ -7040,14 +7045,7 @@ function useSlideManagement(input) {
|
|
|
7040
7045
|
if (!src) {
|
|
7041
7046
|
continue;
|
|
7042
7047
|
}
|
|
7043
|
-
const clone = {
|
|
7044
|
-
...src,
|
|
7045
|
-
id: makeSlideId(),
|
|
7046
|
-
elements: src.elements.map((el) => ({
|
|
7047
|
-
...el,
|
|
7048
|
-
id: `${el.id}-dup-${Math.random().toString(36).slice(2, 6)}`
|
|
7049
|
-
}))
|
|
7050
|
-
};
|
|
7048
|
+
const clone = { ...(0, dist_exports.duplicateSlide)(src, next.length + 1), id: makeSlideId() };
|
|
7051
7049
|
next.splice(i + offset + 1, 0, clone);
|
|
7052
7050
|
offset++;
|
|
7053
7051
|
}
|
|
@@ -7158,7 +7156,7 @@ function createTableMergeHandlers(input) {
|
|
|
7158
7156
|
td
|
|
7159
7157
|
);
|
|
7160
7158
|
const updates = { tableData: newTableData };
|
|
7161
|
-
const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
|
|
7159
|
+
const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
|
|
7162
7160
|
if (newRawXml) {
|
|
7163
7161
|
updates.rawXml = newRawXml;
|
|
7164
7162
|
}
|
|
@@ -7192,7 +7190,7 @@ function createTableMergeHandlers(input) {
|
|
|
7192
7190
|
td
|
|
7193
7191
|
);
|
|
7194
7192
|
const updates = { tableData: newTableData };
|
|
7195
|
-
const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
|
|
7193
|
+
const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
|
|
7196
7194
|
if (newRawXml) {
|
|
7197
7195
|
updates.rawXml = newRawXml;
|
|
7198
7196
|
}
|
|
@@ -7209,7 +7207,7 @@ function createTableMergeHandlers(input) {
|
|
|
7209
7207
|
const td = selectedElement.tableData;
|
|
7210
7208
|
const newTableData = mergeCells(ts.selectedCells, td);
|
|
7211
7209
|
const updates = { tableData: newTableData };
|
|
7212
|
-
const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
|
|
7210
|
+
const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
|
|
7213
7211
|
if (newRawXml) {
|
|
7214
7212
|
updates.rawXml = newRawXml;
|
|
7215
7213
|
}
|
|
@@ -7228,7 +7226,7 @@ function createTableMergeHandlers(input) {
|
|
|
7228
7226
|
const td = selectedElement.tableData;
|
|
7229
7227
|
const newTableData = splitCell(rowIndex, columnIndex, td);
|
|
7230
7228
|
const updates = { tableData: newTableData };
|
|
7231
|
-
const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
|
|
7229
|
+
const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
|
|
7232
7230
|
if (newRawXml) {
|
|
7233
7231
|
updates.rawXml = newRawXml;
|
|
7234
7232
|
}
|
|
@@ -7263,7 +7261,7 @@ function createTableStructHandlers(input) {
|
|
|
7263
7261
|
updates.tableData = setCellText(el, rowIndex, colIndex, text).tableData;
|
|
7264
7262
|
}
|
|
7265
7263
|
if (el.rawXml) {
|
|
7266
|
-
const newRawXml = updateCellTextInRawXml(el, rowIndex, colIndex, text);
|
|
7264
|
+
const newRawXml = (0, dist_exports.updateCellTextInRawXml)(el, rowIndex, colIndex, text);
|
|
7267
7265
|
if (newRawXml) {
|
|
7268
7266
|
updates.rawXml = newRawXml;
|
|
7269
7267
|
}
|
|
@@ -7287,7 +7285,7 @@ function createTableStructHandlers(input) {
|
|
|
7287
7285
|
const { rowIndex, columnIndex: colIndex } = ts;
|
|
7288
7286
|
const updates = {};
|
|
7289
7287
|
if (selectedElement.rawXml) {
|
|
7290
|
-
const newRawXml = updateCellTextStyleInRawXml(
|
|
7288
|
+
const newRawXml = (0, dist_exports.updateCellTextStyleInRawXml)(
|
|
7291
7289
|
selectedElement,
|
|
7292
7290
|
rowIndex,
|
|
7293
7291
|
colIndex,
|
|
@@ -7304,15 +7302,9 @@ function createTableStructHandlers(input) {
|
|
|
7304
7302
|
}
|
|
7305
7303
|
return {
|
|
7306
7304
|
...row,
|
|
7307
|
-
cells: row.cells.map(
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
}
|
|
7311
|
-
return {
|
|
7312
|
-
...cell,
|
|
7313
|
-
style: { ...cell.style, ...styleUpdates }
|
|
7314
|
-
};
|
|
7315
|
-
})
|
|
7305
|
+
cells: row.cells.map(
|
|
7306
|
+
(cell, ci) => ci === colIndex ? withCellStyle(cell, styleUpdates) : cell
|
|
7307
|
+
)
|
|
7316
7308
|
};
|
|
7317
7309
|
});
|
|
7318
7310
|
updates.tableData = { ...selectedElement.tableData, rows: newRows };
|
|
@@ -7876,7 +7868,7 @@ function exportAllSlidesToSvg(data, options = {}) {
|
|
|
7876
7868
|
continue;
|
|
7877
7869
|
}
|
|
7878
7870
|
onProgress?.(processedCount, data.slides.length);
|
|
7879
|
-
let svg = SvgExporter.exportSlide(slide, data.width, data.height, svgOptions);
|
|
7871
|
+
let svg = dist_exports.SvgExporter.exportSlide(slide, data.width, data.height, svgOptions);
|
|
7880
7872
|
if (embedFonts && fontFaces?.length) {
|
|
7881
7873
|
svg = injectFontFaces(svg, fontFaces);
|
|
7882
7874
|
}
|
|
@@ -8465,10 +8457,10 @@ async function applyThemeEditorEdit(input, { colorScheme, fontScheme, name }) {
|
|
|
8465
8457
|
return;
|
|
8466
8458
|
}
|
|
8467
8459
|
await handler.applyTheme(colorScheme, fontScheme, name);
|
|
8468
|
-
const previousMap = theme?.colorScheme ? buildThemeColorMap(theme.colorScheme) : {};
|
|
8460
|
+
const previousMap = theme?.colorScheme ? (0, dist_exports.buildThemeColorMap)(theme.colorScheme) : {};
|
|
8469
8461
|
bumpHistory();
|
|
8470
8462
|
setSlides(
|
|
8471
|
-
(slides) => applyThemeToData(
|
|
8463
|
+
(slides) => (0, dist_exports.applyThemeToData)(
|
|
8472
8464
|
{ slides, theme, themeColorMap: previousMap },
|
|
8473
8465
|
colorScheme,
|
|
8474
8466
|
fontScheme,
|
|
@@ -8479,8 +8471,8 @@ async function applyThemeEditorEdit(input, { colorScheme, fontScheme, name }) {
|
|
|
8479
8471
|
(prev) => Object.fromEntries(
|
|
8480
8472
|
Object.entries(prev).map(([id, elements]) => [
|
|
8481
8473
|
id,
|
|
8482
|
-
reResolveElementFonts(
|
|
8483
|
-
reResolveElementColors(elements, previousMap, colorScheme),
|
|
8474
|
+
(0, dist_exports.reResolveElementFonts)(
|
|
8475
|
+
(0, dist_exports.reResolveElementColors)(elements, previousMap, colorScheme),
|
|
8484
8476
|
theme?.fontScheme,
|
|
8485
8477
|
fontScheme
|
|
8486
8478
|
)
|
|
@@ -8538,13 +8530,13 @@ function useThemeHandlers(input) {
|
|
|
8538
8530
|
return;
|
|
8539
8531
|
}
|
|
8540
8532
|
await handler.updateThemeColorScheme(colorScheme);
|
|
8541
|
-
const previousMap = theme?.colorScheme ? buildThemeColorMap(theme.colorScheme) : {};
|
|
8542
|
-
setSlides((prev) => reResolveSlideColors(prev, previousMap, colorScheme));
|
|
8533
|
+
const previousMap = theme?.colorScheme ? (0, dist_exports.buildThemeColorMap)(theme.colorScheme) : {};
|
|
8534
|
+
setSlides((prev) => (0, dist_exports.reResolveSlideColors)(prev, previousMap, colorScheme));
|
|
8543
8535
|
if (Object.keys(templateElementsBySlideId).length > 0) {
|
|
8544
8536
|
setTemplateElementsBySlideId((prev) => {
|
|
8545
8537
|
const next = {};
|
|
8546
8538
|
for (const [slideId, elements] of Object.entries(prev)) {
|
|
8547
|
-
next[slideId] = reResolveElementColors(elements, previousMap, colorScheme);
|
|
8539
|
+
next[slideId] = (0, dist_exports.reResolveElementColors)(elements, previousMap, colorScheme);
|
|
8548
8540
|
}
|
|
8549
8541
|
return next;
|
|
8550
8542
|
});
|
|
@@ -8655,7 +8647,7 @@ function useThemeSwitching(input) {
|
|
|
8655
8647
|
}
|
|
8656
8648
|
try {
|
|
8657
8649
|
await handler.applyTheme(preset.colorScheme, preset.fontScheme, preset.name);
|
|
8658
|
-
const newData = applyThemeToData(data, preset.colorScheme, preset.fontScheme, preset.name);
|
|
8650
|
+
const newData = (0, dist_exports.applyThemeToData)(data, preset.colorScheme, preset.fontScheme, preset.name);
|
|
8659
8651
|
onDataChange(newData);
|
|
8660
8652
|
onThemeChanged?.(preset);
|
|
8661
8653
|
} catch (error) {
|
|
@@ -8672,7 +8664,7 @@ function useThemeSwitching(input) {
|
|
|
8672
8664
|
}
|
|
8673
8665
|
try {
|
|
8674
8666
|
await handler.applyTheme(colorScheme, fontScheme ?? {}, themeName);
|
|
8675
|
-
const newData = applyThemeToData(data, colorScheme, fontScheme, themeName);
|
|
8667
|
+
const newData = (0, dist_exports.applyThemeToData)(data, colorScheme, fontScheme, themeName);
|
|
8676
8668
|
onDataChange(newData);
|
|
8677
8669
|
} catch (error) {
|
|
8678
8670
|
console.error("Failed to switch to custom theme:", error);
|
|
@@ -8684,12 +8676,12 @@ function useThemeSwitching(input) {
|
|
|
8684
8676
|
if (!data?.theme?.colorScheme) {
|
|
8685
8677
|
return void 0;
|
|
8686
8678
|
}
|
|
8687
|
-
return THEME_PRESETS.find(
|
|
8688
|
-
(p) => themeColorSchemesEqual(data.theme?.colorScheme, p.colorScheme)
|
|
8679
|
+
return dist_exports.THEME_PRESETS.find(
|
|
8680
|
+
(p) => (0, dist_exports.themeColorSchemesEqual)(data.theme?.colorScheme, p.colorScheme)
|
|
8689
8681
|
);
|
|
8690
8682
|
}, [data?.theme?.colorScheme]);
|
|
8691
8683
|
return {
|
|
8692
|
-
presets: THEME_PRESETS,
|
|
8684
|
+
presets: dist_exports.THEME_PRESETS,
|
|
8693
8685
|
switchToPreset,
|
|
8694
8686
|
switchToCustom,
|
|
8695
8687
|
currentPreset
|
|
@@ -8766,7 +8758,7 @@ function usePropertyHandlers(input) {
|
|
|
8766
8758
|
}
|
|
8767
8759
|
try {
|
|
8768
8760
|
const ab = await file.arrayBuffer();
|
|
8769
|
-
const h = new PptxHandler();
|
|
8761
|
+
const h = new dist_exports.PptxHandler();
|
|
8770
8762
|
const other = await h.load(ab);
|
|
8771
8763
|
if (!other) {
|
|
8772
8764
|
return;
|
|
@@ -9374,7 +9366,7 @@ function overlayPendingInlineEdit(document2, elementId, text, snapshot, transfor
|
|
|
9374
9366
|
(slide) => !elementId ? slide : {
|
|
9375
9367
|
...slide,
|
|
9376
9368
|
elements: slide.elements.map(
|
|
9377
|
-
(element) => element.id === elementId && hasTextProperties(element) ? {
|
|
9369
|
+
(element) => element.id === elementId && (0, dist_exports.hasTextProperties)(element) ? {
|
|
9378
9370
|
...element,
|
|
9379
9371
|
text,
|
|
9380
9372
|
textSegments: remapTextToSegments(
|
|
@@ -9460,7 +9452,7 @@ function useSerialize(input) {
|
|
|
9460
9452
|
const pptxGuides = guides.map((g) => ({
|
|
9461
9453
|
id: g.id,
|
|
9462
9454
|
orientation: g.axis === "h" ? "horz" : "vert",
|
|
9463
|
-
positionEmu: guidePxToEmu(g.position)
|
|
9455
|
+
positionEmu: (0, dist_exports.guidePxToEmu)(g.position)
|
|
9464
9456
|
}));
|
|
9465
9457
|
return {
|
|
9466
9458
|
...slide,
|
|
@@ -9771,10 +9763,10 @@ function useCanvasImagePaste(input) {
|
|
|
9771
9763
|
function formatPatchFor(element, format) {
|
|
9772
9764
|
const updated = applyFormatToElement(element, format);
|
|
9773
9765
|
const updates = {};
|
|
9774
|
-
if (hasShapeProperties(updated)) {
|
|
9766
|
+
if ((0, dist_exports.hasShapeProperties)(updated)) {
|
|
9775
9767
|
updates.shapeStyle = updated.shapeStyle;
|
|
9776
9768
|
}
|
|
9777
|
-
if (hasTextProperties(updated)) {
|
|
9769
|
+
if ((0, dist_exports.hasTextProperties)(updated)) {
|
|
9778
9770
|
updates.textStyle = updated.textStyle;
|
|
9779
9771
|
}
|
|
9780
9772
|
return updates;
|
|
@@ -10483,6 +10475,7 @@ function useContentLifecycle(input) {
|
|
|
10483
10475
|
password,
|
|
10484
10476
|
onContentApplied,
|
|
10485
10477
|
allowExternalImages,
|
|
10478
|
+
initialSlide,
|
|
10486
10479
|
setReadOnlyRecommendation,
|
|
10487
10480
|
setModifyVerifier,
|
|
10488
10481
|
setCompatToasts
|
|
@@ -10532,7 +10525,8 @@ function useContentLifecycle(input) {
|
|
|
10532
10525
|
setIsDirty: state.setIsDirty,
|
|
10533
10526
|
setIsEncrypted: setIsEncryptedDialogOpen,
|
|
10534
10527
|
onContentApplied,
|
|
10535
|
-
allowExternalImages
|
|
10528
|
+
allowExternalImages,
|
|
10529
|
+
initialSlide
|
|
10536
10530
|
});
|
|
10537
10531
|
useEffect(() => {
|
|
10538
10532
|
actionSoundHandlerRef.current = handlerRef.current;
|
|
@@ -10879,7 +10873,7 @@ function useKeyboardShortcutWiring(input) {
|
|
|
10879
10873
|
}
|
|
10880
10874
|
function stepSelectedFontSize(state, ops, direction) {
|
|
10881
10875
|
const selected = state.selectedElement;
|
|
10882
|
-
const currentPx = (selected && hasTextProperties(selected) ? selected.textStyle?.fontSize : void 0) ?? textFontSizePtToPx(18);
|
|
10876
|
+
const currentPx = (selected && (0, dist_exports.hasTextProperties)(selected) ? selected.textStyle?.fontSize : void 0) ?? textFontSizePtToPx(18);
|
|
10883
10877
|
const nextPt = stepFontSizePt(textFontSizePxToPt(currentPx), direction);
|
|
10884
10878
|
ops.updateSelectedTextStyle({ fontSize: textFontSizePtToPx(nextPt) });
|
|
10885
10879
|
}
|
|
@@ -10946,6 +10940,7 @@ function useViewerIntegration(input) {
|
|
|
10946
10940
|
autosaveAllowed = true,
|
|
10947
10941
|
autosaveIntervalMs,
|
|
10948
10942
|
allowExternalImages,
|
|
10943
|
+
initialSlide,
|
|
10949
10944
|
setReadOnlyRecommendation,
|
|
10950
10945
|
setModifyVerifier,
|
|
10951
10946
|
setCompatToasts,
|
|
@@ -11021,6 +11016,7 @@ function useViewerIntegration(input) {
|
|
|
11021
11016
|
password: dialogs.presentationPassword ?? void 0,
|
|
11022
11017
|
onContentApplied: () => setLoadVersion((v) => v + 1),
|
|
11023
11018
|
allowExternalImages,
|
|
11019
|
+
initialSlide,
|
|
11024
11020
|
setReadOnlyRecommendation,
|
|
11025
11021
|
setModifyVerifier,
|
|
11026
11022
|
setCompatToasts
|
|
@@ -12836,7 +12832,7 @@ function useViewerBuildingBlocksCore(input) {
|
|
|
12836
12832
|
documentGridSpacing: state.viewProperties?.gridSpacing
|
|
12837
12833
|
});
|
|
12838
12834
|
const themeColorMap = useMemo(
|
|
12839
|
-
() => state.theme?.colorScheme ? buildThemeColorMap(state.theme.colorScheme) : void 0,
|
|
12835
|
+
() => state.theme?.colorScheme ? (0, dist_exports.buildThemeColorMap)(state.theme.colorScheme) : void 0,
|
|
12840
12836
|
[state.theme?.colorScheme]
|
|
12841
12837
|
);
|
|
12842
12838
|
const { presentation, annotations, actionSoundHandlerRef, setExitModeHandler } = usePresentationSetup({
|
|
@@ -13615,7 +13611,7 @@ function renderImg(el, style, filter, alt, opacity) {
|
|
|
13615
13611
|
] });
|
|
13616
13612
|
}
|
|
13617
13613
|
const colorWash = getImageColorWashStyle(
|
|
13618
|
-
isImageLikeElement(el) ? el.imageEffects?.colorWash : void 0
|
|
13614
|
+
(0, dist_exports.isImageLikeElement)(el) ? el.imageEffects?.colorWash : void 0
|
|
13619
13615
|
);
|
|
13620
13616
|
const clrChange = "imageEffects" in el ? el.imageEffects?.clrChange : void 0;
|
|
13621
13617
|
const duotoneColors = getDuotoneColors(el);
|
|
@@ -14504,7 +14500,7 @@ var ConnectorElementRenderer = React17.memo(
|
|
|
14504
14500
|
animationState,
|
|
14505
14501
|
textStyleOverrideCss
|
|
14506
14502
|
}) {
|
|
14507
|
-
const shapeEl = hasShapeProperties(el) ? el : void 0;
|
|
14503
|
+
const shapeEl = (0, dist_exports.hasShapeProperties)(el) ? el : void 0;
|
|
14508
14504
|
const viewWidth = Math.max(el.width, 0);
|
|
14509
14505
|
const viewHeight = Math.max(el.height, 0);
|
|
14510
14506
|
const svgWidth = Math.max(el.width, 1);
|
|
@@ -14528,7 +14524,7 @@ var ConnectorElementRenderer = React17.memo(
|
|
|
14528
14524
|
const compoundOffsets = getCompoundLineOffsets(compoundLine, strokeWidth);
|
|
14529
14525
|
const compoundWidths = getCompoundLineWidths(compoundLine, strokeWidth);
|
|
14530
14526
|
const strokeCap = svgLineCap(ss?.lineCap);
|
|
14531
|
-
const textEl = hasTextProperties(el) ? el : void 0;
|
|
14527
|
+
const textEl = (0, dist_exports.hasTextProperties)(el) ? el : void 0;
|
|
14532
14528
|
const connectorText = textEl?.text?.trim() ?? "";
|
|
14533
14529
|
const connectorTextSegments = textEl?.textSegments;
|
|
14534
14530
|
const connectorTextStyle = textEl?.textStyle;
|
|
@@ -14814,7 +14810,7 @@ function getContainerStyle({
|
|
|
14814
14810
|
has3DExtrusion,
|
|
14815
14811
|
templateEditing
|
|
14816
14812
|
}) {
|
|
14817
|
-
const ss = hasShapeProperties(el) ? el.shapeStyle : void 0;
|
|
14813
|
+
const ss = (0, dist_exports.hasShapeProperties)(el) ? el.shapeStyle : void 0;
|
|
14818
14814
|
const isPicture = el.type === "picture" || el.type === "image";
|
|
14819
14815
|
const blurGrowVisible = Boolean(
|
|
14820
14816
|
ss?.blurGrow && typeof ss.blurRadius === "number" && ss.blurRadius > 0
|
|
@@ -14863,7 +14859,7 @@ function getContainerStyle({
|
|
|
14863
14859
|
};
|
|
14864
14860
|
}
|
|
14865
14861
|
function shapeParams(element) {
|
|
14866
|
-
const style = hasShapeProperties(element) ? element.shapeStyle : void 0;
|
|
14862
|
+
const style = (0, dist_exports.hasShapeProperties)(element) ? element.shapeStyle : void 0;
|
|
14867
14863
|
const strokeWidth = paintedStrokeWidth(style);
|
|
14868
14864
|
const strokeColor = normalizeHexColor(style?.strokeColor, DEFAULT_STROKE_COLOR);
|
|
14869
14865
|
const fillColor = normalizeHexColor(style?.fillColor, DEFAULT_FILL_COLOR);
|
|
@@ -14972,7 +14968,7 @@ function ShapeEffectOverlay({
|
|
|
14972
14968
|
const fillOverlayStyle = overlay ? {
|
|
14973
14969
|
position: "absolute",
|
|
14974
14970
|
inset: 0,
|
|
14975
|
-
...isImageLikeElement(element) ? getImageSurfaceMaskStyle(element) : {},
|
|
14971
|
+
...(0, dist_exports.isImageLikeElement)(element) ? getImageSurfaceMaskStyle(element) : {},
|
|
14976
14972
|
background: overlay.color,
|
|
14977
14973
|
mixBlendMode: overlay.blendMode,
|
|
14978
14974
|
pointerEvents: "none"
|
|
@@ -15172,7 +15168,7 @@ var ElementRenderer = React17.memo(
|
|
|
15172
15168
|
const backgroundAnimationState = presentationElementStates?.get(`${el.id}::pptx-bg`);
|
|
15173
15169
|
const visualAnimationState = backgroundAnimationState ?? animationState;
|
|
15174
15170
|
const isTxt = isEditableTextElement(el) && allow.textEditable;
|
|
15175
|
-
const txtSE = hasTextProperties(el) ? el.textStyle : void 0;
|
|
15171
|
+
const txtSE = (0, dist_exports.hasTextProperties)(el) ? el.textStyle : void 0;
|
|
15176
15172
|
const textStyleOverrideCss = buildTextStyleOverrideCss(el.id, visualAnimationState?.textStyle);
|
|
15177
15173
|
const ss = getShapeVisualStyle(
|
|
15178
15174
|
el,
|
|
@@ -15196,7 +15192,7 @@ var ElementRenderer = React17.memo(
|
|
|
15196
15192
|
);
|
|
15197
15193
|
const isModel3D = el.type === "model3d";
|
|
15198
15194
|
const isConn = isConnectorOrLineElement(el);
|
|
15199
|
-
const shapeStyle3d = hasShapeProperties(el) ? el.shapeStyle : void 0;
|
|
15195
|
+
const shapeStyle3d = (0, dist_exports.hasShapeProperties)(el) ? el.shapeStyle : void 0;
|
|
15200
15196
|
const extrusionData = useMemo(
|
|
15201
15197
|
() => build3DExtrusionData(shapeStyle3d?.shape3d, shapeStyle3d?.scene3d, fc, el.width, el.height),
|
|
15202
15198
|
[shapeStyle3d?.shape3d, shapeStyle3d?.scene3d, fc, el.width, el.height]
|
|
@@ -16018,7 +16014,7 @@ function InlineTextEditor({
|
|
|
16018
16014
|
seedRef.current = {
|
|
16019
16015
|
initialText,
|
|
16020
16016
|
hasRichSegments: Boolean(
|
|
16021
|
-
hasTextProperties(element) && element.textSegments && element.textSegments.length > 0
|
|
16017
|
+
(0, dist_exports.hasTextProperties)(element) && element.textSegments && element.textSegments.length > 0
|
|
16022
16018
|
)
|
|
16023
16019
|
};
|
|
16024
16020
|
}
|
|
@@ -16096,7 +16092,7 @@ function InlineTextEditor({
|
|
|
16096
16092
|
transformOrigin: warpStyle?.transformOrigin || "center"
|
|
16097
16093
|
};
|
|
16098
16094
|
const nextInlineStyleValue = (property) => {
|
|
16099
|
-
if (!hasTextProperties(element)) {
|
|
16095
|
+
if (!(0, dist_exports.hasTextProperties)(element)) {
|
|
16100
16096
|
return true;
|
|
16101
16097
|
}
|
|
16102
16098
|
const result = getInlineEditorSelectionResult(element.textSegments);
|
|
@@ -16183,7 +16179,7 @@ function FailedToLoad() {
|
|
|
16183
16179
|
var LazyModel3DScene = React17.lazy(
|
|
16184
16180
|
async () => {
|
|
16185
16181
|
try {
|
|
16186
|
-
return await import('./Model3DScene-
|
|
16182
|
+
return await import('./Model3DScene-EZDCI7TT.mjs');
|
|
16187
16183
|
} catch {
|
|
16188
16184
|
return { default: FailedToLoad };
|
|
16189
16185
|
}
|
|
@@ -16264,7 +16260,7 @@ function Model3DRenderer({ element, width, height, interactive }) {
|
|
|
16264
16260
|
const [threeAvailable, setThreeAvailable] = useState(null);
|
|
16265
16261
|
useEffect(() => {
|
|
16266
16262
|
let cancelled = false;
|
|
16267
|
-
import('./three.module-
|
|
16263
|
+
import('./three.module-2R4ADL7W.mjs').then(() => {
|
|
16268
16264
|
if (!cancelled) {
|
|
16269
16265
|
setThreeAvailable(true);
|
|
16270
16266
|
}
|
|
@@ -17109,7 +17105,7 @@ function SmartArtRendererImpl({
|
|
|
17109
17105
|
if (!onUpdateElement || !shouldCommitSmartArtNodeText(smartArtData, nodeId, text)) {
|
|
17110
17106
|
return;
|
|
17111
17107
|
}
|
|
17112
|
-
const updated = updateSmartArtNodeText(smartArtData, nodeId, text);
|
|
17108
|
+
const updated = (0, dist_exports.updateSmartArtNodeText)(smartArtData, nodeId, text);
|
|
17113
17109
|
const box = { width: element.width, height: element.height };
|
|
17114
17110
|
const reflowed = rebuildDrawingShapesIfCleared(
|
|
17115
17111
|
updated,
|
|
@@ -17125,7 +17121,7 @@ function SmartArtRendererImpl({
|
|
|
17125
17121
|
if (!onUpdateElement) {
|
|
17126
17122
|
return;
|
|
17127
17123
|
}
|
|
17128
|
-
const next = setSmartArtNodeStyle(smartArtData, nodeId, { fillColor: fill });
|
|
17124
|
+
const next = (0, dist_exports.setSmartArtNodeStyle)(smartArtData, nodeId, { fillColor: fill });
|
|
17129
17125
|
if (next !== smartArtData) {
|
|
17130
17126
|
const box = { width: element.width, height: element.height };
|
|
17131
17127
|
const reflowed = rebuildDrawingShapesIfCleared(
|
|
@@ -17360,7 +17356,7 @@ function getSegmentTspanProps(segment, element, fallbackColor) {
|
|
|
17360
17356
|
fontSize: s.fontSize ?? element.textStyle?.fontSize ?? DEFAULT_TEXT_FONT_SIZE,
|
|
17361
17357
|
fontWeight: s.bold ? 700 : 400,
|
|
17362
17358
|
fontStyle: s.italic ? "italic" : void 0,
|
|
17363
|
-
fontFamily: s.fontFamily || element.textStyle?.fontFamily ? getSubstituteFontFamily(s.fontFamily || element.textStyle?.fontFamily || "") : DEFAULT_FONT_FAMILY,
|
|
17359
|
+
fontFamily: s.fontFamily || element.textStyle?.fontFamily ? (0, dist_exports.getSubstituteFontFamily)(s.fontFamily || element.textStyle?.fontFamily || "") : DEFAULT_FONT_FAMILY,
|
|
17364
17360
|
textDecoration: decos.length > 0 ? decos.join(" ") : void 0
|
|
17365
17361
|
};
|
|
17366
17362
|
}
|
|
@@ -17368,7 +17364,7 @@ function resolveSegmentFont(segment, element) {
|
|
|
17368
17364
|
const s = segment.style || {};
|
|
17369
17365
|
const family = s.fontFamily || element.textStyle?.fontFamily;
|
|
17370
17366
|
return {
|
|
17371
|
-
fontFamily: family ? getSubstituteFontFamily(family) : DEFAULT_FONT_FAMILY,
|
|
17367
|
+
fontFamily: family ? (0, dist_exports.getSubstituteFontFamily)(family) : DEFAULT_FONT_FAMILY,
|
|
17372
17368
|
fontSizePx: s.fontSize ?? element.textStyle?.fontSize ?? DEFAULT_TEXT_FONT_SIZE,
|
|
17373
17369
|
bold: s.bold ?? element.textStyle?.bold,
|
|
17374
17370
|
italic: s.italic ?? element.textStyle?.italic
|
|
@@ -17435,7 +17431,7 @@ function WarpedText({
|
|
|
17435
17431
|
fallbackColor,
|
|
17436
17432
|
fieldContext
|
|
17437
17433
|
}) {
|
|
17438
|
-
if (!hasTextProperties(element)) {
|
|
17434
|
+
if (!(0, dist_exports.hasTextProperties)(element)) {
|
|
17439
17435
|
return null;
|
|
17440
17436
|
}
|
|
17441
17437
|
const textEl = element;
|
|
@@ -17454,7 +17450,7 @@ function WarpedText({
|
|
|
17454
17450
|
const align = textEl.textStyle?.align ?? "center";
|
|
17455
17451
|
const { startOffset, textAnchor } = getAlignmentProps(align);
|
|
17456
17452
|
const baseFontSize = textEl.textStyle?.fontSize ?? DEFAULT_TEXT_FONT_SIZE;
|
|
17457
|
-
const baseFontFamily = textEl.textStyle?.fontFamily ? getSubstituteFontFamily(textEl.textStyle.fontFamily) : DEFAULT_FONT_FAMILY;
|
|
17453
|
+
const baseFontFamily = textEl.textStyle?.fontFamily ? (0, dist_exports.getSubstituteFontFamily)(textEl.textStyle.fontFamily) : DEFAULT_FONT_FAMILY;
|
|
17458
17454
|
const baseFill = normalizeHexColor(textEl.textStyle?.color, fallbackColor);
|
|
17459
17455
|
if (hasGlyphEnvelope(preset)) {
|
|
17460
17456
|
const perLine = buildGlyphEnvelopeBlock(
|
|
@@ -17625,9 +17621,9 @@ function renderTextElementBody(options) {
|
|
|
17625
17621
|
const isLinkedTextBox$1 = isLinkedTextBox(el);
|
|
17626
17622
|
const linkedSegments = getOverflowSegments(el, slideElements);
|
|
17627
17623
|
const useSvgWarp = shouldUseSvgWarp(
|
|
17628
|
-
hasTextProperties(el) ? el.textStyle?.textWarpPreset : void 0
|
|
17624
|
+
(0, dist_exports.hasTextProperties)(el) ? el.textStyle?.textWarpPreset : void 0
|
|
17629
17625
|
);
|
|
17630
|
-
const scene3dStyle = hasTextProperties(el) ? buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height }) : void 0;
|
|
17626
|
+
const scene3dStyle = (0, dist_exports.hasTextProperties)(el) ? buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height }) : void 0;
|
|
17631
17627
|
const rotationTransform = getTextBodyRotationTransform(el);
|
|
17632
17628
|
const composedTransform = [rotationTransform, getTextCompensationTransform(el), scene3dStyle?.transform].filter(Boolean).join(" ") || void 0;
|
|
17633
17629
|
const transformStyle = {
|
|
@@ -18093,7 +18089,7 @@ function renderBody(options) {
|
|
|
18093
18089
|
onPlayStateChange: handleMediaPlayStateChange
|
|
18094
18090
|
});
|
|
18095
18091
|
}
|
|
18096
|
-
if (doInk && isInkElement(el)) {
|
|
18092
|
+
if (doInk && (0, dist_exports.isInkElement)(el)) {
|
|
18097
18093
|
return renderInk(el, {
|
|
18098
18094
|
replay: isPresentationPassive,
|
|
18099
18095
|
pressureSensitive: true
|
|
@@ -18137,7 +18133,7 @@ function defaultTextColorForFill(fillColor) {
|
|
|
18137
18133
|
return luminance > 0.179 ? DEFAULT_TEXT_COLOR : "#ffffff";
|
|
18138
18134
|
}
|
|
18139
18135
|
function getStaticElementVisualState(element, parentGroupFill) {
|
|
18140
|
-
const style = hasShapeProperties(element) ? element.shapeStyle : void 0;
|
|
18136
|
+
const style = (0, dist_exports.hasShapeProperties)(element) ? element.shapeStyle : void 0;
|
|
18141
18137
|
const hasFill = style?.fillColor !== void 0 && style.fillColor !== "transparent" || Boolean(buildCssGradientFromShapeStyle(style) || style?.fillGradient) || style?.fillMode === "pattern" && Boolean(style.fillPatternPreset);
|
|
18142
18138
|
const fill = normalizeHexColor(style?.fillColor, DEFAULT_FILL_COLOR);
|
|
18143
18139
|
const strokeWidth = paintedStrokeWidth(style);
|
|
@@ -18157,8 +18153,8 @@ function getStaticElementVisualState(element, parentGroupFill) {
|
|
|
18157
18153
|
element.type === "shape" && hasFill ? defaultTextColorForFill(fill) : DEFAULT_TEXT_COLOR
|
|
18158
18154
|
);
|
|
18159
18155
|
const isImage = element.type === "picture" || element.type === "image";
|
|
18160
|
-
const letsTextOverflow = hasTextProperties(element) && element.textStyle?.autoFitMode === "shrink" && (element.type === "text" || element.locks?.txBox === true);
|
|
18161
|
-
const shapeType = hasShapeProperties(element) ? element.shapeType : void 0;
|
|
18156
|
+
const letsTextOverflow = (0, dist_exports.hasTextProperties)(element) && element.textStyle?.autoFitMode === "shrink" && (element.type === "text" || element.locks?.txBox === true);
|
|
18157
|
+
const shapeType = (0, dist_exports.hasShapeProperties)(element) ? element.shapeType : void 0;
|
|
18162
18158
|
const isCallout = isWedgeCalloutPresetShape(shapeType) || String(shapeType ?? "").toLowerCase().includes("callout");
|
|
18163
18159
|
return {
|
|
18164
18160
|
hasFill,
|
|
@@ -18303,7 +18299,7 @@ function StaticElementRendererImpl({
|
|
|
18303
18299
|
isEditing: false,
|
|
18304
18300
|
editText: "",
|
|
18305
18301
|
spellCheck: false,
|
|
18306
|
-
txtSE: hasTextProperties(element) ? element.textStyle : void 0,
|
|
18302
|
+
txtSE: (0, dist_exports.hasTextProperties)(element) ? element.textStyle : void 0,
|
|
18307
18303
|
txtS: textStyle,
|
|
18308
18304
|
vecShape: renderVectorShape(
|
|
18309
18305
|
element,
|