@wildberries/notifications
Advanced tools
Comparing version 1.0.10 to 1.0.11-beta.1
@@ -15,3 +15,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { PureComponent } from 'react'; | ||
import { uniqueId } from 'lodash-es'; | ||
import uniqid from 'uniqid'; | ||
import { createPortal } from 'react-dom'; | ||
@@ -41,3 +41,3 @@ // default z-index for portal container | ||
_this.portalElement = document.createElement('div'); | ||
_this.portalElement.className = rootPortalPrefix + "__" + uniqueId(); | ||
_this.portalElement.className = rootPortalPrefix + "__" + uniqid(); | ||
return _this; | ||
@@ -44,0 +44,0 @@ } |
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
import { uniqueId } from 'lodash-es'; | ||
import uniqid from 'uniqid'; | ||
export var SET_MODAL = '@notifications/SET_MODAL'; | ||
export var setModalAction = function (actionPayload) { return ({ | ||
type: SET_MODAL, | ||
payload: __assign(__assign({}, actionPayload), { id: uniqueId('notification_') }), | ||
payload: __assign(__assign({}, actionPayload), { id: uniqid('notification_') }), | ||
}); }; | ||
@@ -19,0 +19,0 @@ export var REMOVE_MODAL = '@notifications/REMOVE_MODAL'; |
{ | ||
"name": "@wildberries/notifications", | ||
"version": "1.0.10", | ||
"version": "1.0.11-beta.1", | ||
"description": "notifications module", | ||
@@ -34,3 +34,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"react-transition-group": "4.4.1" | ||
"react-transition-group": "4.4.1", | ||
"uniqid": "5.3.0" | ||
}, | ||
@@ -46,2 +47,3 @@ "devDependencies": { | ||
"@storybook/addon-links": "6.0.26", | ||
"@types/uniqid": "5.2.0", | ||
"@storybook/addon-viewport": "6.0.26", | ||
@@ -51,3 +53,2 @@ "@storybook/react": "6.0.26", | ||
"@types/jest": "24.9.1", | ||
"@types/lodash-es": "4.17.3", | ||
"@types/node-sass": "4.11.0", | ||
@@ -102,3 +103,2 @@ "@types/react": "16.9.11", | ||
"classnames": "2.2.6", | ||
"lodash-es": "4.17.15", | ||
"react": "16.13.0", | ||
@@ -105,0 +105,0 @@ "react-dom": "16.13.0", |
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
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
68459
1
+ Addeduniqid@5.3.0
+ Addeduniqid@5.3.0(transitive)
- Removedlodash-es@4.17.15(transitive)