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

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 57.0.1 to 57.1.0

14

CHANGELOG.md

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

<a name="57.0.0"></a>
# 57.0.0 (2016-08-25)
<a name="57.0.1"></a>
## 57.0.1 (2016-08-26)
<a name="ak-layer@57.0.1"></a>
## ak-layer@57.0.1 (2016-08-25)
<a name="ak-layer@57.0.0"></a>

@@ -10,2 +15,7 @@ # ak-layer@57.0.0 (2016-08-25)

### Bug Fixes
* **package:** Publish an extra commonjs-only (no UMD) bundle for webpack consumption. ([bb0a3ce](https://bitbucket.org/atlassian/atlaskit/commits/bb0a3ce))
### Features

@@ -12,0 +22,0 @@

35

dist/bundle-cjs.js

@@ -77,3 +77,3 @@ module.exports = /******/

}), exports.CONSTRAIN_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = void 0;
var _skatejs = __webpack_require__(1), _Alignment = __webpack_require__(2), _Alignment2 = _interopRequireDefault(_Alignment), _akutilCommon = __webpack_require__(5), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
var _skatejs = __webpack_require__(1), _Alignment = __webpack_require__(2), _Alignment2 = _interopRequireDefault(_Alignment), _akutilCommon = __webpack_require__(7), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
attribute: "position",

