pptx-react-viewer 1.16.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 CHANGED
@@ -4,6 +4,8 @@ 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.16.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.16.0) - 2026-07-11
8
+
7
9
  ## [1.15.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.15.0) - 2026-07-11
8
10
 
9
11
  ## [1.14.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.14.1) - 2026-07-11
@@ -31864,12 +31864,6 @@ var PowerPointViewer = React5.forwardRef(
31864
31864
  onSelectionChange,
31865
31865
  onSlideCountChange
31866
31866
  });
31867
- if (loading) {
31868
- return /* @__PURE__ */ jsxRuntime.jsx(LoadingState, {});
31869
- }
31870
- if (error) {
31871
- return /* @__PURE__ */ jsxRuntime.jsx(ErrorState, { error });
31872
- }
31873
31867
  const showSlidesPane = mode === "edit" && !isMobile && !dialogs.isNarrowViewport && state.isSlidesPaneOpen;
31874
31868
  const showMasterPane = mode === "master" && !isMobile && state.isSlidesPaneOpen;
31875
31869
  const viewerContent = /* @__PURE__ */ jsxRuntime.jsxs(
@@ -31879,13 +31873,13 @@ var PowerPointViewer = React5.forwardRef(
31879
31873
  "data-pptx-viewer": "",
31880
31874
  className: "h-full w-full bg-background text-foreground relative",
31881
31875
  children: [
31882
- /* @__PURE__ */ jsxRuntime.jsxs(
31876
+ /* @__PURE__ */ jsxRuntime.jsx(
31883
31877
  "div",
31884
31878
  {
31885
31879
  ref: containerRef,
31886
31880
  tabIndex: 0,
31887
31881
  className: "h-full w-full flex flex-col overflow-hidden outline-none",
31888
- children: [
31882
+ children: loading ? /* @__PURE__ */ jsxRuntime.jsx(LoadingState, {}) : error ? /* @__PURE__ */ jsxRuntime.jsx(ErrorState, { error }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
31889
31883
  mode !== "present" && /* @__PURE__ */ jsxRuntime.jsx(
31890
31884
  ViewerToolbarSection,
31891
31885
  {
@@ -31991,7 +31985,7 @@ var PowerPointViewer = React5.forwardRef(
31991
31985
  commentCount: activeSlide?.comments?.length ?? 0
31992
31986
  }
31993
31987
  )
31994
- ]
31988
+ ] })
31995
31989
  }
31996
31990
  ),
31997
31991
  /* @__PURE__ */ jsxRuntime.jsx(
Binary file
@@ -31857,12 +31857,6 @@ var PowerPointViewer = forwardRef(
31857
31857
  onSelectionChange,
31858
31858
  onSlideCountChange
31859
31859
  });
31860
- if (loading) {
31861
- return /* @__PURE__ */ jsx(LoadingState, {});
31862
- }
31863
- if (error) {
31864
- return /* @__PURE__ */ jsx(ErrorState, { error });
31865
- }
31866
31860
  const showSlidesPane = mode === "edit" && !isMobile && !dialogs.isNarrowViewport && state.isSlidesPaneOpen;
31867
31861
  const showMasterPane = mode === "master" && !isMobile && state.isSlidesPaneOpen;
31868
31862
  const viewerContent = /* @__PURE__ */ jsxs(
@@ -31872,13 +31866,13 @@ var PowerPointViewer = forwardRef(
31872
31866
  "data-pptx-viewer": "",
31873
31867
  className: "h-full w-full bg-background text-foreground relative",
31874
31868
  children: [
31875
- /* @__PURE__ */ jsxs(
31869
+ /* @__PURE__ */ jsx(
31876
31870
  "div",
31877
31871
  {
31878
31872
  ref: containerRef,
31879
31873
  tabIndex: 0,
31880
31874
  className: "h-full w-full flex flex-col overflow-hidden outline-none",
31881
- children: [
31875
+ children: loading ? /* @__PURE__ */ jsx(LoadingState, {}) : error ? /* @__PURE__ */ jsx(ErrorState, { error }) : /* @__PURE__ */ jsxs(Fragment, { children: [
31882
31876
  mode !== "present" && /* @__PURE__ */ jsx(
31883
31877
  ViewerToolbarSection,
31884
31878
  {
@@ -31984,7 +31978,7 @@ var PowerPointViewer = forwardRef(
31984
31978
  commentCount: activeSlide?.comments?.length ?? 0
31985
31979
  }
31986
31980
  )
31987
- ]
31981
+ ] })
31988
31982
  }
31989
31983
  ),
31990
31984
  /* @__PURE__ */ jsx(
Binary file
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUOHKJ33P_js = require('./chunk-UOHKJ33P.js');
3
+ var chunkYQHPV3VP_js = require('./chunk-YQHPV3VP.js');
4
4
  var chunk4LRPKUP7_js = require('./chunk-4LRPKUP7.js');
5
5
  var chunkTLGPM7SI_js = require('./chunk-TLGPM7SI.js');
6
6
  require('./chunk-WGLJ32FW.js');
@@ -11,15 +11,15 @@ require('./chunk-QGM4M3NI.js');
11
11
 
12
12
  Object.defineProperty(exports, "PowerPointViewer", {
13
13
  enumerable: true,
14
- get: function () { return chunkUOHKJ33P_js.PowerPointViewer; }
14
+ get: function () { return chunkYQHPV3VP_js.PowerPointViewer; }
15
15
  });
16
16
  Object.defineProperty(exports, "ViewerThemeProvider", {
17
17
  enumerable: true,
18
- get: function () { return chunkUOHKJ33P_js.ViewerThemeProvider; }
18
+ get: function () { return chunkYQHPV3VP_js.ViewerThemeProvider; }
19
19
  });
20
20
  Object.defineProperty(exports, "useViewerTheme", {
21
21
  enumerable: true,
22
- get: function () { return chunkUOHKJ33P_js.useViewerTheme; }
22
+ get: function () { return chunkYQHPV3VP_js.useViewerTheme; }
23
23
  });
24
24
  Object.defineProperty(exports, "getAnimationInitialStyle", {
25
25
  enumerable: true,
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerPointViewer, ViewerThemeProvider, useViewerTheme } from './chunk-WX2USCZK.mjs';
1
+ export { PowerPointViewer, ViewerThemeProvider, useViewerTheme } from './chunk-YW23L4KK.mjs';
2
2
  export { getAnimationInitialStyle, renderToCanvas } from './chunk-XOSQDCHZ.mjs';
3
3
  export { defaultCssVars, defaultRadius, defaultThemeColors, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-YARAQWA4.mjs';
4
4
  import './chunk-HJQZJ3VE.mjs';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-IKBO6CZC.js');
4
- var chunkUOHKJ33P_js = require('../chunk-UOHKJ33P.js');
4
+ var chunkYQHPV3VP_js = require('../chunk-YQHPV3VP.js');
5
5
  var chunk4LRPKUP7_js = require('../chunk-4LRPKUP7.js');
6
6
  require('../chunk-TLGPM7SI.js');
7
7
  require('../chunk-WGLJ32FW.js');
@@ -12,23 +12,23 @@ require('../chunk-QGM4M3NI.js');
12
12
 
13
13
  Object.defineProperty(exports, "CollaborationProvider", {
14
14
  enumerable: true,
15
- get: function () { return chunkUOHKJ33P_js.CollaborationProvider; }
15
+ get: function () { return chunkYQHPV3VP_js.CollaborationProvider; }
16
16
  });
17
17
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
18
18
  enumerable: true,
19
- get: function () { return chunkUOHKJ33P_js.CollaborationStatusIndicator; }
19
+ get: function () { return chunkYQHPV3VP_js.CollaborationStatusIndicator; }
20
20
  });
21
21
  Object.defineProperty(exports, "PowerPointViewer", {
22
22
  enumerable: true,
23
- get: function () { return chunkUOHKJ33P_js.PowerPointViewer; }
23
+ get: function () { return chunkYQHPV3VP_js.PowerPointViewer; }
24
24
  });
25
25
  Object.defineProperty(exports, "RemoteUserCursors", {
26
26
  enumerable: true,
27
- get: function () { return chunkUOHKJ33P_js.RemoteUserCursors; }
27
+ get: function () { return chunkYQHPV3VP_js.RemoteUserCursors; }
28
28
  });
29
29
  Object.defineProperty(exports, "UserAvatarBar", {
30
30
  enumerable: true,
31
- get: function () { return chunkUOHKJ33P_js.UserAvatarBar; }
31
+ get: function () { return chunkYQHPV3VP_js.UserAvatarBar; }
32
32
  });
33
33
  Object.defineProperty(exports, "clearAudienceContent", {
34
34
  enumerable: true,
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  import '../chunk-T5U6P2JH.mjs';
2
- export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-WX2USCZK.mjs';
2
+ export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-YW23L4KK.mjs';
3
3
  export { clearAudienceContent, getAnimationInitialStyle, isAudienceTab, loadAudienceContent, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-XOSQDCHZ.mjs';
4
4
  import '../chunk-YARAQWA4.mjs';
5
5
  import '../chunk-HJQZJ3VE.mjs';
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-react-viewer",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "React PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
Binary file
Binary file