@blocklet/did-space-react 1.0.35 → 1.0.36

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.
@@ -80,35 +80,49 @@ function Status({
80
80
  const errorStatusConfig = ahooks.useCreation(() => {
81
81
  const incompatibleUpgradeUrl = getIncompatibleUpgradeUrl({ spaceInfo, session: session$1, spaceUrl });
82
82
  return {
83
- // 未知的网络错误(如超时)
84
- [constants.SPACE_CONNECT_ERROR_CODE.NETWORK_ERROR]: {
85
- icon: /* @__PURE__ */ jsxRuntime.jsx(spaceConnectError, { style: iconStyle }),
86
- text: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { color: "error.main" }, children: t("storage.spaces.error.networkError") })
87
- },
88
83
  // 订阅过期
89
84
  [constants.SPACE_CONNECT_ERROR_CODE.EXPIRED]: {
90
85
  icon: /* @__PURE__ */ jsxRuntime.jsx(spaceConnectError, { style: iconStyle }),
91
- text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { title: t("storage.spaces.error.expired"), url: spaceGuideUrl })
86
+ text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { description: t("storage.spaces.error.expired"), url: spaceGuideUrl })
92
87
  },
93
88
  // 订阅逾期
94
89
  [constants.SPACE_CONNECT_ERROR_CODE.PAST_DUE]: {
95
90
  icon: /* @__PURE__ */ jsxRuntime.jsx(spaceConnectError, { style: iconStyle }),
96
- text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { title: t("storage.spaces.error.pastDue"), url: spaceGuideUrl })
91
+ text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { description: t("storage.spaces.error.pastDue"), url: spaceGuideUrl })
97
92
  },
98
93
  // 订阅状态异常
99
94
  [constants.SPACE_CONNECT_ERROR_CODE.INVALID]: {
100
95
  icon: /* @__PURE__ */ jsxRuntime.jsx(spaceConnectError, { style: iconStyle }),
101
- text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { title: t("storage.spaces.error.invalid"), url: spaceGuideUrl })
96
+ text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { description: t("storage.spaces.error.invalid"), url: spaceGuideUrl })
102
97
  },
103
98
  // 用量不足
104
99
  [constants.SPACE_CONNECT_ERROR_CODE.UNIT_LIMIT]: {
105
100
  icon: /* @__PURE__ */ jsxRuntime.jsx(spaceConnectError, { style: iconStyle }),
106
- text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { title: t("storage.spaces.error.unitLimit"), url: spaceGuideUrl })
101
+ text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { description: t("storage.spaces.error.unitLimit"), url: spaceGuideUrl })
107
102
  },
108
103
  // CORS 拦截
109
104
  [constants.SPACE_CONNECT_ERROR_CODE.CORS_BLOCKED]: {
110
105
  icon: /* @__PURE__ */ jsxRuntime.jsx(spaceConnectError, { style: iconStyle }),
111
- text: /* @__PURE__ */ jsxRuntime.jsx(ErrorLink, { title: t("storage.spaces.error.corsBlocked"), url: ufo.withQuery(constants$1.fixCorsErrorPageUrl, { locale }) })
106
+ text: /* @__PURE__ */ jsxRuntime.jsx(
107
+ ErrorLink,
108
+ {
109
+ title: t("storage.spaces.error.blockedByCors"),
110
+ description: t("storage.spaces.error.cors"),
111
+ url: ufo.withQuery(constants$1.fixCorsErrorPageUrl, { locale })
112
+ }
113
+ )
114
+ },
115
+ // 未知的网络错误(如超时)
116
+ [constants.SPACE_CONNECT_ERROR_CODE.NETWORK_ERROR]: {
117
+ icon: /* @__PURE__ */ jsxRuntime.jsx(spaceConnectError, { style: iconStyle }),
118
+ text: /* @__PURE__ */ jsxRuntime.jsx(
119
+ ErrorLink,
120
+ {
121
+ title: t("storage.spaces.error.unreachable"),
122
+ description: t("storage.spaces.error.networkError"),
123
+ url: spaceGuideUrl
124
+ }
125
+ )
112
126
  },
113
127
  // Space 版本不兼容
