@adminide-stack/yantra-mobile 12.0.94-alpha.2 → 12.0.95-alpha.0
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/compute.js +113 -1
- package/lib/compute.js.map +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
- package/lib/features/apps/AppsCatalog.js +20 -0
- package/lib/features/apps/AppsCatalog.js.map +1 -1
- package/lib/features/apps/appArt.js +3 -1
- package/lib/features/apps/appArt.js.map +1 -1
- package/lib/features/apps/appFavorites.js +8 -2
- package/lib/features/apps/appFavorites.js.map +1 -1
- package/lib/features/apps/mobileAppCatalog.js +27 -1
- package/lib/features/apps/mobileAppCatalog.js.map +1 -1
- package/lib/features/canvas/VideoGeneratorExperience.js +1 -0
- package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
- package/lib/features/canvas/videoEditor/remoteMediaClient.js +51 -24
- package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -1
- package/lib/features/chat/connectorConnect.js +1 -1
- package/lib/features/inbox/InboxAgentChatPane.js +64 -0
- package/lib/features/inbox/InboxAgentChatPane.js.map +1 -0
- package/lib/features/inbox/InboxExperience.js +631 -0
- package/lib/features/inbox/InboxExperience.js.map +1 -0
- package/lib/features/inbox/components/BottomSheet.js +111 -0
- package/lib/features/inbox/components/BottomSheet.js.map +1 -0
- package/lib/features/inbox/components/ComposeSheet.js +298 -0
- package/lib/features/inbox/components/ComposeSheet.js.map +1 -0
- package/lib/features/inbox/components/InboxStates.js +182 -0
- package/lib/features/inbox/components/InboxStates.js.map +1 -0
- package/lib/features/inbox/components/MailBody.js +103 -0
- package/lib/features/inbox/components/MailBody.js.map +1 -0
- package/lib/features/inbox/components/MessageReader.js +396 -0
- package/lib/features/inbox/components/MessageReader.js.map +1 -0
- package/lib/features/inbox/components/MessageRow.js +153 -0
- package/lib/features/inbox/components/MessageRow.js.map +1 -0
- package/lib/features/inbox/components/SenderAvatar.js +24 -0
- package/lib/features/inbox/components/SenderAvatar.js.map +1 -0
- package/lib/features/inbox/components/Tap.js +55 -0
- package/lib/features/inbox/components/Tap.js.map +1 -0
- package/lib/features/inbox/composeDraft.js +89 -0
- package/lib/features/inbox/composeDraft.js.map +1 -0
- package/lib/features/inbox/formatMailDate.js +60 -0
- package/lib/features/inbox/formatMailDate.js.map +1 -0
- package/lib/features/inbox/inboxAccounts.js +110 -0
- package/lib/features/inbox/inboxAccounts.js.map +1 -0
- package/lib/features/inbox/inboxClient.js +293 -0
- package/lib/features/inbox/inboxClient.js.map +1 -0
- package/lib/features/inbox/inboxContext.js +27 -0
- package/lib/features/inbox/inboxContext.js.map +1 -0
- package/lib/features/inbox/inboxFolders.js +47 -0
- package/lib/features/inbox/inboxFolders.js.map +1 -0
- package/lib/features/inbox/inboxNormalize.js +144 -0
- package/lib/features/inbox/inboxNormalize.js.map +1 -0
- package/lib/features/inbox/inboxPreference.js +20 -0
- package/lib/features/inbox/inboxPreference.js.map +1 -0
- package/lib/features/inbox/inboxTheme.js +54 -0
- package/lib/features/inbox/inboxTheme.js.map +1 -0
- package/lib/features/inbox/nativeInboxRegistry.js +15 -0
- package/lib/features/inbox/nativeInboxRegistry.js.map +1 -0
- package/lib/features/inbox/openAttachment.js +43 -0
- package/lib/features/inbox/openAttachment.js.map +1 -0
- package/lib/features/inbox/useInboxMailbox.js +250 -0
- package/lib/features/inbox/useInboxMailbox.js.map +1 -0
- package/lib/features/inbox/useMailMessage.js +101 -0
- package/lib/features/inbox/useMailMessage.js.map +1 -0
- package/lib/features/study/StudyAgentChatPane.js +67 -0
- package/lib/features/study/StudyAgentChatPane.js.map +1 -0
- package/lib/features/study/StudyExperience.js +586 -0
- package/lib/features/study/StudyExperience.js.map +1 -0
- package/lib/features/study/components/CellView.js +133 -0
- package/lib/features/study/components/CellView.js.map +1 -0
- package/lib/features/study/components/IntakeCard.js +203 -0
- package/lib/features/study/components/IntakeCard.js.map +1 -0
- package/lib/features/study/components/NotebookSwitcher.js +74 -0
- package/lib/features/study/components/NotebookSwitcher.js.map +1 -0
- package/lib/features/study/components/SourceStrip.js +69 -0
- package/lib/features/study/components/SourceStrip.js.map +1 -0
- package/lib/features/study/components/StudyComposer.js +118 -0
- package/lib/features/study/components/StudyComposer.js.map +1 -0
- package/lib/features/study/components/StudyOnboarding.js +477 -0
- package/lib/features/study/components/StudyOnboarding.js.map +1 -0
- package/lib/features/study/components/StudySheet.js +120 -0
- package/lib/features/study/components/StudySheet.js.map +1 -0
- package/lib/features/study/components/StudyStates.js +148 -0
- package/lib/features/study/components/StudyStates.js.map +1 -0
- package/lib/features/study/components/TextEntrySheet.js +111 -0
- package/lib/features/study/components/TextEntrySheet.js.map +1 -0
- package/lib/features/study/nativeStudyRegistry.js +15 -0
- package/lib/features/study/nativeStudyRegistry.js.map +1 -0
- package/lib/features/study/shareExport.js +38 -0
- package/lib/features/study/shareExport.js.map +1 -0
- package/lib/features/study/studyClient.js +278 -0
- package/lib/features/study/studyClient.js.map +1 -0
- package/lib/features/study/studyContext.js +25 -0
- package/lib/features/study/studyContext.js.map +1 -0
- package/lib/features/study/studyFiles.js +140 -0
- package/lib/features/study/studyFiles.js.map +1 -0
- package/lib/features/study/studyNormalize.js +116 -0
- package/lib/features/study/studyNormalize.js.map +1 -0
- package/lib/features/study/studyPreference.js +24 -0
- package/lib/features/study/studyPreference.js.map +1 -0
- package/lib/features/study/studyProfile.js +233 -0
- package/lib/features/study/studyProfile.js.map +1 -0
- package/lib/features/study/studyPrompts.js +78 -0
- package/lib/features/study/studyPrompts.js.map +1 -0
- package/lib/features/study/studyTheme.js +47 -0
- package/lib/features/study/studyTheme.js.map +1 -0
- package/lib/features/study/useStudyWorkspace.js +401 -0
- package/lib/features/study/useStudyWorkspace.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/routes.json +108 -0
- package/lib/screens/InboxNative/index.js +77 -0
- package/lib/screens/InboxNative/index.js.map +1 -0
- package/lib/screens/InboxNative/useConnectMailbox.js +42 -0
- package/lib/screens/InboxNative/useConnectMailbox.js.map +1 -0
- package/lib/screens/InboxNative/useInboxHostChat.js +62 -0
- package/lib/screens/InboxNative/useInboxHostChat.js.map +1 -0
- package/lib/screens/InboxNative/useMailAccounts.js +54 -0
- package/lib/screens/InboxNative/useMailAccounts.js.map +1 -0
- package/lib/screens/StudyNative/index.js +80 -0
- package/lib/screens/StudyNative/index.js.map +1 -0
- package/lib/screens/StudyNative/useStudyHostChat.js +62 -0
- package/lib/screens/StudyNative/useStudyHostChat.js.map +1 -0
- package/lib/utils/authUserDisplay.js +11 -1
- package/lib/utils/authUserDisplay.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotebookSwitcher.js","sources":["../../../../src/features/study/components/NotebookSwitcher.tsx"],"sourcesContent":["/**\n * Every notebook, newest first, with a search once there are enough to need\n * one. The web top bar's file search and Notebook dropdown, as one sheet.\n */\nimport React, { useMemo, useState } from 'react';\nimport { ActivityIndicator, ScrollView, StyleSheet, Text, TextInput, View } from 'react-native';\nimport { MaterialCommunityIcons } from '@expo/vector-icons';\nimport type { StudyTheme } from '../studyTheme';\nimport type { StudyNotebookSummary } from '../types';\nimport { SheetRow, StudySheet } from './StudySheet';\n\nconst SEARCH_FROM = 7;\n\nfunction countLine(row: StudyNotebookSummary): string {\n const parts: string[] = [];\n if (row.sourceCount) parts.push(row.sourceCount === 1 ? '1 source' : `${row.sourceCount} sources`);\n parts.push(row.cellCount === 1 ? '1 entry' : `${row.cellCount} entries`);\n return parts.join(' · ');\n}\n\nexport function NotebookSwitcher({\n visible,\n notebooks,\n activeId,\n loading,\n error,\n theme,\n onPick,\n onNew,\n onRetry,\n onClose,\n}: {\n visible: boolean;\n notebooks: StudyNotebookSummary[];\n activeId: string | null;\n loading: boolean;\n error: string | null;\n theme: StudyTheme;\n onPick: (id: string) => void;\n onNew: () => void;\n onRetry: () => void;\n onClose: () => void;\n}) {\n const [query, setQuery] = useState('');\n const rows = useMemo(() => {\n const q = query.trim().toLowerCase();\n return q ? notebooks.filter((row) => row.title.toLowerCase().includes(q)) : notebooks;\n }, [notebooks, query]);\n\n return (\n <StudySheet visible={visible} title=\"Notebooks\" theme={theme} onClose={onClose} testID=\"study-switcher\">\n {notebooks.length >= SEARCH_FROM ? (\n <View style={[styles.search, { backgroundColor: theme.screen }]}>\n <MaterialCommunityIcons name=\"magnify\" size={18} color={theme.faint} />\n <TextInput\n value={query}\n onChangeText={setQuery}\n placeholder=\"Find a notebook\"\n placeholderTextColor={theme.faint}\n autoCorrect={false}\n clearButtonMode=\"while-editing\"\n accessibilityLabel=\"Find a notebook\"\n style={[styles.searchInput, { color: theme.ink }]}\n />\n </View>\n ) : null}\n <SheetRow\n icon=\"plus\"\n label=\"New notebook\"\n detail=\"Start from a file, a link, or your notes\"\n onPress={onNew}\n theme={theme}\n testID=\"study-new-notebook\"\n />\n <ScrollView style={styles.list} keyboardShouldPersistTaps=\"handled\">\n {rows.map((row) => (\n <SheetRow\n key={row.id}\n icon=\"notebook-outline\"\n label={row.title}\n detail={countLine(row)}\n selected={row.id === activeId}\n onPress={() => onPick(row.id)}\n theme={theme}\n testID={`study-notebook-${row.id}`}\n />\n ))}\n {loading && notebooks.length === 0 ? (\n <View style={styles.state}>\n <ActivityIndicator color={theme.muted} />\n </View>\n ) : null}\n {!loading && error && notebooks.length === 0 ? (\n <SheetRow\n icon=\"refresh\"\n label=\"Could not load your notebooks\"\n detail=\"Tap to try again\"\n onPress={onRetry}\n theme={theme}\n />\n ) : null}\n {!loading && !error && rows.length === 0 ? (\n <Text style={[styles.empty, { color: theme.faint }]}>\n {query.trim() ? `No notebook matches “${query.trim()}”.` : 'No notebooks yet.'}\n </Text>\n ) : null}\n </ScrollView>\n </StudySheet>\n );\n}\n\nconst styles = StyleSheet.create({\n search: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n height: 40,\n marginHorizontal: 16,\n marginTop: 4,\n marginBottom: 6,\n paddingHorizontal: 12,\n borderRadius: 12,\n },\n searchInput: { flex: 1, fontSize: 15, paddingVertical: 0 },\n list: { maxHeight: 420 },\n state: { paddingVertical: 24, alignItems: 'center' },\n empty: { fontSize: 14, paddingHorizontal: 20, paddingVertical: 16 },\n});\n"],"names":[],"mappings":"+QAUA,MAAM,WAAc,GAAA,CAAA;AACpB,SAAS,UAAU,GAAmC,EAAA;AACpD,EAAA,MAAM,QAAkB,EAAC;AACzB,EAAI,IAAA,GAAA,CAAI,WAAa,EAAA,KAAA,CAAM,IAAK,CAAA,GAAA,CAAI,WAAgB,KAAA,CAAA,GAAI,UAAa,GAAA,CAAA,EAAG,GAAI,CAAA,WAAW,CAAU,QAAA,CAAA,CAAA;AACjG,EAAM,KAAA,CAAA,IAAA,CAAK,IAAI,SAAc,KAAA,CAAA,GAAI,YAAY,CAAG,EAAA,GAAA,CAAI,SAAS,CAAU,QAAA,CAAA,CAAA;AACvE,EAAO,OAAA,KAAA,CAAM,KAAK,QAAK,CAAA;AACzB;AACO,SAAS,gBAAiB,CAAA;AAAA,EAC/B,OAAA;AAAA,EACA,SAAA;AAAA,EACA,QAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA;AACF,CAWG,EAAA;AACD,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAI,SAAS,EAAE,CAAA;AACrC,EAAM,MAAA,IAAA,GAAO,QAAQ,MAAM;AACzB,IAAA,MAAM,CAAI,GAAA,KAAA,CAAM,IAAK,EAAA,CAAE,WAAY,EAAA;AACnC,IAAO,OAAA,CAAA,GAAI,SAAU,CAAA,MAAA,CAAO,CAAO,GAAA,KAAA,GAAA,CAAI,KAAM,CAAA,WAAA,EAAc,CAAA,QAAA,CAAS,CAAC,CAAC,CAAI,GAAA,SAAA;AAAA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EAAA,EAAA;AAAA,IACR,gBAAkB,EAAA,EAAA;AAAA,IAClB,SAAW,EAAA,CAAA;AAAA,IACX,YAAc,EAAA,CAAA;AAAA,IACd,iBAAmB,EAAA,EAAA;AAAA,IACnB,YAAc,EAAA;AAAA,GAChB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,CAAA;AAAA,IACN,QAAU,EAAA,EAAA;AAAA,IACV,eAAiB,EAAA;AAAA,GACnB;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,SAAW,EAAA;AAAA,GACb;AAAA,EACA,KAAO,EAAA;AAAA,IACL,eAAiB,EAAA,EAAA;AAAA,IACjB,UAAY,EAAA;AAAA,GACd;AAAA,EACA,KAAO,EAAA;AAAA,IACL,QAAU,EAAA,EAAA;AAAA,IACV,iBAAmB,EAAA,EAAA;AAAA,IACnB,eAAiB,EAAA;AAAA;AAErB,CAAC,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {StyleSheet,ScrollView,Text}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {Tap,DIM}from'../../inbox/components/Tap.js';function sourceIcon(kind) {
|
|
2
|
+
switch (kind) {
|
|
3
|
+
case "url":
|
|
4
|
+
return "link-variant";
|
|
5
|
+
case "document":
|
|
6
|
+
return "file-document-outline";
|
|
7
|
+
case "media":
|
|
8
|
+
return "headphones";
|
|
9
|
+
default:
|
|
10
|
+
return "text-box-outline";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function SourceStrip({
|
|
14
|
+
sources,
|
|
15
|
+
theme,
|
|
16
|
+
onOpen,
|
|
17
|
+
onAdd,
|
|
18
|
+
disabled
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.row, style: styles.strip, testID: "study-sources", children: [
|
|
21
|
+
sources.map((source) => /* @__PURE__ */ jsxs(Tap, { onPress: () => onOpen(source), accessibilityRole: "button", accessibilityLabel: `Source: ${source.title}`, style: [styles.chip, {
|
|
22
|
+
backgroundColor: theme.card,
|
|
23
|
+
borderColor: theme.border
|
|
24
|
+
}], pressedStyle: DIM, testID: `study-source-${source.id}`, children: [
|
|
25
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: sourceIcon(source.kind), size: 15, color: theme.muted }),
|
|
26
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.chipText, {
|
|
27
|
+
color: theme.ink
|
|
28
|
+
}], numberOfLines: 1, children: source.title })
|
|
29
|
+
] }, source.id)),
|
|
30
|
+
/* @__PURE__ */ jsxs(Tap, { onPress: onAdd, disabled, accessibilityRole: "button", accessibilityLabel: "Add a source", style: [styles.chip, styles.add, {
|
|
31
|
+
borderColor: theme.selectedLine,
|
|
32
|
+
opacity: disabled ? 0.5 : 1
|
|
33
|
+
}], pressedStyle: DIM, testID: "study-add-source", children: [
|
|
34
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 15, color: theme.ink }),
|
|
35
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.chipText, {
|
|
36
|
+
color: theme.ink
|
|
37
|
+
}], children: sources.length ? "Add source" : "Add a source" })
|
|
38
|
+
] })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
strip: {
|
|
43
|
+
flexGrow: 0
|
|
44
|
+
},
|
|
45
|
+
row: {
|
|
46
|
+
paddingHorizontal: 16,
|
|
47
|
+
paddingVertical: 8,
|
|
48
|
+
gap: 8
|
|
49
|
+
},
|
|
50
|
+
chip: {
|
|
51
|
+
flexDirection: "row",
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
gap: 6,
|
|
54
|
+
height: 32,
|
|
55
|
+
maxWidth: 220,
|
|
56
|
+
paddingHorizontal: 12,
|
|
57
|
+
borderRadius: 16,
|
|
58
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
59
|
+
},
|
|
60
|
+
add: {
|
|
61
|
+
borderStyle: "dashed",
|
|
62
|
+
borderWidth: 1
|
|
63
|
+
},
|
|
64
|
+
chipText: {
|
|
65
|
+
fontSize: 13,
|
|
66
|
+
fontWeight: "500",
|
|
67
|
+
flexShrink: 1
|
|
68
|
+
}
|
|
69
|
+
});export{SourceStrip,sourceIcon};//# sourceMappingURL=SourceStrip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceStrip.js","sources":["../../../../src/features/study/components/SourceStrip.tsx"],"sourcesContent":["/**\n * The notebook's sources as a row of chips: what the tutor answers from.\n * Tapping one opens its details; the trailing chip adds another.\n */\nimport React from 'react';\nimport { ScrollView, StyleSheet, Text } from 'react-native';\nimport { MaterialCommunityIcons } from '@expo/vector-icons';\nimport { DIM, Tap } from '../../inbox/components/Tap';\nimport type { StudyTheme } from '../studyTheme';\nimport type { StudySource, StudySourceKind } from '../types';\n\ntype IconName = React.ComponentProps<typeof MaterialCommunityIcons>['name'];\n\nexport function sourceIcon(kind: StudySourceKind): IconName {\n switch (kind) {\n case 'url':\n return 'link-variant';\n case 'document':\n return 'file-document-outline';\n case 'media':\n return 'headphones';\n default:\n return 'text-box-outline';\n }\n}\n\nexport function SourceStrip({\n sources,\n theme,\n onOpen,\n onAdd,\n disabled,\n}: {\n sources: StudySource[];\n theme: StudyTheme;\n onOpen: (source: StudySource) => void;\n onAdd: () => void;\n disabled?: boolean;\n}) {\n return (\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n contentContainerStyle={styles.row}\n style={styles.strip}\n testID=\"study-sources\"\n >\n {sources.map((source) => (\n <Tap\n key={source.id}\n onPress={() => onOpen(source)}\n accessibilityRole=\"button\"\n accessibilityLabel={`Source: ${source.title}`}\n style={[styles.chip, { backgroundColor: theme.card, borderColor: theme.border }]}\n pressedStyle={DIM}\n testID={`study-source-${source.id}`}\n >\n <MaterialCommunityIcons name={sourceIcon(source.kind)} size={15} color={theme.muted} />\n <Text style={[styles.chipText, { color: theme.ink }]} numberOfLines={1}>\n {source.title}\n </Text>\n </Tap>\n ))}\n <Tap\n onPress={onAdd}\n disabled={disabled}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Add a source\"\n style={[styles.chip, styles.add, { borderColor: theme.selectedLine, opacity: disabled ? 0.5 : 1 }]}\n pressedStyle={DIM}\n testID=\"study-add-source\"\n >\n <MaterialCommunityIcons name=\"plus\" size={15} color={theme.ink} />\n <Text style={[styles.chipText, { color: theme.ink }]}>\n {sources.length ? 'Add source' : 'Add a source'}\n </Text>\n </Tap>\n </ScrollView>\n );\n}\n\nconst styles = StyleSheet.create({\n strip: { flexGrow: 0 },\n row: { paddingHorizontal: 16, paddingVertical: 8, gap: 8 },\n chip: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 6,\n height: 32,\n maxWidth: 220,\n paddingHorizontal: 12,\n borderRadius: 16,\n borderWidth: StyleSheet.hairlineWidth,\n },\n add: { borderStyle: 'dashed', borderWidth: 1 },\n chipText: { fontSize: 13, fontWeight: '500', flexShrink: 1 },\n});\n"],"names":[],"mappings":"2MAWO,SAAS,WAAW,IAAiC,EAAA;AAC1D,EAAA,QAAQ,IAAM;AAAA,IACZ,KAAK,KAAA;AACH,MAAO,OAAA,cAAA;AAAA,IACT,KAAK,UAAA;AACH,MAAO,OAAA,uBAAA;AAAA,IACT,KAAK,OAAA;AACH,MAAO,OAAA,YAAA;AAAA,IACT;AACE,MAAO,OAAA,kBAAA;AAAA;AAEb;AACO,SAAS,WAAY,CAAA;AAAA,EAC1B,OAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAMG,EAAA;AACD,EAAA,uBAAQ,IAAA,CAAA,UAAA,EAAA,EAAW,UAAU,EAAA,IAAA,EAAC,8BAAgC,EAAA,KAAA,EAAO,qBAAuB,EAAA,MAAA,CAAO,GAAK,EAAA,KAAA,EAAO,MAAO,CAAA,KAAA,EAA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EAAI,EAAA,KAAA,EAAO,MAAM,GAAK,EAAA,CAAA;AAAA,sBAC/D,GAAA,CAAA,IAAA,EAAA,EAAK,KAAO,EAAA,CAAC,OAAO,QAAU,EAAA;AAAA,QACvC,OAAO,KAAM,CAAA;AAAA,OACd,CAAA,EACc,QAAQ,EAAA,OAAA,CAAA,MAAA,GAAS,eAAe,cACrC,EAAA;AAAA,KACJ,EAAA;AAAA,GACJ,EAAA,CAAA;AACR;AACA,MAAM,MAAA,GAAS,WAAW,MAAO,CAAA;AAAA,EAC/B,KAAO,EAAA;AAAA,IACL,QAAU,EAAA;AAAA,GACZ;AAAA,EACA,GAAK,EAAA;AAAA,IACH,iBAAmB,EAAA,EAAA;AAAA,IACnB,eAAiB,EAAA,CAAA;AAAA,IACjB,GAAK,EAAA;AAAA,GACP;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,aAAe,EAAA,KAAA;AAAA,IACf,UAAY,EAAA,QAAA;AAAA,IACZ,GAAK,EAAA,CAAA;AAAA,IACL,MAAQ,EAAA,EAAA;AAAA,IACR,QAAU,EAAA,GAAA;AAAA,IACV,iBAAmB,EAAA,EAAA;AAAA,IACnB,YAAc,EAAA,EAAA;AAAA,IACd,aAAa,UAAW,CAAA;AAAA,GAC1B;AAAA,EACA,GAAK,EAAA;AAAA,IACH,WAAa,EAAA,QAAA;AAAA,IACb,WAAa,EAAA;AAAA,GACf;AAAA,EACA,QAAU,EAAA;AAAA,IACR,QAAU,EAAA,EAAA;AAAA,IACV,UAAY,EAAA,KAAA;AAAA,IACZ,UAAY,EAAA;AAAA;AAEhB,CAAC,CAAA"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useState}from'react';import {StyleSheet,View,ScrollView,Text,TextInput,ActivityIndicator}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {Tap,DIM}from'../../inbox/components/Tap.js';function StudyComposer({
|
|
2
|
+
theme,
|
|
3
|
+
busy,
|
|
4
|
+
shortcuts,
|
|
5
|
+
placeholder,
|
|
6
|
+
bottomPad,
|
|
7
|
+
onAsk,
|
|
8
|
+
onShortcut,
|
|
9
|
+
onAdd
|
|
10
|
+
}) {
|
|
11
|
+
const [draft, setDraft] = useState("");
|
|
12
|
+
const canSend = Boolean(draft.trim()) && !busy;
|
|
13
|
+
const send = async () => {
|
|
14
|
+
const text = draft.trim();
|
|
15
|
+
if (!text || busy) return;
|
|
16
|
+
setDraft("");
|
|
17
|
+
if (!await onAsk(text)) setDraft((current) => current || text);
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.wrap, {
|
|
20
|
+
backgroundColor: theme.screen,
|
|
21
|
+
paddingBottom: bottomPad
|
|
22
|
+
}], children: [
|
|
23
|
+
shortcuts.length ? /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, keyboardShouldPersistTaps: "handled", contentContainerStyle: styles.shortcuts, style: styles.shortcutBar, children: shortcuts.map((shortcut) => /* @__PURE__ */ jsx(Tap, { onPress: () => onShortcut(shortcut), disabled: busy, accessibilityRole: "button", accessibilityLabel: shortcut.label, testID: `study-shortcut-${shortcut.id}`, style: [styles.shortcut, {
|
|
24
|
+
backgroundColor: theme.card,
|
|
25
|
+
borderColor: theme.border,
|
|
26
|
+
opacity: busy ? 0.5 : 1
|
|
27
|
+
}], pressedStyle: {
|
|
28
|
+
backgroundColor: theme.selected
|
|
29
|
+
}, children: /* @__PURE__ */ jsx(Text, { style: [styles.shortcutLabel, {
|
|
30
|
+
color: theme.ink
|
|
31
|
+
}], children: shortcut.label }) }, shortcut.id)) }) : null,
|
|
32
|
+
/* @__PURE__ */ jsxs(View, { style: styles.bar, children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Tap, { onPress: onAdd, disabled: busy, accessibilityRole: "button", accessibilityLabel: "Add to notebook", testID: "study-add", style: [styles.plus, {
|
|
34
|
+
backgroundColor: theme.card,
|
|
35
|
+
borderColor: theme.border,
|
|
36
|
+
opacity: busy ? 0.5 : 1
|
|
37
|
+
}], pressedStyle: DIM, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 22, color: theme.ink }) }),
|
|
38
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.field, {
|
|
39
|
+
backgroundColor: theme.card,
|
|
40
|
+
borderColor: theme.border
|
|
41
|
+
}], children: [
|
|
42
|
+
/* @__PURE__ */ jsx(TextInput, { value: draft, onChangeText: setDraft, placeholder, placeholderTextColor: theme.faint, multiline: true, textAlignVertical: "center", accessibilityLabel: "Ask your tutor", testID: "study-composer-input", style: [styles.input, {
|
|
43
|
+
color: theme.ink
|
|
44
|
+
}] }),
|
|
45
|
+
/* @__PURE__ */ jsx(Tap, { onPress: () => void send(), disabled: !canSend, accessibilityRole: "button", accessibilityLabel: "Send to tutor", accessibilityState: {
|
|
46
|
+
disabled: !canSend,
|
|
47
|
+
busy
|
|
48
|
+
}, testID: "study-composer-send", style: [styles.send, {
|
|
49
|
+
backgroundColor: canSend ? theme.accent : theme.chip
|
|
50
|
+
}], pressedStyle: DIM, children: busy ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: theme.muted }) : /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "arrow-up", size: 18, color: canSend ? theme.accentInk : theme.faint }) })
|
|
51
|
+
] })
|
|
52
|
+
] })
|
|
53
|
+
] });
|
|
54
|
+
}
|
|
55
|
+
const styles = StyleSheet.create({
|
|
56
|
+
wrap: {
|
|
57
|
+
paddingTop: 6
|
|
58
|
+
},
|
|
59
|
+
shortcutBar: {
|
|
60
|
+
flexGrow: 0
|
|
61
|
+
},
|
|
62
|
+
shortcuts: {
|
|
63
|
+
paddingHorizontal: 12,
|
|
64
|
+
paddingBottom: 8,
|
|
65
|
+
gap: 8
|
|
66
|
+
},
|
|
67
|
+
shortcut: {
|
|
68
|
+
height: 32,
|
|
69
|
+
paddingHorizontal: 14,
|
|
70
|
+
borderRadius: 16,
|
|
71
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
72
|
+
justifyContent: "center"
|
|
73
|
+
},
|
|
74
|
+
shortcutLabel: {
|
|
75
|
+
fontSize: 13,
|
|
76
|
+
fontWeight: "500"
|
|
77
|
+
},
|
|
78
|
+
bar: {
|
|
79
|
+
flexDirection: "row",
|
|
80
|
+
alignItems: "flex-end",
|
|
81
|
+
gap: 8,
|
|
82
|
+
paddingHorizontal: 12
|
|
83
|
+
},
|
|
84
|
+
plus: {
|
|
85
|
+
width: 44,
|
|
86
|
+
height: 44,
|
|
87
|
+
borderRadius: 22,
|
|
88
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
justifyContent: "center"
|
|
91
|
+
},
|
|
92
|
+
field: {
|
|
93
|
+
flex: 1,
|
|
94
|
+
flexDirection: "row",
|
|
95
|
+
alignItems: "flex-end",
|
|
96
|
+
minHeight: 44,
|
|
97
|
+
borderRadius: 22,
|
|
98
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
99
|
+
paddingLeft: 16,
|
|
100
|
+
paddingRight: 5,
|
|
101
|
+
paddingVertical: 5
|
|
102
|
+
},
|
|
103
|
+
input: {
|
|
104
|
+
flex: 1,
|
|
105
|
+
fontSize: 16,
|
|
106
|
+
lineHeight: 21,
|
|
107
|
+
maxHeight: 120,
|
|
108
|
+
paddingTop: 7,
|
|
109
|
+
paddingBottom: 7
|
|
110
|
+
},
|
|
111
|
+
send: {
|
|
112
|
+
width: 34,
|
|
113
|
+
height: 34,
|
|
114
|
+
borderRadius: 17,
|
|
115
|
+
alignItems: "center",
|
|
116
|
+
justifyContent: "center"
|
|
117
|
+
}
|
|
118
|
+
});export{StudyComposer};//# sourceMappingURL=StudyComposer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StudyComposer.js","sources":["../../../../src/features/study/components/StudyComposer.tsx"],"sourcesContent":["/**\n * The bottom of a notebook: one-tap asks, then the field that asks the tutor.\n * The plus opens everything else that goes into a notebook (a file, a link,\n * pasted text, a note of your own).\n */\nimport React, { useState } from 'react';\nimport { ActivityIndicator, ScrollView, StyleSheet, Text, TextInput, View } from 'react-native';\nimport { MaterialCommunityIcons } from '@expo/vector-icons';\nimport { DIM, Tap } from '../../inbox/components/Tap';\nimport type { TutorShortcut } from '../studyPrompts';\nimport type { StudyTheme } from '../studyTheme';\n\nexport function StudyComposer({\n theme,\n busy,\n shortcuts,\n placeholder,\n bottomPad,\n onAsk,\n onShortcut,\n onAdd,\n}: {\n theme: StudyTheme;\n busy: boolean;\n /** Shown above the field when the notebook has something to work from. */\n shortcuts: TutorShortcut[];\n placeholder: string;\n bottomPad: number;\n /** Resolves false when the ask failed, so the words stay in the field. */\n onAsk: (text: string) => Promise<boolean>;\n onShortcut: (shortcut: TutorShortcut) => void;\n onAdd: () => void;\n}) {\n const [draft, setDraft] = useState('');\n const canSend = Boolean(draft.trim()) && !busy;\n\n const send = async () => {\n const text = draft.trim();\n if (!text || busy) return;\n setDraft('');\n if (!(await onAsk(text))) setDraft((current) => current || text);\n };\n\n return (\n <View style={[styles.wrap, { backgroundColor: theme.screen, paddingBottom: bottomPad }]}>\n {shortcuts.length ? (\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n keyboardShouldPersistTaps=\"handled\"\n contentContainerStyle={styles.shortcuts}\n style={styles.shortcutBar}\n >\n {shortcuts.map((shortcut) => (\n <Tap\n key={shortcut.id}\n onPress={() => onShortcut(shortcut)}\n disabled={busy}\n accessibilityRole=\"button\"\n accessibilityLabel={shortcut.label}\n testID={`study-shortcut-${shortcut.id}`}\n style={[\n styles.shortcut,\n { backgroundColor: theme.card, borderColor: theme.border, opacity: busy ? 0.5 : 1 },\n ]}\n pressedStyle={{ backgroundColor: theme.selected }}\n >\n <Text style={[styles.shortcutLabel, { color: theme.ink }]}>{shortcut.label}</Text>\n </Tap>\n ))}\n </ScrollView>\n ) : null}\n <View style={styles.bar}>\n <Tap\n onPress={onAdd}\n disabled={busy}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Add to notebook\"\n testID=\"study-add\"\n style={[\n styles.plus,\n { backgroundColor: theme.card, borderColor: theme.border, opacity: busy ? 0.5 : 1 },\n ]}\n pressedStyle={DIM}\n >\n <MaterialCommunityIcons name=\"plus\" size={22} color={theme.ink} />\n </Tap>\n <View style={[styles.field, { backgroundColor: theme.card, borderColor: theme.border }]}>\n <TextInput\n value={draft}\n onChangeText={setDraft}\n placeholder={placeholder}\n placeholderTextColor={theme.faint}\n multiline\n textAlignVertical=\"center\"\n accessibilityLabel=\"Ask your tutor\"\n testID=\"study-composer-input\"\n style={[styles.input, { color: theme.ink }]}\n />\n <Tap\n onPress={() => void send()}\n disabled={!canSend}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Send to tutor\"\n accessibilityState={{ disabled: !canSend, busy }}\n testID=\"study-composer-send\"\n style={[styles.send, { backgroundColor: canSend ? theme.accent : theme.chip }]}\n pressedStyle={DIM}\n >\n {busy ? (\n <ActivityIndicator size=\"small\" color={theme.muted} />\n ) : (\n <MaterialCommunityIcons\n name=\"arrow-up\"\n size={18}\n color={canSend ? theme.accentInk : theme.faint}\n />\n )}\n </Tap>\n </View>\n </View>\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n wrap: { paddingTop: 6 },\n shortcutBar: { flexGrow: 0 },\n shortcuts: { paddingHorizontal: 12, paddingBottom: 8, gap: 8 },\n shortcut: {\n height: 32,\n paddingHorizontal: 14,\n borderRadius: 16,\n borderWidth: StyleSheet.hairlineWidth,\n justifyContent: 'center',\n },\n shortcutLabel: { fontSize: 13, fontWeight: '500' },\n bar: { flexDirection: 'row', alignItems: 'flex-end', gap: 8, paddingHorizontal: 12 },\n plus: {\n width: 44,\n height: 44,\n borderRadius: 22,\n borderWidth: StyleSheet.hairlineWidth,\n alignItems: 'center',\n justifyContent: 'center',\n },\n field: {\n flex: 1,\n flexDirection: 'row',\n alignItems: 'flex-end',\n minHeight: 44,\n borderRadius: 22,\n borderWidth: StyleSheet.hairlineWidth,\n paddingLeft: 16,\n paddingRight: 5,\n paddingVertical: 5,\n },\n input: { flex: 1, fontSize: 16, lineHeight: 21, maxHeight: 120, paddingTop: 7, paddingBottom: 7 },\n send: { width: 34, height: 34, borderRadius: 17, alignItems: 'center', justifyContent: 'center' },\n});\n"],"names":[],"mappings":"yQAWO,SAAS,aAAc,CAAA;AAAA,EAC5B,KAAA;AAAA,EACA,IAAA;AAAA,EACA,SAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAWG,EAAA;AACD,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAI,SAAS,EAAE,CAAA;AACrC,EAAA,MAAM,UAAU,OAAQ,CAAA,KAAA,CAAM,IAAK,EAAC,KAAK,CAAC,IAAA;AAC1C,EAAA,MAAM,OAAO,YAAY;AACvB,IAAM,MAAA,IAAA,GAAO,MAAM,IAAK,EAAA;AACxB,IAAI,IAAA,CAAC,QAAQ,IAAM,EAAA;AACnB,IAAA,QAAA,CAAS,EAAE,CAAA;AACX,IAAI,IAAA,CAAE,MAAM,KAAM,CAAA,IAAI,GAAa,QAAA,CAAA,CAAA,OAAA,KAAW,WAAW,IAAI,CAAA;AAAA,GAC/D;AACA,EAAA,uBAAQ,IAAA,CAAA,IAAA,EAAA,EAAK,KAAO,EAAA,CAAC,OAAO,IAAM,EAAA;AAAA,IAChC,iBAAiB,KAAM,CAAA,MAAA;AAAA,IACvB,aAAe,EAAA;AAAA,GAChB,CACU,EAAA,QAAA,EAAA;AAAA,IAAA,SAAA,CAAU,yBAAU,GAAA,CAAA,UAAA,EAAA,EAAW,YAAU,IAAC,EAAA,8BAAA,EAAgC,OAAO,yBAA0B,EAAA,SAAA,EAAU,qBAAuB,EAAA,MAAA,CAAO,WAAW,KAAO,EAAA,MAAA,CAAO,aACpK,QAAU,EAAA,SAAA,CAAA,GAAA,CAAI,8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