@atlaskit/analytics-next
Advanced tools
Comparing version 6.0.2 to 6.0.3
# @atlaskit/analytics-next | ||
## 6.0.3 | ||
### Patch Changes | ||
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613): | ||
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports | ||
## 6.0.2 | ||
@@ -4,0 +12,0 @@ |
@@ -26,3 +26,3 @@ "use strict"; | ||
if (changedPropCallbacks.length > 0) { | ||
_this.patchedEventProps = tslib_1.__assign({}, _this.patchedEventProps, _this.mapCreateEventsToProps(changedPropCallbacks, props)); | ||
_this.patchedEventProps = tslib_1.__assign(tslib_1.__assign({}, _this.patchedEventProps), _this.mapCreateEventsToProps(changedPropCallbacks, props)); | ||
changedPropCallbacks.forEach(function (p) { | ||
@@ -54,3 +54,3 @@ _this.originalEventProps[p] = props[p]; | ||
}; | ||
return tslib_1.__assign({}, modified, (_a = {}, _a[propCallbackName] = modifiedCallback, _a)); | ||
return tslib_1.__assign(tslib_1.__assign({}, modified), (_a = {}, _a[propCallbackName] = modifiedCallback, _a)); | ||
}, {}); | ||
@@ -57,0 +57,0 @@ }; |
@@ -19,5 +19,5 @@ "use strict"; | ||
eventType: 'ui', | ||
attributes: tslib_1.__assign({ browserInfo: window && window.navigator && window.navigator.userAgent | ||
attributes: tslib_1.__assign(tslib_1.__assign({ browserInfo: window && window.navigator && window.navigator.userAgent | ||
? window.navigator.userAgent | ||
: 'unknown' }, data, (isObject(analyticsErrorPayload) ? analyticsErrorPayload : {})), | ||
: 'unknown' }, data), (isObject(analyticsErrorPayload) ? analyticsErrorPayload : {})), | ||
}).fire(channel); | ||
@@ -24,0 +24,0 @@ }; |
@@ -21,3 +21,3 @@ "use strict"; | ||
if (typeof updater === 'object') { | ||
this.payload = tslib_1.__assign({}, this.payload, updater); | ||
this.payload = tslib_1.__assign(tslib_1.__assign({}, this.payload), updater); | ||
} | ||
@@ -24,0 +24,0 @@ return this; |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"sideEffects": false | ||
} |
@@ -9,3 +9,3 @@ "use strict"; | ||
var _a = props.analyticsContext, analyticsContext = _a === void 0 ? {} : _a, rest = tslib_1.__rest(props, ["analyticsContext"]); | ||
var analyticsData = tslib_1.__assign({}, defaultData, analyticsContext); | ||
var analyticsData = tslib_1.__assign(tslib_1.__assign({}, defaultData), analyticsContext); | ||
return (react_1.default.createElement(AnalyticsContext_1.default, { data: analyticsData }, | ||
@@ -12,0 +12,0 @@ react_1.default.createElement(WrappedComponent, tslib_1.__assign({}, rest, { ref: ref })))); |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __extends, __read, __spread } from "tslib"; | ||
import { Children, Component } from 'react'; | ||
@@ -8,3 +8,3 @@ import PropTypes from 'prop-types'; | ||
var AnalyticsContext = /** @class */ (function (_super) { | ||
tslib_1.__extends(AnalyticsContext, _super); | ||
__extends(AnalyticsContext, _super); | ||
function AnalyticsContext() { | ||
@@ -21,3 +21,3 @@ var _this = _super !== null && _super.apply(this, arguments) || this; | ||
[]; | ||
return tslib_1.__spread(ancestorData, [data]); | ||
return __spread(ancestorData, [data]); | ||
}; | ||
@@ -24,0 +24,0 @@ return _this; |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign, __extends, __read, __spread } from "tslib"; | ||
import React from 'react'; | ||
@@ -11,3 +11,3 @@ import PropTypes from 'prop-types'; | ||
var AnalyticsContextConsumer = /** @class */ (function (_super) { | ||
tslib_1.__extends(AnalyticsContextConsumer, _super); | ||
__extends(AnalyticsContextConsumer, _super); | ||
function AnalyticsContextConsumer(props) { | ||
@@ -25,3 +25,3 @@ var _this = _super.call(this, props) || this; | ||
if (changedPropCallbacks.length > 0) { | ||
_this.patchedEventProps = tslib_1.__assign({}, _this.patchedEventProps, _this.mapCreateEventsToProps(changedPropCallbacks, props)); | ||
_this.patchedEventProps = __assign(__assign({}, _this.patchedEventProps), _this.mapCreateEventsToProps(changedPropCallbacks, props)); | ||
changedPropCallbacks.forEach(function (p) { | ||
@@ -50,6 +50,6 @@ _this.originalEventProps[p] = props[p]; | ||
if (providedCallback) { | ||
providedCallback.apply(void 0, tslib_1.__spread(args, [analyticsEvent])); | ||
providedCallback.apply(void 0, __spread(args, [analyticsEvent])); | ||
} | ||
}; | ||
return tslib_1.__assign({}, modified, (_a = {}, _a[propCallbackName] = modifiedCallback, _a)); | ||
return __assign(__assign({}, modified), (_a = {}, _a[propCallbackName] = modifiedCallback, _a)); | ||
}, {}); | ||
@@ -56,0 +56,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign, __extends } from "tslib"; | ||
import React, { Component } from 'react'; | ||
@@ -9,3 +9,3 @@ import withAnalyticsEvents from './withAnalyticsEvents'; | ||
var BaseAnalyticsErrorBoundary = /** @class */ (function (_super) { | ||
tslib_1.__extends(BaseAnalyticsErrorBoundary, _super); | ||
__extends(BaseAnalyticsErrorBoundary, _super); | ||
function BaseAnalyticsErrorBoundary() { | ||
@@ -18,5 +18,5 @@ var _this = _super !== null && _super.apply(this, arguments) || this; | ||
eventType: 'ui', | ||
attributes: tslib_1.__assign({ browserInfo: window && window.navigator && window.navigator.userAgent | ||
attributes: __assign(__assign({ browserInfo: window && window.navigator && window.navigator.userAgent | ||
? window.navigator.userAgent | ||
: 'unknown' }, data, (isObject(analyticsErrorPayload) ? analyticsErrorPayload : {})), | ||
: 'unknown' }, data), (isObject(analyticsErrorPayload) ? analyticsErrorPayload : {})), | ||
}).fire(channel); | ||
@@ -23,0 +23,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign } from "tslib"; | ||
var AnalyticsEvent = /** @class */ (function () { | ||
@@ -19,3 +19,3 @@ function AnalyticsEvent(props) { | ||
if (typeof updater === 'object') { | ||
this.payload = tslib_1.__assign({}, this.payload, updater); | ||
this.payload = __assign(__assign({}, this.payload), updater); | ||
} | ||
@@ -22,0 +22,0 @@ return this; |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __extends, __read, __spread } from "tslib"; | ||
import { Component } from 'react'; | ||
@@ -8,3 +8,3 @@ import PropTypes from 'prop-types'; | ||
var AnalyticsListener = /** @class */ (function (_super) { | ||
tslib_1.__extends(AnalyticsListener, _super); | ||
__extends(AnalyticsListener, _super); | ||
function AnalyticsListener() { | ||
@@ -26,3 +26,3 @@ var _this = _super !== null && _super.apply(this, arguments) || this; | ||
}; | ||
return tslib_1.__spread([handler], parentEventHandlers); | ||
return __spread([handler], parentEventHandlers); | ||
}; | ||
@@ -29,0 +29,0 @@ return _this; |
@@ -1,6 +0,6 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __rest } from "tslib"; | ||
export default function cleanProps(props) { | ||
var createAnalyticsEvent = props.createAnalyticsEvent, cleanedProps = tslib_1.__rest(props, ["createAnalyticsEvent"]); | ||
var createAnalyticsEvent = props.createAnalyticsEvent, cleanedProps = __rest(props, ["createAnalyticsEvent"]); | ||
return cleanedProps; | ||
} | ||
//# sourceMappingURL=cleanProps.js.map |
@@ -1,5 +0,5 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __extends, __read, __spread } from "tslib"; | ||
import AnalyticsEvent from './AnalyticsEvent'; | ||
var UIAnalyticsEvent = /** @class */ (function (_super) { | ||
tslib_1.__extends(UIAnalyticsEvent, _super); | ||
__extends(UIAnalyticsEvent, _super); | ||
function UIAnalyticsEvent(props) { | ||
@@ -13,4 +13,4 @@ var _this = _super.call(this, props) || this; | ||
} | ||
var context = tslib_1.__spread(_this.context); | ||
var handlers = tslib_1.__spread(_this.handlers); | ||
var context = __spread(_this.context); | ||
var handlers = __spread(_this.handlers); | ||
/** | ||
@@ -17,0 +17,0 @@ * A hacky "deep clone" of the object. This is limited in that it wont |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"sideEffects": false | ||
} |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign, __rest } from "tslib"; | ||
import React from 'react'; | ||
@@ -6,6 +6,6 @@ import AnalyticsContext from './AnalyticsContext'; | ||
var WithAnalyticsContext = React.forwardRef(function (props, ref) { | ||
var _a = props.analyticsContext, analyticsContext = _a === void 0 ? {} : _a, rest = tslib_1.__rest(props, ["analyticsContext"]); | ||
var analyticsData = tslib_1.__assign({}, defaultData, analyticsContext); | ||
var _a = props.analyticsContext, analyticsContext = _a === void 0 ? {} : _a, rest = __rest(props, ["analyticsContext"]); | ||
var analyticsData = __assign(__assign({}, defaultData), analyticsContext); | ||
return (React.createElement(AnalyticsContext, { data: analyticsData }, | ||
React.createElement(WrappedComponent, tslib_1.__assign({}, rest, { ref: ref })))); | ||
React.createElement(WrappedComponent, __assign({}, rest, { ref: ref })))); | ||
}); | ||
@@ -12,0 +12,0 @@ // @ts-ignore |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign } from "tslib"; | ||
import React from 'react'; | ||
@@ -7,3 +7,3 @@ import AnalyticsContextConsumer from './AnalyticsContextConsumer'; | ||
var createAnalyticsEvent = _a.createAnalyticsEvent, patchedEventProps = _a.patchedEventProps; | ||
return (React.createElement(WrappedComponent, tslib_1.__assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, ref: ref }))); | ||
return (React.createElement(WrappedComponent, __assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, ref: ref }))); | ||
})); }); | ||
@@ -10,0 +10,0 @@ // @ts-ignore |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "The 🆕 Atlaskit component analytics framework", | ||
@@ -24,3 +24,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@atlaskit/type-helpers": "^4.1.7", | ||
"@atlaskit/type-helpers": "^4.1.8", | ||
"prop-types": "^15.5.10", | ||
@@ -33,8 +33,8 @@ "tslib": "^1.9.3" | ||
"devDependencies": { | ||
"@atlaskit/build-utils": "^2.2.4", | ||
"@atlaskit/button": "^13.1.5", | ||
"@atlaskit/docs": "^8.1.4", | ||
"@atlaskit/field-text": "^9.0.10", | ||
"@atlaskit/ssr": "^0.1.0", | ||
"@atlaskit/type-helpers": "^4.1.7", | ||
"@atlaskit/build-utils": "^2.2.5", | ||
"@atlaskit/button": "^13.1.6", | ||
"@atlaskit/docs": "^8.1.5", | ||
"@atlaskit/field-text": "^9.0.11", | ||
"@atlaskit/ssr": "^0.1.1", | ||
"@atlaskit/type-helpers": "^4.1.8", | ||
"enzyme": "^3.7.0", | ||
@@ -41,0 +41,0 @@ "react-dom": "^16.8.0", |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
188202
103
3015