@next-core/brick-kit 2.208.3 → 2.208.5

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/index.esm.js CHANGED
@@ -12505,7 +12505,7 @@ class Router {
12505
12505
  } else {
12506
12506
  path = path.replace(/^\/next\//, "/");
12507
12507
  }
12508
- path && addPathToBlackList(path);
12508
+ path && path.startsWith("/") && addPathToBlackList(path);
12509
12509
  });
12510
12510
  if (isBlockedPath(location.pathname)) {
12511
12511
  blocked = true;
@@ -13512,9 +13512,12 @@ function SingleBrickAsComponentFactory(React) {
13512
13512
  updateBrick(brick, element);
13513
13513
  var onMount = (_useBrick$lifeCycle = useBrick.lifeCycle) === null || _useBrick$lifeCycle === void 0 ? void 0 : _useBrick$lifeCycle.onMount;
13514
13514
  if (onMount) {
13515
- dispatchLifeCycleEvent(new CustomEvent("mount"), transformEvents(data, {
13516
- onMount
13517
- }).onMount, brick);
13515
+ // wait for element of template brick to be assigned
13516
+ queueMicrotask(() => {
13517
+ dispatchLifeCycleEvent(new CustomEvent("mount"), transformEvents(data, {
13518
+ onMount
13519
+ }).onMount, brick);
13520
+ });
13518
13521
  }
13519
13522
  var onScrollIntoView = (_useBrick$lifeCycle2 = useBrick.lifeCycle) === null || _useBrick$lifeCycle2 === void 0 ? void 0 : _useBrick$lifeCycle2.onScrollIntoView;
13520
13523
  if (onScrollIntoView) {