@atlaskit/editor-plugin-emoji 7.5.0 → 7.6.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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 7.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fdba2e94783b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdba2e94783b7) -
|
|
8
|
+
[https://product-fabric.atlassian.net/browse/ED-29638](ED-29638) - fix editor NodeDataProvider
|
|
9
|
+
network requests deduplication
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 7.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -62,7 +62,7 @@ var EmojiNodeDataProvider = exports.EmojiNodeDataProvider = /*#__PURE__*/functio
|
|
|
62
62
|
value: function getData(node, callback) {
|
|
63
63
|
var _this2 = this;
|
|
64
64
|
var cached = this.getNodeDataFromCache(node);
|
|
65
|
-
if (cached && cached
|
|
65
|
+
if (cached !== null && cached !== void 0 && cached.data) {
|
|
66
66
|
callback(cached);
|
|
67
67
|
if (!(0, _coreUtils.isSSR)() && typeof requestAnimationFrame !== 'undefined') {
|
|
68
68
|
requestAnimationFrame(function () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
3
3
|
import { defaultEmojiHeight } from '@atlaskit/emoji';
|
|
4
|
-
import { NodeDataProvider
|
|
4
|
+
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
5
5
|
export class EmojiNodeDataProvider extends NodeDataProvider {
|
|
6
6
|
constructor(resource) {
|
|
7
7
|
super();
|
|
@@ -33,7 +33,7 @@ export class EmojiNodeDataProvider extends NodeDataProvider {
|
|
|
33
33
|
*/
|
|
34
34
|
getData(node, callback) {
|
|
35
35
|
const cached = this.getNodeDataFromCache(node);
|
|
36
|
-
if (cached && cached
|
|
36
|
+
if (cached !== null && cached !== void 0 && cached.data) {
|
|
37
37
|
callback(cached);
|
|
38
38
|
if (!isSSR() && typeof requestAnimationFrame !== 'undefined') {
|
|
39
39
|
requestAnimationFrame(() => void this.getDataAsync(node, () => {}));
|
|
@@ -12,7 +12,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
14
14
|
import { defaultEmojiHeight } from '@atlaskit/emoji';
|
|
15
|
-
import { NodeDataProvider
|
|
15
|
+
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
16
16
|
export var EmojiNodeDataProvider = /*#__PURE__*/function (_NodeDataProvider) {
|
|
17
17
|
function EmojiNodeDataProvider(resource) {
|
|
18
18
|
var _this;
|
|
@@ -55,7 +55,7 @@ export var EmojiNodeDataProvider = /*#__PURE__*/function (_NodeDataProvider) {
|
|
|
55
55
|
value: function getData(node, callback) {
|
|
56
56
|
var _this2 = this;
|
|
57
57
|
var cached = this.getNodeDataFromCache(node);
|
|
58
|
-
if (cached && cached
|
|
58
|
+
if (cached !== null && cached !== void 0 && cached.data) {
|
|
59
59
|
callback(cached);
|
|
60
60
|
if (!isSSR() && typeof requestAnimationFrame !== 'undefined') {
|
|
61
61
|
requestAnimationFrame(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@atlaskit/editor-shared-styles": "^3.8.0",
|
|
33
33
|
"@atlaskit/emoji": "^69.6.0",
|
|
34
34
|
"@atlaskit/icon": "^28.5.0",
|
|
35
|
-
"@atlaskit/node-data-provider": "^7.
|
|
35
|
+
"@atlaskit/node-data-provider": "^7.4.0",
|
|
36
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
37
37
|
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
38
38
|
"@atlaskit/theme": "^21.0.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
40
|
-
"@atlaskit/tokens": "^7.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^13.26.0",
|
|
40
|
+
"@atlaskit/tokens": "^7.1.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
@@ -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.21.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0"
|
|
51
51
|
},
|