sample-cross-fx 0.15.6-beta.5105 → 0.15.6-beta.5109

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.
@@ -54767,6 +54767,10 @@ __webpack_require__.r(__webpack_exports__);
54767
54767
  const wasmLib = 'Microsoft.AspNetCore.Components.WebAssembly';
54768
54768
  const coreLib = 'Piral.Blazor.Core';
54769
54769
 
54770
+ function isDotNet6OrBelow() {
54771
+ return typeof window.Blazor._internal.NavigationLock === 'undefined';
54772
+ }
54773
+
54770
54774
  function createBase() {
54771
54775
  // Nothing found, we need to guess
54772
54776
  const el = document.createElement('base');
@@ -54903,7 +54907,11 @@ function deactivate(moduleName, referenceId) {
54903
54907
  return window.DotNet.invokeMethodAsync(coreLib, 'Deactivate', moduleName, referenceId);
54904
54908
  }
54905
54909
  function callNotifyLocationChanged(url, replace) {
54906
- return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, replace);
54910
+ if (isDotNet6OrBelow()) {
54911
+ return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, replace);
54912
+ } else {
54913
+ return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, undefined, replace);
54914
+ }
54907
54915
  }
54908
54916
  function setLanguage(language) {
54909
54917
  return window.DotNet.invokeMethodAsync(coreLib, 'SetLanguage', language);
@@ -63734,12 +63742,12 @@ function installPiralDebug(options) {
63734
63742
  debug: debugApiVersion,
63735
63743
  instance: {
63736
63744
  name: "sample-cross-fx",
63737
- version: "0.15.6-beta.5105",
63745
+ version: "0.15.6-beta.5109",
63738
63746
  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"
63739
63747
  },
63740
63748
  build: {
63741
- date: "2023-01-27T13:08:12.186Z",
63742
- cli: "0.15.6-beta.5105",
63749
+ date: "2023-01-28T20:44:47.018Z",
63750
+ cli: "0.15.6-beta.5109",
63743
63751
  compat: "0.15"
63744
63752
  }
63745
63753
  };
@@ -216587,4 +216595,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
216587
216595
 
216588
216596
  /******/ })()
216589
216597
  ;
216590
- //# sourceMappingURL=index.2f2ce4.js.map
216598
+ //# sourceMappingURL=index.ba1873.js.map