sample-cross-fx 0.15.0-beta.4670 → 0.15.0-beta.4696

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/app/index.d.ts CHANGED
@@ -489,6 +489,10 @@ export interface PageComponentProps<T = any, S = any> extends RouteBaseProps<T,
489
489
  * The meta data registered with the page.
490
490
  */
491
491
  meta: PiralPageMeta;
492
+ /**
493
+ * The children of the page.
494
+ */
495
+ children: React.ReactNode;
492
496
  }
493
497
 
494
498
  /**
@@ -1169,7 +1173,7 @@ export interface NavigationListener {
1169
1173
  }
1170
1174
 
1171
1175
  export interface NavigationTransition extends NavigationUpdate {
1172
- retry(): void;
1176
+ retry?(): void;
1173
1177
  }
1174
1178
 
1175
1179
  export interface NavigationUpdate {
@@ -1213,5 +1217,5 @@ export interface NavigationLocation {
1213
1217
  * On the initial location, this will be the string default. On all subsequent
1214
1218
  * locations, this string will be a unique identifier.
1215
1219
  */
1216
- key: string;
1220
+ key?: string;
1217
1221
  }
@@ -54234,8 +54234,8 @@ __webpack_require__.r(__webpack_exports__);
54234
54234
  /* harmony export */ "createConverter": () => (/* binding */ createConverter)
54235
54235
  /* harmony export */ });
54236
54236
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./events */ "../../converters/piral-blazor/esm/events.js");
54237
- /* harmony import */ var _interop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interop */ "../../converters/piral-blazor/esm/interop.js");
54238
- /* harmony import */ var _infra_codegen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../infra.codegen */ "../../converters/piral-blazor/infra.codegen");
54237
+ /* harmony import */ var _interop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interop */ "../../converters/piral-blazor/esm/interop.js");
54238
+ /* harmony import */ var _infra_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../infra.codegen */ "../../converters/piral-blazor/infra.codegen");
54239
54239
 
54240
54240
 
54241
54241
 
@@ -54262,12 +54262,25 @@ function prefixMediaSources(component, prefix) {
54262
54262
  }
54263
54263
 
54264
54264
  function project(component, destination, options) {
54265
- (options === null || options === void 0 ? void 0 : options.resourcePathRoot) && prefixMediaSources(component, options.resourcePathRoot);
54265
+ if ((options === null || options === void 0 ? void 0 : options.resourcePathRoot) && !_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].noMutation) {
54266
+ prefixMediaSources(component, options.resourcePathRoot);
54267
+ }
54268
+
54266
54269
  destination.appendChild(component);
54267
54270
  }
54268
54271
 
54272
+ function makeUrl(href) {
54273
+ const origin = document.location.origin;
54274
+
54275
+ if (!href.startsWith(origin)) {
54276
+ return `${origin}${href}`;
54277
+ }
54278
+
54279
+ return href;
54280
+ }
54281
+
54269
54282
  function createConverter(lazy) {
54270
- const boot = (0,_interop__WEBPACK_IMPORTED_MODULE_0__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_1__["default"]);
54283
+ const boot = (0,_interop__WEBPACK_IMPORTED_MODULE_1__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].url, _infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].satellites);
54271
54284
  let loader = !lazy && boot();
54272
54285
  let listener = undefined;
54273
54286
 
@@ -54293,7 +54306,8 @@ function createConverter(lazy) {
54293
54306
  }) => {
54294
54307
  // POP is already handled by .NET
54295
54308
  if (action !== 'POP') {
54296
- (0,_interop__WEBPACK_IMPORTED_MODULE_0__.callNotifyLocationChanged)(location.href, action === 'REPLACE');
54309
+ const url = makeUrl(location.href);
54310
+ (0,_interop__WEBPACK_IMPORTED_MODULE_1__.callNotifyLocationChanged)(url, action === 'REPLACE');
54297
54311
  }
54298
54312
  });
54299
54313
  }
@@ -54301,7 +54315,7 @@ function createConverter(lazy) {
54301
54315
  locals.state = 'fresh';
54302
54316
  locals.update = noop;
54303
54317
  locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_2__.attachEvents)(el, ev => data.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));
