@confed/sanity-types 0.1.3-2511061632 → 0.1.3-2511071847

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 +53 -102
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.3-2511061632",
3
+ "version": "0.1.3-2511071847",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -13,6 +13,55 @@
13
13
  */
14
14
 
15
15
  // Source: schema.json
16
+ export type CallToActionSection = {
17
+ _type: 'callToActionSection'
18
+ title: string
19
+ eyebrow?: string
20
+ intro?: Array<{
21
+ children?: Array<{
22
+ marks?: Array<string>
23
+ text?: string
24
+ _type: 'span'
25
+ _key: string
26
+ }>
27
+ style?: 'normal'
28
+ listItem?: 'bullet' | 'number'
29
+ markDefs?: Array<{
30
+ href?: string
31
+ openInNewTab?: boolean
32
+ _type: 'link'
33
+ _key: string
34
+ }>
35
+ level?: number
36
+ _type: 'block'
37
+ _key: string
38
+ }>
39
+ buttons?: Array<
40
+ {
41
+ _key: string
42
+ } & PtButton
43
+ >
44
+ image?: {
45
+ asset?: {
46
+ _ref: string
47
+ _type: 'reference'
48
+ _weak?: boolean
49
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
50
+ }
51
+ media?: unknown
52
+ hotspot?: SanityImageHotspot
53
+ crop?: SanityImageCrop
54
+ altText: string
55
+ caption?: string
56
+ _type: 'accessibleImage'
57
+ }
58
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black' | 'primary' | 'accent'
59
+ layoutStyle?: 'textLeft' | 'textCentered' | 'imageSplit' | 'imageBackground'
60
+ imageSide?: 'left' | 'right'
61
+ anchorSlug?: Slug
62
+ spacing?: 'default' | 'minimum' | 'none'
63
+ }
64
+
16
65
  export type CardGridSection = {
17
66
  _type: 'cardGridSection'
18
67
  title?: string
@@ -404,104 +453,6 @@ export type GallerySection = {
404
453
  layout?: 'grid' | 'carousel'
405
454
  }
406
455
 
407
- export type StaffListSection = {
408
- _type: 'staffListSection'
409
- title?: string
410
- intro?: Array<
411
- | {
412
- children?: Array<{
413
- marks?: Array<string>
414
- text?: string
415
- _type: 'span'
416
- _key: string
417
- }>
418
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
419
- listItem?: 'bullet' | 'number'
420
- markDefs?: Array<{
421
- href?: string
422
- openInNewTab?: boolean
423
- _type: 'link'
424
- _key: string
425
- }>
426
- level?: number
427
- _type: 'block'
428
- _key: string
429
- }
430
- | {
431
- asset?: {
432
- _ref: string
433
- _type: 'reference'
434
- _weak?: boolean
435
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
436
- }
437
- media?: unknown
438
- hotspot?: SanityImageHotspot
439
- crop?: SanityImageCrop
440
- altText: string
441
- caption?: string
442
- _type: 'figure'
443
- _key: string
444
- }
445
- | ({
446
- _key: string
447
- } & PtButton)
448
- | {
449
- url: string
450
- title?: string
451
- _type: 'ptYoutubeVideo'
452
- _key: string
453
- }
454
- | {
455
- body: Array<{
456
- children?: Array<{
457
- marks?: Array<string>
458
- text?: string
459
- _type: 'span'
460
- _key: string
461
- }>
462
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
463
- listItem?: 'bullet' | 'number'
464
- markDefs?: Array<{
465
- href?: string
466
- openInNewTab?: boolean
467
- _type: 'link'
468
- _key: string
469
- }>
470
- level?: number
471
- _type: 'block'
472
- _key: string
473
- }>
474
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
475
- _type: 'note'
476
- _key: string
477
- }
478
- | ({
479
- _key: string
480
- } & Table)
481
- | {
482
- title?: string
483
- embedCode: Code
484
- height?: number
485
- responsive?: boolean
486
- _type: 'embed'
487
- _key: string
488
- }
489
- >
490
- staffMembers?: Array<{
491
- _ref: string
492
- _type: 'reference'
493
- _weak?: boolean
494
- _key: string
495
- [internalGroqTypeReferenceTo]?: 'person'
496
- }>
497
- layout?: 'grid' | 'list' | 'cards'
498
- displayOptions?: {
499
- showPhotos?: boolean
500
- showContactInfo?: boolean
501
- showDescription?: boolean
502
- }
503
- }
504
-
505
456
  export type FaqSection = {
506
457
  _type: 'faqSection'
507
458
  title?: string
@@ -1059,9 +1010,6 @@ export type Webpage = {
1059
1010
  | ({
1060
1011
  _key: string
1061
1012
  } & FaqSection)
1062
- | ({
1063
- _key: string
1064
- } & StaffListSection)
1065
1013
  | ({
1066
1014
  _key: string
1067
1015
  } & GallerySection)
@@ -1071,6 +1019,9 @@ export type Webpage = {
1071
1019
  | ({
1072
1020
  _key: string
1073
1021
  } & CardGridSection)
1022
+ | ({
1023
+ _key: string
1024
+ } & CallToActionSection)
1074
1025
  >
1075
1026
  parentPage?:
1076
1027
  | {
@@ -1839,13 +1790,13 @@ export type SanityAssetSourceData = {
1839
1790
  }
1840
1791
 
1841
1792
  export type AllSanitySchemaTypes =
1793
+ | CallToActionSection
1842
1794
  | CardGridSection
1843
1795
  | Card
1844
1796
  | HeaderSection
1845
1797
  | MediaTextSection
1846
1798
  | RichTextSection
1847
1799
  | GallerySection
1848
- | StaffListSection
1849
1800
  | FaqSection
1850
1801
  | FaqItem
1851
1802
  | MenuItem