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

rc-notification

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-notification - npm Package Compare versions

Comparing version 1.4.3 to 2.0.0

6

es/Notification.js

@@ -92,2 +92,6 @@ import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';

var className = (_className = {}, _defineProperty(_className, props.prefixCls, 1), _defineProperty(_className, props.className, !!props.className), _className);
var animateProps = {};
if (this.state.notices.length <= 1) {
animateProps.component = '';
}
return React.createElement(

@@ -98,3 +102,3 @@ 'div',

Animate,
{ transitionName: this.getTransitionName() },
_extends({ transitionName: this.getTransitionName() }, animateProps),
noticeNodes

@@ -101,0 +105,0 @@ )

@@ -0,3 +1,7 @@

## 2.0.0
- [Beack Change] Remove wrapper span element when just single notification. [#17](https://github.com/react-component/notification/pull/17)
## 1.4.0
- Added `getContainer` property.

@@ -141,2 +141,6 @@ 'use strict';

var className = (_className = {}, (0, _defineProperty3['default'])(_className, props.prefixCls, 1), (0, _defineProperty3['default'])(_className, props.className, !!props.className), _className);
var animateProps = {};
if (this.state.notices.length <= 1) {
animateProps.component = '';
}
return _react2['default'].createElement(

@@ -147,3 +151,3 @@ 'div',

_rcAnimate2['default'],
{ transitionName: this.getTransitionName() },
(0, _extends3['default'])({ transitionName: this.getTransitionName() }, animateProps),
noticeNodes

@@ -150,0 +154,0 @@ )

13

package.json
{
"name": "rc-notification",
"version": "1.4.3",
"version": "2.0.0",
"description": "notification ui component for react",

@@ -41,7 +41,7 @@ "keywords": [

"lint": "rc-tools run lint",
"karma": "rc-tools run karma",
"saucelabs": "rc-tools run saucelabs",
"test": "rc-tools run test",
"chrome-test": "rc-tools run chrome-test",
"coverage": "rc-tools run coverage"
"karma": "rc-test run karma",
"saucelabs": "rc-test run saucelabs",
"test": "rc-test run test",
"chrome-test": "rc-test run chrome-test",
"coverage": "rc-test run coverage"
},

@@ -52,2 +52,3 @@ "devDependencies": {

"rc-tools": "6.x",
"rc-test": "^6.0.1",
"react": "15.x",

@@ -54,0 +55,0 @@ "react-dom": "15.x"

@@ -144,3 +144,3 @@ # rc-notification

<td>Object</td>
<td>{right: '50%'}</td>
<td> { top: 65, left: '50%' } </td>
<td>additional style for single notice node.</td>

@@ -147,0 +147,0 @@ </tr>

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