@oxyhq/services 15.0.0 → 17.0.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 (280) hide show
  1. package/lib/commonjs/index.js +25 -55
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/ui/client.js +0 -14
  4. package/lib/commonjs/ui/client.js.map +1 -1
  5. package/lib/commonjs/ui/components/OxyAccountDialog.js +764 -0
  6. package/lib/commonjs/ui/components/OxyAccountDialog.js.map +1 -0
  7. package/lib/commonjs/ui/components/OxyProvider.js +11 -6
  8. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  9. package/lib/commonjs/ui/components/OxySignInButton.js +10 -21
  10. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  11. package/lib/commonjs/ui/components/ProfileButton.js +25 -112
  12. package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
  13. package/lib/commonjs/ui/components/RequireOxyAuth.js +299 -0
  14. package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -0
  15. package/lib/commonjs/ui/context/OxyContext.js +106 -2
  16. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  17. package/lib/commonjs/ui/hooks/mutations/mutationKeys.js +1 -1
  18. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +10 -10
  19. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  20. package/lib/commonjs/ui/hooks/queries/queryKeys.js +1 -1
  21. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +7 -8
  22. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  23. package/lib/commonjs/ui/hooks/useAuth.js +19 -30
  24. package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
  25. package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +37 -267
  26. package/lib/commonjs/ui/hooks/useSwitchableAccounts.js.map +1 -1
  27. package/lib/commonjs/ui/index.js +5 -40
  28. package/lib/commonjs/ui/index.js.map +1 -1
  29. package/lib/commonjs/ui/navigation/accountDialogManager.js +91 -0
  30. package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -0
  31. package/lib/commonjs/ui/navigation/routes.js +0 -2
  32. package/lib/commonjs/ui/navigation/routes.js.map +1 -1
  33. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +17 -18
  34. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  35. package/lib/commonjs/ui/screens/ManageAccountScreen.js +4 -3
  36. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  37. package/lib/commonjs/ui/session/createSessionClient.js +10 -2
  38. package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
  39. package/lib/module/index.js +20 -17
  40. package/lib/module/index.js.map +1 -1
  41. package/lib/module/ui/client.js +1 -2
  42. package/lib/module/ui/client.js.map +1 -1
  43. package/lib/module/ui/components/OxyAccountDialog.js +761 -0
  44. package/lib/module/ui/components/OxyAccountDialog.js.map +1 -0
  45. package/lib/module/ui/components/OxyProvider.js +11 -6
  46. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  47. package/lib/module/ui/components/OxySignInButton.js +10 -21
  48. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  49. package/lib/module/ui/components/ProfileButton.js +26 -112
  50. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  51. package/lib/module/ui/components/RequireOxyAuth.js +294 -0
  52. package/lib/module/ui/components/RequireOxyAuth.js.map +1 -0
  53. package/lib/module/ui/context/OxyContext.js +107 -3
  54. package/lib/module/ui/context/OxyContext.js.map +1 -1
  55. package/lib/module/ui/hooks/mutations/mutationKeys.js +1 -1
  56. package/lib/module/ui/hooks/mutations/useAccountMutations.js +8 -8
  57. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  58. package/lib/module/ui/hooks/queries/queryKeys.js +1 -1
  59. package/lib/module/ui/hooks/queries/useAccountQueries.js +5 -6
  60. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  61. package/lib/module/ui/hooks/useAuth.js +19 -30
  62. package/lib/module/ui/hooks/useAuth.js.map +1 -1
  63. package/lib/module/ui/hooks/useSwitchableAccounts.js +38 -267
  64. package/lib/module/ui/hooks/useSwitchableAccounts.js.map +1 -1
  65. package/lib/module/ui/index.js +1 -5
  66. package/lib/module/ui/index.js.map +1 -1
  67. package/lib/module/ui/navigation/accountDialogManager.js +81 -0
  68. package/lib/module/ui/navigation/accountDialogManager.js.map +1 -0
  69. package/lib/module/ui/navigation/routes.js +0 -2
  70. package/lib/module/ui/navigation/routes.js.map +1 -1
  71. package/lib/module/ui/screens/ConnectedAppsScreen.js +19 -20
  72. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  73. package/lib/module/ui/screens/ManageAccountScreen.js +4 -3
  74. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  75. package/lib/module/ui/session/createSessionClient.js +10 -2
  76. package/lib/module/ui/session/createSessionClient.js.map +1 -1
  77. package/lib/typescript/commonjs/index.d.ts +6 -13
  78. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  79. package/lib/typescript/commonjs/ui/client.d.ts +0 -4
  80. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  81. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +35 -0
  82. package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +1 -0
  83. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +2 -2
  84. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
  86. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +11 -23
  87. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +55 -0
  89. package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -0
  90. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +13 -1
  91. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +4 -4
  93. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +6 -7
  95. package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +13 -152
  98. package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/ui/index.d.ts +2 -5
  100. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +49 -0
  102. package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -0
  103. package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
  104. package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +1 -1
  107. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  108. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +9 -2
  109. package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
  110. package/lib/typescript/commonjs/ui/types/navigation.d.ts +9 -0
  111. package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
  112. package/lib/typescript/commonjs/ui/utils/storageHelpers.d.ts +7 -7
  113. package/lib/typescript/module/index.d.ts +6 -13
  114. package/lib/typescript/module/index.d.ts.map +1 -1
  115. package/lib/typescript/module/ui/client.d.ts +0 -4
  116. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  117. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +35 -0
  118. package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +1 -0
  119. package/lib/typescript/module/ui/components/OxyProvider.d.ts +2 -2
  120. package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
  121. package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
  122. package/lib/typescript/module/ui/components/ProfileButton.d.ts +11 -23
  123. package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
  124. package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +55 -0
  125. package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -0
  126. package/lib/typescript/module/ui/context/OxyContext.d.ts +13 -1
  127. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  128. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +4 -4
  129. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  130. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +6 -7
  131. package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
  132. package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
  133. package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +13 -152
  134. package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts.map +1 -1
  135. package/lib/typescript/module/ui/index.d.ts +2 -5
  136. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  137. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +49 -0
  138. package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -0
  139. package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
  140. package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
  141. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  142. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +1 -1
  143. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  144. package/lib/typescript/module/ui/session/createSessionClient.d.ts +9 -2
  145. package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
  146. package/lib/typescript/module/ui/types/navigation.d.ts +9 -0
  147. package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
  148. package/lib/typescript/module/ui/utils/storageHelpers.d.ts +7 -7
  149. package/package.json +4 -4
  150. package/src/index.ts +23 -28
  151. package/src/ui/client.ts +0 -4
  152. package/src/ui/components/OxyAccountDialog.tsx +760 -0
  153. package/src/ui/components/OxyProvider.tsx +12 -6
  154. package/src/ui/components/OxySignInButton.tsx +10 -21
  155. package/src/ui/components/ProfileButton.tsx +23 -126
  156. package/src/ui/components/RequireOxyAuth.tsx +266 -0
  157. package/src/ui/context/OxyContext.tsx +146 -7
  158. package/src/ui/hooks/mutations/mutationKeys.ts +1 -1
  159. package/src/ui/hooks/mutations/useAccountMutations.ts +8 -8
  160. package/src/ui/hooks/queries/queryKeys.ts +1 -1
  161. package/src/ui/hooks/queries/useAccountQueries.ts +8 -9
  162. package/src/ui/hooks/useAuth.ts +19 -31
  163. package/src/ui/hooks/useSwitchableAccounts.ts +42 -376
  164. package/src/ui/index.ts +2 -5
  165. package/src/ui/navigation/accountDialogManager.ts +84 -0
  166. package/src/ui/navigation/routes.ts +1 -5
  167. package/src/ui/screens/ConnectedAppsScreen.tsx +23 -24
  168. package/src/ui/screens/ManageAccountScreen.tsx +3 -2
  169. package/src/ui/session/createSessionClient.ts +9 -1
  170. package/src/ui/types/navigation.ts +9 -0
  171. package/src/ui/utils/storageHelpers.ts +7 -7
  172. package/lib/commonjs/ui/components/AccountMenu.js +0 -598
  173. package/lib/commonjs/ui/components/AccountMenu.js.map +0 -1
  174. package/lib/commonjs/ui/components/AccountMenuButton.js +0 -135
  175. package/lib/commonjs/ui/components/AccountMenuButton.js.map +0 -1
  176. package/lib/commonjs/ui/components/AccountSwitcher.js +0 -780
  177. package/lib/commonjs/ui/components/AccountSwitcher.js.map +0 -1
  178. package/lib/commonjs/ui/components/AnotherDeviceQR.js +0 -116
  179. package/lib/commonjs/ui/components/AnotherDeviceQR.js.map +0 -1
  180. package/lib/commonjs/ui/components/ProfileMenu.js +0 -518
  181. package/lib/commonjs/ui/components/ProfileMenu.js.map +0 -1
  182. package/lib/commonjs/ui/components/SignInAccountChooser.js +0 -189
  183. package/lib/commonjs/ui/components/SignInAccountChooser.js.map +0 -1
  184. package/lib/commonjs/ui/components/SignInModal.js +0 -600
  185. package/lib/commonjs/ui/components/SignInModal.js.map +0 -1
  186. package/lib/commonjs/ui/hooks/useOxyAuthSession.js +0 -501
  187. package/lib/commonjs/ui/hooks/useOxyAuthSession.js.map +0 -1
  188. package/lib/commonjs/ui/hooks/usePasswordSignIn.js +0 -170
  189. package/lib/commonjs/ui/hooks/usePasswordSignIn.js.map +0 -1
  190. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -51
  191. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
  192. package/lib/commonjs/ui/screens/OxyAuthScreen.js +0 -312
  193. package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +0 -1
  194. package/lib/commonjs/utils/deviceFlowSignIn.js +0 -109
  195. package/lib/commonjs/utils/deviceFlowSignIn.js.map +0 -1
  196. package/lib/module/ui/components/AccountMenu.js +0 -593
  197. package/lib/module/ui/components/AccountMenu.js.map +0 -1
  198. package/lib/module/ui/components/AccountMenuButton.js +0 -130
  199. package/lib/module/ui/components/AccountMenuButton.js.map +0 -1
  200. package/lib/module/ui/components/AccountSwitcher.js +0 -774
  201. package/lib/module/ui/components/AccountSwitcher.js.map +0 -1
  202. package/lib/module/ui/components/AnotherDeviceQR.js +0 -110
  203. package/lib/module/ui/components/AnotherDeviceQR.js.map +0 -1
  204. package/lib/module/ui/components/ProfileMenu.js +0 -514
  205. package/lib/module/ui/components/ProfileMenu.js.map +0 -1
  206. package/lib/module/ui/components/SignInAccountChooser.js +0 -183
  207. package/lib/module/ui/components/SignInAccountChooser.js.map +0 -1
  208. package/lib/module/ui/components/SignInModal.js +0 -591
  209. package/lib/module/ui/components/SignInModal.js.map +0 -1
  210. package/lib/module/ui/hooks/useOxyAuthSession.js +0 -495
  211. package/lib/module/ui/hooks/useOxyAuthSession.js.map +0 -1
  212. package/lib/module/ui/hooks/usePasswordSignIn.js +0 -165
  213. package/lib/module/ui/hooks/usePasswordSignIn.js.map +0 -1
  214. package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -48
  215. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
  216. package/lib/module/ui/screens/OxyAuthScreen.js +0 -306
  217. package/lib/module/ui/screens/OxyAuthScreen.js.map +0 -1
  218. package/lib/module/utils/deviceFlowSignIn.js +0 -106
  219. package/lib/module/utils/deviceFlowSignIn.js.map +0 -1
  220. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +0 -47
  221. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +0 -1
  222. package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts +0 -26
  223. package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts.map +0 -1
  224. package/lib/typescript/commonjs/ui/components/AccountSwitcher.d.ts +0 -46
  225. package/lib/typescript/commonjs/ui/components/AccountSwitcher.d.ts.map +0 -1
  226. package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts +0 -34
  227. package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts.map +0 -1
  228. package/lib/typescript/commonjs/ui/components/ProfileMenu.d.ts +0 -49
  229. package/lib/typescript/commonjs/ui/components/ProfileMenu.d.ts.map +0 -1
  230. package/lib/typescript/commonjs/ui/components/SignInAccountChooser.d.ts +0 -29
  231. package/lib/typescript/commonjs/ui/components/SignInAccountChooser.d.ts.map +0 -1
  232. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts +0 -28
  233. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +0 -1
  234. package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts +0 -105
  235. package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts.map +0 -1
  236. package/lib/typescript/commonjs/ui/hooks/usePasswordSignIn.d.ts +0 -31
  237. package/lib/typescript/commonjs/ui/hooks/usePasswordSignIn.d.ts.map +0 -1
  238. package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts +0 -11
  239. package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
  240. package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts +0 -22
  241. package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +0 -1
  242. package/lib/typescript/commonjs/utils/deviceFlowSignIn.d.ts +0 -97
  243. package/lib/typescript/commonjs/utils/deviceFlowSignIn.d.ts.map +0 -1
  244. package/lib/typescript/module/ui/components/AccountMenu.d.ts +0 -47
  245. package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +0 -1
  246. package/lib/typescript/module/ui/components/AccountMenuButton.d.ts +0 -26
  247. package/lib/typescript/module/ui/components/AccountMenuButton.d.ts.map +0 -1
  248. package/lib/typescript/module/ui/components/AccountSwitcher.d.ts +0 -46
  249. package/lib/typescript/module/ui/components/AccountSwitcher.d.ts.map +0 -1
  250. package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts +0 -34
  251. package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts.map +0 -1
  252. package/lib/typescript/module/ui/components/ProfileMenu.d.ts +0 -49
  253. package/lib/typescript/module/ui/components/ProfileMenu.d.ts.map +0 -1
  254. package/lib/typescript/module/ui/components/SignInAccountChooser.d.ts +0 -29
  255. package/lib/typescript/module/ui/components/SignInAccountChooser.d.ts.map +0 -1
  256. package/lib/typescript/module/ui/components/SignInModal.d.ts +0 -28
  257. package/lib/typescript/module/ui/components/SignInModal.d.ts.map +0 -1
  258. package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts +0 -105
  259. package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts.map +0 -1
  260. package/lib/typescript/module/ui/hooks/usePasswordSignIn.d.ts +0 -31
  261. package/lib/typescript/module/ui/hooks/usePasswordSignIn.d.ts.map +0 -1
  262. package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts +0 -11
  263. package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
  264. package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts +0 -22
  265. package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +0 -1
  266. package/lib/typescript/module/utils/deviceFlowSignIn.d.ts +0 -97
  267. package/lib/typescript/module/utils/deviceFlowSignIn.d.ts.map +0 -1
  268. package/src/ui/components/AccountMenu.tsx +0 -645
  269. package/src/ui/components/AccountMenuButton.tsx +0 -126
  270. package/src/ui/components/AccountSwitcher.tsx +0 -751
  271. package/src/ui/components/AnotherDeviceQR.tsx +0 -119
  272. package/src/ui/components/ProfileMenu.tsx +0 -564
  273. package/src/ui/components/SignInAccountChooser.tsx +0 -162
  274. package/src/ui/components/SignInModal.tsx +0 -530
  275. package/src/ui/hooks/useOxyAuthSession.ts +0 -635
  276. package/src/ui/hooks/usePasswordSignIn.ts +0 -207
  277. package/src/ui/screens/AccountSwitcherScreen.tsx +0 -43
  278. package/src/ui/screens/OxyAuthScreen.tsx +0 -324
  279. package/src/utils/__tests__/deviceFlowSignIn.test.ts +0 -231
  280. package/src/utils/deviceFlowSignIn.ts +0 -152
