@atlaskit/editor-plugin-emoji 2.7.26 → 2.8.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 +18 -0
- package/dist/cjs/emojiPlugin.js +0 -4
- package/dist/cjs/nodeviews/emoji.js +1 -1
- package/dist/cjs/pm-plugins/ascii-input-rules.js +2 -10
- package/dist/cjs/ui/NdpEmoji.js +1 -1
- package/dist/es2019/emojiPlugin.js +0 -4
- package/dist/es2019/nodeviews/emoji.js +1 -1
- package/dist/es2019/pm-plugins/ascii-input-rules.js +2 -10
- package/dist/es2019/ui/NdpEmoji.js +1 -1
- package/dist/esm/emojiPlugin.js +0 -4
- package/dist/esm/nodeviews/emoji.js +1 -1
- package/dist/esm/pm-plugins/ascii-input-rules.js +2 -10
- package/dist/esm/ui/NdpEmoji.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 2.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 2.7.27
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 2.7.26
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/emojiPlugin.js
CHANGED
|
@@ -148,8 +148,6 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
148
148
|
}) : undefined;
|
|
149
149
|
return matchedItem;
|
|
150
150
|
},
|
|
151
|
-
// Ignored via go/ees005
|
|
152
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
153
151
|
selectItem: function selectItem(state, item, insert, _ref6) {
|
|
154
152
|
var _api$analytics3;
|
|
155
153
|
var mode = _ref6.mode;
|
|
@@ -398,8 +396,6 @@ var setAsciiMap = function setAsciiMap(asciiMap) {
|
|
|
398
396
|
* @param limitCount Number of function calls before `onRateReached` is called (per time period)
|
|
399
397
|
* @returns Wrapped function
|
|
400
398
|
*/
|
|
401
|
-
// Ignored via go/ees005
|
|
402
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
403
399
|
function createRateLimitReachedFunction(fn, limitTime, limitCount, onLimitReached) {
|
|
404
400
|
var lastCallTime = 0;
|
|
405
401
|
var callCount = 0;
|
|
@@ -16,7 +16,7 @@ var EmojiAssistiveTextComponent = /*#__PURE__*/_react.default.memo(function (_re
|
|
|
16
16
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
17
17
|
return (
|
|
18
18
|
/*#__PURE__*/
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
20
20
|
_react.default.createElement("span", {
|
|
21
21
|
style: {
|
|
22
22
|
fontSize: 0
|
|
@@ -43,10 +43,7 @@ function initMatcher(pluginInjectionApi) {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
var inputRuleHandler = function inputRuleHandler(editorAnalyticsAPI) {
|
|
46
|
-
return function (state, matchParts, start, end
|
|
47
|
-
// Ignored via go/ees005
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
49
|
-
) {
|
|
46
|
+
return function (state, matchParts, start, end) {
|
|
50
47
|
if (!matcher) {
|
|
51
48
|
return null;
|
|
52
49
|
}
|
|
@@ -155,8 +152,6 @@ var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
|
|
|
155
152
|
}]);
|
|
156
153
|
}(AsciiEmojiMatcher);
|
|
157
154
|
var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
|
|
158
|
-
// Ignored via go/ees005
|
|
159
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
160
155
|
function AsciiEmojiTransactionCreator(state, match, start, end, editorAnalyticsAPI) {
|
|
161
156
|
(0, _classCallCheck2.default)(this, AsciiEmojiTransactionCreator);
|
|
162
157
|
this.state = state;
|
|
@@ -229,10 +224,7 @@ var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
|
|
|
229
224
|
}]);
|
|
230
225
|
}();
|
|
231
226
|
var stateKey = exports.stateKey = new _state.PluginKey('asciiEmojiPlugin');
|
|
232
|
-
var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi
|
|
233
|
-
// Ignored via go/ees005
|
|
234
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
235
|
-
) {
|
|
227
|
+
var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) {
|
|
236
228
|
return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(function (plugin) {
|
|
237
229
|
return !!plugin;
|
|
238
230
|
});
|
package/dist/cjs/ui/NdpEmoji.js
CHANGED
|
@@ -51,7 +51,7 @@ var EmojiAssistiveTextComponent = /*#__PURE__*/_react.default.memo(function (_re
|
|
|
51
51
|
var emojiShortName = _ref.emojiShortName;
|
|
52
52
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
53
53
|
return (
|
|
54
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
55
55
|
(0, _react2.jsx)("span", {
|
|
56
56
|
style: {
|
|
57
57
|
fontSize: 0
|
|
@@ -128,8 +128,6 @@ export const emojiPlugin = ({
|
|
|
128
128
|
const matchedItem = isFullShortName(normalizedQuery) ? items.find(item => item.title.toLowerCase() === normalizedQuery) : undefined;
|
|
129
129
|
return matchedItem;
|
|
130
130
|
},
|
|
131
|
-
// Ignored via go/ees005
|
|
132
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
133
131
|
selectItem(state, item, insert, {
|
|
134
132
|
mode
|
|
135
133
|
}) {
|
|
@@ -360,8 +358,6 @@ const setAsciiMap = asciiMap => (state, dispatch) => {
|
|
|
360
358
|
* @param limitCount Number of function calls before `onRateReached` is called (per time period)
|
|
361
359
|
* @returns Wrapped function
|
|
362
360
|
*/
|
|
363
|
-
// Ignored via go/ees005
|
|
364
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
365
361
|
export function createRateLimitReachedFunction(fn, limitTime, limitCount, onLimitReached) {
|
|
366
362
|
let lastCallTime = 0;
|
|
367
363
|
let callCount = 0;
|
|
@@ -10,7 +10,7 @@ const EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(({
|
|
|
10
10
|
const intl = useIntl();
|
|
11
11
|
return (
|
|
12
12
|
/*#__PURE__*/
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
14
14
|
React.createElement("span", {
|
|
15
15
|
style: {
|
|
16
16
|
fontSize: 0
|
|
@@ -25,10 +25,7 @@ function initMatcher(pluginInjectionApi) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
const inputRuleHandler = editorAnalyticsAPI => (state, matchParts, start, end
|
|
29
|
-
// Ignored via go/ees005
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
31
|
-
) => {
|
|
28
|
+
const inputRuleHandler = editorAnalyticsAPI => (state, matchParts, start, end) => {
|
|
32
29
|
if (!matcher) {
|
|
33
30
|
return null;
|
|
34
31
|
}
|
|
@@ -112,8 +109,6 @@ class RecordingAsciiEmojiMatcher extends AsciiEmojiMatcher {
|
|
|
112
109
|
}
|
|
113
110
|
}
|
|
114
111
|
class AsciiEmojiTransactionCreator {
|
|
115
|
-
// Ignored via go/ees005
|
|
116
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
117
112
|
constructor(state, match, start, end, editorAnalyticsAPI) {
|
|
118
113
|
this.state = state;
|
|
119
114
|
this.match = match;
|
|
@@ -170,10 +165,7 @@ class AsciiEmojiTransactionCreator {
|
|
|
170
165
|
}
|
|
171
166
|
}
|
|
172
167
|
export const stateKey = new PluginKey('asciiEmojiPlugin');
|
|
173
|
-
const plugins = (schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi
|
|
174
|
-
// Ignored via go/ees005
|
|
175
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
176
|
-
) => {
|
|
168
|
+
const plugins = (schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) => {
|
|
177
169
|
return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(plugin => !!plugin);
|
|
178
170
|
};
|
|
179
171
|
export default plugins;
|
|
@@ -42,7 +42,7 @@ const EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(({
|
|
|
42
42
|
}) => {
|
|
43
43
|
const intl = useIntl();
|
|
44
44
|
return (
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
46
46
|
jsx("span", {
|
|
47
47
|
style: {
|
|
48
48
|
fontSize: 0
|
package/dist/esm/emojiPlugin.js
CHANGED
|
@@ -136,8 +136,6 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
136
136
|
}) : undefined;
|
|
137
137
|
return matchedItem;
|
|
138
138
|
},
|
|
139
|
-
// Ignored via go/ees005
|
|
140
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
141
139
|
selectItem: function selectItem(state, item, insert, _ref6) {
|
|
142
140
|
var _api$analytics3;
|
|
143
141
|
var mode = _ref6.mode;
|
|
@@ -386,8 +384,6 @@ var setAsciiMap = function setAsciiMap(asciiMap) {
|
|
|
386
384
|
* @param limitCount Number of function calls before `onRateReached` is called (per time period)
|
|
387
385
|
* @returns Wrapped function
|
|
388
386
|
*/
|
|
389
|
-
// Ignored via go/ees005
|
|
390
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
391
387
|
export function createRateLimitReachedFunction(fn, limitTime, limitCount, onLimitReached) {
|
|
392
388
|
var lastCallTime = 0;
|
|
393
389
|
var callCount = 0;
|
|
@@ -9,7 +9,7 @@ var EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
9
9
|
var intl = useIntl();
|
|
10
10
|
return (
|
|
11
11
|
/*#__PURE__*/
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
13
13
|
React.createElement("span", {
|
|
14
14
|
style: {
|
|
15
15
|
fontSize: 0
|
|
@@ -34,10 +34,7 @@ function initMatcher(pluginInjectionApi) {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
var inputRuleHandler = function inputRuleHandler(editorAnalyticsAPI) {
|
|
37
|
-
return function (state, matchParts, start, end
|
|
38
|
-
// Ignored via go/ees005
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
40
|
-
) {
|
|
37
|
+
return function (state, matchParts, start, end) {
|
|
41
38
|
if (!matcher) {
|
|
42
39
|
return null;
|
|
43
40
|
}
|
|
@@ -146,8 +143,6 @@ var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
|
|
|
146
143
|
}]);
|
|
147
144
|
}(AsciiEmojiMatcher);
|
|
148
145
|
var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
|
|
149
|
-
// Ignored via go/ees005
|
|
150
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
151
146
|
function AsciiEmojiTransactionCreator(state, match, start, end, editorAnalyticsAPI) {
|
|
152
147
|
_classCallCheck(this, AsciiEmojiTransactionCreator);
|
|
153
148
|
this.state = state;
|
|
@@ -220,10 +215,7 @@ var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
|
|
|
220
215
|
}]);
|
|
221
216
|
}();
|
|
222
217
|
export var stateKey = new PluginKey('asciiEmojiPlugin');
|
|
223
|
-
var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi
|
|
224
|
-
// Ignored via go/ees005
|
|
225
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
226
|
-
) {
|
|
218
|
+
var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) {
|
|
227
219
|
return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(function (plugin) {
|
|
228
220
|
return !!plugin;
|
|
229
221
|
});
|
package/dist/esm/ui/NdpEmoji.js
CHANGED
|
@@ -41,7 +41,7 @@ var EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
41
41
|
var emojiShortName = _ref.emojiShortName;
|
|
42
42
|
var intl = useIntl();
|
|
43
43
|
return (
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
45
45
|
jsx("span", {
|
|
46
46
|
style: {
|
|
47
47
|
fontSize: 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
24
|
-
"@atlaskit/editor-common": "^99.
|
|
24
|
+
"@atlaskit/editor-common": "^99.6.0",
|
|
25
25
|
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
26
|
-
"@atlaskit/editor-plugin-annotation": "1.
|
|
26
|
+
"@atlaskit/editor-plugin-annotation": "1.27.0",
|
|
27
27
|
"@atlaskit/editor-plugin-base": "^2.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
29
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
29
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.12.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
31
|
-
"@atlaskit/emoji": "^67.
|
|
32
|
-
"@atlaskit/icon": "^23.
|
|
33
|
-
"@atlaskit/node-data-provider": "^3.
|
|
31
|
+
"@atlaskit/emoji": "^67.13.0",
|
|
32
|
+
"@atlaskit/icon": "^23.5.0",
|
|
33
|
+
"@atlaskit/node-data-provider": "^3.1.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
35
35
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@af/visual-regression": "*",
|
|
47
47
|
"@atlaskit/editor-plugin-composition": "^1.2.0",
|
|
48
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
48
|
+
"@atlaskit/editor-plugin-decorations": "^1.4.0",
|
|
49
49
|
"@atlaskit/ssr": "*",
|
|
50
|
-
"@atlaskit/util-data-test": "^
|
|
50
|
+
"@atlaskit/util-data-test": "^18.0.0",
|
|
51
51
|
"@atlaskit/visual-regression": "*",
|
|
52
|
-
"@testing-library/react": "^
|
|
52
|
+
"@testing-library/react": "^13.4.0",
|
|
53
53
|
"typescript": "~5.4.2",
|
|
54
54
|
"wait-for-expect": "^1.2.0"
|
|
55
55
|
},
|