@umituz/react-native-ai-generation-content 1.20.35 → 1.20.36
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.20.
|
|
3
|
+
"version": "1.20.36",
|
|
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",
|
|
@@ -28,6 +28,7 @@ export const AIGenerateWizardFlow: React.FC<AIGenerateWizardFlowProps> = ({
|
|
|
28
28
|
onGenerate,
|
|
29
29
|
onBack: onBackProp,
|
|
30
30
|
onSave,
|
|
31
|
+
onShare,
|
|
31
32
|
t,
|
|
32
33
|
}) => {
|
|
33
34
|
const tokens = useAppDesignTokens();
|
|
@@ -114,6 +115,14 @@ export const AIGenerateWizardFlow: React.FC<AIGenerateWizardFlowProps> = ({
|
|
|
114
115
|
onPress: () => setCurrentStep(AIGenerateStep.CONFIG),
|
|
115
116
|
icon: "refresh",
|
|
116
117
|
}}
|
|
118
|
+
extraActions={[
|
|
119
|
+
{
|
|
120
|
+
label: translations.shareButton,
|
|
121
|
+
onPress: () => result && onShare?.(result),
|
|
122
|
+
icon: "share-variant",
|
|
123
|
+
variant: "outline",
|
|
124
|
+
},
|
|
125
|
+
]}
|
|
117
126
|
>
|
|
118
127
|
{isVideo && result ? (
|
|
119
128
|
<VideoResultPlayer uri={result} />
|
|
@@ -27,6 +27,7 @@ export interface AIGenerateWizardTranslations {
|
|
|
27
27
|
readonly processingHint: string;
|
|
28
28
|
readonly successTitle: string;
|
|
29
29
|
readonly saveButton: string;
|
|
30
|
+
readonly shareButton: string;
|
|
30
31
|
readonly tryAgainButton: string;
|
|
31
32
|
readonly fileTooLarge: string;
|
|
32
33
|
readonly maxFileSize: string;
|
|
@@ -45,6 +46,7 @@ export interface AIGenerateWizardFlowProps {
|
|
|
45
46
|
images: { uri: string }[];
|
|
46
47
|
}) => Promise<string | null | void>;
|
|
47
48
|
readonly onBack?: () => void;
|
|
48
|
-
readonly onSave?: (uri: string) => void
|
|
49
|
+
readonly onSave?: (uri: string) => Promise<void>;
|
|
50
|
+
readonly onShare?: (uri: string) => Promise<void>;
|
|
49
51
|
readonly t: (key: string) => string;
|
|
50
52
|
}
|