* feat(BOOK-755): Added alert block on Collection pages * feat(BOOK-755): Added alert block on Content pages * feat(BOOK-755): Added alert functionality for RTE Approved-by: Bianca Widstam
100 lines
2.8 KiB
TypeScript
100 lines
2.8 KiB
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
import { AccountPageLink } from "./PageLink/AccountPageLink.graphql"
|
|
import { CampaignOverviewPageLink } from "./PageLink/CampaignOverviewPageLink.graphql"
|
|
import { CampaignPageLink } from "./PageLink/CampaignPageLink.graphql"
|
|
import { CollectionPageLink } from "./PageLink/CollectionPageLink.graphql"
|
|
import { ContentPageLink } from "./PageLink/ContentPageLink.graphql"
|
|
import { DestinationCityPageLink } from "./PageLink/DestinationCityPageLink.graphql"
|
|
import { DestinationCountryPageLink } from "./PageLink/DestinationCountryPageLink.graphql"
|
|
import { DestinationOverviewPageLink } from "./PageLink/DestinationOverviewPageLink.graphql"
|
|
import { HotelPageLink } from "./PageLink/HotelPageLink.graphql"
|
|
import { LoyaltyPageLink } from "./PageLink/LoyaltyPageLink.graphql"
|
|
import { PromoCampaignPageLink } from "./PageLink/PromoCampaignPageLink.graphql"
|
|
import { StartPageLink } from "./PageLink/StartPageLink.graphql"
|
|
import { System } from "./System.graphql"
|
|
|
|
export const Alert = gql`
|
|
fragment Alert on Alert {
|
|
__typename
|
|
type
|
|
heading
|
|
text
|
|
phone_contact {
|
|
display_text
|
|
phone_number
|
|
footnote
|
|
}
|
|
has_link
|
|
link {
|
|
title
|
|
linkConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...AccountPageLink
|
|
...CampaignOverviewPageLink
|
|
...CampaignPageLink
|
|
...CollectionPageLink
|
|
...ContentPageLink
|
|
...DestinationCityPageLink
|
|
...DestinationCountryPageLink
|
|
...DestinationOverviewPageLink
|
|
...HotelPageLink
|
|
...LoyaltyPageLink
|
|
...StartPageLink
|
|
...PromoCampaignPageLink
|
|
}
|
|
}
|
|
}
|
|
}
|
|
has_sidepeek_button
|
|
sidepeek_button {
|
|
cta_text
|
|
}
|
|
sidepeek_content {
|
|
heading
|
|
content {
|
|
embedded_itemsConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...AccountPageLink
|
|
...CampaignOverviewPageLink
|
|
...CampaignPageLink
|
|
...CollectionPageLink
|
|
...ContentPageLink
|
|
...DestinationCityPageLink
|
|
...DestinationCountryPageLink
|
|
...DestinationOverviewPageLink
|
|
...HotelPageLink
|
|
...LoyaltyPageLink
|
|
...StartPageLink
|
|
...PromoCampaignPageLink
|
|
}
|
|
}
|
|
}
|
|
json
|
|
}
|
|
}
|
|
visible_on
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
|
|
${AccountPageLink}
|
|
${CampaignOverviewPageLink}
|
|
${CampaignPageLink}
|
|
${CollectionPageLink}
|
|
${ContentPageLink}
|
|
${DestinationCityPageLink}
|
|
${DestinationCountryPageLink}
|
|
${DestinationOverviewPageLink}
|
|
${HotelPageLink}
|
|
${LoyaltyPageLink}
|
|
${StartPageLink}
|
|
${PromoCampaignPageLink}
|
|
${System}
|
|
`
|