@atlaskit/editor-plugin-mentions 10.0.9 → 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 +14 -0
- package/dist/cjs/mentionsPlugin.js +6 -2
- package/dist/cjs/nodeviews/mentionNodeSpec.js +1 -2
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/pm-plugins/mentionPlaceholder.js +1 -2
- package/dist/cjs/ui/InviteItem/InviteItemWithEmailDomain.compiled.css +2 -2
- package/dist/cjs/ui/InviteItem/InviteItemWithEmailDomain.js +4 -7
- package/dist/cjs/ui/InviteItem/index.compiled.css +2 -2
- package/dist/cjs/ui/InviteItem/index.js +4 -10
- package/dist/cjs/ui/PopperWrapper.js +3 -1
- package/dist/es2019/mentionsPlugin.js +6 -2
- package/dist/es2019/nodeviews/mentionNodeSpec.js +1 -2
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/mentionPlaceholder.js +1 -2
- package/dist/es2019/ui/InviteItem/InviteItemWithEmailDomain.compiled.css +2 -2
- package/dist/es2019/ui/InviteItem/InviteItemWithEmailDomain.js +4 -4
- package/dist/es2019/ui/InviteItem/index.compiled.css +2 -2
- package/dist/es2019/ui/InviteItem/index.js +4 -4
- package/dist/es2019/ui/PopperWrapper.js +3 -1
- package/dist/esm/mentionsPlugin.js +6 -2
- package/dist/esm/nodeviews/mentionNodeSpec.js +1 -2
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/mentionPlaceholder.js +1 -2
- package/dist/esm/ui/InviteItem/InviteItemWithEmailDomain.compiled.css +2 -2
- package/dist/esm/ui/InviteItem/InviteItemWithEmailDomain.js +4 -7
- package/dist/esm/ui/InviteItem/index.compiled.css +2 -2
- package/dist/esm/ui/InviteItem/index.js +4 -10
- package/dist/esm/ui/PopperWrapper.js +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 10.0.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.0.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -143,9 +143,13 @@ var mentionsPlugin = exports.mentionsPlugin = function mentionsPlugin(_ref3) {
|
|
|
143
143
|
if (!editorView) {
|
|
144
144
|
return null;
|
|
145
145
|
}
|
|
146
|
-
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
146
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
147
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
148
|
+
, {
|
|
147
149
|
providers: ['mentionProvider'],
|
|
148
|
-
providerFactory: providerFactory
|
|
150
|
+
providerFactory: providerFactory
|
|
151
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
152
|
+
,
|
|
149
153
|
renderNode: function renderNode(_ref5) {
|
|
150
154
|
var mentionProvider = _ref5.mentionProvider;
|
|
151
155
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Component, {
|
|
@@ -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,
|
|
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 = "
|
|
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,
|
|
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
|
-
.
|
|
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
|
|
27
|
+
nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syazazsu",
|
|
29
28
|
capitalize: "_1p1d1dk0"
|
|
30
29
|
};
|
|
31
30
|
var VALID_OPTION = 'VALID';
|
|
@@ -90,6 +89,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
|
|
|
90
89
|
// Ignored via go/ees005
|
|
91
90
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
92
91
|
, (0, _extends2.default)({}, _messages.mentionMessages.inviteItemTitle, {
|
|
92
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
93
93
|
values: {
|
|
94
94
|
userRole: userRole || 'basic',
|
|
95
95
|
productName: /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -174,10 +174,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
|
|
|
174
174
|
onMouseEnter: onItemMouseEnter,
|
|
175
175
|
onFocus: onItemFocus,
|
|
176
176
|
"data-id": INVITE_ITEM_DESCRIPTION.id,
|
|
177
|
-
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "
|
|
178
|
-
style: {
|
|
179
|
-
"--_1y60f1n": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"))
|
|
180
|
-
}
|
|
177
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
|
|
181
178
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
182
179
|
className: (0, _runtime.ax)([style.rowStyle])
|
|
183
180
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -187,7 +184,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
|
|
|
187
184
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
188
185
|
}) : /*#__PURE__*/_react.default.createElement(_email.default, {
|
|
189
186
|
label: "Email",
|
|
190
|
-
color: "var(--ds-icon-subtle,
|
|
187
|
+
color: "var(--ds-icon-subtle, #505258)"
|
|
191
188
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
192
189
|
"data-testid": "name-section",
|
|
193
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
|
-
.
|
|
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,27 +87,22 @@ 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 && "
|
|
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,
|
|
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
|
|
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
|
|
111
104
|
, (0, _extends2.default)({}, _messages.mentionMessages.inviteItemTitle, {
|
|
105
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
106
|
values: {
|
|
113
107
|
userRole: userRole || 'basic',
|
|
114
108
|
productName: /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -55,7 +55,9 @@ function Popup(_ref2) {
|
|
|
55
55
|
return /*#__PURE__*/_react.default.createElement(_react.Suspense, null, /*#__PURE__*/_react.default.createElement(_portal.default, {
|
|
56
56
|
zIndex: _constants.layers.modal()
|
|
57
57
|
}, /*#__PURE__*/_react.default.createElement(_popper.Popper, {
|
|
58
|
-
referenceElement: referenceElement
|
|
58
|
+
referenceElement: referenceElement
|
|
59
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
60
|
+
,
|
|
59
61
|
offset: [0, 8],
|
|
60
62
|
placement: "bottom-end",
|
|
61
63
|
strategy: "fixed"
|
|
@@ -138,9 +138,13 @@ const mentionsPlugin = ({
|
|
|
138
138
|
if (!editorView) {
|
|
139
139
|
return null;
|
|
140
140
|
}
|
|
141
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
141
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
142
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
143
|
+
, {
|
|
142
144
|
providers: ['mentionProvider'],
|
|
143
|
-
providerFactory: providerFactory
|
|
145
|
+
providerFactory: providerFactory
|
|
146
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
147
|
+
,
|
|
144
148
|
renderNode: ({
|
|
145
149
|
mentionProvider
|
|
146
150
|
}) => {
|
|
@@ -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:
|
|
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 = "
|
|
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',
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
|
17
|
+
nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syazazsu",
|
|
19
18
|
capitalize: "_1p1d1dk0"
|
|
20
19
|
};
|
|
21
20
|
const VALID_OPTION = 'VALID';
|
|
@@ -77,6 +76,7 @@ const InviteItemWithEmailDomain = ({
|
|
|
77
76
|
// Ignored via go/ees005
|
|
78
77
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
79
78
|
, _extends({}, messages.inviteItemTitle, {
|
|
79
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
80
|
values: {
|
|
81
81
|
userRole: userRole || 'basic',
|
|
82
82
|
productName: /*#__PURE__*/React.createElement("span", {
|
|
@@ -161,7 +161,7 @@ const InviteItemWithEmailDomain = ({
|
|
|
161
161
|
onMouseEnter: onItemMouseEnter,
|
|
162
162
|
onFocus: onItemFocus,
|
|
163
163
|
"data-id": INVITE_ITEM_DESCRIPTION.id,
|
|
164
|
-
className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "
|
|
164
|
+
className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
|
|
165
165
|
}, /*#__PURE__*/React.createElement("div", {
|
|
166
166
|
className: ax([style.rowStyle])
|
|
167
167
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -171,7 +171,7 @@ const InviteItemWithEmailDomain = ({
|
|
|
171
171
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
172
172
|
}) : /*#__PURE__*/React.createElement(EmailIcon, {
|
|
173
173
|
label: "Email",
|
|
174
|
-
color:
|
|
174
|
+
color: "var(--ds-icon-subtle, #505258)"
|
|
175
175
|
})), /*#__PURE__*/React.createElement("div", {
|
|
176
176
|
"data-testid": "name-section",
|
|
177
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
|
-
.
|
|
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
|
-
.
|
|
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,21 +79,22 @@ 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 && "
|
|
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:
|
|
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
|
|
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
|
|
97
96
|
, _extends({}, messages.inviteItemTitle, {
|
|
97
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
98
|
values: {
|
|
99
99
|
userRole: userRole || 'basic',
|
|
100
100
|
productName: /*#__PURE__*/React.createElement("span", {
|
|
@@ -43,7 +43,9 @@ export function Popup({
|
|
|
43
43
|
return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(Portal, {
|
|
44
44
|
zIndex: layers.modal()
|
|
45
45
|
}, /*#__PURE__*/React.createElement(ReactPopper, {
|
|
46
|
-
referenceElement: referenceElement
|
|
46
|
+
referenceElement: referenceElement
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
,
|
|
47
49
|
offset: [0, 8],
|
|
48
50
|
placement: "bottom-end",
|
|
49
51
|
strategy: "fixed"
|
|
@@ -135,9 +135,13 @@ var mentionsPlugin = function mentionsPlugin(_ref3) {
|
|
|
135
135
|
if (!editorView) {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
138
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
139
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
140
|
+
, {
|
|
139
141
|
providers: ['mentionProvider'],
|
|
140
|
-
providerFactory: providerFactory
|
|
142
|
+
providerFactory: providerFactory
|
|
143
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
144
|
+
,
|
|
141
145
|
renderNode: function renderNode(_ref5) {
|
|
142
146
|
var mentionProvider = _ref5.mentionProvider;
|
|
143
147
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Component, {
|
|
@@ -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,
|
|
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 = "
|
|
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,
|
|
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
|
-
.
|
|
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
|
|
18
|
+
nameSection: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0utpp _syazazsu",
|
|
20
19
|
capitalize: "_1p1d1dk0"
|
|
21
20
|
};
|
|
22
21
|
var VALID_OPTION = 'VALID';
|
|
@@ -81,6 +80,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
|
|
|
81
80
|
// Ignored via go/ees005
|
|
82
81
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
83
82
|
, _extends({}, messages.inviteItemTitle, {
|
|
83
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
84
84
|
values: {
|
|
85
85
|
userRole: userRole || 'basic',
|
|
86
86
|
productName: /*#__PURE__*/React.createElement("span", {
|
|
@@ -165,10 +165,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
|
|
|
165
165
|
onMouseEnter: onItemMouseEnter,
|
|
166
166
|
onFocus: onItemFocus,
|
|
167
167
|
"data-id": INVITE_ITEM_DESCRIPTION.id,
|
|
168
|
-
className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "
|
|
169
|
-
style: {
|
|
170
|
-
"--_1y60f1n": ix("var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"))
|
|
171
|
-
}
|
|
168
|
+
className: ax(["_1reo15vq _18m915vq _bfhk1j28 _1e0c1ule _2mzuglyw _80omtlke", selected && "_bfhk1dpa"])
|
|
172
169
|
}, /*#__PURE__*/React.createElement("div", {
|
|
173
170
|
className: ax([style.rowStyle])
|
|
174
171
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -178,7 +175,7 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref) {
|
|
|
178
175
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
179
176
|
}) : /*#__PURE__*/React.createElement(EmailIcon, {
|
|
180
177
|
label: "Email",
|
|
181
|
-
color: "var(--ds-icon-subtle,
|
|
178
|
+
color: "var(--ds-icon-subtle, #505258)"
|
|
182
179
|
})), /*#__PURE__*/React.createElement("div", {
|
|
183
180
|
"data-testid": "name-section",
|
|
184
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
|
-
.
|
|
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,27 +78,22 @@ 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 && "
|
|
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,
|
|
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
|
|
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
|
|
102
95
|
, _extends({}, messages.inviteItemTitle, {
|
|
96
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
103
97
|
values: {
|
|
104
98
|
userRole: userRole || 'basic',
|
|
105
99
|
productName: /*#__PURE__*/React.createElement("span", {
|
|
@@ -45,7 +45,9 @@ export function Popup(_ref2) {
|
|
|
45
45
|
return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(Portal, {
|
|
46
46
|
zIndex: layers.modal()
|
|
47
47
|
}, /*#__PURE__*/React.createElement(ReactPopper, {
|
|
48
|
-
referenceElement: referenceElement
|
|
48
|
+
referenceElement: referenceElement
|
|
49
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
50
|
+
,
|
|
49
51
|
offset: [0, 8],
|
|
50
52
|
placement: "bottom-end",
|
|
51
53
|
strategy: "fixed"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "10.0.
|
|
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",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/portal": "^5.2.0",
|
|
47
47
|
"@atlaskit/profilecard": "^24.44.0",
|
|
48
48
|
"@atlaskit/theme": "^22.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^11.1.0",
|
|
51
51
|
"@atlaskit/user-picker": "^11.25.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|