sample-cross-fx 0.14.3-beta.3303 → 0.14.4

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.
@@ -129492,13 +129492,12 @@ __webpack_require__.r(__webpack_exports__);
129492
129492
  /* harmony export */ "setRoute": () => (/* binding */ setRoute),
129493
129493
  /* harmony export */ "includeProvider": () => (/* binding */ includeProvider)
129494
129494
  /* harmony export */ });
129495
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
129496
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
129497
-
129495
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
129496
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/state.js");
129498
129497
 
129499
129498
  function changeLayout(ctx, current) {
129500
129499
  ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129501
- app: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.app, 'layout', current)
129500
+ app: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withKey)(state.app, 'layout', current)
129502
129501
  }));
129503
129502
  }
129504
129503
  function initialize(ctx, loading, error, modules) {
@@ -129512,8 +129511,8 @@ function initialize(ctx, loading, error, modules) {
129512
129511
  }
129513
129512
  function injectPilet(ctx, pilet) {
129514
129513
  ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129515
- modules: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.replaceOrAddItem)(state.modules, pilet, m => m.name === pilet.name),
129516
- registry: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.removeNested)(state.registry, m => m.pilet === pilet.name)
129514
+ modules: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.replaceOrAddItem)(state.modules, pilet, m => m.name === pilet.name),
129515
+ registry: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.removeNested)(state.registry, m => m.pilet === pilet.name)
129517
129516
  }));
129518
129517
  ctx.emit('unload-pilet', {
129519
129518
  name: pilet.name
@@ -129521,25 +129520,19 @@ function injectPilet(ctx, pilet) {
129521
129520
  }
129522
129521
  function setComponent(ctx, name, component) {
129523
129522
  ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129524
- components: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.components, name, component)
129523
+ components: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withKey)(state.components, name, component)
129525
129524
  }));
129526
129525
  }
129527
129526
  function setErrorComponent(ctx, type, component) {
129528
129527
  ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129529
- errorComponents: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.errorComponents, type, component)
129528
+ errorComponents: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withKey)(state.errorComponents, type, component)
129530
129529
  }));
129531
129530
  }
129532
129531
  function setRoute(ctx, path, component) {
129533
- ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129534
- routes: (0,_utils__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.routes, path, component)
129535
- }));
129532
+ ctx.dispatch((0,_utils__WEBPACK_IMPORTED_MODULE_1__.withRoute)(path, component));
129536
129533
  }
129537
129534
  function includeProvider(ctx, provider) {
129538
- const wrapper = props => /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(provider, props);
129539
-
129540
- ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129541
- provider: !state.provider ? wrapper : props => /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(state.provider, undefined, wrapper(props))
129542
- }));
129535
+ ctx.dispatch((0,_utils__WEBPACK_IMPORTED_MODULE_1__.withProvider)(provider));
129543
129536
  }
129544
129537
 
129545
129538
  /***/ }),
@@ -129558,35 +129551,19 @@ __webpack_require__.r(__webpack_exports__);
129558
129551
  /* harmony export */ "registerExtension": () => (/* binding */ registerExtension),
129559
129552
  /* harmony export */ "unregisterExtension": () => (/* binding */ unregisterExtension)
129560
129553
  /* harmony export */ });
129561
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
129554
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/state.js");
129562
129555
 
129563
129556
  function registerPage(ctx, name, value) {
129564
- ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129565
- registry: Object.assign(Object.assign({}, state.registry), {
129566
- pages: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withKey)(state.registry.pages, name, value)
129567
- })
129568
- }));
129557
+ ctx.dispatch((0,_utils__WEBPACK_IMPORTED_MODULE_0__.withPage)(name, value));
129569
129558
  }
129570
129559
  function unregisterPage(ctx, name) {
129571
- ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129572
- registry: Object.assign(Object.assign({}, state.registry), {
129573
- pages: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withoutKey)(state.registry.pages, name)
129574
- })
129575
- }));
129560
+ ctx.dispatch((0,_utils__WEBPACK_IMPORTED_MODULE_0__.withoutPage)(name));
129576
129561
  }
