@chat21/chat21-web-widget 5.0.93 → 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 +3 -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 +1 -1
package/CHANGELOG.md
CHANGED
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}
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
|
|
549
549
|
window.Tiledesk('onMessageCreated', function(event_data) {
|
|
550
550
|
// console.log("onMessageCreated!", event_data);
|
|
551
|
-
window.parent.postMessage(event_data.detail, '*')
|
|
551
|
+
window.parent.postMessage({ source: 'widget', data: event_data.detail}, '*')
|
|
552
552
|
// if(event_data.detail.isLogged){
|
|
553
553
|
// console.log("isLogged!!!!", event_data);
|
|
554
554
|
// window.Tiledesk('show')
|