@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,600 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.subscribeToSignInModal = exports.showSignInModal = exports.isSignInModalVisible = exports.hideSignInModal = exports.default = void 0;
7
- var _react = require("react");
8
- var _reactNative = require("react-native");
9
- var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
- var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
11
- var _theme = require("@oxyhq/bloom/theme");
12
- var _button = require("@oxyhq/bloom/button");
13
- var _loading = require("@oxyhq/bloom/loading");
14
- var _bloom = require("@oxyhq/bloom");
15
- var _vectorIcons = require("@expo/vector-icons");
16
- var _core = require("@oxyhq/core");
17
- var _OxyContext = require("../context/OxyContext.js");
18
- var _OxyLogo = _interopRequireDefault(require("./OxyLogo.js"));
19
- var _AnotherDeviceQR = _interopRequireDefault(require("./AnotherDeviceQR.js"));
20
- var _SignInAccountChooser = _interopRequireDefault(require("./SignInAccountChooser.js"));
21
- var _useSwitchableAccounts = require("../hooks/useSwitchableAccounts.js");
22
- var _useI18n = require("../hooks/useI18n.js");
23
- var _useOxyAuthSession = require("../hooks/useOxyAuthSession.js");
24
- var _usePasswordSignIn = require("../hooks/usePasswordSignIn.js");
25
- var _jsxRuntime = require("react/jsx-runtime");
26
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
27
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
28
- /**
29
- * SignInModal — web-first centered sign-in modal.
30
- *
31
- * Two phases, Google-style:
32
- * 1. Account chooser (FRONT screen, shown when the device/user already has
33
- * accounts): pick an account to continue as — one tap switches through the
34
- * SAME `switchToAccount` path the account switcher uses — or "Use another
35
- * account" to reveal the sign-in options.
36
- * 2. Sign-in options: the first-party password flow (identifier → password →
37
- * optional 2FA, `usePasswordSignIn`) as the PRIMARY action, with the
38
- * cross-app device flow (same-device deep-link + "sign in on another device"
39
- * QR) as a SECONDARY option below an "or" divider.
40
- *
41
- * When there are no accounts the modal opens straight on the sign-in options.
42
- * The device-flow machinery lives in the shared `useOxyAuthSession` hook (the
43
- * native `OxyAuthScreen` consumes it too — neither container re-implements the
44
- * transport). Animates with a fade + scale; per-phase content cross-fades and
45
- * respects reduced motion.
46
- */
47
-
48
- // Store for modal visibility with subscription support
49
- let modalVisible = false;
50
- let setModalVisibleCallback = null;
51
- const visibilityListeners = new Set();
52
- const showSignInModal = () => {
53
- modalVisible = true;
54
- setModalVisibleCallback?.(true);
55
- for (const listener of visibilityListeners) listener(true);
56
- };
57
- exports.showSignInModal = showSignInModal;
58
- const hideSignInModal = () => {
59
- modalVisible = false;
60
- setModalVisibleCallback?.(false);
61
- for (const listener of visibilityListeners) listener(false);
62
- };
63
- exports.hideSignInModal = hideSignInModal;
64
- const isSignInModalVisible = () => modalVisible;
65
-
66
- /** Subscribe to modal visibility changes */
67
- exports.isSignInModalVisible = isSignInModalVisible;
68
- const subscribeToSignInModal = listener => {
69
- visibilityListeners.add(listener);
70
- return () => visibilityListeners.delete(listener);
71
- };
72
- exports.subscribeToSignInModal = subscribeToSignInModal;
73
- const SignInModal = () => {
74
- const [visible, setVisible] = (0, _react.useState)(false);
75
- const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
76
- const theme = (0, _theme.useTheme)();
77
-
78
- // Register the imperative visibility callback.
79
- (0, _react.useEffect)(() => {
80
- setModalVisibleCallback = setVisible;
81
- return () => {
82
- setModalVisibleCallback = null;
83
- };
84
- }, []);
85
- if (!visible) return null;
86
-
87
- // Mounting the content only while visible preserves the session-created-on-open
88
- // / cleaned-up-on-close behaviour and resets the phase state on every reopen.
89
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(SignInModalContent, {
90
- theme: theme,
91
- insets: insets
92
- });
93
- };
94
- const SignInModalContent = ({
95
- theme,
96
- insets
97
- }) => {
98
- const {
99
- oxyServices,
100
- handleWebSession,
101
- clientId,
102
- switchToAccount
103
- } = (0, _OxyContext.useOxy)();
104
- const {
105
- t
106
- } = (0, _useI18n.useI18n)();
107
- const {
108
- accounts
109
- } = (0, _useSwitchableAccounts.useSwitchableAccounts)();
110
-
111
- // Phase: the chooser is the front screen whenever accounts exist AND the user
112
- // has not tapped "Use another account" this session.
113
- const [useAnother, setUseAnother] = (0, _react.useState)(false);
114
- const [switchingId, setSwitchingId] = (0, _react.useState)(null);
115
- const showChooser = !useAnother && accounts.length > 0;
116
- const {
117
- qrData,
118
- qrPayload,
119
- isLoading,
120
- error,
121
- isWaiting,
122
- openSameDeviceApproval,
123
- retry
124
- } = (0, _useOxyAuthSession.useOxyAuthSession)(oxyServices, clientId, handleWebSession, {
125
- onSignedIn: hideSignInModal
126
- });
127
-
128
- // First-party password sign-in — the PRIMARY option once past the chooser.
129
- const pw = (0, _usePasswordSignIn.usePasswordSignIn)({
130
- onSignedIn: hideSignInModal
131
- });
132
-
133
- // Entrance animation (respects reduced motion).
134
- const opacity = (0, _reactNativeReanimated.useSharedValue)(0);
135
- const scale = (0, _reactNativeReanimated.useSharedValue)(0.96);
136
- // biome-ignore lint/correctness/useExhaustiveDependencies: opacity/scale are Reanimated SharedValues (stable refs), not deps; runs once on mount.
137
- (0, _react.useEffect)(() => {
138
- let cancelled = false;
139
- _reactNative.AccessibilityInfo.isReduceMotionEnabled().then(reduced => {
140
- if (cancelled) return;
141
- const duration = reduced ? 0 : 250;
142
- opacity.value = (0, _reactNativeReanimated.withTiming)(1, {
143
- duration
144
- });
145
- scale.value = (0, _reactNativeReanimated.withTiming)(1, {
146
- duration
147
- });
148
- });
149
- return () => {
150
- cancelled = true;
151
- };
152
- }, []);
153
- const backdropStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
154
- opacity: opacity.value
155
- }));
156
- const contentStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
157
- opacity: opacity.value,
158
- transform: [{
159
- scale: scale.value
160
- }]
161
- }));
162
- const handleClose = (0, _react.useCallback)(() => hideSignInModal(), []);
163
- const handleCreateAccount = (0, _react.useCallback)(() => _reactNative.Linking.openURL(_useOxyAuthSession.OXY_ACCOUNTS_WEB_URL), []);
164
- const handleSelectAccount = (0, _react.useCallback)(async account => {
165
- // The active account is already signed in — selecting it just continues.
166
- if (account.isCurrent) {
167
- hideSignInModal();
168
- return;
169
- }
170
- if (switchingId) return;
171
- setSwitchingId(account.accountId);
172
- try {
173
- await switchToAccount(account.accountId);
174
- hideSignInModal();
175
- } catch (switchError) {
176
- if ((0, _core.isDev)()) {
177
- _core.logger.warn('SignInModal: switch account failed', {
178
- component: 'SignInModal'
179
- }, switchError);
180
- }
181
- _bloom.toast.error(t('accountSwitcher.toasts.switchFailed') || 'Failed to switch account');
182
- } finally {
183
- setSwitchingId(null);
184
- }
185
- }, [switchingId, switchToAccount, t]);
186
- const title = showChooser ? t('signin.chooser.title') : 'Sign in to Oxy';
187
- const subtitle = showChooser ? t('signin.chooser.subtitle') : 'Continue with your Oxy identity to sign in securely.';
188
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
189
- visible: true,
190
- transparent: true,
191
- animationType: "none",
192
- statusBarTranslucent: true,
193
- onRequestClose: handleClose,
194
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
195
- style: [styles.backdrop, {
196
- backgroundColor: theme.colors.overlay
197
- }, backdropStyle],
198
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
199
- style: _reactNative.StyleSheet.absoluteFill,
200
- onPress: handleClose,
201
- activeOpacity: 1
202
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
203
- style: [styles.card, {
204
- backgroundColor: theme.colors.card,
205
- paddingTop: insets.top + 28,
206
- paddingBottom: insets.bottom + 24
207
- }, contentStyle],
208
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
209
- style: [styles.closeButton, {
210
- backgroundColor: theme.colors.backgroundSecondary
211
- }],
212
- onPress: handleClose,
213
- accessibilityRole: "button",
214
- accessibilityLabel: "Close sign in",
215
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
216
- name: "close",
217
- size: 22,
218
- color: theme.colors.textSecondary
219
- })
220
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
221
- style: styles.header,
222
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
223
- variant: "icon",
224
- size: 52
225
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
226
- className: "text-foreground",
227
- style: styles.title,
228
- children: title
229
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
230
- className: "text-muted-foreground",
231
- style: styles.subtitle,
232
- children: subtitle
233
- })]
234
- }), showChooser ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
235
- entering: _reactNativeReanimated.FadeIn.duration(180),
236
- style: styles.phase,
237
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SignInAccountChooser.default, {
238
- accounts: accounts,
239
- onSelectAccount: handleSelectAccount,
240
- onUseAnother: () => setUseAnother(true),
241
- pendingAccountId: switchingId,
242
- disabled: switchingId !== null
243
- })
244
- }, "chooser") : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
245
- entering: _reactNativeReanimated.FadeIn.duration(180),
246
- style: styles.phase,
247
- children: [accounts.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
248
- onPress: () => setUseAnother(false),
249
- accessibilityRole: "button",
250
- style: styles.backRow,
251
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
252
- name: "chevron-back",
253
- size: 18,
254
- color: theme.colors.textSecondary
255
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
256
- style: [styles.backText, {
257
- color: theme.colors.textSecondary
258
- }],
259
- children: t('signin.chooser.title')
260
- })]
261
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
262
- style: styles.form,
263
- children: [pw.step === 'identifier' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
264
- style: [styles.input, {
265
- borderColor: theme.colors.border,
266
- color: theme.colors.text,
267
- backgroundColor: theme.colors.backgroundSecondary
268
- }],
269
- value: pw.identifier,
270
- onChangeText: pw.setIdentifier,
271
- onSubmitEditing: pw.submitIdentifier,
272
- placeholder: "Username or email",
273
- placeholderTextColor: theme.colors.textSecondary,
274
- autoCapitalize: "none",
275
- autoCorrect: false,
276
- keyboardType: "email-address",
277
- returnKeyType: "next",
278
- accessibilityLabel: "Username or email"
279
- }), pw.step === 'password' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
280
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
281
- style: [styles.contextText, {
282
- color: theme.colors.textSecondary
283
- }],
284
- children: pw.identifier
285
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
286
- style: [styles.input, {
287
- borderColor: theme.colors.border,
288
- color: theme.colors.text,
289
- backgroundColor: theme.colors.backgroundSecondary
290
- }],
291
- value: pw.password,
292
- onChangeText: pw.setPassword,
293
- onSubmitEditing: pw.submitPassword,
294
- placeholder: "Password",
295
- placeholderTextColor: theme.colors.textSecondary,
296
- secureTextEntry: true,
297
- autoCapitalize: "none",
298
- autoCorrect: false,
299
- returnKeyType: "go",
300
- accessibilityLabel: "Password"
301
- })]
302
- }), pw.step === 'twoFactor' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
303
- style: [styles.input, {
304
- borderColor: theme.colors.border,
305
- color: theme.colors.text,
306
- backgroundColor: theme.colors.backgroundSecondary
307
- }],
308
- value: pw.code,
309
- onChangeText: pw.setCode,
310
- onSubmitEditing: pw.submitTwoFactor,
311
- placeholder: pw.useBackupCode ? 'Backup code' : '6-digit code',
312
- placeholderTextColor: theme.colors.textSecondary,
313
- autoCapitalize: "none",
314
- autoCorrect: false,
315
- keyboardType: pw.useBackupCode ? 'default' : 'number-pad',
316
- returnKeyType: "go",
317
- accessibilityLabel: pw.useBackupCode ? 'Backup code' : 'Two-factor code'
318
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
319
- variant: "primary",
320
- onPress: pw.step === 'identifier' ? pw.submitIdentifier : pw.step === 'password' ? pw.submitPassword : pw.submitTwoFactor,
321
- loading: pw.isSubmitting,
322
- disabled: pw.isSubmitting,
323
- style: styles.primaryButton,
324
- children: pw.step === 'identifier' ? 'Continue' : pw.step === 'password' ? 'Sign in' : 'Verify'
325
- }), pw.error && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
326
- className: "text-destructive",
327
- style: styles.formError,
328
- children: pw.error
329
- }), pw.step === 'twoFactor' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
330
- onPress: () => pw.setUseBackupCode(!pw.useBackupCode),
331
- accessibilityRole: "button",
332
- style: styles.linkButton,
333
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
334
- style: [styles.linkText, {
335
- color: theme.colors.primary
336
- }],
337
- children: pw.useBackupCode ? 'Use authenticator code' : 'Use a backup code'
338
- })
339
- }), pw.step !== 'identifier' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
340
- onPress: pw.back,
341
- accessibilityRole: "button",
342
- style: styles.linkButton,
343
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
344
- style: [styles.linkText, {
345
- color: theme.colors.textSecondary
346
- }],
347
- children: "Back"
348
- })
349
- })]
350
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
351
- style: styles.dividerRow,
352
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
353
- style: [styles.dividerLine, {
354
- backgroundColor: theme.colors.border
355
- }]
356
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
357
- style: [styles.dividerText, {
358
- color: theme.colors.textSecondary
359
- }],
360
- children: "or"
361
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
362
- style: [styles.dividerLine, {
363
- backgroundColor: theme.colors.border
364
- }]
365
- })]
366
- }), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
367
- style: styles.deviceLoading,
368
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
369
- size: "small",
370
- style: styles.statusSpinner
371
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
372
- style: [styles.statusText, {
373
- color: theme.colors.textSecondary
374
- }],
375
- children: "Preparing sign in\u2026"
376
- })]
377
- }) : error ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
378
- style: styles.errorContainer,
379
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
380
- className: "text-destructive",
381
- style: styles.errorText,
382
- children: error
383
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
384
- variant: "secondary",
385
- onPress: retry,
386
- style: styles.secondaryButton,
387
- children: "Try Again"
388
- })]
389
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
390
- children: [qrPayload && /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
391
- variant: "secondary",
392
- onPress: openSameDeviceApproval,
393
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
394
- variant: "icon",
395
- size: 20,
396
- fillColor: theme.colors.text,
397
- style: styles.buttonIcon
398
- }),
399
- style: styles.secondaryButton,
400
- children: "Sign in with the Oxy app"
401
- }), isWaiting && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
402
- style: styles.statusContainer,
403
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {
404
- size: "small",
405
- style: styles.statusSpinner
406
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
407
- style: [styles.statusText, {
408
- color: theme.colors.textSecondary
409
- }],
410
- children: "Waiting for authorization\u2026"
411
- })]
412
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
413
- style: styles.qrSection,
414
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AnotherDeviceQR.default, {
415
- qrData: qrData,
416
- qrPayload: qrPayload
417
- })
418
- })]
419
- })]
420
- }, "signIn"), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
421
- style: styles.footer,
422
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
423
- style: styles.footerText,
424
- className: "text-muted-foreground",
425
- children: ["Don't have an Oxy account?", ' ']
426
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
427
- onPress: handleCreateAccount,
428
- accessibilityRole: "link",
429
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
430
- style: styles.footerLink,
431
- className: "text-primary",
432
- children: "Create one"
433
- })
434
- })]
435
- })]
436
- })]
437
- })
438
- });
439
- };
440
- const styles = _reactNative.StyleSheet.create({
441
- backdrop: {
442
- flex: 1,
443
- justifyContent: 'center',
444
- alignItems: 'center'
445
- },
446
- card: {
447
- width: '100%',
448
- maxWidth: 420,
449
- alignItems: 'center',
450
- paddingHorizontal: 24,
451
- borderRadius: 28
452
- },
453
- closeButton: {
454
- position: 'absolute',
455
- top: 16,
456
- right: 16,
457
- width: 36,
458
- height: 36,
459
- borderRadius: 18,
460
- justifyContent: 'center',
461
- alignItems: 'center',
462
- zIndex: 10
463
- },
464
- header: {
465
- alignItems: 'center',
466
- marginBottom: 24
467
- },
468
- title: {
469
- fontSize: 26,
470
- fontWeight: '800',
471
- letterSpacing: -0.5,
472
- marginTop: 16,
473
- textAlign: 'center'
474
- },
475
- subtitle: {
476
- fontSize: 15,
477
- lineHeight: 21,
478
- marginTop: 8,
479
- textAlign: 'center'
480
- },
481
- phase: {
482
- width: '100%'
483
- },
484
- backRow: {
485
- flexDirection: 'row',
486
- alignItems: 'center',
487
- gap: 4,
488
- alignSelf: 'flex-start',
489
- paddingVertical: 6,
490
- marginBottom: 8
491
- },
492
- backText: {
493
- fontSize: 14,
494
- fontWeight: '600'
495
- },
496
- primaryButton: {
497
- width: '100%',
498
- borderRadius: 12
499
- },
500
- secondaryButton: {
501
- width: '100%',
502
- borderRadius: 12,
503
- marginTop: 12
504
- },
505
- buttonIcon: {
506
- marginRight: 10
507
- },
508
- form: {
509
- width: '100%'
510
- },
511
- input: {
512
- width: '100%',
513
- borderWidth: 1,
514
- borderRadius: 12,
515
- paddingHorizontal: 16,
516
- paddingVertical: 13,
517
- fontSize: 15,
518
- marginBottom: 12
519
- },
520
- contextText: {
521
- fontSize: 14,
522
- textAlign: 'center',
523
- marginBottom: 12
524
- },
525
- formError: {
526
- fontSize: 14,
527
- textAlign: 'center',
528
- marginTop: 12
529
- },
530
- linkButton: {
531
- alignSelf: 'center',
532
- paddingVertical: 8,
533
- marginTop: 8
534
- },
535
- linkText: {
536
- fontSize: 14,
537
- fontWeight: '600'
538
- },
539
- dividerRow: {
540
- flexDirection: 'row',
541
- alignItems: 'center',
542
- width: '100%',
543
- marginVertical: 20
544
- },
545
- dividerLine: {
546
- flex: 1,
547
- height: 1
548
- },
549
- dividerText: {
550
- marginHorizontal: 12,
551
- fontSize: 13
552
- },
553
- deviceLoading: {
554
- flexDirection: 'row',
555
- alignItems: 'center',
556
- justifyContent: 'center',
557
- paddingVertical: 12
558
- },
559
- statusContainer: {
560
- flexDirection: 'row',
561
- alignItems: 'center',
562
- marginTop: 20
563
- },
564
- statusSpinner: {
565
- flex: undefined
566
- },
567
- statusText: {
568
- marginLeft: 8,
569
- fontSize: 14
570
- },
571
- qrSection: {
572
- width: '100%',
573
- marginTop: 24
574
- },
575
- errorContainer: {
576
- alignItems: 'center',
577
- paddingVertical: 20,
578
- width: '100%'
579
- },
580
- errorText: {
581
- fontSize: 14,
582
- textAlign: 'center',
583
- marginBottom: 16
584
- },
585
- footer: {
586
- flexDirection: 'row',
587
- flexWrap: 'wrap',
588
- justifyContent: 'center',
589
- marginTop: 28
590
- },
591
- footerText: {
592
- fontSize: 14
593
- },
594
- footerLink: {
595
- fontSize: 14,
596
- fontWeight: '600'
597
- }
598
- });
599
- var _default = exports.default = SignInModal;
600
- //# sourceMappingURL=SignInModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_reactNativeSafeAreaContext","_theme","_button","_loading","_bloom","_vectorIcons","_core","_OxyContext","_OxyLogo","_interopRequireDefault","_AnotherDeviceQR","_SignInAccountChooser","_useSwitchableAccounts","_useI18n","_useOxyAuthSession","_usePasswordSignIn","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","modalVisible","setModalVisibleCallback","visibilityListeners","Set","showSignInModal","listener","exports","hideSignInModal","isSignInModalVisible","subscribeToSignInModal","add","delete","SignInModal","visible","setVisible","useState","insets","useSafeAreaInsets","theme","useTheme","useEffect","jsx","SignInModalContent","oxyServices","handleWebSession","clientId","switchToAccount","useOxy","useI18n","accounts","useSwitchableAccounts","useAnother","setUseAnother","switchingId","setSwitchingId","showChooser","length","qrData","qrPayload","isLoading","error","isWaiting","openSameDeviceApproval","retry","useOxyAuthSession","onSignedIn","pw","usePasswordSignIn","opacity","useSharedValue","scale","cancelled","AccessibilityInfo","isReduceMotionEnabled","then","reduced","duration","value","withTiming","backdropStyle","useAnimatedStyle","contentStyle","transform","handleClose","useCallback","handleCreateAccount","Linking","openURL","OXY_ACCOUNTS_WEB_URL","handleSelectAccount","account","isCurrent","accountId","switchError","isDev","loggerUtil","warn","component","toast","title","subtitle","Modal","transparent","animationType","statusBarTranslucent","onRequestClose","children","jsxs","View","style","styles","backdrop","backgroundColor","colors","overlay","TouchableOpacity","StyleSheet","absoluteFill","onPress","activeOpacity","card","paddingTop","top","paddingBottom","bottom","closeButton","backgroundSecondary","accessibilityRole","accessibilityLabel","Ionicons","name","size","color","textSecondary","header","variant","Text","className","entering","FadeIn","phase","onSelectAccount","onUseAnother","pendingAccountId","disabled","backRow","backText","form","step","TextInput","input","borderColor","border","text","identifier","onChangeText","setIdentifier","onSubmitEditing","submitIdentifier","placeholder","placeholderTextColor","autoCapitalize","autoCorrect","keyboardType","returnKeyType","Fragment","contextText","password","setPassword","submitPassword","secureTextEntry","code","setCode","submitTwoFactor","useBackupCode","Button","loading","isSubmitting","primaryButton","formError","setUseBackupCode","linkButton","linkText","primary","back","dividerRow","dividerLine","dividerText","deviceLoading","Loading","statusSpinner","statusText","errorContainer","errorText","secondaryButton","icon","fillColor","buttonIcon","statusContainer","qrSection","footer","footerText","footerLink","create","flex","justifyContent","alignItems","width","maxWidth","paddingHorizontal","borderRadius","position","right","height","zIndex","marginBottom","fontSize","fontWeight","letterSpacing","marginTop","textAlign","lineHeight","flexDirection","gap","alignSelf","paddingVertical","marginRight","borderWidth","marginVertical","marginHorizontal","undefined","marginLeft","flexWrap","_default"],"sourceRoot":"../../../../src","sources":["ui/components/SignInModal.tsx"],"mappings":";;;;;;AAqBA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,2BAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,KAAA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