129577
129562
  function registerExtension(ctx, name, value) {
129578
- ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129579
- registry: Object.assign(Object.assign({}, state.registry), {
129580
- extensions: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withKey)(state.registry.extensions, name, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.appendItem)(state.registry.extensions[name], value))
129581
- })
129582
- }));
129563
+ ctx.dispatch((0,_utils__WEBPACK_IMPORTED_MODULE_0__.withExtension)(name, value));
129583
129564
  }
129584
129565
  function unregisterExtension(ctx, name, reference) {
129585
- ctx.dispatch(state => Object.assign(Object.assign({}, state), {
129586
- registry: Object.assign(Object.assign({}, state.registry), {
129587
- extensions: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withKey)(state.registry.extensions, name, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.excludeOn)(state.registry.extensions[name], m => m.reference === reference))
129588
- })
129589
- }));
129566
+ ctx.dispatch((0,_utils__WEBPACK_IMPORTED_MODULE_0__.withoutExtension)(name, reference));
129590
129567
  }
129591
129568
 
129592
129569
  /***/ }),
@@ -130684,7 +130661,7 @@ function createInstance(config = {}) {
130684
130661
  const createApi = apiFactory(context, usedPlugins);
130685
130662
  const root = createApi({
130686
130663
  name: 'root',
130687
- version: "0.14.3-beta.3303" || 0,
130664
+ version: "0.14.4" || 0,
130688
130665
  spec: ''
130689
130666
  });
130690
130667
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.createPiletOptions)({
@@ -131082,10 +131059,19 @@ __webpack_require__.r(__webpack_exports__);
131082
131059
  /* harmony export */ "renderInDom": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.renderInDom),
131083
131060
  /* harmony export */ "replaceOrAddItem": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.replaceOrAddItem),
131084
131061
  /* harmony export */ "storage": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.storage),
131062
+ /* harmony export */ "toExtension": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.toExtension),
131085
131063
  /* harmony export */ "tryParseJson": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.tryParseJson),
131086
131064
  /* harmony export */ "updateKey": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.updateKey),
131065
+ /* harmony export */ "withAll": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withAll),
131066
+ /* harmony export */ "withExtension": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withExtension),
131087
131067
  /* harmony export */ "withKey": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withKey),
131088
- /* harmony export */ "withoutKey": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withoutKey)
131068
+ /* harmony export */ "withPage": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withPage),
131069
+ /* harmony export */ "withProvider": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withProvider),
131070
+ /* harmony export */ "withRootExtension": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withRootExtension),
131071
+ /* harmony export */ "withRoute": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withRoute),
131072
+ /* harmony export */ "withoutExtension": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withoutExtension),
131073
+ /* harmony export */ "withoutKey": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withoutKey),
131074
+ /* harmony export */ "withoutPage": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_6__.withoutPage)
131089
131075
  /* harmony export */ });
131090
131076
  /* harmony import */ var _createInstance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createInstance */ "../../framework/piral-core/esm/createInstance.js");
131091
131077
  /* harmony import */ var _Piral__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Piral */ "../../framework/piral-core/esm/Piral.js");
@@ -131808,6 +131794,25 @@ function getDataExpiration(expires) {
131808
131794
 
131809
131795
  /***/ }),
131810
131796
 
131797
+ /***/ "../../framework/piral-core/esm/utils/extension.js":
131798
+ /*!*********************************************************!*\
131799
+ !*** ../../framework/piral-core/esm/utils/extension.js ***!
131800
+ \*********************************************************/
131801
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
131802
+
131803
+ "use strict";
131804
+ __webpack_require__.r(__webpack_exports__);
131805
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
131806
+ /* harmony export */ "toExtension": () => (/* binding */ toExtension)
131807
+ /* harmony export */ });
131808
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
131809
+
131810
+ function toExtension(Component) {
131811
+ return props => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, props.params));
131812
+ }
131813
+
131814
+ /***/ }),
131815
+
131811
131816
  /***/ "../../framework/piral-core/esm/utils/foreign.js":
