@chat21/chat21-ionic 3.0.59-rc9 → 3.0.60-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 (72) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/README.md +5 -0
  3. package/config.xml +2 -2
  4. package/deploy_pre.sh +45 -6
  5. package/deploy_prod.sh +34 -9
  6. package/env.sample +1 -1
  7. package/package.json +1 -1
  8. package/resources/Android/splash/drawable-land-hdpi-screen.png +0 -0
  9. package/resources/Android/splash/drawable-land-ldpi-screen.png +0 -0
  10. package/resources/Android/splash/drawable-land-mdpi-screen.png +0 -0
  11. package/resources/Android/splash/drawable-land-xhdpi-screen.png +0 -0
  12. package/resources/Android/splash/drawable-land-xxhdpi-screen.png +0 -0
  13. package/resources/Android/splash/drawable-land-xxxhdpi-screen.png +0 -0
  14. package/resources/Android/splash/drawable-port-hdpi-screen.png +0 -0
  15. package/resources/Android/splash/drawable-port-ldpi-screen.png +0 -0
  16. package/resources/Android/splash/drawable-port-mdpi-screen.png +0 -0
  17. package/resources/Android/splash/drawable-port-xhdpi-screen.png +0 -0
  18. package/resources/Android/splash/drawable-port-xxhdpi-screen.png +0 -0
  19. package/resources/Android/splash/drawable-port-xxxhdpi-screen.png +0 -0
  20. package/resources/Android/splash.png +0 -0
  21. package/src/app/app.component.scss +10 -5
  22. package/src/app/app.component.ts +356 -230
  23. package/src/app/app.module.ts +12 -7
  24. package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.html +1 -1
  25. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +1 -1
  26. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +10 -8
  27. package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.html +1 -1
  28. package/src/app/components/authentication/login/login.component.html +8 -8
  29. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +2 -4
  30. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +7 -2
  31. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +61 -39
  32. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +46 -2
  33. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +79 -93
  34. package/src/app/components/image-viewer/image-viewer.component.scss +2 -2
  35. package/src/app/components/project-item/project-item.component.html +114 -114
  36. package/src/app/components/project-item/project-item.component.scss +150 -88
  37. package/src/app/components/project-item/project-item.component.ts +103 -48
  38. package/src/app/pages/authentication/login/login.page.html +1 -2
  39. package/src/app/pages/conversation-detail/conversation-detail.module.ts +3 -1
  40. package/src/app/pages/conversation-detail/conversation-detail.page.html +8 -3
  41. package/src/app/pages/conversation-detail/conversation-detail.page.ts +91 -10
  42. package/src/app/pages/conversations-list/conversations-list.page.html +21 -10
  43. package/src/app/pages/conversations-list/conversations-list.page.scss +290 -261
  44. package/src/app/pages/conversations-list/conversations-list.page.ts +165 -20
  45. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +16 -11
  46. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +157 -63
  47. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +60 -17
  48. package/src/app/services/app-config.ts +77 -5
  49. package/src/app/services/websocket/websocket-js.ts +19 -18
  50. package/src/app/services/websocket/websocket.service.ts +27 -9
  51. package/src/app/shared/shared.module.ts +5 -5
  52. package/src/assets/i18n/en.json +21 -7
  53. package/src/assets/i18n/es.json +205 -0
  54. package/src/assets/i18n/it.json +39 -33
  55. package/src/assets/js/chat21client.js +144 -82
  56. package/src/assets/logo.png +0 -0
  57. package/src/assets/transparent.png +0 -0
  58. package/src/chat-config-mqtt.json +2 -1
  59. package/src/chat-config-pre-test.json +1 -0
  60. package/src/chat-config-template.json +1 -0
  61. package/src/chat-config.json +1 -0
  62. package/src/chat21-core/providers/firebase/firebase-archivedconversations-handler.ts +1 -1
  63. package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +1 -1
  64. package/src/chat21-core/providers/firebase/firebase-notifications.ts +31 -23
  65. package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +3 -5
  66. package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +13 -5
  67. package/src/chat21-core/providers/mqtt/mqtt-notifications.ts +101 -11
  68. package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts +12 -3
  69. package/src/chat21-core/utils/utils-message.ts +2 -2
  70. package/src/firebase-messaging-sw-template.js +1 -1
  71. package/src/global.scss +4 -0
  72. package/src/assets/images/tiledesk_logo_50x50.png +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,90 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.60-rc6
4
+ - Fixes the bug: push notifications are initialized even if the "pushEngine" configuration variable is set to "none"
5
+ - Adds spanish language
6
+
7
+ ### 3.0.60-rc5
8
+ - Change the icon and link of the "pin button" in the item at the top of the conversation list (now opens the list of projects and not the list of new conversations)
9
+ - Add a tooltip on the switch button to change the available/unavailable status
10
+ - Adds a link to the to the new conversations at the icon that display the number of new conversations
11
+
12
+ ### 3.0.60-rc4
13
+ - Translates the canned response displayed when there are not canned responses
14
+
15
+ ### 3.0.60-rc3
16
+ - Enhances the item at the top of the conversation list that displays the number of new conversations of a selected project
17
+ - Fixes the bug: the loading spinner is sometimes not displayed when loading the list of unassigned conversations
18
+ - Displays as canned response "Test" when no canned responses are available
19
+ - Adds the cursor to the "Send message" textarea after the "Canned responses" button has been clicked
20
+
21
+ ### 3.0.60-rc2
22
+ - Fixes the bug: in AppConfigProvider the "wsUrl" is incorrect (window.location.port is missing)
23
+
24
+ ### 3.0.60-rc1
25
+ - Adds the ability to view canned responses by clicking on the button with the "flash" icon located to the left of the "Enter a message" text area
26
+
27
+ ### 3.0.59.2
28
+ - Fixes the bug: when the agent refreshes the chat page and the chat is in mobile mode, the badge with the number of unassigned conversations does not work
29
+
30
+ ### 3.0.59.1
31
+ - Fixes the bug: "Unable to read uid of undefined" error occurs when agent logs out
32
+ - Fixes the bug: When the agent logs into the chat and the chat is in mobile mode, no conversations are displayed
33
+ - Fixes the bug: the websocket is initialized even if the supportMode property is set to false
34
+ - Fixes the bug: when the agent refreshes the chat page and the chat is in mobile mode, the badge with the number of unassigned conversations does not work
35
+
36
+ ### 3.0.59
37
+ - Deploys in production
38
+
39
+ ### 3.0.59-rc23
40
+ - Fixes the bug: the badge indicating the number of unassigned conversations does not update correctly when the project is changed
41
+ - Changes the code that prevent the chat from opening in a new browser tab if the chat tab is already open
42
+ - Publish conversations returned by subscription to websocket conversations > "on data" callback
43
+
44
+ ### 3.0.59-rc22
45
+ - Minor improvements
46
+
47
+ ### 3.0.59-rc21
48
+ - chat21client.js -> v0.1.9
49
+
50
+ ### 3.0.59-rc20
51
+ - Improves the transition from "mobile" to "desktop" mode and vice versa by not reloading the app
52
+
53
+ ### 3.0.59-rc19
54
+ - Fixes the bug: when the chat is in "mobile" mode and from the dashboard the agent clicks on "Open chat" for a specific conversation the "back" button of the chat does not return to the list of conversations
55
+ - Fixes the bug: when the chat is in "mobile" mode and from the dashboard the agent clicks on "Open chat" for a specific conversation the chat does not display the details of the conversation
56
+
57
+ ### 3.0.59-rc18
58
+ - Improves the "app-config" service
59
+
60
+ ### 3.0.59-rc16
61
+ - Changes in config.xml the value of the "SplashScreen"
62
+ - Improves the method to avoid page reloading when an agent clicks the "Open Chat" button of the dashboard on the realtime and non-real time conversation list page and on the conversation detail page
63
+ - Modifies the "app-config" service by adding the ability to pass relative URLs to the websocket
64
+ - Adds "wsUrlRel" property to env.sample, chat-config-template.json and chat-config.json
65
+ - Adds a check in the "websocket-js.ts" service on the existence of the "ws" property of the "WebSocketJs" class before accessing the property "readyState"
66
+
67
+ ### 3.0.59-rc15
68
+ - Implements a method in app.components that counts and stores the number of open Chat tabs
69
+ - Implements a method on the conversation list page that prevents a new chat tab from opening when the agent clicks "Open Chat" from the dashboard
70
+
71
+ ### 3.0.59-rc14
72
+ - Fixes the bug: the sound that warns that a new conversation has been received does not work
73
+
74
+ ### 3.0.59-rc12
75
+ - Fixes the bug: Cannot read properties of undefined (reading 'get') when "translationMap" in not yet defined
76
+ - Fixes the bug: when the log out is performed, the item with the number of new conversations remains visible in the left side panel of the conversations list
77
+
78
+ ### 3.0.59-rc11
79
+ - Fixed bug: the item in the left side panel showing the number of new conversations is not displayed if there are no conversations
80
+ - Removes the "last_project" object and the "contacts" object on logout from local storage
81
+
82
+ ### 3.0.59-rc10
83
+ - Changes in config.xml the site URL of the author
84
+ - Changes the splash screen images
85
+ - Adds the "browser" platform configuration in config.xml
86
+ - Initialize in app.module.ts firebase to handle push notifications if chatEngine is "mqtt"
87
+
3
88
  ### 3.0.59-rc9
