@confed/sanity-types 0.1.2-2510291949 → 0.1.3-2510301609

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 +113 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.2-2510291949",
3
+ "version": "0.1.3-2510301609",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -13,6 +13,115 @@
13
13
  */
14
14
 
15
15
  // Source: schema.json
16
+ export type MediaTextSection = {
17
+ _type: 'mediaTextSection'
18
+ text: 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
+ title?: string
91
+ embedCode: Code
92
+ height?: number
93
+ responsive?: boolean
94
+ _type: 'embed'
95
+ _key: string
96
+ }
97
+ >
98
+ buttons?: Array<
99
+ {
100
+ _key: string
101
+ } & PtButton
102
+ >
103
+ image: {
104
+ asset?: {
105
+ _ref: string
106
+ _type: 'reference'
107
+ _weak?: boolean
108
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
109
+ }
110
+ media?: unknown
111
+ hotspot?: SanityImageHotspot
112
+ crop?: SanityImageCrop
113
+ altText: string
114
+ caption?: string
115
+ _type: 'accessibleImage'
116
+ }
117
+ options?: {
118
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black'
119
+ imagePosition?: 'left' | 'right'
120
+ spacing?: 'default' | 'minimum' | 'none'
121
+ reverseOnMobile?: boolean
122
+ }
123
+ }
124
+
16
125
  export type RichTextSection = {
17
126
  _type: 'richTextSection'
18
127
  content?: Array<
@@ -824,6 +933,9 @@ export type Webpage = {
824
933
  introduction?: string
825
934
  body?: PtBasic
826
935
  pageBuilder?: Array<
936
+ | ({
937
+ _key: string
938
+ } & MediaTextSection)
827
939
  | ({
828
940
  _key: string
829
941
  } & FaqSection)
@@ -1604,6 +1716,7 @@ export type SanityAssetSourceData = {
1604
1716
  }
1605
1717
 
1606
1718
  export type AllSanitySchemaTypes =
1719
+ | MediaTextSection
1607
1720
  | RichTextSection
1608
1721
  | GallerySection
1609
1722
  | StaffListSection