@next-core/brick-kit 2.121.3 → 2.122.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 +22 -45
- package/dist/index.bundle.js +10 -17
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +11 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/LocationContext.d.ts.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,102 +3,79 @@
|
|
|
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.
|
|
6
|
+
## [2.122.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.122.1...@next-core/brick-kit@2.122.2) (2022-06-24)
|
|
7
7
|
|
|
8
|
-
**Note:** Version bump only for package @next-core/brick-kit
|
|
9
8
|
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* 对于任意布局,在路由跳转的时候都应该重置浏览器标题 ([1b74aef](https://github.com/easyops-cn/next-core/commit/1b74aefd3689ede050bde022e5bf6c3cc0b6f456))
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
|
|
14
|
-
## [2.121.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.121.1...@next-core/brick-kit@2.121.2) (2022-06-10)
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
## [2.122.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.122.0...@next-core/brick-kit@2.122.1) (2022-06-23)
|
|
17
18
|
|
|
19
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
18
20
|
|
|
21
|
+
# [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)
|
|
19
22
|
|
|
23
|
+
### Features
|
|
20
24
|
|
|
25
|
+
- 增加开关控制 6.0 或 8.0UI 的切换 ([54007a4](https://github.com/easyops-cn/next-core/commit/54007a43d81e97d0eb62efd28266adc2a2ccd631))
|
|
21
26
|
|
|
22
|
-
## [2.121.
|
|
27
|
+
## [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)
|
|
23
28
|
|
|
24
29
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
25
30
|
|
|
31
|
+
## [2.121.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.121.1...@next-core/brick-kit@2.121.2) (2022-06-10)
|
|
26
32
|
|
|
33
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
27
34
|
|
|
35
|
+
## [2.121.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.121.0...@next-core/brick-kit@2.121.1) (2022-06-06)
|
|
28
36
|
|
|
37
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
29
38
|
|
|
30
39
|
# [2.121.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.120.1...@next-core/brick-kit@2.121.0) (2022-06-01)
|
|
31
40
|
|
|
32
|
-
|
|
33
41
|
### Features
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
- **MessageDispatcher:** call error callbacks on WS error event ([d89a993](https://github.com/easyops-cn/next-core/commit/d89a993347107b8bc15e2e54cce68a620374d451))
|
|
40
44
|
|
|
41
45
|
## [2.120.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.120.0...@next-core/brick-kit@2.120.1) (2022-05-27)
|
|
42
46
|
|
|
43
|
-
|
|
44
47
|
### Bug Fixes
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
- theme dark ([8ff6958](https://github.com/easyops-cn/next-core/commit/8ff6958e134c199e58ec4e026003839dcbc5ea57))
|
|
50
|
+
- 兼容 message 事件传多个参数的情况 ([fbde026](https://github.com/easyops-cn/next-core/commit/fbde026b51f8bd2d4a83b3c2ac3ac93bf6515179))
|
|
51
|
+
- 支持 message.\*传任意多个参数 ([abbfaeb](https://github.com/easyops-cn/next-core/commit/abbfaeb4752b408005a82e6a6cf57505b9d3aeb8))
|
|
53
52
|
|
|
54
53
|
# [2.120.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.119.1...@next-core/brick-kit@2.120.0) (2022-05-26)
|
|
55
54
|
|
|
56
|
-
|
|
57
55
|
### Features
|
|
58
56
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
- support lifeCycle.onScrollIntoView ([4e3a4ec](https://github.com/easyops-cn/next-core/commit/4e3a4ec99a78b312c6efe595d82e214a843458d0))
|
|
64
58
|
|
|
65
59
|
## [2.119.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.119.0...@next-core/brick-kit@2.119.1) (2022-05-13)
|
|
66
60
|
|
|
67
61
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
68
62
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
63
|
# [2.119.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.118.7...@next-core/brick-kit@2.119.0) (2022-05-11)
|
|
74
64
|
|
|
75
|
-
|
|
76
65
|
### Features
|
|
77
66
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
67
|
+
- **mock:** add note ([74c0031](https://github.com/easyops-cn/next-core/commit/74c0031c81ded97014384213d99fedce8ed55d54))
|
|
68
|
+
- **mock:** update mock rule ([c8fe9fc](https://github.com/easyops-cn/next-core/commit/c8fe9fccb46117330e1ff2ef42a18bef8dfff864))
|
|
69
|
+
- **mock:** update mock rule ([5898ecf](https://github.com/easyops-cn/next-core/commit/5898ecfd604ca418feeb954a6091e3b940a1e867))
|
|
85
70
|
|
|
86
71
|
## [2.118.7](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.118.6...@next-core/brick-kit@2.118.7) (2022-05-10)
|
|
87
72
|
|
|
88
73
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
89
74
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
75
|
## [2.118.6](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.118.5...@next-core/brick-kit@2.118.6) (2022-05-09)
|
|
95
76
|
|
|
96
77
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
97
78
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
79
|
## [2.118.5](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.118.4...@next-core/brick-kit@2.118.5) (2022-05-07)
|
|
103
80
|
|
|
104
81
|
**Note:** Version bump only for package @next-core/brick-kit
|
package/dist/index.bundle.js
CHANGED
|
@@ -7909,19 +7909,6 @@
|
|
|
7909
7909
|
});
|
|
7910
7910
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
7911
7911
|
});
|
|
7912
|
-
presetPalettes.red;
|
|
7913
|
-
presetPalettes.volcano;
|
|
7914
|
-
presetPalettes.gold;
|
|
7915
|
-
presetPalettes.orange;
|
|
7916
|
-
presetPalettes.yellow;
|
|
7917
|
-
presetPalettes.lime;
|
|
7918
|
-
presetPalettes.green;
|
|
7919
|
-
presetPalettes.cyan;
|
|
7920
|
-
presetPalettes.blue;
|
|
7921
|
-
presetPalettes.geekblue;
|
|
7922
|
-
presetPalettes.purple;
|
|
7923
|
-
presetPalettes.magenta;
|
|
7924
|
-
presetPalettes.grey;
|
|
7925
7912
|
|
|
7926
7913
|
function getStyleByBaseColors(theme, baseColors, backgroundColor) {
|
|
7927
7914
|
return (theme === "dark" ? getDarkStyle : getLightStyle)("".concat(getCssVariableDefinitionsByPalettes(generatePalettes(baseColors, theme, backgroundColor), theme), "\n").concat(getMigratedCssVariableDefinitions(theme, baseColors, backgroundColor)));
|
|
@@ -8528,6 +8515,7 @@
|
|
|
8528
8515
|
legacy
|
|
8529
8516
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8530
8517
|
this.toggleBars(true);
|
|
8518
|
+
getRuntime().applyPageTitle(null);
|
|
8531
8519
|
|
|
8532
8520
|
if (this.currentLayout !== "console") {
|
|
8533
8521
|
// No bars should be unset for the business layout.
|
|
@@ -8542,8 +8530,6 @@
|
|
|
8542
8530
|
// 对于 Legacy 页面,仅当切换应用时重设面包屑。
|
|
8543
8531
|
this.appBar.setBreadcrumb(null);
|
|
8544
8532
|
}
|
|
8545
|
-
|
|
8546
|
-
getRuntime().applyPageTitle(null);
|
|
8547
8533
|
}
|
|
8548
8534
|
|
|
8549
8535
|
toggleLegacyIframe(visible) {
|
|
@@ -9596,8 +9582,9 @@
|
|
|
9596
9582
|
|
|
9597
9583
|
yield _this6.resolver.resolve(brickConf, brick, context);
|
|
9598
9584
|
var expandedBrickConf = brickConf;
|
|
9585
|
+
var isBaseLayout = ["base-layout.tpl-homepage-base-module", "base-layout.tpl-base-page-module"].includes(tplTagName);
|
|
9599
9586
|
|
|
9600
|
-
if (tplTagName) {
|
|
9587
|
+
if (tplTagName && (!isBaseLayout || _this6.kernel.getFeatureFlags()["support-ui-8.0-base-layout"] && isBaseLayout)) {
|
|
9601
9588
|
var _customTemplateRegist;
|
|
9602
9589
|
|
|
9603
9590
|
yield _this6.preFetchMenu((_customTemplateRegist = customTemplateRegistry.get(tplTagName)) === null || _customTemplateRegist === void 0 ? void 0 : _customTemplateRegist.bricks);
|
|
@@ -10573,14 +10560,20 @@
|
|
|
10573
10560
|
if (storyboard) {
|
|
10574
10561
|
var _currentApp$breadcrum, _currentApp$breadcrum2;
|
|
10575
10562
|
|
|
10563
|
+
var {
|
|
10564
|
+
bricks,
|
|
10565
|
+
customApis
|
|
10566
|
+
} = brickUtils.scanStoryboard(storyboard);
|
|
10567
|
+
|
|
10576
10568
|
if (appChanged && currentApp.id && isLoggedIn()) {
|
|
10577
|
-
var usedCustomApis = brickUtils.mapCustomApisToNameAndNamespace(
|
|
10569
|
+
var usedCustomApis = brickUtils.mapCustomApisToNameAndNamespace(customApis);
|
|
10578
10570
|
|
|
10579
10571
|
if (usedCustomApis !== null && usedCustomApis !== void 0 && usedCustomApis.length) {
|
|
10580
10572
|
yield _this3.kernel.loadMicroAppApiOrchestrationAsync(usedCustomApis);
|
|
10581
10573
|
}
|
|
10582
10574
|
}
|
|
10583
10575
|
|
|
10576
|
+
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
10577
|
var mountRoutesResult = {
|
|
10585
10578
|
main: [],
|
|
10586
10579
|
menuInBg: [],
|