@atlaskit/editor-plugin-list 4.2.8 → 4.2.10

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,19 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 4.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165934](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165934)
8
+ [`154dce45f0dae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/154dce45f0dae) -
9
+ Clean up platform_editor_non_macros_list_indent_fix
10
+
11
+ ## 4.2.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.2.8
4
18
 
5
19
  ### Patch Changes
@@ -11,7 +11,6 @@ var _selection = require("@atlaskit/editor-common/selection");
11
11
  var _utils = require("@atlaskit/editor-common/utils");
12
12
  var _model = require("@atlaskit/editor-prosemirror/model");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _find = require("../utils/find");
16
15
  var indentListItemsSelected = exports.indentListItemsSelected = function indentListItemsSelected(tr) {
17
16
  var _currentListItem$cont;
@@ -123,7 +122,7 @@ var createIndentedListItemsSlice = function createIndentedListItemsSlice(_ref3)
123
122
  listNodeType = _ref3.listNodeType,
124
123
  range = _ref3.range,
125
124
  hasLastItemExtension = _ref3.hasLastItemExtension;
126
- var listItemsSlice = tr.doc.slice(from, hasLastItemExtension && (0, _platformFeatureFlags.fg)('platform_editor_non_macros_list_indent_fix') ? to : to - 2);
125
+ var listItemsSlice = tr.doc.slice(from, hasLastItemExtension ? to : to - 2);
127
126
  var listFragment = _model.Fragment.from(listNodeType.create(null, listItemsSlice.content));
128
127
  var nonSelectedListItemsSlice = tr.doc.slice(to, range.end - 2);
129
128
  var openStart = tr.doc.slice(from - 1, range.end).openStart;
@@ -3,7 +3,6 @@ import { GapCursorSelection } from '@atlaskit/editor-common/selection';
3
3
  import { isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
4
4
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
5
5
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { findFirstParentListItemNode } from '../utils/find';
8
7
  export const indentListItemsSelected = tr => {
9
8
  var _currentListItem$cont;
@@ -123,7 +122,7 @@ const createIndentedListItemsSlice = ({
123
122
  range,
124
123
  hasLastItemExtension
125
124
  }) => {
126
- const listItemsSlice = tr.doc.slice(from, hasLastItemExtension && fg('platform_editor_non_macros_list_indent_fix') ? to : to - 2);
125
+ const listItemsSlice = tr.doc.slice(from, hasLastItemExtension ? to : to - 2);
127
126
  const listFragment = Fragment.from(listNodeType.create(null, listItemsSlice.content));
128
127
  const nonSelectedListItemsSlice = tr.doc.slice(to, range.end - 2);
129
128
  const openStart = tr.doc.slice(from - 1, range.end).openStart;
@@ -4,7 +4,6 @@ import { GapCursorSelection } from '@atlaskit/editor-common/selection';
4
4
  import { isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
5
5
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
6
6
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { findFirstParentListItemNode } from '../utils/find';
9
8
  export var indentListItemsSelected = function indentListItemsSelected(tr) {
10
9
  var _currentListItem$cont;
@@ -116,7 +115,7 @@ var createIndentedListItemsSlice = function createIndentedListItemsSlice(_ref3)
116
115
  listNodeType = _ref3.listNodeType,
117
116
  range = _ref3.range,
118
117
  hasLastItemExtension = _ref3.hasLastItemExtension;
119
- var listItemsSlice = tr.doc.slice(from, hasLastItemExtension && fg('platform_editor_non_macros_list_indent_fix') ? to : to - 2);
118
+ var listItemsSlice = tr.doc.slice(from, hasLastItemExtension ? to : to - 2);
120
119
  var listFragment = Fragment.from(listNodeType.create(null, listItemsSlice.content));
121
120
  var nonSelectedListItemsSlice = tr.doc.slice(to, range.end - 2);
122
121
  var openStart = tr.doc.slice(from - 1, range.end).openStart;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "4.2.8",
3
+ "version": "4.2.10",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^47.6.0",
35
- "@atlaskit/editor-common": "^106.5.0",
35
+ "@atlaskit/editor-common": "^106.9.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.4.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
41
- "@atlaskit/tmp-editor-statsig": "^6.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^7.1.0",
42
42
  "@babel/runtime": "^7.0.0"
43
43
  },
44
44
  "peerDependencies": {
@@ -84,9 +84,6 @@
84
84
  }
85
85
  },
86
86
  "platform-feature-flags": {
87
- "platform_editor_non_macros_list_indent_fix": {
88
- "type": "boolean"
89
- },
90
87
  "platform_editor_split_list_item_for_gap_cursor": {
91
88
  "type": "boolean"
92
89
  }