sample-cross-fx 0.14.1-beta.3256 → 0.14.3-beta.3296
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.5e9ae9.js → index.5af971.js} +40 -14
- package/app/{index.5e9ae9.js.map → index.5af971.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
|
@@ -129109,7 +129109,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
129109
129109
|
/* harmony export */ "blazingStrategy": () => (/* binding */ blazingStrategy),
|
|
129110
129110
|
/* harmony export */ "asyncStrategy": () => (/* binding */ asyncStrategy),
|
|
129111
129111
|
/* harmony export */ "standardStrategy": () => (/* binding */ standardStrategy),
|
|
129112
|
-
/* harmony export */ "syncStrategy": () => (/* binding */ syncStrategy)
|
|
129112
|
+
/* harmony export */ "syncStrategy": () => (/* binding */ syncStrategy),
|
|
129113
|
+
/* harmony export */ "createDeferredStrategy": () => (/* binding */ createDeferredStrategy)
|
|
129113
129114
|
/* harmony export */ });
|
|
129114
129115
|
/* harmony import */ var _loader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./loader */ "../../framework/piral-base/esm/loader.js");
|
|
129115
129116
|
/* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./load */ "../../framework/piral-base/esm/load.js");
|
|
@@ -129241,6 +129242,21 @@ function syncStrategy(options, cb) {
|
|
|
129241
129242
|
} = options;
|
|
129242
129243
|
return (0,_system__WEBPACK_IMPORTED_MODULE_3__.registerDependencies)(dependencies).then(() => evalAll(createApi, pilets, []).then(modules => cb(undefined, modules), err => cb(err, [])));
|
|
129243
129244
|
}
|
|
129245
|
+
/**
|
|
129246
|
+
* Creates a strategy that deferres the actual loading until a trigger promise resolves.
|
|
129247
|
+
* The loading spinner is not shown during this time and pilets are supposed to appear directly.
|
|
129248
|
+
* @param trigger The trigger resolving when the strategy should be applied.
|
|
129249
|
+
* @param strategy The strategy to apply. Falls back to the standard strategy.
|
|
129250
|
+
* @returns A pilet loading strategy.
|
|
129251
|
+
*/
|
|
129252
|
+
|
|
129253
|
+
function createDeferredStrategy(trigger, strategy = standardStrategy) {
|
|
129254
|
+
return (options, cb) => {
|
|
129255
|
+
cb(undefined, []);
|
|
129256
|
+
trigger.then(() => strategy(options, cb));
|
|
129257
|
+
return Promise.resolve();
|
|
129258
|
+
};
|
|
129259
|
+
}
|
|
129244
129260
|
|
|
129245
129261
|
/***/ }),
|
|
129246
129262
|
|
|
@@ -130668,7 +130684,7 @@ function createInstance(config = {}) {
|
|
|
130668
130684
|
const createApi = apiFactory(context, usedPlugins);
|
|
130669
130685
|
const root = createApi({
|
|
130670
130686
|
name: 'root',
|
|
130671
|
-
version: "0.14.
|
|
130687
|
+
version: "0.14.3-beta.3296" || 0,
|
|
130672
130688
|
spec: ''
|
|
130673
130689
|
});
|
|
130674
130690
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.createPiletOptions)({
|
|
@@ -130769,9 +130785,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130769
130785
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
130770
130786
|
/* harmony export */ "useAction": () => (/* binding */ useAction)
|
|
130771
130787
|
/* harmony export */ });
|
|
130772
|
-
/* harmony import */ var
|
|
130773
|
-
/* harmony import */ var _state_stateContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../state/stateContext */ "../../framework/piral-core/esm/state/stateContext.js");
|
|
130774
|
-
|
|
130788
|
+
/* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./globalState */ "../../framework/piral-core/esm/hooks/globalState.js");
|
|
130775
130789
|
|
|
130776
130790
|
/**
|
|
130777
130791
|
* Hook that gets an action for manipulating the global state.
|
|
@@ -130779,7 +130793,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130779
130793
|
*/
|
|
130780
130794
|
|
|
130781
130795
|
function useAction(action) {
|
|
130782
|
-
const ctx = (0,
|
|
130796
|
+
const ctx = (0,_globalState__WEBPACK_IMPORTED_MODULE_0__.useGlobalStateContext)();
|
|
130783
130797
|
return ctx[action];
|
|
130784
130798
|
}
|
|
130785
130799
|
|
|
@@ -130827,6 +130841,7 @@ function useActions() {
|
|
|
130827
130841
|
"use strict";
|
|
130828
130842
|
__webpack_require__.r(__webpack_exports__);
|
|
130829
130843
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
130844
|
+
/* harmony export */ "useGlobalStateContext": () => (/* binding */ useGlobalStateContext),
|
|
130830
130845
|
/* harmony export */ "useGlobalState": () => (/* binding */ useGlobalState)
|
|
130831
130846
|
/* harmony export */ });
|
|
130832
130847
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
@@ -130843,11 +130858,21 @@ function useDirectAtom(atom, opts) {
|
|
|
130843
130858
|
const select = opts && opts.select;
|
|
130844
130859
|
return typeof select === 'function' ? select(state) : state;
|
|
130845
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
|
+
|
|
130846
130868
|
|
|
130869
|
+
function useGlobalStateContext() {
|
|
130870
|
+
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_state_stateContext__WEBPACK_IMPORTED_MODULE_2__.StateContext);
|
|
130871
|
+
}
|
|
130847
130872
|
function useGlobalState(select) {
|
|
130848
130873
|
const {
|
|
130849
130874
|
state
|
|
130850
|
-
} = (
|
|
130875
|
+
} = useGlobalStateContext();
|
|
130851
130876
|
return useGlobalAtom(state, select && {
|
|
130852
130877
|
select
|
|
130853
130878
|
});
|
|
@@ -130867,6 +130892,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130867
130892
|
/* harmony export */ "useAction": () => (/* reexport safe */ _action__WEBPACK_IMPORTED_MODULE_0__.useAction),
|
|
130868
130893
|
/* harmony export */ "useActions": () => (/* reexport safe */ _actions__WEBPACK_IMPORTED_MODULE_1__.useActions),
|
|
130869
130894
|
/* harmony export */ "useGlobalState": () => (/* reexport safe */ _globalState__WEBPACK_IMPORTED_MODULE_2__.useGlobalState),
|
|
130895
|
+
/* harmony export */ "useGlobalStateContext": () => (/* reexport safe */ _globalState__WEBPACK_IMPORTED_MODULE_2__.useGlobalStateContext),
|
|
130870
130896
|
/* harmony export */ "useMedia": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_3__.useMedia),
|
|
130871
130897
|
/* harmony export */ "useSetter": () => (/* reexport safe */ _setter__WEBPACK_IMPORTED_MODULE_4__.useSetter),
|
|
130872
130898
|
/* harmony export */ "useSharedData": () => (/* reexport safe */ _sharedData__WEBPACK_IMPORTED_MODULE_5__.useSharedData)
|
|
@@ -131019,6 +131045,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131019
131045
|
/* harmony export */ "useAction": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useAction),
|
|
131020
131046
|
/* harmony export */ "useActions": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useActions),
|
|
131021
131047
|
/* harmony export */ "useGlobalState": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useGlobalState),
|
|
131048
|
+
/* harmony export */ "useGlobalStateContext": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useGlobalStateContext),
|
|
131022
131049
|
/* harmony export */ "useMedia": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useMedia),
|
|
131023
131050
|
/* harmony export */ "useSetter": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useSetter),
|
|
131024
131051
|
/* harmony export */ "useSharedData": () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_4__.useSharedData),
|
|
@@ -131488,11 +131515,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131488
131515
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
|
|
131489
131516
|
/* harmony import */ var piral_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! piral-base */ "../../framework/piral-base/esm/utils.js");
|
|
131490
131517
|
/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router */ "../../../node_modules/react-router/esm/react-router.js");
|
|
131491
|
-
/* harmony import */ var _stateContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./stateContext */ "../../framework/piral-core/esm/state/stateContext.js");
|
|
131492
131518
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/ErrorBoundary.js");
|
|
131493
131519
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/PortalRenderer.js");
|
|
131494
131520
|
/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/components.js");
|
|
131495
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");
|
|
131496
131523
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/react.js");
|
|
131497
131524
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
|
|
131498
131525
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
|
|
@@ -131501,7 +131528,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131501
131528
|
|
|
131502
131529
|
|
|
131503
131530
|
|
|
131504
|
-
|
|
131505
131531
|
// this is an arbitrary start number to have 6 digits
|
|
131506
131532
|
|
|
131507
131533
|
let portalIdBase = 123456;
|
|
@@ -131612,7 +131638,7 @@ function wrapForeignComponent(component, stasisOptions, piral, Wrapper) {
|
|
|
131612
131638
|
} = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useActions)();
|
|
131613
131639
|
const {
|
|
131614
131640
|
state
|
|
131615
|
-
} =
|
|
131641
|
+
} = (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useGlobalStateContext)();
|
|
131616
131642
|
const router = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_6__.__RouterContext);
|
|
131617
131643
|
const id = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => (portalIdBase++).toString(26), _utils__WEBPACK_IMPORTED_MODULE_7__.none);
|
|
131618
131644
|
const context = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({
|
|
@@ -132903,12 +132929,12 @@ function installPiralDebug(options) {
|
|
|
132903
132929
|
debug: debugApiVersion,
|
|
132904
132930
|
instance: {
|
|
132905
132931
|
name: "sample-cross-fx",
|
|
132906
|
-
version: "0.14.
|
|
132932
|
+
version: "0.14.3-beta.3296",
|
|
132907
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"
|
|
132908
132934
|
},
|
|
132909
132935
|
build: {
|
|
132910
|
-
date: "2021-11-
|
|
132911
|
-
cli: "0.14.
|
|
132936
|
+
date: "2021-11-24T14:31:24.741Z",
|
|
132937
|
+
cli: "0.14.2",
|
|
132912
132938
|
compat: "0.14"
|
|
132913
132939
|
},
|
|
132914
132940
|
pilets: {
|
|
@@ -254985,4 +255011,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
254985
255011
|
|
|
254986
255012
|
/******/ })()
|
|
254987
255013
|
;
|
|
254988
|
-
//# sourceMappingURL=index.
|
|
255014
|
+
//# sourceMappingURL=index.5af971.js.map
|