@chat21/chat21-ionic 3.0.55-RC6 → 3.0.57

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/CHANGELOG.md +95 -1
  2. package/package.json +1 -1
  3. package/src/app/app.component.scss +1 -0
  4. package/src/app/app.component.ts +615 -515
  5. package/src/app/app.module.ts +1 -1
  6. package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +2 -1
  7. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +44 -24
  8. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +7 -8
  9. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +9 -7
  10. package/src/app/chatlib/conversation-detail/message/avatar/avatar.component.ts +1 -1
  11. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +22 -14
  12. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +85 -45
  13. package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +1 -1
  14. package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +1 -1
  15. package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +4 -4
  16. package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +1 -1
  17. package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +1 -1
  18. package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +1 -1
  19. package/src/app/chatlib/conversation-detail/message/frame/frame.component.ts +4 -2
  20. package/src/app/chatlib/conversation-detail/message/image/image.component.html +9 -8
  21. package/src/app/chatlib/conversation-detail/message/image/image.component.scss +3 -2
  22. package/src/app/chatlib/conversation-detail/message/image/image.component.ts +35 -3
  23. package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.ts +1 -1
  24. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +56 -0
  25. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +169 -0
  26. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.spec.ts +33 -0
  27. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +80 -0
  28. package/src/app/chatlib/conversation-detail/message/return-receipt/return-receipt.component.ts +1 -1
  29. package/src/app/chatlib/conversation-detail/message/text/text.component.html +2 -1
  30. package/src/app/chatlib/conversation-detail/message/text/text.component.ts +4 -4
  31. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +40 -13
  32. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +147 -1
  33. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +47 -2
  34. package/src/app/components/authentication/login/login.component.scss +1 -1
  35. package/src/app/components/contacts-directory/contacts-directory.component.html +3 -2
  36. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +2 -2
  37. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +28 -13
  38. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +1 -2
  39. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +10 -6
  40. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +46 -43
  41. package/src/app/components/conversation-info/advanced-info-accordion/advanced-info-accordion.component.html +2 -2
  42. package/src/app/components/conversation-info/info-content/info-content.component.ts +15 -5
  43. package/src/app/components/conversation-info/info-group/info-group.component.ts +4 -4
  44. package/src/app/components/utils/avatar-profile/avatar-profile.component.html +2 -1
  45. package/src/app/components/utils/user-presence/user-presence.component.ts +8 -6
  46. package/src/app/pages/contacts-directory/contacts-directory.page.ts +1 -1
  47. package/src/app/pages/conversation-detail/conversation-detail.page.html +4 -1
  48. package/src/app/pages/conversation-detail/conversation-detail.page.ts +218 -42
  49. package/src/app/pages/conversations-list/conversations-list.page.html +1 -1
  50. package/src/app/pages/conversations-list/conversations-list.page.ts +135 -45
  51. package/src/app/pages/loader-preview/loader-preview.page.html +1 -1
  52. package/src/app/pages/loader-preview/loader-preview.page.ts +18 -5
  53. package/src/app/pages/profile-info/profile-info.page.html +2 -0
  54. package/src/app/services/nav-proxy.service.ts +2 -2
  55. package/src/app/services/network-service/network.service.spec.ts +12 -0
  56. package/src/app/services/network-service/network.service.ts +46 -0
  57. package/src/app/shared/shared.module.ts +2 -0
  58. package/src/assets/i18n/en.json +4 -2
  59. package/src/assets/i18n/it.json +5 -3
  60. package/src/chat21-core/providers/abstract/app-storage.service.ts +2 -2
  61. package/src/chat21-core/providers/chat-manager.ts +2 -1
  62. package/src/chat21-core/providers/firebase/firebase-archivedconversations-handler.ts +3 -2
  63. package/src/chat21-core/providers/firebase/firebase-auth-service.ts +112 -69
  64. package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +4 -4
  65. package/src/chat21-core/providers/firebase/firebase-image-repo.ts +1 -1
  66. package/src/chat21-core/providers/firebase/firebase-notifications.ts +29 -29
  67. package/src/chat21-core/providers/firebase/firebase-presence.service.ts +1 -0
  68. package/src/chat21-core/providers/localSessionStorage.ts +155 -154
  69. package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts +42 -12
  70. package/src/chat21-core/utils/user-typing/user-typing.component.html +6 -11
  71. package/src/chat21-core/utils/utils.ts +3 -3
  72. package/src/global.scss +17 -0
  73. package/src/index.html +27 -59
