File tree Expand file tree Collapse file tree 7 files changed +11
-9
lines changed
Expand file tree Collapse file tree 7 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "npmClient" : " yarn" ,
33 "$schema" : " node_modules/lerna/schemas/lerna-schema.json" ,
4- "version" : " 1.4.4 "
4+ "version" : " 1.5.1 "
55}
Original file line number Diff line number Diff line change 11{
22 "name" : " @react-visual/contentful" ,
3- "version" : " 1.4.4 " ,
3+ "version" : " 1.5.1 " ,
44 "description" : " Image and video renderer for Contentful assets." ,
55 "author" : " Bukwild <info@bukwild.com>" ,
66 "license" : " MIT" ,
1616 "typecheck" : " tsc --noEmit"
1717 },
1818 "dependencies" : {
19- "@react-visual/react" : " ^1.4.0 "
19+ "@react-visual/react" : " ^1.5.1 "
2020 },
2121 "peerDependencies" : {
2222 "react" : " ^18"
Original file line number Diff line number Diff line change 11{
22 "name" : " @react-visual/next" ,
3- "version" : " 1.4.0 " ,
3+ "version" : " 1.5.1 " ,
44 "description" : " Image and video renderer for Next.js projects" ,
55 "author" : " Bukwild <info@bukwild.com>" ,
66 "license" : " MIT" ,
1616 "typecheck" : " tsc --noEmit"
1717 },
1818 "dependencies" : {
19- "@react-visual/react" : " ^1.4.0 "
19+ "@react-visual/react" : " ^1.5.1 "
2020 },
2121 "peerDependencies" : {
2222 "next" : " ^14" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @react-visual/react" ,
3- "version" : " 1.4.0 " ,
3+ "version" : " 1.5.1 " ,
44 "description" : " Image and video renderer for React projects" ,
55 "author" : " Bukwild <info@bukwild.com>" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export default function ReactVisual(props: ReactVisualProps): ReactNode {
3434 alt,
3535 className = "" ,
3636 style = { } ,
37+ noPoster,
3738 } = props ;
3839
3940 // If no asset, return nothing
@@ -86,7 +87,7 @@ export default function ReactVisual(props: ReactVisualProps): ReactNode {
8687 fit,
8788 position,
8889 priority,
89- noPoster : ! ! image , // Use `image` as poster frame
90+ noPoster : noPoster ?? ! ! image , // Use `image` as poster frame
9091 paused,
9192 onPause,
9293 onPlay,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ type AssetSrc = string | any;
66export type ReactVisualProps = {
77 image ?: AssetSrc ;
88 video ?: AssetSrc ;
9+ noPoster ?: boolean ;
910
1011 expand ?: boolean ;
1112 aspect ?: number | AspectCalculator ; // An explict aspect ratio
Original file line number Diff line number Diff line change 11{
22 "name" : " @react-visual/sanity-next" ,
3- "version" : " 1.4.0 " ,
3+ "version" : " 1.5.1 " ,
44 "description" : " Image and video renderer for Sanity + Next.js projects" ,
55 "author" : " Bukwild <info@bukwild.com>" ,
66 "license" : " MIT" ,
1616 "typecheck" : " tsc --noEmit"
1717 },
1818 "dependencies" : {
19- "@react-visual/next" : " ^1.4.0 " ,
19+ "@react-visual/next" : " ^1.5.1 " ,
2020 "@sanity/asset-utils" : " ^1" ,
2121 "@sanity/image-url" : " ^1"
2222 },
You can’t perform that action at this time.
0 commit comments