sample-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.
@@ -2947,8 +2947,8 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
2947
2947
  key: "render",
2948
2948
  value: function render() {
2949
2949
  var $portalId = this.props.$portalId;
2950
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
2951
- "data-portal-id": $portalId,
2950
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-portal", {
2951
+ pid: $portalId,
2952
2952
  ref: this.setNode
2953
2953
  });
2954
2954
  }
@@ -3830,6 +3830,123 @@ DefaultRouter.displayName = 'DefaultRouter';
3830
3830
 
3831
3831
  /***/ }),
3832
3832
 
3833
+ /***/ "../../framework/piral-core/esm/defaults/navigator_v5.js":
3834
+ /*!***************************************************************!*\
3835
+ !*** ../../framework/piral-core/esm/defaults/navigator_v5.js ***!
3836
+ \***************************************************************/
3837
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3838
+
3839
+ "use strict";
3840
+ __webpack_require__.r(__webpack_exports__);
3841
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3842
+ /* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
3843
+ /* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
3844
+ /* harmony export */ "useCurrentNavigation": () => (/* binding */ useCurrentNavigation),
3845
+ /* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
3846
+ /* harmony export */ });
3847
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
3848
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
3849
+ /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
3850
+
3851
+
3852
+
3853
+ var _nav;
3854
+
3855
+ var _noop = function _noop() {};
3856
+
3857
+ function useRouterContext() {
3858
+ return react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_1__.__RouterContext);
3859
+ }
3860
+ function useCurrentNavigation() {
3861
+ var ctx = useRouterContext();
3862
+ var location = (0,react_router__WEBPACK_IMPORTED_MODULE_1__.useLocation)();
3863
+ react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
3864
+ if (_nav) {
3865
+ window.dispatchEvent(new CustomEvent('piral-navigate', {
3866
+ detail: {
3867
+ location: location
3868
+ }
3869
+ }));
3870
+ }
3871
+ }, [location]);
3872
+ react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
3873
+ _nav = ctx.history;
3874
+ return function () {
3875
+ _nav = undefined;
3876
+ };
3877
+ }, []);
3878
+ }
3879
+ function createRedirect(to) {
3880
+ return function () {
3881
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__.Redirect, {
3882
+ to: to
3883
+ });
3884
+ };
3885
+ }
3886
+ function createNavigation() {
3887
+ var enhance = function enhance(location, action) {
3888
+ return {
3889
+ action: action,
3890
+ location: Object.assign({
3891
+ get href() {
3892
+ return _nav.createHref(location);
3893
+ }
3894
+
3895
+ }, location)
3896
+ };
3897
+ };
3898
+
3899
+ return {
3900
+ get path() {
3901
+ if (_nav) {
3902
+ return _nav.location.pathname;
3903
+ }
3904
+
3905
+ return location.pathname;
3906
+ },
3907
+
3908
+ push: function push(target, state) {
3909
+ if (_nav) {
3910
+ _nav.push(target, state);
3911
+ }
3912
+ },
3913
+ replace: function replace(target, state) {
3914
+ if (_nav) {
3915
+ _nav.replace(target, state);
3916
+ }
3917
+ },
3918
+ go: function go(n) {
3919
+ if (_nav) {
3920
+ _nav.go(n);
3921
+ }
3922
+ },
3923
+ block: function block(blocker) {
3924
+ if (!_nav) {
3925
+ return _noop;
3926
+ }
3927
+
3928
+ return _nav.block(function (location, action) {
3929
+ return blocker(enhance(location, action));
3930
+ });
3931
+ },
3932
+ listen: function listen(listener) {
3933
+ var handler = function handler(e) {
3934
+ return listener(enhance(e.detail, _nav.action));
3935
+ };
3936
+
3937
+ window.addEventListener('piral-navigate', handler);
3938
+ return function () {
3939
+ window.removeEventListener('piral-navigate', handler);
3940
+ };
3941
+ },
3942
+ router: {
3943
+ history: _nav
3944
+ }
3945
+ };
3946
+ }
3947
+
3948
+ /***/ }),
3949
+
3833
3950
  /***/ "../../framework/piral-core/esm/emulator.js":
