@atlaskit/editor-plugin-emoji 15.0.3 → 15.0.5

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 15.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3a4c286fdb8c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a4c286fdb8c1) -
8
+ Add registry-backed Quick Insert search matching under the existing
9
+ `platform_editor_slash_command` experiment. Make native, provider, and extension registered Quick
10
+ Insert items searchable.
11
+ - Updated dependencies
12
+
13
+ ## 15.0.4
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 15.0.3
4
20
 
5
21
  ### Patch Changes
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getEmojiQuickInsertComponents = void 0;
7
+ var _messages = require("@atlaskit/editor-common/messages");
8
+ var _createQuickInsertMatcher = require("@atlaskit/editor-common/quick-insert/create-quick-insert-matcher");
7
9
  var _keys = require("@atlaskit/editor-common/quick-insert/keys");
8
10
  var _rank = require("@atlaskit/editor-common/quick-insert/rank");
9
11
  var _EmojiQuickInsertMenuItem = require("./EmojiQuickInsertMenuItem");
@@ -16,6 +18,14 @@ var getEmojiQuickInsertComponents = exports.getEmojiQuickInsertComponents = func
16
18
  type: _keys.MEDIA_SECTION.type,
17
19
  rank: _rank.MEDIA_SECTION_RANK[_keys.EMOJI_MENU_ITEM.key]
18
20
  }],
21
+ match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function (_ref) {
22
+ var formatMessage = _ref.formatMessage;
23
+ return {
24
+ description: formatMessage(_messages.toolbarInsertBlockMessages.emojiDescription),
25
+ shortcut: ':',
26
+ title: formatMessage(_messages.toolbarInsertBlockMessages.emoji)
27
+ };
28
+ }),
19
29
  component: _EmojiQuickInsertMenuItem.EmojiQuickInsertMenuItem
20
30
  }];
21
31
  };
@@ -1,3 +1,5 @@
1
+ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
2
+ import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
1
3
  import { EMOJI_MENU_ITEM, MEDIA_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
2
4
  import { MEDIA_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
3
5
  import { EmojiQuickInsertMenuItem } from './EmojiQuickInsertMenuItem';
@@ -9,5 +11,12 @@ export const getEmojiQuickInsertComponents = () => [{
9
11
  type: MEDIA_SECTION.type,
10
12
  rank: MEDIA_SECTION_RANK[EMOJI_MENU_ITEM.key]
11
13
  }],
14
+ match: createQuickInsertMatcher(({
15
+ formatMessage
16
+ }) => ({
17
+ description: formatMessage(messages.emojiDescription),
18
+ shortcut: ':',
19
+ title: formatMessage(messages.emoji)
20
+ })),
12
21
  component: EmojiQuickInsertMenuItem
13
22
  }];
@@ -1,3 +1,5 @@
1
+ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
2
+ import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
1
3
  import { EMOJI_MENU_ITEM, MEDIA_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
2
4
  import { MEDIA_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
3
5
  import { EmojiQuickInsertMenuItem } from './EmojiQuickInsertMenuItem';
@@ -10,6 +12,14 @@ export var getEmojiQuickInsertComponents = function getEmojiQuickInsertComponent
10
12
  type: MEDIA_SECTION.type,
11
13
  rank: MEDIA_SECTION_RANK[EMOJI_MENU_ITEM.key]
12
14
  }],
15
+ match: createQuickInsertMatcher(function (_ref) {
16
+ var formatMessage = _ref.formatMessage;
17
+ return {
18
+ description: formatMessage(messages.emojiDescription),
19
+ shortcut: ':',
20
+ title: formatMessage(messages.emoji)
21
+ };
22
+ }),
13
23
  component: EmojiQuickInsertMenuItem
14
24
  }];
15
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "15.0.3",
3
+ "version": "15.0.5",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,7 +21,7 @@
21
21
  "singleton": true
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^56.6.0",
24
+ "@atlaskit/adf-schema": "^56.7.0",
25
25
  "@atlaskit/browser-apis": "^1.2.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^14.0.0",
27
27
  "@atlaskit/editor-plugin-annotation": "^14.0.0",
@@ -29,19 +29,19 @@
29
29
  "@atlaskit/editor-plugin-connectivity": "^14.0.0",
30
30
  "@atlaskit/editor-plugin-editor-viewmode": "^16.0.0",
31
31
  "@atlaskit/editor-plugin-metrics": "^15.0.0",
32
- "@atlaskit/editor-plugin-type-ahead": "^15.0.0",
33
- "@atlaskit/editor-plugin-ui-control-registry": "^8.0.0",
32
+ "@atlaskit/editor-plugin-type-ahead": "^15.1.0",
33
+ "@atlaskit/editor-plugin-ui-control-registry": "^8.1.0",
34
34
  "@atlaskit/editor-prosemirror": "^8.0.0",
35
35
  "@atlaskit/editor-shared-styles": "^4.0.0",
36
- "@atlaskit/editor-ui-control-model": "^2.4.0",
37
- "@atlaskit/emoji": "^71.15.0",
36
+ "@atlaskit/editor-ui-control-model": "^2.6.0",
37
+ "@atlaskit/emoji": "^71.16.0",
38
38
  "@atlaskit/icon": "^37.3.0",
39
39
  "@atlaskit/node-data-provider": "^15.0.0",
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.1.0",
42
42
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
43
- "@atlaskit/tmp-editor-statsig": "^145.0.0",
44
- "@atlaskit/tokens": "^16.5.0",
43
+ "@atlaskit/tmp-editor-statsig": "^146.0.0",
44
+ "@atlaskit/tokens": "^16.6.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@emotion/react": "^11.7.1",
47
47
  "bind-event-listener": "^3.0.0",
@@ -49,7 +49,7 @@
49
49
  "react-loadable": "^5.1.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@atlaskit/editor-common": "^118.2.0",
52
+ "@atlaskit/editor-common": "^118.10.0",
53
53
  "react": "^18.2.0 || ^19.2.0",
54
54
  "react-dom": "^18.2.0 || ^19.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"