@sanity/types 6.5.1-next.7 → 6.6.0-next.19

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/index.d.ts +16 -3
  2. package/package.json +6 -6
package/lib/index.d.ts CHANGED
@@ -8,6 +8,12 @@ interface SanityDocument {
8
8
  _createdAt: string;
9
9
  _updatedAt: string;
10
10
  _rev: string;
11
+ /**
12
+ * System-managed attributes. Which fields are present depends on the document (e.g.
13
+ * `variant`/`scopeId` only exist on version documents, and documents predating the `_system`
14
+ * migration may carry only some of them), hence the partial shape.
15
+ */
16
+ _system?: Partial<DocumentSystem>;
11
17
  [key: string]: unknown;
12
18
  }
13
19
  /**
@@ -23,9 +29,12 @@ interface SanityDocumentLike {
23
29
  _createdAt?: string;
24
30
  _updatedAt?: string;
25
31
  _rev?: string;
26
- _system?: {
27
- delete?: boolean;
28
- };
32
+ /**
33
+ * System-managed attributes. Which fields are present depends on the document (e.g.
34
+ * `variant`/`scopeId` only exist on version documents, and documents predating the `_system`
35
+ * migration may carry only some of them), hence the partial shape.
36
+ */
37
+ _system?: Partial<DocumentSystem>;
29
38
  [key: string]: unknown;
30
39
  }
31
40
  /** @public */
@@ -69,6 +78,10 @@ interface DocumentSystem {
69
78
  * Available only for version documents.
70
79
  */
71
80
  scopeId?: string;
81
+ /**
82
+ * Set when the document is marked for unpublishing inside a release.
83
+ */
84
+ delete?: boolean;
72
85
  }
73
86
  /**
74
87
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "6.5.1-next.7",
3
+ "version": "6.6.0-next.19",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "cms",
@@ -34,7 +34,7 @@
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "dependencies": {
37
- "@sanity/client": "^7.23.0",
37
+ "@sanity/client": "^7.23.2",
38
38
  "@sanity/media-library-types": "^1.5.0"
39
39
  },
40
40
  "devDependencies": {
@@ -45,10 +45,10 @@
45
45
  "react": "^19.2.7",
46
46
  "rimraf": "^6.1.3",
47
47
  "vite": "^8.1.4",
48
- "vitest": "^4.1.9",
49
- "@repo/package.config": "6.5.1-next.7+3f9749b346",
50
- "@repo/tsconfig": "6.5.1-next.7+3f9749b346",
51
- "@repo/test-config": "6.5.1-next.7+3f9749b346"
48
+ "vitest": "^4.1.10",
49
+ "@repo/package.config": "6.6.0-next.19+4a9b96c702",
50
+ "@repo/test-config": "6.6.0-next.19+4a9b96c702",
51
+ "@repo/tsconfig": "6.6.0-next.19+4a9b96c702"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@types/react": "*"