@atlaskit/editor-plugin-mentions 9.3.5 → 9.4.0
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/ProfileCardComponent.js +3 -1
- package/dist/cjs/ui/type-ahead/index.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/ProfileCardComponent.js +4 -2
- package/dist/es2019/ui/type-ahead/index.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/ProfileCardComponent.js +3 -1
- package/dist/esm/ui/type-ahead/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 9.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ab3866dd7f659`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab3866dd7f659) -
|
|
8
|
+
Make sure that we use isRenderedInPortal for profilecards in the editor to make sure we are
|
|
9
|
+
focusing on the heading
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 9.3.6
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`f80d1f0c9b54b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f80d1f0c9b54b) -
|
|
20
|
+
fallback to old invite CTA when emailDomain not present
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 9.3.5
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -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 = "9.3.6";
|
|
27
27
|
var setProvider = function setProvider(provider) {
|
|
28
28
|
return function (state, dispatch) {
|
|
29
29
|
if (dispatch) {
|
|
@@ -17,6 +17,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
17
17
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
18
18
|
var _bindEventListener = require("bind-event-listener");
|
|
19
19
|
var _user = require("@atlaskit/profilecard/user");
|
|
20
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
21
|
var _PopperWrapper = require("./PopperWrapper");
|
|
21
22
|
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
23
|
var styles = {
|
|
@@ -188,6 +189,7 @@ function ProfileCardComponent(_ref4) {
|
|
|
188
189
|
hasError: hasError,
|
|
189
190
|
reportingLines: reportingLinesData,
|
|
190
191
|
isKudosEnabled: shouldShowGiveKudos,
|
|
191
|
-
teamCentralBaseUrl: teamCentralBaseUrl
|
|
192
|
+
teamCentralBaseUrl: teamCentralBaseUrl,
|
|
193
|
+
isRenderedInPortal: (0, _expValEquals.expValEquals)('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true)
|
|
192
194
|
})));
|
|
193
195
|
}
|
|
@@ -44,7 +44,7 @@ var createInviteItem = function createInviteItem(_ref) {
|
|
|
44
44
|
var isSelected = _ref2.isSelected,
|
|
45
45
|
onClick = _ref2.onClick,
|
|
46
46
|
onHover = _ref2.onHover;
|
|
47
|
-
return (_mentionProvider$getS = mentionProvider.getShouldEnableInlineInvite) !== null && _mentionProvider$getS !== void 0 && _mentionProvider$getS.call(mentionProvider) && (0, _platformFeatureFlags.fg)('jira_invites_auto_tag_new_user_in_mentions_fg') ? /*#__PURE__*/_react.default.createElement(_InviteItemWithEmailDomain.default, {
|
|
47
|
+
return emailDomain && (_mentionProvider$getS = mentionProvider.getShouldEnableInlineInvite) !== null && _mentionProvider$getS !== void 0 && _mentionProvider$getS.call(mentionProvider) && (0, _platformFeatureFlags.fg)('jira_invites_auto_tag_new_user_in_mentions_fg') ? /*#__PURE__*/_react.default.createElement(_InviteItemWithEmailDomain.default, {
|
|
48
48
|
productName: mentionProvider ? mentionProvider.productName : undefined,
|
|
49
49
|
selected: isSelected,
|
|
50
50
|
onMount: onInviteItemMount,
|
|
@@ -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 = "9.3.6";
|
|
16
16
|
const setProvider = provider => (state, dispatch) => {
|
|
17
17
|
if (dispatch) {
|
|
18
18
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -5,6 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useEffect, useState, useMemo } from 'react';
|
|
6
6
|
import { bind } from 'bind-event-listener';
|
|
7
7
|
import { ProfileCardLazy } from '@atlaskit/profilecard/user';
|
|
8
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
9
|
import { Popup } from './PopperWrapper';
|
|
9
10
|
const styles = {
|
|
10
11
|
loadingStyles: "_2rko12b0 _16qs130s"
|
|
@@ -43,7 +44,7 @@ export const useProfileCardState = ({
|
|
|
43
44
|
setShouldShowGiveKudos(shouldGiveKudos !== null && shouldGiveKudos !== void 0 ? shouldGiveKudos : false);
|
|
44
45
|
setTeamCentralBaseUrl(teamCentralBaseUrl);
|
|
45
46
|
setHasError(false);
|
|
46
|
-
} catch
|
|
47
|
+
} catch {
|
|
47
48
|
setHasError(true);
|
|
48
49
|
} finally {
|
|
49
50
|
setIsLoading(false);
|
|
@@ -125,6 +126,7 @@ export function ProfileCardComponent({
|
|
|
125
126
|
hasError: hasError,
|
|
126
127
|
reportingLines: reportingLinesData,
|
|
127
128
|
isKudosEnabled: shouldShowGiveKudos,
|
|
128
|
-
teamCentralBaseUrl: teamCentralBaseUrl
|
|
129
|
+
teamCentralBaseUrl: teamCentralBaseUrl,
|
|
130
|
+
isRenderedInPortal: expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true)
|
|
129
131
|
})));
|
|
130
132
|
}
|
|
@@ -29,7 +29,7 @@ const createInviteItem = ({
|
|
|
29
29
|
onHover
|
|
30
30
|
}) => {
|
|
31
31
|
var _mentionProvider$getS;
|
|
32
|
-
return (_mentionProvider$getS = mentionProvider.getShouldEnableInlineInvite) !== null && _mentionProvider$getS !== void 0 && _mentionProvider$getS.call(mentionProvider) && fg('jira_invites_auto_tag_new_user_in_mentions_fg') ? /*#__PURE__*/React.createElement(InviteItemWithEmailDomain, {
|
|
32
|
+
return emailDomain && (_mentionProvider$getS = mentionProvider.getShouldEnableInlineInvite) !== null && _mentionProvider$getS !== void 0 && _mentionProvider$getS.call(mentionProvider) && fg('jira_invites_auto_tag_new_user_in_mentions_fg') ? /*#__PURE__*/React.createElement(InviteItemWithEmailDomain, {
|
|
33
33
|
productName: mentionProvider ? mentionProvider.productName : undefined,
|
|
34
34
|
selected: isSelected,
|
|
35
35
|
onMount: onInviteItemMount,
|
|
@@ -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 = "9.3.6";
|
|
19
19
|
var setProvider = function setProvider(provider) {
|
|
20
20
|
return function (state, dispatch) {
|
|
21
21
|
if (dispatch) {
|
|
@@ -8,6 +8,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
import { useEffect, useState, useMemo } from 'react';
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
10
|
import { ProfileCardLazy } from '@atlaskit/profilecard/user';
|
|
11
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
12
|
import { Popup } from './PopperWrapper';
|
|
12
13
|
var styles = {
|
|
13
14
|
loadingStyles: "_2rko12b0 _16qs130s"
|
|
@@ -178,6 +179,7 @@ export function ProfileCardComponent(_ref4) {
|
|
|
178
179
|
hasError: hasError,
|
|
179
180
|
reportingLines: reportingLinesData,
|
|
180
181
|
isKudosEnabled: shouldShowGiveKudos,
|
|
181
|
-
teamCentralBaseUrl: teamCentralBaseUrl
|
|
182
|
+
teamCentralBaseUrl: teamCentralBaseUrl,
|
|
183
|
+
isRenderedInPortal: expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true)
|
|
182
184
|
})));
|
|
183
185
|
}
|
|
@@ -35,7 +35,7 @@ var createInviteItem = function createInviteItem(_ref) {
|
|
|
35
35
|
var isSelected = _ref2.isSelected,
|
|
36
36
|
onClick = _ref2.onClick,
|
|
37
37
|
onHover = _ref2.onHover;
|
|
38
|
-
return (_mentionProvider$getS = mentionProvider.getShouldEnableInlineInvite) !== null && _mentionProvider$getS !== void 0 && _mentionProvider$getS.call(mentionProvider) && fg('jira_invites_auto_tag_new_user_in_mentions_fg') ? /*#__PURE__*/React.createElement(InviteItemWithEmailDomain, {
|
|
38
|
+
return emailDomain && (_mentionProvider$getS = mentionProvider.getShouldEnableInlineInvite) !== null && _mentionProvider$getS !== void 0 && _mentionProvider$getS.call(mentionProvider) && fg('jira_invites_auto_tag_new_user_in_mentions_fg') ? /*#__PURE__*/React.createElement(InviteItemWithEmailDomain, {
|
|
39
39
|
productName: mentionProvider ? mentionProvider.productName : undefined,
|
|
40
40
|
selected: isSelected,
|
|
41
41
|
onMount: onInviteItemMount,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^52.
|
|
32
|
+
"@atlaskit/adf-schema": "^52.1.0",
|
|
33
33
|
"@atlaskit/css": "^0.19.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-base": "^8.0.0",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@atlaskit/popper": "^7.1.0",
|
|
46
46
|
"@atlaskit/portal": "^5.2.0",
|
|
47
47
|
"@atlaskit/primitives": "^18.0.0",
|
|
48
|
-
"@atlaskit/profilecard": "^24.
|
|
48
|
+
"@atlaskit/profilecard": "^24.39.0",
|
|
49
49
|
"@atlaskit/theme": "^21.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^32.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^32.5.0",
|
|
51
51
|
"@atlaskit/tokens": "^11.0.0",
|
|
52
52
|
"@atlaskit/user-picker": "^11.23.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"uuid": "^3.1.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^111.
|
|
60
|
+
"@atlaskit/editor-common": "^111.22.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|