131812
131817
  /*!*******************************************************!*\
131813
131818
  !*** ../../framework/piral-core/esm/utils/foreign.js ***!
@@ -132012,43 +132017,56 @@ __webpack_require__.r(__webpack_exports__);
132012
132017
  /* harmony export */ "createDataOptions": () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.createDataOptions),
132013
132018
  /* harmony export */ "createDataView": () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.createDataView),
132014
132019
  /* harmony export */ "getDataExpiration": () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.getDataExpiration),
132015
- /* harmony export */ "attachDomPortal": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_2__.attachDomPortal),
132016
- /* harmony export */ "changeDomPortal": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_2__.changeDomPortal),
132017
- /* harmony export */ "convertComponent": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_2__.convertComponent),
132018
- /* harmony export */ "renderInDom": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_2__.renderInDom),
132019
- /* harmony export */ "buildName": () => (/* reexport safe */ _guid__WEBPACK_IMPORTED_MODULE_3__.buildName),
132020
- /* harmony export */ "generateId": () => (/* reexport safe */ _guid__WEBPACK_IMPORTED_MODULE_3__.generateId),
132021
- /* harmony export */ "appendItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.appendItem),
132022
- /* harmony export */ "appendItems": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.appendItems),
132023
- /* harmony export */ "excludeItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.excludeItem),
132024
- /* harmony export */ "excludeOn": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.excludeOn),
132025
- /* harmony export */ "includeItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.includeItem),
132026
- /* harmony export */ "none": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.none),
132027
- /* harmony export */ "noop": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.noop),
132028
- /* harmony export */ "prependItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.prependItem),
132029
- /* harmony export */ "prependItems": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.prependItems),
132030
- /* harmony export */ "removeIndicator": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.removeIndicator),
132031
- /* harmony export */ "removeNested": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.removeNested),
132032
- /* harmony export */ "replaceOrAddItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.replaceOrAddItem),
132033
- /* harmony export */ "tryParseJson": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.tryParseJson),
132034
- /* harmony export */ "updateKey": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.updateKey),
132035
- /* harmony export */ "withKey": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.withKey),
132036
- /* harmony export */ "withoutKey": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_4__.withoutKey),
132037
- /* harmony export */ "defaultBreakpoints": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_5__.defaultBreakpoints),
132038
- /* harmony export */ "defaultLayouts": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_5__.defaultLayouts),
132039
- /* harmony export */ "getCurrentLayout": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_5__.getCurrentLayout),
132040
- /* harmony export */ "defaultRender": () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_6__.defaultRender),
132041
- /* harmony export */ "cookie": () => (/* reexport safe */ _storage__WEBPACK_IMPORTED_MODULE_7__.cookie),
132042
- /* harmony export */ "storage": () => (/* reexport safe */ _storage__WEBPACK_IMPORTED_MODULE_7__.storage)
132020
+ /* harmony export */ "toExtension": () => (/* reexport safe */ _extension__WEBPACK_IMPORTED_MODULE_2__.toExtension),
132021
+ /* harmony export */ "attachDomPortal": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_3__.attachDomPortal),
132022
+ /* harmony export */ "changeDomPortal": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_3__.changeDomPortal),
132023
+ /* harmony export */ "convertComponent": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_3__.convertComponent),
132024
+ /* harmony export */ "renderInDom": () => (/* reexport safe */ _foreign__WEBPACK_IMPORTED_MODULE_3__.renderInDom),
132025
+ /* harmony export */ "buildName": () => (/* reexport safe */ _guid__WEBPACK_IMPORTED_MODULE_4__.buildName),
132026
+ /* harmony export */ "generateId": () => (/* reexport safe */ _guid__WEBPACK_IMPORTED_MODULE_4__.generateId),
132027
+ /* harmony export */ "appendItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.appendItem),
132028
+ /* harmony export */ "appendItems": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.appendItems),
132029
+ /* harmony export */ "excludeItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.excludeItem),
132030
+ /* harmony export */ "excludeOn": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.excludeOn),
132031
+ /* harmony export */ "includeItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.includeItem),
132032
+ /* harmony export */ "none": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.none),
132033
+ /* harmony export */ "noop": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.noop),
132034
+ /* harmony export */ "prependItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.prependItem),
132035
+ /* harmony export */ "prependItems": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.prependItems),
132036
+ /* harmony export */ "removeIndicator": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.removeIndicator),
132037
+ /* harmony export */ "removeNested": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.removeNested),
132038
+ /* harmony export */ "replaceOrAddItem": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.replaceOrAddItem),
132039
+ /* harmony export */ "tryParseJson": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.tryParseJson),
132040
+ /* harmony export */ "updateKey": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.updateKey),
132041
+ /* harmony export */ "withKey": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.withKey),
132042
+ /* harmony export */ "withoutKey": () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_5__.withoutKey),
132043
+ /* harmony export */ "defaultBreakpoints": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_6__.defaultBreakpoints),
132044
+ /* harmony export */ "defaultLayouts": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_6__.defaultLayouts),
132045
+ /* harmony export */ "getCurrentLayout": () => (/* reexport safe */ _media__WEBPACK_IMPORTED_MODULE_6__.getCurrentLayout),
132046
+ /* harmony export */ "defaultRender": () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_7__.defaultRender),
132047
+ /* harmony export */ "withAll": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withAll),
132048
+ /* harmony export */ "withExtension": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withExtension),
132049
+ /* harmony export */ "withPage": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withPage),
132050
+ /* harmony export */ "withProvider": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withProvider),
132051
+ /* harmony export */ "withRootExtension": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withRootExtension),
132052
+ /* harmony export */ "withRoute": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withRoute),
132053
+ /* harmony export */ "withoutExtension": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withoutExtension),
132054
+ /* harmony export */ "withoutPage": () => (/* reexport safe */ _state__WEBPACK_IMPORTED_MODULE_8__.withoutPage),
132055
+ /* harmony export */ "cookie": () => (/* reexport safe */ _storage__WEBPACK_IMPORTED_MODULE_9__.cookie),
132056
+ /* harmony export */ "storage": () => (/* reexport safe */ _storage__WEBPACK_IMPORTED_MODULE_9__.storage)
132043
132057
  /* harmony export */ });
