@uidu/analytics
Advanced tools
Comparing version 0.11.2 to 0.12.0
# @uidu/analytics | ||
## 0.12.0 | ||
### Minor Changes | ||
- 6569f35: Bump dependencies | ||
## 0.11.2 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@uidu/analytics", | ||
"version": "0.11.2" | ||
"version": "0.12.0" | ||
} |
@@ -9,3 +9,2 @@ 'use strict'; | ||
var _callSuper = require('@babel/runtime/helpers/callSuper'); | ||
var _assertThisInitialized = require('@babel/runtime/helpers/assertThisInitialized'); | ||
var _inherits = require('@babel/runtime/helpers/inherits'); | ||
@@ -41,3 +40,2 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty'); | ||
var AnalyticsContext = /*#__PURE__*/function (_Component) { | ||
_inherits(AnalyticsContext, _Component); | ||
function AnalyticsContext(props) { | ||
@@ -47,3 +45,3 @@ var _this; | ||
_this = _callSuper(this, AnalyticsContext, [props]); | ||
_defineProperty(_assertThisInitialized(_this), "getChildContext", function () { | ||
_defineProperty(_this, "getChildContext", function () { | ||
return { | ||
@@ -53,3 +51,3 @@ getAnalyticsContext: _this.getAnalyticsContext | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsContext", function () { | ||
_defineProperty(_this, "getAnalyticsContext", function () { | ||
var data = _this.props.data; | ||
@@ -60,3 +58,3 @@ var getAnalyticsContext = _this.context.getAnalyticsContext; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsEventHandlers", function () { | ||
_defineProperty(_this, "getAnalyticsEventHandlers", function () { | ||
var getAnalyticsEventHandlers = _this.context.getAnalyticsEventHandlers; | ||
@@ -72,3 +70,4 @@ var ancestorHandlers = typeof getAnalyticsEventHandlers === 'function' && getAnalyticsEventHandlers() || []; | ||
} | ||
_createClass(AnalyticsContext, [{ | ||
_inherits(AnalyticsContext, _Component); | ||
return _createClass(AnalyticsContext, [{ | ||
key: "render", | ||
@@ -83,3 +82,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsContext; | ||
}(React.Component); | ||
@@ -105,3 +103,3 @@ _defineProperty(AnalyticsContext, "contextTypes", ContextTypes$1); | ||
} | ||
_createClass(AnalyticsEvent, [{ | ||
return _createClass(AnalyticsEvent, [{ | ||
key: "update", | ||
@@ -118,7 +116,5 @@ value: function update(updater) { | ||
}]); | ||
return AnalyticsEvent; | ||
}(); | ||
var UIAnalyticsEvent = /*#__PURE__*/function (_AnalyticsEvent) { | ||
_inherits(UIAnalyticsEvent, _AnalyticsEvent); | ||
function UIAnalyticsEvent(props) { | ||
@@ -128,6 +124,6 @@ var _this; | ||
_this = _callSuper(this, UIAnalyticsEvent, [props]); | ||
_defineProperty(_assertThisInitialized(_this), "context", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "handlers", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "hasFired", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "clone", function () { | ||
_defineProperty(_this, "context", void 0); | ||
_defineProperty(_this, "handlers", void 0); | ||
_defineProperty(_this, "hasFired", void 0); | ||
_defineProperty(_this, "clone", function () { | ||
if (_this.hasFired) { | ||
@@ -153,3 +149,3 @@ // eslint-disable-next-line no-console | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "fire", function (channel) { | ||
_defineProperty(_this, "fire", function (channel) { | ||
if (_this.hasFired) { | ||
@@ -161,3 +157,3 @@ // eslint-disable-next-line no-console | ||
_this.handlers.forEach(function (handler) { | ||
return handler(_assertThisInitialized(_this), channel); | ||
return handler(_this, channel); | ||
}); | ||
@@ -171,3 +167,4 @@ _this.hasFired = true; | ||
} | ||
_createClass(UIAnalyticsEvent, [{ | ||
_inherits(UIAnalyticsEvent, _AnalyticsEvent); | ||
return _createClass(UIAnalyticsEvent, [{ | ||
key: "update", | ||
@@ -183,3 +180,2 @@ value: function update(updater) { | ||
}]); | ||
return UIAnalyticsEvent; | ||
}(AnalyticsEvent); | ||
@@ -193,3 +189,2 @@ | ||
var AnalyticsContextConsumer = /*#__PURE__*/function (_React$Component) { | ||
_inherits(AnalyticsContextConsumer, _React$Component); | ||
function AnalyticsContextConsumer(_props) { | ||
@@ -203,6 +198,6 @@ var _this; | ||
*/ | ||
_defineProperty(_assertThisInitialized(_this), "originalEventProps", {}); | ||
_defineProperty(_assertThisInitialized(_this), "patchedEventProps", {}); | ||
_defineProperty(_this, "originalEventProps", {}); | ||
_defineProperty(_this, "patchedEventProps", {}); | ||
// Update patched event props only if the original props have changed | ||
_defineProperty(_assertThisInitialized(_this), "updatePatchedEventProps", function (props) { | ||
_defineProperty(_this, "updatePatchedEventProps", function (props) { | ||
var changedPropCallbacks = Object.keys(_this.props.createEventMap).filter(function (p) { | ||
@@ -219,3 +214,3 @@ return _this.originalEventProps[p] !== props[p]; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "mapCreateEventsToProps", function (changedPropNames, props) { | ||
_defineProperty(_this, "mapCreateEventsToProps", function (changedPropNames, props) { | ||
return changedPropNames.reduce(function (modified, propCallbackName) { | ||
@@ -239,3 +234,3 @@ var eventCreator = _this.props.createEventMap[propCallbackName]; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "createAnalyticsEvent", function (payload) { | ||
_defineProperty(_this, "createAnalyticsEvent", function (payload) { | ||
var _this$context = _this.context, | ||
@@ -256,3 +251,4 @@ getAnalyticsEventHandlers = _this$context.getAnalyticsEventHandlers, | ||
} | ||
_createClass(AnalyticsContextConsumer, [{ | ||
_inherits(AnalyticsContextConsumer, _React$Component); | ||
return _createClass(AnalyticsContextConsumer, [{ | ||
key: "render", | ||
@@ -267,3 +263,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsContextConsumer; | ||
}(React__default["default"].Component); | ||
@@ -305,3 +300,2 @@ _defineProperty(AnalyticsContextConsumer, "contextTypes", { | ||
var BaseAnalyticsErrorBoundary = /*#__PURE__*/function (_Component) { | ||
_inherits(BaseAnalyticsErrorBoundary, _Component); | ||
function BaseAnalyticsErrorBoundary() { | ||
@@ -314,3 +308,3 @@ var _this; | ||
_this = _callSuper(this, BaseAnalyticsErrorBoundary, [].concat(args)); | ||
_defineProperty(_assertThisInitialized(_this), "fireAnalytics", function (analyticsErrorPayload) { | ||
_defineProperty(_this, "fireAnalytics", function (analyticsErrorPayload) { | ||
var _this$props = _this.props, | ||
@@ -330,3 +324,4 @@ createAnalyticsEvent = _this$props.createAnalyticsEvent, | ||
} | ||
_createClass(BaseAnalyticsErrorBoundary, [{ | ||
_inherits(BaseAnalyticsErrorBoundary, _Component); | ||
return _createClass(BaseAnalyticsErrorBoundary, [{ | ||
key: "componentDidCatch", | ||
@@ -352,3 +347,2 @@ value: function componentDidCatch(error, info) { | ||
}]); | ||
return BaseAnalyticsErrorBoundary; | ||
}(React.Component); | ||
@@ -361,3 +355,2 @@ var AnalyticsErrorBoundary = withAnalyticsEvents()(BaseAnalyticsErrorBoundary); | ||
var AnalyticsListener = /*#__PURE__*/function (_Component) { | ||
_inherits(AnalyticsListener, _Component); | ||
function AnalyticsListener() { | ||
@@ -370,3 +363,3 @@ var _this; | ||
_this = _callSuper(this, AnalyticsListener, [].concat(args)); | ||
_defineProperty(_assertThisInitialized(_this), "getChildContext", function () { | ||
_defineProperty(_this, "getChildContext", function () { | ||
return { | ||
@@ -376,3 +369,3 @@ getAnalyticsEventHandlers: _this.getAnalyticsEventHandlers | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsEventHandlers", function () { | ||
_defineProperty(_this, "getAnalyticsEventHandlers", function () { | ||
var _this$props = _this.props, | ||
@@ -392,3 +385,4 @@ channel = _this$props.channel, | ||
} | ||
_createClass(AnalyticsListener, [{ | ||
_inherits(AnalyticsListener, _Component); | ||
return _createClass(AnalyticsListener, [{ | ||
key: "render", | ||
@@ -410,3 +404,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsListener; | ||
}(React.Component); | ||
@@ -413,0 +406,0 @@ _defineProperty(AnalyticsListener, "contextTypes", ContextTypes); |
@@ -9,3 +9,2 @@ 'use strict'; | ||
var _callSuper = require('@babel/runtime/helpers/callSuper'); | ||
var _assertThisInitialized = require('@babel/runtime/helpers/assertThisInitialized'); | ||
var _inherits = require('@babel/runtime/helpers/inherits'); | ||
@@ -41,3 +40,2 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty'); | ||
var AnalyticsContext = /*#__PURE__*/function (_Component) { | ||
_inherits(AnalyticsContext, _Component); | ||
function AnalyticsContext(props) { | ||
@@ -47,3 +45,3 @@ var _this; | ||
_this = _callSuper(this, AnalyticsContext, [props]); | ||
_defineProperty(_assertThisInitialized(_this), "getChildContext", function () { | ||
_defineProperty(_this, "getChildContext", function () { | ||
return { | ||
@@ -53,3 +51,3 @@ getAnalyticsContext: _this.getAnalyticsContext | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsContext", function () { | ||
_defineProperty(_this, "getAnalyticsContext", function () { | ||
var data = _this.props.data; | ||
@@ -60,3 +58,3 @@ var getAnalyticsContext = _this.context.getAnalyticsContext; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsEventHandlers", function () { | ||
_defineProperty(_this, "getAnalyticsEventHandlers", function () { | ||
var getAnalyticsEventHandlers = _this.context.getAnalyticsEventHandlers; | ||
@@ -72,3 +70,4 @@ var ancestorHandlers = typeof getAnalyticsEventHandlers === 'function' && getAnalyticsEventHandlers() || []; | ||
} | ||
_createClass(AnalyticsContext, [{ | ||
_inherits(AnalyticsContext, _Component); | ||
return _createClass(AnalyticsContext, [{ | ||
key: "render", | ||
@@ -83,3 +82,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsContext; | ||
}(React.Component); | ||
@@ -105,3 +103,3 @@ _defineProperty(AnalyticsContext, "contextTypes", ContextTypes$1); | ||
} | ||
_createClass(AnalyticsEvent, [{ | ||
return _createClass(AnalyticsEvent, [{ | ||
key: "update", | ||
@@ -118,7 +116,5 @@ value: function update(updater) { | ||
}]); | ||
return AnalyticsEvent; | ||
}(); | ||
var UIAnalyticsEvent = /*#__PURE__*/function (_AnalyticsEvent) { | ||
_inherits(UIAnalyticsEvent, _AnalyticsEvent); | ||
function UIAnalyticsEvent(props) { | ||
@@ -128,6 +124,6 @@ var _this; | ||
_this = _callSuper(this, UIAnalyticsEvent, [props]); | ||
_defineProperty(_assertThisInitialized(_this), "context", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "handlers", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "hasFired", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "clone", function () { | ||
_defineProperty(_this, "context", void 0); | ||
_defineProperty(_this, "handlers", void 0); | ||
_defineProperty(_this, "hasFired", void 0); | ||
_defineProperty(_this, "clone", function () { | ||
if (_this.hasFired) { | ||
@@ -153,3 +149,3 @@ // eslint-disable-next-line no-console | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "fire", function (channel) { | ||
_defineProperty(_this, "fire", function (channel) { | ||
if (_this.hasFired) { | ||
@@ -161,3 +157,3 @@ // eslint-disable-next-line no-console | ||
_this.handlers.forEach(function (handler) { | ||
return handler(_assertThisInitialized(_this), channel); | ||
return handler(_this, channel); | ||
}); | ||
@@ -171,3 +167,4 @@ _this.hasFired = true; | ||
} | ||
_createClass(UIAnalyticsEvent, [{ | ||
_inherits(UIAnalyticsEvent, _AnalyticsEvent); | ||
return _createClass(UIAnalyticsEvent, [{ | ||
key: "update", | ||
@@ -183,3 +180,2 @@ value: function update(updater) { | ||
}]); | ||
return UIAnalyticsEvent; | ||
}(AnalyticsEvent); | ||
@@ -193,3 +189,2 @@ | ||
var AnalyticsContextConsumer = /*#__PURE__*/function (_React$Component) { | ||
_inherits(AnalyticsContextConsumer, _React$Component); | ||
function AnalyticsContextConsumer(_props) { | ||
@@ -203,6 +198,6 @@ var _this; | ||
*/ | ||
_defineProperty(_assertThisInitialized(_this), "originalEventProps", {}); | ||
_defineProperty(_assertThisInitialized(_this), "patchedEventProps", {}); | ||
_defineProperty(_this, "originalEventProps", {}); | ||
_defineProperty(_this, "patchedEventProps", {}); | ||
// Update patched event props only if the original props have changed | ||
_defineProperty(_assertThisInitialized(_this), "updatePatchedEventProps", function (props) { | ||
_defineProperty(_this, "updatePatchedEventProps", function (props) { | ||
var changedPropCallbacks = Object.keys(_this.props.createEventMap).filter(function (p) { | ||
@@ -219,3 +214,3 @@ return _this.originalEventProps[p] !== props[p]; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "mapCreateEventsToProps", function (changedPropNames, props) { | ||
_defineProperty(_this, "mapCreateEventsToProps", function (changedPropNames, props) { | ||
return changedPropNames.reduce(function (modified, propCallbackName) { | ||
@@ -239,3 +234,3 @@ var eventCreator = _this.props.createEventMap[propCallbackName]; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "createAnalyticsEvent", function (payload) { | ||
_defineProperty(_this, "createAnalyticsEvent", function (payload) { | ||
var _this$context = _this.context, | ||
@@ -256,3 +251,4 @@ getAnalyticsEventHandlers = _this$context.getAnalyticsEventHandlers, | ||
} | ||
_createClass(AnalyticsContextConsumer, [{ | ||
_inherits(AnalyticsContextConsumer, _React$Component); | ||
return _createClass(AnalyticsContextConsumer, [{ | ||
key: "render", | ||
@@ -267,3 +263,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsContextConsumer; | ||
}(React__default["default"].Component); | ||
@@ -305,3 +300,2 @@ _defineProperty(AnalyticsContextConsumer, "contextTypes", { | ||
var BaseAnalyticsErrorBoundary = /*#__PURE__*/function (_Component) { | ||
_inherits(BaseAnalyticsErrorBoundary, _Component); | ||
function BaseAnalyticsErrorBoundary() { | ||
@@ -314,3 +308,3 @@ var _this; | ||
_this = _callSuper(this, BaseAnalyticsErrorBoundary, [].concat(args)); | ||
_defineProperty(_assertThisInitialized(_this), "fireAnalytics", function (analyticsErrorPayload) { | ||
_defineProperty(_this, "fireAnalytics", function (analyticsErrorPayload) { | ||
var _this$props = _this.props, | ||
@@ -330,3 +324,4 @@ createAnalyticsEvent = _this$props.createAnalyticsEvent, | ||
} | ||
_createClass(BaseAnalyticsErrorBoundary, [{ | ||
_inherits(BaseAnalyticsErrorBoundary, _Component); | ||
return _createClass(BaseAnalyticsErrorBoundary, [{ | ||
key: "componentDidCatch", | ||
@@ -352,3 +347,2 @@ value: function componentDidCatch(error, info) { | ||
}]); | ||
return BaseAnalyticsErrorBoundary; | ||
}(React.Component); | ||
@@ -361,3 +355,2 @@ var AnalyticsErrorBoundary = withAnalyticsEvents()(BaseAnalyticsErrorBoundary); | ||
var AnalyticsListener = /*#__PURE__*/function (_Component) { | ||
_inherits(AnalyticsListener, _Component); | ||
function AnalyticsListener() { | ||
@@ -370,3 +363,3 @@ var _this; | ||
_this = _callSuper(this, AnalyticsListener, [].concat(args)); | ||
_defineProperty(_assertThisInitialized(_this), "getChildContext", function () { | ||
_defineProperty(_this, "getChildContext", function () { | ||
return { | ||
@@ -376,3 +369,3 @@ getAnalyticsEventHandlers: _this.getAnalyticsEventHandlers | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsEventHandlers", function () { | ||
_defineProperty(_this, "getAnalyticsEventHandlers", function () { | ||
var _this$props = _this.props, | ||
@@ -392,3 +385,4 @@ channel = _this$props.channel, | ||
} | ||
_createClass(AnalyticsListener, [{ | ||
_inherits(AnalyticsListener, _Component); | ||
return _createClass(AnalyticsListener, [{ | ||
key: "render", | ||
@@ -410,3 +404,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsListener; | ||
}(React.Component); | ||
@@ -413,0 +406,0 @@ _defineProperty(AnalyticsListener, "contextTypes", ContextTypes); |
@@ -5,3 +5,2 @@ import _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray'; | ||
import _callSuper from '@babel/runtime/helpers/esm/callSuper'; | ||
import _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized'; | ||
import _inherits from '@babel/runtime/helpers/esm/inherits'; | ||
@@ -32,3 +31,2 @@ import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; | ||
var AnalyticsContext = /*#__PURE__*/function (_Component) { | ||
_inherits(AnalyticsContext, _Component); | ||
function AnalyticsContext(props) { | ||
@@ -38,3 +36,3 @@ var _this; | ||
_this = _callSuper(this, AnalyticsContext, [props]); | ||
_defineProperty(_assertThisInitialized(_this), "getChildContext", function () { | ||
_defineProperty(_this, "getChildContext", function () { | ||
return { | ||
@@ -44,3 +42,3 @@ getAnalyticsContext: _this.getAnalyticsContext | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsContext", function () { | ||
_defineProperty(_this, "getAnalyticsContext", function () { | ||
var data = _this.props.data; | ||
@@ -51,3 +49,3 @@ var getAnalyticsContext = _this.context.getAnalyticsContext; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsEventHandlers", function () { | ||
_defineProperty(_this, "getAnalyticsEventHandlers", function () { | ||
var getAnalyticsEventHandlers = _this.context.getAnalyticsEventHandlers; | ||
@@ -63,3 +61,4 @@ var ancestorHandlers = typeof getAnalyticsEventHandlers === 'function' && getAnalyticsEventHandlers() || []; | ||
} | ||
_createClass(AnalyticsContext, [{ | ||
_inherits(AnalyticsContext, _Component); | ||
return _createClass(AnalyticsContext, [{ | ||
key: "render", | ||
@@ -74,3 +73,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsContext; | ||
}(Component); | ||
@@ -96,3 +94,3 @@ _defineProperty(AnalyticsContext, "contextTypes", ContextTypes$1); | ||
} | ||
_createClass(AnalyticsEvent, [{ | ||
return _createClass(AnalyticsEvent, [{ | ||
key: "update", | ||
@@ -109,7 +107,5 @@ value: function update(updater) { | ||
}]); | ||
return AnalyticsEvent; | ||
}(); | ||
var UIAnalyticsEvent = /*#__PURE__*/function (_AnalyticsEvent) { | ||
_inherits(UIAnalyticsEvent, _AnalyticsEvent); | ||
function UIAnalyticsEvent(props) { | ||
@@ -119,6 +115,6 @@ var _this; | ||
_this = _callSuper(this, UIAnalyticsEvent, [props]); | ||
_defineProperty(_assertThisInitialized(_this), "context", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "handlers", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "hasFired", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "clone", function () { | ||
_defineProperty(_this, "context", void 0); | ||
_defineProperty(_this, "handlers", void 0); | ||
_defineProperty(_this, "hasFired", void 0); | ||
_defineProperty(_this, "clone", function () { | ||
if (_this.hasFired) { | ||
@@ -144,3 +140,3 @@ // eslint-disable-next-line no-console | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "fire", function (channel) { | ||
_defineProperty(_this, "fire", function (channel) { | ||
if (_this.hasFired) { | ||
@@ -152,3 +148,3 @@ // eslint-disable-next-line no-console | ||
_this.handlers.forEach(function (handler) { | ||
return handler(_assertThisInitialized(_this), channel); | ||
return handler(_this, channel); | ||
}); | ||
@@ -162,3 +158,4 @@ _this.hasFired = true; | ||
} | ||
_createClass(UIAnalyticsEvent, [{ | ||
_inherits(UIAnalyticsEvent, _AnalyticsEvent); | ||
return _createClass(UIAnalyticsEvent, [{ | ||
key: "update", | ||
@@ -174,3 +171,2 @@ value: function update(updater) { | ||
}]); | ||
return UIAnalyticsEvent; | ||
}(AnalyticsEvent); | ||
@@ -184,3 +180,2 @@ | ||
var AnalyticsContextConsumer = /*#__PURE__*/function (_React$Component) { | ||
_inherits(AnalyticsContextConsumer, _React$Component); | ||
function AnalyticsContextConsumer(_props) { | ||
@@ -194,6 +189,6 @@ var _this; | ||
*/ | ||
_defineProperty(_assertThisInitialized(_this), "originalEventProps", {}); | ||
_defineProperty(_assertThisInitialized(_this), "patchedEventProps", {}); | ||
_defineProperty(_this, "originalEventProps", {}); | ||
_defineProperty(_this, "patchedEventProps", {}); | ||
// Update patched event props only if the original props have changed | ||
_defineProperty(_assertThisInitialized(_this), "updatePatchedEventProps", function (props) { | ||
_defineProperty(_this, "updatePatchedEventProps", function (props) { | ||
var changedPropCallbacks = Object.keys(_this.props.createEventMap).filter(function (p) { | ||
@@ -210,3 +205,3 @@ return _this.originalEventProps[p] !== props[p]; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "mapCreateEventsToProps", function (changedPropNames, props) { | ||
_defineProperty(_this, "mapCreateEventsToProps", function (changedPropNames, props) { | ||
return changedPropNames.reduce(function (modified, propCallbackName) { | ||
@@ -230,3 +225,3 @@ var eventCreator = _this.props.createEventMap[propCallbackName]; | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "createAnalyticsEvent", function (payload) { | ||
_defineProperty(_this, "createAnalyticsEvent", function (payload) { | ||
var _this$context = _this.context, | ||
@@ -247,3 +242,4 @@ getAnalyticsEventHandlers = _this$context.getAnalyticsEventHandlers, | ||
} | ||
_createClass(AnalyticsContextConsumer, [{ | ||
_inherits(AnalyticsContextConsumer, _React$Component); | ||
return _createClass(AnalyticsContextConsumer, [{ | ||
key: "render", | ||
@@ -258,3 +254,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsContextConsumer; | ||
}(React.Component); | ||
@@ -296,3 +291,2 @@ _defineProperty(AnalyticsContextConsumer, "contextTypes", { | ||
var BaseAnalyticsErrorBoundary = /*#__PURE__*/function (_Component) { | ||
_inherits(BaseAnalyticsErrorBoundary, _Component); | ||
function BaseAnalyticsErrorBoundary() { | ||
@@ -305,3 +299,3 @@ var _this; | ||
_this = _callSuper(this, BaseAnalyticsErrorBoundary, [].concat(args)); | ||
_defineProperty(_assertThisInitialized(_this), "fireAnalytics", function (analyticsErrorPayload) { | ||
_defineProperty(_this, "fireAnalytics", function (analyticsErrorPayload) { | ||
var _this$props = _this.props, | ||
@@ -321,3 +315,4 @@ createAnalyticsEvent = _this$props.createAnalyticsEvent, | ||
} | ||
_createClass(BaseAnalyticsErrorBoundary, [{ | ||
_inherits(BaseAnalyticsErrorBoundary, _Component); | ||
return _createClass(BaseAnalyticsErrorBoundary, [{ | ||
key: "componentDidCatch", | ||
@@ -343,3 +338,2 @@ value: function componentDidCatch(error, info) { | ||
}]); | ||
return BaseAnalyticsErrorBoundary; | ||
}(Component); | ||
@@ -352,3 +346,2 @@ var AnalyticsErrorBoundary = withAnalyticsEvents()(BaseAnalyticsErrorBoundary); | ||
var AnalyticsListener = /*#__PURE__*/function (_Component) { | ||
_inherits(AnalyticsListener, _Component); | ||
function AnalyticsListener() { | ||
@@ -361,3 +354,3 @@ var _this; | ||
_this = _callSuper(this, AnalyticsListener, [].concat(args)); | ||
_defineProperty(_assertThisInitialized(_this), "getChildContext", function () { | ||
_defineProperty(_this, "getChildContext", function () { | ||
return { | ||
@@ -367,3 +360,3 @@ getAnalyticsEventHandlers: _this.getAnalyticsEventHandlers | ||
}); | ||
_defineProperty(_assertThisInitialized(_this), "getAnalyticsEventHandlers", function () { | ||
_defineProperty(_this, "getAnalyticsEventHandlers", function () { | ||
var _this$props = _this.props, | ||
@@ -383,3 +376,4 @@ channel = _this$props.channel, | ||
} | ||
_createClass(AnalyticsListener, [{ | ||
_inherits(AnalyticsListener, _Component); | ||
return _createClass(AnalyticsListener, [{ | ||
key: "render", | ||
@@ -401,3 +395,2 @@ value: function render() { | ||
}]); | ||
return AnalyticsListener; | ||
}(Component); | ||
@@ -404,0 +397,0 @@ _defineProperty(AnalyticsListener, "contextTypes", ContextTypes); |
{ | ||
"name": "@uidu/analytics", | ||
"version": "0.11.2", | ||
"version": "0.12.0", | ||
"description": "The uidu component analytics framework", | ||
@@ -12,3 +12,3 @@ "repository": "https://github.com/uidu-org/guidu/tree/main/packages/core/analytics", | ||
"dependencies": { | ||
"@babel/runtime": "^7.23.9", | ||
"@babel/runtime": "^7.24.1", | ||
"prop-types": "^15.8.1", | ||
@@ -18,6 +18,6 @@ "tslib": "^2.6.2" | ||
"devDependencies": { | ||
"@uidu/button": "^1.8.2", | ||
"@uidu/docs": "^0.10.2", | ||
"@uidu/field-text": "^2.5.2", | ||
"@uidu/form": "^3.1.2", | ||
"@uidu/button": "^1.9.0", | ||
"@uidu/docs": "^0.11.0", | ||
"@uidu/field-text": "^2.6.0", | ||
"@uidu/form": "^3.2.0", | ||
"lodash.isequal": "^4.5.0", | ||
@@ -24,0 +24,0 @@ "react": "^18.2.0", |
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
92478
1905
Updated@babel/runtime@^7.24.1