@atlaskit/editor-plugin-mentions 18.1.4 → 18.1.5

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,11 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 18.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 18.1.4
4
10
 
5
11
  ### Patch Changes
@@ -21,7 +21,7 @@ var _resource = require("@atlaskit/mention/resource");
21
21
  var _types = require("@atlaskit/mention/types");
22
22
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
23
23
  var _fg = require("@atlaskit/platform-feature-flags/fg");
24
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
24
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
25
25
  var _editorCommands = require("./editor-commands");
26
26
  var _mentionNodeSpec = require("./nodeviews/mentionNodeSpec");
27
27
  var _agent = require("./pm-plugins/agent");
@@ -143,7 +143,7 @@ var mentionsPlugin = exports.mentionsPlugin = function mentionsPlugin(_ref3) {
143
143
  });
144
144
  }
145
145
  }];
146
- if ((0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin')) {
146
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin')) {
147
147
  plugins.push({
148
148
  name: 'agentMention',
149
149
  plugin: function plugin(pmPluginFactoryParams) {
@@ -217,7 +217,7 @@ var mentionsPlugin = exports.mentionsPlugin = function mentionsPlugin(_ref3) {
217
217
  },
218
218
  setAgentMentionRunStates: function setAgentMentionRunStates(runStateByLocalId) {
219
219
  var _api$core$actions$exe;
220
- if (!((0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mention_state_anim'))) {
220
+ if (!((0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mention_state_anim'))) {
221
221
  return false;
222
222
  }
223
223
  return (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref7) {
@@ -13,7 +13,7 @@ var _view = require("@atlaskit/editor-prosemirror/view");
13
13
  var _resource = require("@atlaskit/mention/resource");
14
14
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
15
15
  var _fg = require("@atlaskit/platform-feature-flags/fg");
16
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
16
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
17
17
  var _agentMentionContext = require("./agent-mention-context");
18
18
  var _agentRunState = require("./agent-run-state");
19
19
  var _key = require("./key");
@@ -312,7 +312,7 @@ var applyAgentMentionState = exports.applyAgentMentionState = function applyAgen
312
312
  params = _ref3.params;
313
313
  var hasPublicPluginStateChanged = false;
314
314
  var newPluginState = pluginState;
315
- var isAgentMentionsExperimentEnabled = (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true);
315
+ var isAgentMentionsExperimentEnabled = (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true);
316
316
  var hasPositionChanged = oldState.selection.from !== newState.selection.from || oldState.selection.to !== newState.selection.to;
317
317
  switch (action) {
318
318
  case _main.ACTIONS.COMMIT_PENDING_TYPED_AGENT_MENTION:
@@ -635,7 +635,7 @@ var createAgentMentionPluginView = exports.createAgentMentionPluginView = functi
635
635
  var editorView = _ref4.editorView,
636
636
  getIsRovoPanelOpen = _ref4.getIsRovoPanelOpen,
637
637
  stateKey = _ref4.stateKey;
638
- var isAgentMentionsEnabled = (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true);
638
+ var isAgentMentionsEnabled = (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true);
639
639
  var pendingTypedAgentMentionTimer;
640
640
  var pendingTypedAgentMentionTimerKey = null;
641
641
  var pendingTypedAgentMentionFocusDeferCount = 0;
@@ -721,7 +721,7 @@ var createAgentMentionPluginView = exports.createAgentMentionPluginView = functi
721
721
  return;
722
722
  }
723
723
  _schedulePendingTypedAgentMentionTimer(mentionPluginState);
724
- if ((0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) && (mentionPluginState === null || mentionPluginState === void 0 || (_mentionPluginState$p = mentionPluginState.pendingPastedAgentMention) === null || _mentionPluginState$p === void 0 ? void 0 : _mentionPluginState$p.id) != null && mentionPluginState !== null && mentionPluginState !== void 0 && mentionPluginState.mentionProvider && (0, _resource.isResolvingMentionProvider)(mentionPluginState.mentionProvider) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes')) {
724
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) && (mentionPluginState === null || mentionPluginState === void 0 || (_mentionPluginState$p = mentionPluginState.pendingPastedAgentMention) === null || _mentionPluginState$p === void 0 ? void 0 : _mentionPluginState$p.id) != null && mentionPluginState !== null && mentionPluginState !== void 0 && mentionPluginState.mentionProvider && (0, _resource.isResolvingMentionProvider)(mentionPluginState.mentionProvider) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes')) {
725
725
  resolveAndDispatchPastedAgentMentionName(mentionPluginState.pendingPastedAgentMention.id, mentionPluginState.mentionProvider, pendingResolveMentionIds, view);
726
726
  }
727
727
  },
@@ -17,7 +17,7 @@ var _resource = require("@atlaskit/mention/resource");
17
17
  var _types = require("@atlaskit/mention/types");
18
18
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
19
19
  var _fg = require("@atlaskit/platform-feature-flags/fg");
20
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
20
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
21
21
  var _mentionNodeView = require("../nodeviews/mentionNodeView");
22
22
  var _types2 = require("../types");
23
23
  var _agentMentionContext = require("./agent-mention-context");
@@ -74,7 +74,7 @@ var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
74
74
  var AGENT_MENTION_INACTIVITY_MS = 3000;
75
75
  var MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
76
76
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
77
- var PACKAGE_VERSION = "18.1.3";
77
+ var PACKAGE_VERSION = "18.1.4";
78
78
  var setProvider = function setProvider(provider) {
79
79
  return function (state, dispatch) {
80
80
  if (dispatch) {
@@ -414,7 +414,7 @@ function createMentionPlugin(_ref2) {
414
414
  runStateDecorations: nextDecorations
415
415
  });
416
416
  }
417
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true)) {
417
+ if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true)) {
418
418
  switch (action) {
419
419
  case ACTIONS.COMMIT_PENDING_TYPED_AGENT_MENTION:
420
420
  {
@@ -479,7 +479,7 @@ function createMentionPlugin(_ref2) {
479
479
  // When the agent mentions experiment is off, dispatch immediately (original behaviour).
480
480
  // When it's on, defer dispatch to after the agent tracking block below so that
481
481
  // agent-mention state changes are included in the notification.
482
- if (hasPublicPluginStateChanged && ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') || !(0, _experiments.editorExperiment)('platform_editor_agent_mentions', true))) {
482
+ if (hasPublicPluginStateChanged && ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') || !(0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true))) {
483
483
  pmPluginFactoryParams.dispatch(_key.mentionPluginKey, newPluginState);
484
484
  }
485
485
  if (options !== null && options !== void 0 && options.handleMentionsChanged && tr.docChanged) {
@@ -541,7 +541,7 @@ function createMentionPlugin(_ref2) {
541
541
  }
542
542
  (_insm$session2 = _insm.insm.session) === null || _insm$session2 === void 0 || _insm$session2.endFeature('mentionDeletionDetection');
543
543
  }
544
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) && isQualifyingLocalUserDocChange(tr)) {
544
+ if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) && isQualifyingLocalUserDocChange(tr)) {
545
545
  var _mentionSchema = newState.schema.nodes.mention;
546
546
  var newDocRanges = [];
547
547
  var oldDocRanges = [];
@@ -776,18 +776,18 @@ function createMentionPlugin(_ref2) {
776
776
  }
777
777
  }
778
778
  }
779
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) && tr.docChanged && tr.getMeta('replaceDocument') && hasTrackedAgentMentionState(newPluginState)) {
779
+ if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) && tr.docChanged && tr.getMeta('replaceDocument') && hasTrackedAgentMentionState(newPluginState)) {
780
780
  newPluginState = clearTrackedAgentMentionState(newPluginState);
781
781
  hasPublicPluginStateChanged = true;
782
782
  }
783
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) && newPluginState.pendingTypedAgentMention && action !== ACTIONS.SET_PENDING_TYPED_AGENT_MENTION && action !== ACTIONS.COMMIT_PENDING_TYPED_AGENT_MENTION && tr.docChanged) {
783
+ if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) && newPluginState.pendingTypedAgentMention && action !== ACTIONS.SET_PENDING_TYPED_AGENT_MENTION && action !== ACTIONS.COMMIT_PENDING_TYPED_AGENT_MENTION && tr.docChanged) {
784
784
  newPluginState = _objectSpread(_objectSpread({}, newPluginState), {}, {
785
785
  pendingTypedAgentMention: getPendingTypedAgentMentionAfterDocChange(newState, tr, newPluginState.pendingTypedAgentMention, {
786
786
  resetTimer: isQualifyingLocalUserDocChange(tr)
787
787
  })
788
788
  });
789
789
  }
790
- if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true)) {
790
+ if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true)) {
791
791
  // Typed agent mentions stay pending while the user is still editing around them,
792
792
  // but leaving the mention's direct parent means they have moved on from that
793
793
  // paragraph/block. Publish immediately in that case instead of waiting for the
@@ -825,7 +825,7 @@ function createMentionPlugin(_ref2) {
825
825
  }
826
826
  }
