@umituz/react-native-ai-generation-content 1.83.3 → 1.83.4

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.83.3",
3
+ "version": "1.83.4",
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",
@@ -109,7 +109,7 @@ export function usePhotoBlockingGeneration(
109
109
  const duration = typeof inputData?.duration === "number" ? inputData.duration : undefined;
110
110
  const resolution = typeof inputData?.resolution === "string" ? inputData.resolution : undefined;
111
111
 
112
- const creationId = await persistence.saveAsProcessing(userId, {
112
+ const result = await persistence.saveAsProcessing(userId, {
113
113
  scenarioId: scenario.id,
114
114
  scenarioTitle: scenario.title || scenario.id,
115
115
  prompt,
@@ -117,10 +117,10 @@ export function usePhotoBlockingGeneration(
117
117
  resolution,
118
118
  creditCost,
119
119
  });
120
- creationIdRef.current = creationId;
120
+ creationIdRef.current = result.creationId;
121
121
 
122
122
  if (typeof __DEV__ !== "undefined" && __DEV__) {
123
- console.log("[PhotoBlockingGeneration] Saved as processing:", creationId);
123
+ console.log("[PhotoBlockingGeneration] Saved as processing:", result.creationId);
124
124
  }
125
125
  } catch (err) {
126
126
  if (typeof __DEV__ !== "undefined" && __DEV__) {