@@ -31,7 +31,7 @@ const Testimonial = z.object({
31
31
const PageFeature = z . object ( {
32
32
title : z . string ( ) ,
33
33
description : z . string ( ) ,
34
- icon : z . string ( ) ,
34
+ icon : z . string ( ) . editor ( { input : 'icon' } ) ,
35
35
to : z . string ( ) . optional ( ) ,
36
36
target : z . enum ( [ '_blank' , '_self' ] ) . optional ( ) ,
37
37
soon : z . boolean ( ) . optional ( )
@@ -43,26 +43,26 @@ const PageSection = z.object({
43
43
links : z . array ( Button ) ,
44
44
features : z . array ( PageFeature ) ,
45
45
image : z . object ( {
46
- light : z . string ( ) ,
47
- dark : z . string ( ) ,
48
- width : z . number ( ) ,
49
- height : z . number ( )
46
+ light : z . string ( ) . editor ( { input : 'media' } ) ,
47
+ dark : z . string ( ) . editor ( { input : 'media' } ) ,
48
+ width : z . number ( ) . optional ( ) ,
49
+ height : z . number ( ) . optional ( )
50
50
} )
51
51
} )
52
52
53
53
const PageHero = z . object ( {
54
54
title : z . string ( ) ,
55
55
description : z . string ( ) ,
56
56
image : z . object ( {
57
- width : z . string ( ) . optional ( ) ,
58
- height : z . string ( ) . optional ( ) ,
59
- light : z . string ( ) ,
60
- dark : z . string ( )
57
+ width : z . number ( ) . optional ( ) ,
58
+ height : z . number ( ) . optional ( ) ,
59
+ light : z . string ( ) . editor ( { input : 'media' } ) ,
60
+ dark : z . string ( ) . editor ( { input : 'media' } )
61
61
} ) . optional ( ) ,
62
62
headline : z . object ( {
63
63
label : z . string ( ) ,
64
64
to : z . string ( ) ,
65
- icon : z . string ( ) . optional ( )
65
+ icon : z . string ( ) . optional ( ) . editor ( { input : 'icon' } )
66
66
} ) . optional ( ) ,
67
67
links : z . array ( Button ) . optional ( )
68
68
} )
@@ -85,10 +85,10 @@ export default defineContentConfig({
85
85
title : z . string ( ) ,
86
86
description : z . string ( ) ,
87
87
image : z . object ( {
88
- light : z . string ( ) ,
89
- dark : z . string ( ) ,
90
- width : z . number ( ) ,
91
- height : z . number ( )
88
+ light : z . string ( ) . editor ( { input : 'media' } ) ,
89
+ dark : z . string ( ) . editor ( { input : 'media' } ) ,
90
+ width : z . number ( ) . optional ( ) ,
91
+ height : z . number ( ) . optional ( )
92
92
} )
93
93
} ) )
94
94
} ) ,
@@ -110,7 +110,7 @@ export default defineContentConfig({
110
110
type : 'page' ,
111
111
source : 'changelog/*.md' ,
112
112
schema : z . object ( {
113
- image : z . string ( ) ,
113
+ image : z . string ( ) . editor ( { input : 'media' } ) ,
114
114
authors : z . array ( Author ) ,
115
115
date : z . string ( ) . date ( )
116
116
} )
@@ -119,7 +119,7 @@ export default defineContentConfig({
119
119
type : 'page' ,
120
120
source : 'blog/**/*.md' ,
121
121
schema : z . object ( {
122
- image : z . string ( ) ,
122
+ image : z . string ( ) . editor ( { input : 'media' } ) ,
123
123
authors : z . array ( Author ) ,
124
124
date : z . string ( ) . date ( ) ,
125
125
category : z . enum ( [ 'Release' , 'Tutorial' ] )
@@ -131,7 +131,7 @@ export default defineContentConfig({
131
131
schema : z . object ( {
132
132
title : z . string ( ) ,
133
133
description : z . string ( ) ,
134
- icon : z . string ( ) ,
134
+ icon : z . string ( ) . editor ( { input : 'icon' } ) ,
135
135
hero : PageHero
136
136
} )
137
137
} ) ,
@@ -141,7 +141,7 @@ export default defineContentConfig({
141
141
schema : z . object ( {
142
142
title : z . string ( ) ,
143
143
description : z . string ( ) ,
144
- icon : z . string ( ) ,
144
+ icon : z . string ( ) . editor ( { input : 'icon' } ) ,
145
145
hero : PageHero ,
146
146
pricing : z . object ( {
147
147
plans : z . array ( z . object ( {
@@ -191,7 +191,7 @@ export default defineContentConfig({
191
191
schema : z . object ( {
192
192
plans : z . array ( z . object ( {
193
193
label : z . string ( ) ,
194
- icon : z . string ( ) ,
194
+ icon : z . string ( ) . editor ( { input : 'icon' } ) ,
195
195
slot : z . string ( ) ,
196
196
buttons : z . array ( Button ) ,
197
197
columns : z . array ( z . object ( {
0 commit comments