@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
|
@@ -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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
};
|