@whereby.com/browser-sdk 3.14.0 → 3.14.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 +1 -1
- package/dist/react/index.cjs +3 -3
- package/dist/react/index.esm.js +3 -3
- package/package.json +3 -3
package/dist/react/index.cjs
CHANGED
|
@@ -71,10 +71,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const useAudioElement = ({ stream, muted }) => {
|
|
74
|
-
var _a;
|
|
74
|
+
var _a, _b;
|
|
75
75
|
const audioEl = React__namespace.useRef(null);
|
|
76
76
|
const client = (_a = React__namespace.useContext(WherebyContext)) === null || _a === void 0 ? void 0 : _a.getLocalMedia();
|
|
77
|
-
const [currentSpeakerId, setCurrentSpeakerId] = React__namespace.useState();
|
|
77
|
+
const [currentSpeakerId, setCurrentSpeakerId] = React__namespace.useState((_b = client === null || client === void 0 ? void 0 : client.getState().currentSpeakerDeviceId) !== null && _b !== void 0 ? _b : "default");
|
|
78
78
|
const listener = React__namespace.useCallback((speakerId) => {
|
|
79
79
|
setCurrentSpeakerId(speakerId);
|
|
80
80
|
}, []);
|
|
@@ -159,7 +159,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
|
|
|
159
159
|
});
|
|
160
160
|
VideoView.displayName = "VideoView";
|
|
161
161
|
|
|
162
|
-
const browserSdkVersion = "3.14.
|
|
162
|
+
const browserSdkVersion = "3.14.2";
|
|
163
163
|
|
|
164
164
|
const initialState$1 = {
|
|
165
165
|
chatMessages: [],
|
package/dist/react/index.esm.js
CHANGED
|
@@ -49,10 +49,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
const useAudioElement = ({ stream, muted }) => {
|
|
52
|
-
var _a;
|
|
52
|
+
var _a, _b;
|
|
53
53
|
const audioEl = React.useRef(null);
|
|
54
54
|
const client = (_a = React.useContext(WherebyContext)) === null || _a === void 0 ? void 0 : _a.getLocalMedia();
|
|
55
|
-
const [currentSpeakerId, setCurrentSpeakerId] = React.useState();
|
|
55
|
+
const [currentSpeakerId, setCurrentSpeakerId] = React.useState((_b = client === null || client === void 0 ? void 0 : client.getState().currentSpeakerDeviceId) !== null && _b !== void 0 ? _b : "default");
|
|
56
56
|
const listener = React.useCallback((speakerId) => {
|
|
57
57
|
setCurrentSpeakerId(speakerId);
|
|
58
58
|
}, []);
|
|
@@ -137,7 +137,7 @@ const VideoView = React.forwardRef((_a, ref) => {
|
|
|
137
137
|
});
|
|
138
138
|
VideoView.displayName = "VideoView";
|
|
139
139
|
|
|
140
|
-
const browserSdkVersion = "3.14.
|
|
140
|
+
const browserSdkVersion = "3.14.2";
|
|
141
141
|
|
|
142
142
|
const initialState$1 = {
|
|
143
143
|
chatMessages: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whereby.com/browser-sdk",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.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/prettier-config": "0.1.0",
|
|
71
70
|
"@whereby.com/rollup-config": "0.1.0",
|
|
71
|
+
"@whereby.com/prettier-config": "0.1.0",
|
|
72
72
|
"@whereby.com/tsconfig": "0.1.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@radix-ui/react-popover": "^1.0.7",
|
|
76
76
|
"@whereby.com/media": "2.2.0",
|
|
77
|
-
"@whereby.com/core": "1.2.
|
|
77
|
+
"@whereby.com/core": "1.2.1",
|
|
78
78
|
"clsx": "^2.1.1",
|
|
79
79
|
"heresy": "^1.0.4",
|
|
80
80
|
"runes": "^0.4.3"
|