sanity-plugin-computed-field
Version:
Sanity plugin that computes a field's value based on other fields or relationships with its document or external data. In other words, this field memoizes a value in a document using GROQ to lookup and custom javascript to compute the value from those GRO
17 lines (16 loc) • 722 B
text/typescript
export {
ComputedBooleanInput,
type ComputedBooleanInputProps,
} from './components/ComputedBooleanInput'
export {ComputedNumberInput, type ComputedNumberInputProps} from './components/ComputedNumberInput'
export {ComputedTextInput, type ComputedTextInputProps} from './components/ComputedTextInput'
export {sanityComputedField} from './plugin'
export {computedBooleanSchema} from './schema/computedBoolean'
export {computedNumberSchema} from './schema/computedNumber'
export {computedStringSchema} from './schema/computedString'
export {computedTextSchema} from './schema/computedText'
export {
type ComputedBooleanDefinition,
type ComputedNumberDefinition,
type ComputedTextDefinition,
} from './schema/types'