@oxy.so/services 14.10.1 → 14.12.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 +5 -4
- 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 +5 -4
- package/lib/commonjs/index.js +10 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +3 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +52 -18
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +15 -5
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/OxyHostedContext.js +515 -0
- package/lib/commonjs/ui/context/OxyHostedContext.js.map +1 -0
- package/lib/commonjs/ui/context/oxyRuntimeContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +13 -2
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOxyEvent.js +9 -5
- package/lib/commonjs/ui/hooks/useOxyEvent.js.map +1 -1
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js +1 -0
- package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +16 -63
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileLinkForm.js +125 -0
- package/lib/commonjs/ui/screens/ProfileLinkForm.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileLinksEditor.js +85 -0
- package/lib/commonjs/ui/screens/ProfileLinksEditor.js.map +1 -0
- package/lib/commonjs/ui/screens/linkFormat.js +22 -10
- package/lib/commonjs/ui/screens/linkFormat.js.map +1 -1
- package/lib/commonjs/ui/session/hostSession.js +474 -0
- package/lib/commonjs/ui/session/hostSession.js.map +1 -0
- 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 +5 -4
- 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 +5 -4
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +3 -1
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +53 -19
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +15 -5
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/OxyHostedContext.js +510 -0
- package/lib/module/ui/context/OxyHostedContext.js.map +1 -0
- package/lib/module/ui/context/oxyRuntimeContext.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +13 -2
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useOxyEvent.js +9 -5
- package/lib/module/ui/hooks/useOxyEvent.js.map +1 -1
- package/lib/module/ui/icons/subsetGlyphMaps.js +1 -0
- package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +17 -65
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileLinkForm.js +121 -0
- package/lib/module/ui/screens/ProfileLinkForm.js.map +1 -0
- package/lib/module/ui/screens/ProfileLinksEditor.js +81 -0
- package/lib/module/ui/screens/ProfileLinksEditor.js.map +1 -0
- package/lib/module/ui/screens/linkFormat.js +21 -9
- package/lib/module/ui/screens/linkFormat.js.map +1 -1
- package/lib/module/ui/session/hostSession.js +467 -0
- package/lib/module/ui/session/hostSession.js.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +6 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyHostedContext.d.ts +40 -0
- package/lib/typescript/commonjs/ui/context/OxyHostedContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +19 -2
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyRuntimeContext.d.ts +6 -0
- package/lib/typescript/commonjs/ui/context/oxyRuntimeContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +3 -0
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useOxyEvent.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +1 -0
- package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileLinkForm.d.ts +18 -0
- package/lib/typescript/commonjs/ui/screens/ProfileLinkForm.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/ProfileLinksEditor.d.ts +14 -0
- package/lib/typescript/commonjs/ui/screens/ProfileLinksEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts +14 -2
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/hostSession.d.ts +69 -0
- package/lib/typescript/commonjs/ui/session/hostSession.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +24 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/identityCrypto.d.ts +4 -0
- package/lib/typescript/commonjs/ui/utils/identityCrypto.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +6 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyHostedContext.d.ts +40 -0
- package/lib/typescript/module/ui/context/OxyHostedContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +19 -2
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyRuntimeContext.d.ts +6 -0
- package/lib/typescript/module/ui/context/oxyRuntimeContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +3 -0
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useOxyEvent.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +1 -0
- package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileLinkForm.d.ts +18 -0
- package/lib/typescript/module/ui/screens/ProfileLinkForm.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/ProfileLinksEditor.d.ts +14 -0
- package/lib/typescript/module/ui/screens/ProfileLinksEditor.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/linkFormat.d.ts +14 -2
- package/lib/typescript/module/ui/screens/linkFormat.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/hostSession.d.ts +69 -0
- package/lib/typescript/module/ui/session/hostSession.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/navigation.d.ts +24 -1
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/identityCrypto.d.ts +4 -0
- package/lib/typescript/module/ui/utils/identityCrypto.d.ts.map +1 -1
- package/package.json +7 -7
- 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 +5 -4
- package/src/index.ts +3 -0
- package/src/ui/boot/runProviderColdBoot.ts +12 -1
- package/src/ui/components/OxyProvider.tsx +77 -34
- package/src/ui/context/OxyContext.tsx +19 -4
- package/src/ui/context/OxyHostedContext.tsx +678 -0
- package/src/ui/context/oxyContextTypes.ts +21 -2
- package/src/ui/context/oxyRuntimeContext.ts +9 -1
- package/src/ui/hooks/useAuth.ts +13 -1
- package/src/ui/hooks/useOxyEvent.ts +8 -5
- package/src/ui/icons/subsetGlyphMaps.ts +1 -0
- package/src/ui/screens/EditProfileFieldScreen.tsx +19 -85
- package/src/ui/screens/ProfileLinkForm.tsx +131 -0
- package/src/ui/screens/ProfileLinksEditor.tsx +98 -0
- package/src/ui/screens/__tests__/linkFormat.test.ts +51 -8
- package/src/ui/screens/linkFormat.ts +28 -9
- package/src/ui/session/hostSession.ts +515 -0
- package/src/ui/types/navigation.ts +24 -1
- package/lib/commonjs/ui/screens/LinkListEditor.js +0 -105
- package/lib/commonjs/ui/screens/LinkListEditor.js.map +0 -1
- package/lib/module/ui/screens/LinkListEditor.js +0 -99
- package/lib/module/ui/screens/LinkListEditor.js.map +0 -1
- package/lib/typescript/commonjs/ui/screens/LinkListEditor.d.ts +0 -25
- package/lib/typescript/commonjs/ui/screens/LinkListEditor.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/LinkListEditor.d.ts +0 -25
- package/lib/typescript/module/ui/screens/LinkListEditor.d.ts.map +0 -1
- package/src/ui/screens/LinkListEditor.tsx +0 -113
|
@@ -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,aAAa,EACb,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,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C1C,kEAAkE;IAClE,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,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,3 +1,4 @@
|
|
|
1
|
+
import type { OxyHostRequest } from '@oxy.so/core/host';
|
|
1
2
|
import type { OxyContextState } from './oxyContextTypes.js';
|
|
2
3
|
export declare const OxyRuntimeContext: import("react").Context<OxyContextState | null>;
|
|
3
4
|
export declare class OxyProviderMissingError extends Error {
|
|
@@ -24,6 +25,11 @@ export declare const useOxy: () => OxyContextState;
|
|
|
24
25
|
export declare const useOptionalOxy: () => OxyContextState | null;
|
|
25
26
|
export type OxyAuthActionsContextState = Pick<OxyContextState, 'signIn' | 'logout' | 'logoutAll' | 'refreshSessions' | 'oxyServices' | 'switchToAccount' | 'hasIdentity' | 'getPublicKey' | 'showBottomSheet' | 'openAvatarPicker' | 'openAccountDialog'> & {
|
|
26
27
|
ensureDeviceSessionLane: () => void | Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Present only on a session host (ADR 0058): hands an action to the
|
|
30
|
+
* platform's own UI. `useAuth().signIn()` uses it instead of the dialog.
|
|
31
|
+
*/
|
|
32
|
+
hostRequest?: (action: OxyHostRequest) => Promise<void>;
|
|
27
33
|
};
|
|
28
34
|
export declare const OxyAuthActionsContext: import("react").Context<OxyAuthActionsContextState | null>;
|
|
29
35
|
/** Stable auth commands for selector-based hooks; never carries mutable state. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxyRuntimeContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyRuntimeContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAmB,CAAC;AAEzD,eAAO,MAAM,iBAAiB,iDAA8C,CAAC;AAM7E,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,IAAI,0BAA0B;;CAMxC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,QAAO,eAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,eAAe,GAAG,IAAqC,CAAC;AAE1F,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,eAAe,EACb,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,iBAAiB,GACjB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,CACtB,GAAG;
|
|
1
|
+
{"version":3,"file":"oxyRuntimeContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyRuntimeContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAmB,CAAC;AAEzD,eAAO,MAAM,iBAAiB,iDAA8C,CAAC;AAM7E,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,IAAI,0BAA0B;;CAMxC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,QAAO,eAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,eAAe,GAAG,IAAqC,CAAC;AAE1F,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,eAAe,EACb,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,iBAAiB,GACjB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,CACtB,GAAG;IACF,uBAAuB,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,4DAAyD,CAAC;AAE5F,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,QAAO,0BAMpC,CAAC"}
|
|
@@ -42,6 +42,9 @@ export interface AuthActions {
|
|
|
42
42
|
* Sign in
|
|
43
43
|
* - Web + native: opens the in-app Oxy account dialog (`openAccountDialog('signin')`).
|
|
44
44
|
* Never navigates to auth.oxy.so — that origin is third-party OAuth only.
|
|
45
|
+
* - On a platform that holds the session (a session host, ADR 0058): asks
|
|
46
|
+
* the platform's own sign-in and resolves `dialog-opened`; the account
|
|
47
|
+
* arrives as the session changes.
|
|
45
48
|
*
|
|
46
49
|
* @param publicKey - Native: identity public key. Ignored on web.
|
|
47
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useAuth.ts"],"names":[],"mappings":"AA8BA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIzC,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAElB,oCAAoC;IACpC,eAAe,EAAE,OAAO,CAAC;IAEzB,4DAA4D;IAC5D,SAAS,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G;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS,EAAE,WAAW;IAC3D,6DAA6D;IAC7D,WAAW,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,aAAa,CAAC,CAAC;IACjE,kEAAkE;IAClE,eAAe,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACzE,0EAA0E;IAC1E,eAAe,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACzE,0CAA0C;IAC1C,gBAAgB,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,kBAAkB,CAAC,CAAC;CAC5E;AAED,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AA+BlG;;;;;;;;;GASG;AACH,wBAAgB,OAAO,IAAI,aAAa,CA2GvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOxyEvent.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useOxyEvent.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"useOxyEvent.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useOxyEvent.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAcpF"}
|
|
@@ -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" | "ellipse" | "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">;
|
|
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" | "ellipse" | "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" | "save" | "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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ionicons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/Ionicons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Ionicons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/Ionicons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,QAAQ,qqEAGb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6InB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoMjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditProfileFieldScreen.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/EditProfileFieldScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditProfileFieldScreen.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/EditProfileFieldScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAqB,CAAC;AAoC3D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,UAAU,GACV,KAAK,GACL,OAAO,GACP,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,OAAO,GACP,UAAU,CAAC;AA4Bf,UAAU,2BAA4B,SAAQ,eAAe;IAC3D,6BAA6B;IAC7B,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B;;AAgrBD,wBAAkD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SurfaceControls } from '@oxy.so/bloom/surfaces';
|
|
2
|
+
import { type LinkListItem } from './linkFormat.js';
|
|
3
|
+
interface ProfileLinkFormProps {
|
|
4
|
+
/** The presenting surface (from `surfaces.present`); its dismiss result is the form's answer. */
|
|
5
|
+
surface: SurfaceControls;
|
|
6
|
+
/** The link being edited. Absent when adding one. */
|
|
7
|
+
link?: LinkListItem;
|
|
8
|
+
/** The addresses already on the profile, other than this link's own. */
|
|
9
|
+
existingUrls: readonly string[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The form for one profile link: its address and an optional title. Saving
|
|
13
|
+
* dismisses the surface with the link to keep; removing dismisses it with a
|
|
14
|
+
* remove. A blank title is left blank, so the profile shows the address.
|
|
15
|
+
*/
|
|
16
|
+
export declare function ProfileLinkForm({ surface, link, existingUrls }: ProfileLinkFormProps): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=ProfileLinkForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileLinkForm.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/ProfileLinkForm.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAI9D,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,iBAAc,CAAC;AAEtB,UAAU,oBAAoB;IAC5B,iGAAiG;IACjG,OAAO,EAAE,eAAe,CAAC;IACzB,qDAAqD;IACrD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,wEAAwE;IACxE,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,oBAAoB,+BAkGpF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type LinkListItem } from './linkFormat.js';
|
|
2
|
+
interface ProfileLinksEditorProps {
|
|
3
|
+
items: LinkListItem[];
|
|
4
|
+
onChange: (items: LinkListItem[]) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The profile's links as pills, in the order they are shown, reordered by
|
|
9
|
+
* dragging. Tapping a pill edits that link; "Add link" appears until the profile
|
|
10
|
+
* holds the maximum. Changes stay local until the profile is saved.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ProfileLinksEditor({ items, onChange, disabled }: ProfileLinksEditorProps): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ProfileLinksEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileLinksEditor.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/ProfileLinksEditor.tsx"],"names":[],"mappings":"AAQA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,iBAAc,CAAC;AAEtB,UAAU,uBAAuB;IAC/B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,uBAAuB,+BA6DhG"}
|
|
@@ -36,6 +36,18 @@ export declare function normalizeLinkInput(input: string): {
|
|
|
36
36
|
export declare function linkIdentity(url: string): string;
|
|
37
37
|
/** Trim a title to the editor's limit, counting characters rather than UTF-16 units. */
|
|
38
38
|
export declare function clampLinkTitle(title: string): string;
|
|
39
|
-
/**
|
|
40
|
-
export
|
|
39
|
+
/** What the link form hands back when it is dismissed. */
|
|
40
|
+
export type LinkFormResult = {
|
|
41
|
+
kind: 'save';
|
|
42
|
+
url: string;
|
|
43
|
+
title: string;
|
|
44
|
+
} | {
|
|
45
|
+
kind: 'remove';
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The list after a link form result. A save appends a new link (if the profile
|
|
49
|
+
* has room) or replaces the link at `index`; a remove drops it. `newId` makes
|
|
50
|
+
* the id of an appended link, so the caller decides how ids are minted.
|
|
51
|
+
*/
|
|
52
|
+
export declare function applyLinkFormResult(items: readonly LinkListItem[], index: number | null, result: LinkFormResult, maxLinks: number, newId: () => string): LinkListItem[];
|
|
41
53
|
//# sourceMappingURL=linkFormat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkFormat.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/linkFormat.ts"],"names":[],"mappings":"AAMA,6EAA6E;AAC7E,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MACS,CAAC;AAErD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U1E;AAED,uDAAuD;AACvD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,CAAC;AAE1F;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,cAAc,CAAA;CAAE,CAgB7F;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAShD;AAED,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,0DAA0D;AAC1D,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE/F;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,MAAM,GAClB,YAAY,EAAE,CAehB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The provider's session source on a platform that holds the Oxy session
|
|
3
|
+
* (ADR 0058 decision 1).
|
|
4
|
+
*
|
|
5
|
+
* Headless: it reads an {@link OxySessionHost} and drives the provider's
|
|
6
|
+
* runtime (ADR 0004) and the client's two auth seams with it. Nothing here
|
|
7
|
+
* persists anything, mints anything, or touches `/session/device/*`:
|
|
8
|
+
*
|
|
9
|
+
* - `http.setAccessTokenProvider` answers the host's last token from memory;
|
|
10
|
+
* `http.setAuthRefreshHandler` asks the host (`preflight`, `response-401`).
|
|
11
|
+
* - A snapshot whose `revision` (or status, or account) changes is ONE context
|
|
12
|
+
* transition, in ADR 0002's order: the token is dropped and the session
|
|
13
|
+
* epoch bumped, a token for the new account is awaited, and only then is the
|
|
14
|
+
* account published.
|
|
15
|
+
* - Offline the account is published with no token: `canUsePrivateApi` stays
|
|
16
|
+
* false and the app shows what it cached under that account's id.
|
|
17
|
+
* - Sign-in, switch, sign-out and account management are the platform's:
|
|
18
|
+
* {@link HostSession.request} hands them over and changes nothing here.
|
|
19
|
+
*/
|
|
20
|
+
import type { OxyServices, User } from '@oxy.so/core';
|
|
21
|
+
import type { OxyHostAccount, OxyHostRequest, OxyHostSnapshot, OxySessionHost } from '@oxy.so/core/host';
|
|
22
|
+
import type { OxyRuntime } from '../runtime/index.js';
|
|
23
|
+
/**
|
|
24
|
+
* Thrown by an operation a hosted provider leaves to the platform that holds
|
|
25
|
+
* the session (ADR 0058 decision 1): a sign-in this app would commit itself,
|
|
26
|
+
* device management, a switch that must return the new account. The platform's
|
|
27
|
+
* own UI does these; the result reaches the app as a snapshot.
|
|
28
|
+
*/
|
|
29
|
+
export declare class HostedSessionError extends Error {
|
|
30
|
+
readonly operation: string;
|
|
31
|
+
readonly code = "oxy_session_hosted";
|
|
32
|
+
constructor(operation: string);
|
|
33
|
+
}
|
|
34
|
+
/** How long a context transition waits for the host's token before publishing the account without one. */
|
|
35
|
+
export declare const HOST_TOKEN_DEADLINE_MS = 10000;
|
|
36
|
+
export interface HostSessionOptions {
|
|
37
|
+
host: OxySessionHost;
|
|
38
|
+
oxyServices: OxyServices;
|
|
39
|
+
runtime: OxyRuntime;
|
|
40
|
+
/**
|
|
41
|
+
* The account changed (`'account'`) or a token for the same account arrived
|
|
42
|
+
* or went (`'token'`). The user socket follows this.
|
|
43
|
+
*/
|
|
44
|
+
onTokenChange?: (kind: 'account' | 'token') => void;
|
|
45
|
+
logger: (message: string, error?: unknown) => void;
|
|
46
|
+
/** Tests. */
|
|
47
|
+
tokenDeadlineMs?: number;
|
|
48
|
+
/** Tests. */
|
|
49
|
+
retryBackoffMs?: readonly number[];
|
|
50
|
+
}
|
|
51
|
+
export interface HostSession {
|
|
52
|
+
/** Begin following the host. Returns the disposer; may be started again after it. */
|
|
53
|
+
start(): () => void;
|
|
54
|
+
/** Hand an action to the platform's own UI. Never changes the session itself. */
|
|
55
|
+
request(action: OxyHostRequest): Promise<void>;
|
|
56
|
+
/** Re-read the host's snapshot now, and fetch a token if one is due. */
|
|
57
|
+
refresh(): Promise<void>;
|
|
58
|
+
/** The platform this session comes from. */
|
|
59
|
+
readonly platform: OxySessionHost['platform'];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The host's snapshot, checked. A host that throws or answers something that is
|
|
63
|
+
* not a snapshot is `unavailable` — signed out, never a reason to sign in here.
|
|
64
|
+
*/
|
|
65
|
+
export declare function readHostSnapshot(host: OxySessionHost): OxyHostSnapshot;
|
|
66
|
+
/** The provider's `User` for the snapshot's account, over what the API said about it. */
|
|
67
|
+
export declare function userFromHostAccount(account: OxyHostAccount, base: User | null): User;
|
|
68
|
+
export declare function createHostSession(options: HostSessionOptions): HostSession;
|
|
69
|
+
//# sourceMappingURL=hostSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostSession.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/hostSession.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,eAAe,EAGf,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAY,CAAC;AAG7C;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAG/B,QAAQ,CAAC,SAAS,EAAE,MAAM;IAFtC,QAAQ,CAAC,IAAI,wBAAwB;gBAEhB,SAAS,EAAE,MAAM;CAMvC;AAED,0GAA0G;AAC1G,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,aAAa;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa;IACb,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,WAAW;IAC1B,qFAAqF;IACrF,KAAK,IAAI,MAAM,IAAI,CAAC;IACpB,iFAAiF;IACjF,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,wEAAwE;IACxE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CAC/C;AA0BD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,eAAe,CAsBtE;AAED,yFAAyF;AACzF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAYpF;AAmBD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,CAgW1E"}
|
|
@@ -2,7 +2,7 @@ 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 { SessionMode } from '@oxy.so/core/session';
|
|
5
|
+
import type { AuthStateStore, SessionMode } from '@oxy.so/core/session';
|
|
6
6
|
import type { WebAuthMode } from '../oauth/types.js';
|
|
7
7
|
import type { ProductAnalytics } from '../analytics/productAnalytics.js';
|
|
8
8
|
export interface StepController {
|
|
@@ -98,6 +98,13 @@ export interface OxyProviderProps {
|
|
|
98
98
|
* skipped — it commits whichever account the IdP resolves, which is not
|
|
99
99
|
* necessarily the local key's owner.
|
|
100
100
|
*
|
|
101
|
+
* On a platform that holds the Oxy session — OxyOS, Astro — the platform
|
|
102
|
+
* registers a session host (`@oxy.so/core/host`, ADR 0058) before the app
|
|
103
|
+
* runs, and an `'account'` provider takes its session from it: the
|
|
104
|
+
* platform's token and account, nothing persisted, and `signIn()`,
|
|
105
|
+
* `openAccountDialog()`, a switch and `logout()` handed to the platform's
|
|
106
|
+
* own UI. The app does not choose. `'identity'` is never hosted.
|
|
107
|
+
*
|
|
101
108
|
* Read once at mount, like `baseURL` / `oxyServices`: changing it on a
|
|
102
109
|
* mounted provider does not re-bind the session.
|
|
103
110
|
* @default 'account'
|
|
@@ -163,6 +170,22 @@ export interface OxyProviderProps {
|
|
|
163
170
|
language?: OxyLanguageConfig;
|
|
164
171
|
/** Persist bounded first-touch link labels and attach them only to a new account. */
|
|
165
172
|
campaignAttribution?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* The seam for a PLATFORM'S SETUP CLIENT (OxyOS's login screen): where this
|
|
175
|
+
* provider persists the session credential instead of the platform's own
|
|
176
|
+
* storage. Every credential write — `{ deviceId, deviceSecret }`, the warm
|
|
177
|
+
* token, the sign-out marker — goes through it and nowhere else: no secure
|
|
178
|
+
* store, no `localStorage`, no shared device slot (the sibling-app lane is
|
|
179
|
+
* off) and no background credential (`backgroundSession` is ignored). The
|
|
180
|
+
* email-code, password and authenticator sign-ins and the "add a password"
|
|
181
|
+
* 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
|
+
*
|
|
184
|
+
* Ordinary apps never pass it. Never combined with a session host: when a
|
|
185
|
+
* platform has registered one (`@oxy.so/core/host`), the host wins and this
|
|
186
|
+
* is ignored. Read once, at mount.
|
|
187
|
+
*/
|
|
188
|
+
authStateStore?: AuthStateStore;
|
|
166
189
|
}
|
|
167
190
|
export interface OxyLanguageConfig {
|
|
168
191
|
/** 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,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
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,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAA+B,CAAC;AAEtE,MAAM,WAAW,cAA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;CACjC;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"}
|
|
@@ -55,6 +55,10 @@ export declare const loadIdentityCrypto: () => Promise<{
|
|
|
55
55
|
retiredKeyFromPhrase: typeof import("@oxy.so/core/crypto").retiredKeyFromPhrase;
|
|
56
56
|
retiredKeyFromPrivateKey: typeof import("@oxy.so/core/crypto").retiredKeyFromPrivateKey;
|
|
57
57
|
exportRetiredIdentityKeys: typeof import("@oxy.so/core/crypto").exportRetiredIdentityKeys;
|
|
58
|
+
claimRetiredIdentityKeys: typeof import("@oxy.so/core/crypto").claimRetiredIdentityKeys;
|
|
59
|
+
countQuarantinedRetiredKeys: typeof import("@oxy.so/core/crypto").countQuarantinedRetiredKeys;
|
|
60
|
+
unmirrorPersonalRetiredKeys: typeof import("@oxy.so/core/crypto").unmirrorPersonalRetiredKeys;
|
|
61
|
+
RetiredKeyRingUnreadableError: typeof import("@oxy.so/core/crypto").RetiredKeyRingUnreadableError;
|
|
58
62
|
SignatureService: typeof import("@oxy.so/core/crypto").SignatureService;
|
|
59
63
|
RecoveryPhraseService: typeof import("@oxy.so/core/crypto").RecoveryPhraseService;
|
|
60
64
|
BACKUP_KDF_ENCRYPTION_INFO: "oxy-backup-encryption-key";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identityCrypto.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/identityCrypto.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"identityCrypto.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/identityCrypto.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/services",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.12.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",
|
|
@@ -183,7 +183,7 @@
|
|
|
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.35.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",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"@types/jest": "^30.0.0",
|
|
197
197
|
"@types/node": "^26.6.6",
|
|
198
198
|
"@types/react": "*",
|
|
199
|
-
"@oxy.so/bloom": "17.
|
|
199
|
+
"@oxy.so/bloom": "17.15.0",
|
|
200
200
|
"copyfiles": "^2.4.1",
|
|
201
201
|
"expo-clipboard": "~58.0.4",
|
|
202
202
|
"expo-constants": "~58.0.15",
|
|
@@ -229,14 +229,14 @@
|
|
|
229
229
|
"zustand": "^5.0.16",
|
|
230
230
|
"expo-video": "~58.0.13"
|
|
231
231
|
},
|
|
232
|
-
"//@oxy.so/bloom": "Bloom
|
|
233
|
-
"//@oxy.so/core": "Core 7.13.0 supplies the `usernamePolicy.*`, `actionErrors.*` and `signin.errors.{network,invalidInput,server}` strings every username field and failure toast is worded with; 7.9.1 fences ordinary authenticated HTTP requests across session changes during auth preflight, which organization claim and creation require; 7.9.0 supplies `deviceComparisonCode`, the short code `OxyDeviceSignIn` prints; 7.8.0 supplies the device sign-in request's `approvalUrl` and the `signin.device.*` strings `OxyDeviceSignIn` shows; 7.7.0 supplies the bounded native asset file adapter and phase progress installed by OxyProvider; 7.6.0 forwards guest locale and first-touch campaign metadata through signup; 7.3.0 supplies `users.lookupMany`, with which the account members screen fails (and retries) a profile read whose chunk failed instead of caching those members as handle-less; 7.2.0 supplies `assets.cachedUrl`, with which `useFileDownloadUrl` answers an already-resolved URL in its first render; 6.16.0 supplies `requireServerVerdict` and `onHolderRejected`, with which the cold boot checks a session it painted from the cache; 6.13.0 supplies the `accounts.settings.*` strings (picture, categories) the account settings speak in every language; 6.12.0 supplies `fileManagement.contentLost` and the `lost` file status a lost file is listed with; 6.11.0 supplies the `follow.errors.*` strings the follow error codes are worded with; 6.4.0 the `follow.*` strings the follow buttons read for every verb and language; 6.1.0 the `oxy.auth.email.{startChange,change,remove}` and `oxy.auth.password.remove` the sign-in & security panels call. Keep one Core instance per app; raise this floor with the root catalogue when new runtime APIs are required.",
|
|
232
|
+
"//@oxy.so/bloom": "Bloom 17.15.0 adds SortableChipRow (the profile links editor). First-party Bloom peers remain open above this tested minimum.",
|
|
233
|
+
"//@oxy.so/core": "Core 7.34.0 supplies `@oxy.so/core/host` (the session host contract, ADR 0058), `createUserEventSocket` and `session.sessionId`, which the provider's host mode is built on; 7.13.0 supplies the `usernamePolicy.*`, `actionErrors.*` and `signin.errors.{network,invalidInput,server}` strings every username field and failure toast is worded with; 7.9.1 fences ordinary authenticated HTTP requests across session changes during auth preflight, which organization claim and creation require; 7.9.0 supplies `deviceComparisonCode`, the short code `OxyDeviceSignIn` prints; 7.8.0 supplies the device sign-in request's `approvalUrl` and the `signin.device.*` strings `OxyDeviceSignIn` shows; 7.7.0 supplies the bounded native asset file adapter and phase progress installed by OxyProvider; 7.6.0 forwards guest locale and first-touch campaign metadata through signup; 7.3.0 supplies `users.lookupMany`, with which the account members screen fails (and retries) a profile read whose chunk failed instead of caching those members as handle-less; 7.2.0 supplies `assets.cachedUrl`, with which `useFileDownloadUrl` answers an already-resolved URL in its first render; 6.16.0 supplies `requireServerVerdict` and `onHolderRejected`, with which the cold boot checks a session it painted from the cache; 6.13.0 supplies the `accounts.settings.*` strings (picture, categories) the account settings speak in every language; 6.12.0 supplies `fileManagement.contentLost` and the `lost` file status a lost file is listed with; 6.11.0 supplies the `follow.errors.*` strings the follow error codes are worded with; 6.4.0 the `follow.*` strings the follow buttons read for every verb and language; 6.1.0 the `oxy.auth.email.{startChange,change,remove}` and `oxy.auth.password.remove` the sign-in & security panels call. Keep one Core instance per app; raise this floor with the root catalogue when new runtime APIs are required.",
|
|
234
234
|
"//react-native": "React Native 0.81 to 0.88, React 19.1+ and Expo SDK 54 to 58. The floors are the Expo SDK 54 stack (react-native 0.81.6, react 19.1.4, react-native-web 0.21.4, expo 54.0.38 and the module versions its bundledNativeModules.json pins), which compat/expo-54 installs as an external consumer and checks on every CI run (`bun check.mjs`): every peer here admits that stack, services' published src typechecks against its types, and <OxyProvider> mounts and settles its cold boot on iOS (React Native 0.81), web (react-native-web 0.21) and react-native-macos 0.81 with the native modules macOS lacks absent. Astro, Oxy's browser, runs react-native-macos 0.81 (0.83 is its latest release), which is why the floor is not 0.85. The SDK 56 floors these replaced were the versions current when the ranges were first written, not measurements.",
|
|
235
235
|
"peerDependencies": {
|
|
236
236
|
"@expo/app-integrity": ">=0.1.10 <59.0.0",
|
|
237
237
|
"@expo/vector-icons": "^15.0.3",
|
|
238
|
-
"@oxy.so/bloom": ">=
|
|
239
|
-
"@oxy.so/core": "^7.
|
|
238
|
+
"@oxy.so/bloom": ">=17.15.0",
|
|
239
|
+
"@oxy.so/core": "^7.34.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",
|
|
Binary file
|
|
Binary file
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"ionicons": {
|
|
6
6
|
"fontFamily": "OxyServicesIonicons",
|
|
7
7
|
"file": "src/assets/fonts/icons/OxyServicesIonicons.ttf",
|
|
8
|
-
"bytes":
|
|
9
|
-
"sha256": "
|
|
8
|
+
"bytes": 42812,
|
|
9
|
+
"sha256": "d205e01496e2edf27c1a716c18fae32f2508fd1c5c60d3b5a515135c62c151cb",
|
|
10
10
|
"names": [
|
|
11
11
|
"add",
|
|
12
12
|
"add-circle-outline",
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
"repeat-outline",
|
|
121
121
|
"resize",
|
|
122
122
|
"rocket",
|
|
123
|
+
"save",
|
|
123
124
|
"scale",
|
|
124
125
|
"school-outline",
|
|
125
126
|
"search",
|
|
@@ -153,7 +154,7 @@
|
|
|
153
154
|
"fontFamily": "OxyServicesMaterialCommunityIcons",
|
|
154
155
|
"file": "src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf",
|
|
155
156
|
"bytes": 29268,
|
|
156
|
-
"sha256": "
|
|
157
|
+
"sha256": "b1df564c8c2bc69877db8fd82327e9f850cdf675822a03310f5fac3cbb5a0d4d",
|
|
157
158
|
"names": [
|
|
158
159
|
"account",
|
|
159
160
|
"account-circle",
|
|
@@ -354,5 +355,5 @@
|
|
|
354
355
|
}
|
|
355
356
|
},
|
|
356
357
|
"glyphMapsFile": "src/ui/icons/subsetGlyphMaps.ts",
|
|
357
|
-
"glyphMapsSha256": "
|
|
358
|
+
"glyphMapsSha256": "5c85241254c4d3eca548478eaf10377f8c29be6e6f515e03d67a3e675d358966"
|
|
358
359
|
}
|
package/src/index.ts
CHANGED
|
@@ -81,6 +81,9 @@ export type { OxyProductEvent, ProductAnalytics } from './ui/analytics/productAn
|
|
|
81
81
|
// `sessionMode="identity"` — an identity-bound app authenticates as the owner of
|
|
82
82
|
// the local identity key and cannot switch accounts.
|
|
83
83
|
export { IdentityBoundSessionError } from './ui/session/identityBinding';
|
|
84
|
+
// Thrown by an operation that a platform holding the session (a session host,
|
|
85
|
+
// ADR 0058) does itself: a sign-in this app would commit, device management.
|
|
86
|
+
export { HostedSessionError } from './ui/session/hostSession';
|
|
84
87
|
|
|
85
88
|
// ---------------------------------------------------------------------------
|
|
86
89
|
// Zustand stores
|
|
@@ -107,6 +107,12 @@ export interface RunProviderColdBootOptions {
|
|
|
107
107
|
sessionMode?: SessionMode;
|
|
108
108
|
/** The identity binding required by `sessionMode: 'identity'`. */
|
|
109
109
|
identity?: IdentityBinding;
|
|
110
|
+
/**
|
|
111
|
+
* `false` keeps the device-wide shared credential slot out of this boot (no
|
|
112
|
+
* adopt, no publish): the provider was given a platform's own store
|
|
113
|
+
* (`OxyProviderProps.authStateStore`). Default `true`.
|
|
114
|
+
*/
|
|
115
|
+
useSharedDeviceCredential?: boolean;
|
|
110
116
|
sessionClient: SessionClient;
|
|
111
117
|
/** Provider-owned fresh classifier, also used by explicit action recovery. */
|
|
112
118
|
resolveSessionLane?: () => Promise<'device' | 'oauth'>;
|
|
@@ -204,7 +210,12 @@ async function restoreDeviceSession(
|
|
|
204
210
|
// instead of falling back to signing a challenge with the Commons identity
|
|
205
211
|
// key. `null` on web, where each origin is its own device by design; the
|
|
206
212
|
// core lane is also skipped outright in `sessionMode: 'identity'`.
|
|
207
|
-
|
|
213
|
+
// Off when the provider was given a platform's own store: the credential
|
|
214
|
+
// then lives there and nowhere else.
|
|
215
|
+
sharedDeviceCredential:
|
|
216
|
+
opts.useSharedDeviceCredential === false
|
|
217
|
+
? undefined
|
|
218
|
+
: (createPlatformSharedDeviceCredentialStore() ?? undefined),
|
|
208
219
|
overallDeadlineMs: COLD_BOOT_OVERALL_DEADLINE_MS,
|
|
209
220
|
isOffline: () => offline,
|
|
210
221
|
requireServerVerdict: painted,
|