@next-core/brick-kit 2.126.2 → 2.127.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,36 @@
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
+ ## [2.127.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.127.1...@next-core/brick-kit@2.127.2) (2022-08-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * ignore emitting if devtools is not presented ([9833e81](https://github.com/easyops-cn/next-core/commit/9833e81051f95e140ccd86940a7e6de5a7e526ca))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.127.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.127.0...@next-core/brick-kit@2.127.1) (2022-08-10)
18
+
19
+ **Note:** Version bump only for package @next-core/brick-kit
20
+
21
+
22
+
23
+
24
+
25
+ # [2.127.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.126.2...@next-core/brick-kit@2.127.0) (2022-08-10)
26
+
27
+
28
+ ### Features
29
+
30
+ * **brick-kit:** 增加两个cmdb模板 ([e53dca1](https://github.com/easyops-cn/next-core/commit/e53dca14ac2b00ec4cf4a13011c2e7b555bb18b2))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [2.126.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.126.1...@next-core/brick-kit@2.126.2) (2022-08-09)
7
37
 
8
38
 
@@ -1136,10 +1136,16 @@
1136
1136
 
1137
1137
  /* istanbul ignore next */
1138
1138
  function devtoolsHookEmit(type, payload) {
1139
+ var devtools = getDevHook();
1140
+
1141
+ if (!devtools) {
1142
+ return;
1143
+ }
1144
+
1139
1145
  var emit = () => {
1140
- var _getDevHook, _getDevHook$emit;
1146
+ var _devtools$emit;
1141
1147
 
1142
- (_getDevHook = getDevHook()) === null || _getDevHook === void 0 ? void 0 : (_getDevHook$emit = _getDevHook.emit) === null || _getDevHook$emit === void 0 ? void 0 : _getDevHook$emit.call(_getDevHook, {
1148
+ (_devtools$emit = devtools.emit) === null || _devtools$emit === void 0 ? void 0 : _devtools$emit.call(devtools, {
1143
1149
  type,
1144
1150
  payload
1145
1151
  });
@@ -1195,9 +1201,9 @@
1195
1201
  }
1196
1202
 
1197
1203
  function restoreDehydrated(value) {
1198
- var _getDevHook$restoreDe, _getDevHook2;
1204
+ var _getDevHook$restoreDe, _getDevHook;
1199
1205
 
1200
- return (_getDevHook$restoreDe = (_getDevHook2 = getDevHook()) === null || _getDevHook2 === void 0 ? void 0 : _getDevHook2.restoreDehydrated(value)) !== null && _getDevHook$restoreDe !== void 0 ? _getDevHook$restoreDe : value;
1206
+ return (_getDevHook$restoreDe = (_getDevHook = getDevHook()) === null || _getDevHook === void 0 ? void 0 : _getDevHook.restoreDehydrated(value)) !== null && _getDevHook$restoreDe !== void 0 ? _getDevHook$restoreDe : value;
1201
1207
  }
1202
1208
 
1203
1209
  function getItemFactory(storageType) {
@@ -10640,7 +10646,7 @@
10640
10646
 
10641
10647
  yield _this6.resolver.resolve(brickConf, brick, context);
10642
10648
  var expandedBrickConf = brickConf;
10643
- var isBaseLayout = ["base-layout.tpl-homepage-base-module", "base-layout.tpl-base-page-module"].includes(tplTagName);
10649
+ var isBaseLayout = ["base-layout.tpl-homepage-base-module", "base-layout.tpl-base-page-module", "base-layout.tpl-homepage-base-module-cmdb", "base-layout.tpl-base-page-module-cmdb"].includes(tplTagName);
10644
10650
 
10645
10651
  if (tplTagName && (!isBaseLayout || _this6.kernel.getFeatureFlags()["support-ui-8.0-base-layout"] && isBaseLayout)) {
10646
10652
  var _customTemplateRegist;
@@ -11791,7 +11797,7 @@
11791
11797
  }
11792
11798
  }
11793
11799
 
11794
- layoutType = bricks.some(brick => ["base-layout.tpl-base-page-module", "base-layout.tpl-homepage-base-module"].includes(brick)) && layoutType === "business" && !_this3.featureFlags["support-ui-8.0-base-layout"] ? "console" : layoutType;
11800
+ layoutType = bricks.some(brick => ["base-layout.tpl-base-page-module", "base-layout.tpl-homepage-base-module", "base-layout.tpl-homepage-base-module-cmdb", "base-layout.tpl-base-page-module-cmdb"].includes(brick)) && layoutType === "business" && !_this3.featureFlags["support-ui-8.0-base-layout"] ? "console" : layoutType;
11795
11801
  var mountRoutesResult = {
11796
11802
  main: [],
11797
11803
  menuInBg: [],