@whereby.com/browser-sdk 3.5.0 → 3.6.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.
@@ -1,5 +1,6 @@
1
1
  import { ReactHTMLElement } from 'react';
2
2
 
3
+ type SettingsPane = "theme" | "integrations" | "streaming" | "effects" | "notifications" | "advanced" | "media" | null;
3
4
  interface WherebyEmbedElementAttributes extends ReactHTMLElement<HTMLElement> {
4
5
  aec: string;
5
6
  agc: string;
@@ -125,7 +126,9 @@ interface WherebyEmbedElementEventMap {
125
126
  }
126
127
  interface WherebyEmbedElementCommands {
127
128
  endMeeting: () => void;
129
+ knock: () => void;
128
130
  leaveRoom: () => void;
131
+ openSettings: (settingsPane?: SettingsPane) => void;
129
132
  startRecording: () => void;
130
133
  stopRecording: () => void;
131
134
  startStreaming: () => void;
@@ -95,9 +95,15 @@ define("WherebyEmbed", {
95
95
  endMeeting() {
96
96
  this._postCommand("end_meeting");
97
97
  },
98
+ knock() {
99
+ this._postCommand("knock");
100
+ },
98
101
  leaveRoom() {
99
102
  this._postCommand("leave_room");
100
103
  },
104
+ openSettings(settingsPane = "media") {
105
+ this._postCommand("open_settings", [settingsPane]);
106
+ },
101
107
  startRecording() {
102
108
  this._postCommand("start_recording");
103
109
  },
@@ -146,7 +146,7 @@ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloud
146
146
  return state;
147
147
  });
148
148
 
149
- const browserSdkVersion = "3.5.0";
149
+ const browserSdkVersion = "3.6.0";
150
150
 
151
151
  const defaultRoomConnectionOptions = {
152
152
  localMediaOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -78,7 +78,7 @@
78
78
  "dependencies": {
79
79
  "@radix-ui/react-popover": "^1.0.7",
80
80
  "@reduxjs/toolkit": "^2.2.3",
81
- "@whereby.com/core": "0.23.0",
81
+ "@whereby.com/core": "0.23.1",
82
82
  "clsx": "^2.1.1",
83
83
  "heresy": "^1.0.4",
84
84
  "react-redux": "^9.1.1",