@next-core/editor-bricks-helper 0.45.0 → 0.46.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.46.1](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.46.0...@next-core/editor-bricks-helper@0.46.1) (2022-08-10)
7
+
8
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
9
+
10
+
11
+
12
+
13
+
14
+ # [0.46.0](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.45.1...@next-core/editor-bricks-helper@0.46.0) (2022-08-10)
15
+
16
+
17
+ ### Features
18
+
19
+ * update workbenchTree Drag move ([2a01659](https://github.com/easyops-cn/next-core/commit/2a016591ff4d3ba170fd75bea92bebb24a0f6b8d))
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.45.1](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.45.0...@next-core/editor-bricks-helper@0.45.1) (2022-08-09)
26
+
27
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
28
+
29
+
30
+
31
+
32
+
6
33
  # [0.45.0](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.44.1...@next-core/editor-bricks-helper@0.45.0) (2022-08-09)
7
34
 
8
35
 
@@ -1340,6 +1340,8 @@
1340
1340
  dragStatus
1341
1341
  } = detail;
1342
1342
  var nodeData = nodes.find(item => item.$$uid === dragNodeUid);
1343
+ var originParentUid = edges.find(edge => edge.child === nodeData.$$uid).parent;
1344
+ var originParentNode = nodes.find(node => node.$$uid === originParentUid);
1343
1345
  var {
1344
1346
  parentUid,
1345
1347
  parnetNodeData,
@@ -1373,15 +1375,18 @@
1373
1375
  });
1374
1376
  this.triggerDataChange();
1375
1377
  this.eventTarget.dispatchEvent(new CustomEvent(BuilderInternalEventType.WORKBENCH_TREE_NODE_MOVE, {
1376
- detail: {
1378
+ detail: _objectSpread__default["default"](_objectSpread__default["default"]({
1377
1379
  nodeUid: dragNodeUid,
1378
1380
  nodeInstanceId: nodeData.instanceId,
1379
- nodeIds,
1381
+ nodeIds
1382
+ }, originParentNode.instanceId !== parnetNodeData.instanceId ? {
1380
1383
  nodeData: {
1381
1384
  parent: parnetNodeData.instanceId,
1382
1385
  mountPoint: mountPoint
1383
1386
  }
1384
- }
1387
+ } : {}), {}, {
1388
+ objectId: nodeData["_object_id"]
1389
+ })
1385
1390
  }));
1386
1391
  }
1387
1392
  /**