@atlaskit/editor-plugin-emoji 7.1.0 → 7.1.2
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 +14 -0
- package/dist/cjs/emojiPlugin.js +0 -12
- package/dist/es2019/emojiPlugin.js +1 -11
- package/dist/esm/emojiPlugin.js +1 -13
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 7.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0b4cd77e72217`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0b4cd77e72217) -
|
|
8
|
+
clean up references to platform_editor_controls_performance_fixes
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 7.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/emojiPlugin.js
CHANGED
|
@@ -318,18 +318,6 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
318
318
|
if (!api || (0, _experiments.editorExperiment)('platform_editor_controls', 'control') || !editorView) {
|
|
319
319
|
return null;
|
|
320
320
|
}
|
|
321
|
-
if (!(0, _experiments.editorExperiment)('platform_editor_controls_performance_fixes', true)) {
|
|
322
|
-
return /*#__PURE__*/_react.default.createElement(_InlineEmojiPopup.InlineEmojiPopupOld, {
|
|
323
|
-
api: api,
|
|
324
|
-
editorView: editorView,
|
|
325
|
-
popupsBoundariesElement: popupsBoundariesElement,
|
|
326
|
-
popupsMountPoint: popupsMountPoint,
|
|
327
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
328
|
-
onClose: function onClose() {
|
|
329
|
-
return editorView.dispatch((0, _actions.setInlineEmojiPopupOpen)(false)(editorView.state.tr));
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
321
|
return /*#__PURE__*/_react.default.createElement(_InlineEmojiPopup.InlineEmojiPopup, {
|
|
334
322
|
api: api,
|
|
335
323
|
editorView: editorView,
|
|
@@ -17,7 +17,7 @@ import { emojiNodeSpec } from './nodeviews/emojiNodeSpec';
|
|
|
17
17
|
import { EmojiNodeView } from './nodeviews/EmojiNodeView';
|
|
18
18
|
import { ACTIONS, openTypeAhead as openTypeAheadAction, setAsciiMap as setAsciiMapAction, setInlineEmojiPopupOpen, setProvider as setProviderAction } from './pm-plugins/actions';
|
|
19
19
|
import { inputRulePlugin as asciiInputRulePlugin } from './pm-plugins/ascii-input-rules';
|
|
20
|
-
import { InlineEmojiPopup
|
|
20
|
+
import { InlineEmojiPopup } from './ui/InlineEmojiPopup';
|
|
21
21
|
export const emojiToTypeaheadItem = (emoji, emojiProvider) => ({
|
|
22
22
|
title: emoji.shortName || '',
|
|
23
23
|
key: emoji.id || emoji.shortName,
|
|
@@ -285,16 +285,6 @@ export const emojiPlugin = ({
|
|
|
285
285
|
if (!api || editorExperiment('platform_editor_controls', 'control') || !editorView) {
|
|
286
286
|
return null;
|
|
287
287
|
}
|
|
288
|
-
if (!editorExperiment('platform_editor_controls_performance_fixes', true)) {
|
|
289
|
-
return /*#__PURE__*/React.createElement(InlineEmojiPopupOld, {
|
|
290
|
-
api: api,
|
|
291
|
-
editorView: editorView,
|
|
292
|
-
popupsBoundariesElement: popupsBoundariesElement,
|
|
293
|
-
popupsMountPoint: popupsMountPoint,
|
|
294
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
295
|
-
onClose: () => editorView.dispatch(setInlineEmojiPopupOpen(false)(editorView.state.tr))
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
288
|
return /*#__PURE__*/React.createElement(InlineEmojiPopup, {
|
|
299
289
|
api: api,
|
|
300
290
|
editorView: editorView,
|
package/dist/esm/emojiPlugin.js
CHANGED
|
@@ -22,7 +22,7 @@ import { emojiNodeSpec } from './nodeviews/emojiNodeSpec';
|
|
|
22
22
|
import { EmojiNodeView } from './nodeviews/EmojiNodeView';
|
|
23
23
|
import { ACTIONS, openTypeAhead as openTypeAheadAction, setAsciiMap as setAsciiMapAction, setInlineEmojiPopupOpen, setProvider as setProviderAction } from './pm-plugins/actions';
|
|
24
24
|
import { inputRulePlugin as asciiInputRulePlugin } from './pm-plugins/ascii-input-rules';
|
|
25
|
-
import { InlineEmojiPopup
|
|
25
|
+
import { InlineEmojiPopup } from './ui/InlineEmojiPopup';
|
|
26
26
|
export var emojiToTypeaheadItem = function emojiToTypeaheadItem(emoji, emojiProvider) {
|
|
27
27
|
return {
|
|
28
28
|
title: emoji.shortName || '',
|
|
@@ -307,18 +307,6 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
307
307
|
if (!api || editorExperiment('platform_editor_controls', 'control') || !editorView) {
|
|
308
308
|
return null;
|
|
309
309
|
}
|
|
310
|
-
if (!editorExperiment('platform_editor_controls_performance_fixes', true)) {
|
|
311
|
-
return /*#__PURE__*/React.createElement(InlineEmojiPopupOld, {
|
|
312
|
-
api: api,
|
|
313
|
-
editorView: editorView,
|
|
314
|
-
popupsBoundariesElement: popupsBoundariesElement,
|
|
315
|
-
popupsMountPoint: popupsMountPoint,
|
|
316
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
317
|
-
onClose: function onClose() {
|
|
318
|
-
return editorView.dispatch(setInlineEmojiPopupOpen(false)(editorView.state.tr));
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
310
|
return /*#__PURE__*/React.createElement(InlineEmojiPopup, {
|
|
323
311
|
api: api,
|
|
324
312
|
editorView: editorView,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^51.2.0",
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^6.
|
|
26
|
-
"@atlaskit/editor-plugin-annotation": "^6.
|
|
27
|
-
"@atlaskit/editor-plugin-base": "^7.
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
26
|
+
"@atlaskit/editor-plugin-annotation": "^6.1.0",
|
|
27
|
+
"@atlaskit/editor-plugin-base": "^7.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-metrics": "^7.0.0",
|
|
30
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.
|
|
30
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.4.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
32
32
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
33
33
|
"@atlaskit/emoji": "^69.5.0",
|
|
34
|
-
"@atlaskit/icon": "^28.
|
|
35
|
-
"@atlaskit/node-data-provider": "^7.
|
|
34
|
+
"@atlaskit/icon": "^28.5.0",
|
|
35
|
+
"@atlaskit/node-data-provider": "^7.1.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
37
|
-
"@atlaskit/prosemirror-input-rules": "^3.
|
|
37
|
+
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
38
38
|
"@atlaskit/theme": "^21.0.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^13.9.0",
|
|
40
40
|
"@atlaskit/tokens": "^6.4.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react-loadable": "^5.1.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^110.
|
|
48
|
+
"@atlaskit/editor-common": "^110.10.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0"
|
|
51
51
|
},
|