@sanity/types 4.10.0-next.6 → 4.10.0-next.61

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/index.d.mts CHANGED
@@ -3469,6 +3469,29 @@ export declare type SpanTextObjectField = {
3469
3469
  /** @beta */
3470
3470
  export declare type StrictDefinition = boolean | undefined
3471
3471
 
3472
+ /**
3473
+ * @internal
3474
+ */
3475
+ export declare interface StrictVersionLayeringOptions {
3476
+ /**
3477
+ * By default, version layering includes all document versions, regardless of their expected
3478
+ * publication time—or lack thereof. For example, it includes all ASAP and undecided versions,
3479
+ * despite ASAP and undecided versions having no fixed chronology. There is no way to determine
3480
+ * which ASAP or undecided version is expected to be published before another.
3481
+ *
3482
+ * It also includes any existing draft, which has no fixed chronology, either.
3483
+ *
3484
+ * This functionality is useful for listing all document versions in a deterministic order, but
3485
+ * doesn't accurately portray the upstream and downstream versions based on expected publication
3486
+ * time.
3487
+ *
3488
+ * In strict mode, version layering instead only includes versions that have a fixed chronology.
3489
+ * **Cross-version layering is only effective for scheduled versions, with all other
3490
+ * versions being layered directly onto the published version (if it exists).**
3491
+ */
3492
+ strict?: boolean
3493
+ }
3494
+
3472
3495
  /** @public */
3473
3496
  export declare interface StringDefinition extends BaseSchemaDefinition {
3474
3497
  type: 'string'
package/lib/index.d.ts CHANGED
@@ -3469,6 +3469,29 @@ export declare type SpanTextObjectField = {
3469
3469
  /** @beta */
3470
3470
  export declare type StrictDefinition = boolean | undefined
3471
3471
 
3472
+ /**
3473
+ * @internal
3474
+ */
3475
+ export declare interface StrictVersionLayeringOptions {
3476
+ /**
3477
+ * By default, version layering includes all document versions, regardless of their expected
3478
+ * publication time—or lack thereof. For example, it includes all ASAP and undecided versions,
3479
+ * despite ASAP and undecided versions having no fixed chronology. There is no way to determine
3480
+ * which ASAP or undecided version is expected to be published before another.
3481
+ *
3482
+ * It also includes any existing draft, which has no fixed chronology, either.
3483
+ *
3484
+ * This functionality is useful for listing all document versions in a deterministic order, but
3485
+ * doesn't accurately portray the upstream and downstream versions based on expected publication
3486
+ * time.
3487
+ *
3488
+ * In strict mode, version layering instead only includes versions that have a fixed chronology.
3489
+ * **Cross-version layering is only effective for scheduled versions, with all other
3490
+ * versions being layered directly onto the published version (if it exists).**
3491
+ */
3492
+ strict?: boolean
3493
+ }
3494
+
3472
3495
  /** @public */
3473
3496
  export declare interface StringDefinition extends BaseSchemaDefinition {
3474
3497
  type: 'string'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "4.10.0-next.6+c11fbe5e58",
3
+ "version": "4.10.0-next.61+a964a2419f",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "sanity",
@@ -40,7 +40,7 @@
40
40
  "lib"
41
41
  ],
42
42
  "dependencies": {
43
- "@sanity/client": "^7.11.1",
43
+ "@sanity/client": "^7.11.2",
44
44
  "@sanity/media-library-types": "^1.0.1"
45
45
  },
46
46
  "devDependencies": {
@@ -50,9 +50,9 @@
50
50
  "react": "^19.1.1",
51
51
  "rimraf": "^5.0.10",
52
52
  "vitest": "^3.2.4",
53
- "@repo/eslint-config": "4.10.0-next.6+c11fbe5e58",
54
- "@repo/test-config": "4.10.0-next.6+c11fbe5e58",
55
- "@repo/package.config": "4.10.0-next.6+c11fbe5e58"
53
+ "@repo/eslint-config": "4.10.0-next.61+a964a2419f",
54
+ "@repo/package.config": "4.10.0-next.61+a964a2419f",
55
+ "@repo/test-config": "4.10.0-next.61+a964a2419f"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@types/react": "18 || 19"