@oxyhq/services 22.5.0 → 22.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +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 +34 -41
- 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/components/photogrid/JustifiedPhotoGrid.js +0 -2
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.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 +10 -4
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/userCache.js +33 -9
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -1
- 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 +227 -204
- 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 +3 -43
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/index.js +1 -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 +34 -41
- 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/components/photogrid/JustifiedPhotoGrid.js +0 -2
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.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 +10 -4
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/userCache.js +33 -9
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -1
- 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 +229 -206
- 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 +3 -42
- package/lib/module/ui/utils/fileManagement.js.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/components/photogrid/JustifiedPhotoGrid.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/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.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 +3 -0
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -1
- 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 +1 -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/components/photogrid/JustifiedPhotoGrid.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/mutations/useAccountMutations.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.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 +3 -0
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -1
- 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 +5 -10
- package/src/ui/components/FontLoader.native.tsx +88 -0
- package/src/ui/components/FontLoader.tsx +16 -151
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +29 -28
- package/src/ui/components/fileManagement/UploadPreview.tsx +1 -1
- package/src/ui/components/fileManagement/styles.ts +0 -225
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +0 -1
- 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 +29 -0
- package/src/ui/hooks/queries/useAccountQueries.ts +10 -4
- package/src/ui/hooks/queries/userCache.ts +31 -8
- 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 +229 -215
- 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 +8 -49
- package/lib/typescript/types/expo-vector-icons.d.ts +0 -22
- package/src/types/expo-vector-icons.d.ts +0 -22
package/lib/commonjs/index.js
CHANGED
|
@@ -668,7 +668,7 @@ var _reactNative = require("react-native");
|
|
|
668
668
|
var _OxyProvider = _interopRequireDefault(require("./ui/components/OxyProvider.js"));
|
|
669
669
|
var _OxyContext = require("./ui/context/OxyContext.js");
|
|
670
670
|
var _useAuth = require("./ui/hooks/useAuth.js");
|
|
671
|
-
var _FontLoader = require("./ui/components/FontLoader
|
|
671
|
+
var _FontLoader = require("./ui/components/FontLoader");
|
|
672
672
|
var _authStore = require("./ui/stores/authStore.js");
|
|
673
673
|
var _accountStore = require("./ui/stores/accountStore.js");
|
|
674
674
|
var _assetStore = require("./ui/stores/assetStore.js");
|
|
@@ -136,7 +136,7 @@ var _LogoIcon = require("./components/logo/LogoIcon.js");
|
|
|
136
136
|
var _LogoText = require("./components/logo/LogoText.js");
|
|
137
137
|
var _FollowButton = _interopRequireDefault(require("./components/FollowButton.js"));
|
|
138
138
|
var _OxyPayButton = _interopRequireDefault(require("./components/OxyPayButton.js"));
|
|
139
|
-
var _FontLoader = require("./components/FontLoader
|
|
139
|
+
var _FontLoader = require("./components/FontLoader");
|
|
140
140
|
var _OxyContext = require("./context/OxyContext.js");
|
|
141
141
|
var _useAuth = require("./hooks/useAuth.js");
|
|
142
142
|
var _useFollow = require("./hooks/useFollow.js");
|
|
@@ -4,159 +4,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.setupFonts = exports.FontLoader = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var Font = _interopRequireWildcard(require("expo-font"));
|
|
10
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
8
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'Inter-ExtraBold': require('../../assets/fonts/Inter/Inter_18pt-ExtraBold.ttf'),
|
|
26
|
-
'Inter-Black': require('../../assets/fonts/Inter/Inter_18pt-Black.ttf')
|
|
27
|
-
};
|
|
28
|
-
} catch (error) {
|
|
29
|
-
if (__DEV__) {
|
|
30
|
-
console.warn('Failed to load Inter fonts:', error);
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* FontLoader component that loads custom fonts in the background while rendering children immediately
|
|
38
|
-
* This works in both the package development and when consumed as an npm package
|
|
39
|
-
* Children render immediately with system fonts as fallback until custom fonts are loaded
|
|
9
|
+
* Font loading — clean default (web, SSR, and any bundler that does not pick a
|
|
10
|
+
* platform variant).
|
|
11
|
+
*
|
|
12
|
+
* Web fonts are Bloom's job: `applyFontFaces()` in `@oxyhq/bloom` injects the
|
|
13
|
+
* Inter / BlomusModernus / Geist Mono `@font-face` rules as self-contained
|
|
14
|
+
* base64 data URLs, so there is nothing for this package to load off native.
|
|
15
|
+
* The real implementation lives in `FontLoader.native.tsx`.
|
|
16
|
+
*
|
|
17
|
+
* Keeping this module free of `expo-font` is load-bearing, not incidental:
|
|
18
|
+
* `expo-font/build/serverContext.web.js` imports `node:async_hooks`, which
|
|
19
|
+
* every browser bundler externalizes. A top-level `expo-font` import here
|
|
20
|
+
* therefore throws at module-evaluation time on web and React never mounts.
|
|
40
21
|
*/
|
|
41
22
|
const FontLoader = ({
|
|
42
23
|
children
|
|
43
|
-
}) => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const loadFonts = async () => {
|
|
47
|
-
try {
|
|
48
|
-
// Get all the font weights
|
|
49
|
-
const interFonts = getInterFonts();
|
|
50
|
-
if (!interFonts) {
|
|
51
|
-
throw new Error('Inter font files not found');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Load all the static Inter fonts with their respective weights
|
|
55
|
-
await Font.loadAsync(interFonts);
|
|
56
|
-
setFontState('loaded');
|
|
57
|
-
} catch (error) {
|
|
58
|
-
if (__DEV__) {
|
|
59
|
-
console.error('Error loading fonts:', error);
|
|
60
|
-
}
|
|
61
|
-
setFontState('error');
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
loadFonts();
|
|
65
|
-
}, []);
|
|
66
|
-
|
|
67
|
-
// Always render children immediately - fonts will load in background
|
|
68
|
-
// If fonts aren't loaded yet, the app will use system fonts as fallback
|
|
69
|
-
if (fontState === 'error' && __DEV__) {
|
|
70
|
-
console.warn('Fonts failed to load. Using system fonts instead.');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Render children immediately, even while fonts are loading
|
|
74
|
-
// Fonts will apply when they're ready, otherwise system fonts are used
|
|
75
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
76
|
-
children: children
|
|
77
|
-
});
|
|
78
|
-
};
|
|
24
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
25
|
+
children: children
|
|
26
|
+
});
|
|
79
27
|
|
|
80
28
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
29
|
+
* No-op off native. Returns `true` because setup genuinely succeeded — there is
|
|
30
|
+
* simply nothing to do here — so callers do not log a spurious failure.
|
|
83
31
|
*/
|
|
84
32
|
exports.FontLoader = FontLoader;
|
|
85
|
-
const setupFonts = async () =>
|
|
86
|
-
try {
|
|
87
|
-
const interFonts = getInterFonts();
|
|
88
|
-
if (!interFonts) {
|
|
89
|
-
throw new Error('Inter font files not found');
|
|
90
|
-
}
|
|
91
|
-
if (_reactNative.Platform.OS === 'web') {
|
|
92
|
-
// For web platform, dynamically inject CSS to load the fonts
|
|
93
|
-
if (typeof document !== 'undefined') {
|
|
94
|
-
// Create a style element
|
|
95
|
-
const style = document.createElement('style');
|
|
96
|
-
|
|
97
|
-
// Define @font-face rules for each font weight
|
|
98
|
-
const fontFaceRules = `
|
|
99
|
-
@font-face {
|
|
100
|
-
font-family: 'Inter';
|
|
101
|
-
src: url(${interFonts['Inter-Light']}) format('truetype');
|
|
102
|
-
font-weight: 300;
|
|
103
|
-
font-style: normal;
|
|
104
|
-
}
|
|
105
|
-
@font-face {
|
|
106
|
-
font-family: 'Inter';
|
|
107
|
-
src: url(${interFonts['Inter-Regular']}) format('truetype');
|
|
108
|
-
font-weight: 400;
|
|
109
|
-
font-style: normal;
|
|
110
|
-
}
|
|
111
|
-
@font-face {
|
|
112
|
-
font-family: 'Inter';
|
|
113
|
-
src: url(${interFonts['Inter-Medium']}) format('truetype');
|
|
114
|
-
font-weight: 500;
|
|
115
|
-
font-style: normal;
|
|
116
|
-
}
|
|
117
|
-
@font-face {
|
|
118
|
-
font-family: 'Inter';
|
|
119
|
-
src: url(${interFonts['Inter-SemiBold']}) format('truetype');
|
|
120
|
-
font-weight: 600;
|
|
121
|
-
font-style: normal;
|
|
122
|
-
}
|
|
123
|
-
@font-face {
|
|
124
|
-
font-family: 'Inter';
|
|
125
|
-
src: url(${interFonts['Inter-Bold']}) format('truetype');
|
|
126
|
-
font-weight: 700;
|
|
127
|
-
font-style: normal;
|
|
128
|
-
}
|
|
129
|
-
@font-face {
|
|
130
|
-
font-family: 'Inter';
|
|
131
|
-
src: url(${interFonts['Inter-ExtraBold']}) format('truetype');
|
|
132
|
-
font-weight: 800;
|
|
133
|
-
font-style: normal;
|
|
134
|
-
}
|
|
135
|
-
@font-face {
|
|
136
|
-
font-family: 'Inter';
|
|
137
|
-
src: url(${interFonts['Inter-Black']}) format('truetype');
|
|
138
|
-
font-weight: 900;
|
|
139
|
-
font-style: normal;
|
|
140
|
-
}
|
|
141
|
-
`;
|
|
142
|
-
style.textContent = fontFaceRules;
|
|
143
|
-
document.head.appendChild(style);
|
|
144
|
-
if (__DEV__) {
|
|
145
|
-
console.info('All Inter web fonts have been dynamically loaded');
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
} else {
|
|
149
|
-
// Attempt to load the fonts anyway (this works if the consumer has linked the assets)
|
|
150
|
-
await Font.loadAsync(interFonts);
|
|
151
|
-
}
|
|
152
|
-
return true;
|
|
153
|
-
} catch (error) {
|
|
154
|
-
if (__DEV__) {
|
|
155
|
-
const errorMessage = error instanceof Error ? error instanceof Error ? error.message : null : String(error);
|
|
156
|
-
console.warn('Error setting up fonts:', errorMessage);
|
|
157
|
-
}
|
|
158
|
-
return false;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
33
|
+
const setupFonts = async () => true;
|
|
161
34
|
exports.setupFonts = setupFonts;
|
|
162
35
|
//# sourceMappingURL=FontLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["FontLoader","children","_jsxRuntime","jsx","Fragment","exports","setupFonts"],"sourceRoot":"../../../../src","sources":["ui/components/FontLoader.tsx"],"mappings":";;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,UAAU,GAAGA,CAAC;EACvBC;AAGJ,CAAC,kBAAK,IAAAC,WAAA,CAAAC,GAAA,EAAAD,WAAA,CAAAE,QAAA;EAAAH,QAAA,EAAGA;AAAQ,CAAG,CAAC;;AAErB;AACA;AACA;AACA;AAHAI,OAAA,CAAAL,UAAA,GAAAA,UAAA;AAIO,MAAMM,UAAU,GAAG,MAAAA,CAAA,KAA8B,IAAI;AAACD,OAAA,CAAAC,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setupFonts = exports.FontLoader = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var Font = _interopRequireWildcard(require("expo-font"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
+
/**
|
|
12
|
+
* Get the Inter font sources for native environments.
|
|
13
|
+
* Loads all static Inter weights bundled with this package.
|
|
14
|
+
*/const getInterFonts = () => {
|
|
15
|
+
try {
|
|
16
|
+
return {
|
|
17
|
+
'Inter-Light': require('../../assets/fonts/Inter/Inter_18pt-Light.ttf'),
|
|
18
|
+
'Inter-Regular': require('../../assets/fonts/Inter/Inter_18pt-Regular.ttf'),
|
|
19
|
+
'Inter-Medium': require('../../assets/fonts/Inter/Inter_18pt-Medium.ttf'),
|
|
20
|
+
'Inter-SemiBold': require('../../assets/fonts/Inter/Inter_18pt-SemiBold.ttf'),
|
|
21
|
+
'Inter-Bold': require('../../assets/fonts/Inter/Inter_18pt-Bold.ttf'),
|
|
22
|
+
'Inter-ExtraBold': require('../../assets/fonts/Inter/Inter_18pt-ExtraBold.ttf'),
|
|
23
|
+
'Inter-Black': require('../../assets/fonts/Inter/Inter_18pt-Black.ttf')
|
|
24
|
+
};
|
|
25
|
+
} catch (error) {
|
|
26
|
+
if (__DEV__) {
|
|
27
|
+
console.warn('Failed to load Inter fonts:', error);
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* FontLoader — loads custom fonts in the background while rendering children
|
|
35
|
+
* immediately with system fonts as fallback until the custom fonts are ready.
|
|
36
|
+
*/
|
|
37
|
+
const FontLoader = ({
|
|
38
|
+
children
|
|
39
|
+
}) => {
|
|
40
|
+
const [fontState, setFontState] = (0, _react.useState)('loading');
|
|
41
|
+
(0, _react.useEffect)(() => {
|
|
42
|
+
const loadFonts = async () => {
|
|
43
|
+
try {
|
|
44
|
+
const interFonts = getInterFonts();
|
|
45
|
+
if (!interFonts) {
|
|
46
|
+
throw new Error('Inter font files not found');
|
|
47
|
+
}
|
|
48
|
+
await Font.loadAsync(interFonts);
|
|
49
|
+
setFontState('loaded');
|
|
50
|
+
} catch (error) {
|
|
51
|
+
if (__DEV__) {
|
|
52
|
+
console.error('Error loading fonts:', error);
|
|
53
|
+
}
|
|
54
|
+
setFontState('error');
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
loadFonts();
|
|
58
|
+
}, []);
|
|
59
|
+
if (fontState === 'error' && __DEV__) {
|
|
60
|
+
console.warn('Fonts failed to load. Using system fonts instead.');
|
|
61
|
+
}
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
63
|
+
children: children
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Setup fonts for applications consuming this package on native.
|
|
69
|
+
*/
|
|
70
|
+
exports.FontLoader = FontLoader;
|
|
71
|
+
const setupFonts = async () => {
|
|
72
|
+
try {
|
|
73
|
+
const interFonts = getInterFonts();
|
|
74
|
+
if (!interFonts) {
|
|
75
|
+
throw new Error('Inter font files not found');
|
|
76
|
+
}
|
|
77
|
+
await Font.loadAsync(interFonts);
|
|
78
|
+
return true;
|
|
79
|
+
} catch (error) {
|
|
80
|
+
if (__DEV__) {
|
|
81
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
82
|
+
console.warn('Error setting up fonts:', errorMessage);
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
exports.setupFonts = setupFonts;
|
|
88
|
+
//# sourceMappingURL=FontLoader.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","Font","_interopRequireWildcard","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","getInterFonts","error","__DEV__","console","warn","FontLoader","children","fontState","setFontState","useState","useEffect","loadFonts","interFonts","Error","loadAsync","jsx","Fragment","exports","setupFonts","errorMessage","message","String"],"sourceRoot":"../../../../src","sources":["ui/components/FontLoader.native.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAkC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAE,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAA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AAC;IAElC,IAAI,CAACY,UAAU,EAAE;MACb,MAAM,IAAIC,KAAK,CAAC,4BAA4B,CAAC;IACjD;IAEA,MAAMnC,IAAI,CAACoC,SAAS,CAACF,UAAU,CAAC;IAChC,OAAO,IAAI;EACf,CAAC,CAAC,OAAOX,KAAc,EAAE;IACrB,IAAIC,OAAO,EAAE;MACT,MAAMiB,YAAY,GAAGlB,KAAK,YAAYY,KAAK,GAAGZ,KAAK,CAACmB,OAAO,GAAGC,MAAM,CAACpB,KAAK,CAAC;MAC3EE,OAAO,CAACC,IAAI,CAAC,yBAAyB,EAAEe,YAAY,CAAC;IACzD;IACA,OAAO,KAAK;EAChB;AACJ,CAAC;AAACF,OAAA,CAAAC,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -16,7 +16,7 @@ var _core = require("@oxyhq/core");
|
|
|
16
16
|
var _RequireOxyAuth = require("./RequireOxyAuth.js");
|
|
17
17
|
var _queryClient = require("../hooks/queryClient.js");
|
|
18
18
|
var _storageHelpers = require("../utils/storageHelpers.js");
|
|
19
|
-
var _FontLoader = require("./FontLoader
|
|
19
|
+
var _FontLoader = require("./FontLoader");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); } /**
|
|
22
22
|
* Background color shown for the brief window between mount and the
|
|
@@ -8,8 +8,8 @@ var _reactNative = require("react-native");
|
|
|
8
8
|
var _vectorIcons = require("@expo/vector-icons");
|
|
9
9
|
var _bloom = require("@oxyhq/bloom");
|
|
10
10
|
var _theme = require("@oxyhq/bloom/theme");
|
|
11
|
+
var _useI18n = require("../../hooks/useI18n.js");
|
|
11
12
|
var _fileManagement = require("../../utils/fileManagement.js");
|
|
12
|
-
var _styles = require("./styles.js");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
const FileDetailsModal = ({
|
|
15
15
|
control,
|
|
@@ -19,90 +19,83 @@ const FileDetailsModal = ({
|
|
|
19
19
|
isOwner,
|
|
20
20
|
onClose
|
|
21
21
|
}) => {
|
|
22
|
+
const {
|
|
23
|
+
t
|
|
24
|
+
} = (0, _useI18n.useI18n)();
|
|
22
25
|
const {
|
|
23
26
|
colors
|
|
24
27
|
} = (0, _theme.useTheme)();
|
|
25
28
|
if (!file) return null;
|
|
26
29
|
const actions = isOwner ? [{
|
|
27
|
-
label: '
|
|
30
|
+
label: t('fileManagement.details.download'),
|
|
28
31
|
onPress: () => onDownload(file.id, file.filename)
|
|
29
32
|
}, {
|
|
30
|
-
label: '
|
|
33
|
+
label: t('common.actions.delete'),
|
|
31
34
|
color: 'destructive',
|
|
32
35
|
onPress: () => onDelete(file.id, file.filename)
|
|
33
36
|
}, {
|
|
34
|
-
label: '
|
|
37
|
+
label: t('common.cancel'),
|
|
35
38
|
color: 'cancel'
|
|
36
39
|
}] : [{
|
|
37
|
-
label: '
|
|
40
|
+
label: t('fileManagement.details.download'),
|
|
38
41
|
onPress: () => onDownload(file.id, file.filename)
|
|
39
42
|
}, {
|
|
40
|
-
label: '
|
|
43
|
+
label: t('common.cancel'),
|
|
41
44
|
color: 'cancel'
|
|
42
45
|
}];
|
|
43
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_bloom.Dialog, {
|
|
44
47
|
control: control,
|
|
45
48
|
onClose: onClose,
|
|
46
|
-
label:
|
|
49
|
+
label: t('fileManagement.details.title'),
|
|
47
50
|
actions: actions,
|
|
48
51
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
49
|
-
className: "bg-secondary border-border",
|
|
50
|
-
style: _styles.fileManagementStyles.fileDetailCard,
|
|
52
|
+
className: "bg-secondary border-border p-[18px] rounded-[14px] border items-center",
|
|
51
53
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
52
|
-
|
|
54
|
+
className: "mb-space-16",
|
|
53
55
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
54
56
|
name: (0, _fileManagement.getFileIcon)(file.contentType),
|
|
55
57
|
size: 64,
|
|
56
58
|
color: colors.primary
|
|
57
59
|
})
|
|
58
60
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
59
|
-
className: "text-text",
|
|
60
|
-
style: _styles.fileManagementStyles.fileDetailName,
|
|
61
|
+
className: "text-text text-[20px] font-bold text-center mb-space-24",
|
|
61
62
|
children: file.filename
|
|
62
63
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
63
|
-
|
|
64
|
+
className: "w-full mb-space-32",
|
|
64
65
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
65
|
-
|
|
66
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
67
|
-
className: "text-text-secondary",
|
|
68
|
-
|
|
69
|
-
children: "Size:"
|
|
66
|
+
className: "flex-row justify-between items-start mb-space-12 flex-wrap",
|
|
67
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
68
|
+
className: "text-text-secondary text-[16px] font-medium flex-1 min-w-[100px]",
|
|
69
|
+
children: [t('fileManagement.size'), ":"]
|
|
70
70
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
71
|
-
className: "text-text",
|
|
72
|
-
style: _styles.fileManagementStyles.detailValue,
|
|
71
|
+
className: "text-text text-[16px] flex-[2] text-right",
|
|
73
72
|
children: (0, _fileManagement.formatFileSize)(file.length)
|
|
74
73
|
})]
|
|
75
74
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
76
|
-
|
|
77
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
78
|
-
className: "text-text-secondary",
|
|
79
|
-
|
|
80
|
-
children: "Type:"
|
|
75
|
+
className: "flex-row justify-between items-start mb-space-12 flex-wrap",
|
|
76
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
77
|
+
className: "text-text-secondary text-[16px] font-medium flex-1 min-w-[100px]",
|
|
78
|
+
children: [t('fileManagement.details.type'), ":"]
|
|
81
79
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
82
|
-
className: "text-text",
|
|
83
|
-
style: _styles.fileManagementStyles.detailValue,
|
|
80
|
+
className: "text-text text-[16px] flex-[2] text-right",
|
|
84
81
|
children: file.contentType
|
|
85
82
|
})]
|
|
86
83
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
87
|
-
|
|
88
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
89
|
-
className: "text-text-secondary",
|
|
90
|
-
|
|
91
|
-
children: "Uploaded:"
|
|
84
|
+
className: "flex-row justify-between items-start mb-space-12 flex-wrap",
|
|
85
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
86
|
+
className: "text-text-secondary text-[16px] font-medium flex-1 min-w-[100px]",
|
|
87
|
+
children: [t('fileManagement.details.uploaded'), ":"]
|
|
92
88
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
93
|
-
className: "text-text",
|
|
94
|
-
style: _styles.fileManagementStyles.detailValue,
|
|
89
|
+
className: "text-text text-[16px] flex-[2] text-right",
|
|
95
90
|
children: new Date(file.uploadDate).toLocaleString()
|
|
96
91
|
})]
|
|
97
92
|
}), file.metadata?.description && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
98
|
-
|
|
99
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
100
|
-
className: "text-text-secondary",
|
|
101
|
-
|
|
102
|
-
children: "Description:"
|
|
93
|
+
className: "flex-row justify-between items-start mb-space-12 flex-wrap",
|
|
94
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
95
|
+
className: "text-text-secondary text-[16px] font-medium flex-1 min-w-[100px]",
|
|
96
|
+
children: [t('fileManagement.details.description'), ":"]
|
|
103
97
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
104
|
-
className: "text-text",
|
|
105
|
-
style: _styles.fileManagementStyles.detailValue,
|
|
98
|
+
className: "text-text text-[16px] flex-[2] text-right",
|
|
106
99
|
children: file.metadata.description
|
|
107
100
|
})]
|
|
108
101
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_vectorIcons","_bloom","_theme","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_vectorIcons","_bloom","_theme","_useI18n","_fileManagement","_jsxRuntime","FileDetailsModal","control","file","onDownload","onDelete","isOwner","onClose","t","useI18n","colors","useTheme","actions","label","onPress","id","filename","color","jsx","Dialog","children","jsxs","View","className","Ionicons","name","getFileIcon","contentType","size","primary","Text","formatFileSize","length","Date","uploadDate","toLocaleString","metadata","description","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/fileManagement/FileDetailsModal.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAAyE,IAAAM,WAAA,GAAAN,OAAA;AAWlE,MAA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AW,CACxB,CAAC;QAAA,CACL,CACT;MAAA,CACC,CAAC;IAAA,CACL;EAAC,CACH,CAAC;AAEjB,CAAC;AAACC,OAAA,CAAArC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_expoImage","_vectorIcons","_bloom","_theme","_fileManagement","_styles","_jsxRuntime","UploadPreviewContent","pendingFiles","onConfirm","onCancel","onRemoveFile","showActions","colors","isDark","useTheme","totalSize","reduce","sum","f","size","jsxs","View","style","fileManagementStyles","uploadPreviewContainer","backgroundColor","background","children","className","uploadPreviewHeader","Text","uploadPreviewTitle","length","jsx","TouchableOpacity","onPress","Ionicons","name","color","text","ScrollView","uploadPreviewList","map","pendingFile","index","isImage","type","startsWith","uploadPreviewItem","preview","Image","source","uri","uploadPreviewThumbnail","contentFit","uploadPreviewIconContainer","backgroundSecondary","getFileIcon","primary","uploadPreviewInfo","uploadPreviewName","numberOfLines","uploadPreviewMeta","formatFileSize","uploadPreviewRemove","error","uploadPreviewFooter","uploadPreviewStats","uploadPreviewStatsText","uploadPreviewActions","uploadPreviewCancelButton","uploadPreviewCancelText","uploadPreviewConfirmButton","primaryForeground","uploadPreviewConfirmText","UploadPreview","control","inline","Dialog","onClose","label","actions","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/fileManagement/UploadPreview.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAgD,IAAAO,WAAA,GAAAP,OAAA;AAmBhD,MAAMQ,oBAMJ,GAAGA,CAAC;EACFC,YAAY;EACZC,SAAS;EACTC,QAAQ;EACRC,YAAY;EACZC,WAAW,GAAG;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WAAW,EAAEC,KAAK,KAAK;QACtC,MAAMC,OAAO,GAAGF,WAAW,CAACG,IAAI,CAACC,UAAU,CAAC,QAAQ,CAAC;QACrD,oBACI,IAAA1C,WAAA,CAAAe,IAAA,EAACvB,YAAA,CAAAwB,IAAI;UAEDO,SAAS,EAAC,4BAA4B;UACtCN,KAAK,EAAEC,4BAAoB,CAACyB,iBAAkB;UAAArB,QAAA,GAE7CkB,OAAO,IAAIF,WAAW,CAACM,OAAO,gBAC3B,IAAA5C,WAAA,CAAA4B,GAAA,EAAClC,UAAA,CAAAmD,KAAS;YACNC,MAAM,EAAE;cAAEC,GAAG,EAAET,WAAW,CAACM;YAAQ,CAAE;YACrC3B,KAAK,EAAEC,4BAAoB,CAAC8B,sBAAuB;YACnDC,UAAU,EAAC;UAAO,CACrB,CAAC,gBAEF,IAAAjD,WAAA,CAAA4B,GAAA,EAACpC,YAAA,CAAAwB,IAAI;YAACC,KAAK,EAAE,CAACC,4BAAoB,CAACgC,0BAA0B,EAAE;cAAE9B,eAAe,EAAEb,MAAM,CAAC4C;YAAoB,CAAC,CAAE;YAAA7B,QAAA,eAC5G,IAAAtB,WAAA,CAAA4B,GAAA,EAACjC,YAAA,CAAAoC,QAAQ;cACLC,IAAI,EAAE,IAAAoB,2BAAW,EAACd,WAAW,CAACG,IAAI,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_expoImage","_vectorIcons","_bloom","_theme","_fileManagement","_styles","_jsxRuntime","UploadPreviewContent","pendingFiles","onConfirm","onCancel","onRemoveFile","showActions","colors","isDark","useTheme","totalSize","reduce","sum","f","size","jsxs","View","style","fileManagementStyles","uploadPreviewContainer","backgroundColor","background","children","className","uploadPreviewHeader","Text","uploadPreviewTitle","length","jsx","TouchableOpacity","onPress","Ionicons","name","color","text","ScrollView","uploadPreviewList","map","pendingFile","index","isImage","type","startsWith","uploadPreviewItem","preview","Image","source","uri","uploadPreviewThumbnail","contentFit","uploadPreviewIconContainer","backgroundSecondary","getFileIcon","primary","uploadPreviewInfo","uploadPreviewName","numberOfLines","uploadPreviewMeta","formatFileSize","uploadPreviewRemove","error","uploadPreviewFooter","uploadPreviewStats","uploadPreviewStatsText","uploadPreviewActions","uploadPreviewCancelButton","uploadPreviewCancelText","uploadPreviewConfirmButton","primaryForeground","uploadPreviewConfirmText","UploadPreview","control","inline","Dialog","onClose","label","actions","exports"],"sourceRoot":"../../../../../src","sources":["ui/components/fileManagement/UploadPreview.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAgD,IAAAO,WAAA,GAAAP,OAAA;AAmBhD,MAAMQ,oBAMJ,GAAGA,CAAC;EACFC,YAAY;EACZC,SAAS;EACTC,QAAQ;EACRC,YAAY;EACZC,WAAW,GAAG;AAClB,CAAC,KAAK;EACF,MAAM;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC;EACrC,MAAMC,SAAS,GAAGR,YAAY,CAACS,MAAM,CAAC,CAACC,GAAG,EAAEC,CAAC,KAAKD,GAAG,GAAGC,CAAC,CAACC,IAAI,EAAE,CAAC,CAAC;EAElE,oBACI,IAAAd,WAAA,CAAAe,IAAA,EAACvB,YAAA,CAAAwB,IAAI;IAACC,KAAK,EAAE,CAACC,4BAAoB,CAACC,sBAAsB,EAAE;MAAEC,eAAe,EAAEb,MAAM,CAACc;IAAW,CAAC,CAAE;IAAAC,QAAA,gBAC/F,IAAAtB,WAAA,CAAAe,IAAA,EAACvB,YAAA,CAAAwB,IAAI;MAACO,SAAS,EAAC,wBAAwB;MAACN,KAAK,EAAEC,4BAAoB,CAACM,mBAAoB;MAAAF,QAAA,gBACrF,IAAAtB,WAAA,C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