@atlaskit/editor-plugin-mentions 10.0.10 → 10.0.11

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,13 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 10.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
8
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
9
+ - Updated dependencies
10
+
3
11
  ## 10.0.10
4
12
 
5
13
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.mentionNodeSpec = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
- var _colors = require("@atlaskit/theme/colors");
12
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
13
  var isSSR = Boolean(process.env.REACT_SSR);
@@ -37,7 +36,7 @@ var mentionNodeSpec = exports.mentionNodeSpec = function mentionNodeSpec() {
37
36
  style: (0, _lazyNodeView.convertToInlineCss)({
38
37
  display: 'inline',
39
38
  border: "1px solid transparent",
40
- background: "var(--ds-background-neutral, ".concat(_colors.N30A, ")"),
39
+ background: "var(--ds-background-neutral, #0515240F)",
41
40
  color: "var(--ds-text-subtle, #505258)",
42
41
  borderRadius: '20px',
43
42
  cursor: 'pointer',
@@ -23,7 +23,7 @@ var ACTIONS = exports.ACTIONS = {
23
23
  SET_PROVIDER: 'SET_PROVIDER'
24
24
  };
25
25
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
26
- var PACKAGE_VERSION = "0.0.0-development";
26
+ var PACKAGE_VERSION = "10.0.10";
27
27
  var setProvider = function setProvider(provider) {
28
28
  return function (state, dispatch) {
29
29
  if (dispatch) {
@@ -9,7 +9,6 @@ exports.mentionPlaceholderPluginKey = void 0;
9
9
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
10
10
  var _state = require("@atlaskit/editor-prosemirror/state");
11
11
  var _view = require("@atlaskit/editor-prosemirror/view");
12
- var _colors = require("@atlaskit/theme/colors");
13
12
  var mentionPlaceholderPluginKey = exports.mentionPlaceholderPluginKey = new _state.PluginKey('mentionPlaceholderPlugin');
14
13
  var MENTION_PLACEHOLDER_ACTIONS = exports.MENTION_PLACEHOLDER_ACTIONS = {
15
14
  SHOW_PLACEHOLDER: 'SHOW_PLACEHOLDER',
@@ -43,7 +42,7 @@ function createMentionPlaceholderPlugin() {
43
42
  var selection = state.selection;
44
43
  var span = document.createElement('span');
45
44
  span.textContent = pluginState.placeholder;
46
- span.style.setProperty('color', "var(--ds-text-accent-blue, ".concat(_colors.B400, ")"));
45
+ span.style.setProperty('color', "var(--ds-text-accent-blue, #1558BC)");
47
46
  return _view.DecorationSet.create(state.doc, [_view.Decoration.widget(selection.from, span)]);
48
47
  }
49
48
  return null;
@@ -19,13 +19,13 @@
19
19
  ._4cvr1h6o{align-items:center}
20
20
  ._4t3i14no{height:36px}
21
21
  ._80omtlke{cursor:pointer}
22
+ ._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
22
23
  ._bfhk1j28{background-color:transparent}
23
- ._bfhk2tgk{background-color:var(--_1y60f1n)}
24
24
  ._ca0q12x7{padding-top:var(--ds-space-075,6px)}
25
25
  ._i0dl1wug{flex-basis:auto}
26
26
  ._i0dlf1ug{flex-basis:0%}
27
27
  ._kqswh2mm{position:relative}
28
28
  ._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
29
29
  ._s7n4nkob{vertical-align:middle}
30
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
30
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
31
31
  ._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
@@ -16,7 +16,6 @@ var _reactIntlNext = require("react-intl-next");
16
16
  var _messages = require("@atlaskit/editor-common/messages");
17
17
  var _email = _interopRequireDefault(require("@atlaskit/icon/core/email"));
18
18
  var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
19
- var _colors = require("@atlaskit/theme/colors");
20
19
  var _userPicker = require("@atlaskit/user-picker");
21
20
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
21
  var mentionItemStyle = null;
@@ -25,7 +24,7 @@ var style = {
25
24
  byline: "_19pkv77o",
26
25
  rowStyle: "_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _2lx2vrvc _1n261g80 _ca0q12x7 _n3td12x7 _19bvutpp _u5f3utpp _1bto1l2s _s7n4nkob",
27
26
  avatar: "_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no",
28
- nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syaz1n3s",
27
+ nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syazazsu",
29
28
  capitalize: "_1p1d1dk0"
30
29
  };
31
30
  var VALID_OPTION = 'VALID';
@@ -175,10 +174,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
175
174
  onMouseEnter: onItemMouseEnter,
176
175
  onFocus: onItemFocus,
177
176
  "data-id": INVITE_ITEM_DESCRIPTION.id,
178
- className: (0, _runtime.ax)(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk2tgk"]),
179
- style: {
180
- "--_1y60f1n": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"))
181
- }
177
+ className: (0, _runtime.ax)(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
182
178
  }, /*#__PURE__*/_react.default.createElement("div", {
183
179
  className: (0, _runtime.ax)([style.rowStyle])
184
180
  }, /*#__PURE__*/_react.default.createElement("span", {
@@ -188,7 +184,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
188
184
  color: "var(--ds-icon-danger, #C9372C)"
189
185
  }) : /*#__PURE__*/_react.default.createElement(_email.default, {
190
186
  label: "Email",
191
- color: "var(--ds-icon-subtle, ".concat(_colors.N300, ")")
187
+ color: "var(--ds-icon-subtle, #505258)"
192
188
  })), /*#__PURE__*/_react.default.createElement("div", {
193
189
  "data-testid": "name-section",
194
190
  className: (0, _runtime.ax)([style.nameSection])
@@ -18,13 +18,13 @@
18
18
  ._4cvr1h6o{align-items:center}
19
19
  ._4t3i14no{height:36px}
20
20
  ._80omtlke{cursor:pointer}
21
+ ._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
21
22
  ._bfhk1j28{background-color:transparent}
22
- ._bfhk2tgk{background-color:var(--_1y60f1n)}
23
23
  ._ca0q12x7{padding-top:var(--ds-space-075,6px)}
24
24
  ._i0dl1wug{flex-basis:auto}
25
25
  ._i0dlf1ug{flex-basis:0%}
26
26
  ._kqswh2mm{position:relative}
27
27
  ._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
28
28
  ._s7n4nkob{vertical-align:middle}
29
- ._syaz1vvm{color:var(--_bbz764)}
29
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
30
30
  ._u5f3dlk8{padding-right:14px}
@@ -14,7 +14,6 @@ var _react = _interopRequireWildcard(require("react"));
14
14
  var _reactIntlNext = require("react-intl-next");
15
15
  var _messages = require("@atlaskit/editor-common/messages");
16
16
  var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
17
- var _colors = require("@atlaskit/theme/colors");
18
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19
18
  var mentionItemStyle = null;
20
19
  var mentionItemSelectedStyle = null;
@@ -88,23 +87,17 @@ var InviteItem = function InviteItem(_ref) {
88
87
  onMouseEnter: onItemMouseEnter,
89
88
  onFocus: onItemFocus,
90
89
  "data-id": INVITE_ITEM_DESCRIPTION.id,
91
- className: (0, _runtime.ax)(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk2tgk"]),
92
- style: {
93
- "--_1y60f1n": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"))
94
- }
90
+ className: (0, _runtime.ax)(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
95
91
  }, /*#__PURE__*/_react.default.createElement("div", {
96
92
  className: (0, _runtime.ax)(["_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _2lx2vrvc _1n261g80 _ca0q12x7 _n3td12x7 _19bvdlk8 _u5f3dlk8 _1bto1l2s _s7n4nkob"])
97
93
  }, /*#__PURE__*/_react.default.createElement("span", {
98
94
  className: (0, _runtime.ax)(["_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no"])
99
95
  }, /*#__PURE__*/_react.default.createElement(_add.default, {
100
96
  label: intl.formatMessage(_messages.mentionMessages.mentionsAddLabel),
101
- color: "var(--ds-icon-subtle, ".concat(_colors.N300, ")")
97
+ color: "var(--ds-icon-subtle, #505258)"
102
98
  })), /*#__PURE__*/_react.default.createElement("div", {
103
99
  "data-testid": "name-section",
104
- className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syaz1vvm"]),
105
- style: {
106
- "--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
107
- }
100
+ className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syazazsu"])
108
101
  }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage
109
102
  // Ignored via go/ees005
110
103
  // eslint-disable-next-line react/jsx-props-no-spreading
@@ -1,6 +1,5 @@
1
1
  import { mention } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
- import { N30A } from '@atlaskit/theme/colors';
4
3
  const isSSR = Boolean(process.env.REACT_SSR);
5
4
 
6
5
  /**
@@ -28,7 +27,7 @@ export const mentionNodeSpec = () => {
28
27
  style: convertToInlineCss({
29
28
  display: 'inline',
30
29
  border: `1px solid transparent`,
31
- background: `var(--ds-background-neutral, ${N30A})`,
30
+ background: "var(--ds-background-neutral, #0515240F)",
32
31
  color: "var(--ds-text-subtle, #505258)",
33
32
  borderRadius: '20px',
34
33
  cursor: 'pointer',
@@ -12,7 +12,7 @@ export const ACTIONS = {
12
12
  SET_PROVIDER: 'SET_PROVIDER'
13
13
  };
14
14
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
15
- const PACKAGE_VERSION = "0.0.0-development";
15
+ const PACKAGE_VERSION = "10.0.10";
16
16
  const setProvider = provider => (state, dispatch) => {
17
17
  if (dispatch) {
18
18
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -1,7 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- import { B400 } from '@atlaskit/theme/colors';
5
4
  export const mentionPlaceholderPluginKey = new PluginKey('mentionPlaceholderPlugin');
6
5
  export const MENTION_PLACEHOLDER_ACTIONS = {
7
6
  SHOW_PLACEHOLDER: 'SHOW_PLACEHOLDER',
@@ -35,7 +34,7 @@ export function createMentionPlaceholderPlugin() {
35
34
  } = state;
36
35
  const span = document.createElement('span');
37
36
  span.textContent = pluginState.placeholder;
38
- span.style.setProperty('color', `var(--ds-text-accent-blue, ${B400})`);
37
+ span.style.setProperty('color', "var(--ds-text-accent-blue, #1558BC)");
39
38
  return DecorationSet.create(state.doc, [Decoration.widget(selection.from, span)]);
40
39
  }
41
40
  return null;
@@ -19,7 +19,7 @@
19
19
  ._4cvr1h6o{align-items:center}
20
20
  ._4t3i14no{height:36px}
21
21
  ._80omtlke{cursor:pointer}
22
- ._bfhk14ae{background-color:var(--ds-background-neutral-subtle-hovered,#ebecf0)}
22
+ ._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
23
23
  ._bfhk1j28{background-color:transparent}
24
24
  ._ca0q12x7{padding-top:var(--ds-space-075,6px)}
25
25
  ._i0dl1wug{flex-basis:auto}
@@ -27,5 +27,5 @@
27
27
  ._kqswh2mm{position:relative}
28
28
  ._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
29
29
  ._s7n4nkob{vertical-align:middle}
30
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
30
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
31
31
  ._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
@@ -7,7 +7,6 @@ import { FormattedMessage, injectIntl } from 'react-intl-next';
7
7
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import EmailIcon from '@atlaskit/icon/core/email';
9
9
  import StatusErrorIcon from '@atlaskit/icon/core/status-error';
10
- import { N30, N300 } from '@atlaskit/theme/colors';
11
10
  import { isValidEmail } from '@atlaskit/user-picker';
12
11
  const mentionItemStyle = null;
13
12
  const mentionItemSelectedStyle = null;
@@ -15,7 +14,7 @@ const style = {
15
14
  byline: "_19pkv77o",
16
15
  rowStyle: "_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _2lx2vrvc _1n261g80 _ca0q12x7 _n3td12x7 _19bvutpp _u5f3utpp _1bto1l2s _s7n4nkob",
17
16
  avatar: "_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no",
18
- nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syaz1n3s",
17
+ nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syazazsu",
19
18
  capitalize: "_1p1d1dk0"
20
19
  };
21
20
  const VALID_OPTION = 'VALID';
@@ -162,7 +161,7 @@ const InviteItemWithEmailDomain = ({
162
161
  onMouseEnter: onItemMouseEnter,
163
162
  onFocus: onItemFocus,
164
163
  "data-id": INVITE_ITEM_DESCRIPTION.id,
165
- className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk14ae"])
164
+ className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
166
165
  }, /*#__PURE__*/React.createElement("div", {
167
166
  className: ax([style.rowStyle])
168
167
  }, /*#__PURE__*/React.createElement("span", {
@@ -172,7 +171,7 @@ const InviteItemWithEmailDomain = ({
172
171
  color: "var(--ds-icon-danger, #C9372C)"
173
172
  }) : /*#__PURE__*/React.createElement(EmailIcon, {
174
173
  label: "Email",
175
- color: `var(--ds-icon-subtle, ${N300})`
174
+ color: "var(--ds-icon-subtle, #505258)"
176
175
  })), /*#__PURE__*/React.createElement("div", {
177
176
  "data-testid": "name-section",
178
177
  className: ax([style.nameSection])
@@ -18,7 +18,7 @@
18
18
  ._4cvr1h6o{align-items:center}
19
19
  ._4t3i14no{height:36px}
20
20
  ._80omtlke{cursor:pointer}
21
- ._bfhk14ae{background-color:var(--ds-background-neutral-subtle-hovered,#ebecf0)}
21
+ ._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
22
22
  ._bfhk1j28{background-color:transparent}
23
23
  ._ca0q12x7{padding-top:var(--ds-space-075,6px)}
24
24
  ._i0dl1wug{flex-basis:auto}
@@ -26,5 +26,5 @@
26
26
  ._kqswh2mm{position:relative}
27
27
  ._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
28
28
  ._s7n4nkob{vertical-align:middle}
29
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
29
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
30
30
  ._u5f3dlk8{padding-right:14px}
@@ -6,7 +6,6 @@ import React, { useCallback, useEffect } from 'react';
6
6
  import { FormattedMessage, injectIntl } from 'react-intl-next';
7
7
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import AddIcon from '@atlaskit/icon/core/add';
9
- import { N30, N300 } from '@atlaskit/theme/colors';
10
9
  const mentionItemStyle = null;
11
10
  const mentionItemSelectedStyle = null;
12
11
  const rowStyle = null;
@@ -80,17 +79,17 @@ const InviteItem = ({
80
79
  onMouseEnter: onItemMouseEnter,
81
80
  onFocus: onItemFocus,
82
81
  "data-id": INVITE_ITEM_DESCRIPTION.id,
83
- className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk14ae"])
82
+ className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
84
83
  }, /*#__PURE__*/React.createElement("div", {
85
84
  className: ax(["_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _2lx2vrvc _1n261g80 _ca0q12x7 _n3td12x7 _19bvdlk8 _u5f3dlk8 _1bto1l2s _s7n4nkob"])
86
85
  }, /*#__PURE__*/React.createElement("span", {
87
86
  className: ax(["_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no"])
88
87
  }, /*#__PURE__*/React.createElement(AddIcon, {
89
88
  label: intl.formatMessage(messages.mentionsAddLabel),
90
- color: `var(--ds-icon-subtle, ${N300})`
89
+ color: "var(--ds-icon-subtle, #505258)"
91
90
  })), /*#__PURE__*/React.createElement("div", {
92
91
  "data-testid": "name-section",
93
- className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syaz1n3s"])
92
+ className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syazazsu"])
94
93
  }, /*#__PURE__*/React.createElement(FormattedMessage
95
94
  // Ignored via go/ees005
96
95
  // eslint-disable-next-line react/jsx-props-no-spreading
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { mention } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
- import { N30A } from '@atlaskit/theme/colors';
7
6
  var isSSR = Boolean(process.env.REACT_SSR);
8
7
 
9
8
  /**
@@ -30,7 +29,7 @@ export var mentionNodeSpec = function mentionNodeSpec() {
30
29
  style: convertToInlineCss({
31
30
  display: 'inline',
32
31
  border: "1px solid transparent",
33
- background: "var(--ds-background-neutral, ".concat(N30A, ")"),
32
+ background: "var(--ds-background-neutral, #0515240F)",
34
33
  color: "var(--ds-text-subtle, #505258)",
35
34
  borderRadius: '20px',
36
35
  cursor: 'pointer',
@@ -15,7 +15,7 @@ export var ACTIONS = {
15
15
  SET_PROVIDER: 'SET_PROVIDER'
16
16
  };
17
17
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
18
- var PACKAGE_VERSION = "0.0.0-development";
18
+ var PACKAGE_VERSION = "10.0.10";
19
19
  var setProvider = function setProvider(provider) {
20
20
  return function (state, dispatch) {
21
21
  if (dispatch) {
@@ -1,7 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- import { B400 } from '@atlaskit/theme/colors';
5
4
  export var mentionPlaceholderPluginKey = new PluginKey('mentionPlaceholderPlugin');
6
5
  export var MENTION_PLACEHOLDER_ACTIONS = {
7
6
  SHOW_PLACEHOLDER: 'SHOW_PLACEHOLDER',
@@ -35,7 +34,7 @@ export function createMentionPlaceholderPlugin() {
35
34
  var selection = state.selection;
36
35
  var span = document.createElement('span');
37
36
  span.textContent = pluginState.placeholder;
38
- span.style.setProperty('color', "var(--ds-text-accent-blue, ".concat(B400, ")"));
37
+ span.style.setProperty('color', "var(--ds-text-accent-blue, #1558BC)");
39
38
  return DecorationSet.create(state.doc, [Decoration.widget(selection.from, span)]);
40
39
  }
41
40
  return null;
@@ -19,13 +19,13 @@
19
19
  ._4cvr1h6o{align-items:center}
20
20
  ._4t3i14no{height:36px}
21
21
  ._80omtlke{cursor:pointer}
22
+ ._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
22
23
  ._bfhk1j28{background-color:transparent}
23
- ._bfhk2tgk{background-color:var(--_1y60f1n)}
24
24
  ._ca0q12x7{padding-top:var(--ds-space-075,6px)}
25
25
  ._i0dl1wug{flex-basis:auto}
26
26
  ._i0dlf1ug{flex-basis:0%}
27
27
  ._kqswh2mm{position:relative}
28
28
  ._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
29
29
  ._s7n4nkob{vertical-align:middle}
30
- ._syaz1n3s{color:var(--ds-text-subtle,#5e6c84)}
30
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
31
31
  ._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
@@ -8,7 +8,6 @@ import { FormattedMessage, injectIntl } from 'react-intl-next';
8
8
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import EmailIcon from '@atlaskit/icon/core/email';
10
10
  import StatusErrorIcon from '@atlaskit/icon/core/status-error';
11
- import { N30, N300 } from '@atlaskit/theme/colors';
12
11
  import { isValidEmail } from '@atlaskit/user-picker';
13
12
  var mentionItemStyle = null;
14
13
  var mentionItemSelectedStyle = null;
@@ -16,7 +15,7 @@ var style = {
16
15
  byline: "_19pkv77o",
17
16
  rowStyle: "_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _2lx2vrvc _1n261g80 _ca0q12x7 _n3td12x7 _19bvutpp _u5f3utpp _1bto1l2s _s7n4nkob",
18
17
  avatar: "_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no",
19
- nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syaz1n3s",
18
+ nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syazazsu",
20
19
  capitalize: "_1p1d1dk0"
21
20
  };
22
21
  var VALID_OPTION = 'VALID';
@@ -166,10 +165,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
166
165
  onMouseEnter: onItemMouseEnter,
167
166
  onFocus: onItemFocus,
168
167
  "data-id": INVITE_ITEM_DESCRIPTION.id,
169
- className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk2tgk"]),
170
- style: {
171
- "--_1y60f1n": ix("var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"))
172
- }
168
+ className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
173
169
  }, /*#__PURE__*/React.createElement("div", {
174
170
  className: ax([style.rowStyle])
175
171
  }, /*#__PURE__*/React.createElement("span", {
@@ -179,7 +175,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
179
175
  color: "var(--ds-icon-danger, #C9372C)"
180
176
  }) : /*#__PURE__*/React.createElement(EmailIcon, {
181
177
  label: "Email",
182
- color: "var(--ds-icon-subtle, ".concat(N300, ")")
178
+ color: "var(--ds-icon-subtle, #505258)"
183
179
  })), /*#__PURE__*/React.createElement("div", {
184
180
  "data-testid": "name-section",
185
181
  className: ax([style.nameSection])
@@ -18,13 +18,13 @@
18
18
  ._4cvr1h6o{align-items:center}
19
19
  ._4t3i14no{height:36px}
20
20
  ._80omtlke{cursor:pointer}
21
+ ._bfhk1dpa{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
21
22
  ._bfhk1j28{background-color:transparent}
22
- ._bfhk2tgk{background-color:var(--_1y60f1n)}
23
23
  ._ca0q12x7{padding-top:var(--ds-space-075,6px)}
24
24
  ._i0dl1wug{flex-basis:auto}
25
25
  ._i0dlf1ug{flex-basis:0%}
26
26
  ._kqswh2mm{position:relative}
27
27
  ._n3td12x7{padding-bottom:var(--ds-space-075,6px)}
28
28
  ._s7n4nkob{vertical-align:middle}
29
- ._syaz1vvm{color:var(--_bbz764)}
29
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
30
30
  ._u5f3dlk8{padding-right:14px}
@@ -6,7 +6,6 @@ import React, { useCallback, useEffect } from 'react';
6
6
  import { FormattedMessage, injectIntl } from 'react-intl-next';
7
7
  import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
8
8
  import AddIcon from '@atlaskit/icon/core/add';
9
- import { N30, N300 } from '@atlaskit/theme/colors';
10
9
  var mentionItemStyle = null;
11
10
  var mentionItemSelectedStyle = null;
12
11
  var rowStyle = null;
@@ -79,23 +78,17 @@ var InviteItem = function InviteItem(_ref) {
79
78
  onMouseEnter: onItemMouseEnter,
80
79
  onFocus: onItemFocus,
81
80
  "data-id": INVITE_ITEM_DESCRIPTION.id,
82
- className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk2tgk"]),
83
- style: {
84
- "--_1y60f1n": ix("var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"))
85
- }
81
+ className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
86
82
  }, /*#__PURE__*/React.createElement("div", {
87
83
  className: ax(["_1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _2lx2vrvc _1n261g80 _ca0q12x7 _n3td12x7 _19bvdlk8 _u5f3dlk8 _1bto1l2s _s7n4nkob"])
88
84
  }, /*#__PURE__*/React.createElement("span", {
89
85
  className: ax(["_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no"])
90
86
  }, /*#__PURE__*/React.createElement(AddIcon, {
91
87
  label: intl.formatMessage(messages.mentionsAddLabel),
92
- color: "var(--ds-icon-subtle, ".concat(N300, ")")
88
+ color: "var(--ds-icon-subtle, #505258)"
93
89
  })), /*#__PURE__*/React.createElement("div", {
94
90
  "data-testid": "name-section",
95
- className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syaz1vvm"]),
96
- style: {
97
- "--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
98
- }
91
+ className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syazazsu"])
99
92
  }, /*#__PURE__*/React.createElement(FormattedMessage
100
93
  // Ignored via go/ees005
101
94
  // eslint-disable-next-line react/jsx-props-no-spreading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "10.0.10",
3
+ "version": "10.0.11",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",