Socket
Socket
Sign inDemoInstall

@s-ui/react-atom-image

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/react-atom-image - npm Package Compare versions

Comparing version 2.14.0 to 2.15.0

11

lib/index.js
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["alt", "bgStyles", "decoding", "errorIcon", "errorText", "fetchpriority", "loading", "onError", "onLoad", "placeholder", "skeleton", "sources", "spinner"];
import { cloneElement, useCallback, useEffect, useRef, useState } from 'react';
import { useCallback, useEffect, useRef, useState } from 'react';
import cx from 'classnames';
import PropTypes from 'prop-types';
import Injector from '@s-ui/react-primitive-injector';
import ErrorImage from './ErrorImage.js';

@@ -75,5 +76,2 @@ import { BASE_CLASS, BASE_CLASS_FIGURE, CLASS_ERROR, CLASS_IMAGE, CLASS_PLACEHOLDER, CLASS_SKELETON, CLASS_SPINNER, DECODING, FETCHPRIORITY, LOADING } from './settings.js';

};
var spinnerExtended = spinner && /*#__PURE__*/cloneElement(spinner, {
className: CLASS_SPINNER
});
return /*#__PURE__*/_jsxs("div", {

@@ -98,3 +96,6 @@ className: classNames,

})
}), !error && isLoading && spinnerExtended, error && /*#__PURE__*/_jsx(ErrorImage, {
}), !error && isLoading && spinner && /*#__PURE__*/_jsx(Injector, {
classNames: CLASS_SPINNER,
children: spinner
}), error && /*#__PURE__*/_jsx(ErrorImage, {
className: CLASS_ERROR,

@@ -101,0 +102,0 @@ icon: errorIcon,

{
"name": "@s-ui/react-atom-image",
"version": "2.14.0",
"version": "2.15.0",
"description": "",

@@ -12,3 +12,4 @@ "main": "lib/index.js",

"dependencies": {
"@s-ui/component-dependencies": "1"
"@s-ui/component-dependencies": "1",
"@s-ui/react-primitive-injector": "1"
},

@@ -15,0 +16,0 @@ "keywords": [],

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