@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.
18 lines (17 loc) • 702 B
TypeScript
import { WidgetMetadata, WidgetViewsRegistration } from './widget-metadata';
export interface WidgetRegistry {
widgets: {
[key: string]: WidgetMetadata;
};
}
/**
* @deprecated Used internally
*/
export declare function initRegistry(widgetRegistry: WidgetRegistry): WidgetRegistry;
/**
* Adds custom views to a chosen widget in the widget registry. Existing key entries will be replaced.
* @param widgetRegistry The widget registry object
* @param widgetKey The key of the widget in the registry
* @param views The views object that is to be added
*/
export declare function addWidgetViews(widgetRegistry: WidgetRegistry, widgetKey: string, views: WidgetViewsRegistration): void;