@whereby.com/browser-sdk 3.34.0 → 3.34.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.
@@ -172,7 +172,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
172
172
  });
173
173
  VideoView.displayName = "VideoView";
174
174
 
175
- const browserSdkVersion = "3.34.0";
175
+ const browserSdkVersion = "3.34.1";
176
176
 
177
177
  const initialState$1 = {
178
178
  chatMessages: [],
@@ -2102,11 +2102,16 @@ function calculateSubgridViews({ clientViews, activeVideosSubgridTrigger, should
2102
2102
  return [];
2103
2103
  }
2104
2104
  const hasSpotlights = spotlightedParticipants.length > 0;
2105
- const hasPresentationStage = hasSpotlights || hasStagedIntegration;
2105
+ const hasMaximized = !!maximizedCellId && clientViews.some((client) => client.id === maximizedCellId);
2106
+ const hasPresentationStage = hasSpotlights || hasStagedIntegration || hasMaximized;
2106
2107
  const notMaximized = maximizedCellId ? clientViews.filter((client) => client.id !== maximizedCellId) : clientViews;
2107
2108
  const notSpotlighted = notMaximized.filter((client) => !client.isPresentation && !spotlightedParticipants.includes(client));
2108
2109
  const noVideoViews = notSpotlighted.filter((client) => !client.isVideoEnabled);
2109
2110
  const videoLimitReached = notSpotlighted.filter((client) => client.isVideoEnabled).length > activeVideosSubgridTrigger;
2111
+ if (isPhoneResolution && hasPresentationStage) {
2112
+ const offStage = hasSpotlights && !hasStagedIntegration && !hasMaximized ? notSpotlighted : notMaximized;
2113
+ return [...offStage.filter((client) => !noVideoViews.includes(client)), ...noVideoViews];
2114
+ }
2110
2115
  const unmutedVideos = notSpotlighted.filter((client) => !noVideoViews.includes(client) && client.isAudioEnabled);
2111
2116
  const mutedVideos = notSpotlighted.filter((client) => !noVideoViews.includes(client) && !client.isAudioEnabled);
2112
2117
  if (noVideoViews.length && hasPresentationStage) {
@@ -151,7 +151,7 @@ const VideoView = React.forwardRef((_a, ref) => {
151
151
  });
152
152
  VideoView.displayName = "VideoView";
153
153
 
154
- const browserSdkVersion = "3.34.0";
154
+ const browserSdkVersion = "3.34.1";
155
155
 
156
156
  const initialState$1 = {
157
157
  chatMessages: [],
@@ -2081,11 +2081,16 @@ function calculateSubgridViews({ clientViews, activeVideosSubgridTrigger, should
2081
2081
  return [];
2082
2082
  }
2083
2083
  const hasSpotlights = spotlightedParticipants.length > 0;
2084
- const hasPresentationStage = hasSpotlights || hasStagedIntegration;
2084
+ const hasMaximized = !!maximizedCellId && clientViews.some((client) => client.id === maximizedCellId);
2085
+ const hasPresentationStage = hasSpotlights || hasStagedIntegration || hasMaximized;
2085
2086
  const notMaximized = maximizedCellId ? clientViews.filter((client) => client.id !== maximizedCellId) : clientViews;
2086
2087
  const notSpotlighted = notMaximized.filter((client) => !client.isPresentation && !spotlightedParticipants.includes(client));
2087
2088
  const noVideoViews = notSpotlighted.filter((client) => !client.isVideoEnabled);
2088
2089
  const videoLimitReached = notSpotlighted.filter((client) => client.isVideoEnabled).length > activeVideosSubgridTrigger;
2090
+ if (isPhoneResolution && hasPresentationStage) {
2091
+ const offStage = hasSpotlights && !hasStagedIntegration && !hasMaximized ? notSpotlighted : notMaximized;
2092
+ return [...offStage.filter((client) => !noVideoViews.includes(client)), ...noVideoViews];
2093
+ }
2089
2094
  const unmutedVideos = notSpotlighted.filter((client) => !noVideoViews.includes(client) && client.isAudioEnabled);
2090
2095
  const mutedVideos = notSpotlighted.filter((client) => !noVideoViews.includes(client) && !client.isAudioEnabled);
2091
2096
  if (noVideoViews.length && hasPresentationStage) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.34.0",
3
+ "version": "3.34.1",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -67,8 +67,8 @@
67
67
  "@storybook/addon-docs": "^9.0.16",
68
68
  "@whereby.com/eslint-config": "0.1.0",
69
69
  "@whereby.com/jest-config": "0.1.0",
70
- "@whereby.com/tsconfig": "0.1.0",
71
70
  "@whereby.com/prettier-config": "0.1.0",
71
+ "@whereby.com/tsconfig": "0.1.0",
72
72
  "@whereby.com/rollup-config": "0.1.1"
73
73
  },
74
74
  "dependencies": {