UNPKG

6.28 kBJavaScriptView Raw
1/* eslint-disable */
2import { graphql } from "gatsby"
3
4/**
5 * The simplest set of fields for fixed sharp images
6 * @type {Fragment}
7 * @example
8 * childImageSharp {
9 * fixed {
10 * ...GatsbyImageSharpFixed
11 * # ^ identical to using the following fields:
12 * # base64
13 * # width
14 * # height
15 * # src
16 * # srcSet
17 * }
18 * }
19 */
20export const GatsbyImageSharpFixed = graphql`
21 fragment GatsbyImageSharpFixed on ImageSharpFixed {
22 base64
23 width
24 height
25 src
26 srcSet
27 }
28`
29
30/**
31 * Traced SVG fixed images
32 * @type {Fragment}
33 */
34export const GatsbyImageSharpFixed_tracedSVG = graphql`
35 fragment GatsbyImageSharpFixed_tracedSVG on ImageSharpFixed {
36 tracedSVG
37 width
38 height
39 src
40 srcSet
41 }
42`
43
44/**
45 * Images using Webp for fixed images
46 * @type {Fragment}
47 */
48export const GatsbyImageSharpFixed_withWebp = graphql`
49 fragment GatsbyImageSharpFixed_withWebp on ImageSharpFixed {
50 base64
51 width
52 height
53 src
54 srcSet
55 srcWebp
56 srcSetWebp
57 }
58`
59
60/**
61 * Traced SVG images using Webp for fixed images
62 * @type {Fragment}
63 */
64export const GatsbyImageSharpFixed_withWebp_tracedSVG = graphql`
65 fragment GatsbyImageSharpFixed_withWebp_tracedSVG on ImageSharpFixed {
66 tracedSVG
67 width
68 height
69 src
70 srcSet
71 srcWebp
72 srcSetWebp
73 }
74`
75
76/**
77 * Fixed images without the blurred base64 image
78 * @type {Fragment}
79 */
80export const GatsbyImageSharpFixed_noBase64 = graphql`
81 fragment GatsbyImageSharpFixed_noBase64 on ImageSharpFixed {
82 width
83 height
84 src
85 srcSet
86 }
87`
88
89/**
90 * Fixed images without the blurred base64 image preferring Webp
91 * @type {Fragment}
92 */
93export const GatsbyImageSharpFixed_withWebp_noBase64 = graphql`
94 fragment GatsbyImageSharpFixed_withWebp_noBase64 on ImageSharpFixed {
95 width
96 height
97 src
98 srcSet
99 srcWebp
100 srcSetWebp
101 }
102`
103
104/**
105 * The simplest set of fields for fluid images
106 * @type {Fragment}
107 */
108export const GatsbyImageSharpFluid = graphql`
109 fragment GatsbyImageSharpFluid on ImageSharpFluid {
110 base64
111 aspectRatio
112 src
113 srcSet
114 sizes
115 }
116`
117
118/**
119 * Presentation sizes to make sure a fluid container does not overflow
120 * @type {Fragment}
121 */
122export const GatsbyImageSharpFluidLimitPresentationSize = graphql`
123 fragment GatsbyImageSharpFluidLimitPresentationSize on ImageSharpFluid {
124 maxHeight: presentationHeight
125 maxWidth: presentationWidth
126 }
127`
128
129/**
130 * Traced SVG fluid images
131 * @type {Fragment}
132 */
133export const GatsbyImageSharpFluid_tracedSVG = graphql`
134 fragment GatsbyImageSharpFluid_tracedSVG on ImageSharpFluid {
135 tracedSVG
136 aspectRatio
137 src
138 srcSet
139 sizes
140 }
141`
142
143/**
144 * Fluid images that prefer Webp
145 * @type {Fragment}
146 */
147export const GatsbyImageSharpFluid_withWebp = graphql`
148 fragment GatsbyImageSharpFluid_withWebp on ImageSharpFluid {
149 base64
150 aspectRatio
151 src
152 srcSet
153 srcWebp
154 srcSetWebp
155 sizes
156 }
157`
158
159/**
160 * Traced SVG fluid images that prefer Webp
161 * @type {Fragment}
162 */
163export const GatsbyImageSharpFluid_withWebp_tracedSVG = graphql`
164 fragment GatsbyImageSharpFluid_withWebp_tracedSVG on ImageSharpFluid {
165 tracedSVG
166 aspectRatio
167 src
168 srcSet
169 srcWebp
170 srcSetWebp
171 sizes
172 }
173`
174
175/**
176 * Traced SVG fluid images without the blurred base64 image
177 * @type {Fragment}
178 */
179export const GatsbyImageSharpFluid_noBase64 = graphql`
180 fragment GatsbyImageSharpFluid_noBase64 on ImageSharpFluid {
181 aspectRatio
182 src
183 srcSet
184 sizes
185 }
186`
187
188/**
189 * Traced SVG fluid images without the blurred base64 image that prefer Webp
190 * @type {Fragment}
191 */
192export const GatsbyImageSharpFluid_withWebp_noBase64 = graphql`
193 fragment GatsbyImageSharpFluid_withWebp_noBase64 on ImageSharpFluid {
194 aspectRatio
195 src
196 srcSet
197 srcWebp
198 srcSetWebp
199 sizes
200 }
201`
202
203// TODO: in v3 remove these legacy fragments
204export const GatsbyImageSharpResolutions = graphql`
205 fragment GatsbyImageSharpResolutions on ImageSharpResolutions {
206 base64
207 width
208 height
209 src
210 srcSet
211 }
212`
213
214export const GatsbyImageSharpResolutions_tracedSVG = graphql`
215 fragment GatsbyImageSharpResolutions_tracedSVG on ImageSharpResolutions {
216 tracedSVG
217 width
218 height
219 src
220 srcSet
221 }
222`
223
224export const GatsbyImageSharpResolutions_withWebp = graphql`
225 fragment GatsbyImageSharpResolutions_withWebp on ImageSharpResolutions {
226 base64
227 width
228 height
229 src
230 srcSet
231 srcWebp
232 srcSetWebp
233 }
234`
235
236export const GatsbyImageSharpResolutions_withWebp_tracedSVG = graphql`
237 fragment GatsbyImageSharpResolutions_withWebp_tracedSVG on ImageSharpResolutions {
238 tracedSVG
239 width
240 height
241 src
242 srcSet
243 srcWebp
244 srcSetWebp
245 }
246`
247
248export const GatsbyImageSharpResolutions_noBase64 = graphql`
249 fragment GatsbyImageSharpResolutions_noBase64 on ImageSharpResolutions {
250 width
251 height
252 src
253 srcSet
254 }
255`
256
257export const GatsbyImageSharpResolutions_withWebp_noBase64 = graphql`
258 fragment GatsbyImageSharpResolutions_withWebp_noBase64 on ImageSharpResolutions {
259 width
260 height
261 src
262 srcSet
263 srcWebp
264 srcSetWebp
265 }
266`
267
268export const GatsbyImageSharpSizes = graphql`
269 fragment GatsbyImageSharpSizes on ImageSharpSizes {
270 base64
271 aspectRatio
272 src
273 srcSet
274 sizes
275 }
276`
277
278export const GatsbyImageSharpSizes_tracedSVG = graphql`
279 fragment GatsbyImageSharpSizes_tracedSVG on ImageSharpSizes {
280 tracedSVG
281 aspectRatio
282 src
283 srcSet
284 sizes
285 }
286`
287
288export const GatsbyImageSharpSizes_withWebp = graphql`
289 fragment GatsbyImageSharpSizes_withWebp on ImageSharpSizes {
290 base64
291 aspectRatio
292 src
293 srcSet
294 srcWebp
295 srcSetWebp
296 sizes
297 }
298`
299
300export const GatsbyImageSharpSizes_withWebp_tracedSVG = graphql`
301 fragment GatsbyImageSharpSizes_withWebp_tracedSVG on ImageSharpSizes {
302 tracedSVG
303 aspectRatio
304 src
305 srcSet
306 srcWebp
307 srcSetWebp
308 sizes
309 }
310`
311
312export const GatsbyImageSharpSizes_noBase64 = graphql`
313 fragment GatsbyImageSharpSizes_noBase64 on ImageSharpSizes {
314 aspectRatio
315 src
316 srcSet
317 sizes
318 }
319`
320
321export const GatsbyImageSharpSizes_withWebp_noBase64 = graphql`
322 fragment GatsbyImageSharpSizes_withWebp_noBase64 on ImageSharpSizes {
323 aspectRatio
324 src
325 srcSet
326 srcWebp
327 srcSetWebp
328 sizes
329 }
330`