sample-piral 0.14.2-beta.3272 → 0.14.3-beta.3299
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.086929.js → index.e6d9cd.js} +35 -24
- package/app/index.e6d9cd.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 +7 -7
- package/app/index.086929.js.map +0 -1
|
@@ -1804,10 +1804,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1804
1804
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
1805
1805
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state */ "../../framework/piral-core/esm/state/stateContext.js");
|
|
1806
1806
|
/* harmony import */ var _createInstance__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createInstance */ "../../framework/piral-core/esm/createInstance.js");
|
|
1807
|
-
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/
|
|
1808
|
-
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/
|
|
1809
|
-
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/
|
|
1810
|
-
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/
|
|
1807
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/ResponsiveLayout.js");
|
|
1808
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/Mediator.js");
|
|
1809
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/PiralView.js");
|
|
1810
|
+
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components */ "../../framework/piral-core/esm/components/PortalRenderer.js");
|
|
1811
1811
|
|
|
1812
1812
|
|
|
1813
1813
|
|
|
@@ -1835,13 +1835,13 @@ var Piral = function Piral(_ref) {
|
|
|
1835
1835
|
children = _ref.children;
|
|
1836
1836
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_state__WEBPACK_IMPORTED_MODULE_2__.StateContext.Provider, {
|
|
1837
1837
|
value: instance.context
|
|
1838
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_3__.
|
|
1839
|
-
id: "root"
|
|
1840
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_4__.ResponsiveLayout, {
|
|
1838
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_3__.ResponsiveLayout, {
|
|
1841
1839
|
breakpoints: breakpoints
|
|
1842
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
1840
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_4__.Mediator, {
|
|
1843
1841
|
options: instance.options
|
|
1844
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
1842
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_5__.PiralView, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components__WEBPACK_IMPORTED_MODULE_6__.PortalRenderer, {
|
|
1843
|
+
id: "root"
|
|
1844
|
+
}), children));
|
|
1845
1845
|
};
|
|
1846
1846
|
Piral.displayName = 'Piral';
|
|
1847
1847
|
|
|
@@ -3186,7 +3186,7 @@ function createInstance() {
|
|
|
3186
3186
|
var createApi = apiFactory(context, usedPlugins);
|
|
3187
3187
|
var root = createApi({
|
|
3188
3188
|
name: 'root',
|
|
3189
|
-
version: "0.14.
|
|
3189
|
+
version: "0.14.3-beta.3299" || 0,
|
|
3190
3190
|
spec: ''
|
|
3191
3191
|
});
|
|
3192
3192
|
var options = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.createPiletOptions)({
|
|
@@ -3284,9 +3284,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3284
3284
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3285
3285
|
/* harmony export */ "useAction": () => (/* binding */ useAction)
|
|
3286
3286
|
/* harmony export */ });
|
|
3287
|
-
/* harmony import */ var
|
|
3288
|
-
/* harmony import */ var _state_stateContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../state/stateContext */ "../../framework/piral-core/esm/state/stateContext.js");
|
|
3289
|
-
|
|
3287
|
+
/* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./globalState */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
3290
3288
|
|
|
3291
3289
|
/**
|
|
3292
3290
|
* Hook that gets an action for manipulating the global state.
|
|
@@ -3294,7 +3292,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3294
3292
|
*/
|
|
3295
3293
|
|
|
3296
3294
|
function useAction(action) {
|
|
3297
|
-
var ctx = (0,
|
|
3295
|
+
var ctx = (0,_globalState__WEBPACK_IMPORTED_MODULE_0__.useGlobalStateContext)();
|
|
3298
3296
|
return ctx[action];
|
|
3299
3297
|
}
|
|
3300
3298
|
|
|
@@ -3340,6 +3338,7 @@ function useActions() {
|
|
|
3340
3338
|
"use strict";
|
|
3341
3339
|
__webpack_require__.r(__webpack_exports__);
|
|
3342
3340
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3341
|
+
/* harmony export */ "useGlobalStateContext": () => (/* binding */ useGlobalStateContext),
|
|
3343
3342
|
/* harmony export */ "useGlobalState": () => (/* binding */ useGlobalState)
|
|
3344
3343
|
/* harmony export */ });
|
|
3345
3344
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
@@ -3356,10 +3355,20 @@ function useDirectAtom(atom, opts) {
|
|
|
3356
3355
|
var select = opts && opts.select;
|
|
3357
3356
|
return typeof select === 'function' ? select(state) : state;
|
|
3358
3357
|
}
|
|
3358
|
+
/**
|
|
3359
|
+
* Hook to obtain the global state context, which gives you directly
|
|
3360
|
+
* all actions, state, and more of the Piral instance.
|
|
3361
|
+
* If you are only interested in reading out the state, use the
|
|
3362
|
+
* `useGlobalState` hook instead.
|
|
3363
|
+
*/
|
|
3364
|
+
|
|
3359
3365
|
|
|
3366
|
+
function useGlobalStateContext() {
|
|
3367
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_state_stateContext__WEBPACK_IMPORTED_MODULE_2__.StateContext);
|
|
3368
|
+
}
|
|
3360
3369
|
function useGlobalState(select) {
|
|
3361
|
-
var
|
|
3362
|
-
state =
|
|
3370
|
+
var _useGlobalStateContex = useGlobalStateContext(),
|
|
3371
|
+
state = _useGlobalStateContex.state;
|
|
3363
3372
|
|
|
3364
3373
|
return useGlobalAtom(state, select && {
|
|
3365
3374
|
select: select
|
|
@@ -3380,6 +3389,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3380
3389
|
/* harmony export */ "useAction": () => (/* reexport safe */ _action__WEBPACK_IMPORTED_MODULE_0__.useAction),
|
|
3381
3390
|
/* harmony export */ "useActions": () => (/* reexport safe */ _actions__WEBPACK_IMPORTED_MODULE_1__.useActions),
|
|
3382
3391
|
/* harmony export */ "useGlobalState": () => (/* reexport safe */ _globalState__WEBPACK_IMPORTED_MODULE_2__.useGlobalState),
|
|
3392
|
+
/* harmony export */ "useGlobalStateContext": () => (/* reexport safe */ _globalState__WEBPACK_IMPORTED_MODULE_2__.useGlobalStateContext),
|
|
3383
3393
|
/* harmony export */ "useMedia": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_3__.useMedia),
|
|
3384
3394
|
/* harmony export */ "useSetter": () => (/* reexport safe */ _setter__WEBPACK_IMPORTED_MODULE_4__.useSetter),
|
|
3385
3395
|
/* harmony export */ "useSharedData": () => (/* reexport safe */ _sharedData__WEBPACK_IMPORTED_MODULE_5__.useSharedData)
|
|
@@ -3558,6 +3568,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3558
3568
|
/* harmony export */ "useAction": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useAction),
|
|
3559
3569
|
/* harmony export */ "useActions": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useActions),
|
|
3560
3570
|
/* harmony export */ "useGlobalState": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useGlobalState),
|
|
3571
|
+
/* harmony export */ "useGlobalStateContext": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useGlobalStateContext),
|
|
3561
3572
|
/* harmony export */ "useMedia": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useMedia),
|
|
3562
3573
|
/* harmony export */ "useSetter": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useSetter),
|
|
3563
3574
|
/* harmony export */ "useSharedData": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useSharedData),
|
|
@@ -4117,11 +4128,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4117
4128
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
4118
4129
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/utils.js");
|
|
4119
4130
|
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
4120
|
-
/* harmony import */ var _stateContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./stateContext */ "../../framework/piral-core/esm/state/stateContext.js");
|
|
4121
4131
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/ErrorBoundary.js");
|
|
4122
4132
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/PortalRenderer.js");
|
|
4123
4133
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/components.js");
|
|
4124
4134
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/actions.js");
|
|
4135
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
4125
4136
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/react.js");
|
|
4126
4137
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
|
|
4127
4138
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
|
|
@@ -4152,7 +4163,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
4152
4163
|
|
|
4153
4164
|
|
|
4154
4165
|
|
|
4155
|
-
|
|
4156
4166
|
// this is an arbitrary start number to have 6 digits
|
|
4157
4167
|
|
|
4158
4168
|
var portalIdBase = 123456;
|
|
@@ -4266,8 +4276,8 @@ function wrapForeignComponent(component, stasisOptions, piral, Wrapper) {
|
|
|
4266
4276
|
var _useActions = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useActions)(),
|
|
4267
4277
|
destroyPortal = _useActions.destroyPortal;
|
|
4268
4278
|
|
|
4269
|
-
var
|
|
4270
|
-
state =
|
|
4279
|
+
var _useGlobalStateContex = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useGlobalStateContext)(),
|
|
4280
|
+
state = _useGlobalStateContex.state;
|
|
4271
4281
|
|
|
4272
4282
|
var router = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_6__.__RouterContext);
|
|
4273
4283
|
var id = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {
|
|
@@ -5194,6 +5204,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5194
5204
|
/* harmony export */ "useAction": () => (/* reexport safe */ piral_core__WEBPACK_IMPORTED_MODULE_0__.useAction),
|
|
5195
5205
|
/* harmony export */ "useActions": () => (/* reexport safe */ piral_core__WEBPACK_IMPORTED_MODULE_0__.useActions),
|
|
5196
5206
|
/* harmony export */ "useGlobalState": () => (/* reexport safe */ piral_core__WEBPACK_IMPORTED_MODULE_0__.useGlobalState),
|
|
5207
|
+
/* harmony export */ "useGlobalStateContext": () => (/* reexport safe */ piral_core__WEBPACK_IMPORTED_MODULE_0__.useGlobalStateContext),
|
|
5197
5208
|
/* harmony export */ "useMedia": () => (/* reexport safe */ piral_core__WEBPACK_IMPORTED_MODULE_0__.useMedia),
|
|
5198
5209
|
/* harmony export */ "useSetter": () => (/* reexport safe */ piral_core__WEBPACK_IMPORTED_MODULE_0__.useSetter),
|
|
5199
5210
|
/* harmony export */ "useSharedData": () => (/* reexport safe */ piral_core__WEBPACK_IMPORTED_MODULE_0__.useSharedData),
|
|
@@ -8708,12 +8719,12 @@ function installPiralDebug(options) {
|
|
|
8708
8719
|
debug: debugApiVersion,
|
|
8709
8720
|
instance: {
|
|
8710
8721
|
name: "sample-piral",
|
|
8711
|
-
version: "0.14.
|
|
8722
|
+
version: "0.14.3-beta.3299",
|
|
8712
8723
|
dependencies: "reactstrap,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
8713
8724
|
},
|
|
8714
8725
|
build: {
|
|
8715
|
-
date: "2021-11-
|
|
8716
|
-
cli: "0.14.
|
|
8726
|
+
date: "2021-11-25T15:03:01.256Z",
|
|
8727
|
+
cli: "0.14.2",
|
|
8717
8728
|
compat: "0.14"
|
|
8718
8729
|
},
|
|
8719
8730
|
pilets: {
|
|
@@ -80011,4 +80022,4 @@ var layout_1 = __webpack_require__(/*! ./layout */ "./src/layout.tsx");
|
|
|
80011
80022
|
|
|
80012
80023
|
/******/ })()
|
|
80013
80024
|
;
|
|
80014
|
-
//# sourceMappingURL=index.
|
|
80025
|
+
//# sourceMappingURL=index.e6d9cd.js.map
|