@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.
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/package.json +1 -1
- package/src/CometChatConversations/CometChatConversations.tsx +19 -25
- package/src/CometChatGroups/CometChatGroups.tsx +2 -2
- package/src/CometChatGroups/GroupsConfiguration.ts +13 -16
- package/src/CometChatGroups/resources/index.ts +0 -3
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +6 -2
- package/src/CometChatMessageInformation/MessageInformationConfiguration.tsx +31 -12
- package/src/CometChatMessageInformation/index.ts +6 -3
- package/src/CometChatMessageList/CometChatMessageList.tsx +24 -9
- package/src/CometChatMessageList/MessageListConfiguration.ts +21 -0
- package/src/CometChatTabs/CometChatTabs.tsx +8 -8
- package/src/CometChatThreadedMessages/CometChatThreadedMessages.tsx +2 -1
- package/src/CometChatUsers/CometChatUsers.tsx +40 -11
- package/src/CometChatUsers/UsersConfiguration.tsx +2 -2
- package/src/CometChatUsers/UsersStyle.ts +101 -0
- package/src/CometChatUsers/index.ts +4 -1
- package/src/extensions/LinkPreview/LinkPreviewBubble.tsx +1 -1
- package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +1 -1
- package/src/extensions/SmartReplies/SmartRepliesDecorator.tsx +11 -6
- package/src/index.ts +8 -2
- package/src/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.ts +53 -53
- package/src/shared/framework/MessageDataSource.tsx +1 -1
- package/src/shared/libs/ImageZoom/ReactNativeZoomableView.tsx +1 -0
- package/src/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.tsx +1 -1
- package/src/shared/libs/VideoPlayerControls/components/Control.tsx +1 -1
- package/src/shared/libs/VideoPlayerControls/components/PlayPause/PlayPause.tsx +1 -1
- package/src/shared/libs/luxon/src/impl/zoneUtil.js +0 -4
- package/src/shared/utils/CommonUtils.ts +15 -15
- package/src/shared/utils/InteractiveMessageUtils.ts +1 -1
- package/src/shared/views/CometChatActionSheet/ActionSheetStyle.ts +10 -12
- package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +1 -1
- package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +2 -2
- package/src/shared/views/CometChatFormBubble/CometChatFormBubble.tsx +1 -1
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +3 -3
- package/src/shared/views/CometChatImageBubble/assets/index.ts +1 -0
- package/src/shared/views/CometChatMessageBubble/MessageBubbleStyle.ts +2 -2
- package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +0 -1
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +5 -5
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +1 -1
- 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
|
-
|
|
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[
|
|
449
|
-
newQuickObj[
|
|
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(
|
|
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
|
|
|
Binary file
|