@confed/sanity-types 0.1.2-2510241858 → 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 +190 -32
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
|
|
@@ -51,13 +220,9 @@ export type StaffListSection = {
|
|
|
51
220
|
_type: 'figure'
|
|
52
221
|
_key: string
|
|
53
222
|
}
|
|
54
|
-
| {
|
|
55
|
-
variant?: 'primary' | 'outlined'
|
|
56
|
-
text: string
|
|
57
|
-
link: string
|
|
58
|
-
_type: 'ptButton'
|
|
223
|
+
| ({
|
|
59
224
|
_key: string
|
|
60
|
-
}
|
|
225
|
+
} & PtButton)
|
|
61
226
|
| {
|
|
62
227
|
url: string
|
|
63
228
|
title?: string
|
|
@@ -65,8 +230,6 @@ export type StaffListSection = {
|
|
|
65
230
|
_key: string
|
|
66
231
|
}
|
|
67
232
|
| {
|
|
68
|
-
kind: 'info' | 'success' | 'warning' | 'error'
|
|
69
|
-
title?: string
|
|
70
233
|
body: Array<{
|
|
71
234
|
children?: Array<{
|
|
72
235
|
marks?: Array<string>
|
|
@@ -86,6 +249,7 @@ export type StaffListSection = {
|
|
|
86
249
|
_type: 'block'
|
|
87
250
|
_key: string
|
|
88
251
|
}>
|
|
252
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
89
253
|
_type: 'note'
|
|
90
254
|
_key: string
|
|
91
255
|
}
|
|
@@ -146,13 +310,9 @@ export type FaqSection = {
|
|
|
146
310
|
_type: 'figure'
|
|
147
311
|
_key: string
|
|
148
312
|
}
|
|
149
|
-
| {
|
|
150
|
-
variant?: 'primary' | 'outlined'
|
|
151
|
-
text: string
|
|
152
|
-
link: string
|
|
153
|
-
_type: 'ptButton'
|
|
313
|
+
| ({
|
|
154
314
|
_key: string
|
|
155
|
-
}
|
|
315
|
+
} & PtButton)
|
|
156
316
|
| {
|
|
157
317
|
url: string
|
|
158
318
|
title?: string
|
|
@@ -160,8 +320,6 @@ export type FaqSection = {
|
|
|
160
320
|
_key: string
|
|
161
321
|
}
|
|
162
322
|
| {
|
|
163
|
-
kind: 'info' | 'success' | 'warning' | 'error'
|
|
164
|
-
title?: string
|
|
165
323
|
body: Array<{
|
|
166
324
|
children?: Array<{
|
|
167
325
|
marks?: Array<string>
|
|
@@ -181,6 +339,7 @@ export type FaqSection = {
|
|
|
181
339
|
_type: 'block'
|
|
182
340
|
_key: string
|
|
183
341
|
}>
|
|
342
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
184
343
|
_type: 'note'
|
|
185
344
|
_key: string
|
|
186
345
|
}
|
|
@@ -234,13 +393,9 @@ export type FaqItem = {
|
|
|
234
393
|
_type: 'figure'
|
|
235
394
|
_key: string
|
|
236
395
|
}
|
|
237
|
-
| {
|
|
238
|
-
variant?: 'primary' | 'outlined'
|
|
239
|
-
text: string
|
|
240
|
-
link: string
|
|
241
|
-
_type: 'ptButton'
|
|
396
|
+
| ({
|
|
242
397
|
_key: string
|
|
243
|
-
}
|
|
398
|
+
} & PtButton)
|
|
244
399
|
| {
|
|
245
400
|
url: string
|
|
246
401
|
title?: string
|
|
@@ -248,8 +403,6 @@ export type FaqItem = {
|
|
|
248
403
|
_key: string
|
|
249
404
|
}
|
|
250
405
|
| {
|
|
251
|
-
kind: 'info' | 'success' | 'warning' | 'error'
|
|
252
|
-
title?: string
|
|
253
406
|
body: Array<{
|
|
254
407
|
children?: Array<{
|
|
255
408
|
marks?: Array<string>
|
|
@@ -269,6 +422,7 @@ export type FaqItem = {
|
|
|
269
422
|
_type: 'block'
|
|
270
423
|
_key: string
|
|
271
424
|
}>
|
|
425
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
272
426
|
_type: 'note'
|
|
273
427
|
_key: string
|
|
274
428
|
}
|
|
@@ -366,13 +520,9 @@ export type PtBasic = Array<
|
|
|
366
520
|
_type: 'figure'
|
|
367
521
|
_key: string
|
|
368
522
|
}
|
|
369
|
-
| {
|
|
370
|
-
variant?: 'primary' | 'outlined'
|
|
371
|
-
text: string
|
|
372
|
-
link: string
|
|
373
|
-
_type: 'ptButton'
|
|
523
|
+
| ({
|
|
374
524
|
_key: string
|
|
375
|
-
}
|
|
525
|
+
} & PtButton)
|
|
376
526
|
| {
|
|
377
527
|
url: string
|
|
378
528
|
title?: string
|
|
@@ -380,8 +530,6 @@ export type PtBasic = Array<
|
|
|
380
530
|
_key: string
|
|
381
531
|
}
|
|
382
532
|
| {
|
|
383
|
-
kind: 'info' | 'success' | 'warning' | 'error'
|
|
384
|
-
title?: string
|
|
385
533
|
body: Array<{
|
|
386
534
|
children?: Array<{
|
|
387
535
|
marks?: Array<string>
|
|
@@ -401,6 +549,7 @@ export type PtBasic = Array<
|
|
|
401
549
|
_type: 'block'
|
|
402
550
|
_key: string
|
|
403
551
|
}>
|
|
552
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
404
553
|
_type: 'note'
|
|
405
554
|
_key: string
|
|
406
555
|
}
|
|
@@ -633,6 +782,12 @@ export type Webpage = {
|
|
|
633
782
|
| ({
|
|
634
783
|
_key: string
|
|
635
784
|
} & StaffListSection)
|
|
785
|
+
| ({
|
|
786
|
+
_key: string
|
|
787
|
+
} & GallerySection)
|
|
788
|
+
| ({
|
|
789
|
+
_key: string
|
|
790
|
+
} & RichTextSection)
|
|
636
791
|
>
|
|
637
792
|
parentPage?:
|
|
638
793
|
| {
|
|
@@ -660,6 +815,7 @@ export type Webpage = {
|
|
|
660
815
|
[internalGroqTypeReferenceTo]?: 'area'
|
|
661
816
|
}
|
|
662
817
|
pageType: 'webpage' | 'department'
|
|
818
|
+
departmentContactDetails?: PtBasic
|
|
663
819
|
isPublished?: boolean
|
|
664
820
|
relatedMenu?: {
|
|
665
821
|
_ref: string
|
|
@@ -1392,6 +1548,8 @@ export type SanityAssetSourceData = {
|
|
|
1392
1548
|
}
|
|
1393
1549
|
|
|
1394
1550
|
export type AllSanitySchemaTypes =
|
|
1551
|
+
| RichTextSection
|
|
1552
|
+
| GallerySection
|
|
1395
1553
|
| StaffListSection
|
|
1396
1554
|
| FaqSection
|
|
1397
1555
|
| FaqItem
|