@atlaskit/editor-plugin-mentions 4.0.0 → 4.0.2
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 +20 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/InviteItem/index.js +2 -2
- package/dist/cjs/ui/ToolbarMention/index.js +2 -2
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/InviteItem/index.js +2 -2
- package/dist/es2019/ui/ToolbarMention/index.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/InviteItem/index.js +2 -2
- package/dist/esm/ui/ToolbarMention/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
|
|
8
|
+
[`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
|
|
9
|
+
Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
|
|
10
|
+
future to avoid an accidental regression.
|
|
11
|
+
|
|
12
|
+
This is related to
|
|
13
|
+
https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
|
|
14
|
+
|
|
15
|
+
## 4.0.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#119045](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119045)
|
|
20
|
+
[`47b940a098a8c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/47b940a098a8c) -
|
|
21
|
+
[ux] EDF-2511 - Iconography uplift
|
|
22
|
+
|
|
3
23
|
## 4.0.0
|
|
4
24
|
|
|
5
25
|
### Major Changes
|
|
@@ -24,7 +24,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
24
24
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
25
25
|
};
|
|
26
26
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
27
|
-
var PACKAGE_VERSION = "4.0.
|
|
27
|
+
var PACKAGE_VERSION = "4.0.2";
|
|
28
28
|
var setProvider = function setProvider(provider) {
|
|
29
29
|
return function (state, dispatch) {
|
|
30
30
|
if (dispatch) {
|
|
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
16
|
-
var _add = _interopRequireDefault(require("@atlaskit/icon/
|
|
16
|
+
var _add = _interopRequireDefault(require("@atlaskit/icon/core/migration/add"));
|
|
17
17
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
18
|
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); }
|
|
19
19
|
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; }
|
|
@@ -76,7 +76,7 @@ var InviteItem = function InviteItem(_ref) {
|
|
|
76
76
|
className: (0, _runtime.ax)(["_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no"])
|
|
77
77
|
}, /*#__PURE__*/_react.default.createElement(_add.default, {
|
|
78
78
|
label: intl.formatMessage(_messages.mentionMessages.mentionsAddLabel),
|
|
79
|
-
|
|
79
|
+
color: "var(--ds-icon-subtle, ".concat(_colors.N300, ")")
|
|
80
80
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
81
81
|
"data-testid": "name-section",
|
|
82
82
|
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syaz1vvm"]),
|
|
@@ -16,7 +16,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
18
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
19
|
-
var
|
|
19
|
+
var _mentionEditorMention = _interopRequireDefault(require("@atlaskit/icon/core/migration/mention--editor-mention"));
|
|
20
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); }
|
|
21
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; }
|
|
22
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)); }
|
|
@@ -52,7 +52,7 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
|
|
|
52
52
|
onClick: this.handleInsertMention,
|
|
53
53
|
disabled: this.props.isDisabled,
|
|
54
54
|
title: mentionStringTranslated + '@',
|
|
55
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
55
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_mentionEditorMention.default, {
|
|
56
56
|
label: mentionStringTranslated
|
|
57
57
|
})
|
|
58
58
|
});
|
|
@@ -13,7 +13,7 @@ export const ACTIONS = {
|
|
|
13
13
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
14
14
|
};
|
|
15
15
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
16
|
-
const PACKAGE_VERSION = "4.0.
|
|
16
|
+
const PACKAGE_VERSION = "4.0.2";
|
|
17
17
|
const setProvider = provider => (state, dispatch) => {
|
|
18
18
|
if (dispatch) {
|
|
19
19
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
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
|
-
import AddIcon from '@atlaskit/icon/
|
|
8
|
+
import AddIcon from '@atlaskit/icon/core/migration/add';
|
|
9
9
|
import { N30, N300 } from '@atlaskit/theme/colors';
|
|
10
10
|
const mentionItemStyle = null;
|
|
11
11
|
const mentionItemSelectedStyle = null;
|
|
@@ -64,7 +64,7 @@ const InviteItem = ({
|
|
|
64
64
|
className: ax(["_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no"])
|
|
65
65
|
}, /*#__PURE__*/React.createElement(AddIcon, {
|
|
66
66
|
label: intl.formatMessage(messages.mentionsAddLabel),
|
|
67
|
-
|
|
67
|
+
color: `var(--ds-icon-subtle, ${N300})`
|
|
68
68
|
})), /*#__PURE__*/React.createElement("div", {
|
|
69
69
|
"data-testid": "name-section",
|
|
70
70
|
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syaz1n3s"])
|
|
@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { injectIntl } from 'react-intl-next';
|
|
4
4
|
import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
6
|
-
import MentionIcon from '@atlaskit/icon/
|
|
6
|
+
import MentionIcon from '@atlaskit/icon/core/migration/mention--editor-mention';
|
|
7
7
|
// Ignored via go/ees005
|
|
8
8
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
9
9
|
class ToolbarMention extends PureComponent {
|
|
@@ -16,7 +16,7 @@ export var ACTIONS = {
|
|
|
16
16
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
17
17
|
};
|
|
18
18
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
19
|
-
var PACKAGE_VERSION = "4.0.
|
|
19
|
+
var PACKAGE_VERSION = "4.0.2";
|
|
20
20
|
var setProvider = function setProvider(provider) {
|
|
21
21
|
return function (state, dispatch) {
|
|
22
22
|
if (dispatch) {
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
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
|
-
import AddIcon from '@atlaskit/icon/
|
|
8
|
+
import AddIcon from '@atlaskit/icon/core/migration/add';
|
|
9
9
|
import { N30, N300 } from '@atlaskit/theme/colors';
|
|
10
10
|
var mentionItemStyle = null;
|
|
11
11
|
var mentionItemSelectedStyle = null;
|
|
@@ -66,7 +66,7 @@ var InviteItem = function InviteItem(_ref) {
|
|
|
66
66
|
className: ax(["_16jlidpf _1o9zkb7n _i0dl1wug _1e0c1txw _4cvr1h6o _1bah1h6o _kqswh2mm _1bsb14no _4t3i14no"])
|
|
67
67
|
}, /*#__PURE__*/React.createElement(AddIcon, {
|
|
68
68
|
label: intl.formatMessage(messages.mentionsAddLabel),
|
|
69
|
-
|
|
69
|
+
color: "var(--ds-icon-subtle, ".concat(N300, ")")
|
|
70
70
|
})), /*#__PURE__*/React.createElement("div", {
|
|
71
71
|
"data-testid": "name-section",
|
|
72
72
|
className: ax(["_16jlkb7n _1o9zkb7n _i0dlf1ug _1ul9idpf _18u0dlk8 _syaz1vvm"]),
|
|
@@ -10,7 +10,7 @@ import React, { PureComponent } from 'react';
|
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
|
-
import MentionIcon from '@atlaskit/icon/
|
|
13
|
+
import MentionIcon from '@atlaskit/icon/core/migration/mention--editor-mention';
|
|
14
14
|
// Ignored via go/ees005
|
|
15
15
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
16
16
|
var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
37
37
|
"@atlaskit/css": "^0.10.0",
|
|
38
|
-
"@atlaskit/editor-common": "^100.
|
|
38
|
+
"@atlaskit/editor-common": "^100.4.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-base": "^2.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-context-identifier": "^2.0.0",
|