@syntrologie/runtime-sdk 2.8.0-canary.39 → 2.8.0-canary.40

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.
@@ -20662,7 +20662,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
20662
20662
  }
20663
20663
 
20664
20664
  // src/version.ts
20665
- var SDK_VERSION = "2.8.0-canary.39";
20665
+ var SDK_VERSION = "2.8.0-canary.40";
20666
20666
 
20667
20667
  // src/types.ts
20668
20668
  var SDK_SCHEMA_VERSION = "2.0";
@@ -23416,7 +23416,7 @@ ${cssRules}
23416
23416
  prevPropsJsonRef.current = propsJson;
23417
23417
  handleRef.current?.update(propsRef.current);
23418
23418
  }, [propsJson]);
23419
- if (!registry || !registry.has(widgetId)) {
23419
+ if (!registry?.has(widgetId)) {
23420
23420
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
23421
23421
  "div",
23422
23422
  {
@@ -23677,7 +23677,7 @@ ${cssRules}
23677
23677
  if (!isOpen) return;
23678
23678
  const handleOutsideClick = (e2) => {
23679
23679
  const path = e2.composedPath();
23680
- if (containerRef.current && !path.includes(containerRef.current)) {
23680
+ if (containerRef.current && !path.includes(containerRef.current) && launcherRef.current && !path.includes(launcherRef.current)) {
23681
23681
  toggle2();
23682
23682
  }
23683
23683
  };
@@ -23722,6 +23722,7 @@ ${cssRules}
23722
23722
  const isPush = config.canvas.layout === "push";
23723
23723
  const canvasBorder = config.canvas.border ?? "none";
23724
23724
  const containerRef = (0, import_react14.useRef)(null);
23725
+ const launcherRef = (0, import_react14.useRef)(null);
23725
23726
  const zIndex = 2147483600;
23726
23727
  (0, import_react14.useEffect)(() => {
23727
23728
  if (!isPush) return;
@@ -23908,6 +23909,7 @@ ${cssRules}
23908
23909
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
23909
23910
  "button",
23910
23911
  {
23912
+ ref: launcherRef,
23911
23913
  type: "button",
23912
23914
  "aria-label": "Toggle shadow canvas",
23913
23915
  className: launcherAnimate && !isOpen ? "syntro-launcher-animate" : void 0,
@@ -41979,7 +41981,7 @@ ${cssRules}
41979
41981
  }
41980
41982
 
41981
41983
  // src/index.ts
41982
- var RUNTIME_SDK_BUILD = true ? `${"2026-04-02T03:06:04.779Z"} (${"97626af337"})` : "dev";
41984
+ var RUNTIME_SDK_BUILD = true ? `${"2026-04-03T19:19:29.565Z"} (${"2a8dfdba72"})` : "dev";
41983
41985
  if (typeof window !== "undefined") {
41984
41986
  console.log(`[Syntro Runtime] Build: ${RUNTIME_SDK_BUILD}`);
41985
41987
  const existing = window.SynOS;