@atlaskit/mention 24.5.4 → 24.6.0

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/mention
2
2
 
3
+ ## 24.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f86d75095ae8e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f86d75095ae8e) -
8
+ Clean up mentions_custom_headers FG
9
+
10
+ ## 24.5.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 24.5.4
4
17
 
5
18
  ### Patch Changes
@@ -13,7 +13,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
13
13
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
15
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _utilServiceSupport = require("@atlaskit/util-service-support");
18
17
  var _types = require("../types");
19
18
  var _logger = _interopRequireDefault(require("../util/logger"));
@@ -378,7 +377,7 @@ var MentionResource = exports.MentionResource = /*#__PURE__*/function (_Abstract
378
377
  while (1) switch (_context2.prev = _context2.next) {
379
378
  case 0:
380
379
  queryParams = this.getQueryParams(contextIdentifier);
381
- configHeaders = (0, _platformFeatureFlags.fg)('mentions_custom_headers') ? this.config.headers : undefined;
380
+ configHeaders = this.config.headers;
382
381
  options = _objectSpread({
383
382
  path: 'bootstrap',
384
383
  queryParams: queryParams
@@ -425,7 +424,7 @@ var MentionResource = exports.MentionResource = /*#__PURE__*/function (_Abstract
425
424
  return _regenerator.default.wrap(function _callee3$(_context3) {
426
425
  while (1) switch (_context3.prev = _context3.next) {
427
426
  case 0:
428
- configHeaders = (0, _platformFeatureFlags.fg)('mentions_custom_headers') ? this.config.headers : undefined;
427
+ configHeaders = this.config.headers;
429
428
  options = _objectSpread({
430
429
  path: 'search',
431
430
  queryParams: _objectSpread({
@@ -11,7 +11,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
11
11
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
12
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
13
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _atlAttribution = require("../util/atl-attribution");
16
15
  var _logger = _interopRequireDefault(require("../util/logger"));
17
16
  var _MentionResource = require("./MentionResource");
@@ -117,7 +116,6 @@ var PresenceResource = /*#__PURE__*/function (_AbstractPresenceReso) {
117
116
  if (this.config.productId) {
118
117
  query.variables['productId'] = this.config.productId;
119
118
  }
120
- var configHeaders = (0, _platformFeatureFlags.fg)('mentions_custom_headers') ? this.config.headers : undefined;
121
119
  var atlAttributionHeader = (0, _atlAttribution.buildAtlAttributionHeaderValue)({
122
120
  cloudId: this.config.cloudId,
123
121
  productId: this.config.productId,
@@ -127,7 +125,7 @@ var PresenceResource = /*#__PURE__*/function (_AbstractPresenceReso) {
127
125
  method: 'POST',
128
126
  headers: _objectSpread(_objectSpread({
129
127
  'Content-Type': 'application/json'
130
- }, atlAttributionHeader), configHeaders),
128
+ }, atlAttributionHeader), this.config.headers),
131
129
  credentials: 'include',
132
130
  body: JSON.stringify(query)
133
131
  };
@@ -16,7 +16,6 @@ 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
18
  var _analytics = require("./../util/analytics");
19
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _utilServiceSupport = require("@atlaskit/util-service-support");
21
20
  var _types = require("../types");
22
21
  var _MentionResource2 = _interopRequireDefault(require("./MentionResource"));
@@ -76,7 +75,7 @@ var TeamMentionResource = exports.default = /*#__PURE__*/function (_MentionResou
76
75
  emptyQuery = '';
77
76
  getUserPromise = _superPropGet(TeamMentionResource, "remoteInitialState", this, 3)([contextIdentifier]);
78
77
  queryParams = this.getQueryParamsOfTeamMentionConfig(contextIdentifier);
79
- configHeaders = (0, _platformFeatureFlags.fg)('mentions_custom_headers') ? this.teamMentionConfig.headers : undefined;
78
+ configHeaders = this.teamMentionConfig.headers;
80
79
  options = _objectSpread({
81
80
  path: 'bootstrap',
82
81
  queryParams: queryParams
@@ -224,7 +223,7 @@ var TeamMentionResource = exports.default = /*#__PURE__*/function (_MentionResou
224
223
  return _regenerator.default.wrap(function _callee3$(_context3) {
225
224
  while (1) switch (_context3.prev = _context3.next) {
226
225
  case 0:
227
- configHeaders = (0, _platformFeatureFlags.fg)('mentions_custom_headers') ? this.teamMentionConfig.headers : undefined;
226
+ configHeaders = this.teamMentionConfig.headers;
228
227
  options = _objectSpread({
229
228
  path: 'search',
230
229
  queryParams: _objectSpread({
@@ -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.3";
15
+ var packageVersion = "0.0.0-development";
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) {
@@ -4,11 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.buildAtlAttributionHeaderValue = buildAtlAttributionHeaderValue;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
7
  function buildAtlAttributionHeaderValue(config) {
9
- if (!(0, _platformFeatureFlags.fg)('mentions_custom_headers')) {
10
- return undefined;
11
- }
12
8
  var cloudId = config.cloudId,
13
9
  activationId = config.activationId,
14
10
  _config$productId = config.productId,
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { utils as serviceUtils } from '@atlaskit/util-service-support';
3
2
  import { isAppMention, isTeamMention, MentionNameStatus, SliNames, Actions } from '../types';
4
3
  import debug from '../util/logger';
@@ -266,7 +265,7 @@ export class MentionResource extends AbstractMentionResource {
266
265
  */
267
266
  async remoteInitialState(contextIdentifier) {
268
267
  const queryParams = this.getQueryParams(contextIdentifier);
269
- const configHeaders = fg('mentions_custom_headers') ? this.config.headers : undefined;
268
+ const configHeaders = this.config.headers;
270
269
  const options = {
271
270
  path: 'bootstrap',
272
271
  queryParams,
@@ -291,7 +290,7 @@ export class MentionResource extends AbstractMentionResource {
291
290
  };
292
291
  }
293
292
  async remoteSearch(query, contextIdentifier) {
294
- const configHeaders = fg('mentions_custom_headers') ? this.config.headers : undefined;
293
+ const configHeaders = this.config.headers;
295
294
  const options = {
296
295
  path: 'search',
297
296
  queryParams: {
@@ -1,5 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { buildAtlAttributionHeaderValue } from '../util/atl-attribution';
4
3
  import debug from '../util/logger';
5
4
  import { AbstractResource } from './MentionResource';
@@ -79,7 +78,6 @@ class PresenceResource extends AbstractPresenceResource {
79
78
  if (this.config.productId) {
80
79
  query.variables['productId'] = this.config.productId;
81
80
  }
82
- const configHeaders = fg('mentions_custom_headers') ? this.config.headers : undefined;
83
81
  const atlAttributionHeader = buildAtlAttributionHeaderValue({
84
82
  cloudId: this.config.cloudId,
85
83
  productId: this.config.productId,
@@ -90,7 +88,7 @@ class PresenceResource extends AbstractPresenceResource {
90
88
  headers: {
91
89
  'Content-Type': 'application/json',
92
90
  ...atlAttributionHeader,
93
- ...configHeaders
91
+ ...this.config.headers
94
92
  },
95
93
  credentials: 'include',
96
94
  body: JSON.stringify(query)
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { SLI_EVENT_TYPE } from './../util/analytics';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { utils as serviceUtils } from '@atlaskit/util-service-support';
5
4
  import { UserType, UserAccessLevel, SliNames, Actions } from '../types';
6
5
  import MentionResource from './MentionResource';
@@ -42,7 +41,7 @@ export default class TeamMentionResource extends MentionResource {
42
41
  const emptyQuery = '';
43
42
  const getUserPromise = super.remoteInitialState(contextIdentifier);
44
43
  const queryParams = this.getQueryParamsOfTeamMentionConfig(contextIdentifier);
45
- const configHeaders = fg('mentions_custom_headers') ? this.teamMentionConfig.headers : undefined;
44
+ const configHeaders = this.teamMentionConfig.headers;
46
45
  const options = {
47
46
  path: 'bootstrap',
48
47
  queryParams,
@@ -144,7 +143,7 @@ export default class TeamMentionResource extends MentionResource {
144
143
  return super.remoteSearch(query, contextIdentifier);
145
144
  }
146
145
  async remoteTeamSearch(query, contextIdentifier) {
147
- const configHeaders = fg('mentions_custom_headers') ? this.teamMentionConfig.headers : undefined;
146
+ const configHeaders = this.teamMentionConfig.headers;
148
147
  const options = {
149
148
  path: 'search',
150
149
  queryParams: {
@@ -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.3";
5
+ const packageVersion = "0.0.0-development";
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) => {
@@ -1,8 +1,4 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  export function buildAtlAttributionHeaderValue(config) {
3
- if (!fg('mentions_custom_headers')) {
4
- return undefined;
5
- }
6
2
  const {
7
3
  cloudId,
8
4
  activationId,
@@ -10,7 +10,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  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
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import { utils as serviceUtils } from '@atlaskit/util-service-support';
15
14
  import { isAppMention, isTeamMention, MentionNameStatus, SliNames, Actions } from '../types';
16
15
  import debug from '../util/logger';
@@ -371,7 +370,7 @@ export var MentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
371
370
  while (1) switch (_context2.prev = _context2.next) {
372
371
  case 0:
373
372
  queryParams = this.getQueryParams(contextIdentifier);
374
- configHeaders = fg('mentions_custom_headers') ? this.config.headers : undefined;
373
+ configHeaders = this.config.headers;
375
374
  options = _objectSpread({
376
375
  path: 'bootstrap',
377
376
  queryParams: queryParams
@@ -418,7 +417,7 @@ export var MentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
418
417
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
419
418
  while (1) switch (_context3.prev = _context3.next) {
420
419
  case 0:
421
- configHeaders = fg('mentions_custom_headers') ? this.config.headers : undefined;
420
+ configHeaders = this.config.headers;
422
421
  options = _objectSpread({
423
422
  path: 'search',
424
423
  queryParams: _objectSpread({
@@ -11,7 +11,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { buildAtlAttributionHeaderValue } from '../util/atl-attribution';
16
15
  import debug from '../util/logger';
17
16
  import { AbstractResource } from './MentionResource';
@@ -111,7 +110,6 @@ var PresenceResource = /*#__PURE__*/function (_AbstractPresenceReso) {
111
110
  if (this.config.productId) {
112
111
  query.variables['productId'] = this.config.productId;
113
112
  }
114
- var configHeaders = fg('mentions_custom_headers') ? this.config.headers : undefined;
115
113
  var atlAttributionHeader = buildAtlAttributionHeaderValue({
116
114
  cloudId: this.config.cloudId,
117
115
  productId: this.config.productId,
@@ -121,7 +119,7 @@ var PresenceResource = /*#__PURE__*/function (_AbstractPresenceReso) {
121
119
  method: 'POST',
122
120
  headers: _objectSpread(_objectSpread({
123
121
  'Content-Type': 'application/json'
124
- }, atlAttributionHeader), configHeaders),
122
+ }, atlAttributionHeader), this.config.headers),
125
123
  credentials: 'include',
126
124
  body: JSON.stringify(query)
127
125
  };
@@ -14,7 +14,6 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
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
16
  import { SLI_EVENT_TYPE } from './../util/analytics';
17
- import { fg } from '@atlaskit/platform-feature-flags';
18
17
  import { utils as serviceUtils } from '@atlaskit/util-service-support';
19
18
  import { UserType, UserAccessLevel, SliNames, Actions } from '../types';
20
19
  import MentionResource from './MentionResource';
@@ -69,7 +68,7 @@ var TeamMentionResource = /*#__PURE__*/function (_MentionResource) {
69
68
  emptyQuery = '';
70
69
  getUserPromise = _superPropGet(TeamMentionResource, "remoteInitialState", this, 3)([contextIdentifier]);
71
70
  queryParams = this.getQueryParamsOfTeamMentionConfig(contextIdentifier);
72
- configHeaders = fg('mentions_custom_headers') ? this.teamMentionConfig.headers : undefined;
71
+ configHeaders = this.teamMentionConfig.headers;
73
72
  options = _objectSpread({
74
73
  path: 'bootstrap',
75
74
  queryParams: queryParams
@@ -217,7 +216,7 @@ var TeamMentionResource = /*#__PURE__*/function (_MentionResource) {
217
216
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
218
217
  while (1) switch (_context3.prev = _context3.next) {
219
218
  case 0:
220
- configHeaders = fg('mentions_custom_headers') ? this.teamMentionConfig.headers : undefined;
219
+ configHeaders = this.teamMentionConfig.headers;
221
220
  options = _objectSpread({
222
221
  path: 'search',
223
222
  queryParams: _objectSpread({
@@ -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.3";
8
+ var packageVersion = "0.0.0-development";
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,8 +1,4 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  export function buildAtlAttributionHeaderValue(config) {
3
- if (!fg('mentions_custom_headers')) {
4
- return undefined;
5
- }
6
2
  var cloudId = config.cloudId,
7
3
  activationId = config.activationId,
8
4
  _config$productId = config.productId,
@@ -31,7 +31,6 @@ export interface PresenceResourceConfig {
31
31
  cloudId: string;
32
32
  /**
33
33
  * Custom HTTP headers to include in presence service requests.
34
- * Only applied when the `mentions_custom_headers` feature flag is enabled.
35
34
  */
36
35
  headers?: Record<string, string>;
37
36
  /**
@@ -41,7 +41,6 @@ export interface MentionResourceConfig extends ServiceConfig {
41
41
  debounceTime?: number;
42
42
  /**
43
43
  * Custom HTTP headers to include in mention service requests.
44
- * Only applied when the `mentions_custom_headers` feature flag is enabled.
45
44
  */
46
45
  headers?: Record<string, string>;
47
46
  /**
@@ -31,7 +31,6 @@ export interface PresenceResourceConfig {
31
31
  cloudId: string;
32
32
  /**
33
33
  * Custom HTTP headers to include in presence service requests.
34
- * Only applied when the `mentions_custom_headers` feature flag is enabled.
35
34
  */
36
35
  headers?: Record<string, string>;
37
36
  /**
@@ -41,7 +41,6 @@ export interface MentionResourceConfig extends ServiceConfig {
41
41
  debounceTime?: number;
42
42
  /**
43
43
  * Custom HTTP headers to include in mention service requests.
44
- * Only applied when the `mentions_custom_headers` feature flag is enabled.
45
44
  */
46
45
  headers?: Record<string, string>;
47
46
  /**
package/package.json CHANGED
@@ -22,7 +22,7 @@
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.9.0",
25
+ "@atlaskit/avatar": "^25.10.0",
26
26
  "@atlaskit/focus-ring": "^3.0.0",
27
27
  "@atlaskit/heading": "^5.3.0",
28
28
  "@atlaskit/icon": "^33.0.0",
@@ -33,7 +33,7 @@
33
33
  "@atlaskit/teams-avatar": "^2.4.0",
34
34
  "@atlaskit/theme": "^22.0.0",
35
35
  "@atlaskit/tokens": "^11.1.0",
36
- "@atlaskit/tooltip": "^20.14.0",
36
+ "@atlaskit/tooltip": "^21.0.0",
37
37
  "@atlaskit/ufo": "^0.4.0",
38
38
  "@atlaskit/util-service-support": "^6.3.0",
39
39
  "@babel/runtime": "^7.0.0",
@@ -84,9 +84,6 @@
84
84
  "jira_ai_agent_avatar_issue_view_comment_mentions": {
85
85
  "type": "boolean"
86
86
  },
87
- "mentions_custom_headers": {
88
- "type": "boolean"
89
- },
90
87
  "platform-dst-lozenge-tag-badge-visual-uplifts": {
91
88
  "type": "boolean"
92
89
  }
@@ -116,5 +113,5 @@
116
113
  ]
117
114
  }
118
115
  },
119
- "version": "24.5.4"
116
+ "version": "24.6.0"
120
117
  }