-
Notifications
You must be signed in to change notification settings - Fork 0
/
drupal-jsonapi.d.tsx
59 lines (51 loc) · 1.39 KB
/
drupal-jsonapi.d.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* Types that are not provided by Graphql integration.
*/
export type LayoutParagraphBehaviors = {
layout: "layout_paragraphs_1_column" | "layout_paragraphs_2_column" | "layout_paragraphs_3_column" | string
config: {label?: string}
parent_uuid?: string
region?: string
}
export type ListParagraphBehaviors = {
list_paragraph?: {
hide_empty?: boolean
empty_message?: string
heading_behavior?: "show" | "hide" | "remove"
}
}
export type CardParagraphBehaviors = {
su_card_styles?: {
heading?: "h2" | "h3" | "h4" | "div.su-splash-font"
hide_heading?: boolean
link_style?: "action" | "button"
card_style?: "bg-image"
bg_color?: "magenta" | "grass" | "steel" | "indigo"
}
}
export type BannerParagraphBehaviors = {
hero_pattern?: {
overlay_position?: "left" | "right"
heading?: "h2" | "h3" | "h4" | "div.su-splash-font"
hide_heading?: string
}
}
export type TeaserParagraphBehaviors = {
stanford_teaser?: {
heading_behavior?: "show" | "hide" | "remove"
}
}
export type FAQParagraphBehaviors = {
faq_accordions?: {heading?: "h2" | "h3" | "h4"}
}
type ParagraphBehaviorBase = {
layout_paragraphs?: LayoutParagraphBehaviors
}
export type ParagraphBehaviors = ParagraphBehaviorBase &
(
| ListParagraphBehaviors
| CardParagraphBehaviors
| BannerParagraphBehaviors
| TeaserParagraphBehaviors
| FAQParagraphBehaviors
)