@atlaskit/editor-plugin-emoji 1.5.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 +17 -20
- package/dist/esm/plugin.js +1 -2
- package/dist/types/types.d.ts +1 -2
- package/dist/types-ts4.5/types.d.ts +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
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.5.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.5.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -231,13 +231,12 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
231
231
|
},
|
|
232
232
|
pluginsOptions: {
|
|
233
233
|
quickInsert: function quickInsert(_ref9) {
|
|
234
|
-
var _options$getEditorFea;
|
|
235
234
|
var formatMessage = _ref9.formatMessage;
|
|
236
235
|
return [{
|
|
237
236
|
id: 'emoji',
|
|
238
237
|
title: formatMessage(_messages.toolbarInsertBlockMessages.emoji),
|
|
239
238
|
description: formatMessage(_messages.toolbarInsertBlockMessages.emojiDescription),
|
|
240
|
-
priority:
|
|
239
|
+
priority: 500,
|
|
241
240
|
keyshortcut: ':',
|
|
242
241
|
icon: function icon() {
|
|
243
242
|
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconEmoji, null);
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -214,26 +214,23 @@ export const emojiPlugin = ({
|
|
|
214
214
|
pluginsOptions: {
|
|
215
215
|
quickInsert: ({
|
|
216
216
|
formatMessage
|
|
217
|
-
}) => {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
}];
|
|
236
|
-
},
|
|
217
|
+
}) => [{
|
|
218
|
+
id: 'emoji',
|
|
219
|
+
title: formatMessage(messages.emoji),
|
|
220
|
+
description: formatMessage(messages.emojiDescription),
|
|
221
|
+
priority: 500,
|
|
222
|
+
keyshortcut: ':',
|
|
223
|
+
icon: () => /*#__PURE__*/React.createElement(IconEmoji, null),
|
|
224
|
+
action(insert, state) {
|
|
225
|
+
var _api$typeAhead2;
|
|
226
|
+
const tr = insert(undefined);
|
|
227
|
+
api === null || api === void 0 ? void 0 : (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 ? void 0 : _api$typeAhead2.actions.openAtTransaction({
|
|
228
|
+
triggerHandler: typeAhead,
|
|
229
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
230
|
+
})(tr);
|
|
231
|
+
return tr;
|
|
232
|
+
}
|
|
233
|
+
}],
|
|
237
234
|
typeAhead
|
|
238
235
|
}
|
|
239
236
|
};
|
package/dist/esm/plugin.js
CHANGED
|
@@ -218,13 +218,12 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
218
218
|
},
|
|
219
219
|
pluginsOptions: {
|
|
220
220
|
quickInsert: function quickInsert(_ref9) {
|
|
221
|
-
var _options$getEditorFea;
|
|
222
221
|
var formatMessage = _ref9.formatMessage;
|
|
223
222
|
return [{
|
|
224
223
|
id: 'emoji',
|
|
225
224
|
title: formatMessage(messages.emoji),
|
|
226
225
|
description: formatMessage(messages.emojiDescription),
|
|
227
|
-
priority:
|
|
226
|
+
priority: 500,
|
|
228
227
|
keyshortcut: ':',
|
|
229
228
|
icon: function icon() {
|
|
230
229
|
return /*#__PURE__*/React.createElement(IconEmoji, null);
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EditorCommand,
|
|
2
|
+
import type { EditorCommand, NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
5
5
|
import type { EmojiDescription, EmojiId, EmojiProvider, EmojiResourceConfig } from '@atlaskit/emoji';
|
|
6
6
|
export interface EmojiPluginOptions {
|
|
7
7
|
headless?: boolean;
|
|
8
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
9
8
|
}
|
|
10
9
|
export type EmojiPluginState = {
|
|
11
10
|
emojiProvider?: EmojiProvider;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EditorCommand,
|
|
2
|
+
import type { EditorCommand, NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
5
5
|
import type { EmojiDescription, EmojiId, EmojiProvider, EmojiResourceConfig } from '@atlaskit/emoji';
|
|
6
6
|
export interface EmojiPluginOptions {
|
|
7
7
|
headless?: boolean;
|
|
8
|
-
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
9
8
|
}
|
|
10
9
|
export type EmojiPluginState = {
|
|
11
10
|
emojiProvider?: EmojiProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"runReact18": false
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^
|
|
25
|
-
"@atlaskit/editor-common": "^
|
|
24
|
+
"@atlaskit/adf-schema": "^39.0.3",
|
|
25
|
+
"@atlaskit/editor-common": "^84.0.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
27
27
|
"@atlaskit/editor-plugin-type-ahead": "^1.4.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "4.0.1",
|