@cometchat/chat-sdk-javascript 4.0.0 → 4.0.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.
- package/{dist/index.d.ts → CometChat.d.ts} +444 -32
- package/CometChat.js +1 -0
- package/LICENSE.md +3 -0
- package/{readme.md → README.md} +8 -8
- package/package.json +31 -42
- package/dist/CometChat.js +0 -1
- package/dist/package.json +0 -36
- package/dist/type/index.d.ts +0 -10
- package/dist/type/lib/BannedMembersRequest.d.ts +0 -60
- package/dist/type/lib/BlockedUsersRequest.d.ts +0 -67
- package/dist/type/lib/CallSettings.d.ts +0 -429
- package/dist/type/lib/CometChat.d.ts +0 -1975
- package/dist/type/lib/CometChatErrorConstants.d.ts +0 -124
- package/dist/type/lib/CometChatHelper.d.ts +0 -26
- package/dist/type/lib/Constants.d.ts +0 -973
- package/dist/type/lib/ConversationRequest.d.ts +0 -89
- package/dist/type/lib/GroupMembersRequest.d.ts +0 -61
- package/dist/type/lib/GroupsRequest.d.ts +0 -78
- package/dist/type/lib/Helper.d.ts +0 -47
- package/dist/type/lib/ListenerHandlers.d.ts +0 -101
- package/dist/type/lib/MessagesRequest.d.ts +0 -188
- package/dist/type/lib/UsersRequest.d.ts +0 -142
- package/dist/type/lib/WebSockets/WSConnectionHelper.d.ts +0 -41
- package/dist/type/lib/WebSockets/WSConstants.d.ts +0 -71
- package/dist/type/lib/WebSockets/WSHelper.d.ts +0 -3
- package/dist/type/lib/controllers/CallController.d.ts +0 -151
- package/dist/type/lib/controllers/ConversationController.d.ts +0 -14
- package/dist/type/lib/controllers/GroupMemberController.d.ts +0 -10
- package/dist/type/lib/controllers/GroupsController.d.ts +0 -9
- package/dist/type/lib/controllers/MessageController.d.ts +0 -18
- package/dist/type/lib/controllers/PresenceController.d.ts +0 -0
- package/dist/type/lib/controllers/TypingNotificationController.d.ts +0 -14
- package/dist/type/lib/controllers/UserAuthController.d.ts +0 -10
- package/dist/type/lib/controllers/UsersController.d.ts +0 -9
- package/dist/type/lib/localStore/KeyStore.d.ts +0 -45
- package/dist/type/lib/localStore/MessageListenerEventMaping.d.ts +0 -56
- package/dist/type/lib/localStore/MessagesStore.d.ts +0 -72
- package/dist/type/lib/localStore/UserStore.d.ts +0 -72
- package/dist/type/lib/localStore/store.d.ts +0 -61
- package/dist/type/lib/models/Action.d.ts +0 -159
- package/dist/type/lib/models/AppSettings.d.ts +0 -135
- package/dist/type/lib/models/BaseMessage.d.ts +0 -259
- package/dist/type/lib/models/CCExtension.d.ts +0 -15
- package/dist/type/lib/models/Call.d.ts +0 -159
- package/dist/type/lib/models/CometChatAuthEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatMessageEvent.d.ts +0 -9
- package/dist/type/lib/models/CometChatPingEvent.d.ts +0 -6
- package/dist/type/lib/models/CometChatPresenceEvent.d.ts +0 -15
- package/dist/type/lib/models/CometChatReceiptEvent.d.ts +0 -14
- package/dist/type/lib/models/CometChatTransientEvent.d.ts +0 -11
- package/dist/type/lib/models/CometChatTypingEvent.d.ts +0 -14
- package/dist/type/lib/models/ConversationModel.d.ts +0 -73
- package/dist/type/lib/models/CustomError.d.ts +0 -13
- package/dist/type/lib/models/CustomMessage.d.ts +0 -71
- package/dist/type/lib/models/ErrorModel.d.ts +0 -12
- package/dist/type/lib/models/Group.d.ts +0 -190
- package/dist/type/lib/models/GroupMember.d.ts +0 -43
- package/dist/type/lib/models/Listner.d.ts +0 -258
- package/dist/type/lib/models/MediaDevice.d.ts +0 -36
- package/dist/type/lib/models/MediaMessage.d.ts +0 -115
- package/dist/type/lib/models/MessageReceipt.d.ts +0 -99
- package/dist/type/lib/models/RTCUser.d.ts +0 -18
- package/dist/type/lib/models/TextMessage.d.ts +0 -84
- package/dist/type/lib/models/TransientMessage.d.ts +0 -48
- package/dist/type/lib/models/TypingNotification.d.ts +0 -52
- package/dist/type/lib/models/UserModel.d.ts +0 -177
- package/dist/type/lib/models/UserPresence.d.ts +0 -0
- package/dist/type/lib/models/attachment.d.ts +0 -74
- package/dist/type/lib/rest-api/EndPointUtils.d.ts +0 -9
- package/dist/type/lib/rest-api/EndpointFactory.d.ts +0 -28
- package/dist/type/lib/rest-api/HttpHelper.d.ts +0 -10
package/LICENSE.md
ADDED
package/{readme.md → README.md}
RENAMED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
# CometChat Javascript SDK
|
|
14
14
|
|
|
15
|
-
CometChat
|
|
16
|
-
This guide demonstrates how to add chat to a WebSite using CometChat
|
|
15
|
+
CometChat enables you to add voice, video & text chat for your website & app.
|
|
16
|
+
This guide demonstrates how to add chat to a WebSite using CometChat.
|
|
17
17
|
|
|
18
18
|
## Features
|
|
19
19
|
|
|
@@ -40,7 +40,7 @@ This guide demonstrates how to add chat to a WebSite using CometChat Pro.
|
|
|
40
40
|
[Push Notification](https://prodocs.cometchat.com/docs/extensions-enhanced-push-notification) | [Email Notification](https://prodocs.cometchat.com/docs/extensions-email-notification) | [SMS Notification](https://prodocs.cometchat.com/docs/extensions-sms-notification) | [Thumbnail Generation](https://prodocs.cometchat.com/docs/extensions-thumbnail-generation) | [Link Preview](https://prodocs.cometchat.com/docs/extensions-link-preview) | [Rich Media Preview](https://prodocs.cometchat.com/docs/extensions-rich-media-preview) | [Voice Transcription](https://prodocs.cometchat.com/docs/extensions-voice-transcription) | [Smart Reply](https://prodocs.cometchat.com/docs/extensions-smart-reply) | [Message Translation](https://prodocs.cometchat.com/docs/extensions-message-translation) | [Emojis](https://prodocs.cometchat.com/docs/extensions-emojis) | [Polls](https://prodocs.cometchat.com/docs/extensions-polls) | [Reactions](https://prodocs.cometchat.com/docs/extensions-reactions) | [Stickers](https://prodocs.cometchat.com/docs/extensions-stickers) | [Video Broadcasting](https://prodocs.cometchat.com/docs/extensions-broadcast) | [Collaborative Documents](https://prodocs.cometchat.com/docs/extensions-collaborative-document) | [Collaborative Whiteboards](https://prodocs.cometchat.com/docs/extensions-collaborative-whiteboard) | [Data Masking Filter](https://prodocs.cometchat.com/docs/extensions-data-masking-filter) | [Profanity Filter](https://prodocs.cometchat.com/docs/extensions-profanity-filter) | [Image Moderation](https://prodocs.cometchat.com/docs/extensions-image-moderation)| [Sentiment Analysis](https://prodocs.cometchat.com/docs/extensions-sentiment-analysis) | [In-flight Message Moderation](https://prodocs.cometchat.com/docs/extensions-in-flight-message-moderation) | [Virus & Malware Scanner](https://prodocs.cometchat.com/docs/extensions-virus-malware-scanner) | [XSS Filter](https://prodocs.cometchat.com/docs/extensions-xss-filter)
|
|
41
41
|
|
|
42
42
|
[](#)
|
|
43
|
-
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.
|
|
43
|
+
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.11-important" /></a>
|
|
44
44
|

|
|
45
45
|

|
|
46
46
|

|
|
@@ -75,19 +75,19 @@ To setup Javascript SDK, you need to first register on CometChat Dashboard. [Cl
|
|
|
75
75
|
<ul>
|
|
76
76
|
<li>
|
|
77
77
|
<b>Install via NPM</b><br/>
|
|
78
|
-
1. Run the following command to install the CometChat
|
|
78
|
+
1. Run the following command to install the CometChat Javascript SDK<br/>
|
|
79
79
|
|
|
80
80
|
```javascript
|
|
81
|
-
npm install @cometchat
|
|
81
|
+
npm install @cometchat/chat-sdk-javascript@latest --save
|
|
82
82
|
```
|
|
83
83
|
</li>
|
|
84
84
|
|
|
85
85
|
<li>
|
|
86
86
|
<b>Import via CDN</b><br/>
|
|
87
|
-
1. Include the CometChat
|
|
87
|
+
1. Include the CometChat Javascript library in your HTML code.<br/>
|
|
88
88
|
|
|
89
89
|
```html
|
|
90
|
-
<script type="text/javascript" src="https://unpkg.com/@cometchat
|
|
90
|
+
<script type="text/javascript" src="https://unpkg.com/@cometchat/chat-sdk-javascript@latest/CometChat.js"></script>
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
You can refer to the below link for instructions on how to do so:<br/>
|
|
@@ -171,7 +171,7 @@ CometChat.getLoggedinUser().then(
|
|
|
171
171
|
|
|
172
172
|
<hr/>
|
|
173
173
|
|
|
174
|
-
📝 Please refer to our [Developer Documentation](https://prodocs.cometchat.com/docs/js-quick-start) for more information on how to configure the CometChat
|
|
174
|
+
📝 Please refer to our [Developer Documentation](https://prodocs.cometchat.com/docs/js-quick-start) for more information on how to configure the CometChat SDK and implement various features using the same.
|
|
175
175
|
|
|
176
176
|
<hr/>
|
|
177
177
|
|
package/package.json
CHANGED
|
@@ -1,48 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-sdk-javascript",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "dist/CometChat.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist/"
|
|
10
|
-
],
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"localforage": "^1.7.3",
|
|
13
|
-
"uuid": "^3.3.3"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@babel/core": "^7.3.4",
|
|
17
|
-
"browser-env": "^3.3.0",
|
|
18
|
-
"chai": "^4.2.0",
|
|
19
|
-
"chai-as-promised": "^7.1.1",
|
|
20
|
-
"chai-http": "^4.3.0",
|
|
21
|
-
"dts-bundle-webpack": "^1.0.2",
|
|
22
|
-
"editable-sources-webpack-plugin": "^1.0.2",
|
|
23
|
-
"form-data": "^4.0.0",
|
|
24
|
-
"mocha": "^7.1.1",
|
|
25
|
-
"node-fetch": "^2.6.5",
|
|
26
|
-
"pre-commit": "^1.2.2",
|
|
27
|
-
"strip-comments": "^1.0.2",
|
|
28
|
-
"ts-loader": "4.5.0",
|
|
29
|
-
"typedoc": "^0.20.34",
|
|
30
|
-
"typedoc-plugin-merge-modules": "^2.0.0",
|
|
31
|
-
"typescript": "^3.9.6",
|
|
32
|
-
"uglifyjs-webpack-plugin": "^2.1.2",
|
|
33
|
-
"webpack": "^4.29.6",
|
|
34
|
-
"webpack-cli": "^3.2.3",
|
|
35
|
-
"webpack-dev-server": "^3.1.14"
|
|
36
|
-
},
|
|
3
|
+
"version": "4.0.2",
|
|
4
|
+
"description": "A complete chat solution.",
|
|
5
|
+
"main": "CometChat.js",
|
|
37
6
|
"scripts": {
|
|
38
|
-
"
|
|
39
|
-
"build": "webpack --mode production",
|
|
40
|
-
"test": "mocha testcases/tests.js --bail --exit"
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
41
8
|
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
9
|
+
"keywords": [
|
|
10
|
+
"CometChat",
|
|
11
|
+
"chat",
|
|
12
|
+
"messaging",
|
|
13
|
+
"chat",
|
|
14
|
+
"sdk",
|
|
15
|
+
"pro",
|
|
16
|
+
"message",
|
|
17
|
+
"sdk",
|
|
18
|
+
"messaging",
|
|
19
|
+
"sdk",
|
|
20
|
+
"audio",
|
|
21
|
+
"chat",
|
|
22
|
+
"video",
|
|
23
|
+
"chat",
|
|
24
|
+
"webRTC"
|
|
44
25
|
],
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
26
|
+
"author": "CometChat",
|
|
27
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/cometchat-pro/javascript-chat-sdk.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/cometchat-pro/javascript-chat-sdk/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/cometchat-pro/javascript-chat-sdk#readme",
|
|
36
|
+
"types": "./CometChat.d.ts"
|
|
48
37
|
}
|