kitchen-simulator 4.2.8 → 4.3.0

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.
@@ -23,6 +23,9 @@ export default function (state, action) {
23
23
  case UPDATE_POPUP_OPEN:
24
24
  return Item.updatePopupOpen(state, action.value).updatedState;
25
25
  case SELECT_ITEM:
26
+ state = state.merge({
27
+ sceneHistory: history.historyPush(state.sceneHistory, state.scene)
28
+ });
26
29
  return Item.select(state, action.layerID, action.itemID).updatedState;
27
30
  case SELECT_TOOL_DRAWING_ITEM:
28
31
  state = state.merge({
@@ -26,6 +26,9 @@ function _default(state, action) {
26
26
  case _constants.UPDATE_POPUP_OPEN:
27
27
  return _export.Item.updatePopupOpen(state, action.value).updatedState;
28
28
  case _constants.SELECT_ITEM:
29
+ state = state.merge({
30
+ sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
31
+ });
29
32
  return _export.Item.select(state, action.layerID, action.itemID).updatedState;
30
33
  case _constants.SELECT_TOOL_DRAWING_ITEM:
31
34
  state = state.merge({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "4.2.8",
3
+ "version": "4.3.0",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",