Skip to content

Commit

Permalink
[DEV-11477] Support layout in EmbedNode
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadxAli committed Aug 28, 2023
1 parent f0a62f5 commit 0793d4f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/content-format/src/nodes/EmbedNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ export interface EmbedNode extends Element<typeof EmbedNode.TYPE> {
uuid: string;
url: string;
oembed: OEmbed;
layout: `${EmbedNode.Layout}`;
}

export namespace EmbedNode {
export const TYPE = 'embed';

export enum Layout {
CONTAINED = 'contained',
EXPANDED = 'expanded',
FULL_WIDTH = 'full-width',
}

export import OEmbedInfo = OEmbed;

export function isEmbedNode(value: any): value is EmbedNode {
Expand Down

0 comments on commit 0793d4f

Please sign in to comment.