formeo 5.1.2 → 5.1.3

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.
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.1.1
4
+ Version: 5.1.2
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -6064,7 +6064,7 @@ Author: Draggable https://draggable.io
6064
6064
  var name$1, version$2, type, main, module$1, unpkg, exports$1, files, homepage, repository, author, contributors, bugs, description, keywords, ignore, config, scripts, devDependencies, dependencies, release, commitlint, package_default;
6065
6065
  var init_package = __esmMin((() => {
6066
6066
  name$1 = "formeo";
6067
- version$2 = "5.1.1";
6067
+ version$2 = "5.1.2";
6068
6068
  type = "module";
6069
6069
  main = "dist/formeo.cjs.js";
6070
6070
  module$1 = "dist/formeo.es.js";
@@ -16671,7 +16671,9 @@ Author: Draggable https://draggable.io
16671
16671
  }
16672
16672
  const { controlData: { meta: { id: metaId }, ...elementData } } = Controls$1.get(item.id);
16673
16673
  set(elementData, "config.controlId", metaId);
16674
- const controlType = metaId.startsWith("layout-") ? metaId.replace(/^layout-/, "") : "field";
16674
+ const isLayoutControl = metaId.startsWith("layout-");
16675
+ const controlType = isLayoutControl ? metaId.replace(/^layout-/, "") : "field";
16676
+ const componentData = isLayoutControl ? {} : elementData;
16675
16677
  const depth = get({
16676
16678
  stage: {
16677
16679
  row: 0,
@@ -16692,7 +16694,7 @@ Author: Draggable https://draggable.io
16692
16694
  }, `${this.name}.${controlType}`);
16693
16695
  const action = depthMap.get(depth)();
16694
16696
  dom.remove(item);
16695
- return action(elementData, newIndex);
16697
+ return action(componentData, newIndex);
16696
16698
  },
16697
16699
  row: () => {
16698
16700
  return (depthMap.get({