Files
web/packages/trpc/lib/graphql/Query/CollectionPage/CollectionPage.graphql.ts
Erik Tiekstra 0597b09c08 Feat/BOOK-257 videoplayer with card
* feat(BOOK-257): Added VideoPlayer with card component
* feat(BOOK-257): Added queries and component for VideoCard block to Content and Collection pages
* fix(BOOK-257): Only setting object-fit: cover on the video if it is not fullscreen
* feat(BOOK-257): Added queries and component for VideoCard block to Startpage
* feat(BOOK-257): Added queries and component for Video block to content/collection/start page

Approved-by: Chuma Mcphoy (We Ahead)
2025-12-12 06:34:32 +00:00

150 lines
3.8 KiB
TypeScript

import { gql } from "graphql-tag"
import {
CardsGrid_CollectionPage,
CardsGrid_CollectionPageRefs,
} from "../../Fragments/Blocks/CardsGrid.graphql"
import {
DynamicContent_CollectionPage,
DynamicContent_CollectionPageRefs,
} from "../../Fragments/Blocks/DynamicContent.graphql"
import {
Shortcuts_CollectionPage,
Shortcuts_CollectionPageRefs,
} from "../../Fragments/Blocks/Shortcuts.graphql"
import {
UspGrid_CollectionPage,
UspGrid_CollectionPageRefs,
} from "../../Fragments/Blocks/UspGrid.graphql"
import {
Video_CollectionPage,
Video_CollectionPageRefs,
} from "../../Fragments/Blocks/Video.graphql"
import {
VideoCard_CollectionPage,
VideoCard_CollectionPageRefs,
} from "../../Fragments/Blocks/VideoCard.graphql"
import {
NavigationLinks_CollectionPage,
NavigationLinksRef_CollectionPage,
} from "../../Fragments/CollectionPage/NavigationLinks.graphql"
import {
TopPrimaryButton_CollectionPage,
TopPrimaryButtonRef_CollectionPage,
} from "../../Fragments/CollectionPage/TopPrimaryButton.graphql"
import { System } from "../../Fragments/System.graphql"
import { Video, VideoRef } from "../../Fragments/Video.graphql"
export const GetCollectionPage = gql`
query GetCollectionPage($locale: String!, $uid: String!) {
collection_page(uid: $uid, locale: $locale) {
hero_image
hero_video {
...Video
}
title
header {
heading
preamble
...TopPrimaryButton_CollectionPage
...NavigationLinks_CollectionPage
}
meeting_package {
show_widget
location
}
blocks {
__typename
...CardsGrid_CollectionPage
...Shortcuts_CollectionPage
...UspGrid_CollectionPage
...DynamicContent_CollectionPage
...VideoCard_CollectionPage
...Video_CollectionPage
}
system {
...System
created_at
updated_at
}
}
trackingProps: collection_page(locale: "en", uid: $uid) {
url
}
}
${System}
${TopPrimaryButton_CollectionPage}
${NavigationLinks_CollectionPage}
${CardsGrid_CollectionPage}
${Shortcuts_CollectionPage}
${UspGrid_CollectionPage}
${DynamicContent_CollectionPage}
${VideoCard_CollectionPage}
${Video}
${Video_CollectionPage}
`
export const GetCollectionPageRefs = gql`
query GetCollectionPageRefs($locale: String!, $uid: String!) {
collection_page(locale: $locale, uid: $uid) {
hero_video {
...VideoRef
}
header {
...TopPrimaryButtonRef_CollectionPage
...NavigationLinksRef_CollectionPage
}
blocks {
__typename
...CardsGrid_CollectionPageRefs
...Shortcuts_CollectionPageRefs
...UspGrid_CollectionPageRefs
...DynamicContent_CollectionPageRefs
...VideoCard_CollectionPageRefs
...Video_CollectionPageRefs
}
system {
...System
}
}
}
${System}
${TopPrimaryButtonRef_CollectionPage}
${NavigationLinksRef_CollectionPage}
${CardsGrid_CollectionPageRefs}
${Shortcuts_CollectionPageRefs}
${UspGrid_CollectionPageRefs}
${DynamicContent_CollectionPageRefs}
${VideoRef}
${VideoCard_CollectionPageRefs}
${Video_CollectionPageRefs}
`
export const GetDaDeEnUrlsCollectionPage = gql`
query GetDaDeEnUrlsCollectionPage($uid: String!) {
de: collection_page(locale: "de", uid: $uid) {
url
}
en: collection_page(locale: "en", uid: $uid) {
url
}
da: collection_page(locale: "da", uid: $uid) {
url
}
}
`
export const GetFiNoSvUrlsCollectionPage = gql`
query GetFiNoSvUrlsCollectionPage($uid: String!) {
fi: collection_page(locale: "fi", uid: $uid) {
url
}
no: collection_page(locale: "no", uid: $uid) {
url
}
sv: collection_page(locale: "sv", uid: $uid) {
url
}
}
`