pptx-react-viewer 1.19.1 → 1.21.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +14 -13
  3. package/dist/{Model3DScene-SLGODOXT.mjs → Model3DScene-FERG6DP5.mjs} +1 -1
  4. package/dist/Model3DScene-FERG6DP5.mjs.br +0 -0
  5. package/dist/Model3DScene-FERG6DP5.mjs.gz +0 -0
  6. package/dist/{Model3DScene-3RYDRQOD.js → Model3DScene-IGFOR6UG.js} +2 -2
  7. package/dist/{Model3DScene-3RYDRQOD.js.br → Model3DScene-IGFOR6UG.js.br} +0 -0
  8. package/dist/Model3DScene-IGFOR6UG.js.gz +0 -0
  9. package/dist/{PowerPointViewer-C4d7SKZf.d.ts → PowerPointViewer-JxHuwp4K.d.ts} +2 -2
  10. package/dist/{PowerPointViewer-C4d7SKZf.d.ts.map → PowerPointViewer-JxHuwp4K.d.ts.map} +1 -1
  11. package/dist/{SurfaceChart3DScene-YL4QD3O5.mjs → SurfaceChart3DScene-754VHVLW.mjs} +1 -1
  12. package/dist/SurfaceChart3DScene-754VHVLW.mjs.br +0 -0
  13. package/dist/SurfaceChart3DScene-754VHVLW.mjs.gz +0 -0
  14. package/dist/{SurfaceChart3DScene-3UZ5HZ2W.js → SurfaceChart3DScene-S2UEFUQ5.js} +2 -2
  15. package/dist/SurfaceChart3DScene-S2UEFUQ5.js.br +0 -0
  16. package/dist/SurfaceChart3DScene-S2UEFUQ5.js.gz +0 -0
  17. package/dist/{chunk-3TRQKGBU.mjs → chunk-2C3XYEFM.mjs} +13 -4
  18. package/dist/chunk-2C3XYEFM.mjs.br +0 -0
  19. package/dist/chunk-2C3XYEFM.mjs.gz +0 -0
  20. package/dist/{chunk-H5V24JVW.js → chunk-2YHX6IAW.js} +409 -398
  21. package/dist/chunk-2YHX6IAW.js.br +0 -0
  22. package/dist/chunk-2YHX6IAW.js.gz +0 -0
  23. package/dist/{chunk-RIRK64DM.mjs → chunk-4LPWBQTH.mjs} +24 -0
  24. package/dist/chunk-4LPWBQTH.mjs.br +0 -0
  25. package/dist/chunk-4LPWBQTH.mjs.gz +0 -0
  26. package/dist/{chunk-AALZCSY4.js → chunk-4SRCC7NB.js} +24 -0
  27. package/dist/chunk-4SRCC7NB.js.br +0 -0
  28. package/dist/chunk-4SRCC7NB.js.gz +0 -0
  29. package/dist/{chunk-VOU7OCQM.mjs → chunk-FTJ5JKLB.mjs} +24 -2
  30. package/dist/chunk-FTJ5JKLB.mjs.br +0 -0
  31. package/dist/chunk-FTJ5JKLB.mjs.gz +0 -0
  32. package/dist/{chunk-TG2ZYU7Y.mjs → chunk-K6C5G2J6.mjs} +136 -109
  33. package/dist/chunk-K6C5G2J6.mjs.br +0 -0
  34. package/dist/chunk-K6C5G2J6.mjs.gz +0 -0
  35. package/dist/{chunk-7JYQRDRI.js → chunk-PQUAAGKH.js} +816 -789
  36. package/dist/chunk-PQUAAGKH.js.br +0 -0
  37. package/dist/chunk-PQUAAGKH.js.gz +0 -0
  38. package/dist/{chunk-G5GATDE4.js → chunk-UGAJLDGZ.js} +25 -1
  39. package/dist/chunk-UGAJLDGZ.js.br +0 -0
  40. package/dist/chunk-UGAJLDGZ.js.gz +0 -0
  41. package/dist/hooks-unstable.d.ts +51 -2
  42. package/dist/hooks-unstable.d.ts.map +1 -1
  43. package/dist/hooks-unstable.js +82 -74
  44. package/dist/hooks-unstable.js.br +0 -0
  45. package/dist/hooks-unstable.js.gz +0 -0
  46. package/dist/hooks-unstable.mjs +3 -3
  47. package/dist/hooks-unstable.mjs.br +0 -0
  48. package/dist/hooks-unstable.mjs.gz +0 -0
  49. package/dist/i18n.js +3 -3
  50. package/dist/i18n.js.br +0 -0
  51. package/dist/i18n.js.gz +0 -0
  52. package/dist/i18n.mjs +1 -1
  53. package/dist/i18n.mjs.br +0 -0
  54. package/dist/i18n.mjs.gz +0 -0
  55. package/dist/{index-DmHVR48M.d.ts → index-BhR8ykQj.d.ts} +2 -2
  56. package/dist/{index-DmHVR48M.d.ts.map → index-BhR8ykQj.d.ts.map} +1 -1
  57. package/dist/index.d.ts +44 -1
  58. package/dist/index.js +18 -18
  59. package/dist/index.js.br +0 -0
  60. package/dist/index.js.gz +0 -0
  61. package/dist/index.mjs +4 -4
  62. package/dist/index.mjs.br +0 -0
  63. package/dist/index.mjs.gz +0 -0
  64. package/dist/{types-BK7Nt13M.d.ts → types-DGauquE9.d.ts} +20 -2
  65. package/dist/{types-BK7Nt13M.d.ts.map → types-DGauquE9.d.ts.map} +1 -1
  66. package/dist/viewer/index.d.ts +43 -0
  67. package/dist/viewer/index.js +20 -20
  68. package/dist/viewer/index.js.br +0 -0
  69. package/dist/viewer/index.js.gz +0 -0
  70. package/dist/viewer/index.mjs +4 -4
  71. package/dist/viewer/index.mjs.br +0 -0
  72. package/dist/viewer/index.mjs.gz +0 -0
  73. package/package.json +1 -1
  74. package/dist/Model3DScene-3RYDRQOD.js.gz +0 -0
  75. package/dist/Model3DScene-SLGODOXT.mjs.br +0 -0
  76. package/dist/Model3DScene-SLGODOXT.mjs.gz +0 -0
  77. package/dist/SurfaceChart3DScene-3UZ5HZ2W.js.br +0 -0
  78. package/dist/SurfaceChart3DScene-3UZ5HZ2W.js.gz +0 -0
  79. package/dist/SurfaceChart3DScene-YL4QD3O5.mjs.br +0 -0
  80. package/dist/SurfaceChart3DScene-YL4QD3O5.mjs.gz +0 -0
  81. package/dist/chunk-3TRQKGBU.mjs.br +0 -0
  82. package/dist/chunk-3TRQKGBU.mjs.gz +0 -0
  83. package/dist/chunk-7JYQRDRI.js.br +0 -0
  84. package/dist/chunk-7JYQRDRI.js.gz +0 -0
  85. package/dist/chunk-AALZCSY4.js.br +0 -0
  86. package/dist/chunk-AALZCSY4.js.gz +0 -0
  87. package/dist/chunk-G5GATDE4.js.br +0 -0
  88. package/dist/chunk-G5GATDE4.js.gz +0 -0
  89. package/dist/chunk-H5V24JVW.js.br +0 -0
  90. package/dist/chunk-H5V24JVW.js.gz +0 -0
  91. package/dist/chunk-RIRK64DM.mjs.br +0 -0
  92. package/dist/chunk-RIRK64DM.mjs.gz +0 -0
  93. package/dist/chunk-TG2ZYU7Y.mjs.br +0 -0
  94. package/dist/chunk-TG2ZYU7Y.mjs.gz +0 -0
  95. package/dist/chunk-VOU7OCQM.mjs.br +0 -0
  96. package/dist/chunk-VOU7OCQM.mjs.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project are documented here.
