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.7.4 to 57.8.0

14

CHANGELOG.md

@@ -1,6 +0,16 @@

<a name="57.7.4"></a>
## 57.7.4 (2016-09-29)
<a name="57.8.0"></a>
# 57.8.0 (2016-09-30)
<a name="ak-layer@57.8.0"></a>
# ak-layer@57.8.0 (2016-09-30)
### Features
* **bump:** update popper.js to the released version instead of sha ([b1242a8](https://bitbucket.org/atlassian/atlaskit/commits/b1242a8))
<a name="ak-layer@57.7.3"></a>

@@ -7,0 +17,0 @@ ## ak-layer@57.7.3 (2016-09-29)

8

dist/bundle-cjs.js

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

}), exports.CONSTRAIN_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = void 0;
var _skatejs = __webpack_require__(1), _helpers = __webpack_require__(2), _akutilCommon = __webpack_require__(10), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
var _skatejs = __webpack_require__(1), _helpers = __webpack_require__(2), _akutilCommon = __webpack_require__(9), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
attribute: "position",

@@ -300,3 +300,3 @@ 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" ],

var _keys = __webpack_require__(3), _keys2 = _interopRequireDefault(_keys), _Alignment = __webpack_require__(4), _Alignment2 = _interopRequireDefault(_Alignment);
__webpack_require__(9), exports.handlePopperUpdate = handlePopperUpdate, exports.createNewAlignment = createNewAlignment,
exports.handlePopperUpdate = handlePopperUpdate, exports.createNewAlignment = createNewAlignment,
exports.reCreateAlignmentIfNeeded = reCreateAlignmentIfNeeded;

@@ -449,7 +449,3 @@ }, /* 3 */

function(module, exports) {
module.exports = require("core-js/fn/array/find");
}, /* 10 */
/***/
function(module, exports) {
module.exports = require("akutil-common");
} ]);

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

