@confed/sanity-types 0.1.3-2604211549 → 0.1.3-2604282002
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 +149 -0
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -507,6 +507,80 @@ export type AccessibleImage = {
|
|
|
507
507
|
legend?: PtSimple
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
+
export type AccordionBlock = {
|
|
511
|
+
_type: 'accordionBlock'
|
|
512
|
+
items?: Array<{
|
|
513
|
+
title: string
|
|
514
|
+
body?: Array<
|
|
515
|
+
| {
|
|
516
|
+
children?: Array<{
|
|
517
|
+
marks?: Array<string>
|
|
518
|
+
text?: string
|
|
519
|
+
_type: 'span'
|
|
520
|
+
_key: string
|
|
521
|
+
}>
|
|
522
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
523
|
+
listItem?: 'bullet' | 'number' | 'unstyledList'
|
|
524
|
+
markDefs?: Array<
|
|
525
|
+
| ({
|
|
526
|
+
_key: string
|
|
527
|
+
} & PtLink)
|
|
528
|
+
| {
|
|
529
|
+
id: string
|
|
530
|
+
_type: 'anchor'
|
|
531
|
+
_key: string
|
|
532
|
+
}
|
|
533
|
+
>
|
|
534
|
+
level?: number
|
|
535
|
+
_type: 'block'
|
|
536
|
+
_key: string
|
|
537
|
+
}
|
|
538
|
+
| {
|
|
539
|
+
asset?: SanityImageAssetReference
|
|
540
|
+
media?: unknown
|
|
541
|
+
hotspot?: SanityImageHotspot
|
|
542
|
+
crop?: SanityImageCrop
|
|
543
|
+
altText?: string
|
|
544
|
+
caption?: string
|
|
545
|
+
legend?: PtSimple
|
|
546
|
+
layout?: 'inline' | 'float-left' | 'float-right' | 'full'
|
|
547
|
+
size?: 'sm' | 'md' | 'lg' | 'original'
|
|
548
|
+
aspectRatio?: 'auto' | '1/1' | '16/9' | '3/4'
|
|
549
|
+
_type: 'figure'
|
|
550
|
+
_key: string
|
|
551
|
+
}
|
|
552
|
+
| ({
|
|
553
|
+
_key: string
|
|
554
|
+
} & PtButton)
|
|
555
|
+
| {
|
|
556
|
+
url: string
|
|
557
|
+
title?: string
|
|
558
|
+
_type: 'ptYoutubeVideo'
|
|
559
|
+
_key: string
|
|
560
|
+
}
|
|
561
|
+
| {
|
|
562
|
+
body: PtSimple
|
|
563
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
564
|
+
_type: 'note'
|
|
565
|
+
_key: string
|
|
566
|
+
}
|
|
567
|
+
| ({
|
|
568
|
+
_key: string
|
|
569
|
+
} & Table)
|
|
570
|
+
| {
|
|
571
|
+
title?: string
|
|
572
|
+
embedCode: Code
|
|
573
|
+
height?: number
|
|
574
|
+
responsive?: boolean
|
|
575
|
+
_type: 'embed'
|
|
576
|
+
_key: string
|
|
577
|
+
}
|
|
578
|
+
>
|
|
579
|
+
_type: 'accordionItem'
|
|
580
|
+
_key: string
|
|
581
|
+
}>
|
|
582
|
+
}
|
|
583
|
+
|
|
510
584
|
export type PtSimple = Array<{
|
|
511
585
|
children?: Array<{
|
|
512
586
|
marks?: Array<string>
|
|
@@ -590,6 +664,80 @@ export type PtBasic = Array<
|
|
|
590
664
|
_type: 'embed'
|
|
591
665
|
_key: string
|
|
592
666
|
}
|
|
667
|
+
| {
|
|
668
|
+
items?: Array<{
|
|
669
|
+
title: string
|
|
670
|
+
body?: Array<
|
|
671
|
+
| {
|
|
672
|
+
children?: Array<{
|
|
673
|
+
marks?: Array<string>
|
|
674
|
+
text?: string
|
|
675
|
+
_type: 'span'
|
|
676
|
+
_key: string
|
|
677
|
+
}>
|
|
678
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
679
|
+
listItem?: 'bullet' | 'number' | 'unstyledList'
|
|
680
|
+
markDefs?: Array<
|
|
681
|
+
| ({
|
|
682
|
+
_key: string
|
|
683
|
+
} & PtLink)
|
|
684
|
+
| {
|
|
685
|
+
id: string
|
|
686
|
+
_type: 'anchor'
|
|
687
|
+
_key: string
|
|
688
|
+
}
|
|
689
|
+
>
|
|
690
|
+
level?: number
|
|
691
|
+
_type: 'block'
|
|
692
|
+
_key: string
|
|
693
|
+
}
|
|
694
|
+
| {
|
|
695
|
+
asset?: SanityImageAssetReference
|
|
696
|
+
media?: unknown
|
|
697
|
+
hotspot?: SanityImageHotspot
|
|
698
|
+
crop?: SanityImageCrop
|
|
699
|
+
altText?: string
|
|
700
|
+
caption?: string
|
|
701
|
+
legend?: PtSimple
|
|
702
|
+
layout?: 'inline' | 'float-left' | 'float-right' | 'full'
|
|
703
|
+
size?: 'sm' | 'md' | 'lg' | 'original'
|
|
704
|
+
aspectRatio?: 'auto' | '1/1' | '16/9' | '3/4'
|
|
705
|
+
_type: 'figure'
|
|
706
|
+
_key: string
|
|
707
|
+
}
|
|
708
|
+
| ({
|
|
709
|
+
_key: string
|
|
710
|
+
} & PtButton)
|
|
711
|
+
| {
|
|
712
|
+
url: string
|
|
713
|
+
title?: string
|
|
714
|
+
_type: 'ptYoutubeVideo'
|
|
715
|
+
_key: string
|
|
716
|
+
}
|
|
717
|
+
| {
|
|
718
|
+
body: PtSimple
|
|
719
|
+
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
720
|
+
_type: 'note'
|
|
721
|
+
_key: string
|
|
722
|
+
}
|
|
723
|
+
| ({
|
|
724
|
+
_key: string
|
|
725
|
+
} & Table)
|
|
726
|
+
| {
|
|
727
|
+
title?: string
|
|
728
|
+
embedCode: Code
|
|
729
|
+
height?: number
|
|
730
|
+
responsive?: boolean
|
|
731
|
+
_type: 'embed'
|
|
732
|
+
_key: string
|
|
733
|
+
}
|
|
734
|
+
>
|
|
735
|
+
_type: 'accordionItem'
|
|
736
|
+
_key: string
|
|
737
|
+
}>
|
|
738
|
+
_type: 'accordionBlock'
|
|
739
|
+
_key: string
|
|
740
|
+
}
|
|
593
741
|
>
|
|
594
742
|
|
|
595
743
|
export type PtLink = {
|
|
@@ -1806,6 +1954,7 @@ export type AllSanitySchemaTypes =
|
|
|
1806
1954
|
| MenuItem
|
|
1807
1955
|
| SanityImageAssetReference
|
|
1808
1956
|
| AccessibleImage
|
|
1957
|
+
| AccordionBlock
|
|
1809
1958
|
| PtSimple
|
|
1810
1959
|
| PtBasic
|
|
1811
1960
|
| PtLink
|