@umituz/react-native-ai-generation-content 1.37.35 → 1.37.36

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.37.35",
3
+ "version": "1.37.36",
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",
@@ -25,7 +25,6 @@ export interface GenericWizardFlowProps {
25
25
  readonly userId?: string;
26
26
  readonly alertMessages: AlertMessages;
27
27
  readonly skipResultStep?: boolean;
28
- readonly hideActions?: boolean;
29
28
  readonly onStepChange?: (stepId: string, stepType: StepType | string) => void;
30
29
  readonly onGenerationStart?: (
31
30
  data: Record<string, unknown>,
@@ -51,7 +50,6 @@ export const GenericWizardFlow: React.FC<GenericWizardFlowProps> = (props) => {
51
50
  userId,
52
51
  alertMessages,
53
52
  skipResultStep = false,
54
- hideActions = false,
55
53
  onStepChange,
56
54
  onGenerationStart,
57
55
  onGenerationComplete,
@@ -107,7 +105,6 @@ export const GenericWizardFlow: React.FC<GenericWizardFlowProps> = (props) => {
107
105
  userId={userId}
108
106
  alertMessages={alertMessages}
109
107
  skipResultStep={skipResultStep}
110
- hideActions={hideActions}
111
108
  onStepChange={onStepChange}
112
109
  onGenerationStart={onGenerationStart}
113
110
  onGenerationComplete={onGenerationComplete}
@@ -26,7 +26,6 @@ export interface WizardFlowContentProps {
26
26
  readonly userId?: string;
27
27
  readonly alertMessages: AlertMessages;
28
28
  readonly skipResultStep?: boolean;
29
- readonly hideActions?: boolean;
30
29
  readonly onStepChange?: (stepId: string, stepType: StepType | string) => void;
31
30
  readonly onGenerationStart?: (
32
31
  data: Record<string, unknown>,
@@ -51,7 +50,6 @@ export const WizardFlowContent: React.FC<WizardFlowContentProps> = (props) => {
51
50
  userId,
52
51
  alertMessages,
53
52
  skipResultStep = false,
54
- hideActions = false,
55
53
  onStepChange,
56
54
  onGenerationStart,
57
55
  onGenerationComplete,
@@ -152,7 +150,6 @@ export const WizardFlowContent: React.FC<WizardFlowContentProps> = (props) => {
152
150
  isSaving={isSaving}
153
151
  isSharing={isSharing}
154
152
  showRating={Boolean(userId) && !hasRated}
155
- hideActions={hideActions}
156
153
  onNext={handlers.handleNextStep}
157
154
  onBack={handlers.handleBack}
158
155
  onPhotoContinue={handlers.handlePhotoContinue}
@@ -25,7 +25,6 @@ export const WizardStepRenderer: React.FC<WizardStepRendererProps> = ({
25
25
  isSaving,
26
26
  isSharing,
27
27
  showRating = true,
28
- hideActions = false,
29
28
  onNext,
30
29
  onBack,
31
30
  onPhotoContinue,
@@ -76,7 +75,6 @@ export const WizardStepRenderer: React.FC<WizardStepRendererProps> = ({
76
75
  iconOnly
77
76
  showTryAgain
78
77
  showRating={showRating}
79
- hideActions={hideActions}
80
78
  translations={{
81
79
  title: t("generation.result.title"),
82
80
  saveButton: t("generation.result.save"),
@@ -11,7 +11,6 @@ export interface WizardStepRendererProps {
11
11
  readonly isSaving: boolean;
12
12
  readonly isSharing: boolean;
13
13
  readonly showRating?: boolean;
14
- readonly hideActions?: boolean;
15
14
  readonly onNext: () => void;
16
15
  readonly onBack: () => void;
17
16
  readonly onPhotoContinue: (stepId: string, image: UploadedImage) => void;
@@ -11,7 +11,6 @@ export interface ResultStepProps {
11
11
  readonly isSaving: boolean;
12
12
  readonly isSharing: boolean;
13
13
  readonly showRating: boolean;
14
- readonly hideActions?: boolean;
15
14
  readonly onDownload: () => void;
16
15
  readonly onShare: () => void;
17
16
  readonly onRate?: () => void;
@@ -26,7 +25,6 @@ export function renderResultStep({
26
25
  isSaving,
27
26
  isSharing,
28
27
  showRating,
29
- hideActions = false,
30
28
  onDownload,
31
29
  onShare,
32
30
  onRate,
@@ -58,7 +56,6 @@ export function renderResultStep({
58
56
  iconOnly
59
57
  showTryAgain
60
58
  showRating={showRating}
61
- hideActions={hideActions}
62
59
  translations={{
63
60
  title: t("generation.result.title"),
64
61
  saveButton: t("generation.result.save"),
@@ -32,7 +32,6 @@ export const ResultPreviewScreen: React.FC<ResultPreviewScreenProps> = ({
32
32
  iconOnly = false,
33
33
  showTryAgain = true,
34
34
  showRating = false,
35
- hideActions = false,
36
35
  }) => {
37
36
  const tokens = useAppDesignTokens();
38
37
  const isVideo = Boolean(videoUrl);
@@ -67,22 +66,20 @@ export const ResultPreviewScreen: React.FC<ResultPreviewScreenProps> = ({
67
66
  <View style={styles.resultContainer}>
68
67
  {!hideLabel && <AtomicText style={styles.title}>{translations.yourResult}</AtomicText>}
69
68
  {isVideo ? <VideoResultPlayer uri={displayMediaUrl} /> : <ResultImageCard imageUrl={displayMediaUrl} />}
70
- {!hideActions && (
71
- <ResultActionBar
72
- isSaving={isSaving}
73
- isSharing={isSharing}
74
- onDownload={onDownload}
75
- onShare={onShare}
76
- onTryAgain={onTryAgain}
77
- onRate={onRate}
78
- saveButtonText={translations.saveButton}
79
- shareButtonText={translations.shareButton}
80
- tryAgainButtonText={translations.tryAnother}
81
- iconOnly={iconOnly}
82
- showTryAgain={showTryAgain}
83
- showRating={showRating}
84
- />
85
- )}
69
+ <ResultActionBar
70
+ isSaving={isSaving}
71
+ isSharing={isSharing}
72
+ onDownload={onDownload}
73
+ onShare={onShare}
74
+ onTryAgain={onTryAgain}
75
+ onRate={onRate}
76
+ saveButtonText={translations.saveButton}
77
+ shareButtonText={translations.shareButton}
78
+ tryAgainButtonText={translations.tryAnother}
79
+ iconOnly={iconOnly}
80
+ showTryAgain={showTryAgain}
81
+ showRating={showRating}
82
+ />
86
83
  </View>
87
84
  {showRecent && (
88
85
  <RecentCreationsSection
@@ -125,8 +125,6 @@ export interface ResultPreviewScreenProps {
125
125
  showTryAgain?: boolean;
126
126
  /** Show rating button */
127
127
  showRating?: boolean;
128
- /** Hide all action buttons */
129
- hideActions?: boolean;
130
128
  }
131
129
 
132
130
  /**