@atlaskit/editor-plugin-emoji 3.7.2 → 3.7.3

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.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#162451](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/162451)
8
+ [`ef8e2f1c70087`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef8e2f1c70087) -
9
+ Switching tbt performance fixes in inlineEmojiPopup and BlockMenu to experiment flag
10
+ - Updated dependencies
11
+
3
12
  ## 3.7.2
4
13
 
5
14
  ### Patch Changes
@@ -324,7 +324,7 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
324
324
  if (!api || (0, _experiments.editorExperiment)('platform_editor_controls', 'control')) {
325
325
  return null;
326
326
  }
327
- if (!(0, _platformFeatureFlags.fg)('platform_editor_controls_perf_tbt_fix')) {
327
+ if (!(0, _experiments.editorExperiment)('platform_editor_controls_performance_fixes', true)) {
328
328
  return /*#__PURE__*/_react.default.createElement(_InlineEmojiPopup.InlineEmojiPopupOld, {
329
329
  api: api,
330
330
  editorView: editorView,
@@ -287,7 +287,7 @@ export const emojiPlugin = ({
287
287
  if (!api || editorExperiment('platform_editor_controls', 'control')) {
288
288
  return null;
289
289
  }
290
- if (!fg('platform_editor_controls_perf_tbt_fix')) {
290
+ if (!editorExperiment('platform_editor_controls_performance_fixes', true)) {
291
291
  return /*#__PURE__*/React.createElement(InlineEmojiPopupOld, {
292
292
  api: api,
293
293
  editorView: editorView,
@@ -309,7 +309,7 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
309
309
  if (!api || editorExperiment('platform_editor_controls', 'control')) {
310
310
  return null;
311
311
  }
312
- if (!fg('platform_editor_controls_perf_tbt_fix')) {
312
+ if (!editorExperiment('platform_editor_controls_performance_fixes', true)) {
313
313
  return /*#__PURE__*/React.createElement(InlineEmojiPopupOld, {
314
314
  api: api,
315
315
  editorView: editorView,
@@ -5,8 +5,12 @@ import { type EmojiPlugin } from '../emojiPluginType';
5
5
  type InlineEmojiPopupProps = Pick<UiComponentFactoryParams, 'popupsBoundariesElement' | 'popupsMountPoint' | 'popupsScrollableElement'> & {
6
6
  api: ExtractInjectionAPI<EmojiPlugin>;
7
7
  editorView: EditorView;
8
- onClose?: () => void;
9
8
  };
10
- export declare const InlineEmojiPopupOld: ({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, onClose, }: InlineEmojiPopupProps) => React.JSX.Element | null;
9
+ export declare const InlineEmojiPopupOld: ({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, onClose, }: Pick<UiComponentFactoryParams, "popupsBoundariesElement" | "popupsMountPoint" | "popupsScrollableElement"> & {
10
+ api: ExtractInjectionAPI<EmojiPlugin>;
11
+ editorView: EditorView;
12
+ } & {
13
+ onClose: () => void;
14
+ }) => React.JSX.Element | null;
11
15
  export declare const InlineEmojiPopup: React.MemoExoticComponent<({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, }: InlineEmojiPopupProps) => React.JSX.Element | null>;
12
16
  export {};
@@ -5,8 +5,12 @@ import { type EmojiPlugin } from '../emojiPluginType';
5
5
  type InlineEmojiPopupProps = Pick<UiComponentFactoryParams, 'popupsBoundariesElement' | 'popupsMountPoint' | 'popupsScrollableElement'> & {
6
6
  api: ExtractInjectionAPI<EmojiPlugin>;
7
7
  editorView: EditorView;
8
- onClose?: () => void;
9
8
  };
10
- export declare const InlineEmojiPopupOld: ({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, onClose, }: InlineEmojiPopupProps) => React.JSX.Element | null;
9
+ export declare const InlineEmojiPopupOld: ({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, onClose, }: Pick<UiComponentFactoryParams, "popupsBoundariesElement" | "popupsMountPoint" | "popupsScrollableElement"> & {
10
+ api: ExtractInjectionAPI<EmojiPlugin>;
11
+ editorView: EditorView;
12
+ } & {
13
+ onClose: () => void;
14
+ }) => React.JSX.Element | null;
11
15
  export declare const InlineEmojiPopup: React.MemoExoticComponent<({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, }: InlineEmojiPopupProps) => React.JSX.Element | null>;
12
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
39
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
40
40
  "@atlaskit/theme": "^18.0.0",
41
- "@atlaskit/tmp-editor-statsig": "^5.4.0",
41
+ "@atlaskit/tmp-editor-statsig": "^5.5.0",
42
42
  "@atlaskit/tokens": "^4.9.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1",
@@ -113,9 +113,6 @@
113
113
  },
114
114
  "platform_editor_ease_of_use_metrics": {
115
115
  "type": "boolean"
116
- },
117
- "platform_editor_controls_perf_tbt_fix": {
118
- "type": "boolean"
119
116
  }
120
117
  }
121
118
  }