/// import type { ILoader, ISPPagesContentPanelCommand, SPPagesContentPanelCommandId, SPPagesContentPanelPivot } from '@msinternal/sp-pages-content-panel-context'; import type { IPropertyPaneData, PropertyPaneWidthMode } from '../propertyPane/IPropertyPane'; import type { PropertyPaneLifeCycleEvent } from '../propertyPaneDefinitions/PropertyPaneLifeCycleEvent'; /** * @internal */ export type IPropertyPaneCommandData = Readonly<{ consumerId: string; commandData: T; }>; /** * Command to signal a field change from the property pane * * @internal */ export interface IPropertyPaneFieldChangeCommand extends ISPPagesContentPanelCommand { readonly commandId: SPPagesContentPanelCommandId.propertyPaneFieldChange; readonly commandData: IPropertyPaneCommandData>; } /** * Command to signal a configuration event update from the property pane * * @internal */ export interface IPropertyPaneConfigurationEventCommand extends ISPPagesContentPanelCommand { readonly commandId: SPPagesContentPanelCommandId.propertyPaneConfigurationEvent; readonly commandData: IPropertyPaneCommandData; } /** * Command to re-render the property pane * * @internal */ export interface IRefreshPropertyPaneCommand extends ISPPagesContentPanelCommand { readonly commandId: SPPagesContentPanelCommandId.refreshPropertyPane; readonly commandData: Pick, 'consumerId'>; } /** * @internal */ export type IConfigurationToolsLoaderData = Readonly<{ /** * Property Pane Data to be passed to configuration Tools */ propertyPaneData?: IPropertyPaneData; /** * The configured consumer of the currently selected control */ componentId?: string; /** * Controls the width of the property pane. Options include: * - standard width (340px) * - narrow width (320px) * - responsive width (28% with 320px minimum) for wider displays */ paneWidthMode?: PropertyPaneWidthMode; /** * React element to be rendered at the top of the property pane. */ topControl?: React.ReactElement; }>; /** * Loader type for Configuration tools panel * @internal */ export interface IConfigurationToolsLoader extends ILoader { /** * @override */ readonly path: SPPagesContentPanelPivot.configurationTools; /** * @override */ readonly data: IConfigurationToolsLoaderData | undefined; } //# sourceMappingURL=contentPanelCommands.type.d.ts.map