132044
132058
  /* harmony import */ var _compare__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compare */ "../../framework/piral-core/esm/utils/compare.js");
132045
132059
  /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data */ "../../framework/piral-core/esm/utils/data.js");
132046
- /* harmony import */ var _foreign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foreign */ "../../framework/piral-core/esm/utils/foreign.js");
132047
- /* harmony import */ var _guid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./guid */ "../../framework/piral-core/esm/utils/guid.js");
132048
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "../../framework/piral-core/esm/utils/helpers.js");
132049
- /* harmony import */ var _media__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./media */ "../../framework/piral-core/esm/utils/media.js");
132050
- /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./react */ "../../framework/piral-core/esm/utils/react.js");
132051
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./storage */ "../../framework/piral-core/esm/utils/storage.js");
132060
+ /* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./extension */ "../../framework/piral-core/esm/utils/extension.js");
132061
+ /* harmony import */ var _foreign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foreign */ "../../framework/piral-core/esm/utils/foreign.js");
132062
+ /* harmony import */ var _guid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./guid */ "../../framework/piral-core/esm/utils/guid.js");
132063
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../framework/piral-core/esm/utils/helpers.js");
132064
+ /* harmony import */ var _media__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./media */ "../../framework/piral-core/esm/utils/media.js");
132065
+ /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./react */ "../../framework/piral-core/esm/utils/react.js");
132066
+ /* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./state */ "../../framework/piral-core/esm/utils/state.js");
132067
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./storage */ "../../framework/piral-core/esm/utils/storage.js");
132068
+
132069
+
132052
132070
 
