@confed/sanity-types 0.1.3-2608252000 → 0.1.3-2608252025

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sanity.types.ts +38 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.3-2608252000",
3
+ "version": "0.1.3-2608252025",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -626,6 +626,37 @@ export type MenuItem = {
626
626
  isHighlighted?: boolean
627
627
  }
628
628
 
629
+ export type TableV2 = {
630
+ _type: 'tableV2'
631
+ headerRows?: number
632
+ rows?: Array<{
633
+ cells?: Array<{
634
+ value?: Array<{
635
+ children?: Array<{
636
+ marks?: Array<string>
637
+ text?: string
638
+ _type: 'span'
639
+ _key: string
640
+ }>
641
+ style?: 'normal'
642
+ listItem?: 'bullet' | 'number'
643
+ markDefs?: Array<{
644
+ href?: string
645
+ _type: 'link'
646
+ _key: string
647
+ }>
648
+ level?: number
649
+ _type: 'block'
650
+ _key: string
651
+ }>
652
+ _type: 'cell'
653
+ _key: string
654
+ }>
655
+ _type: 'row'
656
+ _key: string
657
+ }>
658
+ }
659
+
629
660
  export type AccordionBlock = {
630
661
  _type: 'accordionBlock'
631
662
  items?: Array<{
@@ -686,6 +717,9 @@ export type AccordionBlock = {
686
717
  | ({
687
718
  _key: string
688
719
  } & Table)
720
+ | ({
721
+ _key: string
722
+ } & TableV2)
689
723
  | {
690
724
  title?: string
691
725
  embedCode: Code
@@ -775,6 +809,9 @@ export type PtBasic = Array<
775
809
  | ({
776
810
  _key: string
777
811
  } & Table)
812
+ | ({
813
+ _key: string
814
+ } & TableV2)
778
815
  | {
779
816
  title?: string
780
817
  embedCode: Code
@@ -2179,6 +2216,7 @@ export type AllSanitySchemaTypes =
2179
2216
  | FaqItem
2180
2217
  | Link
2181
2218
  | MenuItem
2219
+ | TableV2
2182
2220
  | AccordionBlock
2183
2221
  | PtSimple
2184
2222
  | PtBasic