@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
20 lines (19 loc) • 867 B
TypeScript
import * as contentful from 'contentful';
import * as cms from '../../cms';
import { DeliveryApi } from '../delivery-api';
import { CommonEntryFields } from '../delivery-utils';
import { ButtonDelivery } from './button';
import { DeliveryWithReference } from './reference';
export declare class TextDelivery extends DeliveryWithReference {
protected delivery: DeliveryApi;
private readonly button;
constructor(delivery: DeliveryApi, button: ButtonDelivery, resumeErrors: boolean);
text(id: string, context: cms.Context): Promise<cms.Text>;
fromEntry(entry: contentful.Entry<TextFields>, context: cms.Context): Promise<cms.Text>;
getButtonsStyle(buttonsStyle?: string): cms.ButtonStyle | undefined;
}
export interface TextFields extends CommonEntryFields {
text?: string;
buttons?: contentful.Entry<any>[];
buttonsStyle?: string;
}