3834
3951
  /*!**************************************************!*\
3835
3952
  !*** ../../framework/piral-core/esm/emulator.js ***!
@@ -4359,6 +4476,16 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
4359
4476
 
4360
4477
 
4361
4478
  if (typeof window !== 'undefined' && 'customElements' in window) {
4479
+ /**
4480
+ * This is a nice abstraction allowing anyone to actually use the extension system
4481
+ * brought by Piral. Not all props of the extension system are actually exposed.
4482
+ *
4483
+ * Usage:
4484
+ *
4485
+ * ```
4486
+ * <piral-extension name="my-ext-name"></piral-extension>
4487
+ * ```
4488
+ */
4362
4489
  var PiralExtension = /*#__PURE__*/function (_HTMLElement) {
4363
4490
  _inherits(PiralExtension, _HTMLElement);
4364
4491
 
@@ -4411,6 +4538,8 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
4411
4538
  }, {
4412
4539
  key: "connectedCallback",
4413
4540
  value: function connectedCallback() {
4541
+ this.style.display = 'contents';
4542
+
4414
4543
  if (this.isConnected) {
4415
4544
  this.dispatchEvent(new CustomEvent('render-html', {
4416
4545
  bubbles: true,
@@ -4451,7 +4580,74 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
4451
4580
  return PiralExtension;
4452
4581
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
4453
4582
 
4454
- customElements.define('piral-extension', PiralExtension);
4583
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.extensionName, PiralExtension);
4584
+ /**
4585
+ * This is a boundary to host elements from other frameworks - effectively vanishing
4586
+ * at runtime.
4587
+ *
4588
+ * Usage:
4589
+ *
4590
+ * ```
4591
+ * <piral-portal pid="host-1234"></piral-portal>
4592
+ * ```
4593
+ */
4594
+
4595
+ var PiralPortal = /*#__PURE__*/function (_HTMLElement2) {
4596
+ _inherits(PiralPortal, _HTMLElement2);
4597
+
4598
+ var _super2 = _createSuper(PiralPortal);
4599
+
4600
+ function PiralPortal() {
4601
+ _classCallCheck(this, PiralPortal);
4602
+
4603
+ return _super2.apply(this, arguments);
4604
+ }
4605
+
4606
+ _createClass(PiralPortal, [{
4607
+ key: "connectedCallback",
4608
+ value: function connectedCallback() {
4609
+ this.style.display = 'contents';
4610
+ }
4611
+ }]);
4612
+
4613
+ return PiralPortal;
4614
+ }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
4615
+
4616
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.portalName, PiralPortal);
4617
+ /**
4618
+ * This is a virtual element to aggregate rendering from other frameworks, mostly
4619
+ * used like piral-portal, but without context-hosting capabilities. This would
4620
+ * be used exclusively within a foreign framework, not from Piral to initiate.
4621
+ *
4622
+ * Usage:
4623
+ *
4624
+ * ```
4625
+ * <piral-slot></piral-slot>
4626
+ * ```
4627
+ */
4628
+
4629
+ var PiralSlot = /*#__PURE__*/function (_HTMLElement3) {
4630
+ _inherits(PiralSlot, _HTMLElement3);
4631
+
4632
+ var _super3 = _createSuper(PiralSlot);
4633
+
4634
+ function PiralSlot() {
4635
+ _classCallCheck(this, PiralSlot);
4636
+
4637
+ return _super3.apply(this, arguments);
4638
+ }
4639
+
4640
+ _createClass(PiralSlot, [{
4641
+ key: "connectedCallback",
4642
+ value: function connectedCallback() {
4643
+ this.style.display = 'contents';
4644
+ }
4645
+ }]);
4646
+
4647
+ return PiralSlot;
4648
+ }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
4649
+
4650
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.slotName, PiralSlot);
4455
4651
  }
4456
4652
 
4457
4653
  function renderElement(context, element, props) {
@@ -4503,7 +4699,7 @@ __webpack_require__.r(__webpack_exports__);
4503
4699
  /* harmony export */ "includeActions": () => (/* binding */ includeActions)
4504
4700
  /* harmony export */ });
4505
4701
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions */ "../../framework/piral-core/esm/actions/index.js");
4506
- /* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
4702
+ /* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
4507
4703
 
4508
4704
 
4509
4705
 
@@ -4836,7 +5032,7 @@ var SlotCarrier = function SlotCarrier(_ref) {
4836
5032
  }, [nodes]);
4837
5033
 
4838
5034
  if (nodes.length) {
4839
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("slot", {
5035
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("piral-slot", {
4840
5036
  ref: host
4841
5037
  });
4842
5038
  }
@@ -4885,13 +5081,19 @@ __webpack_require__.r(__webpack_exports__);
4885
5081
  /* harmony export */ "attachDomPortal": () => (/* binding */ attachDomPortal),
