@atlaskit/editor-plugin-list 5.1.1 → 5.1.3

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,22 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 5.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3fff102f55da9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3fff102f55da9) -
8
+ Cleanup FG platform_editor_ol_padding_fix
9
+ - Updated dependencies
10
+
11
+ ## 5.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#195649](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195649)
16
+ [`231bb33e06dfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/231bb33e06dfe) -
17
+ EDITOR-1131 Bump adf-schema version to 50.2.0
18
+ - Updated dependencies
19
+
3
20
  ## 5.1.1
4
21
 
5
22
  ### Patch Changes
@@ -13,7 +13,6 @@ var _utils = require("@atlaskit/editor-common/utils");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
14
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
15
15
  var _view = require("@atlaskit/editor-prosemirror/view");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _selection2 = require("./utils/selection");
18
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -64,7 +63,7 @@ var getDecorations = exports.getDecorations = function getDecorations(doc, state
64
63
  itemsCount: node === null || node === void 0 ? void 0 : node.childCount,
65
64
  order: node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.order
66
65
  });
67
- if (digitsSize && digitsSize > ((0, _platformFeatureFlags.fg)('platform_editor_ol_padding_fix') ? 1 : 2)) {
66
+ if (digitsSize && digitsSize > 1) {
68
67
  decorations.push(_view.Decoration.node(from, to, {
69
68
  style: (0, _styles.getOrderedListInlineStyles)(digitsSize, 'string')
70
69
  }));
@@ -5,7 +5,6 @@ import { getItemCounterDigitsSize, isListNode, pluginFactory } from '@atlaskit/e
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
6
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
7
7
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { isWrappingPossible } from './utils/selection';
10
9
  const listPluginKey = new PluginKey('listPlugin');
11
10
  export const pluginKey = listPluginKey;
@@ -54,7 +53,7 @@ export const getDecorations = (doc, state, featureFlags) => {
54
53
  itemsCount: node === null || node === void 0 ? void 0 : node.childCount,
55
54
  order: node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.order
56
55
  });
57
- if (digitsSize && digitsSize > (fg('platform_editor_ol_padding_fix') ? 1 : 2)) {
56
+ if (digitsSize && digitsSize > 1) {
58
57
  decorations.push(Decoration.node(from, to, {
59
58
  style: getOrderedListInlineStyles(digitsSize, 'string')
60
59
  }));
@@ -8,7 +8,6 @@ import { getItemCounterDigitsSize, isListNode, pluginFactory } from '@atlaskit/e
8
8
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
9
9
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
10
10
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { isWrappingPossible } from './utils/selection';
13
12
  var listPluginKey = new PluginKey('listPlugin');
14
13
  export var pluginKey = listPluginKey;
@@ -57,7 +56,7 @@ export var getDecorations = function getDecorations(doc, state, featureFlags) {
57
56
  itemsCount: node === null || node === void 0 ? void 0 : node.childCount,
58
57
  order: node === null || node === void 0 || (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.order
59
58
  });
60
- if (digitsSize && digitsSize > (fg('platform_editor_ol_padding_fix') ? 1 : 2)) {
59
+ if (digitsSize && digitsSize > 1) {
61
60
  decorations.push(Decoration.node(from, to, {
62
61
  style: getOrderedListInlineStyles(digitsSize, 'string')
63
62
  }));
@@ -7,6 +7,6 @@ export declare const enterKeyCommand: (editorAnalyticsAPI: EditorAnalyticsAPI |
7
7
  export declare const backspaceKeyCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => () => Command;
8
8
  export declare const deleteKeyCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
9
9
  export declare const rootListDepth: (pos: ResolvedPos, nodes: Record<string, NodeType>) => number | undefined;
10
- export declare const toggleList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: InputMethod, listType: 'bulletList' | 'orderedList') => EditorCommand;
10
+ export declare const toggleList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: InputMethod, listType: "bulletList" | "orderedList") => EditorCommand;
11
11
  export declare const toggleBulletList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: InputMethod) => EditorCommand;
12
12
  export declare const toggleOrderedList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: InputMethod) => EditorCommand;
@@ -7,6 +7,6 @@ export declare const enterKeyCommand: (editorAnalyticsAPI: EditorAnalyticsAPI |
7
7
  export declare const backspaceKeyCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => () => Command;
8
8
  export declare const deleteKeyCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
9
9
  export declare const rootListDepth: (pos: ResolvedPos, nodes: Record<string, NodeType>) => number | undefined;
10
- export declare const toggleList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: InputMethod, listType: 'bulletList' | 'orderedList') => EditorCommand;
10
+ export declare const toggleList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: InputMethod, listType: "bulletList" | "orderedList") => EditorCommand;
11
11
  export declare const toggleBulletList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: InputMethod) => EditorCommand;
12
12
  export declare const toggleOrderedList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: InputMethod) => EditorCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "5.1.1",
3
+ "version": "5.1.3",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,23 +30,20 @@
30
30
  ".": "./src/index.ts"
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/adf-schema": "^50.0.1",
33
+ "@atlaskit/adf-schema": "^50.2.0",
34
34
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
35
35
  "@atlaskit/editor-plugin-feature-flags": "^2.0.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/platform-feature-flags": "^1.1.0",
38
- "@atlaskit/prosemirror-input-rules": "^3.3.0",
39
- "@atlaskit/tmp-editor-statsig": "^9.17.0",
38
+ "@atlaskit/prosemirror-input-rules": "^3.4.0",
39
+ "@atlaskit/tmp-editor-statsig": "^9.29.0",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@atlaskit/editor-common": "^107.12.0",
43
+ "@atlaskit/editor-common": "^107.24.0",
44
44
  "react": "^18.2.0",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"
46
46
  },
47
- "devDependencies": {
48
- "typescript": "~5.4.2"
49
- },
50
47
  "techstack": {
51
48
  "@atlassian/frontend": {
52
49
  "code-structure": [
@@ -85,9 +82,6 @@
85
82
  "platform-feature-flags": {
86
83
  "platform_editor_split_list_item_for_gap_cursor": {
87
84
  "type": "boolean"
88
- },
89
- "platform_editor_ol_padding_fix": {
90
- "type": "boolean"
91
85
  }
92
86
  },
93
87
  "stricter": {