sample-cross-fx 0.15.8-beta.5316 → 0.15.9-beta.5384

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.
@@ -54337,14 +54337,14 @@ function createConverter(lazy, opts, language, logLevel) {
54337
54337
  // POP is already handled by .NET
54338
54338
  if (action !== 'POP') {
54339
54339
  const url = makeUrl(location.href);
54340
- (0,_interop__WEBPACK_IMPORTED_MODULE_1__.callNotifyLocationChanged)(url, action === 'REPLACE');
54340
+ (0,_interop__WEBPACK_IMPORTED_MODULE_1__.callNotifyLocationChanged)(url, action === 'REPLACE', location.state);
54341
54341
  }
54342
54342
  });
54343
54343
  }
54344
54344
 
54345
54345
  locals.state = 'fresh';
54346
54346
  locals.next = noop;
54347
- locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_3__.attachEvents)(el, ev => piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? nav.replace(ev.detail.to, ev.detail.store) : nav.push(ev.detail.to, ev.detail.state));
54347
+ locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_3__.attachEvents)(el, ev => piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? nav.replace(ev.detail.to, ev.detail.state) : nav.push(ev.detail.to, ev.detail.state));
54348
54348
 
54349
54349
  function mountClassic(config) {
54350
54350
  return (0,_interop__WEBPACK_IMPORTED_MODULE_1__.activate)(moduleName, props).then(refId => {
@@ -54892,7 +54892,7 @@ function createBlazorStarter(publicPath) {
54892
54892
  return;
54893
54893
  }
54894
54894
 
54895
- window.Blazor.emitNavigateEvent(undefined, route, opts.replaceHistoryEntry);
54895
+ window.Blazor.emitNavigateEvent(undefined, route, opts.replaceHistoryEntry, opts.historyEntryState);
54896
54896
  };
54897
54897
 
54898
54898
  navManager.getBaseURI = () => originalBase;
@@ -54963,11 +54963,15 @@ function reactivate(moduleName, referenceId, props) {
54963
54963
  function deactivate(moduleName, referenceId) {
54964
54964
  return window.DotNet.invokeMethodAsync(coreLib, 'Deactivate', moduleName, referenceId);
54965
54965
  }
54966
- function callNotifyLocationChanged(url, replace) {
54966
+ function callNotifyLocationChanged(url, replace, state) {
54967
54967
  if (isDotNet6OrBelow()) {
54968
54968
  return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, replace);
54969
54969
  } else {
54970
- return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, undefined, replace);
54970
+ if (state !== undefined && typeof state !== 'string') {
54971
+ state = JSON.stringify(state);
54972
+ }
54973
+
54974
+ return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, state, replace);
54971
54975
  }
54972
54976
  }
54973
54977
  function setLanguage(language) {
@@ -63810,12 +63814,12 @@ function installPiralDebug(options) {
63810
63814
  debug: debugApiVersion,
63811
63815
  instance: {
63812
63816
  name: "sample-cross-fx",
63813
- version: "0.15.8-beta.5316",
63817
+ version: "0.15.9-beta.5384",
63814
63818
  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"
63815
63819
  },
63816
63820
  build: {
63817
- date: "2023-03-15T08:24:59.959Z",
63818
- cli: "0.15.8-beta.5316",
63821
+ date: "2023-03-29T09:16:50.719Z",
63822
+ cli: "0.15.9-beta.5384",
63819
63823
  compat: "0.15"
63820
63824
  }
63821
63825
  };
@@ -216663,4 +216667,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
216663
216667
 
216664
216668
  /******/ })()
216665
216669
  ;
216666
- //# sourceMappingURL=index.0d89a3.js.map
216670
+ //# sourceMappingURL=index.e0bf59.js.map