File tree Expand file tree Collapse file tree
packages/content-format/src/nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface StoryEmbedNode extends Element<typeof StoryEmbedNode.TYPE> {
77 } ;
88 appearance : `${StoryEmbedNode . Appearance } `;
99 position : `${StoryEmbedNode . Position } `;
10+ header_footer : `${StoryEmbedNode . HeaderFooter } `;
1011}
1112
1213export namespace StoryEmbedNode {
@@ -23,6 +24,12 @@ export namespace StoryEmbedNode {
2324 RIGHT = 'right' ,
2425 }
2526
27+ export enum HeaderFooter {
28+ NONE = 'none' ,
29+ STANDARD = 'standard' ,
30+ FULL = 'full' ,
31+ }
32+
2633 export function isStoryEmbedNode ( value : any ) : value is StoryEmbedNode {
2734 return Element . isElement ( value , TYPE ) ;
2835 }
@@ -33,7 +40,8 @@ export namespace StoryEmbedNode {
3340 isObject ( node . story ) &&
3441 isUuid ( node . story . uuid ) &&
3542 isEnum ( node . appearance , Appearance ) &&
36- isEnum ( node . position , Position ) ;
43+ isEnum ( node . position , Position ) &&
44+ isEnum ( node . header_footer , HeaderFooter ) ;
3745
3846 return isValid ? node : null ;
3947 }
You can’t perform that action at this time.
0 commit comments