@abtnode/ux 1.16.26-beta-818ea1c5 → 1.16.26-beta-351de484

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.
Files changed (81) hide show
  1. package/es/blocklet/{oauth → authentication/federated}/federated-detail-dialog.js +2 -2
  2. package/es/blocklet/{oauth → authentication/federated}/federated-join-dialog.js +2 -2
  3. package/es/blocklet/{oauth → authentication/federated}/federated-site-list.js +3 -3
  4. package/es/blocklet/{oauth/federated.js → authentication/federated/index.js} +1 -1
  5. package/es/blocklet/{oauth → authentication}/index.js +7 -5
  6. package/es/blocklet/authentication/oauth/apple.js +198 -0
  7. package/es/blocklet/{oauth → authentication/oauth}/auth0.js +27 -7
  8. package/es/blocklet/authentication/oauth/drag-item.js +177 -0
  9. package/es/blocklet/authentication/oauth/github.js +145 -0
  10. package/es/blocklet/authentication/oauth/google.js +144 -0
  11. package/es/blocklet/authentication/oauth/index.js +122 -0
  12. package/es/blocklet/preferences/index.js +6 -6
  13. package/es/blocklet/publish/connect-store-list.js +8 -6
  14. package/es/blocklet/publish/create-release.js +16 -7
  15. package/es/blocklet/publish/project-list.js +30 -3
  16. package/es/confirm.js +5 -2
  17. package/es/layout/feedback.js +7 -4
  18. package/es/locales/ar.js +34 -4
  19. package/es/locales/de.js +35 -5
  20. package/es/locales/en.js +34 -4
  21. package/es/locales/es.js +35 -5
  22. package/es/locales/fr.js +35 -5
  23. package/es/locales/hi.js +35 -5
  24. package/es/locales/i18n.db +0 -0
  25. package/es/locales/id.js +35 -5
  26. package/es/locales/ja.js +34 -4
  27. package/es/locales/ko.js +35 -5
  28. package/es/locales/pt.js +35 -5
  29. package/es/locales/ru.js +34 -4
  30. package/es/locales/th.js +34 -4
  31. package/es/locales/vi.js +34 -4
  32. package/es/locales/zh-tw.js +34 -4
  33. package/es/locales/zh.js +35 -5
  34. package/es/store/connect-actions.js +14 -5
  35. package/es/store/delete.js +7 -3
  36. package/es/store/item.js +99 -20
  37. package/es/team/members/index.js +16 -13
  38. package/es/team/members/member.js +2 -7
  39. package/lib/blocklet/{oauth → authentication/federated}/federated-detail-dialog.js +2 -2
  40. package/lib/blocklet/{oauth → authentication/federated}/federated-join-dialog.js +2 -2
  41. package/lib/blocklet/{oauth → authentication/federated}/federated-site-list.js +3 -3
  42. package/lib/blocklet/{oauth/federated.js → authentication/federated/index.js} +1 -1
  43. package/lib/blocklet/{oauth → authentication}/index.js +7 -5
  44. package/lib/blocklet/authentication/oauth/apple.js +226 -0
  45. package/lib/blocklet/authentication/oauth/auth0.js +189 -0
  46. package/lib/blocklet/authentication/oauth/drag-item.js +185 -0
  47. package/lib/blocklet/{oauth/auth0.js → authentication/oauth/github.js} +26 -25
  48. package/lib/blocklet/authentication/oauth/google.js +166 -0
  49. package/lib/blocklet/authentication/oauth/index.js +136 -0
  50. package/lib/blocklet/preferences/index.js +6 -6
  51. package/lib/blocklet/publish/connect-store-list.js +9 -8
  52. package/lib/blocklet/publish/create-release.js +16 -6
  53. package/lib/blocklet/publish/project-list.js +29 -2
  54. package/lib/confirm.js +7 -4
  55. package/lib/layout/feedback.js +6 -3
  56. package/lib/locales/ar.js +34 -4
  57. package/lib/locales/de.js +35 -5
  58. package/lib/locales/en.js +34 -4
  59. package/lib/locales/es.js +35 -5
  60. package/lib/locales/fr.js +35 -5
  61. package/lib/locales/hi.js +35 -5
  62. package/lib/locales/i18n.db +0 -0
  63. package/lib/locales/id.js +35 -5
  64. package/lib/locales/ja.js +34 -4
  65. package/lib/locales/ko.js +35 -5
  66. package/lib/locales/pt.js +35 -5
  67. package/lib/locales/ru.js +34 -4
  68. package/lib/locales/th.js +34 -4
  69. package/lib/locales/vi.js +34 -4
  70. package/lib/locales/zh-tw.js +34 -4
  71. package/lib/locales/zh.js +35 -5
  72. package/lib/store/connect-actions.js +14 -5
  73. package/lib/store/delete.js +7 -3
  74. package/lib/store/item.js +111 -19
  75. package/lib/team/members/index.js +13 -11
  76. package/lib/team/members/member.js +1 -6
  77. package/package.json +30 -20
  78. /package/es/blocklet/{oauth → authentication}/common-settings.js +0 -0
  79. /package/es/blocklet/{oauth → authentication/federated}/federated-invite-dialog.js +0 -0
  80. /package/lib/blocklet/{oauth → authentication}/common-settings.js +0 -0
  81. /package/lib/blocklet/{oauth → authentication/federated}/federated-invite-dialog.js +0 -0
