@atlaskit/editor-plugin-text-formatting 18.0.10 → 18.0.11

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,13 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 18.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
8
+ Clean up feature gate `platform_editor_use_preferences_plugin`
9
+ - Updated dependencies
10
+
3
11
  ## 18.0.10
4
12
 
5
13
  ### Patch Changes
@@ -13,7 +13,6 @@ var _strike = require("@atlaskit/adf-schema/strike");
13
13
  var _strong = require("@atlaskit/adf-schema/strong");
14
14
  var _subsup = require("@atlaskit/adf-schema/subsup");
15
15
  var _underline = require("@atlaskit/adf-schema/underline");
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
18
17
  var _toggleMark = require("./editor-commands/toggle-mark");
19
18
  var _clearFormatting = require("./pm-plugins/clear-formatting");
@@ -152,8 +151,8 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
152
151
  },
153
152
  pluginsOptions: isToolbarAIFCEnabled ? {} : {
154
153
  selectionToolbar: function selectionToolbar() {
155
- var _api$userPreferences, _api$selectionToolbar;
156
- var toolbarDocking = (0, _fg.fg)('platform_editor_use_preferences_plugin') ? api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition : api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking;
154
+ var _api$userPreferences;
155
+ var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
157
156
  if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
158
157
  exposure: true
159
158
  })) {
@@ -5,7 +5,6 @@ import { strike } from '@atlaskit/adf-schema/strike';
5
5
  import { strong } from '@atlaskit/adf-schema/strong';
6
6
  import { subsup } from '@atlaskit/adf-schema/subsup';
7
7
  import { underline } from '@atlaskit/adf-schema/underline';
8
- import { fg } from '@atlaskit/platform-feature-flags/fg';
9
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
10
9
  import { toggleCodeWithAnalytics, toggleEmWithAnalytics, toggleStrikeWithAnalytics, toggleStrongWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics, toggleUnderlineWithAnalytics } from './editor-commands/toggle-mark';
11
10
  import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
@@ -146,8 +145,8 @@ export const textFormattingPlugin = ({
146
145
  },
147
146
  pluginsOptions: isToolbarAIFCEnabled ? {} : {
148
147
  selectionToolbar: () => {
149
- var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2, _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
150
- const toolbarDocking = fg('platform_editor_use_preferences_plugin') ? api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition : api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking;
148
+ var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
149
+ const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition;
151
150
  if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
152
151
  exposure: true
153
152
  })) {
@@ -8,7 +8,6 @@ import { strike } from '@atlaskit/adf-schema/strike';
8
8
  import { strong } from '@atlaskit/adf-schema/strong';
9
9
  import { subsup } from '@atlaskit/adf-schema/subsup';
10
10
  import { underline } from '@atlaskit/adf-schema/underline';
11
- import { fg } from '@atlaskit/platform-feature-flags/fg';
12
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
13
12
  import { toggleCodeWithAnalytics, toggleEmWithAnalytics, toggleStrikeWithAnalytics, toggleStrongWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics, toggleUnderlineWithAnalytics } from './editor-commands/toggle-mark';
14
13
  import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
@@ -146,8 +145,8 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
146
145
  },
147
146
  pluginsOptions: isToolbarAIFCEnabled ? {} : {
148
147
  selectionToolbar: function selectionToolbar() {
149
- var _api$userPreferences, _api$selectionToolbar;
150
- var toolbarDocking = fg('platform_editor_use_preferences_plugin') ? api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition : api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking;
148
+ var _api$userPreferences;
149
+ var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
151
150
  if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
152
151
  exposure: true
153
152
  })) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "18.0.10",
3
+ "version": "18.0.11",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,7 @@
44
44
  "@emotion/react": "^11.7.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^122.10.0",
47
+ "@atlaskit/editor-common": "^122.11.0",
48
48
  "react": "^18.2.0 || ^19.2.0",
49
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
50
50
  },
@@ -60,9 +60,6 @@
60
60
  "editor_inline_comments_on_inline_nodes": {
61
61
  "type": "boolean"
62
62
  },
63
- "platform_editor_use_preferences_plugin": {
64
- "type": "boolean"
65
- },
66
63
  "platform_editor_markdown_compatible_toolbar": {
67
64
  "type": "boolean"
68
65
  }