module.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTRAIN_ATTRIBUTE_ENUM=t.POSITION_ATTRIBUTE_ENUM=void 0;var i=n(1),o=n(2),r=n(10),a=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"};t.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"},t["default"]=(0,i.define)("ak-layer",{props:{position:(0,r.enumeration)(a)({attribute:!0,set:o.reCreateAlignmentIfNeeded}),target:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onRender:{},boundariesElement:{attribute:!0,set:o.reCreateAlignmentIfNeeded},enableFlip:i.prop["boolean"]({attribute:!0,set:o.reCreateAlignmentIfNeeded}),offset:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onUpdate:{initial:void 0},_isFlipped:i.prop["boolean"]()},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this},get isFlipped(){return!!this._isFlipped}},attached:function(e){e.alignment=(0,o.createNewAlignment)(e)},detached:function(e){e.alignment&&e.alignment.destroy()},render:function(e){return e.alignment&&e.alignment.reposition(),e.onRender&&e.onRender(e),i.vdom.elementOpen("div",null,null,"ref",function(t){return e.positionedDOM=t}),i.vdom.elementVoid("slot"),i.vdom.elementClose("div")}})},function(e,t){e.exports=require("skatejs")},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=d["default"].attachmentMap,n=(0,s["default"])(t).find(function(n){return t[n].position===e});return n}function r(e,t){if(e._isFlipped=!!t.flipped,e.onUpdate){var n={isFlipped:e._isFlipped,originalPosition:o(t.originalPlacement),actualPostion:o(t.placement)};e.onUpdate(n)}}function a(e){var t={elem:e.positionedDOM,target:e.target,position:e.position,enableFlip:e.enableFlip,offset:e.offset,onUpdate:function(t){return r(e,t)}};return e.boundariesElement&&(t.boundariesElement=e.boundariesElement),new d["default"](t)}function l(e,t){e.alignment&&(t.newValue!==t.oldValue?(e.alignment.destroy(),e.alignment=a(e)):e.alignment.reposition())}Object.defineProperty(t,"__esModule",{value:!0}),t.reCreateAlignmentIfNeeded=t.createNewAlignment=t.handlePopperUpdate=void 0;var p=n(3),s=i(p),u=n(4),d=i(u);n(9),t.handlePopperUpdate=r,t.createNewAlignment=a,t.reCreateAlignmentIfNeeded=l},function(e,t){e.exports=require("babel-runtime/core-js/object/keys")},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=i(o),a=n(6),l=i(a),p=n(7),s=i(p),u=n(8),d=i(u),f=function(){function e(t){if((0,r["default"])(this,e),t.target&&t.elem){var n=this.constructor,i=n.defaultPosition,o=n.getElement,a=n.attachmentMap,l=(0,d["default"])({position:i},t),p=a[l.position]?a[l.position].position:a[i].position,u={placement:p,modifiers:{}};t.boundariesElement&&(u.boundariesElement=o(t.boundariesElement)),t.offset&&(u.modifiers.offset={offset:t.offset}),t.enableFlip||(u.modifiers.preventOverflow={enabled:!1},u.modifiers.flip={enabled:!1}),this.popper=new s["default"](o(l.target),o(l.elem),u),l.onUpdate&&this.popper.onUpdate(l.onUpdate),l.onCreate&&this.popper.onCreate(l.onCreate)}}return(0,l["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"]=f},function(e,t){e.exports=require("babel-runtime/helpers/classCallCheck")},function(e,t){e.exports=require("babel-runtime/helpers/createClass")},function(e,t){e.exports=require("popper.js")},function(e,t){e.exports=require("object-assign")},function(e,t){e.exports=require("core-js/fn/array/find")},function(e,t){e.exports=require("akutil-common")}]);
module.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTRAIN_ATTRIBUTE_ENUM=t.POSITION_ATTRIBUTE_ENUM=void 0;var i=n(1),o=n(2),r=n(9),a=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"};t.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"},t["default"]=(0,i.define)("ak-layer",{props:{position:(0,r.enumeration)(a)({attribute:!0,set:o.reCreateAlignmentIfNeeded}),target:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onRender:{},boundariesElement:{attribute:!0,set:o.reCreateAlignmentIfNeeded},enableFlip:i.prop["boolean"]({attribute:!0,set:o.reCreateAlignmentIfNeeded}),offset:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onUpdate:{initial:void 0},_isFlipped:i.prop["boolean"]()},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this},get isFlipped(){return!!this._isFlipped}},attached:function(e){e.alignment=(0,o.createNewAlignment)(e)},detached:function(e){e.alignment&&e.alignment.destroy()},render:function(e){return e.alignment&&e.alignment.reposition(),e.onRender&&e.onRender(e),i.vdom.elementOpen("div",null,null,"ref",function(t){return e.positionedDOM=t}),i.vdom.elementVoid("slot"),i.vdom.elementClose("div")}})},function(e,t){e.exports=require("skatejs")},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=u["default"].attachmentMap,n=(0,s["default"])(t).find(function(n){return t[n].position===e});return n}function r(e,t){if(e._isFlipped=!!t.flipped,e.onUpdate){var n={isFlipped:e._isFlipped,originalPosition:o(t.originalPlacement),actualPostion:o(t.placement)};e.onUpdate(n)}}function a(e){var t={elem:e.positionedDOM,target:e.target,position:e.position,enableFlip:e.enableFlip,offset:e.offset,onUpdate:function(t){return r(e,t)}};return e.boundariesElement&&(t.boundariesElement=e.boundariesElement),new u["default"](t)}function l(e,t){e.alignment&&(t.newValue!==t.oldValue?(e.alignment.destroy(),e.alignment=a(e)):e.alignment.reposition())}Object.defineProperty(t,"__esModule",{value:!0}),t.reCreateAlignmentIfNeeded=t.createNewAlignment=t.handlePopperUpdate=void 0;var p=n(3),s=i(p),d=n(4),u=i(d);t.handlePopperUpdate=r,t.createNewAlignment=a,t.reCreateAlignmentIfNeeded=l},function(e,t){e.exports=require("babel-runtime/core-js/object/keys")},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=i(o),a=n(6),l=i(a),p=n(7),s=i(p),d=n(8),u=i(d),f=function(){function e(t){if((0,r["default"])(this,e),t.target&&t.elem){var n=this.constructor,i=n.defaultPosition,o=n.getElement,a=n.attachmentMap,l=(0,u["default"])({position:i},t),p=a[l.position]?a[l.position].position:a[i].position,d={placement:p,modifiers:{}};t.boundariesElement&&(d.boundariesElement=o(t.boundariesElement)),t.offset&&(d.modifiers.offset={offset:t.offset}),t.enableFlip||(d.modifiers.preventOverflow={enabled:!1},d.modifiers.flip={enabled:!1}),this.popper=new s["default"](o(l.target),o(l.elem),d),l.onUpdate&&this.popper.onUpdate(l.onUpdate),l.onCreate&&this.popper.onCreate(l.onCreate)}}return(0,l["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"]=f},function(e,t){e.exports=require("babel-runtime/helpers/classCallCheck")},function(e,t){e.exports=require("babel-runtime/helpers/createClass")},function(e,t){e.exports=require("popper.js")},function(e,t){e.exports=require("object-assign")},function(e,t){e.exports=require("akutil-common")}]);
!function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("skatejs"), require("babel-runtime/core-js/object/keys"), require("babel-runtime/helpers/classCallCheck"), require("babel-runtime/helpers/createClass"), require("popper.js"), require("object-assign"), require("core-js/fn/array/find"), require("akutil-common")) : "function" == typeof define && define.amd ? define([ "skatejs", "babel-runtime/core-js/object/keys", "babel-runtime/helpers/classCallCheck", "babel-runtime/helpers/createClass", "popper.js", "object-assign", "core-js/fn/array/find", "akutil-common" ], factory) : "object" == typeof exports ? exports.akLayer = factory(require("skatejs"), require("babel-runtime/core-js/object/keys"), require("babel-runtime/helpers/classCallCheck"), require("babel-runtime/helpers/createClass"), require("popper.js"), require("object-assign"), require("core-js/fn/array/find"), require("akutil-common")) : root.akLayer = factory(root.skatejs, root["babel-runtime/core-js/object/keys"], root["babel-runtime/helpers/classCallCheck"], root["babel-runtime/helpers/createClass"], root["popper.js"], root["object-assign"], root["core-js/fn/array/find"], root["akutil-common"]);
}(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("skatejs"), require("babel-runtime/core-js/object/keys"), 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/core-js/object/keys", "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/core-js/object/keys"), 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/core-js/object/keys"], 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_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__) {
/******/

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

}), exports.CONSTRAIN_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = void 0;
var _skatejs = __webpack_require__(1), _helpers = __webpack_require__(2), _akutilCommon = __webpack_require__(10), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
var _skatejs = __webpack_require__(1), _helpers = __webpack_require__(2), _akutilCommon = __webpack_require__(9), POSITION_ATTRIBUTE_ENUM = exports.POSITION_ATTRIBUTE_ENUM = {
attribute: "position",

@@ -303,3 +303,3 @@ 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" ],

var _keys = __webpack_require__(3), _keys2 = _interopRequireDefault(_keys), _Alignment = __webpack_require__(4), _Alignment2 = _interopRequireDefault(_Alignment);
__webpack_require__(9), exports.handlePopperUpdate = handlePopperUpdate, exports.createNewAlignment = createNewAlignment,
exports.handlePopperUpdate = handlePopperUpdate, exports.createNewAlignment = createNewAlignment,
exports.reCreateAlignmentIfNeeded = reCreateAlignmentIfNeeded;

@@ -453,7 +453,3 @@ }, /* 3 */

