@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.
- package/package.json +1 -1
- package/resource/doc/chatuikit/react/chat_window_integration.md +20 -17
- package/resource/doc/chatuikit/react/integration.md +21 -13
- package/resource/doc/tuicallkit/react/api.md +1383 -0
- package/resource/doc/tuicallkit/react/integration.md +101 -0
- package/resource/doc/tuicallkit/vue/api.md +1385 -0
- package/resource/doc/tuicallkit/vue/integration.md +98 -0
- package/server-config.js +5 -0
- package/server-config.js.map +1 -1
- package/tools/call/get-web-call-api.js +31 -0
- package/tools/call/get-web-call-api.js.map +1 -0
- package/tools/call/get-web-call-integration.js +8 -10
- package/tools/call/get-web-call-integration.js.map +1 -1
- package/tools/common/get-official-experience-account.js +58 -0
- package/tools/common/get-official-experience-account.js.map +1 -0
- package/tools/common/get-usersig.js +8 -2
- package/tools/common/get-usersig.js.map +1 -1
- package/tools/index.js +4 -0
- package/tools/index.js.map +1 -1
- package/utils/report-client.js +61 -0
- package/utils/report-client.js.map +1 -0
- package/resource/doc/tuicallkit/react/.gitkeep +0 -0
- package/resource/doc/tuicallkit/react/api_TUICallKit.md +0 -354
- package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +0 -195
- package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +0 -61
- package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
- package/resource/doc/tuicallkit/vue/api_TUICallKit.md +0 -354
- package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +0 -187
- package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +0 -61
package/package.json
CHANGED
|
@@ -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
|
-
<
|
|
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
|
-
<
|
|
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
|
}
|