e001714aed
* Optimistic Updates structure * Optimistic update for Editorial Workflow
29 lines
467 B
JavaScript
29 lines
467 B
JavaScript
export const emptyParagraphBlock = {
|
|
nodes: [
|
|
{
|
|
kind: 'block',
|
|
type: 'paragraph',
|
|
nodes: [{
|
|
kind: 'text',
|
|
ranges: [{
|
|
text: '',
|
|
}],
|
|
}],
|
|
},
|
|
],
|
|
};
|
|
|
|
export const mediaproxyBlock = mediaproxy => ({
|
|
kind: 'block',
|
|
type: 'paragraph',
|
|
nodes: [{
|
|
kind: 'inline',
|
|
type: 'mediaproxy',
|
|
isVoid: true,
|
|
data: {
|
|
alt: mediaproxy.name,
|
|
src: mediaproxy.public_path,
|
|
},
|
|
}],
|
|
});
|