@atlaskit/editor-plugin-block-type 28.0.3 → 28.0.4

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,14 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 28.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`79892d462c5d8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79892d462c5d8) -
8
+ Use the normal text icon in the change format menu behind the
9
+ platform_editor_block_menu_small_text experiment.
10
+ - Updated dependencies
11
+
3
12
  ## 28.0.3
4
13
 
5
14
  ### Patch Changes
@@ -10,6 +10,7 @@ var _reactIntl = require("react-intl");
10
10
  var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
13
+ var _textNormal = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-normal"));
13
14
  var _textParagraph = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-paragraph"));
14
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
15
16
  var NODE_NAME = 'paragraph';
@@ -39,7 +40,10 @@ var ParagraphBlockMenuItem = function ParagraphBlockMenuItem(_ref) {
39
40
  };
40
41
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
41
42
  onClick: handleClick,
42
- elemBefore: /*#__PURE__*/_react.default.createElement(_textParagraph.default, {
43
+ elemBefore: isNormalTextLabelEnabled ? /*#__PURE__*/_react.default.createElement(_textNormal.default, {
44
+ label: "",
45
+ size: "small"
46
+ }) : /*#__PURE__*/_react.default.createElement(_textParagraph.default, {
43
47
  label: "",
44
48
  size: "small"
45
49
  })
@@ -3,6 +3,7 @@ import { useIntl } from 'react-intl';
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
+ import TextNormalIcon from '@atlaskit/icon-lab/core/text-normal';
6
7
  import TextParagraphIcon from '@atlaskit/icon-lab/core/text-paragraph';
7
8
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
9
  const NODE_NAME = 'paragraph';
@@ -35,7 +36,10 @@ const ParagraphBlockMenuItem = ({
35
36
  };
36
37
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
37
38
  onClick: handleClick,
38
- elemBefore: /*#__PURE__*/React.createElement(TextParagraphIcon, {
39
+ elemBefore: isNormalTextLabelEnabled ? /*#__PURE__*/React.createElement(TextNormalIcon, {
40
+ label: "",
41
+ size: "small"
42
+ }) : /*#__PURE__*/React.createElement(TextParagraphIcon, {
39
43
  label: "",
40
44
  size: "small"
41
45
  })
@@ -3,6 +3,7 @@ import { useIntl } from 'react-intl';
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
+ import TextNormalIcon from '@atlaskit/icon-lab/core/text-normal';
6
7
  import TextParagraphIcon from '@atlaskit/icon-lab/core/text-paragraph';
7
8
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
9
  var NODE_NAME = 'paragraph';
@@ -32,7 +33,10 @@ var ParagraphBlockMenuItem = function ParagraphBlockMenuItem(_ref) {
32
33
  };
33
34
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
34
35
  onClick: handleClick,
35
- elemBefore: /*#__PURE__*/React.createElement(TextParagraphIcon, {
36
+ elemBefore: isNormalTextLabelEnabled ? /*#__PURE__*/React.createElement(TextNormalIcon, {
37
+ label: "",
38
+ size: "small"
39
+ }) : /*#__PURE__*/React.createElement(TextParagraphIcon, {
36
40
  label: "",
37
41
  size: "small"
38
42
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "28.0.3",
3
+ "version": "28.0.4",
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": "^223.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^224.0.0",
47
47
  "@atlaskit/tokens": "^20.3.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",