@arcblock/ux 3.1.42 → 3.1.43
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.
@@ -6,7 +6,7 @@ import b from "./tooltip-avatar.js";
|
|
6
6
|
import { renderTopRight as v } from "../components.js";
|
7
7
|
import W from "./shorten-label.js";
|
8
8
|
import j from "../Cards/social-actions.js";
|
9
|
-
function
|
9
|
+
function A({ ...s }) {
|
10
10
|
const {
|
11
11
|
user: e,
|
12
12
|
showDid: c,
|
@@ -87,7 +87,7 @@ function D({ ...s }) {
|
|
87
87
|
) : null
|
88
88
|
] })
|
89
89
|
] }),
|
90
|
-
i ? /* @__PURE__ */ t(C, { sx: { width: "100%" } }) : null,
|
90
|
+
i && (l || o.showSocialActions) ? /* @__PURE__ */ t(C, { sx: { width: "100%" } }) : null,
|
91
91
|
l ? null : /* @__PURE__ */ t(
|
92
92
|
j,
|
93
93
|
{
|
@@ -105,7 +105,7 @@ function D({ ...s }) {
|
|
105
105
|
}
|
106
106
|
);
|
107
107
|
}
|
108
|
-
const P = g(
|
108
|
+
const P = g(A);
|
109
109
|
export {
|
110
110
|
P as default
|
111
111
|
};
|
package/lib/Util/constant.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare const SESSION_TOKEN_STORAGE_KEY = "login_token";
|
|
5
5
|
export declare const REFRESH_TOKEN_STORAGE_KEY = "refresh_token";
|
6
6
|
export declare const RELAY_SOCKET_PREFIX = "/.well-known/service";
|
7
7
|
export declare const API_DID_PREFIX = "/api/did";
|
8
|
-
export declare const DASHBOARD_URL = "/.well-known/service/admin";
|
8
|
+
export declare const DASHBOARD_URL = "/.well-known/service/admin/overview";
|
9
9
|
export declare const PROFILE_URL = "/.well-known/service/user";
|
10
10
|
export declare const DID_SPACE_URL = "/.well-known/service/user/did-spaces";
|
11
11
|
export declare const NAVIGATION_URL = "/.well-known/service/admin/navigation";
|
package/lib/Util/constant.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
const T = 300,
|
1
|
+
const T = 300, e = 1800, t = "/.well-known/service", o = "login_token", _ = "refresh_token", I = "/.well-known/service", A = "/api/did", n = `${t}/admin/overview`, s = `${t}/user`, O = `${t}/user/did-spaces`, R = `${t}/admin/navigation`, i = "did:abt:", D = {
|
2
2
|
VALID: "valid",
|
3
3
|
REVOKED: "revoked"
|
4
4
|
}, E = {
|
@@ -11,7 +11,7 @@ const T = 300, _ = 1800, t = "/.well-known/service", e = "login_token", o = "ref
|
|
11
11
|
NFT: "nft",
|
12
12
|
PASSKEY: "passkey",
|
13
13
|
TWITTER: "twitter"
|
14
|
-
},
|
14
|
+
}, L = {
|
15
15
|
[E.EMAIL]: "Email",
|
16
16
|
[E.AUTH0]: "Auth0",
|
17
17
|
[E.APPLE]: "Apple",
|
@@ -34,18 +34,18 @@ export {
|
|
34
34
|
t as BLOCKLET_SERVICE_PATH_PREFIX,
|
35
35
|
n as DASHBOARD_URL,
|
36
36
|
T as DEFAULT_TIMEOUT,
|
37
|
-
|
37
|
+
e as DEFAULT_WINDOW_TIMEOUT,
|
38
38
|
a as DID_CONNECT_MEDIUM_WIDTH,
|
39
39
|
c as DID_CONNECT_SMALL_WIDTH,
|
40
|
-
|
40
|
+
i as DID_PREFIX,
|
41
41
|
O as DID_SPACE_URL,
|
42
42
|
E as LOGIN_PROVIDER,
|
43
|
-
|
43
|
+
L as LOGIN_PROVIDER_NAME,
|
44
44
|
R as NAVIGATION_URL,
|
45
45
|
l as OAUTH_PROVIDER,
|
46
|
-
|
46
|
+
D as PASSPORT_STATUS,
|
47
47
|
s as PROFILE_URL,
|
48
|
-
|
48
|
+
_ as REFRESH_TOKEN_STORAGE_KEY,
|
49
49
|
I as RELAY_SOCKET_PREFIX,
|
50
|
-
|
50
|
+
o as SESSION_TOKEN_STORAGE_KEY
|
51
51
|
};
|
package/lib/package.json.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.43",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -68,16 +68,16 @@
|
|
68
68
|
"react": "^19.0.0",
|
69
69
|
"react-router-dom": "^6.22.3"
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "f8ee8cbf1c349c55a31ed833de014f4db6222976",
|
72
72
|
"dependencies": {
|
73
|
-
"@arcblock/bridge": "3.1.
|
73
|
+
"@arcblock/bridge": "3.1.43",
|
74
74
|
"@arcblock/did": "^1.21.3",
|
75
75
|
"@arcblock/did-motif": "^1.1.14",
|
76
|
-
"@arcblock/icons": "3.1.
|
77
|
-
"@arcblock/nft-display": "3.1.
|
78
|
-
"@arcblock/react-hooks": "3.1.
|
76
|
+
"@arcblock/icons": "3.1.43",
|
77
|
+
"@arcblock/nft-display": "3.1.43",
|
78
|
+
"@arcblock/react-hooks": "3.1.43",
|
79
79
|
"@blocklet/js-sdk": "^1.16.49-beta-20250823-082650-626c1473",
|
80
|
-
"@blocklet/theme": "3.1.
|
80
|
+
"@blocklet/theme": "3.1.43",
|
81
81
|
"@fontsource/roboto": "~5.1.1",
|
82
82
|
"@fontsource/ubuntu-mono": "^5.2.6",
|
83
83
|
"@iconify-icons/logos": "^1.2.36",
|
@@ -93,7 +93,7 @@ function MinimalContent({ ...props }: MinimalContentProps) {
|
|
93
93
|
) : null}
|
94
94
|
</Box>
|
95
95
|
</Box>
|
96
|
-
{isSmallScreen ? <Divider sx={{ width: '100%' }} /> : null}
|
96
|
+
{isSmallScreen && (renderTopRightContent || rest.showSocialActions) ? <Divider sx={{ width: '100%' }} /> : null}
|
97
97
|
{!renderTopRightContent ? (
|
98
98
|
<SocialActions
|
99
99
|
onFollowClick={rest.onFollowClick}
|
package/src/Util/constant.ts
CHANGED
@@ -7,7 +7,7 @@ export const REFRESH_TOKEN_STORAGE_KEY = 'refresh_token';
|
|
7
7
|
export const RELAY_SOCKET_PREFIX = '/.well-known/service';
|
8
8
|
export const API_DID_PREFIX = '/api/did';
|
9
9
|
|
10
|
-
export const DASHBOARD_URL = `${BLOCKLET_SERVICE_PATH_PREFIX}/admin`;
|
10
|
+
export const DASHBOARD_URL = `${BLOCKLET_SERVICE_PATH_PREFIX}/admin/overview`;
|
11
11
|
export const PROFILE_URL = `${BLOCKLET_SERVICE_PATH_PREFIX}/user`;
|
12
12
|
export const DID_SPACE_URL = `${BLOCKLET_SERVICE_PATH_PREFIX}/user/did-spaces`;
|
13
13
|
export const NAVIGATION_URL = `${BLOCKLET_SERVICE_PATH_PREFIX}/admin/navigation`;
|
package/src/Util/index.ts
CHANGED
@@ -687,7 +687,7 @@ export const getJsSdkVersion = () => {
|
|
687
687
|
* @param {*} version2
|
688
688
|
* @returns boolean
|
689
689
|
*/
|
690
|
-
export const compareVersions = (version1: string, version2: string) => {
|
690
|
+
export const compareVersions = (version1: string, version2: string): boolean => {
|
691
691
|
const getDateVersion = (version: string) => {
|
692
692
|
const match = version.match(/^(\d+\.\d+\.\d+(?:-[^-]+?-\d{8}))/);
|
693
693
|
return match ? match[1] : version;
|