@chat21/chat21-web-widget 5.0.57-rc.2 → 5.0.57-rc.4
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 +8 -0
- package/package.json +1 -1
- package/src/app/component/conversation-detail/conversation/conversation.component.html +1 -1
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +1 -1
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.scss +1 -1
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html +1 -1
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +1 -5
- package/src/app/component/message/buttons/action-button/action-button.component.scss +2 -1
- package/src/app/component/message/buttons/text-button/text-button.component.scss +2 -1
- package/src/app/utils/globals.ts +1 -1
- package/src/assets/js/chat21client.js +4 -1
- package/src/chat21-core/providers/mqtt/chat-service.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# chat21-web-widget ver 5.0
|
|
2
2
|
|
|
3
|
+
### 5.0.57-rc.4
|
|
4
|
+
- changed: set calloutStatus to false as default value
|
|
5
|
+
|
|
6
|
+
### 5.0.57-rc.3
|
|
7
|
+
- changed: tiledesk logo during conversation
|
|
8
|
+
- changed: show entire text of buttons
|
|
9
|
+
- bug-fixed: window.location is undefined in chat21client.js
|
|
10
|
+
|
|
3
11
|
### 5.0.57-rc.2
|
|
4
12
|
- changed: tiledesk logo during conversation
|
|
5
13
|
- removed: image loader wrapper
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
<!-- CONTENT -->
|
|
47
47
|
<chat-conversation-content
|
|
48
|
-
[class.hideTextReply]="
|
|
48
|
+
[class.hideTextReply]="hideFooterTextReply && g?.poweredBy"
|
|
49
49
|
[messages]="messages"
|
|
50
50
|
[senderId]="senderId"
|
|
51
51
|
[baseLocation]="g?.windowContext['tiledesk']?.getBaseLocation()"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
:host chat-conversation-content.hideTextReply ::ng-deep .chat21-sheet-content{
|
|
13
13
|
|
|
14
|
-
bottom:
|
|
14
|
+
bottom: var(--chat-footer-height) !important
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// ============= CSS #chat21-conversation-component ================= //
|
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- LOGO-->
|
|
2
|
-
<div id="hiddenFooter" *ngIf="!hideTextAreaContent" class="fade-in-bottom"
|
|
2
|
+
<div id="hiddenFooter" *ngIf="!hideTextAreaContent && poweredBy" class="fade-in-bottom"
|
|
3
3
|
[class.hideTextReply]="hideTextReply">
|
|
4
4
|
<div tabindex="-1" class="c21-powered-by" [innerHTML]="poweredBy"></div>
|
|
5
5
|
</div>
|
package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss
CHANGED
|
@@ -253,15 +253,11 @@ textarea:active{
|
|
|
253
253
|
align-items: center;
|
|
254
254
|
justify-content: center;
|
|
255
255
|
// position: absolute;
|
|
256
|
-
box-shadow: inset 0px -22px 16px -15px rgba(0,0,0,0.1);
|
|
256
|
+
// box-shadow: inset 0px -22px 16px -15px rgba(0,0,0,0.1);
|
|
257
257
|
&.hideTextReply{
|
|
258
258
|
height: var(--chat-footer-height);
|
|
259
259
|
position: unset;
|
|
260
260
|
box-shadow: none;
|
|
261
|
-
.c21-powered-by{
|
|
262
|
-
background-color: var(--chat-footer-background-color);
|
|
263
|
-
|
|
264
|
-
}
|
|
265
261
|
}
|
|
266
262
|
.c21-powered-by {
|
|
267
263
|
// height: 40px;
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
font-size: var(--buttonFontSize);
|
|
25
25
|
-o-text-overflow: ellipsis;
|
|
26
26
|
text-overflow: ellipsis;
|
|
27
|
-
white-space: nowrap;
|
|
27
|
+
// white-space: nowrap;
|
|
28
|
+
word-wrap: break-word;
|
|
28
29
|
letter-spacing: -0.24px;
|
|
29
30
|
-webkit-font-smoothing: antialiased;
|
|
30
31
|
color: var(--textColor);
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
font-size: var(--buttonFontSize);
|
|
27
27
|
-o-text-overflow: ellipsis;
|
|
28
28
|
text-overflow: ellipsis;
|
|
29
|
-
white-space: nowrap;
|
|
29
|
+
// white-space: nowrap;
|
|
30
|
+
word-wrap: break-word;
|
|
30
31
|
letter-spacing: -0.24px;
|
|
31
32
|
-webkit-font-smoothing: antialiased;
|
|
32
33
|
color: var(--textColor); //$blue
|
package/src/app/utils/globals.ts
CHANGED
|
@@ -266,7 +266,7 @@ export class Globals {
|
|
|
266
266
|
/** title box callout */
|
|
267
267
|
this.calloutMsg = '';
|
|
268
268
|
/** stato callout (shown only first time) */
|
|
269
|
-
this.calloutStaus =
|
|
269
|
+
this.calloutStaus = false;
|
|
270
270
|
/** message box callout */
|
|
271
271
|
this.userFullname = '';
|
|
272
272
|
/** userFullname: Current user fullname. Set this parameter to specify
|
|
@@ -24,12 +24,13 @@ class Chat21Client {
|
|
|
24
24
|
this.reconnections = 0 // just to check how many reconnections
|
|
25
25
|
this.client_id = this.uuidv4();
|
|
26
26
|
this.log = options.log ? true : false;
|
|
27
|
+
|
|
27
28
|
if (options && options.MQTTendpoint) {
|
|
28
29
|
if (options.MQTTendpoint.startsWith('/')) {
|
|
29
30
|
if (this.log) {
|
|
30
31
|
console.log("MQTTendpoint relative url");
|
|
31
32
|
}
|
|
32
|
-
var loc = window.location, new_uri;
|
|
33
|
+
var loc = window.parent.location, new_uri;
|
|
33
34
|
if (loc.protocol === "https:") {
|
|
34
35
|
// new_uri = "wss:";
|
|
35
36
|
new_uri = "mqtt:";
|
|
@@ -41,6 +42,7 @@ class Chat21Client {
|
|
|
41
42
|
new_uri += "//" + loc.host;
|
|
42
43
|
// new_uri += loc.pathname + "/to/ws";
|
|
43
44
|
new_uri += options.MQTTendpoint;
|
|
45
|
+
console.log('new_uriiiiiii', new_uri, loc, document.location, window.parent)
|
|
44
46
|
this.endpoint = new_uri
|
|
45
47
|
} else {
|
|
46
48
|
this.endpoint = options.MQTTendpoint
|
|
@@ -987,6 +989,7 @@ class Chat21Client {
|
|
|
987
989
|
}
|
|
988
990
|
if (this.log) {console.log("starting mqtt connection with LWT on:", this.presence_topic, this.endpoint)}
|
|
989
991
|
// client = mqtt.connect('mqtt://127.0.0.1:15675/ws',options)
|
|
992
|
+
console.log("starting mqtt connection with LWT on:", this.presence_topic, this.endpoint)
|
|
990
993
|
this.client = mqtt.connect(this.endpoint,options)
|
|
991
994
|
|
|
992
995
|
this.client.on('connect', // TODO if token is wrong it must reply with an error!
|
|
@@ -43,6 +43,7 @@ export class Chat21Service {
|
|
|
43
43
|
}
|
|
44
44
|
if (!this.chatClient) {
|
|
45
45
|
// const { Chat21Client} = await import("../../../assets/js/chat21client");
|
|
46
|
+
|
|
46
47
|
this.chatClient = new Chat21Client(this._config);
|
|
47
48
|
} else {
|
|
48
49
|
console.log("Did you try again to create a Chat21Client istance?");
|