@umituz/react-native-image 1.2.4 → 1.3.1
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-image",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Image manipulation and viewing for React Native apps - resize, crop, rotate, flip, compress, gallery viewer",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"rotate",
|
|
21
21
|
"flip",
|
|
22
22
|
"compress",
|
|
23
|
+
"viewer",
|
|
23
24
|
"gallery"
|
|
24
25
|
],
|
|
25
26
|
"author": "Ümit UZ <umit@umituz.com>",
|
|
@@ -28,22 +29,32 @@
|
|
|
28
29
|
"type": "git",
|
|
29
30
|
"url": "https://github.com/umituz/react-native-image"
|
|
30
31
|
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"expo-image-manipulator": ">=12.0.0"
|
|
34
|
+
},
|
|
31
35
|
"peerDependencies": {
|
|
32
|
-
"@umituz/react-native-
|
|
33
|
-
"@umituz/react-native-
|
|
34
|
-
"expo-image
|
|
36
|
+
"@umituz/react-native-animation": "latest",
|
|
37
|
+
"@umituz/react-native-design-system": "^2.1.0",
|
|
38
|
+
"expo-image": ">=1.0.0",
|
|
39
|
+
"expo-media-library": ">=15.0.0",
|
|
40
|
+
"expo-sharing": ">=12.0.0",
|
|
35
41
|
"react": ">=18.2.0",
|
|
36
42
|
"react-native": ">=0.74.0",
|
|
37
|
-
"react-native-
|
|
43
|
+
"react-native-gesture-handler": ">=2.0.0",
|
|
44
|
+
"react-native-reanimated": ">=3.0.0"
|
|
38
45
|
},
|
|
39
46
|
"devDependencies": {
|
|
40
|
-
"@umituz/react-native-
|
|
41
|
-
"@umituz/react-native-
|
|
42
|
-
"expo-image
|
|
43
|
-
"
|
|
47
|
+
"@umituz/react-native-animation": "latest",
|
|
48
|
+
"@umituz/react-native-design-system": "^2.1.0",
|
|
49
|
+
"expo-image": "~2.0.0",
|
|
50
|
+
"expo-image-manipulator": "~13.0.0",
|
|
51
|
+
"expo-media-library": "~17.0.0",
|
|
52
|
+
"expo-sharing": "~13.0.0",
|
|
44
53
|
"@types/react": "~19.1.10",
|
|
45
54
|
"react": "19.1.0",
|
|
46
55
|
"react-native": "0.81.5",
|
|
56
|
+
"react-native-gesture-handler": "~2.16.1",
|
|
57
|
+
"react-native-reanimated": "~3.16.1",
|
|
47
58
|
"typescript": "~5.9.2"
|
|
48
59
|
},
|
|
49
60
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @umituz/react-native-image - Public API
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* React Native image manipulation and viewing
|
|
5
5
|
* Resize, crop, rotate, flip, compress, gallery viewer
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
|
-
* import { useImage, ImageGallery,
|
|
8
|
+
* import { useImage, ImageGallery, ImageUtils } from '@umituz/react-native-image';
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
// =============================================================================
|
|
@@ -35,11 +35,10 @@ export { IMAGE_CONSTANTS } from './domain/entities/ImageConstants';
|
|
|
35
35
|
export { ImageUtils } from './domain/utils/ImageUtils';
|
|
36
36
|
|
|
37
37
|
// =============================================================================
|
|
38
|
-
// DOMAIN LAYER - Filter Types
|
|
38
|
+
// DOMAIN LAYER - Filter Types (React Native Compatible Only)
|
|
39
39
|
// =============================================================================
|
|
40
40
|
|
|
41
41
|
export type {
|
|
42
|
-
ImageFilter,
|
|
43
42
|
ImageFilterOptions,
|
|
44
43
|
ImageColorAdjustment,
|
|
45
44
|
ImageQualityMetrics,
|
|
@@ -52,7 +51,7 @@ export {
|
|
|
52
51
|
} from './domain/entities/ImageFilterTypes';
|
|
53
52
|
|
|
54
53
|
// =============================================================================
|
|
55
|
-
// INFRASTRUCTURE LAYER - Services
|
|
54
|
+
// INFRASTRUCTURE LAYER - React Native Compatible Services
|
|
56
55
|
// =============================================================================
|
|
57
56
|
|
|
58
57
|
export { ImageTransformService } from './infrastructure/services/ImageTransformService';
|
|
@@ -64,57 +63,29 @@ export {
|
|
|
64
63
|
type ImageViewerConfig,
|
|
65
64
|
} from './infrastructure/services/ImageViewerService';
|
|
66
65
|
|
|
67
|
-
// =============================================================================
|
|
68
|
-
// INFRASTRUCTURE LAYER - Advanced Services
|
|
69
|
-
// =============================================================================
|
|
70
|
-
|
|
71
|
-
export { ImageFilterService } from './infrastructure/services/ImageFilterService';
|
|
72
66
|
export { ImageBatchService, type BatchOperation, type BatchProcessingOptions, type BatchProcessingResult } from './infrastructure/services/ImageBatchService';
|
|
73
67
|
export { ImageAIEnhancementService, type AutoEnhancementOptions, type EnhancementResult } from './infrastructure/services/ImageAIEnhancementService';
|
|
74
|
-
export { ImageAnnotationService, type ImageAnnotation, type TextOverlay, type DrawingElement, type WatermarkOptions } from './infrastructure/services/ImageAnnotationService';
|
|
75
68
|
export { ImageMetadataService, type ImageMetadataExtractionOptions } from './infrastructure/services/ImageMetadataService';
|
|
76
69
|
export { ImageQualityPresetService, type QualityPreset, type QualityPresets, IMAGE_QUALITY_PRESETS } from './infrastructure/utils/ImageQualityPresets';
|
|
77
70
|
export { ImageSpecializedEnhancementService } from './infrastructure/services/ImageSpecializedEnhancementService';
|
|
78
71
|
|
|
79
72
|
// =============================================================================
|
|
80
|
-
// PRESENTATION LAYER - Components & Hooks
|
|
73
|
+
// PRESENTATION LAYER - React Native Components & Hooks
|
|
81
74
|
// =============================================================================
|
|
82
75
|
|
|
83
76
|
export { ImageGallery, type ImageGalleryProps } from './presentation/components/ImageGallery';
|
|
84
77
|
|
|
85
|
-
// =============================================================================
|
|
86
|
-
// PRESENTATION LAYER - Core Hooks
|
|
87
|
-
// =============================================================================
|
|
88
|
-
|
|
89
78
|
export { useImage } from './presentation/hooks/useImage';
|
|
90
79
|
export { useImageTransform } from './presentation/hooks/useImageTransform';
|
|
91
80
|
export { useImageConversion } from './presentation/hooks/useImageConversion';
|
|
92
|
-
// =============================================================================
|
|
93
|
-
// PRESENTATION LAYER - Editor Components & Hooks
|
|
94
|
-
// =============================================================================
|
|
95
|
-
|
|
96
|
-
export { useImageEditor } from './presentation/hooks/useImageEditor';
|
|
97
|
-
export { useEditorTools } from './presentation/hooks/useEditorTools';
|
|
98
|
-
export { Editor } from './presentation/components/Editor';
|
|
99
|
-
export { EditorCanvas } from './presentation/components/EditorCanvas';
|
|
100
|
-
export { EditorToolbar } from './presentation/components/EditorToolbar';
|
|
101
|
-
export { EditorPanel } from './presentation/components/EditorPanel';
|
|
102
|
-
export { CropComponent } from './presentation/components/CropComponent';
|
|
103
|
-
export { FilterSlider } from './presentation/components/FilterSlider';
|
|
104
81
|
|
|
105
82
|
export {
|
|
106
83
|
useImageGallery,
|
|
107
84
|
type UseImageGalleryReturn,
|
|
108
85
|
} from './presentation/hooks/useImageGallery';
|
|
109
86
|
|
|
110
|
-
// =============================================================================
|
|
111
|
-
// PRESENTATION LAYER - Advanced Hooks
|
|
112
|
-
// =============================================================================
|
|
113
|
-
|
|
114
|
-
export { useImageFilter } from './presentation/hooks/useImageFilter';
|
|
115
87
|
export { useImageBatch } from './presentation/hooks/useImageBatch';
|
|
116
88
|
export { useImageAIEnhancement } from './presentation/hooks/useImageAIEnhancement';
|
|
117
|
-
export { useImageAnnotation } from './presentation/hooks/useImageAnnotation';
|
|
118
89
|
export { useImageMetadata } from './presentation/hooks/useImageMetadata';
|
|
119
90
|
|
|
120
91
|
|
|
@@ -114,10 +114,5 @@ const styles = StyleSheet.create({
|
|
|
114
114
|
borderRadius: 10,
|
|
115
115
|
borderWidth: 2,
|
|
116
116
|
borderColor: '#ffffff',
|
|
117
|
-
shadowColor: '#000000',
|
|
118
|
-
shadowOffset: { width: 0, height: 2 },
|
|
119
|
-
shadowOpacity: 0.2,
|
|
120
|
-
shadowRadius: 2,
|
|
121
|
-
elevation: 3,
|
|
122
117
|
},
|
|
123
118
|
});
|