@atlaskit/editor-plugin-list 1.4.6 → 1.4.7

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,12 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 1.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#60973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60973) [`0d9d4d239318`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0d9d4d239318) - [ux] [ED-21530] Fix bug in list styling where unordered and ordered lists have different left padding when restart numbered lists feature flag is enabled
8
+ - Updated dependencies
9
+
3
10
  ## 1.4.6
4
11
 
5
12
  ### Patch Changes
@@ -63,7 +63,7 @@ var getDecorations = exports.getDecorations = function getDecorations(doc, state
63
63
  itemsCount: node === null || node === void 0 ? void 0 : node.childCount,
64
64
  order: node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.order
65
65
  });
66
- if (digitsSize) {
66
+ if (digitsSize && digitsSize > 2) {
67
67
  decorations.push(_view.Decoration.node(from, to, {
68
68
  style: (0, _styles.getOrderedListInlineStyles)(digitsSize, 'string')
69
69
  }));
@@ -53,7 +53,7 @@ export const getDecorations = (doc, state, featureFlags) => {
53
53
  itemsCount: node === null || node === void 0 ? void 0 : node.childCount,
54
54
  order: node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.order
55
55
  });
56
- if (digitsSize) {
56
+ if (digitsSize && digitsSize > 2) {
57
57
  decorations.push(Decoration.node(from, to, {
58
58
  style: getOrderedListInlineStyles(digitsSize, 'string')
59
59
  }));
@@ -56,7 +56,7 @@ export var getDecorations = function getDecorations(doc, state, featureFlags) {
56
56
  itemsCount: node === null || node === void 0 ? void 0 : node.childCount,
57
57
  order: node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.order
58
58
  });
59
- if (digitsSize) {
59
+ if (digitsSize && digitsSize > 2) {
60
60
  decorations.push(Decoration.node(from, to, {
61
61
  style: getOrderedListInlineStyles(digitsSize, 'string')
62
62
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^35.1.1",
35
- "@atlaskit/editor-common": "^76.26.0",
35
+ "@atlaskit/editor-common": "^76.27.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
38
38
  "@atlaskit/editor-prosemirror": "1.1.0",