Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/layer

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/layer - npm Package Compare versions

Comparing version 9.0.2 to 9.0.3

6

CHANGELOG.md
# @atlaskit/layer
## 9.0.3
### Patch Changes
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
## 9.0.2

@@ -4,0 +10,0 @@

2

dist/cjs/components/internal/ScrollBlock.js

@@ -22,3 +22,3 @@ "use strict";

function ScrollBlock() {
return _react.default.createElement(Blanket, null, _react.default.createElement(_reactScrolllock.default, null));
return /*#__PURE__*/_react.default.createElement(Blanket, null, /*#__PURE__*/_react.default.createElement(_reactScrolllock.default, null));
}

@@ -18,2 +18,6 @@ "use strict";

var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));

@@ -23,6 +27,2 @@

var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

@@ -48,2 +48,6 @@

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
// We create a dummy target when making the menu fixed so that we can force popper.js to use fixed positioning

@@ -76,2 +80,4 @@ // without affecting child layout of the actual target since children of fixed position elements can't use percentage

var _super = _createSuper(Layer);
// working with extract-react-types

@@ -82,3 +88,3 @@ function Layer(props) {

(0, _classCallCheck2.default)(this, Layer);
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(Layer).call(this, props));
_this = _super.call(this, props);
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "popper", void 0);

@@ -321,10 +327,10 @@ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "targetRef", void 0);

};
return _react.default.createElement("div", null, _react.default.createElement("div", {
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
ref: function ref(_ref2) {
_this2.targetRef = _ref2;
}
}, this.props.children), _react.default.createElement(FixedTarget, {
}, this.props.children), /*#__PURE__*/_react.default.createElement(FixedTarget, {
targetRef: this.targetRef,
fixedOffset: fixedOffset
}, _react.default.createElement("div", {
}, /*#__PURE__*/_react.default.createElement("div", {
style: {

@@ -337,5 +343,5 @@ height: '100%',

}
})), lockScroll && _react.default.createElement(_ScrollBlock.default, null), _react.default.createElement(_styledContentContainer.default, {
})), lockScroll && /*#__PURE__*/_react.default.createElement(_ScrollBlock.default, null), /*#__PURE__*/_react.default.createElement(_styledContentContainer.default, {
maxHeight: maxHeight
}, _react.default.createElement("div", {
}, /*#__PURE__*/_react.default.createElement("div", {
ref: function ref(_ref4) {

@@ -342,0 +348,0 @@ _this2.contentRef = _ref4;

{
"name": "@atlaskit/layer",
"version": "9.0.2",
"version": "9.0.3",
"sideEffects": false
}
{
"name": "@atlaskit/layer",
"version": "9.0.2",
"version": "9.0.3",
"sideEffects": false
}

@@ -9,3 +9,3 @@ import React from 'react';

export default function ScrollBlock() {
return React.createElement(Blanket, null, React.createElement(ScrollLock, null));
return /*#__PURE__*/React.createElement(Blanket, null, /*#__PURE__*/React.createElement(ScrollLock, null));
}
import _typeof from "@babel/runtime/helpers/typeof";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
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 _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
import _inherits from "@babel/runtime/helpers/inherits";
import _defineProperty from "@babel/runtime/helpers/defineProperty";

@@ -14,2 +14,6 @@

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
/* eslint-disable react/prop-types */

@@ -51,2 +55,4 @@ import React, { Component } from 'react';

var _super = _createSuper(Layer);
// working with extract-react-types

@@ -58,3 +64,3 @@ function Layer(props) {

_this = _possibleConstructorReturn(this, _getPrototypeOf(Layer).call(this, props));
_this = _super.call(this, props);

@@ -303,10 +309,10 @@ _defineProperty(_assertThisInitialized(_this), "popper", void 0);

};
return React.createElement("div", null, React.createElement("div", {
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
ref: function ref(_ref2) {
_this2.targetRef = _ref2;
}
}, this.props.children), React.createElement(FixedTarget, {
}, this.props.children), /*#__PURE__*/React.createElement(FixedTarget, {
targetRef: this.targetRef,
fixedOffset: fixedOffset
}, React.createElement("div", {
}, /*#__PURE__*/React.createElement("div", {
style: {

@@ -319,5 +325,5 @@ height: '100%',

}
})), lockScroll && React.createElement(ScrollBlock, null), React.createElement(ContentContainer, {
})), lockScroll && /*#__PURE__*/React.createElement(ScrollBlock, null), /*#__PURE__*/React.createElement(ContentContainer, {
maxHeight: maxHeight
}, React.createElement("div", {
}, /*#__PURE__*/React.createElement("div", {
ref: function ref(_ref4) {

@@ -324,0 +330,0 @@ _this2.contentRef = _ref4;

{
"name": "@atlaskit/layer",
"version": "9.0.2",
"version": "9.0.3",
"sideEffects": false
}
{
"name": "@atlaskit/layer",
"version": "9.0.2",
"version": "9.0.3",
"description": "A React layer component responsible for the position of an element on a page",

@@ -13,3 +13,2 @@ "publishConfig": {

"module": "dist/esm/index.js",
"module:es2019": "dist/es2019/index.js",
"sideEffects": false,

@@ -16,0 +15,0 @@ "atlaskit:src": "src/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc