A Portable Text caret or selected range, as exchanged with the Studio.
Structurally identical to EditorSelection from @portabletext/editor, and
declared separately so that @sanity/sdk stays free of React dependencies. A
value from the editor can be passed straight through, and vice versa.
offset is a character offset within the span that path addresses.
A Portable Text caret or selected range, as exchanged with the Studio.
Structurally identical to
EditorSelectionfrom@portabletext/editor, and declared separately so that@sanity/sdkstays free of React dependencies. A value from the editor can be passed straight through, and vice versa.offsetis a character offset within the span thatpathaddresses.