@cometchat/chat-uikit-react-native 4.3.13 → 4.3.14

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 (157) hide show
  1. package/lib/AI/AIConversationStarter/style.d.ts +8 -8
  2. package/lib/AI/style.d.ts +15 -15
  3. package/lib/CometChatAddMembers/CometChatAddMembers.js +1 -0
  4. package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
  5. package/lib/CometChatDetails/CometChatDetails.js +4 -2
  6. package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
  7. package/lib/CometChatGroupMembers/CometChatGroupMembers.js +15 -4
  8. package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
  9. package/lib/CometChatMessageComposer/CometChatMessageComposer.js +11 -3
  10. package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
  11. package/lib/CometChatMessageHeader/CometChatMessageHeader.js +1 -1
  12. package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
  13. package/lib/CometChatMessageInformation/CometChatMessageInformation.js +3 -1
  14. package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
  15. package/lib/CometChatMessageList/CometChatMessageList.js +3 -1
  16. package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
  17. package/lib/CometChatMessageList/MessageListConfiguration.js +1 -0
  18. package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
  19. package/lib/calls/CallingPackage.d.ts +1 -1
  20. package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +2 -2
  21. package/lib/extensions/ExtensionModerator.d.ts +1 -1
  22. package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +2 -2
  23. package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +2 -2
  24. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +5 -5
  25. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
  26. package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -2
  27. package/lib/extensions/ThumbnailGeneration/resources/index.js +2 -2
  28. package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -1
  29. package/lib/shared/constants/UIKitConstants.d.ts +9 -0
  30. package/lib/shared/constants/UIKitConstants.js +12 -1
  31. package/lib/shared/constants/UIKitConstants.js.map +1 -1
  32. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +40 -1
  33. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
  34. package/lib/shared/helper/SwipeRow.d.ts +5 -5
  35. package/lib/shared/helper/functions.d.ts +1 -1
  36. package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +8 -5
  37. package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +2 -2
  38. package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +1 -1
  39. package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -1
  40. package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +2 -2
  41. package/lib/shared/libs/datePickerModal/Modal.d.ts +3 -3
  42. package/lib/shared/libs/luxon/src/datetime.d.ts +81 -81
  43. package/lib/shared/libs/luxon/src/duration.d.ts +24 -24
  44. package/lib/shared/libs/luxon/src/impl/english.d.ts +3 -3
  45. package/lib/shared/libs/luxon/src/impl/locale.d.ts +1 -1
  46. package/lib/shared/libs/luxon/src/impl/util.d.ts +7 -7
  47. package/lib/shared/libs/luxon/src/info.d.ts +28 -28
  48. package/lib/shared/libs/luxon/src/interval.d.ts +14 -14
  49. package/lib/shared/libs/luxon/src/settings.d.ts +2 -2
  50. package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +1 -1
  51. package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +1 -1
  52. package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +1 -1
  53. package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +8 -8
  54. package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +2 -2
  55. package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +2 -2
  56. package/lib/shared/resources/CometChatTheme/Palette.d.ts +24 -24
  57. package/lib/shared/resources/CometChatTheme/Typography.d.ts +23 -23
  58. package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +1 -1
  59. package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +3 -3
  60. package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +10 -10
  61. package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +1 -1
  62. package/lib/shared/utils/SchedulerUtils.d.ts +4 -4
  63. package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +9 -9
  64. package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +3 -3
  65. package/lib/shared/views/CometChatDate/CometChatDate.d.ts +1 -1
  66. package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +1 -1
  67. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +3 -3
  68. package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +3 -3
  69. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +8 -2
  70. package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
  71. package/lib/shared/views/CometChatList/CometChatList.js +0 -1
  72. package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
  73. package/lib/shared/views/CometChatMessageBubble/style.js +1 -0
  74. package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +1 -1
  75. package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +1 -1
  76. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +7 -1
  77. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
  78. package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +1 -1
  79. package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
  80. package/package.json +1 -1
  81. package/src/AI/AIConversationSummary/resources/close.png +0 -0
  82. package/src/CometChatConversations/CometChatConversations.tsx +85 -72
  83. package/src/CometChatConversations/resources/close.png +0 -0
  84. package/src/CometChatConversations/resources/rightTick.png +0 -0
  85. package/src/CometChatCreateGroup/resources/close.png +0 -0
  86. package/src/CometChatCreateGroup/resources/rightTick.png +0 -0
  87. package/src/CometChatDetails/resources/close.png +0 -0
  88. package/src/CometChatGroupMembers/resources/rightTick.png +0 -0
  89. package/src/CometChatGroups/resources/close.png +0 -0
  90. package/src/CometChatGroups/resources/rightTick.png +0 -0
  91. package/src/CometChatJoinProtectedGroup/resources/close.png +0 -0
  92. package/src/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
  93. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +34 -47
  94. package/src/CometChatMessageComposer/resources/Info.png +0 -0
  95. package/src/CometChatMessageComposer/resources/circle_add.png +0 -0
  96. package/src/CometChatMessageComposer/resources/close.png +0 -0
  97. package/src/CometChatMessageComposer/resources/image.png +0 -0
  98. package/src/CometChatMessageComposer/resources/send_message.png +0 -0
  99. package/src/CometChatMessageComposer/resources/stickers.png +0 -0
  100. package/src/CometChatMessageList/CometChatMessageList.tsx +50 -64
  101. package/src/CometChatMessageList/resources/close.png +0 -0
  102. package/src/CometChatMessageList/resources/leftarrowcurve.png +0 -0
  103. package/src/CometChatMessages/CometChatMessages.tsx +1 -2
  104. package/src/CometChatMessages/resources/info.png +0 -0
  105. package/src/CometChatMessages/style.ts +0 -1
  106. package/src/CometChatThreadedMessages/resources/close.png +0 -0
  107. package/src/calls/CometChatCallButtons/resources/Call.png +0 -0
  108. package/src/calls/CometChatCallButtons/resources/Video.png +0 -0
  109. package/src/calls/CometChatCallLogHistory/resources/Info.png +0 -0
  110. package/src/calls/CometChatCallLogRecordings/resources/download.png +0 -0
  111. package/src/calls/CometChatCallLogs/CallLogsConfiguration.ts +4 -4
  112. package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +2 -2
  113. package/src/calls/CometChatCallLogs/resources/Info.png +0 -0
  114. package/src/calls/CometChatOutgoingCall/resources/Close.png +0 -0
  115. package/src/calls/resources/Call.png +0 -0
  116. package/src/calls/resources/Video.png +0 -0
  117. package/src/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
  118. package/src/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
  119. package/src/extensions/MessageTranslation/resources/translate.png +0 -0
  120. package/src/extensions/Polls/resources/close.png +0 -0
  121. package/src/extensions/Polls/resources/document.png +0 -0
  122. package/src/extensions/Polls/resources/kickIcon.png +0 -0
  123. package/src/extensions/Polls/resources/rightTick.png +0 -0
  124. package/src/extensions/SmartReplies/resources/close.png +0 -0
  125. package/src/extensions/Stickers/resources/Stickers.png +0 -0
  126. package/src/shared/assets/images/checkmark.png +0 -0
  127. package/src/shared/assets/images/grey-double-tick-icon.png +0 -0
  128. package/src/shared/assets/images/grey-tick-icon.png +0 -0
  129. package/src/shared/framework/resources/audio-file.png +0 -0
  130. package/src/shared/framework/resources/circle_add.png +0 -0
  131. package/src/shared/framework/resources/copy.png +0 -0
  132. package/src/shared/framework/resources/delete.png +0 -0
  133. package/src/shared/framework/resources/edit.png +0 -0
  134. package/src/shared/framework/resources/file_upload.png +0 -0
  135. package/src/shared/framework/resources/image.png +0 -0
  136. package/src/shared/framework/resources/info.png +0 -0
  137. package/src/shared/framework/resources/messageInPrivate.png +0 -0
  138. package/src/shared/framework/resources/pause.png +0 -0
  139. package/src/shared/framework/resources/play.png +0 -0
  140. package/src/shared/framework/resources/send_message.png +0 -0
  141. package/src/shared/framework/resources/share.png +0 -0
  142. package/src/shared/framework/resources/thread.png +0 -0
  143. package/src/shared/framework/resources/video_upload.png +0 -0
  144. package/src/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
  145. package/src/shared/utils/CommonUtils.ts +43 -9
  146. package/src/shared/utils/DetailsUtils/resources/close.png +0 -0
  147. package/src/shared/views/CometChatActionSheet/resources/grid.png +0 -0
  148. package/src/shared/views/CometChatActionSheet/resources/list.png +0 -0
  149. package/src/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
  150. package/src/shared/views/CometChatAudioBubble/resources/play.png +0 -0
  151. package/src/shared/views/CometChatFileBubble/resources/download.png +0 -0
  152. package/src/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
  153. package/src/shared/views/CometChatFileBubble/style.ts +2 -0
  154. package/src/shared/views/CometChatList/CometChatList.tsx +13 -3
  155. package/src/shared/views/CometChatList/resources/checkmark.png +0 -0
  156. package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +7 -4
  157. package/src/shared/views/CometChatVideoBubble/resources/play.png +0 -0
