minimal-piral 0.15.0-beta.4633 → 0.15.0-beta.4672

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.
@@ -2715,8 +2715,8 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
2715
2715
  key: "render",
2716
2716
  value: function render() {
2717
2717
  var $portalId = this.props.$portalId;
2718
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
2719
- "data-portal-id": $portalId,
2718
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-portal", {
2719
+ pid: $portalId,
2720
2720
  ref: this.setNode
2721
2721
  });
2722
2722
  }
@@ -3598,6 +3598,123 @@ DefaultRouter.displayName = 'DefaultRouter';
3598
3598
 
3599
3599
  /***/ }),
3600
3600
 
3601
+ /***/ "../../framework/piral-core/esm/defaults/navigator_v5.js":
3602
+ /*!***************************************************************!*\
3603
+ !*** ../../framework/piral-core/esm/defaults/navigator_v5.js ***!
3604
+ \***************************************************************/
3605
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3606
+
3607
+ "use strict";
3608
+ __webpack_require__.r(__webpack_exports__);
3609
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3610
+ /* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
3611
+ /* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
3612
+ /* harmony export */ "useCurrentNavigation": () => (/* binding */ useCurrentNavigation),
3613
+ /* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
3614
+ /* harmony export */ });
3615
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
3616
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3617
+ /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
3618
+
3619
+
3620
+
3621
+ var _nav;
3622
+
3623
+ var _noop = function _noop() {};
3624
+
3625
+ function useRouterContext() {
3626
+ return react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_1__.__RouterContext);
3627
+ }
3628
+ function useCurrentNavigation() {
3629
+ var ctx = useRouterContext();
3630
+ var location = (0,react_router__WEBPACK_IMPORTED_MODULE_1__.useLocation)();
3631
+ react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
3632
+ if (_nav) {
3633
+ window.dispatchEvent(new CustomEvent('piral-navigate', {
3634
+ detail: {
3635
+ location: location
3636
+ }
3637
+ }));
3638
+ }
3639
+ }, [location]);
3640
+ react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
3641
+ _nav = ctx.history;
3642
+ return function () {
3643
+ _nav = undefined;
3644
+ };
3645
+ }, []);
3646
+ }
3647
+ function createRedirect(to) {
3648
+ return function () {
3649
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__.Redirect, {
3650
+ to: to
3651
+ });
3652
+ };
3653
+ }
3654
+ function createNavigation() {
3655
+ var enhance = function enhance(location, action) {
3656
+ return {
3657
+ action: action,
3658
+ location: Object.assign({
3659
+ get href() {
3660
+ return _nav.createHref(location);
3661
+ }
3662
+
3663
+ }, location)
3664
+ };
3665
+ };
3666
+
3667
+ return {
3668
+ get path() {
3669
+ if (_nav) {
3670
+ return _nav.location.pathname;
3671
+ }
3672
+
3673
+ return location.pathname;
3674
+ },
3675
+
3676
+ push: function push(target, state) {
3677
+ if (_nav) {
3678
+ _nav.push(target, state);
3679
+ }
3680
+ },
3681
+ replace: function replace(target, state) {
3682
+ if (_nav) {
3683
+ _nav.replace(target, state);
3684
+ }
3685
+ },
3686
+ go: function go(n) {
3687
+ if (_nav) {
3688
+ _nav.go(n);
3689
+ }
3690
+ },
3691
+ block: function block(blocker) {
3692
+ if (!_nav) {
3693
+ return _noop;
3694
+ }
3695
+
3696
+ return _nav.block(function (location, action) {
3697
+ return blocker(enhance(location, action));
3698
+ });
3699
+ },
3700
+ listen: function listen(listener) {
3701
+ var handler = function handler(e) {
3702
+ return listener(enhance(e.detail, _nav.action));
3703
+ };
3704
+
3705
+ window.addEventListener('piral-navigate', handler);
3706
+ return function () {
3707
+ window.removeEventListener('piral-navigate', handler);
3708
+ };
3709
+ },
3710
+ router: {
3711
+ history: _nav
3712
+ }
3713
+ };
3714
+ }
3715
+
3716
+ /***/ }),
3717
+
3601
3718
  /***/ "../../framework/piral-core/esm/emulator.js":
