@ikonai/sdk-react-ui 1.0.62 → 1.0.63

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.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -443,7 +443,7 @@ function Mn() {
443
443
  y !== n && (y.style.outline = "", y.style.outlineOffset = "");
444
444
  r = [];
445
445
  const u = new Set(c);
446
- for (const y of document.querySelectorAll("[data-ikon-source]")) {
446
+ for (const y of Array.from(document.querySelectorAll("[data-ikon-source]"))) {
447
447
  const g = y.getAttribute("data-ikon-source") ?? "";
448
448
  u.has(g) && (y.style.outline = "2px solid #a6e3a1", y.style.outlineOffset = "1px", r.push(y));
449
449
  }
@@ -533,7 +533,7 @@ function Mn() {
533
533
  }
534
534
  if (c.data?.type === "ikon-inspect-rect") {
535
535
  const { x1: u, y1: y, x2: g, y2: b, append: w } = c.data, v = document.querySelectorAll("[data-ikon-source]"), E = [];
536
- for (const T of v) {
536
+ for (const T of Array.from(v)) {
537
537
  const M = T.getBoundingClientRect();
538
538
  M.right > u && M.left < g && M.bottom > y && M.top < b && E.push({
539
539
  sourceMarker: T.getAttribute("data-ikon-source") ?? "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-react-ui",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",