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

@atlaskit/inline-dialog

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/inline-dialog - npm Package Compare versions

Comparing version 1.0.7 to 1.1.0

15

CHANGELOG.md

@@ -1,6 +0,17 @@

<a name="1.0.7"></a>
## 1.0.7 (2017-03-23)
<a name="1.1.0"></a>
# 1.1.0 (2017-03-28)
<a name="1.1.0"></a>
# 1.1.0 (2017-03-28)
### Features
* **component:** add onContentClick property to inline-dialog ([ff7404e](https://bitbucket.org/atlassian/atlaskit/commits/ff7404e))
* **component:** add onContentFocus and onContentBlur properties to inline-dialog ([9cc1663](https://bitbucket.org/atlassian/atlaskit/commits/9cc1663))
<a name="1.0.7"></a>

@@ -7,0 +18,0 @@ ## 1.0.7 (2017-03-23)

23

dist/bundle-cjs.js

@@ -91,2 +91,3 @@ module.exports = /******/

key: "render",
/* eslint-disable jsx-a11y/no-static-element-interactions */
value: function() {

@@ -98,3 +99,7 @@ var props = this.props, content = _react2.default.createElement("div", {

return _react2.default.createElement(_layer2.default, {
content: props.isOpen ? content : null,
content: props.isOpen ? _react2.default.createElement("div", {
onClick: props.onContentClick,
onFocusCapture: props.onContentFocus,
onBlurCapture: props.onContentBlur
}, content) : null,
position: props.position,

@@ -113,3 +118,6 @@ autoPosition: props.shouldFlip,

content: _react.PropTypes.node,
shouldFlip: _react.PropTypes.bool
shouldFlip: _react.PropTypes.bool,
onContentClick: _react.PropTypes.func,
onContentFocus: _react.PropTypes.func,
onContentBlur: _react.PropTypes.func
}, AKInlineDialog.defaultProps = {

@@ -119,3 +127,6 @@ position: "bottom center",

content: null,
shouldFlip: !1
shouldFlip: !1,
onContentClick: function() {},
onContentFocus: function() {},
onContentBlur: function() {}
}, exports.default = AKInlineDialog;

@@ -169,7 +180,7 @@ }, /* 5 */

// module
exports.push([ module.id, "._3rUQ9D3xAlIAZiM75HN52z{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
exports.push([ module.id, "._1Zuo4N3RBYteOkyiMGsiJt{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
// exports
exports.locals = {
inlineDialogContainer: "_3rUQ9D3xAlIAZiM75HN52z",
inlineDialogContainer: "_3rUQ9D3xAlIAZiM75HN52z"
inlineDialogContainer: "_1Zuo4N3RBYteOkyiMGsiJt",
inlineDialogContainer: "_1Zuo4N3RBYteOkyiMGsiJt"
};

@@ -176,0 +187,0 @@ }, /* 15 */

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

module.exports=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),s=r(6),a=n(s),u=r(7),l=n(u),p=r(8),f=n(p),c=r(9),d=n(c),h=r(10),b=n(h),v=r(11),m=n(v),x=r(12),g=r(13),y=n(g),C=parseInt(x.akGridSize,10),U="0 "+C,R=function(e){function t(){return(0,a.default)(this,t),(0,f.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=m.default.createElement("div",{className:y.default.inlineDialogContainer,tabIndex:"-1"},e.content);return m.default.createElement(b.default,{content:e.isOpen?t:null,position:e.position,autoPosition:e.shouldFlip,offset:U},m.default.createElement("div",null,e.children))}}]),t}(v.PureComponent);R.propTypes={position:v.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:v.PropTypes.bool,content:v.PropTypes.node,shouldFlip:v.PropTypes.bool},R.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1},t.default=R},function(e,t){e.exports=require("babel-runtime/core-js/object/get-prototype-of")},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("babel-runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("babel-runtime/helpers/inherits")},function(e,t){e.exports=require("@atlaskit/layer")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@atlaskit/util-shared-styles")},function(e,t,r){var n=r(14);"string"==typeof n&&(n=[[e.id,n,""]]),r(16)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(15)(),t.push([e.id,"._3rUQ9D3xAlIAZiM75HN52z{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_3rUQ9D3xAlIAZiM75HN52z",inlineDialogContainer:"_3rUQ9D3xAlIAZiM75HN52z"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=d[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(l(n.parts[i],t))}else{for(var s=[],i=0;i<n.parts.length;i++)s.push(l(n.parts[i],t));d[n.id]={id:n.id,refs:1,parts:s}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],s=o[1],a=o[2],u=o[3],l={css:s,media:a,sourceMap:u};r[i]?r[i].parts.push(l):t.push(r[i]={id:i,parts:[l]})}return t}function i(e,t){var r=v(),n=g[g.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var r,n,o;if(t.singleton){var i=x++;r=m||(m=a(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=u(t),n=c.bind(null,r),o=function(){s(r),r.href&&URL.revokeObjectURL(r.href)}):(r=a(t),n=f.bind(null,r),o=function(){s(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function p(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function c(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,x=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],s=0;s<r.length;s++){var a=r[s],u=d[a.id];u.refs--,i.push(u)}if(e){var l=o(e);n(l,t)}for(var s=0;s<i.length;s++){var u=i[s];if(0===u.refs){for(var p=0;p<u.parts.length;p++)u.parts[p]();delete d[u.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}]);
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].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){e.exports=n(4)},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),i=r(o),s=n(6),u=r(s),a=n(7),l=r(a),p=n(8),f=r(p),c=n(9),d=r(c),h=n(10),b=r(h),v=n(11),m=r(v),x=n(12),g=n(13),y=r(g),C=parseInt(x.akGridSize,10),k="0 "+C,R=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=m.default.createElement("div",{className:y.default.inlineDialogContainer,tabIndex:"-1"},e.content);return m.default.createElement(b.default,{content:e.isOpen?m.default.createElement("div",{onClick:e.onContentClick,onFocusCapture:e.onContentFocus,onBlurCapture:e.onContentBlur},t):null,position:e.position,autoPosition:e.shouldFlip,offset:k},m.default.createElement("div",null,e.children))}}]),t}(v.PureComponent);R.propTypes={position:v.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:v.PropTypes.bool,content:v.PropTypes.node,shouldFlip:v.PropTypes.bool,onContentClick:v.PropTypes.func,onContentFocus:v.PropTypes.func,onContentBlur:v.PropTypes.func},R.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1,onContentClick:function(){},onContentFocus:function(){},onContentBlur:function(){}},t.default=R},function(e,t){e.exports=require("babel-runtime/core-js/object/get-prototype-of")},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("babel-runtime/helpers/possibleConstructorReturn")},function(e,t){e.exports=require("babel-runtime/helpers/inherits")},function(e,t){e.exports=require("@atlaskit/layer")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@atlaskit/util-shared-styles")},function(e,t,n){var r=n(14);"string"==typeof r&&(r=[[e.id,r,""]]),n(16)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(15)(),t.push([e.id,"._1Zuo4N3RBYteOkyiMGsiJt{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_1Zuo4N3RBYteOkyiMGsiJt",inlineDialogContainer:"_1Zuo4N3RBYteOkyiMGsiJt"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(l(r.parts[i],t))}else{for(var s=[],i=0;i<r.parts.length;i++)s.push(l(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:s}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],s=o[1],u=o[2],a=o[3],l={css:s,media:u,sourceMap:a};n[i]?n[i].parts.push(l):t.push(n[i]={id:i,parts:[l]})}return t}function i(e,t){var n=v(),r=g[g.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function u(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function l(e,t){var n,r,o;if(t.singleton){var i=x++;n=m||(m=u(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(t),r=c.bind(null,n),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=f.bind(null,n),o=function(){s(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function p(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function c(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,x=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],s=0;s<n.length;s++){var u=n[s],a=d[u.id];a.refs--,i.push(a)}if(e){var l=o(e);r(l,t)}for(var s=0;s<i.length;s++){var a=i[s];if(0===a.refs){for(var p=0;p<a.parts.length;p++)a.parts[p]();delete d[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()}]);

@@ -94,2 +94,3 @@ !function(root, factory) {

key: "render",
/* eslint-disable jsx-a11y/no-static-element-interactions */
value: function() {

@@ -101,3 +102,7 @@ var props = this.props, content = _react2.default.createElement("div", {

return _react2.default.createElement(_layer2.default, {
content: props.isOpen ? content : null,
content: props.isOpen ? _react2.default.createElement("div", {
onClick: props.onContentClick,
onFocusCapture: props.onContentFocus,
onBlurCapture: props.onContentBlur
}, content) : null,
position: props.position,

@@ -116,3 +121,6 @@ autoPosition: props.shouldFlip,

content: _react.PropTypes.node,
shouldFlip: _react.PropTypes.bool
shouldFlip: _react.PropTypes.bool,
onContentClick: _react.PropTypes.func,
onContentFocus: _react.PropTypes.func,
onContentBlur: _react.PropTypes.func
}, AKInlineDialog.defaultProps = {

@@ -122,3 +130,6 @@ position: "bottom center",

content: null,
shouldFlip: !1
shouldFlip: !1,
onContentClick: function() {},
onContentFocus: function() {},
onContentBlur: function() {}
}, exports.default = AKInlineDialog;

@@ -172,7 +183,7 @@ }, /* 5 */

// module
exports.push([ module.id, "._3rUQ9D3xAlIAZiM75HN52z{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
exports.push([ module.id, "._1Zuo4N3RBYteOkyiMGsiJt{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}", "" ]),
// exports
exports.locals = {
inlineDialogContainer: "_3rUQ9D3xAlIAZiM75HN52z",
inlineDialogContainer: "_3rUQ9D3xAlIAZiM75HN52z"
inlineDialogContainer: "_1Zuo4N3RBYteOkyiMGsiJt",
inlineDialogContainer: "_1Zuo4N3RBYteOkyiMGsiJt"
};

@@ -179,0 +190,0 @@ }, /* 15 */

@@ -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("@atlaskit/layer"),require("react"),require("@atlaskit/util-shared-styles")):"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","@atlaskit/layer","react","@atlaskit/util-shared-styles"],t):"object"==typeof exports?exports["@atlaskit/inlineDialog"]=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("@atlaskit/layer"),require("react"),require("@atlaskit/util-shared-styles")):e["@atlaskit/inlineDialog"]=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["@atlaskit/layer"],e.react,e["@atlaskit/util-shared-styles"])}(this,function(e,t,r,n,o,i,s,l){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),s=r(6),l=n(s),a=r(7),u=n(a),p=r(8),f=n(p),c=r(9),d=n(c),h=r(10),b=n(h),m=r(11),v=n(m),x=r(12),g=r(13),y=n(g),C=parseInt(x.akGridSize,10),k="0 "+C,j=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=v.default.createElement("div",{className:y.default.inlineDialogContainer,tabIndex:"-1"},e.content);return v.default.createElement(b.default,{content:e.isOpen?t:null,position:e.position,autoPosition:e.shouldFlip,offset:k},v.default.createElement("div",null,e.children))}}]),t}(m.PureComponent);j.propTypes={position:m.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:m.PropTypes.bool,content:m.PropTypes.node,shouldFlip:m.PropTypes.bool},j.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1},t.default=j},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,r){var n=r(14);"string"==typeof n&&(n=[[e.id,n,""]]),r(16)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(15)(),t.push([e.id,"._3rUQ9D3xAlIAZiM75HN52z{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_3rUQ9D3xAlIAZiM75HN52z",inlineDialogContainer:"_3rUQ9D3xAlIAZiM75HN52z"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=d[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var s=[],i=0;i<n.parts.length;i++)s.push(u(n.parts[i],t));d[n.id]={id:n.id,refs:1,parts:s}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],s=o[1],l=o[2],a=o[3],u={css:s,media:l,sourceMap:a};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=m(),n=g[g.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var i=x++;r=v||(v=l(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=a(t),n=c.bind(null,r),o=function(){s(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=f.bind(null,r),o=function(){s(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function p(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function c(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,x=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],s=0;s<r.length;s++){var l=r[s],a=d[l.id];a.refs--,i.push(a)}if(e){var u=o(e);n(u,t)}for(var s=0;s<i.length;s++){var a=i[s];if(0===a.refs){for(var p=0;p<a.parts.length;p++)a.parts[p]();delete d[a.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}])});
!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("@atlaskit/layer"),require("react"),require("@atlaskit/util-shared-styles")):"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","@atlaskit/layer","react","@atlaskit/util-shared-styles"],t):"object"==typeof exports?exports["@atlaskit/inlineDialog"]=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("@atlaskit/layer"),require("react"),require("@atlaskit/util-shared-styles")):e["@atlaskit/inlineDialog"]=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["@atlaskit/layer"],e.react,e["@atlaskit/util-shared-styles"])}(this,function(e,t,r,n,o,i,s,l){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(4)},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(5),i=n(o),s=r(6),l=n(s),a=r(7),u=n(a),p=r(8),c=n(p),f=r(9),d=n(f),h=r(10),b=n(h),m=r(11),v=n(m),y=r(12),g=r(13),C=n(g),x=parseInt(y.akGridSize,10),k="0 "+x,j=function(e){function t(){return(0,l.default)(this,t),(0,c.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=v.default.createElement("div",{className:C.default.inlineDialogContainer,tabIndex:"-1"},e.content);return v.default.createElement(b.default,{content:e.isOpen?v.default.createElement("div",{onClick:e.onContentClick,onFocusCapture:e.onContentFocus,onBlurCapture:e.onContentBlur},t):null,position:e.position,autoPosition:e.shouldFlip,offset:k},v.default.createElement("div",null,e.children))}}]),t}(m.PureComponent);j.propTypes={position:m.PropTypes.oneOf(["top left","top center","top right","right top","right middle","right bottom","bottom left","bottom center","bottom right","left top","left middle","left bottom"]),isOpen:m.PropTypes.bool,content:m.PropTypes.node,shouldFlip:m.PropTypes.bool,onContentClick:m.PropTypes.func,onContentFocus:m.PropTypes.func,onContentBlur:m.PropTypes.func},j.defaultProps={position:"bottom center",isOpen:!1,content:null,shouldFlip:!1,onContentClick:function(){},onContentFocus:function(){},onContentBlur:function(){}},t.default=j},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,r){var n=r(14);"string"==typeof n&&(n=[[e.id,n,""]]),r(16)(n,{}),n.locals&&(e.exports=n.locals)},function(e,t,r){t=e.exports=r(15)(),t.push([e.id,"._1Zuo4N3RBYteOkyiMGsiJt{background:#fff;border-radius:3px;border:1px solid #dfe1e6;box-shadow:0 4px 8px -2px rgba(9,30,66,.28),0 0 1px rgba(9,30,66,.3);box-sizing:border-box;max-height:480px;max-width:496px;padding:24px}",""]),t.locals={inlineDialogContainer:"_1Zuo4N3RBYteOkyiMGsiJt",inlineDialogContainer:"_1Zuo4N3RBYteOkyiMGsiJt"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=d[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var s=[],i=0;i<n.parts.length;i++)s.push(u(n.parts[i],t));d[n.id]={id:n.id,refs:1,parts:s}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],s=o[1],l=o[2],a=o[3],u={css:s,media:l,sourceMap:a};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=m(),n=g[g.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),g.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function s(e){e.parentNode.removeChild(e);var t=g.indexOf(e);t>=0&&g.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var i=y++;r=v||(v=l(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=a(t),n=f.bind(null,r),o=function(){s(r),r.href&&URL.revokeObjectURL(r.href)}):(r=l(t),n=c.bind(null,r),o=function(){s(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function p(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=C(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function c(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function f(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},b=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,y=0,g=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=b()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],s=0;s<r.length;s++){var l=r[s],a=d[l.id];a.refs--,i.push(a)}if(e){var u=o(e);n(u,t)}for(var s=0;s<i.length;s++){var a=i[s];if(0===a.refs){for(var p=0;p<a.parts.length;p++)a.parts[p]();delete d[a.id]}}}};var C=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()}])});
{
"name": "@atlaskit/inline-dialog",
"version": "1.0.7",
"version": "1.1.0",
"config": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -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,@atlaskit/inline-dialog,@atlaskit/inline-dialog@1.0.7)
[![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,@atlaskit/inline-dialog,@atlaskit/inline-dialog@1.1.0)

@@ -16,3 +16,3 @@ # Inline Dialog

Interact with a [live demo of the @atlaskit/inline-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/inline-dialog/1.0.7/).
Interact with a [live demo of the @atlaskit/inline-dialog component](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/inline-dialog/1.1.0/).

@@ -75,3 +75,3 @@ ## Installation

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

@@ -78,0 +78,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