From reading what you wrote, I think that now, all you can do is to give her time and space. After all, you said she was devastated when you broke up with her. That’s like pouring salt over an open wound, probably even worse than that. She was hurt and most likely to be confused about things and is probably still angry with you breaking up with her. Her actions may be just a way of protecting herself through this time. And I also think that the trust between you two has somewhat shattered. You did say to her that you had feelings for another girl. If she takes you back, how can she trust and be sure that history won’t repeat itself even if you said it won’t? If I were her, I’d be wary about that. But I am not her. But I think that her actions are just a way of protecting herself.
She needs time to figure out things, figure out if she wants to move on or take you back. That’s what I think from reading your story. I wish you good luck.