@tencentcloud/chat-uikit-react 2.3.0 → 2.3.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.
- package/CHANGELOG.md +5 -0
- package/dist/cjs/components/Chat/Chat.js +1 -1
- package/dist/cjs/components/Chat/index.js +1 -1
- package/dist/cjs/components/ChatHeader/ChatHeader.js +1 -1
- package/dist/cjs/components/ChatHeader/ChatHeaderDefault.js +1 -1
- package/dist/cjs/components/ChatSetting/ChatSetting.js +1 -1
- package/dist/cjs/components/Contact/Contact.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/ContactInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/addFriendInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/basicInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/blockInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/friendApplication.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/friendInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/groupInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactInfo/hooks/useContactInfo.js +1 -1
- package/dist/cjs/components/Contact/ContactList/ContactList.js +1 -1
- package/dist/cjs/components/Contact/hooks/useTUIContact.js +1 -1
- package/dist/cjs/components/ContactSearch/ContactSearch.js +1 -1
- package/dist/cjs/components/ContactSearch/hooks/useContactSearch.js +1 -1
- package/dist/cjs/components/ConversationActions/ConversationActions.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
- package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -1
- package/dist/cjs/components/ConversationList/ConversationList.js +1 -1
- package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -1
- package/dist/cjs/components/ConversationPreview/utils.js +1 -1
- package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +1 -1
- package/dist/cjs/components/MessageElement/Message.js +1 -1
- package/dist/cjs/components/MessageElement/MessageAudio.js +1 -1
- package/dist/cjs/components/MessageElement/MessageAvatar.js +1 -1
- package/dist/cjs/components/MessageElement/MessageBubble.js +1 -1
- package/dist/cjs/components/MessageElement/MessageContext.js +1 -1
- package/dist/cjs/components/MessageElement/MessageCustom.js +1 -1
- package/dist/cjs/components/MessageElement/MessageDefault.js +1 -1
- package/dist/cjs/components/MessageElement/MessageName.js +1 -1
- package/dist/cjs/components/MessageElement/MessagePlugins.js +1 -1
- package/dist/cjs/components/MessageElement/MessageProgress.js +1 -1
- package/dist/cjs/components/MessageElement/MessageRevoke.js +1 -1
- package/dist/cjs/components/MessageElement/MessageStatus.js +1 -1
- package/dist/cjs/components/MessageElement/MessageSystem.js +1 -1
- package/dist/cjs/components/MessageElement/MessageText.js +1 -1
- package/dist/cjs/components/MessageElement/MessageTip.js +1 -1
- package/dist/cjs/components/MessageElement/hooks/useMessageHandler.js +1 -1
- package/dist/cjs/components/MessageElement/hooks/useMessageReply.js +1 -1
- package/dist/cjs/components/MessageElement/utils/decodeText.js +1 -1
- package/dist/cjs/components/MessageElement/utils/emojiMap.js +1 -1
- package/dist/cjs/components/MessageElement/utils/index.js +1 -1
- package/dist/cjs/components/MessageInput/EmojiPicker.js +1 -1
- package/dist/cjs/components/MessageInput/Forward.js +1 -1
- package/dist/cjs/components/MessageInput/InputPluginsDefalut.js +1 -1
- package/dist/cjs/components/MessageInput/InputQuoteDefalut.js +1 -1
- package/dist/cjs/components/MessageInput/MessageInput.js +1 -1
- package/dist/cjs/components/MessageInput/MessageInputDefault.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useEmojiPicker.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useHandleQuoteMessage.js +1 -1
- package/dist/cjs/components/MessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/cjs/components/MessageList/MessageList.js +1 -1
- package/dist/cjs/components/MessageList/hooks/useMessageListElement.js +1 -1
- package/dist/cjs/components/Profile/Profile.js +1 -1
- package/dist/cjs/components/Profile/ProfileDefault.js +1 -1
- package/dist/cjs/context/UIKitContext.js +1 -1
- package/dist/cjs/index.css +2 -2
- package/dist/cjs/index.d.css +213 -207
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/locales/en-US/emoji.js +1 -0
- package/dist/cjs/locales/en-US/index.js +1 -1
- package/dist/cjs/locales/index.js +1 -1
- package/dist/cjs/locales/ja-JP/emoji.js +1 -0
- package/dist/cjs/locales/ja-JP/index.js +1 -1
- package/dist/cjs/locales/ko-KR/emoji.js +1 -0
- package/dist/cjs/locales/ko-KR/index.js +1 -1
- package/dist/cjs/locales/zh-CN/emoji.js +1 -0
- package/dist/cjs/locales/zh-CN/index.js +1 -1
- package/dist/cjs/locales/zh-TW/emoji.js +1 -0
- package/dist/cjs/locales/zh-TW/index.js +1 -1
- package/dist/cjs/node_modules/zustand/esm/react.mjs.js +1 -0
- package/dist/cjs/node_modules/zustand/esm/vanilla.mjs.js +1 -0
- package/dist/cjs/store/UIManagerStore.js +1 -0
- package/dist/esm/components/Chat/Chat.js +1 -1
- package/dist/esm/components/Chat/index.js +1 -1
- package/dist/esm/components/ChatHeader/ChatHeader.js +1 -1
- package/dist/esm/components/ChatHeader/ChatHeaderDefault.js +1 -1
- package/dist/esm/components/ChatSetting/ChatSetting.js +1 -1
- package/dist/esm/components/Contact/Contact.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/ContactInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/addFriendInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/basicInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/blockInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/friendApplication.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/friendInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/groupInfo.js +1 -1
- package/dist/esm/components/Contact/ContactInfo/hooks/useContactInfo.js +1 -1
- package/dist/esm/components/Contact/ContactList/ContactList.js +1 -1
- package/dist/esm/components/Contact/hooks/useTUIContact.js +1 -1
- package/dist/esm/components/ContactSearch/ContactSearch.js +1 -1
- package/dist/esm/components/ContactSearch/hooks/useContactSearch.js +1 -1
- package/dist/esm/components/ConversationActions/ConversationActions.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
- package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -1
- package/dist/esm/components/ConversationList/ConversationList.js +1 -1
- package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -1
- package/dist/esm/components/ConversationPreview/utils.js +1 -1
- package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +1 -1
- package/dist/esm/components/MessageElement/Message.js +1 -1
- package/dist/esm/components/MessageElement/MessageAudio.js +1 -1
- package/dist/esm/components/MessageElement/MessageAvatar.js +1 -1
- package/dist/esm/components/MessageElement/MessageBubble.js +1 -1
- package/dist/esm/components/MessageElement/MessageContext.js +1 -1
- package/dist/esm/components/MessageElement/MessageCustom.js +1 -1
- package/dist/esm/components/MessageElement/MessageDefault.js +1 -1
- package/dist/esm/components/MessageElement/MessageName.js +1 -1
- package/dist/esm/components/MessageElement/MessagePlugins.js +1 -1
- package/dist/esm/components/MessageElement/MessageProgress.js +1 -1
- package/dist/esm/components/MessageElement/MessageRevoke.js +1 -1
- package/dist/esm/components/MessageElement/MessageStatus.js +1 -1
- package/dist/esm/components/MessageElement/MessageSystem.js +1 -1
- package/dist/esm/components/MessageElement/MessageText.js +1 -1
- package/dist/esm/components/MessageElement/MessageTip.js +1 -1
- package/dist/esm/components/MessageElement/hooks/useMessageHandler.js +1 -1
- package/dist/esm/components/MessageElement/hooks/useMessageReply.js +1 -1
- package/dist/esm/components/MessageElement/utils/decodeText.js +1 -1
- package/dist/esm/components/MessageElement/utils/emojiMap.js +1 -1
- package/dist/esm/components/MessageElement/utils/index.js +1 -1
- package/dist/esm/components/MessageInput/EmojiPicker.js +1 -1
- package/dist/esm/components/MessageInput/Forward.js +1 -1
- package/dist/esm/components/MessageInput/InputPluginsDefalut.js +1 -1
- package/dist/esm/components/MessageInput/InputQuoteDefalut.js +1 -1
- package/dist/esm/components/MessageInput/MessageInput.js +1 -1
- package/dist/esm/components/MessageInput/MessageInputDefault.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useEmojiPicker.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useHandleForwardMessage.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useHandleQuoteMessage.js +1 -1
- package/dist/esm/components/MessageInput/hooks/useMessageInputText.js +1 -1
- package/dist/esm/components/MessageList/MessageList.js +1 -1
- package/dist/esm/components/MessageList/hooks/useMessageListElement.js +1 -1
- package/dist/esm/components/Profile/Profile.js +1 -1
- package/dist/esm/components/Profile/ProfileDefault.js +1 -1
- package/dist/esm/context/UIKitContext.js +1 -1
- package/dist/esm/index.css +2 -2
- package/dist/esm/index.d.css +213 -207
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/locales/en-US/emoji.js +1 -0
- package/dist/esm/locales/en-US/index.js +1 -1
- package/dist/esm/locales/index.js +1 -1
- package/dist/esm/locales/ja-JP/emoji.js +1 -0
- package/dist/esm/locales/ja-JP/index.js +1 -1
- package/dist/esm/locales/ko-KR/emoji.js +1 -0
- package/dist/esm/locales/ko-KR/index.js +1 -1
- package/dist/esm/locales/zh-CN/emoji.js +1 -0
- package/dist/esm/locales/zh-CN/index.js +1 -1
- package/dist/esm/locales/zh-TW/emoji.js +1 -0
- package/dist/esm/locales/zh-TW/index.js +1 -1
- package/dist/esm/node_modules/zustand/esm/react.mjs.js +1 -0
- package/dist/esm/node_modules/zustand/esm/vanilla.mjs.js +1 -0
- package/dist/esm/store/UIManagerStore.js +1 -0
- package/package.json +5 -3
- package/src/components/Chat/Chat.tsx +3 -3
- package/src/components/Chat/styles/layout.scss +1 -1
- package/src/components/ChatHeader/ChatHeaderDefault.tsx +4 -3
- package/src/components/ChatHeader/styles/layout.scss +1 -1
- package/src/components/ChatSetting/ChatSetting.tsx +8 -7
- package/src/components/ChatSetting/styles/index.scss +2 -1
- package/src/components/Checkbox/styles/color.scss +1 -1
- package/src/components/Contact/Contact.tsx +4 -4
- package/src/components/Contact/ContactInfo/ContactInfo.tsx +2 -2
- package/src/components/Contact/ContactInfo/addFriendInfo.tsx +38 -36
- package/src/components/Contact/ContactInfo/basicInfo.tsx +10 -10
- package/src/components/Contact/ContactInfo/blockInfo.tsx +4 -4
- package/src/components/Contact/ContactInfo/friendApplication.tsx +4 -4
- package/src/components/Contact/ContactInfo/friendInfo.tsx +7 -7
- package/src/components/Contact/ContactInfo/groupInfo.tsx +23 -23
- package/src/components/Contact/ContactInfo/hooks/useContactInfo.tsx +2 -2
- package/src/components/Contact/ContactInfo/index.scss +1 -1
- package/src/components/Contact/ContactList/ContactList.tsx +5 -4
- package/src/components/Contact/ContactList/index.scss +1 -1
- package/src/components/Contact/hooks/useTUIContact.tsx +2 -2
- package/src/components/Contact/index.scss +1 -1
- package/src/components/ContactSearch/ContactSearch.tsx +5 -4
- package/src/components/ContactSearch/hooks/useContactSearch.tsx +4 -3
- package/src/components/ContactSearch/index.scss +1 -1
- package/src/components/ConversationActions/ConversationActions.scss +1 -1
- package/src/components/ConversationActions/ConversationActions.tsx +2 -2
- package/src/components/ConversationCreate/ConversationCreate.tsx +2 -2
- package/src/components/ConversationCreate/ConversationCreateGroupDetail.tsx +4 -4
- package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +4 -4
- package/src/components/ConversationCreate/ConversationGroupTypeInfo.tsx +2 -2
- package/src/components/ConversationCreate/styles/ConversationCreateGroupDetail.scss +1 -1
- package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +1 -1
- package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +1 -1
- package/src/components/ConversationCreate/styles/index.scss +1 -1
- package/src/components/ConversationList/ConversationList.scss +1 -1
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +1 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +1 -1
- package/src/components/ConversationPreview/ConversationPreview.scss +1 -1
- package/src/components/ConversationPreview/ConversationPreview.tsx +3 -3
- package/src/components/ConversationPreview/utils.tsx +2 -2
- package/src/components/ConversationSearch/ConversationSearch.scss +1 -1
- package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.scss +1 -1
- package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.tsx +2 -2
- package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.scss +1 -1
- package/src/components/DivWithEdit/styles/index.scss +1 -1
- package/src/components/Icon/styles/index.scss +1 -1
- package/src/components/Input/styles/index.scss +2 -2
- package/src/components/MessageElement/MessageCustom.tsx +4 -4
- package/src/components/MessageElement/MessagePlugins.tsx +3 -3
- package/src/components/MessageElement/MessageRevoke.tsx +5 -5
- package/src/components/MessageElement/MessageStatus.tsx +2 -1
- package/src/components/MessageElement/hooks/useMessageHandler.ts +9 -6
- package/src/components/MessageElement/hooks/useMessageReply.ts +3 -2
- package/src/components/MessageElement/styles/color.scss +1 -1
- package/src/components/MessageElement/styles/layout.scss +2 -2
- package/src/components/MessageElement/utils/decodeText.ts +59 -9
- package/src/components/MessageElement/utils/emojiMap.ts +73 -474
- package/src/components/MessageElement/utils/index.ts +1 -5
- package/src/components/MessageInput/EmojiPicker.tsx +10 -8
- package/src/components/MessageInput/Forward.tsx +2 -2
- package/src/components/MessageInput/InputPluginsDefalut.tsx +2 -2
- package/src/components/MessageInput/InputQuoteDefalut.tsx +6 -6
- package/src/components/MessageInput/MessageInput.tsx +0 -1
- package/src/components/MessageInput/MessageInputDefault.tsx +5 -5
- package/src/components/MessageInput/hooks/useEmojiPicker.tsx +11 -16
- package/src/components/MessageInput/hooks/useHandleForwardMessage.tsx +3 -4
- package/src/components/MessageInput/hooks/useMessageInputText.tsx +17 -11
- package/src/components/MessageInput/styles/color.scss +1 -1
- package/src/components/MessageInput/styles/layout.scss +2 -2
- package/src/components/MessageList/MessageList.tsx +2 -2
- package/src/components/MessageList/hooks/useMessageListElement.tsx +3 -2
- package/src/components/MessageList/styles/layout.scss +1 -1
- package/src/components/Plugins/styles/color.scss +1 -1
- package/src/components/Profile/Profile.tsx +2 -2
- package/src/components/Profile/ProfileDefault.tsx +4 -4
- package/src/components/Profile/myProfile/styles/index.scss +1 -1
- package/src/components/Profile/styles/color.scss +1 -1
- package/src/components/Profile/styles/layout.scss +1 -1
- package/src/context/UIKitContext.tsx +2 -8
- package/src/context/UIManagerContext.tsx +5 -5
- package/src/context/index.ts +0 -1
- package/src/locales/en-US/emoji.ts +66 -0
- package/src/locales/en-US/index.ts +2 -0
- package/src/locales/index.ts +4 -22
- package/src/locales/ja-JP/emoji.ts +66 -0
- package/src/locales/ja-JP/index.ts +2 -0
- package/src/locales/ko-KR/emoji.ts +66 -0
- package/src/locales/ko-KR/index.ts +2 -0
- package/src/locales/zh-CN/emoji.ts +66 -0
- package/src/locales/zh-CN/index.ts +2 -0
- package/src/locales/zh-TW/emoji.ts +65 -0
- package/src/locales/zh-TW/index.ts +2 -0
- package/src/store/UIManagerStore.ts +108 -0
- package/src/store/index.ts +5 -0
- package/.babelrc +0 -7
- package/.editorconfig +0 -16
- package/.husky/pre-commit +0 -4
- package/.lintstagedrc.json +0 -6
- package/.stylelintrc.js +0 -40
- package/dist/cjs/context/UIManagerContext.d.ts +0 -46
- package/dist/cjs/context/UIManagerContext.js +0 -1
- package/dist/cjs/locales/index.d.ts +0 -6
- package/dist/esm/context/UIManagerContext.d.ts +0 -46
- package/dist/esm/context/UIManagerContext.js +0 -1
- package/dist/esm/locales/index.d.ts +0 -6
- package/rollup.config.js +0 -81
- package/scripts/publish-npm.js +0 -22
|
@@ -1,442 +1,82 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
[key:string]:string
|
|
1
|
+
export interface IEmojiUrlMap {
|
|
2
|
+
[key: string]: string;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
export interface IBigEmojiListItem {
|
|
5
|
-
icon: number
|
|
6
|
-
list:
|
|
6
|
+
icon: number;
|
|
7
|
+
list: string[];
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'[
|
|
13
|
-
'[
|
|
14
|
-
'[
|
|
15
|
-
'[
|
|
16
|
-
'[
|
|
17
|
-
'[
|
|
18
|
-
'[
|
|
19
|
-
'[
|
|
20
|
-
'[
|
|
21
|
-
'[
|
|
22
|
-
'[
|
|
23
|
-
'[
|
|
24
|
-
'[
|
|
25
|
-
'[
|
|
26
|
-
'[
|
|
27
|
-
'[
|
|
28
|
-
'[
|
|
29
|
-
'[
|
|
30
|
-
'[
|
|
31
|
-
'[
|
|
32
|
-
'[
|
|
33
|
-
'[
|
|
34
|
-
'[
|
|
35
|
-
'[
|
|
36
|
-
'[
|
|
37
|
-
'[
|
|
38
|
-
'[
|
|
39
|
-
'[
|
|
40
|
-
'[
|
|
41
|
-
'[
|
|
42
|
-
'[
|
|
43
|
-
'[
|
|
44
|
-
'[
|
|
45
|
-
'[
|
|
46
|
-
'[
|
|
47
|
-
'[
|
|
48
|
-
'[
|
|
49
|
-
'[
|
|
50
|
-
'[
|
|
51
|
-
'[
|
|
52
|
-
'[
|
|
53
|
-
'[
|
|
54
|
-
'[
|
|
55
|
-
'[
|
|
56
|
-
'[
|
|
57
|
-
'[
|
|
58
|
-
'[
|
|
59
|
-
'[
|
|
60
|
-
'[
|
|
61
|
-
'[
|
|
62
|
-
'[
|
|
63
|
-
'[
|
|
64
|
-
'[
|
|
65
|
-
'[
|
|
66
|
-
'[
|
|
67
|
-
'[
|
|
68
|
-
'[
|
|
69
|
-
'[
|
|
70
|
-
'[
|
|
71
|
-
'[
|
|
72
|
-
'[
|
|
73
|
-
'[
|
|
74
|
-
'[拳头]': 'emoji_64@2x.png',
|
|
75
|
-
'[挥手]': 'emoji_65@2x.png',
|
|
76
|
-
'[握手]': 'emoji_66@2x.png',
|
|
77
|
-
'[撇嘴]': 'emoji_67@2x.png',
|
|
78
|
-
'[擦汗]': 'emoji_68@2x.png',
|
|
79
|
-
'[敲打]': 'emoji_69@2x.png',
|
|
80
|
-
'[晕]': 'emoji_70@2x.png',
|
|
81
|
-
'[月亮]': 'emoji_71@2x.png',
|
|
82
|
-
'[棒棒糖]': 'emoji_72@2x.png',
|
|
83
|
-
'[汽车]': 'emoji_73@2x.png',
|
|
84
|
-
'[沙发]': 'emoji_74@2x.png',
|
|
85
|
-
'[流汗]': 'emoji_75@2x.png',
|
|
86
|
-
'[流泪]': 'emoji_76@2x.png',
|
|
87
|
-
'[激动]': 'emoji_77@2x.png',
|
|
88
|
-
'[灯泡]': 'emoji_78@2x.png',
|
|
89
|
-
'[炸弹]': 'emoji_79@2x.png',
|
|
90
|
-
'[熊猫]': 'emoji_80@2x.png',
|
|
91
|
-
'[爆筋]': 'emoji_81@2x.png',
|
|
92
|
-
'[爱你]': 'emoji_82@2x.png',
|
|
93
|
-
'[爱心]': 'emoji_83@2x.png',
|
|
94
|
-
'[爱情]': 'emoji_84@2x.png',
|
|
95
|
-
'[猪头]': 'emoji_85@2x.png',
|
|
96
|
-
'[猫咪]': 'emoji_86@2x.png',
|
|
97
|
-
'[献吻]': 'emoji_87@2x.png',
|
|
98
|
-
'[玫瑰]': 'emoji_88@2x.png',
|
|
99
|
-
'[瓢虫]': 'emoji_89@2x.png',
|
|
100
|
-
'[疑问]': 'emoji_90@2x.png',
|
|
101
|
-
'[白眼]': 'emoji_91@2x.png',
|
|
102
|
-
'[皮球]': 'emoji_92@2x.png',
|
|
103
|
-
'[睡觉]': 'emoji_93@2x.png',
|
|
104
|
-
'[磕头]': 'emoji_94@2x.png',
|
|
105
|
-
'[示爱]': 'emoji_95@2x.png',
|
|
106
|
-
'[礼品袋]': 'emoji_96@2x.png',
|
|
107
|
-
'[礼物]': 'emoji_97@2x.png',
|
|
108
|
-
'[篮球]': 'emoji_98@2x.png',
|
|
109
|
-
'[米饭]': 'emoji_99@2x.png',
|
|
110
|
-
'[糗大了]': 'emoji_100@2x.png',
|
|
111
|
-
'[红双喜]': 'emoji_101@2x.png',
|
|
112
|
-
'[红灯笼]': 'emoji_102@2x.png',
|
|
113
|
-
'[纸巾]': 'emoji_103@2x.png',
|
|
114
|
-
'[胜利]': 'emoji_104@2x.png',
|
|
115
|
-
'[色]': 'emoji_105@2x.png',
|
|
116
|
-
'[药]': 'emoji_106@2x.png',
|
|
117
|
-
'[菜刀]': 'emoji_107@2x.png',
|
|
118
|
-
'[蛋糕]': 'emoji_108@2x.png',
|
|
119
|
-
'[蜡烛]': 'emoji_109@2x.png',
|
|
120
|
-
'[街舞]': 'emoji_110@2x.png',
|
|
121
|
-
'[衰]': 'emoji_111@2x.png',
|
|
122
|
-
'[西瓜]': 'emoji_112@2x.png',
|
|
123
|
-
'[调皮]': 'emoji_113@2x.png',
|
|
124
|
-
'[象棋]': 'emoji_114@2x.png',
|
|
125
|
-
'[跳绳]': 'emoji_115@2x.png',
|
|
126
|
-
'[跳跳]': 'emoji_116@2x.png',
|
|
127
|
-
'[车厢]': 'emoji_117@2x.png',
|
|
128
|
-
'[转圈]': 'emoji_118@2x.png',
|
|
129
|
-
'[鄙视]': 'emoji_119@2x.png',
|
|
130
|
-
'[酷]': 'emoji_120@2x.png',
|
|
131
|
-
'[钞票]': 'emoji_121@2x.png',
|
|
132
|
-
'[钻戒]': 'emoji_122@2x.png',
|
|
133
|
-
'[闪电]': 'emoji_123@2x.png',
|
|
134
|
-
'[闭嘴]': 'emoji_124@2x.png',
|
|
135
|
-
'[闹钟]': 'emoji_125@2x.png',
|
|
136
|
-
'[阴险]': 'emoji_126@2x.png',
|
|
137
|
-
'[难过]': 'emoji_127@2x.png',
|
|
138
|
-
'[雨伞]': 'emoji_128@2x.png',
|
|
139
|
-
'[青蛙]': 'emoji_129@2x.png',
|
|
140
|
-
'[面条]': 'emoji_130@2x.png',
|
|
141
|
-
'[鞭炮]': 'emoji_131@2x.png',
|
|
142
|
-
'[风车]': 'emoji_132@2x.png',
|
|
143
|
-
'[飞吻]': 'emoji_133@2x.png',
|
|
144
|
-
'[飞机]': 'emoji_134@2x.png',
|
|
145
|
-
'[饥饿]': 'emoji_135@2x.png',
|
|
146
|
-
'[香蕉]': 'emoji_136@2x.png',
|
|
147
|
-
'[骷髅]': 'emoji_137@2x.png',
|
|
148
|
-
'[麦克风]': 'emoji_138@2x.png',
|
|
149
|
-
'[麻将]': 'emoji_139@2x.png',
|
|
150
|
-
'[鼓掌]': 'emoji_140@2x.png',
|
|
151
|
-
'[龇牙]': 'emoji_141@2x.png',
|
|
152
|
-
};
|
|
153
|
-
export const emojiEnKey:IEmojiMap = {
|
|
154
|
-
'[NO]': '[no]',
|
|
155
|
-
'[OK]': '[ok]',
|
|
156
|
-
'[下雨]': '[rain]',
|
|
157
|
-
'[么么哒]': '[muah]',
|
|
158
|
-
'[乒乓]': '[ping pong]',
|
|
159
|
-
'[便便]': '[poo]',
|
|
160
|
-
'[信封]': '[mail]',
|
|
161
|
-
'[偷笑]': '[snicker]',
|
|
162
|
-
'[傲慢]': '[arrogant]',
|
|
163
|
-
'[再见]': '[bye]',
|
|
164
|
-
'[冷汗]': '[sweat]',
|
|
165
|
-
'[凋谢]': '[wither]',
|
|
166
|
-
'[刀]': '[knife]',
|
|
167
|
-
'[删除]': '[delete]',
|
|
168
|
-
'[勾引]': '[hook]',
|
|
169
|
-
'[发呆]': '[daze]',
|
|
170
|
-
'[发抖]': '[shaking]',
|
|
171
|
-
'[可怜]': '[pitiful]',
|
|
172
|
-
'[可爱]': '[cute]',
|
|
173
|
-
'[右哼哼]': '[right hum]',
|
|
174
|
-
'[右太极]': '[right Tai Chi]',
|
|
175
|
-
'[右车头]': '[right head]',
|
|
176
|
-
'[吐]': '[vomit]',
|
|
177
|
-
'[吓]': '[scare]',
|
|
178
|
-
'[咒骂]': '[curse]',
|
|
179
|
-
'[咖啡]': '[cafe]',
|
|
180
|
-
'[啤酒]': '[beer]',
|
|
181
|
-
'[嘘]': '[hiss]',
|
|
182
|
-
'[回头]': '[look back]',
|
|
183
|
-
'[困]': '[sleepy]',
|
|
184
|
-
'[坏笑]': '[bad laugh]',
|
|
185
|
-
'[多云]': '[cloud]',
|
|
186
|
-
'[大兵]': '[soldiers]',
|
|
187
|
-
'[大哭]': '[cry]',
|
|
188
|
-
'[太阳]': '[sun]',
|
|
189
|
-
'[奋斗]': '[struggle]',
|
|
190
|
-
'[奶瓶]': '[feeding bottle]',
|
|
191
|
-
'[委屈]': '[wronged]',
|
|
192
|
-
'[害羞]': '[shy]',
|
|
193
|
-
'[尴尬]': '[awkward]',
|
|
194
|
-
'[左哼哼]': '[left hem]',
|
|
195
|
-
'[左太极]': '[left Tai Chi]',
|
|
196
|
-
'[左车头]': '[left head]',
|
|
197
|
-
'[差劲]': '[poor]',
|
|
198
|
-
'[弱]': '[weak]',
|
|
199
|
-
'[强]': '[stong]',
|
|
200
|
-
'[彩带]': '[ribbon]',
|
|
201
|
-
'[彩球]': '[ball]',
|
|
202
|
-
'[得意]': '[proud]',
|
|
203
|
-
'[微笑]': '[smile]',
|
|
204
|
-
'[心碎了]': '[heartbroken]',
|
|
205
|
-
'[快哭了]': '[almost cry]',
|
|
206
|
-
'[怄火]': '[ire]',
|
|
207
|
-
'[怒]': '[anger]',
|
|
208
|
-
'[惊恐]': '[terrify]',
|
|
209
|
-
'[惊讶]': '[flummox]',
|
|
210
|
-
'[憨笑]': '[smirk]',
|
|
211
|
-
'[手枪]': '[gun]',
|
|
212
|
-
'[打哈欠]': '[yawn]',
|
|
213
|
-
'[抓狂]': '[crazy]',
|
|
214
|
-
'[折磨]': '[torment]',
|
|
215
|
-
'[抠鼻]': '[nose picking]',
|
|
216
|
-
'[抱抱]': '[hug]',
|
|
217
|
-
'[抱拳]': '[hug fist]',
|
|
218
|
-
'[拳头]': '[fist]',
|
|
219
|
-
'[挥手]': '[waving hands]',
|
|
220
|
-
'[握手]': '[shake hands]',
|
|
221
|
-
'[撇嘴]': '[pouted]',
|
|
222
|
-
'[擦汗]': '[wipe sweat]',
|
|
223
|
-
'[敲打]': '[knock on the head]',
|
|
224
|
-
'[晕]': '[faint]',
|
|
225
|
-
'[月亮]': '[moon]',
|
|
226
|
-
'[棒棒糖]': '[lollipop]',
|
|
227
|
-
'[汽车]': '[car]',
|
|
228
|
-
'[沙发]': '[sofa]',
|
|
229
|
-
'[流汗]': '[sweat]',
|
|
230
|
-
'[流泪]': '[tears]',
|
|
231
|
-
'[激动]': '[excitement]',
|
|
232
|
-
'[灯泡]': '[light]',
|
|
233
|
-
'[炸弹]': '[bomb]',
|
|
234
|
-
'[熊猫]': '[panda]',
|
|
235
|
-
'[爆筋]': '[exploding muscle]',
|
|
236
|
-
'[爱你]': '[love you]',
|
|
237
|
-
'[爱心]': '[love heart]',
|
|
238
|
-
'[爱情]': '[love]',
|
|
239
|
-
'[猪头]': '[pig]',
|
|
240
|
-
'[猫咪]': '[cat]',
|
|
241
|
-
'[献吻]': '[kiss]',
|
|
242
|
-
'[玫瑰]': '[rose]',
|
|
243
|
-
'[瓢虫]': '[ladybird]',
|
|
244
|
-
'[疑问]': '[what]',
|
|
245
|
-
'[白眼]': '[rolling eyes]',
|
|
246
|
-
'[皮球]': '[rubber ball]',
|
|
247
|
-
'[睡觉]': '[sleep]',
|
|
248
|
-
'[磕头]': '[kowtow]',
|
|
249
|
-
'[示爱]': '[show love]',
|
|
250
|
-
'[礼品袋]': '[gift bag]',
|
|
251
|
-
'[礼物]': '[gift]',
|
|
252
|
-
'[篮球]': '[basketball]',
|
|
253
|
-
'[米饭]': '[rice]',
|
|
254
|
-
'[糗大了]': '[shame]',
|
|
255
|
-
'[红双喜]': '[happiness]',
|
|
256
|
-
'[红灯笼]': '[lantern]',
|
|
257
|
-
'[纸巾]': '[tissue]',
|
|
258
|
-
'[胜利]': '[victory]',
|
|
259
|
-
'[色]': '[lecherous]',
|
|
260
|
-
'[药]': '[medicine]',
|
|
261
|
-
'[菜刀]': '[kitchen knife]',
|
|
262
|
-
'[蛋糕]': '[coke]',
|
|
263
|
-
'[蜡烛]': '[candle]',
|
|
264
|
-
'[街舞]': '[hip hop]',
|
|
265
|
-
'[衰]': '[decline]',
|
|
266
|
-
'[西瓜]': '[lemon]',
|
|
267
|
-
'[调皮]': '[naughty]',
|
|
268
|
-
'[象棋]': '[chess]',
|
|
269
|
-
'[跳绳]': '[jump rope]',
|
|
270
|
-
'[跳跳]': '[jump]',
|
|
271
|
-
'[车厢]': '[compartment]',
|
|
272
|
-
'[转圈]': '[turn in circles]',
|
|
273
|
-
'[鄙视]': '[contempt]',
|
|
274
|
-
'[酷]': '[cool]',
|
|
275
|
-
'[钞票]': '[money]',
|
|
276
|
-
'[钻戒]': '[diamond]',
|
|
277
|
-
'[闪电]': '[lightning]',
|
|
278
|
-
'[闭嘴]': '[shut up]',
|
|
279
|
-
'[闹钟]': '[clock]',
|
|
280
|
-
'[阴险]': '[sinister]',
|
|
281
|
-
'[难过]': '[sad]',
|
|
282
|
-
'[雨伞]': '[umbrella]',
|
|
283
|
-
'[青蛙]': '[frog]',
|
|
284
|
-
'[面条]': '[noodles]',
|
|
285
|
-
'[鞭炮]': '[firecracker]',
|
|
286
|
-
'[风车]': '[windmill]',
|
|
287
|
-
'[飞吻]': '[blow kisses]',
|
|
288
|
-
'[飞机]': '[air]',
|
|
289
|
-
'[饥饿]': '[hunger]',
|
|
290
|
-
'[香蕉]': '[banana]',
|
|
291
|
-
'[骷髅]': '[skull]',
|
|
292
|
-
'[麦克风]': '[mic]',
|
|
293
|
-
'[麻将]': '[mahjong]',
|
|
294
|
-
'[鼓掌]': '[handclap]',
|
|
295
|
-
'[龇牙]': '[happy]',
|
|
9
|
+
|
|
10
|
+
export const emojiBaseUrl = 'https://web.sdk.qcloud.com/im/assets/emoji-plugin/';
|
|
11
|
+
|
|
12
|
+
export const emojiUrlMap: IEmojiUrlMap = {
|
|
13
|
+
'[TUIEmoji_Expect]': 'emoji_0@2x.png',
|
|
14
|
+
'[TUIEmoji_Blink]': 'emoji_1@2x.png',
|
|
15
|
+
'[TUIEmoji_Guffaw]': 'emoji_2@2x.png',
|
|
16
|
+
'[TUIEmoji_KindSmile]': 'emoji_3@2x.png',
|
|
17
|
+
'[TUIEmoji_Haha]': 'emoji_4@2x.png',
|
|
18
|
+
'[TUIEmoji_Cheerful]': 'emoji_5@2x.png',
|
|
19
|
+
'[TUIEmoji_Smile]': 'emoji_6@2x.png',
|
|
20
|
+
'[TUIEmoji_Sorrow]': 'emoji_7@2x.png',
|
|
21
|
+
'[TUIEmoji_Speechless]': 'emoji_8@2x.png',
|
|
22
|
+
'[TUIEmoji_Amazed]': 'emoji_9@2x.png',
|
|
23
|
+
'[TUIEmoji_Complacent]': 'emoji_10@2x.png',
|
|
24
|
+
'[TUIEmoji_Lustful]': 'emoji_11@2x.png',
|
|
25
|
+
'[TUIEmoji_Stareyes]': 'emoji_12@2x.png',
|
|
26
|
+
'[TUIEmoji_Giggle]': 'emoji_13@2x.png',
|
|
27
|
+
'[TUIEmoji_Daemon]': 'emoji_14@2x.png',
|
|
28
|
+
'[TUIEmoji_Rage]': 'emoji_15@2x.png',
|
|
29
|
+
'[TUIEmoji_Yawn]': 'emoji_16@2x.png',
|
|
30
|
+
'[TUIEmoji_TearsLaugh]': 'emoji_17@2x.png',
|
|
31
|
+
'[TUIEmoji_Silly]': 'emoji_18@2x.png',
|
|
32
|
+
'[TUIEmoji_Wail]': 'emoji_19@2x.png',
|
|
33
|
+
'[TUIEmoji_Kiss]': 'emoji_20@2x.png',
|
|
34
|
+
'[TUIEmoji_Trapped]': 'emoji_21@2x.png',
|
|
35
|
+
'[TUIEmoji_Fear]': 'emoji_22@2x.png',
|
|
36
|
+
'[TUIEmoji_BareTeeth]': 'emoji_23@2x.png',
|
|
37
|
+
'[TUIEmoji_FlareUp]': 'emoji_24@2x.png',
|
|
38
|
+
'[TUIEmoji_Tact]': 'emoji_25@2x.png',
|
|
39
|
+
'[TUIEmoji_Shit]': 'emoji_26@2x.png',
|
|
40
|
+
'[TUIEmoji_ShutUp]': 'emoji_27@2x.png',
|
|
41
|
+
'[TUIEmoji_Sigh]': 'emoji_28@2x.png',
|
|
42
|
+
'[TUIEmoji_Hehe]': 'emoji_29@2x.png',
|
|
43
|
+
'[TUIEmoji_Silent]': 'emoji_30@2x.png',
|
|
44
|
+
'[TUIEmoji_Skull]': 'emoji_31@2x.png',
|
|
45
|
+
'[TUIEmoji_Mask]': 'emoji_32@2x.png',
|
|
46
|
+
'[TUIEmoji_Beer]': 'emoji_33@2x.png',
|
|
47
|
+
'[TUIEmoji_Cake]': 'emoji_34@2x.png',
|
|
48
|
+
'[TUIEmoji_RedPacket]': 'emoji_35@2x.png',
|
|
49
|
+
'[TUIEmoji_Bombs]': 'emoji_36@2x.png',
|
|
50
|
+
'[TUIEmoji_Ai]': 'emoji_37@2x.png',
|
|
51
|
+
'[TUIEmoji_Celebrate]': 'emoji_38@2x.png',
|
|
52
|
+
'[TUIEmoji_Bless]': 'emoji_39@2x.png',
|
|
53
|
+
'[TUIEmoji_Flower]': 'emoji_40@2x.png',
|
|
54
|
+
'[TUIEmoji_Watermelon]': 'emoji_41@2x.png',
|
|
55
|
+
'[TUIEmoji_Cow]': 'emoji_42@2x.png',
|
|
56
|
+
'[TUIEmoji_Fool]': 'emoji_43@2x.png',
|
|
57
|
+
'[TUIEmoji_Surprised]': 'emoji_44@2x.png',
|
|
58
|
+
'[TUIEmoji_Askance]': 'emoji_45@2x.png',
|
|
59
|
+
'[TUIEmoji_Monster]': 'emoji_46@2x.png',
|
|
60
|
+
'[TUIEmoji_Pig]': 'emoji_47@2x.png',
|
|
61
|
+
'[TUIEmoji_Coffee]': 'emoji_48@2x.png',
|
|
62
|
+
'[TUIEmoji_Ok]': 'emoji_49@2x.png',
|
|
63
|
+
'[TUIEmoji_Heart]': 'emoji_50@2x.png',
|
|
64
|
+
'[TUIEmoji_Sun]': 'emoji_51@2x.png',
|
|
65
|
+
'[TUIEmoji_Moon]': 'emoji_52@2x.png',
|
|
66
|
+
'[TUIEmoji_Star]': 'emoji_53@2x.png',
|
|
67
|
+
'[TUIEmoji_Rich]': 'emoji_54@2x.png',
|
|
68
|
+
'[TUIEmoji_Fortune]': 'emoji_55@2x.png',
|
|
69
|
+
'[TUIEmoji_857]': 'emoji_56@2x.png',
|
|
70
|
+
'[TUIEmoji_666]': 'emoji_57@2x.png',
|
|
71
|
+
'[TUIEmoji_Prohibit]': 'emoji_58@2x.png',
|
|
72
|
+
'[TUIEmoji_Convinced]': 'emoji_59@2x.png',
|
|
73
|
+
'[TUIEmoji_Knife]': 'emoji_60@2x.png',
|
|
74
|
+
'[TUIEmoji_Like]': 'emoji_61@2x.png',
|
|
296
75
|
};
|
|
297
|
-
|
|
298
|
-
'[龇牙]',
|
|
299
|
-
'[调皮]',
|
|
300
|
-
'[流汗]',
|
|
301
|
-
'[偷笑]',
|
|
302
|
-
'[再见]',
|
|
303
|
-
'[敲打]',
|
|
304
|
-
'[擦汗]',
|
|
305
|
-
'[猪头]',
|
|
306
|
-
'[玫瑰]',
|
|
307
|
-
'[流泪]',
|
|
308
|
-
'[大哭]',
|
|
309
|
-
'[嘘]',
|
|
310
|
-
'[酷]',
|
|
311
|
-
'[抓狂]',
|
|
312
|
-
'[委屈]',
|
|
313
|
-
'[便便]',
|
|
314
|
-
'[炸弹]',
|
|
315
|
-
'[菜刀]',
|
|
316
|
-
'[可爱]',
|
|
317
|
-
'[色]',
|
|
318
|
-
'[害羞]',
|
|
319
|
-
'[得意]',
|
|
320
|
-
'[吐]',
|
|
321
|
-
'[微笑]',
|
|
322
|
-
'[怒]',
|
|
323
|
-
'[尴尬]',
|
|
324
|
-
'[惊恐]',
|
|
325
|
-
'[冷汗]',
|
|
326
|
-
'[爱心]',
|
|
327
|
-
'[示爱]',
|
|
328
|
-
'[白眼]',
|
|
329
|
-
'[傲慢]',
|
|
330
|
-
'[难过]',
|
|
331
|
-
'[惊讶]',
|
|
332
|
-
'[疑问]',
|
|
333
|
-
'[困]',
|
|
334
|
-
'[么么哒]',
|
|
335
|
-
'[憨笑]',
|
|
336
|
-
'[爱情]',
|
|
337
|
-
'[衰]',
|
|
338
|
-
'[撇嘴]',
|
|
339
|
-
'[阴险]',
|
|
340
|
-
'[奋斗]',
|
|
341
|
-
'[发呆]',
|
|
342
|
-
'[右哼哼]',
|
|
343
|
-
'[抱抱]',
|
|
344
|
-
'[坏笑]',
|
|
345
|
-
'[飞吻]',
|
|
346
|
-
'[鄙视]',
|
|
347
|
-
'[晕]',
|
|
348
|
-
'[大兵]',
|
|
349
|
-
'[可怜]',
|
|
350
|
-
'[强]',
|
|
351
|
-
'[弱]',
|
|
352
|
-
'[握手]',
|
|
353
|
-
'[胜利]',
|
|
354
|
-
'[抱拳]',
|
|
355
|
-
'[凋谢]',
|
|
356
|
-
'[米饭]',
|
|
357
|
-
'[蛋糕]',
|
|
358
|
-
'[西瓜]',
|
|
359
|
-
'[啤酒]',
|
|
360
|
-
'[瓢虫]',
|
|
361
|
-
'[勾引]',
|
|
362
|
-
'[OK]',
|
|
363
|
-
'[爱你]',
|
|
364
|
-
'[咖啡]',
|
|
365
|
-
'[月亮]',
|
|
366
|
-
'[刀]',
|
|
367
|
-
'[发抖]',
|
|
368
|
-
'[差劲]',
|
|
369
|
-
'[拳头]',
|
|
370
|
-
'[心碎了]',
|
|
371
|
-
'[太阳]',
|
|
372
|
-
'[礼物]',
|
|
373
|
-
'[皮球]',
|
|
374
|
-
'[骷髅]',
|
|
375
|
-
'[挥手]',
|
|
376
|
-
'[闪电]',
|
|
377
|
-
'[饥饿]',
|
|
378
|
-
'[咒骂]',
|
|
379
|
-
'[折磨]',
|
|
380
|
-
'[抠鼻]',
|
|
381
|
-
'[鼓掌]',
|
|
382
|
-
'[糗大了]',
|
|
383
|
-
'[左哼哼]',
|
|
384
|
-
'[打哈欠]',
|
|
385
|
-
'[快哭了]',
|
|
386
|
-
'[吓]',
|
|
387
|
-
'[篮球]',
|
|
388
|
-
'[乒乓]',
|
|
389
|
-
'[NO]',
|
|
390
|
-
'[跳跳]',
|
|
391
|
-
'[怄火]',
|
|
392
|
-
'[转圈]',
|
|
393
|
-
'[磕头]',
|
|
394
|
-
'[回头]',
|
|
395
|
-
'[跳绳]',
|
|
396
|
-
'[激动]',
|
|
397
|
-
'[街舞]',
|
|
398
|
-
'[献吻]',
|
|
399
|
-
'[左太极]',
|
|
400
|
-
'[右太极]',
|
|
401
|
-
'[闭嘴]',
|
|
402
|
-
'[猫咪]',
|
|
403
|
-
'[红双喜]',
|
|
404
|
-
'[鞭炮]',
|
|
405
|
-
'[红灯笼]',
|
|
406
|
-
'[麻将]',
|
|
407
|
-
'[麦克风]',
|
|
408
|
-
'[礼品袋]',
|
|
409
|
-
'[信封]',
|
|
410
|
-
'[象棋]',
|
|
411
|
-
'[彩带]',
|
|
412
|
-
'[蜡烛]',
|
|
413
|
-
'[爆筋]',
|
|
414
|
-
'[棒棒糖]',
|
|
415
|
-
'[奶瓶]',
|
|
416
|
-
'[面条]',
|
|
417
|
-
'[香蕉]',
|
|
418
|
-
'[飞机]',
|
|
419
|
-
'[左车头]',
|
|
420
|
-
'[车厢]',
|
|
421
|
-
'[右车头]',
|
|
422
|
-
'[多云]',
|
|
423
|
-
'[下雨]',
|
|
424
|
-
'[钞票]',
|
|
425
|
-
'[熊猫]',
|
|
426
|
-
'[灯泡]',
|
|
427
|
-
'[风车]',
|
|
428
|
-
'[闹钟]',
|
|
429
|
-
'[雨伞]',
|
|
430
|
-
'[彩球]',
|
|
431
|
-
'[钻戒]',
|
|
432
|
-
'[沙发]',
|
|
433
|
-
'[纸巾]',
|
|
434
|
-
'[手枪]',
|
|
435
|
-
'[青蛙]',
|
|
436
|
-
];
|
|
76
|
+
|
|
437
77
|
export const faceUrl = 'https://web.sdk.qcloud.com/im/assets/face-elem/';
|
|
438
78
|
|
|
439
|
-
export const bigEmojiList:
|
|
79
|
+
export const bigEmojiList: IBigEmojiListItem[] = [
|
|
440
80
|
{
|
|
441
81
|
icon: 1,
|
|
442
82
|
list: ['yz00', 'yz01', 'yz02', 'yz03', 'yz04', 'yz05', 'yz06', 'yz07', 'yz08',
|
|
@@ -453,44 +93,3 @@ export const bigEmojiList:Array<IBigEmojiListItem> = [
|
|
|
453
93
|
'gcs08', 'gcs09', 'gcs10', 'gcs11', 'gcs12', 'gcs13', 'gcs14', 'gcs15', 'gcs16'],
|
|
454
94
|
},
|
|
455
95
|
];
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* Convert to expression key
|
|
459
|
-
* @param { string } data text
|
|
460
|
-
* @param { number } type 0:Convert to Chinese expression key 1: Convert to English expression key
|
|
461
|
-
* @returns { string } the converted text
|
|
462
|
-
*/
|
|
463
|
-
export function formatEmojiString(data: string, type = 0, language?: string) {
|
|
464
|
-
let text = data;
|
|
465
|
-
const replace = {
|
|
466
|
-
key: type === 0 ? 1 : 0,
|
|
467
|
-
value: type,
|
|
468
|
-
};
|
|
469
|
-
Object.entries(emojiEnKey).map((item) => {
|
|
470
|
-
if (text.includes(item[replace.key])) {
|
|
471
|
-
if (language && language === 'zh-CN') {
|
|
472
|
-
text = item[replace.key];
|
|
473
|
-
} else {
|
|
474
|
-
text = transText(text, item[replace.key], item[replace.value]);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
return item;
|
|
478
|
-
});
|
|
479
|
-
return text;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* recursive replacement text
|
|
484
|
-
* @param { string } data text
|
|
485
|
-
* @param { string } replaceVal the value to replace
|
|
486
|
-
* @param { string } value replace Value
|
|
487
|
-
* @returns { string } the replaced value
|
|
488
|
-
*/
|
|
489
|
-
function transText(data: string, replaceVal:string, value: string) {
|
|
490
|
-
let text = data;
|
|
491
|
-
text = text.replace(replaceVal, value);
|
|
492
|
-
if (text.includes(replaceVal)) {
|
|
493
|
-
text = transText(text, replaceVal, value);
|
|
494
|
-
}
|
|
495
|
-
return text;
|
|
496
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import TencentCloudChat, { Conversation, Group, Message } from '@tencentcloud/chat';
|
|
2
|
-
import { decodeText } from './decodeText';
|
|
3
2
|
import constant, { MESSAGE_STATUS } from '../../../constants';
|
|
4
3
|
import { JSONStringToParse } from '../../utils';
|
|
5
4
|
|
|
@@ -188,10 +187,7 @@ function handleTipGrpUpdated(message: Message) {
|
|
|
188
187
|
|
|
189
188
|
// Parsing and handling text message display
|
|
190
189
|
export function handleTextMessageShowContext(item: any) {
|
|
191
|
-
|
|
192
|
-
text: decodeText(item.payload),
|
|
193
|
-
};
|
|
194
|
-
return options;
|
|
190
|
+
return item.getMessageContent();
|
|
195
191
|
}
|
|
196
192
|
|
|
197
193
|
// Parsing and handling face message display
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-react';
|
|
2
3
|
import { useTUIMessageInputContext } from '../../context/MessageInputContext';
|
|
3
4
|
import { Icon, IconTypes } from '../Icon';
|
|
4
5
|
import { Popup } from '../Popup';
|
|
5
6
|
import {
|
|
6
|
-
|
|
7
|
+
emojiBaseUrl, emojiUrlMap,
|
|
7
8
|
// bigEmojiList, faceUrl, IBigEmojiListItem,
|
|
8
9
|
} from '../MessageElement/utils/emojiMap';
|
|
9
10
|
|
|
10
11
|
import type { EmojiData } from './hooks';
|
|
11
12
|
|
|
12
|
-
export function EmojiPicker():React.ReactElement {
|
|
13
|
+
export function EmojiPicker(): React.ReactElement {
|
|
13
14
|
const [show, setShow] = useState(false);
|
|
14
15
|
const [index, setIndex] = useState(0);
|
|
15
16
|
const [className, setClassName] = useState('');
|
|
16
17
|
|
|
18
|
+
const { t } = useUIKit();
|
|
19
|
+
|
|
17
20
|
const handleShow = () => {
|
|
18
21
|
setShow(!show);
|
|
19
22
|
};
|
|
@@ -53,19 +56,18 @@ export function EmojiPicker():React.ReactElement {
|
|
|
53
56
|
>
|
|
54
57
|
<ul className="face-list">
|
|
55
58
|
{
|
|
56
|
-
index === 0 &&
|
|
57
|
-
const key = item + emojiIndex;
|
|
59
|
+
index === 0 && Object.keys(emojiUrlMap).map((emojiKey: string) => {
|
|
58
60
|
return (
|
|
59
61
|
<li
|
|
60
62
|
role="menuitem"
|
|
61
63
|
className="face-list-item"
|
|
62
|
-
key={
|
|
64
|
+
key={emojiKey}
|
|
63
65
|
onClick={handleSelectEmoji}
|
|
64
66
|
>
|
|
65
67
|
<img
|
|
66
|
-
src={
|
|
67
|
-
alt=
|
|
68
|
-
data-data={
|
|
68
|
+
src={emojiBaseUrl + emojiUrlMap[emojiKey]}
|
|
69
|
+
alt={t(`Emoji.${emojiKey}`)}
|
|
70
|
+
data-data={emojiKey}
|
|
69
71
|
/>
|
|
70
72
|
</li>
|
|
71
73
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, {
|
|
2
2
|
PropsWithChildren, useCallback, useEffect, useState,
|
|
3
3
|
} from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-react';
|
|
5
5
|
import { Conversation, Message } from '@tencentcloud/chat';
|
|
6
6
|
import { useTUIChatActionContext } from '../../context';
|
|
7
7
|
import './styles/index.scss';
|
|
@@ -29,7 +29,7 @@ export function Forward<T extends TUIForwardToProps>(
|
|
|
29
29
|
const {
|
|
30
30
|
handleForward: propsHandleForward,
|
|
31
31
|
} = props;
|
|
32
|
-
const { t } =
|
|
32
|
+
const { t } = useUIKit();
|
|
33
33
|
const [selectList, setSelectList] = useState([]);
|
|
34
34
|
const [searchResult, setSearchResult] = useState([]);
|
|
35
35
|
const [searchValue, setSearchValue] = useState('');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-react';
|
|
3
3
|
import './styles/index.scss';
|
|
4
4
|
|
|
5
5
|
import { EmojiPicker } from './EmojiPicker';
|
|
@@ -15,7 +15,7 @@ export function InputPluginsDefalut(): React.ReactElement {
|
|
|
15
15
|
sendUploadMessage,
|
|
16
16
|
pluginConfig: propsPluginConfig,
|
|
17
17
|
} = useTUIMessageInputContext('TUIMessageInputDefault');
|
|
18
|
-
const { t } =
|
|
18
|
+
const { t } = useUIKit();
|
|
19
19
|
|
|
20
20
|
const { TUIMessageInputConfig } = useTUIChatStateContext('TUIMessageInput');
|
|
21
21
|
|