@adminide-stack/yantra-mobile 12.0.136-alpha.2 → 12.0.137-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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/screens/DictateNative/index.tsx"],"sourcesContent":["/**\n * Native Dictate screen - host route for the Dictate experience.\n *\n * Dictate runs in the binary (it needs the microphone and the screen kept\n * awake, both native modules already in the app), so there is no federated\n * remote: this screen hands over the session token and the surface index URL\n * and the experience does the rest. It draws its own header, so the stack\n * header stays hidden.\n */\nimport React, { useCallback, useLayoutEffect } from 'react';\nimport { SafeAreaView } from 'react-native-safe-area-context';\nimport { StyleSheet } from 'react-native';\nimport { useNavigation, useRoute, type NavigationProp, type ParamListBase, type RouteProp } from '@react-navigation/native';\nimport { DictateExperience } from '../../features/dictate/DictateExperience';\nimport { useCanvasSession } from '../../features/canvas/useCanvasSession';\nimport { useAppTheme } from '../../theme/AppThemeProvider';\n\ntype DictateRouteParams = { orgName?: string | null; hideNavigationHeader?: boolean };\n\nexport default function DictateNativeScreen() {\n const { isDark } = useAppTheme();\n const navigation = useNavigation<NavigationProp<ParamListBase>>();\n const route = useRoute<RouteProp<Record<string, DictateRouteParams | undefined>, string>>();\n const { token, indexUrl, error, ready, retry } = useCanvasSession();\n\n useLayoutEffect(() => {\n if (!route.params?.hideNavigationHeader) navigation.setParams({ hideNavigationHeader: true });\n }, [navigation, route.params?.hideNavigationHeader]);\n\n const onExit = useCallback(() => {\n if (navigation.canGoBack?.()) navigation.goBack();\n else navigation.navigate('MainStack.Layout.Home');\n }, [navigation]);\n\n return (\n <SafeAreaView style={[styles.fill, isDark && styles.fillDark]} edges={['left', 'right']}>\n <DictateExperience\n isDark={isDark}\n token={token}\n indexUrl={indexUrl}\n sessionError={ready ? error : null}\n onRetrySession={retry}\n onExit={onExit}\n />\n </SafeAreaView>\n );\n}\n\nconst styles = StyleSheet.create({\n fill: { flex: 1, back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,KAAA,EAAc,QAAoB,EAAA,YAAA,EAAc,KAAQ,GAAA,KAAA,GAAQ,IAAM,EAAA,cAAA,EAAgB,KAAO,EAAA,MAAA,EAAgB,CACpJ,EAAA,CAAA;AACR;AACA,MAAM,MAAA,GAAS,WAAW,MAAO,CAAA;AAAA,EAC/B,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,CAAA;AAAA,IACN,eAAiB,EAAA;AAAA,GACnB;AAAA,EACA,QAAU,EAAA;AAAA,IACR,eAAiB,EAAA;AAAA;AAErB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/screens/DictateNative/index.tsx"],"sourcesContent":["/**\n * Native Dictate screen - host route for the Dictate experience.\n *\n * Dictate runs in the binary (it needs the microphone and the screen kept\n * awake, both native modules already in the app), so there is no federated\n * remote: this screen hands over the session token and the surface index URL\n * and the experience does the rest. It draws its own header, so the stack\n * header stays hidden.\n */\nimport React, { useCallback, useLayoutEffect } from 'react';\nimport { SafeAreaView } from 'react-native-safe-area-context';\nimport { StyleSheet } from 'react-native';\nimport {\n useNavigation,\n useRoute,\n type NavigationProp,\n type ParamListBase,\n type RouteProp,\n} from '@react-navigation/native';\nimport { DictateExperience } from '../../features/dictate/DictateExperience';\nimport { useCanvasSession } from '../../features/canvas/useCanvasSession';\nimport { useAppTheme } from '../../theme/AppThemeProvider';\n\ntype DictateRouteParams = { orgName?: string | null; hideNavigationHeader?: boolean };\n\nexport default function DictateNativeScreen() {\n const { isDark } = useAppTheme();\n const navigation = useNavigation<NavigationProp<ParamListBase>>();\n const route = useRoute<RouteProp<Record<string, DictateRouteParams | undefined>, string>>();\n const { token, indexUrl, error, ready, retry } = useCanvasSession();\n\n useLayoutEffect(() => {\n if (!route.params?.hideNavigationHeader) navigation.setParams({ hideNavigationHeader: true });\n }, [navigation, route.params?.hideNavigationHeader]);\n\n const onExit = useCallback(() => {\n if (navigation.canGoBack?.()) navigation.goBack();\n else navigation.navigate('MainStack.Layout.Home');\n }, [navigation]);\n\n return (\n <SafeAreaView style={[styles.fill, isDark && styles.fillDark]} edges={['left', 'right']}>\n <DictateExperience\n isDark={isDark}\n token={token}\n indexUrl={indexUrl}\n sessionError={ready ? error : null}\n onRetrySession={retry}\n onExit={onExit}\n />\n </SafeAreaView>\n );\n}\n\nconst styles = StyleSheet.create({\n fill: { flex: 1, backgroundColor: '#f6f7f9' },\n fillDark: { backgroundColor: '#0b0f17' },\n});\n"],"names":["_a"],"mappings":"icAoBA,SAAwB,mBAAsB,GAAA;AApB9C,EAAA,IAAA,EAAA;AAqBE,EAAM,MAAA;AAAA,IACJ;AAAA,MACE,WAAY,EAAA;AAChB,EAAA,MAAM,aAAa,aAA6C,EAAA;AAChE,EAAA,MAAM,QAAQ,QAA4E,EAAA;AAC1F,EAAM,MAAA;AAAA,IACJ,KAAA;AAAA,IACA,QAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,MACE,gBAAiB,EAAA;AACrB,EAAA,eAAA,CAAgB,MAAM;AAjCxB,IAAAA,IAAAA,GAAAA;AAkCI,IAAI,IAAA,EAAA,CAACA,MAAA,KAAM,CAAA,MAAA,KAAN,gBAAAA,GAAc,CAAA,oBAAA,CAAA,aAAiC,SAAU,CAAA;AAAA,MAC5D,oBAAsB,EAAA;AAAA,KACvB,CAAA;AAAA,KACA,CAAC,UAAA,EAAA,CAAY,WAAM,MAAN,KAAA,IAAA,GAAA,MAAA,GAAA,EAAA,CAAc,oBAAoB,CAAC,CAAA;AACnD,EAAM,MAAA,MAAA,GAAS,YAAY,MAAM;AAtCnC,IAAAA,IAAAA,GAAAA;AAuCI,IAAA,IAAA,CAAIA,MAAA,UAAW,CAAA,SAAA,KAAX,gBAAAA,GAAA,CAAA,IAAA,CAAA,UAAA,CAAA,aAAqC,MAAO,EAAA;AAAA,SAAO,UAAA,CAAW,SAAS,uBAAuB,CAAA;AAAA,GACpG,EAAG,CAAC,UAAU,CAAC,CAAA;AACf,EAAO,uBAAA,GAAA,CAAC,YAAa,EAAA,EAAA,KAAA,EAAO,CAAC,MAAA,CAAO,IAAM,EAAA,MAAA,IAAU,MAAO,CAAA,QAAQ,CAAG,EAAA,KAAA,EAAO,CAAC,MAAA,EAAQ,OAAO,CAAA,EACnF,QAAC,kBAAA,GAAA,CAAA,iBAAA,EAAA,EAAkB,MAAgB,EAAA,KAAA,EAAc,QAAoB,EAAA,YAAA,EAAc,KAAQ,GAAA,KAAA,GAAQ,IAAM,EAAA,cAAA,EAAgB,KAAO,EAAA,MAAA,EAAgB,CACpJ,EAAA,CAAA;AACR;AACA,MAAM,MAAA,GAAS,WAAW,MAAO,CAAA;AAAA,EAC/B,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,CAAA;AAAA,IACN,eAAiB,EAAA;AAAA,GACnB;AAAA,EACA,QAAU,EAAA;AAAA,IACR,eAAiB,EAAA;AAAA;AAErB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/yantra-mobile",
3
- "version": "12.0.136-alpha.2",
3
+ "version": "12.0.137-alpha.0",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -45,7 +45,7 @@
45
45
  "@messenger-box/platform-mobile": "*",
46
46
  "@react-native-async-storage/async-storage": "*",
47
47
  "@react-navigation/native": "*",
48
- "common": "12.0.136-alpha.1",
48
+ "common": "12.0.136-alpha.2",
49
49
  "expo-background-task": "*",
50
50
  "expo-constants": "*",
51
51
  "expo-secure-store": "*",
@@ -67,5 +67,5 @@
67
67
  "typescript": {
68
68
  "definition": "lib/index.d.ts"
69
69
  },
70
- "gitHead": "d1c2be0acb44d1540090fff5ccce11e9430816d2"
70
+ "gitHead": "12616568311853ccf2b14e4ec4df3b57e6235880"
71
71
  }