@planningcenter/chat-react-native 4.4.1-qa-staging.12 → 4.4.1-qa-staging.14
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/jump_to_bottom_button.d.ts.map +1 -1
- package/build/components/conversation/jump_to_bottom_button.js +42 -40
- package/build/components/conversation/jump_to_bottom_button.js.map +1 -1
- 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 +3 -1
- 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/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/action_button.d.ts.map +1 -1
- package/build/components/display/action_button.js +18 -16
- package/build/components/display/action_button.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/index.d.ts +1 -0
- package/build/hooks/index.d.ts.map +1 -1
- package/build/hooks/index.js +1 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/use_animated_message_background_color.d.ts.map +1 -1
- package/build/hooks/use_animated_message_background_color.js +5 -3
- package/build/hooks/use_animated_message_background_color.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_reduce_motion.d.ts +2 -0
- package/build/hooks/use_reduce_motion.d.ts.map +1 -0
- package/build/hooks/use_reduce_motion.js +27 -0
- package/build/hooks/use_reduce_motion.js.map +1 -0
- 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/jump_to_bottom_button.tsx +4 -3
- package/src/components/conversation/message.tsx +3 -0
- 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/system_message.tsx +24 -10
- package/src/components/display/__tests__/filter_dropdown.test.tsx +106 -0
- package/src/components/display/action_button.tsx +4 -3
- 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_reduce_motion.test.tsx +49 -0
- package/src/hooks/__tests__/use_unarchive_conversation_action.test.tsx +67 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use_animated_message_background_color.ts +6 -3
- package/src/hooks/use_conversation.ts +41 -3
- package/src/hooks/use_reduce_motion.ts +18 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment_actions_screen.d.ts","sourceRoot":"","sources":["../../../src/screens/attachment_actions/attachment_actions_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"attachment_actions_screen.d.ts","sourceRoot":"","sources":["../../../src/screens/attachment_actions/attachment_actions_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,0BAA0B,CAAA;AAO3E,eAAO,MAAM,8BAA8B,6EAEzC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;IAC3D,YAAY,EAAE,MAAM,CAAA;IACpB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,4BAA4B,EAAE,OAAO,CAAA;IACrC,SAAS,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AAEF,wBAAgB,uBAAuB,CAAC,EAAE,KAAK,EAAE,EAAE,4BAA4B,2CAiE9E"}
|
|
@@ -3,13 +3,14 @@ import { useNavigation } from '@react-navigation/native';
|
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
4
|
import { Alert, Linking, StyleSheet } from 'react-native';
|
|
5
5
|
import FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet';
|
|
6
|
+
import { useConversation } from '../../hooks/use_conversation';
|
|
6
7
|
import { useDeleteAttachment } from './hooks/useDeleteAttachment';
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
export const AttachmentActionsScreenOptions = getFormSheetScreenOptions({
|
|
9
10
|
headerTitle: 'Attachment actions'
|
|
10
11
|
});
|
|
11
12
|
export function AttachmentActionsScreen(t0) {
|
|
12
|
-
const $ = _c(
|
|
13
|
+
const $ = _c(28);
|
|
13
14
|
const {
|
|
14
15
|
route
|
|
15
16
|
} = t0;
|
|
@@ -23,36 +24,58 @@ export function AttachmentActionsScreen(t0) {
|
|
|
23
24
|
myMessage
|
|
24
25
|
} = route.params;
|
|
25
26
|
let t1;
|
|
26
|
-
if ($[0] !==
|
|
27
|
-
t1 =
|
|
28
|
-
|
|
27
|
+
if ($[0] !== conversation_id) {
|
|
28
|
+
t1 = {
|
|
29
|
+
conversation_id
|
|
30
|
+
};
|
|
31
|
+
$[0] = conversation_id;
|
|
29
32
|
$[1] = t1;
|
|
30
33
|
} else {
|
|
31
34
|
t1 = $[1];
|
|
32
35
|
}
|
|
33
|
-
const attachmentName = t1;
|
|
34
|
-
const canDelete = myMessage || canDeleteNonAuthoredMessages;
|
|
35
|
-
const styles = useStyles();
|
|
36
36
|
let t2;
|
|
37
|
-
if ($[2]
|
|
37
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38
38
|
t2 = {
|
|
39
|
+
refetchOnMount: false
|
|
40
|
+
};
|
|
41
|
+
$[2] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[2];
|
|
44
|
+
}
|
|
45
|
+
const {
|
|
46
|
+
data: conversation
|
|
47
|
+
} = useConversation(t1, t2);
|
|
48
|
+
let t3;
|
|
49
|
+
if ($[3] !== attachmentContentType) {
|
|
50
|
+
t3 = getAttachmentLabelName(attachmentContentType);
|
|
51
|
+
$[3] = attachmentContentType;
|
|
52
|
+
$[4] = t3;
|
|
53
|
+
} else {
|
|
54
|
+
t3 = $[4];
|
|
55
|
+
}
|
|
56
|
+
const attachmentName = t3;
|
|
57
|
+
const canDelete = !conversation.disabled && (myMessage || canDeleteNonAuthoredMessages);
|
|
58
|
+
const styles = useStyles();
|
|
59
|
+
let t4;
|
|
60
|
+
if ($[5] !== attachmentId || $[6] !== attachmentName || $[7] !== conversation_id) {
|
|
61
|
+
t4 = {
|
|
39
62
|
conversation_id,
|
|
40
63
|
attachmentId,
|
|
41
64
|
attachmentName
|
|
42
65
|
};
|
|
43
|
-
$[
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
66
|
+
$[5] = attachmentId;
|
|
67
|
+
$[6] = attachmentName;
|
|
68
|
+
$[7] = conversation_id;
|
|
69
|
+
$[8] = t4;
|
|
47
70
|
} else {
|
|
48
|
-
|
|
71
|
+
t4 = $[8];
|
|
49
72
|
}
|
|
50
73
|
const {
|
|
51
74
|
handleDeleteAttachment
|
|
52
|
-
} = useDeleteAttachment(
|
|
53
|
-
let
|
|
54
|
-
if ($[
|
|
55
|
-
|
|
75
|
+
} = useDeleteAttachment(t4);
|
|
76
|
+
let t5;
|
|
77
|
+
if ($[9] !== attachmentName || $[10] !== handleDeleteAttachment || $[11] !== navigation) {
|
|
78
|
+
t5 = () => {
|
|
56
79
|
Alert.alert(`Delete ${attachmentName}`, "Are you sure you want to permanently delete this attachment?", [{
|
|
57
80
|
text: "Cancel",
|
|
58
81
|
style: "cancel"
|
|
@@ -65,75 +88,75 @@ export function AttachmentActionsScreen(t0) {
|
|
|
65
88
|
}
|
|
66
89
|
}]);
|
|
67
90
|
};
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
91
|
+
$[9] = attachmentName;
|
|
92
|
+
$[10] = handleDeleteAttachment;
|
|
93
|
+
$[11] = navigation;
|
|
94
|
+
$[12] = t5;
|
|
72
95
|
} else {
|
|
73
|
-
|
|
96
|
+
t5 = $[12];
|
|
74
97
|
}
|
|
75
|
-
const handleDeleteConfirm =
|
|
76
|
-
let
|
|
77
|
-
if ($[
|
|
78
|
-
|
|
98
|
+
const handleDeleteConfirm = t5;
|
|
99
|
+
let t6;
|
|
100
|
+
if ($[13] !== attachmentUrl || $[14] !== navigation) {
|
|
101
|
+
t6 = () => {
|
|
79
102
|
Linking.openURL(attachmentUrl);
|
|
80
103
|
navigation.goBack();
|
|
81
104
|
};
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
105
|
+
$[13] = attachmentUrl;
|
|
106
|
+
$[14] = navigation;
|
|
107
|
+
$[15] = t6;
|
|
85
108
|
} else {
|
|
86
|
-
|
|
109
|
+
t6 = $[15];
|
|
87
110
|
}
|
|
88
|
-
const handleOpenInBrowser =
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
if ($[
|
|
93
|
-
|
|
111
|
+
const handleOpenInBrowser = t6;
|
|
112
|
+
const t7 = `Open ${attachmentName} in browser`;
|
|
113
|
+
const t8 = `${attachmentName} can be downloaded and shared through the browser.`;
|
|
114
|
+
let t9;
|
|
115
|
+
if ($[16] !== handleOpenInBrowser || $[17] !== t7 || $[18] !== t8) {
|
|
116
|
+
t9 = /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
94
117
|
iconName: "general.newWindow",
|
|
95
118
|
title: "Open in browser",
|
|
96
119
|
accessibilityRole: "link",
|
|
97
|
-
accessibilityLabel:
|
|
98
|
-
accessibilityHint:
|
|
120
|
+
accessibilityLabel: t7,
|
|
121
|
+
accessibilityHint: t8,
|
|
99
122
|
onPress: handleOpenInBrowser
|
|
100
123
|
});
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
124
|
+
$[16] = handleOpenInBrowser;
|
|
125
|
+
$[17] = t7;
|
|
126
|
+
$[18] = t8;
|
|
127
|
+
$[19] = t9;
|
|
105
128
|
} else {
|
|
106
|
-
|
|
129
|
+
t9 = $[19];
|
|
107
130
|
}
|
|
108
|
-
let
|
|
109
|
-
if ($[
|
|
110
|
-
|
|
131
|
+
let t10;
|
|
132
|
+
if ($[20] !== attachmentName || $[21] !== canDelete || $[22] !== handleDeleteConfirm) {
|
|
133
|
+
t10 = canDelete && /*#__PURE__*/_jsx(FormSheet.Action, {
|
|
111
134
|
appearance: "danger",
|
|
112
135
|
iconName: "publishing.trash",
|
|
113
136
|
title: `Delete ${attachmentName}`,
|
|
114
137
|
onPress: handleDeleteConfirm
|
|
115
138
|
});
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
139
|
+
$[20] = attachmentName;
|
|
140
|
+
$[21] = canDelete;
|
|
141
|
+
$[22] = handleDeleteConfirm;
|
|
142
|
+
$[23] = t10;
|
|
120
143
|
} else {
|
|
121
|
-
|
|
144
|
+
t10 = $[23];
|
|
122
145
|
}
|
|
123
|
-
let
|
|
124
|
-
if ($[
|
|
125
|
-
|
|
146
|
+
let t11;
|
|
147
|
+
if ($[24] !== styles.formSheetContent || $[25] !== t10 || $[26] !== t9) {
|
|
148
|
+
t11 = /*#__PURE__*/_jsxs(FormSheet.Root, {
|
|
126
149
|
contentStyle: styles.formSheetContent,
|
|
127
|
-
children: [
|
|
150
|
+
children: [t9, t10]
|
|
128
151
|
});
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
152
|
+
$[24] = styles.formSheetContent;
|
|
153
|
+
$[25] = t10;
|
|
154
|
+
$[26] = t9;
|
|
155
|
+
$[27] = t11;
|
|
133
156
|
} else {
|
|
134
|
-
|
|
157
|
+
t11 = $[27];
|
|
135
158
|
}
|
|
136
|
-
return
|
|
159
|
+
return t11;
|
|
137
160
|
}
|
|
138
161
|
const useStyles = () => {
|
|
139
162
|
return StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment_actions_screen.js","names":["useNavigation","React","useCallback","Alert","Linking","StyleSheet","FormSheet","getFormSheetScreenOptions","useDeleteAttachment","jsx","_jsx","jsxs","_jsxs","AttachmentActionsScreenOptions","headerTitle","AttachmentActionsScreen","t0","$","_c","route","navigation","attachmentId","attachmentContentType","attachmentUrl","conversation_id","canDeleteNonAuthoredMessages","myMessage","params","t1","getAttachmentLabelName","attachmentName","canDelete","styles","useStyles","
|
|
1
|
+
{"version":3,"file":"attachment_actions_screen.js","names":["useNavigation","React","useCallback","Alert","Linking","StyleSheet","FormSheet","getFormSheetScreenOptions","useConversation","useDeleteAttachment","jsx","_jsx","jsxs","_jsxs","AttachmentActionsScreenOptions","headerTitle","AttachmentActionsScreen","t0","$","_c","route","navigation","attachmentId","attachmentContentType","attachmentUrl","conversation_id","canDeleteNonAuthoredMessages","myMessage","params","t1","t2","Symbol","for","refetchOnMount","data","conversation","t3","getAttachmentLabelName","attachmentName","canDelete","disabled","styles","useStyles","t4","handleDeleteAttachment","t5","alert","text","style","onPress","goBack","handleDeleteConfirm","t6","openURL","handleOpenInBrowser","t7","t8","t9","Action","iconName","title","accessibilityRole","accessibilityLabel","accessibilityHint","t10","appearance","t11","formSheetContent","Root","contentStyle","children","create","paddingTop","contentType","startsWith"],"sources":["../../../src/screens/attachment_actions/attachment_actions_screen.tsx"],"sourcesContent":["import { StaticScreenProps, useNavigation } from '@react-navigation/native'\nimport React, { useCallback } from 'react'\nimport { Alert, Linking, StyleSheet } from 'react-native'\nimport FormSheet, { getFormSheetScreenOptions } from '../../components/primitive/form_sheet'\nimport { useConversation } from '../../hooks/use_conversation'\nimport { useDeleteAttachment } from './hooks/useDeleteAttachment'\n\nexport const AttachmentActionsScreenOptions = getFormSheetScreenOptions({\n headerTitle: 'Attachment actions',\n})\n\nexport type AttachmentActionsScreenProps = StaticScreenProps<{\n attachmentId: string\n attachmentContentType: string\n attachmentUrl: string\n conversation_id: number\n canDeleteNonAuthoredMessages: boolean\n myMessage: boolean\n}>\n\nexport function AttachmentActionsScreen({ route }: AttachmentActionsScreenProps) {\n const navigation = useNavigation()\n const {\n attachmentId,\n attachmentContentType,\n attachmentUrl,\n conversation_id,\n canDeleteNonAuthoredMessages,\n myMessage,\n } = route.params\n\n const { data: conversation } = useConversation({ conversation_id }, { refetchOnMount: false })\n const attachmentName = getAttachmentLabelName(attachmentContentType)\n const canDelete = !conversation.disabled && (myMessage || canDeleteNonAuthoredMessages)\n const styles = useStyles()\n\n const { handleDeleteAttachment } = useDeleteAttachment({\n conversation_id,\n attachmentId,\n attachmentName,\n })\n\n const handleDeleteConfirm = useCallback(() => {\n Alert.alert(\n `Delete ${attachmentName}`,\n 'Are you sure you want to permanently delete this attachment?',\n [\n { text: 'Cancel', style: 'cancel' },\n {\n text: 'Delete',\n style: 'destructive',\n onPress: () => {\n handleDeleteAttachment()\n navigation.goBack()\n },\n },\n ]\n )\n }, [attachmentName, handleDeleteAttachment, navigation])\n\n const handleOpenInBrowser = () => {\n Linking.openURL(attachmentUrl)\n navigation.goBack()\n }\n\n return (\n <FormSheet.Root contentStyle={styles.formSheetContent}>\n <FormSheet.Action\n iconName=\"general.newWindow\"\n title=\"Open in browser\"\n accessibilityRole=\"link\"\n accessibilityLabel={`Open ${attachmentName} in browser`}\n accessibilityHint={`${attachmentName} can be downloaded and shared through the browser.`}\n onPress={handleOpenInBrowser}\n />\n {canDelete && (\n <FormSheet.Action\n appearance=\"danger\"\n iconName=\"publishing.trash\"\n title={`Delete ${attachmentName}`}\n onPress={handleDeleteConfirm}\n />\n )}\n </FormSheet.Root>\n )\n}\n\nconst useStyles = () => {\n return StyleSheet.create({\n formSheetContent: {\n paddingTop: 16,\n },\n })\n}\n\nfunction getAttachmentLabelName(contentType: string) {\n if (contentType.startsWith('image/')) return 'image'\n if (contentType.startsWith('video/')) return 'video'\n if (contentType.startsWith('audio/'))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,CAAC,EAAE,OAAO,OAAO;EACpD,IAAID,WAAW,KAAK,iBAAiB,EAAE,OAAO,KAAK;EACnD,IAAIA,WAAW,CAACC,UAAU,CAAC,cAAc,CAAC,EAAE,OAAO,MAAM;EAEzD,OAAO,EAAE;AACX","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation_details_screen.d.ts","sourceRoot":"","sources":["../../src/screens/conversation_details_screen.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgB,iBAAiB,EAAiB,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"conversation_details_screen.d.ts","sourceRoot":"","sources":["../../src/screens/conversation_details_screen.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgB,iBAAiB,EAAiB,MAAM,0BAA0B,CAAA;AA2FzF,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,eAAe,EAAE,MAAM,CAAA;CACxB,CAAC,CAAA;AAEF,wBAAgB,yBAAyB,CAAC,EAAE,KAAK,EAAE,EAAE,8BAA8B,2CAyalF"}
|