@arcblock/ux 2.13.34 → 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
- window.history.replaceState({}, '', `${window.location.pathname}?${searchParams.toString()}`);
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.13.34",
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": "2dd874ee643777fe089a0d02183543497d0c8f39",
74
+ "gitHead": "0637c76e4c1036802b2fef273f785cc9bf00edd0",
75
75
  "dependencies": {
76
76
  "@arcblock/did-motif": "^1.1.13",
77
- "@arcblock/icons": "^2.13.34",
78
- "@arcblock/nft-display": "^2.13.34",
79
- "@arcblock/react-hooks": "^2.13.34",
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.34",
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
- window.history.replaceState({}, '', `${window.location.pathname}?${searchParams.toString()}`);
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') {