Sanity Library Reference Docs
    Preparing search index...

    Interface DuplicateActionPropsBeta

    interface DuplicateActionProps {
        draft: SanityDocument;
        id: string;
        initialValueResolved: boolean;
        liveEdit: boolean;
        liveEditSchemaType: boolean;
        mapDocument?: MapDocument;
        onComplete: () => void;
        published: SanityDocument;
        ready: boolean;
        release: string;
        revision?: string;
        transactionSyncLock: TransactionSyncLockState;
        type: string;
        version: SanityDocument;
    }

    Hierarchy (View Summary)

    Index

    Properties

    id: string
    initialValueResolved: boolean

    Whether the initial value has been resolved.

    liveEdit: boolean

    Whether live edit is enabled. This may be true for various reasons:

    • The schema type has live edit enabled.
    • A version of the document is checked out.
    liveEditSchemaType: boolean

    Whether the schema type has live edit enabled.

    mapDocument?: MapDocument
    onComplete: () => void
    • do not use, will be removed in a future major version, use local state instead, for example call setDialogOpen(false) in dialog's onCancel callback.
    published: SanityDocument
    ready: boolean
    release: string

    When editing a version, the name of the release the document belongs to.

    revision?: string
    transactionSyncLock: TransactionSyncLockState
    type: string