@atlaskit/editor-plugin-selection 2.1.4 → 2.1.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/editor-plugin-selection
2
2
 
3
+ ## 2.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#132699](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132699)
8
+ [`eee4cd1d4f4d8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eee4cd1d4f4d8) -
9
+ remove feature gate
10
+ - Updated dependencies
11
+
3
12
  ## 2.1.4
4
13
 
5
14
  ### Patch Changes
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.selectionPlugin = exports.default = void 0;
8
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
9
  var _autoExpandSelectionRangeOnInlineNodeMain = require("./pm-plugins/auto-expand-selection-range-on-inline-node-main");
12
10
  var _commands = require("./pm-plugins/commands");
13
11
  var _gapCursorKeymap = _interopRequireDefault(require("./pm-plugins/gap-cursor-keymap"));
@@ -105,19 +103,19 @@ var selectionPlugin = exports.selectionPlugin = function selectionPlugin(_ref4)
105
103
  plugin: function plugin() {
106
104
  return (0, _markBoundaryCursorMain.createMarkBoundaryCursorPlugin)();
107
105
  }
108
- }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('editor_auto_expand_selection_on_inline_node') ? [{
106
+ }, {
109
107
  name: 'autoExpandSelectionRangeOnInlineNode',
110
108
  plugin: function plugin() {
111
109
  return (0, _autoExpandSelectionRangeOnInlineNodeMain.createAutoExpandSelectionRangeOnInlineNodePlugin)();
112
110
  }
113
- }] : []), [{
111
+ }, {
114
112
  name: 'selectionAnalytics',
115
113
  plugin: function plugin(_ref7) {
116
114
  var dispatch = _ref7.dispatch,
117
115
  dispatchAnalyticsEvent = _ref7.dispatchAnalyticsEvent;
118
116
  return (0, _selectionAnalytics.createSelectionAnalyticsPlugin)(dispatchAnalyticsEvent);
119
117
  }
120
- }]);
118
+ }];
121
119
  }
122
120
  };
123
121
  };
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { createAutoExpandSelectionRangeOnInlineNodePlugin } from './pm-plugins/auto-expand-selection-range-on-inline-node-main';
3
2
  import { selectNearNode } from './pm-plugins/commands';
4
3
  import gapCursorKeymapPlugin from './pm-plugins/gap-cursor-keymap';
@@ -85,10 +84,10 @@ export const selectionPlugin = ({
85
84
  }, {
86
85
  name: 'markBoundaryCursor',
87
86
  plugin: () => createMarkBoundaryCursorPlugin()
88
- }, ...(fg('editor_auto_expand_selection_on_inline_node') ? [{
87
+ }, {
89
88
  name: 'autoExpandSelectionRangeOnInlineNode',
90
89
  plugin: () => createAutoExpandSelectionRangeOnInlineNodePlugin()
91
- }] : []), {
90
+ }, {
92
91
  name: 'selectionAnalytics',
93
92
  plugin: ({
94
93
  dispatch,
@@ -1,8 +1,6 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
2
  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; }
4
3
  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; }
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
4
  import { createAutoExpandSelectionRangeOnInlineNodePlugin } from './pm-plugins/auto-expand-selection-range-on-inline-node-main';
7
5
  import { selectNearNode as _selectNearNode } from './pm-plugins/commands';
8
6
  import gapCursorKeymapPlugin from './pm-plugins/gap-cursor-keymap';
@@ -98,19 +96,19 @@ export var selectionPlugin = function selectionPlugin(_ref4) {
98
96
  plugin: function plugin() {
99
97
  return createMarkBoundaryCursorPlugin();
100
98
  }
101
- }].concat(_toConsumableArray(fg('editor_auto_expand_selection_on_inline_node') ? [{
99
+ }, {
102
100
  name: 'autoExpandSelectionRangeOnInlineNode',
103
101
  plugin: function plugin() {
104
102
  return createAutoExpandSelectionRangeOnInlineNodePlugin();
105
103
  }
106
- }] : []), [{
104
+ }, {
107
105
  name: 'selectionAnalytics',
108
106
  plugin: function plugin(_ref7) {
109
107
  var dispatch = _ref7.dispatch,
110
108
  dispatchAnalyticsEvent = _ref7.dispatchAnalyticsEvent;
111
109
  return createSelectionAnalyticsPlugin(dispatchAnalyticsEvent);
112
110
  }
113
- }]);
111
+ }];
114
112
  }
115
113
  };
116
114
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -87,9 +87,6 @@
87
87
  "platform_editor_fix_drag_and_drop_lists": {
88
88
  "type": "boolean"
89
89
  },
90
- "editor_auto_expand_selection_on_inline_node": {
91
- "type": "boolean"
92
- },
93
90
  "platform_editor_lcm_inline_node_selection_fix": {
94
91
  "type": "boolean"
95
92
  },