3602
3719
  /*!**************************************************!*\
3603
3720
  !*** ../../framework/piral-core/esm/emulator.js ***!
@@ -4070,6 +4187,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
4070
4187
 
4071
4188
 
4072
4189
  if (typeof window !== 'undefined' && 'customElements' in window) {
4190
+ /**
4191
+ * This is a nice abstraction allowing anyone to actually use the extension system
4192
+ * brought by Piral. Not all props of the extension system are actually exposed.
4193
+ *
4194
+ * Usage:
4195
+ *
4196
+ * ```
4197
+ * <piral-extension name="my-ext-name"></piral-extension>
4198
+ * ```
4199
+ */
4073
4200
  var PiralExtension = /*#__PURE__*/function (_HTMLElement) {
4074
4201
  _inherits(PiralExtension, _HTMLElement);
4075
4202
 
@@ -4122,6 +4249,8 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
4122
4249
  }, {
4123
4250
  key: "connectedCallback",
4124
4251
  value: function connectedCallback() {
4252
+ this.style.display = 'contents';
4253
+
4125
4254
  if (this.isConnected) {
4126
4255
  this.dispatchEvent(new CustomEvent('render-html', {
4127
4256
  bubbles: true,
@@ -4162,7 +4291,74 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
4162
4291
  return PiralExtension;
4163
4292
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
4164
4293
 
4165
- customElements.define('piral-extension', PiralExtension);
4294
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.extensionName, PiralExtension);
4295
+ /**
4296
+ * This is a boundary to host elements from other frameworks - effectively vanishing
4297
+ * at runtime.
4298
+ *
4299
+ * Usage:
4300
+ *
4301
+ * ```
4302
+ * <piral-portal pid="host-1234"></piral-portal>
4303
+ * ```
4304
+ */
4305
+
4306
+ var PiralPortal = /*#__PURE__*/function (_HTMLElement2) {
4307
+ _inherits(PiralPortal, _HTMLElement2);
4308
+
4309
+ var _super2 = _createSuper(PiralPortal);
4310
+
4311
+ function PiralPortal() {
4312
+ _classCallCheck(this, PiralPortal);
4313
+
4314
+ return _super2.apply(this, arguments);
4315
+ }
4316
+
4317
+ _createClass(PiralPortal, [{
4318
+ key: "connectedCallback",
4319
+ value: function connectedCallback() {
4320
+ this.style.display = 'contents';
4321
+ }
4322
+ }]);
4323
+
4324
+ return PiralPortal;
4325
+ }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
4326
+
4327
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.portalName, PiralPortal);
4328
+ /**
4329
+ * This is a virtual element to aggregate rendering from other frameworks, mostly
4330
+ * used like piral-portal, but without context-hosting capabilities. This would
4331
+ * be used exclusively within a foreign framework, not from Piral to initiate.
4332
+ *
4333
+ * Usage:
4334
+ *
4335
+ * ```
4336
+ * <piral-slot></piral-slot>
4337
+ * ```
4338
+ */
4339
+
4340
+ var PiralSlot = /*#__PURE__*/function (_HTMLElement3) {
4341
+ _inherits(PiralSlot, _HTMLElement3);
4342
+
4343
+ var _super3 = _createSuper(PiralSlot);
4344
+
4345
+ function PiralSlot() {
4346
+ _classCallCheck(this, PiralSlot);
4347
+
4348
+ return _super3.apply(this, arguments);
4349
+ }
4350
+
4351
+ _createClass(PiralSlot, [{
4352
+ key: "connectedCallback",
4353
+ value: function connectedCallback() {
4354
+ this.style.display = 'contents';
4355
+ }
4356
+ }]);
4357
+
4358
+ return PiralSlot;
4359
+ }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
4360
+
4361
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.slotName, PiralSlot);
4166
4362
  }
4167
4363
 
4168
4364
  function renderElement(context, element, props) {
@@ -4214,7 +4410,7 @@ __webpack_require__.r(__webpack_exports__);
4214
4410
  /* harmony export */ "includeActions": () => (/* binding */ includeActions)
4215
4411
  /* harmony export */ });
4216
4412
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions */ "../../framework/piral-core/esm/actions/index.js");
4217
- /* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
4413
+ /* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
4218
4414
 
4219
4415
 
4220
4416
 
@@ -4547,7 +4743,7 @@ var SlotCarrier = function SlotCarrier(_ref) {
4547
4743
  }, [nodes]);
4548
4744
 
4549
4745
  if (nodes.length) {
4550
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("slot", {
4746
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-slot", {
4551
4747
  ref: host
4552
4748
  });
4553
4749
  }
@@ -4596,13 +4792,19 @@ __webpack_require__.r(__webpack_exports__);
4596
4792
  /* harmony export */ "attachDomPortal": () => (/* binding */ attachDomPortal),
