podchat-browser 12.9.7-snapshot.9 → 12.9.7

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 (73) hide show
  1. package/README.md +15 -14
  2. package/changelog.md +32 -1
  3. package/dist/node/buildConfig.json +1 -1
  4. package/dist/node/call.module.js +756 -3210
  5. package/dist/node/chat.js +11983 -1993
  6. package/dist/node/events.module.js +6 -29
  7. package/dist/node/lib/app.js +31 -0
  8. package/dist/node/lib/call/call.js +30 -0
  9. package/dist/node/lib/call/callManager.js +1296 -0
  10. package/dist/node/lib/call/callServerManager.js +37 -0
  11. package/dist/node/lib/call/callTopicManager.js +948 -0
  12. package/dist/node/lib/call/callUser.js +611 -0
  13. package/dist/node/lib/call/callUsers.js +127 -0
  14. package/dist/node/lib/call/callsList.js +112 -0
  15. package/dist/node/lib/call/deviceManager.js +4 -13
  16. package/dist/node/lib/call/deviceManager2.js +357 -0
  17. package/dist/node/lib/call/deviceStartStopManager.js +72 -0
  18. package/dist/node/lib/call/multitrack/callManager.js +1242 -0
  19. package/dist/node/lib/call/multitrack/callUser.js +627 -0
  20. package/dist/node/lib/call/multitrack/callUsers.js +133 -0
  21. package/dist/node/lib/call/multitrack/deviceManager.js +366 -0
  22. package/dist/node/lib/call/multitrack/peerConnectionManager.js +231 -0
  23. package/dist/node/lib/call/multitrack/webrtcPeer.js +304 -0
  24. package/dist/node/lib/call/sharedData.js +175 -0
  25. package/dist/node/lib/call/topicMetaDataManager.js +42 -0
  26. package/dist/node/lib/call/webrtcPeer.js +318 -0
  27. package/dist/node/lib/chat/reactionsMethods.js +281 -0
  28. package/dist/node/lib/chat/threadParticipantsMethods.js +203 -0
  29. package/dist/node/lib/constants.js +13 -3
  30. package/dist/node/lib/errorHandler.js +59 -43
  31. package/dist/node/lib/requestBlocker.js +104 -0
  32. package/dist/node/lib/sdkParams.js +50 -48
  33. package/dist/node/lib/store/eventEmitter.js +15 -13
  34. package/dist/node/lib/store/index.js +22 -8
  35. package/dist/node/lib/store/reactionsList.js +125 -0
  36. package/dist/node/lib/store/reactionsSummaries.js +245 -0
  37. package/dist/node/lib/store/threads.js +56 -58
  38. package/dist/node/lib/store/user.js +34 -0
  39. package/dist/node/messaging.module.js +55 -69
  40. package/dist/podchat-browser-bundle.js +48720 -48525
  41. package/examples/index.html +52 -6
  42. package/package.json +4 -3
  43. package/src/buildConfig.json +1 -1
  44. package/src/call.module.js +723 -3189
  45. package/src/chat.js +1012 -1268
  46. package/src/events.module.js +7 -25
  47. package/src/lib/app.js +20 -0
  48. package/src/lib/call/call.js +21 -0
  49. package/src/lib/call/callManager.js +1061 -0
  50. package/src/lib/call/callServerManager.js +32 -0
  51. package/src/lib/call/callTopicManager.js +893 -0
  52. package/src/lib/call/callUser.js +382 -0
  53. package/src/lib/call/callUsers.js +95 -0
  54. package/src/lib/call/callsList.js +53 -0
  55. package/src/lib/call/deviceManager.js +4 -5
  56. package/src/lib/call/deviceManager2.js +248 -0
  57. package/src/lib/call/deviceStartStopManager.js +66 -0
  58. package/src/lib/call/sharedData.js +169 -0
  59. package/src/lib/call/topicMetaDataManager.js +38 -0
  60. package/src/lib/call/webrtcPeer.js +249 -0
  61. package/src/lib/chat/reactionsMethods.js +287 -0
  62. package/src/lib/chat/threadParticipantsMethods.js +198 -0
  63. package/src/lib/constants.js +13 -2
  64. package/src/lib/errorHandler.js +51 -32
  65. package/src/lib/requestBlocker.js +93 -0
  66. package/src/lib/sdkParams.js +50 -46
  67. package/src/lib/store/eventEmitter.js +12 -10
  68. package/src/lib/store/index.js +19 -7
  69. package/src/lib/store/reactionsList.js +113 -0
  70. package/src/lib/store/reactionsSummaries.js +183 -0
  71. package/src/lib/store/threads.js +52 -51
  72. package/src/lib/store/user.js +15 -0
  73. package/src/messaging.module.js +273 -286
