@oxyhq/services 16.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.
- package/lib/commonjs/index.js +21 -51
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +0 -14
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialog.js +764 -0
- package/lib/commonjs/ui/components/OxyAccountDialog.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +11 -6
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +10 -21
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js +25 -112
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js +299 -0
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +106 -2
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +19 -30
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +37 -267
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js.map +1 -1
- package/lib/commonjs/ui/index.js +5 -40
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/accountDialogManager.js +91 -0
- package/lib/commonjs/ui/navigation/accountDialogManager.js.map +1 -0
- package/lib/commonjs/ui/navigation/routes.js +0 -2
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +4 -3
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js +10 -2
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
- package/lib/module/index.js +18 -15
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +1 -2
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialog.js +761 -0
- package/lib/module/ui/components/OxyAccountDialog.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +11 -6
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +10 -21
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js +26 -112
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js +294 -0
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +107 -3
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +1 -1
- package/lib/module/ui/hooks/useAuth.js +19 -30
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useSwitchableAccounts.js +38 -267
- package/lib/module/ui/hooks/useSwitchableAccounts.js.map +1 -1
- package/lib/module/ui/index.js +1 -5
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/accountDialogManager.js +81 -0
- package/lib/module/ui/navigation/accountDialogManager.js.map +1 -0
- package/lib/module/ui/navigation/routes.js +0 -2
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +4 -3
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js +10 -2
- package/lib/module/ui/session/createSessionClient.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +4 -11
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +0 -4
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts +35 -0
- package/lib/typescript/commonjs/ui/components/OxyAccountDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +2 -2
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +11 -23
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts +55 -0
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +13 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +13 -152
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +2 -5
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts +49 -0
- package/lib/typescript/commonjs/ui/navigation/accountDialogManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts +9 -2
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +9 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +4 -11
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +0 -4
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts +35 -0
- package/lib/typescript/module/ui/components/OxyAccountDialog.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/OxyProvider.d.ts +2 -2
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts +11 -23
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts +55 -0
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts +13 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +13 -152
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +2 -5
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts +49 -0
- package/lib/typescript/module/ui/navigation/accountDialogManager.d.ts.map +1 -0
- package/lib/typescript/module/ui/navigation/routes.d.ts +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts +9 -2
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +9 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +21 -26
- package/src/ui/client.ts +0 -4
- package/src/ui/components/OxyAccountDialog.tsx +760 -0
- package/src/ui/components/OxyProvider.tsx +12 -6
- package/src/ui/components/OxySignInButton.tsx +10 -21
- package/src/ui/components/ProfileButton.tsx +23 -126
- package/src/ui/components/RequireOxyAuth.tsx +266 -0
- package/src/ui/context/OxyContext.tsx +146 -7
- package/src/ui/hooks/mutations/useAccountMutations.ts +1 -1
- package/src/ui/hooks/useAuth.ts +19 -31
- package/src/ui/hooks/useSwitchableAccounts.ts +42 -376
- package/src/ui/index.ts +2 -5
- package/src/ui/navigation/accountDialogManager.ts +84 -0
- package/src/ui/navigation/routes.ts +0 -4
- package/src/ui/screens/ManageAccountScreen.tsx +3 -2
- package/src/ui/session/createSessionClient.ts +9 -1
- package/src/ui/types/navigation.ts +9 -0
- package/lib/commonjs/ui/components/AccountMenu.js +0 -598
- package/lib/commonjs/ui/components/AccountMenu.js.map +0 -1
- package/lib/commonjs/ui/components/AccountMenuButton.js +0 -135
- package/lib/commonjs/ui/components/AccountMenuButton.js.map +0 -1
- package/lib/commonjs/ui/components/AccountSwitcher.js +0 -780
- package/lib/commonjs/ui/components/AccountSwitcher.js.map +0 -1
- package/lib/commonjs/ui/components/AnotherDeviceQR.js +0 -116
- package/lib/commonjs/ui/components/AnotherDeviceQR.js.map +0 -1
- package/lib/commonjs/ui/components/ProfileMenu.js +0 -518
- package/lib/commonjs/ui/components/ProfileMenu.js.map +0 -1
- package/lib/commonjs/ui/components/SignInAccountChooser.js +0 -189
- package/lib/commonjs/ui/components/SignInAccountChooser.js.map +0 -1
- package/lib/commonjs/ui/components/SignInModal.js +0 -600
- package/lib/commonjs/ui/components/SignInModal.js.map +0 -1
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js +0 -501
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js.map +0 -1
- package/lib/commonjs/ui/hooks/usePasswordSignIn.js +0 -170
- package/lib/commonjs/ui/hooks/usePasswordSignIn.js.map +0 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -51
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +0 -312
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +0 -1
- package/lib/commonjs/utils/deviceFlowSignIn.js +0 -109
- package/lib/commonjs/utils/deviceFlowSignIn.js.map +0 -1
- package/lib/module/ui/components/AccountMenu.js +0 -593
- package/lib/module/ui/components/AccountMenu.js.map +0 -1
- package/lib/module/ui/components/AccountMenuButton.js +0 -130
- package/lib/module/ui/components/AccountMenuButton.js.map +0 -1
- package/lib/module/ui/components/AccountSwitcher.js +0 -774
- package/lib/module/ui/components/AccountSwitcher.js.map +0 -1
- package/lib/module/ui/components/AnotherDeviceQR.js +0 -110
- package/lib/module/ui/components/AnotherDeviceQR.js.map +0 -1
- package/lib/module/ui/components/ProfileMenu.js +0 -514
- package/lib/module/ui/components/ProfileMenu.js.map +0 -1
- package/lib/module/ui/components/SignInAccountChooser.js +0 -183
- package/lib/module/ui/components/SignInAccountChooser.js.map +0 -1
- package/lib/module/ui/components/SignInModal.js +0 -591
- package/lib/module/ui/components/SignInModal.js.map +0 -1
- package/lib/module/ui/hooks/useOxyAuthSession.js +0 -495
- package/lib/module/ui/hooks/useOxyAuthSession.js.map +0 -1
- package/lib/module/ui/hooks/usePasswordSignIn.js +0 -165
- package/lib/module/ui/hooks/usePasswordSignIn.js.map +0 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -48
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +0 -306
- package/lib/module/ui/screens/OxyAuthScreen.js.map +0 -1
- package/lib/module/utils/deviceFlowSignIn.js +0 -106
- package/lib/module/utils/deviceFlowSignIn.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +0 -47
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts +0 -26
- package/lib/typescript/commonjs/ui/components/AccountMenuButton.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/AccountSwitcher.d.ts +0 -46
- package/lib/typescript/commonjs/ui/components/AccountSwitcher.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts +0 -34
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/ProfileMenu.d.ts +0 -49
- package/lib/typescript/commonjs/ui/components/ProfileMenu.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/SignInAccountChooser.d.ts +0 -29
- package/lib/typescript/commonjs/ui/components/SignInAccountChooser.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts +0 -28
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts +0 -105
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/usePasswordSignIn.d.ts +0 -31
- package/lib/typescript/commonjs/ui/hooks/usePasswordSignIn.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts +0 -11
- package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts +0 -22
- package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils/deviceFlowSignIn.d.ts +0 -97
- package/lib/typescript/commonjs/utils/deviceFlowSignIn.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AccountMenu.d.ts +0 -47
- package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AccountMenuButton.d.ts +0 -26
- package/lib/typescript/module/ui/components/AccountMenuButton.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AccountSwitcher.d.ts +0 -46
- package/lib/typescript/module/ui/components/AccountSwitcher.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts +0 -34
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/ProfileMenu.d.ts +0 -49
- package/lib/typescript/module/ui/components/ProfileMenu.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/SignInAccountChooser.d.ts +0 -29
- package/lib/typescript/module/ui/components/SignInAccountChooser.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts +0 -28
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts +0 -105
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/usePasswordSignIn.d.ts +0 -31
- package/lib/typescript/module/ui/hooks/usePasswordSignIn.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts +0 -11
- package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts +0 -22
- package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +0 -1
- package/lib/typescript/module/utils/deviceFlowSignIn.d.ts +0 -97
- package/lib/typescript/module/utils/deviceFlowSignIn.d.ts.map +0 -1
- package/src/ui/components/AccountMenu.tsx +0 -645
- package/src/ui/components/AccountMenuButton.tsx +0 -126
- package/src/ui/components/AccountSwitcher.tsx +0 -751
- package/src/ui/components/AnotherDeviceQR.tsx +0 -119
- package/src/ui/components/ProfileMenu.tsx +0 -564
- package/src/ui/components/SignInAccountChooser.tsx +0 -162
- package/src/ui/components/SignInModal.tsx +0 -530
- package/src/ui/hooks/useOxyAuthSession.ts +0 -635
- package/src/ui/hooks/usePasswordSignIn.ts +0 -207
- package/src/ui/screens/AccountSwitcherScreen.tsx +0 -43
- package/src/ui/screens/OxyAuthScreen.tsx +0 -324
- package/src/utils/__tests__/deviceFlowSignIn.test.ts +0 -231
- package/src/utils/deviceFlowSignIn.ts +0 -152
|
@@ -1,598 +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 _bloom = require("@oxyhq/bloom");
|
|
11
|
-
var _divider = require("@oxyhq/bloom/divider");
|
|
12
|
-
var _theme = require("@oxyhq/bloom/theme");
|
|
13
|
-
var _Avatar = _interopRequireDefault(require("./Avatar.js"));
|
|
14
|
-
var _OxyContext = require("../context/OxyContext.js");
|
|
15
|
-
var _useI18n = require("../hooks/useI18n.js");
|
|
16
|
-
var _core = require("@oxyhq/core");
|
|
17
|
-
var _useSwitchableAccounts = require("../hooks/useSwitchableAccounts.js");
|
|
18
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
-
/**
|
|
21
|
-
* Web-only anchor for the popover panel. Each field anchors the panel against
|
|
22
|
-
* one viewport edge, so the popover can be placed against ANY corner: a
|
|
23
|
-
* top-right avatar chip opens downward/right-aligned (`{ top, right }`), while a
|
|
24
|
-
* bottom-left account button opens upward/left-aligned (`{ bottom, left }`).
|
|
25
|
-
*
|
|
26
|
-
* Callers MUST supply at most one vertical edge (`top` XOR `bottom`) and at most
|
|
27
|
-
* one horizontal edge (`left` XOR `right`). The panel has a fixed width and
|
|
28
|
-
* `maxHeight`, so a single vertical + single horizontal edge fully positions it.
|
|
29
|
-
* Supplying both opposite edges (e.g. `top` AND `bottom`) would stretch the
|
|
30
|
-
* panel on RN-Web and is unsupported.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
const isWeb = _reactNative.Platform.OS === 'web';
|
|
34
|
-
|
|
35
|
-
/** Fixed popover width on web. Callers that compute an anchor (e.g. inbox's
|
|
36
|
-
* MailboxDrawer) key their gutter math off this — keep them consistent. */
|
|
37
|
-
const PANEL_WIDTH = 360;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Unified, canonical account switcher for the Oxy ecosystem. Gmail-style: the
|
|
41
|
-
* accounts list sits at the top (current account first, with a checkmark), then
|
|
42
|
-
* "Add another account", "Manage account", and the sign-out actions. Lists EVERY
|
|
43
|
-
* switchable account (device sign-ins AND linked graph accounts) and routes every
|
|
44
|
-
* switch through the single `switchToAccount(accountId)` path.
|
|
45
|
-
*
|
|
46
|
-
* Reads everything it needs from `useOxy()` / `useSwitchableAccounts()` — never
|
|
47
|
-
* receives a session via props. Renders as a popover anchored to the trigger on
|
|
48
|
-
* web, and as a full-width bottom-sheet style modal on native.
|
|
49
|
-
*/
|
|
50
|
-
const AccountMenu = ({
|
|
51
|
-
open,
|
|
52
|
-
onClose,
|
|
53
|
-
onNavigateManage,
|
|
54
|
-
onAddAccount,
|
|
55
|
-
anchor,
|
|
56
|
-
onBeforeSessionChange
|
|
57
|
-
}) => {
|
|
58
|
-
const {
|
|
59
|
-
switchToAccount,
|
|
60
|
-
logout,
|
|
61
|
-
logoutAll,
|
|
62
|
-
removeSession
|
|
63
|
-
} = (0, _OxyContext.useOxy)();
|
|
64
|
-
const {
|
|
65
|
-
t
|
|
66
|
-
} = (0, _useI18n.useI18n)();
|
|
67
|
-
const bloomTheme = (0, _theme.useTheme)();
|
|
68
|
-
const colors = bloomTheme.colors;
|
|
69
|
-
|
|
70
|
-
// Source EVERY switchable account — device sign-ins AND linked graph
|
|
71
|
-
// accounts (owned orgs + shared-with-you) — from the single
|
|
72
|
-
// `useSwitchableAccounts` hook, each hydrated with real
|
|
73
|
-
// name/email/avatar/color. It also synthesises a live-user row when the
|
|
74
|
-
// device set has not synced yet, so the signed-in user is always represented
|
|
75
|
-
// (no "Not signed in" false negative).
|
|
76
|
-
const {
|
|
77
|
-
accounts
|
|
78
|
-
} = (0, _useSwitchableAccounts.useSwitchableAccounts)();
|
|
79
|
-
const [switchingAccountId, setSwitchingAccountId] = (0, _react.useState)(null);
|
|
80
|
-
const [removingSessionId, setRemovingSessionId] = (0, _react.useState)(null);
|
|
81
|
-
const [signingOut, setSigningOut] = (0, _react.useState)(false);
|
|
82
|
-
const [signingOutAll, setSigningOutAll] = (0, _react.useState)(false);
|
|
83
|
-
const signOutDialog = (0, _bloom.useDialogControl)();
|
|
84
|
-
const signOutAllDialog = (0, _bloom.useDialogControl)();
|
|
85
|
-
const containerRef = (0, _react.useRef)(null);
|
|
86
|
-
|
|
87
|
-
// Current account first, then the remaining device sign-ins, then the linked
|
|
88
|
-
// graph accounts — matching the Gmail-style chooser the inbox design ports.
|
|
89
|
-
const rows = (0, _react.useMemo)(() => {
|
|
90
|
-
const device = accounts.filter(account => account.onDevice);
|
|
91
|
-
const graph = accounts.filter(account => !account.onDevice);
|
|
92
|
-
const current = device.filter(account => account.isCurrent);
|
|
93
|
-
const others = device.filter(account => !account.isCurrent);
|
|
94
|
-
return [...current, ...others, ...graph];
|
|
95
|
-
}, [accounts]);
|
|
96
|
-
|
|
97
|
-
// "Sign out of all accounts" only applies to real device sessions.
|
|
98
|
-
const deviceCount = (0, _react.useMemo)(() => accounts.filter(account => account.onDevice).length, [accounts]);
|
|
99
|
-
|
|
100
|
-
// Account ids currently listed — used to indent a graph-only row whose parent
|
|
101
|
-
// account is also shown.
|
|
102
|
-
const listedAccountIds = (0, _react.useMemo)(() => new Set(rows.map(row => row.accountId)), [rows]);
|
|
103
|
-
const isSwitching = switchingAccountId !== null;
|
|
104
|
-
|
|
105
|
-
// The ONE uniform switch path: every row (device sign-in or linked graph
|
|
106
|
-
// account) routes through `useOxy().switchToAccount(accountId)`. It reuses
|
|
107
|
-
// the device session when the account is already signed in here, and mints a
|
|
108
|
-
// real session only on the first switch into a graph account — a single
|
|
109
|
-
// source of truth for every switch.
|
|
110
|
-
const handleSwitch = (0, _react.useCallback)(async account => {
|
|
111
|
-
if (account.isCurrent || switchingAccountId) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
setSwitchingAccountId(account.accountId);
|
|
115
|
-
try {
|
|
116
|
-
await onBeforeSessionChange?.();
|
|
117
|
-
await switchToAccount(account.accountId);
|
|
118
|
-
_bloom.toast.success(t('accountSwitcher.toasts.switchSuccess') || 'Switched account');
|
|
119
|
-
onClose();
|
|
120
|
-
} catch (error) {
|
|
121
|
-
if (!(0, _core.isDev)()) {
|
|
122
|
-
_core.logger.warn('Switch account failed', {
|
|
123
|
-
component: 'AccountMenu'
|
|
124
|
-
}, error);
|
|
125
|
-
}
|
|
126
|
-
_bloom.toast.error(t('accountSwitcher.toasts.switchFailed') || 'Failed to switch account');
|
|
127
|
-
} finally {
|
|
128
|
-
setSwitchingAccountId(null);
|
|
129
|
-
}
|
|
130
|
-
}, [switchingAccountId, switchToAccount, t, onClose, onBeforeSessionChange]);
|
|
131
|
-
|
|
132
|
-
// Sign out a SPECIFIC inactive account from its per-row icon. `removeSession`
|
|
133
|
-
// is the SDK's canonical per-session sign-out: it targets the given session
|
|
134
|
-
// id (cookie-cleared logout via `authuser` slot on web, bearer logout
|
|
135
|
-
// otherwise) and removes ONLY that account without switching/clearing the
|
|
136
|
-
// active session. The menu stays open so the user can keep managing accounts.
|
|
137
|
-
const handleRemove = (0, _react.useCallback)(async sessionId => {
|
|
138
|
-
if (removingSessionId) {
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
setRemovingSessionId(sessionId);
|
|
142
|
-
try {
|
|
143
|
-
await removeSession(sessionId);
|
|
144
|
-
_bloom.toast.success(t('common.actions.signedOut') || 'Signed out');
|
|
145
|
-
} catch (error) {
|
|
146
|
-
_core.logger.warn('Remove account failed', {
|
|
147
|
-
component: 'AccountMenu'
|
|
148
|
-
}, error);
|
|
149
|
-
_bloom.toast.error(t('common.errors.signOutFailed') || 'Failed to sign out');
|
|
150
|
-
} finally {
|
|
151
|
-
setRemovingSessionId(null);
|
|
152
|
-
}
|
|
153
|
-
}, [removingSessionId, removeSession, t]);
|
|
154
|
-
const performSignOut = (0, _react.useCallback)(async () => {
|
|
155
|
-
if (signingOut) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
setSigningOut(true);
|
|
159
|
-
try {
|
|
160
|
-
await onBeforeSessionChange?.();
|
|
161
|
-
await logout();
|
|
162
|
-
_bloom.toast.success(t('common.actions.signedOut') || 'Signed out');
|
|
163
|
-
onClose();
|
|
164
|
-
} catch (error) {
|
|
165
|
-
_core.logger.warn('Sign out failed', {
|
|
166
|
-
component: 'AccountMenu'
|
|
167
|
-
}, error);
|
|
168
|
-
_bloom.toast.error(t('common.errors.signOutFailed') || 'Failed to sign out');
|
|
169
|
-
} finally {
|
|
170
|
-
setSigningOut(false);
|
|
171
|
-
}
|
|
172
|
-
}, [signingOut, logout, t, onClose, onBeforeSessionChange]);
|
|
173
|
-
const performSignOutAll = (0, _react.useCallback)(async () => {
|
|
174
|
-
if (signingOutAll) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
setSigningOutAll(true);
|
|
178
|
-
try {
|
|
179
|
-
await onBeforeSessionChange?.();
|
|
180
|
-
await logoutAll();
|
|
181
|
-
_bloom.toast.success(t('accountSwitcher.toasts.signOutAllSuccess') || 'Signed out of all accounts');
|
|
182
|
-
onClose();
|
|
183
|
-
} catch (error) {
|
|
184
|
-
_core.logger.warn('Sign out all failed', {
|
|
185
|
-
component: 'AccountMenu'
|
|
186
|
-
}, error);
|
|
187
|
-
_bloom.toast.error(t('common.errors.signOutAllFailed') || 'Failed to sign out of all accounts');
|
|
188
|
-
} finally {
|
|
189
|
-
setSigningOutAll(false);
|
|
190
|
-
}
|
|
191
|
-
}, [signingOutAll, logoutAll, t, onClose, onBeforeSessionChange]);
|
|
192
|
-
|
|
193
|
-
// Escape-to-close + focus management (web only).
|
|
194
|
-
(0, _react.useEffect)(() => {
|
|
195
|
-
if (!open || !isWeb || typeof document === 'undefined') {
|
|
196
|
-
return undefined;
|
|
197
|
-
}
|
|
198
|
-
const onKey = event => {
|
|
199
|
-
if (event.key === 'Escape') {
|
|
200
|
-
event.stopPropagation();
|
|
201
|
-
onClose();
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
document.addEventListener('keydown', onKey, true);
|
|
205
|
-
return () => document.removeEventListener('keydown', onKey, true);
|
|
206
|
-
}, [open, onClose]);
|
|
207
|
-
if (!open) {
|
|
208
|
-
return null;
|
|
209
|
-
}
|
|
210
|
-
const overlayStyles = isWeb ? styles.webOverlay : styles.nativeOverlay;
|
|
211
|
-
|
|
212
|
-
// Apply ONLY the edges the anchor supplies (so the panel never sets
|
|
213
|
-
// conflicting opposite edges). When no anchor is provided, fall back to the
|
|
214
|
-
// historical top-right placement used by `AccountMenuButton`.
|
|
215
|
-
const anchorStyle = anchor ? {
|
|
216
|
-
...(anchor.top !== undefined ? {
|
|
217
|
-
top: anchor.top
|
|
218
|
-
} : null),
|
|
219
|
-
...(anchor.bottom !== undefined ? {
|
|
220
|
-
bottom: anchor.bottom
|
|
221
|
-
} : null),
|
|
222
|
-
...(anchor.left !== undefined ? {
|
|
223
|
-
left: anchor.left
|
|
224
|
-
} : null),
|
|
225
|
-
...(anchor.right !== undefined ? {
|
|
226
|
-
right: anchor.right
|
|
227
|
-
} : null)
|
|
228
|
-
} : {
|
|
229
|
-
top: 64,
|
|
230
|
-
right: 16
|
|
231
|
-
};
|
|
232
|
-
const panelStyles = isWeb ? [styles.panelBase, styles.panelWeb, anchorStyle, {
|
|
233
|
-
backgroundColor: colors.background,
|
|
234
|
-
borderColor: colors.border
|
|
235
|
-
}] : [styles.panelBase, styles.panelNative, {
|
|
236
|
-
backgroundColor: colors.background
|
|
237
|
-
}];
|
|
238
|
-
const actionDisabled = isSwitching || signingOut || signingOutAll;
|
|
239
|
-
const content = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
240
|
-
ref: containerRef
|
|
241
|
-
// Swallow taps inside the panel so they never reach the overlay's
|
|
242
|
-
// outside-tap-to-close handler. (On web the panel is a direct,
|
|
243
|
-
// absolutely-positioned child of the overlay so the anchor resolves
|
|
244
|
-
// against the viewport.)
|
|
245
|
-
,
|
|
246
|
-
onPress: () => undefined,
|
|
247
|
-
style: panelStyles,
|
|
248
|
-
accessibilityRole: "menu",
|
|
249
|
-
accessibilityLabel: t('accountMenu.label') || 'Account menu',
|
|
250
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
251
|
-
style: styles.scroll,
|
|
252
|
-
contentContainerStyle: styles.scrollContent,
|
|
253
|
-
showsVerticalScrollIndicator: false,
|
|
254
|
-
children: [rows.map(row => {
|
|
255
|
-
const sessionId = row.sessionId;
|
|
256
|
-
const isBusy = switchingAccountId === row.accountId;
|
|
257
|
-
const isRemoving = sessionId ? removingSessionId === sessionId : false;
|
|
258
|
-
const isChild = Boolean(row.parentAccountId && listedAccountIds.has(row.parentAccountId));
|
|
259
|
-
const role = row.callerMembership?.role;
|
|
260
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
261
|
-
accessibilityRole: "menuitem",
|
|
262
|
-
accessibilityLabel: row.displayName,
|
|
263
|
-
accessibilityState: {
|
|
264
|
-
selected: row.isCurrent
|
|
265
|
-
},
|
|
266
|
-
onPress: () => handleSwitch(row),
|
|
267
|
-
disabled: row.isCurrent || isBusy || isSwitching,
|
|
268
|
-
activeOpacity: 0.6,
|
|
269
|
-
style: [styles.accountRow, isChild && styles.childRow, row.isCurrent && {
|
|
270
|
-
backgroundColor: colors.primarySubtle
|
|
271
|
-
}, isSwitching && !row.isCurrent && styles.rowDisabled],
|
|
272
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
|
|
273
|
-
uri: row.avatarUrl,
|
|
274
|
-
name: row.displayName,
|
|
275
|
-
size: row.isCurrent ? 40 : isChild ? 28 : 32
|
|
276
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
277
|
-
style: styles.accountInfo,
|
|
278
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
279
|
-
style: styles.nameRow,
|
|
280
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
281
|
-
style: [styles.accountName, {
|
|
282
|
-
color: colors.text
|
|
283
|
-
}, row.isCurrent && styles.accountNameActive],
|
|
284
|
-
numberOfLines: 1,
|
|
285
|
-
children: row.displayName
|
|
286
|
-
}), role ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
287
|
-
style: [styles.roleBadge, {
|
|
288
|
-
backgroundColor: colors.card
|
|
289
|
-
}],
|
|
290
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
291
|
-
style: [styles.roleBadgeText, {
|
|
292
|
-
color: colors.textSecondary
|
|
293
|
-
}],
|
|
294
|
-
children: t(`accounts.roles.${role}.label`) || role
|
|
295
|
-
})
|
|
296
|
-
}) : null]
|
|
297
|
-
}), row.email ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
298
|
-
style: [styles.accountEmail, {
|
|
299
|
-
color: colors.textSecondary
|
|
300
|
-
}],
|
|
301
|
-
numberOfLines: 1,
|
|
302
|
-
children: row.email
|
|
303
|
-
}) : null]
|
|
304
|
-
}), isBusy ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
305
|
-
color: colors.primary,
|
|
306
|
-
size: "small"
|
|
307
|
-
}) : row.isCurrent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
308
|
-
name: "checkmark",
|
|
309
|
-
size: 20,
|
|
310
|
-
color: colors.primary
|
|
311
|
-
}) : isRemoving ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
312
|
-
color: colors.textSecondary,
|
|
313
|
-
size: "small"
|
|
314
|
-
}) : sessionId ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
315
|
-
accessibilityRole: "button",
|
|
316
|
-
accessibilityLabel: t('accountMenu.signOutAccount', {
|
|
317
|
-
name: row.displayName
|
|
318
|
-
}) || `Sign out ${row.displayName}`,
|
|
319
|
-
onPress: () => handleRemove(sessionId),
|
|
320
|
-
disabled: isSwitching || removingSessionId !== null,
|
|
321
|
-
activeOpacity: 0.6,
|
|
322
|
-
hitSlop: {
|
|
323
|
-
top: 8,
|
|
324
|
-
bottom: 8,
|
|
325
|
-
left: 8,
|
|
326
|
-
right: 8
|
|
327
|
-
},
|
|
328
|
-
style: styles.rowSignOutButton,
|
|
329
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
330
|
-
name: "log-out-outline",
|
|
331
|
-
size: 18,
|
|
332
|
-
color: colors.textSecondary
|
|
333
|
-
})
|
|
334
|
-
}) : null]
|
|
335
|
-
}, `account-${row.accountId}`);
|
|
336
|
-
}), isSwitching ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
337
|
-
style: styles.switchingRow,
|
|
338
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
339
|
-
color: colors.textSecondary,
|
|
340
|
-
size: "small"
|
|
341
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
342
|
-
style: [styles.switchingText, {
|
|
343
|
-
color: colors.textSecondary
|
|
344
|
-
}],
|
|
345
|
-
children: t('accountMenu.switching') || 'Switching account…'
|
|
346
|
-
})]
|
|
347
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider.Divider, {
|
|
348
|
-
color: colors.border,
|
|
349
|
-
spacing: 4
|
|
350
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
351
|
-
accessibilityRole: "menuitem",
|
|
352
|
-
accessibilityLabel: t('accountMenu.addAnother') || 'Add another account',
|
|
353
|
-
onPress: () => {
|
|
354
|
-
onClose();
|
|
355
|
-
onAddAccount();
|
|
356
|
-
},
|
|
357
|
-
disabled: actionDisabled,
|
|
358
|
-
activeOpacity: 0.6,
|
|
359
|
-
style: [styles.actionRow, actionDisabled && styles.rowDisabled],
|
|
360
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
361
|
-
name: "person-add-outline",
|
|
362
|
-
size: 20,
|
|
363
|
-
color: colors.icon
|
|
364
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
365
|
-
style: [styles.actionText, {
|
|
366
|
-
color: colors.text
|
|
367
|
-
}],
|
|
368
|
-
children: t('accountMenu.addAnother') || 'Add another account'
|
|
369
|
-
})]
|
|
370
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_divider.Divider, {
|
|
371
|
-
color: colors.border,
|
|
372
|
-
spacing: 4
|
|
373
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
374
|
-
accessibilityRole: "menuitem",
|
|
375
|
-
accessibilityLabel: t('accountMenu.manage') || 'Manage your Oxy Account',
|
|
376
|
-
onPress: () => {
|
|
377
|
-
onClose();
|
|
378
|
-
onNavigateManage();
|
|
379
|
-
},
|
|
380
|
-
disabled: actionDisabled,
|
|
381
|
-
activeOpacity: 0.6,
|
|
382
|
-
style: [styles.actionRow, actionDisabled && styles.rowDisabled],
|
|
383
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
384
|
-
name: "settings-outline",
|
|
385
|
-
size: 18,
|
|
386
|
-
color: colors.icon
|
|
387
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
388
|
-
style: [styles.actionText, {
|
|
389
|
-
color: colors.text
|
|
390
|
-
}],
|
|
391
|
-
children: t('accountMenu.manage') || 'Manage your Oxy Account'
|
|
392
|
-
})]
|
|
393
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
394
|
-
accessibilityRole: "menuitem",
|
|
395
|
-
accessibilityLabel: t('common.actions.signOut') || 'Sign out',
|
|
396
|
-
onPress: () => signOutDialog.open(),
|
|
397
|
-
disabled: actionDisabled,
|
|
398
|
-
activeOpacity: 0.6,
|
|
399
|
-
style: [styles.actionRow, actionDisabled && styles.rowDisabled],
|
|
400
|
-
children: [signingOut ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
401
|
-
color: colors.error,
|
|
402
|
-
size: "small"
|
|
403
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
404
|
-
name: "log-out-outline",
|
|
405
|
-
size: 18,
|
|
406
|
-
color: colors.error
|
|
407
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
408
|
-
style: [styles.actionText, {
|
|
409
|
-
color: colors.error
|
|
410
|
-
}],
|
|
411
|
-
children: t('common.actions.signOut') || 'Sign out'
|
|
412
|
-
})]
|
|
413
|
-
}), deviceCount > 1 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
414
|
-
accessibilityRole: "menuitem",
|
|
415
|
-
accessibilityLabel: t('accountMenu.signOutAll') || 'Sign out of all accounts',
|
|
416
|
-
onPress: () => signOutAllDialog.open(),
|
|
417
|
-
disabled: actionDisabled,
|
|
418
|
-
activeOpacity: 0.6,
|
|
419
|
-
style: [styles.actionRow, actionDisabled && styles.rowDisabled],
|
|
420
|
-
children: [signingOutAll ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
421
|
-
color: colors.error,
|
|
422
|
-
size: "small"
|
|
423
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
424
|
-
name: "log-out-outline",
|
|
425
|
-
size: 18,
|
|
426
|
-
color: colors.error
|
|
427
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
428
|
-
style: [styles.actionText, {
|
|
429
|
-
color: colors.error
|
|
430
|
-
}],
|
|
431
|
-
children: t('accountMenu.signOutAll') || 'Sign out of all accounts'
|
|
432
|
-
})]
|
|
433
|
-
}) : null]
|
|
434
|
-
})
|
|
435
|
-
});
|
|
436
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Modal, {
|
|
437
|
-
visible: open,
|
|
438
|
-
transparent: true,
|
|
439
|
-
animationType: isWeb ? 'fade' : 'slide',
|
|
440
|
-
onRequestClose: onClose,
|
|
441
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
442
|
-
accessibilityRole: "button",
|
|
443
|
-
accessibilityLabel: t('common.actions.close') || 'Close',
|
|
444
|
-
onPress: onClose,
|
|
445
|
-
style: overlayStyles,
|
|
446
|
-
children: content
|
|
447
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
|
|
448
|
-
control: signOutDialog,
|
|
449
|
-
title: t('common.actions.signOut') || 'Sign out',
|
|
450
|
-
description: t('common.confirms.signOut') || 'Are you sure you want to sign out?',
|
|
451
|
-
actions: [{
|
|
452
|
-
label: t('common.actions.signOut') || 'Sign out',
|
|
453
|
-
color: 'destructive',
|
|
454
|
-
onPress: performSignOut
|
|
455
|
-
}, {
|
|
456
|
-
label: t('common.cancel') || 'Cancel',
|
|
457
|
-
color: 'cancel'
|
|
458
|
-
}]
|
|
459
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
|
|
460
|
-
control: signOutAllDialog,
|
|
461
|
-
title: t('accountMenu.signOutAll') || 'Sign out of all accounts',
|
|
462
|
-
description: t('common.confirms.signOutAll') || 'Are you sure you want to sign out of all accounts?',
|
|
463
|
-
actions: [{
|
|
464
|
-
label: t('accountMenu.signOutAll') || 'Sign out of all accounts',
|
|
465
|
-
color: 'destructive',
|
|
466
|
-
onPress: performSignOutAll
|
|
467
|
-
}, {
|
|
468
|
-
label: t('common.cancel') || 'Cancel',
|
|
469
|
-
color: 'cancel'
|
|
470
|
-
}]
|
|
471
|
-
})]
|
|
472
|
-
});
|
|
473
|
-
};
|
|
474
|
-
const styles = _reactNative.StyleSheet.create({
|
|
475
|
-
webOverlay: {
|
|
476
|
-
flex: 1,
|
|
477
|
-
backgroundColor: 'transparent',
|
|
478
|
-
// Explicit positioning context: the absolutely-positioned panel is a
|
|
479
|
-
// direct child and resolves its anchor edges (top/bottom/left/right)
|
|
480
|
-
// against this full-viewport overlay — matching the trigger-rect math
|
|
481
|
-
// callers compute from `window.innerWidth` / `window.innerHeight`.
|
|
482
|
-
position: 'relative'
|
|
483
|
-
},
|
|
484
|
-
nativeOverlay: {
|
|
485
|
-
flex: 1,
|
|
486
|
-
backgroundColor: 'rgba(0,0,0,0.32)',
|
|
487
|
-
justifyContent: 'flex-end'
|
|
488
|
-
},
|
|
489
|
-
panelBase: {
|
|
490
|
-
borderRadius: 12,
|
|
491
|
-
shadowColor: '#000',
|
|
492
|
-
shadowOpacity: 0.18,
|
|
493
|
-
shadowRadius: 24,
|
|
494
|
-
shadowOffset: {
|
|
495
|
-
width: 0,
|
|
496
|
-
height: 8
|
|
497
|
-
},
|
|
498
|
-
elevation: 12,
|
|
499
|
-
overflow: 'hidden'
|
|
500
|
-
},
|
|
501
|
-
panelWeb: {
|
|
502
|
-
position: 'absolute',
|
|
503
|
-
width: PANEL_WIDTH,
|
|
504
|
-
maxHeight: '85%',
|
|
505
|
-
borderWidth: 1
|
|
506
|
-
},
|
|
507
|
-
panelNative: {
|
|
508
|
-
marginHorizontal: 0,
|
|
509
|
-
borderTopLeftRadius: 20,
|
|
510
|
-
borderTopRightRadius: 20,
|
|
511
|
-
borderBottomLeftRadius: 0,
|
|
512
|
-
borderBottomRightRadius: 0,
|
|
513
|
-
paddingBottom: 12,
|
|
514
|
-
maxHeight: '85%'
|
|
515
|
-
},
|
|
516
|
-
scroll: {
|
|
517
|
-
flexGrow: 0
|
|
518
|
-
},
|
|
519
|
-
scrollContent: {
|
|
520
|
-
paddingVertical: 4
|
|
521
|
-
},
|
|
522
|
-
accountRow: {
|
|
523
|
-
flexDirection: 'row',
|
|
524
|
-
alignItems: 'center',
|
|
525
|
-
paddingHorizontal: 14,
|
|
526
|
-
paddingVertical: 10,
|
|
527
|
-
gap: 10
|
|
528
|
-
},
|
|
529
|
-
childRow: {
|
|
530
|
-
paddingLeft: 34
|
|
531
|
-
},
|
|
532
|
-
rowDisabled: {
|
|
533
|
-
opacity: 0.4
|
|
534
|
-
},
|
|
535
|
-
accountInfo: {
|
|
536
|
-
flex: 1,
|
|
537
|
-
minWidth: 0
|
|
538
|
-
},
|
|
539
|
-
nameRow: {
|
|
540
|
-
flexDirection: 'row',
|
|
541
|
-
alignItems: 'center',
|
|
542
|
-
gap: 6
|
|
543
|
-
},
|
|
544
|
-
accountName: {
|
|
545
|
-
fontSize: 13,
|
|
546
|
-
fontWeight: '500',
|
|
547
|
-
flexShrink: 1
|
|
548
|
-
},
|
|
549
|
-
accountNameActive: {
|
|
550
|
-
fontWeight: '600'
|
|
551
|
-
},
|
|
552
|
-
roleBadge: {
|
|
553
|
-
paddingHorizontal: 6,
|
|
554
|
-
paddingVertical: 1,
|
|
555
|
-
borderRadius: 8
|
|
556
|
-
},
|
|
557
|
-
roleBadgeText: {
|
|
558
|
-
fontSize: 10,
|
|
559
|
-
fontWeight: '600',
|
|
560
|
-
textTransform: 'capitalize'
|
|
561
|
-
},
|
|
562
|
-
accountEmail: {
|
|
563
|
-
fontSize: 11,
|
|
564
|
-
marginTop: 1
|
|
565
|
-
},
|
|
566
|
-
rowSignOutButton: {
|
|
567
|
-
width: 28,
|
|
568
|
-
height: 28,
|
|
569
|
-
alignItems: 'center',
|
|
570
|
-
justifyContent: 'center',
|
|
571
|
-
borderRadius: 14,
|
|
572
|
-
opacity: 0.6
|
|
573
|
-
},
|
|
574
|
-
switchingRow: {
|
|
575
|
-
flexDirection: 'row',
|
|
576
|
-
alignItems: 'center',
|
|
577
|
-
justifyContent: 'center',
|
|
578
|
-
paddingVertical: 8,
|
|
579
|
-
gap: 8
|
|
580
|
-
},
|
|
581
|
-
switchingText: {
|
|
582
|
-
fontSize: 12,
|
|
583
|
-
fontWeight: '500'
|
|
584
|
-
},
|
|
585
|
-
actionRow: {
|
|
586
|
-
flexDirection: 'row',
|
|
587
|
-
alignItems: 'center',
|
|
588
|
-
paddingHorizontal: 14,
|
|
589
|
-
paddingVertical: 12,
|
|
590
|
-
gap: 10
|
|
591
|
-
},
|
|
592
|
-
actionText: {
|
|
593
|
-
fontSize: 13,
|
|
594
|
-
fontWeight: '500'
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
var _default = exports.default = AccountMenu;
|
|
598
|
-
//# sourceMappingURL=AccountMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_vectorIcons","_bloom","_divider","_theme","_Avatar","_interopRequireDefault","_OxyContext","_useI18n","_core","_useSwitchableAccounts","_jsxRuntime","e","__esModule","default","isWeb","Platform","OS","PANEL_WIDTH","AccountMenu","open","onClose","onNavigateManage","onAddAccount","anchor","onBeforeSessionChange","switchToAccount","logout","logoutAll","removeSession","useOxy","t","useI18n","bloomTheme","useTheme","colors","accounts","useSwitchableAccounts","switchingAccountId","setSwitchingAccountId","useState","removingSessionId","setRemovingSessionId","signingOut","setSigningOut","signingOutAll","setSigningOutAll","signOutDialog","useDialogControl","signOutAllDialog","containerRef","useRef","rows","useMemo","device","filter","account","onDevice","graph","current","isCurrent","others","deviceCount","length","listedAccountIds","Set","map","row","accountId","isSwitching","handleSwitch","useCallback","toast","success","error","isDev","loggerUtil","warn","component","handleRemove","sessionId","performSignOut","performSignOutAll","useEffect","document","undefined","onKey","event","key","stopPropagation","addEventListener","removeEventListener","overlayStyles","styles","webOverlay","nativeOverlay","anchorStyle","top","bottom","left","right","panelStyles","panelBase","panelWeb","backgroundColor","background","borderColor","border","panelNative","actionDisabled","content","jsx","Pressable","ref","onPress","style","accessibilityRole","accessibilityLabel","children","jsxs","ScrollView","scroll","contentContainerStyle","scrollContent","showsVerticalScrollIndicator","isBusy","isRemoving","isChild","Boolean","parentAccountId","has","role","callerMembership","TouchableOpacity","displayName","accessibilityState","selected","disabled","activeOpacity","accountRow","childRow","primarySubtle","rowDisabled","uri","avatarUrl","name","size","View","accountInfo","nameRow","Text","accountName","color","text","accountNameActive","numberOfLines","roleBadge","card","roleBadgeText","textSecondary","email","accountEmail","ActivityIndicator","primary","Ionicons","hitSlop","rowSignOutButton","switchingRow","switchingText","Divider","spacing","actionRow","icon","actionText","Modal","visible","transparent","animationType","onRequestClose","Dialog","control","title","description","actions","label","StyleSheet","create","flex","position","justifyContent","borderRadius","shadowColor","shadowOpacity","shadowRadius","shadowOffset","width","height","elevation","overflow","maxHeight","borderWidth","marginHorizontal","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","paddingBottom","flexGrow","paddingVertical","flexDirection","alignItems","paddingHorizontal","gap","paddingLeft","opacity","minWidth","fontSize","fontWeight","flexShrink","textTransform","marginTop","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/AccountMenu.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YA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