import { type ComponentType } from "react"; import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi"; import { type IRichTextWidget } from "@gooddata/sdk-model"; import { type OnError, type OnLoadingChanged } from "@gooddata/sdk-ui"; import { type RichTextExportData, type WidgetExportDataAttributes } from "../../export/types.js"; /** * Rich text widget props. * * @public */ export interface IDashboardRichTextProps { /** * Backend to work with. * * @remarks * Note: the backend must come either from this property or from BackendContext. If you do not specify * backend here, then the component MUST be rendered within an existing BackendContext. * * @alpha */ backend?: IAnalyticalBackend; /** * Workspace where the Insight widget exists. * * @remarks * Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify * workspace here, then the component MUST be rendered within an existing WorkspaceContext. * * @alpha */ workspace?: string; /** * Definition of insight widget to render. * * @public */ widget: IRichTextWidget; /** * Height of the rich text widget container. * * @alpha */ clientHeight?: number; /** * Width of the rich text widget container. * * @alpha */ clientWidth?: number; /** * @alpha */ onError?: OnError; /** * Callback to receive notifications about loading state of the widget. */ onLoadingChanged?: OnLoadingChanged; /** * Data for export in export mode. * * @alpha */ exportData?: WidgetExportDataAttributes; /** * Data for export in export mode. * * @alpha */ richTextExportData?: RichTextExportData; } /** * @public */ export type CustomDashboardRichTextComponent = ComponentType; //# sourceMappingURL=types.d.ts.map