@oxyhq/services 28.0.0 → 29.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +10 -9
- package/README.md +65 -2
- package/android/src/main/java/so/oxy/devicesession/OxyDeviceSessionModule.kt +178 -0
- package/android/src/main/java/so/oxy/devicesession/OxyDeviceSessionProvider.kt +99 -0
- package/android/src/main/java/so/oxy/devicesession/OxyDeviceSessionStore.kt +115 -0
- package/expo-module.config.json +1 -0
- package/lib/commonjs/index.js +60 -16
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js +7 -0
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/client.js +12 -7
- package/lib/commonjs/ui/client.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js +10 -27
- package/lib/commonjs/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js +132 -44
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +4 -2
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js +31 -3
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +209 -84
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js +25 -7
- package/lib/commonjs/ui/components/authChooser/SignInEntryView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/primitives.js +35 -22
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js +11 -0
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +257 -306
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +27 -37
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/oxyContextHelpers.js +0 -29
- package/lib/commonjs/ui/context/oxyContextHelpers.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +6 -17
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js +42 -0
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js.map +1 -0
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +0 -19
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js +57 -0
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -0
- package/lib/commonjs/ui/hooks/useI18n.js +22 -3
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +46 -153
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/index.js +12 -7
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js +85 -73
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaces.js +8 -7
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
- package/lib/commonjs/ui/runtime/createOxyRuntime.js +433 -0
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -0
- package/lib/commonjs/ui/runtime/index.js +63 -0
- package/lib/commonjs/ui/runtime/index.js.map +1 -0
- package/lib/commonjs/ui/runtime/runtimeContext.js +83 -0
- package/lib/commonjs/ui/runtime/runtimeContext.js.map +1 -0
- package/lib/commonjs/ui/runtime/types.js +6 -0
- package/lib/commonjs/ui/runtime/types.js.map +1 -0
- package/lib/commonjs/ui/runtime/useRuntimeSnapshot.js +57 -0
- package/lib/commonjs/ui/runtime/useRuntimeSnapshot.js.map +1 -0
- package/lib/commonjs/ui/server.js +1 -2
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/session/authStore.js +45 -9
- package/lib/commonjs/ui/session/authStore.js.map +1 -1
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js +306 -0
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -0
- package/lib/commonjs/ui/stores/authStore.js +154 -55
- package/lib/commonjs/ui/stores/authStore.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +2 -36
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/index.js +16 -8
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js +7 -0
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/client.js +1 -2
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/OxyAccountDialogScreen.js +10 -27
- package/lib/module/ui/components/OxyAccountDialogScreen.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js +134 -44
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +5 -3
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/SurfaceScreen.js +33 -5
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +210 -85
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/SignInEntryView.js +25 -7
- package/lib/module/ui/components/authChooser/SignInEntryView.js.map +1 -1
- package/lib/module/ui/components/authChooser/primitives.js +35 -22
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js +11 -0
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +251 -303
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +27 -37
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/oxyContextHelpers.js +0 -28
- package/lib/module/ui/context/oxyContextHelpers.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js +6 -17
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/accountDialogSnapshot.js +38 -0
- package/lib/module/ui/hooks/accountDialogSnapshot.js.map +1 -0
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +0 -19
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js +53 -0
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -0
- package/lib/module/ui/hooks/useI18n.js +24 -4
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +47 -155
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/index.js +1 -2
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/routes.js +84 -72
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/surfaces.js +6 -6
- package/lib/module/ui/navigation/surfaces.js.map +1 -1
- package/lib/module/ui/runtime/createOxyRuntime.js +430 -0
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -0
- package/lib/module/ui/runtime/index.js +15 -0
- package/lib/module/ui/runtime/index.js.map +1 -0
- package/lib/module/ui/runtime/runtimeContext.js +75 -0
- package/lib/module/ui/runtime/runtimeContext.js.map +1 -0
- package/lib/module/ui/runtime/types.js +4 -0
- package/lib/module/ui/runtime/types.js.map +1 -0
- package/lib/module/ui/runtime/useRuntimeSnapshot.js +52 -0
- package/lib/module/ui/runtime/useRuntimeSnapshot.js.map +1 -0
- package/lib/module/ui/server.js +0 -1
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/session/authStore.js +46 -11
- package/lib/module/ui/session/authStore.js.map +1 -1
- package/lib/module/ui/session/sharedDeviceCredentialStore.js +302 -0
- package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -0
- package/lib/module/ui/stores/authStore.js +154 -55
- package/lib/module/ui/stores/authStore.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +2 -35
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +5 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +1 -2
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts +11 -4
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts +3 -1
- package/lib/typescript/commonjs/ui/components/authChooser/SignInEntryView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +18 -6
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts +33 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +35 -4
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts +8 -12
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts +0 -2
- package/lib/typescript/commonjs/ui/context/oxyContextHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +9 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts +1 -3
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts +15 -0
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts +49 -0
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts +13 -0
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +23 -18
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +1 -2
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts +15 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts +144 -0
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/index.d.ts +16 -0
- package/lib/typescript/commonjs/ui/runtime/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts +43 -0
- package/lib/typescript/commonjs/ui/runtime/runtimeContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/types.d.ts +89 -0
- package/lib/typescript/commonjs/ui/runtime/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/runtime/useRuntimeSnapshot.d.ts +23 -0
- package/lib/typescript/commonjs/ui/runtime/useRuntimeSnapshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/server.d.ts +0 -1
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts +60 -9
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts +32 -0
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts +49 -5
- package/lib/typescript/commonjs/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +26 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts +2 -10
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +5 -3
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +1 -2
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAccountDialogScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts +11 -4
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts +3 -1
- package/lib/typescript/module/ui/components/authChooser/SignInEntryView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +18 -6
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts +33 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +35 -4
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts +8 -12
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts +0 -2
- package/lib/typescript/module/ui/context/oxyContextHelpers.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +9 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts +1 -3
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts +15 -0
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts +49 -0
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useI18n.d.ts +13 -0
- package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +23 -18
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +1 -2
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts +15 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts +144 -0
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/index.d.ts +16 -0
- package/lib/typescript/module/ui/runtime/index.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts +43 -0
- package/lib/typescript/module/ui/runtime/runtimeContext.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/types.d.ts +89 -0
- package/lib/typescript/module/ui/runtime/types.d.ts.map +1 -0
- package/lib/typescript/module/ui/runtime/useRuntimeSnapshot.d.ts +23 -0
- package/lib/typescript/module/ui/runtime/useRuntimeSnapshot.d.ts.map +1 -0
- package/lib/typescript/module/ui/server.d.ts +0 -1
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts +60 -9
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts +32 -0
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -0
- package/lib/typescript/module/ui/stores/authStore.d.ts +49 -5
- package/lib/typescript/module/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +26 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts +2 -10
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/package.json +6 -7
- package/plugins/withSharedDeviceSessionProvider.js +102 -0
- package/plugins/withSharedDeviceSessionReader.js +57 -0
- package/src/__tests__/esmSourcePurity.test.ts +61 -0
- package/src/index.ts +31 -9
- package/src/ui/boot/runProviderColdBoot.ts +7 -0
- package/src/ui/client.ts +1 -2
- package/src/ui/components/OxyAccountDialogScreen.tsx +10 -29
- package/src/ui/components/OxyAuthChooser.tsx +149 -50
- package/src/ui/components/OxyProvider.tsx +7 -5
- package/src/ui/components/SurfaceScreen.tsx +28 -4
- package/src/ui/components/authChooser/AccountsMenuView.tsx +246 -96
- package/src/ui/components/authChooser/SignInEntryView.tsx +31 -8
- package/src/ui/components/authChooser/primitives.tsx +37 -23
- package/src/ui/components/authChooser/types.ts +34 -1
- package/src/ui/context/OxyContext.tsx +269 -324
- package/src/ui/context/hooks/useAuthOperations.ts +32 -35
- package/src/ui/context/oxyContextHelpers.ts +0 -30
- package/src/ui/context/oxyContextTypes.ts +9 -1
- package/src/ui/context/useOxyAccountGraph.ts +5 -19
- package/src/ui/hooks/accountDialogSnapshot.ts +37 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +0 -19
- package/src/ui/hooks/queries/__tests__/userCache.test.ts +12 -1
- package/src/ui/hooks/useDeviceSwitcher.ts +110 -0
- package/src/ui/hooks/useI18n.ts +23 -3
- package/src/ui/hooks/useSessionManagement.ts +62 -211
- package/src/ui/index.ts +1 -2
- package/src/ui/navigation/routes.ts +85 -75
- package/src/ui/navigation/surfaces.ts +6 -9
- package/src/ui/runtime/createOxyRuntime.ts +623 -0
- package/src/ui/runtime/index.ts +34 -0
- package/src/ui/runtime/runtimeContext.tsx +111 -0
- package/src/ui/runtime/types.ts +110 -0
- package/src/ui/runtime/useRuntimeSnapshot.ts +52 -0
- package/src/ui/server.ts +0 -1
- package/src/ui/session/__tests__/authStore.test.ts +90 -0
- package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +289 -0
- package/src/ui/session/authStore.ts +78 -9
- package/src/ui/session/sharedDeviceCredentialStore.ts +318 -0
- package/src/ui/stores/authStore.ts +171 -43
- package/src/ui/types/navigation.ts +26 -0
- package/src/ui/utils/avatarUtils.ts +2 -37
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js +0 -64
- package/lib/commonjs/ui/hooks/useSwitchableAccounts.js.map +0 -1
- package/lib/commonjs/ui/stores/accountStore.js +0 -221
- package/lib/commonjs/ui/stores/accountStore.js.map +0 -1
- package/lib/module/ui/hooks/useSwitchableAccounts.js +0 -60
- package/lib/module/ui/hooks/useSwitchableAccounts.js.map +0 -1
- package/lib/module/ui/stores/accountStore.js +0 -213
- package/lib/module/ui/stores/accountStore.js.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts +0 -23
- package/lib/typescript/commonjs/ui/hooks/useSwitchableAccounts.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/stores/accountStore.d.ts +0 -27
- package/lib/typescript/commonjs/ui/stores/accountStore.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts +0 -23
- package/lib/typescript/module/ui/hooks/useSwitchableAccounts.d.ts.map +0 -1
- package/lib/typescript/module/ui/stores/accountStore.d.ts +0 -27
- package/lib/typescript/module/ui/stores/accountStore.d.ts.map +0 -1
- package/src/ui/hooks/useSwitchableAccounts.ts +0 -75
- package/src/ui/stores/accountStore.ts +0 -264
|
@@ -1,92 +1,104 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
// This prevents screens (which import OxyContext) from being loaded
|
|
5
|
-
// before OxyContext is fully initialized
|
|
3
|
+
import { lazy } from 'react';
|
|
6
4
|
|
|
7
5
|
// Define all available route names
|
|
8
6
|
|
|
9
7
|
// Unified account switcher + sign-in surface (OxyAccountDialogScreen body)
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The component for each route, loaded on demand.
|
|
11
|
+
*
|
|
12
|
+
* Every entry is `lazy(() => import(...))`: the screen module is fetched and
|
|
13
|
+
* evaluated the first time its surface is presented, never at import time. That
|
|
14
|
+
* matters twice over — screens import `OxyContext`, which reaches back here, so
|
|
15
|
+
* eager evaluation would run screens mid-cycle; and it keeps native-only screen
|
|
16
|
+
* dependencies out of the evaluation path of every consumer that merely touches
|
|
17
|
+
* the SDK.
|
|
18
|
+
*
|
|
19
|
+
* What defers the load must NOT be `require()`. `@oxyhq/services` ships an ESM
|
|
20
|
+
* build, and a `require()` in ESM output forces web bundlers into CommonJS
|
|
21
|
+
* interop: rolldown-vite defers every module in the required subgraph behind a
|
|
22
|
+
* lazy initializer and then hands a consumer that statically imported one of
|
|
23
|
+
* them the still-`undefined` binding. That is how `OxySignInRequestSurface`
|
|
24
|
+
* reached auth.oxy.so/authorize as `undefined` and blanked the page with React
|
|
25
|
+
* error #130 — this registry pulled `OxyAccountDialogScreen`, and the whole
|
|
26
|
+
* sign-in surface subgraph with it, through `require()`.
|
|
27
|
+
*
|
|
28
|
+
* The value type is `ComponentType<never>`, which every screen satisfies. A few
|
|
29
|
+
* screens (`Profile`, `PaymentGateway`, `UserLinks`, `FollowersList`,
|
|
30
|
+
* `FollowingList`) declare props BEYOND {@link BaseScreenProps} — `userId`,
|
|
31
|
+
* `amount` — that only reach them through the route's untyped props bag
|
|
32
|
+
* (`present(route, props)`), so this map cannot prove they are satisfied. The
|
|
33
|
+
* previous `require()` returned `any` and hid that entirely; stating it here
|
|
34
|
+
* confines the gap to one documented widening in {@link getScreenComponent}.
|
|
35
|
+
*/
|
|
36
|
+
const screenComponents = {
|
|
37
|
+
ManageAccount: /*#__PURE__*/lazy(() => import('../screens/ManageAccountScreen')),
|
|
38
|
+
AccountVerification: /*#__PURE__*/lazy(() => import('../screens/AccountVerificationScreen')),
|
|
39
|
+
PaymentGateway: /*#__PURE__*/lazy(() => import('../screens/PaymentGatewayScreen')),
|
|
40
|
+
Profile: /*#__PURE__*/lazy(() => import('../screens/ProfileScreen')),
|
|
41
|
+
LanguageSelector: /*#__PURE__*/lazy(() => import('../screens/LanguageSelectorScreen')),
|
|
42
|
+
PrivacySettings: /*#__PURE__*/lazy(() => import('../screens/PrivacySettingsScreen')),
|
|
43
|
+
SearchSettings: /*#__PURE__*/lazy(() => import('../screens/SearchSettingsScreen')),
|
|
44
|
+
FileManagement: /*#__PURE__*/lazy(() => import('../screens/FileManagementScreen')),
|
|
45
|
+
HelpSupport: /*#__PURE__*/lazy(() => import('../screens/HelpSupportScreen')),
|
|
46
|
+
FAQ: /*#__PURE__*/lazy(() => import('../screens/FAQScreen')),
|
|
47
|
+
Feedback: /*#__PURE__*/lazy(() => import('../screens/FeedbackScreen')),
|
|
48
|
+
LegalDocuments: /*#__PURE__*/lazy(() => import('../screens/LegalDocumentsScreen')),
|
|
49
|
+
AppInfo: /*#__PURE__*/lazy(() => import('../screens/AppInfoScreen')),
|
|
50
|
+
PremiumSubscription: /*#__PURE__*/lazy(() => import('../screens/PremiumSubscriptionScreen')),
|
|
51
|
+
WelcomeNewUser: /*#__PURE__*/lazy(() => import('../screens/WelcomeNewUserScreen')),
|
|
52
|
+
UserLinks: /*#__PURE__*/lazy(() => import('../screens/UserLinksScreen')),
|
|
53
|
+
HistoryView: /*#__PURE__*/lazy(() => import('../screens/HistoryViewScreen')),
|
|
54
|
+
SavesCollections: /*#__PURE__*/lazy(() => import('../screens/SavesCollectionsScreen')),
|
|
55
|
+
EditProfile: /*#__PURE__*/lazy(() => import('../screens/EditProfileScreen')),
|
|
56
|
+
EditProfileField: /*#__PURE__*/lazy(() => import('../screens/EditProfileFieldScreen')),
|
|
34
57
|
// Informational screens
|
|
35
|
-
LearnMoreUsernames: () =>
|
|
58
|
+
LearnMoreUsernames: /*#__PURE__*/lazy(() => import('../screens/LearnMoreUsernamesScreen')),
|
|
36
59
|
// Oxy Trust screens
|
|
37
|
-
TrustCenter: () =>
|
|
38
|
-
TrustLeaderboard: () =>
|
|
39
|
-
TrustRewards: () =>
|
|
40
|
-
TrustRules: () =>
|
|
41
|
-
AboutTrust: () =>
|
|
42
|
-
TrustFAQ: () =>
|
|
60
|
+
TrustCenter: /*#__PURE__*/lazy(() => import('../screens/trust/TrustCenterScreen')),
|
|
61
|
+
TrustLeaderboard: /*#__PURE__*/lazy(() => import('../screens/trust/TrustLeaderboardScreen')),
|
|
62
|
+
TrustRewards: /*#__PURE__*/lazy(() => import('../screens/trust/TrustRewardsScreen')),
|
|
63
|
+
TrustRules: /*#__PURE__*/lazy(() => import('../screens/trust/TrustRulesScreen')),
|
|
64
|
+
AboutTrust: /*#__PURE__*/lazy(() => import('../screens/trust/TrustAboutScreen')),
|
|
65
|
+
TrustFAQ: /*#__PURE__*/lazy(() => import('../screens/trust/TrustFAQScreen')),
|
|
43
66
|
// User list screens (followers/following)
|
|
44
|
-
FollowersList: () =>
|
|
45
|
-
FollowingList: () =>
|
|
46
|
-
CreateAccount: () =>
|
|
47
|
-
AccountMembers: () =>
|
|
48
|
-
AccountSettings: () =>
|
|
49
|
-
ChangeAvatar: () =>
|
|
50
|
-
AvatarCrop: () =>
|
|
51
|
-
Notifications: () =>
|
|
52
|
-
ConnectedApps: () =>
|
|
53
|
-
Preferences: () =>
|
|
67
|
+
FollowersList: /*#__PURE__*/lazy(() => import('../screens/FollowersListScreen')),
|
|
68
|
+
FollowingList: /*#__PURE__*/lazy(() => import('../screens/FollowingListScreen')),
|
|
69
|
+
CreateAccount: /*#__PURE__*/lazy(() => import('../screens/CreateAccountScreen')),
|
|
70
|
+
AccountMembers: /*#__PURE__*/lazy(() => import('../screens/AccountMembersScreen')),
|
|
71
|
+
AccountSettings: /*#__PURE__*/lazy(() => import('../screens/AccountSettingsScreen')),
|
|
72
|
+
ChangeAvatar: /*#__PURE__*/lazy(() => import('../screens/ChangeAvatarScreen')),
|
|
73
|
+
AvatarCrop: /*#__PURE__*/lazy(() => import('../screens/AvatarCropScreen')),
|
|
74
|
+
Notifications: /*#__PURE__*/lazy(() => import('../screens/NotificationsScreen')),
|
|
75
|
+
ConnectedApps: /*#__PURE__*/lazy(() => import('../screens/ConnectedAppsScreen')),
|
|
76
|
+
Preferences: /*#__PURE__*/lazy(() => import('../screens/PreferencesScreen')),
|
|
54
77
|
// Unified account switcher + sign-in surface. Its body lives in the
|
|
55
78
|
// `OxyAccountDialogScreen` component (folded from the standalone dialog); the
|
|
56
79
|
// surface stack provides the Dialog chrome around it.
|
|
57
|
-
AccountDialog: () =>
|
|
80
|
+
AccountDialog: /*#__PURE__*/lazy(() => import('../components/OxyAccountDialogScreen'))
|
|
58
81
|
};
|
|
59
82
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
screenCache.set(routeName, component);
|
|
76
|
-
return component;
|
|
77
|
-
} catch (error) {
|
|
78
|
-
if (__DEV__) {
|
|
79
|
-
console.error(`[Routes] Failed to load screen: ${routeName}`, error);
|
|
80
|
-
}
|
|
81
|
-
return undefined;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return undefined;
|
|
85
|
-
};
|
|
83
|
+
/**
|
|
84
|
+
* Resolve the component for a route.
|
|
85
|
+
*
|
|
86
|
+
* The map is total over {@link RouteName} — the compiler enforces that at its
|
|
87
|
+
* declaration — so this returns `undefined` only for a caller that reached here
|
|
88
|
+
* with an unchecked string; {@link isValidRoute} is how such a caller narrows.
|
|
89
|
+
*
|
|
90
|
+
* The surface host renders the result with {@link BaseScreenProps} merged with
|
|
91
|
+
* the route's own props bag, so that is the type it is handed back as. This one
|
|
92
|
+
* widening is where the gap documented on {@link screenComponents} lives: the map
|
|
93
|
+
* dispatches on a string key, so a screen's extra prop requirements are met at
|
|
94
|
+
* `present(route, props)` call sites, not provable here. No caching is needed —
|
|
95
|
+
* React memoizes each `lazy()` component's module after its first load.
|
|
96
|
+
*/
|
|
97
|
+
export const getScreenComponent = routeName => screenComponents[routeName];
|
|
86
98
|
|
|
87
99
|
// Helper function to check if a route exists
|
|
88
|
-
// Uses the
|
|
100
|
+
// Uses the screenComponents map to check existence without loading the screen
|
|
89
101
|
export const isValidRoute = routeName => {
|
|
90
|
-
return routeName in
|
|
102
|
+
return routeName in screenComponents;
|
|
91
103
|
};
|
|
92
104
|
//# sourceMappingURL=routes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["lazy","screenComponents","ManageAccount","AccountVerification","PaymentGateway","Profile","LanguageSelector","PrivacySettings","SearchSettings","FileManagement","HelpSupport","FAQ","Feedback","LegalDocuments","AppInfo","PremiumSubscription","WelcomeNewUser","UserLinks","HistoryView","SavesCollections","EditProfile","EditProfileField","LearnMoreUsernames","TrustCenter","TrustLeaderboard","TrustRewards","TrustRules","AboutTrust","TrustFAQ","FollowersList","FollowingList","CreateAccount","AccountMembers","AccountSettings","ChangeAvatar","AvatarCrop","Notifications","ConnectedApps","Preferences","AccountDialog","getScreenComponent","routeName","isValidRoute"],"sourceRoot":"../../../../src","sources":["ui/navigation/routes.ts"],"mappings":";;AAAA,SAASA,IAAI,QAA4B,OAAO;;AAGhD;;AAuCuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,gBAAyD,GAAG;EAC9DC,aAAa,eAAEF,IAAI,CAAC,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAC;EACnEG,mBAAmB,eAAEH,IAAI,CAAC,MAAM,MAAM,CAAC,sCAAsC,CAAC,CAAC;EAC/EI,cAAc,eAAEJ,IAAI,CAAC,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC;EACrE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AM,MAAM,CAAC,8BAA8B,CAAC,CAAC;EAC/D;EACA;EACA;EACAuC,aAAa,eAAEvC,IAAI,CAAC,MAAM,MAAM,CAAC,sCAAsC,CAAC;AAC5E,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMwC,kBAAkB,GAAIC,SAAoB,IACnDxC,gBAAgB,CAACwC,SAAS,CAAmC;;AAEjE;AACA;AACA,OAAO,MAAMC,YAAY,GAAID,SAAiB,IAA6B;EACvE,OAAOA,SAAS,IAAIxC,gBAAgB;AACxC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import { createElement } from 'react';
|
|
|
4
4
|
import { surfaces as bloomSurfaces } from '@oxyhq/bloom/surfaces';
|
|
5
5
|
import { getSurfaceConfig } from "./surfaceRegistry.js";
|
|
6
6
|
import { createSurfaceNavStack } from "./surfaceNavStack.js";
|
|
7
|
+
import SurfaceScreen from "../components/SurfaceScreen.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* The SDK's typed surface API — a route registry layered on top of Bloom's
|
|
@@ -148,12 +149,11 @@ function presentInternal(route, props, opts, track) {
|
|
|
148
149
|
...opts
|
|
149
150
|
};
|
|
150
151
|
|
|
151
|
-
//
|
|
152
|
-
//
|
|
153
|
-
// while presenting one renders a
|
|
154
|
-
//
|
|
155
|
-
// the
|
|
156
|
-
const SurfaceScreen = require('../components/SurfaceScreen').default;
|
|
152
|
+
// `SurfaceScreen` is statically imported but only READ here, at presentation
|
|
153
|
+
// time. That keeps the surfaces.ts <-> SurfaceScreen cycle safe (a mounted
|
|
154
|
+
// SurfaceScreen imports these presenters, while presenting one renders a
|
|
155
|
+
// SurfaceScreen) without a `require()` — which ESM output must never contain,
|
|
156
|
+
// see the note on `screenComponents` in `./routes`.
|
|
157
157
|
const result = bloomSurfaces.present(surface => /*#__PURE__*/createElement(SurfaceScreen, {
|
|
158
158
|
navStack,
|
|
159
159
|
surface,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createElement","surfaces","bloomSurfaces","getSurfaceConfig","createSurfaceNavStack","SHEET_PLACEMENT","base","md","FULLSCREEN_SURFACE_STYLE","backgroundColor","overflow","SDK_SURFACE_CHROME","contentPadding","maxHeightRatio","bloomOptionsFor","config","scrollable","morph","header","largeTitle","undefined","presentation","placement","maxWidth","dismissOnBackdrop","style","panelStyle","activeRouteSurfaces","detachedFrontSurface","presentInternal","route","props","opts","track","navStack","bloomOpts","label","
|
|
1
|
+
{"version":3,"names":["createElement","surfaces","bloomSurfaces","getSurfaceConfig","createSurfaceNavStack","SurfaceScreen","SHEET_PLACEMENT","base","md","FULLSCREEN_SURFACE_STYLE","backgroundColor","overflow","SDK_SURFACE_CHROME","contentPadding","maxHeightRatio","bloomOptionsFor","config","scrollable","morph","header","largeTitle","undefined","presentation","placement","maxWidth","dismissOnBackdrop","style","panelStyle","activeRouteSurfaces","detachedFrontSurface","presentInternal","route","props","opts","track","navStack","bloomOpts","label","result","present","surface","instance","navigate","nextRoute","nextProps","top","getTop","replace","goBack","canGoBack","setStep","step","beginFlow","dismiss","dismissResult","requestDismiss","finally","abandonActiveFlow","tracked","push","index","indexOf","splice","presentDetached","presentRoute","topRouteSurface","length","topMorphableSurface","closeAllRouteSurfaces","reverse","navigateWithinOrPresent","stacks","replaceWithinOrPresent","openWithinOrPresent","host","dismissAll","useSurfaces"],"sourceRoot":"../../../../src","sources":["ui/navigation/surfaces.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,OAAO;AAErC,SACEC,QAAQ,IAAIC,aAAa,QAGpB,uBAAuB;AAE9B,SACEC,gBAAgB,QAIX,sBAAmB;AAC1B,SAASC,qBAAqB,QAA8B,sBAAmB;AAC/E,OAAOC,aAAa,MAAM,gCAA6B;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAMC,eAAe,GAAG;EAAEC,IAA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