@oxyhq/services 22.8.7 → 22.10.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.
Files changed (502) hide show
  1. package/lib/commonjs/index.js +24 -5
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +150 -0
  4. package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -0
  5. package/lib/commonjs/ui/components/OxyAuthChooser.js +137 -40
  6. package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
  7. package/lib/commonjs/ui/components/OxyConsentScreen.js +1 -1
  8. package/lib/commonjs/ui/components/OxyProvider.js +9 -29
  9. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  10. package/lib/commonjs/ui/components/ProfileButton.js +1 -1
  11. package/lib/commonjs/ui/components/RequireOxyAuth.js +1 -1
  12. package/lib/commonjs/ui/components/SurfaceHeaderAction.js +63 -0
  13. package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -0
  14. package/lib/commonjs/ui/components/SurfaceScreen.js +193 -0
  15. package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -0
  16. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +46 -29
  17. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  18. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +47 -23
  19. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
  20. package/lib/commonjs/ui/components/oxyAuthChooserStyles.js +22 -12
  21. package/lib/commonjs/ui/components/oxyAuthChooserStyles.js.map +1 -1
  22. package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +83 -0
  23. package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
  24. package/lib/commonjs/ui/context/OxyContext.js +49 -4
  25. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  26. package/lib/commonjs/ui/hooks/useAvatarPicker.js +34 -39
  27. package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
  28. package/lib/commonjs/ui/hooks/useSurfaceHeader.js +46 -0
  29. package/lib/commonjs/ui/hooks/useSurfaceHeader.js.map +1 -0
  30. package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +1 -1
  31. package/lib/commonjs/ui/navigation/accountDialogManager.js +14 -2
  32. package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -1
  33. package/lib/commonjs/ui/navigation/bottomSheetManager.js +38 -56
  34. package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
  35. package/lib/commonjs/ui/navigation/routes.js +7 -57
  36. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  37. package/lib/commonjs/ui/navigation/surfaceBackBridge.js +68 -0
  38. package/lib/commonjs/ui/navigation/surfaceBackBridge.js.map +1 -0
  39. package/lib/commonjs/ui/navigation/surfaceNavStack.js +98 -0
  40. package/lib/commonjs/ui/navigation/surfaceNavStack.js.map +1 -0
  41. package/lib/commonjs/ui/navigation/surfaceRegistry.js +152 -0
  42. package/lib/commonjs/ui/navigation/surfaceRegistry.js.map +1 -0
  43. package/lib/commonjs/ui/navigation/surfaces.js +256 -0
  44. package/lib/commonjs/ui/navigation/surfaces.js.map +1 -0
  45. package/lib/commonjs/ui/screens/AccountMembersScreen.js +214 -283
  46. package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
  47. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +88 -118
  48. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  49. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +22 -36
  50. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  51. package/lib/commonjs/ui/screens/AppInfoScreen.js +219 -226
  52. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  53. package/lib/commonjs/ui/screens/AvatarCropScreen.js +10 -14
  54. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  55. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +24 -39
  56. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  57. package/lib/commonjs/ui/screens/CreateAccountScreen.js +136 -158
  58. package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
  59. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +29 -36
  60. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
  61. package/lib/commonjs/ui/screens/EditProfileScreen.js +101 -109
  62. package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
  63. package/lib/commonjs/ui/screens/FAQScreen.js +10 -15
  64. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  65. package/lib/commonjs/ui/screens/FeedbackScreen.js +8 -16
  66. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  67. package/lib/commonjs/ui/screens/FileManagementScreen.js +219 -206
  68. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  69. package/lib/commonjs/ui/screens/HelpSupportScreen.js +62 -69
  70. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  71. package/lib/commonjs/ui/screens/HistoryViewScreen.js +63 -79
  72. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  73. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +69 -98
  74. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  75. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +8 -14
  76. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  77. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +77 -94
  78. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  79. package/lib/commonjs/ui/screens/ManageAccountScreen.js +99 -134
  80. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  81. package/lib/commonjs/ui/screens/NotificationsScreen.js +69 -76
  82. package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
  83. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +3 -8
  84. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  85. package/lib/commonjs/ui/screens/PreferencesScreen.js +67 -74
  86. package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
  87. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +55 -91
  88. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  89. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +291 -304
  90. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  91. package/lib/commonjs/ui/screens/ProfileScreen.js +100 -114
  92. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  93. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +38 -45
  94. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  95. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +44 -57
  96. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  97. package/lib/commonjs/ui/screens/UserLinksScreen.js +24 -31
  98. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  99. package/lib/commonjs/ui/screens/UserListScreen.js +14 -24
  100. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  101. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +1 -1
  102. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +9 -7
  103. package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
  104. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +66 -75
  105. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  106. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +111 -139
  107. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  108. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +13 -20
  109. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  110. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +14 -27
  111. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  112. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +68 -85
  113. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  114. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +28 -36
  115. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  116. package/lib/commonjs/ui/types/surfaceScreen.js +6 -0
  117. package/lib/commonjs/ui/types/surfaceScreen.js.map +1 -0
  118. package/lib/module/index.js +12 -5
  119. package/lib/module/index.js.map +1 -1
  120. package/lib/module/ui/components/OxyAccountDialogScreen.js +145 -0
  121. package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -0
  122. package/lib/module/ui/components/OxyAuthChooser.js +137 -40
  123. package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
  124. package/lib/module/ui/components/OxyConsentScreen.js +1 -1
  125. package/lib/module/ui/components/OxyProvider.js +10 -30
  126. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  127. package/lib/module/ui/components/ProfileButton.js +1 -1
  128. package/lib/module/ui/components/RequireOxyAuth.js +1 -1
  129. package/lib/module/ui/components/SurfaceHeaderAction.js +58 -0
  130. package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -0
  131. package/lib/module/ui/components/SurfaceScreen.js +188 -0
  132. package/lib/module/ui/components/SurfaceScreen.js.map +1 -0
  133. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +46 -29
  134. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  135. package/lib/module/ui/components/modals/DeleteAccountModal.js +46 -23
  136. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
  137. package/lib/module/ui/components/oxyAuthChooserStyles.js +22 -12
  138. package/lib/module/ui/components/oxyAuthChooserStyles.js.map +1 -1
  139. package/lib/module/ui/components/surfaces/ActionSheetSurface.js +78 -0
  140. package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -0
  141. package/lib/module/ui/context/OxyContext.js +49 -4
  142. package/lib/module/ui/context/OxyContext.js.map +1 -1
  143. package/lib/module/ui/hooks/useAvatarPicker.js +34 -39
  144. package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
  145. package/lib/module/ui/hooks/useSurfaceHeader.js +42 -0
  146. package/lib/module/ui/hooks/useSurfaceHeader.js.map +1 -0
  147. package/lib/module/ui/hooks/useSwitchableAccounts.js +1 -1
  148. package/lib/module/ui/navigation/accountDialogManager.js +14 -2
  149. package/lib/module/ui/navigation/accountDialogManager.js.map +1 -1
  150. package/lib/module/ui/navigation/bottomSheetManager.js +37 -53
  151. package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
  152. package/lib/module/ui/navigation/routes.js +6 -56
  153. package/lib/module/ui/navigation/routes.js.map +1 -1
  154. package/lib/module/ui/navigation/surfaceBackBridge.js +63 -0
  155. package/lib/module/ui/navigation/surfaceBackBridge.js.map +1 -0
  156. package/lib/module/ui/navigation/surfaceNavStack.js +95 -0
  157. package/lib/module/ui/navigation/surfaceNavStack.js.map +1 -0
  158. package/lib/module/ui/navigation/surfaceRegistry.js +146 -0
  159. package/lib/module/ui/navigation/surfaceRegistry.js.map +1 -0
  160. package/lib/module/ui/navigation/surfaces.js +244 -0
  161. package/lib/module/ui/navigation/surfaces.js.map +1 -0
  162. package/lib/module/ui/screens/AccountMembersScreen.js +218 -286
  163. package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
  164. package/lib/module/ui/screens/AccountSettingsScreen.js +92 -121
  165. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  166. package/lib/module/ui/screens/AccountVerificationScreen.js +25 -38
  167. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  168. package/lib/module/ui/screens/AppInfoScreen.js +220 -227
  169. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  170. package/lib/module/ui/screens/AvatarCropScreen.js +10 -14
  171. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  172. package/lib/module/ui/screens/ConnectedAppsScreen.js +26 -40
  173. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  174. package/lib/module/ui/screens/CreateAccountScreen.js +139 -160
  175. package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
  176. package/lib/module/ui/screens/EditProfileFieldScreen.js +32 -38
  177. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
  178. package/lib/module/ui/screens/EditProfileScreen.js +102 -110
  179. package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
  180. package/lib/module/ui/screens/FAQScreen.js +11 -15
  181. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  182. package/lib/module/ui/screens/FeedbackScreen.js +10 -17
  183. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  184. package/lib/module/ui/screens/FileManagementScreen.js +222 -208
  185. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  186. package/lib/module/ui/screens/HelpSupportScreen.js +64 -70
  187. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  188. package/lib/module/ui/screens/HistoryViewScreen.js +65 -81
  189. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  190. package/lib/module/ui/screens/LanguageSelectorScreen.js +71 -99
  191. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  192. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +10 -15
  193. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  194. package/lib/module/ui/screens/LegalDocumentsScreen.js +78 -94
  195. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  196. package/lib/module/ui/screens/ManageAccountScreen.js +102 -137
  197. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  198. package/lib/module/ui/screens/NotificationsScreen.js +71 -77
  199. package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
  200. package/lib/module/ui/screens/PaymentGatewayScreen.js +4 -9
  201. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  202. package/lib/module/ui/screens/PreferencesScreen.js +69 -75
  203. package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
  204. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +58 -93
  205. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  206. package/lib/module/ui/screens/PrivacySettingsScreen.js +293 -305
  207. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  208. package/lib/module/ui/screens/ProfileScreen.js +102 -116
  209. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  210. package/lib/module/ui/screens/SavesCollectionsScreen.js +40 -46
  211. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  212. package/lib/module/ui/screens/SearchSettingsScreen.js +46 -58
  213. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  214. package/lib/module/ui/screens/UserLinksScreen.js +26 -32
  215. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  216. package/lib/module/ui/screens/UserListScreen.js +14 -24
  217. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  218. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +1 -1
  219. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +8 -7
  220. package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
  221. package/lib/module/ui/screens/trust/TrustAboutScreen.js +67 -75
  222. package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  223. package/lib/module/ui/screens/trust/TrustCenterScreen.js +112 -139
  224. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  225. package/lib/module/ui/screens/trust/TrustFAQScreen.js +15 -21
  226. package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  227. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +14 -26
  228. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  229. package/lib/module/ui/screens/trust/TrustRewardsScreen.js +69 -85
  230. package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  231. package/lib/module/ui/screens/trust/TrustRulesScreen.js +30 -37
  232. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  233. package/lib/module/ui/types/surfaceScreen.js +4 -0
  234. package/lib/module/ui/types/surfaceScreen.js.map +1 -0
  235. package/lib/typescript/commonjs/index.d.ts +2 -0
  236. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts +39 -0
  238. package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts +3 -3
  240. package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +3 -2
  242. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +2 -2
  244. package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +1 -1
  245. package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +16 -0
  246. package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +26 -0
  248. package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
  250. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +17 -2
  252. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts +19 -9
  254. package/lib/typescript/commonjs/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
  256. package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts +7 -11
  259. package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts +31 -0
  261. package/lib/typescript/commonjs/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
  262. package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +1 -1
  263. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +14 -2
  264. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +24 -16
  266. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +2 -60
  268. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts +16 -0
  270. package/lib/typescript/commonjs/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts +51 -0
  272. package/lib/typescript/commonjs/ui/navigation/surfaceNavStack.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts +135 -0
  274. package/lib/typescript/commonjs/ui/navigation/surfaceRegistry.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts +79 -0
  276. package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts +0 -4
  282. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  286. package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  288. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +1 -1
  296. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
  300. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
  308. package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/ui/types/navigation.d.ts +8 -0
  315. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts +38 -0
  317. package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts.map +1 -0
  318. package/lib/typescript/module/index.d.ts +2 -0
  319. package/lib/typescript/module/index.d.ts.map +1 -1
  320. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts +39 -0
  321. package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -0
  322. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts +3 -3
  323. package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
  324. package/lib/typescript/module/ui/components/OxyProvider.d.ts +3 -2
  325. package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
  326. package/lib/typescript/module/ui/components/ProfileButton.d.ts +2 -2
  327. package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +1 -1
  328. package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +16 -0
  329. package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -0
  330. package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +26 -0
  331. package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -0
  332. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +14 -4
  333. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  334. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +17 -2
  335. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  336. package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts +19 -9
  337. package/lib/typescript/module/ui/components/oxyAuthChooserStyles.d.ts.map +1 -1
  338. package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts +38 -0
  339. package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -0
  340. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  341. package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts +7 -11
  342. package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
  343. package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts +31 -0
  344. package/lib/typescript/module/ui/hooks/useSurfaceHeader.d.ts.map +1 -0
  345. package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +1 -1
  346. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +14 -2
  347. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -1
  348. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +24 -16
  349. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  350. package/lib/typescript/module/ui/navigation/routes.d.ts +2 -60
  351. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  352. package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts +16 -0
  353. package/lib/typescript/module/ui/navigation/surfaceBackBridge.d.ts.map +1 -0
  354. package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts +51 -0
  355. package/lib/typescript/module/ui/navigation/surfaceNavStack.d.ts.map +1 -0
  356. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts +135 -0
  357. package/lib/typescript/module/ui/navigation/surfaceRegistry.d.ts.map +1 -0
  358. package/lib/typescript/module/ui/navigation/surfaces.d.ts +79 -0
  359. package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -0
  360. package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  361. package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  362. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  363. package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
  364. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts +0 -4
  365. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  366. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  367. package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts.map +1 -1
  368. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  369. package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
  370. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  371. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  372. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  373. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  374. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  375. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  376. package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  377. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  378. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +1 -1
  379. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  380. package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
  381. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  382. package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
  383. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  384. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  385. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  386. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  387. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  388. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  389. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  390. package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
  391. package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  392. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  393. package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  394. package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  395. package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  396. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  397. package/lib/typescript/module/ui/types/navigation.d.ts +8 -0
  398. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  399. package/lib/typescript/module/ui/types/surfaceScreen.d.ts +38 -0
  400. package/lib/typescript/module/ui/types/surfaceScreen.d.ts.map +1 -0
  401. package/package.json +2 -2
  402. package/src/index.ts +12 -5
  403. package/src/ui/components/OxyAccountDialogScreen.tsx +148 -0
  404. package/src/ui/components/OxyAuthChooser.tsx +153 -33
  405. package/src/ui/components/OxyConsentScreen.tsx +1 -1
  406. package/src/ui/components/OxyProvider.tsx +12 -34
  407. package/src/ui/components/ProfileButton.tsx +2 -2
  408. package/src/ui/components/RequireOxyAuth.tsx +1 -1
  409. package/src/ui/components/SurfaceHeaderAction.tsx +60 -0
  410. package/src/ui/components/SurfaceScreen.tsx +226 -0
  411. package/src/ui/components/fileManagement/FileDetailsModal.tsx +50 -36
  412. package/src/ui/components/modals/DeleteAccountModal.tsx +47 -26
  413. package/src/ui/components/oxyAuthChooserStyles.ts +22 -12
  414. package/src/ui/components/surfaces/ActionSheetSurface.tsx +98 -0
  415. package/src/ui/context/OxyContext.tsx +43 -3
  416. package/src/ui/hooks/useAvatarPicker.ts +53 -66
  417. package/src/ui/hooks/useSurfaceHeader.ts +56 -0
  418. package/src/ui/hooks/useSwitchableAccounts.ts +1 -1
  419. package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +39 -0
  420. package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +68 -0
  421. package/src/ui/navigation/accountDialogManager.ts +14 -2
  422. package/src/ui/navigation/bottomSheetManager.ts +46 -73
  423. package/src/ui/navigation/routes.ts +7 -106
  424. package/src/ui/navigation/surfaceBackBridge.ts +69 -0
  425. package/src/ui/navigation/surfaceNavStack.ts +110 -0
  426. package/src/ui/navigation/surfaceRegistry.ts +240 -0
  427. package/src/ui/navigation/surfaces.ts +272 -0
  428. package/src/ui/screens/AccountMembersScreen.tsx +39 -100
  429. package/src/ui/screens/AccountSettingsScreen.tsx +32 -54
  430. package/src/ui/screens/AccountVerificationScreen.tsx +23 -51
  431. package/src/ui/screens/AppInfoScreen.tsx +6 -13
  432. package/src/ui/screens/AvatarCropScreen.tsx +8 -17
  433. package/src/ui/screens/ConnectedAppsScreen.tsx +39 -60
  434. package/src/ui/screens/CreateAccountScreen.tsx +13 -39
  435. package/src/ui/screens/EditProfileFieldScreen.tsx +30 -48
  436. package/src/ui/screens/EditProfileScreen.tsx +7 -16
  437. package/src/ui/screens/FAQScreen.tsx +9 -13
  438. package/src/ui/screens/FeedbackScreen.tsx +8 -22
  439. package/src/ui/screens/FileManagementScreen.tsx +191 -188
  440. package/src/ui/screens/HelpSupportScreen.tsx +7 -13
  441. package/src/ui/screens/HistoryViewScreen.tsx +26 -31
  442. package/src/ui/screens/LanguageSelectorScreen.tsx +12 -46
  443. package/src/ui/screens/LearnMoreUsernamesScreen.tsx +8 -16
  444. package/src/ui/screens/LegalDocumentsScreen.tsx +7 -22
  445. package/src/ui/screens/ManageAccountScreen.tsx +96 -165
  446. package/src/ui/screens/NotificationsScreen.tsx +7 -13
  447. package/src/ui/screens/PaymentGatewayScreen.tsx +3 -10
  448. package/src/ui/screens/PreferencesScreen.tsx +7 -13
  449. package/src/ui/screens/PremiumSubscriptionScreen.tsx +52 -90
  450. package/src/ui/screens/PrivacySettingsScreen.tsx +9 -21
  451. package/src/ui/screens/ProfileScreen.tsx +9 -11
  452. package/src/ui/screens/SavesCollectionsScreen.tsx +7 -13
  453. package/src/ui/screens/SearchSettingsScreen.tsx +9 -21
  454. package/src/ui/screens/UserLinksScreen.tsx +7 -14
  455. package/src/ui/screens/UserListScreen.tsx +2 -5
  456. package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +1 -1
  457. package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +9 -7
  458. package/src/ui/screens/trust/TrustAboutScreen.tsx +10 -17
  459. package/src/ui/screens/trust/TrustCenterScreen.tsx +9 -28
  460. package/src/ui/screens/trust/TrustFAQScreen.tsx +15 -18
  461. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +3 -5
  462. package/src/ui/screens/trust/TrustRewardsScreen.tsx +11 -26
  463. package/src/ui/screens/trust/TrustRulesScreen.tsx +10 -13
  464. package/src/ui/types/navigation.ts +8 -0
  465. package/src/ui/types/surfaceScreen.ts +38 -0
  466. package/lib/commonjs/ui/components/BottomSheet.js +0 -49
  467. package/lib/commonjs/ui/components/BottomSheet.js.map +0 -1
  468. package/lib/commonjs/ui/components/BottomSheetRouter.js +0 -298
  469. package/lib/commonjs/ui/components/BottomSheetRouter.js.map +0 -1
  470. package/lib/commonjs/ui/components/Header.js +0 -305
  471. package/lib/commonjs/ui/components/Header.js.map +0 -1
  472. package/lib/commonjs/ui/components/OxyAccountDialog.js +0 -259
  473. package/lib/commonjs/ui/components/OxyAccountDialog.js.map +0 -1
  474. package/lib/module/ui/components/BottomSheet.js +0 -45
  475. package/lib/module/ui/components/BottomSheet.js.map +0 -1
  476. package/lib/module/ui/components/BottomSheetRouter.js +0 -292
  477. package/lib/module/ui/components/BottomSheetRouter.js.map +0 -1
  478. package/lib/module/ui/components/Header.js +0 -299
  479. package/lib/module/ui/components/Header.js.map +0 -1
  480. package/lib/module/ui/components/OxyAccountDialog.js +0 -254
  481. package/lib/module/ui/components/OxyAccountDialog.js.map +0 -1
  482. package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts +0 -29
  483. package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts.map +0 -1
  484. package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts +0 -9
  485. package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +0 -1
  486. package/lib/typescript/commonjs/ui/components/Header.d.ts +0 -33
  487. package/lib/typescript/commonjs/ui/components/Header.d.ts.map +0 -1
  488. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +0 -37
  489. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +0 -1
  490. package/lib/typescript/module/ui/components/BottomSheet.d.ts +0 -29
  491. package/lib/typescript/module/ui/components/BottomSheet.d.ts.map +0 -1
  492. package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts +0 -9
  493. package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +0 -1
  494. package/lib/typescript/module/ui/components/Header.d.ts +0 -33
  495. package/lib/typescript/module/ui/components/Header.d.ts.map +0 -1
  496. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +0 -37
  497. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +0 -1
  498. package/src/ui/components/BottomSheet.tsx +0 -48
  499. package/src/ui/components/BottomSheetRouter.tsx +0 -310
  500. package/src/ui/components/Header.tsx +0 -224
  501. package/src/ui/components/OxyAccountDialog.tsx +0 -243
  502. package/src/ui/navigation/__tests__/getSheetConfig.test.ts +0 -36