module.exports = __WEBPACK_EXTERNAL_MODULE_9__;
}, /* 10 */
/***/
function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_10__;
} ]);
});

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("skatejs"),require("babel-runtime/core-js/object/keys"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("popper.js"),require("object-assign"),require("core-js/fn/array/find"),require("akutil-common")):"function"==typeof define&&define.amd?define(["skatejs","babel-runtime/core-js/object/keys","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/createClass","popper.js","object-assign","core-js/fn/array/find","akutil-common"],t):"object"==typeof exports?exports.akLayer=t(require("skatejs"),require("babel-runtime/core-js/object/keys"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/createClass"),require("popper.js"),require("object-assign"),require("core-js/fn/array/find"),require("akutil-common")):e.akLayer=t(e.skatejs,e["babel-runtime/core-js/object/keys"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["popper.js"],e["object-assign"],e["core-js/fn/array/find"],e["akutil-common"])}(this,function(e,t,n,i,o,r,a,s){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTRAIN_ATTRIBUTE_ENUM=t.POSITION_ATTRIBUTE_ENUM=void 0;var i=n(1),o=n(2),r=n(10),a=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"};t.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"},t["default"]=(0,i.define)("ak-layer",{props:{position:(0,r.enumeration)(a)({attribute:!0,set:o.reCreateAlignmentIfNeeded}),target:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onRender:{},boundariesElement:{attribute:!0,set:o.reCreateAlignmentIfNeeded},enableFlip:i.prop["boolean"]({attribute:!0,set:o.reCreateAlignmentIfNeeded}),offset:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onUpdate:{initial:void 0},_isFlipped:i.prop["boolean"]()},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this},get isFlipped(){return!!this._isFlipped}},attached:function(e){e.alignment=(0,o.createNewAlignment)(e)},detached:function(e){e.alignment&&e.alignment.destroy()},render:function(e){return e.alignment&&e.alignment.reposition(),e.onRender&&e.onRender(e),i.vdom.elementOpen("div",null,null,"ref",function(t){return e.positionedDOM=t}),i.vdom.elementVoid("slot"),i.vdom.elementClose("div")}})},function(t,n){t.exports=e},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=d["default"].attachmentMap,n=(0,p["default"])(t).find(function(n){return t[n].position===e});return n}function r(e,t){if(e._isFlipped=!!t.flipped,e.onUpdate){var n={isFlipped:e._isFlipped,originalPosition:o(t.originalPlacement),actualPostion:o(t.placement)};e.onUpdate(n)}}function a(e){var t={elem:e.positionedDOM,target:e.target,position:e.position,enableFlip:e.enableFlip,offset:e.offset,onUpdate:function(t){return r(e,t)}};return e.boundariesElement&&(t.boundariesElement=e.boundariesElement),new d["default"](t)}function s(e,t){e.alignment&&(t.newValue!==t.oldValue?(e.alignment.destroy(),e.alignment=a(e)):e.alignment.reposition())}Object.defineProperty(t,"__esModule",{value:!0}),t.reCreateAlignmentIfNeeded=t.createNewAlignment=t.handlePopperUpdate=void 0;var l=n(3),p=i(l),u=n(4),d=i(u);n(9),t.handlePopperUpdate=r,t.createNewAlignment=a,t.reCreateAlignmentIfNeeded=s},function(e,n){e.exports=t},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=i(o),a=n(6),s=i(a),l=n(7),p=i(l),u=n(8),d=i(u),f=function(){function e(t){if((0,r["default"])(this,e),t.target&&t.elem){var n=this.constructor,i=n.defaultPosition,o=n.getElement,a=n.attachmentMap,s=(0,d["default"])({position:i},t),l=a[s.position]?a[s.position].position:a[i].position,u={placement:l,modifiers:{}};t.boundariesElement&&(u.boundariesElement=o(t.boundariesElement)),t.offset&&(u.modifiers.offset={offset:t.offset}),t.enableFlip||(u.modifiers.preventOverflow={enabled:!1},u.modifiers.flip={enabled:!1}),this.popper=new p["default"](o(s.target),o(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"]=f},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=a},function(e,t){e.exports=s}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("skatejs"),require("babel-runtime/core-js/object/keys"),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/core-js/object/keys","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/core-js/object/keys"),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/core-js/object/keys"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/createClass"],e["popper.js"],e["object-assign"],e["akutil-common"])}(this,function(e,t,n,i,o,r,a){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTRAIN_ATTRIBUTE_ENUM=t.POSITION_ATTRIBUTE_ENUM=void 0;var i=n(1),o=n(2),r=n(9),a=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"};t.CONSTRAIN_ATTRIBUTE_ENUM={attribute:"constrain",values:["window","scrollParent"],missingDefault:"window",invalidDefault:"window"},t["default"]=(0,i.define)("ak-layer",{props:{position:(0,r.enumeration)(a)({attribute:!0,set:o.reCreateAlignmentIfNeeded}),target:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onRender:{},boundariesElement:{attribute:!0,set:o.reCreateAlignmentIfNeeded},enableFlip:i.prop["boolean"]({attribute:!0,set:o.reCreateAlignmentIfNeeded}),offset:{attribute:!0,set:o.reCreateAlignmentIfNeeded},onUpdate:{initial:void 0},_isFlipped:i.prop["boolean"]()},prototype:{reposition:function(){return this.alignment&&this.alignment.reposition(),this},get isFlipped(){return!!this._isFlipped}},attached:function(e){e.alignment=(0,o.createNewAlignment)(e)},detached:function(e){e.alignment&&e.alignment.destroy()},render:function(e){return e.alignment&&e.alignment.reposition(),e.onRender&&e.onRender(e),i.vdom.elementOpen("div",null,null,"ref",function(t){return e.positionedDOM=t}),i.vdom.elementVoid("slot"),i.vdom.elementClose("div")}})},function(t,n){t.exports=e},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=d["default"].attachmentMap,n=(0,p["default"])(t).find(function(n){return t[n].position===e});return n}function r(e,t){if(e._isFlipped=!!t.flipped,e.onUpdate){var n={isFlipped:e._isFlipped,originalPosition:o(t.originalPlacement),actualPostion:o(t.placement)};e.onUpdate(n)}}function a(e){var t={elem:e.positionedDOM,target:e.target,position:e.position,enableFlip:e.enableFlip,offset:e.offset,onUpdate:function(t){return r(e,t)}};return e.boundariesElement&&(t.boundariesElement=e.boundariesElement),new d["default"](t)}function l(e,t){e.alignment&&(t.newValue!==t.oldValue?(e.alignment.destroy(),e.alignment=a(e)):e.alignment.reposition())}Object.defineProperty(t,"__esModule",{value:!0}),t.reCreateAlignmentIfNeeded=t.createNewAlignment=t.handlePopperUpdate=void 0;var s=n(3),p=i(s),u=n(4),d=i(u);t.handlePopperUpdate=r,t.createNewAlignment=a,t.reCreateAlignmentIfNeeded=l},function(e,n){e.exports=t},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=i(o),a=n(6),l=i(a),s=n(7),p=i(s),u=n(8),d=i(u),f=function(){function e(t){if((0,r["default"])(this,e),t.target&&t.elem){var n=this.constructor,i=n.defaultPosition,o=n.getElement,a=n.attachmentMap,l=(0,d["default"])({position:i},t),s=a[l.position]?a[l.position].position:a[i].position,u={placement:s,modifiers:{}};t.boundariesElement&&(u.boundariesElement=o(t.boundariesElement)),t.offset&&(u.modifiers.offset={offset:t.offset}),t.enableFlip||(u.modifiers.preventOverflow={enabled:!1},u.modifiers.flip={enabled:!1}),this.popper=new p["default"](o(l.target),o(l.elem),u),l.onUpdate&&this.popper.onUpdate(l.onUpdate),l.onCreate&&this.popper.onCreate(l.onCreate)}}return(0,l["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"]=f},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=a}])});
{
"name": "ak-layer",
"version": "57.7.4",
"version": "57.8.0",
"description": "A layer component",

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

"object-assign": "^4.1.0",
"popper.js": "https://github.com/FezVrasta/popper.js#27069a2ed604a962d18e0e11b916ac9a1529e14a",
"popper.js": "1.0.0-alpha.3",
"skatejs": "^1.2.5"

@@ -25,0 +25,0 @@ },

@@ -10,3 +10,3 @@ # Layer

Interact with a [live demo of the ak-layer component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-layer/57.7.4/).
Interact with a [live demo of the ak-layer component](https://aui-cdn.atlassian.com/atlaskit/stories/ak-layer/57.8.0/).

@@ -13,0 +13,0 @@ ## Installation

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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