@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,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.js';
|
|
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,mBAAgB,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,sBAAmB,CAAC;AAQ/F,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,sBAAmB,CAAC;AAOhG,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,cAAc,EACd,uBAAuB,GACxB,MAAM,wBAAqB,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.js';
|
|
8
|
+
import type { PlatformSetupAuthStateStore, SetupSignInContext } from '../session/setupSignIn.js';
|
|
8
9
|
import type { useLanguageManagement } from '../hooks/useLanguageManagement.js';
|
|
9
10
|
import type { RouteName } from '../navigation/routes.js';
|
|
10
11
|
import type { StartWebOAuthSignInOptions } from '../oauth/browserAuthTransport.js';
|
|
@@ -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,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,iCAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EACV,WAAW,EACX,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"oxyContextTypes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyContextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,iCAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC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@ -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.js';
|
|
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,kBAAe,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.js';
|
|
4
4
|
import type { RouteName } from '../navigation/routes.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { SessionMode } from '@oxy.so/core/session';
|
|
6
|
+
import type { PlatformSetupAuthStateStore } from '../session/setupSignIn.js';
|
|
6
7
|
import type { WebAuthMode } from '../oauth/types.js';
|
|
7
8
|
import type { ProductAnalytics } from '../analytics/productAnalytics.js';
|
|
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,qCAAkC,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAsB,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;AA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,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CAAC,EAAE,2BAA2B,CAAC;CAC9C;AAED,MAAM,WAAW,iBAAiB;IAChC,6FAA6F;IAC7F,iBAAiB,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/services",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.16.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",
|
|
@@ -176,14 +176,14 @@
|
|
|
176
176
|
"delete-dts.js": "find ./lib/commonjs ./lib/module \\( -name '*.d.js*' -o -name '*.d.ts' \\) -delete"
|
|
177
177
|
},
|
|
178
178
|
"dependencies": {
|
|
179
|
-
"@oxy.so/contracts": "^6.
|
|
179
|
+
"@oxy.so/contracts": "^6.22.0",
|
|
180
180
|
"color": "^5.0.3",
|
|
181
181
|
"@peable.to/sdk": "^4.0.0"
|
|
182
182
|
},
|
|
183
183
|
"devDependencies": {
|
|
184
184
|
"@expo/app-integrity": "~58.0.2",
|
|
185
185
|
"@expo/vector-icons": "^15.1.1",
|
|
186
|
-
"@oxy.so/core": "7.
|
|
186
|
+
"@oxy.so/core": "7.45.0",
|
|
187
187
|
"@react-native-async-storage/async-storage": "^3.1.1",
|
|
188
188
|
"@react-native-community/netinfo": "^12.0.1",
|
|
189
189
|
"@react-native/babel-preset": "^0.88.1",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@expo/app-integrity": ">=0.1.10 <59.0.0",
|
|
237
237
|
"@expo/vector-icons": "^15.0.3",
|
|
238
238
|
"@oxy.so/bloom": ">=17.15.0",
|
|
239
|
-
"@oxy.so/core": "^7.
|
|
239
|
+
"@oxy.so/core": "^7.45.0",
|
|
240
240
|
"@react-native-async-storage/async-storage": ">=2.0.0 <4.0.0",
|
|
241
241
|
"@react-native-community/netinfo": ">=11.4.1 <13.0.0",
|
|
242
242
|
"@tanstack/query-async-storage-persister": "^5.101",
|
package/src/index.ts
CHANGED
|
@@ -84,6 +84,11 @@ export { IdentityBoundSessionError } from './ui/session/identityBinding';
|
|
|
84
84
|
// Thrown by an operation that a platform holding the session (a session host,
|
|
85
85
|
// ADR 0058) does itself: a sign-in this app would commit, device management.
|
|
86
86
|
export { HostedSessionError } from './ui/session/hostSession';
|
|
87
|
+
export type {
|
|
88
|
+
PlatformSetupAuthStateStore,
|
|
89
|
+
SetupSignInContext,
|
|
90
|
+
SetupSignInMethod,
|
|
91
|
+
} from './ui/session/setupSignIn';
|
|
87
92
|
|
|
88
93
|
// ---------------------------------------------------------------------------
|
|
89
94
|
// Zustand stores
|
|
@@ -398,6 +403,18 @@ export { default as OxyAuthChooser } from './ui/components/OxyAuthChooser';
|
|
|
398
403
|
export type { OxyAuthChooserProps } from './ui/components/OxyAuthChooser';
|
|
399
404
|
export { OxySurfaceFrame } from './ui/components/OxySurfaceFrame';
|
|
400
405
|
export type { OxySurfaceFrameProps } from './ui/components/OxySurfaceFrame';
|
|
406
|
+
// A platform's setup in the sign-in's own frame: the host's steps and the SDK's
|
|
407
|
+
// sign-in (`oxySignInStep`, the chooser above unchanged) on one card, controlled
|
|
408
|
+
// by the host (ADR 0064; OxyOS's login screen sets up an account with it).
|
|
409
|
+
export { OxySetupFlow } from './ui/components/setupFlow/OxySetupFlow';
|
|
410
|
+
export type {
|
|
411
|
+
OxySetupFlowProps,
|
|
412
|
+
OxySetupStep,
|
|
413
|
+
OxySetupAction,
|
|
414
|
+
OxySetupPrimaryAction,
|
|
415
|
+
} from './ui/components/setupFlow/OxySetupFlow';
|
|
416
|
+
export { oxySignInStep } from './ui/components/setupFlow/oxySignInStep';
|
|
417
|
+
export type { OxySignInStepOptions } from './ui/components/setupFlow/oxySignInStep';
|
|
401
418
|
|
|
402
419
|
// THE sign-in screens. The account dialog renders them, and so does every page
|
|
403
420
|
// of the auth.oxy.so IdP: one implementation of what a person sees when they
|