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

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,24 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 9.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`81682ab6c4a7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/81682ab6c4a7f) -
14
+ EDITOR-7104: Update editor block menu copy behind feature gates.
15
+ - Update synced block quick insert and toolbar copy to "Sync block" behind
16
+ `platform_synced_block_patch_12`
17
+ - Update block menu "Turn into" copy to "Change format" behind
18
+ `platform_editor_block_menu_v2_patch_2`
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 9.2.1
4
23
 
5
24
  ### 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.3",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,17 +40,17 @@
40
40
  "@atlaskit/editor-tables": "^2.10.0",
41
41
  "@atlaskit/editor-toolbar": "^1.5.0",
42
42
  "@atlaskit/flag": "^17.11.0",
43
- "@atlaskit/icon": "^34.5.0",
43
+ "@atlaskit/icon": "^35.0.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^19.0.0",
46
46
  "@atlaskit/prosemirror-history": "^0.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^81.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^81.1.0",
48
48
  "@atlaskit/tokens": "^13.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "bind-event-listener": "^3.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^114.32.0",
53
+ "@atlaskit/editor-common": "^114.35.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },
@@ -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": {