@confed/sanity-types 0.1.2-2510231931 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sanity.types.ts +29 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.2-2510231931",
3
+ "version": "0.1.2-2510241602",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
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?: {
@@ -597,6 +604,27 @@ export type Webpage = {
597
604
  _rev: string
598
605
  title: string
599
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
600
628
  body?: PtBasic
601
629
  pageBuilder?: Array<
602
630
  | ({
@@ -633,20 +661,6 @@ export type Webpage = {
633
661
  }
634
662
  pageType: 'webpage' | 'department'
635
663
  isPublished?: boolean
636
- mainImage?: {
637
- asset?: {
638
- _ref: string
639
- _type: 'reference'
640
- _weak?: boolean
641
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
642
- }
643
- media?: unknown
644
- hotspot?: SanityImageHotspot
645
- crop?: SanityImageCrop
646
- altText: string
647
- caption?: string
648
- _type: 'accessibleImage'
649
- }
650
664
  relatedMenu?: {
651
665
  _ref: string
652
666
  _type: 'reference'
@@ -1382,6 +1396,7 @@ export type AllSanitySchemaTypes =
1382
1396
  | MenuItem
1383
1397
  | Link
1384
1398
  | PtBasic
1399
+ | PtButton
1385
1400
  | Figure
1386
1401
  | Redirect
1387
1402
  | Event