@tencent-rtc/mcp 1.1.6 → 1.1.9

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 (29) hide show
  1. package/package.json +1 -1
  2. package/resource/doc/chatuikit/react/chat_window_integration.md +20 -17
  3. package/resource/doc/chatuikit/react/integration.md +21 -13
  4. package/resource/doc/tuicallkit/react/api.md +1383 -0
  5. package/resource/doc/tuicallkit/react/integration.md +101 -0
  6. package/resource/doc/tuicallkit/vue/api.md +1385 -0
  7. package/resource/doc/tuicallkit/vue/integration.md +98 -0
  8. package/server-config.js +5 -0
  9. package/server-config.js.map +1 -1
  10. package/tools/call/get-web-call-api.js +31 -0
  11. package/tools/call/get-web-call-api.js.map +1 -0
  12. package/tools/call/get-web-call-integration.js +8 -10
  13. package/tools/call/get-web-call-integration.js.map +1 -1
  14. package/tools/common/get-official-experience-account.js +58 -0
  15. package/tools/common/get-official-experience-account.js.map +1 -0
  16. package/tools/common/get-usersig.js +8 -2
  17. package/tools/common/get-usersig.js.map +1 -1
  18. package/tools/index.js +4 -0
  19. package/tools/index.js.map +1 -1
  20. package/utils/report-client.js +61 -0
  21. package/utils/report-client.js.map +1 -0
  22. package/resource/doc/tuicallkit/react/.gitkeep +0 -0
  23. package/resource/doc/tuicallkit/react/api_TUICallKit.md +0 -354
  24. package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +0 -195
  25. package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +0 -61
  26. package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
  27. package/resource/doc/tuicallkit/vue/api_TUICallKit.md +0 -354
  28. package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +0 -187
  29. package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +0 -61
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-rtc/mcp",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
4
4
  "description": "Tencent Cloud MCP Server for SDK",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -45,6 +45,25 @@ import {
45
45
  useConversationListState,
46
46
  } from "@tencentcloud/chat-uikit-react";
47
47
 
48
+ function ChatApp() {
49
+ const { setActiveConversation } = useConversationListState();
50
+
51
+ useEffect(() => {
52
+ // open default conversation
53
+ setActiveConversation('C2Cadministrator');
54
+ }, [setActiveConversation]);
55
+
56
+ return (
57
+ <div style={{ height: '100vh', width: '100vw', display: 'flex', flexDirection: 'row' }}>
58
+ <Chat PlaceholderEmpty=''>
59
+ <ChatHeader />
60
+ <MessageList />
61
+ <MessageInput />
62
+ </Chat>
63
+ </div>
64
+ );
65
+ }
66
+
48
67
 
49
68
  function App() {
50
69
  const userID = ''; // TODO: Replace with your userID
@@ -61,28 +80,12 @@ function App() {
61
80
  if (status !== LoginStatus.SUCCESS) {
62
81
  return <div>Loading...</div>
63
82
  }
64
-
65
-
66
- // Open default conversation
67
- const { setActiveConversation } = useConversationListState();
68
- setActiveConversation('C2Cadministrator');
69
83
 
70
84
  // Language support zh-CN(default) / en-US / ja-JP / ko-KR / zh-TW
71
85
  // Theme support light(default) / dark
72
86
  return (
73
87
  <UIKitProvider language='zh-CN' theme='light'>
74
- <div style={{
75
- height: '100vh',
76
- width: '100vw',
77
- display: 'flex',
78
- flexDirection: 'row',
79
- }}>
80
- <Chat PlaceholderEmpty=''>
81
- <ChatHeader />
82
- <MessageList />
83
- <MessageInput />
84
- </Chat>
85
- </div>
88
+ <ChatApp />
86
89
  </UIKitProvider>
87
90
  );
88
91
  }
@@ -45,6 +45,26 @@ import {
45
45
  useConversationListState,
46
46
  } from "@tencentcloud/chat-uikit-react";
47
47
 
48
+ function ChatApp() {
49
+ const { setActiveConversation } = useConversationListState();
50
+
51
+ useEffect(() => {
52
+ // open default conversation
53
+ setActiveConversation('C2Cadministrator');
54
+ }, [setActiveConversation]);
55
+
56
+ return (
57
+ <div style={{ height: '100vh', width: '100vw', display: 'flex', flexDirection: 'row' }}>
58
+ <ConversationList style={{ minWidth: '300px', maxWidth: '350px' }}/>
59
+ <Chat PlaceholderEmpty=''>
60
+ <ChatHeader />
61
+ <MessageList />
62
+ <MessageInput />
63
+ </Chat>
64
+ </div>
65
+ );
66
+ }
67
+
48
68
 
49
69
  function App() {
50
70
  const userID = ''; // TODO: Replace with your userID
@@ -61,24 +81,12 @@ function App() {
61
81
  if (status !== LoginStatus.SUCCESS) {
62
82
  return <div>Loading...</div>
63
83
  }
64
-
65
-
66
- // Open default conversation
67
- const { setActiveConversation } = useConversationListState();
68
- setActiveConversation('C2Cadministrator');
69
84
 
70
85
  // Language support zh-CN(default) / en-US / ja-JP / ko-KR / zh-TW
71
86
  // Theme support light(default) / dark
72
87
  return (
73
88
  <UIKitProvider language='zh-CN' theme='light'>
74
- <div style={{ height: '100vh', width: '100vw', display: 'flex', flexDirection: 'row' }}>
75
- <ConversationList style={{ minWidth: '300px', maxWidth: '350px' }}/>
76
- <Chat PlaceholderEmpty=''>
77
- <ChatHeader />
78
- <MessageList />
79
- <MessageInput />
80
- </Chat>
81
- </div>
89
+ <ChatApp />
82
90
  </UIKitProvider>
83
91
  );
84
92
  }