@umituz/react-native-ai-generation-content 1.83.57 → 1.83.58

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.83.57",
3
+ "version": "1.83.58",
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",
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useCallback } from "react";
2
2
  import { View, FlatList, RefreshControl } from "react-native";
3
3
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
4
- import { FilterSheet } from "@umituz/react-native-design-system/molecules";
4
+ import { FilterSheet, useAppFocusEffect } from "@umituz/react-native-design-system/molecules";
5
5
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
6
6
  import { useCreations } from "../hooks/useCreations";
7
7
  import { useDeleteCreation } from "../hooks/useDeleteCreation";
@@ -7,6 +7,8 @@
7
7
  import React from "react";
8
8
  import { TouchableOpacity, StyleSheet } from "react-native";
9
9
  import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
10
+ import type { IconName } from "@umituz/react-native-design-system/atoms";
11
+ import { useResponsive } from "@umituz/react-native-design-system/responsive";
10
12
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
11
13
 
12
14
  interface WizardContinueButtonProps {
@@ -7,7 +7,8 @@ import React, { useMemo, useCallback } from "react";
7
7
  import { View, StyleSheet } from "react-native";
8
8
  import { AtomicText } from "@umituz/react-native-design-system/atoms";
9
9
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
10
- import { useAlert, AlertType, AlertMode } from "@umituz/react-native-design-system/molecules";
10
+ import { useAlert, AlertType, AlertMode, NavigationHeader, InfoGrid } from "@umituz/react-native-design-system/molecules";
11
+ import type { InfoGridItem } from "@umituz/react-native-design-system/molecules";
11
12
  import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
12
13
  import { PhotoUploadCard } from "../../../../../presentation/components";
13
14
  import type { UploadedImage } from "../../../../../presentation/hooks/generation/useAIGenerateState";
@@ -6,6 +6,7 @@
6
6
  import React, { useState, useCallback, useMemo } from "react";
7
7
  import { View, TouchableOpacity, StyleSheet } from "react-native";
8
8
  import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
9
+ import { NavigationHeader } from "@umituz/react-native-design-system/molecules";
9
10
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
10
11
  import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
11
12
  import type { SelectionScreenProps, SelectionOption } from "./SelectionScreen.types";
@@ -8,7 +8,7 @@ import React, { useState, useCallback, useMemo } from "react";
8
8
  import { View, TextInput, StyleSheet } from "react-native";
9
9
  import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
10
10
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
11
- import { useAlert, AlertType, AlertMode } from "@umituz/react-native-design-system/molecules";
11
+ import { useAlert, AlertType, AlertMode, NavigationHeader } from "@umituz/react-native-design-system/molecules";
12
12
  import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
13
13
  import { WizardContinueButton } from "../components/WizardContinueButton";
14
14
  import { contentModerationService } from "../../../../../domains/content-moderation";
@@ -6,6 +6,7 @@
6
6
  import React, { useMemo } from "react";
7
7
  import { StyleSheet, View, TouchableOpacity, ActivityIndicator } from "react-native";
8
8
  import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms";
9
+ import { useResponsive } from "@umituz/react-native-design-system/responsive";
9
10
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
10
11
  import type { ResultActionBarProps } from "../types/result-preview.types";
11
12
 
@@ -1,6 +1,7 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { StyleSheet, View } from "react-native";
3
3
  import { AtomicText } from "@umituz/react-native-design-system/atoms";
4
+ import { NavigationHeader } from "@umituz/react-native-design-system/molecules";
4
5
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
5
6
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
6
7
  import { ResultImageCard } from "./ResultImageCard";
@@ -7,7 +7,7 @@ import { useState, useCallback } from "react";
7
7
 
8
8
  import * as MediaLibrary from "expo-media-library";
9
9
  import * as Sharing from "expo-sharing";
10
- import { isVideoUrl } from "@umituz/react-native-design-system/media";
10
+ import { isVideoUrl, isBase64DataUrl, toDataUrl, saveBase64ToFile, downloadMediaToFile } from "@umituz/react-native-design-system/media";
11
11
  import type { UseResultActionsOptions, UseResultActionsReturn } from "../types/result-preview.types";
12
12
 
13
13
  export const useResultActions = (options: UseResultActionsOptions = {}): UseResultActionsReturn => {
@@ -7,6 +7,7 @@
7
7
  import React from "react";
8
8
  import { TouchableOpacity, StyleSheet } from "react-native";
9
9
  import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
10
+ import { useResponsive } from "@umituz/react-native-design-system/responsive";
10
11
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
11
12
 
12
13
  interface ScenarioContinueButtonProps {
@@ -6,6 +6,7 @@
6
6
  import React, { useMemo, useCallback, useState } from "react";
7
7
  import { View, FlatList, StyleSheet, type ListRenderItemInfo } from "react-native";
8
8
  import { AtomicText, AtomicCard, AtomicSpinner } from "@umituz/react-native-design-system/atoms";
9
+ import { NavigationHeader } from "@umituz/react-native-design-system/molecules";
9
10
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
10
11
  import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
11
12
  import { useSafeAreaInsets } from "react-native-safe-area-context";
@@ -6,6 +6,7 @@
6
6
  import React, { useMemo } from "react";
7
7
  import { View, StyleSheet } from "react-native";
8
8
  import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
9
+ import { NavigationHeader } from "@umituz/react-native-design-system/molecules";
9
10
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
10
11
  import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
11
12
  import { WizardContinueButton } from "../../../../domains/generation/wizard/presentation/components/WizardContinueButton";
@@ -8,6 +8,7 @@
8
8
  import React, { useCallback } from "react";
9
9
  import { View, ScrollView } from "react-native";
10
10
  import { AtomicText } from "@umituz/react-native-design-system/atoms";
11
+ import { useResponsive } from "@umituz/react-native-design-system/responsive";
11
12
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
12
13
  import { AIGenerationForm } from "../components/AIGenerationForm";
13
14
  import { AIGenerationResult } from "../components/display/AIGenerationResult";
@@ -8,6 +8,7 @@
8
8
  import React, { useCallback } from "react";
9
9
  import { View, ScrollView } from "react-native";
10
10
  import { AtomicText } from "@umituz/react-native-design-system/atoms";
11
+ import { useResponsive } from "@umituz/react-native-design-system/responsive";
11
12
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
12
13
  import { AIGenerationForm } from "../components/AIGenerationForm";
13
14
  import { AIGenerationResult } from "../components/display/AIGenerationResult";
@@ -9,6 +9,7 @@
9
9
  import React, { useCallback } from "react";
10
10
  import { View, ScrollView } from "react-native";
11
11
  import { AtomicText } from "@umituz/react-native-design-system/atoms";
12
+ import { useResponsive } from "@umituz/react-native-design-system/responsive";
12
13
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
13
14
  import { AIGenerationForm } from "../components/AIGenerationForm";
14
15
  import { AIGenerationResult } from "../components/display/AIGenerationResult";