pptx-react-viewer 1.15.0 → 1.16.1
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 +4 -0
- package/dist/{Model3DScene-EF72C34A.mjs → Model3DScene-DDKQ372V.mjs} +2 -2
- package/dist/Model3DScene-DDKQ372V.mjs.br +0 -0
- package/dist/Model3DScene-DDKQ372V.mjs.gz +0 -0
- package/dist/{Model3DScene-QIE7QZ7M.js → Model3DScene-UBHBPNJ2.js} +3 -3
- package/dist/{Model3DScene-QIE7QZ7M.js.br → Model3DScene-UBHBPNJ2.js.br} +0 -0
- package/dist/Model3DScene-UBHBPNJ2.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-CBUOCCEN.js → SurfaceChart3DScene-MNFDDCYS.js} +3 -3
- package/dist/SurfaceChart3DScene-MNFDDCYS.js.br +0 -0
- package/dist/SurfaceChart3DScene-MNFDDCYS.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-JYCQ2DBR.mjs → SurfaceChart3DScene-VSUUH2MX.mjs} +2 -2
- package/dist/{SurfaceChart3DScene-JYCQ2DBR.mjs.br → SurfaceChart3DScene-VSUUH2MX.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-VSUUH2MX.mjs.gz +0 -0
- package/dist/{chunk-BZVYWFHS.js → chunk-4LRPKUP7.js} +449 -456
- package/dist/chunk-4LRPKUP7.js.br +0 -0
- package/dist/chunk-4LRPKUP7.js.gz +0 -0
- package/dist/{chunk-QFRXMAFR.mjs → chunk-AJPW5FS7.mjs} +171 -1
- package/dist/chunk-AJPW5FS7.mjs.br +0 -0
- package/dist/chunk-AJPW5FS7.mjs.gz +0 -0
- package/dist/{chunk-FQXZZBFJ.js → chunk-TLGPM7SI.js} +247 -53
- package/dist/chunk-TLGPM7SI.js.br +0 -0
- package/dist/chunk-TLGPM7SI.js.gz +0 -0
- package/dist/{chunk-OBLHB72P.js → chunk-VMQLQEGG.js} +172 -0
- package/dist/chunk-VMQLQEGG.js.br +0 -0
- package/dist/chunk-VMQLQEGG.js.gz +0 -0
- package/dist/{chunk-POP5TS5L.mjs → chunk-XOSQDCHZ.mjs} +35 -42
- package/dist/chunk-XOSQDCHZ.mjs.br +0 -0
- package/dist/chunk-XOSQDCHZ.mjs.gz +0 -0
- package/dist/{chunk-FHOZRWAD.mjs → chunk-YARAQWA4.mjs} +222 -28
- package/dist/chunk-YARAQWA4.mjs.br +0 -0
- package/dist/chunk-YARAQWA4.mjs.gz +0 -0
- package/dist/{chunk-ZDV7QRGB.js → chunk-YQHPV3VP.js} +825 -831
- package/dist/chunk-YQHPV3VP.js.br +0 -0
- package/dist/chunk-YQHPV3VP.js.gz +0 -0
- package/dist/{chunk-X2UMJTCM.mjs → chunk-YW23L4KK.mjs} +7 -13
- package/dist/chunk-YW23L4KK.mjs.br +0 -0
- package/dist/chunk-YW23L4KK.mjs.gz +0 -0
- package/dist/{dist-MVSQ6PWP.js → dist-55M4L5OI.js} +513 -505
- package/dist/dist-55M4L5OI.js.br +0 -0
- package/dist/dist-55M4L5OI.js.gz +0 -0
- package/dist/dist-C5CVVTDM.mjs +2 -0
- package/dist/dist-C5CVVTDM.mjs.br +0 -0
- package/dist/dist-C5CVVTDM.mjs.gz +0 -0
- package/dist/hooks-unstable.js +74 -74
- package/dist/hooks-unstable.js.br +0 -0
- package/dist/hooks-unstable.js.gz +0 -0
- package/dist/hooks-unstable.mjs +3 -3
- package/dist/hooks-unstable.mjs.br +0 -0
- package/dist/hooks-unstable.mjs.gz +0 -0
- package/dist/index.js +18 -18
- 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/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 +4 -4
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/Model3DScene-EF72C34A.mjs.br +0 -0
- package/dist/Model3DScene-EF72C34A.mjs.gz +0 -0
- package/dist/Model3DScene-QIE7QZ7M.js.gz +0 -0
- package/dist/SurfaceChart3DScene-CBUOCCEN.js.br +0 -0
- package/dist/SurfaceChart3DScene-CBUOCCEN.js.gz +0 -0
- package/dist/SurfaceChart3DScene-JYCQ2DBR.mjs.gz +0 -0
- package/dist/chunk-BZVYWFHS.js.br +0 -0
- package/dist/chunk-BZVYWFHS.js.gz +0 -0
- package/dist/chunk-FHOZRWAD.mjs.br +0 -0
- package/dist/chunk-FHOZRWAD.mjs.gz +0 -0
- package/dist/chunk-FQXZZBFJ.js.br +0 -0
- package/dist/chunk-FQXZZBFJ.js.gz +0 -0
- package/dist/chunk-OBLHB72P.js.br +0 -0
- package/dist/chunk-OBLHB72P.js.gz +0 -0
- package/dist/chunk-POP5TS5L.mjs.br +0 -0
- package/dist/chunk-POP5TS5L.mjs.gz +0 -0
- package/dist/chunk-QFRXMAFR.mjs.br +0 -0
- package/dist/chunk-QFRXMAFR.mjs.gz +0 -0
- package/dist/chunk-X2UMJTCM.mjs.br +0 -0
- package/dist/chunk-X2UMJTCM.mjs.gz +0 -0
- package/dist/chunk-ZDV7QRGB.js.br +0 -0
- package/dist/chunk-ZDV7QRGB.js.gz +0 -0
- package/dist/dist-D5LQ7PW7.mjs +0 -2
- package/dist/dist-D5LQ7PW7.mjs.br +0 -0
- package/dist/dist-D5LQ7PW7.mjs.gz +0 -0
- package/dist/dist-MVSQ6PWP.js.br +0 -0
- package/dist/dist-MVSQ6PWP.js.gz +0 -0
|
@@ -6077,6 +6077,176 @@ var THEME_PRESETS = [
|
|
|
6077
6077
|
SLATE_PRESET,
|
|
6078
6078
|
METROPOLITAN_PRESET
|
|
6079
6079
|
];
|
|
6080
|
+
var ELEMENT_FIELD_KIND = {
|
|
6081
|
+
// PptxElementBase
|
|
6082
|
+
id: "scalar",
|
|
6083
|
+
shapeId: "scalar",
|
|
6084
|
+
name: "scalar",
|
|
6085
|
+
x: "scalar",
|
|
6086
|
+
y: "scalar",
|
|
6087
|
+
width: "scalar",
|
|
6088
|
+
height: "scalar",
|
|
6089
|
+
rotation: "scalar",
|
|
6090
|
+
skewX: "scalar",
|
|
6091
|
+
skewY: "scalar",
|
|
6092
|
+
flipHorizontal: "scalar",
|
|
6093
|
+
flipVertical: "scalar",
|
|
6094
|
+
hidden: "scalar",
|
|
6095
|
+
opacity: "scalar",
|
|
6096
|
+
rawXml: "complex",
|
|
6097
|
+
actionClick: "complex",
|
|
6098
|
+
actionHover: "complex",
|
|
6099
|
+
locks: "complex",
|
|
6100
|
+
extLstXml: "complex",
|
|
6101
|
+
// discriminant
|
|
6102
|
+
type: "scalar",
|
|
6103
|
+
// PptxTextProperties
|
|
6104
|
+
text: "scalar",
|
|
6105
|
+
textStyle: "complex",
|
|
6106
|
+
textSegments: "text",
|
|
6107
|
+
paragraphIndents: "complex",
|
|
6108
|
+
promptText: "scalar",
|
|
6109
|
+
linkedTxbxId: "scalar",
|
|
6110
|
+
linkedTxbxSeq: "scalar",
|
|
6111
|
+
// PptxShapeProperties
|
|
6112
|
+
shapeStyle: "complex",
|
|
6113
|
+
shapeType: "scalar",
|
|
6114
|
+
shapeAdjustments: "complex",
|
|
6115
|
+
adjustmentHandles: "complex",
|
|
6116
|
+
// PptxCustomPathProperties
|
|
6117
|
+
pathData: "scalar",
|
|
6118
|
+
pathWidth: "scalar",
|
|
6119
|
+
pathHeight: "scalar",
|
|
6120
|
+
customGeometryPaths: "complex",
|
|
6121
|
+
customGeometryRawData: "complex",
|
|
6122
|
+
customGeometryAdjustHandlesXY: "complex",
|
|
6123
|
+
customGeometryAdjustHandlesPolar: "complex",
|
|
6124
|
+
customGeometryConnectionSites: "complex",
|
|
6125
|
+
customGeometryTextRect: "complex",
|
|
6126
|
+
// PptxImageProperties
|
|
6127
|
+
imageData: "scalar",
|
|
6128
|
+
imagePath: "scalar",
|
|
6129
|
+
svgData: "scalar",
|
|
6130
|
+
svgPath: "scalar",
|
|
6131
|
+
altText: "scalar",
|
|
6132
|
+
cropLeft: "scalar",
|
|
6133
|
+
cropTop: "scalar",
|
|
6134
|
+
cropRight: "scalar",
|
|
6135
|
+
cropBottom: "scalar",
|
|
6136
|
+
tileOffsetX: "scalar",
|
|
6137
|
+
tileOffsetY: "scalar",
|
|
6138
|
+
tileScaleX: "scalar",
|
|
6139
|
+
tileScaleY: "scalar",
|
|
6140
|
+
tileFlip: "scalar",
|
|
6141
|
+
tileAlignment: "scalar",
|
|
6142
|
+
imageEffects: "complex",
|
|
6143
|
+
cropShape: "complex",
|
|
6144
|
+
// TablePptxElement / ChartPptxElement / SmartArtPptxElement
|
|
6145
|
+
tableData: "complex",
|
|
6146
|
+
chartData: "complex",
|
|
6147
|
+
smartArtData: "complex",
|
|
6148
|
+
extensionXml: "complex",
|
|
6149
|
+
// OlePptxElement
|
|
6150
|
+
oleTarget: "scalar",
|
|
6151
|
+
oleProgId: "scalar",
|
|
6152
|
+
oleName: "scalar",
|
|
6153
|
+
oleClsId: "scalar",
|
|
6154
|
+
oleObjectType: "scalar",
|
|
6155
|
+
oleFileExtension: "scalar",
|
|
6156
|
+
fileName: "scalar",
|
|
6157
|
+
isLinked: "scalar",
|
|
6158
|
+
externalPath: "scalar",
|
|
6159
|
+
previewImage: "scalar",
|
|
6160
|
+
previewImageData: "asset",
|
|
6161
|
+
oleShowAsIcon: "scalar",
|
|
6162
|
+
oleImgW: "scalar",
|
|
6163
|
+
oleImgH: "scalar",
|
|
6164
|
+
oleEmbeddedData: "asset",
|
|
6165
|
+
oleEmbeddedFileName: "scalar",
|
|
6166
|
+
oleEmbeddedMimeType: "scalar",
|
|
6167
|
+
oleEmbeddedByteSize: "scalar",
|
|
6168
|
+
// MediaPptxElement
|
|
6169
|
+
mediaType: "scalar",
|
|
6170
|
+
mediaPath: "scalar",
|
|
6171
|
+
mediaData: "asset",
|
|
6172
|
+
mediaMimeType: "scalar",
|
|
6173
|
+
trimStartMs: "scalar",
|
|
6174
|
+
trimEndMs: "scalar",
|
|
6175
|
+
posterFramePath: "scalar",
|
|
6176
|
+
posterFrameData: "asset",
|
|
6177
|
+
fullScreen: "scalar",
|
|
6178
|
+
loop: "scalar",
|
|
6179
|
+
fadeInDuration: "scalar",
|
|
6180
|
+
fadeOutDuration: "scalar",
|
|
6181
|
+
volume: "scalar",
|
|
6182
|
+
autoPlay: "scalar",
|
|
6183
|
+
playAcrossSlides: "scalar",
|
|
6184
|
+
hideWhenNotPlaying: "scalar",
|
|
6185
|
+
bookmarks: "complex",
|
|
6186
|
+
playbackSpeed: "scalar",
|
|
6187
|
+
metadata: "complex",
|
|
6188
|
+
captionTracks: "complex",
|
|
6189
|
+
mediaMissing: "scalar",
|
|
6190
|
+
// GroupPptxElement
|
|
6191
|
+
children: "complex",
|
|
6192
|
+
groupFill: "complex",
|
|
6193
|
+
// InkPptxElement
|
|
6194
|
+
inkPaths: "scalar",
|
|
6195
|
+
inkColors: "scalar",
|
|
6196
|
+
inkWidths: "scalar",
|
|
6197
|
+
inkOpacities: "scalar",
|
|
6198
|
+
inkTool: "scalar",
|
|
6199
|
+
inkPointPressures: "complex",
|
|
6200
|
+
// ContentPartPptxElement
|
|
6201
|
+
inkStrokes: "complex",
|
|
6202
|
+
// ZoomPptxElement
|
|
6203
|
+
zoomType: "scalar",
|
|
6204
|
+
targetSlideIndex: "scalar",
|
|
6205
|
+
targetSectionId: "scalar",
|
|
6206
|
+
// Model3DPptxElement
|
|
6207
|
+
modelPath: "scalar",
|
|
6208
|
+
modelData: "asset",
|
|
6209
|
+
modelMimeType: "scalar",
|
|
6210
|
+
posterImage: "scalar"
|
|
6211
|
+
};
|
|
6212
|
+
var SLIDE_FIELD_KIND = {
|
|
6213
|
+
id: "scalar",
|
|
6214
|
+
rId: "scalar",
|
|
6215
|
+
sourceSlideId: "scalar",
|
|
6216
|
+
name: "scalar",
|
|
6217
|
+
layoutPath: "scalar",
|
|
6218
|
+
layoutName: "scalar",
|
|
6219
|
+
slideNumber: "scalar",
|
|
6220
|
+
hidden: "scalar",
|
|
6221
|
+
sectionName: "scalar",
|
|
6222
|
+
sectionId: "scalar",
|
|
6223
|
+
elements: "nested",
|
|
6224
|
+
backgroundColor: "scalar",
|
|
6225
|
+
backgroundImage: "scalar",
|
|
6226
|
+
backgroundGradient: "scalar",
|
|
6227
|
+
backgroundPattern: "complex",
|
|
6228
|
+
backgroundShadeToTitle: "scalar",
|
|
6229
|
+
transition: "complex",
|
|
6230
|
+
animations: "complex",
|
|
6231
|
+
nativeAnimations: "complex",
|
|
6232
|
+
rawTiming: "complex",
|
|
6233
|
+
notes: "scalar",
|
|
6234
|
+
notesSegments: "complex",
|
|
6235
|
+
notesShapes: "complex",
|
|
6236
|
+
notesClrMapOverride: "complex",
|
|
6237
|
+
notesCSldName: "scalar",
|
|
6238
|
+
comments: "complex",
|
|
6239
|
+
warnings: "complex",
|
|
6240
|
+
rawXml: "complex",
|
|
6241
|
+
clrMapOverride: "complex",
|
|
6242
|
+
backgroundShowAnimation: "scalar",
|
|
6243
|
+
showMasterShapes: "scalar",
|
|
6244
|
+
guides: "complex",
|
|
6245
|
+
isDirty: "scalar",
|
|
6246
|
+
customerData: "complex",
|
|
6247
|
+
activeXControls: "complex",
|
|
6248
|
+
headerFooterFlags: "complex"
|
|
6249
|
+
};
|
|
6080
6250
|
var ANGLE_SCALE = 6e4;
|
|
6081
6251
|
function angleToRadians(ooxmlAngle) {
|
|
6082
6252
|
return ooxmlAngle / ANGLE_SCALE * (Math.PI / 180);
|
|
@@ -70583,6 +70753,7 @@ exports.DIGITAL_SIGNATURE_REL_TYPE = DIGITAL_SIGNATURE_REL_TYPE;
|
|
|
70583
70753
|
exports.DataIntegrityError = DataIntegrityError;
|
|
70584
70754
|
exports.DocumentConverter = DocumentConverter;
|
|
70585
70755
|
exports.EFFECT_LST_ORDER = EFFECT_LST_ORDER;
|
|
70756
|
+
exports.ELEMENT_FIELD_KIND = ELEMENT_FIELD_KIND;
|
|
70586
70757
|
exports.EMPHASIS_PRESETS = EMPHASIS_PRESETS;
|
|
70587
70758
|
exports.EMU_PER_INCH = EMU_PER_INCH;
|
|
70588
70759
|
exports.EMU_PER_PIXEL2 = EMU_PER_PIXEL2;
|
|
@@ -70675,6 +70846,7 @@ exports.PptxXmlLookupService = PptxXmlLookupService;
|
|
|
70675
70846
|
exports.Presentation = Presentation;
|
|
70676
70847
|
exports.PresentationBuilder = PresentationBuilder;
|
|
70677
70848
|
exports.SHAPE_TREE_ELEMENT_TAGS = SHAPE_TREE_ELEMENT_TAGS;
|
|
70849
|
+
exports.SLIDE_FIELD_KIND = SLIDE_FIELD_KIND;
|
|
70678
70850
|
exports.SP_PR_ORDER = SP_PR_ORDER;
|
|
70679
70851
|
exports.STROKE_DASH_OPTIONS = STROKE_DASH_OPTIONS;
|
|
70680
70852
|
exports.SUPPORTED_XML_CANON_TRANSFORMS = SUPPORTED_XML_CANON_TRANSFORMS;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, getAnimationInitialStyle, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, copyFormatFromElement, applyFormatToElement,
|
|
1
|
+
import { SHAPE_PRESET_DEFS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, collectMediaElements, collectImagePaths, buildInitialGuides, saveAutosaveSnapshot, getAnimationInitialStyle, normalizeHexColor, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, computeAutoFitTextStyle, resolveLineHeight, getKinsokuLineBreakStyles, buildTextBody3DSceneStyle, resolveParagraphRtl, resolveParagraphAlign, resolveCssTextAlign, colorWithOpacity, build3DExtrusionData, getResolvedShapeClipPath, normalizeStrokeDashType, buildCssGradientFromShapeStyle, buildShadowCssFromShapeStyle, buildInnerShadowCssFromShapeStyle, buildMultiLayerShadowCss, buildGlowBoxShadow, getCompoundLineBoxShadow, getEffectDagFilter, buildPatternFillCss, buildReflectionCss, getCssBorderDashStyle, getCompoundLineBorderWidth, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, clampCropValue, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, computeSelectionRect, rectToCells, isCellInRect, buildChartViewModel, buildPreviewAnimation, isTemplateElementId, getInlineEditorSelection, applyStyleToSelectedSegments, setPendingSelectionRestore, applyCaseTransformToSegments, transformTextCase, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, normalizeColorsForCapture, preprocessCssForCapture, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, recordProgressPercent, comparePresentation, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, copyFormatFromElement, applyFormatToElement, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, BROADCAST_THROTTLE_MS, sanitizeColor, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, createTouchGestureRecognizer, isKeyboardOpen, buildElementClipboardPayload, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, secureRandomUuid, resolveTransitionDurationMs, isUrlSafe, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, tintColor2, shadeColor2, computeColumnBoundaries, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, deleteTableColumn, insertTableColumn, deleteTableRow, insertTableRow, splitCell, mergeCells, buildSlidesPdfBytes, buildNotesPdfBytes, ACTION_BUTTON_PRESETS, buildSmartArtPresetData, computeSnapToShape, computeMarqueeHitIds, mergeAdditiveSelection, segmentByScript, resolveFontForScript, generateLogTicks, formatAxisValueWithUnits, getDisplayUnitLabel, applyResize, snapBoxToGrid, chartPartToAttrs } from './chunk-YARAQWA4.mjs';
|
|
2
2
|
import { translationsEn } from './chunk-HJQZJ3VE.mjs';
|
|
3
|
-
import { hasTextProperties, PptxHandler, EncryptedFileError, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, guidePxToEmu, mergeShapes, getSubstituteFontFamily, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-
|
|
3
|
+
import { hasTextProperties, PptxHandler, EncryptedFileError, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, guidePxToEmu, mergeShapes, getSubstituteFontFamily, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-AJPW5FS7.mjs';
|
|
4
4
|
import React3, { useState, useEffect, useMemo, Suspense, useRef, useCallback, useSyncExternalStore, useImperativeHandle, useLayoutEffect } from 'react';
|
|
5
5
|
import { LuTriangle, LuPlus, LuMoveRight, LuMinus, LuDiamond, LuDatabase, LuCircle, LuSquare } from 'react-icons/lu';
|
|
6
6
|
import { clsx } from 'clsx';
|
|
@@ -8487,7 +8487,7 @@ function FailedToLoad() {
|
|
|
8487
8487
|
var LazySurfaceChart3DScene = React3.lazy(
|
|
8488
8488
|
async () => {
|
|
8489
8489
|
try {
|
|
8490
|
-
return await import('./SurfaceChart3DScene-
|
|
8490
|
+
return await import('./SurfaceChart3DScene-VSUUH2MX.mjs');
|
|
8491
8491
|
} catch {
|
|
8492
8492
|
return { default: FailedToLoad };
|
|
8493
8493
|
}
|
|
@@ -17106,34 +17106,20 @@ function useYjsProvider({ config }) {
|
|
|
17106
17106
|
const [synced, setSynced] = useState(false);
|
|
17107
17107
|
const cleanupRef = useRef(null);
|
|
17108
17108
|
const timeoutRef = useRef(null);
|
|
17109
|
-
const
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
syncGraceRef.current = null;
|
|
17114
|
-
}
|
|
17115
|
-
}, []);
|
|
17116
|
-
const markSynced = useCallback(() => {
|
|
17117
|
-
clearSyncGrace();
|
|
17118
|
-
setSynced(true);
|
|
17119
|
-
}, [clearSyncGrace]);
|
|
17120
|
-
const armSyncGrace = useCallback(() => {
|
|
17121
|
-
clearSyncGrace();
|
|
17122
|
-
syncGraceRef.current = setTimeout(() => {
|
|
17123
|
-
syncGraceRef.current = null;
|
|
17124
|
-
setSynced(true);
|
|
17125
|
-
}, INITIAL_SYNC_GRACE_MS);
|
|
17126
|
-
}, [clearSyncGrace]);
|
|
17109
|
+
const gateRef = useRef(null);
|
|
17110
|
+
if (!gateRef.current) {
|
|
17111
|
+
gateRef.current = createSyncGate(() => setSynced(true));
|
|
17112
|
+
}
|
|
17127
17113
|
const teardown = useCallback(() => {
|
|
17128
17114
|
if (timeoutRef.current) {
|
|
17129
17115
|
clearTimeout(timeoutRef.current);
|
|
17130
17116
|
timeoutRef.current = null;
|
|
17131
17117
|
}
|
|
17132
|
-
|
|
17118
|
+
gateRef.current?.reset();
|
|
17133
17119
|
setSynced(false);
|
|
17134
17120
|
cleanupRef.current?.();
|
|
17135
17121
|
cleanupRef.current = null;
|
|
17136
|
-
}, [
|
|
17122
|
+
}, []);
|
|
17137
17123
|
const buildCleanup = useCallback(
|
|
17138
17124
|
(provider, yDoc) => () => {
|
|
17139
17125
|
provider.destroy();
|
|
@@ -17167,14 +17153,26 @@ function useYjsProvider({ config }) {
|
|
|
17167
17153
|
setStatus("connected");
|
|
17168
17154
|
const handleSynced = (event) => {
|
|
17169
17155
|
if (event?.synced !== false) {
|
|
17170
|
-
|
|
17156
|
+
gateRef.current?.open();
|
|
17171
17157
|
}
|
|
17172
17158
|
};
|
|
17173
17159
|
provider.on("synced", handleSynced);
|
|
17174
|
-
|
|
17160
|
+
gateRef.current?.arm();
|
|
17161
|
+
const handleStatus = (event) => {
|
|
17162
|
+
if (event.connected === false) {
|
|
17163
|
+
setStatus("disconnected");
|
|
17164
|
+
gateRef.current?.reset();
|
|
17165
|
+
setSynced(false);
|
|
17166
|
+
gateRef.current?.arm();
|
|
17167
|
+
} else if (event.connected) {
|
|
17168
|
+
setStatus("connected");
|
|
17169
|
+
}
|
|
17170
|
+
};
|
|
17171
|
+
provider.on("status", handleStatus);
|
|
17175
17172
|
const baseCleanup = buildCleanup(provider, yDoc);
|
|
17176
17173
|
cleanupRef.current = () => {
|
|
17177
17174
|
provider.off("synced", handleSynced);
|
|
17175
|
+
provider.off("status", handleStatus);
|
|
17178
17176
|
baseCleanup();
|
|
17179
17177
|
};
|
|
17180
17178
|
} catch (err) {
|
|
@@ -17184,21 +17182,15 @@ function useYjsProvider({ config }) {
|
|
|
17184
17182
|
);
|
|
17185
17183
|
setStatus("error");
|
|
17186
17184
|
}
|
|
17187
|
-
}, [
|
|
17188
|
-
config?.roomId,
|
|
17189
|
-
config?.authToken,
|
|
17190
|
-
config?.signaling,
|
|
17191
|
-
buildCleanup,
|
|
17192
|
-
armSyncGrace,
|
|
17193
|
-
markSynced
|
|
17194
|
-
]);
|
|
17185
|
+
}, [config?.roomId, config?.authToken, config?.signaling, buildCleanup]);
|
|
17195
17186
|
const init = useCallback(async () => {
|
|
17196
17187
|
teardown();
|
|
17197
17188
|
if (!config) {
|
|
17198
17189
|
return;
|
|
17199
17190
|
}
|
|
17200
17191
|
const roomId = validateRoomId(config.roomId);
|
|
17201
|
-
|
|
17192
|
+
const transport = config.transport ?? resolveTransportForServerUrl(config.serverUrl);
|
|
17193
|
+
if (transport === "webrtc") {
|
|
17202
17194
|
await initWebrtc();
|
|
17203
17195
|
return;
|
|
17204
17196
|
}
|
|
@@ -17225,14 +17217,17 @@ function useYjsProvider({ config }) {
|
|
|
17225
17217
|
timeoutRef.current = null;
|
|
17226
17218
|
}
|
|
17227
17219
|
setStatus("connected");
|
|
17228
|
-
|
|
17220
|
+
gateRef.current?.arm();
|
|
17229
17221
|
} else if (event.status === "disconnected") {
|
|
17230
17222
|
setStatus("disconnected");
|
|
17223
|
+
gateRef.current?.reset();
|
|
17224
|
+
setSynced(false);
|
|
17225
|
+
gateRef.current?.arm();
|
|
17231
17226
|
}
|
|
17232
17227
|
};
|
|
17233
17228
|
const handleSynced = (isSynced) => {
|
|
17234
17229
|
if (isSynced) {
|
|
17235
|
-
|
|
17230
|
+
gateRef.current?.open();
|
|
17236
17231
|
}
|
|
17237
17232
|
};
|
|
17238
17233
|
provider.on("status", handleStatus);
|
|
@@ -17240,10 +17235,10 @@ function useYjsProvider({ config }) {
|
|
|
17240
17235
|
if (provider.wsconnected) {
|
|
17241
17236
|
connected = true;
|
|
17242
17237
|
setStatus("connected");
|
|
17243
|
-
|
|
17238
|
+
gateRef.current?.arm();
|
|
17244
17239
|
}
|
|
17245
17240
|
if (provider.synced) {
|
|
17246
|
-
|
|
17241
|
+
gateRef.current?.open();
|
|
17247
17242
|
}
|
|
17248
17243
|
if (!connected) {
|
|
17249
17244
|
timeoutRef.current = setTimeout(() => {
|
|
@@ -17287,9 +17282,7 @@ function useYjsProvider({ config }) {
|
|
|
17287
17282
|
config?.authToken,
|
|
17288
17283
|
config?.transport,
|
|
17289
17284
|
initWebrtc,
|
|
17290
|
-
teardown
|
|
17291
|
-
armSyncGrace,
|
|
17292
|
-
markSynced
|
|
17285
|
+
teardown
|
|
17293
17286
|
]);
|
|
17294
17287
|
useEffect(() => {
|
|
17295
17288
|
init();
|
|
@@ -17520,7 +17513,7 @@ function useYjsDocumentSync({
|
|
|
17520
17513
|
return;
|
|
17521
17514
|
}
|
|
17522
17515
|
try {
|
|
17523
|
-
const { PptxHandler: PptxHandler2 } = await import('./dist-
|
|
17516
|
+
const { PptxHandler: PptxHandler2 } = await import('./dist-C5CVVTDM.mjs');
|
|
17524
17517
|
const handler = new PptxHandler2();
|
|
17525
17518
|
await handler.load(sourceBytes.buffer);
|
|
17526
17519
|
const currentSlides = readSlidesFromYDoc(
|
|
Binary file
|
|
Binary file
|