stream-chat-react-native-core 3.9.0-next.1 → 3.9.0-next.5
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/Attachment/Gallery.js +21 -9
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +22 -12
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +4 -0
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +4 -0
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +14 -20
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +7 -4
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js +20 -12
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +9 -6
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +43 -32
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +1 -5
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/hooks/useAppStateListener.js +8 -5
- package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Gallery.js +21 -9
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +22 -12
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +4 -0
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +4 -0
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +14 -20
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +7 -4
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js +20 -12
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +9 -6
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +43 -32
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +1 -5
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/hooks/useAppStateListener.js +8 -5
- package/lib/module/hooks/useAppStateListener.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +2 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +4 -2
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +3 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +3 -1
- package/package.json +2 -2
- package/src/components/Attachment/Gallery.tsx +20 -5
- package/src/components/Channel/Channel.tsx +10 -0
- package/src/components/Channel/hooks/useCreateChannelContext.ts +4 -0
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -0
- package/src/components/ChannelList/hooks/usePaginatedChannels.ts +1 -3
- package/src/components/Chat/hooks/useIsOnline.ts +17 -16
- package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx +9 -2
- package/src/components/Message/MessageSimple/MessageSimple.tsx +9 -3
- package/src/components/MessageList/MessageList.tsx +72 -28
- package/src/components/MessageList/hooks/useMessageList.ts +1 -1
- package/src/components/MessageList/utils/getGroupStyles.ts +3 -8
- package/src/contexts/channelContext/ChannelContext.tsx +2 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +2 -0
- package/src/hooks/useAppStateListener.ts +26 -12
- package/src/version.json +1 -1
|
@@ -251,6 +251,8 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
251
251
|
editMessageProp = props.editMessage,
|
|
252
252
|
_props$EmptyStateIndi = props.EmptyStateIndicator,
|
|
253
253
|
EmptyStateIndicator = _props$EmptyStateIndi === void 0 ? _EmptyStateIndicator.EmptyStateIndicator : _props$EmptyStateIndi,
|
|
254
|
+
_props$enableMessageG = props.enableMessageGroupingByUser,
|
|
255
|
+
enableMessageGroupingByUser = _props$enableMessageG === void 0 ? true : _props$enableMessageG,
|
|
254
256
|
_props$enforceUniqueR = props.enforceUniqueReaction,
|
|
255
257
|
enforceUniqueReaction = _props$enforceUniqueR === void 0 ? false : _props$enforceUniqueR,
|
|
256
258
|
_props$FileAttachment = props.FileAttachment,
|
|
@@ -291,6 +293,8 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
291
293
|
hasImagePicker = _props$hasImagePicker === void 0 ? true : _props$hasImagePicker,
|
|
292
294
|
_props$hideDateSepara = props.hideDateSeparators,
|
|
293
295
|
hideDateSeparators = _props$hideDateSepara === void 0 ? false : _props$hideDateSepara,
|
|
296
|
+
_props$hideStickyDate = props.hideStickyDateHeader,
|
|
297
|
+
hideStickyDateHeader = _props$hideStickyDate === void 0 ? false : _props$hideStickyDate,
|
|
294
298
|
_props$ImageUploadPre = props.ImageUploadPreview,
|
|
295
299
|
ImageUploadPreview = _props$ImageUploadPre === void 0 ? _ImageUploadPreview.ImageUploadPreview : _props$ImageUploadPre,
|
|
296
300
|
_props$initialScrollT = props.initialScrollToFirstUnreadMessage,
|
|
@@ -307,6 +311,8 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
307
311
|
_props$KeyboardCompat = props.KeyboardCompatibleView,
|
|
308
312
|
KeyboardCompatibleView = _props$KeyboardCompat === void 0 ? _KeyboardCompatibleView.KeyboardCompatibleView : _props$KeyboardCompat,
|
|
309
313
|
keyboardVerticalOffset = props.keyboardVerticalOffset,
|
|
314
|
+
_props$legacyImageVie = props.legacyImageViewerSwipeBehaviour,
|
|
315
|
+
legacyImageViewerSwipeBehaviour = _props$legacyImageVie === void 0 ? true : _props$legacyImageVie,
|
|
310
316
|
_props$LoadingErrorIn = props.LoadingErrorIndicator,
|
|
311
317
|
LoadingErrorIndicator = _props$LoadingErrorIn === void 0 ? _LoadingErrorIndicator.LoadingErrorIndicator : _props$LoadingErrorIn,
|
|
312
318
|
_props$LoadingIndicat = props.LoadingIndicator,
|
|
@@ -1754,12 +1760,14 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1754
1760
|
channel: channel,
|
|
1755
1761
|
disabled: !!(channel != null && (_channel$data = channel.data) != null && _channel$data.frozen) && disableIfFrozenChannel,
|
|
1756
1762
|
EmptyStateIndicator: EmptyStateIndicator,
|
|
1763
|
+
enableMessageGroupingByUser: enableMessageGroupingByUser,
|
|
1757
1764
|
enforceUniqueReaction: enforceUniqueReaction,
|
|
1758
1765
|
error: error,
|
|
1759
1766
|
giphyEnabled: giphyEnabled != null ? giphyEnabled : !!((_ref28 = (channel == null ? void 0 : channel.getConfig == null ? void 0 : (_channel$getConfig2 = channel.getConfig()) == null ? void 0 : _channel$getConfig2.commands) || []) != null && _ref28.some(function (command) {
|
|
1760
1767
|
return command.name === 'giphy';
|
|
1761
1768
|
})),
|
|
1762
1769
|
hideDateSeparators: hideDateSeparators,
|
|
1770
|
+
hideStickyDateHeader: hideStickyDateHeader,
|
|
1763
1771
|
isAdmin: isAdmin,
|
|
1764
1772
|
isModerator: isModerator,
|
|
1765
1773
|
isOwner: isOwner,
|
|
@@ -1846,6 +1854,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1846
1854
|
disableTypingIndicator: disableTypingIndicator,
|
|
1847
1855
|
dismissKeyboardOnMessageTouch: dismissKeyboardOnMessageTouch,
|
|
1848
1856
|
editMessage: editMessageProp,
|
|
1857
|
+
enableMessageGroupingByUser: enableMessageGroupingByUser,
|
|
1849
1858
|
FileAttachment: FileAttachment,
|
|
1850
1859
|
FileAttachmentGroup: FileAttachmentGroup,
|
|
1851
1860
|
FileAttachmentIcon: FileAttachmentIcon,
|
|
@@ -1868,6 +1877,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1868
1877
|
initialScrollToFirstUnreadMessage: initialScrollToFirstUnreadMessage,
|
|
1869
1878
|
InlineDateSeparator: InlineDateSeparator,
|
|
1870
1879
|
InlineUnreadIndicator: InlineUnreadIndicator,
|
|
1880
|
+
legacyImageViewerSwipeBehaviour: legacyImageViewerSwipeBehaviour,
|
|
1871
1881
|
markdownRules: markdownRules,
|
|
1872
1882
|
Message: Message,
|
|
1873
1883
|
messageActions: messageActions,
|
|
@@ -1937,7 +1947,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1937
1947
|
__self: _this,
|
|
1938
1948
|
__source: {
|
|
1939
1949
|
fileName: _jsxFileName,
|
|
1940
|
-
lineNumber:
|
|
1950
|
+
lineNumber: 1767,
|
|
1941
1951
|
columnNumber: 12
|
|
1942
1952
|
}
|
|
1943
1953
|
});
|
|
@@ -1952,7 +1962,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1952
1962
|
__self: _this,
|
|
1953
1963
|
__source: {
|
|
1954
1964
|
fileName: _jsxFileName,
|
|
1955
|
-
lineNumber:
|
|
1965
|
+
lineNumber: 1772,
|
|
1956
1966
|
columnNumber: 7
|
|
1957
1967
|
}
|
|
1958
1968
|
}, t('Please select a channel first'));
|
|
@@ -1966,7 +1976,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1966
1976
|
__self: _this,
|
|
1967
1977
|
__source: {
|
|
1968
1978
|
fileName: _jsxFileName,
|
|
1969
|
-
lineNumber:
|
|
1979
|
+
lineNumber: 1779,
|
|
1970
1980
|
columnNumber: 5
|
|
1971
1981
|
}
|
|
1972
1982
|
}), _react["default"].createElement(_ChannelContext.ChannelProvider, {
|
|
@@ -1974,7 +1984,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1974
1984
|
__self: _this,
|
|
1975
1985
|
__source: {
|
|
1976
1986
|
fileName: _jsxFileName,
|
|
1977
|
-
lineNumber:
|
|
1987
|
+
lineNumber: 1785,
|
|
1978
1988
|
columnNumber: 7
|
|
1979
1989
|
}
|
|
1980
1990
|
}, _react["default"].createElement(_TypingContext.TypingProvider, {
|
|
@@ -1982,7 +1992,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1982
1992
|
__self: _this,
|
|
1983
1993
|
__source: {
|
|
1984
1994
|
fileName: _jsxFileName,
|
|
1985
|
-
lineNumber:
|
|
1995
|
+
lineNumber: 1786,
|
|
1986
1996
|
columnNumber: 9
|
|
1987
1997
|
}
|
|
1988
1998
|
}, _react["default"].createElement(_PaginatedMessageListContext.PaginatedMessageListProvider, {
|
|
@@ -1990,7 +2000,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1990
2000
|
__self: _this,
|
|
1991
2001
|
__source: {
|
|
1992
2002
|
fileName: _jsxFileName,
|
|
1993
|
-
lineNumber:
|
|
2003
|
+
lineNumber: 1787,
|
|
1994
2004
|
columnNumber: 11
|
|
1995
2005
|
}
|
|
1996
2006
|
}, _react["default"].createElement(_MessagesContext.MessagesProvider, {
|
|
@@ -1998,7 +2008,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1998
2008
|
__self: _this,
|
|
1999
2009
|
__source: {
|
|
2000
2010
|
fileName: _jsxFileName,
|
|
2001
|
-
lineNumber:
|
|
2011
|
+
lineNumber: 1788,
|
|
2002
2012
|
columnNumber: 13
|
|
2003
2013
|
}
|
|
2004
2014
|
}, _react["default"].createElement(_ThreadContext.ThreadProvider, {
|
|
@@ -2006,7 +2016,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2006
2016
|
__self: _this,
|
|
2007
2017
|
__source: {
|
|
2008
2018
|
fileName: _jsxFileName,
|
|
2009
|
-
lineNumber:
|
|
2019
|
+
lineNumber: 1789,
|
|
2010
2020
|
columnNumber: 15
|
|
2011
2021
|
}
|
|
2012
2022
|
}, _react["default"].createElement(_SuggestionsContext.SuggestionsProvider, {
|
|
@@ -2014,7 +2024,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2014
2024
|
__self: _this,
|
|
2015
2025
|
__source: {
|
|
2016
2026
|
fileName: _jsxFileName,
|
|
2017
|
-
lineNumber:
|
|
2027
|
+
lineNumber: 1790,
|
|
2018
2028
|
columnNumber: 17
|
|
2019
2029
|
}
|
|
2020
2030
|
}, _react["default"].createElement(_MessageInputContext.MessageInputProvider, {
|
|
@@ -2022,7 +2032,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2022
2032
|
__self: _this,
|
|
2023
2033
|
__source: {
|
|
2024
2034
|
fileName: _jsxFileName,
|
|
2025
|
-
lineNumber:
|
|
2035
|
+
lineNumber: 1791,
|
|
2026
2036
|
columnNumber: 19
|
|
2027
2037
|
}
|
|
2028
2038
|
}, _react["default"].createElement(_reactNative.View, {
|
|
@@ -2032,7 +2042,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2032
2042
|
__self: _this,
|
|
2033
2043
|
__source: {
|
|
2034
2044
|
fileName: _jsxFileName,
|
|
2035
|
-
lineNumber:
|
|
2045
|
+
lineNumber: 1792,
|
|
2036
2046
|
columnNumber: 21
|
|
2037
2047
|
}
|
|
2038
2048
|
}, children)))))))));
|
|
@@ -2052,7 +2062,7 @@ var Channel = function Channel(props) {
|
|
|
2052
2062
|
__self: _this,
|
|
2053
2063
|
__source: {
|
|
2054
2064
|
fileName: _jsxFileName,
|
|
2055
|
-
lineNumber:
|
|
2065
|
+
lineNumber: 1837,
|
|
2056
2066
|
columnNumber: 5
|
|
2057
2067
|
}
|
|
2058
2068
|
}));
|