sample-cross-fx 0.14.14-beta.3753 → 0.14.14-beta.3765
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.469b4c.js → index.4fbb2d.js} +258 -107
- package/app/{index.469b4c.js.map → index.4fbb2d.js.map} +1 -1
- package/app/index.d.ts +27 -0
- 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
|
@@ -129977,6 +129977,45 @@ DefaultLoadingIndicator.displayName = 'DefaultLoadingIndicator';
|
|
|
129977
129977
|
|
|
129978
129978
|
/***/ }),
|
|
129979
129979
|
|
|
129980
|
+
/***/ "../../framework/piral-core/esm/components/DefaultRouteSwitch.js":
|
|
129981
|
+
/*!***********************************************************************!*\
|
|
129982
|
+
!*** ../../framework/piral-core/esm/components/DefaultRouteSwitch.js ***!
|
|
129983
|
+
\***********************************************************************/
|
|
129984
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
129985
|
+
|
|
129986
|
+
"use strict";
|
|
129987
|
+
__webpack_require__.r(__webpack_exports__);
|
|
129988
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
129989
|
+
/* harmony export */ "DefaultRouteSwitch": () => (/* binding */ DefaultRouteSwitch)
|
|
129990
|
+
/* harmony export */ });
|
|
129991
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
129992
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
129993
|
+
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
129994
|
+
|
|
129995
|
+
|
|
129996
|
+
|
|
129997
|
+
const DefaultRouteSwitch = _a => {
|
|
129998
|
+
var {
|
|
129999
|
+
paths,
|
|
130000
|
+
NotFound
|
|
130001
|
+
} = _a,
|
|
130002
|
+
props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["paths", "NotFound"]);
|
|
130003
|
+
|
|
130004
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_2__.Switch, Object.assign({}, props), paths.map(({
|
|
130005
|
+
path,
|
|
130006
|
+
Component
|
|
130007
|
+
}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_2__.Route, {
|
|
130008
|
+
exact: true,
|
|
130009
|
+
key: path,
|
|
130010
|
+
path: path,
|
|
130011
|
+
component: Component
|
|
130012
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_2__.Route, {
|
|
130013
|
+
component: NotFound
|
|
130014
|
+
}));
|
|
130015
|
+
};
|
|
130016
|
+
|
|
130017
|
+
/***/ }),
|
|
130018
|
+
|
|
129980
130019
|
/***/ "../../framework/piral-core/esm/components/DefaultRouter.js":
|
|
129981
130020
|
/*!******************************************************************!*\
|
|
129982
130021
|
!*** ../../framework/piral-core/esm/components/DefaultRouter.js ***!
|
|
@@ -130297,37 +130336,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130297
130336
|
/* harmony export */ });
|
|
130298
130337
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
130299
130338
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
130300
|
-
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
130301
130339
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
130302
130340
|
|
|
130303
130341
|
|
|
130304
130342
|
|
|
130305
|
-
|
|
130306
130343
|
/**
|
|
130307
130344
|
* The component for defining the exclusive routes to be used.
|
|
130308
130345
|
*/
|
|
130309
130346
|
|
|
130310
130347
|
const PiralRoutes = _a => {
|
|
130311
130348
|
var {
|
|
130312
|
-
NotFound
|
|
130349
|
+
NotFound,
|
|
130350
|
+
RouteSwitch
|
|
130313
130351
|
} = _a,
|
|
130314
|
-
props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["NotFound"]);
|
|
130352
|
+
props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["NotFound", "RouteSwitch"]);
|
|
130315
130353
|
|
|
130316
130354
|
const routes = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useGlobalState)(s => s.routes);
|
|
130317
130355
|
const pages = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useGlobalState)(s => s.registry.pages);
|
|
130318
|
-
|
|
130319
|
-
|
|
130320
|
-
|
|
130321
|
-
|
|
130322
|
-
component: routes[url]
|
|
130323
|
-
})), Object.keys(pages).map(url => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.Route, {
|
|
130324
|
-
exact: true,
|
|
130325
|
-
key: url,
|
|
130326
|
-
path: url,
|
|
130327
|
-
component: pages[url].component
|
|
130328
|
-
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.Route, {
|
|
130329
|
-
component: NotFound
|
|
130356
|
+
const paths = [];
|
|
130357
|
+
Object.keys(routes).map(path => paths.push({
|
|
130358
|
+
path,
|
|
130359
|
+
Component: routes[path]
|
|
130330
130360
|
}));
|
|
130361
|
+
Object.keys(pages).map(path => paths.push({
|
|
130362
|
+
path,
|
|
130363
|
+
Component: pages[path].component
|
|
130364
|
+
}));
|
|
130365
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(RouteSwitch, Object.assign({
|
|
130366
|
+
NotFound: NotFound,
|
|
130367
|
+
paths: paths
|
|
130368
|
+
}, props));
|
|
130331
130369
|
};
|
|
130332
130370
|
PiralRoutes.displayName = 'Routes';
|
|
130333
130371
|
|
|
@@ -130346,8 +130384,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130346
130384
|
/* harmony export */ });
|
|
130347
130385
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
130348
130386
|
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
130349
|
-
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/components.js");
|
|
130350
130387
|
/* harmony import */ var _PiralRoutes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PiralRoutes */ "../../framework/piral-core/esm/components/PiralRoutes.js");
|
|
130388
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/components.js");
|
|
130351
130389
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
130352
130390
|
|
|
130353
130391
|
|
|
@@ -130371,7 +130409,8 @@ const PiralContent = () => {
|
|
|
130371
130409
|
}) : loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_1__.PiralLoadingIndicator, null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_1__.PiralLayout, {
|
|
130372
130410
|
currentLayout: layout
|
|
130373
130411
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PiralRoutes__WEBPACK_IMPORTED_MODULE_3__.PiralRoutes, {
|
|
130374
|
-
NotFound: NotFound
|
|
130412
|
+
NotFound: NotFound,
|
|
130413
|
+
RouteSwitch: _components__WEBPACK_IMPORTED_MODULE_1__.PiralRouteSwitch
|
|
130375
130414
|
}));
|
|
130376
130415
|
};
|
|
130377
130416
|
|
|
@@ -130762,6 +130801,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130762
130801
|
/* harmony export */ "PiralError": () => (/* binding */ PiralError),
|
|
130763
130802
|
/* harmony export */ "PiralLoadingIndicator": () => (/* binding */ PiralLoadingIndicator),
|
|
130764
130803
|
/* harmony export */ "PiralRouter": () => (/* binding */ PiralRouter),
|
|
130804
|
+
/* harmony export */ "PiralRouteSwitch": () => (/* binding */ PiralRouteSwitch),
|
|
130765
130805
|
/* harmony export */ "PiralLayout": () => (/* binding */ PiralLayout),
|
|
130766
130806
|
/* harmony export */ "PiralDebug": () => (/* binding */ PiralDebug)
|
|
130767
130807
|
/* harmony export */ });
|
|
@@ -130771,7 +130811,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130771
130811
|
|
|
130772
130812
|
function getPiralComponent(name) {
|
|
130773
130813
|
return props => {
|
|
130774
|
-
const Component = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalState)(s => s.components[name]);
|
|
130814
|
+
const Component = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalState)(s => s.components[name]); // tslint:disable-next-line:no-null-keyword
|
|
130815
|
+
|
|
130775
130816
|
return Component ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, props)) : null;
|
|
130776
130817
|
};
|
|
130777
130818
|
}
|
|
@@ -130793,6 +130834,12 @@ const PiralLoadingIndicator = getPiralComponent('LoadingIndicator');
|
|
|
130793
130834
|
*/
|
|
130794
130835
|
|
|
130795
130836
|
const PiralRouter = getPiralComponent('Router');
|
|
130837
|
+
/**
|
|
130838
|
+
* Gets the currently registered Route Switch component.
|
|
130839
|
+
* By default the DefaultRouteSwitch component is used.
|
|
130840
|
+
*/
|
|
130841
|
+
|
|
130842
|
+
const PiralRouteSwitch = getPiralComponent('RouteSwitch');
|
|
130796
130843
|
/**
|
|
130797
130844
|
* Gets the currently registered Layout component.
|
|
130798
130845
|
* By default the children are rendered.
|
|
@@ -130821,50 +130868,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130821
130868
|
/* harmony export */ "PiralError": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PiralError),
|
|
130822
130869
|
/* harmony export */ "PiralLayout": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PiralLayout),
|
|
130823
130870
|
/* harmony export */ "PiralLoadingIndicator": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PiralLoadingIndicator),
|
|
130871
|
+
/* harmony export */ "PiralRouteSwitch": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PiralRouteSwitch),
|
|
130824
130872
|
/* harmony export */ "PiralRouter": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PiralRouter),
|
|
130825
130873
|
/* harmony export */ "getPiralComponent": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.getPiralComponent),
|
|
130826
130874
|
/* harmony export */ "DefaultErrorInfo": () => (/* reexport safe */ _DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_1__.DefaultErrorInfo),
|
|
130827
130875
|
/* harmony export */ "DefaultLayout": () => (/* reexport safe */ _DefaultLayout__WEBPACK_IMPORTED_MODULE_2__.DefaultLayout),
|
|
130828
130876
|
/* harmony export */ "DefaultLoadingIndicator": () => (/* reexport safe */ _DefaultLoader__WEBPACK_IMPORTED_MODULE_3__.DefaultLoadingIndicator),
|
|
130829
130877
|
/* harmony export */ "DefaultRouter": () => (/* reexport safe */ _DefaultRouter__WEBPACK_IMPORTED_MODULE_4__.DefaultRouter),
|
|
130830
|
-
/* harmony export */ "
|
|
130831
|
-
/* harmony export */ "
|
|
130832
|
-
/* harmony export */ "
|
|
130833
|
-
/* harmony export */ "
|
|
130834
|
-
/* harmony export */ "
|
|
130835
|
-
/* harmony export */ "
|
|
130836
|
-
/* harmony export */ "
|
|
130837
|
-
/* harmony export */ "
|
|
130838
|
-
/* harmony export */ "
|
|
130839
|
-
/* harmony export */ "
|
|
130840
|
-
/* harmony export */ "
|
|
130841
|
-
/* harmony export */ "
|
|
130842
|
-
/* harmony export */ "
|
|
130843
|
-
/* harmony export */ "
|
|
130844
|
-
/* harmony export */ "
|
|
130845
|
-
/* harmony export */ "
|
|
130878
|
+
/* harmony export */ "DefaultRouteSwitch": () => (/* reexport safe */ _DefaultRouteSwitch__WEBPACK_IMPORTED_MODULE_5__.DefaultRouteSwitch),
|
|
130879
|
+
/* harmony export */ "ErrorBoundary": () => (/* reexport safe */ _ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__.ErrorBoundary),
|
|
130880
|
+
/* harmony export */ "ExtensionSlot": () => (/* reexport safe */ _ExtensionSlot__WEBPACK_IMPORTED_MODULE_7__.ExtensionSlot),
|
|
130881
|
+
/* harmony export */ "Mediator": () => (/* reexport safe */ _Mediator__WEBPACK_IMPORTED_MODULE_8__.Mediator),
|
|
130882
|
+
/* harmony export */ "PiralRoutes": () => (/* reexport safe */ _PiralRoutes__WEBPACK_IMPORTED_MODULE_9__.PiralRoutes),
|
|
130883
|
+
/* harmony export */ "PiralView": () => (/* reexport safe */ _PiralView__WEBPACK_IMPORTED_MODULE_10__.PiralView),
|
|
130884
|
+
/* harmony export */ "PortalRenderer": () => (/* reexport safe */ _PortalRenderer__WEBPACK_IMPORTED_MODULE_11__.PortalRenderer),
|
|
130885
|
+
/* harmony export */ "ResponsiveLayout": () => (/* reexport safe */ _ResponsiveLayout__WEBPACK_IMPORTED_MODULE_12__.ResponsiveLayout),
|
|
130886
|
+
/* harmony export */ "SetComponent": () => (/* reexport safe */ _SetComponent__WEBPACK_IMPORTED_MODULE_13__.SetComponent),
|
|
130887
|
+
/* harmony export */ "SetError": () => (/* reexport safe */ _SetError__WEBPACK_IMPORTED_MODULE_14__.SetError),
|
|
130888
|
+
/* harmony export */ "SetErrors": () => (/* reexport safe */ _SetErrors__WEBPACK_IMPORTED_MODULE_15__.SetErrors),
|
|
130889
|
+
/* harmony export */ "SetLayout": () => (/* reexport safe */ _SetLayout__WEBPACK_IMPORTED_MODULE_16__.SetLayout),
|
|
130890
|
+
/* harmony export */ "SetProvider": () => (/* reexport safe */ _SetProvider__WEBPACK_IMPORTED_MODULE_17__.SetProvider),
|
|
130891
|
+
/* harmony export */ "SetRedirect": () => (/* reexport safe */ _SetRedirect__WEBPACK_IMPORTED_MODULE_18__.SetRedirect),
|
|
130892
|
+
/* harmony export */ "SetRoute": () => (/* reexport safe */ _SetRoute__WEBPACK_IMPORTED_MODULE_19__.SetRoute),
|
|
130893
|
+
/* harmony export */ "SwitchErrorInfo": () => (/* reexport safe */ _SwitchErrorInfo__WEBPACK_IMPORTED_MODULE_20__.SwitchErrorInfo),
|
|
130894
|
+
/* harmony export */ "wrapComponent": () => (/* reexport safe */ _wrapComponent__WEBPACK_IMPORTED_MODULE_21__.wrapComponent)
|
|
130846
130895
|
/* harmony export */ });
|
|
130847
130896
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/components.js");
|
|
130848
130897
|
/* harmony import */ var _DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefaultErrorInfo */ "../../framework/piral-core/esm/components/DefaultErrorInfo.js");
|
|
130849
130898
|
/* harmony import */ var _DefaultLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DefaultLayout */ "../../framework/piral-core/esm/components/DefaultLayout.js");
|
|
130850
130899
|
/* harmony import */ var _DefaultLoader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DefaultLoader */ "../../framework/piral-core/esm/components/DefaultLoader.js");
|
|
130851
130900
|
/* harmony import */ var _DefaultRouter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DefaultRouter */ "../../framework/piral-core/esm/components/DefaultRouter.js");
|
|
130852
|
-
/* harmony import */ var
|
|
130853
|
-
/* harmony import */ var
|
|
130854
|
-
/* harmony import */ var
|
|
130855
|
-
/* harmony import */ var
|
|
130856
|
-
/* harmony import */ var
|
|
130857
|
-
/* harmony import */ var
|
|
130858
|
-
/* harmony import */ var
|
|
130859
|
-
/* harmony import */ var
|
|
130860
|
-
/* harmony import */ var
|
|
130861
|
-
/* harmony import */ var
|
|
130862
|
-
/* harmony import */ var
|
|
130863
|
-
/* harmony import */ var
|
|
130864
|
-
/* harmony import */ var
|
|
130865
|
-
/* harmony import */ var
|
|
130866
|
-
/* harmony import */ var
|
|
130867
|
-
/* harmony import */ var
|
|
130901
|
+
/* harmony import */ var _DefaultRouteSwitch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DefaultRouteSwitch */ "../../framework/piral-core/esm/components/DefaultRouteSwitch.js");
|
|
130902
|
+
/* harmony import */ var _ErrorBoundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ErrorBoundary */ "../../framework/piral-core/esm/components/ErrorBoundary.js");
|
|
130903
|
+
/* harmony import */ var _ExtensionSlot__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ExtensionSlot */ "../../framework/piral-core/esm/components/ExtensionSlot.js");
|
|
130904
|
+
/* harmony import */ var _Mediator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Mediator */ "../../framework/piral-core/esm/components/Mediator.js");
|
|
130905
|
+
/* harmony import */ var _PiralRoutes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PiralRoutes */ "../../framework/piral-core/esm/components/PiralRoutes.js");
|
|
130906
|
+
/* harmony import */ var _PiralView__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./PiralView */ "../../framework/piral-core/esm/components/PiralView.js");
|
|
130907
|
+
/* harmony import */ var _PortalRenderer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./PortalRenderer */ "../../framework/piral-core/esm/components/PortalRenderer.js");
|
|
130908
|
+
/* harmony import */ var _ResponsiveLayout__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ResponsiveLayout */ "../../framework/piral-core/esm/components/ResponsiveLayout.js");
|
|
130909
|
+
/* harmony import */ var _SetComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SetComponent */ "../../framework/piral-core/esm/components/SetComponent.js");
|
|
130910
|
+
/* harmony import */ var _SetError__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./SetError */ "../../framework/piral-core/esm/components/SetError.js");
|
|
130911
|
+
/* harmony import */ var _SetErrors__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SetErrors */ "../../framework/piral-core/esm/components/SetErrors.js");
|
|
130912
|
+
/* harmony import */ var _SetLayout__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SetLayout */ "../../framework/piral-core/esm/components/SetLayout.js");
|
|
130913
|
+
/* harmony import */ var _SetProvider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./SetProvider */ "../../framework/piral-core/esm/components/SetProvider.js");
|
|
130914
|
+
/* harmony import */ var _SetRedirect__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SetRedirect */ "../../framework/piral-core/esm/components/SetRedirect.js");
|
|
130915
|
+
/* harmony import */ var _SetRoute__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./SetRoute */ "../../framework/piral-core/esm/components/SetRoute.js");
|
|
130916
|
+
/* harmony import */ var _SwitchErrorInfo__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./SwitchErrorInfo */ "../../framework/piral-core/esm/components/SwitchErrorInfo.js");
|
|
130917
|
+
/* harmony import */ var _wrapComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./wrapComponent */ "../../framework/piral-core/esm/components/wrapComponent.js");
|
|
130918
|
+
|
|
130868
130919
|
|
|
130869
130920
|
|
|
130870
130921
|
|
|
@@ -131041,7 +131092,7 @@ function createInstance(config = {}) {
|
|
|
131041
131092
|
const createApi = apiFactory(context, usedPlugins);
|
|
131042
131093
|
const root = createApi({
|
|
131043
131094
|
name: 'root',
|
|
131044
|
-
version: "0.14.14-beta.
|
|
131095
|
+
version: "0.14.14-beta.3765" || 0,
|
|
131045
131096
|
spec: ''
|
|
131046
131097
|
});
|
|
131047
131098
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -131379,6 +131430,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131379
131430
|
/* harmony export */ "DefaultErrorInfo": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.DefaultErrorInfo),
|
|
131380
131431
|
/* harmony export */ "DefaultLayout": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.DefaultLayout),
|
|
131381
131432
|
/* harmony export */ "DefaultLoadingIndicator": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.DefaultLoadingIndicator),
|
|
131433
|
+
/* harmony export */ "DefaultRouteSwitch": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.DefaultRouteSwitch),
|
|
131382
131434
|
/* harmony export */ "DefaultRouter": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.DefaultRouter),
|
|
131383
131435
|
/* harmony export */ "ErrorBoundary": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.ErrorBoundary),
|
|
131384
131436
|
/* harmony export */ "ExtensionSlot": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.ExtensionSlot),
|
|
@@ -131387,6 +131439,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131387
131439
|
/* harmony export */ "PiralError": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.PiralError),
|
|
131388
131440
|
/* harmony export */ "PiralLayout": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.PiralLayout),
|
|
131389
131441
|
/* harmony export */ "PiralLoadingIndicator": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.PiralLoadingIndicator),
|
|
131442
|
+
/* harmony export */ "PiralRouteSwitch": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.PiralRouteSwitch),
|
|
131390
131443
|
/* harmony export */ "PiralRouter": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.PiralRouter),
|
|
131391
131444
|
/* harmony export */ "PiralRoutes": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.PiralRoutes),
|
|
131392
131445
|
/* harmony export */ "PiralView": () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__.PiralView),
|
|
@@ -131838,12 +131891,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131838
131891
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
131839
131892
|
/* harmony export */ "createGlobalState": () => (/* binding */ createGlobalState)
|
|
131840
131893
|
/* harmony export */ });
|
|
131841
|
-
/* harmony import */ var
|
|
131842
|
-
/* harmony import */ var
|
|
131894
|
+
/* harmony import */ var _dbeining_react_atom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @dbeining/react-atom */ "../../../node_modules/@dbeining/react-atom/dist/react-atom.js");
|
|
131895
|
+
/* harmony import */ var _dbeining_react_atom__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_dbeining_react_atom__WEBPACK_IMPORTED_MODULE_5__);
|
|
131843
131896
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/DefaultErrorInfo.js");
|
|
131844
131897
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/DefaultLoader.js");
|
|
131845
131898
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/DefaultRouter.js");
|
|
131846
|
-
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/
|
|
131899
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/DefaultRouteSwitch.js");
|
|
131900
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/DefaultLayout.js");
|
|
131847
131901
|
|
|
131848
131902
|
|
|
131849
131903
|
|
|
@@ -131874,7 +131928,8 @@ function createGlobalState(customState = {}) {
|
|
|
131874
131928
|
ErrorInfo: _components__WEBPACK_IMPORTED_MODULE_0__.DefaultErrorInfo,
|
|
131875
131929
|
LoadingIndicator: _components__WEBPACK_IMPORTED_MODULE_1__.DefaultLoadingIndicator,
|
|
131876
131930
|
Router: _components__WEBPACK_IMPORTED_MODULE_2__.DefaultRouter,
|
|
131877
|
-
|
|
131931
|
+
RouteSwitch: _components__WEBPACK_IMPORTED_MODULE_3__.DefaultRouteSwitch,
|
|
131932
|
+
Layout: _components__WEBPACK_IMPORTED_MODULE_4__.DefaultLayout
|
|
131878
131933
|
},
|
|
131879
131934
|
errorComponents: {},
|
|
131880
131935
|
registry: {
|
|
@@ -131887,7 +131942,7 @@ function createGlobalState(customState = {}) {
|
|
|
131887
131942
|
portals: {},
|
|
131888
131943
|
modules: []
|
|
131889
131944
|
};
|
|
131890
|
-
return
|
|
131945
|
+
return _dbeining_react_atom__WEBPACK_IMPORTED_MODULE_5__.Atom.of(extend(defaultState, customState));
|
|
131891
131946
|
}
|
|
131892
131947
|
|
|
131893
131948
|
/***/ }),
|
|
@@ -132976,6 +133031,70 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132976
133031
|
|
|
132977
133032
|
|
|
132978
133033
|
|
|
133034
|
+
/***/ }),
|
|
133035
|
+
|
|
133036
|
+
/***/ "../../utilities/piral-debug-utils/esm/DebugRouteSwitch.js":
|
|
133037
|
+
/*!*****************************************************************!*\
|
|
133038
|
+
!*** ../../utilities/piral-debug-utils/esm/DebugRouteSwitch.js ***!
|
|
133039
|
+
\*****************************************************************/
|
|
133040
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
133041
|
+
|
|
133042
|
+
"use strict";
|
|
133043
|
+
__webpack_require__.r(__webpack_exports__);
|
|
133044
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
133045
|
+
/* harmony export */ "freezeRouteRefresh": () => (/* binding */ freezeRouteRefresh),
|
|
133046
|
+
/* harmony export */ "DebugRouteSwitch": () => (/* binding */ DebugRouteSwitch)
|
|
133047
|
+
/* harmony export */ });
|
|
133048
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
133049
|
+
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
133050
|
+
|
|
133051
|
+
|
|
133052
|
+
const debugRouteCache = {
|
|
133053
|
+
active: 0,
|
|
133054
|
+
paths: [],
|
|
133055
|
+
refresh: undefined
|
|
133056
|
+
};
|
|
133057
|
+
function freezeRouteRefresh() {
|
|
133058
|
+
debugRouteCache.active++;
|
|
133059
|
+
return () => {
|
|
133060
|
+
var _a;
|
|
133061
|
+
|
|
133062
|
+
debugRouteCache.active--;
|
|
133063
|
+
|
|
133064
|
+
if (!debugRouteCache.active) {
|
|
133065
|
+
(_a = debugRouteCache.refresh) === null || _a === void 0 ? void 0 : _a.call(debugRouteCache, s => s + 1);
|
|
133066
|
+
}
|
|
133067
|
+
};
|
|
133068
|
+
}
|
|
133069
|
+
const DebugRouteSwitch = ({
|
|
133070
|
+
paths,
|
|
133071
|
+
NotFound
|
|
133072
|
+
}) => {
|
|
133073
|
+
const [_, triggerChange] = react__WEBPACK_IMPORTED_MODULE_0__.useState(0);
|
|
133074
|
+
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
|
133075
|
+
debugRouteCache.refresh = triggerChange;
|
|
133076
|
+
return () => {
|
|
133077
|
+
debugRouteCache.refresh = undefined;
|
|
133078
|
+
};
|
|
133079
|
+
}, []);
|
|
133080
|
+
|
|
133081
|
+
if (!debugRouteCache.active) {
|
|
133082
|
+
debugRouteCache.paths = paths;
|
|
133083
|
+
}
|
|
133084
|
+
|
|
133085
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__.Switch, null, debugRouteCache.paths.map(({
|
|
133086
|
+
path,
|
|
133087
|
+
Component
|
|
133088
|
+
}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__.Route, {
|
|
133089
|
+
exact: true,
|
|
133090
|
+
key: path,
|
|
133091
|
+
path: path,
|
|
133092
|
+
component: Component
|
|
133093
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__.Route, {
|
|
133094
|
+
component: NotFound
|
|
133095
|
+
}));
|
|
133096
|
+
};
|
|
133097
|
+
|
|
132979
133098
|
/***/ }),
|
|
132980
133099
|
|
|
132981
133100
|
/***/ "../../utilities/piral-debug-utils/esm/DebugTracker.js":
|
|
@@ -133442,11 +133561,11 @@ function installPiralDebug(options) {
|
|
|
133442
133561
|
debug: debugApiVersion,
|
|
133443
133562
|
instance: {
|
|
133444
133563
|
name: "sample-cross-fx",
|
|
133445
|
-
version: "0.14.14-beta.
|
|
133564
|
+
version: "0.14.14-beta.3765",
|
|
133446
133565
|
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,preact,riot,rxjs,vue,zone.js,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
133447
133566
|
},
|
|
133448
133567
|
build: {
|
|
133449
|
-
date: "2022-03-
|
|
133568
|
+
date: "2022-03-02T17:59:14.109Z",
|
|
133450
133569
|
cli: "0.14.13",
|
|
133451
133570
|
compat: "0.14"
|
|
133452
133571
|
},
|
|
@@ -133760,16 +133879,19 @@ function decycle(obj) {
|
|
|
133760
133879
|
"use strict";
|
|
133761
133880
|
__webpack_require__.r(__webpack_exports__);
|
|
133762
133881
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
133763
|
-
/* harmony export */ "
|
|
133882
|
+
/* harmony export */ "installPiletsEmulator": () => (/* binding */ installPiletsEmulator)
|
|
133764
133883
|
/* harmony export */ });
|
|
133765
|
-
/* harmony import */ var
|
|
133766
|
-
/* harmony import */ var
|
|
133884
|
+
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/utils.js");
|
|
133885
|
+
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/setup.js");
|
|
133886
|
+
/* harmony import */ var _DebugRouteSwitch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DebugRouteSwitch */ "../../utilities/piral-debug-utils/esm/DebugRouteSwitch.js");
|
|
133887
|
+
|
|
133767
133888
|
|
|
133768
|
-
function
|
|
133889
|
+
function installPiletsEmulator(requestPilets, options) {
|
|
133769
133890
|
const {
|
|
133770
133891
|
loadPilet,
|
|
133771
133892
|
createApi,
|
|
133772
133893
|
injectPilet,
|
|
133894
|
+
integrate,
|
|
133773
133895
|
piletApiFallback = '/$pilet-api'
|
|
133774
133896
|
} = options; // check if pilets should be loaded
|
|
133775
133897
|
|
|
@@ -133778,54 +133900,75 @@ function withEmulatorPilets(requestPilets, options) {
|
|
|
133778
133900
|
const noPilets = () => Promise.resolve([]);
|
|
133779
133901
|
|
|
133780
133902
|
const requester = loadPilets ? requestPilets : noPilets;
|
|
133781
|
-
|
|
133782
|
-
|
|
133903
|
+
integrate({
|
|
133904
|
+
components: {
|
|
133905
|
+
RouteSwitch: _DebugRouteSwitch__WEBPACK_IMPORTED_MODULE_0__.DebugRouteSwitch
|
|
133906
|
+
},
|
|
133783
133907
|
|
|
133784
|
-
|
|
133908
|
+
requester() {
|
|
133909
|
+
const promise = requester(); // the window['dbg:pilet-api'] should point to an API address used as a proxy, fall back to '/$pilet-api' if unavailable
|
|
133785
133910
|
|
|
133786
|
-
|
|
133787
|
-
const updateTarget = initialTarget.replace('http', 'ws');
|
|
133788
|
-
const ws = new WebSocket(updateTarget);
|
|
133789
|
-
const appendix = fetch(initialTarget).then(res => res.json()).then(item => Array.isArray(item) ? item : [item]);
|
|
133911
|
+
const piletApi = window['dbg:pilet-api'] || piletApiFallback; // either take a full URI or make it an absolute path relative to the current origin
|
|
133790
133912
|
|
|
133791
|
-
|
|
133792
|
-
|
|
133793
|
-
|
|
133794
|
-
const
|
|
133913
|
+
const initialTarget = /^https?:/.test(piletApi) ? piletApi : `${location.origin}${piletApi[0] === '/' ? '' : '/'}${piletApi}`;
|
|
133914
|
+
const updateTarget = initialTarget.replace('http', 'ws');
|
|
133915
|
+
const ws = new WebSocket(updateTarget);
|
|
133916
|
+
const timeoutCache = {};
|
|
133917
|
+
const timeout = 150;
|
|
133918
|
+
const appendix = fetch(initialTarget).then(res => res.json()).then(item => Array.isArray(item) ? item : [item]);
|
|
133795
133919
|
|
|
133796
|
-
|
|
133797
|
-
|
|
133798
|
-
|
|
133920
|
+
ws.onmessage = ({
|
|
133921
|
+
data
|
|
133922
|
+
}) => {
|
|
133923
|
+
const hardRefresh = sessionStorage.getItem('dbg:hard-refresh') === 'on';
|
|
133799
133924
|
|
|
133800
|
-
|
|
133801
|
-
|
|
133802
|
-
|
|
133925
|
+
if (!hardRefresh) {
|
|
133926
|
+
// standard setting is to just perform an inject
|
|
133927
|
+
const meta = JSON.parse(data);
|
|
133928
|
+
const name = meta.name; // like a debounce; only one change of the current pilet should be actively processed
|
|
133803
133929
|
|
|
133804
|
-
|
|
133805
|
-
|
|
133806
|
-
if ((0,piral_base__WEBPACK_IMPORTED_MODULE_0__.isfunc)(injectPilet)) {
|
|
133807
|
-
injectPilet(pilet);
|
|
133808
|
-
}
|
|
133930
|
+
clearTimeout(timeoutCache[name]); // some bundlers may have fired before writing to the disk
|
|
133931
|
+
// so we give them a bit of time before actually loading the pilet
|
|
133809
133932
|
|
|
133810
|
-
|
|
133811
|
-
|
|
133812
|
-
|
|
133813
|
-
}
|
|
133814
|
-
});
|
|
133815
|
-
} else {
|
|
133816
|
-
location.reload();
|
|
133817
|
-
}
|
|
133818
|
-
};
|
|
133933
|
+
timeoutCache[name] = setTimeout(() => {
|
|
133934
|
+
// we should make sure to only refresh the page / router if pilets have been loaded
|
|
133935
|
+
const unfreeze = (0,_DebugRouteSwitch__WEBPACK_IMPORTED_MODULE_0__.freezeRouteRefresh)(); // tear down pilet
|
|
133819
133936
|
|
|
133820
|
-
|
|
133821
|
-
|
|
133822
|
-
|
|
133823
|
-
|
|
133824
|
-
|
|
133825
|
-
|
|
133826
|
-
|
|
133827
|
-
|
|
133828
|
-
|
|
133937
|
+
injectPilet({
|
|
133938
|
+
name
|
|
133939
|
+
}); // load and evaluate pilet
|
|
133940
|
+
|
|
133941
|
+
loadPilet(meta).then(pilet => {
|
|
133942
|
+
try {
|
|
133943
|
+
if ((0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(injectPilet)) {
|
|
133944
|
+
injectPilet(pilet);
|
|
133945
|
+
} // setup actual pilet
|
|
133946
|
+
|
|
133947
|
+
|
|
133948
|
+
(0,piral_base__WEBPACK_IMPORTED_MODULE_2__.setupPilet)(pilet, createApi); // disable route cache, should be zero again and lead to route refresh
|
|
133949
|
+
|
|
133950
|
+
unfreeze();
|
|
133951
|
+
} catch (error) {
|
|
133952
|
+
console.error(error);
|
|
133953
|
+
}
|
|
133954
|
+
});
|
|
133955
|
+
}, timeout);
|
|
133956
|
+
} else {
|
|
133957
|
+
location.reload();
|
|
133958
|
+
}
|
|
133959
|
+
};
|
|
133960
|
+
|
|
133961
|
+
return promise.catch(err => {
|
|
133962
|
+
console.error(`Requesting the pilets failed. We'll continue loading without pilets (DEBUG only).`, err);
|
|
133963
|
+
return [];
|
|
133964
|
+
}).then(pilets => appendix.then(debugPilets => {
|
|
133965
|
+
const debugPiletNames = debugPilets.map(m => m.name);
|
|
133966
|
+
const feedPilets = pilets.filter(m => !debugPiletNames.includes(m.name));
|
|
133967
|
+
return [...feedPilets, ...debugPilets];
|
|
133968
|
+
}));
|
|
133969
|
+
}
|
|
133970
|
+
|
|
133971
|
+
});
|
|
133829
133972
|
}
|
|
133830
133973
|
|
|
133831
133974
|
/***/ }),
|
|
@@ -133840,7 +133983,7 @@ function withEmulatorPilets(requestPilets, options) {
|
|
|
133840
133983
|
__webpack_require__.r(__webpack_exports__);
|
|
133841
133984
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
133842
133985
|
/* harmony export */ "installPiralDebug": () => (/* reexport safe */ _debug__WEBPACK_IMPORTED_MODULE_0__.installPiralDebug),
|
|
133843
|
-
/* harmony export */ "
|
|
133986
|
+
/* harmony export */ "installPiletsEmulator": () => (/* reexport safe */ _emulator__WEBPACK_IMPORTED_MODULE_1__.installPiletsEmulator)
|
|
133844
133987
|
/* harmony export */ });
|
|
133845
133988
|
/* harmony import */ var _debug__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./debug */ "../../utilities/piral-debug-utils/esm/debug.js");
|
|
133846
133989
|
/* harmony import */ var _emulator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./emulator */ "../../utilities/piral-debug-utils/esm/emulator.js");
|
|
@@ -133946,10 +134089,18 @@ exports.integrate = void 0;
|
|
|
133946
134089
|
const piral_debug_utils_1 = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/index.js");
|
|
133947
134090
|
|
|
133948
134091
|
function integrate(context, options) {
|
|
133949
|
-
|
|
134092
|
+
(0, piral_debug_utils_1.installPiletsEmulator)(options.fetchPilets, {
|
|
133950
134093
|
injectPilet: context.injectPilet,
|
|
133951
134094
|
createApi: options.createApi,
|
|
133952
|
-
loadPilet: options.loadPilet
|
|
134095
|
+
loadPilet: options.loadPilet,
|
|
134096
|
+
|
|
134097
|
+
integrate(emulator) {
|
|
134098
|
+
context.dispatch(s => Object.assign(Object.assign({}, s), {
|
|
134099
|
+
components: Object.assign(Object.assign({}, s.components), emulator.components)
|
|
134100
|
+
}));
|
|
134101
|
+
options.fetchPilets = emulator.requester;
|
|
134102
|
+
}
|
|
134103
|
+
|
|
133953
134104
|
});
|
|
133954
134105
|
}
|
|
133955
134106
|
|
|
@@ -255579,4 +255730,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
255579
255730
|
|
|
255580
255731
|
/******/ })()
|
|
255581
255732
|
;
|
|
255582
|
-
//# sourceMappingURL=index.
|
|
255733
|
+
//# sourceMappingURL=index.4fbb2d.js.map
|