@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.
- package/dist/actions/schema.d.ts +1 -1
- package/dist/actions/schema.js +1 -1
- package/dist/{chunk-7GUWICM5.js → chunk-ESLIWC3T.js} +6 -4
- package/dist/chunk-ESLIWC3T.js.map +7 -0
- package/dist/{chunk-R5DNAIRI.js → chunk-TN5BLBPU.js} +1 -1
- package/dist/{chunk-R5DNAIRI.js.map → chunk-TN5BLBPU.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/react.js +2 -2
- package/dist/smart-canvas.esm.js +36 -36
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +6 -4
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +37 -37
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunk-7GUWICM5.js.map +0 -7
package/dist/actions/schema.d.ts
CHANGED
|
@@ -26592,4 +26592,4 @@ export declare const coreActionStepSchemas: ({
|
|
|
26592
26592
|
}>]>>>;
|
|
26593
26593
|
}, z.ZodTypeAny, "passthrough">>;
|
|
26594
26594
|
})[];
|
|
26595
|
-
export {
|
|
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, };
|
package/dist/actions/schema.js
CHANGED
|
@@ -3456,7 +3456,7 @@ function getAntiFlickerSnippet(config = {}) {
|
|
|
3456
3456
|
}
|
|
3457
3457
|
|
|
3458
3458
|
// src/version.ts
|
|
3459
|
-
var SDK_VERSION = "2.8.0-canary.
|
|
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
|
|
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-
|
|
12240
|
+
//# sourceMappingURL=chunk-ESLIWC3T.js.map
|