@chat21/chat21-web-widget 5.0.92 → 5.0.94-rc1
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 -0
- package/deploy_beta.sh +13 -1
- package/package.json +1 -1
- package/src/app/utils/rules.ts +2 -2
- package/src/assets/twp/chatbot-panel.html +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
### **Copyrigth**:
|
|
7
7
|
*Tiledesk SRL*
|
|
8
8
|
|
|
9
|
+
# 5.0.94-rc1
|
|
10
|
+
- **changed**: postMessage to cds for current intentMessage
|
|
11
|
+
|
|
12
|
+
# 5.0.93
|
|
13
|
+
- **changed**: disabled sound on chatbot-panel.html
|
|
14
|
+
|
|
9
15
|
# 5.0.92
|
|
10
16
|
- **added**: displayOnDesktop and displayOnMobile parameters in test mode with true value
|
|
11
17
|
|
package/deploy_beta.sh
CHANGED
|
@@ -2,9 +2,21 @@
|
|
|
2
2
|
version=`node -e 'console.log(require("./package.json").version)'`
|
|
3
3
|
echo "version $version"
|
|
4
4
|
|
|
5
|
+
## Update package-lock.json
|
|
6
|
+
npm install
|
|
7
|
+
|
|
8
|
+
# Get curent branch name
|
|
9
|
+
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
|
10
|
+
remote_name=$(git config --get branch.$current_branch.remote)
|
|
11
|
+
|
|
12
|
+
## Push commit to git
|
|
13
|
+
git add .
|
|
14
|
+
git commit -m "version added: ### $version"
|
|
15
|
+
git push "$remote_name" "$current_branch"
|
|
16
|
+
|
|
5
17
|
if [ "$version" != "" ]; then
|
|
6
18
|
git tag -a "$version" -m "`git log -1 --format=%s`"
|
|
7
19
|
echo "Created a new tag, $version"
|
|
8
|
-
git push
|
|
20
|
+
git push --tags
|
|
9
21
|
npm publish
|
|
10
22
|
fi
|
package/package.json
CHANGED
package/src/app/utils/rules.ts
CHANGED
|
@@ -28,7 +28,7 @@ export class Rules {
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
initRules(context: Window, tiledeskToken: string, currentUser: UserModel, request_id: string, rules:Rule[]){
|
|
31
|
-
this.logger.
|
|
31
|
+
this.logger.debug('[RULES] initRules',context, currentUser, rules)
|
|
32
32
|
this.windowContext = context
|
|
33
33
|
this.tiledeskToken = tiledeskToken
|
|
34
34
|
this.currentUser = currentUser
|
|
@@ -52,7 +52,7 @@ export class Rules {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
private doAction(action: Rule['do']){
|
|
55
|
-
this.logger.
|
|
55
|
+
this.logger.debug('[RULES] doAction', this.request_id, this.currentUser, action)
|
|
56
56
|
let message = action.filter(obj => Object.keys(obj).includes('message'))
|
|
57
57
|
if(message && message.length>0){
|
|
58
58
|
message[0]['message'].attributes = { ...this.g.attributes, ...message[0]['message'].attributes}
|
|
@@ -470,7 +470,8 @@
|
|
|
470
470
|
isLogEnabled:true,
|
|
471
471
|
customAttributes: { sound: false },
|
|
472
472
|
displayOnDesktop: true,
|
|
473
|
-
displayOnMobile: true
|
|
473
|
+
displayOnMobile: true,
|
|
474
|
+
soundEnabled: false
|
|
474
475
|
// autostart: false
|
|
475
476
|
|
|
476
477
|
};
|
|
@@ -547,7 +548,7 @@
|
|
|
547
548
|
|
|
548
549
|
window.Tiledesk('onMessageCreated', function(event_data) {
|
|
549
550
|
// console.log("onMessageCreated!", event_data);
|
|
550
|
-
window.parent.postMessage(event_data.detail, '*')
|
|
551
|
+
window.parent.postMessage({ source: 'widget', data: event_data.detail}, '*')
|
|
551
552
|
// if(event_data.detail.isLogged){
|
|
552
553
|
// console.log("isLogged!!!!", event_data);
|
|
553
554
|
// window.Tiledesk('show')
|