@atlaskit/editor-plugin-emoji 29.0.2 → 30.0.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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 30.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`49d75093d8f1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/49d75093d8f1c) -
|
|
8
|
+
Clean up feature gate `platform_editor_custom_emoji_unicode_fallback`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 29.0.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -24,7 +24,6 @@ var _vanillaTooltip = require("@atlaskit/editor-common/vanilla-tooltip");
|
|
|
24
24
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
25
25
|
var _constants = require("@atlaskit/emoji/constants");
|
|
26
26
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
27
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
28
27
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
29
28
|
var _emojiNodeSpec = require("./emojiNodeSpec");
|
|
30
29
|
/**
|
|
@@ -342,13 +341,11 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
|
|
|
342
341
|
text = _this$node$attrs2.text,
|
|
343
342
|
shortName = _this$node$attrs2.shortName;
|
|
344
343
|
|
|
345
|
-
//
|
|
346
|
-
//
|
|
347
|
-
//
|
|
348
|
-
// emojis continue to fall back to their Unicode text representation.
|
|
344
|
+
// Custom emojis (fallback text is not a single standard Unicode emoji)
|
|
345
|
+
// render the Unicode Replacement Character (U+FFFD) instead of the
|
|
346
|
+
// shortName text. Standard emojis fall back to their Unicode text.
|
|
349
347
|
var fallbackText = text || shortName;
|
|
350
|
-
var
|
|
351
|
-
var renderedFallbackText = useReplacementChar ? "\uFFFD" : fallbackText;
|
|
348
|
+
var renderedFallbackText = (0, _isSingleEmoji.isSingleEmoji)(fallbackText) ? fallbackText : "\uFFFD";
|
|
352
349
|
fallbackElement.innerText = renderedFallbackText;
|
|
353
350
|
fallbackElement.setAttribute('role', 'img');
|
|
354
351
|
fallbackElement.setAttribute('title', shortName);
|
|
@@ -13,7 +13,6 @@ import { VANILLA_TOOLTIP_DEFAULT_CLASS, VanillaTooltip } from '@atlaskit/editor-
|
|
|
13
13
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
14
14
|
import { defaultEmojiHeight } from '@atlaskit/emoji/constants';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
17
|
import { emojiToDom } from './emojiNodeSpec';
|
|
19
18
|
/**
|
|
@@ -305,13 +304,11 @@ export class EmojiNodeView {
|
|
|
305
304
|
shortName
|
|
306
305
|
} = this.node.attrs;
|
|
307
306
|
|
|
308
|
-
//
|
|
309
|
-
//
|
|
310
|
-
//
|
|
311
|
-
// emojis continue to fall back to their Unicode text representation.
|
|
307
|
+
// Custom emojis (fallback text is not a single standard Unicode emoji)
|
|
308
|
+
// render the Unicode Replacement Character (U+FFFD) instead of the
|
|
309
|
+
// shortName text. Standard emojis fall back to their Unicode text.
|
|
312
310
|
const fallbackText = text || shortName;
|
|
313
|
-
const
|
|
314
|
-
const renderedFallbackText = useReplacementChar ? '\uFFFD' : fallbackText;
|
|
311
|
+
const renderedFallbackText = isSingleEmoji(fallbackText) ? fallbackText : '\uFFFD';
|
|
315
312
|
fallbackElement.innerText = renderedFallbackText;
|
|
316
313
|
fallbackElement.setAttribute('role', 'img');
|
|
317
314
|
fallbackElement.setAttribute('title', shortName);
|
|
@@ -17,7 +17,6 @@ import { VANILLA_TOOLTIP_DEFAULT_CLASS, VanillaTooltip } from '@atlaskit/editor-
|
|
|
17
17
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
18
18
|
import { defaultEmojiHeight } from '@atlaskit/emoji/constants';
|
|
19
19
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
21
|
import { emojiToDom } from './emojiNodeSpec';
|
|
23
22
|
/**
|
|
@@ -335,13 +334,11 @@ export var EmojiNodeView = /*#__PURE__*/function () {
|
|
|
335
334
|
text = _this$node$attrs2.text,
|
|
336
335
|
shortName = _this$node$attrs2.shortName;
|
|
337
336
|
|
|
338
|
-
//
|
|
339
|
-
//
|
|
340
|
-
//
|
|
341
|
-
// emojis continue to fall back to their Unicode text representation.
|
|
337
|
+
// Custom emojis (fallback text is not a single standard Unicode emoji)
|
|
338
|
+
// render the Unicode Replacement Character (U+FFFD) instead of the
|
|
339
|
+
// shortName text. Standard emojis fall back to their Unicode text.
|
|
342
340
|
var fallbackText = text || shortName;
|
|
343
|
-
var
|
|
344
|
-
var renderedFallbackText = useReplacementChar ? "\uFFFD" : fallbackText;
|
|
341
|
+
var renderedFallbackText = isSingleEmoji(fallbackText) ? fallbackText : "\uFFFD";
|
|
345
342
|
fallbackElement.innerText = renderedFallbackText;
|
|
346
343
|
fallbackElement.setAttribute('role', 'img');
|
|
347
344
|
fallbackElement.setAttribute('title', shortName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
25
25
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
26
26
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
28
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
29
|
-
"@atlaskit/editor-plugin-base": "^
|
|
30
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
31
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
32
|
-
"@atlaskit/editor-plugin-metrics": "^
|
|
33
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
34
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^29.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-annotation": "^29.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-base": "^30.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-connectivity": "^29.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^31.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-metrics": "^30.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-type-ahead": "^30.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^23.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^4.5.0",
|
|
37
37
|
"@atlaskit/editor-ui-control-model": "^2.10.0",
|
|
38
38
|
"@atlaskit/emoji": "^73.0.0",
|
|
39
39
|
"@atlaskit/icon": "^38.0.0",
|
|
40
|
-
"@atlaskit/node-data-provider": "^
|
|
40
|
+
"@atlaskit/node-data-provider": "^30.0.0",
|
|
41
41
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-loadable": "^5.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^
|
|
53
|
+
"@atlaskit/editor-common": "^133.0.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"
|
|
@@ -68,9 +68,6 @@
|
|
|
68
68
|
},
|
|
69
69
|
"platform_editor_adf_with_localid": {
|
|
70
70
|
"type": "boolean"
|
|
71
|
-
},
|
|
72
|
-
"platform_editor_custom_emoji_unicode_fallback": {
|
|
73
|
-
"type": "boolean"
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
}
|