4597
4793
  /* harmony export */ "changeDomPortal": () => (/* binding */ changeDomPortal),
4598
4794
  /* harmony export */ "convertComponent": () => (/* binding */ convertComponent),
4599
- /* harmony export */ "renderInDom": () => (/* binding */ renderInDom)
4795
+ /* harmony export */ "extensionName": () => (/* binding */ extensionName),
4796
+ /* harmony export */ "portalName": () => (/* binding */ portalName),
4797
+ /* harmony export */ "renderInDom": () => (/* binding */ renderInDom),
4798
+ /* harmony export */ "slotName": () => (/* binding */ slotName)
4600
4799
  /* harmony export */ });
4601
4800
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
4602
4801
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4603
4802
  /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
4604
4803
 
4605
4804
 
4805
+ var extensionName = 'piral-extension';
4806
+ var portalName = 'piral-portal';
4807
+ var slotName = 'piral-slot';
4606
4808
  function attachDomPortal(id, context, element, component, props) {
4607
4809
  var portal = /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, props), element);
4608
4810
  context.showPortal(id, portal);
@@ -4621,11 +4823,11 @@ function convertComponent(converter, component) {
4621
4823
  return converter(component);
4622
4824
  }
4623
4825
  function renderInDom(context, element, component, props) {
4624
- var portalId = 'data-portal-id';
4826
+ var portalId = 'pid';
4625
4827
  var parent = element;
4626
4828
 
4627
4829
  while (parent) {
4628
- if (parent instanceof Element && parent.hasAttribute(portalId)) {
4830
+ if (parent instanceof Element && parent.localName === portalName && parent.hasAttribute(portalId)) {
4629
4831
  var id = parent.getAttribute(portalId);
4630
4832
  return attachDomPortal(id, context, element, component, props);
4631
4833
  }
@@ -5363,7 +5565,7 @@ function installPiralDebug(options) {
5363
5565
  type: 'boolean',
5364
5566
  label: 'State container logging',
5365
5567
  onChange: function onChange(value) {
5366
- setValue('dbg:view-state', value ? 'on' : 'off');
5568
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState, value ? 'on' : 'off');
5367
5569
  }
5368
5570
  },
5369
5571
  loadPilets: {
@@ -5371,7 +5573,7 @@ function installPiralDebug(options) {
5371
5573
  type: 'boolean',
5372
5574
  label: 'Load available pilets',
5373
5575
  onChange: function onChange(value) {
5374
- setValue('dbg:load-pilets', value ? 'on' : 'off');
5576
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets, value ? 'on' : 'off');
5375
5577
  }
5376
5578
  },
5377
5579
  hardRefresh: {
@@ -5379,7 +5581,7 @@ function installPiralDebug(options) {
5379
5581
  type: 'boolean',
5380
5582
  label: 'Full refresh on change',
5381
5583
  onChange: function onChange(value) {
5382
- setValue('dbg:hard-refresh', value ? 'on' : 'off');
5584
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh, value ? 'on' : 'off');
5383
5585
  }
5384
5586
  },
5385
5587
  viewOrigins: {
@@ -5387,7 +5589,7 @@ function installPiralDebug(options) {
5387
5589
  type: 'boolean',
5388
5590
  label: 'Visualize component origins',
5389
5591
  onChange: function onChange(value, prev) {
5390
- setValue('dbg:view-origins', value ? 'on' : 'off');
5592
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins, value ? 'on' : 'off');
5391
5593
 
5392
5594
  if (prev !== value) {
5393
5595
  updateVisualize(value);
@@ -5399,7 +5601,7 @@ function installPiralDebug(options) {
5399
5601
  type: 'boolean',
5400
5602
  label: 'Enable extension catalogue',
5401
5603
  onChange: function onChange(value) {
5402
- setValue('dbg:extension-catalogue', value ? 'on' : 'off');
5604
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue, value ? 'on' : 'off');
5403
5605
  }
5404
5606
  },
5405
5607
  clearConsole: {
@@ -5407,7 +5609,7 @@ function installPiralDebug(options) {
5407
5609
  type: 'boolean',
5408
5610
  label: 'Clear console during HMR',
5409
5611
  onChange: function onChange(value) {
5410
- setValue('dbg:clear-console', value ? 'on' : 'off');
5612
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole, value ? 'on' : 'off');
5411
5613
  }
5412
5614
  },
5413
5615
  persistSettings: {
@@ -5582,12 +5784,12 @@ function installPiralDebug(options) {
5582
5784
  debug: debugApiVersion,
5583
5785
  instance: {
5584
5786
  name: "minimal-piral",
5585
- version: "0.15.0-beta.4633",
5787
+ version: "0.15.0-beta.4672",
5586
5788
  dependencies: "tslib,react,react-dom,react-router,react-router-dom"
5587
5789
  },
5588
5790
  build: {
5589
- date: "2022-08-30T19:25:38.110Z",
5590
- cli: "0.14.30",
5791
+ date: "2022-09-21T22:43:25.193Z",
5792
+ cli: "0.14.31",
5591
5793
  compat: "0.14"
5592
5794
  }
5593
5795
  };
@@ -5715,11 +5917,12 @@ function installPiralDebug(options) {
5715
5917
  if (!legacyBrowser && event.storageArea === sessionStorage) {
5716
5918
  // potentially unknowingly updated settings
5717
5919
  updateSettings({
5718
- viewState: sessionStorage.getItem('dbg:view-state') !== 'off',
5719
- loadPilets: sessionStorage.getItem('dbg:load-pilets') === 'on',
5720
- hardRefresh: sessionStorage.getItem('dbg:hard-refresh') === 'on',
5721
- viewOrigins: sessionStorage.getItem('dbg:view-origins') === 'on',
5722
- extensionCatalogue: sessionStorage.getItem('dbg:extension-catalogue') !== 'off'
5920
+ viewState: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState) !== 'off',
5921
+ loadPilets: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets) === 'on',
5922
+ hardRefresh: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh) === 'on',
5923
+ viewOrigins: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins) === 'on',
5924
+ extensionCatalogue: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue) !== 'off',
5925
+ clearConsole: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole) === 'on'
5723
5926
  });
5724
5927
  }