package/es/locales/th.js CHANGED
@@ -663,7 +663,6 @@ export default {
663
663
  blockletEmptyTip: 'ไม่มีบล็อกเลตใดๆ ที่นี่',
664
664
  createBlockletTip: 'คุณสามารถสร้างบล็อกเล็ตใหม่ผ่านทรัพยากรที่มีอยู่และองค์ประกอบในแอปพลิเคชันนี้ได้',
665
665
  createBlocklet: 'บล็อกใหม่',
666
- deleteBlockletTip: 'Blocklet ไม่สามารถกู้คืนได้หลังการลบ กรุณายืนยัน',
667
666
  componentNotRunning: 'ส่วนประกอบ {name} ไม่ได้ทำงาน โปรดเริ่มต้นใช้งานก่อน',
668
667
  releaseEmptyTip: 'ไม่มีการเผยแพร่ที่นี่',
669
668
  createReleaseTip: 'คุณสามารถสร้างการเปิดตัวของโบล็กเล็ตพร้อมกับบันทึกการเปิดตัวและทรัพยากรสำหรับผู้อื่นที่ต้องการใช้',
@@ -708,7 +707,11 @@ export default {
708
707
  title: 'ลบ {name}',
709
708
  scan: 'สแกนรหัส QR ด้านล่างเพื่อลบ {name}',
710
709
  confirm: 'ยืนยันการใช้งานกระเป๋าสตางค์ DID',
711
- success: 'โครงการ Blocklet ได้ถูกลบแล้ว โปรดดำเนินการต่อ'
710
+ success: 'โครงการ Blocklet ได้ถูกลบแล้ว โปรดดำเนินการต่อ',
711
+ tip1: 'โครงการ Blocklet จะไม่สามารถกู้คืนได้หลังจากการลบ',
712
+ tip2: 'คุณจะไม่สามารถเผยแพร่เวอร์ชันใหม่ไปยังบล็อกเลตที่ถูกลบอีกต่อไปแล้วซึ่งหมายความว่าบล็อกเลตจะไม่ได้รับการอัปเดตต่อไปในร้านค้าอีกต่อไป',
713
+ tip3: 'การลบบล็อกเล็ตจะไม่ส่งผลต่อเวอร์ชันที่เผยแพร่ในร้านค้า',
714
+ description: 'หลังจากลบ Blocklet แล้วคุณจะพบปัญหาต่อไปนี้ คุณแน่ใจหรือว่าต้องการลบหรือไม่?'
712
715
  }
713
716
  },
714
717
  titleValidationError: 'ความยาวของชื่อต้องมีอย่างน้อย 3 ตัวอักษร',
@@ -1685,12 +1688,39 @@ export default {
1685
1688
  domain: 'โดเมน',
1686
1689
  domainDescription: 'จำเป็นต้องระบุโดเมนของ Auth0',
1687
1690
  clientId: 'รหัสลูกค้า',
1688
- clientIdDescribe: 'ต้องใช้ clientId ของ Auth0'
1691
+ clientIdDescribe: 'ต้องใช้ clientId ของ Auth0',
1692
+ clientSecret: 'ความลับของลูกค้า'
1689
1693
  },
1690
1694
  comingSoon: 'มีวิธีการเข้าสู่ระบบเพิ่มเติมกำลังอยู่ในขั้นตอนก่อสร้าง',
1691
1695
  moreLogin: 'เข้าสู่ระบบเพิ่มเติม',
1692
1696
  federated: 'เข้าสู่ระบบเฟเดอเรท',
1693
- runTest: 'ทดสอบ'
1697
+ runTest: 'ทดสอบ',
1698
+ github: {
1699
+ enable: 'เปิดใช้งานเข้าสู่ระบบ Github',
1700
+ clientId: 'รหัสลูกค้า',
1701
+ clientIdDescribe: 'ต้องการ clientId ของแอปพลิเคชัน OAuth บน Github',
1702
+ clientSecret: 'รหัสลับของลูกค้า',
1703
+ clientSecretDescribe: 'จำเป็นต้องมี clientSecret แอปพลิเคชัน Github OAuth'
1704
+ },
1705
+ google: {
1706
+ enable: 'เปิดใช้งานการเข้าสู่ระบบด้วย Google',
1707
+ clientId: 'รหัสลูกค้า',
1708
+ clientIdDescribe: 'ต้องการ clientId ของแอปพลิเคชัน Google OAuth',
1709
+ clientSecret: 'ความลับของลูกค้า',
1710
+ clientSecretDescribe: 'ต้องมี clientSecret ของแอปพลิเคชัน OAuth ของ Google'
1711
+ },
1712
+ apple: {
1713
+ enable: 'เปิดใช้งานเข้าสู่ระบบ Apple',
1714
+ teamId: 'รหัสทีม',
1715
+ teamIdDescribe: 'ต้องการ ID ทีมของแอปพลิเคชัน OAuth ของแอปเปิ้ล',
1716
+ serviceId: 'รหัสบริการ',
1717
+ serviceIdDescribe: 'จำเป็นต้องมี Apple OAuth Service ID',
1718
+ keyId: 'รหัสคีย์',
1719
+ keyIdDescribe: 'ต้องการรหัสแอป Apple OAuth',
1720
+ authKey: 'รหัส Auth',
1721
+ authKeyDescribe: 'ต้องใช้รหัสการตรวจสอบสิทธิ์ของแอป OAuth ของ Apple'
1722
+ },
1723
+ oauth: 'การเข้าสู่ระบบของบุคคลที่สาม'
1694
1724
  },
