cometchat-visual-builder-no-code 1.0.20-authtest2 → 1.0.20-authtest4
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/dist/156.main.js +1 -0
- package/dist/194.main.js +1 -0
- package/dist/37.main.js +1 -0
- package/dist/380.main.js +1 -0
- package/dist/750.main.js +1 -0
- package/dist/assets/Roboto-Black.4afbed674a5252ead176.ttf +0 -0
- package/dist/assets/Roboto-BlackItalic.b49c4ba79204961dccd3.ttf +0 -0
- package/dist/assets/Roboto-Bold.d50a80138ec4f2fb5e9f.ttf +0 -0
- package/dist/assets/Roboto-BoldItalic.3fcf599c8a6c05a2c712.ttf +0 -0
- package/dist/assets/Roboto-Italic.cd47f5421512ee65fe22.ttf +0 -0
- package/dist/assets/Roboto-Light.839cb7309f46fed11436.ttf +0 -0
- package/dist/assets/Roboto-LightItalic.3743e89917aa46e2f6e5.ttf +0 -0
- package/dist/assets/Roboto-Medium.e73e917f7bfa48666e00.ttf +0 -0
- package/dist/assets/Roboto-MediumItalic.3dc683bc0f0d56bae3f8.ttf +0 -0
- package/dist/assets/Roboto-Regular.27f62b53b93858475a7f.ttf +0 -0
- package/dist/assets/change_scope.b7ce2e760bde03b486b5.png +0 -0
- package/dist/assets/svg/Copy.4d5c5370c2badfa4ec72.svg +5 -0
- package/dist/assets/svg/Spinner-Gradient-1.f2f8d4c6a11b46ae64da.svg +12 -0
- package/dist/assets/svg/addMembers.ac9bd9903ea91980e5bc.svg +5 -0
- package/dist/assets/svg/arrow_back.dd796cd8deddca446613.svg +8 -0
- package/dist/assets/svg/audio_call_button.17b58b643e8bc12cc6b9.svg +5 -0
- package/dist/assets/svg/block.0699b8d96de4c20c76d0.svg +5 -0
- package/dist/assets/svg/call-log-audio.0e3aaf2981e227b061c4.svg +3 -0
- package/dist/assets/svg/call-log_video.a810985ecf2746c8842f.svg +3 -0
- package/dist/assets/svg/callRecordingEmpty.eed59067696789e6204c.svg +8 -0
- package/dist/assets/svg/callRejectedIcon.fc84614b78bd19ffa1b0.svg +3 -0
- package/dist/assets/svg/call_empty.8ce6468827c447772bb6.svg +10 -0
- package/dist/assets/svg/call_end_no_fill.4a9911b198245072f6ae.svg +3 -0
- package/dist/assets/svg/call_made.e084ced6071c98821ebc.svg +8 -0
- package/dist/assets/svg/call_received.8a1f2ab017bbcf7bb046.svg +8 -0
- package/dist/assets/svg/calls.28f11734184b2e2e4e71.svg +5 -0
- package/dist/assets/svg/chats.5adfcfafa4cc0d303184.svg +10 -0
- package/dist/assets/svg/checkbox_tick.c8c052b7695f577cad91.svg +5 -0
- package/dist/assets/svg/close.2adefe6aea2efbd3491d.svg +12 -0
- package/dist/assets/svg/close.9564eb57de95f15d7b4e.svg +8 -0
- package/dist/assets/svg/close2x.09f99d39f2d15fce3d6e.svg +12 -0
- package/dist/assets/svg/collaborative_document_fill.221c4b61169245253c63.svg +4 -0
- package/dist/assets/svg/collaborative_whiteboard.25e29644e4591c341125.svg +4 -0
- package/dist/assets/svg/collaborative_whiteboard_fill.25e29644e4591c341125.svg +4 -0
- package/dist/assets/svg/cometchat_logo.ecf7992c1cc3576ceb57.svg +11 -0
- package/dist/assets/svg/conversations_audio-message.55058fd73f6f30059605.svg +8 -0
- package/dist/assets/svg/conversations_collaborative-document-message.9f5c199a668e6da1c4c6.svg +4 -0
- package/dist/assets/svg/conversations_collaborative-whiteboard-message.247bd7060246085899a4.svg +5 -0
- package/dist/assets/svg/conversations_delete.ce537f017fc12fab523e.svg +8 -0
- package/dist/assets/svg/conversations_delivered.510802caddcee7cf38e1.svg +3 -0
- package/dist/assets/svg/conversations_empty_state.32344f305d4d728f07e7.svg +20 -0
- package/dist/assets/svg/conversations_file-message.64124f24b26099a70a27.svg +8 -0
- package/dist/assets/svg/conversations_image-message.eaaad8ef101995637081.svg +8 -0
- package/dist/assets/svg/conversations_link.cfde67f9dcdc9ad112cc.svg +8 -0
- package/dist/assets/svg/conversations_missed-video-call.77f4e98af6049b2deab0.svg +8 -0
- package/dist/assets/svg/conversations_missed-voice-call.b52f9611ff85a6f468ee.svg +3 -0
- package/dist/assets/svg/conversations_outgoing-video-call.53f25a89d3793fdf2a00.svg +8 -0
- package/dist/assets/svg/conversations_outgoing-voice-call.aa7e2a8136855c39e5cb.svg +4 -0
- package/dist/assets/svg/conversations_poll-message.a38228224d6a756b8aa0.svg +3 -0
- package/dist/assets/svg/conversations_read.510802caddcee7cf38e1.svg +3 -0
- package/dist/assets/svg/conversations_sent.fbb8355efb327852ba32.svg +3 -0
- package/dist/assets/svg/conversations_sticker-message.1e08cf8a4ce3d8af27c9.svg +4 -0
- package/dist/assets/svg/conversations_thread.ef0eb6defdbb3b8a27b6.svg +8 -0
- package/dist/assets/svg/conversations_video-message.a2b413578aacf04e2a73.svg +8 -0
- package/dist/assets/svg/create-group.1166ddd2089dc474d86b.svg +3 -0
- package/dist/assets/svg/delete.9436ff083c3f2bf87470.svg +7 -0
- package/dist/assets/svg/delete.ca82d8766e6022162c9a.svg +8 -0
- package/dist/assets/svg/delete_icon.5db005e80f01622481b4.svg +4 -0
- package/dist/assets/svg/download.2068ff3bb9a26d87d0e5.svg +8 -0
- package/dist/assets/svg/downloadRecording.68d1a64015bdff727563.svg +3 -0
- package/dist/assets/svg/dropdown-arrow.19438c7586194515d473.svg +3 -0
- package/dist/assets/svg/emptyStateIconChat.dd845e1db2718f852ae0.svg +13 -0
- package/dist/assets/svg/error_icon.093f6c62b1e9dc09b727.svg +3 -0
- package/dist/assets/svg/error_info.139c04e0afeb03ada008.svg +3 -0
- package/dist/assets/svg/groups.6cc0adefb30e36b72309.svg +5 -0
- package/dist/assets/svg/incomingCallIcon.f72a226b678f60cf8858.svg +3 -0
- package/dist/assets/svg/incomingCallSuccess.0bf30f35cef97a13ccbe.svg +3 -0
- package/dist/assets/svg/incoming_video.00f32e896263889e2509.svg +8 -0
- package/dist/assets/svg/incoming_video_no_fill.01824d5f73a4bb089c1c.svg +4 -0
- package/dist/assets/svg/infoIcon.a45d68fa3e8e16b713b0.svg +5 -0
- package/dist/assets/svg/leaveGroup.58a4d38b4954c066952c.svg +5 -0
- package/dist/assets/svg/link_icon_2x.36e20b3a8c0cb0f48554.svg +3 -0
- package/dist/assets/svg/list_error_state_icon.173ec5995098722fd26a.svg +20 -0
- package/dist/assets/svg/loading_icon.0b32af930a5efc56290d.svg +3 -0
- package/dist/assets/svg/lock.71f7e9ad8da2b826c5c8.svg +8 -0
- package/dist/assets/svg/logout.450e8c11bf96d0c74710.svg +3 -0
- package/dist/assets/svg/message_blocked.79ffe1a906c494f50bb9.svg +8 -0
- package/dist/assets/svg/message_delete.ce537f017fc12fab523e.svg +8 -0
- package/dist/assets/svg/mic_off.feb56f6133333e8e36fa.svg +8 -0
- package/dist/assets/svg/missedCallIcon.1cd662c850168ec2dd17.svg +10 -0
- package/dist/assets/svg/missedCallIcon.6048dda48a6a5b22dedc.svg +3 -0
- package/dist/assets/svg/missed_video_call_no_fill.a0aacfbcbf172a144ddc.svg +3 -0
- package/dist/assets/svg/more_icon.81b8f41258a897ea6ac4.svg +5 -0
- package/dist/assets/svg/outgoingCallSuccess.bbbc38474aa26b2bc241.svg +3 -0
- package/dist/assets/svg/outgoing_video.5381c4a37cb744fc30a7.svg +8 -0
- package/dist/assets/svg/outgoing_video_no_fill.765e9ef5fcb3e4a5be0c.svg +4 -0
- package/dist/assets/svg/pause.05902e314b4e9feca993.svg +8 -0
- package/dist/assets/svg/phone_incoming.d8337717bd699169eaa5.svg +3 -0
- package/dist/assets/svg/phone_incoming_no_fill.74e0941289461c76a5b4.svg +3 -0
- package/dist/assets/svg/phone_missed_no_fill.79993937b02c29c3ea6c.svg +3 -0
- package/dist/assets/svg/phone_outgoing.fe790222212ccc2b0221.svg +4 -0
- package/dist/assets/svg/phone_outgoing_no_fill.07e8c060e778f4974d37.svg +4 -0
- package/dist/assets/svg/play_arrow.04f459a65b962cbb5f65.svg +8 -0
- package/dist/assets/svg/recording_icon.34cb90ed731d42e870b8.svg +10 -0
- package/dist/assets/svg/recording_resume.3d513ca8193f9334828b.svg +10 -0
- package/dist/assets/svg/right-arrow.d430f526b3249ce1e4c9.svg +3 -0
- package/dist/assets/svg/search.61b1c747aa872b5ab4aa.svg +4 -0
- package/dist/assets/svg/search_message_icon.dce7250b5966716057a8.svg +8 -0
- package/dist/assets/svg/send-message.fa7501d52cb01566a038.svg +3 -0
- package/dist/assets/svg/send_fill.7d309325ccdb5f41d511.svg +8 -0
- package/dist/assets/svg/shield.0e8a980876383e89187b.svg +3 -0
- package/dist/assets/svg/start_chat.8f162a45823986cf2187.svg +5 -0
- package/dist/assets/svg/status_delivered.eda17954854636ebc910.svg +5 -0
- package/dist/assets/svg/status_read.f096888f2bedb92218d0.svg +3 -0
- package/dist/assets/svg/status_sending.7d1d357d6406afa36f70.svg +5 -0
- package/dist/assets/svg/status_sent.929a6372b15bb47d0179.svg +5 -0
- package/dist/assets/svg/sticker.54cf4f566ab9065ac0ef.svg +3 -0
- package/dist/assets/svg/stop-message.394e6adf2af527d6b219.svg +3 -0
- package/dist/assets/svg/stop.436a8cb465a4609f82a5.svg +8 -0
- package/dist/assets/svg/tooltip.2aa237f32c9f99b8d920.svg +5 -0
- package/dist/assets/svg/user.8dfdcadd19738360c459.svg +3 -0
- package/dist/assets/svg/user_empty.cce82d51a2fd34fb1414.svg +8 -0
- package/dist/assets/svg/users.3a4bb20ce645e85da09e.svg +5 -0
- package/dist/assets/svg/video_call_button.ad8739d880b299a43512.svg +5 -0
- package/dist/icons/docked_close_icon.svg +3 -0
- package/dist/icons/docked_open_icon.svg +10 -0
- package/dist/main.js +2 -0
- package/dist/main.js.LICENSE.txt +48 -0
- package/dist/src/CometChat/CometChatApp.d.ts +18 -0
- package/dist/src/CometChat/CometChatSettings.d.ts +104 -0
- package/dist/src/CometChat/components/CometChatAddMembers/CometChatAddMembers.d.ts +210 -0
- package/dist/src/CometChat/components/CometChatAddMembers/useCometChatAddMembers.d.ts +11 -0
- package/dist/src/CometChat/components/CometChatAlertPopup/CometChatAlertPopup.d.ts +6 -0
- package/dist/src/CometChat/components/CometChatBannedMembers/CometChatBannedMembers.d.ts +6 -0
- package/dist/src/CometChat/components/CometChatCallLog/CometChatCallLogDetails.d.ts +5 -0
- package/dist/src/CometChat/components/CometChatCallLog/CometChatCallLogHistory.d.ts +4 -0
- package/dist/src/CometChat/components/CometChatCallLog/CometChatCallLogInfo.d.ts +4 -0
- package/dist/src/CometChat/components/CometChatCallLog/CometChatCallLogParticipants.d.ts +4 -0
- package/dist/src/CometChat/components/CometChatCallLog/CometChatCallLogRecordings.d.ts +4 -0
- package/dist/src/CometChat/components/CometChatCreateGroup/CometChatCreateGroup.d.ts +8 -0
- package/dist/src/CometChat/components/CometChatDetails/CometChatThreadedMessages.d.ts +14 -0
- package/dist/src/CometChat/components/CometChatDetails/CometChatUserDetails.d.ts +17 -0
- package/dist/src/CometChat/components/CometChatHome/CometChatHome.d.ts +15 -0
- package/dist/src/CometChat/components/CometChatJoinGroup/CometChatJoinGroup.d.ts +8 -0
- package/dist/src/CometChat/components/CometChatLogin/CometChatAppCredentials.d.ts +3 -0
- package/dist/src/CometChat/components/CometChatLogin/CometChatLogin.d.ts +3 -0
- package/dist/src/CometChat/components/CometChatLogin/sampledata.d.ts +7 -0
- package/dist/src/CometChat/components/CometChatMessages/CometChatEmptyStateView.d.ts +4 -0
- package/dist/src/CometChat/components/CometChatMessages/CometChatMessages.d.ts +15 -0
- package/dist/src/CometChat/components/CometChatSearchView/CometChatSearchView.d.ts +19 -0
- package/dist/src/CometChat/components/CometChatSelector/CometChatSelector.d.ts +20 -0
- package/dist/src/CometChat/components/CometChatSelector/CometChatTabs.d.ts +9 -0
- package/dist/src/CometChat/components/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +142 -0
- package/dist/src/CometChat/components/CometChatTransferOwnership/useCometChatTransferOwnership.d.ts +7 -0
- package/dist/src/CometChat/context/AppContext.d.ts +8 -0
- package/dist/src/CometChat/context/CometChatContext.d.ts +133 -0
- package/dist/src/CometChat/context/appReducer.d.ts +405 -0
- package/dist/src/CometChat/customHook/useThemeStyles.d.ts +2 -0
- package/dist/src/CometChat/customHooks.d.ts +7 -0
- package/dist/src/CometChat/styleConfig.d.ts +108 -0
- package/dist/src/CometChat/utils/utils.d.ts +28 -0
- package/dist/src/CometChatNoCode/CometChatApi.d.ts +65 -0
- package/dist/src/CometChatNoCode/components/AIAgentView/AIAgentView.d.ts +9 -0
- package/dist/src/CometChatNoCode/components/IframePortal.d.ts +9 -0
- package/dist/src/CometChatNoCode/components/docked/DockedChatView.d.ts +10 -0
- package/dist/src/CometChatNoCode/components/embedded/EmbeddedChatView.d.ts +10 -0
- package/dist/src/CometChatNoCode/customHooks/useInjectNoCodeStyles.d.ts +5 -0
- package/dist/src/CometChatNoCode/customHooks/useMessageIndicatorClick.d.ts +17 -0
- package/dist/src/CometChatNoCode/customHooks/useSyncCSSVarsToIframe.d.ts +2 -0
- package/dist/src/CometChatNoCode/services/builders.d.ts +5 -0
- package/dist/src/CometChatNoCode/utils/utils.d.ts +11 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/noCodeConstants.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
|
+
*
|
|
4
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
5
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
6
|
+
* @namespace
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-dom.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @license React
|
|
22
|
+
* react-jsx-runtime.production.min.js
|
|
23
|
+
*
|
|
24
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @license React
|
|
32
|
+
* react.production.min.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @license React
|
|
42
|
+
* scheduler.production.min.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './styles/CometChatApp.css';
|
|
2
|
+
import '@cometchat/chat-uikit-react/css-variables.css';
|
|
3
|
+
interface CometChatAppProps {
|
|
4
|
+
/** Default user for the chat application (optional). */
|
|
5
|
+
user?: CometChat.User;
|
|
6
|
+
/** Default group for the chat application (optional). */
|
|
7
|
+
group?: CometChat.Group;
|
|
8
|
+
/** Show or hide group action messages (optional). */
|
|
9
|
+
showGroupActionMessages?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Main application component for the CometChat Builder.
|
|
13
|
+
*
|
|
14
|
+
* @param {CometChatAppProps} props - The component props.
|
|
15
|
+
* @returns {JSX.Element} The rendered CometChatApp component.
|
|
16
|
+
*/
|
|
17
|
+
declare function CometChatApp({ user, group, showGroupActionMessages }: CometChatAppProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default CometChatApp;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export interface CometChatSettingsInterface {
|
|
2
|
+
chatFeatures: {
|
|
3
|
+
coreMessagingExperience: {
|
|
4
|
+
typingIndicator: boolean;
|
|
5
|
+
threadConversationAndReplies: boolean;
|
|
6
|
+
photosSharing: boolean;
|
|
7
|
+
videoSharing: boolean;
|
|
8
|
+
audioSharing: boolean;
|
|
9
|
+
fileSharing: boolean;
|
|
10
|
+
editMessage: boolean;
|
|
11
|
+
deleteMessage: boolean;
|
|
12
|
+
messageDeliveryAndReadReceipts: boolean;
|
|
13
|
+
userAndFriendsPresence: boolean;
|
|
14
|
+
conversationAndAdvancedSearch?: boolean;
|
|
15
|
+
moderation?: boolean;
|
|
16
|
+
quotedReplies?: boolean;
|
|
17
|
+
};
|
|
18
|
+
deeperUserEngagement: {
|
|
19
|
+
mentions: boolean;
|
|
20
|
+
mentionAll?: boolean;
|
|
21
|
+
reactions: boolean;
|
|
22
|
+
messageTranslation: boolean;
|
|
23
|
+
polls: boolean;
|
|
24
|
+
collaborativeWhiteboard: boolean;
|
|
25
|
+
collaborativeDocument: boolean;
|
|
26
|
+
voiceNotes: boolean;
|
|
27
|
+
emojis: boolean;
|
|
28
|
+
stickers: boolean;
|
|
29
|
+
userInfo: boolean;
|
|
30
|
+
groupInfo: boolean;
|
|
31
|
+
reportMessage?: boolean;
|
|
32
|
+
};
|
|
33
|
+
aiUserCopilot: {
|
|
34
|
+
conversationStarter: boolean;
|
|
35
|
+
conversationSummary: boolean;
|
|
36
|
+
smartReply: boolean;
|
|
37
|
+
};
|
|
38
|
+
userManagement?: {
|
|
39
|
+
friendsOnly?: boolean;
|
|
40
|
+
};
|
|
41
|
+
groupManagement: {
|
|
42
|
+
createGroup: boolean;
|
|
43
|
+
addMembersToGroups: boolean;
|
|
44
|
+
joinLeaveGroup: boolean;
|
|
45
|
+
deleteGroup: boolean;
|
|
46
|
+
viewGroupMembers: boolean;
|
|
47
|
+
};
|
|
48
|
+
moderatorControls: {
|
|
49
|
+
kickUsers: boolean;
|
|
50
|
+
banUsers: boolean;
|
|
51
|
+
promoteDemoteMembers: boolean;
|
|
52
|
+
reportMessage?: boolean;
|
|
53
|
+
};
|
|
54
|
+
privateMessagingWithinGroups: {
|
|
55
|
+
sendPrivateMessageToGroupMembers: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
callFeatures: {
|
|
59
|
+
voiceAndVideoCalling: {
|
|
60
|
+
oneOnOneVoiceCalling: boolean;
|
|
61
|
+
oneOnOneVideoCalling: boolean;
|
|
62
|
+
groupVideoConference: boolean;
|
|
63
|
+
groupVoiceConference: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
layout: {
|
|
67
|
+
withSideBar: boolean;
|
|
68
|
+
tabs: string[];
|
|
69
|
+
chatType: string;
|
|
70
|
+
};
|
|
71
|
+
style: {
|
|
72
|
+
theme: string;
|
|
73
|
+
color: {
|
|
74
|
+
brandColor: string;
|
|
75
|
+
primaryTextLight: string;
|
|
76
|
+
primaryTextDark: string;
|
|
77
|
+
secondaryTextLight: string;
|
|
78
|
+
secondaryTextDark: string;
|
|
79
|
+
};
|
|
80
|
+
typography: {
|
|
81
|
+
font: string;
|
|
82
|
+
size: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
noCode?: {
|
|
86
|
+
docked: boolean;
|
|
87
|
+
styles: {
|
|
88
|
+
buttonBackGround: string;
|
|
89
|
+
buttonShape: string;
|
|
90
|
+
openIcon: string;
|
|
91
|
+
closeIcon: string;
|
|
92
|
+
customJs: string;
|
|
93
|
+
customCss: string;
|
|
94
|
+
dockedAlignment?: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
agent?: {
|
|
98
|
+
chatHistory: boolean;
|
|
99
|
+
newChat: boolean;
|
|
100
|
+
agentIcon: string;
|
|
101
|
+
showAgentIcon: boolean;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export declare const CometChatSettings: CometChatSettingsInterface;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { CSSProperties, JSX } from 'react';
|
|
2
|
+
import '../../styles/CometChatAddMembers/CometChatAddMembers.css';
|
|
3
|
+
import { CometChatOption, SelectionMode } from '@cometchat/chat-uikit-react';
|
|
4
|
+
interface IAddMembersProps {
|
|
5
|
+
/**
|
|
6
|
+
* Image URL for the back button
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This prop will also be used if `backButton` prop is not provided
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue `./assets/backbutton.svg`
|
|
12
|
+
*/
|
|
13
|
+
backButtonIconURL?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Show back button
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue `true`
|
|
18
|
+
*/
|
|
19
|
+
showBackButton?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Function to call when the back button is clicked
|
|
22
|
+
*/
|
|
23
|
+
onBack?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Title of the component
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue `getLocalizedString("ADD_MEMBERS")`
|
|
28
|
+
*/
|
|
29
|
+
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Hide the search bar
|
|
32
|
+
*
|
|
33
|
+
* @defaulValue `false`
|
|
34
|
+
*/
|
|
35
|
+
hideSearch?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Image URL for the search icon to use in the search bar
|
|
38
|
+
*
|
|
39
|
+
* @defaultValue `./assets/search.svg`
|
|
40
|
+
*/
|
|
41
|
+
searchIconURL?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Text to be displayed when the search input has no value
|
|
44
|
+
*
|
|
45
|
+
* @defaultValue `getLocalizedString("SEARCH")`
|
|
46
|
+
*/
|
|
47
|
+
searchPlaceholderText?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Show alphabetical header
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue `false`
|
|
52
|
+
*/
|
|
53
|
+
showSectionHeader?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Property on the user object
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* This property will be used to extract the section header character from the user object
|
|
59
|
+
*
|
|
60
|
+
* @defaultValue `getName`
|
|
61
|
+
*/
|
|
62
|
+
sectionHeaderField?: keyof CometChat.User;
|
|
63
|
+
/**
|
|
64
|
+
* Image URL for the default loading view
|
|
65
|
+
*
|
|
66
|
+
* @defaultValue `./assets/spinner.svg`
|
|
67
|
+
*/
|
|
68
|
+
loadingIconURL?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Custom view for the loading state of the component
|
|
71
|
+
*/
|
|
72
|
+
loadingStateView?: JSX.Element;
|
|
73
|
+
/**
|
|
74
|
+
* Text to display in the default empty view
|
|
75
|
+
*
|
|
76
|
+
* @defaultValue `getLocalizedString("NO_USERS_FOUND")`
|
|
77
|
+
*/
|
|
78
|
+
emptyStateText?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Custom view for the empty state of the component
|
|
81
|
+
*/
|
|
82
|
+
emptyStateView?: JSX.Element;
|
|
83
|
+
/**
|
|
84
|
+
* Text to display in the default error view
|
|
85
|
+
*
|
|
86
|
+
* @defaultValue `getLocalizedString("SOMETHING_WRONG")`
|
|
87
|
+
*/
|
|
88
|
+
errorStateText?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Custom view for the error state of the component
|
|
91
|
+
*/
|
|
92
|
+
errorStateView?: JSX.Element;
|
|
93
|
+
/**
|
|
94
|
+
* Hide error view
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* If set to true, hides the default and the custom error view
|
|
98
|
+
*
|
|
99
|
+
* @defaultValue `false`
|
|
100
|
+
*/
|
|
101
|
+
hideError?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Hide user presence
|
|
104
|
+
*
|
|
105
|
+
* @remarks
|
|
106
|
+
* If set to true, the status indicator of the default list item view is not displayed
|
|
107
|
+
*
|
|
108
|
+
* @defaultValue `false`
|
|
109
|
+
*/
|
|
110
|
+
disableUsersPresence?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Hide the separator at the bottom of the default list item view
|
|
113
|
+
*
|
|
114
|
+
* @defaultValue `false`
|
|
115
|
+
*/
|
|
116
|
+
hideSeparator?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Function to call whenever the component encounters an error
|
|
119
|
+
*/
|
|
120
|
+
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
121
|
+
/**
|
|
122
|
+
* Custom view to render on the top-right of the component
|
|
123
|
+
*/
|
|
124
|
+
menus?: JSX.Element;
|
|
125
|
+
/**
|
|
126
|
+
* List of actions available on mouse over on the default list item component
|
|
127
|
+
*/
|
|
128
|
+
options?: (user: CometChat.User) => CometChatOption[];
|
|
129
|
+
/**
|
|
130
|
+
* Selection mode to use for the default tail view
|
|
131
|
+
*
|
|
132
|
+
* @remarks
|
|
133
|
+
* This prop is used if `listItemView` prop is not provided.
|
|
134
|
+
*
|
|
135
|
+
* @defaultValue `SelectionMode.multiple`
|
|
136
|
+
*/
|
|
137
|
+
selectionMode?: SelectionMode;
|
|
138
|
+
/**
|
|
139
|
+
* Function to call when a user from the fetched list is selected
|
|
140
|
+
*
|
|
141
|
+
* @remarks
|
|
142
|
+
* This prop is used if `selectionMode` prop is not `SelectionMode.none`
|
|
143
|
+
*/
|
|
144
|
+
onSelect?: (user: CometChat.User, selected: boolean) => void;
|
|
145
|
+
/**
|
|
146
|
+
* Request builder to fetch users
|
|
147
|
+
*
|
|
148
|
+
* @remarks
|
|
149
|
+
* If the search input is not empty and the `searchRequestBuilder` prop is not provided,
|
|
150
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
151
|
+
*
|
|
152
|
+
* @defaultValue Default request builder having the limit set to 30
|
|
153
|
+
*/
|
|
154
|
+
usersRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
155
|
+
/**
|
|
156
|
+
* Request builder with search parameters to fetch users
|
|
157
|
+
*
|
|
158
|
+
* @remarks
|
|
159
|
+
* If the search input is not empty,
|
|
160
|
+
* the search keyword of this request builder is set to the text in the search input
|
|
161
|
+
*/
|
|
162
|
+
searchRequestBuilder?: CometChat.UsersRequestBuilder;
|
|
163
|
+
/**
|
|
164
|
+
* Custom list item view to be rendered for each user in the fetched list
|
|
165
|
+
*/
|
|
166
|
+
listItemView?: (user: CometChat.User) => JSX.Element;
|
|
167
|
+
/**
|
|
168
|
+
* Custom subtitle view to be rendered for each user in the fetched list
|
|
169
|
+
*
|
|
170
|
+
* @remarks
|
|
171
|
+
* This prop is used if `listItemView` prop is not provided
|
|
172
|
+
*/
|
|
173
|
+
subtitleView?: (user: CometChat.User) => JSX.Element;
|
|
174
|
+
/**
|
|
175
|
+
* Group to add members to
|
|
176
|
+
*/
|
|
177
|
+
group: CometChat.Group;
|
|
178
|
+
/**
|
|
179
|
+
* Function to call when add button of the component is clicked
|
|
180
|
+
*
|
|
181
|
+
* @remarks
|
|
182
|
+
* This function won't be call if no users are selected
|
|
183
|
+
*/
|
|
184
|
+
onAddMembersButtonClick?: (guid: string, membersToAdd: CometChat.GroupMember[]) => void;
|
|
185
|
+
/**
|
|
186
|
+
* Text to display for the default add button
|
|
187
|
+
*
|
|
188
|
+
* @defaultValue `getLocalizedString("ADD_MEMBERS")`
|
|
189
|
+
*/
|
|
190
|
+
buttonText?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Image URL for the close button
|
|
193
|
+
*
|
|
194
|
+
* @defaultValue `./assets/close2x.svg`
|
|
195
|
+
*/
|
|
196
|
+
closeButtonIconURL?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Function to call when the close button is clicked
|
|
199
|
+
*/
|
|
200
|
+
onClose?: () => void;
|
|
201
|
+
/**
|
|
202
|
+
* Styles to apply to the status indicator component of the default list item view
|
|
203
|
+
*/
|
|
204
|
+
statusIndicatorStyle?: CSSProperties;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Renders a scrollable list of users to add to a group of a CometChat App
|
|
208
|
+
*/
|
|
209
|
+
export declare function CometChatAddMembers(props: IAddMembersProps): import("react/jsx-runtime").JSX.Element;
|
|
210
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectionMode } from '@cometchat/chat-uikit-react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type Args = {
|
|
4
|
+
loggedInUserRef: React.MutableRefObject<CometChat.User | null>;
|
|
5
|
+
errorHandler: (error: unknown) => void;
|
|
6
|
+
selectionMode: SelectionMode;
|
|
7
|
+
selectionModeRef: React.MutableRefObject<SelectionMode>;
|
|
8
|
+
membersToAddRef: React.MutableRefObject<CometChat.GroupMember[]>;
|
|
9
|
+
};
|
|
10
|
+
export declare function useCometChatAddMembers(args: Args): void;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import '../../styles/CometChatAlertPopup/CometChatAlertPopup.css';
|
|
2
|
+
export declare const CometChatAlertPopup: (props: {
|
|
3
|
+
onConfirmClick?: (() => void) | undefined;
|
|
4
|
+
title?: string | undefined;
|
|
5
|
+
description?: string | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../styles/CometChatCreateGroup/CometChatCreateGroup.css';
|
|
3
|
+
interface CreateGroupProps {
|
|
4
|
+
setShowCreateGroup: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
onGroupCreated?: (group: CometChat.Group) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const CometChatCreateGroup: ({ setShowCreateGroup, onGroupCreated }: CreateGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CometChatCreateGroup;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '../../styles/CometChatDetails/CometChatThreadedMessages.css';
|
|
2
|
+
import { CallLog } from '@cometchat/calls-sdk-javascript';
|
|
3
|
+
interface ThreadProps {
|
|
4
|
+
message: CometChat.BaseMessage;
|
|
5
|
+
requestBuilderState?: CometChat.MessagesRequestBuilder;
|
|
6
|
+
selectedItem: CometChat.User | CometChat.Group | CometChat.Conversation | CometChat.Call | CallLog | undefined;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
showComposer?: boolean;
|
|
9
|
+
onSubtitleClicked?: () => void;
|
|
10
|
+
goToMessageId?: string;
|
|
11
|
+
searchKeyword?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const CometChatThreadedMessages: (props: ThreadProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import '../../styles/CometChatDetails/CometChatUserDetails.css';
|
|
2
|
+
interface UserDetailProps {
|
|
3
|
+
user: CometChat.User;
|
|
4
|
+
onHide?: () => void;
|
|
5
|
+
actionItems?: {
|
|
6
|
+
id?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
}[];
|
|
10
|
+
showStatus?: boolean;
|
|
11
|
+
onUserActionClick?: (item: {
|
|
12
|
+
name: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
}) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const CometChatUserDetails: (props: UserDetailProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../styles/CometChatSelector/CometChatTabs.css';
|
|
3
|
+
import '../../styles/CometChatSelector/CometChatSelector.css';
|
|
4
|
+
import '../../styles/CometChatNewChat/CometChatNewChatView.css';
|
|
5
|
+
import '../../styles/CometChatMessages/CometChatMessages.css';
|
|
6
|
+
import '../../styles/CometChatDetails/CometChatDetails.css';
|
|
7
|
+
import '../../styles/CometChatApp.css';
|
|
8
|
+
interface CometChatHomeProps {
|
|
9
|
+
defaultUser?: CometChat.User;
|
|
10
|
+
defaultGroup?: CometChat.Group;
|
|
11
|
+
showGroupActionMessages?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function CometChatHome({ defaultUser, defaultGroup, showGroupActionMessages }: CometChatHomeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
declare const MemoizedCometChatHome: React.MemoExoticComponent<typeof CometChatHome>;
|
|
15
|
+
export { MemoizedCometChatHome as CometChatHome };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '../../styles/CometChatSelector/CometChatSelector.css';
|
|
2
|
+
interface joinPasswordGroupProps {
|
|
3
|
+
group: CometChat.Group;
|
|
4
|
+
onHide?: () => void;
|
|
5
|
+
onProtectedGroupJoin?: (group: CometChat.Group) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const CometChatJoinGroup: (props: joinPasswordGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import '../../styles/CometChatMessages/CometChatMessages.css';
|
|
2
|
+
interface MessagesViewProps {
|
|
3
|
+
user?: CometChat.User;
|
|
4
|
+
group?: CometChat.Group;
|
|
5
|
+
onHeaderClicked: () => void;
|
|
6
|
+
onThreadRepliesClick: (message: CometChat.BaseMessage) => void;
|
|
7
|
+
onSearchClicked?: () => void;
|
|
8
|
+
showComposer?: boolean;
|
|
9
|
+
onBack?: () => void;
|
|
10
|
+
goToMessageId?: string;
|
|
11
|
+
searchKeyword?: string;
|
|
12
|
+
showGroupActionMessages?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const CometChatMessages: (props: MessagesViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '../../styles/CometChatSearchView/CometChatSearchView.css';
|
|
2
|
+
interface MessagesViewProps {
|
|
3
|
+
/** The user to search messages for (used in one-on-one conversations) */
|
|
4
|
+
user?: CometChat.User;
|
|
5
|
+
/** The group to search messages in (used in group conversations) */
|
|
6
|
+
group?: CometChat.Group;
|
|
7
|
+
/** Callback function triggered when the search view is closed */
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
/** Callback function triggered when a message is clicked in search results */
|
|
10
|
+
onMessageClicked?: (message: CometChat.BaseMessage) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* CometChatSearchView component renders a search interface for messages.
|
|
14
|
+
*
|
|
15
|
+
* @param {MessagesViewProps} props - The props for the component.
|
|
16
|
+
* @returns {JSX.Element} The rendered search view.
|
|
17
|
+
*/
|
|
18
|
+
declare const CometChatSearchView: (props: MessagesViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default CometChatSearchView;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import '../../styles/CometChatSelector/CometChatSelector.css';
|
|
3
|
+
import { CallLog } from '@cometchat/calls-sdk-javascript';
|
|
4
|
+
interface SelectorProps {
|
|
5
|
+
group?: CometChat.Group;
|
|
6
|
+
showJoinGroup?: boolean;
|
|
7
|
+
activeTab?: string;
|
|
8
|
+
activeItem?: CometChat.User | CometChat.Group | CometChat.Conversation | CometChat.Call | CallLog;
|
|
9
|
+
onSelectorItemClicked?: (input: CometChat.User | CometChat.Group | CometChat.Conversation | CometChat.Call, type: string) => void;
|
|
10
|
+
onProtectedGroupJoin?: (group: CometChat.Group) => void;
|
|
11
|
+
showCreateGroup?: boolean;
|
|
12
|
+
setShowCreateGroup?: Dispatch<SetStateAction<boolean>>;
|
|
13
|
+
onHide?: () => void;
|
|
14
|
+
onNewChatClicked?: () => void;
|
|
15
|
+
onGroupCreated?: (group: CometChat.Group) => void;
|
|
16
|
+
onSearchClicked?: () => void;
|
|
17
|
+
hideCreateGroupButton?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const MemoizedCometChatSelector: React.MemoExoticComponent<(props: SelectorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
20
|
+
export { MemoizedCometChatSelector as CometChatSelector };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../../styles/CometChatSelector/CometChatTabs.css';
|
|
2
|
+
export declare const CometChatTabs: (props: {
|
|
3
|
+
onTabClicked?: ((tabItem: {
|
|
4
|
+
name: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
id: string;
|
|
7
|
+
}) => void) | undefined;
|
|
8
|
+
activeTab?: string | undefined;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|