@umituz/react-native-ai-generation-content 1.89.67 → 1.89.69
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.69",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Auto-updates UI when Firestore data changes
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { useState, useEffect, useCallback } from "react";
|
|
7
|
+
import { useState, useEffect, useCallback, useRef } from "react";
|
|
8
8
|
import type { ICreationsRepository } from "../../domain/repositories/ICreationsRepository";
|
|
9
9
|
import type { Creation } from "../../domain/entities/Creation";
|
|
10
10
|
|
|
@@ -38,8 +38,8 @@ export function useCreations({
|
|
|
38
38
|
}, []);
|
|
39
39
|
|
|
40
40
|
// Use refs for callbacks to maintain stable function references
|
|
41
|
-
const onDataCallbackRef = useRef<(creations: Creation[]) => void>();
|
|
42
|
-
const onErrorCallbackRef = useRef<(err: Error) => void>();
|
|
41
|
+
const onDataCallbackRef = useRef<(creations: Creation[]) => void>(undefined);
|
|
42
|
+
const onErrorCallbackRef = useRef<(err: Error) => void>(undefined);
|
|
43
43
|
|
|
44
44
|
onDataCallbackRef.current = (creations: Creation[]) => {
|
|
45
45
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
@@ -28,7 +28,7 @@ export type {
|
|
|
28
28
|
|
|
29
29
|
// Utils
|
|
30
30
|
export {
|
|
31
|
-
classifyError, isPermanentError, isResultNotReady,
|
|
31
|
+
classifyError, isPermanentError, isResultNotReady,
|
|
32
32
|
checkStatusForErrors, isJobComplete, isJobProcessing, isJobFailed,
|
|
33
33
|
validateResult, extractOutputUrl, extractOutputUrls, extractVideoUrl, extractThumbnailUrl,
|
|
34
34
|
extractAudioUrl, extractImageUrls, cleanBase64, addBase64Prefix, preparePhoto, preparePhotos,
|