{"version":3,"file":"standardFieldConfigEditorRegistry.cjs","sources":["../../../src/field/standardFieldConfigEditorRegistry.ts"],"sourcesContent":["import { ComponentType } from 'react';\n\nimport { EventBus } from '../events/types';\nimport { DataFrame } from '../types/dataFrame';\nimport { VariableSuggestionsScope, VariableSuggestion } from '../types/dataLink';\nimport { InterpolateFunction } from '../types/panel';\nimport { Registry, RegistryItem } from '../utils/Registry';\n\nimport { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry';\n\nexport interface StandardEditorContext<TOptions, TState = any> {\n  data: DataFrame[]; // All results\n  replaceVariables?: InterpolateFunction;\n  eventBus?: EventBus;\n  getSuggestions?: (scope?: VariableSuggestionsScope) => VariableSuggestion[];\n  options?: TOptions;\n  instanceState?: TState;\n  isOverride?: boolean;\n  annotations?: DataFrame[];\n}\n\nexport interface StandardEditorProps<TValue = any, TSettings = any, TOptions = any, TState = any> {\n  value: TValue;\n  onChange: (value?: TValue) => void;\n  context: StandardEditorContext<TOptions, TState>;\n  id?: string;\n\n  item: RegistryItem & {\n    settings?: TSettings;\n  };\n}\n\nexport interface StandardEditorsRegistryItem<TValue = any, TSettings = any> extends RegistryItem {\n  editor: ComponentType<StandardEditorProps<TValue, TSettings>>;\n  settings?: TSettings;\n}\nexport const standardFieldConfigEditorRegistry = new FieldConfigOptionsRegistry();\n\nexport const standardEditorsRegistry = new Registry<StandardEditorsRegistryItem>();\n"],"names":["FieldConfigOptionsRegistry","Registry"],"mappings":";;;;;;;;AAoCO,MAAM,iCAAA,GAAoC,IAAIA,qDAAA;AAE9C,MAAM,uBAAA,GAA0B,IAAIC,iBAAA;;;;;"}