Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ _Non-normative note: this would be represented by an `<hr>` in the html._
interface Paragraph extends Parent {
type: "paragraph"
children: Phrasing[]
fragmentIdentifier?: string
}
```

Expand All @@ -245,6 +246,7 @@ interface Heading extends Parent {
type: "heading"
children: Text[]
level: "chapter" | "subheading" | "label"
fragmentIdentifier?: string
}
```

Expand Down Expand Up @@ -304,6 +306,7 @@ interface List extends Parent {
type: "list"
ordered: boolean
children: ListItem[]
fragmentIdentifier?: string
}
```

Expand Down Expand Up @@ -354,6 +357,7 @@ interface ImageSet extends Node {
type: "image-set"
id: string
external picture: ImageSetPicture
fragmentIdentifier?: string
}
```

Expand Down Expand Up @@ -512,6 +516,7 @@ interface Flourish extends Node {
description?: string
timestamp?: string
external fallbackImage?: Image
fragmentIdentifier?: string
}
```

Expand All @@ -521,9 +526,10 @@ interface Flourish extends Node {

```ts
interface BigNumber extends Node {
type: "big-number"
number: string
description: string
type: "big-number"
number: string
description: string
fragmentIdentifier?: string
}
```

Expand All @@ -536,6 +542,7 @@ interface Video extends Node {
type: "video"
id: string
external title: string
fragmentIdentifier?: string
}
```

Expand All @@ -551,6 +558,7 @@ TODO: Figure out how Clips work, how they are different?
interface YoutubeVideo extends Node {
type: "youtube-video"
url: string
fragmentIdentifier?: string
}
```

Expand Down Expand Up @@ -624,6 +632,7 @@ interface Layout extends Parent {
layoutName: "auto" | "card" | "timeline"
layoutWidth: string
children: [Heading, LayoutImage, ...LayoutSlot[]] | [Heading, ...LayoutSlot[]] | LayoutSlot[]
fragmentIdentifier?: string
}
```

Expand Down Expand Up @@ -658,6 +667,7 @@ interface LayoutImage extends Node {
caption: string
credit: string
external picture: ImageSetPicture
fragmentIdentifier?: string
}
```

Expand Down Expand Up @@ -715,6 +725,7 @@ interface Table extends Parent {
responsiveStyle: 'overflow' | 'flat' | 'scroll'
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody]
columnSettings: TableColumnSettings[]
fragmentIdentifier?: string
}
```

Expand Down Expand Up @@ -742,6 +753,8 @@ interface CustomCodeComponent extends Node {
external attributesLastModified: string
/** Configuration data to be passed to the component. */
external attributes: CustomCodeComponentAttributes
/** Unique fragmentIdentifier to identify the component, for things such as anchor links. */
fragmentIdentifier?: string
}
```

Expand Down
Loading