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

rc-image

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-image - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

2

es/Image.d.ts
import * as React from 'react';
import { GetContainer } from 'rc-util/lib/PortalWrapper';
import { PreviewProps } from './Preview';
import PreviewGroup from './PreviewGroup';

@@ -10,2 +11,3 @@ export interface ImagePreviewType {

mask?: React.ReactNode;
icons?: PreviewProps['icons'];
}

@@ -12,0 +14,0 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder' | 'onClick'> {

6

es/Image.js

@@ -54,3 +54,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

getPreviewContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,
previewMask = _ref2.mask;
previewMask = _ref2.mask,
icons = _ref2.icons;

@@ -207,3 +208,4 @@ var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc;

alt: alt,
getContainer: getPreviewContainer
getContainer: getPreviewContainer,
icons: icons
}));

@@ -210,0 +212,0 @@ };

import * as React from 'react';
import { GetContainer } from 'rc-util/lib/PortalWrapper';
import { PreviewProps } from './Preview';
import PreviewGroup from './PreviewGroup';

@@ -10,2 +11,3 @@ export interface ImagePreviewType {

mask?: React.ReactNode;
icons?: PreviewProps['icons'];
}

@@ -12,0 +14,0 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder' | 'onClick'> {

@@ -75,3 +75,4 @@ "use strict";

getPreviewContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer,
previewMask = _ref2.mask;
previewMask = _ref2.mask,
icons = _ref2.icons;

@@ -228,3 +229,4 @@ var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc;

alt: alt,
getContainer: getPreviewContainer
getContainer: getPreviewContainer,
icons: icons
}));

@@ -231,0 +233,0 @@ };

{
"name": "rc-image",
"version": "5.0.0",
"version": "5.0.1",
"description": "React easy to use image component",

@@ -5,0 +5,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