@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.
@@ -3439,7 +3439,7 @@ function getAntiFlickerSnippet(config = {}) {
3439
3439
  }
3440
3440
 
3441
3441
  // src/version.ts
3442
- var SDK_VERSION = "2.8.0-canary.20";
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) => matchRoutePattern(normalizedPath, 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-YM5IKCMO.js.map
11447
+ //# sourceMappingURL=chunk-XN53TEZU.js.map