@hashicorp/react-vertical-text-block-list
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -8,2 +8,3 @@ 'use strict'; | ||
var LinkWrap = _interopDefault(require('@hashicorp/react-link-wrap')); | ||
var Image = _interopDefault(require('@hashicorp/react-image')); | ||
@@ -26,6 +27,3 @@ function VerticalTextBlockList(_ref) { | ||
className: "header" | ||
}, item.logo ? React.createElement("img", { | ||
src: item.logo.url, | ||
alt: item.logo.alt | ||
}) : React.createElement("h6", null, item.header)), React.createElement("div", { | ||
}, item.logo ? React.createElement(Image, item.logo) : React.createElement("h6", null, item.header)), React.createElement("div", { | ||
className: "body-text", | ||
@@ -32,0 +30,0 @@ dangerouslySetInnerHTML: { |
import React from 'react' | ||
import marked from 'marked' | ||
import LinkWrap from '@hashicorp/react-link-wrap' | ||
import Image from '@hashicorp/react-image' | ||
@@ -13,7 +14,3 @@ export default function VerticalTextBlockList({ data, centerText, Link }) { | ||
<div className="header"> | ||
{item.logo ? ( | ||
<img src={item.logo.url} alt={item.logo.alt} /> | ||
) : ( | ||
<h6>{item.header}</h6> | ||
)} | ||
{item.logo ? <Image {...item.logo} /> : <h6>{item.header}</h6>} | ||
</div> | ||
@@ -20,0 +17,0 @@ <div |
{ | ||
"name": "@hashicorp/react-vertical-text-block-list", | ||
"description": "Vertical block list of links", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"author": "Hashicorp - Mike Wickett", | ||
"dependencies": { | ||
"@hashicorp/react-image": "^2.0.0", | ||
"@hashicorp/react-link-wrap": "^0.0.2", | ||
@@ -21,3 +22,3 @@ "marked": "^0.7.0" | ||
}, | ||
"gitHead": "5e68e058130d4c2fa54017babdae06568acff6be" | ||
"gitHead": "2820c17206084ce62de83b43a65d4f407418e519" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
28986
4
369
+ Added@hashicorp/react-image@2.0.4(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addedquery-string@5.1.1(transitive)
+ Addedstrict-uri-encode@1.1.0(transitive)