@umituz/react-native-ai-generation-content 1.89.24 → 1.89.26
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.26",
|
|
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",
|
|
@@ -75,68 +75,52 @@ export const ResultActionBar: React.FC<ResultActionBarProps> = ({
|
|
|
75
75
|
if (iconOnly) {
|
|
76
76
|
return (
|
|
77
77
|
<View style={styles.container}>
|
|
78
|
-
|
|
79
|
-
style={[styles.iconButton, isSaving && styles.disabledButton]}
|
|
80
|
-
onPress={onDownload}
|
|
81
|
-
disabled={isSaving}
|
|
82
|
-
activeOpacity={0.7}
|
|
83
|
-
>
|
|
84
|
-
{isSaving ? (
|
|
85
|
-
<ActivityIndicator color={tokens.colors.textInverse} size="small" />
|
|
86
|
-
) : (
|
|
87
|
-
<AtomicIcon name="download-outline" customSize={20} color="onPrimary" />
|
|
88
|
-
)}
|
|
89
|
-
</TouchableOpacity>
|
|
90
|
-
<TouchableOpacity
|
|
91
|
-
style={[styles.iconButton, isSharing && styles.disabledButton]}
|
|
92
|
-
onPress={onShare}
|
|
93
|
-
disabled={isSharing}
|
|
94
|
-
activeOpacity={0.7}
|
|
95
|
-
>
|
|
96
|
-
{isSharing ? (
|
|
97
|
-
<ActivityIndicator color={tokens.colors.textInverse} size="small" />
|
|
98
|
-
) : (
|
|
99
|
-
<AtomicIcon name="share-social-outline" customSize={20} color="onPrimary" />
|
|
100
|
-
)}
|
|
101
|
-
</TouchableOpacity>
|
|
102
|
-
{showTryAgain && onTryAgain && (
|
|
78
|
+
{onDownload && (
|
|
103
79
|
<TouchableOpacity
|
|
104
|
-
style={styles.iconButton}
|
|
105
|
-
onPress={
|
|
80
|
+
style={[styles.iconButton, isSaving && styles.disabledButton]}
|
|
81
|
+
onPress={onDownload}
|
|
82
|
+
disabled={isSaving}
|
|
106
83
|
activeOpacity={0.7}
|
|
107
84
|
>
|
|
108
|
-
|
|
85
|
+
{isSaving ? (
|
|
86
|
+
<ActivityIndicator color={tokens.colors.textInverse} size="small" />
|
|
87
|
+
) : (
|
|
88
|
+
<AtomicIcon name="download-outline" customSize={20} color="onPrimary" />
|
|
89
|
+
)}
|
|
109
90
|
</TouchableOpacity>
|
|
110
91
|
)}
|
|
111
|
-
{
|
|
92
|
+
{onShare && (
|
|
112
93
|
<TouchableOpacity
|
|
113
|
-
style={styles.iconButton}
|
|
114
|
-
onPress={
|
|
94
|
+
style={[styles.iconButton, isSharing && styles.disabledButton]}
|
|
95
|
+
onPress={onShare}
|
|
96
|
+
disabled={isSharing}
|
|
115
97
|
activeOpacity={0.7}
|
|
116
98
|
>
|
|
117
|
-
|
|
99
|
+
{isSharing ? (
|
|
100
|
+
<ActivityIndicator color={tokens.colors.textInverse} size="small" />
|
|
101
|
+
) : (
|
|
102
|
+
<AtomicIcon name="share-social-outline" customSize={20} color="onPrimary" />
|
|
103
|
+
)}
|
|
118
104
|
</TouchableOpacity>
|
|
119
105
|
)}
|
|
120
|
-
{
|
|
121
|
-
{onEdit && (
|
|
106
|
+
{showTryAgain && onTryAgain && (
|
|
122
107
|
<TouchableOpacity
|
|
123
108
|
style={styles.iconButton}
|
|
124
|
-
onPress={
|
|
109
|
+
onPress={onTryAgain}
|
|
125
110
|
activeOpacity={0.7}
|
|
126
111
|
>
|
|
127
|
-
<AtomicIcon name="
|
|
112
|
+
<AtomicIcon name="refresh-outline" customSize={20} color="onPrimary" />
|
|
128
113
|
</TouchableOpacity>
|
|
129
114
|
)}
|
|
130
|
-
{
|
|
115
|
+
{showRating && onRate && (
|
|
131
116
|
<TouchableOpacity
|
|
132
117
|
style={styles.iconButton}
|
|
133
|
-
onPress={
|
|
118
|
+
onPress={onRate}
|
|
134
119
|
activeOpacity={0.7}
|
|
135
120
|
>
|
|
136
|
-
<AtomicIcon name="
|
|
121
|
+
<AtomicIcon name="star-outline" customSize={20} color="onPrimary" />
|
|
137
122
|
</TouchableOpacity>
|
|
138
123
|
)}
|
|
139
|
-
*/}
|
|
140
124
|
{onShareToFeed && (
|
|
141
125
|
<TouchableOpacity
|
|
142
126
|
style={styles.iconButton}
|
|
@@ -152,33 +136,37 @@ export const ResultActionBar: React.FC<ResultActionBarProps> = ({
|
|
|
152
136
|
|
|
153
137
|
return (
|
|
154
138
|
<View style={styles.container}>
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
139
|
+
{onDownload && (
|
|
140
|
+
<TouchableOpacity
|
|
141
|
+
style={styles.button}
|
|
142
|
+
onPress={onDownload}
|
|
143
|
+
disabled={isSaving}
|
|
144
|
+
activeOpacity={0.7}
|
|
145
|
+
>
|
|
146
|
+
{isSaving ? (
|
|
147
|
+
<ActivityIndicator color={tokens.colors.textInverse} size="small" />
|
|
148
|
+
) : (
|
|
149
|
+
<AtomicIcon name="download-outline" customSize={18} color="onPrimary" />
|
|
150
|
+
)}
|
|
151
|
+
<AtomicText style={styles.buttonText}>{saveButtonText}</AtomicText>
|
|
152
|
+
</TouchableOpacity>
|
|
153
|
+
)}
|
|
154
|
+
{onShare && (
|
|
155
|
+
<TouchableOpacity
|
|
156
|
+
style={styles.button}
|
|
157
|
+
onPress={onShare}
|
|
158
|
+
disabled={isSharing}
|
|
159
|
+
activeOpacity={0.7}
|
|
160
|
+
>
|
|
161
|
+
{isSharing ? (
|
|
162
|
+
<ActivityIndicator color={tokens.colors.textInverse} size="small" />
|
|
163
|
+
) : (
|
|
164
|
+
<AtomicIcon name="share-social-outline" customSize={18} color="onPrimary" />
|
|
165
|
+
)}
|
|
166
|
+
<AtomicText style={styles.buttonText}>{shareButtonText}</AtomicText>
|
|
167
|
+
</TouchableOpacity>
|
|
168
|
+
)}
|
|
169
|
+
{showTryAgain && onTryAgain && (
|
|
182
170
|
<TouchableOpacity style={styles.button} onPress={onTryAgain} activeOpacity={0.7}>
|
|
183
171
|
<AtomicIcon name="refresh-outline" customSize={18} color="onPrimary" />
|
|
184
172
|
<AtomicText style={styles.buttonText}>{tryAgainButtonText}</AtomicText>
|
|
@@ -25,9 +25,9 @@ export interface ResultActionBarProps {
|
|
|
25
25
|
/** Currently sharing */
|
|
26
26
|
isSharing: boolean;
|
|
27
27
|
/** Download callback */
|
|
28
|
-
onDownload
|
|
28
|
+
onDownload?: () => void;
|
|
29
29
|
/** Share callback */
|
|
30
|
-
onShare
|
|
30
|
+
onShare?: () => void;
|
|
31
31
|
/** Try again callback */
|
|
32
32
|
onTryAgain?: () => void;
|
|
33
33
|
/** Rate callback */
|