@atlaskit/mention 29.2.2 → 29.2.4
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/TeamMentionResource.js +2 -2
- package/dist/cjs/components/DisabledMentionTooltip/main.js +1 -1
- package/dist/cjs/components/Mention/MentionInternal.js +1 -1
- package/dist/cjs/components/Mention/PrimitiveMention.js +6 -6
- package/dist/cjs/components/Mention/ufoExperiences.js +1 -1
- package/dist/cjs/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/cjs/components/MentionDescriptionByline/index.js +3 -3
- package/dist/cjs/components/NoAccessTooltip/main.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/resource.js +1 -1
- package/dist/cjs/util/analytics.js +1 -0
- package/dist/cjs/util/package-version.js +1 -1
- package/dist/es2019/api/ContextMentionResource.js +1 -1
- package/dist/es2019/api/MentionResource.js +1 -0
- package/dist/es2019/api/TeamMentionResource.js +2 -2
- package/dist/es2019/components/DisabledMentionTooltip/main.js +1 -1
- package/dist/es2019/components/Mention/MentionInternal.js +1 -1
- package/dist/es2019/components/Mention/PrimitiveMention.js +4 -2
- package/dist/es2019/components/Mention/ufoExperiences.js +1 -1
- package/dist/es2019/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/es2019/components/MentionDescriptionByline/index.js +3 -3
- package/dist/es2019/components/MentionDescriptionByline/styles.js +2 -2
- package/dist/es2019/components/MentionItem/index.js +1 -0
- package/dist/es2019/components/MentionItem/styles.js +2 -2
- package/dist/es2019/components/MentionList/styles.js +2 -2
- package/dist/es2019/components/MentionListError/GenericErrorIllustration.js +1 -0
- package/dist/es2019/components/MentionListError/styles.js +2 -2
- package/dist/es2019/components/MentionPicker/styles.js +2 -2
- package/dist/es2019/components/NoAccessTooltip/main.js +1 -1
- package/dist/es2019/components/Scrollable/styles.js +3 -2
- package/dist/es2019/element.js +1 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/item.js +1 -0
- package/dist/es2019/resource.js +2 -1
- package/dist/es2019/team-resource.js +1 -0
- package/dist/es2019/util/analytics.js +1 -0
- package/dist/es2019/util/package-version.js +1 -1
- package/dist/esm/api/ContextMentionResource.js +1 -2
- package/dist/esm/api/MentionResource.js +1 -0
- package/dist/esm/api/TeamMentionResource.js +2 -2
- package/dist/esm/components/DisabledMentionTooltip/main.js +1 -1
- package/dist/esm/components/Mention/MentionInternal.js +1 -1
- package/dist/esm/components/Mention/PrimitiveMention.js +4 -2
- package/dist/esm/components/Mention/ufoExperiences.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
- package/dist/esm/components/MentionDescriptionByline/index.js +3 -3
- package/dist/esm/components/MentionDescriptionByline/styles.js +2 -2
- package/dist/esm/components/MentionItem/index.js +1 -0
- package/dist/esm/components/MentionItem/styles.js +2 -2
- package/dist/esm/components/MentionList/styles.js +2 -2
- package/dist/esm/components/MentionListError/GenericErrorIllustration.js +1 -0
- package/dist/esm/components/MentionListError/styles.js +2 -2
- package/dist/esm/components/MentionPicker/styles.js +2 -2
- package/dist/esm/components/NoAccessTooltip/main.js +1 -1
- package/dist/esm/components/Scrollable/styles.js +3 -2
- package/dist/esm/element.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/item.js +1 -0
- package/dist/esm/resource.js +2 -1
- package/dist/esm/team-resource.js +1 -0
- package/dist/esm/util/analytics.js +1 -0
- package/dist/esm/util/package-version.js +1 -1
- package/dist/types/api/ContextMentionResource.d.ts +1 -1
- package/dist/types/components/LockCircleIcon/index.d.ts +1 -1
- package/dist/types/components/Mention/PrimitiveMention.d.ts +4 -0
- package/dist/types/components/MentionDescriptionByline/styles.d.ts +2 -2
- package/dist/types/components/MentionItem/styles.d.ts +2 -2
- package/dist/types/components/MentionList/styles.d.ts +2 -2
- package/dist/types/components/MentionListError/styles.d.ts +2 -2
- package/dist/types/components/MentionPicker/styles.d.ts +2 -2
- package/dist/types/components/Scrollable/styles.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/resource.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -15,11 +15,11 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
15
15
|
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
16
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
|
-
var _analytics = require("./../util/analytics");
|
|
19
18
|
var _utilServiceSupport = require("@atlaskit/util-service-support");
|
|
20
19
|
var _types = require("../types");
|
|
21
|
-
var _MentionResource2 = require("./MentionResource");
|
|
22
20
|
var _logger = _interopRequireDefault(require("../util/logger"));
|
|
21
|
+
var _analytics = require("./../util/analytics");
|
|
22
|
+
var _MentionResource2 = require("./MentionResource");
|
|
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 _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.DisabledMentionTooltip = void 0;
|
|
8
|
-
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
10
10
|
/**
|
|
11
11
|
* Wraps a disabled `<Mention>` chip with a tooltip explaining why the chip
|
|
12
12
|
* is disabled. The chip itself remains non-interactive; the tooltip is the
|
|
@@ -25,8 +25,8 @@ var _i18n = require("../../util/i18n");
|
|
|
25
25
|
var _DisabledMentionTooltip = _interopRequireDefault(require("../DisabledMentionTooltip"));
|
|
26
26
|
var _MessagesIntlProvider = _interopRequireDefault(require("../MessagesIntlProvider"));
|
|
27
27
|
var _NoAccessTooltip = _interopRequireDefault(require("../NoAccessTooltip"));
|
|
28
|
-
var _PrimitiveMention = _interopRequireDefault(require("./PrimitiveMention"));
|
|
29
28
|
var _index = require("./index");
|
|
29
|
+
var _PrimitiveMention = _interopRequireDefault(require("./PrimitiveMention"));
|
|
30
30
|
var _ufoExperiences = require("./ufoExperiences");
|
|
31
31
|
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; }
|
|
32
32
|
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; }
|
|
@@ -8,32 +8,32 @@ exports.default = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _react = require("
|
|
12
|
-
var _react2 = require("react");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
13
|
var _mentionStyle = require("./mention-style");
|
|
14
14
|
var _templateObject;
|
|
15
15
|
var _excluded = ["isAvatarVisible", "mentionType"];
|
|
16
|
-
/* eslint-disable @atlaskit/design-system/no-html-button */
|
|
17
16
|
/**
|
|
18
17
|
* @jsxRuntime classic
|
|
19
18
|
* @jsx jsx
|
|
20
19
|
*/
|
|
20
|
+
/* eslint-disable @atlaskit/design-system/no-html-button */
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
var getStyle = function getStyle(_ref, property) {
|
|
23
23
|
var mentionType = _ref.mentionType;
|
|
24
24
|
return _mentionStyle.mentionStyle[mentionType][property];
|
|
25
25
|
};
|
|
26
|
-
var PrimitiveMention = /*#__PURE__*/(0,
|
|
26
|
+
var PrimitiveMention = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
27
27
|
var _ref2$isAvatarVisible = _ref2.isAvatarVisible,
|
|
28
28
|
isAvatarVisible = _ref2$isAvatarVisible === void 0 ? false : _ref2$isAvatarVisible,
|
|
29
29
|
mentionType = _ref2.mentionType,
|
|
30
30
|
other = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
31
|
-
return (0,
|
|
31
|
+
return (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
32
32
|
ref: ref,
|
|
33
33
|
"data-avatar-visible": isAvatarVisible || undefined
|
|
34
34
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
35
|
,
|
|
36
|
-
css: (0,
|
|
36
|
+
css: (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\tdisplay: inline;\n\t\t\t\t\tborder: ", " solid ", ";\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tborder-radius: 20px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tpadding: 0 0.3em 2px 0.23em;\n\t\t\t\t\tline-height: 1.714;\n\t\t\t\t\tfont-size: 1em;\n\t\t\t\t\tfont-weight: ", ";\n\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t&[data-avatar-visible='true'] {\n\t\t\t\t\t\tpadding: 1px 0.3em 1px 0.23em;\n\t\t\t\t\t}\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tbackground: ", ";\n\t\t\t\t\t}\n\t\t\t\t\t&:active {\n\t\t\t\t\t\tbackground: ", ";\n\t\t\t\t\t}\n\t\t\t\t"])), "var(--ds-border-width, 1px)", getStyle({
|
|
37
37
|
mentionType: mentionType
|
|
38
38
|
}, 'borderColor'), getStyle({
|
|
39
39
|
mentionType: mentionType
|
|
@@ -11,8 +11,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
11
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
|
-
var _experienceTypes = require("@atlaskit/ufo/experience-types");
|
|
15
14
|
var _concurrentExperience = require("@atlaskit/ufo/concurrent-experience");
|
|
15
|
+
var _experienceTypes = require("@atlaskit/ufo/experience-types");
|
|
16
16
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
17
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 mentionRenderedUfoExperience = exports.mentionRenderedUfoExperience = new _concurrentExperience.ConcurrentExperience('mention-rendered', {
|
|
@@ -14,8 +14,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
|
-
var _styles = require("./styles");
|
|
18
17
|
var _i18n = require("../i18n");
|
|
18
|
+
var _styles = require("./styles");
|
|
19
19
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
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 TeamMentionDescriptionByline = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -13,10 +13,10 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _types = require("../../types");
|
|
16
|
-
var _UserMentionDescriptionByline = _interopRequireDefault(require("./UserMentionDescriptionByline"));
|
|
17
|
-
var _TeamMentionDescriptionByline = _interopRequireDefault(require("./TeamMentionDescriptionByline"));
|
|
18
|
-
var _styles = require("./styles");
|
|
19
16
|
var _i18n = require("../i18n");
|
|
17
|
+
var _styles = require("./styles");
|
|
18
|
+
var _TeamMentionDescriptionByline = _interopRequireDefault(require("./TeamMentionDescriptionByline"));
|
|
19
|
+
var _UserMentionDescriptionByline = _interopRequireDefault(require("./UserMentionDescriptionByline"));
|
|
20
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
21
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 MentionDescriptionByline = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.NoAccessTooltip = void 0;
|
|
8
|
-
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
10
10
|
var _i18n = require("../../util/i18n");
|
|
11
11
|
var NoAccessTooltip = exports.NoAccessTooltip = function NoAccessTooltip(_ref) {
|
|
12
12
|
var name = _ref.name,
|
package/dist/cjs/index.js
CHANGED
|
@@ -142,8 +142,8 @@ var _AbstractMentionResource = require("./api/AbstractMentionResource");
|
|
|
142
142
|
var _AbstractPresenceResource = require("./api/AbstractPresenceResource");
|
|
143
143
|
var _ContextMentionResource = _interopRequireDefault(require("./api/ContextMentionResource"));
|
|
144
144
|
var _DefaultMentionNameResolver = require("./api/DefaultMentionNameResolver");
|
|
145
|
-
var _MentionResource = require("./api/MentionResource");
|
|
146
145
|
var _isResolvingMentionProvider = require("./api/isResolvingMentionProvider");
|
|
146
|
+
var _MentionResource = require("./api/MentionResource");
|
|
147
147
|
var _PresenceResource = require("./api/PresenceResource");
|
|
148
148
|
var _TeamMentionResource = _interopRequireDefault(require("./api/TeamMentionResource"));
|
|
149
149
|
var _Mention = _interopRequireDefault(require("./components/Mention"));
|
package/dist/cjs/resource.js
CHANGED
|
@@ -87,8 +87,8 @@ var _AbstractMentionResource = require("./api/AbstractMentionResource");
|
|
|
87
87
|
var _AbstractPresenceResource = require("./api/AbstractPresenceResource");
|
|
88
88
|
var _ContextMentionResource = _interopRequireDefault(require("./api/ContextMentionResource"));
|
|
89
89
|
var _DefaultMentionNameResolver = require("./api/DefaultMentionNameResolver");
|
|
90
|
-
var _MentionResource = require("./api/MentionResource");
|
|
91
90
|
var _isResolvingMentionProvider = require("./api/isResolvingMentionProvider");
|
|
91
|
+
var _MentionResource = require("./api/MentionResource");
|
|
92
92
|
var _PresenceResource = require("./api/PresenceResource");
|
|
93
93
|
var _isSpecialMention = require("./is-special-mention");
|
|
94
94
|
var _types = require("./types");
|
|
@@ -61,6 +61,7 @@ var _fireAnalytics = require("./fire-analytics");
|
|
|
61
61
|
var _packageName = require("./package-name");
|
|
62
62
|
var _packageVersion = require("./package-version");
|
|
63
63
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
64
|
+
|
|
64
65
|
var SLI_EVENT_TYPE = exports.SLI_EVENT_TYPE = 'sli';
|
|
65
66
|
var SMART_EVENT_TYPE = exports.SMART_EVENT_TYPE = 'smart';
|
|
66
67
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { padArray } from '../util';
|
|
2
3
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
3
4
|
|
|
4
|
-
import { padArray } from '../util';
|
|
5
5
|
/**
|
|
6
6
|
* This component is stateful and should be instantianted per contextIdentifiers.
|
|
7
7
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import debounce from 'lodash/debounce';
|
|
3
4
|
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
4
5
|
import { isAppMention } from '../is-app-mention';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { SLI_EVENT_TYPE } from './../util/analytics';
|
|
3
2
|
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
4
3
|
import { UserType, UserAccessLevel, SliNames, Actions } from '../types';
|
|
5
|
-
import { MentionResource } from './MentionResource';
|
|
6
4
|
import debug from '../util/logger';
|
|
5
|
+
import { SLI_EVENT_TYPE } from './../util/analytics';
|
|
6
|
+
import { MentionResource } from './MentionResource';
|
|
7
7
|
const MAX_QUERY_TEAMS = 20;
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
3
3
|
/**
|
|
4
4
|
* Wraps a disabled `<Mention>` chip with a tooltip explaining why the chip
|
|
5
5
|
* is disabled. The chip itself remains non-interactive; the tooltip is the
|
|
@@ -15,8 +15,8 @@ import { UnknownUserError } from '../../util/i18n';
|
|
|
15
15
|
import AsyncDisabledMentionTooltip from '../DisabledMentionTooltip';
|
|
16
16
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
17
17
|
import AsyncNoAccessTooltip from '../NoAccessTooltip';
|
|
18
|
-
import PrimitiveMention from './PrimitiveMention';
|
|
19
18
|
import { ANALYTICS_HOVER_DELAY } from './index';
|
|
19
|
+
import PrimitiveMention from './PrimitiveMention';
|
|
20
20
|
import { UfoErrorBoundary, mentionRenderedUfoExperience } from './ufoExperiences';
|
|
21
21
|
const avatarStyles = null;
|
|
22
22
|
const avatarFallbackStyles = null;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/* eslint-disable @atlaskit/design-system/no-html-button */
|
|
3
2
|
/**
|
|
4
3
|
* @jsxRuntime classic
|
|
5
4
|
* @jsx jsx
|
|
6
5
|
*/
|
|
6
|
+
|
|
7
|
+
import { forwardRef } from 'react';
|
|
8
|
+
|
|
9
|
+
/* eslint-disable @atlaskit/design-system/no-html-button */
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
11
|
import { jsx, css } from '@emotion/react';
|
|
9
|
-
import { forwardRef } from 'react';
|
|
10
12
|
import { mentionStyle } from './mention-style';
|
|
11
13
|
const getStyle = ({
|
|
12
14
|
mentionType
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
3
2
|
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
3
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
4
4
|
export const mentionRenderedUfoExperience = new ConcurrentExperience('mention-rendered', {
|
|
5
5
|
platform: {
|
|
6
6
|
component: 'mention'
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
|
-
import { DescriptionBylineStyle } from './styles';
|
|
6
5
|
import { messages } from '../i18n';
|
|
6
|
+
import { DescriptionBylineStyle } from './styles';
|
|
7
7
|
export default class TeamMentionDescriptionByline extends React.PureComponent {
|
|
8
8
|
constructor(...args) {
|
|
9
9
|
super(...args);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import { UserType } from '../../types';
|
|
4
|
-
import UserMentionDescriptionByline from './UserMentionDescriptionByline';
|
|
5
|
-
import TeamMentionDescriptionByline from './TeamMentionDescriptionByline';
|
|
6
|
-
import { DescriptionBylineStyle } from './styles';
|
|
7
4
|
import { messages } from '../i18n';
|
|
5
|
+
import { DescriptionBylineStyle } from './styles';
|
|
6
|
+
import TeamMentionDescriptionByline from './TeamMentionDescriptionByline';
|
|
7
|
+
import UserMentionDescriptionByline from './UserMentionDescriptionByline';
|
|
8
8
|
export default class MentionDescriptionByline extends React.PureComponent {
|
|
9
9
|
render() {
|
|
10
10
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export const DescriptionBylineStyle = styled.span({
|
|
7
7
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
4
|
+
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import EditorPanelIcon from '@atlaskit/icon/core/status-information';
|
|
6
7
|
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export const RowStyle = styled.div({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export const MentionListStyle = styled.div(props => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export const GenericErrorVisualStyle = styled.div({
|
|
7
7
|
width: "var(--ds-space-1000, 80px)"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export const MentionPickerStyle = styled.div(props => ({
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { scrollableMaxHeight } from '../../shared-styles';
|
|
6
|
+
|
|
6
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
8
|
export const ScrollableStyle = styled.div({
|
|
8
9
|
display: 'block',
|
package/dist/es2019/element.js
CHANGED
package/dist/es2019/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
|
3
3
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
4
4
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
5
5
|
import { DefaultMentionNameResolver } from './api/DefaultMentionNameResolver';
|
|
6
|
-
import { MentionResource } from './api/MentionResource';
|
|
7
6
|
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
7
|
+
import { MentionResource } from './api/MentionResource';
|
|
8
8
|
import { PresenceResource } from './api/PresenceResource';
|
|
9
9
|
import TeamMentionResource from './api/TeamMentionResource';
|
|
10
10
|
import Mention from './components/Mention';
|
package/dist/es2019/item.js
CHANGED
package/dist/es2019/resource.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import { ELEMENTS_CHANNEL } from './_constants';
|
|
3
4
|
import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
4
5
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
5
6
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
6
7
|
import { DefaultMentionNameResolver } from './api/DefaultMentionNameResolver';
|
|
7
|
-
import { MentionResource } from './api/MentionResource';
|
|
8
8
|
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
9
|
+
import { MentionResource } from './api/MentionResource';
|
|
9
10
|
import { PresenceResource } from './api/PresenceResource';
|
|
10
11
|
import { isSpecialMention } from './is-special-mention';
|
|
11
12
|
import { MentionNameStatus } from './types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import { ELEMENTS_CHANNEL } from './_constants';
|
|
3
4
|
import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
4
5
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "29.2.
|
|
1
|
+
export const packageVersion = "29.2.3";
|
|
@@ -2,9 +2,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
6
|
-
|
|
7
5
|
import { padArray } from '../util';
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
8
7
|
/**
|
|
9
8
|
* This component is stateful and should be instantianted per contextIdentifiers.
|
|
10
9
|
*/
|
|
@@ -11,6 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
14
|
+
|
|
14
15
|
import debounce from 'lodash/debounce';
|
|
15
16
|
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
16
17
|
import { isAppMention } from '../is-app-mention';
|
|
@@ -13,11 +13,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
14
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
15
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
16
|
-
import { SLI_EVENT_TYPE } from './../util/analytics';
|
|
17
16
|
import { utils as serviceUtils } from '@atlaskit/util-service-support';
|
|
18
17
|
import { UserType, UserAccessLevel, SliNames, Actions } from '../types';
|
|
19
|
-
import { MentionResource } from './MentionResource';
|
|
20
18
|
import debug from '../util/logger';
|
|
19
|
+
import { SLI_EVENT_TYPE } from './../util/analytics';
|
|
20
|
+
import { MentionResource } from './MentionResource';
|
|
21
21
|
var MAX_QUERY_TEAMS = 20;
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
3
3
|
/**
|
|
4
4
|
* Wraps a disabled `<Mention>` chip with a tooltip explaining why the chip
|
|
5
5
|
* is disabled. The chip itself remains non-interactive; the tooltip is the
|
|
@@ -24,8 +24,8 @@ import { UnknownUserError } from '../../util/i18n';
|
|
|
24
24
|
import AsyncDisabledMentionTooltip from '../DisabledMentionTooltip';
|
|
25
25
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
26
26
|
import AsyncNoAccessTooltip from '../NoAccessTooltip';
|
|
27
|
-
import PrimitiveMention from './PrimitiveMention';
|
|
28
27
|
import { ANALYTICS_HOVER_DELAY } from './index';
|
|
28
|
+
import PrimitiveMention from './PrimitiveMention';
|
|
29
29
|
import { UfoErrorBoundary, mentionRenderedUfoExperience } from './ufoExperiences';
|
|
30
30
|
var avatarStyles = null;
|
|
31
31
|
var avatarFallbackStyles = null;
|
|
@@ -3,14 +3,16 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _templateObject;
|
|
5
5
|
var _excluded = ["isAvatarVisible", "mentionType"];
|
|
6
|
-
/* eslint-disable @atlaskit/design-system/no-html-button */
|
|
7
6
|
/**
|
|
8
7
|
* @jsxRuntime classic
|
|
9
8
|
* @jsx jsx
|
|
10
9
|
*/
|
|
10
|
+
|
|
11
|
+
import { forwardRef } from 'react';
|
|
12
|
+
|
|
13
|
+
/* eslint-disable @atlaskit/design-system/no-html-button */
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
15
|
import { jsx, css } from '@emotion/react';
|
|
13
|
-
import { forwardRef } from 'react';
|
|
14
16
|
import { mentionStyle } from './mention-style';
|
|
15
17
|
var getStyle = function getStyle(_ref, property) {
|
|
16
18
|
var mentionType = _ref.mentionType;
|
|
@@ -6,8 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
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
|
-
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
10
9
|
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
10
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
11
11
|
export var mentionRenderedUfoExperience = new ConcurrentExperience('mention-rendered', {
|
|
12
12
|
platform: {
|
|
13
13
|
component: 'mention'
|
|
@@ -9,8 +9,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
9
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 { FormattedMessage } from 'react-intl';
|
|
12
|
-
import { DescriptionBylineStyle } from './styles';
|
|
13
12
|
import { messages } from '../i18n';
|
|
13
|
+
import { DescriptionBylineStyle } from './styles';
|
|
14
14
|
var TeamMentionDescriptionByline = /*#__PURE__*/function (_React$PureComponent) {
|
|
15
15
|
function TeamMentionDescriptionByline() {
|
|
16
16
|
var _this;
|
|
@@ -8,10 +8,10 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl';
|
|
10
10
|
import { UserType } from '../../types';
|
|
11
|
-
import UserMentionDescriptionByline from './UserMentionDescriptionByline';
|
|
12
|
-
import TeamMentionDescriptionByline from './TeamMentionDescriptionByline';
|
|
13
|
-
import { DescriptionBylineStyle } from './styles';
|
|
14
11
|
import { messages } from '../i18n';
|
|
12
|
+
import { DescriptionBylineStyle } from './styles';
|
|
13
|
+
import TeamMentionDescriptionByline from './TeamMentionDescriptionByline';
|
|
14
|
+
import UserMentionDescriptionByline from './UserMentionDescriptionByline';
|
|
15
15
|
var MentionDescriptionByline = /*#__PURE__*/function (_React$PureComponent) {
|
|
16
16
|
function MentionDescriptionByline() {
|
|
17
17
|
_classCallCheck(this, MentionDescriptionByline);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export var DescriptionBylineStyle = styled.span({
|
|
7
7
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
@@ -9,6 +9,7 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
12
|
+
|
|
12
13
|
import React from 'react';
|
|
13
14
|
import EditorPanelIcon from '@atlaskit/icon/core/status-information';
|
|
14
15
|
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export var RowStyle = styled.div({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export var MentionListStyle = styled.div(function (props) {
|
|
@@ -6,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
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
10
|
import React from 'react';
|
|
10
11
|
import { GenericErrorVisualStyle } from './styles';
|
|
11
12
|
export var GenericErrorIllustration = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export var GenericErrorVisualStyle = styled.div({
|
|
7
7
|
width: "var(--ds-space-1000, 80px)"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export var MentionPickerStyle = styled.div(function (props) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
5
|
import { scrollableMaxHeight } from '../../shared-styles';
|
|
6
|
+
|
|
6
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
8
|
export var ScrollableStyle = styled.div({
|
|
8
9
|
display: 'block',
|
package/dist/esm/element.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
|
3
3
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
4
4
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
5
5
|
import { DefaultMentionNameResolver } from './api/DefaultMentionNameResolver';
|
|
6
|
-
import { MentionResource } from './api/MentionResource';
|
|
7
6
|
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
7
|
+
import { MentionResource } from './api/MentionResource';
|
|
8
8
|
import { PresenceResource } from './api/PresenceResource';
|
|
9
9
|
import TeamMentionResource from './api/TeamMentionResource';
|
|
10
10
|
import Mention from './components/Mention';
|
package/dist/esm/item.js
CHANGED
package/dist/esm/resource.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import { ELEMENTS_CHANNEL } from './_constants';
|
|
3
4
|
import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
4
5
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
5
6
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
6
7
|
import { DefaultMentionNameResolver } from './api/DefaultMentionNameResolver';
|
|
7
|
-
import { MentionResource } from './api/MentionResource';
|
|
8
8
|
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
9
|
+
import { MentionResource } from './api/MentionResource';
|
|
9
10
|
import { PresenceResource } from './api/PresenceResource';
|
|
10
11
|
import { isSpecialMention } from './is-special-mention';
|
|
11
12
|
import { MentionNameStatus } from './types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import { ELEMENTS_CHANNEL } from './_constants';
|
|
3
4
|
import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
4
5
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var packageVersion = "29.2.
|
|
1
|
+
export var packageVersion = "29.2.3";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type MentionProvider, type MentionContextIdentifier, ErrorCallback, InfoCallback, ResultCallback } from './MentionResource';
|
|
2
1
|
import { type MentionDescription, type MentionDisabledState, type MentionDisabledStateInput, type InviteFromMentionProvider, type XProductInviteMentionProvider, type AnalyticsCallback } from '../types';
|
|
2
|
+
import { type MentionProvider, type MentionContextIdentifier, ErrorCallback, InfoCallback, ResultCallback } from './MentionResource';
|
|
3
3
|
export type { MentionDescription };
|
|
4
4
|
export type MentionProviderFunctions = Omit<{
|
|
5
5
|
[Key in keyof MentionProvider]: MentionProvider[Key] extends Function ? MentionProvider[Key] : never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NewCoreIconProps } from '@atlaskit/icon/types';
|
|
2
1
|
import { type LazyExoticComponent } from 'react';
|
|
2
|
+
import type { NewCoreIconProps } from '@atlaskit/icon/types';
|
|
3
3
|
declare const AsyncLockCircleIcon: LazyExoticComponent<{
|
|
4
4
|
(props: NewCoreIconProps): JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
1
5
|
import { type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
|
|
2
6
|
import type { MentionType } from '../../types';
|
|
3
7
|
export interface PrimitiveMentionProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
2
|
-
import type { Theme } from '@emotion/react';
|
|
3
1
|
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
4
|
export declare const DescriptionBylineStyle: StyledComponent<{
|
|
5
5
|
theme?: Theme;
|
|
6
6
|
as?: React.ElementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
2
|
-
import type { Theme } from '@emotion/react';
|
|
3
1
|
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
4
|
export interface MentionItemStyleProps {
|
|
5
5
|
height?: number;
|
|
6
6
|
selected?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
2
|
-
import type { Theme } from '@emotion/react';
|
|
3
1
|
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
4
|
export interface MentionListStyleProps {
|
|
5
5
|
empty?: boolean;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
2
|
-
import type { Theme } from '@emotion/react';
|
|
3
1
|
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
4
|
export declare const GenericErrorVisualStyle: StyledComponent<{
|
|
5
5
|
theme?: Theme;
|
|
6
6
|
as?: React.ElementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
2
|
-
import type { Theme } from '@emotion/react';
|
|
3
1
|
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
4
|
export interface MentionPickerStyleProps {
|
|
5
5
|
visible?: boolean | string;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StyledComponent } from '@emotion/styled';
|
|
2
|
-
import type { Theme } from '@emotion/react';
|
|
3
1
|
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '@emotion/react';
|
|
3
|
+
import { type StyledComponent } from '@emotion/styled';
|
|
4
4
|
export declare const ScrollableStyle: StyledComponent<{
|
|
5
5
|
theme?: Theme;
|
|
6
6
|
as?: React.ElementType;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
|
3
3
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
4
4
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
5
5
|
import { DefaultMentionNameResolver } from './api/DefaultMentionNameResolver';
|
|
6
|
+
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
6
7
|
import { type MentionNameClient } from './api/MentionNameClient';
|
|
7
8
|
import type { MentionNameResolver } from './api/MentionNameResolver';
|
|
8
9
|
import { MentionResource, type MentionContextIdentifier, type MentionProvider, type ResolvingMentionProvider, type MentionStats, type MentionResourceConfig, type TeamMentionResourceConfig } from './api/MentionResource';
|
|
9
|
-
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
10
10
|
import { PresenceResource, type PresenceProvider } from './api/PresenceResource';
|
|
11
11
|
import TeamMentionResource from './api/TeamMentionResource';
|
|
12
12
|
import Mention from './components/Mention';
|
package/dist/types/resource.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { AbstractMentionResource } from './api/AbstractMentionResource';
|
|
|
3
3
|
import { AbstractPresenceResource } from './api/AbstractPresenceResource';
|
|
4
4
|
import ContextMentionResource from './api/ContextMentionResource';
|
|
5
5
|
import { DefaultMentionNameResolver } from './api/DefaultMentionNameResolver';
|
|
6
|
+
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
6
7
|
import { type MentionNameClient } from './api/MentionNameClient';
|
|
7
8
|
import type { MentionNameResolver } from './api/MentionNameResolver';
|
|
8
9
|
import { MentionResource, type ResolvingMentionProvider, type MentionContextIdentifier, type MentionProvider, type MentionStats, type MentionResourceConfig } from './api/MentionResource';
|
|
9
|
-
import { isResolvingMentionProvider } from './api/isResolvingMentionProvider';
|
|
10
10
|
import { PresenceResource, type PresenceProvider } from './api/PresenceResource';
|
|
11
11
|
import { isSpecialMention } from './is-special-mention';
|
|
12
12
|
import { type MentionDescription, type MentionsResult, MentionNameStatus, type MentionNameDetails } from './types';
|
package/package.json
CHANGED
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@atlaskit/skeleton": "^4.4.0",
|
|
46
46
|
"@atlaskit/tag": "^15.8.0",
|
|
47
47
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
-
"@atlaskit/tokens": "^18.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^201.0.0",
|
|
49
|
+
"@atlaskit/tokens": "^18.2.0",
|
|
50
50
|
"@atlaskit/tooltip": "^24.3.0",
|
|
51
51
|
"@atlaskit/ufo": "^1.2.0",
|
|
52
52
|
"@atlaskit/util-service-support": "^7.4.0",
|
|
@@ -121,5 +121,5 @@
|
|
|
121
121
|
"*.compiled.css"
|
|
122
122
|
],
|
|
123
123
|
"types": "dist/types/index.d.ts",
|
|
124
|
-
"version": "29.2.
|
|
124
|
+
"version": "29.2.4"
|
|
125
125
|
}
|