A Compositional Framework for On-the-Fly LTLf Synthesis