@blocklet/ui-react 2.10.26 → 2.10.28

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,6 +52,7 @@ export type User = UserPublicInfo & {
52
52
  connectedAccounts?: any[];
53
53
  locale?: string;
54
54
  url: string;
55
+ inviter?: string;
55
56
  };
56
57
  export type UserCenterTab = {
57
58
  value: string;
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { Box } from "@mui/material";
3
3
  import { Icon } from "@iconify/react";
4
4
  import { useMemoizedFn, useCreation } from "ahooks";
5
+ import DID from "@arcblock/ux/lib/DID";
5
6
  import MailOutlineRoundedIcon from "@iconify-icons/material-symbols/mail-outline-rounded";
6
7
  import ScheduleOutlineRoundedIcon from "@iconify-icons/material-symbols/schedule-outline-rounded";
7
8
  import MoreTimeRoundedIcon from "@iconify-icons/material-symbols/more-time-rounded";
@@ -58,6 +59,11 @@ export default function UserInfo({
58
59
  title: t("registerFrom"),
59
60
  content: readableProvider
60
61
  });
62
+ userInfoListData.push({
63
+ icon: /* @__PURE__ */ jsx(Icon, { fontSize: 16, icon: CaptivePortalRoundedIcon }),
64
+ title: t("invitedBy"),
65
+ content: user?.inviter ? /* @__PURE__ */ jsx(DID, { did: user.inviter, showQrcode: true, copyable: true, compact: true, responsive: true, locale }) : "-"
66
+ });
61
67
  }
62
68
  return /* @__PURE__ */ jsx(
63
69
  Box,
@@ -10,6 +10,7 @@ export declare const translations: {
10
10
  lastLoginIp: string;
11
11
  createdAt: string;
12
12
  registerFrom: string;
13
+ invitedBy: string;
13
14
  unknown: string;
14
15
  walletNotification: string;
15
16
  emailNotification: string;
@@ -100,6 +101,7 @@ export declare const translations: {
100
101
  lastLoginIp: string;
101
102
  createdAt: string;
102
103
  registerFrom: string;
104
+ invitedBy: string;
103
105
  unknown: string;
104
106
  walletNotification: string;
105
107
  emailNotification: string;
@@ -10,6 +10,7 @@ export const translations = {
10
10
  lastLoginIp: "\u4E0A\u6B21\u767B\u5F55\u5730\u5740",
11
11
  createdAt: "\u52A0\u5165\u65F6\u95F4",
12
12
  registerFrom: "\u6CE8\u518C\u6765\u6E90",
13
+ invitedBy: "\u9080\u8BF7\u4EBA",
13
14
  unknown: "\u672A\u77E5",
14
15
  walletNotification: "\u94B1\u5305\u901A\u77E5",
15
16
  emailNotification: "\u90AE\u4EF6\u901A\u77E5",
@@ -100,6 +101,7 @@ export const translations = {
100
101
  lastLoginIp: "Last IP",
101
102
  createdAt: "Member Since",
102
103
  registerFrom: "Register From",
104
+ invitedBy: "Invited By",
103
105
  unknown: "Unknown",
104
106
  walletNotification: "DID Wallet notification",
105
107
  emailNotification: "Email notification",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/ui-react",
3
- "version": "2.10.26",
3
+ "version": "2.10.28",
4
4
  "description": "Some useful front-end web components that can be used in Blocklets.",
5
5
  "keywords": [
6
6
  "react",
@@ -32,13 +32,13 @@
32
32
  "url": "https://github.com/ArcBlock/ux/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@arcblock/bridge": "^2.10.26",
36
- "@arcblock/react-hooks": "^2.10.26",
35
+ "@arcblock/bridge": "^2.10.28",
36
+ "@arcblock/react-hooks": "^2.10.28",
37
37
  "@iconify-icons/logos": "^1.2.36",
38
38
  "@iconify-icons/material-symbols": "^1.2.58",
39
39
  "@iconify/react": "^4.1.1",
40
40
  "ahooks": "^3.7.10",
41
- "axios": "^1.7.2",
41
+ "axios": "^1.7.5",
42
42
  "clsx": "^2.1.0",
43
43
  "core-js": "^3.25.5",
44
44
  "iconify-icon": "^1.0.8",
@@ -79,5 +79,5 @@
79
79
  "jest": "^28.1.3",
80
80
  "unbuild": "^2.0.0"
81
81
  },
82
- "gitHead": "196e6adde06c3c62b95faecf931e2120e366a2fe"
82
+ "gitHead": "71cb15e455bd2f3bdf906c14ae4ef87f9da9c271"
83
83
  }
@@ -58,6 +58,7 @@ export type User = UserPublicInfo & {
58
58
  connectedAccounts?: any[];
59
59
  locale?: string;
60
60
  url: string;
61
+ inviter?: string;
61
62
  };
62
63
 
63
64
  export type UserCenterTab = {
@@ -2,6 +2,7 @@ import { Box } from '@mui/material';
2
2
  import type { BoxProps } from '@mui/material';
3
3
  import { Icon } from '@iconify/react';
4
4
  import { useMemoizedFn, useCreation } from 'ahooks';
5
+ import DID from '@arcblock/ux/lib/DID';
5
6
  import MailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
6
7
  import ScheduleOutlineRoundedIcon from '@iconify-icons/material-symbols/schedule-outline-rounded';
7
8
  import MoreTimeRoundedIcon from '@iconify-icons/material-symbols/more-time-rounded';
@@ -68,6 +69,11 @@ export default function UserInfo({
68
69
  title: t('registerFrom'),
69
70
  content: readableProvider,
70
71
  });
72
+ userInfoListData.push({
73
+ icon: <Icon fontSize={16} icon={CaptivePortalRoundedIcon} />,
74
+ title: t('invitedBy'),
75
+ content: user?.inviter ? <DID did={user.inviter} showQrcode copyable compact responsive locale={locale} /> : '-',
76
+ });
71
77
  }
72
78
 
73
79
  return (
@@ -10,6 +10,7 @@ export const translations = {
10
10
  lastLoginIp: '上次登录地址',
11
11
  createdAt: '加入时间',
12
12
  registerFrom: '注册来源',
13
+ invitedBy: '邀请人',
13
14
  unknown: '未知',
14
15
  walletNotification: '钱包通知',
15
16
  emailNotification: '邮件通知',
@@ -101,6 +102,7 @@ export const translations = {
101
102
  lastLoginIp: 'Last IP',
102
103
  createdAt: 'Member Since',
103
104
  registerFrom: 'Register From',
105
+ invitedBy: 'Invited By',
104
106
  unknown: 'Unknown',
105
107
  walletNotification: 'DID Wallet notification',
106
108
  emailNotification: 'Email notification',