render page content based on tokens; ignore rendered content field
This commit is contained in:
1 parent
32d304b26f
commit
bb393becc4
8 files changed
+188
-15
No files matched your search
@@ -103,3 +103,35 @@ export type ImageDefinition = {
|
||||
height: number
|
||||
src: string
|
||||
}
|
||||
|
||||
export type TextToken = {
|
||||
token: 'text'
|
||||
data: string
|
||||
}
|
||||
|
||||
export type ImageToken = {
|
||||
token: 'image'
|
||||
data: {
|
||||
src: string
|
||||
alt: string
|
||||
caption: string
|
||||
}
|
||||
}
|
||||
|
||||
export type FileTokenData = {
|
||||
url: string
|
||||
slug: string
|
||||
image_url: string
|
||||
file_url: string
|
||||
title: string
|
||||
file_size: number
|
||||
file_format: 'application/pdf'
|
||||
}
|
||||
|
||||
export type FileToken = {
|
||||
token: 'file'
|
||||
data: FileTokenData
|
||||
}
|
||||
|
||||
export type Token = TextToken | ImageToken | FileToken
|
||||
|
||||
Reference in new issue
Block a user