Added more synonyms
This commit is contained in:
@ -5,7 +5,7 @@ export const INFERABLE_FIELDS = {
|
|||||||
title: {
|
title: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
secondaryTypes: [],
|
secondaryTypes: [],
|
||||||
synonyms: ['title', 'name', 'label', 'headline'],
|
synonyms: ['title', 'name', 'label', 'headline', 'header'],
|
||||||
defaultPreview: value => <h1>{ value }</h1>,
|
defaultPreview: value => <h1>{ value }</h1>,
|
||||||
fallbackToFirstField: true,
|
fallbackToFirstField: true,
|
||||||
showError: true,
|
showError: true,
|
||||||
@ -13,7 +13,7 @@ export const INFERABLE_FIELDS = {
|
|||||||
shortTitle: {
|
shortTitle: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
secondaryTypes: [],
|
secondaryTypes: [],
|
||||||
synonyms: ['short_title', 'shortTitle'],
|
synonyms: ['short_title', 'shortTitle', 'short'],
|
||||||
defaultPreview: value => <h2>{ value }</h2>,
|
defaultPreview: value => <h2>{ value }</h2>,
|
||||||
fallbackToFirstField: false,
|
fallbackToFirstField: false,
|
||||||
showError: false,
|
showError: false,
|
||||||
@ -21,7 +21,7 @@ export const INFERABLE_FIELDS = {
|
|||||||
author: {
|
author: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
secondaryTypes: [],
|
secondaryTypes: [],
|
||||||
synonyms: ['author', 'name', 'by'],
|
synonyms: ['author', 'name', 'by', 'byline', 'owner'],
|
||||||
defaultPreview: value => <strong>{ value }</strong>,
|
defaultPreview: value => <strong>{ value }</strong>,
|
||||||
fallbackToFirstField: false,
|
fallbackToFirstField: false,
|
||||||
showError: false,
|
showError: false,
|
||||||
@ -29,7 +29,7 @@ export const INFERABLE_FIELDS = {
|
|||||||
description: {
|
description: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
secondaryTypes: ['text', 'markdown'],
|
secondaryTypes: ['text', 'markdown'],
|
||||||
synonyms: ['shortDescription', 'short_description', 'shortdescription', 'description', 'intro', 'introduction', 'brief', 'body', 'content', 'biography', 'bio'],
|
synonyms: ['shortDescription', 'short_description', 'shortdescription', 'description', 'intro', 'introduction', 'brief', 'content', 'biography', 'bio', 'summary'],
|
||||||
defaultPreview: value => value,
|
defaultPreview: value => value,
|
||||||
fallbackToFirstField: false,
|
fallbackToFirstField: false,
|
||||||
showError: false,
|
showError: false,
|
||||||
@ -37,7 +37,7 @@ export const INFERABLE_FIELDS = {
|
|||||||
image: {
|
image: {
|
||||||
type: 'image',
|
type: 'image',
|
||||||
secondaryTypes: [],
|
secondaryTypes: [],
|
||||||
synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar'],
|
synonyms: ['image', 'thumbnail', 'thumb', 'picture', 'avatar', 'photo'],
|
||||||
defaultPreview: value => value,
|
defaultPreview: value => value,
|
||||||
fallbackToFirstField: false,
|
fallbackToFirstField: false,
|
||||||
showError: false,
|
showError: false,
|
||||||
|
Reference in New Issue
Block a user