@atlaskit/editor-plugin-block-type 26.0.8 → 26.0.10

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,18 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 26.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5b1dff8e17b61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5b1dff8e17b61) -
8
+ Clean up feature gate `platform_editor_change_normal_text_icon`
9
+
10
+ ## 26.0.9
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 26.0.8
4
17
 
5
18
  ### Patch Changes
@@ -17,7 +17,6 @@ var _textHeadingSix = _interopRequireDefault(require("@atlaskit/icon-lab/core/te
17
17
  var _textHeadingThree = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-heading-three"));
18
18
  var _textHeadingTwo = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-heading-two"));
19
19
  var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
20
- var _fg = require("@atlaskit/platform-feature-flags/fg");
21
20
  var _icons = require("./ui/ToolbarBlockType/icons");
22
21
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -144,12 +143,7 @@ var toolbarBlockTypesWithRank = exports.toolbarBlockTypesWithRank = function too
144
143
  var allowFontSize = _ref.allowFontSize;
145
144
  return _objectSpread(_objectSpread({
146
145
  normal: _objectSpread(_objectSpread({}, NORMAL_TEXT), {}, {
147
- icon:
148
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
149
- (0, _fg.fg)('platform_editor_change_normal_text_icon') ? /*#__PURE__*/_react.default.createElement(_editorToolbar.TextNormalIcon, {
150
- size: "small",
151
- label: ""
152
- }) : /*#__PURE__*/_react.default.createElement(_editorToolbar.TextIcon, {
146
+ icon: /*#__PURE__*/_react.default.createElement(_editorToolbar.TextNormalIcon, {
153
147
  size: "small",
154
148
  label: ""
155
149
  }),
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
3
3
  import { BLOCK_QUOTE_MENU_ITEM, HEADING_1_MENU_ITEM, HEADING_2_MENU_ITEM, HEADING_3_MENU_ITEM, HEADING_4_MENU_ITEM, HEADING_5_MENU_ITEM, HEADING_6_MENU_ITEM, NORMAL_TEXT_MENU_ITEM, SMALL_TEXT_MENU_ITEM, TEXT_STYLES_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
4
- import { TextIcon as EditorToolbarTextIcon, TextNormalIcon, QuoteIcon, HeadingOneIcon, HeadingTwoIcon, HeadingThreeIcon, HeadingFourIcon, HeadingFiveIcon, HeadingSixIcon, TextSmallIcon } from '@atlaskit/editor-toolbar';
4
+ import { TextNormalIcon, QuoteIcon, HeadingOneIcon, HeadingTwoIcon, HeadingThreeIcon, HeadingFourIcon, HeadingFiveIcon, HeadingSixIcon, TextSmallIcon } from '@atlaskit/editor-toolbar';
5
5
  import TextHeadingFiveIcon from '@atlaskit/icon-lab/core/text-heading-five';
6
6
  import TextHeadingFourIcon from '@atlaskit/icon-lab/core/text-heading-four';
7
7
  import TextHeadingOneIcon from '@atlaskit/icon-lab/core/text-heading-one';
@@ -9,7 +9,6 @@ import TextHeadingSixIcon from '@atlaskit/icon-lab/core/text-heading-six';
9
9
  import TextHeadingThreeIcon from '@atlaskit/icon-lab/core/text-heading-three';
10
10
  import TextHeadingTwoIcon from '@atlaskit/icon-lab/core/text-heading-two';
11
11
  import TextIcon from '@atlaskit/icon/core/text';
12
- import { fg } from '@atlaskit/platform-feature-flags/fg';
13
12
  import { Text, H1, H2, H3, H4, H5, H6 } from './ui/ToolbarBlockType/icons';
14
13
  export const NORMAL_TEXT = {
15
14
  name: 'normal',
@@ -135,12 +134,7 @@ export const toolbarBlockTypesWithRank = ({
135
134
  }) => ({
136
135
  normal: {
137
136
  ...NORMAL_TEXT,
138
- icon:
139
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
140
- fg('platform_editor_change_normal_text_icon') ? /*#__PURE__*/React.createElement(TextNormalIcon, {
141
- size: "small",
142
- label: ""
143
- }) : /*#__PURE__*/React.createElement(EditorToolbarTextIcon, {
137
+ icon: /*#__PURE__*/React.createElement(TextNormalIcon, {
144
138
  size: "small",
145
139
  label: ""
146
140
  }),
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import React from 'react';
5
5
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { BLOCK_QUOTE_MENU_ITEM, HEADING_1_MENU_ITEM, HEADING_2_MENU_ITEM, HEADING_3_MENU_ITEM, HEADING_4_MENU_ITEM, HEADING_5_MENU_ITEM, HEADING_6_MENU_ITEM, NORMAL_TEXT_MENU_ITEM, SMALL_TEXT_MENU_ITEM, TEXT_STYLES_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
7
- import { TextIcon as EditorToolbarTextIcon, TextNormalIcon, QuoteIcon, HeadingOneIcon, HeadingTwoIcon, HeadingThreeIcon, HeadingFourIcon, HeadingFiveIcon, HeadingSixIcon, TextSmallIcon } from '@atlaskit/editor-toolbar';
7
+ import { TextNormalIcon, QuoteIcon, HeadingOneIcon, HeadingTwoIcon, HeadingThreeIcon, HeadingFourIcon, HeadingFiveIcon, HeadingSixIcon, TextSmallIcon } from '@atlaskit/editor-toolbar';
8
8
  import TextHeadingFiveIcon from '@atlaskit/icon-lab/core/text-heading-five';
9
9
  import TextHeadingFourIcon from '@atlaskit/icon-lab/core/text-heading-four';
10
10
  import TextHeadingOneIcon from '@atlaskit/icon-lab/core/text-heading-one';
@@ -12,7 +12,6 @@ import TextHeadingSixIcon from '@atlaskit/icon-lab/core/text-heading-six';
12
12
  import TextHeadingThreeIcon from '@atlaskit/icon-lab/core/text-heading-three';
13
13
  import TextHeadingTwoIcon from '@atlaskit/icon-lab/core/text-heading-two';
14
14
  import TextIcon from '@atlaskit/icon/core/text';
15
- import { fg } from '@atlaskit/platform-feature-flags/fg';
16
15
  import { Text, H1, H2, H3, H4, H5, H6 } from './ui/ToolbarBlockType/icons';
17
16
  export var NORMAL_TEXT = {
18
17
  name: 'normal',
@@ -137,12 +136,7 @@ export var toolbarBlockTypesWithRank = function toolbarBlockTypesWithRank(_ref)
137
136
  var allowFontSize = _ref.allowFontSize;
138
137
  return _objectSpread(_objectSpread({
139
138
  normal: _objectSpread(_objectSpread({}, NORMAL_TEXT), {}, {
140
- icon:
141
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
142
- fg('platform_editor_change_normal_text_icon') ? /*#__PURE__*/React.createElement(TextNormalIcon, {
143
- size: "small",
144
- label: ""
145
- }) : /*#__PURE__*/React.createElement(EditorToolbarTextIcon, {
139
+ icon: /*#__PURE__*/React.createElement(TextNormalIcon, {
146
140
  size: "small",
147
141
  label: ""
148
142
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "26.0.8",
3
+ "version": "26.0.10",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/primitives": "^22.5.0",
44
44
  "@atlaskit/prosemirror-history": "^1.3.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^217.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^218.0.0",
47
47
  "@atlaskit/tokens": "^20.1.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",
@@ -64,9 +64,6 @@
64
64
  "wait-for-expect": "^1.2.0"
65
65
  },
66
66
  "platform-feature-flags": {
67
- "platform_editor_change_normal_text_icon": {
68
- "type": "boolean"
69
- },
70
67
  "platform_editor_toolbar_responsive_fixes": {
71
68
  "type": "boolean"
72
69
  },