sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
31 lines (27 loc) • 822 B
text/typescript
import {type ReleaseId} from 'sanity'
import {type PaneNode} from '../types'
export interface BaseStructureToolPaneProps<T extends PaneNode['type']> {
paneKey: string
index: number
itemId: string
childItemId?: string
isSelected?: boolean
isActive?: boolean
pane: Extract<PaneNode, {type: T}>
/**
* TODO: COREL - Remove this after updating sanity-assist to use <PerspectiveProvider>
*
* Allows to override the global version with a specific version or release.
* @deprecated use <PerspectiveProvider> instead
* @beta
*/
forcedVersion?: {
selectedPerspectiveName: ReleaseId | 'published' | undefined
isReleaseLocked: boolean
selectedReleaseId: ReleaseId | undefined
}
/**
* @deprecated Avoid specifying a key, instead use `paneKey` if need be
*/
key?: string
}