@@ -193,21 +193,6 @@ 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" ],

}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
Object.defineProperty(exports, "__esModule", {
value: !0
});
var _createClass = function() {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0,
"value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function(Constructor, protoProps, staticProps) {
return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps),
Constructor;
};
}(), _popper = __webpack_require__(3), _popper2 = _interopRequireDefault(_popper), _objectAssign = __webpack_require__(4), _objectAssign2 = _interopRequireDefault(_objectAssign), Alignment = function() {
var _classCallCheck2 = __webpack_require__(3), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(4), _createClass3 = _interopRequireDefault(_createClass2), _popper = __webpack_require__(5), _popper2 = _interopRequireDefault(_popper), _objectAssign = __webpack_require__(6), _objectAssign2 = _interopRequireDefault(_objectAssign), Alignment = function() {
/**

@@ -218,3 +203,3 @@ * @description Create an alignment.

function Alignment(options) {
if (_classCallCheck(this, Alignment), options.target && options.elem) {
if ((0, _classCallCheck3["default"])(this, Alignment), options.target && options.elem) {
var _constructor = this.constructor, defaultPosition = _constructor.defaultPosition, getElement = _constructor.getElement, attachmentMap = _constructor.attachmentMap, opts = (0,

@@ -241,3 +226,3 @@ _objectAssign2["default"])({

*/
return _createClass(Alignment, [ {
return (0, _createClass3["default"])(Alignment, [ {
key: "destroy",

@@ -326,11 +311,19 @@ value: function() {

function(module, exports) {
module.exports = require("popper.js");
module.exports = require("babel-runtime/helpers/classCallCheck");
}, /* 4 */
/***/
function(module, exports) {
module.exports = require("object-assign");
module.exports = require("babel-runtime/helpers/createClass");
}, /* 5 */
/***/
function(module, exports) {
module.exports = require("popper.js");
}, /* 6 */
/***/
function(module, exports) {
module.exports = require("object-assign");
}, /* 7 */
/***/
function(module, exports) {
module.exports = require("akutil-common");
} ]);

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

module.exports=function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.CONSTRAIN_ATTRIBUTE_ENUM=e.POSITION_ATTRIBUTE_ENUM=void 0;var i=o(1),r=o(2),a=n(r),l=o(5),p=e.POSITION_ATTRIBUTE_ENUM={attribute:"position",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"],missingDefault:"right middle",invalidDefault:"right middle"},u=e.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"};e["default"]=(0,i.define)("ak-layer",{props:{position:(0,l.enumeration)(p)({attribute:!0}),constrain:(0,l.enumeration)(u)({attribute:!0}),target:{attribute:!0},onRender:{},boundariesElement:{attribute:!0},enableFlip:i.prop["boolean"]({attribute:!0})},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this}},attached:function(t){var e={elem:t.positionedDOM,target:t.target,position:t.position,enableFlip:t.enableFlip};t.boundariesElement&&(e.boundariesElement=t.boundariesElement),t.alignment=new a["default"](e)},detached:function(t){t.alignment&&t.alignment.destroy()},render:function(t){return t.alignment&&t.alignment.reposition(),t.onRender&&t.onRender(t),i.vdom.elementOpen("div",null,null,"ref",function(e){return t.positionedDOM=e}),i.vdom.elementVoid("slot"),i.vdom.elementClose("div")}})},function(t,e){t.exports=require("skatejs")},function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),a=o(3),l=n(a),p=o(4),u=n(p),s=function(){function t(e){if(i(this,t),e.target&&e.elem){var o=this.constructor,n=o.defaultPosition,r=o.getElement,a=o.attachmentMap,p=(0,u["default"])({position:n},e),s=a[p.position]?a[p.position].position:a[n].position,d={placement:s,modifiers:{}};e.boundariesElement&&(d.boundariesElement=r(e.boundariesElement)),e.enableFlip||(d.modifiers.preventOverflow={enabled:!1},d.modifiers.flip={enabled:!1}),this.popper=new l["default"](r(p.target),r(p.elem),d),p.onUpdate&&this.popper.onUpdate(p.onUpdate),p.onCreate&&this.popper.onCreate(p.onCreate)}}return r(t,[{key:"destroy",value:function(){return this.popper&&this.popper.destroy(),this}},{key:"reposition",value:function(){return this.popper&&this.popper.update(),this}}],[{key:"getElement",value:function(t){if("string"==typeof t){var e=document.querySelectorAll(t);return e[0]}return t||document.body}},{key:"defaultPosition",get:function(){return"right middle"}},{key:"attachmentMap",get:function(){return{"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"}}}}]),t}();e["default"]=s},function(t,e){t.exports=require("popper.js")},function(t,e){t.exports=require("object-assign")},function(t,e){t.exports=require("akutil-common")}]);
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){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.CONSTRAIN_ATTRIBUTE_ENUM=e.POSITION_ATTRIBUTE_ENUM=void 0;var n=o(1),r=o(2),a=i(r),l=o(7),p=e.POSITION_ATTRIBUTE_ENUM={attribute:"position",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"],missingDefault:"right middle",invalidDefault:"right middle"},s=e.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"};e["default"]=(0,n.define)("ak-layer",{props:{position:(0,l.enumeration)(p)({attribute:!0}),constrain:(0,l.enumeration)(s)({attribute:!0}),target:{attribute:!0},onRender:{},boundariesElement:{attribute:!0},enableFlip:n.prop["boolean"]({attribute:!0})},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this}},attached:function(t){var e={elem:t.positionedDOM,target:t.target,position:t.position,enableFlip:t.enableFlip};t.boundariesElement&&(e.boundariesElement=t.boundariesElement),t.alignment=new a["default"](e)},detached:function(t){t.alignment&&t.alignment.destroy()},render:function(t){return t.alignment&&t.alignment.reposition(),t.onRender&&t.onRender(t),n.vdom.elementOpen("div",null,null,"ref",function(e){return t.positionedDOM=e}),n.vdom.elementVoid("slot"),n.vdom.elementClose("div")}})},function(t,e){t.exports=require("skatejs")},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(3),r=i(n),a=o(4),l=i(a),p=o(5),s=i(p),u=o(6),d=i(u),m=function(){function t(e){if((0,r["default"])(this,t),e.target&&e.elem){var o=this.constructor,i=o.defaultPosition,n=o.getElement,a=o.attachmentMap,l=(0,d["default"])({position:i},e),p=a[l.position]?a[l.position].position:a[i].position,u={placement:p,modifiers:{}};e.boundariesElement&&(u.boundariesElement=n(e.boundariesElement)),e.enableFlip||(u.modifiers.preventOverflow={enabled:!1},u.modifiers.flip={enabled:!1}),this.popper=new s["default"](n(l.target),n(l.elem),u),l.onUpdate&&this.popper.onUpdate(l.onUpdate),l.onCreate&&this.popper.onCreate(l.onCreate)}}return(0,l["default"])(t,[{key:"destroy",value:function(){return this.popper&&this.popper.destroy(),this}},{key:"reposition",value:function(){return this.popper&&this.popper.update(),this}}],[{key:"getElement",value:function(t){if("string"==typeof t){var e=document.querySelectorAll(t);return e[0]}return t||document.body}},{key:"defaultPosition",get:function(){return"right middle"}},{key:"attachmentMap",get:function(){return{"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"}}}}]),t}();e["default"]=m},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("popper.js")},function(t,e){t.exports=require("object-assign")},function(t,e){t.exports=require("akutil-common")}]);
!function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("skatejs"), require("popper.js"), require("object-assign"), require("akutil-common")) : "function" == typeof define && define.amd ? define([ "skatejs", "popper.js", "object-assign", "akutil-common" ], factory) : "object" == typeof exports ? exports.akLayer = factory(require("skatejs"), require("popper.js"), require("object-assign"), require("akutil-common")) : root.akLayer = factory(root.skatejs, root["popper.js"], root["object-assign"], root["akutil-common"]);
}(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("skatejs"), require("babel-runtime/helpers/classCallCheck"), require("babel-runtime/helpers/createClass"), require("popper.js"), require("object-assign"), require("akutil-common")) : "function" == typeof define && define.amd ? define([ "skatejs", "babel-runtime/helpers/classCallCheck", "babel-runtime/helpers/createClass", "popper.js", "object-assign", "akutil-common" ], factory) : "object" == typeof exports ? exports.akLayer = factory(require("skatejs"), require("babel-runtime/helpers/classCallCheck"), require("babel-runtime/helpers/createClass"), require("popper.js"), require("object-assign"), require("akutil-common")) : root.akLayer = factory(root.skatejs, root["babel-runtime/helpers/classCallCheck"], root["babel-runtime/helpers/createClass"], root["popper.js"], root["object-assign"], root["akutil-common"]);
}(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__) {
/******/

@@ -80,3 +80,3 @@ return function(modules) {

}), exports.CONSTRAIN_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = void 0;
var _skatejs = __webpack_require__(1), _Alignment = __webpack_require__(2), _Alignment2 = _interopRequireDefault(_Alignment), _akutilCommon = __webpack_require__(5), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
var _skatejs = __webpack_require__(1), _Alignment = __webpack_require__(2), _Alignment2 = _interopRequireDefault(_Alignment), _akutilCommon = __webpack_require__(7), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
attribute: "position",

