@tencentcloud/chat-uikit-react 3.0.0 → 3.0.1

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 (102) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/README.md +8 -8
  3. package/dist/{ChatSetting-C7QlwAiq.js → ChatSetting-79tDbXT3.js} +5953 -5890
  4. package/dist/components/Chat/Chat.js +10 -9
  5. package/dist/components/ChatHeader/ChatHeader.js +12 -11
  6. package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.js +10 -9
  7. package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +10 -9
  8. package/dist/components/Checkbox/index.js +1 -1
  9. package/dist/components/Model/index.js +1 -1
  10. package/dist/components/Plugins/index.js +1 -1
  11. package/dist/components/Popup/index.js +1 -1
  12. package/dist/components/Profile/Profile.d.ts +1 -1
  13. package/dist/components/Profile/Profile.js +16 -16
  14. package/dist/components/Profile/ProfileDefault.js +39 -39
  15. package/dist/components/Profile/myProfile/MyProfile.js +10 -9
  16. package/dist/components/index.d.ts +0 -1
  17. package/dist/components/index.js +25 -33
  18. package/dist/context/ChatContext.js +6 -5
  19. package/dist/hooks/index.js +0 -1
  20. package/dist/index.js +2924 -1516
  21. package/dist/locales/en-US/TUIContact.d.ts +44 -0
  22. package/dist/locales/en-US/TUIContact.js +46 -1
  23. package/dist/locales/en-US/index.d.ts +44 -0
  24. package/dist/locales/ja-JP/TUIContact.d.ts +44 -0
  25. package/dist/locales/ja-JP/TUIContact.js +46 -1
  26. package/dist/locales/ja-JP/index.d.ts +44 -0
  27. package/dist/locales/ko-KR/TUIContact.d.ts +44 -0
  28. package/dist/locales/ko-KR/TUIContact.js +46 -1
  29. package/dist/locales/ko-KR/index.d.ts +44 -0
  30. package/dist/locales/zh-CN/TUIContact.d.ts +44 -0
  31. package/dist/locales/zh-CN/TUIContact.js +46 -1
  32. package/dist/locales/zh-CN/index.d.ts +44 -0
  33. package/dist/locales/zh-TW/TUIContact.d.ts +44 -0
  34. package/dist/locales/zh-TW/TUIContact.js +46 -1
  35. package/dist/locales/zh-TW/index.d.ts +44 -0
  36. package/dist/states/ChatHeaderState.js +8 -7
  37. package/dist/styles/ChatSetting.css +1 -1
  38. package/dist/styles/index.css +1 -1
  39. package/dist/styles/index2.css +1 -1
  40. package/dist/styles/index3.css +1 -1
  41. package/dist/styles/index4.css +1 -1
  42. package/dist/styles/index5.css +1 -1
  43. package/package.json +3 -3
  44. package/src/components/Profile/Profile.tsx +20 -17
  45. package/src/components/Profile/ProfileDefault.tsx +4 -6
  46. package/src/components/index.ts +0 -1
  47. package/src/hooks/index.ts +0 -2
  48. package/src/locales/en-US/TUIContact.ts +45 -0
  49. package/src/locales/ja-JP/TUIContact.ts +45 -0
  50. package/src/locales/ko-KR/TUIContact.ts +45 -0
  51. package/src/locales/zh-CN/TUIContact.ts +45 -0
  52. package/src/locales/zh-TW/TUIContact.ts +46 -0
  53. package/dist/components/Contact/Contact.d.ts +0 -3
  54. package/dist/components/Contact/Contact.js +0 -81
  55. package/dist/components/Contact/ContactInfo/ContactInfo.d.ts +0 -8
  56. package/dist/components/Contact/ContactInfo/ContactInfo.js +0 -27
  57. package/dist/components/Contact/ContactInfo/addFriendInfo.d.ts +0 -8
  58. package/dist/components/Contact/ContactInfo/addFriendInfo.js +0 -61
  59. package/dist/components/Contact/ContactInfo/basicInfo.d.ts +0 -8
  60. package/dist/components/Contact/ContactInfo/basicInfo.js +0 -48
  61. package/dist/components/Contact/ContactInfo/blockInfo.d.ts +0 -8
  62. package/dist/components/Contact/ContactInfo/blockInfo.js +0 -33
  63. package/dist/components/Contact/ContactInfo/friendApplication.d.ts +0 -8
  64. package/dist/components/Contact/ContactInfo/friendApplication.js +0 -47
  65. package/dist/components/Contact/ContactInfo/friendInfo.d.ts +0 -9
  66. package/dist/components/Contact/ContactInfo/friendInfo.js +0 -83
  67. package/dist/components/Contact/ContactInfo/groupInfo.d.ts +0 -9
  68. package/dist/components/Contact/ContactInfo/groupInfo.js +0 -45
  69. package/dist/components/Contact/ContactInfo/hooks/useContactInfo.d.ts +0 -11
  70. package/dist/components/Contact/ContactInfo/hooks/useContactInfo.js +0 -84
  71. package/dist/components/Contact/ContactList/ContactList.d.ts +0 -4
  72. package/dist/components/Contact/ContactList/ContactList.js +0 -152
  73. package/dist/components/Contact/hooks/useTUIContact.d.ts +0 -12
  74. package/dist/components/Contact/hooks/useTUIContact.js +0 -58
  75. package/dist/components/Contact/index.d.ts +0 -3
  76. package/dist/components/Contact/index.js +0 -10
  77. package/dist/components/ContactSearch/ContactSearch.d.ts +0 -3
  78. package/dist/components/ContactSearch/ContactSearch.js +0 -85
  79. package/dist/components/ContactSearch/hooks/useContactSearch.d.ts +0 -6
  80. package/dist/components/ContactSearch/hooks/useContactSearch.js +0 -28
  81. package/dist/styles/ContactInfo.css +0 -1
  82. package/dist/styles/ContactList.css +0 -1
  83. package/dist/styles/ContactSearch.css +0 -1
  84. package/dist/styles/index6.css +0 -1
  85. package/src/components/Contact/Contact.tsx +0 -97
  86. package/src/components/Contact/ContactInfo/ContactInfo.tsx +0 -36
  87. package/src/components/Contact/ContactInfo/addFriendInfo.tsx +0 -88
  88. package/src/components/Contact/ContactInfo/basicInfo.tsx +0 -52
  89. package/src/components/Contact/ContactInfo/blockInfo.tsx +0 -45
  90. package/src/components/Contact/ContactInfo/friendApplication.tsx +0 -68
  91. package/src/components/Contact/ContactInfo/friendInfo.tsx +0 -101
  92. package/src/components/Contact/ContactInfo/groupInfo.tsx +0 -62
  93. package/src/components/Contact/ContactInfo/hooks/useContactInfo.tsx +0 -101
  94. package/src/components/Contact/ContactInfo/index.scss +0 -136
  95. package/src/components/Contact/ContactList/ContactList.tsx +0 -174
  96. package/src/components/Contact/ContactList/index.scss +0 -111
  97. package/src/components/Contact/hooks/useTUIContact.tsx +0 -88
  98. package/src/components/Contact/index.scss +0 -91
  99. package/src/components/Contact/index.ts +0 -3
  100. package/src/components/ContactSearch/ContactSearch.tsx +0 -102
  101. package/src/components/ContactSearch/hooks/useContactSearch.tsx +0 -31
  102. package/src/components/ContactSearch/index.scss +0 -33
