@atlaskit/editor-plugin-list 1.4.3 → 1.4.4
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,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 1.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#59963](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59963) [`37ba1559975c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37ba1559975c) - [ux] [ED-21459] Fix bug in restart numbered lists where additional list spacing for numbers above 100 is added to both ordered lists and unordered lists, where it should just apply to ordered lists.
|
|
8
|
+
|
|
3
9
|
## 1.4.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -55,7 +55,7 @@ var getDecorations = exports.getDecorations = function getDecorations(doc, state
|
|
|
55
55
|
decorations.push(_view.Decoration.node(from, to, {
|
|
56
56
|
'data-indent-level': "".concat(depth)
|
|
57
57
|
}));
|
|
58
|
-
if (featureFlags !== null && featureFlags !== void 0 && featureFlags.restartNumberedLists) {
|
|
58
|
+
if (featureFlags !== null && featureFlags !== void 0 && featureFlags.restartNumberedLists && node.type.name === 'orderedList') {
|
|
59
59
|
var _node$attrs;
|
|
60
60
|
// If a numbered list has item counters numbering >= 100, we'll need to add special
|
|
61
61
|
// spacing to account for the extra digit chars
|
|
@@ -45,7 +45,7 @@ export const getDecorations = (doc, state, featureFlags) => {
|
|
|
45
45
|
decorations.push(Decoration.node(from, to, {
|
|
46
46
|
'data-indent-level': `${depth}`
|
|
47
47
|
}));
|
|
48
|
-
if (featureFlags !== null && featureFlags !== void 0 && featureFlags.restartNumberedLists) {
|
|
48
|
+
if (featureFlags !== null && featureFlags !== void 0 && featureFlags.restartNumberedLists && node.type.name === 'orderedList') {
|
|
49
49
|
var _node$attrs;
|
|
50
50
|
// If a numbered list has item counters numbering >= 100, we'll need to add special
|
|
51
51
|
// spacing to account for the extra digit chars
|
|
@@ -48,7 +48,7 @@ export var getDecorations = function getDecorations(doc, state, featureFlags) {
|
|
|
48
48
|
decorations.push(Decoration.node(from, to, {
|
|
49
49
|
'data-indent-level': "".concat(depth)
|
|
50
50
|
}));
|
|
51
|
-
if (featureFlags !== null && featureFlags !== void 0 && featureFlags.restartNumberedLists) {
|
|
51
|
+
if (featureFlags !== null && featureFlags !== void 0 && featureFlags.restartNumberedLists && node.type.name === 'orderedList') {
|
|
52
52
|
var _node$attrs;
|
|
53
53
|
// If a numbered list has item counters numbering >= 100, we'll need to add special
|
|
54
54
|
// spacing to account for the extra digit chars
|