fix: add imageContainer reference in rte
This commit is contained in:
6
types/components/imageContainer.ts
Normal file
6
types/components/imageContainer.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { ImageVaultAsset } from "./imageVaultImage"
|
||||
|
||||
export type ImageContainerProps = {
|
||||
leftImage: ImageVaultAsset
|
||||
rightImage: ImageVaultAsset
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import type { ImageContainer } from "./imageContainer"
|
||||
import type { SysAsset } from "./utils/asset"
|
||||
|
||||
export type Embeds = SysAsset
|
||||
export type Embeds = SysAsset | ImageContainer
|
||||
|
||||
14
types/requests/imageContainer.ts
Normal file
14
types/requests/imageContainer.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { InsertResponse } from "../components/imageVaultImage"
|
||||
import { EmbedEnum } from "./utils/embeds"
|
||||
import { Typename } from "./utils/typename"
|
||||
|
||||
export type ImageContainer = Typename<
|
||||
{
|
||||
image_left: InsertResponse
|
||||
image_right: InsertResponse
|
||||
system: {
|
||||
uid: string
|
||||
}
|
||||
},
|
||||
EmbedEnum.ImageContainer
|
||||
>
|
||||
6
types/requests/rte.ts
Normal file
6
types/requests/rte.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export enum RTEEmbedsEnum {
|
||||
AccountPage = "AccountPage",
|
||||
ContentPage = "ContentPage",
|
||||
LoyaltyPage = "LoyaltyPage",
|
||||
ImageContainer = "ImageContainer",
|
||||
}
|
||||
@@ -1,6 +1,10 @@
|
||||
export enum EmbedEnum {
|
||||
CurrentBlocksPage = "CurrentBlocksPage",
|
||||
SysAsset = "SysAsset",
|
||||
ImageContainer = "ImageContainer",
|
||||
LoyaltyPage = "LoyaltyPage",
|
||||
AccountPage = "AccountPage",
|
||||
ContentPage = "ContentPage",
|
||||
}
|
||||
|
||||
export type Embed = keyof typeof EmbedEnum
|
||||
|
||||
@@ -47,3 +47,12 @@ export enum RTEItemTypeEnum {
|
||||
}
|
||||
|
||||
export type RTEItemType = keyof typeof RTEItemTypeEnum
|
||||
|
||||
export enum AvailableFormatEnum {
|
||||
"script-1" = "script-1",
|
||||
"script-2" = "script-2",
|
||||
"footnote" = "footnote",
|
||||
"caption" = "caption",
|
||||
"subtitle-1" = "subtitle-1",
|
||||
"subtitle-2" = "subtitle-2",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user