827
827
  }
828
- if (hasPublicPluginStateChanged && !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _experiments.editorExperiment)('platform_editor_agent_mentions', true)) {
828
+ if (hasPublicPluginStateChanged && !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') && (0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true)) {
829
829
  pmPluginFactoryParams.dispatch(_key.mentionPluginKey, newPluginState);
830
830
  }
831
831
  return newPluginState;
@@ -850,7 +850,7 @@ function createMentionPlugin(_ref2) {
850
850
  if (!runStateDecorations || runStateDecorations === _view.DecorationSet.empty) {
851
851
  return undefined;
852
852
  }
853
- if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') || !(0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) || !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mention_state_anim')) {
853
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') || !(0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) || !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mention_state_anim')) {
854
854
  return undefined;
855
855
  }
856
856
  return runStateDecorations;
@@ -903,7 +903,7 @@ function createMentionPlugin(_ref2) {
903
903
  var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
904
904
  _ref5$preserveFocusDe = _ref5.preserveFocusDeferCount,
905
905
  preserveFocusDeferCount = _ref5$preserveFocusDe === void 0 ? false : _ref5$preserveFocusDe;
906
- if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') || !(0, _experiments.editorExperiment)('platform_editor_agent_mentions', true)) {
906
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_agent_mentions_separate_pm_plugin') || !(0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true)) {
907
907
  clearPendingTypedAgentMentionTimer();
908
908
  return;
909
909
  }
