stream-chat-react-native-core 9.0.0-beta.32 → 9.0.0-beta.33
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/lib/commonjs/components/Channel/Channel.js +0 -3
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +0 -2
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListView.js +6 -6
- package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +3 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +9 -9
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +13 -13
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +2 -35
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/PLAN.md +15 -15
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +14 -13
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +30 -22
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +0 -3
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +0 -2
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListView.js +6 -6
- package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +3 -3
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +9 -9
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js +13 -13
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +2 -35
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/PLAN.md +15 -15
- package/lib/module/contexts/componentsContext/defaultComponents.js +14 -13
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +30 -22
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelListView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +0 -5
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +2 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +14 -13
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +15 -13
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +0 -8
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts +7 -0
- package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/offline-support/offline-feature.js +2 -2
- package/src/components/Channel/Channel.tsx +0 -3
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +0 -2
- package/src/components/ChannelList/ChannelListView.tsx +6 -5
- package/src/components/ChannelList/__tests__/ChannelList.test.js +35 -35
- package/src/components/ChannelPreview/ChannelPreview.tsx +3 -3
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +11 -8
- package/src/components/ChannelPreview/ChannelPreviewView.tsx +17 -13
- package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +2 -2
- package/src/components/MessageList/__tests__/MessageList.test.js +1 -130
- package/src/components/MessageList/hooks/useMessageList.ts +1 -41
- package/src/contexts/channelsContext/ChannelsContext.tsx +2 -1
- package/src/contexts/componentsContext/PLAN.md +15 -15
- package/src/contexts/componentsContext/__tests__/defaultComponents.test.ts +1 -0
- package/src/contexts/componentsContext/defaultComponents.ts +15 -13
- package/src/contexts/messagesContext/MessagesContext.tsx +0 -9
- package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +36 -16
- package/src/contexts/overlayContext/__tests__/MessageOverlayHostLayer.test.tsx +59 -1
- package/src/version.json +1 -1
package/lib/module/version.json
CHANGED
|
@@ -23,7 +23,7 @@ export type MarkReadFunctionOptions = {
|
|
|
23
23
|
updateChannelUnreadState?: boolean;
|
|
24
24
|
};
|
|
25
25
|
export declare const reactionData: ReactionData[];
|
|
26
|
-
export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> & Partial<Pick<AttachmentPickerContextValue, 'bottomInset' | 'topInset' | 'disableAttachmentPicker' | 'numberOfAttachmentPickerImageColumns' | 'numberOfAttachmentImagesToLoadPerCall'>> & Partial<Pick<ChannelContextValue, 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'maxTimeBetweenGroupedMessages' | 'maximumMessageLimit'>> & Pick<ChatContextValue, 'client' | 'enableOfflineSupport' | 'isOnline'> & Partial<Pick<InputMessageInputContextValue, 'additionalTextInputProps' | 'allowSendBeforeAttachmentsUpload' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'audioRecordingSendOnComplete' | 'asyncMessagesSlideToCancelDistance' | 'attachmentPickerBottomSheetHeight' | 'attachmentSelectionBarHeight' | 'audioRecordingEnabled' | 'compressImageQuality' | 'createPollOptionGap' | 'doFileUploadRequest' | 'handleAttachButtonPress' | 'hasCameraPicker' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'messageInputFloating' | 'openPollCreationDialog' | 'setInputRef'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & Pick<UseChannelStateValue, 'threadMessages' | 'setThreadMessages'> & Partial<Pick<MessagesContextValue, 'additionalPressableProps' | 'customMessageSwipeAction' | '
|
|
26
|
+
export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> & Partial<Pick<AttachmentPickerContextValue, 'bottomInset' | 'topInset' | 'disableAttachmentPicker' | 'numberOfAttachmentPickerImageColumns' | 'numberOfAttachmentImagesToLoadPerCall'>> & Partial<Pick<ChannelContextValue, 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'maxTimeBetweenGroupedMessages' | 'maximumMessageLimit'>> & Pick<ChatContextValue, 'client' | 'enableOfflineSupport' | 'isOnline'> & Partial<Pick<InputMessageInputContextValue, 'additionalTextInputProps' | 'allowSendBeforeAttachmentsUpload' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'audioRecordingSendOnComplete' | 'asyncMessagesSlideToCancelDistance' | 'attachmentPickerBottomSheetHeight' | 'attachmentSelectionBarHeight' | 'audioRecordingEnabled' | 'compressImageQuality' | 'createPollOptionGap' | 'doFileUploadRequest' | 'handleAttachButtonPress' | 'hasCameraPicker' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'messageInputFloating' | 'openPollCreationDialog' | 'setInputRef'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & Pick<UseChannelStateValue, 'threadMessages' | 'setThreadMessages'> & Partial<Pick<MessagesContextValue, 'additionalPressableProps' | 'customMessageSwipeAction' | 'disableTypingIndicator' | 'dismissKeyboardOnMessageTouch' | 'enableSwipeToReply' | 'urlPreviewType' | 'FlatList' | 'forceAlignMessages' | 'getMessageGroupStyle' | 'giphyVersion' | 'handleBan' | 'handleCopy' | 'handleDelete' | 'handleDeleteForMe' | 'handleEdit' | 'handleFlag' | 'handleMarkUnread' | 'handleMute' | 'handlePinMessage' | 'handleReaction' | 'handleQuotedReply' | 'handleRetry' | 'handleThreadReply' | 'handleBlockUser' | 'isAttachmentEqual' | 'markdownRules' | 'messageActions' | 'messageContentOrder' | 'messageTextNumberOfLines' | 'messageSwipeToReplyHitSlop' | 'myMessageTheme' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'reactionListPosition' | 'reactionListType' | 'shouldShowUnreadUnderlay' | 'selectReaction' | 'supportedReactions' | 'hasCreatePoll'>> & Partial<Pick<MessageContextValue, 'isMessageAIGenerated'>> & Partial<Pick<ThreadContextValue, 'allowThreadMessagesInChannel' | 'onAlsoSentToChannelHeaderPress'>> & {
|
|
27
27
|
shouldSyncChannel: boolean;
|
|
28
28
|
thread: ThreadType;
|
|
29
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAOpG,OAAO,EAGL,OAAO,IAAI,WAAW,EAGtB,YAAY,EAKZ,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EAEV,OAAO,IAAI,aAAa,EAExB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAmBrB,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AAKxE,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAG1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EACL,6BAA6B,EAE9B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,2BAA2B,EAE5B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,gCAAgC,EAEjC,MAAM,wEAAwE,CAAC;AAEhF,OAAO,EACL,kBAAkB,EAElB,UAAU,EACX,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAa9D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAOhD,OAAO,EAKL,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AAK5G,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAAY,EA8BtC,CAAC;AAoBF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GACxE,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,aAAa,GACb,UAAU,GACV,yBAAyB,GACzB,sCAAsC,GACtC,uCAAuC,CAC1C,CACF,GACD,OAAO,CACL,IAAI,CACF,mBAAmB,EACjB,6BAA6B,GAC7B,uBAAuB,GACvB,sBAAsB,GACtB,oBAAoB,GACpB,+BAA+B,GAC/B,qBAAqB,CACxB,CACF,GACD,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,sBAAsB,GAAG,UAAU,CAAC,GACtE,OAAO,CACL,IAAI,CACF,6BAA6B,EAC3B,0BAA0B,GAC1B,kCAAkC,GAClC,2BAA2B,GAC3B,mCAAmC,GACnC,8BAA8B,GAC9B,oCAAoC,GACpC,mCAAmC,GACnC,8BAA8B,GAC9B,uBAAuB,GACvB,sBAAsB,GACtB,qBAAqB,GACrB,qBAAqB,GACrB,yBAAyB,GACzB,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,sBAAsB,GACtB,wBAAwB,GACxB,aAAa,CAChB,CACF,GACD,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAClC,OAAO,CACL,IAAI,CAAC,gCAAgC,EAAE,UAAU,GAAG,aAAa,GAAG,mBAAmB,CAAC,CACzF,GACD,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,GAClE,OAAO,CACL,IAAI,CACF,oBAAoB,EAClB,0BAA0B,GAC1B,0BAA0B,GAC1B
|
|
1
|
+
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAOp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C;;OAEG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,gBAAgB,CAAC,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C,uBAAuB,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC/D;;;OAGG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;;OASG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AA02CJ,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC,GACrF,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,GAAG;IACzC,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,sBAwC7D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
2
|
-
export declare const useCreateMessagesContext: ({ additionalPressableProps, channelId, customMessageSwipeAction,
|
|
2
|
+
export declare const useCreateMessagesContext: ({ additionalPressableProps, channelId, customMessageSwipeAction, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, enableSwipeToReply, FlatList, forceAlignMessages, getMessageGroupStyle, giphyVersion, handleBan, handleCopy, handleDelete, handleDeleteForMe, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, handleBlockUser, hasCreatePoll, initialScrollToFirstUnreadMessage, isAttachmentEqual, isMessageAIGenerated, markdownRules, messageActions, messageContentOrder, messageSwipeToReplyHitSlop, messageTextNumberOfLines, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, reactionListPosition, reactionListType, removeMessage, retrySendMessage, selectReaction, sendReaction, shouldShowUnreadUnderlay, supportedReactions, targetedMessage, updateMessage, urlPreviewType, }: MessagesContextValue & {
|
|
3
3
|
/**
|
|
4
4
|
* To ensure we allow re-render, when channel is changed
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,i7BAoDtC,oBAAoB,GAAG;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,yBA4EA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelListView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AASxD,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,oBAAoB,EACpB,gBAAgB,GAAG,mBAAmB,GAAG,UAAU,CACpD,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelListView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AASxD,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,oBAAoB,EACpB,gBAAgB,GAAG,mBAAmB,GAAG,UAAU,CACpD,CAAC;AAyIF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,eAAe;YAAW,oBAAoB;;CAuC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelPreviewMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAiBhE,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC9E,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ChannelPreviewMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAiBhE,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC9E,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,0BAA0B,sBA4FtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelPreviewView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAOxD,MAAM,MAAM,kCAAkC,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GACnF,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,UAAU,GAAG,qBAAqB,CAAC,GAAG;IAClF;;;;;;;;OAQG;IACH,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IACjD,+BAA+B;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelPreviewView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAOxD,MAAM,MAAM,kCAAkC,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GACnF,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,UAAU,GAAG,qBAAqB,CAAC,GAAG;IAClF;;;;;;;;OAQG;IACH,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IACjD,+BAA+B;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,CAAC;AAwGJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,SAAS,CAAC,CAAC,GAChG,IAAI,CAAC,kCAAkC,EAAE,SAAS,CAAC,CAAC;AAMtD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;YAAW,uBAAuB;;CAahE,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { LocalMessage } from 'stream-chat';
|
|
2
|
-
import { DeletedMessagesVisibilityType } from '../../../contexts/messagesContext/MessagesContext';
|
|
3
2
|
export type UseMessageListParams = {
|
|
4
3
|
threadList?: boolean;
|
|
5
4
|
isLiveStreaming?: boolean;
|
|
@@ -12,10 +11,6 @@ export type GroupType = string;
|
|
|
12
11
|
export type MessageGroupStyles = {
|
|
13
12
|
[key: string]: string[];
|
|
14
13
|
};
|
|
15
|
-
export declare const shouldIncludeMessageInList: (message: LocalMessage, options: {
|
|
16
|
-
deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;
|
|
17
|
-
userId?: string;
|
|
18
|
-
}) => boolean;
|
|
19
14
|
export declare const useMessageList: (params: UseMessageListParams) => {
|
|
20
15
|
/** Messages enriched with dates/readby/groups and also reversed in order */
|
|
21
16
|
processedMessageList: LocalMessage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useMessageList.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useMessageList.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,oBAAoB;IAsBrD,4EAA4E;;IAE5E,0CAA0C;;;CAM/C,CAAC"}
|
|
@@ -44,7 +44,8 @@ export type ChannelsContextValue = {
|
|
|
44
44
|
*/
|
|
45
45
|
loadingChannels: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* Whether or not additional channels are being loaded, triggers the
|
|
47
|
+
* Whether or not additional channels are being loaded, triggers the
|
|
48
|
+
* ChannelListFooterLoadingIndicator
|
|
48
49
|
*/
|
|
49
50
|
loadingNextPage: boolean;
|
|
50
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelsContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsContext/ChannelsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,K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;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;SAGK;IACL,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC;;SAEK;IACL,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAOhC;;;;;;;;;;;OAWG;IACH,cAAc,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,mBAAmB,CAAC,EAAE,gBAAgB,GAAG,aAAa,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,eAAe,qCAE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,sBAG9B,iBAAiB,CAAC;IACnB,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC,sBAID,CAAC;AAEF,eAAO,MAAM,kBAAkB,4BAU9B,CAAC"}
|
|
@@ -95,7 +95,7 @@ export declare const useComponentsContext: () => Required<Partial<{
|
|
|
95
95
|
(props: import("../../components/Attachment/FilePreview").FilePreviewProps): React.JSX.Element;
|
|
96
96
|
displayName: string;
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
ChannelListFooterLoadingIndicator: {
|
|
99
99
|
(): React.JSX.Element;
|
|
100
100
|
displayName: string;
|
|
101
101
|
};
|
|
@@ -107,11 +107,11 @@ export declare const useComponentsContext: () => Required<Partial<{
|
|
|
107
107
|
(props: import("../..").GiphyProps): React.JSX.Element;
|
|
108
108
|
displayName: string;
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
ChannelListHeaderErrorIndicator: {
|
|
111
111
|
({ onPress }: import("../..").HeaderErrorProps): React.JSX.Element;
|
|
112
112
|
displayName: string;
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
ChannelListHeaderNetworkDownIndicator: {
|
|
115
115
|
(): React.JSX.Element;
|
|
116
116
|
displayName: string;
|
|
117
117
|
};
|
|
@@ -196,19 +196,19 @@ export declare const useComponentsContext: () => Required<Partial<{
|
|
|
196
196
|
MessageUserReactionsAvatar: (props: import("../..").MessageUserReactionsAvatarProps) => React.JSX.Element;
|
|
197
197
|
MessageUserReactionsItem: ({ reaction, supportedReactions, }: import("../../components/MessageMenu/MessageUserReactionsItem").MessageUserReactionsItemProps) => React.JSX.Element;
|
|
198
198
|
NetworkDownIndicator: () => React.JSX.Element | null;
|
|
199
|
-
|
|
199
|
+
ChannelPreview: {
|
|
200
200
|
(props: import("../..").ChannelPreviewViewProps): React.JSX.Element;
|
|
201
201
|
displayName: string;
|
|
202
202
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
203
|
+
ChannelPreviewAvatar: (props: import("../..").ChannelAvatarProps) => React.JSX.Element;
|
|
204
|
+
ChannelPreviewLastMessage: ({ message }: import("../..").ChannelLastMessagePreviewProps) => React.JSX.Element;
|
|
205
|
+
ChannelPreviewMessage: (props: import("../..").ChannelPreviewMessageProps) => React.JSX.Element;
|
|
206
|
+
ChannelPreviewMessageDeliveryStatus: ({ channel, message, }: import("../..").ChannelMessagePreviewDeliveryStatusProps) => React.JSX.Element | null;
|
|
207
|
+
ChannelPreviewMutedStatus: () => React.JSX.Element;
|
|
208
|
+
ChannelPreviewStatus: (props: import("../..").ChannelPreviewStatusProps) => React.JSX.Element;
|
|
209
|
+
ChannelPreviewTitle: ({ channel, title }: import("../..").ChannelPreviewTitleProps) => React.JSX.Element;
|
|
210
|
+
ChannelPreviewTypingIndicator: ({ usersTyping, channel, }: import("../..").ChannelPreviewTypingIndicatorProps) => React.JSX.Element;
|
|
211
|
+
ChannelPreviewUnreadCount: (props: import("../..").ChannelPreviewUnreadCountProps) => React.JSX.Element | null;
|
|
212
212
|
ReactionListBottom: (props: import("../..").ReactionListBottomProps) => React.JSX.Element | null;
|
|
213
213
|
ReactionListClustered: (props: import("../..").ReactionListClusteredProps) => React.JSX.Element;
|
|
214
214
|
ReactionListCountItem: (props: import("../..").ReactionListCountItemProps) => React.JSX.Element | null;
|
|
@@ -307,6 +307,7 @@ export declare const useComponentsContext: () => Required<Partial<{
|
|
|
307
307
|
AttachmentPickerIOSSelectMorePhotos: React.ComponentType<any> | undefined;
|
|
308
308
|
ChatLoadingIndicator: React.ComponentType<any> | null | undefined;
|
|
309
309
|
CreatePollContent: React.ComponentType<any> | undefined;
|
|
310
|
+
MessageActions: React.ComponentType<import("../overlayContext/MessageOverlayHostLayer").MessageActionsProps> | undefined;
|
|
310
311
|
Input: React.ComponentType<any> | undefined;
|
|
311
312
|
ListHeaderComponent: React.ComponentType<any> | undefined;
|
|
312
313
|
MessageContentBottomView: React.ComponentType<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentsContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/componentsContext/ComponentsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACtC,CAAC,cAAc,qBAAqB,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAC7D,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,GAAI,0BAG5B,iBAAiB,CAAC;IAAE,SAAS,EAAE,kBAAkB,CAAA;CAAE,CAAC,sBAKtD,CAAC;AAaF;;;GAGG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"ComponentsContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/componentsContext/ComponentsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACtC,CAAC,cAAc,qBAAqB,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAC7D,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,GAAI,0BAG5B,iBAAiB,CAAC;IAAE,SAAS,EAAE,kBAAkB,CAAA;CAAE,CAAC,sBAKtD,CAAC;AAaF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOhC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { MessageActionsProps } from '../../contexts/overlayContext/MessageOverlayHostLayer';
|
|
2
3
|
/**
|
|
3
4
|
* All default component implementations used across the SDK.
|
|
4
5
|
* These are the components used when no overrides are provided via WithComponents.
|
|
@@ -70,7 +71,7 @@ export declare const DEFAULT_COMPONENTS: {
|
|
|
70
71
|
(props: import("../../components/Attachment/FilePreview").FilePreviewProps): React.JSX.Element;
|
|
71
72
|
displayName: string;
|
|
72
73
|
};
|
|
73
|
-
|
|
74
|
+
ChannelListFooterLoadingIndicator: {
|
|
74
75
|
(): React.JSX.Element;
|
|
75
76
|
displayName: string;
|
|
76
77
|
};
|
|
@@ -82,11 +83,11 @@ export declare const DEFAULT_COMPONENTS: {
|
|
|
82
83
|
(props: import("../../components/Attachment/Giphy").GiphyProps): React.JSX.Element;
|
|
83
84
|
displayName: string;
|
|
84
85
|
};
|
|
85
|
-
|
|
86
|
+
ChannelListHeaderErrorIndicator: {
|
|
86
87
|
({ onPress }: import("../../components/ChannelList/ChannelListHeaderErrorIndicator").HeaderErrorProps): React.JSX.Element;
|
|
87
88
|
displayName: string;
|
|
88
89
|
};
|
|
89
|
-
|
|
90
|
+
ChannelListHeaderNetworkDownIndicator: {
|
|
90
91
|
(): React.JSX.Element;
|
|
91
92
|
displayName: string;
|
|
92
93
|
};
|
|
@@ -171,19 +172,19 @@ export declare const DEFAULT_COMPONENTS: {
|
|
|
171
172
|
MessageUserReactionsAvatar: (props: import("../../components/MessageMenu/MessageUserReactionsAvatar").MessageUserReactionsAvatarProps) => React.JSX.Element;
|
|
172
173
|
MessageUserReactionsItem: ({ reaction, supportedReactions, }: import("../../components/MessageMenu/MessageUserReactionsItem").MessageUserReactionsItemProps) => React.JSX.Element;
|
|
173
174
|
NetworkDownIndicator: () => React.JSX.Element | null;
|
|
174
|
-
|
|
175
|
+
ChannelPreview: {
|
|
175
176
|
(props: import("../../components/ChannelPreview/ChannelPreviewView").ChannelPreviewViewProps): React.JSX.Element;
|
|
176
177
|
displayName: string;
|
|
177
178
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
179
|
+
ChannelPreviewAvatar: (props: import("../../components/ui/Avatar/ChannelAvatar").ChannelAvatarProps) => React.JSX.Element;
|
|
180
|
+
ChannelPreviewLastMessage: ({ message }: import("../../components/ChannelPreview/ChannelLastMessagePreview").ChannelLastMessagePreviewProps) => React.JSX.Element;
|
|
181
|
+
ChannelPreviewMessage: (props: import("../../components/ChannelPreview/ChannelPreviewMessage").ChannelPreviewMessageProps) => React.JSX.Element;
|
|
182
|
+
ChannelPreviewMessageDeliveryStatus: ({ channel, message, }: import("../../components/ChannelPreview/ChannelMessagePreviewDeliveryStatus").ChannelMessagePreviewDeliveryStatusProps) => React.JSX.Element | null;
|
|
183
|
+
ChannelPreviewMutedStatus: () => React.JSX.Element;
|
|
184
|
+
ChannelPreviewStatus: (props: import("../../components/ChannelPreview/ChannelPreviewStatus").ChannelPreviewStatusProps) => React.JSX.Element;
|
|
185
|
+
ChannelPreviewTitle: ({ channel, title }: import("../../components/ChannelPreview/ChannelPreviewTitle").ChannelPreviewTitleProps) => React.JSX.Element;
|
|
186
|
+
ChannelPreviewTypingIndicator: ({ usersTyping, channel, }: import("../../components/ChannelPreview/ChannelPreviewTypingIndicator").ChannelPreviewTypingIndicatorProps) => React.JSX.Element;
|
|
187
|
+
ChannelPreviewUnreadCount: (props: import("../../components/ChannelPreview/ChannelPreviewUnreadCount").ChannelPreviewUnreadCountProps) => React.JSX.Element | null;
|
|
187
188
|
ReactionListBottom: (props: import("../../components/Message/MessageItemView/ReactionList/ReactionListBottom").ReactionListBottomProps) => React.JSX.Element | null;
|
|
188
189
|
ReactionListClustered: (props: import("../../components/Message/MessageItemView/ReactionList/ReactionListClustered").ReactionListClusteredProps) => React.JSX.Element;
|
|
189
190
|
ReactionListCountItem: (props: import("../../components/Message/MessageItemView/ReactionList/ReactionListItem").ReactionListCountItemProps) => React.JSX.Element | null;
|
|
@@ -282,6 +283,7 @@ export declare const DEFAULT_COMPONENTS: {
|
|
|
282
283
|
AttachmentPickerIOSSelectMorePhotos: React.ComponentType<any> | undefined;
|
|
283
284
|
ChatLoadingIndicator: React.ComponentType<any> | null | undefined;
|
|
284
285
|
CreatePollContent: React.ComponentType<any> | undefined;
|
|
286
|
+
MessageActions: React.ComponentType<MessageActionsProps> | undefined;
|
|
285
287
|
Input: React.ComponentType<any> | undefined;
|
|
286
288
|
ListHeaderComponent: React.ComponentType<any> | undefined;
|
|
287
289
|
MessageContentBottomView: React.ComponentType<any> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultComponents.d.ts","sourceRoot":"","sources":["../../../../src/contexts/componentsContext/defaultComponents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"defaultComponents.d.ts","sourceRoot":"","sources":["../../../../src/contexts/componentsContext/defaultComponents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkJ1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAEjG;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuJJ,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC;yCAIC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;0BAEnD,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS;uBAE9C,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;oBACvC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,GAAG,SAAS;WAE7D,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;yBAEtB,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;8BAE/B,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;+BAEnC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;2BAExC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;gCAE/B,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;qBAE/C,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;mBAEtC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;iBAEtC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;iBAEpC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS;CAC/D,CAAC"}
|
|
@@ -12,7 +12,6 @@ import type { Alignment, MessageContextValue } from '../messageContext/MessageCo
|
|
|
12
12
|
import type { DeepPartial } from '../themeContext/ThemeContext';
|
|
13
13
|
import type { Theme } from '../themeContext/utils/theme';
|
|
14
14
|
export type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'poll' | 'ai_text' | 'text' | 'location';
|
|
15
|
-
export type DeletedMessagesVisibilityType = 'always' | 'never' | 'receiver' | 'sender';
|
|
16
15
|
export type MessageLocationProps = {
|
|
17
16
|
message: LocalMessage;
|
|
18
17
|
};
|
|
@@ -68,13 +67,6 @@ export type MessagesContextValue = Pick<MessageContextValue, 'isMessageAIGenerat
|
|
|
68
67
|
channel: Channel;
|
|
69
68
|
message: LocalMessage;
|
|
70
69
|
}) => void;
|
|
71
|
-
/**
|
|
72
|
-
* Full override of the delete message button in the Message Actions
|
|
73
|
-
*
|
|
74
|
-
* Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.
|
|
75
|
-
*/
|
|
76
|
-
/** Control if the deleted message is visible to both the send and reciever, either of them or none */
|
|
77
|
-
deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;
|
|
78
70
|
disableTypingIndicator?: boolean;
|
|
79
71
|
/**
|
|
80
72
|
* Enable swipe to reply on messages.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagesContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messagesContext/MessagesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EACV,UAAU,EACV,wBAAwB,EACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAKzD,MAAM,MAAM,kBAAkB,GAC1B,aAAa,GACb,OAAO,GACP,SAAS,GACT,cAAc,GACd,MAAM,GACN,SAAS,GACT,MAAM,GACN,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"MessagesContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messagesContext/MessagesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EACV,UAAU,EACV,wBAAwB,EACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAKzD,MAAM,MAAM,kBAAkB,GAC1B,aAAa,GACb,OAAO,GACP,SAAS,GACT,cAAc,GACd,MAAM,GACN,SAAS,GACT,MAAM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'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
export declare const DefaultMessageOverlayBackground: () => React.JSX.Element;
|
|
4
|
+
export type MessageActionsProps = {
|
|
5
|
+
bottomItemStyle: StyleProp<ViewStyle>;
|
|
6
|
+
hostStyle: StyleProp<ViewStyle>;
|
|
7
|
+
portalHostStyle: StyleProp<ViewStyle>;
|
|
8
|
+
topItemStyle: StyleProp<ViewStyle>;
|
|
9
|
+
};
|
|
3
10
|
export declare const MessageOverlayHostLayer: () => React.JSX.Element;
|
|
4
11
|
//# sourceMappingURL=MessageOverlayHostLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageOverlayHostLayer.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/MessageOverlayHostLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageOverlayHostLayer.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/MessageOverlayHostLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAKL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AA2BtB,eAAO,MAAM,+BAA+B,yBAkB3C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,YAAY,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBA8OnC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "9.0.0-beta.
|
|
4
|
+
"version": "9.0.0-beta.33",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -49,7 +49,7 @@ import { BetterSqlite } from '../../test-utils/BetterSqlite';
|
|
|
49
49
|
* to debug.
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
|
-
* Custom
|
|
52
|
+
* Custom ChannelPreview component used via WithComponents.
|
|
53
53
|
* Receives { channel, muted, unread, lastMessage } from ChannelPreview.
|
|
54
54
|
*/
|
|
55
55
|
const ChannelPreviewComponent = ({ channel }) => (
|
|
@@ -207,7 +207,7 @@ export const Generic = () => {
|
|
|
207
207
|
const renderComponent = () =>
|
|
208
208
|
render(
|
|
209
209
|
<Chat client={chatClient} enableOfflineSupport>
|
|
210
|
-
<WithComponents overrides={{
|
|
210
|
+
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
211
211
|
<ChannelList filters={filters} sort={sort} swipeActionsEnabled={false} />
|
|
212
212
|
</WithComponents>
|
|
213
213
|
</Chat>,
|
|
@@ -235,7 +235,6 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
|
|
|
235
235
|
MessagesContextValue,
|
|
236
236
|
| 'additionalPressableProps'
|
|
237
237
|
| 'customMessageSwipeAction'
|
|
238
|
-
| 'deletedMessagesVisibilityType'
|
|
239
238
|
| 'disableTypingIndicator'
|
|
240
239
|
| 'dismissKeyboardOnMessageTouch'
|
|
241
240
|
| 'enableSwipeToReply'
|
|
@@ -405,7 +404,6 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
405
404
|
compressImageQuality,
|
|
406
405
|
createPollOptionGap,
|
|
407
406
|
customMessageSwipeAction,
|
|
408
|
-
deletedMessagesVisibilityType = 'always',
|
|
409
407
|
disableKeyboardCompatibleView = false,
|
|
410
408
|
disableTypingIndicator,
|
|
411
409
|
dismissKeyboardOnMessageTouch = true,
|
|
@@ -1635,7 +1633,6 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1635
1633
|
additionalPressableProps,
|
|
1636
1634
|
channelId,
|
|
1637
1635
|
customMessageSwipeAction,
|
|
1638
|
-
deletedMessagesVisibilityType,
|
|
1639
1636
|
deleteMessage,
|
|
1640
1637
|
deleteReaction,
|
|
1641
1638
|
disableTypingIndicator,
|
|
@@ -6,7 +6,6 @@ export const useCreateMessagesContext = ({
|
|
|
6
6
|
additionalPressableProps,
|
|
7
7
|
channelId,
|
|
8
8
|
customMessageSwipeAction,
|
|
9
|
-
deletedMessagesVisibilityType,
|
|
10
9
|
deleteMessage,
|
|
11
10
|
deleteReaction,
|
|
12
11
|
disableTypingIndicator,
|
|
@@ -70,7 +69,6 @@ export const useCreateMessagesContext = ({
|
|
|
70
69
|
() => ({
|
|
71
70
|
additionalPressableProps,
|
|
72
71
|
customMessageSwipeAction,
|
|
73
|
-
deletedMessagesVisibilityType,
|
|
74
72
|
deleteMessage,
|
|
75
73
|
deleteReaction,
|
|
76
74
|
disableTypingIndicator,
|
|
@@ -26,7 +26,8 @@ const StatusIndicator = () => {
|
|
|
26
26
|
const { isOnline } = useChatContext();
|
|
27
27
|
const styles = useStyles();
|
|
28
28
|
const { error, loadingChannels, refreshList } = useChannelsContext();
|
|
29
|
-
const {
|
|
29
|
+
const { ChannelListHeaderErrorIndicator, ChannelListHeaderNetworkDownIndicator } =
|
|
30
|
+
useComponentsContext();
|
|
30
31
|
|
|
31
32
|
if (loadingChannels) {
|
|
32
33
|
return null;
|
|
@@ -35,13 +36,13 @@ const StatusIndicator = () => {
|
|
|
35
36
|
if (!isOnline) {
|
|
36
37
|
return (
|
|
37
38
|
<View style={styles.statusIndicator}>
|
|
38
|
-
<
|
|
39
|
+
<ChannelListHeaderNetworkDownIndicator />
|
|
39
40
|
</View>
|
|
40
41
|
);
|
|
41
42
|
} else if (error) {
|
|
42
43
|
return (
|
|
43
44
|
<View style={styles.statusIndicator}>
|
|
44
|
-
<
|
|
45
|
+
<ChannelListHeaderErrorIndicator onPress={refreshList} />
|
|
45
46
|
</View>
|
|
46
47
|
);
|
|
47
48
|
}
|
|
@@ -72,7 +73,7 @@ const ChannelListViewWithContext = (props: ChannelListViewPropsWithContext) => {
|
|
|
72
73
|
} = props;
|
|
73
74
|
const {
|
|
74
75
|
EmptyStateIndicator,
|
|
75
|
-
|
|
76
|
+
ChannelListFooterLoadingIndicator,
|
|
76
77
|
ListHeaderComponent,
|
|
77
78
|
LoadingErrorIndicator,
|
|
78
79
|
ChannelListLoadingIndicator: LoadingIndicator,
|
|
@@ -138,7 +139,7 @@ const ChannelListViewWithContext = (props: ChannelListViewPropsWithContext) => {
|
|
|
138
139
|
ListEmptyComponent={
|
|
139
140
|
loading ? <LoadingIndicator /> : <EmptyStateIndicator listType='channel' />
|
|
140
141
|
}
|
|
141
|
-
ListFooterComponent={loadingNextPage ? <
|
|
142
|
+
ListFooterComponent={loadingNextPage ? <ChannelListFooterLoadingIndicator /> : undefined}
|
|
142
143
|
ListHeaderComponent={ListHeaderComponent}
|
|
143
144
|
onEndReached={onEndReached}
|
|
144
145
|
onEndReachedThreshold={loadMoreThreshold}
|