@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.
24 lines (23 loc) • 701 B
TypeScript
import { EditorMetadata } from './widget-editor-metadata';
export type WidgetViewsRegistration = {
[key: string]: Function | {
Title: string;
ViewFunction: Function;
};
};
export interface WidgetMetadataBase {
designerMetadata?: any;
editorMetadata?: EditorMetadata;
ssr?: boolean;
defaultValues?: any;
}
export interface WidgetMetadata extends WidgetMetadataBase {
componentType: any;
entity?: any;
/**
* @deprecated: Use 'views' property instead.
*/
templates?: WidgetViewsRegistration;
views?: WidgetViewsRegistration;
}
export declare function getMinimumMetadata(metadata: WidgetMetadata, isEdit: boolean): WidgetMetadataBase;