@atlaskit/editor-plugin-mentions 1.6.1 → 1.7.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/.eslintrc.js +1 -1
- package/CHANGELOG.md +22 -0
- package/dist/cjs/ui/InviteItem/index.js +2 -0
- package/dist/cjs/ui/InviteItem/styles.js +2 -0
- package/dist/cjs/ui/Mention/mention.js +1 -0
- package/dist/es2019/ui/InviteItem/index.js +2 -0
- package/dist/es2019/ui/InviteItem/styles.js +1 -0
- package/dist/es2019/ui/Mention/mention.js +1 -0
- package/dist/esm/ui/InviteItem/index.js +2 -0
- package/dist/esm/ui/InviteItem/styles.js +1 -0
- package/dist/esm/ui/Mention/mention.js +1 -0
- package/package.json +43 -19
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 1.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#111187](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111187)
|
|
8
|
+
[`3fc3b37188f2c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3fc3b37188f2c) -
|
|
9
|
+
[ux] [ED-23788] Make sure that profilecards in the Editor do not autofocus, so that users can
|
|
10
|
+
click on a mention and immediate delete it by pressing `Backspace` or `Delete`
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.7.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
|
|
18
|
+
[`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
|
|
19
|
+
Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 1.6.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -18,6 +18,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
18
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
|
|
21
23
|
var INVITE_ITEM_DESCRIPTION = exports.INVITE_ITEM_DESCRIPTION = {
|
|
22
24
|
id: 'invite-teammate'
|
|
23
25
|
};
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.rowStyle = exports.nameSectionStyle = exports.mentionItemStyle = exports.mentionItemSelectedStyle = exports.capitalizedStyle = exports.avatarStyle = exports.ROW_SIDE_PADDING = exports.AVATAR_HEIGHT = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
9
11
|
var ROW_SIDE_PADDING = exports.ROW_SIDE_PADDING = 14;
|
|
10
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
13
|
var rowStyle = exports.rowStyle = (0, _react.css)({
|
|
@@ -105,6 +105,7 @@ var Mention = exports.Mention = function Mention(props) {
|
|
|
105
105
|
});
|
|
106
106
|
if (profilecardProvider) {
|
|
107
107
|
return /*#__PURE__*/_react.default.createElement(_mention.MentionWithProfileCard, (0, _extends2.default)({
|
|
108
|
+
autoFocus: false,
|
|
108
109
|
id: id,
|
|
109
110
|
text: resolvedName,
|
|
110
111
|
accessLevel: accessLevel,
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import React, { useCallback, useEffect } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { jsx } from '@emotion/react';
|
|
6
8
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
7
9
|
import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import React, { useCallback, useEffect } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { jsx } from '@emotion/react';
|
|
6
8
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
7
9
|
import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
"types": "dist/types/index.d.ts",
|
|
22
22
|
"typesVersions": {
|
|
23
23
|
">=4.5 <4.9": {
|
|
24
|
-
"*": [
|
|
24
|
+
"*": [
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
27
|
+
]
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
30
|
"sideEffects": false,
|
|
@@ -30,18 +33,18 @@
|
|
|
30
33
|
".": "./src/index.ts"
|
|
31
34
|
},
|
|
32
35
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^
|
|
36
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
|
34
37
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
38
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^1.3.0",
|
|
37
40
|
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
38
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
41
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.3.0",
|
|
39
42
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
40
|
-
"@atlaskit/icon": "^22.
|
|
43
|
+
"@atlaskit/icon": "^22.4.0",
|
|
41
44
|
"@atlaskit/mention": "^23.2.0",
|
|
42
45
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
43
|
-
"@atlaskit/theme": "^12.
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/theme": "^12.11.0",
|
|
47
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
45
48
|
"@babel/runtime": "^7.0.0",
|
|
46
49
|
"@emotion/react": "^11.7.1",
|
|
47
50
|
"uuid": "^3.1.0"
|
|
@@ -62,23 +65,44 @@
|
|
|
62
65
|
},
|
|
63
66
|
"techstack": {
|
|
64
67
|
"@atlassian/frontend": {
|
|
65
|
-
"code-structure": [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
"code-structure": [
|
|
69
|
+
"tangerine-next"
|
|
70
|
+
],
|
|
71
|
+
"import-structure": [
|
|
72
|
+
"atlassian-conventions"
|
|
73
|
+
],
|
|
74
|
+
"circular-dependencies": [
|
|
75
|
+
"file-and-folder-level"
|
|
76
|
+
]
|
|
68
77
|
},
|
|
69
78
|
"@repo/internal": {
|
|
70
79
|
"dom-events": "use-bind-event-listener",
|
|
71
|
-
"analytics": [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
80
|
+
"analytics": [
|
|
81
|
+
"analytics-next"
|
|
82
|
+
],
|
|
83
|
+
"design-tokens": [
|
|
84
|
+
"color"
|
|
85
|
+
],
|
|
86
|
+
"theming": [
|
|
87
|
+
"react-context"
|
|
88
|
+
],
|
|
89
|
+
"ui-components": [
|
|
90
|
+
"lite-mode"
|
|
91
|
+
],
|
|
75
92
|
"deprecation": "no-deprecated-imports",
|
|
76
|
-
"styling": [
|
|
77
|
-
|
|
93
|
+
"styling": [
|
|
94
|
+
"emotion",
|
|
95
|
+
"emotion"
|
|
96
|
+
],
|
|
97
|
+
"imports": [
|
|
98
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
99
|
+
]
|
|
78
100
|
}
|
|
79
101
|
},
|
|
80
102
|
"techstackIgnore": {
|
|
81
|
-
"stricter": [
|
|
103
|
+
"stricter": [
|
|
104
|
+
"@atlassian/tangerine/project-structure"
|
|
105
|
+
]
|
|
82
106
|
},
|
|
83
107
|
"platform-feature-flags": {
|
|
84
108
|
"platform.editor.mentions-in-editor-popup-on-click": {
|