@atlaskit/mention 24.5.3 → 24.5.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/afm-products/tsconfig.json +3 -0
  5. package/dist/cjs/api/ContextMentionResource.js +1 -0
  6. package/dist/cjs/components/Mention/PrimitiveMention.js +1 -1
  7. package/dist/cjs/components/MentionDescriptionByline/styles.js +2 -0
  8. package/dist/cjs/components/MentionItem/index.js +33 -1
  9. package/dist/cjs/components/MentionItem/styles.js +10 -4
  10. package/dist/cjs/components/MentionList/styles.js +2 -0
  11. package/dist/cjs/components/MentionListError/styles.js +2 -0
  12. package/dist/cjs/components/MentionPicker/styles.js +2 -0
  13. package/dist/cjs/components/Scrollable/styles.js +2 -0
  14. package/dist/cjs/util/analytics.js +1 -1
  15. package/dist/es2019/api/ContextMentionResource.js +2 -0
  16. package/dist/es2019/components/Mention/PrimitiveMention.js +18 -18
  17. package/dist/es2019/components/MentionDescriptionByline/styles.js +2 -0
  18. package/dist/es2019/components/MentionItem/index.js +35 -1
  19. package/dist/es2019/components/MentionItem/styles.js +10 -4
  20. package/dist/es2019/components/MentionList/styles.js +2 -0
  21. package/dist/es2019/components/MentionListError/styles.js +2 -0
  22. package/dist/es2019/components/MentionPicker/styles.js +2 -0
  23. package/dist/es2019/components/Scrollable/styles.js +2 -1
  24. package/dist/es2019/util/analytics.js +1 -1
  25. package/dist/esm/api/ContextMentionResource.js +2 -0
  26. package/dist/esm/components/Mention/PrimitiveMention.js +1 -1
  27. package/dist/esm/components/MentionDescriptionByline/styles.js +2 -0
  28. package/dist/esm/components/MentionItem/index.js +33 -1
  29. package/dist/esm/components/MentionItem/styles.js +10 -4
  30. package/dist/esm/components/MentionList/styles.js +2 -0
  31. package/dist/esm/components/MentionListError/styles.js +2 -0
  32. package/dist/esm/components/MentionPicker/styles.js +2 -0
  33. package/dist/esm/components/Scrollable/styles.js +2 -1
  34. package/dist/esm/util/analytics.js +1 -1
  35. package/dist/types/api/ContextMentionResource.d.ts +2 -2
  36. package/dist/types/components/LockCircleIcon/index.d.ts +4 -2
  37. package/dist/types/components/Mention/PrimitiveMention.d.ts +2 -2
  38. package/dist/types/components/MentionDescriptionByline/styles.d.ts +6 -3
  39. package/dist/types/components/MentionItem/index.d.ts +1 -1
  40. package/dist/types/components/MentionItem/styles.d.ts +27 -24
  41. package/dist/types/components/MentionList/styles.d.ts +6 -3
  42. package/dist/types/components/MentionListError/styles.d.ts +6 -3
  43. package/dist/types/components/MentionPicker/index.d.ts +3 -3
  44. package/dist/types/components/MentionPicker/styles.d.ts +9 -6
  45. package/dist/types/components/Scrollable/styles.d.ts +6 -3
  46. package/dist/types/shared-styles.d.ts +3 -3
  47. package/dist/types/types.d.ts +3 -3
  48. package/dist/types-ts4.5/api/ContextMentionResource.d.ts +2 -2
  49. package/dist/types-ts4.5/components/LockCircleIcon/index.d.ts +4 -2
  50. package/dist/types-ts4.5/components/Mention/PrimitiveMention.d.ts +2 -2
  51. package/dist/types-ts4.5/components/MentionDescriptionByline/styles.d.ts +6 -3
  52. package/dist/types-ts4.5/components/MentionItem/index.d.ts +1 -1
  53. package/dist/types-ts4.5/components/MentionItem/styles.d.ts +27 -24
  54. package/dist/types-ts4.5/components/MentionList/styles.d.ts +6 -3
  55. package/dist/types-ts4.5/components/MentionListError/styles.d.ts +6 -3
  56. package/dist/types-ts4.5/components/MentionPicker/index.d.ts +3 -3
  57. package/dist/types-ts4.5/components/MentionPicker/styles.d.ts +9 -6
  58. package/dist/types-ts4.5/components/Scrollable/styles.d.ts +6 -3
  59. package/dist/types-ts4.5/shared-styles.d.ts +3 -3
  60. package/dist/types-ts4.5/types.d.ts +3 -3
  61. package/package.json +10 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/mention
2
2
 
3
+ ## 24.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 24.5.3
4
10
 
5
11
  ### Patch Changes
@@ -50,6 +50,9 @@
50
50
  {
51
51
  "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
52
52
  },
53
+ {
54
+ "path": "../../../design-system/tag/afm-cc/tsconfig.json"
55
+ },
53
56
  {
54
57
  "path": "../../../people-and-teams/teams-avatar/afm-cc/tsconfig.json"
55
58
  },
@@ -50,6 +50,9 @@
50
50
  {
51
51
  "path": "../../../design-system/primitives/afm-jira/tsconfig.json"
52
52
  },
53
+ {
54
+ "path": "../../../design-system/tag/afm-jira/tsconfig.json"
55
+ },
53
56
  {
54
57
  "path": "../../../people-and-teams/teams-avatar/afm-jira/tsconfig.json"
55
58
  },
@@ -50,6 +50,9 @@
50
50
  {
51
51
  "path": "../../../design-system/primitives/afm-products/tsconfig.json"
52
52
  },
53
+ {
54
+ "path": "../../../design-system/tag/afm-products/tsconfig.json"
55
+ },
53
56
  {
54
57
  "path": "../../../people-and-teams/teams-avatar/afm-products/tsconfig.json"
55
58
  },
@@ -10,6 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _util = require("../util");
13
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
14
  /**
14
15
  * This component is stateful and should be instantianted per contextIdentifiers.
15
16
  */
