@next-core/editor-bricks-helper 0.36.1 → 0.37.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/CHANGELOG.md +12 -0
- package/dist/index.bundle.js +4 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1512,7 +1512,11 @@ function _getEditorBrick() {
|
|
|
1512
1512
|
tryEditorBricks.push(ANY_ROUTE_EDITOR);
|
|
1513
1513
|
} else if (isBrickNode(node)) {
|
|
1514
1514
|
if (node.brick.includes("-")) {
|
|
1515
|
+
var _node$brick$split$;
|
|
1516
|
+
|
|
1517
|
+
var isWidget = (_node$brick$split$ = node.brick.split(".")[1]) === null || _node$brick$split$ === void 0 ? void 0 : _node$brick$split$.startsWith("tpl-");
|
|
1515
1518
|
tryEditorBricks.push("".concat(node.brick, "--editor"));
|
|
1519
|
+
isWidget && tryEditorBricks.push("editors-of-".concat(node.brick, "--editor"));
|
|
1516
1520
|
}
|
|
1517
1521
|
|
|
1518
1522
|
if (editor) {
|