@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.
- package/dist/index.bundle.js +3 -8
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +3 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -472,14 +472,13 @@ function getBuilderNode(nodeData, nodeUid, isTemplateInternalNode) {
|
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
function getAppendingNodesAndEdges(nodeData, nodeUid, templateSourceMap) {
|
|
475
|
-
var storyList = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
476
475
|
var isRoot = arguments.length > 4 ? arguments[4] : undefined;
|
|
477
476
|
var nodes = [];
|
|
478
477
|
var edges = [];
|
|
479
478
|
var wrapperNode;
|
|
480
479
|
|
|
481
480
|
var walk = (nodeData, currentUid, processedTemplateSet, isTemplateInternalNode, inheritedTemplateRefToUid, layoutType) => {
|
|
482
|
-
var _templateSource$child
|
|
481
|
+
var _templateSource$child;
|
|
483
482
|
|
|
484
483
|
var builderNode = getBuilderNode(nodeData, currentUid, isTemplateInternalNode);
|
|
485
484
|
nodes.push(builderNode);
|
|
@@ -490,7 +489,7 @@ function getAppendingNodesAndEdges(nodeData, nodeUid, templateSourceMap) {
|
|
|
490
489
|
|
|
491
490
|
var templateSource;
|
|
492
491
|
|
|
493
|
-
if (isBrickNode(builderNode) &&
|
|
492
|
+
if (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) {
|
|
494
493
|
if (templateSource.layoutType === "wrapper") {
|
|
495
494
|
builderNode.layoutType = "wrapper";
|
|
496
495
|
} // Avoid nesting the same templates.
|
|
@@ -2065,11 +2064,7 @@ function _getEditorBrick() {
|
|
|
2065
2064
|
tryEditorBricks.push(ANY_ROUTE_EDITOR);
|
|
2066
2065
|
} else if (isBrickNode(node)) {
|
|
2067
2066
|
if (node.brick.includes("-")) {
|
|
2068
|
-
var _node$brick$split$;
|
|
2069
|
-
|
|
2070
|
-
var isWidget = (_node$brick$split$ = node.brick.split(".")[1]) === null || _node$brick$split$ === void 0 ? void 0 : _node$brick$split$.startsWith("tpl-");
|
|
2071
2067
|
tryEditorBricks.push("".concat(node.brick, "--editor"));
|
|
2072
|
-
isWidget && tryEditorBricks.push("editors-of-".concat(node.brick, "--editor"));
|
|
2073
2068
|
}
|
|
2074
2069
|
|
|
2075
2070
|
if (editor) {
|
|
@@ -2211,7 +2206,7 @@ function EditorBrickAsComponent(_ref) {
|
|
|
2211
2206
|
ref: node.$$isTemplateInternalNode ? undefined : dragRef,
|
|
2212
2207
|
draggable: !node.$$isTemplateInternalNode,
|
|
2213
2208
|
className: classNames({
|
|
2214
|
-
[styles$2.baseView]: node.brick === "basic-bricks.micro-view" || node.brick === "basic-bricks.micro-app" || node.brick === "basic-bricks.easy-view"
|
|
2209
|
+
[styles$2.baseView]: node.brick === "basic-bricks.micro-view" || node.brick === "basic-bricks.micro-app" || node.brick === "basic-bricks.easy-view"
|
|
2215
2210
|
})
|
|
2216
2211
|
}, /*#__PURE__*/React.createElement(BrickAsComponent, {
|
|
2217
2212
|
useBrick: brickConf
|