@atlaskit/editor-plugin-type-ahead 2.3.3 → 2.3.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-type-ahead
2
2
 
3
+ ## 2.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#139216](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139216)
8
+ [`e8f596d2b1910`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8f596d2b1910) -
9
+ [ux] Cleaned up platform_editor_controls_patch_1 FG
10
+ - Updated dependencies
11
+
3
12
  ## 2.3.3
4
13
 
5
14
  ### Patch Changes
@@ -307,21 +307,12 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
307
307
  editorView.dispatch(tr);
308
308
  };
309
309
  var onViewMoreClick = (0, _react.useCallback)(function () {
310
- if ((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_1')) {
311
- close(editorView);
312
- }
310
+ close(editorView);
313
311
 
314
312
  // TODO: ED-26959 - when clean up, remove config in quick insert plugin
315
313
  // platform/packages/editor/editor-plugin-quick-insert/src/quickInsertPlugin.tsx (typeAhead.openElementBrowserModal)
316
314
  openElementBrowserModal === null || openElementBrowserModal === void 0 || openElementBrowserModal();
317
- if (!(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_1')) {
318
- cancel({
319
- addPrefixTrigger: false,
320
- setSelectionAt: _constants.CloseSelectionOptions.AFTER_TEXT_INSERTED,
321
- forceFocusOnEditor: false
322
- });
323
- }
324
- }, [cancel, editorView, openElementBrowserModal]);
315
+ }, [editorView, openElementBrowserModal]);
325
316
  return (0, _react2.jsx)(_ui.Popup, {
326
317
  zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
327
318
  target: anchorElement,
@@ -306,21 +306,12 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
306
306
  editorView.dispatch(tr);
307
307
  };
308
308
  const onViewMoreClick = useCallback(() => {
309
- if (fg('platform_editor_controls_patch_1')) {
310
- close(editorView);
311
- }
309
+ close(editorView);
312
310
 
313
311
  // TODO: ED-26959 - when clean up, remove config in quick insert plugin
314
312
  // platform/packages/editor/editor-plugin-quick-insert/src/quickInsertPlugin.tsx (typeAhead.openElementBrowserModal)
315
313
  openElementBrowserModal === null || openElementBrowserModal === void 0 ? void 0 : openElementBrowserModal();
316
- if (!fg('platform_editor_controls_patch_1')) {
317
- cancel({
318
- addPrefixTrigger: false,
319
- setSelectionAt: CloseSelectionOptions.AFTER_TEXT_INSERTED,
320
- forceFocusOnEditor: false
321
- });
322
- }
323
- }, [cancel, editorView, openElementBrowserModal]);
314
+ }, [editorView, openElementBrowserModal]);
324
315
  return jsx(Popup, {
325
316
  zIndex: akEditorFloatingDialogZIndex,
326
317
  target: anchorElement,
@@ -296,21 +296,12 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
296
296
  editorView.dispatch(tr);
297
297
  };
298
298
  var onViewMoreClick = useCallback(function () {
299
- if (fg('platform_editor_controls_patch_1')) {
300
- close(editorView);
301
- }
299
+ close(editorView);
302
300
 
303
301
  // TODO: ED-26959 - when clean up, remove config in quick insert plugin
304
302
  // platform/packages/editor/editor-plugin-quick-insert/src/quickInsertPlugin.tsx (typeAhead.openElementBrowserModal)
305
303
  openElementBrowserModal === null || openElementBrowserModal === void 0 || openElementBrowserModal();
306
- if (!fg('platform_editor_controls_patch_1')) {
307
- cancel({
308
- addPrefixTrigger: false,
309
- setSelectionAt: CloseSelectionOptions.AFTER_TEXT_INSERTED,
310
- forceFocusOnEditor: false
311
- });
312
- }
313
- }, [cancel, editorView, openElementBrowserModal]);
304
+ }, [editorView, openElementBrowserModal]);
314
305
  return jsx(Popup, {
315
306
  zIndex: akEditorFloatingDialogZIndex,
316
307
  target: anchorElement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
- "@atlaskit/editor-common": "^103.1.0",
37
+ "@atlaskit/editor-common": "^103.4.0",
38
38
  "@atlaskit/editor-element-browser": "^0.1.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
40
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
@@ -107,9 +107,6 @@
107
107
  "platform_editor_typeahead_dynamic_height_fix": {
108
108
  "type": "boolean"
109
109
  },
110
- "platform_editor_controls_patch_1": {
111
- "type": "boolean"
112
- },
113
110
  "platform_editor_controls_patch_2": {
114
111
  "type": "boolean"
115
112
  },