@arcblock/ux 2.13.33 → 2.13.35
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.
@@ -52,7 +52,9 @@ export default function withContainer(Component) {
|
|
52
52
|
if (searchParams.get('magicToken')) {
|
53
53
|
searchParams.delete('magicToken');
|
54
54
|
}
|
55
|
-
|
55
|
+
if (searchParams.toString()) {
|
56
|
+
window.history.replaceState({}, '', `${window.location.pathname}?${searchParams.toString()}`);
|
57
|
+
}
|
56
58
|
});
|
57
59
|
|
58
60
|
// eslint-disable-next-line no-unused-vars
|
@@ -129,7 +131,7 @@ export default function withContainer(Component) {
|
|
129
131
|
};
|
130
132
|
const wrapOnClose = useMemoizedFn(() => {
|
131
133
|
removeMagicToken();
|
132
|
-
rest?.onClose();
|
134
|
+
rest?.onClose?.();
|
133
135
|
});
|
134
136
|
if (openVariant === 'page') {
|
135
137
|
return /*#__PURE__*/_jsx(Box, {
|
package/lib/NavMenu/style.js
CHANGED
@@ -48,7 +48,7 @@ export const NavMenuItem = styled('li', {
|
|
48
48
|
transition: theme.transitions.create('color', {
|
49
49
|
duration: theme.transitions.duration.standard
|
50
50
|
}),
|
51
|
-
|
51
|
+
WebkitTapHighlightColor: 'transparent',
|
52
52
|
// 禁用触摸反馈
|
53
53
|
// 间距调整
|
54
54
|
'&:first-of-type': {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.13.
|
3
|
+
"version": "2.13.35",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -71,14 +71,14 @@
|
|
71
71
|
"react": ">=18.2.0",
|
72
72
|
"react-router-dom": ">=6.22.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "0637c76e4c1036802b2fef273f785cc9bf00edd0",
|
75
75
|
"dependencies": {
|
76
76
|
"@arcblock/did-motif": "^1.1.13",
|
77
|
-
"@arcblock/icons": "^2.13.
|
78
|
-
"@arcblock/nft-display": "^2.13.
|
79
|
-
"@arcblock/react-hooks": "^2.13.
|
77
|
+
"@arcblock/icons": "^2.13.35",
|
78
|
+
"@arcblock/nft-display": "^2.13.35",
|
79
|
+
"@arcblock/react-hooks": "^2.13.35",
|
80
80
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
81
|
-
"@blocklet/theme": "^2.13.
|
81
|
+
"@blocklet/theme": "^2.13.35",
|
82
82
|
"@fontsource/roboto": "~5.1.1",
|
83
83
|
"@fontsource/ubuntu-mono": "^5.0.18",
|
84
84
|
"@iconify-icons/logos": "^1.2.36",
|
@@ -73,7 +73,9 @@ export default function withContainer(Component: React.ComponentType<any>) {
|
|
73
73
|
if (searchParams.get('magicToken')) {
|
74
74
|
searchParams.delete('magicToken');
|
75
75
|
}
|
76
|
-
|
76
|
+
if (searchParams.toString()) {
|
77
|
+
window.history.replaceState({}, '', `${window.location.pathname}?${searchParams.toString()}`);
|
78
|
+
}
|
77
79
|
});
|
78
80
|
|
79
81
|
// eslint-disable-next-line no-unused-vars
|
@@ -158,7 +160,7 @@ export default function withContainer(Component: React.ComponentType<any>) {
|
|
158
160
|
|
159
161
|
const wrapOnClose = useMemoizedFn(() => {
|
160
162
|
removeMagicToken();
|
161
|
-
rest?.onClose();
|
163
|
+
rest?.onClose?.();
|
162
164
|
});
|
163
165
|
|
164
166
|
if (openVariant === 'page') {
|
package/src/NavMenu/style.ts
CHANGED
@@ -51,7 +51,7 @@ export const NavMenuItem = styled('li', {
|
|
51
51
|
transition: theme.transitions.create('color', {
|
52
52
|
duration: theme.transitions.duration.standard,
|
53
53
|
}),
|
54
|
-
|
54
|
+
WebkitTapHighlightColor: 'transparent', // 禁用触摸反馈
|
55
55
|
// 间距调整
|
56
56
|
'&:first-of-type': {
|
57
57
|
paddingLeft: 0,
|