diff --git a/README.md b/README.md index fa578a8..8d6c210 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@

License MIT - version 1.2.5 + version 1.2.6 maintained yes

diff --git a/package.json b/package.json index 909be68..e4b14b6 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/EranGrin/botman-extended-web-widget" }, - "version": "1.2.5", + "version": "1.2.6", "description": "A BotMan frontend package for the web widget", "type": "module", "main": "dist/widget.js", @@ -46,5 +46,9 @@ "@types/node": "^20.12.4", "typescript": "^5.2.2", "vite": "^5.2.0" + }, + "volta": { + "node": "18.13.0", + "yarn": "1.22.19" } } diff --git a/src/chat/messages/action.tsx b/src/chat/messages/action.tsx index ff08557..ba936b3 100644 --- a/src/chat/messages/action.tsx +++ b/src/chat/messages/action.tsx @@ -5,7 +5,6 @@ import { IMessageTypeProps, IAction, IMessage } from '../../typings'; export default class Action extends MessageType { render(props: IMessageTypeProps) { - console.log('props', props); const { message } = props; const buttons = message.actions?.map((action: IAction) => { diff --git a/src/widget/widget.tsx b/src/widget/widget.tsx index 75e8663..e89afd4 100644 --- a/src/widget/widget.tsx +++ b/src/widget/widget.tsx @@ -164,6 +164,7 @@ export default class Widget extends Component { data.append('driver', 'web'); data.append('eventName', 'widgetOpened'); data.append('eventData', this.props.conf.widgetOpenedEventData); + data.append('userId', window?.botmanWidget?.userId || this.props.conf.userId); axios.post(this.props.conf.chatServer, data).then(response => { const messages = response.data.messages || [];