@atlaskit/editor-plugin-mentions 19.1.6 → 19.1.8

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 19.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 19.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`962e8dc0188bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/962e8dc0188bf) -
14
+ Clean up `platform_editor_offline_editing_web` with `isEnabled: true` for Confluence, keeping
15
+ offline editing and recovery behavior enabled. Remove the retired experiment from the editor
16
+ Statsig configuration; consumers must stop querying or overriding this experiment.
17
+ - Updated dependencies
18
+
3
19
  ## 19.1.6
4
20
 
5
21
  ### 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.6";
46
+ var PACKAGE_VERSION = "19.1.7";
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
- if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
484
- mentionProvider.unsubscribe(key);
485
- subscriptionKeys.delete(key);
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
- if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
807
- mentionProvider.unsubscribe(key);
808
- subscriptionKeys.delete(key);
809
- if (!initialResolved) {
810
- var _initialReject;
811
- initialResolved = true;
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.6";
35
+ const PACKAGE_VERSION = "19.1.7";
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
- if (editorExperiment('platform_editor_offline_editing_web', true)) {
439
- mentionProvider.unsubscribe(key);
440
- subscriptionKeys.delete(key);
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
- if (editorExperiment('platform_editor_offline_editing_web', true)) {
764
- mentionProvider.unsubscribe(key);
765
- subscriptionKeys.delete(key);
766
- if (!initialResolved) {
767
- var _initialReject;
768
- initialResolved = true;
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.6";
38
+ var PACKAGE_VERSION = "19.1.7";
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
- if (editorExperiment('platform_editor_offline_editing_web', true)) {
475
- mentionProvider.unsubscribe(key);
476
- subscriptionKeys.delete(key);
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
- if (editorExperiment('platform_editor_offline_editing_web', true)) {
798
- mentionProvider.unsubscribe(key);
799
- subscriptionKeys.delete(key);
800
- if (!initialResolved) {
801
- var _initialReject;
802
- initialResolved = true;
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": "19.1.6",
3
+ "version": "19.1.8",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/insm": "^3.0.0",
36
36
  "@atlaskit/link": "^5.1.0",
37
37
  "@atlaskit/lozenge": "^15.4.0",
38
- "@atlaskit/mention": "^28.0.0",
38
+ "@atlaskit/mention": "^29.0.0",
39
39
  "@atlaskit/node-data-provider": "^18.0.0",
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.2.0",
@@ -43,11 +43,11 @@
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.22.0",
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": "^187.0.0",
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,7 +59,7 @@
59
59
  "uuid": "^11.1.1"
60
60
  },
61
61
  "peerDependencies": {
62
- "@atlaskit/editor-common": "^121.4.0",
62
+ "@atlaskit/editor-common": "^121.5.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"