@cooperco/cooper-component-library 0.1.102 → 0.1.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/cms/0058-update-cta.js +0 -16
- package/dist/cms/0059-update-navigation-element.js +0 -23
- package/dist/cms/0060-update-testimonial-module.js +0 -24
- package/dist/cms/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/cms/0085-add-table-highlight-to-content-module.cjs +0 -30
- package/dist/cms/0085-add-vertical-alignment-to-content-module.cjs +0 -36
- package/dist/cms/0086-add-background-image-to-carousel.cjs +0 -24
- package/dist/cms/contentful/graphql/queries/accordion.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/accordion.query.js +0 -19
- package/dist/cms/contentful/graphql/queries/carousel.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/carousel.query.js +0 -32
- package/dist/cms/contentful/graphql/queries/containerModule.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/containerModule.query.js +0 -140
- package/dist/cms/contentful/graphql/queries/contentModule.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/contentModule.query.js +0 -49
- package/dist/cms/contentful/graphql/queries/cta.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/cta.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/footer.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/footer.query.js +0 -44
- package/dist/cms/contentful/graphql/queries/fragments.d.ts +0 -11
- package/dist/cms/contentful/graphql/queries/fragments.js +0 -172
- package/dist/cms/contentful/graphql/queries/header.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/header.query.js +0 -39
- package/dist/cms/contentful/graphql/queries/image.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/image.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/index.d.ts +0 -18
- package/dist/cms/contentful/graphql/queries/index.js +0 -18
- package/dist/cms/contentful/graphql/queries/link.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/link.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/logoCollection.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/logoCollection.query.js +0 -16
- package/dist/cms/contentful/graphql/queries/navigation.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/navigation.query.js +0 -10
- package/dist/cms/contentful/graphql/queries/page.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/page.query.js +0 -23
- package/dist/cms/contentful/graphql/queries/pageMetadata.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/pageMetadata.query.js +0 -16
- package/dist/cms/contentful/graphql/queries/productModule.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/productModule.query.js +0 -59
- package/dist/cms/contentful/graphql/queries/testimonial.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/testimonial.query.js +0 -23
- package/dist/cms/contentful/graphql/queries/tileCollection.query.d.ts +0 -4
- package/dist/cms/contentful/graphql/queries/tileCollection.query.js +0 -35
- package/dist/cms/contentful/graphql/queries/video.query.d.ts +0 -2
- package/dist/cms/contentful/graphql/queries/video.query.js +0 -11
- package/dist/cms/contentful/migrations/drafts/0058-update-cta.js +0 -16
- package/dist/cms/contentful/migrations/drafts/0059-update-navigation-element.js +0 -23
- package/dist/cms/contentful/migrations/drafts/create-hello-banner.cjs +0 -62
- package/dist/cms/contentful/migrations/scripts/0060-update-testimonial-module.js +0 -24
- package/dist/cms/contentful/migrations/scripts/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/contentful/migrations/scripts/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/cms/contentful/migrations/scripts/0085-add-table-highlight-to-content-module.cjs +0 -30
- package/dist/cms/contentful/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs +0 -36
- package/dist/cms/contentful/migrations/scripts/0086-add-background-image-to-carousel.cjs +0 -24
- package/dist/cms/create-hello-banner.cjs +0 -62
- package/dist/cms/drafts/0058-update-cta.js +0 -16
- package/dist/cms/drafts/0059-update-navigation-element.js +0 -23
- package/dist/cms/drafts/create-hello-banner.cjs +0 -62
- package/dist/cms/migrations/drafts/0058-update-cta.js +0 -16
- package/dist/cms/migrations/drafts/0059-update-navigation-element.js +0 -23
- package/dist/cms/migrations/drafts/create-hello-banner.cjs +0 -62
- package/dist/cms/migrations/scripts/0060-update-testimonial-module.js +0 -24
- package/dist/cms/migrations/scripts/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/migrations/scripts/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/cms/migrations/scripts/0085-add-table-highlight-to-content-module.cjs +0 -30
- package/dist/cms/migrations/scripts/0085-add-vertical-alignment-to-content-module.cjs +0 -36
- package/dist/cms/migrations/scripts/0086-add-background-image-to-carousel.cjs +0 -24
- package/dist/cms/scripts/0060-update-testimonial-module.js +0 -24
- package/dist/cms/scripts/0076-rename-image-to-media-tile-content.cjs +0 -34
- package/dist/cms/scripts/0077-add-feature-variant-to-container-module.cjs +0 -37
- package/dist/cms/scripts/0085-add-table-highlight-to-content-module.cjs +0 -30
- package/dist/cms/scripts/0085-add-vertical-alignment-to-content-module.cjs +0 -36
- package/dist/cms/scripts/0086-add-background-image-to-carousel.cjs +0 -24
- package/dist/types/App.vue.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/accordion.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/carousel.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/containerModule.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/contentModule.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/cta.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/footer.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/fragments.d.ts +0 -11
- package/dist/types/cms/contentful/graphql/queries/header.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/image.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/index.d.ts +0 -18
- package/dist/types/cms/contentful/graphql/queries/link.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/logoCollection.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/navigation.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/page.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/pageMetadata.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/productModule.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/testimonial.query.d.ts +0 -2
- package/dist/types/cms/contentful/graphql/queries/tileCollection.query.d.ts +0 -4
- package/dist/types/cms/contentful/graphql/queries/video.query.d.ts +0 -2
- package/dist/types/components/Accordion/Accordion.d.ts +0 -19
- package/dist/types/components/Accordion/Accordion.vue.d.ts +0 -5
- package/dist/types/components/Accordion/AccordionItem.d.ts +0 -24
- package/dist/types/components/Accordion/AccordionItem.vue.d.ts +0 -9
- package/dist/types/components/Accordion/AccordionListItem.vue.d.ts +0 -3
- package/dist/types/components/Accordion/AccordionTileItem.vue.d.ts +0 -7
- package/dist/types/components/AnimationWrapper/AnimationWrapper.d.ts +0 -7
- package/dist/types/components/AnimationWrapper/AnimationWrapper.vue.d.ts +0 -10
- package/dist/types/components/CTA/CTA.d.ts +0 -25
- package/dist/types/components/CTA/CTA.vue.d.ts +0 -7
- package/dist/types/components/CarouselModule/CarouselModule.d.ts +0 -22
- package/dist/types/components/CarouselModule/CarouselModule.vue.d.ts +0 -5
- package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.d.ts +0 -10
- package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.vue.d.ts +0 -3
- package/dist/types/components/ContainerModule/ContainerModule.d.ts +0 -29
- package/dist/types/components/ContainerModule/ContainerModule.vue.d.ts +0 -14
- package/dist/types/components/ContentModule/ContentModule.d.ts +0 -31
- package/dist/types/components/ContentModule/ContentModule.vue.d.ts +0 -7
- package/dist/types/components/Footer/FooterCopyright/FooterCopyright.d.ts +0 -10
- package/dist/types/components/Footer/FooterCopyright/FooterCopyright.vue.d.ts +0 -3
- package/dist/types/components/Footer/FooterNavigation/FooterNavigation.d.ts +0 -14
- package/dist/types/components/Footer/FooterNavigation/FooterNavigation.vue.d.ts +0 -3
- package/dist/types/components/Footer/SocialMediaRef/SocialMediaRef.d.ts +0 -4
- package/dist/types/components/Footer/SocialMediaRef/SocialMediaRef.vue.d.ts +0 -3
- package/dist/types/components/Image/Image.d.ts +0 -15
- package/dist/types/components/Image/Image.vue.d.ts +0 -6
- package/dist/types/components/LogoCollectionModule/LogoCollectionModule.d.ts +0 -9
- package/dist/types/components/LogoCollectionModule/LogoCollectionModule.vue.d.ts +0 -3
- package/dist/types/components/NavigationElement/NavigationElement.d.ts +0 -20
- package/dist/types/components/NavigationElement/NavigationElement.vue.d.ts +0 -3
- package/dist/types/components/PrimaryNavigation/PrimaryNavigation.d.ts +0 -10
- package/dist/types/components/PrimaryNavigation/PrimaryNavigation.vue.d.ts +0 -9
- package/dist/types/components/SplitModule/SplitModule.d.ts +0 -16
- package/dist/types/components/SplitModule/SplitModule.vue.d.ts +0 -3
- package/dist/types/components/TestimonialModule/TestimonialModule.d.ts +0 -21
- package/dist/types/components/TestimonialModule/TestimonialModule.vue.d.ts +0 -3
- package/dist/types/components/TileCollectionModule/TileCollectionModule.d.ts +0 -18
- package/dist/types/components/TileCollectionModule/TileCollectionModule.vue.d.ts +0 -6
- package/dist/types/components/TileContent/TileContent.d.ts +0 -55
- package/dist/types/components/TileContent/TileContentIconTile.vue.d.ts +0 -5
- package/dist/types/components/TileContent/TileContentImageStackedAnimatedTile.vue.d.ts +0 -3
- package/dist/types/components/TileContent/TileContentImageTile.vue.d.ts +0 -5
- package/dist/types/components/TileContent/TileContentTextTile.vue.d.ts +0 -5
- package/dist/types/components/TileContent/TileContentVideoTile.vue.d.ts +0 -5
- package/dist/types/components/TileLabel/TileLabel.d.ts +0 -14
- package/dist/types/components/TileLabel/TileLabel.vue.d.ts +0 -6
- package/dist/types/components/Video/Video.d.ts +0 -7
- package/dist/types/components/Video/Video.vue.d.ts +0 -3
- package/dist/types/components/components.d.ts +0 -26
- package/dist/types/components/types.d.ts +0 -19
- package/dist/types/config/colorPalettes.d.ts +0 -59
- package/dist/types/config/defaultPassthrough/config.d.ts +0 -3
- package/dist/types/config/defaultPassthrough/index.d.ts +0 -67
- package/dist/types/config/defaultPassthrough/types.d.ts +0 -51
- package/dist/types/index.d.ts +0 -13
- package/dist/types/init.d.ts +0 -3
- package/dist/types/pages/index.vue.d.ts +0 -2
- package/dist/types/router.d.ts +0 -5
- package/dist/types/src/components/HelloBar/HelloBar.d.ts +0 -23
- package/dist/types/src/components/HelloBar/HelloBar.vue.d.ts +0 -3
- package/dist/types/src/components/_internal/SimpleCard.vue.d.ts +0 -16
- package/dist/types/src/components/_internal/SimpleCarousel.vue.d.ts +0 -63
- package/dist/types/src/config/defaultPassthrough/ChartModulePt.d.ts +0 -1
- package/dist/types/types.d.ts +0 -61
- package/dist/types/utils/getTarget.d.ts +0 -2
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
export const imageFragment = gql `
|
|
3
|
-
fragment imageFragment on Image {
|
|
4
|
-
__typename
|
|
5
|
-
entryName
|
|
6
|
-
altTag
|
|
7
|
-
media {
|
|
8
|
-
url
|
|
9
|
-
title
|
|
10
|
-
description
|
|
11
|
-
}
|
|
12
|
-
mobileMedia {
|
|
13
|
-
url
|
|
14
|
-
title
|
|
15
|
-
description
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
export const videoFragment = gql `
|
|
20
|
-
fragment videoFragment on Video {
|
|
21
|
-
__typename
|
|
22
|
-
entryName
|
|
23
|
-
url
|
|
24
|
-
thumbnail {
|
|
25
|
-
...imageFragment
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
export const metaDataFragment = gql `
|
|
30
|
-
${imageFragment}
|
|
31
|
-
fragment metaDataFragment on PageMetadata {
|
|
32
|
-
entryName
|
|
33
|
-
title
|
|
34
|
-
description
|
|
35
|
-
keywords
|
|
36
|
-
socialImage {
|
|
37
|
-
...imageFragment
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
41
|
-
export const accordionItemFragment = gql `
|
|
42
|
-
${imageFragment}
|
|
43
|
-
fragment accordionItemFragment on AccordionItem {
|
|
44
|
-
headline
|
|
45
|
-
bodyCopy {
|
|
46
|
-
json
|
|
47
|
-
links {
|
|
48
|
-
entries {
|
|
49
|
-
inline {
|
|
50
|
-
sys {
|
|
51
|
-
id
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
icon {
|
|
58
|
-
...imageFragment
|
|
59
|
-
}
|
|
60
|
-
color
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
export const linkFragment = gql `
|
|
64
|
-
fragment linkFragment on Link {
|
|
65
|
-
ariaDescription
|
|
66
|
-
page {
|
|
67
|
-
sys {
|
|
68
|
-
id
|
|
69
|
-
}
|
|
70
|
-
slug
|
|
71
|
-
}
|
|
72
|
-
anchor
|
|
73
|
-
externalUrl
|
|
74
|
-
target
|
|
75
|
-
ariaLabel
|
|
76
|
-
}
|
|
77
|
-
`;
|
|
78
|
-
export const ctaFragment = gql `
|
|
79
|
-
${linkFragment}
|
|
80
|
-
${imageFragment}
|
|
81
|
-
fragment ctaFragment on Cta {
|
|
82
|
-
title
|
|
83
|
-
link {
|
|
84
|
-
...linkFragment
|
|
85
|
-
}
|
|
86
|
-
type
|
|
87
|
-
logo {
|
|
88
|
-
...imageFragment
|
|
89
|
-
}
|
|
90
|
-
ariaLabel
|
|
91
|
-
ariaDescription
|
|
92
|
-
target
|
|
93
|
-
anchor
|
|
94
|
-
size
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
97
|
-
export const tileLabelFragment = gql `
|
|
98
|
-
fragment tileLabelFragment on TileLabel {
|
|
99
|
-
entryName
|
|
100
|
-
copy
|
|
101
|
-
color
|
|
102
|
-
}
|
|
103
|
-
`;
|
|
104
|
-
export const tileContentFragment = gql `
|
|
105
|
-
${imageFragment}
|
|
106
|
-
${ctaFragment}
|
|
107
|
-
${tileLabelFragment}
|
|
108
|
-
fragment tileContentFragment on TileContent {
|
|
109
|
-
subheadline
|
|
110
|
-
headline
|
|
111
|
-
bodyCopy {
|
|
112
|
-
json
|
|
113
|
-
links {
|
|
114
|
-
entries {
|
|
115
|
-
inline {
|
|
116
|
-
sys {
|
|
117
|
-
id
|
|
118
|
-
}
|
|
119
|
-
... on HighlightedText {
|
|
120
|
-
text
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
image {
|
|
127
|
-
...imageFragment
|
|
128
|
-
}
|
|
129
|
-
backgroundColor
|
|
130
|
-
ctasCollection(limit: 6) {
|
|
131
|
-
items {
|
|
132
|
-
...ctaFragment
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
tileLabel {
|
|
136
|
-
...tileLabelFragment
|
|
137
|
-
}
|
|
138
|
-
alignment
|
|
139
|
-
variant
|
|
140
|
-
}
|
|
141
|
-
`;
|
|
142
|
-
export const socialMediaFragment = gql `
|
|
143
|
-
${imageFragment}
|
|
144
|
-
${linkFragment}
|
|
145
|
-
fragment socialMediaFragment on SocialMedia {
|
|
146
|
-
link {
|
|
147
|
-
...linkFragment
|
|
148
|
-
}
|
|
149
|
-
icon {
|
|
150
|
-
...imageFragment
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
`;
|
|
154
|
-
export const navigationElementFragment = gql `
|
|
155
|
-
${linkFragment}
|
|
156
|
-
fragment navigationElementFragment on NavigationElement {
|
|
157
|
-
title
|
|
158
|
-
link {
|
|
159
|
-
...linkFragment
|
|
160
|
-
}
|
|
161
|
-
subNavigationElementsCollection(limit: 10) {
|
|
162
|
-
items {
|
|
163
|
-
... on NavigationElement {
|
|
164
|
-
title
|
|
165
|
-
link {
|
|
166
|
-
...linkFragment
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
`;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { ctaFragment, imageFragment, linkFragment } from './fragments.js';
|
|
3
|
-
export const getHeader = gql `
|
|
4
|
-
${imageFragment}
|
|
5
|
-
${ctaFragment}
|
|
6
|
-
${linkFragment}
|
|
7
|
-
query headerQuery($id: String!, $preview: Boolean = false) {
|
|
8
|
-
primaryNavigation(id: $id, preview: $preview) {
|
|
9
|
-
logo {
|
|
10
|
-
...imageFragment
|
|
11
|
-
}
|
|
12
|
-
navigationElementsCollection {
|
|
13
|
-
items {
|
|
14
|
-
title
|
|
15
|
-
dividerLine
|
|
16
|
-
link {
|
|
17
|
-
...linkFragment
|
|
18
|
-
}
|
|
19
|
-
subNavigationElementsCollection(limit: 10) {
|
|
20
|
-
items {
|
|
21
|
-
title
|
|
22
|
-
link {
|
|
23
|
-
...linkFragment
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
ctasCollection {
|
|
30
|
-
items {
|
|
31
|
-
...ctaFragment
|
|
32
|
-
logo {
|
|
33
|
-
...imageFragment
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { imageFragment } from './fragments.js';
|
|
3
|
-
export const getImage = gql `
|
|
4
|
-
${imageFragment}
|
|
5
|
-
query imageQuery($id: String!, $preview: Boolean = false) {
|
|
6
|
-
image(id: $id, preview: $preview) {
|
|
7
|
-
...imageFragment
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from './fragments.js';
|
|
2
|
-
export * from './accordion.query.js';
|
|
3
|
-
export * from './carousel.query.js';
|
|
4
|
-
export * from './containerModule.query.js';
|
|
5
|
-
export * from './contentModule.query.js';
|
|
6
|
-
export * from './cta.query.js';
|
|
7
|
-
export * from './footer.query.js';
|
|
8
|
-
export * from './header.query.js';
|
|
9
|
-
export * from './image.query.js';
|
|
10
|
-
export * from './link.query.js';
|
|
11
|
-
export * from './logoCollection.query.js';
|
|
12
|
-
export * from './navigation.query.js';
|
|
13
|
-
export * from './page.query.js';
|
|
14
|
-
export * from './pageMetadata.query.js';
|
|
15
|
-
export * from './productModule.query.js';
|
|
16
|
-
export * from './testimonial.query.js';
|
|
17
|
-
export * from './tileCollection.query.js';
|
|
18
|
-
export * from './video.query.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from './fragments.js';
|
|
2
|
-
export * from './accordion.query.js';
|
|
3
|
-
export * from './carousel.query.js';
|
|
4
|
-
export * from './containerModule.query.js';
|
|
5
|
-
export * from './contentModule.query.js';
|
|
6
|
-
export * from './cta.query.js';
|
|
7
|
-
export * from './footer.query.js';
|
|
8
|
-
export * from './header.query.js';
|
|
9
|
-
export * from './image.query.js';
|
|
10
|
-
export * from './link.query.js';
|
|
11
|
-
export * from './logoCollection.query.js';
|
|
12
|
-
export * from './navigation.query.js';
|
|
13
|
-
export * from './page.query.js';
|
|
14
|
-
export * from './pageMetadata.query.js';
|
|
15
|
-
export * from './productModule.query.js';
|
|
16
|
-
export * from './testimonial.query.js';
|
|
17
|
-
export * from './tileCollection.query.js';
|
|
18
|
-
export * from './video.query.js';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { linkFragment } from './fragments.js';
|
|
3
|
-
export const getLink = gql `
|
|
4
|
-
${linkFragment}
|
|
5
|
-
query linkQuery($id: String!, $preview: Boolean = false) {
|
|
6
|
-
link(id: $id, preview: $preview) {
|
|
7
|
-
...linkFragment
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { imageFragment } from './fragments.js';
|
|
3
|
-
export const getLogoCollection = gql `
|
|
4
|
-
${imageFragment}
|
|
5
|
-
query logoCollectionQuery($id: String!, $preview: Boolean = false) {
|
|
6
|
-
logoCollectionModule(id: $id, preview: $preview) {
|
|
7
|
-
headline
|
|
8
|
-
backgroundColor
|
|
9
|
-
logosCollection {
|
|
10
|
-
items {
|
|
11
|
-
...imageFragment
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { navigationElementFragment } from './fragments.js';
|
|
3
|
-
export const getNavigationElement = gql `
|
|
4
|
-
${navigationElementFragment}
|
|
5
|
-
query navigationElementQuery($id: String!, $preview: Boolean = false) {
|
|
6
|
-
navigationElement(id: $id, preview: $preview) {
|
|
7
|
-
...navigationElementFragment
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { metaDataFragment } from './fragments.js';
|
|
3
|
-
export const getPage = gql `
|
|
4
|
-
${metaDataFragment}
|
|
5
|
-
query PageQuery($slug: String!, $preview: Boolean = false) {
|
|
6
|
-
pageCollection(where: { slug: $slug }, limit: 1, preview: $preview) {
|
|
7
|
-
items {
|
|
8
|
-
showCart
|
|
9
|
-
pageModulesCollection(limit: 50) {
|
|
10
|
-
items {
|
|
11
|
-
__typename
|
|
12
|
-
sys {
|
|
13
|
-
id
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
metadata {
|
|
18
|
-
...metaDataFragment
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { imageFragment } from './fragments.js';
|
|
3
|
-
export const getPageMetadata = gql `
|
|
4
|
-
${imageFragment}
|
|
5
|
-
query pageMetadataQuery($id: String!, $preview: Boolean = false) {
|
|
6
|
-
pageMetadata(id: $id, preview: $preview) {
|
|
7
|
-
entryName
|
|
8
|
-
title
|
|
9
|
-
description
|
|
10
|
-
keywords
|
|
11
|
-
socialImage {
|
|
12
|
-
...imageFragment
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// ~/graphql/queries/getProductModule.ts
|
|
2
|
-
import { gql } from 'graphql-tag';
|
|
3
|
-
import { imageFragment } from './fragments.js';
|
|
4
|
-
export const getProductModule = gql `
|
|
5
|
-
${imageFragment}
|
|
6
|
-
query GetProductModule($id: String!) {
|
|
7
|
-
productModuleCollection(where: { sys: { id: $id } }, limit: 1) {
|
|
8
|
-
items {
|
|
9
|
-
__typename
|
|
10
|
-
entryName
|
|
11
|
-
headerTitle
|
|
12
|
-
subtitle
|
|
13
|
-
headerLogo {
|
|
14
|
-
...imageFragment
|
|
15
|
-
}
|
|
16
|
-
tabsCollection {
|
|
17
|
-
items {
|
|
18
|
-
sys {
|
|
19
|
-
id
|
|
20
|
-
}
|
|
21
|
-
entryName
|
|
22
|
-
title
|
|
23
|
-
productId
|
|
24
|
-
headerTitle
|
|
25
|
-
bodyCopy {
|
|
26
|
-
entryName
|
|
27
|
-
bodyCopy {
|
|
28
|
-
json
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
cta {
|
|
32
|
-
title
|
|
33
|
-
link {
|
|
34
|
-
externalUrl
|
|
35
|
-
page {
|
|
36
|
-
slug
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
footerContent {
|
|
43
|
-
... on ContainerModule {
|
|
44
|
-
sys {
|
|
45
|
-
id
|
|
46
|
-
}
|
|
47
|
-
__typename
|
|
48
|
-
}
|
|
49
|
-
... on LogoCollectionModule {
|
|
50
|
-
sys {
|
|
51
|
-
id
|
|
52
|
-
}
|
|
53
|
-
__typename
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { imageFragment, videoFragment } from './fragments.js';
|
|
3
|
-
export const getTestimonialModule = gql `
|
|
4
|
-
${imageFragment}
|
|
5
|
-
${videoFragment}
|
|
6
|
-
query TestimonialModuleQuery($id: String!, $preview: Boolean = false) {
|
|
7
|
-
testimonialModule(id: $id, preview: $preview) {
|
|
8
|
-
entryName
|
|
9
|
-
headline
|
|
10
|
-
quote
|
|
11
|
-
author
|
|
12
|
-
details
|
|
13
|
-
media {
|
|
14
|
-
... on Image {
|
|
15
|
-
...imageFragment
|
|
16
|
-
}
|
|
17
|
-
... on Video {
|
|
18
|
-
...videoFragment
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { tileContentFragment, tileLabelFragment } from './fragments.js';
|
|
3
|
-
export const getTileContent = gql `
|
|
4
|
-
${tileContentFragment}
|
|
5
|
-
query tileContentQuery($id: String!, $preview: Boolean = false) {
|
|
6
|
-
tileContent(id: $id, preview: $preview) {
|
|
7
|
-
...tileContentFragment
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
export const getTileLabel = gql `
|
|
12
|
-
${tileLabelFragment}
|
|
13
|
-
query TileLabelQuery($id: String!, $preview: Boolean = false) {
|
|
14
|
-
tileLabel(id: $id, preview: $preview) {
|
|
15
|
-
...tileLabelFragment
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
export const getTileCollection = gql `
|
|
20
|
-
${tileContentFragment}
|
|
21
|
-
query tileCollectionQuery($id: String!, $preview: Boolean = false) {
|
|
22
|
-
tileCollectionModule(id: $id, preview: $preview) {
|
|
23
|
-
headline
|
|
24
|
-
tilesCollection(limit: 6) {
|
|
25
|
-
items {
|
|
26
|
-
...tileContentFragment
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
backgroundColor
|
|
30
|
-
variant
|
|
31
|
-
tileLabelType
|
|
32
|
-
includeDecoration
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { gql } from 'graphql-tag';
|
|
2
|
-
import { videoFragment, imageFragment } from './fragments.js';
|
|
3
|
-
export const getVideo = gql `
|
|
4
|
-
${imageFragment}
|
|
5
|
-
${videoFragment}
|
|
6
|
-
query videoQuery($id: String!, $preview: Boolean = false) {
|
|
7
|
-
video(id: $id, preview: $preview) {
|
|
8
|
-
...videoFragment
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
-
up: function (migration) {
|
|
4
|
-
const cta = migration.editContentType('cta')
|
|
5
|
-
|
|
6
|
-
cta.createField('highlighted', {
|
|
7
|
-
name: 'Highlighted',
|
|
8
|
-
type: 'Boolean',
|
|
9
|
-
defaultValue: false,
|
|
10
|
-
})
|
|
11
|
-
},
|
|
12
|
-
down: function (migration) {
|
|
13
|
-
const cta = migration.editContentType('cta')
|
|
14
|
-
cta.deleteField('highlighted')
|
|
15
|
-
},
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
/** @type { import('contentful-migration').MigrationFunction } */
|
|
3
|
-
up: function (migration) {
|
|
4
|
-
const navigationElement = migration.editContentType('navigationElement')
|
|
5
|
-
|
|
6
|
-
navigationElement.createField('highlighted', {
|
|
7
|
-
name: 'Highlighted',
|
|
8
|
-
type: 'Boolean',
|
|
9
|
-
defaultValue: false,
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
navigationElement.createField('expandedMobile', {
|
|
13
|
-
name: 'Expanded Mobile',
|
|
14
|
-
type: 'Boolean',
|
|
15
|
-
defaultValue: false,
|
|
16
|
-
})
|
|
17
|
-
},
|
|
18
|
-
down: function (migration) {
|
|
19
|
-
const navigationElement = migration.editContentType('navigationElement')
|
|
20
|
-
navigationElement.deleteField('highlighted')
|
|
21
|
-
navigationElement.deleteField('expandedMobile')
|
|
22
|
-
},
|
|
23
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
const addEntryNameField = require('../helpers/addEntryNameField.cjs')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
// @ts-check
|
|
5
|
-
/** @type { import('contentful-migration').MigrationFunction } */
|
|
6
|
-
up: async function (migration) {
|
|
7
|
-
const helloBanner = migration.createContentType('helloBanner', {
|
|
8
|
-
name: 'Hello Banner',
|
|
9
|
-
displayField: 'entryName',
|
|
10
|
-
description: 'Manage the hello banner component',
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
// Add required entryName field
|
|
14
|
-
addEntryNameField(helloBanner)
|
|
15
|
-
|
|
16
|
-
// Active field
|
|
17
|
-
helloBanner
|
|
18
|
-
.createField('active')
|
|
19
|
-
.name('Active')
|
|
20
|
-
.type('Boolean')
|
|
21
|
-
.required(true)
|
|
22
|
-
.defaultValue({ 'en-US': false })
|
|
23
|
-
helloBanner.changeFieldControl('active', 'builtin', 'boolean', {
|
|
24
|
-
helpText: 'Toggle to show/hide the hello banner',
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
// Full Copy field
|
|
28
|
-
helloBanner
|
|
29
|
-
.createField('fullCopy')
|
|
30
|
-
.name('Full Copy')
|
|
31
|
-
.type('Text')
|
|
32
|
-
.required(true)
|
|
33
|
-
helloBanner.changeFieldControl('fullCopy', 'builtin', 'multipleLine', {
|
|
34
|
-
helpText: 'Main promotional text displayed on desktop and mobile expanded',
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
// Mobile Collapsed field
|
|
38
|
-
helloBanner
|
|
39
|
-
.createField('mobileCollapsed')
|
|
40
|
-
.name('Mobile Collapsed')
|
|
41
|
-
.type('Symbol')
|
|
42
|
-
.required(true)
|
|
43
|
-
helloBanner.changeFieldControl('mobileCollapsed', 'builtin', 'singleLine', {
|
|
44
|
-
helpText: 'Text displayed when the hello banner is collapsed on mobile devices',
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
// CTA reference
|
|
48
|
-
helloBanner.createField('cta', {
|
|
49
|
-
name: 'CTA',
|
|
50
|
-
type: 'Link',
|
|
51
|
-
linkType: 'Entry',
|
|
52
|
-
required: false,
|
|
53
|
-
validations: [{ linkContentType: ['cta'] }],
|
|
54
|
-
})
|
|
55
|
-
helloBanner.changeFieldControl('cta', 'builtin', 'entryLinkEditor', {
|
|
56
|
-
helpText: 'Call-to-action button or link',
|
|
57
|
-
})
|
|
58
|
-
},
|
|
59
|
-
down: async function (migration) {
|
|
60
|
-
await migration.deleteContentType('helloBanner')
|
|
61
|
-
},
|
|
62
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// @ts-check
|
|
3
|
-
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
-
up: async function (migration) {
|
|
5
|
-
const testimonialModule = migration.editContentType('testimonialModule')
|
|
6
|
-
|
|
7
|
-
testimonialModule.createField('mediaPosition', {
|
|
8
|
-
name: 'Media Position',
|
|
9
|
-
type: 'Symbol',
|
|
10
|
-
defaultValue: {
|
|
11
|
-
'en-US': 'Left',
|
|
12
|
-
},
|
|
13
|
-
validations: [
|
|
14
|
-
{
|
|
15
|
-
in: ['Left', 'Right'],
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
})
|
|
19
|
-
},
|
|
20
|
-
down: async function (migration) {
|
|
21
|
-
const testimonialModule = migration.editContentType('testimonialModule')
|
|
22
|
-
testimonialModule.deleteField('mediaPosition')
|
|
23
|
-
},
|
|
24
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// @ts-check
|
|
3
|
-
/** @type { import('contentful-migration').MigrationFunction } */
|
|
4
|
-
up: function (migration) {
|
|
5
|
-
const tileContent = migration.editContentType('tileContent')
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// Create the new media field with support for both image and video
|
|
9
|
-
tileContent.editField('image', {
|
|
10
|
-
name: 'Media',
|
|
11
|
-
type: 'Link',
|
|
12
|
-
linkType: 'Entry',
|
|
13
|
-
required: false,
|
|
14
|
-
validations: [{ linkContentType: ['image', 'video'] }],
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
// @ts-check
|
|
20
|
-
/** @type { import('contentful-migration').MigrationFunction } */
|
|
21
|
-
down: async function (migration) {
|
|
22
|
-
const tileContent = migration.editContentType('tileContent')
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// Restore the old image field
|
|
26
|
-
tileContent.editField('image', {
|
|
27
|
-
name: 'Image',
|
|
28
|
-
type: 'Link',
|
|
29
|
-
linkType: 'Entry',
|
|
30
|
-
required: false,
|
|
31
|
-
validations: [{ linkContentType: ['image'] }],
|
|
32
|
-
})
|
|
33
|
-
},
|
|
34
|
-
}
|