@@ -1021,7 +1021,7 @@ function createMentionPlugin(_ref2) {
1021
1021
  // If a pasted agent mention has no name (cache miss), resolve it async
1022
1022
  // via the mention provider and dispatch RESOLVE_PASTED_AGENT_MENTION_NAME
1023
1023
  // so the nudge displays the correct name.
1024
- if ((0, _experiments.editorExperiment)('platform_editor_agent_mentions', true) && (mentionPluginState === null || mentionPluginState === void 0 || (_mentionPluginState$p = mentionPluginState.pendingPastedAgentMention) === null || _mentionPluginState$p === void 0 ? void 0 : _mentionPluginState$p.id) != null && mentionPluginState !== null && mentionPluginState !== void 0 && mentionPluginState.mentionProvider && (0, _resource.isResolvingMentionProvider)(mentionPluginState.mentionProvider) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes')) {
1024
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_agent_mentions', true) && (mentionPluginState === null || mentionPluginState === void 0 || (_mentionPluginState$p = mentionPluginState.pendingPastedAgentMention) === null || _mentionPluginState$p === void 0 ? void 0 : _mentionPluginState$p.id) != null && mentionPluginState !== null && mentionPluginState !== void 0 && mentionPluginState.mentionProvider && (0, _resource.isResolvingMentionProvider)(mentionPluginState.mentionProvider) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes')) {
1025
1025
  resolveAndDispatchPastedAgentMentionName(mentionPluginState.pendingPastedAgentMention.id, mentionPluginState.mentionProvider, pendingResolveMentionIds, view);
1026
1026
  }
1027
1027
  }
@@ -251,6 +251,6 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref2) {
251
251
  }, getByline()))));
252
252
  };
253
253
 
254
- // eslint-disable-next-line @typescript-eslint/ban-types
254
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
255
255
  var _default_1 = (0, _reactIntl.injectIntl)(InviteItemWithEmailDomain);
256
256
  var _default = exports.default = _default_1;
@@ -113,6 +113,6 @@ var InviteItem = function InviteItem(_ref) {
113
113
  })))));
