@atlaskit/editor-plugin-list 1.3.5 → 1.3.6
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 +26 -0
- package/dist/cjs/plugin.js +2 -2
- package/dist/es2019/plugin.js +2 -2
- package/dist/esm/plugin.js +2 -2
- package/dist/types/types.d.ts +4 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +1 -1
- package/report.api.md +4 -1
- package/tmp/api-report-tmp.d.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 1.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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:
|
|
8
|
+
|
|
9
|
+
- analytics
|
|
10
|
+
- base
|
|
11
|
+
- card
|
|
12
|
+
- code-block
|
|
13
|
+
- expand
|
|
14
|
+
- extension
|
|
15
|
+
- floating-toolbar
|
|
16
|
+
- hyperlink
|
|
17
|
+
- insert-block
|
|
18
|
+
- layout
|
|
19
|
+
- layout
|
|
20
|
+
- list
|
|
21
|
+
- media
|
|
22
|
+
- paste
|
|
23
|
+
- rule
|
|
24
|
+
- table
|
|
25
|
+
- tasks-and-decisions
|
|
26
|
+
|
|
27
|
+
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.
|
|
28
|
+
|
|
3
29
|
## 1.3.5
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -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 :
|
|
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',
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -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',
|
package/dist/esm/plugin.js
CHANGED
|
@@ -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 :
|
|
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',
|
package/dist/types/types.d.ts
CHANGED
|
@@ -23,7 +23,10 @@ export interface ListState {
|
|
|
23
23
|
}
|
|
24
24
|
export type ListPlugin = NextEditorPlugin<'list', {
|
|
25
25
|
pluginConfiguration: ListPluginOptions | undefined;
|
|
26
|
-
dependencies: [
|
|
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
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: [
|
|
50
|
+
dependencies: [
|
|
51
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
52
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
53
|
+
];
|
|
51
54
|
actions: {
|
|
52
55
|
isInsideListItem: IsInsideListItem;
|
|
53
56
|
findRootParentListNode: FindRootParentListNode;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -34,7 +34,10 @@ type IsInsideListItem = (tr: Transaction) => boolean;
|
|
|
34
34
|
// @public (undocumented)
|
|
35
35
|
export type ListPlugin = NextEditorPlugin<'list', {
|
|
36
36
|
pluginConfiguration: ListPluginOptions | undefined;
|
|
37
|
-
dependencies: [
|
|
37
|
+
dependencies: [
|
|
38
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
39
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
40
|
+
];
|
|
38
41
|
actions: {
|
|
39
42
|
isInsideListItem: IsInsideListItem;
|
|
40
43
|
findRootParentListNode: FindRootParentListNode;
|