@@ -52,7 +52,7 @@ var PrimitiveMention = /*#__PURE__*/(0, _react2.forwardRef)(function (_ref2, ref
52
52
  ref: ref
53
53
  // 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
54
54
  ,
55
- css: (0, _react.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&: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({
55
+ css: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\tdisplay: inline;\n\t\t\t\tborder: ", " solid ", ";\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: 20px;\n\t\t\t\tcursor: pointer;\n\t\t\t\tpadding: 0 0.3em 2px 0.23em;\n\t\t\t\tline-height: 1.714;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tword-break: break-word;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t\t&:active {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), "var(--ds-border-width, 1px)", getStyle({
56
56
  mentionType: mentionType
57
57
  }, 'borderColor'), getStyle({
58
58
  mentionType: mentionType
@@ -9,6 +9,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  var _colors = require("@atlaskit/theme/colors");
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
 
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
+
12
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
13
15
  var DescriptionBylineStyle = exports.DescriptionBylineStyle = _styled.default.span({
14
16
  color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
@@ -20,6 +20,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
20
20
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
21
21
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
22
22
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
23
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
+ var _tag = _interopRequireDefault(require("@atlaskit/tag"));
23
25
  var _react = _interopRequireDefault(require("react"));
24
26
  var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
25
27
  var _types = require("../../types");
@@ -34,6 +36,36 @@ var _MessagesIntlProvider = _interopRequireDefault(require("../MessagesIntlProvi
34
36
  var _MentionAvatar = require("../MentionAvatar");
35
37
  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)); }
36
38
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
39
+ var lozengeAppearanceToTagColor = {
40
+ default: 'standard',
41
+ success: 'lime',
42
+ removed: 'red',
43
+ inprogress: 'blue',
44
+ new: 'purple',
45
+ moved: 'orange'
46
+ };
47
+ function renderTag(lozenge) {
48
+ if (typeof lozenge === 'string') {
49
+ return /*#__PURE__*/_react.default.createElement(_tag.default, {
50
+ text: lozenge,
51
+ color: "standard",
52
+ isRemovable: false,
53
+ migration_fallback: "lozenge"
54
+ });
55
+ }
56
+ if ((0, _typeof2.default)(lozenge) === 'object') {
57
+ var appearance = lozenge.appearance,
58
+ text = lozenge.text;
59
+ var color = appearance ? lozengeAppearanceToTagColor[appearance] : 'standard';
60
+ return /*#__PURE__*/_react.default.createElement(_tag.default, {
61
+ text: text,
62
+ color: color,
63
+ isRemovable: false,
64
+ migration_fallback: "lozenge"
65
+ });
66
+ }
67
+ return null;
68
+ }
37
69
  function renderLozenge(lozenge) {
38
70
  if (typeof lozenge === 'string') {
39
71
  return /*#__PURE__*/_react.default.createElement(_lozenge.default, null, lozenge);
@@ -123,7 +155,7 @@ var MentionItem = exports.default = /*#__PURE__*/function (_React$PureComponent)
123
155
  mention: mention
124
156
  })), /*#__PURE__*/_react.default.createElement(_styles.InfoSectionStyle, {
125
157
  restricted: restricted
126
- }, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/_react.default.createElement(_react.default.Suspense, {
158
+ }, (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? renderTag(lozenge) : renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/_react.default.createElement(_react.default.Suspense, {
127
159
  fallback: null
128
160
  }, /*#__PURE__*/_react.default.createElement(_NoAccessTooltip.default, {
129
161
  name: name
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.TimeStyle = exports.RowStyle = exports.NameSectionStyle = exports.MentionItemStyle = exports.MENTION_ITEM_HEIGHT = exports.InfoSectionStyle = exports.FullNameStyle = exports.AvatarStyle = exports.AccessSectionStyle = void 0;
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
10
  var _colors = require("@atlaskit/theme/colors");
10
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
12
 
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
+
12
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
13
16
  var RowStyle = exports.RowStyle = _styled.default.div({
14
17
  alignItems: 'center',
@@ -61,9 +64,12 @@ var InfoSectionStyle = exports.InfoSectionStyle = _styled.default.div(function (
61
64
  opacity: props.restricted ? '0.5' : 'inherit',
62
65
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
63
66
  '&': {
64
- /* Lozenge */
65
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
66
- '& > span': {
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
68
+ '& > span': (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts') ? {
69
+ marginRight: "var(--ds-space-negative-025, -2px)",
70
+ marginBottom: "var(--ds-space-025, 2px)",
71
+ marginTop: "var(--ds-space-025, 2px)"
72
+ } : {
67
73
  marginBottom: "var(--ds-space-025, 2px)"
68
74
  }
69
75
  }
@@ -75,7 +81,7 @@ var TimeStyle = exports.TimeStyle = _styled.default.div({
75
81
  marginLeft: "var(--ds-space-250, 20px)",
76
82
  flex: 'none',
77
83
  color: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
78
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
84
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
79
85
  });
80
86
  var MENTION_ITEM_HEIGHT = exports.MENTION_ITEM_HEIGHT = 48;
81
87
  // 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
@@ -9,6 +9,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  var _sharedStyles = require("../../shared-styles");
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
 
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
+
12
14
  // 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
13
15
  var MentionListStyle = exports.MentionListStyle = _styled.default.div(function (props) {
14
16
  return {
@@ -8,6 +8,8 @@ exports.GenericErrorVisualStyle = void 0;
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
 
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
+
11
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
12
14
  var GenericErrorVisualStyle = exports.GenericErrorVisualStyle = _styled.default.div({
13
15
  width: "var(--ds-space-1000, 80px)"
@@ -10,6 +10,8 @@ var _colors = require("@atlaskit/theme/colors");
10
10
  var _sharedStyles = require("../../shared-styles");
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
 
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
+
13
15
  // 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
14
16
  var MentionPickerStyle = exports.MentionPickerStyle = _styled.default.div(function (props) {
15
17
  return {
@@ -9,6 +9,8 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
  var _sharedStyles = require("../../shared-styles");
10
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
11
 
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
+
12
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
13
15
  var ScrollableStyle = exports.ScrollableStyle = _styled.default.div({
14
16
  display: 'block',
@@ -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 = "24.5.2";
15
+ var packageVersion = "24.5.3";
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 fireAnalyticsMentionTypeaheadEvent = exports.fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
@@ -1,4 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
3
+
2
4
  import { padArray } from '../util';
3
5
  /**
4
6
  * This component is stateful and should be instantianted per contextIdentifiers.
@@ -47,34 +47,34 @@ const PrimitiveMention = /*#__PURE__*/forwardRef(({
47
47
  // 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
48
48
  ,
49
49
  css: css`
50
- display: inline;
51
- border: ${"var(--ds-border-width, 1px)"} solid ${getStyle({
50
+ display: inline;
51
+ border: ${"var(--ds-border-width, 1px)"} solid ${getStyle({
52
52
  mentionType
53
53
  }, 'borderColor')};
54
- background: ${getStyle({
54
+ background: ${getStyle({
55
55
  mentionType
56
56
  }, 'background')};
57
- color: ${getStyle({
57
+ color: ${getStyle({
58
58
  mentionType
59
59
  }, 'text')};
60
- border-radius: 20px;
61
- cursor: pointer;
62
- padding: 0 0.3em 2px 0.23em;
63
- line-height: 1.714;
64
- font-size: 1em;
65
- font-weight: ${"var(--ds-font-weight-regular, 400)"};
66
- word-break: break-word;
67
- &:hover {
68
- background: ${getStyle({
60
+ border-radius: 20px;
61
+ cursor: pointer;
62
+ padding: 0 0.3em 2px 0.23em;
63
+ line-height: 1.714;
64
+ font-size: 1em;
65
+ font-weight: ${"var(--ds-font-weight-regular, 400)"};
66
+ word-break: break-word;
67
+ &:hover {
68
+ background: ${getStyle({
69
69
  mentionType
70
70
  }, 'hoveredBackground')};
71
- }
72
- &:active {
73
- background: ${getStyle({
71
+ }
72
+ &:active {
73
+ background: ${getStyle({
74
74
  mentionType
75
75
  }, 'pressedBackground')};
76
- }
77
- `
76
+ }
77
+ `
78
78
  }, other));
79
79
  });
80
80
  export default PrimitiveMention;
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  import { N100 } from '@atlaskit/theme/colors';
4
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
7
  export const DescriptionBylineStyle = styled.span({
@@ -1,6 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import Lozenge from '@atlaskit/lozenge';
4
+ import { fg } from '@atlaskit/platform-feature-flags';
5
+ import Tag from '@atlaskit/tag';
4
6
  import React from 'react';
5
7
  import EditorPanelIcon from '@atlaskit/icon/core/status-information';
6
8
  import { isRestricted } from '../../types';
@@ -14,6 +16,38 @@ import MentionDescriptionByline from '../MentionDescriptionByline';
14
16
  import MessagesIntlProvider from '../MessagesIntlProvider';
15
17
  import { MentionAvatar } from '../MentionAvatar';
16
18
  export { MENTION_ITEM_HEIGHT } from './styles';
19
+ const lozengeAppearanceToTagColor = {
20
+ default: 'standard',
21
+ success: 'lime',
22
+ removed: 'red',
23
+ inprogress: 'blue',
24
+ new: 'purple',
25
+ moved: 'orange'
26
+ };
27
+ function renderTag(lozenge) {
28
+ if (typeof lozenge === 'string') {
29
+ return /*#__PURE__*/React.createElement(Tag, {
30
+ text: lozenge,
31
+ color: "standard",
32
+ isRemovable: false,
33
+ migration_fallback: "lozenge"
34
+ });
35
+ }
36
+ if (typeof lozenge === 'object') {
37
+ const {
38
+ appearance,
39
+ text
40
+ } = lozenge;
41
+ const color = appearance ? lozengeAppearanceToTagColor[appearance] : 'standard';
42
+ return /*#__PURE__*/React.createElement(Tag, {
43
+ text: text,
44
+ color: color,
45
+ isRemovable: false,
46
+ migration_fallback: "lozenge"
47
+ });
48
+ }
49
+ return null;
50
+ }
17
51
  function renderLozenge(lozenge) {
18
52
  if (typeof lozenge === 'string') {
19
53
  return /*#__PURE__*/React.createElement(Lozenge, null, lozenge);
@@ -100,7 +134,7 @@ export default class MentionItem extends React.PureComponent {
100
134
  mention: mention
101
135
  })), /*#__PURE__*/React.createElement(InfoSectionStyle, {
102
136
  restricted: restricted
103
- }, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
137
+ }, fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? renderTag(lozenge) : renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
104
138
  fallback: null
105
139
  }, /*#__PURE__*/React.createElement(AsyncNoAccessTooltip, {
106
140
  name: name
@@ -1,5 +1,8 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
5
+ import { fg } from '@atlaskit/platform-feature-flags';
3
6
  import { N900, N100, N30, N500 } from '@atlaskit/theme/colors';
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
8
  export const RowStyle = styled.div({
@@ -48,9 +51,12 @@ export const InfoSectionStyle = styled.div(props => ({
48
51
  opacity: props.restricted ? '0.5' : 'inherit',
49
52
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
50
53
  '&': {
51
- /* Lozenge */
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
53
- '& > span': {
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
55
+ '& > span': fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? {
56
+ marginRight: "var(--ds-space-negative-025, -2px)",
57
+ marginBottom: "var(--ds-space-025, 2px)",
58
+ marginTop: "var(--ds-space-025, 2px)"
59
+ } : {
54
60
  marginBottom: "var(--ds-space-025, 2px)"
55
61
  }
56
62
  }
@@ -61,7 +67,7 @@ export const TimeStyle = styled.div({
61
67
  marginLeft: "var(--ds-space-250, 20px)",
62
68
  flex: 'none',
63
69
  color: `var(--ds-text-subtlest, ${N100})`,
64
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
70
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
65
71
  });
66
72
  export const MENTION_ITEM_HEIGHT = 48;
67
73
  // 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
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
4
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
5
7
  export const MentionListStyle = styled.div(props => ({
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
6
  export const GenericErrorVisualStyle = styled.div({
5
7
  width: "var(--ds-space-1000, 80px)"
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  import { N100 } from '@atlaskit/theme/colors';
4
6
  import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
5
7
  // 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
@@ -1,7 +1,8 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
- import { scrollableMaxHeight } from '../../shared-styles';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
 
5
+ import { scrollableMaxHeight } from '../../shared-styles';
5
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
6
7
  export const ScrollableStyle = styled.div({
7
8
  display: 'block',
@@ -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 { ComponentNames, isSpecialMentionText } from '../types';
4
4
  const packageName = "@atlaskit/mention";
5
- const packageVersion = "24.5.2";
5
+ const packageVersion = "24.5.3";
6
6
  export const SLI_EVENT_TYPE = 'sli';
7
7
  export const SMART_EVENT_TYPE = 'smart';
8
8
  export const fireAnalyticsMentionTypeaheadEvent = props => (action, duration, userIds = [], query) => {
@@ -2,6 +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
+
5
7
  import { padArray } from '../util';
6
8
  /**
7
9
  * This component is stateful and should be instantianted per contextIdentifiers.
@@ -45,7 +45,7 @@ var PrimitiveMention = /*#__PURE__*/forwardRef(function (_ref2, ref) {
45
45
  ref: ref
46
46
  // 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
47
47
  ,
48
- css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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&: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({
48
+ css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\tdisplay: inline;\n\t\t\t\tborder: ", " solid ", ";\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: 20px;\n\t\t\t\tcursor: pointer;\n\t\t\t\tpadding: 0 0.3em 2px 0.23em;\n\t\t\t\tline-height: 1.714;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tword-break: break-word;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t\t&:active {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), "var(--ds-border-width, 1px)", getStyle({
49
49
  mentionType: mentionType
50
50
  }, 'borderColor'), getStyle({
51
51
  mentionType: mentionType
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  import { N100 } from '@atlaskit/theme/colors';
4
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
7
  export var DescriptionBylineStyle = styled.span({
@@ -9,6 +9,8 @@ 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
  import Lozenge from '@atlaskit/lozenge';
12
+ import { fg } from '@atlaskit/platform-feature-flags';
13
+ import Tag from '@atlaskit/tag';
12
14
  import React from 'react';
13
15
  import EditorPanelIcon from '@atlaskit/icon/core/status-information';
14
16
  import { isRestricted } from '../../types';
@@ -22,6 +24,36 @@ import MentionDescriptionByline from '../MentionDescriptionByline';
22
24
  import MessagesIntlProvider from '../MessagesIntlProvider';
23
25
  import { MentionAvatar } from '../MentionAvatar';
24
26
  export { MENTION_ITEM_HEIGHT } from './styles';
27
+ var lozengeAppearanceToTagColor = {
28
+ default: 'standard',
29
+ success: 'lime',
30
+ removed: 'red',
31
+ inprogress: 'blue',
32
+ new: 'purple',
33
+ moved: 'orange'
34
+ };
35
+ function renderTag(lozenge) {
36
+ if (typeof lozenge === 'string') {
37
+ return /*#__PURE__*/React.createElement(Tag, {
38
+ text: lozenge,
39
+ color: "standard",
40
+ isRemovable: false,
41
+ migration_fallback: "lozenge"
42
+ });
43
+ }
44
+ if (_typeof(lozenge) === 'object') {
45
+ var appearance = lozenge.appearance,
46
+ text = lozenge.text;
47
+ var color = appearance ? lozengeAppearanceToTagColor[appearance] : 'standard';
48
+ return /*#__PURE__*/React.createElement(Tag, {
49
+ text: text,
50
+ color: color,
51
+ isRemovable: false,
52
+ migration_fallback: "lozenge"
53
+ });
54
+ }
55
+ return null;
56
+ }
25
57
  function renderLozenge(lozenge) {
26
58
  if (typeof lozenge === 'string') {
27
59
  return /*#__PURE__*/React.createElement(Lozenge, null, lozenge);
@@ -111,7 +143,7 @@ var MentionItem = /*#__PURE__*/function (_React$PureComponent) {
111
143
  mention: mention
112
144
  })), /*#__PURE__*/React.createElement(InfoSectionStyle, {
113
145
  restricted: restricted
114
- }, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
146
+ }, fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? renderTag(lozenge) : renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
115
147
  fallback: null
116
148
  }, /*#__PURE__*/React.createElement(AsyncNoAccessTooltip, {
117
149
  name: name
@@ -1,5 +1,8 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
5
+ import { fg } from '@atlaskit/platform-feature-flags';
3
6
  import { N900, N100, N30, N500 } from '@atlaskit/theme/colors';
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
8
  export var RowStyle = styled.div({
@@ -53,9 +56,12 @@ export var InfoSectionStyle = styled.div(function (props) {
53
56
  opacity: props.restricted ? '0.5' : 'inherit',
54
57
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
55
58
  '&': {
56
- /* Lozenge */
57
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
58
- '& > span': {
59
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
60
+ '& > span': fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? {
61
+ marginRight: "var(--ds-space-negative-025, -2px)",
62
+ marginBottom: "var(--ds-space-025, 2px)",
63
+ marginTop: "var(--ds-space-025, 2px)"
64
+ } : {
59
65
  marginBottom: "var(--ds-space-025, 2px)"
60
66
  }
61
67
  }
@@ -67,7 +73,7 @@ export var TimeStyle = styled.div({
67
73
  marginLeft: "var(--ds-space-250, 20px)",
68
74
  flex: 'none',
69
75
  color: "var(--ds-text-subtlest, ".concat(N100, ")"),
70
- font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
76
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
71
77
  });
72
78
  export var MENTION_ITEM_HEIGHT = 48;
73
79
  // 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
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
4
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
5
7
  export var MentionListStyle = styled.div(function (props) {
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
6
  export var GenericErrorVisualStyle = styled.div({
5
7
  width: "var(--ds-space-1000, 80px)"
@@ -1,5 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
+
3
5
  import { N100 } from '@atlaskit/theme/colors';
4
6
  import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
5
7
  // 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
@@ -1,7 +1,8 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
- import { scrollableMaxHeight } from '../../shared-styles';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
 
5
+ import { scrollableMaxHeight } from '../../shared-styles';
5
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
6
7
  export var ScrollableStyle = styled.div({
7
8
  display: 'block',
@@ -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 { ComponentNames, isSpecialMentionText } from '../types';
7
7
  var packageName = "@atlaskit/mention";
8
- var packageVersion = "24.5.2";
8
+ var packageVersion = "24.5.3";
9
9
  export var SLI_EVENT_TYPE = 'sli';
10
10
  export var SMART_EVENT_TYPE = 'smart';
11
11
  export var fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
@@ -1,5 +1,5 @@
1
1
  import { type MentionProvider, type MentionContextIdentifier, ErrorCallback, InfoCallback, ResultCallback } from './MentionResource';
2
- import { type MentionDescription, type InviteFromMentionProvider, type XProductInviteMentionProvider } from '../types';
2
+ import { type MentionDescription, type InviteFromMentionProvider, type XProductInviteMentionProvider, type AnalyticsCallback } from '../types';
3
3
  export type { MentionDescription };
4
4
  export type MentionProviderFunctions = Omit<{
5
5
  [Key in keyof MentionProvider]: MentionProvider[Key] extends Function ? MentionProvider[Key] : never;
@@ -14,7 +14,7 @@ export default class ContextMentionResource implements MentionProvider {
14
14
  getContextIdentifier(): MentionContextIdentifier | undefined;
15
15
  callWithContextIds: <K extends keyof MentionProviderFunctions>(f: K, declaredArgs: number) => MentionProvider[K];
16
16
  callDefault: <K extends keyof MentionProviderFunctions>(f: K) => MentionProvider[K];
17
- subscribe: (key: string, callback?: ResultCallback<MentionDescription[]> | undefined, errCallback?: ErrorCallback, infoCallback?: InfoCallback, allResultsCallback?: ResultCallback<MentionDescription[]> | undefined, analyticsCallback?: import("../types").AnalyticsCallback) => void;
17
+ subscribe: (key: string, callback?: ResultCallback<MentionDescription[]> | undefined, errCallback?: ErrorCallback, infoCallback?: InfoCallback, allResultsCallback?: ResultCallback<MentionDescription[]> | undefined, analyticsCallback?: AnalyticsCallback) => void;
18
18
  unsubscribe: (key: string) => void;
19
19
  filter: (query?: string, contextIdentifier?: MentionContextIdentifier) => void;
20
20
  recordMentionSelection: (mention: MentionDescription, contextIdentifier?: MentionContextIdentifier) => void;
@@ -1,5 +1,7 @@
1
- declare const AsyncLockCircleIcon: import("react").LazyExoticComponent<{
2
- (props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
1
+ import type { NewCoreIconProps } from '@atlaskit/icon';
2
+ import { type LazyExoticComponent } from 'react';
3
+ declare const AsyncLockCircleIcon: LazyExoticComponent<{
4
+ (props: NewCoreIconProps): JSX.Element;
3
5
  displayName: string;
4
6
  }>;
5
7
  export default AsyncLockCircleIcon;
@@ -1,7 +1,7 @@
1
1
  import { MentionType } from '../../types';
2
- import { type HTMLAttributes } from 'react';
2
+ import { type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
3
3
  export interface PrimitiveMentionProps extends HTMLAttributes<HTMLSpanElement> {
4
4
  mentionType: MentionType;
5
5
  }
6
- declare const PrimitiveMention: import("react").ForwardRefExoticComponent<PrimitiveMentionProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ declare const PrimitiveMention: ForwardRefExoticComponent<PrimitiveMentionProps & RefAttributes<HTMLSpanElement>>;
7
7
  export default PrimitiveMention;
@@ -1,4 +1,7 @@
1
- export declare const DescriptionBylineStyle: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
+ export declare const DescriptionBylineStyle: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
7
+ }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -15,4 +15,4 @@ export default class MentionItem extends React.PureComponent<Props, {}> {
15
15
  private onMentionMenuItemMouseEnter;
16
16
  render(): React.JSX.Element;
17
17
  }
18
- export declare const MentionItemWithRef: React.ForwardRefExoticComponent<Omit<Props, "forwardedRef"> & React.RefAttributes<HTMLDivElement>>;
18
+ export declare const MentionItemWithRef: React.ForwardRefExoticComponent<Omit<Props, 'forwardedRef'> & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,6 @@
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
1
4
  export interface MentionItemStyleProps {
2
5
  selected?: boolean;
3
6
  }
@@ -10,36 +13,36 @@ export interface NameSectionStyleProps {
10
13
  export interface InfoSectionStyleProps {
11
14
  restricted?: boolean;
12
15
  }
13
- export declare const RowStyle: import("@emotion/styled").StyledComponent<{
14
- theme?: import("@emotion/react").Theme;
16
+ export declare const RowStyle: StyledComponent<{
15
17
  as?: React.ElementType;
16
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
- export declare const AvatarStyle: import("@emotion/styled").StyledComponent<{
18
- theme?: import("@emotion/react").Theme;
18
+ theme?: Theme;
19
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
+ export declare const AvatarStyle: StyledComponent<{
19
21
  as?: React.ElementType;
20
- } & AvatarSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
21
- export declare const NameSectionStyle: import("@emotion/styled").StyledComponent<{
22
- theme?: import("@emotion/react").Theme;
22
+ theme?: Theme;
23
+ } & AvatarSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
24
+ export declare const NameSectionStyle: StyledComponent<{
23
25
  as?: React.ElementType;
24
- } & NameSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
- export declare const FullNameStyle: import("@emotion/styled").StyledComponent<{
26
- theme?: import("@emotion/react").Theme;
26
+ theme?: Theme;
27
+ } & NameSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
+ export declare const FullNameStyle: StyledComponent<{
27
29
  as?: React.ElementType;
28
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
29
- export declare const InfoSectionStyle: import("@emotion/styled").StyledComponent<{
30
- theme?: import("@emotion/react").Theme;
30
+ theme?: Theme;
31
+ }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
32
+ export declare const InfoSectionStyle: StyledComponent<{
31
33
  as?: React.ElementType;
32
- } & InfoSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
- export declare const TimeStyle: import("@emotion/styled").StyledComponent<{
34
- theme?: import("@emotion/react").Theme;
34
+ theme?: Theme;
35
+ } & InfoSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
36
+ export declare const TimeStyle: StyledComponent<{
35
37
  as?: React.ElementType;
36
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
38
+ theme?: Theme;
39
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
37
40
  export declare const MENTION_ITEM_HEIGHT = 48;
38
- export declare const MentionItemStyle: import("@emotion/styled").StyledComponent<{
39
- theme?: import("@emotion/react").Theme;
41
+ export declare const MentionItemStyle: StyledComponent<{
40
42
  as?: React.ElementType;
41
- } & MentionItemStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
- export declare const AccessSectionStyle: import("@emotion/styled").StyledComponent<{
43
- theme?: import("@emotion/react").Theme;
43
+ theme?: Theme;
44
+ } & MentionItemStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
45
+ export declare const AccessSectionStyle: StyledComponent<{
44
46
  as?: React.ElementType;
45
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
47
+ theme?: Theme;
48
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,7 +1,10 @@
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
1
4
  export interface MentionListStyleProps {
2
5
  empty?: boolean;
3
6
  }
4
- export declare const MentionListStyle: import("@emotion/styled").StyledComponent<{
5
- theme?: import("@emotion/react").Theme;
7
+ export declare const MentionListStyle: StyledComponent<{
8
+ theme?: Theme;
6
9
  as?: React.ElementType;
7
- } & MentionListStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ } & MentionListStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,7 @@
1
- export declare const GenericErrorVisualStyle: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
+ export declare const GenericErrorVisualStyle: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape, type WithIntlProps } from 'react-intl-next';
3
3
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
4
4
  import { type MentionProvider } from '../../api/MentionResource';
5
5
  import { type PresenceProvider } from '../../api/PresenceResource';
@@ -70,8 +70,8 @@ export declare class MentionPicker extends React.PureComponent<Props & WithAnaly
70
70
  private handleMentionListRef;
71
71
  render(): React.JSX.Element;
72
72
  }
73
- export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Omit<import("react-intl-next").WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
73
+ export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Omit<WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
74
74
  intl: IntlShape;
75
- }>>, "ref"> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
75
+ }>>, 'ref'> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
76
76
  export type MentionPickerWithAnalytics = MentionPicker;
77
77
  export default MentionPickerWithAnalytics;
@@ -1,11 +1,14 @@
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
1
4
  export interface MentionPickerStyleProps {
2
5
  visible?: boolean | string;
3
6
  }
4
- export declare const MentionPickerStyle: import("@emotion/styled").StyledComponent<{
5
- theme?: import("@emotion/react").Theme;
7
+ export declare const MentionPickerStyle: StyledComponent<{
8
+ theme?: Theme;
6
9
  as?: React.ElementType;
7
- } & MentionPickerStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
- export declare const MentionPickerInfoStyle: import("@emotion/styled").StyledComponent<{
9
- theme?: import("@emotion/react").Theme;
10
+ } & MentionPickerStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ export declare const MentionPickerInfoStyle: StyledComponent<{
12
+ theme?: Theme;
10
13
  as?: React.ElementType;
11
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,7 @@
1
- export declare const ScrollableStyle: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
+ export declare const ScrollableStyle: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,5 +1,5 @@
1
- export declare const noDialogContainerBorderColor: "var(--ds-border)";
2
- export declare const noDialogContainerBorderRadius: "var(--ds-radius-small)";
3
- export declare const noDialogContainerBoxShadow: "var(--ds-shadow-overlay)";
1
+ export declare const noDialogContainerBorderColor: 'var(--ds-border)';
2
+ export declare const noDialogContainerBorderRadius: 'var(--ds-radius-small)';
3
+ export declare const noDialogContainerBoxShadow: 'var(--ds-shadow-overlay)';
4
4
  export declare const scrollableMaxHeight = "264px";
5
5
  export declare const mentionListWidth = "340px";
@@ -234,9 +234,9 @@ export interface MentionNameDetails {
234
234
  }
235
235
  export declare function isRestricted(accessLevel?: string): boolean;
236
236
  export declare function isSpecialMention(mention: MentionDescription): boolean;
237
- export declare function isAppMention(mention: MentionDescription): boolean | "" | undefined;
238
- export declare function isTeamMention(mention: MentionDescription): boolean | "" | undefined;
239
- export declare function isSpecialMentionText(mentionText: string): boolean | "";
237
+ export declare function isAppMention(mention: MentionDescription): boolean | '' | undefined;
238
+ export declare function isTeamMention(mention: MentionDescription): boolean | '' | undefined;
239
+ export declare function isSpecialMentionText(mentionText: string): boolean | '';
240
240
  export declare const isPromise: <T>(p: any) => p is Promise<T>;
241
241
  export type InviteFlow = 'mention' | 'assign';
242
242
  export type UserRole = 'admin' | 'trusted' | 'basic';
@@ -1,5 +1,5 @@
1
1
  import { type MentionProvider, type MentionContextIdentifier, ErrorCallback, InfoCallback, ResultCallback } from './MentionResource';
2
- import { type MentionDescription, type InviteFromMentionProvider, type XProductInviteMentionProvider } from '../types';
2
+ import { type MentionDescription, type InviteFromMentionProvider, type XProductInviteMentionProvider, type AnalyticsCallback } from '../types';
3
3
  export type { MentionDescription };
4
4
  export type MentionProviderFunctions = Omit<{
5
5
  [Key in keyof MentionProvider]: MentionProvider[Key] extends Function ? MentionProvider[Key] : never;
@@ -14,7 +14,7 @@ export default class ContextMentionResource implements MentionProvider {
14
14
  getContextIdentifier(): MentionContextIdentifier | undefined;
15
15
  callWithContextIds: <K extends keyof MentionProviderFunctions>(f: K, declaredArgs: number) => MentionProvider[K];
16
16
  callDefault: <K extends keyof MentionProviderFunctions>(f: K) => MentionProvider[K];
17
- subscribe: (key: string, callback?: ResultCallback<MentionDescription[]> | undefined, errCallback?: ErrorCallback, infoCallback?: InfoCallback, allResultsCallback?: ResultCallback<MentionDescription[]> | undefined, analyticsCallback?: import("../types").AnalyticsCallback) => void;
17
+ subscribe: (key: string, callback?: ResultCallback<MentionDescription[]> | undefined, errCallback?: ErrorCallback, infoCallback?: InfoCallback, allResultsCallback?: ResultCallback<MentionDescription[]> | undefined, analyticsCallback?: AnalyticsCallback) => void;
18
18
  unsubscribe: (key: string) => void;
19
19
  filter: (query?: string, contextIdentifier?: MentionContextIdentifier) => void;
20
20
  recordMentionSelection: (mention: MentionDescription, contextIdentifier?: MentionContextIdentifier) => void;
@@ -1,5 +1,7 @@
1
- declare const AsyncLockCircleIcon: import("react").LazyExoticComponent<{
2
- (props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
1
+ import type { NewCoreIconProps } from '@atlaskit/icon';
2
+ import { type LazyExoticComponent } from 'react';
3
+ declare const AsyncLockCircleIcon: LazyExoticComponent<{
4
+ (props: NewCoreIconProps): JSX.Element;
3
5
  displayName: string;
4
6
  }>;
5
7
  export default AsyncLockCircleIcon;
@@ -1,7 +1,7 @@
1
1
  import { MentionType } from '../../types';
2
- import { type HTMLAttributes } from 'react';
2
+ import { type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'react';
3
3
  export interface PrimitiveMentionProps extends HTMLAttributes<HTMLSpanElement> {
4
4
  mentionType: MentionType;
5
5
  }
6
- declare const PrimitiveMention: import("react").ForwardRefExoticComponent<PrimitiveMentionProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ declare const PrimitiveMention: ForwardRefExoticComponent<PrimitiveMentionProps & RefAttributes<HTMLSpanElement>>;
7
7
  export default PrimitiveMention;
@@ -1,4 +1,7 @@
1
- export declare const DescriptionBylineStyle: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
+ export declare const DescriptionBylineStyle: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
7
+ }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -15,4 +15,4 @@ export default class MentionItem extends React.PureComponent<Props, {}> {
15
15
  private onMentionMenuItemMouseEnter;
16
16
  render(): React.JSX.Element;
17
17
  }
18
- export declare const MentionItemWithRef: React.ForwardRefExoticComponent<Omit<Props, "forwardedRef"> & React.RefAttributes<HTMLDivElement>>;
18
+ export declare const MentionItemWithRef: React.ForwardRefExoticComponent<Omit<Props, 'forwardedRef'> & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,6 @@
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
1
4
  export interface MentionItemStyleProps {
2
5
  selected?: boolean;
3
6
  }
@@ -10,36 +13,36 @@ export interface NameSectionStyleProps {
10
13
  export interface InfoSectionStyleProps {
11
14
  restricted?: boolean;
12
15
  }
13
- export declare const RowStyle: import("@emotion/styled").StyledComponent<{
14
- theme?: import("@emotion/react").Theme;
16
+ export declare const RowStyle: StyledComponent<{
15
17
  as?: React.ElementType;
16
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
- export declare const AvatarStyle: import("@emotion/styled").StyledComponent<{
18
- theme?: import("@emotion/react").Theme;
18
+ theme?: Theme;
19
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
+ export declare const AvatarStyle: StyledComponent<{
19
21
  as?: React.ElementType;
20
- } & AvatarSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
21
- export declare const NameSectionStyle: import("@emotion/styled").StyledComponent<{
22
- theme?: import("@emotion/react").Theme;
22
+ theme?: Theme;
23
+ } & AvatarSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
24
+ export declare const NameSectionStyle: StyledComponent<{
23
25
  as?: React.ElementType;
24
- } & NameSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
25
- export declare const FullNameStyle: import("@emotion/styled").StyledComponent<{
26
- theme?: import("@emotion/react").Theme;
26
+ theme?: Theme;
27
+ } & NameSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
+ export declare const FullNameStyle: StyledComponent<{
27
29
  as?: React.ElementType;
28
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
29
- export declare const InfoSectionStyle: import("@emotion/styled").StyledComponent<{
30
- theme?: import("@emotion/react").Theme;
30
+ theme?: Theme;
31
+ }, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
32
+ export declare const InfoSectionStyle: StyledComponent<{
31
33
  as?: React.ElementType;
32
- } & InfoSectionStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
33
- export declare const TimeStyle: import("@emotion/styled").StyledComponent<{
34
- theme?: import("@emotion/react").Theme;
34
+ theme?: Theme;
35
+ } & InfoSectionStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
36
+ export declare const TimeStyle: StyledComponent<{
35
37
  as?: React.ElementType;
36
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
38
+ theme?: Theme;
39
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
37
40
  export declare const MENTION_ITEM_HEIGHT = 48;
38
- export declare const MentionItemStyle: import("@emotion/styled").StyledComponent<{
39
- theme?: import("@emotion/react").Theme;
41
+ export declare const MentionItemStyle: StyledComponent<{
40
42
  as?: React.ElementType;
41
- } & MentionItemStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
- export declare const AccessSectionStyle: import("@emotion/styled").StyledComponent<{
43
- theme?: import("@emotion/react").Theme;
43
+ theme?: Theme;
44
+ } & MentionItemStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
45
+ export declare const AccessSectionStyle: StyledComponent<{
44
46
  as?: React.ElementType;
45
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
47
+ theme?: Theme;
48
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,7 +1,10 @@
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
1
4
  export interface MentionListStyleProps {
2
5
  empty?: boolean;
3
6
  }
4
- export declare const MentionListStyle: import("@emotion/styled").StyledComponent<{
5
- theme?: import("@emotion/react").Theme;
7
+ export declare const MentionListStyle: StyledComponent<{
8
+ theme?: Theme;
6
9
  as?: React.ElementType;
7
- } & MentionListStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ } & MentionListStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,7 @@
1
- export declare const GenericErrorVisualStyle: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
+ export declare const GenericErrorVisualStyle: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape, type WithIntlProps } from 'react-intl-next';
3
3
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
4
4
  import { type MentionProvider } from '../../api/MentionResource';
5
5
  import { type PresenceProvider } from '../../api/PresenceResource';
@@ -70,8 +70,8 @@ export declare class MentionPicker extends React.PureComponent<Props & WithAnaly
70
70
  private handleMentionListRef;
71
71
  render(): React.JSX.Element;
72
72
  }
73
- export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Omit<import("react-intl-next").WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
73
+ export declare const MentionPickerWithAnalytics: React.ForwardRefExoticComponent<Omit<Omit<WithIntlProps<React.PropsWithChildren<Props & WithAnalyticsEventsProps & {
74
74
  intl: IntlShape;
75
- }>>, "ref"> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
75
+ }>>, 'ref'> & React.RefAttributes<any>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
76
76
  export type MentionPickerWithAnalytics = MentionPicker;
77
77
  export default MentionPickerWithAnalytics;
@@ -1,11 +1,14 @@
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
1
4
  export interface MentionPickerStyleProps {
2
5
  visible?: boolean | string;
3
6
  }
4
- export declare const MentionPickerStyle: import("@emotion/styled").StyledComponent<{
5
- theme?: import("@emotion/react").Theme;
7
+ export declare const MentionPickerStyle: StyledComponent<{
8
+ theme?: Theme;
6
9
  as?: React.ElementType;
7
- } & MentionPickerStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
- export declare const MentionPickerInfoStyle: import("@emotion/styled").StyledComponent<{
9
- theme?: import("@emotion/react").Theme;
10
+ } & MentionPickerStyleProps, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ export declare const MentionPickerInfoStyle: StyledComponent<{
12
+ theme?: Theme;
10
13
  as?: React.ElementType;
11
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,7 @@
1
- export declare const ScrollableStyle: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
4
+ export declare const ScrollableStyle: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ }, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,5 +1,5 @@
1
- export declare const noDialogContainerBorderColor: "var(--ds-border)";
2
- export declare const noDialogContainerBorderRadius: "var(--ds-radius-small)";
3
- export declare const noDialogContainerBoxShadow: "var(--ds-shadow-overlay)";
1
+ export declare const noDialogContainerBorderColor: 'var(--ds-border)';
2
+ export declare const noDialogContainerBorderRadius: 'var(--ds-radius-small)';
3
+ export declare const noDialogContainerBoxShadow: 'var(--ds-shadow-overlay)';
4
4
  export declare const scrollableMaxHeight = "264px";
5
5
  export declare const mentionListWidth = "340px";
@@ -234,9 +234,9 @@ export interface MentionNameDetails {
234
234
  }
235
235
  export declare function isRestricted(accessLevel?: string): boolean;
236
236
  export declare function isSpecialMention(mention: MentionDescription): boolean;
237
- export declare function isAppMention(mention: MentionDescription): boolean | "" | undefined;
238
- export declare function isTeamMention(mention: MentionDescription): boolean | "" | undefined;
239
- export declare function isSpecialMentionText(mentionText: string): boolean | "";
237
+ export declare function isAppMention(mention: MentionDescription): boolean | '' | undefined;
238
+ export declare function isTeamMention(mention: MentionDescription): boolean | '' | undefined;
239
+ export declare function isSpecialMentionText(mentionText: string): boolean | '';
240
240
  export declare const isPromise: <T>(p: any) => p is Promise<T>;
241
241
  export type InviteFlow = 'mention' | 'assign';
242
242
  export type UserRole = 'admin' | 'trusted' | 'basic';
package/package.json CHANGED
@@ -22,16 +22,17 @@
22
22
  "@atlaskit/afm-i18n-platform-elements-mention": "2.7.0",
23
23
  "@atlaskit/analytics-gas-types": "^5.1.0",
24
24
  "@atlaskit/analytics-next": "^11.1.0",
25
- "@atlaskit/avatar": "^25.8.0",
25
+ "@atlaskit/avatar": "^25.9.0",
26
26
  "@atlaskit/focus-ring": "^3.0.0",
27
27
  "@atlaskit/heading": "^5.3.0",
28
- "@atlaskit/icon": "^32.0.0",
29
- "@atlaskit/lozenge": "^13.4.0",
28
+ "@atlaskit/icon": "^33.0.0",
29
+ "@atlaskit/lozenge": "^13.5.0",
30
30
  "@atlaskit/platform-feature-flags": "^1.1.0",
31
31
  "@atlaskit/primitives": "^18.0.0",
32
+ "@atlaskit/tag": "^14.5.0",
32
33
  "@atlaskit/teams-avatar": "^2.4.0",
33
34
  "@atlaskit/theme": "^22.0.0",
34
- "@atlaskit/tokens": "^11.0.0",
35
+ "@atlaskit/tokens": "^11.1.0",
35
36
  "@atlaskit/tooltip": "^20.14.0",
36
37
  "@atlaskit/ufo": "^0.4.0",
37
38
  "@atlaskit/util-service-support": "^6.3.0",
@@ -47,7 +48,7 @@
47
48
  "@af/search-test-utils": "workspace:^",
48
49
  "@af/visual-regression": "workspace:^",
49
50
  "@atlaskit/elements-test-helpers": "workspace:^",
50
- "@atlassian/a11y-jest-testing": "^0.11.0",
51
+ "@atlassian/a11y-jest-testing": "^0.10.0",
51
52
  "@atlassian/feature-flags-test-utils": "^1.0.0",
52
53
  "@testing-library/react": "^16.3.0",
53
54
  "@testing-library/user-event": "^14.4.3",
@@ -85,6 +86,9 @@
85
86
  },
86
87
  "mentions_custom_headers": {
87
88
  "type": "boolean"
89
+ },
90
+ "platform-dst-lozenge-tag-badge-visual-uplifts": {
91
+ "type": "boolean"
88
92
  }
89
93
  },
90
94
  "publishConfig": {
@@ -112,5 +116,5 @@
112
116
  ]
113
117
  }
114
118
  },
115
- "version": "24.5.3"
119
+ "version": "24.5.4"
116
120
  }