@chat21/chat21-web-widget 5.0.53-rc.5 → 5.0.53-rc.6
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 +6 -1
- package/package.json +1 -1
- package/src/app/component/form/inputs/form-text/form-text.component.scss +1 -1
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.scss +1 -1
- package/src/app/utils/rules.ts +1 -5
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +1 -0
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +1 -0
- package/src/models/rule.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# chat21-web-widget ver 5.0
|
|
2
2
|
|
|
3
|
+
### 5.0.53-rc.6
|
|
4
|
+
- changed: removed wait object from Rule model
|
|
5
|
+
- bug-fixed: splitted message lose original parent message attributes
|
|
6
|
+
- bug-fixed: preChat form element UI padding
|
|
7
|
+
|
|
3
8
|
### 5.0.53-rc.5
|
|
4
9
|
- changed: minor improvements for last-message component UI
|
|
5
10
|
- changed: last-message UI for long text message and long attachment buttons
|
|
6
11
|
- removed: automatic open widget after 3s on index.html
|
|
7
|
-
- bug-fixed: on click over callout not opens widget correctly if singleConversation is active
|
|
12
|
+
- bug-fixed: on click over callout not opens widget correctly if singleConversation is active
|
|
8
13
|
|
|
9
14
|
### 5.0.53-rc.4
|
|
10
15
|
- added: proactive rules from /widget/botsRules
|
package/package.json
CHANGED
package/src/app/utils/rules.ts
CHANGED
|
@@ -53,7 +53,6 @@ export class Rules {
|
|
|
53
53
|
private doAction(action: Rule['do']){
|
|
54
54
|
this.logger.info('[RULES] doAction', this.currentUser, action)
|
|
55
55
|
let message = action.filter(obj => Object.keys(obj).includes('message'))
|
|
56
|
-
let wait = action.filter(obj => Object.keys(obj).includes('wait'))
|
|
57
56
|
if(message && message.length>0){
|
|
58
57
|
message[0]['message'].attributes = { ...this.g.attributes, ...message[0]['message'].attributes}
|
|
59
58
|
message[0]['message'].userAgent = this.g.attributes['client']
|
|
@@ -62,10 +61,7 @@ export class Rules {
|
|
|
62
61
|
message[0]['message'].language = this.g.lang
|
|
63
62
|
message[0]['message'].departmentid = this.g.attributes.departmentId
|
|
64
63
|
console.log('message[0]', message[0]['message'])
|
|
65
|
-
|
|
66
|
-
this.tiledeskRequestsService.sendMessageToRequest(this.request_id, this.tiledeskToken, message[0]['message'])
|
|
67
|
-
console.log('rulessss', this.appStorageService.getItem('_botsRules'))
|
|
68
|
-
}, wait[0]['wait']);
|
|
64
|
+
this.tiledeskRequestsService.sendMessageToRequest(this.request_id, this.tiledeskToken, message[0]['message'])
|
|
69
65
|
}
|
|
70
66
|
}
|
|
71
67
|
|
|
@@ -534,6 +534,7 @@ export class FirebaseConversationHandler extends ConversationHandlerService {
|
|
|
534
534
|
command_message.isSender = message.isSender;
|
|
535
535
|
command_message.attributes? command_message.attributes.commands = true : command_message.attributes = {commands : true}
|
|
536
536
|
command_message.attributes.parentUid = parentUid //added to manage message STATUS UPDATES
|
|
537
|
+
command_message.attributes = {...message.attributes, ...command_message.attributes}
|
|
537
538
|
this.addedNew(command_message)
|
|
538
539
|
callback();
|
|
539
540
|
}
|
|
@@ -502,6 +502,7 @@ export class MQTTConversationHandler extends ConversationHandlerService {
|
|
|
502
502
|
command_message.isSender = message.isSender;
|
|
503
503
|
command_message.attributes? command_message.attributes.commands = true : command_message.attributes = {commands : true}
|
|
504
504
|
command_message.attributes.parentUid = parentUid //added to manage message STATUS UPDATES
|
|
505
|
+
command_message.attributes = {...message.attributes, ...command_message.attributes}
|
|
505
506
|
this.addedMessage(command_message)
|
|
506
507
|
callback();
|
|
507
508
|
}
|