5725
5928
  });
@@ -6044,6 +6247,7 @@ __webpack_require__.r(__webpack_exports__);
6044
6247
  /* harmony export */ "navigate": () => (/* binding */ navigate),
6045
6248
  /* harmony export */ "setNavigate": () => (/* binding */ setNavigate),
6046
6249
  /* harmony export */ "setState": () => (/* binding */ setState),
6250
+ /* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
6047
6251
  /* harmony export */ "subscribe": () => (/* binding */ subscribe),
6048
6252
  /* harmony export */ "useDebugState": () => (/* binding */ useDebugState)
6049
6253
  /* harmony export */ });
@@ -6062,7 +6266,16 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
6062
6266
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
6063
6267
 
6064
6268
 
6065
- var persistKey = 'dbg:persist-settings-data';
6269
+ var settingsKeys = {
6270
+ viewState: 'dbg:view-state',
6271
+ loadPilets: 'dbg:load-pilets',
6272
+ hardRefresh: 'dbg:hard-refresh',
6273
+ viewOrigins: 'dbg:view-origins',
6274
+ extensionCatalogue: 'dbg:extension-catalogue',
6275
+ clearConsole: 'dbg:clear-console',
6276
+ persistSettings: 'dbg:persist-settings-data'
6277
+ };
6278
+ var persistKey = settingsKeys.persistSettings;
6066
6279
  var persistSettings = !!localStorage.getItem(persistKey);
6067
6280
 
