@whereby.com/browser-sdk 2.11.0 → 2.12.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.
@@ -12,6 +12,7 @@ interface WherebyEmbedElementAttributes extends ReactHTMLElement<HTMLElement> {
12
12
  bottomToolbar: string;
13
13
  breakout: string;
14
14
  cameraAccess: string;
15
+ cameraEffect: string;
15
16
  chat: string;
16
17
  displayName: string;
17
18
  emptyRoomInvitation: string;
@@ -22,6 +23,7 @@ interface WherebyEmbedElementAttributes extends ReactHTMLElement<HTMLElement> {
22
23
  lang: string;
23
24
  leaveButton: string;
24
25
  locking: string;
26
+ localization: string;
25
27
  logo: string;
26
28
  lowData: string;
27
29
  metadata: string;
@@ -46,6 +48,8 @@ interface WherebyEmbedElementAttributes extends ReactHTMLElement<HTMLElement> {
46
48
  subgridLabels: string;
47
49
  timer: string;
48
50
  title: string;
51
+ toolbarDarkText: string;
52
+ topToolbar: string;
49
53
  video: string;
50
54
  virtualBackgroundUrl: string;
51
55
  }
@@ -112,6 +116,7 @@ interface WherebyEmbedElementEventMap {
112
116
  }>;
113
117
  }
114
118
  interface WherebyEmbedElementCommands {
119
+ endMeeting: () => void;
115
120
  startRecording: () => void;
116
121
  stopRecording: () => void;
117
122
  startStreaming: () => void;
@@ -10,34 +10,37 @@ const boolAttrs = [
10
10
  "autoSpotlight",
11
11
  "background",
12
12
  "bottomToolbar",
13
+ "breakout",
13
14
  "cameraAccess",
14
15
  "chat",
15
- "people",
16
16
  "embed",
17
17
  "emptyRoomInvitation",
18
+ "floatSelf",
18
19
  "help",
19
20
  "leaveButton",
20
- "precallCeremony",
21
- "precallReview",
22
- "screenshare",
23
- "video",
24
- "floatSelf",
25
- "recording",
26
- "logo",
27
21
  "locking",
28
- "precallCeremonyCanSkip",
22
+ "localization",
23
+ "logo",
24
+ "lowData",
25
+ "moreButton",
29
26
  "participantCount",
27
+ "personality",
28
+ "pipButton",
29
+ "precallCeremony",
30
+ "precallCeremonyCanSkip",
30
31
  "precallPermissionsHelpLink",
32
+ "precallReview",
33
+ "people",
34
+ "recording",
35
+ "roomIntegrations",
36
+ "screenshare",
31
37
  "settingsButton",
32
- "pipButton",
33
- "moreButton",
34
- "personality",
35
38
  "skipMediaPermissionPrompt",
36
39
  "subgridLabels",
37
- "lowData",
38
- "breakout",
39
- "roomIntegrations",
40
40
  "timer",
41
+ "toolbarDarkText",
42
+ "topToolbar",
43
+ "video"
41
44
  ];
42
45
  define("WherebyEmbed", {
43
46
  oninit() {
@@ -61,6 +64,7 @@ define("WherebyEmbed", {
61
64
  "avatarUrl",
62
65
  "externalId",
63
66
  "title",
67
+ "cameraEffect",
64
68
  ...boolAttrs,
65
69
  ].map((a) => a.toLowerCase()),
66
70
  onattributechanged({ attributeName, oldValue }) {
@@ -85,6 +89,9 @@ define("WherebyEmbed", {
85
89
  this.iframe.current.contentWindow.postMessage({ command, args }, this.roomUrl.origin);
86
90
  }
87
91
  },
92
+ endMeeting() {
93
+ this._postCommand("end_meeting");
94
+ },
88
95
  startRecording() {
89
96
  this._postCommand("start_recording");
90
97
  },
@@ -116,7 +123,7 @@ define("WherebyEmbed", {
116
123
  this.dispatchEvent(new CustomEvent(type, { detail }));
117
124
  },
118
125
  render() {
119
- const { avatarurl: avatarUrl, displayname: displayName, lang, metadata, externalid: externalId, minimal, room, groups, virtualbackgroundurl: virtualBackgroundUrl, title, } = this;
126
+ const { avatarurl: avatarUrl, displayname: displayName, cameraeffect: cameraEffect, lang, metadata, externalid: externalId, minimal, room, groups, virtualbackgroundurl: virtualBackgroundUrl, title, } = this;
120
127
  let roomUrl, subdomain;
121
128
  try {
122
129
  ({ roomUrl, subdomain } = parseRoomUrlAndSubdomain(room, this.subdomain));
@@ -125,7 +132,7 @@ define("WherebyEmbed", {
125
132
  return this.html `Whereby: ${error instanceof Error ? error.message : "unknown error"}`;
126
133
  }
127
134
  this.roomUrl = roomUrl;
128
- Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ jsApi: true, we: "1", iframeSource: subdomain }, (displayName && { displayName })), (lang && { lang: lang })), (metadata && { metadata: metadata })), (externalId && { externalId })), (groups && { groups: groups })), (virtualBackgroundUrl && { virtualBackgroundUrl: virtualBackgroundUrl })), (avatarUrl && { avatarUrl: avatarUrl })), (minimal != null && { embed: minimal })), boolAttrs.reduce((o, v) => (this[v.toLowerCase()] != null ? Object.assign(Object.assign({}, o), { [v]: this[v.toLowerCase()] }) : o), {}))).forEach(([k, v]) => {
135
+ Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ jsApi: true, we: "1", iframeSource: subdomain }, (displayName && { displayName })), (lang && { lang: lang })), (metadata && { metadata: metadata })), (externalId && { externalId })), (groups && { groups: groups })), (virtualBackgroundUrl && { virtualBackgroundUrl: virtualBackgroundUrl })), (avatarUrl && { avatarUrl: avatarUrl })), (cameraEffect && { cameraEffect: cameraEffect })), (minimal != null && { embed: minimal })), boolAttrs.reduce((o, v) => (this[v.toLowerCase()] != null ? Object.assign(Object.assign({}, o), { [v]: this[v.toLowerCase()] }) : o), {}))).forEach(([k, v]) => {
129
136
  if (!this.roomUrl.searchParams.has(k)) {
130
137
  this.roomUrl.searchParams.set(k, v);
131
138
  }
@@ -99,7 +99,7 @@ const selectRoomConnectionState = createSelector(selectChatMessages, selectCloud
99
99
  return state;
100
100
  });
101
101
 
102
- const browserSdkVersion = "2.11.0";
102
+ const browserSdkVersion = "2.12.0";
103
103
 
104
104
  const initialState$1 = {
105
105
  chatMessages: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Modules for integration Whereby video in web apps",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",