@oxyhq/services 22.4.2 → 22.6.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/LICENSE +661 -21
- package/README.md +1 -1
- package/lib/commonjs/index.js +20 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +1 -1
- package/lib/commonjs/ui/components/FontLoader.js +18 -145
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
- package/lib/commonjs/ui/components/FontLoader.native.js +88 -0
- package/lib/commonjs/ui/components/FontLoader.native.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +16 -27
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/styles.js +1 -225
- package/lib/commonjs/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +5 -2
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js +7 -0
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +14 -5
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/userCache.js +286 -0
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/commonjs/ui/hooks/useAvatarPicker.js +23 -8
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js +7 -21
- package/lib/commonjs/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js +163 -0
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -0
- package/lib/commonjs/ui/index.js +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +51 -22
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +216 -203
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js +26 -9
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js +44 -0
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js.map +1 -0
- package/lib/commonjs/ui/session/tokenTransport.js +21 -10
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +0 -40
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/index.js +7 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +1 -1
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/FontLoader.js +18 -146
- package/lib/module/ui/components/FontLoader.js.map +1 -1
- package/lib/module/ui/components/FontLoader.native.js +83 -0
- package/lib/module/ui/components/FontLoader.native.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +1 -1
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js +16 -27
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/fileManagement/styles.js +0 -224
- package/lib/module/ui/components/fileManagement/styles.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +5 -2
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js +7 -0
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +14 -5
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/userCache.js +282 -0
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -0
- package/lib/module/ui/hooks/useAvatarPicker.js +23 -8
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useFileDownloadUrl.js +7 -21
- package/lib/module/ui/hooks/useFileDownloadUrl.js.map +1 -1
- package/lib/module/ui/hooks/useResolvedFileUrls.js +157 -0
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -0
- package/lib/module/ui/index.js +1 -1
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +52 -23
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +218 -205
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js +26 -9
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js +39 -0
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js.map +1 -0
- package/lib/module/ui/session/tokenTransport.js +21 -10
- package/lib/module/ui/session/tokenTransport.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +0 -39
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts +14 -5
- package/lib/typescript/commonjs/ui/components/FontLoader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FontLoader.native.d.ts +13 -0
- package/lib/typescript/commonjs/ui/components/FontLoader.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/styles.d.ts +0 -218
- package/lib/typescript/commonjs/ui/components/fileManagement/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +96 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts +3 -2
- package/lib/typescript/commonjs/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts +48 -0
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts +37 -0
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts +15 -8
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +4 -11
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +1 -1
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FontLoader.d.ts +14 -5
- package/lib/typescript/module/ui/components/FontLoader.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FontLoader.native.d.ts +13 -0
- package/lib/typescript/module/ui/components/FontLoader.native.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/styles.d.ts +0 -218
- package/lib/typescript/module/ui/components/fileManagement/styles.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +96 -0
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts +3 -2
- package/lib/typescript/module/ui/hooks/useFileDownloadUrl.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts +48 -0
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -0
- package/lib/typescript/module/ui/index.d.ts +1 -1
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts +37 -0
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -0
- package/lib/typescript/module/ui/session/tokenTransport.d.ts +15 -8
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +4 -11
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/package.json +6 -11
- package/src/index.ts +8 -0
- package/src/ui/components/FontLoader.native.tsx +88 -0
- package/src/ui/components/FontLoader.tsx +16 -151
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +17 -18
- package/src/ui/components/fileManagement/UploadPreview.tsx +1 -1
- package/src/ui/components/fileManagement/styles.ts +0 -225
- package/src/ui/context/hooks/useAuthOperations.ts +5 -2
- package/src/ui/context/useOxyAccountGraph.ts +5 -0
- package/src/ui/hooks/queries/__tests__/userCache.test.ts +361 -0
- package/src/ui/hooks/queries/useAccountQueries.ts +14 -5
- package/src/ui/hooks/queries/userCache.ts +308 -0
- package/src/ui/hooks/useAvatarPicker.ts +27 -7
- package/src/ui/hooks/useFileDownloadUrl.ts +7 -23
- package/src/ui/hooks/useResolvedFileUrls.ts +170 -0
- package/src/ui/screens/FileManagementScreen.tsx +55 -27
- package/src/ui/screens/__tests__/photoGridLayout.test.ts +57 -0
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +215 -213
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +27 -3
- package/src/ui/screens/fileManagement/photoGridLayout.ts +45 -0
- package/src/ui/session/__tests__/tokenTransport.test.ts +25 -10
- package/src/ui/session/tokenTransport.ts +21 -10
- package/src/ui/utils/fileManagement.ts +3 -46
- package/lib/typescript/types/expo-vector-icons.d.ts +0 -22
- package/src/types/expo-vector-icons.d.ts +0 -22
|
@@ -25,7 +25,7 @@ export { useOxy } from './ui/context/OxyContext.js';
|
|
|
25
25
|
export type { OxyContextState } from './ui/context/OxyContext.js';
|
|
26
26
|
export { useAuth } from './ui/hooks/useAuth.js';
|
|
27
27
|
export type { AuthState, AuthActions, UseAuthReturn } from './ui/hooks/useAuth.js';
|
|
28
|
-
export { FontLoader, setupFonts } from './ui/components/FontLoader
|
|
28
|
+
export { FontLoader, setupFonts } from './ui/components/FontLoader';
|
|
29
29
|
export { useAuthStore } from './ui/stores/authStore.js';
|
|
30
30
|
export { useAccountStore } from './ui/stores/accountStore.js';
|
|
31
31
|
export { useAssetStore, useAssets as useAssetsStore, useAsset, useUploadProgress, useAssetLoading, useAssetErrors, useAssetsByApp, useAssetsByEntity, useAssetUsageCount, useIsAssetLinked, } from './ui/stores/assetStore.js';
|
|
@@ -46,6 +46,8 @@ export { createProfileMutation, createGenericMutation, } from './ui/hooks/mutati
|
|
|
46
46
|
export type { ProfileMutationConfig, GenericMutationConfig, } from './ui/hooks/mutations/mutationFactory.js';
|
|
47
47
|
export { mutationKeys } from './ui/hooks/mutations/mutationKeys.js';
|
|
48
48
|
export { queryKeys, invalidateAccountQueries, invalidateUserQueries, invalidateSessionQueries, invalidateDeviceQueries, invalidatePrivacyQueries, invalidateSecurityQueries, invalidateStorageQueries, invalidatePaymentsQueries, invalidateConnectedAppsQueries, invalidateAuthMethodsQueries, } from './ui/hooks/queries/queryKeys.js';
|
|
49
|
+
export { upsertCachedUser, upsertCachedUsers } from './ui/hooks/queries/userCache.js';
|
|
50
|
+
export type { CacheableUser } from './ui/hooks/queries/userCache.js';
|
|
49
51
|
export { useMutationStatus } from './ui/hooks/useMutationStatus.js';
|
|
50
52
|
export type { MutationStatus } from './ui/hooks/useMutationStatus.js';
|
|
51
53
|
export { useOnlineStatus } from './ui/hooks/useOnlineStatus.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAYH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,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AO,IAAI,oBAAoB,EAAE,MAAM,sCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,uCAAoC,CAAC;AAKtF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAoC,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,2BAAwB,CAAC;AAMxD,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,yCAAsC,CAAC"}
|
|
@@ -15,7 +15,7 @@ export { LogoIcon } from './components/logo/LogoIcon.js';
|
|
|
15
15
|
export { LogoText } from './components/logo/LogoText.js';
|
|
16
16
|
export { default as FollowButton } from './components/FollowButton.js';
|
|
17
17
|
export { default as OxyPayButton } from './components/OxyPayButton.js';
|
|
18
|
-
export { FontLoader, setupFonts } from './components/FontLoader
|
|
18
|
+
export { FontLoader, setupFonts } from './components/FontLoader';
|
|
19
19
|
export { useOxy } from './context/OxyContext.js';
|
|
20
20
|
export { useAuth } from './hooks/useAuth.js';
|
|
21
21
|
export type { AuthState, AuthActions, UseAuthReturn } from './hooks/useAuth.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/ui/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC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OAAO,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAAuB,CAAC;AAGxD,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,0BAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAAuB,CAAC"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Font loading — clean default (web, SSR, and any bundler that does not pick a
|
|
4
|
+
* platform variant).
|
|
5
|
+
*
|
|
6
|
+
* Web fonts are Bloom's job: `applyFontFaces()` in `@oxyhq/bloom` injects the
|
|
7
|
+
* Inter / BlomusModernus / Geist Mono `@font-face` rules as self-contained
|
|
8
|
+
* base64 data URLs, so there is nothing for this package to load off native.
|
|
9
|
+
* The real implementation lives in `FontLoader.native.tsx`.
|
|
10
|
+
*
|
|
11
|
+
* Keeping this module free of `expo-font` is load-bearing, not incidental:
|
|
12
|
+
* `expo-font/build/serverContext.web.js` imports `node:async_hooks`, which
|
|
13
|
+
* every browser bundler externalizes. A top-level `expo-font` import here
|
|
14
|
+
* therefore throws at module-evaluation time on web and React never mounts.
|
|
6
15
|
*/
|
|
7
16
|
export declare const FontLoader: ({ children, }: {
|
|
8
17
|
children: React.ReactNode;
|
|
9
18
|
}) => React.JSX.Element;
|
|
10
19
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
20
|
+
* No-op off native. Returns `true` because setup genuinely succeeded — there is
|
|
21
|
+
* simply nothing to do here — so callers do not log a spurious failure.
|
|
13
22
|
*/
|
|
14
23
|
export declare const setupFonts: () => Promise<boolean>;
|
|
15
24
|
//# sourceMappingURL=FontLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontLoader.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/FontLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FontLoader.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/FontLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,GAAI,eAExB;IACC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,sBAAoB,CAAC;AAEtB;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,OAAO,CAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* FontLoader — loads custom fonts in the background while rendering children
|
|
4
|
+
* immediately with system fonts as fallback until the custom fonts are ready.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FontLoader: ({ children, }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* Setup fonts for applications consuming this package on native.
|
|
11
|
+
*/
|
|
12
|
+
export declare const setupFonts: () => Promise<boolean>;
|
|
13
|
+
//# sourceMappingURL=FontLoader.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontLoader.native.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/FontLoader.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2B/B;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,eAExB;IACC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,sBA8BA,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,OAAO,CAiBlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/fileManagement/FileDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAU,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"FileDetailsModal.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/fileManagement/FileDetailsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAU,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,UAAU,qBAAqB;IAC3B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+F5D,CAAC"}
|
|
@@ -383,43 +383,6 @@ export declare const fileManagementStyles: {
|
|
|
383
383
|
flex: number;
|
|
384
384
|
padding: number;
|
|
385
385
|
};
|
|
386
|
-
fileDetailCard: {
|
|
387
|
-
padding: number;
|
|
388
|
-
borderRadius: number;
|
|
389
|
-
borderWidth: number;
|
|
390
|
-
alignItems: "center";
|
|
391
|
-
};
|
|
392
|
-
fileDetailIcon: {
|
|
393
|
-
marginBottom: number;
|
|
394
|
-
};
|
|
395
|
-
fileDetailName: {
|
|
396
|
-
fontSize: number;
|
|
397
|
-
fontWeight: "bold";
|
|
398
|
-
textAlign: "center";
|
|
399
|
-
marginBottom: number;
|
|
400
|
-
};
|
|
401
|
-
fileDetailInfo: {
|
|
402
|
-
width: "100%";
|
|
403
|
-
marginBottom: number;
|
|
404
|
-
};
|
|
405
|
-
detailRow: {
|
|
406
|
-
flexDirection: "row";
|
|
407
|
-
justifyContent: "space-between";
|
|
408
|
-
alignItems: "flex-start";
|
|
409
|
-
marginBottom: number;
|
|
410
|
-
flexWrap: "wrap";
|
|
411
|
-
};
|
|
412
|
-
detailLabel: {
|
|
413
|
-
fontSize: number;
|
|
414
|
-
fontWeight: "500";
|
|
415
|
-
flex: number;
|
|
416
|
-
minWidth: number;
|
|
417
|
-
};
|
|
418
|
-
detailValue: {
|
|
419
|
-
fontSize: number;
|
|
420
|
-
flex: number;
|
|
421
|
-
textAlign: "right";
|
|
422
|
-
};
|
|
423
386
|
modalActions: {
|
|
424
387
|
flexDirection: "row";
|
|
425
388
|
gap: number;
|
|
@@ -859,185 +822,4 @@ export declare const fileManagementStyles: {
|
|
|
859
822
|
borderRadius: number;
|
|
860
823
|
};
|
|
861
824
|
};
|
|
862
|
-
/**
|
|
863
|
-
* Styles for the dedicated photo picker view used when `selectMode + image-only`
|
|
864
|
-
* is active (e.g. the avatar picker context). This view is intentionally
|
|
865
|
-
* flagship-grade: black backdrop, translucent header, edge-to-edge grid.
|
|
866
|
-
*
|
|
867
|
-
* Kept in a separate StyleSheet so the rest of `fileManagementStyles` does not
|
|
868
|
-
* carry a black-background bias when used elsewhere.
|
|
869
|
-
*/
|
|
870
|
-
export declare const photoPickerStyles: {
|
|
871
|
-
root: {
|
|
872
|
-
flex: number;
|
|
873
|
-
backgroundColor: string;
|
|
874
|
-
};
|
|
875
|
-
headerSpacer: {
|
|
876
|
-
backgroundColor: string;
|
|
877
|
-
};
|
|
878
|
-
header: {
|
|
879
|
-
position: "absolute";
|
|
880
|
-
top: number;
|
|
881
|
-
left: number;
|
|
882
|
-
right: number;
|
|
883
|
-
backgroundColor: string;
|
|
884
|
-
flexDirection: "row";
|
|
885
|
-
alignItems: "center";
|
|
886
|
-
justifyContent: "space-between";
|
|
887
|
-
paddingHorizontal: number;
|
|
888
|
-
zIndex: number;
|
|
889
|
-
};
|
|
890
|
-
headerRow: {
|
|
891
|
-
flexDirection: "row";
|
|
892
|
-
alignItems: "center";
|
|
893
|
-
justifyContent: "space-between";
|
|
894
|
-
width: "100%";
|
|
895
|
-
height: number;
|
|
896
|
-
};
|
|
897
|
-
headerSide: {
|
|
898
|
-
flexBasis: number;
|
|
899
|
-
flexGrow: number;
|
|
900
|
-
flexDirection: "row";
|
|
901
|
-
alignItems: "center";
|
|
902
|
-
};
|
|
903
|
-
headerSideRight: {
|
|
904
|
-
justifyContent: "flex-end";
|
|
905
|
-
};
|
|
906
|
-
headerSideLeft: {
|
|
907
|
-
justifyContent: "flex-start";
|
|
908
|
-
};
|
|
909
|
-
headerTitle: {
|
|
910
|
-
fontSize: number;
|
|
911
|
-
fontWeight: "600";
|
|
912
|
-
color: string;
|
|
913
|
-
letterSpacing: number;
|
|
914
|
-
textAlign: "center";
|
|
915
|
-
};
|
|
916
|
-
headerCancel: {
|
|
917
|
-
paddingHorizontal: number;
|
|
918
|
-
paddingVertical: number;
|
|
919
|
-
minHeight: number;
|
|
920
|
-
minWidth: number;
|
|
921
|
-
justifyContent: "center";
|
|
922
|
-
};
|
|
923
|
-
headerCancelText: {
|
|
924
|
-
fontSize: number;
|
|
925
|
-
fontWeight: "500";
|
|
926
|
-
color: string;
|
|
927
|
-
};
|
|
928
|
-
headerPrimaryPill: {
|
|
929
|
-
flexDirection: "row";
|
|
930
|
-
alignItems: "center";
|
|
931
|
-
gap: number;
|
|
932
|
-
paddingHorizontal: number;
|
|
933
|
-
paddingVertical: number;
|
|
934
|
-
borderRadius: number;
|
|
935
|
-
minHeight: number;
|
|
936
|
-
};
|
|
937
|
-
headerPrimaryPillIconOnly: {
|
|
938
|
-
paddingHorizontal: number;
|
|
939
|
-
width: number;
|
|
940
|
-
justifyContent: "center";
|
|
941
|
-
};
|
|
942
|
-
headerPrimaryText: {
|
|
943
|
-
color: string;
|
|
944
|
-
fontSize: number;
|
|
945
|
-
fontWeight: "600";
|
|
946
|
-
};
|
|
947
|
-
headerProgressBarTrack: {
|
|
948
|
-
position: "absolute";
|
|
949
|
-
left: number;
|
|
950
|
-
right: number;
|
|
951
|
-
bottom: number;
|
|
952
|
-
height: number;
|
|
953
|
-
backgroundColor: string;
|
|
954
|
-
};
|
|
955
|
-
headerProgressBarFill: {
|
|
956
|
-
height: "100%";
|
|
957
|
-
};
|
|
958
|
-
grid: {
|
|
959
|
-
flex: number;
|
|
960
|
-
};
|
|
961
|
-
gridContent: {
|
|
962
|
-
paddingBottom: number;
|
|
963
|
-
};
|
|
964
|
-
cellWrapper: {
|
|
965
|
-
position: "relative";
|
|
966
|
-
};
|
|
967
|
-
cellInner: {
|
|
968
|
-
flex: number;
|
|
969
|
-
borderRadius: number;
|
|
970
|
-
overflow: "hidden";
|
|
971
|
-
backgroundColor: string;
|
|
972
|
-
};
|
|
973
|
-
cellImage: {
|
|
974
|
-
width: "100%";
|
|
975
|
-
height: "100%";
|
|
976
|
-
};
|
|
977
|
-
cellRing: {
|
|
978
|
-
position: "absolute";
|
|
979
|
-
top: number;
|
|
980
|
-
left: number;
|
|
981
|
-
right: number;
|
|
982
|
-
bottom: number;
|
|
983
|
-
borderRadius: number;
|
|
984
|
-
borderWidth: number;
|
|
985
|
-
};
|
|
986
|
-
cellDim: {
|
|
987
|
-
opacity: number;
|
|
988
|
-
};
|
|
989
|
-
cellBadge: {
|
|
990
|
-
position: "absolute";
|
|
991
|
-
top: number;
|
|
992
|
-
right: number;
|
|
993
|
-
minWidth: number;
|
|
994
|
-
height: number;
|
|
995
|
-
paddingHorizontal: number;
|
|
996
|
-
borderRadius: number;
|
|
997
|
-
alignItems: "center";
|
|
998
|
-
justifyContent: "center";
|
|
999
|
-
};
|
|
1000
|
-
cellBadgeText: {
|
|
1001
|
-
color: string;
|
|
1002
|
-
fontSize: number;
|
|
1003
|
-
fontWeight: "700";
|
|
1004
|
-
lineHeight: number;
|
|
1005
|
-
};
|
|
1006
|
-
empty: {
|
|
1007
|
-
flex: number;
|
|
1008
|
-
alignItems: "center";
|
|
1009
|
-
justifyContent: "center";
|
|
1010
|
-
paddingHorizontal: number;
|
|
1011
|
-
};
|
|
1012
|
-
emptyIconWrap: {
|
|
1013
|
-
opacity: number;
|
|
1014
|
-
marginBottom: number;
|
|
1015
|
-
};
|
|
1016
|
-
emptyTitle: {
|
|
1017
|
-
fontSize: number;
|
|
1018
|
-
fontWeight: "600";
|
|
1019
|
-
textAlign: "center";
|
|
1020
|
-
marginBottom: number;
|
|
1021
|
-
};
|
|
1022
|
-
emptySubtitle: {
|
|
1023
|
-
fontSize: number;
|
|
1024
|
-
fontWeight: "400";
|
|
1025
|
-
textAlign: "center";
|
|
1026
|
-
opacity: number;
|
|
1027
|
-
marginBottom: number;
|
|
1028
|
-
};
|
|
1029
|
-
emptyCta: {
|
|
1030
|
-
flexDirection: "row";
|
|
1031
|
-
alignItems: "center";
|
|
1032
|
-
gap: number;
|
|
1033
|
-
paddingHorizontal: number;
|
|
1034
|
-
paddingVertical: number;
|
|
1035
|
-
borderRadius: number;
|
|
1036
|
-
};
|
|
1037
|
-
emptyCtaText: {
|
|
1038
|
-
color: string;
|
|
1039
|
-
fontSize: number;
|
|
1040
|
-
fontWeight: "600";
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
825
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/fileManagement/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiE7B;;;OAGG
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/fileManagement/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiE7B;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgvBL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuthOperations.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/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AAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAClD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,uBAAuB;IACtC,uCAAuC;IACvC,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,kCAAkC;IAClC,MAAM,EAAE,CAAC,eAAe,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,+BAA+B;IAC/B,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAMD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,cAAc,EACrB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,GAClD,IAAI,CAIN;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,+PAkB/B,wBAAwB,KAAG,
|
|
1
|
+
{"version":3,"file":"useAuthOperations.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/context/hooks/useAuthOperations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAwB,MAAM,aAAa,CAAC;AAIvE,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,CAAC;IAClD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,uBAAuB;IACtC,uCAAuC;IACvC,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,kCAAkC;IAClC,MAAM,EAAE,CAAC,eAAe,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,+BAA+B;IAC/B,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAMD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,cAAc,EACrB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,GAClD,IAAI,CAIN;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,+PAkB/B,wBAAwB,KAAG,uBAqR7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOxyAccountGraph.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/useOxyAccountGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useOxyAccountGraph.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/useOxyAccountGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMxH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAmB,CAAC;AAErD,UAAU,wBAAwB;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxG,WAAW,EAAE,WAAW,CAAC;IACzB,0BAA0B,EAAE,SAAS,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;IACtE,oBAAoB,EAAE,SAAS,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CACtD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,eAAe,EACf,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,0BAA0B,EAC1B,oBAAoB,GACrB,EAAE,wBAAwB;;2BAGqB,OAAO,CAAC,IAAI,CAAC;iCAsCvC,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;0BAiC3B,kBAAkB,KAAG,OAAO,CAAC,WAAW,CAAC;EAczD"}
|
|
@@ -14,6 +14,15 @@ export declare const useUserProfiles: (sessionIds: string[], options?: {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get current authenticated user.
|
|
16
16
|
*
|
|
17
|
+
* Hydrates from `GET /users/me` (the bearer identifies the session) rather than
|
|
18
|
+
* `GET /session/user/:activeSessionId`. Post zero-cookie cutover the bearer is
|
|
19
|
+
* the single source of session truth, so keying the CURRENT user off a session
|
|
20
|
+
* id in the URL was a second, independently-updated source that could disagree
|
|
21
|
+
* with the bearer during an account switch — the request fired under the
|
|
22
|
+
* previous account's token against the new account's session id and 404'd. The
|
|
23
|
+
* query KEY stays scoped to the active account so the cache re-scopes (and
|
|
24
|
+
* refetches) on a switch; only the URL stopped carrying a session id.
|
|
25
|
+
*
|
|
17
26
|
* The store-mirror effect must NOT overwrite the in-memory user while a
|
|
18
27
|
* write mutation is in flight — otherwise a stale background refetch
|
|
19
28
|
* landing between optimistic update and server-confirmed update would
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccountQueries.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/hooks/queries/useAccountQueries.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAMtD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,GAAG,IAAI,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,yEAevF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,EAAE,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,yEAepF,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"useAccountQueries.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/hooks/queries/useAccountQueries.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAMtD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,GAAG,IAAI,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,yEAevF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,EAAE,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,yEAepF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,yEA2D7D,CAAC;AAsBF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,yEAejF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,GAAG,IAAI,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,yEA6BzF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM,EAAE,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE;;;YAevF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,mFAgB/D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,EAAE,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,0GAwBlF,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical user-cache UPSERT for the Oxy React Query cache.
|
|
3
|
+
*
|
|
4
|
+
* The problem this solves: many places across an app write a user object into
|
|
5
|
+
* the React Query cache and REPLACE the existing entry — profile fetch, feed /
|
|
6
|
+
* post hydration, search, notifications, lists. Each of those sources carries a
|
|
7
|
+
* DIFFERENT (often sparse) slice of the user: a feed author has no viewer
|
|
8
|
+
* `relationship`, a search hit has no `createdAt`, a notification actor has no
|
|
9
|
+
* `_count`. A plain `setQueryData(key, sparseUser)` therefore STRIPS whatever
|
|
10
|
+
* fields the authoritative single-profile fetch had already stored — the
|
|
11
|
+
* "Follows you tag vanishes when the feed loads" / "counts flash to zero" class
|
|
12
|
+
* of bug.
|
|
13
|
+
*
|
|
14
|
+
* The fix (owned here, in the SDK): ONE canonical upsert that MERGES. It writes
|
|
15
|
+
* under BOTH keys the SDK's user hooks read from:
|
|
16
|
+
* - by-id: `queryKeys.users.detail(id)` (read by `useUserById`)
|
|
17
|
+
* - by-username: `queryKeys.users.byUsername(username, viewerId)` (viewer-scoped;
|
|
18
|
+
* read by `useUserByUsername`, carries the viewer `relationship`)
|
|
19
|
+
*
|
|
20
|
+
* Merge semantics (per key):
|
|
21
|
+
* - No existing entry -> seed the (normalized) incoming object and mark it
|
|
22
|
+
* STALE (`updatedAt: 0`) so react-query refetches the full authoritative
|
|
23
|
+
* profile (viewer-relative `relationship`, counts, `createdAt`, …). Instant
|
|
24
|
+
* first paint, then the real fetch.
|
|
25
|
+
* - Existing entry -> `{ ...existing, ...pickMeaningful(incoming) }`: only
|
|
26
|
+
* the DEFINED, non-empty fields of `incoming` win; every other field is kept
|
|
27
|
+
* from `existing`. A sparse source can never NULL-out or STRIP a field the
|
|
28
|
+
* authoritative fetch set. The entry's freshness is left untouched (never
|
|
29
|
+
* marked stale — it is already managed).
|
|
30
|
+
* - Nested objects (`name`, `_count`, `relationship`) merge field-by-field, so
|
|
31
|
+
* a partial `name`/`_count`/`relationship` never replaces a fuller one.
|
|
32
|
+
* - `relationship` is written ONLY under the viewer-scoped by-username key —
|
|
33
|
+
* the viewer-independent by-id key never stores it (prevents one viewer's
|
|
34
|
+
* follow state from leaking into every other viewer's identity cache).
|
|
35
|
+
* - Anti-degradation: a good `username` / `name.displayName` / `avatar` is
|
|
36
|
+
* never overwritten by a degraded/empty one (empty username, the
|
|
37
|
+
* `'Unknown user'` ghost-author sentinel, `null` avatar).
|
|
38
|
+
*
|
|
39
|
+
* It is a cache write only — zero network, one `setQueryData` per key.
|
|
40
|
+
*/
|
|
41
|
+
import type { QueryClient } from '@tanstack/react-query';
|
|
42
|
+
import type { UserNameResponse } from '@oxyhq/contracts';
|
|
43
|
+
/**
|
|
44
|
+
* A user-shaped object that can be upserted into the cache. Intentionally
|
|
45
|
+
* permissive: it covers the SDK `User` PLUS the looser actor objects embedded on
|
|
46
|
+
* posts / notifications / lists, where `name` may be a plain string and the id
|
|
47
|
+
* may arrive as Mongo `_id`. Every field is optional — a sparse feed author is a
|
|
48
|
+
* valid `CacheableUser`. The index signature lets any additional `User` field
|
|
49
|
+
* pass through untouched (so the upsert never has to know the full DTO shape).
|
|
50
|
+
*/
|
|
51
|
+
export interface CacheableUser {
|
|
52
|
+
id?: string;
|
|
53
|
+
/** Some sources (post/notification actors) carry the id as Mongo `_id`. */
|
|
54
|
+
_id?: string;
|
|
55
|
+
username?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Canonical structured name (`UserNameResponse`) OR a plain display string on
|
|
58
|
+
* the looser actor objects. Normalized to the object shape on write.
|
|
59
|
+
*/
|
|
60
|
+
name?: string | UserNameResponse;
|
|
61
|
+
/** Avatar file id. `null`/`''` are treated as "no avatar" (never degrade). */
|
|
62
|
+
avatar?: string | null;
|
|
63
|
+
/** Social counts. A partial `_count` never replaces a fuller one. */
|
|
64
|
+
_count?: {
|
|
65
|
+
followers?: number;
|
|
66
|
+
following?: number;
|
|
67
|
+
} | null;
|
|
68
|
+
/**
|
|
69
|
+
* Viewer-relative follow relationship. Present ONLY on an authenticated
|
|
70
|
+
* single-profile fetch; `null`/absent for anon/self/bulk/feed. Never stripped
|
|
71
|
+
* from an existing entry by a source that lacks it.
|
|
72
|
+
*/
|
|
73
|
+
relationship?: {
|
|
74
|
+
isFollowing?: boolean;
|
|
75
|
+
followsYou?: boolean;
|
|
76
|
+
} | null;
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Merge-upsert a (possibly partial) user into the SDK's user query cache under
|
|
81
|
+
* both the by-id key and, when a username is present, the viewer-scoped
|
|
82
|
+
* by-username key.
|
|
83
|
+
*
|
|
84
|
+
* @param queryClient The app's React Query client.
|
|
85
|
+
* @param user A `User`-shaped object (may be sparse).
|
|
86
|
+
* @param viewerId The active viewer id for the by-username key. Defaults to
|
|
87
|
+
* the current auth-store user id.
|
|
88
|
+
*/
|
|
89
|
+
export declare function upsertCachedUser(queryClient: QueryClient, user: CacheableUser, viewerId?: string): void;
|
|
90
|
+
/**
|
|
91
|
+
* Batch merge-upsert many users at once (for a feed / list / search response).
|
|
92
|
+
* Resolves the viewer id once and upserts each user cumulatively — a user that
|
|
93
|
+
* appears twice merges both slices into the single cache entry.
|
|
94
|
+
*/
|
|
95
|
+
export declare function upsertCachedUsers(queryClient: QueryClient, users: readonly CacheableUser[] | null | undefined, viewerId?: string): void;
|
|
96
|
+
//# sourceMappingURL=userCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userCache.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/hooks/queries/userCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAIzD;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2EAA2E;IAC3E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACjC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,qEAAqE;IACrE,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MA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C,EAC9B,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,EACX,eAAe,GAChB,EAAE,sBAAsB;;
|
|
1
|
+
{"version":3,"file":"useAvatarPicker.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useAvatarPicker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAsB,CAAC;AAItD,UAAU,sBAAsB;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CAC3F;AAkBD,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,EACX,eAAe,GAChB,EAAE,sBAAsB;;EA8GxB"}
|
|
@@ -11,8 +11,9 @@ export interface UseFileDownloadUrlResult {
|
|
|
11
11
|
/**
|
|
12
12
|
* Hook to resolve a file's download URL asynchronously.
|
|
13
13
|
*
|
|
14
|
-
* Uses `getFileDownloadUrlAsync
|
|
15
|
-
*
|
|
14
|
+
* Uses `getFileDownloadUrlAsync`, which returns a scoped media-token stream URL
|
|
15
|
+
* for private assets. There is no sync CDN fallback — the synchronous
|
|
16
|
+
* `getFileDownloadUrl` is public-CDN-only and 404s for private uploads.
|
|
16
17
|
*/
|
|
17
18
|
export declare const useFileDownloadUrl: (oxyServices: OxyServices | null | undefined, fileId: string | null | undefined, options?: UseFileDownloadUrlOptions) => UseFileDownloadUrlResult;
|
|
18
19
|
//# sourceMappingURL=useFileDownloadUrl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFileDownloadUrl.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useFileDownloadUrl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED
|
|
1
|
+
{"version":3,"file":"useFileDownloadUrl.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useFileDownloadUrl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,aAAa,WAAW,GAAG,IAAI,GAAG,SAAS,EAC3C,QAAQ,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,UAAU,yBAAyB,KAClC,wBA6DF,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { FileMetadata } from '@oxyhq/core';
|
|
2
|
+
/**
|
|
3
|
+
* The variant-aware batch resolver contract (`@oxyhq/core`).
|
|
4
|
+
*
|
|
5
|
+
* `getFileDownloadUrls` takes a per-file `{ fileId, variant }` list and returns
|
|
6
|
+
* a map keyed by `fileId`; ids that are denied or missing are OMITTED (never an
|
|
7
|
+
* empty string), and PRIVATE assets resolve to a working scoped-media-token
|
|
8
|
+
* stream URL. Typed here rather than `Pick<OxyServices, …>` so this file states
|
|
9
|
+
* the exact contract it depends on.
|
|
10
|
+
*/
|
|
11
|
+
export interface AssetUrlBatchResolver {
|
|
12
|
+
getFileDownloadUrls(requests: Array<{
|
|
13
|
+
fileId: string;
|
|
14
|
+
variant?: string;
|
|
15
|
+
}>, options?: {
|
|
16
|
+
expiresIn?: number;
|
|
17
|
+
context?: string;
|
|
18
|
+
}): Promise<Record<string, string>>;
|
|
19
|
+
}
|
|
20
|
+
/** React Query prefix — scoped media URLs must never leak across accounts. */
|
|
21
|
+
export declare const ASSET_DOWNLOAD_URLS_QUERY_KEY: "assetDownloadUrls";
|
|
22
|
+
/**
|
|
23
|
+
* True when a file is an optimistic placeholder that has not been persisted by
|
|
24
|
+
* the server yet — either its id is still the client-minted `temp-…` id, or it
|
|
25
|
+
* carries the `uploading` flag. Mirrors the `temp-` id guard precedent in
|
|
26
|
+
* `@oxyhq/core`'s `avatarUtils.updateAvatarVisibility`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isOptimisticFile(file: Pick<FileMetadata, 'id' | 'metadata'>): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Resolve the image source for a grid tile.
|
|
31
|
+
*
|
|
32
|
+
* - Optimistic entry → its locally-picked preview uri (never an asset URL).
|
|
33
|
+
* - Persisted entry → the private-safe URL from {@link useResolvedFileUrls},
|
|
34
|
+
* or `undefined` while it is still resolving / was denied (tile shows a
|
|
35
|
+
* placeholder instead of a guaranteed-404 CDN URL).
|
|
36
|
+
*/
|
|
37
|
+
export declare function fileThumbSource(file: FileMetadata, resolved: ReadonlyMap<string, string>): string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Batch-resolve private-safe thumbnail URLs for the given files.
|
|
40
|
+
*
|
|
41
|
+
* Only image/video, non-optimistic files are resolved (documents render an
|
|
42
|
+
* icon, optimistic entries render their local preview). Returns a stable
|
|
43
|
+
* `Map<fileId, url>`; missing entries mean "not resolved yet or access denied".
|
|
44
|
+
*/
|
|
45
|
+
export declare function useResolvedFileUrls(oxyServices: AssetUrlBatchResolver, files: FileMetadata[],
|
|
46
|
+
/** Active viewer account id — media tokens are minted per user; must be in the query key. */
|
|
47
|
+
viewerId?: string | null): ReadonlyMap<string, string>;
|
|
48
|
+
//# sourceMappingURL=useResolvedFileUrls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResolvedFileUrls.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useResolvedFileUrls.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IACpC,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EACrD,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GACjD,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpC;AAiCD,8EAA8E;AAC9E,eAAO,MAAM,6BAA6B,EAAG,mBAA4B,CAAC;AAE1E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,UAAU,CAAC,GAAG,OAAO,CAGrF;AAkBD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,MAAM,GAAG,SAAS,CAKpB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,qBAAqB,EAClC,KAAK,EAAE,YAAY,EAAE;AACrB,6FAA6F;AAC7F,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GACvB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CA0D7B"}
|
|
@@ -21,7 +21,7 @@ export { RequireOxyAuth } from './components/RequireOxyAuth.js';
|
|
|
21
21
|
export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './components/RequireOxyAuth.js';
|
|
22
22
|
export { default as FollowButton } from './components/FollowButton.js';
|
|
23
23
|
export { default as OxyPayButton } from './components/OxyPayButton.js';
|
|
24
|
-
export { FontLoader, setupFonts } from './components/FontLoader
|
|
24
|
+
export { FontLoader, setupFonts } from './components/FontLoader';
|
|
25
25
|
export { default as ProfileButton } from './components/ProfileButton.js';
|
|
26
26
|
export { useOxy } from './context/OxyContext.js';
|
|
27
27
|
export { useAuth } from './hooks/useAuth.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gCAA6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AAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAoB,CAAC;AAG9E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAgC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,oCAAiC,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAAuB,CAAC;AAGxD,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,0BAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileManagementScreen.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/FileManagementScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAgBjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAAyB,CAAC;AAgFzE,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"FileManagementScreen.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/FileManagementScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAgBjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAAyB,CAAC;AAgFzE,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA82D7D,CAAC;AAIF,eAAe,oBAAoB,CAAC"}
|
|
@@ -21,7 +21,7 @@ export interface PhotoPickerViewProps {
|
|
|
21
21
|
hasMore: boolean;
|
|
22
22
|
loadingMore: boolean;
|
|
23
23
|
reduceMotion: boolean;
|
|
24
|
-
getThumbUrl: (file: FileMetadata
|
|
24
|
+
getThumbUrl: (file: FileMetadata) => string | undefined;
|
|
25
25
|
primaryColor: string;
|
|
26
26
|
isOwner: boolean;
|
|
27
27
|
onTogglePhoto: (photo: FileMetadata) => void;
|