@next-core/editor-bricks-helper 0.39.9 → 0.39.12

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.39.12](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.39.11...@next-core/editor-bricks-helper@0.39.12) (2022-04-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * support setting targetRef as array ([ec822f3](https://github.com/easyops-cn/next-core/commit/ec822f37f881efe96a06b7fe53af17e6a40c79c6))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.39.11](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.39.10...@next-core/editor-bricks-helper@0.39.11) (2022-04-14)
18
+
19
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.39.10](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.39.9...@next-core/editor-bricks-helper@0.39.10) (2022-04-12)
26
+
27
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
28
+
29
+
30
+
31
+
32
+
6
33
  ## [0.39.9](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.39.8...@next-core/editor-bricks-helper@0.39.9) (2022-04-11)
7
34
 
8
35
  **Note:** Version bump only for package @next-core/editor-bricks-helper
@@ -399,11 +399,13 @@
399
399
  nodesMap.get(targetNodeUid).upstreamNodes.add(node.$$uid);
400
400
  }
401
401
  } else if (handler.targetRef) {
402
- var targetRefNodeUid = targetRefMap.get(handler.targetRef);
402
+ for (var ref of [].concat(handler.targetRef)) {
403
+ var targetRefNodeUid = targetRefMap.get(ref);
403
404
 
404
- if (targetRefNodeUid) {
405
- nodesMap.get(node.$$uid).downstreamNodes.add(targetRefNodeUid);
406
- nodesMap.get(targetRefNodeUid).upstreamNodes.add(node.$$uid);
405
+ if (targetRefNodeUid) {
406
+ nodesMap.get(node.$$uid).downstreamNodes.add(targetRefNodeUid);
407
+ nodesMap.get(targetRefNodeUid).upstreamNodes.add(node.$$uid);
408
+ }
407
409
  }
408
410
  }
409
411