@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.
44 lines (43 loc) • 1.24 kB
TypeScript
import { DetailItem } from '../../editor/detail-item';
import { WidgetModel } from '../../editor/widget-framework/widget-model';
import { RedirectResponse } from './redirect.response';
import { PageScript } from './scripts';
export interface PartialLayoutServiceResponse {
Culture: string;
SiteId: string;
Id: string;
MetaInfo: {
Title: string;
Description: string;
HtmlInHeadTag: string;
OpenGraphTitle: string;
OpenGraphDescription: string;
OpenGraphImage: string;
OpenGraphVideo: string;
OpenGraphType: string;
OpenGraphSite: string;
CanonicalUrl: string;
};
UrlParameters: string[];
Fields: {
[key: string]: any;
};
Site: any;
}
export interface LayoutServiceResponse extends PartialLayoutServiceResponse {
ComponentContext: ComponentContext;
DetailItem?: DetailItem;
Scripts: PageScript[];
TemplateName?: string;
MetadataHash: string;
CacheControl?: string;
}
export interface LayoutResponse {
isRedirect: boolean;
redirect?: RedirectResponse;
layout?: LayoutServiceResponse;
}
export interface ComponentContext {
Components: WidgetModel[];
HasLazyComponents: boolean;
}