@next-core/brick-kit 2.121.3 → 2.122.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 CHANGED
@@ -3,6 +3,17 @@
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.122.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.121.3...@next-core/brick-kit@2.122.0) (2022-06-16)
7
+
8
+
9
+ ### Features
10
+
11
+ * 增加开关控制6.0或8.0UI的切换 ([54007a4](https://github.com/easyops-cn/next-core/commit/54007a43d81e97d0eb62efd28266adc2a2ccd631))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.121.3](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.121.2...@next-core/brick-kit@2.121.3) (2022-06-10)
7
18
 
8
19
  **Note:** Version bump only for package @next-core/brick-kit
@@ -9596,8 +9596,9 @@
9596
9596
 
9597
9597
  yield _this6.resolver.resolve(brickConf, brick, context);
9598
9598
  var expandedBrickConf = brickConf;
9599
+ var isBaseLayout = ["base-layout.tpl-homepage-base-module", "base-layout.tpl-base-page-module"].includes(tplTagName);
9599
9600
 
9600
- if (tplTagName) {
9601
+ if (tplTagName && (!isBaseLayout || _this6.kernel.getFeatureFlags()["support-ui-8.0-base-layout"] && isBaseLayout)) {
9601
9602
  var _customTemplateRegist;
9602
9603
 
9603
9604
  yield _this6.preFetchMenu((_customTemplateRegist = customTemplateRegistry.get(tplTagName)) === null || _customTemplateRegist === void 0 ? void 0 : _customTemplateRegist.bricks);
@@ -10573,14 +10574,20 @@
10573
10574
  if (storyboard) {
10574
10575
  var _currentApp$breadcrum, _currentApp$breadcrum2;
10575
10576
 
10577
+ var {
10578
+ bricks,
10579
+ customApis
10580
+ } = brickUtils.scanStoryboard(storyboard);
10581
+
10576
10582
  if (appChanged && currentApp.id && isLoggedIn()) {
10577
- var usedCustomApis = brickUtils.mapCustomApisToNameAndNamespace(brickUtils.scanCustomApisInStoryboard(storyboard));
10583
+ var usedCustomApis = brickUtils.mapCustomApisToNameAndNamespace(customApis);
10578
10584
 
10579
10585
  if (usedCustomApis !== null && usedCustomApis !== void 0 && usedCustomApis.length) {
10580
10586
  yield _this3.kernel.loadMicroAppApiOrchestrationAsync(usedCustomApis);
10581
10587
  }
10582
10588
  }
10583
10589
 
10590
+ 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;
10584
10591
  var mountRoutesResult = {
10585
10592
  main: [],
10586
10593
  menuInBg: [],