@blocklet/meta 1.16.42-beta-20250402-131159-7647e64d → 1.16.42-beta-20250403-230303-c167c6a1
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.
|
@@ -516,6 +516,15 @@ exports.cleanOldNavigationHistory = cleanOldNavigationHistory;
|
|
|
516
516
|
function parseNavigation(blocklet = {}, options = {}) {
|
|
517
517
|
const { beforeProcess = (v) => v } = options;
|
|
518
518
|
const { navigationList: builtinNavigation, components } = parseBlockletNavigationList(blocklet);
|
|
519
|
+
// 移除存在 db 中的默认导航
|
|
520
|
+
if (blocklet?.settings?.navigations) {
|
|
521
|
+
if (!Array.isArray(blocklet.settings.navigations)) {
|
|
522
|
+
blocklet.settings.navigations = [];
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
blocklet.settings.navigations = [...blocklet.settings.navigations].filter((item) => !(item?.parent === '/team' && item.from === 'tmpl'));
|
|
526
|
+
}
|
|
527
|
+
}
|
|
519
528
|
const customNavigationList = cleanOldNavigationHistory(blocklet?.settings?.navigations || []);
|
|
520
529
|
const compactedNavigation = compactNavigation(beforeProcess(builtinNavigation));
|
|
521
530
|
const patchedNavigation = patchBuiltinNavigation(compactedNavigation);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.42-beta-
|
|
6
|
+
"version": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/constant": "1.16.42-beta-
|
|
29
|
-
"@abtnode/docker-utils": "1.16.42-beta-
|
|
28
|
+
"@abtnode/constant": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
29
|
+
"@abtnode/docker-utils": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
30
30
|
"@arcblock/did": "1.19.15",
|
|
31
31
|
"@arcblock/did-ext": "1.19.15",
|
|
32
32
|
"@arcblock/did-util": "1.19.15",
|
|
33
33
|
"@arcblock/jwt": "1.19.15",
|
|
34
|
-
"@blocklet/constant": "1.16.42-beta-
|
|
34
|
+
"@blocklet/constant": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
35
35
|
"@ocap/asset": "1.19.15",
|
|
36
36
|
"@ocap/mcrypto": "1.19.15",
|
|
37
37
|
"@ocap/types": "1.19.15",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"ts-node": "^10.9.1",
|
|
82
82
|
"typescript": "^5.6.3"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "34d6d981bb270af1d0ca59704715bfa82949a9fe"
|
|
85
85
|
}
|