@cometchat/chat-uikit-react-native 5.0.0 → 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 (103) hide show
  1. package/android/src/main/java/com/reactnativecometchatuikit/FileManager.java +87 -49
  2. package/android/src/main/java/com/reactnativecometchatuikit/SoundPlayer.java +10 -0
  3. package/ios/SoundPlayer.m +8 -0
  4. package/package.json +8 -9
  5. package/src/CometChatConversations/CometChatConversations.tsx +19 -14
  6. package/src/CometChatConversations/style.ts +6 -2
  7. package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +1 -0
  8. package/src/CometChatGroupMembers/style.ts +1 -0
  9. package/src/CometChatGroups/CometChatGroups.tsx +1 -0
  10. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +227 -57
  11. package/src/CometChatMessageComposer/styles.tsx +3 -6
  12. package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +2 -2
  13. package/src/CometChatMessageHeader/styles.ts +1 -0
  14. package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +1 -1
  15. package/src/CometChatMessageList/CometChatMessageList.tsx +188 -111
  16. package/src/CometChatMessageList/style.ts +0 -16
  17. package/src/CometChatThreadHeader/CometChatThreadHeader.tsx +1 -1
  18. package/src/CometChatUsers/CometChatUsers.tsx +1 -1
  19. package/src/calls/CallUtils.ts +18 -10
  20. package/src/calls/CallingExtensionDecorator.tsx +1 -1
  21. package/src/calls/CometChatCallBubble/CometChatCallBubble.tsx +8 -7
  22. package/src/calls/CometChatCallBubble/styles.ts +1 -0
  23. package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +6 -4
  24. package/src/calls/CometChatCallButtons/style.ts +2 -1
  25. package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +4 -3
  26. package/src/calls/CometChatCallLogs/style.ts +1 -0
  27. package/src/calls/CometChatIncomingCall/CometChatIncomingCall.tsx +4 -3
  28. package/src/calls/CometChatOngoingCall/CometChatOngoingCall.tsx +1 -0
  29. package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +3 -3
  30. package/src/calls/CometChatOutgoingCall/OutgoingCallConfiguration.ts +1 -0
  31. package/src/extensions/CollaborativeBubble/CometChatCollaborativeBubble.tsx +1 -1
  32. package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +1 -1
  33. package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +1 -1
  34. package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +15 -18
  35. package/src/extensions/LinkPreview/LinkPreviewExtensionDecorator.tsx +1 -1
  36. package/src/extensions/LinkPreview/style.ts +2 -2
  37. package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +20 -17
  38. package/src/extensions/Polls/Polls.tsx +45 -8
  39. package/src/extensions/Polls/PollsDecorator.tsx +1 -1
  40. package/src/extensions/Stickers/StickersExtensionDecorator.tsx +2 -4
  41. package/src/extensions/Stickers/style.ts +3 -3
  42. package/src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx +1 -1
  43. package/src/imageresolver.d.ts +4 -0
  44. package/src/index.ts +2 -0
  45. package/src/shared/CometChatUiKit/CometChatUIKit.ts +1 -2
  46. package/src/shared/base/Types.ts +1 -0
  47. package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +114 -32
  48. package/src/shared/formatters/CometChatTextFormatter.ts +1 -0
  49. package/src/shared/formatters/CometChatUrlsFormatter/index.tsx +4 -4
  50. package/src/shared/framework/DataSource.ts +6 -2
  51. package/src/shared/framework/DataSourceDecorator.tsx +5 -4
  52. package/src/shared/framework/MessageDataSource.tsx +26 -28
  53. package/src/shared/helper/types/index.ts +1 -0
  54. package/src/shared/icons/Icon.tsx +1 -1
  55. package/src/shared/index.ts +41 -126
  56. package/src/shared/libs/ImageZoom/ReactNativeZoomableView.tsx +1 -1
  57. package/src/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.tsx +4 -2
  58. package/src/shared/modals/CometChatMessageOption.ts +1 -0
  59. package/src/shared/modals/CometChatMessageTemplate.ts +1 -0
  60. package/src/shared/resources/CometChatSoundManager/index.ts +1 -0
  61. package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.tsx +0 -8
  62. package/src/shared/utils/CometChatMessagePreview/index.ts +1 -2
  63. package/src/shared/utils/CommonUtils.ts +2 -1
  64. package/src/shared/utils/MessageUtils.tsx +54 -62
  65. package/src/shared/utils/conversationUtils.ts +1 -0
  66. package/src/shared/utils/index.ts +1 -2
  67. package/src/shared/views/CometChatActionSheet/ActionItem.ts +1 -0
  68. package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +1 -1
  69. package/src/shared/views/CometChatAudioBubble/AnimatedAudioWaves.tsx +1 -1
  70. package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +9 -6
  71. package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +1 -1
  72. package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +1 -1
  73. package/src/shared/views/CometChatConfirmDialog/style.ts +1 -0
  74. package/src/shared/views/CometChatDeletedBubble/styles.ts +1 -0
  75. package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +1 -1
  76. package/src/shared/views/CometChatList/CometChatList.tsx +2 -2
  77. package/src/shared/views/CometChatList/Header.tsx +1 -1
  78. package/src/shared/views/CometChatMediaRecorder/AnimatingMic.tsx +2 -2
  79. package/src/shared/views/CometChatMediaRecorder/CometChatAudioPreview/CometChatAudioPreview.tsx +16 -10
  80. package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +7 -8
  81. package/src/shared/views/CometChatMessageInput/CometChatMessageInput.tsx +1 -1
  82. package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +84 -70
  83. package/src/shared/views/CometChatReactions/CometChatReactions.tsx +1 -1
  84. package/src/shared/views/CometChatReactions/style.ts +5 -4
  85. package/src/shared/views/CometChatReceipt/style.ts +1 -0
  86. package/src/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.tsx +1 -1
  87. package/src/shared/views/CometChatSuggestionList/style.ts +3 -2
  88. package/src/shared/views/CometChatTooltipMenu/CometChatTooltipMenu.tsx +1 -1
  89. package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +24 -47
  90. package/src/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.tsx +68 -73
  91. package/src/shared/views/ErrorEmptyView/ErrorEmptyView.tsx +1 -0
  92. package/src/theme/CometChatThemeHelper.ts +69 -58
  93. package/src/theme/context.ts +2 -2
  94. package/src/theme/default/default.ts +204 -0
  95. package/src/theme/default/index.ts +0 -238
  96. package/src/theme/provider.tsx +7 -7
  97. package/src/theme/type.ts +5 -7
  98. package/android/.gradle/7.4/checksums/checksums.lock +0 -0
  99. package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
  100. package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  101. package/android/.gradle/7.4/gc.properties +0 -0
  102. package/android/.gradle/vcs-1/gc.properties +0 -0
  103. package/src/shared/utils/CometChatMessagePreview/MessagePreviewStyle.js +0 -42
