@atlaskit/editor-plugin-mentions 29.0.6 → 30.0.1
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 +12 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/type-ahead/AgentMentionLoadErrorItem.js +4 -3
- package/dist/cjs/ui/type-ahead/MentionItemWithProfileCard.js +4 -4
- package/dist/cjs/ui/type-ahead/index.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/type-ahead/AgentMentionLoadErrorItem.js +2 -1
- package/dist/es2019/ui/type-ahead/MentionItemWithProfileCard.js +1 -1
- package/dist/es2019/ui/type-ahead/index.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/type-ahead/AgentMentionLoadErrorItem.js +2 -1
- package/dist/esm/ui/type-ahead/MentionItemWithProfileCard.js +1 -1
- package/dist/esm/ui/type-ahead/index.js +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -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 = "
|
|
48
|
+
var PACKAGE_VERSION = "30.0.1";
|
|
49
49
|
var setProvider = function setProvider(provider) {
|
|
50
50
|
return function (state, dispatch) {
|
|
51
51
|
if (dispatch) {
|
|
@@ -14,7 +14,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _mentions = require("@atlaskit/editor-common/messages/mentions");
|
|
16
16
|
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
17
|
-
var
|
|
17
|
+
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
18
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
18
19
|
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
20
|
var styles = {
|
|
20
21
|
retryRow: "_11c8fhey _189eidpf _1rjcu2gc _18zrutpp _4cvr1h6o _bfhk1j28 _vchhusvi _syazazsu _80omtlke _1e0c1txw _1tke1ylp _y3gn1e5h _1bsb1osq",
|
|
@@ -37,13 +38,13 @@ var AgentMentionLoadErrorItem = exports.AgentMentionLoadErrorItem = function Age
|
|
|
37
38
|
onClick: handleClick,
|
|
38
39
|
"data-testid": "agent-mention-load-error-item",
|
|
39
40
|
className: (0, _runtime.ax)([styles.retryRow])
|
|
40
|
-
}, /*#__PURE__*/React.createElement(
|
|
41
|
+
}, /*#__PURE__*/React.createElement(_inline.Inline, {
|
|
41
42
|
alignBlock: "center",
|
|
42
43
|
space: "space.100"
|
|
43
44
|
}, /*#__PURE__*/React.createElement(_statusError.default, {
|
|
44
45
|
label: "",
|
|
45
46
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
46
|
-
}), /*#__PURE__*/React.createElement(
|
|
47
|
+
}), /*#__PURE__*/React.createElement(_text.Text, {
|
|
47
48
|
as: "span",
|
|
48
49
|
color: "color.text.subtle"
|
|
49
50
|
}, intl.formatMessage(_mentions.mentionMessages.typeAheadSectionAgentsLoadError)), /*#__PURE__*/React.createElement("span", {
|
|
@@ -14,7 +14,7 @@ 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
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
|
-
var
|
|
17
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
18
18
|
var _ProfileCardComponent = require("../ProfileCardComponent");
|
|
19
19
|
var _utils = require("./utils");
|
|
20
20
|
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); }
|
|
@@ -153,10 +153,10 @@ function MentionItemWithProfileCard(_ref2) {
|
|
|
153
153
|
return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
|
|
154
154
|
}, [referenceElement]);
|
|
155
155
|
if (mention.isPlaceholder) {
|
|
156
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
156
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
157
157
|
testId: "mention-item-with-profile-card",
|
|
158
158
|
xcss: styles.placeholderContainer
|
|
159
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
159
|
+
}, /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
160
160
|
xcss: styles.placeholderContent
|
|
161
161
|
}, /*#__PURE__*/_react.default.createElement(_mentionItem.default, {
|
|
162
162
|
mention: mention,
|
|
@@ -166,7 +166,7 @@ function MentionItemWithProfileCard(_ref2) {
|
|
|
166
166
|
height: height
|
|
167
167
|
})));
|
|
168
168
|
}
|
|
169
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
169
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
170
170
|
testId: "mention-item-with-profile-card",
|
|
171
171
|
onMouseOver: cancelHide,
|
|
172
172
|
onMouseOut: scheduleHide,
|
|
@@ -16,7 +16,7 @@ var _mentions = require("@atlaskit/editor-common/messages/mentions");
|
|
|
16
16
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
17
17
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
18
18
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
19
|
-
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
|
|
19
|
+
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/new/lozenge"));
|
|
20
20
|
var _isResolvingMentionProvider = require("@atlaskit/mention/is-resolving-mention-provider");
|
|
21
21
|
var _mentionItem = _interopRequireDefault(require("@atlaskit/mention/mention-item"));
|
|
22
22
|
var _styles = require("@atlaskit/mention/mention-item/styles");
|
|
@@ -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 = "
|
|
37
|
+
const PACKAGE_VERSION = "30.0.1";
|
|
38
38
|
const setProvider = provider => (state, dispatch) => {
|
|
39
39
|
if (dispatch) {
|
|
40
40
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -6,7 +6,8 @@ import { useCallback } from 'react';
|
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
|
|
8
8
|
import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
9
|
-
import { Inline
|
|
9
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
10
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
10
11
|
const styles = {
|
|
11
12
|
retryRow: "_11c8fhey _189eidpf _1rjcu2gc _18zrutpp _4cvr1h6o _bfhk1j28 _vchhusvi _syazazsu _80omtlke _1e0c1txw _1tke1ylp _y3gn1e5h _1bsb1osq",
|
|
12
13
|
retryText: "_11c8fhey _syaz13af"
|
|
@@ -5,7 +5,7 @@ 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
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
9
|
import { ProfileCardComponent } from '../ProfileCardComponent';
|
|
10
10
|
import { isAgentMention } from './utils';
|
|
11
11
|
|
|
@@ -6,7 +6,7 @@ import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
|
|
|
6
6
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
7
7
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
9
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
10
10
|
import { isResolvingMentionProvider } from '@atlaskit/mention/is-resolving-mention-provider';
|
|
11
11
|
import MentionItem from '@atlaskit/mention/mention-item';
|
|
12
12
|
import { MENTION_ITEM_HEIGHT, MENTION_ITEM_HEIGHT_REFRESHED } from '@atlaskit/mention/mention-item/styles';
|
|
@@ -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 = "
|
|
40
|
+
var PACKAGE_VERSION = "30.0.1";
|
|
41
41
|
var setProvider = function setProvider(provider) {
|
|
42
42
|
return function (state, dispatch) {
|
|
43
43
|
if (dispatch) {
|
|
@@ -6,7 +6,8 @@ import { useCallback } from 'react';
|
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
|
|
8
8
|
import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
9
|
-
import { Inline
|
|
9
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
10
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
10
11
|
var styles = {
|
|
11
12
|
retryRow: "_11c8fhey _189eidpf _1rjcu2gc _18zrutpp _4cvr1h6o _bfhk1j28 _vchhusvi _syazazsu _80omtlke _1e0c1txw _1tke1ylp _y3gn1e5h _1bsb1osq",
|
|
12
13
|
retryText: "_11c8fhey _syaz13af"
|
|
@@ -6,7 +6,7 @@ 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
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
10
|
import { ProfileCardComponent } from '../ProfileCardComponent';
|
|
11
11
|
import { isAgentMention } from './utils';
|
|
12
12
|
|
|
@@ -13,7 +13,7 @@ import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
|
|
|
13
13
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
14
14
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
15
15
|
import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
16
|
-
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
16
|
+
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
17
17
|
import { isResolvingMentionProvider } from '@atlaskit/mention/is-resolving-mention-provider';
|
|
18
18
|
import MentionItem from '@atlaskit/mention/mention-item';
|
|
19
19
|
import { MENTION_ITEM_HEIGHT, MENTION_ITEM_HEIGHT_REFRESHED } from '@atlaskit/mention/mention-item/styles';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.1",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,25 +24,25 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
26
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
28
|
-
"@atlaskit/editor-plugin-base": "^
|
|
29
|
-
"@atlaskit/editor-plugin-context-identifier": "^
|
|
30
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
31
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^28.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-base": "^29.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-context-identifier": "^28.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-selection": "^28.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-type-ahead": "^29.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",
|
|
35
35
|
"@atlaskit/insm": "^3.0.0",
|
|
36
36
|
"@atlaskit/link": "^5.1.0",
|
|
37
37
|
"@atlaskit/lozenge": "^17.0.0",
|
|
38
|
-
"@atlaskit/mention": "^30.
|
|
39
|
-
"@atlaskit/node-data-provider": "^
|
|
38
|
+
"@atlaskit/mention": "^30.3.0",
|
|
39
|
+
"@atlaskit/node-data-provider": "^29.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",
|
|
43
|
-
"@atlaskit/popup": "^
|
|
43
|
+
"@atlaskit/popup": "^10.0.0",
|
|
44
44
|
"@atlaskit/portal": "^7.0.0",
|
|
45
|
-
"@atlaskit/primitives": "^22.
|
|
45
|
+
"@atlaskit/primitives": "^22.6.0",
|
|
46
46
|
"@atlaskit/profilecard": "^27.1.0",
|
|
47
47
|
"@atlaskit/section-message": "^10.2.0",
|
|
48
48
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"uuid": "^11.1.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^
|
|
63
|
+
"@atlaskit/editor-common": "^132.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": "^
|
|
70
|
+
"@atlaskit/editor-core": "^238.0.0",
|
|
71
71
|
"@atlassian/workbench": "workspace:*",
|
|
72
72
|
"@testing-library/react": "^16.3.0",
|
|
73
73
|
"react": "^19.2.0",
|