cometchat-visual-builder-no-code 1.0.8-test → 1.0.10-test1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/156.main.js +1 -0
  2. package/dist/194.main.js +1 -0
  3. package/dist/37.main.js +1 -0
  4. package/dist/380.main.js +1 -0
  5. package/dist/750.main.js +1 -0
  6. package/dist/App.d.ts +4 -0
  7. package/dist/CometChat/CometChatApp.d.ts +16 -0
  8. package/dist/CometChat/CometChatSettings.d.ts +89 -0
  9. package/dist/CometChat/components/CometChatAddMembers/CometChatAddMembers.d.ts +210 -0
  10. package/dist/CometChat/components/CometChatAddMembers/useCometChatAddMembers.d.ts +11 -0
  11. package/dist/CometChat/components/CometChatAlertPopup/CometChatAlertPopup.d.ts +6 -0
  12. package/dist/CometChat/components/CometChatBannedMembers/CometChatBannedMembers.d.ts +6 -0
  13. package/dist/CometChat/components/CometChatCallLog/CometChatCallLogDetails.d.ts +5 -0
  14. package/dist/CometChat/components/CometChatCallLog/CometChatCallLogHistory.d.ts +4 -0
  15. package/dist/CometChat/components/CometChatCallLog/CometChatCallLogInfo.d.ts +4 -0
  16. package/dist/CometChat/components/CometChatCallLog/CometChatCallLogParticipants.d.ts +4 -0
  17. package/dist/CometChat/components/CometChatCallLog/CometChatCallLogRecordings.d.ts +4 -0
  18. package/dist/CometChat/components/CometChatCreateGroup/CometChatCreateGroup.d.ts +8 -0
  19. package/dist/CometChat/components/CometChatDetails/CometChatThreadedMessages.d.ts +11 -0
  20. package/dist/CometChat/components/CometChatDetails/CometChatUserDetails.d.ts +17 -0
  21. package/dist/CometChat/components/CometChatHome/CometChatHome.d.ts +14 -0
  22. package/dist/CometChat/components/CometChatJoinGroup/CometChatJoinGroup.d.ts +8 -0
  23. package/dist/CometChat/components/CometChatLogin/CometChatAppCredentials.d.ts +3 -0
  24. package/dist/CometChat/components/CometChatLogin/CometChatLogin.d.ts +3 -0
  25. package/dist/CometChat/components/CometChatLogin/sampledata.d.ts +7 -0
  26. package/dist/CometChat/components/CometChatMessages/CometChatEmptyStateView.d.ts +4 -0
  27. package/dist/CometChat/components/CometChatMessages/CometChatMessages.d.ts +12 -0
  28. package/dist/CometChat/components/CometChatSelector/CometChatSelector.d.ts +19 -0
  29. package/dist/CometChat/components/CometChatSelector/CometChatTabs.d.ts +8 -0
  30. package/dist/CometChat/components/CometChatTransferOwnership/CometChatTransferOwnership.d.ts +142 -0
  31. package/dist/CometChat/components/CometChatTransferOwnership/useCometChatTransferOwnership.d.ts +7 -0
  32. package/dist/CometChat/context/AppContext.d.ts +8 -0
  33. package/dist/CometChat/context/CometChatContext.d.ts +110 -0
  34. package/dist/CometChat/context/appReducer.d.ts +213 -0
  35. package/dist/CometChat/customHooks.d.ts +7 -0
  36. package/dist/CometChat/styleConfig.d.ts +104 -0
  37. package/dist/CometChat/utils/utils.d.ts +28 -0
  38. package/dist/CometChatNoCode/CometChatApi.d.ts +47 -0
  39. package/dist/CometChatNoCode/components/docked/DockedChatView.d.ts +8 -0
  40. package/dist/CometChatNoCode/components/embedded/EmbeddedChatView.d.ts +8 -0
  41. package/dist/CometChatNoCode/useInjectNoCodeStyles.d.ts +8 -0
  42. package/dist/assets/Roboto-Black.4afbed674a5252ead176.ttf +0 -0
  43. package/dist/assets/Roboto-BlackItalic.b49c4ba79204961dccd3.ttf +0 -0
  44. package/dist/assets/Roboto-Bold.d50a80138ec4f2fb5e9f.ttf +0 -0
  45. package/dist/assets/Roboto-BoldItalic.3fcf599c8a6c05a2c712.ttf +0 -0
  46. package/dist/assets/Roboto-Italic.cd47f5421512ee65fe22.ttf +0 -0
  47. package/dist/assets/Roboto-Light.839cb7309f46fed11436.ttf +0 -0
  48. package/dist/assets/Roboto-LightItalic.3743e89917aa46e2f6e5.ttf +0 -0
  49. package/dist/assets/Roboto-Medium.e73e917f7bfa48666e00.ttf +0 -0
  50. package/dist/assets/Roboto-MediumItalic.3dc683bc0f0d56bae3f8.ttf +0 -0
  51. package/dist/assets/Roboto-Regular.27f62b53b93858475a7f.ttf +0 -0
  52. package/dist/assets/change_scope.b7ce2e760bde03b486b5.png +0 -0
  53. package/dist/assets/svg/Spinner-Gradient-1.f2f8d4c6a11b46ae64da.svg +12 -0
  54. package/dist/assets/svg/addMembers.ac9bd9903ea91980e5bc.svg +5 -0
  55. package/dist/assets/svg/arrow_back.dd796cd8deddca446613.svg +8 -0
  56. package/dist/assets/svg/audio_call_button.17b58b643e8bc12cc6b9.svg +5 -0
  57. package/dist/assets/svg/block.0699b8d96de4c20c76d0.svg +5 -0
  58. package/dist/assets/svg/call-log-audio.0e3aaf2981e227b061c4.svg +3 -0
  59. package/dist/assets/svg/call-log_video.a810985ecf2746c8842f.svg +3 -0
  60. package/dist/assets/svg/callRecordingEmpty.eed59067696789e6204c.svg +8 -0
  61. package/dist/assets/svg/callRejectedIcon.fc84614b78bd19ffa1b0.svg +3 -0
  62. package/dist/assets/svg/call_empty.8ce6468827c447772bb6.svg +10 -0
  63. package/dist/assets/svg/call_end_no_fill.4a9911b198245072f6ae.svg +3 -0
  64. package/dist/assets/svg/call_made.e084ced6071c98821ebc.svg +8 -0
  65. package/dist/assets/svg/call_received.8a1f2ab017bbcf7bb046.svg +8 -0
  66. package/dist/assets/svg/calls.28f11734184b2e2e4e71.svg +5 -0
  67. package/dist/assets/svg/chats.5adfcfafa4cc0d303184.svg +10 -0
  68. package/dist/assets/svg/checkbox_tick.c8c052b7695f577cad91.svg +5 -0
  69. package/dist/assets/svg/close.2adefe6aea2efbd3491d.svg +12 -0
  70. package/dist/assets/svg/close.9564eb57de95f15d7b4e.svg +8 -0
  71. package/dist/assets/svg/collaborative_document_fill.221c4b61169245253c63.svg +4 -0
  72. package/dist/assets/svg/collaborative_whiteboard_fill.25e29644e4591c341125.svg +4 -0
  73. package/dist/assets/svg/cometchat_logo.ecf7992c1cc3576ceb57.svg +11 -0
  74. package/dist/assets/svg/conversations_audio-message.55058fd73f6f30059605.svg +8 -0
  75. package/dist/assets/svg/conversations_collaborative-document-message.9f5c199a668e6da1c4c6.svg +4 -0
  76. package/dist/assets/svg/conversations_collaborative-whiteboard-message.247bd7060246085899a4.svg +5 -0
  77. package/dist/assets/svg/conversations_delete.ce537f017fc12fab523e.svg +8 -0
  78. package/dist/assets/svg/conversations_delivered.510802caddcee7cf38e1.svg +3 -0
  79. package/dist/assets/svg/conversations_empty_state.32344f305d4d728f07e7.svg +20 -0
  80. package/dist/assets/svg/conversations_file-message.64124f24b26099a70a27.svg +8 -0
  81. package/dist/assets/svg/conversations_image-message.eaaad8ef101995637081.svg +8 -0
  82. package/dist/assets/svg/conversations_link.cfde67f9dcdc9ad112cc.svg +8 -0
  83. package/dist/assets/svg/conversations_missed-video-call.77f4e98af6049b2deab0.svg +8 -0
  84. package/dist/assets/svg/conversations_missed-voice-call.b52f9611ff85a6f468ee.svg +3 -0
  85. package/dist/assets/svg/conversations_outgoing-video-call.53f25a89d3793fdf2a00.svg +8 -0
  86. package/dist/assets/svg/conversations_outgoing-voice-call.aa7e2a8136855c39e5cb.svg +4 -0
  87. package/dist/assets/svg/conversations_poll-message.a38228224d6a756b8aa0.svg +3 -0
  88. package/dist/assets/svg/conversations_read.510802caddcee7cf38e1.svg +3 -0
  89. package/dist/assets/svg/conversations_sent.fbb8355efb327852ba32.svg +3 -0
  90. package/dist/assets/svg/conversations_sticker-message.1e08cf8a4ce3d8af27c9.svg +4 -0
  91. package/dist/assets/svg/conversations_thread.ef0eb6defdbb3b8a27b6.svg +8 -0
  92. package/dist/assets/svg/conversations_video-message.a2b413578aacf04e2a73.svg +8 -0
  93. package/dist/assets/svg/create-group.1166ddd2089dc474d86b.svg +3 -0
  94. package/dist/assets/svg/delete.9436ff083c3f2bf87470.svg +7 -0
  95. package/dist/assets/svg/delete.ca82d8766e6022162c9a.svg +8 -0
  96. package/dist/assets/svg/delete_icon.5db005e80f01622481b4.svg +4 -0
  97. package/dist/assets/svg/download.2068ff3bb9a26d87d0e5.svg +8 -0
  98. package/dist/assets/svg/downloadRecording.68d1a64015bdff727563.svg +3 -0
  99. package/dist/assets/svg/dropdown-arrow.19438c7586194515d473.svg +3 -0
  100. package/dist/assets/svg/emptyStateIconChat.dd845e1db2718f852ae0.svg +13 -0
  101. package/dist/assets/svg/error_icon.093f6c62b1e9dc09b727.svg +3 -0
  102. package/dist/assets/svg/error_info.139c04e0afeb03ada008.svg +3 -0
  103. package/dist/assets/svg/groups.6cc0adefb30e36b72309.svg +5 -0
  104. package/dist/assets/svg/incomingCallIcon.f72a226b678f60cf8858.svg +3 -0
  105. package/dist/assets/svg/incomingCallSuccess.0bf30f35cef97a13ccbe.svg +3 -0
  106. package/dist/assets/svg/incoming_video.00f32e896263889e2509.svg +8 -0
  107. package/dist/assets/svg/incoming_video_no_fill.01824d5f73a4bb089c1c.svg +4 -0
  108. package/dist/assets/svg/infoIcon.a45d68fa3e8e16b713b0.svg +5 -0
  109. package/dist/assets/svg/leaveGroup.58a4d38b4954c066952c.svg +5 -0
  110. package/dist/assets/svg/list_error_state_icon.173ec5995098722fd26a.svg +20 -0
  111. package/dist/assets/svg/loading_icon.0b32af930a5efc56290d.svg +3 -0
  112. package/dist/assets/svg/lock.71f7e9ad8da2b826c5c8.svg +8 -0
  113. package/dist/assets/svg/logout.450e8c11bf96d0c74710.svg +3 -0
  114. package/dist/assets/svg/message_delete.ce537f017fc12fab523e.svg +8 -0
  115. package/dist/assets/svg/mic_off.feb56f6133333e8e36fa.svg +8 -0
  116. package/dist/assets/svg/missedCallIcon.1cd662c850168ec2dd17.svg +10 -0
  117. package/dist/assets/svg/missedCallIcon.6048dda48a6a5b22dedc.svg +3 -0
  118. package/dist/assets/svg/missed_video_call_no_fill.a0aacfbcbf172a144ddc.svg +3 -0
  119. package/dist/assets/svg/more_icon.81b8f41258a897ea6ac4.svg +5 -0
  120. package/dist/assets/svg/outgoingCallSuccess.bbbc38474aa26b2bc241.svg +3 -0
  121. package/dist/assets/svg/outgoing_video_no_fill.765e9ef5fcb3e4a5be0c.svg +4 -0
  122. package/dist/assets/svg/pause.05902e314b4e9feca993.svg +8 -0
  123. package/dist/assets/svg/phone_incoming_no_fill.74e0941289461c76a5b4.svg +3 -0
  124. package/dist/assets/svg/phone_missed_no_fill.79993937b02c29c3ea6c.svg +3 -0
  125. package/dist/assets/svg/phone_outgoing_no_fill.07e8c060e778f4974d37.svg +4 -0
  126. package/dist/assets/svg/play_arrow.04f459a65b962cbb5f65.svg +8 -0
  127. package/dist/assets/svg/recording_icon.34cb90ed731d42e870b8.svg +10 -0
  128. package/dist/assets/svg/recording_resume.3d513ca8193f9334828b.svg +10 -0
  129. package/dist/assets/svg/search.61b1c747aa872b5ab4aa.svg +4 -0
  130. package/dist/assets/svg/send_fill.7d309325ccdb5f41d511.svg +8 -0
  131. package/dist/assets/svg/shield.0e8a980876383e89187b.svg +3 -0
  132. package/dist/assets/svg/start_chat.8f162a45823986cf2187.svg +5 -0
  133. package/dist/assets/svg/status_delivered.eda17954854636ebc910.svg +5 -0
  134. package/dist/assets/svg/status_read.f096888f2bedb92218d0.svg +3 -0
  135. package/dist/assets/svg/status_sending.7d1d357d6406afa36f70.svg +5 -0
  136. package/dist/assets/svg/status_sent.929a6372b15bb47d0179.svg +5 -0
  137. package/dist/assets/svg/sticker.54cf4f566ab9065ac0ef.svg +3 -0
  138. package/dist/assets/svg/stop.436a8cb465a4609f82a5.svg +8 -0
  139. package/dist/assets/svg/tooltip.2aa237f32c9f99b8d920.svg +5 -0
  140. package/dist/assets/svg/user.8dfdcadd19738360c459.svg +3 -0
  141. package/dist/assets/svg/user_empty.cce82d51a2fd34fb1414.svg +8 -0
  142. package/dist/assets/svg/users.3a4bb20ce645e85da09e.svg +5 -0
  143. package/dist/assets/svg/video_call_button.ad8739d880b299a43512.svg +5 -0
  144. package/dist/icons/docked_close_icon.svg +3 -0
  145. package/dist/icons/docked_open_icon.svg +3 -0
  146. package/dist/index.d.ts +9 -0
  147. package/dist/main.js +2 -0
  148. package/dist/main.js.LICENSE.txt +39 -0
  149. package/dist/noCodeConstants.d.ts +8 -0
  150. package/package.json +1 -1
