@atlaskit/editor-plugin-block-type 19.0.7 → 19.0.8
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-type
|
|
2
2
|
|
|
3
|
+
## 19.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`85c7571a0f48b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/85c7571a0f48b) -
|
|
8
|
+
Return focus to the editor after selecting a text style (e.g. a heading) from the toolbar Text
|
|
9
|
+
styles dropdown, so typing continues immediately instead of focus staying on the trigger button.
|
|
10
|
+
The Text styles dropdown now renders inline via `shouldRenderToParent`, which stops the popup
|
|
11
|
+
focus-trap from returning focus to the trigger on close. `ToolbarDropdownMenu` gains an opt-in
|
|
12
|
+
`shouldRenderToParent` prop so only the Text styles menu is affected. Gated behind the
|
|
13
|
+
`platform_editor_return_focus_after_text_styles` feature flag.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 19.0.7
|
|
4
17
|
|
|
5
18
|
### 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.
|
|
3
|
+
"version": "19.0.8",
|
|
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.
|
|
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",
|
|
@@ -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
|
}
|