@bifold/core 1.0.0 → 2.0.1

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.
Files changed (373) hide show
  1. package/lib/commonjs/App.js +26 -22
  2. package/lib/commonjs/App.js.map +1 -1
  3. package/lib/commonjs/components/inputs/BiometryControl.js +176 -0
  4. package/lib/commonjs/components/inputs/BiometryControl.js.map +1 -0
  5. package/lib/commonjs/components/misc/ConnectionAlert.js +2 -2
  6. package/lib/commonjs/components/misc/ConnectionAlert.js.map +1 -1
  7. package/lib/commonjs/components/misc/InfoBox.js +3 -2
  8. package/lib/commonjs/components/misc/InfoBox.js.map +1 -1
  9. package/lib/commonjs/components/misc/{PINCreateHeader.js → PINHeader.js} +4 -4
  10. package/lib/commonjs/components/misc/PINHeader.js.map +1 -0
  11. package/lib/commonjs/components/misc/PINValidationHelper.js +50 -0
  12. package/lib/commonjs/components/misc/PINValidationHelper.js.map +1 -0
  13. package/lib/commonjs/components/views/PushNotificationsContent.js +52 -0
  14. package/lib/commonjs/components/views/PushNotificationsContent.js.map +1 -0
  15. package/lib/commonjs/components/views/PushNotificationsDisabledContent.js +47 -0
  16. package/lib/commonjs/components/views/PushNotificationsDisabledContent.js.map +1 -0
  17. package/lib/commonjs/container-api.js +8 -3
  18. package/lib/commonjs/container-api.js.map +1 -1
  19. package/lib/commonjs/container-impl.js +25 -21
  20. package/lib/commonjs/container-impl.js.map +1 -1
  21. package/lib/commonjs/contexts/activity.js +17 -41
  22. package/lib/commonjs/contexts/activity.js.map +1 -1
  23. package/lib/commonjs/contexts/auth.js +16 -6
  24. package/lib/commonjs/contexts/auth.js.map +1 -1
  25. package/lib/commonjs/contexts/navigation.js +24 -0
  26. package/lib/commonjs/contexts/navigation.js.map +1 -0
  27. package/lib/commonjs/contexts/reducers/store.js +14 -0
  28. package/lib/commonjs/contexts/reducers/store.js.map +1 -1
  29. package/lib/commonjs/contexts/theme.js +36 -3
  30. package/lib/commonjs/contexts/theme.js.map +1 -1
  31. package/lib/commonjs/hooks/deep-links.js +2 -4
  32. package/lib/commonjs/hooks/deep-links.js.map +1 -1
  33. package/lib/commonjs/hooks/{initialize-agent.js → useBifoldAgentSetup.js} +24 -44
  34. package/lib/commonjs/hooks/useBifoldAgentSetup.js.map +1 -0
  35. package/lib/commonjs/hooks/useOnboardingState.js +3 -3
  36. package/lib/commonjs/hooks/useOnboardingState.js.map +1 -1
  37. package/lib/commonjs/hooks/usePINValidation.js +82 -0
  38. package/lib/commonjs/hooks/usePINValidation.js.map +1 -0
  39. package/lib/commonjs/index.js +34 -33
  40. package/lib/commonjs/index.js.map +1 -1
  41. package/lib/commonjs/localization/en/index.js +31 -25
  42. package/lib/commonjs/localization/en/index.js.map +1 -1
  43. package/lib/commonjs/localization/fr/index.js +18 -6
  44. package/lib/commonjs/localization/fr/index.js.map +1 -1
  45. package/lib/commonjs/localization/pt-br/index.js +43 -37
  46. package/lib/commonjs/localization/pt-br/index.js.map +1 -1
  47. package/lib/commonjs/navigators/MainStack.js +31 -8
  48. package/lib/commonjs/navigators/MainStack.js.map +1 -1
  49. package/lib/commonjs/navigators/OnboardingScreens.js +8 -8
  50. package/lib/commonjs/navigators/OnboardingScreens.js.map +1 -1
  51. package/lib/commonjs/navigators/OnboardingStack.js +20 -12
  52. package/lib/commonjs/navigators/OnboardingStack.js.map +1 -1
  53. package/lib/commonjs/navigators/RootStack.js +27 -30
  54. package/lib/commonjs/navigators/RootStack.js.map +1 -1
  55. package/lib/commonjs/navigators/SettingStack.js +14 -15
  56. package/lib/commonjs/navigators/SettingStack.js.map +1 -1
  57. package/lib/commonjs/navigators/defaultStackOptions.js +13 -2
  58. package/lib/commonjs/navigators/defaultStackOptions.js.map +1 -1
  59. package/lib/commonjs/onboarding.js +12 -5
  60. package/lib/commonjs/onboarding.js.map +1 -1
  61. package/lib/commonjs/screens/Biometry.js +62 -0
  62. package/lib/commonjs/screens/Biometry.js.map +1 -0
  63. package/lib/commonjs/screens/CredentialOffer.js +2 -2
  64. package/lib/commonjs/screens/CredentialOffer.js.map +1 -1
  65. package/lib/commonjs/screens/Onboarding.js.map +1 -1
  66. package/lib/commonjs/screens/PINChange.js +212 -0
  67. package/lib/commonjs/screens/PINChange.js.map +1 -0
  68. package/lib/commonjs/screens/PINCreate.js +47 -224
  69. package/lib/commonjs/screens/PINCreate.js.map +1 -1
  70. package/lib/commonjs/screens/Preface.js.map +1 -1
  71. package/lib/commonjs/screens/ProofRequest.js +112 -33
  72. package/lib/commonjs/screens/ProofRequest.js.map +1 -1
  73. package/lib/commonjs/screens/PushNotifications.js +71 -0
  74. package/lib/commonjs/screens/PushNotifications.js.map +1 -0
  75. package/lib/commonjs/screens/Settings.js +8 -24
  76. package/lib/commonjs/screens/Settings.js.map +1 -1
  77. package/lib/commonjs/screens/Splash.js +7 -23
  78. package/lib/commonjs/screens/Splash.js.map +1 -1
  79. package/lib/commonjs/screens/Terms.js.map +1 -1
  80. package/lib/commonjs/screens/ToggleBiometry.js +135 -0
  81. package/lib/commonjs/screens/ToggleBiometry.js.map +1 -0
  82. package/lib/commonjs/screens/{PushNotification.js → TogglePushNotifications.js} +41 -99
  83. package/lib/commonjs/screens/TogglePushNotifications.js.map +1 -0
  84. package/lib/commonjs/theme.js +4 -2
  85. package/lib/commonjs/theme.js.map +1 -1
  86. package/lib/commonjs/types/navigators.js +5 -2
  87. package/lib/commonjs/types/navigators.js.map +1 -1
  88. package/lib/commonjs/utils/{PINCreationValidation.js → PINValidation.js} +4 -4
  89. package/lib/commonjs/utils/PINValidation.js.map +1 -0
  90. package/lib/commonjs/utils/agent.js.map +1 -1
  91. package/lib/commonjs/utils/helpers.js +2 -0
  92. package/lib/commonjs/utils/helpers.js.map +1 -1
  93. package/lib/module/App.js +24 -20
  94. package/lib/module/App.js.map +1 -1
  95. package/lib/module/components/inputs/BiometryControl.js +167 -0
  96. package/lib/module/components/inputs/BiometryControl.js.map +1 -0
  97. package/lib/module/components/misc/ConnectionAlert.js +2 -2
  98. package/lib/module/components/misc/ConnectionAlert.js.map +1 -1
  99. package/lib/module/components/misc/InfoBox.js +3 -2
  100. package/lib/module/components/misc/InfoBox.js.map +1 -1
  101. package/lib/module/components/misc/{PINCreateHeader.js → PINHeader.js} +4 -4
  102. package/lib/module/components/misc/PINHeader.js.map +1 -0
  103. package/lib/module/components/misc/PINValidationHelper.js +43 -0
  104. package/lib/module/components/misc/PINValidationHelper.js.map +1 -0
  105. package/lib/module/components/views/PushNotificationsContent.js +45 -0
  106. package/lib/module/components/views/PushNotificationsContent.js.map +1 -0
  107. package/lib/module/components/views/PushNotificationsDisabledContent.js +40 -0
  108. package/lib/module/components/views/PushNotificationsDisabledContent.js.map +1 -0
  109. package/lib/module/container-api.js +7 -2
  110. package/lib/module/container-api.js.map +1 -1
  111. package/lib/module/container-impl.js +25 -21
  112. package/lib/module/container-impl.js.map +1 -1
  113. package/lib/module/contexts/activity.js +17 -41
  114. package/lib/module/contexts/activity.js.map +1 -1
  115. package/lib/module/contexts/auth.js +16 -6
  116. package/lib/module/contexts/auth.js.map +1 -1
  117. package/lib/module/contexts/navigation.js +17 -0
  118. package/lib/module/contexts/navigation.js.map +1 -0
  119. package/lib/module/contexts/reducers/store.js +14 -0
  120. package/lib/module/contexts/reducers/store.js.map +1 -1
  121. package/lib/module/contexts/theme.js +36 -4
  122. package/lib/module/contexts/theme.js.map +1 -1
  123. package/lib/module/hooks/deep-links.js +2 -4
  124. package/lib/module/hooks/deep-links.js.map +1 -1
  125. package/lib/module/hooks/{initialize-agent.js → useBifoldAgentSetup.js} +25 -45
  126. package/lib/module/hooks/useBifoldAgentSetup.js.map +1 -0
  127. package/lib/module/hooks/useOnboardingState.js +3 -3
  128. package/lib/module/hooks/useOnboardingState.js.map +1 -1
  129. package/lib/module/hooks/usePINValidation.js +75 -0
  130. package/lib/module/hooks/usePINValidation.js.map +1 -0
  131. package/lib/module/index.js +6 -6
  132. package/lib/module/index.js.map +1 -1
  133. package/lib/module/localization/en/index.js +31 -25
  134. package/lib/module/localization/en/index.js.map +1 -1
  135. package/lib/module/localization/fr/index.js +18 -6
  136. package/lib/module/localization/fr/index.js.map +1 -1
  137. package/lib/module/localization/pt-br/index.js +43 -37
  138. package/lib/module/localization/pt-br/index.js.map +1 -1
  139. package/lib/module/navigators/MainStack.js +32 -9
  140. package/lib/module/navigators/MainStack.js.map +1 -1
  141. package/lib/module/navigators/OnboardingScreens.js +8 -8
  142. package/lib/module/navigators/OnboardingScreens.js.map +1 -1
  143. package/lib/module/navigators/OnboardingStack.js +21 -12
  144. package/lib/module/navigators/OnboardingStack.js.map +1 -1
  145. package/lib/module/navigators/RootStack.js +26 -29
  146. package/lib/module/navigators/RootStack.js.map +1 -1
  147. package/lib/module/navigators/SettingStack.js +14 -15
  148. package/lib/module/navigators/SettingStack.js.map +1 -1
  149. package/lib/module/navigators/defaultStackOptions.js +13 -2
  150. package/lib/module/navigators/defaultStackOptions.js.map +1 -1
  151. package/lib/module/onboarding.js +10 -4
  152. package/lib/module/onboarding.js.map +1 -1
  153. package/lib/module/screens/Biometry.js +53 -0
  154. package/lib/module/screens/Biometry.js.map +1 -0
  155. package/lib/module/screens/CredentialOffer.js +2 -2
  156. package/lib/module/screens/CredentialOffer.js.map +1 -1
  157. package/lib/module/screens/Onboarding.js.map +1 -1
  158. package/lib/module/screens/PINChange.js +203 -0
  159. package/lib/module/screens/PINChange.js.map +1 -0
  160. package/lib/module/screens/PINCreate.js +49 -226
  161. package/lib/module/screens/PINCreate.js.map +1 -1
  162. package/lib/module/screens/Preface.js.map +1 -1
  163. package/lib/module/screens/ProofRequest.js +113 -34
  164. package/lib/module/screens/ProofRequest.js.map +1 -1
  165. package/lib/module/screens/PushNotifications.js +63 -0
  166. package/lib/module/screens/PushNotifications.js.map +1 -0
  167. package/lib/module/screens/Settings.js +9 -25
  168. package/lib/module/screens/Settings.js.map +1 -1
  169. package/lib/module/screens/Splash.js +7 -23
  170. package/lib/module/screens/Splash.js.map +1 -1
  171. package/lib/module/screens/Terms.js.map +1 -1
  172. package/lib/module/screens/ToggleBiometry.js +126 -0
  173. package/lib/module/screens/ToggleBiometry.js.map +1 -0
  174. package/lib/module/screens/TogglePushNotifications.js +112 -0
  175. package/lib/module/screens/TogglePushNotifications.js.map +1 -0
  176. package/lib/module/theme.js +3 -1
  177. package/lib/module/theme.js.map +1 -1
  178. package/lib/module/types/navigators.js +5 -2
  179. package/lib/module/types/navigators.js.map +1 -1
  180. package/lib/module/utils/{PINCreationValidation.js → PINValidation.js} +2 -2
  181. package/lib/module/utils/PINValidation.js.map +1 -0
  182. package/lib/module/utils/agent.js.map +1 -1
  183. package/lib/module/utils/helpers.js +2 -0
  184. package/lib/module/utils/helpers.js.map +1 -1
  185. package/lib/typescript/src/App.d.ts +3 -3
  186. package/lib/typescript/src/App.d.ts.map +1 -1
  187. package/lib/typescript/src/components/inputs/BiometryControl.d.ts +9 -0
  188. package/lib/typescript/src/components/inputs/BiometryControl.d.ts.map +1 -0
  189. package/lib/typescript/src/components/misc/ConnectionAlert.d.ts +1 -1
  190. package/lib/typescript/src/components/misc/ConnectionAlert.d.ts.map +1 -1
  191. package/lib/typescript/src/components/misc/InfoBox.d.ts +1 -0
  192. package/lib/typescript/src/components/misc/InfoBox.d.ts.map +1 -1
  193. package/lib/typescript/src/components/misc/PINHeader.d.ts +6 -0
  194. package/lib/typescript/src/components/misc/PINHeader.d.ts.map +1 -0
  195. package/lib/typescript/src/components/misc/PINValidationHelper.d.ts +8 -0
  196. package/lib/typescript/src/components/misc/PINValidationHelper.d.ts.map +1 -0
  197. package/lib/typescript/src/components/views/PushNotificationsContent.d.ts +4 -0
  198. package/lib/typescript/src/components/views/PushNotificationsContent.d.ts.map +1 -0
  199. package/lib/typescript/src/components/views/PushNotificationsDisabledContent.d.ts +4 -0
  200. package/lib/typescript/src/components/views/PushNotificationsDisabledContent.d.ts.map +1 -0
  201. package/lib/typescript/src/container-api.d.ts +24 -13
  202. package/lib/typescript/src/container-api.d.ts.map +1 -1
  203. package/lib/typescript/src/container-impl.d.ts +4 -2
  204. package/lib/typescript/src/container-impl.d.ts.map +1 -1
  205. package/lib/typescript/src/contexts/activity.d.ts.map +1 -1
  206. package/lib/typescript/src/contexts/auth.d.ts +3 -1
  207. package/lib/typescript/src/contexts/auth.d.ts.map +1 -1
  208. package/lib/typescript/src/contexts/navigation.d.ts +8 -0
  209. package/lib/typescript/src/contexts/navigation.d.ts.map +1 -0
  210. package/lib/typescript/src/contexts/reducers/store.d.ts +3 -1
  211. package/lib/typescript/src/contexts/reducers/store.d.ts.map +1 -1
  212. package/lib/typescript/src/contexts/theme.d.ts +9 -3
  213. package/lib/typescript/src/contexts/theme.d.ts.map +1 -1
  214. package/lib/typescript/src/hooks/deep-links.d.ts.map +1 -1
  215. package/lib/typescript/src/hooks/useBifoldAgentSetup.d.ts +10 -0
  216. package/lib/typescript/src/hooks/useBifoldAgentSetup.d.ts.map +1 -0
  217. package/lib/typescript/src/hooks/useOnboardingState.d.ts +2 -1
  218. package/lib/typescript/src/hooks/useOnboardingState.d.ts.map +1 -1
  219. package/lib/typescript/src/hooks/usePINValidation.d.ts +20 -0
  220. package/lib/typescript/src/hooks/usePINValidation.d.ts.map +1 -0
  221. package/lib/typescript/src/index.d.ts +9 -7
  222. package/lib/typescript/src/index.d.ts.map +1 -1
  223. package/lib/typescript/src/localization/en/index.d.ts +23 -17
  224. package/lib/typescript/src/localization/en/index.d.ts.map +1 -1
  225. package/lib/typescript/src/localization/fr/index.d.ts +14 -2
  226. package/lib/typescript/src/localization/fr/index.d.ts.map +1 -1
  227. package/lib/typescript/src/localization/pt-br/index.d.ts +23 -17
  228. package/lib/typescript/src/localization/pt-br/index.d.ts.map +1 -1
  229. package/lib/typescript/src/navigators/MainStack.d.ts.map +1 -1
  230. package/lib/typescript/src/navigators/OnboardingScreens.d.ts +3 -3
  231. package/lib/typescript/src/navigators/OnboardingScreens.d.ts.map +1 -1
  232. package/lib/typescript/src/navigators/OnboardingStack.d.ts +7 -1
  233. package/lib/typescript/src/navigators/OnboardingStack.d.ts.map +1 -1
  234. package/lib/typescript/src/navigators/RootStack.d.ts.map +1 -1
  235. package/lib/typescript/src/navigators/SettingStack.d.ts.map +1 -1
  236. package/lib/typescript/src/navigators/defaultStackOptions.d.ts.map +1 -1
  237. package/lib/typescript/src/onboarding.d.ts +4 -2
  238. package/lib/typescript/src/onboarding.d.ts.map +1 -1
  239. package/lib/typescript/src/screens/Biometry.d.ts +4 -0
  240. package/lib/typescript/src/screens/Biometry.d.ts.map +1 -0
  241. package/lib/typescript/src/screens/{PushNotification.d.ts → PINChange.d.ts} +3 -3
  242. package/lib/typescript/src/screens/PINChange.d.ts.map +1 -0
  243. package/lib/typescript/src/screens/PINCreate.d.ts.map +1 -1
  244. package/lib/typescript/src/screens/ProofRequest.d.ts.map +1 -1
  245. package/lib/typescript/src/screens/PushNotifications.d.ts +4 -0
  246. package/lib/typescript/src/screens/PushNotifications.d.ts.map +1 -0
  247. package/lib/typescript/src/screens/Settings.d.ts.map +1 -1
  248. package/lib/typescript/src/screens/Splash.d.ts +7 -4
  249. package/lib/typescript/src/screens/Splash.d.ts.map +1 -1
  250. package/lib/typescript/src/screens/ToggleBiometry.d.ts +4 -0
  251. package/lib/typescript/src/screens/ToggleBiometry.d.ts.map +1 -0
  252. package/lib/typescript/src/screens/TogglePushNotifications.d.ts +4 -0
  253. package/lib/typescript/src/screens/TogglePushNotifications.d.ts.map +1 -0
  254. package/lib/typescript/src/theme.d.ts +3 -1
  255. package/lib/typescript/src/theme.d.ts.map +1 -1
  256. package/lib/typescript/src/types/navigators.d.ts +11 -13
  257. package/lib/typescript/src/types/navigators.d.ts.map +1 -1
  258. package/lib/typescript/src/types/state.d.ts +1 -0
  259. package/lib/typescript/src/types/state.d.ts.map +1 -1
  260. package/lib/typescript/src/utils/{PINCreationValidation.d.ts → PINValidation.d.ts} +2 -2
  261. package/lib/typescript/src/utils/PINValidation.d.ts.map +1 -0
  262. package/lib/typescript/src/utils/agent.d.ts +1 -2
  263. package/lib/typescript/src/utils/agent.d.ts.map +1 -1
  264. package/lib/typescript/src/utils/helpers.d.ts.map +1 -1
  265. package/package.json +5 -5
  266. package/src/App.tsx +41 -40
  267. package/src/components/inputs/BiometryControl.tsx +176 -0
  268. package/src/components/misc/ConnectionAlert.tsx +3 -3
  269. package/src/components/misc/InfoBox.tsx +3 -1
  270. package/src/components/misc/{PINCreateHeader.tsx → PINHeader.tsx} +4 -4
  271. package/src/components/misc/PINValidationHelper.tsx +48 -0
  272. package/src/components/views/PushNotificationsContent.tsx +51 -0
  273. package/src/components/views/PushNotificationsDisabledContent.tsx +47 -0
  274. package/src/container-api.ts +27 -11
  275. package/src/container-impl.ts +31 -27
  276. package/src/contexts/activity.tsx +17 -42
  277. package/src/contexts/auth.tsx +18 -6
  278. package/src/contexts/navigation.tsx +19 -0
  279. package/src/contexts/reducers/store.ts +12 -0
  280. package/src/contexts/theme.tsx +51 -0
  281. package/src/hooks/deep-links.ts +2 -4
  282. package/src/hooks/{initialize-agent.ts → useBifoldAgentSetup.ts} +32 -54
  283. package/src/hooks/useOnboardingState.ts +10 -3
  284. package/src/hooks/usePINValidation.ts +98 -0
  285. package/src/index.ts +12 -14
  286. package/src/localization/en/index.ts +26 -20
  287. package/src/localization/fr/index.ts +32 -20
  288. package/src/localization/pt-br/index.ts +39 -33
  289. package/src/navigators/MainStack.tsx +29 -8
  290. package/src/navigators/OnboardingScreens.ts +11 -11
  291. package/src/navigators/OnboardingStack.tsx +26 -14
  292. package/src/navigators/RootStack.tsx +31 -25
  293. package/src/navigators/SettingStack.tsx +15 -16
  294. package/src/navigators/defaultStackOptions.tsx +13 -2
  295. package/src/onboarding.ts +12 -5
  296. package/src/screens/Biometry.tsx +57 -0
  297. package/src/screens/CredentialOffer.tsx +2 -2
  298. package/src/screens/Onboarding.tsx +2 -2
  299. package/src/screens/PINChange.tsx +250 -0
  300. package/src/screens/PINCreate.tsx +51 -267
  301. package/src/screens/Preface.tsx +2 -2
  302. package/src/screens/ProofRequest.tsx +140 -48
  303. package/src/screens/PushNotifications.tsx +59 -0
  304. package/src/screens/Settings.tsx +5 -10
  305. package/src/screens/Splash.tsx +10 -22
  306. package/src/screens/Terms.tsx +2 -2
  307. package/src/screens/ToggleBiometry.tsx +167 -0
  308. package/src/screens/TogglePushNotifications.tsx +118 -0
  309. package/src/theme.ts +5 -1
  310. package/src/types/navigators.ts +11 -12
  311. package/src/types/state.ts +1 -0
  312. package/src/utils/{PINCreationValidation.ts → PINValidation.ts} +1 -1
  313. package/src/utils/agent.ts +1 -2
  314. package/src/utils/helpers.ts +2 -0
  315. package/lib/commonjs/components/misc/ActivityLogLink.js +0 -44
  316. package/lib/commonjs/components/misc/ActivityLogLink.js.map +0 -1
  317. package/lib/commonjs/components/misc/PINCreateHeader.js.map +0 -1
  318. package/lib/commonjs/components/modals/NotificationModal.js +0 -121
  319. package/lib/commonjs/components/modals/NotificationModal.js.map +0 -1
  320. package/lib/commonjs/components/texts/Label.js +0 -57
  321. package/lib/commonjs/components/texts/Label.js.map +0 -1
  322. package/lib/commonjs/components/texts/Title.js +0 -29
  323. package/lib/commonjs/components/texts/Title.js.map +0 -1
  324. package/lib/commonjs/components/views/ModularView.js +0 -41
  325. package/lib/commonjs/components/views/ModularView.js.map +0 -1
  326. package/lib/commonjs/hooks/initialize-agent.js.map +0 -1
  327. package/lib/commonjs/screens/PushNotification.js.map +0 -1
  328. package/lib/commonjs/screens/UseBiometry.js +0 -315
  329. package/lib/commonjs/screens/UseBiometry.js.map +0 -1
  330. package/lib/commonjs/utils/PINCreationValidation.js.map +0 -1
  331. package/lib/module/components/misc/ActivityLogLink.js +0 -37
  332. package/lib/module/components/misc/ActivityLogLink.js.map +0 -1
  333. package/lib/module/components/misc/PINCreateHeader.js.map +0 -1
  334. package/lib/module/components/modals/NotificationModal.js +0 -112
  335. package/lib/module/components/modals/NotificationModal.js.map +0 -1
  336. package/lib/module/components/texts/Label.js +0 -50
  337. package/lib/module/components/texts/Label.js.map +0 -1
  338. package/lib/module/components/texts/Title.js +0 -22
  339. package/lib/module/components/texts/Title.js.map +0 -1
  340. package/lib/module/components/views/ModularView.js +0 -34
  341. package/lib/module/components/views/ModularView.js.map +0 -1
  342. package/lib/module/hooks/initialize-agent.js.map +0 -1
  343. package/lib/module/screens/PushNotification.js +0 -170
  344. package/lib/module/screens/PushNotification.js.map +0 -1
  345. package/lib/module/screens/UseBiometry.js +0 -306
  346. package/lib/module/screens/UseBiometry.js.map +0 -1
  347. package/lib/module/utils/PINCreationValidation.js.map +0 -1
  348. package/lib/typescript/src/components/misc/ActivityLogLink.d.ts +0 -4
  349. package/lib/typescript/src/components/misc/ActivityLogLink.d.ts.map +0 -1
  350. package/lib/typescript/src/components/misc/PINCreateHeader.d.ts +0 -6
  351. package/lib/typescript/src/components/misc/PINCreateHeader.d.ts.map +0 -1
  352. package/lib/typescript/src/components/modals/NotificationModal.d.ts +0 -17
  353. package/lib/typescript/src/components/modals/NotificationModal.d.ts.map +0 -1
  354. package/lib/typescript/src/components/texts/Label.d.ts +0 -9
  355. package/lib/typescript/src/components/texts/Label.d.ts.map +0 -1
  356. package/lib/typescript/src/components/texts/Title.d.ts +0 -8
  357. package/lib/typescript/src/components/texts/Title.d.ts.map +0 -1
  358. package/lib/typescript/src/components/views/ModularView.d.ts +0 -9
  359. package/lib/typescript/src/components/views/ModularView.d.ts.map +0 -1
  360. package/lib/typescript/src/hooks/initialize-agent.d.ts +0 -7
  361. package/lib/typescript/src/hooks/initialize-agent.d.ts.map +0 -1
  362. package/lib/typescript/src/screens/PushNotification.d.ts.map +0 -1
  363. package/lib/typescript/src/screens/UseBiometry.d.ts +0 -4
  364. package/lib/typescript/src/screens/UseBiometry.d.ts.map +0 -1
  365. package/lib/typescript/src/utils/PINCreationValidation.d.ts.map +0 -1
  366. package/src/components/misc/ActivityLogLink.tsx +0 -34
  367. package/src/components/modals/NotificationModal.tsx +0 -127
  368. package/src/components/texts/Label.tsx +0 -51
  369. package/src/components/texts/Title.tsx +0 -25
  370. package/src/components/views/ModularView.tsx +0 -35
  371. package/src/contexts/theme.ts +0 -9
  372. package/src/screens/PushNotification.tsx +0 -186
  373. package/src/screens/UseBiometry.tsx +0 -357