4886
5082
  /* harmony export */ "changeDomPortal": () => (/* binding */ changeDomPortal),
4887
5083
  /* harmony export */ "convertComponent": () => (/* binding */ convertComponent),
4888
- /* harmony export */ "renderInDom": () => (/* binding */ renderInDom)
5084
+ /* harmony export */ "extensionName": () => (/* binding */ extensionName),
5085
+ /* harmony export */ "portalName": () => (/* binding */ portalName),
5086
+ /* harmony export */ "renderInDom": () => (/* binding */ renderInDom),
5087
+ /* harmony export */ "slotName": () => (/* binding */ slotName)
4889
5088
  /* harmony export */ });
4890
5089
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
4891
5090
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
4892
5091
  /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
4893
5092
 
4894
5093
 
5094
+ var extensionName = 'piral-extension';
5095
+ var portalName = 'piral-portal';
5096
+ var slotName = 'piral-slot';
4895
5097
  function attachDomPortal(id, context, element, component, props) {
4896
5098
  var portal = /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(component, props), element);
4897
5099
  context.showPortal(id, portal);
@@ -4910,11 +5112,11 @@ function convertComponent(converter, component) {
4910
5112
  return converter(component);
4911
5113
  }
4912
5114
  function renderInDom(context, element, component, props) {
4913
- var portalId = 'data-portal-id';
5115
+ var portalId = 'pid';
4914
5116
  var parent = element;
4915
5117
 
4916
5118
  while (parent) {
4917
- if (parent instanceof Element && parent.hasAttribute(portalId)) {
5119
+ if (parent instanceof Element && parent.localName === portalName && parent.hasAttribute(portalId)) {
4918
5120
  var id = parent.getAttribute(portalId);
4919
5121
  return attachDomPortal(id, context, element, component, props);
4920
5122
  }
@@ -8308,7 +8510,7 @@ function installPiralDebug(options) {
8308
8510
  type: 'boolean',
8309
8511
  label: 'State container logging',
8310
8512
  onChange: function onChange(value) {
8311
- setValue('dbg:view-state', value ? 'on' : 'off');
8513
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState, value ? 'on' : 'off');
8312
8514
  }
8313
8515
  },
8314
8516
  loadPilets: {
@@ -8316,7 +8518,7 @@ function installPiralDebug(options) {
8316
8518
  type: 'boolean',
8317
8519
  label: 'Load available pilets',
8318
8520
  onChange: function onChange(value) {
8319
- setValue('dbg:load-pilets', value ? 'on' : 'off');
8521
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets, value ? 'on' : 'off');
8320
8522
  }
8321
8523
  },
8322
8524
  hardRefresh: {
@@ -8324,7 +8526,7 @@ function installPiralDebug(options) {
8324
8526
  type: 'boolean',
8325
8527
  label: 'Full refresh on change',
8326
8528
  onChange: function onChange(value) {
8327
- setValue('dbg:hard-refresh', value ? 'on' : 'off');
8529
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh, value ? 'on' : 'off');
8328
8530
  }
8329
8531
  },
8330
8532
  viewOrigins: {
@@ -8332,7 +8534,7 @@ function installPiralDebug(options) {
8332
8534
  type: 'boolean',
8333
8535
  label: 'Visualize component origins',
8334
8536
  onChange: function onChange(value, prev) {
8335
- setValue('dbg:view-origins', value ? 'on' : 'off');
8537
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins, value ? 'on' : 'off');
8336
8538
 
8337
8539
  if (prev !== value) {
8338
8540
  updateVisualize(value);
@@ -8344,7 +8546,7 @@ function installPiralDebug(options) {
8344
8546
  type: 'boolean',
8345
8547
  label: 'Enable extension catalogue',
8346
8548
  onChange: function onChange(value) {
8347
- setValue('dbg:extension-catalogue', value ? 'on' : 'off');
8549
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue, value ? 'on' : 'off');
8348
8550
  }
8349
8551
  },
8350
8552
  clearConsole: {
@@ -8352,7 +8554,7 @@ function installPiralDebug(options) {
8352
8554
  type: 'boolean',
8353
8555
  label: 'Clear console during HMR',
8354
8556
  onChange: function onChange(value) {
8355
- setValue('dbg:clear-console', value ? 'on' : 'off');
8557
+ setValue(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole, value ? 'on' : 'off');
8356
8558
  }
8357
8559
  },
8358
8560
  persistSettings: {
@@ -8527,12 +8729,12 @@ function installPiralDebug(options) {
8527
8729
  debug: debugApiVersion,
8528
8730
  instance: {
8529
8731
  name: "sample-piral",
8530
- version: "0.15.0-beta.4633",
8732
+ version: "0.15.0-beta.4672",
8531
8733
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
8532
8734
  },
8533
8735
  build: {
8534
- date: "2022-08-30T19:25:48.541Z",
8535
- cli: "0.14.30",
8736
+ date: "2022-09-21T22:42:23.622Z",
8737
+ cli: "0.14.31",
8536
8738
  compat: "0.14"
8537
8739
  }
8538
8740
  };
@@ -8660,11 +8862,12 @@ function installPiralDebug(options) {
8660
8862
  if (!legacyBrowser && event.storageArea === sessionStorage) {
8661
8863
  // potentially unknowingly updated settings
8662
8864
  updateSettings({
8663
- viewState: sessionStorage.getItem('dbg:view-state') !== 'off',
8664
- loadPilets: sessionStorage.getItem('dbg:load-pilets') === 'on',
8665
- hardRefresh: sessionStorage.getItem('dbg:hard-refresh') === 'on',
8666
- viewOrigins: sessionStorage.getItem('dbg:view-origins') === 'on',
8667
- extensionCatalogue: sessionStorage.getItem('dbg:extension-catalogue') !== 'off'
8865
+ viewState: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewState) !== 'off',
8866
+ loadPilets: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.loadPilets) === 'on',
8867
+ hardRefresh: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.hardRefresh) === 'on',
8868
+ viewOrigins: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.viewOrigins) === 'on',
8869
+ extensionCatalogue: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.extensionCatalogue) !== 'off',
8870
+ clearConsole: sessionStorage.getItem(_state__WEBPACK_IMPORTED_MODULE_0__.settingsKeys.clearConsole) === 'on'
8668
8871
  });
8669
8872
  }
8670
8873
  });
