@abtnode/ux 1.8.40 → 1.8.41
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/lib/hooks/use-navigation.js +1 -10
- package/package.json +7 -7
|
@@ -138,16 +138,7 @@ function useNavigation() {
|
|
|
138
138
|
const treeNavigation = (0, _react.useMemo)(() => {
|
|
139
139
|
const rawData = (0, _parseNavigationFromBlocklet.filterNavigation)(state.rawNavigation, components);
|
|
140
140
|
const navigationWithLink = hackBuiltinLink((0, _parseNavigationFromBlocklet.joinLink)(rawData, components));
|
|
141
|
-
|
|
142
|
-
return navigationWithLink.filter(item => {
|
|
143
|
-
if ((0, _parseNavigationFromBlocklet.isMatchSection)(item.section, 'sessionManager')) {
|
|
144
|
-
if (hasSessionManager) {
|
|
145
|
-
return false;
|
|
146
|
-
}
|
|
147
|
-
hasSessionManager = true;
|
|
148
|
-
}
|
|
149
|
-
return true;
|
|
150
|
-
});
|
|
141
|
+
return navigationWithLink;
|
|
151
142
|
}, [components, state.rawNavigation]);
|
|
152
143
|
function getNavigationFullLink(navigationItem) {
|
|
153
144
|
if (!navigationItem.id) return '';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.41",
|
|
7
7
|
"description": "UX components shared across abtnode packages",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@abtnode/auth": "1.8.
|
|
25
|
-
"@abtnode/constant": "1.8.
|
|
26
|
-
"@abtnode/util": "1.8.
|
|
24
|
+
"@abtnode/auth": "1.8.41",
|
|
25
|
+
"@abtnode/constant": "1.8.41",
|
|
26
|
+
"@abtnode/util": "1.8.41",
|
|
27
27
|
"@arcblock/did-connect": "^2.4.55",
|
|
28
28
|
"@arcblock/did-motif": "^1.1.10",
|
|
29
29
|
"@arcblock/icons": "^2.4.55",
|
|
30
30
|
"@arcblock/terminal": "^2.4.55",
|
|
31
31
|
"@arcblock/ux": "^2.4.55",
|
|
32
|
-
"@blocklet/constant": "1.8.
|
|
32
|
+
"@blocklet/constant": "1.8.41",
|
|
33
33
|
"@blocklet/launcher-layout": "^1.9.15",
|
|
34
34
|
"@blocklet/list": "^0.10.38",
|
|
35
|
-
"@blocklet/meta": "1.8.
|
|
35
|
+
"@blocklet/meta": "1.8.41",
|
|
36
36
|
"@blocklet/ui-react": "^2.4.55",
|
|
37
37
|
"@emotion/react": "^11.10.4",
|
|
38
38
|
"@emotion/styled": "^11.10.4",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"@babel/preset-react": "^7.18.6",
|
|
85
85
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "bdc6b7c45ec5c59b83b2ef4ac088dc2eae9f4dea"
|
|
88
88
|
}
|