@sanity/schema 5.28.1-next.4 → 5.28.1-next.6

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/lib/_internal.d.ts +10 -11
  2. package/package.json +7 -7
@@ -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";
@@ -242,15 +241,15 @@ declare const builtinTypes: ({
242
241
  title: string;
243
242
  validation?: undefined;
244
243
  hidden?: undefined;
245
- readOnly?: undefined;
246
244
  fieldset?: undefined;
245
+ readOnly?: 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: _$_sanity_types0.Rule) => _$_sanity_types0.Rule;
252
+ validation: (Rule: import("@sanity/types").Rule) => import("@sanity/types").Rule;
254
253
  hidden?: undefined;
255
254
  } | {
256
255
  name: string;
@@ -321,15 +320,15 @@ declare const builtinTypes: ({
321
320
  title: string;
322
321
  validation?: undefined;
323
322
  hidden?: undefined;
324
- readOnly?: undefined;
325
323
  fieldset?: undefined;
324
+ readOnly?: 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: _$_sanity_types0.Rule) => _$_sanity_types0.Rule;
331
+ validation: (Rule: import("@sanity/types").Rule) => import("@sanity/types").Rule;
333
332
  hidden?: undefined;
334
333
  } | {
335
334
  validation?: undefined;
@@ -356,7 +355,7 @@ declare const builtinTypes: ({
356
355
  size: string;
357
356
  media: string;
358
357
  };
359
- prepare(doc: Partial<_$_sanity_types0.SanityDocument>): {
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: _$_sanity_types0.Rule) => _$_sanity_types0.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
- title?: undefined;
400
- readOnly?: undefined;
401
- fieldset?: undefined;
402
398
  name: string;
403
399
  type: string;
404
- } | {
400
+ fieldset?: undefined;
401
+ title?: undefined;
405
402
  readOnly?: undefined;
403
+ } | {
406
404
  name: string;
407
405
  title: string;
408
406
  type: string;
409
407
  fieldset: string;
408
+ 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.28.1-next.4",
3
+ "version": "5.28.1-next.6",
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.28.1-next.4+4c3064b151"
52
+ "@sanity/types": "5.28.1-next.6+daf6c35123"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@sanity/icons": "^3.7.4",
56
- "@sanity/pkg-utils": "^10.4.15",
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/package.config": "5.28.1-next.4+4c3064b151",
65
- "@repo/eslint-config": "5.28.1-next.4+4c3064b151",
66
- "@repo/tsconfig": "5.28.1-next.4+4c3064b151",
67
- "@repo/test-config": "5.28.1-next.4+4c3064b151"
64
+ "@repo/test-config": "5.28.1-next.6+daf6c35123",
65
+ "@repo/eslint-config": "5.28.1-next.6+daf6c35123",
66
+ "@repo/tsconfig": "5.28.1-next.6+daf6c35123",
67
+ "@repo/package.config": "5.28.1-next.6+daf6c35123"
68
68
  },
69
69
  "browserslist": [
70
70
  "node >=20.19",