@measured/puck 0.10.0-canary.8d47fd7 → 0.10.0-canary.c276b23

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -113,7 +113,7 @@ type ArrayState = {
113
113
  };
114
114
  type UiState = {
115
115
  leftSideBarVisible: boolean;
116
- itemSelector?: ItemSelector | null;
116
+ itemSelector: ItemSelector | null;
117
117
  arrayState: Record<string, ArrayState | undefined>;
118
118
  };
119
119
  type AppState = {
package/dist/index.js CHANGED
@@ -3179,7 +3179,8 @@ var defaultAppState = {
3179
3179
  data: { content: [], root: { title: "" } },
3180
3180
  ui: {
3181
3181
  leftSideBarVisible: true,
3182
- arrayState: {}
3182
+ arrayState: {},
3183
+ itemSelector: null
3183
3184
  }
3184
3185
  };
3185
3186
  var appContext = (0, import_react24.createContext)({
@@ -4015,6 +4016,8 @@ var _recordHistory = ({
4015
4016
  record,
4016
4017
  dispatch
4017
4018
  }) => {
4019
+ if (JSON.stringify(snapshot) === JSON.stringify(newSnapshot))
4020
+ return;
4018
4021
  record({
4019
4022
  forward: () => {
4020
4023
  dispatch({ type: "set", state: newSnapshot });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.10.0-canary.8d47fd7",
3
+ "version": "0.10.0-canary.c276b23",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",