@next-core/editor-bricks-helper 0.37.2 → 0.37.5

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.37.5](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.37.4...@next-core/editor-bricks-helper@0.37.5) (2022-03-22)
7
+
8
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.37.4](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.37.3...@next-core/editor-bricks-helper@0.37.4) (2022-03-21)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * fix snippet add bug ([ad5ebea](https://github.com/easyops-cn/next-core/commit/ad5ebea7e927b6ec59bf89ccdb6dbf6ec2c6bb1c))
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.37.3](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.37.2...@next-core/editor-bricks-helper@0.37.3) (2022-03-18)
26
+
27
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
28
+
29
+
30
+
31
+
32
+
6
33
  ## [0.37.2](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.37.1...@next-core/editor-bricks-helper@0.37.2) (2022-03-15)
7
34
 
8
35
  **Note:** Version bump only for package @next-core/editor-bricks-helper
@@ -858,6 +858,14 @@
858
858
  }
859
859
  }
860
860
 
861
+ redirectSnippetMountPoint(detail) {
862
+ var _detail$nodeDetails;
863
+
864
+ (_detail$nodeDetails = detail.nodeDetails) === null || _detail$nodeDetails === void 0 ? void 0 : _detail$nodeDetails.forEach(item => {
865
+ this.redirectMountPoint(item);
866
+ });
867
+ }
868
+
861
869
  nodeAdd(detail) {
862
870
  this.redirectMountPoint(detail);
863
871
  this.runAddNodeAction(detail);
@@ -890,6 +898,7 @@
890
898
  }
891
899
 
892
900
  snippetApply(detail) {
901
+ this.redirectSnippetMountPoint(detail);
893
902
  var {
894
903
  rootId,
895
904
  nodes,
@@ -955,7 +964,8 @@
955
964
  var {
956
965
  rootId,
957
966
  nodes,
958
- edges
967
+ edges,
968
+ wrapperNode
959
969
  } = this.data;
960
970
  var {
961
971
  flattenNodeDetails
@@ -969,7 +979,8 @@
969
979
  instanceId: found.nodeData.instanceId
970
980
  }) : node;
971
981
  }),
972
- edges
982
+ edges,
983
+ wrapperNode
973
984
  };
974
985
  this.triggerDataChange();
975
986
  }