@@ -0,0 +1,142 @@
1
+ import { JSX } from 'react';
2
+ import '../../styles/CometChatTransferOwnership/CometChatTransferOwnership.css';
3
+ import { CometChatOption, TitleAlignment } from '@cometchat/chat-uikit-react';
4
+ interface ITransferOwnershipProps {
5
+ /**
6
+ * Group to transfer ownership of
7
+ */
8
+ group: CometChat.Group;
9
+ /**
10
+ * Title of the component
11
+ *
12
+ * @defaultValue `getLocalizedString("TRANSFER_OWNERSHIP")`
13
+ */
14
+ title?: string;
15
+ /**
16
+ * Alignment of the `title` text
17
+ *
18
+ * @defaultValue `TitleAlignment.center`
19
+ */
20
+ titleAlignment?: TitleAlignment;
21
+ /**
22
+ * Image URL for the search icon to use in the search bar
23
+ *
24
+ * @defaultValue `../../assets/search.svg`
25
+ */
26
+ searchIconURL?: string;
27
+ /**
28
+ * Text to be displayed when the search input has no value
29
+ *
30
+ * @defaultValue `getLocalizedString("SEARCH")`
31
+ */
32
+ searchPlaceholderText?: string;
33
+ /**
34
+ * Hide the search bar
35
+ *
36
+ * @defaulValue `false`
37
+ */
38
+ hideSearch?: boolean;
39
+ /**
40
+ * Request builder to fetch group members
41
+ *
42
+ * @remarks
43
+ * If the search input is not empty and the `searchRequestBuilder` prop is not provided,
44
+ * the search keyword of this request builder is set to the text in the search input
45
+ *
46
+ * @defaultValue Default request builder having the limit set to 30
47
+ */
48
+ groupMembersRequestBuilder?: CometChat.GroupMembersRequestBuilder;
49
+ /**
50
+ * Request builder with search parameters to fetch group members
51
+ *
52
+ * @remarks
53
+ * If the search input is not empty,
54
+ * the search keyword of this request builder is set to the text in the search input
55
+ */
56
+ searchRequestBuilder?: CometChat.GroupMembersRequestBuilder;
57
+ /**
58
+ * Image URL for the default loading view
59
+ *
60
+ * @defaultValue `../../assets/spinner.svg`
61
+ */
62
+ loadingIconURL?: string;
63
+ /**
64
+ * Custom view for the loading state of the component
65
+ */
66
+ loadingStateView?: JSX.Element;
67
+ /**
68
+ * Text to display in the default empty view
69
+ *
70
+ * @defaultValue `getLocalizedString("NO_USERS_FOUND")`
71
+ */
72
+ emptyStateText?: string;
73
+ /**
74
+ * Custom view for the empty state of the component
75
+ */
76
+ emptyStateView?: JSX.Element;
77
+ /**
78
+ * Text to display in the default error view
79
+ *
80
+ * @defaultValue `getLocalizedString("SOMETHING_WRONG")`
81
+ */
82
+ errorStateText?: string;
83
+ /**
84
+ * Custom view for the error state of the component
85
+ */
86
+ errorStateView?: JSX.Element;
87
+ /**
88
+ * Function to call whenever the component encounters an error
89
+ */
90
+ onError?: ((error: CometChat.CometChatException) => void) | null;
91
+ /**
92
+ * Hide the separator at the bottom of the default list item view
93
+ *
94
+ * @defaultValue `false`
95
+ */
96
+ hideSeparator?: boolean;
97
+ /**
98
+ * Hide user presence
99
+ *
100
+ * @remarks
101
+ * If set to true, the status indicator of the default list item view is not displayed
102
+ *
103
+ * @defaultValue `false`
104
+ */
105
+ disableUsersPresence?: boolean;
106
+ /**
107
+ * Image URL for the close button
108
+ *
109
+ * @defaultValue `../../assets/close2x.svg`
110
+ */
111
+ closeButtonIconURL?: string;
112
+ /**
113
+ * Function to call when the close button is clicked
114
+ */
115
+ onClose?: () => void;
116
+ /**
117
+ * Custom list item view to be rendered for each group member in the fetched list
118
+ */
119
+ listItemView?: (groupMember: CometChat.GroupMember) => JSX.Element;
120
+ /**
121
+ * Custom subtitle view to be rendered for each group member in the fetched list
122
+ *
123
+ * @remarks
124
+ * This prop is used if `listItemView` prop is not provided
125
+ */
126
+ subtitleView?: (groupMember: CometChat.GroupMember) => JSX.Element;
127
+ transferButtonText?: string;
128
+ onTransferOwnership?: (groupMember: CometChat.GroupMember) => void;
129
+ /**
130
+ * Text to display for the cancel button
131
+ */
132
+ cancelButtonText?: string;
133
+ /**
134
+ * List of actions available on mouse over on the default list item component
135
+ */
136
+ options?: (group: CometChat.Group, groupMember: CometChat.GroupMember) => CometChatOption[];
137
+ }
138
+ /**
139
+ * Renders transfer ownership view related to a group of a CometChat App
140
+ */
141
+ export declare function CometChatTransferOwnership(props: ITransferOwnershipProps): import("react/jsx-runtime").JSX.Element;
142
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Args = {
3
+ errorHandler: (error: unknown) => void;
4
+ setLoggedInUser: React.Dispatch<React.SetStateAction<CometChat.User | null>>;
5
+ };
6
+ export declare function useCometChatTransferOwnership(args: Args): void;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import React, { ReactElement } from 'react';
2
+ export declare const AppContext: React.Context<{
3
+ appState: import("./appReducer").defaultStateType;
4
+ setAppState: React.Dispatch<unknown>;
5
+ }>;
6
+ export declare const AppContextProvider: ({ children }: {
7
+ children: ReactElement;
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,110 @@
1
+ import React, { ReactNode } from "react";
2
+ interface CometChatContextInterface {
3
+ chatFeatures: CometChatSettingsInterface["chatFeatures"];
4
+ callFeatures: CometChatSettingsInterface["callFeatures"];
5
+ styleFeatures: CometChatSettingsInterface["style"];
6
+ layoutFeatures: CometChatSettingsInterface["layout"];
7
+ noCodeFeatures: CometChatSettingsInterface["noCode"];
8
+ builderOrNocodeName: CometChatSettingsInterface["name"];
9
+ setChatFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["chatFeatures"]>>;
10
+ setCallFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["callFeatures"]>>;
11
+ setStyleFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["style"]>>;
12
+ setLayoutFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["layout"]>>;
13
+ setNoCodeFeatures: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["noCode"]>>;
14
+ setBuilderOrNocodeName: React.Dispatch<React.SetStateAction<CometChatSettingsInterface["name"]>>;
15
+ }
16
+ interface CometChatProviderProps {
17
+ children: ReactNode;
18
+ authBuilderSetting?: CometChatSettingsInterface;
19
+ }
20
+ export declare const CometChatProvider: React.FC<CometChatProviderProps>;
21
+ export declare const useCometChatContext: () => CometChatContextInterface;
22
+ export interface CometChatSettingsInterface {
23
+ chatFeatures: {
24
+ coreMessagingExperience: {
25
+ typingIndicator: boolean;
26
+ threadConversationAndReplies: boolean;
27
+ photosSharing: boolean;
28
+ videoSharing: boolean;
29
+ audioSharing: boolean;
30
+ fileSharing: boolean;
31
+ editMessage: boolean;
32
+ deleteMessage: boolean;
33
+ messageDeliveryAndReadReceipts: boolean;
34
+ userAndFriendsPresence: boolean;
35
+ };
36
+ deeperUserEngagement: {
37
+ mentions: boolean;
38
+ reactions: boolean;
39
+ messageTranslation: boolean;
40
+ polls: boolean;
41
+ collaborativeWhiteboard: boolean;
42
+ collaborativeDocument: boolean;
43
+ voiceNotes: boolean;
44
+ emojis: boolean;
45
+ stickers: boolean;
46
+ userInfo: boolean;
47
+ groupInfo: boolean;
48
+ };
49
+ aiUserCopilot: {
50
+ conversationStarter: boolean;
51
+ conversationSummary: boolean;
52
+ smartReply: boolean;
53
+ };
54
+ groupManagement: {
55
+ createGroup: boolean;
56
+ addMembersToGroups: boolean;
57
+ joinLeaveGroup: boolean;
58
+ deleteGroup: boolean;
59
+ viewGroupMembers: boolean;
60
+ };
61
+ moderatorControls: {
62
+ kickUsers: boolean;
63
+ banUsers: boolean;
64
+ promoteDemoteMembers: boolean;
65
+ };
66
+ privateMessagingWithinGroups: {
67
+ sendPrivateMessageToGroupMembers: boolean;
68
+ };
69
+ };
70
+ callFeatures: {
71
+ voiceAndVideoCalling: {
72
+ oneOnOneVoiceCalling: boolean;
73
+ oneOnOneVideoCalling: boolean;
74
+ groupVideoConference: boolean;
75
+ groupVoiceConference: boolean;
76
+ };
77
+ };
78
+ layout: {
79
+ withSideBar: boolean;
80
+ tabs: string[];
81
+ chatType: string;
82
+ };
83
+ style: {
84
+ theme: string;
85
+ color: {
86
+ brandColor: string;
87
+ primaryTextLight: string;
88
+ primaryTextDark: string;
89
+ secondaryTextLight: string;
90
+ secondaryTextDark: string;
91
+ };
92
+ typography: {
93
+ font: string;
94
+ size: string;
95
+ };
96
+ };
97
+ noCode?: {
98
+ docked: boolean;
99
+ styles: {
100
+ buttonBackGround: string;
101
+ buttonShape: string;
102
+ openIcon: string;
103
+ closeIcon: string;
104
+ customJs: string;
105
+ customCss: string;
106
+ };
107
+ };
108
+ name?: string;
109
+ }
110
+ export {};
@@ -0,0 +1,213 @@
1
+ export interface defaultStateType {
2
+ activeTab: string;
3
+ selectedItem: CometChat.Conversation | undefined;
4
+ selectedItemUser: CometChat.User | undefined;
5
+ selectedItemGroup: CometChat.Group | undefined;
6
+ selectedItemCall: CometChat.Call | undefined;
7
+ sideComponent: {
8
+ visible: boolean;
9
+ type: string;
10
+ };
11
+ threadedMessage: CometChat.BaseMessage | undefined;
12
+ showNewChat: boolean;
13
+ showJoinGroup: boolean;
14
+ newChat?: {
15
+ user: CometChat.User;
16
+ group: CometChat.Group;
17
+ };
18
+ isFreshChat?: boolean;
19
+ }
20
+ export declare const defaultAppState: defaultStateType;
21
+ export declare const appReducer: (state: defaultStateType | undefined, action: any) => {
22
+ activeTab: any;
23
+ selectedItem: CometChat.Conversation | undefined;
24
+ selectedItemUser: CometChat.User | undefined;
25
+ selectedItemGroup: CometChat.Group | undefined;
26
+ selectedItemCall: CometChat.Call | undefined;
27
+ sideComponent: {
28
+ visible: boolean;
29
+ type: string;
30
+ };
31
+ threadedMessage: CometChat.BaseMessage | undefined;
32
+ showNewChat: boolean;
33
+ showJoinGroup: boolean;
34
+ newChat?: {
35
+ user: CometChat.User;
36
+ group: CometChat.Group;
37
+ } | undefined;
38
+ isFreshChat?: boolean | undefined;
39
+ } | {
40
+ selectedItem: any;
41
+ activeTab: string;
42
+ selectedItemUser: CometChat.User | undefined;
43
+ selectedItemGroup: CometChat.Group | undefined;
44
+ selectedItemCall: CometChat.Call | undefined;
45
+ sideComponent: {
46
+ visible: boolean;
47
+ type: string;
48
+ };
49
+ threadedMessage: CometChat.BaseMessage | undefined;
50
+ showNewChat: boolean;
51
+ showJoinGroup: boolean;
52
+ newChat?: {
53
+ user: CometChat.User;
54
+ group: CometChat.Group;
55
+ } | undefined;
56
+ isFreshChat?: boolean | undefined;
57
+ } | {
58
+ selectedItemUser: any;
59
+ activeTab: string;
60
+ selectedItem: CometChat.Conversation | undefined;
61
+ selectedItemGroup: CometChat.Group | undefined;
62
+ selectedItemCall: CometChat.Call | undefined;
63
+ sideComponent: {
64
+ visible: boolean;
65
+ type: string;
66
+ };
67
+ threadedMessage: CometChat.BaseMessage | undefined;
68
+ showNewChat: boolean;
69
+ showJoinGroup: boolean;
70
+ newChat?: {
71
+ user: CometChat.User;
72
+ group: CometChat.Group;
73
+ } | undefined;
74
+ isFreshChat?: boolean | undefined;
75
+ } | {
76
+ selectedItemGroup: any;
77
+ activeTab: string;
78
+ selectedItem: CometChat.Conversation | undefined;
79
+ selectedItemUser: CometChat.User | undefined;
80
+ selectedItemCall: CometChat.Call | undefined;
81
+ sideComponent: {
82
+ visible: boolean;
83
+ type: string;
84
+ };
85
+ threadedMessage: CometChat.BaseMessage | undefined;
86
+ showNewChat: boolean;
87
+ showJoinGroup: boolean;
88
+ newChat?: {
89
+ user: CometChat.User;
90
+ group: CometChat.Group;
91
+ } | undefined;
92
+ isFreshChat?: boolean | undefined;
93
+ } | {
94
+ selectedItemCall: any;
95
+ activeTab: string;
96
+ selectedItem: CometChat.Conversation | undefined;
97
+ selectedItemUser: CometChat.User | undefined;
98
+ selectedItemGroup: CometChat.Group | undefined;
99
+ sideComponent: {
100
+ visible: boolean;
101
+ type: string;
102
+ };
103
+ threadedMessage: CometChat.BaseMessage | undefined;
104
+ showNewChat: boolean;
105
+ showJoinGroup: boolean;
106
+ newChat?: {
107
+ user: CometChat.User;
108
+ group: CometChat.Group;
109
+ } | undefined;
110
+ isFreshChat?: boolean | undefined;
111
+ } | {
112
+ sideComponent: any;
113
+ activeTab: string;
114
+ selectedItem: CometChat.Conversation | undefined;
115
+ selectedItemUser: CometChat.User | undefined;
116
+ selectedItemGroup: CometChat.Group | undefined;
117
+ selectedItemCall: CometChat.Call | undefined;
118
+ threadedMessage: CometChat.BaseMessage | undefined;
119
+ showNewChat: boolean;
120
+ showJoinGroup: boolean;
121
+ newChat?: {
122
+ user: CometChat.User;
123
+ group: CometChat.Group;
124
+ } | undefined;
125
+ isFreshChat?: boolean | undefined;
126
+ } | {
127
+ threadedMessage: any;
128
+ activeTab: string;
129
+ selectedItem: CometChat.Conversation | undefined;
130
+ selectedItemUser: CometChat.User | undefined;
131
+ selectedItemGroup: CometChat.Group | undefined;
132
+ selectedItemCall: CometChat.Call | undefined;
133
+ sideComponent: {
134
+ visible: boolean;
135
+ type: string;
136
+ };
137
+ showNewChat: boolean;
138
+ showJoinGroup: boolean;
139
+ newChat?: {
140
+ user: CometChat.User;
141
+ group: CometChat.Group;
142
+ } | undefined;
143
+ isFreshChat?: boolean | undefined;
144
+ } | {
145
+ showNewChat: any;
146
+ activeTab: string;
147
+ selectedItem: CometChat.Conversation | undefined;
148
+ selectedItemUser: CometChat.User | undefined;
149
+ selectedItemGroup: CometChat.Group | undefined;
150
+ selectedItemCall: CometChat.Call | undefined;
151
+ sideComponent: {
152
+ visible: boolean;
153
+ type: string;
154
+ };
155
+ threadedMessage: CometChat.BaseMessage | undefined;
156
+ showJoinGroup: boolean;
157
+ newChat?: {
158
+ user: CometChat.User;
159
+ group: CometChat.Group;
160
+ } | undefined;
161
+ isFreshChat?: boolean | undefined;
162
+ } | {
163
+ newChat: any;
164
+ showNewChat: boolean;
165
+ activeTab: string;
166
+ selectedItem: CometChat.Conversation | undefined;
167
+ selectedItemUser: CometChat.User | undefined;
168
+ selectedItemGroup: CometChat.Group | undefined;
169
+ selectedItemCall: CometChat.Call | undefined;
170
+ sideComponent: {
171
+ visible: boolean;
172
+ type: string;
173
+ };
174
+ threadedMessage: CometChat.BaseMessage | undefined;
175
+ showJoinGroup: boolean;
176
+ isFreshChat?: boolean | undefined;
177
+ } | {
178
+ showJoinGroup: any;
179
+ activeTab: string;
180
+ selectedItem: CometChat.Conversation | undefined;
181
+ selectedItemUser: CometChat.User | undefined;
182
+ selectedItemGroup: CometChat.Group | undefined;
183
+ selectedItemCall: CometChat.Call | undefined;
184
+ sideComponent: {
185
+ visible: boolean;
186
+ type: string;
187
+ };
188
+ threadedMessage: CometChat.BaseMessage | undefined;
189
+ showNewChat: boolean;
190
+ newChat?: {
191
+ user: CometChat.User;
192
+ group: CometChat.Group;
193
+ } | undefined;
194
+ isFreshChat?: boolean | undefined;
195
+ } | {
196
+ isFreshChat: any;
197
+ activeTab: string;
198
+ selectedItem: CometChat.Conversation | undefined;
199
+ selectedItemUser: CometChat.User | undefined;
200
+ selectedItemGroup: CometChat.Group | undefined;
201
+ selectedItemCall: CometChat.Call | undefined;
202
+ sideComponent: {
203
+ visible: boolean;
204
+ type: string;
205
+ };
206
+ threadedMessage: CometChat.BaseMessage | undefined;
207
+ showNewChat: boolean;
208
+ showJoinGroup: boolean;
209
+ newChat?: {
210
+ user: CometChat.User;
211
+ group: CometChat.Group;
212
+ } | undefined;
213
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A custom hook that detects and returns the system's preferred color scheme.
3
+ *
4
+ * @returns {'light' | 'dark'} The current system color scheme.
5
+ */
6
+ declare const useSystemColorScheme: () => 'light' | 'dark';
7
+ export default useSystemColorScheme;
@@ -0,0 +1,104 @@
1
+ export declare const fontOptions: {
2
+ value: string;
3
+ label: string;
4
+ }[];
5
+ export declare const sizeOptions: {
6
+ value: string;
7
+ label: string;
8
+ }[];
9
+ export declare const buttonShapeOptions: {
10
+ value: string;
11
+ label: string;
12
+ }[];
13
+ export declare const fontSizes: {
14
+ compact: {
15
+ '--cometchat-font-title-bold': string;
16
+ '--cometchat-font-title-medium': string;
17
+ '--cometchat-font-title-regular': string;
18
+ '--cometchat-font-heading1-bold': string;
19
+ '--cometchat-font-heading1-medium': string;
20
+ '--cometchat-font-heading1-regular': string;
21
+ '--cometchat-font-heading2-bold': string;
22
+ '--cometchat-font-heading2-medium': string;
23
+ '--cometchat-font-heading2-regular': string;
24
+ '--cometchat-font-heading3-bold': string;
25
+ '--cometchat-font-heading3-medium': string;
26
+ '--cometchat-font-heading3-regular': string;
27
+ '--cometchat-font-heading4-bold': string;
28
+ '--cometchat-font-heading4-medium': string;
29
+ '--cometchat-font-heading4-regular': string;
30
+ '--cometchat-font-body-bold': string;
31
+ '--cometchat-font-body-medium': string;
32
+ '--cometchat-font-body-regular': string;
33
+ '--cometchat-font-caption1-bold': string;
34
+ '--cometchat-font-caption1-medium': string;
35
+ '--cometchat-font-caption1-regular': string;
36
+ '--cometchat-font-caption2-bold': string;
37
+ '--cometchat-font-caption2-medium': string;
38
+ '--cometchat-font-caption2-regular': string;
39
+ '--cometchat-font-button-bold': string;
40
+ '--cometchat-font-button-medium': string;
41
+ '--cometchat-font-button-regular': string;
42
+ '--cometchat-font-link': string;
43
+ };
44
+ default: {
45
+ '--cometchat-font-title-bold': string;
46
+ '--cometchat-font-title-medium': string;
47
+ '--cometchat-font-title-regular': string;
48
+ '--cometchat-font-heading1-bold': string;
49
+ '--cometchat-font-heading1-medium': string;
50
+ '--cometchat-font-heading1-regular': string;
51
+ '--cometchat-font-heading2-bold': string;
52
+ '--cometchat-font-heading2-medium': string;
53
+ '--cometchat-font-heading2-regular': string;
54
+ '--cometchat-font-heading3-bold': string;
55
+ '--cometchat-font-heading3-medium': string;
56
+ '--cometchat-font-heading3-regular': string;
57
+ '--cometchat-font-heading4-bold': string;
58
+ '--cometchat-font-heading4-medium': string;
59
+ '--cometchat-font-heading4-regular': string;
60
+ '--cometchat-font-body-bold': string;
61
+ '--cometchat-font-body-medium': string;
62
+ '--cometchat-font-body-regular': string;
63
+ '--cometchat-font-caption1-bold': string;
64
+ '--cometchat-font-caption1-medium': string;
65
+ '--cometchat-font-caption1-regular': string;
66
+ '--cometchat-font-caption2-bold': string;
67
+ '--cometchat-font-caption2-medium': string;
68
+ '--cometchat-font-caption2-regular': string;
69
+ '--cometchat-font-button-bold': string;
70
+ '--cometchat-font-button-medium': string;
71
+ '--cometchat-font-button-regular': string;
72
+ '--cometchat-font-link': string;
73
+ };
74
+ comfortable: {
75
+ '--cometchat-font-title-bold': string;
76
+ '--cometchat-font-title-medium': string;
77
+ '--cometchat-font-title-regular': string;
78
+ '--cometchat-font-heading1-bold': string;
79
+ '--cometchat-font-heading1-medium': string;
80
+ '--cometchat-font-heading1-regular': string;
81
+ '--cometchat-font-heading2-bold': string;
82
+ '--cometchat-font-heading2-medium': string;
83
+ '--cometchat-font-heading2-regular': string;
84
+ '--cometchat-font-heading3-bold': string;
85
+ '--cometchat-font-heading3-medium': string;
86
+ '--cometchat-font-heading3-regular': string;
87
+ '--cometchat-font-heading4-bold': string;
88
+ '--cometchat-font-heading4-medium': string;
89
+ '--cometchat-font-heading4-regular': string;
90
+ '--cometchat-font-body-bold': string;
91
+ '--cometchat-font-body-medium': string;
92
+ '--cometchat-font-body-regular': string;
93
+ '--cometchat-font-caption1-bold': string;
94
+ '--cometchat-font-caption1-medium': string;
95
+ '--cometchat-font-caption1-regular': string;
96
+ '--cometchat-font-caption2-bold': string;
97
+ '--cometchat-font-caption2-medium': string;
98
+ '--cometchat-font-caption2-regular': string;
99
+ '--cometchat-font-button-bold': string;
100
+ '--cometchat-font-button-medium': string;
101
+ '--cometchat-font-button-regular': string;
102
+ '--cometchat-font-link': string;
103
+ };
104
+ };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Initializes the localization for both the sample app and the UI Kit.
3
+ *
4
+ * This function sets up the localization system by determining the language to be used.
5
+ * It uses the provided `language` parameter if available; otherwise, it defaults to the browser's language settings.
6
+ *
7
+ * @param {string} [language] - The language code to be used for localization (e.g., 'en', 'fr', 'es'). If not provided, the browser's default language is used.
8
+ *
9
+ * @example
10
+ * // Initialize localization with a specific language
11
+ * setupLocalization('fr'); // Sets language to French
12
+ *
13
+ * @example
14
+ * // Initialize localization using the browser's default language
15
+ * setupLocalization(); // Defaults to the browser's language
16
+ */
17
+ export declare function setupLocalization(language?: string): void;
18
+ /**
19
+ * Dynamically generates and sets extended primary colors based on the primary color.
20
+ *
21
+ * This function retrieves the primary color from CSS variables and generates a set
22
+ * of extended primary colors by blending the primary color with white or black, depending
23
+ * on the current theme (light or dark mode). The generated colors are then applied as
24
+ * CSS variables.
25
+ *
26
+ * @static
27
+ */
28
+ export declare function generateExtendedColors(): void;
@@ -0,0 +1,47 @@
1
+ import { CometChat } from "@cometchat/chat-sdk-javascript";
2
+ declare let appID: string;
3
+ declare let appRegion: string;
4
+ declare let authKey: string;
5
+ export interface VcbData {
6
+ appID?: string;
7
+ appRegion?: string;
8
+ authKey?: string;
9
+ variantID?: string;
10
+ targetElementID?: string;
11
+ isDocked?: boolean;
12
+ height?: string;
13
+ width?: string;
14
+ chatType?: 'user' | 'group';
15
+ defaultChatID?: string;
16
+ }
17
+ export declare const vcbData: VcbData;
18
+ export declare const listeners: Record<string, Function>;
19
+ declare const CometChatApp: {
20
+ init: (config: {
21
+ appID: string;
22
+ appRegion: string;
23
+ authKey: string;
24
+ }) => Promise<boolean>;
25
+ login: ({ uid, authToken }: {
26
+ uid?: string | undefined;
27
+ authToken?: string | undefined;
28
+ }) => Promise<import("@cometchat/chat-sdk-javascript").User>;
29
+ logout: () => Promise<void>;
30
+ launch: (config: {
31
+ variantID?: string;
32
+ targetElementID: string;
33
+ isDocked?: boolean;
34
+ height?: string;
35
+ width?: string;
36
+ chatType?: 'user' | 'group';
37
+ defaultChatID?: string;
38
+ }) => void;
39
+ on: (eventName: string, callback: Function) => void;
40
+ callUser: (uid: string) => Promise<void>;
41
+ callGroup: (guid: string) => Promise<void>;
42
+ createOrUpdateUser: (user: CometChat.User) => Promise<import("@cometchat/chat-sdk-javascript").User>;
43
+ createOrUpdateGroup: (groupParams: CometChat.Group) => Promise<import("@cometchat/chat-sdk-javascript").Group>;
44
+ localize: (language: string) => void;
45
+ CometChat: typeof CometChat;
46
+ };
47
+ export default CometChatApp;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface DockedChatViewInterface {
3
+ children: React.ReactNode;
4
+ isMobile?: boolean | undefined;
5
+ type?: 'user' | 'group';
6
+ }
7
+ declare const DockedChatView: ({ children, isMobile, type }: DockedChatViewInterface) => import("react/jsx-runtime").JSX.Element;
8
+ export default DockedChatView;
@@ -0,0 +1,8 @@
1
+ interface EmbeddedChatViewInterface {
2
+ isMobile?: boolean;
3
+ user?: CometChat.User;
4
+ group?: CometChat.Group;
5
+ type?: 'user' | 'group';
6
+ }
7
+ declare const EmbeddedChatView: ({ isMobile, user, group, type }: EmbeddedChatViewInterface) => import("react/jsx-runtime").JSX.Element;
8
+ export default EmbeddedChatView;