minimal-piral 0.15.0-beta.4512 → 0.15.0-beta.4544
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.19cb2a.js → index.941813.js} +36 -45
- package/app/index.941813.js.map +1 -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
- package/app/index.19cb2a.js.map +0 -1
|
@@ -1876,31 +1876,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1876
1876
|
/* harmony export */ });
|
|
1877
1877
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
1878
1878
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1879
|
-
/* harmony import */ var
|
|
1880
|
-
/* harmony import */ var _createInstance__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createInstance */ "../../framework/piral-core/esm/createInstance.js");
|
|
1879
|
+
/* harmony import */ var _createInstance__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createInstance */ "../../framework/piral-core/esm/createInstance.js");
|
|
1881
1880
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/components.js");
|
|
1882
|
-
/* harmony import */ var
|
|
1883
|
-
/* harmony import */ var
|
|
1884
|
-
/* harmony import */ var
|
|
1885
|
-
|
|
1881
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/PiralView.js");
|
|
1882
|
+
/* harmony import */ var _PiralContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PiralContext */ "../../framework/piral-core/esm/PiralContext.js");
|
|
1883
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
1886
1884
|
|
|
1887
1885
|
|
|
1888
1886
|
|
|
1889
1887
|
|
|
1890
1888
|
|
|
1891
|
-
|
|
1892
|
-
var FallbackRouter = function FallbackRouter(props) {
|
|
1893
|
-
var publicPath = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalState)(function (s) {
|
|
1894
|
-
return s.app.publicPath;
|
|
1895
|
-
});
|
|
1896
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_2__.StaticRouter, Object.assign({
|
|
1897
|
-
location: "/"
|
|
1898
|
-
}, props, {
|
|
1899
|
-
basename: publicPath
|
|
1900
|
-
}));
|
|
1901
|
-
};
|
|
1902
|
-
|
|
1903
|
-
var Router = typeof window === 'undefined' ? FallbackRouter : _components__WEBPACK_IMPORTED_MODULE_3__.RegisteredRouter;
|
|
1904
1889
|
/**
|
|
1905
1890
|
* Represents the Piral app shell frame. Use this component together
|
|
1906
1891
|
* with an existing instance to render the app shell.
|
|
@@ -1919,12 +1904,14 @@ const app = (
|
|
|
1919
1904
|
|
|
1920
1905
|
var Piral = function Piral(_ref) {
|
|
1921
1906
|
var _ref$instance = _ref.instance,
|
|
1922
|
-
instance = _ref$instance === void 0 ? (0,
|
|
1907
|
+
instance = _ref$instance === void 0 ? (0,_createInstance__WEBPACK_IMPORTED_MODULE_1__.createInstance)() : _ref$instance,
|
|
1923
1908
|
breakpoints = _ref.breakpoints,
|
|
1924
1909
|
children = _ref.children;
|
|
1925
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
1910
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PiralContext__WEBPACK_IMPORTED_MODULE_2__.PiralContext, {
|
|
1926
1911
|
instance: instance
|
|
1927
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
1912
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_3__.RegisteredRouter, {
|
|
1913
|
+
publicPath: _app_codegen__WEBPACK_IMPORTED_MODULE_4__.publicPath
|
|
1914
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_5__.PiralView, {
|
|
1928
1915
|
breakpoints: breakpoints
|
|
1929
1916
|
}, children)));
|
|
1930
1917
|
};
|
|
@@ -3158,17 +3145,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3158
3145
|
/* harmony export */ });
|
|
3159
3146
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
3160
3147
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
3161
|
-
/* harmony import */ var
|
|
3162
|
-
/* harmony import */ var
|
|
3148
|
+
/* harmony import */ var _PortalRenderer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PortalRenderer */ "../../framework/piral-core/esm/components/PortalRenderer.js");
|
|
3149
|
+
/* harmony import */ var _ForeignComponentContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ForeignComponentContainer */ "../../framework/piral-core/esm/components/ForeignComponentContainer.js");
|
|
3163
3150
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
3164
3151
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
|
|
3165
|
-
/* harmony import */ var
|
|
3152
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
|
|
3153
|
+
/* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
|
|
3166
3154
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3167
3155
|
|
|
3168
3156
|
|
|
3169
3157
|
|
|
3170
3158
|
|
|
3171
3159
|
|
|
3160
|
+
|
|
3172
3161
|
// this is an arbitrary start number to have 6 digits
|
|
3173
3162
|
|
|
3174
3163
|
var portalIdBase = 123456;
|
|
@@ -3182,19 +3171,15 @@ function wrapReactComponent(Component, captured, Wrapper) {
|
|
|
3182
3171
|
function wrapForeignComponent(component, captured, Wrapper) {
|
|
3183
3172
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.memo(function (props) {
|
|
3184
3173
|
var _useGlobalStateContex = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalStateContext)(),
|
|
3185
|
-
readState = _useGlobalStateContex.readState,
|
|
3186
3174
|
destroyPortal = _useGlobalStateContex.destroyPortal,
|
|
3187
3175
|
navigation = _useGlobalStateContex.navigation;
|
|
3188
3176
|
|
|
3189
|
-
var publicPath = readState(function (s) {
|
|
3190
|
-
return s.app.publicPath;
|
|
3191
|
-
});
|
|
3192
3177
|
var id = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {
|
|
3193
3178
|
return (portalIdBase++).toString(26);
|
|
3194
3179
|
}, _utils__WEBPACK_IMPORTED_MODULE_2__.none);
|
|
3195
3180
|
var context = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {
|
|
3196
3181
|
return {
|
|
3197
|
-
publicPath: publicPath,
|
|
3182
|
+
publicPath: _app_codegen__WEBPACK_IMPORTED_MODULE_3__.publicPath,
|
|
3198
3183
|
navigation: navigation
|
|
3199
3184
|
};
|
|
3200
3185
|
}, []);
|
|
@@ -3206,9 +3191,9 @@ function wrapForeignComponent(component, captured, Wrapper) {
|
|
|
3206
3191
|
return destroyPortal(id);
|
|
3207
3192
|
};
|
|
3208
3193
|
}, _utils__WEBPACK_IMPORTED_MODULE_2__.none);
|
|
3209
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper, Object.assign({}, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
3194
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper, Object.assign({}, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PortalRenderer__WEBPACK_IMPORTED_MODULE_4__.PortalRenderer, {
|
|
3210
3195
|
id: id
|
|
3211
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
3196
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ForeignComponentContainer__WEBPACK_IMPORTED_MODULE_5__.ForeignComponentContainer, {
|
|
3212
3197
|
innerProps: innerProps,
|
|
3213
3198
|
"$portalId": id,
|
|
3214
3199
|
"$component": component,
|
|
@@ -3232,7 +3217,7 @@ function wrapComponent(converters, component, captured, Wrapper) {
|
|
|
3232
3217
|
}
|
|
3233
3218
|
|
|
3234
3219
|
if (_typeof(component) === 'object' && isNotExotic(component)) {
|
|
3235
|
-
var result = (0,
|
|
3220
|
+
var result = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.convertComponent)(converters[component.type], component);
|
|
3236
3221
|
return wrapForeignComponent(result, captured, Wrapper);
|
|
3237
3222
|
}
|
|
3238
3223
|
|
|
@@ -3597,17 +3582,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3597
3582
|
/* harmony export */ });
|
|
3598
3583
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
3599
3584
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
3600
|
-
/* harmony import */ var
|
|
3601
|
-
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
3602
|
-
|
|
3585
|
+
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-router-dom */ "../../../node_modules/react-router-dom/esm/react-router-dom.js");
|
|
3603
3586
|
|
|
3604
3587
|
|
|
3605
3588
|
var DefaultRouter = function DefaultRouter(_ref) {
|
|
3606
|
-
var children = _ref.children
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
});
|
|
3610
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_2__.BrowserRouter, {
|
|
3589
|
+
var children = _ref.children,
|
|
3590
|
+
publicPath = _ref.publicPath;
|
|
3591
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_1__.BrowserRouter, {
|
|
3611
3592
|
basename: publicPath
|
|
3612
3593
|
}, children);
|
|
3613
3594
|
};
|
|
@@ -5582,11 +5563,11 @@ function installPiralDebug(options) {
|
|
|
5582
5563
|
debug: debugApiVersion,
|
|
5583
5564
|
instance: {
|
|
5584
5565
|
name: "minimal-piral",
|
|
5585
|
-
version: "0.15.0-beta.
|
|
5566
|
+
version: "0.15.0-beta.4544",
|
|
5586
5567
|
dependencies: "tslib,react,react-dom,react-router,react-router-dom"
|
|
5587
5568
|
},
|
|
5588
5569
|
build: {
|
|
5589
|
-
date: "2022-
|
|
5570
|
+
date: "2022-08-05T09:16:06.031Z",
|
|
5590
5571
|
cli: "0.14.29",
|
|
5591
5572
|
compat: "0.14"
|
|
5592
5573
|
}
|
|
@@ -7512,9 +7493,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7512
7493
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7513
7494
|
/* harmony export */ "createDefaultState": () => (/* binding */ createDefaultState),
|
|
7514
7495
|
/* harmony export */ "createNavigation": () => (/* binding */ createNavigation),
|
|
7496
|
+
/* harmony export */ "createRedirect": () => (/* binding */ createRedirect),
|
|
7515
7497
|
/* harmony export */ "fillDependencies": () => (/* binding */ fillDependencies),
|
|
7516
7498
|
/* harmony export */ "integrateDebugger": () => (/* reexport safe */ piral_core_debugger__WEBPACK_IMPORTED_MODULE_10__.integrateDebugger),
|
|
7517
7499
|
/* harmony export */ "integrateEmulator": () => (/* reexport safe */ piral_core_emulator__WEBPACK_IMPORTED_MODULE_11__.integrateEmulator),
|
|
7500
|
+
/* harmony export */ "publicPath": () => (/* binding */ publicPath),
|
|
7518
7501
|
/* harmony export */ "useRouteFilter": () => (/* binding */ useRouteFilter),
|
|
7519
7502
|
/* harmony export */ "useRouterContext": () => (/* binding */ useRouterContext)
|
|
7520
7503
|
/* harmony export */ });
|
|
@@ -7550,6 +7533,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7550
7533
|
|
|
7551
7534
|
|
|
7552
7535
|
|
|
7536
|
+
|
|
7553
7537
|
let _nav;
|
|
7554
7538
|
const _noop = () => {};
|
|
7555
7539
|
|
|
@@ -7614,12 +7598,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7614
7598
|
}
|
|
7615
7599
|
|
|
7616
7600
|
|
|
7601
|
+
const publicPath = "/";
|
|
7602
|
+
|
|
7603
|
+
|
|
7617
7604
|
function createDefaultState() {
|
|
7618
7605
|
return {
|
|
7619
7606
|
app: {
|
|
7620
7607
|
error: undefined,
|
|
7621
7608
|
loading: typeof window !== 'undefined',
|
|
7622
|
-
publicPath: "/",
|
|
7623
7609
|
},
|
|
7624
7610
|
components: {
|
|
7625
7611
|
ErrorInfo: piral_core_defaults_DefaultErrorInfo__WEBPACK_IMPORTED_MODULE_5__.DefaultErrorInfo,
|
|
@@ -7644,6 +7630,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7644
7630
|
|
|
7645
7631
|
|
|
7646
7632
|
|
|
7633
|
+
function createRedirect(to) {
|
|
7634
|
+
return () => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router__WEBPACK_IMPORTED_MODULE_3__.Redirect, { to });
|
|
7635
|
+
}
|
|
7636
|
+
|
|
7637
|
+
|
|
7647
7638
|
function useRouterContext() {
|
|
7648
7639
|
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(react_router__WEBPACK_IMPORTED_MODULE_3__.__RouterContext);
|
|
7649
7640
|
}
|
|
@@ -45626,4 +45617,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
|
|
|
45626
45617
|
|
|
45627
45618
|
/******/ })()
|
|
45628
45619
|
;
|
|
45629
|
-
//# sourceMappingURL=index.
|
|
45620
|
+
//# sourceMappingURL=index.941813.js.map
|