@next-core/brick-kit 2.117.9 → 2.117.12
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,39 @@
|
|
|
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.117.12](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.117.11...@next-core/brick-kit@2.117.12) (2022-04-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **getMenu:** fix menu lose ([3be0166](https://github.com/easyops-cn/next-core/commit/3be0166378cd5ae735c76b41cb7537fa6f3327d6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.117.11](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.117.10...@next-core/brick-kit@2.117.11) (2022-04-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* template preview with context ([f71bc07](https://github.com/easyops-cn/next-core/commit/f71bc07d1b5b0eea719d5886a177712dcb934c4c))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [2.117.10](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.117.9...@next-core/brick-kit@2.117.10) (2022-04-14)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* put template preview route between specific ones and others ([923d6f3](https://github.com/easyops-cn/next-core/commit/923d6f3e71f4d9211516045e4b09b96c0c82285b))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
## [2.117.9](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.117.8...@next-core/brick-kit@2.117.9) (2022-04-14)
|
|
7
40
|
|
|
8
41
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -2753,7 +2753,6 @@
|
|
|
2753
2753
|
|
|
2754
2754
|
function _constructMenuByMenusList() {
|
|
2755
2755
|
_constructMenuByMenusList = _asyncToGenerator__default["default"](function* (menus, context, kernel) {
|
|
2756
|
-
processMenuCache.clear();
|
|
2757
2756
|
var data = yield Promise.all(menus.map(menuId => processMenu(menuId, context, kernel)));
|
|
2758
2757
|
data.forEach((item, index) => processMenuCache.set(menus[index], item));
|
|
2759
2758
|
});
|
|
@@ -8080,7 +8079,7 @@
|
|
|
8080
8079
|
path: previewPath,
|
|
8081
8080
|
bricks: [_objectSpread__default["default"]({
|
|
8082
8081
|
brick: templateId
|
|
8083
|
-
}, lodash.pick(settings, "properties", "events", "lifeCycle"))],
|
|
8082
|
+
}, lodash.pick(settings, "properties", "events", "lifeCycle", "context"))],
|
|
8084
8083
|
menu: false,
|
|
8085
8084
|
exact: true
|
|
8086
8085
|
};
|
|
@@ -10209,15 +10208,16 @@
|
|
|
10209
10208
|
};
|
|
10210
10209
|
|
|
10211
10210
|
try {
|
|
10212
|
-
|
|
10213
|
-
[{
|
|
10211
|
+
var specificTemplatePreviewIndex = lodash.findLastIndex(storyboard.routes, route => route.path.startsWith("${APP.homepage}/_dev_only_/template-preview/"));
|
|
10212
|
+
var mergedRoutes = [...storyboard.routes.slice(0, specificTemplatePreviewIndex + 1), {
|
|
10214
10213
|
path: "${APP.homepage}/_dev_only_/template-preview/:templateId",
|
|
10215
10214
|
bricks: [{
|
|
10216
10215
|
brick: "span"
|
|
10217
10216
|
}],
|
|
10218
10217
|
menu: false,
|
|
10219
10218
|
exact: true
|
|
10220
|
-
}
|
|
10219
|
+
}, ...storyboard.routes.slice(specificTemplatePreviewIndex + 1)];
|
|
10220
|
+
yield locationContext.mountRoutes(mergedRoutes, undefined, mountRoutesResult);
|
|
10221
10221
|
} catch (error) {
|
|
10222
10222
|
// eslint-disable-next-line no-console
|
|
10223
10223
|
console.error(error); // Redirect to login page if not logged in.
|