@cometchat/chat-uikit-react-native 4.3.21 → 4.3.22-t1
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.
- package/package.json +1 -1
- package/src/AI/AIConversationSummary/AIConversationSummaryView.tsx +171 -167
- package/src/AI/CardView.tsx +55 -53
- package/src/CometChatCreateGroup/CometChatCreateGroup.tsx +8 -13
- package/src/CometChatGroups/CometChatGroups.tsx +545 -514
- package/src/CometChatJoinProtectedGroup/CometChatJoinProtectedGroup.tsx +5 -8
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +544 -378
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +103 -78
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +3 -8
- package/src/CometChatTransferOwnership/CometChatTransferOwnership.tsx +11 -13
- package/src/CometChatUsers/CometChatUsers.tsx +24 -23
- package/src/extensions/CollaborativeBubble/CometChatCollaborativeBubble.tsx +24 -25
- package/src/extensions/Polls/Polls.tsx +8 -16
- package/src/extensions/Polls/PollsBubble.tsx +5 -10
- package/src/extensions/SmartReplies/SmartRepliesView.tsx +16 -22
- package/src/extensions/Stickers/CometChatStickerKeyboard/CometChatStickerKeyboard.tsx +51 -51
- package/src/shared/libs/datePickerModal/DateTimePickerModal.android.js +1 -7
- package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.js +38 -46
- package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +19 -19
- package/src/shared/views/CometChatAvatar/CometChatAvatar.tsx +8 -20
- package/src/shared/views/CometChatBadge/CometChatBadge.tsx +8 -14
- package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +141 -140
- package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +47 -51
- package/src/shared/views/CometChatDate/CometChatDate.tsx +18 -17
- package/src/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.tsx +65 -51
- package/src/shared/views/CometChatEmojiKeyboard/CometChatEmojiKeyboard.tsx +76 -72
- package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +3 -8
- package/src/shared/views/CometChatList/CometChatList.tsx +133 -134
- package/src/shared/views/CometChatListItem/CometChatListItem.tsx +65 -64
- package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +2 -6
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +3 -8
- package/src/shared/views/CometChatMessageInput/CometChatMessageInput.tsx +24 -23
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +107 -53
- package/src/shared/views/CometChatReceipt/CometChatReceipt.tsx +22 -14
- package/src/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.tsx +15 -8
- package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +2 -6
- package/src/shared/views/SwipeRow/SwipeRow.tsx +6 -14
|
@@ -126,19 +126,20 @@ export const CometChatJoinProtectedGroup = (
|
|
|
126
126
|
) => {
|
|
127
127
|
const { theme } = useContext<CometChatContextType>(CometChatContext);
|
|
128
128
|
const {
|
|
129
|
-
group,
|
|
130
129
|
title = localize("PROTECTED_GROUP"),
|
|
131
130
|
joinIcon,
|
|
132
131
|
closeIcon,
|
|
133
132
|
passwordPlaceholderText = localize("GROUP_PASSWORD"),
|
|
134
133
|
description,
|
|
135
134
|
onJoinClick,
|
|
136
|
-
hasError,
|
|
137
135
|
errorText,
|
|
138
136
|
onError,
|
|
139
137
|
onBack,
|
|
140
|
-
|
|
138
|
+
hasError= true,
|
|
139
|
+
joinProtectedGroupStyle= {},
|
|
140
|
+
group= undefined
|
|
141
141
|
} = props;
|
|
142
|
+
|
|
142
143
|
const [password, setPassword] = useState('');
|
|
143
144
|
const [modalVisible, setModalVisible] = useState(false);
|
|
144
145
|
const [errorMessage, setErrorMessage] = useState('');
|
|
@@ -238,7 +239,7 @@ export const CometChatJoinProtectedGroup = (
|
|
|
238
239
|
joinProtectedGroupStyle?.descriptionTextStyle ??
|
|
239
240
|
theme.typography.subtitle1,
|
|
240
241
|
{ color: theme.palette.getAccent() },
|
|
241
|
-
] as TextStyle}
|
|
242
|
+
] as TextStyle[]}
|
|
242
243
|
>
|
|
243
244
|
{description ?? `Enter password to access ${group?.['name']} Group.`}
|
|
244
245
|
</Text>
|
|
@@ -265,7 +266,3 @@ export const CometChatJoinProtectedGroup = (
|
|
|
265
266
|
</View>
|
|
266
267
|
);
|
|
267
268
|
};
|
|
268
|
-
CometChatJoinProtectedGroup.defaultProps = {
|
|
269
|
-
hasError: true,
|
|
270
|
-
joinProtectedGroupStyle: {},
|
|
271
|
-
};
|