54304
- (loader || (loader = boot())).then(root => dependency().then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_0__.activate)(moduleName, props)).then(refId => {
54318
+ (loader || (loader = boot())).then(root => dependency().then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_1__.activate)(moduleName, props)).then(refId => {
54305
54319
  if (locals.state === 'fresh') {
54306
54320
  locals.id = refId;
54307
54321
  locals.node = root.querySelector(`#${locals.id} > div`);
@@ -54317,7 +54331,7 @@ function createConverter(lazy) {
54317
54331
  update(el, data, ctx, locals) {
54318
54332
  enqueueChange(locals, () => {
54319
54333
  const props = Object.assign(Object.assign({}, args), data);
54320
- (0,_interop__WEBPACK_IMPORTED_MODULE_0__.reactivate)(moduleName, locals.referenceId, props);
54334
+ (0,_interop__WEBPACK_IMPORTED_MODULE_1__.reactivate)(moduleName, locals.referenceId, props);
54321
54335
  });
54322
54336
  },
54323
54337
 
@@ -54327,7 +54341,7 @@ function createConverter(lazy) {
54327
54341
  locals.dispose();
54328
54342
  enqueueChange(locals, root => {
54329
54343
  root.querySelector(`#${locals.id}`).appendChild(locals.node);
54330
- (0,_interop__WEBPACK_IMPORTED_MODULE_0__.deactivate)(moduleName, locals.referenceId);
54344
+ (0,_interop__WEBPACK_IMPORTED_MODULE_1__.deactivate)(moduleName, locals.referenceId);
54331
54345
  });
54332
54346
  el.innerHTML = '';
54333
54347
  locals.state = 'removed';
@@ -54430,7 +54444,7 @@ function createDependencyLoader(convert, lazy = true) {
54430
54444
  const load = () => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
54431
54445
  for (const dllUrl of references) {
54432
54446
  if (dllUrl.endsWith('.dll')) {
54433
- const urlWithoutExtension = dllUrl.substr(0, dllUrl.length - 4);
54447
+ const urlWithoutExtension = dllUrl.substring(0, dllUrl.length - 4);
54434
54448
  const pdbName = `${urlWithoutExtension}.pdb`;
54435
54449
  const pdbUrl = references.find(m => m === pdbName);
54436
54450
 
@@ -54665,6 +54679,19 @@ function computePath() {
54665
54679
  return '/';
54666
54680
  }
54667
54681
 
54682
+ function addScript(url) {
54683
+ return new Promise((resolve, reject) => {
54684
+ const script = document.createElement('script');
54685
+ script.src = url;
54686
+
54687
+ script.onerror = () => reject();
54688
+
54689
+ script.onload = () => resolve();
54690
+
54691
+ document.body.appendChild(script);
54692
+ });
54693
+ }
54694
+
54668
54695
  function activate(moduleName, props) {
54669
54696
  return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, props);
54670
54697
  }
@@ -54708,11 +54735,12 @@ function initialize(scriptUrl, publicPath) {
54708
54735
  document.body.appendChild(script);
54709
54736
  });
54710
54737
  }
54711
- function createBootLoader(scriptUrl) {
54738
+ function createBootLoader(scriptUrl, satellites) {
54712
54739
  const publicPath = computePath();
54713
54740
  return () => {
54714
54741
  if (typeof window.$blazorLoader === 'undefined') {
54715
- window.$blazorLoader = initialize(scriptUrl, publicPath);
54742
+ // we load all satellite scripts before we initialize blazor
54743
+ window.$blazorLoader = Promise.all(satellites.map(url => addScript(url))).then(() => initialize(scriptUrl, publicPath));
54716
54744
  }
54717
54745
 
54718
54746
  return window.$blazorLoader;
@@ -60465,6 +60493,120 @@ DefaultRouter.displayName = 'DefaultRouter';
60465
60493
 
60466
60494
  /***/ }),
60467
60495
 
60496
+ /***/ "../../framework/piral-core/esm/defaults/navigator_v5.js":
60497
+ /*!***************************************************************!*\
60498
+ !*** ../../framework/piral-core/esm/defaults/navigator_v5.js ***!
60499
+ \***************************************************************/
60500
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
60501
+
60502
+ "use strict";
60503
+ __webpack_require__.r(__webpack_exports__);
60504
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
60505
+ /* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
60506
+ /* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
60507
+ /* harmony export */ "useCurrentNavigation": () => (/* binding */ useCurrentNavigation),
60508
+ /* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
60509
+ /* harmony export */ });
60510
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
60511
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
60512
+ /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
60513
+
60514
+
60515
+
60516
+ let _nav;
60517
+
60518
+ const _noop = () => {};
60519
+
60520
+ function useRouterContext() {
60521
+ return react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_1__.__RouterContext);
60522
+ }
60523
+ function useCurrentNavigation() {
60524
+ const ctx = useRouterContext();
60525
+ const location = (0,react_router__WEBPACK_IMPORTED_MODULE_1__.useLocation)();
60526
+ react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
60527
+ if (_nav) {
60528
+ window.dispatchEvent(new CustomEvent('piral-navigate', {
60529
+ detail: {
60530
+ location
60531
+ }
60532
+ }));
60533
+ }
60534
+ }, [location]);
60535
+ react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
60536
+ _nav = ctx.history;
60537
+ return () => {
60538
+ _nav = undefined;
60539
+ };
60540
+ }, []);
60541
+ }
60542
+ function createRedirect(to) {
60543
+ return () => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__.Redirect, {
60544
+ to: to
60545
+ });
60546
+ }
60547
+ function createNavigation() {
60548
+ const enhance = (location, action) => ({
60549
+ action,
60550
+ location: Object.assign({
60551
+ get href() {
60552
+ return _nav.createHref(location);
60553
+ }
60554
+
60555
+ }, location)
60556
+ });
60557
+
60558
+ return {
60559
+ get path() {
60560
+ if (_nav) {
60561
+ return _nav.location.pathname;
60562
+ }
60563
+
60564
+ return location.pathname;
60565
+ },
60566
+
60567
+ push(target, state) {
60568
+ if (_nav) {
60569
+ _nav.push(target, state);
60570
+ }
60571
+ },
60572
+
60573
+ replace(target, state) {
60574
+ if (_nav) {
60575
+ _nav.replace(target, state);
60576
+ }
60577
+ },
60578
+
60579
+ go(n) {
60580
+ if (_nav) {
60581
+ _nav.go(n);
60582
+ }
60583
+ },
60584
+
60585
+ block(blocker) {
60586
+ if (!_nav) {
60587
+ return _noop;
60588
+ }
60589
+
60590
+ return _nav.block((location, action) => blocker(enhance(location, action)));
60591
+ },
60592
+
60593
+ listen(listener) {
60594
+ const handler = e => listener(enhance(e.detail, _nav.action));
60595
+
60596
+ window.addEventListener('piral-navigate', handler);
60597
+ return () => {
60598
+ window.removeEventListener('piral-navigate', handler);
60599
+ };
60600
+ },
60601
+
60602
+ router: {
60603
+ history: _nav
60604
+ }
60605
+ };
60606
+ }
60607
+
60608
+ /***/ }),
60609
+
60468
60610
  /***/ "../../framework/piral-core/esm/emulator.js":
