Stirling-PDF/frontend/src/utils
Reece Browne dcadada7d3 feat: Implement shared hooks for tool operations
- Introduced `useToolApiCalls` for handling API calls with file processing and cancellation support.
- Created `useToolOperation` to manage tool operations, including state management, error handling, and file processing.
- Added `useToolResources` for managing blob URLs and generating thumbnails.
- Developed `useToolState` for centralized state management of tool operations.
- Refactored `useSplitOperation` to utilize the new shared hooks, simplifying the execution of split operations.
- Updated `useSplitParameters` to remove mode state and integrate with the new parameter structure.
- Enhanced error handling with `toolErrorHandler` utilities for standardized error extraction and messaging.
- Implemented `toolOperationTracker` for creating operation tracking data for file context integration.
- Added `toolResponseProcessor` for processing API response blobs based on handler configuration.
2025-08-04 11:59:32 +01:00
..
convertUtils.test.ts V2: Convert Tool (#3828) 2025-08-01 16:08:04 +01:00
convertUtils.ts V2: Convert Tool (#3828) 2025-08-01 16:08:04 +01:00
fileHash.ts Stirling 2.0 (#3928) 2025-07-16 17:53:50 +01:00
fileResponseUtils.test.ts V2: Convert Tool (#3828) 2025-08-01 16:08:04 +01:00
fileResponseUtils.ts V2: Convert Tool (#3828) 2025-08-01 16:08:04 +01:00
fileUtils.ts V2: Convert Tool (#3828) 2025-08-01 16:08:04 +01:00
languageMapping.ts Tools/ocr/v2 (#4055) 2025-08-01 14:22:19 +01:00
storageUtils.ts Stirling 2.0 (#3645) 2025-06-05 11:12:39 +01:00
thumbnailUtils.ts V2: Convert Tool (#3828) 2025-08-01 16:08:04 +01:00
toolErrorHandler.ts feat: Implement shared hooks for tool operations 2025-08-04 11:59:32 +01:00
toolOperationTracker.ts feat: Implement shared hooks for tool operations 2025-08-04 11:59:32 +01:00
toolResponseProcessor.ts feat: Implement shared hooks for tool operations 2025-08-04 11:59:32 +01:00