@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/smart-canvas.js
CHANGED
|
@@ -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.
|
|
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
|
|
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-
|
|
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;
|