@whereby.com/browser-sdk 3.0.3 → 3.1.0

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.
@@ -68,12 +68,14 @@ interface WherebyEmbedElementEventMap {
68
68
  }>;
69
69
  participant_join: CustomEvent<{
70
70
  participant: {
71
- metadata: string;
71
+ metadata: string | null;
72
+ externalId: string | null;
72
73
  };
73
74
  }>;
74
75
  participant_leave: CustomEvent<{
75
76
  participant: {
76
- metadata: string;
77
+ metadata: string | null;
78
+ externalId: string | null;
77
79
  };
78
80
  }>;
79
81
  meeting_end: CustomEvent;
@@ -122,10 +124,12 @@ interface WherebyEmbedElementCommands {
122
124
  stopRecording: () => void;
123
125
  startStreaming: () => void;
124
126
  stopStreaming: () => void;
127
+ toggleBreakout: (enabled?: boolean) => void;
125
128
  toggleCamera: (enabled?: boolean) => void;
126
129
  toggleMicrophone: (enabled?: boolean) => void;
130
+ togglePeople: (enabled?: boolean) => void;
127
131
  toggleScreenshare: (enabled?: boolean) => void;
128
- toogleChat: (enabled?: boolean) => void;
132
+ toggleChat: (enabled?: boolean) => void;
129
133
  }
130
134
  interface WherebyEmbedElement extends HTMLIFrameElement, WherebyEmbedElementCommands {
131
135
  addEventListener<K extends keyof (WherebyEmbedElementEventMap & HTMLElementEventMap)>(type: K, listener: (this: HTMLIFrameElement, ev: (WherebyEmbedElementEventMap & HTMLElementEventMap)[K]) => void, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -40,7 +40,7 @@ const boolAttrs = [
40
40
  "timer",
41
41
  "toolbarDarkText",
42
42
  "topToolbar",
43
- "video"
43
+ "video",
44
44
  ];
45
45
  define("WherebyEmbed", {
46
46
  oninit() {
@@ -107,12 +107,18 @@ define("WherebyEmbed", {
107
107
  stopStreaming() {
108
108
  this._postCommand("stop_streaming");
109
109
  },
110
+ toggleBreakout(open) {
111
+ this._postCommand("toggle_breakout", [open]);
112
+ },
110
113
  toggleCamera(enabled) {
111
114
  this._postCommand("toggle_camera", [enabled]);
112
115
  },
113
116
  toggleMicrophone(enabled) {
114
117
  this._postCommand("toggle_microphone", [enabled]);
115
118
  },
119
+ togglePeople(enabled) {
120
+ this._postCommand("toggle_people", [enabled]);
121
+ },
116
122
  toggleScreenshare(enabled) {
117
123
  this._postCommand("toggle_screenshare", [enabled]);
118
124
  },
@@ -145,7 +145,7 @@ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloud
145
145
  return state;
146
146
  });
147
147
 
148
- const browserSdkVersion = "3.0.3";
148
+ const browserSdkVersion = "3.1.0";
149
149
 
150
150
  const defaultRoomConnectionOptions = {
151
151
  localMediaOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@reduxjs/toolkit": "^2.2.3",
76
- "@whereby.com/core": "0.16.2",
76
+ "@whereby.com/core": "0.16.3",
77
77
  "heresy": "^1.0.4",
78
78
  "react-redux": "^9.1.1",
79
79
  "runes": "^0.4.3"