@cloudflare/realtimekit-react 1.1.7-staging.3 → 1.1.7-staging.4

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/index.es.js CHANGED
@@ -18944,9 +18944,10 @@ class Ot extends Jn {
18944
18944
  }
18945
18945
  setupSpeaker() {
18946
18946
  return u(this, null, function* () {
18947
- yield a(this, zs).setupSpeaker();
18948
18947
  const { speaker: e } = this.getCurrentDevices();
18949
- e && this.emit("DEVICE_CHANGE", { device: e });
18948
+ yield a(this, zs).setupSpeaker();
18949
+ const { speaker: r } = this.getCurrentDevices();
18950
+ (e == null ? void 0 : e.deviceId) !== (r == null ? void 0 : r.deviceId) && r && this.emit("DEVICE_CHANGE", { device: r });
18950
18951
  });
18951
18952
  }
18952
18953
  setSpeakerDevice(e) {
@@ -30508,7 +30509,7 @@ let ri = (Wg = class {
30508
30509
  video: true
30509
30510
  };
30510
30511
  return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", PC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
30511
- })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
30512
+ })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.4"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
30512
30513
  }
30513
30514
  join() {
30514
30515
  return u(this, null, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit-react",
3
- "version": "1.1.7-staging.3",
3
+ "version": "1.1.7-staging.4",
4
4
  "description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "private": false,
19
19
  "dependencies": {
20
- "@cloudflare/realtimekit": "1.1.7-staging.3"
20
+ "@cloudflare/realtimekit": "1.1.7-staging.4"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=16.8.6"