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

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.213",
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,38 @@ export const MemeGeneratorFeature: React.FC<MemeGeneratorFeatureProps> = ({
92
91
 
93
92
  if (state.imageUrl) {
94
93
  return (
95
- <ResultDisplay
94
+ <GenerationResultContent
96
95
  imageUrl={state.imageUrl}
97
96
  onSave={handleSave}
98
97
  onTryAgain={reset}
99
- translations={{
100
- save: translations.saveButtonText || "Save",
101
- tryAgain: translations.tryAnotherText || "Try Another",
102
- success: translations.successText || "Meme Generated!"
98
+ resultConfig={{
99
+ header: {
100
+ title: translations.successText || "Your meme is ready!",
101
+ },
102
+ actions: {
103
+ save: {
104
+ label: translations.saveButtonText || "Save to Gallery",
105
+ },
106
+ tryAgain: {
107
+ label: translations.tryAnotherText || "Create Another",
108
+ },
109
+ },
103
110
  }}
104
111
  />
105
112
  );
106
113
  }
107
114
 
108
115
  return (
109
- <KeyboardAvoidingView
116
+ <KeyboardAvoidingView
110
117
  behavior={Platform.OS === "ios" ? "padding" : "height"}
111
118
  style={styles.container}
112
119
  >
113
120
  <ScrollView contentContainerStyle={styles.content} keyboardShouldPersistTaps="handled">
114
-
121
+
115
122
  {/* Prompt Input */}
116
123
  <View style={styles.section}>
117
124
  <AtomicText type="labelLarge" style={{color: tokens.colors.textPrimary}}>
118
- {translations.promptLabel || "Your Meme Idea"}
125
+ {translations.description || "Describe your meme idea"}
119
126
  </AtomicText>
120
127
  <PromptInput
121
128
  value={state.prompt}
@@ -141,9 +148,9 @@ export const MemeGeneratorFeature: React.FC<MemeGeneratorFeatureProps> = ({
141
148
  {/* Generate Button */}
142
149
  <GenerateButton
143
150
  onPress={handleGenerate}
144
- isLoading={state.isProcessing}
151
+ isProcessing={state.isProcessing}
145
152
  isDisabled={!isReady}
146
- title={translations.processButtonText || "Generate Meme"}
153
+ text={translations.processButtonText || "Generate Meme"}
147
154
  />
148
155
 
149
156
  {/* Error Display */}