@atlaskit/editor-plugin-emoji 7.4.0 → 7.4.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 +18 -0
- package/dist/cjs/emojiPlugin.js +1 -2
- package/dist/es2019/emojiPlugin.js +1 -2
- package/dist/esm/emojiPlugin.js +1 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 7.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`21fe79119fe74`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/21fe79119fe74) -
|
|
8
|
+
EDITOR-2447 Bump adf-schema to 51.3.2
|
|
9
|
+
- [`f42616e52392b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f42616e52392b) -
|
|
10
|
+
[ux] EDITOR-2506 Disable emoji inserting when matched with ascii map
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 7.4.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`c28cd65d12c24`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c28cd65d12c24) -
|
|
18
|
+
EDITOR-2447 Bump adf-schema to 51.3.1
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 7.4.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/cjs/emojiPlugin.js
CHANGED
|
@@ -151,10 +151,9 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
151
151
|
var _ref5 = emojiPluginKey.getState(editorState) || {},
|
|
152
152
|
asciiMap = _ref5.asciiMap;
|
|
153
153
|
var normalizedQuery = TRIGGER.concat(query);
|
|
154
|
-
|
|
155
154
|
// if the query has space at the end
|
|
156
155
|
// check the ascii map for emojis
|
|
157
|
-
if (asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
156
|
+
if (!(options !== null && options !== void 0 && options.disableAutoformat && (0, _expValEquals.expValEquals)('platform_editor_plain_text_support', 'isEnabled', true)) && asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
158
157
|
var _emoji = asciiMap.get(normalizedQuery.trim());
|
|
159
158
|
return {
|
|
160
159
|
title: (_emoji === null || _emoji === void 0 ? void 0 : _emoji.name) || '',
|
|
@@ -130,10 +130,9 @@ export const emojiPlugin = ({
|
|
|
130
130
|
asciiMap
|
|
131
131
|
} = emojiPluginKey.getState(editorState) || {};
|
|
132
132
|
const normalizedQuery = TRIGGER.concat(query);
|
|
133
|
-
|
|
134
133
|
// if the query has space at the end
|
|
135
134
|
// check the ascii map for emojis
|
|
136
|
-
if (asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
135
|
+
if (!(options !== null && options !== void 0 && options.disableAutoformat && expValEquals('platform_editor_plain_text_support', 'isEnabled', true)) && asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
137
136
|
const emoji = asciiMap.get(normalizedQuery.trim());
|
|
138
137
|
return {
|
|
139
138
|
title: (emoji === null || emoji === void 0 ? void 0 : emoji.name) || '',
|
package/dist/esm/emojiPlugin.js
CHANGED
|
@@ -140,10 +140,9 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
140
140
|
var _ref5 = emojiPluginKey.getState(editorState) || {},
|
|
141
141
|
asciiMap = _ref5.asciiMap;
|
|
142
142
|
var normalizedQuery = TRIGGER.concat(query);
|
|
143
|
-
|
|
144
143
|
// if the query has space at the end
|
|
145
144
|
// check the ascii map for emojis
|
|
146
|
-
if (asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
145
|
+
if (!(options !== null && options !== void 0 && options.disableAutoformat && expValEquals('platform_editor_plain_text_support', 'isEnabled', true)) && asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
147
146
|
var _emoji = asciiMap.get(normalizedQuery.trim());
|
|
148
147
|
return {
|
|
149
148
|
title: (_emoji === null || _emoji === void 0 ? void 0 : _emoji.name) || '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.2",
|
|
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": "^51.3.
|
|
24
|
+
"@atlaskit/adf-schema": "^51.3.2",
|
|
25
25
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
26
26
|
"@atlaskit/editor-plugin-annotation": "^6.2.0",
|
|
27
27
|
"@atlaskit/editor-plugin-base": "^7.2.0",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@atlaskit/editor-plugin-metrics": "^7.1.0",
|
|
30
30
|
"@atlaskit/editor-plugin-type-ahead": "^6.5.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
32
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
32
|
+
"@atlaskit/editor-shared-styles": "^3.8.0",
|
|
33
33
|
"@atlaskit/emoji": "^69.6.0",
|
|
34
34
|
"@atlaskit/icon": "^28.5.0",
|
|
35
35
|
"@atlaskit/node-data-provider": "^7.2.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.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^13.18.0",
|
|
40
40
|
"@atlaskit/tokens": "^7.0.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.18.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0"
|
|
51
51
|
},
|