@sanity/types
Advanced tools
Comparing version 3.70.1-gdr.18 to 3.71.0
@@ -22,5 +22,2 @@ function isObject(obj) { | ||
} | ||
function isGlobalDocumentReference(reference) { | ||
return !isObject(reference) || typeof reference._ref != "string" ? !1 : reference._ref.split("/").length === 3; | ||
} | ||
function isValidationErrorMarker(marker) { | ||
@@ -212,3 +209,2 @@ return marker.level === "error"; | ||
isFileSchemaType, | ||
isGlobalDocumentReference, | ||
isImage, | ||
@@ -215,0 +211,0 @@ isImageSchemaType, |
@@ -24,5 +24,2 @@ "use strict"; | ||
} | ||
function isGlobalDocumentReference(reference) { | ||
return !isObject(reference) || typeof reference._ref != "string" ? !1 : reference._ref.split("/").length === 3; | ||
} | ||
function isValidationErrorMarker(marker) { | ||
@@ -213,3 +210,2 @@ return marker.level === "error"; | ||
exports.isFileSchemaType = isFileSchemaType; | ||
exports.isGlobalDocumentReference = isGlobalDocumentReference; | ||
exports.isImage = isImage; | ||
@@ -216,0 +212,0 @@ exports.isImageSchemaType = isImageSchemaType; |
{ | ||
"name": "@sanity/types", | ||
"version": "3.70.1-gdr.18+0005e72d9b", | ||
"version": "3.71.0", | ||
"description": "Type definitions for common Sanity data structures", | ||
@@ -52,7 +52,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@sanity/client": "6.25.0-alpha.0" | ||
"@sanity/client": "^6.25.0" | ||
}, | ||
"devDependencies": { | ||
"@repo/package.config": "3.70.0", | ||
"@repo/test-config": "3.70.0", | ||
"@repo/package.config": "3.71.0", | ||
"@repo/test-config": "3.71.0", | ||
"@sanity/insert-menu": "1.0.19", | ||
@@ -68,3 +68,3 @@ "@types/react": "^19.0.3", | ||
}, | ||
"gitHead": "0005e72d9b5e6751e48502b4b9e1cfc7aaa19205" | ||
"gitHead": "c506eb33042b5691b5828ae47e7fe761b5caac75" | ||
} |
export * from './assets' | ||
export * from './crossDatasetReference' | ||
export * from './documents' | ||
export * from './globalDocumentReference' | ||
export * from './images' | ||
@@ -6,0 +5,0 @@ export * from './markers' |
@@ -16,3 +16,2 @@ import {type ComponentType, type ReactNode} from 'react' | ||
type GeopointDefinition, | ||
type GlobalDocumentReferenceDefinition, | ||
type ImageDefinition, | ||
@@ -58,3 +57,2 @@ type NumberDefinition, | ||
crossDatasetReference: CrossDatasetReferenceDefinition | ||
globalDocumentReference: GlobalDocumentReferenceDefinition | ||
slug: SlugDefinition | ||
@@ -61,0 +59,0 @@ string: StringDefinition |
@@ -20,2 +20,34 @@ import {type InsertMenuOptions} from '@sanity/insert-menu' | ||
/** | ||
* Types of array actions that can be performed | ||
* @beta | ||
*/ | ||
export type ArrayActionName = | ||
/** | ||
* Add any item to the array at any position | ||
*/ | ||
| 'add' | ||
/** | ||
* Add item after an existing item | ||
*/ | ||
| 'addBefore' | ||
/** | ||
* Add item after an existing item | ||
*/ | ||
| 'addAfter' | ||
/** | ||
* Remove any item | ||
*/ | ||
| 'remove' | ||
/** | ||
* Duplicate item | ||
*/ | ||
| 'duplicate' | ||
/** | ||
* Copy item | ||
*/ | ||
| 'copy' | ||
/** @public */ | ||
@@ -39,2 +71,9 @@ export interface ArrayOptions<V = unknown> extends SearchConfiguration, BaseSchemaTypeOptions { | ||
treeEditing?: boolean | ||
/** | ||
* A list of array actions to disable | ||
* Possible options are defined by {@link ArrayActionName} | ||
* @beta | ||
*/ | ||
disableActions?: ArrayActionName[] | ||
} | ||
@@ -41,0 +80,0 @@ |
@@ -12,3 +12,2 @@ export * from './array' | ||
export * from './geopoint' | ||
export * from './globalDocumentReference' | ||
export * from './image' | ||
@@ -15,0 +14,0 @@ export * from './number' |
@@ -411,3 +411,3 @@ import {type SanityClient} from '@sanity/client' | ||
/** @deprecated Unused. Use the new field-level search config. */ | ||
__experimental_search: {path: (string | number)[]; weight: number; mapWith?: string}[] | ||
__experimental_search?: {path: (string | number)[]; weight: number; mapWith?: string}[] | ||
/** @alpha */ | ||
@@ -414,0 +414,0 @@ __experimental_omnisearch_visibility?: boolean |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
409391
83
7450
+ Added@sanity/client@6.27.2(transitive)
- Removed@sanity/client@6.25.0-alpha.0(transitive)
Updated@sanity/client@^6.25.0