@micromag/editor 0.3.312 → 0.3.313

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/es/index.js CHANGED
@@ -1823,12 +1823,9 @@ function buildTree(flattenedItems) {
1823
1823
 
1824
1824
  nodes[id] = {
1825
1825
  id: id,
1826
- children: children,
1827
- index: indexes[parentId]
1826
+ children: children
1828
1827
  };
1829
- parent.children.push(_objectSpread(_objectSpread({}, item), {}, {
1830
- index: indexes[parentId]
1831
- }));
1828
+ parent.children.push(_objectSpread({}, item));
1832
1829
  }
1833
1830
  } catch (err) {
1834
1831
  _iterator.e(err);
@@ -2707,7 +2704,10 @@ var SortableTree = function SortableTree(_ref2) {
2707
2704
  });
2708
2705
  }, [setItems, setProperty]);
2709
2706
  return /*#__PURE__*/React.createElement(DndContext, {
2710
- announcements: announcements,
2707
+ accessibility: {
2708
+ announcements: announcements
2709
+ } // announcements={announcements}
2710
+ ,
2711
2711
  sensors: sensors,
2712
2712
  collisionDetection: closestCenter,
2713
2713
  measuring: measuring,
package/lib/index.js CHANGED
@@ -1843,12 +1843,9 @@ function buildTree(flattenedItems) {
1843
1843
 
1844
1844
  nodes[id] = {
1845
1845
  id: id,
1846
- children: children,
1847
- index: indexes[parentId]
1846
+ children: children
1848
1847
  };
1849
- parent.children.push(_objectSpread__default["default"](_objectSpread__default["default"]({}, item), {}, {
1850
- index: indexes[parentId]
1851
- }));
1848
+ parent.children.push(_objectSpread__default["default"]({}, item));
1852
1849
  }
1853
1850
  } catch (err) {
1854
1851
  _iterator.e(err);
@@ -2727,7 +2724,10 @@ var SortableTree = function SortableTree(_ref2) {
2727
2724
  });
2728
2725
  }, [setItems, setProperty]);
2729
2726
  return /*#__PURE__*/React__default["default"].createElement(core$1.DndContext, {
2730
- announcements: announcements,
2727
+ accessibility: {
2728
+ announcements: announcements
2729
+ } // announcements={announcements}
2730
+ ,
2731
2731
  sensors: sensors,
2732
2732
  collisionDetection: core$1.closestCenter,
2733
2733
  measuring: measuring,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/editor",
3
- "version": "0.3.312",
3
+ "version": "0.3.313",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "83fc76b140ec67d7fcda4879f955c768e6a5c4d7"
84
+ "gitHead": "dfd750df11bb0f5141358069679da991694bc886"
85
85
  }