@atlaskit/editor-plugin-emoji 8.1.4 → 8.1.6
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 8.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b30e41f7bbb3b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b30e41f7bbb3b) -
|
|
8
|
+
Cleanup platform_editor_wait_for_space_after_ascii_emoji
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.1.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.1.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -29,7 +29,7 @@ function inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi, disable
|
|
|
29
29
|
}
|
|
30
30
|
if (schema.nodes.emoji) {
|
|
31
31
|
initMatcher(pluginInjectionApi);
|
|
32
|
-
var asciiEmojiRule = (0, _utils.createRule)(
|
|
32
|
+
var asciiEmojiRule = (0, _utils.createRule)(AsciiEmojiMatcher.REGEX, inputRuleHandler(editorAnalyticsAPI));
|
|
33
33
|
return new _safePlugin.SafePlugin((0, _prosemirrorInputRules.createPlugin)('emoji', [asciiEmojiRule]));
|
|
34
34
|
}
|
|
35
35
|
return;
|
|
@@ -134,11 +134,7 @@ var AsciiEmojiMatcher = /*#__PURE__*/function () {
|
|
|
134
134
|
// New behavior: All emoticons require whitespace after them
|
|
135
135
|
// Ignored via go/ees005
|
|
136
136
|
// eslint-disable-next-line require-unicode-regexp
|
|
137
|
-
(0, _defineProperty2.default)(AsciiEmojiMatcher, "
|
|
138
|
-
// Legacy behavior: Non-colon emoticons don't require whitespace
|
|
139
|
-
// Ignored via go/ees005
|
|
140
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
141
|
-
(0, _defineProperty2.default)(AsciiEmojiMatcher, "REGEX_LEGACY", new RegExp("((?:^|[\\s".concat(_prosemirrorInputRules.leafNodeReplacementCharacter, "])(?:\\(*?))(\\(?)([^:\\s").concat(_prosemirrorInputRules.leafNodeReplacementCharacter, "\\(]\\S{1,3}|:\\S{1,3}( ))$")));
|
|
137
|
+
(0, _defineProperty2.default)(AsciiEmojiMatcher, "REGEX", new RegExp("((?:^|[\\s".concat(_prosemirrorInputRules.leafNodeReplacementCharacter, "])(?:\\(*?))(\\(?)([^:\\s").concat(_prosemirrorInputRules.leafNodeReplacementCharacter, "\\(]\\S{1,3}|:\\S{1,3})([\\s\\t\\n])$")));
|
|
142
138
|
var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
|
|
143
139
|
function RecordingAsciiEmojiMatcher(emojiProvider, asciiToEmojiMap) {
|
|
144
140
|
var _this;
|
|
@@ -11,7 +11,7 @@ export function inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi,
|
|
|
11
11
|
}
|
|
12
12
|
if (schema.nodes.emoji) {
|
|
13
13
|
initMatcher(pluginInjectionApi);
|
|
14
|
-
const asciiEmojiRule = createRule(
|
|
14
|
+
const asciiEmojiRule = createRule(AsciiEmojiMatcher.REGEX, inputRuleHandler(editorAnalyticsAPI));
|
|
15
15
|
return new SafePlugin(createPlugin('emoji', [asciiEmojiRule]));
|
|
16
16
|
}
|
|
17
17
|
return;
|
|
@@ -98,11 +98,7 @@ class AsciiEmojiMatcher {
|
|
|
98
98
|
// New behavior: All emoticons require whitespace after them
|
|
99
99
|
// Ignored via go/ees005
|
|
100
100
|
// eslint-disable-next-line require-unicode-regexp
|
|
101
|
-
_defineProperty(AsciiEmojiMatcher, "
|
|
102
|
-
// Legacy behavior: Non-colon emoticons don't require whitespace
|
|
103
|
-
// Ignored via go/ees005
|
|
104
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
105
|
-
_defineProperty(AsciiEmojiMatcher, "REGEX_LEGACY", new RegExp(`((?:^|[\\s${leafNodeReplacementCharacter}])(?:\\(*?))(\\(?)([^:\\s${leafNodeReplacementCharacter}\\(]\\S{1,3}|:\\S{1,3}( ))$`));
|
|
101
|
+
_defineProperty(AsciiEmojiMatcher, "REGEX", new RegExp(`((?:^|[\\s${leafNodeReplacementCharacter}])(?:\\(*?))(\\(?)([^:\\s${leafNodeReplacementCharacter}\\(]\\S{1,3}|:\\S{1,3})([\\s\\t\\n])$`));
|
|
106
102
|
class RecordingAsciiEmojiMatcher extends AsciiEmojiMatcher {
|
|
107
103
|
constructor(emojiProvider, asciiToEmojiMap) {
|
|
108
104
|
super(asciiToEmojiMap);
|
|
@@ -21,7 +21,7 @@ export function inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi,
|
|
|
21
21
|
}
|
|
22
22
|
if (schema.nodes.emoji) {
|
|
23
23
|
initMatcher(pluginInjectionApi);
|
|
24
|
-
var asciiEmojiRule = createRule(
|
|
24
|
+
var asciiEmojiRule = createRule(AsciiEmojiMatcher.REGEX, inputRuleHandler(editorAnalyticsAPI));
|
|
25
25
|
return new SafePlugin(createPlugin('emoji', [asciiEmojiRule]));
|
|
26
26
|
}
|
|
27
27
|
return;
|
|
@@ -126,11 +126,7 @@ var AsciiEmojiMatcher = /*#__PURE__*/function () {
|
|
|
126
126
|
// New behavior: All emoticons require whitespace after them
|
|
127
127
|
// Ignored via go/ees005
|
|
128
128
|
// eslint-disable-next-line require-unicode-regexp
|
|
129
|
-
_defineProperty(AsciiEmojiMatcher, "
|
|
130
|
-
// Legacy behavior: Non-colon emoticons don't require whitespace
|
|
131
|
-
// Ignored via go/ees005
|
|
132
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
133
|
-
_defineProperty(AsciiEmojiMatcher, "REGEX_LEGACY", new RegExp("((?:^|[\\s".concat(leafNodeReplacementCharacter, "])(?:\\(*?))(\\(?)([^:\\s").concat(leafNodeReplacementCharacter, "\\(]\\S{1,3}|:\\S{1,3}( ))$")));
|
|
129
|
+
_defineProperty(AsciiEmojiMatcher, "REGEX", new RegExp("((?:^|[\\s".concat(leafNodeReplacementCharacter, "])(?:\\(*?))(\\(?)([^:\\s").concat(leafNodeReplacementCharacter, "\\(]\\S{1,3}|:\\S{1,3})([\\s\\t\\n])$")));
|
|
134
130
|
var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
|
|
135
131
|
function RecordingAsciiEmojiMatcher(emojiProvider, asciiToEmojiMap) {
|
|
136
132
|
var _this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.6",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-metrics": "^8.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-type-ahead": "^7.0.0",
|
|
32
|
-
"@atlaskit/editor-prosemirror": "^7.
|
|
32
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
33
33
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
34
34
|
"@atlaskit/emoji": "^69.10.0",
|
|
35
35
|
"@atlaskit/icon": "^30.0.0",
|
|
36
36
|
"@atlaskit/node-data-provider": "^8.1.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": "^19.0.0",
|
|
40
40
|
"@atlaskit/tokens": "^11.0.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1",
|