132053
132071
 
132054
132072
 
@@ -132111,6 +132129,142 @@ function defaultRender(children, key) {
132111
132129
 
132112
132130
  /***/ }),
132113
132131
 
132132
+ /***/ "../../framework/piral-core/esm/utils/state.js":
132133
+ /*!*****************************************************!*\
132134
+ !*** ../../framework/piral-core/esm/utils/state.js ***!
132135
+ \*****************************************************/
132136
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
132137
+
132138
+ "use strict";
132139
+ __webpack_require__.r(__webpack_exports__);
132140
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
132141
+ /* harmony export */ "withAll": () => (/* binding */ withAll),
132142
+ /* harmony export */ "withPage": () => (/* binding */ withPage),
132143
+ /* harmony export */ "withoutPage": () => (/* binding */ withoutPage),
132144
+ /* harmony export */ "withExtension": () => (/* binding */ withExtension),
132145
+ /* harmony export */ "withoutExtension": () => (/* binding */ withoutExtension),
132146
+ /* harmony export */ "withRootExtension": () => (/* binding */ withRootExtension),
132147
+ /* harmony export */ "withProvider": () => (/* binding */ withProvider),
132148
+ /* harmony export */ "withRoute": () => (/* binding */ withRoute)
132149
+ /* harmony export */ });
132150
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../../node_modules/react/index.js");
132151
+ /* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./extension */ "../../framework/piral-core/esm/utils/extension.js");
132152
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../framework/piral-core/esm/utils/helpers.js");
132153
+
132154
+
132155
+
132156
+ /**
132157
+ * Returns a dispatcher that includes all mentioned dispatchers.
132158
+ * @param dispatchers The dispatchers to include.
132159
+ */
132160
+
132161
+ function withAll(...dispatchers) {
132162
+ return state => {
132163
+ for (const dispatcher of dispatchers) {
132164
+ state = dispatcher(state);
132165
+ }
132166
+
132167
+ return state;
132168
+ };
132169
+ }
132170
+ /**
132171
+ * Returns a dispatcher that adds a page registration.
132172
+ * @param name The path of the page to register.
132173
+ * @param value The value of the page to register.
132174
+ * @returns The dispatcher.
132175
+ */
132176
+
132177
+ function withPage(name, value) {
132178
+ return state => Object.assign(Object.assign({}, state), {
132179
+ registry: Object.assign(Object.assign({}, state.registry), {
132180
+ pages: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.registry.pages, name, value)
132181
+ })
132182
+ });
132183
+ }
132184
+ /**
132185
+ * Returns a dispatcher that removes a page registration.
132186
+ * @param name The path of the page to unregister.
132187
+ * @returns The dispatcher.
132188
+ */
132189
+
132190
+ function withoutPage(name) {
132191
+ return state => Object.assign(Object.assign({}, state), {
132192
+ registry: Object.assign(Object.assign({}, state.registry), {
132193
+ pages: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.withoutKey)(state.registry.pages, name)
132194
+ })
132195
+ });
132196
+ }
132197
+ /**
132198
+ * Returns a dispatcher that adds an extension registration.
132199
+ * @param name The name of the extension to register.
132200
+ * @param value The value of the extension to register.
132201
+ * @returns The dispatcher.
132202
+ */
132203
+
132204
+ function withExtension(name, value) {
132205
+ return state => Object.assign(Object.assign({}, state), {
132206
+ registry: Object.assign(Object.assign({}, state.registry), {
132207
+ extensions: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.registry.extensions, name, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.appendItem)(state.registry.extensions[name], value))
132208
+ })
132209
+ });
132210
+ }
132211
+ /**
132212
+ * Returns a dispatcher that removes an extension registration.
132213
+ * @param name The name of the extension to unregister.
132214
+ * @param reference The reference for the extension.
132215
+ * @returns The dispatcher.
132216
+ */
132217
+
132218
+ function withoutExtension(name, reference) {
132219
+ return state => Object.assign(Object.assign({}, state), {
132220
+ registry: Object.assign(Object.assign({}, state.registry), {
132221
+ extensions: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.registry.extensions, name, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.excludeOn)(state.registry.extensions[name], m => m.reference === reference))
132222
+ })
132223
+ });
132224
+ }
132225
+ /**
132226
+ * Returns a dispatcher that adds an extension registration from the root (no Pilet API).
132227
+ * @param name The name of the extension to register.
132228
+ * @param component The extension's component to use.
132229
+ * @returns The dispatcher.
132230
+ */
132231
+
132232
+ function withRootExtension(name, component) {
132233
+ return withExtension(name, {
132234
+ component: (0,_extension__WEBPACK_IMPORTED_MODULE_2__.toExtension)(component),
132235
+ defaults: {},
132236
+ pilet: '',
132237
+ reference: component
132238
+ });
132239
+ }
132240
+ /**
132241
+ * Returns a dispatcher that adds another provider.
132242
+ * @param provider The provider to include.
132243
+ * @returns The dispatcher.
132244
+ */
132245
+
132246
+ function withProvider(provider) {
132247
+ const wrapper = props => /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(provider, props);
132248
+
132249
+ return state => Object.assign(Object.assign({}, state), {
132250
+ provider: !state.provider ? wrapper : props => /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(state.provider, undefined, wrapper(props))
132251
+ });
132252
+ }
132253
+ /**
132254
+ * Returns a dispatcher that registers another route.
132255
+ * @param path The path of the route to register.
132256
+ * @param component The component representing the route.
132257
+ * @returns The dispatcher.
132258
+ */
132259
+
132260
+ function withRoute(path, component) {
132261
+ return state => Object.assign(Object.assign({}, state), {
132262
+ routes: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.withKey)(state.routes, path, component)
132263
+ });
132264
+ }
132265
+
132266
+ /***/ }),
132267
+
132114
132268
  /***/ "../../framework/piral-core/esm/utils/storage.js":
