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

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,34 @@
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.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
+
8
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.37.1](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.37.0...@next-core/editor-bricks-helper@0.37.1) (2022-03-15)
15
+
16
+ **Note:** Version bump only for package @next-core/editor-bricks-helper
17
+
18
+
19
+
20
+
21
+
22
+ # [0.37.0](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.36.1...@next-core/editor-bricks-helper@0.37.0) (2022-03-09)
23
+
24
+
25
+ ### Features
26
+
27
+ * support get widget editor brick ([ca88ed4](https://github.com/easyops-cn/next-core/commit/ca88ed4d440472229ff0b760625eba3b1dbd923e))
28
+ * update unit test ([f9760ab](https://github.com/easyops-cn/next-core/commit/f9760abcff5c2e0375ab968145630d20035232bc))
29
+
30
+
31
+
32
+
33
+
6
34
  ## [0.36.1](https://github.com/easyops-cn/next-core/compare/@next-core/editor-bricks-helper@0.36.0...@next-core/editor-bricks-helper@0.36.1) (2022-03-09)
7
35
 
8
36
 
@@ -1514,7 +1514,11 @@
1514
1514
  tryEditorBricks.push(ANY_ROUTE_EDITOR);
1515
1515
  } else if (brickUtils.isBrickNode(node)) {
1516
1516
  if (node.brick.includes("-")) {
1517
+ var _node$brick$split$;
1518
+
1519
+ var isWidget = (_node$brick$split$ = node.brick.split(".")[1]) === null || _node$brick$split$ === void 0 ? void 0 : _node$brick$split$.startsWith("tpl-");
1517
1520
  tryEditorBricks.push("".concat(node.brick, "--editor"));
1521
+ isWidget && tryEditorBricks.push("editors-of-".concat(node.brick, "--editor"));
1518
1522
  }
1519
1523
 
1520
1524
  if (editor) {