@confed/sanity-types 0.1.2-2510241518 → 0.1.2-2510241602
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 +29 -15
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -409,6 +409,13 @@ export type PtBasic = Array<
|
|
|
409
409
|
} & Table)
|
|
410
410
|
>
|
|
411
411
|
|
|
412
|
+
export type PtButton = {
|
|
413
|
+
_type: 'ptButton'
|
|
414
|
+
variant?: 'primary' | 'outlined'
|
|
415
|
+
text: string
|
|
416
|
+
link: string
|
|
417
|
+
}
|
|
418
|
+
|
|
412
419
|
export type Figure = {
|
|
413
420
|
_type: 'figure'
|
|
414
421
|
asset?: {
|
|
@@ -596,8 +603,28 @@ export type Webpage = {
|
|
|
596
603
|
_updatedAt: string
|
|
597
604
|
_rev: string
|
|
598
605
|
title: string
|
|
599
|
-
introduction?: string
|
|
600
606
|
slug: Slug
|
|
607
|
+
heroDescription?: string
|
|
608
|
+
heroButtons?: Array<
|
|
609
|
+
{
|
|
610
|
+
_key: string
|
|
611
|
+
} & PtButton
|
|
612
|
+
>
|
|
613
|
+
mainImage?: {
|
|
614
|
+
asset?: {
|
|
615
|
+
_ref: string
|
|
616
|
+
_type: 'reference'
|
|
617
|
+
_weak?: boolean
|
|
618
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
619
|
+
}
|
|
620
|
+
media?: unknown
|
|
621
|
+
hotspot?: SanityImageHotspot
|
|
622
|
+
crop?: SanityImageCrop
|
|
623
|
+
altText: string
|
|
624
|
+
caption?: string
|
|
625
|
+
_type: 'accessibleImage'
|
|
626
|
+
}
|
|
627
|
+
introduction?: string
|
|
601
628
|
body?: PtBasic
|
|
602
629
|
pageBuilder?: Array<
|
|
603
630
|
| ({
|
|
@@ -634,20 +661,6 @@ export type Webpage = {
|
|
|
634
661
|
}
|
|
635
662
|
pageType: 'webpage' | 'department'
|
|
636
663
|
isPublished?: boolean
|
|
637
|
-
mainImage?: {
|
|
638
|
-
asset?: {
|
|
639
|
-
_ref: string
|
|
640
|
-
_type: 'reference'
|
|
641
|
-
_weak?: boolean
|
|
642
|
-
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
643
|
-
}
|
|
644
|
-
media?: unknown
|
|
645
|
-
hotspot?: SanityImageHotspot
|
|
646
|
-
crop?: SanityImageCrop
|
|
647
|
-
altText: string
|
|
648
|
-
caption?: string
|
|
649
|
-
_type: 'accessibleImage'
|
|
650
|
-
}
|
|
651
664
|
relatedMenu?: {
|
|
652
665
|
_ref: string
|
|
653
666
|
_type: 'reference'
|
|
@@ -1383,6 +1396,7 @@ export type AllSanitySchemaTypes =
|
|
|
1383
1396
|
| MenuItem
|
|
1384
1397
|
| Link
|
|
1385
1398
|
| PtBasic
|
|
1399
|
+
| PtButton
|
|
1386
1400
|
| Figure
|
|
1387
1401
|
| Redirect
|
|
1388
1402
|
| Event
|