@whereby.com/browser-sdk 2.0.0-alpha9 → 2.0.0-beta1
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/README.md +77 -26
- package/dist/LocalMedia.d.ts +63 -0
- package/dist/LocalMedia.js +211 -0
- package/dist/RoomConnection.d.ts +184 -0
- package/dist/RoomConnection.js +627 -0
- package/dist/RoomParticipant.d.ts +50 -0
- package/dist/RoomParticipant.js +48 -0
- package/dist/api/ApiClient.d.ts +26 -0
- package/dist/api/ApiClient.js +63 -0
- package/dist/api/Credentials.d.ts +17 -0
- package/dist/api/Credentials.js +16 -0
- package/dist/api/HttpClient.d.ts +16 -0
- package/dist/api/HttpClient.js +53 -0
- package/dist/api/MultipartHttpClient.d.ts +10 -0
- package/dist/api/MultipartHttpClient.js +25 -0
- package/dist/api/OrganizationApiClient.d.ts +16 -0
- package/dist/api/OrganizationApiClient.js +29 -0
- package/dist/api/Response.d.ts +29 -0
- package/dist/api/Response.js +9 -0
- package/dist/api/credentialsService/index.d.ts +27 -0
- package/dist/api/credentialsService/index.js +89 -0
- package/dist/api/deviceService/index.d.ts +9 -0
- package/dist/api/deviceService/index.js +23 -0
- package/dist/api/extractUtils.d.ts +16 -0
- package/dist/api/extractUtils.js +51 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/index.js +7 -0
- package/dist/api/localStorageWrapper/index.d.ts +2 -0
- package/dist/api/localStorageWrapper/index.js +15 -0
- package/dist/api/models/Account.d.ts +20 -0
- package/dist/api/models/Account.js +24 -0
- package/dist/api/models/Meeting.d.ts +12 -0
- package/dist/api/models/Meeting.js +29 -0
- package/dist/api/models/Organization.d.ts +102 -0
- package/dist/api/models/Organization.js +81 -0
- package/dist/api/models/Room.d.ts +4 -0
- package/dist/api/models/Room.js +38 -0
- package/dist/api/models/account/EmbeddedFreeTierStatus.d.ts +13 -0
- package/dist/api/models/account/EmbeddedFreeTierStatus.js +17 -0
- package/dist/api/modules/AbstractStore.d.ts +5 -0
- package/dist/api/modules/AbstractStore.js +1 -0
- package/dist/api/modules/ChromeStorageStore.d.ts +10 -0
- package/dist/api/modules/ChromeStorageStore.js +21 -0
- package/dist/api/modules/LocalStorageStore.d.ts +9 -0
- package/dist/api/modules/LocalStorageStore.js +35 -0
- package/dist/api/modules/tests/__mocks__/storage.d.ts +10 -0
- package/dist/api/modules/tests/__mocks__/storage.js +19 -0
- package/dist/api/organizationService/index.d.ts +46 -0
- package/dist/api/organizationService/index.js +158 -0
- package/dist/api/organizationServiceCache/index.d.ts +13 -0
- package/dist/api/organizationServiceCache/index.js +16 -0
- package/dist/api/parameterAssertUtils.d.ts +13 -0
- package/dist/api/parameterAssertUtils.js +64 -0
- package/dist/api/roomService/index.d.ts +54 -0
- package/dist/api/roomService/index.js +160 -0
- package/dist/api/test/helpers.d.ts +7 -0
- package/dist/api/test/helpers.js +32 -0
- package/dist/api/types.d.ts +5 -0
- package/dist/api/types.js +1 -0
- package/dist/embed/index.d.ts +32 -0
- package/dist/embed/index.js +125 -0
- package/dist/react/VideoView.d.ts +15 -0
- package/dist/react/VideoView.js +37 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +4 -0
- package/dist/react/useLocalMedia.d.ts +28 -0
- package/dist/react/useLocalMedia.js +109 -0
- package/dist/react/useRoomConnection.d.ts +55 -0
- package/dist/react/useRoomConnection.js +315 -0
- package/dist/utils/debounce.d.ts +9 -0
- package/dist/utils/debounce.js +20 -0
- package/dist/utils/fakeAudioStream.d.ts +1 -0
- package/dist/utils/fakeAudioStream.js +18 -0
- package/dist/utils/fakeWebcamFrame.d.ts +1 -0
- package/dist/utils/fakeWebcamFrame.js +49 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/v2-beta1.js +2001 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +97 -81
- package/dist/lib.cjs.js +0 -5868
- package/dist/lib.esm.js +0 -5850
- package/dist/types.d.ts +0 -308
- package/dist/v2-alpha9.js +0 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sdkVersion = "__SDK_VERSION__";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const sdkVersion = "__SDK_VERSION__";
|
package/package.json
CHANGED
|
@@ -1,83 +1,99 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
2
|
+
"name": "@whereby.com/browser-sdk",
|
|
3
|
+
"version": "2.0.0-beta1",
|
|
4
|
+
"description": "Modules for integration Whereby video in web apps",
|
|
5
|
+
"author": "Whereby AS",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/whereby/browser-sdk.git"
|
|
10
|
+
},
|
|
11
|
+
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
12
|
+
"source": "src/index.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
"./react": "./dist/react/index.js",
|
|
15
|
+
"./embed": "./dist/embed/index.js",
|
|
16
|
+
"./utils": "./dist/utils/index.js"
|
|
17
|
+
},
|
|
18
|
+
"typesVersions": {
|
|
19
|
+
"*": {
|
|
20
|
+
"react": ["dist/react/index.d.ts"],
|
|
21
|
+
"embed": ["dist/embed/index.d.ts"],
|
|
22
|
+
"utils": ["dist/utils/index.d.ts"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/**/*.js",
|
|
27
|
+
"dist/**/*.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"prebuild": "rimraf dist",
|
|
31
|
+
"build": "node build.js",
|
|
32
|
+
"postbuild": "tsc --project tsconfig.build.json",
|
|
33
|
+
"build:storybook": "build-storybook",
|
|
34
|
+
"dev": "start-storybook -p 6006",
|
|
35
|
+
"install:e2e-sample-app": "cd test/sample-app && yarn custom_install",
|
|
36
|
+
"start:e2e-sample-app": "cd test/sample-app && yarn start",
|
|
37
|
+
"test": "yarn test:lint && yarn test:unit",
|
|
38
|
+
"test:lint": "eslint src/",
|
|
39
|
+
"test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
40
|
+
"test:unit:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
|
|
41
|
+
"test:e2e": "playwright test",
|
|
42
|
+
"storybook": "start-storybook -p 6006",
|
|
43
|
+
"build-storybook": "build-storybook"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@babel/core": "^7.18.5",
|
|
47
|
+
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
48
|
+
"@playwright/test": "^1.38.1",
|
|
49
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
50
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
51
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
52
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
53
|
+
"@storybook/addon-actions": "^6.5.14",
|
|
54
|
+
"@storybook/addon-essentials": "^6.5.14",
|
|
55
|
+
"@storybook/addon-links": "^6.5.14",
|
|
56
|
+
"@storybook/builder-webpack5": "^6.5.14",
|
|
57
|
+
"@storybook/manager-webpack5": "^6.5.14",
|
|
58
|
+
"@storybook/react": "^6.5.14",
|
|
59
|
+
"@testing-library/react": "^14.0.0",
|
|
60
|
+
"@types/btoa": "^1.2.3",
|
|
61
|
+
"@types/chrome": "^0.0.210",
|
|
62
|
+
"@types/jest": "^29.2.4",
|
|
63
|
+
"@types/node": "^20.7.1",
|
|
64
|
+
"@types/react": "^18.0.26",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
|
66
|
+
"@typescript-eslint/parser": "^5.46.1",
|
|
67
|
+
"babel-loader": "^8.2.5",
|
|
68
|
+
"dotenv": "^16.3.1",
|
|
69
|
+
"dotenv-run-script": "^0.4.1",
|
|
70
|
+
"esbuild": "^0.19.4",
|
|
71
|
+
"esbuild-plugin-replace": "^1.4.0",
|
|
72
|
+
"eslint": "^8.29.0",
|
|
73
|
+
"eslint-plugin-jest": "^26.5.3",
|
|
74
|
+
"jest": "29.4.3",
|
|
75
|
+
"jest-environment-jsdom": "29.4.3",
|
|
76
|
+
"lit-html": "^2.5.0",
|
|
77
|
+
"prettier": "^2.7.1",
|
|
78
|
+
"react": "^18.2.0",
|
|
79
|
+
"react-dom": "^18.2.0",
|
|
80
|
+
"rimraf": "^3.0.2",
|
|
81
|
+
"ts-jest": "29.0.5",
|
|
82
|
+
"tslib": "^2.4.1",
|
|
83
|
+
"typescript": "^4.9.4",
|
|
84
|
+
"yalc": "^1.0.0-pre.53"
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"@swc/helpers": "^0.3.13",
|
|
88
|
+
"@whereby/jslib-media": "whereby/jslib-media.git#1.3.3",
|
|
89
|
+
"assert": "^2.0.0",
|
|
90
|
+
"axios": "^1.2.3",
|
|
91
|
+
"btoa": "^1.2.1",
|
|
92
|
+
"events": "^3.3.0",
|
|
93
|
+
"heresy": "^1.0.4"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"react": "^18.2.0",
|
|
97
|
+
"react-dom": "^18.2.0"
|
|
98
|
+
}
|
|
83
99
|
}
|