@sanity/schema 6.6.0-next.72 → 6.6.0-next.74

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 +17 -17
  2. package/package.json +5 -5
@@ -23,7 +23,8 @@ declare class DescriptorConverter {
23
23
  * If present, this will use an idle scheduler which records duration into this array.
24
24
  * This option will be ignored if the `scheduler` option is passed in.
25
25
  **/
26
- pauseDurations?: number[]; /** An explicit scheduler to do the work. */
26
+ pauseDurations?: number[];
27
+ /** An explicit scheduler to do the work. */
27
28
  scheduler?: Scheduler;
28
29
  }): Promise<SetSynchronization<RegistryType>>;
29
30
  }
@@ -111,10 +112,12 @@ interface BaseUploadSchemaOptions {
111
112
  * exclusive shape makes "both" and "neither" a compile-time error.
112
113
  */
113
114
  type TransportOptions = {
114
- /** Base URL for the bundled get-it transport. */baseUrl: string;
115
+ /** Base URL for the bundled get-it transport. */
116
+ baseUrl: string;
115
117
  requester?: never;
116
118
  } | {
117
- /** Bring-your-own transport. Use instead of `baseUrl` to control auth, retries, etc. */requester: DescriptorRequester;
119
+ /** Bring-your-own transport. Use instead of `baseUrl` to control auth, retries, etc. */
120
+ requester: DescriptorRequester;
118
121
  baseUrl?: never;
119
122
  };
120
123
  /**
@@ -381,17 +384,17 @@ declare const builtinTypes: ({
381
384
  type: string;
382
385
  title: string;
383
386
  readOnly: boolean;
384
- fieldset?: undefined;
385
387
  validation?: undefined;
386
388
  hidden?: undefined;
389
+ fieldset?: undefined;
387
390
  } | {
388
391
  name: string;
389
392
  type: string;
390
393
  title: string;
391
- fieldset?: undefined;
392
- readOnly?: undefined;
393
394
  validation?: undefined;
394
395
  hidden?: undefined;
396
+ fieldset?: undefined;
397
+ readOnly?: undefined;
395
398
  } | {
396
399
  name: string;
397
400
  type: string;
@@ -406,8 +409,8 @@ declare const builtinTypes: ({
406
409
  readOnly: boolean;
407
410
  hidden: boolean;
408
411
  fieldset: string;
409
- title?: undefined;
410
412
  validation?: undefined;
413
+ title?: undefined;
411
414
  } | {
412
415
  name: string;
413
416
  type: string;
@@ -460,17 +463,17 @@ declare const builtinTypes: ({
460
463
  type: string;
461
464
  title: string;
462
465
  readOnly: boolean;
463
- fieldset?: undefined;
464
466
  validation?: undefined;
465
467
  hidden?: undefined;
468
+ fieldset?: undefined;
466
469
  } | {
467
470
  name: string;
468
471
  type: string;
469
472
  title: string;
470
- fieldset?: undefined;
471
- readOnly?: undefined;
472
473
  validation?: undefined;
473
474
  hidden?: undefined;
475
+ fieldset?: undefined;
476
+ readOnly?: undefined;
474
477
  } | {
475
478
  name: string;
476
479
  type: string;
@@ -480,21 +483,21 @@ declare const builtinTypes: ({
480
483
  validation: (Rule: import("@sanity/types").Rule) => import("@sanity/types").Rule;
481
484
  hidden?: undefined;
482
485
  } | {
486
+ validation?: undefined;
483
487
  name: string;
484
488
  type: string;
485
489
  readOnly: boolean;
486
490
  hidden: boolean;
487
491
  fieldset: string;
488
492
  title?: undefined;
489
- validation?: undefined;
490
493
  } | {
494
+ validation?: undefined;
495
+ hidden?: undefined;
491
496
  name: string;
492
497
  type: string;
493
498
  title: string;
494
499
  readOnly: boolean;
495
500
  fieldset: string;
496
- validation?: undefined;
497
- hidden?: undefined;
498
501
  })[];
499
502
  preview: {
500
503
  select: {
@@ -616,10 +619,7 @@ interface Options {
616
619
  /**
617
620
  * @internal
618
621
  */
619
- declare function validateSchema(schemaTypes: _FIXME_, {
620
- transformTypeVisitors,
621
- transformCommonVisitors
622
- }?: Options): {
622
+ declare function validateSchema(schemaTypes: _FIXME_, { transformTypeVisitors, transformCommonVisitors }?: Options): {
623
623
  get(typeName: string): any;
624
624
  has(typeName: string): boolean;
625
625
  getTypeNames(): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/schema",
3
- "version": "6.6.0-next.72",
3
+ "version": "6.6.0-next.74",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "cms",
@@ -50,7 +50,7 @@
50
50
  "leven": "^4.1.0",
51
51
  "lodash-es": "^4.18.1",
52
52
  "object-inspect": "^1.13.4",
53
- "@sanity/types": "6.6.0-next.72+1ffa33d09f"
53
+ "@sanity/types": "6.6.0-next.74+d9bbd709c4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@sanity/icons": "^5.1.0",
@@ -62,9 +62,9 @@
62
62
  "rimraf": "^6.1.3",
63
63
  "vite": "^8.1.5",
64
64
  "vitest": "^4.1.10",
65
- "@repo/package.config": "6.6.0-next.72+1ffa33d09f",
66
- "@repo/test-config": "6.6.0-next.72+1ffa33d09f",
67
- "@repo/tsconfig": "6.6.0-next.72+1ffa33d09f"
65
+ "@repo/package.config": "6.6.0-next.74+d9bbd709c4",
66
+ "@repo/test-config": "6.6.0-next.74+d9bbd709c4",
67
+ "@repo/tsconfig": "6.6.0-next.74+d9bbd709c4"
68
68
  },
69
69
  "browserslist": [
70
70
  "node >=22.12",