@atlaskit/editor-plugin-block-type 21.0.10 → 21.0.12

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,19 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 21.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 21.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [`01af1b9854154`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01af1b9854154) -
14
+ [ux] Reverted PR #459528
15
+ - Updated dependencies
16
+
3
17
  ## 21.0.10
4
18
 
5
19
  ### Patch Changes
@@ -107,6 +107,6 @@ var TextStylesMenuButton = exports.TextStylesMenuButton = function TextStylesMen
107
107
  label: formatMessage(_messages.toolbarMessages.textStyles, {
108
108
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
109
109
  }),
110
- shouldRenderToParent: true
110
+ shouldRenderToParent: (0, _fg.fg)('platform_editor_return_focus_after_text_styles')
111
111
  }, children);
112
112
  };
@@ -93,6 +93,6 @@ export const TextStylesMenuButton = ({
93
93
  label: formatMessage(toolbarMessages.textStyles, {
94
94
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
95
95
  }),
96
- shouldRenderToParent: true
96
+ shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles')
97
97
  }, children);
98
98
  };
@@ -99,6 +99,6 @@ export var TextStylesMenuButton = function TextStylesMenuButton(_ref) {
99
99
  label: formatMessage(toolbarMessages.textStyles, {
100
100
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
101
101
  }),
102
- shouldRenderToParent: true
102
+ shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles')
103
103
  }, children);
104
104
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "21.0.10",
3
+ "version": "21.0.12",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/primitives": "^22.5.0",
44
44
  "@atlaskit/prosemirror-history": "^1.2.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^187.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^188.0.0",
47
47
  "@atlaskit/tokens": "^16.12.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^121.4.0",
53
+ "@atlaskit/editor-common": "^121.5.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-dom": "^18.2.0 || ^19.2.0",
56
56
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -78,6 +78,9 @@
78
78
  },
79
79
  "platform_editor_adf_with_localid": {
80
80
  "type": "boolean"
81
+ },
82
+ "platform_editor_return_focus_after_text_styles": {
83
+ "type": "boolean"
81
84
  }
82
85
  }
83
86
  }