@sanity/types
Advanced tools
Comparing version 3.41.1 to 3.41.2-manifests.141
@@ -68,3 +68,3 @@ "use strict"; | ||
return isRecord$1(value) && typeof value._type == "string" && // block types can be named, so expect anything here. | ||
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !1) && ("style" in value ? typeof value.style == "string" : !0); | ||
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !0) && ("style" in value ? typeof value.style == "string" : !0); | ||
} | ||
@@ -71,0 +71,0 @@ function isPortableTextSpan(value) { |
@@ -66,3 +66,3 @@ function isObject(obj) { | ||
return isRecord$1(value) && typeof value._type == "string" && // block types can be named, so expect anything here. | ||
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !1) && ("style" in value ? typeof value.style == "string" : !0); | ||
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !0) && ("style" in value ? typeof value.style == "string" : !0); | ||
} | ||
@@ -69,0 +69,0 @@ function isPortableTextSpan(value) { |
@@ -68,3 +68,3 @@ "use strict"; | ||
return isRecord$1(value) && typeof value._type == "string" && // block types can be named, so expect anything here. | ||
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !1) && ("style" in value ? typeof value.style == "string" : !0); | ||
Array.isArray(value.children) && value.children.every((child) => isRecord$1(child)) && ("markDefs" in value ? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord$1(def)) : !0) && ("style" in value ? typeof value.style == "string" : !0); | ||
} | ||
@@ -71,0 +71,0 @@ function isPortableTextSpan(value) { |
{ | ||
"name": "@sanity/types", | ||
"version": "3.41.1", | ||
"version": "3.41.2-manifests.141+cd5f1f04f2", | ||
"description": "Type definitions for common Sanity data structures", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@sanity/client": "^6.17.2", | ||
"@sanity/client": "^6.18.2", | ||
"@types/react": "^18.0.25" | ||
@@ -58,6 +58,6 @@ }, | ||
"@jest/globals": "^29.7.0", | ||
"@repo/package.config": "3.41.1", | ||
"@repo/package.config": "3.43.0", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"gitHead": "9080f74661eae5eb1fedef537fd354d12dc5dee1" | ||
"gitHead": "cd5f1f04f28a123d80a6f9363a47df9d2d7e3054" | ||
} |
@@ -26,3 +26,3 @@ import {type PortableTextObject, type PortableTextSpan, type PortableTextTextBlock} from './types' | ||
? Array.isArray(value.markDefs) && value.markDefs.every((def) => isRecord(def)) | ||
: false) && | ||
: true) && | ||
('style' in value ? typeof value.style === 'string' : true) // optional property | ||
@@ -29,0 +29,0 @@ ) |
@@ -116,2 +116,3 @@ import {type ComponentType, type ReactNode} from 'react' | ||
i18nTitleKey?: string | ||
icon?: ReactNode | ComponentType | ||
} | ||
@@ -118,0 +119,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
403273
7392
1
1
Updated@sanity/client@^6.18.2