@chat21/chat21-ionic 3.0.52-beta → 3.0.55-RC6

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 (54) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/LICENSE +21 -0
  3. package/config.xml +1 -0
  4. package/env.sample +1 -0
  5. package/package.json +6 -2
  6. package/resources/Android/icon/drawable-hdpi-icon.png +0 -0
  7. package/resources/Android/icon/drawable-ldpi-icon.png +0 -0
  8. package/resources/Android/icon/drawable-mdpi-icon.png +0 -0
  9. package/resources/Android/icon/drawable-xhdpi-icon.png +0 -0
  10. package/resources/Android/icon/drawable-xxhdpi-icon.png +0 -0
  11. package/resources/Android/icon/drawable-xxxhdpi-icon.png +0 -0
  12. package/resources/Android/icon.png +0 -0
  13. package/resources/Android/splash/drawable-land-hdpi-screen.png +0 -0
  14. package/resources/Android/splash/drawable-land-ldpi-screen.png +0 -0
  15. package/resources/Android/splash/drawable-land-mdpi-screen.png +0 -0
  16. package/resources/Android/splash/drawable-land-xhdpi-screen.png +0 -0
  17. package/resources/Android/splash/drawable-land-xxhdpi-screen.png +0 -0
  18. package/resources/Android/splash/drawable-land-xxxhdpi-screen.png +0 -0
  19. package/resources/Android/splash/drawable-port-hdpi-screen.png +0 -0
  20. package/resources/Android/splash/drawable-port-ldpi-screen.png +0 -0
  21. package/resources/Android/splash/drawable-port-mdpi-screen.png +0 -0
  22. package/resources/Android/splash/drawable-port-xhdpi-screen.png +0 -0
  23. package/resources/Android/splash/drawable-port-xxhdpi-screen.png +0 -0
  24. package/resources/Android/splash/drawable-port-xxxhdpi-screen.png +0 -0
  25. package/resources/Android/splash.png +0 -0
  26. package/src/app/app.component.ts +509 -434
  27. package/src/app/app.module.ts +10 -5
  28. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +4 -0
  29. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +27 -30
  30. package/src/app/chatlib/conversation-detail/message/text/text.component.html +1 -1
  31. package/src/app/chatlib/conversation-detail/message/text/text.component.ts +27 -3
  32. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +18 -5
  33. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +15 -3
  34. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +24 -6
  35. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +4 -0
  36. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +17 -4
  37. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +20 -16
  38. package/src/app/components/conversation-info/info-content/info-content.component.ts +8 -1
  39. package/src/app/pages/conversation-detail/conversation-detail.page.html +37 -16
  40. package/src/app/pages/conversation-detail/conversation-detail.page.ts +143 -53
  41. package/src/app/pages/conversations-list/conversations-list.page.html +5 -2
  42. package/src/app/pages/conversations-list/conversations-list.page.ts +19 -14
  43. package/src/chat-config-pre-test.json +4 -2
  44. package/src/chat-config-template.json +2 -1
  45. package/src/chat-config.json +2 -1
  46. package/src/chat21-core/providers/abstract/messagingAuth.service.ts +1 -1
  47. package/src/chat21-core/providers/abstract/notifications.service.ts +2 -2
  48. package/src/chat21-core/providers/firebase/firebase-archivedconversations-handler.ts +6 -4
  49. package/src/chat21-core/providers/firebase/firebase-auth-service.ts +84 -17
  50. package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +15 -10
  51. package/src/chat21-core/providers/firebase/firebase-notifications.ts +119 -18
  52. package/src/chat21-core/providers/localSessionStorage.ts +2 -1
  53. package/src/chat21-core/utils/utils-user.ts +2 -1
  54. package/src/index.html +87 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.55-RC6
