@chat21/chat21-web-widget 5.1.0-rc8 → 5.1.0

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 (78) hide show
  1. package/CHANGELOG.md +108 -7
  2. package/angular.json +2 -2
  3. package/deploy_beta.sh +10 -0
  4. package/deploy_prod.sh +9 -0
  5. package/package.json +2 -2
  6. package/src/app/app.component.html +7 -1
  7. package/src/app/app.component.scss +11 -102
  8. package/src/app/app.component.ts +61 -2
  9. package/src/app/component/conversation-detail/conversation/conversation.component.html +4 -2
  10. package/src/app/component/conversation-detail/conversation/conversation.component.scss +70 -7
  11. package/src/app/component/conversation-detail/conversation/conversation.component.ts +106 -65
  12. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +3 -2
  13. package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.scss +7 -15
  14. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +1 -5
  15. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +48 -33
  16. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +13 -8
  17. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +17 -18
  18. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +11 -15
  19. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +54 -17
  20. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +1 -2
  21. package/src/app/component/conversation-detail/conversation-header/conversation-header.component.ts +7 -5
  22. package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.scss +0 -3
  23. package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +1 -3
  24. package/src/app/component/form/form-builder/form-builder.component.scss +0 -1
  25. package/src/app/component/form/inputs/form-text/form-text.component.scss +0 -1
  26. package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +0 -1
  27. package/src/app/component/form/prechat-form/prechat-form.component.scss +1 -3
  28. package/src/app/component/home/home.component.html +41 -0
  29. package/src/app/component/home/home.component.scss +34 -8
  30. package/src/app/component/home/home.component.ts +17 -0
  31. package/src/app/component/home-conversations/home-conversations.component.scss +0 -3
  32. package/src/app/component/last-message/last-message.component.html +0 -2
  33. package/src/app/component/last-message/last-message.component.scss +0 -2
  34. package/src/app/component/list-all-conversations/list-all-conversations.component.scss +2 -5
  35. package/src/app/component/list-conversations/list-conversations.component.scss +0 -2
  36. package/src/app/component/menu-options/menu-options.component.scss +0 -2
  37. package/src/app/component/message/audio/audio.component.html +1 -1
  38. package/src/app/component/message/audio/audio.component.scss +1 -0
  39. package/src/app/component/message/audio/audio.component.ts +0 -1
  40. package/src/app/component/message/avatar/avatar.component.scss +4 -4
  41. package/src/app/component/message/bubble-message/bubble-message.component.html +1 -4
  42. package/src/app/component/message/bubble-message/bubble-message.component.scss +0 -1
  43. package/src/app/component/message/bubble-message/bubble-message.component.ts +0 -2
  44. package/src/app/component/message/buttons/action-button/action-button.component.scss +6 -6
  45. package/src/app/component/message/buttons/link-button/link-button.component.scss +5 -5
  46. package/src/app/component/message/buttons/text-button/text-button.component.scss +5 -6
  47. package/src/app/component/message/carousel/carousel.component.scss +2 -3
  48. package/src/app/component/message/frame/frame.component.scss +0 -2
  49. package/src/app/component/message/html/html.component.scss +1 -3
  50. package/src/app/component/message/image/image.component.scss +0 -2
  51. package/src/app/component/message/info-message/info-message.component.scss +0 -2
  52. package/src/app/component/message/like-unlike/like-unlike.component.scss +0 -2
  53. package/src/app/component/message/text/text.component.html +5 -3
  54. package/src/app/component/message/text/text.component.scss +2 -4
  55. package/src/app/component/message/text/text.component.ts +0 -2
  56. package/src/app/component/message-attachment/message-attachment.component.scss +2 -1
  57. package/src/app/component/selection-department/selection-department.component.scss +1 -5
  58. package/src/app/component/star-rating-widget/star-rating-widget.component.scss +0 -7
  59. package/src/app/pipe/marked.pipe.ts +5 -2
  60. package/src/app/providers/global-settings.service.ts +108 -9
  61. package/src/app/sass/_variables.scss +16 -2
  62. package/src/app/utils/constants.ts +2 -1
  63. package/src/app/utils/globals.ts +103 -98
  64. package/src/app/utils/utils.ts +0 -47
  65. package/src/assets/i18n/en.json +5 -4
  66. package/src/assets/i18n/es.json +3 -2
  67. package/src/assets/i18n/fr.json +3 -2
  68. package/src/assets/i18n/it.json +3 -2
  69. package/src/assets/twp/chatbot-panel.html +39 -0
  70. package/src/assets/twp/index-dev.html +177 -121
  71. package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +8 -1
  72. package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +9 -1
  73. package/src/chat21-core/providers/tiledesk/tiledesk-requests.service.ts +14 -0
  74. package/src/chat21-core/utils/constants.ts +2 -0
  75. package/src/chat21-core/utils/user-typing/user-typing.component.scss +0 -1
  76. package/src/chat21-core/utils/utils-message.ts +12 -1
  77. package/src/chat21-core/utils/utils.ts +85 -0
  78. package/src/iframe-style.css +54 -35
@@ -1,5 +1,10 @@
1
1
  :root{
2
2
  --messagePreviewHeight: 100px;
3
+ --iframeMinWidth: 400px; /*376px*/;
4
+ --iframeMinHeight: 704px; /*696px;*/
5
+ --iframeMaxWidth: 688px;
6
+ --iframeMaxHeight: 786px;
7
+
3
8
  }
4
9
 
5
10
  #tiledesk-container {
@@ -9,7 +14,13 @@
9
14
  width: auto;
