@atlaskit/editor-plugin-emoji 3.5.3 → 3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 3.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#138298](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138298)
8
+ [`cc7cc96e28407`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cc7cc96e28407) -
9
+ Cleans up FG to preload emoji picker, allowing it to work offline
10
+ - Updated dependencies
11
+
3
12
  ## 3.5.3
4
13
 
5
14
  ### Patch Changes
@@ -238,9 +238,7 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
238
238
  usePluginHook: function usePluginHook() {
239
239
  (0, _react.useEffect)(function () {
240
240
  delayUntilIdle(function () {
241
- if ((0, _platformFeatureFlags.fg)('platform_editor_preload_emoji_picker')) {
242
- (0, _emoji2.preloadEmojiPicker)();
243
- }
241
+ (0, _emoji2.preloadEmojiPicker)();
244
242
  });
245
243
  }, []);
246
244
  },
@@ -344,7 +342,7 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
344
342
  description: formatMessage(_messages.toolbarInsertBlockMessages.emojiDescription),
345
343
  priority: 500,
346
344
  keyshortcut: ':',
347
- isDisabledOffline: (0, _platformFeatureFlags.fg)('platform_editor_preload_emoji_picker') ? false : true,
345
+ isDisabledOffline: false,
348
346
  icon: function icon() {
349
347
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconEmoji, null);
350
348
  },
@@ -219,9 +219,7 @@ export const emojiPlugin = ({
219
219
  usePluginHook() {
220
220
  useEffect(() => {
221
221
  delayUntilIdle(() => {
222
- if (fg('platform_editor_preload_emoji_picker')) {
223
- preloadEmojiPicker();
224
- }
222
+ preloadEmojiPicker();
225
223
  });
226
224
  }, []);
227
225
  },
@@ -307,7 +305,7 @@ export const emojiPlugin = ({
307
305
  description: formatMessage(messages.emojiDescription),
308
306
  priority: 500,
309
307
  keyshortcut: ':',
310
- isDisabledOffline: fg('platform_editor_preload_emoji_picker') ? false : true,
308
+ isDisabledOffline: false,
311
309
  icon: () => /*#__PURE__*/React.createElement(IconEmoji, null),
312
310
  action(insert) {
313
311
  var _api$typeAhead;
@@ -223,9 +223,7 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
223
223
  usePluginHook: function usePluginHook() {
224
224
  useEffect(function () {
225
225
  delayUntilIdle(function () {
226
- if (fg('platform_editor_preload_emoji_picker')) {
227
- preloadEmojiPicker();
228
- }
226
+ preloadEmojiPicker();
229
227
  });
230
228
  }, []);
231
229
  },
@@ -329,7 +327,7 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
329
327
  description: formatMessage(messages.emojiDescription),
330
328
  priority: 500,
331
329
  keyshortcut: ':',
332
- isDisabledOffline: fg('platform_editor_preload_emoji_picker') ? false : true,
330
+ isDisabledOffline: false,
333
331
  icon: function icon() {
334
332
  return /*#__PURE__*/React.createElement(IconEmoji, null);
335
333
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -109,9 +109,6 @@
109
109
  "platform-feature-flags": {
110
110
  "editor_inline_comments_paste_insert_nodes": {
111
111
  "type": "boolean"
112
- },
113
- "platform_editor_preload_emoji_picker": {
114
- "type": "boolean"
115
112
  }
116
113
  }
117
114
  }