@atlaskit/editor-plugin-block-menu 9.2.1 → 9.2.2

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-menu
2
2
 
3
+ ## 9.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`81682ab6c4a7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/81682ab6c4a7f) -
8
+ EDITOR-7104: Update editor block menu copy behind feature gates.
9
+ - Update synced block quick insert and toolbar copy to "Sync block" behind
10
+ `platform_synced_block_patch_12`
11
+ - Update block menu "Turn into" copy to "Change format" behind
12
+ `platform_editor_block_menu_v2_patch_2`
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 9.2.1
4
17
 
5
18
  ### Patch Changes
@@ -21,6 +21,7 @@ var FormatMenuComponent = exports.FormatMenuComponent = function FormatMenuCompo
21
21
  children = _ref.children;
22
22
  var _useIntl = (0, _reactIntl.useIntl)(),
23
23
  formatMessage = _useIntl.formatMessage;
24
+ var formatMenuLabel = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_2') ? _messages.blockMenuMessages.changeFormat : _messages.blockMenuMessages.turnInto;
24
25
  var handleClick = (0, _react.useCallback)(function () {
25
26
  api === null || api === void 0 || api.core.actions.execute(function (_ref2) {
26
27
  var _api$analytics;
@@ -38,7 +39,7 @@ var FormatMenuComponent = exports.FormatMenuComponent = function FormatMenuCompo
38
39
  });
39
40
  }, [api]);
40
41
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarNestedDropdownMenu, {
41
- text: formatMessage(_messages.blockMenuMessages.turnInto),
42
+ text: formatMessage(formatMenuLabel),
42
43
  elemBefore: /*#__PURE__*/_react.default.createElement(_changes.default, {
43
44
  label: "",
44
45
  size: "small"
@@ -14,6 +14,7 @@ export const FormatMenuComponent = ({
14
14
  const {
15
15
  formatMessage
16
16
  } = useIntl();
17
+ const formatMenuLabel = fg('platform_editor_block_menu_v2_patch_2') ? blockMenuMessages.changeFormat : blockMenuMessages.turnInto;
17
18
  const handleClick = useCallback(() => {
18
19
  api === null || api === void 0 ? void 0 : api.core.actions.execute(({
19
20
  tr
@@ -32,7 +33,7 @@ export const FormatMenuComponent = ({
32
33
  });
33
34
  }, [api]);
34
35
  return /*#__PURE__*/React.createElement(ToolbarNestedDropdownMenu, {
35
- text: formatMessage(blockMenuMessages.turnInto),
36
+ text: formatMessage(formatMenuLabel),
36
37
  elemBefore: /*#__PURE__*/React.createElement(ChangesIcon, {
37
38
  label: "",
38
39
  size: "small"
@@ -12,6 +12,7 @@ export var FormatMenuComponent = function FormatMenuComponent(_ref) {
12
12
  children = _ref.children;
13
13
  var _useIntl = useIntl(),
14
14
  formatMessage = _useIntl.formatMessage;
15
+ var formatMenuLabel = fg('platform_editor_block_menu_v2_patch_2') ? blockMenuMessages.changeFormat : blockMenuMessages.turnInto;
15
16
  var handleClick = useCallback(function () {
16
17
  api === null || api === void 0 || api.core.actions.execute(function (_ref2) {
17
18
  var _api$analytics;
@@ -29,7 +30,7 @@ export var FormatMenuComponent = function FormatMenuComponent(_ref) {
29
30
  });
30
31
  }, [api]);
31
32
  return /*#__PURE__*/React.createElement(ToolbarNestedDropdownMenu, {
32
- text: formatMessage(blockMenuMessages.turnInto),
33
+ text: formatMessage(formatMenuLabel),
33
34
  elemBefore: /*#__PURE__*/React.createElement(ChangesIcon, {
34
35
  label: "",
35
36
  size: "small"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "9.2.1",
3
+ "version": "9.2.2",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -99,6 +99,9 @@
99
99
  },
100
100
  "cc_blocks_changeboarding": {
101
101
  "type": "boolean"
102
+ },
103
+ "platform_editor_block_menu_v2_patch_2": {
104
+ "type": "boolean"
102
105
  }
103
106
  },
104
107
  "devDependencies": {