@cometchat/chat-uikit-react-native 4.3.19 → 4.3.20

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 (51) hide show
  1. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  4. package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  5. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  6. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/7.4/gc.properties +0 -0
  8. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  9. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  10. package/android/.gradle/vcs-1/gc.properties +0 -0
  11. package/android/src/main/AndroidManifest.xml +6 -0
  12. package/package.json +1 -1
  13. package/src/CometChatConversations/CometChatConversations.tsx +19 -25
  14. package/src/CometChatGroups/CometChatGroups.tsx +2 -2
  15. package/src/CometChatGroups/GroupsConfiguration.ts +13 -16
  16. package/src/CometChatGroups/resources/index.ts +0 -3
  17. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +6 -2
  18. package/src/CometChatMessageInformation/MessageInformationConfiguration.tsx +31 -12
  19. package/src/CometChatMessageInformation/index.ts +6 -3
  20. package/src/CometChatMessageList/CometChatMessageList.tsx +24 -9
  21. package/src/CometChatMessageList/MessageListConfiguration.ts +21 -0
  22. package/src/CometChatTabs/CometChatTabs.tsx +8 -8
  23. package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +2 -1
  24. package/src/CometChatUsers/CometChatUsers.tsx +40 -11
  25. package/src/CometChatUsers/UsersConfiguration.tsx +2 -2
  26. package/src/CometChatUsers/UsersStyle.ts +101 -0
  27. package/src/CometChatUsers/index.ts +4 -1
  28. package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +1 -1
  29. package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -1
  30. package/src/extensions/SmartReplies/SmartRepliesDecorator.tsx +11 -6
  31. package/src/index.ts +8 -2
  32. package/src/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.ts +53 -53
  33. package/src/shared/framework/MessageDataSource.tsx +1 -1
  34. package/src/shared/libs/ImageZoom/ReactNativeZoomableView.tsx +1 -0
  35. package/src/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.tsx +1 -1
  36. package/src/shared/libs/VideoPlayerControls/components/Control.tsx +1 -1
  37. package/src/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.tsx +1 -1
  38. package/src/shared/libs/luxon/src/impl/zoneUtil.js +0 -4
  39. package/src/shared/utils/CommonUtils.ts +15 -15
  40. package/src/shared/utils/InteractiveMessageUtils.ts +1 -1
  41. package/src/shared/views/CometChatActionSheet/ActionSheetStyle.ts +10 -12
  42. package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +1 -1
  43. package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +2 -2
  44. package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +1 -1
  45. package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +3 -3
  46. package/src/shared/views/CometChatImageBubble/assets/index.ts +1 -0
  47. package/src/shared/views/CometChatMessageBubble/MessageBubbleStyle.ts +2 -2
  48. package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +0 -1
  49. package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +5 -5
  50. package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +1 -1
  51. package/src/CometChatGroups/resources/search.png +0 -0
@@ -1,11 +1,11 @@
1
1
  import { BaseStyle, BaseStyleInterface, BorderStyle } from "../../base";
2
2
 
3
3
  export interface MessageBubbleStyleInterface extends BaseStyleInterface {
4
- alignSelf?: string;
4
+ alignSelf?: string | null;
5
5
  }
6
6
 
7
7
  export class MessageBubbleStyle extends BaseStyle {
8
- alignSelf?: string;
8
+ alignSelf?: string | null;
9
9
  constructor({
10
10
  backgroundColor = "rgba(20,20,20,0.4)",
11
11
  border = new BorderStyle({}),
@@ -147,7 +147,6 @@ export const CometChatReactionList = (props: CometChatReactionListInterface) =>
147
147
  return list;
148
148
  } catch (error: any) {
149
149
  console.log("error while fetching reactions", error)
150
- if (error?.code === "REQUEST_IN_PROGRESS") return;
151
150
  setState("error");
152
151
  return [];
153
152
  }
@@ -426,9 +426,9 @@ export const CometChatSchedulerBubble = memo(
426
426
  }
427
427
  };
428
428
 
429
- const getQuickSelectSlots = async (date, shouldViewNext = true) => {
429
+ const getQuickSelectSlots = async (date: Date, shouldViewNext = true) => {
430
430
  let day = DateTime.fromJSDate(date).toFormat("EEEE");
431
- date = DateTime.fromJSDate(date).toFormat(dateFormats.date);
431
+ let dateString = DateTime.fromJSDate(date).toFormat(dateFormats.date);
432
432
 
433
433
  let newQuickObj: anyObject = {};
434
434
  getConvertedAvailablityObjectForDate(date, day, newQuickObj);
@@ -445,15 +445,15 @@ export const CometChatSchedulerBubble = memo(
445
445
  });
446
446
 
447
447
  tempQuickSelectRange.current = range;
448
- if (range.length && newQuickObj[date]) {
449
- newQuickObj[date].availability = range;
448
+ if (range.length && newQuickObj[dateString]) {
449
+ newQuickObj[dateString].availability = range;
450
450
  }
451
451
  // Ensure range is an Array
452
452
  if (!Array.isArray(range)) {
453
453
  range = [];
454
454
  }
455
455
 
456
- if (range.length < 2 && shouldViewNext) await getNextQuickSlots(date, newQuickObj);
456
+ if (range.length < 2 && shouldViewNext) await getNextQuickSlots(dateString, newQuickObj);
457
457
 
458
458
  let quickSlotsArray: any[] = [];
459
459
 
@@ -77,7 +77,7 @@ export const CometChatVideoBubble = (props: CometChatVideoBubbleInterface) => {
77
77
  const [isVideoPlayerVisible, setIsVideoPlayerVisible] = useState(false);
78
78
 
79
79
  const callCount = useRef(0);
80
- const timerId = useRef(null);
80
+ const timerId = useRef<any>(null);
81
81
  const threshold = 10;
82
82
  const timeframe = 1000;
83
83