@next-core/editor-bricks-helper 0.45.1 → 0.46.2
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 +27 -0
- package/dist/index.bundle.js +8 -3
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +8 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/interfaces.d.ts +2 -1
- package/package.json +3 -3
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.2](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.46.1...@next-core/editor-bricks-helper@0.46.2) (2022-08-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/editor-bricks-helper
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @next-core/editor-bricks-helper
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [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)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* update workbenchTree Drag move ([2a01659](https://github.com/easyops-cn/next-core/commit/2a016591ff4d3ba170fd75bea92bebb24a0f6b8d))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [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)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @next-core/editor-bricks-helper
|
package/dist/index.bundle.js
CHANGED
|
@@ -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
|
/**
|