@ikonai/sdk-react-ui 1.0.74 → 1.0.76

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 +173 -168
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -56,7 +56,7 @@ function jn() {
56
56
  switch (d) {
57
57
  case p:
58
58
  return "Fragment";
59
- case y:
59
+ case b:
60
60
  return "Profiler";
61
61
  case S:
62
62
  return "StrictMode";
@@ -71,7 +71,7 @@ function jn() {
71
71
  switch (typeof d.tag == "number" && console.error(
72
72
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
73
  ), d.$$typeof) {
74
- case g:
74
+ case y:
75
75
  return "Portal";
76
76
  case v:
77
77
  return d.displayName || "Context";
@@ -193,13 +193,13 @@ function jn() {
193
193
  if (N)
194
194
  if ($(L)) {
195
195
  for (N = 0; N < L.length; N++)
196
- b(L[N]);
196
+ g(L[N]);
197
197
  Object.freeze && Object.freeze(L);
198
198
  } else
199
199
  console.error(
200
200
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
201
  );
202
- else b(L);
202
+ else g(L);
203
203
  if (B.call(A, "key")) {
204
204
  L = t(d);
205
205
  var Q = Object.keys(A).filter(function(Me) {
@@ -235,13 +235,13 @@ React keys must be passed directly to JSX without using spread:
235
235
  me
236
236
  );
237
237
  }
238
- function b(d) {
238
+ function g(d) {
239
239
  m(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === z && (d._payload.status === "fulfilled" ? m(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
240
240
  }
241
241
  function m(d) {
242
242
  return typeof d == "object" && d !== null && d.$$typeof === u;
243
243
  }
244
- var c = En, u = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), v = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), M = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, $ = Array.isArray, W = console.createTask ? console.createTask : function() {
244
+ var c = En, u = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), v = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), M = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, $ = Array.isArray, W = console.createTask ? console.createTask : function() {
245
245
  return null;
246
246
  };
247
247
  c = {
@@ -342,7 +342,7 @@ function Gn(t) {
342
342
  }
343
343
  const Ze = G(function t({ nodeId: e, context: n }) {
344
344
  const r = Z(n.store, e), o = r ? Kn(r) : [], s = Gn(o), i = V(
345
- () => o.length === 0 ? null : o.map((b) => /* @__PURE__ */ w.jsx(t, { nodeId: b.id, context: n }, b.id)),
345
+ () => o.length === 0 ? null : o.map((g) => /* @__PURE__ */ w.jsx(t, { nodeId: g.id, context: n }, g.id)),
346
346
  // eslint-disable-next-line react-hooks/exhaustive-deps
347
347
  [s, n]
348
348
  );
@@ -365,37 +365,37 @@ function Xn(t, e) {
365
365
  const Hn = G(function({ store: e, library: n, viewId: r, emptyFallback: o = null, onAction: s, client: i, video: a }) {
366
366
  const { rootViewId: l, rootNodeId: h } = Bn(e, r), f = E(s);
367
367
  f.current = s;
368
- const b = E(i);
369
- b.current = i;
368
+ const g = E(i);
369
+ g.current = i;
370
370
  const m = E(a);
371
371
  m.current = a;
372
- const c = j((g, p) => {
373
- if (!g)
372
+ const c = j((y, p) => {
373
+ if (!y)
374
374
  return;
375
375
  const S = Wn(p);
376
- f.current?.(g, S);
376
+ f.current?.(y, S);
377
377
  }, []), u = V(() => {
378
- const g = {
378
+ const y = {
379
379
  store: e,
380
380
  library: n,
381
381
  handlerCache: e.handlerCache,
382
382
  // Access payloads from store at call time, not captured snapshot
383
383
  getPayload: (p) => e.getSnapshot().payloads.get(p),
384
- renderChildren: (p) => zn(p, g),
384
+ renderChildren: (p) => zn(p, y),
385
385
  renderView: (p) => {
386
386
  const S = e.getSnapshot().views.get(p);
387
- return S ? /* @__PURE__ */ w.jsx(Ze, { nodeId: S.id, context: g }) : null;
387
+ return S ? /* @__PURE__ */ w.jsx(Ze, { nodeId: S.id, context: y }) : null;
388
388
  },
389
389
  dispatchAction: c,
390
390
  // Access client/video via refs to avoid context recreation
391
391
  get client() {
392
- return b.current;
392
+ return g.current;
393
393
  },
394
394
  get video() {
395
395
  return m.current;
396
396
  }
397
397
  };
398
- return g;
398
+ return y;
399
399
  }, [e, n, c]);
400
400
  return !l || !h ? o : /* @__PURE__ */ w.jsx("div", { "data-ikon-view-id": l, style: { display: "contents" }, children: /* @__PURE__ */ w.jsx(Ze, { nodeId: h, context: u }) });
401
401
  }, Xn);
@@ -439,13 +439,13 @@ function Jn() {
439
439
  n && !r.includes(n) && (n.style.outline = "", n.style.outlineOffset = ""), n = null, o.style.display = "none";
440
440
  }
441
441
  function i(c) {
442
- for (const g of r)
443
- g !== n && (g.style.outline = "", g.style.outlineOffset = "");
442
+ for (const y of r)
443
+ y !== n && (y.style.outline = "", y.style.outlineOffset = "");
444
444
  r = [];
445
445
  const u = new Set(c);
446
- for (const g of Array.from(document.querySelectorAll("[data-ikon-source]"))) {
447
- const p = g.getAttribute("data-ikon-source") ?? "";
448
- u.has(p) && (g.style.outline = "2px solid #a6e3a1", g.style.outlineOffset = "1px", r.push(g));
446
+ for (const y of Array.from(document.querySelectorAll("[data-ikon-source]"))) {
447
+ const p = y.getAttribute("data-ikon-source") ?? "";
448
+ u.has(p) && (y.style.outline = "2px solid #a6e3a1", y.style.outlineOffset = "1px", r.push(y));
449
449
  }
450
450
  }
451
451
  function a(c) {
@@ -455,8 +455,8 @@ function Jn() {
455
455
  if (!u || u === n)
456
456
  return;
457
457
  s(), n = u, n.style.outline = "2px solid #89b4fa", n.style.outlineOffset = "1px";
458
- const g = u.getAttribute("data-ikon-source") ?? "";
459
- o.textContent = g, o.style.display = "block";
458
+ const y = u.getAttribute("data-ikon-source") ?? "";
459
+ o.textContent = y, o.style.display = "block";
460
460
  const p = u.getBoundingClientRect();
461
461
  o.style.left = `${p.left}px`, o.style.top = `${Math.max(0, p.top - 24)}px`;
462
462
  }
@@ -472,24 +472,24 @@ function Jn() {
472
472
  if (!u)
473
473
  return;
474
474
  c.preventDefault(), c.stopPropagation();
475
- const g = {
475
+ const y = {
476
476
  sourceMarker: u.getAttribute("data-ikon-source") ?? "",
477
477
  tagName: u.tagName.toLowerCase(),
478
478
  textContent: (u.textContent ?? "").trim().substring(0, 200)
479
479
  };
480
- window.dispatchEvent(new CustomEvent("ikon-inspect-select", { detail: g })), window.parent.postMessage({ type: "ikon-element-selected", payload: g }, "*");
480
+ window.dispatchEvent(new CustomEvent("ikon-inspect-select", { detail: y })), window.parent.postMessage({ type: "ikon-element-selected", payload: y }, "*");
481
481
  }
482
482
  function f(c, u) {
483
483
  return document.elementFromPoint(c, u)?.closest?.("[data-ikon-source]");
484
484
  }
485
- function b(c) {
485
+ function g(c) {
486
486
  if (c === n || (s(), !c))
487
487
  return;
488
488
  n = c, n.style.outline = `2px solid ${r.includes(c) ? "#a6e3a1" : "#89b4fa"}`, n.style.outlineOffset = "1px";
489
489
  const u = c.getAttribute("data-ikon-source") ?? "";
490
490
  o.textContent = u, o.style.display = "block";
491
- const g = c.getBoundingClientRect();
492
- o.style.left = `${g.left}px`, o.style.top = `${Math.max(0, g.top - 24)}px`;
491
+ const y = c.getBoundingClientRect();
492
+ o.style.left = `${y.left}px`, o.style.top = `${Math.max(0, y.top - 24)}px`;
493
493
  }
494
494
  function m(c) {
495
495
  if (c.data?.type === "ikon-inspect-mode") {
@@ -499,43 +499,43 @@ function Jn() {
499
499
  }
500
500
  if (c.data?.type === "ikon-inspect-at") {
501
501
  const u = f(c.data.x, c.data.y);
502
- b(u);
503
- const g = u?.getAttribute("data-ikon-source") ?? "";
502
+ g(u);
503
+ const y = u?.getAttribute("data-ikon-source") ?? "";
504
504
  window.parent.postMessage({
505
505
  type: "ikon-inspect-hover-result",
506
- payload: { sourceMarker: g }
506
+ payload: { sourceMarker: y }
507
507
  }, "*");
508
508
  }
509
509
  if (c.data?.type === "ikon-inspect-click") {
510
510
  const u = f(c.data.x, c.data.y);
511
511
  if (u) {
512
- const g = {
512
+ const y = {
513
513
  sourceMarker: u.getAttribute("data-ikon-source") ?? "",
514
514
  tagName: u.tagName.toLowerCase(),
515
515
  textContent: (u.textContent ?? "").trim().substring(0, 200)
516
516
  };
517
- window.dispatchEvent(new CustomEvent("ikon-inspect-select", { detail: g })), window.parent.postMessage({ type: "ikon-element-selected", payload: g }, "*");
517
+ window.dispatchEvent(new CustomEvent("ikon-inspect-select", { detail: y })), window.parent.postMessage({ type: "ikon-element-selected", payload: y }, "*");
518
518
  }
519
519
  }
520
520
  if (c.data?.type === "ikon-inspect-click-add") {
521
521
  const u = f(c.data.x, c.data.y);
522
522
  if (u) {
523
- const g = {
523
+ const y = {
524
524
  sourceMarker: u.getAttribute("data-ikon-source") ?? "",
525
525
  tagName: u.tagName.toLowerCase(),
526
526
  textContent: (u.textContent ?? "").trim().substring(0, 200)
527
527
  };
528
528
  window.parent.postMessage({
529
529
  type: "ikon-inspect-rect-result",
530
- payload: { elements: [g], append: !0 }
530
+ payload: { elements: [y], append: !0 }
531
531
  }, "*");
532
532
  }
533
533
  }
534
534
  if (c.data?.type === "ikon-inspect-rect") {
535
- const { x1: u, y1: g, x2: p, y2: S, append: y } = c.data, R = document.querySelectorAll("[data-ikon-source]"), v = [];
535
+ const { x1: u, y1: y, x2: p, y2: S, append: b } = c.data, R = document.querySelectorAll("[data-ikon-source]"), v = [];
536
536
  for (const T of Array.from(R)) {
537
537
  const U = T.getBoundingClientRect();
538
- U.right > u && U.left < p && U.bottom > g && U.top < S && v.push({
538
+ U.right > u && U.left < p && U.bottom > y && U.top < S && v.push({
539
539
  sourceMarker: T.getAttribute("data-ikon-source") ?? "",
540
540
  tagName: T.tagName.toLowerCase(),
541
541
  textContent: (T.textContent ?? "").trim().substring(0, 200)
@@ -543,7 +543,7 @@ function Jn() {
543
543
  }
544
544
  v.length > 0 && window.parent.postMessage({
545
545
  type: "ikon-inspect-rect-result",
546
- payload: { elements: v, append: y ?? !1 }
546
+ payload: { elements: v, append: b ?? !1 }
547
547
  }, "*");
548
548
  }
549
549
  c.data?.type === "ikon-inspect-highlight" && i(c.data.markers ?? []), c.data?.type === "ikon-inspect-clear" && s();
@@ -566,17 +566,17 @@ const Bt = G(function({ stores: e, registry: n, category: r = Qe, onAction: o, c
566
566
  () => {
567
567
  const m = [];
568
568
  for (const [c, u] of e) {
569
- const g = u.store.getSnapshot();
570
- Qn(u.category, r) && (!g.rootViewId || !g.views.has(g.rootViewId) || m.push({ key: c, store: u.store }));
569
+ const y = u.store.getSnapshot();
570
+ Qn(u.category, r) && (!y.rootViewId || !y.views.has(y.rootViewId) || m.push({ key: c, store: u.store }));
571
571
  }
572
572
  return m;
573
573
  },
574
574
  // eslint-disable-next-line react-hooks/exhaustive-deps
575
575
  [e, r, i]
576
- ), f = E(!1), b = h.length > 0;
576
+ ), f = E(!1), g = h.length > 0;
577
577
  return C(() => {
578
- b && !f.current && (f.current = !0, Zn.debug("First UI render"));
579
- }, [b]), b ? /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
578
+ g && !f.current && (f.current = !0, Zn.debug("First UI render"));
579
+ }, [g]), g ? /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
580
580
  /* @__PURE__ */ w.jsx(Jn, {}),
581
581
  h.map(({ key: m, store: c }) => /* @__PURE__ */ w.jsx(Hn, { store: c, library: n, onAction: a.current, client: l.current, video: l.current?.media?.video }, m))
582
582
  ] }) : null;
@@ -821,7 +821,7 @@ function ur(t, e) {
821
821
  }
822
822
  function dr() {
823
823
  const t = G(function({ nodeId: n, context: r }) {
824
- const o = Z(r.store, n), s = E(null), i = de(o?.props?.targetViewId), a = o?.props?.focusOnly, l = typeof a == "boolean" ? a : void 0, h = de(o?.props?.priority), f = de(o?.props?.key), b = o?.props?.preciseGeneratedAt;
824
+ const o = Z(r.store, n), s = E(null), i = de(o?.props?.targetViewId), a = o?.props?.focusOnly, l = typeof a == "boolean" ? a : void 0, h = de(o?.props?.priority), f = de(o?.props?.key), g = o?.props?.preciseGeneratedAt;
825
825
  return C(() => {
826
826
  if (typeof document > "u")
827
827
  return;
@@ -830,13 +830,13 @@ function dr() {
830
830
  return;
831
831
  let u;
832
832
  if (l !== !0) {
833
- const y = sr(c);
834
- if (y)
835
- if (cr(y), h === "Polite" && !ar(y))
836
- u = ur(y, c);
833
+ const b = sr(c);
834
+ if (b)
835
+ if (cr(b), h === "Polite" && !ar(b))
836
+ u = ur(b, c);
837
837
  else {
838
- const U = (y.parentElement ?? y).querySelector(`[${et}]`);
839
- U && (U.style.display = "none"), Wt(y, c);
838
+ const U = (b.parentElement ?? b).querySelector(`[${et}]`);
839
+ U && (U.style.display = "none"), Wt(b, c);
840
840
  }
841
841
  else typeof c.scrollIntoView == "function" && requestAnimationFrame(() => {
842
842
  const R = c.getBoundingClientRect().top, v = typeof window < "u" ? window.innerHeight : 0, T = Math.abs(R) > v * Ft ? "auto" : "smooth";
@@ -855,7 +855,7 @@ function dr() {
855
855
  c.focus();
856
856
  }
857
857
  return u;
858
- }, [l, h, i, f, b]), o ? /* @__PURE__ */ w.jsx(
858
+ }, [l, h, i, f, g]), o ? /* @__PURE__ */ w.jsx(
859
859
  "span",
860
860
  {
861
861
  ref: s,
@@ -890,6 +890,11 @@ function fr() {
890
890
  "data-ikon-source": s.sourceMarker,
891
891
  className: h,
892
892
  onClick: i ? a : void 0,
893
+ role: i && !l.role ? "button" : l.role,
894
+ tabIndex: i && l.tabIndex === void 0 ? 0 : l.tabIndex,
895
+ onKeyDown: i ? (g) => {
896
+ (g.key === "Enter" || g.key === " ") && (g.preventDefault(), a());
897
+ } : void 0,
893
898
  style: or(l.style, i ? "pointer" : void 0),
894
899
  children: f
895
900
  }
@@ -982,14 +987,14 @@ function Er() {
982
987
  });
983
988
  }, [a, l]), !s)
984
989
  return null;
985
- const h = wr(Sr(s.props?.className), o), f = wt(s.props?.preload), b = _e(s.props?.controls), m = _e(s.props?.loop), c = _e(s.props?.muted);
990
+ const h = wr(Sr(s.props?.className), o), f = wt(s.props?.preload), g = _e(s.props?.controls), m = _e(s.props?.loop), c = _e(s.props?.muted);
986
991
  return /* @__PURE__ */ w.jsx(
987
992
  "audio",
988
993
  {
989
994
  ref: i,
990
995
  src: l,
991
996
  ...f !== void 0 ? { preload: f } : {},
992
- ...b !== void 0 ? { controls: b } : {},
997
+ ...g !== void 0 ? { controls: g } : {},
993
998
  ...a !== void 0 ? { autoPlay: a } : {},
994
999
  ...m !== void 0 ? { loop: m } : {},
995
1000
  ...c !== void 0 ? { muted: c } : {},
@@ -1038,30 +1043,30 @@ function tt(t) {
1038
1043
  const Rr = "std.video-canvas", Ar = "std.video-url-player";
1039
1044
  function Tr() {
1040
1045
  const t = G(function({ nodeId: n, context: r, className: o }) {
1041
- const s = Z(r.store, n), i = E(null), a = E(null), l = r.video, h = r.client, f = s ? tt(s.props?.streamId) : void 0, b = s ? Ne(s.props?.width) : void 0, m = s ? Ne(s.props?.height) : void 0, c = s ? Yt(Kt(s.props?.className), o) : o, [, u] = x(0);
1046
+ const s = Z(r.store, n), i = E(null), a = E(null), l = r.video, h = r.client, f = s ? tt(s.props?.streamId) : void 0, g = s ? Ne(s.props?.width) : void 0, m = s ? Ne(s.props?.height) : void 0, c = s ? Yt(Kt(s.props?.className), o) : o, [, u] = x(0);
1042
1047
  C(() => {
1043
1048
  if (!h?.isWebRtcEnabled) return;
1044
1049
  const p = h.onWebRtcTrackMapChanged;
1045
1050
  return h.onWebRtcTrackMapChanged = (S) => {
1046
- p?.(S), S.kind === "video" && u((y) => y + 1);
1051
+ p?.(S), S.kind === "video" && u((b) => b + 1);
1047
1052
  }, () => {
1048
1053
  h.onWebRtcTrackMapChanged = p;
1049
1054
  };
1050
1055
  }, [h]);
1051
- const g = h?.isWebRtcEnabled && f ? h.getWebRtcVideoStreamByStreamId(f) : null;
1056
+ const y = h?.isWebRtcEnabled && f ? h.getWebRtcVideoStreamByStreamId(f) : null;
1052
1057
  return C(() => {
1053
1058
  const p = i.current;
1054
- if (!(!l || !p || !f || g))
1059
+ if (!(!l || !p || !f || y))
1055
1060
  return l.attachCanvas(f, p), () => {
1056
1061
  l.detachCanvas(f);
1057
1062
  };
1058
- }, [l, f, g]), C(() => {
1063
+ }, [l, f, y]), C(() => {
1059
1064
  const p = a.current;
1060
- if (!(!p || !g))
1061
- return p.srcObject = g, () => {
1065
+ if (!(!p || !y))
1066
+ return p.srcObject = y, () => {
1062
1067
  p.srcObject = null;
1063
1068
  };
1064
- }, [g]), s ? g ? /* @__PURE__ */ w.jsx(
1069
+ }, [y]), s ? y ? /* @__PURE__ */ w.jsx(
1065
1070
  "video",
1066
1071
  {
1067
1072
  ref: a,
@@ -1072,7 +1077,7 @@ function Tr() {
1072
1077
  "data-ikon-source": s.sourceMarker,
1073
1078
  "data-ikon-video-stream-id": f,
1074
1079
  className: c,
1075
- ...b ? { width: b } : {},
1080
+ ...g ? { width: g } : {},
1076
1081
  ...m ? { height: m } : {}
1077
1082
  },
1078
1083
  f
@@ -1084,7 +1089,7 @@ function Tr() {
1084
1089
  "data-ikon-source": s.sourceMarker,
1085
1090
  "data-ikon-video-stream-id": f,
1086
1091
  className: c,
1087
- ...b ? { width: b } : {},
1092
+ ...g ? { width: g } : {},
1088
1093
  ...m ? { height: m } : {}
1089
1094
  },
1090
1095
  f
@@ -1119,19 +1124,19 @@ function Cr() {
1119
1124
  });
1120
1125
  }, [a, l]), !s)
1121
1126
  return null;
1122
- const h = Yt(Kt(s.props?.className), o), f = tt(s.props?.poster), b = be(s.props?.controls), m = be(s.props?.loop), c = be(s.props?.muted), u = be(s.props?.playsInline), g = Ne(s.props?.width), p = Ne(s.props?.height), S = s.children?.length ? r.renderChildren(s.children) : void 0;
1127
+ const h = Yt(Kt(s.props?.className), o), f = tt(s.props?.poster), g = be(s.props?.controls), m = be(s.props?.loop), c = be(s.props?.muted), u = be(s.props?.playsInline), y = Ne(s.props?.width), p = Ne(s.props?.height), S = s.children?.length ? r.renderChildren(s.children) : void 0;
1123
1128
  return /* @__PURE__ */ w.jsx(
1124
1129
  "video",
1125
1130
  {
1126
1131
  ref: i,
1127
1132
  src: l,
1128
1133
  poster: f,
1129
- ...b !== void 0 ? { controls: b } : {},
1134
+ ...g !== void 0 ? { controls: g } : {},
1130
1135
  ...a !== void 0 ? { autoPlay: a } : {},
1131
1136
  ...m !== void 0 ? { loop: m } : {},
1132
1137
  ...c !== void 0 ? { muted: c } : {},
1133
1138
  ...u !== void 0 ? { playsInline: u } : {},
1134
- ...g ? { width: g } : {},
1139
+ ...y ? { width: y } : {},
1135
1140
  ...p ? { height: p } : {},
1136
1141
  "data-ikon-node-id": s.id,
1137
1142
  "data-ikon-source": s.sourceMarker,
@@ -1343,8 +1348,8 @@ class Pr {
1343
1348
  h && e.uniform3f(h, o, s, 1);
1344
1349
  const f = this.uniformLocations.get("iTime");
1345
1350
  f && e.uniform1f(f, a);
1346
- const b = this.uniformLocations.get("iTimeDelta");
1347
- b && e.uniform1f(b, l);
1351
+ const g = this.uniformLocations.get("iTimeDelta");
1352
+ g && e.uniform1f(g, l);
1348
1353
  const m = this.uniformLocations.get("iFrame");
1349
1354
  m && e.uniform1i(m, this.frameCount);
1350
1355
  const c = this.uniformLocations.get("iMouse");
@@ -1356,40 +1361,40 @@ class Pr {
1356
1361
  }
1357
1362
  for (let S = 0; S < le; S++) {
1358
1363
  e.activeTexture(e.TEXTURE0 + S), e.bindTexture(e.TEXTURE_2D, this.channels[S].texture);
1359
- const y = this.uniformLocations.get(`iChannel${S}`);
1360
- y && e.uniform1i(y, S);
1364
+ const b = this.uniformLocations.get(`iChannel${S}`);
1365
+ b && e.uniform1i(b, S);
1361
1366
  }
1362
- const g = this.uniformLocations.get("iChannelResolution");
1363
- g && e.uniform3fv(g, this.channelResolution);
1367
+ const y = this.uniformLocations.get("iChannelResolution");
1368
+ y && e.uniform3fv(y, this.channelResolution);
1364
1369
  const p = this.uniformLocations.get("iChannelTime");
1365
1370
  p && e.uniform1fv(p, this.channelTime);
1366
- for (const [S, y] of Object.entries(this.customUniforms)) {
1371
+ for (const [S, b] of Object.entries(this.customUniforms)) {
1367
1372
  const R = this.uniformLocations.get(S);
1368
1373
  if (R)
1369
- switch (y.type) {
1374
+ switch (b.type) {
1370
1375
  case "float":
1371
- e.uniform1f(R, y.value);
1376
+ e.uniform1f(R, b.value);
1372
1377
  break;
1373
1378
  case "vec2": {
1374
- const v = y.value;
1379
+ const v = b.value;
1375
1380
  e.uniform2f(R, v[0], v[1]);
1376
1381
  break;
1377
1382
  }
1378
1383
  case "vec3": {
1379
- const v = y.value;
1384
+ const v = b.value;
1380
1385
  e.uniform3f(R, v[0], v[1], v[2]);
1381
1386
  break;
1382
1387
  }
1383
1388
  case "vec4": {
1384
- const v = y.value;
1389
+ const v = b.value;
1385
1390
  e.uniform4f(R, v[0], v[1], v[2], v[3]);
1386
1391
  break;
1387
1392
  }
1388
1393
  case "int":
1389
- e.uniform1i(R, y.value);
1394
+ e.uniform1i(R, b.value);
1390
1395
  break;
1391
1396
  case "bool":
1392
- e.uniform1i(R, y.value ? 1 : 0);
1397
+ e.uniform1i(R, b.value ? 1 : 0);
1393
1398
  break;
1394
1399
  }
1395
1400
  }
@@ -1485,13 +1490,13 @@ function Fr(t, e) {
1485
1490
  const Wr = "std.shadertoy-canvas";
1486
1491
  function Vr() {
1487
1492
  const t = G(function({ nodeId: n, context: r, className: o }) {
1488
- const s = Z(r.store, n), i = E(null), a = E(null), l = E(null), h = E(0), f = E(""), b = E({}), m = E({
1493
+ const s = Z(r.store, n), i = E(null), a = E(null), l = E(null), h = E(0), f = E(""), g = E({}), m = E({
1489
1494
  x: 0,
1490
1495
  y: 0,
1491
1496
  clickX: 0,
1492
1497
  clickY: 0,
1493
1498
  isDown: !1
1494
- }), c = s ? Dr(s.props?.shaderSource) : "", u = s ? Ke(s.props?.fps) ?? 60 : 60, g = s?.props?.uniforms, p = V(() => $r(g), [g]), S = s?.props?.channels, y = V(() => Br(S), [S]), R = s ? jr(s.props?.enableMouse) ?? !0 : !0, v = s ? Ke(s.props?.width) : void 0, T = s ? Ke(s.props?.height) : void 0, U = s ? Mr(Ur(s.props?.className), o) : o;
1499
+ }), c = s ? Dr(s.props?.shaderSource) : "", u = s ? Ke(s.props?.fps) ?? 60 : 60, y = s?.props?.uniforms, p = V(() => $r(y), [y]), S = s?.props?.channels, b = V(() => Br(S), [S]), R = s ? jr(s.props?.enableMouse) ?? !0 : !0, v = s ? Ke(s.props?.width) : void 0, T = s ? Ke(s.props?.height) : void 0, U = s ? Mr(Ur(s.props?.className), o) : o;
1495
1500
  C(() => {
1496
1501
  const I = i.current;
1497
1502
  if (I) {
@@ -1509,18 +1514,18 @@ function Vr() {
1509
1514
  const I = a.current;
1510
1515
  if (!(!I || !c) && f.current !== c)
1511
1516
  if (I.compile(c, p))
1512
- f.current = c, b.current = p;
1517
+ f.current = c, g.current = p;
1513
1518
  else {
1514
1519
  const M = I.getError();
1515
1520
  console.error("[ShadertoyRenderer] Shader compilation failed:", M);
1516
1521
  }
1517
1522
  }, [c, p]), C(() => {
1518
1523
  const I = a.current;
1519
- !I || !f.current || Fr(b.current, p) || (I.setCustomUniforms(p), b.current = p);
1524
+ !I || !f.current || Fr(g.current, p) || (I.setCustomUniforms(p), g.current = p);
1520
1525
  }, [p]), C(() => {
1521
1526
  const I = a.current;
1522
- I && I.setChannels(y);
1523
- }, [y]), C(() => {
1527
+ I && I.setChannels(b);
1528
+ }, [b]), C(() => {
1524
1529
  const I = a.current;
1525
1530
  if (!I || !f.current) return;
1526
1531
  const P = 1e3 / u, M = (B) => {
@@ -1703,41 +1708,41 @@ function At(t) {
1703
1708
  }
1704
1709
  function Tt(t, e, n, r) {
1705
1710
  const f = new Float32Array(11);
1706
- function b(p, S, y) {
1707
- return ((3 * S - 3 * y + 1) * p + (3 * y - 6 * S)) * p * p + 3 * S * p;
1711
+ function g(p, S, b) {
1712
+ return ((3 * S - 3 * b + 1) * p + (3 * b - 6 * S)) * p * p + 3 * S * p;
1708
1713
  }
1709
- function m(p, S, y) {
1710
- return 3 * (3 * S - 3 * y + 1) * p * p + 2 * (3 * y - 6 * S) * p + 3 * S;
1714
+ function m(p, S, b) {
1715
+ return 3 * (3 * S - 3 * b + 1) * p * p + 2 * (3 * b - 6 * S) * p + 3 * S;
1711
1716
  }
1712
1717
  function c(p, S) {
1713
- for (let y = 0; y < 4; y += 1) {
1718
+ for (let b = 0; b < 4; b += 1) {
1714
1719
  const R = m(S, t, n);
1715
1720
  if (R === 0)
1716
1721
  return S;
1717
- const v = b(S, t, n) - p;
1722
+ const v = g(S, t, n) - p;
1718
1723
  S -= v / R;
1719
1724
  }
1720
1725
  return S;
1721
1726
  }
1722
- function u(p, S, y) {
1727
+ function u(p, S, b) {
1723
1728
  let R = 0, v = 0, T = 0;
1724
1729
  do
1725
- v = S + (y - S) / 2, R = b(v, t, n) - p, R > 0 ? y = v : S = v;
1730
+ v = S + (b - S) / 2, R = g(v, t, n) - p, R > 0 ? b = v : S = v;
1726
1731
  while (Math.abs(R) > 1e-7 && ++T < 10);
1727
1732
  return v;
1728
1733
  }
1729
- function g(p) {
1730
- let S = 0, y = 1;
1734
+ function y(p) {
1735
+ let S = 0, b = 1;
1731
1736
  const R = 10;
1732
- for (; y !== R && f[y] <= p; y += 1)
1737
+ for (; b !== R && f[b] <= p; b += 1)
1733
1738
  S += 0.1;
1734
- y -= 1;
1735
- const v = (p - f[y]) / (f[y + 1] - f[y]), T = S + v * 0.1, U = m(T, t, n);
1739
+ b -= 1;
1740
+ const v = (p - f[b]) / (f[b + 1] - f[b]), T = S + v * 0.1, U = m(T, t, n);
1736
1741
  return U >= 1e-3 ? c(p, T) : U === 0 ? T : u(p, S, S + 0.1);
1737
1742
  }
1738
1743
  for (let p = 0; p < 11; p += 1)
1739
- f[p] = b(p * 0.1, t, n);
1740
- return (p) => p <= 0 ? 0 : p >= 1 ? 1 : b(g(p), e, r);
1744
+ f[p] = g(p * 0.1, t, n);
1745
+ return (p) => p <= 0 ? 0 : p >= 1 ? 1 : g(y(p), e, r);
1741
1746
  }
1742
1747
  function Zr(t) {
1743
1748
  const e = /steps\(\s*([0-9]+)\s*(?:,\s*([a-z-]+)\s*)?\)/i.exec(t);
@@ -2166,8 +2171,8 @@ function xs(t, e) {
2166
2171
  return r ? Ot(s) : t;
2167
2172
  const a = Ao(i), l = { letter: 0, word: 0, line: 0, paragraph: 0, br: 0, emoji: 0 }, h = [];
2168
2173
  for (const f of a) {
2169
- const b = co(f, n, l);
2170
- h.push(...b);
2174
+ const g = co(f, n, l);
2175
+ h.push(...g);
2171
2176
  }
2172
2177
  return h;
2173
2178
  }
@@ -2546,14 +2551,14 @@ async function Qt(t, e) {
2546
2551
  try {
2547
2552
  i = await fetch(s, r);
2548
2553
  } catch (h) {
2549
- const f = h instanceof Error ? `${h.name}: ${h.message}` : String(h), b = Cn(), m = b ? `${b}/anonymous` : null;
2554
+ const f = h instanceof Error ? `${h.name}: ${h.message}` : String(h), g = Cn(), m = g ? `${g}/anonymous` : null;
2550
2555
  if (m && m !== s) {
2551
2556
  we.warn(`Anonymous auth could not reach ${s} (${f}); falling back to same-origin ${m}`);
2552
2557
  try {
2553
2558
  i = await fetch(m, r);
2554
2559
  } catch (c) {
2555
- const u = c instanceof Error ? `${c.name}: ${c.message}` : String(c), g = await xt(e);
2556
- throw we.error(`Anonymous auth failed on both direct (${s}: ${f}) and same-origin (${m}: ${u}). ${g}`), new Error(`Anonymous auth unreachable: direct ${s} (${f}) and same-origin ${m} (${u})`);
2560
+ const u = c instanceof Error ? `${c.name}: ${c.message}` : String(c), y = await xt(e);
2561
+ throw we.error(`Anonymous auth failed on both direct (${s}: ${f}) and same-origin (${m}: ${u}). ${y}`), new Error(`Anonymous auth unreachable: direct ${s} (${f}) and same-origin ${m} (${u})`);
2557
2562
  }
2558
2563
  } else {
2559
2564
  const c = await xt(e);
@@ -2868,10 +2873,10 @@ async function Yo(t) {
2868
2873
  const { id: i, rawId: a, response: l, type: h } = s;
2869
2874
  let f;
2870
2875
  typeof l.getTransports == "function" && (f = l.getTransports());
2871
- let b;
2876
+ let g;
2872
2877
  if (typeof l.getPublicKeyAlgorithm == "function")
2873
2878
  try {
2874
- b = l.getPublicKeyAlgorithm();
2879
+ g = l.getPublicKeyAlgorithm();
2875
2880
  } catch (u) {
2876
2881
  He("getPublicKeyAlgorithm()", u);
2877
2882
  }
@@ -2897,7 +2902,7 @@ async function Yo(t) {
2897
2902
  attestationObject: X(l.attestationObject),
2898
2903
  clientDataJSON: X(l.clientDataJSON),
2899
2904
  transports: f,
2900
- publicKeyAlgorithm: b,
2905
+ publicKeyAlgorithm: g,
2901
2906
  publicKey: m,
2902
2907
  authenticatorData: c
2903
2908
  },
@@ -2988,7 +2993,7 @@ async function Xo(t) {
2988
2993
  }
2989
2994
  if (!a)
2990
2995
  throw new Error("Authentication was not completed");
2991
- const { id: l, rawId: h, response: f, type: b } = a;
2996
+ const { id: l, rawId: h, response: f, type: g } = a;
2992
2997
  let m;
2993
2998
  return f.userHandle && (m = X(f.userHandle)), {
2994
2999
  id: l,
@@ -2999,7 +3004,7 @@ async function Xo(t) {
2999
3004
  signature: X(f.signature),
3000
3005
  userHandle: m
3001
3006
  },
3002
- type: b,
3007
+ type: g,
3003
3008
  clientExtensionResults: a.getClientExtensionResults(),
3004
3009
  authenticatorAttachment: rn(a.authenticatorAttachment)
3005
3010
  };
@@ -3016,27 +3021,27 @@ function Ns({ children: t, config: e }) {
3016
3021
  (() => {
3017
3022
  const m = e.devLoginRunId, c = !!m && xo() === m;
3018
3023
  m && Oo(m);
3019
- const u = !!e.devLoginToken && !!m && !c && !qt(e.devLoginToken), g = Uo();
3020
- if (g) {
3024
+ const u = !!e.devLoginToken && !!m && !c && !qt(e.devLoginToken), y = Uo();
3025
+ if (y) {
3021
3026
  Nt(), r({
3022
3027
  isAuthenticated: !1,
3023
3028
  isLoading: !1,
3024
3029
  user: null,
3025
- error: g
3030
+ error: y
3026
3031
  });
3027
3032
  return;
3028
3033
  }
3029
3034
  const p = Po();
3030
3035
  if (p) {
3031
- const y = {
3036
+ const b = {
3032
3037
  token: p.token,
3033
3038
  provider: p.provider,
3034
3039
  authenticatedAt: Date.now()
3035
3040
  };
3036
- he(y), Nt(), r({
3041
+ he(b), Nt(), r({
3037
3042
  isAuthenticated: !0,
3038
3043
  isLoading: !1,
3039
- user: ne(y),
3044
+ user: ne(b),
3040
3045
  error: null
3041
3046
  });
3042
3047
  return;
@@ -3052,15 +3057,15 @@ function Ns({ children: t, config: e }) {
3052
3057
  return;
3053
3058
  }
3054
3059
  if (u && e.devLoginToken) {
3055
- const y = {
3060
+ const b = {
3056
3061
  token: e.devLoginToken,
3057
3062
  provider: "dev",
3058
3063
  authenticatedAt: Date.now()
3059
3064
  };
3060
- he(y), r({
3065
+ he(b), r({
3061
3066
  isAuthenticated: !0,
3062
3067
  isLoading: !1,
3063
- user: ne(y),
3068
+ user: ne(b),
3064
3069
  error: null
3065
3070
  });
3066
3071
  return;
@@ -3074,7 +3079,7 @@ function Ns({ children: t, config: e }) {
3074
3079
  })();
3075
3080
  }, [e.devLoginToken, e.devLoginRunId]);
3076
3081
  const o = j(
3077
- async (b) => {
3082
+ async (g) => {
3078
3083
  if (!e.spaceId) {
3079
3084
  r((c) => ({
3080
3085
  ...c,
@@ -3083,7 +3088,7 @@ function Ns({ children: t, config: e }) {
3083
3088
  return;
3084
3089
  }
3085
3090
  const m = await ve(e.authUrl);
3086
- if (b === "guest") {
3091
+ if (g === "guest") {
3087
3092
  r((c) => ({ ...c, isLoading: !0 }));
3088
3093
  try {
3089
3094
  const c = await Qt(e.spaceId, m);
@@ -3102,14 +3107,14 @@ function Ns({ children: t, config: e }) {
3102
3107
  }
3103
3108
  return;
3104
3109
  }
3105
- if (b === "passkey") {
3110
+ if (g === "passkey") {
3106
3111
  r((c) => ({ ...c, isLoading: !0, error: null }));
3107
3112
  try {
3108
- const c = await $o(m), u = await Xo({ optionsJSON: c }), g = await Bo(m, u);
3113
+ const c = await $o(m), u = await Xo({ optionsJSON: c }), y = await Bo(m, u);
3109
3114
  r({
3110
3115
  isAuthenticated: !0,
3111
3116
  isLoading: !1,
3112
- user: ne(g),
3117
+ user: ne(y),
3113
3118
  error: null
3114
3119
  });
3115
3120
  } catch (c) {
@@ -3121,24 +3126,24 @@ function Ns({ children: t, config: e }) {
3121
3126
  }
3122
3127
  return;
3123
3128
  }
3124
- if (b === "email")
3129
+ if (g === "email")
3125
3130
  throw new Error("login('email') is not supported. Use requestEmailCode()/submitEmailCode() from useAuth() instead.");
3126
- window.location.href = Mo(b, e.spaceId, m);
3131
+ window.location.href = Mo(g, e.spaceId, m);
3127
3132
  },
3128
3133
  [e.authUrl, e.spaceId]
3129
3134
  ), s = j(
3130
- async (b) => {
3135
+ async (g) => {
3131
3136
  if (!e.spaceId)
3132
3137
  throw r((c) => ({ ...c, error: "Space ID is not configured" })), new Error("Space ID is not configured");
3133
3138
  const m = await ve(e.authUrl);
3134
- await No({ email: b, spaceId: e.spaceId, authUrl: m });
3139
+ await No({ email: g, spaceId: e.spaceId, authUrl: m });
3135
3140
  },
3136
3141
  [e.authUrl, e.spaceId]
3137
3142
  ), i = j(
3138
- async (b, m) => {
3143
+ async (g, m) => {
3139
3144
  r((c) => ({ ...c, isLoading: !0, error: null }));
3140
3145
  try {
3141
- const c = await ve(e.authUrl), u = await Lo({ email: b, code: m, authUrl: c });
3146
+ const c = await ve(e.authUrl), u = await Lo({ email: g, code: m, authUrl: c });
3142
3147
  r({
3143
3148
  isAuthenticated: !0,
3144
3149
  isLoading: !1,
@@ -3147,7 +3152,7 @@ function Ns({ children: t, config: e }) {
3147
3152
  });
3148
3153
  } catch (c) {
3149
3154
  const u = c instanceof Error ? c.message : "Code verification failed";
3150
- throw r((g) => ({ ...g, isLoading: !1, error: u })), c;
3155
+ throw r((y) => ({ ...y, isLoading: !1, error: u })), c;
3151
3156
  }
3152
3157
  },
3153
3158
  [e.authUrl]
@@ -3159,15 +3164,15 @@ function Ns({ children: t, config: e }) {
3159
3164
  error: null
3160
3165
  });
3161
3166
  }, []), l = j(
3162
- async (b) => {
3167
+ async (g) => {
3163
3168
  const m = await ve(e.authUrl);
3164
3169
  r((c) => ({ ...c, isLoading: !0, error: null }));
3165
3170
  try {
3166
- const c = await Do(m), u = await Yo({ optionsJSON: c }), g = await jo(m, u, b);
3171
+ const c = await Do(m), u = await Yo({ optionsJSON: c }), y = await jo(m, u, g);
3167
3172
  r({
3168
3173
  isAuthenticated: !0,
3169
3174
  isLoading: !1,
3170
- user: ne(g),
3175
+ user: ne(y),
3171
3176
  error: null
3172
3177
  });
3173
3178
  } catch (c) {
@@ -3352,11 +3357,11 @@ function Ps({
3352
3357
  renderIdle: l,
3353
3358
  renderConnecting: h,
3354
3359
  renderConnectingSlow: f,
3355
- renderConnected: b,
3360
+ renderConnected: g,
3356
3361
  renderOffline: m,
3357
3362
  renderError: c
3358
3363
  }) {
3359
- const u = E(!1), g = (() => {
3364
+ const u = E(!1), y = (() => {
3360
3365
  switch (t) {
3361
3366
  case "waitingForExternalConnectUrl":
3362
3367
  case "connecting":
@@ -3366,7 +3371,7 @@ function Ps({
3366
3371
  if (!n || !o || !s) return null;
3367
3372
  t === "reconnecting" && (u.current = !0);
3368
3373
  const p = o.size > 0;
3369
- return p && (u.current = !1), b({
3374
+ return p && (u.current = !1), g({
3370
3375
  stores: o,
3371
3376
  registry: s,
3372
3377
  client: i,
@@ -3386,7 +3391,7 @@ function Ps({
3386
3391
  }
3387
3392
  })();
3388
3393
  return /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
3389
- g,
3394
+ y,
3390
3395
  /* @__PURE__ */ w.jsx(cn, { state: t })
3391
3396
  ] });
3392
3397
  }
@@ -3400,8 +3405,8 @@ function ns() {
3400
3405
  return window.__IKON_LOCAL_IKON_SERVER_CONFIG__;
3401
3406
  }
3402
3407
  function Us(t) {
3403
- const { authConfig: e, modules: n, timeouts: r, backgroundAudio: o, webRtc: s, audio: i, video: a, websocket: l, webtransport: h, proxy: f, liveSnapshot: b, bootSnapshot: m } = t, c = e === void 0 ? ts() ?? null : e, u = ns(), g = qo(), p = E(null), S = E(null), y = E(null), R = E(!1), v = E(!1), T = E(o), U = E(r), ee = E(s), te = E(i), z = E(a), I = E(l), P = E(h), M = E(f), B = E(b), $ = E(m), W = E("local"), K = E(void 0);
3404
- T.current = o, U.current = r, ee.current = s, te.current = i, z.current = a, I.current = l, P.current = h, M.current = f, B.current = b, $.current = m;
3408
+ const { authConfig: e, modules: n, timeouts: r, backgroundAudio: o, webRtc: s, audio: i, video: a, websocket: l, webtransport: h, proxy: f, liveSnapshot: g, bootSnapshot: m } = t, c = e === void 0 ? ts() ?? null : e, u = ns(), y = qo(), p = E(null), S = E(null), b = E(null), R = E(!1), v = E(!1), T = E(o), U = E(r), ee = E(s), te = E(i), z = E(a), I = E(l), P = E(h), M = E(f), B = E(g), $ = E(m), W = E("local"), K = E(void 0);
3409
+ T.current = o, U.current = r, ee.current = s, te.current = i, z.current = a, I.current = l, P.current = h, M.current = f, B.current = g, $.current = m;
3405
3410
  const [H, Ee] = x("connecting"), [Re, pe] = x(!1), [d, A] = x(!1), [O, N] = x(null), [se, me] = x(null), [L, Q] = x(!1), [ie, Me] = x(null), [ae, un] = x(null), [De, dt] = x(!1), je = E(!1), [dn, fn] = x(0), Y = V(() => {
3406
3411
  try {
3407
3412
  const _ = In();
@@ -3468,10 +3473,10 @@ function Us(t) {
3468
3473
  const hn = oo(ie);
3469
3474
  C(() => {
3470
3475
  if (!R.current) {
3471
- if (R.current = !0, y.current = Xr(), n)
3476
+ if (R.current = !0, b.current = Xr(), n)
3472
3477
  for (const _ of n)
3473
- _(y.current);
3474
- y.current.loadRegisteredModules().catch((_) => {
3478
+ _(b.current);
3479
+ b.current.loadRegisteredModules().catch((_) => {
3475
3480
  Oe.error("Failed to load UI modules", _);
3476
3481
  });
3477
3482
  }
@@ -3512,7 +3517,7 @@ function Us(t) {
3512
3517
  Q(!0);
3513
3518
  return;
3514
3519
  }
3515
- J instanceof Un && !v.current && (v.current = !0, Oe.warn("Auth session appears stale, clearing and retrying"), Ut.clearAll(), g ? g.logout() : (Le(), fn((bn) => bn + 1)));
3520
+ J instanceof Un && !v.current && (v.current = !0, Oe.warn("Auth session appears stale, clearing and retrying"), Ut.clearAll(), y ? y.logout() : (Le(), fn((bn) => bn + 1)));
3516
3521
  }), () => {
3517
3522
  yn(), _.disconnect(), p.current = null, ke.dispose(), S.current = null;
3518
3523
  };
@@ -3539,10 +3544,10 @@ function Us(t) {
3539
3544
  isServerFull: L,
3540
3545
  stores: hn,
3541
3546
  client: p.current,
3542
- registry: y.current,
3547
+ registry: b.current,
3543
3548
  clientRef: p,
3544
3549
  uiRef: S,
3545
- registryRef: y,
3550
+ registryRef: b,
3546
3551
  onAction: pn,
3547
3552
  isReady: mn,
3548
3553
  isLive: Ve,
@@ -3572,13 +3577,13 @@ function os(t = 5, e = 5e3) {
3572
3577
  (l) => {
3573
3578
  if (!$t())
3574
3579
  return;
3575
- const h = `toast-${++rs}`, f = l.level === Je.ERROR ? "error" : "warn", b = {
3580
+ const h = `toast-${++rs}`, f = l.level === Je.ERROR ? "error" : "warn", g = {
3576
3581
  id: h,
3577
3582
  level: f,
3578
3583
  message: l.message,
3579
3584
  component: l.component
3580
3585
  };
3581
- r((c) => [...c, b].slice(-t));
3586
+ r((c) => [...c, g].slice(-t));
3582
3587
  const m = setTimeout(() => {
3583
3588
  s(h);
3584
3589
  }, e);
@@ -3635,37 +3640,37 @@ const ue = oe("IkonDebug"), is = {
3635
3640
  Digit0: "clear"
3636
3641
  }, as = "Digit5", cs = "Digit6", ls = "Synthetic debug error (Ctrl+Shift+5)", us = "Synthetic debug access-denied (Ctrl+Shift+6)", ds = 5e3;
3637
3642
  function fs(t) {
3638
- const e = $t(), [n, r] = x(null), [o, s] = x(!1), [i, a] = x(null), [l, h] = x(null), [f, b] = x(!1), [m, c] = x(!1), [u, g] = x(!1);
3643
+ const e = $t(), [n, r] = x(null), [o, s] = x(!1), [i, a] = x(null), [l, h] = x(null), [f, g] = x(!1), [m, c] = x(!1), [u, y] = x(!1);
3639
3644
  return C(() => {
3640
3645
  if (!e)
3641
3646
  return;
3642
- const S = (y) => {
3643
- if (!y.ctrlKey || !y.shiftKey)
3647
+ const S = (b) => {
3648
+ if (!b.ctrlKey || !b.shiftKey)
3644
3649
  return;
3645
- if (y.code === "KeyE") {
3646
- y.preventDefault(), b((T) => (ue.warn(`Empty-stores override: ${T ? "off" : "on"}`), !T));
3650
+ if (b.code === "KeyE") {
3651
+ b.preventDefault(), g((T) => (ue.warn(`Empty-stores override: ${T ? "off" : "on"}`), !T));
3647
3652
  return;
3648
3653
  }
3649
- if (y.code === "Digit7") {
3650
- y.preventDefault(), c((T) => (ue.warn(`Branding-banner override: ${T ? "off" : "on"}`), !T));
3654
+ if (b.code === "Digit7") {
3655
+ b.preventDefault(), c((T) => (ue.warn(`Branding-banner override: ${T ? "off" : "on"}`), !T));
3651
3656
  return;
3652
3657
  }
3653
- if (y.code === "Digit8") {
3654
- y.preventDefault(), g((T) => (ue.warn(`Debug-overlay override: ${T ? "off" : "on"}`), !T));
3658
+ if (b.code === "Digit8") {
3659
+ b.preventDefault(), y((T) => (ue.warn(`Debug-overlay override: ${T ? "off" : "on"}`), !T));
3655
3660
  return;
3656
3661
  }
3657
- if (y.code === cs) {
3658
- y.preventDefault(), h(us), r(null), a(null), ue.warn("Forced access denied");
3662
+ if (b.code === cs) {
3663
+ b.preventDefault(), h(us), r(null), a(null), ue.warn("Forced access denied");
3659
3664
  return;
3660
3665
  }
3661
- const R = is[y.code];
3666
+ const R = is[b.code];
3662
3667
  if (R === void 0)
3663
3668
  return;
3664
- if (y.preventDefault(), R === "clear") {
3669
+ if (b.preventDefault(), R === "clear") {
3665
3670
  r(null), a(null), h(null), ue.warn("Cleared forced state");
3666
3671
  return;
3667
3672
  }
3668
- const v = y.code === as;
3673
+ const v = b.code === as;
3669
3674
  r(R), a(v ? ls : null), h(null), ue.warn(`Forced state: ${R}${v ? " (with error)" : ""}`);
3670
3675
  };
3671
3676
  return window.addEventListener("keydown", S), () => window.removeEventListener("keydown", S);
@@ -3698,8 +3703,8 @@ function gs(t, e) {
3698
3703
  return t === void 0 ? null : typeof t == "function" ? t(e) : t;
3699
3704
  }
3700
3705
  function js(t) {
3701
- const { connectingOverlay: e, reconnectingOverlay: n, offlineOverlay: r, accessDeniedScreen: o, ...s } = t, i = fs(s), { app: a } = i, { connectionState: l, isConnectingSlow: h, stores: f, registry: b, client: m, onAction: c, isReady: u, error: g, accessDeniedReason: p, brandingRequired: S } = a, y = S || i.forcedBranding, R = E(null);
3702
- if (f && b && (u || f.size > 0) && (R.current = { stores: f, registry: b, client: m }), p)
3706
+ const { connectingOverlay: e, reconnectingOverlay: n, offlineOverlay: r, accessDeniedScreen: o, ...s } = t, i = fs(s), { app: a } = i, { connectionState: l, isConnectingSlow: h, stores: f, registry: g, client: m, onAction: c, isReady: u, error: y, accessDeniedReason: p, brandingRequired: S } = a, b = S || i.forcedBranding, R = E(null);
3707
+ if (f && g && (u || f.size > 0) && (R.current = { stores: f, registry: g, client: m }), p)
3703
3708
  return gs(o, p);
3704
3709
  const v = R.current;
3705
3710
  let T = null;
@@ -3712,7 +3717,7 @@ function js(t) {
3712
3717
  T = ps(n);
3713
3718
  break;
3714
3719
  case "offline":
3715
- T = ms(r, g);
3720
+ T = ms(r, y);
3716
3721
  break;
3717
3722
  default:
3718
3723
  T = null;
@@ -3728,7 +3733,7 @@ function js(t) {
3728
3733
  }
3729
3734
  ),
3730
3735
  T,
3731
- y && /* @__PURE__ */ w.jsx(bs, {}),
3736
+ b && /* @__PURE__ */ w.jsx(bs, {}),
3732
3737
  /* @__PURE__ */ w.jsx(Ss, {}),
3733
3738
  /* @__PURE__ */ w.jsx(cn, { state: l, forceVisible: i.forcedDebugOverlay })
3734
3739
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-react-ui",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",