@oxy.so/services 13.0.0 → 13.2.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/ui/components/ExpoImage.js +13 -0
- package/lib/commonjs/ui/components/ExpoImage.js.map +1 -0
- package/lib/commonjs/ui/components/ExpoImage.macos.js +80 -0
- package/lib/commonjs/ui/components/ExpoImage.macos.js.map +1 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.macos.js +19 -0
- package/lib/commonjs/ui/components/KeyboardBoundary.macos.js.map +1 -0
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +3 -3
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +2 -2
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +17 -15
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js +50 -15
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/commonjs/ui/hooks/persistedQueryCache.js +10 -4
- package/lib/commonjs/ui/hooks/persistedQueryCache.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js +9 -15
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/oauth/nativeAuthTransport.js +1 -1
- package/lib/commonjs/ui/oauth/nativeAuthTransport.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +2 -2
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +2 -2
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +4 -4
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyOneScreen.js +2 -2
- package/lib/commonjs/ui/screens/OxyOneScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +2 -2
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/utils/imageSize.macos.js +23 -0
- package/lib/commonjs/ui/utils/imageSize.macos.js.map +1 -0
- package/lib/module/ui/components/ExpoImage.js +14 -0
- package/lib/module/ui/components/ExpoImage.js.map +1 -0
- package/lib/module/ui/components/ExpoImage.macos.js +76 -0
- package/lib/module/ui/components/ExpoImage.macos.js.map +1 -0
- package/lib/module/ui/components/KeyboardBoundary.macos.js +14 -0
- package/lib/module/ui/components/KeyboardBoundary.macos.js.map +1 -0
- package/lib/module/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +17 -14
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/accountQueryPersistence.js +50 -15
- package/lib/module/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/module/ui/hooks/persistedQueryCache.js +10 -4
- package/lib/module/ui/hooks/persistedQueryCache.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js +9 -15
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/oauth/nativeAuthTransport.js +1 -1
- package/lib/module/ui/oauth/nativeAuthTransport.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyOneScreen.js +1 -1
- package/lib/module/ui/screens/OxyOneScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/utils/imageSize.macos.js +18 -0
- package/lib/module/ui/utils/imageSize.macos.js.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ExpoImage.d.ts +12 -0
- package/lib/typescript/commonjs/ui/components/ExpoImage.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ExpoImage.macos.d.ts +16 -0
- package/lib/typescript/commonjs/ui/components/ExpoImage.macos.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.macos.d.ts +10 -0
- package/lib/typescript/commonjs/ui/components/KeyboardBoundary.macos.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts +22 -4
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts +5 -3
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +5 -4
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/nativeAuthTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +2 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/imageSize.macos.d.ts +6 -0
- package/lib/typescript/commonjs/ui/utils/imageSize.macos.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ExpoImage.d.ts +12 -0
- package/lib/typescript/module/ui/components/ExpoImage.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ExpoImage.macos.d.ts +16 -0
- package/lib/typescript/module/ui/components/ExpoImage.macos.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.macos.d.ts +10 -0
- package/lib/typescript/module/ui/components/KeyboardBoundary.macos.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts +22 -4
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts +5 -3
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts +5 -4
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/index.d.ts +1 -1
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/nativeAuthTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts +2 -0
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/imageSize.macos.d.ts +6 -0
- package/lib/typescript/module/ui/utils/imageSize.macos.d.ts.map +1 -0
- package/package.json +33 -32
- package/src/index.ts +1 -1
- package/src/ui/components/ExpoImage.macos.tsx +59 -0
- package/src/ui/components/ExpoImage.tsx +11 -0
- package/src/ui/components/KeyboardBoundary.macos.tsx +8 -0
- package/src/ui/components/fileManagement/FileViewer.tsx +1 -1
- package/src/ui/components/fileManagement/UploadPreview.tsx +1 -1
- package/src/ui/context/OxyContext.tsx +27 -19
- package/src/ui/hooks/accountQueryPersistence.ts +61 -16
- package/src/ui/hooks/persistedQueryCache.ts +13 -5
- package/src/ui/hooks/queryClient.ts +12 -18
- package/src/ui/index.ts +1 -1
- package/src/ui/oauth/nativeAuthTransport.ts +5 -1
- package/src/ui/screens/AvatarCropScreen.tsx +1 -1
- package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
- package/src/ui/screens/FileManagementScreen.tsx +1 -1
- package/src/ui/screens/OxyOneScreen.tsx +1 -1
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +1 -1
- package/src/ui/types/navigation.ts +2 -0
- package/src/ui/utils/imageSize.macos.ts +18 -0
|
@@ -46,7 +46,7 @@ import Animated, {
|
|
|
46
46
|
withTiming,
|
|
47
47
|
} from 'react-native-reanimated';
|
|
48
48
|
import { useQuery, keepPreviousData } from '@tanstack/react-query';
|
|
49
|
-
import {
|
|
49
|
+
import { ExpoImage } from '../components/ExpoImage';
|
|
50
50
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
51
51
|
import { logger } from '@oxy.so/core';
|
|
52
52
|
import { useOxy } from '../context/oxyRuntimeContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useCallback, useMemo } from 'react';
|
|
2
2
|
import { View, StyleSheet, type TextInputProps } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ExpoImage } from '../components/ExpoImage';
|
|
4
4
|
import Ionicons from '../icons/Ionicons';
|
|
5
5
|
import type { BaseScreenProps } from '../types/navigation';
|
|
6
6
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
@@ -8,7 +8,7 @@ import { type ComponentRef, useState, useCallback, useMemo, useRef } from 'react
|
|
|
8
8
|
import { View, StyleSheet, ScrollView, RefreshControl, useWindowDimensions } from 'react-native';
|
|
9
9
|
import { Text } from '@oxy.so/bloom/typography';
|
|
10
10
|
import { useQueryClient } from '@tanstack/react-query';
|
|
11
|
-
import {
|
|
11
|
+
import { ExpoImage } from '../components/ExpoImage';
|
|
12
12
|
import type { FileManagementScreenProps } from '../types/fileManagement';
|
|
13
13
|
import { toast } from '@oxy.so/bloom/toast';
|
|
14
14
|
import { surfaces } from '@oxy.so/bloom/surfaces';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext, useState } from 'react';
|
|
2
2
|
import { Linking, View } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { ExpoImage } from '../components/ExpoImage';
|
|
4
4
|
import { SubscriptionPlans } from '@oxy.so/bloom/subscription-plans';
|
|
5
5
|
import {
|
|
6
6
|
SegmentedControl,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
type LayoutChangeEvent,
|
|
13
13
|
} from 'react-native';
|
|
14
14
|
import { Text } from '@oxy.so/bloom/typography';
|
|
15
|
-
import {
|
|
15
|
+
import { ExpoImage } from '../../components/ExpoImage';
|
|
16
16
|
import Ionicons from '../../icons/Ionicons';
|
|
17
17
|
import MaterialCommunityIcons from '../../icons/MaterialCommunityIcons';
|
|
18
18
|
import type { FileMetadata } from '@oxy.so/core';
|
|
@@ -150,6 +150,8 @@ export interface OxyProviderProps {
|
|
|
150
150
|
* account switch and deleted on sign-out. `RequireOxyAuth` waits for the
|
|
151
151
|
* signed-in account's cache to restore, so another account's rows never
|
|
152
152
|
* render. Works with the SDK's client or one passed as `queryClient`.
|
|
153
|
+
* A single query opts in with `meta: { persist: 'account' }` and needs no
|
|
154
|
+
* declaration here (`AccountQueryMeta`).
|
|
153
155
|
*/
|
|
154
156
|
accountQueries?: AccountQueriesConfig;
|
|
155
157
|
/**
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-native-macos fork of `imageSize.ts`: expo-image has no macOS
|
|
3
|
+
* implementation (see `components/ExpoImage.macos.tsx`), so the size comes
|
|
4
|
+
* from react-native's `Image.getSize`, which react-native-macos answers through
|
|
5
|
+
* NSImage. Fresco, the reason the Android fork avoids it, is Android-only.
|
|
6
|
+
*/
|
|
7
|
+
import { Image } from 'react-native';
|
|
8
|
+
|
|
9
|
+
export interface ImageSize {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function getImageSize(uri: string): Promise<ImageSize> {
|
|
15
|
+
return new Promise<ImageSize>((resolve, reject) => {
|
|
16
|
+
Image.getSize(uri, (width, height) => resolve({ width, height }), reject);
|
|
17
|
+
});
|
|
18
|
+
}
|