@atlaskit/editor-plugin-list 1.1.0 → 1.1.2
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 +12 -0
- package/dist/types/types.d.ts +3 -6
- package/dist/types-ts4.5/types.d.ts +4 -4
- package/package.json +3 -4
- package/report.api.md +3 -6
- package/tmp/api-report-tmp.d.ts +0 -81
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`67971a65d80`](https://bitbucket.org/atlassian/atlassian-frontend/commits/67971a65d80) - use fixed version for adf-schema
|
|
8
|
+
|
|
9
|
+
## 1.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added atlaskit docs to all existing plugins.
|
|
14
|
+
|
|
3
15
|
## 1.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EditorCommand, FeatureFlags, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type {
|
|
4
|
-
import type
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
5
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -23,10 +23,7 @@ export interface ListState {
|
|
|
23
23
|
}
|
|
24
24
|
export type ListPlugin = NextEditorPlugin<'list', {
|
|
25
25
|
pluginConfiguration: ListPluginOptions | undefined;
|
|
26
|
-
dependencies: [
|
|
27
|
-
typeof featureFlagsPlugin,
|
|
28
|
-
OptionalPlugin<typeof analyticsPlugin>
|
|
29
|
-
];
|
|
26
|
+
dependencies: [FeatureFlagsPlugin, OptionalPlugin<AnalyticsPlugin>];
|
|
30
27
|
actions: {
|
|
31
28
|
isInsideListItem: IsInsideListItem;
|
|
32
29
|
findRootParentListNode: FindRootParentListNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EditorCommand, FeatureFlags, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type {
|
|
4
|
-
import type
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
5
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -24,8 +24,8 @@ export interface ListState {
|
|
|
24
24
|
export type ListPlugin = NextEditorPlugin<'list', {
|
|
25
25
|
pluginConfiguration: ListPluginOptions | undefined;
|
|
26
26
|
dependencies: [
|
|
27
|
-
|
|
28
|
-
OptionalPlugin<
|
|
27
|
+
FeatureFlagsPlugin,
|
|
28
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
29
29
|
];
|
|
30
30
|
actions: {
|
|
31
31
|
isInsideListItem: IsInsideListItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-list",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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": "
|
|
35
|
-
"@atlaskit/editor-common": "^74.
|
|
34
|
+
"@atlaskit/adf-schema": "28.1.2",
|
|
35
|
+
"@atlaskit/editor-common": "^74.52.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^0.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@af/visual-regression": "*",
|
|
48
|
-
"@atlaskit/editor-test-helpers": "^18.11.0",
|
|
49
48
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
50
49
|
"@testing-library/react": "^12.1.5",
|
|
51
50
|
"react-dom": "^16.8.0",
|
package/report.api.md
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<!--SECTION START: Main Entry Types-->
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
-
import type {
|
|
18
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
19
19
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
20
20
|
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
21
21
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
22
|
-
import type
|
|
22
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
23
23
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
24
24
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
25
25
|
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
@@ -43,10 +43,7 @@ export type ListPlugin = NextEditorPlugin<
|
|
|
43
43
|
'list',
|
|
44
44
|
{
|
|
45
45
|
pluginConfiguration: ListPluginOptions | undefined;
|
|
46
|
-
dependencies: [
|
|
47
|
-
typeof featureFlagsPlugin,
|
|
48
|
-
OptionalPlugin<typeof analyticsPlugin>,
|
|
49
|
-
];
|
|
46
|
+
dependencies: [FeatureFlagsPlugin, OptionalPlugin<AnalyticsPlugin>];
|
|
50
47
|
actions: {
|
|
51
48
|
isInsideListItem: IsInsideListItem;
|
|
52
49
|
findRootParentListNode: FindRootParentListNode;
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,81 +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 { EditorCommand } from '@atlaskit/editor-common/types';
|
|
10
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
11
|
-
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
12
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
13
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
14
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
15
|
-
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
16
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
17
|
-
|
|
18
|
-
// @public (undocumented)
|
|
19
|
-
export type FindRootParentListNode = ($pos: ResolvedPos) => ResolvedPos | null;
|
|
20
|
-
|
|
21
|
-
// @public (undocumented)
|
|
22
|
-
type IndentList = (inputMethod: InputMethod) => EditorCommand;
|
|
23
|
-
|
|
24
|
-
// @public (undocumented)
|
|
25
|
-
export type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
26
|
-
|
|
27
|
-
// @public (undocumented)
|
|
28
|
-
type IsInsideListItem = (tr: Transaction) => boolean;
|
|
29
|
-
|
|
30
|
-
// @public (undocumented)
|
|
31
|
-
export type ListPlugin = NextEditorPlugin<'list', {
|
|
32
|
-
pluginConfiguration: ListPluginOptions | undefined;
|
|
33
|
-
dependencies: [
|
|
34
|
-
typeof featureFlagsPlugin,
|
|
35
|
-
OptionalPlugin<typeof analyticsPlugin>
|
|
36
|
-
];
|
|
37
|
-
actions: {
|
|
38
|
-
isInsideListItem: IsInsideListItem;
|
|
39
|
-
findRootParentListNode: FindRootParentListNode;
|
|
40
|
-
};
|
|
41
|
-
commands: {
|
|
42
|
-
indentList: IndentList;
|
|
43
|
-
outdentList: OutdentList;
|
|
44
|
-
toggleOrderedList: ToggleOrderedList;
|
|
45
|
-
toggleBulletList: ToggleBulletList;
|
|
46
|
-
};
|
|
47
|
-
sharedState: ListState | undefined;
|
|
48
|
-
}>;
|
|
49
|
-
|
|
50
|
-
// @public (undocumented)
|
|
51
|
-
export const listPlugin: ListPlugin;
|
|
52
|
-
|
|
53
|
-
// @public (undocumented)
|
|
54
|
-
export type ListPluginOptions = Pick<FeatureFlags, 'restartNumberedLists'>;
|
|
55
|
-
|
|
56
|
-
// @public (undocumented)
|
|
57
|
-
export interface ListState {
|
|
58
|
-
// (undocumented)
|
|
59
|
-
bulletListActive: boolean;
|
|
60
|
-
// (undocumented)
|
|
61
|
-
bulletListDisabled: boolean;
|
|
62
|
-
// (undocumented)
|
|
63
|
-
decorationSet: DecorationSet;
|
|
64
|
-
// (undocumented)
|
|
65
|
-
orderedListActive: boolean;
|
|
66
|
-
// (undocumented)
|
|
67
|
-
orderedListDisabled: boolean;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// @public (undocumented)
|
|
71
|
-
type OutdentList = (inputMethod: InputMethod) => EditorCommand;
|
|
72
|
-
|
|
73
|
-
// @public (undocumented)
|
|
74
|
-
type ToggleBulletList = (inputMethod: InputMethod) => EditorCommand;
|
|
75
|
-
|
|
76
|
-
// @public (undocumented)
|
|
77
|
-
type ToggleOrderedList = (inputMethod: InputMethod) => EditorCommand;
|
|
78
|
-
|
|
79
|
-
// (No @packageDocumentation comment for this package)
|
|
80
|
-
|
|
81
|
-
```
|