@chat21/chat21-web-widget 5.1.0-rc9 → 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.
- package/CHANGELOG.md +106 -8
- package/angular.json +2 -2
- package/deploy_beta.sh +10 -0
- package/deploy_prod.sh +9 -0
- package/package.json +2 -2
- package/src/app/app.component.html +7 -1
- package/src/app/app.component.scss +11 -102
- package/src/app/app.component.ts +61 -2
- package/src/app/component/conversation-detail/conversation/conversation.component.html +4 -2
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +70 -7
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +106 -65
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.html +3 -2
- package/src/app/component/conversation-detail/conversation-audio-recorder/conversation-audio-recorder.component.scss +7 -15
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +1 -5
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +48 -33
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +13 -8
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +17 -18
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +11 -15
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +54 -17
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +1 -2
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.ts +7 -5
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.scss +0 -3
- package/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.scss +1 -3
- package/src/app/component/form/form-builder/form-builder.component.scss +0 -1
- package/src/app/component/form/inputs/form-text/form-text.component.scss +0 -1
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +0 -1
- package/src/app/component/form/prechat-form/prechat-form.component.scss +1 -3
- package/src/app/component/home/home.component.html +41 -0
- package/src/app/component/home/home.component.scss +34 -8
- package/src/app/component/home/home.component.ts +17 -0
- package/src/app/component/home-conversations/home-conversations.component.scss +0 -3
- package/src/app/component/last-message/last-message.component.html +0 -2
- package/src/app/component/last-message/last-message.component.scss +0 -2
- package/src/app/component/list-all-conversations/list-all-conversations.component.scss +2 -5
- package/src/app/component/list-conversations/list-conversations.component.scss +0 -2
- package/src/app/component/menu-options/menu-options.component.scss +0 -2
- package/src/app/component/message/audio/audio.component.html +1 -1
- package/src/app/component/message/audio/audio.component.scss +1 -0
- package/src/app/component/message/audio/audio.component.ts +0 -1
- package/src/app/component/message/avatar/avatar.component.scss +4 -4
- package/src/app/component/message/bubble-message/bubble-message.component.html +1 -4
- package/src/app/component/message/bubble-message/bubble-message.component.scss +0 -1
- package/src/app/component/message/bubble-message/bubble-message.component.ts +0 -2
- package/src/app/component/message/buttons/action-button/action-button.component.scss +6 -6
- package/src/app/component/message/buttons/link-button/link-button.component.scss +5 -5
- package/src/app/component/message/buttons/text-button/text-button.component.scss +5 -6
- package/src/app/component/message/carousel/carousel.component.scss +2 -3
- package/src/app/component/message/frame/frame.component.scss +0 -2
- package/src/app/component/message/html/html.component.scss +1 -3
- package/src/app/component/message/image/image.component.scss +0 -2
- package/src/app/component/message/info-message/info-message.component.scss +0 -2
- package/src/app/component/message/like-unlike/like-unlike.component.scss +0 -2
- package/src/app/component/message/text/text.component.html +5 -3
- package/src/app/component/message/text/text.component.scss +2 -4
- package/src/app/component/message/text/text.component.ts +0 -2
- package/src/app/component/message-attachment/message-attachment.component.scss +2 -1
- package/src/app/component/selection-department/selection-department.component.scss +1 -5
- package/src/app/component/star-rating-widget/star-rating-widget.component.scss +0 -7
- package/src/app/pipe/marked.pipe.ts +5 -2
- package/src/app/providers/global-settings.service.ts +108 -9
- package/src/app/sass/_variables.scss +16 -2
- package/src/app/utils/constants.ts +2 -1
- package/src/app/utils/globals.ts +103 -98
- package/src/app/utils/utils.ts +0 -85
- package/src/assets/i18n/en.json +5 -4
- package/src/assets/i18n/es.json +3 -2
- package/src/assets/i18n/fr.json +3 -2
- package/src/assets/i18n/it.json +3 -2
- package/src/assets/twp/chatbot-panel.html +39 -0
- package/src/assets/twp/index-dev.html +177 -121
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +8 -1
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +9 -1
- package/src/chat21-core/providers/tiledesk/tiledesk-requests.service.ts +14 -0
- package/src/chat21-core/utils/constants.ts +2 -0
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +0 -1
- package/src/chat21-core/utils/utils-message.ts +12 -1
- package/src/chat21-core/utils/utils.ts +85 -0
- package/src/iframe-style.css +54 -35
package/src/iframe-style.css
CHANGED
|
@@ -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:
|
|
21
|
-
height:
|
|
22
|
-
|
|
23
|
-
|
|
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.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/*
|
|
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
|
-
|
|
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%;
|