feat(SW-1384): add CarouselCards block to start page * feat(SW-1384): add filterable carousel cards block to start page * fix(SW-1384): remove unnecessary link prop from SectionHeader * fix(SW-1384): remove uneeded undefined * fix(SW-1384): better type safety * feat(SW-1384): Add see all link to filterable carousel cards section header * refactor(SW-1384): Replace FilterableCarouselCards with CarouselCards block * fix(SW-1384): Remove CardsEnumType type definition * fix(SW-1384):Implement code review feedback to CarouselCards * refactor(SW-1384): Convert CarouselCardFilterEnum to const enum with type Approved-by: Christian Andolf
97 lines
2.3 KiB
GraphQL
97 lines
2.3 KiB
GraphQL
#import "../System.graphql"
|
|
#import "./ContentCard.graphql"
|
|
#import "../PageLink/AccountPageLink.graphql"
|
|
#import "../PageLink/CollectionPageLink.graphql"
|
|
#import "../PageLink/ContentPageLink.graphql"
|
|
#import "../PageLink/DestinationCityPageLink.graphql"
|
|
#import "../PageLink/DestinationCountryPageLink.graphql"
|
|
#import "../PageLink/DestinationOverviewPageLink.graphql"
|
|
#import "../PageLink/HotelPageLink.graphql"
|
|
#import "../PageLink/LoyaltyPageLink.graphql"
|
|
#import "../PageLink/StartPageLink.graphql"
|
|
|
|
#import "../AccountPage/Ref.graphql"
|
|
#import "../ContentPage/Ref.graphql"
|
|
#import "../HotelPage/Ref.graphql"
|
|
#import "../LoyaltyPage/Ref.graphql"
|
|
#import "../CollectionPage/Ref.graphql"
|
|
#import "../DestinationCityPage/Ref.graphql"
|
|
#import "../DestinationCountryPage/Ref.graphql"
|
|
#import "../DestinationOverviewPage/Ref.graphql"
|
|
|
|
fragment CarouselCards_StartPage on StartPageBlocksCarouselCards {
|
|
carousel_cards {
|
|
heading
|
|
enable_filters
|
|
default_filter
|
|
card_groups {
|
|
filter_category {
|
|
filter_identifier
|
|
filter_label
|
|
}
|
|
cardConnection {
|
|
edges {
|
|
node {
|
|
...ContentCardBlock
|
|
}
|
|
}
|
|
}
|
|
}
|
|
link {
|
|
cta_text
|
|
is_contentstack_link
|
|
open_in_new_tab
|
|
external_link {
|
|
href
|
|
title
|
|
}
|
|
linkConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...AccountPageLink
|
|
...CollectionPageLink
|
|
...ContentPageLink
|
|
...DestinationCityPageLink
|
|
...DestinationCountryPageLink
|
|
...DestinationOverviewPageLink
|
|
...HotelPageLink
|
|
...LoyaltyPageLink
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment CarouselCards_StartPageRefs on StartPageBlocksCarouselCards {
|
|
carousel_cards {
|
|
card_groups {
|
|
cardConnection {
|
|
edges {
|
|
node {
|
|
...ContentCardBlockRef
|
|
}
|
|
}
|
|
}
|
|
}
|
|
link {
|
|
linkConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...AccountPageRef
|
|
...CollectionPageRef
|
|
...ContentPageRef
|
|
...DestinationCityPageRef
|
|
...DestinationCountryPageRef
|
|
...DestinationOverviewPageRef
|
|
...HotelPageRef
|
|
...LoyaltyPageRef
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|