import type { AgPageSetupConfig } from './agPageConfig'; import type { AgWidgetConfig } from './agWidgetConfig'; import type { AgWidgetDisplayProperties } from './agWidgetDisplayProperties'; /** * @deprecated v1.1 Use the `widgets` property with `AgWidgetsConfig` to customise the widget configurations. */ export type AgWidgetConfigOverride = Partial | ((currentConfig: AgWidgetConfig) => AgWidgetConfig); /** * @deprecated v1.1 Use the `widgets` property with `AgWidgetsConfig` to customise the widget configurations. */ export type AgWidgetsConfigOverride = Partial> | ((widgets: Partial>) => Partial>); /** * @deprecated v1.1 Use the `widgets` property with `AgWidgetsConfig` to customise the widget configurations. */ export type AgWidgetTypesOverride = AgWidgetDisplayProperties[] | ((widgetTypes: AgWidgetDisplayProperties[]) => AgWidgetDisplayProperties[]); /** * @deprecated v1.1 Use the `page` property with `AgPageConfig` to customise the page setup form. */ export type AgPageSetupOverride = AgPageSetupConfig | ((config: AgPageSetupConfig) => AgPageSetupConfig); /** * @deprecated v1.1 Use the `widgets` property with `AgWidgetsConfig` to customise the widget configurations and available widgets, * and the `page` property with `AgPageConfig` to customise the page setup form. */ export interface AgStudioOverrides { /** * Controls which widget types are available */ widgetTypes?: AgWidgetTypesOverride; /** * Controls the configuration for individual widgets */ widgets?: AgWidgetsConfigOverride; /** Controls the contents of the page setup form */ pageSetup?: AgPageSetupOverride; }