package/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
- ## [3.0.0] (2025-01-08)
1
+ ## [3.0.1] (2025-07-22)
2
+
3
+ #### feat
4
+ * feat: Support contactList.
5
+
6
+ ## [3.0.0] (2025-07-08)
2
7
 
3
8
  #### feat
4
9
  * feat: Architecture refactoring - Introduce tuikit-atomicx-react as the underlying component library.
package/README.md CHANGED
@@ -51,28 +51,28 @@ This tutorial shows how you can build a chat application in just 10 minutes by i
51
51
  ![](https://github.com/user-attachments/assets/1ce0bdc2-2770-4006-b480-8c0e7d89271f)
52
52
  3. After creation, you can see the status, service version, SDKAppID, creation time, tag, and expiration time of the new app on the overview page of the console.
53
53
 
54
- ### Step 2. Obtain the SDKAppID and SECRETKEY
54
+ ### Step 2. Obtain the SDKAppID and UserSig
55
55
  1. Click the target app card to go to the basic configuration page of the app.
56
- 2. In the Basic info area, click `Display key`, and then copy and save the key information, which is SECRETKEY.
56
+ 2. In the Basic info area, click `Display key`, and then copy and save the key information, which is `SDKSecretKey`.
57
57
  ![](https://github.com/user-attachments/assets/26c1f583-cc2a-4f19-b952-6ca7ebccf27f)
58
+ 3. Goto [UserSig Tools](https://console.trtc.io/usersig) to generate UserSig, you need to set the `SDKAppID` and `SDKSecretKey`, you will get the `userSig`.
58
59
 
59
60
  ### Step 3. Download the source code and install dependencies
60
61
  ```
61
62
  # Please run the following code in the terminal.
62
63
  $ git clone https://github.com/TencentCloud/chat-uikit-react
63
64
  # Go to the project
64
- $ cd chat-uikit-react/examples/sample-chat
65
+ $ cd chat-uikit-react
65
66
  # Install dependencies of the demo and build chat-uikit-react
66
67
  $ npm install
67
68
  ```
68
- ### Step 4. Configure
69
- 1. Open the `examples/sample-chat` project and locate the `GenerateTestUserSig.js` file in `./examples/sample-chat/src/debug/GenerateTestUserSig.js`.
70
- 2. Set the `SDKAppID` and `SECRETKEY` obtained at Step 2.
71
- ![](https://github.com/user-attachments/assets/57858e6d-6dad-4c99-bb69-b32b5f78f813)
69
+ ### Step 4. Configure Login Info
70
+ 1. Open the `src/pages/ChatGithub/index.tsx` file.
71
+ 2. Set the `loginInfo` with the `SDKAppID` and `userID` and `userSig` obtained at Step 2.
72
72
 
73
73
  ### Step 5. Run the demo
74
74
  ```
75
- $ npm run start
75
+ $ npm run dev
76
76
  ```
77
77
 
78
78
  ## Send your first message