@@ -8989,6 +9192,7 @@ __webpack_require__.r(__webpack_exports__);
8989
9192
  /* harmony export */ "navigate": () => (/* binding */ navigate),
8990
9193
  /* harmony export */ "setNavigate": () => (/* binding */ setNavigate),
8991
9194
  /* harmony export */ "setState": () => (/* binding */ setState),
9195
+ /* harmony export */ "settingsKeys": () => (/* binding */ settingsKeys),
8992
9196
  /* harmony export */ "subscribe": () => (/* binding */ subscribe),
8993
9197
  /* harmony export */ "useDebugState": () => (/* binding */ useDebugState)
8994
9198
  /* harmony export */ });
@@ -9007,7 +9211,16 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
9007
9211
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9008
9212
 
9009
9213
 
9010
- var persistKey = 'dbg:persist-settings-data';
9214
+ var settingsKeys = {
9215
+ viewState: 'dbg:view-state',
9216
+ loadPilets: 'dbg:load-pilets',
9217
+ hardRefresh: 'dbg:hard-refresh',
9218
+ viewOrigins: 'dbg:view-origins',
9219
+ extensionCatalogue: 'dbg:extension-catalogue',
9220
+ clearConsole: 'dbg:clear-console',
9221
+ persistSettings: 'dbg:persist-settings-data'
9222
+ };
9223
+ var persistKey = settingsKeys.persistSettings;
9011
9224
  var persistSettings = !!localStorage.getItem(persistKey);
9012
9225
 
