@next-core/editor-bricks-helper 0.48.10 → 0.49.0

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.
@@ -474,14 +474,13 @@
474
474
  }
475
475
 
476
476
  function getAppendingNodesAndEdges(nodeData, nodeUid, templateSourceMap) {
477
- var storyList = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
478
477
  var isRoot = arguments.length > 4 ? arguments[4] : undefined;
479
478
  var nodes = [];
480
479
  var edges = [];
481
480
  var wrapperNode;
482
481
 
483
482
  var walk = (nodeData, currentUid, processedTemplateSet, isTemplateInternalNode, inheritedTemplateRefToUid, layoutType) => {
484
- var _templateSource$child, _storyList$find, _templateSource$child2;
483
+ var _templateSource$child;
485
484
 
486
485
  var builderNode = getBuilderNode(nodeData, currentUid, isTemplateInternalNode);
487
486
  nodes.push(builderNode);
@@ -492,7 +491,7 @@
492
491
 
493
492
  var templateSource;
494
493
 
495
- if (brickUtils.isBrickNode(builderNode) && (!builderNode.brick.includes(".") && builderNode.brick.startsWith("tpl-") && !processedTemplateSet.has(builderNode.brick) && (templateSource = templateSourceMap === null || templateSourceMap === void 0 ? void 0 : templateSourceMap.get(builderNode.brick)) && ((_templateSource$child = templateSource.children) === null || _templateSource$child === void 0 ? void 0 : _templateSource$child.length) > 0 || builderNode.brick.includes(".tpl-") && (templateSource = storyList === null || storyList === void 0 ? void 0 : (_storyList$find = storyList.find(item => item.storyId === builderNode.brick)) === null || _storyList$find === void 0 ? void 0 : _storyList$find.originData) && ((_templateSource$child2 = templateSource.children) === null || _templateSource$child2 === void 0 ? void 0 : _templateSource$child2.length) > 0)) {
494
+ if (brickUtils.isBrickNode(builderNode) && !builderNode.brick.includes(".") && builderNode.brick.startsWith("tpl-") && !processedTemplateSet.has(builderNode.brick) && (templateSource = templateSourceMap === null || templateSourceMap === void 0 ? void 0 : templateSourceMap.get(builderNode.brick)) && ((_templateSource$child = templateSource.children) === null || _templateSource$child === void 0 ? void 0 : _templateSource$child.length) > 0) {
496
495
  if (templateSource.layoutType === "wrapper") {
497
496
  builderNode.layoutType = "wrapper";
498
497
  } // Avoid nesting the same templates.
@@ -2067,11 +2066,7 @@
2067
2066
  tryEditorBricks.push(ANY_ROUTE_EDITOR);
2068
2067
  } else if (brickUtils.isBrickNode(node)) {
2069
2068
  if (node.brick.includes("-")) {
2070
- var _node$brick$split$;
2071
-
2072
- var isWidget = (_node$brick$split$ = node.brick.split(".")[1]) === null || _node$brick$split$ === void 0 ? void 0 : _node$brick$split$.startsWith("tpl-");
2073
2069
  tryEditorBricks.push("".concat(node.brick, "--editor"));
2074
- isWidget && tryEditorBricks.push("editors-of-".concat(node.brick, "--editor"));
2075
2070
  }
2076
2071
 
2077
2072
  if (editor) {
@@ -2213,7 +2208,7 @@
2213
2208
  ref: node.$$isTemplateInternalNode ? undefined : dragRef,
2214
2209
  draggable: !node.$$isTemplateInternalNode,
2215
2210
  className: classNames({
2216
- [styles$2.baseView]: node.brick === "basic-bricks.micro-view" || node.brick === "basic-bricks.micro-app" || node.brick === "basic-bricks.easy-view" || node.brick === "frame-bricks.side-bar"
2211
+ [styles$2.baseView]: node.brick === "basic-bricks.micro-view" || node.brick === "basic-bricks.micro-app" || node.brick === "basic-bricks.easy-view"
2217
2212
  })
2218
2213
  }, /*#__PURE__*/React__default["default"].createElement(brickKit.BrickAsComponent, {
2219
2214
  useBrick: brickConf