@umituz/react-native-ai-generation-content 1.25.0 → 1.25.2
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.25.
|
|
3
|
+
"version": "1.25.2",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -29,7 +29,7 @@ export interface GenericWizardFlowProps {
|
|
|
29
29
|
readonly onBack?: () => void;
|
|
30
30
|
readonly t: (key: string) => string;
|
|
31
31
|
readonly translations?: Record<string, string>;
|
|
32
|
-
readonly renderPreview?: () => React.ReactElement | null;
|
|
32
|
+
readonly renderPreview?: (onContinue: () => void) => React.ReactElement | null;
|
|
33
33
|
readonly renderGenerating?: (progress: number) => React.ReactElement | null;
|
|
34
34
|
readonly renderResult?: (result: unknown) => React.ReactElement | null;
|
|
35
35
|
}
|
|
@@ -144,7 +144,8 @@ export const GenericWizardFlow: React.FC<GenericWizardFlowProps> = ({
|
|
|
144
144
|
// Special steps with custom renderers
|
|
145
145
|
switch (step.type) {
|
|
146
146
|
case StepType.SCENARIO_PREVIEW:
|
|
147
|
-
|
|
147
|
+
// Preview continues to next step automatically
|
|
148
|
+
return renderPreview?.(flow.nextStep) || null;
|
|
148
149
|
|
|
149
150
|
case StepType.GENERATING:
|
|
150
151
|
return renderGenerating?.(flow.generationProgress) || null;
|