Socket
Socket
Sign inDemoInstall

ak-layer

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ak-layer - npm Package Compare versions

Comparing version 62.0.1 to 62.0.2

11

CHANGELOG.md

@@ -1,6 +0,11 @@

<a name="62.0.1"></a>
## 62.0.1 (2016-11-30)
<a name="62.0.2"></a>
## 62.0.2 (2016-12-01)
<a name="ak-layer@62.0.2"></a>
## ak-layer@62.0.2 (2016-12-01)
<a name="ak-layer@62.0.1"></a>

@@ -12,2 +17,4 @@ ## ak-layer@62.0.1 (2016-11-30)

* **component:** Remvoed inline-blokc style from popper wrapper as it affected dropdown ([1a4edfc](https://bitbucket.org/atlassian/atlaskit/commits/1a4edfc))
* **docs:** Fixes typos in Layer docs ([03f1618](https://bitbucket.org/atlassian/atlaskit/commits/03f1618))
* empty commit to make Layer release itself ([cfac9ab](https://bitbucket.org/atlassian/atlaskit/commits/cfac9ab))

@@ -14,0 +21,0 @@

32

dist/bundle-cjs.js

@@ -97,2 +97,7 @@ module.exports = /******/

}, {
key: "componentWillReceiveProps",
value: function(nextProps) {
this.applyPopper(nextProps);
}
}, {
key: "componentWillUnmount",

@@ -103,7 +108,2 @@ value: function() {

}, {
key: "componentWillRecieveProps",
value: function(nextProps) {
this.applyPopper(nextProps);
}
}, {
key: "applyPopper",

@@ -113,3 +113,7 @@ value: function(props) {

if (this.targetRef && this.contentRef) {
this.popper && this.popper.destroy(), this.popper = new _popper2.default(this.targetRef, this.contentRef, {
this.popper && this.popper.destroy();
// we wrap our target in a div so that we can safely get a reference to it, but we pass the
// actual target to popper
var actualTarget = this.targetRef.firstChild;
this.popper = new _popper2.default(actualTarget, this.contentRef, {
placement: (0, _helpers.positionPropToPopperPosition)(props.position),

@@ -121,2 +125,5 @@ boundariesElement: this.props.boundariesElement,

},
hide: {
enabled: !1
},
offset: {

@@ -155,5 +162,2 @@ enabled: !0,

return _this3.targetRef = _ref;
},
style: {
display: "inline-block"
}

@@ -200,3 +204,3 @@ }, this.props.children), _react2.default.createElement("div", {

* If, through it's normal positoning, it would end up outside the boundary the layer
* will flip positions if the enable-flip prop is set.
* will flip positions if the autoPosition prop is set.
*

@@ -209,3 +213,3 @@ * Valid values are "window" and "viewport"

* @type String
* @example @html <Layer shouldFlip boundariesElement="window"></Layer>
* @example @html <Layer autoPosition boundariesElement="window"></Layer>
*/

@@ -247,4 +251,4 @@ boundariesElement: _react.PropTypes.oneOf([ "viewport", "window" ]),

*/
content: _react.PropTypes.node.isRequired,
children: _react.PropTypes.node.isRequired
content: _react.PropTypes.node,
children: _react.PropTypes.node
}, Layer.defaultProps = {

@@ -255,3 +259,3 @@ position: _helpers.POSITION_ATTRIBUTE_ENUM.default,

offset: "0 0",
target: null,
content: null,
children: null

@@ -258,0 +262,0 @@ }, exports.default = Layer;

@@ -1,1 +0,1 @@

module.exports=function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={exports:{},id:i,loaded:!1};return t[i].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(1)},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(2),r=i(n),p=o(3),s=i(p),a=o(4),l=i(a),u=o(5),f=i(u),d=o(6),c=i(d),m=o(7),h=i(m),b=o(8),v=i(b),P=o(9),y=function(t){function e(t){(0,s.default)(this,e);var o=(0,f.default)(this,(e.__proto__||(0,r.default)(e)).call(this,t));return o.state={position:null,transform:null},o}return(0,c.default)(e,t),(0,l.default)(e,[{key:"componentDidMount",value:function(){this.applyPopper(this.props)}},{key:"componentWillUnmount",value:function(){this.popper&&this.popper.destroy()}},{key:"componentWillRecieveProps",value:function(t){this.applyPopper(t)}},{key:"applyPopper",value:function(t){var e=this;if(this.targetRef&&this.contentRef){this.popper&&this.popper.destroy(),this.popper=new v.default(this.targetRef,this.contentRef,{placement:(0,P.positionPropToPopperPosition)(t.position),boundariesElement:this.props.boundariesElement,modifiers:{applyStyle:{enabled:!1},offset:{enabled:!0,offset:this.props.offset},flip:{enabled:this.props.autoPosition,flipVariations:!0},preventOverflow:{enabled:this.props.autoPosition,moveWithTarget:!0}}});var o=function(t){if(t){var o=Math.round(t.offsets.popper.left),i=Math.round(t.offsets.popper.top);e.setState({position:t.offsets.popper.position,transform:"translate3d("+o+"px, "+i+"px, 0px)"})}};this.popper.onCreate(o),this.popper.onUpdate(o)}}},{key:"render",value:function(){var t=this,e=this.state,o=e.position,i=e.transform;return h.default.createElement("div",null,h.default.createElement("div",{ref:function(e){return t.targetRef=e},style:{display:"inline-block"}},this.props.children),h.default.createElement("div",{ref:function(e){return t.contentRef=e},style:{top:0,left:0,position:o,transform:i}},this.props.content))}}]),e}(m.PureComponent);y.propTypes={position:m.PropTypes.oneOf(P.POSITION_ATTRIBUTE_ENUM.values),boundariesElement:m.PropTypes.oneOf(["viewport","window"]),autoPosition:m.PropTypes.bool,offset:m.PropTypes.string,content:m.PropTypes.node.isRequired,children:m.PropTypes.node.isRequired},y.defaultProps={position:P.POSITION_ATTRIBUTE_ENUM.default,boundariesElement:"viewport",autoPosition:!0,offset:"0 0",target:null,children:null},e.default=y},function(t,e){t.exports=require("babel-runtime/core-js/object/get-prototype-of")},function(t,e){t.exports=require("babel-runtime/helpers/classCallCheck")},function(t,e){t.exports=require("babel-runtime/helpers/createClass")},function(t,e){t.exports=require("babel-runtime/helpers/possibleConstructorReturn")},function(t,e){t.exports=require("babel-runtime/helpers/inherits")},function(t,e){t.exports=require("react")},function(t,e){t.exports=require("popper.js")},function(t,e){"use strict";function o(t){return i[t]?i[t].position:i[n.default].position}Object.defineProperty(e,"__esModule",{value:!0});var i={"top left":{position:"top-start",animation:"top"},"top center":{position:"top",animation:"top"},"top right":{position:"top-end",animation:"top"},"right top":{position:"right-start",animation:"right"},"right middle":{position:"right",animation:"right"},"right bottom":{position:"right-end",animation:"right"},"bottom left":{position:"bottom-start",animation:"bottom"},"bottom center":{position:"bottom",animation:"bottom"},"bottom right":{position:"bottom-end",animation:"bottom"},"left top":{position:"left-start",animation:"left"},"left middle":{position:"left",animation:"left"},"left bottom":{position:"left-end",animation:"left"}},n={values:["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"],default:"right middle"};e.positionPropToPopperPosition=o,e.POSITION_ATTRIBUTE_ENUM=n}]);
module.exports=function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={exports:{},id:i,loaded:!1};return t[i].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){t.exports=o(1)},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(2),r=i(n),p=o(3),s=i(p),a=o(4),l=i(a),f=o(5),u=i(f),d=o(6),c=i(d),m=o(7),h=i(m),b=o(8),v=i(b),P=o(9),g=function(t){function e(t){(0,s.default)(this,e);var o=(0,u.default)(this,(e.__proto__||(0,r.default)(e)).call(this,t));return o.state={position:null,transform:null},o}return(0,c.default)(e,t),(0,l.default)(e,[{key:"componentDidMount",value:function(){this.applyPopper(this.props)}},{key:"componentWillReceiveProps",value:function(t){this.applyPopper(t)}},{key:"componentWillUnmount",value:function(){this.popper&&this.popper.destroy()}},{key:"applyPopper",value:function(t){var e=this;if(this.targetRef&&this.contentRef){this.popper&&this.popper.destroy();var o=this.targetRef.firstChild;this.popper=new v.default(o,this.contentRef,{placement:(0,P.positionPropToPopperPosition)(t.position),boundariesElement:this.props.boundariesElement,modifiers:{applyStyle:{enabled:!1},hide:{enabled:!1},offset:{enabled:!0,offset:this.props.offset},flip:{enabled:this.props.autoPosition,flipVariations:!0},preventOverflow:{enabled:this.props.autoPosition,moveWithTarget:!0}}});var i=function(t){if(t){var o=Math.round(t.offsets.popper.left),i=Math.round(t.offsets.popper.top);e.setState({position:t.offsets.popper.position,transform:"translate3d("+o+"px, "+i+"px, 0px)"})}};this.popper.onCreate(i),this.popper.onUpdate(i)}}},{key:"render",value:function(){var t=this,e=this.state,o=e.position,i=e.transform;return h.default.createElement("div",null,h.default.createElement("div",{ref:function(e){return t.targetRef=e}},this.props.children),h.default.createElement("div",{ref:function(e){return t.contentRef=e},style:{top:0,left:0,position:o,transform:i}},this.props.content))}}]),e}(m.PureComponent);g.propTypes={position:m.PropTypes.oneOf(P.POSITION_ATTRIBUTE_ENUM.values),boundariesElement:m.PropTypes.oneOf(["viewport","window"]),autoPosition:m.PropTypes.bool,offset:m.PropTypes.string,content:m.PropTypes.node,children:m.PropTypes.node},g.defaultProps={position:P.POSITION_ATTRIBUTE_ENUM.default,boundariesElement:"viewport",autoPosition:!0,offset:"0 0",content:null,children:null},e.default=g},function(t,e){t.exports=require("babel-runtime/core-js/object/get-prototype-of")},function(t,e){t.exports=require("babel-runtime/helpers/classCallCheck")},function(t,e){t.exports=require("babel-runtime/helpers/createClass")},function(t,e){t.exports=require("babel-runtime/helpers/possibleConstructorReturn")},function(t,e){t.exports=require("babel-runtime/helpers/inherits")},function(t,e){t.exports=require("react")},function(t,e){t.exports=require("popper.js")},function(t,e){"use strict";function o(t){return i[t]?i[t].position:i[n.default].position}Object.defineProperty(e,"__esModule",{value:!0});var i={"top left":{position:"top-start",animation:"top"},"top center":{position:"top",animation:"top"},"top right":{position:"top-end",animation:"top"},"right top":{position:"right-start",animation:"right"},"right middle":{position:"right",animation:"right"},"right bottom":{position:"right-end",animation:"right"},"bottom left":{position:"bottom-start",animation:"bottom"},"bottom center":{position:"bottom",animation:"bottom"},"bottom right":{position:"bottom-end",animation:"bottom"},"left top":{position:"left-start",animation:"left"},"left middle":{position:"left",animation:"left"},"left bottom":{position:"left-end",animation:"left"}},n={values:["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"],default:"right middle"};e.positionPropToPopperPosition=o,e.POSITION_ATTRIBUTE_ENUM=n}]);

@@ -100,2 +100,7 @@ !function(root, factory) {

}, {
key: "componentWillReceiveProps",
value: function(nextProps) {
this.applyPopper(nextProps);
}
}, {
key: "componentWillUnmount",

@@ -106,7 +111,2 @@ value: function() {

}, {
key: "componentWillRecieveProps",
value: function(nextProps) {
this.applyPopper(nextProps);
}
}, {
key: "applyPopper",

@@ -116,3 +116,7 @@ value: function(props) {

if (this.targetRef && this.contentRef) {
this.popper && this.popper.destroy(), this.popper = new _popper2.default(this.targetRef, this.contentRef, {
this.popper && this.popper.destroy();
// we wrap our target in a div so that we can safely get a reference to it, but we pass the
// actual target to popper
var actualTarget = this.targetRef.firstChild;
this.popper = new _popper2.default(actualTarget, this.contentRef, {
placement: (0, _helpers.positionPropToPopperPosition)(props.position),

@@ -124,2 +128,5 @@ boundariesElement: this.props.boundariesElement,

},
hide: {
enabled: !1
},
offset: {

@@ -158,5 +165,2 @@ enabled: !0,

return _this3.targetRef = _ref;
},
style: {
display: "inline-block"
}

@@ -203,3 +207,3 @@ }, this.props.children), _react2.default.createElement("div", {

* If, through it's normal positoning, it would end up outside the boundary the layer
* will flip positions if the enable-flip prop is set.
* will flip positions if the autoPosition prop is set.
*

@@ -212,3 +216,3 @@ * Valid values are "window" and "viewport"

* @type String
* @example @html <Layer shouldFlip boundariesElement="window"></Layer>
* @example @html <Layer autoPosition boundariesElement="window"></Layer>
*/

@@ -250,4 +254,4 @@ boundariesElement: _react.PropTypes.oneOf([ "viewport", "window" ]),

*/
content: _react.PropTypes.node.isRequired,
children: _react.PropTypes.node.isRequired
content: _react.PropTypes.node,
children: _react.PropTypes.node
}, Layer.defaultProps = {

@@ -258,3 +262,3 @@ position: _helpers.POSITION_ATTRIBUTE_ENUM.default,

offset: "0 0",
target: null,
content: null,
children: null

@@ -261,0 +265,0 @@ }, exports.default = Layer;

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("popper.js")):"function"==typeof define&&define.amd?define(["babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","react","popper.js"],t):"object"==typeof exports?exports.akLayer=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("popper.js")):e.akLayer=t(e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.react,e["popper.js"])}(this,function(e,t,o,r,i,n,p){return function(e){function t(r){if(o[r])return o[r].exports;var i=o[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){e.exports=o(1)},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=r(i),p=o(3),s=r(p),l=o(4),a=r(l),u=o(5),f=r(u),c=o(6),b=r(c),m=o(7),d=r(m),h=o(8),y=r(h),g=o(9),v=function(e){function t(e){(0,s.default)(this,t);var o=(0,f.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return o.state={position:null,transform:null},o}return(0,b.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){this.applyPopper(this.props)}},{key:"componentWillUnmount",value:function(){this.popper&&this.popper.destroy()}},{key:"componentWillRecieveProps",value:function(e){this.applyPopper(e)}},{key:"applyPopper",value:function(e){var t=this;if(this.targetRef&&this.contentRef){this.popper&&this.popper.destroy(),this.popper=new y.default(this.targetRef,this.contentRef,{placement:(0,g.positionPropToPopperPosition)(e.position),boundariesElement:this.props.boundariesElement,modifiers:{applyStyle:{enabled:!1},offset:{enabled:!0,offset:this.props.offset},flip:{enabled:this.props.autoPosition,flipVariations:!0},preventOverflow:{enabled:this.props.autoPosition,moveWithTarget:!0}}});var o=function(e){if(e){var o=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);t.setState({position:e.offsets.popper.position,transform:"translate3d("+o+"px, "+r+"px, 0px)"})}};this.popper.onCreate(o),this.popper.onUpdate(o)}}},{key:"render",value:function(){var e=this,t=this.state,o=t.position,r=t.transform;return d.default.createElement("div",null,d.default.createElement("div",{ref:function(t){return e.targetRef=t},style:{display:"inline-block"}},this.props.children),d.default.createElement("div",{ref:function(t){return e.contentRef=t},style:{top:0,left:0,position:o,transform:r}},this.props.content))}}]),t}(m.PureComponent);v.propTypes={position:m.PropTypes.oneOf(g.POSITION_ATTRIBUTE_ENUM.values),boundariesElement:m.PropTypes.oneOf(["viewport","window"]),autoPosition:m.PropTypes.bool,offset:m.PropTypes.string,content:m.PropTypes.node.isRequired,children:m.PropTypes.node.isRequired},v.defaultProps={position:g.POSITION_ATTRIBUTE_ENUM.default,boundariesElement:"viewport",autoPosition:!0,offset:"0 0",target:null,children:null},t.default=v},function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t){e.exports=p},function(e,t){"use strict";function o(e){return r[e]?r[e].position:r[i.default].position}Object.defineProperty(t,"__esModule",{value:!0});var r={"top left":{position:"top-start",animation:"top"},"top center":{position:"top",animation:"top"},"top right":{position:"top-end",animation:"top"},"right top":{position:"right-start",animation:"right"},"right middle":{position:"right",animation:"right"},"right bottom":{position:"right-end",animation:"right"},"bottom left":{position:"bottom-start",animation:"bottom"},"bottom center":{position:"bottom",animation:"bottom"},"bottom right":{position:"bottom-end",animation:"bottom"},"left top":{position:"left-start",animation:"left"},"left middle":{position:"left",animation:"left"},"left bottom":{position:"left-end",animation:"left"}},i={values:["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"],default:"right middle"};t.positionPropToPopperPosition=o,t.POSITION_ATTRIBUTE_ENUM=i}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("popper.js")):"function"==typeof define&&define.amd?define(["babel-runtime/core-js/object/get-prototype-of","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","react","popper.js"],t):"object"==typeof exports?exports.akLayer=t(require("babel-runtime/core-js/object/get-prototype-of"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("react"),require("popper.js")):e.akLayer=t(e["babel-runtime/core-js/object/get-prototype-of"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e.react,e["popper.js"])}(this,function(e,t,o,r,i,n,p){return function(e){function t(r){if(o[r])return o[r].exports;var i=o[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){e.exports=o(1)},function(e,t,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=r(i),p=o(3),s=r(p),l=o(4),a=r(l),u=o(5),f=r(u),c=o(6),b=r(c),h=o(7),m=r(h),d=o(8),y=r(d),v=o(9),P=function(e){function t(e){(0,s.default)(this,t);var o=(0,f.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return o.state={position:null,transform:null},o}return(0,b.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){this.applyPopper(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.applyPopper(e)}},{key:"componentWillUnmount",value:function(){this.popper&&this.popper.destroy()}},{key:"applyPopper",value:function(e){var t=this;if(this.targetRef&&this.contentRef){this.popper&&this.popper.destroy();var o=this.targetRef.firstChild;this.popper=new y.default(o,this.contentRef,{placement:(0,v.positionPropToPopperPosition)(e.position),boundariesElement:this.props.boundariesElement,modifiers:{applyStyle:{enabled:!1},hide:{enabled:!1},offset:{enabled:!0,offset:this.props.offset},flip:{enabled:this.props.autoPosition,flipVariations:!0},preventOverflow:{enabled:this.props.autoPosition,moveWithTarget:!0}}});var r=function(e){if(e){var o=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);t.setState({position:e.offsets.popper.position,transform:"translate3d("+o+"px, "+r+"px, 0px)"})}};this.popper.onCreate(r),this.popper.onUpdate(r)}}},{key:"render",value:function(){var e=this,t=this.state,o=t.position,r=t.transform;return m.default.createElement("div",null,m.default.createElement("div",{ref:function(t){return e.targetRef=t}},this.props.children),m.default.createElement("div",{ref:function(t){return e.contentRef=t},style:{top:0,left:0,position:o,transform:r}},this.props.content))}}]),t}(h.PureComponent);P.propTypes={position:h.PropTypes.oneOf(v.POSITION_ATTRIBUTE_ENUM.values),boundariesElement:h.PropTypes.oneOf(["viewport","window"]),autoPosition:h.PropTypes.bool,offset:h.PropTypes.string,content:h.PropTypes.node,children:h.PropTypes.node},P.defaultProps={position:v.POSITION_ATTRIBUTE_ENUM.default,boundariesElement:"viewport",autoPosition:!0,offset:"0 0",content:null,children:null},t.default=P},function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t){e.exports=p},function(e,t){"use strict";function o(e){return r[e]?r[e].position:r[i.default].position}Object.defineProperty(t,"__esModule",{value:!0});var r={"top left":{position:"top-start",animation:"top"},"top center":{position:"top",animation:"top"},"top right":{position:"top-end",animation:"top"},"right top":{position:"right-start",animation:"right"},"right middle":{position:"right",animation:"right"},"right bottom":{position:"right-end",animation:"right"},"bottom left":{position:"bottom-start",animation:"bottom"},"bottom center":{position:"bottom",animation:"bottom"},"bottom right":{position:"bottom-end",animation:"bottom"},"left top":{position:"left-start",animation:"left"},"left middle":{position:"left",animation:"left"},"left bottom":{position:"left-end",animation:"left"}},i={values:["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"],default:"right middle"};t.positionPropToPopperPosition=o,t.POSITION_ATTRIBUTE_ENUM=i}])});
{
"name": "ak-layer",
"version": "62.0.1",
"version": "62.0.2",
"description": "A layer component",

@@ -18,3 +18,3 @@ "main": "dist/bundle.js",

"babel-runtime": "^6.11.6",
"popper.js": "git://github.com/lukebatchelor/popper.js#854d0a2fcab27f69d6f324ce5760fd99fcebea3d"
"popper.js": "git://github.com/lukebatchelor/popper.js#fixing-from-alpha-3-release"
},

@@ -21,0 +21,0 @@ "peerDependencies": {

@@ -5,3 +5,3 @@ [![AtlasKit component registry](https://img.shields.io/badge/AtlasKit-components-FF5230.svg)](http://aui-cdn.atlassian.com/atlaskit/registry/)

[![Report an issue](https://img.shields.io/badge/Report-an_issue-6554C0.svg)](https://ecosystem.atlassian.net/browse/AK)
[![Ask in our forum](https://img.shields.io/badge/Ask-in_our_forum-6554C0.svg)](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-layer,ak-layer@62.0.1)
[![Ask in our forum](https://img.shields.io/badge/Ask-in_our_forum-6554C0.svg)](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-layer,ak-layer@62.0.2)

@@ -14,7 +14,7 @@ # Layer

![Example Layer Components](https://bytebucket.org/atlassian/atlaskit/raw/d7abb474da4bf30606486b46b95d8fb0f29622d2/packages/ak-layer/docs/Layer.png)
![Example Layer Components](https://bytebucket.org/atlassian/atlaskit/raw/3616f2f81111172956ec968856d018af22cf4808/packages/ak-layer/docs/Layer.png)
## Try it out
Interact with a [live demo of the ak-layer component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-layer/62.0.1/).
Interact with a [live demo of the ak-layer component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-layer/62.0.2/).

@@ -93,3 +93,3 @@ ## Installation

If, through it's normal positoning, it would end up outside the boundary the layer
will flip positions if the enable-flip prop is set.
will flip positions if the autoPosition prop is set.

@@ -103,3 +103,3 @@ Valid values are "window" and "viewport"

```js
<Layer shouldFlip boundariesElement="window"></Layer>
<Layer autoPosition boundariesElement="window"></Layer>
```

@@ -155,3 +155,3 @@ <a name="Layer+autoPosition"></a>

Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-layer,ak-layer@62.0.1).
Ask a question in our [forum](https://answers.atlassian.com/questions/ask?title=AtlasKit%3A%20&topics=atlaskit,ak-layer,ak-layer@62.0.2).

@@ -158,0 +158,0 @@ Check [if someone has already asked the same question before](https://answers.atlassian.com/questions/topics/42926171/atlaskit).

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