4
89
  - Changes in the archived conversations the date format if the browser language is English
5
90
  - Displays the button to open the contact list for direct conversations and the entry at the top of the conversation list showing the number of unassigned conversations for a selected project if the "supportMode" configuration property is set to true
@@ -48,6 +133,9 @@
48
133
  - Fixes the bug: in the avatar-profile component the properties 'avatarUrl', 'color' and 'avatar' are private and accessible only within the class
49
134
  - Fixes the bug: on ios platforms the back button in the conversation details header overlaps the avatar
50
135
 
136
+ ### 3.0.58.1
137
+ - Fix the bug: if the "chatEngine" property value is set to "mqtt "the login modal window does not disappear even if the agent is logged in
138
+
51
139
  ### 3.0.58
52
140
  - Changes the logic with which the 'online' / 'offline' event is published (done before by the onAuthStateChanged() method)
53
141
  - Removes the setTimeout set for displaying the login window
package/README.md CHANGED
@@ -60,6 +60,7 @@ In progress git
60
60
  pushEngine:"none", // OR YOUR CUSTOM PUSH ENGINE
61
61
  fileUploadAccept:"*/*",
62
62
  logLevel":"<YOUR-PREFERRED-LOG-LEVEL>",
63
+ supportMode: false,
63
64
  firebaseConfig: {
64
65
  tenant:"tilechat",
65
66
  apiKey: '123ABC..',
@@ -79,6 +80,7 @@ In progress git
79
80
  "apiUrl": "https://<YOUR-TILEDESK-API-URL>",
80
81
  "baseImageUrl": "https://<YOUR-BASE-IMAGE-URL>",
81
82
  "dashboardUrl": "https://<YOUR-DASHBOARD-URL>"
83
+ "wsUrl": 'ws://' + window.location.hostname + '/ws/',
82
84
  }
83
85
  };
