@cometchat/chat-uikit-react 5.0.1 → 5.0.2

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 (35) hide show
  1. package/dist/index.d.ts +76 -137
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/styles/CometChatUsers.css +22 -27
  5. package/dist/styles/components/CometChatUsers.css +22 -27
  6. package/dist/types/CometChatUIKit/CometChatUIKitUtility.d.ts +0 -1
  7. package/dist/types/components/BaseComponents/CometChatAudioBubble/src/webaudio.d.ts +2 -2
  8. package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/useCometChatEmojiKeyboard.d.ts +2 -1
  9. package/dist/types/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +8 -1
  10. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +1 -27
  11. package/dist/types/components/BaseComponents/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -1
  12. package/dist/types/components/BaseComponents/CometChatPopover/CometChatPopover.d.ts +1 -3
  13. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +0 -1
  14. package/dist/types/components/Calling/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -1
  15. package/dist/types/components/Calling/CometChatOutgoingCall/CometChatOutgoingCall.d.ts +0 -1
  16. package/dist/types/components/Calling/OutgoingCallConfiguration.d.ts +0 -1
  17. package/dist/types/components/CometChatConversations/controller.d.ts +0 -1
  18. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +0 -1
  19. package/dist/types/components/CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts +0 -1
  20. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +1 -8
  21. package/dist/types/components/CometChatUsers/controller.d.ts +0 -1
  22. package/dist/types/components/Extensions/Polls/PollsBubble.d.ts +9 -1
  23. package/dist/types/components/Extensions/Stickers/StickersExtensionDecorator.d.ts +0 -1
  24. package/dist/types/components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtensionDecorator.d.ts +0 -1
  25. package/dist/types/constants/CometChatUIKitConstants.d.ts +7 -0
  26. package/dist/types/index.d.ts +1 -0
  27. package/dist/types/modals/CometChatActionsView.d.ts +0 -1
  28. package/dist/types/modals/CometChatMessageTemplate.d.ts +0 -1
  29. package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +12 -58
  30. package/dist/types/utils/CalendarObject.d.ts +27 -0
  31. package/dist/types/utils/DataSource.d.ts +0 -1
  32. package/dist/types/utils/DataSourceDecorator.d.ts +0 -1
  33. package/dist/types/utils/Interface.d.ts +37 -0
  34. package/dist/types/utils/MessagesDataSource.d.ts +0 -2
  35. package/package.json +2 -2
@@ -75,11 +75,9 @@
75
75
  flex-shrink: 0;
76
76
  width: 48px;
77
77
  height: 48px;
78
- border-radius: var(--cometchat-radius-max,1000px);
79
- background: var(
80
- --cometchat-shimmer-gradient-color,
81
- linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
82
- );
78
+ border-radius: var(--cometchat-radius-max, 1000px);
79
+ background: var(--cometchat-shimmer-gradient-color,
80
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
83
81
  }
84
82
 
85
83
  .cometchat-users__shimmer-item-body {
@@ -91,27 +89,23 @@
91
89
  }
92
90
 
