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

clay-link

Package Overview
Dependencies
Maintainers
4
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-link - npm Package Compare versions

Comparing version 2.0.0-beta.8 to 2.0.0-rc.0

82

lib/ClayLink.soy.js

@@ -47,19 +47,3 @@ 'use strict';

/**
* @param {{
* ariaExpanded: (boolean|null|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$render.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -70,3 +54,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
var $render = function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -105,11 +89,11 @@ var $$temp;

var target = soy.asserts.assertType(opt_data.target == null || goog.isString(opt_data.target) || opt_data.target instanceof goog.soy.data.SanitizedContent, 'target', opt_data.target, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy19 = function attributes__soy19() {
var attributes__soy31 = function attributes__soy31() {
$attributes(opt_data, null, opt_ijData);
};
incrementalDom.elementOpenStart('a');
attributes__soy19();
attributes__soy31();
incrementalDom.elementOpenEnd();
$content({ icon: icon, iconAlignment: ($$temp = iconAlignment) == null ? 'left' : $$temp, imageAlt: imageAlt, imageSrc: imageSrc, label: label, spritemap: spritemap }, null, opt_ijData);
incrementalDom.elementClose('a');
}
};
exports.render = $render;

@@ -132,3 +116,3 @@ /**

* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -142,10 +126,3 @@ */

/**
* @param {{
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$content.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -156,3 +133,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
var $content = function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -189,3 +166,3 @@ var $$temp;

}
}
};
exports.content = $content;

@@ -199,3 +176,3 @@ /**

* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined)
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -209,6 +186,3 @@ */

/**
* @param {{
* icon: (!goog.soy.data.SanitizedContent|string),
* spritemap: (!goog.soy.data.SanitizedContent|string)
* }} opt_data
* @param {$icon.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -219,3 +193,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $icon(opt_data, opt_ijData, opt_ijData_deprecated) {
var $icon = function $icon(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -227,3 +201,3 @@ /** @type {!goog.soy.data.SanitizedContent|string} */

$templateAlias1({ spritemap: spritemap, symbol: icon }, null, opt_ijData);
}
};
exports.icon = $icon;

@@ -233,3 +207,3 @@ /**

* icon: (!goog.soy.data.SanitizedContent|string),
* spritemap: (!goog.soy.data.SanitizedContent|string)
* spritemap: (!goog.soy.data.SanitizedContent|string),
* }}

@@ -243,13 +217,3 @@ */

/**
* @param {{
* ariaExpanded: (boolean|null|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$attributes.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -260,3 +224,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $attributes(opt_data, opt_ijData, opt_ijData_deprecated) {
var $attributes = function $attributes(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -290,3 +254,3 @@ opt_data = opt_data || {};

}
var classes__soy110 = '';
var classes__soy127 = '';
var $tmp = null;

@@ -300,6 +264,6 @@ if (buttonStyle) {

}
classes__soy110 += $tmp;
classes__soy110 += elementClasses ? ' ' + elementClasses : '';
if (classes__soy110) {
incrementalDom.attr('class', classes__soy110);
classes__soy127 += $tmp;
classes__soy127 += elementClasses ? ' ' + elementClasses : '';
if (classes__soy127) {
incrementalDom.attr('class', classes__soy127);
}

@@ -318,3 +282,3 @@ if (download) {

}
}
};
exports.attributes = $attributes;

@@ -331,3 +295,3 @@ /**

* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -334,0 +298,0 @@ */