60469
60611
  /*!**************************************************!*\
60470
60612
  !*** ../../framework/piral-core/esm/emulator.js ***!
@@ -61107,7 +61249,7 @@ __webpack_require__.r(__webpack_exports__);
61107
61249
  /* harmony export */ "includeActions": () => (/* binding */ includeActions)
61108
61250
  /* harmony export */ });
61109
61251
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions */ "../../framework/piral-core/esm/actions/index.js");
61110
- /* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
61252
+ /* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
61111
61253
 
61112
61254
 
61113
61255
 
@@ -62666,12 +62808,12 @@ function installPiralDebug(options) {
62666
62808
  debug: debugApiVersion,
62667
62809
  instance: {
62668
62810
  name: "sample-cross-fx",
62669
- version: "0.15.0-beta.4670",
62811
+ version: "0.15.0-beta.4696",
62670
62812
  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"
62671
62813
  },
62672
62814
  build: {
62673
- date: "2022-09-20T22:37:11.613Z",
62674
- cli: "0.14.31",
62815
+ date: "2022-09-29T15:32:34.689Z",
62816
+ cli: "0.14.32",
62675
62817
  compat: "0.14"
62676
62818
  }
62677
62819
  };
@@ -74379,7 +74521,7 @@ __webpack_require__.r(__webpack_exports__);
74379
74521
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
74380
74522
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
74381
74523
  /* harmony export */ });
