@bufferapp/notifications
Advanced tools
Comparing version 1.9.6 to 1.9.7
@@ -7,6 +7,2 @@ 'use strict'; | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
@@ -16,6 +12,2 @@ | ||
var _utils = require('@bufferapp/components/lib/utils'); | ||
var _animation = require('@bufferapp/components/style/animation'); | ||
var _components = require('@bufferapp/components'); | ||
@@ -25,3 +17,3 @@ | ||
const Notifications = ({ notifications, onNotificationClose }) => _react2.default.createElement( | ||
const Notifications = ({ notifications, onNotificationClose }) => React.createElement( | ||
'div', | ||
@@ -36,3 +28,3 @@ { | ||
}, | ||
_react2.default.createElement( | ||
React.createElement( | ||
'div', | ||
@@ -48,10 +40,10 @@ { | ||
}, | ||
notifications.map(notification => _react2.default.createElement( | ||
notifications.map(notification => React.createElement( | ||
'div', | ||
{ | ||
style: (0, _utils.calculateStyles)({ | ||
style: (0, _components.calculateStyles)({ | ||
default: { | ||
marginBottom: '1rem', | ||
maxHeight: '100vh', | ||
transition: `all ${_animation.transitionAnimationTime} ${_animation.transitionAnimationType}` | ||
transition: `all ${_components.transitionAnimationTime} ${_components.transitionAnimationType}` | ||
}, | ||
@@ -67,3 +59,3 @@ hidden: { | ||
}, | ||
_react2.default.createElement( | ||
React.createElement( | ||
_components.Notification, | ||
@@ -70,0 +62,0 @@ { |
{ | ||
"name": "@bufferapp/notifications", | ||
"version": "1.9.6", | ||
"version": "1.9.7", | ||
"description": "Display application notifications", | ||
@@ -20,2 +20,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@bufferapp/components": "3.6.3", | ||
"@bufferapp/keywrapper": "0.2.0", | ||
@@ -25,3 +26,2 @@ "uuid": "3.3.2" | ||
"devDependencies": { | ||
"@bufferapp/components": "3.0.2", | ||
"@storybook/core": "^3.4.11", | ||
@@ -51,3 +51,3 @@ "@storybook/react": "^3.4.11", | ||
"peerDependencies": { | ||
"@bufferapp/components": "3.x", | ||
"@bufferapp/components": "3.6.3", | ||
"react": "16.x", | ||
@@ -54,0 +54,0 @@ "react-dom": "16.x", |
@@ -1,9 +0,8 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { calculateStyles } from '@bufferapp/components/lib/utils' | ||
import { | ||
Notification, | ||
calculateStyles, | ||
transitionAnimationTime, | ||
transitionAnimationType, | ||
} from '@bufferapp/components/style/animation' | ||
import { Notification } from '@bufferapp/components' | ||
} from '@bufferapp/components' | ||
@@ -10,0 +9,0 @@ const Notifications = ({ notifications, onNotificationClose }) => ( |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
22
21598
7
555
1
+ Added@bufferapp/components@3.6.3