Skip to content

Commit 8fa1ace

Browse files
Merge pull request #2020 from breatheco-de/development
Development
2 parents c4e3ffa + 001e56f commit 8fa1ace

File tree

69 files changed

+1175
-357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1175
-357
lines changed

customtypes/page/index.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"fieldset": "Slice Zone",
6060
"config": {
6161
"choices": {
62+
"learning_platform_section": { "type": "SharedSlice" },
6263
"ratings": { "type": "SharedSlice" },
6364
"award_section": { "type": "SharedSlice" },
6465
"two_column_with_text": { "type": "SharedSlice" },

prismicio-types.d.ts

Lines changed: 234 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type * as prismicClient from "@prismicio/client";
66
type Simplify<T> = { [KeyType in keyof T]: T[KeyType] };
77

88
type PageDocumentDataSlicesSlice =
9+
| LearningPlatformSectionSlice
910
| RatingsSlice
1011
| AwardSectionSlice
1112
| TwoColumnWithTextSlice
@@ -171,6 +172,17 @@ export interface AwardSectionSliceDefaultPrimary {
171172
* - **Documentation**: https://prismic.io/docs/field#rich-text-title
172173
*/
173174
title: prismic.RichTextField;
175+
176+
/**
177+
* Mobile Carousel Variant field in *AwardSection → Default → Primary*
178+
*
179+
* - **Field Type**: Select
180+
* - **Placeholder**: *None*
181+
* - **Default Value**: default
182+
* - **API ID Path**: award_section.default.primary.mobile_carousel_variant
183+
* - **Documentation**: https://prismic.io/docs/field#select
184+
*/
185+
mobile_carousel_variant: prismic.SelectField<"default" | "stretch", "filled">;
174186
}
175187

176188
/**
@@ -201,10 +213,116 @@ export type AwardSectionSliceDefault = prismic.SharedSliceVariation<
201213
Simplify<AwardSectionSliceDefaultItem>
202214
>;
203215

216+
/**
217+
* Primary content in *AwardSection → With Text And Link → Primary*
218+
*/
219+
export interface AwardSectionSliceWithTextAndLinkPrimary {
220+
/**
221+
* Title field in *AwardSection → With Text And Link → Primary*
222+
*
223+
* - **Field Type**: Rich Text
224+
* - **Placeholder**: *None*
225+
* - **API ID Path**: award_section.withTextAndLink.primary.title
226+
* - **Documentation**: https://prismic.io/docs/field#rich-text-title
227+
*/
228+
title: prismic.RichTextField;
229+
230+
/**
231+
* Mobile Carousel Variant field in *AwardSection → With Text And Link → Primary*
232+
*
233+
* - **Field Type**: Select
234+
* - **Placeholder**: *None*
235+
* - **Default Value**: default
236+
* - **API ID Path**: award_section.withTextAndLink.primary.mobile_carousel_variant
237+
* - **Documentation**: https://prismic.io/docs/field#select
238+
*/
239+
mobile_carousel_variant: prismic.SelectField<"default" | "stretch", "filled">;
240+
}
241+
242+
/**
243+
* Primary content in *AwardSection → Items*
244+
*/
245+
export interface AwardSectionSliceWithTextAndLinkItem {
246+
/**
247+
* Image field in *AwardSection → Items*
248+
*
249+
* - **Field Type**: Image
250+
* - **Placeholder**: *None*
251+
* - **API ID Path**: award_section.items[].image
252+
* - **Documentation**: https://prismic.io/docs/field#image
253+
*/
254+
image: prismic.ImageField<never>;
255+
256+
/**
257+
* Text field in *AwardSection → Items*
258+
*
259+
* - **Field Type**: Text
260+
* - **Placeholder**: *None*
261+
* - **API ID Path**: award_section.items[].text
262+
* - **Documentation**: https://prismic.io/docs/field#key-text
263+
*/
264+
text: prismic.KeyTextField;
265+
266+
/**
267+
* Link field in *AwardSection → Items*
268+
*
269+
* - **Field Type**: Link
270+
* - **Placeholder**: *None*
271+
* - **API ID Path**: award_section.items[].link
272+
* - **Documentation**: https://prismic.io/docs/field#link-content-relationship
273+
*/
274+
link: prismic.LinkField<string, string, unknown, prismic.FieldState, never>;
275+
276+
/**
277+
* Link Label field in *AwardSection → Items*
278+
*
279+
* - **Field Type**: Text
280+
* - **Placeholder**: *None*
281+
* - **API ID Path**: award_section.items[].link_label
282+
* - **Documentation**: https://prismic.io/docs/field#key-text
283+
*/
284+
link_label: prismic.KeyTextField;
285+
286+
/**
287+
* Image max height field in *AwardSection → Items*
288+
*
289+
* - **Field Type**: Text
290+
* - **Placeholder**: *None*
291+
* - **API ID Path**: award_section.items[].image_max_height
292+
* - **Documentation**: https://prismic.io/docs/field#key-text
293+
*/
294+
image_max_height: prismic.KeyTextField;
295+
296+
/**
297+
* Image max width field in *AwardSection → Items*
298+
*
299+
* - **Field Type**: Text
300+
* - **Placeholder**: *None*
301+
* - **API ID Path**: award_section.items[].image_max_width
302+
* - **Documentation**: https://prismic.io/docs/field#key-text
303+
*/
304+
image_max_width: prismic.KeyTextField;
305+
}
306+
307+
/**
308+
* With Text And Link variation for AwardSection Slice
309+
*
310+
* - **API ID**: `withTextAndLink`
311+
* - **Description**: Default
312+
* - **Documentation**: https://prismic.io/docs/slice
313+
*/
314+
export type AwardSectionSliceWithTextAndLink = prismic.SharedSliceVariation<
315+
"withTextAndLink",
316+
Simplify<AwardSectionSliceWithTextAndLinkPrimary>,
317+
Simplify<AwardSectionSliceWithTextAndLinkItem>
318+
>;
319+
204320
/**
205321
* Slice variation for *AwardSection*
206322
*/
207-
type AwardSectionSliceVariation = AwardSectionSliceDefault;
323+
type AwardSectionSliceVariation =
324+
| AwardSectionSliceDefault
325+
| AwardSectionSliceWithTextAndLink;
208326

209327
/**
210328
* AwardSection Shared Slice
@@ -797,6 +915,113 @@ export type InfoCardsSlice = prismic.SharedSlice<
797915
InfoCardsSliceVariation
798916
>;
799917

918+
/**
919+
* Primary content in *LearningPlatformSection → Default → Primary*
920+
*/
921+
export interface LearningPlatformSectionSliceDefaultPrimary {
922+
/**
923+
* Title field in *LearningPlatformSection → Default → Primary*
924+
*
925+
* - **Field Type**: Rich Text
926+
* - **Placeholder**: *None*
927+
* - **API ID Path**: learning_platform_section.default.primary.title
928+
* - **Documentation**: https://prismic.io/docs/field#rich-text-title
929+
*/
930+
title: prismic.RichTextField;
931+
932+
/**
933+
* Description field in *LearningPlatformSection → Default → Primary*
934+
*
935+
* - **Field Type**: Rich Text
936+
* - **Placeholder**: *None*
937+
* - **API ID Path**: learning_platform_section.default.primary.description
938+
* - **Documentation**: https://prismic.io/docs/field#rich-text-title
939+
*/
940+
description: prismic.RichTextField;
941+
942+
/**
943+
* Button url field in *LearningPlatformSection → Default → Primary*
944+
*
945+
* - **Field Type**: Link
946+
* - **Placeholder**: *None*
947+
* - **API ID Path**: learning_platform_section.default.primary.button_url
948+
* - **Documentation**: https://prismic.io/docs/field#link-content-relationship
949+
*/
950+
button_url: prismic.LinkField<
951+
string,
952+
string,
953+
unknown,
954+
prismic.FieldState,
955+
never
956+
>;
957+
958+
/**
959+
* Button Label field in *LearningPlatformSection → Default → Primary*
960+
*
961+
* - **Field Type**: Text
962+
* - **Placeholder**: *None*
963+
* - **API ID Path**: learning_platform_section.default.primary.button_label
964+
* - **Documentation**: https://prismic.io/docs/field#key-text
965+
*/
966+
button_label: prismic.KeyTextField;
967+
}
968+
969+
/**
970+
* Primary content in *LearningPlatformSection → Items*
971+
*/
972+
export interface LearningPlatformSectionSliceDefaultItem {
973+
/**
974+
* Image field in *LearningPlatformSection → Items*
975+
*
976+
* - **Field Type**: Image
977+
* - **Placeholder**: *None*
978+
* - **API ID Path**: learning_platform_section.items[].image
979+
* - **Documentation**: https://prismic.io/docs/field#image
980+
*/
981+
image: prismic.ImageField<never>;
982+
983+
/**
984+
* Alt field in *LearningPlatformSection → Items*
985+
*
986+
* - **Field Type**: Text
987+
* - **Placeholder**: *None*
988+
* - **API ID Path**: learning_platform_section.items[].alt
989+
* - **Documentation**: https://prismic.io/docs/field#key-text
990+
*/
991+
alt: prismic.KeyTextField;
992+
}
993+
994+
/**
995+
* Default variation for LearningPlatformSection Slice
996+
*
997+
* - **API ID**: `default`
998+
* - **Description**: Default
999+
* - **Documentation**: https://prismic.io/docs/slice
1000+
*/
1001+
export type LearningPlatformSectionSliceDefault = prismic.SharedSliceVariation<
1002+
"default",
1003+
Simplify<LearningPlatformSectionSliceDefaultPrimary>,
1004+
Simplify<LearningPlatformSectionSliceDefaultItem>
1005+
>;
1006+
1007+
/**
1008+
* Slice variation for *LearningPlatformSection*
1009+
*/
1010+
type LearningPlatformSectionSliceVariation =
1011+
LearningPlatformSectionSliceDefault;
1012+
1013+
/**
1014+
* LearningPlatformSection Shared Slice
1015+
*
1016+
* - **API ID**: `learning_platform_section`
1017+
* - **Description**: LearningPlatformSection
1018+
* - **Documentation**: https://prismic.io/docs/slice
1019+
*/
1020+
export type LearningPlatformSectionSlice = prismic.SharedSlice<
1021+
"learning_platform_section",
1022+
LearningPlatformSectionSliceVariation
1023+
>;
1024+
8001025
/**
8011026
* Primary content in *Markdown → Default → Primary*
8021027
*/
@@ -4218,8 +4443,11 @@ declare module "@prismicio/client" {
42184443
AwardSectionSlice,
42194444
AwardSectionSliceDefaultPrimary,
42204445
AwardSectionSliceDefaultItem,
4446+
AwardSectionSliceWithTextAndLinkPrimary,
4447+
AwardSectionSliceWithTextAndLinkItem,
42214448
AwardSectionSliceVariation,
42224449
AwardSectionSliceDefault,
4450+
AwardSectionSliceWithTextAndLink,
42234451
EventCardsSlice,
42244452
EventCardsSliceDefaultPrimary,
42254453
EventCardsSliceVariation,
@@ -4233,6 +4461,11 @@ declare module "@prismicio/client" {
42334461
InfoCardsSliceDefaultPrimary,
42344462
InfoCardsSliceVariation,
42354463
InfoCardsSliceDefault,
4464+
LearningPlatformSectionSlice,
4465+
LearningPlatformSectionSliceDefaultPrimary,
4466+
LearningPlatformSectionSliceDefaultItem,
4467+
LearningPlatformSectionSliceVariation,
4468+
LearningPlatformSectionSliceDefault,
42364469
MarkdownSlice,
42374470
MarkdownSliceDefaultPrimary,
42384471
MarkdownSliceVariation,

slices/AwardSection/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import MktAwardsSection from '../../src/components/MktAwardsSection';
1+
import MktAwardsSection from '../../src/components/PrismicComponents/MktAwardsSection';
22

33
/**
44
* @typedef {import("@prismicio/client").Content.AwardSectionSlice} AwardSectionSlice

0 commit comments

Comments
 (0)