@micromag/editor 0.3.314 → 0.3.315
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 +3 -3
- package/lib/index.js +3 -3
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -2657,12 +2657,12 @@ var SortableTree = function SortableTree(_ref2) {
|
|
|
2657
2657
|
parentId: parentId
|
|
2658
2658
|
});
|
|
2659
2659
|
var sortedItems = arrayMove(clonedItems, activeIndex, overIndex);
|
|
2660
|
-
var newItems = buildTree(sortedItems);
|
|
2661
|
-
|
|
2660
|
+
var newItems = buildTree(sortedItems); // console.log('drag endd', sortedItems, newItems);
|
|
2661
|
+
|
|
2662
2662
|
setItems(newItems);
|
|
2663
2663
|
|
|
2664
2664
|
if (onChange !== null) {
|
|
2665
|
-
console.log('hell is flatss', newItems);
|
|
2665
|
+
// console.log('hell is flatss', newItems);
|
|
2666
2666
|
onChange((newItems || []).map(function (_ref18) {
|
|
2667
2667
|
var itemId = _ref18.id,
|
|
2668
2668
|
_ref18$children = _ref18.children,
|
package/lib/index.js
CHANGED
|
@@ -2677,12 +2677,12 @@ var SortableTree = function SortableTree(_ref2) {
|
|
|
2677
2677
|
parentId: parentId
|
|
2678
2678
|
});
|
|
2679
2679
|
var sortedItems = sortable.arrayMove(clonedItems, activeIndex, overIndex);
|
|
2680
|
-
var newItems = buildTree(sortedItems);
|
|
2681
|
-
|
|
2680
|
+
var newItems = buildTree(sortedItems); // console.log('drag endd', sortedItems, newItems);
|
|
2681
|
+
|
|
2682
2682
|
setItems(newItems);
|
|
2683
2683
|
|
|
2684
2684
|
if (onChange !== null) {
|
|
2685
|
-
console.log('hell is flatss', newItems);
|
|
2685
|
+
// console.log('hell is flatss', newItems);
|
|
2686
2686
|
onChange((newItems || []).map(function (_ref18) {
|
|
2687
2687
|
var itemId = _ref18.id,
|
|
2688
2688
|
_ref18$children = _ref18.children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.315",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "b13e06c3a4b0bf5061e3a59c31857057210ca05a"
|
|
85
85
|
}
|