@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.
Files changed (85) hide show
  1. package/README.md +77 -26
  2. package/dist/LocalMedia.d.ts +63 -0
  3. package/dist/LocalMedia.js +211 -0
  4. package/dist/RoomConnection.d.ts +184 -0
  5. package/dist/RoomConnection.js +627 -0
  6. package/dist/RoomParticipant.d.ts +50 -0
  7. package/dist/RoomParticipant.js +48 -0
  8. package/dist/api/ApiClient.d.ts +26 -0
  9. package/dist/api/ApiClient.js +63 -0
  10. package/dist/api/Credentials.d.ts +17 -0
  11. package/dist/api/Credentials.js +16 -0
  12. package/dist/api/HttpClient.d.ts +16 -0
  13. package/dist/api/HttpClient.js +53 -0
  14. package/dist/api/MultipartHttpClient.d.ts +10 -0
  15. package/dist/api/MultipartHttpClient.js +25 -0
  16. package/dist/api/OrganizationApiClient.d.ts +16 -0
  17. package/dist/api/OrganizationApiClient.js +29 -0
  18. package/dist/api/Response.d.ts +29 -0
  19. package/dist/api/Response.js +9 -0
  20. package/dist/api/credentialsService/index.d.ts +27 -0
  21. package/dist/api/credentialsService/index.js +89 -0
  22. package/dist/api/deviceService/index.d.ts +9 -0
  23. package/dist/api/deviceService/index.js +23 -0
  24. package/dist/api/extractUtils.d.ts +16 -0
  25. package/dist/api/extractUtils.js +51 -0
  26. package/dist/api/index.d.ts +7 -0
  27. package/dist/api/index.js +7 -0
  28. package/dist/api/localStorageWrapper/index.d.ts +2 -0
  29. package/dist/api/localStorageWrapper/index.js +15 -0
  30. package/dist/api/models/Account.d.ts +20 -0
  31. package/dist/api/models/Account.js +24 -0
  32. package/dist/api/models/Meeting.d.ts +12 -0
  33. package/dist/api/models/Meeting.js +29 -0
  34. package/dist/api/models/Organization.d.ts +102 -0
  35. package/dist/api/models/Organization.js +81 -0
  36. package/dist/api/models/Room.d.ts +4 -0
  37. package/dist/api/models/Room.js +38 -0
  38. package/dist/api/models/account/EmbeddedFreeTierStatus.d.ts +13 -0
  39. package/dist/api/models/account/EmbeddedFreeTierStatus.js +17 -0
  40. package/dist/api/modules/AbstractStore.d.ts +5 -0
  41. package/dist/api/modules/AbstractStore.js +1 -0
  42. package/dist/api/modules/ChromeStorageStore.d.ts +10 -0
  43. package/dist/api/modules/ChromeStorageStore.js +21 -0
  44. package/dist/api/modules/LocalStorageStore.d.ts +9 -0
  45. package/dist/api/modules/LocalStorageStore.js +35 -0
  46. package/dist/api/modules/tests/__mocks__/storage.d.ts +10 -0
  47. package/dist/api/modules/tests/__mocks__/storage.js +19 -0
  48. package/dist/api/organizationService/index.d.ts +46 -0
  49. package/dist/api/organizationService/index.js +158 -0
  50. package/dist/api/organizationServiceCache/index.d.ts +13 -0
  51. package/dist/api/organizationServiceCache/index.js +16 -0
  52. package/dist/api/parameterAssertUtils.d.ts +13 -0
  53. package/dist/api/parameterAssertUtils.js +64 -0
  54. package/dist/api/roomService/index.d.ts +54 -0
  55. package/dist/api/roomService/index.js +160 -0
  56. package/dist/api/test/helpers.d.ts +7 -0
  57. package/dist/api/test/helpers.js +32 -0
  58. package/dist/api/types.d.ts +5 -0
  59. package/dist/api/types.js +1 -0
  60. package/dist/embed/index.d.ts +32 -0
  61. package/dist/embed/index.js +125 -0
  62. package/dist/react/VideoView.d.ts +15 -0
  63. package/dist/react/VideoView.js +37 -0
  64. package/dist/react/index.d.ts +6 -0
  65. package/dist/react/index.js +4 -0
  66. package/dist/react/useLocalMedia.d.ts +28 -0
  67. package/dist/react/useLocalMedia.js +109 -0
  68. package/dist/react/useRoomConnection.d.ts +55 -0
  69. package/dist/react/useRoomConnection.js +315 -0
  70. package/dist/utils/debounce.d.ts +9 -0
  71. package/dist/utils/debounce.js +20 -0
  72. package/dist/utils/fakeAudioStream.d.ts +1 -0
  73. package/dist/utils/fakeAudioStream.js +18 -0
  74. package/dist/utils/fakeWebcamFrame.d.ts +1 -0
  75. package/dist/utils/fakeWebcamFrame.js +49 -0
  76. package/dist/utils/index.d.ts +2 -0
  77. package/dist/utils/index.js +2 -0
  78. package/dist/v2-beta1.js +2001 -0
  79. package/dist/version.d.ts +1 -0
  80. package/dist/version.js +1 -0
  81. package/package.json +97 -81
  82. package/dist/lib.cjs.js +0 -5868
  83. package/dist/lib.esm.js +0 -5850
  84. package/dist/types.d.ts +0 -308
  85. package/dist/v2-alpha9.js +0 -43