6068
6281
  var defaultSetter = function defaultSetter(name, value) {
@@ -6091,11 +6304,17 @@ if (persistSettings) {
6091
6304
 
6092
6305
  function enablePersistance() {
6093
6306
  var data = {};
6307
+ var validKeys = Object.keys(settingsKeys).map(function (m) {
6308
+ return settingsKeys[m];
6309
+ });
6094
6310
 
6095
6311
  for (var i = 0; i < sessionStorage.length; i++) {
6096
6312
  var name = sessionStorage.key(i);
6097
- var value = sessionStorage.getItem(name);
6098
- data[name] = value;
6313
+
6314
+ if (validKeys.includes(name)) {
6315
+ var value = sessionStorage.getItem(name);
6316
+ data[name] = value;
6317
+ }
6099
6318
  }
6100
6319
 
6101
6320
  localStorage.setItem(persistKey, JSON.stringify(data));
@@ -6107,12 +6326,12 @@ function disablePersistance() {
6107
6326
  }
6108
6327
  var initialSetter = persistSettings ? persistentSetter : defaultSetter;
6109
6328
  var initialSettings = {
6110
- viewState: sessionStorage.getItem('dbg:view-state') !== 'off',
6111
- loadPilets: sessionStorage.getItem('dbg:load-pilets') === 'on',
6112
- hardRefresh: sessionStorage.getItem('dbg:hard-refresh') === 'on',
6113
- viewOrigins: sessionStorage.getItem('dbg:view-origins') === 'on',
6114
- extensionCatalogue: sessionStorage.getItem('dbg:extension-catalogue') !== 'off',
6115
- clearConsole: sessionStorage.getItem('dbg:clear-console') === 'on',
6329
+ viewState: sessionStorage.getItem(settingsKeys.viewState) !== 'off',
6330
+ loadPilets: sessionStorage.getItem(settingsKeys.loadPilets) === 'on',
6331
+ hardRefresh: sessionStorage.getItem(settingsKeys.hardRefresh) === 'on',
6332
+ viewOrigins: sessionStorage.getItem(settingsKeys.viewOrigins) === 'on',
6333
+ extensionCatalogue: sessionStorage.getItem(settingsKeys.extensionCatalogue) !== 'off',
6334
+ clearConsole: sessionStorage.getItem(settingsKeys.clearConsole) === 'on',
6116
6335
  persistSettings: persistSettings,
6117
6336
  cataloguePath: '/$debug-extension-catalogue'
6118
6337
  };
@@ -7568,14 +7787,14 @@ var react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
7568
7787
  __webpack_require__.r(__webpack_exports__);
7569
7788
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7570
7789
  /* harmony export */ "createDefaultState": () => (/* binding */ createDefaultState),
7571
- /* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
7572
- /* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
7790
+ /* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.createNavigation),
7791
+ /* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.createRedirect),
7573
7792
  /* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
7574
- /* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_10__.integrateDebugger),
7575
- /* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_11__.integrateEmulator),
7793
+ /* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_11__.integrateDebugger),
7794
+ /* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_12__.integrateEmulator),
7576
7795
  /* harmony export */ "publicPath": () => (/* binding */ publicPath),
7577
7796
  /* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
7578
- /* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
7797
+ /* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.useRouterContext)
7579
7798
  /* harmony export */ });
7580
7799
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
7581
7800
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
@@ -7583,14 +7802,15 @@ __webpack_require__.r(__webpack_exports__);
7583
7802
  /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
7584
7803
  /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
7585
7804
  /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router-dom */ "../../../node_modules/react-router-dom/esm/react-router-dom.js");
7586
- /* harmony import */ var piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! piral-core/_/defaults/DefaultErrorInfo */ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js");
7587
- /* harmony import */ var piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLoadingIndicator */ "../../framework/piral-core/esm/defaults/DefaultLoadingIndicator.js");
7588
- /* harmony import */ var piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLayout */ "../../framework/piral-core/esm/defaults/DefaultLayout.js");
7589
- /* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
7590
- /* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
7591
- /* harmony import */ var piral_core_debugger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! piral-core/_/debugger */ "../../framework/piral-core/esm/debugger.js");
7592
- /* harmony import */ var piral_core_emulator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! piral-core/_/emulator */ "../../framework/piral-core/esm/emulator.js");
7593
- /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
7805
+ /* harmony import */ var piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! piral-core/_/defaults/DefaultErrorInfo */ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js");
7806
+ /* harmony import */ var piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLoadingIndicator */ "../../framework/piral-core/esm/defaults/DefaultLoadingIndicator.js");
7807
+ /* harmony import */ var piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLayout */ "../../framework/piral-core/esm/defaults/DefaultLayout.js");
7808
+ /* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
7809
+ /* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
7810
+ /* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
7811
+ /* harmony import */ var piral_core_debugger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! piral-core/_/debugger */ "../../framework/piral-core/esm/debugger.js");
7812
+ /* harmony import */ var piral_core_emulator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! piral-core/_/emulator */ "../../framework/piral-core/esm/emulator.js");
7813
+ /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
7594
7814
 
7595
7815
 
7596
7816
 
@@ -7608,74 +7828,14 @@ __webpack_require__.r(__webpack_exports__);
7608
7828
 
7609
7829
 
7610
7830
 
7611
-
7612
-
7613
- let _nav;
7614
- const _noop = () => {};
7615
-
7616
7831
 
