feat(SW-1818): Refactored sysAsset handling to support PDF links

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-09 09:28:17 +00:00
parent bff34b034e
commit ac953ccd97
23 changed files with 86 additions and 84 deletions

View File

@@ -14,8 +14,8 @@ import {
transformPageLink,
} from "../../pageLinks"
import { systemSchema } from "../../system"
import { imageSchema } from "../image"
import { imageContainerSchema } from "../imageContainer"
import { sysAssetSchema } from "../sysAsset"
import { buttonSchema } from "../utils/buttonLinkSchema"
import { linkConnectionRefsSchema } from "../utils/linkConnection"
@@ -47,7 +47,7 @@ export const teaserCardBlockSchema = z.object({
node: z
.discriminatedUnion("__typename", [
imageContainerSchema,
imageSchema,
sysAssetSchema,
accountPageSchema,
collectionPageSchema,
contentPageSchema,