@umituz/react-native-ai-creations 1.2.17 → 1.3.0

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-creations",
3
- "version": "1.2.17",
3
+ "version": "1.3.0",
4
4
  "description": "AI-generated creations gallery with filtering, sharing, and management for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -35,7 +35,6 @@
35
35
  "@tanstack/react-query": ">=5.0.0",
36
36
  "@umituz/react-native-bottom-sheet": "latest",
37
37
  "@umituz/react-native-design-system": "latest",
38
- "@umituz/react-native-filter": "latest",
39
38
  "@umituz/react-native-firebase": "latest",
40
39
  "@umituz/react-native-image": "latest",
41
40
  "@umituz/react-native-sharing": "latest",
@@ -51,7 +50,6 @@
51
50
  "@types/react": "^19.0.0",
52
51
  "@umituz/react-native-bottom-sheet": "latest",
53
52
  "@umituz/react-native-design-system": "latest",
54
- "@umituz/react-native-filter": "latest",
55
53
  "@umituz/react-native-firebase": "latest",
56
54
  "@umituz/react-native-image": "latest",
57
55
  "@umituz/react-native-sharing": "latest",
@@ -70,4 +68,4 @@
70
68
  "README.md",
71
69
  "LICENSE"
72
70
  ]
73
- }
71
+ }
@@ -41,7 +41,7 @@ export type PathBuilder = (userId: string) => string[];
41
41
  */
42
42
  export type DocumentMapper = (id: string, data: CreationDocument) => Creation;
43
43
 
44
- import type { FilterCategory } from "@umituz/react-native-filter";
44
+ import type { FilterCategory } from "@umituz/react-native-bottom-sheet";
45
45
 
46
46
  export interface CreationsConfig {
47
47
  readonly collectionName: string;
@@ -7,7 +7,7 @@ import { useQuery } from "@tanstack/react-query";
7
7
  import type { ICreationsRepository } from "../../domain/repositories/ICreationsRepository";
8
8
 
9
9
  const CACHE_CONFIG = {
10
- staleTime: 0, // Always fetch fresh data to show new creations immediately
10
+ staleTime: 5 * 60 * 1000, // 5 minutes - use cache invalidation on mutations
11
11
  gcTime: 30 * 60 * 1000,
12
12
  };
13
13
 
@@ -8,7 +8,7 @@ import type { Creation } from "../../domain/entities/Creation";
8
8
 
9
9
  const ALL_FILTER = "all";
10
10
 
11
- import { FilterUtils } from "@umituz/react-native-filter";
11
+ import { FilterUtils } from "@umituz/react-native-bottom-sheet";
12
12
 
13
13
  interface UseCreationsFilterProps {
14
14
  readonly creations: Creation[] | undefined;
@@ -9,7 +9,7 @@ import { useCreations } from "../hooks/useCreations";
9
9
  import { useDeleteCreation } from "../hooks/useDeleteCreation";
10
10
  import { useCreationsFilter } from "../hooks/useCreationsFilter";
11
11
  import { useAlert } from "@umituz/react-native-alert";
12
- import { FilterBottomSheet, type FilterCategory } from "@umituz/react-native-filter";
12
+ import { FilterBottomSheet, type FilterCategory } from "@umituz/react-native-bottom-sheet";
13
13
  import { BottomSheetModalRef } from "@umituz/react-native-bottom-sheet";
14
14
  import { GalleryHeader, EmptyState, CreationsGrid } from "../components";
15
15
  import type { Creation } from "../../domain/entities/Creation";