114
114
  };
115
115
 
116
- // eslint-disable-next-line @typescript-eslint/ban-types
116
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
117
117
  var _default_1 = (0, _reactIntl.injectIntl)(InviteItem);
118
118
  var _default = exports.default = _default_1;
@@ -57,6 +57,6 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
57
57
  });
58
58
  }
59
59
  }]);
60
- }(_react.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
60
+ }(_react.PureComponent); // eslint-disable-next-line @typescript-eslint/no-restricted-types
61
61
  var _default_1 = (0, _reactIntl.injectIntl)(ToolbarMention);
62
62
  var _default = exports.default = _default_1;
@@ -21,7 +21,7 @@ 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 _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
24
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
25
25
  var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
26
26
  var _editorCommands = require("../../editor-commands");
27
27
  var _key = require("../../pm-plugins/key");
@@ -423,7 +423,7 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
423
423
  };
424
424
  subscriptionKeys.add(key);
425
425
  mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
426
- if ((0, _experiments.editorExperiment)('platform_editor_offline_editing_web', true)) {
426
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
427
427
  mentionProvider.unsubscribe(key);
428
428
  subscriptionKeys.delete(key);
429
429
  reject('FETCH_ERROR');
@@ -736,7 +736,7 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
736
736
  };
737
737
  subscriptionKeys.add(key);
738
738
  mentionProvider.subscribe(key, mentionsSubscribeCallback, function () {
739
- if ((0, _experiments.editorExperiment)('platform_editor_offline_editing_web', true)) {
739
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
740
740
  mentionProvider.unsubscribe(key);
741
741
  subscriptionKeys.delete(key);
742
742
  if (!initialResolved) {
@@ -10,7 +10,7 @@ import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
10
10
  import { MentionNameStatus, isPromise } from '@atlaskit/mention/types';
11
11
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
12
12
  import { fg } from '@atlaskit/platform-feature-flags/fg';
13
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
13
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
14
14
  import { insertMention } from './editor-commands';
15
15
  import { mentionNodeSpec } from './nodeviews/mentionNodeSpec';
16
16
  import { agentMentionPluginKey, createAgentMentionPlugin } from './pm-plugins/agent';
@@ -4,7 +4,7 @@ import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
4
  import { isResolvingMentionProvider, MentionNameStatus } from '@atlaskit/mention/resource';
5
5
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
6
  import { fg } from '@atlaskit/platform-feature-flags/fg';
7
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
8
8
  import { getAgentMentionParentContext } from './agent-mention-context';
9
9
  import { nextRunStateDecorations } from './agent-run-state';
10
10
  import { mentionPluginKey } from './key';
@@ -6,7 +6,7 @@ import { isResolvingMentionProvider, MentionNameStatus, SLI_EVENT_TYPE, SMART_EV
6
6
  import { ComponentNames } from '@atlaskit/mention/types';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { fg } from '@atlaskit/platform-feature-flags/fg';
9
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
10
10
  import { MentionNodeView } from '../nodeviews/mentionNodeView';
11
11
  import { MENTION_PROVIDER_REJECTED, MENTION_PROVIDER_UNDEFINED } from '../types';
12
12
  import { getAgentMentionParentContext } from './agent-mention-context';
@@ -58,7 +58,7 @@ const AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
58
58
  const AGENT_MENTION_INACTIVITY_MS = 3000;
59
59
  const MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
60
60
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
61
- const PACKAGE_VERSION = "18.1.3";
61
+ const PACKAGE_VERSION = "18.1.4";
62
62
  const setProvider = provider => (state, dispatch) => {
63
63
  if (dispatch) {
64
64
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -238,6 +238,6 @@ const InviteItemWithEmailDomain = ({
238
238
  }, getByline()))));
239
239
  };
240
240
 
241
- // eslint-disable-next-line @typescript-eslint/ban-types
241
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
242
242
  const _default_1 = injectIntl(InviteItemWithEmailDomain);
243
243
  export default _default_1;
@@ -105,6 +105,6 @@ const InviteItem = ({
105
105
  })))));
106
106
  };
107
107
 
108
- // eslint-disable-next-line @typescript-eslint/ban-types
108
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
109
109
  const _default_1 = injectIntl(InviteItem);
