stream-chat-react-native-core 5.17.1 → 5.18.0-beta.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.
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +19 -15
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +46 -41
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +1 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js +19 -15
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +46 -41
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +1 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Message/MessageSimple/ReactionList.tsx +4 -3
- package/src/components/MessageList/MessageList.tsx +8 -7
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +18 -9
- package/src/contexts/themeContext/utils/theme.ts +2 -0
- package/src/version.json +1 -1
|
@@ -127,6 +127,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
127
127
|
var insideRightBound = x2 + strokeSize + reactionSize * reactions.length / 2 < width - screenPadding * 2;
|
|
128
128
|
var left = reactions.length === 1 ? x1 + (alignmentLeft ? -radius : radius - reactionSize) : !insideLeftBound ? screenPadding : !insideRightBound ? width - screenPadding * 2 - reactionSize * reactions.length - strokeSize : x2 - reactionSize * reactions.length / 2 - strokeSize;
|
|
129
129
|
return _react["default"].createElement(_reactNative.View, {
|
|
130
|
+
pointerEvents: "box-none",
|
|
130
131
|
style: [styles.container, {
|
|
131
132
|
height: reactionSize + radius * 5,
|
|
132
133
|
width: width
|
|
@@ -139,18 +140,20 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
139
140
|
columnNumber: 5
|
|
140
141
|
}
|
|
141
142
|
}, reactions.length ? _react["default"].createElement(_reactNative.View, {
|
|
143
|
+
pointerEvents: "box-none",
|
|
142
144
|
style: [_reactNative.StyleSheet.absoluteFill],
|
|
143
145
|
__self: _this,
|
|
144
146
|
__source: {
|
|
145
147
|
fileName: _jsxFileName,
|
|
146
|
-
lineNumber:
|
|
148
|
+
lineNumber: 193,
|
|
147
149
|
columnNumber: 9
|
|
148
150
|
}
|
|
149
151
|
}, _react["default"].createElement(_reactNativeSvg["default"], {
|
|
152
|
+
pointerEvents: "none",
|
|
150
153
|
__self: _this,
|
|
151
154
|
__source: {
|
|
152
155
|
fileName: _jsxFileName,
|
|
153
|
-
lineNumber:
|
|
156
|
+
lineNumber: 194,
|
|
154
157
|
columnNumber: 11
|
|
155
158
|
}
|
|
156
159
|
}, _react["default"].createElement(_reactNativeSvg.Circle, {
|
|
@@ -161,7 +164,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
161
164
|
__self: _this,
|
|
162
165
|
__source: {
|
|
163
166
|
fileName: _jsxFileName,
|
|
164
|
-
lineNumber:
|
|
167
|
+
lineNumber: 195,
|
|
165
168
|
columnNumber: 13
|
|
166
169
|
}
|
|
167
170
|
}), _react["default"].createElement(_reactNativeSvg.Circle, {
|
|
@@ -172,7 +175,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
172
175
|
__self: _this,
|
|
173
176
|
__source: {
|
|
174
177
|
fileName: _jsxFileName,
|
|
175
|
-
lineNumber:
|
|
178
|
+
lineNumber: 196,
|
|
176
179
|
columnNumber: 13
|
|
177
180
|
}
|
|
178
181
|
}), _react["default"].createElement(_reactNativeSvg.Circle, {
|
|
@@ -183,7 +186,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
183
186
|
__self: _this,
|
|
184
187
|
__source: {
|
|
185
188
|
fileName: _jsxFileName,
|
|
186
|
-
lineNumber:
|
|
189
|
+
lineNumber: 197,
|
|
187
190
|
columnNumber: 13
|
|
188
191
|
}
|
|
189
192
|
}), _react["default"].createElement(_reactNativeSvg.Circle, {
|
|
@@ -194,7 +197,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
194
197
|
__self: _this,
|
|
195
198
|
__source: {
|
|
196
199
|
fileName: _jsxFileName,
|
|
197
|
-
lineNumber:
|
|
200
|
+
lineNumber: 198,
|
|
198
201
|
columnNumber: 13
|
|
199
202
|
}
|
|
200
203
|
}), _react["default"].createElement(_reactNativeSvg.Circle, {
|
|
@@ -205,7 +208,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
205
208
|
__self: _this,
|
|
206
209
|
__source: {
|
|
207
210
|
fileName: _jsxFileName,
|
|
208
|
-
lineNumber:
|
|
211
|
+
lineNumber: 199,
|
|
209
212
|
columnNumber: 13
|
|
210
213
|
}
|
|
211
214
|
}), _react["default"].createElement(_reactNativeSvg.Circle, {
|
|
@@ -216,7 +219,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
216
219
|
__self: _this,
|
|
217
220
|
__source: {
|
|
218
221
|
fileName: _jsxFileName,
|
|
219
|
-
lineNumber:
|
|
222
|
+
lineNumber: 200,
|
|
220
223
|
columnNumber: 13
|
|
221
224
|
}
|
|
222
225
|
})), _react["default"].createElement(_reactNative.View, {
|
|
@@ -232,22 +235,23 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
232
235
|
__self: _this,
|
|
233
236
|
__source: {
|
|
234
237
|
fileName: _jsxFileName,
|
|
235
|
-
lineNumber:
|
|
238
|
+
lineNumber: 202,
|
|
236
239
|
columnNumber: 11
|
|
237
240
|
}
|
|
238
241
|
}), _react["default"].createElement(_reactNative.View, {
|
|
242
|
+
pointerEvents: "none",
|
|
239
243
|
style: [_reactNative.StyleSheet.absoluteFill],
|
|
240
244
|
__self: _this,
|
|
241
245
|
__source: {
|
|
242
246
|
fileName: _jsxFileName,
|
|
243
|
-
lineNumber:
|
|
247
|
+
lineNumber: 217,
|
|
244
248
|
columnNumber: 11
|
|
245
249
|
}
|
|
246
250
|
}, _react["default"].createElement(_reactNativeSvg["default"], {
|
|
247
251
|
__self: _this,
|
|
248
252
|
__source: {
|
|
249
253
|
fileName: _jsxFileName,
|
|
250
|
-
lineNumber:
|
|
254
|
+
lineNumber: 218,
|
|
251
255
|
columnNumber: 13
|
|
252
256
|
}
|
|
253
257
|
}, _react["default"].createElement(_reactNativeSvg.Circle, {
|
|
@@ -258,7 +262,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
258
262
|
__self: _this,
|
|
259
263
|
__source: {
|
|
260
264
|
fileName: _jsxFileName,
|
|
261
|
-
lineNumber:
|
|
265
|
+
lineNumber: 219,
|
|
262
266
|
columnNumber: 15
|
|
263
267
|
}
|
|
264
268
|
}))), _react["default"].createElement(_reactNative.TouchableOpacity, {
|
|
@@ -304,7 +308,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
304
308
|
__self: _this,
|
|
305
309
|
__source: {
|
|
306
310
|
fileName: _jsxFileName,
|
|
307
|
-
lineNumber:
|
|
311
|
+
lineNumber: 222,
|
|
308
312
|
columnNumber: 11
|
|
309
313
|
}
|
|
310
314
|
}, reactions.map(function (reaction) {
|
|
@@ -318,7 +322,7 @@ var ReactionListWithContext = function ReactionListWithContext(props) {
|
|
|
318
322
|
__self: _this,
|
|
319
323
|
__source: {
|
|
320
324
|
fileName: _jsxFileName,
|
|
321
|
-
lineNumber:
|
|
325
|
+
lineNumber: 264,
|
|
322
326
|
columnNumber: 15
|
|
323
327
|
}
|
|
324
328
|
});
|
|
@@ -374,7 +378,7 @@ var ReactionList = function ReactionList(props) {
|
|
|
374
378
|
__self: _this,
|
|
375
379
|
__source: {
|
|
376
380
|
fileName: _jsxFileName,
|
|
377
|
-
lineNumber:
|
|
381
|
+
lineNumber: 349,
|
|
378
382
|
columnNumber: 5
|
|
379
383
|
}
|
|
380
384
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSvg","_interopRequireWildcard","_MessageContext","_MessagesContext","_ThemeContext","_Unknown","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","container","left","position","top","reactionBubble","alignItems","flexDirection","justifyContent","reactionBubbleBackground","Icon","_ref","_supportedReactions$f","pathFill","size","style","supportedReactions","type","ReactionIcon","find","reaction","Unknown","createElement","View","__self","__source","fileName","lineNumber","columnNumber","height","width","ReactionListWithContext","props","alignment","propFill","fill","message","messageContentWidth","onLongPress","onPress","onPressIn","preventPress","propRadius","radius","reactions","propReactionSize","reactionSize","showMessageOverlay","propStroke","stroke","propStrokeSize","strokeSize","targetedMessage","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_blue","grey","grey_gainsboro","grey_whisper","targetedMessageBackground","white","white_snow","_useTheme$theme$messa","messageSimple","_useTheme$theme$messa2","avatarWrapper","leftAlign","spacer","_useTheme$theme$messa3","reactionList","middleIcon","themeRadius","themeReactionSize","themeStrokeSize","screenPadding","useWindowDimensions","supportedReactionTypes","map","supportedReaction","hasSupportedReactions","some","includes","alignmentLeft","highlighted","pinned","id","x1","Number","marginRight","x2","y1","y2","insideLeftBound","length","insideRightBound","testID","absoluteFill","Circle","cx","cy","r","backgroundColor","borderColor","borderRadius","borderWidth","TouchableOpacity","disabled","event","emitter","defaultHandler","own","areEqual","prevProps","nextProps","prevMessage","prevMessageContentWidth","prevTargetedMessage","nextMessage","nextMessageContentWidth","nextTargetedMessage","messageContentWidthEqual","messagePinnedEqual","targetedMessageEqual","latestReactionsEqual","Array","isArray","latest_reactions","every","_ref2","index","_nextMessage$latest_r","MemoizedReactionList","React","memo","ReactionList","_useMessageContext","useMessageContext","_useMessagesContext","useMessagesContext","_extends2","exports"],"sources":["ReactionList.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, TouchableOpacity, useWindowDimensions, View } from 'react-native';\n\nimport Svg, { Circle } from 'react-native-svg';\n\nimport {\n MessageContextValue,\n Reactions,\n useMessageContext,\n} from '../../../contexts/messageContext/MessageContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\n\nimport { Unknown } from '../../../icons/Unknown';\n\nimport type { IconProps } from '../../../icons/utils/base';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport type { ReactionData } from '../../../utils/utils';\n\nconst styles = StyleSheet.create({\n container: {\n left: 0,\n position: 'absolute',\n top: 0,\n },\n reactionBubble: {\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-evenly',\n position: 'absolute',\n },\n reactionBubbleBackground: {\n position: 'absolute',\n },\n});\n\nexport type MessageReactions = {\n reactions: Reactions;\n supportedReactions?: ReactionData[];\n};\n\nconst Icon: React.FC<\n Pick<IconProps, 'pathFill' | 'style'> & {\n size: number;\n supportedReactions: ReactionData[];\n type: string;\n }\n> = ({ pathFill, size, style, supportedReactions, type }) => {\n const ReactionIcon =\n supportedReactions.find((reaction) => reaction.type === type)?.Icon || Unknown;\n\n return (\n <View>\n <ReactionIcon height={size} pathFill={pathFill} style={style} width={size} />\n </View>\n );\n};\n\nexport type ReactionListPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<\n MessageContextValue<StreamChatGenerics>,\n | 'alignment'\n | 'message'\n | 'onLongPress'\n | 'onPress'\n | 'onPressIn'\n | 'preventPress'\n | 'reactions'\n | 'showMessageOverlay'\n> &\n Pick<MessagesContextValue<StreamChatGenerics>, 'targetedMessage'> & {\n messageContentWidth: number;\n supportedReactions: ReactionData[];\n fill?: string;\n radius?: number; // not recommended to change this\n reactionSize?: number;\n stroke?: string;\n strokeSize?: number; // not recommended to change this\n };\n\nconst ReactionListWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReactionListPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n alignment,\n fill: propFill,\n message,\n messageContentWidth,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n radius: propRadius,\n reactions,\n reactionSize: propReactionSize,\n showMessageOverlay,\n stroke: propStroke,\n strokeSize: propStrokeSize,\n supportedReactions,\n targetedMessage,\n } = props;\n\n const {\n theme: {\n colors: {\n accent_blue,\n grey,\n grey_gainsboro,\n grey_whisper,\n targetedMessageBackground,\n white,\n white_snow,\n },\n messageSimple: {\n avatarWrapper: { leftAlign, spacer },\n reactionList: {\n container,\n middleIcon,\n radius: themeRadius,\n reactionBubble,\n reactionBubbleBackground,\n reactionSize: themeReactionSize,\n strokeSize: themeStrokeSize,\n },\n },\n screenPadding,\n },\n } = useTheme();\n\n const width = useWindowDimensions().width;\n\n const supportedReactionTypes = supportedReactions.map(\n (supportedReaction) => supportedReaction.type,\n );\n const hasSupportedReactions = reactions.some((reaction) =>\n supportedReactionTypes.includes(reaction.type),\n );\n\n if (!hasSupportedReactions || messageContentWidth === 0) {\n return null;\n }\n\n const alignmentLeft = alignment === 'left';\n const fill = propFill || alignmentLeft ? grey_gainsboro : grey_whisper;\n const radius = propRadius || themeRadius;\n const reactionSize = propReactionSize || themeReactionSize;\n const highlighted = message.pinned || targetedMessage === message.id;\n const stroke = propStroke || (highlighted ? targetedMessageBackground : white_snow);\n const strokeSize = propStrokeSize || themeStrokeSize;\n\n const x1 = alignmentLeft\n ? messageContentWidth +\n (Number(leftAlign.marginRight) || 0) +\n (Number(spacer.width) || 0) -\n radius * 0.5\n : width - screenPadding * 2 - messageContentWidth;\n const x2 = x1 + radius * 2 * (alignmentLeft ? 1 : -1);\n const y1 = reactionSize + radius * 2;\n const y2 = reactionSize - radius;\n\n const insideLeftBound = x2 - (reactionSize * reactions.length) / 2 > screenPadding;\n const insideRightBound =\n x2 + strokeSize + (reactionSize * reactions.length) / 2 < width - screenPadding * 2;\n const left =\n reactions.length === 1\n ? x1 + (alignmentLeft ? -radius : radius - reactionSize)\n : !insideLeftBound\n ? screenPadding\n : !insideRightBound\n ? width - screenPadding * 2 - reactionSize * reactions.length - strokeSize\n : x2 - (reactionSize * reactions.length) / 2 - strokeSize;\n\n return (\n <View\n style={[\n styles.container,\n {\n height: reactionSize + radius * 5,\n width,\n },\n container,\n ]}\n testID='reaction-list'\n >\n {reactions.length ? (\n <View style={[StyleSheet.absoluteFill]}>\n <Svg>\n <Circle cx={x1} cy={y1} fill={stroke} r={radius + strokeSize * 3} />\n <Circle cx={x2} cy={y2} fill={stroke} r={radius * 2 + strokeSize * 3} />\n <Circle cx={x1} cy={y1} fill={fill} r={radius + strokeSize} />\n <Circle cx={x2} cy={y2} fill={fill} r={radius * 2 + strokeSize} />\n <Circle cx={x1} cy={y1} fill={alignmentLeft ? fill : white} r={radius} />\n <Circle cx={x2} cy={y2} fill={alignmentLeft ? fill : white} r={radius * 2} />\n </Svg>\n <View\n style={[\n styles.reactionBubbleBackground,\n {\n backgroundColor: alignmentLeft ? fill : white,\n borderColor: fill,\n borderRadius: reactionSize,\n borderWidth: strokeSize,\n height: reactionSize,\n left,\n width: reactionSize * reactions.length,\n },\n reactionBubbleBackground,\n ]}\n />\n <View style={[StyleSheet.absoluteFill]}>\n <Svg>\n <Circle cx={x2} cy={y2} fill={alignmentLeft ? fill : white} r={radius * 2} />\n </Svg>\n </View>\n <TouchableOpacity\n disabled={preventPress}\n onLongPress={(event) => {\n if (onLongPress) {\n onLongPress({\n emitter: 'reactionList',\n event,\n });\n }\n }}\n onPress={(event) => {\n if (onPress) {\n onPress({\n defaultHandler: () => showMessageOverlay(true),\n emitter: 'reactionList',\n event,\n });\n }\n }}\n onPressIn={(event) => {\n if (onPressIn) {\n onPressIn({\n defaultHandler: () => showMessageOverlay(true),\n emitter: 'reactionList',\n event,\n });\n }\n }}\n style={[\n styles.reactionBubble,\n {\n backgroundColor: alignmentLeft ? fill : white,\n borderRadius: reactionSize - strokeSize * 2,\n height: reactionSize - strokeSize * 2,\n left: left + strokeSize,\n top: strokeSize,\n width: reactionSize * reactions.length - strokeSize * 2,\n },\n reactionBubble,\n ]}\n >\n {reactions.map((reaction) => (\n <Icon\n key={reaction.type}\n pathFill={reaction.own ? accent_blue : grey}\n size={reactionSize / 2}\n style={middleIcon}\n supportedReactions={supportedReactions}\n type={reaction.type}\n />\n ))}\n </TouchableOpacity>\n </View>\n ) : null}\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: ReactionListPropsWithContext<StreamChatGenerics>,\n nextProps: ReactionListPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n message: prevMessage,\n messageContentWidth: prevMessageContentWidth,\n targetedMessage: prevTargetedMessage,\n } = prevProps;\n const {\n message: nextMessage,\n messageContentWidth: nextMessageContentWidth,\n targetedMessage: nextTargetedMessage,\n } = nextProps;\n\n const messageContentWidthEqual = prevMessageContentWidth === nextMessageContentWidth;\n if (!messageContentWidthEqual) return false;\n\n const messagePinnedEqual = prevMessage.pinned === nextMessage.pinned;\n\n if (!messagePinnedEqual) return false;\n\n const targetedMessageEqual = prevTargetedMessage === nextTargetedMessage;\n\n if (!targetedMessageEqual) return false;\n\n const latestReactionsEqual =\n Array.isArray(prevMessage.latest_reactions) && Array.isArray(nextMessage.latest_reactions)\n ? prevMessage.latest_reactions.length === nextMessage.latest_reactions.length &&\n prevMessage.latest_reactions.every(\n ({ type }, index) => type === nextMessage.latest_reactions?.[index].type,\n )\n : prevMessage.latest_reactions === nextMessage.latest_reactions;\n if (!latestReactionsEqual) return false;\n\n return true;\n};\n\nconst MemoizedReactionList = React.memo(\n ReactionListWithContext,\n areEqual,\n) as typeof ReactionListWithContext;\n\nexport type ReactionListProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<Omit<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>> &\n Pick<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>;\n\n/**\n * ReactionList - A high level component which implements all the logic required for a message reaction list\n */\nexport const ReactionList = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReactionListProps<StreamChatGenerics>,\n) => {\n const {\n alignment,\n message,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n reactions,\n showMessageOverlay,\n } = useMessageContext<StreamChatGenerics>();\n const { supportedReactions, targetedMessage } = useMessagesContext<StreamChatGenerics>();\n\n return (\n <MemoizedReactionList\n {...{\n alignment,\n message,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n reactions,\n showMessageOverlay,\n supportedReactions,\n targetedMessage,\n }}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAC,uBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAKA,IAAAK,gBAAA,GAAAL,OAAA;AAIA,IAAAM,aAAA,GAAAN,OAAA;AAEA,IAAAO,QAAA,GAAAP,OAAA;AAAiD,IAAAQ,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA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ACTG,OAAO,EAAPA,OAAO;IACPE,WAAW,EAAXA,WAAW;IACXC,OAAO,EAAPA,OAAO;IACPC,SAAS,EAATA,SAAS;IACTC,YAAY,EAAZA,YAAY;IACZG,SAAS,EAATA,SAAS;IACTG,kBAAkB,EAAlBA,kBAAkB;IAClB/B,kBAAkB,EAAlBA,kBAAkB;IAClBoC,eAAe,EAAfA;EAAe,GAEbpB,KAAK;IAAAR,MAAA,EAAAlD,KAAA;IAAAmD,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACoH,OAAA,CAAAN,YAAA,GAAAA,YAAA"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSvg","_interopRequireWildcard","_MessageContext","_MessagesContext","_ThemeContext","_Unknown","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","container","left","position","top","reactionBubble","alignItems","flexDirection","justifyContent","reactionBubbleBackground","Icon","_ref","_supportedReactions$f","pathFill","size","style","supportedReactions","type","ReactionIcon","find","reaction","Unknown","createElement","View","__self","__source","fileName","lineNumber","columnNumber","height","width","ReactionListWithContext","props","alignment","propFill","fill","message","messageContentWidth","onLongPress","onPress","onPressIn","preventPress","propRadius","radius","reactions","propReactionSize","reactionSize","showMessageOverlay","propStroke","stroke","propStrokeSize","strokeSize","targetedMessage","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_blue","grey","grey_gainsboro","grey_whisper","targetedMessageBackground","white","white_snow","_useTheme$theme$messa","messageSimple","_useTheme$theme$messa2","avatarWrapper","leftAlign","spacer","_useTheme$theme$messa3","reactionList","middleIcon","themeRadius","themeReactionSize","themeStrokeSize","screenPadding","useWindowDimensions","supportedReactionTypes","map","supportedReaction","hasSupportedReactions","some","includes","alignmentLeft","highlighted","pinned","id","x1","Number","marginRight","x2","y1","y2","insideLeftBound","length","insideRightBound","pointerEvents","testID","absoluteFill","Circle","cx","cy","r","backgroundColor","borderColor","borderRadius","borderWidth","TouchableOpacity","disabled","event","emitter","defaultHandler","own","areEqual","prevProps","nextProps","prevMessage","prevMessageContentWidth","prevTargetedMessage","nextMessage","nextMessageContentWidth","nextTargetedMessage","messageContentWidthEqual","messagePinnedEqual","targetedMessageEqual","latestReactionsEqual","Array","isArray","latest_reactions","every","_ref2","index","_nextMessage$latest_r","MemoizedReactionList","React","memo","ReactionList","_useMessageContext","useMessageContext","_useMessagesContext","useMessagesContext","_extends2","exports"],"sources":["ReactionList.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, TouchableOpacity, useWindowDimensions, View } from 'react-native';\n\nimport Svg, { Circle } from 'react-native-svg';\n\nimport {\n MessageContextValue,\n Reactions,\n useMessageContext,\n} from '../../../contexts/messageContext/MessageContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\n\nimport { Unknown } from '../../../icons/Unknown';\n\nimport type { IconProps } from '../../../icons/utils/base';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport type { ReactionData } from '../../../utils/utils';\n\nconst styles = StyleSheet.create({\n container: {\n left: 0,\n position: 'absolute',\n top: 0,\n },\n reactionBubble: {\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-evenly',\n position: 'absolute',\n },\n reactionBubbleBackground: {\n position: 'absolute',\n },\n});\n\nexport type MessageReactions = {\n reactions: Reactions;\n supportedReactions?: ReactionData[];\n};\n\nconst Icon: React.FC<\n Pick<IconProps, 'pathFill' | 'style'> & {\n size: number;\n supportedReactions: ReactionData[];\n type: string;\n }\n> = ({ pathFill, size, style, supportedReactions, type }) => {\n const ReactionIcon =\n supportedReactions.find((reaction) => reaction.type === type)?.Icon || Unknown;\n\n return (\n <View>\n <ReactionIcon height={size} pathFill={pathFill} style={style} width={size} />\n </View>\n );\n};\n\nexport type ReactionListPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<\n MessageContextValue<StreamChatGenerics>,\n | 'alignment'\n | 'message'\n | 'onLongPress'\n | 'onPress'\n | 'onPressIn'\n | 'preventPress'\n | 'reactions'\n | 'showMessageOverlay'\n> &\n Pick<MessagesContextValue<StreamChatGenerics>, 'targetedMessage'> & {\n messageContentWidth: number;\n supportedReactions: ReactionData[];\n fill?: string;\n radius?: number; // not recommended to change this\n reactionSize?: number;\n stroke?: string;\n strokeSize?: number; // not recommended to change this\n };\n\nconst ReactionListWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReactionListPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n alignment,\n fill: propFill,\n message,\n messageContentWidth,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n radius: propRadius,\n reactions,\n reactionSize: propReactionSize,\n showMessageOverlay,\n stroke: propStroke,\n strokeSize: propStrokeSize,\n supportedReactions,\n targetedMessage,\n } = props;\n\n const {\n theme: {\n colors: {\n accent_blue,\n grey,\n grey_gainsboro,\n grey_whisper,\n targetedMessageBackground,\n white,\n white_snow,\n },\n messageSimple: {\n avatarWrapper: { leftAlign, spacer },\n reactionList: {\n container,\n middleIcon,\n radius: themeRadius,\n reactionBubble,\n reactionBubbleBackground,\n reactionSize: themeReactionSize,\n strokeSize: themeStrokeSize,\n },\n },\n screenPadding,\n },\n } = useTheme();\n\n const width = useWindowDimensions().width;\n\n const supportedReactionTypes = supportedReactions.map(\n (supportedReaction) => supportedReaction.type,\n );\n const hasSupportedReactions = reactions.some((reaction) =>\n supportedReactionTypes.includes(reaction.type),\n );\n\n if (!hasSupportedReactions || messageContentWidth === 0) {\n return null;\n }\n\n const alignmentLeft = alignment === 'left';\n const fill = propFill || alignmentLeft ? grey_gainsboro : grey_whisper;\n const radius = propRadius || themeRadius;\n const reactionSize = propReactionSize || themeReactionSize;\n const highlighted = message.pinned || targetedMessage === message.id;\n const stroke = propStroke || (highlighted ? targetedMessageBackground : white_snow);\n const strokeSize = propStrokeSize || themeStrokeSize;\n\n const x1 = alignmentLeft\n ? messageContentWidth +\n (Number(leftAlign.marginRight) || 0) +\n (Number(spacer.width) || 0) -\n radius * 0.5\n : width - screenPadding * 2 - messageContentWidth;\n const x2 = x1 + radius * 2 * (alignmentLeft ? 1 : -1);\n const y1 = reactionSize + radius * 2;\n const y2 = reactionSize - radius;\n\n const insideLeftBound = x2 - (reactionSize * reactions.length) / 2 > screenPadding;\n const insideRightBound =\n x2 + strokeSize + (reactionSize * reactions.length) / 2 < width - screenPadding * 2;\n const left =\n reactions.length === 1\n ? x1 + (alignmentLeft ? -radius : radius - reactionSize)\n : !insideLeftBound\n ? screenPadding\n : !insideRightBound\n ? width - screenPadding * 2 - reactionSize * reactions.length - strokeSize\n : x2 - (reactionSize * reactions.length) / 2 - strokeSize;\n\n return (\n <View\n pointerEvents='box-none'\n style={[\n styles.container,\n {\n height: reactionSize + radius * 5,\n width,\n },\n container,\n ]}\n testID='reaction-list'\n >\n {reactions.length ? (\n <View pointerEvents='box-none' style={[StyleSheet.absoluteFill]}>\n <Svg pointerEvents='none'>\n <Circle cx={x1} cy={y1} fill={stroke} r={radius + strokeSize * 3} />\n <Circle cx={x2} cy={y2} fill={stroke} r={radius * 2 + strokeSize * 3} />\n <Circle cx={x1} cy={y1} fill={fill} r={radius + strokeSize} />\n <Circle cx={x2} cy={y2} fill={fill} r={radius * 2 + strokeSize} />\n <Circle cx={x1} cy={y1} fill={alignmentLeft ? fill : white} r={radius} />\n <Circle cx={x2} cy={y2} fill={alignmentLeft ? fill : white} r={radius * 2} />\n </Svg>\n <View\n style={[\n styles.reactionBubbleBackground,\n {\n backgroundColor: alignmentLeft ? fill : white,\n borderColor: fill,\n borderRadius: reactionSize,\n borderWidth: strokeSize,\n height: reactionSize,\n left,\n width: reactionSize * reactions.length,\n },\n reactionBubbleBackground,\n ]}\n />\n <View pointerEvents='none' style={[StyleSheet.absoluteFill]}>\n <Svg>\n <Circle cx={x2} cy={y2} fill={alignmentLeft ? fill : white} r={radius * 2} />\n </Svg>\n </View>\n <TouchableOpacity\n disabled={preventPress}\n onLongPress={(event) => {\n if (onLongPress) {\n onLongPress({\n emitter: 'reactionList',\n event,\n });\n }\n }}\n onPress={(event) => {\n if (onPress) {\n onPress({\n defaultHandler: () => showMessageOverlay(true),\n emitter: 'reactionList',\n event,\n });\n }\n }}\n onPressIn={(event) => {\n if (onPressIn) {\n onPressIn({\n defaultHandler: () => showMessageOverlay(true),\n emitter: 'reactionList',\n event,\n });\n }\n }}\n style={[\n styles.reactionBubble,\n {\n backgroundColor: alignmentLeft ? fill : white,\n borderRadius: reactionSize - strokeSize * 2,\n height: reactionSize - strokeSize * 2,\n left: left + strokeSize,\n top: strokeSize,\n width: reactionSize * reactions.length - strokeSize * 2,\n },\n reactionBubble,\n ]}\n >\n {reactions.map((reaction) => (\n <Icon\n key={reaction.type}\n pathFill={reaction.own ? accent_blue : grey}\n size={reactionSize / 2}\n style={middleIcon}\n supportedReactions={supportedReactions}\n type={reaction.type}\n />\n ))}\n </TouchableOpacity>\n </View>\n ) : null}\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: ReactionListPropsWithContext<StreamChatGenerics>,\n nextProps: ReactionListPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n message: prevMessage,\n messageContentWidth: prevMessageContentWidth,\n targetedMessage: prevTargetedMessage,\n } = prevProps;\n const {\n message: nextMessage,\n messageContentWidth: nextMessageContentWidth,\n targetedMessage: nextTargetedMessage,\n } = nextProps;\n\n const messageContentWidthEqual = prevMessageContentWidth === nextMessageContentWidth;\n if (!messageContentWidthEqual) return false;\n\n const messagePinnedEqual = prevMessage.pinned === nextMessage.pinned;\n\n if (!messagePinnedEqual) return false;\n\n const targetedMessageEqual = prevTargetedMessage === nextTargetedMessage;\n\n if (!targetedMessageEqual) return false;\n\n const latestReactionsEqual =\n Array.isArray(prevMessage.latest_reactions) && Array.isArray(nextMessage.latest_reactions)\n ? prevMessage.latest_reactions.length === nextMessage.latest_reactions.length &&\n prevMessage.latest_reactions.every(\n ({ type }, index) => type === nextMessage.latest_reactions?.[index].type,\n )\n : prevMessage.latest_reactions === nextMessage.latest_reactions;\n if (!latestReactionsEqual) return false;\n\n return true;\n};\n\nconst MemoizedReactionList = React.memo(\n ReactionListWithContext,\n areEqual,\n) as typeof ReactionListWithContext;\n\nexport type ReactionListProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<Omit<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>> &\n Pick<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>;\n\n/**\n * ReactionList - A high level component which implements all the logic required for a message reaction list\n */\nexport const ReactionList = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReactionListProps<StreamChatGenerics>,\n) => {\n const {\n alignment,\n message,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n reactions,\n showMessageOverlay,\n } = useMessageContext<StreamChatGenerics>();\n const { supportedReactions, targetedMessage } = useMessagesContext<StreamChatGenerics>();\n\n return (\n <MemoizedReactionList\n {...{\n alignment,\n message,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n reactions,\n showMessageOverlay,\n supportedReactions,\n targetedMessage,\n }}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAC,uBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AA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GAAAsG,kBAAA,CAAXtG,WAAW;IACXC,OAAO,GAAAqG,kBAAA,CAAPrG,OAAO;IACPC,SAAS,GAAAoG,kBAAA,CAATpG,SAAS;IACTC,YAAY,GAAAmG,kBAAA,CAAZnG,YAAY;IACZG,SAAS,GAAAgG,kBAAA,CAAThG,SAAS;IACTG,kBAAkB,GAAA6F,kBAAA,CAAlB7F,kBAAkB;EAEpB,IAAA+F,mBAAA,GAAgD,IAAAC,mCAAkB,EAAqB,CAAC;IAAhF/H,kBAAkB,GAAA8H,mBAAA,CAAlB9H,kBAAkB;IAAEoC,eAAe,GAAA0F,mBAAA,CAAf1F,eAAe;EAE3C,OACExF,MAAA,YAAA0D,aAAA,CAACkH,oBAAoB,MAAAQ,SAAA;IAEjB/G,SAAS,EAATA,SAAS;IACTG,OAAO,EAAPA,OAAO;IACPE,WAAW,EAAXA,WAAW;IACXC,OAAO,EAAPA,OAAO;IACPC,SAAS,EAATA,SAAS;IACTC,YAAY,EAAZA,YAAY;IACZG,SAAS,EAATA,SAAS;IACTG,kBAAkB,EAAlBA,kBAAkB;IAClB/B,kBAAkB,EAAlBA,kBAAkB;IAClBoC,eAAe,EAAfA;EAAe,GAEbpB,KAAK;IAAAR,MAAA,EAAAlD,KAAA;IAAAmD,QAAA;MAAAC,QAAA,EAAAnD,YAAA;MAAAoD,UAAA;MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACqH,OAAA,CAAAN,YAAA,GAAAA,YAAA"}
|
|
@@ -63,9 +63,6 @@ var styles = _reactNative.StyleSheet.create({
|
|
|
63
63
|
flex: 1,
|
|
64
64
|
width: '100%'
|
|
65
65
|
},
|
|
66
|
-
messagePadding: {
|
|
67
|
-
paddingHorizontal: 8
|
|
68
|
-
},
|
|
69
66
|
stickyHeader: {
|
|
70
67
|
position: 'absolute',
|
|
71
68
|
top: 0
|
|
@@ -77,7 +74,7 @@ var InvertedCellRendererComponent = function InvertedCellRendererComponent(props
|
|
|
77
74
|
__self: _this,
|
|
78
75
|
__source: {
|
|
79
76
|
fileName: _jsxFileName,
|
|
80
|
-
lineNumber:
|
|
77
|
+
lineNumber: 94,
|
|
81
78
|
columnNumber: 3
|
|
82
79
|
}
|
|
83
80
|
}));
|
|
@@ -152,7 +149,9 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
152
149
|
_theme$messageList = theme.messageList,
|
|
153
150
|
container = _theme$messageList.container,
|
|
154
151
|
contentContainer = _theme$messageList.contentContainer,
|
|
155
|
-
listContainer = _theme$messageList.listContainer
|
|
152
|
+
listContainer = _theme$messageList.listContainer,
|
|
153
|
+
messageContainer = _theme$messageList.messageContainer,
|
|
154
|
+
screenPadding = theme.screenPadding;
|
|
156
155
|
var modifiedTheme = (0, _react.useMemo)(function () {
|
|
157
156
|
return (0, _ThemeContext.mergeThemes)({
|
|
158
157
|
style: myMessageTheme,
|
|
@@ -315,23 +314,25 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
315
314
|
__self: _this,
|
|
316
315
|
__source: {
|
|
317
316
|
fileName: _jsxFileName,
|
|
318
|
-
lineNumber:
|
|
317
|
+
lineNumber: 562,
|
|
319
318
|
columnNumber: 11
|
|
320
319
|
}
|
|
321
320
|
}, _react["default"].createElement(MessageSystem, {
|
|
322
321
|
message: message,
|
|
323
|
-
style:
|
|
322
|
+
style: [{
|
|
323
|
+
paddingHorizontal: screenPadding
|
|
324
|
+
}, messageContainer],
|
|
324
325
|
__self: _this,
|
|
325
326
|
__source: {
|
|
326
327
|
fileName: _jsxFileName,
|
|
327
|
-
lineNumber:
|
|
328
|
+
lineNumber: 563,
|
|
328
329
|
columnNumber: 13
|
|
329
330
|
}
|
|
330
331
|
})), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
331
332
|
__self: _this,
|
|
332
333
|
__source: {
|
|
333
334
|
fileName: _jsxFileName,
|
|
334
|
-
lineNumber:
|
|
335
|
+
lineNumber: 568,
|
|
335
336
|
columnNumber: 43
|
|
336
337
|
}
|
|
337
338
|
}));
|
|
@@ -342,7 +343,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
342
343
|
__self: _this,
|
|
343
344
|
__source: {
|
|
344
345
|
fileName: _jsxFileName,
|
|
345
|
-
lineNumber:
|
|
346
|
+
lineNumber: 578,
|
|
346
347
|
columnNumber: 36
|
|
347
348
|
}
|
|
348
349
|
}), _react["default"].createElement(_ThemeContext.ThemeProvider, {
|
|
@@ -350,7 +351,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
350
351
|
__self: _this,
|
|
351
352
|
__source: {
|
|
352
353
|
fileName: _jsxFileName,
|
|
353
|
-
lineNumber:
|
|
354
|
+
lineNumber: 579,
|
|
354
355
|
columnNumber: 9
|
|
355
356
|
}
|
|
356
357
|
}, _react["default"].createElement(_reactNative.View, {
|
|
@@ -358,7 +359,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
358
359
|
__self: _this,
|
|
359
360
|
__source: {
|
|
360
361
|
fileName: _jsxFileName,
|
|
361
|
-
lineNumber:
|
|
362
|
+
lineNumber: 580,
|
|
362
363
|
columnNumber: 11
|
|
363
364
|
}
|
|
364
365
|
}, _react["default"].createElement(Message, {
|
|
@@ -369,12 +370,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
369
370
|
message: message,
|
|
370
371
|
onThreadSelect: onThreadSelect,
|
|
371
372
|
showUnreadUnderlay: showUnreadUnderlay,
|
|
372
|
-
style:
|
|
373
|
+
style: [{
|
|
374
|
+
paddingHorizontal: screenPadding
|
|
375
|
+
}, messageContainer],
|
|
373
376
|
threadList: threadList,
|
|
374
377
|
__self: _this,
|
|
375
378
|
__source: {
|
|
376
379
|
fileName: _jsxFileName,
|
|
377
|
-
lineNumber:
|
|
380
|
+
lineNumber: 581,
|
|
378
381
|
columnNumber: 13
|
|
379
382
|
}
|
|
380
383
|
}))), !shouldApplyAndroidWorkaround && (0, _useMessageList.isMessageWithStylesReadByAndDateSeparator)(message) && message.dateSeparator && _react["default"].createElement(InlineDateSeparator, {
|
|
@@ -382,14 +385,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
382
385
|
__self: _this,
|
|
383
386
|
__source: {
|
|
384
387
|
fileName: _jsxFileName,
|
|
385
|
-
lineNumber:
|
|
388
|
+
lineNumber: 598,
|
|
386
389
|
columnNumber: 36
|
|
387
390
|
}
|
|
388
391
|
}), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
389
392
|
__self: _this,
|
|
390
393
|
__source: {
|
|
391
394
|
fileName: _jsxFileName,
|
|
392
|
-
lineNumber:
|
|
395
|
+
lineNumber: 600,
|
|
393
396
|
columnNumber: 41
|
|
394
397
|
}
|
|
395
398
|
})) : _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
|
|
@@ -397,7 +400,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
397
400
|
__self: _this,
|
|
398
401
|
__source: {
|
|
399
402
|
fileName: _jsxFileName,
|
|
400
|
-
lineNumber:
|
|
403
|
+
lineNumber: 604,
|
|
401
404
|
columnNumber: 9
|
|
402
405
|
}
|
|
403
406
|
}, shouldApplyAndroidWorkaround && (0, _useMessageList.isMessageWithStylesReadByAndDateSeparator)(message) && message.dateSeparator && _react["default"].createElement(InlineDateSeparator, {
|
|
@@ -405,7 +408,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
405
408
|
__self: _this,
|
|
406
409
|
__source: {
|
|
407
410
|
fileName: _jsxFileName,
|
|
408
|
-
lineNumber:
|
|
411
|
+
lineNumber: 607,
|
|
409
412
|
columnNumber: 38
|
|
410
413
|
}
|
|
411
414
|
}), _react["default"].createElement(Message, {
|
|
@@ -416,12 +419,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
416
419
|
message: message,
|
|
417
420
|
onThreadSelect: onThreadSelect,
|
|
418
421
|
showUnreadUnderlay: showUnreadUnderlay,
|
|
419
|
-
style:
|
|
422
|
+
style: [{
|
|
423
|
+
paddingHorizontal: screenPadding
|
|
424
|
+
}, messageContainer],
|
|
420
425
|
threadList: threadList,
|
|
421
426
|
__self: _this,
|
|
422
427
|
__source: {
|
|
423
428
|
fileName: _jsxFileName,
|
|
424
|
-
lineNumber:
|
|
429
|
+
lineNumber: 608,
|
|
425
430
|
columnNumber: 11
|
|
426
431
|
}
|
|
427
432
|
})), !shouldApplyAndroidWorkaround && (0, _useMessageList.isMessageWithStylesReadByAndDateSeparator)(message) && message.dateSeparator && _react["default"].createElement(InlineDateSeparator, {
|
|
@@ -429,14 +434,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
429
434
|
__self: _this,
|
|
430
435
|
__source: {
|
|
431
436
|
fileName: _jsxFileName,
|
|
432
|
-
lineNumber:
|
|
437
|
+
lineNumber: 628,
|
|
433
438
|
columnNumber: 36
|
|
434
439
|
}
|
|
435
440
|
}), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
436
441
|
__self: _this,
|
|
437
442
|
__source: {
|
|
438
443
|
fileName: _jsxFileName,
|
|
439
|
-
lineNumber:
|
|
444
|
+
lineNumber: 630,
|
|
440
445
|
columnNumber: 41
|
|
441
446
|
}
|
|
442
447
|
}));
|
|
@@ -744,7 +749,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
744
749
|
__self: _this,
|
|
745
750
|
__source: {
|
|
746
751
|
fileName: _jsxFileName,
|
|
747
|
-
lineNumber:
|
|
752
|
+
lineNumber: 1007,
|
|
748
753
|
columnNumber: 7
|
|
749
754
|
}
|
|
750
755
|
}, _react["default"].createElement(EmptyStateIndicator, {
|
|
@@ -752,7 +757,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
752
757
|
__self: _this,
|
|
753
758
|
__source: {
|
|
754
759
|
fileName: _jsxFileName,
|
|
755
|
-
lineNumber:
|
|
760
|
+
lineNumber: 1011,
|
|
756
761
|
columnNumber: 9
|
|
757
762
|
}
|
|
758
763
|
}));
|
|
@@ -763,14 +768,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
763
768
|
__self: _this,
|
|
764
769
|
__source: {
|
|
765
770
|
fileName: _jsxFileName,
|
|
766
|
-
lineNumber:
|
|
771
|
+
lineNumber: 1019,
|
|
767
772
|
columnNumber: 7
|
|
768
773
|
}
|
|
769
774
|
}, _react["default"].createElement(FooterComponent, {
|
|
770
775
|
__self: _this,
|
|
771
776
|
__source: {
|
|
772
777
|
fileName: _jsxFileName,
|
|
773
|
-
lineNumber:
|
|
778
|
+
lineNumber: 1020,
|
|
774
779
|
columnNumber: 9
|
|
775
780
|
}
|
|
776
781
|
}));
|
|
@@ -781,14 +786,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
781
786
|
__self: _this,
|
|
782
787
|
__source: {
|
|
783
788
|
fileName: _jsxFileName,
|
|
784
|
-
lineNumber:
|
|
789
|
+
lineNumber: 1028,
|
|
785
790
|
columnNumber: 7
|
|
786
791
|
}
|
|
787
792
|
}, _react["default"].createElement(HeaderComponent, {
|
|
788
793
|
__self: _this,
|
|
789
794
|
__source: {
|
|
790
795
|
fileName: _jsxFileName,
|
|
791
|
-
lineNumber:
|
|
796
|
+
lineNumber: 1029,
|
|
792
797
|
columnNumber: 9
|
|
793
798
|
}
|
|
794
799
|
}));
|
|
@@ -800,7 +805,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
800
805
|
__self: _this,
|
|
801
806
|
__source: {
|
|
802
807
|
fileName: _jsxFileName,
|
|
803
|
-
lineNumber:
|
|
808
|
+
lineNumber: 1039,
|
|
804
809
|
columnNumber: 7
|
|
805
810
|
}
|
|
806
811
|
}, _react["default"].createElement(LoadingIndicator, {
|
|
@@ -808,7 +813,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
808
813
|
__self: _this,
|
|
809
814
|
__source: {
|
|
810
815
|
fileName: _jsxFileName,
|
|
811
|
-
lineNumber:
|
|
816
|
+
lineNumber: 1040,
|
|
812
817
|
columnNumber: 9
|
|
813
818
|
}
|
|
814
819
|
}));
|
|
@@ -820,7 +825,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
820
825
|
__self: _this,
|
|
821
826
|
__source: {
|
|
822
827
|
fileName: _jsxFileName,
|
|
823
|
-
lineNumber:
|
|
828
|
+
lineNumber: 1047,
|
|
824
829
|
columnNumber: 30
|
|
825
830
|
}
|
|
826
831
|
});
|
|
@@ -829,7 +834,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
829
834
|
__self: _this,
|
|
830
835
|
__source: {
|
|
831
836
|
fileName: _jsxFileName,
|
|
832
|
-
lineNumber:
|
|
837
|
+
lineNumber: 1048,
|
|
833
838
|
columnNumber: 46
|
|
834
839
|
}
|
|
835
840
|
});
|
|
@@ -850,7 +855,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
850
855
|
__self: _this,
|
|
851
856
|
__source: {
|
|
852
857
|
fileName: _jsxFileName,
|
|
853
|
-
lineNumber:
|
|
858
|
+
lineNumber: 1064,
|
|
854
859
|
columnNumber: 5
|
|
855
860
|
}
|
|
856
861
|
}, _react["default"].createElement(FlatList, (0, _extends2["default"])({
|
|
@@ -886,7 +891,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
886
891
|
__self: _this,
|
|
887
892
|
__source: {
|
|
888
893
|
fileName: _jsxFileName,
|
|
889
|
-
lineNumber:
|
|
894
|
+
lineNumber: 1068,
|
|
890
895
|
columnNumber: 7
|
|
891
896
|
}
|
|
892
897
|
})), !loading && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
|
|
@@ -894,28 +899,28 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
894
899
|
__self: _this,
|
|
895
900
|
__source: {
|
|
896
901
|
fileName: _jsxFileName,
|
|
897
|
-
lineNumber:
|
|
902
|
+
lineNumber: 1113,
|
|
898
903
|
columnNumber: 11
|
|
899
904
|
}
|
|
900
905
|
}, _react["default"].createElement(StickyHeaderComponent, {
|
|
901
906
|
__self: _this,
|
|
902
907
|
__source: {
|
|
903
908
|
fileName: _jsxFileName,
|
|
904
|
-
lineNumber:
|
|
909
|
+
lineNumber: 1114,
|
|
905
910
|
columnNumber: 13
|
|
906
911
|
}
|
|
907
912
|
})), !disableTypingIndicator && TypingIndicator && _react["default"].createElement(TypingIndicatorContainer, {
|
|
908
913
|
__self: _this,
|
|
909
914
|
__source: {
|
|
910
915
|
fileName: _jsxFileName,
|
|
911
|
-
lineNumber:
|
|
916
|
+
lineNumber: 1117,
|
|
912
917
|
columnNumber: 13
|
|
913
918
|
}
|
|
914
919
|
}, _react["default"].createElement(TypingIndicator, {
|
|
915
920
|
__self: _this,
|
|
916
921
|
__source: {
|
|
917
922
|
fileName: _jsxFileName,
|
|
918
|
-
lineNumber:
|
|
923
|
+
lineNumber: 1118,
|
|
919
924
|
columnNumber: 15
|
|
920
925
|
}
|
|
921
926
|
})), _react["default"].createElement(ScrollToBottomButton, {
|
|
@@ -925,14 +930,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
925
930
|
__self: _this,
|
|
926
931
|
__source: {
|
|
927
932
|
fileName: _jsxFileName,
|
|
928
|
-
lineNumber:
|
|
933
|
+
lineNumber: 1121,
|
|
929
934
|
columnNumber: 11
|
|
930
935
|
}
|
|
931
936
|
})), _react["default"].createElement(NetworkDownIndicator, {
|
|
932
937
|
__self: _this,
|
|
933
938
|
__source: {
|
|
934
939
|
fileName: _jsxFileName,
|
|
935
|
-
lineNumber:
|
|
940
|
+
lineNumber: 1128,
|
|
936
941
|
columnNumber: 7
|
|
937
942
|
}
|
|
938
943
|
}));
|
|
@@ -1039,7 +1044,7 @@ var MessageList = function MessageList(props) {
|
|
|
1039
1044
|
__self: _this,
|
|
1040
1045
|
__source: {
|
|
1041
1046
|
fileName: _jsxFileName,
|
|
1042
|
-
lineNumber:
|
|
1047
|
+
lineNumber: 1186,
|
|
1043
1048
|
columnNumber: 5
|
|
1044
1049
|
}
|
|
1045
1050
|
}));
|