@atlaskit/editor-plugin-block-type 6.0.4 → 6.0.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,13 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 6.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#185723](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185723)
8
+ [`751aeb4580469`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/751aeb4580469) -
9
+ ED-28315 clean up fg platform_editor_controls_patch_13
10
+
3
11
  ## 6.0.4
4
12
 
5
13
  ### Patch Changes
@@ -14,7 +14,6 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
14
14
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
15
15
  var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
16
16
  var _textStyle = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/text-style"));
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _primitives = require("@atlaskit/primitives");
19
18
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
20
19
  var _blockTypes = require("../../block-types");
@@ -49,8 +48,8 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
49
48
  color: "currentColor",
50
49
  LEGACY_fallbackIcon: _textStyle.default
51
50
  });
52
- var chevronIconSpacing = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (props.isSmall || !props.isSmall && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_13')) ? 'spacious' : 'none';
53
- var shouldUseIconAsButton = props.isSmall || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_13');
51
+ var chevronIconSpacing = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') ? 'spacious' : 'none';
52
+ var shouldUseIconAsButton = props.isSmall || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1');
54
53
  return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
55
54
  spacing: props.isReducedSpacing ? 'none' : 'default',
56
55
  selected: props.selected
@@ -13,7 +13,6 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
13
13
  import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
14
14
  import TextIcon from '@atlaskit/icon/core/text';
15
15
  import { default as TextStyleIconLegacy } from '@atlaskit/icon/glyph/editor/text-style';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
18
17
  import { Box, xcss } from '@atlaskit/primitives';
19
18
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -40,8 +39,8 @@ export const BlockTypeButton = props => {
40
39
  color: "currentColor",
41
40
  LEGACY_fallbackIcon: TextStyleIconLegacy
42
41
  });
43
- const chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && (props.isSmall || !props.isSmall && fg('platform_editor_controls_patch_13')) ? 'spacious' : 'none';
44
- const shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_13');
42
+ const chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') ? 'spacious' : 'none';
43
+ const shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1');
45
44
  return jsx(ToolbarButton, {
46
45
  spacing: props.isReducedSpacing ? 'none' : 'default',
47
46
  selected: props.selected
@@ -13,7 +13,6 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
13
13
  import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
14
14
  import TextIcon from '@atlaskit/icon/core/text';
15
15
  import { default as TextStyleIconLegacy } from '@atlaskit/icon/glyph/editor/text-style';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
18
17
  import { Box, xcss } from '@atlaskit/primitives';
19
18
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -40,8 +39,8 @@ export var BlockTypeButton = function BlockTypeButton(props) {
40
39
  color: "currentColor",
41
40
  LEGACY_fallbackIcon: TextStyleIconLegacy
42
41
  });
43
- var chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && (props.isSmall || !props.isSmall && fg('platform_editor_controls_patch_13')) ? 'spacious' : 'none';
44
- var shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_13');
42
+ var chevronIconSpacing = expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') ? 'spacious' : 'none';
43
+ var shouldUseIconAsButton = props.isSmall || expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1');
45
44
  return jsx(ToolbarButton, {
46
45
  spacing: props.isReducedSpacing ? 'none' : 'default',
47
46
  selected: props.selected
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
40
40
  "@atlaskit/editor-plugin-selection-toolbar": "^4.1.0",
41
41
  "@atlaskit/editor-prosemirror": "7.0.0",
42
- "@atlaskit/editor-shared-styles": "^3.4.0",
42
+ "@atlaskit/editor-shared-styles": "^3.5.0",
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
44
  "@atlaskit/icon": "^27.3.0",
45
45
  "@atlaskit/icon-lab": "^5.1.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/primitives": "^14.10.0",
48
48
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
49
49
  "@atlaskit/theme": "^19.0.0",
50
- "@atlaskit/tmp-editor-statsig": "^9.7.0",
50
+ "@atlaskit/tmp-editor-statsig": "^9.8.0",
51
51
  "@atlaskit/tokens": "^5.5.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1"
@@ -113,9 +113,6 @@
113
113
  "platform_editor_nested_dnd_styles_changes": {
114
114
  "type": "boolean"
115
115
  },
116
- "platform_editor_controls_patch_13": {
117
- "type": "boolean"
118
- },
119
116
  "platform_editor_use_preferences_plugin": {
120
117
  "type": "boolean"
121
118
  }