diff --git a/lib/client.js b/lib/client.js index 3ab2aff..8c64e09 100644 --- a/lib/client.js +++ b/lib/client.js @@ -355,6 +355,7 @@ export default class Client { this._idleState.addObserver(debounce(() => { this.postMessage('session.live') }, 1000)) + this.postMessage('client.app.registered'); }, this) this.on('context.updated', (context) => { @@ -370,6 +371,7 @@ export default class Client { tracker.setup() window.addEventListener('message', messageHandler.bind(null, this)) this.postMessage('iframe.handshake', { version: pkgJson.version }) + console.log('** zaf_sdk: app hand shake **'); } /** @@ -434,6 +436,7 @@ export default class Client { this._messageHandlers[name].push(handler) if (name !== 'app.registered') { + console.log('** sdk iframe.on:', name); // Subscriber count is needed as the framework will only bind events on the first attached handler this.postMessage('iframe.on:' + name, { subscriberCount: this._messageHandlers[name].length }) } diff --git a/package-lock.json b/package-lock.json index 958e3c6..775ef9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "zendesk_app_framework_sdk", - "version": "2.0.33", + "version": "2.0.37", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "zendesk_app_framework_sdk", - "version": "2.0.33", + "version": "2.0.37", "dependencies": { "native-promise-only": "^0.8.1" }, @@ -44,9 +44,7 @@ "webpack-visualizer-plugin": "^0.1.11" }, "engines": { - "node": ">=12.10.0", - "npm": ">=5.6.0", - "yarn": "Yarn is disabled for this project, use npm instead" + "node": ">=12.10.0" } }, "node_modules/@babel/code-frame": {