@atlaskit/editor-plugin-mentions 4.4.0 → 4.4.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 +9 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/ui/type-ahead/index.js +2 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/ui/type-ahead/index.js +2 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/ui/type-ahead/index.js +2 -1
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 4.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#140813](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140813)
|
|
8
|
+
[`c4756a5c1a4ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4756a5c1a4ae) -
|
|
9
|
+
Migrating offline editing feature gates to a new experiment "platform_editor_offline_editing_web"
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 4.4.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -26,7 +26,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
26
26
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
27
27
|
};
|
|
28
28
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
29
|
-
var PACKAGE_VERSION = "4.4.
|
|
29
|
+
var PACKAGE_VERSION = "4.4.1";
|
|
30
30
|
var setProvider = function setProvider(provider) {
|
|
31
31
|
return function (state, dispatch) {
|
|
32
32
|
if (dispatch) {
|
|
@@ -19,6 +19,7 @@ var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
|
19
19
|
var _item = require("@atlaskit/mention/item");
|
|
20
20
|
var _resource = require("@atlaskit/mention/resource");
|
|
21
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
23
|
var _utils3 = require("../../pm-plugins/utils");
|
|
23
24
|
var _InviteItem = _interopRequireWildcard(require("../InviteItem"));
|
|
24
25
|
var _analytics = require("./analytics");
|
|
@@ -277,7 +278,7 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
|
|
|
277
278
|
};
|
|
278
279
|
subscriptionKeys.add(key);
|
|
279
280
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
|
|
280
|
-
if ((0,
|
|
281
|
+
if ((0, _experiments.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
281
282
|
mentionProvider.unsubscribe(key);
|
|
282
283
|
subscriptionKeys.delete(key);
|
|
283
284
|
reject('FETCH_ERROR');
|
|
@@ -15,7 +15,7 @@ export const ACTIONS = {
|
|
|
15
15
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
16
16
|
};
|
|
17
17
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
18
|
-
const PACKAGE_VERSION = "4.4.
|
|
18
|
+
const PACKAGE_VERSION = "4.4.1";
|
|
19
19
|
const setProvider = provider => (state, dispatch) => {
|
|
20
20
|
if (dispatch) {
|
|
21
21
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -7,6 +7,7 @@ import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
|
7
7
|
import { MENTION_ITEM_HEIGHT, MentionItem } from '@atlaskit/mention/item';
|
|
8
8
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
11
|
import { getMentionPluginState } from '../../pm-plugins/utils';
|
|
11
12
|
import InviteItem, { INVITE_ITEM_DESCRIPTION } from '../InviteItem';
|
|
12
13
|
import { buildTypeAheadCancelPayload, buildTypeAheadInsertedPayload, buildTypeAheadInviteItemClickedPayload, buildTypeAheadInviteItemViewedPayload, buildTypeAheadRenderedPayload } from './analytics';
|
|
@@ -252,7 +253,7 @@ export const createTypeAheadConfig = ({
|
|
|
252
253
|
};
|
|
253
254
|
subscriptionKeys.add(key);
|
|
254
255
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, () => {
|
|
255
|
-
if (
|
|
256
|
+
if (editorExperiment('platform_editor_offline_editing_web', true)) {
|
|
256
257
|
mentionProvider.unsubscribe(key);
|
|
257
258
|
subscriptionKeys.delete(key);
|
|
258
259
|
reject('FETCH_ERROR');
|
|
@@ -18,7 +18,7 @@ export var ACTIONS = {
|
|
|
18
18
|
SET_PROVIDER: 'SET_PROVIDER'
|
|
19
19
|
};
|
|
20
20
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
21
|
-
var PACKAGE_VERSION = "4.4.
|
|
21
|
+
var PACKAGE_VERSION = "4.4.1";
|
|
22
22
|
var setProvider = function setProvider(provider) {
|
|
23
23
|
return function (state, dispatch) {
|
|
24
24
|
if (dispatch) {
|
|
@@ -14,6 +14,7 @@ import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
|
14
14
|
import { MENTION_ITEM_HEIGHT, MentionItem } from '@atlaskit/mention/item';
|
|
15
15
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import { getMentionPluginState } from '../../pm-plugins/utils';
|
|
18
19
|
import InviteItem, { INVITE_ITEM_DESCRIPTION } from '../InviteItem';
|
|
19
20
|
import { buildTypeAheadCancelPayload, buildTypeAheadInsertedPayload, buildTypeAheadInviteItemClickedPayload, buildTypeAheadInviteItemViewedPayload, buildTypeAheadRenderedPayload } from './analytics';
|
|
@@ -265,7 +266,7 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref6) {
|
|
|
265
266
|
};
|
|
266
267
|
subscriptionKeys.add(key);
|
|
267
268
|
mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
|
|
268
|
-
if (
|
|
269
|
+
if (editorExperiment('platform_editor_offline_editing_web', true)) {
|
|
269
270
|
mentionProvider.unsubscribe(key);
|
|
270
271
|
subscriptionKeys.delete(key);
|
|
271
272
|
reject('FETCH_ERROR');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/css": "^0.10.0",
|
|
38
|
-
"@atlaskit/editor-common": "^103.
|
|
38
|
+
"@atlaskit/editor-common": "^103.6.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-base": "^2.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-context-identifier": "^2.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-selection": "^2.1.0",
|
|
43
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
|
43
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.4.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
|
-
"@atlaskit/icon": "^25.
|
|
45
|
+
"@atlaskit/icon": "^25.6.0",
|
|
46
46
|
"@atlaskit/mention": "^24.1.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/popper": "^7.0.0",
|
|
49
49
|
"@atlaskit/portal": "^5.1.0",
|
|
50
50
|
"@atlaskit/profilecard": "^23.7.0",
|
|
51
51
|
"@atlaskit/theme": "^18.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^4.8.0",
|
|
53
53
|
"@atlaskit/tokens": "^4.7.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.18.3",
|
|
@@ -116,9 +116,6 @@
|
|
|
116
116
|
},
|
|
117
117
|
"platform_editor_mention_provider_via_plugin_config": {
|
|
118
118
|
"type": "boolean"
|
|
119
|
-
},
|
|
120
|
-
"platform_editor_offline_editing_ga": {
|
|
121
|
-
"type": "boolean"
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
121
|
}
|