@@ -1,241 +1,3 @@
1
- import { getCallButtonStyle } from "../../calls/CometChatCallButtons/style";
2
- import { getCallLogsItemStyle, getCallLogsStyleLight, getCallLogsStyleDark } from "../../calls/CometChatCallLogs/style";
3
- import { getIncomingCallStyle } from "../../calls/CometChatIncomingCall/style";
4
- import { getOutgoingCallStyle } from "../../calls/CometChatOutgoingCall";
5
- import {
6
- getConversationStyleDark,
7
- getConversationStyleLight,
8
- } from "../../CometChatConversations/style";
9
- import {
10
- getGroupMemberStyleDark,
11
- getGroupMemberStyleLight,
12
- } from "../../CometChatGroupMembers/style";
13
- import { getGroupListStyleLight, getUserGroupStyleDark } from "../../CometChatGroups/GroupsStyle";
14
- import { getComposerStyle } from "../../CometChatMessageComposer/styles";
15
- import { getMessageHeaderStyle } from "../../CometChatMessageHeader/styles";
16
- import {
17
- getMessageInormationListStyleDark,
18
- getMessageInormationListStyleLight,
19
- } from "../../CometChatMessageInformation/styles";
20
- import {
21
- getMessageListStylesDark,
22
- getMessageListStylesLight,
23
- } from "../../CometChatMessageList/style";
24
- import {
25
- getThreadHeaderStyleDark,
26
- getThreadHeaderStyleLight,
27
- } from "../../CometChatThreadHeader/style";
28
- import { getUserListStyleDark, getUserListStyleLight } from "../../CometChatUsers/style";
29
- import { getAvatarStyle } from "../../shared/views/CometChatAvatar";
30
- import { getBadgeStyle } from "../../shared/views/CometChatBadge";
31
- import {
32
- getConfirmDialogStyleDark,
33
- getConfirmDialogStyleLight,
34
- } from "../../shared/views/CometChatConfirmDialog/style";
35
- import { getDateStyleDark, getDateStyleLight } from "../../shared/views/CometChatDate";
36
- import {
37
- getQuickReactionStyleDark,
38
- getQuickReactionStyleLight,
39
- } from "../../shared/views/CometChatQuickReactions/QuickReactionsStyle";
40
- import {
41
- getReactionListStyleDark,
42
- getReactionListStyleLight,
43
- } from "../../shared/views/CometChatReactionList/ReactionListStyle";
44
- import { getMessageReceiptStyle } from "../../shared/views/CometChatReceipt/style";
45
- import { getStatusIndicatorStyles } from "../../shared/views/CometChatStatusIndicator/styles";
46
- import {
47
- getMentionsListStyleDark,
48
- getMentionsListStyleLight,
49
- } from "../../shared/views/CometChatSuggestionList/style";
50
- import { ActionSheetStyle, CometChatTheme } from "../type";
51
- import { defaultColorDark } from "./color/dark";
52
- import { defaultColorLight } from "./color/light";
53
- import { defaultSpacing } from "./spacing";
54
- import { defaultTypography } from "./typography";
55
- import { DeepPartial } from "../../shared/helper/types";
56
- import { getMediaRecorderStyle } from "../../shared/views/CometChatMediaRecorder/style";
57
- import { getDateSeparatorStyleDark, getDateSeparatorStyleLight } from "../../shared/views/CometChatDateSeperator";
58
-
59
- const getActionSheetStyle = (
60
- color: CometChatTheme["color"],
61
- spacing: CometChatTheme["spacing"],
62
- typography: CometChatTheme["typography"]
63
- ): ActionSheetStyle => {
64
- return {
65
- optionsItemStyle: {
66
- containerStyle: {
67
- paddingVertical: spacing.padding.p3,
68
- paddingHorizontal: spacing.padding.p8,
69
- backgroundColor: color.background1,
70
- flexDirection: "row",
71
- alignItems: "center",
72
- gap: 5,
73
- },
74
- titleStyle: {
75
- ...typography.body.regular,
76
- color: color.textPrimary,
77
- },
78
- iconStyle: {
79
- height: 24,
80
- width: 24,
81
- },
82
- iconContainerStyle: {},
83
- },
84
- };
85
- };
86
-
87
- // const getAttachmentOptionsStyle = (
88
- // color: CometChatTheme["color"],
89
- // spacing: CometChatTheme["spacing"],
90
- // typography: CometChatTheme["typography"]
91
- // ): ActionSheetStyle => {
92
- // return {
93
- // optionsItemStyle: {
94
- // containerStyle: {
95
- // paddingVertical: spacing.padding.p3,
96
- // paddingHorizontal: spacing.padding.p4,
97
- // backgroundColor: color.background1,
98
- // flexDirection: "row",
99
- // alignItems: "center",
100
- // gap: 5,
101
- // },
102
- // titleStyle: {
103
- // ...typography.body.regular,
104
- // color: color.textPrimary,
105
- // paddingLeft: spacing.padding.p1,
106
- // },
107
- // iconStyle: {
108
- // height: 24,
109
- // width: 24,
110
- // },
111
- // iconContainerStyle: {},
112
- // },
113
- // };
114
- // };
115
-
116
- const getAIOptionsStyle = (
117
- color: CometChatTheme["color"],
118
- spacing: CometChatTheme["spacing"],
119
- typography: CometChatTheme["typography"]
120
- ): ActionSheetStyle => {
121
- return {
122
- optionsItemStyle: {
123
- containerStyle: {
124
- padding: spacing.padding.p4,
125
- backgroundColor: color.background1,
126
- flexDirection: "row",
127
- alignItems: "center",
128
- gap: 5,
129
- },
130
- titleStyle: {
131
- ...typography.body.regular,
132
- color: color.textPrimary,
133
- paddingLeft: spacing.padding.p1,
134
- },
135
- iconStyle: {
136
- height: 24,
137
- width: 24,
138
- },
139
- iconContainerStyle: {},
140
- },
141
- };
142
- };
143
-
144
- export const lightThemeMaker = (
145
- spacing: CometChatTheme["spacing"],
146
- color: CometChatTheme["color"],
147
- typography: CometChatTheme["typography"]
148
- ): DeepPartial<CometChatTheme> => {
149
- return {
150
- mode:'light',
151
- spacing: spacing,
152
- color: color,
153
- typography: typography,
154
- avatarStyle: getAvatarStyle(color, spacing, typography),
155
- receiptStyles: getMessageReceiptStyle(color, spacing, typography),
156
- statusIndicatorStyle: getStatusIndicatorStyles(color, spacing, typography),
157
- badgeStyle: getBadgeStyle(color, spacing, typography),
158
- dateStyles: getDateStyleLight(color, spacing, typography),
159
- dateSeparatorStyles: getDateSeparatorStyleLight(color, spacing, typography),
160
- conversationStyles: getConversationStyleLight(color, spacing, typography),
161
- confirmDialogStyles: getConfirmDialogStyleLight(color, spacing, typography),
162
- messageHeaderStyles: getMessageHeaderStyle(color, spacing, typography),
163
- messageComposerStyles: getComposerStyle(color, spacing, typography),
164
- userStyles: getUserListStyleLight(color, spacing, typography),
165
- groupStyles: getGroupListStyleLight(color, spacing, typography),
166
- groupMemberStyle: getGroupMemberStyleLight(color, spacing, typography),
167
- callButtonStyles: getCallButtonStyle(color, spacing, typography),
168
- messageListStyles: getMessageListStylesLight(color, spacing, typography),
169
- reactionListStyles: getReactionListStyleLight(color, spacing, typography),
170
- messageInformationStyles: getMessageInormationListStyleLight(color, spacing, typography),
171
- //messageOptionsStyles: getMessageOptionsStyle(color, spacing, typography),
172
- //attachmentOptionsStyles: getAttachmentOptionsStyle(color, spacing, typography),
173
- actionSheetStyle: getActionSheetStyle(color, spacing, typography),
174
- mentionsListStyle: getMentionsListStyleLight(color, spacing, typography),
175
- threadHeaderStyles: getThreadHeaderStyleLight(color, spacing, typography),
176
- aiOptionsStyle: getAIOptionsStyle(color, spacing, typography),
177
- quickReactionStyle: getQuickReactionStyleLight(color, spacing, typography),
178
- outgoingCallStyle: getOutgoingCallStyle(color, spacing, typography),
179
- incomingCallStyle: getIncomingCallStyle(color, spacing, typography),
180
- callLogsStyles: getCallLogsStyleLight(color, spacing, typography),
181
- callLogsItemStyle: getCallLogsItemStyle(color, spacing, typography),
182
- mediaRecorderStyle: getMediaRecorderStyle(color, spacing, typography),
183
- };
184
- };
185
-
186
- export const darkThemeMaker = (
187
- spacing: CometChatTheme["spacing"],
188
- color: CometChatTheme["color"],
189
- typography: CometChatTheme["typography"]
190
- ): DeepPartial<CometChatTheme> => {
191
- return {
192
- mode:'dark',
193
- spacing: spacing,
194
- color: color,
195
- typography: typography,
196
- avatarStyle: getAvatarStyle(color, spacing, typography),
197
- receiptStyles: getMessageReceiptStyle(color, spacing, typography),
198
- statusIndicatorStyle: getStatusIndicatorStyles(color, spacing, typography),
199
- badgeStyle: getBadgeStyle(color, spacing, typography),
200
- dateStyles: getDateStyleDark(color, spacing, typography),
201
- dateSeparatorStyles: getDateSeparatorStyleDark(color, spacing, typography),
202
- conversationStyles: getConversationStyleDark(color, spacing, typography),
203
- confirmDialogStyles: getConfirmDialogStyleDark(color, spacing, typography),
204
- messageHeaderStyles: getMessageHeaderStyle(color, spacing, typography),
205
- messageComposerStyles: getComposerStyle(color, spacing, typography),
206
- userStyles: getUserListStyleDark(color, spacing, typography),
207
- groupMemberStyle: getGroupMemberStyleDark(color, spacing, typography),
208
- groupStyles: getUserGroupStyleDark(color, spacing, typography),
209
- callButtonStyles: getCallButtonStyle(color, spacing, typography),
210
- messageListStyles: getMessageListStylesDark(color, spacing, typography),
211
- reactionListStyles: getReactionListStyleDark(color, spacing, typography),
212
- messageInformationStyles: getMessageInormationListStyleDark(color, spacing, typography),
213
- //messageOptionsStyles: getMessageOptionsStyle(color, spacing, typography),
214
- //attachmentOptionsStyles: getAttachmentOptionsStyle(color, spacing, typography),
215
- actionSheetStyle: getActionSheetStyle(color, spacing, typography),
216
- mentionsListStyle: getMentionsListStyleDark(color, spacing, typography),
217
- threadHeaderStyles: getThreadHeaderStyleDark(color, spacing, typography),
218
- aiOptionsStyle: getAIOptionsStyle(color, spacing, typography),
219
- quickReactionStyle: getQuickReactionStyleDark(color, spacing, typography),
220
- outgoingCallStyle: getOutgoingCallStyle(color, spacing, typography),
221
- incomingCallStyle: getIncomingCallStyle(color, spacing, typography),
222
- callLogsStyles: getCallLogsStyleDark(color, spacing, typography),
223
- callLogsItemStyle: getCallLogsItemStyle(color, spacing, typography),
224
- mediaRecorderStyle: getMediaRecorderStyle(color, spacing, typography),
225
- };
226
- };
227
-
228
- export const defaultLightTheme: DeepPartial<CometChatTheme> = lightThemeMaker(
229
- defaultSpacing,
230
- defaultColorLight,
231
- defaultTypography
232
- );
233
- export const defaultDarkTheme: DeepPartial<CometChatTheme> = darkThemeMaker(
234
- defaultSpacing,
235
- defaultColorDark,
236
- defaultTypography
237
- );
238
-
239
1
  export * from "./color/dark";