132115
132269
  /*!*******************************************************!*\
132116
132270
  !*** ../../framework/piral-core/esm/utils/storage.js ***!
@@ -132269,10 +132423,13 @@ __webpack_require__.r(__webpack_exports__);
132269
132423
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
132270
132424
  /* harmony export */ "createDashboardApi": () => (/* binding */ createDashboardApi)
132271
132425
  /* harmony export */ });
132272
- /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./actions */ "../../plugins/piral-dashboard/esm/actions.js");
132273
- /* harmony import */ var piral_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! piral-core */ "../../framework/piral-core/esm/utils/guid.js");
132274
- /* harmony import */ var piral_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! piral-core */ "../../framework/piral-core/esm/state/withApi.js");
132275
- /* harmony import */ var _default__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default */ "../../plugins/piral-dashboard/esm/default.js");
132426
+ /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./actions */ "../../plugins/piral-dashboard/esm/actions.js");
132427
+ /* harmony import */ var piral_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! piral-core */ "../../framework/piral-core/esm/utils/state.js");
132428
+ /* harmony import */ var piral_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! piral-core */ "../../framework/piral-core/esm/utils/guid.js");
132429
+ /* harmony import */ var piral_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! piral-core */ "../../framework/piral-core/esm/state/withApi.js");
132430
+ /* harmony import */ var _default__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default */ "../../plugins/piral-dashboard/esm/default.js");
132431
+ /* harmony import */ var _Dashboard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Dashboard */ "../../plugins/piral-dashboard/esm/Dashboard.js");
132432
+
132276
132433
 
132277
132434
 
132278
132435
 
@@ -132298,6 +132455,18 @@ function getTiles(items, defaultPreferences) {
132298
132455
 
132299
132456
  return tiles;
132300
132457
  }
