@atlaskit/editor-plugin-mentions 32.1.3 → 32.1.5
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 +15 -0
- package/dist/cjs/nodeviews/mentionAvatarRenderer.js +1 -1
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/es2019/nodeviews/mentionAvatarRenderer.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/nodeviews/mentionAvatarRenderer.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 32.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 32.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ab90c400d397a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab90c400d397a) -
|
|
14
|
+
Apply corrected agent mention avatar geometry in both editor rendering paths for
|
|
15
|
+
`canvas_agentic_experiences_master_exp` alongside `platform_editor_agent_hexagon_ui_fix`.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 32.1.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -61,7 +61,7 @@ var mentionAvatarRenderer = exports.mentionAvatarRenderer = function mentionAvat
|
|
|
61
61
|
avatarUrl = _ref2.avatarUrl,
|
|
62
62
|
isAvatarImagePreShaped = _ref2.isAvatarImagePreShaped;
|
|
63
63
|
var shouldApplyAgentClip = !isAvatarImagePreShaped && appType === 'agent';
|
|
64
|
-
var shouldApplyFixedAgentClip = shouldApplyAgentClip && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_hexagon_ui_fix');
|
|
64
|
+
var shouldApplyFixedAgentClip = shouldApplyAgentClip && ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_hexagon_ui_fix') || (0, _isExperimentEnabled.isExperimentEnabled)('canvas_agentic_experiences_master_exp'));
|
|
65
65
|
container.classList.toggle(agentAvatarClassName, shouldApplyAgentClip);
|
|
66
66
|
container.classList.toggle(fixedAgentAvatarClassName, shouldApplyFixedAgentClip);
|
|
67
67
|
removeFallback();
|
|
@@ -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.1.
|
|
48
|
+
var PACKAGE_VERSION = "32.1.4";
|
|
49
49
|
var setProvider = function setProvider(provider) {
|
|
50
50
|
return function (state, dispatch) {
|
|
51
51
|
if (dispatch) {
|
|
@@ -57,7 +57,7 @@ export const mentionAvatarRenderer = ({
|
|
|
57
57
|
isAvatarImagePreShaped
|
|
58
58
|
}) => {
|
|
59
59
|
const shouldApplyAgentClip = !isAvatarImagePreShaped && appType === 'agent';
|
|
60
|
-
const shouldApplyFixedAgentClip = shouldApplyAgentClip && isExperimentEnabled('platform_editor_agent_hexagon_ui_fix');
|
|
60
|
+
const shouldApplyFixedAgentClip = shouldApplyAgentClip && (isExperimentEnabled('platform_editor_agent_hexagon_ui_fix') || isExperimentEnabled('canvas_agentic_experiences_master_exp'));
|
|
61
61
|
container.classList.toggle(agentAvatarClassName, shouldApplyAgentClip);
|
|
62
62
|
container.classList.toggle(fixedAgentAvatarClassName, shouldApplyFixedAgentClip);
|
|
63
63
|
removeFallback();
|
|
@@ -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.1.
|
|
37
|
+
const PACKAGE_VERSION = "32.1.4";
|
|
38
38
|
const setProvider = provider => (state, dispatch) => {
|
|
39
39
|
if (dispatch) {
|
|
40
40
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -55,7 +55,7 @@ export var mentionAvatarRenderer = function mentionAvatarRenderer(_ref) {
|
|
|
55
55
|
avatarUrl = _ref2.avatarUrl,
|
|
56
56
|
isAvatarImagePreShaped = _ref2.isAvatarImagePreShaped;
|
|
57
57
|
var shouldApplyAgentClip = !isAvatarImagePreShaped && appType === 'agent';
|
|
58
|
-
var shouldApplyFixedAgentClip = shouldApplyAgentClip && isExperimentEnabled('platform_editor_agent_hexagon_ui_fix');
|
|
58
|
+
var shouldApplyFixedAgentClip = shouldApplyAgentClip && (isExperimentEnabled('platform_editor_agent_hexagon_ui_fix') || isExperimentEnabled('canvas_agentic_experiences_master_exp'));
|
|
59
59
|
container.classList.toggle(agentAvatarClassName, shouldApplyAgentClip);
|
|
60
60
|
container.classList.toggle(fixedAgentAvatarClassName, shouldApplyFixedAgentClip);
|
|
61
61
|
removeFallback();
|
|
@@ -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.1.
|
|
40
|
+
var PACKAGE_VERSION = "32.1.4";
|
|
41
41
|
var setProvider = function setProvider(provider) {
|
|
42
42
|
return function (state, dispatch) {
|
|
43
43
|
if (dispatch) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "32.1.
|
|
3
|
+
"version": "32.1.5",
|
|
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": "^258.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^20.9.0",
|
|
51
51
|
"@atlaskit/tooltip": "^24.4.0",
|
|
52
52
|
"@atlaskit/user-picker": "^14.5.0",
|