@atlaskit/editor-plugin-toolbar-lists-indentation 19.0.10 → 19.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-toolbar-lists-indentation
2
2
 
3
+ ## 19.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
  ## 19.0.10
4
12
 
5
13
  ### Patch Changes
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
13
13
  var _hooks = require("@atlaskit/editor-common/hooks");
14
14
  var _types = require("@atlaskit/editor-common/types");
15
15
  var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-effect");
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
18
17
  var _indentationButtons = require("./pm-plugins/indentation-buttons");
19
18
  var _types2 = require("./types");
@@ -77,8 +76,8 @@ var toolbarListsIndentationPlugin = exports.toolbarListsIndentationPlugin = func
77
76
  name: 'toolbarListsIndentation',
78
77
  pluginsOptions: _objectSpread({}, !isToolbarAIFCEnabled && {
79
78
  selectionToolbar: function selectionToolbar() {
80
- var _api$userPreferences, _api$selectionToolbar;
81
- 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 ? void 0 : _api$userPreferences.preferences.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;
79
+ var _api$userPreferences;
80
+ 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 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
82
81
  if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
83
82
  exposure: true
84
83
  })) {
@@ -2,7 +2,6 @@ import React, { useState } from 'react';
2
2
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
3
  import { ToolbarSize } from '@atlaskit/editor-common/types';
4
4
  import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
5
- import { fg } from '@atlaskit/platform-feature-flags/fg';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
6
  import { getIndentationButtonsState } from './pm-plugins/indentation-buttons';
8
7
  import { ToolbarType } from './types';
@@ -65,8 +64,8 @@ export const toolbarListsIndentationPlugin = ({
65
64
  pluginsOptions: {
66
65
  ...(!isToolbarAIFCEnabled && {
67
66
  selectionToolbar() {
68
- var _api$userPreferences, _api$userPreferences$, _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
69
- 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$.preferences.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;
67
+ var _api$userPreferences, _api$userPreferences$;
68
+ 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$.preferences.toolbarDockingPosition;
70
69
  if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
71
70
  exposure: true
72
71
  })) {
@@ -6,7 +6,6 @@ import React, { useState } from 'react';
6
6
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
7
7
  import { ToolbarSize } from '@atlaskit/editor-common/types';
8
8
  import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
9
- import { fg } from '@atlaskit/platform-feature-flags/fg';
10
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
11
10
  import { getIndentationButtonsState } from './pm-plugins/indentation-buttons';
12
11
  import { ToolbarType } from './types';
@@ -67,8 +66,8 @@ export var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugi
67
66
  name: 'toolbarListsIndentation',
68
67
  pluginsOptions: _objectSpread({}, !isToolbarAIFCEnabled && {
69
68
  selectionToolbar: function selectionToolbar() {
70
- var _api$userPreferences, _api$selectionToolbar;
71
- 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 ? void 0 : _api$userPreferences.preferences.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;
69
+ var _api$userPreferences;
70
+ 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 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
72
71
  if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
73
72
  exposure: true
74
73
  })) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "19.0.10",
3
+ "version": "19.0.11",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/editor-common": "^122.10.0",
46
+ "@atlaskit/editor-common": "^122.11.0",
47
47
  "react": "^18.2.0 || ^19.2.0",
48
48
  "react-dom": "^18.2.0 || ^19.2.0",
49
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -59,9 +59,6 @@
59
59
  "platform-feature-flags": {
60
60
  "platform_editor_markdown_compatible_toolbar": {
61
61
  "type": "boolean"
62
- },
63
- "platform_editor_use_preferences_plugin": {
64
- "type": "boolean"
65
62
  }
66
63
  }
67
64
  }