9013
9226
  var defaultSetter = function defaultSetter(name, value) {
@@ -9036,11 +9249,17 @@ if (persistSettings) {
9036
9249
 
9037
9250
  function enablePersistance() {
9038
9251
  var data = {};
9252
+ var validKeys = Object.keys(settingsKeys).map(function (m) {
9253
+ return settingsKeys[m];
9254
+ });
9039
9255
 
9040
9256
  for (var i = 0; i < sessionStorage.length; i++) {
9041
9257
  var name = sessionStorage.key(i);
9042
- var value = sessionStorage.getItem(name);
9043
- data[name] = value;
9258
+
9259
+ if (validKeys.includes(name)) {
9260
+ var value = sessionStorage.getItem(name);
9261
+ data[name] = value;
9262
+ }
9044
9263
  }
9045
9264
 
9046
9265
  localStorage.setItem(persistKey, JSON.stringify(data));
@@ -9052,12 +9271,12 @@ function disablePersistance() {
9052
9271
  }
9053
9272
  var initialSetter = persistSettings ? persistentSetter : defaultSetter;
9054
9273
  var initialSettings = {
9055
- viewState: sessionStorage.getItem('dbg:view-state') !== 'off',
9056
- loadPilets: sessionStorage.getItem('dbg:load-pilets') === 'on',
9057
- hardRefresh: sessionStorage.getItem('dbg:hard-refresh') === 'on',
9058
- viewOrigins: sessionStorage.getItem('dbg:view-origins') === 'on',
9059
- extensionCatalogue: sessionStorage.getItem('dbg:extension-catalogue') !== 'off',
9060
- clearConsole: sessionStorage.getItem('dbg:clear-console') === 'on',
9274
+ viewState: sessionStorage.getItem(settingsKeys.viewState) !== 'off',
9275
+ loadPilets: sessionStorage.getItem(settingsKeys.loadPilets) === 'on',
9276
+ hardRefresh: sessionStorage.getItem(settingsKeys.hardRefresh) === 'on',
9277
+ viewOrigins: sessionStorage.getItem(settingsKeys.viewOrigins) === 'on',
9278
+ extensionCatalogue: sessionStorage.getItem(settingsKeys.extensionCatalogue) !== 'off',
9279
+ clearConsole: sessionStorage.getItem(settingsKeys.clearConsole) === 'on',
9061
9280
  persistSettings: persistSettings,
9062
9281
  cataloguePath: '/$debug-extension-catalogue'
9063
9282
  };
@@ -13058,14 +13277,14 @@ var react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
13058
13277
  __webpack_require__.r(__webpack_exports__);
13059
13278
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13060
13279
  /* harmony export */ "createDefaultState": () => (/* binding */ createDefaultState),
13061
- /* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
13062
- /* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
13280
+ /* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.createNavigation),
13281
+ /* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.createRedirect),
13063
13282
  /* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
13064
- /* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_11__.integrateDebugger),
13065
- /* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_12__.integrateEmulator),
13283
+ /* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_12__.integrateDebugger),
13284
+ /* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_13__.integrateEmulator),
13066
13285
  /* harmony export */ "publicPath": () => (/* binding */ publicPath),
13067
13286
  /* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
13068
- /* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
13287
+ /* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.useRouterContext)
13069
13288
  /* harmony export */ });
13070
13289
  /* harmony import */ var reactstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! reactstrap */ "../../../node_modules/reactstrap/es/index.js");
13071
13290
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
@@ -13074,14 +13293,15 @@ __webpack_require__.r(__webpack_exports__);
13074
13293
  /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
13075
13294
  /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
13076
13295
  /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ "../../../node_modules/react-router-dom/esm/react-router-dom.js");
13077
- /* harmony import */ var piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! piral-core/_/defaults/DefaultErrorInfo */ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js");
13078
- /* harmony import */ var piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLoadingIndicator */ "../../framework/piral-core/esm/defaults/DefaultLoadingIndicator.js");
13079
- /* harmony import */ var piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLayout */ "../../framework/piral-core/esm/defaults/DefaultLayout.js");
13080
- /* 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");
13081
- /* 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");
13082
- /* harmony import */ var piral_core_debugger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! piral-core/_/debugger */ "../../framework/piral-core/esm/debugger.js");
13083
- /* harmony import */ var piral_core_emulator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! piral-core/_/emulator */ "../../framework/piral-core/esm/emulator.js");
13084
- /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
13296
+ /* harmony import */ var piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! piral-core/_/defaults/DefaultErrorInfo */ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js");
13297
+ /* harmony import */ var piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLoadingIndicator */ "../../framework/piral-core/esm/defaults/DefaultLoadingIndicator.js");
13298
+ /* harmony import */ var piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLayout */ "../../framework/piral-core/esm/defaults/DefaultLayout.js");
13299
+ /* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
13300
+ /* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
13301
+ /* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
13302
+ /* harmony import */ var piral_core_debugger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! piral-core/_/debugger */ "../../framework/piral-core/esm/debugger.js");
13303
+ /* harmony import */ var piral_core_emulator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! piral-core/_/emulator */ "../../framework/piral-core/esm/emulator.js");
13304
+ /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
13085
13305
 
13086
13306
 
13087
13307
 
@@ -13100,74 +13320,14 @@ __webpack_require__.r(__webpack_exports__);
13100
13320
 
13101
13321
 
13102
13322
 
13103
-
13104
-
13105
- let _nav;
13106
- const _noop = () => {};
13107
-
13108
13323
 
