@atlaskit/editor-plugin-mentions 9.3.6 → 9.4.1

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,23 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 9.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`ab3866dd7f659`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab3866dd7f659) -
14
+ Make sure that we use isRenderedInPortal for profilecards in the editor to make sure we are
15
+ focusing on the heading
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 9.3.6
4
22
 
5
23
  ### 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 = "0.0.0-development";
26
+ var PACKAGE_VERSION = "9.4.0";
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
  }
@@ -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 = "9.4.0";
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 (e) {
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
  }
@@ -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 = "9.4.0";
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "9.3.6",
3
+ "version": "9.4.1",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.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.38.0",
49
- "@atlaskit/theme": "^21.0.0",
50
- "@atlaskit/tmp-editor-statsig": "^32.4.0",
48
+ "@atlaskit/profilecard": "^24.39.0",
49
+ "@atlaskit/theme": "^22.0.0",
50
+ "@atlaskit/tmp-editor-statsig": "^32.6.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.21.0",
60
+ "@atlaskit/editor-common": "^111.23.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"