@whereby.com/browser-sdk 2.0.0-alpha22 → 2.0.0-alpha23
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/lib.cjs +9 -2
- package/dist/lib.esm.js +9 -2
- package/dist/types.d.ts +1 -1
- package/dist/{v2-alpha22.js → v2-alpha23.js} +9 -9
- package/package.json +1 -1
package/dist/lib.cjs
CHANGED
|
@@ -136,7 +136,7 @@ heresy.define("WherebyEmbed", {
|
|
|
136
136
|
if (roomUrl.searchParams.get("roomKey")) {
|
|
137
137
|
this.url.searchParams.append("roomKey", roomUrl.searchParams.get("roomKey"));
|
|
138
138
|
}
|
|
139
|
-
Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ jsApi: true, we: "2.0.0-
|
|
139
|
+
Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ jsApi: true, we: "2.0.0-alpha23", iframeSource: subdomain }, (displayName && { displayName })), (lang && { lang })), (metadata && { metadata })), (groups && { groups })), (virtualBackgroundUrl && { virtualBackgroundUrl })), (avatarUrl && { avatarUrl })), (minimal != null && { embed: minimal })), boolAttrs.reduce(
|
|
140
140
|
// add to URL if set in any way
|
|
141
141
|
(o, v) => (this[v.toLowerCase()] != null ? Object.assign(Object.assign({}, o), { [v]: this[v.toLowerCase()] }) : o), {}))).forEach(([k, v]) => {
|
|
142
142
|
if (!this.url.searchParams.has(k) && typeof v === "string") {
|
|
@@ -6119,6 +6119,13 @@ function useRoomConnection(roomUrl, roomConnectionOptions) {
|
|
|
6119
6119
|
payload: { participantId, displayName },
|
|
6120
6120
|
});
|
|
6121
6121
|
}),
|
|
6122
|
+
createEventListener("waiting_participant_left", (e) => {
|
|
6123
|
+
const { participantId } = e.detail;
|
|
6124
|
+
dispatch({
|
|
6125
|
+
type: "WAITING_PARTICIPANT_LEFT",
|
|
6126
|
+
payload: { participantId },
|
|
6127
|
+
});
|
|
6128
|
+
}),
|
|
6122
6129
|
], []);
|
|
6123
6130
|
React.useEffect(() => {
|
|
6124
6131
|
eventListeners.forEach(({ eventName, listener }) => {
|
|
@@ -6185,7 +6192,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions) {
|
|
|
6185
6192
|
};
|
|
6186
6193
|
}
|
|
6187
6194
|
|
|
6188
|
-
const sdkVersion = "2.0.0-
|
|
6195
|
+
const sdkVersion = "2.0.0-alpha23";
|
|
6189
6196
|
|
|
6190
6197
|
exports.VideoView = VideoView;
|
|
6191
6198
|
exports.sdkVersion = sdkVersion;
|
package/dist/lib.esm.js
CHANGED
|
@@ -121,7 +121,7 @@ define("WherebyEmbed", {
|
|
|
121
121
|
if (roomUrl.searchParams.get("roomKey")) {
|
|
122
122
|
this.url.searchParams.append("roomKey", roomUrl.searchParams.get("roomKey"));
|
|
123
123
|
}
|
|
124
|
-
Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ jsApi: true, we: "2.0.0-
|
|
124
|
+
Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ jsApi: true, we: "2.0.0-alpha23", iframeSource: subdomain }, (displayName && { displayName })), (lang && { lang })), (metadata && { metadata })), (groups && { groups })), (virtualBackgroundUrl && { virtualBackgroundUrl })), (avatarUrl && { avatarUrl })), (minimal != null && { embed: minimal })), boolAttrs.reduce(
|
|
125
125
|
// add to URL if set in any way
|
|
126
126
|
(o, v) => (this[v.toLowerCase()] != null ? Object.assign(Object.assign({}, o), { [v]: this[v.toLowerCase()] }) : o), {}))).forEach(([k, v]) => {
|
|
127
127
|
if (!this.url.searchParams.has(k) && typeof v === "string") {
|
|
@@ -6104,6 +6104,13 @@ function useRoomConnection(roomUrl, roomConnectionOptions) {
|
|
|
6104
6104
|
payload: { participantId, displayName },
|
|
6105
6105
|
});
|
|
6106
6106
|
}),
|
|
6107
|
+
createEventListener("waiting_participant_left", (e) => {
|
|
6108
|
+
const { participantId } = e.detail;
|
|
6109
|
+
dispatch({
|
|
6110
|
+
type: "WAITING_PARTICIPANT_LEFT",
|
|
6111
|
+
payload: { participantId },
|
|
6112
|
+
});
|
|
6113
|
+
}),
|
|
6107
6114
|
], []);
|
|
6108
6115
|
useEffect(() => {
|
|
6109
6116
|
eventListeners.forEach(({ eventName, listener }) => {
|
|
@@ -6170,6 +6177,6 @@ function useRoomConnection(roomUrl, roomConnectionOptions) {
|
|
|
6170
6177
|
};
|
|
6171
6178
|
}
|
|
6172
6179
|
|
|
6173
|
-
const sdkVersion = "2.0.0-
|
|
6180
|
+
const sdkVersion = "2.0.0-alpha23";
|
|
6174
6181
|
|
|
6175
6182
|
export { VideoView, sdkVersion, useLocalMedia, useRoomConnection };
|
package/dist/types.d.ts
CHANGED
|
@@ -377,6 +377,6 @@ type RoomConnectionRef = {
|
|
|
377
377
|
};
|
|
378
378
|
declare function useRoomConnection(roomUrl: string, roomConnectionOptions: UseRoomConnectionOptions): RoomConnectionRef;
|
|
379
379
|
|
|
380
|
-
declare const sdkVersion = "2.0.0-
|
|
380
|
+
declare const sdkVersion = "2.0.0-alpha23";
|
|
381
381
|
|
|
382
382
|
export { _default as VideoView, sdkVersion, useLocalMedia, useRoomConnection };
|