@oxy.so/services 8.0.0 → 8.1.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/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/icons/manifest.json +4 -5
- package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/commonjs/assets/fonts/icons/manifest.json +4 -5
- package/lib/commonjs/ui/components/authChooser/primitives.js +1 -102
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/styles.js +0 -33
- package/lib/commonjs/ui/components/authChooser/styles.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js +151 -56
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -1
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/assets/fonts/icons/manifest.json +4 -5
- package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/lib/module/assets/fonts/icons/manifest.json +4 -5
- package/lib/module/ui/components/authChooser/primitives.js +2 -103
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/module/ui/components/authChooser/styles.js +0 -33
- package/lib/module/ui/components/authChooser/styles.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js +154 -57
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/icons/subsetGlyphMaps.js +0 -1
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -34
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts +0 -33
- package/lib/typescript/commonjs/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts +9 -3
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -34
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts +0 -33
- package/lib/typescript/module/ui/components/authChooser/styles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts +9 -3
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
- package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
- package/src/assets/fonts/icons/manifest.json +4 -5
- package/src/ui/components/authChooser/primitives.tsx +2 -96
- package/src/ui/components/authChooser/styles.ts +0 -33
- package/src/ui/components/signIn/OxyAccountPicker.tsx +130 -65
- package/src/ui/icons/subsetGlyphMaps.ts +0 -1
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* take props and render.
|
|
5
5
|
*/
|
|
6
6
|
import type React from 'react';
|
|
7
|
-
import type {
|
|
8
|
-
import { type Theme } from './types';
|
|
7
|
+
import type { Theme } from './types';
|
|
9
8
|
/**
|
|
10
9
|
* A SUBORDINATE action: a small centred text link, never a button.
|
|
11
10
|
*
|
|
@@ -21,36 +20,4 @@ export declare const SubtleLink: React.FC<{
|
|
|
21
20
|
disabled?: boolean;
|
|
22
21
|
testID?: string;
|
|
23
22
|
}>;
|
|
24
|
-
/**
|
|
25
|
-
* A `principal acting as account` row on the sign-in entry — "continue as one of
|
|
26
|
-
* these" rather than a choice of authentication METHOD, which is why it stays
|
|
27
|
-
* above the primary CTA instead of behind the trouble disclosure.
|
|
28
|
-
*
|
|
29
|
-
* Pressing it activates the PAIR. The secondary line is the account's `@handle`:
|
|
30
|
-
* the device directory carries a handle and no email, deliberately — it is the
|
|
31
|
-
* minimum that renders a row for every person on the device, and this surface is
|
|
32
|
-
* reached while signed out, where fetching anyone's profile is not an option.
|
|
33
|
-
*
|
|
34
|
-
* The accent comes from the row's OWN account (`context.color`, straight off the
|
|
35
|
-
* directory), not from the theme and not from whoever is signed in. This surface
|
|
36
|
-
* is where a device holding two people is most visible, and it is reached while
|
|
37
|
-
* signed out — so there is no "current user" whose colour could stand in.
|
|
38
|
-
*
|
|
39
|
-
* `continueAsLabel` is the signed-out form. The device can list an identity
|
|
40
|
-
* (and even mark it active) while this app holds no session, so a check there
|
|
41
|
-
* would claim a sign-in that has not happened. Given a label, the row never
|
|
42
|
-
* reads as current: its first line is "Continue as @handle", the account's
|
|
43
|
-
* name moves to the second line, and it ends in a chevron like any other row.
|
|
44
|
-
*/
|
|
45
|
-
export declare const AccountRow: React.FC<{
|
|
46
|
-
context: SwitcherContextRow;
|
|
47
|
-
/** The person this account is reached through, when that is not obvious. */
|
|
48
|
-
operatedBy: string | null;
|
|
49
|
-
/** Signed out: the row's "Continue as @handle" line. `null` when signed in. */
|
|
50
|
-
continueAsLabel?: string | null;
|
|
51
|
-
theme: Theme;
|
|
52
|
-
activating: boolean;
|
|
53
|
-
disabled: boolean;
|
|
54
|
-
onPress: () => void;
|
|
55
|
-
}>;
|
|
56
23
|
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/primitives.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/primitives.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAWA,CAAC"}
|
|
@@ -8,39 +8,6 @@
|
|
|
8
8
|
* text-link rhythm every view's fallback affordances share.
|
|
9
9
|
*/
|
|
10
10
|
export declare const authChooserStyles: {
|
|
11
|
-
rows: {
|
|
12
|
-
width: "100%";
|
|
13
|
-
gap: number;
|
|
14
|
-
};
|
|
15
|
-
accountRow: {
|
|
16
|
-
flexDirection: "row";
|
|
17
|
-
alignItems: "center";
|
|
18
|
-
gap: number;
|
|
19
|
-
borderWidth: number;
|
|
20
|
-
borderRadius: number;
|
|
21
|
-
paddingVertical: number;
|
|
22
|
-
paddingHorizontal: number;
|
|
23
|
-
};
|
|
24
|
-
rowDisabled: {
|
|
25
|
-
opacity: number;
|
|
26
|
-
};
|
|
27
|
-
avatarRing: {
|
|
28
|
-
borderRadius: number;
|
|
29
|
-
borderWidth: number;
|
|
30
|
-
padding: number;
|
|
31
|
-
};
|
|
32
|
-
rowMeta: {
|
|
33
|
-
flex: number;
|
|
34
|
-
minWidth: number;
|
|
35
|
-
};
|
|
36
|
-
rowName: {
|
|
37
|
-
fontSize: number;
|
|
38
|
-
fontWeight: "600";
|
|
39
|
-
};
|
|
40
|
-
rowHandle: {
|
|
41
|
-
fontSize: number;
|
|
42
|
-
marginTop: number;
|
|
43
|
-
};
|
|
44
11
|
/**
|
|
45
12
|
* Animated-collapse container for the account switch list — the outer clip and
|
|
46
13
|
* the inner measuring wrapper. Style-based (NOT NativeWind): the container
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/styles.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/styles.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;IAC5B;;;;;OAKG;;;;;;;IAOH;;;;;;OAMG;;;;;;;IAOH;;;;;OAKG;;;;;;;;;;IAUH;;;;OAIG;;;;IAIH,0EAA0E;;;;;;;;;;IAU1E;qFACiF;;;;;;;;;;IAUjF,8EAA8E;;;;;IAK9E;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0CH;;;;OAIG;;;;;IAKH;;;;;;OAMG;;;;;IAKH,6EAA6E;;;;CAI7E,CAAC"}
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* means — a switch, a "Continue as" sign-in, or activating the pair before an
|
|
9
9
|
* OAuth consent — and passes the pair back, never an account id, which cannot
|
|
10
10
|
* say whose route was chosen.
|
|
11
|
+
*
|
|
12
|
+
* One rounded list: each row is the account's name and `@handle` on the left,
|
|
13
|
+
* its avatar and a chevron on the right, with a hairline between rows that
|
|
14
|
+
* steps aside for a hovered row. Layout is NativeWind; hover is driven by
|
|
15
|
+
* `onHoverIn`/`onHoverOut` (web only), because this pipeline does not emit
|
|
16
|
+
* `hover:` variants — the same pattern as the account menu.
|
|
11
17
|
*/
|
|
12
18
|
import type React from 'react';
|
|
13
19
|
import { type SwitcherContextRow, type SwitcherPrincipalRow } from '@oxy.so/core/session';
|
|
@@ -24,9 +30,9 @@ export interface OxyAccountPickerProps {
|
|
|
24
30
|
/** Disables every row while a choice is in flight. */
|
|
25
31
|
isLoading?: boolean;
|
|
26
32
|
/**
|
|
27
|
-
* This origin holds no session. A row then
|
|
28
|
-
* never as the current account: the device can list an
|
|
29
|
-
* while nobody is signed in HERE.
|
|
33
|
+
* This origin holds no session. A row is then announced as "Continue as
|
|
34
|
+
* @handle" and never marked as the current account: the device can list an
|
|
35
|
+
* identity as active while nobody is signed in HERE.
|
|
30
36
|
*/
|
|
31
37
|
signedOut?: boolean;
|
|
32
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyAccountPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxyAccountPicker.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"OxyAccountPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxyAccountPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAyB,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AASjH,MAAM,WAAW,qBAAqB;IACpC,yFAAyF;IACzF,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,4DAA4D;IAC5D,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuI5D,CAAC"}
|
|
@@ -36,14 +36,14 @@ export declare const useUpdateProfile: () => import("@tanstack/react-query").Use
|
|
|
36
36
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
37
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
38
|
url: string;
|
|
39
|
-
description?: string | undefined;
|
|
40
39
|
id?: string | undefined;
|
|
40
|
+
description?: string | undefined;
|
|
41
41
|
title?: string | undefined;
|
|
42
42
|
image?: string | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
url: string;
|
|
45
|
-
description?: string | undefined;
|
|
46
45
|
id?: string | undefined;
|
|
46
|
+
description?: string | undefined;
|
|
47
47
|
title?: string | undefined;
|
|
48
48
|
image?: string | undefined;
|
|
49
49
|
}>, "many">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccountMutations.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/hooks/mutations/useAccountMutations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,IAAI,EACJ,eAAe,EAChB,MAAM,cAAc,CAAC;AAkBtB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;aAipBy6J,CAAC;YAAkC,CAAC;mBAAyC,CAAC;;aAA4C,CAAC;YAAkC,CAAC;mBAAyC,CAAC;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useAccountMutations.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/hooks/mutations/useAccountMutations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,IAAI,EACJ,eAAe,EAChB,MAAM,cAAc,CAAC;AAkBtB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;aAipBy6J,CAAC;YAAkC,CAAC;mBAAyC,CAAC;;aAA4C,CAAC;YAAkC,CAAC;mBAAyC,CAAC;;;;;;;;;;;;;;;;;;;;;;UAA6wC,CAAC;mBAAyC,CAAC;aAAmC,CAAC;aAAmC,CAAC;;;UAA8D,CAAC;mBAAyC,CAAC;aAAmC,CAAC;aAAmC,CAAC;;;;;;;;;;EAnjB9rN,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;SAMQ,MAAM;WAAS,MAAM;WAAS,MAAM;WAAS,MAAM;;;EAuEtF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,UAAU,8BAA8B;IACtC,yCAAyC;IACzC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAClC;;;;OAIG;IACH,WAAW,EAAE,IAAI,CAAC;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB;sBAoFf,OAAO,CAAC,eAAe,CAAC,KAAG,IAAI;2BAQpB,OAAO,CAAC,eAAe,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;sBARnD,OAAO,CAAC,eAAe,CAAC,KAAG,IAAI;2BAQpB,OAAO,CAAC,eAAe,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;sBARnD,OAAO,CAAC,eAAe,CAAC,KAAG,IAAI;2BAQpB,OAAO,CAAC,eAAe,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;sBARnD,OAAO,CAAC,eAAe,CAAC,KAAG,IAAI;2BAQpB,OAAO,CAAC,eAAe,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;iBA5LrE,CAAC;uBACC,CAAH;iBAAuB,CAAC;cAAoB,CAAC;;;qBAC1C,CAAL;qBAA2B,CAAC;;;;;;;;;;;oBA4BL,CAAC;kBAAwB,CAAC;mBAAyB,CAAC;;;mBACxD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;cAMoB,OAAO,CAAC,eAAe,CAAC;aAAW,MAAM;;;;cAgJjG,CAAC;AAEF,4CAA4C;AAC5C,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;CACxI;AAED,4EAA4E;AAC5E,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;;EAmD5C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;EA+CpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,uFAoBjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;UAWd,gBAAgB;iBACT,SAAS,GAAG,QAAQ,GAAG,UAAU;eACnC,aAAa;iBACX,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI;WAS5C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
|
|
2
|
-
declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "label" | "link" | "ellipse" | "image" | "switch" | "text" | "sort" | "at" | "alert" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "grid" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "key" | "leaf" | "library" | "pencil-outline" | "play" | "pulse" | "radio" | "receipt-outline" | "resize" | "rocket" | "scale" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet" | "wallet-outline" | "watch" | "wifi" | "solid" | "account" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-multiple-outline" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "android" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bio" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cancel" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "
|
|
2
|
+
declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "label" | "link" | "ellipse" | "image" | "switch" | "text" | "sort" | "at" | "alert" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "grid" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "key" | "leaf" | "library" | "pencil-outline" | "play" | "pulse" | "radio" | "receipt-outline" | "resize" | "rocket" | "scale" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet" | "wallet-outline" | "watch" | "wifi" | "solid" | "account" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-multiple-outline" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "android" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bio" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cancel" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete" | "delete-outline" | "devices" | "dots-horizontal" | "email" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "ghost" | "history" | "image-multiple-outline" | "link-variant" | "loading" | "lock-outline" | "logout" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "network" | "null" | "numeric" | "opacity" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone" | "phone-outline" | "plus" | "plus-circle" | "post" | "presentation" | "react" | "read" | "security" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "translate" | "trash-can-outline" | "tray-arrow-down" | "update" | "video-outline" | "web" | "wifi-off" | "wrap" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
|
|
3
3
|
export default MaterialCommunityIcons;
|
|
4
4
|
//# sourceMappingURL=MaterialCommunityIcons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,q7FAO3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -185,7 +185,6 @@ export declare const materialCommunityIconsGlyphMap: {
|
|
|
185
185
|
readonly "check-all": 983341;
|
|
186
186
|
readonly "check-circle": 984544;
|
|
187
187
|
readonly "chevron-down": 983360;
|
|
188
|
-
readonly "chevron-right": 983362;
|
|
189
188
|
readonly "chevron-up": 983363;
|
|
190
189
|
readonly chip: 984602;
|
|
191
190
|
readonly "circle-outline": 984934;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2InB,CAAC;AAEX,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2InB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgMjC,CAAC"}
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* take props and render.
|
|
5
5
|
*/
|
|
6
6
|
import type React from 'react';
|
|
7
|
-
import type {
|
|
8
|
-
import { type Theme } from './types.js';
|
|
7
|
+
import type { Theme } from './types.js';
|
|
9
8
|
/**
|
|
10
9
|
* A SUBORDINATE action: a small centred text link, never a button.
|
|
11
10
|
*
|
|
@@ -21,36 +20,4 @@ export declare const SubtleLink: React.FC<{
|
|
|
21
20
|
disabled?: boolean;
|
|
22
21
|
testID?: string;
|
|
23
22
|
}>;
|
|
24
|
-
/**
|
|
25
|
-
* A `principal acting as account` row on the sign-in entry — "continue as one of
|
|
26
|
-
* these" rather than a choice of authentication METHOD, which is why it stays
|
|
27
|
-
* above the primary CTA instead of behind the trouble disclosure.
|
|
28
|
-
*
|
|
29
|
-
* Pressing it activates the PAIR. The secondary line is the account's `@handle`:
|
|
30
|
-
* the device directory carries a handle and no email, deliberately — it is the
|
|
31
|
-
* minimum that renders a row for every person on the device, and this surface is
|
|
32
|
-
* reached while signed out, where fetching anyone's profile is not an option.
|
|
33
|
-
*
|
|
34
|
-
* The accent comes from the row's OWN account (`context.color`, straight off the
|
|
35
|
-
* directory), not from the theme and not from whoever is signed in. This surface
|
|
36
|
-
* is where a device holding two people is most visible, and it is reached while
|
|
37
|
-
* signed out — so there is no "current user" whose colour could stand in.
|
|
38
|
-
*
|
|
39
|
-
* `continueAsLabel` is the signed-out form. The device can list an identity
|
|
40
|
-
* (and even mark it active) while this app holds no session, so a check there
|
|
41
|
-
* would claim a sign-in that has not happened. Given a label, the row never
|
|
42
|
-
* reads as current: its first line is "Continue as @handle", the account's
|
|
43
|
-
* name moves to the second line, and it ends in a chevron like any other row.
|
|
44
|
-
*/
|
|
45
|
-
export declare const AccountRow: React.FC<{
|
|
46
|
-
context: SwitcherContextRow;
|
|
47
|
-
/** The person this account is reached through, when that is not obvious. */
|
|
48
|
-
operatedBy: string | null;
|
|
49
|
-
/** Signed out: the row's "Continue as @handle" line. `null` when signed in. */
|
|
50
|
-
continueAsLabel?: string | null;
|
|
51
|
-
theme: Theme;
|
|
52
|
-
activating: boolean;
|
|
53
|
-
disabled: boolean;
|
|
54
|
-
onPress: () => void;
|
|
55
|
-
}>;
|
|
56
23
|
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/primitives.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/primitives.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAS,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAWA,CAAC"}
|
|
@@ -8,39 +8,6 @@
|
|
|
8
8
|
* text-link rhythm every view's fallback affordances share.
|
|
9
9
|
*/
|
|
10
10
|
export declare const authChooserStyles: {
|
|
11
|
-
rows: {
|
|
12
|
-
width: "100%";
|
|
13
|
-
gap: number;
|
|
14
|
-
};
|
|
15
|
-
accountRow: {
|
|
16
|
-
flexDirection: "row";
|
|
17
|
-
alignItems: "center";
|
|
18
|
-
gap: number;
|
|
19
|
-
borderWidth: number;
|
|
20
|
-
borderRadius: number;
|
|
21
|
-
paddingVertical: number;
|
|
22
|
-
paddingHorizontal: number;
|
|
23
|
-
};
|
|
24
|
-
rowDisabled: {
|
|
25
|
-
opacity: number;
|
|
26
|
-
};
|
|
27
|
-
avatarRing: {
|
|
28
|
-
borderRadius: number;
|
|
29
|
-
borderWidth: number;
|
|
30
|
-
padding: number;
|
|
31
|
-
};
|
|
32
|
-
rowMeta: {
|
|
33
|
-
flex: number;
|
|
34
|
-
minWidth: number;
|
|
35
|
-
};
|
|
36
|
-
rowName: {
|
|
37
|
-
fontSize: number;
|
|
38
|
-
fontWeight: "600";
|
|
39
|
-
};
|
|
40
|
-
rowHandle: {
|
|
41
|
-
fontSize: number;
|
|
42
|
-
marginTop: number;
|
|
43
|
-
};
|
|
44
11
|
/**
|
|
45
12
|
* Animated-collapse container for the account switch list — the outer clip and
|
|
46
13
|
* the inner measuring wrapper. Style-based (NOT NativeWind): the container
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/styles.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/authChooser/styles.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;IAC5B;;;;;OAKG;;;;;;;IAOH;;;;;;OAMG;;;;;;;IAOH;;;;;OAKG;;;;;;;;;;IAUH;;;;OAIG;;;;IAIH,0EAA0E;;;;;;;;;;IAU1E;qFACiF;;;;;;;;;;IAUjF,8EAA8E;;;;;IAK9E;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0CH;;;;OAIG;;;;;IAKH;;;;;;OAMG;;;;;IAKH,6EAA6E;;;;CAI7E,CAAC"}
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* means — a switch, a "Continue as" sign-in, or activating the pair before an
|
|
9
9
|
* OAuth consent — and passes the pair back, never an account id, which cannot
|
|
10
10
|
* say whose route was chosen.
|
|
11
|
+
*
|
|
12
|
+
* One rounded list: each row is the account's name and `@handle` on the left,
|
|
13
|
+
* its avatar and a chevron on the right, with a hairline between rows that
|
|
14
|
+
* steps aside for a hovered row. Layout is NativeWind; hover is driven by
|
|
15
|
+
* `onHoverIn`/`onHoverOut` (web only), because this pipeline does not emit
|
|
16
|
+
* `hover:` variants — the same pattern as the account menu.
|
|
11
17
|
*/
|
|
12
18
|
import type React from 'react';
|
|
13
19
|
import { type SwitcherContextRow, type SwitcherPrincipalRow } from '@oxy.so/core/session';
|
|
@@ -24,9 +30,9 @@ export interface OxyAccountPickerProps {
|
|
|
24
30
|
/** Disables every row while a choice is in flight. */
|
|
25
31
|
isLoading?: boolean;
|
|
26
32
|
/**
|
|
27
|
-
* This origin holds no session. A row then
|
|
28
|
-
* never as the current account: the device can list an
|
|
29
|
-
* while nobody is signed in HERE.
|
|
33
|
+
* This origin holds no session. A row is then announced as "Continue as
|
|
34
|
+
* @handle" and never marked as the current account: the device can list an
|
|
35
|
+
* identity as active while nobody is signed in HERE.
|
|
30
36
|
*/
|
|
31
37
|
signedOut?: boolean;
|
|
32
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyAccountPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxyAccountPicker.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"OxyAccountPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxyAccountPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAyB,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AASjH,MAAM,WAAW,qBAAqB;IACpC,yFAAyF;IACzF,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACvD,4DAA4D;IAC5D,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAuI5D,CAAC"}
|
|
@@ -36,14 +36,14 @@ export declare const useUpdateProfile: () => import("@tanstack/react-query").Use
|
|
|
36
36
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
37
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
38
|
url: string;
|
|
39
|
-
description?: string | undefined;
|
|
40
39
|
id?: string | undefined;
|
|
40
|
+
description?: string | undefined;
|
|
41
41
|
title?: string | undefined;
|
|
42
42
|
image?: string | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
url: string;
|
|
45
|
-
description?: string | undefined;
|
|
46
45
|
id?: string | undefined;
|
|
46
|
+
description?: string | undefined;
|
|
47
47
|
title?: string | undefined;
|
|
48
48
|
image?: string | undefined;
|
|
49
49
|
}>, "many">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccountMutations.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/hooks/mutations/useAccountMutations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,IAAI,EACJ,eAAe,EAChB,MAAM,cAAc,CAAC;AAkBtB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;aAipBy6J,CAAC;YAAkC,CAAC;mBAAyC,CAAC;;aAA4C,CAAC;YAAkC,CAAC;mBAAyC,CAAC;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useAccountMutations.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/hooks/mutations/useAccountMutations.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
|
|
2
|
-
declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "label" | "link" | "ellipse" | "image" | "switch" | "text" | "sort" | "at" | "alert" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "grid" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "key" | "leaf" | "library" | "pencil-outline" | "play" | "pulse" | "radio" | "receipt-outline" | "resize" | "rocket" | "scale" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet" | "wallet-outline" | "watch" | "wifi" | "solid" | "account" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-multiple-outline" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "android" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bio" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cancel" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "
|
|
2
|
+
declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "label" | "link" | "ellipse" | "image" | "switch" | "text" | "sort" | "at" | "alert" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "grid" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "key" | "leaf" | "library" | "pencil-outline" | "play" | "pulse" | "radio" | "receipt-outline" | "resize" | "rocket" | "scale" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet" | "wallet-outline" | "watch" | "wifi" | "solid" | "account" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-multiple-outline" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "android" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bio" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cancel" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete" | "delete-outline" | "devices" | "dots-horizontal" | "email" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "ghost" | "history" | "image-multiple-outline" | "link-variant" | "loading" | "lock-outline" | "logout" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "network" | "null" | "numeric" | "opacity" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone" | "phone-outline" | "plus" | "plus-circle" | "post" | "presentation" | "react" | "read" | "security" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "translate" | "trash-can-outline" | "tray-arrow-down" | "update" | "video-outline" | "web" | "wifi-off" | "wrap" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
|
|
3
3
|
export default MaterialCommunityIcons;
|
|
4
4
|
//# sourceMappingURL=MaterialCommunityIcons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,q7FAO3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -185,7 +185,6 @@ export declare const materialCommunityIconsGlyphMap: {
|
|
|
185
185
|
readonly "check-all": 983341;
|
|
186
186
|
readonly "check-circle": 984544;
|
|
187
187
|
readonly "chevron-down": 983360;
|
|
188
|
-
readonly "chevron-right": 983362;
|
|
189
188
|
readonly "chevron-up": 983363;
|
|
190
189
|
readonly chip: 984602;
|
|
191
190
|
readonly "circle-outline": 984934;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2InB,CAAC;AAEX,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2InB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgMjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/services",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "OxyHQ Expo/React Native SDK — UI components, screens, and native features",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"@commitlint/cli": "^21.2.1",
|
|
164
164
|
"@commitlint/config-conventional": "^21.2.0",
|
|
165
165
|
"@expo/vector-icons": "^15.0.3",
|
|
166
|
-
"@oxy.so/core": "3.0.
|
|
166
|
+
"@oxy.so/core": "3.0.1",
|
|
167
167
|
"@react-native-async-storage/async-storage": "^2.0.0",
|
|
168
168
|
"@react-native-community/netinfo": "^12.0.1",
|
|
169
169
|
"@react-native/babel-preset": "^0.86.2",
|
|
Binary file
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"fontFamily": "OxyServicesIonicons",
|
|
7
7
|
"file": "src/assets/fonts/icons/OxyServicesIonicons.ttf",
|
|
8
8
|
"bytes": 43004,
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "367d1eb46c64097ace34b793d7fbff9257c0da191d8cab73329cfe8999e95611",
|
|
10
10
|
"names": [
|
|
11
11
|
"add",
|
|
12
12
|
"add-circle-outline",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"materialCommunityIcons": {
|
|
152
152
|
"fontFamily": "OxyServicesMaterialCommunityIcons",
|
|
153
153
|
"file": "src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf",
|
|
154
|
-
"bytes":
|
|
155
|
-
"sha256": "
|
|
154
|
+
"bytes": 28852,
|
|
155
|
+
"sha256": "844252d83e5510b012333218db9e16cc997164360d1ab4f24148c3ca384ab740",
|
|
156
156
|
"names": [
|
|
157
157
|
"account",
|
|
158
158
|
"account-circle",
|
|
@@ -200,7 +200,6 @@
|
|
|
200
200
|
"check-all",
|
|
201
201
|
"check-circle",
|
|
202
202
|
"chevron-down",
|
|
203
|
-
"chevron-right",
|
|
204
203
|
"chevron-up",
|
|
205
204
|
"chip",
|
|
206
205
|
"circle-outline",
|
|
@@ -350,5 +349,5 @@
|
|
|
350
349
|
}
|
|
351
350
|
},
|
|
352
351
|
"glyphMapsFile": "src/ui/icons/subsetGlyphMaps.ts",
|
|
353
|
-
"glyphMapsSha256": "
|
|
352
|
+
"glyphMapsSha256": "25d2d86d08ea7238dfe49210cf98754ffcc60fefbe5b8ad812e13c2d3239948f"
|
|
354
353
|
}
|
|
@@ -5,17 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import type React from 'react';
|
|
8
|
-
import { Pressable
|
|
9
|
-
import MaterialCommunityIcons from '../../icons/MaterialCommunityIcons';
|
|
10
|
-
import { Avatar } from '@oxy.so/bloom/avatar';
|
|
11
|
-
import { BloomColorScope } from '@oxy.so/bloom/theme';
|
|
8
|
+
import { Pressable } from 'react-native';
|
|
12
9
|
import { Text } from '@oxy.so/bloom/typography';
|
|
13
|
-
import type { SwitcherContextRow } from '@oxy.so/core/session';
|
|
14
10
|
import { authChooserStyles as styles } from './styles';
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
/** Diameter of a row avatar (the sign-in view's account rows). */
|
|
18
|
-
const ROW_AVATAR_SIZE = 40;
|
|
11
|
+
import type { Theme } from './types';
|
|
19
12
|
|
|
20
13
|
/**
|
|
21
14
|
* A SUBORDINATE action: a small centred text link, never a button.
|
|
@@ -43,90 +36,3 @@ export const SubtleLink: React.FC<{
|
|
|
43
36
|
<Text style={[styles.linkText, { color: theme.colors.textSecondary }]}>{label}</Text>
|
|
44
37
|
</Pressable>
|
|
45
38
|
);
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* A `principal acting as account` row on the sign-in entry — "continue as one of
|
|
49
|
-
* these" rather than a choice of authentication METHOD, which is why it stays
|
|
50
|
-
* above the primary CTA instead of behind the trouble disclosure.
|
|
51
|
-
*
|
|
52
|
-
* Pressing it activates the PAIR. The secondary line is the account's `@handle`:
|
|
53
|
-
* the device directory carries a handle and no email, deliberately — it is the
|
|
54
|
-
* minimum that renders a row for every person on the device, and this surface is
|
|
55
|
-
* reached while signed out, where fetching anyone's profile is not an option.
|
|
56
|
-
*
|
|
57
|
-
* The accent comes from the row's OWN account (`context.color`, straight off the
|
|
58
|
-
* directory), not from the theme and not from whoever is signed in. This surface
|
|
59
|
-
* is where a device holding two people is most visible, and it is reached while
|
|
60
|
-
* signed out — so there is no "current user" whose colour could stand in.
|
|
61
|
-
*
|
|
62
|
-
* `continueAsLabel` is the signed-out form. The device can list an identity
|
|
63
|
-
* (and even mark it active) while this app holds no session, so a check there
|
|
64
|
-
* would claim a sign-in that has not happened. Given a label, the row never
|
|
65
|
-
* reads as current: its first line is "Continue as @handle", the account's
|
|
66
|
-
* name moves to the second line, and it ends in a chevron like any other row.
|
|
67
|
-
*/
|
|
68
|
-
export const AccountRow: React.FC<{
|
|
69
|
-
context: SwitcherContextRow;
|
|
70
|
-
/** The person this account is reached through, when that is not obvious. */
|
|
71
|
-
operatedBy: string | null;
|
|
72
|
-
/** Signed out: the row's "Continue as @handle" line. `null` when signed in. */
|
|
73
|
-
continueAsLabel?: string | null;
|
|
74
|
-
theme: Theme;
|
|
75
|
-
activating: boolean;
|
|
76
|
-
disabled: boolean;
|
|
77
|
-
onPress: () => void;
|
|
78
|
-
}> = ({ context, operatedBy, continueAsLabel = null, theme, activating, disabled, onPress }) => {
|
|
79
|
-
const accent = resolveAccentHex(context.color, theme.colors.primary);
|
|
80
|
-
const rowDisabled = disabled || !context.canActivate;
|
|
81
|
-
const current = continueAsLabel === null && context.isActive;
|
|
82
|
-
const primary = continueAsLabel ?? context.displayName;
|
|
83
|
-
const secondary =
|
|
84
|
-
operatedBy ??
|
|
85
|
-
(continueAsLabel !== null ? context.displayName : context.handle ? `@${context.handle}` : null);
|
|
86
|
-
|
|
87
|
-
return (
|
|
88
|
-
<BloomColorScope colorPreset={toPreset(context.color)} asChild>
|
|
89
|
-
<Pressable
|
|
90
|
-
style={[
|
|
91
|
-
styles.accountRow,
|
|
92
|
-
{
|
|
93
|
-
borderColor: current ? accent : theme.colors.border,
|
|
94
|
-
backgroundColor: theme.colors.card,
|
|
95
|
-
},
|
|
96
|
-
rowDisabled && !activating ? styles.rowDisabled : null,
|
|
97
|
-
]}
|
|
98
|
-
onPress={onPress}
|
|
99
|
-
disabled={rowDisabled}
|
|
100
|
-
accessibilityRole="button"
|
|
101
|
-
accessibilityState={{ selected: current, disabled: rowDisabled }}
|
|
102
|
-
accessibilityLabel={primary}
|
|
103
|
-
>
|
|
104
|
-
<View style={[styles.avatarRing, { borderColor: current ? accent : 'transparent' }]}>
|
|
105
|
-
<Avatar
|
|
106
|
-
source={context.avatarUrl ?? undefined}
|
|
107
|
-
variant="thumb"
|
|
108
|
-
name={context.displayName}
|
|
109
|
-
size={ROW_AVATAR_SIZE}
|
|
110
|
-
/>
|
|
111
|
-
</View>
|
|
112
|
-
<View style={styles.rowMeta}>
|
|
113
|
-
<Text style={[styles.rowName, { color: theme.colors.text }]} numberOfLines={1}>
|
|
114
|
-
{primary}
|
|
115
|
-
</Text>
|
|
116
|
-
{secondary ? (
|
|
117
|
-
<Text style={[styles.rowHandle, { color: theme.colors.textSecondary }]} numberOfLines={1}>
|
|
118
|
-
{secondary}
|
|
119
|
-
</Text>
|
|
120
|
-
) : null}
|
|
121
|
-
</View>
|
|
122
|
-
{activating ? (
|
|
123
|
-
<MaterialCommunityIcons name="loading" size={20} color={accent} />
|
|
124
|
-
) : current ? (
|
|
125
|
-
<MaterialCommunityIcons name="check-circle" size={20} color={accent} />
|
|
126
|
-
) : (
|
|
127
|
-
<MaterialCommunityIcons name="chevron-right" size={20} color={theme.colors.textSecondary} />
|
|
128
|
-
)}
|
|
129
|
-
</Pressable>
|
|
130
|
-
</BloomColorScope>
|
|
131
|
-
);
|
|
132
|
-
};
|