@atlaskit/mention
Version:
A React component used to display user profiles in a list for 'Mention' functionality
34 lines • 1.73 kB
JavaScript
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _inherits from "@babel/runtime/helpers/inherits";
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
import React from 'react';
import { ExperiencePerformanceTypes, ExperienceTypes, ConcurrentExperience } from '@atlaskit/ufo';
export var mentionRenderedUfoExperience = new ConcurrentExperience('mention-rendered', {
platform: {
component: 'mention'
},
type: ExperienceTypes.Load,
performanceType: ExperiencePerformanceTypes.PageSegmentLoad
});
export var UfoErrorBoundary = /*#__PURE__*/function (_React$Component) {
function UfoErrorBoundary() {
_classCallCheck(this, UfoErrorBoundary);
return _callSuper(this, UfoErrorBoundary, arguments);
}
_inherits(UfoErrorBoundary, _React$Component);
return _createClass(UfoErrorBoundary, [{
key: "componentDidCatch",
value: function componentDidCatch() {
mentionRenderedUfoExperience.getInstance(this.props.id).failure();
}
}, {
key: "render",
value: function render() {
return this.props.children;
}
}]);
}(React.Component);