@syntrologie/runtime-sdk 2.8.0-canary.20 → 2.8.0-canary.21
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/{chunk-YM5IKCMO.js → chunk-XN53TEZU.js} +12 -3
- package/dist/{chunk-YM5IKCMO.js.map → chunk-XN53TEZU.js.map} +2 -2
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/dist/smart-canvas.esm.js +2 -2
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +12 -3
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +2 -2
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +7 -7
|
@@ -3439,7 +3439,7 @@ function getAntiFlickerSnippet(config = {}) {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
|
|
3441
3441
|
// src/version.ts
|
|
3442
|
-
var SDK_VERSION = "2.8.0-canary.
|
|
3442
|
+
var SDK_VERSION = "2.8.0-canary.21";
|
|
3443
3443
|
|
|
3444
3444
|
// src/types.ts
|
|
3445
3445
|
var SDK_SCHEMA_VERSION = "2.0";
|
|
@@ -10473,7 +10473,16 @@ function matchesAnchorRoute(anchorId) {
|
|
|
10473
10473
|
const pathname = typeof window !== "undefined" ? window.location.pathname : "/";
|
|
10474
10474
|
const normalizedPath = pathname.replace(/\/$/, "") || "/";
|
|
10475
10475
|
const routes = Array.isArray(anchorId.route) ? anchorId.route : [anchorId.route];
|
|
10476
|
-
return routes.some((pattern) =>
|
|
10476
|
+
return routes.some((pattern) => {
|
|
10477
|
+
let normalized = pattern;
|
|
10478
|
+
if (/^https?:\/\//.test(normalized)) {
|
|
10479
|
+
try {
|
|
10480
|
+
normalized = new URL(normalized).pathname;
|
|
10481
|
+
} catch {
|
|
10482
|
+
}
|
|
10483
|
+
}
|
|
10484
|
+
return matchRoutePattern(normalizedPath, normalized);
|
|
10485
|
+
});
|
|
10477
10486
|
}
|
|
10478
10487
|
function createSmartCanvasRuntime(options = {}) {
|
|
10479
10488
|
var _a2, _b, _c, _d;
|
|
@@ -11435,4 +11444,4 @@ export {
|
|
|
11435
11444
|
encodeToken,
|
|
11436
11445
|
Syntro
|
|
11437
11446
|
};
|
|
11438
|
-
//# sourceMappingURL=chunk-
|
|
11447
|
+
//# sourceMappingURL=chunk-XN53TEZU.js.map
|