Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hashicorp/hashi-callouts

Package Overview
Dependencies
Maintainers
12
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashicorp/hashi-callouts - npm Package Compare versions

Comparing version 2.0.6 to 2.1.0

37

dist/index.js

@@ -10,2 +10,30 @@ 'use strict';

var _require = require('preact'),
h = _require.h;
function CaratIcon() {
return h(
"svg",
{
width: "15",
height: "9",
viewBox: "0 0 15 9",
fill: "none",
xmlns: "http://www.w3.org/2000/svg"
},
h("line", {
x1: "0.5",
y1: "4.5",
x2: "13.5",
y2: "4.5",
stroke: "#1563FF",
strokeLinecap: "round"
}),
h("path", {
d: "M10.3536 0.646447C10.1583 0.451184 9.84171 0.451184 9.64645 0.646447C9.45118 0.841709 9.45118 1.15829 9.64645 1.35355L10.3536 0.646447ZM13.5 4.5L13.8536 4.85355L14.2071 4.5L13.8536 4.14645L13.5 4.5ZM9.64645 7.64645C9.45118 7.84171 9.45118 8.15829 9.64645 8.35355C9.84171 8.54882 10.1583 8.54882 10.3536 8.35355L9.64645 7.64645ZM9.64645 1.35355L13.1464 4.85355L13.8536 4.14645L10.3536 0.646447L9.64645 1.35355ZM13.1464 4.14645L9.64645 7.64645L10.3536 8.35355L13.8536 4.85355L13.1464 4.14645Z",
fill: "#1563FF"
})
);
}
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -66,6 +94,6 @@

var getCalloutButton = function getCalloutButton(link) {
var getCalloutButton = function getCalloutButton(link, theme) {
return preact.h(
'div',
{ 'class': 'callout-button' },
{ 'class': 'callout-button ' + (theme || '') },
preact.h(

@@ -75,3 +103,4 @@ 'span',

link.title
)
),
preact.h(CaratIcon, null)
);

@@ -94,3 +123,3 @@ };

getCalloutContent(item),
getCalloutButton(item.link)
getCalloutButton(item.link, data.theme)
),

@@ -97,0 +126,0 @@ !item.link && preact.h(

4

package.json
{
"name": "@hashicorp/hashi-callouts",
"description": "a set of three horizontally-aligned images paired with a short title and descriptive text.",
"version": "2.0.6",
"version": "2.1.0",
"author": "Hashicorp - Jeff Escalante",

@@ -21,3 +21,3 @@ "main": "dist",

},
"gitHead": "78236aa1b7f3adda5e4e3dd1d1ba8f084e1c24dc"
"gitHead": "63ae5285268e8b12c98d3a94ffe777bccfc4e423"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc