import React from 'react' import { WidgetProps } from '@ui-schema/ui-schema/Widget' import { List } from 'immutable' import { onErrorHandler } from '@ui-schema/ui-schema/ValidatorErrors' import { WidgetsBindingFactory } from '@ui-schema/ui-schema/WidgetsBinding' export interface PluginProps extends WidgetProps { // must be transformed from list to boolean `required` by a plugin requiredList?: List // current number of plugin in the stack currentPluginIndex: number // listen from a hoisted component for `errors` changing, // useful for some performance optimizes like at ds-material Accordions // is executed in `WidgetRenderer`, not passed down to widget onErrors?: onErrorHandler } export type ComponentPluginType = React.ComponentType & C> export type PluginType = ComponentPluginType