sample-cross-fx 0.15.0-beta.4670 → 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.
- package/app/{index.972786.js → index.b0ccff.js} +152 -103
- package/app/{index.972786.js.map → index.b0ccff.js.map} +1 -1
- package/app/index.d.ts +2 -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 +1 -1
|
@@ -54266,6 +54266,16 @@ function project(component, destination, options) {
|
|
|
54266
54266
|
destination.appendChild(component);
|
|
54267
54267
|
}
|
|
54268
54268
|
|
|
54269
|
+
function makeUrl(href) {
|
|
54270
|
+
const origin = document.location.origin;
|
|
54271
|
+
|
|
54272
|
+
if (!href.startsWith(origin)) {
|
|
54273
|
+
return `${origin}${href}`;
|
|
54274
|
+
}
|
|
54275
|
+
|
|
54276
|
+
return href;
|
|
54277
|
+
}
|
|
54278
|
+
|
|
54269
54279
|
function createConverter(lazy) {
|
|
54270
54280
|
const boot = (0,_interop__WEBPACK_IMPORTED_MODULE_0__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
54271
54281
|
let loader = !lazy && boot();
|
|
@@ -54293,7 +54303,8 @@ function createConverter(lazy) {
|
|
|
54293
54303
|
}) => {
|
|
54294
54304
|
// POP is already handled by .NET
|
|
54295
54305
|
if (action !== 'POP') {
|
|
54296
|
-
(
|
|
54306
|
+
const url = makeUrl(location.href);
|
|
54307
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_0__.callNotifyLocationChanged)(url, action === 'REPLACE');
|
|
54297
54308
|
}
|
|
54298
54309
|
});
|
|
54299
54310
|
}
|
|
@@ -60465,6 +60476,120 @@ DefaultRouter.displayName = 'DefaultRouter';
|
|
|
60465
60476
|
|
|
60466
60477
|
/***/ }),
|
|
60467
60478
|
|
|
60479
|
+
/***/ "../../framework/piral-core/esm/defaults/navigator_v5.js":
|
|
60480
|
+
/*!***************************************************************!*\
|
|
60481
|
+
!*** ../../framework/piral-core/esm/defaults/navigator_v5.js ***!
|
|
60482
|
+
\***************************************************************/
|
|
60483
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
60484
|
+
|
|
60485
|
+
"use strict";
|
|
60486
|
+
__webpack_require__.r(__webpack_exports__);
|
|
60487
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60488
|
+
/* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
|
|
60489
|
+
/* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
|
|
60490
|
+
/* harmony export */ "useCurrentNavigation": () => (/* binding */ useCurrentNavigation),
|
|
60491
|
+
/* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
|
|
60492
|
+
/* harmony export */ });
|
|
60493
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
60494
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
60495
|
+
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
60496
|
+
|
|
60497
|
+
|
|
60498
|
+
|
|
60499
|
+
let _nav;
|
|
60500
|
+
|
|
60501
|
+
const _noop = () => {};
|
|
60502
|
+
|
|
60503
|
+
function useRouterContext() {
|
|
60504
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_1__.__RouterContext);
|
|
60505
|
+
}
|
|
60506
|
+
function useCurrentNavigation() {
|
|
60507
|
+
const ctx = useRouterContext();
|
|
60508
|
+
const location = (0,react_router__WEBPACK_IMPORTED_MODULE_1__.useLocation)();
|
|
60509
|
+
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
|
60510
|
+
if (_nav) {
|
|
60511
|
+
window.dispatchEvent(new CustomEvent('piral-navigate', {
|
|
60512
|
+
detail: {
|
|
60513
|
+
location
|
|
60514
|
+
}
|
|
60515
|
+
}));
|
|
60516
|
+
}
|
|
60517
|
+
}, [location]);
|
|
60518
|
+
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
|
60519
|
+
_nav = ctx.history;
|
|
60520
|
+
return () => {
|
|
60521
|
+
_nav = undefined;
|
|
60522
|
+
};
|
|
60523
|
+
}, []);
|
|
60524
|
+
}
|
|
60525
|
+
function createRedirect(to) {
|
|
60526
|
+
return () => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__.Redirect, {
|
|
60527
|
+
to: to
|
|
60528
|
+
});
|
|
60529
|
+
}
|
|
60530
|
+
function createNavigation() {
|
|
60531
|
+
const enhance = (location, action) => ({
|
|
60532
|
+
action,
|
|
60533
|
+
location: Object.assign({
|
|
60534
|
+
get href() {
|
|
60535
|
+
return _nav.createHref(location);
|
|
60536
|
+
}
|
|
60537
|
+
|
|
60538
|
+
}, location)
|
|
60539
|
+
});
|
|
60540
|
+
|
|
60541
|
+
return {
|
|
60542
|
+
get path() {
|
|
60543
|
+
if (_nav) {
|
|
60544
|
+
return _nav.location.pathname;
|
|
60545
|
+
}
|
|
60546
|
+
|
|
60547
|
+
return location.pathname;
|
|
60548
|
+
},
|
|
60549
|
+
|
|
60550
|
+
push(target, state) {
|
|
60551
|
+
if (_nav) {
|
|
60552
|
+
_nav.push(target, state);
|
|
60553
|
+
}
|
|
60554
|
+
},
|
|
60555
|
+
|
|
60556
|
+
replace(target, state) {
|
|
60557
|
+
if (_nav) {
|
|
60558
|
+
_nav.replace(target, state);
|
|
60559
|
+
}
|
|
60560
|
+
},
|
|
60561
|
+
|
|
60562
|
+
go(n) {
|
|
60563
|
+
if (_nav) {
|
|
60564
|
+
_nav.go(n);
|
|
60565
|
+
}
|
|
60566
|
+
},
|
|
60567
|
+
|
|
60568
|
+
block(blocker) {
|
|
60569
|
+
if (!_nav) {
|
|
60570
|
+
return _noop;
|
|
60571
|
+
}
|
|
60572
|
+
|
|
60573
|
+
return _nav.block((location, action) => blocker(enhance(location, action)));
|
|
60574
|
+
},
|
|
60575
|
+
|
|
60576
|
+
listen(listener) {
|
|
60577
|
+
const handler = e => listener(enhance(e.detail, _nav.action));
|
|
60578
|
+
|
|
60579
|
+
window.addEventListener('piral-navigate', handler);
|
|
60580
|
+
return () => {
|
|
60581
|
+
window.removeEventListener('piral-navigate', handler);
|
|
60582
|
+
};
|
|
60583
|
+
},
|
|
60584
|
+
|
|
60585
|
+
router: {
|
|
60586
|
+
history: _nav
|
|
60587
|
+
}
|
|
60588
|
+
};
|
|
60589
|
+
}
|
|
60590
|
+
|
|
60591
|
+
/***/ }),
|
|
60592
|
+
|
|
60468
60593
|
/***/ "../../framework/piral-core/esm/emulator.js":
|
|
60469
60594
|
/*!**************************************************!*\
|
|
60470
60595
|
!*** ../../framework/piral-core/esm/emulator.js ***!
|
|
@@ -61107,7 +61232,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61107
61232
|
/* harmony export */ "includeActions": () => (/* binding */ includeActions)
|
|
61108
61233
|
/* harmony export */ });
|
|
61109
61234
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions */ "../../framework/piral-core/esm/actions/index.js");
|
|
61110
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/
|
|
61235
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
61111
61236
|
|
|
61112
61237
|
|
|
61113
61238
|
|
|
@@ -62666,11 +62791,11 @@ function installPiralDebug(options) {
|
|
|
62666
62791
|
debug: debugApiVersion,
|
|
62667
62792
|
instance: {
|
|
62668
62793
|
name: "sample-cross-fx",
|
|
62669
|
-
version: "0.15.0-beta.
|
|
62794
|
+
version: "0.15.0-beta.4672",
|
|
62670
62795
|
dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
62671
62796
|
},
|
|
62672
62797
|
build: {
|
|
62673
|
-
date: "2022-09-
|
|
62798
|
+
date: "2022-09-21T22:45:27.818Z",
|
|
62674
62799
|
cli: "0.14.31",
|
|
62675
62800
|
compat: "0.14"
|
|
62676
62801
|
}
|
|
@@ -74394,14 +74519,14 @@ var react_dom__WEBPACK_IMPORTED_MODULE_18___namespace_cache;
|
|
|
74394
74519
|
__webpack_require__.r(__webpack_exports__);
|
|
74395
74520
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
74396
74521
|
/* harmony export */ "createDefaultState": () => (/* binding */ createDefaultState),
|
|
74397
|
-
/* harmony export */ "createNavigation": () => (/*
|
|
74398
|
-
/* harmony export */ "createRedirect": () => (/*
|
|
74522
|
+
/* harmony export */ "createNavigation": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createNavigation),
|
|
74523
|
+
/* harmony export */ "createRedirect": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.createRedirect),
|
|
74399
74524
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
74400
|
-
/* harmony export */ "integrateDebugger": () => (/* reexport safe */
|
|
74401
|
-
/* harmony export */ "integrateEmulator": () => (/* reexport safe */
|
|
74525
|
+
/* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_37__.integrateDebugger),
|
|
74526
|
+
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_38__.integrateEmulator),
|
|
74402
74527
|
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
74403
74528
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
74404
|
-
/* harmony export */ "useRouterContext": () => (/*
|
|
74529
|
+
/* harmony export */ "useRouterContext": () => (/* reexport safe */ piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.useRouterContext)
|
|
74405
74530
|
/* harmony export */ });
|
|
74406
74531
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
|
|
74407
74532
|
/* harmony import */ var _angular_compiler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/compiler */ "../../../node_modules/@angular/compiler/fesm2020/compiler.mjs");
|
|
@@ -74439,14 +74564,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74439
74564
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! react-dom */ "../../../node_modules/react-dom/index.js");
|
|
74440
74565
|
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
74441
74566
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! react-router-dom */ "../../../node_modules/react-router-dom/esm/react-router-dom.js");
|
|
74442
|
-
/* harmony import */ var
|
|
74443
|
-
/* harmony import */ var
|
|
74444
|
-
/* harmony import */ var
|
|
74445
|
-
/* harmony import */ var
|
|
74446
|
-
/* harmony import */ var
|
|
74447
|
-
/* harmony import */ var
|
|
74448
|
-
/* harmony import */ var
|
|
74449
|
-
/* harmony import */ var
|
|
74567
|
+
/* harmony import */ var piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! piral-core/_/defaults/DefaultErrorInfo */ "../../framework/piral-core/esm/defaults/DefaultErrorInfo.js");
|
|
74568
|
+
/* harmony import */ var piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLoadingIndicator */ "../../framework/piral-core/esm/defaults/DefaultLoadingIndicator.js");
|
|
74569
|
+
/* harmony import */ var piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! piral-core/_/defaults/DefaultLayout */ "../../framework/piral-core/esm/defaults/DefaultLayout.js");
|
|
74570
|
+
/* harmony import */ var piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouter_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouter_v5.js");
|
|
74571
|
+
/* harmony import */ var piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! piral-core/_/defaults/DefaultRouteSwitch_v5 */ "../../framework/piral-core/esm/defaults/DefaultRouteSwitch_v5.js");
|
|
74572
|
+
/* harmony import */ var piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! piral-core/_/defaults/navigator_v5 */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
74573
|
+
/* harmony import */ var piral_core_debugger__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! piral-core/_/debugger */ "../../framework/piral-core/esm/debugger.js");
|
|
74574
|
+
/* harmony import */ var piral_core_emulator__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! piral-core/_/emulator */ "../../framework/piral-core/esm/emulator.js");
|
|
74575
|
+
/* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
74450
74576
|
|
|
74451
74577
|
|
|
74452
74578
|
|
|
@@ -74489,11 +74615,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74489
74615
|
|
|
74490
74616
|
|
|
74491
74617
|
|
|
74492
|
-
|
|
74493
|
-
|
|
74494
|
-
|
|
74495
|
-
let _nav;
|
|
74496
|
-
const _noop = () => {};
|
|
74497
74618
|
|
|
74498
74619
|
|
|
74499
74620
|
function fillDependencies(deps) {
|
|
@@ -74501,70 +74622,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74501
74622
|
}
|
|
74502
74623
|
|
|
74503
74624
|
|
|
74504
|
-
function useCurrentNavigation() {
|
|
74505
|
-
const ctx = useRouterContext();
|
|
74506
|
-
|
|
74507
|
-
(0,react__WEBPACK_IMPORTED_MODULE_17__.useEffect)(() => {
|
|
74508
|
-
_nav = ctx.history;
|
|
74509
|
-
return () => {
|
|
74510
|
-
_nav = undefined;
|
|
74511
|
-
};
|
|
74512
|
-
}, []);
|
|
74513
|
-
}
|
|
74514
|
-
|
|
74515
|
-
|
|
74516
|
-
function createNavigation() {
|
|
74517
|
-
const enhance = info => ({
|
|
74518
|
-
...info,
|
|
74519
|
-
location: {
|
|
74520
|
-
get href() {
|
|
74521
|
-
return _nav.createHref(info.location);
|
|
74522
|
-
},
|
|
74523
|
-
...info.location,
|
|
74524
|
-
},
|
|
74525
|
-
});
|
|
74526
|
-
|
|
74527
|
-
return {
|
|
74528
|
-
get path() {
|
|
74529
|
-
if (_nav) {
|
|
74530
|
-
return _nav.location.pathname;
|
|
74531
|
-
}
|
|
74532
|
-
|
|
74533
|
-
return location.pathname;
|
|
74534
|
-
},
|
|
74535
|
-
push(target, state) {
|
|
74536
|
-
if (_nav) {
|
|
74537
|
-
_nav.push(target, state);
|
|
74538
|
-
}
|
|
74539
|
-
},
|
|
74540
|
-
replace(target, state) {
|
|
74541
|
-
if (_nav) {
|
|
74542
|
-
_nav.replace(target, state);
|
|
74543
|
-
}
|
|
74544
|
-
},
|
|
74545
|
-
go(n) {
|
|
74546
|
-
if (_nav) {
|
|
74547
|
-
_nav.go(n);
|
|
74548
|
-
}
|
|
74549
|
-
},
|
|
74550
|
-
block(blocker) {
|
|
74551
|
-
if (!_nav) {
|
|
74552
|
-
return _noop;
|
|
74553
|
-
}
|
|
74554
|
-
return _nav.block((location, action) => blocker(enhance({ location, action })));
|
|
74555
|
-
},
|
|
74556
|
-
listen(listener) {
|
|
74557
|
-
if (!_nav) {
|
|
74558
|
-
return _noop;
|
|
74559
|
-
}
|
|
74560
|
-
return _nav.listen((location, action) => listener(enhance({ location, action })));
|
|
74561
|
-
},
|
|
74562
|
-
router: {
|
|
74563
|
-
history: _nav,
|
|
74564
|
-
},
|
|
74565
|
-
};
|
|
74566
|
-
}
|
|
74567
74625
|
|
|
74626
|
+
|
|
74568
74627
|
|
|
74569
74628
|
const publicPath = "/";
|
|
74570
74629
|
|
|
@@ -74576,11 +74635,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74576
74635
|
loading: typeof window !== 'undefined',
|
|
74577
74636
|
},
|
|
74578
74637
|
components: {
|
|
74579
|
-
ErrorInfo:
|
|
74580
|
-
LoadingIndicator:
|
|
74581
|
-
Router:
|
|
74582
|
-
RouteSwitch:
|
|
74583
|
-
Layout:
|
|
74638
|
+
ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_32__.DefaultErrorInfo,
|
|
74639
|
+
LoadingIndicator: piral_core_defaults_DefaultLoadingIndicator__WEBPACK_IMPORTED_MODULE_33__.DefaultLoadingIndicator,
|
|
74640
|
+
Router: piral_core_defaults_DefaultRouter_v5__WEBPACK_IMPORTED_MODULE_34__.DefaultRouter,
|
|
74641
|
+
RouteSwitch: piral_core_defaults_DefaultRouteSwitch_v5__WEBPACK_IMPORTED_MODULE_35__.DefaultRouteSwitch,
|
|
74642
|
+
Layout: piral_core_defaults_DefaultLayout__WEBPACK_IMPORTED_MODULE_36__.DefaultLayout,
|
|
74584
74643
|
},
|
|
74585
74644
|
errorComponents: {},
|
|
74586
74645
|
registry: {
|
|
@@ -74598,21 +74657,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74598
74657
|
|
|
74599
74658
|
|
|
74600
74659
|
|
|
74601
|
-
function createRedirect(to) {
|
|
74602
|
-
return () => (0,react__WEBPACK_IMPORTED_MODULE_17__.createElement)(react_router__WEBPACK_IMPORTED_MODULE_29__.Redirect, { to });
|
|
74603
|
-
}
|
|
74604
|
-
|
|
74605
|
-
|
|
74606
|
-
function useRouterContext() {
|
|
74607
|
-
return (0,react__WEBPACK_IMPORTED_MODULE_17__.useContext)(react_router__WEBPACK_IMPORTED_MODULE_29__.__RouterContext);
|
|
74608
|
-
}
|
|
74609
|
-
|
|
74610
|
-
|
|
74611
74660
|
function useRouteFilter(paths) {
|
|
74612
74661
|
|
|
74613
|
-
useCurrentNavigation();
|
|
74662
|
+
;(0,piral_core_defaults_navigator_v5__WEBPACK_IMPORTED_MODULE_31__.useCurrentNavigation)();
|
|
74614
74663
|
|
|
74615
|
-
return (0,
|
|
74664
|
+
return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_39__.debugRouteFilter)(paths);
|
|
74616
74665
|
}
|
|
74617
74666
|
|
|
74618
74667
|
|
|
@@ -211240,4 +211289,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
211240
211289
|
|
|
211241
211290
|
/******/ })()
|
|
211242
211291
|
;
|
|
211243
|
-
//# sourceMappingURL=index.
|
|
211292
|
+
//# sourceMappingURL=index.b0ccff.js.map
|