Refactor ReceiverPage for WebAssembly and state persistence
Switched from server-side Blazor (`InteractiveServer`) to client-side WebAssembly (`InteractiveWebAssembly`) rendering for `ReceiverPage` and `ReceiverRejectedPage`. Refactored dependency injection: - Removed: `IMediator`, `EnvelopeReceiverAuthorizationService`, `EnvelopeReceiverPageDataService`, `IPdfPageImageRenderer`. - Added: `DocumentService`, `EnvelopeReceiverService`, `PdfRenderService`, `PersistentComponentState`. Implemented state persistence using `PersistentComponentState` to improve user experience by restoring page state. Added `ReceiverPageInitialState` class and implemented `IDisposable` for cleanup. Simplified authorization by replacing claims-based checks with `AuthService.CheckEnvelopeAccessAsync`. Updated service usage to streamline data fetching and PDF rendering. Refactored `IsRejected` logic to rely solely on `EnvelopeStatus`. Cleaned up unused namespaces and modernized code patterns for better readability and maintainability. Updated `PdfRenderController` to allow anonymous access to the `RenderPages` endpoint, enabling broader use cases. Overall, these changes improve maintainability, simplify dependencies, and align the application with a more scalable client-side architecture.
This commit is contained in: