@planningcenter/chat-react-native 4.4.1-qa-staging.13 → 4.4.1-qa-staging.15
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/build/components/conversation/message.d.ts +2 -1
- package/build/components/conversation/message.d.ts.map +1 -1
- package/build/components/conversation/message.js +190 -161
- package/build/components/conversation/message.js.map +1 -1
- package/build/components/conversation/message_list.d.ts.map +1 -1
- package/build/components/conversation/message_list.js +35 -31
- package/build/components/conversation/message_list.js.map +1 -1
- package/build/components/conversation/message_reaction.d.ts +2 -1
- package/build/components/conversation/message_reaction.d.ts.map +1 -1
- package/build/components/conversation/message_reaction.js +67 -60
- package/build/components/conversation/message_reaction.js.map +1 -1
- package/build/components/conversation/messages_disabled_banners.d.ts +7 -5
- package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -1
- package/build/components/conversation/messages_disabled_banners.js +15 -14
- package/build/components/conversation/messages_disabled_banners.js.map +1 -1
- package/build/components/conversation/reply_shadow_message.d.ts.map +1 -1
- package/build/components/conversation/reply_shadow_message.js +84 -83
- package/build/components/conversation/reply_shadow_message.js.map +1 -1
- package/build/components/conversation/system_message.d.ts +2 -1
- package/build/components/conversation/system_message.d.ts.map +1 -1
- package/build/components/conversation/system_message.js +87 -65
- package/build/components/conversation/system_message.js.map +1 -1
- package/build/components/display/filter_dropdown.d.ts +13 -0
- package/build/components/display/filter_dropdown.d.ts.map +1 -0
- package/build/components/display/filter_dropdown.js +188 -0
- package/build/components/display/filter_dropdown.js.map +1 -0
- package/build/components/display/index.d.ts +1 -0
- package/build/components/display/index.d.ts.map +1 -1
- package/build/components/display/index.js +1 -0
- package/build/components/display/index.js.map +1 -1
- package/build/hooks/use_conversation.d.ts +73 -1
- package/build/hooks/use_conversation.d.ts.map +1 -1
- package/build/hooks/use_conversation.js +122 -3
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_unarchive_conversation_action.d.ts +7 -0
- package/build/hooks/use_unarchive_conversation_action.d.ts.map +1 -0
- package/build/hooks/use_unarchive_conversation_action.js +52 -0
- package/build/hooks/use_unarchive_conversation_action.js.map +1 -0
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.js +84 -61
- package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js +487 -393
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +12 -9
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/screens/design_system_screen.d.ts.map +1 -1
- package/build/screens/design_system_screen.js +275 -215
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/screens/message_actions_screen.d.ts.map +1 -1
- package/build/screens/message_actions_screen.js +112 -92
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/types/resources/member_ability.d.ts +2 -0
- package/build/types/resources/member_ability.d.ts.map +1 -1
- package/build/types/resources/member_ability.js.map +1 -1
- package/build/utils/archived_conversation.d.ts +5 -0
- package/build/utils/archived_conversation.d.ts.map +1 -0
- package/build/utils/archived_conversation.js +5 -0
- package/build/utils/archived_conversation.js.map +1 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +1 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/native_adapters/configuration.d.ts +3 -0
- package/build/utils/native_adapters/configuration.d.ts.map +1 -1
- package/build/utils/native_adapters/configuration.js +3 -0
- package/build/utils/native_adapters/configuration.js.map +1 -1
- package/build/utils/native_adapters/index.d.ts +1 -0
- package/build/utils/native_adapters/index.d.ts.map +1 -1
- package/build/utils/native_adapters/index.js +1 -0
- package/build/utils/native_adapters/index.js.map +1 -1
- package/build/utils/native_adapters/menu.d.ts +40 -0
- package/build/utils/native_adapters/menu.d.ts.map +1 -0
- package/build/utils/native_adapters/menu.js +55 -0
- package/build/utils/native_adapters/menu.js.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/screens/message_actions_screen.test.tsx +65 -2
- package/src/components/conversation/__tests__/message_list.test.tsx +68 -2
- package/src/components/conversation/__tests__/system_message.test.tsx +3 -1
- package/src/components/conversation/message.tsx +11 -14
- package/src/components/conversation/message_list.tsx +9 -1
- package/src/components/conversation/message_reaction.tsx +7 -2
- package/src/components/conversation/messages_disabled_banners.tsx +17 -18
- package/src/components/conversation/reply_shadow_message.tsx +9 -8
- package/src/components/conversation/system_message.tsx +24 -10
- package/src/components/display/__tests__/filter_dropdown.test.tsx +106 -0
- package/src/components/display/filter_dropdown.tsx +123 -0
- package/src/components/display/index.ts +1 -0
- package/src/hooks/__tests__/use_conversation_archive.test.tsx +130 -0
- package/src/hooks/__tests__/use_conversation_jolt_events.test.tsx +74 -0
- package/src/hooks/__tests__/use_unarchive_conversation_action.test.tsx +67 -0
- package/src/hooks/use_conversation.ts +41 -3
- package/src/hooks/use_unarchive_conversation_action.ts +24 -0
- package/src/screens/__tests__/conversation_details_screen.test.tsx +289 -0
- package/src/screens/attachment_actions/__tests__/attachment_actions_screen.test.tsx +72 -0
- package/src/screens/attachment_actions/attachment_actions_screen.tsx +3 -1
- package/src/screens/conversation_details_screen.tsx +78 -14
- package/src/screens/conversation_screen.tsx +3 -1
- package/src/screens/design_system_screen.tsx +26 -0
- package/src/screens/message_actions_screen.tsx +29 -20
- package/src/types/resources/member_ability.ts +2 -0
- package/src/utils/archived_conversation.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/native_adapters/__tests__/menu.test.tsx +42 -0
- package/src/utils/native_adapters/configuration.ts +5 -0
- package/src/utils/native_adapters/index.ts +1 -0
- package/src/utils/native_adapters/menu.tsx +68 -0
|
@@ -5,12 +5,13 @@ import { MessageResource } from '../../types';
|
|
|
5
5
|
*/
|
|
6
6
|
interface MessageProps extends MessageResource {
|
|
7
7
|
canDeleteNonAuthoredMessages: boolean;
|
|
8
|
+
conversationDisabled: boolean;
|
|
8
9
|
conversation_id: number;
|
|
9
10
|
readByOthers?: boolean;
|
|
10
11
|
inReplyScreen?: boolean;
|
|
11
12
|
highlighted?: boolean;
|
|
12
13
|
onHighlightShown?: () => void;
|
|
13
14
|
}
|
|
14
|
-
export declare const Message: React.MemoExoticComponent<({ canDeleteNonAuthoredMessages, conversation_id, readByOthers, inReplyScreen, highlighted, onHighlightShown, ...message }: MessageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
+
export declare const Message: React.MemoExoticComponent<({ canDeleteNonAuthoredMessages, conversationDisabled, conversation_id, readByOthers, inReplyScreen, highlighted, onHighlightShown, ...message }: MessageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
16
|
export {};
|
|
16
17
|
//# sourceMappingURL=message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/message.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0B,MAAM,OAAO,CAAA;AAoB9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAmB7C;;GAEG;AACH,UAAU,YAAa,SAAQ,eAAe;IAC5C,4BAA4B,EAAE,OAAO,CAAA;IACrC,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/message.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0B,MAAM,OAAO,CAAA;AAoB9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAmB7C;;GAEG;AACH,UAAU,YAAa,SAAQ,eAAe;IAC5C,4BAA4B,EAAE,OAAO,CAAA;IACrC,oBAAoB,EAAE,OAAO,CAAA;IAC7B,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,OAAO,8KASjB,YAAY,6CAySb,CAAA"}
|
|
@@ -27,9 +27,10 @@ import { TheirReplyConnector, MyReplyConnector, AVATAR_CONNECTOR_SPACING } from
|
|
|
27
27
|
*/
|
|
28
28
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
29
29
|
export const Message = memo(function MessageRow(t0) {
|
|
30
|
-
const $ = _c(
|
|
30
|
+
const $ = _c(84);
|
|
31
31
|
const {
|
|
32
32
|
canDeleteNonAuthoredMessages,
|
|
33
|
+
conversationDisabled,
|
|
33
34
|
conversation_id,
|
|
34
35
|
readByOthers,
|
|
35
36
|
inReplyScreen,
|
|
@@ -90,6 +91,7 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
90
91
|
const replyRootAuthorName = replyToReplyRootMessage ? replyRoot?.author.name : author.name;
|
|
91
92
|
const messageText = isDeletedReplyRootMessage ? "Message deleted" : text;
|
|
92
93
|
const messageBottomMargin = message.lastInGroup || message.nextIsReplyShadowMessage ? 16 : hasReactions || showMessageMeta || showReplyCountButton ? 8 : 4;
|
|
94
|
+
const spaceBelowPressable = messageBottomMargin - MESSAGE_BACKGROUND_OUTSET;
|
|
93
95
|
const messageIsReplyLabel = replyToReplyRootMessage ? "Reply" : "";
|
|
94
96
|
const attachmentLabel = some(attachments) ? pluralize(attachments.length, "attachment") : "";
|
|
95
97
|
const replyCountLabel = isReplyRootMessage ? replyCountText : "";
|
|
@@ -205,52 +207,78 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
205
207
|
};
|
|
206
208
|
const T0 = Pressable;
|
|
207
209
|
const t6 = `message-${message.id}`;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
210
|
+
let t7;
|
|
211
|
+
if ($[8] !== spaceBelowPressable) {
|
|
212
|
+
t7 = {
|
|
213
|
+
marginBottom: spaceBelowPressable
|
|
214
|
+
};
|
|
215
|
+
$[8] = spaceBelowPressable;
|
|
216
|
+
$[9] = t7;
|
|
217
|
+
} else {
|
|
218
|
+
t7 = $[9];
|
|
219
|
+
}
|
|
220
|
+
let t8;
|
|
221
|
+
if ($[10] !== styles.pressable || $[11] !== t7) {
|
|
222
|
+
t8 = [styles.pressable, t7];
|
|
223
|
+
$[10] = styles.pressable;
|
|
224
|
+
$[11] = t7;
|
|
225
|
+
$[12] = t8;
|
|
226
|
+
} else {
|
|
227
|
+
t8 = $[12];
|
|
228
|
+
}
|
|
229
|
+
const t9 = isDeleting ? undefined : handleMessageLongPress;
|
|
230
|
+
const t10 = isDeleting ? undefined : handleMessagePress;
|
|
231
|
+
const t11 = isDeleting ? undefined : handleMessagePressIn;
|
|
232
|
+
const t12 = isDeleting ? undefined : handleMessagePressOut;
|
|
233
|
+
let t13;
|
|
234
|
+
if ($[13] !== colors.androidRippleNeutral) {
|
|
235
|
+
t13 = {
|
|
215
236
|
color: colors.androidRippleNeutral,
|
|
216
237
|
borderless: false,
|
|
217
238
|
foreground: true
|
|
218
239
|
};
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
240
|
+
$[13] = colors.androidRippleNeutral;
|
|
241
|
+
$[14] = t13;
|
|
242
|
+
} else {
|
|
243
|
+
t13 = $[14];
|
|
244
|
+
}
|
|
245
|
+
const t14 = "button";
|
|
246
|
+
const t15 = "Long press to view message actions like reacting and copying.";
|
|
247
|
+
const t16 = isReplyRootMessage ? accessibilityActions : undefined;
|
|
248
|
+
const t17 = isReplyRootMessage ? handleAccessibilityAction : undefined;
|
|
249
|
+
const t18 = isDeletedReplyRootMessage || isDeleting;
|
|
250
|
+
let t19;
|
|
251
|
+
if ($[15] !== animatedBackgroundColor) {
|
|
252
|
+
t19 = /*#__PURE__*/_jsx(Animated.View, {
|
|
253
|
+
style: [StyleSheet.absoluteFill, animatedBackgroundColor]
|
|
254
|
+
});
|
|
255
|
+
$[15] = animatedBackgroundColor;
|
|
256
|
+
$[16] = t19;
|
|
221
257
|
} else {
|
|
222
|
-
|
|
258
|
+
t19 = $[16];
|
|
223
259
|
}
|
|
224
|
-
const t12 = "button";
|
|
225
|
-
const t13 = "Long press to view message actions like reacting and copying.";
|
|
226
|
-
const t14 = isReplyRootMessage ? accessibilityActions : undefined;
|
|
227
|
-
const t15 = isReplyRootMessage ? handleAccessibilityAction : undefined;
|
|
228
|
-
const t16 = isDeletedReplyRootMessage || isDeleting;
|
|
229
260
|
const T1 = View;
|
|
230
|
-
const
|
|
231
|
-
let
|
|
232
|
-
if ($[
|
|
233
|
-
|
|
234
|
-
|
|
261
|
+
const t20 = -spaceBelowPressable;
|
|
262
|
+
let t21;
|
|
263
|
+
if ($[17] !== t20) {
|
|
264
|
+
t21 = {
|
|
265
|
+
marginBottom: t20
|
|
235
266
|
};
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
267
|
+
$[17] = t20;
|
|
268
|
+
$[18] = t21;
|
|
238
269
|
} else {
|
|
239
|
-
|
|
270
|
+
t21 = $[18];
|
|
240
271
|
}
|
|
241
|
-
let
|
|
242
|
-
if ($[
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
$[
|
|
247
|
-
$[13] = styles.background;
|
|
248
|
-
$[14] = t18;
|
|
249
|
-
$[15] = t19;
|
|
272
|
+
let t22;
|
|
273
|
+
if ($[19] !== styles.message || $[20] !== t21) {
|
|
274
|
+
t22 = [styles.message, t21];
|
|
275
|
+
$[19] = styles.message;
|
|
276
|
+
$[20] = t21;
|
|
277
|
+
$[21] = t22;
|
|
250
278
|
} else {
|
|
251
|
-
|
|
279
|
+
t22 = $[21];
|
|
252
280
|
}
|
|
253
|
-
const
|
|
281
|
+
const t23 = !message.mine && /*#__PURE__*/_jsxs(View, {
|
|
254
282
|
children: [renderAuthor ? /*#__PURE__*/_jsx(Avatar, {
|
|
255
283
|
size: "md",
|
|
256
284
|
sourceUri: author.avatar,
|
|
@@ -267,38 +295,38 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
267
295
|
})]
|
|
268
296
|
});
|
|
269
297
|
const T2 = View;
|
|
270
|
-
let
|
|
271
|
-
if ($[
|
|
272
|
-
|
|
298
|
+
let t24;
|
|
299
|
+
if ($[22] !== messageBottomMargin) {
|
|
300
|
+
t24 = {
|
|
273
301
|
marginBottom: messageBottomMargin
|
|
274
302
|
};
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
303
|
+
$[22] = messageBottomMargin;
|
|
304
|
+
$[23] = t24;
|
|
277
305
|
} else {
|
|
278
|
-
|
|
306
|
+
t24 = $[23];
|
|
279
307
|
}
|
|
280
|
-
let
|
|
281
|
-
if ($[
|
|
282
|
-
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
$[
|
|
308
|
+
let t25;
|
|
309
|
+
if ($[24] !== styles.messageContent || $[25] !== t24) {
|
|
310
|
+
t25 = [styles.messageContent, t24];
|
|
311
|
+
$[24] = styles.messageContent;
|
|
312
|
+
$[25] = t24;
|
|
313
|
+
$[26] = t25;
|
|
286
314
|
} else {
|
|
287
|
-
|
|
315
|
+
t25 = $[26];
|
|
288
316
|
}
|
|
289
|
-
const
|
|
317
|
+
const t26 = renderAuthor && !isDeletedReplyRootMessage && /*#__PURE__*/_jsx(Text, {
|
|
290
318
|
variant: "footnote",
|
|
291
319
|
style: styles.authorName,
|
|
292
320
|
children: author.name
|
|
293
321
|
});
|
|
294
|
-
let
|
|
295
|
-
if ($[
|
|
296
|
-
|
|
297
|
-
$[
|
|
322
|
+
let t27;
|
|
323
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
324
|
+
t27 = e => setMessageBubbleHeight(e.nativeEvent.layout.height);
|
|
325
|
+
$[27] = t27;
|
|
298
326
|
} else {
|
|
299
|
-
|
|
327
|
+
t27 = $[27];
|
|
300
328
|
}
|
|
301
|
-
const
|
|
329
|
+
const t28 = isDeletedReplyRootMessage ? /*#__PURE__*/_jsx(View, {
|
|
302
330
|
style: styles.messageText,
|
|
303
331
|
children: /*#__PURE__*/_jsx(Text, {
|
|
304
332
|
style: styles.replyRootDeletedText,
|
|
@@ -319,20 +347,20 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
319
347
|
})
|
|
320
348
|
})]
|
|
321
349
|
});
|
|
322
|
-
let
|
|
323
|
-
if ($[
|
|
324
|
-
|
|
350
|
+
let t29;
|
|
351
|
+
if ($[28] !== styles.messageBubble || $[29] !== t28) {
|
|
352
|
+
t29 = /*#__PURE__*/_jsx(View, {
|
|
325
353
|
style: styles.messageBubble,
|
|
326
|
-
onLayout:
|
|
327
|
-
children:
|
|
354
|
+
onLayout: t27,
|
|
355
|
+
children: t28
|
|
328
356
|
});
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
357
|
+
$[28] = styles.messageBubble;
|
|
358
|
+
$[29] = t28;
|
|
359
|
+
$[30] = t29;
|
|
332
360
|
} else {
|
|
333
|
-
|
|
361
|
+
t29 = $[30];
|
|
334
362
|
}
|
|
335
|
-
const
|
|
363
|
+
const t30 = showReplyCountButton && /*#__PURE__*/_jsx(TextButton, {
|
|
336
364
|
variant: "footnote",
|
|
337
365
|
onPress: handleNavigateToReplyPress,
|
|
338
366
|
style: styles.messageReplyCount,
|
|
@@ -340,18 +368,19 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
340
368
|
accessibilityRole: "link",
|
|
341
369
|
children: replyCountText
|
|
342
370
|
});
|
|
343
|
-
const
|
|
371
|
+
const t31 = hasReactions && !isDeletedReplyRootMessage && /*#__PURE__*/_jsx(View, {
|
|
344
372
|
style: styles.messageReactions,
|
|
345
373
|
children: reactionCounts.map(reaction_0 => /*#__PURE__*/_jsx(MessageReaction, {
|
|
346
374
|
reaction: reaction_0,
|
|
347
375
|
onLongPress: handleReactionLongPress,
|
|
348
376
|
message: message,
|
|
349
|
-
conversationId: conversation_id
|
|
377
|
+
conversationId: conversation_id,
|
|
378
|
+
disabled: conversationDisabled
|
|
350
379
|
}, reaction_0.value))
|
|
351
380
|
});
|
|
352
|
-
let
|
|
353
|
-
if ($[
|
|
354
|
-
|
|
381
|
+
let t32;
|
|
382
|
+
if ($[31] !== colors.iconColorDefaultSecondary || $[32] !== error || $[33] !== handleRetry || $[34] !== isDeletedReplyRootMessage || $[35] !== isPersisted || $[36] !== messagePendingLabel || $[37] !== pending || $[38] !== readByOthers || $[39] !== retryFailedSaveMutation || $[40] !== showMessageMeta || $[41] !== showReadReceipts || $[42] !== styles.editedText || $[43] !== styles.errorContainer || $[44] !== styles.errorIcon || $[45] !== styles.errorText || $[46] !== styles.messageMeta || $[47] !== styles.pendingIndicatorContainer || $[48] !== temporarilyHidePendingState || $[49] !== timestamp || $[50] !== wasEdited) {
|
|
383
|
+
t32 = showMessageMeta && !isDeletedReplyRootMessage && /*#__PURE__*/_jsxs(View, {
|
|
355
384
|
style: styles.messageMeta,
|
|
356
385
|
children: [showReadReceipts && /*#__PURE__*/_jsx(MessageReadReceipts, {
|
|
357
386
|
read: readByOthers
|
|
@@ -396,109 +425,111 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
396
425
|
})]
|
|
397
426
|
})]
|
|
398
427
|
});
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
428
|
+
$[31] = colors.iconColorDefaultSecondary;
|
|
429
|
+
$[32] = error;
|
|
430
|
+
$[33] = handleRetry;
|
|
431
|
+
$[34] = isDeletedReplyRootMessage;
|
|
432
|
+
$[35] = isPersisted;
|
|
433
|
+
$[36] = messagePendingLabel;
|
|
434
|
+
$[37] = pending;
|
|
435
|
+
$[38] = readByOthers;
|
|
436
|
+
$[39] = retryFailedSaveMutation;
|
|
437
|
+
$[40] = showMessageMeta;
|
|
438
|
+
$[41] = showReadReceipts;
|
|
439
|
+
$[42] = styles.editedText;
|
|
440
|
+
$[43] = styles.errorContainer;
|
|
441
|
+
$[44] = styles.errorIcon;
|
|
442
|
+
$[45] = styles.errorText;
|
|
443
|
+
$[46] = styles.messageMeta;
|
|
444
|
+
$[47] = styles.pendingIndicatorContainer;
|
|
445
|
+
$[48] = temporarilyHidePendingState;
|
|
446
|
+
$[49] = timestamp;
|
|
447
|
+
$[50] = wasEdited;
|
|
448
|
+
$[51] = t32;
|
|
420
449
|
} else {
|
|
421
|
-
|
|
450
|
+
t32 = $[51];
|
|
422
451
|
}
|
|
423
|
-
let
|
|
424
|
-
if ($[
|
|
425
|
-
|
|
426
|
-
style:
|
|
427
|
-
children: [
|
|
452
|
+
let t33;
|
|
453
|
+
if ($[52] !== T2 || $[53] !== t25 || $[54] !== t26 || $[55] !== t29 || $[56] !== t30 || $[57] !== t31 || $[58] !== t32) {
|
|
454
|
+
t33 = /*#__PURE__*/_jsxs(T2, {
|
|
455
|
+
style: t25,
|
|
456
|
+
children: [t26, t29, t30, t31, t32]
|
|
428
457
|
});
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
458
|
+
$[52] = T2;
|
|
459
|
+
$[53] = t25;
|
|
460
|
+
$[54] = t26;
|
|
461
|
+
$[55] = t29;
|
|
462
|
+
$[56] = t30;
|
|
463
|
+
$[57] = t31;
|
|
464
|
+
$[58] = t32;
|
|
465
|
+
$[59] = t33;
|
|
437
466
|
} else {
|
|
438
|
-
|
|
467
|
+
t33 = $[59];
|
|
439
468
|
}
|
|
440
|
-
let
|
|
441
|
-
if ($[
|
|
442
|
-
|
|
469
|
+
let t34;
|
|
470
|
+
if ($[60] !== message || $[61] !== messageBubbleHeight) {
|
|
471
|
+
t34 = message.mine && /*#__PURE__*/_jsx(MyReplyConnector, {
|
|
443
472
|
message: message,
|
|
444
473
|
messageBubbleHeight: messageBubbleHeight
|
|
445
474
|
});
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
475
|
+
$[60] = message;
|
|
476
|
+
$[61] = messageBubbleHeight;
|
|
477
|
+
$[62] = t34;
|
|
449
478
|
} else {
|
|
450
|
-
|
|
479
|
+
t34 = $[62];
|
|
451
480
|
}
|
|
452
|
-
let
|
|
453
|
-
if ($[
|
|
454
|
-
|
|
455
|
-
style:
|
|
456
|
-
children: [
|
|
481
|
+
let t35;
|
|
482
|
+
if ($[63] !== T1 || $[64] !== t22 || $[65] !== t23 || $[66] !== t33 || $[67] !== t34) {
|
|
483
|
+
t35 = /*#__PURE__*/_jsxs(T1, {
|
|
484
|
+
style: t22,
|
|
485
|
+
children: [t23, t33, t34]
|
|
457
486
|
});
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
461
|
-
$[
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[63] = t32;
|
|
487
|
+
$[63] = T1;
|
|
488
|
+
$[64] = t22;
|
|
489
|
+
$[65] = t23;
|
|
490
|
+
$[66] = t33;
|
|
491
|
+
$[67] = t34;
|
|
492
|
+
$[68] = t35;
|
|
465
493
|
} else {
|
|
466
|
-
|
|
494
|
+
t35 = $[68];
|
|
467
495
|
}
|
|
468
|
-
let
|
|
469
|
-
if ($[
|
|
470
|
-
|
|
496
|
+
let t36;
|
|
497
|
+
if ($[69] !== T0 || $[70] !== accessibilityLabel || $[71] !== t10 || $[72] !== t11 || $[73] !== t12 || $[74] !== t13 || $[75] !== t16 || $[76] !== t17 || $[77] !== t18 || $[78] !== t19 || $[79] !== t35 || $[80] !== t6 || $[81] !== t8 || $[82] !== t9) {
|
|
498
|
+
t36 = /*#__PURE__*/_jsxs(T0, {
|
|
471
499
|
testID: t6,
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
500
|
+
style: t8,
|
|
501
|
+
onLongPress: t9,
|
|
502
|
+
onPress: t10,
|
|
503
|
+
onPressIn: t11,
|
|
504
|
+
onPressOut: t12,
|
|
505
|
+
android_ripple: t13,
|
|
506
|
+
accessibilityRole: t14,
|
|
478
507
|
accessibilityLabel: accessibilityLabel,
|
|
479
|
-
accessibilityHint:
|
|
480
|
-
accessibilityActions:
|
|
481
|
-
onAccessibilityAction:
|
|
482
|
-
disabled:
|
|
483
|
-
children:
|
|
508
|
+
accessibilityHint: t15,
|
|
509
|
+
accessibilityActions: t16,
|
|
510
|
+
onAccessibilityAction: t17,
|
|
511
|
+
disabled: t18,
|
|
512
|
+
children: [t19, t35]
|
|
484
513
|
});
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
514
|
+
$[69] = T0;
|
|
515
|
+
$[70] = accessibilityLabel;
|
|
516
|
+
$[71] = t10;
|
|
517
|
+
$[72] = t11;
|
|
518
|
+
$[73] = t12;
|
|
519
|
+
$[74] = t13;
|
|
520
|
+
$[75] = t16;
|
|
521
|
+
$[76] = t17;
|
|
522
|
+
$[77] = t18;
|
|
523
|
+
$[78] = t19;
|
|
524
|
+
$[79] = t35;
|
|
525
|
+
$[80] = t6;
|
|
526
|
+
$[81] = t8;
|
|
527
|
+
$[82] = t9;
|
|
528
|
+
$[83] = t36;
|
|
498
529
|
} else {
|
|
499
|
-
|
|
530
|
+
t36 = $[83];
|
|
500
531
|
}
|
|
501
|
-
return
|
|
532
|
+
return t36;
|
|
502
533
|
});
|
|
503
534
|
const useMessageStyles = (mine, isDeleting) => {
|
|
504
535
|
const $ = _c(8);
|
|
@@ -514,18 +545,16 @@ const useMessageStyles = (mine, isDeleting) => {
|
|
|
514
545
|
let t0;
|
|
515
546
|
if ($[0] !== colors.statusErrorIcon || $[1] !== colors.statusErrorText || $[2] !== colors.textColorDefaultSecondary || $[3] !== isDeleting || $[4] !== messageBubbleBackgroundColor || $[5] !== mine || $[6] !== tabletWidth) {
|
|
516
547
|
t0 = StyleSheet.create({
|
|
548
|
+
pressable: {
|
|
549
|
+
marginTop: -MESSAGE_BACKGROUND_OUTSET,
|
|
550
|
+
paddingTop: MESSAGE_BACKGROUND_OUTSET
|
|
551
|
+
},
|
|
517
552
|
message: {
|
|
518
553
|
gap: 8,
|
|
519
554
|
flexDirection: mine ? "row-reverse" : "row",
|
|
520
555
|
paddingHorizontal: CONVERSATION_MESSAGE_LIST_PADDING_HORIZONTAL,
|
|
521
556
|
opacity: isDeleting ? 0.5 : 1
|
|
522
557
|
},
|
|
523
|
-
background: {
|
|
524
|
-
position: "absolute",
|
|
525
|
-
left: 0,
|
|
526
|
-
right: 0,
|
|
527
|
-
top: -MESSAGE_BACKGROUND_OUTSET
|
|
528
|
-
},
|
|
529
558
|
messageContent: {
|
|
530
559
|
flex: 1,
|
|
531
560
|
gap: 4
|