package/README.md CHANGED
@@ -10,18 +10,6 @@ All notable changes to this project will be documented here.
10
10
 
11
11
  - Search in threads metadata
12
12
 
13
- ## [4.10.0] - 2019-06-24
14
-
15
- ### Added
16
-
17
- - ACL functionalities
18
- - Getting admins list, `getThreadAdmins()`
19
- - Setting / Removing new admin with roles, `setAdmin()`
20
- - `isTyping` for users, you can call `startTyping()` and `stopTyping()` to handle typing system messages
21
- - `clearHistory()` function to fully clear thread's history
22
- - `deleteMultipleMessages()` function to delete an array of message at once
23
- - `getNotSeenDuration()` function to get the not seen time duration of user being off the application in miliseconds
24
-
25
13
  In order to see complete list of changelog please visit [ChangeLog](https://github.com/masoudmanson/pod-chat/blob/master/changelog.md)
26
14
 
27
15
  ## Code Example
@@ -29,7 +17,7 @@ In order to see complete list of changelog please visit [ChangeLog](https://gith
29
17
  Create an Javascript file e.x `index.js` and put following code there:
30
18
 
31
19
  ```javascript
32
- var Chat = require('podchat');
20
+ var Chat = require('podchat-browser');
33
21
 
34
22
  var params = {
35
23
  appId: new Date().getTime(),
@@ -181,13 +169,26 @@ You'll get all the Events which are related to File Uploads in fileUploadEvents
181
169
 
182
170
  ```javascript
183
171
  /**
184
- * Listen to File Uploads Event Listener
172
+ * Listen to File Uploads Events
185
173
  */
186
174
  chatAgent.on("fileUploadEvents", function(event) {
187
175
  console.log(event);
188
176
  });
189
177
  ```
190
178
 
179
+ ### fileDownloadEvents
180
+
181
+ You'll get all the Events which are related to File Download Events in fileDownloadEvents listener
182
+
183
+ ```javascript
184
+ /**
185
+ * Listen to File Download Events
186
+ */
187
+ chatAgent.on("fileDownloadEvents", function(event) {
188
+ console.log(event);
189
+ });
190
+ ```
191
+
191
192
  ## User Functions
192
193
 
193
194
  ### getUserInfo
package/changelog.md CHANGED
@@ -5,6 +5,37 @@ to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.i
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [12.9.7] 25-11-2023
9
+
10
+ ### Added
11
+ - Method replyPrivately
12
+ - Method replyFileMessagePrivately
13
+ - Method getThreadsLight
14
+ - Method getPinMessages
15
+ - Method lastMessageInfo
16
+ - Method addReaction
17
+ - Method removeReaction
18
+ - Method replaceReaction
19
+ - Method getReactionsSummaries
20
+ - cache for getReactionsSummaries
21
+ - Method getReactionsList
22
+ - cache for getReactionsList
23
+ - Ability to switch async protocols
24
+ - uniqueId for ping messages
25
+ - Parameter usernames to method removeParticipants
26
+ - xss check for messages contents
27
+ - requestBlocking for some call actions
28
+ - callId to REJECT_GROUP_CALL
29
+
30
+ ### Fixed
31
+ - socketState 0 on event chatState was not being fired
32
+ - mute/unmute in calls causing performance bug in browsers
33
+ - screenShare cropped when sharing a non fullscreen window
34
+
35
+ ### Changed
36
+ - Internal changes making the sdk more modular
37
+ - Rewrite call module
38
+
8
39
  ## [12.9.6] 29-07-2023
9
40
  ## [12.9.6-snapshot.4] 19-07-2023
10
41
  ## [12.9.6-snapshot.3] 19-07-2023
@@ -47,7 +78,7 @@ to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.i
47
78
  - Fix lastSeenMessageTime (19 Numbers) on type 31:LAST_SEEN_UPDATED
48
79
  - timeNanos & Changed time (19 Numbers) in pinMessage
49
80
 
50
- ## Changed
81
+ ### Changed
51
82
  - Changed cached unreadCount calculation on new messages
52
83
 
53
84
  ## [12.9.3] 2023-06-20
@@ -1 +1 @@
1
- {"version":"12.9.7-snapshot.9","date":"۱۴۰۲/۵/۲۲","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
1
+ {"version":"12.9.7","date":"۱۴۰۲/۹/۴","VersionInfo":"Release: true, Snapshot: false, Is For Test: false"}