@epam/ai-dial-visualizer-connector 0.43.0-rc.9 → 0.43.0

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.
Files changed (2) hide show
  1. package/index.esm.js +4 -0
  2. package/package.json +2 -2
package/index.esm.js CHANGED
@@ -59,6 +59,10 @@ class VisualizerConnector {
59
59
  */
60
60
  this.process = (event) => {
61
61
  var _a, _b, _c, _d;
62
+ // Only process messages from this specific iframe instance
63
+ if (event.source !== this.iframe.contentWindow) {
64
+ return;
65
+ }
62
66
  if (event.data.type ===
63
67
  `${this.options.visualizerName}/${VisualizerConnectorEvents.ready}`) {
64
68
  this.hideLoader();
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@epam/ai-dial-visualizer-connector",
3
3
  "description": "Package for connecting custom visualizer into DIAL Chat",
4
4
  "homepage": "https://dialx.ai",
5
- "version": "0.43.0-rc.9",
5
+ "version": "0.43.0",
6
6
  "dependencies": {
7
- "@epam/ai-dial-shared": "0.43.0-rc.9"
7
+ "@epam/ai-dial-shared": "0.43.0"
8
8
  },
9
9
  "type": "module",
10
10
  "bugs": {