@umituz/react-native-ai-generation-content 1.89.65 → 1.89.66
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/background/infrastructure/utils/polling-interval.util.ts +1 -1
- package/src/domains/background/presentation/hooks/use-background-generation.ts +1 -1
- package/src/domains/content-moderation/infrastructure/services/content-moderation.service.ts +1 -1
- package/src/domains/creations/presentation/components/CreationCard.utils.ts +1 -1
- package/src/domains/creations/presentation/components/CreationsFilterBar.tsx +1 -1
- package/src/domains/creations/presentation/hooks/filterHelpers.ts +1 -1
- package/src/domains/creations/presentation/hooks/useProcessingJobsPoller.ts +1 -1
- package/src/domains/creations/presentation/screens/CreationsGalleryScreen.tsx +1 -1
- package/src/domains/image-to-video/presentation/hooks/useFormState.ts +1 -1
- package/src/domains/image-to-video/presentation/hooks/useGeneration.ts +1 -1
- package/src/domains/text-to-image/presentation/hooks/useFormState.ts +1 -1
- package/src/infrastructure/utils/photo-generation/photo-preparation.util.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.66",
|
|
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",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { PollingConfig } from "../../../../domain/entities/polling.types";
|
|
7
|
-
import { calculatePollingInterval as calculateInterval } from "
|
|
7
|
+
import { calculatePollingInterval as calculateInterval } from "../../../../shared/utils/calculations.util";
|
|
8
8
|
|
|
9
9
|
export interface IntervalOptions {
|
|
10
10
|
attempt: number;
|
|
@@ -2,7 +2,7 @@ import { useCallback, useRef, useState, useMemo } from "react";
|
|
|
2
2
|
import { usePendingJobs } from "./use-pending-jobs";
|
|
3
3
|
import { executeDirectGeneration, executeQueuedJob } from "../../infrastructure/executors/backgroundJobExecutor";
|
|
4
4
|
import { DEFAULT_QUEUE_CONFIG } from "../../domain/entities/job.types";
|
|
5
|
-
import { calculateFilteredCount } from "
|
|
5
|
+
import { calculateFilteredCount } from "../../../../shared/utils/calculations.util";
|
|
6
6
|
import type {
|
|
7
7
|
UseBackgroundGenerationOptions,
|
|
8
8
|
UseBackgroundGenerationReturn,
|
package/src/domains/content-moderation/infrastructure/services/content-moderation.service.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { imageModerator } from "./moderators/image.moderator";
|
|
|
17
17
|
import { videoModerator } from "./moderators/video.moderator";
|
|
18
18
|
import { voiceModerator } from "./moderators/voice.moderator";
|
|
19
19
|
import { rulesRegistry } from "../rules/rules-registry";
|
|
20
|
-
import { calculateConfidenceScore } from "
|
|
20
|
+
import { calculateConfidenceScore } from "../../../../shared/utils/calculations.util";
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
interface ServiceConfig {
|
|
@@ -7,7 +7,7 @@ import React, { useMemo } from "react";
|
|
|
7
7
|
import { View, StyleSheet, ScrollView, TouchableOpacity } from "react-native";
|
|
8
8
|
import { AtomicText, AtomicIcon } from "@umituz/react-native-design-system/atoms";
|
|
9
9
|
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
10
|
-
import { createFilterButtons } from "
|
|
10
|
+
import { createFilterButtons } from "../../../../shared/utils/filters";
|
|
11
11
|
import type { CreationsFilterBarProps, MediaFilterLabels, StatusFilterLabels, FilterButton } from "./CreationsFilterBar.types";
|
|
12
12
|
|
|
13
13
|
export const CreationsFilterBar = React.memo<CreationsFilterBarProps>(function CreationsFilterBar({
|
|
@@ -7,7 +7,7 @@ import type { CreationFilter } from "../../domain/types";
|
|
|
7
7
|
import { isTypeInCategory } from "../../domain/types";
|
|
8
8
|
import type { CreationCategory, CreationTypeId } from "../../domain/types";
|
|
9
9
|
import type { FilterableCreation } from "./advancedFilter.types";
|
|
10
|
-
import { normalizeDateToTimestamp, compareDates } from "
|
|
10
|
+
import { normalizeDateToTimestamp, compareDates } from "../../../../shared/utils/date";
|
|
11
11
|
|
|
12
12
|
function filterByType<T extends FilterableCreation>(
|
|
13
13
|
creations: T[],
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "../../../generation/wizard/presentation/hooks/generation-result.utils";
|
|
16
16
|
import type { Creation } from "../../domain/entities/Creation";
|
|
17
17
|
import type { ICreationsRepository } from "../../domain/repositories/ICreationsRepository";
|
|
18
|
-
import { isOlderThan, calculateAgeMs } from "
|
|
18
|
+
import { isOlderThan, calculateAgeMs } from "../../../../shared/utils/calculations.util";
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
export interface UseProcessingJobsPollerConfig {
|
|
@@ -14,7 +14,7 @@ import { GalleryResultPreview } from "../components/GalleryResultPreview";
|
|
|
14
14
|
import { GalleryScreenHeader } from "../components/GalleryScreenHeader";
|
|
15
15
|
import { MEDIA_FILTER_OPTIONS, STATUS_FILTER_OPTIONS } from "../../domain/types/creation-filter";
|
|
16
16
|
import { createFilterButtons, createItemTitle } from "../utils/filter-buttons.util";
|
|
17
|
-
import { calculatePaginationSlice, calculateHasMore } from "
|
|
17
|
+
import { calculatePaginationSlice, calculateHasMore } from "../../../../shared/utils/calculations.util";
|
|
18
18
|
import type { Creation } from "../../domain/entities/Creation";
|
|
19
19
|
import type { CreationsGalleryScreenProps } from "./creations-gallery.types";
|
|
20
20
|
import { creationsGalleryStyles as styles } from "./creations-gallery.styles";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { useCallback, useMemo } from "react";
|
|
8
|
-
import { createFormStateHook } from "
|
|
8
|
+
import { createFormStateHook } from "../../../../shared/hooks/factories";
|
|
9
9
|
import type {
|
|
10
10
|
ImageToVideoFormState,
|
|
11
11
|
ImageToVideoFormActions,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
-
import { createGenerationHook } from "
|
|
8
|
+
import { createGenerationHook } from "../../../../shared/hooks/factories";
|
|
9
9
|
import type {
|
|
10
10
|
ImageToVideoFormState,
|
|
11
11
|
ImageToVideoGenerationState,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Now powered by generic form state factory
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { createFormStateHook } from "
|
|
7
|
+
import { createFormStateHook } from "../../../../shared/hooks/factories";
|
|
8
8
|
import type {
|
|
9
9
|
TextToImageFormState,
|
|
10
10
|
TextToImageFormActions,
|