74382
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("_framework/blazor.webassembly.js");
74524
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"url":"_framework/blazor.webassembly.js","satellites":[],"noMutation":false,"renderMode":"projection"});
74383
74525
 
74384
74526
  /***/ }),
74385
74527
 
@@ -74394,14 +74536,14 @@ var react_dom__WEBPACK_IMPORTED_MODULE_18___namespace_cache;
74394
74536
  __webpack_require__.r(__webpack_exports__);
74395
74537
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
74396
74538
  /* harmony export */ "createDefaultState": () => (/* binding */ createDefaultState),
74397
- /* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
74398
- /* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
74539
+ /* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createNavigation),
74540
+ /* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createRedirect),
74399
74541
  /* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
74400
- /* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_36__.integrateDebugger),
74401
- /* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_37__.integrateEmulator),
74542
+ /* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_37__.integrateDebugger),
74543
+ /* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_38__.integrateEmulator),
74402
74544
  /* harmony export */ "publicPath": () => (/* binding */ publicPath),
74403
74545
  /* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
74404
- /* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
74546
+ /* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.useRouterContext)
74405
74547
  /* harmony export */ });
74406
74548
  /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
74407
74549
  /* harmony import */ var _angular_compiler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/compiler */ "../../../node_modules/@angular/compiler/fesm2020/compiler.mjs");
@@ -74439,14 +74581,15 @@ __webpack_require__.r(__webpack_exports__);
74439
74581
  /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
74440
74582
  /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
74441
74583
  /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! react-router-dom */ "../../../node_modules/react-router-dom/esm/react-router-dom.js");
74442
- /* harmony import */ var piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! piral-core/_/defaults/DefaultErrorInfo */ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js");
74443
- /* harmony import */ var piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLoadingIndicator */ "../../framework/piral-core/esm/defaults/DefaultLoadingIndicator.js");
74444
- /* harmony import */ var piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLayout */ "../../framework/piral-core/esm/defaults/DefaultLayout.js");
74445
- /* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
74446
- /* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
74447
- /* harmony import */ var piral_core_debugger__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! piral-core/_/debugger */ "../../framework/piral-core/esm/debugger.js");
74448
- /* harmony import */ var piral_core_emulator__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! piral-core/_/emulator */ "../../framework/piral-core/esm/emulator.js");
74449
- /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
74584
+ /* harmony import */ var piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! piral-core/_/defaults/DefaultErrorInfo */ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js");
74585
+ /* harmony import */ var piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLoadingIndicator */ "../../framework/piral-core/esm/defaults/DefaultLoadingIndicator.js");
74586
+ /* harmony import */ var piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLayout */ "../../framework/piral-core/esm/defaults/DefaultLayout.js");
74587
+ /* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
74588
+ /* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
74589
+ /* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
74590
+ /* harmony import */ var piral_core_debugger__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! piral-core/_/debugger */ "../../framework/piral-core/esm/debugger.js");
74591
+ /* harmony import */ var piral_core_emulator__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! piral-core/_/emulator */ "../../framework/piral-core/esm/emulator.js");
74592
+ /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
74450
74593
 
74451
74594
 
74452
74595
 
@@ -74489,11 +74632,6 @@ __webpack_require__.r(__webpack_exports__);
74489
74632
 
74490
74633
 
74491
74634
 
74492
-
74493
-
74494
-
74495
- let _nav;
74496
- const _noop = () => {};
74497
74635
 
74498
74636
 
74499
74637
  function fillDependencies(deps) {
@@ -74501,70 +74639,8 @@ __webpack_require__.r(__webpack_exports__);
74501
74639
  }
