@next-core/editor-bricks-helper 0.43.0 → 0.44.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.44.1](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.44.0...@next-core/editor-bricks-helper@0.44.1) (2022-08-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/editor-bricks-helper
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.44.0](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.43.1...@next-core/editor-bricks-helper@0.44.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* support updateNode update edges ([0db8809](https://github.com/easyops-cn/next-core/commit/0db880952e8a92bc0dee4453fdd3422a740c23af))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.43.1](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.43.0...@next-core/editor-bricks-helper@0.43.1) (2022-08-03)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @next-core/editor-bricks-helper
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [0.43.0](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.42.26...@next-core/editor-bricks-helper@0.43.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -918,6 +918,7 @@
|
|
|
918
918
|
edges,
|
|
919
919
|
wrapperNode
|
|
920
920
|
} = this.data;
|
|
921
|
+
var updateNode = nodes.find(item => item.instanceId === instanceId);
|
|
921
922
|
var newNodes = nodes.map(item => {
|
|
922
923
|
if (item.instanceId === instanceId) {
|
|
923
924
|
return _objectSpread__default["default"](_objectSpread__default["default"]({}, item), detail);
|
|
@@ -925,10 +926,19 @@
|
|
|
925
926
|
|
|
926
927
|
return item;
|
|
927
928
|
});
|
|
929
|
+
var newEdges = detail.mountPoint === undefined || detail.mountPoint === null ? edges : edges.map(item => {
|
|
930
|
+
if (item.child === updateNode.$$uid) {
|
|
931
|
+
return _objectSpread__default["default"](_objectSpread__default["default"]({}, item), {}, {
|
|
932
|
+
mountPoint: detail.mountPoint
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
return item;
|
|
937
|
+
});
|
|
928
938
|
this.data = {
|
|
929
939
|
rootId,
|
|
930
940
|
nodes: newNodes,
|
|
931
|
-
edges,
|
|
941
|
+
edges: newEdges,
|
|
932
942
|
wrapperNode
|
|
933
943
|
};
|
|
934
944
|
this.eventTarget.dispatchEvent(new CustomEvent(BuilderInternalEventType.NODE_UPDATE, {
|