@atlaskit/editor-plugin-emoji 2.7.18 → 2.7.20

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
+ ## 2.7.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.7.19
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 2.7.18
4
16
 
5
17
  ### Patch Changes
@@ -148,6 +148,8 @@ 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
151
153
  selectItem: function selectItem(state, item, insert, _ref6) {
152
154
  var _api$analytics3;
153
155
  var mode = _ref6.mode;
@@ -383,6 +385,8 @@ var setAsciiMap = function setAsciiMap(asciiMap) {
383
385
  * @param limitCount Number of function calls before `onRateReached` is called (per time period)
384
386
  * @returns Wrapped function
385
387
  */
388
+ // Ignored via go/ees005
389
+ // eslint-disable-next-line @typescript-eslint/max-params
386
390
  function createRateLimitReachedFunction(fn, limitTime, limitCount, onLimitReached) {
387
391
  var lastCallTime = 0;
388
392
  var callCount = 0;
@@ -43,7 +43,10 @@ function initMatcher(pluginInjectionApi) {
43
43
  });
44
44
  }
45
45
  var inputRuleHandler = function inputRuleHandler(editorAnalyticsAPI) {
46
- return function (state, matchParts, start, end) {
46
+ return function (state, matchParts, start, end
47
+ // Ignored via go/ees005
48
+ // eslint-disable-next-line @typescript-eslint/max-params
49
+ ) {
47
50
  if (!matcher) {
48
51
  return null;
49
52
  }
@@ -128,6 +131,8 @@ var AsciiEmojiMatcher = /*#__PURE__*/function () {
128
131
  *
129
132
  * See https://regex101.com/r/HRS9O2/4
130
133
  */
134
+ // Ignored via go/ees005
135
+ // eslint-disable-next-line require-unicode-regexp
131
136
  (0, _defineProperty2.default)(AsciiEmojiMatcher, "REGEX", new RegExp("((?:^|[\\s".concat(_prosemirrorInputRules.leafNodeReplacementCharacter, "])(?:\\(*?))(\\(?)([^:\\s").concat(_prosemirrorInputRules.leafNodeReplacementCharacter, "\\(]\\S{1,3}|:\\S{1,3}( ))$")));
132
137
  var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
133
138
  function RecordingAsciiEmojiMatcher(emojiProvider, asciiToEmojiMap) {
@@ -150,6 +155,8 @@ var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
150
155
  }]);
151
156
  }(AsciiEmojiMatcher);
152
157
  var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
158
+ // Ignored via go/ees005
159
+ // eslint-disable-next-line @typescript-eslint/max-params
153
160
  function AsciiEmojiTransactionCreator(state, match, start, end, editorAnalyticsAPI) {
154
161
  (0, _classCallCheck2.default)(this, AsciiEmojiTransactionCreator);
155
162
  this.state = state;
@@ -222,7 +229,10 @@ var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
222
229
  }]);
223
230
  }();
224
231
  var stateKey = exports.stateKey = new _state.PluginKey('asciiEmojiPlugin');
