@atlaskit/editor-plugin-mentions 32.0.9 → 32.0.11
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 +14 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/type-ahead/MentionItemWithProfileCard.js +1 -2
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/type-ahead/MentionItemWithProfileCard.js +1 -2
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/type-ahead/MentionItemWithProfileCard.js +1 -2
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 32.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`94ff9b457e6c9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/94ff9b457e6c9) -
|
|
8
|
+
Remove the typeahead profile card scrollbar gate and retain scrollbar-aware positioning.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 32.0.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 32.0.9
|
|
4
18
|
|
|
5
19
|
### 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.
|
|
48
|
+
var PACKAGE_VERSION = "32.0.10";
|
|
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
|
|
149
|
+
if (!referenceElement) {
|
|
151
150
|
return undefined;
|
|
152
151
|
}
|
|
153
152
|
return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
|
|
@@ -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.
|
|
37
|
+
const PACKAGE_VERSION = "32.0.10";
|
|
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
|
|
132
|
+
if (!referenceElement) {
|
|
134
133
|
return undefined;
|
|
135
134
|
}
|
|
136
135
|
return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
|
|
@@ -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.
|
|
40
|
+
var PACKAGE_VERSION = "32.0.10";
|
|
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
|
|
141
|
+
if (!referenceElement) {
|
|
143
142
|
return undefined;
|
|
144
143
|
}
|
|
145
144
|
return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "32.0.
|
|
3
|
+
"version": "32.0.11",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/section-message": "^10.2.0",
|
|
47
47
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
48
48
|
"@atlaskit/theme": "^28.2.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^253.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^20.9.0",
|
|
51
51
|
"@atlaskit/tooltip": "^24.4.0",
|
|
52
52
|
"@atlaskit/user-picker": "^14.5.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"uuid": "^11.1.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@atlaskit/editor-common": "^134.
|
|
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.
|
|
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",
|
|
@@ -106,9 +106,6 @@
|
|
|
106
106
|
"platform_editor_mention_typeahead_profilecard": {
|
|
107
107
|
"type": "boolean"
|
|
108
108
|
},
|
|
109
|
-
"platform_editor_typeahead_profilecard_scrollbar": {
|
|
110
|
-
"type": "boolean"
|
|
111
|
-
},
|
|
112
109
|
"platform_editor_agent_mentions_invite_order": {
|
|
113
110
|
"type": "boolean"
|
|
114
111
|
},
|