@atlaskit/editor-plugin-list 1.3.5 → 1.3.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,37 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 1.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790) [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) - ED-21266: Updated @atlaskit/adf-schema to 34.0.1
8
+
9
+ ## 1.3.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646) [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make feature flags plugin optional in all plugins including:
14
+
15
+ - analytics
16
+ - base
17
+ - card
18
+ - code-block
19
+ - expand
20
+ - extension
21
+ - floating-toolbar
22
+ - hyperlink
23
+ - insert-block
24
+ - layout
25
+ - layout
26
+ - list
27
+ - media
28
+ - paste
29
+ - rule
30
+ - table
31
+ - tasks-and-decisions
32
+
33
+ We already treat it as optional in the plugins, so this is just ensuring that the plugin is not mandatory to be added to the preset.
34
+
3
35
  ## 1.3.5
4
36
 
5
37
  ### Patch Changes
@@ -27,10 +27,10 @@ var _selection = require("./utils/selection");
27
27
  * from `@atlaskit/editor-core`.
28
28
  */
29
29
  var listPlugin = exports.listPlugin = function listPlugin(_ref) {
30
- var _api$analytics;
30
+ var _api$featureFlags, _api$analytics;
31
31
  var options = _ref.config,
32
32
  api = _ref.api;
33
- var featureFlags = (api === null || api === void 0 ? void 0 : api.featureFlags.sharedState.currentState()) || {};
33
+ var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
34
34
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
35
35
  return {
36
36
  name: 'list',
@@ -24,8 +24,8 @@ export const listPlugin = ({
24
24
  config: options,
25
25
  api
26
26
  }) => {
27
- var _api$analytics;
28
- const featureFlags = (api === null || api === void 0 ? void 0 : api.featureFlags.sharedState.currentState()) || {};
27
+ var _api$featureFlags, _api$analytics;
28
+ const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
29
29
  const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
30
30
  return {
31
31
  name: 'list',
@@ -21,10 +21,10 @@ import { isInsideListItem } from './utils/selection';
21
21
  * from `@atlaskit/editor-core`.
22
22
  */
23
23
  export var listPlugin = function listPlugin(_ref) {
24
- var _api$analytics;
24
+ var _api$featureFlags, _api$analytics;
25
25
  var options = _ref.config,
26
26
  api = _ref.api;
27
- var featureFlags = (api === null || api === void 0 ? void 0 : api.featureFlags.sharedState.currentState()) || {};
27
+ var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
28
28
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
29
29
  return {
30
30
  name: 'list',
@@ -23,7 +23,10 @@ export interface ListState {
23
23
  }
24
24
  export type ListPlugin = NextEditorPlugin<'list', {
25
25
  pluginConfiguration: ListPluginOptions | undefined;
26
- dependencies: [FeatureFlagsPlugin, OptionalPlugin<AnalyticsPlugin>];
26
+ dependencies: [
27
+ OptionalPlugin<FeatureFlagsPlugin>,
28
+ OptionalPlugin<AnalyticsPlugin>
29
+ ];
27
30
  actions: {
28
31
  isInsideListItem: IsInsideListItem;
29
32
  findRootParentListNode: FindRootParentListNode;
@@ -24,7 +24,7 @@ export interface ListState {
24
24
  export type ListPlugin = NextEditorPlugin<'list', {
25
25
  pluginConfiguration: ListPluginOptions | undefined;
26
26
  dependencies: [
27
- FeatureFlagsPlugin,
27
+ OptionalPlugin<FeatureFlagsPlugin>,
28
28
  OptionalPlugin<AnalyticsPlugin>
29
29
  ];
30
30
  actions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,8 +31,8 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^34.0.0",
35
- "@atlaskit/editor-common": "^76.22.0",
34
+ "@atlaskit/adf-schema": "^34.0.1",
35
+ "@atlaskit/editor-common": "^76.23.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^0.3.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
38
38
  "@atlaskit/editor-prosemirror": "1.1.0",
package/report.api.md CHANGED
@@ -47,7 +47,10 @@ export type ListPlugin = NextEditorPlugin<
47
47
  'list',
48
48
  {
49
49
  pluginConfiguration: ListPluginOptions | undefined;
50
- dependencies: [FeatureFlagsPlugin, OptionalPlugin<AnalyticsPlugin>];
50
+ dependencies: [
51
+ OptionalPlugin<FeatureFlagsPlugin>,
52
+ OptionalPlugin<AnalyticsPlugin>,
53
+ ];
51
54
  actions: {
52
55
  isInsideListItem: IsInsideListItem;
53
56
  findRootParentListNode: FindRootParentListNode;
@@ -1,85 +0,0 @@
1
- ## API Report File for "@atlaskit/editor-plugin-list"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
8
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
9
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
10
- import type { EditorCommand } from '@atlaskit/editor-common/types';
11
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
12
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
13
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
14
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
15
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
16
- import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
17
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
18
-
19
- // @public (undocumented)
20
- export type FindRootParentListNode = ($pos: ResolvedPos) => ResolvedPos | null;
21
-
22
- // @public (undocumented)
23
- type IndentList = (inputMethod: InputMethod) => EditorCommand;
24
-
25
- // @public (undocumented)
26
- export type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
27
-
28
- // @public (undocumented)
29
- type InputMethod_2 = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
30
-
31
- // @public (undocumented)
32
- type IsInsideListItem = (tr: Transaction) => boolean;
33
-
34
- // @public (undocumented)
35
- export type ListPlugin = NextEditorPlugin<'list', {
36
- pluginConfiguration: ListPluginOptions | undefined;
37
- dependencies: [FeatureFlagsPlugin, OptionalPlugin<AnalyticsPlugin>];
38
- actions: {
39
- isInsideListItem: IsInsideListItem;
40
- findRootParentListNode: FindRootParentListNode;
41
- };
42
- commands: {
43
- indentList: IndentList;
44
- outdentList: OutdentList;
45
- toggleOrderedList: ToggleOrderedList;
46
- toggleBulletList: ToggleBulletList;
47
- };
48
- sharedState: ListState | undefined;
49
- }>;
50
-
51
- // @public
52
- export const listPlugin: ListPlugin;
53
-
54
- // @public (undocumented)
55
- export type ListPluginOptions = Pick<FeatureFlags, 'restartNumberedLists'>;
56
-
57
- // @public (undocumented)
58
- export interface ListState {
59
- // (undocumented)
60
- bulletListActive: boolean;
61
- // (undocumented)
62
- bulletListDisabled: boolean;
63
- // (undocumented)
64
- decorationSet: DecorationSet;
65
- // (undocumented)
66
- orderedListActive: boolean;
67
- // (undocumented)
68
- orderedListDisabled: boolean;
69
- }
70
-
71
- // @public (undocumented)
72
- type OutdentList = (inputMethod: InputMethod) => EditorCommand;
73
-
74
- // @public (undocumented)
75
- type ToggleBulletList = (inputMethod: InputMethod) => EditorCommand;
76
-
77
- // @public (undocumented)
78
- export const toggleList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: InputMethod_2, listType: 'bulletList' | 'orderedList') => EditorCommand;
79
-
80
- // @public (undocumented)
81
- type ToggleOrderedList = (inputMethod: InputMethod) => EditorCommand;
82
-
83
- // (No @packageDocumentation comment for this package)
84
-
85
- ```