minimal-piral 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.8da693.js → index.21c15a.js} +144 -103
- package/app/index.21c15a.js.map +1 -0
- package/app/index.d.ts +6 -2
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +5 -5
- package/app/index.8da693.js.map +0 -1
|
@@ -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 ***!
|
|
@@ -4293,7 +4410,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4293
4410
|
/* harmony export */ "includeActions": () => (/* binding */ includeActions)
|
|
4294
4411
|
/* harmony export */ });
|
|
4295
4412
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions */ "../../framework/piral-core/esm/actions/index.js");
|
|
4296
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/
|
|
4413
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
4297
4414
|
|
|
4298
4415
|
|
|
4299
4416
|
|
|
@@ -5667,12 +5784,12 @@ function installPiralDebug(options) {
|
|
|
5667
5784
|
debug: debugApiVersion,
|
|
5668
5785
|
instance: {
|
|
5669
5786
|
name: "minimal-piral",
|
|
5670
|
-
version: "0.15.0-beta.
|
|
5787
|
+
version: "0.15.0-beta.4696",
|
|
5671
5788
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
5672
5789
|
},
|
|
5673
5790
|
build: {
|
|
5674
|
-
date: "2022-09-
|
|
5675
|
-
cli: "0.14.
|
|
5791
|
+
date: "2022-09-29T15:32:18.496Z",
|
|
5792
|
+
cli: "0.14.32",
|
|
5676
5793
|
compat: "0.14"
|
|
5677
5794
|
}
|
|
5678
5795
|
};
|
|
@@ -7670,14 +7787,14 @@ var react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
|
7670
7787
|
__webpack_require__.r(__webpack_exports__);
|
|
7671
7788
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7672
7789
|
/* harmony export */ "createDefaultState": () => (/* binding */ createDefaultState),
|
|
7673
|
-
/* harmony export */ "createNavigation": () => (/*
|
|
7674
|
-
/* harmony export */ "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),
|
|
7675
7792
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
7676
|
-
/* harmony export */ "integrateDebugger": () => (/* reexport safe */
|
|
7677
|
-
/* harmony export */ "integrateEmulator": () => (/* reexport safe */
|
|
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),
|
|
7678
7795
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
7679
7796
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
7680
|
-
/* harmony export */ "useRouterContext": () => (/*
|
|
7797
|
+
/* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.useRouterContext)
|
|
7681
7798
|
/* harmony export */ });
|
|
7682
7799
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
7683
7800
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
@@ -7685,14 +7802,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7685
7802
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
|
|
7686
7803
|
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
7687
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");
|
|
7688
|
-
/* harmony import */ var
|
|
7689
|
-
/* harmony import */ var
|
|
7690
|
-
/* harmony import */ var
|
|
7691
|
-
/* harmony import */ var
|
|
7692
|
-
/* harmony import */ var
|
|
7693
|
-
/* harmony import */ var
|
|
7694
|
-
/* harmony import */ var
|
|
7695
|
-
/* harmony import */ var
|
|
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");
|
|
7696
7814
|
|
|
7697
7815
|
|
|
7698
7816
|
|
|
@@ -7710,81 +7828,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7710
7828
|
|
|
7711
7829
|
|
|
7712
7830
|
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
let _nav;
|
|
7716
|
-
const _noop = () => {};
|
|
7717
|
-
|
|
7718
7831
|
|
|
7719
7832
|
function fillDependencies(deps) {
|
|
7720
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__
|
|
7721
7834
|
}
|
|
7722
7835
|
|
|
7723
7836
|
|
|
7724
|
-
function useCurrentNavigation() {
|
|
7725
|
-
const ctx = useRouterContext();
|
|
7726
|
-
|
|
7727
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
7728
|
-
_nav = ctx.history;
|
|
7729
|
-
return () => {
|
|
7730
|
-
_nav = undefined;
|
|
7731
|
-
};
|
|
7732
|
-
}, []);
|
|
7733
|
-
}
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
function createNavigation() {
|
|
7737
|
-
const enhance = info => ({
|
|
7738
|
-
...info,
|
|
7739
|
-
location: {
|
|
7740
|
-
get href() {
|
|
7741
|
-
return _nav.createHref(info.location);
|
|
7742
|
-
},
|
|
7743
|
-
...info.location,
|
|
7744
|
-
},
|
|
7745
|
-
});
|
|
7746
|
-
|
|
7747
|
-
return {
|
|
7748
|
-
get path() {
|
|
7749
|
-
if (_nav) {
|
|
7750
|
-
return _nav.location.pathname;
|
|
7751
|
-
}
|
|
7752
|
-
|
|
7753
|
-
return location.pathname;
|
|
7754
|
-
},
|
|
7755
|
-
push(target, state) {
|
|
7756
|
-
if (_nav) {
|
|
7757
|
-
_nav.push(target, state);
|
|
7758
|
-
}
|
|
7759
|
-
},
|
|
7760
|
-
replace(target, state) {
|
|
7761
|
-
if (_nav) {
|
|
7762
|
-
_nav.replace(target, state);
|
|
7763
|
-
}
|
|
7764
|
-
},
|
|
7765
|
-
go(n) {
|
|
7766
|
-
if (_nav) {
|
|
7767
|
-
_nav.go(n);
|
|
7768
|
-
}
|
|
7769
|
-
},
|
|
7770
|
-
block(blocker) {
|
|
7771
|
-
if (!_nav) {
|
|
7772
|
-
return _noop;
|
|
7773
|
-
}
|
|
7774
|
-
return _nav.block((location, action) => blocker(enhance({ location, action })));
|
|
7775
|
-
},
|
|
7776
|
-
listen(listener) {
|
|
7777
|
-
if (!_nav) {
|
|
7778
|
-
return _noop;
|
|
7779
|
-
}
|
|
7780
|
-
return _nav.listen((location, action) => listener(enhance({ location, action })));
|
|
7781
|
-
},
|
|
7782
|
-
router: {
|
|
7783
|
-
history: _nav,
|
|
7784
|
-
},
|
|
7785
|
-
};
|
|
7786
|
-
}
|
|
7787
7837
|
|
|
7838
|
+
|
|
7788
7839
|
|
|
7789
7840
|
const publicPath = "/";
|
|
7790
7841
|
|
|
@@ -7796,11 +7847,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7796
7847
|
loading: typeof window !== 'undefined',
|
|
7797
7848
|
},
|
|
7798
7849
|
components: {
|
|
7799
|
-
ErrorInfo:
|
|
7800
|
-
LoadingIndicator:
|
|
7801
|
-
Router:
|
|
7802
|
-
RouteSwitch:
|
|
7803
|
-
Layout:
|
|
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,
|
|
7804
7855
|
},
|
|
7805
7856
|
errorComponents: {},
|
|
7806
7857
|
registry: {
|
|
@@ -7818,21 +7869,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7818
7869
|
|
|
7819
7870
|
|
|
7820
7871
|
|
|
7821
|
-
function createRedirect(to) {
|
|
7822
|
-
return () => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router__WEBPACK_IMPORTED_MODULE_3__.Redirect, { to });
|
|
7823
|
-
}
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
function useRouterContext() {
|
|
7827
|
-
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(react_router__WEBPACK_IMPORTED_MODULE_3__.__RouterContext);
|
|
7828
|
-
}
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
7872
|
function useRouteFilter(paths) {
|
|
7832
7873
|
|
|
7833
|
-
useCurrentNavigation();
|
|
7874
|
+
;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_5__.useCurrentNavigation)();
|
|
7834
7875
|
|
|
7835
|
-
return (0,
|
|
7876
|
+
return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_13__.debugRouteFilter)(paths);
|
|
7836
7877
|
}
|
|
7837
7878
|
|
|
7838
7879
|
|
|
@@ -45805,4 +45846,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45805
45846
|
|
|
45806
45847
|
/******/ })()
|
|
45807
45848
|
;
|
|
45808
|
-
//# sourceMappingURL=index.
|
|
45849
|
+
//# sourceMappingURL=index.21c15a.js.map
|