114
128
  ...incompatibleUpgradeUrl && {
@@ -117,7 +131,7 @@ function Status({
117
131
  text: /* @__PURE__ */ jsxRuntime.jsx(
118
132
  ErrorLink,
119
133
  {
120
- title: t("storage.spaces.error.incompatible", {
134
+ description: t("storage.spaces.error.incompatible", {
121
135
  spaceVersion: spaceInfo?.version || " < 0.5.77",
122
136
  // version 字段是在 0.5.77 版本添加的
123
137
  expectVersion
@@ -157,9 +171,9 @@ function Status({
157
171
  }
158
172
  );
159
173
  }
160
- function ErrorLink({ title, url }) {
174
+ function ErrorLink({ title = "", description, url }) {
161
175
  const { t } = useLocale();
162
- return /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { whiteSpace: "pre-wrap" }, children: title }), placement: "top", children: /* @__PURE__ */ jsxRuntime.jsxs(
176
+ return /* @__PURE__ */ jsxRuntime.jsx(material.Tooltip, { title: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { whiteSpace: "pre-wrap" }, children: description }), placement: "top", children: /* @__PURE__ */ jsxRuntime.jsxs(
163
177
  material.Link,
164
178
  {
165
179
  href: url,
@@ -168,7 +182,7 @@ function ErrorLink({ title, url }) {
168
182
  color: "error",
169
183
  sx: { display: "flex", alignItems: "center", color: "error.main" },
170
184
  children: [
171
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: t("storage.spaces.error.tag") }),
185
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: title || t("storage.spaces.error.tag") }),
172
186
  /* @__PURE__ */ jsxRuntime.jsx(OpenInNewIcon, { sx: { fontSize: "14px", marginLeft: "4px" } })
173
187
  ]
174
188
  }
@@ -185,7 +199,6 @@ function DIDSpaceConnection({
185
199
  ...rest
186
200
  }) {
187
201
  const isMobile = useMobile();
188
- const { t } = useLocale();
189
202
  const { session: session$1 } = session.useSessionContext();
190
203
  let isCompact = compat;
191
204
  if (isUndefined(isCompact)) {
@@ -213,8 +226,8 @@ function DIDSpaceConnection({
213
226
  spaceStatus.current = index.DIDSpaceStatus.LOADING;
214
227
  spaceName = /* @__PURE__ */ jsxRuntime.jsx(material.Skeleton, { variant: "text", sx: { width: "180px", fontSize: "1rem" } });
215
228
  } else if (error instanceof axios.AxiosError) {
216
- spaceName = t("common.unknown");
217
229
  spaceStatus.current = index.DIDSpaceStatus.UNAVAILABLE;
230
+ spaceName = "";
218
231
  if (util.isCorsBlockedError(error)) {
219
232
  errorCode = constants.SPACE_CONNECT_ERROR_CODE.CORS_BLOCKED;
220
233
  } else {
@@ -37,12 +37,14 @@ const en = flat.flatten({
37
37
  },
38
38
  error: {
39
39
  tag: "Need Attention",
40
+ blockedByCors: "Access blocked by CORS",
41
+ unreachable: "DID Space is unreachable",
40
42
  expired: "DID Spaces has expired, click this link to re-subscribe",
41
43
  pastDue: "DID Spaces has unpaid bills, click this link to complete payment",
42
44
  invalid: "DID Spaces subscription anomaly, click this link to check",
43
45
  unitLimit: "DID Spaces free quota has been used up, click this link to pay for the upgrade",
44
- corsBlocked: "The connection request may fail due to CORS restrictions:\n1. Please contact the DID Space administrator to verify the relevant configuration.\n2. If you are the administrator, click the link below to view the detailed setup guide and resolve the issue.",
45
- networkError: "Network error",
46
+ cors: "The connection request may fail due to CORS restrictions:\n1. Please contact the DID Space administrator to verify the relevant configuration.\n2. If you are the administrator, click the link below to view the detailed setup guide and resolve the issue.",
47
+ networkError: "DID Space is currently unreachable due to potential server issues, network problems, or maintenance. Please click the link to visit the homepage and check its status.",
46
48
  incompatible: "The current connection of DID Spaces version ({spaceVersion}) is not compatible with the component version ({expectVersion}). Please contact the administrator for adjustments.\nIf you are the administrator, you can click the link below to take action."
47
49
  },
48
50
  gateway: {
@@ -37,12 +37,14 @@ const zh = flat.flatten({
37
37
  },
38
38
  error: {
39
39
  tag: "\u9700\u8981\u5173\u6CE8",
40
+ blockedByCors: "\u56E0 CORS \u9650\u5236\uFF0C\u8BBF\u95EE\u88AB\u963B\u6B62",
41
+ unreachable: "DID Space \u65E0\u6CD5\u8BBF\u95EE",
40
42
  expired: "DID Spaces \u5DF2\u8FC7\u671F\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u91CD\u65B0\u8BA2\u9605",
41
43
  pastDue: "DID Spaces \u6709\u672A\u652F\u4ED8\u8D26\u5355\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u5B8C\u6210\u652F\u4ED8",
42
44
  invalid: "DID Spaces \u8BA2\u9605\u5F02\u5E38\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u68C0\u67E5",
43
45
  unitLimit: "DID Spaces \u514D\u8D39\u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u4ED8\u8D39\u5347\u7EA7",
44
- corsBlocked: "\u8FDE\u63A5\u8BF7\u6C42\u53EF\u80FD\u56E0 CORS \u9650\u5236\u800C\u5931\u8D25\uFF1A\n1. \u8BF7\u8054\u7CFB DID Space \u7BA1\u7406\u5458\u786E\u8BA4\u76F8\u5173\u914D\u7F6E\u662F\u5426\u6B63\u786E\u3002\n2. \u5982\u679C\u60A8\u662F\u7BA1\u7406\u5458\uFF0C\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\uFF0C\u67E5\u770B\u8BE6\u7EC6\u7684\u914D\u7F6E\u6307\u5357\u5E76\u89E3\u51B3\u95EE\u9898\u3002",
45
- networkError: "\u7F51\u7EDC\u9519\u8BEF",
46
+ cors: "\u8FDE\u63A5\u8BF7\u6C42\u53EF\u80FD\u56E0 CORS \u9650\u5236\u800C\u5931\u8D25\uFF1A\n1. \u8BF7\u8054\u7CFB DID Space \u7BA1\u7406\u5458\u786E\u8BA4\u76F8\u5173\u914D\u7F6E\u662F\u5426\u6B63\u786E\u3002\n2. \u5982\u679C\u60A8\u662F\u7BA1\u7406\u5458\uFF0C\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\uFF0C\u67E5\u770B\u8BE6\u7EC6\u7684\u914D\u7F6E\u6307\u5357\u5E76\u89E3\u51B3\u95EE\u9898\u3002",
47
+ networkError: "\u7531\u4E8E\u6F5C\u5728\u7684\u670D\u52A1\u5668\u95EE\u9898\u3001\u7F51\u7EDC\u95EE\u9898\u6216\u7EF4\u62A4\uFF0CDID Space \u76EE\u524D\u65E0\u6CD5\u8BBF\u95EE\u3002\u8BF7\u70B9\u51FB\u94FE\u63A5\u8BBF\u95EE\u4E3B\u9875\u5E76\u67E5\u770B\u5176\u72B6\u6001\u3002",
46
48
  incompatible: "\u5F53\u524D\u8FDE\u63A5\u7684 DID Spaces \u7248\u672C({spaceVersion}) \u4E0E\u7EC4\u4EF6\u7248\u672C({expectVersion})\u4E0D\u517C\u5BB9\u3002\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u8C03\u6574\u3002\n\u5982\u679C\u60A8\u662F\u7BA1\u7406\u5458\uFF0C\u53EF\u4EE5\u5355\u51FB\u4E0B\u9762\u7684\u94FE\u63A5\u8FDB\u884C\u64CD\u4F5C\u3002"
47
49
  },
48
50
  gateway: {
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "1.0.35";
3
+ const version = "1.0.36";
4
4
 
5
5
  exports.version = version;
@@ -78,35 +78,49 @@ function Status({
78
78
  const errorStatusConfig = useCreation(() => {
79
79
  const incompatibleUpgradeUrl = getIncompatibleUpgradeUrl({ spaceInfo, session, spaceUrl });
80
80
  return {
81
- // 未知的网络错误(如超时)
82
- [SPACE_CONNECT_ERROR_CODE.NETWORK_ERROR]: {
83
- icon: /* @__PURE__ */ jsx(SvgSpaceConnectError, { style: iconStyle }),
84
- text: /* @__PURE__ */ jsx(Box, { sx: { color: "error.main" }, children: t("storage.spaces.error.networkError") })
85
- },
86
81
  // 订阅过期
87
82
  [SPACE_CONNECT_ERROR_CODE.EXPIRED]: {
88
83
  icon: /* @__PURE__ */ jsx(SvgSpaceConnectError, { style: iconStyle }),
89
- text: /* @__PURE__ */ jsx(ErrorLink, { title: t("storage.spaces.error.expired"), url: spaceGuideUrl })
84
+ text: /* @__PURE__ */ jsx(ErrorLink, { description: t("storage.spaces.error.expired"), url: spaceGuideUrl })
90
85
  },
91
86
  // 订阅逾期
92
87
  [SPACE_CONNECT_ERROR_CODE.PAST_DUE]: {
93
88
  icon: /* @__PURE__ */ jsx(SvgSpaceConnectError, { style: iconStyle }),
94
- text: /* @__PURE__ */ jsx(ErrorLink, { title: t("storage.spaces.error.pastDue"), url: spaceGuideUrl })
89
+ text: /* @__PURE__ */ jsx(ErrorLink, { description: t("storage.spaces.error.pastDue"), url: spaceGuideUrl })
95
90
  },
96
91
  // 订阅状态异常
97
92
  [SPACE_CONNECT_ERROR_CODE.INVALID]: {
98
93
  icon: /* @__PURE__ */ jsx(SvgSpaceConnectError, { style: iconStyle }),
99
- text: /* @__PURE__ */ jsx(ErrorLink, { title: t("storage.spaces.error.invalid"), url: spaceGuideUrl })
94
+ text: /* @__PURE__ */ jsx(ErrorLink, { description: t("storage.spaces.error.invalid"), url: spaceGuideUrl })
100
95
  },
101
96
  // 用量不足
102
97
  [SPACE_CONNECT_ERROR_CODE.UNIT_LIMIT]: {
103
98
  icon: /* @__PURE__ */ jsx(SvgSpaceConnectError, { style: iconStyle }),
104
- text: /* @__PURE__ */ jsx(ErrorLink, { title: t("storage.spaces.error.unitLimit"), url: spaceGuideUrl })
99
+ text: /* @__PURE__ */ jsx(ErrorLink, { description: t("storage.spaces.error.unitLimit"), url: spaceGuideUrl })
105
100
  },
106
101
  // CORS 拦截
107
102
  [SPACE_CONNECT_ERROR_CODE.CORS_BLOCKED]: {
108
103
  icon: /* @__PURE__ */ jsx(SvgSpaceConnectError, { style: iconStyle }),
109
- text: /* @__PURE__ */ jsx(ErrorLink, { title: t("storage.spaces.error.corsBlocked"), url: withQuery(fixCorsErrorPageUrl, { locale }) })
104
+ text: /* @__PURE__ */ jsx(
105
+ ErrorLink,
106
+ {
107
+ title: t("storage.spaces.error.blockedByCors"),
108
+ description: t("storage.spaces.error.cors"),
109
+ url: withQuery(fixCorsErrorPageUrl, { locale })
110
+ }
111
+ )
112
+ },
113
+ // 未知的网络错误(如超时)
114
+ [SPACE_CONNECT_ERROR_CODE.NETWORK_ERROR]: {
115
+ icon: /* @__PURE__ */ jsx(SvgSpaceConnectError, { style: iconStyle }),
116
+ text: /* @__PURE__ */ jsx(
117
+ ErrorLink,
118
+ {
119
+ title: t("storage.spaces.error.unreachable"),
120
+ description: t("storage.spaces.error.networkError"),
121
+ url: spaceGuideUrl
122
+ }
123
+ )
110
124
  },
111
125
  // Space 版本不兼容
112
126
  ...incompatibleUpgradeUrl && {
@@ -115,7 +129,7 @@ function Status({
115
129
  text: /* @__PURE__ */ jsx(
116
130
  ErrorLink,
117
131
  {
118
- title: t("storage.spaces.error.incompatible", {
132
+ description: t("storage.spaces.error.incompatible", {
119
133
  spaceVersion: spaceInfo?.version || " < 0.5.77",
120
134
  // version 字段是在 0.5.77 版本添加的
121
135
  expectVersion
@@ -155,9 +169,9 @@ function Status({
155
169
  }
156
170
  );
157
171
  }
158
- function ErrorLink({ title, url }) {
172
+ function ErrorLink({ title = "", description, url }) {
159
173
  const { t } = useLocale();
160
- return /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx("span", { style: { whiteSpace: "pre-wrap" }, children: title }), placement: "top", children: /* @__PURE__ */ jsxs(
174
+ return /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx("span", { style: { whiteSpace: "pre-wrap" }, children: description }), placement: "top", children: /* @__PURE__ */ jsxs(
161
175
  Link,
162
176
  {
163
177
  href: url,
@@ -166,7 +180,7 @@ function ErrorLink({ title, url }) {
166
180
  color: "error",
167
181
  sx: { display: "flex", alignItems: "center", color: "error.main" },
168
182
  children: [
169
- /* @__PURE__ */ jsx("span", { children: t("storage.spaces.error.tag") }),
183
+ /* @__PURE__ */ jsx("span", { children: title || t("storage.spaces.error.tag") }),
170
184
  /* @__PURE__ */ jsx(OpenInNewIcon, { sx: { fontSize: "14px", marginLeft: "4px" } })
171
185
  ]
172
186
  }
@@ -183,7 +197,6 @@ function DIDSpaceConnection({
183
197
  ...rest
184
198
  }) {
185
199
  const isMobile = useMobile();
186
- const { t } = useLocale();
187
200
  const { session } = useSessionContext();
188
201
  let isCompact = compat;
189
202
  if (isUndefined(isCompact)) {
@@ -211,8 +224,8 @@ function DIDSpaceConnection({
211
224
  spaceStatus.current = DIDSpaceStatus.LOADING;
212
225
  spaceName = /* @__PURE__ */ jsx(Skeleton, { variant: "text", sx: { width: "180px", fontSize: "1rem" } });
213
226
  } else if (error instanceof AxiosError) {
214
- spaceName = t("common.unknown");
215
227
  spaceStatus.current = DIDSpaceStatus.UNAVAILABLE;
228
+ spaceName = "";
216
229
  if (isCorsBlockedError(error)) {
217
230
  errorCode = SPACE_CONNECT_ERROR_CODE.CORS_BLOCKED;
218
231
  } else {
@@ -35,12 +35,14 @@ const en = flatten({
35
35
  },
36
36
  error: {
37
37
  tag: "Need Attention",
38
+ blockedByCors: "Access blocked by CORS",
39
+ unreachable: "DID Space is unreachable",
38
40
  expired: "DID Spaces has expired, click this link to re-subscribe",
39
41
  pastDue: "DID Spaces has unpaid bills, click this link to complete payment",
40
42
  invalid: "DID Spaces subscription anomaly, click this link to check",
41
43
  unitLimit: "DID Spaces free quota has been used up, click this link to pay for the upgrade",
42
- corsBlocked: "The connection request may fail due to CORS restrictions:\n1. Please contact the DID Space administrator to verify the relevant configuration.\n2. If you are the administrator, click the link below to view the detailed setup guide and resolve the issue.",
43
- networkError: "Network error",
44
+ cors: "The connection request may fail due to CORS restrictions:\n1. Please contact the DID Space administrator to verify the relevant configuration.\n2. If you are the administrator, click the link below to view the detailed setup guide and resolve the issue.",
45
+ networkError: "DID Space is currently unreachable due to potential server issues, network problems, or maintenance. Please click the link to visit the homepage and check its status.",
44
46
  incompatible: "The current connection of DID Spaces version ({spaceVersion}) is not compatible with the component version ({expectVersion}). Please contact the administrator for adjustments.\nIf you are the administrator, you can click the link below to take action."
45
47
  },
46
48
  gateway: {
@@ -35,12 +35,14 @@ const zh = flatten({
35
35
  },
36
36
  error: {
37
37
  tag: "\u9700\u8981\u5173\u6CE8",
38
+ blockedByCors: "\u56E0 CORS \u9650\u5236\uFF0C\u8BBF\u95EE\u88AB\u963B\u6B62",
39
+ unreachable: "DID Space \u65E0\u6CD5\u8BBF\u95EE",
38
40
  expired: "DID Spaces \u5DF2\u8FC7\u671F\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u91CD\u65B0\u8BA2\u9605",
39
41
  pastDue: "DID Spaces \u6709\u672A\u652F\u4ED8\u8D26\u5355\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u5B8C\u6210\u652F\u4ED8",
40
42
  invalid: "DID Spaces \u8BA2\u9605\u5F02\u5E38\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u68C0\u67E5",
41
43
  unitLimit: "DID Spaces \u514D\u8D39\u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u70B9\u51FB\u6B64\u94FE\u63A5\u4ED8\u8D39\u5347\u7EA7",
42
- corsBlocked: "\u8FDE\u63A5\u8BF7\u6C42\u53EF\u80FD\u56E0 CORS \u9650\u5236\u800C\u5931\u8D25\uFF1A\n1. \u8BF7\u8054\u7CFB DID Space \u7BA1\u7406\u5458\u786E\u8BA4\u76F8\u5173\u914D\u7F6E\u662F\u5426\u6B63\u786E\u3002\n2. \u5982\u679C\u60A8\u662F\u7BA1\u7406\u5458\uFF0C\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\uFF0C\u67E5\u770B\u8BE6\u7EC6\u7684\u914D\u7F6E\u6307\u5357\u5E76\u89E3\u51B3\u95EE\u9898\u3002",
43
- networkError: "\u7F51\u7EDC\u9519\u8BEF",
44
+ cors: "\u8FDE\u63A5\u8BF7\u6C42\u53EF\u80FD\u56E0 CORS \u9650\u5236\u800C\u5931\u8D25\uFF1A\n1. \u8BF7\u8054\u7CFB DID Space \u7BA1\u7406\u5458\u786E\u8BA4\u76F8\u5173\u914D\u7F6E\u662F\u5426\u6B63\u786E\u3002\n2. \u5982\u679C\u60A8\u662F\u7BA1\u7406\u5458\uFF0C\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\uFF0C\u67E5\u770B\u8BE6\u7EC6\u7684\u914D\u7F6E\u6307\u5357\u5E76\u89E3\u51B3\u95EE\u9898\u3002",
45
+ networkError: "\u7531\u4E8E\u6F5C\u5728\u7684\u670D\u52A1\u5668\u95EE\u9898\u3001\u7F51\u7EDC\u95EE\u9898\u6216\u7EF4\u62A4\uFF0CDID Space \u76EE\u524D\u65E0\u6CD5\u8BBF\u95EE\u3002\u8BF7\u70B9\u51FB\u94FE\u63A5\u8BBF\u95EE\u4E3B\u9875\u5E76\u67E5\u770B\u5176\u72B6\u6001\u3002",
44
46
  incompatible: "\u5F53\u524D\u8FDE\u63A5\u7684 DID Spaces \u7248\u672C({spaceVersion}) \u4E0E\u7EC4\u4EF6\u7248\u672C({expectVersion})\u4E0D\u517C\u5BB9\u3002\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u8C03\u6574\u3002\n\u5982\u679C\u60A8\u662F\u7BA1\u7406\u5458\uFF0C\u53EF\u4EE5\u5355\u51FB\u4E0B\u9762\u7684\u94FE\u63A5\u8FDB\u884C\u64CD\u4F5C\u3002"
45
47
  },
46
48
  gateway: {
@@ -1,3 +1,3 @@
1
- const version = "1.0.35";
1
+ const version = "1.0.36";
2
2
 
3
3
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/did-space-react",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
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.35",
84
+ "@did-space/core": "^1.0.36",
85
85
  "@mui/icons-material": "^5.16.14",
86
86
  "@mui/lab": "^5.0.0-alpha.175",
87
87
  "@mui/material": "^5.16.14",
@@ -109,9 +109,9 @@
109
109
  "access": "public"
110
110
  },
111
111
  "devDependencies": {
112
- "@arcblock/did-connect": "^2.12.27",
112
+ "@arcblock/did-connect": "^2.12.31",
113
113
  "@arcblock/eslint-config-ts": "^0.3.3",
114
- "@arcblock/ux": "^2.12.27",
114
+ "@arcblock/ux": "^2.12.31",
115
115
  "@babel/cli": "^7.26.4",
116
116
  "@babel/core": "^7.26.10",
117
117
  "@babel/preset-env": "^7.26.9",
@@ -131,7 +131,7 @@
131
131
  "@types/react": "^18.3.18",
132
132
  "@types/react-dom": "^18.3.5",
133
133
  "@vitejs/plugin-legacy": "^5.4.3",
134
- "@vitest/coverage-v8": "^3.0.8",
134
+ "@vitest/coverage-v8": "^3.0.9",
135
135
  "babel-plugin-inline-react-svg": "^2.0.2",
136
136
  "copyfiles": "^2.4.1",
137
137
  "eslint": "^8.57.1",
@@ -148,7 +148,7 @@
148
148
  "vite": "^5.4.14",
149
149
  "vite-plugin-babel": "^1.3.0",
150
150
  "vite-plugin-node-polyfills": "^0.22.0",
151
- "vitest": "^3.0.8"
151
+ "vitest": "^3.0.9"
152
152
  },
153
- "gitHead": "990b2794c39b59532d452cddf81e41f9d5cff2c2"
153
+ "gitHead": "11f2a05606c5b165a48602cd5b1ef7171e37304b"
154
154
  }