@@ -196,21 +196,6 @@ 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" ],

}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
Object.defineProperty(exports, "__esModule", {
value: !0
});
var _createClass = function() {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0,
"value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
return function(Constructor, protoProps, staticProps) {
return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps),
Constructor;
};
}(), _popper = __webpack_require__(3), _popper2 = _interopRequireDefault(_popper), _objectAssign = __webpack_require__(4), _objectAssign2 = _interopRequireDefault(_objectAssign), Alignment = function() {
var _classCallCheck2 = __webpack_require__(3), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(4), _createClass3 = _interopRequireDefault(_createClass2), _popper = __webpack_require__(5), _popper2 = _interopRequireDefault(_popper), _objectAssign = __webpack_require__(6), _objectAssign2 = _interopRequireDefault(_objectAssign), Alignment = function() {
/**

@@ -221,3 +206,3 @@ * @description Create an alignment.

function Alignment(options) {
if (_classCallCheck(this, Alignment), options.target && options.elem) {
if ((0, _classCallCheck3["default"])(this, Alignment), options.target && options.elem) {
var _constructor = this.constructor, defaultPosition = _constructor.defaultPosition, getElement = _constructor.getElement, attachmentMap = _constructor.attachmentMap, opts = (0,

@@ -244,3 +229,3 @@ _objectAssign2["default"])({

*/
return _createClass(Alignment, [ {
return (0, _createClass3["default"])(Alignment, [ {
key: "destroy",

@@ -338,3 +323,11 @@ value: function() {

module.exports = __WEBPACK_EXTERNAL_MODULE_5__;
}, /* 6 */
/***/
function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_6__;
}, /* 7 */
/***/
function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_7__;
} ]);
});

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("skatejs"),require("popper.js"),require("object-assign"),require("akutil-common")):"function"==typeof define&&define.amd?define(["skatejs","popper.js","object-assign","akutil-common"],e):"object"==typeof exports?exports.akLayer=e(require("skatejs"),require("popper.js"),require("object-assign"),require("akutil-common")):t.akLayer=e(t.skatejs,t["popper.js"],t["object-assign"],t["akutil-common"])}(this,function(t,e,o,n){return function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.CONSTRAIN_ATTRIBUTE_ENUM=e.POSITION_ATTRIBUTE_ENUM=void 0;var i=o(1),r=o(2),a=n(r),p=o(5),s=e.POSITION_ATTRIBUTE_ENUM={attribute:"position",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"],missingDefault:"right middle",invalidDefault:"right middle"},l=e.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"};e["default"]=(0,i.define)("ak-layer",{props:{position:(0,p.enumeration)(s)({attribute:!0}),constrain:(0,p.enumeration)(l)({attribute:!0}),target:{attribute:!0},onRender:{},boundariesElement:{attribute:!0},enableFlip:i.prop["boolean"]({attribute:!0})},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this}},attached:function(t){var e={elem:t.positionedDOM,target:t.target,position:t.position,enableFlip:t.enableFlip};t.boundariesElement&&(e.boundariesElement=t.boundariesElement),t.alignment=new a["default"](e)},detached:function(t){t.alignment&&t.alignment.destroy()},render:function(t){return t.alignment&&t.alignment.reposition(),t.onRender&&t.onRender(t),i.vdom.elementOpen("div",null,null,"ref",function(e){return t.positionedDOM=e}),i.vdom.elementVoid("slot"),i.vdom.elementClose("div")}})},function(e,o){e.exports=t},function(t,e,o){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),a=o(3),p=n(a),s=o(4),l=n(s),u=function(){function t(e){if(i(this,t),e.target&&e.elem){var o=this.constructor,n=o.defaultPosition,r=o.getElement,a=o.attachmentMap,s=(0,l["default"])({position:n},e),u=a[s.position]?a[s.position].position:a[n].position,d={placement:u,modifiers:{}};e.boundariesElement&&(d.boundariesElement=r(e.boundariesElement)),e.enableFlip||(d.modifiers.preventOverflow={enabled:!1},d.modifiers.flip={enabled:!1}),this.popper=new p["default"](r(s.target),r(s.elem),d),s.onUpdate&&this.popper.onUpdate(s.onUpdate),s.onCreate&&this.popper.onCreate(s.onCreate)}}return r(t,[{key:"destroy",value:function(){return this.popper&&this.popper.destroy(),this}},{key:"reposition",value:function(){return this.popper&&this.popper.update(),this}}],[{key:"getElement",value:function(t){if("string"==typeof t){var e=document.querySelectorAll(t);return e[0]}return t||document.body}},{key:"defaultPosition",get:function(){return"right middle"}},{key:"attachmentMap",get:function(){return{"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"}}}}]),t}();e["default"]=u},function(t,o){t.exports=e},function(t,e){t.exports=o},function(t,e){t.exports=n}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("skatejs"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("popper.js"),require("object-assign"),require("akutil-common")):"function"==typeof define&&define.amd?define(["skatejs","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","popper.js","object-assign","akutil-common"],t):"object"==typeof exports?exports.akLayer=t(require("skatejs"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("popper.js"),require("object-assign"),require("akutil-common")):e.akLayer=t(e.skatejs,e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["popper.js"],e["object-assign"],e["akutil-common"])}(this,function(e,t,o,i,n,r){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTRAIN_ATTRIBUTE_ENUM=t.POSITION_ATTRIBUTE_ENUM=void 0;var n=o(1),r=o(2),a=i(r),s=o(7),l=t.POSITION_ATTRIBUTE_ENUM={attribute:"position",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"],missingDefault:"right middle",invalidDefault:"right middle"},p=t.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"};t["default"]=(0,n.define)("ak-layer",{props:{position:(0,s.enumeration)(l)({attribute:!0}),constrain:(0,s.enumeration)(p)({attribute:!0}),target:{attribute:!0},onRender:{},boundariesElement:{attribute:!0},enableFlip:n.prop["boolean"]({attribute:!0})},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this}},attached:function(e){var t={elem:e.positionedDOM,target:e.target,position:e.position,enableFlip:e.enableFlip};e.boundariesElement&&(t.boundariesElement=e.boundariesElement),e.alignment=new a["default"](t)},detached:function(e){e.alignment&&e.alignment.destroy()},render:function(e){return e.alignment&&e.alignment.reposition(),e.onRender&&e.onRender(e),n.vdom.elementOpen("div",null,null,"ref",function(t){return e.positionedDOM=t}),n.vdom.elementVoid("slot"),n.vdom.elementClose("div")}})},function(t,o){t.exports=e},function(e,t,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o(3),r=i(n),a=o(4),s=i(a),l=o(5),p=i(l),u=o(6),m=i(u),d=function(){function e(t){if((0,r["default"])(this,e),t.target&&t.elem){var o=this.constructor,i=o.defaultPosition,n=o.getElement,a=o.attachmentMap,s=(0,m["default"])({position:i},t),l=a[s.position]?a[s.position].position:a[i].position,u={placement:l,modifiers:{}};t.boundariesElement&&(u.boundariesElement=n(t.boundariesElement)),t.enableFlip||(u.modifiers.preventOverflow={enabled:!1},u.modifiers.flip={enabled:!1}),this.popper=new p["default"](n(s.target),n(s.elem),u),s.onUpdate&&this.popper.onUpdate(s.onUpdate),s.onCreate&&this.popper.onCreate(s.onCreate)}}return(0,s["default"])(e,[{key:"destroy",value:function(){return this.popper&&this.popper.destroy(),this}},{key:"reposition",value:function(){return this.popper&&this.popper.update(),this}}],[{key:"getElement",value:function(e){if("string"==typeof e){var t=document.querySelectorAll(e);return t[0]}return e||document.body}},{key:"defaultPosition",get:function(){return"right middle"}},{key:"attachmentMap",get:function(){return{"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"}}}}]),e}();t["default"]=d},function(e,o){e.exports=t},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t){e.exports=r}])});
{
"name": "ak-layer",
"version": "57.0.1",
"version": "57.1.0",
"description": "A layer component",

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

"popper.js": "https://github.com/FezVrasta/popper.js#27069a2ed604a962d18e0e11b916ac9a1529e14a",
"skatejs": "^1.2.2"
"skatejs": "^1.2.4"
},

@@ -25,0 +25,0 @@ "repository": {

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