sample-cross-fx 0.14.1-beta.3266 → 0.14.3-beta.3297
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.d2e3e9.js → index.dd7421.js} +23 -13
- package/app/{index.d2e3e9.js.map → index.dd7421.js.map} +1 -1
- 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 +20 -20
|
@@ -130684,7 +130684,7 @@ function createInstance(config = {}) {
|
|
|
130684
130684
|
const createApi = apiFactory(context, usedPlugins);
|
|
130685
130685
|
const root = createApi({
|
|
130686
130686
|
name: 'root',
|
|
130687
|
-
version: "0.14.
|
|
130687
|
+
version: "0.14.3-beta.3297" || 0,
|
|
130688
130688
|
spec: ''
|
|
130689
130689
|
});
|
|
130690
130690
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.createPiletOptions)({
|
|
@@ -130785,9 +130785,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130785
130785
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
130786
130786
|
/* harmony export */ "useAction": () => (/* binding */ useAction)
|
|
130787
130787
|
/* harmony export */ });
|
|
130788
|
-
/* harmony import */ var
|
|
130789
|
-
/* harmony import */ var _state_stateContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../state/stateContext */ "../../framework/piral-core/esm/state/stateContext.js");
|
|
130790
|
-
|
|
130788
|
+
/* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./globalState */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
130791
130789
|
|
|
130792
130790
|
/**
|
|
130793
130791
|
* Hook that gets an action for manipulating the global state.
|
|
@@ -130795,7 +130793,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130795
130793
|
*/
|
|
130796
130794
|
|
|
130797
130795
|
function useAction(action) {
|
|
130798
|
-
const ctx = (0,
|
|
130796
|
+
const ctx = (0,_globalState__WEBPACK_IMPORTED_MODULE_0__.useGlobalStateContext)();
|
|
130799
130797
|
return ctx[action];
|
|
130800
130798
|
}
|
|
130801
130799
|
|
|
@@ -130843,6 +130841,7 @@ function useActions() {
|
|
|
130843
130841
|
"use strict";
|
|
130844
130842
|
__webpack_require__.r(__webpack_exports__);
|
|
130845
130843
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
130844
|
+
/* harmony export */ "useGlobalStateContext": () => (/* binding */ useGlobalStateContext),
|
|
130846
130845
|
/* harmony export */ "useGlobalState": () => (/* binding */ useGlobalState)
|
|
130847
130846
|
/* harmony export */ });
|
|
130848
130847
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
@@ -130859,11 +130858,21 @@ function useDirectAtom(atom, opts) {
|
|
|
130859
130858
|
const select = opts && opts.select;
|
|
130860
130859
|
return typeof select === 'function' ? select(state) : state;
|
|
130861
130860
|
}
|
|
130861
|
+
/**
|
|
130862
|
+
* Hook to obtain the global state context, which gives you directly
|
|
130863
|
+
* all actions, state, and more of the Piral instance.
|
|
130864
|
+
* If you are only interested in reading out the state, use the
|
|
130865
|
+
* `useGlobalState` hook instead.
|
|
130866
|
+
*/
|
|
130867
|
+
|
|
130862
130868
|
|
|
130869
|
+
function useGlobalStateContext() {
|
|
130870
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_state_stateContext__WEBPACK_IMPORTED_MODULE_2__.StateContext);
|
|
130871
|
+
}
|
|
130863
130872
|
function useGlobalState(select) {
|
|
130864
130873
|
const {
|
|
130865
130874
|
state
|
|
130866
|
-
} = (
|
|
130875
|
+
} = useGlobalStateContext();
|
|
130867
130876
|
return useGlobalAtom(state, select && {
|
|
130868
130877
|
select
|
|
130869
130878
|
});
|
|
@@ -130883,6 +130892,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130883
130892
|
/* harmony export */ "useAction": () => (/* reexport safe */ _action__WEBPACK_IMPORTED_MODULE_0__.useAction),
|
|
130884
130893
|
/* harmony export */ "useActions": () => (/* reexport safe */ _actions__WEBPACK_IMPORTED_MODULE_1__.useActions),
|
|
130885
130894
|
/* harmony export */ "useGlobalState": () => (/* reexport safe */ _globalState__WEBPACK_IMPORTED_MODULE_2__.useGlobalState),
|
|
130895
|
+
/* harmony export */ "useGlobalStateContext": () => (/* reexport safe */ _globalState__WEBPACK_IMPORTED_MODULE_2__.useGlobalStateContext),
|
|
130886
130896
|
/* harmony export */ "useMedia": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_3__.useMedia),
|
|
130887
130897
|
/* harmony export */ "useSetter": () => (/* reexport safe */ _setter__WEBPACK_IMPORTED_MODULE_4__.useSetter),
|
|
130888
130898
|
/* harmony export */ "useSharedData": () => (/* reexport safe */ _sharedData__WEBPACK_IMPORTED_MODULE_5__.useSharedData)
|
|
@@ -131035,6 +131045,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131035
131045
|
/* harmony export */ "useAction": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useAction),
|
|
131036
131046
|
/* harmony export */ "useActions": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useActions),
|
|
131037
131047
|
/* harmony export */ "useGlobalState": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useGlobalState),
|
|
131048
|
+
/* harmony export */ "useGlobalStateContext": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useGlobalStateContext),
|
|
131038
131049
|
/* harmony export */ "useMedia": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useMedia),
|
|
131039
131050
|
/* harmony export */ "useSetter": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useSetter),
|
|
131040
131051
|
/* harmony export */ "useSharedData": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useSharedData),
|
|
@@ -131504,11 +131515,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131504
131515
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
131505
131516
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/utils.js");
|
|
131506
131517
|
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
131507
|
-
/* harmony import */ var _stateContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./stateContext */ "../../framework/piral-core/esm/state/stateContext.js");
|
|
131508
131518
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/ErrorBoundary.js");
|
|
131509
131519
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/PortalRenderer.js");
|
|
131510
131520
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/components.js");
|
|
131511
131521
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/actions.js");
|
|
131522
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../hooks */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
131512
131523
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/react.js");
|
|
131513
131524
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
|
|
131514
131525
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
|
|
@@ -131517,7 +131528,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131517
131528
|
|
|
131518
131529
|
|
|
131519
131530
|
|
|
131520
|
-
|
|
131521
131531
|
// this is an arbitrary start number to have 6 digits
|
|
131522
131532
|
|
|
131523
131533
|
let portalIdBase = 123456;
|
|
@@ -131628,7 +131638,7 @@ function wrapForeignComponent(component, stasisOptions, piral, Wrapper) {
|
|
|
131628
131638
|
} = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useActions)();
|
|
131629
131639
|
const {
|
|
131630
131640
|
state
|
|
131631
|
-
} =
|
|
131641
|
+
} = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useGlobalStateContext)();
|
|
131632
131642
|
const router = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_6__.__RouterContext);
|
|
131633
131643
|
const id = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => (portalIdBase++).toString(26), _utils__WEBPACK_IMPORTED_MODULE_7__.none);
|
|
131634
131644
|
const context = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({
|
|
@@ -132919,12 +132929,12 @@ function installPiralDebug(options) {
|
|
|
132919
132929
|
debug: debugApiVersion,
|
|
132920
132930
|
instance: {
|
|
132921
132931
|
name: "sample-cross-fx",
|
|
132922
|
-
version: "0.14.
|
|
132932
|
+
version: "0.14.3-beta.3297",
|
|
132923
132933
|
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"
|
|
132924
132934
|
},
|
|
132925
132935
|
build: {
|
|
132926
|
-
date: "2021-11-
|
|
132927
|
-
cli: "0.14.
|
|
132936
|
+
date: "2021-11-25T02:00:41.712Z",
|
|
132937
|
+
cli: "0.14.2",
|
|
132928
132938
|
compat: "0.14"
|
|
132929
132939
|
},
|
|
132930
132940
|
pilets: {
|
|
@@ -255001,4 +255011,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
255001
255011
|
|
|
255002
255012
|
/******/ })()
|
|
255003
255013
|
;
|
|
255004
|
-
//# sourceMappingURL=index.
|
|
255014
|
+
//# sourceMappingURL=index.dd7421.js.map
|