@atlaskit/editor-plugin-mentions 19.1.6 → 20.0.0
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 +22 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/type-ahead/index.js +9 -14
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/type-ahead/index.js +9 -14
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/type-ahead/index.js +9 -14
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 20.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.1.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 19.1.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`962e8dc0188bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/962e8dc0188bf) -
|
|
20
|
+
Clean up `platform_editor_offline_editing_web` with `isEnabled: true` for Confluence, keeping
|
|
21
|
+
offline editing and recovery behavior enabled. Remove the retired experiment from the editor
|
|
22
|
+
Statsig configuration; consumers must stop querying or overriding this experiment.
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 19.1.6
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -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.8";
|
|
47
47
|
var setProvider = function setProvider(provider) {
|
|
48
48
|
return function (state, dispatch) {
|
|
49
49
|
if (dispatch) {
|
|
@@ -21,7 +21,6 @@ var _item = require("@atlaskit/mention/item");
|
|
|
21
21
|
var _resource = require("@atlaskit/mention/resource");
|
|
22
22
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
23
23
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
24
|
-
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
25
24
|
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
26
25
|
var _editorCommands = require("../../editor-commands");
|
|
27
26
|
var _key = require("../../pm-plugins/key");
|
|
@@ -480,11 +479,9 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
|
|
|
480
479
|
};
|
|
481
480
|
subscriptionKeys.add(key);
|
|
482
481
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
reject('FETCH_ERROR');
|
|
487
|
-
}
|
|
482
|
+
mentionProvider.unsubscribe(key);
|
|
483
|
+
subscriptionKeys.delete(key);
|
|
484
|
+
reject('FETCH_ERROR');
|
|
488
485
|
});
|
|
489
486
|
mentionProvider.filter(query || '', _objectSpread(_objectSpread({}, contextIdentifierProvider), {}, {
|
|
490
487
|
sessionId: sessionId
|
|
@@ -803,14 +800,12 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
|
|
|
803
800
|
};
|
|
804
801
|
subscriptionKeys.add(key);
|
|
805
802
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
(_initialReject = initialReject) === null || _initialReject === void 0 || _initialReject('FETCH_ERROR');
|
|
813
|
-
}
|
|
803
|
+
mentionProvider.unsubscribe(key);
|
|
804
|
+
subscriptionKeys.delete(key);
|
|
805
|
+
if (!initialResolved) {
|
|
806
|
+
var _initialReject;
|
|
807
|
+
initialResolved = true;
|
|
808
|
+
(_initialReject = initialReject) === null || _initialReject === void 0 || _initialReject('FETCH_ERROR');
|
|
814
809
|
}
|
|
815
810
|
});
|
|
816
811
|
mentionProvider.filter(query || '', _objectSpread(_objectSpread({}, contextIdentifierProvider), {}, {
|
|
@@ -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.8";
|
|
36
36
|
const setProvider = provider => (state, dispatch) => {
|
|
37
37
|
if (dispatch) {
|
|
38
38
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -11,7 +11,6 @@ import { MENTION_ITEM_HEIGHT, MENTION_ITEM_HEIGHT_REFRESHED, MentionItem } from
|
|
|
11
11
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
14
|
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
16
15
|
import { createSingleMentionFragment } from '../../editor-commands';
|
|
17
16
|
import { mentionPluginKey } from '../../pm-plugins/key';
|
|
@@ -435,11 +434,9 @@ export const createTypeAheadConfig = ({
|
|
|
435
434
|
};
|
|
436
435
|
subscriptionKeys.add(key);
|
|
437
436
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, () => {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
reject('FETCH_ERROR');
|
|
442
|
-
}
|
|
437
|
+
mentionProvider.unsubscribe(key);
|
|
438
|
+
subscriptionKeys.delete(key);
|
|
439
|
+
reject('FETCH_ERROR');
|
|
443
440
|
});
|
|
444
441
|
mentionProvider.filter(query || '', {
|
|
445
442
|
...contextIdentifierProvider,
|
|
@@ -760,14 +757,12 @@ export const createTypeAheadConfig = ({
|
|
|
760
757
|
};
|
|
761
758
|
subscriptionKeys.add(key);
|
|
762
759
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, () => {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
(_initialReject = initialReject) === null || _initialReject === void 0 ? void 0 : _initialReject('FETCH_ERROR');
|
|
770
|
-
}
|
|
760
|
+
mentionProvider.unsubscribe(key);
|
|
761
|
+
subscriptionKeys.delete(key);
|
|
762
|
+
if (!initialResolved) {
|
|
763
|
+
var _initialReject;
|
|
764
|
+
initialResolved = true;
|
|
765
|
+
(_initialReject = initialReject) === null || _initialReject === void 0 ? void 0 : _initialReject('FETCH_ERROR');
|
|
771
766
|
}
|
|
772
767
|
});
|
|
773
768
|
mentionProvider.filter(query || '', {
|
|
@@ -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.8";
|
|
39
39
|
var setProvider = function setProvider(provider) {
|
|
40
40
|
return function (state, dispatch) {
|
|
41
41
|
if (dispatch) {
|
|
@@ -18,7 +18,6 @@ import { MENTION_ITEM_HEIGHT, MENTION_ITEM_HEIGHT_REFRESHED, MentionItem } from
|
|
|
18
18
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
19
19
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
22
21
|
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
23
22
|
import { createSingleMentionFragment } from '../../editor-commands';
|
|
24
23
|
import { mentionPluginKey } from '../../pm-plugins/key';
|
|
@@ -471,11 +470,9 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref1) {
|
|
|
471
470
|
};
|
|
472
471
|
subscriptionKeys.add(key);
|
|
473
472
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
reject('FETCH_ERROR');
|
|
478
|
-
}
|
|
473
|
+
mentionProvider.unsubscribe(key);
|
|
474
|
+
subscriptionKeys.delete(key);
|
|
475
|
+
reject('FETCH_ERROR');
|
|
479
476
|
});
|
|
480
477
|
mentionProvider.filter(query || '', _objectSpread(_objectSpread({}, contextIdentifierProvider), {}, {
|
|
481
478
|
sessionId: sessionId
|
|
@@ -794,14 +791,12 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref1) {
|
|
|
794
791
|
};
|
|
795
792
|
subscriptionKeys.add(key);
|
|
796
793
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
(_initialReject = initialReject) === null || _initialReject === void 0 || _initialReject('FETCH_ERROR');
|
|
804
|
-
}
|
|
794
|
+
mentionProvider.unsubscribe(key);
|
|
795
|
+
subscriptionKeys.delete(key);
|
|
796
|
+
if (!initialResolved) {
|
|
797
|
+
var _initialReject;
|
|
798
|
+
initialResolved = true;
|
|
799
|
+
(_initialReject = initialReject) === null || _initialReject === void 0 || _initialReject('FETCH_ERROR');
|
|
805
800
|
}
|
|
806
801
|
});
|
|
807
802
|
mentionProvider.filter(query || '', _objectSpread(_objectSpread({}, contextIdentifierProvider), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,30 +24,30 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.4.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
26
|
"@atlaskit/editor-json-transformer": "^9.8.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": "^18.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-base": "^19.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-context-identifier": "^18.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-selection": "^18.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-type-ahead": "^19.0.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
33
33
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
34
34
|
"@atlaskit/icon": "^37.6.0",
|
|
35
35
|
"@atlaskit/insm": "^3.0.0",
|
|
36
36
|
"@atlaskit/link": "^5.1.0",
|
|
37
37
|
"@atlaskit/lozenge": "^15.4.0",
|
|
38
|
-
"@atlaskit/mention": "^
|
|
39
|
-
"@atlaskit/node-data-provider": "^
|
|
38
|
+
"@atlaskit/mention": "^29.0.0",
|
|
39
|
+
"@atlaskit/node-data-provider": "^19.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
43
|
"@atlaskit/popup": "^6.3.0",
|
|
44
44
|
"@atlaskit/portal": "^6.4.0",
|
|
45
45
|
"@atlaskit/primitives": "^22.5.0",
|
|
46
|
-
"@atlaskit/profilecard": "^26.
|
|
46
|
+
"@atlaskit/profilecard": "^26.23.0",
|
|
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": "^188.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^16.12.0",
|
|
52
52
|
"@atlaskit/tooltip": "^24.3.0",
|
|
53
53
|
"@atlaskit/user-picker": "^13.12.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"uuid": "^11.1.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@atlaskit/editor-common": "^
|
|
62
|
+
"@atlaskit/editor-common": "^122.0.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"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@atlaskit/button": "^25.3.0",
|
|
69
|
-
"@atlaskit/editor-core": "^
|
|
69
|
+
"@atlaskit/editor-core": "^228.0.0",
|
|
70
70
|
"@atlassian/workbench": "workspace:*",
|
|
71
71
|
"@testing-library/react": "^16.3.0",
|
|
72
72
|
"react": "^19.2.0",
|