in src/js/rule-definitions.js [34:92]
properties: Map({
'article.title': RulePropertyDefinitionFactory({
name: 'article.title',
displayName: 'Title',
placeholder: 'Example: h1',
defaultAttribute: 'content',
supportedTypes: Set([RulePropertyTypes.ELEMENT]),
defaultType: RulePropertyTypes.ELEMENT,
required: true,
}),
'article.publish': RulePropertyDefinitionFactory({
name: 'article.publish',
displayName: 'Published Date',
placeholder: 'Example: time',
defaultAttribute: 'datetime',
supportedTypes: Set([RulePropertyTypes.DATETIME]),
defaultType: RulePropertyTypes.DATETIME,
}),
'author.name': RulePropertyDefinitionFactory({
name: 'author.name',
displayName: 'Author',
placeholder: 'Example: span.author',
defaultAttribute: 'textContent',
supportedTypes: Set([RulePropertyTypes.STRING]),
defaultType: RulePropertyTypes.STRING,
required: true,
unique: false,
}),
'image.url': RulePropertyDefinitionFactory({
name: 'image.url',
displayName: 'Hero Image',
placeholder: 'Example: div.hero-image img',
defaultAttribute: 'src',
supportedTypes: Set([RulePropertyTypes.STRING]),
defaultType: RulePropertyTypes.STRING,
}),
'article.body': RulePropertyDefinitionFactory({
name: 'article.body',
displayName: 'Article Content',
placeholder: 'Example: article',
defaultAttribute: 'content',
supportedTypes: Set([RulePropertyTypes.ELEMENT]),
defaultType: RulePropertyTypes.ELEMENT,
required: true,
}),
'article.canonical': RulePropertyDefinitionFactory({
name: 'article.canonical',
displayName: 'Article URL',
placeholder: 'Example: link[rel=canonical]',
defaultAttribute: 'href',
supportedTypes: Set([RulePropertyTypes.STRING]),
defaultType: RulePropertyTypes.STRING,
required: true,
defaultProperty: RulePropertyFactory({
selector: 'link[rel=canonical]',
attribute: 'href',
}),
}),
}),