10
15
  height: auto;
11
16
  display: none;
12
- z-index: 3000000000; /*999999*/;
17
+ z-index: 3000000000; /*999999*/;
18
+ }
19
+ #tiledesk-container.open.overlay--popup {
20
+ background-color: rgba(0, 0, 0, 0.4);
21
+ position: absolute;
22
+ width: 100%;
23
+ height: 100vh;
13
24
  }
14
25
  #tiledeskdiv {
15
26
  /* width: 100%;
@@ -17,35 +28,41 @@
17
28
  max-width: 420px;
18
29
  min-width: 416px;
19
30
  max-height: 640px; */
20
- width: 376px;
21
- height: calc(100% - 40px);
22
- max-width: 696px; /*376px;*/
23
- min-width: 376px;
24
- max-height: 620px;
31
+ width: var(--iframeMinWidth);
32
+ height: var(--iframeMinHeight);
33
+ /* min-width: var(--iframeMinWidth);
34
+ max-width: var(--iframeMaxWidth); 376px;
35
+ max-height: 620px; */
25
36
  right: 0px;
26
37
  bottom: 0px;
27
38
  display: block;
28
39
  position: fixed;
29
-
40
+ max-height: calc(100% - 50px);
30
41
  }
31
42
 
32
- #tiledeskdiv.decreaseSize {
33
- /* transition: width 1s, height 1s; */
34
- transition: all 1s ease-out;
35
- width: 376px;
36
- max-height: 620px;
37
- /* animation: right-animate 1s ease infinite alternate; */
38
-
43
+ #tiledeskdiv.fullscreen {
44
+ right: 0px;
45
+ left: 0px;
46
+ top: 0px;
47
+ bottom: 0px;
48
+ width: 100%;
49
+ height: 100%;
39
50
  }
40
51
 
41
- #tiledeskdiv.increaseSize {
42
- /* transition: width 1s, height 1s; */
43
- transition: all 1s ease-in;
44
- width: 696px;
45
- max-height: 712px;
46
- /* animation: right-animate 1s ease infinite alternate; */
47
-
52
+ #tiledeskdiv.top-size {
53
+ position: fixed;
54
+ top: 0;
55
+ bottom: 0;
56
+ left: 50%;
57
+ /* width: calc( var(--iframeMaxWidth) + 180px); */
58
+ height: 100%; /*var(--iframeMaxHeight);*/
59
+ /* transform: translate(-50%, -50%); */
60
+ transform: translate(-50%, 0%);
61
+ width: 100%;
62
+ max-width: 1024px;
63
+ max-height: 100%;
48
64
  }
65
+
49
66
 
50
67
  @keyframes right-animate {
51
68
  0% {
@@ -62,7 +79,9 @@
62
79
  min-width: auto;
63
80
  min-height: auto;
64
81
  box-shadow: none; /* NEW GAB */
65
-
82
+ left: auto; /* NEW DEPA */
83
+ top:auto;
84
+ transform: none;
66
85
  }
67
86
  #tiledesk-container.closed #tiledeskdiv.callout {
68
87
  /* width: 400px;
@@ -93,30 +112,30 @@
93
112
  #tiledesk-container.open #tiledeskiframe {
94
113
  display: block;
95
114
  /*width: 376px;*/
96
- /* -webkit-animation: fade-in-shadow 0.4s ease-in 0.0s both;
97
- animation: fade-in-shadow 0.4s ease-in 0.0s both; */
98
- /* border-radius: 16px; */
99
- /* box-shadow: rgba(0, 18, 46, 0.16) 0px 8px 36px 0px; */
100
- /* margin: 10px; */
101
115
  }
102
116
  #tiledesk-container.open #tiledeskdiv.shadow {
103
117
  transition: box-shadow 0.8s ease-in;
104
118
  box-shadow: rgba(0, 0, 0, 0.16) 0px 8px 36px 0px; /*NEW GAB*/
105
119
  }
106
- /* @-webkit-keyframes fade-in-shadow {
107
- 0% { box-shadow: rgba(0, 0, 0, 0.0) 0 0 0px; }
108
- 100% { box-shadow: rgba(0, 0, 0, 0.1) 0 0 6px; }
109
- }
110
- @keyframes sk-bouncedelay {
111
- 0% { box-shadow: rgba(0, 0, 0, 0.0) 0 0 0px; }
112
- 100% { box-shadow: rgba(0, 0, 0, 0.1) 0 0 6px; }
113
- } */
120
+
114
121
 
115
122
  #tiledesk-container.closed #tiledeskiframe {
116
123
  display: block;
117
124
  box-shadow: none;
118
125
  }
119
126
 
127
+ #tiledesk-container.open #tiledeskdiv.min-size {
128
+ transition: width 200ms, height 200ms, max-height 200ms, transform 300ms cubic-bezier(0, 1.2, 1, 1), opacity 83ms ease-out;
129
+ width: var(--iframeMinWidth);
130
+ height: var(--iframeMinHeight);
131
+ }
132
+
133
+ #tiledesk-container.open #tiledeskdiv.max-size {
134
+ /* transition: width 1s, height 1s; */
135
+ transition: width 200ms, height 200ms, max-height 200ms, transform 300ms cubic-bezier(0, 1.2, 1, 1), opacity 83ms ease-out;
136
+ width: var(--iframeMaxWidth);
137
+ height: var(--iframeMaxHeight);
138
+ }
120
139
 
121
140
  #tiledeskiframe .full-screen-mode {
122
141
  width: 100%;