@whereby.com/browser-sdk 1.7.1 → 1.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whereby.com/browser-sdk",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "Configurable web component for embedding Whereby video rooms in web applications",
5
5
  "author": "Whereby AS",
6
6
  "license": "MIT",
@@ -7,6 +7,7 @@ export default {
7
7
  audio: { control: "boolean" },
8
8
  avatarUrl: { control: "text", description: "Image url to use for avatar" },
9
9
  background: { control: "boolean" },
10
+ cameraAccess: { control: "boolean" },
10
11
  chat: { control: "boolean" },
11
12
  displayName: { control: "text", description: "The name to use for the local participant" },
12
13
  embed: { control: "boolean" },
@@ -33,6 +34,7 @@ const WherebyEmbed = ({
33
34
  audio,
34
35
  avatarUrl,
35
36
  background,
37
+ cameraAccess,
36
38
  chat,
37
39
  displayName,
38
40
  emptyRoomInvitation,
@@ -52,6 +54,7 @@ const WherebyEmbed = ({
52
54
  audio=${offOn(audio)}
53
55
  avatarUrl=${avatarUrl}
54
56
  background=${offOn(background)}
57
+ cameraAccess=${offOn(cameraAccess)}
55
58
  chat=${offOn(chat)}
56
59
  displayName=${displayName}
57
60
  emptyRoomInvitation=${emptyRoomInvitation}
@@ -77,6 +80,7 @@ Primary.args = {
77
80
  audio: true,
78
81
  avatarUrl: "",
79
82
  background: true,
83
+ cameraAccess: true,
80
84
  chat: true,
81
85
  displayName: "Your name",
82
86
  emptyRoomInvitation: true,
@@ -22,6 +22,7 @@ describe("@whereby/browser-sdk", () => {
22
22
 
23
23
  it("should expose attributes", async () => {
24
24
  await import("..");
25
+
25
26
  expect(define).toBeCalledWith(
26
27
  expect.any(String),
27
28
  expect.objectContaining({
@@ -37,6 +38,7 @@ describe("@whereby/browser-sdk", () => {
37
38
  "avatarurl",
38
39
  "audio",
39
40
  "background",
41
+ "cameraaccess",
40
42
  "chat",
41
43
  "people",
42
44
  "embed",
package/src/lib/index.js CHANGED
@@ -3,6 +3,7 @@ import { define, ref } from "heresy";
3
3
  const boolAttrs = [
4
4
  "audio",
5
5
  "background",
6
+ "cameraAccess",
6
7
  "chat",
7
8
  "people",
8
9
  "embed",