240
2
  export * from "./color/light";
241
3
  export * from "./spacing";
@@ -13,7 +13,7 @@ import {
13
13
  ThemeContext,
14
14
  ThemeProviderValue,
15
15
  } from "./context";
16
- import { darkThemeMaker, lightThemeMaker } from "./default";
16
+ import { darkThemeMaker, lightThemeMaker } from "./default/default";
17
17
  import { useThemeInternal } from "./hook";
18
18
  import { CometChatTheme } from "./type";
19
19
 
@@ -39,7 +39,7 @@ function useDebounce<T>(value: T, delay: number): T {
39
39
 
40
40
  export const CometChatThemeProvider = ({
41
41
  children,
42
- theme = {},
42
+ theme = {} as any,
43
43
  }: PropsWithChildren<CometChatThemeProviderProps>) => {
44
44
  const rawScheme = useColorScheme();
45
45
  // For iOS, debounce the scheme value (300ms delay in this example).
@@ -61,10 +61,10 @@ export const CometChatThemeProvider = ({
61
61
  light.color as Partial<CometChatTheme["color"]>,
62
62
  Brightness.LIGHT
63
63
  )
64
- : {};
64
+ : {} as any;
65
65
  const updatedSpacing = light.spacing
66
66
  ? CometChatThemeHelper.updateSpacing(light.spacing)
67
- : {};
67
+ : {} as any;
68
68
  light.color = updatedColors;
69
69
  light.spacing = updatedSpacing;
70
70
  const mergedTheme = deepMerge(parentProviderTheme.light, light);
@@ -85,10 +85,10 @@ export const CometChatThemeProvider = ({
85
85
  dark.color as Partial<CometChatTheme["color"]>,
86
86
  Brightness.DARK
87
87
  )
88
- : {};
88
+ : {} as any;
89
89
  const updatedSpacing = dark.spacing
90
90
  ? CometChatThemeHelper.updateSpacing(dark.spacing)
91
- : {};
91
+ : {} as any;
92
92
  dark.color = updatedColors;
93
93
  dark.spacing = updatedSpacing;
94
94
  const mergedTheme = deepMerge(parentProviderTheme.dark, dark);
@@ -125,7 +125,7 @@ export interface CometChatCompThemeProviderProps {
125
125
 
126
126
  export const CometChatCompThemeProvider = ({
127
127
  children,
128
- theme = {},
128
+ theme = {} as any,
129
129
  }: PropsWithChildren<CometChatCompThemeProviderProps>) => {
130
130
  return (
131
131
  <CompThemeContext.Provider value={theme}>
package/src/theme/type.ts CHANGED
@@ -21,6 +21,7 @@ import { CallActionBubbleStyles } from "../calls/CometChatCallBubble/styles";
21
21
  import { CallLogsItemStyle, CallLogsStyle } from "../calls/CometChatCallLogs/style";
22
22
  import { DeepPartial } from "../shared/helper/types";
23
23
  import { DateSeparatorStyle } from "../shared/views/CometChatDateSeperator/styles";
24
+ import { JSX } from "react";
24
25
 
25
26
  export type BubbleStyles = {
26
27
  containerStyle: ViewStyle;
@@ -67,7 +68,6 @@ export type SuggestionListStyle = {
67
68
  speed: number;
68
69
  };
69
70
  };
70
-
71
71
  export interface CometChatTheme {
72
72
  mode: string;
73
73
  spacing: Spacing;
@@ -90,7 +90,7 @@ export interface CometChatTheme {
90
90
 
91
91
  messageHeaderStyles: MessageHeaderStyle;
92
92
  callButtonStyles: CallButtonStyle;
93
- deletedBubbleStyles: DeletedBubbleStyle;
93
+ deletedBubbleStyles?: DeletedBubbleStyle;
94
94
  messageComposerStyles: DeepPartial<MessageComposerStyle>;
95
95
  userStyles: UserStyle;
96
96
  groupStyles: GroupStyle;
@@ -240,9 +240,7 @@ export interface CometChatTheme {
240
240
  dateSeparatorStyles: DateSeparatorStyle;
241
241
  mentionsStyle?: {
242
242
  textStyle: TextStyle;
243
- //textContainerStyle: ViewStyle; //alignment issue in bubble
244
243
  selfTextStyle: TextStyle;
245
- //selfTextContainerStyle: ViewStyle;
246
244
  };
247
245
  imageBubbleStyles?: {
248
246
  containerStyle: ViewStyle;
@@ -332,7 +330,7 @@ export interface CometChatTheme {
332
330
  iconContainerStyle?: ViewStyle;
333
331
  dividerStyle?: ViewStyle;
334
332
  };
335
- meetCallBubbleStyles: GroupCallBubbleStyles;
333
+ meetCallBubbleStyles?: GroupCallBubbleStyles;
336
334
  textBubbleStyles?: {
337
335
  containerStyle: ViewStyle;
338
336
  threadedMessageStyle: CometChatTheme["threadedMessageStyles"];
@@ -379,12 +377,12 @@ export interface CometChatTheme {
379
377
  activeProgressBarTint: ColorValue;
380
378
  voteravatarStyle: CometChatTheme["avatarStyle"];
381
379
  };
382
- groupActionBubbleStyles: {
380
+ groupActionBubbleStyles?: {
383
381
  containerStyle: ViewStyle;
384
382
  textStyle: TextStyle;
385
383
  textContainerStyle?: ViewStyle;
386
384
  };
387
- linkPreviewBubbleStyles: {
385
+ linkPreviewBubbleStyles?: {
388
386
  containerStyle: ViewStyle;
389
387
  threadedMessageStyle?: CometChatTheme["threadedMessageStyles"];
390
388
  avatarStyle?: CometChatTheme["avatarStyle"];
File without changes
File without changes
@@ -1,42 +0,0 @@
1
- import { BaseStyle, BorderStyle } from "../../base";
2
- /**
3
- * @class MessagePreviewStyle
4
- * @param {String} border
5
- * @param {String} background
6
- * @param {String} messagePreviewTitleFont
7
- * @param {String} messagePreviewTitleColor
8
- * @param {String} messagePreviewSubtitleColor
9
- * @param {String} messagePreviewSubtitleFont
10
- * @param {String} closeIconTint
11
- */
12
-
13
- class MessagePreviewStyle extends BaseStyle {
14
- constructor({
15
- messagePreviewTitleFont = {},
16
- messagePreviewTitleColor = "",
17
- messagePreviewSubtitleColor = "",
18
- messagePreviewSubtitleFont = {},
19
- closeIconTint = "",
20
-
21
- width = "100%",
22
- height = "auto",
23
- backgroundColor = "",
24
- border = new BorderStyle({}),
25
- borderRadius = 0,
26
- }) {
27
- super({
28
- width,
29
- height,
30
- backgroundColor,
31
- border,
32
- borderRadius,
33
- });
34
-
35
- this.messagePreviewTitleFont = messagePreviewTitleFont;
36
- this.messagePreviewTitleColor = messagePreviewTitleColor;
37
- this.messagePreviewSubtitleColor = messagePreviewSubtitleColor;
38
- this.messagePreviewSubtitleFont = messagePreviewSubtitleFont;
39
- this.closeIconTint = closeIconTint;
40
- }
41
- }
42
- export { MessagePreviewStyle };