@atlaskit/editor-plugin-list 16.0.6 → 17.0.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 +12 -0
- package/compass.yml +2 -2
- package/dist/cjs/pm-plugins/actions/conversions.js +0 -1
- package/dist/cjs/pm-plugins/actions/indent-list-items-selected.js +0 -1
- package/dist/cjs/pm-plugins/actions/wrap-and-join-lists.js +1 -3
- package/dist/es2019/pm-plugins/actions/conversions.js +0 -1
- package/dist/es2019/pm-plugins/actions/indent-list-items-selected.js +0 -1
- package/dist/es2019/pm-plugins/actions/wrap-and-join-lists.js +1 -3
- package/dist/esm/pm-plugins/actions/conversions.js +0 -1
- package/dist/esm/pm-plugins/actions/indent-list-items-selected.js +0 -1
- package/dist/esm/pm-plugins/actions/wrap-and-join-lists.js +1 -3
- package/package.json +9 -14
package/CHANGELOG.md
CHANGED
package/compass.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
configVersion: 1
|
|
2
2
|
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/8e7fe9de-20e3-425e-9b64-4613db33b9ac
|
|
3
3
|
name: '@atlaskit/editor-plugin-list'
|
|
4
|
-
ownerId: ari:cloud:identity::team/
|
|
4
|
+
ownerId: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb # Editor Developers
|
|
5
5
|
labels:
|
|
6
6
|
- platform-code
|
|
7
7
|
- platform-afm
|
|
@@ -23,7 +23,7 @@ links:
|
|
|
23
23
|
customFields:
|
|
24
24
|
- name: Department
|
|
25
25
|
type: text
|
|
26
|
-
value:
|
|
26
|
+
value: Editor Developers
|
|
27
27
|
- name: Trusted Reviewer Teams
|
|
28
28
|
type: text
|
|
29
29
|
value: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb
|
|
@@ -137,7 +137,6 @@ var convertAroundList = function convertAroundList(_ref3) {
|
|
|
137
137
|
nextListNodeType = _ref3.nextListNodeType,
|
|
138
138
|
nodeRange = _ref3.nodeRange;
|
|
139
139
|
for (var i = nodeRange.endIndex - 1; i >= nodeRange.startIndex; i--) {
|
|
140
|
-
// @ts-ignore posAtIndex is a public API but has no type yet
|
|
141
140
|
var position = nodeRange.$from.posAtIndex(i, nodeRange.depth);
|
|
142
141
|
var resolvedPos = tr.doc.resolve(position + 1);
|
|
143
142
|
var range = resolvedPos.blockRange(resolvedPos);
|
|
@@ -36,7 +36,6 @@ var indentListItemsSelected = exports.indentListItemsSelected = function indentL
|
|
|
36
36
|
}
|
|
37
37
|
var resolvedPos = tr.doc.resolve(listItemsSelected.from.pos);
|
|
38
38
|
var listItemIndex = resolvedPos.index();
|
|
39
|
-
// @ts-ignore
|
|
40
39
|
var positionListItemPosition = resolvedPos.posAtIndex(listItemIndex - 1);
|
|
41
40
|
var currentListItemPosition = resolvedPos.posAtIndex(listItemIndex);
|
|
42
41
|
var previousListItem = tr.doc.nodeAt(positionListItemPosition);
|
|
@@ -46,9 +46,7 @@ function wrapInList(listType, attrs) {
|
|
|
46
46
|
return false;
|
|
47
47
|
}
|
|
48
48
|
// This is at the top of an existing list item
|
|
49
|
-
if (range.depth >= 2 &&
|
|
50
|
-
// @ts-ignore - missing type for compatibleContent
|
|
51
|
-
$from.node(range.depth - 1).type.compatibleContent(listType) && range.startIndex === 0) {
|
|
49
|
+
if (range.depth >= 2 && $from.node(range.depth - 1).type.compatibleContent(listType) && range.startIndex === 0) {
|
|
52
50
|
// Don't do anything if this is the top of the list
|
|
53
51
|
if ($from.index(range.depth - 1) === 0) {
|
|
54
52
|
return false;
|
|
@@ -144,7 +144,6 @@ const convertAroundList = ({
|
|
|
144
144
|
nodeRange
|
|
145
145
|
}) => {
|
|
146
146
|
for (let i = nodeRange.endIndex - 1; i >= nodeRange.startIndex; i--) {
|
|
147
|
-
// @ts-ignore posAtIndex is a public API but has no type yet
|
|
148
147
|
const position = nodeRange.$from.posAtIndex(i, nodeRange.depth);
|
|
149
148
|
const resolvedPos = tr.doc.resolve(position + 1);
|
|
150
149
|
const range = resolvedPos.blockRange(resolvedPos);
|
|
@@ -30,7 +30,6 @@ export const indentListItemsSelected = tr => {
|
|
|
30
30
|
}
|
|
31
31
|
const resolvedPos = tr.doc.resolve(listItemsSelected.from.pos);
|
|
32
32
|
const listItemIndex = resolvedPos.index();
|
|
33
|
-
// @ts-ignore
|
|
34
33
|
const positionListItemPosition = resolvedPos.posAtIndex(listItemIndex - 1);
|
|
35
34
|
const currentListItemPosition = resolvedPos.posAtIndex(listItemIndex);
|
|
36
35
|
const previousListItem = tr.doc.nodeAt(positionListItemPosition);
|
|
@@ -39,9 +39,7 @@ export function wrapInList(listType, attrs) {
|
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
41
|
// This is at the top of an existing list item
|
|
42
|
-
if (range.depth >= 2 &&
|
|
43
|
-
// @ts-ignore - missing type for compatibleContent
|
|
44
|
-
$from.node(range.depth - 1).type.compatibleContent(listType) && range.startIndex === 0) {
|
|
42
|
+
if (range.depth >= 2 && $from.node(range.depth - 1).type.compatibleContent(listType) && range.startIndex === 0) {
|
|
45
43
|
// Don't do anything if this is the top of the list
|
|
46
44
|
if ($from.index(range.depth - 1) === 0) {
|
|
47
45
|
return false;
|
|
@@ -131,7 +131,6 @@ var convertAroundList = function convertAroundList(_ref3) {
|
|
|
131
131
|
nextListNodeType = _ref3.nextListNodeType,
|
|
132
132
|
nodeRange = _ref3.nodeRange;
|
|
133
133
|
for (var i = nodeRange.endIndex - 1; i >= nodeRange.startIndex; i--) {
|
|
134
|
-
// @ts-ignore posAtIndex is a public API but has no type yet
|
|
135
134
|
var position = nodeRange.$from.posAtIndex(i, nodeRange.depth);
|
|
136
135
|
var resolvedPos = tr.doc.resolve(position + 1);
|
|
137
136
|
var range = resolvedPos.blockRange(resolvedPos);
|
|
@@ -29,7 +29,6 @@ export var indentListItemsSelected = function indentListItemsSelected(tr) {
|
|
|
29
29
|
}
|
|
30
30
|
var resolvedPos = tr.doc.resolve(listItemsSelected.from.pos);
|
|
31
31
|
var listItemIndex = resolvedPos.index();
|
|
32
|
-
// @ts-ignore
|
|
33
32
|
var positionListItemPosition = resolvedPos.posAtIndex(listItemIndex - 1);
|
|
34
33
|
var currentListItemPosition = resolvedPos.posAtIndex(listItemIndex);
|
|
35
34
|
var previousListItem = tr.doc.nodeAt(positionListItemPosition);
|
|
@@ -40,9 +40,7 @@ export function wrapInList(listType, attrs) {
|
|
|
40
40
|
return false;
|
|
41
41
|
}
|
|
42
42
|
// This is at the top of an existing list item
|
|
43
|
-
if (range.depth >= 2 &&
|
|
44
|
-
// @ts-ignore - missing type for compatibleContent
|
|
45
|
-
$from.node(range.depth - 1).type.compatibleContent(listType) && range.startIndex === 0) {
|
|
43
|
+
if (range.depth >= 2 && $from.node(range.depth - 1).type.compatibleContent(listType) && range.startIndex === 0) {
|
|
46
44
|
// Don't do anything if this is the top of the list
|
|
47
45
|
if ($from.index(range.depth - 1) === 0) {
|
|
48
46
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-list",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.1",
|
|
4
4
|
"description": "List plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-schema": "^
|
|
23
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
24
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
25
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
26
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
27
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
22
|
+
"@atlaskit/adf-schema": "^57.0.0",
|
|
23
|
+
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
24
|
+
"@atlaskit/editor-plugin-block-menu": "^14.0.0",
|
|
25
|
+
"@atlaskit/editor-plugin-feature-flags": "^14.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-toolbar": "^12.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^9.0.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
29
29
|
"@atlaskit/editor-toolbar": "^2.4.0",
|
|
30
30
|
"@atlaskit/editor-ui-control-model": "^2.6.0",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
34
34
|
"@atlaskit/prosemirror-history": "^1.1.0",
|
|
35
35
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^147.
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^147.1.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@atlaskit/editor-common": "^
|
|
40
|
+
"@atlaskit/editor-common": "^119.4.0",
|
|
41
41
|
"react": "^18.2.0 || ^19.2.0",
|
|
42
42
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
43
43
|
},
|
|
@@ -84,11 +84,6 @@
|
|
|
84
84
|
"type": "boolean"
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"stricter": {
|
|
88
|
-
"no-unused-dependencies": {
|
|
89
|
-
"checkDevDependencies": true
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
87
|
"devDependencies": {
|
|
93
88
|
"react": "^19.2.0",
|
|
94
89
|
"react-intl": "^7.0.0"
|