@umituz/react-native-ai-generation-content 1.83.56 → 1.83.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 +1 -1
- package/src/domains/access-control/hooks/useAIFeatureGate.ts +1 -1
- package/src/domains/background/presentation/hooks/use-pending-jobs.ts +1 -1
- package/src/domains/creations/domain/utils/creation-id.util.ts +1 -1
- package/src/domains/creations/domain/utils/preview-helpers.ts +1 -1
- package/src/domains/creations/domain/value-objects/CreationsConfig.ts +1 -1
- package/src/domains/creations/presentation/components/CreationActions.tsx +2 -5
- package/src/domains/creations/presentation/components/CreationBadges.tsx +2 -6
- package/src/domains/creations/presentation/components/CreationCard.tsx +2 -4
- package/src/domains/creations/presentation/components/CreationCardMeta.tsx +2 -1
- package/src/domains/creations/presentation/components/CreationImagePreview.tsx +3 -6
- package/src/domains/creations/presentation/components/CreationPreview.tsx +1 -1
- package/src/domains/creations/presentation/components/CreationThumbnail.tsx +2 -4
- package/src/domains/creations/presentation/components/CreationVideoPreview.tsx +2 -5
- package/src/domains/creations/presentation/components/CreationsFilterBar.tsx +2 -5
- package/src/domains/creations/presentation/components/CreationsHomeCard.tsx +2 -5
- package/src/domains/creations/presentation/components/EmptyState.tsx +2 -1
- package/src/domains/creations/presentation/components/FilterChips.tsx +2 -1
- package/src/domains/creations/presentation/components/GalleryEmptyStates.tsx +2 -1
- package/src/domains/creations/presentation/components/GalleryHeader.tsx +2 -1
- package/src/domains/creations/presentation/components/GalleryResultPreview.tsx +1 -1
- package/src/domains/creations/presentation/components/GalleryScreenHeader.tsx +2 -1
- package/src/domains/creations/presentation/components/PendingJobsSection.tsx +2 -1
- package/src/domains/creations/presentation/components/useCreationCardActions.ts +1 -1
- package/src/domains/creations/presentation/hooks/useGalleryCallbacks.ts +2 -1
- package/src/domains/creations/presentation/screens/CreationsGalleryScreen.tsx +3 -6
- package/src/domains/creations/presentation/utils/gallery-filters.ts +1 -1
- package/src/domains/face-detection/presentation/components/FaceDetectionToggle.tsx +2 -5
- package/src/domains/face-detection/presentation/components/FaceValidationStatus.tsx +2 -6
- package/src/domains/generation/infrastructure/flow/useFlowStore.ts +1 -1
- package/src/domains/generation/wizard/infrastructure/strategies/shared/photo-extraction.utils.ts +1 -1
- package/src/domains/generation/wizard/presentation/components/WizardContinueButton.tsx +2 -7
- package/src/domains/generation/wizard/presentation/components/WizardFlowContent.tsx +1 -1
- package/src/domains/generation/wizard/presentation/components/WizardStepRenderer.tsx +1 -1
- package/src/domains/generation/wizard/presentation/hooks/useGenerationHandlers.ts +1 -1
- package/src/domains/generation/wizard/presentation/hooks/usePhotoUploadState.ts +1 -1
- package/src/domains/generation/wizard/presentation/hooks/useWizardFlowHandlers.ts +1 -1
- package/src/domains/generation/wizard/presentation/screens/GeneratingScreen.tsx +3 -1
- package/src/domains/generation/wizard/presentation/screens/GenericPhotoUploadScreen.tsx +4 -12
- package/src/domains/generation/wizard/presentation/screens/SelectionScreen.tsx +3 -8
- package/src/domains/generation/wizard/presentation/screens/TextInputScreen.tsx +4 -11
- package/src/domains/image-to-video/presentation/components/AddMoreCard.tsx +2 -5
- package/src/domains/image-to-video/presentation/components/AnimationStyleSelector.tsx +2 -5
- package/src/domains/image-to-video/presentation/components/DurationSelector.tsx +2 -4
- package/src/domains/image-to-video/presentation/components/EmptyGridState.tsx +2 -5
- package/src/domains/image-to-video/presentation/components/GridImageItem.tsx +2 -5
- package/src/domains/image-to-video/presentation/components/ImageSelectionGrid.styles.ts +1 -1
- package/src/domains/image-to-video/presentation/components/ImageSelectionGrid.tsx +2 -4
- package/src/domains/image-to-video/presentation/screens/ImageToVideoWizardFlow.tsx +1 -1
- package/src/domains/result-preview/presentation/components/RecentCreationsSection.tsx +3 -6
- package/src/domains/result-preview/presentation/components/ResultActionBar.tsx +2 -6
- package/src/domains/result-preview/presentation/components/ResultImageCard.tsx +2 -1
- package/src/domains/result-preview/presentation/components/ResultPreviewScreen.tsx +3 -6
- package/src/domains/result-preview/presentation/components/StarRatingPicker.tsx +2 -6
- package/src/domains/result-preview/presentation/hooks/useResultActions.ts +1 -7
- package/src/domains/scenarios/presentation/components/ScenarioContinueButton.tsx +2 -6
- package/src/domains/scenarios/presentation/screens/HierarchicalScenarioListScreen.tsx +3 -9
- package/src/domains/scenarios/presentation/screens/MainCategoryScreen.tsx +3 -6
- package/src/domains/scenarios/presentation/screens/ScenarioPreviewScreen.tsx +3 -9
- package/src/domains/scenarios/presentation/screens/SubCategoryScreen.tsx +3 -6
- package/src/domains/text-to-image/presentation/screens/TextToImageWizardFlow.tsx +1 -1
- package/src/domains/text-to-video/presentation/components/FrameSelector.tsx +2 -5
- package/src/domains/text-to-video/presentation/components/GenerationTabs.tsx +2 -4
- package/src/domains/text-to-video/presentation/components/HeroSection.tsx +2 -5
- package/src/domains/text-to-video/presentation/components/HintCarousel.tsx +2 -4
- package/src/domains/text-to-video/presentation/components/OptionsPanel.tsx +2 -4
- package/src/domains/text-to-video/presentation/screens/TextToVideoWizardFlow.tsx +1 -1
- package/src/infrastructure/utils/feature-utils.ts +1 -1
- package/src/presentation/components/AIGenerationForm.tsx +2 -5
- package/src/presentation/components/AIGenerationHero.tsx +2 -5
- package/src/presentation/components/GenerationProgressContent.tsx +1 -1
- package/src/presentation/components/PendingJobCard.tsx +2 -1
- package/src/presentation/components/PendingJobCardActions.tsx +2 -1
- package/src/presentation/components/PhotoUploadCard/ImageContent.tsx +2 -5
- package/src/presentation/components/PhotoUploadCard/PhotoUploadCard.styles.ts +1 -1
- package/src/presentation/components/PhotoUploadCard/PhotoUploadCard.tsx +1 -1
- package/src/presentation/components/PhotoUploadCard/PlaceholderContent.tsx +2 -5
- package/src/presentation/components/PhotoUploadCard/ValidatingContent.tsx +1 -4
- package/src/presentation/components/PhotoUploadCard/useBorderColor.ts +1 -1
- package/src/presentation/components/ProgressCloseButton.tsx +1 -1
- package/src/presentation/components/ProgressDismissButton.tsx +2 -4
- package/src/presentation/components/ProgressHeader.tsx +2 -5
- package/src/presentation/components/ProgressHint.tsx +2 -4
- package/src/presentation/components/PromptInput.tsx +2 -4
- package/src/presentation/components/StylePresetsGrid.tsx +2 -4
- package/src/presentation/components/buttons/GenerateButton.tsx +2 -6
- package/src/presentation/components/display/AIGenerationResult.tsx +2 -5
- package/src/presentation/components/display/ResultDisplay.tsx +2 -6
- package/src/presentation/components/display/index.ts +1 -1
- package/src/presentation/components/headers/AIGenScreenHeader.tsx +2 -5
- package/src/presentation/components/headers/CreditBadge.tsx +2 -5
- package/src/presentation/components/headers/FeatureHeader.tsx +2 -4
- package/src/presentation/components/image-picker/DualImagePicker.tsx +1 -1
- package/src/presentation/components/modals/SettingsSheet.tsx +2 -5
- package/src/presentation/components/moderation/ModerationSummary.tsx +2 -4
- package/src/presentation/components/photo-step/PhotoStep.tsx +1 -1
- package/src/presentation/components/prompts/ExamplePrompts.tsx +2 -4
- package/src/presentation/components/result/ActionButton.tsx +2 -5
- package/src/presentation/components/result/GenerationResultContent.tsx +1 -3
- package/src/presentation/components/result/ResultActions.styles.ts +1 -1
- package/src/presentation/components/result/ResultActions.tsx +1 -1
- package/src/presentation/components/result/ResultHeader.tsx +2 -5
- package/src/presentation/components/result/ResultImageCard.tsx +2 -5
- package/src/presentation/components/result/ResultStoryCard.tsx +2 -4
- package/src/presentation/components/result/RetryButton.tsx +1 -4
- package/src/presentation/components/result/button-style.utils.ts +1 -1
- package/src/presentation/components/selectors/AspectRatioSelector.tsx +2 -5
- package/src/presentation/components/selectors/DurationSelector.tsx +2 -4
- package/src/presentation/components/selectors/GridSelector.tsx +2 -4
- package/src/presentation/components/selectors/StyleSelector.tsx +2 -5
- package/src/presentation/components/shared/ModelOptionItem.tsx +2 -5
- package/src/presentation/components/shared/ModelSelectorModal.tsx +3 -6
- package/src/presentation/components/shared/ModelSelectorTrigger.tsx +2 -5
- package/src/presentation/hooks/generation/orchestrator.ts +2 -1
- package/src/presentation/hooks/generation/useDualImageGeneration.ts +2 -1
- package/src/presentation/hooks/generation/useImagePicker.ts +1 -1
- package/src/presentation/layouts/DualImageFeatureLayout.tsx +2 -5
- package/src/presentation/layouts/DualImageVideoFeatureLayout.tsx +2 -4
- package/src/presentation/layouts/SingleImageFeatureLayout.tsx +2 -5
- package/src/presentation/layouts/SingleImageWithPromptFeatureLayout.tsx +2 -5
- package/src/presentation/types/flow-step-configs.types.ts +1 -1
- package/src/shared/components/common/ProgressBar.tsx +2 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
9
|
import { GenericWizardFlow } from "../../../../domains/generation/wizard/presentation/components";
|
|
10
10
|
import { IMAGE_TO_VIDEO_WIZARD_CONFIG } from "../../../../domains/generation/wizard/configs";
|
|
11
11
|
import { useAIFeatureGate } from "../../../../domains/access-control";
|
|
@@ -5,12 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo, useCallback } from "react";
|
|
7
7
|
import { StyleSheet, View, TouchableOpacity, FlatList } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
AtomicIcon,
|
|
12
|
-
useAppDesignTokens,
|
|
13
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { AtomicImage } from "@umituz/react-native-design-system/image";
|
|
10
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
14
11
|
import type { RecentCreation } from "../types/result-preview.types";
|
|
15
12
|
|
|
16
13
|
interface RecentCreationsSectionProps {
|
|
@@ -5,12 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import { StyleSheet, View, TouchableOpacity, ActivityIndicator } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
AtomicText,
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
useResponsive,
|
|
13
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
14
10
|
import type { ResultActionBarProps } from "../types/result-preview.types";
|
|
15
11
|
|
|
16
12
|
export const ResultActionBar: React.FC<ResultActionBarProps> = ({
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import { StyleSheet, View } from "react-native";
|
|
8
|
-
import { AtomicImage
|
|
8
|
+
import { AtomicImage } from "@umituz/react-native-design-system/image";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
10
|
import type { ResultImageCardProps } from "../types/result-preview.types";
|
|
10
11
|
|
|
11
12
|
export const ResultImageCard: React.FC<ResultImageCardProps> = ({
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { StyleSheet, View } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
ScreenLayout,
|
|
7
|
-
NavigationHeader,
|
|
8
|
-
} from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
4
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
5
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
6
|
import { ResultImageCard } from "./ResultImageCard";
|
|
10
7
|
import { ResultActionBar } from "./ResultActionBar";
|
|
11
8
|
import { RecentCreationsSection } from "./RecentCreationsSection";
|
|
@@ -5,12 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useState, useMemo } from "react";
|
|
7
7
|
import { StyleSheet, View, TouchableOpacity, Modal, TextInput } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
AtomicText,
|
|
11
|
-
AtomicButton,
|
|
12
|
-
useAppDesignTokens,
|
|
13
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicIcon, AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
14
10
|
|
|
15
11
|
interface StarRatingPickerProps {
|
|
16
12
|
visible: boolean;
|
|
@@ -7,13 +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 {
|
|
11
|
-
isBase64DataUrl,
|
|
12
|
-
toDataUrl,
|
|
13
|
-
saveBase64ToFile,
|
|
14
|
-
isVideoUrl,
|
|
15
|
-
downloadMediaToFile,
|
|
16
|
-
} from "@umituz/react-native-design-system";
|
|
10
|
+
import { isVideoUrl } from "@umituz/react-native-design-system/media";
|
|
17
11
|
import type { UseResultActionsOptions, UseResultActionsReturn } from "../types/result-preview.types";
|
|
18
12
|
|
|
19
13
|
export const useResultActions = (options: UseResultActionsOptions = {}): UseResultActionsReturn => {
|
|
@@ -6,12 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { TouchableOpacity, StyleSheet } from "react-native";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
AtomicIcon,
|
|
12
|
-
useAppDesignTokens,
|
|
13
|
-
useResponsive,
|
|
14
|
-
} from "@umituz/react-native-design-system";
|
|
9
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
10
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
15
11
|
|
|
16
12
|
interface ScenarioContinueButtonProps {
|
|
17
13
|
readonly canContinue: boolean;
|
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo, useCallback, useState } from "react";
|
|
7
7
|
import { View, FlatList, StyleSheet, type ListRenderItemInfo } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
ScreenLayout,
|
|
13
|
-
NavigationHeader,
|
|
14
|
-
AtomicSpinner,
|
|
15
|
-
type DesignTokens,
|
|
16
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicCard, AtomicSpinner } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
10
|
+
import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
|
|
17
11
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
18
12
|
import type { ScenarioData } from "../../domain/scenario.types";
|
|
19
13
|
import type { SubCategory } from "../../domain/category.types";
|
|
@@ -9,12 +9,9 @@ import {
|
|
|
9
9
|
StyleSheet,
|
|
10
10
|
type ListRenderItemInfo,
|
|
11
11
|
} from "react-native";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ScreenLayout,
|
|
16
|
-
type DesignTokens,
|
|
17
|
-
} from "@umituz/react-native-design-system";
|
|
12
|
+
import { AtomicCard } from "@umituz/react-native-design-system/atoms";
|
|
13
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
14
|
+
import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
|
|
18
15
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
19
16
|
import { AIGenScreenHeader } from "../../../../presentation/components";
|
|
20
17
|
import type { MainCategory } from "../../domain/category.types";
|
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
ScreenLayout,
|
|
13
|
-
type DesignTokens,
|
|
14
|
-
HeroSection,
|
|
15
|
-
NavigationHeader,
|
|
16
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
10
|
+
import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
|
|
17
11
|
import { WizardContinueButton } from "../../../../domains/generation/wizard/presentation/components/WizardContinueButton";
|
|
18
12
|
import type { ScenarioData } from "../../domain/scenario.types";
|
|
19
13
|
|
|
@@ -9,12 +9,9 @@ import {
|
|
|
9
9
|
StyleSheet,
|
|
10
10
|
type ListRenderItemInfo,
|
|
11
11
|
} from "react-native";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ScreenLayout,
|
|
16
|
-
type DesignTokens,
|
|
17
|
-
} from "@umituz/react-native-design-system";
|
|
12
|
+
import { AtomicCard } from "@umituz/react-native-design-system/atoms";
|
|
13
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
14
|
+
import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
|
|
18
15
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
19
16
|
import { AIGenScreenHeader } from "../../../../presentation/components";
|
|
20
17
|
import type { SubCategory } from "../../domain/category.types";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
9
|
import { GenericWizardFlow } from "../../../../domains/generation/wizard/presentation/components";
|
|
10
10
|
import { TEXT_TO_IMAGE_WIZARD_CONFIG } from "../../../../domains/generation/wizard/configs";
|
|
11
11
|
import { useAIFeatureGate } from "../../../../domains/access-control";
|
|
@@ -5,11 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, StyleSheet, TouchableOpacity, Image } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
AtomicIcon,
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
13
10
|
import type { FrameSelectorProps } from "../../domain/types";
|
|
14
11
|
|
|
15
12
|
interface FrameContentProps {
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
useAppDesignTokens,
|
|
11
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
12
10
|
import type { GenerationTabsProps } from "../../domain/types";
|
|
13
11
|
|
|
14
12
|
export const GenerationTabs: React.FC<GenerationTabsProps> = ({
|
|
@@ -5,11 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
AtomicIcon,
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
13
10
|
import type { HeroSectionProps } from "../../domain/types";
|
|
14
11
|
|
|
15
12
|
export const HeroSection: React.FC<HeroSectionProps> = ({
|
|
@@ -11,10 +11,8 @@ import {
|
|
|
11
11
|
Image,
|
|
12
12
|
StyleSheet,
|
|
13
13
|
} from "react-native";
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
useAppDesignTokens,
|
|
17
|
-
} from "@umituz/react-native-design-system";
|
|
14
|
+
import { AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
15
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
18
16
|
import type { HintCarouselProps } from "../../domain/types";
|
|
19
17
|
|
|
20
18
|
export const HintCarousel: React.FC<HintCarouselProps> = ({
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, StyleSheet, Switch, TouchableOpacity } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
useAppDesignTokens,
|
|
11
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
12
10
|
import type { OptionsPanelProps } from "../../domain/types";
|
|
13
11
|
|
|
14
12
|
export const OptionsPanel: React.FC<OptionsPanelProps> = ({
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
8
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
9
|
import { GenericWizardFlow } from "../../../../domains/generation/wizard/presentation/components";
|
|
10
10
|
import { TEXT_TO_VIDEO_WIZARD_CONFIG } from "../../../../domains/generation/wizard/configs";
|
|
11
11
|
import { useAIFeatureGate } from "../../../../domains/access-control";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Uses ONLY configured app services - no alternatives
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { readFileAsBase64 } from "@umituz/react-native-design-system";
|
|
6
|
+
import { readFileAsBase64 } from "@umituz/react-native-design-system/filesystem";
|
|
7
7
|
import { getAuthService, getCreditService, getPaywallService, isAppServicesConfigured } from "../config/app-services.config";
|
|
8
8
|
import { env } from "../config/env.config";
|
|
9
9
|
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TouchableOpacity, StyleSheet } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
AtomicIcon,
|
|
6
|
-
useAppDesignTokens,
|
|
7
|
-
} from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
4
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
8
5
|
|
|
9
6
|
import { StyleSelector } from "./selectors/StyleSelector";
|
|
10
7
|
import { DurationSelector } from "./selectors/DurationSelector";
|
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, StyleSheet, type ViewStyle } from "react-native";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
AtomicIcon,
|
|
12
|
-
useAppDesignTokens,
|
|
13
|
-
} from "@umituz/react-native-design-system";
|
|
9
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
10
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
14
11
|
|
|
15
12
|
export interface AIGenerationHeroProps {
|
|
16
13
|
readonly title: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View } from "react-native";
|
|
9
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
10
10
|
import { ProgressCloseButton } from "./ProgressCloseButton";
|
|
11
11
|
import { ProgressHeader } from "./ProgressHeader";
|
|
12
12
|
import { ProgressHint } from "./ProgressHint";
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, StyleSheet } from "react-native";
|
|
8
|
-
import { AtomicText, AtomicSpinner
|
|
8
|
+
import { AtomicText, AtomicSpinner } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
10
|
import type { BackgroundJob } from "../../domains/background/domain/entities/job.types";
|
|
10
11
|
import { ProgressBar } from "../../shared/components/common";
|
|
11
12
|
import { PendingJobCardActions } from "./PendingJobCardActions";
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
8
|
-
import { AtomicText
|
|
8
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
9
10
|
|
|
10
11
|
export interface PendingJobCardActionsProps {
|
|
11
12
|
id: string;
|
|
@@ -5,11 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Image, TouchableOpacity, View } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
AtomicText,
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
13
10
|
import type { PhotoUploadCardStyles } from "./PhotoUploadCard.styles";
|
|
14
11
|
|
|
15
12
|
interface ImageContentProps {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { StyleSheet } from "react-native";
|
|
6
|
-
import type { DesignTokens } from "@umituz/react-native-design-system";
|
|
6
|
+
import type { DesignTokens } from "@umituz/react-native-design-system/theme";
|
|
7
7
|
import type { PhotoUploadCardConfig } from "./PhotoUploadCard.types";
|
|
8
8
|
|
|
9
9
|
export type PhotoUploadCardStyles = ReturnType<typeof createPhotoUploadCardStyles>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React, { useMemo } from "react";
|
|
9
9
|
import { View, Pressable } from "react-native";
|
|
10
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
10
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
11
11
|
import { ValidatingContent } from "./ValidatingContent";
|
|
12
12
|
import { ImageContent } from "./ImageContent";
|
|
13
13
|
import { PlaceholderContent } from "./PlaceholderContent";
|
|
@@ -5,11 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
AtomicText,
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
13
10
|
import type { PhotoUploadCardStyles } from "./PhotoUploadCard.styles";
|
|
14
11
|
|
|
15
12
|
interface PlaceholderContentProps {
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
AtomicText,
|
|
10
|
-
AtomicSpinner,
|
|
11
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicSpinner } from "@umituz/react-native-design-system/atoms";
|
|
12
9
|
import type { PhotoUploadCardStyles } from "./PhotoUploadCard.styles";
|
|
13
10
|
|
|
14
11
|
interface ValidatingContentProps {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { TouchableOpacity } from "react-native";
|
|
8
|
-
import { AtomicIcon } from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
9
|
import { generationProgressContentStyles } from "./GenerationProgressContent.styles";
|
|
10
10
|
|
|
11
11
|
interface ProgressCloseButtonProps {
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { TouchableOpacity } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
useAppDesignTokens,
|
|
11
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
12
10
|
import { generationProgressContentStyles } from "./GenerationProgressContent.styles";
|
|
13
11
|
|
|
14
12
|
interface ProgressDismissButtonProps {
|
|
@@ -5,11 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
AtomicIcon,
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
13
10
|
import { generationProgressContentStyles } from "./GenerationProgressContent.styles";
|
|
14
11
|
|
|
15
12
|
interface ProgressHeaderProps {
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { TouchableOpacity } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
useAppDesignTokens,
|
|
11
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
12
10
|
import { generationProgressContentStyles } from "./GenerationProgressContent.styles";
|
|
13
11
|
|
|
14
12
|
interface ProgressHintProps {
|
|
@@ -6,10 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, TextInput, StyleSheet, type ViewStyle } from "react-native";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
} from "@umituz/react-native-design-system";
|
|
9
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
10
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
13
11
|
|
|
14
12
|
export interface PromptInputProps {
|
|
15
13
|
readonly value: string;
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
useAppDesignTokens,
|
|
11
|
-
} from "@umituz/react-native-design-system";
|
|
8
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
12
10
|
|
|
13
11
|
export interface StylePreset {
|
|
14
12
|
readonly id: string;
|
|
@@ -6,12 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, StyleSheet, TouchableOpacity, type ViewStyle } from "react-native";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
useAppDesignTokens,
|
|
12
|
-
AtomicIcon,
|
|
13
|
-
AtomicSpinner,
|
|
14
|
-
} from "@umituz/react-native-design-system";
|
|
9
|
+
import { AtomicText, AtomicIcon, AtomicSpinner } from "@umituz/react-native-design-system/atoms";
|
|
10
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
15
11
|
|
|
16
12
|
export interface GenerateButtonProps {
|
|
17
13
|
readonly isDisabled?: boolean;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { View, StyleSheet, Dimensions, type ViewStyle } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
AtomicText,
|
|
6
|
-
AtomicButton,
|
|
7
|
-
} from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
|
|
4
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
8
5
|
|
|
9
6
|
export interface AIGenerationResultAction {
|
|
10
7
|
label: string;
|
|
@@ -6,12 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, StyleSheet } from "react-native";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
AtomicButton,
|
|
12
|
-
useAppDesignTokens,
|
|
13
|
-
AtomicIcon,
|
|
14
|
-
} from "@umituz/react-native-design-system";
|
|
9
|
+
import { AtomicText, AtomicButton, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
10
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
15
11
|
|
|
16
12
|
export interface ResultDisplayAction {
|
|
17
13
|
readonly id: string;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { View, TouchableOpacity, StyleSheet } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
AtomicIcon,
|
|
6
|
-
useAppDesignTokens,
|
|
7
|
-
} from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
4
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
8
5
|
|
|
9
6
|
export type NavigationButtonType = "back" | "close";
|
|
10
7
|
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
AtomicIcon,
|
|
6
|
-
useAppDesignTokens,
|
|
7
|
-
} from "@umituz/react-native-design-system";
|
|
3
|
+
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
4
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
8
5
|
|
|
9
6
|
export interface CreditBadgeProps {
|
|
10
7
|
readonly credits: number;
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, StyleSheet, ImageBackground } from "react-native";
|
|
9
9
|
import type { ImageSourcePropType } from "react-native";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
useAppDesignTokens,
|
|
13
|
-
} from "@umituz/react-native-design-system";
|
|
10
|
+
import { AtomicText } from "@umituz/react-native-design-system/atoms";
|
|
11
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
14
12
|
|
|
15
13
|
export interface FeatureHeaderProps {
|
|
16
14
|
readonly imageSource: ImageSourcePropType;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { View, StyleSheet } from "react-native";
|
|
9
|
-
import { useAppDesignTokens } from "@umituz/react-native-design-system";
|
|
9
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
10
10
|
import { PhotoUploadCard } from "../PhotoUploadCard";
|
|
11
11
|
|
|
12
12
|
export interface DualImagePickerProps {
|