@atlaskit/editor-plugin-emoji 10.0.0 → 11.0.1
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 +25 -0
- package/dist/cjs/ui/InlineEmojiPopup.js +3 -3
- package/dist/es2019/ui/InlineEmojiPopup.js +1 -1
- package/dist/esm/ui/InlineEmojiPopup.js +1 -1
- package/dist/types/nodeviews/EmojiNodeView.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/EmojiNodeView.d.ts +1 -1
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 11.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
|
|
14
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
15
|
+
|
|
16
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
17
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
18
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
19
|
+
|
|
20
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
21
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
22
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 10.0.0
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.InlineEmojiPopupOld = exports.InlineEmojiPopup = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _getDomRefFromSelection = require("@atlaskit/editor-common/get-dom-ref-from-selection");
|
|
12
12
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
@@ -37,7 +37,7 @@ var InlineEmojiPopupOld = exports.InlineEmojiPopupOld = function InlineEmojiPopu
|
|
|
37
37
|
var _ref2 = (_useSharedPluginState = (_useSharedPluginState2 = (0, _hooks.useSharedPluginState)(api, ['emoji'])) === null || _useSharedPluginState2 === void 0 ? void 0 : _useSharedPluginState2.emojiState) !== null && _useSharedPluginState !== void 0 ? _useSharedPluginState : {},
|
|
38
38
|
emojiProvider = _ref2.emojiProvider,
|
|
39
39
|
isOpen = _ref2.inlineEmojiPopupOpen;
|
|
40
|
-
var intl = (0,
|
|
40
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
41
41
|
(0, _react.useEffect)(function () {
|
|
42
42
|
if (isOpen && (0, _platformFeatureFlags.fg)('platform_editor_ease_of_use_metrics')) {
|
|
43
43
|
var _api$metrics;
|
|
@@ -102,7 +102,7 @@ var InlineEmojiPopupContent = function InlineEmojiPopupContent(_ref3) {
|
|
|
102
102
|
popupsScrollableElement = _ref3.popupsScrollableElement,
|
|
103
103
|
editorView = _ref3.editorView;
|
|
104
104
|
var emojiProvider = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'emoji.emojiProvider');
|
|
105
|
-
var intl = (0,
|
|
105
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
106
106
|
(0, _react.useEffect)(function () {
|
|
107
107
|
if ((0, _platformFeatureFlags.fg)('platform_editor_ease_of_use_metrics')) {
|
|
108
108
|
var _api$metrics3;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { ACTION_SUBJECT_ID, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { getDomRefFromSelection } from '@atlaskit/editor-common/get-dom-ref-from-selection';
|
|
5
5
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { ACTION_SUBJECT_ID, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { getDomRefFromSelection } from '@atlaskit/editor-common/get-dom-ref-from-selection';
|
|
5
5
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,35 +22,36 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^52.5.0",
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
26
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
27
|
-
"@atlaskit/editor-plugin-base": "^
|
|
28
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
29
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
30
|
-
"@atlaskit/editor-plugin-metrics": "^
|
|
31
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-annotation": "^10.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-base": "^11.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-connectivity": "^10.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-metrics": "^11.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-type-ahead": "^10.0.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
33
33
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
34
34
|
"@atlaskit/emoji": "^70.0.0",
|
|
35
35
|
"@atlaskit/icon": "^34.2.0",
|
|
36
|
-
"@atlaskit/node-data-provider": "^
|
|
36
|
+
"@atlaskit/node-data-provider": "^11.0.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^63.0.0",
|
|
40
40
|
"@atlaskit/tokens": "^13.0.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
|
-
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
45
44
|
"react-loadable": "^5.1.0"
|
|
46
45
|
},
|
|
47
46
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^
|
|
47
|
+
"@atlaskit/editor-common": "^114.2.0",
|
|
49
48
|
"react": "^18.2.0",
|
|
50
|
-
"react-dom": "^18.2.0"
|
|
49
|
+
"react-dom": "^18.2.0",
|
|
50
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@testing-library/react": "^16.3.0",
|
|
54
|
+
"react-intl": "^6.6.2",
|
|
54
55
|
"wait-for-expect": "^1.2.0"
|
|
55
56
|
},
|
|
56
57
|
"techstack": {
|