@sanity/block-content-to-react
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "@sanity/block-content-to-react", | ||
"description": "React component for transforming Sanity block content to React components", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"main": "lib/BlockContent.js", | ||
@@ -21,7 +21,7 @@ "scripts": { | ||
"dependencies": { | ||
"@sanity/block-content-to-hyperscript": "^2.0.5", | ||
"@sanity/block-content-to-hyperscript": "^2.0.6", | ||
"prop-types": "^15.6.2" | ||
}, | ||
"devDependencies": { | ||
"@sanity/block-content-tests": "^0.2.0", | ||
"@sanity/block-content-tests": "^0.3.0", | ||
"babel-cli": "^6.26.0", | ||
@@ -28,0 +28,0 @@ "babel-eslint": "^9.0.0", |
@@ -40,2 +40,6 @@ /* eslint-disable id-length, max-len, no-sync */ | ||
function ButtonSerializer(props) { | ||
return h(Text, {style: {borderColor: '#000'}}, props.node.text) | ||
} | ||
const commonProps = { | ||
@@ -45,3 +49,3 @@ projectId: '3do82whm', | ||
serializers: { | ||
types: {code: CodeSerializer}, | ||
types: {code: CodeSerializer, button: ButtonSerializer}, | ||
marks: {highlight: Highlight} | ||
@@ -48,0 +52,0 @@ } |
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
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
442
187523
18