sample-cross-fx 0.15.0-beta.4812 → 0.15.0-beta.4813

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.
@@ -55696,22 +55696,33 @@ __webpack_require__.r(__webpack_exports__);
55696
55696
  /* harmony export */ });
55697
55697
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
55698
55698
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
55699
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "../../../node_modules/@angular/router/fesm2020/router.mjs");
55700
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
55699
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "../../../node_modules/@angular/router/fesm2020/router.mjs");
55700
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
55701
+
55701
55702
 
55702
55703
 
55703
55704
 
55705
+ let skipNavigation = false;
55704
55706
 
55707
+ const noop = function () {};
55705
55708
 
55706
- const noop = function () {}; // deactivates the usual platform behavior; all these operations are performed via the RoutingService
55709
+ const navigateByUrl = _angular_router__WEBPACK_IMPORTED_MODULE_0__.Router.prototype.navigateByUrl; // deactivates the usual platform behavior; all these operations are performed via the RoutingService
55707
55710
  // to avoid any conflict, e.g., double-booking URL changes in React and Angular
55708
55711
 
55712
+ _angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.pushState = noop;
55713
+ _angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.replaceState = noop;
55714
+ _angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.forward = noop;
55715
+ _angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.back = noop;
55716
+ _angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.historyGo = noop; // required to detect / react to hidden URL change (see #554 for details)
55709
55717
 
55710
- _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.pushState = noop;
55711
- _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.replaceState = noop;
55712
- _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.forward = noop;
55713
- _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.back = noop;
55714
- _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.historyGo = noop;
55718
+ _angular_router__WEBPACK_IMPORTED_MODULE_0__.Router.prototype.navigateByUrl = function (url, extras) {
55719
+ var _a;
55720
+
55721
+ skipNavigation = (_a = extras === null || extras === void 0 ? void 0 : extras.skipLocationChange) !== null && _a !== void 0 ? _a : false;
55722
+ const result = navigateByUrl.call(this, url, extras);
55723
+ skipNavigation = false;
55724
+ return result;
55725
+ };
55715
55726
 
55716
55727
  function normalize(url) {
55717
55728
  const search = url.indexOf('?');
@@ -55747,6 +55758,7 @@ let RoutingService = class RoutingService {
55747
55758
  throw error;
55748
55759
  };
55749
55760
 
55761
+ const skipIds = [];
55750
55762
  const nav = this.context.navigation;
55751
55763
  this.dispose = nav.listen(({
55752
55764
  location
@@ -55755,11 +55767,11 @@ let RoutingService = class RoutingService {
55755
55767
 
55756
55768
  if (!this.invalidRoutes.includes(path)) {
55757
55769
  const url = `${path}${location.search}${location.hash}`;
55758
- this.zone.run(() => this.router.navigateByUrl(url));
55770
+ this.zone.run(() => navigateByUrl.call(this.router, url));
55759
55771
  }
55760
55772
  });
55761
55773
  this.subscription = this.router.events.subscribe(e => {
55762
- if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__.NavigationError) {
55774
+ if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_0__.NavigationError) {
55763
55775
  const routerUrl = e.url;
55764
55776
  const path = normalize(routerUrl);
55765
55777
  const locationUrl = nav.url;
@@ -55771,13 +55783,21 @@ let RoutingService = class RoutingService {
55771
55783
  if (routerUrl !== locationUrl) {
55772
55784
  nav.push(routerUrl);
55773
55785
  }
55786
+ } else if (e.type === 0 && skipNavigation) {
55787
+ skipIds.push(e.id);
55774
55788
  } else if (e.type === 15) {
55775
- // consistency check to avoid #535 and other Angular-specific issues
55776
- const locationUrl = nav.url;
55777
- const routerUrl = e.routerEvent.url;
55789
+ const index = skipIds.indexOf(e.routerEvent.id);
55778
55790
 
55779
- if (routerUrl !== locationUrl) {
55780
- nav.push(routerUrl);
55791
+ if (index === -1) {
55792
+ // consistency check to avoid #535 and other Angular-specific issues
55793
+ const locationUrl = nav.url;
55794
+ const routerUrl = e.routerEvent.url;
55795
+
55796
+ if (routerUrl !== locationUrl) {
55797
+ nav.push(routerUrl);
55798
+ }
55799
+ } else {
55800
+ skipIds.splice(index, 1);
55781
55801
  }
55782
55802
  }
55783
55803
  });
@@ -55792,7 +55812,7 @@ let RoutingService = class RoutingService {
55792
55812
  }
55793
55813
 
55794
55814
  };
55795
- RoutingService = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable)(), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(0, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject)('Context')), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(1, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(2, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__metadata)("design:paramtypes", [Object, _angular_router__WEBPACK_IMPORTED_MODULE_1__.Router, _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone])], RoutingService);
55815
+ RoutingService = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable)(), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(0, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject)('Context')), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(1, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(2, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__metadata)("design:paramtypes", [Object, _angular_router__WEBPACK_IMPORTED_MODULE_0__.Router, _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone])], RoutingService);
55796
55816
 
55797
55817
 
55798
55818
  /***/ }),
@@ -56177,15 +56197,16 @@ function findModule(module) {
56177
56197
  return availableModules.find(m => m.module === module);
56178
56198
  }
56179
56199
  function defineModule(module, opts = undefined) {
56180
- if (typeof module !== 'function') {
56181
- const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getAnnotations)(module);
56200
+ const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getAnnotations)(module);
56201
+
56202
+ if (annotation) {
56182
56203
  availableModules.push({
56183
56204
  active: undefined,
56184
56205
  components: (0,_utils__WEBPACK_IMPORTED_MODULE_7__.findComponents)(annotation.exports),
56185
56206
  module,
56186
56207
  opts
56187
56208
  });
56188
- } else {
56209
+ } else if (typeof module === 'function') {
56189
56210
  const state = {
56190
56211
  current: undefined
56191
56212
  };
@@ -63690,12 +63711,12 @@ function installPiralDebug(options) {
63690
63711
  debug: debugApiVersion,
63691
63712
  instance: {
63692
63713
  name: "sample-cross-fx",
63693
- version: "0.15.0-beta.4812",
63714
+ version: "0.15.0-beta.4813",
63694
63715
  dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
63695
63716
  },
63696
63717
  build: {
63697
- date: "2022-11-13T01:15:00.061Z",
63698
- cli: "0.15.0-beta.4812",
63718
+ date: "2022-11-14T00:49:19.589Z",
63719
+ cli: "0.15.0-beta.4813",
63699
63720
  compat: "0.15"
63700
63721
  }
63701
63722
  };
@@ -216332,4 +216353,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
216332
216353
 
216333
216354
  /******/ })()
216334
216355
  ;
216335
- //# sourceMappingURL=index.13e756.js.map
216356
+ //# sourceMappingURL=index.830f8c.js.map