Sanity Library Reference Docs
    Preparing search index...

    Type Alias PresenceSelection

    PresenceSelection:
        | {
            anchor: PresenceSelectionPoint;
            backward?: boolean;
            focus: PresenceSelectionPoint;
        }
        | null

    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.