@umituz/react-native-ai-generation-content 1.20.35 → 1.20.37

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.35",
3
+ "version": "1.20.37",
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,11 +28,13 @@ export const AIGenerationConfig: React.FC<AIGenerationConfigProps> = ({
28
28
 
29
29
  return (
30
30
  <View style={styles.container}>
31
- <AIGenerationHero
32
- title={heroTitle}
33
- subtitle={heroSubtitle}
34
- iconName={heroIcon}
35
- />
31
+ {heroTitle && (
32
+ <AIGenerationHero
33
+ title={heroTitle}
34
+ subtitle={heroSubtitle}
35
+ iconName={heroIcon}
36
+ />
37
+ )}
36
38
 
37
39
  {images.length > 0 && (
38
40
  <View style={styles.imagePreviewContainer}>
@@ -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
  }