@atlaskit/layer
Advanced tools
Comparing version 5.0.0 to 5.0.1
# @atlaskit/layer | ||
## 5.0.1 | ||
- [patch] Schedule extractStyles function [b1e8a47](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b1e8a47) | ||
- [none] Updated dependencies [b1e8a47](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b1e8a47) | ||
## 5.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -49,2 +49,6 @@ 'use strict'; | ||
var _rafSchd = require('raf-schd'); | ||
var _rafSchd2 = _interopRequireDefault(_rafSchd); | ||
var _indexMin = require('../../popper/index-min'); | ||
@@ -139,3 +143,4 @@ | ||
}; | ||
_this.extractStyles = _this.extractStyles.bind(_this); | ||
_this.extractStyles = (0, _rafSchd2.default)(_this.extractStyles.bind(_this)); | ||
return _this; | ||
@@ -185,2 +190,3 @@ } | ||
value: function componentWillUnmount() { | ||
this.extractStyles.cancel(); | ||
if (this.popper) { | ||
@@ -187,0 +193,0 @@ this.popper.destroy(); |
@@ -14,2 +14,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
import styled from 'styled-components'; | ||
import rafSchedule from 'raf-schd'; | ||
@@ -92,3 +93,4 @@ import Popper from '../../popper/index-min'; | ||
}; | ||
_this.extractStyles = _this.extractStyles.bind(_this); | ||
_this.extractStyles = rafSchedule(_this.extractStyles.bind(_this)); | ||
return _this; | ||
@@ -138,2 +140,3 @@ } | ||
value: function componentWillUnmount() { | ||
this.extractStyles.cancel(); | ||
if (this.popper) { | ||
@@ -140,0 +143,0 @@ this.popper.destroy(); |
{ | ||
"name": "@atlaskit/layer", | ||
"version": "4.2.0" | ||
"version": "5.0.0" | ||
} |
{ | ||
"name": "@atlaskit/layer", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "A React layer component responsible for the position of an element on a page", | ||
@@ -23,2 +23,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"raf-schd": "^2.1.0", | ||
"react-scrolllock": "^3.0.1" | ||
@@ -32,3 +33,4 @@ }, | ||
"@atlaskit/docs": "^5.0.0", | ||
"enzyme": "https://registry.npmjs.org/@pgleeson/enzyme/-/enzyme-3.3.7.tgz" | ||
"enzyme": "https://registry.npmjs.org/@pgleeson/enzyme/-/enzyme-3.3.7.tgz", | ||
"raf-stub": "^2.0.1" | ||
}, | ||
@@ -43,2 +45,2 @@ "atlaskit": { | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
396392
2601
4
3
+ Addedraf-schd@^2.1.0
+ Addedraf-schd@2.1.2(transitive)