@atlaskit/editor-plugin-emoji 17.0.1 → 17.0.3
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 17.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`02f23e888be02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/02f23e888be02) -
|
|
8
|
+
Use core icons for slash-menu items when platform_editor_slash_command is enabled.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 17.0.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 17.0.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -8,8 +9,8 @@ exports.EmojiQuickInsertMenuItem = void 0;
|
|
|
8
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _reactIntl = require("react-intl");
|
|
10
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
|
-
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
12
12
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
13
|
+
var _emoji = _interopRequireDefault(require("@atlaskit/icon/core/emoji"));
|
|
13
14
|
var _actions = require("../../pm-plugins/actions");
|
|
14
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
16
|
var EmojiQuickInsertMenuItem = exports.EmojiQuickInsertMenuItem = function EmojiQuickInsertMenuItem() {
|
|
@@ -20,7 +21,9 @@ var EmojiQuickInsertMenuItem = exports.EmojiQuickInsertMenuItem = function Emoji
|
|
|
20
21
|
return (0, _actions.setInlineEmojiPopupOpen)(true)(insert(''));
|
|
21
22
|
}, []);
|
|
22
23
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
23
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
24
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_emoji.default, {
|
|
25
|
+
label: ""
|
|
26
|
+
}),
|
|
24
27
|
onSelect: onSelect,
|
|
25
28
|
shortcut: ":",
|
|
26
29
|
title: formatMessage(_messages.toolbarInsertBlockMessages.emoji)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
|
-
import { IconEmoji } from '@atlaskit/editor-common/quick-insert';
|
|
5
4
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
5
|
+
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
6
6
|
import { setInlineEmojiPopupOpen } from '../../pm-plugins/actions';
|
|
7
7
|
export const EmojiQuickInsertMenuItem = () => {
|
|
8
8
|
const {
|
|
@@ -12,7 +12,9 @@ export const EmojiQuickInsertMenuItem = () => {
|
|
|
12
12
|
insert
|
|
13
13
|
}) => setInlineEmojiPopupOpen(true)(insert('')), []);
|
|
14
14
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
15
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
15
|
+
iconBefore: /*#__PURE__*/React.createElement(EmojiIcon, {
|
|
16
|
+
label: ""
|
|
17
|
+
}),
|
|
16
18
|
onSelect: onSelect,
|
|
17
19
|
shortcut: ":",
|
|
18
20
|
title: formatMessage(messages.emoji)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
|
-
import { IconEmoji } from '@atlaskit/editor-common/quick-insert';
|
|
5
4
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
5
|
+
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
6
6
|
import { setInlineEmojiPopupOpen } from '../../pm-plugins/actions';
|
|
7
7
|
export var EmojiQuickInsertMenuItem = function EmojiQuickInsertMenuItem() {
|
|
8
8
|
var _useIntl = useIntl(),
|
|
@@ -12,7 +12,9 @@ export var EmojiQuickInsertMenuItem = function EmojiQuickInsertMenuItem() {
|
|
|
12
12
|
return setInlineEmojiPopupOpen(true)(insert(''));
|
|
13
13
|
}, []);
|
|
14
14
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
15
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
15
|
+
iconBefore: /*#__PURE__*/React.createElement(EmojiIcon, {
|
|
16
|
+
label: ""
|
|
17
|
+
}),
|
|
16
18
|
onSelect: onSelect,
|
|
17
19
|
shortcut: ":",
|
|
18
20
|
title: formatMessage(messages.emoji)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.3",
|
|
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": "^57.
|
|
24
|
+
"@atlaskit/adf-schema": "^57.2.0",
|
|
25
25
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
26
26
|
"@atlaskit/editor-json-transformer": "^9.6.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^16.0.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^163.0.0",
|
|
45
45
|
"@atlaskit/tokens": "^16.8.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@emotion/react": "^11.7.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-loadable": "^5.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^120.
|
|
53
|
+
"@atlaskit/editor-common": "^120.3.0",
|
|
54
54
|
"react": "^18.2.0 || ^19.2.0",
|
|
55
55
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|