@atlaskit/editor-plugin-emoji 1.0.4 → 1.0.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,17 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
14
+
3
15
  ## 1.0.4
4
16
 
5
17
  ### Patch Changes
@@ -242,8 +242,9 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
242
242
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconEmoji, null);
243
243
  },
244
244
  action: function action(insert, state) {
245
+ var _api$typeAhead2;
245
246
  var tr = insert(undefined);
246
- api === null || api === void 0 || api.typeAhead.actions.openAtTransaction({
247
+ api === null || api === void 0 || (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 || _api$typeAhead2.actions.openAtTransaction({
247
248
  triggerHandler: typeAhead,
248
249
  inputMethod: _analytics.INPUT_METHOD.QUICK_INSERT
249
250
  })(tr);
@@ -222,8 +222,9 @@ export const emojiPlugin = ({
222
222
  keyshortcut: ':',
223
223
  icon: () => /*#__PURE__*/React.createElement(IconEmoji, null),
224
224
  action(insert, state) {
225
+ var _api$typeAhead2;
225
226
  const tr = insert(undefined);
226
- api === null || api === void 0 ? void 0 : api.typeAhead.actions.openAtTransaction({
227
+ api === null || api === void 0 ? void 0 : (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 ? void 0 : _api$typeAhead2.actions.openAtTransaction({
227
228
  triggerHandler: typeAhead,
228
229
  inputMethod: INPUT_METHOD.QUICK_INSERT
229
230
  })(tr);
@@ -229,8 +229,9 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
229
229
  return /*#__PURE__*/React.createElement(IconEmoji, null);
230
230
  },
231
231
  action: function action(insert, state) {
232
+ var _api$typeAhead2;
232
233
  var tr = insert(undefined);
233
- api === null || api === void 0 || api.typeAhead.actions.openAtTransaction({
234
+ api === null || api === void 0 || (_api$typeAhead2 = api.typeAhead) === null || _api$typeAhead2 === void 0 || _api$typeAhead2.actions.openAtTransaction({
234
235
  triggerHandler: typeAhead,
235
236
  inputMethod: INPUT_METHOD.QUICK_INSERT
236
237
  })(tr);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^35.3.0",
25
- "@atlaskit/editor-common": "^76.39.0",
25
+ "@atlaskit/editor-common": "^77.0.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
27
27
  "@atlaskit/editor-plugin-type-ahead": "^0.9.0",
28
28
  "@atlaskit/editor-prosemirror": "1.1.0",