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

cosmic-components

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmic-components - npm Package Compare versions

Comparing version

to
0.0.6-alpha

@@ -82,3 +82,3 @@ /**

};
Image.template = "\n <div\n class=\"{{newStyles.image}}\"\n s-bind=\"(lazy && isBackground)\n ? {\n 'data-lazy-src': src,\n 'loading': 'lazy',\n ...nativeAttributes\n }\n : nativeAttributes\n \"\n on-click=\"onClick\"\n on-touchmove=\"onTouchmove\">\n <div s-if=\"hasContent\" class=\"{{newStyles.content}}\">\n <slot name=\"content\"></slot>\n </div>\n <div s-if=\"hasPlaceholder && loading\" class=\"{{newStyles.placeholder}}\">\n <slot name=\"placeholder\"></slot>\n </div>\n <div s-if=\"hasFallback && error\" class=\"{{newStyles.fallback}}\">\n <slot name=\"fallback\"></slot>\n </div>\n <img\n s-else-if=\"src\"\n s-bind=\"(lazy && !isBackground)\n ? {\n 'data-lazy-src': src,\n 'loading': 'lazy'\n }\n : {\n src: src\n }\n \"\n class=\"{{newStyles.img}}\"\n alt=\"{{alt}}\"\n width=\"{{width}}\"\n height=\"{{height}}\"\n style=\"{{objectFitValue}}\"\n on-load=\"onLoad\"\n on-error=\"onError\"\n />\n </div>\n ";
Image.template = "\n <div\n class=\"{{newStyles.image}}\"\n s-bind=\"(lazy && isBackground)\n ? {\n 'data-lazy-src': src,\n 'loading': 'lazy',\n ...nativeAttributes\n }\n : nativeAttributes\n \"\n on-click=\"onClick\"\n on-touchmove=\"onTouchmove\">\n <div s-if=\"hasContent\" class=\"{{newStyles.content}}\">\n <slot name=\"content\"></slot>\n </div>\n <div s-if=\"hasPlaceholder && loading\" class=\"{{newStyles.placeholder}}\">\n <slot name=\"placeholder\"></slot>\n </div>\n <div s-if=\"hasFallback && error\" class=\"{{newStyles.fallback}}\">\n <slot name=\"fallback\"></slot>\n </div>\n <img\n s-else-if=\"src && !isBackground\"\n s-bind=\"(lazy && !isBackground)\n ? {\n 'data-lazy-src': src,\n 'loading': 'lazy'\n }\n : {\n src: src\n }\n \"\n class=\"{{newStyles.img}}\"\n alt=\"{{alt}}\"\n width=\"{{width}}\"\n height=\"{{height}}\"\n style=\"{{objectFitValue}}\"\n on-load=\"onLoad\"\n on-error=\"onError\"\n />\n </div>\n ";
Image.computed = __assign(__assign({}, Base_1.default.computed), { objectFitValue: function () {

@@ -85,0 +85,0 @@ var prefix = 'object-fit:';

{
"name": "cosmic-components",
"version": "0.0.5",
"version": "0.0.6-alpha",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "module": "./src/index.ts",

@@ -43,3 +43,3 @@ /**

<img
s-else-if="src"
s-else-if="src && !isBackground"
s-bind="(lazy && !isBackground)

@@ -46,0 +46,0 @@ ? {

@@ -26,4 +26,4 @@ import Base from '../Base';

static dataTypes: {
selected: import("san/types").ChainableDataTypeChecker;
pos: import("san/types").ChainableDataTypeChecker;
selected: import("san").ChainableDataTypeChecker;
pos: import("san").ChainableDataTypeChecker;
};

@@ -30,0 +30,0 @@ tag: number;

Sorry, the diff of this file is not supported yet