feat: Support card message postback event as widget event (#11133)

Fixes https://github.com/chatwoot/chatwoot/issues/5956
Fixes https://github.com/chatwoot/chatwoot/issues/1895
This commit is contained in:
Shivam Mishra
2025-03-20 12:00:24 -07:00
committed by GitHub
parent 91b7785dfe
commit 9cf2bd284b
3 changed files with 22 additions and 1 deletions
+7
View File
@@ -203,6 +203,13 @@ export const IFrameHelper = {
updateCampaignReadStatus(window.$chatwoot.baseDomain);
},
postback(data) {
dispatchWindowEvent({
eventName: 'chatwoot:postback',
data,
});
},
toggleBubble: state => {
let bubbleState = {};
if (state === 'open') {