@atlaskit/editor-plugin-mentions 32.0.10 → 32.0.12

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,21 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 32.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3382e70050534`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3382e70050534) -
8
+ Clean up feature gate `platform_editor_mention_typeahead_profilecard`
9
+ - Updated dependencies
10
+
11
+ ## 32.0.11
12
+
13
+ ### Patch Changes
14
+
15
+ - [`94ff9b457e6c9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/94ff9b457e6c9) -
16
+ Remove the typeahead profile card scrollbar gate and retain scrollbar-aware positioning.
17
+ - Updated dependencies
18
+
3
19
  ## 32.0.10
4
20
 
5
21
  ### Patch Changes
@@ -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 = "32.0.9";
48
+ var PACKAGE_VERSION = "32.0.11";
49
49
  var setProvider = function setProvider(provider) {
50
50
  return function (state, dispatch) {
51
51
  if (dispatch) {
@@ -13,7 +13,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _mentionItem = _interopRequireDefault(require("@atlaskit/mention/mention-item"));
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  var _box = require("@atlaskit/primitives/compiled/box");
18
17
  var _ProfileCardComponent = require("../ProfileCardComponent");
19
18
  var _utils = require("./utils");
@@ -147,7 +146,7 @@ function MentionItemWithProfileCard(_ref2) {
147
146
 
148
147
  // If there's a scrollbar, position the card with a gap to it
149
148
  var offset = (0, _react.useMemo)(function () {
150
- if (!referenceElement || !(0, _fg.fg)('platform_editor_typeahead_profilecard_scrollbar')) {
149
+ if (!referenceElement) {
151
150
  return undefined;
152
151
  }
153
152
  return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
@@ -171,7 +171,7 @@ var makeMentionToTypeaheadItem = function makeMentionToTypeaheadItem(_ref4) {
171
171
  var isSelected = _ref7.isSelected,
172
172
  onClick = _ref7.onClick,
173
173
  onHover = _ref7.onHover;
174
- return (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) && (0, _fg.fg)('platform_editor_mention_typeahead_profilecard') || (0, _fg.fg)('platform_editor_agent_card_fixes') ? /*#__PURE__*/_react.default.createElement(_MentionItemWithProfileCard.MentionItemWithProfileCard, {
174
+ return (0, _expVal.expVal)('platform_editor_agent_mentions', 'isEnabled', false) || (0, _fg.fg)('platform_editor_agent_card_fixes') ? /*#__PURE__*/_react.default.createElement(_MentionItemWithProfileCard.MentionItemWithProfileCard, {
175
175
  mention: mention,
176
176
  selected: isSelected,
177
177
  onSelection: onClick,
@@ -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 = "32.0.9";
37
+ const PACKAGE_VERSION = "32.0.11";
38
38
  const setProvider = provider => (state, dispatch) => {
39
39
  if (dispatch) {
40
40
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
5
5
  import MentionItem from '@atlaskit/mention/mention-item';
6
6
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { Box } from '@atlaskit/primitives/compiled/box';
9
8
  import { ProfileCardComponent } from '../ProfileCardComponent';
10
9
  import { isAgentMention } from './utils';
@@ -130,7 +129,7 @@ export function MentionItemWithProfileCard({
130
129
 
131
130
  // If there's a scrollbar, position the card with a gap to it
132
131
  const offset = useMemo(() => {
133
- if (!referenceElement || !fg('platform_editor_typeahead_profilecard_scrollbar')) {
132
+ if (!referenceElement) {
134
133
  return undefined;
135
134
  }
136
135
  return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
@@ -138,7 +138,7 @@ const makeMentionToTypeaheadItem = ({
138
138
  isSelected,
139
139
  onClick,
140
140
  onHover
141
- }) => expVal('platform_editor_agent_mentions', 'isEnabled', false) && fg('platform_editor_mention_typeahead_profilecard') || fg('platform_editor_agent_card_fixes') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
141
+ }) => expVal('platform_editor_agent_mentions', 'isEnabled', false) || fg('platform_editor_agent_card_fixes') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
142
142
  mention: mention,
143
143
  selected: isSelected,
144
144
  onSelection: onClick,
@@ -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 = "32.0.9";
40
+ var PACKAGE_VERSION = "32.0.11";
41
41
  var setProvider = function setProvider(provider) {
42
42
  return function (state, dispatch) {
43
43
  if (dispatch) {
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
6
6
  import MentionItem from '@atlaskit/mention/mention-item';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
- import { fg } from '@atlaskit/platform-feature-flags/fg';
9
8
  import { Box } from '@atlaskit/primitives/compiled/box';
10
9
  import { ProfileCardComponent } from '../ProfileCardComponent';
11
10
  import { isAgentMention } from './utils';
@@ -139,7 +138,7 @@ export function MentionItemWithProfileCard(_ref2) {
139
138
 
140
139
  // If there's a scrollbar, position the card with a gap to it
141
140
  var offset = useMemo(function () {
142
- if (!referenceElement || !fg('platform_editor_typeahead_profilecard_scrollbar')) {
141
+ if (!referenceElement) {
143
142
  return undefined;
144
143
  }
145
144
  return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
@@ -162,7 +162,7 @@ var makeMentionToTypeaheadItem = function makeMentionToTypeaheadItem(_ref4) {
162
162
  var isSelected = _ref7.isSelected,
163
163
  onClick = _ref7.onClick,
164
164
  onHover = _ref7.onHover;
165
- return expVal('platform_editor_agent_mentions', 'isEnabled', false) && fg('platform_editor_mention_typeahead_profilecard') || fg('platform_editor_agent_card_fixes') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
165
+ return expVal('platform_editor_agent_mentions', 'isEnabled', false) || fg('platform_editor_agent_card_fixes') ? /*#__PURE__*/React.createElement(MentionItemWithProfileCard, {
166
166
  mention: mention,
167
167
  selected: isSelected,
168
168
  onSelection: onClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "32.0.10",
3
+ "version": "32.0.12",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -59,14 +59,14 @@
59
59
  "uuid": "^11.1.1"
60
60
  },
61
61
  "peerDependencies": {
62
- "@atlaskit/editor-common": "^134.5.0",
62
+ "@atlaskit/editor-common": "^134.6.0",
63
63
  "react": "^18.2.0 || ^19.2.0",
64
64
  "react-dom": "^18.2.0 || ^19.2.0",
65
65
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@atlaskit/button": "^25.7.0",
69
- "@atlaskit/editor-common": "^134.5.0",
69
+ "@atlaskit/editor-common": "^134.6.0",
70
70
  "@atlaskit/editor-core": "^242.0.0",
71
71
  "@atlassian/workbench": "workspace:*",
72
72
  "react": "^19.2.0",
@@ -103,12 +103,6 @@
103
103
  "platform_editor_agent_mentions_drop_one_fixes": {
104
104
  "type": "boolean"
105
105
  },
106
- "platform_editor_mention_typeahead_profilecard": {
107
- "type": "boolean"
108
- },
109
- "platform_editor_typeahead_profilecard_scrollbar": {
110
- "type": "boolean"
111
- },
112
106
  "platform_editor_agent_mentions_invite_order": {
113
107
  "type": "boolean"
114
108
  },