@confed/sanity-types 0.1.2-2510271943 → 0.1.2-2510291332
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 +178 -0
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -13,6 +13,175 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
// Source: schema.json
|
|
16
|
+
export type RichTextSection = {
|
|
17
|
+
_type: 'richTextSection'
|
|
18
|
+
content?: Array<
|
|
19
|
+
| {
|
|
20
|
+
children?: Array<{
|
|
21
|
+
marks?: Array<string>
|
|
22
|
+
text?: string
|
|
23
|
+
_type: 'span'
|
|
24
|
+
_key: string
|
|
25
|
+
}>
|
|
26
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
27
|
+
listItem?: 'bullet' | 'number'
|
|
28
|
+
markDefs?: Array<{
|
|
29
|
+
href?: string
|
|
30
|
+
openInNewTab?: boolean
|
|
31
|
+
_type: 'link'
|
|
32
|
+
_key: string
|
|
33
|
+
}>
|
|
34
|
+
level?: number
|
|
35
|
+
_type: 'block'
|
|
36
|
+
_key: string
|
|
37
|
+
}
|
|
38
|
+
| {
|
|
39
|
+
asset?: {
|
|
40
|
+
_ref: string
|
|
41
|
+
_type: 'reference'
|
|
42
|
+
_weak?: boolean
|
|
43
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
44
|
+
}
|
|
45
|
+
media?: unknown
|
|
46
|
+
hotspot?: SanityImageHotspot
|
|
47
|
+
crop?: SanityImageCrop
|
|
48
|
+
altText: string
|
|
49
|
+
caption?: string
|
|
50
|
+
_type: 'figure'
|
|
51
|
+
_key: string
|
|
52
|
+
}
|
|
53
|
+
| ({
|
|
54
|
+
_key: string
|
|
55
|
+
} & PtButton)
|
|
56
|
+
| {
|
|
57
|
+
url: string
|
|
58
|
+
title?: string
|
|
59
|
+
_type: 'ptYoutubeVideo'
|
|
60
|
+
_key: string
|
|
61
|
+
}
|
|
62
|
+
| {
|
|
63
|
+
body: Array<{
|
|
64
|
+
children?: Array<{
|
|
65
|
+
marks?: Array<string>
|
|
66
|
+
text?: string
|
|
67
|
+
_type: 'span'
|
|
68
|
+
_key: string
|
|
69
|
+
}>
|
|
70
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
71
|
+
listItem?: 'bullet' | 'number'
|
|
72
|
+
markDefs?: Array<{
|
|
73
|
+
href?: string
|
|
74
|
+
openInNewTab?: boolean
|
|
75
|
+
_type: 'link'
|
|
76
|
+
_key: string
|
|
77
|
+
}>
|
|
78
|
+
level?: number
|
|
79
|
+
_type: 'block'
|
|
80
|
+
_key: string
|
|
81
|
+
}>
|
|
82
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
83
|
+
_type: 'note'
|
|
84
|
+
_key: string
|
|
85
|
+
}
|
|
86
|
+
| ({
|
|
87
|
+
_key: string
|
|
88
|
+
} & Table)
|
|
89
|
+
>
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GallerySection = {
|
|
93
|
+
_type: 'gallerySection'
|
|
94
|
+
title?: string
|
|
95
|
+
introduction?: Array<
|
|
96
|
+
| {
|
|
97
|
+
children?: Array<{
|
|
98
|
+
marks?: Array<string>
|
|
99
|
+
text?: string
|
|
100
|
+
_type: 'span'
|
|
101
|
+
_key: string
|
|
102
|
+
}>
|
|
103
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
104
|
+
listItem?: 'bullet' | 'number'
|
|
105
|
+
markDefs?: Array<{
|
|
106
|
+
href?: string
|
|
107
|
+
openInNewTab?: boolean
|
|
108
|
+
_type: 'link'
|
|
109
|
+
_key: string
|
|
110
|
+
}>
|
|
111
|
+
level?: number
|
|
112
|
+
_type: 'block'
|
|
113
|
+
_key: string
|
|
114
|
+
}
|
|
115
|
+
| {
|
|
116
|
+
asset?: {
|
|
117
|
+
_ref: string
|
|
118
|
+
_type: 'reference'
|
|
119
|
+
_weak?: boolean
|
|
120
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
121
|
+
}
|
|
122
|
+
media?: unknown
|
|
123
|
+
hotspot?: SanityImageHotspot
|
|
124
|
+
crop?: SanityImageCrop
|
|
125
|
+
altText: string
|
|
126
|
+
caption?: string
|
|
127
|
+
_type: 'figure'
|
|
128
|
+
_key: string
|
|
129
|
+
}
|
|
130
|
+
| ({
|
|
131
|
+
_key: string
|
|
132
|
+
} & PtButton)
|
|
133
|
+
| {
|
|
134
|
+
url: string
|
|
135
|
+
title?: string
|
|
136
|
+
_type: 'ptYoutubeVideo'
|
|
137
|
+
_key: string
|
|
138
|
+
}
|
|
139
|
+
| {
|
|
140
|
+
body: Array<{
|
|
141
|
+
children?: Array<{
|
|
142
|
+
marks?: Array<string>
|
|
143
|
+
text?: string
|
|
144
|
+
_type: 'span'
|
|
145
|
+
_key: string
|
|
146
|
+
}>
|
|
147
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
148
|
+
listItem?: 'bullet' | 'number'
|
|
149
|
+
markDefs?: Array<{
|
|
150
|
+
href?: string
|
|
151
|
+
openInNewTab?: boolean
|
|
152
|
+
_type: 'link'
|
|
153
|
+
_key: string
|
|
154
|
+
}>
|
|
155
|
+
level?: number
|
|
156
|
+
_type: 'block'
|
|
157
|
+
_key: string
|
|
158
|
+
}>
|
|
159
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
160
|
+
_type: 'note'
|
|
161
|
+
_key: string
|
|
162
|
+
}
|
|
163
|
+
| ({
|
|
164
|
+
_key: string
|
|
165
|
+
} & Table)
|
|
166
|
+
>
|
|
167
|
+
images?: Array<{
|
|
168
|
+
asset?: {
|
|
169
|
+
_ref: string
|
|
170
|
+
_type: 'reference'
|
|
171
|
+
_weak?: boolean
|
|
172
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
173
|
+
}
|
|
174
|
+
media?: unknown
|
|
175
|
+
hotspot?: SanityImageHotspot
|
|
176
|
+
crop?: SanityImageCrop
|
|
177
|
+
altText: string
|
|
178
|
+
caption?: string
|
|
179
|
+
_type: 'accessibleImage'
|
|
180
|
+
_key: string
|
|
181
|
+
}>
|
|
182
|
+
layout?: 'grid' | 'carousel'
|
|
183
|
+
}
|
|
184
|
+
|
|
16
185
|
export type StaffListSection = {
|
|
17
186
|
_type: 'staffListSection'
|
|
18
187
|
title?: string
|
|
@@ -613,6 +782,12 @@ export type Webpage = {
|
|
|
613
782
|
| ({
|
|
614
783
|
_key: string
|
|
615
784
|
} & StaffListSection)
|
|
785
|
+
| ({
|
|
786
|
+
_key: string
|
|
787
|
+
} & GallerySection)
|
|
788
|
+
| ({
|
|
789
|
+
_key: string
|
|
790
|
+
} & RichTextSection)
|
|
616
791
|
>
|
|
617
792
|
parentPage?:
|
|
618
793
|
| {
|
|
@@ -640,6 +815,7 @@ export type Webpage = {
|
|
|
640
815
|
[internalGroqTypeReferenceTo]?: 'area'
|
|
641
816
|
}
|
|
642
817
|
pageType: 'webpage' | 'department'
|
|
818
|
+
departmentContactDetails?: PtBasic
|
|
643
819
|
isPublished?: boolean
|
|
644
820
|
relatedMenu?: {
|
|
645
821
|
_ref: string
|
|
@@ -1372,6 +1548,8 @@ export type SanityAssetSourceData = {
|
|
|
1372
1548
|
}
|
|
1373
1549
|
|
|
1374
1550
|
export type AllSanitySchemaTypes =
|
|
1551
|
+
| RichTextSection
|
|
1552
|
+
| GallerySection
|
|
1375
1553
|
| StaffListSection
|
|
1376
1554
|
| FaqSection
|
|
1377
1555
|
| FaqItem
|