@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 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-web-widget",
3
3
  "author": "Tiledesk SRL",
4
- "version": "5.0.53-rc.5",
4
+ "version": "5.0.53-rc.6",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -109,7 +109,7 @@ input {
109
109
  border-radius: $chat-footer-border-radius;
110
110
  font-weight: 400;
111
111
  height: 48px;
112
- padding: 16px;
112
+ padding: 0px 16px;
113
113
  font-size: 14px;
114
114
  line-height: 1.42857143;
115
115
  display: block;
@@ -103,7 +103,7 @@ textarea {
103
103
  border-radius: $chat-footer-border-radius;
104
104
  font-weight: 400;
105
105
  // height: 36px;
106
- padding: 16px;
106
+ padding: 0px 16px;
107
107
  font-size: 14px;
108
108
  line-height: 1.42857143;
109
109
  display: block;
@@ -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
- setTimeout(() => {
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
  }
@@ -13,7 +13,7 @@ export interface Rule {
13
13
  triggerEvery: number
14
14
  },
15
15
  do: [
16
- {wait: number},
16
+ // {wait: number},
17
17
  {message: any}
18
18
  ]
19
19
  }