@whereby.com/browser-sdk 3.20.19 → 3.21.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.
@@ -172,7 +172,7 @@ const VideoView = React__namespace.forwardRef((_a, ref) => {
172
172
  });
173
173
  VideoView.displayName = "VideoView";
174
174
 
175
- const browserSdkVersion = "3.20.19";
175
+ const browserSdkVersion = "3.21.0";
176
176
 
177
177
  const initialState$1 = {
178
178
  chatMessages: [],
@@ -235,7 +235,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
235
235
  client.initialize(roomConfig);
236
236
  return client.joinRoom();
237
237
  }, [client]);
238
- const sendChatMessage = React__namespace.useCallback((text) => client.sendChatMessage(text), [client]);
238
+ const sendChatMessage = React__namespace.useCallback((text, parentId) => client.sendChatMessage(text, parentId), [client]);
239
+ const removeChatMessage = React__namespace.useCallback((id, sig) => client.removeChatMessage(id, sig), [client]);
239
240
  const knock = React__namespace.useCallback(() => client.knock(), [client]);
240
241
  const cancelKnock = React__namespace.useCallback(() => client.cancelKnock(), [client]);
241
242
  const setDisplayName = React__namespace.useCallback((displayName) => client.setDisplayName(displayName), [client]);
@@ -293,6 +294,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
293
294
  endMeeting,
294
295
  rejectWaitingParticipant,
295
296
  sendChatMessage,
297
+ removeChatMessage,
296
298
  setDisplayName,
297
299
  startCloudRecording,
298
300
  startLiveTranscription,
@@ -71,7 +71,8 @@ interface RoomConnectionActions {
71
71
  kickParticipant: (clientId: string) => void;
72
72
  endMeeting: (stayBehind?: boolean) => void;
73
73
  rejectWaitingParticipant: (participantId: string) => void;
74
- sendChatMessage: (text: string) => void;
74
+ sendChatMessage: (text: string, parentId?: string) => void;
75
+ removeChatMessage: (id: string, sig?: string | null) => void;
75
76
  setDisplayName: (displayName: string) => void;
76
77
  startCloudRecording: () => void;
77
78
  startLiveTranscription: () => void;
@@ -150,7 +150,7 @@ const VideoView = React.forwardRef((_a, ref) => {
150
150
  });
151
151
  VideoView.displayName = "VideoView";
152
152
 
153
- const browserSdkVersion = "3.20.19";
153
+ const browserSdkVersion = "3.21.0";
154
154
 
155
155
  const initialState$1 = {
156
156
  chatMessages: [],
@@ -213,7 +213,8 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
213
213
  client.initialize(roomConfig);
214
214
  return client.joinRoom();
215
215
  }, [client]);
216
- const sendChatMessage = React.useCallback((text) => client.sendChatMessage(text), [client]);
216
+ const sendChatMessage = React.useCallback((text, parentId) => client.sendChatMessage(text, parentId), [client]);
217
+ const removeChatMessage = React.useCallback((id, sig) => client.removeChatMessage(id, sig), [client]);
217
218
  const knock = React.useCallback(() => client.knock(), [client]);
218
219
  const cancelKnock = React.useCallback(() => client.cancelKnock(), [client]);
219
220
  const setDisplayName = React.useCallback((displayName) => client.setDisplayName(displayName), [client]);
@@ -271,6 +272,7 @@ function useRoomConnection(roomUrl, roomConnectionOptions = defaultRoomConnectio
271
272
  endMeeting,
272
273
  rejectWaitingParticipant,
273
274
  sendChatMessage,
275
+ removeChatMessage,
274
276
  setDisplayName,
275
277
  startCloudRecording,
276
278
  startLiveTranscription,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "3.20.19",
3
+ "version": "3.21.0",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -66,16 +66,16 @@
66
66
  "eslint-plugin-storybook": "9.0.16",
67
67
  "@storybook/addon-docs": "^9.0.16",
68
68
  "@whereby.com/camera-effects": "1.1.1",
69
+ "@whereby.com/eslint-config": "0.1.0",
70
+ "@whereby.com/jest-config": "0.1.0",
69
71
  "@whereby.com/prettier-config": "0.1.0",
70
72
  "@whereby.com/rollup-config": "0.1.1",
71
- "@whereby.com/jest-config": "0.1.0",
72
- "@whereby.com/tsconfig": "0.1.0",
73
- "@whereby.com/eslint-config": "0.1.0"
73
+ "@whereby.com/tsconfig": "0.1.0"
74
74
  },
75
75
  "dependencies": {
76
76
  "@radix-ui/react-popover": "^1.0.7",
77
- "@whereby.com/media": "9.1.1",
78
- "@whereby.com/core": "1.10.19",
77
+ "@whereby.com/media": "9.2.0",
78
+ "@whereby.com/core": "1.11.0",
79
79
  "clsx": "^2.1.1",
80
80
  "heresy": "^1.0.4",
81
81
  "runes": "^0.4.3"