fix: add imageContainer reference in rte

This commit is contained in:
Christel Westerberg
2024-07-04 10:33:49 +02:00
parent 55a71f001f
commit 6184662caa
14 changed files with 252 additions and 25 deletions
+2 -1
View File
@@ -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
View 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
View File
@@ -0,0 +1,6 @@
export enum RTEEmbedsEnum {
AccountPage = "AccountPage",
ContentPage = "ContentPage",
LoyaltyPage = "LoyaltyPage",
ImageContainer = "ImageContainer",
}
+4
View File
@@ -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