@blocklet/did-space-react 1.0.26 → 1.0.29
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.
|
@@ -29,6 +29,9 @@ const spaceConnectError = require('../../icons/space-connect-error.svg.js');
|
|
|
29
29
|
|
|
30
30
|
const expectVersion = `${_package.version}`;
|
|
31
31
|
function getIncompatibleUpgradeUrl({ spaceInfo, session, spaceUrl }) {
|
|
32
|
+
if (!spaceInfo) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
32
35
|
const shouldBeUpgradeDIDSpaces = !spaceInfo.version || semver.major(spaceInfo.version) !== semver.major(expectVersion) && semver.lt(spaceInfo.version, expectVersion) && spaceInfo.isSiteAdmin;
|
|
33
36
|
if (shouldBeUpgradeDIDSpaces) {
|
|
34
37
|
return ufo.joinURL(new URL(spaceUrl).origin, ".well-known/service/admin/components");
|
|
@@ -75,9 +78,6 @@ function Status({
|
|
|
75
78
|
);
|
|
76
79
|
const spaceVersion = React.useMemo(() => spaceInfo?.version, [spaceInfo]);
|
|
77
80
|
const errorStatusConfig = ahooks.useCreation(() => {
|
|
78
|
-
if (!spaceInfo) {
|
|
79
|
-
return {};
|
|
80
|
-
}
|
|
81
81
|
const incompatibleUpgradeUrl = getIncompatibleUpgradeUrl({ spaceInfo, session: session$1, spaceUrl });
|
|
82
82
|
return {
|
|
83
83
|
// 未知的网络错误(如超时)
|
|
@@ -118,7 +118,7 @@ function Status({
|
|
|
118
118
|
ErrorLink,
|
|
119
119
|
{
|
|
120
120
|
title: t("storage.spaces.error.incompatible", {
|
|
121
|
-
spaceVersion: spaceInfo
|
|
121
|
+
spaceVersion: spaceInfo?.version || " < 0.5.77",
|
|
122
122
|
// version 字段是在 0.5.77 版本添加的
|
|
123
123
|
expectVersion
|
|
124
124
|
}),
|
package/dist/cjs/package.json.js
CHANGED
|
@@ -27,6 +27,9 @@ import SvgSpaceConnectError from '../../icons/space-connect-error.svg.js';
|
|
|
27
27
|
|
|
28
28
|
const expectVersion = `${version}`;
|
|
29
29
|
function getIncompatibleUpgradeUrl({ spaceInfo, session, spaceUrl }) {
|
|
30
|
+
if (!spaceInfo) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
30
33
|
const shouldBeUpgradeDIDSpaces = !spaceInfo.version || semver.major(spaceInfo.version) !== semver.major(expectVersion) && semver.lt(spaceInfo.version, expectVersion) && spaceInfo.isSiteAdmin;
|
|
31
34
|
if (shouldBeUpgradeDIDSpaces) {
|
|
32
35
|
return joinURL(new URL(spaceUrl).origin, ".well-known/service/admin/components");
|
|
@@ -73,9 +76,6 @@ function Status({
|
|
|
73
76
|
);
|
|
74
77
|
const spaceVersion = useMemo(() => spaceInfo?.version, [spaceInfo]);
|
|
75
78
|
const errorStatusConfig = useCreation(() => {
|
|
76
|
-
if (!spaceInfo) {
|
|
77
|
-
return {};
|
|
78
|
-
}
|
|
79
79
|
const incompatibleUpgradeUrl = getIncompatibleUpgradeUrl({ spaceInfo, session, spaceUrl });
|
|
80
80
|
return {
|
|
81
81
|
// 未知的网络错误(如超时)
|
|
@@ -116,7 +116,7 @@ function Status({
|
|
|
116
116
|
ErrorLink,
|
|
117
117
|
{
|
|
118
118
|
title: t("storage.spaces.error.incompatible", {
|
|
119
|
-
spaceVersion: spaceInfo
|
|
119
|
+
spaceVersion: spaceInfo?.version || " < 0.5.77",
|
|
120
120
|
// version 字段是在 0.5.77 版本添加的
|
|
121
121
|
expectVersion
|
|
122
122
|
}),
|
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.29",
|
|
4
4
|
"description": "Reusable react components for did space",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@arcblock/did": "^1.19.15",
|
|
84
|
-
"@did-space/core": "^1.0.
|
|
84
|
+
"@did-space/core": "^1.0.29",
|
|
85
85
|
"@mui/icons-material": "^5.16.14",
|
|
86
86
|
"@mui/lab": "^5.0.0-alpha.175",
|
|
87
87
|
"@mui/material": "^5.16.14",
|
|
88
88
|
"@mui/system": "^5.16.14",
|
|
89
89
|
"ahooks": "^3.8.4",
|
|
90
|
-
"axios": "^1.8.
|
|
90
|
+
"axios": "^1.8.2",
|
|
91
91
|
"flat": "^5.0.2",
|
|
92
92
|
"is-url": "^1.2.4",
|
|
93
93
|
"lodash": "^4.17.21",
|
|
@@ -99,19 +99,19 @@
|
|
|
99
99
|
"xbytes": "^1.9.1"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@arcblock/did-connect": "^2.
|
|
103
|
-
"@arcblock/ux": "^2.
|
|
104
|
-
"@blocklet/js-sdk": "^1.16.
|
|
105
|
-
"@blocklet/sdk": "^1.16.
|
|
102
|
+
"@arcblock/did-connect": "^2.12.6",
|
|
103
|
+
"@arcblock/ux": "^2.12.6",
|
|
104
|
+
"@blocklet/js-sdk": "^1.16.39",
|
|
105
|
+
"@blocklet/sdk": "^1.16.39",
|
|
106
106
|
"react": "^18.3.1"
|
|
107
107
|
},
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@arcblock/did-connect": "^2.12.
|
|
112
|
+
"@arcblock/did-connect": "^2.12.12",
|
|
113
113
|
"@arcblock/eslint-config-ts": "^0.3.3",
|
|
114
|
-
"@arcblock/ux": "^2.12.
|
|
114
|
+
"@arcblock/ux": "^2.12.12",
|
|
115
115
|
"@babel/cli": "^7.26.4",
|
|
116
116
|
"@babel/core": "^7.26.9",
|
|
117
117
|
"@babel/preset-env": "^7.26.9",
|
|
@@ -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": "65a1ab8e6181db78b3b29b92a35ed25c27edca15"
|
|
154
154
|
}
|