@confed/sanity-types 0.1.3-2604201827 → 0.1.3-2604282002
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/sanity.types.ts +196 -0
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -54,6 +54,17 @@ export type RelatedLinksSectionOptions = {
|
|
|
54
54
|
spacing?: 'default' | 'minimum' | 'none'
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export type HeroVideoBackground = {
|
|
58
|
+
_type: 'heroVideoBackground'
|
|
59
|
+
desktopUrl: string
|
|
60
|
+
mobileUrl?: string
|
|
61
|
+
posterImage: AccessibleImage
|
|
62
|
+
loop?: boolean
|
|
63
|
+
muted?: boolean
|
|
64
|
+
autoplay?: boolean
|
|
65
|
+
playsInline?: boolean
|
|
66
|
+
}
|
|
67
|
+
|
|
57
68
|
export type WebpageReference = {
|
|
58
69
|
_ref: string
|
|
59
70
|
_type: 'reference'
|
|
@@ -169,6 +180,25 @@ export type CanadianAddress = {
|
|
|
169
180
|
mapLinkText?: string
|
|
170
181
|
}
|
|
171
182
|
|
|
183
|
+
export type HeroSection = {
|
|
184
|
+
_type: 'heroSection'
|
|
185
|
+
heading: string
|
|
186
|
+
eyebrow?: string
|
|
187
|
+
subheading?: string
|
|
188
|
+
buttons?: Array<
|
|
189
|
+
{
|
|
190
|
+
_key: string
|
|
191
|
+
} & PtButton
|
|
192
|
+
>
|
|
193
|
+
backgroundType?: 'none' | 'image' | 'video'
|
|
194
|
+
backgroundImage?: AccessibleImage
|
|
195
|
+
backgroundVideo?: HeroVideoBackground
|
|
196
|
+
overlayOpacity?: 'none' | 'light' | 'medium' | 'dark'
|
|
197
|
+
contentAlignment?: 'left' | 'center'
|
|
198
|
+
textColor?: 'light' | 'dark'
|
|
199
|
+
minHeight?: 'viewport' | 'large' | 'medium'
|
|
200
|
+
}
|
|
201
|
+
|
|
172
202
|
export type ScholarshipReference = {
|
|
173
203
|
_ref: string
|
|
174
204
|
_type: 'reference'
|
|
@@ -477,6 +507,80 @@ export type AccessibleImage = {
|
|
|
477
507
|
legend?: PtSimple
|
|
478
508
|
}
|
|
479
509
|
|
|
510
|
+
export type AccordionBlock = {
|
|
511
|
+
_type: 'accordionBlock'
|
|
512
|
+
items?: Array<{
|
|
513
|
+
title: string
|
|
514
|
+
body?: Array<
|
|
515
|
+
| {
|
|
516
|
+
children?: Array<{
|
|
517
|
+
marks?: Array<string>
|
|
518
|
+
text?: string
|
|
519
|
+
_type: 'span'
|
|
520
|
+
_key: string
|
|
521
|
+
}>
|
|
522
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
523
|
+
listItem?: 'bullet' | 'number' | 'unstyledList'
|
|
524
|
+
markDefs?: Array<
|
|
525
|
+
| ({
|
|
526
|
+
_key: string
|
|
527
|
+
} & PtLink)
|
|
528
|
+
| {
|
|
529
|
+
id: string
|
|
530
|
+
_type: 'anchor'
|
|
531
|
+
_key: string
|
|
532
|
+
}
|
|
533
|
+
>
|
|
534
|
+
level?: number
|
|
535
|
+
_type: 'block'
|
|
536
|
+
_key: string
|
|
537
|
+
}
|
|
538
|
+
| {
|
|
539
|
+
asset?: SanityImageAssetReference
|
|
540
|
+
media?: unknown
|
|
541
|
+
hotspot?: SanityImageHotspot
|
|
542
|
+
crop?: SanityImageCrop
|
|
543
|
+
altText?: string
|
|
544
|
+
caption?: string
|
|
545
|
+
legend?: PtSimple
|
|
546
|
+
layout?: 'inline' | 'float-left' | 'float-right' | 'full'
|
|
547
|
+
size?: 'sm' | 'md' | 'lg' | 'original'
|
|
548
|
+
aspectRatio?: 'auto' | '1/1' | '16/9' | '3/4'
|
|
549
|
+
_type: 'figure'
|
|
550
|
+
_key: string
|
|
551
|
+
}
|
|
552
|
+
| ({
|
|
553
|
+
_key: string
|
|
554
|
+
} & PtButton)
|
|
555
|
+
| {
|
|
556
|
+
url: string
|
|
557
|
+
title?: string
|
|
558
|
+
_type: 'ptYoutubeVideo'
|
|
559
|
+
_key: string
|
|
560
|
+
}
|
|
561
|
+
| {
|
|
562
|
+
body: PtSimple
|
|
563
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
564
|
+
_type: 'note'
|
|
565
|
+
_key: string
|
|
566
|
+
}
|
|
567
|
+
| ({
|
|
568
|
+
_key: string
|
|
569
|
+
} & Table)
|
|
570
|
+
| {
|
|
571
|
+
title?: string
|
|
572
|
+
embedCode: Code
|
|
573
|
+
height?: number
|
|
574
|
+
responsive?: boolean
|
|
575
|
+
_type: 'embed'
|
|
576
|
+
_key: string
|
|
577
|
+
}
|
|
578
|
+
>
|
|
579
|
+
_type: 'accordionItem'
|
|
580
|
+
_key: string
|
|
581
|
+
}>
|
|
582
|
+
}
|
|
583
|
+
|
|
480
584
|
export type PtSimple = Array<{
|
|
481
585
|
children?: Array<{
|
|
482
586
|
marks?: Array<string>
|
|
@@ -560,6 +664,80 @@ export type PtBasic = Array<
|
|
|
560
664
|
_type: 'embed'
|
|
561
665
|
_key: string
|
|
562
666
|
}
|
|
667
|
+
| {
|
|
668
|
+
items?: Array<{
|
|
669
|
+
title: string
|
|
670
|
+
body?: Array<
|
|
671
|
+
| {
|
|
672
|
+
children?: Array<{
|
|
673
|
+
marks?: Array<string>
|
|
674
|
+
text?: string
|
|
675
|
+
_type: 'span'
|
|
676
|
+
_key: string
|
|
677
|
+
}>
|
|
678
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
679
|
+
listItem?: 'bullet' | 'number' | 'unstyledList'
|
|
680
|
+
markDefs?: Array<
|
|
681
|
+
| ({
|
|
682
|
+
_key: string
|
|
683
|
+
} & PtLink)
|
|
684
|
+
| {
|
|
685
|
+
id: string
|
|
686
|
+
_type: 'anchor'
|
|
687
|
+
_key: string
|
|
688
|
+
}
|
|
689
|
+
>
|
|
690
|
+
level?: number
|
|
691
|
+
_type: 'block'
|
|
692
|
+
_key: string
|
|
693
|
+
}
|
|
694
|
+
| {
|
|
695
|
+
asset?: SanityImageAssetReference
|
|
696
|
+
media?: unknown
|
|
697
|
+
hotspot?: SanityImageHotspot
|
|
698
|
+
crop?: SanityImageCrop
|
|
699
|
+
altText?: string
|
|
700
|
+
caption?: string
|
|
701
|
+
legend?: PtSimple
|
|
702
|
+
layout?: 'inline' | 'float-left' | 'float-right' | 'full'
|
|
703
|
+
size?: 'sm' | 'md' | 'lg' | 'original'
|
|
704
|
+
aspectRatio?: 'auto' | '1/1' | '16/9' | '3/4'
|
|
705
|
+
_type: 'figure'
|
|
706
|
+
_key: string
|
|
707
|
+
}
|
|
708
|
+
| ({
|
|
709
|
+
_key: string
|
|
710
|
+
} & PtButton)
|
|
711
|
+
| {
|
|
712
|
+
url: string
|
|
713
|
+
title?: string
|
|
714
|
+
_type: 'ptYoutubeVideo'
|
|
715
|
+
_key: string
|
|
716
|
+
}
|
|
717
|
+
| {
|
|
718
|
+
body: PtSimple
|
|
719
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
720
|
+
_type: 'note'
|
|
721
|
+
_key: string
|
|
722
|
+
}
|
|
723
|
+
| ({
|
|
724
|
+
_key: string
|
|
725
|
+
} & Table)
|
|
726
|
+
| {
|
|
727
|
+
title?: string
|
|
728
|
+
embedCode: Code
|
|
729
|
+
height?: number
|
|
730
|
+
responsive?: boolean
|
|
731
|
+
_type: 'embed'
|
|
732
|
+
_key: string
|
|
733
|
+
}
|
|
734
|
+
>
|
|
735
|
+
_type: 'accordionItem'
|
|
736
|
+
_key: string
|
|
737
|
+
}>
|
|
738
|
+
_type: 'accordionBlock'
|
|
739
|
+
_key: string
|
|
740
|
+
}
|
|
563
741
|
>
|
|
564
742
|
|
|
565
743
|
export type PtLink = {
|
|
@@ -826,6 +1004,9 @@ export type Event = {
|
|
|
826
1004
|
mainImage?: AccessibleImage
|
|
827
1005
|
description?: PtBasic
|
|
828
1006
|
pageBuilder?: Array<
|
|
1007
|
+
| ({
|
|
1008
|
+
_key: string
|
|
1009
|
+
} & HeroSection)
|
|
829
1010
|
| ({
|
|
830
1011
|
_key: string
|
|
831
1012
|
} & MediaTextSection)
|
|
@@ -935,6 +1116,9 @@ export type NewsArticle = {
|
|
|
935
1116
|
mainImage?: AccessibleImage
|
|
936
1117
|
body?: PtBasic
|
|
937
1118
|
pageBuilder?: Array<
|
|
1119
|
+
| ({
|
|
1120
|
+
_key: string
|
|
1121
|
+
} & HeroSection)
|
|
938
1122
|
| ({
|
|
939
1123
|
_key: string
|
|
940
1124
|
} & MediaTextSection)
|
|
@@ -1011,6 +1195,9 @@ export type Webpage = {
|
|
|
1011
1195
|
mainImage?: AccessibleImage
|
|
1012
1196
|
body?: PtBasic
|
|
1013
1197
|
pageBuilder?: Array<
|
|
1198
|
+
| ({
|
|
1199
|
+
_key: string
|
|
1200
|
+
} & HeroSection)
|
|
1014
1201
|
| ({
|
|
1015
1202
|
_key: string
|
|
1016
1203
|
} & MediaTextSection)
|
|
@@ -1153,6 +1340,9 @@ export type Campus = {
|
|
|
1153
1340
|
} & PersonReference
|
|
1154
1341
|
>
|
|
1155
1342
|
pageBuilder?: Array<
|
|
1343
|
+
| ({
|
|
1344
|
+
_key: string
|
|
1345
|
+
} & HeroSection)
|
|
1156
1346
|
| ({
|
|
1157
1347
|
_key: string
|
|
1158
1348
|
} & MediaTextSection)
|
|
@@ -1219,6 +1409,9 @@ export type Area = {
|
|
|
1219
1409
|
image?: AccessibleImage
|
|
1220
1410
|
body?: PtBasic
|
|
1221
1411
|
pageBuilder?: Array<
|
|
1412
|
+
| ({
|
|
1413
|
+
_key: string
|
|
1414
|
+
} & HeroSection)
|
|
1222
1415
|
| ({
|
|
1223
1416
|
_key: string
|
|
1224
1417
|
} & MediaTextSection)
|
|
@@ -1723,6 +1916,7 @@ export type AllSanitySchemaTypes =
|
|
|
1723
1916
|
| CardGridSectionOptions
|
|
1724
1917
|
| ProgramGridSectionOptions
|
|
1725
1918
|
| RelatedLinksSectionOptions
|
|
1919
|
+
| HeroVideoBackground
|
|
1726
1920
|
| WebpageReference
|
|
1727
1921
|
| ProgramReference
|
|
1728
1922
|
| CampusReference
|
|
@@ -1736,6 +1930,7 @@ export type AllSanitySchemaTypes =
|
|
|
1736
1930
|
| OrganizationContactPoint
|
|
1737
1931
|
| PhoneNumber
|
|
1738
1932
|
| CanadianAddress
|
|
1933
|
+
| HeroSection
|
|
1739
1934
|
| ScholarshipReference
|
|
1740
1935
|
| ScholarshipTagReference
|
|
1741
1936
|
| ScholarshipListSection
|
|
@@ -1759,6 +1954,7 @@ export type AllSanitySchemaTypes =
|
|
|
1759
1954
|
| MenuItem
|
|
1760
1955
|
| SanityImageAssetReference
|
|
1761
1956
|
| AccessibleImage
|
|
1957
|
+
| AccordionBlock
|
|
1762
1958
|
| PtSimple
|
|
1763
1959
|
| PtBasic
|
|
1764
1960
|
| PtLink
|