@sanity/schema 5.28.1-next.5 → 5.29.0-next.7
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/lib/_internal.d.ts +18 -19
- package/package.json +7 -7
package/lib/_internal.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { a as SchemaValidationResult, i as ProblemPathTypeSegment, l as Schema$1, n as ProblemPathPropertySegment, o as TypeWithProblems, r as ProblemPathSegment, s as _FIXME_, t as ProblemPath } from "./_chunks-dts/typedefs.js";
|
|
2
2
|
import { SetSynchronization, SynchronizationRequest, SynchronizationResult } from "@sanity/descriptors";
|
|
3
|
-
import * as _$_sanity_types0 from "@sanity/types";
|
|
4
3
|
import { SanityDocumentLike, Schema, SchemaType, SchemaTypeDefinition, SchemaValidationProblem, SchemaValidationProblemGroup } from "@sanity/types";
|
|
5
4
|
import { ComponentType, ReactNode } from "react";
|
|
6
5
|
import { SchemaType as SchemaType$1 } from "groq-js";
|
|
@@ -233,24 +232,24 @@ declare const builtinTypes: ({
|
|
|
233
232
|
type: string;
|
|
234
233
|
title: string;
|
|
235
234
|
readOnly: boolean;
|
|
236
|
-
fieldset?: undefined;
|
|
237
235
|
validation?: undefined;
|
|
238
236
|
hidden?: undefined;
|
|
237
|
+
fieldset?: undefined;
|
|
239
238
|
} | {
|
|
240
239
|
name: string;
|
|
241
240
|
type: string;
|
|
242
241
|
title: string;
|
|
243
|
-
fieldset?: undefined;
|
|
244
|
-
readOnly?: undefined;
|
|
245
242
|
validation?: undefined;
|
|
246
243
|
hidden?: undefined;
|
|
244
|
+
readOnly?: undefined;
|
|
245
|
+
fieldset?: undefined;
|
|
247
246
|
} | {
|
|
248
247
|
name: string;
|
|
249
248
|
type: string;
|
|
250
249
|
title: string;
|
|
251
250
|
readOnly: boolean;
|
|
252
251
|
fieldset: string;
|
|
253
|
-
validation: (Rule:
|
|
252
|
+
validation: (Rule: import("@sanity/types").Rule) => import("@sanity/types").Rule;
|
|
254
253
|
hidden?: undefined;
|
|
255
254
|
} | {
|
|
256
255
|
name: string;
|
|
@@ -258,8 +257,8 @@ declare const builtinTypes: ({
|
|
|
258
257
|
readOnly: boolean;
|
|
259
258
|
hidden: boolean;
|
|
260
259
|
fieldset: string;
|
|
261
|
-
title?: undefined;
|
|
262
260
|
validation?: undefined;
|
|
261
|
+
title?: undefined;
|
|
263
262
|
} | {
|
|
264
263
|
name: string;
|
|
265
264
|
type: string;
|
|
@@ -312,41 +311,41 @@ declare const builtinTypes: ({
|
|
|
312
311
|
type: string;
|
|
313
312
|
title: string;
|
|
314
313
|
readOnly: boolean;
|
|
315
|
-
fieldset?: undefined;
|
|
316
314
|
validation?: undefined;
|
|
317
315
|
hidden?: undefined;
|
|
316
|
+
fieldset?: undefined;
|
|
318
317
|
} | {
|
|
319
318
|
name: string;
|
|
320
319
|
type: string;
|
|
321
320
|
title: string;
|
|
322
|
-
fieldset?: undefined;
|
|
323
|
-
readOnly?: undefined;
|
|
324
321
|
validation?: undefined;
|
|
325
322
|
hidden?: undefined;
|
|
323
|
+
readOnly?: undefined;
|
|
324
|
+
fieldset?: undefined;
|
|
326
325
|
} | {
|
|
327
326
|
name: string;
|
|
328
327
|
type: string;
|
|
329
328
|
title: string;
|
|
330
329
|
readOnly: boolean;
|
|
331
330
|
fieldset: string;
|
|
332
|
-
validation: (Rule:
|
|
331
|
+
validation: (Rule: import("@sanity/types").Rule) => import("@sanity/types").Rule;
|
|
333
332
|
hidden?: undefined;
|
|
334
333
|
} | {
|
|
334
|
+
validation?: undefined;
|
|
335
335
|
name: string;
|
|
336
336
|
type: string;
|
|
337
337
|
readOnly: boolean;
|
|
338
338
|
hidden: boolean;
|
|
339
339
|
fieldset: string;
|
|
340
340
|
title?: undefined;
|
|
341
|
-
validation?: undefined;
|
|
342
341
|
} | {
|
|
342
|
+
validation?: undefined;
|
|
343
|
+
hidden?: undefined;
|
|
343
344
|
name: string;
|
|
344
345
|
type: string;
|
|
345
346
|
title: string;
|
|
346
347
|
readOnly: boolean;
|
|
347
348
|
fieldset: string;
|
|
348
|
-
validation?: undefined;
|
|
349
|
-
hidden?: undefined;
|
|
350
349
|
})[];
|
|
351
350
|
preview: {
|
|
352
351
|
select: {
|
|
@@ -356,7 +355,7 @@ declare const builtinTypes: ({
|
|
|
356
355
|
size: string;
|
|
357
356
|
media: string;
|
|
358
357
|
};
|
|
359
|
-
prepare(doc: Partial<
|
|
358
|
+
prepare(doc: Partial<import("@sanity/types").SanityDocument>): {
|
|
360
359
|
title: {};
|
|
361
360
|
media: {
|
|
362
361
|
asset: {
|
|
@@ -382,7 +381,7 @@ declare const builtinTypes: ({
|
|
|
382
381
|
fields: {
|
|
383
382
|
name: string;
|
|
384
383
|
type: string;
|
|
385
|
-
validation: (Rule:
|
|
384
|
+
validation: (Rule: import("@sanity/types").Rule) => import("@sanity/types").Rule;
|
|
386
385
|
}[];
|
|
387
386
|
} | {
|
|
388
387
|
name: string;
|
|
@@ -396,17 +395,17 @@ declare const builtinTypes: ({
|
|
|
396
395
|
};
|
|
397
396
|
}[];
|
|
398
397
|
fields: ({
|
|
399
|
-
name: string;
|
|
400
|
-
type: string;
|
|
401
|
-
fieldset?: undefined;
|
|
402
398
|
title?: undefined;
|
|
403
399
|
readOnly?: undefined;
|
|
400
|
+
fieldset?: undefined;
|
|
401
|
+
name: string;
|
|
402
|
+
type: string;
|
|
404
403
|
} | {
|
|
404
|
+
readOnly?: undefined;
|
|
405
405
|
name: string;
|
|
406
406
|
title: string;
|
|
407
407
|
type: string;
|
|
408
408
|
fieldset: string;
|
|
409
|
-
readOnly?: undefined;
|
|
410
409
|
} | {
|
|
411
410
|
fieldset?: undefined;
|
|
412
411
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/schema",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.29.0-next.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"leven": "^3.1.0",
|
|
50
50
|
"lodash-es": "^4.18.1",
|
|
51
51
|
"object-inspect": "^1.13.4",
|
|
52
|
-
"@sanity/types": "5.
|
|
52
|
+
"@sanity/types": "5.29.0-next.7+21c6530752"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@sanity/icons": "^3.7.4",
|
|
56
|
-
"@sanity/pkg-utils": "^10.
|
|
56
|
+
"@sanity/pkg-utils": "^10.5.1",
|
|
57
57
|
"@types/lodash-es": "^4.17.12",
|
|
58
58
|
"@types/object-inspect": "^1.13.0",
|
|
59
59
|
"@types/react": "^19.2.11",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"eslint": "^9.39.2",
|
|
62
62
|
"rimraf": "^6.1.3",
|
|
63
63
|
"vitest": "^4.1.4",
|
|
64
|
-
"@repo/
|
|
65
|
-
"@repo/
|
|
66
|
-
"@repo/
|
|
67
|
-
"@repo/
|
|
64
|
+
"@repo/package.config": "5.29.0-next.7+21c6530752",
|
|
65
|
+
"@repo/test-config": "5.29.0-next.7+21c6530752",
|
|
66
|
+
"@repo/tsconfig": "5.29.0-next.7+21c6530752",
|
|
67
|
+
"@repo/eslint-config": "5.29.0-next.7+21c6530752"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"node >=20.19",
|