Sanity Library Reference Docs
    Preparing search index...

    Interface UseReportPresenceOptionsBeta

    interface UseReportPresenceOptions {
        dataset?: string;
        documentId: string;
        documentType: string;
        liveEdit?: boolean;
        path?: Path;
        perspective?: ReleasePerspective | ClientPerspective$1;
        projectId?: string;
        resource?: DocumentResource;
        resourceName?: string;
        selection?: PresenceSelection;
        throttleMs?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    dataset?: string
    documentId: string
    documentType: string
    liveEdit?: boolean

    Indicates whether this document uses liveEdit mode. When true, the document does not use the draft/published model and edits are applied directly to the document.

    path?: Path

    The focused field path. Omit it for document-level presence. Keyed and numeric segments are supported, so array items and Portable Text spans can be addressed.

    perspective?: ReleasePerspective | ClientPerspective$1
    projectId?: string
    resource?: DocumentResource

    Explicit resource to use. On an individual operation this overrides any default; on a SanityConfig it becomes the instance's default resource. Unlike projectId/dataset, this can also be a media library or canvas resource.

    resourceName?: string
    selection?: PresenceSelection

    The Portable Text caret, when the focused field is a Portable Text field.

    throttleMs?: number

    Overrides the throttle interval. Mainly useful in tests.