4
4
  This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
5
5
  by [git-cliff](https://git-cliff.org); do not edit it by hand.
6
6
 
7
+ ## [1.20.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.20.0) - 2026-07-17
8
+
9
+ ## [1.19.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.19.1) - 2026-07-17
10
+
11
+ ### Dependencies
12
+
13
+ - **deps:** Update outdated dependencies within semver ranges (by @ChristopherVR) ([3249d8e](https://github.com/ChristopherVR/pptx-viewer/commit/3249d8ecd53ea79089f87f942f2c88caae840466))
14
+
7
15
  ## [1.19.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.19.0) - 2026-07-17
8
16
 
9
17
  ## [1.18.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.18.0) - 2026-07-16
package/README.md CHANGED
@@ -93,19 +93,20 @@ const bytes = await viewerRef.current?.getContent(); // Uint8Array of a valid .p
93
93
 
94
94
  ### `PowerPointViewer` props
95
95
 
96
- | Prop | Type | Default | Description |
97
- | --------------------- | ----------------------------------- | -------- | ----------------------------------------------------------------- |
98
- | `content` | `ArrayBuffer \| Uint8Array \| null` | required | Raw .pptx file bytes |
99
- | `filePath` | `string` | n/a | Optional file path (for display and autosave) |
100
- | `canEdit` | `boolean` | `false` | Enable editing mode |
101
- | `onContentChange` | `(dirty: boolean) => void` | n/a | Called when content changes |
102
- | `onDirtyChange` | `(isDirty: boolean) => void` | n/a | Called when dirty state changes |
103
- | `onActiveSlideChange` | `(index: number) => void` | n/a | Called when the active slide changes |
104
- | `onModeChange` | `(mode: ViewerMode) => void` | n/a | Called when the viewer mode changes |
105
- | `onZoomChange` | `(zoom: number) => void` | n/a | Called when the zoom level changes |
106
- | `onSelectionChange` | `(ids: string[]) => void` | n/a | Called when element selection changes |
107
- | `onSlideCountChange` | `(count: number) => void` | n/a | Called when the total slide count changes |
108
- | `theme` | `ViewerTheme` | n/a | Theme configuration for customising colours, radius, and CSS vars |
96
+ | Prop | Type | Default | Description |
97
+ | --------------------- | ----------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
98
+ | `content` | `ArrayBuffer \| Uint8Array \| null` | required | Raw .pptx file bytes |
99
+ | `filePath` | `string` | n/a | Optional file path (for display and autosave) |
100
+ | `canEdit` | `boolean` | `false` | Enable editing mode |
101
+ | `onContentChange` | `(dirty: boolean) => void` | n/a | Called when content changes |
102
+ | `onDirtyChange` | `(isDirty: boolean) => void` | n/a | Called when dirty state changes |
103
+ | `onActiveSlideChange` | `(index: number) => void` | n/a | Called when the active slide changes |
104
+ | `onModeChange` | `(mode: ViewerMode) => void` | n/a | Called when the viewer mode changes |
105
+ | `onZoomChange` | `(zoom: number) => void` | n/a | Called when the zoom level changes |
106
+ | `onSelectionChange` | `(ids: string[]) => void` | n/a | Called when element selection changes |
107
+ | `onSlideCountChange` | `(count: number) => void` | n/a | Called when the total slide count changes |
108
+ | `theme` | `ViewerTheme` | n/a | Theme configuration for customising colours, radius, and CSS vars |
109
+ | `hiddenActions` | `ToolbarActionId[]` | n/a | Hide individual toolbar buttons and/or ribbon tabs (e.g. `['share', 'broadcast']`) instead of the whole toolbar; omitted hides nothing |
109
110
 
110
111
  ### `PowerPointViewerHandle` (via `ref`)
111
112
 
@@ -1,4 +1,4 @@
1
- import { mountModel3D } from './chunk-VOU7OCQM.mjs';
1
+ import { mountModel3D } from './chunk-FTJ5JKLB.mjs';
2
2
  import './chunk-3ZGCM6RC.mjs';
3
3
  import './chunk-6DZX6EAA.mjs';
4
4
  import { useRef, useEffect } from 'react';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkG5GATDE4_js = require('./chunk-G5GATDE4.js');
3
+ var chunkUGAJLDGZ_js = require('./chunk-UGAJLDGZ.js');
4
4
  require('./chunk-AD3EAEY6.js');
5
5
  require('./chunk-QGM4M3NI.js');
6
6
  var react = require('react');
@@ -15,7 +15,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
15
15
  return;
16
16
  }
17
17
  let disposed = false;
18
- void chunkG5GATDE4_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
18
+ void chunkUGAJLDGZ_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
19
19
  if (disposed) {
20
20
  handle.dispose();
21
21
  } else {
Binary file
@@ -1,4 +1,4 @@
1
- import { f as PowerPointViewerHandle, p as PowerPointViewerProps } from "./types-BK7Nt13M.js";
1
+ import { f as PowerPointViewerHandle, p as PowerPointViewerProps } from "./types-DGauquE9.js";
2
2
  import { PptxAnimationPreset, PptxNativeAnimation } from "pptx-viewer-core";
3
3
  import "pptx-viewer-shared";
4
4
  import React from "react";
@@ -18,4 +18,4 @@ declare function getAnimationInitialStyle(preset: PptxAnimationPreset | undefine
18
18
  declare const PowerPointViewer: import("react").ForwardRefExoticComponent<PowerPointViewerProps & import("react").RefAttributes<PowerPointViewerHandle>>;
19
19
  //#endregion
20
20
  export { getAnimationInitialStyle as n, PowerPointViewer as t };
21
- //# sourceMappingURL=PowerPointViewer-C4d7SKZf.d.ts.map
21
+ //# sourceMappingURL=PowerPointViewer-JxHuwp4K.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PowerPointViewer-C4d7SKZf.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;cC4DI,kCAAgB,0BAAA,wCAAA,cAAA"}
1
+ {"version":3,"file":"PowerPointViewer-JxHuwp4K.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;cC4DI,kCAAgB,0BAAA,wCAAA,cAAA"}
@@ -1,4 +1,4 @@
1
- import { mountSurfaceChart3D } from './chunk-VOU7OCQM.mjs';
1
+ import { mountSurfaceChart3D } from './chunk-FTJ5JKLB.mjs';
2
2
  import './chunk-3ZGCM6RC.mjs';
3
3
  import './chunk-6DZX6EAA.mjs';
4
4
  import { useRef, useEffect } from 'react';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkG5GATDE4_js = require('./chunk-G5GATDE4.js');
3
+ var chunkUGAJLDGZ_js = require('./chunk-UGAJLDGZ.js');
4
4
  require('./chunk-AD3EAEY6.js');
5
5
  require('./chunk-QGM4M3NI.js');
6
6
  var react = require('react');
@@ -26,7 +26,7 @@ function SurfaceChart3DScene({
26
26
  return;
27
27
  }
28
28
  let disposed = false;
29
- void chunkG5GATDE4_js.mountSurfaceChart3D(container, {
29
+ void chunkUGAJLDGZ_js.mountSurfaceChart3D(container, {
30
30
  cols,
31
31
  rows,
32
32
  heightMap,
@@ -1,5 +1,5 @@
1
- import { SHAPE_PRESET_DEFS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, computeEntranceAnimationDelay, storePresentationDeck, loadPresentationDeck, clearPresentationDeck, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, isPresentationSessionMessage, 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, 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, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, BROADCAST_THROTTLE_MS, sanitizeColor, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createTouchGestureRecognizer, isKeyboardOpen, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, tintColor2, shadeColor2, 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-VOU7OCQM.mjs';
2
- import { translationsEn } from './chunk-RIRK64DM.mjs';
1
+ import { SHAPE_PRESET_DEFS, TOOLBAR_TABS, computeValueRangeForChart, cloneTemplateElementsBySlideId, cloneSlide, countTextSegments, expandTextBuildAnimations, TimelineEngine, TEXT_BUILD_ID_SEP, computeEntranceAnimationDelay, storePresentationDeck, loadPresentationDeck, clearPresentationDeck, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, isPresentationSessionMessage, 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, 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, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, detectTouchDevice, detectOrientation, isMobileViewport, MOBILE_BREAKPOINT, TABLET_BREAKPOINT, remapTextToSegments, shouldLoopContinuously, applyRehearsalTimings, copyFormatFromElement, applyFormatToElement, createSyncGate, validateRoomId, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, BROADCAST_THROTTLE_MS, sanitizeColor, readSlidesFromYDoc, reconcileSlidesInYDoc, LOCAL_SYNC_ORIGIN, observeYDocSlides, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createTouchGestureRecognizer, isKeyboardOpen, isActionHidden, buildElementClipboardPayload, generatePackageReadme, downloadBlob, groupElements, generateElementId, makeCloneId, alignElements, distributeElements, bringForward, sendBackward, bringToFront, sendToBack, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, derivePresenceList, buildPrintDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, cloneHistorySnapshot, createPresentationSessionId, resolveTransitionDurationMs, isUrlSafe, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, presenterElapsed, stepPresenterZoom, resetPresenterTimer, togglePresenterTimer, isTemplateElement, substituteFieldText, resolveUnderlineDecorationStyle, hasDistinctScriptFonts, buildTextReflectionCss, getTextAlphaOpacity, buildTextRunFilterChain, buildTextShadowCss, apply3dEffects, clampUnitInterval, getRoundRectRadiusPx, computeColumnBoundaries, parseDrawingColor, parseDrawingColorOpacity, getPatternSvg, ooxmlDashToCssBorderStyle, getChartStylePalette, computeLayout, valueToY, formatAxisValue, computeLayoutOptions, splitSeriesByAxis, computeValueRange, getSecondaryValueAxis, seriesColor, paletteColor, resolveRegionCode, normalizeValue, sequentialColorScale, canvasToJpegData, downloadDataUrl, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, sanitizeDownloadFilename, encodeGif, groupSlidesBySection, cloneElementForPaste, computeScrollDelta, rerouteConnectorsForMovedElements, applyReroutedConnectors, buildPrintHtmlDocument, convertOmmlToMathMl, sanitizeMathMl, buildTextFillCss, resolvePictureBullet, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, tintColor2, shadeColor2, 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-FTJ5JKLB.mjs';
2
+ import { translationsEn } from './chunk-4LPWBQTH.mjs';
3
3
  import { hasTextProperties, PptxHandler, EncryptedFileError, hasShapeProperties, isImageLikeElement, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, guidePxToEmu, mergeShapes, getSubstituteFontFamily, getPresetShapeClipPath, svgPathToPolygons, polygonsToSvgPath, SvgExporter, rebuildTableStructureInRawXml, updateCellTextStyleInRawXml, updateCellTextInRawXml, updateMergeAttrsInRawXml, elementActionToPptxAction } from './chunk-3ZGCM6RC.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';
@@ -8464,7 +8464,7 @@ function FailedToLoad() {
8464
8464
  var LazySurfaceChart3DScene = React3.lazy(
8465
8465
  async () => {
8466
8466
  try {
8467
- return await import('./SurfaceChart3DScene-YL4QD3O5.mjs');
8467
+ return await import('./SurfaceChart3DScene-754VHVLW.mjs');
8468
8468
  } catch {
8469
8469
  return { default: FailedToLoad };
8470
8470
  }
@@ -16586,6 +16586,15 @@ function useReducedMotion() {
16586
16586
  setManualReducedMotion
16587
16587
  };
16588
16588
  }
16589
+ var KNOWN_TAB_IDS = new Set(TOOLBAR_TABS.map((tab) => tab.id));
16590
+ function computeToolbarVisibility(hiddenActions) {
16591
+ const isHidden = (id) => isActionHidden(id, hiddenActions);
16592
+ const isTabVisible = (id) => !KNOWN_TAB_IDS.has(id) || !isHidden(id);
16593
+ return { isHidden, isTabVisible };
16594
+ }
16595
+ function useToolbarVisibility(hiddenActions) {
16596
+ return useMemo(() => computeToolbarVisibility(hiddenActions), [hiddenActions]);
16597
+ }
16589
16598
  function useYjsProvider({ config }) {
16590
16599
  const [status, setStatus] = useState("disconnected");
16591
16600
  const [awareness, setAwareness] = useState(null);
@@ -17448,4 +17457,4 @@ function useSwipeNavigation(input) {
17448
17457
  return { onTouchStart, onTouchEnd };
17449
17458
  }
17450
17459
 
17451
- export { ACTION_VERB_MAP, ANIMATION_PRESET_OPTIONS, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRID_SIZE, HYPERLINK_COLOR, MIN_ELEMENT_SIZE, MIN_TOUCH_TARGET, SHAPE_PRESETS, SHORTCUT_REFERENCE_ITEMS, SLIDE_NAV_THUMBNAIL_WIDTH, SLIDE_TRANSITION_OPTIONS, SmartArtNodeText, TOOLBAR_SECTIONS, build3DExtrusionData2 as build3DExtrusionData, buildLineGlowFilter, buildLineShadowCss, buildReactChartViewModel, buildTextBody3DSceneStyle2 as buildTextBody3DSceneStyle, buildTree, chevronPoints, clearAudienceContent, cn, colour, detectTargetType, fitFontSize, gearPath, getAnimationInitialStyle2 as getAnimationInitialStyle, getConnectorPathGeometry, getCropShapeClipPath, getDuotoneColors, getImageRenderStyle, getImageTilingStyle, getShapeVisualStyle, getTextLayoutStyle, getTextStyleForElement, getTextWarpStyle, hasDagDuotoneEffect, isAudienceTab, isConnectorOrLineElement, isImageTiled, layoutToCategory, loadAudienceContent, nodeOpacity, parseAudienceNonce, parseEmailUrl, parseSlideFromUrl, renderAccentProcess, renderAlternatingFlow, renderChartElement, renderConnectorMarker, renderDagDuotoneSvgFilter, renderDescendingProcess, renderGroupedList, renderHorizontalPictureList, renderMediaElement, renderPictureAccentList, renderPyramidList, renderStepDownProcess, renderTableElement, renderTextSegments, renderToCanvas, renderVectorShape, renderVerticalBlockList, renderVerticalChevronList, resolvePalette, resolveSmartArtDataPalette, resolveStyle, shouldRenderFallbackLabel, smartArtNodeGroupProps, startPreviewAnimation, stopPreviewAnimation, storeAudienceContent, styleShadow, styleStroke, treeDepth, treeWidth, truncate, useAnimationPlayback, useAnnotationHandlers, useAudienceMode, useAutosave, useBroadcastFollower, useCanvasInteractions, useClipboardHandlers, useCollaborativeHistory, useCollaborativeState, useComments, useContentLifecycle, useDerivedElementState, useDerivedSlideState, useDialogCustomShows, useEditorHistory, useEditorOperations, useElementManipulation, useElementOperations, useExportHandlers, useExportSaveAs, useFindReplace, useFollowMode, useFontInjection, useGroupAlignLayerHandlers, useIOHandlers, useInsertElements, useIsMobile, useKeyboardInsets, useKeyboardShortcutWiring, useKeyboardShortcuts, useLayoutSwitching, useLoadContent, useMergeShapesHandler, useModalDismissDrag, usePointerHandlers, usePresenceTracking, usePresentationAnnotations, usePresentationKeyboard, usePresentationMode, usePresentationSetup, usePresenterWindow, usePrintHandlers, usePropertyHandlers, useRecoveryDetection, useReducedMotion, useRehearsalTimings, useResizablePanels, useSectionOperations, useSerialize, useSheetDismissDrag, useSlideManagement, useSlideNavigation, useSwipeNavigation, useTableOperations, useThemeHandlers, useThemeSwitching, useTouchGestures, useViewerCoreState, useViewerDialogs, useViewerIntegration, useViewerState, useViewerUIState, useVirtualizedSlides, useYjsDocumentSync, useYjsProvider, useZoomNavigation, useZoomViewport, wrapChrome };
17460
+ export { ACTION_VERB_MAP, ANIMATION_PRESET_OPTIONS, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_STROKE_COLOR, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRID_SIZE, HYPERLINK_COLOR, MIN_ELEMENT_SIZE, MIN_TOUCH_TARGET, SHAPE_PRESETS, SHORTCUT_REFERENCE_ITEMS, SLIDE_NAV_THUMBNAIL_WIDTH, SLIDE_TRANSITION_OPTIONS, SmartArtNodeText, TOOLBAR_SECTIONS, build3DExtrusionData2 as build3DExtrusionData, buildLineGlowFilter, buildLineShadowCss, buildReactChartViewModel, buildTextBody3DSceneStyle2 as buildTextBody3DSceneStyle, buildTree, chevronPoints, clearAudienceContent, cn, colour, computeToolbarVisibility, detectTargetType, fitFontSize, gearPath, getAnimationInitialStyle2 as getAnimationInitialStyle, getConnectorPathGeometry, getCropShapeClipPath, getDuotoneColors, getImageRenderStyle, getImageTilingStyle, getShapeVisualStyle, getTextLayoutStyle, getTextStyleForElement, getTextWarpStyle, hasDagDuotoneEffect, isAudienceTab, isConnectorOrLineElement, isImageTiled, layoutToCategory, loadAudienceContent, nodeOpacity, parseAudienceNonce, parseEmailUrl, parseSlideFromUrl, renderAccentProcess, renderAlternatingFlow, renderChartElement, renderConnectorMarker, renderDagDuotoneSvgFilter, renderDescendingProcess, renderGroupedList, renderHorizontalPictureList, renderMediaElement, renderPictureAccentList, renderPyramidList, renderStepDownProcess, renderTableElement, renderTextSegments, renderToCanvas, renderVectorShape, renderVerticalBlockList, renderVerticalChevronList, resolvePalette, resolveSmartArtDataPalette, resolveStyle, shouldRenderFallbackLabel, smartArtNodeGroupProps, startPreviewAnimation, stopPreviewAnimation, storeAudienceContent, styleShadow, styleStroke, treeDepth, treeWidth, truncate, useAnimationPlayback, useAnnotationHandlers, useAudienceMode, useAutosave, useBroadcastFollower, useCanvasInteractions, useClipboardHandlers, useCollaborativeHistory, useCollaborativeState, useComments, useContentLifecycle, useDerivedElementState, useDerivedSlideState, useDialogCustomShows, useEditorHistory, useEditorOperations, useElementManipulation, useElementOperations, useExportHandlers, useExportSaveAs, useFindReplace, useFollowMode, useFontInjection, useGroupAlignLayerHandlers, useIOHandlers, useInsertElements, useIsMobile, useKeyboardInsets, useKeyboardShortcutWiring, useKeyboardShortcuts, useLayoutSwitching, useLoadContent, useMergeShapesHandler, useModalDismissDrag, usePointerHandlers, usePresenceTracking, usePresentationAnnotations, usePresentationKeyboard, usePresentationMode, usePresentationSetup, usePresenterWindow, usePrintHandlers, usePropertyHandlers, useRecoveryDetection, useReducedMotion, useRehearsalTimings, useResizablePanels, useSectionOperations, useSerialize, useSheetDismissDrag, useSlideManagement, useSlideNavigation, useSwipeNavigation, useTableOperations, useThemeHandlers, useThemeSwitching, useToolbarVisibility, useTouchGestures, useViewerCoreState, useViewerDialogs, useViewerIntegration, useViewerState, useViewerUIState, useVirtualizedSlides, useYjsDocumentSync, useYjsProvider, useZoomNavigation, useZoomViewport, wrapChrome };
Binary file
Binary file