@cometchat/calls-sdk-javascript 4.2.5 → 5.0.0-beta.2

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 (41) hide show
  1. package/README.md +29 -16
  2. package/dist/index.css +1 -0
  3. package/dist/index.d.ts +2112 -0
  4. package/dist/index.es.js +39425 -0
  5. package/dist/index.umd.js +319 -0
  6. package/package.json +48 -23
  7. package/LICENSE.md +0 -3
  8. package/pack/index.js +0 -2
  9. package/pack/src/Helper.d.ts +0 -5
  10. package/pack/src/api/APIHandler.d.ts +0 -39
  11. package/pack/src/api/endpoints.d.ts +0 -7
  12. package/pack/src/api/helper.d.ts +0 -69
  13. package/pack/src/api/index.d.ts +0 -2
  14. package/pack/src/constants/CallConstants.d.ts +0 -218
  15. package/pack/src/constants/index.d.ts +0 -1
  16. package/pack/src/defaultCallsettings.d.ts +0 -2
  17. package/pack/src/index.d.ts +0 -7
  18. package/pack/src/models/CallGroup.d.ts +0 -14
  19. package/pack/src/models/CallLog.d.ts +0 -276
  20. package/pack/src/models/CallSettings.d.ts +0 -396
  21. package/pack/src/models/CallUser.d.ts +0 -14
  22. package/pack/src/models/CallsAppSettings.d.ts +0 -41
  23. package/pack/src/models/CometChatCallLogs.d.ts +0 -189
  24. package/pack/src/models/CometChatCalls.d.ts +0 -181
  25. package/pack/src/models/CometChatCallsException.d.ts +0 -8
  26. package/pack/src/models/ErrorModel.d.ts +0 -12
  27. package/pack/src/models/Listener.d.ts +0 -91
  28. package/pack/src/models/ListnerHandler.d.ts +0 -10
  29. package/pack/src/models/Participant.d.ts +0 -184
  30. package/pack/src/models/PresenterSettings.d.ts +0 -279
  31. package/pack/src/models/RTCUser.d.ts +0 -18
  32. package/pack/src/models/Recording.d.ts +0 -86
  33. package/pack/src/models/index.d.ts +0 -10
  34. package/pack/src/types/ICallSettings.d.ts +0 -62
  35. package/pack/src/types/ICallsAppSettings.d.ts +0 -6
  36. package/pack/src/types/RTCUser.d.ts +0 -6
  37. package/pack/src/types/callEvents.d.ts +0 -84
  38. package/pack/src/types/common.d.ts +0 -14
  39. package/pack/src/types/index.d.ts +0 -2
  40. package/pack/src/util/parseJwt.d.ts +0 -1
  41. package/pack/src/util/verifyCallSettings.d.ts +0 -4
package/package.json CHANGED
@@ -1,32 +1,57 @@
1
1
  {
2
2
  "name": "@cometchat/calls-sdk-javascript",
3
- "version": "4.2.5",
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.2",
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
+ "test:unit": "vitest run",
14
+ "dev": "export VITE_APP=sample-app-sdk && vite",
15
+ "dev:recorder": "export VITE_APP=recorder && vite",
16
+ "dev:js": "export VITE_APP=sample-app-javascript && vite --port 3000",
17
+ "dev:test": "export NODE_ENV=playwright-test && export VITE_APP=e2e && vite",
18
+ "build": "tsc -b ./tsconfig.app.json && vite build",
19
+ "build:recorder": "VITE_APP=recorder npm run build && rm -rf dist/virtual-backgrounds && rm -rf dist/.well-known",
20
+ "build:lib": "tsc -b ./tsconfig.build.json && vite --config=vite.config.js.ts build",
21
+ "lint": "eslint .",
22
+ "preview": "vite preview",
23
+ "tsc": "tsc -b ./tsconfig.app.json",
24
+ "test": "npx vitest --run",
25
+ "test:e2e": "npx playwright test --ui e2e/visual/tile-mode-responsive.spec.ts"
13
26
  },
14
- "keywords": [
15
- "cometchat",
16
- "calls",
17
- "web",
18
- "angular",
19
- "react",
20
- "vue",
21
- "javascript",
22
- "webrtc"
23
- ],
24
- "author": "Cometchat",
25
27
  "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"
28
+ "@eslint/js": "^9.25.0",
29
+ "@testing-library/jest-dom": "^6.9.1",
30
+ "@testing-library/react": "^16.3.2",
31
+ "@jitsi/rnnoise-wasm": "^0.2.1",
32
+ "@playwright/test": "^1.58.2",
33
+ "@types/audioworklet": "^0.0.77",
34
+ "@types/emscripten": "^1.40.1",
35
+ "@types/node": "^24.0.1",
36
+ "@types/react": "^19.1.2",
37
+ "@types/react-dom": "^19.1.2",
38
+ "@types/react-window": "^1.8.8",
39
+ "@vitejs/plugin-basic-ssl": "^2.1.4",
40
+ "@vitejs/plugin-react": "^4.4.1",
41
+ "clsx": "^2.1.1",
42
+ "eslint": "^9.25.0",
43
+ "eslint-plugin-react-hooks": "^5.2.0",
44
+ "eslint-plugin-react-refresh": "^0.4.19",
45
+ "globals": "^16.0.0",
46
+ "react": "^19.1.0",
47
+ "react-dom": "^19.1.0",
48
+ "react-window": "^1.8.11",
49
+ "typescript": "~5.8.3",
50
+ "typescript-eslint": "^8.30.1",
51
+ "valibot": "^1.1.0",
52
+ "vite": "^6.3.5",
53
+ "vite-plugin-dts": "^4.5.4",
54
+ "vite-plugin-lib-inject-css": "^2.2.2",
55
+ "zustand": "^5.0.4"
31
56
  }
32
57
  }
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