@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.
37 lines (36 loc) • 1.25 kB
TypeScript
import { CollectionResponse } from '../../rest-sdk/dto/collection-response';
import { SdkItem } from '../../rest-sdk/dto/sdk-item';
import { ViewPropsBase } from '../common/view-props-base';
import { ContentListEntityBase } from './content-lists-base.entity';
export interface ContentListMasterProps<T extends ContentListEntityBase> extends ViewPropsBase<T> {
detailPageUrl?: string;
items: CollectionResponse<SdkItem>;
fieldCssClassMap: {
[key: string]: string;
};
fieldMap: {
[key: string]: string;
};
viewName: 'CardsList' | 'ListWithImage' | 'ListWithSummary';
pageNumber: number;
}
export interface ContentListMasterViewProps<T extends ContentListEntityBase> extends ViewPropsBase<T> {
detailPageUrl?: string;
items: {
Original: SdkItem;
[key: string]: any;
}[];
totalCount: number;
pageNumber: number;
}
export interface ContentListDetailProps<T extends ContentListEntityBase> extends ViewPropsBase<T> {
viewName: string;
detailItem: {
Id: string;
ProviderName: string;
ItemType: string;
};
}
export interface ContentListDetailViewProps<T extends ContentListEntityBase> extends ViewPropsBase<T> {
detailItem: SdkItem;
}