@atlaskit/editor-plugin-mentions 24.1.0 → 25.0.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 25.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 24.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`a726b246b3166`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a726b246b3166) -
14
+ Clean up feature gate `platform_editor_agent_card_close_on_chat`
15
+ - Updated dependencies
16
+
3
17
  ## 24.1.0
4
18
 
5
19
  ### Minor Changes
@@ -107,7 +107,7 @@ var profileCardRenderer = exports.profileCardRenderer = function profileCardRend
107
107
  // The mention stays node-selected after the chat opens; collapse the
108
108
  // selection to a cursor just after it so it is no longer left selected.
109
109
  // Selection-only change, so it does not move focus (EDITOR-8257).
110
- if (editorView && (0, _fg.fg)('platform_editor_agent_card_close_on_chat')) {
110
+ if (editorView) {
111
111
  var state = editorView.state;
112
112
  editorView.dispatch(state.tr.setSelection(_state.TextSelection.create(state.doc, state.selection.to)));
113
113
  }
@@ -45,7 +45,7 @@ var ACTIONS = exports.ACTIONS = {
45
45
  CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
46
46
  };
47
47
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
48
- var PACKAGE_VERSION = "24.0.10";
48
+ var PACKAGE_VERSION = "24.1.1";
49
49
  var setProvider = function setProvider(provider) {
50
50
  return function (state, dispatch) {
51
51
  if (dispatch) {
@@ -16,6 +16,8 @@ var _constants = require("@atlaskit/theme/constants");
16
16
  var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
17
17
  var _useFocusTrap = require("./useFocusTrap");
18
18
  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
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
20
+
19
21
  // From `packages/design-system/popup/src/reposition-on-update.tsx`
20
22
  var RepositionOnUpdate = exports.RepositionOnUpdate = function RepositionOnUpdate(_ref) {
21
23
  var children = _ref.children,
@@ -233,9 +233,7 @@ function ProfileCardComponent(_ref6) {
233
233
  // closure built by profileCardRenderer at chip-click time via doc.descendants()
234
234
  onAgentMentionChatClick(agentStudioId !== null && agentStudioId !== void 0 ? agentStudioId : id);
235
235
  // Dismiss the profile card once the Rovo chat panel opens (EDITOR-8257).
236
- if ((0, _fg.fg)('platform_editor_agent_card_close_on_chat')) {
237
- closeComponent();
238
- }
236
+ closeComponent();
239
237
  } : undefined
240
238
  }) : /*#__PURE__*/React.createElement(UserProfileCardContent, {
241
239
  accessLevel: accessLevel,
@@ -96,7 +96,7 @@ export const profileCardRenderer = ({
96
96
  // The mention stays node-selected after the chat opens; collapse the
97
97
  // selection to a cursor just after it so it is no longer left selected.
98
98
  // Selection-only change, so it does not move focus (EDITOR-8257).
99
- if (editorView && fg('platform_editor_agent_card_close_on_chat')) {
99
+ if (editorView) {
100
100
  const {
101
101
  state
102
102
  } = editorView;
@@ -34,7 +34,7 @@ export const ACTIONS = {
34
34
  CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
35
35
  };
36
36
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
37
- const PACKAGE_VERSION = "24.0.10";
37
+ const PACKAGE_VERSION = "24.1.1";
38
38
  const setProvider = provider => (state, dispatch) => {
39
39
  if (dispatch) {
40
40
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -2,6 +2,7 @@ import React, { useRef, useLayoutEffect, useEffect, Suspense } from 'react';
2
2
  import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  import { Popper as ReactPopper } from '@atlaskit/popper/main';
4
4
  import Portal from '@atlaskit/portal/portal';
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
5
6
  import { layers } from '@atlaskit/theme/constants';
6
7
  import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
7
8
  import { useFocusTrap } from './useFocusTrap';
@@ -157,9 +157,7 @@ export function ProfileCardComponent({
157
157
  // closure built by profileCardRenderer at chip-click time via doc.descendants()
158
158
  onAgentMentionChatClick(agentStudioId !== null && agentStudioId !== void 0 ? agentStudioId : id);
159
159
  // Dismiss the profile card once the Rovo chat panel opens (EDITOR-8257).
160
- if (fg('platform_editor_agent_card_close_on_chat')) {
161
- closeComponent();
162
- }
160
+ closeComponent();
163
161
  } : undefined
164
162
  }) : /*#__PURE__*/React.createElement(UserProfileCardContent, {
165
163
  accessLevel: accessLevel,
@@ -101,7 +101,7 @@ export var profileCardRenderer = function profileCardRenderer(_ref) {
101
101
  // The mention stays node-selected after the chat opens; collapse the
102
102
  // selection to a cursor just after it so it is no longer left selected.
103
103
  // Selection-only change, so it does not move focus (EDITOR-8257).
104
- if (editorView && fg('platform_editor_agent_card_close_on_chat')) {
104
+ if (editorView) {
105
105
  var state = editorView.state;
106
106
  editorView.dispatch(state.tr.setSelection(TextSelection.create(state.doc, state.selection.to)));
107
107
  }
@@ -37,7 +37,7 @@ export var ACTIONS = {
37
37
  CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
38
38
  };
39
39
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
40
- var PACKAGE_VERSION = "24.0.10";
40
+ var PACKAGE_VERSION = "24.1.1";
41
41
  var setProvider = function setProvider(provider) {
42
42
  return function (state, dispatch) {
43
43
  if (dispatch) {
@@ -3,6 +3,7 @@ import React, { useRef, useLayoutEffect, useEffect, Suspense } from 'react';
3
3
  import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  import { Popper as ReactPopper } from '@atlaskit/popper/main';
5
5
  import Portal from '@atlaskit/portal/portal';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
6
7
  import { layers } from '@atlaskit/theme/constants';
7
8
  import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
8
9
  import { useFocusTrap } from './useFocusTrap';
@@ -221,9 +221,7 @@ export function ProfileCardComponent(_ref6) {
221
221
  // closure built by profileCardRenderer at chip-click time via doc.descendants()
222
222
  onAgentMentionChatClick(agentStudioId !== null && agentStudioId !== void 0 ? agentStudioId : id);
223
223
  // Dismiss the profile card once the Rovo chat panel opens (EDITOR-8257).
224
- if (fg('platform_editor_agent_card_close_on_chat')) {
225
- closeComponent();
226
- }
224
+ closeComponent();
227
225
  } : undefined
228
226
  }) : /*#__PURE__*/React.createElement(UserProfileCardContent, {
229
227
  accessLevel: accessLevel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "24.1.0",
3
+ "version": "25.0.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,11 +24,11 @@
24
24
  "@atlaskit/adf-schema": "^57.6.0",
25
25
  "@atlaskit/css": "^1.1.0",
26
26
  "@atlaskit/editor-json-transformer": "^10.0.0",
27
- "@atlaskit/editor-plugin-analytics": "^22.0.0",
28
- "@atlaskit/editor-plugin-base": "^23.0.0",
29
- "@atlaskit/editor-plugin-context-identifier": "^22.0.0",
30
- "@atlaskit/editor-plugin-selection": "^22.0.0",
31
- "@atlaskit/editor-plugin-type-ahead": "^23.0.0",
27
+ "@atlaskit/editor-plugin-analytics": "^23.0.0",
28
+ "@atlaskit/editor-plugin-base": "^24.0.0",
29
+ "@atlaskit/editor-plugin-context-identifier": "^23.0.0",
30
+ "@atlaskit/editor-plugin-selection": "^23.0.0",
31
+ "@atlaskit/editor-plugin-type-ahead": "^24.0.0",
32
32
  "@atlaskit/editor-prosemirror": "^9.0.0",
33
33
  "@atlaskit/feature-gate-js-client": "^7.0.0",
34
34
  "@atlaskit/icon": "^38.0.0",
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/link": "^5.1.0",
37
37
  "@atlaskit/lozenge": "^17.0.0",
38
38
  "@atlaskit/mention": "^30.0.0",
39
- "@atlaskit/node-data-provider": "^23.0.0",
39
+ "@atlaskit/node-data-provider": "^24.0.0",
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.2.0",
42
42
  "@atlaskit/popper": "^9.4.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/section-message": "^10.2.0",
48
48
  "@atlaskit/teams-app-config": "^3.1.0",
49
49
  "@atlaskit/theme": "^28.2.0",
50
- "@atlaskit/tmp-editor-statsig": "^218.0.0",
50
+ "@atlaskit/tmp-editor-statsig": "^219.0.0",
51
51
  "@atlaskit/tokens": "^20.1.0",
52
52
  "@atlaskit/tooltip": "^24.3.0",
53
53
  "@atlaskit/user-picker": "^14.0.0",
@@ -60,14 +60,14 @@
60
60
  "uuid": "^11.1.1"
61
61
  },
62
62
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^126.4.0",
63
+ "@atlaskit/editor-common": "^127.0.0",
64
64
  "react": "^18.2.0 || ^19.2.0",
65
65
  "react-dom": "^18.2.0 || ^19.2.0",
66
66
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@atlaskit/button": "^25.4.0",
70
- "@atlaskit/editor-core": "^232.0.0",
70
+ "@atlaskit/editor-core": "^233.0.0",
71
71
  "@atlassian/workbench": "workspace:*",
72
72
  "@testing-library/react": "^16.3.0",
73
73
  "react": "^19.2.0",
@@ -102,9 +102,6 @@
102
102
  "platform_editor_agent_mentions_drop_one_fixes": {
103
103
  "type": "boolean"
104
104
  },
105
- "platform_editor_agent_card_close_on_chat": {
106
- "type": "boolean"
107
- },
108
105
  "platform_editor_mention_typeahead_profilecard": {
109
106
  "type": "boolean"
110
107
  },