@cometchat/calls-sdk-javascript 4.2.4 → 5.0.0-beta.1

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 (44) hide show
  1. package/README.md +29 -16
  2. package/dist/index.css +1 -0
  3. package/dist/index.d.ts +2017 -0
  4. package/dist/index.es.js +39122 -0
  5. package/dist/index.es.js.map +1 -0
  6. package/dist/index.umd.js +320 -0
  7. package/dist/index.umd.js.map +1 -0
  8. package/package.json +42 -23
  9. package/LICENSE.md +0 -3
  10. package/pack/index.js +0 -2
  11. package/pack/index.js.LICENSE.txt +0 -1
  12. package/pack/src/Helper.d.ts +0 -5
  13. package/pack/src/api/APIHandler.d.ts +0 -39
  14. package/pack/src/api/endpoints.d.ts +0 -7
  15. package/pack/src/api/helper.d.ts +0 -69
  16. package/pack/src/api/index.d.ts +0 -2
  17. package/pack/src/constants/CallConstants.d.ts +0 -218
  18. package/pack/src/constants/index.d.ts +0 -1
  19. package/pack/src/defaultCallsettings.d.ts +0 -2
  20. package/pack/src/index.d.ts +0 -7
  21. package/pack/src/models/CallGroup.d.ts +0 -14
  22. package/pack/src/models/CallLog.d.ts +0 -276
  23. package/pack/src/models/CallSettings.d.ts +0 -396
  24. package/pack/src/models/CallUser.d.ts +0 -14
  25. package/pack/src/models/CallsAppSettings.d.ts +0 -41
  26. package/pack/src/models/CometChatCallLogs.d.ts +0 -189
  27. package/pack/src/models/CometChatCalls.d.ts +0 -181
  28. package/pack/src/models/CometChatCallsException.d.ts +0 -8
  29. package/pack/src/models/ErrorModel.d.ts +0 -12
  30. package/pack/src/models/Listener.d.ts +0 -91
  31. package/pack/src/models/ListnerHandler.d.ts +0 -10
  32. package/pack/src/models/Participant.d.ts +0 -184
  33. package/pack/src/models/PresenterSettings.d.ts +0 -279
  34. package/pack/src/models/RTCUser.d.ts +0 -18
  35. package/pack/src/models/Recording.d.ts +0 -86
  36. package/pack/src/models/index.d.ts +0 -10
  37. package/pack/src/types/ICallSettings.d.ts +0 -62
  38. package/pack/src/types/ICallsAppSettings.d.ts +0 -6
  39. package/pack/src/types/RTCUser.d.ts +0 -6
  40. package/pack/src/types/callEvents.d.ts +0 -84
  41. package/pack/src/types/common.d.ts +0 -14
  42. package/pack/src/types/index.d.ts +0 -2
  43. package/pack/src/util/parseJwt.d.ts +0 -1
  44. package/pack/src/util/verifyCallSettings.d.ts +0 -4
package/package.json CHANGED
@@ -1,32 +1,51 @@
1
1
  {
2
2
  "name": "@cometchat/calls-sdk-javascript",
3
- "version": "4.2.4",
4
- "description": "Cometchat's Javascript SDK for In-app Calling.",
5
- "main": "pack/index.js",
6
- "module": "pack/index.js",
7
- "types": "pack/src/index.d.ts",
3
+ "private": false,
4
+ "version": "5.0.0-beta.1",
5
+ "type": "module",
6
+ "main": "dist/index.umd.js",
7
+ "module": "dist/index.es.js",
8
+ "types": "dist/index.d.ts",
8
9
  "files": [
9
- "pack/"
10
+ "dist"
10
11
  ],
11
12
  "scripts": {
12
- "build": "rm -rf pack && webpack"
13
+ "dev": "export VITE_APP=sample-app-sdk && vite",
14
+ "dev:recorder": "export VITE_APP=recorder && vite",
15
+ "dev:js": "export VITE_APP=sample-app-javascript && vite --port 3000",
16
+ "dev:test": "export NODE_ENV=playwright-test && export VITE_APP=sample-app-sdk && vite",
17
+ "build": "tsc -b ./tsconfig.app.json && vite build",
18
+ "build:recorder": "VITE_APP=recorder npm run build && rm -rf dist/virtual-backgrounds && rm -rf dist/.well-known",
19
+ "build:lib": "tsc -b ./tsconfig.build.json && vite --config=vite.config.js.ts build",
20
+ "lint": "eslint .",
21
+ "preview": "vite preview",
22
+ "tsc": "tsc -b ./tsconfig.app.json"
13
23
  },
14
- "keywords": [
15
- "cometchat",
16
- "calls",
17
- "web",
18
- "angular",
19
- "react",
20
- "vue",
21
- "javascript",
22
- "webrtc"
23
- ],
24
- "author": "Cometchat",
25
24
  "devDependencies": {
26
- "terser-webpack-plugin": "^5.3.7",
27
- "ts-loader": "^9.4.2",
28
- "typescript": "^4.9.5",
29
- "webpack": "^5.75.0",
30
- "webpack-cli": "^5.0.1"
25
+ "@eslint/js": "^9.25.0",
26
+ "@jitsi/rnnoise-wasm": "^0.2.1",
27
+ "@playwright/test": "^1.58.2",
28
+ "@types/audioworklet": "^0.0.77",
29
+ "@types/emscripten": "^1.40.1",
30
+ "@types/node": "^24.0.1",
31
+ "@types/react": "^19.1.2",
32
+ "@types/react-dom": "^19.1.2",
33
+ "@types/react-window": "^1.8.8",
34
+ "@vitejs/plugin-react": "^4.4.1",
35
+ "clsx": "^2.1.1",
36
+ "eslint": "^9.25.0",
37
+ "eslint-plugin-react-hooks": "^5.2.0",
38
+ "eslint-plugin-react-refresh": "^0.4.19",
39
+ "globals": "^16.0.0",
40
+ "react": "^19.1.0",
41
+ "react-dom": "^19.1.0",
42
+ "react-window": "^1.8.11",
43
+ "typescript": "~5.8.3",
44
+ "typescript-eslint": "^8.30.1",
45
+ "valibot": "^1.1.0",
46
+ "vite": "^6.3.5",
47
+ "vite-plugin-dts": "^4.5.4",
48
+ "vite-plugin-lib-inject-css": "^2.2.2",
49
+ "zustand": "^5.0.4"
31
50
  }
32
51
  }
package/LICENSE.md DELETED
@@ -1,3 +0,0 @@
1
- Copyright (c) 2023 CometChat Inc.
2
-
3
- License agreement: https://www.cometchat.com/legal-terms-of-service