@atlaskit/editor-plugin-list 1.4.7 → 2.0.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 +31 -0
- package/dist/cjs/index.js +1 -8
- package/dist/es2019/index.js +1 -2
- package/dist/esm/index.js +1 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#61903](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61903) [`fb2eb9474b05`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb2eb9474b05) - WHAT?
|
|
8
|
+
Removing `toggleList` from public exports.
|
|
9
|
+
|
|
10
|
+
WHY?
|
|
11
|
+
It is an antipattern to export utilities from a plugin package.
|
|
12
|
+
|
|
13
|
+
The preferred approach is using the editor API.
|
|
14
|
+
|
|
15
|
+
HOW DO I WORKAROUND IT?
|
|
16
|
+
This can be accessed via the commands of the list plugin using the editor API.
|
|
17
|
+
|
|
18
|
+
Example to toggle bullet list:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
editorAPI?.core.actions.execute(
|
|
22
|
+
editorAPI?.list.commands.toggleBulletList(INPUT_METHOD.TOOLBAR),
|
|
23
|
+
);
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Example to toggle ordered list:
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
editorAPI?.core.actions.execute(
|
|
30
|
+
editorAPI?.list.commands.toggleOrderedList(INPUT_METHOD.TOOLBAR),
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
3
34
|
## 1.4.7
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -9,11 +9,4 @@ Object.defineProperty(exports, "listPlugin", {
|
|
|
9
9
|
return _plugin.listPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _commands.toggleList;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _plugin = require("./plugin");
|
|
19
|
-
var _commands = require("./commands");
|
|
12
|
+
var _plugin = require("./plugin");
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { listPlugin } from './plugin';
|
|
2
|
-
export { toggleList } from './commands';
|
|
1
|
+
export { listPlugin } from './plugin';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { listPlugin } from './plugin';
|
|
2
|
-
export { toggleList } from './commands';
|
|
1
|
+
export { listPlugin } from './plugin';
|
package/dist/types/index.d.ts
CHANGED