@abtnode/ux 1.16.30-beta-cd65989e → 1.16.30

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.
@@ -17,7 +17,7 @@ import { useReactive } from 'ahooks';
17
17
  import { Icon } from '@iconify/react';
18
18
  import { USER_TYPE } from '@abtnode/constant';
19
19
  import { LOGIN_PROVIDER, PROVIDER_NAME, TeamEvents } from '@blocklet/constant';
20
- import { Button } from '@mui/material';
20
+ import { Button, Tooltip } from '@mui/material';
21
21
  import Tag from '../../tag';
22
22
  import DidAddress from '../../did-address';
23
23
  import Permission from '../../permission';
@@ -315,11 +315,16 @@ export default function Member({
315
315
  display: 'flex',
316
316
  flexDirection: 'row',
317
317
  alignItems: 'center',
318
- justifyContent: 'space-between'
318
+ justifyContent: 'space-between',
319
+ overflow: 'hidden'
319
320
  },
320
321
  children: [/*#__PURE__*/_jsxs(Box, {
321
- display: "flex",
322
- alignItems: "center",
322
+ sx: {
323
+ display: 'flex',
324
+ alignItems: 'center',
325
+ width: '100%',
326
+ overflow: 'hidden'
327
+ },
323
328
  className: "info",
324
329
  children: [/*#__PURE__*/_jsx(Avatar, {
325
330
  src: pageState.user.avatar,
@@ -330,12 +335,26 @@ export default function Member({
330
335
  marginRight: 16
331
336
  }
332
337
  }), /*#__PURE__*/_jsxs(Box, {
333
- children: [/*#__PURE__*/_jsx(Box, {
334
- className: "name",
335
- children: pageState.user.fullName
338
+ sx: {
339
+ flex: 1,
340
+ overflow: 'hidden'
341
+ },
342
+ children: [/*#__PURE__*/_jsx(Tooltip, {
343
+ title: pageState.user.fullName,
344
+ children: /*#__PURE__*/_jsx(Box, {
345
+ className: "name",
346
+ sx: {
347
+ flex: 1,
348
+ overflow: 'hidden',
349
+ textOverflow: 'ellipsis'
350
+ },
351
+ children: pageState.user.fullName
352
+ })
336
353
  }), /*#__PURE__*/_jsx(Box, {
337
354
  className: "did",
338
- mt: 1,
355
+ sx: {
356
+ mt: 1
357
+ },
339
358
  children: /*#__PURE__*/_jsx(DidAddress, {
340
359
  compact: true,
341
360
  responsive: false,
@@ -344,10 +363,14 @@ export default function Member({
344
363
  })
345
364
  })]
346
365
  })]
347
- }), !!inService && /*#__PURE__*/_jsx("a", {
366
+ }), !!inService && /*#__PURE__*/_jsx(Box, {
348
367
  href: profileUrl,
349
368
  target: "_blank",
350
369
  rel: "noreferrer",
370
+ component: "a",
371
+ sx: {
372
+ flexShrink: 0
373
+ },
351
374
  children: /*#__PURE__*/_jsxs(Button, {
352
375
  variant: "contained",
353
376
  color: "primary",
@@ -36,11 +36,11 @@ export default function ToggleUserApproval({
36
36
  const [loading, setLoading] = useState(false);
37
37
  const [show, setShow] = useState(false);
38
38
  const open = () => setShow(true);
39
- const updateUserApproval = async d => {
39
+ const updateUserApproval = async _user => {
40
40
  const {
41
41
  did,
42
42
  approved
43
- } = d;
43
+ } = _user;
44
44
  if (loading) {
45
45
  return;
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.30-beta-cd65989e",
3
+ "version": "1.16.30",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,11 +25,11 @@
25
25
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@abtnode/auth": "1.16.30-beta-cd65989e",
29
- "@abtnode/constant": "1.16.30-beta-cd65989e",
30
- "@abtnode/util": "1.16.30-beta-cd65989e",
28
+ "@abtnode/auth": "1.16.30",
29
+ "@abtnode/constant": "1.16.30",
30
+ "@abtnode/util": "1.16.30",
31
31
  "@ahooksjs/use-url-state": "^3.5.1",
32
- "@arcblock/did": "^1.18.131",
32
+ "@arcblock/did": "^1.18.132",
33
33
  "@arcblock/did-connect": "^2.10.22",
34
34
  "@arcblock/did-motif": "^1.1.13",
35
35
  "@arcblock/icons": "^2.10.22",
@@ -37,13 +37,13 @@
37
37
  "@arcblock/react-hooks": "^2.10.22",
38
38
  "@arcblock/terminal": "^2.10.22",
39
39
  "@arcblock/ux": "^2.10.22",
40
- "@blocklet/constant": "1.16.30-beta-cd65989e",
41
- "@blocklet/js-sdk": "1.16.30-beta-cd65989e",
40
+ "@blocklet/constant": "1.16.30",
41
+ "@blocklet/js-sdk": "1.16.30",
42
42
  "@blocklet/launcher-layout": "2.10.22",
43
43
  "@blocklet/list": "^0.13.18",
44
- "@blocklet/meta": "1.16.30-beta-cd65989e",
44
+ "@blocklet/meta": "1.16.30",
45
45
  "@blocklet/ui-react": "^2.10.22",
46
- "@blocklet/uploader": "0.1.22",
46
+ "@blocklet/uploader": "0.1.23",
47
47
  "@emotion/react": "^11.10.4",
48
48
  "@emotion/styled": "^11.10.4",
49
49
  "@iconify-icons/logos": "^1.2.36",
@@ -56,7 +56,7 @@
56
56
  "@mui/styles": "^5.15.11",
57
57
  "@mui/x-date-pickers": "^6.19.0",
58
58
  "@mui/x-tree-view": "^6.17.0",
59
- "@ocap/client": "1.18.131",
59
+ "@ocap/client": "1.18.132",
60
60
  "@uiw/react-markdown-preview": "^5.1.1",
61
61
  "ahooks": "^3.7.8",
62
62
  "axios": "^1.7.2",
@@ -108,5 +108,5 @@
108
108
  "jest": "^29.7.0",
109
109
  "jest-environment-jsdom": "^29.7.0"
110
110
  },
111
- "gitHead": "8646768b8ac83cdb8c213ab17fe8030f3d5dc6fc"
111
+ "gitHead": "18420639259c736016b19152229183d9fc1c1656"
112
112
  }