@atlaskit/editor-plugin-toolbar-lists-indentation 3.1.6 → 3.1.7

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,15 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 3.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#130218](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130218)
8
+ [`7decc0df6c7e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7decc0df6c7e9) -
9
+ [ED-26003] This change is cleaning up the feature gate
10
+ platform_editor_toolbar_fix_for_disabled_options.
11
+ - Updated dependencies
12
+
3
13
  ## 3.1.6
4
14
 
5
15
  ### Patch Changes
@@ -9,7 +9,6 @@ exports.default = ToolbarListsIndentation;
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _types = require("../types");
14
13
  var _onItemActivated = require("./onItemActivated");
15
14
  var _Toolbar = require("./Toolbar");
@@ -36,16 +35,11 @@ function ToolbarListsIndentation(props) {
36
35
  pluginInjectionApi = props.pluginInjectionApi,
37
36
  toolbarType = props.toolbarType;
38
37
  var inputMethod = toolbarType ? (0, _inputMethod.getInputMethod)(toolbarType) : _analytics.INPUT_METHOD.TOOLBAR;
39
- var isDisabled;
40
38
  if (isSmall || toolbarType === _types.ToolbarType.FLOATING) {
41
- if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_fix_for_disabled_options')) {
42
- var areAllOptionsDisabled = [bulletListDisabled, orderedListDisabled, indentDisabled, outdentDisabled].every(function (item) {
43
- return Boolean(item) === true;
44
- });
45
- isDisabled = disabled || areAllOptionsDisabled;
46
- } else {
47
- isDisabled = disabled;
48
- }
39
+ var areAllOptionsDisabled = [bulletListDisabled, orderedListDisabled, indentDisabled, outdentDisabled].every(function (item) {
40
+ return Boolean(item) === true;
41
+ });
42
+ var isDisabled = disabled || areAllOptionsDisabled;
49
43
  return /*#__PURE__*/React.createElement(_ToolbarDropdown.ToolbarDropdown, {
50
44
  editorView: props.editorView,
51
45
  isReducedSpacing: isReducedSpacing,
@@ -2,7 +2,6 @@
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { ToolbarType } from '../types';
7
6
  import { onItemActivated } from './onItemActivated';
8
7
  import { Toolbar } from './Toolbar';
@@ -29,14 +28,9 @@ export default function ToolbarListsIndentation(props) {
29
28
  toolbarType
30
29
  } = props;
31
30
  const inputMethod = toolbarType ? getInputMethod(toolbarType) : INPUT_METHOD.TOOLBAR;
32
- let isDisabled;
33
31
  if (isSmall || toolbarType === ToolbarType.FLOATING) {
34
- if (fg('platform_editor_toolbar_fix_for_disabled_options')) {
35
- const areAllOptionsDisabled = [bulletListDisabled, orderedListDisabled, indentDisabled, outdentDisabled].every(item => Boolean(item) === true);
36
- isDisabled = disabled || areAllOptionsDisabled;
37
- } else {
38
- isDisabled = disabled;
39
- }
32
+ const areAllOptionsDisabled = [bulletListDisabled, orderedListDisabled, indentDisabled, outdentDisabled].every(item => Boolean(item) === true);
33
+ const isDisabled = disabled || areAllOptionsDisabled;
40
34
  return /*#__PURE__*/React.createElement(ToolbarDropdown, {
41
35
  editorView: props.editorView,
42
36
  isReducedSpacing: isReducedSpacing,
@@ -2,7 +2,6 @@
2
2
  import * as React from 'react';
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { ToolbarType } from '../types';
7
6
  import { onItemActivated } from './onItemActivated';
8
7
  import { Toolbar } from './Toolbar';
@@ -27,16 +26,11 @@ export default function ToolbarListsIndentation(props) {
27
26
  pluginInjectionApi = props.pluginInjectionApi,
28
27
  toolbarType = props.toolbarType;
29
28
  var inputMethod = toolbarType ? getInputMethod(toolbarType) : INPUT_METHOD.TOOLBAR;
30
- var isDisabled;
31
29
  if (isSmall || toolbarType === ToolbarType.FLOATING) {
32
- if (fg('platform_editor_toolbar_fix_for_disabled_options')) {
33
- var areAllOptionsDisabled = [bulletListDisabled, orderedListDisabled, indentDisabled, outdentDisabled].every(function (item) {
34
- return Boolean(item) === true;
35
- });
36
- isDisabled = disabled || areAllOptionsDisabled;
37
- } else {
38
- isDisabled = disabled;
39
- }
30
+ var areAllOptionsDisabled = [bulletListDisabled, orderedListDisabled, indentDisabled, outdentDisabled].every(function (item) {
31
+ return Boolean(item) === true;
32
+ });
33
+ var isDisabled = disabled || areAllOptionsDisabled;
40
34
  return /*#__PURE__*/React.createElement(ToolbarDropdown, {
41
35
  editorView: props.editorView,
42
36
  isReducedSpacing: isReducedSpacing,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,20 +34,20 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/css": "^0.10.0",
37
- "@atlaskit/editor-common": "^102.8.0",
37
+ "@atlaskit/editor-common": "^102.13.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
39
39
  "@atlaskit/editor-plugin-block-type": "^5.1.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
41
41
  "@atlaskit/editor-plugin-indentation": "^2.1.0",
42
- "@atlaskit/editor-plugin-list": "^4.1.0",
43
- "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
44
- "@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
42
+ "@atlaskit/editor-plugin-list": "^4.2.0",
43
+ "@atlaskit/editor-plugin-primary-toolbar": "^3.1.0",
44
+ "@atlaskit/editor-plugin-selection-toolbar": "^2.3.0",
45
45
  "@atlaskit/editor-plugin-tasks-and-decisions": "^5.0.0",
46
46
  "@atlaskit/editor-prosemirror": "7.0.0",
47
47
  "@atlaskit/editor-shared-styles": "^3.4.0",
48
48
  "@atlaskit/icon": "^25.0.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/tmp-editor-statsig": "^4.0.0",
50
+ "@atlaskit/tmp-editor-statsig": "^4.4.0",
51
51
  "@atlaskit/tokens": "^4.5.0",
52
52
  "@babel/runtime": "^7.0.0"
53
53
  },
@@ -107,9 +107,6 @@
107
107
  "platform-feature-flags": {
108
108
  "platform-visual-refresh-icons": {
109
109
  "type": "boolean"
110
- },
111
- "platform_editor_toolbar_fix_for_disabled_options": {
112
- "type": "boolean"
113
110
  }
114
111
  }
115
112
  }