@@ -0,0 +1 @@
1
+ export declare const sdkVersion = "__SDK_VERSION__";
@@ -0,0 +1 @@
1
+ export const sdkVersion = "__SDK_VERSION__";
package/package.json CHANGED
@@ -1,83 +1,99 @@
1
1
  {
2
- "name": "@whereby.com/browser-sdk",
3
- "version": "2.0.0-alpha9",
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
- "main": "dist/lib.cjs.js",
14
- "module": "dist/lib.esm.js",
15
- "type": "module",
16
- "files": [
17
- "dist/**/*.js",
18
- "dist/*.d.ts"
19
- ],
20
- "types": "dist/types.d.ts",
21
- "scripts": {
22
- "prebuild": "rimraf dist",
23
- "build": "rollup -c",
24
- "build:storybook": "build-storybook",
25
- "dev": "start-storybook -p 6006",
26
- "test": "yarn test:lint && yarn test:unit",
27
- "test:lint": "eslint src/",
28
- "test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
29
- "test:unit:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
30
- "storybook": "start-storybook -p 6006",
31
- "build-storybook": "build-storybook"
32
- },
33
- "devDependencies": {
34
- "@babel/core": "^7.18.5",
35
- "@babel/plugin-proposal-optional-chaining": "^7.18.9",
36
- "@rollup/plugin-commonjs": "^24.0.0",
37
- "@rollup/plugin-json": "^6.0.0",
38
- "@rollup/plugin-node-resolve": "^13.3.0",
39
- "@rollup/plugin-replace": "^4.0.0",
40
- "@storybook/addon-actions": "^6.5.14",
41
- "@storybook/addon-essentials": "^6.5.14",
42
- "@storybook/addon-links": "^6.5.14",
43
- "@storybook/builder-webpack5": "^6.5.14",
44
- "@storybook/manager-webpack5": "^6.5.14",
45
- "@storybook/react": "^6.5.14",
46
- "@testing-library/react": "^14.0.0",
47
- "@types/btoa": "^1.2.3",
48
- "@types/chrome": "^0.0.210",
49
- "@types/jest": "^29.2.4",
50
- "@types/react": "^18.0.26",
51
- "@typescript-eslint/eslint-plugin": "^5.46.1",
52
- "@typescript-eslint/parser": "^5.46.1",
53
- "babel-loader": "^8.2.5",
54
- "eslint": "^8.29.0",
55
- "eslint-plugin-jest": "^26.5.3",
56
- "jest": "29.4.3",
57
- "jest-environment-jsdom": "29.4.3",
58
- "lit-html": "^2.5.0",
59
- "prettier": "^2.7.1",
60
- "react": "^18.2.0",
61
- "react-dom": "^18.2.0",
62
- "rimraf": "^3.0.2",
63
- "rollup": "^2.75.6",
64
- "rollup-plugin-dts": "^5.1.1",
65
- "rollup-plugin-terser": "^7.0.2",
66
- "rollup-plugin-typescript2": "^0.34.1",
67
- "ts-jest": "29.0.5",
68
- "tslib": "^2.4.1",
69
- "typescript": "^4.9.4"
70
- },
71
- "dependencies": {
72
- "@swc/helpers": "^0.3.13",
73
- "@whereby/jslib-media": "whereby/jslib-media.git#0.2.0",
74
- "assert": "^2.0.0",
75
- "axios": "^1.2.3",
76
- "btoa": "^1.2.1",
77
- "heresy": "^1.0.4"
78
- },
79
- "peerDependencies": {
80
- "react": "^18.2.0",
81
- "react-dom": "^18.2.0"
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
  }