@gemx-dev/clarity-visualize 0.8.58 → 0.8.59

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.
@@ -401,7 +401,8 @@ function createParentWindowCanvas(iframeDoc, portalCanvasId) {
401
401
  var parentDoc = parentWindow === null || parentWindow === void 0 ? void 0 : parentWindow.document;
402
402
  if (!parentDoc)
403
403
  throw new Error('Parent document not found');
404
- var iframe = parentDoc.getElementById('clarity-iframe');
404
+ var iframeId = "clarity-iframe-".concat(portalCanvasId);
405
+ var iframe = parentDoc.getElementById(iframeId);
405
406
  if (!iframe)
406
407
  throw new Error('Iframe not found');
407
408
  var targetIframe = iframe;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gemx-dev/clarity-visualize",
3
- "version": "0.8.58",
3
+ "version": "0.8.59",
4
4
  "description": "Clarity visualize",
5
5
  "author": "Microsoft Corp.",
6
6
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "unpkg": "build/clarity.visualize.min.js",
10
10
  "types": "types/index.d.ts",
11
11
  "dependencies": {
12
- "@gemx-dev/clarity-decode": "^0.8.58"
12
+ "@gemx-dev/clarity-decode": "^0.8.59"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rollup/plugin-commonjs": "^24.0.0",
@@ -41,7 +41,8 @@ export function createParentWindowCanvas(
41
41
  const parentDoc = parentWindow?.document;
42
42
  if (!parentDoc) throw new Error('Parent document not found');
43
43
 
44
- const iframe = parentDoc.getElementById('clarity-iframe');
44
+ const iframeId = `clarity-iframe-${portalCanvasId}`;
45
+ const iframe = parentDoc.getElementById(iframeId);
45
46
  if (!iframe) throw new Error('Iframe not found');
46
47
 
47
48
  const targetIframe = iframe as HTMLIFrameElement;