@atlaskit/editor-plugin-mentions 8.2.8 → 8.2.10
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/editor-commands/index.js +3 -4
- package/dist/cjs/nodeviews/mentionNodeSpec.js +1 -1
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/ProfileCardComponent.compiled.css +1 -1
- package/dist/cjs/ui/ProfileCardComponent.js +1 -1
- package/dist/es2019/editor-commands/index.js +3 -4
- package/dist/es2019/nodeviews/mentionNodeSpec.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/ProfileCardComponent.compiled.css +1 -1
- package/dist/es2019/ui/ProfileCardComponent.js +1 -1
- package/dist/esm/editor-commands/index.js +3 -4
- package/dist/esm/nodeviews/mentionNodeSpec.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/ProfileCardComponent.compiled.css +1 -1
- package/dist/esm/ui/ProfileCardComponent.js +1 -1
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 8.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4cab7924c4af0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cab7924c4af0) -
|
|
8
|
+
[ux] Clean up editor_inline_comments_paste_insert_nodes
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.2.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.2.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _uuid = _interopRequireDefault(require("uuid"));
|
|
|
9
9
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
10
10
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
11
11
|
var _resource = require("@atlaskit/mention/resource");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
14
13
|
|
|
15
14
|
var createSingleMentionFragment = exports.createSingleMentionFragment = function createSingleMentionFragment(_ref) {
|
|
@@ -38,7 +37,7 @@ var createSingleMentionFragment = exports.createSingleMentionFragment = function
|
|
|
38
37
|
// Cache (locally) for later rendering
|
|
39
38
|
mentionProvider.cacheMentionName(id, renderName);
|
|
40
39
|
}
|
|
41
|
-
var annotationMarksForPos = (0,
|
|
40
|
+
var annotationMarksForPos = (0, _utils.getAnnotationMarksForPos)(tr.selection.$head);
|
|
42
41
|
var mentionNode = schema.nodes.mention.createChecked({
|
|
43
42
|
text: text,
|
|
44
43
|
id: id,
|
|
@@ -46,8 +45,8 @@ var createSingleMentionFragment = exports.createSingleMentionFragment = function
|
|
|
46
45
|
userType: userType === 'DEFAULT' ? null : userType,
|
|
47
46
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
48
47
|
localId: localId !== null && localId !== void 0 ? localId : (0, _uuid.default)()
|
|
49
|
-
}, null,
|
|
50
|
-
var space = schema.text(' ',
|
|
48
|
+
}, null, annotationMarksForPos);
|
|
49
|
+
var space = schema.text(' ', annotationMarksForPos);
|
|
51
50
|
return _model.Fragment.from([mentionNode, space]);
|
|
52
51
|
};
|
|
53
52
|
};
|
|
@@ -38,7 +38,7 @@ var mentionNodeSpec = exports.mentionNodeSpec = function mentionNodeSpec() {
|
|
|
38
38
|
display: 'inline',
|
|
39
39
|
border: "1px solid transparent",
|
|
40
40
|
background: "var(--ds-background-neutral, ".concat(_colors.N30A, ")"),
|
|
41
|
-
color: "var(--ds-text-subtle, #
|
|
41
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
42
42
|
borderRadius: '20px',
|
|
43
43
|
cursor: 'pointer',
|
|
44
44
|
padding: '0 0.3em 2px 0.23em',
|
|
@@ -25,7 +25,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
25
25
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
26
26
|
};
|
|
27
27
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
28
|
-
var PACKAGE_VERSION = "
|
|
28
|
+
var PACKAGE_VERSION = "0.0.0-development";
|
|
29
29
|
var setProvider = function setProvider(provider) {
|
|
30
30
|
return function (state, dispatch) {
|
|
31
31
|
if (dispatch) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
._2rko12b0{border-radius:var(--ds-radius-small,4px)}.
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
@@ -20,7 +20,7 @@ var _user = require("@atlaskit/profilecard/user");
|
|
|
20
20
|
var _PopperWrapper = require("./PopperWrapper");
|
|
21
21
|
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); }
|
|
22
22
|
var styles = {
|
|
23
|
-
loadingStyles: "_2rko12b0
|
|
23
|
+
loadingStyles: "_2rko12b0 _16qs130s"
|
|
24
24
|
};
|
|
25
25
|
var LoadingWrapper = function LoadingWrapper(_ref) {
|
|
26
26
|
var children = _ref.children,
|
|
@@ -3,7 +3,6 @@ import uuid from 'uuid';
|
|
|
3
3
|
import { getAnnotationMarksForPos } from '@atlaskit/editor-common/utils';
|
|
4
4
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
export const createSingleMentionFragment = ({
|
|
8
7
|
mentionInsertDisplayName,
|
|
9
8
|
mentionProvider,
|
|
@@ -31,7 +30,7 @@ export const createSingleMentionFragment = ({
|
|
|
31
30
|
// Cache (locally) for later rendering
|
|
32
31
|
mentionProvider.cacheMentionName(id, renderName);
|
|
33
32
|
}
|
|
34
|
-
const annotationMarksForPos =
|
|
33
|
+
const annotationMarksForPos = getAnnotationMarksForPos(tr.selection.$head);
|
|
35
34
|
const mentionNode = schema.nodes.mention.createChecked({
|
|
36
35
|
text,
|
|
37
36
|
id,
|
|
@@ -39,8 +38,8 @@ export const createSingleMentionFragment = ({
|
|
|
39
38
|
userType: userType === 'DEFAULT' ? null : userType,
|
|
40
39
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
41
40
|
localId: localId !== null && localId !== void 0 ? localId : uuid()
|
|
42
|
-
}, null,
|
|
43
|
-
const space = schema.text(' ',
|
|
41
|
+
}, null, annotationMarksForPos);
|
|
42
|
+
const space = schema.text(' ', annotationMarksForPos);
|
|
44
43
|
return Fragment.from([mentionNode, space]);
|
|
45
44
|
};
|
|
46
45
|
export const insertMention = ({
|
|
@@ -29,7 +29,7 @@ export const mentionNodeSpec = () => {
|
|
|
29
29
|
display: 'inline',
|
|
30
30
|
border: `1px solid transparent`,
|
|
31
31
|
background: `var(--ds-background-neutral, ${N30A})`,
|
|
32
|
-
color: "var(--ds-text-subtle, #
|
|
32
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
33
33
|
borderRadius: '20px',
|
|
34
34
|
cursor: 'pointer',
|
|
35
35
|
padding: '0 0.3em 2px 0.23em',
|
|
@@ -14,7 +14,7 @@ export const ACTIONS = {
|
|
|
14
14
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
15
15
|
};
|
|
16
16
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
17
|
-
const PACKAGE_VERSION = "
|
|
17
|
+
const PACKAGE_VERSION = "0.0.0-development";
|
|
18
18
|
const setProvider = provider => (state, dispatch) => {
|
|
19
19
|
if (dispatch) {
|
|
20
20
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
._2rko12b0{border-radius:var(--ds-radius-small,4px)}.
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
@@ -7,7 +7,7 @@ import { bind } from 'bind-event-listener';
|
|
|
7
7
|
import { ProfileCardLazy } from '@atlaskit/profilecard/user';
|
|
8
8
|
import { Popup } from './PopperWrapper';
|
|
9
9
|
const styles = {
|
|
10
|
-
loadingStyles: "_2rko12b0
|
|
10
|
+
loadingStyles: "_2rko12b0 _16qs130s"
|
|
11
11
|
};
|
|
12
12
|
const LoadingWrapper = ({
|
|
13
13
|
children,
|
|
@@ -3,7 +3,6 @@ import uuid from 'uuid';
|
|
|
3
3
|
import { getAnnotationMarksForPos } from '@atlaskit/editor-common/utils';
|
|
4
4
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
export var createSingleMentionFragment = function createSingleMentionFragment(_ref) {
|
|
8
7
|
var mentionInsertDisplayName = _ref.mentionInsertDisplayName,
|
|
9
8
|
mentionProvider = _ref.mentionProvider,
|
|
@@ -30,7 +29,7 @@ export var createSingleMentionFragment = function createSingleMentionFragment(_r
|
|
|
30
29
|
// Cache (locally) for later rendering
|
|
31
30
|
mentionProvider.cacheMentionName(id, renderName);
|
|
32
31
|
}
|
|
33
|
-
var annotationMarksForPos =
|
|
32
|
+
var annotationMarksForPos = getAnnotationMarksForPos(tr.selection.$head);
|
|
34
33
|
var mentionNode = schema.nodes.mention.createChecked({
|
|
35
34
|
text: text,
|
|
36
35
|
id: id,
|
|
@@ -38,8 +37,8 @@ export var createSingleMentionFragment = function createSingleMentionFragment(_r
|
|
|
38
37
|
userType: userType === 'DEFAULT' ? null : userType,
|
|
39
38
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
40
39
|
localId: localId !== null && localId !== void 0 ? localId : uuid()
|
|
41
|
-
}, null,
|
|
42
|
-
var space = schema.text(' ',
|
|
40
|
+
}, null, annotationMarksForPos);
|
|
41
|
+
var space = schema.text(' ', annotationMarksForPos);
|
|
43
42
|
return Fragment.from([mentionNode, space]);
|
|
44
43
|
};
|
|
45
44
|
};
|
|
@@ -31,7 +31,7 @@ export var mentionNodeSpec = function mentionNodeSpec() {
|
|
|
31
31
|
display: 'inline',
|
|
32
32
|
border: "1px solid transparent",
|
|
33
33
|
background: "var(--ds-background-neutral, ".concat(N30A, ")"),
|
|
34
|
-
color: "var(--ds-text-subtle, #
|
|
34
|
+
color: "var(--ds-text-subtle, #505258)",
|
|
35
35
|
borderRadius: '20px',
|
|
36
36
|
cursor: 'pointer',
|
|
37
37
|
padding: '0 0.3em 2px 0.23em',
|
|
@@ -17,7 +17,7 @@ export var ACTIONS = {
|
|
|
17
17
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
18
18
|
};
|
|
19
19
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
20
|
-
var PACKAGE_VERSION = "
|
|
20
|
+
var PACKAGE_VERSION = "0.0.0-development";
|
|
21
21
|
var setProvider = function setProvider(provider) {
|
|
22
22
|
return function (state, dispatch) {
|
|
23
23
|
if (dispatch) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
._2rko12b0{border-radius:var(--ds-radius-small,4px)}.
|
|
2
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
@@ -10,7 +10,7 @@ import { bind } from 'bind-event-listener';
|
|
|
10
10
|
import { ProfileCardLazy } from '@atlaskit/profilecard/user';
|
|
11
11
|
import { Popup } from './PopperWrapper';
|
|
12
12
|
var styles = {
|
|
13
|
-
loadingStyles: "_2rko12b0
|
|
13
|
+
loadingStyles: "_2rko12b0 _16qs130s"
|
|
14
14
|
};
|
|
15
15
|
var LoadingWrapper = function LoadingWrapper(_ref) {
|
|
16
16
|
var children = _ref.children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.10",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-type-ahead": "^6.5.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
|
-
"@atlaskit/icon": "^
|
|
40
|
+
"@atlaskit/icon": "^29.0.0",
|
|
41
41
|
"@atlaskit/insm": "^0.2.0",
|
|
42
42
|
"@atlaskit/link": "^3.2.0",
|
|
43
43
|
"@atlaskit/mention": "^24.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/popper": "^7.1.0",
|
|
46
46
|
"@atlaskit/portal": "^5.1.0",
|
|
47
|
-
"@atlaskit/profilecard": "^24.
|
|
47
|
+
"@atlaskit/profilecard": "^24.21.0",
|
|
48
48
|
"@atlaskit/theme": "^21.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^13.38.0",
|
|
50
50
|
"@atlaskit/tokens": "^8.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@compiled/react": "^0.18.6",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"uuid": "^3.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^110.
|
|
58
|
+
"@atlaskit/editor-common": "^110.29.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-dom": "^18.2.0",
|
|
61
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -104,9 +104,6 @@
|
|
|
104
104
|
]
|
|
105
105
|
},
|
|
106
106
|
"platform-feature-flags": {
|
|
107
|
-
"editor_inline_comments_paste_insert_nodes": {
|
|
108
|
-
"type": "boolean"
|
|
109
|
-
},
|
|
110
107
|
"team-mention-inline-smartlink": {
|
|
111
108
|
"type": "boolean"
|
|
112
109
|
},
|