110
110
  export default _default_1;
@@ -33,6 +33,6 @@ class ToolbarMention extends PureComponent {
33
33
  }
34
34
  }
35
35
 
36
- // eslint-disable-next-line @typescript-eslint/ban-types
36
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
37
37
  const _default_1 = injectIntl(ToolbarMention);
38
38
  export default _default_1;
@@ -11,7 +11,7 @@ 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/experiments';
14
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
15
  import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
16
16
  import { createSingleMentionFragment } from '../../editor-commands';
17
17
  import { mentionPluginKey } from '../../pm-plugins/key';
@@ -17,7 +17,7 @@ import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
17
17
  import { MentionNameStatus, isPromise } from '@atlaskit/mention/types';
18
18
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
19
19
  import { fg } from '@atlaskit/platform-feature-flags/fg';
20
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
20
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
21
21
  import { insertMention } from './editor-commands';
22
22
  import { mentionNodeSpec } from './nodeviews/mentionNodeSpec';
23
23
  import { agentMentionPluginKey, createAgentMentionPlugin } from './pm-plugins/agent';
@@ -11,7 +11,7 @@ import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
11
11
  import { isResolvingMentionProvider, MentionNameStatus } 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/experiments';
14
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
15
  import { getAgentMentionParentContext } from './agent-mention-context';
16
16
  import { nextRunStateDecorations } from './agent-run-state';
17
17
  import { mentionPluginKey } from './key';
@@ -13,7 +13,7 @@ import { isResolvingMentionProvider, MentionNameStatus, SLI_EVENT_TYPE, SMART_EV
13
13
  import { ComponentNames } from '@atlaskit/mention/types';
14
14
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
15
15
  import { fg } from '@atlaskit/platform-feature-flags/fg';
16
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
17
17
  import { MentionNodeView } from '../nodeviews/mentionNodeView';
18
18
  import { MENTION_PROVIDER_REJECTED, MENTION_PROVIDER_UNDEFINED } from '../types';
19
19
  import { getAgentMentionParentContext } from './agent-mention-context';
@@ -65,7 +65,7 @@ var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
65
65
  var AGENT_MENTION_INACTIVITY_MS = 3000;
66
66
  var MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
67
67
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
68
- var PACKAGE_VERSION = "18.1.3";
68
+ var PACKAGE_VERSION = "18.1.4";
69
69
  var setProvider = function setProvider(provider) {
70
70
  return function (state, dispatch) {
71
71
  if (dispatch) {
@@ -242,6 +242,6 @@ var InviteItemWithEmailDomain = function InviteItemWithEmailDomain(_ref2) {
242
242
  }, getByline()))));
243
243
  };
244
244
 
245
- // eslint-disable-next-line @typescript-eslint/ban-types
245
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
246
246
  var _default_1 = injectIntl(InviteItemWithEmailDomain);
247
247
  export default _default_1;
@@ -104,6 +104,6 @@ var InviteItem = function InviteItem(_ref) {
104
104
  })))));
105
105
  };
106
106
 
107
- // eslint-disable-next-line @typescript-eslint/ban-types
107
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
108
108
  var _default_1 = injectIntl(InviteItem);
109
109
  export default _default_1;
@@ -48,6 +48,6 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
48
48
  });
49
49
  }
50
50
  }]);
51
- }(PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
51
+ }(PureComponent); // eslint-disable-next-line @typescript-eslint/no-restricted-types
52
52
  var _default_1 = injectIntl(ToolbarMention);
53
53
  export default _default_1;
@@ -18,7 +18,7 @@ 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/experiments';
21
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
22
22
  import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
23
23
  import { createSingleMentionFragment } from '../../editor-commands';
24
24
  import { mentionPluginKey } from '../../pm-plugins/key';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "18.1.4",
3
+ "version": "18.1.5",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/section-message": "^10.1.0",
48
48
  "@atlaskit/teams-app-config": "^3.0.0",
49
49
  "@atlaskit/theme": "^28.1.0",
50
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
50
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
51
51
  "@atlaskit/tokens": "^16.9.0",
52
52
  "@atlaskit/tooltip": "^24.2.0",
53
53
  "@atlaskit/user-picker": "^13.11.0",