84
86
  ```
@@ -88,6 +90,9 @@ In progress git
88
90
 
89
91
  * `fileUploadAccept`: The Chat21-ionic allows you to manage the type of files that can be uploaded. By default, all file types are accepted.
90
92
 
93
+ * `wsUrl`: allows you to know in real time the agent's availability status, the agent's busy status and the number of unassigned conversations for a selected project
94
+
95
+ * `supportMode`: if set to true it allows you to view the list of contacts from which you can make direct conversations and the item at the top of the list of conversations that shows the number of unassigned conversations of a selected project and that the agent can view and take over by clicking on it
91
96
 
92
97
  ### Push notification
93
98
  * open `/src/firebase-messaging-sw.js` and replace messagingSenderId: with < your messagingSenderId >
package/config.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <widget id="chat.tiledesk" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3
3
  <name>Chat21</name>
4
4
  <description>Chat21 is the core of the open source live chat platform</description>
5
- <author email="hi@ionicframework.com" href="http://ionicframework.com/">Tiledesk Team</author>
5
+ <author email="" href="https://tiledesk.com/">Tiledesk Team</author>
6
6
  <content src="index.html" />
7
7
  <access origin="*" />
8
8
  <allow-navigation href="*" />
@@ -18,7 +18,7 @@
18
18
  <preference name="SplashMaintainAspectRatio" value="true" />
19
19
  <preference name="FadeSplashScreenDuration" value="300" />
20
20
  <preference name="SplashShowOnlyFirstTime" value="false" />
21
- <preference name="SplashScreen" value="screen" />
21
+ <preference name="SplashScreen" value="assets/logo.png" />
22
22
  <preference name="SplashScreenDelay" value="3000" />
23
23
  <platform name="android">
24
24
  <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
package/deploy_pre.sh CHANGED
@@ -24,21 +24,60 @@ sed -i -e "s/$URL_VER/g" src/utils/constants.ts
24
24
 
25
25
  # ng build --prod --base-href /$NEW_BUILD/
26
26
  #ionic cordova build browser --prod
27
-
28
- ionic cordova platform add browser --save
29
27
  #ionic cordova build browser --prod --release
30
- ionic cordova build --env=pre browser #--prod --verbose
28
+ # ionic cordova build --env=pre browser --prod #--verbose
31
29
 
30
+ ionic cordova platform add browser --save
31
+ ionic cordova build -c=pre browser --prod
32
32
  cp -p src/firebase-messaging-sw.js platforms/browser/www/
33
33
  cp -p src/manifest.json platforms/browser/www/
34
34
  cp -p src/chat-config.json platforms/browser/www/
35
-
35
+ cp config.xml platforms/browser/www/
36
+
37
+ ######### chat-ionic5 - the good one - publish in pre
36
38
  cd platforms/browser/www
37
39
  aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/$version/
38
40
  aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/
39
41
  cd ../../../
40
42
 
41
- #aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
43
+ aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
42
44
 
43
45
  echo new version deployed on s3://tiledesk-dashboard-pre/chat-ionic5/$version/
44
- echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5/$version/index.html
46
+ echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5/$version/index.html
47
+ echo available on https://support-pre.tiledesk.com/chat-ionic5/$version/index.html
48
+ echo available on https://support-pre.tiledesk.com/chat-ionic5/index.html
49
+
50
+ ######### chat-ionic5-test - publish in pre with the projects right panel
51
+ # cd platforms/browser/www
52
+ # aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-test/$version/
53
+ # aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-test/
54
+ # cd ../../../
55
+
56
+ # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
57
+
58
+ # echo new version deployed on s3://tiledesk-dashboard-pre/chat-ionic5-test/$version/
59
+ # echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5-test/$version/index.html
60
+ # echo available on https://support-pre.tiledesk.com/chat-ionic5-test/$version/index.html
61
+ # echo available on https://support-pre.tiledesk.com/chat-ionic5-test/index.html
62
+
63
+
64
+ ####### chat ionic MQTT in pre da aggiungere in deploy_pre.sh
65
+ # cd platforms/browser/www
66
+ # aws s3 sync . s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/
67
+ # aws s3 sync . s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/$version
68
+ # cd ../../../
69
+ # echo new version deployed on s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/
70
+ # echo new version deployed on s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/$version
71
+ # echo http://tiledesk-dashboard-pre.s3-eu-west-1.amazonaws.com/native-mqtt/chat-ionic5/index.html
72
+ # echo http://tiledesk-dashboard-pre.s3-eu-west-1.amazonaws.com/native-mqtt/chat-ionic5/$version/index.html
73
+
74
+
75
+ ####### chat ionic FIREBASE in pre da aggiungere in deploy_pre.sh
76
+ # cd platforms/browser/www
77
+ # aws s3 sync . s3://tiledesk-dashboard-pre/chat5/
78
+ # aws s3 sync . s3://tiledesk-dashboard-pre/chat5/$version
79
+ # cd ../../../
80
+ # echo new version deployed on s3://tiledesk-dashboard-pre/chat5/$version
81
+ # echo new version deployed on s3://tiledesk-dashboard-pre/chat5/
82
+ # echo available on http://support-pre.tiledesk.com/chat5/index.html
83
+ # echo available on http://support-pre.tiledesk.com/chat5/$version/index.html
package/deploy_prod.sh CHANGED
@@ -1,4 +1,4 @@
1
- npm version patch
1
+ # npm version patch
2
2
  version=`node -e 'console.log(require("./package.json").version)'`
3
3
  echo "version $version"
4
4
 
@@ -12,22 +12,47 @@ echo 'URL_VER: ---->'$URL_VER
12
12
  # npm publish
13
13
  # fi
14
14
 
15
- # sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
16
15
  sed -i -e "s/$URL_VER/g" src/utils/constants.ts
16
+
17
17
  ionic cordova platform add browser --save
18
18
  #ionic cordova build --env=prod browser -- --base-href /www/ --prod
19
19
  ionic cordova build --env=prod browser --prod
20
20
  cp -p src/firebase-messaging-sw.js platforms/browser/www/
21
21
  cp -p src/manifest.json platforms/browser/www/
22
22
  cp -p src/chat-config.json platforms/browser/www/
23
+ cp -p config.xml platforms/browser/www/
24
+
23
25
 
26
+ ###### CHAT in prod
24
27
  cd platforms/browser/www
25
- #aws s3 sync . s3://tiledesk-dashboard/chat/
26
- aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/
27
- aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
28
+ aws s3 sync . s3://tiledesk-console/v2/chat/
29
+ aws s3 sync . s3://tiledesk-console/v2/chat/$version/
28
30
  cd ../../../
29
- # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
31
+ echo new version deployed on s3://tiledesk-console/v2/chat/
32
+ echo available on https://console.tiledesk.com/v2/chat/$version/index.html
33
+ echo available on https://console.tiledesk.com/v2/chat/index.html
34
+
35
+
36
+ ###### CHAT-IONIC5
37
+ # cd platforms/browser/www
38
+ # #aws s3 sync . s3://tiledesk-dashboard/chat/
39
+ # aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/
40
+ # aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
41
+ # cd ../../../
42
+ # # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
43
+
44
+ # # echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
45
+ # echo new version deployed on s3://tiledesk-console/v2/chat-ionic5/$version/
46
+ # echo available on https://console.tiledesk.com/v2/chat-ionic5/$version/index.html
47
+
48
+
30
49
 
31
- # echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
32
- echo new version deployed on s3://tiledesk-console/v2/chat-ionic5/$version/
33
- echo available on https://console.tiledesk.com/v2/chat-ionic5/$version/index.html
50
+ ####### chat ionic FIREBASE in PROD IN SUBFOLDER
51
+ # cd platforms/browser/www
52
+ # aws s3 sync . s3://tiledesk-console/v2/chat5-dev/
53
+ # aws s3 sync . s3://tiledesk-console/v2/chat5-dev/$version
54
+ # cd ../../../
55
+ # echo new version deployed on s3://console.tiledesk.com/v2/chat5-dev/$version
56
+ # echo new version deployed on s3://console.tiledesk.com/v2/chat5-dev/
57
+ # echo available on http://console.tiledesk.com/v2/chat5-dev/index.html
58
+ # echo available on http://console.tiledesk.com/v2/chat5-dev/$version/index.html
package/env.sample CHANGED
@@ -1,7 +1,7 @@
1
1
  API_BASEIMAGE_URL=CHANGEIT
2
2
  DASHBOARD_URL=https://YOUR_DASHBOARD_URL
3
3
  WS_URL=wss://YOUR_TILEDESK_SERVER_URL?token=
4
-
4
+ WS_URL_RELATIVE=********
5
5
  SERVER_BASE_URL=http://localhost:3000/
6
6
 
7
7
  CHAT21_ENGINE=mqtt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
- "version": "3.0.59-rc9",
3
+ "version": "3.0.60-rc6",
4
4
  "author": "Tiledesk SRL",
5
5
  "homepage": "https://ionicframework.com/",
6
6
  "scripts": {
Binary file
@@ -1,6 +1,11 @@
1
- @media (min-width: 768px) {
2
- .split-pane-md.split-pane-visible > .split-pane-side {
3
- min-width: 312px;
4
- display: block; // Safari bug fix
5
- }
1
+ .split-pane-md.split-pane-visible > .split-pane-side {
2
+ min-width: 312px;
3
+ display: block; // Safari bug fix
6
4
  }
5
+
6
+ // @media (min-width: 768px) {
7
+ // .split-pane-md.split-pane-visible > .split-pane-side {
8
+ // min-width: 312px;
9
+ // display: block; // Safari bug fix
10
+ // }
11
+ // }