Skip to content

Commit

Permalink
[test-studio] Update schema for new block editor
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin authored and bjoerge committed Dec 18, 2018
1 parent fa7a346 commit aa85c7b
Showing 1 changed file with 57 additions and 53 deletions.
110 changes: 57 additions & 53 deletions packages/test-studio/schemas/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ export default {
},
{type: 'author', title: 'Embedded author'},
{type: 'code', title: 'Code'},
{
type: 'color',
title: 'Color',
options: {
inline: true
}
},
{
type: 'color',
name: 'colorBlock',
Expand Down Expand Up @@ -68,7 +61,15 @@ export default {
}
]
},
{type: 'block'}
{
type: 'block',
of: [
{
type: 'color',
title: 'Color'
}
]
}
]
},
{
Expand All @@ -93,13 +94,6 @@ export default {
},
{type: 'author', title: 'Embedded author'},
{type: 'code', title: 'Code'},
{
type: 'color',
title: 'Color',
options: {
inline: true
}
},
{
type: 'color',
name: 'colorBlock',
Expand Down Expand Up @@ -129,7 +123,15 @@ export default {
}
]
},
{type: 'block'}
{
type: 'block',
of: [
{
type: 'color',
title: 'Color'
}
]
}
]
},
{
Expand All @@ -153,21 +155,6 @@ export default {
title: 'Customized with block types',
type: 'array',
of: [
{
type: 'image',
title: 'Image',
fields: [
{title: 'Caption', name: 'caption', type: 'string', options: {isHighlighted: true}},
{
title: 'Authors',
name: 'authors',
type: 'array',
options: {isHighlighted: true},
of: [{type: 'author', title: 'Author'}]
}
],
options: {inline: true}
},
{type: 'author', title: 'Author'},
{
type: 'block',
Expand All @@ -183,7 +170,23 @@ export default {
annotations: [
{name: 'Author', title: 'Author', type: 'reference', to: {type: 'author'}}
]
}
},
of: [
{
type: 'image',
title: 'Image',
fields: [
{title: 'Caption', name: 'caption', type: 'string', options: {isHighlighted: true}},
{
title: 'Authors',
name: 'authors',
type: 'array',
options: {isHighlighted: true},
of: [{type: 'author', title: 'Author'}]
}
]
}
]
}
]
},
Expand Down Expand Up @@ -235,31 +238,32 @@ export default {
name: 'blockInBlock',
type: 'array',
of: [
{type: 'block'},
{
name: 'footnote',
title: 'Footnote',
type: 'object',
options: {
inline: true
},
fields: [
type: 'block',
of: [
{
title: 'Footnote',
name: 'footnote',
type: 'array',
of: [
title: 'Footnote',
type: 'object',
fields: [
{
type: 'block',
lists: [],
styles: [],
marks: {
decorators: [
{title: 'Strong', value: 'strong'},
{title: 'Emphasis', value: 'em'}
],
annotations: []
}
title: 'Footnote',
name: 'footnote',
type: 'array',
of: [
{
type: 'block',
lists: [],
styles: [],
marks: {
decorators: [
{title: 'Strong', value: 'strong'},
{title: 'Emphasis', value: 'em'}
],
annotations: []
}
}
]
}
]
}
Expand Down

0 comments on commit aa85c7b

Please sign in to comment.