13109
13324
  function fillDependencies(deps) {
13110
13325
  deps['sample-piral']={};deps["reactstrap"]=reactstrap__WEBPACK_IMPORTED_MODULE_2__;deps["reactstrap@8.10.1"]=reactstrap__WEBPACK_IMPORTED_MODULE_2__;deps["tslib"]=tslib__WEBPACK_IMPORTED_MODULE_3__;deps["tslib@2.3.1"]=tslib__WEBPACK_IMPORTED_MODULE_3__;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_4__;deps["react-router@5.3.3"]=react_router__WEBPACK_IMPORTED_MODULE_4__;deps["react-router-dom"]=react_router_dom__WEBPACK_IMPORTED_MODULE_5__;deps["react-router-dom@5.3.3"]=react_router_dom__WEBPACK_IMPORTED_MODULE_5__
13111
13326
  }
13112
13327
 
13113
13328
 
13114
- function useCurrentNavigation() {
13115
- const ctx = useRouterContext();
13116
-
13117
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
13118
- _nav = ctx.history;
13119
- return () => {
13120
- _nav = undefined;
13121
- };
13122
- }, []);
13123
- }
13124
-
13125
-
13126
- function createNavigation() {
13127
- const enhance = info => ({
13128
- ...info,
13129
- location: {
13130
- get href() {
13131
- return _nav.createHref(info.location);
13132
- },
13133
- ...info.location,
13134
- },
13135
- });
13136
-
13137
- return {
13138
- push(target, state) {
13139
- if (_nav) {
13140
- _nav.push(target, state);
13141
- }
13142
- },
13143
- replace(target, state) {
13144
- if (_nav) {
13145
- _nav.replace(target, state);
13146
- }
13147
- },
13148
- go(n) {
13149
- if (_nav) {
13150
- _nav.go(n);
13151
- }
13152
- },
13153
- block(blocker) {
13154
- if (!_nav) {
13155
- return _noop;
13156
- }
13157
- return _nav.block((location, action) => blocker(enhance({ location, action })));
13158
- },
13159
- listen(listener) {
13160
- if (!_nav) {
13161
- return _noop;
13162
- }
13163
- return _nav.listen((location, action) => listener(enhance({ location, action })));
13164
- },
13165
- router: {
13166
- history: _nav,
13167
- },
13168
- };
13169
- }
13170
13329
 
13330
+
13171
13331
 
13172
13332
  const publicPath = "/";
13173
13333
 
@@ -13179,11 +13339,11 @@ __webpack_require__.r(__webpack_exports__);
13179
13339
  loading: typeof window !== 'undefined',
13180
13340
  },
13181
13341
  components: {
13182
- ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_6__.DefaultErrorInfo,
13183
- LoadingIndicator: piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_7__.DefaultLoadingIndicator,
13184
- Router: piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_8__.DefaultRouter,
13185
- RouteSwitch: piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_9__.DefaultRouteSwitch,
13186
- Layout: piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_10__.DefaultLayout,
13342
+ ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_7__.DefaultErrorInfo,
13343
+ LoadingIndicator: piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_8__.DefaultLoadingIndicator,
13344
+ Router: piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_9__.DefaultRouter,
13345
+ RouteSwitch: piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_10__.DefaultRouteSwitch,
13346
+ Layout: piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_11__.DefaultLayout,
13187
13347
  },
13188
13348
  errorComponents: {},
13189
13349
  registry: {
@@ -13201,21 +13361,11 @@ __webpack_require__.r(__webpack_exports__);
13201
13361
 
13202
13362
 
13203
13363
 
13204
- function createRedirect(to) {
13205
- return () => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router__WEBPACK_IMPORTED_MODULE_4__.Redirect, { to });
13206
- }
13207
-
13208
-
13209
- function useRouterContext() {
13210
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(react_router__WEBPACK_IMPORTED_MODULE_4__.__RouterContext);
13211
- }
13212
-
13213
-
13214
13364
  function useRouteFilter(paths) {
13215
13365
 
13216
- useCurrentNavigation();
13366
+ ;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.useCurrentNavigation)();
13217
13367
 
13218
- return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__.debugRouteFilter)(paths);
13368
+ return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_14__.debugRouteFilter)(paths);
13219
13369
  }
13220
13370
 
13221
13371
 
@@ -66321,4 +66471,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
66321
66471
 
66322
66472
  /******/ })()
66323
66473
  ;
66324
- //# sourceMappingURL=index.e41fbd.js.map
66474
+ //# sourceMappingURL=index.3057c8.js.map