@sanity/cli 6.2.1 → 6.3.1
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/README.md +111 -120
- package/dist/SanityHelp.js +38 -0
- package/dist/SanityHelp.js.map +1 -1
- package/dist/actions/auth/login/getProvider.js +9 -4
- package/dist/actions/auth/login/getProvider.js.map +1 -1
- package/dist/actions/auth/login/getSSOProvider.js +21 -2
- package/dist/actions/auth/login/getSSOProvider.js.map +1 -1
- package/dist/actions/auth/login/login.js +5 -4
- package/dist/actions/auth/login/login.js.map +1 -1
- package/dist/actions/build/buildApp.js +1 -0
- package/dist/actions/build/buildApp.js.map +1 -1
- package/dist/actions/build/buildStaticFiles.js +2 -1
- package/dist/actions/build/buildStaticFiles.js.map +1 -1
- package/dist/actions/build/renderDocument.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js +2 -2
- package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/types.js.map +1 -1
- package/dist/actions/build/writeSanityRuntime.js +3 -2
- package/dist/actions/build/writeSanityRuntime.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +53 -3
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/findUserApplicationForStudio.js +10 -4
- package/dist/actions/deploy/findUserApplicationForStudio.js.map +1 -1
- package/dist/actions/dev/startAppDevServer.js +2 -0
- package/dist/actions/dev/startAppDevServer.js.map +1 -1
- package/dist/actions/init/git.js +5 -2
- package/dist/actions/init/git.js.map +1 -1
- package/dist/actions/init/remoteTemplate.js +3 -1
- package/dist/actions/init/remoteTemplate.js.map +1 -1
- package/dist/actions/init/templates/nextjs/index.js +1 -1
- package/dist/actions/init/templates/nextjs/index.js.map +1 -1
- package/dist/actions/manifest/extractAppManifest.js +3 -1
- package/dist/actions/manifest/extractAppManifest.js.map +1 -1
- package/dist/actions/telemetry/setConsent.js +6 -2
- package/dist/actions/telemetry/setConsent.js.map +1 -1
- package/dist/commands/datasets/alias/create.js +0 -4
- package/dist/commands/datasets/alias/create.js.map +1 -1
- package/dist/commands/datasets/alias/delete.js +1 -5
- package/dist/commands/datasets/alias/delete.js.map +1 -1
- package/dist/commands/datasets/alias/link.js +0 -4
- package/dist/commands/datasets/alias/link.js.map +1 -1
- package/dist/commands/datasets/alias/unlink.js +0 -4
- package/dist/commands/datasets/alias/unlink.js.map +1 -1
- package/dist/commands/datasets/copy.js +1 -1
- package/dist/commands/datasets/copy.js.map +1 -1
- package/dist/commands/datasets/import.js +34 -5
- package/dist/commands/datasets/import.js.map +1 -1
- package/dist/commands/deploy.js +3 -0
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/init.js +10 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.js +14 -2
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +6 -8
- package/dist/commands/logout.js.map +1 -1
- package/dist/hooks/prerun/setupTelemetry.js +1 -1
- package/dist/hooks/prerun/setupTelemetry.js.map +1 -1
- package/dist/server/devServer.js +2 -1
- package/dist/server/devServer.js.map +1 -1
- package/dist/util/compareDependencyVersions.js +3 -1
- package/dist/util/compareDependencyVersions.js.map +1 -1
- package/dist/util/createExpiringConfig.js +0 -3
- package/dist/util/createExpiringConfig.js.map +1 -1
- package/dist/util/getCliVersion.js +3 -1
- package/dist/util/getCliVersion.js.map +1 -1
- package/dist/util/telemetry/logger.js +13 -0
- package/dist/util/telemetry/logger.js.map +1 -1
- package/oclif.manifest.json +103 -97
- package/package.json +26 -26
- package/dist/actions/graphql/__tests__/fixtures/many-self-refs.js +0 -540
- package/dist/actions/graphql/__tests__/fixtures/many-self-refs.js.map +0 -1
- package/dist/actions/graphql/__tests__/fixtures/test-studio.js +0 -1143
- package/dist/actions/graphql/__tests__/fixtures/test-studio.js.map +0 -1
- package/dist/actions/graphql/__tests__/fixtures/union-refs.js +0 -591
- package/dist/actions/graphql/__tests__/fixtures/union-refs.js.map +0 -1
- package/dist/actions/graphql/__tests__/helpers.js +0 -23
- package/dist/actions/graphql/__tests__/helpers.js.map +0 -1
- package/dist/actions/manifest/__tests__/resolveSchemaIcon.test.js +0 -157
- package/dist/actions/manifest/__tests__/resolveSchemaIcon.test.js.map +0 -1
- package/dist/actions/manifest/__tests__/testHelpers.js +0 -21
- package/dist/actions/manifest/__tests__/testHelpers.js.map +0 -1
- package/dist/actions/media/__tests__/createMockClient.js +0 -32
- package/dist/actions/media/__tests__/createMockClient.js.map +0 -1
|
@@ -1,540 +0,0 @@
|
|
|
1
|
-
import { Schema } from '@sanity/schema';
|
|
2
|
-
const repeat = (times, callback)=>Array.from({
|
|
3
|
-
length: times
|
|
4
|
-
}, (_, index)=>callback(index));
|
|
5
|
-
const allSchemaTypeNames = repeat(40, (index)=>`schemaType${index}`);
|
|
6
|
-
const numReferenceFields = 2;
|
|
7
|
-
const schemaTypes = allSchemaTypeNames.map((name, index)=>({
|
|
8
|
-
fields: repeat(numReferenceFields, (fieldIndex)=>({
|
|
9
|
-
name: `reference${fieldIndex}`,
|
|
10
|
-
title: `Reference ${fieldIndex}`,
|
|
11
|
-
to: allSchemaTypeNames.map((schemaTypeName)=>({
|
|
12
|
-
type: schemaTypeName
|
|
13
|
-
})),
|
|
14
|
-
type: 'reference'
|
|
15
|
-
})),
|
|
16
|
-
name,
|
|
17
|
-
title: `Schema type ${index}`,
|
|
18
|
-
type: 'document'
|
|
19
|
-
}));
|
|
20
|
-
export default Schema.compile({
|
|
21
|
-
types: [
|
|
22
|
-
{
|
|
23
|
-
fields: [
|
|
24
|
-
{
|
|
25
|
-
name: 'lat',
|
|
26
|
-
title: 'Latitude',
|
|
27
|
-
type: 'number'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'lng',
|
|
31
|
-
title: 'Longitude',
|
|
32
|
-
type: 'number'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'alt',
|
|
36
|
-
title: 'Altitude',
|
|
37
|
-
type: 'number'
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
name: 'geopoint',
|
|
41
|
-
title: 'Geographical Point',
|
|
42
|
-
type: 'object'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
fields: [
|
|
46
|
-
{
|
|
47
|
-
name: 'originalFilename',
|
|
48
|
-
readOnly: true,
|
|
49
|
-
title: 'Original file name',
|
|
50
|
-
type: 'string'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'label',
|
|
54
|
-
title: 'Label',
|
|
55
|
-
type: 'string'
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'title',
|
|
59
|
-
title: 'Title',
|
|
60
|
-
type: 'string'
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'description',
|
|
64
|
-
title: 'Description',
|
|
65
|
-
type: 'string'
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'altText',
|
|
69
|
-
title: 'Alternative text',
|
|
70
|
-
type: 'string'
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
fieldset: 'system',
|
|
74
|
-
name: 'sha1hash',
|
|
75
|
-
readOnly: true,
|
|
76
|
-
title: 'SHA1 hash',
|
|
77
|
-
type: 'string'
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
fieldset: 'system',
|
|
81
|
-
name: 'extension',
|
|
82
|
-
readOnly: true,
|
|
83
|
-
title: 'File extension',
|
|
84
|
-
type: 'string'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
fieldset: 'system',
|
|
88
|
-
name: 'mimeType',
|
|
89
|
-
readOnly: true,
|
|
90
|
-
title: 'Mime type',
|
|
91
|
-
type: 'string'
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
fieldset: 'system',
|
|
95
|
-
name: 'size',
|
|
96
|
-
readOnly: true,
|
|
97
|
-
title: 'File size in bytes',
|
|
98
|
-
type: 'number'
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
fieldset: 'system',
|
|
102
|
-
name: 'assetId',
|
|
103
|
-
readOnly: true,
|
|
104
|
-
title: 'Asset ID',
|
|
105
|
-
type: 'string'
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
fieldset: 'system',
|
|
109
|
-
name: 'path',
|
|
110
|
-
readOnly: true,
|
|
111
|
-
title: 'Path',
|
|
112
|
-
type: 'string'
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
fieldset: 'system',
|
|
116
|
-
name: 'url',
|
|
117
|
-
readOnly: true,
|
|
118
|
-
title: 'Url',
|
|
119
|
-
type: 'string'
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
fieldset: 'system',
|
|
123
|
-
name: 'source',
|
|
124
|
-
readOnly: true,
|
|
125
|
-
title: 'Source',
|
|
126
|
-
type: 'sanity.assetSourceData'
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
fieldsets: [
|
|
130
|
-
{
|
|
131
|
-
description: 'These fields are managed by the system and not editable',
|
|
132
|
-
name: 'system',
|
|
133
|
-
title: 'System fields'
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
name: 'sanity.fileAsset',
|
|
137
|
-
orderings: [
|
|
138
|
-
{
|
|
139
|
-
by: [
|
|
140
|
-
{
|
|
141
|
-
direction: 'desc',
|
|
142
|
-
field: 'size'
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
name: 'fileSizeDesc',
|
|
146
|
-
title: 'File size'
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
preview: {
|
|
150
|
-
prepare (doc) {
|
|
151
|
-
return {
|
|
152
|
-
subtitle: `${doc.mimeType} (${(doc.size / 1024 / 1024).toFixed(2)} MB)`,
|
|
153
|
-
title: doc.title || (doc.path ?? '').split('/').at(-1)
|
|
154
|
-
};
|
|
155
|
-
},
|
|
156
|
-
select: {
|
|
157
|
-
mimeType: 'mimeType',
|
|
158
|
-
path: 'path',
|
|
159
|
-
size: 'size',
|
|
160
|
-
title: 'originalFilename'
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
title: 'File',
|
|
164
|
-
type: 'document'
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
fields: [
|
|
168
|
-
{
|
|
169
|
-
name: 'x',
|
|
170
|
-
type: 'number'
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: 'y',
|
|
174
|
-
type: 'number'
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: 'height',
|
|
178
|
-
type: 'number'
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
name: 'width',
|
|
182
|
-
type: 'number'
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
name: 'sanity.imageHotspot',
|
|
186
|
-
title: 'Image hotspot',
|
|
187
|
-
type: 'object'
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
fields: [
|
|
191
|
-
{
|
|
192
|
-
name: 'location',
|
|
193
|
-
type: 'geopoint'
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
fieldset: 'extra',
|
|
197
|
-
name: 'dimensions',
|
|
198
|
-
title: 'Dimensions',
|
|
199
|
-
type: 'sanity.imageDimensions'
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
fieldset: 'extra',
|
|
203
|
-
name: 'palette',
|
|
204
|
-
title: 'Palette',
|
|
205
|
-
type: 'sanity.imagePalette'
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
name: 'lqip',
|
|
209
|
-
readOnly: true,
|
|
210
|
-
title: 'LQIP (Low-Quality Image Placeholder)',
|
|
211
|
-
type: 'string'
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: 'blurHash',
|
|
215
|
-
readOnly: true,
|
|
216
|
-
title: 'BlurHash',
|
|
217
|
-
type: 'string'
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
name: 'thumbHash',
|
|
221
|
-
readOnly: true,
|
|
222
|
-
title: 'ThumbHash',
|
|
223
|
-
type: 'string'
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: 'hasAlpha',
|
|
227
|
-
readOnly: true,
|
|
228
|
-
title: 'Has alpha channel',
|
|
229
|
-
type: 'boolean'
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
name: 'isOpaque',
|
|
233
|
-
readOnly: true,
|
|
234
|
-
title: 'Is opaque',
|
|
235
|
-
type: 'boolean'
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
fieldsets: [
|
|
239
|
-
{
|
|
240
|
-
name: 'extra',
|
|
241
|
-
options: {
|
|
242
|
-
collapsable: true
|
|
243
|
-
},
|
|
244
|
-
title: 'Extra metadata…'
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
name: 'sanity.imageMetadata',
|
|
248
|
-
title: 'Image metadata',
|
|
249
|
-
type: 'object'
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
fields: [
|
|
253
|
-
{
|
|
254
|
-
description: 'A canonical name for the source this asset is originating from',
|
|
255
|
-
name: 'name',
|
|
256
|
-
title: 'Source name',
|
|
257
|
-
type: 'string'
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
description: 'The unique ID for the asset within the originating source so you can programatically find back to it',
|
|
261
|
-
name: 'id',
|
|
262
|
-
title: 'Asset Source ID',
|
|
263
|
-
type: 'string'
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
description: 'A URL to find more information about this asset in the originating source',
|
|
267
|
-
name: 'url',
|
|
268
|
-
title: 'Asset information URL',
|
|
269
|
-
type: 'string'
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
name: 'sanity.assetSourceData',
|
|
273
|
-
title: 'Asset Source Data',
|
|
274
|
-
type: 'object'
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
fields: [
|
|
278
|
-
{
|
|
279
|
-
name: 'top',
|
|
280
|
-
type: 'number'
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
name: 'bottom',
|
|
284
|
-
type: 'number'
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
name: 'left',
|
|
288
|
-
type: 'number'
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
name: 'right',
|
|
292
|
-
type: 'number'
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
name: 'sanity.imageCrop',
|
|
296
|
-
title: 'Image crop',
|
|
297
|
-
type: 'object'
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
fields: [
|
|
301
|
-
{
|
|
302
|
-
name: 'height',
|
|
303
|
-
readOnly: true,
|
|
304
|
-
title: 'Height',
|
|
305
|
-
type: 'number'
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
name: 'width',
|
|
309
|
-
readOnly: true,
|
|
310
|
-
title: 'Width',
|
|
311
|
-
type: 'number'
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
name: 'aspectRatio',
|
|
315
|
-
readOnly: true,
|
|
316
|
-
title: 'Aspect ratio',
|
|
317
|
-
type: 'number'
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
name: 'sanity.imageDimensions',
|
|
321
|
-
title: 'Image dimensions',
|
|
322
|
-
type: 'object'
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
fields: [
|
|
326
|
-
{
|
|
327
|
-
name: 'darkMuted',
|
|
328
|
-
title: 'Dark Muted',
|
|
329
|
-
type: 'sanity.imagePaletteSwatch'
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
name: 'lightVibrant',
|
|
333
|
-
title: 'Light Vibrant',
|
|
334
|
-
type: 'sanity.imagePaletteSwatch'
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
name: 'darkVibrant',
|
|
338
|
-
title: 'Dark Vibrant',
|
|
339
|
-
type: 'sanity.imagePaletteSwatch'
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
name: 'vibrant',
|
|
343
|
-
title: 'Vibrant',
|
|
344
|
-
type: 'sanity.imagePaletteSwatch'
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
name: 'dominant',
|
|
348
|
-
title: 'Dominant',
|
|
349
|
-
type: 'sanity.imagePaletteSwatch'
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
name: 'lightMuted',
|
|
353
|
-
title: 'Light Muted',
|
|
354
|
-
type: 'sanity.imagePaletteSwatch'
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
name: 'muted',
|
|
358
|
-
title: 'Muted',
|
|
359
|
-
type: 'sanity.imagePaletteSwatch'
|
|
360
|
-
}
|
|
361
|
-
],
|
|
362
|
-
name: 'sanity.imagePalette',
|
|
363
|
-
title: 'Image palette',
|
|
364
|
-
type: 'object'
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
fields: [
|
|
368
|
-
{
|
|
369
|
-
name: 'background',
|
|
370
|
-
readOnly: true,
|
|
371
|
-
title: 'Background',
|
|
372
|
-
type: 'string'
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
name: 'foreground',
|
|
376
|
-
readOnly: true,
|
|
377
|
-
title: 'Foreground',
|
|
378
|
-
type: 'string'
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
name: 'population',
|
|
382
|
-
readOnly: true,
|
|
383
|
-
title: 'Population',
|
|
384
|
-
type: 'number'
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
name: 'title',
|
|
388
|
-
readOnly: true,
|
|
389
|
-
title: 'String',
|
|
390
|
-
type: 'string'
|
|
391
|
-
}
|
|
392
|
-
],
|
|
393
|
-
name: 'sanity.imagePaletteSwatch',
|
|
394
|
-
title: 'Image palette swatch',
|
|
395
|
-
type: 'object'
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
fields: [
|
|
399
|
-
{
|
|
400
|
-
name: 'originalFilename',
|
|
401
|
-
readOnly: true,
|
|
402
|
-
title: 'Original file name',
|
|
403
|
-
type: 'string'
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
name: 'label',
|
|
407
|
-
title: 'Label',
|
|
408
|
-
type: 'string'
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
name: 'title',
|
|
412
|
-
title: 'Title',
|
|
413
|
-
type: 'string'
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
name: 'description',
|
|
417
|
-
title: 'Description',
|
|
418
|
-
type: 'string'
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
name: 'altText',
|
|
422
|
-
title: 'Alternative text',
|
|
423
|
-
type: 'string'
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
fieldset: 'system',
|
|
427
|
-
name: 'sha1hash',
|
|
428
|
-
readOnly: true,
|
|
429
|
-
title: 'SHA1 hash',
|
|
430
|
-
type: 'string'
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
fieldset: 'system',
|
|
434
|
-
name: 'extension',
|
|
435
|
-
readOnly: true,
|
|
436
|
-
title: 'File extension',
|
|
437
|
-
type: 'string'
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
fieldset: 'system',
|
|
441
|
-
name: 'mimeType',
|
|
442
|
-
readOnly: true,
|
|
443
|
-
title: 'Mime type',
|
|
444
|
-
type: 'string'
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
fieldset: 'system',
|
|
448
|
-
name: 'size',
|
|
449
|
-
readOnly: true,
|
|
450
|
-
title: 'File size in bytes',
|
|
451
|
-
type: 'number'
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
fieldset: 'system',
|
|
455
|
-
name: 'assetId',
|
|
456
|
-
readOnly: true,
|
|
457
|
-
title: 'Asset ID',
|
|
458
|
-
type: 'string'
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
fieldset: 'system',
|
|
462
|
-
hidden: true,
|
|
463
|
-
name: 'uploadId',
|
|
464
|
-
readOnly: true,
|
|
465
|
-
type: 'string'
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
fieldset: 'system',
|
|
469
|
-
name: 'path',
|
|
470
|
-
readOnly: true,
|
|
471
|
-
title: 'Path',
|
|
472
|
-
type: 'string'
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
fieldset: 'system',
|
|
476
|
-
name: 'url',
|
|
477
|
-
readOnly: true,
|
|
478
|
-
title: 'Url',
|
|
479
|
-
type: 'string'
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
name: 'metadata',
|
|
483
|
-
title: 'Metadata',
|
|
484
|
-
type: 'sanity.imageMetadata'
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
fieldset: 'system',
|
|
488
|
-
name: 'source',
|
|
489
|
-
readOnly: true,
|
|
490
|
-
title: 'Source',
|
|
491
|
-
type: 'sanity.assetSourceData'
|
|
492
|
-
}
|
|
493
|
-
],
|
|
494
|
-
fieldsets: [
|
|
495
|
-
{
|
|
496
|
-
description: 'These fields are managed by the system and not editable',
|
|
497
|
-
name: 'system',
|
|
498
|
-
title: 'System fields'
|
|
499
|
-
}
|
|
500
|
-
],
|
|
501
|
-
name: 'sanity.imageAsset',
|
|
502
|
-
orderings: [
|
|
503
|
-
{
|
|
504
|
-
by: [
|
|
505
|
-
{
|
|
506
|
-
direction: 'desc',
|
|
507
|
-
field: 'size'
|
|
508
|
-
}
|
|
509
|
-
],
|
|
510
|
-
name: 'fileSizeDesc',
|
|
511
|
-
title: 'File size'
|
|
512
|
-
}
|
|
513
|
-
],
|
|
514
|
-
preview: {
|
|
515
|
-
prepare (doc) {
|
|
516
|
-
return {
|
|
517
|
-
media: {
|
|
518
|
-
asset: {
|
|
519
|
-
_ref: doc.id
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
subtitle: `${doc.mimeType} (${(doc.size / 1024 / 1024).toFixed(2)} MB)`,
|
|
523
|
-
title: doc.title || (doc.path ?? '').split('/').at(-1)
|
|
524
|
-
};
|
|
525
|
-
},
|
|
526
|
-
select: {
|
|
527
|
-
id: '_id',
|
|
528
|
-
mimeType: 'mimeType',
|
|
529
|
-
size: 'size',
|
|
530
|
-
title: 'originalFilename'
|
|
531
|
-
}
|
|
532
|
-
},
|
|
533
|
-
title: 'Image',
|
|
534
|
-
type: 'document'
|
|
535
|
-
},
|
|
536
|
-
...schemaTypes
|
|
537
|
-
]
|
|
538
|
-
});
|
|
539
|
-
|
|
540
|
-
//# sourceMappingURL=many-self-refs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/actions/graphql/__tests__/fixtures/many-self-refs.ts"],"sourcesContent":["import {Schema} from '@sanity/schema'\n\nconst repeat = <T>(times: number, callback: (index: number) => T) =>\n Array.from({length: times}, (_, index) => callback(index))\n\nconst allSchemaTypeNames = repeat(40, (index) => `schemaType${index}`)\n\nconst numReferenceFields = 2\n\nconst schemaTypes = allSchemaTypeNames.map((name, index) => ({\n fields: repeat(numReferenceFields, (fieldIndex) => ({\n name: `reference${fieldIndex}`,\n title: `Reference ${fieldIndex}`,\n to: allSchemaTypeNames.map((schemaTypeName) => ({type: schemaTypeName})),\n type: 'reference',\n })),\n name,\n title: `Schema type ${index}`,\n type: 'document',\n}))\n\nexport default Schema.compile({\n types: [\n {\n fields: [\n {\n name: 'lat',\n title: 'Latitude',\n type: 'number',\n },\n {\n name: 'lng',\n title: 'Longitude',\n type: 'number',\n },\n {\n name: 'alt',\n title: 'Altitude',\n type: 'number',\n },\n ],\n name: 'geopoint',\n title: 'Geographical Point',\n type: 'object',\n },\n {\n fields: [\n {\n name: 'originalFilename',\n readOnly: true,\n title: 'Original file name',\n type: 'string',\n },\n {\n name: 'label',\n title: 'Label',\n type: 'string',\n },\n {\n name: 'title',\n title: 'Title',\n type: 'string',\n },\n {\n name: 'description',\n title: 'Description',\n type: 'string',\n },\n {\n name: 'altText',\n title: 'Alternative text',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'sha1hash',\n readOnly: true,\n title: 'SHA1 hash',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'extension',\n readOnly: true,\n title: 'File extension',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'mimeType',\n readOnly: true,\n title: 'Mime type',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'size',\n readOnly: true,\n title: 'File size in bytes',\n type: 'number',\n },\n {\n fieldset: 'system',\n name: 'assetId',\n readOnly: true,\n title: 'Asset ID',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'path',\n readOnly: true,\n title: 'Path',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'url',\n readOnly: true,\n title: 'Url',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'source',\n readOnly: true,\n title: 'Source',\n type: 'sanity.assetSourceData',\n },\n ],\n fieldsets: [\n {\n description: 'These fields are managed by the system and not editable',\n name: 'system',\n title: 'System fields',\n },\n ],\n name: 'sanity.fileAsset',\n orderings: [\n {\n by: [{direction: 'desc', field: 'size'}],\n name: 'fileSizeDesc',\n title: 'File size',\n },\n ],\n preview: {\n prepare(doc: Record<string, unknown>) {\n return {\n subtitle: `${doc.mimeType} (${((doc.size as number) / 1024 / 1024).toFixed(2)} MB)`,\n title: (doc.title as string) || ((doc.path as string) ?? '').split('/').at(-1),\n }\n },\n select: {\n mimeType: 'mimeType',\n path: 'path',\n size: 'size',\n title: 'originalFilename',\n },\n },\n title: 'File',\n type: 'document',\n },\n {\n fields: [\n {\n name: 'x',\n type: 'number',\n },\n {\n name: 'y',\n type: 'number',\n },\n {\n name: 'height',\n type: 'number',\n },\n {\n name: 'width',\n type: 'number',\n },\n ],\n name: 'sanity.imageHotspot',\n title: 'Image hotspot',\n type: 'object',\n },\n {\n fields: [\n {\n name: 'location',\n type: 'geopoint',\n },\n {\n fieldset: 'extra',\n name: 'dimensions',\n title: 'Dimensions',\n type: 'sanity.imageDimensions',\n },\n {\n fieldset: 'extra',\n name: 'palette',\n title: 'Palette',\n type: 'sanity.imagePalette',\n },\n {\n name: 'lqip',\n readOnly: true,\n title: 'LQIP (Low-Quality Image Placeholder)',\n type: 'string',\n },\n {\n name: 'blurHash',\n readOnly: true,\n title: 'BlurHash',\n type: 'string',\n },\n {\n name: 'thumbHash',\n readOnly: true,\n title: 'ThumbHash',\n type: 'string',\n },\n {\n name: 'hasAlpha',\n readOnly: true,\n title: 'Has alpha channel',\n type: 'boolean',\n },\n {\n name: 'isOpaque',\n readOnly: true,\n title: 'Is opaque',\n type: 'boolean',\n },\n ],\n fieldsets: [\n {\n name: 'extra',\n options: {\n collapsable: true,\n },\n title: 'Extra metadata…',\n },\n ],\n name: 'sanity.imageMetadata',\n title: 'Image metadata',\n type: 'object',\n },\n {\n fields: [\n {\n description: 'A canonical name for the source this asset is originating from',\n name: 'name',\n title: 'Source name',\n type: 'string',\n },\n {\n description:\n 'The unique ID for the asset within the originating source so you can programatically find back to it',\n name: 'id',\n title: 'Asset Source ID',\n type: 'string',\n },\n {\n description: 'A URL to find more information about this asset in the originating source',\n name: 'url',\n title: 'Asset information URL',\n type: 'string',\n },\n ],\n name: 'sanity.assetSourceData',\n title: 'Asset Source Data',\n type: 'object',\n },\n {\n fields: [\n {\n name: 'top',\n type: 'number',\n },\n {\n name: 'bottom',\n type: 'number',\n },\n {\n name: 'left',\n type: 'number',\n },\n {\n name: 'right',\n type: 'number',\n },\n ],\n name: 'sanity.imageCrop',\n title: 'Image crop',\n type: 'object',\n },\n {\n fields: [\n {name: 'height', readOnly: true, title: 'Height', type: 'number'},\n {name: 'width', readOnly: true, title: 'Width', type: 'number'},\n {name: 'aspectRatio', readOnly: true, title: 'Aspect ratio', type: 'number'},\n ],\n name: 'sanity.imageDimensions',\n title: 'Image dimensions',\n type: 'object',\n },\n {\n fields: [\n {name: 'darkMuted', title: 'Dark Muted', type: 'sanity.imagePaletteSwatch'},\n {name: 'lightVibrant', title: 'Light Vibrant', type: 'sanity.imagePaletteSwatch'},\n {name: 'darkVibrant', title: 'Dark Vibrant', type: 'sanity.imagePaletteSwatch'},\n {name: 'vibrant', title: 'Vibrant', type: 'sanity.imagePaletteSwatch'},\n {name: 'dominant', title: 'Dominant', type: 'sanity.imagePaletteSwatch'},\n {name: 'lightMuted', title: 'Light Muted', type: 'sanity.imagePaletteSwatch'},\n {name: 'muted', title: 'Muted', type: 'sanity.imagePaletteSwatch'},\n ],\n name: 'sanity.imagePalette',\n title: 'Image palette',\n type: 'object',\n },\n {\n fields: [\n {name: 'background', readOnly: true, title: 'Background', type: 'string'},\n {name: 'foreground', readOnly: true, title: 'Foreground', type: 'string'},\n {name: 'population', readOnly: true, title: 'Population', type: 'number'},\n {name: 'title', readOnly: true, title: 'String', type: 'string'},\n ],\n name: 'sanity.imagePaletteSwatch',\n title: 'Image palette swatch',\n type: 'object',\n },\n {\n fields: [\n {\n name: 'originalFilename',\n readOnly: true,\n title: 'Original file name',\n type: 'string',\n },\n {\n name: 'label',\n title: 'Label',\n type: 'string',\n },\n {\n name: 'title',\n title: 'Title',\n type: 'string',\n },\n {\n name: 'description',\n title: 'Description',\n type: 'string',\n },\n {\n name: 'altText',\n title: 'Alternative text',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'sha1hash',\n readOnly: true,\n title: 'SHA1 hash',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'extension',\n readOnly: true,\n title: 'File extension',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'mimeType',\n readOnly: true,\n title: 'Mime type',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'size',\n readOnly: true,\n title: 'File size in bytes',\n type: 'number',\n },\n {\n fieldset: 'system',\n name: 'assetId',\n readOnly: true,\n title: 'Asset ID',\n type: 'string',\n },\n {\n fieldset: 'system',\n hidden: true,\n name: 'uploadId',\n readOnly: true,\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'path',\n readOnly: true,\n title: 'Path',\n type: 'string',\n },\n {\n fieldset: 'system',\n name: 'url',\n readOnly: true,\n title: 'Url',\n type: 'string',\n },\n {\n name: 'metadata',\n title: 'Metadata',\n type: 'sanity.imageMetadata',\n },\n {\n fieldset: 'system',\n name: 'source',\n readOnly: true,\n title: 'Source',\n type: 'sanity.assetSourceData',\n },\n ],\n fieldsets: [\n {\n description: 'These fields are managed by the system and not editable',\n name: 'system',\n title: 'System fields',\n },\n ],\n name: 'sanity.imageAsset',\n orderings: [\n {\n by: [{direction: 'desc', field: 'size'}],\n name: 'fileSizeDesc',\n title: 'File size',\n },\n ],\n preview: {\n prepare(doc: Record<string, unknown>) {\n return {\n media: {asset: {_ref: doc.id}},\n subtitle: `${doc.mimeType} (${((doc.size as number) / 1024 / 1024).toFixed(2)} MB)`,\n title: (doc.title as string) || ((doc.path as string) ?? '').split('/').at(-1),\n }\n },\n select: {\n id: '_id',\n mimeType: 'mimeType',\n size: 'size',\n title: 'originalFilename',\n },\n },\n title: 'Image',\n type: 'document',\n },\n ...schemaTypes,\n ],\n})\n"],"names":["Schema","repeat","times","callback","Array","from","length","_","index","allSchemaTypeNames","numReferenceFields","schemaTypes","map","name","fields","fieldIndex","title","to","schemaTypeName","type","compile","types","readOnly","fieldset","fieldsets","description","orderings","by","direction","field","preview","prepare","doc","subtitle","mimeType","size","toFixed","path","split","at","select","options","collapsable","hidden","media","asset","_ref","id"],"mappings":"AAAA,SAAQA,MAAM,QAAO,iBAAgB;AAErC,MAAMC,SAAS,CAAIC,OAAeC,WAChCC,MAAMC,IAAI,CAAC;QAACC,QAAQJ;IAAK,GAAG,CAACK,GAAGC,QAAUL,SAASK;AAErD,MAAMC,qBAAqBR,OAAO,IAAI,CAACO,QAAU,CAAC,UAAU,EAAEA,OAAO;AAErE,MAAME,qBAAqB;AAE3B,MAAMC,cAAcF,mBAAmBG,GAAG,CAAC,CAACC,MAAML,QAAW,CAAA;QAC3DM,QAAQb,OAAOS,oBAAoB,CAACK,aAAgB,CAAA;gBAClDF,MAAM,CAAC,SAAS,EAAEE,YAAY;gBAC9BC,OAAO,CAAC,UAAU,EAAED,YAAY;gBAChCE,IAAIR,mBAAmBG,GAAG,CAAC,CAACM,iBAAoB,CAAA;wBAACC,MAAMD;oBAAc,CAAA;gBACrEC,MAAM;YACR,CAAA;QACAN;QACAG,OAAO,CAAC,YAAY,EAAER,OAAO;QAC7BW,MAAM;IACR,CAAA;AAEA,eAAenB,OAAOoB,OAAO,CAAC;IAC5BC,OAAO;QACL;YACEP,QAAQ;gBACN;oBACED,MAAM;oBACNG,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEN,MAAM;oBACNG,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEN,MAAM;oBACNG,OAAO;oBACPG,MAAM;gBACR;aACD;YACDN,MAAM;YACNG,OAAO;YACPG,MAAM;QACR;QACA;YACEL,QAAQ;gBACN;oBACED,MAAM;oBACNS,UAAU;oBACVN,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEN,MAAM;oBACNG,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEN,MAAM;oBACNG,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEN,MAAM;oBACNG,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEN,MAAM;oBACNG,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEI,UAAU;oBACVV,MAAM;oBACNS,UAAU;oBACVN,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEI,UAAU;oBACVV,MAAM;oBACNS,UAAU;oBACVN,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEI,UAAU;oBACVV,MAAM;oBACNS,UAAU;oBACVN,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEI,UAAU;oBACVV,MAAM;oBACNS,UAAU;oBACVN,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEI,UAAU;oBACVV,MAAM;oBACNS,UAAU;oBACVN,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEI,UAAU;oBACVV,MAAM;oBACNS,UAAU;oBACVN,OAAO;oBACPG,MAAM;gBACR;gBACA;oBACEI,UA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