93
91
  .cometchat-users__shimmer-item-title {
94
- width: 50%;
92
+ width: calc(100% - 64px);
95
93
  height: 22px;
96
94
  flex-shrink: 0;
97
95
  border-radius: var(--cometchat-radius-2, 8px);
98
- background: var(
99
- --cometchat-shimmer-gradient-color,
100
- linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
101
- );
96
+ background: var(--cometchat-shimmer-gradient-color,
97
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
102
98
  animation: shimmerAnimation 1.5s infinite linear;
103
99
 
104
100
  }
105
101
 
106
102
  .cometchat-users__shimmer-item-body-subtitle {
107
- width:25%;
103
+ width: 25%;
108
104
  height: 12px;
109
105
  flex-shrink: 0;
110
106
  border-radius: var(--cometchat-radius-2, 8px);
111
- background: var(
112
- --cometchat-shimmer-gradient-color,
113
- linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
114
- );
107
+ background: var(--cometchat-shimmer-gradient-color,
108
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
115
109
  animation: shimmerAnimation 1.5s infinite linear;
116
110
 
117
111
  }
@@ -124,21 +118,22 @@
124
118
  top: 20px;
125
119
  right: 15px;
126
120
  border-radius: var(--cometchat-radius-max, 1000px);
127
- background: var(--cometchat-success-color,#09C26F);
121
+ background: var(--cometchat-success-color, #09C26F);
128
122
  min-width: 14px;
129
- border: 2px solid var(--cometchat-neutral-color-50,#FFFFFF);
123
+ border: 2px solid var(--cometchat-neutral-color-50, #FFFFFF);
130
124
  display: flex;
131
125
  align-items: center;
132
126
  justify-content: center;
133
127
  }
134
128
 
135
- .cometchat-users__list-item-active .cometchat-list-item{
136
- background-color:var(--cometchat-white-pressed,#E8E8E8)
129
+ .cometchat-users__list-item-active .cometchat-list-item {
130
+ background-color: var(--cometchat-white-pressed, #E8E8E8)
137
131
  }
138
132
 
139
- .cometchat-users__list-item {
133
+ .cometchat-users__list-item {
140
134
  cursor: pointer;
141
135
  }
136
+
142
137
  .cometchat-users__list-item .cometchat-avatar {
143
138
  width: 40px;
144
139
  height: 40px;
@@ -155,11 +150,11 @@
155
150
  }
156
151
 
157
152
  @keyframes shimmerAnimation {
158
- 0% {
159
- background-position: -468px 0;
160
- }
161
-
162
- 100% {
163
- background-position: 468px 0;
164
- }
153
+ 0% {
154
+ background-position: -468px 0;
155
+ }
156
+
157
+ 100% {
158
+ background-position: 468px 0;
165
159
  }
160
+ }
@@ -75,11 +75,9 @@
75
75
  flex-shrink: 0;
76
76
  width: 48px;
77
77
  height: 48px;
78
- border-radius: var(--cometchat-radius-max,1000px);
79
- background: var(
80
- --cometchat-shimmer-gradient-color,
81
- linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
82
- );
78
+ border-radius: var(--cometchat-radius-max, 1000px);
79
+ background: var(--cometchat-shimmer-gradient-color,
80
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
83
81
  }
84
82
 
85
83
  .cometchat-users__shimmer-item-body {
@@ -91,27 +89,23 @@
91
89
  }
92
90
 
93
91
  .cometchat-users__shimmer-item-title {
94
- width: 50%;
92
+ width: calc(100% - 64px);
95
93
  height: 22px;
96
94
  flex-shrink: 0;
97
95
  border-radius: var(--cometchat-radius-2, 8px);
98
- background: var(
99
- --cometchat-shimmer-gradient-color,
100
- linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
101
- );
96
+ background: var(--cometchat-shimmer-gradient-color,
97
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
102
98
  animation: shimmerAnimation 1.5s infinite linear;
103
99
 
104
100
  }
105
101
 
106
102
  .cometchat-users__shimmer-item-body-subtitle {
107
- width:25%;
103
+ width: 25%;
108
104
  height: 12px;
109
105
  flex-shrink: 0;
110
106
  border-radius: var(--cometchat-radius-2, 8px);
111
- background: var(
112
- --cometchat-shimmer-gradient-color,
113
- linear-gradient(90deg, #e0e0e0 0%, #eee 100%)
114
- );
107
+ background: var(--cometchat-shimmer-gradient-color,
108
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
115
109
  animation: shimmerAnimation 1.5s infinite linear;
116
110
 
117
111
  }
@@ -124,21 +118,22 @@
124
118
  top: 20px;
125
119
  right: 15px;
126
120
  border-radius: var(--cometchat-radius-max, 1000px);
127
- background: var(--cometchat-success-color,#09C26F);
121
+ background: var(--cometchat-success-color, #09C26F);
128
122
  min-width: 14px;
129
- border: 2px solid var(--cometchat-neutral-color-50,#FFFFFF);
123
+ border: 2px solid var(--cometchat-neutral-color-50, #FFFFFF);
130
124
  display: flex;
131
125
  align-items: center;
132
126
  justify-content: center;
133
127
  }
134
128
 
135
- .cometchat-users__list-item-active .cometchat-list-item{
136
- background-color:var(--cometchat-white-pressed,#E8E8E8)
129
+ .cometchat-users__list-item-active .cometchat-list-item {
130
+ background-color: var(--cometchat-white-pressed, #E8E8E8)
137
131
  }
138
132
 
139
- .cometchat-users__list-item {
133
+ .cometchat-users__list-item {
140
134
  cursor: pointer;
141
135
  }
136
+
142
137
  .cometchat-users__list-item .cometchat-avatar {
143
138
  width: 40px;
144
139
  height: 40px;
@@ -155,11 +150,11 @@
155
150
  }
156
151
 
157
152
  @keyframes shimmerAnimation {
158
- 0% {
159
- background-position: -468px 0;
160
- }
161
-
162
- 100% {
163
- background-position: 468px 0;
164
- }
153
+ 0% {
154
+ background-position: -468px 0;
155
+ }
156
+
157
+ 100% {
158
+ background-position: 468px 0;
165
159
  }
160
+ }
@@ -1,4 +1,3 @@
1
- import { BaseMessage, CometChat } from "@cometchat/chat-sdk-javascript";
2
1
  interface MessageExtensionType {
3
2
  hasXSS?: string;
4
3
  sanitized_text?: string;
@@ -31,8 +31,8 @@ declare class WebAudioPlayer extends EventEmitter<WebAudioPlayerEvents> {
31
31
  constructor(audioContext?: AudioContext);
32
32
  /** Subscribe to an event. Returns an unsubscribe function. */
33
33
  addEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void, options?: {
34
- once?: boolean | undefined;
35
- } | undefined) => () => void;
34
+ once?: boolean;
35
+ }) => () => void;
36
36
  /** Unsubscribe from an event */
37
37
  removeEventListener: <EventName extends keyof WebAudioPlayerEvents>(event: EventName, listener: (...args: WebAudioPlayerEvents[EventName]) => void) => void;
38
38
  load(): Promise<void>;
@@ -3,7 +3,8 @@ export declare const useCometChatEmojiKeyboard: ({ emojiData, }: {
3
3
  emojiData: CometChatEmojiCategory[];
4
4
  }) => {
5
5
  emojiDataState: CometChatEmojiCategory[];
6
- activeCategory: string;
6
+ activeCategory: string | undefined;
7
+ setActiveCategory: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
7
8
  searchEmojiData: {
8
9
  [key: string]: CometChatEmoji;
9
10
  };
@@ -3,8 +3,15 @@ import React from 'react';
3
3
  * Props for the CometChatFullScreenViewer component.
4
4
  */
5
5
  interface FullScreenViewerProps {
6
- /** URL of the image to be displayed */
6
+ /**
7
+ * @deprecated
8
+ * Use 'url' prop instead. This prop is deprecated and will be removed in future versions.
9
+ * */
7
10
  URL?: string;
11
+ /**
12
+ * URL of the image to be displayed
13
+ */
14
+ url?: string;
8
15
  /** Placeholder image URL */
9
16
  placeholderImage?: string;
10
17
  /** Callback function when the close button is clicked */
@@ -1,5 +1,5 @@
1
1
  import { JSX } from "react";
2
- import { States, TitleAlignment } from "../../../Enums/Enums";
2
+ import { States } from "../../../Enums/Enums";
3
3
  export type DivElementRef = HTMLDivElement | null;
4
4
  interface ListProps<T> {
5
5
  /**
@@ -8,12 +8,6 @@ interface ListProps<T> {
8
8
  * @defaultValue `""`
9
9
  */
10
10
  headerView?: JSX.Element;
11
- /**
12
- * Alignment of the `title` text
13
- *
14
- * @defaultValue `TitleAlignment.left`
15
- */
16
- titleAlignment?: TitleAlignment;
17
11
  /**
18
12
  * Hide the search bar
19
13
  *
@@ -33,10 +27,6 @@ interface ListProps<T> {
33
27
  * This function will only be called after 500ms of the search input text change
34
28
  */
35
29
  onSearch?: (searchStr: string) => void;
36
- /**
37
- * Image URL for the search icon to use in the search bar
38
- */
39
- searchIconURL?: string;
40
30
  /**
41
31
  * Text to be displayed when the search input has no value
42
32
  *
@@ -91,10 +81,6 @@ interface ListProps<T> {
91
81
  * Custom view for the loading state of the component
92
82
  */
93
83
  loadingView?: JSX.Element;
94
- /**
95
- * Image URL for the default loading view
96
- */
97
- loadingIconURL?: string;
98
84
  /**
99
85
  * Hide error view
100
86
  *
@@ -108,22 +94,10 @@ interface ListProps<T> {
108
94
  * Custom view for the error state of the component
109
95
  */
110
96
  errorView?: JSX.Element;
111
- /**
112
- * Text to display in the default error view
113
- *
114
- * @defaultValue `"ERROR"`
115
- */
116
- errorStateText?: string;
117
97
  /**
118
98
  * Custom view for the empty state of the component
119
99
  */
120
100
  emptyView?: JSX.Element;
121
- /**
122
- * Text to display in the default empty view
123
- *
124
- * @defaultValue `"EMPTY"`
125
- */
126
- emptyStateText?: string;
127
101
  /**
128
102
  * Set the scrollbar to the bottom-most position of the scrollable list
129
103
  *
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CometChatActionsIcon, CometChatActionsView } from "../../../modals";
3
2
  import { MessageBubbleAlignment } from "../../../Enums/Enums";
4
3
  /**Interface defining the structure for MessageBubbleProps */
@@ -1,4 +1,4 @@
1
- import { ReactNode, CSSProperties } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare enum Placement {
3
3
  top = "top",
4
4
  right = "right",
@@ -12,10 +12,8 @@ interface PopoverProps {
12
12
  debounceOnHover?: number;
13
13
  children: ReactNode;
14
14
  content: ReactNode;
15
- hasToolTip?: boolean;
16
15
  childClickHandler?: (openContent: Function, event: Event) => void;
17
16
  onOutsideClick?: () => void;
18
- overrideStyleProps?: CSSProperties;
19
17
  }
20
18
  declare const CometChatPopover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<{
21
19
  openPopover: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DatePatterns } from "../../../Enums/Enums";
3
2
  interface CallLogsProps {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CometChatUIKitCalls } from "../../../CometChatUIKit/CometChatCalls";
3
2
  interface IncomingCallProps {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Props interface for the outgoing call component
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class OutgoingCallConfiguration {
3
2
  disableSoundForCalls?: boolean;
4
3
  customSoundForCalls?: string;
@@ -1,4 +1,3 @@
1
- import { CometChat } from '@cometchat/chat-sdk-javascript';
2
1
  type Args = {
3
2
  conversationsRequestBuilder: CometChat.ConversationsRequestBuilder | null;
4
3
  errorHandler: (error: unknown, source?: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CometChatMessageTemplate } from "../../modals";
3
2
  import { DatePatterns, MessageListAlignment } from "../../Enums/Enums";
4
3
  import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CometChatMessageTemplate } from "../../modals";
3
2
  interface ThreadedMessagePreviewProps {
4
3
  /**
@@ -1,21 +1,14 @@
1
- import { CSSProperties } from 'react';
2
1
  import { UserMemberListType } from '../../Enums/Enums';
3
2
  export interface MentionsProps {
4
3
  userMemberListType?: UserMemberListType;
5
4
  onItemClick?: (user: CometChat.User | CometChat.GroupMember) => void;
6
- listItemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
7
- statusIndicatorStyle?: CSSProperties;
5
+ itemView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
8
6
  searchKeyword?: string;
9
7
  group?: CometChat.Group;
10
8
  subtitleView?: (item?: CometChat.User | CometChat.GroupMember) => JSX.Element;
11
9
  usersRequestBuilder?: CometChat.UsersRequestBuilder;
12
- disableUsersPresence?: boolean;
13
- hideSeparator?: boolean;
14
- loadingStateView?: JSX.Element;
15
10
  onEmpty?: () => void;
16
11
  groupMemberRequestBuilder?: CometChat.GroupMembersRequestBuilder;
17
- loadingIconUrl?: string;
18
- disableLoadingState?: boolean;
19
12
  onError?: () => void;
20
13
  }
21
14
  export declare function CometChatUserMemberWrapper(props: MentionsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Args = {
3
2
  searchText: string;
4
3
  usersRequestBuilder: CometChat.UsersRequestBuilder | null;
@@ -1,9 +1,17 @@
1
1
  import { MessageBubbleAlignment } from "../../../Enums/Enums";
2
+ export interface PollOptions {
3
+ id: string;
4
+ selectedByLoggedInUser?: boolean;
5
+ text: string;
6
+ votersObj?: CometChat.User[];
7
+ count: number;
8
+ percent: string;
9
+ }
2
10
  interface PollsBubbleProps {
3
11
  /**
4
12
  * Array of options for the poll.
5
13
  */
6
- options?: any[];
14
+ options?: PollOptions[];
7
15
  /**
8
16
  * The question being asked in the poll.
9
17
  */
@@ -1,4 +1,3 @@
1
- import { CometChat } from "@cometchat/chat-sdk-javascript";
2
1
  import { DataSource } from "../../../utils/DataSource";
3
2
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
4
3
  import { ComposerId } from "../../../utils/MessagesDataSource";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceDecorator } from "../../../utils/DataSourceDecorator";
3
2
  /**
4
3
  * Class representing a Thumbnail Generation extension decorator.
@@ -136,4 +136,11 @@ export declare class CometChatUIKitConstants {
136
136
  usersLimit: 30;
137
137
  groupsLimit: 30;
138
138
  }>;
139
+ static radioNames: Readonly<{
140
+ conversations: "conversations";
141
+ users: "users";
142
+ groups: "groups";
143
+ changeScope: "changeScope";
144
+ groupMembers: "groupMembers";
145
+ }>;
139
146
  }
@@ -21,6 +21,7 @@ export { MessageTranslationExtensionDecorator } from './components/Extensions/Me
21
21
  export { PollsConfiguration } from './components/Extensions/Polls/PollsConfiguration';
22
22
  export { PollsExtension } from './components/Extensions/Polls/PollsExtension';
23
23
  export { PollsExtensionDecorator } from './components/Extensions/Polls/PollsExtensionDecorator';
24
+ export type { PollOptions } from './components/Extensions/Polls/PollsBubble';
24
25
  export { StickersExtension } from './components/Extensions/Stickers/StickersExtension';
25
26
  export { StickersExtensionDecorator } from './components/Extensions/Stickers/StickersExtensionDecorator';
26
27
  export { ThumbnailGenerationExtension } from './components/Extensions/ThumbnailGeneration/ThumbnailGenerationExtension';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CometChatActions } from "./CometChatActions";
3
2
  /**
4
3
  * CometChatActionsView is a pre-defined structure for creating actions
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CometChatMessageOption } from "./CometChatMessageOption";
3
2
  import { DatePatterns, MessageBubbleAlignment } from "../Enums/Enums";
4
3
  /**
@@ -529,10 +529,6 @@ declare class CometChatLocalize {
529
529
  ADD_MEMBERS: string;
530
530
  SEND_MESSAGE: string;
531
531
  UNBLOCK_USER: string;
532
- /**
533
- * Returns rtl or ltr based on the active language
534
- * @returns {String} the direction of the active langauge
535
- */
536
532
  BLOCK_USER: string;
537
533
  DELETE_AND_EXIT: string;
538
534
  LEAVE_GROUP: string;
@@ -909,11 +905,7 @@ declare class CometChatLocalize {
909
905
  TYPING: string;
910
906
  IS_TYPING: string;
911
907
  CLOSE: string;
912
- ENTER_GROUP_NAME: string; /**
913
- * Accepts the string to localize and return the localized string
914
- * @param {String} str
915
- * @returns {String} localized str
916
- */
908
+ ENTER_GROUP_NAME: string;
917
909
  ADD_MEMBERS: string;
918
910
  SEND_MESSAGE: string;
919
911
  UNBLOCK_USER: string;
@@ -1618,7 +1610,7 @@ declare class CometChatLocalize {
1618
1610
  SEARCH_EMOJI: string;
1619
1611
  WOULD__YOU_LIKE_TO_DELETE_THIS_CONVERSATION: string;
1620
1612
  GROUPS: string;
1621
- WRONG_FILE_TYPE: string; /**Properties and constants */
1613
+ WRONG_FILE_TYPE: string;
1622
1614
  SHARED: string;
1623
1615
  SOUND_MANAGER: string;
1624
1616
  THEME: string;
@@ -1685,9 +1677,7 @@ declare class CometChatLocalize {
1685
1677
  MISSED_VIDEO_CALL: string;
1686
1678
  CUSTOM_MESSAGE_POLL: string;
1687
1679
  CUSTOM_MESSAGE_STICKER: string;
1688
- CUSTOM_MESSAGE_DOCUMENT: string; /**
1689
- * Sets the default lannguage if no language is passed in init method
1690
- */
1680
+ CUSTOM_MESSAGE_DOCUMENT: string;
1691
1681
  CUSTOM_MESSAGE_WHITEBOARD: string;
1692
1682
  ONLINE: string;
1693
1683
  ADMINISTRATOR: string;
@@ -2096,9 +2086,7 @@ declare class CometChatLocalize {
2096
2086
  MEMBER: string;
2097
2087
  EDITED: string;
2098
2088
  TODAY: string;
2099
- YESTERDAY: string; /**
2100
- * Sets the default lannguage if no language is passed in init method
2101
- */
2089
+ YESTERDAY: string;
2102
2090
  SUNDAY: string;
2103
2091
  MONDAY: string;
2104
2092
  TUESDAY: string;
@@ -2410,7 +2398,6 @@ declare class CometChatLocalize {
2410
2398
  GROUPS: string;
2411
2399
  WRONG_FILE_TYPE: string;
2412
2400
  SHARED: string;
2413
- /**Properties and constants */
2414
2401
  SOUND_MANAGER: string;
2415
2402
  THEME: string;
2416
2403
  DELETE_MSG_TEXT: string;
@@ -2439,7 +2426,7 @@ declare class CometChatLocalize {
2439
2426
  PASSWORD: string;
2440
2427
  CONTINUE: string;
2441
2428
  NO_CHATS_SELECTED: string;
2442
- NO_USERS_SELECTED: string; /**Override resources */
2429
+ NO_USERS_SELECTED: string;
2443
2430
  NO_GROUPS_SELECTED: string;
2444
2431
  SELECT_DAY: string;
2445
2432
  SELECT_TIME: string;
@@ -2449,10 +2436,7 @@ declare class CometChatLocalize {
2449
2436
  GROUP_PASSWORD_BLANK: string;
2450
2437
  GROUP_NAME_BLANK: string;
2451
2438
  GROUP_TYPE_BLANK: string;
2452
- DELETE_CONVERSATION: string; /**
2453
- * Returns the browser language
2454
- * @returns {String} browser langauge i.e. en-US
2455
- */
2439
+ DELETE_CONVERSATION: string;
2456
2440
  ADD_TO_CHAT: string;
2457
2441
  MORE: string;
2458
2442
  COPY: string;
@@ -2460,10 +2444,7 @@ declare class CometChatLocalize {
2460
2444
  MESSAGE_IMAGE: string;
2461
2445
  MESSAGE_FILE: string;
2462
2446
  MESSAGE_VIDEO: string;
2463
- MESSAGE_AUDIO: string; /**
2464
- * Returns the language code
2465
- * @returns {String} language code i.e. en
2466
- */
2447
+ MESSAGE_AUDIO: string;
2467
2448
  CUSTOM_MESSAGE: string;
2468
2449
  SELECT_A_DATE: string;
2469
2450
  TIME_ZONE: string;
@@ -2524,10 +2505,6 @@ declare class CometChatLocalize {
2524
2505
  LOADING: string;
2525
2506
  REPLY: string;
2526
2507
  REPLIES: string;
2527
- /**
2528
- * Returns rtl or ltr based on the active language
2529
- * @returns {String} the direction of the active langauge
2530
- */
2531
2508
  AI: string;
2532
2509
  SMART_REPLIES: string;
2533
2510
  CONVERSATION_STARTER: string;
@@ -3634,20 +3611,10 @@ declare class CometChatLocalize {
3634
3611
  SELECT_TIME: string;
3635
3612
  NO_CALLS_SELECTED: string;
3636
3613
  SELECT__GROUP: string;
3637
- /**
3638
- * Initializes localization with the specified language and custom resources.
3639
- * @param {string} [language=""] - The language code to set.
3640
- * @param {object} [resources={}] - Custom translations to override defaults.
3641
- */
3642
3614
  SELECT__USER: string;
3643
3615
  GROUP_PASSWORD_BLANK: string;
3644
3616
  GROUP_NAME_BLANK: string;
3645
3617
  GROUP_TYPE_BLANK: string;
3646
- /**
3647
- * Initializes localization with the specified language and custom resources.
3648
- * @param {string} [language=""] - The language code to set.
3649
- * @param {object} [resources={}] - Custom translations to override defaults.
3650
- */
3651
3618
  DELETE_CONVERSATION: string;
3652
3619
  ADD_TO_CHAT: string;
3653
3620
  MORE: string;
@@ -3689,10 +3656,7 @@ declare class CometChatLocalize {
3689
3656
  PREFERENCES: string;
3690
3657
  MEMBERS: string;
3691
3658
  MEMBER: string;
3692
- EDITED: string; /**
3693
- * Returns the language code
3694
- * @returns {String} language code i.e. en
3695
- */
3659
+ EDITED: string;
3696
3660
  TODAY: string;
3697
3661
  YESTERDAY: string;
3698
3662
  SUNDAY: string;
@@ -4059,7 +4023,7 @@ declare class CometChatLocalize {
4059
4023
  MEETING_SCHEDULED: string;
4060
4024
  SOMETHING_WRONG: string;
4061
4025
  MEETING_SLOT_BOOK: string;
4062
- MEETING_BOOK_NEW_SLOT: string; /**Override resources */
4026
+ MEETING_BOOK_NEW_SLOT: string;
4063
4027
  MEETING_NO_SLOTS_AVAILABLE: string;
4064
4028
  MEETING_TRY_DIFFERENT_DATE: string;
4065
4029
  NO_TIME_SLOTS_AVAILABLE: string;
@@ -4416,11 +4380,7 @@ declare class CometChatLocalize {
4416
4380
  CONVERSATIONS: string;
4417
4381
  CONVERSATION_LIST: string;
4418
4382
  MESSAGES: string;
4419
- MESSAGE_HEADER: string; /**
4420
- * Initializes localization with the specified language and custom resources.
4421
- * @param {string} [language=""] - The language code to set.
4422
- * @param {object} [resources={}] - Custom translations to override defaults.
4423
- */
4383
+ MESSAGE_HEADER: string;
4424
4384
  MESSAGE_LIST: string;
4425
4385
  MESSAGE_COMPOSER: string;
4426
4386
  USERS_WITH_MESSAGES: string;
@@ -4500,10 +4460,7 @@ declare class CometChatLocalize {
4500
4460
  SEND_MESSAGE: string;
4501
4461
  UNBLOCK_USER: string;
4502
4462
  BLOCK_USER: string;
4503
- DELETE_AND_EXIT: string; /**
4504
- * Returns true if the active language is rtl otherwise return false
4505
- * @returns {Boolean} whether the language is rtl or not
4506
- */
4463
+ DELETE_AND_EXIT: string;
4507
4464
  LEAVE_GROUP: string;
4508
4465
  CREATE_GROUP: string;
4509
4466
  SHARED_MEDIA: string;
@@ -4850,10 +4807,7 @@ declare class CometChatLocalize {
4850
4807
  SELECT_A_DATE: string;
4851
4808
  TIME_ZONE: string;
4852
4809
  MEETING_SCHEDULED: string;
4853
- SOMETHING_WRONG: string; /**
4854
- * Returns the active language. Return fallback language if translation is not available for the active language
4855
- * @returns {String} active language
4856
- */
4810
+ SOMETHING_WRONG: string;
4857
4811
  MEETING_SLOT_BOOK: string;
4858
4812
  MEETING_BOOK_NEW_SLOT: string;
4859
4813
  MEETING_NO_SLOTS_AVAILABLE: string;