sample-cross-fx 1.1.0-beta.5752 → 1.1.0-beta.5772
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.b2aa23.js → index.9033c9.js} +46 -63
- package/app/{index.b2aa23.js.map → index.9033c9.js.map} +1 -1
- package/app/index.d.ts +4 -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 +21 -20
|
@@ -57173,10 +57173,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57173
57173
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
57174
57174
|
/* harmony import */ var _createInstance__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createInstance */ "../../framework/piral-core/esm/createInstance.js");
|
|
57175
57175
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/components.js");
|
|
57176
|
-
/* harmony import */ var
|
|
57176
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/PiralView.js");
|
|
57177
57177
|
/* harmony import */ var _PiralContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PiralContext */ "../../framework/piral-core/esm/PiralContext.js");
|
|
57178
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
57179
|
-
|
|
57180
57178
|
|
|
57181
57179
|
|
|
57182
57180
|
|
|
@@ -57203,8 +57201,8 @@ const Piral = ({
|
|
|
57203
57201
|
}) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PiralContext__WEBPACK_IMPORTED_MODULE_2__.PiralContext, {
|
|
57204
57202
|
instance: instance
|
|
57205
57203
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_3__.RegisteredRouter, {
|
|
57206
|
-
publicPath:
|
|
57207
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
57204
|
+
publicPath: instance.context.navigation.publicPath
|
|
57205
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_4__.PiralView, {
|
|
57208
57206
|
breakpoints: breakpoints
|
|
57209
57207
|
}, children)));
|
|
57210
57208
|
Piral.displayName = 'Piral';
|
|
@@ -57951,13 +57949,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57951
57949
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
57952
57950
|
/* harmony export */ "PiralRoutes": () => (/* binding */ PiralRoutes)
|
|
57953
57951
|
/* harmony export */ });
|
|
57954
|
-
/* harmony import */ var
|
|
57952
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
57955
57953
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
57956
57954
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
57957
|
-
/* harmony import */ var
|
|
57955
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
57956
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
57957
|
+
|
|
57958
57958
|
|
|
57959
57959
|
|
|
57960
57960
|
|
|
57961
|
+
function useRoutes() {
|
|
57962
|
+
const routes = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalState)(s => s.routes);
|
|
57963
|
+
const pages = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalState)(s => s.registry.pages);
|
|
57964
|
+
const paths = [];
|
|
57965
|
+
Object.keys(routes).map(path => paths.push({
|
|
57966
|
+
path,
|
|
57967
|
+
Component: routes[path]
|
|
57968
|
+
}));
|
|
57969
|
+
Object.keys(pages).map(path => paths.push({
|
|
57970
|
+
path,
|
|
57971
|
+
Component: pages[path].component
|
|
57972
|
+
}));
|
|
57973
|
+
return (0,_app_codegen__WEBPACK_IMPORTED_MODULE_2__.useRouteFilter)(paths);
|
|
57974
|
+
}
|
|
57961
57975
|
/**
|
|
57962
57976
|
* The component for defining the exclusive routes to be used.
|
|
57963
57977
|
*/
|
|
@@ -57966,8 +57980,8 @@ const PiralRoutes = _a => {
|
|
|
57966
57980
|
NotFound,
|
|
57967
57981
|
RouteSwitch
|
|
57968
57982
|
} = _a,
|
|
57969
|
-
props = (0,
|
|
57970
|
-
const paths =
|
|
57983
|
+
props = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["NotFound", "RouteSwitch"]);
|
|
57984
|
+
const paths = useRoutes();
|
|
57971
57985
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(RouteSwitch, Object.assign({
|
|
57972
57986
|
NotFound: NotFound,
|
|
57973
57987
|
paths: paths
|
|
@@ -58240,13 +58254,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58240
58254
|
/* harmony export */ });
|
|
58241
58255
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
58242
58256
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
58243
|
-
/* harmony import */ var
|
|
58244
|
-
/* harmony import */ var
|
|
58257
|
+
/* harmony import */ var _PortalRenderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PortalRenderer */ "../../framework/piral-core/esm/components/PortalRenderer.js");
|
|
58258
|
+
/* harmony import */ var _ForeignComponentContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ForeignComponentContainer */ "../../framework/piral-core/esm/components/ForeignComponentContainer.js");
|
|
58245
58259
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
58246
58260
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
|
|
58247
|
-
/* harmony import */ var
|
|
58248
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
58249
|
-
|
|
58261
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
|
|
58250
58262
|
|
|
58251
58263
|
|
|
58252
58264
|
|
|
@@ -58266,15 +58278,15 @@ function wrapForeignComponent(component, captured, Wrapper) {
|
|
|
58266
58278
|
const id = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => (portalIdBase++).toString(26), _utils__WEBPACK_IMPORTED_MODULE_2__.none);
|
|
58267
58279
|
// router added for backwards compatibility
|
|
58268
58280
|
const context = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({
|
|
58269
|
-
publicPath:
|
|
58281
|
+
publicPath: navigation.publicPath,
|
|
58270
58282
|
navigation,
|
|
58271
58283
|
router: navigation.router
|
|
58272
58284
|
}), []);
|
|
58273
58285
|
const innerProps = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => Object.assign(Object.assign({}, props), captured), [props]);
|
|
58274
58286
|
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => () => destroyPortal(id), _utils__WEBPACK_IMPORTED_MODULE_2__.none);
|
|
58275
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper, Object.assign({}, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
58287
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper, Object.assign({}, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PortalRenderer__WEBPACK_IMPORTED_MODULE_3__.PortalRenderer, {
|
|
58276
58288
|
id: id
|
|
58277
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
58289
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ForeignComponentContainer__WEBPACK_IMPORTED_MODULE_4__.ForeignComponentContainer, {
|
|
58278
58290
|
innerProps: innerProps,
|
|
58279
58291
|
"$portalId": id,
|
|
58280
58292
|
"$component": component,
|
|
@@ -58293,7 +58305,7 @@ function wrapComponent(converters, component, captured, Wrapper) {
|
|
|
58293
58305
|
component = () => null;
|
|
58294
58306
|
}
|
|
58295
58307
|
if (typeof component === 'object' && isNotExotic(component)) {
|
|
58296
|
-
const result = (0,
|
|
58308
|
+
const result = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.convertComponent)(converters[component.type], component);
|
|
58297
58309
|
return wrapForeignComponent(result, captured, Wrapper);
|
|
58298
58310
|
}
|
|
58299
58311
|
return wrapReactComponent(component, captured, Wrapper);
|
|
@@ -58417,8 +58429,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58417
58429
|
/* harmony export */ });
|
|
58418
58430
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
58419
58431
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
58420
|
-
/* harmony import */ var
|
|
58421
|
-
/* harmony import */ var
|
|
58432
|
+
/* harmony import */ var _components_ExtensionSlot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/ExtensionSlot */ "../../framework/piral-core/esm/components/ExtensionSlot.js");
|
|
58433
|
+
/* harmony import */ var _components_SwitchErrorInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/SwitchErrorInfo */ "../../framework/piral-core/esm/components/SwitchErrorInfo.js");
|
|
58434
|
+
|
|
58422
58435
|
|
|
58423
58436
|
|
|
58424
58437
|
/**
|
|
@@ -58426,10 +58439,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
58426
58439
|
* Leverage the default one by registration of respective extensions using
|
|
58427
58440
|
* the "error" name.
|
|
58428
58441
|
*/
|
|
58429
|
-
const DefaultErrorInfo = props => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
58442
|
+
const DefaultErrorInfo = props => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_ExtensionSlot__WEBPACK_IMPORTED_MODULE_1__.ExtensionSlot, {
|
|
58430
58443
|
name: "error",
|
|
58431
58444
|
params: props,
|
|
58432
|
-
empty: () => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
58445
|
+
empty: () => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_SwitchErrorInfo__WEBPACK_IMPORTED_MODULE_2__.SwitchErrorInfo, Object.assign({}, props))
|
|
58433
58446
|
});
|
|
58434
58447
|
DefaultErrorInfo.displayName = 'DefaultErrorInfo';
|
|
58435
58448
|
|
|
@@ -58596,7 +58609,7 @@ function createRedirect(to) {
|
|
|
58596
58609
|
to: to
|
|
58597
58610
|
});
|
|
58598
58611
|
}
|
|
58599
|
-
function createNavigation() {
|
|
58612
|
+
function createNavigation(publicPath) {
|
|
58600
58613
|
const enhance = (location, action) => ({
|
|
58601
58614
|
action,
|
|
58602
58615
|
location: Object.assign({
|
|
@@ -58646,7 +58659,8 @@ function createNavigation() {
|
|
|
58646
58659
|
get history() {
|
|
58647
58660
|
return _nav;
|
|
58648
58661
|
}
|
|
58649
|
-
}
|
|
58662
|
+
},
|
|
58663
|
+
publicPath
|
|
58650
58664
|
};
|
|
58651
58665
|
}
|
|
58652
58666
|
|
|
@@ -58774,38 +58788,6 @@ function useMedia(queries, values, defaultValue) {
|
|
|
58774
58788
|
|
|
58775
58789
|
/***/ }),
|
|
58776
58790
|
|
|
58777
|
-
/***/ "../../framework/piral-core/esm/hooks/routes.js":
|
|
58778
|
-
/*!******************************************************!*\
|
|
58779
|
-
!*** ../../framework/piral-core/esm/hooks/routes.js ***!
|
|
58780
|
-
\******************************************************/
|
|
58781
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
58782
|
-
|
|
58783
|
-
"use strict";
|
|
58784
|
-
__webpack_require__.r(__webpack_exports__);
|
|
58785
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
58786
|
-
/* harmony export */ "useRoutes": () => (/* binding */ useRoutes)
|
|
58787
|
-
/* harmony export */ });
|
|
58788
|
-
/* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./globalState */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
58789
|
-
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
58790
|
-
|
|
58791
|
-
|
|
58792
|
-
function useRoutes() {
|
|
58793
|
-
const routes = (0,_globalState__WEBPACK_IMPORTED_MODULE_0__.useGlobalState)(s => s.routes);
|
|
58794
|
-
const pages = (0,_globalState__WEBPACK_IMPORTED_MODULE_0__.useGlobalState)(s => s.registry.pages);
|
|
58795
|
-
const paths = [];
|
|
58796
|
-
Object.keys(routes).map(path => paths.push({
|
|
58797
|
-
path,
|
|
58798
|
-
Component: routes[path]
|
|
58799
|
-
}));
|
|
58800
|
-
Object.keys(pages).map(path => paths.push({
|
|
58801
|
-
path,
|
|
58802
|
-
Component: pages[path].component
|
|
58803
|
-
}));
|
|
58804
|
-
return (0,_app_codegen__WEBPACK_IMPORTED_MODULE_1__.useRouteFilter)(paths);
|
|
58805
|
-
}
|
|
58806
|
-
|
|
58807
|
-
/***/ }),
|
|
58808
|
-
|
|
58809
58791
|
/***/ "../../framework/piral-core/esm/hooks/setter.js":
|
|
58810
58792
|
/*!******************************************************!*\
|
|
58811
58793
|
!*** ../../framework/piral-core/esm/hooks/setter.js ***!
|
|
@@ -59257,8 +59239,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
59257
59239
|
/* harmony export */ "createActions": () => (/* binding */ createActions),
|
|
59258
59240
|
/* harmony export */ "includeActions": () => (/* binding */ includeActions)
|
|
59259
59241
|
/* harmony export */ });
|
|
59260
|
-
/* harmony import */ var
|
|
59242
|
+
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actions */ "../../framework/piral-core/esm/actions/index.js");
|
|
59261
59243
|
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/esm/defaults/navigator_v5.js");
|
|
59244
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
59262
59245
|
|
|
59263
59246
|
|
|
59264
59247
|
function createContext(state, events) {
|
|
@@ -59269,7 +59252,7 @@ function createContext(state, events) {
|
|
|
59269
59252
|
component
|
|
59270
59253
|
}) => component
|
|
59271
59254
|
},
|
|
59272
|
-
navigation: (0,_app_codegen__WEBPACK_IMPORTED_MODULE_0__.createNavigation)(),
|
|
59255
|
+
navigation: (0,_app_codegen__WEBPACK_IMPORTED_MODULE_0__.createNavigation)(_app_codegen__WEBPACK_IMPORTED_MODULE_1__.publicPath),
|
|
59273
59256
|
state
|
|
59274
59257
|
});
|
|
59275
59258
|
return ctx;
|
|
@@ -59283,7 +59266,7 @@ function includeActions(ctx, actions) {
|
|
|
59283
59266
|
}
|
|
59284
59267
|
function createActions(state, events) {
|
|
59285
59268
|
const context = createContext(state, events);
|
|
59286
|
-
includeActions(context,
|
|
59269
|
+
includeActions(context, _actions__WEBPACK_IMPORTED_MODULE_2__);
|
|
59287
59270
|
return context;
|
|
59288
59271
|
}
|
|
59289
59272
|
|
|
@@ -60762,12 +60745,12 @@ function installPiralDebug(options) {
|
|
|
60762
60745
|
debug: debugApiVersion,
|
|
60763
60746
|
instance: {
|
|
60764
60747
|
name: "sample-cross-fx",
|
|
60765
|
-
version: "1.1.0-beta.
|
|
60748
|
+
version: "1.1.0-beta.5772",
|
|
60766
60749
|
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/web,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
60767
60750
|
},
|
|
60768
60751
|
build: {
|
|
60769
|
-
date: "2023-07-
|
|
60770
|
-
cli: "1.1.0-beta.
|
|
60752
|
+
date: "2023-07-10T19:03:09.648Z",
|
|
60753
|
+
cli: "1.1.0-beta.5772",
|
|
60771
60754
|
compat: "1"
|
|
60772
60755
|
}
|
|
60773
60756
|
};
|
|
@@ -222284,4 +222267,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
222284
222267
|
|
|
222285
222268
|
/******/ })()
|
|
222286
222269
|
;
|
|
222287
|
-
//# sourceMappingURL=index.
|
|
222270
|
+
//# sourceMappingURL=index.9033c9.js.map
|