sample-piral 1.6.2-beta.7394 → 1.6.2-beta.7457

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.
@@ -1103,7 +1103,8 @@ var Mediator = function Mediator(_ref) {
1103
1103
  var options = _ref.options;
1104
1104
  var _useGlobalStateContex = (0,_hooks__WEBPACK_IMPORTED_MODULE_1__.useGlobalStateContext)(),
1105
1105
  initialize = _useGlobalStateContex.initialize,
1106
- readState = _useGlobalStateContex.readState;
1106
+ readState = _useGlobalStateContex.readState,
1107
+ emit = _useGlobalStateContex.emit;
1107
1108
  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
1108
1109
  var shouldLoad = readState(function (s) {
1109
1110
  return s.app.loading;
@@ -1112,8 +1113,17 @@ var Mediator = function Mediator(_ref) {
1112
1113
  var _startLoadingPilets = (0,piral_base__WEBPACK_IMPORTED_MODULE_2__.startLoadingPilets)(options),
1113
1114
  connect = _startLoadingPilets.connect,
1114
1115
  disconnect = _startLoadingPilets.disconnect;
1116
+ emit('loading-pilets', {
1117
+ options: options
1118
+ });
1115
1119
  var notifier = function notifier(error, pilets, loaded) {
1116
1120
  initialize(!loaded, error, pilets);
1121
+ if (loaded) {
1122
+ emit('loaded-pilets', {
1123
+ pilets: pilets,
1124
+ error: error
1125
+ });
1126
+ }
1117
1127
  };
1118
1128
  connect(notifier);
1119
1129
  return function () {
@@ -6758,12 +6768,12 @@ function installPiralDebug(options) {
6758
6768
  debug: debugApiVersion,
6759
6769
  instance: {
6760
6770
  name: "sample-piral",
6761
- version: "1.6.2-beta.7394",
6771
+ version: "1.6.2-beta.7457",
6762
6772
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
6763
6773
  },
6764
6774
  build: {
6765
- date: "2024-09-10T15:40:38.988Z",
6766
- cli: "1.6.2-beta.7394",
6775
+ date: "2024-09-26T12:21:55.719Z",
6776
+ cli: "1.6.2-beta.7457",
6767
6777
  compat: "1"
6768
6778
  }
6769
6779
  };
@@ -67018,4 +67028,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
67018
67028
 
67019
67029
  /******/ })()
67020
67030
  ;
67021
- //# sourceMappingURL=index.282bb1.js.map
67031
+ //# sourceMappingURL=index.2f9975.js.map