@atlaskit/editor-plugin-list 1.4.3 → 1.4.5

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,17 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 1.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246) [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) - ED-21371 Update adf-schema to 35.1.0
8
+
9
+ ## 1.4.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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.
14
+
3
15
  ## 1.4.3
4
16
 
5
17
  ### 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^35.0.0",
34
+ "@atlaskit/adf-schema": "^35.1.0",
35
35
  "@atlaskit/editor-common": "^76.26.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",