@umituz/react-native-ai-generation-content 1.17.58 → 1.17.59

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.58",
3
+ "version": "1.17.59",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -45,6 +45,7 @@ export interface AIGenerationFormProps extends PropsWithChildren {
45
45
 
46
46
  onGenerate: () => void;
47
47
  isGenerating: boolean;
48
+ hideGenerateButton?: boolean;
48
49
 
49
50
  // Custom Generate Button Props
50
51
  generateButtonProps?: {
@@ -79,6 +80,7 @@ export const AIGenerationForm: React.FC<AIGenerationFormProps> = ({
79
80
 
80
81
  onGenerate,
81
82
  isGenerating,
83
+ hideGenerateButton,
82
84
 
83
85
  generateButtonProps,
84
86
 
@@ -135,18 +137,20 @@ export const AIGenerationForm: React.FC<AIGenerationFormProps> = ({
135
137
  {/* Custom children injected here */}
136
138
  {children}
137
139
 
138
- <GenerateButton
139
- onPress={onGenerate}
140
- isProcessing={isGenerating}
141
- isDisabled={onPromptChange ? !prompt?.trim() : false}
142
- text={translations.generateButton}
143
- processingText={translations.generatingButton}
144
- variant="solid"
145
- icon={generateButtonProps?.icon || "sparkles-outline"}
146
- costLabel={generateButtonProps?.costLabel}
147
- accessoryRight={generateButtonProps?.accessoryRight}
148
- onAccessoryRightPress={generateButtonProps?.onAccessoryRightPress}
149
- />
140
+ {!hideGenerateButton && (
141
+ <GenerateButton
142
+ onPress={onGenerate}
143
+ isProcessing={isGenerating}
144
+ isDisabled={onPromptChange ? !prompt?.trim() : false}
145
+ text={translations.generateButton}
146
+ processingText={translations.generatingButton}
147
+ variant="solid"
148
+ icon={generateButtonProps?.icon || "sparkles-outline"}
149
+ costLabel={generateButtonProps?.costLabel}
150
+ accessoryRight={generateButtonProps?.accessoryRight}
151
+ onAccessoryRightPress={generateButtonProps?.onAccessoryRightPress}
152
+ />
153
+ )}
150
154
  </>
151
155
  );
152
156
  };