sample-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.e44fc2.js → index.88b73a.js} +144 -103
- package/app/index.88b73a.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 +8 -8
- package/app/index.e44fc2.js.map +0 -1
|
@@ -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 ***!
|
|
@@ -4582,7 +4699,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4582
4699
|
/* harmony export */ "includeActions": () => (/* binding */ includeActions)
|
|
4583
4700
|
/* harmony export */ });
|
|
4584
4701
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions */ "../../framework/piral-core/esm/actions/index.js");
|
|
4585
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/
|
|
4702
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
4586
4703
|
|
|
4587
4704
|
|
|
4588
4705
|
|
|
@@ -8612,12 +8729,12 @@ function installPiralDebug(options) {
|
|
|
8612
8729
|
debug: debugApiVersion,
|
|
8613
8730
|
instance: {
|
|
8614
8731
|
name: "sample-piral",
|
|
8615
|
-
version: "0.15.0-beta.
|
|
8732
|
+
version: "0.15.0-beta.4696",
|
|
8616
8733
|
dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
|
|
8617
8734
|
},
|
|
8618
8735
|
build: {
|
|
8619
|
-
date: "2022-09-
|
|
8620
|
-
cli: "0.14.
|
|
8736
|
+
date: "2022-09-29T15:32:14.626Z",
|
|
8737
|
+
cli: "0.14.32",
|
|
8621
8738
|
compat: "0.14"
|
|
8622
8739
|
}
|
|
8623
8740
|
};
|
|
@@ -13160,14 +13277,14 @@ var react_dom__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
|
13160
13277
|
__webpack_require__.r(__webpack_exports__);
|
|
13161
13278
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13162
13279
|
/* harmony export */ "createDefaultState": () => (/* binding */ createDefaultState),
|
|
13163
|
-
/* harmony export */ "createNavigation": () => (/*
|
|
13164
|
-
/* harmony export */ "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),
|
|
13165
13282
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
13166
|
-
/* harmony export */ "integrateDebugger": () => (/* reexport safe */
|
|
13167
|
-
/* harmony export */ "integrateEmulator": () => (/* reexport safe */
|
|
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),
|
|
13168
13285
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
13169
13286
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
13170
|
-
/* harmony export */ "useRouterContext": () => (/*
|
|
13287
|
+
/* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.useRouterContext)
|
|
13171
13288
|
/* harmony export */ });
|
|
13172
13289
|
/* harmony import */ var reactstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! reactstrap */ "../../../node_modules/reactstrap/es/index.js");
|
|
13173
13290
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
@@ -13176,14 +13293,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13176
13293
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
|
|
13177
13294
|
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
13178
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");
|
|
13179
|
-
/* harmony import */ var
|
|
13180
|
-
/* harmony import */ var
|
|
13181
|
-
/* harmony import */ var
|
|
13182
|
-
/* harmony import */ var
|
|
13183
|
-
/* harmony import */ var
|
|
13184
|
-
/* harmony import */ var
|
|
13185
|
-
/* harmony import */ var
|
|
13186
|
-
/* harmony import */ var
|
|
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");
|
|
13187
13305
|
|
|
13188
13306
|
|
|
13189
13307
|
|
|
@@ -13202,81 +13320,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13202
13320
|
|
|
13203
13321
|
|
|
13204
13322
|
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
let _nav;
|
|
13208
|
-
const _noop = () => {};
|
|
13209
|
-
|
|
13210
13323
|
|
|
13211
13324
|
function fillDependencies(deps) {
|
|
13212
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__
|
|
13213
13326
|
}
|
|
13214
13327
|
|
|
13215
13328
|
|
|
13216
|
-
function useCurrentNavigation() {
|
|
13217
|
-
const ctx = useRouterContext();
|
|
13218
|
-
|
|
13219
|
-
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
13220
|
-
_nav = ctx.history;
|
|
13221
|
-
return () => {
|
|
13222
|
-
_nav = undefined;
|
|
13223
|
-
};
|
|
13224
|
-
}, []);
|
|
13225
|
-
}
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
function createNavigation() {
|
|
13229
|
-
const enhance = info => ({
|
|
13230
|
-
...info,
|
|
13231
|
-
location: {
|
|
13232
|
-
get href() {
|
|
13233
|
-
return _nav.createHref(info.location);
|
|
13234
|
-
},
|
|
13235
|
-
...info.location,
|
|
13236
|
-
},
|
|
13237
|
-
});
|
|
13238
|
-
|
|
13239
|
-
return {
|
|
13240
|
-
get path() {
|
|
13241
|
-
if (_nav) {
|
|
13242
|
-
return _nav.location.pathname;
|
|
13243
|
-
}
|
|
13244
|
-
|
|
13245
|
-
return location.pathname;
|
|
13246
|
-
},
|
|
13247
|
-
push(target, state) {
|
|
13248
|
-
if (_nav) {
|
|
13249
|
-
_nav.push(target, state);
|
|
13250
|
-
}
|
|
13251
|
-
},
|
|
13252
|
-
replace(target, state) {
|
|
13253
|
-
if (_nav) {
|
|
13254
|
-
_nav.replace(target, state);
|
|
13255
|
-
}
|
|
13256
|
-
},
|
|
13257
|
-
go(n) {
|
|
13258
|
-
if (_nav) {
|
|
13259
|
-
_nav.go(n);
|
|
13260
|
-
}
|
|
13261
|
-
},
|
|
13262
|
-
block(blocker) {
|
|
13263
|
-
if (!_nav) {
|
|
13264
|
-
return _noop;
|
|
13265
|
-
}
|
|
13266
|
-
return _nav.block((location, action) => blocker(enhance({ location, action })));
|
|
13267
|
-
},
|
|
13268
|
-
listen(listener) {
|
|
13269
|
-
if (!_nav) {
|
|
13270
|
-
return _noop;
|
|
13271
|
-
}
|
|
13272
|
-
return _nav.listen((location, action) => listener(enhance({ location, action })));
|
|
13273
|
-
},
|
|
13274
|
-
router: {
|
|
13275
|
-
history: _nav,
|
|
13276
|
-
},
|
|
13277
|
-
};
|
|
13278
|
-
}
|
|
13279
13329
|
|
|
13330
|
+
|
|
13280
13331
|
|
|
13281
13332
|
const publicPath = "/";
|
|
13282
13333
|
|
|
@@ -13288,11 +13339,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13288
13339
|
loading: typeof window !== 'undefined',
|
|
13289
13340
|
},
|
|
13290
13341
|
components: {
|
|
13291
|
-
ErrorInfo:
|
|
13292
|
-
LoadingIndicator:
|
|
13293
|
-
Router:
|
|
13294
|
-
RouteSwitch:
|
|
13295
|
-
Layout:
|
|
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,
|
|
13296
13347
|
},
|
|
13297
13348
|
errorComponents: {},
|
|
13298
13349
|
registry: {
|
|
@@ -13310,21 +13361,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13310
13361
|
|
|
13311
13362
|
|
|
13312
13363
|
|
|
13313
|
-
function createRedirect(to) {
|
|
13314
|
-
return () => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router__WEBPACK_IMPORTED_MODULE_4__.Redirect, { to });
|
|
13315
|
-
}
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
function useRouterContext() {
|
|
13319
|
-
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(react_router__WEBPACK_IMPORTED_MODULE_4__.__RouterContext);
|
|
13320
|
-
}
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
13364
|
function useRouteFilter(paths) {
|
|
13324
13365
|
|
|
13325
|
-
useCurrentNavigation();
|
|
13366
|
+
;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_6__.useCurrentNavigation)();
|
|
13326
13367
|
|
|
13327
|
-
return (0,
|
|
13368
|
+
return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_14__.debugRouteFilter)(paths);
|
|
13328
13369
|
}
|
|
13329
13370
|
|
|
13330
13371
|
|
|
@@ -66430,4 +66471,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
|
|
|
66430
66471
|
|
|
66431
66472
|
/******/ })()
|
|
66432
66473
|
;
|
|
66433
|
-
//# sourceMappingURL=index.
|
|
66474
|
+
//# sourceMappingURL=index.88b73a.js.map
|