@atlaskit/analytics
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -1,6 +0,11 @@ | ||
<a name="2.3.1"></a> | ||
## 2.3.1 (2017-10-22) | ||
<a name="2.3.2"></a> | ||
## 2.3.2 (2017-10-24) | ||
<a name="2.3.2"></a> | ||
## 2.3.2 (2017-10-24) | ||
<a name="2.3.1"></a> | ||
@@ -23,2 +28,3 @@ ## 2.3.1 (2017-10-22) | ||
* **component:** lint fix. Remove bad comment. ([311ca12](https://bitbucket.org/atlassian/atlaskit/commits/311ca12)) | ||
* **component:** update the cleanprops function ([e27ace3](https://bitbucket.org/atlassian/atlaskit/commits/e27ace3)) | ||
@@ -25,0 +31,0 @@ |
@@ -316,3 +316,4 @@ module.exports = /******/ | ||
var cleanedProps = (props.analyticsId, props.analyticsData, props.delegateAnalyticsEvent, | ||
props.fireAnalyticsEvent, props.firePrivateAnalyticsEvent, (0, _objectWithoutProperties3.default)(props, [ "analyticsId", "analyticsData", "delegateAnalyticsEvent", "fireAnalyticsEvent", "firePrivateAnalyticsEvent" ])); | ||
props.fireAnalyticsEvent, props.firePrivateAnalyticsEvent, props.getParentAnalyticsData, | ||
(0, _objectWithoutProperties3.default)(props, [ "analyticsId", "analyticsData", "delegateAnalyticsEvent", "fireAnalyticsEvent", "firePrivateAnalyticsEvent", "getParentAnalyticsData" ])); | ||
/* eslint-enable no-unused-vars */ | ||
@@ -319,0 +320,0 @@ return cleanedProps; |
@@ -1,1 +0,1 @@ | ||
module.exports=function(t){function e(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return t[a].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.withAnalytics=e.cleanProps=e.AnalyticsListener=e.AnalyticsDelegate=e.AnalyticsDecorator=void 0;var r=n(2),i=a(r),l=n(12),o=a(l),u=n(13),c=a(u),s=n(14),f=a(s),d=n(16),y=a(d);e.AnalyticsDecorator=i.default,e.AnalyticsDelegate=o.default,e.AnalyticsListener=c.default,e.cleanProps=f.default,e.withAnalytics=y.default},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=a(r),l=n(4),o=a(l),u=n(5),c=a(u),s=n(6),f=a(s),d=n(7),y=a(d),p=n(8),v=a(p),h=n(9),A=a(h),E=n(10),g=a(E),x=n(11),P=a(x),b=function(t){function e(){var n,a,r;(0,f.default)(this,e);for(var l=arguments.length,u=Array(l),s=0;s<l;s++)u[s]=arguments[s];return n=a=(0,y.default)(this,t.call.apply(t,[this].concat(u))),a.getDecoratedAnalyticsData=function(t,e,n){var r=a.props,l=r.data,u=r.getData,s=r.match,f=r.matchPrivate,d=(0,c.default)({},e);return f===n&&(0,P.default)(s,t)&&("object"===("undefined"==typeof l?"undefined":(0,o.default)(l))&&(0,i.default)(d,l),"function"==typeof u&&(0,i.default)(d,u(t,d))),d},a.onAnalyticsEvent=function(t,e,n){var r=a.context.onAnalyticsEvent;if("function"==typeof r){var i=a.getDecoratedAnalyticsData(t,e,n);r(t,i,n)}},a.getParentAnalyticsData=function(t,e){var n=a.getDecoratedAnalyticsData(t,{},e),r=a.context.getParentAnalyticsData;return"function"==typeof r&&(0,i.default)(n,r(t,e)),n},r=n,(0,y.default)(a,r)}return(0,v.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData}},e.prototype.render=function(){var t=this.props.children;return g.default.Children.only(t)},e}(E.Component);b.propTypes={data:A.default.object,getData:A.default.func,match:A.default.oneOfType([A.default.string,A.default.func,A.default.instanceOf(RegExp)]),matchPrivate:A.default.bool},b.defaultProps={match:"*",matchPrivate:!1},b.contextTypes={onAnalyticsEvent:A.default.func,getParentAnalyticsData:A.default.func},b.childContextTypes={onAnalyticsEvent:A.default.func,getParentAnalyticsData:A.default.func},e.default=b},function(t,e){t.exports=require("babel-runtime/core-js/object/assign")},function(t,e){t.exports=require("babel-runtime/helpers/typeof")},function(t,e){t.exports=require("babel-runtime/helpers/extends")},function(t,e){t.exports=require("babel-runtime/helpers/classCallCheck")},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("prop-types")},function(t,e){t.exports=require("react")},function(t,e){"use strict";function n(t,e){return"*"===t||void 0===e||("string"==typeof t?a.test(t)?e.substr(0,t.length)===t:e===t:"function"==typeof t?t(e):t instanceof RegExp&&t.test(e))}Object.defineProperty(e,"__esModule",{value:!0});var a=/\.$/;e.default=n},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),c=a(u),s=n(8),f=a(s),d=n(9),y=a(d),p=n(10),v=a(p),h=function(t){function e(){var n,a,r;(0,o.default)(this,e);for(var l=arguments.length,u=Array(l),s=0;s<l;s++)u[s]=arguments[s];return n=a=(0,c.default)(this,t.call.apply(t,[this].concat(u))),a.onAnalyticsEvent=function(t,e,n){var r=a.props.delegateAnalyticsEvent,l=(0,i.default)({},e);r&&r(t,l,n);var o=a.context.onAnalyticsEvent;"function"==typeof o&&o(t,e,n)},r=n,(0,c.default)(a,r)}return(0,f.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},e.prototype.render=function(){var t=this.props.children;return v.default.Children.only(t)},e}(p.Component);h.propTypes={delegateAnalyticsEvent:y.default.func},h.contextTypes={onAnalyticsEvent:y.default.func},h.childContextTypes={onAnalyticsEvent:y.default.func},e.default=h},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),c=a(u),s=n(8),f=a(s),d=n(9),y=a(d),p=n(10),v=a(p),h=n(11),A=a(h),E=function(t){function e(){var n,a,r;(0,o.default)(this,e);for(var l=arguments.length,u=Array(l),s=0;s<l;s++)u[s]=arguments[s];return n=a=(0,c.default)(this,t.call.apply(t,[this].concat(u))),a.onAnalyticsEvent=function(t,e,n){var r=a.props,l=r.onEvent,o=r.match,u=r.matchPrivate;if(u===n&&(0,A.default)(o,t)&&"function"==typeof l){var c=(0,i.default)({},e);l(t,c)}var s=a.context.onAnalyticsEvent;"function"==typeof s&&s(t,e,n)},r=n,(0,c.default)(a,r)}return(0,f.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},e.prototype.render=function(){var t=this.props.children;return v.default.Children.only(t)},e}(p.Component);E.propTypes={onEvent:y.default.func.isRequired,match:y.default.oneOfType([y.default.string,y.default.func,y.default.instanceOf(RegExp)]),matchPrivate:y.default.bool},E.defaultProps={match:"*",matchPrivate:!1},E.contextTypes={onAnalyticsEvent:y.default.func},E.childContextTypes={onAnalyticsEvent:y.default.func},e.default=E},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=(t.analyticsId,t.analyticsData,t.delegateAnalyticsEvent,t.fireAnalyticsEvent,t.firePrivateAnalyticsEvent,(0,l.default)(t,["analyticsId","analyticsData","delegateAnalyticsEvent","fireAnalyticsEvent","firePrivateAnalyticsEvent"]));return e}Object.defineProperty(e,"__esModule",{value:!0});var i=n(15),l=a(i);e.default=r},function(t,e){t.exports=require("babel-runtime/helpers/objectWithoutProperties")},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=a(r),l=n(15),o=a(l),u=n(5),c=a(u),s=n(6),f=a(s),d=n(7),y=a(d),p=n(8),v=a(p),h=n(10),A=a(h),E=n(9),g=a(E),x=function(t){var e,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments[3];return n=e=function(e){function n(){var t,a,r;(0,f.default)(this,n);for(var i=arguments.length,l=Array(i),o=0;o<i;o++)l[o]=arguments[o];return t=a=(0,y.default)(this,e.call.apply(e,[this].concat(l))),a.delegateAnalyticsEvent=function(t,e,n){var r=a.context.onAnalyticsEvent;r&&r(t,e,n)},a.fireAnalyticsEvent=function(t,e){var n=a.props,r=n.analyticsData,i=n.analyticsId,l=a.context.onAnalyticsEvent;if(i&&l){var o=(0,c.default)({},r,e);l(i+"."+t,o,!1)}},a.privateAnalyticsEvent=function(t,e){var n=a.context.onAnalyticsEvent;n&&n(""+t,e,!0)},a.getParentAnalyticsData=function(t){var e=a.context.getParentAnalyticsData,n={};if("function"==typeof e){var r=a.props.analyticsId;n=e(r+"."+t,!1)}return n},r=t,(0,y.default)(a,r)}return(0,v.default)(n,e),n.prototype.componentWillMount=function(){this.evaluatedMap="function"==typeof a?a(this.fireAnalyticsEvent):a},n.prototype.render=function(){var e=this,n=this.props,a=n.analyticsId,r=(n.analyticsData,(0,o.default)(n,["analyticsId","analyticsData"]));return(0,i.default)(this.evaluatedMap).forEach(function(t){var n=e.evaluatedMap[t],a=r[t];r[t]=function(){"function"==typeof n?n.apply(void 0,arguments):e.fireAnalyticsEvent(n),"function"==typeof a&&a.apply(void 0,arguments)}}),A.default.createElement(t,(0,c.default)({fireAnalyticsEvent:this.fireAnalyticsEvent,firePrivateAnalyticsEvent:this.privateAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData,delegateAnalyticsEvent:l?this.delegateAnalyticsEvent:void 0,analyticsId:a,ref:this.props.innerRef},r))},n}(h.Component),e.displayName="WithAnalytics("+(t.displayName||t.name)+")",e.contextTypes={onAnalyticsEvent:g.default.func,getParentAnalyticsData:g.default.func},e.defaultProps={analyticsId:r.analyticsId,analyticsData:r.analyticsData},n};e.default=x},function(t,e){t.exports=require("babel-runtime/core-js/object/keys")}]); | ||
module.exports=function(t){function e(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return t[a].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.withAnalytics=e.cleanProps=e.AnalyticsListener=e.AnalyticsDelegate=e.AnalyticsDecorator=void 0;var r=n(2),i=a(r),l=n(12),o=a(l),u=n(13),c=a(u),s=n(14),f=a(s),d=n(16),y=a(d);e.AnalyticsDecorator=i.default,e.AnalyticsDelegate=o.default,e.AnalyticsListener=c.default,e.cleanProps=f.default,e.withAnalytics=y.default},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=a(r),l=n(4),o=a(l),u=n(5),c=a(u),s=n(6),f=a(s),d=n(7),y=a(d),p=n(8),v=a(p),h=n(9),A=a(h),E=n(10),g=a(E),x=n(11),P=a(x),b=function(t){function e(){var n,a,r;(0,f.default)(this,e);for(var l=arguments.length,u=Array(l),s=0;s<l;s++)u[s]=arguments[s];return n=a=(0,y.default)(this,t.call.apply(t,[this].concat(u))),a.getDecoratedAnalyticsData=function(t,e,n){var r=a.props,l=r.data,u=r.getData,s=r.match,f=r.matchPrivate,d=(0,c.default)({},e);return f===n&&(0,P.default)(s,t)&&("object"===("undefined"==typeof l?"undefined":(0,o.default)(l))&&(0,i.default)(d,l),"function"==typeof u&&(0,i.default)(d,u(t,d))),d},a.onAnalyticsEvent=function(t,e,n){var r=a.context.onAnalyticsEvent;if("function"==typeof r){var i=a.getDecoratedAnalyticsData(t,e,n);r(t,i,n)}},a.getParentAnalyticsData=function(t,e){var n=a.getDecoratedAnalyticsData(t,{},e),r=a.context.getParentAnalyticsData;return"function"==typeof r&&(0,i.default)(n,r(t,e)),n},r=n,(0,y.default)(a,r)}return(0,v.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData}},e.prototype.render=function(){var t=this.props.children;return g.default.Children.only(t)},e}(E.Component);b.propTypes={data:A.default.object,getData:A.default.func,match:A.default.oneOfType([A.default.string,A.default.func,A.default.instanceOf(RegExp)]),matchPrivate:A.default.bool},b.defaultProps={match:"*",matchPrivate:!1},b.contextTypes={onAnalyticsEvent:A.default.func,getParentAnalyticsData:A.default.func},b.childContextTypes={onAnalyticsEvent:A.default.func,getParentAnalyticsData:A.default.func},e.default=b},function(t,e){t.exports=require("babel-runtime/core-js/object/assign")},function(t,e){t.exports=require("babel-runtime/helpers/typeof")},function(t,e){t.exports=require("babel-runtime/helpers/extends")},function(t,e){t.exports=require("babel-runtime/helpers/classCallCheck")},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("prop-types")},function(t,e){t.exports=require("react")},function(t,e){"use strict";function n(t,e){return"*"===t||void 0===e||("string"==typeof t?a.test(t)?e.substr(0,t.length)===t:e===t:"function"==typeof t?t(e):t instanceof RegExp&&t.test(e))}Object.defineProperty(e,"__esModule",{value:!0});var a=/\.$/;e.default=n},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),c=a(u),s=n(8),f=a(s),d=n(9),y=a(d),p=n(10),v=a(p),h=function(t){function e(){var n,a,r;(0,o.default)(this,e);for(var l=arguments.length,u=Array(l),s=0;s<l;s++)u[s]=arguments[s];return n=a=(0,c.default)(this,t.call.apply(t,[this].concat(u))),a.onAnalyticsEvent=function(t,e,n){var r=a.props.delegateAnalyticsEvent,l=(0,i.default)({},e);r&&r(t,l,n);var o=a.context.onAnalyticsEvent;"function"==typeof o&&o(t,e,n)},r=n,(0,c.default)(a,r)}return(0,f.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},e.prototype.render=function(){var t=this.props.children;return v.default.Children.only(t)},e}(p.Component);h.propTypes={delegateAnalyticsEvent:y.default.func},h.contextTypes={onAnalyticsEvent:y.default.func},h.childContextTypes={onAnalyticsEvent:y.default.func},e.default=h},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),c=a(u),s=n(8),f=a(s),d=n(9),y=a(d),p=n(10),v=a(p),h=n(11),A=a(h),E=function(t){function e(){var n,a,r;(0,o.default)(this,e);for(var l=arguments.length,u=Array(l),s=0;s<l;s++)u[s]=arguments[s];return n=a=(0,c.default)(this,t.call.apply(t,[this].concat(u))),a.onAnalyticsEvent=function(t,e,n){var r=a.props,l=r.onEvent,o=r.match,u=r.matchPrivate;if(u===n&&(0,A.default)(o,t)&&"function"==typeof l){var c=(0,i.default)({},e);l(t,c)}var s=a.context.onAnalyticsEvent;"function"==typeof s&&s(t,e,n)},r=n,(0,c.default)(a,r)}return(0,f.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},e.prototype.render=function(){var t=this.props.children;return v.default.Children.only(t)},e}(p.Component);E.propTypes={onEvent:y.default.func.isRequired,match:y.default.oneOfType([y.default.string,y.default.func,y.default.instanceOf(RegExp)]),matchPrivate:y.default.bool},E.defaultProps={match:"*",matchPrivate:!1},E.contextTypes={onAnalyticsEvent:y.default.func},E.childContextTypes={onAnalyticsEvent:y.default.func},e.default=E},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=(t.analyticsId,t.analyticsData,t.delegateAnalyticsEvent,t.fireAnalyticsEvent,t.firePrivateAnalyticsEvent,t.getParentAnalyticsData,(0,l.default)(t,["analyticsId","analyticsData","delegateAnalyticsEvent","fireAnalyticsEvent","firePrivateAnalyticsEvent","getParentAnalyticsData"]));return e}Object.defineProperty(e,"__esModule",{value:!0});var i=n(15),l=a(i);e.default=r},function(t,e){t.exports=require("babel-runtime/helpers/objectWithoutProperties")},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=a(r),l=n(15),o=a(l),u=n(5),c=a(u),s=n(6),f=a(s),d=n(7),y=a(d),p=n(8),v=a(p),h=n(10),A=a(h),E=n(9),g=a(E),x=function(t){var e,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments[3];return n=e=function(e){function n(){var t,a,r;(0,f.default)(this,n);for(var i=arguments.length,l=Array(i),o=0;o<i;o++)l[o]=arguments[o];return t=a=(0,y.default)(this,e.call.apply(e,[this].concat(l))),a.delegateAnalyticsEvent=function(t,e,n){var r=a.context.onAnalyticsEvent;r&&r(t,e,n)},a.fireAnalyticsEvent=function(t,e){var n=a.props,r=n.analyticsData,i=n.analyticsId,l=a.context.onAnalyticsEvent;if(i&&l){var o=(0,c.default)({},r,e);l(i+"."+t,o,!1)}},a.privateAnalyticsEvent=function(t,e){var n=a.context.onAnalyticsEvent;n&&n(""+t,e,!0)},a.getParentAnalyticsData=function(t){var e=a.context.getParentAnalyticsData,n={};if("function"==typeof e){var r=a.props.analyticsId;n=e(r+"."+t,!1)}return n},r=t,(0,y.default)(a,r)}return(0,v.default)(n,e),n.prototype.componentWillMount=function(){this.evaluatedMap="function"==typeof a?a(this.fireAnalyticsEvent):a},n.prototype.render=function(){var e=this,n=this.props,a=n.analyticsId,r=(n.analyticsData,(0,o.default)(n,["analyticsId","analyticsData"]));return(0,i.default)(this.evaluatedMap).forEach(function(t){var n=e.evaluatedMap[t],a=r[t];r[t]=function(){"function"==typeof n?n.apply(void 0,arguments):e.fireAnalyticsEvent(n),"function"==typeof a&&a.apply(void 0,arguments)}}),A.default.createElement(t,(0,c.default)({fireAnalyticsEvent:this.fireAnalyticsEvent,firePrivateAnalyticsEvent:this.privateAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData,delegateAnalyticsEvent:l?this.delegateAnalyticsEvent:void 0,analyticsId:a,ref:this.props.innerRef},r))},n}(h.Component),e.displayName="WithAnalytics("+(t.displayName||t.name)+")",e.contextTypes={onAnalyticsEvent:g.default.func,getParentAnalyticsData:g.default.func},e.defaultProps={analyticsId:r.analyticsId,analyticsData:r.analyticsData},n};e.default=x},function(t,e){t.exports=require("babel-runtime/core-js/object/keys")}]); |
@@ -319,3 +319,4 @@ !function(root, factory) { | ||
var cleanedProps = (props.analyticsId, props.analyticsData, props.delegateAnalyticsEvent, | ||
props.fireAnalyticsEvent, props.firePrivateAnalyticsEvent, (0, _objectWithoutProperties3.default)(props, [ "analyticsId", "analyticsData", "delegateAnalyticsEvent", "fireAnalyticsEvent", "firePrivateAnalyticsEvent" ])); | ||
props.fireAnalyticsEvent, props.firePrivateAnalyticsEvent, props.getParentAnalyticsData, | ||
(0, _objectWithoutProperties3.default)(props, [ "analyticsId", "analyticsData", "delegateAnalyticsEvent", "fireAnalyticsEvent", "firePrivateAnalyticsEvent", "getParentAnalyticsData" ])); | ||
/* eslint-enable no-unused-vars */ | ||
@@ -322,0 +323,0 @@ return cleanedProps; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-runtime/core-js/object/assign"),require("babel-runtime/helpers/typeof"),require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("prop-types"),require("react"),require("babel-runtime/helpers/objectWithoutProperties"),require("babel-runtime/core-js/object/keys")):"function"==typeof define&&define.amd?define(["babel-runtime/core-js/object/assign","babel-runtime/helpers/typeof","babel-runtime/helpers/extends","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","prop-types","react","babel-runtime/helpers/objectWithoutProperties","babel-runtime/core-js/object/keys"],t):"object"==typeof exports?exports["@atlaskit/analytics"]=t(require("babel-runtime/core-js/object/assign"),require("babel-runtime/helpers/typeof"),require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("prop-types"),require("react"),require("babel-runtime/helpers/objectWithoutProperties"),require("babel-runtime/core-js/object/keys")):e["@atlaskit/analytics"]=t(e["babel-runtime/core-js/object/assign"],e["babel-runtime/helpers/typeof"],e["babel-runtime/helpers/extends"],e["babel-runtime/helpers/classCallCheck"],e["babel-runtime/helpers/possibleConstructorReturn"],e["babel-runtime/helpers/inherits"],e["prop-types"],e.react,e["babel-runtime/helpers/objectWithoutProperties"],e["babel-runtime/core-js/object/keys"])}(this,function(e,t,n,a,r,i,l,o,u,s){return function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.withAnalytics=t.cleanProps=t.AnalyticsListener=t.AnalyticsDelegate=t.AnalyticsDecorator=void 0;var r=n(2),i=a(r),l=n(12),o=a(l),u=n(13),s=a(u),c=n(14),f=a(c),p=n(16),d=a(p);t.AnalyticsDecorator=i.default,t.AnalyticsDelegate=o.default,t.AnalyticsListener=s.default,t.cleanProps=f.default,t.withAnalytics=d.default},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=a(r),l=n(4),o=a(l),u=n(5),s=a(u),c=n(6),f=a(c),p=n(7),d=a(p),y=n(8),v=a(y),h=n(9),b=a(h),A=n(10),m=a(A),E=n(11),g=a(E),x=function(e){function t(){var n,a,r;(0,f.default)(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=a=(0,d.default)(this,e.call.apply(e,[this].concat(u))),a.getDecoratedAnalyticsData=function(e,t,n){var r=a.props,l=r.data,u=r.getData,c=r.match,f=r.matchPrivate,p=(0,s.default)({},t);return f===n&&(0,g.default)(c,e)&&("object"===("undefined"==typeof l?"undefined":(0,o.default)(l))&&(0,i.default)(p,l),"function"==typeof u&&(0,i.default)(p,u(e,p))),p},a.onAnalyticsEvent=function(e,t,n){var r=a.context.onAnalyticsEvent;if("function"==typeof r){var i=a.getDecoratedAnalyticsData(e,t,n);r(e,i,n)}},a.getParentAnalyticsData=function(e,t){var n=a.getDecoratedAnalyticsData(e,{},t),r=a.context.getParentAnalyticsData;return"function"==typeof r&&(0,i.default)(n,r(e,t)),n},r=n,(0,d.default)(a,r)}return(0,v.default)(t,e),t.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData}},t.prototype.render=function(){var e=this.props.children;return m.default.Children.only(e)},t}(A.Component);x.propTypes={data:b.default.object,getData:b.default.func,match:b.default.oneOfType([b.default.string,b.default.func,b.default.instanceOf(RegExp)]),matchPrivate:b.default.bool},x.defaultProps={match:"*",matchPrivate:!1},x.contextTypes={onAnalyticsEvent:b.default.func,getParentAnalyticsData:b.default.func},x.childContextTypes={onAnalyticsEvent:b.default.func,getParentAnalyticsData:b.default.func},t.default=x},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=l},function(e,t){e.exports=o},function(e,t){"use strict";function n(e,t){return"*"===e||void 0===t||("string"==typeof e?a.test(e)?t.substr(0,e.length)===e:t===e:"function"==typeof e?e(t):e instanceof RegExp&&e.test(t))}Object.defineProperty(t,"__esModule",{value:!0});var a=/\.$/;t.default=n},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),s=a(u),c=n(8),f=a(c),p=n(9),d=a(p),y=n(10),v=a(y),h=function(e){function t(){var n,a,r;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=a=(0,s.default)(this,e.call.apply(e,[this].concat(u))),a.onAnalyticsEvent=function(e,t,n){var r=a.props.delegateAnalyticsEvent,l=(0,i.default)({},t);r&&r(e,l,n);var o=a.context.onAnalyticsEvent;"function"==typeof o&&o(e,t,n)},r=n,(0,s.default)(a,r)}return(0,f.default)(t,e),t.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},t.prototype.render=function(){var e=this.props.children;return v.default.Children.only(e)},t}(y.Component);h.propTypes={delegateAnalyticsEvent:d.default.func},h.contextTypes={onAnalyticsEvent:d.default.func},h.childContextTypes={onAnalyticsEvent:d.default.func},t.default=h},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),s=a(u),c=n(8),f=a(c),p=n(9),d=a(p),y=n(10),v=a(y),h=n(11),b=a(h),A=function(e){function t(){var n,a,r;(0,o.default)(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=a=(0,s.default)(this,e.call.apply(e,[this].concat(u))),a.onAnalyticsEvent=function(e,t,n){var r=a.props,l=r.onEvent,o=r.match,u=r.matchPrivate;if(u===n&&(0,b.default)(o,e)&&"function"==typeof l){var s=(0,i.default)({},t);l(e,s)}var c=a.context.onAnalyticsEvent;"function"==typeof c&&c(e,t,n)},r=n,(0,s.default)(a,r)}return(0,f.default)(t,e),t.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},t.prototype.render=function(){var e=this.props.children;return v.default.Children.only(e)},t}(y.Component);A.propTypes={onEvent:d.default.func.isRequired,match:d.default.oneOfType([d.default.string,d.default.func,d.default.instanceOf(RegExp)]),matchPrivate:d.default.bool},A.defaultProps={match:"*",matchPrivate:!1},A.contextTypes={onAnalyticsEvent:d.default.func},A.childContextTypes={onAnalyticsEvent:d.default.func},t.default=A},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=(e.analyticsId,e.analyticsData,e.delegateAnalyticsEvent,e.fireAnalyticsEvent,e.firePrivateAnalyticsEvent,(0,l.default)(e,["analyticsId","analyticsData","delegateAnalyticsEvent","fireAnalyticsEvent","firePrivateAnalyticsEvent"]));return t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(15),l=a(i);t.default=r},function(e,t){e.exports=u},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=a(r),l=n(15),o=a(l),u=n(5),s=a(u),c=n(6),f=a(c),p=n(7),d=a(p),y=n(8),v=a(y),h=n(10),b=a(h),A=n(9),m=a(A),E=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments[3];return n=t=function(t){function n(){var e,a,r;(0,f.default)(this,n);for(var i=arguments.length,l=Array(i),o=0;o<i;o++)l[o]=arguments[o];return e=a=(0,d.default)(this,t.call.apply(t,[this].concat(l))),a.delegateAnalyticsEvent=function(e,t,n){var r=a.context.onAnalyticsEvent;r&&r(e,t,n)},a.fireAnalyticsEvent=function(e,t){var n=a.props,r=n.analyticsData,i=n.analyticsId,l=a.context.onAnalyticsEvent;if(i&&l){var o=(0,s.default)({},r,t);l(i+"."+e,o,!1)}},a.privateAnalyticsEvent=function(e,t){var n=a.context.onAnalyticsEvent;n&&n(""+e,t,!0)},a.getParentAnalyticsData=function(e){var t=a.context.getParentAnalyticsData,n={};if("function"==typeof t){var r=a.props.analyticsId;n=t(r+"."+e,!1)}return n},r=e,(0,d.default)(a,r)}return(0,v.default)(n,t),n.prototype.componentWillMount=function(){this.evaluatedMap="function"==typeof a?a(this.fireAnalyticsEvent):a},n.prototype.render=function(){var t=this,n=this.props,a=n.analyticsId,r=(n.analyticsData,(0,o.default)(n,["analyticsId","analyticsData"]));return(0,i.default)(this.evaluatedMap).forEach(function(e){var n=t.evaluatedMap[e],a=r[e];r[e]=function(){"function"==typeof n?n.apply(void 0,arguments):t.fireAnalyticsEvent(n),"function"==typeof a&&a.apply(void 0,arguments)}}),b.default.createElement(e,(0,s.default)({fireAnalyticsEvent:this.fireAnalyticsEvent,firePrivateAnalyticsEvent:this.privateAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData,delegateAnalyticsEvent:l?this.delegateAnalyticsEvent:void 0,analyticsId:a,ref:this.props.innerRef},r))},n}(h.Component),t.displayName="WithAnalytics("+(e.displayName||e.name)+")",t.contextTypes={onAnalyticsEvent:m.default.func,getParentAnalyticsData:m.default.func},t.defaultProps={analyticsId:r.analyticsId,analyticsData:r.analyticsData},n};t.default=E},function(e,t){e.exports=s}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("babel-runtime/core-js/object/assign"),require("babel-runtime/helpers/typeof"),require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("prop-types"),require("react"),require("babel-runtime/helpers/objectWithoutProperties"),require("babel-runtime/core-js/object/keys")):"function"==typeof define&&define.amd?define(["babel-runtime/core-js/object/assign","babel-runtime/helpers/typeof","babel-runtime/helpers/extends","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","prop-types","react","babel-runtime/helpers/objectWithoutProperties","babel-runtime/core-js/object/keys"],e):"object"==typeof exports?exports["@atlaskit/analytics"]=e(require("babel-runtime/core-js/object/assign"),require("babel-runtime/helpers/typeof"),require("babel-runtime/helpers/extends"),require("babel-runtime/helpers/classCallCheck"),require("babel-runtime/helpers/possibleConstructorReturn"),require("babel-runtime/helpers/inherits"),require("prop-types"),require("react"),require("babel-runtime/helpers/objectWithoutProperties"),require("babel-runtime/core-js/object/keys")):t["@atlaskit/analytics"]=e(t["babel-runtime/core-js/object/assign"],t["babel-runtime/helpers/typeof"],t["babel-runtime/helpers/extends"],t["babel-runtime/helpers/classCallCheck"],t["babel-runtime/helpers/possibleConstructorReturn"],t["babel-runtime/helpers/inherits"],t["prop-types"],t.react,t["babel-runtime/helpers/objectWithoutProperties"],t["babel-runtime/core-js/object/keys"])}(this,function(t,e,n,a,r,i,l,o,u,s){return function(t){function e(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return t[a].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.withAnalytics=e.cleanProps=e.AnalyticsListener=e.AnalyticsDelegate=e.AnalyticsDecorator=void 0;var r=n(2),i=a(r),l=n(12),o=a(l),u=n(13),s=a(u),c=n(14),f=a(c),p=n(16),d=a(p);e.AnalyticsDecorator=i.default,e.AnalyticsDelegate=o.default,e.AnalyticsListener=s.default,e.cleanProps=f.default,e.withAnalytics=d.default},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=a(r),l=n(4),o=a(l),u=n(5),s=a(u),c=n(6),f=a(c),p=n(7),d=a(p),y=n(8),v=a(y),h=n(9),b=a(h),A=n(10),m=a(A),E=n(11),g=a(E),x=function(t){function e(){var n,a,r;(0,f.default)(this,e);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=a=(0,d.default)(this,t.call.apply(t,[this].concat(u))),a.getDecoratedAnalyticsData=function(t,e,n){var r=a.props,l=r.data,u=r.getData,c=r.match,f=r.matchPrivate,p=(0,s.default)({},e);return f===n&&(0,g.default)(c,t)&&("object"===("undefined"==typeof l?"undefined":(0,o.default)(l))&&(0,i.default)(p,l),"function"==typeof u&&(0,i.default)(p,u(t,p))),p},a.onAnalyticsEvent=function(t,e,n){var r=a.context.onAnalyticsEvent;if("function"==typeof r){var i=a.getDecoratedAnalyticsData(t,e,n);r(t,i,n)}},a.getParentAnalyticsData=function(t,e){var n=a.getDecoratedAnalyticsData(t,{},e),r=a.context.getParentAnalyticsData;return"function"==typeof r&&(0,i.default)(n,r(t,e)),n},r=n,(0,d.default)(a,r)}return(0,v.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData}},e.prototype.render=function(){var t=this.props.children;return m.default.Children.only(t)},e}(A.Component);x.propTypes={data:b.default.object,getData:b.default.func,match:b.default.oneOfType([b.default.string,b.default.func,b.default.instanceOf(RegExp)]),matchPrivate:b.default.bool},x.defaultProps={match:"*",matchPrivate:!1},x.contextTypes={onAnalyticsEvent:b.default.func,getParentAnalyticsData:b.default.func},x.childContextTypes={onAnalyticsEvent:b.default.func,getParentAnalyticsData:b.default.func},e.default=x},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e){t.exports=a},function(t,e){t.exports=r},function(t,e){t.exports=i},function(t,e){t.exports=l},function(t,e){t.exports=o},function(t,e){"use strict";function n(t,e){return"*"===t||void 0===e||("string"==typeof t?a.test(t)?e.substr(0,t.length)===t:e===t:"function"==typeof t?t(e):t instanceof RegExp&&t.test(e))}Object.defineProperty(e,"__esModule",{value:!0});var a=/\.$/;e.default=n},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),s=a(u),c=n(8),f=a(c),p=n(9),d=a(p),y=n(10),v=a(y),h=function(t){function e(){var n,a,r;(0,o.default)(this,e);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=a=(0,s.default)(this,t.call.apply(t,[this].concat(u))),a.onAnalyticsEvent=function(t,e,n){var r=a.props.delegateAnalyticsEvent,l=(0,i.default)({},e);r&&r(t,l,n);var o=a.context.onAnalyticsEvent;"function"==typeof o&&o(t,e,n)},r=n,(0,s.default)(a,r)}return(0,f.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},e.prototype.render=function(){var t=this.props.children;return v.default.Children.only(t)},e}(y.Component);h.propTypes={delegateAnalyticsEvent:d.default.func},h.contextTypes={onAnalyticsEvent:d.default.func},h.childContextTypes={onAnalyticsEvent:d.default.func},e.default=h},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=a(r),l=n(6),o=a(l),u=n(7),s=a(u),c=n(8),f=a(c),p=n(9),d=a(p),y=n(10),v=a(y),h=n(11),b=a(h),A=function(t){function e(){var n,a,r;(0,o.default)(this,e);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=a=(0,s.default)(this,t.call.apply(t,[this].concat(u))),a.onAnalyticsEvent=function(t,e,n){var r=a.props,l=r.onEvent,o=r.match,u=r.matchPrivate;if(u===n&&(0,b.default)(o,t)&&"function"==typeof l){var s=(0,i.default)({},e);l(t,s)}var c=a.context.onAnalyticsEvent;"function"==typeof c&&c(t,e,n)},r=n,(0,s.default)(a,r)}return(0,f.default)(e,t),e.prototype.getChildContext=function(){return{onAnalyticsEvent:this.onAnalyticsEvent}},e.prototype.render=function(){var t=this.props.children;return v.default.Children.only(t)},e}(y.Component);A.propTypes={onEvent:d.default.func.isRequired,match:d.default.oneOfType([d.default.string,d.default.func,d.default.instanceOf(RegExp)]),matchPrivate:d.default.bool},A.defaultProps={match:"*",matchPrivate:!1},A.contextTypes={onAnalyticsEvent:d.default.func},A.childContextTypes={onAnalyticsEvent:d.default.func},e.default=A},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=(t.analyticsId,t.analyticsData,t.delegateAnalyticsEvent,t.fireAnalyticsEvent,t.firePrivateAnalyticsEvent,t.getParentAnalyticsData,(0,l.default)(t,["analyticsId","analyticsData","delegateAnalyticsEvent","fireAnalyticsEvent","firePrivateAnalyticsEvent","getParentAnalyticsData"]));return e}Object.defineProperty(e,"__esModule",{value:!0});var i=n(15),l=a(i);e.default=r},function(t,e){t.exports=u},function(t,e,n){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=a(r),l=n(15),o=a(l),u=n(5),s=a(u),c=n(6),f=a(c),p=n(7),d=a(p),y=n(8),v=a(y),h=n(10),b=a(h),A=n(9),m=a(A),E=function(t){var e,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments[3];return n=e=function(e){function n(){var t,a,r;(0,f.default)(this,n);for(var i=arguments.length,l=Array(i),o=0;o<i;o++)l[o]=arguments[o];return t=a=(0,d.default)(this,e.call.apply(e,[this].concat(l))),a.delegateAnalyticsEvent=function(t,e,n){var r=a.context.onAnalyticsEvent;r&&r(t,e,n)},a.fireAnalyticsEvent=function(t,e){var n=a.props,r=n.analyticsData,i=n.analyticsId,l=a.context.onAnalyticsEvent;if(i&&l){var o=(0,s.default)({},r,e);l(i+"."+t,o,!1)}},a.privateAnalyticsEvent=function(t,e){var n=a.context.onAnalyticsEvent;n&&n(""+t,e,!0)},a.getParentAnalyticsData=function(t){var e=a.context.getParentAnalyticsData,n={};if("function"==typeof e){var r=a.props.analyticsId;n=e(r+"."+t,!1)}return n},r=t,(0,d.default)(a,r)}return(0,v.default)(n,e),n.prototype.componentWillMount=function(){this.evaluatedMap="function"==typeof a?a(this.fireAnalyticsEvent):a},n.prototype.render=function(){var e=this,n=this.props,a=n.analyticsId,r=(n.analyticsData,(0,o.default)(n,["analyticsId","analyticsData"]));return(0,i.default)(this.evaluatedMap).forEach(function(t){var n=e.evaluatedMap[t],a=r[t];r[t]=function(){"function"==typeof n?n.apply(void 0,arguments):e.fireAnalyticsEvent(n),"function"==typeof a&&a.apply(void 0,arguments)}}),b.default.createElement(t,(0,s.default)({fireAnalyticsEvent:this.fireAnalyticsEvent,firePrivateAnalyticsEvent:this.privateAnalyticsEvent,getParentAnalyticsData:this.getParentAnalyticsData,delegateAnalyticsEvent:l?this.delegateAnalyticsEvent:void 0,analyticsId:a,ref:this.props.innerRef},r))},n}(h.Component),e.displayName="WithAnalytics("+(t.displayName||t.name)+")",e.contextTypes={onAnalyticsEvent:m.default.func,getParentAnalyticsData:m.default.func},e.defaultProps={analyticsId:r.analyticsId,analyticsData:r.analyticsData},n};e.default=E},function(t,e){t.exports=s}])}); |
{ | ||
"name": "@atlaskit/analytics", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"config": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -18,3 +18,3 @@ [![AtlasKit component registry](https://img.shields.io/badge/AtlasKit-components-FF5230.svg)](http://atlaskit.atlassian.com) | ||
Detailed docs and example usage can be found [here](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/analytics/2.3.1/). | ||
Detailed docs and example usage can be found [here](https://aui-cdn.atlassian.com/atlaskit/stories/@atlaskit/analytics/2.3.2/). | ||
@@ -21,0 +21,0 @@ _* Please note that this module could have dependencies that are governed by the Atlassian Design Guidelines license which will be automatically included on install. Each dependency has a license file that indicates whether the Atlassian Design Guidelines license applies._ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75471
877