@@ -1,514 +0,0 @@
1
- "use strict";
2
-
3
- import { useCallback, useEffect, useMemo, useState } from 'react';
4
- import { View, Pressable, Modal, ScrollView, ActivityIndicator, Platform, StyleSheet } from 'react-native';
5
- import { MaterialCommunityIcons } from '@expo/vector-icons';
6
- import { Avatar } from '@oxyhq/bloom/avatar';
7
- import { Text } from '@oxyhq/bloom/typography';
8
- import { useTheme } from '@oxyhq/bloom/theme';
9
- import { toast, useDialogControl, Dialog } from '@oxyhq/bloom';
10
- import { Divider } from '@oxyhq/bloom/divider';
11
- import { isDev, logger as loggerUtil } from '@oxyhq/core';
12
- import { useOxy } from "../context/OxyContext.js";
13
- import { useI18n } from "../hooks/useI18n.js";
14
- import { useSwitchableAccounts } from "../hooks/useSwitchableAccounts.js";
15
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
- const isWeb = Platform.OS === 'web';
17
-
18
- /** Fixed popover width on web. `ProfileButton` mirrors this when anchoring. */
19
- const MENU_WIDTH = 300;
20
-
21
- /**
22
- * Web-only anchor. `ProfileButton` measures its trigger and anchors the panel to
23
- * one corner so the menu opens either UPWARD (footer trigger) or DOWNWARD (a
24
- * trigger at the top of a sidebar). Exactly ONE vertical edge is pinned:
25
- * - `bottom` set → the panel's BOTTOM edge is anchored, so it opens UPWARD.
26
- * - `top` set → the panel's TOP edge is anchored, so it opens DOWNWARD.
27
- * Native ignores the anchor and docks the panel to the bottom as a sheet.
28
- */
29
-
30
- /**
31
- * Clean account switcher, written with react-native `StyleSheet` + Bloom
32
- * theme colors (the package convention — no NativeWind, which is only an
33
- * optional peer and absent in the primary `accounts` consumer). Lists EVERY
34
- * switchable account from {@link useSwitchableAccounts}
35
- * — device sign-ins AND linked graph accounts (owned orgs + shared-with-you) —
36
- * and routes EVERY switch through the context's single
37
- * `switchToAccount(accountId)` dispatcher (there is no separate device-only
38
- * path). Each on-device inactive row carries a per-account sign-out icon;
39
- * graph-only rows carry a role badge and indent under their parent. Below the
40
- * list: Add account, Manage account, optional View profile, and Sign out of all.
41
- *
42
- * Renders as an upward-opening popover anchored to the trigger on web, and a
43
- * bottom-sheet style modal on native.
44
- */
45
- const ProfileMenu = ({
46
- open,
47
- onClose,
48
- anchor,
49
- onNavigateManage,
50
- onAddAccount,
51
- onNavigateProfile,
52
- onBeforeSessionChange
53
- }) => {
54
- const {
55
- switchToAccount,
56
- logoutAll,
57
- removeSession
58
- } = useOxy();
59
- const {
60
- t
61
- } = useI18n();
62
- const {
63
- colors
64
- } = useTheme();
65
- const {
66
- accounts
67
- } = useSwitchableAccounts();
68
- const [busyAccountId, setBusyAccountId] = useState(null);
69
- const [removingSessionId, setRemovingSessionId] = useState(null);
70
- const [signingOutAll, setSigningOutAll] = useState(false);
71
- const signOutAllDialog = useDialogControl();
72
- const isSwitching = busyAccountId !== null;
73
- const actionDisabled = isSwitching || removingSessionId !== null || signingOutAll;
74
-
75
- // Account ids currently in the list — used to decide whether a graph-only
76
- // row is a CHILD (its parent is also shown) so it can be indented.
77
- const listedAccountIds = useMemo(() => new Set(accounts.map(account => account.accountId)), [accounts]);
78
-
79
- // The ONE uniform switch path: every row (device or linked) routes through
80
- // `switchToAccount(accountId)`. It reuses the device session when the account
81
- // is already signed in here, and mints one only on first entry.
82
- const handleSwitch = useCallback(async account => {
83
- if (account.isCurrent || busyAccountId) {
84
- return;
85
- }
86
- setBusyAccountId(account.accountId);
87
- try {
88
- await onBeforeSessionChange?.();
89
- await switchToAccount(account.accountId);
90
- toast.success(t('accountSwitcher.toasts.switchSuccess') || 'Switched account');
91
- onClose();
92
- } catch (error) {
93
- if (!isDev()) {
94
- loggerUtil.warn('Switch account failed', {
95
- component: 'ProfileMenu'
96
- }, error);
97
- }
98
- toast.error(t('accountSwitcher.toasts.switchFailed') || 'Failed to switch account');
99
- } finally {
100
- setBusyAccountId(null);
101
- }
102
- }, [busyAccountId, switchToAccount, t, onClose, onBeforeSessionChange]);
103
-
104
- // Sign out a specific inactive account without switching/clearing the active
105
- // one. The menu stays open so the user can keep managing accounts.
106
- const handleRemove = useCallback(async sessionId => {
107
- if (removingSessionId) {
108
- return;
109
- }
110
- setRemovingSessionId(sessionId);
111
- try {
112
- await removeSession(sessionId);
113
- toast.success(t('common.actions.signedOut') || 'Signed out');
114
- } catch (error) {
115
- loggerUtil.warn('Remove account failed', {
116
- component: 'ProfileMenu'
117
- }, error);
118
- toast.error(t('common.errors.signOutFailed') || 'Failed to sign out');
119
- } finally {
120
- setRemovingSessionId(null);
121
- }
122
- }, [removingSessionId, removeSession, t]);
123
- const performSignOutAll = useCallback(async () => {
124
- if (signingOutAll) {
125
- return;
126
- }
127
- setSigningOutAll(true);
128
- try {
129
- await onBeforeSessionChange?.();
130
- await logoutAll();
131
- toast.success(t('accountSwitcher.toasts.signOutAllSuccess') || 'Signed out of all accounts');
132
- onClose();
133
- } catch (error) {
134
- loggerUtil.warn('Sign out all failed', {
135
- component: 'ProfileMenu'
136
- }, error);
137
- toast.error(t('common.errors.signOutAllFailed') || 'Failed to sign out of all accounts');
138
- } finally {
139
- setSigningOutAll(false);
140
- }
141
- }, [signingOutAll, logoutAll, t, onClose, onBeforeSessionChange]);
142
-
143
- // Escape-to-close (web only).
144
- useEffect(() => {
145
- if (!open || !isWeb || typeof document === 'undefined') {
146
- return undefined;
147
- }
148
- const onKey = event => {
149
- if (event.key === 'Escape') {
150
- event.stopPropagation();
151
- onClose();
152
- }
153
- };
154
- document.addEventListener('keydown', onKey, true);
155
- return () => document.removeEventListener('keydown', onKey, true);
156
- }, [open, onClose]);
157
- if (!open) {
158
- return null;
159
- }
160
-
161
- // Web: anchor the panel to the measured trigger. When the anchor pins `top`
162
- // the panel opens DOWNWARD from the trigger; otherwise it pins `bottom` and
163
- // opens UPWARD (the default footer behavior). With no anchor captured, fall
164
- // back to a bottom-left placement. Native ignores this (the panel docks to
165
- // the bottom via the overlay's flex-end).
166
- const panelAnchorStyle = isWeb ? {
167
- position: 'absolute',
168
- width: MENU_WIDTH,
169
- left: anchor?.left ?? 8,
170
- ...(typeof anchor?.top === 'number' ? {
171
- top: anchor.top
172
- } : {
173
- bottom: anchor?.bottom ?? 8
174
- })
175
- } : undefined;
176
- const content = /*#__PURE__*/_jsx(Pressable
177
- // Swallow taps inside the panel so they never reach the overlay's
178
- // outside-tap-to-close handler.
179
- , {
180
- onPress: () => undefined,
181
- style: [isWeb ? styles.panelWeb : styles.panelNative, {
182
- backgroundColor: colors.background
183
- }, isWeb ? {
184
- borderColor: colors.border
185
- } : null, panelAnchorStyle, styles.panelBounds, styles.shadow],
186
- accessibilityRole: "menu",
187
- accessibilityLabel: t('accountMenu.label') || 'Account menu',
188
- children: /*#__PURE__*/_jsxs(ScrollView, {
189
- style: styles.scroll,
190
- contentContainerStyle: styles.scrollContent,
191
- showsVerticalScrollIndicator: false,
192
- children: [accounts.map(account => {
193
- const isActive = account.isCurrent;
194
- const isBusy = busyAccountId === account.accountId;
195
- const sessionId = account.sessionId;
196
- const isRemoving = sessionId ? removingSessionId === sessionId : false;
197
- const isChild = Boolean(account.parentAccountId && listedAccountIds.has(account.parentAccountId));
198
- const role = account.callerMembership?.role;
199
- return /*#__PURE__*/_jsxs(Pressable, {
200
- accessibilityRole: "menuitem",
201
- accessibilityLabel: account.displayName,
202
- accessibilityState: {
203
- selected: isActive
204
- },
205
- onPress: () => handleSwitch(account),
206
- disabled: isActive || isBusy || isSwitching,
207
- style: [styles.accountRow, isChild && styles.childRow, isActive && {
208
- backgroundColor: colors.backgroundSecondary
209
- }, isSwitching && !isActive && styles.rowDimmed],
210
- children: [/*#__PURE__*/_jsx(Avatar, {
211
- source: account.user.avatar ?? undefined,
212
- uri: account.avatarUrl,
213
- variant: "thumb",
214
- name: account.displayName,
215
- size: isActive ? 40 : isChild ? 28 : 32
216
- }), /*#__PURE__*/_jsxs(View, {
217
- style: styles.accountInfo,
218
- children: [/*#__PURE__*/_jsxs(View, {
219
- style: styles.nameRow,
220
- children: [/*#__PURE__*/_jsx(Text, {
221
- style: [styles.accountName, {
222
- color: colors.text
223
- }, isActive && styles.accountNameActive],
224
- numberOfLines: 1,
225
- children: account.displayName
226
- }), role ? /*#__PURE__*/_jsx(View, {
227
- style: [styles.roleBadge, {
228
- backgroundColor: colors.card
229
- }],
230
- children: /*#__PURE__*/_jsx(Text, {
231
- style: [styles.roleBadgeText, {
232
- color: colors.textSecondary
233
- }],
234
- children: t(`accounts.roles.${role}.label`) || role
235
- })
236
- }) : null]
237
- }), account.email ? /*#__PURE__*/_jsx(Text, {
238
- style: [styles.accountEmail, {
239
- color: colors.textSecondary
240
- }],
241
- numberOfLines: 1,
242
- children: account.email
243
- }) : null]
244
- }), isBusy ? /*#__PURE__*/_jsx(ActivityIndicator, {
245
- color: colors.primary,
246
- size: "small"
247
- }) : isActive ? /*#__PURE__*/_jsx(MaterialCommunityIcons, {
248
- name: "check",
249
- size: 20,
250
- color: colors.primary
251
- }) : isRemoving ? /*#__PURE__*/_jsx(ActivityIndicator, {
252
- color: colors.textSecondary,
253
- size: "small"
254
- }) : sessionId ? /*#__PURE__*/_jsx(Pressable, {
255
- accessibilityRole: "button",
256
- accessibilityLabel: t('accountMenu.signOutAccount', {
257
- name: account.displayName
258
- }) || `Sign out ${account.displayName}`,
259
- onPress: () => handleRemove(sessionId),
260
- disabled: actionDisabled,
261
- hitSlop: {
262
- top: 8,
263
- bottom: 8,
264
- left: 8,
265
- right: 8
266
- },
267
- style: styles.rowSignOutButton,
268
- children: /*#__PURE__*/_jsx(MaterialCommunityIcons, {
269
- name: "logout",
270
- size: 18,
271
- color: colors.textSecondary
272
- })
273
- }) : null]
274
- }, `account-${account.accountId}`);
275
- }), isSwitching ? /*#__PURE__*/_jsxs(View, {
276
- style: styles.switchingRow,
277
- children: [/*#__PURE__*/_jsx(ActivityIndicator, {
278
- color: colors.textSecondary,
279
- size: "small"
280
- }), /*#__PURE__*/_jsx(Text, {
281
- style: [styles.switchingText, {
282
- color: colors.textSecondary
283
- }],
284
- children: t('accountMenu.switching') || 'Switching account…'
285
- })]
286
- }) : null, /*#__PURE__*/_jsx(Divider, {
287
- color: colors.border,
288
- spacing: 4
289
- }), /*#__PURE__*/_jsx(ActionRow, {
290
- icon: "account-plus-outline",
291
- iconColor: colors.icon,
292
- textColor: colors.text,
293
- label: t('accountMenu.addAnother') || 'Add another account',
294
- disabled: actionDisabled,
295
- onPress: () => {
296
- onClose();
297
- onAddAccount();
298
- }
299
- }), /*#__PURE__*/_jsx(ActionRow, {
300
- icon: "cog-outline",
301
- iconColor: colors.icon,
302
- textColor: colors.text,
303
- label: t('accountMenu.manage') || 'Manage your Oxy Account',
304
- disabled: actionDisabled,
305
- onPress: () => {
306
- onClose();
307
- onNavigateManage();
308
- }
309
- }), onNavigateProfile ? /*#__PURE__*/_jsx(ActionRow, {
310
- icon: "account-outline",
311
- iconColor: colors.icon,
312
- textColor: colors.text,
313
- label: t('accountMenu.viewProfile') || 'View profile',
314
- disabled: actionDisabled,
315
- onPress: () => {
316
- onClose();
317
- onNavigateProfile();
318
- }
319
- }) : null, /*#__PURE__*/_jsx(Divider, {
320
- color: colors.border,
321
- spacing: 4
322
- }), /*#__PURE__*/_jsxs(Pressable, {
323
- accessibilityRole: "menuitem",
324
- accessibilityLabel: t('accountMenu.signOutAll') || 'Sign out of all accounts',
325
- onPress: () => signOutAllDialog.open(),
326
- disabled: actionDisabled,
327
- style: [styles.actionRow, actionDisabled && styles.rowDimmed],
328
- children: [signingOutAll ? /*#__PURE__*/_jsx(ActivityIndicator, {
329
- color: colors.error,
330
- size: "small"
331
- }) : /*#__PURE__*/_jsx(MaterialCommunityIcons, {
332
- name: "logout",
333
- size: 18,
334
- color: colors.error
335
- }), /*#__PURE__*/_jsx(Text, {
336
- style: [styles.actionText, {
337
- color: colors.error
338
- }],
339
- children: t('accountMenu.signOutAll') || 'Sign out of all accounts'
340
- })]
341
- })]
342
- })
343
- });
344
- return /*#__PURE__*/_jsxs(Modal, {
345
- visible: open,
346
- transparent: true,
347
- animationType: isWeb ? 'fade' : 'slide',
348
- onRequestClose: onClose,
349
- children: [/*#__PURE__*/_jsx(Pressable, {
350
- accessibilityRole: "button",
351
- accessibilityLabel: t('common.actions.close') || 'Close',
352
- onPress: onClose,
353
- style: isWeb ? styles.webOverlay : styles.nativeOverlay,
354
- children: content
355
- }), /*#__PURE__*/_jsx(Dialog, {
356
- control: signOutAllDialog,
357
- title: t('accountMenu.signOutAll') || 'Sign out of all accounts',
358
- description: t('common.confirms.signOutAll') || 'Are you sure you want to sign out of all accounts?',
359
- actions: [{
360
- label: t('accountMenu.signOutAll') || 'Sign out of all accounts',
361
- color: 'destructive',
362
- onPress: performSignOutAll
363
- }, {
364
- label: t('common.cancel') || 'Cancel',
365
- color: 'cancel'
366
- }]
367
- })]
368
- });
369
- };
370
-
371
- /** Bottom-section action row (Add account / Manage / View profile). */
372
- const ActionRow = ({
373
- icon,
374
- iconColor,
375
- textColor,
376
- label,
377
- disabled,
378
- onPress
379
- }) => /*#__PURE__*/_jsxs(Pressable, {
380
- accessibilityRole: "menuitem",
381
- accessibilityLabel: label,
382
- onPress: onPress,
383
- disabled: disabled,
384
- style: [styles.actionRow, disabled && styles.rowDimmed],
385
- children: [/*#__PURE__*/_jsx(MaterialCommunityIcons, {
386
- name: icon,
387
- size: 20,
388
- color: iconColor
389
- }), /*#__PURE__*/_jsx(Text, {
390
- style: [styles.actionText, {
391
- color: textColor
392
- }],
393
- children: label
394
- })]
395
- });
396
- const styles = StyleSheet.create({
397
- // Overlay: web is a positioning context for the anchored panel; native dims
398
- // the backdrop and docks the sheet to the bottom.
399
- webOverlay: {
400
- flex: 1,
401
- position: 'relative'
402
- },
403
- nativeOverlay: {
404
- flex: 1,
405
- justifyContent: 'flex-end',
406
- backgroundColor: 'rgba(0,0,0,0.32)'
407
- },
408
- // Panel shell — web popover / native bottom sheet.
409
- panelWeb: {
410
- overflow: 'hidden',
411
- borderRadius: 16,
412
- borderWidth: 1
413
- },
414
- panelNative: {
415
- overflow: 'hidden',
416
- borderTopLeftRadius: 24,
417
- borderTopRightRadius: 24,
418
- paddingBottom: 12
419
- },
420
- // Shared height cap applied to both panel variants.
421
- panelBounds: {
422
- maxHeight: '85%'
423
- },
424
- // The panel's drop shadow (dynamic elevation).
425
- shadow: {
426
- shadowColor: '#000',
427
- shadowOpacity: 0.18,
428
- shadowRadius: 24,
429
- shadowOffset: {
430
- width: 0,
431
- height: 8
432
- },
433
- elevation: 12
434
- },
435
- scroll: {
436
- flexGrow: 0
437
- },
438
- scrollContent: {
439
- paddingVertical: 4
440
- },
441
- accountRow: {
442
- flexDirection: 'row',
443
- alignItems: 'center',
444
- gap: 12,
445
- paddingHorizontal: 16,
446
- paddingVertical: 10
447
- },
448
- childRow: {
449
- paddingLeft: 40
450
- },
451
- rowDimmed: {
452
- opacity: 0.4
453
- },
454
- accountInfo: {
455
- flex: 1,
456
- minWidth: 0
457
- },
458
- nameRow: {
459
- flexDirection: 'row',
460
- alignItems: 'center',
461
- gap: 6
462
- },
463
- accountName: {
464
- fontWeight: '500',
465
- flexShrink: 1
466
- },
467
- accountNameActive: {
468
- fontWeight: '600'
469
- },
470
- accountEmail: {
471
- fontSize: 12
472
- },
473
- roleBadge: {
474
- paddingHorizontal: 6,
475
- paddingVertical: 1,
476
- borderRadius: 8
477
- },
478
- roleBadgeText: {
479
- fontSize: 10,
480
- fontWeight: '600',
481
- textTransform: 'capitalize'
482
- },
483
- rowSignOutButton: {
484
- width: 28,
485
- height: 28,
486
- alignItems: 'center',
487
- justifyContent: 'center',
488
- borderRadius: 9999,
489
- opacity: 0.6
490
- },
491
- switchingRow: {
492
- flexDirection: 'row',
493
- alignItems: 'center',
494
- justifyContent: 'center',
495
- gap: 8,
496
- paddingVertical: 8
497
- },
498
- switchingText: {
499
- fontSize: 12,
500
- fontWeight: '500'
501
- },
502
- actionRow: {
503
- flexDirection: 'row',
504
- alignItems: 'center',
505
- gap: 12,
506
- paddingHorizontal: 16,
507
- paddingVertical: 12
508
- },
509
- actionText: {
510
- fontWeight: '500'
511
- }
512
- });
513
- export default ProfileMenu;
514
- //# sourceMappingURL=ProfileMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useCallback","useEffect","useMemo","useState","View","Pressable","Modal","ScrollView","ActivityIndicator","Platform","StyleSheet","MaterialCommunityIcons","Avatar","Text","useTheme","toast","useDialogControl","Dialog","Divider","isDev","logger","loggerUtil","useOxy","useI18n","useSwitchableAccounts","jsx","_jsx","jsxs","_jsxs","isWeb","OS","MENU_WIDTH","ProfileMenu","open","onClose","anchor","onNavigateManage","onAddAccount","onNavigateProfile","onBeforeSessionChange","switchToAccount","logoutAll","removeSession","t","colors","accounts","busyAccountId","setBusyAccountId","removingSessionId","setRemovingSessionId","signingOutAll","setSigningOutAll","signOutAllDialog","isSwitching","actionDisabled","listedAccountIds","Set","map","account","accountId","handleSwitch","isCurrent","success","error","warn","component","handleRemove","sessionId","performSignOutAll","document","undefined","onKey","event","key","stopPropagation","addEventListener","removeEventListener","panelAnchorStyle","position","width","left","top","bottom","content","onPress","style","styles","panelWeb","panelNative","backgroundColor","background","borderColor","border","panelBounds","shadow","accessibilityRole","accessibilityLabel","children","scroll","contentContainerStyle","scrollContent","showsVerticalScrollIndicator","isActive","isBusy","isRemoving","isChild","Boolean","parentAccountId","has","role","callerMembership","displayName","accessibilityState","selected","disabled","accountRow","childRow","backgroundSecondary","rowDimmed","source","user","avatar","uri","avatarUrl","variant","name","size","accountInfo","nameRow","accountName","color","text","accountNameActive","numberOfLines","roleBadge","card","roleBadgeText","textSecondary","email","accountEmail","primary","hitSlop","right","rowSignOutButton","switchingRow","switchingText","spacing","ActionRow","icon","iconColor","textColor","label","actionRow","actionText","visible","transparent","animationType","onRequestClose","webOverlay","nativeOverlay","control","title","description","actions","create","flex","justifyContent","overflow","borderRadius","borderWidth","borderTopLeftRadius","borderTopRightRadius","paddingBottom","maxHeight","shadowColor","shadowOpacity","shadowRadius","shadowOffset","height","elevation","flexGrow","paddingVertical","flexDirection","alignItems","gap","paddingHorizontal","paddingLeft","opacity","minWidth","fontWeight","flexShrink","fontSize","textTransform"],"sourceRoot":"../../../../src","sources":["ui/components/ProfileMenu.tsx"],"mappings":";;AACA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SACIC,IAAI,EACJC,SAAS,EACTC,KAAK,EACLC,UAAU,EACVC,iBAAiB,EACjBC,QAAQ,EACRC,UAAU,QAEP,cAAc;AACrB,SAAS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