@umituz/react-native-design-system 4.25.1 → 4.25.3
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/carousel/Carousel.tsx +1 -1
- package/src/device/presentation/hooks/useDeviceInfo.ts +0 -2
- package/src/filesystem/infrastructure/services/file-manager.service.ts +2 -2
- package/src/filesystem/infrastructure/services/file-writer.service.ts +1 -1
- package/src/media/infrastructure/services/MediaPickerService.ts +1 -1
- package/src/media/infrastructure/services/MediaSaveService.ts +1 -1
- package/src/timezone/infrastructure/services/BusinessCalendarManager.ts +0 -1
- package/src/timezone/infrastructure/services/DateComparisonUtils.ts +0 -2
- package/src/timezone/infrastructure/services/DateRangeUtils.ts +0 -2
- package/src/utils/async/retryWithBackoff.ts +0 -2
- package/src/utils/hooks/useAsyncOperation.ts +0 -1
- package/src/utils/logger.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.3",
|
|
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, offline, onboarding, and loading utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -6,7 +6,7 @@ import { CarouselDots } from "./CarouselDots";
|
|
|
6
6
|
import { CarouselItem } from "./CarouselItem";
|
|
7
7
|
import { useCarouselScroll } from "./useCarouselScroll";
|
|
8
8
|
import { calculateItemWidth } from "./carouselCalculations";
|
|
9
|
-
import type { CarouselProps
|
|
9
|
+
import type { CarouselProps } from "./types";
|
|
10
10
|
|
|
11
11
|
export const Carousel = <T,>({
|
|
12
12
|
items,
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
* React hook for device and application information.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { useState, useEffect, useCallback, useRef } from 'react';
|
|
8
7
|
import { DeviceService } from '../../infrastructure/services/DeviceService';
|
|
9
8
|
import { PersistentDeviceIdService } from '../../infrastructure/services/PersistentDeviceIdService';
|
|
10
|
-
import type { DeviceInfo, ApplicationInfo, SystemInfo } from '../../domain/entities/Device';
|
|
11
9
|
import { useAsyncOperation } from '../../../utils/hooks';
|
|
12
10
|
|
|
13
11
|
export const useDeviceInfo = () => {
|
|
@@ -19,7 +19,7 @@ export async function deleteFile(uri: string): Promise<boolean> {
|
|
|
19
19
|
await file.delete();
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
|
-
} catch (
|
|
22
|
+
} catch (_fileError) {
|
|
23
23
|
// Not a file, try as directory
|
|
24
24
|
if (__DEV__) {
|
|
25
25
|
console.log('[deleteFile] Not a file, trying as directory:', uri);
|
|
@@ -33,7 +33,7 @@ export async function deleteFile(uri: string): Promise<boolean> {
|
|
|
33
33
|
await dir.delete();
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
|
-
} catch (
|
|
36
|
+
} catch (_dirError) {
|
|
37
37
|
// Not a directory either
|
|
38
38
|
if (__DEV__) {
|
|
39
39
|
console.log('[deleteFile] Not a directory:', uri);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { File } from "expo-file-system";
|
|
7
7
|
import type { FileEncoding, FileOperationResult } from "../../domain/entities/File";
|
|
8
8
|
import { getEncodingType, type ExpoEncodingType } from "./encoding.service";
|
|
9
|
-
import { ErrorHandler
|
|
9
|
+
import { ErrorHandler } from "../../../utils/errors";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Write string to file
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "../utils/mediaPickerMappers";
|
|
23
23
|
import { PermissionManager } from "../utils/PermissionManager";
|
|
24
24
|
import { FileValidator } from "../../domain/utils/FileValidator";
|
|
25
|
-
import { ErrorHandler
|
|
25
|
+
import { ErrorHandler } from "../../../utils/errors";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Media picker service for selecting images/videos
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import * as FileSystem from "expo-file-system";
|
|
7
7
|
import { MediaLibraryPermission } from "../../domain/entities/Media";
|
|
8
|
-
import { ErrorHandler
|
|
8
|
+
import { ErrorHandler } from "../../../utils/errors";
|
|
9
9
|
|
|
10
10
|
export interface SaveResult {
|
|
11
11
|
success: boolean;
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* Precise date comparison utilities and relative time formatting
|
|
5
5
|
* Handles hour/minute precision comparisons and "from now" formatting
|
|
6
6
|
*/
|
|
7
|
-
import { parseDate } from '../utils/TimezoneParsers';
|
|
8
|
-
|
|
9
7
|
export class DateComparisonUtils {
|
|
10
8
|
/**
|
|
11
9
|
* Check if two dates are same hour
|
package/src/utils/logger.ts
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
* Logs are suppressed in production builds to reduce bundle size and improve performance
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/* eslint-disable no-console */
|
|
8
|
-
|
|
9
|
-
type LogLevel = "debug" | "info" | "warn" | "error";
|
|
10
|
-
|
|
11
7
|
interface LoggerConfig {
|
|
12
8
|
enableInProduction?: boolean;
|
|
13
9
|
errorTrackingService?: (error: unknown, context?: Record<string, unknown>) => void;
|