@atlaskit/editor-plugin-mentions 2.10.7 → 2.10.8

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,11 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 2.10.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.10.7
4
10
 
5
11
  ### Patch Changes
@@ -23,7 +23,7 @@ var ACTIONS = {
23
23
  SET_PROVIDER: 'SET_PROVIDER'
24
24
  };
25
25
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
26
- var PACKAGE_VERSION = "2.10.7";
26
+ var PACKAGE_VERSION = "2.10.8";
27
27
  var setProvider = function setProvider(provider) {
28
28
  return function (state, dispatch) {
29
29
  if (dispatch) {
@@ -8,10 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
14
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
15
  var _react = _interopRequireWildcard(require("react"));
17
16
  var _reactIntlNext = require("react-intl-next");
@@ -20,19 +19,17 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
20
19
  var _mention = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/mention"));
21
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
21
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
22
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
24
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
24
  var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
26
- (0, _inherits2.default)(ToolbarMention, _PureComponent);
27
- var _super = _createSuper(ToolbarMention);
28
25
  function ToolbarMention() {
29
26
  var _this;
30
27
  (0, _classCallCheck2.default)(this, ToolbarMention);
31
28
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
32
29
  args[_key] = arguments[_key];
33
30
  }
34
- _this = _super.call.apply(_super, [this].concat(args));
35
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleInsertMention", function () {
31
+ _this = _callSuper(this, ToolbarMention, [].concat(args));
32
+ (0, _defineProperty2.default)(_this, "handleInsertMention", function () {
36
33
  if (!_this.props.editorView) {
37
34
  return false;
38
35
  }
@@ -41,7 +38,8 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
41
38
  });
42
39
  return _this;
43
40
  }
44
- (0, _createClass2.default)(ToolbarMention, [{
41
+ (0, _inherits2.default)(ToolbarMention, _PureComponent);
42
+ return (0, _createClass2.default)(ToolbarMention, [{
45
43
  key: "render",
46
44
  value: function render() {
47
45
  var mentionStringTranslated = this.props.intl.formatMessage(_messages.mentionMessages.mentionsIconLabel);
@@ -58,6 +56,5 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
58
56
  });
59
57
  }
60
58
  }]);
61
- return ToolbarMention;
62
59
  }(_react.PureComponent);
63
60
  var _default = exports.default = (0, _reactIntlNext.injectIntl)(ToolbarMention);
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { mentionsPlugin } from './mentionsPlugin';
@@ -13,7 +13,7 @@ const ACTIONS = {
13
13
  SET_PROVIDER: 'SET_PROVIDER'
14
14
  };
15
15
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
16
- const PACKAGE_VERSION = "2.10.7";
16
+ const PACKAGE_VERSION = "2.10.8";
17
17
  const setProvider = provider => (state, dispatch) => {
18
18
  if (dispatch) {
19
19
  dispatch(state.tr.setMeta(mentionPluginKey, {
package/dist/esm/index.js CHANGED
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { mentionsPlugin } from './mentionsPlugin';
@@ -16,7 +16,7 @@ var ACTIONS = {
16
16
  SET_PROVIDER: 'SET_PROVIDER'
17
17
  };
18
18
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
19
- var PACKAGE_VERSION = "2.10.7";
19
+ var PACKAGE_VERSION = "2.10.8";
20
20
  var setProvider = function setProvider(provider) {
21
21
  return function (state, dispatch) {
22
22
  if (dispatch) {
@@ -1,11 +1,10 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
9
  import React, { PureComponent } from 'react';
11
10
  import { injectIntl } from 'react-intl-next';
@@ -13,16 +12,14 @@ import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
13
12
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
14
13
  import MentionIcon from '@atlaskit/icon/glyph/editor/mention';
15
14
  var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
16
- _inherits(ToolbarMention, _PureComponent);
17
- var _super = _createSuper(ToolbarMention);
18
15
  function ToolbarMention() {
19
16
  var _this;
20
17
  _classCallCheck(this, ToolbarMention);
21
18
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
22
19
  args[_key] = arguments[_key];
23
20
  }
24
- _this = _super.call.apply(_super, [this].concat(args));
25
- _defineProperty(_assertThisInitialized(_this), "handleInsertMention", function () {
21
+ _this = _callSuper(this, ToolbarMention, [].concat(args));
22
+ _defineProperty(_this, "handleInsertMention", function () {
26
23
  if (!_this.props.editorView) {
27
24
  return false;
28
25
  }
@@ -31,7 +28,8 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
31
28
  });
32
29
  return _this;
33
30
  }
34
- _createClass(ToolbarMention, [{
31
+ _inherits(ToolbarMention, _PureComponent);
32
+ return _createClass(ToolbarMention, [{
35
33
  key: "render",
36
34
  value: function render() {
37
35
  var mentionStringTranslated = this.props.intl.formatMessage(messages.mentionsIconLabel);
@@ -48,6 +46,5 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
48
46
  });
49
47
  }
50
48
  }]);
51
- return ToolbarMention;
52
49
  }(PureComponent);
53
50
  export default injectIntl(ToolbarMention);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "2.10.7",
3
+ "version": "2.10.8",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,16 +32,16 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
- "@atlaskit/editor-common": "^96.0.0",
35
+ "@atlaskit/editor-common": "^97.0.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
37
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
38
38
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
39
39
  "@atlaskit/editor-prosemirror": "6.2.1",
40
- "@atlaskit/icon": "^23.0.0",
40
+ "@atlaskit/icon": "^23.1.0",
41
41
  "@atlaskit/mention": "^23.4.0",
42
42
  "@atlaskit/platform-feature-flags": "^0.3.0",
43
43
  "@atlaskit/theme": "^14.0.0",
44
- "@atlaskit/tokens": "^2.4.0",
44
+ "@atlaskit/tokens": "^2.5.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@emotion/react": "^11.7.1",
47
47
  "uuid": "^3.1.0"