@umituz/react-native-ai-generation-content 1.17.56 → 1.17.57

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.56",
3
+ "version": "1.17.57",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -46,6 +46,14 @@ export interface AIGenerationFormProps extends PropsWithChildren {
46
46
  onGenerate: () => void;
47
47
  isGenerating: boolean;
48
48
 
49
+ // Custom Generate Button Props
50
+ generateButtonProps?: {
51
+ costLabel?: string;
52
+ accessoryRight?: React.ReactNode;
53
+ onAccessoryRightPress?: () => void;
54
+ icon?: string;
55
+ };
56
+
49
57
  translations: AIGenerationFormTranslations;
50
58
  }
51
59
 
@@ -72,6 +80,8 @@ export const AIGenerationForm: React.FC<AIGenerationFormProps> = ({
72
80
  onGenerate,
73
81
  isGenerating,
74
82
 
83
+ generateButtonProps,
84
+
75
85
  translations,
76
86
  children,
77
87
  }) => {
@@ -130,7 +140,10 @@ export const AIGenerationForm: React.FC<AIGenerationFormProps> = ({
130
140
  text={translations.generateButton}
131
141
  processingText={translations.generatingButton}
132
142
  variant="solid"
133
- icon="sparkles-outline"
143
+ icon={generateButtonProps?.icon || "sparkles-outline"}
144
+ costLabel={generateButtonProps?.costLabel}
145
+ accessoryRight={generateButtonProps?.accessoryRight}
146
+ onAccessoryRightPress={generateButtonProps?.onAccessoryRightPress}
134
147
  />
135
148
  </>
136
149
  );