@umituz/react-native-ai-generation-content 1.11.1 → 1.11.3
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/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -120,6 +120,14 @@ export {
|
|
|
120
120
|
validateResult,
|
|
121
121
|
extractOutputUrl,
|
|
122
122
|
extractOutputUrls,
|
|
123
|
+
// Photo generation utils
|
|
124
|
+
cleanBase64,
|
|
125
|
+
addBase64Prefix,
|
|
126
|
+
preparePhoto,
|
|
127
|
+
preparePhotos,
|
|
128
|
+
isValidBase64,
|
|
129
|
+
getBase64Size,
|
|
130
|
+
getBase64SizeMB,
|
|
123
131
|
} from "./infrastructure/utils";
|
|
124
132
|
|
|
125
133
|
export type {
|
|
@@ -128,6 +136,8 @@ export type {
|
|
|
128
136
|
StatusCheckResult,
|
|
129
137
|
ResultValidation,
|
|
130
138
|
ValidateResultOptions,
|
|
139
|
+
PhotoInput,
|
|
140
|
+
PreparedImage,
|
|
131
141
|
} from "./infrastructure/utils";
|
|
132
142
|
|
|
133
143
|
// =============================================================================
|
|
@@ -68,8 +68,7 @@ export const usePhotoGeneration = <TInput, TResult, TSaveInput = any>(
|
|
|
68
68
|
|
|
69
69
|
try {
|
|
70
70
|
// Check network connectivity
|
|
71
|
-
|
|
72
|
-
if (!isOnline) {
|
|
71
|
+
if (!offlineStore.isOnline) {
|
|
73
72
|
throw createError("network_error", "No internet connection");
|
|
74
73
|
}
|
|
75
74
|
|