@next-core/brick-utils 2.32.3 → 2.33.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 +38 -0
- package/dist/index.bundle.js +14 -2
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +14 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/types/visitStoryboard.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.33.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.6...@next-core/brick-utils@2.33.0) (2022-01-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* menu add href field ([963f123](https://github.com/easyops-cn/next-core/commit/963f123a6ee0dc6ce0e0acc648cffe2d8e299a02))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.32.6](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.5...@next-core/brick-utils@2.32.6) (2022-01-13)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @next-core/brick-utils
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [2.32.5](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.4...@next-core/brick-utils@2.32.5) (2022-01-07)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @next-core/brick-utils
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [2.32.4](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.3...@next-core/brick-utils@2.32.4) (2022-01-05)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* refine some types ([13d041a](https://github.com/easyops-cn/next-core/commit/13d041a8e5d0b714d96a7b6e41a5e8167993733a))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [2.32.3](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.2...@next-core/brick-utils@2.32.3) (2021-12-30)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @next-core/brick-utils
|
package/dist/index.bundle.js
CHANGED
|
@@ -2211,7 +2211,19 @@
|
|
|
2211
2211
|
getRunningContext().LexicalEnvironment = oldEnv;
|
|
2212
2212
|
|
|
2213
2213
|
if (!LoopContinues(result)) {
|
|
2214
|
-
|
|
2214
|
+
var status = UpdateEmpty(result, V);
|
|
2215
|
+
|
|
2216
|
+
if (!(iterationKind === "enumerate" || iteratorRecord.return === undefined)) {
|
|
2217
|
+
// Perform *IteratorClose*
|
|
2218
|
+
// https://tc39.es/ecma262/#sec-iteratorclose
|
|
2219
|
+
var innerResult = iteratorRecord.return();
|
|
2220
|
+
|
|
2221
|
+
if (!innerResult || !["object", "function"].includes(typeof innerResult)) {
|
|
2222
|
+
throw new TypeError("Iterator result is not an object");
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
return status;
|
|
2215
2227
|
}
|
|
2216
2228
|
|
|
2217
2229
|
if (result.Value !== Empty) {
|
|
@@ -21237,7 +21249,7 @@
|
|
|
21237
21249
|
}
|
|
21238
21250
|
|
|
21239
21251
|
var fieldsToKeepInMenu = ["menuId", "title", "icon", "titleDataSource", "defaultCollapsed", "defaultCollapsedBreakpoint", "link", "type", "injectMenuGroupId", "dynamicItems", "itemsResolve"];
|
|
21240
|
-
var fieldsToKeepInMenuItem = ["text", "to", "target", "icon", "exact", "key", "activeIncludes", "activeExcludes", "activeMatchSearch", "type", "sort", "defaultExpanded", "if", "groupId"];
|
|
21252
|
+
var fieldsToKeepInMenuItem = ["text", "to", "href", "target", "icon", "exact", "key", "activeIncludes", "activeExcludes", "activeMatchSearch", "type", "sort", "defaultExpanded", "if", "groupId"];
|
|
21241
21253
|
function normalizeMenu(node) {
|
|
21242
21254
|
return _objectSpread__default["default"](_objectSpread__default["default"]({}, keep(node, fieldsToKeepInMenu)), {}, {
|
|
21243
21255
|
items: keepItems(node.items, fieldsToKeepInMenuItem)
|