@atlaskit/emoji 72.0.4 → 72.0.5

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,14 @@
1
1
  # @atlaskit/emoji
2
2
 
3
+ ## 72.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`955d1bbed0d78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/955d1bbed0d78) -
8
+ Cleaned up platform_index_emoji_just_in_time which has been enabled in Jira and Confluence for
9
+ over a year
10
+ - Updated dependencies
11
+
3
12
  ## 72.0.4
4
13
 
5
14
  ### Patch Changes
@@ -17,7 +17,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
17
17
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
18
18
  var _jsSearch = require("js-search");
19
19
  var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
20
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
20
  var _types = require("../types");
22
21
  var _constants = require("../util/constants");
23
22
  var _getCategoryId = require("../util/get-category-id");
@@ -348,9 +347,10 @@ var EmojiRepository = exports.default = /*#__PURE__*/function () {
348
347
  value: function initMembers(usageTracker) {
349
348
  this.usageTracker = usageTracker || new _UsageFrequencyTracker.UsageFrequencyTracker();
350
349
  this.initRepositoryMetadata();
351
- if (!(0, _platformFeatureFlags.fg)('platform_index_emoji_just_in_time')) {
352
- this.initSearchIndex();
353
- }
350
+
351
+ // When emojis are deleted - the repository is re-initialised.
352
+ // This invalidates the full search index that's lazily loaded later
353
+ this.fullSearchReady = false;
354
354
  }
355
355
 
356
356
  /**
@@ -19,7 +19,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
19
19
  actionSubjectId: actionSubjectId,
20
20
  attributes: _objectSpread({
21
21
  packageName: "@atlaskit/emoji",
22
- packageVersion: "72.0.3"
22
+ packageVersion: "72.0.4"
23
23
  }, attributes)
24
24
  };
25
25
  };
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
3
3
  import { Search, UnorderedSearchIndex } from 'js-search';
4
4
  import FeatureGates from '@atlaskit/feature-gate-js-client';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { SearchSort } from '../types';
7
6
  import { defaultCategories, frequentCategory } from '../util/constants';
8
7
  import { getCategoryId } from '../util/get-category-id';
@@ -275,9 +274,10 @@ export default class EmojiRepository {
275
274
  initMembers(usageTracker) {
276
275
  this.usageTracker = usageTracker || new UsageFrequencyTracker();
277
276
  this.initRepositoryMetadata();
278
- if (!fg('platform_index_emoji_just_in_time')) {
279
- this.initSearchIndex();
280
- }
277
+
278
+ // When emojis are deleted - the repository is re-initialised.
279
+ // This invalidates the full search index that's lazily loaded later
280
+ this.fullSearchReady = false;
281
281
  }
282
282
 
283
283
  /**
@@ -7,7 +7,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
7
7
  actionSubjectId,
8
8
  attributes: {
9
9
  packageName: "@atlaskit/emoji",
10
- packageVersion: "72.0.3",
10
+ packageVersion: "72.0.4",
11
11
  ...attributes
12
12
  }
13
13
  });
@@ -5,7 +5,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
5
5
  /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
6
6
  import { Search, UnorderedSearchIndex } from 'js-search';
7
7
  import FeatureGates from '@atlaskit/feature-gate-js-client';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { SearchSort } from '../types';
10
9
  import { defaultCategories, frequentCategory } from '../util/constants';
11
10
  import { getCategoryId } from '../util/get-category-id';
@@ -335,9 +334,10 @@ var EmojiRepository = /*#__PURE__*/function () {
335
334
  value: function initMembers(usageTracker) {
336
335
  this.usageTracker = usageTracker || new UsageFrequencyTracker();
337
336
  this.initRepositoryMetadata();
338
- if (!fg('platform_index_emoji_just_in_time')) {
339
- this.initSearchIndex();
340
- }
337
+
338
+ // When emojis are deleted - the repository is re-initialised.
339
+ // This invalidates the full search index that's lazily loaded later
340
+ this.fullSearchReady = false;
341
341
  }
342
342
 
343
343
  /**
@@ -12,7 +12,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
12
12
  actionSubjectId: actionSubjectId,
13
13
  attributes: _objectSpread({
14
14
  packageName: "@atlaskit/emoji",
15
- packageVersion: "72.0.3"
15
+ packageVersion: "72.0.4"
16
16
  }, attributes)
17
17
  };
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/emoji",
3
- "version": "72.0.4",
3
+ "version": "72.0.5",
4
4
  "description": "Fabric emoji React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/spinner": "^20.1.0",
51
51
  "@atlaskit/textfield": "^10.0.0",
52
52
  "@atlaskit/theme": "^28.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^151.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^152.0.0",
54
54
  "@atlaskit/tokens": "^16.7.0",
55
55
  "@atlaskit/tooltip": "^24.0.0",
56
56
  "@atlaskit/ufo": "^1.0.0",
@@ -119,9 +119,6 @@
119
119
  "nike_r19_render_unmount": {
120
120
  "type": "boolean"
121
121
  },
122
- "platform_index_emoji_just_in_time": {
123
- "type": "boolean"
124
- },
125
122
  "platform_emoji_prevent_img_src_changing": {
126
123
  "type": "boolean"
127
124
  },