@atlaskit/editor-plugin-list 3.3.3 → 3.4.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/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -3,5 +3,5 @@ type MergeNextListAtPositionProps = {
3
3
  listPosition: number;
4
4
  tr: Transaction;
5
5
  };
6
- export declare function mergeNextListAtPosition({ tr, listPosition, }: MergeNextListAtPositionProps): void;
6
+ export declare function mergeNextListAtPosition({ tr, listPosition }: MergeNextListAtPositionProps): void;
7
7
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  expression: RegExp;
6
6
  editorAnalyticsApi: EditorAnalyticsAPI | undefined;
7
7
  };
8
- export declare function createRuleForListType({ listType, expression, editorAnalyticsApi, }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
8
+ export declare function createRuleForListType({ listType, expression, editorAnalyticsApi }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
9
9
  export {};
@@ -21,10 +21,7 @@ export interface ListState {
21
21
  decorationSet: DecorationSet;
22
22
  }
23
23
  export type ListPlugin = NextEditorPlugin<'list', {
24
- dependencies: [
25
- OptionalPlugin<FeatureFlagsPlugin>,
26
- OptionalPlugin<AnalyticsPlugin>
27
- ];
24
+ dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>];
28
25
  actions: {
29
26
  isInsideListItem: IsInsideListItem;
30
27
  findRootParentListNode: FindRootParentListNode;
@@ -3,5 +3,5 @@ type MergeNextListAtPositionProps = {
3
3
  listPosition: number;
4
4
  tr: Transaction;
5
5
  };
6
- export declare function mergeNextListAtPosition({ tr, listPosition, }: MergeNextListAtPositionProps): void;
6
+ export declare function mergeNextListAtPosition({ tr, listPosition }: MergeNextListAtPositionProps): void;
7
7
  export {};
@@ -5,5 +5,5 @@ type Props = {
5
5
  expression: RegExp;
6
6
  editorAnalyticsApi: EditorAnalyticsAPI | undefined;
7
7
  };
8
- export declare function createRuleForListType({ listType, expression, editorAnalyticsApi, }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
8
+ export declare function createRuleForListType({ listType, expression, editorAnalyticsApi }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
9
9
  export {};
package/package.json CHANGED
@@ -1,99 +1,97 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-list",
3
- "version": "3.3.3",
4
- "description": "List plugin for @atlaskit/editor-core",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: AI",
12
- "releaseModel": "continuous",
13
- "singleton": true,
14
- "runReact18": false
15
- },
16
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
- "main": "dist/cjs/index.js",
18
- "module": "dist/esm/index.js",
19
- "module:es2019": "dist/es2019/index.js",
20
- "types": "dist/types/index.d.ts",
21
- "typesVersions": {
22
- ">=4.5 <4.9": {
23
- "*": [
24
- "dist/types-ts4.5/*",
25
- "dist/types-ts4.5/index.d.ts"
26
- ]
27
- }
28
- },
29
- "sideEffects": false,
30
- "atlaskit:src": "src/index.ts",
31
- "af:exports": {
32
- ".": "./src/index.ts"
33
- },
34
- "dependencies": {
35
- "@atlaskit/adf-schema": "^36.10.7",
36
- "@atlaskit/editor-common": "^81.1.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
- "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
39
- "@atlaskit/editor-prosemirror": "4.0.1",
40
- "@atlaskit/platform-feature-flags": "^0.2.0",
41
- "@atlaskit/prosemirror-input-rules": "^3.1.0",
42
- "@babel/runtime": "^7.0.0"
43
- },
44
- "peerDependencies": {
45
- "react": "^16.8.0",
46
- "react-intl-next": "npm:react-intl@^5.18.1"
47
- },
48
- "devDependencies": {
49
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
50
- "typescript": "~5.4.2"
51
- },
52
- "techstack": {
53
- "@atlassian/frontend": {
54
- "import-structure": [
55
- "atlassian-conventions"
56
- ],
57
- "circular-dependencies": [
58
- "file-and-folder-level"
59
- ]
60
- },
61
- "@repo/internal": {
62
- "dom-events": "use-bind-event-listener",
63
- "analytics": [
64
- "analytics-next"
65
- ],
66
- "design-tokens": [
67
- "color"
68
- ],
69
- "theming": [
70
- "react-context"
71
- ],
72
- "ui-components": [
73
- "lite-mode"
74
- ],
75
- "deprecation": "no-deprecated-imports",
76
- "styling": [
77
- "emotion",
78
- "emotion"
79
- ],
80
- "imports": [
81
- "import-no-extraneous-disable-for-examples-and-docs"
82
- ]
83
- }
84
- },
85
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
86
- "stricter": {
87
- "no-unused-dependencies": {
88
- "checkDevDependencies": true
89
- }
90
- },
91
- "platform-feature-flags": {
92
- "platform.editor.ordered-list-auto-join-improvements_mrlv5": {
93
- "type": "boolean"
94
- },
95
- "platform.editor.allow-action-in-list": {
96
- "type": "boolean"
97
- }
98
- }
99
- }
2
+ "name": "@atlaskit/editor-plugin-list",
3
+ "version": "3.4.0",
4
+ "description": "List plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: AI",
12
+ "releaseModel": "continuous",
13
+ "singleton": true,
14
+ "runReact18": false
15
+ },
16
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "module:es2019": "dist/es2019/index.js",
20
+ "types": "dist/types/index.d.ts",
21
+ "typesVersions": {
22
+ ">=4.5 <4.9": {
23
+ "*": [
24
+ "dist/types-ts4.5/*",
25
+ "dist/types-ts4.5/index.d.ts"
26
+ ]
27
+ }
28
+ },
29
+ "sideEffects": false,
30
+ "atlaskit:src": "src/index.ts",
31
+ "af:exports": {
32
+ ".": "./src/index.ts"
33
+ },
34
+ "dependencies": {
35
+ "@atlaskit/adf-schema": "^37.0.0",
36
+ "@atlaskit/editor-common": "^82.12.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.3.0",
38
+ "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
39
+ "@atlaskit/editor-prosemirror": "4.0.1",
40
+ "@atlaskit/platform-feature-flags": "^0.2.0",
41
+ "@atlaskit/prosemirror-input-rules": "^3.1.0",
42
+ "@babel/runtime": "^7.0.0"
43
+ },
44
+ "peerDependencies": {
45
+ "react": "^16.8.0",
46
+ "react-intl-next": "npm:react-intl@^5.18.1"
47
+ },
48
+ "devDependencies": {
49
+ "typescript": "~5.4.2"
50
+ },
51
+ "techstack": {
52
+ "@atlassian/frontend": {
53
+ "import-structure": [
54
+ "atlassian-conventions"
55
+ ],
56
+ "circular-dependencies": [
57
+ "file-and-folder-level"
58
+ ]
59
+ },
60
+ "@repo/internal": {
61
+ "dom-events": "use-bind-event-listener",
62
+ "analytics": [
63
+ "analytics-next"
64
+ ],
65
+ "design-tokens": [
66
+ "color"
67
+ ],
68
+ "theming": [
69
+ "react-context"
70
+ ],
71
+ "ui-components": [
72
+ "lite-mode"
73
+ ],
74
+ "deprecation": "no-deprecated-imports",
75
+ "styling": [
76
+ "emotion",
77
+ "emotion"
78
+ ],
79
+ "imports": [
80
+ "import-no-extraneous-disable-for-examples-and-docs"
81
+ ]
82
+ }
83
+ },
84
+ "stricter": {
85
+ "no-unused-dependencies": {
86
+ "checkDevDependencies": true
87
+ }
88
+ },
89
+ "platform-feature-flags": {
90
+ "platform.editor.ordered-list-auto-join-improvements_mrlv5": {
91
+ "type": "boolean"
92
+ },
93
+ "platform.editor.allow-action-in-list": {
94
+ "type": "boolean"
95
+ }
96
+ }
97
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-list"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -44,25 +45,22 @@ type IsInsideListItem = (tr: Transaction) => boolean;
44
45
 
45
46
  // @public (undocumented)
46
47
  export type ListPlugin = NextEditorPlugin<
47
- 'list',
48
- {
49
- pluginConfiguration: ListPluginOptions | undefined;
50
- dependencies: [
51
- OptionalPlugin<FeatureFlagsPlugin>,
52
- OptionalPlugin<AnalyticsPlugin>,
53
- ];
54
- actions: {
55
- isInsideListItem: IsInsideListItem;
56
- findRootParentListNode: FindRootParentListNode;
57
- };
58
- commands: {
59
- indentList: IndentList;
60
- outdentList: OutdentList;
61
- toggleOrderedList: ToggleOrderedList;
62
- toggleBulletList: ToggleBulletList;
63
- };
64
- sharedState: ListState | undefined;
65
- }
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
+ }
66
64
  >;
67
65
 
68
66
  // @public
@@ -73,16 +71,16 @@ export type ListPluginOptions = Pick<FeatureFlags, 'restartNumberedLists'>;
73
71
 
74
72
  // @public (undocumented)
75
73
  export interface ListState {
76
- // (undocumented)
77
- bulletListActive: boolean;
78
- // (undocumented)
79
- bulletListDisabled: boolean;
80
- // (undocumented)
81
- decorationSet: DecorationSet;
82
- // (undocumented)
83
- orderedListActive: boolean;
84
- // (undocumented)
85
- orderedListDisabled: boolean;
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;
86
84
  }
87
85
 
88
86
  // @public (undocumented)
@@ -93,11 +91,8 @@ type ToggleBulletList = (inputMethod: InputMethod) => EditorCommand;
93
91
 
94
92
  // @public (undocumented)
95
93
  export const toggleList: (
96
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
97
- ) => (
98
- inputMethod: InputMethod_2,
99
- listType: 'bulletList' | 'orderedList',
100
- ) => EditorCommand;
94
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
95
+ ) => (inputMethod: InputMethod_2, listType: 'bulletList' | 'orderedList') => EditorCommand;
101
96
 
102
97
  // @public (undocumented)
103
98
  type ToggleOrderedList = (inputMethod: InputMethod) => EditorCommand;
@@ -113,8 +108,8 @@ type ToggleOrderedList = (inputMethod: InputMethod) => EditorCommand;
113
108
 
114
109
  ```json
115
110
  {
116
- "react": "^16.8.0",
117
- "react-intl-next": "npm:react-intl@^5.18.1"
111
+ "react": "^16.8.0",
112
+ "react-intl-next": "npm:react-intl@^5.18.1"
118
113
  }
119
114
  ```
120
115