4
+ - Fixed the bug: when the pc starts up, if the connection is missing, the chat tab is a blank page and remains so even after the connection (use case the app-root does not load the ion-app)
5
+
6
+ ### 3.0.55-RC5
7
+ - Removes the changes in version 3.0.55-RC4
8
+ - Updates the method of "app.component.ts" watchToConnectionStatus()
9
+
10
+ ### 3.0.55-RC4
11
+ - Set "Auth.Persistence" to "firebase.auth().signInWithCustomToken" method
12
+ - Hardcoded the authPersistence value to 'LOCAL' in the 'localSessionStorage' service
13
+
14
+ ### 3.0.55-RC3
15
+ - Fixes the bug with another solution: the sender name in the conversation list does not match the sender name in the conversation details header
16
+ - Adds Android resources
17
+ - Set the "auth Persistence" environment variable to NONE
18
+
19
+ ### 3.0.55-RC2
20
+ - Adds style rules to fit the image name to its width
21
+ - Improves the method of getting Project ID from Conversation ID
22
+
23
+ ### 3.0.54-RC2
24
+ - Fixes the bug: canned responses are not loaded
25
+ - Adds backward compatibility: loading of canned responses for old projects
26
+
27
+ ### 3.0.54-RC1
28
+ - Moves FCM property "VAPID" to environments
29
+ - Adds FCM "VAPID" property to env.sample, chat-config.json and chat-config-template.json files
30
+ - Enhances the firebase-messaging-sw.js
31
+
32
+ ### 3.0.53-RC6
33
+ - Adds "VAPID" in the getToken() method of the "firebase-notification.service"
34
+ - Adds log in the "firebase-notification.service"
35
+
36
+ ### 3.0.53-RC5
37
+ - Push notification debug
38
+
39
+ ### 3.0.53-RC4
40
+ - Enhances the service worker postMessage method
41
+
42
+ ### 3.0.53-RC3
43
+ - Enhances listenToNotificationCLick() method and rename it to listenToSwPostMessage()
44
+
45
+ ### 3.0.53-RC2
46
+ - Commented the method listenToNotificationCLick()
47
+
48
+ ### 3.0.53-RC1
49
+ - Fixes the bug: sometimes the message sender name displayed in the header is different from the one displayed in the conversation list
50
+ - Fixes the bug: duplicate push notifications
51
+ - Increase the height of the selectable message in the conversation list to prevent the 'Archive' icon and the sender name text from overlapping the string indicating the message arrival time
52
+ - Updates the avatars background colors
53
+ - Fixes the bug: 404 error when trying to view the profile picture of "support-group" conversations requesters
54
+ - Adds the date the message was sent to the list of archived conversations
55
+ - Translates the date "how long ago" the message was sent in the conversation list
56
+
57
+
3
58
  ### 3.0.52-beta
4
59
  - Replaces the label "conversation ID" with "user ID" in the accordion available in the panel "conversation info" of direct conversations
5
60
  - Adds the ability to change the log level via the query-string parameter "logLevel"
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-present Tiledesk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/config.xml CHANGED
@@ -111,6 +111,7 @@
111
111
  <plugin name="cordova-plugin-ionic-webview" spec="^4.2.1">
112
112
  <variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
113
113
  </plugin>
114
+ <plugin name="cordova-plugin-network-information" spec="^2.0.2" />
114
115
  <plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
115
116
  <plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
116
117
  <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
package/env.sample CHANGED
@@ -25,5 +25,6 @@ MQTT_LOGINSERVICE_ENDPOINT=http://localhost:3000/chat21/native/auth/createCustom
25
25
  #FIREBASE_STORAGEBUCKET=CHANGEIT.appspot.com
26
26
  #FIREBASE_MESSAGINGSENDERID=********
27
27
  #FIREBASE_APP_ID=CHANGEIT
28
+ #FIREBASE_VAPID=CHANGEIT
28
29
 
29
30
  CHAT21_URL=https://CHANGEIT.cloudfunctions.net
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
- "version": "3.0.52-beta",
3
+ "version": "3.0.55-RC6",
4
4
  "author": "Tiledesk SRL",
5
5
  "homepage": "https://ionicframework.com/",
6
6
  "scripts": {
@@ -24,6 +24,7 @@
24
24
  "@ionic-native/core": "^5.0.7",
25
25
  "@ionic-native/globalization": "^5.28.0",
26
26
  "@ionic-native/keyboard": "^5.28.0",
27
+ "@ionic-native/network": "^5.36.0",
27
28
  "@ionic-native/splash-screen": "^5.29.0",
28
29
  "@ionic-native/status-bar": "^5.0.0",
29
30
  "@ionic/angular": "^5.0.7",
@@ -41,6 +42,7 @@
41
42
  "cordova-plugin-device": "^2.0.2",
42
43
  "cordova-plugin-ionic-keyboard": "^2.2.0",
43
44
  "cordova-plugin-ionic-webview": "^4.2.1",
45
+ "cordova-plugin-network-information": "^2.0.2",
44
46
  "cordova-plugin-splashscreen": "^5.0.2",
45
47
  "cordova-plugin-statusbar": "^2.4.2",
46
48
  "cordova-plugin-whitelist": "^1.3.3",
@@ -51,6 +53,7 @@
51
53
  "material-design-icons": "^3.0.1",
52
54
  "moment": "^2.24.0",
53
55
  "moment-timezone": "^0.5.28",
56
+ "ng-connection-service": "^1.0.4",
54
57
  "ng2-tooltip-directive": "^2.9.22",
55
58
  "ngx-linkifyjs": "^1.3.0",
56
59
  "ngx-logger": "^4.2.1",
@@ -97,7 +100,8 @@
97
100
  "cordova-plugin-chooser": {},
98
101
  "cordova-android-support-gradle-release": {
99
102
  "ANDROID_SUPPORT_VERSION": "27.+"
100
- }
103
+ },
104
+ "cordova-plugin-network-information": {}
101
105
  },
102
106
  "platforms": [
103
107
  "android",
Binary file
Binary file