react-notification
Advanced tools
Comparing version 2.2.0-beta to 2.2.0
@@ -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 => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
124493
16
359
0
104
+ Addedreact@^0.13.3
+ Addedacorn@5.7.4(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedast-types@0.9.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase62@1.2.8(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addedenvify@3.4.1(transitive)
+ Addedesprima@3.1.3(transitive)
+ Addedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjstransform@11.0.3(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedq@1.5.1(transitive)
+ Addedreact@0.13.3(transitive)
+ Addedrecast@0.11.23(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsource-map@0.4.40.5.7(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedobject-assign@3.0.0(transitive)
Updatedobject-assign@^2.0.0