@blocklet/did-space-react 1.0.32 → 1.0.33
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.
|
@@ -50,20 +50,8 @@ function BaseConnectTo({ sx, onWalletClick, onGatewayConfirm, ...rest }) {
|
|
|
50
50
|
setCorsBlocked(false);
|
|
51
51
|
setOpen(true);
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{
|
|
56
|
-
variant: "contained",
|
|
57
|
-
color: "primary",
|
|
58
|
-
sx: { textTransform: "none", fontWeight: "bold", fontSize: "1rem", ...sx },
|
|
59
|
-
size: "small",
|
|
60
|
-
...rest,
|
|
61
|
-
onClick: onWalletClick,
|
|
62
|
-
children: t("storage.spaces.connect.useWallet")
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
if (constants.isDebugMode) {
|
|
66
|
-
button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
54
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
67
55
|
SplitButton,
|
|
68
56
|
{
|
|
69
57
|
menu: [
|
|
@@ -88,10 +76,7 @@ function BaseConnectTo({ sx, onWalletClick, onGatewayConfirm, ...rest }) {
|
|
|
88
76
|
onClick: onWalletClick,
|
|
89
77
|
children: /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { sx: { fontWeight: "bold", textTransform: "none" }, children: t("storage.spaces.connect.useWallet") })
|
|
90
78
|
}
|
|
91
|
-
)
|
|
92
|
-
}
|
|
93
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
94
|
-
button,
|
|
79
|
+
),
|
|
95
80
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
96
81
|
Dialog,
|
|
97
82
|
{
|
package/dist/cjs/package.json.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Typography, CircularProgress, DialogContentText, TextField, Tooltip, Link } from '@mui/material';
|
|
4
4
|
import HelpOutlineIcon from '@mui/icons-material/HelpOutline';
|
|
@@ -7,7 +7,7 @@ import SplitButton from '@arcblock/ux/lib/SplitButton';
|
|
|
7
7
|
import Dialog from '@arcblock/ux/lib/Dialog';
|
|
8
8
|
import { withQuery } from 'ufo';
|
|
9
9
|
import { AxiosError } from 'axios';
|
|
10
|
-
import {
|
|
10
|
+
import { copyGatewayPageUrl, fixCorsErrorPageUrl } from '../../libs/constants.js';
|
|
11
11
|
import { extraDIDSpacesCoreUrl, getSpaceDidFromSpaceUrl, isCorsBlockedError } from '../../libs/util.js';
|
|
12
12
|
import { getSpaceGatewayUrl, verifySpaceUrl } from '../../libs/gateway.js';
|
|
13
13
|
import useLocale from '../../hooks/use-locale.js';
|
|
@@ -48,20 +48,8 @@ function BaseConnectTo({ sx, onWalletClick, onGatewayConfirm, ...rest }) {
|
|
|
48
48
|
setCorsBlocked(false);
|
|
49
49
|
setOpen(true);
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
variant: "contained",
|
|
55
|
-
color: "primary",
|
|
56
|
-
sx: { textTransform: "none", fontWeight: "bold", fontSize: "1rem", ...sx },
|
|
57
|
-
size: "small",
|
|
58
|
-
...rest,
|
|
59
|
-
onClick: onWalletClick,
|
|
60
|
-
children: t("storage.spaces.connect.useWallet")
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
if (isDebugMode) {
|
|
64
|
-
button = /* @__PURE__ */ jsx(
|
|
51
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
65
53
|
SplitButton,
|
|
66
54
|
{
|
|
67
55
|
menu: [
|
|
@@ -86,10 +74,7 @@ function BaseConnectTo({ sx, onWalletClick, onGatewayConfirm, ...rest }) {
|
|
|
86
74
|
onClick: onWalletClick,
|
|
87
75
|
children: /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: "bold", textTransform: "none" }, children: t("storage.spaces.connect.useWallet") })
|
|
88
76
|
}
|
|
89
|
-
)
|
|
90
|
-
}
|
|
91
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
92
|
-
button,
|
|
77
|
+
),
|
|
93
78
|
/* @__PURE__ */ jsx(
|
|
94
79
|
Dialog,
|
|
95
80
|
{
|
package/dist/es/package.json.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/did-space-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "Reusable react components for did space",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@arcblock/did": "^1.19.15",
|
|
84
|
-
"@did-space/core": "^1.0.
|
|
84
|
+
"@did-space/core": "^1.0.33",
|
|
85
85
|
"@mui/icons-material": "^5.16.14",
|
|
86
86
|
"@mui/lab": "^5.0.0-alpha.175",
|
|
87
87
|
"@mui/material": "^5.16.14",
|
|
@@ -150,5 +150,5 @@
|
|
|
150
150
|
"vite-plugin-node-polyfills": "^0.22.0",
|
|
151
151
|
"vitest": "^3.0.8"
|
|
152
152
|
},
|
|
153
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "49e586cf7378def83202f979e2c889f549fbf12b"
|
|
154
154
|
}
|