1695
1725
  expiration: {
1696
1726
  mobile: {
package/es/locales/vi.js CHANGED
@@ -663,7 +663,6 @@ export default {
663
663
  blockletEmptyTip: 'Ở đây không có khối',
664
664
  createBlockletTip: 'Bạn có thể tạo blocklet mới thông qua các tài nguyên, thành phần và cấu hình hiện có trong ứng dụng này',
665
665
  createBlocklet: 'Khối mới',
666
- deleteBlockletTip: 'Blocklet không thể khôi phục sau khi xóa, vui lòng xác nhận',
667
666
  componentNotRunning: 'Thành phần {name} không đang chạy, vui lòng khởi động trước',
668
667
  releaseEmptyTip: 'Không có bản phát hành ở đây',
669
668
  createReleaseTip: 'Bạn có thể tạo một phiên bản của blocklet, cùng với ghi chú về phiên bản và tài nguyên, để mọi người khác có thể sử dụng',
@@ -708,7 +707,11 @@ export default {
708
707
  title: 'Xóa {name}',
709
708
  scan: 'Quét mã QR bên dưới để xóa {name}',
710
709
  confirm: 'Xác nhận sử dụng Ví DID',
711
- success: 'Dự án Blocklet đã bị xóa, vui lòng tiếp tục hoạt động của bạn'
710
+ success: 'Dự án Blocklet đã bị xóa, vui lòng tiếp tục hoạt động của bạn',
711
+ tip1: 'Dự án Blocklet sẽ không thể khôi phục sau khi xóa',
712
+ tip2: 'Bạn sẽ không còn có khả năng xuất bản phiên bản mới cho Blocklet đã bị xóa, điều đó có nghĩa là Blocklet sẽ không được cập nhật nữa trên Cửa hàng.',
713
+ tip3: 'Xóa Blocklet sẽ không ảnh hưởng đến phiên bản hiện tại đã được xuất bản trong Cửa hàng.',
714
+ description: 'Sau khi xóa Blocklet, bạn sẽ gặp các vấn đề sau, bạn có chắc chắn muốn xóa nó không?'
712
715
  }
713
716
  },
714
717
  titleValidationError: 'Độ dài tiêu đề phải ít nhất 3 ký tự',
@@ -1685,12 +1688,39 @@ export default {
1685
1688
  domain: 'Tên miền',
1686
1689
  domainDescription: 'Yêu cầu tên miền của Auth0',
1687
1690
  clientId: 'Mã khách hàng',
1688
- clientIdDescribe: 'Yêu cầu clientId của Auth0'
1691
+ clientIdDescribe: 'Yêu cầu clientId của Auth0',
1692
+ clientSecret: 'Bí mật của khách hàng'
1689
1693
  },
1690
1694
  comingSoon: 'Có thêm phương thức đăng nhập đang được xây dựng',
1691
1695
  moreLogin: 'Đăng nhập thêm',
1692
1696
  federated: 'Đăng nhập liên kết',
1693
- runTest: 'Kiểm tra'
1697
+ runTest: 'Kiểm tra',
1698
+ github: {
1699
+ enable: 'Bật đăng nhập Github',
1700
+ clientId: 'ID Khách hàng',
1701
+ clientIdDescribe: 'Yêu cầu clientId của ứng dụng OAuth trên Github',
1702
+ clientSecret: 'Bí Mật Khách Hàng',
1703
+ clientSecretDescribe: 'Bí mật ứng dụng OAuth của Github là bắt buộc'
1704
+ },
1705
+ google: {
1706
+ enable: 'Kích hoạt đăng nhập Google',
1707
+ clientId: 'Mã khách hàng',
1708
+ clientIdDescribe: 'Yêu cầu clientId của ứng dụng Google OAuth',
1709
+ clientSecret: 'Bí Mật Khách Hàng',
1710
+ clientSecretDescribe: 'ClientSecret của ứng dụng Google OAuth là bắt buộc'
1711
+ },
1712
+ apple: {
1713
+ enable: 'Bật đăng nhập Apple',
1714
+ teamId: 'ID nhóm',
1715
+ teamIdDescribe: 'Cần có ID nhóm ứng dụng OAuth của Apple',
1716
+ serviceId: 'ID dịch vụ',
1717
+ serviceIdDescribe: 'Cần có ID Dịch vụ ứng dụng OAuth của Apple',
1718
+ keyId: 'Mã khóa',
1719
+ keyIdDescribe: 'Cần ID ứng dụng Apple OAuth',
1720
+ authKey: 'Khóa Auth',
1721
+ authKeyDescribe: 'Cần Khoá xác thực ứng dụng Apple OAuth'
1722
+ },
1723
+ oauth: 'Đăng nhập bên thứ ba'
1694
1724
  },
1695
1725
  expiration: {
1696
1726
  mobile: {
@@ -663,7 +663,6 @@ export default {
663
663
  blockletEmptyTip: '這裡沒有任何區塊元件',
664
664
  createBlockletTip: '您可以透過現有的資源、元件和設定,在此應用程式中建立新的 blocklet',
665
665
  createBlocklet: '新增 Blocklet',
666
- deleteBlockletTip: '刪除後無法恢復區塊,請確認',
667
666
  componentNotRunning: '{name}元件未運行,請先啟動。',
668
667
  releaseEmptyTip: '這裡沒有任何發布',
669
668
  createReleaseTip: '您可以創建一個區塊釋出,附帶釋出說明和資源,供其他人使用',
@@ -708,7 +707,11 @@ export default {
708
707
  title: '刪除{name}',
709
708
  scan: '掃描下方的QR碼以刪除{name}',
710
709
  confirm: '確認使用DID錢包',
711
- success: 'Blocklet 專案已被刪除,請繼續進行操作'
710
+ success: 'Blocklet 已被刪除,請繼續進行操作',
711
+ tip1: 'Blocklet 項目一旦刪除將無法恢復。',
712
+ tip2: '您將無法再向已刪除的 Blocklet 發佈新版本,這意味著該 Blocklet 將不再在商店中更新。',
713
+ tip3: '刪除 Blocklet 不會影響商店中已發布的版本。',
714
+ description: '您確定要刪除這個 Blocklet 嗎?刪除後可能會遇到以下問題:'
712
715
  }
713
716
  },
714
717
  titleValidationError: '標題長度必須至少為3到40個字符',
@@ -1685,12 +1688,39 @@ export default {
1685
1688
  domain: '網域',
1686
1689
  domainDescription: '需要填寫Auth0的網域',
1687
1690
  clientId: '客戶ID',
1688
- clientIdDescribe: '需要 Auth0 的 clientId'
1691
+ clientIdDescribe: '需要 Auth0 的 clientId',
1692
+ clientSecret: '客戶端密鑰'
1689
1693
  },
1690
1694
  comingSoon: '更多的登入方式正在建設中',
1691
1695
  moreLogin: '登入',
1692
1696
  federated: '聯邦登錄',
1693
- runTest: '測試'
1697
+ runTest: '測試',
1698
+ github: {
1699
+ enable: '啟用 Github 登入',
1700
+ clientId: '客戶 ID',
1701
+ clientIdDescribe: 'Github OAuth 應用程式客戶端 ID 是必要的',
1702
+ clientSecret: '客戶端密鑰',
1703
+ clientSecretDescribe: 'Github OAuth 應用程式的 clientSecret 資訊是必要的'
1704
+ },
1705
+ google: {
1706
+ enable: '啟用谷歌登入',
1707
+ clientId: '客戶ID',
1708
+ clientIdDescribe: '需要 Google OAuth 應用的客户端ID',
1709
+ clientSecret: '客戶機密',
1710
+ clientSecretDescribe: 'Google OAuth 應用程式的 clientSecret 是必須的'
1711
+ },
1712
+ apple: {
1713
+ enable: '啟用 Apple 登入',
1714
+ teamId: '團隊 ID',
1715
+ teamIdDescribe: '需要 Apple OAuth 應用程式團隊 ID',
1716
+ serviceId: '服務編號',
1717
+ serviceIdDescribe: '需要 Apple OAuth 應用服務 ID',
1718
+ keyId: '金鑰識別碼',
1719
+ keyIdDescribe: '需要 Apple OAuth 應用程式金鑰 ID',
1720
+ authKey: '認證密鑰',
1721
+ authKeyDescribe: '需要蘋果OAuth應用程序的認證密鑰'
1722
+ },
1723
+ oauth: '第三方登入'
1694
1724
  },
1695
1725
  expiration: {
1696
1726
  mobile: {
package/es/locales/zh.js CHANGED
@@ -666,7 +666,6 @@ export default {
666
666
  blockletEmptyTip: '这里没有任何 Blocklet',
667
667
  createBlockletTip: '你可以使用此应用的资源,组件,配置制作新的 Blocklet',
668
668
  createBlocklet: '新建 Blocklet',
669
- deleteBlockletTip: '此 Blocklet 删除后不可恢复,是否继续?',
670
669
  componentNotRunning: '组件 {name} 未运行',
671
670
  releaseEmptyTip: '这里没有任何发布',
672
671
  createReleaseTip: '您可以创建 Blocklet 新版本,在发布中包含说明和资源,以供其他人使用',
@@ -711,7 +710,11 @@ export default {
711
710
  title: '删除{name}',
712
711
  scan: '扫描下方的QR码以删除{name}',
713
712
  confirm: '确认使用DID钱包',
714
- success: 'Blocklet 项目已被删除,请继续操作'
713
+ success: 'Blocklet 已被删除,请继续操作',
714
+ tip1: 'Blocklet 一旦删除将无法恢复。',
715
+ tip2: '您将不能再向已删除的 Blocklet 发布新版本,这意味着 Blocklet 将不再在商店中更新。',
716
+ tip3: '删除 Blocklet 不会影响商店中已发布的版本。',
717
+ description: '您确定要删除这个 Blocklet 吗?删除后可能会遇到以下问题:'
715
718
  }
716
719
  },
717
720
  titleValidationError: '标题长度必须至少为3到40个字符',
@@ -1691,13 +1694,40 @@ export default {
1691
1694
  enable: '是否开启 Auth0 登录',
1692
1695
  domain: 'Domain',
1693
1696
  domainDescription: '请输入 Auth0 的 Domain',
1694
- clientId: 'ClientID',
1695
- clientIdDescribe: '请输入 Auth0 的 ClientID'
1697
+ clientId: '客户端ID',
1698
+ clientIdDescribe: '请输入 Auth0 的 ClientID',
1699
+ clientSecret: '客户端密钥'
1696
1700
  },
1697
1701
  comingSoon: '更多登录方式正在建设中',
1698
1702
  moreLogin: '更多登录方式',
1699
1703
  federated: '统一登录',
1700
- runTest: '测试'
1704
+ runTest: '测试',
1705
+ github: {
1706
+ enable: '启用 Github 登录',
1707
+ clientId: '客户识别码',
1708
+ clientIdDescribe: 'Github OAuth 应用程序客户端 ID 是必需的',
1709
+ clientSecret: '客户端密钥',
1710
+ clientSecretDescribe: 'Github OAuth 应用的 clientSecret 信息是必需的'
1711
+ },
1712
+ google: {
1713
+ enable: '启用谷歌登录',
1714
+ clientId: '客户ID',
1715
+ clientIdDescribe: '需要 Google OAuth 应用的客户端ID',
1716
+ clientSecret: '客户端密钥',
1717
+ clientSecretDescribe: 'Google OAuth 应用的 clientSecret 是必需的'
1718
+ },
1719
+ apple: {
1720
+ enable: '启用 Apple 登录',
1721
+ teamId: '团队 ID',
1722
+ teamIdDescribe: '需要 Apple OAuth 应用程序团队 ID',
1723
+ serviceId: '服务编号',
1724
+ serviceIdDescribe: '需要 Apple OAuth 应用服务 ID',
1725
+ keyId: '密钥 ID',
1726
+ keyIdDescribe: '需要 Apple OAuth 应用程序密钥 ID',
1727
+ authKey: '认证密钥',
1728
+ authKeyDescribe: '需要苹果OAuth应用程序的认证密钥'
1729
+ },
1730
+ oauth: '第三方登录'
1701
1731
  },
1702
1732
  expiration: {
1703
1733
  mobile: {
@@ -15,7 +15,8 @@ function ConnectActions({
15
15
  onConnect,
16
16
  onDelete,
17
17
  store,
18
- teamDid
18
+ teamDid,
19
+ projectId
19
20
  }) {
20
21
  const [anchorEl, setAnchorEl] = useState(null);
21
22
  const open = Boolean(anchorEl);
@@ -34,6 +35,10 @@ function ConnectActions({
34
35
  const handleClose = () => {
35
36
  setAnchorEl(null);
36
37
  };
38
+ const handleConnect = () => {
39
+ setShowReconnectConfirm(false);
40
+ onConnect();
41
+ };
37
42
  const actions = [{
38
43
  label: t('common.visitStore'),
39
44
  action: handleOpenUrl,
@@ -92,25 +97,27 @@ function ConnectActions({
92
97
  store: store,
93
98
  onDelete: onDelete,
94
99
  teamDid: teamDid,
100
+ projectId: projectId,
95
101
  children: /*#__PURE__*/_jsxs(MenuItem, {
96
102
  dense: true,
97
103
  disabled: store.protected,
98
104
  children: [/*#__PURE__*/_jsx(DeleteOutlineIcon, {
99
- color: "action",
100
105
  sx: {
106
+ color: 'error.main',
101
107
  marginRight: 1
102
108
  }
103
109
  }), /*#__PURE__*/_jsx(Box, {
104
- color: "action",
110
+ color: "error.main",
105
111
  children: t('common.delete')
106
112
  })]
107
113
  })
108
114
  })]
109
115
  }), showReconnectConfirm && /*#__PURE__*/_jsx(ConfirmDialog, {
116
+ displayError: true,
110
117
  title: `${t('common.reconnect')} ${store.name}`,
111
118
  description: t('blocklet.publish.reconnectStoreTip'),
112
119
  confirm: t('common.confirm'),
113
- onConfirm: onConnect,
120
+ onConfirm: handleConnect,
114
121
  onCancel: () => setShowReconnectConfirm(false)
115
122
  })]
116
123
  });
@@ -120,9 +127,11 @@ ConnectActions.propTypes = {
120
127
  onConnect: PropTypes.func,
121
128
  onDelete: PropTypes.func,
122
129
  store: PropTypes.object.isRequired,
123
- teamDid: PropTypes.string.isRequired
130
+ teamDid: PropTypes.string.isRequired,
131
+ projectId: PropTypes.string
124
132
  };
125
133
  ConnectActions.defaultProps = {
134
+ projectId: '',
126
135
  connected: false,
127
136
  onConnect: () => {},
128
137
  onDelete: () => {}
@@ -13,7 +13,8 @@ export default function DeleteStore({
13
13
  store,
14
14
  teamDid,
15
15
  onDelete,
16
- children
16
+ children,
17
+ projectId = ''
17
18
  }) {
18
19
  const {
19
20
  api
@@ -34,7 +35,8 @@ export default function DeleteStore({
34
35
  await api.deleteBlockletStore({
35
36
  input: {
36
37
  teamDid,
37
- url: store.url
38
+ url: store.url,
39
+ projectId
38
40
  }
39
41
  });
40
42
  if (onDelete && typeof onDelete === 'function') {
@@ -97,9 +99,11 @@ DeleteStore.propTypes = {
97
99
  children: PropTypes.node,
98
100
  teamDid: PropTypes.string.isRequired,
99
101
  store: PropTypes.object.isRequired,
100
- onDelete: PropTypes.func
102
+ onDelete: PropTypes.func,
103
+ projectId: PropTypes.string
101
104
  };
102
105
  DeleteStore.defaultProps = {
103
106
  children: null,
107
+ projectId: '',
104
108
  onDelete: () => {}
105
109
  };
package/es/store/item.js CHANGED
@@ -1,8 +1,9 @@
1
- import { makeStyles } from '@mui/styles';
2
- import { Typography, Button, ButtonGroup, CircularProgress } from '@mui/material';
1
+ import { makeStyles, styled } from '@mui/styles';
2
+ import { Typography, Button, ButtonGroup, CircularProgress, Box, Tooltip, tooltipClasses } from '@mui/material';
3
3
  import LaunchIcon from '@mui/icons-material/Launch';
4
4
  import PublishIcon from '@mui/icons-material/BackupOutlined';
5
5
  import LinkOutlinedIcon from '@mui/icons-material/LinkOutlined';
6
+ import AdminPanelSettingsIcon from '@mui/icons-material/AdminPanelSettings';
6
7
  import DoneIcon from '@mui/icons-material/Done';
7
8
  import PropTypes from 'prop-types';
8
9
  import { useEffect, useState } from 'react';
@@ -13,7 +14,8 @@ import DeleteStore from './delete';
13
14
  import { useNodeContext } from '../contexts/node';
14
15
  import { formatError } from '../util';
15
16
  import ConnectActions from './connect-actions';
16
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
+ import DidAddress from '../did-address';
18
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
19
  const useStyles = makeStyles(() => ({
18
20
  buttonText: {
19
21
  textTransform: 'none !important'
@@ -62,6 +64,28 @@ const useStyles = makeStyles(() => ({
62
64
  backgroundColor: '#e0e0e0'
63
65
  }
64
66
  }));
67
+ const WhiteTooltip = styled(({
68
+ className,
69
+ ...props
70
+ }) => /*#__PURE__*/_jsx(Tooltip, {
71
+ ...props,
72
+ classes: {
73
+ popper: className
74
+ }
75
+ }))(({
76
+ theme
77
+ }) => ({
78
+ [`& .${tooltipClasses.tooltip}`]: {
79
+ backgroundColor: '#fff',
80
+ color: 'rgba(0, 0, 0, 0.87)',
81
+ maxWidth: 220,
82
+ borderRadius: 8,
83
+ padding: theme.spacing(2),
84
+ fontSize: theme.typography.pxToRem(12),
85
+ border: '1px solid rgba(0,0,0,0.08)',
86
+ boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.05)'
87
+ }
88
+ }));
65
89
  export default function StoreItem({
66
90
  teamDid,
67
91
  projectId,
@@ -70,7 +94,7 @@ export default function StoreItem({
70
94
  onDelete,
71
95
  kind,
72
96
  published,
73
- connected,
97
+ connectedStore,
74
98
  releaseType,
75
99
  onPublish
76
100
  }) {
@@ -83,6 +107,7 @@ export default function StoreItem({
83
107
  } = useNodeContext();
84
108
  const [loading, setLoading] = useState(false);
85
109
  const isPublish = kind === 'publish';
110
+ const connected = !!connectedStore;
86
111
  const handleOpenUrl = e => {
87
112
  e.stopPropagation();
88
113
  if (isPublish) {
@@ -101,7 +126,8 @@ export default function StoreItem({
101
126
  did: teamDid,
102
127
  storeUrl: store.url,
103
128
  storeId: store.id,
104
- storeName: store.name
129
+ storeName: store.name,
130
+ projectId
105
131
  }
106
132
  }).then(res => {
107
133
  if (!res?.url) {
@@ -145,18 +171,24 @@ export default function StoreItem({
145
171
  }, [connected]);
146
172
  return /*#__PURE__*/_jsxs("div", {
147
173
  className: classes.box,
148
- children: [loading && /*#__PURE__*/_jsx(CircularProgress, {
174
+ children: [!isPublish && loading && /*#__PURE__*/_jsx(CircularProgress, {
149
175
  sx: {
150
176
  marginRight: 2
151
177
  },
152
178
  size: 16
153
179
  }), /*#__PURE__*/_jsxs("div", {
154
180
  className: classes.menuName,
155
- children: [/*#__PURE__*/_jsx(Typography, {
156
- component: "span",
157
- className: classes.title,
158
- variant: "subtitle1",
159
- children: store.name
181
+ children: [/*#__PURE__*/_jsx(Box, {
182
+ sx: {
183
+ display: 'flex',
184
+ flexDirection: 'row'
185
+ },
186
+ children: /*#__PURE__*/_jsx(Typography, {
187
+ component: "span",
188
+ className: classes.title,
189
+ variant: "subtitle1",
190
+ children: store.name
191
+ })
160
192
  }), /*#__PURE__*/_jsx(Typography, {
161
193
  className: classes.url,
162
194
  component: "span",
@@ -165,7 +197,29 @@ export default function StoreItem({
165
197
  })]
166
198
  }), /*#__PURE__*/_jsxs("div", {
167
199
  className: classes.actions,
168
- children: [isPublish && /*#__PURE__*/_jsxs(ButtonGroup, {
200
+ children: [connectedStore && /*#__PURE__*/_jsx(WhiteTooltip, {
201
+ placement: "left",
202
+ title: /*#__PURE__*/_jsxs(_Fragment, {
203
+ children: [/*#__PURE__*/_jsx(Typography, {
204
+ component: "span",
205
+ className: classes.title,
206
+ variant: "subtitle1",
207
+ children: connectedStore.developerName
208
+ }), /*#__PURE__*/_jsx(DidAddress, {
209
+ size: 14,
210
+ responsive: true,
211
+ did: connectedStore.developerDid
212
+ })]
213
+ }),
214
+ children: /*#__PURE__*/_jsx(AdminPanelSettingsIcon, {
215
+ sx: {
216
+ color: 'rgba(10,10,60,0.3)',
217
+ fontSize: 22,
218
+ marginRight: 1,
219
+ cursor: 'help'
220
+ }
221
+ })
222
+ }), isPublish && /*#__PURE__*/_jsxs(ButtonGroup, {
169
223
  disabled: loading,
170
224
  variant: "outlined",
171
225
  sx: {
@@ -176,10 +230,16 @@ export default function StoreItem({
176
230
  sx: {
177
231
  paddingLeft: 2,
178
232
  paddingRight: 2,
179
- fontSize: 15
233
+ fontSize: 15,
234
+ width: 130
180
235
  },
181
236
  onClick: handleConnectToStore,
182
- children: [/*#__PURE__*/_jsx(LinkOutlinedIcon, {
237
+ children: [loading ? /*#__PURE__*/_jsx(CircularProgress, {
238
+ sx: {
239
+ marginRight: 1
240
+ },
241
+ size: 16
242
+ }) : /*#__PURE__*/_jsx(LinkOutlinedIcon, {
183
243
  sx: {
184
244
  marginRight: 1
185
245
  }
@@ -189,9 +249,15 @@ export default function StoreItem({
189
249
  sx: {
190
250
  paddingLeft: 2,
191
251
  paddingRight: 2,
192
- fontSize: 15
252
+ fontSize: 15,
253
+ width: 130
193
254
  },
194
- children: [/*#__PURE__*/_jsx(DoneIcon, {
255
+ children: [loading ? /*#__PURE__*/_jsx(CircularProgress, {
256
+ sx: {
257
+ marginRight: 1
258
+ },
259
+ size: 16
260
+ }) : /*#__PURE__*/_jsx(DoneIcon, {
195
261
  sx: {
196
262
  marginRight: 1
197
263
  }
@@ -200,15 +266,23 @@ export default function StoreItem({
200
266
  sx: {
201
267
  paddingLeft: 2,
202
268
  paddingRight: 2,
203
- fontSize: 15
269
+ fontSize: 15,
270
+ width: 130
204
271
  },
205
272
  onClick: handleUploadToStore,
206
- children: [/*#__PURE__*/_jsx(PublishIcon, {
273
+ children: [loading ? /*#__PURE__*/_jsx(CircularProgress, {
207
274
  sx: {
208
275
  marginRight: 1
276
+ },
277
+ size: 16
278
+ }) : /*#__PURE__*/_jsx(PublishIcon, {
279
+ sx: {
280
+ marginRight: 1,
281
+ fontSize: 20
209
282
  }
210
283
  }), t('common.upload')]
211
284
  }), /*#__PURE__*/_jsx(ConnectActions, {
285
+ projectId: projectId,
212
286
  connected: connected,
213
287
  store: store,
214
288
  onDelete: onDelete,
@@ -242,7 +316,12 @@ StoreItem.propTypes = {
242
316
  kind: PropTypes.string,
243
317
  teamDid: PropTypes.string.isRequired,
244
318
  published: PropTypes.bool,
245
- connected: PropTypes.bool,
319
+ connectedStore: PropTypes.shape({
320
+ storeId: PropTypes.string,
321
+ storeUrl: PropTypes.string,
322
+ developerDid: PropTypes.string,
323
+ developerName: PropTypes.string
324
+ }),
246
325
  projectId: PropTypes.string,
247
326
  releaseId: PropTypes.string,
248
327
  releaseType: PropTypes.string,
@@ -259,7 +338,7 @@ StoreItem.propTypes = {
259
338
  StoreItem.defaultProps = {
260
339
  kind: 'store',
261
340
  published: false,
262
- connected: false,
341
+ connectedStore: null,
263
342
  releaseId: '',
264
343
  projectId: '',
265
344
  releaseType: '',
@@ -5,7 +5,7 @@ import styled from '@emotion/styled';
5
5
  import isEmpty from 'lodash/isEmpty';
6
6
  import PropTypes from 'prop-types';
7
7
  import classnames from 'classnames';
8
- import { Badge, IconButton, Tooltip, Checkbox, Box, FormControlLabel } from '@mui/material';
8
+ import { Badge, IconButton, Tooltip, Checkbox, Box, FormControlLabel, useMediaQuery } from '@mui/material';
9
9
  import Dialog, { useConfirm } from '@arcblock/ux/lib/Dialog';
10
10
  import AddIcon from '@mui/icons-material/Add';
11
11
  import LoopIcon from '@mui/icons-material/Loop';
@@ -20,7 +20,7 @@ import Datatable, { getDurableData } from '@arcblock/ux/lib/Datatable';
20
20
  import RelativeTime from '@arcblock/ux/lib/RelativeTime';
21
21
  import Toast from '@arcblock/ux/lib/Toast';
22
22
  import { USER_TYPE } from '@abtnode/constant';
23
- import { TeamEvents } from '@blocklet/constant';
23
+ import { TeamEvents, PROVIDER_NAME } from '@blocklet/constant';
24
24
  import useUrlState from '@ahooksjs/use-url-state';
25
25
  import { useMemoizedFn, useMount } from 'ahooks';
26
26
  import { UserSessions } from '@blocklet/ui-react';
@@ -140,6 +140,7 @@ export default function MemberList({
140
140
  const {
141
141
  appIdList = []
142
142
  } = useBlockletContext();
143
+ const isMobile = useMediaQuery(theme => theme.breakpoints.down('md'));
143
144
  const {
144
145
  teamDid,
145
146
  invitations,
@@ -303,7 +304,8 @@ export default function MemberList({
303
304
  customBodyRender: e => {
304
305
  return /*#__PURE__*/_jsx(DidAddress, {
305
306
  size: 14,
306
- responsive: true,
307
+ responsive: !isMobile,
308
+ compact: isMobile,
307
309
  copyable: false,
308
310
  did: e
309
311
  });
@@ -314,9 +316,14 @@ export default function MemberList({
314
316
  name: 'lastLoginAt',
315
317
  options: {
316
318
  customBodyRender: e => {
317
- return /*#__PURE__*/_jsx(RelativeTime, {
318
- value: e,
319
- locale: locale
319
+ return /*#__PURE__*/_jsx(Box, {
320
+ sx: {
321
+ minWidth: '100px'
322
+ },
323
+ children: /*#__PURE__*/_jsx(RelativeTime, {
324
+ value: e,
325
+ locale: locale
326
+ })
320
327
  });
321
328
  }
322
329
  }
@@ -335,12 +342,7 @@ export default function MemberList({
335
342
  customBodyRenderLite: rowIndex => {
336
343
  const user = users[rowIndex];
337
344
  const source = user.sourceProvider || USER_TYPE.WALLET;
338
- const providerNameMap = {
339
- auth0: 'Auth0',
340
- wallet: 'DID wallet',
341
- federated: 'Federated'
342
- };
343
- const providerName = providerNameMap[source] || source;
345
+ const providerName = PROVIDER_NAME[source] || source;
344
346
  if (user.sourceAppPid) {
345
347
  return `${providerName} (${t('team.member.federated')})`;
346
348
  }
@@ -684,7 +686,8 @@ const Div = styled.div`
684
686
  }
685
687
  }
686
688
  .right {
687
- flex-grow: 1;
689
+ flex: 1;
690
+ overflow: auto;
688
691
  }
689
692
  }
690
693