@cloudflare/realtimekit-react 1.0.2-staging.1 → 1.0.2-staging.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/index.es.js CHANGED
@@ -21842,7 +21842,7 @@ const Kc = (fm = class {
21842
21842
  );
21843
21843
  this.updateParticipantsMap(
21844
21844
  a(this, qn),
21845
- this.participants.videoSubscribed.toArray().map(({ id: h }) => h)
21845
+ this.participants.videoSubscribed.toArray().filter(({ videoEnabled: h }) => !!h).map(({ id: h }) => h)
21846
21846
  );
21847
21847
  const [e, r] = Kc.mapDiff(
21848
21848
  a(this, jn),
@@ -21850,7 +21850,7 @@ const Kc = (fm = class {
21850
21850
  );
21851
21851
  this.updateParticipantsMap(
21852
21852
  a(this, jn),
21853
- this.participants.audioSubscribed.toArray().map(({ id: h }) => h)
21853
+ this.participants.audioSubscribed.toArray().filter(({ audioEnabled: h }) => !!h).map(({ id: h }) => h)
21854
21854
  );
21855
21855
  const i = [
21856
21856
  ...this.mapPeerIdsToProducers(s, ["video"]),
@@ -21917,7 +21917,7 @@ const Kc = (fm = class {
21917
21917
  producingPeerId: s,
21918
21918
  mimeType: i.mimeType
21919
21919
  }));
21920
- }), this.roomNodeClient.handlePeerCapabilities(s, e), z.hasFeature(re.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), r.producers.length > 0 && k.emit(I.UPDATE_ACTIVE);
21920
+ }), this.roomNodeClient.handlePeerCapabilities(s, e), z.hasFeature(re.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), k.emit(I.UPDATE_ACTIVE);
21921
21921
  }
21922
21922
  updateParticipantsMapMinReplacement(s, t) {
21923
21923
  const e = Array.from(s.keys()), r = new Map(s), i = new Set(t), n = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit-react",
3
- "version": "1.0.2-staging.1",
3
+ "version": "1.0.2-staging.2",
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": "0.0.2-staging.1"
20
+ "@cloudflare/realtimekit": "0.0.2-staging.2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=16.8.6"