add Picture component for displaying images in articles with h/v/s layout support

This commit is contained in:
tmshv committed 2021-09-21 16:07:30 +03:00
1 parent 1bd80aa0b2
commit a55d474336
7 files changed
+75 -75

No files matched your search

+9 -7
View File
@@ -98,6 +98,14 @@ export type ImageDefinition = {
alt?: string
}
export type Pic = {
src: string
alt?: string
width: number
height: number
caption?: string
}
export type TextToken = {
token: 'text'
data: string
@@ -105,13 +113,7 @@ export type TextToken = {
export type ImageToken = {
token: 'image'
data: {
src: string
alt: string
caption: string
width: number
height: number
}
data: Pic
}
export type FileTokenData = {