@atlaskit/width-detector
Advanced tools
Comparing version 4.3.1 to 4.3.2
# @atlaskit/width-detector | ||
## 4.3.2 | ||
### Patch Changes | ||
- [#103999](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103999) | ||
[`9f62ecec4d422`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f62ecec4d422) - | ||
Update dependencies. | ||
## 4.3.1 | ||
@@ -4,0 +12,0 @@ |
@@ -12,6 +12,5 @@ "use strict"; | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); | ||
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); | ||
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); | ||
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); | ||
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
@@ -23,3 +22,3 @@ var _react = _interopRequireDefault(require("react")); | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; } | ||
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
@@ -56,14 +55,12 @@ var containerDivStyle = { | ||
var WidthDetector = exports.default = /*#__PURE__*/function (_React$Component) { | ||
(0, _inherits2.default)(WidthDetector, _React$Component); | ||
var _super = _createSuper(WidthDetector); | ||
function WidthDetector(props) { | ||
var _this; | ||
(0, _classCallCheck2.default)(this, WidthDetector); | ||
_this = _super.call(this, props); | ||
_this = _callSuper(this, WidthDetector, [props]); | ||
// eslint-disable-next-line no-console | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleResize", (0, _rafSchd.default)(function () { | ||
var _assertThisInitialize = (0, _assertThisInitialized2.default)(_this), | ||
container = _assertThisInitialize.container; | ||
(0, _defineProperty2.default)(_this, "state", {}); | ||
(0, _defineProperty2.default)(_this, "handleResize", (0, _rafSchd.default)(function () { | ||
var _this2 = _this, | ||
container = _this2.container; | ||
if (!container) { | ||
@@ -80,3 +77,3 @@ return; | ||
})); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleContainerRef", function (ref) { | ||
(0, _defineProperty2.default)(_this, "handleContainerRef", function (ref) { | ||
if (!ref) { | ||
@@ -87,3 +84,3 @@ return; | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleObjectRef", function (ref) { | ||
(0, _defineProperty2.default)(_this, "handleObjectRef", function (ref) { | ||
if (!ref) { | ||
@@ -94,3 +91,3 @@ return; | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleObjectLoad", function () { | ||
(0, _defineProperty2.default)(_this, "handleObjectLoad", function () { | ||
if (!_this.resizeObject) { | ||
@@ -106,3 +103,4 @@ return; | ||
} | ||
(0, _createClass2.default)(WidthDetector, [{ | ||
(0, _inherits2.default)(WidthDetector, _React$Component); | ||
return (0, _createClass2.default)(WidthDetector, [{ | ||
key: "componentDidMount", | ||
@@ -153,3 +151,2 @@ value: function componentDidMount() { | ||
}]); | ||
return WidthDetector; | ||
}(_react.default.Component); | ||
@@ -156,0 +153,0 @@ (0, _defineProperty2.default)(WidthDetector, "defaultProps", { |
@@ -5,6 +5,5 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/inherits"; | ||
import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
@@ -14,3 +13,3 @@ var _excluded = ["containerStyle", "onResize", "children"]; | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } | ||
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
@@ -49,14 +48,12 @@ import React from 'react'; | ||
var WidthDetector = /*#__PURE__*/function (_React$Component) { | ||
_inherits(WidthDetector, _React$Component); | ||
var _super = _createSuper(WidthDetector); | ||
function WidthDetector(props) { | ||
var _this; | ||
_classCallCheck(this, WidthDetector); | ||
_this = _super.call(this, props); | ||
_this = _callSuper(this, WidthDetector, [props]); | ||
// eslint-disable-next-line no-console | ||
_defineProperty(_assertThisInitialized(_this), "state", {}); | ||
_defineProperty(_assertThisInitialized(_this), "handleResize", rafSchedule(function () { | ||
var _assertThisInitialize = _assertThisInitialized(_this), | ||
container = _assertThisInitialize.container; | ||
_defineProperty(_this, "state", {}); | ||
_defineProperty(_this, "handleResize", rafSchedule(function () { | ||
var _this2 = _this, | ||
container = _this2.container; | ||
if (!container) { | ||
@@ -73,3 +70,3 @@ return; | ||
})); | ||
_defineProperty(_assertThisInitialized(_this), "handleContainerRef", function (ref) { | ||
_defineProperty(_this, "handleContainerRef", function (ref) { | ||
if (!ref) { | ||
@@ -80,3 +77,3 @@ return; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "handleObjectRef", function (ref) { | ||
_defineProperty(_this, "handleObjectRef", function (ref) { | ||
if (!ref) { | ||
@@ -87,3 +84,3 @@ return; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "handleObjectLoad", function () { | ||
_defineProperty(_this, "handleObjectLoad", function () { | ||
if (!_this.resizeObject) { | ||
@@ -99,3 +96,4 @@ return; | ||
} | ||
_createClass(WidthDetector, [{ | ||
_inherits(WidthDetector, _React$Component); | ||
return _createClass(WidthDetector, [{ | ||
key: "componentDidMount", | ||
@@ -146,3 +144,2 @@ value: function componentDidMount() { | ||
}]); | ||
return WidthDetector; | ||
}(React.Component); | ||
@@ -149,0 +146,0 @@ _defineProperty(WidthDetector, "defaultProps", { |
{ | ||
"name": "@atlaskit/width-detector", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "Wrapper for components that need to respond to width changes", | ||
@@ -44,3 +44,3 @@ "publishConfig": { | ||
"@af/integration-testing": "*", | ||
"@atlaskit/ds-lib": "^3.2.0", | ||
"@atlaskit/ds-lib": "^3.3.0", | ||
"@atlaskit/ssr": "*", | ||
@@ -53,4 +53,3 @@ "@emotion/react": "^11.7.1", | ||
"react-dom": "^16.8.0", | ||
"typescript": "~5.4.2", | ||
"wait-for-expect": "^1.2.0" | ||
"typescript": "~5.4.2" | ||
}, | ||
@@ -57,0 +56,0 @@ "keywords": [ |
@@ -14,4 +14,3 @@ { | ||
"compilerOptions": { | ||
"baseUrl": "./" | ||
} | ||
} |
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
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
10
59826
1087