@umituz/react-native-design-system 2.6.121 → 2.6.123

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-design-system",
3
- "version": "2.6.121",
3
+ "version": "2.6.123",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone and offline utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -3,7 +3,7 @@
3
3
  * Pure business logic representation of errors and exceptions
4
4
  */
5
5
 
6
- import { generateUUID } from '@umituz/react-native-uuid';
6
+ import { generateUUID } from '../../../uuid';
7
7
 
8
8
  export type ExceptionSeverity = 'fatal' | 'error' | 'warning' | 'info';
9
9
  export type ExceptionCategory = 'network' | 'validation' | 'authentication' | 'authorization' | 'business-logic' | 'system' | 'storage' | 'unknown';
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Image Exports
3
+ *
4
+ * Image manipulation, viewing, and gallery components
5
+ * Note: AtomicImage is exported from atoms, not here
6
+ */
7
+
8
+ export type {
9
+ ImageManipulateAction,
10
+ ImageSaveOptions,
11
+ ImageManipulationResult,
12
+ ImageMetadata,
13
+ ImageViewerItem,
14
+ ImageGalleryOptions,
15
+ ImageOperationResult,
16
+ SaveFormat,
17
+ ImageDimensions,
18
+ ImageCropArea,
19
+ ImageFlipOptions,
20
+ ImageTemplate,
21
+ MemeTemplateOptions,
22
+ ImageFilterOptions,
23
+ ImageColorAdjustment,
24
+ ImageQualityMetrics,
25
+ ImageColorPalette,
26
+ ImageMetadataExtended,
27
+ ImageGalleryProps,
28
+ TextEditorSheetProps,
29
+ StickerPickerSheetProps,
30
+ FilterPickerSheetProps,
31
+ ImageViewerConfig,
32
+ BatchOperation,
33
+ BatchProcessingOptions,
34
+ BatchProcessingResult,
35
+ AutoEnhancementOptions,
36
+ EnhancementResult,
37
+ ImageMetadataExtractionOptions,
38
+ QualityPreset,
39
+ QualityPresets,
40
+ UseImageGalleryReturn,
41
+ ValidationResult,
42
+ } from '../image';
43
+
44
+ export {
45
+ ImageFormat,
46
+ ImageOrientation,
47
+ IMAGE_CONSTANTS,
48
+ ImageUtils,
49
+ ImageFilterType,
50
+ ImageTransformService,
51
+ ImageConversionService,
52
+ ImageStorageService,
53
+ ImageViewerService,
54
+ ImageBatchService,
55
+ ImageEnhanceService,
56
+ ImageMetadataService,
57
+ ImageQualityPresetService,
58
+ IMAGE_QUALITY_PRESETS,
59
+ ImageTemplateService,
60
+ ImageGallery,
61
+ TextEditorSheet,
62
+ StickerPickerSheet,
63
+ FilterPickerSheet,
64
+ useImage,
65
+ useImageTransform,
66
+ useImageConversion,
67
+ useImageGallery,
68
+ useImageBatch,
69
+ useImageEnhance,
70
+ useImageMetadata,
71
+ getFileExtension,
72
+ getMimeTypeFromExtension,
73
+ getMimeTypeFromDataUrl,
74
+ validateImageMimeType,
75
+ validateImageExtension,
76
+ validateImageDataUrl,
77
+ validateImageUri,
78
+ getImageMimeType,
79
+ IMAGE_MIME_TYPES,
80
+ SUPPORTED_IMAGE_MIME_TYPES,
81
+ EXTENSION_TO_MIME_TYPE,
82
+ MIME_TYPE_TO_EXTENSION,
83
+ } from '../image';
package/src/index.ts CHANGED
@@ -82,6 +82,11 @@ export * from './exports/timezone';
82
82
  // =============================================================================
83
83
  export * from './exports/offline';
84
84
 
85
+ // =============================================================================
86
+ // IMAGE EXPORTS
87
+ // =============================================================================
88
+ export * from './exports/image';
89
+
85
90
  // =============================================================================
86
91
  // VARIANT UTILITIES
87
92
  // =============================================================================
@@ -2,7 +2,7 @@
2
2
  * Alert Service
3
3
  */
4
4
 
5
- import { generateUUID } from '@umituz/react-native-uuid';
5
+ import { generateUUID } from '../../uuid';
6
6
  import { Alert, AlertType, AlertMode, AlertOptions, AlertPosition } from './AlertTypes';
7
7
 
8
8
  export class AlertService {
@@ -10,9 +10,9 @@
10
10
 
11
11
  import React from 'react';
12
12
  import { StyleSheet, TouchableOpacity, View, type StyleProp, type ViewStyle } from 'react-native';
13
+ import * as Haptics from 'expo-haptics';
13
14
  import { AtomicText, AtomicIcon } from '../../../../index';
14
15
  import { useAppDesignTokens } from '../../../../index';
15
- import { HapticService } from '@umituz/react-native-haptics';
16
16
  import type { SwipeActionConfig } from '../../domain/entities/SwipeAction';
17
17
  import { SwipeActionUtils } from '../../domain/entities/SwipeAction';
18
18
 
@@ -72,11 +72,11 @@ export const SwipeActionButton: React.FC<SwipeActionButtonProps> = ({
72
72
  if (enableHaptics) {
73
73
  const intensity = SwipeActionUtils.getHapticsIntensity(action);
74
74
  if (intensity === 'Light') {
75
- await HapticService.impact('Light');
75
+ await Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
76
76
  } else if (intensity === 'Medium') {
77
- await HapticService.impact('Medium');
77
+ await Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);
78
78
  } else {
79
- await HapticService.impact('Heavy');
79
+ await Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
80
80
  }
81
81
  }
82
82