@confed/sanity-types 0.1.3-2511071847 → 0.1.3-2511072057
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 +41 -1
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -13,6 +13,38 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
// Source: schema.json
|
|
16
|
+
export type SimpleCallToActionSection = {
|
|
17
|
+
_type: 'simpleCallToActionSection'
|
|
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
|
+
anchorSlug?: Slug
|
|
45
|
+
icon?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
16
48
|
export type CallToActionSection = {
|
|
17
49
|
_type: 'callToActionSection'
|
|
18
50
|
title: string
|
|
@@ -350,6 +382,8 @@ export type RichTextSection = {
|
|
|
350
382
|
_key: string
|
|
351
383
|
}
|
|
352
384
|
>
|
|
385
|
+
backgroundColor?: 'light' | 'white'
|
|
386
|
+
spacing?: 'default' | 'minimum' | 'none'
|
|
353
387
|
}
|
|
354
388
|
|
|
355
389
|
export type GallerySection = {
|
|
@@ -536,12 +570,14 @@ export type FaqSection = {
|
|
|
536
570
|
_key: string
|
|
537
571
|
}
|
|
538
572
|
>
|
|
539
|
-
layout?: 'accordion' | 'list' | 'twoCols'
|
|
540
573
|
items?: Array<
|
|
541
574
|
{
|
|
542
575
|
_key: string
|
|
543
576
|
} & FaqItem
|
|
544
577
|
>
|
|
578
|
+
layout?: 'accordion' | 'list' | 'twoCols'
|
|
579
|
+
backgroundColor?: 'light' | 'white'
|
|
580
|
+
spacing?: 'default' | 'minimum' | 'none'
|
|
545
581
|
}
|
|
546
582
|
|
|
547
583
|
export type FaqItem = {
|
|
@@ -1022,6 +1058,9 @@ export type Webpage = {
|
|
|
1022
1058
|
| ({
|
|
1023
1059
|
_key: string
|
|
1024
1060
|
} & CallToActionSection)
|
|
1061
|
+
| ({
|
|
1062
|
+
_key: string
|
|
1063
|
+
} & SimpleCallToActionSection)
|
|
1025
1064
|
>
|
|
1026
1065
|
parentPage?:
|
|
1027
1066
|
| {
|
|
@@ -1790,6 +1829,7 @@ export type SanityAssetSourceData = {
|
|
|
1790
1829
|
}
|
|
1791
1830
|
|
|
1792
1831
|
export type AllSanitySchemaTypes =
|
|
1832
|
+
| SimpleCallToActionSection
|
|
1793
1833
|
| CallToActionSection
|
|
1794
1834
|
| CardGridSection
|
|
1795
1835
|
| Card
|