7617
7832
  function fillDependencies(deps) {
7618
7833
  deps['minimal-piral']={};deps["tslib"]=tslib__WEBPACK_IMPORTED_MODULE_2__;deps["tslib@2.3.1"]=tslib__WEBPACK_IMPORTED_MODULE_2__;deps["react"]=react__WEBPACK_IMPORTED_MODULE_0__;deps["react@18.2.0"]=react__WEBPACK_IMPORTED_MODULE_0__;deps["react-dom"]=/*#__PURE__*/ (react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(react_dom__WEBPACK_IMPORTED_MODULE_1__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(react_dom__WEBPACK_IMPORTED_MODULE_1__, 2)));deps["react-router"]=react_router__WEBPACK_IMPORTED_MODULE_3__;deps["react-router@5.3.3"]=react_router__WEBPACK_IMPORTED_MODULE_3__;deps["react-router-dom"]=react_router_dom__WEBPACK_IMPORTED_MODULE_4__;deps["react-router-dom@5.3.3"]=react_router_dom__WEBPACK_IMPORTED_MODULE_4__
7619
7834
  }
7620
7835
 
7621
7836
 
7622
- function useCurrentNavigation() {
7623
- const ctx = useRouterContext();
7624
-
7625
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
7626
- _nav = ctx.history;
7627
- return () => {
7628
- _nav = undefined;
7629
- };
7630
- }, []);
7631
- }
7632
-
7633
-
7634
- function createNavigation() {
7635
- const enhance = info => ({
7636
- ...info,
7637
- location: {
7638
- get href() {
7639
- return _nav.createHref(info.location);
7640
- },
7641
- ...info.location,
7642
- },
7643
- });
7644
-
7645
- return {
7646
- push(target, state) {
7647
- if (_nav) {
7648
- _nav.push(target, state);
7649
- }
7650
- },
7651
- replace(target, state) {
7652
- if (_nav) {
7653
- _nav.replace(target, state);
7654
- }
7655
- },
7656
- go(n) {
7657
- if (_nav) {
7658
- _nav.go(n);
7659
- }
7660
- },
7661
- block(blocker) {
7662
- if (!_nav) {
7663
- return _noop;
7664
- }
7665
- return _nav.block((location, action) => blocker(enhance({ location, action })));
7666
- },
7667
- listen(listener) {
7668
- if (!_nav) {
7669
- return _noop;
7670
- }
7671
- return _nav.listen((location, action) => listener(enhance({ location, action })));
7672
- },
7673
- router: {
7674
- history: _nav,
7675
- },
7676
- };
7677
- }
7678
7837
 
7838
+
7679
7839
 
7680
7840
  const publicPath = "/";
7681
7841
 
@@ -7687,11 +7847,11 @@ __webpack_require__.r(__webpack_exports__);
7687
7847
  loading: typeof window !== 'undefined',
7688
7848
  },
7689
7849
  components: {
7690
- ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_5__.DefaultErrorInfo,
7691
- LoadingIndicator: piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_6__.DefaultLoadingIndicator,
7692
- Router: piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_7__.DefaultRouter,
7693
- RouteSwitch: piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_8__.DefaultRouteSwitch,
7694
- Layout: piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_9__.DefaultLayout,
7850
+ ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_6__.DefaultErrorInfo,
7851
+ LoadingIndicator: piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_7__.DefaultLoadingIndicator,
7852
+ Router: piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_8__.DefaultRouter,
7853
+ RouteSwitch: piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_9__.DefaultRouteSwitch,
7854
+ Layout: piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_10__.DefaultLayout,
7695
7855
  },
7696
7856
  errorComponents: {},
7697
7857
  registry: {
@@ -7709,21 +7869,11 @@ __webpack_require__.r(__webpack_exports__);
7709
7869
 
7710
7870
 
7711
7871
 
7712
- function createRedirect(to) {
7713
- return () => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router__WEBPACK_IMPORTED_MODULE_3__.Redirect, { to });
7714
- }
7715
-
7716
-
7717
- function useRouterContext() {
7718
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(react_router__WEBPACK_IMPORTED_MODULE_3__.__RouterContext);
7719
- }
7720
-
7721
-
7722
7872
  function useRouteFilter(paths) {
7723
7873
 
7724
- useCurrentNavigation();
7874
+ ;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.useCurrentNavigation)();
7725
7875
 
7726
- return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_12__.debugRouteFilter)(paths);
7876
+ return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__.debugRouteFilter)(paths);
7727
7877
  }
7728
7878
 
7729
7879
 
@@ -45696,4 +45846,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
45696
45846
 
45697
45847
  /******/ })()
45698
45848
  ;
45699
- //# sourceMappingURL=index.ff6693.js.map
45849
+ //# sourceMappingURL=index.952a8a.js.map