@atlaskit/editor-plugin-list 8.0.8 → 8.1.1
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 +17 -0
- package/dist/cjs/pm-plugins/commands/indent-list.js +2 -2
- package/dist/cjs/pm-plugins/commands/outdent-list.js +2 -2
- package/dist/es2019/pm-plugins/commands/indent-list.js +1 -1
- package/dist/es2019/pm-plugins/commands/outdent-list.js +1 -1
- package/dist/esm/pm-plugins/commands/indent-list.js +1 -1
- package/dist/esm/pm-plugins/commands/outdent-list.js +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 8.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`0ac75e0d28c72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ac75e0d28c72) -
|
|
14
|
+
Migrate @atlaskit/editor-prosemirror/history to @atlaskit/prosemirror-history package
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.0.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
10
10
|
var _lists = require("@atlaskit/editor-common/lists");
|
|
11
11
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
|
-
var
|
|
13
|
+
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
14
14
|
var _types = require("../../types");
|
|
15
15
|
var _indentListItemsSelected = require("../actions/indent-list-items-selected");
|
|
16
16
|
var _find = require("../utils/find");
|
|
@@ -30,7 +30,7 @@ var indentList = exports.indentList = function indentList(editorAnalyticsAPI) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// Save the history, so it could undo/revert to the same state before the indent, see https://product-fabric.atlassian.net/browse/ED-14753
|
|
33
|
-
(0,
|
|
33
|
+
(0, _prosemirrorHistory.closeHistory)(tr);
|
|
34
34
|
var firstListItemSelectedAttributes = (0, _lists.getListItemAttributes)($from);
|
|
35
35
|
var parentListNode = (0, _find.findFirstParentListNode)($from);
|
|
36
36
|
if (!parentListNode || firstListItemSelectedAttributes && firstListItemSelectedAttributes.indentLevel === 0 && firstListItemSelectedAttributes.itemIndex === 0) {
|
|
@@ -10,7 +10,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
10
10
|
var _lists = require("@atlaskit/editor-common/lists");
|
|
11
11
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
|
-
var
|
|
13
|
+
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
14
14
|
var _outdentListItemsSelected = require("../actions/outdent-list-items-selected");
|
|
15
15
|
var _analytics2 = require("../utils/analytics");
|
|
16
16
|
var _find = require("../utils/find");
|
|
@@ -33,7 +33,7 @@ var outdentList = exports.outdentList = function outdentList(editorAnalyticsAPI)
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Save the history, so it could undo/revert to the same state before the outdent, see https://product-fabric.atlassian.net/browse/ED-14753
|
|
36
|
-
(0,
|
|
36
|
+
(0, _prosemirrorHistory.closeHistory)(tr);
|
|
37
37
|
var actionSubjectId = (0, _utils.isBulletList)(parentListNode.node) ? _analytics.ACTION_SUBJECT_ID.FORMAT_LIST_BULLET : _analytics.ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER;
|
|
38
38
|
var customTr = tr;
|
|
39
39
|
(0, _outdentListItemsSelected.outdentListItemsSelected)(customTr);
|
|
@@ -2,7 +2,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
|
|
|
2
2
|
import { getCommonListAnalyticsAttributes, getListItemAttributes, hasValidListIndentationLevel } from '@atlaskit/editor-common/lists';
|
|
3
3
|
import { PassiveTransaction } from '@atlaskit/editor-common/preset';
|
|
4
4
|
import { isBulletList } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { closeHistory } from '@atlaskit/
|
|
5
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
6
6
|
import { MAX_NESTED_LIST_INDENTATION } from '../../types';
|
|
7
7
|
import { indentListItemsSelected as indentListAction } from '../actions/indent-list-items-selected';
|
|
8
8
|
import { findFirstParentListNode } from '../utils/find';
|
|
@@ -2,7 +2,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, OU
|
|
|
2
2
|
import { getCommonListAnalyticsAttributes } from '@atlaskit/editor-common/lists';
|
|
3
3
|
import { PassiveTransaction } from '@atlaskit/editor-common/preset';
|
|
4
4
|
import { isBulletList } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { closeHistory } from '@atlaskit/
|
|
5
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
6
6
|
import { outdentListItemsSelected as outdentListAction } from '../actions/outdent-list-items-selected';
|
|
7
7
|
import { getRestartListsAttributes } from '../utils/analytics';
|
|
8
8
|
import { findFirstParentListNode } from '../utils/find';
|
|
@@ -5,7 +5,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
|
|
|
5
5
|
import { getCommonListAnalyticsAttributes, getListItemAttributes, hasValidListIndentationLevel } from '@atlaskit/editor-common/lists';
|
|
6
6
|
import { PassiveTransaction } from '@atlaskit/editor-common/preset';
|
|
7
7
|
import { isBulletList } from '@atlaskit/editor-common/utils';
|
|
8
|
-
import { closeHistory } from '@atlaskit/
|
|
8
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
9
9
|
import { MAX_NESTED_LIST_INDENTATION } from '../../types';
|
|
10
10
|
import { indentListItemsSelected as indentListAction } from '../actions/indent-list-items-selected';
|
|
11
11
|
import { findFirstParentListNode } from '../utils/find';
|
|
@@ -5,7 +5,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, OU
|
|
|
5
5
|
import { getCommonListAnalyticsAttributes } from '@atlaskit/editor-common/lists';
|
|
6
6
|
import { PassiveTransaction } from '@atlaskit/editor-common/preset';
|
|
7
7
|
import { isBulletList } from '@atlaskit/editor-common/utils';
|
|
8
|
-
import { closeHistory } from '@atlaskit/
|
|
8
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
9
9
|
import { outdentListItemsSelected as outdentListAction } from '../actions/outdent-list-items-selected';
|
|
10
10
|
import { getRestartListsAttributes } from '../utils/analytics';
|
|
11
11
|
import { findFirstParentListNode } from '../utils/find';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-list",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "List plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,15 +32,16 @@
|
|
|
32
32
|
"@atlaskit/editor-plugin-block-menu": "^4.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
35
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
36
|
-
"@atlaskit/icon": "^28.
|
|
35
|
+
"@atlaskit/editor-toolbar": "^0.15.0",
|
|
36
|
+
"@atlaskit/icon": "^28.5.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
|
-
"@atlaskit/prosemirror-
|
|
39
|
-
"@atlaskit/
|
|
38
|
+
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
39
|
+
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^13.8.0",
|
|
40
41
|
"@babel/runtime": "^7.0.0"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
|
-
"@atlaskit/editor-common": "^110.
|
|
44
|
+
"@atlaskit/editor-common": "^110.10.0",
|
|
44
45
|
"react": "^18.2.0",
|
|
45
46
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
46
47
|
},
|