feat: integrate AI-driven selection panel with context-aware text summarization and quiz generation features.

This commit is contained in:
2026-04-26 20:36:08 +02:00
parent 82d726097f
commit 39a9ca5706
25 changed files with 819 additions and 219 deletions
@@ -0,0 +1,29 @@
namespace NexusReader.UI.Shared.Services;
public sealed class ReaderInteractionService : IReaderInteractionService
{
public event Action<string>? OnNodeSelected;
public event Action<string>? OnScrollToBlockRequested;
public event Action<string>? OnHighlightBlockRequested;
public event Action<string, string, SelectionCoordinates>? OnTextSelected;
public void NotifyNodeSelected(string nodeId)
{
OnNodeSelected?.Invoke(nodeId);
}
public void RequestScrollToBlock(string blockId)
{
OnScrollToBlockRequested?.Invoke(blockId);
}
public void RequestHighlightBlock(string blockId)
{
OnHighlightBlockRequested?.Invoke(blockId);
}
public void NotifyTextSelected(string text, string blockId, SelectionCoordinates coords)
{
OnTextSelected?.Invoke(text, blockId, coords);
}
}