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

react-notification

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-notification - npm Package Compare versions

Comparing version 2.2.0-beta to 2.2.0

18

dist/notification.js

@@ -52,3 +52,13 @@ 'use strict';

cursor: 'default',
transition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)'
WebKittransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)',
MozTransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)',
msTransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)',
oTransition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)',
transition: '.5s cubic-bezier(0.89, 0.01, 0.5, 1.1)',
// Trigger GPU acceleration
WebkitTransform: 'translatez(0)',
MozTransform: 'translatez(0)',
msTransform: 'translatez(0)',
oTransform: 'translatez(0)',
transform: 'translatez(0)'
},

@@ -119,6 +129,6 @@ activeState: {

if (_this.props.onClick && typeof _this.props.onClick === 'function') {
return _this.props.onClick(event);
_this.props.onClick();
} else {
return;
}
return;
};

@@ -125,0 +135,0 @@ }

import React, { Component } from 'react';
import { render } from 'react-dom';
import Notification from 'notification';

@@ -109,2 +108,2 @@

render(<Example />, document.querySelector('#mount'));
React.render(<Example />, document.body);
{
"name": "react-notification",
"version": "2.2.0-beta",
"version": "2.2.0",
"description": "Snackbar style notification component for React.",

@@ -31,16 +31,14 @@ "main": "dist/notification.js",

"homepage": "https://github.com/pburtchaell/react-notification",
"peerDependencies": {
"react": "^0.14.0 || 0.14.0-beta1 || 0.14.0-beta2 || 0.14.0-beta3"
},
"dependencies": {
"object-assign": "^3.0.0"
"object-assign": "^2.0.0",
"react": "^0.13.3"
},
"devDependencies": {
"babel": "^5.8.21",
"babel-core": "^5.8.22",
"babel-eslint": "^4.0.10",
"babel-loader": "^5.3.2",
"eslint": "^1.2.0",
"eslint-config-airbnb": "^0.0.7",
"eslint-plugin-react": "^3.2.3",
"babel": "^5.5.8",
"babel-core": "^5.5.8",
"babel-eslint": "^3.1.23",
"babel-loader": "^5.1.4",
"eslint": "^0.24.0",
"eslint-config-airbnb": "0.0.6",
"eslint-plugin-react": "^2.6.4",
"expect": "^1.6.0",

@@ -52,9 +50,6 @@ "html-webpack-plugin": "^1.6.0",

"node-libs-browser": "^0.5.2",
"react": "^0.14.0-beta1",
"react-addons-test-utils": "^0.14.0-beta3",
"react-dom": "^0.14.0-beta3",
"react-hot-loader": "^1.2.8",
"webpack": "^1.11.0",
"webpack-dev-server": "^1.10.1"
"react-hot-loader": "^1.2.7",
"webpack": "^1.7.3",
"webpack-dev-server": "^1.9.0"
}
}

@@ -7,2 +7,4 @@ # react-notification [![npm version](https://badge.fury.io/js/react-notification.svg)](http://badge.fury.io/js/react-notification) [![Dependency Status](https://david-dm.org/pburtchaell/react-classes.svg)](https://david-dm.org/pburtchaell/react-notification)

**NOTICE: If you are using the React 0.14.0 beta, you can install the compatible version of this component with `npm i react-notification@2.2.0-beta -S`.**
This is a component designed to provide "[snackbar](http://www.google.com/design/spec/components/snackbars-toasts.html#snackbars-toasts-usage)" notification messages. I would suggest reading the usage guidelines for [snackbars](http://www.google.com/design/spec/components/snackbars-toasts.html#).

@@ -9,0 +11,0 @@

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

import React from 'react';
import TestUtils from 'react-addons-test-utils';
import React from 'react/addons';
import ExecutionEnvironment from 'react/lib/ExecutionEnvironment';
import jsdom from 'mocha-jsdom';

@@ -7,2 +7,4 @@ import expect from 'expect';

let TestUtils = React.addons.TestUtils;
const MOCK = {

@@ -29,2 +31,3 @@ message: 'Test',

jsdom();
ExecutionEnvironment.canUseDOM = true;

@@ -31,0 +34,0 @@ it('should render message and action text', done => {

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