@next-core/editor-bricks-helper 0.37.3 → 0.37.6
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/dist/index.esm.js
CHANGED
|
@@ -856,6 +856,14 @@ class BuilderDataManager {
|
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
|
|
859
|
+
redirectSnippetMountPoint(detail) {
|
|
860
|
+
var _detail$nodeDetails;
|
|
861
|
+
|
|
862
|
+
(_detail$nodeDetails = detail.nodeDetails) === null || _detail$nodeDetails === void 0 ? void 0 : _detail$nodeDetails.forEach(item => {
|
|
863
|
+
this.redirectMountPoint(item);
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
|
|
859
867
|
nodeAdd(detail) {
|
|
860
868
|
this.redirectMountPoint(detail);
|
|
861
869
|
this.runAddNodeAction(detail);
|
|
@@ -888,6 +896,7 @@ class BuilderDataManager {
|
|
|
888
896
|
}
|
|
889
897
|
|
|
890
898
|
snippetApply(detail) {
|
|
899
|
+
this.redirectSnippetMountPoint(detail);
|
|
891
900
|
var {
|
|
892
901
|
rootId,
|
|
893
902
|
nodes,
|
|
@@ -953,7 +962,8 @@ class BuilderDataManager {
|
|
|
953
962
|
var {
|
|
954
963
|
rootId,
|
|
955
964
|
nodes,
|
|
956
|
-
edges
|
|
965
|
+
edges,
|
|
966
|
+
wrapperNode
|
|
957
967
|
} = this.data;
|
|
958
968
|
var {
|
|
959
969
|
flattenNodeDetails
|
|
@@ -967,7 +977,8 @@ class BuilderDataManager {
|
|
|
967
977
|
instanceId: found.nodeData.instanceId
|
|
968
978
|
}) : node;
|
|
969
979
|
}),
|
|
970
|
-
edges
|
|
980
|
+
edges,
|
|
981
|
+
wrapperNode
|
|
971
982
|
};
|
|
972
983
|
this.triggerDataChange();
|
|
973
984
|
}
|