@planningcenter/chat-react-native 4.8.0-qa-staging.0 → 4.8.0-qa-staging.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/build/components/conversations/app_update_banner.d.ts +2 -0
- package/build/components/conversations/app_update_banner.d.ts.map +1 -0
- package/build/components/conversations/app_update_banner.js +52 -0
- package/build/components/conversations/app_update_banner.js.map +1 -0
- package/build/components/conversations/bulk_conversation_actions_bar.d.ts +2 -0
- package/build/components/conversations/bulk_conversation_actions_bar.d.ts.map +1 -0
- package/build/components/conversations/bulk_conversation_actions_bar.js +120 -0
- package/build/components/conversations/bulk_conversation_actions_bar.js.map +1 -0
- package/build/components/conversations/conversation_actions.d.ts +2 -1
- package/build/components/conversations/conversation_actions.d.ts.map +1 -1
- package/build/components/conversations/conversation_actions.js +143 -107
- package/build/components/conversations/conversation_actions.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +154 -110
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +50 -48
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/display/checkbox.d.ts +8 -0
- package/build/components/display/checkbox.d.ts.map +1 -0
- package/build/components/display/checkbox.js +87 -0
- package/build/components/display/checkbox.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/components/primitive/banner_primitive.js +7 -3
- package/build/components/primitive/banner_primitive.js.map +1 -1
- package/build/contexts/conversations_context.d.ts +5 -0
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +121 -32
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/hooks/use_bulk_conversation_actions.d.ts +8 -0
- package/build/hooks/use_bulk_conversation_actions.d.ts.map +1 -0
- package/build/hooks/use_bulk_conversation_actions.js +309 -0
- package/build/hooks/use_bulk_conversation_actions.js.map +1 -0
- package/build/hooks/use_conversations_cache.d.ts +14 -2
- package/build/hooks/use_conversations_cache.d.ts.map +1 -1
- package/build/hooks/use_conversations_cache.js +149 -56
- package/build/hooks/use_conversations_cache.js.map +1 -1
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +5 -7
- package/build/navigation/index.js.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.d.ts.map +1 -1
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js +9 -64
- package/build/screens/conversation_filter_recipients/components/checkbox_row.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts +4 -0
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +130 -33
- package/build/screens/conversations/conversations_screen.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/updates.d.ts +11 -0
- package/build/utils/native_adapters/updates.d.ts.map +1 -0
- package/build/utils/native_adapters/updates.js +8 -0
- package/build/utils/native_adapters/updates.js.map +1 -0
- package/package.json +3 -3
- package/src/components/conversations/__tests__/app_update_banner.test.tsx +27 -0
- package/src/components/conversations/__tests__/bulk_conversation_actions_bar.test.tsx +95 -0
- package/src/components/conversations/__tests__/conversation_actions.test.tsx +36 -11
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +69 -3
- package/src/components/conversations/app_update_banner.tsx +36 -0
- package/src/components/conversations/bulk_conversation_actions_bar.tsx +108 -0
- package/src/components/conversations/conversation_actions.tsx +18 -12
- package/src/components/conversations/conversation_preview.tsx +12 -1
- package/src/components/conversations/conversations.tsx +2 -1
- package/src/components/display/checkbox.tsx +47 -0
- package/src/components/display/index.ts +1 -0
- package/src/components/primitive/banner_primitive.tsx +5 -1
- package/src/contexts/__tests__/conversations_context.test.tsx +86 -0
- package/src/contexts/conversations_context.tsx +69 -2
- package/src/hooks/__tests__/use_bulk_conversation_actions.test.tsx +119 -0
- package/src/hooks/__tests__/use_hide_conversation.test.tsx +15 -3
- package/src/hooks/use_bulk_conversation_actions.ts +173 -0
- package/src/hooks/use_conversations_cache.ts +32 -3
- package/src/navigation/index.tsx +8 -8
- package/src/screens/conversation_filter_recipients/components/checkbox_row.tsx +3 -35
- package/src/screens/conversations/__tests__/conversations_screen.test.tsx +10 -3
- package/src/screens/conversations/conversations_screen.tsx +60 -4
- package/src/utils/native_adapters/configuration.ts +5 -0
- package/src/utils/native_adapters/index.ts +1 -0
- package/src/utils/native_adapters/updates.ts +16 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app_update_banner.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/app_update_banner.tsx"],"names":[],"mappings":"AAMA,wBAAgB,eAAe,mDAoB9B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { Updates } from '../../utils/native_adapters';
|
|
5
|
+
import { Banner } from '../display/banner';
|
|
6
|
+
import BannerPrimitive from '../primitive/banner_primitive';
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export function AppUpdateBanner() {
|
|
9
|
+
const $ = _c(3);
|
|
10
|
+
const styles = useStyles();
|
|
11
|
+
const downloadedUpdateId = Updates.useDownloadedUpdateId();
|
|
12
|
+
if (!downloadedUpdateId) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
let t0;
|
|
16
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17
|
+
t0 = /*#__PURE__*/_jsx(Banner, {
|
|
18
|
+
appearance: "info",
|
|
19
|
+
heading: "Chat update available",
|
|
20
|
+
description: /*#__PURE__*/_jsxs(BannerPrimitive.Text, {
|
|
21
|
+
children: [/*#__PURE__*/_jsx(BannerPrimitive.Link, {
|
|
22
|
+
onPress: Updates.restart,
|
|
23
|
+
children: "Reload"
|
|
24
|
+
}), " to get the latest fixes and improvements."]
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
$[0] = t0;
|
|
28
|
+
} else {
|
|
29
|
+
t0 = $[0];
|
|
30
|
+
}
|
|
31
|
+
let t1;
|
|
32
|
+
if ($[1] !== styles.container) {
|
|
33
|
+
t1 = /*#__PURE__*/_jsx(View, {
|
|
34
|
+
style: styles.container,
|
|
35
|
+
children: t0
|
|
36
|
+
});
|
|
37
|
+
$[1] = styles.container;
|
|
38
|
+
$[2] = t1;
|
|
39
|
+
} else {
|
|
40
|
+
t1 = $[2];
|
|
41
|
+
}
|
|
42
|
+
return t1;
|
|
43
|
+
}
|
|
44
|
+
const useStyles = () => {
|
|
45
|
+
return StyleSheet.create({
|
|
46
|
+
container: {
|
|
47
|
+
paddingHorizontal: 16,
|
|
48
|
+
paddingVertical: 12
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=app_update_banner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app_update_banner.js","names":["React","StyleSheet","View","Updates","Banner","BannerPrimitive","jsx","_jsx","jsxs","_jsxs","AppUpdateBanner","$","_c","styles","useStyles","downloadedUpdateId","useDownloadedUpdateId","t0","Symbol","for","appearance","heading","description","Text","children","Link","onPress","restart","t1","container","style","create","paddingHorizontal","paddingVertical"],"sources":["../../../src/components/conversations/app_update_banner.tsx"],"sourcesContent":["import React from 'react'\nimport { StyleSheet, View } from 'react-native'\nimport { Updates } from '../../utils/native_adapters'\nimport { Banner } from '../display/banner'\nimport BannerPrimitive from '../primitive/banner_primitive'\n\nexport function AppUpdateBanner() {\n const styles = useStyles()\n const downloadedUpdateId = Updates.useDownloadedUpdateId()\n\n if (!downloadedUpdateId) return null\n\n return (\n <View style={styles.container}>\n <Banner\n appearance=\"info\"\n heading=\"Chat update available\"\n description={\n <BannerPrimitive.Text>\n <BannerPrimitive.Link onPress={Updates.restart}>Reload</BannerPrimitive.Link> to get the\n latest fixes and improvements.\n </BannerPrimitive.Text>\n }\n />\n </View>\n )\n}\n\nconst useStyles = () => {\n return StyleSheet.create({\n container: {\n paddingHorizontal: 16,\n paddingVertical: 12,\n },\n })\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,eAAe,MAAM,+BAA+B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE3D,OAAO,SAAAC,gBAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EACL,MAAAC,MAAA,GAAeC,SAAS,CAAC,CAAC;EAC1B,MAAAC,kBAAA,GAA2BZ,OAAO,CAAAa,qBAAsB,CAAC,CAAC;EAE1D,IAAI,CAACD,kBAAkB;IAAA,OAAS,IAAI;EAAA;EAAA,IAAAE,EAAA;EAAA,IAAAN,CAAA,QAAAO,MAAA,CAAAC,GAAA;IAIhCF,EAAA,gBAAAV,IAAA,CAACH,MAAM;MACMgB,UAAM,EAAN,MAAM;MACTC,OAAuB,EAAvB,uBAAuB;MAE7BC,WAGuB,eAHvBb,KAAA,CAAAJ,eAAA,CAAAkB,IAAA;QAAAC,QAAA,gBACEjB,IAAA,CAAAF,eAAA,CAAAoB,IAAA;UAA+BC,OAAe,EAAfvB,OAAO,CAAAwB,OAAQ;UAAAH,QAAA,EAAE;QAAM,CAAsB,CAAC,8CAE/E;MAAA,CAAsB;IAAC,CAE1B,CAAC;IAAAb,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,IAAAiB,EAAA;EAAA,IAAAjB,CAAA,QAAAE,MAAA,CAAAgB,SAAA;IAVJD,EAAA,gBAAArB,IAAA,CAACL,IAAI;MAAQ4B,KAAgB,EAAhBjB,MAAM,CAAAgB,SAAU;MAAAL,QAAA,EAC3BP;IASE,CACE,CAAC;IAAAN,CAAA,MAAAE,MAAA,CAAAgB,SAAA;IAAAlB,CAAA,MAAAiB,EAAA;EAAA;IAAAA,EAAA,GAAAjB,CAAA;EAAA;EAAA,OAXPiB,EAWO;AAAA;AAIX,MAAMd,SAAS,GAAGA,CAAA,KAAM;EACtB,OAAOb,UAAU,CAAC8B,MAAM,CAAC;IACvBF,SAAS,EAAE;MACTG,iBAAiB,EAAE,EAAE;MACrBC,eAAe,EAAE;IACnB;EACF,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk_conversation_actions_bar.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/bulk_conversation_actions_bar.tsx"],"names":[],"mappings":"AAYA,wBAAgB,0BAA0B,4CAwEzC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import { StyleSheet } from 'react-native';
|
|
4
|
+
import Animated, { FadeIn, LayoutAnimationConfig, ReduceMotion } from 'react-native-reanimated';
|
|
5
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
+
import { useConversationsContext } from '../../contexts/conversations_context';
|
|
7
|
+
import { useReduceMotion, useTheme } from '../../hooks';
|
|
8
|
+
import { useBulkConversationActions } from '../../hooks/use_bulk_conversation_actions';
|
|
9
|
+
import { MAX_FONT_SIZE_MULTIPLIER_LANDMARK, isArchivedConversation } from '../../utils';
|
|
10
|
+
import { dismissToast } from '../../utils/toast_store';
|
|
11
|
+
import { Button } from '../display';
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
export function BulkConversationActionsBar() {
|
|
14
|
+
const styles = useStyles();
|
|
15
|
+
const reduceMotion = useReduceMotion() ? ReduceMotion.Always : ReduceMotion.Never;
|
|
16
|
+
const {
|
|
17
|
+
selectMode,
|
|
18
|
+
selectedIds,
|
|
19
|
+
conversations,
|
|
20
|
+
hideable,
|
|
21
|
+
clearSelection,
|
|
22
|
+
args: {
|
|
23
|
+
show_hidden: hiddenView = false
|
|
24
|
+
}
|
|
25
|
+
} = useConversationsContext();
|
|
26
|
+
const {
|
|
27
|
+
hide,
|
|
28
|
+
unhide,
|
|
29
|
+
silence,
|
|
30
|
+
markRead
|
|
31
|
+
} = useBulkConversationActions();
|
|
32
|
+
const [pending, setPending] = useState(false);
|
|
33
|
+
const selected = conversations.filter(({
|
|
34
|
+
id
|
|
35
|
+
}) => selectedIds.includes(id));
|
|
36
|
+
const disabled = pending || selected.length === 0;
|
|
37
|
+
const canSilence = !disabled && !selected.some(isArchivedConversation);
|
|
38
|
+
const canHide = canSilence && hideable;
|
|
39
|
+
const run = action => async () => {
|
|
40
|
+
setPending(true);
|
|
41
|
+
try {
|
|
42
|
+
await action(selected);
|
|
43
|
+
} finally {
|
|
44
|
+
setPending(false);
|
|
45
|
+
clearSelection();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (selectMode) dismissToast();
|
|
50
|
+
}, [selectMode]);
|
|
51
|
+
return /*#__PURE__*/_jsx(LayoutAnimationConfig, {
|
|
52
|
+
skipEntering: true,
|
|
53
|
+
children: selectMode && /*#__PURE__*/_jsxs(Animated.View, {
|
|
54
|
+
entering: FadeIn.duration(300).reduceMotion(reduceMotion),
|
|
55
|
+
style: styles.container,
|
|
56
|
+
testID: "bulk-conversation-actions-bar",
|
|
57
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
58
|
+
variant: "outline",
|
|
59
|
+
title: hiddenView ? 'Unhide' : 'Hide',
|
|
60
|
+
iconNameLeft: hiddenView ? 'general.showEye' : 'general.hideEye',
|
|
61
|
+
disabled: !canHide,
|
|
62
|
+
onPress: run(hiddenView ? unhide : hide),
|
|
63
|
+
style: styles.button,
|
|
64
|
+
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
65
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
66
|
+
variant: "outline",
|
|
67
|
+
title: "Silence",
|
|
68
|
+
iconNameLeft: "general.bellMuted",
|
|
69
|
+
disabled: !canSilence,
|
|
70
|
+
onPress: run(silence),
|
|
71
|
+
style: styles.button,
|
|
72
|
+
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
73
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
74
|
+
variant: "outline",
|
|
75
|
+
title: "Mark read",
|
|
76
|
+
iconNameLeft: "general.outlinedTextMessage",
|
|
77
|
+
disabled: disabled,
|
|
78
|
+
onPress: run(markRead),
|
|
79
|
+
style: styles.button,
|
|
80
|
+
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
81
|
+
})]
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
const useStyles = () => {
|
|
86
|
+
const $ = _c(4);
|
|
87
|
+
const {
|
|
88
|
+
bottom
|
|
89
|
+
} = useSafeAreaInsets();
|
|
90
|
+
const {
|
|
91
|
+
colors
|
|
92
|
+
} = useTheme();
|
|
93
|
+
let t0;
|
|
94
|
+
if ($[0] !== bottom || $[1] !== colors.borderColorDefaultDim || $[2] !== colors.surfaceColor090) {
|
|
95
|
+
t0 = StyleSheet.create({
|
|
96
|
+
container: {
|
|
97
|
+
flexDirection: "row",
|
|
98
|
+
flexWrap: "wrap",
|
|
99
|
+
gap: 8,
|
|
100
|
+
backgroundColor: colors.surfaceColor090,
|
|
101
|
+
paddingHorizontal: 16,
|
|
102
|
+
paddingTop: 16,
|
|
103
|
+
paddingBottom: bottom + 16,
|
|
104
|
+
borderTopWidth: 1,
|
|
105
|
+
borderTopColor: colors.borderColorDefaultDim
|
|
106
|
+
},
|
|
107
|
+
button: {
|
|
108
|
+
flexGrow: 1
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
$[0] = bottom;
|
|
112
|
+
$[1] = colors.borderColorDefaultDim;
|
|
113
|
+
$[2] = colors.surfaceColor090;
|
|
114
|
+
$[3] = t0;
|
|
115
|
+
} else {
|
|
116
|
+
t0 = $[3];
|
|
117
|
+
}
|
|
118
|
+
return t0;
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=bulk_conversation_actions_bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk_conversation_actions_bar.js","names":["React","useEffect","useState","StyleSheet","Animated","FadeIn","LayoutAnimationConfig","ReduceMotion","useSafeAreaInsets","useConversationsContext","useReduceMotion","useTheme","useBulkConversationActions","MAX_FONT_SIZE_MULTIPLIER_LANDMARK","isArchivedConversation","dismissToast","Button","jsx","_jsx","jsxs","_jsxs","BulkConversationActionsBar","styles","useStyles","reduceMotion","Always","Never","selectMode","selectedIds","conversations","hideable","clearSelection","args","show_hidden","hiddenView","hide","unhide","silence","markRead","pending","setPending","selected","filter","id","includes","disabled","length","canSilence","some","canHide","run","action","skipEntering","children","View","entering","duration","style","container","testID","variant","title","iconNameLeft","onPress","button","maxFontSizeMultiplier","$","_c","bottom","colors","t0","borderColorDefaultDim","surfaceColor090","create","flexDirection","flexWrap","gap","backgroundColor","paddingHorizontal","paddingTop","paddingBottom","borderTopWidth","borderTopColor","flexGrow"],"sources":["../../../src/components/conversations/bulk_conversation_actions_bar.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react'\nimport { StyleSheet } from 'react-native'\nimport Animated, { FadeIn, LayoutAnimationConfig, ReduceMotion } from 'react-native-reanimated'\nimport { useSafeAreaInsets } from 'react-native-safe-area-context'\nimport { useConversationsContext } from '../../contexts/conversations_context'\nimport { useReduceMotion, useTheme } from '../../hooks'\nimport { useBulkConversationActions } from '../../hooks/use_bulk_conversation_actions'\nimport { ConversationResource } from '../../types'\nimport { MAX_FONT_SIZE_MULTIPLIER_LANDMARK, isArchivedConversation } from '../../utils'\nimport { dismissToast } from '../../utils/toast_store'\nimport { Button } from '../display'\n\nexport function BulkConversationActionsBar() {\n const styles = useStyles()\n const reduceMotion = useReduceMotion() ? ReduceMotion.Always : ReduceMotion.Never\n const {\n selectMode,\n selectedIds,\n conversations,\n hideable,\n clearSelection,\n args: { show_hidden: hiddenView = false },\n } = useConversationsContext()\n const { hide, unhide, silence, markRead } = useBulkConversationActions()\n const [pending, setPending] = useState(false)\n\n const selected = conversations.filter(({ id }) => selectedIds.includes(id))\n const disabled = pending || selected.length === 0\n const canSilence = !disabled && !selected.some(isArchivedConversation)\n const canHide = canSilence && hideable\n\n const run = (action: (_conversations: ConversationResource[]) => Promise<void>) => async () => {\n setPending(true)\n try {\n await action(selected)\n } finally {\n setPending(false)\n clearSelection()\n }\n }\n\n useEffect(() => {\n if (selectMode) dismissToast()\n }, [selectMode])\n\n return (\n <LayoutAnimationConfig skipEntering>\n {selectMode && (\n <Animated.View\n entering={FadeIn.duration(300).reduceMotion(reduceMotion)}\n style={styles.container}\n testID=\"bulk-conversation-actions-bar\"\n >\n <Button\n variant=\"outline\"\n title={hiddenView ? 'Unhide' : 'Hide'}\n iconNameLeft={hiddenView ? 'general.showEye' : 'general.hideEye'}\n disabled={!canHide}\n onPress={run(hiddenView ? unhide : hide)}\n style={styles.button}\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER_LANDMARK}\n />\n <Button\n variant=\"outline\"\n title=\"Silence\"\n iconNameLeft=\"general.bellMuted\"\n disabled={!canSilence}\n onPress={run(silence)}\n style={styles.button}\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER_LANDMARK}\n />\n <Button\n variant=\"outline\"\n title=\"Mark read\"\n iconNameLeft=\"general.outlinedTextMessage\"\n disabled={disabled}\n onPress={run(markRead)}\n style={styles.button}\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER_LANDMARK}\n />\n </Animated.View>\n )}\n </LayoutAnimationConfig>\n )\n}\n\nconst useStyles = () => {\n const { bottom } = useSafeAreaInsets()\n const { colors } = useTheme()\n const containerVerticalPadding = 16\n\n return StyleSheet.create({\n container: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n gap: 8,\n backgroundColor: colors.surfaceColor090,\n paddingHorizontal: 16,\n paddingTop: containerVerticalPadding,\n paddingBottom: bottom + containerVerticalPadding,\n borderTopWidth: 1,\n borderTopColor: colors.borderColorDefaultDim,\n },\n button: {\n flexGrow: 1,\n },\n })\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { ConversationResource } from '../../types';
|
|
4
|
-
export declare function ConversationActions({ children, conversation, style, onPress, accessibilityLabel, }: {
|
|
4
|
+
export declare function ConversationActions({ children, conversation, style, onPress, accessibilityLabel, selected, }: {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
conversation: ConversationResource;
|
|
7
7
|
onPress: () => void;
|
|
8
8
|
style?: StyleProp<ViewStyle>;
|
|
9
9
|
accessibilityLabel?: string;
|
|
10
|
+
selected?: boolean;
|
|
10
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
//# sourceMappingURL=conversation_actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation_actions.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/conversation_actions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation_actions.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/conversation_actions.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAClF,OAAO,EAIL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAA;AAYrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMlD,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,OAAO,EACP,kBAAkB,EAClB,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,EAAE,oBAAoB,CAAA;IAClC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,2CAkLA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useNavigation } from '@react-navigation/native';
|
|
3
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
3
|
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
5
4
|
import ReanimatedSwipeable from 'react-native-gesture-handler/ReanimatedSwipeable';
|
|
@@ -14,22 +13,23 @@ import { tokens } from '../../vendor/tapestry/tokens';
|
|
|
14
13
|
import { SwipeableToggleButton } from './swipeable_toggle_button';
|
|
15
14
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
export function ConversationActions(t0) {
|
|
17
|
-
const $ = _c(
|
|
16
|
+
const $ = _c(100);
|
|
18
17
|
const {
|
|
19
18
|
children,
|
|
20
19
|
conversation,
|
|
21
20
|
style,
|
|
22
21
|
onPress,
|
|
23
|
-
accessibilityLabel
|
|
22
|
+
accessibilityLabel,
|
|
23
|
+
selected
|
|
24
24
|
} = t0;
|
|
25
25
|
const swipeableRef = useRef(null);
|
|
26
|
-
const navigation = useNavigation();
|
|
27
26
|
const styles = useStyles();
|
|
28
27
|
const {
|
|
29
28
|
activeConversationId,
|
|
30
29
|
setActiveConversationId,
|
|
31
30
|
hideable,
|
|
32
|
-
args
|
|
31
|
+
args,
|
|
32
|
+
enterSelectMode
|
|
33
33
|
} = useConversationsContext();
|
|
34
34
|
const [disabled, setDisabled] = useState(false);
|
|
35
35
|
const overshootLeft = Platform.OS === "ios";
|
|
@@ -114,6 +114,8 @@ export function ConversationActions(t0) {
|
|
|
114
114
|
t7 = $[14];
|
|
115
115
|
}
|
|
116
116
|
const canHide = t7;
|
|
117
|
+
const selectMode = selected !== undefined;
|
|
118
|
+
const canEnterSelectMode = hideable && hideConversationsEnabled && !selectMode;
|
|
117
119
|
let t8;
|
|
118
120
|
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
119
121
|
t8 = () => {
|
|
@@ -180,19 +182,17 @@ export function ConversationActions(t0) {
|
|
|
180
182
|
}
|
|
181
183
|
const handleHide = t12;
|
|
182
184
|
let t13;
|
|
183
|
-
if ($[28] !== conversation.id || $[29] !== disabled || $[30] !==
|
|
185
|
+
if ($[28] !== conversation.id || $[29] !== disabled || $[30] !== enterSelectMode) {
|
|
184
186
|
t13 = () => {
|
|
185
187
|
if (disabled) {
|
|
186
188
|
return;
|
|
187
189
|
}
|
|
188
190
|
Haptic.impactLight();
|
|
189
|
-
|
|
190
|
-
conversation_id: conversation.id
|
|
191
|
-
});
|
|
191
|
+
enterSelectMode(conversation.id);
|
|
192
192
|
};
|
|
193
193
|
$[28] = conversation.id;
|
|
194
194
|
$[29] = disabled;
|
|
195
|
-
$[30] =
|
|
195
|
+
$[30] = enterSelectMode;
|
|
196
196
|
$[31] = t13;
|
|
197
197
|
} else {
|
|
198
198
|
t13 = $[31];
|
|
@@ -251,39 +251,40 @@ export function ConversationActions(t0) {
|
|
|
251
251
|
}
|
|
252
252
|
const hideAccessibilityAction = t17;
|
|
253
253
|
let t18;
|
|
254
|
-
if ($[44] !== hideAccessibilityAction || $[45] !== muteAccessibilityAction || $[46] !== readAccessibilityAction) {
|
|
255
|
-
t18 = [...muteAccessibilityAction, ...hideAccessibilityAction, ...readAccessibilityAction];
|
|
254
|
+
if ($[44] !== hideAccessibilityAction || $[45] !== muteAccessibilityAction || $[46] !== readAccessibilityAction || $[47] !== selectMode) {
|
|
255
|
+
t18 = selectMode ? [] : [...muteAccessibilityAction, ...hideAccessibilityAction, ...readAccessibilityAction];
|
|
256
256
|
$[44] = hideAccessibilityAction;
|
|
257
257
|
$[45] = muteAccessibilityAction;
|
|
258
258
|
$[46] = readAccessibilityAction;
|
|
259
|
-
$[47] =
|
|
259
|
+
$[47] = selectMode;
|
|
260
|
+
$[48] = t18;
|
|
260
261
|
} else {
|
|
261
|
-
t18 = $[
|
|
262
|
+
t18 = $[48];
|
|
262
263
|
}
|
|
263
264
|
const accessibilityActions = t18;
|
|
264
265
|
let t19;
|
|
265
|
-
if ($[
|
|
266
|
+
if ($[49] !== handleHide || $[50] !== handleLatestMessageUnread || $[51] !== handleMute) {
|
|
266
267
|
t19 = event => {
|
|
267
|
-
|
|
268
|
+
bb86: switch (event.nativeEvent.actionName) {
|
|
268
269
|
case "markRead":
|
|
269
270
|
{
|
|
270
271
|
handleLatestMessageUnread();
|
|
271
|
-
break
|
|
272
|
+
break bb86;
|
|
272
273
|
}
|
|
273
274
|
case "markUnread":
|
|
274
275
|
{
|
|
275
276
|
handleLatestMessageUnread();
|
|
276
|
-
break
|
|
277
|
+
break bb86;
|
|
277
278
|
}
|
|
278
279
|
case "mute":
|
|
279
280
|
{
|
|
280
281
|
handleMute();
|
|
281
|
-
break
|
|
282
|
+
break bb86;
|
|
282
283
|
}
|
|
283
284
|
case "unmute":
|
|
284
285
|
{
|
|
285
286
|
handleMute();
|
|
286
|
-
break
|
|
287
|
+
break bb86;
|
|
287
288
|
}
|
|
288
289
|
case "hide":
|
|
289
290
|
case "unhide":
|
|
@@ -292,26 +293,24 @@ export function ConversationActions(t0) {
|
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
};
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
296
|
+
$[49] = handleHide;
|
|
297
|
+
$[50] = handleLatestMessageUnread;
|
|
298
|
+
$[51] = handleMute;
|
|
299
|
+
$[52] = t19;
|
|
299
300
|
} else {
|
|
300
|
-
t19 = $[
|
|
301
|
+
t19 = $[52];
|
|
301
302
|
}
|
|
302
303
|
const handleAccessibilityAction = t19;
|
|
303
304
|
let t20;
|
|
304
305
|
let t21;
|
|
305
|
-
if ($[
|
|
306
|
+
if ($[53] !== selectMode) {
|
|
306
307
|
t20 = () => {
|
|
307
|
-
if (
|
|
308
|
-
|
|
308
|
+
if (selectMode) {
|
|
309
|
+
handleSwipeableClose();
|
|
309
310
|
}
|
|
310
|
-
handleSwipeableClose();
|
|
311
311
|
};
|
|
312
|
-
t21 = [
|
|
313
|
-
$[
|
|
314
|
-
$[53] = conversation.id;
|
|
312
|
+
t21 = [selectMode, handleSwipeableClose];
|
|
313
|
+
$[53] = selectMode;
|
|
315
314
|
$[54] = t20;
|
|
316
315
|
$[55] = t21;
|
|
317
316
|
} else {
|
|
@@ -320,15 +319,35 @@ export function ConversationActions(t0) {
|
|
|
320
319
|
}
|
|
321
320
|
useEffect(t20, t21);
|
|
322
321
|
let t22;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
322
|
+
let t23;
|
|
323
|
+
if ($[56] !== activeConversationId || $[57] !== conversation.id) {
|
|
324
|
+
t22 = () => {
|
|
325
|
+
if (activeConversationId === conversation.id) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
handleSwipeableClose();
|
|
329
|
+
};
|
|
330
|
+
t23 = [activeConversationId, conversation.id, handleSwipeableClose];
|
|
331
|
+
$[56] = activeConversationId;
|
|
332
|
+
$[57] = conversation.id;
|
|
333
|
+
$[58] = t22;
|
|
334
|
+
$[59] = t23;
|
|
326
335
|
} else {
|
|
327
|
-
t22 = $[
|
|
336
|
+
t22 = $[58];
|
|
337
|
+
t23 = $[59];
|
|
328
338
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
339
|
+
useEffect(t22, t23);
|
|
340
|
+
const t24 = !selectMode;
|
|
341
|
+
let t25;
|
|
342
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
343
|
+
t25 = () => setDisabled(false);
|
|
344
|
+
$[60] = t25;
|
|
345
|
+
} else {
|
|
346
|
+
t25 = $[60];
|
|
347
|
+
}
|
|
348
|
+
let t26;
|
|
349
|
+
if ($[61] !== canHide || $[62] !== canMute || $[63] !== handleHide || $[64] !== handleLatestMessageUnread || $[65] !== handleMute || $[66] !== hidden || $[67] !== isConversationEmpty || $[68] !== isHiddenPending || $[69] !== isMarkReadPending || $[70] !== isMutedPending || $[71] !== muted || $[72] !== read) {
|
|
350
|
+
t26 = () => /*#__PURE__*/_jsx(LeftActions, {
|
|
332
351
|
isConversationEmpty: isConversationEmpty,
|
|
333
352
|
canMute: canMute,
|
|
334
353
|
canHide: canHide,
|
|
@@ -342,101 +361,118 @@ export function ConversationActions(t0) {
|
|
|
342
361
|
isHiddenPending: isHiddenPending,
|
|
343
362
|
isMarkReadPending: isMarkReadPending
|
|
344
363
|
});
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
358
|
-
} else {
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
const
|
|
362
|
-
const
|
|
363
|
-
let
|
|
364
|
-
if ($[
|
|
365
|
-
|
|
364
|
+
$[61] = canHide;
|
|
365
|
+
$[62] = canMute;
|
|
366
|
+
$[63] = handleHide;
|
|
367
|
+
$[64] = handleLatestMessageUnread;
|
|
368
|
+
$[65] = handleMute;
|
|
369
|
+
$[66] = hidden;
|
|
370
|
+
$[67] = isConversationEmpty;
|
|
371
|
+
$[68] = isHiddenPending;
|
|
372
|
+
$[69] = isMarkReadPending;
|
|
373
|
+
$[70] = isMutedPending;
|
|
374
|
+
$[71] = muted;
|
|
375
|
+
$[72] = read;
|
|
376
|
+
$[73] = t26;
|
|
377
|
+
} else {
|
|
378
|
+
t26 = $[73];
|
|
379
|
+
}
|
|
380
|
+
const t27 = `conversation-${conversation.id}`;
|
|
381
|
+
const t28 = canEnterSelectMode ? handleLongPress : undefined;
|
|
382
|
+
let t29;
|
|
383
|
+
if ($[74] !== style) {
|
|
384
|
+
t29 = t30 => {
|
|
366
385
|
const {
|
|
367
386
|
pressed
|
|
368
|
-
} =
|
|
387
|
+
} = t30;
|
|
369
388
|
return [style, pressed && platformPressedOpacityStyle];
|
|
370
389
|
};
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
390
|
+
$[74] = style;
|
|
391
|
+
$[75] = t29;
|
|
373
392
|
} else {
|
|
374
|
-
|
|
393
|
+
t29 = $[75];
|
|
375
394
|
}
|
|
376
|
-
let
|
|
377
|
-
if ($[
|
|
378
|
-
|
|
395
|
+
let t30;
|
|
396
|
+
if ($[76] !== androidRippleColor) {
|
|
397
|
+
t30 = {
|
|
379
398
|
color: androidRippleColor,
|
|
380
399
|
borderless: false,
|
|
381
400
|
foreground: true
|
|
382
401
|
};
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
} else {
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
402
|
+
$[76] = androidRippleColor;
|
|
403
|
+
$[77] = t30;
|
|
404
|
+
} else {
|
|
405
|
+
t30 = $[77];
|
|
406
|
+
}
|
|
407
|
+
const t31 = selectMode ? "checkbox" : "button";
|
|
408
|
+
let t32;
|
|
409
|
+
if ($[78] !== selectMode || $[79] !== selected) {
|
|
410
|
+
t32 = selectMode ? {
|
|
411
|
+
checked: selected
|
|
412
|
+
} : undefined;
|
|
413
|
+
$[78] = selectMode;
|
|
414
|
+
$[79] = selected;
|
|
415
|
+
$[80] = t32;
|
|
416
|
+
} else {
|
|
417
|
+
t32 = $[80];
|
|
418
|
+
}
|
|
419
|
+
let t33;
|
|
420
|
+
if ($[81] !== accessibilityActions || $[82] !== accessibilityLabel || $[83] !== children || $[84] !== handleAccessibilityAction || $[85] !== handlePress || $[86] !== t27 || $[87] !== t28 || $[88] !== t29 || $[89] !== t30 || $[90] !== t31 || $[91] !== t32) {
|
|
421
|
+
t33 = /*#__PURE__*/_jsx(Pressable, {
|
|
422
|
+
testID: t27,
|
|
392
423
|
onPress: handlePress,
|
|
393
|
-
onLongPress:
|
|
394
|
-
style:
|
|
395
|
-
android_ripple:
|
|
424
|
+
onLongPress: t28,
|
|
425
|
+
style: t29,
|
|
426
|
+
android_ripple: t30,
|
|
396
427
|
accessibilityLabel: accessibilityLabel,
|
|
397
|
-
accessibilityRole:
|
|
428
|
+
accessibilityRole: t31,
|
|
429
|
+
accessibilityState: t32,
|
|
398
430
|
accessibilityActions: accessibilityActions,
|
|
399
431
|
onAccessibilityAction: handleAccessibilityAction,
|
|
400
432
|
children: children
|
|
401
433
|
});
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
434
|
+
$[81] = accessibilityActions;
|
|
435
|
+
$[82] = accessibilityLabel;
|
|
436
|
+
$[83] = children;
|
|
437
|
+
$[84] = handleAccessibilityAction;
|
|
438
|
+
$[85] = handlePress;
|
|
439
|
+
$[86] = t27;
|
|
440
|
+
$[87] = t28;
|
|
441
|
+
$[88] = t29;
|
|
442
|
+
$[89] = t30;
|
|
443
|
+
$[90] = t31;
|
|
444
|
+
$[91] = t32;
|
|
445
|
+
$[92] = t33;
|
|
446
|
+
} else {
|
|
447
|
+
t33 = $[92];
|
|
448
|
+
}
|
|
449
|
+
let t34;
|
|
450
|
+
if ($[93] !== handleSwipeableOpen || $[94] !== styles.swipeableChildContainer || $[95] !== styles.swipeableContainer || $[96] !== t24 || $[97] !== t26 || $[98] !== t33) {
|
|
451
|
+
t34 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
|
|
418
452
|
ref: swipeableRef,
|
|
453
|
+
enabled: t24,
|
|
419
454
|
childrenContainerStyle: styles.swipeableChildContainer,
|
|
420
455
|
containerStyle: styles.swipeableContainer,
|
|
421
456
|
overshootFriction: 8,
|
|
422
457
|
overshootLeft: overshootLeft,
|
|
423
458
|
overshootRight: false,
|
|
424
459
|
onSwipeableOpenStartDrag: handleSwipeableOpen,
|
|
425
|
-
onSwipeableClose:
|
|
460
|
+
onSwipeableClose: t25,
|
|
426
461
|
renderRightActions: _temp,
|
|
427
|
-
renderLeftActions:
|
|
428
|
-
children:
|
|
462
|
+
renderLeftActions: t26,
|
|
463
|
+
children: t33
|
|
429
464
|
});
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
465
|
+
$[93] = handleSwipeableOpen;
|
|
466
|
+
$[94] = styles.swipeableChildContainer;
|
|
467
|
+
$[95] = styles.swipeableContainer;
|
|
468
|
+
$[96] = t24;
|
|
469
|
+
$[97] = t26;
|
|
470
|
+
$[98] = t33;
|
|
471
|
+
$[99] = t34;
|
|
436
472
|
} else {
|
|
437
|
-
|
|
473
|
+
t34 = $[99];
|
|
438
474
|
}
|
|
439
|
-
return
|
|
475
|
+
return t34;
|
|
440
476
|
}
|
|
441
477
|
function _temp() {
|
|
442
478
|
return /*#__PURE__*/_jsx(_Fragment, {});
|