132458
+
132459
+ function withTiles(tiles) {
132460
+ return state => Object.assign(Object.assign({}, state), {
132461
+ components: Object.assign({
132462
+ DashboardTile: _default__WEBPACK_IMPORTED_MODULE_0__.DefaultTile,
132463
+ DashboardContainer: _default__WEBPACK_IMPORTED_MODULE_0__.DefaultContainer
132464
+ }, state.components),
132465
+ registry: Object.assign(Object.assign({}, state.registry), {
132466
+ tiles
132467
+ })
132468
+ });
132469
+ }
132301
132470
  /**
132302
132471
  * Creates the Pilet API extension for activating dashboard support.
132303
132472
  */
@@ -132309,16 +132478,8 @@ function createDashboardApi(config = {}) {
132309
132478
  defaultPreferences = {}
132310
132479
  } = config;
132311
132480
  return context => {
132312
- context.defineActions(_actions__WEBPACK_IMPORTED_MODULE_0__);
132313
- context.dispatch(state => Object.assign(Object.assign({}, state), {
132314
- components: Object.assign({
132315
- DashboardTile: _default__WEBPACK_IMPORTED_MODULE_1__.DefaultTile,
132316
- DashboardContainer: _default__WEBPACK_IMPORTED_MODULE_1__.DefaultContainer
132317
- }, state.components),
132318
- registry: Object.assign(Object.assign({}, state.registry), {
132319
- tiles: getTiles(tiles, defaultPreferences)
132320
- })
132321
- }));
132481
+ context.defineActions(_actions__WEBPACK_IMPORTED_MODULE_1__);
132482
+ context.dispatch((0,piral_core__WEBPACK_IMPORTED_MODULE_2__.withAll)(withTiles(getTiles(tiles, defaultPreferences)), (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.withRootExtension)('piral-dashboard', _Dashboard__WEBPACK_IMPORTED_MODULE_3__.Dashboard)));
132322
132483
  return (api, target) => {
132323
132484
  const pilet = target.name;
132324
132485
  let next = 0;
@@ -132330,17 +132491,17 @@ function createDashboardApi(config = {}) {
132330
132491
  name = next++;
132331
132492
  }
132332
132493
 
132333
- const id = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.buildName)(pilet, name);
132494
+ const id = (0,piral_core__WEBPACK_IMPORTED_MODULE_4__.buildName)(pilet, name);
132334
132495
  context.registerTile(id, {
132335
132496
  pilet,
132336
- component: (0,piral_core__WEBPACK_IMPORTED_MODULE_3__.withApi)(context, arg, api, 'tile'),
132497
+ component: (0,piral_core__WEBPACK_IMPORTED_MODULE_5__.withApi)(context, arg, api, 'tile'),
132337
132498
  preferences: getPreferences(defaultPreferences, preferences)
132338
132499
  });
132339
132500
  return () => api.unregisterTile(name);
132340
132501
  },
132341
132502
 
132342
132503
  unregisterTile(name) {
132343
- const id = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.buildName)(pilet, name);
132504
+ const id = (0,piral_core__WEBPACK_IMPORTED_MODULE_4__.buildName)(pilet, name);
132344
132505
  context.unregisterTile(id);
132345
132506
  }
132346
132507
 
@@ -132929,12 +133090,12 @@ function installPiralDebug(options) {
132929
133090
  debug: debugApiVersion,
132930
133091
  instance: {
132931
133092
  name: "sample-cross-fx",
132932
- version: "0.14.3-beta.3303",
133093
+ version: "0.14.4",
132933
133094
  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"
132934
133095
  },
132935
133096
  build: {
132936
- date: "2021-11-26T01:21:19.701Z",
132937
- cli: "0.14.2",
133097
+ date: "2021-12-01T01:33:25.943Z",
133098
+ cli: "0.14.4",
132938
133099
  compat: "0.14"
132939
133100
  },
132940
133101
  pilets: {
@@ -255011,4 +255172,4 @@ const app = React.createElement(piral_core_1.Piral, {
255011
255172
 
255012
255173
  /******/ })()
255013
255174
  ;
255014
- //# sourceMappingURL=index.f97c01.js.map
255175
+ //# sourceMappingURL=index.872f7a.js.map