@umituz/react-native-image 1.3.3 → 1.3.5

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.3",
3
+ "version": "1.3.5",
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",
@@ -173,18 +173,4 @@ export class ImageBatchService {
173
173
 
174
174
  return this.processBatch(operations, options);
175
175
  }
176
-
177
- static async filterBatch(
178
- uris: string[],
179
- filter: ImageFilter,
180
- options: BatchProcessingOptions = {}
181
- ): Promise<BatchProcessingResult> {
182
- const operations: BatchOperation[] = uris.map(uri => ({
183
- uri,
184
- type: 'filter' as const,
185
- params: filter,
186
- }));
187
-
188
- return this.processBatch(operations, options);
189
- }
190
176
  }
@@ -5,7 +5,6 @@
5
5
  import { useCallback } from 'react';
6
6
  import { useImageOperation } from './useImageOperation';
7
7
  import { ImageBatchService, type BatchOperation, type BatchProcessingOptions } from '../../infrastructure/services/ImageBatchService';
8
- import type { ImageFilter } from '../../domain/entities/ImageFilterTypes';
9
8
 
10
9
  export const useImageBatch = () => {
11
10
  const { isProcessing, error, execute } = useImageOperation();
@@ -19,14 +18,10 @@ export const useImageBatch = () => {
19
18
  const compressBatch = useCallback((uris: string[], quality?: number, options?: BatchProcessingOptions) =>
20
19
  execute(() => ImageBatchService.compressBatch(uris, quality, options), 'Failed to compress batch'), [execute]);
21
20
 
22
- const filterBatch = useCallback((uris: string[], filter: ImageFilter, options?: BatchProcessingOptions) =>
23
- execute(() => ImageBatchService.filterBatch(uris, filter, options), 'Failed to filter batch'), [execute]);
24
-
25
21
  return {
26
22
  processBatch,
27
23
  resizeBatch,
28
24
  compressBatch,
29
- filterBatch,
30
25
  isBatchProcessing: isProcessing,
31
26
  batchError: error,
32
27
  };