sample-piral 1.8.0-beta.7721 → 1.8.0-beta.7739

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.
@@ -62573,12 +62573,12 @@ function installPiralDebug(options) {
62573
62573
  debug: debugApiVersion,
62574
62574
  instance: {
62575
62575
  name: "sample-piral",
62576
- version: "1.8.0-beta.7721",
62576
+ version: "1.8.0-beta.7739",
62577
62577
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
62578
62578
  },
62579
62579
  build: {
62580
- date: "2024-12-27T00:20:27.635Z",
62581
- cli: "1.8.0-beta.7721",
62580
+ date: "2025-01-13T17:08:23.504Z",
62581
+ cli: "1.8.0-beta.7739",
62582
62582
  compat: "1"
62583
62583
  }
62584
62584
  };
@@ -63105,6 +63105,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
63105
63105
  _this.close();
63106
63106
  }
63107
63107
  };
63108
+ _this.closeOnReload = function () {
63109
+ return _this.close();
63110
+ };
63111
+ window.addEventListener('pilets-reloaded', _this.closeOnReload);
63108
63112
  document.addEventListener('keydown', _this.closeOnEsc);
63109
63113
  return _this;
63110
63114
  }
@@ -63144,6 +63148,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
63144
63148
  value: function close() {
63145
63149
  var _this$parentNode;
63146
63150
  (_this$parentNode = this.parentNode) === null || _this$parentNode === void 0 || _this$parentNode.removeChild(this);
63151
+ window.removeEventListener('pilets-reloaded', this.closeOnReload);
63147
63152
  document.removeEventListener('keydown', this.closeOnEsc);
63148
63153
  }
63149
63154
  }]);
@@ -63167,18 +63172,14 @@ __webpack_require__.r(__webpack_exports__);
63167
63172
  /* harmony export */ });
63168
63173
  var debugRouteCache = {
63169
63174
  active: 0,
63170
- paths: [],
63171
- refresh: undefined
63175
+ paths: []
63172
63176
  };
63173
63177
  function freezeRouteRefresh() {
63174
63178
  debugRouteCache.active++;
63175
63179
  return function () {
63176
63180
  debugRouteCache.active--;
63177
63181
  if (!debugRouteCache.active) {
63178
- var _debugRouteCache$refr;
63179
- (_debugRouteCache$refr = debugRouteCache.refresh) === null || _debugRouteCache$refr === void 0 || _debugRouteCache$refr.call(debugRouteCache, function (s) {
63180
- return s + 1;
63181
- });
63182
+ window.dispatchEvent(new CustomEvent('pilets-reloaded'));
63182
63183
  }
63183
63184
  };
63184
63185
  }
@@ -63309,9 +63310,14 @@ function useDebugRouteFilter(paths) {
63309
63310
  _ = _useState2[0],
63310
63311
  triggerChange = _useState2[1];
63311
63312
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
63312
- _routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.refresh = triggerChange;
63313
+ var handler = function handler() {
63314
+ triggerChange(function (s) {
63315
+ return s + 1;
63316
+ });
63317
+ };
63318
+ window.addEventListener('pilets-reloaded', handler);
63313
63319
  return function () {
63314
- _routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.refresh = undefined;
63320
+ window.removeEventListener('pilets-reloaded', handler);
63315
63321
  };
63316
63322
  }, []);
63317
63323
  if (!_routeRefresh__WEBPACK_IMPORTED_MODULE_1__.debugRouteCache.active) {
@@ -67033,4 +67039,4 @@ root.render(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral_
67033
67039
 
67034
67040
  /******/ })()
67035
67041
  ;
67036
- //# sourceMappingURL=index.594b45.js.map
67042
+ //# sourceMappingURL=index.d42d63.js.map