@oxy.so/services 14.15.1 → 14.16.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 +18 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/setupFlow/OxySetupFlow.js +272 -0
- package/lib/commonjs/ui/components/setupFlow/OxySetupFlow.js.map +1 -0
- package/lib/commonjs/ui/components/setupFlow/oxySignInStep.js +34 -0
- package/lib/commonjs/ui/components/setupFlow/oxySignInStep.js.map +1 -0
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js +21 -7
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +27 -2
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +3 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js +21 -0
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +18 -5
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/session/deviceCredentialTracker.js +4 -2
- package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/commonjs/ui/session/setupSignIn.js +6 -0
- package/lib/commonjs/ui/session/setupSignIn.js.map +1 -0
- package/lib/module/index.js +5 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/setupFlow/OxySetupFlow.js +269 -0
- package/lib/module/ui/components/setupFlow/OxySetupFlow.js.map +1 -0
- package/lib/module/ui/components/setupFlow/oxySignInStep.js +29 -0
- package/lib/module/ui/components/setupFlow/oxySignInStep.js.map +1 -0
- package/lib/module/ui/components/signIn/OxyAuthScreen.js +22 -8
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js +27 -2
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js +3 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js +22 -1
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +18 -5
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/session/deviceCredentialTracker.js +4 -2
- package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/module/ui/session/setupSignIn.js +4 -0
- package/lib/module/ui/session/setupSignIn.js.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +5 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/setupFlow/OxySetupFlow.d.ts +88 -0
- package/lib/typescript/commonjs/ui/components/setupFlow/OxySetupFlow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/setupFlow/oxySignInStep.d.ts +23 -0
- package/lib/typescript/commonjs/ui/components/setupFlow/oxySignInStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts +12 -3
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +10 -3
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts +3 -12
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/setupSignIn.d.ts +38 -0
- package/lib/typescript/commonjs/ui/session/setupSignIn.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +7 -3
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +5 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/setupFlow/OxySetupFlow.d.ts +88 -0
- package/lib/typescript/module/ui/components/setupFlow/OxySetupFlow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/setupFlow/oxySignInStep.d.ts +23 -0
- package/lib/typescript/module/ui/components/setupFlow/oxySignInStep.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts +12 -3
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts +2 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +10 -3
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts +3 -12
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/setupSignIn.d.ts +38 -0
- package/lib/typescript/module/ui/session/setupSignIn.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/navigation.d.ts +7 -3
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +17 -0
- package/src/ui/components/setupFlow/OxySetupFlow.tsx +339 -0
- package/src/ui/components/setupFlow/__tests__/OxySetupFlow.test.tsx +312 -0
- package/src/ui/components/setupFlow/oxySignInStep.tsx +32 -0
- package/src/ui/components/signIn/OxyAuthScreen.tsx +30 -7
- package/src/ui/components/signIn/OxySignInPanel.tsx +22 -2
- package/src/ui/components/signIn/OxySignUpPanel.tsx +1 -1
- package/src/ui/components/signIn/ReauthStep.tsx +26 -1
- package/src/ui/context/OxyContext.tsx +26 -5
- package/src/ui/context/oxyContextTypes.ts +11 -3
- package/src/ui/session/deviceCredentialTracker.ts +10 -5
- package/src/ui/session/setupSignIn.ts +41 -0
- package/src/ui/types/navigation.ts +7 -3
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A platform's setup, in the SDK sign-in's own frame: the host's steps and the
|
|
3
|
+
* SDK's sign-in (`oxySignInStep`) one after another on one card, as macOS's
|
|
4
|
+
* Setup Assistant walks Welcome → Apple Account → … → Done (oxy ADR 0064,
|
|
5
|
+
* OxyOS ADR 0020).
|
|
6
|
+
*
|
|
7
|
+
* Controlled and presentational: the host owns which steps apply, which one is
|
|
8
|
+
* current and what every action does; this draws them.
|
|
9
|
+
*
|
|
10
|
+
* step the sign-in's shell (`OxyAuthScreen`): the step's icon or the Oxy
|
|
11
|
+
* mark (56), its title (48/800) and description (18), its content,
|
|
12
|
+
* blocks 24 apart, at most 448 wide. A step with an `aside` is the
|
|
13
|
+
* split card from `md` (`OxyAuthSplit`), asking its surface for 880
|
|
14
|
+
* as the sign-in's QR side does. A step without a title is drawn as
|
|
15
|
+
* its content brings it (the SDK sign-in brings its own screens).
|
|
16
|
+
* motion a step change is Bloom's `ScreenTransition` (forward from the
|
|
17
|
+
* right, back from the left; a cross-fade on the web), clipped to
|
|
18
|
+
* the card; nothing moves under reduced motion
|
|
19
|
+
* progress quiet, above the footer: decorative dots and "Step 2 of 5"
|
|
20
|
+
* footer Back leading (plain), then the secondary action and the primary
|
|
21
|
+
* (the solid default action) trailing — Tab order is visual order
|
|
22
|
+
*
|
|
23
|
+
* Accessibility: on a step change focus moves to the new step's title, or
|
|
24
|
+
* stays with its content when the step says so (`initialFocus: 'content'`: a
|
|
25
|
+
* field of its own takes it), and the change is said politely ("Create a PIN,
|
|
26
|
+
* step 3 of 5"). The dots are hidden from assistive technology; the count line
|
|
27
|
+
* and the announcement say where the step sits.
|
|
28
|
+
*/
|
|
29
|
+
import type React from 'react';
|
|
30
|
+
/** A footer action of a step. */
|
|
31
|
+
export interface OxySetupAction {
|
|
32
|
+
label: string;
|
|
33
|
+
onPress: () => void;
|
|
34
|
+
testID?: string;
|
|
35
|
+
}
|
|
36
|
+
/** The step's primary action: the default one, solid. */
|
|
37
|
+
export interface OxySetupPrimaryAction extends OxySetupAction {
|
|
38
|
+
/** Not available yet (a PIN not typed twice). */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/** Working: Bloom's spinner, presses refused, said busy; Back and the secondary wait with it. */
|
|
41
|
+
busy?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** One step of a setup. */
|
|
44
|
+
export interface OxySetupStep {
|
|
45
|
+
/** Stable: focus, the announcement and the transition key on it. */
|
|
46
|
+
id: string;
|
|
47
|
+
/** The step's one heading. Omit for content that brings its own (the SDK sign-in). */
|
|
48
|
+
title?: string;
|
|
49
|
+
description?: React.ReactNode;
|
|
50
|
+
/** Drawn in place of the Oxy mark above the title (the host's own step icon), at most 56 tall. */
|
|
51
|
+
icon?: React.ReactNode;
|
|
52
|
+
/** The step's body. */
|
|
53
|
+
content: React.ReactNode;
|
|
54
|
+
/** From `md`, the split card's right column (as the sign-in's QR side). */
|
|
55
|
+
aside?: React.ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Where focus goes when the step becomes current: its title (`'heading'`, the
|
|
58
|
+
* default with a title), or left to its content (`'content'`, the default
|
|
59
|
+
* without one) — a step whose field takes focus itself (`autoFocus`).
|
|
60
|
+
*/
|
|
61
|
+
initialFocus?: 'heading' | 'content';
|
|
62
|
+
primary?: OxySetupPrimaryAction;
|
|
63
|
+
/** "Not Now", "Set Up Later". */
|
|
64
|
+
secondary?: OxySetupAction;
|
|
65
|
+
}
|
|
66
|
+
export interface OxySetupFlowProps {
|
|
67
|
+
/** The accessible name of the whole setup ("Set up your account"). */
|
|
68
|
+
label: string;
|
|
69
|
+
/** In order; the host decides which apply. */
|
|
70
|
+
steps: readonly OxySetupStep[];
|
|
71
|
+
/** The current step's `id` (controlled). */
|
|
72
|
+
current: string;
|
|
73
|
+
/** Back is offered on the current step only when this is given. */
|
|
74
|
+
onBack?: () => void;
|
|
75
|
+
/** Default: the SDK's own "Back". */
|
|
76
|
+
backLabel?: string;
|
|
77
|
+
/** "Step 2 of 5" and the dots. Default `true`. */
|
|
78
|
+
showProgress?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The card width (px) the current step asks, as `OxySurfaceFrame` reports it:
|
|
81
|
+
* 880 for a split step (the sign-in's, with the QR, from `md`), `null` for the
|
|
82
|
+
* card's own. A surface around the flow (`OxySurfaceFrame`, the account
|
|
83
|
+
* dialog) is asked too.
|
|
84
|
+
*/
|
|
85
|
+
onMaxWidthChange?: (maxWidth: number | null) => void;
|
|
86
|
+
}
|
|
87
|
+
export declare const OxySetupFlow: React.FC<OxySetupFlowProps>;
|
|
88
|
+
//# sourceMappingURL=OxySetupFlow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OxySetupFlow.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/setupFlow/OxySetupFlow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IAC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AAC,EAAE,CAAC,iBAAiB,CAiKpD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SDK's sign-in as a step of a platform's setup (`OxySetupFlow`): the
|
|
3
|
+
* account dialog's own chooser (`OxyAuthChooser`), unchanged — the same sign-in
|
|
4
|
+
* (the Commons QR from `md`, the email's code or link, the password, the
|
|
5
|
+
* authenticator), sign-up and request views every Oxy app shows.
|
|
6
|
+
*
|
|
7
|
+
* The flow is its surface: the chooser asks it for the split card's 880 while
|
|
8
|
+
* its QR side shows and for the flow's own width after, as it asks the account
|
|
9
|
+
* dialog. The step draws no title (the chooser's screens bring their own) and
|
|
10
|
+
* leaves focus to them (the identifier field takes it on a computer).
|
|
11
|
+
*
|
|
12
|
+
* The host learns the sign-in where it always has: the credential a sign-in
|
|
13
|
+
* commits goes to `OxyProvider`'s `authStateStore` (`PlatformSetupAuthStateStore`,
|
|
14
|
+
* with `context.method` 'qr' or 'password' and the typed password), and
|
|
15
|
+
* `useOxy()` follows the signed-in account. Needs `OxyProvider` around the flow.
|
|
16
|
+
*/
|
|
17
|
+
import type { OxySetupStep } from './OxySetupFlow';
|
|
18
|
+
export interface OxySignInStepOptions {
|
|
19
|
+
/** The step's `id`. Default `'oxy-sign-in'`. */
|
|
20
|
+
id?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function oxySignInStep(options?: OxySignInStepOptions): OxySetupStep;
|
|
23
|
+
//# sourceMappingURL=oxySignInStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oxySignInStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/setupFlow/oxySignInStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,YAAY,CAM9E"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* The shell every Oxy sign-in screen shares — the in-app account dialog and
|
|
3
3
|
* every page of the auth.oxy.so IdP render these, so the two cannot drift:
|
|
4
4
|
*
|
|
5
|
-
* header the Oxy mark (56)
|
|
6
|
-
* description, 8 apart
|
|
5
|
+
* header the Oxy mark (56) or the screen's own icon, then the title
|
|
6
|
+
* (48/800, tight) and a 18px description, 8 apart
|
|
7
7
|
* screen blocks 24 apart, at most 448 wide
|
|
8
8
|
* split from `md`, Bloom `AuthCard`'s split base — max 880, radius 24,
|
|
9
9
|
* 1px border, two equal columns, the right one on the secondary
|
|
@@ -16,11 +16,20 @@
|
|
|
16
16
|
* default family — and colours come from the Bloom theme.
|
|
17
17
|
*/
|
|
18
18
|
import type React from 'react';
|
|
19
|
+
import { Text as RNText } from 'react-native';
|
|
19
20
|
export interface OxyAuthScreenHeaderProps {
|
|
20
21
|
title: string;
|
|
21
22
|
description?: React.ReactNode;
|
|
23
|
+
/** Drawn in place of the Oxy mark (a platform's own step icon), at most 56 tall. */
|
|
24
|
+
icon?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The title's host view, for a surface that moves focus to it (a setup
|
|
27
|
+
* assistant's step change). Given, the title also takes focus from code on
|
|
28
|
+
* the web (`tabIndex` -1), never from Tab.
|
|
29
|
+
*/
|
|
30
|
+
titleRef?: React.Ref<React.ComponentRef<typeof RNText>>;
|
|
22
31
|
}
|
|
23
|
-
/** The Oxy mark over the screen's title and description. */
|
|
32
|
+
/** The Oxy mark (or the screen's icon) over the screen's title and description. */
|
|
24
33
|
export declare const OxyAuthScreenHeader: React.FC<OxyAuthScreenHeaderProps>;
|
|
25
34
|
/** A sign-in screen's column: its blocks 24 apart. `className` extends it (the split's form column). */
|
|
26
35
|
export declare const OxyAuthScreen: React.FC<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyAuthScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxyAuthScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OxyAuthScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxyAuthScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAqB,IAAI,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AAkBjE,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,oFAAoF;IACpF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC;CACzD;AAED,mFAAmF;AACnF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgClE,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAKrF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAmBA,CAAC;AAEF,sGAAsG;AACtG,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAYlC,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAqBhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxySignInPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxySignInPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OxySignInPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxySignInPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0D/B,uFAAuF;AACvF,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,wDAAwD;AACxD,eAAO,MAAM,6BAA6B,KAAK,CAAC;AA4BhD,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsvBxD,CAAC"}
|
|
@@ -17,7 +17,8 @@ export interface ReauthStepProps {
|
|
|
17
17
|
allowPassword?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* The account has an email, and this change accepts a code sent to it.
|
|
20
|
-
* Without it the proof is the password alone
|
|
20
|
+
* Without it the proof is the password alone; with neither, the change is
|
|
21
|
+
* not offered (there is no proof the account could give).
|
|
21
22
|
*/
|
|
22
23
|
allowEmail?: boolean;
|
|
23
24
|
/** The account has an authenticator: its code is required too. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReauthStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/ReauthStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkBnE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,MAAM,EAAE,YAAY,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB
|
|
1
|
+
{"version":3,"file":"ReauthStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/ReauthStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkBnE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,MAAM,EAAE,YAAY,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAC/B,wEAAwE;IACxE,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iCAAiC;IACjC,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0NhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+G/B,OAAO,KAAK,EAAmB,uBAAuB,EAAe,MAAM,mBAAmB,CAAC;AAQ/F,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAOhG,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,cAAc,EACd,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmzDhE,CAAC"}
|
|
@@ -3,8 +3,9 @@ import type { StartNativeOAuthSignInOptions, NativeOAuthSignInResult } from '../
|
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
import type { LoginSessionResult } from '@oxy.so/contracts';
|
|
5
5
|
import type { OxyServices, User, SessionLoginResponse, AccountNode, CreateAccountInput, ClientSession, ApiError } from '@oxy.so/core';
|
|
6
|
-
import type { AccountDialogController, AccountDialogView,
|
|
6
|
+
import type { AccountDialogController, AccountDialogView, SessionClient, SessionMode } from '@oxy.so/core/session';
|
|
7
7
|
import type { UseFollowHook } from '../hooks/useFollow.types';
|
|
8
|
+
import type { PlatformSetupAuthStateStore, SetupSignInContext } from '../session/setupSignIn';
|
|
8
9
|
import type { useLanguageManagement } from '../hooks/useLanguageManagement';
|
|
9
10
|
import type { RouteName } from '../navigation/routes';
|
|
10
11
|
import type { StartWebOAuthSignInOptions } from '../oauth/browserAuthTransport';
|
|
@@ -100,7 +101,13 @@ export interface OxyContextState {
|
|
|
100
101
|
* code exchange, an email code or link, a password, a sign-up — as the
|
|
101
102
|
* active one.
|
|
102
103
|
*/
|
|
103
|
-
handleWebSession: (session: SessionLoginResponse | LoginSessionResult
|
|
104
|
+
handleWebSession: (session: SessionLoginResponse | LoginSessionResult,
|
|
105
|
+
/**
|
|
106
|
+
* How the sign-in happened, handed to a platform's setup store
|
|
107
|
+
* (`authStateStore`) with the credential, and to no other store
|
|
108
|
+
* (`SetupSignInContext`).
|
|
109
|
+
*/
|
|
110
|
+
setup?: SetupSignInContext) => Promise<void>;
|
|
104
111
|
/**
|
|
105
112
|
* Run a WEB third-party OAuth sign-in (authorization code + PKCE) end to end
|
|
106
113
|
* using this provider's `webAuthMode`, and commit the resulting session.
|
|
@@ -231,7 +238,7 @@ export interface OxyRuntimeProviderProps {
|
|
|
231
238
|
/** Storage instance owned by the public provider; internal composition seam. */
|
|
232
239
|
platformStorage?: StorageInterface | null;
|
|
233
240
|
/** See `OxyProviderProps.authStateStore`. Read once, at mount. */
|
|
234
|
-
authStateStore?:
|
|
241
|
+
authStateStore?: PlatformSetupAuthStateStore;
|
|
235
242
|
/** See `OxyProviderProps.accountQueries`. Read once, at mount. */
|
|
236
243
|
accountQueries?: AccountQueriesConfig;
|
|
237
244
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxyContextTypes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyContextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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,IAAI,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,gFAAgF;IAChF,eAAe,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,kEAAkE;IAClE,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAC7C,kEAAkE;IAClE,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,kFAAkF;IAClF,WAAW,CAAC,EAAE,OAAO,mBAAmB,EAAE,kBAAkB,CAAC;CAC9D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
|
|
2
|
-
declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "list" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "
|
|
2
|
+
declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "save" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "list" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "ellipse" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "add-circle-outline" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-back" | "arrow-down" | "arrow-forward" | "arrow-undo" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "bulb" | "business-outline" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "cash-outline" | "chatbubble" | "checkmark" | "checkmark-circle" | "chevron-back" | "chevron-down" | "chevron-forward" | "chevron-up" | "close" | "close-circle" | "cloud-offline-outline" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "construct-outline" | "copy-outline" | "cube-outline" | "desktop" | "document" | "document-outline" | "document-text" | "documents" | "download" | "download-outline" | "earth" | "ellipse-outline" | "ellipsis-horizontal" | "eye" | "eye-off-outline" | "filter-outline" | "flame" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "footsteps" | "gift" | "gift-outline" | "hand-left" | "hardware-chip-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "hourglass-outline" | "image-outline" | "images" | "images-outline" | "information" | "information-circle" | "information-outline" | "leaf" | "library" | "link-outline" | "location" | "location-outline" | "lock-closed" | "log-out-outline" | "mail" | "musical-notes" | "pencil-outline" | "people-outline" | "play" | "pricetag-outline" | "pulse" | "qr-code-outline" | "receipt-outline" | "refresh-outline" | "remove" | "repeat-outline" | "resize" | "rocket" | "school-outline" | "search-outline" | "server" | "share-outline" | "shield" | "shield-checkmark" | "shield-checkmark-outline" | "star" | "swap-horizontal-outline" | "swap-vertical-outline" | "sync" | "time-outline" | "trash-outline" | "trophy" | "trophy-outline" | "videocam" | "volume-off" | "wallet-outline" | "watch" | "wifi", "OxyServicesIonicons">;
|
|
3
3
|
export default Ionicons;
|
|
4
4
|
//# sourceMappingURL=Ionicons.d.ts.map
|
|
@@ -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" | "android" | "web" | "devices" | "cancel" | "forward" | "account" | "security" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "history" | "wallet" | "link" | "text" | "translate" | "scale" | "solid" | "wrap" | "image" | "
|
|
2
|
+
declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "android" | "web" | "devices" | "cancel" | "forward" | "account" | "security" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "history" | "wallet" | "link" | "text" | "translate" | "scale" | "solid" | "wrap" | "ellipse" | "image" | "switch" | "alert" | "radio" | "grid" | "numeric" | "loading" | "decimal" | "contacts" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "at" | "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" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "leaf" | "library" | "mail" | "pencil-outline" | "play" | "pulse" | "receipt-outline" | "resize" | "rocket" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet-outline" | "watch" | "wifi" | "delete" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "account-voice" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "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-outline" | "dots-horizontal" | "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" | "image-multiple-outline" | "inbox" | "link-variant" | "lock-outline" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "null" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone-outline" | "plus" | "plus-circle" | "post" | "presentation" | "react" | "read" | "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" | "trash-can-outline" | "tray-arrow-down" | "update" | "upload" | "video-outline" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
|
|
3
3
|
export default MaterialCommunityIcons;
|
|
4
4
|
//# sourceMappingURL=MaterialCommunityIcons.d.ts.map
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* A synchronous answer to "does this origin hold a device credential?".
|
|
3
|
-
*
|
|
4
|
-
* The browser bridge (ADR 0029 D2) must decide INSIDE the sign-in press whether
|
|
5
|
-
* to open its window — a window opened after an `await` is blocked by every
|
|
6
|
-
* browser — but the auth store is async. This wrapper remembers the credential
|
|
7
|
-
* every load, save and clear passes through, so the press can read it at once.
|
|
8
|
-
* The cold boot loads the store on mount, long before anyone presses sign-in.
|
|
9
|
-
*/
|
|
10
|
-
import type { AuthStateStore } from '@oxy.so/core/session';
|
|
1
|
+
import type { PlatformSetupAuthStateStore } from './setupSignIn';
|
|
11
2
|
export interface HeldDeviceCredential {
|
|
12
3
|
deviceId: string;
|
|
13
4
|
deviceSecret: string;
|
|
14
5
|
}
|
|
15
|
-
export interface CredentialTrackingAuthStateStore extends
|
|
6
|
+
export interface CredentialTrackingAuthStateStore extends PlatformSetupAuthStateStore {
|
|
16
7
|
/**
|
|
17
8
|
* The credential last seen through this store; `undefined` until the store has
|
|
18
9
|
* been read at least once (unknown — the caller should not guess).
|
|
19
10
|
*/
|
|
20
11
|
heldDeviceCredential(): HeldDeviceCredential | null | undefined;
|
|
21
12
|
}
|
|
22
|
-
export declare function trackDeviceCredential(store:
|
|
13
|
+
export declare function trackDeviceCredential(store: PlatformSetupAuthStateStore): CredentialTrackingAuthStateStore;
|
|
23
14
|
//# sourceMappingURL=deviceCredentialTracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceCredentialTracker.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/deviceCredentialTracker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deviceCredentialTracker.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/deviceCredentialTracker.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,2BAA2B,EAAsB,MAAM,eAAe,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IACnF;;;OAGG;IACH,oBAAoB,IAAI,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;CACjE;AAUD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,2BAA2B,GACjC,gCAAgC,CA8BlC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a platform's setup client is told about each sign-in it commits.
|
|
3
|
+
*
|
|
4
|
+
* A platform that runs the SDK's own sign-in at its setup (OxyOS's login
|
|
5
|
+
* screen) gives the provider its own store (`OxyProviderProps.authStateStore`),
|
|
6
|
+
* and `save()` receives the credential the moment a sign-in commits. The
|
|
7
|
+
* platform also needs to know HOW the person signed in, because its own setup
|
|
8
|
+
* differs:
|
|
9
|
+
*
|
|
10
|
+
* - `'qr'`: approved from a device the person already holds (the QR a phone
|
|
11
|
+
* scans, or the Commons identity): passwordless, so the platform asks no
|
|
12
|
+
* password; its service redeems the approval for its own credential
|
|
13
|
+
* (`POST /session/device/platform`, ADR 0058 R6);
|
|
14
|
+
* - `'password'`: the account's password, which the person just typed and the
|
|
15
|
+
* platform may reuse once (OxyOS keeps it as its offline verifier) instead of
|
|
16
|
+
* asking for it again; it is in `password`, with or without a second factor;
|
|
17
|
+
* - `'emailCode'`: the code or the link sent by email;
|
|
18
|
+
* - `'signup'`: a new account.
|
|
19
|
+
*
|
|
20
|
+
* Passed as `save()`'s second argument, and ONLY to a store the app provided:
|
|
21
|
+
* the platform's default stores never receive it. The SDK never keeps the
|
|
22
|
+
* password beyond handing it over, never persists it and never logs it.
|
|
23
|
+
*/
|
|
24
|
+
import type { AuthStateStore, PersistedAuthState } from '@oxy.so/core/session';
|
|
25
|
+
export type SetupSignInMethod = 'qr' | 'password' | 'emailCode' | 'signup';
|
|
26
|
+
export interface SetupSignInContext {
|
|
27
|
+
method: SetupSignInMethod;
|
|
28
|
+
/** The password just typed; present only when `method` is `'password'`. */
|
|
29
|
+
password?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A platform's setup store: an {@link AuthStateStore} whose `save()` may also
|
|
33
|
+
* read how the sign-in happened. Every `AuthStateStore` is one.
|
|
34
|
+
*/
|
|
35
|
+
export interface PlatformSetupAuthStateStore extends Omit<AuthStateStore, 'save'> {
|
|
36
|
+
save(state: PersistedAuthState, context?: SetupSignInContext): Promise<boolean>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=setupSignIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/setupSignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IAC/E,IAAI,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACjF"}
|
|
@@ -2,7 +2,8 @@ import type { ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import type { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
import type { AccountQueriesConfig } from '../hooks/accountQueryPersistence';
|
|
4
4
|
import type { RouteName } from '../navigation/routes';
|
|
5
|
-
import type {
|
|
5
|
+
import type { SessionMode } from '@oxy.so/core/session';
|
|
6
|
+
import type { PlatformSetupAuthStateStore } from '../session/setupSignIn';
|
|
6
7
|
import type { WebAuthMode } from '../oauth/types';
|
|
7
8
|
import type { ProductAnalytics } from '../analytics/productAnalytics';
|
|
8
9
|
export interface StepController {
|
|
@@ -179,13 +180,16 @@ export interface OxyProviderProps {
|
|
|
179
180
|
* off) and no background credential (`backgroundSession` is ignored). The
|
|
180
181
|
* email-code, password and authenticator sign-ins and the "add a password"
|
|
181
182
|
* flow (ADR 0030) run as usual; `save()` receives the credential the moment
|
|
182
|
-
* a sign-in commits, so the platform can take it over
|
|
183
|
+
* a sign-in commits, so the platform can take it over, and, as its second
|
|
184
|
+
* argument, how the sign-in happened (`SetupSignInContext`: the QR's
|
|
185
|
+
* approval, a password with the password just typed, an email code, a
|
|
186
|
+
* sign-up). Only this store ever receives that context.
|
|
183
187
|
*
|
|
184
188
|
* Ordinary apps never pass it. Never combined with a session host: when a
|
|
185
189
|
* platform has registered one (`@oxy.so/core/host`), the host wins and this
|
|
186
190
|
* is ignored. Read once, at mount.
|
|
187
191
|
*/
|
|
188
|
-
authStateStore?:
|
|
192
|
+
authStateStore?: PlatformSetupAuthStateStore;
|
|
189
193
|
}
|
|
190
194
|
export interface OxyLanguageConfig {
|
|
191
195
|
/** Previous app-owned storage keys, migrated once without replacing a current SDK choice. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../../src/ui/types/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../../src/ui/types/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,MAAM,EAAE,MAAM,IAA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iB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,kEAAkE;IAClE,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD"}
|
|
@@ -36,6 +36,7 @@ export { createDeferredProductAnalytics } from './ui/analytics/productAnalytics.
|
|
|
36
36
|
export type { OxyProductEvent, ProductAnalytics } from './ui/analytics/productAnalytics.js';
|
|
37
37
|
export { IdentityBoundSessionError } from './ui/session/identityBinding.js';
|
|
38
38
|
export { HostedSessionError } from './ui/session/hostSession.js';
|
|
39
|
+
export type { PlatformSetupAuthStateStore, SetupSignInContext, SetupSignInMethod, } from './ui/session/setupSignIn.js';
|
|
39
40
|
export { useAuthStore } from './ui/stores/authStore.js';
|
|
40
41
|
export { useAssetStore, useAssets as useAssetsStore, useAsset, useUploadProgress, useAssetLoading, useAssetErrors, useAssetsByApp, useAssetsByEntity, useAssetUsageCount, useIsAssetLinked, } from './ui/stores/assetStore.js';
|
|
41
42
|
export { useAssets, setOxyAssetInstance } from './ui/hooks/useAssets.js';
|
|
@@ -110,6 +111,10 @@ export { default as OxyAuthChooser } from './ui/components/OxyAuthChooser.js';
|
|
|
110
111
|
export type { OxyAuthChooserProps } from './ui/components/OxyAuthChooser.js';
|
|
111
112
|
export { OxySurfaceFrame } from './ui/components/OxySurfaceFrame.js';
|
|
112
113
|
export type { OxySurfaceFrameProps } from './ui/components/OxySurfaceFrame.js';
|
|
114
|
+
export { OxySetupFlow } from './ui/components/setupFlow/OxySetupFlow.js';
|
|
115
|
+
export type { OxySetupFlowProps, OxySetupStep, OxySetupAction, OxySetupPrimaryAction, } from './ui/components/setupFlow/OxySetupFlow.js';
|
|
116
|
+
export { oxySignInStep } from './ui/components/setupFlow/oxySignInStep.js';
|
|
117
|
+
export type { OxySignInStepOptions } from './ui/components/setupFlow/oxySignInStep.js';
|
|
113
118
|
export { OxySignInPanel } from './ui/components/signIn/OxySignInPanel.js';
|
|
114
119
|
export type { OxySignInPanelProps } from './ui/components/signIn/OxySignInPanel.js';
|
|
115
120
|
export { OxySignUpPanel } from './ui/components/signIn/OxySignUpPanel.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH,OAAO,uBAAoB,CAAC;AAU5B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAAyB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,4BAAyB,CAAC;AAKlF,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,uBAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,MAAM,uBAAc,CAAC;AACtB,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAAyB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAoB,CAAC;AAI7C,OAAO,EACL,eAAe,EACf,gCAAgC,GACjC,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EAAE,qBAAqB,EAAE,MAAM,0CAAuC,CAAC;AACnF,YAAY,EACV,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAoB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EACL,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,yCAAsC,CAAC;AAE9C,YAAY,EACV,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,mCAAgC,CAAC;AAExC,OAAO,EACL,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,wCAAqC,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAA6C,CAAC;AAE1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAA+B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA4B,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A platform's setup, in the SDK sign-in's own frame: the host's steps and the
|
|
3
|
+
* SDK's sign-in (`oxySignInStep`) one after another on one card, as macOS's
|
|
4
|
+
* Setup Assistant walks Welcome → Apple Account → … → Done (oxy ADR 0064,
|
|
5
|
+
* OxyOS ADR 0020).
|
|
6
|
+
*
|
|
7
|
+
* Controlled and presentational: the host owns which steps apply, which one is
|
|
8
|
+
* current and what every action does; this draws them.
|
|
9
|
+
*
|
|
10
|
+
* step the sign-in's shell (`OxyAuthScreen`): the step's icon or the Oxy
|
|
11
|
+
* mark (56), its title (48/800) and description (18), its content,
|
|
12
|
+
* blocks 24 apart, at most 448 wide. A step with an `aside` is the
|
|
13
|
+
* split card from `md` (`OxyAuthSplit`), asking its surface for 880
|
|
14
|
+
* as the sign-in's QR side does. A step without a title is drawn as
|
|
15
|
+
* its content brings it (the SDK sign-in brings its own screens).
|
|
16
|
+
* motion a step change is Bloom's `ScreenTransition` (forward from the
|
|
17
|
+
* right, back from the left; a cross-fade on the web), clipped to
|
|
18
|
+
* the card; nothing moves under reduced motion
|
|
19
|
+
* progress quiet, above the footer: decorative dots and "Step 2 of 5"
|
|
20
|
+
* footer Back leading (plain), then the secondary action and the primary
|
|
21
|
+
* (the solid default action) trailing — Tab order is visual order
|
|
22
|
+
*
|
|
23
|
+
* Accessibility: on a step change focus moves to the new step's title, or
|
|
24
|
+
* stays with its content when the step says so (`initialFocus: 'content'`: a
|
|
25
|
+
* field of its own takes it), and the change is said politely ("Create a PIN,
|
|
26
|
+
* step 3 of 5"). The dots are hidden from assistive technology; the count line
|
|
27
|
+
* and the announcement say where the step sits.
|
|
28
|
+
*/
|
|
29
|
+
import type React from 'react';
|
|
30
|
+
/** A footer action of a step. */
|
|
31
|
+
export interface OxySetupAction {
|
|
32
|
+
label: string;
|
|
33
|
+
onPress: () => void;
|
|
34
|
+
testID?: string;
|
|
35
|
+
}
|
|
36
|
+
/** The step's primary action: the default one, solid. */
|
|
37
|
+
export interface OxySetupPrimaryAction extends OxySetupAction {
|
|
38
|
+
/** Not available yet (a PIN not typed twice). */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/** Working: Bloom's spinner, presses refused, said busy; Back and the secondary wait with it. */
|
|
41
|
+
busy?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/** One step of a setup. */
|
|
44
|
+
export interface OxySetupStep {
|
|
45
|
+
/** Stable: focus, the announcement and the transition key on it. */
|
|
46
|
+
id: string;
|
|
47
|
+
/** The step's one heading. Omit for content that brings its own (the SDK sign-in). */
|
|
48
|
+
title?: string;
|
|
49
|
+
description?: React.ReactNode;
|
|
50
|
+
/** Drawn in place of the Oxy mark above the title (the host's own step icon), at most 56 tall. */
|
|
51
|
+
icon?: React.ReactNode;
|
|
52
|
+
/** The step's body. */
|
|
53
|
+
content: React.ReactNode;
|
|
54
|
+
/** From `md`, the split card's right column (as the sign-in's QR side). */
|
|
55
|
+
aside?: React.ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Where focus goes when the step becomes current: its title (`'heading'`, the
|
|
58
|
+
* default with a title), or left to its content (`'content'`, the default
|
|
59
|
+
* without one) — a step whose field takes focus itself (`autoFocus`).
|
|
60
|
+
*/
|
|
61
|
+
initialFocus?: 'heading' | 'content';
|
|
62
|
+
primary?: OxySetupPrimaryAction;
|
|
63
|
+
/** "Not Now", "Set Up Later". */
|
|
64
|
+
secondary?: OxySetupAction;
|
|
65
|
+
}
|
|
66
|
+
export interface OxySetupFlowProps {
|
|
67
|
+
/** The accessible name of the whole setup ("Set up your account"). */
|
|
68
|
+
label: string;
|
|
69
|
+
/** In order; the host decides which apply. */
|
|
70
|
+
steps: readonly OxySetupStep[];
|
|
71
|
+
/** The current step's `id` (controlled). */
|
|
72
|
+
current: string;
|
|
73
|
+
/** Back is offered on the current step only when this is given. */
|
|
74
|
+
onBack?: () => void;
|
|
75
|
+
/** Default: the SDK's own "Back". */
|
|
76
|
+
backLabel?: string;
|
|
77
|
+
/** "Step 2 of 5" and the dots. Default `true`. */
|
|
78
|
+
showProgress?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The card width (px) the current step asks, as `OxySurfaceFrame` reports it:
|
|
81
|
+
* 880 for a split step (the sign-in's, with the QR, from `md`), `null` for the
|
|
82
|
+
* card's own. A surface around the flow (`OxySurfaceFrame`, the account
|
|
83
|
+
* dialog) is asked too.
|
|
84
|
+
*/
|
|
85
|
+
onMaxWidthChange?: (maxWidth: number | null) => void;
|
|
86
|
+
}
|
|
87
|
+
export declare const OxySetupFlow: React.FC<OxySetupFlowProps>;
|
|
88
|
+
//# sourceMappingURL=OxySetupFlow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OxySetupFlow.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/setupFlow/OxySetupFlow.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yDAAyD;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