2016-11-23 16:23:32 -02:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
/* eslint-disable */
|
|
|
|
export const INFERABLE_FIELDS = {
|
|
|
|
title: {
|
|
|
|
type: 'string',
|
|
|
|
secondaryTypes: [],
|
2017-01-19 13:44:40 -02:00
|
|
|
synonyms: ['title', 'name', 'label', 'headline', 'header'],
|
2016-11-23 16:23:32 -02:00
|
|
|
defaultPreview: value => <h1>{ value }</h1>,
|
|
|
|
fallbackToFirstField: true,
|
|
|
|
showError: true,
|
|
|
|
},
|
|
|
|
shortTitle: {
|
|
|
|
type: 'string',
|
|
|
|
secondaryTypes: [],
|
2017-01-19 13:44:40 -02:00
|
|
|
synonyms: ['short_title', 'shortTitle', 'short'],
|
2016-11-23 16:23:32 -02:00
|
|
|
defaultPreview: value => <h2>{ value }</h2>,
|
|
|
|
fallbackToFirstField: false,
|
|
|
|
showError: false,
|
|
|
|
},
|
|
|
|
author: {
|
|
|
|
type: 'string',
|
|
|
|
secondaryTypes: [],
|
2017-01-19 13:44:40 -02:00
|
|
|
synonyms: ['author', 'name', 'by', 'byline', 'owner'],
|
2016-11-23 16:23:32 -02:00
|
|
|
defaultPreview: value => <strong>{ value }</strong>,
|
|
|
|
fallbackToFirstField: false,
|
|
|
|
showError: false,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'string',
|
|
|
|
secondaryTypes: ['text', 'markdown'],
|
2017-01-19 13:44:40 -02:00
|
|
|
synonyms: ['shortDescription', 'short_description', 'shortdescription', 'description', 'intro', 'introduction', 'brief', 'content', 'biography', 'bio', 'summary'],
|
2016-11-23 16:23:32 -02:00
|
|
|
defaultPreview: value => value,
|
|
|
|
fallbackToFirstField: false,
|
|
|
|
showError: false,
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
type: 'image',
|
|
|
|
secondaryTypes: [],
|
2017-01-19 13:44:40 -02:00
|
|
|
synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar', 'photo'],
|
2016-11-23 16:23:32 -02:00
|
|
|
defaultPreview: value => value,
|
|
|
|
fallbackToFirstField: false,
|
|
|
|
showError: false,
|
|
|
|
},
|
|
|
|
};
|