225
- var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) {
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
+ ) {
226
236
  return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(function (plugin) {
227
237
  return !!plugin;
228
238
  });
@@ -19,5 +19,8 @@ var clickSelectWrapperStyle = (0, _react.css)(_templateObject || (_templateObjec
19
19
  function EmojiNode(props) {
20
20
  return (0, _react.jsx)("span", {
21
21
  css: clickSelectWrapperStyle
22
- }, (0, _react.jsx)(_emoji.Emoji, props));
22
+ }, (0, _react.jsx)(_emoji.Emoji
23
+ // Ignored via go/ees005
24
+ // eslint-disable-next-line react/jsx-props-no-spreading
25
+ , props));
23
26
  }
@@ -128,6 +128,8 @@ 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
131
133
  selectItem(state, item, insert, {
132
134
  mode
133
135
  }) {
@@ -338,6 +340,8 @@ const setAsciiMap = asciiMap => (state, dispatch) => {
338
340
  * @param limitCount Number of function calls before `onRateReached` is called (per time period)
339
341
  * @returns Wrapped function
340
342
  */
343
+ // Ignored via go/ees005
344
+ // eslint-disable-next-line @typescript-eslint/max-params
341
345
  export function createRateLimitReachedFunction(fn, limitTime, limitCount, onLimitReached) {
342
346
  let lastCallTime = 0;
343
347
  let callCount = 0;
@@ -25,7 +25,10 @@ function initMatcher(pluginInjectionApi) {
25
25
  }
26
26
  });
27
27
  }
28
- const inputRuleHandler = editorAnalyticsAPI => (state, matchParts, start, end) => {
28
+ const inputRuleHandler = editorAnalyticsAPI => (state, matchParts, start, end
29
+ // Ignored via go/ees005
30
+ // eslint-disable-next-line @typescript-eslint/max-params
31
+ ) => {
29
32
  if (!matcher) {
30
33
  return null;
31
34
  }
@@ -92,6 +95,8 @@ class AsciiEmojiMatcher {
92
95
  *
93
96
  * See https://regex101.com/r/HRS9O2/4
94
97
  */
98
+ // Ignored via go/ees005
99
+ // eslint-disable-next-line require-unicode-regexp
95
100
  _defineProperty(AsciiEmojiMatcher, "REGEX", new RegExp(`((?:^|[\\s${leafNodeReplacementCharacter}])(?:\\(*?))(\\(?)([^:\\s${leafNodeReplacementCharacter}\\(]\\S{1,3}|:\\S{1,3}( ))$`));
96
101
  class RecordingAsciiEmojiMatcher extends AsciiEmojiMatcher {
97
102
  constructor(emojiProvider, asciiToEmojiMap) {
@@ -107,6 +112,8 @@ class RecordingAsciiEmojiMatcher extends AsciiEmojiMatcher {
107
112
  }
108
113
  }
109
114
  class AsciiEmojiTransactionCreator {
115
+ // Ignored via go/ees005
116
+ // eslint-disable-next-line @typescript-eslint/max-params
110
117
  constructor(state, match, start, end, editorAnalyticsAPI) {
111
118
  this.state = state;
112
119
  this.match = match;
@@ -163,7 +170,10 @@ class AsciiEmojiTransactionCreator {
163
170
  }
164
171
  }
165
172
  export const stateKey = new PluginKey('asciiEmojiPlugin');
166
- const plugins = (schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) => {
173
+ const plugins = (schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi
174
+ // Ignored via go/ees005
175
+ // eslint-disable-next-line @typescript-eslint/max-params
176
+ ) => {
167
177
  return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(plugin => !!plugin);
168
178
  };
169
179
  export default plugins;
@@ -14,5 +14,8 @@ const clickSelectWrapperStyle = css`
14
14
  export default function EmojiNode(props) {
15
15
  return jsx("span", {
16
16
  css: clickSelectWrapperStyle
17
- }, jsx(Emoji, props));
17
+ }, jsx(Emoji
18
+ // Ignored via go/ees005
19
+ // eslint-disable-next-line react/jsx-props-no-spreading
20
+ , props));
18
21
  }
@@ -136,6 +136,8 @@ 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
139
141
  selectItem: function selectItem(state, item, insert, _ref6) {
140
142
  var _api$analytics3;
141
143
  var mode = _ref6.mode;
@@ -371,6 +373,8 @@ var setAsciiMap = function setAsciiMap(asciiMap) {
371
373
  * @param limitCount Number of function calls before `onRateReached` is called (per time period)
372
374
  * @returns Wrapped function
373
375
  */
376
+ // Ignored via go/ees005
377
+ // eslint-disable-next-line @typescript-eslint/max-params
374
378
  export function createRateLimitReachedFunction(fn, limitTime, limitCount, onLimitReached) {
375
379
  var lastCallTime = 0;
376
380
  var callCount = 0;
@@ -34,7 +34,10 @@ function initMatcher(pluginInjectionApi) {
34
34
  });
35
35
  }
36
36
  var inputRuleHandler = function inputRuleHandler(editorAnalyticsAPI) {
37
- return function (state, matchParts, start, end) {
37
+ return function (state, matchParts, start, end
38
+ // Ignored via go/ees005
39
+ // eslint-disable-next-line @typescript-eslint/max-params
40
+ ) {
38
41
  if (!matcher) {
39
42
  return null;
40
43
  }
@@ -119,6 +122,8 @@ var AsciiEmojiMatcher = /*#__PURE__*/function () {
119
122
  *
120
123
  * See https://regex101.com/r/HRS9O2/4
121
124
  */
125
+ // Ignored via go/ees005
126
+ // eslint-disable-next-line require-unicode-regexp
122
127
  _defineProperty(AsciiEmojiMatcher, "REGEX", new RegExp("((?:^|[\\s".concat(leafNodeReplacementCharacter, "])(?:\\(*?))(\\(?)([^:\\s").concat(leafNodeReplacementCharacter, "\\(]\\S{1,3}|:\\S{1,3}( ))$")));
123
128
  var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
124
129
  function RecordingAsciiEmojiMatcher(emojiProvider, asciiToEmojiMap) {
@@ -141,6 +146,8 @@ var RecordingAsciiEmojiMatcher = /*#__PURE__*/function (_AsciiEmojiMatcher2) {
141
146
  }]);
142
147
  }(AsciiEmojiMatcher);
143
148
  var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
149
+ // Ignored via go/ees005
150
+ // eslint-disable-next-line @typescript-eslint/max-params
144
151
  function AsciiEmojiTransactionCreator(state, match, start, end, editorAnalyticsAPI) {
145
152
  _classCallCheck(this, AsciiEmojiTransactionCreator);
146
153
  this.state = state;
@@ -213,7 +220,10 @@ var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
213
220
  }]);
214
221
  }();
215
222
  export var stateKey = new PluginKey('asciiEmojiPlugin');
216
- var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) {
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
+ ) {
217
227
  return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(function (plugin) {
218
228
  return !!plugin;
219
229
  });
@@ -13,5 +13,8 @@ var clickSelectWrapperStyle = css(_templateObject || (_templateObject = _taggedT
13
13
  export default function EmojiNode(props) {
14
14
  return jsx("span", {
15
15
  css: clickSelectWrapperStyle
16
- }, jsx(Emoji, props));
16
+ }, jsx(Emoji
17
+ // Ignored via go/ees005
18
+ // eslint-disable-next-line react/jsx-props-no-spreading
19
+ , props));
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "2.7.18",
3
+ "version": "2.7.20",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@atlaskit/adf-schema": "^46.1.0",
24
- "@atlaskit/editor-common": "^97.0.0",
24
+ "@atlaskit/editor-common": "^97.2.0",
25
25
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
26
- "@atlaskit/editor-plugin-annotation": "1.26.6",
26
+ "@atlaskit/editor-plugin-annotation": "1.26.8",
27
27
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
28
28
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
29
29
  "@atlaskit/editor-prosemirror": "6.2.1",