package/CHANGELOG.md CHANGED
@@ -1,7 +1,101 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.57
4
+ - Review of the "login" code
5
+
6
+ ### 3.0.56
7
+ - Improves the auto-login method
8
+
9
+ ### 3.0.55
10
+ - Distributed release in production
11
+
12
+ ### 3.0.55-rc26
13
+ - Fixes the bug: the iframe is not displayed
14
+ - Fits the image caption to the width of the image
15
+
16
+ ### 3.0.55-rc25
17
+ - Changes the method to get the JWT from the URL query string and the way to run the auto login
18
+
19
+ ### 3.0.55-rc24
20
+ - Improves the auto-login method
21
+
22
+ ### 3.0.55-RC23
23
+ - Fixes the bug: missing contact information in the header when selecting a "Direct" conversation
24
+ - Fixes the bug: by clicking on an archived chat the avatar displayed in the header does not correspond to the one displayed in the conversation list and in the right side panel "conversation info"
25
+ - Fixes the bug: sometimes auto login with JWT passed in URL as query string doesn't work
26
+ - Improves the "send message" textarea graphics
27
+ - Adds the ability to insert a new line after the current position in the message text area by pressing the key combinations "ALT + ENTER", "CTRL + ENTER", "CMD + ENTER"
28
+
29
+ ### 3.0.55-RC22
30
+ - Fixes the bug: if the chat is open in multiple browser tabs when the user log in the 'goOnline' method is activated several times
31
+ - Manages the message displayed in the conversation list when the sender sends a file (replace the markdown string with the string "sent an attachment")
32
+ - Fixes the bug: if the chat is open in multiple browser tabs when the user logs out, the conversation list remains visible
33
+ - Displays the "loading bubble" while uploading an image
34
+
35
+ ### 3.0.55-RC21
36
+ - Fixes the bug: if the chat is open in more than one browser tab, not all of them reconnect when the user accesses one of them
37
+
38
+ ### 3.0.55-RC20
39
+ - Improve the method that solves the bug: if the chat is open on more than one tab, the previous ones disconnect
40
+ - Displays the message "sent an image" when the sender sends an image
41
+ - Removes the "setTimeout" set on the onStorageChanged event
42
+
43
+ ### 3.0.55-RC19
44
+ - Fixes the bug: opening the "conversations info" side panel for support type conversations causes the chat to log out
45
+
46
+ ### 3.0.55-RC18
47
+ - Fixes the bug: if the chat is open on more than one tab, the previous ones logging out
48
+
49
+ ### 3.0.55-RC16
50
+ - Removes the image name displayed at the bottom of the image
51
+ - Removes the adaptation of the image caption width to the image size
52
+
53
+ ### 3.0.55-RC15
54
+ - Fixes the bug: "ion-spinner" throws an error when the chat is offline
55
+ - Fixes the bug: in the component "info-group-component" if groupDetail is not defined throws the error "Cannot read hasOwnProperty of undefined"
56
+ - Fixes the bug: in the "advanced-info-accordion" component if translationMap is not defined throws the error "Cannot read properties of undefined (reading 'get')"
57
+ - Fixes the bug: in the component "user-presence.component" if translationMap is not defined throws the error "Cannot read properties of undefined (reading 'get')"
58
+ - Fixes the bug: if the image name is longer than the image width when uploading, it is displayed on the right side of the image
59
+ - Fixes the bug: if the user logs out of the dashboard and then logs in, the user in the chat is not logged in again
60
+ - Fixes the bug: if the file upload preview window is closed without sending the file, the windows does not reopen if the same file is selected
61
+ - Adds autofocus in the "caption" text area in the file upload preview window
62
+
63
+ ### 3.0.55-RC14
64
+ - Implements Network service
65
+ - Displays, when the chat loses connection, the message "Waiting for network" at the top of the conversation list
66
+ - Displays, when the chat loses connection, the message "Internet is slow or not working" on the conversation details page
67
+ - Set the "user" variable to null when the user logs out of chat
68
+
69
+ ### 3.0.55-RC12
70
+ - Fixes the bug: when a file is uploaded via drag & drop, the message "Failed to upload: the format is not supported" is displayed even if fileUploadAccept is set to "* / *" (accept all)
71
+ - Fixes the bug: the left side panel "conversation list" is not displayed on Safari
72
+ - Fixes the bug: on Safari, clicking a button causes the app to reload or crash
73
+ - Adds a gradient background to the avatars
74
+
75
+ ### 3.0.55-RC11
76
+ - Replaces the message "No internet connection" displayed when Internet is slow or not working with the message "Internet is slow or not working."
77
+
78
+ ### 3.0.55-RC10
79
+ - Fixes the bug: Safari doesn't support the API's required to use FCM
80
+ - Fixes the bug: the drag and drop does not take into account the accepted files set in the "fileUploadAccept" environments property
81
+ - Fixes the bug: on Safari in the login modal the email and psw entered are not displayed
82
+
83
+ ### 3.0.55-RC9
84
+ - Adds the left panel "projects"
85
+
86
+ ### 3.0.55-RC8
87
+ - Improves backward compatibility for old conversations of the "archive", "predefined replies" features and for displaying the right "Conversation Info" panel
88
+ - Bug fixing
89
+
90
+ ### 3.0.55-RC7
91
+ - Adds the message "No Internet Connection" when the chat tab is a blank page
92
+ - Adds a "toast" indicating when the chat has lost connection
93
+ - Adds action button component
94
+ - Fixes the bug: when accessing the chat without internet connection, the chat does not restart when the connection is restored
95
+ - Fixes the bug: old conversations are not archived (implemented backwards compatibility)
96
+
3
97
  ### 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)
98
+ - Fixes 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
5
99
 
6
100
  ### 3.0.55-RC5
7
101
  - Removes the changes in version 3.0.55-RC4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
- "version": "3.0.55-RC6",
3
+ "version": "3.0.57",
4
4
  "author": "Tiledesk SRL",
5
5
  "homepage": "https://ionicframework.com/",
6
6
  "scripts": {
@@ -1,5 +1,6 @@
1
1
  @media (min-width: 768px) {
2
2
  .split-pane-md.split-pane-visible > .split-pane-side {
3
3
  min-width: 312px;
4
+ display: block; // Safari bug fix
4
5
  }
5
6
  }