@@ -1 +0,0 @@
1
- {"version":3,"names":["Header","useHeaderHeight","HeaderBackButton","React","useState","useEffect","useCallback","useMemo","useTranslation","StyleSheet","View","ScrollView","Linking","Platform","PERMISSIONS","RESULTS","request","check","SafeAreaView","Button","ButtonType","ToggleButton","DismissiblePopupModal","SafeAreaModal","useAnimatedComponents","useAuth","DispatchAction","useStore","useTheme","useAppAgent","testIdWithKey","PINEnter","PINEntryUsage","TOKENS","useServices","HistoryCardType","ThemedText","UseBiometryUsage","BackButton","setCanSeeCheckPIN","createElement","onPress","tintColor","labelVisible","UseBiometry","store","dispatch","agent","t","logger","historyManagerCurried","historyEnabled","historyEventsLogger","UTIL_LOGGER","FN_LOAD_HISTORY","HISTORY_ENABLED","HISTORY_EVENTS_LOGGER","isBiometricsActive","commitWalletToKeychain","disableBiometrics","biometryAvailable","setBiometryAvailable","biometryEnabled","setBiometryEnabled","preferences","useBiometry","continueEnabled","setContinueEnabled","settingsPopupConfig","setSettingsPopupConfig","canSeeCheckPIN","TextTheme","ColorPallet","Assets","ButtonLoading","screenUsage","onboarding","didCompleteOnboarding","ToggleOnOff","InitialSetup","headerHeight","BIOMETRY_PERMISSION","IOS","FACE_ID","styles","create","container","height","padding","backgroundColor","brand","primaryBackground","image","minWidth","minHeight","marginBottom","biometryAvailableRowGap","rowGap","then","result","type","USE_BIOMETRY","payload","logHistoryRecord","trace","name","historyManager","recordData","message","createdAt","Date","saveHistory","err","error","continueTouched","onOpenSettingsTouched","openSettings","onOpenSettingsDismissed","onSwitchToggleAllowed","newValue","logToggleBiometry","didAgreeToTerms","didConsiderBiometry","ActivateBiometry","onRequestSystemBiometrics","newToggleValue","permissionResult","GRANTED","LIMITED","onCheckSystemBiometrics","OS","UNAVAILABLE","toggleSwitch","title","description","BLOCKED","DENIED","onAuthenticationComplete","status","previousState","DeactivateBiometry","renderHeaderLeft","edges","onCallToActionLabel","onCallToActionPressed","onDismissPressed","style","alignItems","svg","biometrics","variant","flexDirection","marginVertical","flexShrink","marginRight","justifyContent","testID","isEnabled","isAvailable","toggleAction","disabled","enabledIcon","disabledIcon","marginTop","margin","accessibilityLabel","buttonType","Primary","visible","transparent","animationType","presentationStyle","headerTitleStyle","headerTitle","headerStyle","headerLeft","usage","ChangeBiometrics","setAuthenticated","onCancelAuth"],"sourceRoot":"../../../src","sources":["screens/UseBiometry.tsx"],"mappings":"AAAA,SAASA,MAAM,EAAEC,eAAe,EAAEC,gBAAgB,QAAQ,4BAA4B;AACtF,OAAOC,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACxE,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,EAAEC,UAAU,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,cAAc;AAC9E,SAASC,WAAW,EAAEC,OAAO,EAAEC,OAAO,EAAEC,KAAK,QAA0B,0BAA0B;AACjG,SAASC,YAAY,QAAQ,gCAAgC;AAE7D,OAAOC,MAAM,IAAIC,UAAU,QAAQ,8BAA8B;AACjE,OAAOC,YAAY,MAAM,oCAAoC;AAC7D,OAAOC,qBAAqB,MAAM,4CAA4C;AAC9E,OAAOC,aAAa,MAAM,oCAAoC;AAC9D,SAASC,qBAAqB,QAAQ,iCAAiC;AACvE,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,aAAa,QAAQ,mBAAmB;AAEjD,OAAOC,QAAQ,IAAIC,aAAa,QAAQ,YAAY;AACpD,SAASC,MAAM,EAAEC,WAAW,QAAQ,kBAAkB;AACtD,SAASC,eAAe,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AA,CAAAqC,aAAA,CAACkC,aAAa,MAAE,CAC/B,CAEN,CAAC,eACPvE,KAAA,CAAAqC,aAAA,CAACjB,aAAa;IACZ2H,KAAK,EAAE;MAAEzD,eAAe,EAAEjB,WAAW,CAACkB,KAAK,CAACC;IAAkB,CAAE;IAChE6E,OAAO,EAAElG,cAAe;IACxBmG,WAAW,EAAE,KAAM;IACnBC,aAAa,EAAE,OAAQ;IACvBC,iBAAiB,EAAC;EAAY,gBAE9BxK,KAAA,CAAAqC,aAAA,CAACxC,MAAM;IACLqI,KAAK,EAAErF,CAAC,CAAC,kBAAkB,CAAE;IAC7B4H,gBAAgB,EAAErG,SAAS,CAACsG,WAAY;IACxCC,WAAW,EAAE;MAAEvF,MAAM,EAAEP;IAAa,CAAE;IACtC+F,UAAU,EAAElC;EAAiB,CAC9B,CAAC,eACF1I,KAAA,CAAAqC,aAAA,CAACT,QAAQ;IACPiJ,KAAK,EAAEhJ,aAAa,CAACiJ,gBAAiB;IACtCC,gBAAgB,EAAEzC,wBAAyB;IAC3C0C,YAAY,EAAE5I;EAAkB,CACjC,CACY,CACH,CAAC;AAEnB,CAAC;AAED,eAAeK,WAAW","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["consecutiveSeriesOfThree","RegExp","evenNumberSeries","oddNumberSeries","isNumber","crossNumberPattern","PINError","PINCreationValidations","PIN","PINRules","PINValidations","no_cross_pattern","push","isInvalid","includes","errorName","CrossPatternValidation","no_even_or_odd_series_of_numbers","test","OddOrEvenSequenceValidation","no_repeated_numbers","repetitionPattern","NoRepetitionOfTheSameNumbersValidation","String","raw","MaxAdjacentNumberRepetitionValidation","no_repetition_of_the_two_same_numbers","noRepetitionOfTheTwoSameNumbers","NoRepetitionOfTheTwoSameNumbersValidation","no_series_of_numbers","NoSeriesOfNumbersValidation","only_numbers","PINOnlyContainDigitsValidation","length","min_length","max_length","PINIsExpectedLength","PINTooShortValidation","PINTooLongValidation","errorTextAddition","num"],"sourceRoot":"../../../src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AI,CAACV,GAAG,CAAC;MAC9BO,SAAS,EAAET,QAAQ,CAAC0B;IACtB,CAAuB,CAAC;EAC1B;EACAtB,cAAc,CAACE,IAAI,CAAC;IAClBC,SAAS,EAAEL,GAAG,CAACyB,MAAM,GAAGxB,QAAQ,CAACyB,UAAU,IAAI1B,GAAG,CAACyB,MAAM,GAAGxB,QAAQ,CAAC0B,UAAU;IAC/EpB,SAAS,EACPN,QAAQ,CAACyB,UAAU,KAAKzB,QAAQ,CAAC0B,UAAU,GACvC7B,QAAQ,CAAC8B,mBAAmB,GAC5B5B,GAAG,CAACyB,MAAM,IAAIxB,QAAQ,CAAC0B,UAAU,GACjC7B,QAAQ,CAAC+B,qBAAqB,GAC9B/B,QAAQ,CAACgC,oBAAoB;IACnCC,iBAAiB,EACf9B,QAAQ,CAACyB,UAAU,KAAKzB,QAAQ,CAAC0B,UAAU,GACvC;MAAEK,GAAG,EAAE,GAAG/B,QAAQ,CAACyB,UAAU;IAAG,CAAC,GACjC;MAAEM,GAAG,EAAEhC,GAAG,CAACyB,MAAM,IAAIxB,QAAQ,CAAC0B,UAAU,GAAG,GAAG1B,QAAQ,CAACyB,UAAU,GAAG,CAAC,EAAE,GAAG,GAAGzB,QAAQ,CAAC0B,UAAU,GAAG,CAAC;IAAG;EAC/G,CAAuB,CAAC;EAExB,OAAOzB,cAAc;AACvB,CAAC","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- declare const ActivityLogLink: React.FC;
3
- export default ActivityLogLink;
4
- //# sourceMappingURL=ActivityLogLink.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActivityLogLink.d.ts","sourceRoot":"","sources":["../../../../../src/components/misc/ActivityLogLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAwB5B,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,6 +0,0 @@
1
- export interface PINCreateHeaderProps {
2
- updatePin?: boolean;
3
- }
4
- declare const PINCreateHeader: ({ updatePin }: PINCreateHeaderProps) => import("react").JSX.Element;
5
- export default PINCreateHeader;
6
- //# sourceMappingURL=PINCreateHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PINCreateHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/misc/PINCreateHeader.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,QAAA,MAAM,eAAe,kBAAmB,oBAAoB,gCAa3D,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { ButtonType } from '../buttons/Button';
3
- interface NotificationModalProps extends React.PropsWithChildren {
4
- title: string;
5
- doneTitle?: string;
6
- doneType?: ButtonType;
7
- doneAccessibilityLabel?: string;
8
- onDone?: () => void;
9
- onHome?: () => void;
10
- doneVisible?: boolean;
11
- homeVisible?: boolean;
12
- testID?: string;
13
- visible?: boolean;
14
- }
15
- declare const NotificationModal: React.FC<NotificationModalProps>;
16
- export default NotificationModal;
17
- //# sourceMappingURL=NotificationModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotificationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/modals/NotificationModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAUlD,OAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAItD,UAAU,sBAAuB,SAAQ,KAAK,CAAC,iBAAiB;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA+FvD,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- title: string;
4
- subtitle?: string;
5
- label?: string;
6
- }
7
- declare const Label: React.FC<Props>;
8
- export default Label;
9
- //# sourceMappingURL=Label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../src/components/texts/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmC1B,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- children: React.ReactNode;
4
- style?: any;
5
- }
6
- declare const Title: React.FC<Props>;
7
- export default Title;
8
- //# sourceMappingURL=Title.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../../src/components/texts/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAY1B,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- title?: string;
4
- subtitle?: string;
5
- content: string | React.ReactNode;
6
- }
7
- declare const ModularView: React.FC<Props>;
8
- export default ModularView;
9
- //# sourceMappingURL=ModularView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModularView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/ModularView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;CAClC;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoBhC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,7 +0,0 @@
1
- import { Agent } from '@credo-ts/core';
2
- import { WalletSecret } from '../types/security';
3
- declare const useInitializeAgent: () => {
4
- initializeAgent: (walletSecret: WalletSecret) => Promise<Agent | undefined>;
5
- };
6
- export default useInitializeAgent;
7
- //# sourceMappingURL=initialize-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initialize-agent.d.ts","sourceRoot":"","sources":["../../../../src/hooks/initialize-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAA8C,MAAM,gBAAgB,CAAA;AAclF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,QAAA,MAAM,kBAAkB;oCA8GC,YAAY,KAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC;CA6BjE,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PushNotification.d.ts","sourceRoot":"","sources":["../../../../src/screens/PushNotification.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAA8B,MAAM,OAAO,CAAA;AASlD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAK7C,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAsK7F,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- declare const UseBiometry: React.FC;
3
- export default UseBiometry;
4
- //# sourceMappingURL=UseBiometry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UseBiometry.d.ts","sourceRoot":"","sources":["../../../../src/screens/UseBiometry.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoD,MAAM,OAAO,CAAA;AAoCxE,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EA6TxB,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PINCreationValidation.d.ts","sourceRoot":"","sources":["../../../../src/utils/PINCreationValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAQtD,oBAAY,QAAQ;IAClB,sBAAsB,2BAA2B;IACjD,2BAA2B,gCAAgC;IAC3D,sCAAsC,2CAA2C;IACjF,qCAAqC,0CAA0C;IAC/E,yCAAyC,8CAA8C;IACvF,2BAA2B,gCAAgC;IAC3D,8BAA8B,mCAAmC;IACjE,qBAAqB,0BAA0B;IAC/C,oBAAoB,yBAAyB;IAC7C,mBAAmB,gCAAgC;CACpD;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,QAAQ,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC3C;AAED,eAAO,MAAM,sBAAsB,QAAS,MAAM,YAAY,kBAAkB,yBAsE/E,CAAA"}
@@ -1,34 +0,0 @@
1
- import React from 'react'
2
- import { useTranslation } from 'react-i18next'
3
- import { View, Text, StyleSheet } from 'react-native'
4
-
5
- import { useTheme } from '../../contexts/theme'
6
- import { testIdWithKey } from '../../utils/testable'
7
-
8
- const ActivityLogLink: React.FC = () => {
9
- const { ColorPallet } = useTheme()
10
- const { t } = useTranslation()
11
- const styles = StyleSheet.create({
12
- textContainer: {
13
- flexDirection: 'row',
14
- },
15
- text: {
16
- color: ColorPallet.notification.infoText,
17
- },
18
- link: {
19
- color: ColorPallet.notification.infoText,
20
- textDecorationLine: 'underline',
21
- },
22
- })
23
- return (
24
- <View style={styles.textContainer} testID={testIdWithKey('ActivityLogLink')}>
25
- <Text style={styles.text}>{t('ActivityLog.Your')}</Text>
26
- <Text> </Text>
27
- <Text style={styles.link}>{t('ActivityLog.Activity')}</Text>
28
- <Text> </Text>
29
- <Text style={styles.text}>{t('ActivityLog.Updated')}</Text>
30
- </View>
31
- )
32
- }
33
-
34
- export default ActivityLogLink
@@ -1,127 +0,0 @@
1
- import { useNavigation } from '@react-navigation/native'
2
- import { StackNavigationProp } from '@react-navigation/stack'
3
- import React, { useEffect, useState } from 'react'
4
- import { useTranslation } from 'react-i18next'
5
- import { StyleSheet, TouchableOpacity, View } from 'react-native'
6
- import { SafeAreaView } from 'react-native-safe-area-context'
7
- import Icon from 'react-native-vector-icons/MaterialIcons'
8
-
9
- import { hitSlop } from '../../constants'
10
- import { useTheme } from '../../contexts/theme'
11
- import { HomeStackParams, Screens } from '../../types/navigators'
12
- import { testIdWithKey } from '../../utils/testable'
13
- import Button, { ButtonType } from '../buttons/Button'
14
- import { ThemedText } from '../texts/ThemedText'
15
- import SafeAreaModal from './SafeAreaModal'
16
-
17
- interface NotificationModalProps extends React.PropsWithChildren {
18
- title: string
19
- doneTitle?: string
20
- doneType?: ButtonType
21
- doneAccessibilityLabel?: string
22
- onDone?: () => void
23
- onHome?: () => void
24
- doneVisible?: boolean
25
- homeVisible?: boolean
26
- testID?: string
27
- visible?: boolean
28
- }
29
-
30
- const NotificationModal: React.FC<NotificationModalProps> = ({
31
- title,
32
- doneTitle,
33
- doneType = ButtonType.Primary,
34
- doneAccessibilityLabel,
35
- onDone,
36
- onHome,
37
- doneVisible = true,
38
- homeVisible = true,
39
- testID,
40
- visible,
41
- children,
42
- }) => {
43
- const { t } = useTranslation()
44
- const navigation = useNavigation<StackNavigationProp<HomeStackParams>>()
45
- const [modalVisible, setModalVisible] = useState<boolean>(true)
46
- const { ColorPallet, TextTheme } = useTheme()
47
- const styles = StyleSheet.create({
48
- container: {
49
- flex: 1,
50
- backgroundColor: ColorPallet.brand.primaryBackground,
51
- },
52
- childContainer: {
53
- flexGrow: 1,
54
- justifyContent: 'center',
55
- alignItems: 'center',
56
- padding: 25,
57
- },
58
- buttonContainer: {
59
- marginBottom: 35,
60
- marginHorizontal: 20,
61
- },
62
- iconContainer: {
63
- width: '100%',
64
- flexDirection: 'row',
65
- justifyContent: 'flex-end',
66
- },
67
- iconButton: {
68
- padding: 20,
69
- paddingVertical: 28,
70
- },
71
- })
72
- useEffect(() => {
73
- if (visible !== undefined) {
74
- setModalVisible(visible)
75
- }
76
- }, [visible])
77
-
78
- const close = () => {
79
- setModalVisible(false)
80
- }
81
-
82
- const closeHome = () => {
83
- close()
84
- navigation.navigate(Screens.Home)
85
- }
86
-
87
- return (
88
- <SafeAreaModal testID={testID} visible={modalVisible} transparent={true}>
89
- <SafeAreaView style={styles.container}>
90
- {homeVisible ? (
91
- <View style={styles.iconContainer}>
92
- <TouchableOpacity
93
- accessible={true}
94
- accessibilityLabel={t('Global.Home')}
95
- accessibilityRole={'button'}
96
- testID={testIdWithKey('Home')}
97
- style={styles.iconButton}
98
- onPress={onHome || closeHome}
99
- hitSlop={hitSlop}
100
- >
101
- <Icon name="home" size={24} color={ColorPallet.notification.infoText}></Icon>
102
- </TouchableOpacity>
103
- </View>
104
- ) : null}
105
- <View style={styles.childContainer}>
106
- <ThemedText variant="headingThree" style={{ fontWeight: TextTheme.normal.fontWeight, textAlign: 'center' }}>
107
- {title}
108
- </ThemedText>
109
- {children}
110
- </View>
111
- {doneVisible ? (
112
- <View style={styles.buttonContainer}>
113
- <Button
114
- title={doneTitle || t('Global.Done')}
115
- accessibilityLabel={doneAccessibilityLabel || t('Global.Done')}
116
- testID={testIdWithKey('Done')}
117
- buttonType={doneType}
118
- onPress={onDone || close}
119
- ></Button>
120
- </View>
121
- ) : null}
122
- </SafeAreaView>
123
- </SafeAreaModal>
124
- )
125
- }
126
-
127
- export default NotificationModal
@@ -1,51 +0,0 @@
1
- import React from 'react'
2
- import { View, StyleSheet } from 'react-native'
3
-
4
- import { useTheme } from '../../contexts/theme'
5
-
6
- import Text from './Text'
7
-
8
- interface Props {
9
- title: string
10
- subtitle?: string
11
- label?: string
12
- }
13
-
14
- const Label: React.FC<Props> = ({ title, subtitle, label }) => {
15
- const { TextTheme } = useTheme()
16
- const styles = StyleSheet.create({
17
- container: {
18
- flexDirection: 'row',
19
- justifyContent: 'space-between',
20
- alignItems: 'center',
21
- width: '90%',
22
- marginTop: 10,
23
- },
24
- titleContainer: {
25
- flexDirection: 'row',
26
- alignItems: 'center',
27
- },
28
- title: {
29
- ...TextTheme.labelTitle,
30
- marginRight: 7,
31
- },
32
- subtitle: {
33
- ...TextTheme.labelSubtitle,
34
- },
35
- label: {
36
- marginLeft: 10,
37
- ...TextTheme.labelText,
38
- },
39
- })
40
- return (
41
- <View style={styles.container}>
42
- <View style={styles.titleContainer}>
43
- <Text style={styles.title}>{title}:</Text>
44
- <Text style={styles.subtitle}>{subtitle}</Text>
45
- </View>
46
- <Text style={styles.label}>{label}</Text>
47
- </View>
48
- )
49
- }
50
-
51
- export default Label
@@ -1,25 +0,0 @@
1
- import React from 'react'
2
- import { Text, StyleSheet } from 'react-native'
3
-
4
- import { useTheme } from '../../contexts/theme'
5
-
6
- interface Props {
7
- children: React.ReactNode
8
- style?: any
9
- }
10
-
11
- const Title: React.FC<Props> = ({ children, style }) => {
12
- const { TextTheme } = useTheme()
13
- const styles = StyleSheet.create({
14
- title: {
15
- ...TextTheme.title,
16
- },
17
- })
18
- return (
19
- <Text adjustsFontSizeToFit style={[styles.title, style]}>
20
- {children}
21
- </Text>
22
- )
23
- }
24
-
25
- export default Title
@@ -1,35 +0,0 @@
1
- import React from 'react'
2
- import { View, StyleSheet } from 'react-native'
3
-
4
- import { useTheme } from '../../contexts/theme'
5
- import { ThemedText } from '../texts/ThemedText'
6
-
7
- interface Props {
8
- title?: string
9
- subtitle?: string
10
- content: string | React.ReactNode
11
- }
12
-
13
- const ModularView: React.FC<Props> = ({ title, subtitle, content }) => {
14
- const { borderRadius, ColorPallet } = useTheme()
15
- const styles = StyleSheet.create({
16
- container: {
17
- borderRadius,
18
- backgroundColor: ColorPallet.notification.info,
19
- margin: 20,
20
- padding: 20,
21
- },
22
- content: {
23
- marginTop: 10,
24
- },
25
- })
26
- return (
27
- <View style={styles.container}>
28
- <ThemedText variant="headingFour">{title}</ThemedText>
29
- <ThemedText>{subtitle}</ThemedText>
30
- {typeof content === 'string' ? <ThemedText style={styles.content}>{content}</ThemedText> : content}
31
- </View>
32
- )
33
- }
34
-
35
- export default ModularView
@@ -1,9 +0,0 @@
1
- import { createContext, useContext } from 'react'
2
-
3
- import { theme, ITheme } from '../theme'
4
-
5
- export const ThemeContext = createContext<ITheme>(theme)
6
-
7
- export const ThemeProvider = ThemeContext.Provider
8
-
9
- export const useTheme = () => useContext(ThemeContext)
@@ -1,186 +0,0 @@
1
- import { useAgent } from '@credo-ts/react-hooks'
2
- import { ParamListBase } from '@react-navigation/native'
3
- import { StackScreenProps } from '@react-navigation/stack'
4
- import React, { useEffect, useState } from 'react'
5
- import { useTranslation } from 'react-i18next'
6
- import { AppState, Linking, ScrollView, StyleSheet, Switch, View } from 'react-native'
7
- import { SafeAreaView } from 'react-native-safe-area-context'
8
-
9
- import Button, { ButtonType } from '../components/buttons/Button'
10
- import { DispatchAction } from '../contexts/reducers/store'
11
- import { useStore } from '../contexts/store'
12
- import { useTheme } from '../contexts/theme'
13
- import { Screens } from '../types/navigators'
14
- import { testIdWithKey } from '../utils/testable'
15
- import { TOKENS, useServices } from '../container-api'
16
- import { ThemedText } from '../components/texts/ThemedText'
17
-
18
- const PushNotification: React.FC<StackScreenProps<ParamListBase, Screens.UsePushNotifications>> = ({ route }) => {
19
- const { t } = useTranslation()
20
- const [store, dispatch] = useStore()
21
- const { agent } = useAgent()
22
- const { TextTheme, ColorPallet, Assets } = useTheme()
23
- const [{ enablePushNotifications }] = useServices([TOKENS.CONFIG])
24
- const [notificationState, setNotificationState] = useState<boolean>(store.preferences.usePushNotifications)
25
- const [notificationStatus, setNotificationStatus] = useState<'denied' | 'granted' | 'unknown'>('unknown')
26
- const isMenu = (route.params as any)?.isMenu
27
-
28
- if (!enablePushNotifications) {
29
- throw new Error('Push notification configuration not found')
30
- }
31
-
32
- const style = StyleSheet.create({
33
- screenContainer: {
34
- flex: 1,
35
- padding: 30,
36
- },
37
- image: {
38
- height: 200,
39
- marginBottom: 20,
40
- },
41
- heading: {
42
- marginBottom: 20,
43
- },
44
- listItem: {
45
- ...TextTheme.normal,
46
- flex: 1,
47
- paddingLeft: 5,
48
- },
49
- })
50
-
51
- const list = [
52
- t('PushNotifications.BulletOne'),
53
- t('PushNotifications.BulletTwo'),
54
- t('PushNotifications.BulletThree'),
55
- t('PushNotifications.BulletFour'),
56
- ]
57
- const settingsInstructions = [
58
- t('PushNotifications.InstructionsOne'),
59
- t('PushNotifications.InstructionsTwo'),
60
- t('PushNotifications.InstructionsThree'),
61
- ]
62
-
63
- useEffect(() => {
64
- const updateNotificationState = async () => {
65
- const status = await enablePushNotifications.status()
66
- setNotificationStatus(status)
67
- }
68
-
69
- updateNotificationState()
70
- const subscription = AppState.addEventListener('change', updateNotificationState)
71
-
72
- return () => subscription.remove()
73
- }, [enablePushNotifications])
74
-
75
- const hasNotificationsDisabled = notificationStatus === 'denied' && store.onboarding.didConsiderPushNotifications
76
-
77
- const activatePushNotifications = async () => {
78
- const state = await enablePushNotifications.setup()
79
-
80
- dispatch({ type: DispatchAction.USE_PUSH_NOTIFICATIONS, payload: [state === 'granted'] })
81
- }
82
-
83
- const toggleSwitch = async () => {
84
- if (agent) {
85
- if (!notificationState) {
86
- const res = await enablePushNotifications.setup()
87
- if (res === 'denied') {
88
- return
89
- }
90
- }
91
-
92
- dispatch({ type: DispatchAction.USE_PUSH_NOTIFICATIONS, payload: [!notificationState] })
93
-
94
- enablePushNotifications.toggle(!notificationState, agent)
95
-
96
- setNotificationState(!notificationState)
97
- }
98
- }
99
-
100
- return (
101
- <SafeAreaView style={{ flex: 1 }} edges={['left', 'right', 'bottom']}>
102
- <ScrollView contentContainerStyle={{ flexGrow: 1 }}>
103
- <View style={style.screenContainer}>
104
- {!hasNotificationsDisabled && (
105
- <View style={style.image}>
106
- <Assets.svg.pushNotificationImg />
107
- </View>
108
- )}
109
- <ThemedText variant="headingThree" style={style.heading}>
110
- {t('PushNotifications.EnableNotifiactions')}
111
- </ThemedText>
112
- {hasNotificationsDisabled ? (
113
- <View>
114
- <ThemedText>{t('PushNotifications.NotificationsOffMessage')}</ThemedText>
115
- </View>
116
- ) : (
117
- <>
118
- <ThemedText>{t('PushNotifications.BeNotified')}</ThemedText>
119
- {list.map((item, index) => (
120
- <View style={{ flexDirection: 'row', marginTop: 20 }} key={index}>
121
- <ThemedText>{'\u2022'}</ThemedText>
122
- <ThemedText style={style.listItem}>{item}</ThemedText>
123
- </View>
124
- ))}
125
- </>
126
- )}
127
- {isMenu ? (
128
- <>
129
- <View style={{ marginTop: 25 }}>
130
- {hasNotificationsDisabled ? (
131
- <View>
132
- <ThemedText variant="bold">{t('PushNotifications.NotificationsOffTitle')}</ThemedText>
133
- <ThemedText>{t('PushNotifications.NotificationsInstructionTitle')}</ThemedText>
134
- {settingsInstructions.map((item, index) => (
135
- <View style={{ flexDirection: 'row', marginTop: 20 }} key={index}>
136
- <ThemedText>{`${index + 1}. `}</ThemedText>
137
- <ThemedText style={style.listItem}>{item}</ThemedText>
138
- </View>
139
- ))}
140
- </View>
141
- ) : (
142
- <View style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between' }}>
143
- <ThemedText>{t('PushNotifications.ReceiveNotifications')}</ThemedText>
144
- <Switch
145
- trackColor={{ false: ColorPallet.grayscale.lightGrey, true: ColorPallet.brand.primaryDisabled }}
146
- thumbColor={notificationState ? ColorPallet.brand.primary : ColorPallet.grayscale.mediumGrey}
147
- ios_backgroundColor={ColorPallet.grayscale.lightGrey}
148
- onValueChange={toggleSwitch}
149
- accessibilityLabel={t('PushNotifications.ReceiveNotifications')}
150
- accessibilityRole="switch"
151
- testID={testIdWithKey('PushNotificationSwitch')}
152
- value={notificationState}
153
- />
154
- </View>
155
- )}
156
- </View>
157
- {hasNotificationsDisabled && (
158
- <View style={{ marginTop: 'auto' }}>
159
- <Button
160
- buttonType={ButtonType.Primary}
161
- title={t('PushNotifications.OpenSettings')}
162
- accessibilityLabel={t('PushNotifications.OpenSettings')}
163
- testID={testIdWithKey('PushNotificationSettings')}
164
- onPress={() => Linking.openSettings()}
165
- ></Button>
166
- </View>
167
- )}
168
- </>
169
- ) : (
170
- <View style={{ marginTop: 'auto' }}>
171
- <Button
172
- buttonType={ButtonType.Primary}
173
- title={t('Global.Continue')}
174
- accessibilityLabel={t('Global.Continue')}
175
- testID={testIdWithKey('PushNotificationContinue')}
176
- onPress={activatePushNotifications}
177
- ></Button>
178
- </View>
179
- )}
180
- </View>
181
- </ScrollView>
182
- </SafeAreaView>
183
- )
184
- }
185
-
186
- export default PushNotification