@atlaskit/editor-plugin-list 18.0.8 → 18.1.0

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
+ ## 18.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 18.0.9
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 18.0.8
4
21
 
5
22
  ### Patch Changes
@@ -13,7 +13,7 @@ var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
14
14
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
15
15
  var _fg = require("@atlaskit/platform-feature-flags/fg");
16
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
16
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
17
17
  var _commands = require("./pm-plugins/commands");
18
18
  var _indentList = require("./pm-plugins/commands/indent-list");
19
19
  var _outdentList2 = require("./pm-plugins/commands/outdent-list");
@@ -41,7 +41,7 @@ var listPlugin = exports.listPlugin = function listPlugin(_ref) {
41
41
  var api = _ref.api;
42
42
  var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
43
43
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
44
- if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
44
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
45
45
  var _api$blockMenu;
46
46
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents((0, _ui.getListComponents)(api));
47
47
  }
@@ -6,7 +6,7 @@ import { listMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { IconList, IconListNumber } from '@atlaskit/editor-common/quick-insert';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { fg } from '@atlaskit/platform-feature-flags/fg';
9
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
10
10
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
11
11
  import { indentList } from './pm-plugins/commands/indent-list';
12
12
  import { outdentList } from './pm-plugins/commands/outdent-list';
@@ -6,7 +6,7 @@ import { listMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { IconList, IconListNumber } from '@atlaskit/editor-common/quick-insert';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { fg } from '@atlaskit/platform-feature-flags/fg';
9
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
10
10
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
11
11
  import { indentList } from './pm-plugins/commands/indent-list';
12
12
  import { outdentList as _outdentList } from './pm-plugins/commands/outdent-list';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "18.0.8",
3
+ "version": "18.1.0",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,24 +20,24 @@
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
22
  "@atlaskit/adf-schema": "^57.2.0",
23
- "@atlaskit/editor-plugin-analytics": "^16.0.0",
23
+ "@atlaskit/editor-plugin-analytics": "^16.1.0",
24
24
  "@atlaskit/editor-plugin-block-menu": "^15.0.0",
25
- "@atlaskit/editor-plugin-feature-flags": "^15.0.0",
25
+ "@atlaskit/editor-plugin-feature-flags": "^15.1.0",
26
26
  "@atlaskit/editor-plugin-toolbar": "^13.0.0",
27
27
  "@atlaskit/editor-plugin-ui-control-registry": "^10.0.0",
28
28
  "@atlaskit/editor-prosemirror": "^8.0.0",
29
29
  "@atlaskit/editor-toolbar": "^2.6.0",
30
30
  "@atlaskit/editor-ui-control-model": "^2.9.0",
31
- "@atlaskit/icon": "^37.5.0",
31
+ "@atlaskit/icon": "^37.6.0",
32
32
  "@atlaskit/platform-feature-experiments": "^0.3.0",
33
- "@atlaskit/platform-feature-flags": "^2.1.0",
33
+ "@atlaskit/platform-feature-flags": "^2.2.0",
34
34
  "@atlaskit/prosemirror-history": "^1.2.0",
35
- "@atlaskit/prosemirror-input-rules": "^4.0.0",
36
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
35
+ "@atlaskit/prosemirror-input-rules": "^4.1.0",
36
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
37
37
  "@babel/runtime": "^7.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@atlaskit/editor-common": "^120.7.0",
40
+ "@atlaskit/editor-common": "^120.9.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
  },
package/report.api.md DELETED
@@ -1,116 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-plugin-list"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
20
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
21
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
22
- import type { EditorCommand } from '@atlaskit/editor-common/types';
23
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
24
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
25
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
26
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
27
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
28
- import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
29
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
30
-
31
- // @public (undocumented)
32
- export type FindRootParentListNode = ($pos: ResolvedPos) => ResolvedPos | null;
33
-
34
- // @public (undocumented)
35
- type IndentList = (inputMethod: InputMethod) => EditorCommand;
36
-
37
- // @public (undocumented)
38
- export type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
39
-
40
- // @public (undocumented)
41
- type InputMethod_2 = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
42
-
43
- // @public (undocumented)
44
- type IsInsideListItem = (tr: Transaction) => boolean;
45
-
46
- // @public (undocumented)
47
- export type ListPlugin = NextEditorPlugin<
48
- 'list',
49
- {
50
- pluginConfiguration: ListPluginOptions | undefined;
51
- dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>];
52
- actions: {
53
- isInsideListItem: IsInsideListItem;
54
- findRootParentListNode: FindRootParentListNode;
55
- };
56
- commands: {
57
- indentList: IndentList;
58
- outdentList: OutdentList;
59
- toggleOrderedList: ToggleOrderedList;
60
- toggleBulletList: ToggleBulletList;
61
- };
62
- sharedState: ListState | undefined;
63
- }
64
- >;
65
-
66
- // @public
67
- export const listPlugin: ListPlugin;
68
-
69
- // @public (undocumented)
70
- export type ListPluginOptions = Pick<FeatureFlags, 'restartNumberedLists'>;
71
-
72
- // @public (undocumented)
73
- export interface ListState {
74
- // (undocumented)
75
- bulletListActive: boolean;
76
- // (undocumented)
77
- bulletListDisabled: boolean;
78
- // (undocumented)
79
- decorationSet: DecorationSet;
80
- // (undocumented)
81
- orderedListActive: boolean;
82
- // (undocumented)
83
- orderedListDisabled: boolean;
84
- }
85
-
86
- // @public (undocumented)
87
- type OutdentList = (inputMethod: InputMethod) => EditorCommand;
88
-
89
- // @public (undocumented)
90
- type ToggleBulletList = (inputMethod: InputMethod) => EditorCommand;
91
-
92
- // @public (undocumented)
93
- export const toggleList: (
94
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
95
- ) => (inputMethod: InputMethod_2, listType: 'bulletList' | 'orderedList') => EditorCommand;
96
-
97
- // @public (undocumented)
98
- type ToggleOrderedList = (inputMethod: InputMethod) => EditorCommand;
99
-
100
- // (No @packageDocumentation comment for this package)
101
- ```
102
-
103
- <!--SECTION END: Main Entry Types-->
104
-
105
- ### Peer Dependencies
106
-
107
- <!--SECTION START: Peer Dependencies-->
108
-
109
- ```json
110
- {
111
- "react": "^16.8.0",
112
- "react-intl": "npm:react-intl@^5.18.1"
113
- }
114
- ```
115
-
116
- <!--SECTION END: Peer Dependencies-->