@umituz/react-native-ai-generation-content 1.17.212 → 1.17.214

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.212",
3
+ "version": "1.17.214",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1,23 +1,22 @@
1
1
  /**
2
2
  * MemeGeneratorFeature Component
3
- *
3
+ *
4
4
  * Unified Text-to-Image feature component for Meme Generation.
5
5
  * Integrates PromptInput, StyleSelector, and Generation logic using useTextToImageFeature.
6
6
  */
7
7
 
8
8
  import React, { useMemo, useCallback } from "react";
9
- import { View, ScrollView, StyleSheet, Image, KeyboardAvoidingView, Platform } from "react-native";
10
- import { useAppDesignTokens, AtomicIcon, AtomicCard, AtomicText, AtomicSpinner } from "@umituz/react-native-design-system";
9
+ import { View, ScrollView, StyleSheet, KeyboardAvoidingView, Platform } from "react-native";
10
+ import { useAppDesignTokens, AtomicCard, AtomicText } from "@umituz/react-native-design-system";
11
11
  import { getAuthService } from "../../../../infrastructure/config";
12
12
  import { useTextToImageFeature } from "../../../text-to-image/presentation/hooks/useTextToImageFeature";
13
13
  import { PromptInput } from "../../../../presentation/components/PromptInput";
14
- import { StyleSelector } from "../../../../presentation/components/selectors/StyleSelector";
15
14
  import { GenerateButton } from "../../../../presentation/components/buttons/GenerateButton";
16
15
  import { GridSelector } from "../../../../presentation/components/selectors/GridSelector";
17
- import { ResultDisplay } from "../../../../presentation/components/result/ResultDisplay";
16
+ import { GenerationResultContent } from "../../../../presentation/components/result/GenerationResultContent";
18
17
 
19
18
  // Constants (Using default provided styles if config doesn't override)
20
- import { DEFAULT_IMAGE_STYLES } from "../../../text-to-image/domain/constants/processing-modes.constants";
19
+ import { DEFAULT_IMAGE_STYLES } from "../../../text-to-image/domain/constants/styles.constants";
21
20
 
22
21
  export interface MemeGeneratorFeatureProps {
23
22
  config: any; // AIFeatureConfig merged with extraConfig
@@ -92,30 +91,32 @@ export const MemeGeneratorFeature: React.FC<MemeGeneratorFeatureProps> = ({
92
91
 
93
92
  if (state.imageUrl) {
94
93
  return (
95
- <ResultDisplay
96
- imageUrl={state.imageUrl}
94
+ <GenerationResultContent
95
+ result={{ imageUrl: state.imageUrl }}
97
96
  onSave={handleSave}
98
- onTryAgain={reset}
97
+ onRetry={reset}
99
98
  translations={{
100
- save: translations.saveButtonText || "Save",
101
- tryAgain: translations.tryAnotherText || "Try Another",
102
- success: translations.successText || "Meme Generated!"
99
+ share: "Share",
100
+ sharing: "Sharing...",
101
+ save: translations.saveButtonText || "Save to Gallery",
102
+ retry: translations.tryAnotherText || "Create Another",
103
+ aiGenerated: translations.successText || "Your meme is ready!",
103
104
  }}
104
105
  />
105
106
  );
106
107
  }
107
108
 
108
109
  return (
109
- <KeyboardAvoidingView
110
+ <KeyboardAvoidingView
110
111
  behavior={Platform.OS === "ios" ? "padding" : "height"}
111
112
  style={styles.container}
112
113
  >
113
114
  <ScrollView contentContainerStyle={styles.content} keyboardShouldPersistTaps="handled">
114
-
115
+
115
116
  {/* Prompt Input */}
116
117
  <View style={styles.section}>
117
118
  <AtomicText type="labelLarge" style={{color: tokens.colors.textPrimary}}>
118
- {translations.promptLabel || "Your Meme Idea"}
119
+ {translations.description || "Describe your meme idea"}
119
120
  </AtomicText>
120
121
  <PromptInput
121
122
  value={state.prompt}
@@ -141,9 +142,9 @@ export const MemeGeneratorFeature: React.FC<MemeGeneratorFeatureProps> = ({
141
142
  {/* Generate Button */}
142
143
  <GenerateButton
143
144
  onPress={handleGenerate}
144
- isLoading={state.isProcessing}
145
+ isProcessing={state.isProcessing}
145
146
  isDisabled={!isReady}
146
- title={translations.processButtonText || "Generate Meme"}
147
+ text={translations.processButtonText || "Generate Meme"}
147
148
  />
148
149
 
149
150
  {/* Error Display */}