@atlaskit/editor-plugin-mentions 19.1.2 → 19.1.4
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/disabledTooltipRenderer.js +1 -1
- package/dist/cjs/nodeviews/mentionNodeView.js +2 -5
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/InlineInvitePopupContainer.js +1 -1
- package/dist/cjs/ui/InviteItem/InviteItemWithEmailDomain.js +1 -1
- package/dist/cjs/ui/InviteItem/index.js +1 -1
- package/dist/cjs/ui/ProfileCardComponent.js +1 -1
- package/dist/cjs/ui/type-ahead/AgentMentionLoadErrorItem.js +1 -1
- package/dist/cjs/ui/type-ahead/MentionItemWithProfileCard.js +1 -1
- package/dist/es2019/nodeviews/disabledTooltipRenderer.js +1 -1
- package/dist/es2019/nodeviews/mentionNodeView.js +2 -5
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/InlineInvitePopupContainer.js +1 -1
- package/dist/es2019/ui/InviteItem/InviteItemWithEmailDomain.js +1 -1
- package/dist/es2019/ui/InviteItem/index.js +1 -1
- package/dist/es2019/ui/ProfileCardComponent.js +1 -1
- package/dist/es2019/ui/type-ahead/AgentMentionLoadErrorItem.js +1 -1
- package/dist/es2019/ui/type-ahead/MentionItemWithProfileCard.js +1 -1
- package/dist/esm/nodeviews/disabledTooltipRenderer.js +1 -1
- package/dist/esm/nodeviews/mentionNodeView.js +2 -5
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/InlineInvitePopupContainer.js +1 -1
- package/dist/esm/ui/InviteItem/InviteItemWithEmailDomain.js +1 -1
- package/dist/esm/ui/InviteItem/index.js +1 -1
- package/dist/esm/ui/ProfileCardComponent.js +1 -1
- package/dist/esm/ui/type-ahead/AgentMentionLoadErrorItem.js +1 -1
- package/dist/esm/ui/type-ahead/MentionItemWithProfileCard.js +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 19.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9142c78d2fa96`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9142c78d2fa96) -
|
|
8
|
+
Remove the `platform_editor_vc90_transition_mentions` experiment and ship its enabled behavior for
|
|
9
|
+
mention highlighting
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 19.1.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 19.1.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -20,7 +20,6 @@ var _resource = require("@atlaskit/mention/resource");
|
|
|
20
20
|
var _types = require("@atlaskit/mention/types");
|
|
21
21
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
22
22
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
23
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
23
|
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
25
24
|
var _disabledTooltipRenderer = require("./disabledTooltipRenderer");
|
|
26
25
|
var _mentionAvatarRenderer = require("./mentionAvatarRenderer");
|
|
@@ -411,15 +410,13 @@ var MentionNodeView = exports.MentionNodeView = /*#__PURE__*/function () {
|
|
|
411
410
|
key: "updateState",
|
|
412
411
|
value: function () {
|
|
413
412
|
var _updateState = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(mentionProvider) {
|
|
414
|
-
var
|
|
413
|
+
var _this$config$options2;
|
|
415
414
|
var isAgentMentionsEnabled, isHighlighted, disabledState, isDisabled, newState, disabledTooltip, name, text;
|
|
416
415
|
return _regenerator.default.wrap(function (_context2) {
|
|
417
416
|
while (1) switch (_context2.prev = _context2.next) {
|
|
418
417
|
case 0:
|
|
419
418
|
isAgentMentionsEnabled = isAgentMentionsExperimentEnabled();
|
|
420
|
-
isHighlighted =
|
|
421
|
-
id: this.node.attrs.id
|
|
422
|
-
})) !== null && _mentionProvider$shou2 !== void 0 ? _mentionProvider$shou2 : false;
|
|
419
|
+
isHighlighted = this.shouldHighlightMention(mentionProvider);
|
|
423
420
|
disabledState = this.getDisabledState(mentionProvider);
|
|
424
421
|
isDisabled = !!(disabledState !== null && disabledState !== void 0 && disabledState.disabled);
|
|
425
422
|
newState = getNewState(isHighlighted, (0, _types.isRestricted)(this.node.attrs.accessLevel), isDisabled);
|
|
@@ -43,7 +43,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
43
43
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
44
44
|
};
|
|
45
45
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
46
|
-
var PACKAGE_VERSION = "19.1.
|
|
46
|
+
var PACKAGE_VERSION = "19.1.3";
|
|
47
47
|
var setProvider = function setProvider(provider) {
|
|
48
48
|
return function (state, dispatch) {
|
|
49
49
|
if (dispatch) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* disabledTooltipRenderer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* disabledTooltipRenderer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./disabledTooltipRenderer.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
@@ -11,7 +11,6 @@ import { isResolvingMentionProvider, MentionNameStatus } from '@atlaskit/mention
|
|
|
11
11
|
import { isRestricted } from '@atlaskit/mention/types';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
14
|
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
16
15
|
import { disabledTooltipRenderer } from './disabledTooltipRenderer';
|
|
17
16
|
import { mentionAvatarRenderer } from './mentionAvatarRenderer';
|
|
@@ -358,11 +357,9 @@ export class MentionNodeView {
|
|
|
358
357
|
}
|
|
359
358
|
}
|
|
360
359
|
async updateState(mentionProvider) {
|
|
361
|
-
var
|
|
360
|
+
var _this$config$options2;
|
|
362
361
|
const isAgentMentionsEnabled = isAgentMentionsExperimentEnabled();
|
|
363
|
-
const isHighlighted =
|
|
364
|
-
id: this.node.attrs.id
|
|
365
|
-
})) !== null && _mentionProvider$shou2 !== void 0 ? _mentionProvider$shou2 : false;
|
|
362
|
+
const isHighlighted = this.shouldHighlightMention(mentionProvider);
|
|
366
363
|
const disabledState = this.getDisabledState(mentionProvider);
|
|
367
364
|
const isDisabled = !!(disabledState !== null && disabledState !== void 0 && disabledState.disabled);
|
|
368
365
|
const newState = getNewState(isHighlighted, isRestricted(this.node.attrs.accessLevel), isDisabled);
|
|
@@ -32,7 +32,7 @@ export const ACTIONS = {
|
|
|
32
32
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
33
33
|
};
|
|
34
34
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
35
|
-
const PACKAGE_VERSION = "19.1.
|
|
35
|
+
const PACKAGE_VERSION = "19.1.3";
|
|
36
36
|
const setProvider = provider => (state, dispatch) => {
|
|
37
37
|
if (dispatch) {
|
|
38
38
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* InlineInvitePopupContainer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* InlineInvitePopupContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import { ax, ix } from "@compiled/react/runtime";
|
|
3
3
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
4
|
const findMentionRange = (doc, localId) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* InviteItemWithEmailDomain.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* InviteItemWithEmailDomain.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./InviteItemWithEmailDomain.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ProfileCardComponent.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* ProfileCardComponent.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./ProfileCardComponent.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AgentMentionLoadErrorItem.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* AgentMentionLoadErrorItem.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./AgentMentionLoadErrorItem.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MentionItemWithProfileCard.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* MentionItemWithProfileCard.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./MentionItemWithProfileCard.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* disabledTooltipRenderer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* disabledTooltipRenderer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./disabledTooltipRenderer.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -17,7 +17,6 @@ import { isResolvingMentionProvider, MentionNameStatus } from '@atlaskit/mention
|
|
|
17
17
|
import { isRestricted } from '@atlaskit/mention/types';
|
|
18
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
20
|
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
22
21
|
import { disabledTooltipRenderer } from './disabledTooltipRenderer';
|
|
23
22
|
import { mentionAvatarRenderer } from './mentionAvatarRenderer';
|
|
@@ -406,15 +405,13 @@ export var MentionNodeView = /*#__PURE__*/function () {
|
|
|
406
405
|
key: "updateState",
|
|
407
406
|
value: function () {
|
|
408
407
|
var _updateState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(mentionProvider) {
|
|
409
|
-
var
|
|
408
|
+
var _this$config$options2;
|
|
410
409
|
var isAgentMentionsEnabled, isHighlighted, disabledState, isDisabled, newState, disabledTooltip, name, text;
|
|
411
410
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
412
411
|
while (1) switch (_context2.prev = _context2.next) {
|
|
413
412
|
case 0:
|
|
414
413
|
isAgentMentionsEnabled = isAgentMentionsExperimentEnabled();
|
|
415
|
-
isHighlighted =
|
|
416
|
-
id: this.node.attrs.id
|
|
417
|
-
})) !== null && _mentionProvider$shou2 !== void 0 ? _mentionProvider$shou2 : false;
|
|
414
|
+
isHighlighted = this.shouldHighlightMention(mentionProvider);
|
|
418
415
|
disabledState = this.getDisabledState(mentionProvider);
|
|
419
416
|
isDisabled = !!(disabledState !== null && disabledState !== void 0 && disabledState.disabled);
|
|
420
417
|
newState = getNewState(isHighlighted, isRestricted(this.node.attrs.accessLevel), isDisabled);
|
|
@@ -35,7 +35,7 @@ export var ACTIONS = {
|
|
|
35
35
|
CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
|
|
36
36
|
};
|
|
37
37
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
38
|
-
var PACKAGE_VERSION = "19.1.
|
|
38
|
+
var PACKAGE_VERSION = "19.1.3";
|
|
39
39
|
var setProvider = function setProvider(provider) {
|
|
40
40
|
return function (state, dispatch) {
|
|
41
41
|
if (dispatch) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* InlineInvitePopupContainer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* InlineInvitePopupContainer.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* InviteItemWithEmailDomain.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* InviteItemWithEmailDomain.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./InviteItemWithEmailDomain.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ProfileCardComponent.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* ProfileCardComponent.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./ProfileCardComponent.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* AgentMentionLoadErrorItem.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* AgentMentionLoadErrorItem.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import "./AgentMentionLoadErrorItem.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MentionItemWithProfileCard.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* MentionItemWithProfileCard.tsx generated by @compiled/babel-plugin v3.0.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./MentionItemWithProfileCard.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.4",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.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": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^185.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^16.11.0",
|
|
52
52
|
"@atlaskit/tooltip": "^24.3.0",
|
|
53
53
|
"@atlaskit/user-picker": "^13.12.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"uuid": "^11.1.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@atlaskit/editor-common": "^121.
|
|
62
|
+
"@atlaskit/editor-common": "^121.3.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"
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@atlaskit/button": "^25.3.0",
|
|
69
69
|
"@atlaskit/editor-core": "^227.0.0",
|
|
70
|
+
"@atlassian/workbench": "workspace:*",
|
|
70
71
|
"@testing-library/react": "^16.3.0",
|
|
71
72
|
"react": "^19.2.0",
|
|
72
73
|
"react-dom": "^19.2.0",
|