[Full-stack Signals][DX] Add StringSignal type to store a shared text with collaborative capabilities
Describe your motivation
We could have StringSignal that basically can store a collaborative text. This signal can have methods for text modifications, e.g. to insert at certain positions, to replace, or modify by regexp etc.
Describe the solution you'd like
No response
Describe alternatives you've considered
For starters, maybe, a more versatile ListSignal<Character> could support some of the needed API for a convenient support of such shared text data structure.
Additional context
No response
What is needed is technically a ListSignal<Character> but there are some tricks specific for typical text editing patterns that allows implementing it in a more efficient way than by tracking each char as its own list entry. https://github.com/yjs/yjs is one popular open source implementation but we would need to have a compatible Java implementation as well.