@measured/puck 0.16.0-canary.257e4be → 0.16.0-canary.28a62c5

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.
package/dist/index.js CHANGED
@@ -5046,7 +5046,10 @@ var insertComponent = (componentType, zone, index, {
5046
5046
  const insertedData = insertAction(state.data, insertActionData, config);
5047
5047
  dispatch(__spreadProps(__spreadValues({}, insertActionData), {
5048
5048
  // Dispatch insert rather set, as user's may rely on this via onAction
5049
- recordHistory: false
5049
+ // We must always record history here so the insert is added to user history
5050
+ // If the user has defined a resolveData method, they will end up with 2 history
5051
+ // entries on insert - one for the initial insert, and one when the data resolves
5052
+ recordHistory: true
5050
5053
  }));
5051
5054
  const itemSelector = {
5052
5055
  index,
package/dist/index.mjs CHANGED
@@ -4969,7 +4969,10 @@ var insertComponent = (componentType, zone, index, {
4969
4969
  const insertedData = insertAction(state.data, insertActionData, config);
4970
4970
  dispatch(__spreadProps(__spreadValues({}, insertActionData), {
4971
4971
  // Dispatch insert rather set, as user's may rely on this via onAction
4972
- recordHistory: false
4972
+ // We must always record history here so the insert is added to user history
4973
+ // If the user has defined a resolveData method, they will end up with 2 history
4974
+ // entries on insert - one for the initial insert, and one when the data resolves
4975
+ recordHistory: true
4973
4976
  }));
4974
4977
  const itemSelector = {
4975
4978
  index,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.16.0-canary.257e4be",
3
+ "version": "0.16.0-canary.28a62c5",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",