@confed/sanity-types 0.1.3-2511061643 → 0.1.3-2511072024
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 +58 -103
package/package.json
CHANGED
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
|
|
@@ -301,6 +350,8 @@ export type RichTextSection = {
|
|
|
301
350
|
_key: string
|
|
302
351
|
}
|
|
303
352
|
>
|
|
353
|
+
backgroundColor?: 'light' | 'white'
|
|
354
|
+
spacing?: 'default' | 'minimum' | 'none'
|
|
304
355
|
}
|
|
305
356
|
|
|
306
357
|
export type GallerySection = {
|
|
@@ -404,104 +455,6 @@ export type GallerySection = {
|
|
|
404
455
|
layout?: 'grid' | 'carousel'
|
|
405
456
|
}
|
|
406
457
|
|
|
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
458
|
export type FaqSection = {
|
|
506
459
|
_type: 'faqSection'
|
|
507
460
|
title?: string
|
|
@@ -585,12 +538,14 @@ export type FaqSection = {
|
|
|
585
538
|
_key: string
|
|
586
539
|
}
|
|
587
540
|
>
|
|
588
|
-
layout?: 'accordion' | 'list' | 'twoCols'
|
|
589
541
|
items?: Array<
|
|
590
542
|
{
|
|
591
543
|
_key: string
|
|
592
544
|
} & FaqItem
|
|
593
545
|
>
|
|
546
|
+
layout?: 'accordion' | 'list' | 'twoCols'
|
|
547
|
+
backgroundColor?: 'light' | 'white'
|
|
548
|
+
spacing?: 'default' | 'minimum' | 'none'
|
|
594
549
|
}
|
|
595
550
|
|
|
596
551
|
export type FaqItem = {
|
|
@@ -1059,9 +1014,6 @@ export type Webpage = {
|
|
|
1059
1014
|
| ({
|
|
1060
1015
|
_key: string
|
|
1061
1016
|
} & FaqSection)
|
|
1062
|
-
| ({
|
|
1063
|
-
_key: string
|
|
1064
|
-
} & StaffListSection)
|
|
1065
1017
|
| ({
|
|
1066
1018
|
_key: string
|
|
1067
1019
|
} & GallerySection)
|
|
@@ -1071,6 +1023,9 @@ export type Webpage = {
|
|
|
1071
1023
|
| ({
|
|
1072
1024
|
_key: string
|
|
1073
1025
|
} & CardGridSection)
|
|
1026
|
+
| ({
|
|
1027
|
+
_key: string
|
|
1028
|
+
} & CallToActionSection)
|
|
1074
1029
|
>
|
|
1075
1030
|
parentPage?:
|
|
1076
1031
|
| {
|
|
@@ -1839,13 +1794,13 @@ export type SanityAssetSourceData = {
|
|
|
1839
1794
|
}
|
|
1840
1795
|
|
|
1841
1796
|
export type AllSanitySchemaTypes =
|
|
1797
|
+
| CallToActionSection
|
|
1842
1798
|
| CardGridSection
|
|
1843
1799
|
| Card
|
|
1844
1800
|
| HeaderSection
|
|
1845
1801
|
| MediaTextSection
|
|
1846
1802
|
| RichTextSection
|
|
1847
1803
|
| GallerySection
|
|
1848
|
-
| StaffListSection
|
|
1849
1804
|
| FaqSection
|
|
1850
1805
|
| FaqItem
|
|
1851
1806
|
| MenuItem
|