@atlaskit/editor-plugin-block-type 19.0.7 → 19.0.9

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-type
2
2
 
3
+ ## 19.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 19.0.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [`85c7571a0f48b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85c7571a0f48b) -
14
+ Return focus to the editor after selecting a text style (e.g. a heading) from the toolbar Text
15
+ styles dropdown, so typing continues immediately instead of focus staying on the trigger button.
16
+ The Text styles dropdown now renders inline via `shouldRenderToParent`, which stops the popup
17
+ focus-trap from returning focus to the trigger on close. `ToolbarDropdownMenu` gains an opt-in
18
+ `shouldRenderToParent` prop so only the Text styles menu is affected. Gated behind the
19
+ `platform_editor_return_focus_after_text_styles` feature flag.
20
+ - Updated dependencies
21
+
3
22
  ## 19.0.7
4
23
 
5
24
  ### Patch Changes
@@ -106,6 +106,7 @@ var TextStylesMenuButton = exports.TextStylesMenuButton = function TextStylesMen
106
106
  }),
107
107
  label: formatMessage(_messages.toolbarMessages.textStyles, {
108
108
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
109
- })
109
+ }),
110
+ shouldRenderToParent: (0, _platformFeatureFlags.fg)('platform_editor_return_focus_after_text_styles')
110
111
  }, children);
111
112
  };
@@ -92,6 +92,7 @@ export const TextStylesMenuButton = ({
92
92
  }),
93
93
  label: formatMessage(toolbarMessages.textStyles, {
94
94
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
95
- })
95
+ }),
96
+ shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles')
96
97
  }, children);
97
98
  };
@@ -98,6 +98,7 @@ export var TextStylesMenuButton = function TextStylesMenuButton(_ref) {
98
98
  }),
99
99
  label: formatMessage(toolbarMessages.textStyles, {
100
100
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
101
- })
101
+ }),
102
+ shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles')
102
103
  }, children);
103
104
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "19.0.7",
3
+ "version": "19.0.9",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/editor-prosemirror": "^8.0.0",
35
35
  "@atlaskit/editor-shared-styles": "^4.0.0",
36
36
  "@atlaskit/editor-tables": "^3.0.0",
37
- "@atlaskit/editor-toolbar": "^2.4.0",
37
+ "@atlaskit/editor-toolbar": "^2.5.0",
38
38
  "@atlaskit/editor-toolbar-model": "^1.2.0",
39
39
  "@atlaskit/icon": "^37.4.0",
40
40
  "@atlaskit/icon-lab": "^7.6.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/primitives": "^22.2.0",
44
44
  "@atlaskit/prosemirror-history": "^1.2.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
46
- "@atlaskit/tmp-editor-statsig": "^152.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^153.0.0",
47
47
  "@atlaskit/tokens": "^16.7.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",
@@ -113,6 +113,9 @@
113
113
  },
114
114
  "platform_editor_adf_with_localid": {
115
115
  "type": "boolean"
116
+ },
117
+ "platform_editor_return_focus_after_text_styles": {
118
+ "type": "boolean"
116
119
  }
117
120
  }
118
121
  }