New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clay-sticker

Package Overview
Dependencies
Maintainers
4
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-sticker - npm Package Compare versions

Comparing version 2.0.0-rc.3 to 2.0.0-rc.4

63

lib/ClaySticker.soy.js

@@ -55,2 +55,3 @@ 'use strict';

opt_ijData = opt_ijData_deprecated || opt_ijData;
var $$temp;
opt_data = opt_data || {};

@@ -81,7 +82,10 @@ /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

var style = soy.asserts.assertType(opt_data.style == null || goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent, 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy26 = function attributes__soy26() {
$attributes(opt_data, null, opt_ijData);
var attributes__soy51 = function attributes__soy51() {
incrementalDom.attr('class', 'sticker sticker-' + (($$temp = style) == null ? 'primary' : $$temp) + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : ''));
if (id) {
incrementalDom.attr('id', id);
}
};
incrementalDom.elementOpenStart('span');
attributes__soy26();
attributes__soy51();
incrementalDom.elementOpenEnd();

@@ -174,3 +178,3 @@ $content(opt_data, null, opt_ijData);

var imageSrc = soy.asserts.assertType(goog.isString(opt_data.imageSrc) || opt_data.imageSrc instanceof goog.soy.data.SanitizedContent, 'imageSrc', opt_data.imageSrc, '!goog.soy.data.SanitizedContent|string');
var imageAttributes__soy72 = function imageAttributes__soy72() {
var imageAttributes__soy97 = function imageAttributes__soy97() {
incrementalDom.attr('alt', imageAlt);

@@ -181,3 +185,3 @@ incrementalDom.attr('class', 'sticker-img');

incrementalDom.elementOpenStart('img');
imageAttributes__soy72();
imageAttributes__soy97();
incrementalDom.elementOpenEnd();

@@ -198,49 +202,2 @@ incrementalDom.elementClose('img');

/**
* @param {$attributes.Params} opt_data
* @param {Object<string, *>=} opt_ijData
* @param {Object<string, *>=} opt_ijData_deprecated
* @return {void}
* @suppress {checkTypes}
*/
var $attributes = function $attributes(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;
var $$temp;
opt_data = opt_data || {};
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var elementClasses = soy.asserts.assertType(opt_data.elementClasses == null || goog.isString(opt_data.elementClasses) || opt_data.elementClasses instanceof goog.soy.data.SanitizedContent, 'elementClasses', opt_data.elementClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var id = soy.asserts.assertType(opt_data.id == null || goog.isString(opt_data.id) || opt_data.id instanceof goog.soy.data.SanitizedContent, 'id', opt_data.id, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {boolean|null|undefined} */
var outside = soy.asserts.assertType(opt_data.outside == null || goog.isBoolean(opt_data.outside) || opt_data.outside === 1 || opt_data.outside === 0, 'outside', opt_data.outside, 'boolean|null|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var position = soy.asserts.assertType(opt_data.position == null || goog.isString(opt_data.position) || opt_data.position instanceof goog.soy.data.SanitizedContent, 'position', opt_data.position, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var shape = soy.asserts.assertType(opt_data.shape == null || goog.isString(opt_data.shape) || opt_data.shape instanceof goog.soy.data.SanitizedContent, 'shape', opt_data.shape, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var size = soy.asserts.assertType(opt_data.size == null || goog.isString(opt_data.size) || opt_data.size instanceof goog.soy.data.SanitizedContent, 'size', opt_data.size, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var style = soy.asserts.assertType(opt_data.style == null || goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent, 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
incrementalDom.attr('class', 'sticker sticker-' + (($$temp = style) == null ? 'primary' : $$temp) + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : ''));
if (id) {
incrementalDom.attr('id', id);
}
};
exports.attributes = $attributes;
/**
* @typedef {{
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* outside: (boolean|null|undefined),
* position: (!goog.soy.data.SanitizedContent|null|string|undefined),
* shape: (!goog.soy.data.SanitizedContent|null|string|undefined),
* size: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}
*/
$attributes.Params;
if (goog.DEBUG) {
$attributes.soyTemplateName = 'ClaySticker.attributes';
}
exports.render.params = ["elementClasses", "icon", "id", "imageAlt", "imageSrc", "label", "outside", "position", "shape", "size", "spritemap", "style"];

@@ -252,4 +209,2 @@ exports.render.types = { "elementClasses": "string", "icon": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "label": "html|string", "outside": "bool", "position": "string", "shape": "string", "size": "string", "spritemap": "string", "style": "string" };

exports.image.types = { "imageAlt": "string", "imageSrc": "string" };
exports.attributes.params = ["elementClasses", "id", "outside", "position", "shape", "size", "style"];
exports.attributes.types = { "elementClasses": "string", "id": "string", "outside": "bool", "position": "string", "shape": "string", "size": "string", "style": "string" };
exports.templates = templates = exports;

@@ -256,0 +211,0 @@ return exports;

6

package.json
{
"name": "clay-sticker",
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"description": "Clay Sticker Component",

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

"dependencies": {
"clay-icon": "^2.0.0-rc.3",
"clay-icon": "^2.0.0-rc.4",
"metal": "^2.16.0",

@@ -45,3 +45,3 @@ "metal-component": "^2.16.0",

"browserslist-config-clay-components": "^2.0.0-rc.3",
"clay": "^2.0.0-rc.3",
"clay": "^2.0.0-rc.4",
"metal-dom": "^2.13.2",

@@ -48,0 +48,0 @@ "metal-tools-soy": "^6.0.0",

@@ -36,2 +36,3 @@ /* jshint ignore:start */

opt_ijData = opt_ijData_deprecated || opt_ijData;
var $$temp;
opt_data = opt_data || {};

@@ -62,7 +63,10 @@ /** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

var style = soy.asserts.assertType(opt_data.style == null || (goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent), 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy26 = function() {
$attributes(opt_data, null, opt_ijData);
var attributes__soy51 = function() {
incrementalDom.attr('class', 'sticker sticker-' + (($$temp = style) == null ? 'primary' : $$temp) + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : ''));
if (id) {
incrementalDom.attr('id', id);
}
};
incrementalDom.elementOpenStart('span');
attributes__soy26();
attributes__soy51();
incrementalDom.elementOpenEnd();

@@ -157,3 +161,3 @@ $content(opt_data, null, opt_ijData);

var imageSrc = soy.asserts.assertType(goog.isString(opt_data.imageSrc) || opt_data.imageSrc instanceof goog.soy.data.SanitizedContent, 'imageSrc', opt_data.imageSrc, '!goog.soy.data.SanitizedContent|string');
var imageAttributes__soy72 = function() {
var imageAttributes__soy97 = function() {
incrementalDom.attr('alt', imageAlt);

@@ -164,3 +168,3 @@ incrementalDom.attr('class', 'sticker-img');

incrementalDom.elementOpenStart('img');
imageAttributes__soy72();
imageAttributes__soy97();
incrementalDom.elementOpenEnd();

@@ -181,50 +185,2 @@ incrementalDom.elementClose('img');

/**
* @param {$attributes.Params} opt_data
* @param {Object<string, *>=} opt_ijData
* @param {Object<string, *>=} opt_ijData_deprecated
* @return {void}
* @suppress {checkTypes}
*/
var $attributes = function(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;
var $$temp;
opt_data = opt_data || {};
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var elementClasses = soy.asserts.assertType(opt_data.elementClasses == null || (goog.isString(opt_data.elementClasses) || opt_data.elementClasses instanceof goog.soy.data.SanitizedContent), 'elementClasses', opt_data.elementClasses, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var id = soy.asserts.assertType(opt_data.id == null || (goog.isString(opt_data.id) || opt_data.id instanceof goog.soy.data.SanitizedContent), 'id', opt_data.id, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {boolean|null|undefined} */
var outside = soy.asserts.assertType(opt_data.outside == null || (goog.isBoolean(opt_data.outside) || opt_data.outside === 1 || opt_data.outside === 0), 'outside', opt_data.outside, 'boolean|null|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var position = soy.asserts.assertType(opt_data.position == null || (goog.isString(opt_data.position) || opt_data.position instanceof goog.soy.data.SanitizedContent), 'position', opt_data.position, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var shape = soy.asserts.assertType(opt_data.shape == null || (goog.isString(opt_data.shape) || opt_data.shape instanceof goog.soy.data.SanitizedContent), 'shape', opt_data.shape, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var size = soy.asserts.assertType(opt_data.size == null || (goog.isString(opt_data.size) || opt_data.size instanceof goog.soy.data.SanitizedContent), 'size', opt_data.size, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */
var style = soy.asserts.assertType(opt_data.style == null || (goog.isString(opt_data.style) || opt_data.style instanceof goog.soy.data.SanitizedContent), 'style', opt_data.style, '!goog.soy.data.SanitizedContent|null|string|undefined');
incrementalDom.attr('class', 'sticker sticker-' + (($$temp = style) == null ? 'primary' : $$temp) + (position ? (outside ? ' sticker-outside' : '') + ' sticker-' + position : '') + (shape == 'circle' ? ' rounded-circle' : '') + (size ? ' sticker-' + size : '') + (elementClasses ? ' ' + elementClasses : ''));
if (id) {
incrementalDom.attr('id', id);
}
};
exports.attributes = $attributes;
/**
* @typedef {{
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* outside: (boolean|null|undefined),
* position: (!goog.soy.data.SanitizedContent|null|string|undefined),
* shape: (!goog.soy.data.SanitizedContent|null|string|undefined),
* size: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* }}
*/
$attributes.Params;
if (goog.DEBUG) {
$attributes.soyTemplateName = 'ClaySticker.attributes';
}
exports.render.params = ["elementClasses","icon","id","imageAlt","imageSrc","label","outside","position","shape","size","spritemap","style"];

@@ -236,4 +192,2 @@ exports.render.types = {"elementClasses":"string","icon":"string","id":"string","imageAlt":"string","imageSrc":"string","label":"html|string","outside":"bool","position":"string","shape":"string","size":"string","spritemap":"string","style":"string"};

exports.image.types = {"imageAlt":"string","imageSrc":"string"};
exports.attributes.params = ["elementClasses","id","outside","position","shape","size","style"];
exports.attributes.types = {"elementClasses":"string","id":"string","outside":"bool","position":"string","shape":"string","size":"string","style":"string"};
templates = exports;

@@ -240,0 +194,0 @@ return exports;

Sorry, the diff of this file is not supported yet

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