@atlaskit/editor-plugin-status 1.4.0 → 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 +23 -0
- package/dist/cjs/plugin.js +1 -2
- package/dist/es2019/plugin.js +22 -25
- package/dist/esm/plugin.js +1 -2
- package/dist/types/types.d.ts +0 -2
- package/dist/types-ts4.5/types.d.ts +0 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`d9b562bd66f8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d9b562bd66f8e) -
|
|
8
|
+
[ux] [ED-23947] restoring the original order of the typeahead menu so that actions, media,
|
|
9
|
+
mentions and emojis are above the fold (in the top 5 results). this change is a major because it
|
|
10
|
+
removes the `getEditorFeatureFlags prop` for plugins. if any consumers who have adopted these
|
|
11
|
+
changes to the public API, they should remove them on their side too.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 1.4.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#114548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114548)
|
|
22
|
+
[`8b2d47bffb50e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2d47bffb50e) -
|
|
23
|
+
bump adf-schema version
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 1.4.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -79,13 +79,12 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
|
|
|
79
79
|
}
|
|
80
80
|
plugin.pluginsOptions = {
|
|
81
81
|
quickInsert: function quickInsert(_ref3) {
|
|
82
|
-
var _options$getEditorFea;
|
|
83
82
|
var formatMessage = _ref3.formatMessage;
|
|
84
83
|
return [{
|
|
85
84
|
id: 'status',
|
|
86
85
|
title: formatMessage(_messages.toolbarInsertBlockMessages.status),
|
|
87
86
|
description: formatMessage(_messages.toolbarInsertBlockMessages.statusDescription),
|
|
88
|
-
priority:
|
|
87
|
+
priority: 700,
|
|
89
88
|
keywords: ['lozenge'],
|
|
90
89
|
icon: function icon() {
|
|
91
90
|
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconStatus, null);
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -73,31 +73,28 @@ const decorateWithPluginOptions = (plugin, options, api) => {
|
|
|
73
73
|
plugin.pluginsOptions = {
|
|
74
74
|
quickInsert: ({
|
|
75
75
|
formatMessage
|
|
76
|
-
}) => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
}];
|
|
100
|
-
}
|
|
76
|
+
}) => [{
|
|
77
|
+
id: 'status',
|
|
78
|
+
title: formatMessage(messages.status),
|
|
79
|
+
description: formatMessage(messages.statusDescription),
|
|
80
|
+
priority: 700,
|
|
81
|
+
keywords: ['lozenge'],
|
|
82
|
+
icon: () => /*#__PURE__*/React.createElement(IconStatus, null),
|
|
83
|
+
action(insert, state) {
|
|
84
|
+
var _api$analytics2;
|
|
85
|
+
const tr = createStatus(state);
|
|
86
|
+
api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions.attachAnalyticsEvent({
|
|
87
|
+
action: ACTION.INSERTED,
|
|
88
|
+
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
89
|
+
actionSubjectId: ACTION_SUBJECT_ID.STATUS,
|
|
90
|
+
attributes: {
|
|
91
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
92
|
+
},
|
|
93
|
+
eventType: EVENT_TYPE.TRACK
|
|
94
|
+
})(tr);
|
|
95
|
+
return tr;
|
|
96
|
+
}
|
|
97
|
+
}]
|
|
101
98
|
};
|
|
102
99
|
return plugin;
|
|
103
100
|
};
|
package/dist/esm/plugin.js
CHANGED
|
@@ -72,13 +72,12 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
|
|
|
72
72
|
}
|
|
73
73
|
plugin.pluginsOptions = {
|
|
74
74
|
quickInsert: function quickInsert(_ref3) {
|
|
75
|
-
var _options$getEditorFea;
|
|
76
75
|
var formatMessage = _ref3.formatMessage;
|
|
77
76
|
return [{
|
|
78
77
|
id: 'status',
|
|
79
78
|
title: formatMessage(messages.status),
|
|
80
79
|
description: formatMessage(messages.statusDescription),
|
|
81
|
-
priority:
|
|
80
|
+
priority: 700,
|
|
82
81
|
keywords: ['lozenge'],
|
|
83
82
|
icon: function icon() {
|
|
84
83
|
return /*#__PURE__*/React.createElement(IconStatus, null);
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
1
|
import type { Color as ColorType } from '@atlaskit/status/element';
|
|
3
2
|
import type { closingMethods } from './ui/statusPicker';
|
|
4
3
|
export type StatusType = {
|
|
@@ -14,7 +13,6 @@ export type StatusState = {
|
|
|
14
13
|
export interface StatusPluginOptions {
|
|
15
14
|
menuDisabled: boolean;
|
|
16
15
|
allowZeroWidthSpaceAfter?: boolean;
|
|
17
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
18
16
|
}
|
|
19
17
|
export type ClosingPayload = {
|
|
20
18
|
closingMethod: closingMethods;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
1
|
import type { Color as ColorType } from '@atlaskit/status/element';
|
|
3
2
|
import type { closingMethods } from './ui/statusPicker';
|
|
4
3
|
export type StatusType = {
|
|
@@ -14,7 +13,6 @@ export type StatusState = {
|
|
|
14
13
|
export interface StatusPluginOptions {
|
|
15
14
|
menuDisabled: boolean;
|
|
16
15
|
allowZeroWidthSpaceAfter?: boolean;
|
|
17
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
18
16
|
}
|
|
19
17
|
export type ClosingPayload = {
|
|
20
18
|
closingMethod: closingMethods;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Status plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/adf-schema": "^
|
|
36
|
+
"@atlaskit/adf-schema": "^39.0.3",
|
|
37
37
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/editor-common": "^84.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
41
41
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|