kitchen-simulator 5.10.11-react.18 → 5.10.12-react.18

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.
@@ -332,26 +332,21 @@ var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
332
332
  var propsSnapshot = this.props;
333
333
  var type = (externalEvent === null || externalEvent === void 0 ? void 0 : externalEvent.type) || 'unknown';
334
334
  if (this._scheduledExternalEventRaf) {
335
- cancelAnimationFrame(this._scheduledExternalEventRaf);
335
+ clearTimeout(this._scheduledExternalEventRaf);
336
336
  this._scheduledExternalEventRaf = null;
337
337
  }
338
- this._scheduledExternalEventRaf = requestAnimationFrame(function () {
338
+ this._scheduledExternalEventRaf = setTimeout(function () {
339
339
  _this2._scheduledExternalEventRaf = null;
340
340
  console.time("[handleExternalEvent] ".concat(type));
341
341
  try {
342
- // IMPORTANT: use snapshot so handler sees matching props
343
342
  handleExternalEvent(propsSnapshot);
344
343
  } catch (e) {
345
344
  console.error('[LiteKitchenConfigurator] handleExternalEvent crashed', e);
346
345
  } finally {
347
346
  console.timeEnd("[handleExternalEvent] ".concat(type));
348
-
349
- // clear flag in a macrotask so we definitely yield once
350
- setTimeout(function () {
351
- _this2._handlingExternalEvent = false;
352
- }, 0);
347
+ _this2._handlingExternalEvent = false;
353
348
  }
354
- });
349
+ }, 0);
355
350
  }
356
351
  }
357
352
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "5.10.11-react.18",
3
+ "version": "5.10.12-react.18",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "module": "es/index.js",