74502
74640
 
74503
74641
 
74504
- function useCurrentNavigation() {
74505
- const ctx = useRouterContext();
74506
-
74507
- (0,react__WEBPACK_IMPORTED_MODULE_17__.useEffect)(() => {
74508
- _nav = ctx.history;
74509
- return () => {
74510
- _nav = undefined;
74511
- };
74512
- }, []);
74513
- }
74514
-
74515
-
74516
- function createNavigation() {
74517
- const enhance = info => ({
74518
- ...info,
74519
- location: {
74520
- get href() {
74521
- return _nav.createHref(info.location);
74522
- },
74523
- ...info.location,
74524
- },
74525
- });
74526
-
74527
- return {
74528
- get path() {
74529
- if (_nav) {
74530
- return _nav.location.pathname;
74531
- }
74532
-
74533
- return location.pathname;
74534
- },
74535
- push(target, state) {
74536
- if (_nav) {
74537
- _nav.push(target, state);
74538
- }
74539
- },
74540
- replace(target, state) {
74541
- if (_nav) {
74542
- _nav.replace(target, state);
74543
- }
74544
- },
74545
- go(n) {
74546
- if (_nav) {
74547
- _nav.go(n);
74548
- }
74549
- },
74550
- block(blocker) {
74551
- if (!_nav) {
74552
- return _noop;
74553
- }
74554
- return _nav.block((location, action) => blocker(enhance({ location, action })));
74555
- },
74556
- listen(listener) {
74557
- if (!_nav) {
74558
- return _noop;
74559
- }
74560
- return _nav.listen((location, action) => listener(enhance({ location, action })));
74561
- },
74562
- router: {
74563
- history: _nav,
74564
- },
74565
- };
74566
- }
74567
74642
 
74643
+
74568
74644
 
74569
74645
  const publicPath = "/";
74570
74646
 
@@ -74576,11 +74652,11 @@ __webpack_require__.r(__webpack_exports__);
74576
74652
  loading: typeof window !== 'undefined',
74577
74653
  },
74578
74654
  components: {
74579
- ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_31__.DefaultErrorInfo,
74580
- LoadingIndicator: piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_32__.DefaultLoadingIndicator,
74581
- Router: piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_33__.DefaultRouter,
74582
- RouteSwitch: piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_34__.DefaultRouteSwitch,
74583
- Layout: piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_35__.DefaultLayout,
74655
+ ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_32__.DefaultErrorInfo,
74656
+ LoadingIndicator: piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_33__.DefaultLoadingIndicator,
74657
+ Router: piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_34__.DefaultRouter,
74658
+ RouteSwitch: piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_35__.DefaultRouteSwitch,
74659
+ Layout: piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_36__.DefaultLayout,
74584
74660
  },
74585
74661
  errorComponents: {},
74586
74662
  registry: {
@@ -74598,21 +74674,11 @@ __webpack_require__.r(__webpack_exports__);
74598
74674
 
74599
74675
 
74600
74676
 
74601
- function createRedirect(to) {
74602
- return () => (0,react__WEBPACK_IMPORTED_MODULE_17__.createElement)(react_router__WEBPACK_IMPORTED_MODULE_29__.Redirect, { to });
74603
- }
74604
-
74605
-
74606
- function useRouterContext() {
74607
- return (0,react__WEBPACK_IMPORTED_MODULE_17__.useContext)(react_router__WEBPACK_IMPORTED_MODULE_29__.__RouterContext);
74608
- }
74609
-
74610
-
74611
74677
  function useRouteFilter(paths) {
74612
74678
 
74613
- useCurrentNavigation();
74679
+ ;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.useCurrentNavigation)();
74614
74680
 
74615
- return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_38__.debugRouteFilter)(paths);
74681
+ return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_39__.debugRouteFilter)(paths);
74616
74682
  }
74617
74683
 
74618
74684
 
@@ -211240,4 +211306,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
211240
211306
 
211241
211307
  /******/ })()
211242
211308
  ;
211243
- //# sourceMappingURL=index.972786.js.map
211309
+ //# sourceMappingURL=index.dd11de.js.map