@confed/sanity-types 0.1.3-2511031903 → 0.1.3-2511061538
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 +110 -0
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -13,6 +13,90 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
// Source: schema.json
|
|
16
|
+
export type CardGridSection = {
|
|
17
|
+
_type: 'cardGridSection'
|
|
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
|
+
cards?: Array<
|
|
40
|
+
{
|
|
41
|
+
_key: string
|
|
42
|
+
} & Card
|
|
43
|
+
>
|
|
44
|
+
options?: {
|
|
45
|
+
backgroundColor?: 'light' | 'dark' | 'white' | 'black'
|
|
46
|
+
anchorSlug?: Slug
|
|
47
|
+
spacing?: 'default' | 'minimum' | 'none'
|
|
48
|
+
columns?: '2' | '3' | '4'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type Card = {
|
|
53
|
+
_type: 'card'
|
|
54
|
+
title?: string
|
|
55
|
+
eyebrow?: string
|
|
56
|
+
image?: {
|
|
57
|
+
asset?: {
|
|
58
|
+
_ref: string
|
|
59
|
+
_type: 'reference'
|
|
60
|
+
_weak?: boolean
|
|
61
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
62
|
+
}
|
|
63
|
+
media?: unknown
|
|
64
|
+
hotspot?: SanityImageHotspot
|
|
65
|
+
crop?: SanityImageCrop
|
|
66
|
+
altText: string
|
|
67
|
+
caption?: string
|
|
68
|
+
_type: 'accessibleImage'
|
|
69
|
+
}
|
|
70
|
+
description?: Array<{
|
|
71
|
+
children?: Array<{
|
|
72
|
+
marks?: Array<string>
|
|
73
|
+
text?: string
|
|
74
|
+
_type: 'span'
|
|
75
|
+
_key: string
|
|
76
|
+
}>
|
|
77
|
+
style?: 'normal'
|
|
78
|
+
listItem?: 'bullet' | 'number'
|
|
79
|
+
markDefs?: Array<{
|
|
80
|
+
href?: string
|
|
81
|
+
openInNewTab?: boolean
|
|
82
|
+
_type: 'link'
|
|
83
|
+
_key: string
|
|
84
|
+
}>
|
|
85
|
+
level?: number
|
|
86
|
+
_type: 'block'
|
|
87
|
+
_key: string
|
|
88
|
+
}>
|
|
89
|
+
buttons?: Array<
|
|
90
|
+
{
|
|
91
|
+
_key: string
|
|
92
|
+
} & PtButton
|
|
93
|
+
>
|
|
94
|
+
options?: {
|
|
95
|
+
backgroundColor?: 'light' | 'dark' | 'white' | 'black'
|
|
96
|
+
imageAspectRatio?: '1:1' | '4:3' | '16:9'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
16
100
|
export type HeaderSection = {
|
|
17
101
|
_type: 'headerSection'
|
|
18
102
|
header: string
|
|
@@ -647,6 +731,26 @@ export type Link = {
|
|
|
647
731
|
description?: string
|
|
648
732
|
}
|
|
649
733
|
|
|
734
|
+
export type PtSimple = Array<{
|
|
735
|
+
children?: Array<{
|
|
736
|
+
marks?: Array<string>
|
|
737
|
+
text?: string
|
|
738
|
+
_type: 'span'
|
|
739
|
+
_key: string
|
|
740
|
+
}>
|
|
741
|
+
style?: 'normal'
|
|
742
|
+
listItem?: 'bullet' | 'number'
|
|
743
|
+
markDefs?: Array<{
|
|
744
|
+
href?: string
|
|
745
|
+
openInNewTab?: boolean
|
|
746
|
+
_type: 'link'
|
|
747
|
+
_key: string
|
|
748
|
+
}>
|
|
749
|
+
level?: number
|
|
750
|
+
_type: 'block'
|
|
751
|
+
_key: string
|
|
752
|
+
}>
|
|
753
|
+
|
|
650
754
|
export type PtBasic = Array<
|
|
651
755
|
| {
|
|
652
756
|
children?: Array<{
|
|
@@ -964,6 +1068,9 @@ export type Webpage = {
|
|
|
964
1068
|
| ({
|
|
965
1069
|
_key: string
|
|
966
1070
|
} & RichTextSection)
|
|
1071
|
+
| ({
|
|
1072
|
+
_key: string
|
|
1073
|
+
} & CardGridSection)
|
|
967
1074
|
>
|
|
968
1075
|
parentPage?:
|
|
969
1076
|
| {
|
|
@@ -1732,6 +1839,8 @@ export type SanityAssetSourceData = {
|
|
|
1732
1839
|
}
|
|
1733
1840
|
|
|
1734
1841
|
export type AllSanitySchemaTypes =
|
|
1842
|
+
| CardGridSection
|
|
1843
|
+
| Card
|
|
1735
1844
|
| HeaderSection
|
|
1736
1845
|
| MediaTextSection
|
|
1737
1846
|
| RichTextSection
|
|
@@ -1741,6 +1850,7 @@ export type AllSanitySchemaTypes =
|
|
|
1741
1850
|
| FaqItem
|
|
1742
1851
|
| MenuItem
|
|
1743
1852
|
| Link
|
|
1853
|
+
| PtSimple
|
|
1744
1854
|
| PtBasic
|
|
1745
1855
|
| PtButton
|
|
1746
1856
|
| Figure
|