@cometchat/chat-uikit-react 5.0.1 → 5.0.3

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { CSSProperties, JSX as JSX$1, ReactNode, FC } from 'react';
2
+ import React__default, { JSX as JSX$1, ReactNode, FC } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as _cometchat_chat_sdk_javascript from '@cometchat/chat-sdk-javascript';
5
5
  import { CometChat as CometChat$1 } from '@cometchat/chat-sdk-javascript';
@@ -302,19 +302,13 @@ declare enum MentionsVisibility {
302
302
  interface MentionsProps {
303
303
  userMemberListType?: UserMemberListType;
304
304
  onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
305
- listItemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
306
- statusIndicatorStyle?: CSSProperties;
305
+ itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
307
306
  searchKeyword?: string;
308
307
  group?: CometChat.Group;
309
308
  subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
310
309
  usersRequestBuilder?: CometChat.UsersRequestBuilder;
311
- disableUsersPresence?: boolean;
312
- hideSeparator?: boolean;
313
- loadingStateView?: JSX.Element;
314
310
  onEmpty?: () => void;
315
311
  groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
316
- loadingIconUrl?: string;
317
- disableLoadingState?: boolean;
318
312
  onError?: () => void;
319
313
  }
320
314
  declare function CometChatUserMemberWrapper(props: MentionsProps): react_jsx_runtime.JSX.Element;
@@ -7602,12 +7596,6 @@ interface ListProps<T> {
7602
7596
  * @defaultValue `""`
7603
7597
  */
7604
7598
  headerView?: JSX$1.Element;
7605
- /**
7606
- * Alignment of the `title` text
7607
- *
7608
- * @defaultValue `TitleAlignment.left`
7609
- */
7610
- titleAlignment?: TitleAlignment;
7611
7599
  /**
7612
7600
  * Hide the search bar
7613
7601
  *
@@ -7627,10 +7615,6 @@ interface ListProps<T> {
7627
7615
  * This function will only be called after 500ms of the search input text change
7628
7616
  */
7629
7617
  onSearch?: (searchStr: string) => void;
7630
- /**
7631
- * Image URL for the search icon to use in the search bar
7632
- */
7633
- searchIconURL?: string;
7634
7618
  /**
7635
7619
  * Text to be displayed when the search input has no value
7636
7620
  *
@@ -7685,10 +7669,6 @@ interface ListProps<T> {
7685
7669
  * Custom view for the loading state of the component
7686
7670
  */
7687
7671
  loadingView?: JSX$1.Element;
7688
- /**
7689
- * Image URL for the default loading view
7690
- */
7691
- loadingIconURL?: string;
7692
7672
  /**
7693
7673
  * Hide error view
7694
7674
  *
@@ -7702,22 +7682,10 @@ interface ListProps<T> {
7702
7682
  * Custom view for the error state of the component
7703
7683
  */
7704
7684
  errorView?: JSX$1.Element;
7705
- /**
7706
- * Text to display in the default error view
7707
- *
7708
- * @defaultValue `"ERROR"`
7709
- */
7710
- errorStateText?: string;
7711
7685
  /**
7712
7686
  * Custom view for the empty state of the component
7713
7687
  */
7714
7688
  emptyView?: JSX$1.Element;
7715
- /**
7716
- * Text to display in the default empty view
7717
- *
7718
- * @defaultValue `"EMPTY"`
7719
- */
7720
- emptyStateText?: string;
7721
7689
  /**
7722
7690
  * Set the scrollbar to the bottom-most position of the scrollable list
7723
7691
  *
@@ -8388,6 +8356,15 @@ declare class PollsExtensionDecorator extends DataSourceDecorator {
8388
8356
  getLastConversationMessage(conversation: CometChat.Conversation, loggedInUser: CometChat.User, additionalConfigurations?: any): string;
8389
8357
  }
8390
8358
 
8359
+ interface PollOptions {
8360
+ id: string;
8361
+ selectedByLoggedInUser?: boolean;
8362
+ text: string;
8363
+ votersObj?: CometChat.User[];
8364
+ count: number;
8365
+ percent: string;
8366
+ }
8367
+
8391
8368
  /**
8392
8369
  * The StickersExtension class extends the ExtensionsDataSource and is responsible for
8393
8370
  * configuring and adding the Stickers extension to the chat application.
@@ -10046,6 +10023,13 @@ declare class CometChatUIKitConstants {
10046
10023
  usersLimit: 30;
10047
10024
  groupsLimit: 30;
10048
10025
  }>;
10026
+ static radioNames: Readonly<{
10027
+ conversations: "conversations";
10028
+ users: "users";
10029
+ groups: "groups";
10030
+ changeScope: "changeScope";
10031
+ groupMembers: "groupMembers";
10032
+ }>;
10049
10033
  }
10050
10034
 
10051
10035
  declare class CometChatUtilityConstants {
@@ -10488,10 +10472,8 @@ interface PopoverProps {
10488
10472
  debounceOnHover?: number;
10489
10473
  children: ReactNode;
10490
10474
  content: ReactNode;
10491
- hasToolTip?: boolean;
10492
10475
  childClickHandler?: (openContent: Function, event: Event) => void;
10493
10476
  onOutsideClick?: () => void;
10494
- overrideStyleProps?: CSSProperties;
10495
10477
  }
10496
10478
  declare const CometChatPopover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<{
10497
10479
  openPopover: () => void;
@@ -10536,8 +10518,15 @@ declare const CometChatImageBubble: (props: ImageBubbleProps) => react_jsx_runti
10536
10518
  * Props for the CometChatFullScreenViewer component.
10537
10519
  */
10538
10520
  interface FullScreenViewerProps {
10539
- /** URL of the image to be displayed */
10521
+ /**
10522
+ * @deprecated
10523
+ * Use 'url' prop instead. This prop is deprecated and will be removed in future versions.
10524
+ * */
10540
10525
  URL?: string;
10526
+ /**
10527
+ * URL of the image to be displayed
10528
+ */
10529
+ url?: string;
10541
10530
  /** Placeholder image URL */
10542
10531
  placeholderImage?: string;
10543
10532
  /** Callback function when the close button is clicked */
@@ -10919,10 +10908,7 @@ declare function createElement(tagName: string, content?: TreeNode, container?:
10919
10908
 
10920
10909
  declare const dom_createElement: typeof createElement;
10921
10910
  declare namespace dom {
10922
- export {
10923
- dom_createElement as createElement,
10924
- createElement as default,
10925
- };
10911
+ export { dom_createElement as createElement, createElement as default };
10926
10912
  }
10927
10913
 
10928
10914
  type PlayerOptions = {
@@ -11457,4 +11443,4 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
11457
11443
  declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
11458
11444
  declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
11459
11445
 
11460
- export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
11446
+ export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, type IActiveChatChanged, type IDialog, type IGroupLeft, type IGroupMemberAdded, type IGroupMemberJoined, type IGroupMemberKickedBanned, type IGroupMemberScopeChanged, type IGroupMemberUnBanned, type IMentionsCountWarning, type IMessages, type IModal, type IMouseEvent, type IOpenChat, type IOwnershipChanged, type IPanel, type IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, type PollOptions, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };