@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.
@@ -26592,4 +26592,4 @@ export declare const coreActionStepSchemas: ({
26592
26592
  }>]>>>;
26593
26593
  }, z.ZodTypeAny, "passthrough">>;
26594
26594
  })[];
26595
- export { AnchorIdZ, HighlightStyleZ, BadgePositionZ, PlacementZ, CtaButtonZ, TooltipContentZ, ModalContentZ, InsertPositionZ, TooltipTriggerZ, WidgetConfigZ, TourStepForSchemaZ, ScrollBehaviorZ, ScrollLogicalPositionZ, SetTextZ, SetAttrZ, AddClassZ, RemoveClassZ, SetStyleZ, InsertHtmlZ, HighlightZ, PulseZ, BadgeZ, TooltipZ, ModalZ, ScrollToZ, NavigateZ, MountWidgetZ, WaitZ, SequenceZ, ParallelZ, TourZ, };
26595
+ export { AddClassZ, AnchorIdZ, BadgePositionZ, BadgeZ, CtaButtonZ, HighlightStyleZ, HighlightZ, InsertHtmlZ, InsertPositionZ, ModalContentZ, ModalZ, MountWidgetZ, NavigateZ, ParallelZ, PlacementZ, PulseZ, RemoveClassZ, ScrollBehaviorZ, ScrollLogicalPositionZ, ScrollToZ, SequenceZ, SetAttrZ, SetStyleZ, SetTextZ, TooltipContentZ, TooltipTriggerZ, TooltipZ, TourStepForSchemaZ, TourZ, WaitZ, WidgetConfigZ, };
@@ -31,7 +31,7 @@ import {
31
31
  WaitZ,
32
32
  WidgetConfigZ,
33
33
  coreActionStepSchemas
34
- } from "../chunk-R5DNAIRI.js";
34
+ } from "../chunk-TN5BLBPU.js";
35
35
  import "../chunk-XDYJ64IN.js";
36
36
  import "../chunk-BU4Z6PD7.js";
37
37
  export {
@@ -3456,7 +3456,7 @@ function getAntiFlickerSnippet(config = {}) {
3456
3456
  }
3457
3457
 
3458
3458
  // src/version.ts
3459
- var SDK_VERSION = "2.8.0-canary.39";
3459
+ var SDK_VERSION = "2.8.0-canary.40";
3460
3460
 
3461
3461
  // src/types.ts
3462
3462
  var SDK_SCHEMA_VERSION = "2.0";
@@ -5052,7 +5052,7 @@ function WidgetMount({ widgetId, props }) {
5052
5052
  prevPropsJsonRef.current = propsJson;
5053
5053
  (_a3 = handleRef.current) == null ? void 0 : _a3.update(propsRef.current);
5054
5054
  }, [propsJson]);
5055
- if (!registry || !registry.has(widgetId)) {
5055
+ if (!(registry == null ? void 0 : registry.has(widgetId))) {
5056
5056
  return /* @__PURE__ */ jsxs2(
5057
5057
  "div",
5058
5058
  {
@@ -5760,7 +5760,7 @@ function ShadowCanvasOverlay({
5760
5760
  if (!isOpen) return;
5761
5761
  const handleOutsideClick = (e) => {
5762
5762
  const path = e.composedPath();
5763
- if (containerRef.current && !path.includes(containerRef.current)) {
5763
+ if (containerRef.current && !path.includes(containerRef.current) && launcherRef.current && !path.includes(launcherRef.current)) {
5764
5764
  toggle2();
5765
5765
  }
5766
5766
  };
@@ -5805,6 +5805,7 @@ function ShadowCanvasOverlay({
5805
5805
  const isPush = config.canvas.layout === "push";
5806
5806
  const canvasBorder = (_b = config.canvas.border) != null ? _b : "none";
5807
5807
  const containerRef = useRef5(null);
5808
+ const launcherRef = useRef5(null);
5808
5809
  const zIndex = 2147483600;
5809
5810
  useEffect7(() => {
5810
5811
  var _a3, _b2, _c2, _d2;
@@ -5995,6 +5996,7 @@ function ShadowCanvasOverlay({
5995
5996
  /* @__PURE__ */ jsxs3(
5996
5997
  "button",
5997
5998
  {
5999
+ ref: launcherRef,
5998
6000
  type: "button",
5999
6001
  "aria-label": "Toggle shadow canvas",
6000
6002
  className: launcherAnimate && !isOpen ? "syntro-launcher-animate" : void 0,
@@ -12235,4 +12237,4 @@ export {
12235
12237
  encodeToken,
12236
12238
  Syntro
12237
12239
  };
12238
- //# sourceMappingURL=chunk-7GUWICM5.js.map
12240
+ //# sourceMappingURL=chunk-ESLIWC3T.js.map