@atlaskit/width-detector
Advanced tools
Comparing version
# @atlaskit/width-detector | ||
## 2.1.1 | ||
### Patch Changes | ||
- [`359575566a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/359575566a) - [NO-ISSUE] Move the WidthDetector deprecated warning to the constructor avoid unnecessary logs everywhere.- Updated dependencies | ||
## 2.1.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@atlaskit/width-detector", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"sideEffects": false | ||
} |
@@ -27,2 +27,3 @@ import React from 'react'; | ||
resizeObject?: ResizeObject; | ||
constructor(props: Props); | ||
static defaultProps: { | ||
@@ -29,0 +30,0 @@ containerStyle: {}; |
@@ -6,4 +6,2 @@ "use strict"; | ||
var raf_schd_1 = tslib_1.__importDefault(require("raf-schd")); | ||
// eslint-disable-next-line no-console | ||
console.warn('WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.'); | ||
var containerDivStyle = { | ||
@@ -36,4 +34,4 @@ width: '100%', | ||
tslib_1.__extends(WidthDetector, _super); | ||
function WidthDetector() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
function WidthDetector(props) { | ||
var _this = _super.call(this, props) || this; | ||
_this.state = {}; | ||
@@ -74,2 +72,4 @@ _this.handleResize = raf_schd_1.default(function () { | ||
}; | ||
// eslint-disable-next-line no-console | ||
console.warn('WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.'); | ||
return _this; | ||
@@ -76,0 +76,0 @@ } |
{ | ||
"name": "@atlaskit/width-detector", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"sideEffects": false | ||
} |
@@ -27,2 +27,3 @@ import React from 'react'; | ||
resizeObject?: ResizeObject; | ||
constructor(props: Props); | ||
static defaultProps: { | ||
@@ -29,0 +30,0 @@ containerStyle: {}; |
import { __assign, __extends, __rest } from "tslib"; | ||
import React from 'react'; | ||
import rafSchedule from 'raf-schd'; | ||
// eslint-disable-next-line no-console | ||
console.warn('WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.'); | ||
var containerDivStyle = { | ||
@@ -33,4 +31,4 @@ width: '100%', | ||
__extends(WidthDetector, _super); | ||
function WidthDetector() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
function WidthDetector(props) { | ||
var _this = _super.call(this, props) || this; | ||
_this.state = {}; | ||
@@ -71,2 +69,4 @@ _this.handleResize = rafSchedule(function () { | ||
}; | ||
// eslint-disable-next-line no-console | ||
console.warn('WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.'); | ||
return _this; | ||
@@ -73,0 +73,0 @@ } |
{ | ||
"name": "@atlaskit/width-detector", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Wrapper for components that need to respond to width changes", | ||
@@ -32,3 +32,3 @@ "publishConfig": { | ||
"devDependencies": { | ||
"@atlaskit/build-utils": "^2.2.7", | ||
"@atlaskit/build-utils": "^2.6.12", | ||
"@atlaskit/docs": "^8.5.1", | ||
@@ -35,0 +35,0 @@ "@atlaskit/ssr": "^0.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
83944
0.44%1264
0.16%0
-100%