@atlaskit/editor-plugin-list 3.3.2 → 3.3.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-list
2
2
 
3
+ ## 3.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#104728](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104728)
8
+ [`cbeeba0c2bf3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbeeba0c2bf3) -
9
+ [ux] HOT-109442: turn off processNestedTaskListsInSameLevel() to prevent data loss (but brings
10
+ back ED-21943)
11
+
3
12
  ## 3.3.2
4
13
 
5
14
  ### Patch Changes
@@ -68,7 +68,8 @@ var outdentListItemsSelected = exports.outdentListItemsSelected = function outde
68
68
  hasNormalizedFromPositionLiftedOut: hasNormalizedFromPositionLiftedOut
69
69
  });
70
70
  tr.setSelection(nextSelection);
71
- (0, _lists.processNestedTaskListsInSameLevel)(tr);
71
+
72
+ // processNestedTaskListsInSameLevel(tr);
72
73
  (0, _lists.joinSiblingLists)({
73
74
  tr: tr,
74
75
  direction: _lists.JoinDirection.RIGHT
@@ -1,5 +1,7 @@
1
1
  import { OUTDENT_SCENARIOS } from '@atlaskit/editor-common/analytics';
2
- import { JoinDirection, joinSiblingLists, normalizeListItemsSelection, processNestedTaskListsInSameLevel } from '@atlaskit/editor-common/lists';
2
+ import { JoinDirection, joinSiblingLists, normalizeListItemsSelection
3
+ // processNestedTaskListsInSameLevel,
4
+ } from '@atlaskit/editor-common/lists';
3
5
  import { GapCursorSelection } from '@atlaskit/editor-common/selection';
4
6
  import { getOrderFromOrderedListNode, isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
5
7
  import { Fragment, NodeRange, Slice } from '@atlaskit/editor-prosemirror/model';
@@ -60,7 +62,8 @@ export const outdentListItemsSelected = tr => {
60
62
  hasNormalizedFromPositionLiftedOut
61
63
  });
62
64
  tr.setSelection(nextSelection);
63
- processNestedTaskListsInSameLevel(tr);
65
+
66
+ // processNestedTaskListsInSameLevel(tr);
64
67
  joinSiblingLists({
65
68
  tr,
66
69
  direction: JoinDirection.RIGHT
@@ -2,7 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
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; }
3
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; }
4
4
  import { OUTDENT_SCENARIOS } from '@atlaskit/editor-common/analytics';
5
- import { JoinDirection, joinSiblingLists, normalizeListItemsSelection, processNestedTaskListsInSameLevel } from '@atlaskit/editor-common/lists';
5
+ import { JoinDirection, joinSiblingLists, normalizeListItemsSelection
6
+ // processNestedTaskListsInSameLevel,
7
+ } from '@atlaskit/editor-common/lists';
6
8
  import { GapCursorSelection } from '@atlaskit/editor-common/selection';
7
9
  import { getOrderFromOrderedListNode, isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
8
10
  import { Fragment, NodeRange, Slice } from '@atlaskit/editor-prosemirror/model';
@@ -61,7 +63,8 @@ export var outdentListItemsSelected = function outdentListItemsSelected(tr) {
61
63
  hasNormalizedFromPositionLiftedOut: hasNormalizedFromPositionLiftedOut
62
64
  });
63
65
  tr.setSelection(nextSelection);
64
- processNestedTaskListsInSameLevel(tr);
66
+
67
+ // processNestedTaskListsInSameLevel(tr);
65
68
  joinSiblingLists({
66
69
  tr: tr,
67
70
  direction: JoinDirection.RIGHT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^36.10.7",
36
- "@atlaskit/editor-common": "^81.0.0",
36
+ "@atlaskit/editor-common": "^81.1.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
38
  "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
39
39
  "@atlaskit/editor-prosemirror": "4.0.1",