@@ -1,259 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = require("react");
8
- var _reactNative = require("react-native");
9
- var _vectorIcons = require("@expo/vector-icons");
10
- var _dialog = require("@oxyhq/bloom/dialog");
11
- var _typography = require("@oxyhq/bloom/typography");
12
- var _theme = require("@oxyhq/bloom/theme");
13
- var _OxyContext = require("../context/OxyContext.js");
14
- var _useI18n = require("../hooks/useI18n.js");
15
- var _OxyAuthChooser = _interopRequireDefault(require("./OxyAuthChooser.js"));
16
- var _LogoIcon = require("./logo/LogoIcon.js");
17
- var _jsxRuntime = require("react/jsx-runtime");
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
- /**
20
- * OxyAccountDialog — the ONE unified account dialog for `@oxyhq/services`.
21
- *
22
- * Bloom `<Dialog>` chrome (header, back button, placement, scroll body) around
23
- * the headless chooser logic, which lives in `OxyAuthChooser` — the account
24
- * switcher, sign-in, sign-up, and QR views are ALL there, extracted so the
25
- * same chooser can be mounted bare by a future host with no Dialog chrome
26
- * (e.g. an auth.oxy.so hub page driving the cross-origin passkey popup, b2).
27
- * This file owns ONLY the chrome: the title/subtitle per view, the back
28
- * button, and the Bloom `<Dialog>` surface itself.
29
- *
30
- * The surface is Bloom's `<Dialog>` (`@oxyhq/bloom/dialog`) with a responsive
31
- * `placement` — a bottom sheet on narrow viewports, a centered card on wide ones.
32
- * It REPLACES the hand-rolled RN `<Modal>` + `<GestureHandlerRootView>` + manual
33
- * backdrop/card wrapper this component used before. That RN `<Modal>` is invisible
34
- * under React StrictMode on web: react-native-web's `ModalPortal` appends its host
35
- * node during render but removes it in an effect cleanup and never re-attaches, so
36
- * the dialog never paints in a dev Vite build. Bloom's `<Dialog>` renders through
37
- * its own Portal and has no such lifecycle hazard.
38
- *
39
- * Open/close is CONTROLLED by `isAccountDialogOpen` (the `open` prop); the Dialog
40
- * stays mounted whenever the controller exists so it can animate its own close.
41
- * Backdrop / swipe-to-dismiss is disabled (`dismissOnBackdrop={false}`) on purpose:
42
- * Bloom's controlled `bottom` placement does not fire `onClose` on a gesture or
43
- * backdrop dismissal, so allowing it would desync `isAccountDialogOpen` from the
44
- * sheet and block reopening. The header close button (and `OxyAuthChooser`'s
45
- * `onComplete`) drive `closeAccountDialog`, which flips `open` and runs the exit
46
- * animation.
47
- */
48
-
49
- /**
50
- * The unified account dialog. Mounted once by `OxyProvider`; opened imperatively
51
- * via `useOxy().openAccountDialog(view?)` or imperative `openAccountDialog('signin')`.
52
- */
53
- const OxyAccountDialog = () => {
54
- const {
55
- accountDialogController: controller,
56
- isAccountDialogOpen,
57
- closeAccountDialog
58
- } = (0, _OxyContext.useOxy)();
59
- const theme = (0, _theme.useTheme)();
60
- const {
61
- t
62
- } = (0, _useI18n.useI18n)();
63
-
64
- // A lightweight, header-only binding to the same controller `OxyAuthChooser`
65
- // binds independently — cheap, and the established pattern here (
66
- // `useSwitchableAccounts` also binds to this controller on its own).
67
- const subscribe = (0, _react.useCallback)(listener => controller ? controller.subscribe(listener) : () => undefined, [controller]);
68
- const getSnapshot = (0, _react.useCallback)(() => controller ? controller.getSnapshot() : EMPTY_SNAPSHOT, [controller]);
69
- const snapshot = (0, _react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
70
- if (!controller) {
71
- return null;
72
- }
73
- const {
74
- view
75
- } = snapshot;
76
- const showBack = view === 'qr' || view === 'signup' || view === 'add' && snapshot.accounts.length > 0;
77
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_dialog.Dialog, {
78
- open: isAccountDialogOpen,
79
- onClose: closeAccountDialog,
80
- placement: {
81
- base: 'bottom',
82
- md: 'center'
83
- },
84
- dismissOnBackdrop: false,
85
- maxWidth: 420,
86
- label: headerCopy(view, snapshot.accounts.length, t).title,
87
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(DialogHeader, {
88
- snapshot: snapshot,
89
- theme: theme,
90
- t: t,
91
- showBack: showBack,
92
- onBack: () => controller.setView('accounts'),
93
- onClose: closeAccountDialog
94
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
95
- style: styles.body,
96
- contentContainerStyle: styles.bodyContent,
97
- showsVerticalScrollIndicator: false,
98
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyAuthChooser.default, {
99
- onComplete: closeAccountDialog
100
- })
101
- })]
102
- });
103
- };
104
-
105
- // ---------------------------------------------------------------------------
106
- // Header
107
- // ---------------------------------------------------------------------------
108
-
109
- const DialogHeader = ({
110
- snapshot,
111
- theme,
112
- t,
113
- showBack,
114
- onBack,
115
- onClose
116
- }) => {
117
- const {
118
- title,
119
- subtitle
120
- } = headerCopy(snapshot.view, snapshot.accounts.length, t);
121
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
122
- style: styles.header,
123
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
124
- style: styles.headerBar,
125
- children: [showBack ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
126
- onPress: onBack,
127
- style: [styles.iconButton, {
128
- backgroundColor: theme.colors.backgroundSecondary
129
- }],
130
- accessibilityRole: "button",
131
- accessibilityLabel: t('common.actions.back') || 'Back',
132
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons, {
133
- name: "chevron-left",
134
- size: 22,
135
- color: theme.colors.textSecondary
136
- })
137
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
138
- style: styles.iconButton
139
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoIcon.LogoIcon, {
140
- height: 34,
141
- color: theme.colors.primary
142
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
143
- onPress: onClose,
144
- style: [styles.iconButton, {
145
- backgroundColor: theme.colors.backgroundSecondary
146
- }],
147
- accessibilityRole: "button",
148
- accessibilityLabel: t('common.actions.close') || 'Close',
149
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons, {
150
- name: "close",
151
- size: 20,
152
- color: theme.colors.textSecondary
153
- })
154
- })]
155
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
156
- style: [styles.title, {
157
- color: theme.colors.text
158
- }],
159
- numberOfLines: 1,
160
- children: title
161
- }), subtitle ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
162
- style: [styles.subtitle, {
163
- color: theme.colors.textSecondary
164
- }],
165
- numberOfLines: 2,
166
- children: subtitle
167
- }) : null]
168
- });
169
- };
170
-
171
- // ---------------------------------------------------------------------------
172
- // Copy + helpers
173
- // ---------------------------------------------------------------------------
174
-
175
- function headerCopy(view, accountCount, t) {
176
- switch (view) {
177
- case 'accounts':
178
- return {
179
- title: t('accountSwitcher.sections.yourAccounts') || 'Your accounts',
180
- subtitle: t('signin.chooser.subtitle') || 'Choose which account to continue with.'
181
- };
182
- case 'qr':
183
- return {
184
- title: t('accountSwitcher.scanTitle') || 'Sign in with Oxy',
185
- subtitle: t('accountSwitcher.scanSubtitle') || 'Scan with Commons on your phone.'
186
- };
187
- case 'signup':
188
- return {
189
- title: t('signup.title') || 'Create your account',
190
- subtitle: t('signup.subtitle') || 'One identity for the whole ecosystem.'
191
- };
192
- default:
193
- return accountCount > 0 ? {
194
- title: t('signin.addAccountTitle') || 'Add another account',
195
- subtitle: t('signin.addAccountSubtitle') || 'Sign in with another account.'
196
- } : {
197
- title: t('signin.title') || 'Sign in',
198
- subtitle: t('signin.subtitle') || 'One identity for the whole ecosystem.'
199
- };
200
- }
201
- }
202
- const EMPTY_SNAPSHOT = {
203
- view: 'accounts',
204
- accounts: [],
205
- activeAccountId: null,
206
- loading: false,
207
- error: null,
208
- switchingAccountId: null,
209
- signIn: {
210
- phase: 'idle',
211
- authorizeCode: null,
212
- qrPayload: null,
213
- expiresAt: null,
214
- error: null
215
- },
216
- commonsAvailability: 'unknown'
217
- };
218
- const styles = _reactNative.StyleSheet.create({
219
- header: {
220
- alignItems: 'center',
221
- marginBottom: 12
222
- },
223
- headerBar: {
224
- width: '100%',
225
- flexDirection: 'row',
226
- alignItems: 'center',
227
- justifyContent: 'space-between',
228
- marginBottom: 8
229
- },
230
- iconButton: {
231
- width: 32,
232
- height: 32,
233
- borderRadius: 16,
234
- alignItems: 'center',
235
- justifyContent: 'center'
236
- },
237
- title: {
238
- fontSize: 22,
239
- fontWeight: '800',
240
- letterSpacing: -0.4,
241
- textAlign: 'center',
242
- marginTop: 6
243
- },
244
- subtitle: {
245
- fontSize: 14,
246
- lineHeight: 19,
247
- textAlign: 'center',
248
- marginTop: 4
249
- },
250
- body: {
251
- width: '100%'
252
- },
253
- bodyContent: {
254
- paddingTop: 4,
255
- paddingBottom: 4
256
- }
257
- });
258
- var _default = exports.default = OxyAccountDialog;
259
- //# sourceMappingURL=OxyAccountDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_vectorIcons","_dialog","_typography","_theme","_OxyContext","_useI18n","_OxyAuthChooser","_interopRequireDefault","_LogoIcon","_jsxRuntime","e","__esModule","default","OxyAccountDialog","accountDialogController","controller","isAccountDialogOpen","closeAccountDialog","useOxy","theme","useTheme","t","useI18n","subscribe","useCallback","listener","undefined","getSnapshot","EMPTY_SNAPSHOT","snapshot","useSyncExternalStore","view","showBack","accounts","length","jsxs","Dialog","open","onClose","placement","base","md","dismissOnBackdrop","maxWidth","label","headerCopy","title","children","jsx","DialogHeader","onBack","setView","ScrollView","style","styles","body","contentContainerStyle","bodyContent","showsVerticalScrollIndicator","onComplete","subtitle","View","header","headerBar","Pressable","onPress","iconButton","backgroundColor","colors","backgroundSecondary","accessibilityRole","accessibilityLabel","MaterialCommunityIcons","name","size","color","textSecondary","LogoIcon","height","primary","Text","text","numberOfLines","accountCount","activeAccountId","loading","error","switchingAccountId","signIn","phase","authorizeCode","qrPayload","expiresAt","commonsAvailability","StyleSheet","create","alignItems","marginBottom","width","flexDirection","justifyContent","borderRadius","fontSize","fontWeight","letterSpacing","textAlign","marginTop","lineHeight","paddingTop","paddingBottom","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/OxyAccountDialog.tsx"],"mappings":";;;;;;AA+BA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAEA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAC,sBAAA,CAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AAA2C,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAS,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAz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AAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,CAAC,GAAG;IACnBC,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAE;EACb,CAAC;EACD9C,QAAQ,EAAE;IACR0C,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE,EAAE;IACdF,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAE;EACb,CAAC;EACDnD,IAAI,EAAE;IACJ2C,KAAK,EAAE;EACT,CAAC;EACDzC,WAAW,EAAE;IACXmD,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAnG,OAAA,GAEYC,gBAAgB","ignoreList":[]}
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- import { forwardRef } from 'react';
4
- import { BottomSheet as BloomBottomSheet } from '@oxyhq/bloom/bottom-sheet';
5
-
6
- /**
7
- * Thin wrapper around `@oxyhq/bloom`'s `BottomSheet` (>=0.4.0).
8
- *
9
- * Bloom is the canonical bottom-sheet primitive for the Oxy ecosystem; this
10
- * wrapper exists only to inject service-specific defaults so the 29+ screens
11
- * mounted by `BottomSheetRouter` keep the exact UX they had under the
12
- * pre-refactor in-tree implementation:
13
- *
14
- * - `manualActivation: true` — the body pan uses RNGH's manualActivation
15
- * with scroll-handoff, the only RNGH 2.x pattern that doesn't steal
16
- * vertical events from inner scrollers on Android. The previous in-tree
17
- * implementation always ran in this mode.
18
- * - `dynamicBackdrop: true` — backdrop dims proportionally with drag
19
- * distance (iOS Photos style). The previous in-tree implementation
20
- * always did this.
21
- *
22
- * Consumers (`BottomSheetRouter`, primarily) can still override either default
23
- * by passing the prop explicitly — for example, per-route via `getSheetConfig`.
24
- *
25
- * Public API (name + ref shape) is identical to the previous in-tree
26
- * implementation, so external consumers and `BottomSheetRouter` need no
27
- * changes beyond the new pass-through props.
28
- */
29
- import { jsx as _jsx } from "react/jsx-runtime";
30
- const BottomSheet = /*#__PURE__*/forwardRef((props, ref) => {
31
- const {
32
- manualActivation = true,
33
- dynamicBackdrop = true,
34
- ...rest
35
- } = props;
36
- return /*#__PURE__*/_jsx(BloomBottomSheet, {
37
- ref: ref,
38
- manualActivation: manualActivation,
39
- dynamicBackdrop: dynamicBackdrop,
40
- ...rest
41
- });
42
- });
43
- BottomSheet.displayName = 'BottomSheet';
44
- export default BottomSheet;
45
- //# sourceMappingURL=BottomSheet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["forwardRef","BottomSheet","BloomBottomSheet","jsx","_jsx","props","ref","manualActivation","dynamicBackdrop","rest","displayName"],"sourceRoot":"../../../../src","sources":["ui/components/BottomSheet.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SACIC,WAAW,IAAIC,gBAAgB,QAG5B,2BAA2B;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAtBA,SAAAC,GAAA,IAAAC,IAAA;AA0BA,MAAMH,WAAW,gBAAGD,UAAU,CAAmC,CAACK,KAAK,EAAEC,GAAG,KAAK;EAC7E,MAAM;IAAEC,gBAAgB,GAAG,IAAI;IAAEC,eAAe,GAAG,IAAI;IAAE,GAAGC;EAAK,CAAC,GAAGJ,KAAK;EAC1E,oBACID,IAAA,CAACF,gBAAgB;IACbI,GAAG,EAAEA,GAAI;IACTC,gBAAgB,EAAEA,gBAAiB;IACnCC,eAAe,EAAEA,eAAgB;IAAA,GAC7BC;EAAI,CACX,CAAC;AAEV,CAAC,CAAC;AAEFR,WAAW,CAACS,WAAW,GAAG,aAAa;AAEvC,eAAeT,WAAW","ignoreList":[]}
@@ -1,292 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useRef, useEffect, useCallback, useMemo } from 'react';
4
- import { BackHandler, Platform, View, StyleSheet, Text } from 'react-native';
5
- import { useStore } from 'zustand';
6
- import { getScreenComponent, getSheetConfig, isValidRoute } from "../navigation/routes.js";
7
- import { useTheme } from '@oxyhq/bloom/theme';
8
- import { Dialog } from '@oxyhq/bloom/dialog';
9
- import BottomSheet from "./BottomSheet.js";
10
- import { bottomSheetStore, getState, showBottomSheet, closeBottomSheet, goBack, updateState } from "../navigation/bottomSheetManager.js";
11
-
12
- /** Error boundary to catch screen rendering failures (e.g. lazy require() throws) */
13
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
14
- class ScreenErrorBoundary extends React.Component {
15
- state = {
16
- error: null
17
- };
18
- static getDerivedStateFromError(error) {
19
- return {
20
- error
21
- };
22
- }
23
- componentDidCatch(error, info) {
24
- if (__DEV__) {
25
- console.error(`[BottomSheetRouter] Screen "${this.props.screenName}" crashed:`, error, info.componentStack);
26
- }
27
- }
28
- componentDidUpdate(prevProps) {
29
- if (prevProps.screenName !== this.props.screenName && this.state.error) {
30
- this.setState({
31
- error: null
32
- });
33
- }
34
- }
35
- render() {
36
- if (this.state.error) {
37
- return /*#__PURE__*/_jsxs(View, {
38
- style: errorStyles.container,
39
- children: [/*#__PURE__*/_jsx(Text, {
40
- style: errorStyles.title,
41
- children: "Something went wrong"
42
- }), __DEV__ && /*#__PURE__*/_jsx(Text, {
43
- style: errorStyles.message,
44
- children: this.state.error.message
45
- })]
46
- });
47
- }
48
- return this.props.children;
49
- }
50
- }
51
- const errorStyles = StyleSheet.create({
52
- container: {
53
- flex: 1,
54
- alignItems: 'center',
55
- justifyContent: 'center',
56
- padding: 24
57
- },
58
- title: {
59
- fontSize: 16,
60
- fontWeight: '600',
61
- marginBottom: 8
62
- },
63
- message: {
64
- fontSize: 13,
65
- textAlign: 'center'
66
- }
67
- });
68
-
69
- /**
70
- * Responsive placement for `presentation: 'dialog'` routes: a bottom-sheet on
71
- * narrow viewports, a centered card at `md+` (≥768dp). Module-scoped so the
72
- * object identity is stable across renders (Bloom's placement resolver memoizes
73
- * on it). PhotoPickerSection keys its center-vs-bottom layout off the SAME `md`
74
- * breakpoint — keep the two in sync if this map changes.
75
- */
76
- const DIALOG_PLACEMENT = {
77
- base: 'bottom',
78
- md: 'center'
79
- };
80
- /**
81
- * BottomSheetRouter - Navigation container for bottom sheet screens
82
- */
83
- const BottomSheetRouter = ({
84
- onScreenChange,
85
- onDismiss
86
- }) => {
87
- const sheetRef = useRef(null);
88
- const theme = useTheme();
89
- const prevScreenRef = useRef(null);
90
- const {
91
- currentScreen,
92
- screenProps,
93
- currentStep,
94
- isOpen
95
- } = useStore(bottomSheetStore);
96
- const ScreenComponent = useMemo(() => {
97
- if (!currentScreen) return null;
98
- const component = getScreenComponent(currentScreen);
99
- if (__DEV__ && !component) {
100
- console.error(`[BottomSheetRouter] getScreenComponent("${currentScreen}") returned undefined — the screen's lazy require() likely failed.`);
101
- }
102
- return component ?? null;
103
- }, [currentScreen]);
104
-
105
- // Route-level sheet config (which surface hosts the route, whether the sheet
106
- // provides its own ScrollView, etc.). Computed early so the visibility
107
- // effect can gate the in-tree sheet on the resolved presentation.
108
- const sheetConfig = useMemo(() => getSheetConfig(currentScreen, screenProps), [currentScreen, screenProps]);
109
- const isDialogPresentation = sheetConfig.presentation === 'dialog';
110
-
111
- // Notify screen changes
112
- useEffect(() => {
113
- if (prevScreenRef.current !== currentScreen) {
114
- onScreenChange?.(currentScreen);
115
- prevScreenRef.current = currentScreen;
116
- }
117
- }, [currentScreen, onScreenChange]);
118
-
119
- // Control visibility. The in-tree BottomSheet only ever presents for
120
- // 'sheet'-presentation routes — 'dialog' routes render in the Bloom
121
- // `<Dialog>` below, so the sheet stays dismissed for them (both surfaces
122
- // remain mounted, so the pick→crop dialog→sheet handoff has no unmount jank).
123
- useEffect(() => {
124
- if (!sheetRef.current) return;
125
- if (isOpen && !isDialogPresentation) {
126
- sheetRef.current.present();
127
- } else {
128
- sheetRef.current.dismiss();
129
- }
130
- }, [isOpen, isDialogPresentation]);
131
-
132
- // Android back button
133
- useEffect(() => {
134
- if (!isOpen) return;
135
- if (Platform.OS !== 'android') return;
136
- const handler = BackHandler.addEventListener('hardwareBackPress', () => {
137
- handleGoBack();
138
- return true;
139
- });
140
- return () => handler.remove();
141
- }, [isOpen]);
142
- const navigate = useCallback((screen, props) => {
143
- if (!isValidRoute(screen)) {
144
- if (__DEV__) console.warn(`[BottomSheetRouter] Invalid route: ${screen}`);
145
- return;
146
- }
147
- showBottomSheet({
148
- screen,
149
- props
150
- });
151
- }, []);
152
- const handleGoBack = useCallback(() => {
153
- const state = getState();
154
-
155
- // Try history first
156
- if (state.history.length > 0) {
157
- goBack();
158
- return true;
159
- }
160
-
161
- // Try step back
162
- const step = state.currentStep ?? 0;
163
- if (step > 0) {
164
- updateState({
165
- currentStep: step - 1,
166
- screenProps: {
167
- ...state.screenProps,
168
- initialStep: step - 1
169
- }
170
- });
171
- return true;
172
- }
173
-
174
- // Close
175
- closeBottomSheet();
176
- return true;
177
- }, []);
178
- const canDismiss = useCallback(() => {
179
- const state = getState();
180
- if (state.history.length > 0) return false;
181
- const step = state.currentStep ?? 0;
182
- return step <= 0;
183
- }, []);
184
- const handleDismissAttempt = useCallback(() => {
185
- if (!canDismiss()) {
186
- handleGoBack();
187
- return false;
188
- }
189
- return true;
190
- }, [canDismiss, handleGoBack]);
191
- const handleDismiss = useCallback(() => {
192
- closeBottomSheet();
193
- onDismiss?.();
194
- }, [onDismiss]);
195
- const handleStepChange = useCallback(step => {
196
- const state = getState();
197
- updateState({
198
- currentStep: step,
199
- screenProps: {
200
- ...state.screenProps,
201
- initialStep: step
202
- }
203
- });
204
- }, []);
205
- const scrollTo = useCallback((y, animated) => {
206
- sheetRef.current?.scrollTo(y, animated);
207
- }, []);
208
- const renderBackground = useCallback(props => /*#__PURE__*/_jsx(View, {
209
- style: [styles.background, {
210
- backgroundColor: theme.colors.background
211
- }, props.style]
212
- }), [theme.colors.background]);
213
- const screenPropsValue = useMemo(() => {
214
- const {
215
- initialStep: _,
216
- ...rest
217
- } = screenProps;
218
- return {
219
- navigate,
220
- goBack: handleGoBack,
221
- onClose: closeBottomSheet,
222
- onAuthenticated: closeBottomSheet,
223
- theme: theme.mode,
224
- currentScreen: currentScreen ?? undefined,
225
- initialStep: currentStep ?? screenProps?.initialStep,
226
- onStepChange: handleStepChange,
227
- scrollTo,
228
- ...rest
229
- };
230
- }, [navigate, handleGoBack, theme.mode, currentScreen, currentStep, screenProps, handleStepChange, scrollTo]);
231
-
232
- // The active screen, wrapped in its error boundary. Routed into EXACTLY ONE
233
- // surface (the in-tree sheet OR the Dialog) based on the resolved
234
- // presentation, so it never double-mounts.
235
- const screenNode = ScreenComponent && currentScreen ? /*#__PURE__*/_jsx(ScreenErrorBoundary, {
236
- screenName: currentScreen,
237
- children: /*#__PURE__*/_jsx(ScreenComponent, {
238
- ...screenPropsValue
239
- })
240
- }) : null;
241
- return /*#__PURE__*/_jsxs(_Fragment, {
242
- children: [/*#__PURE__*/_jsx(BottomSheet, {
243
- ref: sheetRef,
244
- enablePanDownToClose: true,
245
- enableHandlePanningGesture: true,
246
- backgroundComponent: renderBackground,
247
- style: styles.container,
248
- onDismiss: handleDismiss,
249
- onDismissAttempt: handleDismissAttempt,
250
- scrollable: sheetConfig.scrollable,
251
- manualActivation: sheetConfig.manualActivation,
252
- dynamicBackdrop: sheetConfig.dynamicBackdrop,
253
- handleComponent: sheetConfig.handleComponent,
254
- children: !isDialogPresentation && screenNode
255
- }), /*#__PURE__*/_jsx(Dialog, {
256
- open: isOpen && isDialogPresentation,
257
- onClose: handleDismiss,
258
- placement: DIALOG_PLACEMENT,
259
- dismissOnBackdrop: false,
260
- contentPadding: 0,
261
- maxWidth: 640,
262
- maxHeightRatio: 0.9,
263
- style: styles.dialogSurface,
264
- panelStyle: styles.dialogSurface,
265
- label: currentScreen ?? undefined,
266
- children: isDialogPresentation ? screenNode : null
267
- })]
268
- });
269
- };
270
- const styles = StyleSheet.create({
271
- container: {
272
- maxWidth: 800,
273
- width: '100%',
274
- alignSelf: 'center',
275
- marginHorizontal: 'auto'
276
- },
277
- background: {
278
- borderTopLeftRadius: 20,
279
- borderTopRightRadius: 20,
280
- overflow: 'hidden'
281
- },
282
- // Full-bleed black surface for `presentation: 'dialog'` routes. `overflow:
283
- // 'hidden'` clips the picker's edge-to-edge black content to the panel's
284
- // rounded corners (Dialog supplies the radius per placement); the black
285
- // fill covers any sub-pixel gap behind the picker during entrance.
286
- dialogSurface: {
287
- backgroundColor: '#000000',
288
- overflow: 'hidden'
289
- }
290
- });
291
- export default /*#__PURE__*/React.memo(BottomSheetRouter);
292
- //# sourceMappingURL=BottomSheetRouter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useRef","useEffect","useCallback","useMemo","BackHandler","Platform","View","StyleSheet","Text","useStore","getScreenComponent","getSheetConfig","isValidRoute","useTheme","Dialog","BottomSheet","bottomSheetStore","getState","showBottomSheet","closeBottomSheet","goBack","updateState","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ScreenErrorBoundary","Component","state","error","getDerivedStateFromError","componentDidCatch","info","__DEV__","console","props","screenName","componentStack","componentDidUpdate","prevProps","setState","render","style","errorStyles","container","children","title","message","create","flex","alignItems","justifyContent","padding","fontSize","fontWeight","marginBottom","textAlign","DIALOG_PLACEMENT","base","md","BottomSheetRouter","onScreenChange","onDismiss","sheetRef","theme","prevScreenRef","currentScreen","screenProps","currentStep","isOpen","ScreenComponent","component","sheetConfig","isDialogPresentation","presentation","current","present","dismiss","OS","handler","addEventListener","handleGoBack","remove","navigate","screen","warn","history","length","step","initialStep","canDismiss","handleDismissAttempt","handleDismiss","handleStepChange","scrollTo","y","animated","renderBackground","styles","background","backgroundColor","colors","screenPropsValue","_","rest","onClose","onAuthenticated","mode","undefined","onStepChange","screenNode","ref","enablePanDownToClose","enableHandlePanningGesture","backgroundComponent","onDismissAttempt","scrollable","manualActivation","dynamicBackdrop","handleComponent","open","placement","dismissOnBackdrop","contentPadding","maxWidth","maxHeightRatio","dialogSurface","panelStyle","label","width","alignSelf","marginHorizontal","borderTopLeftRadius","borderTopRightRadius","overflow","memo"],"sourceRoot":"../../../../src","sources":["ui/components/BottomSheetRouter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,SAAS,EAAEC,WAAW,EAAEC,OAAO,QAAwB,OAAO;AACtF,SAASC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAwC,cAAc;AAC5G,SAASC,QAAQ,QAAQ,SAAS;AAElC,SAASC,kBAAkB,EAAEC,cAAc,EAAEC,YAAY,QAAQ,yBAAsB;AAEvF,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,OAAOC,WAAW,MAA+B,kBAAe;AAChE,SACIC,gBAAgB,EAChBC,QAAQ,EACRC,eAAe,EACfC,gBAAgB,EAChBC,MAAM,EACNC,WAAW,QACR,qCAAkC;;AAEzC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAKA,MAAMC,mBAAmB,SAAS7B,KAAK,CAAC8B,SAAS,CAG/C;EACEC,KAAK,GAA6B;IAAEC,KAAK,EAAE;EAAK,CAAC;EAEjD,OAAOC,wBAAwBA,CAACD,KAAY,EAA4B;IACpE,OAAO;MAAEA;IAAM,CAAC;EACpB;EAEAE,iBAAiBA,CAACF,KAAY,EAAEG,IAAe,EAAQ;IACnD,IAAIC,OAAO,EAAE;MACTC,OAAO,CAACL,KAAK,CACT,+BAA+B,IAAI,CAACM,KAAK,CAACC,UAAU,YAAY,EAChEP,KAAK,EACLG,IAAI,CAACK,cACT,CAAC;IACL;EACJ;EAEAC,kBAAkBA,CAACC,SAAiC,EAAQ;IACxD,IAAIA,SAAS,CAACH,UAAU,KAAK,IAAI,CAACD,KAAK,CAACC,UAAU,IAAI,IAAI,CAACR,KAAK,CAACC,KAAK,EAAE;MACpE,IAAI,CAACW,QAAQ,CAAC;QAAEX,KAA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