UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

11 lines (10 loc) 687 B
import { WidgetMetadata } from '../../editor/widget-framework/widget-metadata'; import { GetWidgetsArgs } from '../../editor/renderer-contract-interfaces'; /** * Widget filter function for Answer widget. * Filters the widget based on whether the Agentic RAG Connector module is enabled in Sitefinity. * @param widgetMetadata The metadata of the widget to filter. * @param args The arguments from the getWidgets call containing toolbox, category, search criteria. * @returns Promise<boolean> True if the widget should be included in the results, false otherwise. */ export declare function filterAnswerWidget(widgetMetadata: WidgetMetadata, args: GetWidgetsArgs): Promise<boolean>;