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

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 (47) hide show
  1. package/package.json +1 -1
  2. package/src/AI/AIConversationSummary/AIConversationSummaryView.tsx +171 -167
  3. package/src/AI/CardView.tsx +55 -53
  4. package/src/CometChatCreateGroup/CometChatCreateGroup.tsx +8 -13
  5. package/src/CometChatGroups/CometChatGroups.tsx +545 -514
  6. package/src/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.tsx +5 -8
  7. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +544 -378
  8. package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +90 -72
  9. package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +3 -8
  10. package/src/CometChatTransferOwnership/CometChatTransferOwnership.tsx +11 -13
  11. package/src/CometChatUsers/CometChatUsers.tsx +24 -23
  12. package/src/extensions/CollaborativeBubble/CometChatCollaborativeBubble.tsx +24 -25
  13. package/src/extensions/Polls/Polls.tsx +8 -16
  14. package/src/extensions/Polls/PollsBubble.tsx +5 -10
  15. package/src/extensions/SmartReplies/SmartRepliesView.tsx +16 -22
  16. package/src/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.tsx +51 -51
  17. package/src/shared/libs/datePickerModal/DateTimePickerModal.android.js +1 -7
  18. package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +38 -46
  19. package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +19 -19
  20. package/src/shared/views/CometChatAvatar/CometChatAvatar.tsx +8 -20
  21. package/src/shared/views/CometChatBadge/CometChatBadge.tsx +8 -14
  22. package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +141 -140
  23. package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +47 -51
  24. package/src/shared/views/CometChatDate/CometChatDate.tsx +18 -17
  25. package/src/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.tsx +65 -51
  26. package/src/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.tsx +76 -72
  27. package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +3 -8
  28. package/src/shared/views/CometChatList/CometChatList.tsx +133 -134
  29. package/src/shared/views/CometChatListItem/CometChatListItem.tsx +62 -61
  30. package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +20 -10
  31. package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +3 -8
  32. package/src/shared/views/CometChatMessageInput/CometChatMessageInput.tsx +24 -23
  33. package/src/shared/views/CometChatReactions/CometChatReactions.tsx +107 -53
  34. package/src/shared/views/CometChatReceipt/CometChatReceipt.tsx +22 -14
  35. package/src/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.tsx +15 -8
  36. package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +2 -6
  37. package/src/shared/views/SwipeRow/SwipeRow.tsx +6 -14
  38. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  39. package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  40. package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  41. package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  42. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  43. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  44. package/android/.gradle/7.4/gc.properties +0 -0
  45. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  46. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  47. package/android/.gradle/vcs-1/gc.properties +0 -0
@@ -1,6 +1,13 @@
1
1
  import React from 'react';
2
2
  // @ts-ignore
3
- import { Image, View, StyleProp, ViewStyle, ViewProps, ImageStyle } from 'react-native';
3
+ import {
4
+ Image,
5
+ View,
6
+ StyleProp,
7
+ ViewStyle,
8
+ ViewProps,
9
+ ImageStyle,
10
+ } from 'react-native';
4
11
  import { Styles } from './styles';
5
12
  import { StatusIndicatorStyle } from './StatusIndicatorStyle';
6
13
  import { ImageType } from '../../base';
@@ -23,13 +30,18 @@ export interface CometChatStatusIndicatorInterface {
23
30
  export const CometChatStatusIndicator = (
24
31
  props: CometChatStatusIndicatorInterface
25
32
  ) => {
26
- const { backgroundImage, backgroundColor } = props;
33
+ const {
34
+ backgroundColor,
35
+
36
+ backgroundImage = undefined,
37
+ style: styleProp = new StatusIndicatorStyle({}),
38
+ } = props;
27
39
 
28
40
  const defaultStyleProps = new StatusIndicatorStyle({});
29
41
  const style = {
30
42
  ...defaultStyleProps,
31
- ...(props.style as object),
32
43
  ...(backgroundColor ? { backgroundColor } : {}),
44
+ ...styleProp as {}
33
45
  };
34
46
 
35
47
  const getView = () => {
@@ -57,8 +69,3 @@ export const CometChatStatusIndicator = (
57
69
 
58
70
  return getView();
59
71
  };
60
-
61
- CometChatStatusIndicator.defaultProps = {
62
- backgroundImage: '',
63
- style: new StatusIndicatorStyle({}),
64
- };
@@ -55,7 +55,7 @@ export interface CometChatTextBubbleInterface {
55
55
  export const CometChatTextBubble = (props: CometChatTextBubbleInterface) => {
56
56
 
57
57
  const {
58
- text,
58
+ text = "",
59
59
  textContainerStyle,
60
60
  textFormatters
61
61
  } = props;
@@ -103,11 +103,7 @@ export const CometChatTextBubble = (props: CometChatTextBubbleInterface) => {
103
103
  border,
104
104
  textContainerStyle
105
105
  ] as ViewProps}>
106
- <Text style={[{ color: textColor }, textFont] as TextStyle}>{formattedText}</Text>
106
+ <Text style={[{ color: textColor }, textFont] as TextStyle[]}>{formattedText}</Text>
107
107
 
108
108
  </View>
109
- }
110
-
111
- CometChatTextBubble.defaultProps = {
112
- text: ""
113
109
  }
@@ -21,15 +21,12 @@ export const CometChatSwipeRow: React.FC<CometChatSwipeRowInterface | any> = (
21
21
  const [translate, setTranslate] = useState(0);
22
22
  const { theme } = useContext<CometChatContextType>(CometChatContext);
23
23
 
24
- const { id, options, children } = props;
25
-
26
- // const defaultlistItemStyleProps = new ListItemStyle({
27
- // backgroundColor: theme.palette.getBackgroundColor(),
28
- // titleColor: theme.palette.getAccent(),
29
- // });
30
- const listItemStyle = {
31
- ...props.listItemStyle,
32
- };
24
+ const {
25
+ id,
26
+ options,
27
+ children,
28
+ listItemStyle= {},
29
+ } = props;
33
30
 
34
31
  const [swipeRowOptions, setSwipeRowOptions] = useState<any[]>([]);
35
32
  let cancelClick = false;
@@ -119,7 +116,6 @@ export const CometChatSwipeRow: React.FC<CometChatSwipeRowInterface | any> = (
119
116
  data={swipeRowOptions.slice(0, 3)}
120
117
  renderItem={OptionsListItem}
121
118
  keyExtractor={(_, i) => _.id ?? i}
122
-
123
119
  />
124
120
  )}
125
121
  </View>
@@ -128,7 +124,3 @@ export const CometChatSwipeRow: React.FC<CometChatSwipeRowInterface | any> = (
128
124
  </SwipeRow>
129
125
  );
130
126
  };
131
-
132
- CometChatSwipeRow.defaultProps = {
133
- listItemStyle: {},
134
- };
File without changes
@@ -1,2 +0,0 @@
1
- #Mon Sep 23 16:45:44 IST 2024
2
- gradle.version=7.4
File without changes