@whereby.com/browser-sdk 3.34.0 → 3.34.2
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/dist/cdn/v3-react.js +2 -2
- package/dist/react/index.cjs +7 -2
- package/dist/react/index.esm.js +7 -2
- package/package.json +5 -5
package/dist/react/index.cjs
CHANGED
|
@@ -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.
|
|
175
|
+
const browserSdkVersion = "3.34.2";
|
|
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
|
|
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) {
|
package/dist/react/index.esm.js
CHANGED
|
@@ -151,7 +151,7 @@ const VideoView = React.forwardRef((_a, ref) => {
|
|
|
151
151
|
});
|
|
152
152
|
VideoView.displayName = "VideoView";
|
|
153
153
|
|
|
154
|
-
const browserSdkVersion = "3.34.
|
|
154
|
+
const browserSdkVersion = "3.34.2";
|
|
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
|
|
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.
|
|
3
|
+
"version": "3.34.2",
|
|
4
4
|
"description": "Modules for integration Whereby video in web apps",
|
|
5
5
|
"author": "Whereby AS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,14 +67,14 @@
|
|
|
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",
|
|
72
|
-
"@whereby.com/rollup-config": "0.1.1"
|
|
71
|
+
"@whereby.com/rollup-config": "0.1.1",
|
|
72
|
+
"@whereby.com/tsconfig": "0.1.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@radix-ui/react-popover": "^1.0.7",
|
|
76
|
-
"@whereby.com/media": "11.
|
|
77
|
-
"@whereby.com/core": "1.
|
|
76
|
+
"@whereby.com/media": "11.3.0",
|
|
77
|
+
"@whereby.com/core": "1.24.0",
|
|
78
78
|
"clsx": "^2.1.1",
|
|
79
79
|
"heresy": "^1.0.4",
|
|
80
80
|
"runes": "^0.4.3"
|