@atlaskit/mention 23.0.0 → 23.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/api/MentionResource.js +4 -4
- package/dist/cjs/api/PresenceResource.js +1 -1
- package/dist/cjs/api/TeamMentionResource.js +5 -5
- package/dist/cjs/components/LockCircleIcon/index.js +2 -2
- package/dist/cjs/components/Mention/ResourcedMention.js +3 -3
- package/dist/cjs/components/Mention/index.js +1 -1
- package/dist/cjs/components/Mention/ufoExperiences.js +1 -1
- package/dist/cjs/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/cjs/components/MentionDescriptionByline/UserMentionDescriptionByline.js +1 -1
- package/dist/cjs/components/MentionDescriptionByline/index.js +1 -1
- package/dist/cjs/components/MentionItem/index.js +1 -1
- package/dist/cjs/components/MentionList/index.js +1 -1
- package/dist/cjs/components/MentionListError/GenericErrorIllustration.js +1 -1
- package/dist/cjs/components/MentionListError/index.js +1 -1
- package/dist/cjs/components/MentionPicker/index.js +1 -1
- package/dist/cjs/components/NoAccessTooltip/index.js +2 -2
- package/dist/cjs/components/Popup/index.js +1 -1
- package/dist/cjs/components/ResourcedMentionList/index.js +1 -1
- package/dist/cjs/components/Scrollable/index.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/item.js +2 -2
- package/dist/cjs/resource.js +2 -2
- package/dist/cjs/team-resource.js +2 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/i18n.js +2 -2
- package/dist/es2019/api/MentionResource.js +1 -1
- package/dist/es2019/api/TeamMentionResource.js +0 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/api/MentionResource.js +4 -4
- package/dist/esm/api/PresenceResource.js +1 -1
- package/dist/esm/api/TeamMentionResource.js +5 -5
- package/dist/esm/components/Mention/ResourcedMention.js +1 -1
- package/dist/esm/components/Mention/index.js +1 -1
- package/dist/esm/components/Mention/ufoExperiences.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/UserMentionDescriptionByline.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/index.js +1 -1
- package/dist/esm/components/MentionItem/index.js +1 -1
- package/dist/esm/components/MentionList/index.js +1 -1
- package/dist/esm/components/MentionListError/GenericErrorIllustration.js +1 -1
- package/dist/esm/components/MentionListError/index.js +1 -1
- package/dist/esm/components/MentionPicker/index.js +1 -1
- package/dist/esm/components/Popup/index.js +1 -1
- package/dist/esm/components/ResourcedMentionList/index.js +1 -1
- package/dist/esm/components/Scrollable/index.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/Mention/ufoExperiences.d.ts +2 -2
- package/dist/types/components/MessagesIntlProvider/index.d.ts +2 -2
- package/dist/types-ts4.5/components/Mention/ufoExperiences.d.ts +2 -2
- package/dist/types-ts4.5/components/MessagesIntlProvider/index.d.ts +2 -2
- package/element/package.json +1 -1
- package/i18n/package.json +1 -1
- package/item/package.json +1 -1
- package/package.json +5 -5
- package/resource/package.json +1 -1
- package/shared-styles/package.json +1 -1
- package/team-resource/package.json +1 -1
- package/typeahead/package.json +1 -1
- package/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/mention
|
|
2
2
|
|
|
3
|
+
## 23.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
9
|
+
## 23.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
|
|
14
|
+
|
|
3
15
|
## 23.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
@@ -21,12 +21,13 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
|
21
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() {
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
25
|
var MAX_QUERY_ITEMS = 100;
|
|
26
26
|
var MAX_NOTIFIED_ITEMS = 20;
|
|
27
27
|
|
|
28
28
|
// Re-exporting types to prevent breaking change
|
|
29
29
|
// Re-exporting types to prevent breaking change
|
|
30
|
+
|
|
30
31
|
/**
|
|
31
32
|
* Support
|
|
32
33
|
*/
|
|
@@ -217,7 +218,6 @@ var MentionResource = exports.MentionResource = /*#__PURE__*/function (_Abstract
|
|
|
217
218
|
var date = new Date(searchTime).toISOString().substr(17, 6);
|
|
218
219
|
(0, _logger.default)('Stale search result, skipping', date, query); // eslint-disable-line no-console, max-len
|
|
219
220
|
}
|
|
220
|
-
|
|
221
221
|
this._notifyAllResultsListeners(mentionResult);
|
|
222
222
|
}
|
|
223
223
|
}, {
|
|
@@ -373,7 +373,7 @@ var MentionResource = exports.MentionResource = /*#__PURE__*/function (_Abstract
|
|
|
373
373
|
*/
|
|
374
374
|
}, {
|
|
375
375
|
key: "remoteInitialState",
|
|
376
|
-
value: function () {
|
|
376
|
+
value: (function () {
|
|
377
377
|
var _remoteInitialState = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(contextIdentifier) {
|
|
378
378
|
var queryParams, options, result;
|
|
379
379
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
@@ -406,7 +406,7 @@ var MentionResource = exports.MentionResource = /*#__PURE__*/function (_Abstract
|
|
|
406
406
|
return _remoteInitialState.apply(this, arguments);
|
|
407
407
|
}
|
|
408
408
|
return remoteInitialState;
|
|
409
|
-
}()
|
|
409
|
+
}())
|
|
410
410
|
}, {
|
|
411
411
|
key: "search",
|
|
412
412
|
value: function search(query, contextIdentifier) {
|
|
@@ -17,7 +17,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
|
|
|
17
17
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
18
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
20
|
-
function _isNativeReflectConstruct() {
|
|
20
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
21
|
var CacheEntry = /*#__PURE__*/function () {
|
|
22
22
|
function CacheEntry(pres, timeout) {
|
|
23
23
|
(0, _classCallCheck2.default)(this, CacheEntry);
|
|
@@ -24,7 +24,7 @@ var _logger = _interopRequireDefault(require("../util/logger"));
|
|
|
24
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
27
|
-
function _isNativeReflectConstruct() {
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
28
|
var MAX_QUERY_TEAMS = 20;
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -67,7 +67,7 @@ var TeamMentionResource = exports.default = /*#__PURE__*/function (_MentionResou
|
|
|
67
67
|
*/
|
|
68
68
|
}, {
|
|
69
69
|
key: "remoteInitialStateTeamAndUsers",
|
|
70
|
-
value: function () {
|
|
70
|
+
value: (function () {
|
|
71
71
|
var _remoteInitialStateTeamAndUsers = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(contextIdentifier) {
|
|
72
72
|
var emptyQuery, getUserPromise, queryParams, options, getTeamsPromise;
|
|
73
73
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
@@ -100,9 +100,10 @@ var TeamMentionResource = exports.default = /*#__PURE__*/function (_MentionResou
|
|
|
100
100
|
* If one errors, show the non-erroring one
|
|
101
101
|
* If both error, show error
|
|
102
102
|
*/
|
|
103
|
+
)
|
|
103
104
|
}, {
|
|
104
105
|
key: "handleBothRequests",
|
|
105
|
-
value: function () {
|
|
106
|
+
value: (function () {
|
|
106
107
|
var _handleBothRequests = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(query, userRequest, teamRequest) {
|
|
107
108
|
var _this2 = this;
|
|
108
109
|
var searchTime, accumulatedResults, notifyWhenOneRequestDone, userResults, userRequestError, teamRequestError, teamsResult;
|
|
@@ -176,7 +177,7 @@ var TeamMentionResource = exports.default = /*#__PURE__*/function (_MentionResou
|
|
|
176
177
|
return _handleBothRequests.apply(this, arguments);
|
|
177
178
|
}
|
|
178
179
|
return handleBothRequests;
|
|
179
|
-
}()
|
|
180
|
+
}())
|
|
180
181
|
}, {
|
|
181
182
|
key: "notify",
|
|
182
183
|
value: function notify(searchTime, mentionResult, query) {
|
|
@@ -189,7 +190,6 @@ var TeamMentionResource = exports.default = /*#__PURE__*/function (_MentionResou
|
|
|
189
190
|
var date = new Date(searchTime).toISOString().substr(17, 6);
|
|
190
191
|
(0, _logger.default)('Stale search result, skipping', date, query); // eslint-disable-line no-console, max-len
|
|
191
192
|
}
|
|
192
|
-
|
|
193
193
|
this._notifyAllResultsListeners(mentionResult);
|
|
194
194
|
}
|
|
195
195
|
}, {
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
var AsyncLockCircleIcon = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
13
13
|
return Promise.resolve().then(function () {
|
|
14
14
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_mention/LockCircleIcon" */'@atlaskit/icon/glyph/lock-circle'));
|
|
@@ -18,10 +18,10 @@ var _MentionResource = require("../../api/MentionResource");
|
|
|
18
18
|
var _types = require("../../types");
|
|
19
19
|
var _ = _interopRequireWildcard(require("./"));
|
|
20
20
|
var _logger = _interopRequireDefault(require("../../util/logger"));
|
|
21
|
-
function _getRequireWildcardCache(
|
|
22
|
-
function _interopRequireWildcard(
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() {
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
25
|
var ResourcedMention = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
26
26
|
(0, _inherits2.default)(ResourcedMention, _React$PureComponent);
|
|
27
27
|
var _super = _createSuper(ResourcedMention);
|
|
@@ -24,7 +24,7 @@ var _ufo = require("@atlaskit/ufo");
|
|
|
24
24
|
var _i18n = require("../../util/i18n");
|
|
25
25
|
var _ufoExperiences = require("./ufoExperiences");
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
27
|
-
function _isNativeReflectConstruct() {
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
28
|
var ANALYTICS_HOVER_DELAY = exports.ANALYTICS_HOVER_DELAY = 1000;
|
|
29
29
|
var UNKNOWN_USER_ID = exports.UNKNOWN_USER_ID = '_|unknown|_';
|
|
30
30
|
var MentionInternal = exports.MentionInternal = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -13,7 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _ufo = require("@atlaskit/ufo");
|
|
15
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
16
|
-
function _isNativeReflectConstruct() {
|
|
16
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
17
|
var mentionRenderedUfoExperience = exports.mentionRenderedUfoExperience = new _ufo.ConcurrentExperience('mention-rendered', {
|
|
18
18
|
platform: {
|
|
19
19
|
component: 'mention'
|
|
@@ -18,7 +18,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
18
18
|
var _styles = require("./styles");
|
|
19
19
|
var _i18n = require("../i18n");
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
|
-
function _isNativeReflectConstruct() {
|
|
21
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
22
|
var TeamMentionDescriptionByline = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
23
23
|
(0, _inherits2.default)(TeamMentionDescriptionByline, _React$PureComponent);
|
|
24
24
|
var _super = _createSuper(TeamMentionDescriptionByline);
|
|
@@ -14,7 +14,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
14
14
|
var _MentionHighlightHelpers = require("../MentionItem/MentionHighlightHelpers");
|
|
15
15
|
var _styles = require("./styles");
|
|
16
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
17
|
-
function _isNativeReflectConstruct() {
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
18
|
var UserMentionDescriptionByline = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
19
19
|
(0, _inherits2.default)(UserMentionDescriptionByline, _React$PureComponent);
|
|
20
20
|
var _super = _createSuper(UserMentionDescriptionByline);
|
|
@@ -15,7 +15,7 @@ var _types = require("../../types");
|
|
|
15
15
|
var _UserMentionDescriptionByline = _interopRequireDefault(require("./UserMentionDescriptionByline"));
|
|
16
16
|
var _TeamMentionDescriptionByline = _interopRequireDefault(require("./TeamMentionDescriptionByline"));
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
|
-
function _isNativeReflectConstruct() {
|
|
18
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
19
|
var MentionDescriptionByline = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
20
20
|
(0, _inherits2.default)(MentionDescriptionByline, _React$PureComponent);
|
|
21
21
|
var _super = _createSuper(MentionDescriptionByline);
|
|
@@ -33,7 +33,7 @@ var _MentionHighlightHelpers = require("./MentionHighlightHelpers");
|
|
|
33
33
|
var _MentionDescriptionByline = _interopRequireDefault(require("../MentionDescriptionByline"));
|
|
34
34
|
var _MessagesIntlProvider = _interopRequireDefault(require("../MessagesIntlProvider"));
|
|
35
35
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
36
|
-
function _isNativeReflectConstruct() {
|
|
36
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
37
|
function renderLozenge(lozenge) {
|
|
38
38
|
if (typeof lozenge === 'string') {
|
|
39
39
|
return /*#__PURE__*/_react.default.createElement(_lozenge.default, null, lozenge);
|
|
@@ -21,7 +21,7 @@ var _MessagesIntlProvider = _interopRequireDefault(require("../MessagesIntlProvi
|
|
|
21
21
|
var _Scrollable = _interopRequireDefault(require("../Scrollable"));
|
|
22
22
|
var _styles = require("./styles");
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
|
-
function _isNativeReflectConstruct() {
|
|
24
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
25
|
function wrapIndex(mentions, index) {
|
|
26
26
|
var len = mentions.length;
|
|
27
27
|
var newIndex = index;
|
|
@@ -13,7 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _styles = require("./styles");
|
|
15
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
16
|
-
function _isNativeReflectConstruct() {
|
|
16
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
17
17
|
var GenericErrorIllustration = exports.GenericErrorIllustration = /*#__PURE__*/function (_React$PureComponent) {
|
|
18
18
|
(0, _inherits2.default)(GenericErrorIllustration, _React$PureComponent);
|
|
19
19
|
var _super = _createSuper(GenericErrorIllustration);
|
|
@@ -15,7 +15,7 @@ var _i18n = require("../../util/i18n");
|
|
|
15
15
|
var _GenericErrorIllustration = require("./GenericErrorIllustration");
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
|
-
function _isNativeReflectConstruct() {
|
|
18
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
19
|
var advisedActionMessages = {
|
|
20
20
|
'401': _i18n.LoginAgain,
|
|
21
21
|
'403': _i18n.DifferentText,
|
|
@@ -22,7 +22,7 @@ var _Popup = _interopRequireDefault(require("../Popup"));
|
|
|
22
22
|
var _ResourcedMentionList = _interopRequireDefault(require("../ResourcedMentionList"));
|
|
23
23
|
var _styles = require("./styles");
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
|
-
function _isNativeReflectConstruct() {
|
|
25
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
26
|
/**
|
|
27
27
|
* @class MentionPicker
|
|
28
28
|
*/
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
var AsyncNoAccessTooltip = /*#__PURE__*/_react.default.lazy(function () {
|
|
13
13
|
return Promise.resolve().then(function () {
|
|
14
14
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_@atlaskit/mention/no-access-tooltip" */'./main'));
|
|
@@ -14,7 +14,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
16
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
17
|
-
function _isNativeReflectConstruct() {
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
18
|
/*
|
|
19
19
|
* Simple implementation of popup while waiting for ak-inline-dialog
|
|
20
20
|
*/
|
|
@@ -19,7 +19,7 @@ var _logger = _interopRequireDefault(require("../../util/logger"));
|
|
|
19
19
|
var _MentionList = _interopRequireDefault(require("../MentionList"));
|
|
20
20
|
var _analytics = require("../../util/analytics");
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
25
|
function applyPresence(mentions, presences) {
|
|
@@ -16,7 +16,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
16
16
|
var _reactDom = require("react-dom");
|
|
17
17
|
var _styles = require("./styles");
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
|
-
function _isNativeReflectConstruct() {
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
20
|
var Scrollable = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
21
21
|
(0, _inherits2.default)(Scrollable, _React$PureComponent);
|
|
22
22
|
var _super = _createSuper(Scrollable);
|
package/dist/cjs/index.js
CHANGED
|
@@ -133,6 +133,6 @@ var _ResourcedMention = _interopRequireDefault(require("./components/Mention/Res
|
|
|
133
133
|
var _types = require("./types");
|
|
134
134
|
var _constants = require("./_constants");
|
|
135
135
|
var _ContextMentionResource = _interopRequireDefault(require("./api/ContextMentionResource"));
|
|
136
|
-
function _getRequireWildcardCache(
|
|
137
|
-
function _interopRequireWildcard(
|
|
136
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
137
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
138
138
|
var _default = exports.default = _MentionPicker.MentionPickerWithAnalytics;
|
package/dist/cjs/item.js
CHANGED
|
@@ -17,5 +17,5 @@ Object.defineProperty(exports, "MentionItem", {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
var _MentionItem = _interopRequireWildcard(require("./components/MentionItem"));
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/dist/cjs/resource.js
CHANGED
|
@@ -90,5 +90,5 @@ var _types = require("./types");
|
|
|
90
90
|
var _constants = require("./_constants");
|
|
91
91
|
var _ContextMentionResource = _interopRequireDefault(require("./api/ContextMentionResource"));
|
|
92
92
|
var _analytics = require("./util/analytics");
|
|
93
|
-
function _getRequireWildcardCache(
|
|
94
|
-
function _interopRequireWildcard(
|
|
93
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
94
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -59,5 +59,5 @@ var _PresenceResource = _interopRequireWildcard(require("./api/PresenceResource"
|
|
|
59
59
|
var _types = require("./types");
|
|
60
60
|
var _constants = require("./_constants");
|
|
61
61
|
var _ContextMentionResource = _interopRequireDefault(require("./api/ContextMentionResource"));
|
|
62
|
-
function _getRequireWildcardCache(
|
|
63
|
-
function _interopRequireWildcard(
|
|
62
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
63
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -12,7 +12,7 @@ var _types = require("../types");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/mention";
|
|
15
|
-
var packageVersion = "23.0.
|
|
15
|
+
var packageVersion = "23.0.2";
|
|
16
16
|
var SLI_EVENT_TYPE = exports.SLI_EVENT_TYPE = 'sli';
|
|
17
17
|
var SMART_EVENT_TYPE = exports.SMART_EVENT_TYPE = 'smart';
|
|
18
18
|
var SliNames = exports.SliNames = /*#__PURE__*/function (SliNames) {
|
package/dist/cjs/util/i18n.js
CHANGED
|
@@ -12,8 +12,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _i18n = require("../components/i18n");
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
var propFormatter = exports.propFormatter = function propFormatter(messageDescriptor) {
|
|
18
18
|
return function (_ref) {
|
|
19
19
|
var values = _ref.values,
|
|
@@ -5,6 +5,7 @@ const MAX_QUERY_ITEMS = 100;
|
|
|
5
5
|
const MAX_NOTIFIED_ITEMS = 20;
|
|
6
6
|
// Re-exporting types to prevent breaking change
|
|
7
7
|
// Re-exporting types to prevent breaking change
|
|
8
|
+
|
|
8
9
|
import { SLI_EVENT_TYPE, Actions, SliNames } from '../util/analytics';
|
|
9
10
|
import debounce from 'lodash/debounce';
|
|
10
11
|
|
|
@@ -157,7 +158,6 @@ export class MentionResource extends AbstractMentionResource {
|
|
|
157
158
|
const date = new Date(searchTime).toISOString().substr(17, 6);
|
|
158
159
|
debug('Stale search result, skipping', date, query); // eslint-disable-line no-console, max-len
|
|
159
160
|
}
|
|
160
|
-
|
|
161
161
|
this._notifyAllResultsListeners(mentionResult);
|
|
162
162
|
}
|
|
163
163
|
notifyError(error, query) {
|
|
@@ -116,7 +116,6 @@ export default class TeamMentionResource extends MentionResource {
|
|
|
116
116
|
const date = new Date(searchTime).toISOString().substr(17, 6);
|
|
117
117
|
debug('Stale search result, skipping', date, query); // eslint-disable-line no-console, max-len
|
|
118
118
|
}
|
|
119
|
-
|
|
120
119
|
this._notifyAllResultsListeners(mentionResult);
|
|
121
120
|
}
|
|
122
121
|
getQueryParamsOfTeamMentionConfig(contextIdentifier) {
|
|
@@ -2,7 +2,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
2
2
|
import { ELEMENTS_CHANNEL } from '../_constants';
|
|
3
3
|
import { isSpecialMentionText } from '../types';
|
|
4
4
|
const packageName = "@atlaskit/mention";
|
|
5
|
-
const packageVersion = "23.0.
|
|
5
|
+
const packageVersion = "23.0.2";
|
|
6
6
|
export const SLI_EVENT_TYPE = 'sli';
|
|
7
7
|
export const SMART_EVENT_TYPE = 'smart';
|
|
8
8
|
export let SliNames = /*#__PURE__*/function (SliNames) {
|
|
@@ -9,7 +9,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
-
function _isNativeReflectConstruct() {
|
|
12
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
14
14
|
import { isAppMention, isTeamMention, MentionNameStatus } from '../types';
|
|
15
15
|
import debug from '../util/logger';
|
|
@@ -17,6 +17,7 @@ var MAX_QUERY_ITEMS = 100;
|
|
|
17
17
|
var MAX_NOTIFIED_ITEMS = 20;
|
|
18
18
|
// Re-exporting types to prevent breaking change
|
|
19
19
|
// Re-exporting types to prevent breaking change
|
|
20
|
+
|
|
20
21
|
import { SLI_EVENT_TYPE, Actions, SliNames } from '../util/analytics';
|
|
21
22
|
import debounce from 'lodash/debounce';
|
|
22
23
|
|
|
@@ -210,7 +211,6 @@ export var MentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
|
|
|
210
211
|
var date = new Date(searchTime).toISOString().substr(17, 6);
|
|
211
212
|
debug('Stale search result, skipping', date, query); // eslint-disable-line no-console, max-len
|
|
212
213
|
}
|
|
213
|
-
|
|
214
214
|
this._notifyAllResultsListeners(mentionResult);
|
|
215
215
|
}
|
|
216
216
|
}, {
|
|
@@ -366,7 +366,7 @@ export var MentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
|
|
|
366
366
|
*/
|
|
367
367
|
}, {
|
|
368
368
|
key: "remoteInitialState",
|
|
369
|
-
value: function () {
|
|
369
|
+
value: (function () {
|
|
370
370
|
var _remoteInitialState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(contextIdentifier) {
|
|
371
371
|
var queryParams, options, result;
|
|
372
372
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -399,7 +399,7 @@ export var MentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
|
|
|
399
399
|
return _remoteInitialState.apply(this, arguments);
|
|
400
400
|
}
|
|
401
401
|
return remoteInitialState;
|
|
402
|
-
}()
|
|
402
|
+
}())
|
|
403
403
|
}, {
|
|
404
404
|
key: "search",
|
|
405
405
|
value: function search(query, contextIdentifier) {
|
|
@@ -8,7 +8,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
|
|
|
8
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
9
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
function _isNativeReflectConstruct() {
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import debug from '../util/logger';
|
|
13
13
|
import { AbstractResource } from './MentionResource';
|
|
14
14
|
var CacheEntry = /*#__PURE__*/function () {
|
|
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
|
-
function _isNativeReflectConstruct() {
|
|
15
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
16
|
import { SLI_EVENT_TYPE, SliNames, Actions } from './../util/analytics';
|
|
17
17
|
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
18
18
|
import { UserType, UserAccessLevel } from '../types';
|
|
@@ -60,7 +60,7 @@ var TeamMentionResource = /*#__PURE__*/function (_MentionResource) {
|
|
|
60
60
|
*/
|
|
61
61
|
}, {
|
|
62
62
|
key: "remoteInitialStateTeamAndUsers",
|
|
63
|
-
value: function () {
|
|
63
|
+
value: (function () {
|
|
64
64
|
var _remoteInitialStateTeamAndUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(contextIdentifier) {
|
|
65
65
|
var emptyQuery, getUserPromise, queryParams, options, getTeamsPromise;
|
|
66
66
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -93,9 +93,10 @@ var TeamMentionResource = /*#__PURE__*/function (_MentionResource) {
|
|
|
93
93
|
* If one errors, show the non-erroring one
|
|
94
94
|
* If both error, show error
|
|
95
95
|
*/
|
|
96
|
+
)
|
|
96
97
|
}, {
|
|
97
98
|
key: "handleBothRequests",
|
|
98
|
-
value: function () {
|
|
99
|
+
value: (function () {
|
|
99
100
|
var _handleBothRequests = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(query, userRequest, teamRequest) {
|
|
100
101
|
var _this2 = this;
|
|
101
102
|
var searchTime, accumulatedResults, notifyWhenOneRequestDone, userResults, userRequestError, teamRequestError, teamsResult;
|
|
@@ -169,7 +170,7 @@ var TeamMentionResource = /*#__PURE__*/function (_MentionResource) {
|
|
|
169
170
|
return _handleBothRequests.apply(this, arguments);
|
|
170
171
|
}
|
|
171
172
|
return handleBothRequests;
|
|
172
|
-
}()
|
|
173
|
+
}())
|
|
173
174
|
}, {
|
|
174
175
|
key: "notify",
|
|
175
176
|
value: function notify(searchTime, mentionResult, query) {
|
|
@@ -182,7 +183,6 @@ var TeamMentionResource = /*#__PURE__*/function (_MentionResource) {
|
|
|
182
183
|
var date = new Date(searchTime).toISOString().substr(17, 6);
|
|
183
184
|
debug('Stale search result, skipping', date, query); // eslint-disable-line no-console, max-len
|
|
184
185
|
}
|
|
185
|
-
|
|
186
186
|
this._notifyAllResultsListeners(mentionResult);
|
|
187
187
|
}
|
|
188
188
|
}, {
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { isResolvingMentionProvider } from '../../api/MentionResource';
|
|
12
12
|
import { isPromise, MentionNameStatus } from '../../types';
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import FocusRing from '@atlaskit/focus-ring';
|
|
12
12
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { ExperiencePerformanceTypes, ExperienceTypes, ConcurrentExperience } from '@atlaskit/ufo';
|
|
10
10
|
export var mentionRenderedUfoExperience = new ConcurrentExperience('mention-rendered', {
|
|
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
13
13
|
import { DescriptionBylineStyle } from './styles';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { renderHighlight } from '../MentionItem/MentionHighlightHelpers';
|
|
10
10
|
import { DescriptionBylineStyle } from './styles';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { UserType } from '../../types';
|
|
10
10
|
import UserMentionDescriptionByline from './UserMentionDescriptionByline';
|
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import Avatar from '@atlaskit/avatar';
|
|
12
12
|
import Lozenge from '@atlaskit/lozenge';
|
|
13
13
|
import { N30 } from '@atlaskit/theme/colors';
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import debug from '../../util/logger';
|
|
12
12
|
import { actualMouseMove, mouseLocation } from '../../util/mouse';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { GenericErrorVisualStyle } from './styles';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { DefaultAdvisedAction, DefaultHeadline, DifferentText, LoginAgain } from '../../util/i18n';
|
|
10
10
|
import { GenericErrorIllustration } from './GenericErrorIllustration';
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
@@ -5,7 +5,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import ReactDOM from 'react-dom';
|
|
11
11
|
/*
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import React from 'react';
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { findDOMNode } from 'react-dom';
|
|
12
12
|
import { ScrollableStyle } from './styles';
|
|
@@ -5,7 +5,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
5
5
|
import { ELEMENTS_CHANNEL } from '../_constants';
|
|
6
6
|
import { isSpecialMentionText } from '../types';
|
|
7
7
|
var packageName = "@atlaskit/mention";
|
|
8
|
-
var packageVersion = "23.0.
|
|
8
|
+
var packageVersion = "23.0.2";
|
|
9
9
|
export var SLI_EVENT_TYPE = 'sli';
|
|
10
10
|
export var SMART_EVENT_TYPE = 'smart';
|
|
11
11
|
export var SliNames = /*#__PURE__*/function (SliNames) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ConcurrentExperience } from '@atlaskit/ufo';
|
|
3
3
|
export declare const mentionRenderedUfoExperience: ConcurrentExperience;
|
|
4
|
-
export declare class UfoErrorBoundary extends React.Component<{
|
|
4
|
+
export declare class UfoErrorBoundary extends React.Component<React.PropsWithChildren<{
|
|
5
5
|
id: string;
|
|
6
|
-
}
|
|
6
|
+
}>> {
|
|
7
7
|
componentDidCatch(): void;
|
|
8
8
|
render(): React.ReactNode;
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const MessagesIntlProvider:
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
3
3
|
export default MessagesIntlProvider;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ConcurrentExperience } from '@atlaskit/ufo';
|
|
3
3
|
export declare const mentionRenderedUfoExperience: ConcurrentExperience;
|
|
4
|
-
export declare class UfoErrorBoundary extends React.Component<{
|
|
4
|
+
export declare class UfoErrorBoundary extends React.Component<React.PropsWithChildren<{
|
|
5
5
|
id: string;
|
|
6
|
-
}
|
|
6
|
+
}>> {
|
|
7
7
|
componentDidCatch(): void;
|
|
8
8
|
render(): React.ReactNode;
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const MessagesIntlProvider:
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
3
3
|
export default MessagesIntlProvider;
|
package/element/package.json
CHANGED
package/i18n/package.json
CHANGED
package/item/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/mention",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.2",
|
|
4
4
|
"description": "A React component used to display user profiles in a list for 'Mention' functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
40
40
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
41
|
-
"@atlaskit/avatar": "^21.
|
|
41
|
+
"@atlaskit/avatar": "^21.5.0",
|
|
42
42
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
43
|
-
"@atlaskit/icon": "^22.
|
|
43
|
+
"@atlaskit/icon": "^22.1.0",
|
|
44
44
|
"@atlaskit/lozenge": "^11.6.0",
|
|
45
45
|
"@atlaskit/theme": "^12.6.0",
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.42.0",
|
|
47
47
|
"@atlaskit/tooltip": "^18.1.0",
|
|
48
48
|
"@atlaskit/ufo": "^0.2.0",
|
|
49
49
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"react-dom": "^16.8.0",
|
|
75
75
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
76
76
|
"serialize-javascript": "^5.0.1",
|
|
77
|
-
"typescript": "~4.
|
|
77
|
+
"typescript": "~5.4.2"
|
|
78
78
|
},
|
|
79
79
|
"keywords": [
|
|
80
80
|
"ui",
|
package/resource/package.json
CHANGED
package/typeahead/package.json
CHANGED