@luigi-project/core-modular 0.0.11-dev.202607290048 → 0.0.11-dev.202607300047

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/luigi.js CHANGED
@@ -8341,6 +8341,7 @@ var Ei = {
8341
8341
  ...f,
8342
8342
  nodeParams: {}
8343
8343
  } : f, _ = await this.buildPath(n, g || {});
8344
+ if (await this.shouldPreventNavigationForPath(n)) return;
8344
8345
  if (!m) {
8345
8346
  let e = U.get(Ai);
8346
8347
  try {
@@ -9445,7 +9446,7 @@ var Ei = {
9445
9446
  };
9446
9447
  openAsModal = async (e, t, n) => {
9447
9448
  if (e === "/") return console.warn("Navigation with an absolute path prevented."), Promise.reject(/* @__PURE__ */ Error("Navigation with an absolute path prevented."));
9448
- if (!t?.keepPrevious && !await this.modalService.closeModalsWithDirtyCheck()) return;
9449
+ if (await this.navService.shouldPreventNavigationForPath(e) || !t?.keepPrevious && !await this.modalService.closeModalsWithDirtyCheck()) return;
9449
9450
  let r = e.replace(/\/\/+/g, "/");
9450
9451
  if (!await V.validatePathAndGetRedirect(r, this.luigi)) return;
9451
9452
  let i = await this.navService.getCurrentNode(r), a = t || {};
@@ -9464,6 +9465,7 @@ var Ei = {
9464
9465
  };
9465
9466
  openAsDrawer = async (e, t, n) => {
9466
9467
  if (e === "/") return console.warn("Navigation with an absolute path prevented."), Promise.reject(/* @__PURE__ */ Error("Navigation with an absolute path prevented."));
9468
+ if (await this.navService.shouldPreventNavigationForPath(e)) return;
9467
9469
  let r = e.replace(/\/\/+/g, "/");
9468
9470
  if (!await V.validatePathAndGetRedirect(r, this.luigi)) return;
9469
9471
  let i = await this.navService.getCurrentNode(r), a = t || {};