{
"name": "clay-link",
"version": "2.0.0-beta.8",
"version": "2.0.0-rc.0",
"description": "Clay Link Component",

@@ -30,4 +30,4 @@ "license": "BSD",

"dependencies": {
"clay-component": "^2.0.0-beta.8",
"clay-icon": "^2.0.0-beta.8",
"clay-component": "^2.0.0-rc.0",
"clay-icon": "^2.0.0-rc.0",
"metal": "^2.16.0",

@@ -46,5 +46,5 @@ "metal-component": "^2.16.0",

"browserslist-config-clay-components": "^1.0.0-alpha.2",
"clay": "^2.0.0-beta.8",
"clay": "^2.0.0-rc.0",
"metal-dom": "^2.16.0",
"metal-tools-soy": "^4.2.1",
"metal-tools-soy": "^5.0.0",
"webpack": "^3.0.0"

@@ -51,0 +51,0 @@ },

@@ -28,19 +28,3 @@ /* jshint ignore:start */

/**
* @param {{
* ariaExpanded: (boolean|null|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$render.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -51,3 +35,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
var $render = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -86,11 +70,11 @@ var $$temp;

var target = soy.asserts.assertType(opt_data.target == null || (goog.isString(opt_data.target) || opt_data.target instanceof goog.soy.data.SanitizedContent), 'target', opt_data.target, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy19 = function() {
var attributes__soy31 = function() {
$attributes(opt_data, null, opt_ijData);
};
incrementalDom.elementOpenStart('a');
attributes__soy19();
attributes__soy31();
incrementalDom.elementOpenEnd();
$content({icon: icon, iconAlignment: ($$temp = iconAlignment) == null ? 'left' : $$temp, imageAlt: imageAlt, imageSrc: imageSrc, label: label, spritemap: spritemap}, null, opt_ijData);
$content({icon: icon, iconAlignment: ($$temp = iconAlignment) == null ? 'left' : $$temp, imageAlt: imageAlt, imageSrc: imageSrc, label: label, spritemap: spritemap}, null, opt_ijData);
incrementalDom.elementClose('a');
}
};
exports.render = $render;

@@ -113,3 +97,3 @@ /**

* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -124,10 +108,3 @@ */

/**
* @param {{
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$content.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -138,3 +115,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
var $content = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -171,3 +148,3 @@ var $$temp;

}
}
};
exports.content = $content;

@@ -181,3 +158,3 @@ /**

* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined)
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -192,6 +169,3 @@ */

/**
* @param {{
* icon: (!goog.soy.data.SanitizedContent|string),
* spritemap: (!goog.soy.data.SanitizedContent|string)
* }} opt_data
* @param {$icon.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -202,3 +176,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $icon(opt_data, opt_ijData, opt_ijData_deprecated) {
var $icon = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -210,3 +184,3 @@ /** @type {!goog.soy.data.SanitizedContent|string} */

$templateAlias1({spritemap: spritemap, symbol: icon}, null, opt_ijData);
}
};
exports.icon = $icon;

@@ -216,3 +190,3 @@ /**

* icon: (!goog.soy.data.SanitizedContent|string),
* spritemap: (!goog.soy.data.SanitizedContent|string)
* spritemap: (!goog.soy.data.SanitizedContent|string),
* }}

@@ -227,13 +201,3 @@ */

/**
* @param {{
* ariaExpanded: (boolean|null|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {$attributes.Params} opt_data
* @param {Object<string, *>=} opt_ijData

@@ -244,3 +208,3 @@ * @param {Object<string, *>=} opt_ijData_deprecated

*/
function $attributes(opt_data, opt_ijData, opt_ijData_deprecated) {
var $attributes = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -274,16 +238,16 @@ opt_data = opt_data || {};

}
var classes__soy110 = '';
var classes__soy127 = '';
var $tmp = null;
if (buttonStyle) {
$tmp = 'btn btn-' + buttonStyle;
} else if (style) {
$tmp = 'link-' + style;
} else {
$tmp = '';
}
classes__soy110 += $tmp;
classes__soy110 += elementClasses ? ' ' + elementClasses : '';
if (classes__soy110) {
incrementalDom.attr('class', classes__soy110);
if (buttonStyle) {
$tmp = 'btn btn-' + buttonStyle;
} else if (style) {
$tmp = 'link-' + style;
} else {
$tmp = '';
}
classes__soy127 += $tmp;
classes__soy127 += elementClasses ? ' ' + elementClasses : '';
if (classes__soy127) {
incrementalDom.attr('class', classes__soy127);
}
if (download) {

@@ -301,3 +265,3 @@ incrementalDom.attr('download', download);

}
}
};
exports.attributes = $attributes;

@@ -314,3 +278,3 @@ /**

* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined)
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}

@@ -317,0 +281,0 @@ */

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