@umituz/react-native-ai-generation-content 1.17.64 → 1.17.65

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.17.64",
3
+ "version": "1.17.65",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -109,9 +109,11 @@ export const AnimeSelfieFeature: React.FC<AnimeSelfieFeatureProps> = ({
109
109
  <AIGenerationForm
110
110
  onGenerate={handleProcess}
111
111
  isGenerating={feature.isProcessing}
112
+ progress={feature.progress}
112
113
  translations={{
113
114
  generateButton: translations.processButtonText,
114
115
  generatingButton: translations.processingText,
116
+ progressTitle: translations.processingText,
115
117
  }}
116
118
  >
117
119
  <PhotoUploadCard
@@ -108,9 +108,11 @@ export const FaceSwapFeature: React.FC<FaceSwapFeatureProps> = ({
108
108
  <AIGenerationForm
109
109
  onGenerate={handleProcess}
110
110
  isGenerating={feature.isProcessing}
111
+ progress={feature.progress}
111
112
  translations={{
112
113
  generateButton: translations.processButtonText,
113
114
  generatingButton: translations.processingText,
115
+ progressTitle: translations.processingText,
114
116
  }}
115
117
  >
116
118
  <View style={styles.pickerContainer}>
@@ -107,9 +107,11 @@ export const PhotoRestoreFeature: React.FC<PhotoRestoreFeatureProps> = ({
107
107
  <AIGenerationForm
108
108
  onGenerate={handleProcess}
109
109
  isGenerating={feature.isProcessing}
110
+ progress={feature.progress}
110
111
  translations={{
111
112
  generateButton: translations.processButtonText,
112
113
  generatingButton: translations.processingText,
114
+ progressTitle: translations.processingText,
113
115
  }}
114
116
  >
115
117
  <PhotoUploadCard
@@ -109,9 +109,11 @@ export const RemoveBackgroundFeature: React.FC<RemoveBackgroundFeatureProps> = (
109
109
  <AIGenerationForm
110
110
  onGenerate={handleProcess}
111
111
  isGenerating={feature.isProcessing}
112
+ progress={feature.progress}
112
113
  translations={{
113
114
  generateButton: translations.processButtonText,
114
115
  generatingButton: translations.processingText,
116
+ progressTitle: translations.processingText,
115
117
  }}
116
118
  >
117
119
  <PhotoUploadCard
@@ -108,9 +108,11 @@ export const RemoveObjectFeature: React.FC<RemoveObjectFeatureProps> = ({
108
108
  <AIGenerationForm
109
109
  onGenerate={handleProcess}
110
110
  isGenerating={feature.isProcessing}
111
+ progress={feature.progress}
111
112
  translations={{
112
113
  generateButton: translations.processButtonText,
113
114
  generatingButton: translations.processingText,
115
+ progressTitle: translations.processingText,
114
116
  }}
115
117
  >
116
118
  <PhotoUploadCard
@@ -9,9 +9,9 @@ import { View, ScrollView, StyleSheet } from "react-native";
9
9
  import {
10
10
  useAppDesignTokens,
11
11
  AtomicText,
12
- AtomicButton,
13
12
  } from "@umituz/react-native-design-system";
14
13
  import { PhotoUploadCard } from "../../../../presentation/components/PhotoUploadCard";
14
+ import { AIGenerationForm } from "../../../../presentation/components/AIGenerationForm";
15
15
  import { UpscaleResultView } from "./UpscaleResultView";
16
16
  import { useUpscaleFeature } from "../hooks";
17
17
  import type {
@@ -103,53 +103,37 @@ export const UpscaleFeature: React.FC<UpscaleFeatureProps> = ({
103
103
  contentContainerStyle={styles.content}
104
104
  showsVerticalScrollIndicator={false}
105
105
  >
106
- <AtomicText
107
- type="bodyLarge"
108
- style={[styles.description, { color: tokens.colors.textSecondary }]}
109
- >
110
- {translations.description}
111
- </AtomicText>
112
-
113
- <PhotoUploadCard
114
- imageUri={feature.imageUri}
115
- onPress={handleSelectImage}
116
- isValidating={feature.isProcessing}
117
- disabled={feature.isProcessing}
118
- translations={photoTranslations}
119
- config={{
120
- aspectRatio: 1,
121
- borderRadius: 24,
122
- showValidationStatus: false,
123
- allowChange: true,
106
+ <AIGenerationForm
107
+ onGenerate={handleProcess}
108
+ isGenerating={feature.isProcessing}
109
+ progress={feature.progress}
110
+ translations={{
111
+ generateButton: translations.processButtonText,
112
+ generatingButton: translations.processingText,
113
+ progressTitle: translations.processingText,
124
114
  }}
125
- />
126
-
127
- {feature.error && (
128
- <View
129
- style={[
130
- styles.errorContainer,
131
- { backgroundColor: `${tokens.colors.error}15` },
132
- ]}
115
+ >
116
+ <AtomicText
117
+ type="bodyLarge"
118
+ style={[styles.description, { color: tokens.colors.textSecondary }]}
133
119
  >
134
- <AtomicText type="bodyMedium" style={{ color: tokens.colors.error }}>
135
- {feature.error}
136
- </AtomicText>
137
- </View>
138
- )}
120
+ {translations.description}
121
+ </AtomicText>
139
122
 
140
- <View style={styles.buttonContainer}>
141
- <AtomicButton
142
- title={
143
- feature.isProcessing
144
- ? translations.processingText
145
- : translations.processButtonText
146
- }
147
- onPress={handleProcess}
148
- disabled={!feature.imageUri || feature.isProcessing}
149
- variant="primary"
150
- size="lg"
123
+ <PhotoUploadCard
124
+ imageUri={feature.imageUri}
125
+ onPress={handleSelectImage}
126
+ isValidating={feature.isProcessing}
127
+ disabled={feature.isProcessing}
128
+ translations={photoTranslations}
129
+ config={{
130
+ aspectRatio: 1,
131
+ borderRadius: 24,
132
+ showValidationStatus: false,
133
+ allowChange: true,
134
+ }}
151
135
  />
152
- </View>
136
+ </AIGenerationForm>
153
137
  </ScrollView>
154
138
 
155
139
  {renderProcessingModal?.({ visible: feature.isProcessing, progress: feature.progress })}