@atlaskit/editor-plugin-mentions 18.2.7 → 18.2.9

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.
@@ -137,7 +137,7 @@ const mentionsPlugin = ({
137
137
  api
138
138
  })
139
139
  }];
140
- if (editorExperiment('platform_editor_agent_mentions', true) && isExperimentEnabled('platform_editor_agent_mentions_separate_pm_plugin')) {
140
+ if (editorExperiment('platform_editor_agent_mentions', true)) {
141
141
  plugins.push({
142
142
  name: 'agentMention',
143
143
  plugin: pmPluginFactoryParams => createAgentMentionPlugin({
@@ -257,7 +257,7 @@ const mentionsPlugin = ({
257
257
  return undefined;
258
258
  }
259
259
  const mentionPluginState = mentionPluginKey.getState(editorState);
260
- const agentMentionPluginState = isExperimentEnabled('platform_editor_agent_mentions_separate_pm_plugin') ? agentMentionPluginKey.getState(editorState) : undefined;
260
+ const agentMentionPluginState = agentMentionPluginKey.getState(editorState);
261
261
  // Exclude pendingPastedAgentMention — it is an @internal transient field and
262
262
  // should not be part of the public shared state API. Exposing it would cause
263
263
  // unnecessary re-renders in subscribers and leak implementation details.