@tencent-rtc/mcp 1.3.8 → 1.4.0
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 +2 -2
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/android-faq.md} +10 -22
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/flutter-faq.md} +10 -22
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/ios-faq.md} +10 -22
- package/resource/doc/callkit/preset/android/api.md +296 -0
- package/resource/doc/callkit/preset/android/integration.md +430 -0
- package/resource/doc/callkit/preset/flutter/api.md +410 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +35 -97
- package/resource/doc/callkit/preset/ios/api.md +80 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +37 -118
- package/resource/doc/callkit/preset/react/api.md +501 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +5 -20
- package/resource/doc/callkit/preset/vue/api.md +501 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +4 -19
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -38
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/chatkit/android/integration.md +490 -0
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +281 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -1
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +199 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +235 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +3 -3
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +19 -88
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -38
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +47 -165
- package/resource/doc/{chatuikit → chatkit}/react/components/avatar.md +0 -33
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +8 -49
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +6 -35
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +0 -6
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -11
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +96 -502
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +118 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +60 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -337
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +20 -212
- package/resource/doc/chatkit/react/components/search.md +243 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +1 -47
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +21 -81
- package/resource/doc/{chatuikit → chatkit}/vue/components/avatar.md +0 -33
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -48
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +3 -5
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +0 -5
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -15
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -492
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +2 -223
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -252
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/{chatuikit → chatkit}/vue/components/tuikit.md +7 -21
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +3 -62
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +22 -23
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +18 -89
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +28 -141
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +20 -112
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +59 -193
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +94 -344
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +107 -515
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +33 -173
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +14 -93
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -179
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +19 -107
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -166
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -163
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +69 -443
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +107 -492
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +23 -165
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +35 -111
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +35 -193
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +31 -144
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +24 -116
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +37 -171
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +79 -459
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +69 -320
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +85 -502
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +32 -169
- package/resource/doc/livekit/core-sdk/voice/android/voice-audience-list.md +263 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-audio-effect.md +222 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-barrage.md +452 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +536 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-gift.md +442 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-host-interaction.md +489 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-integration.md +574 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-room-list.md +435 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-integration.md +576 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audience-list.md +263 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audio-effect.md +212 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-barrage.md +404 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +499 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-gift.md +403 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-host-interaction.md +552 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +514 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-room-list.md +348 -0
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -2
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +10 -49
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +26 -144
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +12 -75
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +36 -227
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +215 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +241 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +299 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +300 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +743 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -34
- package/resource/doc/roomkit/vue/features/room-view.md +30 -125
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -29
- package/resource/doc/roomkit/vue/integration.md +173 -337
- package/resource/doc/rtcengine/faq/common/error_code.md +1 -0
- package/resource/doc/rtcengine/faq/web/web.md +14 -24
- package/resource/doc/rtcengine/web/api.md +1 -3
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +3 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +1 -5
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +1 -2
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -4
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +3 -5
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +1 -7
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +0 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +4 -8
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +11 -11
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +12 -88
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -5
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +30 -37
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +13 -90
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -2
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +1 -2
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +19 -19
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -5
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +686 -2835
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +202 -1022
- package/resource/doc/trtc/C++/ITXDeviceManager.md +126 -767
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +579 -2147
- package/resource/doc/trtc/C++/TRTCTypeDef.md +703 -3378
- package/resource/doc/trtc/C++/TXLiteAVCode.md +116 -908
- package/resource/doc/trtc/android/TRTCCloud.md +606 -2573
- package/resource/doc/trtc/android/TRTCCloudDef.md +752 -3640
- package/resource/doc/trtc/android/TRTCCloudListener.md +581 -2008
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +202 -1022
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +114 -892
- package/resource/doc/trtc/iOS/TRTCCloud.md +694 -2904
- package/resource/doc/trtc/iOS/TRTCCloudDef.md +726 -3498
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +543 -2028
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +174 -877
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +29 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +17 -18
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -18
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +34 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +34 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -22
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +15 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +30 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +32 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +15 -30
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +31 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +27 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +27 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +27 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +24 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -59
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +2 -2
- package/resource/doc/chatuikit/android/integration.md +0 -287
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -932
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1119
- package/resource/doc/chatuikit/flutter/workflow.md +0 -941
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -1017
- package/resource/doc/chatuikit/react/components/search.md +0 -745
- package/resource/doc/chatuikit/react/create-group.md +0 -23
- package/resource/doc/chatuikit/react/init.md +0 -26
- package/resource/doc/chatuikit/react/workflow.md +0 -258
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/create-group.md +0 -25
- package/resource/doc/chatuikit/vue/init.md +0 -40
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -320
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -454
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -616
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -446
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -200
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -269
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -269
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -595
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -3591
- package/resource/doc/livekit/live/vue/workflow.md +0 -218
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -312
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -430
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -679
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -671
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -271
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -865
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -657
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -437
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -335
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -327
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -659
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -814
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1000
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -487
- package/resource/doc/tuicallkit/android/integration.md +0 -286
- package/resource/doc/tuicallkit/android/workflow.md +0 -0
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -784
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -610
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -938
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -897
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -469
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -781
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -398
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1404
- package/resource/doc/tuicallkit/vue/api.md +0 -1406
- package/resource/doc/tuicallkit/vue/faq.md +0 -36
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- package/tools/common/get-faq.js.map +0 -1
- package/tools/common/get-usersig.js.map +0 -1
- package/tools/common/present-framework-choice.js +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -23
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -87
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -49
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -74
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -16
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -95
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_state_detail_def.js +0 -19
- package/tools/definitions/get_web_room_state_detail_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -53
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -30
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -101
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -101
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{chatuikit/android/workflow.md → callkit/core-sdk/.gitkeep} +0 -0
- /package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +0 -0
- /package/resource/doc/{tuicallkit/react/faq.md → callkit/faq/web-faq.md} +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
- /package/resource/doc/roomkit/faq/common/{error_code.md → error-code.md} +0 -0
|
@@ -1,745 +0,0 @@
|
|
|
1
|
-
## Component Overview
|
|
2
|
-
|
|
3
|
-
Search is a complete search solution with a full set of components, including search bar, result display, advanced search, and other features. It is suitable for user, group, and message search in instant messaging, online meeting, and online education scenarios.
|
|
4
|
-
|
|
5
|
-
> **Note:**
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
> Note: This feature belongs to VAS. You need to purchase cloud search plugin. Please click [purchase](https://console.trtc.io/chat/plugin/TUICloudSearch).
|
|
9
|
-
>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-

|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Component Architecture
|
|
16
|
-
``` bash
|
|
17
|
-
Search (main component)
|
|
18
|
-
├── SearchBar # Search bar component
|
|
19
|
-
├── SearchResults # Search result component
|
|
20
|
-
├── SearchAdvanced # Advanced search component
|
|
21
|
-
└── SearchResultsItem # Search result item component
|
|
22
|
-
├── User # User result item
|
|
23
|
-
├── Group # Group result item
|
|
24
|
-
├── Message # Message result item
|
|
25
|
-
└── Conversation # Session result item
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Search Mode
|
|
29
|
-
<table>
|
|
30
|
-
<tr>
|
|
31
|
-
<td rowspan="1" colSpan="1" >**Mini Mode**</td>
|
|
32
|
-
|
|
33
|
-
<td rowspan="1" colSpan="1" >**Standard Mode**</td>
|
|
34
|
-
|
|
35
|
-
<td rowspan="1" colSpan="1" >**Embedded Mode**</td>
|
|
36
|
-
</tr>
|
|
37
|
-
|
|
38
|
-
<tr>
|
|
39
|
-
<td rowspan="1" colSpan="1" >- Suitable for sidebar or small container<br>- Display finite number of results<br>- Support expand to view more</td>
|
|
40
|
-
|
|
41
|
-
<td rowspan="1" colSpan="1" >- Suitable for full-screen search UI<br>- Feature demonstration<br>- Advanced Search Support</td>
|
|
42
|
-
|
|
43
|
-
<td rowspan="1" colSpan="1" >- Suitable for chat UI<br>- Focus on message search<br>- Optimized layout</td>
|
|
44
|
-
</tr>
|
|
45
|
-
|
|
46
|
-
<tr>
|
|
47
|
-
<td rowspan="1" colSpan="1" ><br></td>
|
|
48
|
-
|
|
49
|
-
<td rowspan="1" colSpan="1" ><br></td>
|
|
50
|
-
|
|
51
|
-
<td rowspan="1" colSpan="1" ><br></td>
|
|
52
|
-
</tr>
|
|
53
|
-
</table>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
## Props
|
|
57
|
-
<table>
|
|
58
|
-
<tr>
|
|
59
|
-
<td rowspan="1" colSpan="1" >Attribute Name</td>
|
|
60
|
-
|
|
61
|
-
<td rowspan="1" colSpan="1" >Type</td>
|
|
62
|
-
|
|
63
|
-
<td rowspan="1" colSpan="1" >Default Value</td>
|
|
64
|
-
|
|
65
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
66
|
-
</tr>
|
|
67
|
-
|
|
68
|
-
<tr>
|
|
69
|
-
<td rowspan="1" colSpan="1" >variant</td>
|
|
70
|
-
|
|
71
|
-
<td rowspan="1" colSpan="1" >VariantType</td>
|
|
72
|
-
|
|
73
|
-
<td rowspan="1" colSpan="1" >VariantType.MINI</td>
|
|
74
|
-
|
|
75
|
-
<td rowspan="1" colSpan="1" >Search mode: mini, standard, embedded</td>
|
|
76
|
-
</tr>
|
|
77
|
-
|
|
78
|
-
<tr>
|
|
79
|
-
<td rowspan="1" colSpan="1" >SearchBar</td>
|
|
80
|
-
|
|
81
|
-
<td rowspan="1" colSpan="1" >React.ComponentType<SearchBarProps></td>
|
|
82
|
-
|
|
83
|
-
<td rowspan="1" colSpan="1" >DefaultSearchBar</td>
|
|
84
|
-
|
|
85
|
-
<td rowspan="1" colSpan="1" >Custom search box component</td>
|
|
86
|
-
</tr>
|
|
87
|
-
|
|
88
|
-
<tr>
|
|
89
|
-
<td rowspan="1" colSpan="1" >SearchResults</td>
|
|
90
|
-
|
|
91
|
-
<td rowspan="1" colSpan="1" >React.ComponentType<SearchResultsProps></td>
|
|
92
|
-
|
|
93
|
-
<td rowspan="1" colSpan="1" >DefaultSearchResults</td>
|
|
94
|
-
|
|
95
|
-
<td rowspan="1" colSpan="1" >Custom search result component</td>
|
|
96
|
-
</tr>
|
|
97
|
-
|
|
98
|
-
<tr>
|
|
99
|
-
<td rowspan="1" colSpan="1" >SearchAdvanced</td>
|
|
100
|
-
|
|
101
|
-
<td rowspan="1" colSpan="1" >React.ComponentType<SearchAdvancedProps></td>
|
|
102
|
-
|
|
103
|
-
<td rowspan="1" colSpan="1" >DefaultSearchAdvanced</td>
|
|
104
|
-
|
|
105
|
-
<td rowspan="1" colSpan="1" >Custom advanced search component</td>
|
|
106
|
-
</tr>
|
|
107
|
-
|
|
108
|
-
<tr>
|
|
109
|
-
<td rowspan="1" colSpan="1" >SearchResultsPresearch</td>
|
|
110
|
-
|
|
111
|
-
<td rowspan="1" colSpan="1" >React.ComponentType</td>
|
|
112
|
-
|
|
113
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
114
|
-
|
|
115
|
-
<td rowspan="1" colSpan="1" >Search placeholder component</td>
|
|
116
|
-
</tr>
|
|
117
|
-
|
|
118
|
-
<tr>
|
|
119
|
-
<td rowspan="1" colSpan="1" >SearchResultsLoading</td>
|
|
120
|
-
|
|
121
|
-
<td rowspan="1" colSpan="1" >React.ComponentType</td>
|
|
122
|
-
|
|
123
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
124
|
-
|
|
125
|
-
<td rowspan="1" colSpan="1" >Loading placeholder component</td>
|
|
126
|
-
</tr>
|
|
127
|
-
|
|
128
|
-
<tr>
|
|
129
|
-
<td rowspan="1" colSpan="1" >SearchResultsEmpty</td>
|
|
130
|
-
|
|
131
|
-
<td rowspan="1" colSpan="1" >React.ComponentType</td>
|
|
132
|
-
|
|
133
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
134
|
-
|
|
135
|
-
<td rowspan="1" colSpan="1" >Empty result placeholder component</td>
|
|
136
|
-
</tr>
|
|
137
|
-
|
|
138
|
-
<tr>
|
|
139
|
-
<td rowspan="1" colSpan="1" >SearchResultItem</td>
|
|
140
|
-
|
|
141
|
-
<td rowspan="1" colSpan="1" >React.ComponentType<ResultItemProps></td>
|
|
142
|
-
|
|
143
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
144
|
-
|
|
145
|
-
<td rowspan="1" colSpan="1" >Custom search result item component</td>
|
|
146
|
-
</tr>
|
|
147
|
-
|
|
148
|
-
<tr>
|
|
149
|
-
<td rowspan="1" colSpan="1" >debounceTime</td>
|
|
150
|
-
|
|
151
|
-
<td rowspan="1" colSpan="1" >number</td>
|
|
152
|
-
|
|
153
|
-
<td rowspan="1" colSpan="1" >300</td>
|
|
154
|
-
|
|
155
|
-
<td rowspan="1" colSpan="1" >Search debounce time (ms)</td>
|
|
156
|
-
</tr>
|
|
157
|
-
|
|
158
|
-
<tr>
|
|
159
|
-
<td rowspan="1" colSpan="1" >autoFocus</td>
|
|
160
|
-
|
|
161
|
-
<td rowspan="1" colSpan="1" >boolean</td>
|
|
162
|
-
|
|
163
|
-
<td rowspan="1" colSpan="1" >false</td>
|
|
164
|
-
|
|
165
|
-
<td rowspan="1" colSpan="1" >Auto-focus search box</td>
|
|
166
|
-
</tr>
|
|
167
|
-
|
|
168
|
-
<tr>
|
|
169
|
-
<td rowspan="1" colSpan="1" >className</td>
|
|
170
|
-
|
|
171
|
-
<td rowspan="1" colSpan="1" >string</td>
|
|
172
|
-
|
|
173
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
174
|
-
|
|
175
|
-
<td rowspan="1" colSpan="1" >Custom style class name</td>
|
|
176
|
-
</tr>
|
|
177
|
-
|
|
178
|
-
<tr>
|
|
179
|
-
<td rowspan="1" colSpan="1" >style</td>
|
|
180
|
-
|
|
181
|
-
<td rowspan="1" colSpan="1" >React.CSSProperties</td>
|
|
182
|
-
|
|
183
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
184
|
-
|
|
185
|
-
<td rowspan="1" colSpan="1" >custom style</td>
|
|
186
|
-
</tr>
|
|
187
|
-
|
|
188
|
-
<tr>
|
|
189
|
-
<td rowspan="1" colSpan="1" >onKeywordChange</td>
|
|
190
|
-
|
|
191
|
-
<td rowspan="1" colSpan="1" >(keyword: string) => void</td>
|
|
192
|
-
|
|
193
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
194
|
-
|
|
195
|
-
<td rowspan="1" colSpan="1" >search keyword change callback</td>
|
|
196
|
-
</tr>
|
|
197
|
-
|
|
198
|
-
<tr>
|
|
199
|
-
<td rowspan="1" colSpan="1" >onSearchComplete</td>
|
|
200
|
-
|
|
201
|
-
<td rowspan="1" colSpan="1" >(results: Map<SearchType, SearchResult>) => void</td>
|
|
202
|
-
|
|
203
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
204
|
-
|
|
205
|
-
<td rowspan="1" colSpan="1" >search complete callback</td>
|
|
206
|
-
</tr>
|
|
207
|
-
|
|
208
|
-
<tr>
|
|
209
|
-
<td rowspan="1" colSpan="1" >onResultItemClick</td>
|
|
210
|
-
|
|
211
|
-
<td rowspan="1" colSpan="1" >(data: SearchResultItem, type: SearchType) => void</td>
|
|
212
|
-
|
|
213
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
214
|
-
|
|
215
|
-
<td rowspan="1" colSpan="1" >search result click callback</td>
|
|
216
|
-
</tr>
|
|
217
|
-
|
|
218
|
-
<tr>
|
|
219
|
-
<td rowspan="1" colSpan="1" >onError</td>
|
|
220
|
-
|
|
221
|
-
<td rowspan="1" colSpan="1" >(error: Error) => void</td>
|
|
222
|
-
|
|
223
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
224
|
-
|
|
225
|
-
<td rowspan="1" colSpan="1" >search error callback</td>
|
|
226
|
-
</tr>
|
|
227
|
-
</table>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
## Basic Usage
|
|
231
|
-
``` typescript
|
|
232
|
-
import { Search, VariantType } from '@tencentcloud/chat-uikit-react';
|
|
233
|
-
|
|
234
|
-
function App() {
|
|
235
|
-
return (
|
|
236
|
-
<Search
|
|
237
|
-
variant={VariantType.STANDARD}
|
|
238
|
-
onResultItemClick={(data, type) => {
|
|
239
|
-
console.log('Search result click:', data, type);
|
|
240
|
-
}}
|
|
241
|
-
/>
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
## Custom Capabilities
|
|
247
|
-
|
|
248
|
-
`Search` provides users with various and dimensional Props APIs, allowing them to customize features, UI, and modules.
|
|
249
|
-
|
|
250
|
-
`Search` component provides multiple replaceable subcomponents, allowing users to customize `SearchBar`, `SearchResults`, `SearchAdvanced`, `SearchResultItem`, `SearchResultsPresearch`, `SearchResultsLoading`, `SearchResultsEmpty`. Users can also leverage default subcomponents for secondary development customization.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
【Custom SearchBar】
|
|
255
|
-
|
|
256
|
-
**Props**
|
|
257
|
-
<table>
|
|
258
|
-
<tr>
|
|
259
|
-
<td rowspan="1" colSpan="1" >Attribute Name</td>
|
|
260
|
-
|
|
261
|
-
<td rowspan="1" colSpan="1" >Type</td>
|
|
262
|
-
|
|
263
|
-
<td rowspan="1" colSpan="1" >Default Value</td>
|
|
264
|
-
|
|
265
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
266
|
-
</tr>
|
|
267
|
-
|
|
268
|
-
<tr>
|
|
269
|
-
<td rowspan="1" colSpan="1" >data</td>
|
|
270
|
-
|
|
271
|
-
<td rowspan="1" colSpan="1" >SearchResultItem</td>
|
|
272
|
-
|
|
273
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
274
|
-
|
|
275
|
-
<td rowspan="1" colSpan="1" >search result data</td>
|
|
276
|
-
</tr>
|
|
277
|
-
|
|
278
|
-
<tr>
|
|
279
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
280
|
-
|
|
281
|
-
<td rowspan="1" colSpan="1" >SearchType</td>
|
|
282
|
-
|
|
283
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
284
|
-
|
|
285
|
-
<td rowspan="1" colSpan="1" >search result type</td>
|
|
286
|
-
</tr>
|
|
287
|
-
|
|
288
|
-
<tr>
|
|
289
|
-
<td rowspan="1" colSpan="1" >keyword</td>
|
|
290
|
-
|
|
291
|
-
<td rowspan="1" colSpan="1" >string</td>
|
|
292
|
-
|
|
293
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
294
|
-
|
|
295
|
-
<td rowspan="1" colSpan="1" >search keyword</td>
|
|
296
|
-
</tr>
|
|
297
|
-
|
|
298
|
-
<tr>
|
|
299
|
-
<td rowspan="1" colSpan="1" >onClick</td>
|
|
300
|
-
|
|
301
|
-
<td rowspan="1" colSpan="1" >(data: SearchResultItem, type: SearchType) => void</td>
|
|
302
|
-
|
|
303
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
304
|
-
|
|
305
|
-
<td rowspan="1" colSpan="1" >click callback</td>
|
|
306
|
-
</tr>
|
|
307
|
-
|
|
308
|
-
<tr>
|
|
309
|
-
<td rowspan="1" colSpan="1" >className</td>
|
|
310
|
-
|
|
311
|
-
<td rowspan="1" colSpan="1" >string</td>
|
|
312
|
-
|
|
313
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
314
|
-
|
|
315
|
-
<td rowspan="1" colSpan="1" >Custom style class name</td>
|
|
316
|
-
</tr>
|
|
317
|
-
</table>
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
**Example**
|
|
321
|
-
``` typescript
|
|
322
|
-
const CustomSearchBar = ({ value, onChange, onClear, placeholder }) => (
|
|
323
|
-
<div className="custom-search-bar">
|
|
324
|
-
<input
|
|
325
|
-
type="text"
|
|
326
|
-
value={value}
|
|
327
|
-
onChange={onChange}
|
|
328
|
-
placeholder={placeholder}
|
|
329
|
-
/>
|
|
330
|
-
{value && <button onClick={onClear}>Clear</button>}
|
|
331
|
-
</div>
|
|
332
|
-
);
|
|
333
|
-
|
|
334
|
-
<Search SearchBar={CustomSearchBar} />
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
【Custom Search Results】
|
|
338
|
-
|
|
339
|
-
**Props**
|
|
340
|
-
<table>
|
|
341
|
-
<tr>
|
|
342
|
-
<td rowspan="1" colSpan="1" >Attribute Name</td>
|
|
343
|
-
|
|
344
|
-
<td rowspan="1" colSpan="1" >Type</td>
|
|
345
|
-
|
|
346
|
-
<td rowspan="1" colSpan="1" >Default Value</td>
|
|
347
|
-
|
|
348
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
349
|
-
</tr>
|
|
350
|
-
|
|
351
|
-
<tr>
|
|
352
|
-
<td rowspan="1" colSpan="1" >results</td>
|
|
353
|
-
|
|
354
|
-
<td rowspan="1" colSpan="1" >`Map<SearchType, SearchResult>`</td>
|
|
355
|
-
|
|
356
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
357
|
-
|
|
358
|
-
<td rowspan="1" colSpan="1" >search result data</td>
|
|
359
|
-
</tr>
|
|
360
|
-
|
|
361
|
-
<tr>
|
|
362
|
-
<td rowspan="1" colSpan="1" >isLoading</td>
|
|
363
|
-
|
|
364
|
-
<td rowspan="1" colSpan="1" >`boolean`</td>
|
|
365
|
-
|
|
366
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
367
|
-
|
|
368
|
-
<td rowspan="1" colSpan="1" >whether loading</td>
|
|
369
|
-
</tr>
|
|
370
|
-
|
|
371
|
-
<tr>
|
|
372
|
-
<td rowspan="1" colSpan="1" >error</td>
|
|
373
|
-
|
|
374
|
-
<td rowspan="1" colSpan="1" >`Error \| null`</td>
|
|
375
|
-
|
|
376
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
377
|
-
|
|
378
|
-
<td rowspan="1" colSpan="1" >Error Message</td>
|
|
379
|
-
</tr>
|
|
380
|
-
|
|
381
|
-
<tr>
|
|
382
|
-
<td rowspan="1" colSpan="1" >keyword</td>
|
|
383
|
-
|
|
384
|
-
<td rowspan="1" colSpan="1" >`string`</td>
|
|
385
|
-
|
|
386
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
387
|
-
|
|
388
|
-
<td rowspan="1" colSpan="1" >search keyword</td>
|
|
389
|
-
</tr>
|
|
390
|
-
|
|
391
|
-
<tr>
|
|
392
|
-
<td rowspan="1" colSpan="1" >typeLabels</td>
|
|
393
|
-
|
|
394
|
-
<td rowspan="1" colSpan="1" >`Record<SearchType, string>`</td>
|
|
395
|
-
|
|
396
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
397
|
-
|
|
398
|
-
<td rowspan="1" colSpan="1" >search type tag</td>
|
|
399
|
-
</tr>
|
|
400
|
-
|
|
401
|
-
<tr>
|
|
402
|
-
<td rowspan="1" colSpan="1" >onLoadMore</td>
|
|
403
|
-
|
|
404
|
-
<td rowspan="1" colSpan="1" >`(type: SearchType) => void`</td>
|
|
405
|
-
|
|
406
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
407
|
-
|
|
408
|
-
<td rowspan="1" colSpan="1" >Load more callback</td>
|
|
409
|
-
</tr>
|
|
410
|
-
|
|
411
|
-
<tr>
|
|
412
|
-
<td rowspan="1" colSpan="1" >onResultItemClick</td>
|
|
413
|
-
|
|
414
|
-
<td rowspan="1" colSpan="1" >`(data: SearchResultItem, type: SearchType) => void`</td>
|
|
415
|
-
|
|
416
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
417
|
-
|
|
418
|
-
<td rowspan="1" colSpan="1" >result item click callback</td>
|
|
419
|
-
</tr>
|
|
420
|
-
|
|
421
|
-
<tr>
|
|
422
|
-
<td rowspan="1" colSpan="1" >SearchResultsLoading</td>
|
|
423
|
-
|
|
424
|
-
<td rowspan="1" colSpan="1" >`React.ComponentType`</td>
|
|
425
|
-
|
|
426
|
-
<td rowspan="1" colSpan="1" >`Loading`</td>
|
|
427
|
-
|
|
428
|
-
<td rowspan="1" colSpan="1" >Custom load component</td>
|
|
429
|
-
</tr>
|
|
430
|
-
|
|
431
|
-
<tr>
|
|
432
|
-
<td rowspan="1" colSpan="1" >SearchResultsPresearch</td>
|
|
433
|
-
|
|
434
|
-
<td rowspan="1" colSpan="1" >`React.ComponentType`</td>
|
|
435
|
-
|
|
436
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
437
|
-
|
|
438
|
-
<td rowspan="1" colSpan="1" >Search placeholder component</td>
|
|
439
|
-
</tr>
|
|
440
|
-
|
|
441
|
-
<tr>
|
|
442
|
-
<td rowspan="1" colSpan="1" >SearchResultsEmpty</td>
|
|
443
|
-
|
|
444
|
-
<td rowspan="1" colSpan="1" >`React.ComponentType`</td>
|
|
445
|
-
|
|
446
|
-
<td rowspan="1" colSpan="1" >`EmptyResult`</td>
|
|
447
|
-
|
|
448
|
-
<td rowspan="1" colSpan="1" >Empty result placeholder component</td>
|
|
449
|
-
</tr>
|
|
450
|
-
|
|
451
|
-
<tr>
|
|
452
|
-
<td rowspan="1" colSpan="1" >SearchResultItem</td>
|
|
453
|
-
|
|
454
|
-
<td rowspan="1" colSpan="1" >`React.ComponentType<ResultItemProps>`</td>
|
|
455
|
-
|
|
456
|
-
<td rowspan="1" colSpan="1" >`DefaultSearchResultsItem`</td>
|
|
457
|
-
|
|
458
|
-
<td rowspan="1" colSpan="1" >Custom result item component</td>
|
|
459
|
-
</tr>
|
|
460
|
-
|
|
461
|
-
<tr>
|
|
462
|
-
<td rowspan="1" colSpan="1" >variant</td>
|
|
463
|
-
|
|
464
|
-
<td rowspan="1" colSpan="1" >`VariantType`</td>
|
|
465
|
-
|
|
466
|
-
<td rowspan="1" colSpan="1" >`VariantType.STANDARD`</td>
|
|
467
|
-
|
|
468
|
-
<td rowspan="1" colSpan="1" >Display Mode</td>
|
|
469
|
-
</tr>
|
|
470
|
-
|
|
471
|
-
<tr>
|
|
472
|
-
<td rowspan="1" colSpan="1" >searchType</td>
|
|
473
|
-
|
|
474
|
-
<td rowspan="1" colSpan="1" >`SearchType \| 'all'`</td>
|
|
475
|
-
|
|
476
|
-
<td rowspan="1" colSpan="1" >`'all'`</td>
|
|
477
|
-
|
|
478
|
-
<td rowspan="1" colSpan="1" >Current search type</td>
|
|
479
|
-
</tr>
|
|
480
|
-
</table>
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
**Example**
|
|
484
|
-
``` typescript
|
|
485
|
-
const CustomSearchResults = ({ results, keyword, onResultItemClick }) => (
|
|
486
|
-
<div className="custom-results">
|
|
487
|
-
{Array.from(results.entries()).map(([type, result]) => (
|
|
488
|
-
<div key={type}>
|
|
489
|
-
<h3>{type}</h3>
|
|
490
|
-
{result.resultList.map((item, index) => (
|
|
491
|
-
<div key={index} onClick={() => onResultItemClick(item, type)}>
|
|
492
|
-
{/* Custom result item */}
|
|
493
|
-
</div>
|
|
494
|
-
))}
|
|
495
|
-
</div>
|
|
496
|
-
))}
|
|
497
|
-
</div>
|
|
498
|
-
);
|
|
499
|
-
|
|
500
|
-
<Search SearchResults={CustomSearchResults} />
|
|
501
|
-
```
|
|
502
|
-
|
|
503
|
-
【Custom Search Advanced】
|
|
504
|
-
|
|
505
|
-
**Props**
|
|
506
|
-
<table>
|
|
507
|
-
<tr>
|
|
508
|
-
<td rowspan="1" colSpan="1" >Attribute Name</td>
|
|
509
|
-
|
|
510
|
-
<td rowspan="1" colSpan="1" >Type</td>
|
|
511
|
-
|
|
512
|
-
<td rowspan="1" colSpan="1" >Default Value</td>
|
|
513
|
-
|
|
514
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
515
|
-
</tr>
|
|
516
|
-
|
|
517
|
-
<tr>
|
|
518
|
-
<td rowspan="1" colSpan="1" >variant</td>
|
|
519
|
-
|
|
520
|
-
<td rowspan="1" colSpan="1" >`VariantType`</td>
|
|
521
|
-
|
|
522
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
523
|
-
|
|
524
|
-
<td rowspan="1" colSpan="1" >Display Mode</td>
|
|
525
|
-
</tr>
|
|
526
|
-
|
|
527
|
-
<tr>
|
|
528
|
-
<td rowspan="1" colSpan="1" >searchType</td>
|
|
529
|
-
|
|
530
|
-
<td rowspan="1" colSpan="1" >`SearchTabType`</td>
|
|
531
|
-
|
|
532
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
533
|
-
|
|
534
|
-
<td rowspan="1" colSpan="1" >Current search type</td>
|
|
535
|
-
</tr>
|
|
536
|
-
|
|
537
|
-
<tr>
|
|
538
|
-
<td rowspan="1" colSpan="1" >advancedParams</td>
|
|
539
|
-
|
|
540
|
-
<td rowspan="1" colSpan="1" >`Map<SearchType, SearchParamsMap[SearchType]>`</td>
|
|
541
|
-
|
|
542
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
543
|
-
|
|
544
|
-
<td rowspan="1" colSpan="1" >Advanced search parameters</td>
|
|
545
|
-
</tr>
|
|
546
|
-
|
|
547
|
-
<tr>
|
|
548
|
-
<td rowspan="1" colSpan="1" >onAdvancedParamsChange</td>
|
|
549
|
-
|
|
550
|
-
<td rowspan="1" colSpan="1" >`(type: SearchType, params: SearchParamsMap[SearchType]) => void`</td>
|
|
551
|
-
|
|
552
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
553
|
-
|
|
554
|
-
<td rowspan="1" colSpan="1" >Parameter change callback</td>
|
|
555
|
-
</tr>
|
|
556
|
-
</table>
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
**Example**
|
|
560
|
-
``` typescript
|
|
561
|
-
const CustomSearchAdvanced = ({ variant, searchType, advancedParams, onAdvancedParamsChange }) => (
|
|
562
|
-
<div className="custom-advanced">
|
|
563
|
-
{/* Custom advanced search function */}
|
|
564
|
-
</div>
|
|
565
|
-
);
|
|
566
|
-
|
|
567
|
-
<Search SearchAdvanced={CustomSearchAdvanced} />
|
|
568
|
-
```
|
|
569
|
-
|
|
570
|
-
【Custom Search Result Item】
|
|
571
|
-
|
|
572
|
-
**Props**
|
|
573
|
-
<table>
|
|
574
|
-
<tr>
|
|
575
|
-
<td rowspan="1" colSpan="1" >Attribute Name</td>
|
|
576
|
-
|
|
577
|
-
<td rowspan="1" colSpan="1" >Type</td>
|
|
578
|
-
|
|
579
|
-
<td rowspan="1" colSpan="1" >Default Value</td>
|
|
580
|
-
|
|
581
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
582
|
-
</tr>
|
|
583
|
-
|
|
584
|
-
<tr>
|
|
585
|
-
<td rowspan="1" colSpan="1" >data</td>
|
|
586
|
-
|
|
587
|
-
<td rowspan="1" colSpan="1" >`SearchResultItem`</td>
|
|
588
|
-
|
|
589
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
590
|
-
|
|
591
|
-
<td rowspan="1" colSpan="1" >search result data</td>
|
|
592
|
-
</tr>
|
|
593
|
-
|
|
594
|
-
<tr>
|
|
595
|
-
<td rowspan="1" colSpan="1" >type</td>
|
|
596
|
-
|
|
597
|
-
<td rowspan="1" colSpan="1" >`SearchType`</td>
|
|
598
|
-
|
|
599
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
600
|
-
|
|
601
|
-
<td rowspan="1" colSpan="1" >search result type</td>
|
|
602
|
-
</tr>
|
|
603
|
-
|
|
604
|
-
<tr>
|
|
605
|
-
<td rowspan="1" colSpan="1" >keyword</td>
|
|
606
|
-
|
|
607
|
-
<td rowspan="1" colSpan="1" >`string`</td>
|
|
608
|
-
|
|
609
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
610
|
-
|
|
611
|
-
<td rowspan="1" colSpan="1" >search keyword</td>
|
|
612
|
-
</tr>
|
|
613
|
-
|
|
614
|
-
<tr>
|
|
615
|
-
<td rowspan="1" colSpan="1" >onClick</td>
|
|
616
|
-
|
|
617
|
-
<td rowspan="1" colSpan="1" >`(data: SearchResultItem, type: SearchType) => void`</td>
|
|
618
|
-
|
|
619
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
620
|
-
|
|
621
|
-
<td rowspan="1" colSpan="1" >click callback</td>
|
|
622
|
-
</tr>
|
|
623
|
-
|
|
624
|
-
<tr>
|
|
625
|
-
<td rowspan="1" colSpan="1" >className</td>
|
|
626
|
-
|
|
627
|
-
<td rowspan="1" colSpan="1" >`string`</td>
|
|
628
|
-
|
|
629
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
630
|
-
|
|
631
|
-
<td rowspan="1" colSpan="1" >Custom style class name</td>
|
|
632
|
-
</tr>
|
|
633
|
-
</table>
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
**Example**
|
|
637
|
-
``` typescript
|
|
638
|
-
const CustomSearchItem = ({ data, type, keyword, onClick }) => (
|
|
639
|
-
<div className="custom-item">
|
|
640
|
-
{type === SearchType.MESSAGE && (
|
|
641
|
-
<Conversation
|
|
642
|
-
data={data}
|
|
643
|
-
keyword={keyword}
|
|
644
|
-
onClick={onClick}
|
|
645
|
-
/>
|
|
646
|
-
)}
|
|
647
|
-
{type === SearchType.USER && (
|
|
648
|
-
<User
|
|
649
|
-
data={data}
|
|
650
|
-
keyword={keyword}
|
|
651
|
-
onClick={onClick}
|
|
652
|
-
/>
|
|
653
|
-
)}
|
|
654
|
-
{type === SearchType.GROUP && (
|
|
655
|
-
<Group
|
|
656
|
-
data={data}
|
|
657
|
-
keyword={keyword}
|
|
658
|
-
onClick={onClick}
|
|
659
|
-
/>
|
|
660
|
-
)}
|
|
661
|
-
{type === SearchType.CHAT_MESSAGE && (
|
|
662
|
-
<Message
|
|
663
|
-
data={data}
|
|
664
|
-
keyword={keyword}
|
|
665
|
-
onClick={onClick}
|
|
666
|
-
/>
|
|
667
|
-
)}
|
|
668
|
-
</div>
|
|
669
|
-
);
|
|
670
|
-
|
|
671
|
-
<Search SearchResultItem={CustomSearchItem} />
|
|
672
|
-
```
|
|
673
|
-
|
|
674
|
-
【Custom Placeholder Component】
|
|
675
|
-
|
|
676
|
-
**Props**
|
|
677
|
-
<table>
|
|
678
|
-
<tr>
|
|
679
|
-
<td rowspan="1" colSpan="1" >Attribute Name</td>
|
|
680
|
-
|
|
681
|
-
<td rowspan="1" colSpan="1" >Type</td>
|
|
682
|
-
|
|
683
|
-
<td rowspan="1" colSpan="1" >Default Value</td>
|
|
684
|
-
|
|
685
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
686
|
-
</tr>
|
|
687
|
-
|
|
688
|
-
<tr>
|
|
689
|
-
<td rowspan="1" colSpan="1" >SearchResultsPresearch</td>
|
|
690
|
-
|
|
691
|
-
<td rowspan="1" colSpan="1" >`React.ComponentType`</td>
|
|
692
|
-
|
|
693
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
694
|
-
|
|
695
|
-
<td rowspan="1" colSpan="1" >Search placeholder component</td>
|
|
696
|
-
</tr>
|
|
697
|
-
|
|
698
|
-
<tr>
|
|
699
|
-
<td rowspan="1" colSpan="1" >SearchResultsLoading</td>
|
|
700
|
-
|
|
701
|
-
<td rowspan="1" colSpan="1" >`React.ComponentType`</td>
|
|
702
|
-
|
|
703
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
704
|
-
|
|
705
|
-
<td rowspan="1" colSpan="1" >Loading placeholder component</td>
|
|
706
|
-
</tr>
|
|
707
|
-
|
|
708
|
-
<tr>
|
|
709
|
-
<td rowspan="1" colSpan="1" >SearchResultsEmpty</td>
|
|
710
|
-
|
|
711
|
-
<td rowspan="1" colSpan="1" >`React.ComponentType`</td>
|
|
712
|
-
|
|
713
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
714
|
-
|
|
715
|
-
<td rowspan="1" colSpan="1" >Empty result placeholder component</td>
|
|
716
|
-
</tr>
|
|
717
|
-
</table>
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
**Example**
|
|
721
|
-
``` typescript
|
|
722
|
-
<Search
|
|
723
|
-
SearchResultsPresearch={() => <div>Enter keywords to start search</div>}
|
|
724
|
-
SearchResultsLoading={() => <div>Searching...</div>}
|
|
725
|
-
SearchResultsEmpty={() => <div>No result found</div>}
|
|
726
|
-
/>
|
|
727
|
-
```
|
|
728
|
-
|
|
729
|
-
## FAQs
|
|
730
|
-
|
|
731
|
-
### How to Customize the Search Result Display Format
|
|
732
|
-
|
|
733
|
-
A: Use the `SearchResultItem` property to import a customize component.
|
|
734
|
-
|
|
735
|
-
### How to Handle Search Performance Issues
|
|
736
|
-
|
|
737
|
-
A: Adjust `debounceTime`, use React.memo, and consider result cache.
|
|
738
|
-
|
|
739
|
-
### How to Optimize Mobile Terminal
|
|
740
|
-
|
|
741
|
-
A: The component automatically adapts to mobile terminals and can be further customized via CSS.
|
|
742
|
-
|
|
743
|
-
### How to Support Multilingual
|
|
744
|
-
|
|
745
|
-
A: The component has built-in internationalization support. Use `useUIKit` to get translations.
|