@@ -37,8 +37,8 @@ export default class Info {
37
37
  * @returns {number} the start of the week, 1 for Monday through 7 for Sunday
38
38
  */
39
39
  static getStartOfWeek({ locale, locObj }?: {
40
- locale?: string;
41
- locObj?: string;
40
+ locale?: string | undefined;
41
+ locObj?: string | undefined;
42
42
  }): number;
43
43
  /**
44
44
  * Get the minimum number of days necessary in a week before it is considered part of the next year according
@@ -49,8 +49,8 @@ export default class Info {
49
49
  * @returns {number}
50
50
  */
51
51
  static getMinimumDaysInFirstWeek({ locale, locObj }?: {
52
- locale?: string;
53
- locObj?: string;
52
+ locale?: string | undefined;
53
+ locObj?: string | undefined;
54
54
  }): number;
55
55
  /**
56
56
  * Get the weekdays, which are considered the weekend according to the given locale
@@ -60,8 +60,8 @@ export default class Info {
60
60
  * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday
61
61
  */
62
62
  static getWeekendWeekdays({ locale, locObj }?: {
63
- locale?: string;
64
- locObj?: string;
63
+ locale?: string | undefined;
64
+ locObj?: string | undefined;
65
65
  }): number[];
66
66
  /**
67
67
  * Return an array of standalone month names.
@@ -80,11 +80,11 @@ export default class Info {
80
80
  * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'
81
81
  * @return {Array}
82
82
  */
83
- static months(length?: string, { locale, numberingSystem, locObj, outputCalendar }?: {
84
- locale?: string;
85
- numberingSystem?: string;
86
- locObj?: string;
87
- outputCalendar?: string;
83
+ static months(length?: string | undefined, { locale, numberingSystem, locObj, outputCalendar }?: {
84
+ locale?: string | undefined;
85
+ numberingSystem?: string | undefined;
86
+ locObj?: string | undefined;
87
+ outputCalendar?: string | undefined;
88
88
  }): any[];
89
89
  /**
90
90
  * Return an array of format month names.
@@ -99,11 +99,11 @@ export default class Info {
99
99
  * @param {string} [opts.outputCalendar='gregory'] - the calendar
100
100
  * @return {Array}
101
101
  */
102
- static monthsFormat(length?: string, { locale, numberingSystem, locObj, outputCalendar }?: {
103
- locale?: string;
104
- numberingSystem?: string;
105
- locObj?: string;
106
- outputCalendar?: string;
102
+ static monthsFormat(length?: string | undefined, { locale, numberingSystem, locObj, outputCalendar }?: {
103
+ locale?: string | undefined;
104
+ numberingSystem?: string | undefined;
105
+ locObj?: string | undefined;
106
+ outputCalendar?: string | undefined;
107
107
  }): any[];
108
108
  /**
109
109
  * Return an array of standalone week names.
@@ -119,10 +119,10 @@ export default class Info {
119
119
  * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'
120
120
  * @return {Array}
121
121
  */
122
- static weekdays(length?: string, { locale, numberingSystem, locObj }?: {
123
- locale?: string;
124
- numberingSystem?: string;
125
- locObj?: string;
122
+ static weekdays(length?: string | undefined, { locale, numberingSystem, locObj }?: {
123
+ locale?: string | undefined;
124
+ numberingSystem?: string | undefined;
125
+ locObj?: string | undefined;
126
126
  }): any[];
127
127
  /**
128
128
  * Return an array of format week names.
@@ -136,10 +136,10 @@ export default class Info {
136
136
  * @param {string} [opts.locObj=null] - an existing locale object to use
137
137
  * @return {Array}
138
138
  */
139
- static weekdaysFormat(length?: string, { locale, numberingSystem, locObj }?: {
140
- locale?: string;
141
- numberingSystem?: string;
142
- locObj?: string;
139
+ static weekdaysFormat(length?: string | undefined, { locale, numberingSystem, locObj }?: {
140
+ locale?: string | undefined;
141
+ numberingSystem?: string | undefined;
142
+ locObj?: string | undefined;
143
143
  }): any[];
144
144
  /**
145
145
  * Return an array of meridiems.
@@ -150,7 +150,7 @@ export default class Info {
150
150
  * @return {Array}
151
151
  */
152
152
  static meridiems({ locale }?: {
153
- locale?: string;
153
+ locale?: string | undefined;
154
154
  }): any[];
155
155
  /**
156
156
  * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.
@@ -162,8 +162,8 @@ export default class Info {
162
162
  * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]
163
163
  * @return {Array}
164
164
  */
165
- static eras(length?: string, { locale }?: {
166
- locale?: string;
165
+ static eras(length?: string | undefined, { locale }?: {
166
+ locale?: string | undefined;
167
167
  }): any[];
168
168
  /**
169
169
  * Return the set of available features in this environment.
@@ -174,5 +174,5 @@ export default class Info {
174
174
  * @example Info.features() //=> { relative: false, localeWeek: true }
175
175
  * @return {Object}
176
176
  */
177
- static features(): any;
177
+ static features(): Object;
178
178
  }
@@ -17,28 +17,28 @@ export default class Interval {
17
17
  * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
18
18
  * @return {Interval}
19
19
  */
20
- static invalid(reason: string, explanation?: string): Interval;
20
+ static invalid(reason: string, explanation?: string | undefined): Interval;
21
21
  /**
22
22
  * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
23
23
  * @param {DateTime|Date|Object} start
24
24
  * @param {DateTime|Date|Object} end
25
25
  * @return {Interval}
26
26
  */
27
- static fromDateTimes(start: DateTime | Date | any, end: DateTime | Date | any): Interval;
27
+ static fromDateTimes(start: DateTime | Date | Object, end: DateTime | Date | Object): Interval;
28
28
  /**
29
29
  * Create an Interval from a start DateTime and a Duration to extend to.
30
30
  * @param {DateTime|Date|Object} start
31
31
  * @param {Duration|Object|number} duration - the length of the Interval.
32
32
  * @return {Interval}
33
33
  */
34
- static after(start: DateTime | Date | any, duration: Duration | any | number): Interval;
34
+ static after(start: DateTime | Date | Object, duration: Duration | Object | number): Interval;
35
35
  /**
36
36
  * Create an Interval from an end DateTime and a Duration to extend backwards to.
37
37
  * @param {DateTime|Date|Object} end
38
38
  * @param {Duration|Object|number} duration - the length of the Interval.
39
39
  * @return {Interval}
40
40
  */
41
- static before(end: DateTime | Date | any, duration: Duration | any | number): Interval;
41
+ static before(end: DateTime | Date | Object, duration: Duration | Object | number): Interval;
42
42
  /**
43
43
  * Create an Interval from an ISO 8601 string.
44
44
  * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.
@@ -47,7 +47,7 @@ export default class Interval {
47
47
  * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
48
48
  * @return {Interval}
49
49
  */
50
- static fromISO(text: string, opts?: any): Interval;
50
+ static fromISO(text: string, opts?: Object | undefined): Interval;
51
51
  /**
52
52
  * Check if an object is an Interval. Works across context boundaries
53
53
  * @param {object} o
@@ -127,8 +127,8 @@ export default class Interval {
127
127
  * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime
128
128
  * @return {number}
129
129
  */
130
- count(unit?: string, opts: {
131
- useLocaleWeeks?: boolean;
130
+ count(unit?: string | undefined, opts: {
131
+ useLocaleWeeks?: boolean | undefined;
132
132
  }): number;
133
133
  /**
134
134
  * Returns whether this Interval's start and end are both in the same unit of time
@@ -182,7 +182,7 @@ export default class Interval {
182
182
  * @param {Duration|Object|number} duration - The length of each resulting interval.
183
183
  * @return {Array}
184
184
  */
185
- splitBy(duration: Duration | any | number): any[];
185
+ splitBy(duration: Duration | Object | number): any[];
186
186
  /**
187
187
  * Split this Interval into the specified number of smaller intervals.
188
188
  * @param {number} numberOfParts - The number of Intervals to divide the Interval into.
@@ -263,14 +263,14 @@ export default class Interval {
263
263
  * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p
264
264
  * @return {string}
265
265
  */
266
- toLocaleString(formatOpts?: any, opts?: any): string;
266
+ toLocaleString(formatOpts?: Object | undefined, opts?: Object): string;
267
267
  /**
268
268
  * Returns an ISO 8601-compliant string representation of this Interval.
269
269
  * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
270
270
  * @param {Object} opts - The same options as {@link DateTime#toISO}
271
271
  * @return {string}
272
272
  */
273
- toISO(opts: any): string;
273
+ toISO(opts: Object): string;
274
274
  /**
275
275
  * Returns an ISO 8601-compliant string representation of date of this Interval.
276
276
  * The time components are ignored.
@@ -285,7 +285,7 @@ export default class Interval {
285
285
  * @param {Object} opts - The same options as {@link DateTime#toISO}
286
286
  * @return {string}
287
287
  */
288
- toISOTime(opts: any): string;
288
+ toISOTime(opts: Object): string;
289
289
  /**
290
290
  * Returns a string representation of this Interval formatted according to the specified format
291
291
  * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible
@@ -298,7 +298,7 @@ export default class Interval {
298
298
  * @return {string}
299
299
  */
300
300
  toFormat(dateFormat: string, { separator }?: {
301
- separator?: string;
301
+ separator?: string | undefined;
302
302
  }): string;
303
303
  /**
304
304
  * Return a Duration representing the time spanned by this interval.
@@ -312,8 +312,8 @@ export default class Interval {
312
312
  * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }
313
313
  * @return {Duration}
314
314
  */
315
- toDuration(unit?: string | string[], opts: {
316
- conversionAccuracy?: string;
315
+ toDuration(unit?: string | string[] | undefined, opts: {
316
+ conversionAccuracy?: string | undefined;
317
317
  }): Duration;
318
318
  /**
319
319
  * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes
@@ -68,7 +68,7 @@ export default class Settings {
68
68
  firstDay: number;
69
69
  minimalDays: number;
70
70
  weekend: number[];
71
- });
71
+ } | null);
72
72
  /**
73
73
  * @typedef {Object} WeekSettings
74
74
  * @property {number} firstDay
@@ -82,7 +82,7 @@ export default class Settings {
82
82
  firstDay: number;
83
83
  minimalDays: number;
84
84
  weekend: number[];
85
- };
85
+ } | null;
86
86
  /**
87
87
  * Set the cutoff year after which a string encoding a year as two digits is interpreted to occur in the current century.
88
88
  * @type {number}
@@ -42,7 +42,7 @@ export default class IANAZone extends Zone implements Zone {
42
42
  override offsetName(ts: any, { format, locale }: {
43
43
  format: any;
44
44
  locale: any;
45
- }): string;
45
+ }): string | null;
46
46
  /** @override **/
47
47
  override formatOffset(ts: any, format: any): string;
48
48
  /** @override **/
@@ -9,7 +9,7 @@ export default class InvalidZone extends Zone implements Zone {
9
9
  /** @override **/
10
10
  override get name(): any;
11
11
  /** @override **/
12
- override offsetName(): any;
12
+ override offsetName(): null;
13
13
  /** @override **/
14
14
  override formatOffset(): string;
15
15
  /** @override **/
@@ -12,7 +12,7 @@ export default class SystemZone extends Zone implements Zone {
12
12
  override offsetName(ts: any, { format, locale }: {
13
13
  format: any;
14
14
  locale: any;
15
- }): string;
15
+ }): string | null;
16
16
  /** @override **/
17
17
  override formatOffset(ts: any, format: any): string;
18
18
  /** @override **/
@@ -47,16 +47,16 @@ export declare class SchedulerMessage extends CometChat.InteractiveMessage {
47
47
  setIcsFileUrl(icsFileUrl: string): void;
48
48
  setScheduleElement(scheduleElement: ButtonElement): void;
49
49
  getInteractiveData(): InteractiveData;
50
- getTitle(): string;
51
- getAvatarUrl(): string;
52
- getGoalCompletionText(): string;
50
+ getTitle(): string | undefined;
51
+ getAvatarUrl(): string | undefined;
52
+ getGoalCompletionText(): string | undefined;
53
53
  getTimezoneCode(): string;
54
- getDuration(): number;
55
- getBufferTime(): number;
54
+ getDuration(): number | undefined;
55
+ getBufferTime(): number | undefined;
56
56
  getAvailability(): Availability;
57
- getDateRangeStart(): number;
58
- getDateRangeEnd(): number;
59
- getIcsFileUrl(): string;
57
+ getDateRangeStart(): number | undefined;
58
+ getDateRangeEnd(): number | undefined;
59
+ getIcsFileUrl(): string | undefined;
60
60
  getScheduleElement(): ButtonElement;
61
61
  static fromJSON(json: any): SchedulerMessage;
62
62
  }
@@ -6,8 +6,8 @@ export class CometChatSoundManager {
6
6
  outgoingCall: any;
7
7
  outgoingMessage: any;
8
8
  }>;
9
- static audio: any;
9
+ static audio: null;
10
10
  static onPlay: (resource: any, loop: any, isRequire: any) => Promise<void>;
11
- static play(sound: any, customSound: any, isRequire?: boolean): Promise<boolean>;
11
+ static play(sound: any, customSound: any, isRequire?: boolean): Promise<false | undefined>;
12
12
  static pause(): void;
13
13
  }
@@ -15,8 +15,8 @@ declare class CometChatTheme {
15
15
  palette: Palette;
16
16
  typography: Typography;
17
17
  constructor({ palette, typography }: {
18
- palette?: Palette;
19
- typography?: Typography;
18
+ palette?: Palette | undefined;
19
+ typography?: Typography | undefined;
20
20
  });
21
21
  }
22
22
  export { CometChatTheme, Palette, Typography };
@@ -12,8 +12,8 @@ declare class PaletteItem {
12
12
  light: string;
13
13
  dark: string;
14
14
  constructor({ light, dark }: {
15
- light?: string;
16
- dark?: string;
15
+ light?: string | undefined;
16
+ dark?: string | undefined;
17
17
  });
18
18
  }
19
19
  /**
@@ -72,28 +72,28 @@ declare class Palette {
72
72
  accent800: PaletteItem;
73
73
  accent900: PaletteItem;
74
74
  constructor({ mode, backgroundColor, primary, primary13, primary40, primary150, primary500, secondary, tertiary, error, success, accent, accent50, accent100, accent200, accent300, accent400, accent500, accent600, accent700, accent800, accent900, }: {
75
- mode?: string;
76
- backgroundColor?: PaletteItem;
77
- primary?: PaletteItem;
78
- primary13?: PaletteItem;
79
- primary40?: PaletteItem;
80
- primary150?: PaletteItem;
81
- primary500?: PaletteItem;
82
- secondary?: PaletteItem;
83
- tertiary?: PaletteItem;
84
- error?: PaletteItem;
85
- success?: PaletteItem;
86
- accent?: PaletteItem;
87
- accent50?: PaletteItem;
88
- accent100?: PaletteItem;
89
- accent200?: PaletteItem;
90
- accent300?: PaletteItem;
91
- accent400?: PaletteItem;
92
- accent500?: PaletteItem;
93
- accent600?: PaletteItem;
94
- accent700?: PaletteItem;
95
- accent800?: PaletteItem;
96
- accent900?: PaletteItem;
75
+ mode?: string | undefined;
76
+ backgroundColor?: PaletteItem | undefined;
77
+ primary?: PaletteItem | undefined;
78
+ primary13?: PaletteItem | undefined;
79
+ primary40?: PaletteItem | undefined;
80
+ primary150?: PaletteItem | undefined;
81
+ primary500?: PaletteItem | undefined;
82
+ secondary?: PaletteItem | undefined;
83
+ tertiary?: PaletteItem | undefined;
84
+ error?: PaletteItem | undefined;
85
+ success?: PaletteItem | undefined;
86
+ accent?: PaletteItem | undefined;
87
+ accent50?: PaletteItem | undefined;
88
+ accent100?: PaletteItem | undefined;
89
+ accent200?: PaletteItem | undefined;
90
+ accent300?: PaletteItem | undefined;
91
+ accent400?: PaletteItem | undefined;
92
+ accent500?: PaletteItem | undefined;
93
+ accent600?: PaletteItem | undefined;
94
+ accent700?: PaletteItem | undefined;
95
+ accent800?: PaletteItem | undefined;
96
+ accent900?: PaletteItem | undefined;
97
97
  });
98
98
  /**
99
99
  * Getters
@@ -51,29 +51,29 @@ declare class Typography {
51
51
  caption3: FontStyle;
52
52
  body: FontStyle;
53
53
  constructor({ fontFamily, fontWeightRegular, fontWeightMedium, fontWeightSemibold, fontWeightBold, heading, heading2, heading3, name, title1, title2, subtitle1, subtitle2, subtitle3, subtitle4, subtitle5, subtitle6, text1, text2, caption1, caption2, caption3, body, }: {
54
- fontFamily?: any;
55
- fontWeightRegular?: string;
56
- fontWeightMedium?: string;
57
- fontWeightSemibold?: string;
58
- fontWeightBold?: string;
59
- heading?: FontStyle;
60
- heading2?: FontStyle;
61
- heading3?: FontStyle;
62
- name?: FontStyle;
63
- title1?: FontStyle;
64
- title2?: FontStyle;
65
- subtitle1?: FontStyle;
66
- subtitle2?: FontStyle;
67
- subtitle3?: FontStyle;
68
- subtitle4?: FontStyle;
69
- subtitle5?: FontStyle;
70
- subtitle6?: FontStyle;
71
- text1?: FontStyle;
72
- text2?: FontStyle;
73
- caption1?: FontStyle;
74
- caption2?: FontStyle;
75
- caption3?: FontStyle;
76
- body?: FontStyle;
54
+ fontFamily?: undefined;
55
+ fontWeightRegular?: string | undefined;
56
+ fontWeightMedium?: string | undefined;
57
+ fontWeightSemibold?: string | undefined;
58
+ fontWeightBold?: string | undefined;
59
+ heading?: FontStyle | undefined;
60
+ heading2?: FontStyle | undefined;
61
+ heading3?: FontStyle | undefined;
62
+ name?: FontStyle | undefined;
63
+ title1?: FontStyle | undefined;
64
+ title2?: FontStyle | undefined;
65
+ subtitle1?: FontStyle | undefined;
66
+ subtitle2?: FontStyle | undefined;
67
+ subtitle3?: FontStyle | undefined;
68
+ subtitle4?: FontStyle | undefined;
69
+ subtitle5?: FontStyle | undefined;
70
+ subtitle6?: FontStyle | undefined;
71
+ text1?: FontStyle | undefined;
72
+ text2?: FontStyle | undefined;
73
+ caption1?: FontStyle | undefined;
74
+ caption2?: FontStyle | undefined;
75
+ caption3?: FontStyle | undefined;
76
+ body?: FontStyle | undefined;
77
77
  });
78
78
  setFontFamily(fontFamily: any): void;
79
79
  setFontWeightRegular(fontWeightRegular: any): void;
@@ -14,7 +14,7 @@ export namespace CometChatMessagePreview {
14
14
  export let messagePreviewTitle: string;
15
15
  export let messagePreviewSubtitle: string;
16
16
  export { closeIcon as closeIconURL };
17
- export let onCloseClick: any;
17
+ export let onCloseClick: null;
18
18
  export namespace style {
19
19
  let widht: string;
20
20
  let height: string;
@@ -10,10 +10,10 @@
10
10
  export class MessagePreviewConfiguration {
11
11
  constructor({ messagePreviewTitle, messagePreviewSubtitle, closeIconURL, onCloseClick, style, }: {
12
12
  messagePreviewTitle?: any;
13
- messagePreviewSubtitle?: any;
13
+ messagePreviewSubtitle?: null | undefined;
14
14
  closeIconURL?: any;
15
- onCloseClick?: any;
16
- style?: MessagePreviewStyle;
15
+ onCloseClick?: null | undefined;
16
+ style?: MessagePreviewStyle | undefined;
17
17
  });
18
18
  messagePreviewTitle: any;
19
19
  messagePreviewSubtitle: any;
@@ -10,16 +10,16 @@
10
10
  */
11
11
  export class MessagePreviewStyle extends BaseStyle {
12
12
  constructor({ messagePreviewTitleFont, messagePreviewTitleColor, messagePreviewSubtitleColor, messagePreviewSubtitleFont, closeIconTint, width, height, backgroundColor, border, borderRadius, }: {
13
- messagePreviewTitleFont?: {};
14
- messagePreviewTitleColor?: string;
15
- messagePreviewSubtitleColor?: string;
16
- messagePreviewSubtitleFont?: {};
17
- closeIconTint?: string;
18
- width?: string;
19
- height?: string;
20
- backgroundColor?: string;
21
- border?: BorderStyle;
22
- borderRadius?: number;
13
+ messagePreviewTitleFont?: {} | undefined;
14
+ messagePreviewTitleColor?: string | undefined;
15
+ messagePreviewSubtitleColor?: string | undefined;
16
+ messagePreviewSubtitleFont?: {} | undefined;
17
+ closeIconTint?: string | undefined;
18
+ width?: string | undefined;
19
+ height?: string | undefined;
20
+ backgroundColor?: string | undefined;
21
+ border?: BorderStyle | undefined;
22
+ borderRadius?: number | undefined;
23
23
  });
24
24
  messagePreviewTitleFont: {};
25
25
  messagePreviewTitleColor: string;
@@ -5,7 +5,7 @@ export declare const getDefaultDetailsTemplate: ({ loggedInUser, user, group, th
5
5
  user: any;
6
6
  group: any;
7
7
  theme: any;
8
- }) => CometChatDetailsTemplate[];
8
+ }) => (CometChatDetailsTemplate | null)[];
9
9
  export declare const getCometChatDetailsTemplate: (props: CometChatDetailsTemplate) => CometChatDetailsTemplate;
10
10
  export declare const getDefaultGroupMemberOptions: (group: CometChat.Group, groupMember: CometChat.GroupMember, theme: CometChatTheme) => CometChatOptions[];
11
11
  export declare const getCometChatDetailsOption: (props: CometChatDetailsOption) => CometChatDetailsOption;
@@ -11,7 +11,7 @@ export declare const getFormatedDateString: ({ date, format, }: {
11
11
  export declare const getMinSlotsFromRange: ({ startTime, endTime, slotDuration, selectedSlots, bufferDuration, }: {
12
12
  startTime: any;
13
13
  endTime: any;
14
- slotDuration?: number;
15
- selectedSlots?: any[];
16
- bufferDuration?: number;
17
- }) => any[];
14
+ slotDuration?: number | undefined;
15
+ selectedSlots?: never[] | undefined;
16
+ bufferDuration?: number | undefined;
17
+ }) => string[];
@@ -36,14 +36,14 @@ export declare class ActionItem {
36
36
  cornerRadius: number;
37
37
  onClick: () => void;
38
38
  constructor({ id, title, iconUrl, iconTint, titleStyle, iconBackgroundColor, backgroundColor, cornerRadius, onClick, }: {
39
- id?: string;
40
- title?: string;
41
- iconUrl?: any;
42
- iconTint?: string;
43
- titleStyle?: {};
44
- iconBackgroundColor?: string;
45
- backgroundColor?: string;
46
- cornerRadius?: number;
47
- onClick?: () => void;
39
+ id?: string | undefined;
40
+ title?: string | undefined;
41
+ iconUrl?: undefined;
42
+ iconTint?: string | undefined;
43
+ titleStyle?: {} | undefined;
44
+ iconBackgroundColor?: string | undefined;
45
+ backgroundColor?: string | undefined;
46
+ cornerRadius?: number | undefined;
47
+ onClick?: (() => void) | undefined;
48
48
  });
49
49
  }
@@ -13,11 +13,11 @@ export declare const CometChatActionSheet: {
13
13
  (props: CometChatActionSheetInterface): any;
14
14
  defaultProps: {
15
15
  title: any;
16
- layoutModeIconURL: any;
16
+ layoutModeIconURL: undefined;
17
17
  layoutMode: "list";
18
18
  hideLayoutMode: boolean;
19
- actions: any[];
20
- style: any;
19
+ actions: never[];
20
+ style: null;
21
21
  };
22
22
  };
23
23
  export {};
@@ -38,7 +38,7 @@ export declare const CometChatDate: {
38
38
  defaultProps: {
39
39
  timeStamp: number;
40
40
  pattern: string;
41
- customDateString: any;
41
+ customDateString: null;
42
42
  style: DateStyle;
43
43
  };
44
44
  };
@@ -7,7 +7,7 @@
7
7
  */
8
8
  declare class CometChatEmoji {
9
9
  char: string;
10
- keywords: any[];
10
+ keywords: never[];
11
11
  constructor({ char, keywords }: {
12
12
  char: any;
13
13
  keywords: any;
@@ -10,9 +10,9 @@ declare class EmojiKeyboardConfiguration {
10
10
  onClick?: (emoji: string) => void;
11
11
  style?: EmojiKeyboardStyle;
12
12
  constructor({ hideSearch, onClick, style, }: {
13
- hideSearch?: boolean;
14
- onClick?: any;
15
- style?: EmojiKeyboardStyle;
13
+ hideSearch?: boolean | undefined;
14
+ onClick?: null | undefined;
15
+ style?: EmojiKeyboardStyle | undefined;
16
16
  });
17
17
  }
18
18
  export { EmojiKeyboardConfiguration };
@@ -18,10 +18,10 @@ declare class EmojiKeyboardStyle extends BaseStyle {
18
18
  categoryIconTint: any;
19
19
  selectedCategoryIconTint: any;
20
20
  categoryBackground: any;
21
- width?: string;
22
- height?: number;
21
+ width?: string | undefined;
22
+ height?: number | undefined;
23
23
  backgroundColor: any;
24
- borderRadius?: number;
24
+ borderRadius?: number | undefined;
25
25
  });
26
26
  }
27
27
  export { EmojiKeyboardStyle };
@@ -73,6 +73,12 @@ export const CometChatImageBubble = (props) => {
73
73
  setDownloaded(true);
74
74
  }
75
75
  }, []);
76
+ function getImage(imageUrl) {
77
+ if (typeof imageUrl === "object" && imageUrl.uri) {
78
+ return { uri: imageUrl.uri };
79
+ }
80
+ return imageUrl;
81
+ }
76
82
  return (<>
77
83
  {isVisible &&
78
84
  <ImageViewerModal imageUrl={imageUrl} isVisible={isVisible} onClose={() => {
@@ -86,13 +92,13 @@ export const CometChatImageBubble = (props) => {
86
92
  }}>
87
93
  {!downloaded
88
94
  ? <View>
89
- <Image resizeMode={"contain"} source={ICONS.Spinner} style={{
95
+ <Image resizeMode={"contain"} source={getImage(placeHolderImage) || ICONS.Spinner} style={{
90
96
  height: 20,
91
97
  width: 20,
92
98
  backgroundColor,
93
99
  }}/>
94
100
  </View>
95
- : <Image resizeMode={resizeMode || "cover"} loadingIndicatorSource={ICONS.Spinner} source={thumbnailUrl ?? imageUrl} style={{
101
+ : <Image resizeMode={resizeMode || "cover"} loadingIndicatorSource={getImage(placeHolderImage) || ICONS.Spinner} source={getImage(thumbnailUrl) || getImage(imageUrl)} style={{
96
102
  height,
97
103
  width,
98
104
  aspectRatio,